@authticon/client 0.0.0-beta3 → 0.0.0-beta30
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/Acccount.d.ts +9 -0
- package/dist/Acccount.d.ts.map +1 -0
- package/dist/Acccount.js +22 -0
- package/dist/Acccount.js.map +1 -0
- package/dist/Auth.d.ts +16 -6
- package/dist/Auth.d.ts.map +1 -1
- package/dist/Auth.js +28 -5
- package/dist/Auth.js.map +1 -1
- package/dist/Authticon.d.ts +195 -13
- package/dist/Authticon.d.ts.map +1 -1
- package/dist/Authticon.js +93 -5
- package/dist/Authticon.js.map +1 -1
- package/dist/Challange.d.ts +8 -0
- package/dist/Challange.d.ts.map +1 -0
- package/dist/Challange.js +24 -0
- package/dist/Challange.js.map +1 -0
- package/dist/CookieStorageAdapter.d.ts +15 -0
- package/dist/CookieStorageAdapter.d.ts.map +1 -0
- package/dist/CookieStorageAdapter.js +54 -0
- package/dist/CookieStorageAdapter.js.map +1 -0
- package/dist/CookieStorageAdapter.test.d.ts +2 -0
- package/dist/CookieStorageAdapter.test.d.ts.map +1 -0
- package/dist/CookieStorageAdapter.test.js +137 -0
- package/dist/CookieStorageAdapter.test.js.map +1 -0
- package/dist/InMemoryCacheAdapter.d.ts +3 -0
- package/dist/InMemoryCacheAdapter.d.ts.map +1 -0
- package/dist/InMemoryCacheAdapter.js +13 -0
- package/dist/InMemoryCacheAdapter.js.map +1 -0
- package/dist/InMemoryCacheAdapter.test.d.ts +2 -0
- package/dist/InMemoryCacheAdapter.test.d.ts.map +1 -0
- package/dist/InMemoryCacheAdapter.test.js +38 -0
- package/dist/InMemoryCacheAdapter.test.js.map +1 -0
- package/dist/Session.d.ts +10 -0
- package/dist/Session.d.ts.map +1 -0
- package/dist/Session.js +16 -0
- package/dist/Session.js.map +1 -0
- package/dist/TokenManager.d.ts +18 -8
- package/dist/TokenManager.d.ts.map +1 -1
- package/dist/TokenManager.js +25 -21
- package/dist/TokenManager.js.map +1 -1
- package/dist/TokenManager.test.js +27 -25
- package/dist/TokenManager.test.js.map +1 -1
- package/dist/TokenStorage.d.ts +18 -2
- package/dist/TokenStorage.d.ts.map +1 -1
- package/dist/TokenStorage.js +96 -11
- package/dist/TokenStorage.js.map +1 -1
- package/dist/TokenStorage.test.js +143 -4
- package/dist/TokenStorage.test.js.map +1 -1
- package/dist/TokenVerifier.d.ts +7 -5
- package/dist/TokenVerifier.d.ts.map +1 -1
- package/dist/TokenVerifier.js +36 -15
- package/dist/TokenVerifier.js.map +1 -1
- package/dist/TokenVerifier.test.js +22 -0
- package/dist/TokenVerifier.test.js.map +1 -1
- package/dist/TwoFa.d.ts +12 -5
- package/dist/TwoFa.d.ts.map +1 -1
- package/dist/TwoFa.js +38 -19
- package/dist/TwoFa.js.map +1 -1
- package/dist/User.d.ts +16 -9
- package/dist/User.d.ts.map +1 -1
- package/dist/User.js +15 -3
- package/dist/User.js.map +1 -1
- package/dist/Users.d.ts +13 -4
- package/dist/Users.d.ts.map +1 -1
- package/dist/Users.js +29 -19
- package/dist/Users.js.map +1 -1
- package/dist/errors.d.ts +22 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +40 -0
- package/dist/errors.js.map +1 -0
- package/dist/errors.test.d.ts +2 -0
- package/dist/errors.test.d.ts.map +1 -0
- package/dist/errors.test.js +99 -0
- package/dist/errors.test.js.map +1 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +15 -24
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +56 -121
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +290 -601
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +19 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/user.d.ts +117 -0
- package/dist/user.d.ts.map +1 -0
- package/dist/user.js +83 -0
- package/dist/user.js.map +1 -0
- package/package.json +4 -1
|
@@ -13,75 +13,9 @@ export type GetApiV1HealthzResponses = {
|
|
|
13
13
|
*/
|
|
14
14
|
200: unknown;
|
|
15
15
|
};
|
|
16
|
-
export type DeleteApiV1AuthTwoFaData = {
|
|
17
|
-
body: {
|
|
18
|
-
token: string;
|
|
19
|
-
};
|
|
20
|
-
path?: never;
|
|
21
|
-
query?: never;
|
|
22
|
-
url: '/api/v1/auth/two-fa';
|
|
23
|
-
};
|
|
24
|
-
export type DeleteApiV1AuthTwoFaErrors = {
|
|
25
|
-
/**
|
|
26
|
-
* Default Response
|
|
27
|
-
*/
|
|
28
|
-
401: {
|
|
29
|
-
statusCode: number;
|
|
30
|
-
error: string;
|
|
31
|
-
message: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export type DeleteApiV1AuthTwoFaError = DeleteApiV1AuthTwoFaErrors[keyof DeleteApiV1AuthTwoFaErrors];
|
|
35
|
-
export type DeleteApiV1AuthTwoFaResponses = {
|
|
36
|
-
/**
|
|
37
|
-
* Default Response
|
|
38
|
-
*/
|
|
39
|
-
200: {
|
|
40
|
-
success: boolean;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export type DeleteApiV1AuthTwoFaResponse = DeleteApiV1AuthTwoFaResponses[keyof DeleteApiV1AuthTwoFaResponses];
|
|
44
|
-
export type PostApiV1AuthTwoFaData = {
|
|
45
|
-
body: {
|
|
46
|
-
secret: string;
|
|
47
|
-
token?: string;
|
|
48
|
-
type?: 'APP' | 'EMAIL' | 'PHONE';
|
|
49
|
-
userId: string;
|
|
50
|
-
};
|
|
51
|
-
path?: never;
|
|
52
|
-
query?: never;
|
|
53
|
-
url: '/api/v1/auth/two-fa';
|
|
54
|
-
};
|
|
55
|
-
export type PostApiV1AuthTwoFaErrors = {
|
|
56
|
-
/**
|
|
57
|
-
* Default Response
|
|
58
|
-
*/
|
|
59
|
-
400: {
|
|
60
|
-
statusCode: number;
|
|
61
|
-
error: string;
|
|
62
|
-
message: string;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Default Response
|
|
66
|
-
*/
|
|
67
|
-
401: {
|
|
68
|
-
statusCode: number;
|
|
69
|
-
error: string;
|
|
70
|
-
message: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export type PostApiV1AuthTwoFaError = PostApiV1AuthTwoFaErrors[keyof PostApiV1AuthTwoFaErrors];
|
|
74
|
-
export type PostApiV1AuthTwoFaResponses = {
|
|
75
|
-
/**
|
|
76
|
-
* Default Response
|
|
77
|
-
*/
|
|
78
|
-
200: {
|
|
79
|
-
success: boolean;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
export type PostApiV1AuthTwoFaResponse = PostApiV1AuthTwoFaResponses[keyof PostApiV1AuthTwoFaResponses];
|
|
83
16
|
export type PostApiV1AuthEmailChangeData = {
|
|
84
17
|
body: {
|
|
18
|
+
userId: string;
|
|
85
19
|
newEmail: string;
|
|
86
20
|
};
|
|
87
21
|
path?: never;
|
|
@@ -118,6 +52,7 @@ export type PostApiV1AuthPasswordChangeData = {
|
|
|
118
52
|
body: {
|
|
119
53
|
oldPassword: string;
|
|
120
54
|
newPassword: string;
|
|
55
|
+
userId: string;
|
|
121
56
|
};
|
|
122
57
|
path?: never;
|
|
123
58
|
query?: never;
|
|
@@ -251,25 +186,6 @@ export type PostApiV1AuthTwoFaRecoveryCodesResponses = {
|
|
|
251
186
|
};
|
|
252
187
|
};
|
|
253
188
|
export type PostApiV1AuthTwoFaRecoveryCodesResponse = PostApiV1AuthTwoFaRecoveryCodesResponses[keyof PostApiV1AuthTwoFaRecoveryCodesResponses];
|
|
254
|
-
export type PostApiV1AuthTwoFaSecretData = {
|
|
255
|
-
body: {
|
|
256
|
-
issuer: string;
|
|
257
|
-
email?: string;
|
|
258
|
-
};
|
|
259
|
-
path?: never;
|
|
260
|
-
query?: never;
|
|
261
|
-
url: '/api/v1/auth/two-fa/secret';
|
|
262
|
-
};
|
|
263
|
-
export type PostApiV1AuthTwoFaSecretResponses = {
|
|
264
|
-
/**
|
|
265
|
-
* Default Response
|
|
266
|
-
*/
|
|
267
|
-
200: {
|
|
268
|
-
secret: string;
|
|
269
|
-
uri: string;
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
export type PostApiV1AuthTwoFaSecretResponse = PostApiV1AuthTwoFaSecretResponses[keyof PostApiV1AuthTwoFaSecretResponses];
|
|
273
189
|
export type PostApiV1AuthEmailCheckData = {
|
|
274
190
|
body: {
|
|
275
191
|
email: string;
|
|
@@ -312,7 +228,7 @@ export type PostApiV1AuthLoginData = {
|
|
|
312
228
|
ip?: string;
|
|
313
229
|
twoFaCode?: string;
|
|
314
230
|
userAgent: string;
|
|
315
|
-
rememberToken
|
|
231
|
+
rememberToken?: string;
|
|
316
232
|
};
|
|
317
233
|
path?: never;
|
|
318
234
|
query?: never;
|
|
@@ -337,16 +253,16 @@ export type PostApiV1AuthLoginResponses = {
|
|
|
337
253
|
accessToken: string;
|
|
338
254
|
refreshToken: string;
|
|
339
255
|
deviceId: string;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
twoFaToken: string;
|
|
343
|
-
deviceId: string;
|
|
256
|
+
challanges: Array<'verifyTwoFa' | 'setTwoFa' | 'resetPassword' | 'setPassword'>;
|
|
257
|
+
sessionId: string;
|
|
344
258
|
};
|
|
345
259
|
};
|
|
346
260
|
export type PostApiV1AuthLoginResponse = PostApiV1AuthLoginResponses[keyof PostApiV1AuthLoginResponses];
|
|
347
261
|
export type PostApiV1AuthLoginAsData = {
|
|
348
262
|
body: {
|
|
349
263
|
userId: string;
|
|
264
|
+
deviceId: string;
|
|
265
|
+
targetUserId: string;
|
|
350
266
|
};
|
|
351
267
|
path?: never;
|
|
352
268
|
query?: never;
|
|
@@ -378,6 +294,8 @@ export type PostApiV1AuthLoginAsResponses = {
|
|
|
378
294
|
200: {
|
|
379
295
|
accessToken: string;
|
|
380
296
|
refreshToken: string;
|
|
297
|
+
deviceId: string;
|
|
298
|
+
sessionId: string;
|
|
381
299
|
};
|
|
382
300
|
};
|
|
383
301
|
export type PostApiV1AuthLoginAsResponse = PostApiV1AuthLoginAsResponses[keyof PostApiV1AuthLoginAsResponses];
|
|
@@ -548,90 +466,6 @@ export type PostApiV1AuthMagicLinkSendResponses = {
|
|
|
548
466
|
};
|
|
549
467
|
};
|
|
550
468
|
export type PostApiV1AuthMagicLinkSendResponse = PostApiV1AuthMagicLinkSendResponses[keyof PostApiV1AuthMagicLinkSendResponses];
|
|
551
|
-
export type PostApiV1AuthPhoneSendCodeData = {
|
|
552
|
-
body: {
|
|
553
|
-
phone: string;
|
|
554
|
-
};
|
|
555
|
-
path?: never;
|
|
556
|
-
query?: never;
|
|
557
|
-
url: '/api/v1/auth/phone/send-code';
|
|
558
|
-
};
|
|
559
|
-
export type PostApiV1AuthPhoneSendCodeErrors = {
|
|
560
|
-
/**
|
|
561
|
-
* Default Response
|
|
562
|
-
*/
|
|
563
|
-
409: {
|
|
564
|
-
statusCode: number;
|
|
565
|
-
error: string;
|
|
566
|
-
message: string;
|
|
567
|
-
};
|
|
568
|
-
};
|
|
569
|
-
export type PostApiV1AuthPhoneSendCodeError = PostApiV1AuthPhoneSendCodeErrors[keyof PostApiV1AuthPhoneSendCodeErrors];
|
|
570
|
-
export type PostApiV1AuthPhoneSendCodeResponses = {
|
|
571
|
-
/**
|
|
572
|
-
* Default Response
|
|
573
|
-
*/
|
|
574
|
-
200: {
|
|
575
|
-
success: boolean;
|
|
576
|
-
};
|
|
577
|
-
};
|
|
578
|
-
export type PostApiV1AuthPhoneSendCodeResponse = PostApiV1AuthPhoneSendCodeResponses[keyof PostApiV1AuthPhoneSendCodeResponses];
|
|
579
|
-
export type PostApiV1AuthSmsSendCodeData = {
|
|
580
|
-
body: {
|
|
581
|
-
[key: string]: unknown;
|
|
582
|
-
};
|
|
583
|
-
path?: never;
|
|
584
|
-
query?: never;
|
|
585
|
-
url: '/api/v1/auth/sms/send-code';
|
|
586
|
-
};
|
|
587
|
-
export type PostApiV1AuthSmsSendCodeErrors = {
|
|
588
|
-
/**
|
|
589
|
-
* Default Response
|
|
590
|
-
*/
|
|
591
|
-
400: {
|
|
592
|
-
statusCode: number;
|
|
593
|
-
error: string;
|
|
594
|
-
message: string;
|
|
595
|
-
};
|
|
596
|
-
/**
|
|
597
|
-
* Default Response
|
|
598
|
-
*/
|
|
599
|
-
401: {
|
|
600
|
-
statusCode: number;
|
|
601
|
-
error: string;
|
|
602
|
-
message: string;
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
export type PostApiV1AuthSmsSendCodeError = PostApiV1AuthSmsSendCodeErrors[keyof PostApiV1AuthSmsSendCodeErrors];
|
|
606
|
-
export type PostApiV1AuthSmsSendCodeResponses = {
|
|
607
|
-
/**
|
|
608
|
-
* Default Response
|
|
609
|
-
*/
|
|
610
|
-
200: {
|
|
611
|
-
success: boolean;
|
|
612
|
-
};
|
|
613
|
-
};
|
|
614
|
-
export type PostApiV1AuthSmsSendCodeResponse = PostApiV1AuthSmsSendCodeResponses[keyof PostApiV1AuthSmsSendCodeResponses];
|
|
615
|
-
export type PostApiV1AuthTestEmailData = {
|
|
616
|
-
body: {
|
|
617
|
-
email: string;
|
|
618
|
-
projectId: string;
|
|
619
|
-
template: string;
|
|
620
|
-
locale?: string;
|
|
621
|
-
};
|
|
622
|
-
path?: never;
|
|
623
|
-
query?: never;
|
|
624
|
-
url: '/api/v1/auth/test-email';
|
|
625
|
-
};
|
|
626
|
-
export type PostApiV1AuthTestEmailResponses = {
|
|
627
|
-
/**
|
|
628
|
-
* Default Response
|
|
629
|
-
*/
|
|
630
|
-
200: {
|
|
631
|
-
success: boolean;
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
|
-
export type PostApiV1AuthTestEmailResponse = PostApiV1AuthTestEmailResponses[keyof PostApiV1AuthTestEmailResponses];
|
|
635
469
|
export type PostApiV1AuthPasswordSetData = {
|
|
636
470
|
body: {
|
|
637
471
|
password: string;
|
|
@@ -722,45 +556,6 @@ export type PostApiV1AuthTwoFaRecoveryResponses = {
|
|
|
722
556
|
};
|
|
723
557
|
};
|
|
724
558
|
export type PostApiV1AuthTwoFaRecoveryResponse = PostApiV1AuthTwoFaRecoveryResponses[keyof PostApiV1AuthTwoFaRecoveryResponses];
|
|
725
|
-
export type PostApiV1AuthTwoFaVerifyData = {
|
|
726
|
-
body: {
|
|
727
|
-
twoFaToken: string;
|
|
728
|
-
code: string;
|
|
729
|
-
};
|
|
730
|
-
path?: never;
|
|
731
|
-
query?: never;
|
|
732
|
-
url: '/api/v1/auth/two-fa/verify';
|
|
733
|
-
};
|
|
734
|
-
export type PostApiV1AuthTwoFaVerifyErrors = {
|
|
735
|
-
/**
|
|
736
|
-
* Default Response
|
|
737
|
-
*/
|
|
738
|
-
400: {
|
|
739
|
-
statusCode: number;
|
|
740
|
-
error: string;
|
|
741
|
-
message: string;
|
|
742
|
-
};
|
|
743
|
-
/**
|
|
744
|
-
* Default Response
|
|
745
|
-
*/
|
|
746
|
-
401: {
|
|
747
|
-
statusCode: number;
|
|
748
|
-
error: string;
|
|
749
|
-
message: string;
|
|
750
|
-
};
|
|
751
|
-
};
|
|
752
|
-
export type PostApiV1AuthTwoFaVerifyError = PostApiV1AuthTwoFaVerifyErrors[keyof PostApiV1AuthTwoFaVerifyErrors];
|
|
753
|
-
export type PostApiV1AuthTwoFaVerifyResponses = {
|
|
754
|
-
/**
|
|
755
|
-
* Default Response
|
|
756
|
-
*/
|
|
757
|
-
200: {
|
|
758
|
-
accessToken: string;
|
|
759
|
-
refreshToken: string;
|
|
760
|
-
rememberToken: string;
|
|
761
|
-
};
|
|
762
|
-
};
|
|
763
|
-
export type PostApiV1AuthTwoFaVerifyResponse = PostApiV1AuthTwoFaVerifyResponses[keyof PostApiV1AuthTwoFaVerifyResponses];
|
|
764
559
|
export type PostApiV1AuthMagicLinkVerifyData = {
|
|
765
560
|
body: {
|
|
766
561
|
token: string;
|
|
@@ -801,71 +596,6 @@ export type PostApiV1AuthMagicLinkVerifyResponses = {
|
|
|
801
596
|
};
|
|
802
597
|
};
|
|
803
598
|
export type PostApiV1AuthMagicLinkVerifyResponse = PostApiV1AuthMagicLinkVerifyResponses[keyof PostApiV1AuthMagicLinkVerifyResponses];
|
|
804
|
-
export type PostApiV1AuthPhoneVerifyData = {
|
|
805
|
-
body: {
|
|
806
|
-
phone: string;
|
|
807
|
-
code: string;
|
|
808
|
-
};
|
|
809
|
-
path?: never;
|
|
810
|
-
query?: never;
|
|
811
|
-
url: '/api/v1/auth/phone/verify';
|
|
812
|
-
};
|
|
813
|
-
export type PostApiV1AuthPhoneVerifyErrors = {
|
|
814
|
-
/**
|
|
815
|
-
* Default Response
|
|
816
|
-
*/
|
|
817
|
-
401: {
|
|
818
|
-
statusCode: number;
|
|
819
|
-
error: string;
|
|
820
|
-
message: string;
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
export type PostApiV1AuthPhoneVerifyError = PostApiV1AuthPhoneVerifyErrors[keyof PostApiV1AuthPhoneVerifyErrors];
|
|
824
|
-
export type PostApiV1AuthPhoneVerifyResponses = {
|
|
825
|
-
/**
|
|
826
|
-
* Default Response
|
|
827
|
-
*/
|
|
828
|
-
200: {
|
|
829
|
-
success: boolean;
|
|
830
|
-
};
|
|
831
|
-
};
|
|
832
|
-
export type PostApiV1AuthPhoneVerifyResponse = PostApiV1AuthPhoneVerifyResponses[keyof PostApiV1AuthPhoneVerifyResponses];
|
|
833
|
-
export type PostApiV1AuthSmsVerifyData = {
|
|
834
|
-
body: {
|
|
835
|
-
code: string;
|
|
836
|
-
};
|
|
837
|
-
path?: never;
|
|
838
|
-
query?: never;
|
|
839
|
-
url: '/api/v1/auth/sms/verify';
|
|
840
|
-
};
|
|
841
|
-
export type PostApiV1AuthSmsVerifyErrors = {
|
|
842
|
-
/**
|
|
843
|
-
* Default Response
|
|
844
|
-
*/
|
|
845
|
-
400: {
|
|
846
|
-
statusCode: number;
|
|
847
|
-
error: string;
|
|
848
|
-
message: string;
|
|
849
|
-
};
|
|
850
|
-
/**
|
|
851
|
-
* Default Response
|
|
852
|
-
*/
|
|
853
|
-
401: {
|
|
854
|
-
statusCode: number;
|
|
855
|
-
error: string;
|
|
856
|
-
message: string;
|
|
857
|
-
};
|
|
858
|
-
};
|
|
859
|
-
export type PostApiV1AuthSmsVerifyError = PostApiV1AuthSmsVerifyErrors[keyof PostApiV1AuthSmsVerifyErrors];
|
|
860
|
-
export type PostApiV1AuthSmsVerifyResponses = {
|
|
861
|
-
/**
|
|
862
|
-
* Default Response
|
|
863
|
-
*/
|
|
864
|
-
200: {
|
|
865
|
-
verify: boolean;
|
|
866
|
-
};
|
|
867
|
-
};
|
|
868
|
-
export type PostApiV1AuthSmsVerifyResponse = PostApiV1AuthSmsVerifyResponses[keyof PostApiV1AuthSmsVerifyResponses];
|
|
869
599
|
export type PostApiV1InvitationsInvitationAcceptData = {
|
|
870
600
|
body: {
|
|
871
601
|
token: string;
|
|
@@ -966,62 +696,17 @@ export type DeleteApiV1InvitationsInvitationByIdResponses = {
|
|
|
966
696
|
};
|
|
967
697
|
};
|
|
968
698
|
export type DeleteApiV1InvitationsInvitationByIdResponse = DeleteApiV1InvitationsInvitationByIdResponses[keyof DeleteApiV1InvitationsInvitationByIdResponses];
|
|
969
|
-
export type
|
|
970
|
-
body
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
search?: string;
|
|
699
|
+
export type PostApiV1SessionsBySessionIdChallangesTwoFaData = {
|
|
700
|
+
body: {
|
|
701
|
+
code: string;
|
|
702
|
+
};
|
|
703
|
+
path: {
|
|
704
|
+
sessionId: string;
|
|
976
705
|
};
|
|
977
|
-
|
|
706
|
+
query?: never;
|
|
707
|
+
url: '/api/v1/sessions/{sessionId}/challanges/two-fa';
|
|
978
708
|
};
|
|
979
|
-
export type
|
|
980
|
-
/**
|
|
981
|
-
* Default Response
|
|
982
|
-
*/
|
|
983
|
-
200: {
|
|
984
|
-
data: Array<{
|
|
985
|
-
id: string;
|
|
986
|
-
email: string;
|
|
987
|
-
firstName: string | null;
|
|
988
|
-
lastName: string | null;
|
|
989
|
-
username: string;
|
|
990
|
-
role: string;
|
|
991
|
-
emailVerified: boolean;
|
|
992
|
-
phone: string | null;
|
|
993
|
-
phoneVerified: boolean;
|
|
994
|
-
isBlocked: boolean;
|
|
995
|
-
isGuest: boolean;
|
|
996
|
-
locale: string;
|
|
997
|
-
createdAt: string;
|
|
998
|
-
}>;
|
|
999
|
-
total: number;
|
|
1000
|
-
};
|
|
1001
|
-
};
|
|
1002
|
-
export type GetApiV1UserResponse = GetApiV1UserResponses[keyof GetApiV1UserResponses];
|
|
1003
|
-
export type PostApiV1UserData = {
|
|
1004
|
-
body: {
|
|
1005
|
-
email: string;
|
|
1006
|
-
username: string;
|
|
1007
|
-
password?: string;
|
|
1008
|
-
firstName?: string | null;
|
|
1009
|
-
lastName?: string | null;
|
|
1010
|
-
phone?: string | null;
|
|
1011
|
-
locale?: string;
|
|
1012
|
-
role?: string;
|
|
1013
|
-
claims?: {
|
|
1014
|
-
[key: string]: unknown;
|
|
1015
|
-
};
|
|
1016
|
-
marketingConsent?: boolean;
|
|
1017
|
-
isGuest?: boolean;
|
|
1018
|
-
emailVerified?: boolean;
|
|
1019
|
-
};
|
|
1020
|
-
path?: never;
|
|
1021
|
-
query?: never;
|
|
1022
|
-
url: '/api/v1/user/';
|
|
1023
|
-
};
|
|
1024
|
-
export type PostApiV1UserErrors = {
|
|
709
|
+
export type PostApiV1SessionsBySessionIdChallangesTwoFaErrors = {
|
|
1025
710
|
/**
|
|
1026
711
|
* Default Response
|
|
1027
712
|
*/
|
|
@@ -1033,71 +718,58 @@ export type PostApiV1UserErrors = {
|
|
|
1033
718
|
/**
|
|
1034
719
|
* Default Response
|
|
1035
720
|
*/
|
|
1036
|
-
|
|
721
|
+
401: {
|
|
1037
722
|
statusCode: number;
|
|
1038
723
|
error: string;
|
|
1039
724
|
message: string;
|
|
1040
725
|
};
|
|
1041
726
|
};
|
|
1042
|
-
export type
|
|
1043
|
-
export type
|
|
727
|
+
export type PostApiV1SessionsBySessionIdChallangesTwoFaError = PostApiV1SessionsBySessionIdChallangesTwoFaErrors[keyof PostApiV1SessionsBySessionIdChallangesTwoFaErrors];
|
|
728
|
+
export type PostApiV1SessionsBySessionIdChallangesTwoFaResponses = {
|
|
1044
729
|
/**
|
|
1045
730
|
* Default Response
|
|
1046
731
|
*/
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
isGuest: boolean;
|
|
732
|
+
200: {
|
|
733
|
+
accessToken: string;
|
|
734
|
+
rememberToken: string;
|
|
1051
735
|
};
|
|
1052
736
|
};
|
|
1053
|
-
export type
|
|
1054
|
-
export type
|
|
1055
|
-
body
|
|
1056
|
-
|
|
1057
|
-
|
|
737
|
+
export type PostApiV1SessionsBySessionIdChallangesTwoFaResponse = PostApiV1SessionsBySessionIdChallangesTwoFaResponses[keyof PostApiV1SessionsBySessionIdChallangesTwoFaResponses];
|
|
738
|
+
export type PostApiV1ToolsTestEmailData = {
|
|
739
|
+
body: {
|
|
740
|
+
email: string;
|
|
741
|
+
projectId: string;
|
|
742
|
+
template: string;
|
|
743
|
+
locale?: string;
|
|
1058
744
|
};
|
|
745
|
+
path?: never;
|
|
1059
746
|
query?: never;
|
|
1060
|
-
url: '/api/v1/
|
|
747
|
+
url: '/api/v1/tools/test-email';
|
|
1061
748
|
};
|
|
1062
|
-
export type
|
|
749
|
+
export type PostApiV1ToolsTestEmailResponses = {
|
|
1063
750
|
/**
|
|
1064
751
|
* Default Response
|
|
1065
752
|
*/
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
error: string;
|
|
1069
|
-
message: string;
|
|
753
|
+
200: {
|
|
754
|
+
success: boolean;
|
|
1070
755
|
};
|
|
1071
756
|
};
|
|
1072
|
-
export type
|
|
1073
|
-
export type
|
|
1074
|
-
/**
|
|
1075
|
-
* Default Response
|
|
1076
|
-
*/
|
|
1077
|
-
200: Array<{
|
|
1078
|
-
id: string;
|
|
1079
|
-
role: string;
|
|
1080
|
-
group: string;
|
|
1081
|
-
createdAt: string;
|
|
1082
|
-
}>;
|
|
1083
|
-
};
|
|
1084
|
-
export type GetApiV1UserByUserIdRolesResponse = GetApiV1UserByUserIdRolesResponses[keyof GetApiV1UserByUserIdRolesResponses];
|
|
1085
|
-
export type PostApiV1UserByUserIdRolesData = {
|
|
757
|
+
export type PostApiV1ToolsTestEmailResponse = PostApiV1ToolsTestEmailResponses[keyof PostApiV1ToolsTestEmailResponses];
|
|
758
|
+
export type PatchApiV1ToolsSmsData = {
|
|
1086
759
|
body: {
|
|
1087
|
-
|
|
1088
|
-
group: string;
|
|
760
|
+
code: string;
|
|
1089
761
|
};
|
|
1090
762
|
path: {
|
|
1091
763
|
userId: string;
|
|
1092
764
|
};
|
|
1093
765
|
query?: never;
|
|
1094
|
-
url: '/api/v1/
|
|
766
|
+
url: '/api/v1/tools/sms';
|
|
1095
767
|
};
|
|
1096
|
-
export type
|
|
768
|
+
export type PatchApiV1ToolsSmsErrors = {
|
|
1097
769
|
/**
|
|
1098
770
|
* Default Response
|
|
1099
771
|
*/
|
|
1100
|
-
|
|
772
|
+
400: {
|
|
1101
773
|
statusCode: number;
|
|
1102
774
|
error: string;
|
|
1103
775
|
message: string;
|
|
@@ -1105,119 +777,180 @@ export type PostApiV1UserByUserIdRolesErrors = {
|
|
|
1105
777
|
/**
|
|
1106
778
|
* Default Response
|
|
1107
779
|
*/
|
|
1108
|
-
|
|
780
|
+
401: {
|
|
1109
781
|
statusCode: number;
|
|
1110
782
|
error: string;
|
|
1111
783
|
message: string;
|
|
1112
784
|
};
|
|
1113
785
|
};
|
|
1114
|
-
export type
|
|
1115
|
-
export type
|
|
786
|
+
export type PatchApiV1ToolsSmsError = PatchApiV1ToolsSmsErrors[keyof PatchApiV1ToolsSmsErrors];
|
|
787
|
+
export type PatchApiV1ToolsSmsResponses = {
|
|
1116
788
|
/**
|
|
1117
789
|
* Default Response
|
|
1118
790
|
*/
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
userId: string;
|
|
1122
|
-
role: string;
|
|
1123
|
-
group: string;
|
|
1124
|
-
createdAt: string;
|
|
791
|
+
200: {
|
|
792
|
+
verify: boolean;
|
|
1125
793
|
};
|
|
1126
794
|
};
|
|
1127
|
-
export type
|
|
1128
|
-
export type
|
|
1129
|
-
body
|
|
795
|
+
export type PatchApiV1ToolsSmsResponse = PatchApiV1ToolsSmsResponses[keyof PatchApiV1ToolsSmsResponses];
|
|
796
|
+
export type PostApiV1ToolsSmsData = {
|
|
797
|
+
body: {
|
|
798
|
+
[key: string]: unknown;
|
|
799
|
+
};
|
|
1130
800
|
path: {
|
|
1131
|
-
|
|
801
|
+
userId: string;
|
|
1132
802
|
};
|
|
1133
803
|
query?: never;
|
|
1134
|
-
url: '/api/v1/
|
|
804
|
+
url: '/api/v1/tools/sms';
|
|
1135
805
|
};
|
|
1136
|
-
export type
|
|
806
|
+
export type PostApiV1ToolsSmsErrors = {
|
|
1137
807
|
/**
|
|
1138
808
|
* Default Response
|
|
1139
809
|
*/
|
|
1140
|
-
|
|
810
|
+
400: {
|
|
811
|
+
statusCode: number;
|
|
812
|
+
error: string;
|
|
813
|
+
message: string;
|
|
814
|
+
};
|
|
815
|
+
/**
|
|
816
|
+
* Default Response
|
|
817
|
+
*/
|
|
818
|
+
401: {
|
|
1141
819
|
statusCode: number;
|
|
1142
820
|
error: string;
|
|
1143
821
|
message: string;
|
|
1144
822
|
};
|
|
1145
823
|
};
|
|
1146
|
-
export type
|
|
1147
|
-
export type
|
|
824
|
+
export type PostApiV1ToolsSmsError = PostApiV1ToolsSmsErrors[keyof PostApiV1ToolsSmsErrors];
|
|
825
|
+
export type PostApiV1ToolsSmsResponses = {
|
|
1148
826
|
/**
|
|
1149
827
|
* Default Response
|
|
1150
828
|
*/
|
|
1151
829
|
200: {
|
|
1152
|
-
|
|
830
|
+
success: boolean;
|
|
1153
831
|
};
|
|
1154
832
|
};
|
|
1155
|
-
export type
|
|
1156
|
-
export type
|
|
833
|
+
export type PostApiV1ToolsSmsResponse = PostApiV1ToolsSmsResponses[keyof PostApiV1ToolsSmsResponses];
|
|
834
|
+
export type GetApiV1UsersData = {
|
|
1157
835
|
body?: never;
|
|
1158
|
-
path
|
|
1159
|
-
|
|
836
|
+
path?: never;
|
|
837
|
+
query?: {
|
|
838
|
+
limit?: number;
|
|
839
|
+
offset?: number;
|
|
840
|
+
search?: string;
|
|
841
|
+
firstName?: string;
|
|
842
|
+
lastName?: string;
|
|
843
|
+
email?: string;
|
|
844
|
+
phone?: string;
|
|
845
|
+
role?: string;
|
|
846
|
+
emailVerified?: boolean;
|
|
847
|
+
phoneVerified?: boolean;
|
|
848
|
+
isBlocked?: boolean;
|
|
849
|
+
isGuest?: boolean;
|
|
1160
850
|
};
|
|
851
|
+
url: '/api/v1/users/';
|
|
852
|
+
};
|
|
853
|
+
export type GetApiV1UsersResponses = {
|
|
854
|
+
/**
|
|
855
|
+
* Default Response
|
|
856
|
+
*/
|
|
857
|
+
200: {
|
|
858
|
+
data: Array<{
|
|
859
|
+
id: string;
|
|
860
|
+
email: string;
|
|
861
|
+
firstName: string | null;
|
|
862
|
+
lastName: string | null;
|
|
863
|
+
username: string;
|
|
864
|
+
role: string;
|
|
865
|
+
emailVerified: boolean;
|
|
866
|
+
phone: string | null;
|
|
867
|
+
phoneVerified: boolean;
|
|
868
|
+
isBlocked: boolean;
|
|
869
|
+
isGuest: boolean;
|
|
870
|
+
locale: string;
|
|
871
|
+
createdAt: string;
|
|
872
|
+
roles: Array<{
|
|
873
|
+
role: string;
|
|
874
|
+
group: string;
|
|
875
|
+
createdAt: string;
|
|
876
|
+
}>;
|
|
877
|
+
}>;
|
|
878
|
+
total: number;
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
|
|
882
|
+
export type PostApiV1UsersData = {
|
|
883
|
+
body: {
|
|
884
|
+
email: string;
|
|
885
|
+
username: string;
|
|
886
|
+
password?: string;
|
|
887
|
+
firstName?: string | null;
|
|
888
|
+
lastName?: string | null;
|
|
889
|
+
phone?: string | null;
|
|
890
|
+
locale?: string;
|
|
891
|
+
role?: string;
|
|
892
|
+
claims?: {
|
|
893
|
+
[key: string]: unknown;
|
|
894
|
+
};
|
|
895
|
+
marketingConsent?: boolean;
|
|
896
|
+
isGuest?: boolean;
|
|
897
|
+
emailVerified?: boolean;
|
|
898
|
+
};
|
|
899
|
+
path?: never;
|
|
1161
900
|
query?: never;
|
|
1162
|
-
url: '/api/v1/
|
|
901
|
+
url: '/api/v1/users/';
|
|
1163
902
|
};
|
|
1164
|
-
export type
|
|
903
|
+
export type PostApiV1UsersErrors = {
|
|
1165
904
|
/**
|
|
1166
905
|
* Default Response
|
|
1167
906
|
*/
|
|
1168
|
-
|
|
907
|
+
400: {
|
|
908
|
+
statusCode: number;
|
|
909
|
+
error: string;
|
|
910
|
+
message: string;
|
|
911
|
+
};
|
|
912
|
+
/**
|
|
913
|
+
* Default Response
|
|
914
|
+
*/
|
|
915
|
+
409: {
|
|
1169
916
|
statusCode: number;
|
|
1170
917
|
error: string;
|
|
1171
918
|
message: string;
|
|
1172
919
|
};
|
|
1173
920
|
};
|
|
1174
|
-
export type
|
|
1175
|
-
export type
|
|
921
|
+
export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
|
|
922
|
+
export type PostApiV1UsersResponses = {
|
|
1176
923
|
/**
|
|
1177
924
|
* Default Response
|
|
1178
925
|
*/
|
|
1179
|
-
|
|
926
|
+
201: {
|
|
1180
927
|
id: string;
|
|
1181
928
|
email: string;
|
|
1182
|
-
firstName: string | null;
|
|
1183
|
-
lastName: string | null;
|
|
1184
|
-
username: string;
|
|
1185
|
-
role: string;
|
|
1186
|
-
emailVerified: boolean;
|
|
1187
|
-
phone: string | null;
|
|
1188
|
-
phoneVerified: boolean;
|
|
1189
|
-
isBlocked: boolean;
|
|
1190
|
-
isBlockedUntil: string | null;
|
|
1191
929
|
isGuest: boolean;
|
|
1192
|
-
locale: string;
|
|
1193
|
-
claims: unknown;
|
|
1194
|
-
marketingConsent: boolean;
|
|
1195
|
-
twoFaEnabled: boolean;
|
|
1196
|
-
twoFaType: string | null;
|
|
1197
|
-
createdAt: string;
|
|
1198
|
-
updatedAt: string;
|
|
1199
930
|
};
|
|
1200
931
|
};
|
|
1201
|
-
export type
|
|
1202
|
-
export type
|
|
932
|
+
export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
|
|
933
|
+
export type PatchApiV1UsersByIdData = {
|
|
1203
934
|
body: {
|
|
1204
|
-
|
|
935
|
+
firstName?: string;
|
|
936
|
+
lastName?: string;
|
|
1205
937
|
emailVerified?: boolean;
|
|
1206
|
-
phone?: string;
|
|
1207
938
|
phoneVerified?: boolean;
|
|
1208
939
|
isBlocked?: boolean;
|
|
1209
940
|
isBlockedUntil?: string | null;
|
|
1210
941
|
twoFaEnabled?: boolean;
|
|
1211
942
|
twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
|
|
1212
943
|
loginAttempts?: number;
|
|
944
|
+
phone?: string;
|
|
945
|
+
email?: string;
|
|
1213
946
|
};
|
|
1214
947
|
path: {
|
|
1215
948
|
id: string;
|
|
1216
949
|
};
|
|
1217
950
|
query?: never;
|
|
1218
|
-
url: '/api/v1/
|
|
951
|
+
url: '/api/v1/users/{id}';
|
|
1219
952
|
};
|
|
1220
|
-
export type
|
|
953
|
+
export type PatchApiV1UsersByIdErrors = {
|
|
1221
954
|
/**
|
|
1222
955
|
* Default Response
|
|
1223
956
|
*/
|
|
@@ -1235,8 +968,8 @@ export type PatchApiV1UserByIdErrors = {
|
|
|
1235
968
|
message: string;
|
|
1236
969
|
};
|
|
1237
970
|
};
|
|
1238
|
-
export type
|
|
1239
|
-
export type
|
|
971
|
+
export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
|
|
972
|
+
export type PatchApiV1UsersByIdResponses = {
|
|
1240
973
|
/**
|
|
1241
974
|
* Default Response
|
|
1242
975
|
*/
|
|
@@ -1244,17 +977,16 @@ export type PatchApiV1UserByIdResponses = {
|
|
|
1244
977
|
id: string;
|
|
1245
978
|
};
|
|
1246
979
|
};
|
|
1247
|
-
export type
|
|
1248
|
-
export type
|
|
980
|
+
export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
|
|
981
|
+
export type DeleteApiV1UsersByUserIdData = {
|
|
1249
982
|
body?: never;
|
|
1250
983
|
path: {
|
|
1251
|
-
|
|
1252
|
-
roleId: string;
|
|
984
|
+
id: string;
|
|
1253
985
|
};
|
|
1254
986
|
query?: never;
|
|
1255
|
-
url: '/api/v1/
|
|
987
|
+
url: '/api/v1/users/{userId}/';
|
|
1256
988
|
};
|
|
1257
|
-
export type
|
|
989
|
+
export type DeleteApiV1UsersByUserIdErrors = {
|
|
1258
990
|
/**
|
|
1259
991
|
* Default Response
|
|
1260
992
|
*/
|
|
@@ -1264,8 +996,8 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
|
|
|
1264
996
|
message: string;
|
|
1265
997
|
};
|
|
1266
998
|
};
|
|
1267
|
-
export type
|
|
1268
|
-
export type
|
|
999
|
+
export type DeleteApiV1UsersByUserIdError = DeleteApiV1UsersByUserIdErrors[keyof DeleteApiV1UsersByUserIdErrors];
|
|
1000
|
+
export type DeleteApiV1UsersByUserIdResponses = {
|
|
1269
1001
|
/**
|
|
1270
1002
|
* Default Response
|
|
1271
1003
|
*/
|
|
@@ -1273,28 +1005,16 @@ export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
|
|
|
1273
1005
|
id: string;
|
|
1274
1006
|
};
|
|
1275
1007
|
};
|
|
1276
|
-
export type
|
|
1277
|
-
export type
|
|
1278
|
-
body
|
|
1279
|
-
role?: string;
|
|
1280
|
-
group?: string;
|
|
1281
|
-
};
|
|
1008
|
+
export type DeleteApiV1UsersByUserIdResponse = DeleteApiV1UsersByUserIdResponses[keyof DeleteApiV1UsersByUserIdResponses];
|
|
1009
|
+
export type GetApiV1UsersByUserIdData = {
|
|
1010
|
+
body?: never;
|
|
1282
1011
|
path: {
|
|
1283
|
-
|
|
1284
|
-
roleId: string;
|
|
1012
|
+
id: string;
|
|
1285
1013
|
};
|
|
1286
1014
|
query?: never;
|
|
1287
|
-
url: '/api/v1/
|
|
1015
|
+
url: '/api/v1/users/{userId}';
|
|
1288
1016
|
};
|
|
1289
|
-
export type
|
|
1290
|
-
/**
|
|
1291
|
-
* Default Response
|
|
1292
|
-
*/
|
|
1293
|
-
400: {
|
|
1294
|
-
statusCode: number;
|
|
1295
|
-
error: string;
|
|
1296
|
-
message: string;
|
|
1297
|
-
};
|
|
1017
|
+
export type GetApiV1UsersByUserIdErrors = {
|
|
1298
1018
|
/**
|
|
1299
1019
|
* Default Response
|
|
1300
1020
|
*/
|
|
@@ -1304,80 +1024,50 @@ export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
|
|
|
1304
1024
|
message: string;
|
|
1305
1025
|
};
|
|
1306
1026
|
};
|
|
1307
|
-
export type
|
|
1308
|
-
export type
|
|
1027
|
+
export type GetApiV1UsersByUserIdError = GetApiV1UsersByUserIdErrors[keyof GetApiV1UsersByUserIdErrors];
|
|
1028
|
+
export type GetApiV1UsersByUserIdResponses = {
|
|
1309
1029
|
/**
|
|
1310
1030
|
* Default Response
|
|
1311
1031
|
*/
|
|
1312
1032
|
200: {
|
|
1313
1033
|
id: string;
|
|
1314
|
-
|
|
1034
|
+
email: string;
|
|
1035
|
+
firstName: string | null;
|
|
1036
|
+
lastName: string | null;
|
|
1037
|
+
username: string;
|
|
1315
1038
|
role: string;
|
|
1316
|
-
|
|
1039
|
+
emailVerified: boolean;
|
|
1040
|
+
phone: string | null;
|
|
1041
|
+
phoneVerified: boolean;
|
|
1042
|
+
isBlocked: boolean;
|
|
1043
|
+
isBlockedUntil: string | null;
|
|
1044
|
+
isGuest: boolean;
|
|
1045
|
+
locale: string;
|
|
1046
|
+
claims: unknown;
|
|
1047
|
+
marketingConsent: boolean;
|
|
1048
|
+
twoFaEnabled: boolean;
|
|
1049
|
+
twoFaType: string | null;
|
|
1317
1050
|
createdAt: string;
|
|
1051
|
+
updatedAt: string;
|
|
1318
1052
|
};
|
|
1319
1053
|
};
|
|
1320
|
-
export type
|
|
1321
|
-
export type
|
|
1322
|
-
body?: never;
|
|
1323
|
-
path?: never;
|
|
1324
|
-
query?: {
|
|
1325
|
-
limit?: number;
|
|
1326
|
-
offset?: number;
|
|
1327
|
-
search?: string;
|
|
1328
|
-
};
|
|
1329
|
-
url: '/api/v1/users/';
|
|
1330
|
-
};
|
|
1331
|
-
export type GetApiV1UsersResponses = {
|
|
1332
|
-
/**
|
|
1333
|
-
* Default Response
|
|
1334
|
-
*/
|
|
1335
|
-
200: {
|
|
1336
|
-
data: Array<{
|
|
1337
|
-
id: string;
|
|
1338
|
-
email: string;
|
|
1339
|
-
firstName: string | null;
|
|
1340
|
-
lastName: string | null;
|
|
1341
|
-
username: string;
|
|
1342
|
-
role: string;
|
|
1343
|
-
emailVerified: boolean;
|
|
1344
|
-
phone: string | null;
|
|
1345
|
-
phoneVerified: boolean;
|
|
1346
|
-
isBlocked: boolean;
|
|
1347
|
-
isGuest: boolean;
|
|
1348
|
-
locale: string;
|
|
1349
|
-
createdAt: string;
|
|
1350
|
-
}>;
|
|
1351
|
-
total: number;
|
|
1352
|
-
};
|
|
1353
|
-
};
|
|
1354
|
-
export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
|
|
1355
|
-
export type PostApiV1UsersData = {
|
|
1054
|
+
export type GetApiV1UsersByUserIdResponse = GetApiV1UsersByUserIdResponses[keyof GetApiV1UsersByUserIdResponses];
|
|
1055
|
+
export type PatchApiV1UsersByUserIdChallangePhoneData = {
|
|
1356
1056
|
body: {
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
phone?: string | null;
|
|
1363
|
-
locale?: string;
|
|
1364
|
-
role?: string;
|
|
1365
|
-
claims?: {
|
|
1366
|
-
[key: string]: unknown;
|
|
1367
|
-
};
|
|
1368
|
-
marketingConsent?: boolean;
|
|
1369
|
-
isGuest?: boolean;
|
|
1370
|
-
emailVerified?: boolean;
|
|
1057
|
+
phone: string;
|
|
1058
|
+
code: string;
|
|
1059
|
+
};
|
|
1060
|
+
path: {
|
|
1061
|
+
userId: string;
|
|
1371
1062
|
};
|
|
1372
|
-
path?: never;
|
|
1373
1063
|
query?: never;
|
|
1374
|
-
url: '/api/v1/users/';
|
|
1064
|
+
url: '/api/v1/users/{userId}/challange/phone';
|
|
1375
1065
|
};
|
|
1376
|
-
export type
|
|
1066
|
+
export type PatchApiV1UsersByUserIdChallangePhoneErrors = {
|
|
1377
1067
|
/**
|
|
1378
1068
|
* Default Response
|
|
1379
1069
|
*/
|
|
1380
|
-
|
|
1070
|
+
401: {
|
|
1381
1071
|
statusCode: number;
|
|
1382
1072
|
error: string;
|
|
1383
1073
|
message: string;
|
|
@@ -1385,33 +1075,31 @@ export type PostApiV1UsersErrors = {
|
|
|
1385
1075
|
/**
|
|
1386
1076
|
* Default Response
|
|
1387
1077
|
*/
|
|
1388
|
-
|
|
1078
|
+
404: {
|
|
1389
1079
|
statusCode: number;
|
|
1390
1080
|
error: string;
|
|
1391
1081
|
message: string;
|
|
1392
1082
|
};
|
|
1393
1083
|
};
|
|
1394
|
-
export type
|
|
1395
|
-
export type
|
|
1084
|
+
export type PatchApiV1UsersByUserIdChallangePhoneError = PatchApiV1UsersByUserIdChallangePhoneErrors[keyof PatchApiV1UsersByUserIdChallangePhoneErrors];
|
|
1085
|
+
export type PatchApiV1UsersByUserIdChallangePhoneResponses = {
|
|
1396
1086
|
/**
|
|
1397
1087
|
* Default Response
|
|
1398
1088
|
*/
|
|
1399
|
-
201:
|
|
1400
|
-
id: string;
|
|
1401
|
-
email: string;
|
|
1402
|
-
isGuest: boolean;
|
|
1403
|
-
};
|
|
1089
|
+
201: null;
|
|
1404
1090
|
};
|
|
1405
|
-
export type
|
|
1406
|
-
export type
|
|
1407
|
-
body
|
|
1091
|
+
export type PatchApiV1UsersByUserIdChallangePhoneResponse = PatchApiV1UsersByUserIdChallangePhoneResponses[keyof PatchApiV1UsersByUserIdChallangePhoneResponses];
|
|
1092
|
+
export type PostApiV1UsersByUserIdChallangePhoneData = {
|
|
1093
|
+
body: {
|
|
1094
|
+
phone: string;
|
|
1095
|
+
};
|
|
1408
1096
|
path: {
|
|
1409
1097
|
userId: string;
|
|
1410
1098
|
};
|
|
1411
1099
|
query?: never;
|
|
1412
|
-
url: '/api/v1/users/{userId}/
|
|
1100
|
+
url: '/api/v1/users/{userId}/challange/phone';
|
|
1413
1101
|
};
|
|
1414
|
-
export type
|
|
1102
|
+
export type PostApiV1UsersByUserIdChallangePhoneErrors = {
|
|
1415
1103
|
/**
|
|
1416
1104
|
* Default Response
|
|
1417
1105
|
*/
|
|
@@ -1420,20 +1108,23 @@ export type GetApiV1UsersByUserIdRolesErrors = {
|
|
|
1420
1108
|
error: string;
|
|
1421
1109
|
message: string;
|
|
1422
1110
|
};
|
|
1111
|
+
/**
|
|
1112
|
+
* Default Response
|
|
1113
|
+
*/
|
|
1114
|
+
409: {
|
|
1115
|
+
statusCode: number;
|
|
1116
|
+
error: string;
|
|
1117
|
+
message: string;
|
|
1118
|
+
};
|
|
1423
1119
|
};
|
|
1424
|
-
export type
|
|
1425
|
-
export type
|
|
1120
|
+
export type PostApiV1UsersByUserIdChallangePhoneError = PostApiV1UsersByUserIdChallangePhoneErrors[keyof PostApiV1UsersByUserIdChallangePhoneErrors];
|
|
1121
|
+
export type PostApiV1UsersByUserIdChallangePhoneResponses = {
|
|
1426
1122
|
/**
|
|
1427
1123
|
* Default Response
|
|
1428
1124
|
*/
|
|
1429
|
-
200:
|
|
1430
|
-
id: string;
|
|
1431
|
-
role: string;
|
|
1432
|
-
group: string;
|
|
1433
|
-
createdAt: string;
|
|
1434
|
-
}>;
|
|
1125
|
+
200: null;
|
|
1435
1126
|
};
|
|
1436
|
-
export type
|
|
1127
|
+
export type PostApiV1UsersByUserIdChallangePhoneResponse = PostApiV1UsersByUserIdChallangePhoneResponses[keyof PostApiV1UsersByUserIdChallangePhoneResponses];
|
|
1437
1128
|
export type PostApiV1UsersByUserIdRolesData = {
|
|
1438
1129
|
body: {
|
|
1439
1130
|
role: string;
|
|
@@ -1477,15 +1168,16 @@ export type PostApiV1UsersByUserIdRolesResponses = {
|
|
|
1477
1168
|
};
|
|
1478
1169
|
};
|
|
1479
1170
|
export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
|
|
1480
|
-
export type
|
|
1171
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdData = {
|
|
1481
1172
|
body?: never;
|
|
1482
1173
|
path: {
|
|
1483
|
-
|
|
1174
|
+
userId: string;
|
|
1175
|
+
roleId: string;
|
|
1484
1176
|
};
|
|
1485
1177
|
query?: never;
|
|
1486
|
-
url: '/api/v1/users/{
|
|
1178
|
+
url: '/api/v1/users/{userId}/roles/roles/{roleId}';
|
|
1487
1179
|
};
|
|
1488
|
-
export type
|
|
1180
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors = {
|
|
1489
1181
|
/**
|
|
1490
1182
|
* Default Response
|
|
1491
1183
|
*/
|
|
@@ -1495,8 +1187,8 @@ export type DeleteApiV1UsersByIdErrors = {
|
|
|
1495
1187
|
message: string;
|
|
1496
1188
|
};
|
|
1497
1189
|
};
|
|
1498
|
-
export type
|
|
1499
|
-
export type
|
|
1190
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors];
|
|
1191
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses = {
|
|
1500
1192
|
/**
|
|
1501
1193
|
* Default Response
|
|
1502
1194
|
*/
|
|
@@ -1504,16 +1196,16 @@ export type DeleteApiV1UsersByIdResponses = {
|
|
|
1504
1196
|
id: string;
|
|
1505
1197
|
};
|
|
1506
1198
|
};
|
|
1507
|
-
export type
|
|
1508
|
-
export type
|
|
1199
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses];
|
|
1200
|
+
export type GetApiV1UsersByUserIdRolesRolesData = {
|
|
1509
1201
|
body?: never;
|
|
1510
1202
|
path: {
|
|
1511
|
-
|
|
1203
|
+
userId: string;
|
|
1512
1204
|
};
|
|
1513
1205
|
query?: never;
|
|
1514
|
-
url: '/api/v1/users/{
|
|
1206
|
+
url: '/api/v1/users/{userId}/roles/roles';
|
|
1515
1207
|
};
|
|
1516
|
-
export type
|
|
1208
|
+
export type GetApiV1UsersByUserIdRolesRolesErrors = {
|
|
1517
1209
|
/**
|
|
1518
1210
|
* Default Response
|
|
1519
1211
|
*/
|
|
@@ -1523,53 +1215,32 @@ export type GetApiV1UsersByIdErrors = {
|
|
|
1523
1215
|
message: string;
|
|
1524
1216
|
};
|
|
1525
1217
|
};
|
|
1526
|
-
export type
|
|
1527
|
-
export type
|
|
1218
|
+
export type GetApiV1UsersByUserIdRolesRolesError = GetApiV1UsersByUserIdRolesRolesErrors[keyof GetApiV1UsersByUserIdRolesRolesErrors];
|
|
1219
|
+
export type GetApiV1UsersByUserIdRolesRolesResponses = {
|
|
1528
1220
|
/**
|
|
1529
1221
|
* Default Response
|
|
1530
1222
|
*/
|
|
1531
|
-
200: {
|
|
1223
|
+
200: Array<{
|
|
1532
1224
|
id: string;
|
|
1533
|
-
email: string;
|
|
1534
|
-
firstName: string | null;
|
|
1535
|
-
lastName: string | null;
|
|
1536
|
-
username: string;
|
|
1537
1225
|
role: string;
|
|
1538
|
-
|
|
1539
|
-
phone: string | null;
|
|
1540
|
-
phoneVerified: boolean;
|
|
1541
|
-
isBlocked: boolean;
|
|
1542
|
-
isBlockedUntil: string | null;
|
|
1543
|
-
isGuest: boolean;
|
|
1544
|
-
locale: string;
|
|
1545
|
-
claims: unknown;
|
|
1546
|
-
marketingConsent: boolean;
|
|
1547
|
-
twoFaEnabled: boolean;
|
|
1548
|
-
twoFaType: string | null;
|
|
1226
|
+
group: string;
|
|
1549
1227
|
createdAt: string;
|
|
1550
|
-
|
|
1551
|
-
};
|
|
1228
|
+
}>;
|
|
1552
1229
|
};
|
|
1553
|
-
export type
|
|
1554
|
-
export type
|
|
1230
|
+
export type GetApiV1UsersByUserIdRolesRolesResponse = GetApiV1UsersByUserIdRolesRolesResponses[keyof GetApiV1UsersByUserIdRolesRolesResponses];
|
|
1231
|
+
export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
|
|
1555
1232
|
body: {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
phone?: string;
|
|
1559
|
-
phoneVerified?: boolean;
|
|
1560
|
-
isBlocked?: boolean;
|
|
1561
|
-
isBlockedUntil?: string | null;
|
|
1562
|
-
twoFaEnabled?: boolean;
|
|
1563
|
-
twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
|
|
1564
|
-
loginAttempts?: number;
|
|
1233
|
+
role?: string;
|
|
1234
|
+
group?: string;
|
|
1565
1235
|
};
|
|
1566
1236
|
path: {
|
|
1567
|
-
|
|
1237
|
+
userId: string;
|
|
1238
|
+
roleId: string;
|
|
1568
1239
|
};
|
|
1569
1240
|
query?: never;
|
|
1570
|
-
url: '/api/v1/users/{
|
|
1241
|
+
url: '/api/v1/users/{userId}/roles/{roleId}';
|
|
1571
1242
|
};
|
|
1572
|
-
export type
|
|
1243
|
+
export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
|
|
1573
1244
|
/**
|
|
1574
1245
|
* Default Response
|
|
1575
1246
|
*/
|
|
@@ -1587,58 +1258,62 @@ export type PatchApiV1UsersByIdErrors = {
|
|
|
1587
1258
|
message: string;
|
|
1588
1259
|
};
|
|
1589
1260
|
};
|
|
1590
|
-
export type
|
|
1591
|
-
export type
|
|
1261
|
+
export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
|
|
1262
|
+
export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
|
|
1592
1263
|
/**
|
|
1593
1264
|
* Default Response
|
|
1594
1265
|
*/
|
|
1595
1266
|
200: {
|
|
1596
1267
|
id: string;
|
|
1268
|
+
userId: string;
|
|
1269
|
+
role: string;
|
|
1270
|
+
group: string;
|
|
1271
|
+
createdAt: string;
|
|
1597
1272
|
};
|
|
1598
1273
|
};
|
|
1599
|
-
export type
|
|
1600
|
-
export type
|
|
1601
|
-
body
|
|
1274
|
+
export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
|
|
1275
|
+
export type DeleteApiV1UsersByUserIdTwoFaData = {
|
|
1276
|
+
body: {
|
|
1277
|
+
code: string;
|
|
1278
|
+
};
|
|
1602
1279
|
path: {
|
|
1603
1280
|
userId: string;
|
|
1604
|
-
roleId: string;
|
|
1605
1281
|
};
|
|
1606
1282
|
query?: never;
|
|
1607
|
-
url: '/api/v1/users/{userId}/
|
|
1283
|
+
url: '/api/v1/users/{userId}/two-fa';
|
|
1608
1284
|
};
|
|
1609
|
-
export type
|
|
1285
|
+
export type DeleteApiV1UsersByUserIdTwoFaErrors = {
|
|
1610
1286
|
/**
|
|
1611
1287
|
* Default Response
|
|
1612
1288
|
*/
|
|
1613
|
-
|
|
1289
|
+
401: {
|
|
1614
1290
|
statusCode: number;
|
|
1615
1291
|
error: string;
|
|
1616
1292
|
message: string;
|
|
1617
1293
|
};
|
|
1618
1294
|
};
|
|
1619
|
-
export type
|
|
1620
|
-
export type
|
|
1295
|
+
export type DeleteApiV1UsersByUserIdTwoFaError = DeleteApiV1UsersByUserIdTwoFaErrors[keyof DeleteApiV1UsersByUserIdTwoFaErrors];
|
|
1296
|
+
export type DeleteApiV1UsersByUserIdTwoFaResponses = {
|
|
1621
1297
|
/**
|
|
1622
1298
|
* Default Response
|
|
1623
1299
|
*/
|
|
1624
1300
|
200: {
|
|
1625
|
-
|
|
1301
|
+
success: boolean;
|
|
1626
1302
|
};
|
|
1627
1303
|
};
|
|
1628
|
-
export type
|
|
1629
|
-
export type
|
|
1304
|
+
export type DeleteApiV1UsersByUserIdTwoFaResponse = DeleteApiV1UsersByUserIdTwoFaResponses[keyof DeleteApiV1UsersByUserIdTwoFaResponses];
|
|
1305
|
+
export type PostApiV1UsersByUserIdTwoFaData = {
|
|
1630
1306
|
body: {
|
|
1631
|
-
|
|
1632
|
-
|
|
1307
|
+
code?: string;
|
|
1308
|
+
type?: 'APP' | 'EMAIL' | 'PHONE';
|
|
1633
1309
|
};
|
|
1634
1310
|
path: {
|
|
1635
1311
|
userId: string;
|
|
1636
|
-
roleId: string;
|
|
1637
1312
|
};
|
|
1638
1313
|
query?: never;
|
|
1639
|
-
url: '/api/v1/users/{userId}/
|
|
1314
|
+
url: '/api/v1/users/{userId}/two-fa';
|
|
1640
1315
|
};
|
|
1641
|
-
export type
|
|
1316
|
+
export type PostApiV1UsersByUserIdTwoFaErrors = {
|
|
1642
1317
|
/**
|
|
1643
1318
|
* Default Response
|
|
1644
1319
|
*/
|
|
@@ -1650,24 +1325,38 @@ export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
|
|
|
1650
1325
|
/**
|
|
1651
1326
|
* Default Response
|
|
1652
1327
|
*/
|
|
1653
|
-
|
|
1328
|
+
401: {
|
|
1654
1329
|
statusCode: number;
|
|
1655
1330
|
error: string;
|
|
1656
1331
|
message: string;
|
|
1657
1332
|
};
|
|
1658
1333
|
};
|
|
1659
|
-
export type
|
|
1660
|
-
export type
|
|
1334
|
+
export type PostApiV1UsersByUserIdTwoFaError = PostApiV1UsersByUserIdTwoFaErrors[keyof PostApiV1UsersByUserIdTwoFaErrors];
|
|
1335
|
+
export type PostApiV1UsersByUserIdTwoFaResponses = {
|
|
1661
1336
|
/**
|
|
1662
1337
|
* Default Response
|
|
1663
1338
|
*/
|
|
1664
1339
|
200: {
|
|
1665
|
-
|
|
1340
|
+
success: boolean;
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1343
|
+
export type PostApiV1UsersByUserIdTwoFaResponse = PostApiV1UsersByUserIdTwoFaResponses[keyof PostApiV1UsersByUserIdTwoFaResponses];
|
|
1344
|
+
export type GetApiV1UsersByUserIdTwoFaSecretData = {
|
|
1345
|
+
body?: never;
|
|
1346
|
+
path: {
|
|
1666
1347
|
userId: string;
|
|
1667
|
-
role: string;
|
|
1668
|
-
group: string;
|
|
1669
|
-
createdAt: string;
|
|
1670
1348
|
};
|
|
1349
|
+
query?: never;
|
|
1350
|
+
url: '/api/v1/users/{userId}/two-fa/secret';
|
|
1671
1351
|
};
|
|
1672
|
-
export type
|
|
1352
|
+
export type GetApiV1UsersByUserIdTwoFaSecretResponses = {
|
|
1353
|
+
/**
|
|
1354
|
+
* Default Response
|
|
1355
|
+
*/
|
|
1356
|
+
200: {
|
|
1357
|
+
secret: string;
|
|
1358
|
+
uri: string;
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1361
|
+
export type GetApiV1UsersByUserIdTwoFaSecretResponse = GetApiV1UsersByUserIdTwoFaSecretResponses[keyof GetApiV1UsersByUserIdTwoFaSecretResponses];
|
|
1673
1362
|
//# sourceMappingURL=types.gen.d.ts.map
|