@authticon/client 0.0.0-beta6 → 0.0.0-beta8
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/Auth.d.ts +6 -0
- package/dist/Auth.d.ts.map +1 -1
- package/dist/Auth.js +20 -1
- package/dist/Auth.js.map +1 -1
- package/dist/Authticon.d.ts +32 -6
- package/dist/Authticon.d.ts.map +1 -1
- package/dist/Authticon.js +21 -0
- 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 +14 -0
- package/dist/CookieStorageAdapter.d.ts.map +1 -0
- package/dist/CookieStorageAdapter.js +42 -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 +130 -0
- package/dist/CookieStorageAdapter.test.js.map +1 -0
- package/dist/Users.js +3 -3
- package/dist/Users.js.map +1 -1
- 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 +11 -11
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +51 -51
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +253 -233
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/user.d.ts +15 -3
- package/dist/user.d.ts.map +1 -1
- package/dist/user.js +10 -2
- package/dist/user.js.map +1 -1
- package/package.json +3 -1
|
@@ -228,7 +228,7 @@ export type PostApiV1AuthLoginData = {
|
|
|
228
228
|
ip?: string;
|
|
229
229
|
twoFaCode?: string;
|
|
230
230
|
userAgent: string;
|
|
231
|
-
rememberToken
|
|
231
|
+
rememberToken?: string | null;
|
|
232
232
|
};
|
|
233
233
|
path?: never;
|
|
234
234
|
query?: never;
|
|
@@ -464,90 +464,6 @@ export type PostApiV1AuthMagicLinkSendResponses = {
|
|
|
464
464
|
};
|
|
465
465
|
};
|
|
466
466
|
export type PostApiV1AuthMagicLinkSendResponse = PostApiV1AuthMagicLinkSendResponses[keyof PostApiV1AuthMagicLinkSendResponses];
|
|
467
|
-
export type PostApiV1AuthPhoneSendCodeData = {
|
|
468
|
-
body: {
|
|
469
|
-
phone: string;
|
|
470
|
-
};
|
|
471
|
-
path?: never;
|
|
472
|
-
query?: never;
|
|
473
|
-
url: '/api/v1/auth/phone/send-code';
|
|
474
|
-
};
|
|
475
|
-
export type PostApiV1AuthPhoneSendCodeErrors = {
|
|
476
|
-
/**
|
|
477
|
-
* Default Response
|
|
478
|
-
*/
|
|
479
|
-
409: {
|
|
480
|
-
statusCode: number;
|
|
481
|
-
error: string;
|
|
482
|
-
message: string;
|
|
483
|
-
};
|
|
484
|
-
};
|
|
485
|
-
export type PostApiV1AuthPhoneSendCodeError = PostApiV1AuthPhoneSendCodeErrors[keyof PostApiV1AuthPhoneSendCodeErrors];
|
|
486
|
-
export type PostApiV1AuthPhoneSendCodeResponses = {
|
|
487
|
-
/**
|
|
488
|
-
* Default Response
|
|
489
|
-
*/
|
|
490
|
-
200: {
|
|
491
|
-
success: boolean;
|
|
492
|
-
};
|
|
493
|
-
};
|
|
494
|
-
export type PostApiV1AuthPhoneSendCodeResponse = PostApiV1AuthPhoneSendCodeResponses[keyof PostApiV1AuthPhoneSendCodeResponses];
|
|
495
|
-
export type PostApiV1AuthSmsSendCodeData = {
|
|
496
|
-
body: {
|
|
497
|
-
[key: string]: unknown;
|
|
498
|
-
};
|
|
499
|
-
path?: never;
|
|
500
|
-
query?: never;
|
|
501
|
-
url: '/api/v1/auth/sms/send-code';
|
|
502
|
-
};
|
|
503
|
-
export type PostApiV1AuthSmsSendCodeErrors = {
|
|
504
|
-
/**
|
|
505
|
-
* Default Response
|
|
506
|
-
*/
|
|
507
|
-
400: {
|
|
508
|
-
statusCode: number;
|
|
509
|
-
error: string;
|
|
510
|
-
message: string;
|
|
511
|
-
};
|
|
512
|
-
/**
|
|
513
|
-
* Default Response
|
|
514
|
-
*/
|
|
515
|
-
401: {
|
|
516
|
-
statusCode: number;
|
|
517
|
-
error: string;
|
|
518
|
-
message: string;
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
export type PostApiV1AuthSmsSendCodeError = PostApiV1AuthSmsSendCodeErrors[keyof PostApiV1AuthSmsSendCodeErrors];
|
|
522
|
-
export type PostApiV1AuthSmsSendCodeResponses = {
|
|
523
|
-
/**
|
|
524
|
-
* Default Response
|
|
525
|
-
*/
|
|
526
|
-
200: {
|
|
527
|
-
success: boolean;
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
export type PostApiV1AuthSmsSendCodeResponse = PostApiV1AuthSmsSendCodeResponses[keyof PostApiV1AuthSmsSendCodeResponses];
|
|
531
|
-
export type PostApiV1AuthTestEmailData = {
|
|
532
|
-
body: {
|
|
533
|
-
email: string;
|
|
534
|
-
projectId: string;
|
|
535
|
-
template: string;
|
|
536
|
-
locale?: string;
|
|
537
|
-
};
|
|
538
|
-
path?: never;
|
|
539
|
-
query?: never;
|
|
540
|
-
url: '/api/v1/auth/test-email';
|
|
541
|
-
};
|
|
542
|
-
export type PostApiV1AuthTestEmailResponses = {
|
|
543
|
-
/**
|
|
544
|
-
* Default Response
|
|
545
|
-
*/
|
|
546
|
-
200: {
|
|
547
|
-
success: boolean;
|
|
548
|
-
};
|
|
549
|
-
};
|
|
550
|
-
export type PostApiV1AuthTestEmailResponse = PostApiV1AuthTestEmailResponses[keyof PostApiV1AuthTestEmailResponses];
|
|
551
467
|
export type PostApiV1AuthPasswordSetData = {
|
|
552
468
|
body: {
|
|
553
469
|
password: string;
|
|
@@ -717,71 +633,6 @@ export type PostApiV1AuthMagicLinkVerifyResponses = {
|
|
|
717
633
|
};
|
|
718
634
|
};
|
|
719
635
|
export type PostApiV1AuthMagicLinkVerifyResponse = PostApiV1AuthMagicLinkVerifyResponses[keyof PostApiV1AuthMagicLinkVerifyResponses];
|
|
720
|
-
export type PostApiV1AuthPhoneVerifyData = {
|
|
721
|
-
body: {
|
|
722
|
-
phone: string;
|
|
723
|
-
code: string;
|
|
724
|
-
};
|
|
725
|
-
path?: never;
|
|
726
|
-
query?: never;
|
|
727
|
-
url: '/api/v1/auth/phone/verify';
|
|
728
|
-
};
|
|
729
|
-
export type PostApiV1AuthPhoneVerifyErrors = {
|
|
730
|
-
/**
|
|
731
|
-
* Default Response
|
|
732
|
-
*/
|
|
733
|
-
401: {
|
|
734
|
-
statusCode: number;
|
|
735
|
-
error: string;
|
|
736
|
-
message: string;
|
|
737
|
-
};
|
|
738
|
-
};
|
|
739
|
-
export type PostApiV1AuthPhoneVerifyError = PostApiV1AuthPhoneVerifyErrors[keyof PostApiV1AuthPhoneVerifyErrors];
|
|
740
|
-
export type PostApiV1AuthPhoneVerifyResponses = {
|
|
741
|
-
/**
|
|
742
|
-
* Default Response
|
|
743
|
-
*/
|
|
744
|
-
200: {
|
|
745
|
-
success: boolean;
|
|
746
|
-
};
|
|
747
|
-
};
|
|
748
|
-
export type PostApiV1AuthPhoneVerifyResponse = PostApiV1AuthPhoneVerifyResponses[keyof PostApiV1AuthPhoneVerifyResponses];
|
|
749
|
-
export type PostApiV1AuthSmsVerifyData = {
|
|
750
|
-
body: {
|
|
751
|
-
code: string;
|
|
752
|
-
};
|
|
753
|
-
path?: never;
|
|
754
|
-
query?: never;
|
|
755
|
-
url: '/api/v1/auth/sms/verify';
|
|
756
|
-
};
|
|
757
|
-
export type PostApiV1AuthSmsVerifyErrors = {
|
|
758
|
-
/**
|
|
759
|
-
* Default Response
|
|
760
|
-
*/
|
|
761
|
-
400: {
|
|
762
|
-
statusCode: number;
|
|
763
|
-
error: string;
|
|
764
|
-
message: string;
|
|
765
|
-
};
|
|
766
|
-
/**
|
|
767
|
-
* Default Response
|
|
768
|
-
*/
|
|
769
|
-
401: {
|
|
770
|
-
statusCode: number;
|
|
771
|
-
error: string;
|
|
772
|
-
message: string;
|
|
773
|
-
};
|
|
774
|
-
};
|
|
775
|
-
export type PostApiV1AuthSmsVerifyError = PostApiV1AuthSmsVerifyErrors[keyof PostApiV1AuthSmsVerifyErrors];
|
|
776
|
-
export type PostApiV1AuthSmsVerifyResponses = {
|
|
777
|
-
/**
|
|
778
|
-
* Default Response
|
|
779
|
-
*/
|
|
780
|
-
200: {
|
|
781
|
-
verify: boolean;
|
|
782
|
-
};
|
|
783
|
-
};
|
|
784
|
-
export type PostApiV1AuthSmsVerifyResponse = PostApiV1AuthSmsVerifyResponses[keyof PostApiV1AuthSmsVerifyResponses];
|
|
785
636
|
export type PostApiV1InvitationsInvitationAcceptData = {
|
|
786
637
|
body: {
|
|
787
638
|
token: string;
|
|
@@ -882,6 +733,102 @@ export type DeleteApiV1InvitationsInvitationByIdResponses = {
|
|
|
882
733
|
};
|
|
883
734
|
};
|
|
884
735
|
export type DeleteApiV1InvitationsInvitationByIdResponse = DeleteApiV1InvitationsInvitationByIdResponses[keyof DeleteApiV1InvitationsInvitationByIdResponses];
|
|
736
|
+
export type PostApiV1ToolsTestEmailData = {
|
|
737
|
+
body: {
|
|
738
|
+
email: string;
|
|
739
|
+
projectId: string;
|
|
740
|
+
template: string;
|
|
741
|
+
locale?: string;
|
|
742
|
+
};
|
|
743
|
+
path?: never;
|
|
744
|
+
query?: never;
|
|
745
|
+
url: '/api/v1/tools/test-email';
|
|
746
|
+
};
|
|
747
|
+
export type PostApiV1ToolsTestEmailResponses = {
|
|
748
|
+
/**
|
|
749
|
+
* Default Response
|
|
750
|
+
*/
|
|
751
|
+
200: {
|
|
752
|
+
success: boolean;
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
export type PostApiV1ToolsTestEmailResponse = PostApiV1ToolsTestEmailResponses[keyof PostApiV1ToolsTestEmailResponses];
|
|
756
|
+
export type PatchApiV1ToolsSmsData = {
|
|
757
|
+
body: {
|
|
758
|
+
code: string;
|
|
759
|
+
};
|
|
760
|
+
path: {
|
|
761
|
+
userId: string;
|
|
762
|
+
};
|
|
763
|
+
query?: never;
|
|
764
|
+
url: '/api/v1/tools/sms';
|
|
765
|
+
};
|
|
766
|
+
export type PatchApiV1ToolsSmsErrors = {
|
|
767
|
+
/**
|
|
768
|
+
* Default Response
|
|
769
|
+
*/
|
|
770
|
+
400: {
|
|
771
|
+
statusCode: number;
|
|
772
|
+
error: string;
|
|
773
|
+
message: string;
|
|
774
|
+
};
|
|
775
|
+
/**
|
|
776
|
+
* Default Response
|
|
777
|
+
*/
|
|
778
|
+
401: {
|
|
779
|
+
statusCode: number;
|
|
780
|
+
error: string;
|
|
781
|
+
message: string;
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
export type PatchApiV1ToolsSmsError = PatchApiV1ToolsSmsErrors[keyof PatchApiV1ToolsSmsErrors];
|
|
785
|
+
export type PatchApiV1ToolsSmsResponses = {
|
|
786
|
+
/**
|
|
787
|
+
* Default Response
|
|
788
|
+
*/
|
|
789
|
+
200: {
|
|
790
|
+
verify: boolean;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
export type PatchApiV1ToolsSmsResponse = PatchApiV1ToolsSmsResponses[keyof PatchApiV1ToolsSmsResponses];
|
|
794
|
+
export type PostApiV1ToolsSmsData = {
|
|
795
|
+
body: {
|
|
796
|
+
[key: string]: unknown;
|
|
797
|
+
};
|
|
798
|
+
path: {
|
|
799
|
+
userId: string;
|
|
800
|
+
};
|
|
801
|
+
query?: never;
|
|
802
|
+
url: '/api/v1/tools/sms';
|
|
803
|
+
};
|
|
804
|
+
export type PostApiV1ToolsSmsErrors = {
|
|
805
|
+
/**
|
|
806
|
+
* Default Response
|
|
807
|
+
*/
|
|
808
|
+
400: {
|
|
809
|
+
statusCode: number;
|
|
810
|
+
error: string;
|
|
811
|
+
message: string;
|
|
812
|
+
};
|
|
813
|
+
/**
|
|
814
|
+
* Default Response
|
|
815
|
+
*/
|
|
816
|
+
401: {
|
|
817
|
+
statusCode: number;
|
|
818
|
+
error: string;
|
|
819
|
+
message: string;
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
export type PostApiV1ToolsSmsError = PostApiV1ToolsSmsErrors[keyof PostApiV1ToolsSmsErrors];
|
|
823
|
+
export type PostApiV1ToolsSmsResponses = {
|
|
824
|
+
/**
|
|
825
|
+
* Default Response
|
|
826
|
+
*/
|
|
827
|
+
200: {
|
|
828
|
+
success: boolean;
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
export type PostApiV1ToolsSmsResponse = PostApiV1ToolsSmsResponses[keyof PostApiV1ToolsSmsResponses];
|
|
885
832
|
export type GetApiV1UsersData = {
|
|
886
833
|
body?: never;
|
|
887
834
|
path?: never;
|
|
@@ -967,53 +914,29 @@ export type PostApiV1UsersResponses = {
|
|
|
967
914
|
};
|
|
968
915
|
};
|
|
969
916
|
export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
|
|
970
|
-
export type
|
|
971
|
-
body?: never;
|
|
972
|
-
path: {
|
|
973
|
-
userId: string;
|
|
974
|
-
};
|
|
975
|
-
query?: never;
|
|
976
|
-
url: '/api/v1/users/{userId}/roles';
|
|
977
|
-
};
|
|
978
|
-
export type GetApiV1UsersByUserIdRolesErrors = {
|
|
979
|
-
/**
|
|
980
|
-
* Default Response
|
|
981
|
-
*/
|
|
982
|
-
404: {
|
|
983
|
-
statusCode: number;
|
|
984
|
-
error: string;
|
|
985
|
-
message: string;
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
|
-
export type GetApiV1UsersByUserIdRolesError = GetApiV1UsersByUserIdRolesErrors[keyof GetApiV1UsersByUserIdRolesErrors];
|
|
989
|
-
export type GetApiV1UsersByUserIdRolesResponses = {
|
|
990
|
-
/**
|
|
991
|
-
* Default Response
|
|
992
|
-
*/
|
|
993
|
-
200: Array<{
|
|
994
|
-
id: string;
|
|
995
|
-
role: string;
|
|
996
|
-
group: string;
|
|
997
|
-
createdAt: string;
|
|
998
|
-
}>;
|
|
999
|
-
};
|
|
1000
|
-
export type GetApiV1UsersByUserIdRolesResponse = GetApiV1UsersByUserIdRolesResponses[keyof GetApiV1UsersByUserIdRolesResponses];
|
|
1001
|
-
export type PostApiV1UsersByUserIdRolesData = {
|
|
917
|
+
export type PatchApiV1UsersByIdData = {
|
|
1002
918
|
body: {
|
|
1003
|
-
|
|
1004
|
-
|
|
919
|
+
email?: string;
|
|
920
|
+
emailVerified?: boolean;
|
|
921
|
+
phone?: string;
|
|
922
|
+
phoneVerified?: boolean;
|
|
923
|
+
isBlocked?: boolean;
|
|
924
|
+
isBlockedUntil?: string | null;
|
|
925
|
+
twoFaEnabled?: boolean;
|
|
926
|
+
twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
|
|
927
|
+
loginAttempts?: number;
|
|
1005
928
|
};
|
|
1006
929
|
path: {
|
|
1007
|
-
|
|
930
|
+
id: string;
|
|
1008
931
|
};
|
|
1009
932
|
query?: never;
|
|
1010
|
-
url: '/api/v1/users/{
|
|
933
|
+
url: '/api/v1/users/{id}';
|
|
1011
934
|
};
|
|
1012
|
-
export type
|
|
935
|
+
export type PatchApiV1UsersByIdErrors = {
|
|
1013
936
|
/**
|
|
1014
937
|
* Default Response
|
|
1015
938
|
*/
|
|
1016
|
-
|
|
939
|
+
400: {
|
|
1017
940
|
statusCode: number;
|
|
1018
941
|
error: string;
|
|
1019
942
|
message: string;
|
|
@@ -1021,35 +944,31 @@ export type PostApiV1UsersByUserIdRolesErrors = {
|
|
|
1021
944
|
/**
|
|
1022
945
|
* Default Response
|
|
1023
946
|
*/
|
|
1024
|
-
|
|
947
|
+
404: {
|
|
1025
948
|
statusCode: number;
|
|
1026
949
|
error: string;
|
|
1027
950
|
message: string;
|
|
1028
951
|
};
|
|
1029
952
|
};
|
|
1030
|
-
export type
|
|
1031
|
-
export type
|
|
953
|
+
export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
|
|
954
|
+
export type PatchApiV1UsersByIdResponses = {
|
|
1032
955
|
/**
|
|
1033
956
|
* Default Response
|
|
1034
957
|
*/
|
|
1035
|
-
|
|
958
|
+
200: {
|
|
1036
959
|
id: string;
|
|
1037
|
-
userId: string;
|
|
1038
|
-
role: string;
|
|
1039
|
-
group: string;
|
|
1040
|
-
createdAt: string;
|
|
1041
960
|
};
|
|
1042
961
|
};
|
|
1043
|
-
export type
|
|
1044
|
-
export type
|
|
962
|
+
export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
|
|
963
|
+
export type DeleteApiV1UsersByUserIdData = {
|
|
1045
964
|
body?: never;
|
|
1046
965
|
path: {
|
|
1047
966
|
id: string;
|
|
1048
967
|
};
|
|
1049
968
|
query?: never;
|
|
1050
|
-
url: '/api/v1/users/{
|
|
969
|
+
url: '/api/v1/users/{userId}/';
|
|
1051
970
|
};
|
|
1052
|
-
export type
|
|
971
|
+
export type DeleteApiV1UsersByUserIdErrors = {
|
|
1053
972
|
/**
|
|
1054
973
|
* Default Response
|
|
1055
974
|
*/
|
|
@@ -1059,8 +978,8 @@ export type DeleteApiV1UsersByIdErrors = {
|
|
|
1059
978
|
message: string;
|
|
1060
979
|
};
|
|
1061
980
|
};
|
|
1062
|
-
export type
|
|
1063
|
-
export type
|
|
981
|
+
export type DeleteApiV1UsersByUserIdError = DeleteApiV1UsersByUserIdErrors[keyof DeleteApiV1UsersByUserIdErrors];
|
|
982
|
+
export type DeleteApiV1UsersByUserIdResponses = {
|
|
1064
983
|
/**
|
|
1065
984
|
* Default Response
|
|
1066
985
|
*/
|
|
@@ -1068,16 +987,16 @@ export type DeleteApiV1UsersByIdResponses = {
|
|
|
1068
987
|
id: string;
|
|
1069
988
|
};
|
|
1070
989
|
};
|
|
1071
|
-
export type
|
|
1072
|
-
export type
|
|
990
|
+
export type DeleteApiV1UsersByUserIdResponse = DeleteApiV1UsersByUserIdResponses[keyof DeleteApiV1UsersByUserIdResponses];
|
|
991
|
+
export type GetApiV1UsersByUserIdData = {
|
|
1073
992
|
body?: never;
|
|
1074
993
|
path: {
|
|
1075
994
|
id: string;
|
|
1076
995
|
};
|
|
1077
996
|
query?: never;
|
|
1078
|
-
url: '/api/v1/users/{
|
|
997
|
+
url: '/api/v1/users/{userId}';
|
|
1079
998
|
};
|
|
1080
|
-
export type
|
|
999
|
+
export type GetApiV1UsersByUserIdErrors = {
|
|
1081
1000
|
/**
|
|
1082
1001
|
* Default Response
|
|
1083
1002
|
*/
|
|
@@ -1087,8 +1006,8 @@ export type GetApiV1UsersByIdErrors = {
|
|
|
1087
1006
|
message: string;
|
|
1088
1007
|
};
|
|
1089
1008
|
};
|
|
1090
|
-
export type
|
|
1091
|
-
export type
|
|
1009
|
+
export type GetApiV1UsersByUserIdError = GetApiV1UsersByUserIdErrors[keyof GetApiV1UsersByUserIdErrors];
|
|
1010
|
+
export type GetApiV1UsersByUserIdResponses = {
|
|
1092
1011
|
/**
|
|
1093
1012
|
* Default Response
|
|
1094
1013
|
*/
|
|
@@ -1114,30 +1033,23 @@ export type GetApiV1UsersByIdResponses = {
|
|
|
1114
1033
|
updatedAt: string;
|
|
1115
1034
|
};
|
|
1116
1035
|
};
|
|
1117
|
-
export type
|
|
1118
|
-
export type
|
|
1036
|
+
export type GetApiV1UsersByUserIdResponse = GetApiV1UsersByUserIdResponses[keyof GetApiV1UsersByUserIdResponses];
|
|
1037
|
+
export type PatchApiV1UsersByUserIdChallangePhoneData = {
|
|
1119
1038
|
body: {
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
phone?: string;
|
|
1123
|
-
phoneVerified?: boolean;
|
|
1124
|
-
isBlocked?: boolean;
|
|
1125
|
-
isBlockedUntil?: string | null;
|
|
1126
|
-
twoFaEnabled?: boolean;
|
|
1127
|
-
twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
|
|
1128
|
-
loginAttempts?: number;
|
|
1039
|
+
phone: string;
|
|
1040
|
+
code: string;
|
|
1129
1041
|
};
|
|
1130
1042
|
path: {
|
|
1131
|
-
|
|
1043
|
+
userId: string;
|
|
1132
1044
|
};
|
|
1133
1045
|
query?: never;
|
|
1134
|
-
url: '/api/v1/users/{
|
|
1046
|
+
url: '/api/v1/users/{userId}/challange/phone';
|
|
1135
1047
|
};
|
|
1136
|
-
export type
|
|
1048
|
+
export type PatchApiV1UsersByUserIdChallangePhoneErrors = {
|
|
1137
1049
|
/**
|
|
1138
1050
|
* Default Response
|
|
1139
1051
|
*/
|
|
1140
|
-
|
|
1052
|
+
401: {
|
|
1141
1053
|
statusCode: number;
|
|
1142
1054
|
error: string;
|
|
1143
1055
|
message: string;
|
|
@@ -1151,26 +1063,103 @@ export type PatchApiV1UsersByIdErrors = {
|
|
|
1151
1063
|
message: string;
|
|
1152
1064
|
};
|
|
1153
1065
|
};
|
|
1154
|
-
export type
|
|
1155
|
-
export type
|
|
1066
|
+
export type PatchApiV1UsersByUserIdChallangePhoneError = PatchApiV1UsersByUserIdChallangePhoneErrors[keyof PatchApiV1UsersByUserIdChallangePhoneErrors];
|
|
1067
|
+
export type PatchApiV1UsersByUserIdChallangePhoneResponses = {
|
|
1156
1068
|
/**
|
|
1157
1069
|
* Default Response
|
|
1158
1070
|
*/
|
|
1159
|
-
|
|
1071
|
+
201: null;
|
|
1072
|
+
};
|
|
1073
|
+
export type PatchApiV1UsersByUserIdChallangePhoneResponse = PatchApiV1UsersByUserIdChallangePhoneResponses[keyof PatchApiV1UsersByUserIdChallangePhoneResponses];
|
|
1074
|
+
export type PostApiV1UsersByUserIdChallangePhoneData = {
|
|
1075
|
+
body: {
|
|
1076
|
+
phone: string;
|
|
1077
|
+
};
|
|
1078
|
+
path: {
|
|
1079
|
+
userId: string;
|
|
1080
|
+
};
|
|
1081
|
+
query?: never;
|
|
1082
|
+
url: '/api/v1/users/{userId}/challange/phone';
|
|
1083
|
+
};
|
|
1084
|
+
export type PostApiV1UsersByUserIdChallangePhoneErrors = {
|
|
1085
|
+
/**
|
|
1086
|
+
* Default Response
|
|
1087
|
+
*/
|
|
1088
|
+
404: {
|
|
1089
|
+
statusCode: number;
|
|
1090
|
+
error: string;
|
|
1091
|
+
message: string;
|
|
1092
|
+
};
|
|
1093
|
+
/**
|
|
1094
|
+
* Default Response
|
|
1095
|
+
*/
|
|
1096
|
+
409: {
|
|
1097
|
+
statusCode: number;
|
|
1098
|
+
error: string;
|
|
1099
|
+
message: string;
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
export type PostApiV1UsersByUserIdChallangePhoneError = PostApiV1UsersByUserIdChallangePhoneErrors[keyof PostApiV1UsersByUserIdChallangePhoneErrors];
|
|
1103
|
+
export type PostApiV1UsersByUserIdChallangePhoneResponses = {
|
|
1104
|
+
/**
|
|
1105
|
+
* Default Response
|
|
1106
|
+
*/
|
|
1107
|
+
200: null;
|
|
1108
|
+
};
|
|
1109
|
+
export type PostApiV1UsersByUserIdChallangePhoneResponse = PostApiV1UsersByUserIdChallangePhoneResponses[keyof PostApiV1UsersByUserIdChallangePhoneResponses];
|
|
1110
|
+
export type PostApiV1UsersByUserIdRolesData = {
|
|
1111
|
+
body: {
|
|
1112
|
+
role: string;
|
|
1113
|
+
group: string;
|
|
1114
|
+
};
|
|
1115
|
+
path: {
|
|
1116
|
+
userId: string;
|
|
1117
|
+
};
|
|
1118
|
+
query?: never;
|
|
1119
|
+
url: '/api/v1/users/{userId}/roles';
|
|
1120
|
+
};
|
|
1121
|
+
export type PostApiV1UsersByUserIdRolesErrors = {
|
|
1122
|
+
/**
|
|
1123
|
+
* Default Response
|
|
1124
|
+
*/
|
|
1125
|
+
404: {
|
|
1126
|
+
statusCode: number;
|
|
1127
|
+
error: string;
|
|
1128
|
+
message: string;
|
|
1129
|
+
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Default Response
|
|
1132
|
+
*/
|
|
1133
|
+
409: {
|
|
1134
|
+
statusCode: number;
|
|
1135
|
+
error: string;
|
|
1136
|
+
message: string;
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
export type PostApiV1UsersByUserIdRolesError = PostApiV1UsersByUserIdRolesErrors[keyof PostApiV1UsersByUserIdRolesErrors];
|
|
1140
|
+
export type PostApiV1UsersByUserIdRolesResponses = {
|
|
1141
|
+
/**
|
|
1142
|
+
* Default Response
|
|
1143
|
+
*/
|
|
1144
|
+
201: {
|
|
1160
1145
|
id: string;
|
|
1146
|
+
userId: string;
|
|
1147
|
+
role: string;
|
|
1148
|
+
group: string;
|
|
1149
|
+
createdAt: string;
|
|
1161
1150
|
};
|
|
1162
1151
|
};
|
|
1163
|
-
export type
|
|
1164
|
-
export type
|
|
1152
|
+
export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
|
|
1153
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdData = {
|
|
1165
1154
|
body?: never;
|
|
1166
1155
|
path: {
|
|
1167
1156
|
userId: string;
|
|
1168
1157
|
roleId: string;
|
|
1169
1158
|
};
|
|
1170
1159
|
query?: never;
|
|
1171
|
-
url: '/api/v1/users/{userId}/roles/{roleId}';
|
|
1160
|
+
url: '/api/v1/users/{userId}/roles/roles/{roleId}';
|
|
1172
1161
|
};
|
|
1173
|
-
export type
|
|
1162
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors = {
|
|
1174
1163
|
/**
|
|
1175
1164
|
* Default Response
|
|
1176
1165
|
*/
|
|
@@ -1180,8 +1169,8 @@ export type DeleteApiV1UsersByUserIdRolesByRoleIdErrors = {
|
|
|
1180
1169
|
message: string;
|
|
1181
1170
|
};
|
|
1182
1171
|
};
|
|
1183
|
-
export type
|
|
1184
|
-
export type
|
|
1172
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesRolesByRoleIdErrors];
|
|
1173
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses = {
|
|
1185
1174
|
/**
|
|
1186
1175
|
* Default Response
|
|
1187
1176
|
*/
|
|
@@ -1189,7 +1178,38 @@ export type DeleteApiV1UsersByUserIdRolesByRoleIdResponses = {
|
|
|
1189
1178
|
id: string;
|
|
1190
1179
|
};
|
|
1191
1180
|
};
|
|
1192
|
-
export type
|
|
1181
|
+
export type DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesRolesByRoleIdResponses];
|
|
1182
|
+
export type GetApiV1UsersByUserIdRolesRolesData = {
|
|
1183
|
+
body?: never;
|
|
1184
|
+
path: {
|
|
1185
|
+
userId: string;
|
|
1186
|
+
};
|
|
1187
|
+
query?: never;
|
|
1188
|
+
url: '/api/v1/users/{userId}/roles/roles';
|
|
1189
|
+
};
|
|
1190
|
+
export type GetApiV1UsersByUserIdRolesRolesErrors = {
|
|
1191
|
+
/**
|
|
1192
|
+
* Default Response
|
|
1193
|
+
*/
|
|
1194
|
+
404: {
|
|
1195
|
+
statusCode: number;
|
|
1196
|
+
error: string;
|
|
1197
|
+
message: string;
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
export type GetApiV1UsersByUserIdRolesRolesError = GetApiV1UsersByUserIdRolesRolesErrors[keyof GetApiV1UsersByUserIdRolesRolesErrors];
|
|
1201
|
+
export type GetApiV1UsersByUserIdRolesRolesResponses = {
|
|
1202
|
+
/**
|
|
1203
|
+
* Default Response
|
|
1204
|
+
*/
|
|
1205
|
+
200: Array<{
|
|
1206
|
+
id: string;
|
|
1207
|
+
role: string;
|
|
1208
|
+
group: string;
|
|
1209
|
+
createdAt: string;
|
|
1210
|
+
}>;
|
|
1211
|
+
};
|
|
1212
|
+
export type GetApiV1UsersByUserIdRolesRolesResponse = GetApiV1UsersByUserIdRolesRolesResponses[keyof GetApiV1UsersByUserIdRolesRolesResponses];
|
|
1193
1213
|
export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
|
|
1194
1214
|
body: {
|
|
1195
1215
|
role?: string;
|