@authticon/client 0.0.0-beta2 → 0.0.0-beta21

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