@36node/auth-sdk 2.14.0 → 2.14.2
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/gen/sdk.gen.d.ts +19 -11
- package/dist/gen/sdk.gen.js +77 -12
- package/dist/gen/sdk.gen.js.map +1 -1
- package/dist/gen/types.gen.d.ts +439 -141
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -30,12 +30,6 @@ export type SessionWithToken = {
|
|
|
30
30
|
token: string;
|
|
31
31
|
tokenExpireAt: Date;
|
|
32
32
|
};
|
|
33
|
-
export type GetAuthorizerQuery = {
|
|
34
|
-
provider: string;
|
|
35
|
-
redirectUri?: string;
|
|
36
|
-
responseType?: string;
|
|
37
|
-
state?: string;
|
|
38
|
-
};
|
|
39
33
|
export type Authorizer = {
|
|
40
34
|
url: string;
|
|
41
35
|
};
|
|
@@ -172,12 +166,8 @@ export type Captcha = {
|
|
|
172
166
|
createdBy?: string;
|
|
173
167
|
updatedBy?: string;
|
|
174
168
|
};
|
|
175
|
-
export type
|
|
176
|
-
|
|
177
|
-
code?: string;
|
|
178
|
-
key?: string;
|
|
179
|
-
_limit?: number;
|
|
180
|
-
_offset?: number;
|
|
169
|
+
export type CountResult = {
|
|
170
|
+
count: number;
|
|
181
171
|
};
|
|
182
172
|
export type UpdateCaptchaDto = {
|
|
183
173
|
code?: string;
|
|
@@ -219,18 +209,6 @@ export type EmailRecord = {
|
|
|
219
209
|
createdBy?: string;
|
|
220
210
|
updatedBy?: string;
|
|
221
211
|
};
|
|
222
|
-
export type ListEmailRecordsQuery = {
|
|
223
|
-
status?: EmailStatus;
|
|
224
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
225
|
-
createdAt_gt?: Date;
|
|
226
|
-
createdAt_lt?: Date;
|
|
227
|
-
sentAt_gt?: Date;
|
|
228
|
-
sentAt_lt?: Date;
|
|
229
|
-
from?: string;
|
|
230
|
-
to?: string;
|
|
231
|
-
_limit?: number;
|
|
232
|
-
_offset?: number;
|
|
233
|
-
};
|
|
234
212
|
export type UpdateEmailRecordDto = {
|
|
235
213
|
status?: EmailStatus;
|
|
236
214
|
from?: string;
|
|
@@ -256,15 +234,6 @@ export type Group = {
|
|
|
256
234
|
createdBy?: string;
|
|
257
235
|
updatedBy?: string;
|
|
258
236
|
};
|
|
259
|
-
export type ListGroupsQuery = {
|
|
260
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
261
|
-
id?: Array<string>;
|
|
262
|
-
name_like?: string;
|
|
263
|
-
name?: string;
|
|
264
|
-
active?: boolean;
|
|
265
|
-
_limit?: number;
|
|
266
|
-
_offset?: number;
|
|
267
|
-
};
|
|
268
237
|
export type UpdateGroupDto = {
|
|
269
238
|
data?: string;
|
|
270
239
|
name?: string;
|
|
@@ -300,19 +269,6 @@ export type Namespace = {
|
|
|
300
269
|
createdBy?: string;
|
|
301
270
|
updatedBy?: string;
|
|
302
271
|
};
|
|
303
|
-
export type ListNamespacesQuery = {
|
|
304
|
-
key?: string | Array<string>;
|
|
305
|
-
key_start?: string | Array<string>;
|
|
306
|
-
key_tree?: string;
|
|
307
|
-
ns?: string | Array<string>;
|
|
308
|
-
ns_start?: string | Array<string>;
|
|
309
|
-
ns_tree?: string;
|
|
310
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'key' | '-key' | 'name' | '-name';
|
|
311
|
-
name_like?: string;
|
|
312
|
-
labels?: Array<string>;
|
|
313
|
-
_limit?: number;
|
|
314
|
-
_offset?: number;
|
|
315
|
-
};
|
|
316
272
|
export type UpdateNamespaceDto = {
|
|
317
273
|
data?: string;
|
|
318
274
|
desc?: string;
|
|
@@ -351,20 +307,6 @@ export type Session = {
|
|
|
351
307
|
createdBy?: string;
|
|
352
308
|
updatedBy?: string;
|
|
353
309
|
};
|
|
354
|
-
export type ListSessionsQuery = {
|
|
355
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
356
|
-
refreshToken?: string;
|
|
357
|
-
subject?: string;
|
|
358
|
-
source?: string;
|
|
359
|
-
permissions?: Array<string>;
|
|
360
|
-
roles?: Array<string>;
|
|
361
|
-
groups?: Array<string>;
|
|
362
|
-
ns?: string;
|
|
363
|
-
type?: string;
|
|
364
|
-
oneTimeUse?: boolean;
|
|
365
|
-
_limit?: number;
|
|
366
|
-
_offset?: number;
|
|
367
|
-
};
|
|
368
310
|
export type UpdateSessionDto = {
|
|
369
311
|
expireAt?: Date;
|
|
370
312
|
subject?: string;
|
|
@@ -406,18 +348,6 @@ export type SmsRecord = {
|
|
|
406
348
|
createdBy?: string;
|
|
407
349
|
updatedBy?: string;
|
|
408
350
|
};
|
|
409
|
-
export type ListSmsRecordsQuery = {
|
|
410
|
-
status?: SmsStatus;
|
|
411
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
412
|
-
createdAt_gt?: Date;
|
|
413
|
-
createdAt_lt?: Date;
|
|
414
|
-
sentAt_gt?: Date;
|
|
415
|
-
sentAt_lt?: Date;
|
|
416
|
-
phone?: string;
|
|
417
|
-
sign?: string;
|
|
418
|
-
_limit?: number;
|
|
419
|
-
_offset?: number;
|
|
420
|
-
};
|
|
421
351
|
export type UpdateSmsRecordDto = {
|
|
422
352
|
status?: SmsStatus;
|
|
423
353
|
phone?: string;
|
|
@@ -453,19 +383,6 @@ export type ThirdParty = {
|
|
|
453
383
|
createdBy?: string;
|
|
454
384
|
updatedBy?: string;
|
|
455
385
|
};
|
|
456
|
-
export type ListThirdPartyQuery = {
|
|
457
|
-
source?: string;
|
|
458
|
-
tid?: string;
|
|
459
|
-
accessToken?: string;
|
|
460
|
-
expireAt?: number;
|
|
461
|
-
tokenType?: string;
|
|
462
|
-
refreshToken?: string;
|
|
463
|
-
refreshTokenExpireAt?: number;
|
|
464
|
-
uid?: string;
|
|
465
|
-
data?: string;
|
|
466
|
-
_limit?: number;
|
|
467
|
-
_offset?: number;
|
|
468
|
-
};
|
|
469
386
|
export type UpdateThirdPartyDto = {
|
|
470
387
|
source?: string;
|
|
471
388
|
tid?: string;
|
|
@@ -513,35 +430,6 @@ export type CreateUserDto = {
|
|
|
513
430
|
expireAt?: Date;
|
|
514
431
|
type?: string;
|
|
515
432
|
};
|
|
516
|
-
export type ListUsersQuery = {
|
|
517
|
-
id?: Array<string>;
|
|
518
|
-
ns?: string | Array<string>;
|
|
519
|
-
ns_start?: string | Array<string>;
|
|
520
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
521
|
-
name_like?: string;
|
|
522
|
-
username_like?: string;
|
|
523
|
-
nickname_like?: string;
|
|
524
|
-
ns_tree?: string;
|
|
525
|
-
expireAt_gte?: Date;
|
|
526
|
-
expireAt_lte?: Date;
|
|
527
|
-
active?: boolean;
|
|
528
|
-
email?: string;
|
|
529
|
-
groups?: Array<string>;
|
|
530
|
-
inviter?: string;
|
|
531
|
-
labels?: Array<string>;
|
|
532
|
-
name?: string;
|
|
533
|
-
phone?: string;
|
|
534
|
-
registerRegion?: string;
|
|
535
|
-
roles?: Array<string>;
|
|
536
|
-
status?: string;
|
|
537
|
-
type?: string;
|
|
538
|
-
username?: string;
|
|
539
|
-
_limit?: number;
|
|
540
|
-
_offset?: number;
|
|
541
|
-
};
|
|
542
|
-
export type CountResult = {
|
|
543
|
-
count: number;
|
|
544
|
-
};
|
|
545
433
|
export type UpdateUserDto = {
|
|
546
434
|
readonly hasPassword?: boolean;
|
|
547
435
|
avatar?: string;
|
|
@@ -603,9 +491,6 @@ export type UserAggregateResult = {
|
|
|
603
491
|
createdAt?: DateGroup;
|
|
604
492
|
count: number;
|
|
605
493
|
};
|
|
606
|
-
export type ListIndustriesQuery = {
|
|
607
|
-
depth?: number;
|
|
608
|
-
};
|
|
609
494
|
export type Industry = {
|
|
610
495
|
code: string;
|
|
611
496
|
name: string;
|
|
@@ -637,6 +522,82 @@ export type UpdateRoleDto = {
|
|
|
637
522
|
name?: string;
|
|
638
523
|
permissions?: Array<string>;
|
|
639
524
|
};
|
|
525
|
+
export type ListUsersQuery = {
|
|
526
|
+
id?: Array<string>;
|
|
527
|
+
ns?: string | Array<string>;
|
|
528
|
+
ns_start?: string | Array<string>;
|
|
529
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
530
|
+
name_like?: string;
|
|
531
|
+
username_like?: string;
|
|
532
|
+
nickname_like?: string;
|
|
533
|
+
ns_tree?: string;
|
|
534
|
+
expireAt_gte?: Date;
|
|
535
|
+
expireAt_lte?: Date;
|
|
536
|
+
active?: boolean;
|
|
537
|
+
email?: string;
|
|
538
|
+
groups?: Array<string>;
|
|
539
|
+
inviter?: string;
|
|
540
|
+
labels?: Array<string>;
|
|
541
|
+
name?: string;
|
|
542
|
+
phone?: string;
|
|
543
|
+
registerRegion?: string;
|
|
544
|
+
roles?: Array<string>;
|
|
545
|
+
status?: string;
|
|
546
|
+
type?: string;
|
|
547
|
+
username?: string;
|
|
548
|
+
_limit?: number;
|
|
549
|
+
_offset?: number;
|
|
550
|
+
};
|
|
551
|
+
export type ListNamespacesQuery = {
|
|
552
|
+
key?: string | Array<string>;
|
|
553
|
+
key_start?: string | Array<string>;
|
|
554
|
+
key_tree?: string;
|
|
555
|
+
ns?: string | Array<string>;
|
|
556
|
+
ns_start?: string | Array<string>;
|
|
557
|
+
ns_tree?: string;
|
|
558
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'key' | '-key' | 'name' | '-name';
|
|
559
|
+
name_like?: string;
|
|
560
|
+
labels?: Array<string>;
|
|
561
|
+
_limit?: number;
|
|
562
|
+
_offset?: number;
|
|
563
|
+
};
|
|
564
|
+
export type GetAuthorizerQuery = {
|
|
565
|
+
provider: string;
|
|
566
|
+
redirectUri?: string;
|
|
567
|
+
responseType?: string;
|
|
568
|
+
state?: string;
|
|
569
|
+
};
|
|
570
|
+
export type ListCaptchasQuery = {
|
|
571
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
572
|
+
code?: string;
|
|
573
|
+
key?: string;
|
|
574
|
+
_limit?: number;
|
|
575
|
+
_offset?: number;
|
|
576
|
+
};
|
|
577
|
+
export type ListEmailRecordsQuery = {
|
|
578
|
+
status?: EmailStatus;
|
|
579
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
580
|
+
createdAt_gt?: Date;
|
|
581
|
+
createdAt_lt?: Date;
|
|
582
|
+
sentAt_gt?: Date;
|
|
583
|
+
sentAt_lt?: Date;
|
|
584
|
+
from?: string;
|
|
585
|
+
to?: string;
|
|
586
|
+
_limit?: number;
|
|
587
|
+
_offset?: number;
|
|
588
|
+
};
|
|
589
|
+
export type ListGroupsQuery = {
|
|
590
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
591
|
+
id?: Array<string>;
|
|
592
|
+
name_like?: string;
|
|
593
|
+
name?: string;
|
|
594
|
+
active?: boolean;
|
|
595
|
+
_limit?: number;
|
|
596
|
+
_offset?: number;
|
|
597
|
+
};
|
|
598
|
+
export type ListIndustriesQuery = {
|
|
599
|
+
depth?: number;
|
|
600
|
+
};
|
|
640
601
|
export type ListRolesQuery = {
|
|
641
602
|
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
642
603
|
name_like?: string;
|
|
@@ -645,6 +606,45 @@ export type ListRolesQuery = {
|
|
|
645
606
|
_limit?: number;
|
|
646
607
|
_offset?: number;
|
|
647
608
|
};
|
|
609
|
+
export type ListSessionsQuery = {
|
|
610
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
611
|
+
refreshToken?: string;
|
|
612
|
+
subject?: string;
|
|
613
|
+
source?: string;
|
|
614
|
+
permissions?: Array<string>;
|
|
615
|
+
roles?: Array<string>;
|
|
616
|
+
groups?: Array<string>;
|
|
617
|
+
ns?: string;
|
|
618
|
+
type?: string;
|
|
619
|
+
oneTimeUse?: boolean;
|
|
620
|
+
_limit?: number;
|
|
621
|
+
_offset?: number;
|
|
622
|
+
};
|
|
623
|
+
export type ListSmsRecordsQuery = {
|
|
624
|
+
status?: SmsStatus;
|
|
625
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
626
|
+
createdAt_gt?: Date;
|
|
627
|
+
createdAt_lt?: Date;
|
|
628
|
+
sentAt_gt?: Date;
|
|
629
|
+
sentAt_lt?: Date;
|
|
630
|
+
phone?: string;
|
|
631
|
+
sign?: string;
|
|
632
|
+
_limit?: number;
|
|
633
|
+
_offset?: number;
|
|
634
|
+
};
|
|
635
|
+
export type ListThirdPartyQuery = {
|
|
636
|
+
source?: string;
|
|
637
|
+
tid?: string;
|
|
638
|
+
accessToken?: string;
|
|
639
|
+
expireAt?: number;
|
|
640
|
+
tokenType?: string;
|
|
641
|
+
refreshToken?: string;
|
|
642
|
+
refreshTokenExpireAt?: number;
|
|
643
|
+
uid?: string;
|
|
644
|
+
data?: string;
|
|
645
|
+
_limit?: number;
|
|
646
|
+
_offset?: number;
|
|
647
|
+
};
|
|
648
648
|
export type UserWritable = {
|
|
649
649
|
password?: string;
|
|
650
650
|
avatar?: string;
|
|
@@ -779,7 +779,10 @@ export type GetAuthorizerData = {
|
|
|
779
779
|
body?: never;
|
|
780
780
|
path?: never;
|
|
781
781
|
query: {
|
|
782
|
-
|
|
782
|
+
provider: string;
|
|
783
|
+
redirectUri?: string;
|
|
784
|
+
responseType?: string;
|
|
785
|
+
state?: string;
|
|
783
786
|
};
|
|
784
787
|
url: '/auth/authorizer';
|
|
785
788
|
};
|
|
@@ -910,8 +913,12 @@ export type ResetPasswordByEmailResponse = ResetPasswordByEmailResponses[keyof R
|
|
|
910
913
|
export type ListCaptchasData = {
|
|
911
914
|
body?: never;
|
|
912
915
|
path?: never;
|
|
913
|
-
query
|
|
914
|
-
|
|
916
|
+
query?: {
|
|
917
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
918
|
+
code?: string;
|
|
919
|
+
key?: string;
|
|
920
|
+
_limit?: number;
|
|
921
|
+
_offset?: number;
|
|
915
922
|
};
|
|
916
923
|
url: '/captchas';
|
|
917
924
|
};
|
|
@@ -929,6 +936,23 @@ export type CreateCaptchaResponses = {
|
|
|
929
936
|
201: Captcha;
|
|
930
937
|
};
|
|
931
938
|
export type CreateCaptchaResponse = CreateCaptchaResponses[keyof CreateCaptchaResponses];
|
|
939
|
+
export type CountCaptchasData = {
|
|
940
|
+
body?: never;
|
|
941
|
+
path?: never;
|
|
942
|
+
query?: {
|
|
943
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
944
|
+
code?: string;
|
|
945
|
+
key?: string;
|
|
946
|
+
_limit?: number;
|
|
947
|
+
_offset?: number;
|
|
948
|
+
};
|
|
949
|
+
url: '/captchas/@count';
|
|
950
|
+
};
|
|
951
|
+
export type CountCaptchasResponses = {
|
|
952
|
+
200: CountResult;
|
|
953
|
+
201: CountResult;
|
|
954
|
+
};
|
|
955
|
+
export type CountCaptchasResponse = CountCaptchasResponses[keyof CountCaptchasResponses];
|
|
932
956
|
export type DeleteCaptchaData = {
|
|
933
957
|
body?: never;
|
|
934
958
|
path: {
|
|
@@ -988,8 +1012,17 @@ export type SendEmailResponse = SendEmailResponses[keyof SendEmailResponses];
|
|
|
988
1012
|
export type ListEmailRecordsData = {
|
|
989
1013
|
body?: never;
|
|
990
1014
|
path?: never;
|
|
991
|
-
query
|
|
992
|
-
|
|
1015
|
+
query?: {
|
|
1016
|
+
status?: EmailStatus;
|
|
1017
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
1018
|
+
createdAt_gt?: Date;
|
|
1019
|
+
createdAt_lt?: Date;
|
|
1020
|
+
sentAt_gt?: Date;
|
|
1021
|
+
sentAt_lt?: Date;
|
|
1022
|
+
from?: string;
|
|
1023
|
+
to?: string;
|
|
1024
|
+
_limit?: number;
|
|
1025
|
+
_offset?: number;
|
|
993
1026
|
};
|
|
994
1027
|
url: '/email/records';
|
|
995
1028
|
};
|
|
@@ -1007,6 +1040,28 @@ export type CreateEmailRecordResponses = {
|
|
|
1007
1040
|
201: EmailRecord;
|
|
1008
1041
|
};
|
|
1009
1042
|
export type CreateEmailRecordResponse = CreateEmailRecordResponses[keyof CreateEmailRecordResponses];
|
|
1043
|
+
export type CountEmailRecordsData = {
|
|
1044
|
+
body?: never;
|
|
1045
|
+
path?: never;
|
|
1046
|
+
query?: {
|
|
1047
|
+
status?: EmailStatus;
|
|
1048
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
1049
|
+
createdAt_gt?: Date;
|
|
1050
|
+
createdAt_lt?: Date;
|
|
1051
|
+
sentAt_gt?: Date;
|
|
1052
|
+
sentAt_lt?: Date;
|
|
1053
|
+
from?: string;
|
|
1054
|
+
to?: string;
|
|
1055
|
+
_limit?: number;
|
|
1056
|
+
_offset?: number;
|
|
1057
|
+
};
|
|
1058
|
+
url: '/email/records/@count';
|
|
1059
|
+
};
|
|
1060
|
+
export type CountEmailRecordsResponses = {
|
|
1061
|
+
200: CountResult;
|
|
1062
|
+
201: CountResult;
|
|
1063
|
+
};
|
|
1064
|
+
export type CountEmailRecordsResponse = CountEmailRecordsResponses[keyof CountEmailRecordsResponses];
|
|
1010
1065
|
export type DeleteEmailRecordData = {
|
|
1011
1066
|
body?: never;
|
|
1012
1067
|
path: {
|
|
@@ -1046,8 +1101,14 @@ export type UpdateEmailRecordResponse = UpdateEmailRecordResponses[keyof UpdateE
|
|
|
1046
1101
|
export type ListGroupsData = {
|
|
1047
1102
|
body?: never;
|
|
1048
1103
|
path?: never;
|
|
1049
|
-
query
|
|
1050
|
-
|
|
1104
|
+
query?: {
|
|
1105
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
1106
|
+
id?: Array<string>;
|
|
1107
|
+
name_like?: string;
|
|
1108
|
+
name?: string;
|
|
1109
|
+
active?: boolean;
|
|
1110
|
+
_limit?: number;
|
|
1111
|
+
_offset?: number;
|
|
1051
1112
|
};
|
|
1052
1113
|
url: '/groups';
|
|
1053
1114
|
};
|
|
@@ -1065,6 +1126,25 @@ export type CreateGroupResponses = {
|
|
|
1065
1126
|
201: Group;
|
|
1066
1127
|
};
|
|
1067
1128
|
export type CreateGroupResponse = CreateGroupResponses[keyof CreateGroupResponses];
|
|
1129
|
+
export type CountGroupsData = {
|
|
1130
|
+
body?: never;
|
|
1131
|
+
path?: never;
|
|
1132
|
+
query?: {
|
|
1133
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
1134
|
+
id?: Array<string>;
|
|
1135
|
+
name_like?: string;
|
|
1136
|
+
name?: string;
|
|
1137
|
+
active?: boolean;
|
|
1138
|
+
_limit?: number;
|
|
1139
|
+
_offset?: number;
|
|
1140
|
+
};
|
|
1141
|
+
url: '/groups/@count';
|
|
1142
|
+
};
|
|
1143
|
+
export type CountGroupsResponses = {
|
|
1144
|
+
200: CountResult;
|
|
1145
|
+
201: CountResult;
|
|
1146
|
+
};
|
|
1147
|
+
export type CountGroupsResponse = CountGroupsResponses[keyof CountGroupsResponses];
|
|
1068
1148
|
export type GetGroupData = {
|
|
1069
1149
|
body?: never;
|
|
1070
1150
|
path: {
|
|
@@ -1119,8 +1199,18 @@ export type UpsertGroupByNameResponse = UpsertGroupByNameResponses[keyof UpsertG
|
|
|
1119
1199
|
export type ListNamespacesData = {
|
|
1120
1200
|
body?: never;
|
|
1121
1201
|
path?: never;
|
|
1122
|
-
query
|
|
1123
|
-
|
|
1202
|
+
query?: {
|
|
1203
|
+
key?: string | Array<string>;
|
|
1204
|
+
key_start?: string | Array<string>;
|
|
1205
|
+
key_tree?: string;
|
|
1206
|
+
ns?: string | Array<string>;
|
|
1207
|
+
ns_start?: string | Array<string>;
|
|
1208
|
+
ns_tree?: string;
|
|
1209
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'key' | '-key' | 'name' | '-name';
|
|
1210
|
+
name_like?: string;
|
|
1211
|
+
labels?: Array<string>;
|
|
1212
|
+
_limit?: number;
|
|
1213
|
+
_offset?: number;
|
|
1124
1214
|
};
|
|
1125
1215
|
url: '/namespaces';
|
|
1126
1216
|
};
|
|
@@ -1138,6 +1228,29 @@ export type CreateNamespaceResponses = {
|
|
|
1138
1228
|
201: Namespace;
|
|
1139
1229
|
};
|
|
1140
1230
|
export type CreateNamespaceResponse = CreateNamespaceResponses[keyof CreateNamespaceResponses];
|
|
1231
|
+
export type CountNamespacesData = {
|
|
1232
|
+
body?: never;
|
|
1233
|
+
path?: never;
|
|
1234
|
+
query?: {
|
|
1235
|
+
key?: string | Array<string>;
|
|
1236
|
+
key_start?: string | Array<string>;
|
|
1237
|
+
key_tree?: string;
|
|
1238
|
+
ns?: string | Array<string>;
|
|
1239
|
+
ns_start?: string | Array<string>;
|
|
1240
|
+
ns_tree?: string;
|
|
1241
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'key' | '-key' | 'name' | '-name';
|
|
1242
|
+
name_like?: string;
|
|
1243
|
+
labels?: Array<string>;
|
|
1244
|
+
_limit?: number;
|
|
1245
|
+
_offset?: number;
|
|
1246
|
+
};
|
|
1247
|
+
url: '/namespaces/@count';
|
|
1248
|
+
};
|
|
1249
|
+
export type CountNamespacesResponses = {
|
|
1250
|
+
200: CountResult;
|
|
1251
|
+
201: CountResult;
|
|
1252
|
+
};
|
|
1253
|
+
export type CountNamespacesResponse = CountNamespacesResponses[keyof CountNamespacesResponses];
|
|
1141
1254
|
export type GetNamespaceData = {
|
|
1142
1255
|
body?: never;
|
|
1143
1256
|
path: {
|
|
@@ -1177,8 +1290,19 @@ export type DeleteNamespaceResponse = DeleteNamespaceResponses[keyof DeleteNames
|
|
|
1177
1290
|
export type ListSessionsData = {
|
|
1178
1291
|
body?: never;
|
|
1179
1292
|
path?: never;
|
|
1180
|
-
query
|
|
1181
|
-
|
|
1293
|
+
query?: {
|
|
1294
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
1295
|
+
refreshToken?: string;
|
|
1296
|
+
subject?: string;
|
|
1297
|
+
source?: string;
|
|
1298
|
+
permissions?: Array<string>;
|
|
1299
|
+
roles?: Array<string>;
|
|
1300
|
+
groups?: Array<string>;
|
|
1301
|
+
ns?: string;
|
|
1302
|
+
type?: string;
|
|
1303
|
+
oneTimeUse?: boolean;
|
|
1304
|
+
_limit?: number;
|
|
1305
|
+
_offset?: number;
|
|
1182
1306
|
};
|
|
1183
1307
|
url: '/sessions';
|
|
1184
1308
|
};
|
|
@@ -1196,6 +1320,30 @@ export type CreateSessionResponses = {
|
|
|
1196
1320
|
201: Session;
|
|
1197
1321
|
};
|
|
1198
1322
|
export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
|
|
1323
|
+
export type CountSessionsData = {
|
|
1324
|
+
body?: never;
|
|
1325
|
+
path?: never;
|
|
1326
|
+
query?: {
|
|
1327
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
1328
|
+
refreshToken?: string;
|
|
1329
|
+
subject?: string;
|
|
1330
|
+
source?: string;
|
|
1331
|
+
permissions?: Array<string>;
|
|
1332
|
+
roles?: Array<string>;
|
|
1333
|
+
groups?: Array<string>;
|
|
1334
|
+
ns?: string;
|
|
1335
|
+
type?: string;
|
|
1336
|
+
oneTimeUse?: boolean;
|
|
1337
|
+
_limit?: number;
|
|
1338
|
+
_offset?: number;
|
|
1339
|
+
};
|
|
1340
|
+
url: '/sessions/@count';
|
|
1341
|
+
};
|
|
1342
|
+
export type CountSessionsResponses = {
|
|
1343
|
+
200: CountResult;
|
|
1344
|
+
201: CountResult;
|
|
1345
|
+
};
|
|
1346
|
+
export type CountSessionsResponse = CountSessionsResponses[keyof CountSessionsResponses];
|
|
1199
1347
|
export type DeleteSessionData = {
|
|
1200
1348
|
body?: never;
|
|
1201
1349
|
path: {
|
|
@@ -1257,8 +1405,17 @@ export type SendSmsResponse = SendSmsResponses[keyof SendSmsResponses];
|
|
|
1257
1405
|
export type ListSmsRecordsData = {
|
|
1258
1406
|
body?: never;
|
|
1259
1407
|
path?: never;
|
|
1260
|
-
query
|
|
1261
|
-
|
|
1408
|
+
query?: {
|
|
1409
|
+
status?: SmsStatus;
|
|
1410
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
1411
|
+
createdAt_gt?: Date;
|
|
1412
|
+
createdAt_lt?: Date;
|
|
1413
|
+
sentAt_gt?: Date;
|
|
1414
|
+
sentAt_lt?: Date;
|
|
1415
|
+
phone?: string;
|
|
1416
|
+
sign?: string;
|
|
1417
|
+
_limit?: number;
|
|
1418
|
+
_offset?: number;
|
|
1262
1419
|
};
|
|
1263
1420
|
url: '/sms/records';
|
|
1264
1421
|
};
|
|
@@ -1276,6 +1433,28 @@ export type CreateSmsRecordResponses = {
|
|
|
1276
1433
|
201: SmsRecord;
|
|
1277
1434
|
};
|
|
1278
1435
|
export type CreateSmsRecordResponse = CreateSmsRecordResponses[keyof CreateSmsRecordResponses];
|
|
1436
|
+
export type CountSmsRecordsData = {
|
|
1437
|
+
body?: never;
|
|
1438
|
+
path?: never;
|
|
1439
|
+
query?: {
|
|
1440
|
+
status?: SmsStatus;
|
|
1441
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
1442
|
+
createdAt_gt?: Date;
|
|
1443
|
+
createdAt_lt?: Date;
|
|
1444
|
+
sentAt_gt?: Date;
|
|
1445
|
+
sentAt_lt?: Date;
|
|
1446
|
+
phone?: string;
|
|
1447
|
+
sign?: string;
|
|
1448
|
+
_limit?: number;
|
|
1449
|
+
_offset?: number;
|
|
1450
|
+
};
|
|
1451
|
+
url: '/sms/records/@count';
|
|
1452
|
+
};
|
|
1453
|
+
export type CountSmsRecordsResponses = {
|
|
1454
|
+
200: CountResult;
|
|
1455
|
+
201: CountResult;
|
|
1456
|
+
};
|
|
1457
|
+
export type CountSmsRecordsResponse = CountSmsRecordsResponses[keyof CountSmsRecordsResponses];
|
|
1279
1458
|
export type DeleteSmsRecordData = {
|
|
1280
1459
|
body?: never;
|
|
1281
1460
|
path: {
|
|
@@ -1315,8 +1494,18 @@ export type UpdateSmsRecordResponse = UpdateSmsRecordResponses[keyof UpdateSmsRe
|
|
|
1315
1494
|
export type ListThirdPartyData = {
|
|
1316
1495
|
body?: never;
|
|
1317
1496
|
path?: never;
|
|
1318
|
-
query
|
|
1319
|
-
|
|
1497
|
+
query?: {
|
|
1498
|
+
source?: string;
|
|
1499
|
+
tid?: string;
|
|
1500
|
+
accessToken?: string;
|
|
1501
|
+
expireAt?: number;
|
|
1502
|
+
tokenType?: string;
|
|
1503
|
+
refreshToken?: string;
|
|
1504
|
+
refreshTokenExpireAt?: number;
|
|
1505
|
+
uid?: string;
|
|
1506
|
+
data?: string;
|
|
1507
|
+
_limit?: number;
|
|
1508
|
+
_offset?: number;
|
|
1320
1509
|
};
|
|
1321
1510
|
url: '/third-parties';
|
|
1322
1511
|
};
|
|
@@ -1337,6 +1526,28 @@ export type CreateThirdPartyResponses = {
|
|
|
1337
1526
|
201: ThirdParty;
|
|
1338
1527
|
};
|
|
1339
1528
|
export type CreateThirdPartyResponse = CreateThirdPartyResponses[keyof CreateThirdPartyResponses];
|
|
1529
|
+
export type CountThirdPartyData = {
|
|
1530
|
+
body?: never;
|
|
1531
|
+
path?: never;
|
|
1532
|
+
query?: {
|
|
1533
|
+
source?: string;
|
|
1534
|
+
tid?: string;
|
|
1535
|
+
accessToken?: string;
|
|
1536
|
+
expireAt?: number;
|
|
1537
|
+
tokenType?: string;
|
|
1538
|
+
refreshToken?: string;
|
|
1539
|
+
refreshTokenExpireAt?: number;
|
|
1540
|
+
uid?: string;
|
|
1541
|
+
data?: string;
|
|
1542
|
+
_limit?: number;
|
|
1543
|
+
_offset?: number;
|
|
1544
|
+
};
|
|
1545
|
+
url: '/third-parties/@count';
|
|
1546
|
+
};
|
|
1547
|
+
export type CountThirdPartyResponses = {
|
|
1548
|
+
201: CountResult;
|
|
1549
|
+
};
|
|
1550
|
+
export type CountThirdPartyResponse = CountThirdPartyResponses[keyof CountThirdPartyResponses];
|
|
1340
1551
|
export type GetThirdPartyData = {
|
|
1341
1552
|
body?: never;
|
|
1342
1553
|
path: {
|
|
@@ -1412,8 +1623,31 @@ export type BindThirdPartyResponse = BindThirdPartyResponses[keyof BindThirdPart
|
|
|
1412
1623
|
export type ListUsersData = {
|
|
1413
1624
|
body?: never;
|
|
1414
1625
|
path?: never;
|
|
1415
|
-
query
|
|
1416
|
-
|
|
1626
|
+
query?: {
|
|
1627
|
+
id?: Array<string>;
|
|
1628
|
+
ns?: string | Array<string>;
|
|
1629
|
+
ns_start?: string | Array<string>;
|
|
1630
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
1631
|
+
name_like?: string;
|
|
1632
|
+
username_like?: string;
|
|
1633
|
+
nickname_like?: string;
|
|
1634
|
+
ns_tree?: string;
|
|
1635
|
+
expireAt_gte?: Date;
|
|
1636
|
+
expireAt_lte?: Date;
|
|
1637
|
+
active?: boolean;
|
|
1638
|
+
email?: string;
|
|
1639
|
+
groups?: Array<string>;
|
|
1640
|
+
inviter?: string;
|
|
1641
|
+
labels?: Array<string>;
|
|
1642
|
+
name?: string;
|
|
1643
|
+
phone?: string;
|
|
1644
|
+
registerRegion?: string;
|
|
1645
|
+
roles?: Array<string>;
|
|
1646
|
+
status?: string;
|
|
1647
|
+
type?: string;
|
|
1648
|
+
username?: string;
|
|
1649
|
+
_limit?: number;
|
|
1650
|
+
_offset?: number;
|
|
1417
1651
|
};
|
|
1418
1652
|
url: '/users';
|
|
1419
1653
|
};
|
|
@@ -1434,10 +1668,33 @@ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
|
|
|
1434
1668
|
export type CountUsersData = {
|
|
1435
1669
|
body?: never;
|
|
1436
1670
|
path?: never;
|
|
1437
|
-
query
|
|
1438
|
-
|
|
1671
|
+
query?: {
|
|
1672
|
+
id?: Array<string>;
|
|
1673
|
+
ns?: string | Array<string>;
|
|
1674
|
+
ns_start?: string | Array<string>;
|
|
1675
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
1676
|
+
name_like?: string;
|
|
1677
|
+
username_like?: string;
|
|
1678
|
+
nickname_like?: string;
|
|
1679
|
+
ns_tree?: string;
|
|
1680
|
+
expireAt_gte?: Date;
|
|
1681
|
+
expireAt_lte?: Date;
|
|
1682
|
+
active?: boolean;
|
|
1683
|
+
email?: string;
|
|
1684
|
+
groups?: Array<string>;
|
|
1685
|
+
inviter?: string;
|
|
1686
|
+
labels?: Array<string>;
|
|
1687
|
+
name?: string;
|
|
1688
|
+
phone?: string;
|
|
1689
|
+
registerRegion?: string;
|
|
1690
|
+
roles?: Array<string>;
|
|
1691
|
+
status?: string;
|
|
1692
|
+
type?: string;
|
|
1693
|
+
username?: string;
|
|
1694
|
+
_limit?: number;
|
|
1695
|
+
_offset?: number;
|
|
1439
1696
|
};
|
|
1440
|
-
url: '/users/@
|
|
1697
|
+
url: '/users/@count';
|
|
1441
1698
|
};
|
|
1442
1699
|
export type CountUsersResponses = {
|
|
1443
1700
|
200: CountResult;
|
|
@@ -1567,8 +1824,31 @@ export type UpdatePasswordResponse = UpdatePasswordResponses[keyof UpdatePasswor
|
|
|
1567
1824
|
export type AggregateUsersData = {
|
|
1568
1825
|
body: AggregateUserDto;
|
|
1569
1826
|
path?: never;
|
|
1570
|
-
query
|
|
1571
|
-
|
|
1827
|
+
query?: {
|
|
1828
|
+
id?: Array<string>;
|
|
1829
|
+
ns?: string | Array<string>;
|
|
1830
|
+
ns_start?: string | Array<string>;
|
|
1831
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
1832
|
+
name_like?: string;
|
|
1833
|
+
username_like?: string;
|
|
1834
|
+
nickname_like?: string;
|
|
1835
|
+
ns_tree?: string;
|
|
1836
|
+
expireAt_gte?: Date;
|
|
1837
|
+
expireAt_lte?: Date;
|
|
1838
|
+
active?: boolean;
|
|
1839
|
+
email?: string;
|
|
1840
|
+
groups?: Array<string>;
|
|
1841
|
+
inviter?: string;
|
|
1842
|
+
labels?: Array<string>;
|
|
1843
|
+
name?: string;
|
|
1844
|
+
phone?: string;
|
|
1845
|
+
registerRegion?: string;
|
|
1846
|
+
roles?: Array<string>;
|
|
1847
|
+
status?: string;
|
|
1848
|
+
type?: string;
|
|
1849
|
+
username?: string;
|
|
1850
|
+
_limit?: number;
|
|
1851
|
+
_offset?: number;
|
|
1572
1852
|
};
|
|
1573
1853
|
url: '/users/@aggregate';
|
|
1574
1854
|
};
|
|
@@ -1580,8 +1860,8 @@ export type AggregateUsersResponse = AggregateUsersResponses[keyof AggregateUser
|
|
|
1580
1860
|
export type ListIndustriesData = {
|
|
1581
1861
|
body?: never;
|
|
1582
1862
|
path?: never;
|
|
1583
|
-
query
|
|
1584
|
-
|
|
1863
|
+
query?: {
|
|
1864
|
+
depth?: number;
|
|
1585
1865
|
};
|
|
1586
1866
|
url: '/industries';
|
|
1587
1867
|
};
|
|
@@ -1626,6 +1906,24 @@ export type CreateRoleResponses = {
|
|
|
1626
1906
|
201: Role;
|
|
1627
1907
|
};
|
|
1628
1908
|
export type CreateRoleResponse = CreateRoleResponses[keyof CreateRoleResponses];
|
|
1909
|
+
export type CountRolesData = {
|
|
1910
|
+
body?: never;
|
|
1911
|
+
path?: never;
|
|
1912
|
+
query?: {
|
|
1913
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
1914
|
+
name_like?: string;
|
|
1915
|
+
name?: string;
|
|
1916
|
+
key?: string;
|
|
1917
|
+
_limit?: number;
|
|
1918
|
+
_offset?: number;
|
|
1919
|
+
};
|
|
1920
|
+
url: '/roles/@count';
|
|
1921
|
+
};
|
|
1922
|
+
export type CountRolesResponses = {
|
|
1923
|
+
200: CountResult;
|
|
1924
|
+
201: CountResult;
|
|
1925
|
+
};
|
|
1926
|
+
export type CountRolesResponse = CountRolesResponses[keyof CountRolesResponses];
|
|
1629
1927
|
export type GetRoleData = {
|
|
1630
1928
|
body?: never;
|
|
1631
1929
|
path: {
|