@36node/auth-sdk 1.6.5 → 2.0.1
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.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk.gen.d.ts +68 -1159
- package/dist/sdk.gen.js +83 -52
- package/dist/sdk.gen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.gen.d.ts +377 -181
- package/dist/types.gen.js +389 -0
- package/dist/types.gen.js.map +1 -1
- package/package.json +7 -20
- package/dist/schemas.gen.d.ts +0 -1553
- package/dist/schemas.gen.js +0 -1579
- package/dist/schemas.gen.js.map +0 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
|
+
export type bindThirdPartyDto = {
|
|
2
|
+
username: string;
|
|
3
|
+
password: string;
|
|
4
|
+
source: 'github' | 'wechat';
|
|
5
|
+
login: string;
|
|
6
|
+
};
|
|
7
|
+
export type source = 'github' | 'wechat';
|
|
1
8
|
export type Captcha = {
|
|
2
9
|
code: string;
|
|
3
|
-
expireAt:
|
|
10
|
+
expireAt: Date;
|
|
4
11
|
key: string;
|
|
5
12
|
id: string;
|
|
6
|
-
createdAt?:
|
|
7
|
-
updatedAt?:
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
8
15
|
createdBy?: string;
|
|
9
16
|
updatedBy?: string;
|
|
10
17
|
};
|
|
11
18
|
export type CreateCaptchaDto = {
|
|
12
19
|
code?: string;
|
|
13
|
-
expireAt?:
|
|
20
|
+
expireAt?: Date;
|
|
14
21
|
key: string;
|
|
15
22
|
};
|
|
16
23
|
export type CreateEmailRecordDto = {
|
|
@@ -19,40 +26,40 @@ export type CreateEmailRecordDto = {
|
|
|
19
26
|
to: string;
|
|
20
27
|
subject: string;
|
|
21
28
|
content: string;
|
|
22
|
-
sentAt?:
|
|
29
|
+
sentAt?: Date;
|
|
23
30
|
};
|
|
24
31
|
export type CreateGroupDto = {
|
|
25
32
|
data?: string;
|
|
26
33
|
name: string;
|
|
27
|
-
permissions?: Array<string>;
|
|
34
|
+
permissions?: Array<(string)>;
|
|
28
35
|
active?: boolean;
|
|
29
36
|
userCount?: number;
|
|
30
37
|
};
|
|
31
38
|
export type CreateNamespaceDto = {
|
|
32
39
|
data?: string;
|
|
33
40
|
desc?: string;
|
|
34
|
-
labels?: Array<string>;
|
|
41
|
+
labels?: Array<(string)>;
|
|
35
42
|
name: string;
|
|
36
43
|
key: string;
|
|
37
44
|
ns?: string;
|
|
38
|
-
permissions?: Array<string>;
|
|
45
|
+
permissions?: Array<(string)>;
|
|
39
46
|
active?: boolean;
|
|
40
47
|
defaultPassword?: string;
|
|
41
48
|
exportable?: boolean;
|
|
42
49
|
userCount?: number;
|
|
43
50
|
};
|
|
44
51
|
export type CreateRoleDto = {
|
|
45
|
-
permissions?: Array<string>;
|
|
52
|
+
permissions?: Array<(string)>;
|
|
46
53
|
key: string;
|
|
47
54
|
name: string;
|
|
48
55
|
};
|
|
49
56
|
export type CreateSessionDto = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
refreshTokenExpireAt: Date;
|
|
58
|
+
subject: string;
|
|
59
|
+
permissions?: Array<(string)>;
|
|
60
|
+
groups?: Array<(string)>;
|
|
61
|
+
ns?: string;
|
|
62
|
+
type?: string;
|
|
56
63
|
};
|
|
57
64
|
export type CreateSmsRecordDto = {
|
|
58
65
|
status: SmsStatus;
|
|
@@ -60,7 +67,13 @@ export type CreateSmsRecordDto = {
|
|
|
60
67
|
sign: string;
|
|
61
68
|
template: string;
|
|
62
69
|
params?: string;
|
|
63
|
-
sentAt?:
|
|
70
|
+
sentAt?: Date;
|
|
71
|
+
};
|
|
72
|
+
export type createThirdPartyDto = {
|
|
73
|
+
source: ThirdPartySource;
|
|
74
|
+
login: string;
|
|
75
|
+
accessToken: string;
|
|
76
|
+
uid?: string;
|
|
64
77
|
};
|
|
65
78
|
export type CreateUserDto = {
|
|
66
79
|
password?: string;
|
|
@@ -70,7 +83,7 @@ export type CreateUserDto = {
|
|
|
70
83
|
email?: string;
|
|
71
84
|
name?: string;
|
|
72
85
|
identity?: string;
|
|
73
|
-
identityVerifiedAt?:
|
|
86
|
+
identityVerifiedAt?: Date;
|
|
74
87
|
identityVerified?: boolean;
|
|
75
88
|
intro?: string;
|
|
76
89
|
language?: string;
|
|
@@ -78,16 +91,15 @@ export type CreateUserDto = {
|
|
|
78
91
|
ns?: string;
|
|
79
92
|
phone?: string;
|
|
80
93
|
registerRegion?: string;
|
|
81
|
-
roles?: Array<string>;
|
|
82
|
-
super?: boolean;
|
|
94
|
+
roles?: Array<(string)>;
|
|
83
95
|
username?: string;
|
|
84
96
|
employeeId?: string;
|
|
85
|
-
permissions?: Array<string>;
|
|
86
|
-
groups?: Array<string>;
|
|
97
|
+
permissions?: Array<(string)>;
|
|
98
|
+
groups?: Array<(string)>;
|
|
87
99
|
active?: boolean;
|
|
88
100
|
status?: string;
|
|
89
|
-
expireAt?:
|
|
90
|
-
|
|
101
|
+
expireAt?: Date;
|
|
102
|
+
type?: string;
|
|
91
103
|
};
|
|
92
104
|
export type EmailRecord = {
|
|
93
105
|
status: EmailStatus;
|
|
@@ -95,23 +107,26 @@ export type EmailRecord = {
|
|
|
95
107
|
to: string;
|
|
96
108
|
subject: string;
|
|
97
109
|
content: string;
|
|
98
|
-
sentAt?:
|
|
110
|
+
sentAt?: Date;
|
|
99
111
|
id: string;
|
|
100
|
-
createdAt?:
|
|
101
|
-
updatedAt?:
|
|
112
|
+
createdAt?: Date;
|
|
113
|
+
updatedAt?: Date;
|
|
102
114
|
createdBy?: string;
|
|
103
115
|
updatedBy?: string;
|
|
104
116
|
};
|
|
105
117
|
export type EmailStatus = 'pending' | 'sent';
|
|
118
|
+
export type GithubDto = {
|
|
119
|
+
code: string;
|
|
120
|
+
};
|
|
106
121
|
export type Group = {
|
|
107
122
|
data?: string;
|
|
108
123
|
name: string;
|
|
109
|
-
permissions?: Array<string>;
|
|
124
|
+
permissions?: Array<(string)>;
|
|
110
125
|
active?: boolean;
|
|
111
126
|
userCount?: number;
|
|
112
127
|
id: string;
|
|
113
|
-
createdAt?:
|
|
114
|
-
updatedAt?:
|
|
128
|
+
createdAt?: Date;
|
|
129
|
+
updatedAt?: Date;
|
|
115
130
|
createdBy?: string;
|
|
116
131
|
updatedBy?: string;
|
|
117
132
|
};
|
|
@@ -138,28 +153,28 @@ export type LoginDto = {
|
|
|
138
153
|
password: string;
|
|
139
154
|
};
|
|
140
155
|
export type LogoutDto = {
|
|
141
|
-
|
|
156
|
+
refreshToken: string;
|
|
142
157
|
};
|
|
143
158
|
export type Namespace = {
|
|
144
159
|
data?: string;
|
|
145
160
|
desc?: string;
|
|
146
|
-
labels?: Array<string>;
|
|
161
|
+
labels?: Array<(string)>;
|
|
147
162
|
name: string;
|
|
148
163
|
key: string;
|
|
149
164
|
ns?: string;
|
|
150
|
-
permissions?: Array<string>;
|
|
165
|
+
permissions?: Array<(string)>;
|
|
151
166
|
active?: boolean;
|
|
152
167
|
defaultPassword?: string;
|
|
153
168
|
exportable?: boolean;
|
|
154
169
|
userCount?: number;
|
|
155
170
|
id: string;
|
|
156
|
-
createdAt?:
|
|
157
|
-
updatedAt?:
|
|
171
|
+
createdAt?: Date;
|
|
172
|
+
updatedAt?: Date;
|
|
158
173
|
createdBy?: string;
|
|
159
174
|
updatedBy?: string;
|
|
160
175
|
};
|
|
161
176
|
export type RefreshTokenDto = {
|
|
162
|
-
|
|
177
|
+
refreshToken: string;
|
|
163
178
|
};
|
|
164
179
|
export type Region = {
|
|
165
180
|
code: string;
|
|
@@ -191,10 +206,10 @@ export type ResetPasswordDto = {
|
|
|
191
206
|
export type Role = {
|
|
192
207
|
key: string;
|
|
193
208
|
name: string;
|
|
194
|
-
permissions: Array<string>;
|
|
209
|
+
permissions: Array<(string)>;
|
|
195
210
|
id: string;
|
|
196
|
-
createdAt?:
|
|
197
|
-
updatedAt?:
|
|
211
|
+
createdAt?: Date;
|
|
212
|
+
updatedAt?: Date;
|
|
198
213
|
createdBy?: string;
|
|
199
214
|
updatedBy?: string;
|
|
200
215
|
};
|
|
@@ -213,41 +228,39 @@ export type SendSmsDto = {
|
|
|
213
228
|
};
|
|
214
229
|
};
|
|
215
230
|
export type Session = {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
231
|
+
refreshTokenExpireAt: Date;
|
|
232
|
+
refreshToken: string;
|
|
233
|
+
subject: string;
|
|
234
|
+
permissions?: Array<(string)>;
|
|
235
|
+
groups?: Array<(string)>;
|
|
236
|
+
ns?: string;
|
|
237
|
+
type?: string;
|
|
223
238
|
id: string;
|
|
224
|
-
createdAt?:
|
|
225
|
-
updatedAt?:
|
|
239
|
+
createdAt?: Date;
|
|
240
|
+
updatedAt?: Date;
|
|
226
241
|
createdBy?: string;
|
|
227
242
|
updatedBy?: string;
|
|
228
243
|
};
|
|
229
244
|
export type SessionWithToken = {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
245
|
+
refreshTokenExpireAt: Date;
|
|
246
|
+
refreshToken: string;
|
|
247
|
+
subject: string;
|
|
248
|
+
permissions?: Array<(string)>;
|
|
249
|
+
groups?: Array<(string)>;
|
|
250
|
+
ns?: string;
|
|
251
|
+
type?: string;
|
|
237
252
|
id: string;
|
|
238
|
-
createdAt?:
|
|
239
|
-
updatedAt?:
|
|
253
|
+
createdAt?: Date;
|
|
254
|
+
updatedAt?: Date;
|
|
240
255
|
createdBy?: string;
|
|
241
256
|
updatedBy?: string;
|
|
242
257
|
token: string;
|
|
243
|
-
tokenExpireAt:
|
|
258
|
+
tokenExpireAt: Date;
|
|
244
259
|
};
|
|
245
260
|
export type SignTokenDto = {
|
|
246
261
|
expiresIn: string;
|
|
247
|
-
acl?: {
|
|
248
|
-
[key: string]: unknown;
|
|
249
|
-
};
|
|
250
262
|
uid: string;
|
|
263
|
+
permissions?: Array<(string)>;
|
|
251
264
|
};
|
|
252
265
|
export type SmsRecord = {
|
|
253
266
|
status: SmsStatus;
|
|
@@ -255,21 +268,33 @@ export type SmsRecord = {
|
|
|
255
268
|
sign: string;
|
|
256
269
|
template: string;
|
|
257
270
|
params?: string;
|
|
258
|
-
sentAt?:
|
|
271
|
+
sentAt?: Date;
|
|
259
272
|
id: string;
|
|
260
|
-
createdAt?:
|
|
261
|
-
updatedAt?:
|
|
273
|
+
createdAt?: Date;
|
|
274
|
+
updatedAt?: Date;
|
|
262
275
|
createdBy?: string;
|
|
263
276
|
updatedBy?: string;
|
|
264
277
|
};
|
|
265
278
|
export type SmsStatus = 'pending' | 'sent';
|
|
279
|
+
export type ThirdParty = {
|
|
280
|
+
source: ThirdPartySource;
|
|
281
|
+
login: string;
|
|
282
|
+
accessToken: string;
|
|
283
|
+
uid?: string;
|
|
284
|
+
id: string;
|
|
285
|
+
createdAt?: Date;
|
|
286
|
+
updatedAt?: Date;
|
|
287
|
+
createdBy?: string;
|
|
288
|
+
updatedBy?: string;
|
|
289
|
+
};
|
|
290
|
+
export type ThirdPartySource = 'github' | 'wechat';
|
|
266
291
|
export type Token = {
|
|
267
292
|
token: string;
|
|
268
|
-
tokenExpireAt:
|
|
293
|
+
tokenExpireAt: Date;
|
|
269
294
|
};
|
|
270
295
|
export type UpdateCaptchaDto = {
|
|
271
296
|
code?: string;
|
|
272
|
-
expireAt?:
|
|
297
|
+
expireAt?: Date;
|
|
273
298
|
key?: string;
|
|
274
299
|
};
|
|
275
300
|
export type UpdateEmailRecordDto = {
|
|
@@ -278,21 +303,21 @@ export type UpdateEmailRecordDto = {
|
|
|
278
303
|
to?: string;
|
|
279
304
|
subject?: string;
|
|
280
305
|
content?: string;
|
|
281
|
-
sentAt?:
|
|
306
|
+
sentAt?: Date;
|
|
282
307
|
};
|
|
283
308
|
export type UpdateGroupDto = {
|
|
284
309
|
data?: string;
|
|
285
310
|
name?: string;
|
|
286
|
-
permissions?: Array<string>;
|
|
311
|
+
permissions?: Array<(string)>;
|
|
287
312
|
active?: boolean;
|
|
288
313
|
userCount?: number;
|
|
289
314
|
};
|
|
290
315
|
export type UpdateNamespaceDto = {
|
|
291
316
|
data?: string;
|
|
292
317
|
desc?: string;
|
|
293
|
-
labels?: Array<string>;
|
|
318
|
+
labels?: Array<(string)>;
|
|
294
319
|
name?: string;
|
|
295
|
-
permissions?: Array<string>;
|
|
320
|
+
permissions?: Array<(string)>;
|
|
296
321
|
active?: boolean;
|
|
297
322
|
defaultPassword?: string;
|
|
298
323
|
exportable?: boolean;
|
|
@@ -304,15 +329,15 @@ export type UpdatePasswordDto = {
|
|
|
304
329
|
};
|
|
305
330
|
export type UpdateRoleDto = {
|
|
306
331
|
name?: string;
|
|
307
|
-
permissions?: Array<string>;
|
|
332
|
+
permissions?: Array<(string)>;
|
|
308
333
|
};
|
|
309
334
|
export type UpdateSessionDto = {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
335
|
+
refreshTokenExpireAt?: Date;
|
|
336
|
+
subject?: string;
|
|
337
|
+
permissions?: Array<(string)>;
|
|
338
|
+
groups?: Array<(string)>;
|
|
339
|
+
ns?: string;
|
|
340
|
+
type?: string;
|
|
316
341
|
};
|
|
317
342
|
export type UpdateSmsRecordDto = {
|
|
318
343
|
status?: SmsStatus;
|
|
@@ -320,7 +345,13 @@ export type UpdateSmsRecordDto = {
|
|
|
320
345
|
sign?: string;
|
|
321
346
|
template?: string;
|
|
322
347
|
params?: string;
|
|
323
|
-
sentAt?:
|
|
348
|
+
sentAt?: Date;
|
|
349
|
+
};
|
|
350
|
+
export type UpdateThirdPartyDto = {
|
|
351
|
+
source?: ThirdPartySource;
|
|
352
|
+
login?: string;
|
|
353
|
+
accessToken?: string;
|
|
354
|
+
uid?: string;
|
|
324
355
|
};
|
|
325
356
|
export type UpdateUserDto = {
|
|
326
357
|
readonly hasPassword?: boolean;
|
|
@@ -329,28 +360,27 @@ export type UpdateUserDto = {
|
|
|
329
360
|
email?: string;
|
|
330
361
|
name?: string;
|
|
331
362
|
identity?: string;
|
|
332
|
-
identityVerifiedAt?:
|
|
363
|
+
identityVerifiedAt?: Date;
|
|
333
364
|
identityVerified?: boolean;
|
|
334
365
|
intro?: string;
|
|
335
366
|
language?: string;
|
|
336
367
|
lastLoginIp?: string;
|
|
337
|
-
lastSeenAt?:
|
|
368
|
+
lastSeenAt?: Date;
|
|
338
369
|
nickname?: string;
|
|
339
370
|
ns?: string;
|
|
340
371
|
phone?: string;
|
|
341
372
|
registerIp?: string;
|
|
342
373
|
registerRegion?: string;
|
|
343
|
-
roles?: Array<string>;
|
|
344
|
-
super?: boolean;
|
|
374
|
+
roles?: Array<(string)>;
|
|
345
375
|
username?: string;
|
|
346
376
|
employeeId?: string;
|
|
347
|
-
permissions?: Array<string>;
|
|
348
|
-
groups?: Array<string>;
|
|
349
|
-
lastLoginAt?:
|
|
377
|
+
permissions?: Array<(string)>;
|
|
378
|
+
groups?: Array<(string)>;
|
|
379
|
+
lastLoginAt?: Date;
|
|
350
380
|
active?: boolean;
|
|
351
381
|
status?: string;
|
|
352
|
-
expireAt?:
|
|
353
|
-
|
|
382
|
+
expireAt?: Date;
|
|
383
|
+
type?: string;
|
|
354
384
|
};
|
|
355
385
|
export type User = {
|
|
356
386
|
password?: string;
|
|
@@ -360,31 +390,30 @@ export type User = {
|
|
|
360
390
|
email?: string;
|
|
361
391
|
name?: string;
|
|
362
392
|
identity?: string;
|
|
363
|
-
identityVerifiedAt?:
|
|
393
|
+
identityVerifiedAt?: Date;
|
|
364
394
|
identityVerified?: boolean;
|
|
365
395
|
intro?: string;
|
|
366
396
|
language?: string;
|
|
367
397
|
lastLoginIp?: string;
|
|
368
|
-
lastSeenAt?:
|
|
398
|
+
lastSeenAt?: Date;
|
|
369
399
|
nickname?: string;
|
|
370
400
|
ns?: string;
|
|
371
401
|
phone?: string;
|
|
372
402
|
registerIp?: string;
|
|
373
403
|
registerRegion?: string;
|
|
374
|
-
roles?: Array<string>;
|
|
375
|
-
super?: boolean;
|
|
404
|
+
roles?: Array<(string)>;
|
|
376
405
|
username?: string;
|
|
377
406
|
employeeId?: string;
|
|
378
|
-
permissions?: Array<string>;
|
|
379
|
-
groups?: Array<string>;
|
|
380
|
-
lastLoginAt?:
|
|
407
|
+
permissions?: Array<(string)>;
|
|
408
|
+
groups?: Array<(string)>;
|
|
409
|
+
lastLoginAt?: Date;
|
|
381
410
|
active?: boolean;
|
|
382
411
|
status?: string;
|
|
383
|
-
expireAt?:
|
|
384
|
-
|
|
412
|
+
expireAt?: Date;
|
|
413
|
+
type?: string;
|
|
385
414
|
id: string;
|
|
386
|
-
createdAt?:
|
|
387
|
-
updatedAt?:
|
|
415
|
+
createdAt?: Date;
|
|
416
|
+
updatedAt?: Date;
|
|
388
417
|
createdBy?: string;
|
|
389
418
|
updatedBy?: string;
|
|
390
419
|
};
|
|
@@ -395,59 +424,64 @@ export type VerifyCaptchaDto = {
|
|
|
395
424
|
export type VerifyCaptchaResultDto = {
|
|
396
425
|
success: boolean;
|
|
397
426
|
};
|
|
398
|
-
export type HelloResponse = HealthCheckResult;
|
|
427
|
+
export type HelloResponse = (HealthCheckResult);
|
|
399
428
|
export type HelloError = unknown;
|
|
429
|
+
export type CleanupAllDataResponse = (void);
|
|
430
|
+
export type CleanupAllDataError = unknown;
|
|
400
431
|
export type LoginData = {
|
|
401
432
|
body: LoginDto;
|
|
402
433
|
};
|
|
403
|
-
export type LoginResponse = SessionWithToken;
|
|
434
|
+
export type LoginResponse = (SessionWithToken);
|
|
404
435
|
export type LoginError = unknown;
|
|
436
|
+
export type LoginByGithubData = {
|
|
437
|
+
body: GithubDto;
|
|
438
|
+
};
|
|
439
|
+
export type LoginByGithubResponse = (SessionWithToken);
|
|
440
|
+
export type LoginByGithubError = unknown;
|
|
405
441
|
export type LoginByEmailData = {
|
|
406
442
|
body: LoginByEmailDto;
|
|
407
443
|
};
|
|
408
|
-
export type LoginByEmailResponse = SessionWithToken;
|
|
444
|
+
export type LoginByEmailResponse = (SessionWithToken);
|
|
409
445
|
export type LoginByEmailError = unknown;
|
|
410
446
|
export type LoginByPhoneData = {
|
|
411
447
|
body: LoginByPhoneDto;
|
|
412
448
|
};
|
|
413
|
-
export type LoginByPhoneResponse = SessionWithToken;
|
|
449
|
+
export type LoginByPhoneResponse = (SessionWithToken);
|
|
414
450
|
export type LoginByPhoneError = unknown;
|
|
415
451
|
export type LogoutData = {
|
|
416
452
|
body: LogoutDto;
|
|
417
453
|
};
|
|
418
|
-
export type LogoutResponse = void;
|
|
454
|
+
export type LogoutResponse = (void);
|
|
419
455
|
export type LogoutError = unknown;
|
|
420
456
|
export type RegisterData = {
|
|
421
457
|
body: RegisterDto;
|
|
422
458
|
};
|
|
423
|
-
export type RegisterResponse = User;
|
|
459
|
+
export type RegisterResponse = (User);
|
|
424
460
|
export type RegisterError = unknown;
|
|
425
461
|
export type RegisterByPhoneData = {
|
|
426
462
|
body: RegisterbyPhoneDto;
|
|
427
463
|
};
|
|
428
|
-
export type RegisterByPhoneResponse = User;
|
|
464
|
+
export type RegisterByPhoneResponse = (User);
|
|
429
465
|
export type RegisterByPhoneError = unknown;
|
|
430
466
|
export type RegisterByEmailData = {
|
|
431
467
|
body: RegisterByEmailDto;
|
|
432
468
|
};
|
|
433
|
-
export type RegisterByEmailResponse = User;
|
|
469
|
+
export type RegisterByEmailResponse = (User);
|
|
434
470
|
export type RegisterByEmailError = unknown;
|
|
435
471
|
export type SignTokenData = {
|
|
436
472
|
body: SignTokenDto;
|
|
437
473
|
};
|
|
438
|
-
export type SignTokenResponse = Token;
|
|
474
|
+
export type SignTokenResponse = (Token);
|
|
439
475
|
export type SignTokenError = unknown;
|
|
440
476
|
export type RefreshData = {
|
|
441
477
|
body: RefreshTokenDto;
|
|
442
478
|
};
|
|
443
|
-
export type RefreshResponse = SessionWithToken;
|
|
479
|
+
export type RefreshResponse = (SessionWithToken);
|
|
444
480
|
export type RefreshError = unknown;
|
|
445
|
-
export type CleanupAllDataResponse = void;
|
|
446
|
-
export type CleanupAllDataError = unknown;
|
|
447
481
|
export type CreateUserData = {
|
|
448
482
|
body: CreateUserDto;
|
|
449
483
|
};
|
|
450
|
-
export type CreateUserResponse = User;
|
|
484
|
+
export type CreateUserResponse = (User);
|
|
451
485
|
export type CreateUserError = unknown;
|
|
452
486
|
export type ListUsersData = {
|
|
453
487
|
query?: {
|
|
@@ -456,31 +490,31 @@ export type ListUsersData = {
|
|
|
456
490
|
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
457
491
|
active?: boolean;
|
|
458
492
|
email?: string;
|
|
459
|
-
expireAt_gte?:
|
|
460
|
-
expireAt_lte?:
|
|
461
|
-
groups?: Array<string>;
|
|
462
|
-
id?: Array<string>;
|
|
493
|
+
expireAt_gte?: Date;
|
|
494
|
+
expireAt_lte?: Date;
|
|
495
|
+
groups?: Array<(string)>;
|
|
496
|
+
id?: Array<(string)>;
|
|
463
497
|
name?: string;
|
|
464
498
|
name_like?: string;
|
|
465
499
|
nickname_like?: string;
|
|
466
500
|
ns_tree?: string;
|
|
467
501
|
phone?: string;
|
|
468
502
|
registerRegion?: string;
|
|
469
|
-
roles?: Array<string>;
|
|
503
|
+
roles?: Array<(string)>;
|
|
470
504
|
status?: string;
|
|
471
|
-
|
|
505
|
+
type?: string;
|
|
472
506
|
username?: string;
|
|
473
507
|
username_like?: string;
|
|
474
508
|
};
|
|
475
509
|
};
|
|
476
|
-
export type ListUsersResponse = Array<User
|
|
510
|
+
export type ListUsersResponse = (Array<User>);
|
|
477
511
|
export type ListUsersError = unknown;
|
|
478
512
|
export type GetUserData = {
|
|
479
513
|
path: {
|
|
480
514
|
userId: string;
|
|
481
515
|
};
|
|
482
516
|
};
|
|
483
|
-
export type GetUserResponse = User;
|
|
517
|
+
export type GetUserResponse = (User);
|
|
484
518
|
export type GetUserError = unknown;
|
|
485
519
|
export type UpdateUserData = {
|
|
486
520
|
body: UpdateUserDto;
|
|
@@ -488,29 +522,31 @@ export type UpdateUserData = {
|
|
|
488
522
|
userId: string;
|
|
489
523
|
};
|
|
490
524
|
};
|
|
491
|
-
export type UpdateUserResponse = User;
|
|
525
|
+
export type UpdateUserResponse = (User);
|
|
492
526
|
export type UpdateUserError = unknown;
|
|
493
527
|
export type DeleteUserData = {
|
|
494
528
|
path: {
|
|
495
529
|
userId: string;
|
|
496
530
|
};
|
|
497
531
|
};
|
|
498
|
-
export type DeleteUserResponse = void;
|
|
532
|
+
export type DeleteUserResponse = (void);
|
|
499
533
|
export type DeleteUserError = unknown;
|
|
500
|
-
export type
|
|
501
|
-
body:
|
|
534
|
+
export type UpsertUserByEmployeeData = {
|
|
535
|
+
body: CreateUserDto;
|
|
502
536
|
path: {
|
|
503
|
-
|
|
537
|
+
employeeId: string;
|
|
504
538
|
};
|
|
505
539
|
};
|
|
506
|
-
export type
|
|
507
|
-
|
|
540
|
+
export type UpsertUserByEmployeeResponse = (User | {
|
|
541
|
+
[key: string]: unknown;
|
|
542
|
+
});
|
|
543
|
+
export type UpsertUserByEmployeeError = unknown;
|
|
508
544
|
export type VerifyIdentityData = {
|
|
509
545
|
path: {
|
|
510
546
|
userId: string;
|
|
511
547
|
};
|
|
512
548
|
};
|
|
513
|
-
export type VerifyIdentityResponse = User;
|
|
549
|
+
export type VerifyIdentityResponse = (User);
|
|
514
550
|
export type VerifyIdentityError = unknown;
|
|
515
551
|
export type ResetPasswordData = {
|
|
516
552
|
body: ResetPasswordDto;
|
|
@@ -518,7 +554,7 @@ export type ResetPasswordData = {
|
|
|
518
554
|
userId: string;
|
|
519
555
|
};
|
|
520
556
|
};
|
|
521
|
-
export type ResetPasswordResponse = void;
|
|
557
|
+
export type ResetPasswordResponse = (void);
|
|
522
558
|
export type ResetPasswordError = unknown;
|
|
523
559
|
export type UpdatePasswordData = {
|
|
524
560
|
body: UpdatePasswordDto;
|
|
@@ -526,12 +562,12 @@ export type UpdatePasswordData = {
|
|
|
526
562
|
userId: string;
|
|
527
563
|
};
|
|
528
564
|
};
|
|
529
|
-
export type UpdatePasswordResponse = void;
|
|
565
|
+
export type UpdatePasswordResponse = (void);
|
|
530
566
|
export type UpdatePasswordError = unknown;
|
|
531
567
|
export type CreateNamespaceData = {
|
|
532
568
|
body: CreateNamespaceDto;
|
|
533
569
|
};
|
|
534
|
-
export type CreateNamespaceResponse = Namespace;
|
|
570
|
+
export type CreateNamespaceResponse = (Namespace);
|
|
535
571
|
export type CreateNamespaceError = unknown;
|
|
536
572
|
export type ListNamespacesData = {
|
|
537
573
|
query?: {
|
|
@@ -540,19 +576,19 @@ export type ListNamespacesData = {
|
|
|
540
576
|
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'key' | '-key' | 'name' | '-name';
|
|
541
577
|
key?: string;
|
|
542
578
|
key_tree?: string;
|
|
543
|
-
labels?: Array<string>;
|
|
579
|
+
labels?: Array<(string)>;
|
|
544
580
|
name_like?: string;
|
|
545
581
|
ns_tree?: string;
|
|
546
582
|
};
|
|
547
583
|
};
|
|
548
|
-
export type ListNamespacesResponse = Array<Namespace
|
|
584
|
+
export type ListNamespacesResponse = (Array<Namespace>);
|
|
549
585
|
export type ListNamespacesError = unknown;
|
|
550
586
|
export type GetNamespaceData = {
|
|
551
587
|
path: {
|
|
552
588
|
namespaceIdOrKey: string;
|
|
553
589
|
};
|
|
554
590
|
};
|
|
555
|
-
export type GetNamespaceResponse = Namespace;
|
|
591
|
+
export type GetNamespaceResponse = (Namespace);
|
|
556
592
|
export type GetNamespaceError = unknown;
|
|
557
593
|
export type UpdateNamespaceData = {
|
|
558
594
|
body: UpdateNamespaceDto;
|
|
@@ -560,38 +596,41 @@ export type UpdateNamespaceData = {
|
|
|
560
596
|
namespaceIdOrKey: string;
|
|
561
597
|
};
|
|
562
598
|
};
|
|
563
|
-
export type UpdateNamespaceResponse = Namespace;
|
|
599
|
+
export type UpdateNamespaceResponse = (Namespace);
|
|
564
600
|
export type UpdateNamespaceError = unknown;
|
|
565
601
|
export type DeleteNamespaceData = {
|
|
566
602
|
path: {
|
|
567
603
|
namespaceId: string;
|
|
568
604
|
};
|
|
569
605
|
};
|
|
570
|
-
export type DeleteNamespaceResponse = void;
|
|
606
|
+
export type DeleteNamespaceResponse = (void);
|
|
571
607
|
export type DeleteNamespaceError = unknown;
|
|
572
608
|
export type CreateSessionData = {
|
|
573
609
|
body: CreateSessionDto;
|
|
574
610
|
};
|
|
575
|
-
export type CreateSessionResponse = Session;
|
|
611
|
+
export type CreateSessionResponse = (Session);
|
|
576
612
|
export type CreateSessionError = unknown;
|
|
577
613
|
export type ListSessionsData = {
|
|
578
614
|
query?: {
|
|
579
615
|
_limit?: number;
|
|
580
616
|
_offset?: number;
|
|
581
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | '
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
617
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'refreshTokenExpireAt' | '-refreshTokenExpireAt';
|
|
618
|
+
groups?: Array<(string)>;
|
|
619
|
+
ns?: string;
|
|
620
|
+
permissions?: Array<(string)>;
|
|
621
|
+
refreshToken?: string;
|
|
622
|
+
subject?: string;
|
|
623
|
+
type?: string;
|
|
585
624
|
};
|
|
586
625
|
};
|
|
587
|
-
export type ListSessionsResponse = Array<Session
|
|
626
|
+
export type ListSessionsResponse = (Array<Session>);
|
|
588
627
|
export type ListSessionsError = unknown;
|
|
589
628
|
export type GetSessionData = {
|
|
590
629
|
path: {
|
|
591
630
|
sessionId: string;
|
|
592
631
|
};
|
|
593
632
|
};
|
|
594
|
-
export type GetSessionResponse = Session;
|
|
633
|
+
export type GetSessionResponse = (Session);
|
|
595
634
|
export type GetSessionError = unknown;
|
|
596
635
|
export type UpdateSessionData = {
|
|
597
636
|
body: UpdateSessionDto;
|
|
@@ -599,19 +638,19 @@ export type UpdateSessionData = {
|
|
|
599
638
|
sessionId: string;
|
|
600
639
|
};
|
|
601
640
|
};
|
|
602
|
-
export type UpdateSessionResponse = Session;
|
|
641
|
+
export type UpdateSessionResponse = (Session);
|
|
603
642
|
export type UpdateSessionError = unknown;
|
|
604
643
|
export type DeleteSessionData = {
|
|
605
644
|
path: {
|
|
606
645
|
sessionId: string;
|
|
607
646
|
};
|
|
608
647
|
};
|
|
609
|
-
export type DeleteSessionResponse = void;
|
|
648
|
+
export type DeleteSessionResponse = (void);
|
|
610
649
|
export type DeleteSessionError = unknown;
|
|
611
650
|
export type CreateGroupData = {
|
|
612
651
|
body: CreateGroupDto;
|
|
613
652
|
};
|
|
614
|
-
export type CreateGroupResponse = Group;
|
|
653
|
+
export type CreateGroupResponse = (Group);
|
|
615
654
|
export type CreateGroupError = unknown;
|
|
616
655
|
export type ListGroupsData = {
|
|
617
656
|
query?: {
|
|
@@ -623,14 +662,14 @@ export type ListGroupsData = {
|
|
|
623
662
|
name_like?: string;
|
|
624
663
|
};
|
|
625
664
|
};
|
|
626
|
-
export type ListGroupsResponse = Array<Group
|
|
665
|
+
export type ListGroupsResponse = (Array<Group>);
|
|
627
666
|
export type ListGroupsError = unknown;
|
|
628
667
|
export type GetGroupData = {
|
|
629
668
|
path: {
|
|
630
669
|
groupIdOrName: string;
|
|
631
670
|
};
|
|
632
671
|
};
|
|
633
|
-
export type GetGroupResponse = Group;
|
|
672
|
+
export type GetGroupResponse = (Group);
|
|
634
673
|
export type GetGroupError = unknown;
|
|
635
674
|
export type UpdateGroupData = {
|
|
636
675
|
body: UpdateGroupDto;
|
|
@@ -638,19 +677,19 @@ export type UpdateGroupData = {
|
|
|
638
677
|
groupId: string;
|
|
639
678
|
};
|
|
640
679
|
};
|
|
641
|
-
export type UpdateGroupResponse = Group;
|
|
680
|
+
export type UpdateGroupResponse = (Group);
|
|
642
681
|
export type UpdateGroupError = unknown;
|
|
643
682
|
export type DeleteGroupData = {
|
|
644
683
|
path: {
|
|
645
684
|
groupId: string;
|
|
646
685
|
};
|
|
647
686
|
};
|
|
648
|
-
export type DeleteGroupResponse = void;
|
|
687
|
+
export type DeleteGroupResponse = (void);
|
|
649
688
|
export type DeleteGroupError = unknown;
|
|
650
689
|
export type CreateCaptchaData = {
|
|
651
690
|
body: CreateCaptchaDto;
|
|
652
691
|
};
|
|
653
|
-
export type CreateCaptchaResponse = Captcha;
|
|
692
|
+
export type CreateCaptchaResponse = (Captcha);
|
|
654
693
|
export type CreateCaptchaError = unknown;
|
|
655
694
|
export type ListCaptchasData = {
|
|
656
695
|
query?: {
|
|
@@ -661,14 +700,14 @@ export type ListCaptchasData = {
|
|
|
661
700
|
key?: string;
|
|
662
701
|
};
|
|
663
702
|
};
|
|
664
|
-
export type ListCaptchasResponse = Array<Captcha
|
|
703
|
+
export type ListCaptchasResponse = (Array<Captcha>);
|
|
665
704
|
export type ListCaptchasError = unknown;
|
|
666
705
|
export type GetCaptchaData = {
|
|
667
706
|
path: {
|
|
668
707
|
captchaId: string;
|
|
669
708
|
};
|
|
670
709
|
};
|
|
671
|
-
export type GetCaptchaResponse = Captcha;
|
|
710
|
+
export type GetCaptchaResponse = (Captcha);
|
|
672
711
|
export type GetCaptchaError = unknown;
|
|
673
712
|
export type UpdateCaptchaData = {
|
|
674
713
|
body: UpdateCaptchaDto;
|
|
@@ -676,52 +715,52 @@ export type UpdateCaptchaData = {
|
|
|
676
715
|
captchaId: string;
|
|
677
716
|
};
|
|
678
717
|
};
|
|
679
|
-
export type UpdateCaptchaResponse = Captcha;
|
|
718
|
+
export type UpdateCaptchaResponse = (Captcha);
|
|
680
719
|
export type UpdateCaptchaError = unknown;
|
|
681
720
|
export type DeleteCaptchaData = {
|
|
682
721
|
path: {
|
|
683
722
|
captchaId: string;
|
|
684
723
|
};
|
|
685
724
|
};
|
|
686
|
-
export type DeleteCaptchaResponse = void;
|
|
725
|
+
export type DeleteCaptchaResponse = (void);
|
|
687
726
|
export type DeleteCaptchaError = unknown;
|
|
688
727
|
export type VerifyCaptchaData = {
|
|
689
728
|
body: VerifyCaptchaDto;
|
|
690
729
|
};
|
|
691
|
-
export type VerifyCaptchaResponse = VerifyCaptchaResultDto;
|
|
730
|
+
export type VerifyCaptchaResponse = (VerifyCaptchaResultDto);
|
|
692
731
|
export type VerifyCaptchaError = unknown;
|
|
693
732
|
export type SendEmailData = {
|
|
694
733
|
body: SendEmailDto;
|
|
695
734
|
};
|
|
696
|
-
export type SendEmailResponse = void;
|
|
735
|
+
export type SendEmailResponse = (void);
|
|
697
736
|
export type SendEmailError = unknown;
|
|
698
737
|
export type CreateEmailRecordData = {
|
|
699
738
|
body: CreateEmailRecordDto;
|
|
700
739
|
};
|
|
701
|
-
export type CreateEmailRecordResponse = EmailRecord;
|
|
740
|
+
export type CreateEmailRecordResponse = (EmailRecord);
|
|
702
741
|
export type CreateEmailRecordError = unknown;
|
|
703
742
|
export type ListEmailRecordsData = {
|
|
704
743
|
query?: {
|
|
705
744
|
_limit?: number;
|
|
706
745
|
_offset?: number;
|
|
707
746
|
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
708
|
-
createdAt_gt?:
|
|
709
|
-
createdAt_lt?:
|
|
747
|
+
createdAt_gt?: Date;
|
|
748
|
+
createdAt_lt?: Date;
|
|
710
749
|
from?: string;
|
|
711
|
-
sentAt_gt?:
|
|
712
|
-
sentAt_lt?:
|
|
750
|
+
sentAt_gt?: Date;
|
|
751
|
+
sentAt_lt?: Date;
|
|
713
752
|
status?: EmailStatus;
|
|
714
753
|
to?: string;
|
|
715
754
|
};
|
|
716
755
|
};
|
|
717
|
-
export type ListEmailRecordsResponse = Array<EmailRecord
|
|
756
|
+
export type ListEmailRecordsResponse = (Array<EmailRecord>);
|
|
718
757
|
export type ListEmailRecordsError = unknown;
|
|
719
758
|
export type GetEmailRecordData = {
|
|
720
759
|
path: {
|
|
721
760
|
emailRecordId: string;
|
|
722
761
|
};
|
|
723
762
|
};
|
|
724
|
-
export type GetEmailRecordResponse = EmailRecord;
|
|
763
|
+
export type GetEmailRecordResponse = (EmailRecord);
|
|
725
764
|
export type GetEmailRecordError = unknown;
|
|
726
765
|
export type UpdateEmailRecordData = {
|
|
727
766
|
body: UpdateEmailRecordDto;
|
|
@@ -729,47 +768,47 @@ export type UpdateEmailRecordData = {
|
|
|
729
768
|
emailRecordId: string;
|
|
730
769
|
};
|
|
731
770
|
};
|
|
732
|
-
export type UpdateEmailRecordResponse = EmailRecord;
|
|
771
|
+
export type UpdateEmailRecordResponse = (EmailRecord);
|
|
733
772
|
export type UpdateEmailRecordError = unknown;
|
|
734
773
|
export type DeleteEmailRecordData = {
|
|
735
774
|
path: {
|
|
736
775
|
emailRecordId: string;
|
|
737
776
|
};
|
|
738
777
|
};
|
|
739
|
-
export type DeleteEmailRecordResponse = void;
|
|
778
|
+
export type DeleteEmailRecordResponse = (void);
|
|
740
779
|
export type DeleteEmailRecordError = unknown;
|
|
741
780
|
export type SendSmsData = {
|
|
742
781
|
body: SendSmsDto;
|
|
743
782
|
};
|
|
744
|
-
export type SendSmsResponse = void;
|
|
783
|
+
export type SendSmsResponse = (void);
|
|
745
784
|
export type SendSmsError = unknown;
|
|
746
785
|
export type CreateSmsRecordData = {
|
|
747
786
|
body: CreateSmsRecordDto;
|
|
748
787
|
};
|
|
749
|
-
export type CreateSmsRecordResponse = SmsRecord;
|
|
788
|
+
export type CreateSmsRecordResponse = (SmsRecord);
|
|
750
789
|
export type CreateSmsRecordError = unknown;
|
|
751
790
|
export type ListSmsRecordsData = {
|
|
752
791
|
query?: {
|
|
753
792
|
_limit?: number;
|
|
754
793
|
_offset?: number;
|
|
755
794
|
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
756
|
-
createdAt_gt?:
|
|
757
|
-
createdAt_lt?:
|
|
795
|
+
createdAt_gt?: Date;
|
|
796
|
+
createdAt_lt?: Date;
|
|
758
797
|
phone?: string;
|
|
759
|
-
sentAt_gt?:
|
|
760
|
-
sentAt_lt?:
|
|
798
|
+
sentAt_gt?: Date;
|
|
799
|
+
sentAt_lt?: Date;
|
|
761
800
|
sign?: string;
|
|
762
801
|
status?: SmsStatus;
|
|
763
802
|
};
|
|
764
803
|
};
|
|
765
|
-
export type ListSmsRecordsResponse = Array<SmsRecord
|
|
804
|
+
export type ListSmsRecordsResponse = (Array<SmsRecord>);
|
|
766
805
|
export type ListSmsRecordsError = unknown;
|
|
767
806
|
export type GetSmsRecordData = {
|
|
768
807
|
path: {
|
|
769
808
|
smsRecordId: string;
|
|
770
809
|
};
|
|
771
810
|
};
|
|
772
|
-
export type GetSmsRecordResponse = SmsRecord;
|
|
811
|
+
export type GetSmsRecordResponse = (SmsRecord);
|
|
773
812
|
export type GetSmsRecordError = unknown;
|
|
774
813
|
export type UpdateSmsRecordData = {
|
|
775
814
|
body: UpdateSmsRecordDto;
|
|
@@ -777,23 +816,66 @@ export type UpdateSmsRecordData = {
|
|
|
777
816
|
smsRecordId: string;
|
|
778
817
|
};
|
|
779
818
|
};
|
|
780
|
-
export type UpdateSmsRecordResponse = SmsRecord;
|
|
819
|
+
export type UpdateSmsRecordResponse = (SmsRecord);
|
|
781
820
|
export type UpdateSmsRecordError = unknown;
|
|
782
821
|
export type DeleteSmsRecordData = {
|
|
783
822
|
path: {
|
|
784
823
|
smsRecordId: string;
|
|
785
824
|
};
|
|
786
825
|
};
|
|
787
|
-
export type DeleteSmsRecordResponse = void;
|
|
826
|
+
export type DeleteSmsRecordResponse = (void);
|
|
788
827
|
export type DeleteSmsRecordError = unknown;
|
|
789
|
-
export type
|
|
828
|
+
export type CreateThirdPartyData = {
|
|
829
|
+
body: createThirdPartyDto;
|
|
830
|
+
};
|
|
831
|
+
export type CreateThirdPartyResponse = (ThirdParty);
|
|
832
|
+
export type CreateThirdPartyError = unknown;
|
|
833
|
+
export type ListThirdPartyData = {
|
|
834
|
+
query?: {
|
|
835
|
+
_limit?: number;
|
|
836
|
+
_offset?: number;
|
|
837
|
+
accessToken?: string;
|
|
838
|
+
login?: string;
|
|
839
|
+
source?: ThirdPartySource;
|
|
840
|
+
uid?: string;
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
export type ListThirdPartyResponse = (Array<{
|
|
844
|
+
[key: string]: unknown;
|
|
845
|
+
}> | Array<ThirdParty>);
|
|
846
|
+
export type ListThirdPartyError = unknown;
|
|
847
|
+
export type GetThirdPartyData = {
|
|
848
|
+
path: {
|
|
849
|
+
id: string;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
export type GetThirdPartyResponse = ({
|
|
853
|
+
[key: string]: unknown;
|
|
854
|
+
} | ThirdParty);
|
|
855
|
+
export type GetThirdPartyError = unknown;
|
|
856
|
+
export type UpdateThirdPartyData = {
|
|
857
|
+
body: UpdateThirdPartyDto;
|
|
858
|
+
path: {
|
|
859
|
+
id: string;
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
export type UpdateThirdPartyResponse = ({
|
|
863
|
+
[key: string]: unknown;
|
|
864
|
+
} | ThirdParty);
|
|
865
|
+
export type UpdateThirdPartyError = unknown;
|
|
866
|
+
export type BindThirdPartyData = {
|
|
867
|
+
body: bindThirdPartyDto;
|
|
868
|
+
};
|
|
869
|
+
export type BindThirdPartyResponse = (ThirdParty);
|
|
870
|
+
export type BindThirdPartyError = unknown;
|
|
871
|
+
export type ListIndustriesResponse = (Array<Industry>);
|
|
790
872
|
export type ListIndustriesError = unknown;
|
|
791
|
-
export type ListRegionsResponse = Array<Region
|
|
873
|
+
export type ListRegionsResponse = (Array<Region>);
|
|
792
874
|
export type ListRegionsError = unknown;
|
|
793
875
|
export type CreateRoleData = {
|
|
794
876
|
body: CreateRoleDto;
|
|
795
877
|
};
|
|
796
|
-
export type CreateRoleResponse = Role;
|
|
878
|
+
export type CreateRoleResponse = (Role);
|
|
797
879
|
export type CreateRoleError = unknown;
|
|
798
880
|
export type ListRolesData = {
|
|
799
881
|
query?: {
|
|
@@ -805,14 +887,14 @@ export type ListRolesData = {
|
|
|
805
887
|
name_like?: string;
|
|
806
888
|
};
|
|
807
889
|
};
|
|
808
|
-
export type ListRolesResponse = Array<Role
|
|
890
|
+
export type ListRolesResponse = (Array<Role>);
|
|
809
891
|
export type ListRolesError = unknown;
|
|
810
892
|
export type GetRoleData = {
|
|
811
893
|
path: {
|
|
812
894
|
roleIdOrKey: string;
|
|
813
895
|
};
|
|
814
896
|
};
|
|
815
|
-
export type GetRoleResponse = Role;
|
|
897
|
+
export type GetRoleResponse = (Role);
|
|
816
898
|
export type GetRoleError = unknown;
|
|
817
899
|
export type UpdateRoleData = {
|
|
818
900
|
body: UpdateRoleDto;
|
|
@@ -820,12 +902,126 @@ export type UpdateRoleData = {
|
|
|
820
902
|
roleId: string;
|
|
821
903
|
};
|
|
822
904
|
};
|
|
823
|
-
export type UpdateRoleResponse = Role;
|
|
905
|
+
export type UpdateRoleResponse = (Role);
|
|
824
906
|
export type UpdateRoleError = unknown;
|
|
825
907
|
export type DeleteRoleData = {
|
|
826
908
|
path: {
|
|
827
909
|
roleId: string;
|
|
828
910
|
};
|
|
829
911
|
};
|
|
830
|
-
export type DeleteRoleResponse = void;
|
|
912
|
+
export type DeleteRoleResponse = (void);
|
|
831
913
|
export type DeleteRoleError = unknown;
|
|
914
|
+
export type LoginResponseTransformer = (data: any) => Promise<LoginResponse>;
|
|
915
|
+
export type SessionWithTokenModelResponseTransformer = (data: any) => SessionWithToken;
|
|
916
|
+
export declare const SessionWithTokenModelResponseTransformer: SessionWithTokenModelResponseTransformer;
|
|
917
|
+
export declare const LoginResponseTransformer: LoginResponseTransformer;
|
|
918
|
+
export type LoginByGithubResponseTransformer = (data: any) => Promise<LoginByGithubResponse>;
|
|
919
|
+
export declare const LoginByGithubResponseTransformer: LoginByGithubResponseTransformer;
|
|
920
|
+
export type LoginByEmailResponseTransformer = (data: any) => Promise<LoginByEmailResponse>;
|
|
921
|
+
export declare const LoginByEmailResponseTransformer: LoginByEmailResponseTransformer;
|
|
922
|
+
export type LoginByPhoneResponseTransformer = (data: any) => Promise<LoginByPhoneResponse>;
|
|
923
|
+
export declare const LoginByPhoneResponseTransformer: LoginByPhoneResponseTransformer;
|
|
924
|
+
export type RegisterResponseTransformer = (data: any) => Promise<RegisterResponse>;
|
|
925
|
+
export type UserModelResponseTransformer = (data: any) => User;
|
|
926
|
+
export declare const UserModelResponseTransformer: UserModelResponseTransformer;
|
|
927
|
+
export declare const RegisterResponseTransformer: RegisterResponseTransformer;
|
|
928
|
+
export type RegisterByPhoneResponseTransformer = (data: any) => Promise<RegisterByPhoneResponse>;
|
|
929
|
+
export declare const RegisterByPhoneResponseTransformer: RegisterByPhoneResponseTransformer;
|
|
930
|
+
export type RegisterByEmailResponseTransformer = (data: any) => Promise<RegisterByEmailResponse>;
|
|
931
|
+
export declare const RegisterByEmailResponseTransformer: RegisterByEmailResponseTransformer;
|
|
932
|
+
export type SignTokenResponseTransformer = (data: any) => Promise<SignTokenResponse>;
|
|
933
|
+
export type TokenModelResponseTransformer = (data: any) => Token;
|
|
934
|
+
export declare const TokenModelResponseTransformer: TokenModelResponseTransformer;
|
|
935
|
+
export declare const SignTokenResponseTransformer: SignTokenResponseTransformer;
|
|
936
|
+
export type RefreshResponseTransformer = (data: any) => Promise<RefreshResponse>;
|
|
937
|
+
export declare const RefreshResponseTransformer: RefreshResponseTransformer;
|
|
938
|
+
export type CreateUserResponseTransformer = (data: any) => Promise<CreateUserResponse>;
|
|
939
|
+
export declare const CreateUserResponseTransformer: CreateUserResponseTransformer;
|
|
940
|
+
export type ListUsersResponseTransformer = (data: any) => Promise<ListUsersResponse>;
|
|
941
|
+
export declare const ListUsersResponseTransformer: ListUsersResponseTransformer;
|
|
942
|
+
export type GetUserResponseTransformer = (data: any) => Promise<GetUserResponse>;
|
|
943
|
+
export declare const GetUserResponseTransformer: GetUserResponseTransformer;
|
|
944
|
+
export type UpdateUserResponseTransformer = (data: any) => Promise<UpdateUserResponse>;
|
|
945
|
+
export declare const UpdateUserResponseTransformer: UpdateUserResponseTransformer;
|
|
946
|
+
export type VerifyIdentityResponseTransformer = (data: any) => Promise<VerifyIdentityResponse>;
|
|
947
|
+
export declare const VerifyIdentityResponseTransformer: VerifyIdentityResponseTransformer;
|
|
948
|
+
export type CreateNamespaceResponseTransformer = (data: any) => Promise<CreateNamespaceResponse>;
|
|
949
|
+
export type NamespaceModelResponseTransformer = (data: any) => Namespace;
|
|
950
|
+
export declare const NamespaceModelResponseTransformer: NamespaceModelResponseTransformer;
|
|
951
|
+
export declare const CreateNamespaceResponseTransformer: CreateNamespaceResponseTransformer;
|
|
952
|
+
export type ListNamespacesResponseTransformer = (data: any) => Promise<ListNamespacesResponse>;
|
|
953
|
+
export declare const ListNamespacesResponseTransformer: ListNamespacesResponseTransformer;
|
|
954
|
+
export type GetNamespaceResponseTransformer = (data: any) => Promise<GetNamespaceResponse>;
|
|
955
|
+
export declare const GetNamespaceResponseTransformer: GetNamespaceResponseTransformer;
|
|
956
|
+
export type UpdateNamespaceResponseTransformer = (data: any) => Promise<UpdateNamespaceResponse>;
|
|
957
|
+
export declare const UpdateNamespaceResponseTransformer: UpdateNamespaceResponseTransformer;
|
|
958
|
+
export type CreateSessionResponseTransformer = (data: any) => Promise<CreateSessionResponse>;
|
|
959
|
+
export type SessionModelResponseTransformer = (data: any) => Session;
|
|
960
|
+
export declare const SessionModelResponseTransformer: SessionModelResponseTransformer;
|
|
961
|
+
export declare const CreateSessionResponseTransformer: CreateSessionResponseTransformer;
|
|
962
|
+
export type ListSessionsResponseTransformer = (data: any) => Promise<ListSessionsResponse>;
|
|
963
|
+
export declare const ListSessionsResponseTransformer: ListSessionsResponseTransformer;
|
|
964
|
+
export type GetSessionResponseTransformer = (data: any) => Promise<GetSessionResponse>;
|
|
965
|
+
export declare const GetSessionResponseTransformer: GetSessionResponseTransformer;
|
|
966
|
+
export type UpdateSessionResponseTransformer = (data: any) => Promise<UpdateSessionResponse>;
|
|
967
|
+
export declare const UpdateSessionResponseTransformer: UpdateSessionResponseTransformer;
|
|
968
|
+
export type CreateGroupResponseTransformer = (data: any) => Promise<CreateGroupResponse>;
|
|
969
|
+
export type GroupModelResponseTransformer = (data: any) => Group;
|
|
970
|
+
export declare const GroupModelResponseTransformer: GroupModelResponseTransformer;
|
|
971
|
+
export declare const CreateGroupResponseTransformer: CreateGroupResponseTransformer;
|
|
972
|
+
export type ListGroupsResponseTransformer = (data: any) => Promise<ListGroupsResponse>;
|
|
973
|
+
export declare const ListGroupsResponseTransformer: ListGroupsResponseTransformer;
|
|
974
|
+
export type GetGroupResponseTransformer = (data: any) => Promise<GetGroupResponse>;
|
|
975
|
+
export declare const GetGroupResponseTransformer: GetGroupResponseTransformer;
|
|
976
|
+
export type UpdateGroupResponseTransformer = (data: any) => Promise<UpdateGroupResponse>;
|
|
977
|
+
export declare const UpdateGroupResponseTransformer: UpdateGroupResponseTransformer;
|
|
978
|
+
export type CreateCaptchaResponseTransformer = (data: any) => Promise<CreateCaptchaResponse>;
|
|
979
|
+
export type CaptchaModelResponseTransformer = (data: any) => Captcha;
|
|
980
|
+
export declare const CaptchaModelResponseTransformer: CaptchaModelResponseTransformer;
|
|
981
|
+
export declare const CreateCaptchaResponseTransformer: CreateCaptchaResponseTransformer;
|
|
982
|
+
export type ListCaptchasResponseTransformer = (data: any) => Promise<ListCaptchasResponse>;
|
|
983
|
+
export declare const ListCaptchasResponseTransformer: ListCaptchasResponseTransformer;
|
|
984
|
+
export type GetCaptchaResponseTransformer = (data: any) => Promise<GetCaptchaResponse>;
|
|
985
|
+
export declare const GetCaptchaResponseTransformer: GetCaptchaResponseTransformer;
|
|
986
|
+
export type UpdateCaptchaResponseTransformer = (data: any) => Promise<UpdateCaptchaResponse>;
|
|
987
|
+
export declare const UpdateCaptchaResponseTransformer: UpdateCaptchaResponseTransformer;
|
|
988
|
+
export type CreateEmailRecordResponseTransformer = (data: any) => Promise<CreateEmailRecordResponse>;
|
|
989
|
+
export type EmailRecordModelResponseTransformer = (data: any) => EmailRecord;
|
|
990
|
+
export declare const EmailRecordModelResponseTransformer: EmailRecordModelResponseTransformer;
|
|
991
|
+
export declare const CreateEmailRecordResponseTransformer: CreateEmailRecordResponseTransformer;
|
|
992
|
+
export type ListEmailRecordsResponseTransformer = (data: any) => Promise<ListEmailRecordsResponse>;
|
|
993
|
+
export declare const ListEmailRecordsResponseTransformer: ListEmailRecordsResponseTransformer;
|
|
994
|
+
export type GetEmailRecordResponseTransformer = (data: any) => Promise<GetEmailRecordResponse>;
|
|
995
|
+
export declare const GetEmailRecordResponseTransformer: GetEmailRecordResponseTransformer;
|
|
996
|
+
export type UpdateEmailRecordResponseTransformer = (data: any) => Promise<UpdateEmailRecordResponse>;
|
|
997
|
+
export declare const UpdateEmailRecordResponseTransformer: UpdateEmailRecordResponseTransformer;
|
|
998
|
+
export type CreateSmsRecordResponseTransformer = (data: any) => Promise<CreateSmsRecordResponse>;
|
|
999
|
+
export type SmsRecordModelResponseTransformer = (data: any) => SmsRecord;
|
|
1000
|
+
export declare const SmsRecordModelResponseTransformer: SmsRecordModelResponseTransformer;
|
|
1001
|
+
export declare const CreateSmsRecordResponseTransformer: CreateSmsRecordResponseTransformer;
|
|
1002
|
+
export type ListSmsRecordsResponseTransformer = (data: any) => Promise<ListSmsRecordsResponse>;
|
|
1003
|
+
export declare const ListSmsRecordsResponseTransformer: ListSmsRecordsResponseTransformer;
|
|
1004
|
+
export type GetSmsRecordResponseTransformer = (data: any) => Promise<GetSmsRecordResponse>;
|
|
1005
|
+
export declare const GetSmsRecordResponseTransformer: GetSmsRecordResponseTransformer;
|
|
1006
|
+
export type UpdateSmsRecordResponseTransformer = (data: any) => Promise<UpdateSmsRecordResponse>;
|
|
1007
|
+
export declare const UpdateSmsRecordResponseTransformer: UpdateSmsRecordResponseTransformer;
|
|
1008
|
+
export type CreateThirdPartyResponseTransformer = (data: any) => Promise<CreateThirdPartyResponse>;
|
|
1009
|
+
export type ThirdPartyModelResponseTransformer = (data: any) => ThirdParty;
|
|
1010
|
+
export declare const ThirdPartyModelResponseTransformer: ThirdPartyModelResponseTransformer;
|
|
1011
|
+
export declare const CreateThirdPartyResponseTransformer: CreateThirdPartyResponseTransformer;
|
|
1012
|
+
export type BindThirdPartyResponseTransformer = (data: any) => Promise<BindThirdPartyResponse>;
|
|
1013
|
+
export declare const BindThirdPartyResponseTransformer: BindThirdPartyResponseTransformer;
|
|
1014
|
+
export type ListIndustriesResponseTransformer = (data: any) => Promise<ListIndustriesResponse>;
|
|
1015
|
+
export type IndustryModelResponseTransformer = (data: any) => Industry;
|
|
1016
|
+
export declare const IndustryModelResponseTransformer: IndustryModelResponseTransformer;
|
|
1017
|
+
export declare const ListIndustriesResponseTransformer: ListIndustriesResponseTransformer;
|
|
1018
|
+
export type CreateRoleResponseTransformer = (data: any) => Promise<CreateRoleResponse>;
|
|
1019
|
+
export type RoleModelResponseTransformer = (data: any) => Role;
|
|
1020
|
+
export declare const RoleModelResponseTransformer: RoleModelResponseTransformer;
|
|
1021
|
+
export declare const CreateRoleResponseTransformer: CreateRoleResponseTransformer;
|
|
1022
|
+
export type ListRolesResponseTransformer = (data: any) => Promise<ListRolesResponse>;
|
|
1023
|
+
export declare const ListRolesResponseTransformer: ListRolesResponseTransformer;
|
|
1024
|
+
export type GetRoleResponseTransformer = (data: any) => Promise<GetRoleResponse>;
|
|
1025
|
+
export declare const GetRoleResponseTransformer: GetRoleResponseTransformer;
|
|
1026
|
+
export type UpdateRoleResponseTransformer = (data: any) => Promise<UpdateRoleResponse>;
|
|
1027
|
+
export declare const UpdateRoleResponseTransformer: UpdateRoleResponseTransformer;
|