mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-12-23 01:24:24 +00:00
Simplify create key request format
This commit is contained in:
@@ -15,14 +15,10 @@ export interface ApiKey {
|
||||
}
|
||||
|
||||
export interface CreateKeyRequest {
|
||||
Name: string
|
||||
PermissionMode: PermissionMode
|
||||
ExpiresAt?: number
|
||||
InstancePermissions: InstancePermission[]
|
||||
}
|
||||
|
||||
export interface InstancePermission {
|
||||
InstanceID: number
|
||||
name: string
|
||||
permission_mode: PermissionMode
|
||||
expires_at?: number
|
||||
instance_ids: number[]
|
||||
}
|
||||
|
||||
export interface CreateKeyResponse extends ApiKey {
|
||||
|
||||
Reference in New Issue
Block a user