feat(user): add methods to delete submember

This commit is contained in:
Thijmen Maus
2024-02-11 15:25:34 +01:00
parent 2498c5eb9d
commit 304d960567
4 changed files with 66 additions and 38 deletions

View File

@@ -124,18 +124,3 @@ export interface WithdrawParamsV5 {
forceChain?: number;
accountType?: 'SPOT' | 'FUND';
}
export interface CreateSubMemberParamsV5 {
username: string;
password?: string;
/**
* 1: normal, 6: custodial
*/
memberType: 1 | 6;
/**
* 0: quick login disabled (default), 1: quick login enabled
*/
switch?: 0 | 1;
isUta?: boolean;
note?: string;
}

View File

@@ -1,5 +1,21 @@
import { PermissionsV5 } from '../v5-shared';
export interface CreateSubMemberParamsV5 {
username: string;
password?: string;
/**
* 1: normal, 6: custodial
*/
memberType: 1 | 6;
/**
* 0: quick login disabled (default), 1: quick login enabled
*/
switch?: 0 | 1;
isUta?: boolean;
note?: string;
}
export interface CreateSubApiKeyParamsV5 {
subuid: number;
note?: string;
@@ -19,3 +35,7 @@ export interface UpdateSubApiKeyUpdateParamsV5 {
ips?: string[];
permissions: PermissionsV5;
}
export interface DeleteSubMemberParamsV5 {
subMemberId: number;
}