@cloudbase/manager-node 4.11.0-alpha.5 → 4.11.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,3 +18,65 @@ export interface EndUserInfo {
18
18
  UserName: string;
19
19
  }
20
20
  export type EndUserStatus = 'ENABLE' | 'DISABLE';
21
+ export type TcbUserType = 'internalUser' | 'externalUser';
22
+ export type TcbUserStatus = 'ACTIVE' | 'BLOCKED';
23
+ export interface CreateUserOptions {
24
+ name: string;
25
+ uid?: string;
26
+ type?: TcbUserType;
27
+ password?: string;
28
+ userStatus?: TcbUserStatus;
29
+ nickName?: string;
30
+ phone?: string;
31
+ email?: string;
32
+ avatarUrl?: string;
33
+ description?: string;
34
+ }
35
+ export interface CreateUserResp {
36
+ Uid: string;
37
+ }
38
+ export interface DescribeUserListOptions {
39
+ pageNo?: number;
40
+ pageSize?: number;
41
+ name?: string;
42
+ nickName?: string;
43
+ phone?: string;
44
+ email?: string;
45
+ }
46
+ export interface TcbUserItem {
47
+ Uid?: string;
48
+ Name?: string;
49
+ Type?: 'internalUser' | 'externalUser';
50
+ UserStatus?: 'ACTIVE' | 'BLOCKED';
51
+ NickName?: string;
52
+ Phone?: string;
53
+ Email?: string;
54
+ AvatarUrl?: string;
55
+ Description?: string;
56
+ }
57
+ export interface DescribeUserListResp {
58
+ Total: number;
59
+ UserList: TcbUserItem[];
60
+ }
61
+ export interface ModifyUserOptions {
62
+ uid: string;
63
+ name?: string;
64
+ type?: TcbUserType;
65
+ password?: string;
66
+ userStatus?: TcbUserStatus;
67
+ nickName?: string;
68
+ phone?: string;
69
+ email?: string;
70
+ avatarUrl?: string;
71
+ description?: string;
72
+ }
73
+ export interface ModifyUserResp {
74
+ Success: boolean;
75
+ }
76
+ export interface DeleteUsersOptions {
77
+ uids: string[];
78
+ }
79
+ export interface DeleteUsersResp {
80
+ SuccessCount: number;
81
+ FailedCount: number;
82
+ }