Introduce getSubAccountAllApiKeys, update deleteSubApiKey
This commit is contained in:
@@ -39,3 +39,9 @@ export interface UpdateSubApiKeyUpdateParamsV5 {
|
||||
export interface DeleteSubMemberParamsV5 {
|
||||
subMemberId: string;
|
||||
}
|
||||
|
||||
export interface GetSubAccountAllApiKeysParamsV5 {
|
||||
subMemberId: string;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
@@ -34,7 +34,7 @@ export interface ApiKeyInfoV5 {
|
||||
secret: string;
|
||||
permissions: PermissionsV5;
|
||||
ips?: string[];
|
||||
type: 1 | 2;
|
||||
type: ApiKeyType;
|
||||
deadlineDay?: number;
|
||||
expiredAt?: string;
|
||||
createdAt: string;
|
||||
@@ -57,3 +57,22 @@ export interface UpdateApiKeyResultV5 {
|
||||
permissions: PermissionsV5;
|
||||
ips: string[];
|
||||
}
|
||||
|
||||
export interface SubAccountAllApiKeysResultV5 {
|
||||
result: {
|
||||
id: string;
|
||||
ips?: string[];
|
||||
apiKey: string;
|
||||
note: string;
|
||||
status: number;
|
||||
expiredAt?: string;
|
||||
createdAt: string;
|
||||
type: ApiKeyType;
|
||||
permissions: PermissionsV5;
|
||||
secret: string;
|
||||
readOnly: 0 | 1;
|
||||
deadlineDay?: number;
|
||||
flag: string;
|
||||
}[],
|
||||
nextPageCursor: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user