@36node/auth-sdk 2.8.1 → 2.10.0-pr-68-82fcbe018c
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/sdk.gen.d.ts +30 -28
- package/dist/sdk.gen.js +130 -120
- package/dist/sdk.gen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.gen.d.ts +376 -280
- package/dist/types.gen.js +96 -96
- package/dist/types.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export type AggregateUserDto = {
|
|
2
|
+
group?: Array<('level' | 'labels' | 'language' | 'ns' | 'registerRegion' | 'roles' | 'groups' | 'active' | 'status' | 'createdAt')>;
|
|
3
|
+
};
|
|
1
4
|
export type AppResult = {
|
|
2
5
|
message: string;
|
|
3
6
|
};
|
|
@@ -20,6 +23,9 @@ export type Captcha = {
|
|
|
20
23
|
createdBy?: string;
|
|
21
24
|
updatedBy?: string;
|
|
22
25
|
};
|
|
26
|
+
export type CountResult = {
|
|
27
|
+
count: number;
|
|
28
|
+
};
|
|
23
29
|
export type CreateCaptchaDto = {
|
|
24
30
|
code?: string;
|
|
25
31
|
expireAt?: Date;
|
|
@@ -63,9 +69,11 @@ export type CreateSessionDto = {
|
|
|
63
69
|
subject: string;
|
|
64
70
|
source?: string;
|
|
65
71
|
permissions?: Array<(string)>;
|
|
72
|
+
roles?: Array<(string)>;
|
|
66
73
|
groups?: Array<(string)>;
|
|
67
74
|
ns?: string;
|
|
68
75
|
type?: string;
|
|
76
|
+
oneTimeUse?: boolean;
|
|
69
77
|
};
|
|
70
78
|
export type CreateSmsRecordDto = {
|
|
71
79
|
status: SmsStatus;
|
|
@@ -89,6 +97,7 @@ export type createThirdPartyDto = {
|
|
|
89
97
|
export type CreateUserDto = {
|
|
90
98
|
password?: string;
|
|
91
99
|
readonly hasPassword?: boolean;
|
|
100
|
+
labels?: Array<(string)>;
|
|
92
101
|
avatar?: string;
|
|
93
102
|
data?: string;
|
|
94
103
|
email?: string;
|
|
@@ -113,6 +122,13 @@ export type CreateUserDto = {
|
|
|
113
122
|
expireAt?: Date;
|
|
114
123
|
type?: string;
|
|
115
124
|
};
|
|
125
|
+
export type DateGroup = {
|
|
126
|
+
year?: number;
|
|
127
|
+
month?: number;
|
|
128
|
+
week?: number;
|
|
129
|
+
day?: number;
|
|
130
|
+
hour?: number;
|
|
131
|
+
};
|
|
116
132
|
export type EmailRecord = {
|
|
117
133
|
status: EmailStatus;
|
|
118
134
|
from: string;
|
|
@@ -262,9 +278,11 @@ export type Session = {
|
|
|
262
278
|
subject: string;
|
|
263
279
|
source?: string;
|
|
264
280
|
permissions?: Array<(string)>;
|
|
281
|
+
roles?: Array<(string)>;
|
|
265
282
|
groups?: Array<(string)>;
|
|
266
283
|
ns?: string;
|
|
267
284
|
type?: string;
|
|
285
|
+
oneTimeUse?: boolean;
|
|
268
286
|
id: string;
|
|
269
287
|
createdAt?: Date;
|
|
270
288
|
updatedAt?: Date;
|
|
@@ -277,9 +295,11 @@ export type SessionWithToken = {
|
|
|
277
295
|
subject: string;
|
|
278
296
|
source?: string;
|
|
279
297
|
permissions?: Array<(string)>;
|
|
298
|
+
roles?: Array<(string)>;
|
|
280
299
|
groups?: Array<(string)>;
|
|
281
300
|
ns?: string;
|
|
282
301
|
type?: string;
|
|
302
|
+
oneTimeUse?: boolean;
|
|
283
303
|
id: string;
|
|
284
304
|
createdAt?: Date;
|
|
285
305
|
updatedAt?: Date;
|
|
@@ -371,9 +391,11 @@ export type UpdateSessionDto = {
|
|
|
371
391
|
subject?: string;
|
|
372
392
|
source?: string;
|
|
373
393
|
permissions?: Array<(string)>;
|
|
394
|
+
roles?: Array<(string)>;
|
|
374
395
|
groups?: Array<(string)>;
|
|
375
396
|
ns?: string;
|
|
376
397
|
type?: string;
|
|
398
|
+
oneTimeUse?: boolean;
|
|
377
399
|
};
|
|
378
400
|
export type UpdateSmsRecordDto = {
|
|
379
401
|
status?: SmsStatus;
|
|
@@ -404,6 +426,7 @@ export type UpdateUserDto = {
|
|
|
404
426
|
identityVerifiedAt?: Date;
|
|
405
427
|
identityVerified?: boolean;
|
|
406
428
|
intro?: string;
|
|
429
|
+
labels?: Array<(string)>;
|
|
407
430
|
language?: string;
|
|
408
431
|
lastLoginIp?: string;
|
|
409
432
|
lastSeenAt?: Date;
|
|
@@ -435,6 +458,7 @@ export type User = {
|
|
|
435
458
|
identityVerifiedAt?: Date;
|
|
436
459
|
identityVerified?: boolean;
|
|
437
460
|
intro?: string;
|
|
461
|
+
labels: Array<(string)>;
|
|
438
462
|
language?: string;
|
|
439
463
|
lastLoginIp?: string;
|
|
440
464
|
lastSeenAt?: Date;
|
|
@@ -460,6 +484,19 @@ export type User = {
|
|
|
460
484
|
createdBy?: string;
|
|
461
485
|
updatedBy?: string;
|
|
462
486
|
};
|
|
487
|
+
export type UserAggregateResult = {
|
|
488
|
+
level?: number;
|
|
489
|
+
label?: string;
|
|
490
|
+
language?: string;
|
|
491
|
+
ns?: string;
|
|
492
|
+
registerRegion?: string;
|
|
493
|
+
role?: string;
|
|
494
|
+
group?: string;
|
|
495
|
+
active?: boolean;
|
|
496
|
+
status?: string;
|
|
497
|
+
createdAt?: DateGroup;
|
|
498
|
+
count: number;
|
|
499
|
+
};
|
|
463
500
|
export type VerifyCaptchaDto = {
|
|
464
501
|
code: string;
|
|
465
502
|
key: string;
|
|
@@ -546,114 +583,137 @@ export type ResetPasswordByEmailData = {
|
|
|
546
583
|
};
|
|
547
584
|
export type ResetPasswordByEmailResponse = (void);
|
|
548
585
|
export type ResetPasswordByEmailError = unknown;
|
|
549
|
-
export type
|
|
550
|
-
body:
|
|
586
|
+
export type CreateCaptchaData = {
|
|
587
|
+
body: CreateCaptchaDto;
|
|
551
588
|
};
|
|
552
|
-
export type
|
|
553
|
-
export type
|
|
554
|
-
export type
|
|
589
|
+
export type CreateCaptchaResponse = (Captcha);
|
|
590
|
+
export type CreateCaptchaError = unknown;
|
|
591
|
+
export type ListCaptchasData = {
|
|
555
592
|
query?: {
|
|
556
593
|
_limit?: number;
|
|
557
594
|
_offset?: number;
|
|
558
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | '
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
expireAt_gte?: Date;
|
|
562
|
-
expireAt_lte?: Date;
|
|
563
|
-
groups?: Array<(string)>;
|
|
564
|
-
id?: Array<(string)>;
|
|
565
|
-
name?: string;
|
|
566
|
-
name_like?: string;
|
|
567
|
-
nickname_like?: string;
|
|
568
|
-
ns_tree?: string;
|
|
569
|
-
phone?: string;
|
|
570
|
-
registerRegion?: string;
|
|
571
|
-
roles?: Array<(string)>;
|
|
572
|
-
status?: string;
|
|
573
|
-
type?: string;
|
|
574
|
-
username?: string;
|
|
575
|
-
username_like?: string;
|
|
595
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
596
|
+
code?: string;
|
|
597
|
+
key?: string;
|
|
576
598
|
};
|
|
577
599
|
};
|
|
578
|
-
export type
|
|
579
|
-
export type
|
|
580
|
-
export type
|
|
600
|
+
export type ListCaptchasResponse = (Array<Captcha>);
|
|
601
|
+
export type ListCaptchasError = unknown;
|
|
602
|
+
export type GetCaptchaData = {
|
|
581
603
|
path: {
|
|
582
|
-
|
|
604
|
+
captchaId: string;
|
|
583
605
|
};
|
|
584
606
|
};
|
|
585
|
-
export type
|
|
586
|
-
export type
|
|
587
|
-
export type
|
|
588
|
-
body:
|
|
607
|
+
export type GetCaptchaResponse = (Captcha);
|
|
608
|
+
export type GetCaptchaError = unknown;
|
|
609
|
+
export type UpdateCaptchaData = {
|
|
610
|
+
body: UpdateCaptchaDto;
|
|
589
611
|
path: {
|
|
590
|
-
|
|
612
|
+
captchaId: string;
|
|
591
613
|
};
|
|
592
614
|
};
|
|
593
|
-
export type
|
|
594
|
-
export type
|
|
595
|
-
export type
|
|
615
|
+
export type UpdateCaptchaResponse = (Captcha);
|
|
616
|
+
export type UpdateCaptchaError = unknown;
|
|
617
|
+
export type DeleteCaptchaData = {
|
|
596
618
|
path: {
|
|
597
|
-
|
|
619
|
+
captchaId: string;
|
|
598
620
|
};
|
|
599
621
|
};
|
|
600
|
-
export type
|
|
601
|
-
export type
|
|
602
|
-
export type
|
|
603
|
-
body:
|
|
622
|
+
export type DeleteCaptchaResponse = (void);
|
|
623
|
+
export type DeleteCaptchaError = unknown;
|
|
624
|
+
export type VerifyCaptchaData = {
|
|
625
|
+
body: VerifyCaptchaDto;
|
|
626
|
+
};
|
|
627
|
+
export type VerifyCaptchaResponse = (VerifyCaptchaResultDto);
|
|
628
|
+
export type VerifyCaptchaError = unknown;
|
|
629
|
+
export type SendEmailData = {
|
|
630
|
+
body: SendEmailDto;
|
|
631
|
+
};
|
|
632
|
+
export type SendEmailResponse = (void);
|
|
633
|
+
export type SendEmailError = unknown;
|
|
634
|
+
export type CreateEmailRecordData = {
|
|
635
|
+
body: CreateEmailRecordDto;
|
|
636
|
+
};
|
|
637
|
+
export type CreateEmailRecordResponse = (EmailRecord);
|
|
638
|
+
export type CreateEmailRecordError = unknown;
|
|
639
|
+
export type ListEmailRecordsData = {
|
|
640
|
+
query?: {
|
|
641
|
+
_limit?: number;
|
|
642
|
+
_offset?: number;
|
|
643
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
644
|
+
createdAt_gt?: Date;
|
|
645
|
+
createdAt_lt?: Date;
|
|
646
|
+
from?: string;
|
|
647
|
+
sentAt_gt?: Date;
|
|
648
|
+
sentAt_lt?: Date;
|
|
649
|
+
status?: EmailStatus;
|
|
650
|
+
to?: string;
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
export type ListEmailRecordsResponse = (Array<EmailRecord>);
|
|
654
|
+
export type ListEmailRecordsError = unknown;
|
|
655
|
+
export type GetEmailRecordData = {
|
|
604
656
|
path: {
|
|
605
|
-
|
|
657
|
+
emailRecordId: string;
|
|
606
658
|
};
|
|
607
659
|
};
|
|
608
|
-
export type
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
export type UpsertUserByUsernameData = {
|
|
613
|
-
body: CreateUserDto;
|
|
660
|
+
export type GetEmailRecordResponse = (EmailRecord);
|
|
661
|
+
export type GetEmailRecordError = unknown;
|
|
662
|
+
export type UpdateEmailRecordData = {
|
|
663
|
+
body: UpdateEmailRecordDto;
|
|
614
664
|
path: {
|
|
615
|
-
|
|
665
|
+
emailRecordId: string;
|
|
616
666
|
};
|
|
617
667
|
};
|
|
618
|
-
export type
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
export type UpsertUserByUsernameError = unknown;
|
|
622
|
-
export type UpsertUserByEmailData = {
|
|
623
|
-
body: CreateUserDto;
|
|
668
|
+
export type UpdateEmailRecordResponse = (EmailRecord);
|
|
669
|
+
export type UpdateEmailRecordError = unknown;
|
|
670
|
+
export type DeleteEmailRecordData = {
|
|
624
671
|
path: {
|
|
625
|
-
|
|
672
|
+
emailRecordId: string;
|
|
626
673
|
};
|
|
627
674
|
};
|
|
628
|
-
export type
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
675
|
+
export type DeleteEmailRecordResponse = (void);
|
|
676
|
+
export type DeleteEmailRecordError = unknown;
|
|
677
|
+
export type CreateGroupData = {
|
|
678
|
+
body: CreateGroupDto;
|
|
679
|
+
};
|
|
680
|
+
export type CreateGroupResponse = (Group);
|
|
681
|
+
export type CreateGroupError = unknown;
|
|
682
|
+
export type ListGroupsData = {
|
|
683
|
+
query?: {
|
|
684
|
+
_limit?: number;
|
|
685
|
+
_offset?: number;
|
|
686
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
687
|
+
active?: boolean;
|
|
688
|
+
id?: Array<(string)>;
|
|
689
|
+
name?: string;
|
|
690
|
+
name_like?: string;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
export type ListGroupsResponse = (Array<Group>);
|
|
694
|
+
export type ListGroupsError = unknown;
|
|
695
|
+
export type GetGroupData = {
|
|
634
696
|
path: {
|
|
635
|
-
|
|
697
|
+
groupIdOrName: string;
|
|
636
698
|
};
|
|
637
699
|
};
|
|
638
|
-
export type
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
export type VerifyIdentityData = {
|
|
700
|
+
export type GetGroupResponse = (Group);
|
|
701
|
+
export type GetGroupError = unknown;
|
|
702
|
+
export type UpdateGroupData = {
|
|
703
|
+
body: UpdateGroupDto;
|
|
643
704
|
path: {
|
|
644
|
-
|
|
705
|
+
groupId: string;
|
|
645
706
|
};
|
|
646
707
|
};
|
|
647
|
-
export type
|
|
648
|
-
export type
|
|
649
|
-
export type
|
|
650
|
-
body: UpdatePasswordDto;
|
|
708
|
+
export type UpdateGroupResponse = (Group);
|
|
709
|
+
export type UpdateGroupError = unknown;
|
|
710
|
+
export type DeleteGroupData = {
|
|
651
711
|
path: {
|
|
652
|
-
|
|
712
|
+
groupId: string;
|
|
653
713
|
};
|
|
654
714
|
};
|
|
655
|
-
export type
|
|
656
|
-
export type
|
|
715
|
+
export type DeleteGroupResponse = (void);
|
|
716
|
+
export type DeleteGroupError = unknown;
|
|
657
717
|
export type CreateNamespaceData = {
|
|
658
718
|
body: CreateNamespaceDto;
|
|
659
719
|
};
|
|
@@ -706,8 +766,10 @@ export type ListSessionsData = {
|
|
|
706
766
|
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
707
767
|
groups?: Array<(string)>;
|
|
708
768
|
ns?: string;
|
|
769
|
+
oneTimeUse?: boolean;
|
|
709
770
|
permissions?: Array<(string)>;
|
|
710
771
|
refreshToken?: string;
|
|
772
|
+
roles?: Array<(string)>;
|
|
711
773
|
source?: string;
|
|
712
774
|
subject?: string;
|
|
713
775
|
type?: string;
|
|
@@ -744,186 +806,56 @@ export type GetSessionByKeyData = {
|
|
|
744
806
|
};
|
|
745
807
|
export type GetSessionByKeyResponse = (Session);
|
|
746
808
|
export type GetSessionByKeyError = unknown;
|
|
747
|
-
export type
|
|
748
|
-
body:
|
|
809
|
+
export type SendSmsData = {
|
|
810
|
+
body: SendSmsDto;
|
|
749
811
|
};
|
|
750
|
-
export type
|
|
751
|
-
export type
|
|
752
|
-
export type
|
|
812
|
+
export type SendSmsResponse = (void);
|
|
813
|
+
export type SendSmsError = unknown;
|
|
814
|
+
export type CreateSmsRecordData = {
|
|
815
|
+
body: CreateSmsRecordDto;
|
|
816
|
+
};
|
|
817
|
+
export type CreateSmsRecordResponse = (SmsRecord);
|
|
818
|
+
export type CreateSmsRecordError = unknown;
|
|
819
|
+
export type ListSmsRecordsData = {
|
|
753
820
|
query?: {
|
|
754
821
|
_limit?: number;
|
|
755
822
|
_offset?: number;
|
|
756
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
823
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
824
|
+
createdAt_gt?: Date;
|
|
825
|
+
createdAt_lt?: Date;
|
|
826
|
+
phone?: string;
|
|
827
|
+
sentAt_gt?: Date;
|
|
828
|
+
sentAt_lt?: Date;
|
|
829
|
+
sign?: string;
|
|
830
|
+
status?: SmsStatus;
|
|
760
831
|
};
|
|
761
832
|
};
|
|
762
|
-
export type
|
|
763
|
-
export type
|
|
764
|
-
export type
|
|
833
|
+
export type ListSmsRecordsResponse = (Array<SmsRecord>);
|
|
834
|
+
export type ListSmsRecordsError = unknown;
|
|
835
|
+
export type GetSmsRecordData = {
|
|
765
836
|
path: {
|
|
766
|
-
|
|
837
|
+
smsRecordId: string;
|
|
767
838
|
};
|
|
768
839
|
};
|
|
769
|
-
export type
|
|
770
|
-
export type
|
|
771
|
-
export type
|
|
772
|
-
body:
|
|
840
|
+
export type GetSmsRecordResponse = (SmsRecord);
|
|
841
|
+
export type GetSmsRecordError = unknown;
|
|
842
|
+
export type UpdateSmsRecordData = {
|
|
843
|
+
body: UpdateSmsRecordDto;
|
|
773
844
|
path: {
|
|
774
|
-
|
|
845
|
+
smsRecordId: string;
|
|
775
846
|
};
|
|
776
847
|
};
|
|
777
|
-
export type
|
|
778
|
-
export type
|
|
779
|
-
export type
|
|
848
|
+
export type UpdateSmsRecordResponse = (SmsRecord);
|
|
849
|
+
export type UpdateSmsRecordError = unknown;
|
|
850
|
+
export type DeleteSmsRecordData = {
|
|
780
851
|
path: {
|
|
781
|
-
|
|
852
|
+
smsRecordId: string;
|
|
782
853
|
};
|
|
783
854
|
};
|
|
784
|
-
export type
|
|
785
|
-
export type
|
|
786
|
-
export type
|
|
787
|
-
body:
|
|
788
|
-
};
|
|
789
|
-
export type CreateCaptchaResponse = (Captcha);
|
|
790
|
-
export type CreateCaptchaError = unknown;
|
|
791
|
-
export type ListCaptchasData = {
|
|
792
|
-
query?: {
|
|
793
|
-
_limit?: number;
|
|
794
|
-
_offset?: number;
|
|
795
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
|
|
796
|
-
code?: string;
|
|
797
|
-
key?: string;
|
|
798
|
-
};
|
|
799
|
-
};
|
|
800
|
-
export type ListCaptchasResponse = (Array<Captcha>);
|
|
801
|
-
export type ListCaptchasError = unknown;
|
|
802
|
-
export type GetCaptchaData = {
|
|
803
|
-
path: {
|
|
804
|
-
captchaId: string;
|
|
805
|
-
};
|
|
806
|
-
};
|
|
807
|
-
export type GetCaptchaResponse = (Captcha);
|
|
808
|
-
export type GetCaptchaError = unknown;
|
|
809
|
-
export type UpdateCaptchaData = {
|
|
810
|
-
body: UpdateCaptchaDto;
|
|
811
|
-
path: {
|
|
812
|
-
captchaId: string;
|
|
813
|
-
};
|
|
814
|
-
};
|
|
815
|
-
export type UpdateCaptchaResponse = (Captcha);
|
|
816
|
-
export type UpdateCaptchaError = unknown;
|
|
817
|
-
export type DeleteCaptchaData = {
|
|
818
|
-
path: {
|
|
819
|
-
captchaId: string;
|
|
820
|
-
};
|
|
821
|
-
};
|
|
822
|
-
export type DeleteCaptchaResponse = (void);
|
|
823
|
-
export type DeleteCaptchaError = unknown;
|
|
824
|
-
export type VerifyCaptchaData = {
|
|
825
|
-
body: VerifyCaptchaDto;
|
|
826
|
-
};
|
|
827
|
-
export type VerifyCaptchaResponse = (VerifyCaptchaResultDto);
|
|
828
|
-
export type VerifyCaptchaError = unknown;
|
|
829
|
-
export type SendEmailData = {
|
|
830
|
-
body: SendEmailDto;
|
|
831
|
-
};
|
|
832
|
-
export type SendEmailResponse = (void);
|
|
833
|
-
export type SendEmailError = unknown;
|
|
834
|
-
export type CreateEmailRecordData = {
|
|
835
|
-
body: CreateEmailRecordDto;
|
|
836
|
-
};
|
|
837
|
-
export type CreateEmailRecordResponse = (EmailRecord);
|
|
838
|
-
export type CreateEmailRecordError = unknown;
|
|
839
|
-
export type ListEmailRecordsData = {
|
|
840
|
-
query?: {
|
|
841
|
-
_limit?: number;
|
|
842
|
-
_offset?: number;
|
|
843
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
844
|
-
createdAt_gt?: Date;
|
|
845
|
-
createdAt_lt?: Date;
|
|
846
|
-
from?: string;
|
|
847
|
-
sentAt_gt?: Date;
|
|
848
|
-
sentAt_lt?: Date;
|
|
849
|
-
status?: EmailStatus;
|
|
850
|
-
to?: string;
|
|
851
|
-
};
|
|
852
|
-
};
|
|
853
|
-
export type ListEmailRecordsResponse = (Array<EmailRecord>);
|
|
854
|
-
export type ListEmailRecordsError = unknown;
|
|
855
|
-
export type GetEmailRecordData = {
|
|
856
|
-
path: {
|
|
857
|
-
emailRecordId: string;
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
export type GetEmailRecordResponse = (EmailRecord);
|
|
861
|
-
export type GetEmailRecordError = unknown;
|
|
862
|
-
export type UpdateEmailRecordData = {
|
|
863
|
-
body: UpdateEmailRecordDto;
|
|
864
|
-
path: {
|
|
865
|
-
emailRecordId: string;
|
|
866
|
-
};
|
|
867
|
-
};
|
|
868
|
-
export type UpdateEmailRecordResponse = (EmailRecord);
|
|
869
|
-
export type UpdateEmailRecordError = unknown;
|
|
870
|
-
export type DeleteEmailRecordData = {
|
|
871
|
-
path: {
|
|
872
|
-
emailRecordId: string;
|
|
873
|
-
};
|
|
874
|
-
};
|
|
875
|
-
export type DeleteEmailRecordResponse = (void);
|
|
876
|
-
export type DeleteEmailRecordError = unknown;
|
|
877
|
-
export type SendSmsData = {
|
|
878
|
-
body: SendSmsDto;
|
|
879
|
-
};
|
|
880
|
-
export type SendSmsResponse = (void);
|
|
881
|
-
export type SendSmsError = unknown;
|
|
882
|
-
export type CreateSmsRecordData = {
|
|
883
|
-
body: CreateSmsRecordDto;
|
|
884
|
-
};
|
|
885
|
-
export type CreateSmsRecordResponse = (SmsRecord);
|
|
886
|
-
export type CreateSmsRecordError = unknown;
|
|
887
|
-
export type ListSmsRecordsData = {
|
|
888
|
-
query?: {
|
|
889
|
-
_limit?: number;
|
|
890
|
-
_offset?: number;
|
|
891
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
|
|
892
|
-
createdAt_gt?: Date;
|
|
893
|
-
createdAt_lt?: Date;
|
|
894
|
-
phone?: string;
|
|
895
|
-
sentAt_gt?: Date;
|
|
896
|
-
sentAt_lt?: Date;
|
|
897
|
-
sign?: string;
|
|
898
|
-
status?: SmsStatus;
|
|
899
|
-
};
|
|
900
|
-
};
|
|
901
|
-
export type ListSmsRecordsResponse = (Array<SmsRecord>);
|
|
902
|
-
export type ListSmsRecordsError = unknown;
|
|
903
|
-
export type GetSmsRecordData = {
|
|
904
|
-
path: {
|
|
905
|
-
smsRecordId: string;
|
|
906
|
-
};
|
|
907
|
-
};
|
|
908
|
-
export type GetSmsRecordResponse = (SmsRecord);
|
|
909
|
-
export type GetSmsRecordError = unknown;
|
|
910
|
-
export type UpdateSmsRecordData = {
|
|
911
|
-
body: UpdateSmsRecordDto;
|
|
912
|
-
path: {
|
|
913
|
-
smsRecordId: string;
|
|
914
|
-
};
|
|
915
|
-
};
|
|
916
|
-
export type UpdateSmsRecordResponse = (SmsRecord);
|
|
917
|
-
export type UpdateSmsRecordError = unknown;
|
|
918
|
-
export type DeleteSmsRecordData = {
|
|
919
|
-
path: {
|
|
920
|
-
smsRecordId: string;
|
|
921
|
-
};
|
|
922
|
-
};
|
|
923
|
-
export type DeleteSmsRecordResponse = (void);
|
|
924
|
-
export type DeleteSmsRecordError = unknown;
|
|
925
|
-
export type CreateThirdPartyData = {
|
|
926
|
-
body: createThirdPartyDto;
|
|
855
|
+
export type DeleteSmsRecordResponse = (void);
|
|
856
|
+
export type DeleteSmsRecordError = unknown;
|
|
857
|
+
export type CreateThirdPartyData = {
|
|
858
|
+
body: createThirdPartyDto;
|
|
927
859
|
};
|
|
928
860
|
export type CreateThirdPartyResponse = (ThirdParty);
|
|
929
861
|
export type CreateThirdPartyError = unknown;
|
|
@@ -990,6 +922,170 @@ export type BindThirdPartyData = {
|
|
|
990
922
|
};
|
|
991
923
|
export type BindThirdPartyResponse = (ThirdParty);
|
|
992
924
|
export type BindThirdPartyError = unknown;
|
|
925
|
+
export type CreateUserData = {
|
|
926
|
+
body: CreateUserDto;
|
|
927
|
+
};
|
|
928
|
+
export type CreateUserResponse = (User);
|
|
929
|
+
export type CreateUserError = unknown;
|
|
930
|
+
export type ListUsersData = {
|
|
931
|
+
query?: {
|
|
932
|
+
_limit?: number;
|
|
933
|
+
_offset?: number;
|
|
934
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
935
|
+
active?: boolean;
|
|
936
|
+
email?: string;
|
|
937
|
+
expireAt_gte?: Date;
|
|
938
|
+
expireAt_lte?: Date;
|
|
939
|
+
groups?: Array<(string)>;
|
|
940
|
+
id?: Array<(string)>;
|
|
941
|
+
labels?: Array<(string)>;
|
|
942
|
+
name?: string;
|
|
943
|
+
name_like?: string;
|
|
944
|
+
nickname_like?: string;
|
|
945
|
+
ns_tree?: string;
|
|
946
|
+
phone?: string;
|
|
947
|
+
registerRegion?: string;
|
|
948
|
+
roles?: Array<(string)>;
|
|
949
|
+
status?: string;
|
|
950
|
+
type?: string;
|
|
951
|
+
username?: string;
|
|
952
|
+
username_like?: string;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
export type ListUsersResponse = (Array<User>);
|
|
956
|
+
export type ListUsersError = unknown;
|
|
957
|
+
export type CountUsersData = {
|
|
958
|
+
query?: {
|
|
959
|
+
_limit?: number;
|
|
960
|
+
_offset?: number;
|
|
961
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
962
|
+
active?: boolean;
|
|
963
|
+
email?: string;
|
|
964
|
+
expireAt_gte?: Date;
|
|
965
|
+
expireAt_lte?: Date;
|
|
966
|
+
groups?: Array<(string)>;
|
|
967
|
+
id?: Array<(string)>;
|
|
968
|
+
labels?: Array<(string)>;
|
|
969
|
+
name?: string;
|
|
970
|
+
name_like?: string;
|
|
971
|
+
nickname_like?: string;
|
|
972
|
+
ns_tree?: string;
|
|
973
|
+
phone?: string;
|
|
974
|
+
registerRegion?: string;
|
|
975
|
+
roles?: Array<(string)>;
|
|
976
|
+
status?: string;
|
|
977
|
+
type?: string;
|
|
978
|
+
username?: string;
|
|
979
|
+
username_like?: string;
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
export type CountUsersResponse = (Array<CountResult> | CountResult);
|
|
983
|
+
export type CountUsersError = unknown;
|
|
984
|
+
export type GetUserData = {
|
|
985
|
+
path: {
|
|
986
|
+
userId: string;
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
export type GetUserResponse = (User);
|
|
990
|
+
export type GetUserError = unknown;
|
|
991
|
+
export type UpdateUserData = {
|
|
992
|
+
body: UpdateUserDto;
|
|
993
|
+
path: {
|
|
994
|
+
userId: string;
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
export type UpdateUserResponse = (User);
|
|
998
|
+
export type UpdateUserError = unknown;
|
|
999
|
+
export type DeleteUserData = {
|
|
1000
|
+
path: {
|
|
1001
|
+
userId: string;
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
export type DeleteUserResponse = (void);
|
|
1005
|
+
export type DeleteUserError = unknown;
|
|
1006
|
+
export type UpsertUserByEmployeeIdData = {
|
|
1007
|
+
body: CreateUserDto;
|
|
1008
|
+
path: {
|
|
1009
|
+
employeeId: string;
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
export type UpsertUserByEmployeeIdResponse = (User | {
|
|
1013
|
+
[key: string]: unknown;
|
|
1014
|
+
});
|
|
1015
|
+
export type UpsertUserByEmployeeIdError = unknown;
|
|
1016
|
+
export type UpsertUserByUsernameData = {
|
|
1017
|
+
body: CreateUserDto;
|
|
1018
|
+
path: {
|
|
1019
|
+
username: string;
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
export type UpsertUserByUsernameResponse = (User | {
|
|
1023
|
+
[key: string]: unknown;
|
|
1024
|
+
});
|
|
1025
|
+
export type UpsertUserByUsernameError = unknown;
|
|
1026
|
+
export type UpsertUserByEmailData = {
|
|
1027
|
+
body: CreateUserDto;
|
|
1028
|
+
path: {
|
|
1029
|
+
email: string;
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
export type UpsertUserByEmailResponse = (User | {
|
|
1033
|
+
[key: string]: unknown;
|
|
1034
|
+
});
|
|
1035
|
+
export type UpsertUserByEmailError = unknown;
|
|
1036
|
+
export type UpsertUserByPhoneData = {
|
|
1037
|
+
body: CreateUserDto;
|
|
1038
|
+
path: {
|
|
1039
|
+
phone: string;
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
export type UpsertUserByPhoneResponse = (User | {
|
|
1043
|
+
[key: string]: unknown;
|
|
1044
|
+
});
|
|
1045
|
+
export type UpsertUserByPhoneError = unknown;
|
|
1046
|
+
export type VerifyIdentityData = {
|
|
1047
|
+
path: {
|
|
1048
|
+
userId: string;
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
|
+
export type VerifyIdentityResponse = (User);
|
|
1052
|
+
export type VerifyIdentityError = unknown;
|
|
1053
|
+
export type UpdatePasswordData = {
|
|
1054
|
+
body: UpdatePasswordDto;
|
|
1055
|
+
path: {
|
|
1056
|
+
userId: string;
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
export type UpdatePasswordResponse = (void);
|
|
1060
|
+
export type UpdatePasswordError = unknown;
|
|
1061
|
+
export type AggregateUsersData = {
|
|
1062
|
+
body: AggregateUserDto;
|
|
1063
|
+
query?: {
|
|
1064
|
+
_limit?: number;
|
|
1065
|
+
_offset?: number;
|
|
1066
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
1067
|
+
active?: boolean;
|
|
1068
|
+
email?: string;
|
|
1069
|
+
expireAt_gte?: Date;
|
|
1070
|
+
expireAt_lte?: Date;
|
|
1071
|
+
groups?: Array<(string)>;
|
|
1072
|
+
id?: Array<(string)>;
|
|
1073
|
+
labels?: Array<(string)>;
|
|
1074
|
+
name?: string;
|
|
1075
|
+
name_like?: string;
|
|
1076
|
+
nickname_like?: string;
|
|
1077
|
+
ns_tree?: string;
|
|
1078
|
+
phone?: string;
|
|
1079
|
+
registerRegion?: string;
|
|
1080
|
+
roles?: Array<(string)>;
|
|
1081
|
+
status?: string;
|
|
1082
|
+
type?: string;
|
|
1083
|
+
username?: string;
|
|
1084
|
+
username_like?: string;
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
export type AggregateUsersResponse = (Array<UserAggregateResult>);
|
|
1088
|
+
export type AggregateUsersError = unknown;
|
|
993
1089
|
export type ListIndustriesResponse = (Array<Industry>);
|
|
994
1090
|
export type ListIndustriesError = unknown;
|
|
995
1091
|
export type ListRegionsResponse = (Array<Region>);
|
|
@@ -1059,16 +1155,36 @@ export declare const TokenModelResponseTransformer: TokenModelResponseTransforme
|
|
|
1059
1155
|
export declare const SignTokenResponseTransformer: SignTokenResponseTransformer;
|
|
1060
1156
|
export type RefreshResponseTransformer = (data: any) => Promise<RefreshResponse>;
|
|
1061
1157
|
export declare const RefreshResponseTransformer: RefreshResponseTransformer;
|
|
1062
|
-
export type
|
|
1063
|
-
export
|
|
1064
|
-
export
|
|
1065
|
-
export declare const
|
|
1066
|
-
export type
|
|
1067
|
-
export declare const
|
|
1068
|
-
export type
|
|
1069
|
-
export declare const
|
|
1070
|
-
export type
|
|
1071
|
-
export declare const
|
|
1158
|
+
export type CreateCaptchaResponseTransformer = (data: any) => Promise<CreateCaptchaResponse>;
|
|
1159
|
+
export type CaptchaModelResponseTransformer = (data: any) => Captcha;
|
|
1160
|
+
export declare const CaptchaModelResponseTransformer: CaptchaModelResponseTransformer;
|
|
1161
|
+
export declare const CreateCaptchaResponseTransformer: CreateCaptchaResponseTransformer;
|
|
1162
|
+
export type ListCaptchasResponseTransformer = (data: any) => Promise<ListCaptchasResponse>;
|
|
1163
|
+
export declare const ListCaptchasResponseTransformer: ListCaptchasResponseTransformer;
|
|
1164
|
+
export type GetCaptchaResponseTransformer = (data: any) => Promise<GetCaptchaResponse>;
|
|
1165
|
+
export declare const GetCaptchaResponseTransformer: GetCaptchaResponseTransformer;
|
|
1166
|
+
export type UpdateCaptchaResponseTransformer = (data: any) => Promise<UpdateCaptchaResponse>;
|
|
1167
|
+
export declare const UpdateCaptchaResponseTransformer: UpdateCaptchaResponseTransformer;
|
|
1168
|
+
export type CreateEmailRecordResponseTransformer = (data: any) => Promise<CreateEmailRecordResponse>;
|
|
1169
|
+
export type EmailRecordModelResponseTransformer = (data: any) => EmailRecord;
|
|
1170
|
+
export declare const EmailRecordModelResponseTransformer: EmailRecordModelResponseTransformer;
|
|
1171
|
+
export declare const CreateEmailRecordResponseTransformer: CreateEmailRecordResponseTransformer;
|
|
1172
|
+
export type ListEmailRecordsResponseTransformer = (data: any) => Promise<ListEmailRecordsResponse>;
|
|
1173
|
+
export declare const ListEmailRecordsResponseTransformer: ListEmailRecordsResponseTransformer;
|
|
1174
|
+
export type GetEmailRecordResponseTransformer = (data: any) => Promise<GetEmailRecordResponse>;
|
|
1175
|
+
export declare const GetEmailRecordResponseTransformer: GetEmailRecordResponseTransformer;
|
|
1176
|
+
export type UpdateEmailRecordResponseTransformer = (data: any) => Promise<UpdateEmailRecordResponse>;
|
|
1177
|
+
export declare const UpdateEmailRecordResponseTransformer: UpdateEmailRecordResponseTransformer;
|
|
1178
|
+
export type CreateGroupResponseTransformer = (data: any) => Promise<CreateGroupResponse>;
|
|
1179
|
+
export type GroupModelResponseTransformer = (data: any) => Group;
|
|
1180
|
+
export declare const GroupModelResponseTransformer: GroupModelResponseTransformer;
|
|
1181
|
+
export declare const CreateGroupResponseTransformer: CreateGroupResponseTransformer;
|
|
1182
|
+
export type ListGroupsResponseTransformer = (data: any) => Promise<ListGroupsResponse>;
|
|
1183
|
+
export declare const ListGroupsResponseTransformer: ListGroupsResponseTransformer;
|
|
1184
|
+
export type GetGroupResponseTransformer = (data: any) => Promise<GetGroupResponse>;
|
|
1185
|
+
export declare const GetGroupResponseTransformer: GetGroupResponseTransformer;
|
|
1186
|
+
export type UpdateGroupResponseTransformer = (data: any) => Promise<UpdateGroupResponse>;
|
|
1187
|
+
export declare const UpdateGroupResponseTransformer: UpdateGroupResponseTransformer;
|
|
1072
1188
|
export type CreateNamespaceResponseTransformer = (data: any) => Promise<CreateNamespaceResponse>;
|
|
1073
1189
|
export type NamespaceModelResponseTransformer = (data: any) => Namespace;
|
|
1074
1190
|
export declare const NamespaceModelResponseTransformer: NamespaceModelResponseTransformer;
|
|
@@ -1091,36 +1207,6 @@ export type UpdateSessionResponseTransformer = (data: any) => Promise<UpdateSess
|
|
|
1091
1207
|
export declare const UpdateSessionResponseTransformer: UpdateSessionResponseTransformer;
|
|
1092
1208
|
export type GetSessionByKeyResponseTransformer = (data: any) => Promise<GetSessionByKeyResponse>;
|
|
1093
1209
|
export declare const GetSessionByKeyResponseTransformer: GetSessionByKeyResponseTransformer;
|
|
1094
|
-
export type CreateGroupResponseTransformer = (data: any) => Promise<CreateGroupResponse>;
|
|
1095
|
-
export type GroupModelResponseTransformer = (data: any) => Group;
|
|
1096
|
-
export declare const GroupModelResponseTransformer: GroupModelResponseTransformer;
|
|
1097
|
-
export declare const CreateGroupResponseTransformer: CreateGroupResponseTransformer;
|
|
1098
|
-
export type ListGroupsResponseTransformer = (data: any) => Promise<ListGroupsResponse>;
|
|
1099
|
-
export declare const ListGroupsResponseTransformer: ListGroupsResponseTransformer;
|
|
1100
|
-
export type GetGroupResponseTransformer = (data: any) => Promise<GetGroupResponse>;
|
|
1101
|
-
export declare const GetGroupResponseTransformer: GetGroupResponseTransformer;
|
|
1102
|
-
export type UpdateGroupResponseTransformer = (data: any) => Promise<UpdateGroupResponse>;
|
|
1103
|
-
export declare const UpdateGroupResponseTransformer: UpdateGroupResponseTransformer;
|
|
1104
|
-
export type CreateCaptchaResponseTransformer = (data: any) => Promise<CreateCaptchaResponse>;
|
|
1105
|
-
export type CaptchaModelResponseTransformer = (data: any) => Captcha;
|
|
1106
|
-
export declare const CaptchaModelResponseTransformer: CaptchaModelResponseTransformer;
|
|
1107
|
-
export declare const CreateCaptchaResponseTransformer: CreateCaptchaResponseTransformer;
|
|
1108
|
-
export type ListCaptchasResponseTransformer = (data: any) => Promise<ListCaptchasResponse>;
|
|
1109
|
-
export declare const ListCaptchasResponseTransformer: ListCaptchasResponseTransformer;
|
|
1110
|
-
export type GetCaptchaResponseTransformer = (data: any) => Promise<GetCaptchaResponse>;
|
|
1111
|
-
export declare const GetCaptchaResponseTransformer: GetCaptchaResponseTransformer;
|
|
1112
|
-
export type UpdateCaptchaResponseTransformer = (data: any) => Promise<UpdateCaptchaResponse>;
|
|
1113
|
-
export declare const UpdateCaptchaResponseTransformer: UpdateCaptchaResponseTransformer;
|
|
1114
|
-
export type CreateEmailRecordResponseTransformer = (data: any) => Promise<CreateEmailRecordResponse>;
|
|
1115
|
-
export type EmailRecordModelResponseTransformer = (data: any) => EmailRecord;
|
|
1116
|
-
export declare const EmailRecordModelResponseTransformer: EmailRecordModelResponseTransformer;
|
|
1117
|
-
export declare const CreateEmailRecordResponseTransformer: CreateEmailRecordResponseTransformer;
|
|
1118
|
-
export type ListEmailRecordsResponseTransformer = (data: any) => Promise<ListEmailRecordsResponse>;
|
|
1119
|
-
export declare const ListEmailRecordsResponseTransformer: ListEmailRecordsResponseTransformer;
|
|
1120
|
-
export type GetEmailRecordResponseTransformer = (data: any) => Promise<GetEmailRecordResponse>;
|
|
1121
|
-
export declare const GetEmailRecordResponseTransformer: GetEmailRecordResponseTransformer;
|
|
1122
|
-
export type UpdateEmailRecordResponseTransformer = (data: any) => Promise<UpdateEmailRecordResponse>;
|
|
1123
|
-
export declare const UpdateEmailRecordResponseTransformer: UpdateEmailRecordResponseTransformer;
|
|
1124
1210
|
export type CreateSmsRecordResponseTransformer = (data: any) => Promise<CreateSmsRecordResponse>;
|
|
1125
1211
|
export type SmsRecordModelResponseTransformer = (data: any) => SmsRecord;
|
|
1126
1212
|
export declare const SmsRecordModelResponseTransformer: SmsRecordModelResponseTransformer;
|
|
@@ -1137,6 +1223,16 @@ export declare const ThirdPartyModelResponseTransformer: ThirdPartyModelResponse
|
|
|
1137
1223
|
export declare const CreateThirdPartyResponseTransformer: CreateThirdPartyResponseTransformer;
|
|
1138
1224
|
export type BindThirdPartyResponseTransformer = (data: any) => Promise<BindThirdPartyResponse>;
|
|
1139
1225
|
export declare const BindThirdPartyResponseTransformer: BindThirdPartyResponseTransformer;
|
|
1226
|
+
export type CreateUserResponseTransformer = (data: any) => Promise<CreateUserResponse>;
|
|
1227
|
+
export declare const CreateUserResponseTransformer: CreateUserResponseTransformer;
|
|
1228
|
+
export type ListUsersResponseTransformer = (data: any) => Promise<ListUsersResponse>;
|
|
1229
|
+
export declare const ListUsersResponseTransformer: ListUsersResponseTransformer;
|
|
1230
|
+
export type GetUserResponseTransformer = (data: any) => Promise<GetUserResponse>;
|
|
1231
|
+
export declare const GetUserResponseTransformer: GetUserResponseTransformer;
|
|
1232
|
+
export type UpdateUserResponseTransformer = (data: any) => Promise<UpdateUserResponse>;
|
|
1233
|
+
export declare const UpdateUserResponseTransformer: UpdateUserResponseTransformer;
|
|
1234
|
+
export type VerifyIdentityResponseTransformer = (data: any) => Promise<VerifyIdentityResponse>;
|
|
1235
|
+
export declare const VerifyIdentityResponseTransformer: VerifyIdentityResponseTransformer;
|
|
1140
1236
|
export type ListIndustriesResponseTransformer = (data: any) => Promise<ListIndustriesResponse>;
|
|
1141
1237
|
export type IndustryModelResponseTransformer = (data: any) => Industry;
|
|
1142
1238
|
export declare const IndustryModelResponseTransformer: IndustryModelResponseTransformer;
|