@authticon/client 0.0.0-beta4 → 0.0.0-beta40

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 (248) hide show
  1. package/README.md +375 -0
  2. package/dist/CookieStorageAdapter.d.ts +15 -0
  3. package/dist/CookieStorageAdapter.d.ts.map +1 -0
  4. package/dist/CookieStorageAdapter.js +60 -0
  5. package/dist/CookieStorageAdapter.js.map +1 -0
  6. package/dist/InMemoryCacheAdapter.d.ts +3 -0
  7. package/dist/InMemoryCacheAdapter.d.ts.map +1 -0
  8. package/dist/InMemoryCacheAdapter.js +13 -0
  9. package/dist/InMemoryCacheAdapter.js.map +1 -0
  10. package/dist/TokenStorage.d.ts +14 -10
  11. package/dist/TokenStorage.d.ts.map +1 -1
  12. package/dist/TokenStorage.js +92 -59
  13. package/dist/TokenStorage.js.map +1 -1
  14. package/dist/TokenVerifier.d.ts +6 -11
  15. package/dist/TokenVerifier.d.ts.map +1 -1
  16. package/dist/TokenVerifier.js +48 -34
  17. package/dist/TokenVerifier.js.map +1 -1
  18. package/dist/admin.d.ts +2 -0
  19. package/dist/admin.d.ts.map +1 -0
  20. package/dist/admin.js +2 -0
  21. package/dist/admin.js.map +1 -0
  22. package/dist/adminClient.d.ts +104 -0
  23. package/dist/adminClient.d.ts.map +1 -0
  24. package/dist/adminClient.js +108 -0
  25. package/dist/adminClient.js.map +1 -0
  26. package/dist/apiClient.d.ts +8 -0
  27. package/dist/apiClient.d.ts.map +1 -0
  28. package/dist/apiClient.js +18 -0
  29. package/dist/apiClient.js.map +1 -0
  30. package/dist/authClient.d.ts +42 -0
  31. package/dist/authClient.d.ts.map +1 -0
  32. package/dist/authClient.js +75 -0
  33. package/dist/authClient.js.map +1 -0
  34. package/dist/authticon.d.ts +130 -0
  35. package/dist/authticon.d.ts.map +1 -0
  36. package/dist/authticon.js +24 -0
  37. package/dist/authticon.js.map +1 -0
  38. package/dist/browser.d.ts +133 -0
  39. package/dist/browser.d.ts.map +1 -0
  40. package/dist/browser.js +7 -0
  41. package/dist/browser.js.map +1 -0
  42. package/dist/clients/admin.d.ts +106 -0
  43. package/dist/clients/admin.d.ts.map +1 -0
  44. package/dist/clients/admin.js +126 -0
  45. package/dist/clients/admin.js.map +1 -0
  46. package/dist/clients/auth.d.ts +42 -0
  47. package/dist/clients/auth.d.ts.map +1 -0
  48. package/dist/clients/auth.js +74 -0
  49. package/dist/clients/auth.js.map +1 -0
  50. package/dist/clients/base.d.ts +8 -0
  51. package/dist/clients/base.d.ts.map +1 -0
  52. package/dist/clients/base.js +18 -0
  53. package/dist/clients/base.js.map +1 -0
  54. package/dist/clients/generated/client/client.gen.d.ts +3 -0
  55. package/dist/clients/generated/client/client.gen.d.ts.map +1 -0
  56. package/dist/clients/generated/client/client.gen.js +236 -0
  57. package/dist/clients/generated/client/client.gen.js.map +1 -0
  58. package/dist/clients/generated/client/index.d.ts +9 -0
  59. package/dist/clients/generated/client/index.d.ts.map +1 -0
  60. package/dist/clients/generated/client/index.js +7 -0
  61. package/dist/clients/generated/client/index.js.map +1 -0
  62. package/dist/clients/generated/client/types.gen.d.ts +118 -0
  63. package/dist/clients/generated/client/types.gen.d.ts.map +1 -0
  64. package/dist/clients/generated/client/types.gen.js +3 -0
  65. package/dist/clients/generated/client/types.gen.js.map +1 -0
  66. package/dist/clients/generated/client/utils.gen.d.ts +34 -0
  67. package/dist/clients/generated/client/utils.gen.d.ts.map +1 -0
  68. package/dist/clients/generated/client/utils.gen.js +229 -0
  69. package/dist/clients/generated/client/utils.gen.js.map +1 -0
  70. package/dist/clients/generated/client.gen.d.ts +13 -0
  71. package/dist/clients/generated/client.gen.d.ts.map +1 -0
  72. package/dist/clients/generated/client.gen.js +4 -0
  73. package/dist/clients/generated/client.gen.js.map +1 -0
  74. package/dist/clients/generated/core/auth.gen.d.ts +19 -0
  75. package/dist/clients/generated/core/auth.gen.d.ts.map +1 -0
  76. package/dist/clients/generated/core/auth.gen.js +15 -0
  77. package/dist/clients/generated/core/auth.gen.js.map +1 -0
  78. package/dist/clients/generated/core/bodySerializer.gen.d.ts +26 -0
  79. package/dist/clients/generated/core/bodySerializer.gen.d.ts.map +1 -0
  80. package/dist/clients/generated/core/bodySerializer.gen.js +58 -0
  81. package/dist/clients/generated/core/bodySerializer.gen.js.map +1 -0
  82. package/dist/clients/generated/core/params.gen.d.ts +44 -0
  83. package/dist/clients/generated/core/params.gen.d.ts.map +1 -0
  84. package/dist/clients/generated/core/params.gen.js +101 -0
  85. package/dist/clients/generated/core/params.gen.js.map +1 -0
  86. package/dist/clients/generated/core/pathSerializer.gen.d.ts +34 -0
  87. package/dist/clients/generated/core/pathSerializer.gen.d.ts.map +1 -0
  88. package/dist/clients/generated/core/pathSerializer.gen.js +107 -0
  89. package/dist/clients/generated/core/pathSerializer.gen.js.map +1 -0
  90. package/dist/clients/generated/core/queryKeySerializer.gen.d.ts +19 -0
  91. package/dist/clients/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
  92. package/dist/clients/generated/core/queryKeySerializer.gen.js +93 -0
  93. package/dist/clients/generated/core/queryKeySerializer.gen.js.map +1 -0
  94. package/dist/clients/generated/core/serverSentEvents.gen.d.ts +72 -0
  95. package/dist/clients/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  96. package/dist/clients/generated/core/serverSentEvents.gen.js +134 -0
  97. package/dist/clients/generated/core/serverSentEvents.gen.js.map +1 -0
  98. package/dist/clients/generated/core/types.gen.d.ts +79 -0
  99. package/dist/clients/generated/core/types.gen.d.ts.map +1 -0
  100. package/dist/clients/generated/core/types.gen.js +3 -0
  101. package/dist/clients/generated/core/types.gen.js.map +1 -0
  102. package/dist/clients/generated/core/utils.gen.d.ts +20 -0
  103. package/dist/clients/generated/core/utils.gen.d.ts.map +1 -0
  104. package/dist/clients/generated/core/utils.gen.js +88 -0
  105. package/dist/clients/generated/core/utils.gen.js.map +1 -0
  106. package/dist/clients/generated/index.d.ts +3 -0
  107. package/dist/clients/generated/index.d.ts.map +1 -0
  108. package/dist/clients/generated/index.js +3 -0
  109. package/dist/clients/generated/index.js.map +1 -0
  110. package/dist/clients/generated/sdk.gen.d.ts +168 -0
  111. package/dist/clients/generated/sdk.gen.d.ts.map +1 -0
  112. package/dist/clients/generated/sdk.gen.js +427 -0
  113. package/dist/clients/generated/sdk.gen.js.map +1 -0
  114. package/dist/clients/generated/types.gen.d.ts +1261 -0
  115. package/dist/clients/generated/types.gen.d.ts.map +1 -0
  116. package/dist/clients/generated/types.gen.js +3 -0
  117. package/dist/clients/generated/types.gen.js.map +1 -0
  118. package/dist/clients/user.d.ts +67 -0
  119. package/dist/clients/user.d.ts.map +1 -0
  120. package/dist/clients/user.js +72 -0
  121. package/dist/clients/user.js.map +1 -0
  122. package/dist/cookies/browser.d.ts +3 -0
  123. package/dist/cookies/browser.d.ts.map +1 -0
  124. package/dist/cookies/browser.js +31 -0
  125. package/dist/cookies/browser.js.map +1 -0
  126. package/dist/cookies/node.d.ts +8 -0
  127. package/dist/cookies/node.d.ts.map +1 -0
  128. package/dist/cookies/node.js +50 -0
  129. package/dist/cookies/node.js.map +1 -0
  130. package/dist/createSessionUser.d.ts +3 -0
  131. package/dist/createSessionUser.d.ts.map +1 -0
  132. package/dist/createSessionUser.js +15 -0
  133. package/dist/createSessionUser.js.map +1 -0
  134. package/dist/errors.d.ts +22 -0
  135. package/dist/errors.d.ts.map +1 -0
  136. package/dist/errors.js +40 -0
  137. package/dist/errors.js.map +1 -0
  138. package/dist/generated/client/client.gen.d.ts.map +1 -1
  139. package/dist/generated/client/client.gen.js +151 -50
  140. package/dist/generated/client/client.gen.js.map +1 -1
  141. package/dist/generated/client/index.d.ts +2 -2
  142. package/dist/generated/client/index.d.ts.map +1 -1
  143. package/dist/generated/client/index.js +1 -1
  144. package/dist/generated/client/index.js.map +1 -1
  145. package/dist/generated/client/types.gen.d.ts +53 -24
  146. package/dist/generated/client/types.gen.d.ts.map +1 -1
  147. package/dist/generated/client/utils.gen.d.ts +25 -6
  148. package/dist/generated/client/utils.gen.d.ts.map +1 -1
  149. package/dist/generated/client/utils.gen.js +117 -57
  150. package/dist/generated/client/utils.gen.js.map +1 -1
  151. package/dist/generated/client.gen.js +1 -1
  152. package/dist/generated/index.d.ts +2 -2
  153. package/dist/generated/index.d.ts.map +1 -1
  154. package/dist/generated/index.js +1 -1
  155. package/dist/generated/index.js.map +1 -1
  156. package/dist/generated/sdk.gen.d.ts +153 -52
  157. package/dist/generated/sdk.gen.d.ts.map +1 -1
  158. package/dist/generated/sdk.gen.js +234 -209
  159. package/dist/generated/sdk.gen.js.map +1 -1
  160. package/dist/generated/types.gen.d.ts +557 -971
  161. package/dist/generated/types.gen.d.ts.map +1 -1
  162. package/dist/index.d.ts +2 -6
  163. package/dist/index.d.ts.map +1 -1
  164. package/dist/index.js +2 -6
  165. package/dist/index.js.map +1 -1
  166. package/dist/node.d.ts +171 -0
  167. package/dist/node.d.ts.map +1 -0
  168. package/dist/node.js +46 -0
  169. package/dist/node.js.map +1 -0
  170. package/dist/session.d.ts +99 -0
  171. package/dist/session.d.ts.map +1 -0
  172. package/dist/session.js +202 -0
  173. package/dist/session.js.map +1 -0
  174. package/dist/sessionClient.d.ts +53 -0
  175. package/dist/sessionClient.d.ts.map +1 -0
  176. package/dist/sessionClient.js +267 -0
  177. package/dist/sessionClient.js.map +1 -0
  178. package/dist/tokens.d.ts +27 -0
  179. package/dist/tokens.d.ts.map +1 -0
  180. package/dist/tokens.js +188 -0
  181. package/dist/tokens.js.map +1 -0
  182. package/dist/types.d.ts +45 -6
  183. package/dist/types.d.ts.map +1 -1
  184. package/dist/userClient.d.ts +41 -0
  185. package/dist/userClient.d.ts.map +1 -0
  186. package/dist/userClient.js +64 -0
  187. package/dist/userClient.js.map +1 -0
  188. package/package.json +24 -7
  189. package/dist/Acccount.d.ts +0 -9
  190. package/dist/Acccount.d.ts.map +0 -1
  191. package/dist/Acccount.js +0 -22
  192. package/dist/Acccount.js.map +0 -1
  193. package/dist/Auth.d.ts +0 -19
  194. package/dist/Auth.d.ts.map +0 -1
  195. package/dist/Auth.js +0 -24
  196. package/dist/Auth.js.map +0 -1
  197. package/dist/Authticon.d.ts +0 -27
  198. package/dist/Authticon.d.ts.map +0 -1
  199. package/dist/Authticon.js +0 -41
  200. package/dist/Authticon.js.map +0 -1
  201. package/dist/BrowserCookieAdapter.d.ts +0 -13
  202. package/dist/BrowserCookieAdapter.d.ts.map +0 -1
  203. package/dist/BrowserCookieAdapter.js +0 -18
  204. package/dist/BrowserCookieAdapter.js.map +0 -1
  205. package/dist/BrowserCookieAdapter.test.d.ts +0 -2
  206. package/dist/BrowserCookieAdapter.test.d.ts.map +0 -1
  207. package/dist/BrowserCookieAdapter.test.js +0 -145
  208. package/dist/BrowserCookieAdapter.test.js.map +0 -1
  209. package/dist/RemixCookieAdapter.d.ts +0 -12
  210. package/dist/RemixCookieAdapter.d.ts.map +0 -1
  211. package/dist/RemixCookieAdapter.js +0 -25
  212. package/dist/RemixCookieAdapter.js.map +0 -1
  213. package/dist/RemixCookieAdapter.test.d.ts +0 -2
  214. package/dist/RemixCookieAdapter.test.d.ts.map +0 -1
  215. package/dist/RemixCookieAdapter.test.js +0 -136
  216. package/dist/RemixCookieAdapter.test.js.map +0 -1
  217. package/dist/TokenManager.d.ts +0 -22
  218. package/dist/TokenManager.d.ts.map +0 -1
  219. package/dist/TokenManager.js +0 -45
  220. package/dist/TokenManager.js.map +0 -1
  221. package/dist/TokenManager.test.d.ts +0 -2
  222. package/dist/TokenManager.test.d.ts.map +0 -1
  223. package/dist/TokenManager.test.js +0 -118
  224. package/dist/TokenManager.test.js.map +0 -1
  225. package/dist/TokenStorage.test.d.ts +0 -2
  226. package/dist/TokenStorage.test.d.ts.map +0 -1
  227. package/dist/TokenStorage.test.js +0 -179
  228. package/dist/TokenStorage.test.js.map +0 -1
  229. package/dist/TokenVerifier.test.d.ts +0 -2
  230. package/dist/TokenVerifier.test.d.ts.map +0 -1
  231. package/dist/TokenVerifier.test.js +0 -117
  232. package/dist/TokenVerifier.test.js.map +0 -1
  233. package/dist/TwoFa.d.ts +0 -22
  234. package/dist/TwoFa.d.ts.map +0 -1
  235. package/dist/TwoFa.js +0 -47
  236. package/dist/TwoFa.js.map +0 -1
  237. package/dist/User.d.ts +0 -25
  238. package/dist/User.d.ts.map +0 -1
  239. package/dist/User.js +0 -27
  240. package/dist/User.js.map +0 -1
  241. package/dist/Users.d.ts +0 -57
  242. package/dist/Users.d.ts.map +0 -1
  243. package/dist/Users.js +0 -54
  244. package/dist/Users.js.map +0 -1
  245. package/dist/cookie-utils.d.ts +0 -5
  246. package/dist/cookie-utils.d.ts.map +0 -1
  247. package/dist/cookie-utils.js +0 -33
  248. package/dist/cookie-utils.js.map +0 -1
@@ -1,28 +1,17 @@
1
1
  export type ClientOptions = {
2
- baseURL: 'https://authticon.com' | (string & {});
2
+ baseUrl: 'https://authticon.com' | (string & {});
3
3
  };
4
- export type GetApiV1HealthzData = {
5
- body?: never;
6
- path?: never;
7
- query?: never;
8
- url: '/api/v1/healthz';
9
- };
10
- export type GetApiV1HealthzResponses = {
11
- /**
12
- * Default Response
13
- */
14
- 200: unknown;
15
- };
16
- export type DeleteApiV1AuthTwoFaData = {
4
+ export type LoginAsData = {
17
5
  body: {
18
6
  userId: string;
19
- token: string;
7
+ deviceId: string;
8
+ targetUserId: string;
20
9
  };
21
10
  path?: never;
22
11
  query?: never;
23
- url: '/api/v1/auth/two-fa';
12
+ url: '/api/v1/admin/login-as';
24
13
  };
25
- export type DeleteApiV1AuthTwoFaErrors = {
14
+ export type LoginAsErrors = {
26
15
  /**
27
16
  * Default Response
28
17
  */
@@ -31,48 +20,40 @@ export type DeleteApiV1AuthTwoFaErrors = {
31
20
  error: string;
32
21
  message: string;
33
22
  };
34
- };
35
- export type DeleteApiV1AuthTwoFaError = DeleteApiV1AuthTwoFaErrors[keyof DeleteApiV1AuthTwoFaErrors];
36
- export type DeleteApiV1AuthTwoFaResponses = {
37
- /**
38
- * Default Response
39
- */
40
- 200: {
41
- success: boolean;
42
- };
43
- };
44
- export type DeleteApiV1AuthTwoFaResponse = DeleteApiV1AuthTwoFaResponses[keyof DeleteApiV1AuthTwoFaResponses];
45
- export type PostApiV1AuthTwoFaData = {
46
- body: {
47
- secret: string;
48
- token?: string;
49
- type?: 'APP' | 'EMAIL' | 'PHONE';
50
- userId: string;
51
- };
52
- path?: never;
53
- query?: never;
54
- url: '/api/v1/auth/two-fa';
55
- };
56
- export type PostApiV1AuthTwoFaErrors = {
57
23
  /**
58
24
  * Default Response
59
25
  */
60
- 400: {
26
+ 404: {
61
27
  statusCode: number;
62
28
  error: string;
63
29
  message: string;
64
30
  };
31
+ };
32
+ export type LoginAsError = LoginAsErrors[keyof LoginAsErrors];
33
+ export type LoginAsResponses = {
65
34
  /**
66
35
  * Default Response
67
36
  */
68
- 401: {
69
- statusCode: number;
70
- error: string;
71
- message: string;
37
+ 200: {
38
+ accessToken: string;
39
+ refreshToken: string;
40
+ deviceId: string;
41
+ sessionId: string;
42
+ };
43
+ };
44
+ export type LoginAsResponse = LoginAsResponses[keyof LoginAsResponses];
45
+ export type SendTestEmailData = {
46
+ body: {
47
+ email: string;
48
+ projectId: string;
49
+ template: string;
50
+ locale?: string;
72
51
  };
52
+ path?: never;
53
+ query?: never;
54
+ url: '/api/v1/admin/tools/test-email';
73
55
  };
74
- export type PostApiV1AuthTwoFaError = PostApiV1AuthTwoFaErrors[keyof PostApiV1AuthTwoFaErrors];
75
- export type PostApiV1AuthTwoFaResponses = {
56
+ export type SendTestEmailResponses = {
76
57
  /**
77
58
  * Default Response
78
59
  */
@@ -80,21 +61,22 @@ export type PostApiV1AuthTwoFaResponses = {
80
61
  success: boolean;
81
62
  };
82
63
  };
83
- export type PostApiV1AuthTwoFaResponse = PostApiV1AuthTwoFaResponses[keyof PostApiV1AuthTwoFaResponses];
84
- export type PostApiV1AuthEmailChangeData = {
64
+ export type SendTestEmailResponse = SendTestEmailResponses[keyof SendTestEmailResponses];
65
+ export type VerifySmsCodeData = {
85
66
  body: {
67
+ code: string;
68
+ };
69
+ path: {
86
70
  userId: string;
87
- newEmail: string;
88
71
  };
89
- path?: never;
90
72
  query?: never;
91
- url: '/api/v1/auth/email/change';
73
+ url: '/api/v1/admin/tools/sms';
92
74
  };
93
- export type PostApiV1AuthEmailChangeErrors = {
75
+ export type VerifySmsCodeErrors = {
94
76
  /**
95
77
  * Default Response
96
78
  */
97
- 401: {
79
+ 400: {
98
80
  statusCode: number;
99
81
  error: string;
100
82
  message: string;
@@ -102,31 +84,33 @@ export type PostApiV1AuthEmailChangeErrors = {
102
84
  /**
103
85
  * Default Response
104
86
  */
105
- 409: {
87
+ 401: {
106
88
  statusCode: number;
107
89
  error: string;
108
90
  message: string;
109
91
  };
110
92
  };
111
- export type PostApiV1AuthEmailChangeError = PostApiV1AuthEmailChangeErrors[keyof PostApiV1AuthEmailChangeErrors];
112
- export type PostApiV1AuthEmailChangeResponses = {
93
+ export type VerifySmsCodeError = VerifySmsCodeErrors[keyof VerifySmsCodeErrors];
94
+ export type VerifySmsCodeResponses = {
113
95
  /**
114
96
  * Default Response
115
97
  */
116
- 201: null;
98
+ 200: {
99
+ verify: boolean;
100
+ };
117
101
  };
118
- export type PostApiV1AuthEmailChangeResponse = PostApiV1AuthEmailChangeResponses[keyof PostApiV1AuthEmailChangeResponses];
119
- export type PostApiV1AuthPasswordChangeData = {
102
+ export type VerifySmsCodeResponse = VerifySmsCodeResponses[keyof VerifySmsCodeResponses];
103
+ export type SendSmsCodeData = {
120
104
  body: {
121
- oldPassword: string;
122
- newPassword: string;
105
+ [key: string]: unknown;
106
+ };
107
+ path: {
123
108
  userId: string;
124
109
  };
125
- path?: never;
126
110
  query?: never;
127
- url: '/api/v1/auth/password/change';
111
+ url: '/api/v1/admin/tools/sms';
128
112
  };
129
- export type PostApiV1AuthPasswordChangeErrors = {
113
+ export type SendSmsCodeErrors = {
130
114
  /**
131
115
  * Default Response
132
116
  */
@@ -144,222 +128,257 @@ export type PostApiV1AuthPasswordChangeErrors = {
144
128
  message: string;
145
129
  };
146
130
  };
147
- export type PostApiV1AuthPasswordChangeError = PostApiV1AuthPasswordChangeErrors[keyof PostApiV1AuthPasswordChangeErrors];
148
- export type PostApiV1AuthPasswordChangeResponses = {
131
+ export type SendSmsCodeError = SendSmsCodeErrors[keyof SendSmsCodeErrors];
132
+ export type SendSmsCodeResponses = {
149
133
  /**
150
134
  * Default Response
151
135
  */
152
- 201: null;
136
+ 200: {
137
+ success: boolean;
138
+ };
153
139
  };
154
- export type PostApiV1AuthPasswordChangeResponse = PostApiV1AuthPasswordChangeResponses[keyof PostApiV1AuthPasswordChangeResponses];
155
- export type PostApiV1AuthGuestData = {
156
- body: {
157
- email: string;
140
+ export type SendSmsCodeResponse = SendSmsCodeResponses[keyof SendSmsCodeResponses];
141
+ export type ListUsersData = {
142
+ body?: never;
143
+ path?: never;
144
+ query?: {
145
+ limit?: number;
146
+ offset?: number;
147
+ search?: string;
158
148
  firstName?: string;
159
149
  lastName?: string;
150
+ email?: string;
160
151
  phone?: string;
152
+ role?: string;
153
+ emailVerified?: boolean;
154
+ phoneVerified?: boolean;
155
+ isBlocked?: boolean;
156
+ isGuest?: boolean;
157
+ twoFaEnabled?: boolean;
158
+ twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
161
159
  };
162
- path?: never;
163
- query?: never;
164
- url: '/api/v1/auth/guest';
165
- };
166
- export type PostApiV1AuthGuestErrors = {
167
- /**
168
- * Default Response
169
- */
170
- 409: {
171
- statusCode: number;
172
- error: string;
173
- message: string;
174
- };
160
+ url: '/api/v1/admin/users/';
175
161
  };
176
- export type PostApiV1AuthGuestError = PostApiV1AuthGuestErrors[keyof PostApiV1AuthGuestErrors];
177
- export type PostApiV1AuthGuestResponses = {
162
+ export type ListUsersResponses = {
178
163
  /**
179
164
  * Default Response
180
165
  */
181
166
  200: {
182
- token: string;
167
+ data: Array<{
168
+ id: string;
169
+ email: string;
170
+ firstName: string | null;
171
+ lastName: string | null;
172
+ username: string;
173
+ role: string;
174
+ emailVerified: boolean;
175
+ phone: string | null;
176
+ phoneVerified: boolean;
177
+ isBlocked: boolean;
178
+ isGuest: boolean;
179
+ locale: string;
180
+ createdAt: string;
181
+ twoFaEnabled: boolean;
182
+ twoFaType: 'APP' | 'EMAIL' | 'PHONE';
183
+ roles: Array<{
184
+ role: string;
185
+ group: string;
186
+ createdAt: string;
187
+ }>;
188
+ }>;
189
+ total: number;
183
190
  };
184
191
  };
185
- export type PostApiV1AuthGuestResponse = PostApiV1AuthGuestResponses[keyof PostApiV1AuthGuestResponses];
186
- export type PostApiV1AuthPasswordForgotData = {
192
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
193
+ export type CreateUserData = {
187
194
  body: {
188
195
  email: string;
196
+ username: string;
197
+ password?: string;
198
+ firstName?: string | null;
199
+ lastName?: string | null;
200
+ phone?: string | null;
201
+ locale?: string;
202
+ role?: string;
203
+ claims?: {
204
+ [key: string]: unknown;
205
+ };
206
+ marketingConsent?: boolean;
207
+ isGuest?: boolean;
208
+ emailVerified?: boolean;
189
209
  };
190
210
  path?: never;
191
211
  query?: never;
192
- url: '/api/v1/auth/password/forgot';
212
+ url: '/api/v1/admin/users/';
193
213
  };
194
- export type PostApiV1AuthPasswordForgotResponses = {
214
+ export type CreateUserErrors = {
195
215
  /**
196
216
  * Default Response
197
217
  */
198
- 200: {
199
- success: boolean;
218
+ 400: {
219
+ statusCode: number;
220
+ error: string;
221
+ message: string;
200
222
  };
201
- };
202
- export type PostApiV1AuthPasswordForgotResponse = PostApiV1AuthPasswordForgotResponses[keyof PostApiV1AuthPasswordForgotResponses];
203
- export type GetApiV1AuthTwoFaRecoveryCodesData = {
204
- body?: never;
205
- path?: never;
206
- query?: never;
207
- url: '/api/v1/auth/two-fa/recovery-codes';
208
- };
209
- export type GetApiV1AuthTwoFaRecoveryCodesErrors = {
210
223
  /**
211
224
  * Default Response
212
225
  */
213
- 401: {
226
+ 409: {
214
227
  statusCode: number;
215
228
  error: string;
216
229
  message: string;
217
230
  };
218
231
  };
219
- export type GetApiV1AuthTwoFaRecoveryCodesError = GetApiV1AuthTwoFaRecoveryCodesErrors[keyof GetApiV1AuthTwoFaRecoveryCodesErrors];
220
- export type GetApiV1AuthTwoFaRecoveryCodesResponses = {
232
+ export type CreateUserError = CreateUserErrors[keyof CreateUserErrors];
233
+ export type CreateUserResponses = {
221
234
  /**
222
235
  * Default Response
223
236
  */
224
- 200: {
225
- recoveryCodes: Array<string>;
237
+ 201: {
238
+ id: string;
239
+ email: string;
240
+ isGuest: boolean;
226
241
  };
227
242
  };
228
- export type GetApiV1AuthTwoFaRecoveryCodesResponse = GetApiV1AuthTwoFaRecoveryCodesResponses[keyof GetApiV1AuthTwoFaRecoveryCodesResponses];
229
- export type PostApiV1AuthTwoFaRecoveryCodesData = {
230
- body: {
231
- token: string;
243
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
244
+ export type DeleteUserData = {
245
+ body?: never;
246
+ path: {
247
+ userId: string;
232
248
  };
233
- path?: never;
234
249
  query?: never;
235
- url: '/api/v1/auth/two-fa/recovery-codes';
250
+ url: '/api/v1/admin/users/{userId}/';
236
251
  };
237
- export type PostApiV1AuthTwoFaRecoveryCodesErrors = {
252
+ export type DeleteUserErrors = {
238
253
  /**
239
254
  * Default Response
240
255
  */
241
- 401: {
256
+ 404: {
242
257
  statusCode: number;
243
258
  error: string;
244
259
  message: string;
245
260
  };
246
261
  };
247
- export type PostApiV1AuthTwoFaRecoveryCodesError = PostApiV1AuthTwoFaRecoveryCodesErrors[keyof PostApiV1AuthTwoFaRecoveryCodesErrors];
248
- export type PostApiV1AuthTwoFaRecoveryCodesResponses = {
262
+ export type DeleteUserError = DeleteUserErrors[keyof DeleteUserErrors];
263
+ export type DeleteUserResponses = {
249
264
  /**
250
265
  * Default Response
251
266
  */
252
267
  200: {
253
- recoveryCodes: Array<string>;
268
+ id: string;
254
269
  };
255
270
  };
256
- export type PostApiV1AuthTwoFaRecoveryCodesResponse = PostApiV1AuthTwoFaRecoveryCodesResponses[keyof PostApiV1AuthTwoFaRecoveryCodesResponses];
257
- export type PostApiV1AuthTwoFaSecretData = {
258
- body: {
259
- issuer: string;
260
- email?: string;
271
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
272
+ export type GetUserData = {
273
+ body?: never;
274
+ path: {
275
+ userId: string;
261
276
  };
262
- path?: never;
263
277
  query?: never;
264
- url: '/api/v1/auth/two-fa/secret';
278
+ url: '/api/v1/admin/users/{userId}';
265
279
  };
266
- export type PostApiV1AuthTwoFaSecretResponses = {
280
+ export type GetUserErrors = {
267
281
  /**
268
282
  * Default Response
269
283
  */
270
- 200: {
271
- secret: string;
272
- uri: string;
273
- };
274
- };
275
- export type PostApiV1AuthTwoFaSecretResponse = PostApiV1AuthTwoFaSecretResponses[keyof PostApiV1AuthTwoFaSecretResponses];
276
- export type PostApiV1AuthEmailCheckData = {
277
- body: {
278
- email: string;
284
+ 404: {
285
+ statusCode: number;
286
+ error: string;
287
+ message: string;
279
288
  };
280
- path?: never;
281
- query?: never;
282
- url: '/api/v1/auth/email/check';
283
289
  };
284
- export type PostApiV1AuthEmailCheckResponses = {
290
+ export type GetUserError = GetUserErrors[keyof GetUserErrors];
291
+ export type GetUserResponses = {
285
292
  /**
286
293
  * Default Response
287
294
  */
288
295
  200: {
289
- isFree: boolean;
296
+ id: string;
297
+ email: string;
298
+ firstName: string | null;
299
+ lastName: string | null;
300
+ username: string;
301
+ role: string;
302
+ emailVerified: boolean;
303
+ phone: string | null;
304
+ phoneVerified: boolean;
305
+ isBlocked: boolean;
306
+ isBlockedUntil: string | null;
307
+ isGuest: boolean;
308
+ locale: string;
309
+ claims: unknown;
310
+ marketingConsent: boolean;
311
+ twoFaEnabled: boolean;
312
+ twoFaType: string | null;
313
+ createdAt: string;
314
+ updatedAt: string;
290
315
  };
291
316
  };
292
- export type PostApiV1AuthEmailCheckResponse = PostApiV1AuthEmailCheckResponses[keyof PostApiV1AuthEmailCheckResponses];
293
- export type PostApiV1AuthPhoneCheckData = {
317
+ export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
318
+ export type UpdateUserData = {
294
319
  body: {
295
- phone: string;
320
+ firstName?: string;
321
+ lastName?: string;
322
+ emailVerified?: boolean;
323
+ phoneVerified?: boolean;
324
+ isBlocked?: boolean;
325
+ isBlockedUntil?: string | null;
326
+ twoFaEnabled?: boolean;
327
+ twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
328
+ loginAttempts?: number;
329
+ phone?: string;
330
+ email?: string;
331
+ };
332
+ path: {
333
+ userId: string;
296
334
  };
297
- path?: never;
298
335
  query?: never;
299
- url: '/api/v1/auth/phone/check';
336
+ url: '/api/v1/admin/users/{userId}';
300
337
  };
301
- export type PostApiV1AuthPhoneCheckResponses = {
338
+ export type UpdateUserErrors = {
302
339
  /**
303
340
  * Default Response
304
341
  */
305
- 200: {
306
- isFree: boolean;
307
- };
308
- };
309
- export type PostApiV1AuthPhoneCheckResponse = PostApiV1AuthPhoneCheckResponses[keyof PostApiV1AuthPhoneCheckResponses];
310
- export type PostApiV1AuthLoginData = {
311
- body: {
312
- email: string;
313
- password: string;
314
- deviceId?: string;
315
- ip?: string;
316
- twoFaCode?: string;
317
- userAgent: string;
318
- rememberToken: string | null;
342
+ 400: {
343
+ statusCode: number;
344
+ error: string;
345
+ message: string;
319
346
  };
320
- path?: never;
321
- query?: never;
322
- url: '/api/v1/auth/login';
323
- };
324
- export type PostApiV1AuthLoginErrors = {
325
347
  /**
326
348
  * Default Response
327
349
  */
328
- 401: {
350
+ 404: {
329
351
  statusCode: number;
330
352
  error: string;
331
353
  message: string;
332
354
  };
333
355
  };
334
- export type PostApiV1AuthLoginError = PostApiV1AuthLoginErrors[keyof PostApiV1AuthLoginErrors];
335
- export type PostApiV1AuthLoginResponses = {
356
+ export type UpdateUserError = UpdateUserErrors[keyof UpdateUserErrors];
357
+ export type UpdateUserResponses = {
336
358
  /**
337
359
  * Default Response
338
360
  */
339
361
  200: {
340
- accessToken: string;
341
- refreshToken: string;
342
- deviceId: string;
343
- } | {
344
- twoFaType: 'email' | 'sms' | 'app';
345
- twoFaToken: string;
346
- deviceId: string;
362
+ id: string;
347
363
  };
348
364
  };
349
- export type PostApiV1AuthLoginResponse = PostApiV1AuthLoginResponses[keyof PostApiV1AuthLoginResponses];
350
- export type PostApiV1AuthLoginAsData = {
365
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
366
+ export type CreateUserRoleData = {
351
367
  body: {
368
+ role: string;
369
+ group: string;
370
+ };
371
+ path: {
352
372
  userId: string;
353
373
  };
354
- path?: never;
355
374
  query?: never;
356
- url: '/api/v1/auth/login-as';
375
+ url: '/api/v1/admin/users/{userId}/roles';
357
376
  };
358
- export type PostApiV1AuthLoginAsErrors = {
377
+ export type CreateUserRoleErrors = {
359
378
  /**
360
379
  * Default Response
361
380
  */
362
- 401: {
381
+ 404: {
363
382
  statusCode: number;
364
383
  error: string;
365
384
  message: string;
@@ -367,227 +386,264 @@ export type PostApiV1AuthLoginAsErrors = {
367
386
  /**
368
387
  * Default Response
369
388
  */
370
- 404: {
389
+ 409: {
371
390
  statusCode: number;
372
391
  error: string;
373
392
  message: string;
374
393
  };
375
394
  };
376
- export type PostApiV1AuthLoginAsError = PostApiV1AuthLoginAsErrors[keyof PostApiV1AuthLoginAsErrors];
377
- export type PostApiV1AuthLoginAsResponses = {
395
+ export type CreateUserRoleError = CreateUserRoleErrors[keyof CreateUserRoleErrors];
396
+ export type CreateUserRoleResponses = {
378
397
  /**
379
398
  * Default Response
380
399
  */
381
- 200: {
382
- accessToken: string;
383
- refreshToken: string;
400
+ 201: {
401
+ id: string;
402
+ userId: string;
403
+ role: string;
404
+ group: string;
405
+ createdAt: string;
384
406
  };
385
407
  };
386
- export type PostApiV1AuthLoginAsResponse = PostApiV1AuthLoginAsResponses[keyof PostApiV1AuthLoginAsResponses];
387
- export type PostApiV1AuthLogoutData = {
388
- body: {
389
- refreshToken: string;
390
- };
391
- path?: never;
392
- query?: never;
393
- url: '/api/v1/auth/logout';
394
- };
395
- export type PostApiV1AuthLogoutResponses = {
396
- /**
397
- * Default Response
398
- */
399
- 200: {
400
- success: boolean;
401
- };
402
- };
403
- export type PostApiV1AuthLogoutResponse = PostApiV1AuthLogoutResponses[keyof PostApiV1AuthLogoutResponses];
404
- export type GetApiV1AuthMeData = {
408
+ export type CreateUserRoleResponse = CreateUserRoleResponses[keyof CreateUserRoleResponses];
409
+ export type DeleteUserRoleData = {
405
410
  body?: never;
406
- path?: never;
411
+ path: {
412
+ userId: string;
413
+ roleId: string;
414
+ };
407
415
  query?: never;
408
- url: '/api/v1/auth/me';
416
+ url: '/api/v1/admin/users/{userId}/roles/roles/{roleId}';
409
417
  };
410
- export type GetApiV1AuthMeErrors = {
418
+ export type DeleteUserRoleErrors = {
411
419
  /**
412
420
  * Default Response
413
421
  */
414
- 401: {
422
+ 404: {
415
423
  statusCode: number;
416
424
  error: string;
417
425
  message: string;
418
426
  };
419
427
  };
420
- export type GetApiV1AuthMeError = GetApiV1AuthMeErrors[keyof GetApiV1AuthMeErrors];
421
- export type GetApiV1AuthMeResponses = {
428
+ export type DeleteUserRoleError = DeleteUserRoleErrors[keyof DeleteUserRoleErrors];
429
+ export type DeleteUserRoleResponses = {
422
430
  /**
423
431
  * Default Response
424
432
  */
425
433
  200: {
426
- userId: string;
434
+ id: string;
427
435
  };
428
436
  };
429
- export type GetApiV1AuthMeResponse = GetApiV1AuthMeResponses[keyof GetApiV1AuthMeResponses];
430
- export type PostApiV1AuthTokenRefreshData = {
431
- body: {
432
- refreshToken: string;
437
+ export type DeleteUserRoleResponse = DeleteUserRoleResponses[keyof DeleteUserRoleResponses];
438
+ export type ListUserRolesData = {
439
+ body?: never;
440
+ path: {
441
+ userId: string;
433
442
  };
434
- path?: never;
435
443
  query?: never;
436
- url: '/api/v1/auth/token/refresh';
444
+ url: '/api/v1/admin/users/{userId}/roles/roles';
437
445
  };
438
- export type PostApiV1AuthTokenRefreshErrors = {
446
+ export type ListUserRolesErrors = {
439
447
  /**
440
448
  * Default Response
441
449
  */
442
- 401: {
450
+ 404: {
443
451
  statusCode: number;
444
452
  error: string;
445
453
  message: string;
446
454
  };
447
455
  };
448
- export type PostApiV1AuthTokenRefreshError = PostApiV1AuthTokenRefreshErrors[keyof PostApiV1AuthTokenRefreshErrors];
449
- export type PostApiV1AuthTokenRefreshResponses = {
456
+ export type ListUserRolesError = ListUserRolesErrors[keyof ListUserRolesErrors];
457
+ export type ListUserRolesResponses = {
450
458
  /**
451
459
  * Default Response
452
460
  */
453
- 200: {
454
- accessToken: string;
455
- };
461
+ 200: Array<{
462
+ id: string;
463
+ role: string;
464
+ group: string;
465
+ createdAt: string;
466
+ }>;
456
467
  };
457
- export type PostApiV1AuthTokenRefreshResponse = PostApiV1AuthTokenRefreshResponses[keyof PostApiV1AuthTokenRefreshResponses];
458
- export type PostApiV1AuthRegisterData = {
468
+ export type ListUserRolesResponse = ListUserRolesResponses[keyof ListUserRolesResponses];
469
+ export type UpdateUserRoleData = {
459
470
  body: {
460
- email: string;
461
- password: string;
462
- firstName?: string;
463
- lastName?: string;
464
- marketingConsent?: boolean;
471
+ role?: string;
472
+ group?: string;
473
+ };
474
+ path: {
475
+ userId: string;
476
+ roleId: string;
465
477
  };
466
- path?: never;
467
478
  query?: never;
468
- url: '/api/v1/auth/register';
479
+ url: '/api/v1/admin/users/{userId}/roles/{roleId}';
469
480
  };
470
- export type PostApiV1AuthRegisterErrors = {
481
+ export type UpdateUserRoleErrors = {
471
482
  /**
472
483
  * Default Response
473
484
  */
474
- 409: {
485
+ 400: {
486
+ statusCode: number;
487
+ error: string;
488
+ message: string;
489
+ };
490
+ /**
491
+ * Default Response
492
+ */
493
+ 404: {
475
494
  statusCode: number;
476
495
  error: string;
477
496
  message: string;
478
497
  };
479
498
  };
480
- export type PostApiV1AuthRegisterError = PostApiV1AuthRegisterErrors[keyof PostApiV1AuthRegisterErrors];
481
- export type PostApiV1AuthRegisterResponses = {
499
+ export type UpdateUserRoleError = UpdateUserRoleErrors[keyof UpdateUserRoleErrors];
500
+ export type UpdateUserRoleResponses = {
482
501
  /**
483
502
  * Default Response
484
503
  */
485
504
  200: {
505
+ id: string;
486
506
  userId: string;
507
+ role: string;
508
+ group: string;
509
+ createdAt: string;
487
510
  };
488
511
  };
489
- export type PostApiV1AuthRegisterResponse = PostApiV1AuthRegisterResponses[keyof PostApiV1AuthRegisterResponses];
490
- export type PostApiV1AuthEmailResendConfirmationData = {
512
+ export type UpdateUserRoleResponse = UpdateUserRoleResponses[keyof UpdateUserRoleResponses];
513
+ export type LogoutData = {
491
514
  body: {
492
- email: string;
515
+ [key: string]: unknown;
493
516
  };
494
517
  path?: never;
495
518
  query?: never;
496
- url: '/api/v1/auth/email/resend-confirmation';
519
+ url: '/api/v1/me/logout';
497
520
  };
498
- export type PostApiV1AuthEmailResendConfirmationErrors = {
521
+ export type LogoutResponses = {
499
522
  /**
500
523
  * Default Response
501
524
  */
502
- 400: {
503
- statusCode: number;
504
- error: string;
505
- message: string;
506
- };
525
+ 201: null;
526
+ };
527
+ export type LogoutResponse = LogoutResponses[keyof LogoutResponses];
528
+ export type MeData = {
529
+ body?: never;
530
+ path?: never;
531
+ query?: never;
532
+ url: '/me';
507
533
  };
508
- export type PostApiV1AuthEmailResendConfirmationError = PostApiV1AuthEmailResendConfirmationErrors[keyof PostApiV1AuthEmailResendConfirmationErrors];
509
- export type PostApiV1AuthEmailResendConfirmationResponses = {
534
+ export type MeResponses = {
510
535
  /**
511
536
  * Default Response
512
537
  */
513
538
  200: {
514
- success: boolean;
539
+ id: string;
540
+ email: string;
541
+ firstName: string | null;
542
+ lastName: string | null;
543
+ role: string;
544
+ isGuest: boolean;
545
+ claims: unknown;
546
+ phone: string | null;
547
+ locale: string;
548
+ passwordUpdatedAt: string | null;
549
+ hasPassword: boolean;
550
+ twoFaEnabled: boolean;
551
+ twoFaType: 'APP' | 'EMAIL' | 'PHONE';
552
+ isBlocked: boolean;
553
+ isBlockedUntil: string | null;
554
+ phoneVerified: boolean;
555
+ emailVerified: boolean;
556
+ roles: Array<{
557
+ role: string;
558
+ group: string;
559
+ }>;
515
560
  };
516
561
  };
517
- export type PostApiV1AuthEmailResendConfirmationResponse = PostApiV1AuthEmailResendConfirmationResponses[keyof PostApiV1AuthEmailResendConfirmationResponses];
518
- export type PostApiV1AuthMagicLinkSendData = {
562
+ export type MeResponse = MeResponses[keyof MeResponses];
563
+ export type RefreshData = {
519
564
  body: {
520
- email: string;
565
+ refreshToken: string;
521
566
  };
522
567
  path?: never;
523
568
  query?: never;
524
- url: '/api/v1/auth/magic-link/send';
569
+ url: '/api/v1/me/token/refresh';
525
570
  };
526
- export type PostApiV1AuthMagicLinkSendErrors = {
571
+ export type RefreshErrors = {
527
572
  /**
528
573
  * Default Response
529
574
  */
530
- 400: {
575
+ 401: {
531
576
  statusCode: number;
532
577
  error: string;
533
578
  message: string;
534
579
  };
580
+ };
581
+ export type RefreshError = RefreshErrors[keyof RefreshErrors];
582
+ export type RefreshResponses = {
535
583
  /**
536
584
  * Default Response
537
585
  */
538
- 401: {
539
- statusCode: number;
540
- error: string;
541
- message: string;
586
+ 200: {
587
+ accessToken: string;
588
+ refreshToken: string;
589
+ };
590
+ };
591
+ export type RefreshResponse = RefreshResponses[keyof RefreshResponses];
592
+ export type UpdateMeData = {
593
+ body: {
594
+ firstName?: string;
595
+ lastName?: string;
596
+ locale?: string;
542
597
  };
598
+ path?: never;
599
+ query?: never;
600
+ url: '/';
543
601
  };
544
- export type PostApiV1AuthMagicLinkSendError = PostApiV1AuthMagicLinkSendErrors[keyof PostApiV1AuthMagicLinkSendErrors];
545
- export type PostApiV1AuthMagicLinkSendResponses = {
602
+ export type UpdateMeResponses = {
546
603
  /**
547
604
  * Default Response
548
605
  */
549
606
  200: {
550
- success: boolean;
607
+ id: string;
551
608
  };
552
609
  };
553
- export type PostApiV1AuthMagicLinkSendResponse = PostApiV1AuthMagicLinkSendResponses[keyof PostApiV1AuthMagicLinkSendResponses];
554
- export type PostApiV1AuthPhoneSendCodeData = {
610
+ export type UpdateMeResponse = UpdateMeResponses[keyof UpdateMeResponses];
611
+ export type DisableTwoFaData = {
555
612
  body: {
556
- phone: string;
613
+ code: string;
557
614
  };
558
615
  path?: never;
559
616
  query?: never;
560
- url: '/api/v1/auth/phone/send-code';
617
+ url: '/api/v1/me/2fa';
561
618
  };
562
- export type PostApiV1AuthPhoneSendCodeErrors = {
619
+ export type DisableTwoFaErrors = {
563
620
  /**
564
621
  * Default Response
565
622
  */
566
- 409: {
623
+ 401: {
567
624
  statusCode: number;
568
625
  error: string;
569
626
  message: string;
570
627
  };
571
628
  };
572
- export type PostApiV1AuthPhoneSendCodeError = PostApiV1AuthPhoneSendCodeErrors[keyof PostApiV1AuthPhoneSendCodeErrors];
573
- export type PostApiV1AuthPhoneSendCodeResponses = {
629
+ export type DisableTwoFaError = DisableTwoFaErrors[keyof DisableTwoFaErrors];
630
+ export type DisableTwoFaResponses = {
574
631
  /**
575
632
  * Default Response
576
633
  */
577
- 200: {
578
- success: boolean;
579
- };
634
+ 201: null;
580
635
  };
581
- export type PostApiV1AuthPhoneSendCodeResponse = PostApiV1AuthPhoneSendCodeResponses[keyof PostApiV1AuthPhoneSendCodeResponses];
582
- export type PostApiV1AuthSmsSendCodeData = {
636
+ export type DisableTwoFaResponse = DisableTwoFaResponses[keyof DisableTwoFaResponses];
637
+ export type EnableTwoFaData = {
583
638
  body: {
584
- [key: string]: unknown;
639
+ code?: string;
640
+ type?: 'APP' | 'EMAIL' | 'PHONE';
585
641
  };
586
642
  path?: never;
587
643
  query?: never;
588
- url: '/api/v1/auth/sms/send-code';
644
+ url: '/api/v1/me/2fa';
589
645
  };
590
- export type PostApiV1AuthSmsSendCodeErrors = {
646
+ export type EnableTwoFaErrors = {
591
647
  /**
592
648
  * Default Response
593
649
  */
@@ -605,8 +661,8 @@ export type PostApiV1AuthSmsSendCodeErrors = {
605
661
  message: string;
606
662
  };
607
663
  };
608
- export type PostApiV1AuthSmsSendCodeError = PostApiV1AuthSmsSendCodeErrors[keyof PostApiV1AuthSmsSendCodeErrors];
609
- export type PostApiV1AuthSmsSendCodeResponses = {
664
+ export type EnableTwoFaError = EnableTwoFaErrors[keyof EnableTwoFaErrors];
665
+ export type EnableTwoFaResponses = {
610
666
  /**
611
667
  * Default Response
612
668
  */
@@ -614,89 +670,59 @@ export type PostApiV1AuthSmsSendCodeResponses = {
614
670
  success: boolean;
615
671
  };
616
672
  };
617
- export type PostApiV1AuthSmsSendCodeResponse = PostApiV1AuthSmsSendCodeResponses[keyof PostApiV1AuthSmsSendCodeResponses];
618
- export type PostApiV1AuthTestEmailData = {
619
- body: {
620
- email: string;
621
- projectId: string;
622
- template: string;
623
- locale?: string;
624
- };
673
+ export type EnableTwoFaResponse = EnableTwoFaResponses[keyof EnableTwoFaResponses];
674
+ export type GetTwoFaSecretData = {
675
+ body?: never;
625
676
  path?: never;
626
677
  query?: never;
627
- url: '/api/v1/auth/test-email';
678
+ url: '/api/v1/me/2fa/secret';
628
679
  };
629
- export type PostApiV1AuthTestEmailResponses = {
680
+ export type GetTwoFaSecretResponses = {
630
681
  /**
631
682
  * Default Response
632
683
  */
633
684
  200: {
634
- success: boolean;
685
+ secret: string;
686
+ uri: string;
635
687
  };
636
688
  };
637
- export type PostApiV1AuthTestEmailResponse = PostApiV1AuthTestEmailResponses[keyof PostApiV1AuthTestEmailResponses];
638
- export type PostApiV1AuthPasswordSetData = {
689
+ export type GetTwoFaSecretResponse = GetTwoFaSecretResponses[keyof GetTwoFaSecretResponses];
690
+ export type SendTwoFaCodeData = {
639
691
  body: {
640
- password: string;
641
- token?: string;
692
+ [key: string]: unknown;
642
693
  };
643
694
  path?: never;
644
695
  query?: never;
645
- url: '/api/v1/auth/password/set';
696
+ url: '/api/v1/me/2fa/send-code';
646
697
  };
647
- export type PostApiV1AuthPasswordSetErrors = {
648
- /**
649
- * Default Response
650
- */
651
- 400: {
652
- statusCode: number;
653
- error: string;
654
- message: string;
655
- };
698
+ export type SendTwoFaCodeErrors = {
656
699
  /**
657
700
  * Default Response
658
701
  */
659
- 401: {
702
+ 404: {
660
703
  statusCode: number;
661
704
  error: string;
662
705
  message: string;
663
706
  };
664
707
  };
665
- export type PostApiV1AuthPasswordSetError = PostApiV1AuthPasswordSetErrors[keyof PostApiV1AuthPasswordSetErrors];
666
- export type PostApiV1AuthPasswordSetResponses = {
708
+ export type SendTwoFaCodeError = SendTwoFaCodeErrors[keyof SendTwoFaCodeErrors];
709
+ export type SendTwoFaCodeResponses = {
667
710
  /**
668
711
  * Default Response
669
712
  */
670
713
  201: null;
671
714
  };
672
- export type PostApiV1AuthPasswordSetResponse = PostApiV1AuthPasswordSetResponses[keyof PostApiV1AuthPasswordSetResponses];
673
- export type PostApiV1AuthEmailVerifyData = {
674
- body: {
675
- token: string;
676
- };
677
- path?: never;
678
- query?: never;
679
- url: '/api/v1/auth/email/verify';
680
- };
681
- export type PostApiV1AuthEmailVerifyResponses = {
682
- /**
683
- * Default Response
684
- */
685
- 200: {
686
- success: boolean;
687
- };
688
- };
689
- export type PostApiV1AuthEmailVerifyResponse = PostApiV1AuthEmailVerifyResponses[keyof PostApiV1AuthEmailVerifyResponses];
690
- export type PostApiV1AuthTwoFaRecoveryData = {
715
+ export type SendTwoFaCodeResponse = SendTwoFaCodeResponses[keyof SendTwoFaCodeResponses];
716
+ export type VerifyTwoFaData = {
691
717
  body: {
692
- twoFaToken: string;
693
718
  code: string;
719
+ remember?: boolean;
694
720
  };
695
721
  path?: never;
696
722
  query?: never;
697
- url: '/api/v1/auth/two-fa/recovery';
723
+ url: '/api/v1/me/2fa/verify';
698
724
  };
699
- export type PostApiV1AuthTwoFaRecoveryErrors = {
725
+ export type VerifyTwoFaErrors = {
700
726
  /**
701
727
  * Default Response
702
728
  */
@@ -714,31 +740,29 @@ export type PostApiV1AuthTwoFaRecoveryErrors = {
714
740
  message: string;
715
741
  };
716
742
  };
717
- export type PostApiV1AuthTwoFaRecoveryError = PostApiV1AuthTwoFaRecoveryErrors[keyof PostApiV1AuthTwoFaRecoveryErrors];
718
- export type PostApiV1AuthTwoFaRecoveryResponses = {
743
+ export type VerifyTwoFaError = VerifyTwoFaErrors[keyof VerifyTwoFaErrors];
744
+ export type VerifyTwoFaResponses = {
719
745
  /**
720
746
  * Default Response
721
747
  */
722
748
  200: {
723
- accessToken: string;
724
- refreshToken: string;
749
+ [key: string]: never;
725
750
  };
726
751
  };
727
- export type PostApiV1AuthTwoFaRecoveryResponse = PostApiV1AuthTwoFaRecoveryResponses[keyof PostApiV1AuthTwoFaRecoveryResponses];
728
- export type PostApiV1AuthTwoFaVerifyData = {
752
+ export type VerifyTwoFaResponse = VerifyTwoFaResponses[keyof VerifyTwoFaResponses];
753
+ export type ChangeEmailData = {
729
754
  body: {
730
- twoFaToken: string;
731
- code: string;
755
+ newEmail: string;
732
756
  };
733
757
  path?: never;
734
758
  query?: never;
735
- url: '/api/v1/auth/two-fa/verify';
759
+ url: '/api/v1/me/email';
736
760
  };
737
- export type PostApiV1AuthTwoFaVerifyErrors = {
761
+ export type ChangeEmailErrors = {
738
762
  /**
739
763
  * Default Response
740
764
  */
741
- 400: {
765
+ 401: {
742
766
  statusCode: number;
743
767
  error: string;
744
768
  message: string;
@@ -746,102 +770,100 @@ export type PostApiV1AuthTwoFaVerifyErrors = {
746
770
  /**
747
771
  * Default Response
748
772
  */
749
- 401: {
773
+ 409: {
750
774
  statusCode: number;
751
775
  error: string;
752
776
  message: string;
753
777
  };
754
778
  };
755
- export type PostApiV1AuthTwoFaVerifyError = PostApiV1AuthTwoFaVerifyErrors[keyof PostApiV1AuthTwoFaVerifyErrors];
756
- export type PostApiV1AuthTwoFaVerifyResponses = {
779
+ export type ChangeEmailError = ChangeEmailErrors[keyof ChangeEmailErrors];
780
+ export type ChangeEmailResponses = {
757
781
  /**
758
782
  * Default Response
759
783
  */
760
- 200: {
761
- accessToken: string;
762
- refreshToken: string;
763
- rememberToken: string;
764
- };
784
+ 201: null;
765
785
  };
766
- export type PostApiV1AuthTwoFaVerifyResponse = PostApiV1AuthTwoFaVerifyResponses[keyof PostApiV1AuthTwoFaVerifyResponses];
767
- export type PostApiV1AuthMagicLinkVerifyData = {
768
- body: {
769
- token: string;
786
+ export type ChangeEmailResponse = ChangeEmailResponses[keyof ChangeEmailResponses];
787
+ export type DeleteInvitationData = {
788
+ body?: never;
789
+ path: {
790
+ id: string;
770
791
  };
771
- path?: never;
772
792
  query?: never;
773
- url: '/api/v1/auth/magic-link/verify';
793
+ url: '/api/v1/me/invitations';
774
794
  };
775
- export type PostApiV1AuthMagicLinkVerifyErrors = {
776
- /**
777
- * Default Response
778
- */
779
- 400: {
780
- statusCode: number;
781
- error: string;
782
- message: string;
783
- };
795
+ export type DeleteInvitationErrors = {
784
796
  /**
785
797
  * Default Response
786
798
  */
787
- 401: {
799
+ 404: {
788
800
  statusCode: number;
789
801
  error: string;
790
802
  message: string;
791
803
  };
792
804
  };
793
- export type PostApiV1AuthMagicLinkVerifyError = PostApiV1AuthMagicLinkVerifyErrors[keyof PostApiV1AuthMagicLinkVerifyErrors];
794
- export type PostApiV1AuthMagicLinkVerifyResponses = {
805
+ export type DeleteInvitationError = DeleteInvitationErrors[keyof DeleteInvitationErrors];
806
+ export type DeleteInvitationResponses = {
795
807
  /**
796
808
  * Default Response
797
809
  */
798
810
  200: {
799
- accessToken: string;
800
- refreshToken: string;
801
- } | {
802
- twoFaType: 'email' | 'sms' | 'app';
803
- twoFaToken: string;
811
+ id: string;
804
812
  };
805
813
  };
806
- export type PostApiV1AuthMagicLinkVerifyResponse = PostApiV1AuthMagicLinkVerifyResponses[keyof PostApiV1AuthMagicLinkVerifyResponses];
807
- export type PostApiV1AuthPhoneVerifyData = {
814
+ export type DeleteInvitationResponse = DeleteInvitationResponses[keyof DeleteInvitationResponses];
815
+ export type CreateInvitationData = {
808
816
  body: {
809
- phone: string;
810
- code: string;
817
+ email: string;
818
+ userData?: {
819
+ [key: string]: unknown;
820
+ };
821
+ role?: string;
822
+ group?: string;
823
+ returnUrl?: string;
824
+ invitedById?: string;
811
825
  };
812
826
  path?: never;
813
827
  query?: never;
814
- url: '/api/v1/auth/phone/verify';
828
+ url: '/api/v1/me/invitations';
815
829
  };
816
- export type PostApiV1AuthPhoneVerifyErrors = {
830
+ export type CreateInvitationErrors = {
817
831
  /**
818
832
  * Default Response
819
833
  */
820
- 401: {
834
+ 409: {
821
835
  statusCode: number;
822
836
  error: string;
823
837
  message: string;
824
838
  };
825
839
  };
826
- export type PostApiV1AuthPhoneVerifyError = PostApiV1AuthPhoneVerifyErrors[keyof PostApiV1AuthPhoneVerifyErrors];
827
- export type PostApiV1AuthPhoneVerifyResponses = {
840
+ export type CreateInvitationError = CreateInvitationErrors[keyof CreateInvitationErrors];
841
+ export type CreateInvitationResponses = {
828
842
  /**
829
843
  * Default Response
830
844
  */
831
845
  200: {
832
- success: boolean;
846
+ id: string;
847
+ email: string;
848
+ token: string;
849
+ validTo: string;
850
+ role: string | null;
851
+ group: string | null;
852
+ returnUrl: string | null;
833
853
  };
834
854
  };
835
- export type PostApiV1AuthPhoneVerifyResponse = PostApiV1AuthPhoneVerifyResponses[keyof PostApiV1AuthPhoneVerifyResponses];
836
- export type PostApiV1AuthSmsVerifyData = {
855
+ export type CreateInvitationResponse = CreateInvitationResponses[keyof CreateInvitationResponses];
856
+ export type ChangePasswordData = {
837
857
  body: {
838
- code: string;
858
+ oldPassword: string;
859
+ newPassword: string;
860
+ userId: string;
839
861
  };
840
862
  path?: never;
841
863
  query?: never;
842
- url: '/api/v1/auth/sms/verify';
864
+ url: '/api/v1/me/password';
843
865
  };
844
- export type PostApiV1AuthSmsVerifyErrors = {
866
+ export type ChangePasswordErrors = {
845
867
  /**
846
868
  * Default Response
847
869
  */
@@ -859,27 +881,24 @@ export type PostApiV1AuthSmsVerifyErrors = {
859
881
  message: string;
860
882
  };
861
883
  };
862
- export type PostApiV1AuthSmsVerifyError = PostApiV1AuthSmsVerifyErrors[keyof PostApiV1AuthSmsVerifyErrors];
863
- export type PostApiV1AuthSmsVerifyResponses = {
884
+ export type ChangePasswordError = ChangePasswordErrors[keyof ChangePasswordErrors];
885
+ export type ChangePasswordResponses = {
864
886
  /**
865
887
  * Default Response
866
888
  */
867
- 200: {
868
- verify: boolean;
869
- };
889
+ 201: null;
870
890
  };
871
- export type PostApiV1AuthSmsVerifyResponse = PostApiV1AuthSmsVerifyResponses[keyof PostApiV1AuthSmsVerifyResponses];
872
- export type PostApiV1InvitationsInvitationAcceptData = {
891
+ export type ChangePasswordResponse = ChangePasswordResponses[keyof ChangePasswordResponses];
892
+ export type SetPasswordData = {
873
893
  body: {
874
- token: string;
875
- password?: string;
876
- userAgent: string;
894
+ password: string;
895
+ token?: string;
877
896
  };
878
897
  path?: never;
879
898
  query?: never;
880
- url: '/api/v1/invitations/invitation/accept';
899
+ url: '/api/v1/me/password';
881
900
  };
882
- export type PostApiV1InvitationsInvitationAcceptErrors = {
901
+ export type SetPasswordErrors = {
883
902
  /**
884
903
  * Default Response
885
904
  */
@@ -888,181 +907,75 @@ export type PostApiV1InvitationsInvitationAcceptErrors = {
888
907
  error: string;
889
908
  message: string;
890
909
  };
891
- };
892
- export type PostApiV1InvitationsInvitationAcceptError = PostApiV1InvitationsInvitationAcceptErrors[keyof PostApiV1InvitationsInvitationAcceptErrors];
893
- export type PostApiV1InvitationsInvitationAcceptResponses = {
894
910
  /**
895
911
  * Default Response
896
912
  */
897
- 200: {
898
- accessToken: string;
899
- refreshToken: string;
913
+ 401: {
914
+ statusCode: number;
915
+ error: string;
916
+ message: string;
900
917
  };
901
918
  };
902
- export type PostApiV1InvitationsInvitationAcceptResponse = PostApiV1InvitationsInvitationAcceptResponses[keyof PostApiV1InvitationsInvitationAcceptResponses];
903
- export type PostApiV1InvitationsInvitationData = {
919
+ export type SetPasswordError = SetPasswordErrors[keyof SetPasswordErrors];
920
+ export type SetPasswordResponses = {
921
+ /**
922
+ * Default Response
923
+ */
924
+ 201: null;
925
+ };
926
+ export type SetPasswordResponse = SetPasswordResponses[keyof SetPasswordResponses];
927
+ export type ChangePhoneData = {
904
928
  body: {
905
- email: string;
906
- userData?: {
907
- [key: string]: unknown;
908
- };
909
- role?: string;
910
- group?: string;
911
- returnUrl?: string;
912
- invitedById?: string;
929
+ phone: string;
913
930
  };
914
931
  path?: never;
915
932
  query?: never;
916
- url: '/api/v1/invitations/invitation';
933
+ url: '/api/v1/me/phone';
917
934
  };
918
- export type PostApiV1InvitationsInvitationErrors = {
935
+ export type ChangePhoneErrors = {
919
936
  /**
920
937
  * Default Response
921
938
  */
922
- 409: {
939
+ 404: {
923
940
  statusCode: number;
924
941
  error: string;
925
942
  message: string;
926
943
  };
927
- };
928
- export type PostApiV1InvitationsInvitationError = PostApiV1InvitationsInvitationErrors[keyof PostApiV1InvitationsInvitationErrors];
929
- export type PostApiV1InvitationsInvitationResponses = {
930
944
  /**
931
945
  * Default Response
932
946
  */
933
- 200: {
934
- id: string;
935
- email: string;
936
- token: string;
937
- validTo: string;
938
- role: string | null;
939
- group: string | null;
940
- returnUrl: string | null;
941
- };
942
- };
943
- export type PostApiV1InvitationsInvitationResponse = PostApiV1InvitationsInvitationResponses[keyof PostApiV1InvitationsInvitationResponses];
944
- export type DeleteApiV1InvitationsInvitationByIdData = {
945
- body?: never;
946
- path: {
947
- id: string;
948
- };
949
- query?: never;
950
- url: '/api/v1/invitations/invitation/{id}';
951
- };
952
- export type DeleteApiV1InvitationsInvitationByIdErrors = {
953
- /**
954
- * Default Response
955
- */
956
- 404: {
947
+ 409: {
957
948
  statusCode: number;
958
949
  error: string;
959
950
  message: string;
960
951
  };
961
952
  };
962
- export type DeleteApiV1InvitationsInvitationByIdError = DeleteApiV1InvitationsInvitationByIdErrors[keyof DeleteApiV1InvitationsInvitationByIdErrors];
963
- export type DeleteApiV1InvitationsInvitationByIdResponses = {
964
- /**
965
- * Default Response
966
- */
967
- 200: {
968
- id: string;
969
- };
970
- };
971
- export type DeleteApiV1InvitationsInvitationByIdResponse = DeleteApiV1InvitationsInvitationByIdResponses[keyof DeleteApiV1InvitationsInvitationByIdResponses];
972
- export type GetApiV1UserData = {
973
- body?: never;
974
- path?: never;
975
- query?: {
976
- limit?: number;
977
- offset?: number;
978
- search?: string;
979
- };
980
- url: '/api/v1/user/';
981
- };
982
- export type GetApiV1UserResponses = {
953
+ export type ChangePhoneError = ChangePhoneErrors[keyof ChangePhoneErrors];
954
+ export type ChangePhoneResponses = {
983
955
  /**
984
956
  * Default Response
985
957
  */
986
- 200: {
987
- data: Array<{
988
- id: string;
989
- email: string;
990
- firstName: string | null;
991
- lastName: string | null;
992
- username: string;
993
- role: string;
994
- emailVerified: boolean;
995
- phone: string | null;
996
- phoneVerified: boolean;
997
- isBlocked: boolean;
998
- isGuest: boolean;
999
- locale: string;
1000
- createdAt: string;
1001
- }>;
1002
- total: number;
1003
- };
958
+ 200: null;
1004
959
  };
1005
- export type GetApiV1UserResponse = GetApiV1UserResponses[keyof GetApiV1UserResponses];
1006
- export type PostApiV1UserData = {
960
+ export type ChangePhoneResponse = ChangePhoneResponses[keyof ChangePhoneResponses];
961
+ export type VerifyPhoneData = {
1007
962
  body: {
1008
- email: string;
1009
- username: string;
1010
- password?: string;
1011
- firstName?: string | null;
1012
- lastName?: string | null;
1013
- phone?: string | null;
1014
- locale?: string;
1015
- role?: string;
1016
- claims?: {
1017
- [key: string]: unknown;
1018
- };
1019
- marketingConsent?: boolean;
1020
- isGuest?: boolean;
1021
- emailVerified?: boolean;
963
+ phone: string;
964
+ code: string;
1022
965
  };
1023
966
  path?: never;
1024
967
  query?: never;
1025
- url: '/api/v1/user/';
968
+ url: '/api/v1/me/phone/verify';
1026
969
  };
1027
- export type PostApiV1UserErrors = {
970
+ export type VerifyPhoneErrors = {
1028
971
  /**
1029
972
  * Default Response
1030
973
  */
1031
- 400: {
974
+ 401: {
1032
975
  statusCode: number;
1033
976
  error: string;
1034
977
  message: string;
1035
978
  };
1036
- /**
1037
- * Default Response
1038
- */
1039
- 409: {
1040
- statusCode: number;
1041
- error: string;
1042
- message: string;
1043
- };
1044
- };
1045
- export type PostApiV1UserError = PostApiV1UserErrors[keyof PostApiV1UserErrors];
1046
- export type PostApiV1UserResponses = {
1047
- /**
1048
- * Default Response
1049
- */
1050
- 201: {
1051
- id: string;
1052
- email: string;
1053
- isGuest: boolean;
1054
- };
1055
- };
1056
- export type PostApiV1UserResponse = PostApiV1UserResponses[keyof PostApiV1UserResponses];
1057
- export type GetApiV1UserByUserIdRolesData = {
1058
- body?: never;
1059
- path: {
1060
- userId: string;
1061
- };
1062
- query?: never;
1063
- url: '/api/v1/user/{userId}/roles';
1064
- };
1065
- export type GetApiV1UserByUserIdRolesErrors = {
1066
979
  /**
1067
980
  * Default Response
1068
981
  */
@@ -1072,319 +985,142 @@ export type GetApiV1UserByUserIdRolesErrors = {
1072
985
  message: string;
1073
986
  };
1074
987
  };
1075
- export type GetApiV1UserByUserIdRolesError = GetApiV1UserByUserIdRolesErrors[keyof GetApiV1UserByUserIdRolesErrors];
1076
- export type GetApiV1UserByUserIdRolesResponses = {
988
+ export type VerifyPhoneError = VerifyPhoneErrors[keyof VerifyPhoneErrors];
989
+ export type VerifyPhoneResponses = {
1077
990
  /**
1078
991
  * Default Response
1079
992
  */
1080
- 200: Array<{
1081
- id: string;
1082
- role: string;
1083
- group: string;
1084
- createdAt: string;
1085
- }>;
993
+ 201: null;
1086
994
  };
1087
- export type GetApiV1UserByUserIdRolesResponse = GetApiV1UserByUserIdRolesResponses[keyof GetApiV1UserByUserIdRolesResponses];
1088
- export type PostApiV1UserByUserIdRolesData = {
995
+ export type VerifyPhoneResponse = VerifyPhoneResponses[keyof VerifyPhoneResponses];
996
+ export type AcceptInvitationData = {
1089
997
  body: {
1090
- role: string;
1091
- group: string;
1092
- };
1093
- path: {
1094
- userId: string;
1095
- };
1096
- query?: never;
1097
- url: '/api/v1/user/{userId}/roles';
1098
- };
1099
- export type PostApiV1UserByUserIdRolesErrors = {
1100
- /**
1101
- * Default Response
1102
- */
1103
- 404: {
1104
- statusCode: number;
1105
- error: string;
1106
- message: string;
1107
- };
1108
- /**
1109
- * Default Response
1110
- */
1111
- 409: {
1112
- statusCode: number;
1113
- error: string;
1114
- message: string;
1115
- };
1116
- };
1117
- export type PostApiV1UserByUserIdRolesError = PostApiV1UserByUserIdRolesErrors[keyof PostApiV1UserByUserIdRolesErrors];
1118
- export type PostApiV1UserByUserIdRolesResponses = {
1119
- /**
1120
- * Default Response
1121
- */
1122
- 201: {
1123
- id: string;
1124
- userId: string;
1125
- role: string;
1126
- group: string;
1127
- createdAt: string;
1128
- };
1129
- };
1130
- export type PostApiV1UserByUserIdRolesResponse = PostApiV1UserByUserIdRolesResponses[keyof PostApiV1UserByUserIdRolesResponses];
1131
- export type DeleteApiV1UserByIdData = {
1132
- body?: never;
1133
- path: {
1134
- id: string;
1135
- };
1136
- query?: never;
1137
- url: '/api/v1/user/{id}';
1138
- };
1139
- export type DeleteApiV1UserByIdErrors = {
1140
- /**
1141
- * Default Response
1142
- */
1143
- 404: {
1144
- statusCode: number;
1145
- error: string;
1146
- message: string;
1147
- };
1148
- };
1149
- export type DeleteApiV1UserByIdError = DeleteApiV1UserByIdErrors[keyof DeleteApiV1UserByIdErrors];
1150
- export type DeleteApiV1UserByIdResponses = {
1151
- /**
1152
- * Default Response
1153
- */
1154
- 200: {
1155
- id: string;
1156
- };
1157
- };
1158
- export type DeleteApiV1UserByIdResponse = DeleteApiV1UserByIdResponses[keyof DeleteApiV1UserByIdResponses];
1159
- export type GetApiV1UserByIdData = {
1160
- body?: never;
1161
- path: {
1162
- id: string;
998
+ token: string;
999
+ password?: string;
1000
+ userAgent: string;
1163
1001
  };
1002
+ path?: never;
1164
1003
  query?: never;
1165
- url: '/api/v1/user/{id}';
1004
+ url: '/api/v1/invitation/accept';
1166
1005
  };
1167
- export type GetApiV1UserByIdErrors = {
1006
+ export type AcceptInvitationErrors = {
1168
1007
  /**
1169
1008
  * Default Response
1170
1009
  */
1171
- 404: {
1010
+ 400: {
1172
1011
  statusCode: number;
1173
1012
  error: string;
1174
1013
  message: string;
1175
1014
  };
1176
1015
  };
1177
- export type GetApiV1UserByIdError = GetApiV1UserByIdErrors[keyof GetApiV1UserByIdErrors];
1178
- export type GetApiV1UserByIdResponses = {
1016
+ export type AcceptInvitationError = AcceptInvitationErrors[keyof AcceptInvitationErrors];
1017
+ export type AcceptInvitationResponses = {
1179
1018
  /**
1180
1019
  * Default Response
1181
1020
  */
1182
1021
  200: {
1183
- id: string;
1184
- email: string;
1185
- firstName: string | null;
1186
- lastName: string | null;
1187
- username: string;
1188
- role: string;
1189
- emailVerified: boolean;
1190
- phone: string | null;
1191
- phoneVerified: boolean;
1192
- isBlocked: boolean;
1193
- isBlockedUntil: string | null;
1194
- isGuest: boolean;
1195
- locale: string;
1196
- claims: unknown;
1197
- marketingConsent: boolean;
1198
- twoFaEnabled: boolean;
1199
- twoFaType: string | null;
1200
- createdAt: string;
1201
- updatedAt: string;
1022
+ accessToken: string;
1023
+ refreshToken: string;
1202
1024
  };
1203
1025
  };
1204
- export type GetApiV1UserByIdResponse = GetApiV1UserByIdResponses[keyof GetApiV1UserByIdResponses];
1205
- export type PatchApiV1UserByIdData = {
1026
+ export type AcceptInvitationResponse = AcceptInvitationResponses[keyof AcceptInvitationResponses];
1027
+ export type CreateGuestUserData = {
1206
1028
  body: {
1207
- email?: string;
1208
- emailVerified?: boolean;
1029
+ email: string;
1030
+ firstName?: string;
1031
+ lastName?: string;
1209
1032
  phone?: string;
1210
- phoneVerified?: boolean;
1211
- isBlocked?: boolean;
1212
- isBlockedUntil?: string | null;
1213
- twoFaEnabled?: boolean;
1214
- twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
1215
- loginAttempts?: number;
1216
- };
1217
- path: {
1218
- id: string;
1219
1033
  };
1034
+ path?: never;
1220
1035
  query?: never;
1221
- url: '/api/v1/user/{id}';
1036
+ url: '/api/v1/guest';
1222
1037
  };
1223
- export type PatchApiV1UserByIdErrors = {
1038
+ export type CreateGuestUserErrors = {
1224
1039
  /**
1225
1040
  * Default Response
1226
1041
  */
1227
- 400: {
1228
- statusCode: number;
1229
- error: string;
1230
- message: string;
1231
- };
1232
- /**
1233
- * Default Response
1234
- */
1235
- 404: {
1042
+ 409: {
1236
1043
  statusCode: number;
1237
1044
  error: string;
1238
1045
  message: string;
1239
1046
  };
1240
1047
  };
1241
- export type PatchApiV1UserByIdError = PatchApiV1UserByIdErrors[keyof PatchApiV1UserByIdErrors];
1242
- export type PatchApiV1UserByIdResponses = {
1048
+ export type CreateGuestUserError = CreateGuestUserErrors[keyof CreateGuestUserErrors];
1049
+ export type CreateGuestUserResponses = {
1243
1050
  /**
1244
1051
  * Default Response
1245
1052
  */
1246
1053
  200: {
1247
- id: string;
1054
+ token: string;
1248
1055
  };
1249
1056
  };
1250
- export type PatchApiV1UserByIdResponse = PatchApiV1UserByIdResponses[keyof PatchApiV1UserByIdResponses];
1251
- export type DeleteApiV1UserByUserIdRolesByRoleIdData = {
1252
- body?: never;
1253
- path: {
1254
- userId: string;
1255
- roleId: string;
1057
+ export type CreateGuestUserResponse = CreateGuestUserResponses[keyof CreateGuestUserResponses];
1058
+ export type ForgotPasswordData = {
1059
+ body: {
1060
+ email: string;
1256
1061
  };
1062
+ path?: never;
1257
1063
  query?: never;
1258
- url: '/api/v1/user/{userId}/roles/{roleId}';
1259
- };
1260
- export type DeleteApiV1UserByUserIdRolesByRoleIdErrors = {
1261
- /**
1262
- * Default Response
1263
- */
1264
- 404: {
1265
- statusCode: number;
1266
- error: string;
1267
- message: string;
1268
- };
1064
+ url: '/api/v1/password/forgot';
1269
1065
  };
1270
- export type DeleteApiV1UserByUserIdRolesByRoleIdError = DeleteApiV1UserByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UserByUserIdRolesByRoleIdErrors];
1271
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
1066
+ export type ForgotPasswordResponses = {
1272
1067
  /**
1273
1068
  * Default Response
1274
1069
  */
1275
1070
  200: {
1276
- id: string;
1071
+ success: boolean;
1277
1072
  };
1278
1073
  };
1279
- export type DeleteApiV1UserByUserIdRolesByRoleIdResponse = DeleteApiV1UserByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UserByUserIdRolesByRoleIdResponses];
1280
- export type PatchApiV1UserByUserIdRolesByRoleIdData = {
1074
+ export type ForgotPasswordResponse = ForgotPasswordResponses[keyof ForgotPasswordResponses];
1075
+ export type LoginData = {
1281
1076
  body: {
1282
- role?: string;
1283
- group?: string;
1284
- };
1285
- path: {
1286
- userId: string;
1287
- roleId: string;
1077
+ email: string;
1078
+ password: string;
1079
+ deviceId?: string;
1080
+ ip?: string;
1081
+ twoFaCode?: string;
1082
+ userAgent: string;
1288
1083
  };
1084
+ path?: never;
1289
1085
  query?: never;
1290
- url: '/api/v1/user/{userId}/roles/{roleId}';
1086
+ url: '/api/v1/login';
1291
1087
  };
1292
- export type PatchApiV1UserByUserIdRolesByRoleIdErrors = {
1293
- /**
1294
- * Default Response
1295
- */
1296
- 400: {
1297
- statusCode: number;
1298
- error: string;
1299
- message: string;
1300
- };
1088
+ export type LoginErrors = {
1301
1089
  /**
1302
1090
  * Default Response
1303
1091
  */
1304
- 404: {
1092
+ 401: {
1305
1093
  statusCode: number;
1306
1094
  error: string;
1307
1095
  message: string;
1308
1096
  };
1309
1097
  };
1310
- export type PatchApiV1UserByUserIdRolesByRoleIdError = PatchApiV1UserByUserIdRolesByRoleIdErrors[keyof PatchApiV1UserByUserIdRolesByRoleIdErrors];
1311
- export type PatchApiV1UserByUserIdRolesByRoleIdResponses = {
1312
- /**
1313
- * Default Response
1314
- */
1315
- 200: {
1316
- id: string;
1317
- userId: string;
1318
- role: string;
1319
- group: string;
1320
- createdAt: string;
1321
- };
1322
- };
1323
- export type PatchApiV1UserByUserIdRolesByRoleIdResponse = PatchApiV1UserByUserIdRolesByRoleIdResponses[keyof PatchApiV1UserByUserIdRolesByRoleIdResponses];
1324
- export type GetApiV1UsersData = {
1325
- body?: never;
1326
- path?: never;
1327
- query?: {
1328
- limit?: number;
1329
- offset?: number;
1330
- search?: string;
1331
- };
1332
- url: '/api/v1/users/';
1333
- };
1334
- export type GetApiV1UsersResponses = {
1098
+ export type LoginError = LoginErrors[keyof LoginErrors];
1099
+ export type LoginResponses = {
1335
1100
  /**
1336
1101
  * Default Response
1337
1102
  */
1338
1103
  200: {
1339
- data: Array<{
1340
- id: string;
1341
- email: string;
1342
- firstName: string | null;
1343
- lastName: string | null;
1344
- username: string;
1345
- role: string;
1346
- emailVerified: boolean;
1347
- phone: string | null;
1348
- phoneVerified: boolean;
1349
- isBlocked: boolean;
1350
- isGuest: boolean;
1351
- locale: string;
1352
- createdAt: string;
1353
- }>;
1354
- total: number;
1104
+ accessToken: string;
1105
+ refreshToken: string;
1106
+ deviceId: string;
1107
+ sessionId: string;
1355
1108
  };
1356
1109
  };
1357
- export type GetApiV1UsersResponse = GetApiV1UsersResponses[keyof GetApiV1UsersResponses];
1358
- export type PostApiV1UsersData = {
1110
+ export type LoginResponse = LoginResponses[keyof LoginResponses];
1111
+ export type RegisterData = {
1359
1112
  body: {
1360
1113
  email: string;
1361
- username: string;
1362
- password?: string;
1363
- firstName?: string | null;
1364
- lastName?: string | null;
1365
- phone?: string | null;
1366
- locale?: string;
1367
- role?: string;
1368
- claims?: {
1369
- [key: string]: unknown;
1370
- };
1114
+ password: string;
1115
+ firstName?: string;
1116
+ lastName?: string;
1371
1117
  marketingConsent?: boolean;
1372
- isGuest?: boolean;
1373
- emailVerified?: boolean;
1374
1118
  };
1375
1119
  path?: never;
1376
1120
  query?: never;
1377
- url: '/api/v1/users/';
1121
+ url: '/api/v1/register';
1378
1122
  };
1379
- export type PostApiV1UsersErrors = {
1380
- /**
1381
- * Default Response
1382
- */
1383
- 400: {
1384
- statusCode: number;
1385
- error: string;
1386
- message: string;
1387
- };
1123
+ export type RegisterErrors = {
1388
1124
  /**
1389
1125
  * Default Response
1390
1126
  */
@@ -1394,185 +1130,53 @@ export type PostApiV1UsersErrors = {
1394
1130
  message: string;
1395
1131
  };
1396
1132
  };
1397
- export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
1398
- export type PostApiV1UsersResponses = {
1133
+ export type RegisterError = RegisterErrors[keyof RegisterErrors];
1134
+ export type RegisterResponses = {
1399
1135
  /**
1400
1136
  * Default Response
1401
1137
  */
1402
- 201: {
1403
- id: string;
1404
- email: string;
1405
- isGuest: boolean;
1406
- };
1407
- };
1408
- export type PostApiV1UsersResponse = PostApiV1UsersResponses[keyof PostApiV1UsersResponses];
1409
- export type GetApiV1UsersByUserIdRolesData = {
1410
- body?: never;
1411
- path: {
1138
+ 200: {
1412
1139
  userId: string;
1413
1140
  };
1414
- query?: never;
1415
- url: '/api/v1/users/{userId}/roles';
1416
1141
  };
1417
- export type GetApiV1UsersByUserIdRolesErrors = {
1418
- /**
1419
- * Default Response
1420
- */
1421
- 404: {
1422
- statusCode: number;
1423
- error: string;
1424
- message: string;
1425
- };
1426
- };
1427
- export type GetApiV1UsersByUserIdRolesError = GetApiV1UsersByUserIdRolesErrors[keyof GetApiV1UsersByUserIdRolesErrors];
1428
- export type GetApiV1UsersByUserIdRolesResponses = {
1429
- /**
1430
- * Default Response
1431
- */
1432
- 200: Array<{
1433
- id: string;
1434
- role: string;
1435
- group: string;
1436
- createdAt: string;
1437
- }>;
1438
- };
1439
- export type GetApiV1UsersByUserIdRolesResponse = GetApiV1UsersByUserIdRolesResponses[keyof GetApiV1UsersByUserIdRolesResponses];
1440
- export type PostApiV1UsersByUserIdRolesData = {
1142
+ export type RegisterResponse = RegisterResponses[keyof RegisterResponses];
1143
+ export type ResendEmailConfirmationData = {
1441
1144
  body: {
1442
- role: string;
1443
- group: string;
1444
- };
1445
- path: {
1446
- userId: string;
1447
- };
1448
- query?: never;
1449
- url: '/api/v1/users/{userId}/roles';
1450
- };
1451
- export type PostApiV1UsersByUserIdRolesErrors = {
1452
- /**
1453
- * Default Response
1454
- */
1455
- 404: {
1456
- statusCode: number;
1457
- error: string;
1458
- message: string;
1459
- };
1460
- /**
1461
- * Default Response
1462
- */
1463
- 409: {
1464
- statusCode: number;
1465
- error: string;
1466
- message: string;
1467
- };
1468
- };
1469
- export type PostApiV1UsersByUserIdRolesError = PostApiV1UsersByUserIdRolesErrors[keyof PostApiV1UsersByUserIdRolesErrors];
1470
- export type PostApiV1UsersByUserIdRolesResponses = {
1471
- /**
1472
- * Default Response
1473
- */
1474
- 201: {
1475
- id: string;
1476
- userId: string;
1477
- role: string;
1478
- group: string;
1479
- createdAt: string;
1480
- };
1481
- };
1482
- export type PostApiV1UsersByUserIdRolesResponse = PostApiV1UsersByUserIdRolesResponses[keyof PostApiV1UsersByUserIdRolesResponses];
1483
- export type DeleteApiV1UsersByIdData = {
1484
- body?: never;
1485
- path: {
1486
- id: string;
1487
- };
1488
- query?: never;
1489
- url: '/api/v1/users/{id}';
1490
- };
1491
- export type DeleteApiV1UsersByIdErrors = {
1492
- /**
1493
- * Default Response
1494
- */
1495
- 404: {
1496
- statusCode: number;
1497
- error: string;
1498
- message: string;
1499
- };
1500
- };
1501
- export type DeleteApiV1UsersByIdError = DeleteApiV1UsersByIdErrors[keyof DeleteApiV1UsersByIdErrors];
1502
- export type DeleteApiV1UsersByIdResponses = {
1503
- /**
1504
- * Default Response
1505
- */
1506
- 200: {
1507
- id: string;
1508
- };
1509
- };
1510
- export type DeleteApiV1UsersByIdResponse = DeleteApiV1UsersByIdResponses[keyof DeleteApiV1UsersByIdResponses];
1511
- export type GetApiV1UsersByIdData = {
1512
- body?: never;
1513
- path: {
1514
- id: string;
1145
+ email: string;
1515
1146
  };
1147
+ path?: never;
1516
1148
  query?: never;
1517
- url: '/api/v1/users/{id}';
1149
+ url: '/api/v1/email/resend-confirmation';
1518
1150
  };
1519
- export type GetApiV1UsersByIdErrors = {
1151
+ export type ResendEmailConfirmationErrors = {
1520
1152
  /**
1521
1153
  * Default Response
1522
1154
  */
1523
- 404: {
1155
+ 400: {
1524
1156
  statusCode: number;
1525
1157
  error: string;
1526
1158
  message: string;
1527
1159
  };
1528
1160
  };
1529
- export type GetApiV1UsersByIdError = GetApiV1UsersByIdErrors[keyof GetApiV1UsersByIdErrors];
1530
- export type GetApiV1UsersByIdResponses = {
1161
+ export type ResendEmailConfirmationError = ResendEmailConfirmationErrors[keyof ResendEmailConfirmationErrors];
1162
+ export type ResendEmailConfirmationResponses = {
1531
1163
  /**
1532
1164
  * Default Response
1533
1165
  */
1534
1166
  200: {
1535
- id: string;
1536
- email: string;
1537
- firstName: string | null;
1538
- lastName: string | null;
1539
- username: string;
1540
- role: string;
1541
- emailVerified: boolean;
1542
- phone: string | null;
1543
- phoneVerified: boolean;
1544
- isBlocked: boolean;
1545
- isBlockedUntil: string | null;
1546
- isGuest: boolean;
1547
- locale: string;
1548
- claims: unknown;
1549
- marketingConsent: boolean;
1550
- twoFaEnabled: boolean;
1551
- twoFaType: string | null;
1552
- createdAt: string;
1553
- updatedAt: string;
1167
+ success: boolean;
1554
1168
  };
1555
1169
  };
1556
- export type GetApiV1UsersByIdResponse = GetApiV1UsersByIdResponses[keyof GetApiV1UsersByIdResponses];
1557
- export type PatchApiV1UsersByIdData = {
1170
+ export type ResendEmailConfirmationResponse = ResendEmailConfirmationResponses[keyof ResendEmailConfirmationResponses];
1171
+ export type SendMagicLinkData = {
1558
1172
  body: {
1559
- email?: string;
1560
- emailVerified?: boolean;
1561
- phone?: string;
1562
- phoneVerified?: boolean;
1563
- isBlocked?: boolean;
1564
- isBlockedUntil?: string | null;
1565
- twoFaEnabled?: boolean;
1566
- twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
1567
- loginAttempts?: number;
1568
- };
1569
- path: {
1570
- id: string;
1173
+ email: string;
1571
1174
  };
1175
+ path?: never;
1572
1176
  query?: never;
1573
- url: '/api/v1/users/{id}';
1177
+ url: '/api/v1/magic-link/send';
1574
1178
  };
1575
- export type PatchApiV1UsersByIdErrors = {
1179
+ export type SendMagicLinkErrors = {
1576
1180
  /**
1577
1181
  * Default Response
1578
1182
  */
@@ -1584,64 +1188,46 @@ export type PatchApiV1UsersByIdErrors = {
1584
1188
  /**
1585
1189
  * Default Response
1586
1190
  */
1587
- 404: {
1191
+ 401: {
1588
1192
  statusCode: number;
1589
1193
  error: string;
1590
1194
  message: string;
1591
1195
  };
1592
1196
  };
1593
- export type PatchApiV1UsersByIdError = PatchApiV1UsersByIdErrors[keyof PatchApiV1UsersByIdErrors];
1594
- export type PatchApiV1UsersByIdResponses = {
1197
+ export type SendMagicLinkError = SendMagicLinkErrors[keyof SendMagicLinkErrors];
1198
+ export type SendMagicLinkResponses = {
1595
1199
  /**
1596
1200
  * Default Response
1597
1201
  */
1598
1202
  200: {
1599
- id: string;
1203
+ success: boolean;
1600
1204
  };
1601
1205
  };
1602
- export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses];
1603
- export type DeleteApiV1UsersByUserIdRolesByRoleIdData = {
1604
- body?: never;
1605
- path: {
1606
- userId: string;
1607
- roleId: string;
1206
+ export type SendMagicLinkResponse = SendMagicLinkResponses[keyof SendMagicLinkResponses];
1207
+ export type VerifyEmailData = {
1208
+ body: {
1209
+ token: string;
1608
1210
  };
1211
+ path?: never;
1609
1212
  query?: never;
1610
- url: '/api/v1/users/{userId}/roles/{roleId}';
1213
+ url: '/api/v1/email/verify';
1611
1214
  };
1612
- export type DeleteApiV1UsersByUserIdRolesByRoleIdErrors = {
1215
+ export type VerifyEmailResponses = {
1613
1216
  /**
1614
1217
  * Default Response
1615
1218
  */
1616
- 404: {
1617
- statusCode: number;
1618
- error: string;
1619
- message: string;
1620
- };
1621
- };
1622
- export type DeleteApiV1UsersByUserIdRolesByRoleIdError = DeleteApiV1UsersByUserIdRolesByRoleIdErrors[keyof DeleteApiV1UsersByUserIdRolesByRoleIdErrors];
1623
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponses = {
1624
- /**
1625
- * Default Response
1626
- */
1627
- 200: {
1628
- id: string;
1629
- };
1219
+ 201: null;
1630
1220
  };
1631
- export type DeleteApiV1UsersByUserIdRolesByRoleIdResponse = DeleteApiV1UsersByUserIdRolesByRoleIdResponses[keyof DeleteApiV1UsersByUserIdRolesByRoleIdResponses];
1632
- export type PatchApiV1UsersByUserIdRolesByRoleIdData = {
1221
+ export type VerifyEmailResponse = VerifyEmailResponses[keyof VerifyEmailResponses];
1222
+ export type VerifyMagicLinkData = {
1633
1223
  body: {
1634
- role?: string;
1635
- group?: string;
1636
- };
1637
- path: {
1638
- userId: string;
1639
- roleId: string;
1224
+ token: string;
1640
1225
  };
1226
+ path?: never;
1641
1227
  query?: never;
1642
- url: '/api/v1/users/{userId}/roles/{roleId}';
1228
+ url: '/api/v1/magic-link/verify';
1643
1229
  };
1644
- export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1230
+ export type VerifyMagicLinkErrors = {
1645
1231
  /**
1646
1232
  * Default Response
1647
1233
  */
@@ -1653,24 +1239,24 @@ export type PatchApiV1UsersByUserIdRolesByRoleIdErrors = {
1653
1239
  /**
1654
1240
  * Default Response
1655
1241
  */
1656
- 404: {
1242
+ 401: {
1657
1243
  statusCode: number;
1658
1244
  error: string;
1659
1245
  message: string;
1660
1246
  };
1661
1247
  };
1662
- export type PatchApiV1UsersByUserIdRolesByRoleIdError = PatchApiV1UsersByUserIdRolesByRoleIdErrors[keyof PatchApiV1UsersByUserIdRolesByRoleIdErrors];
1663
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponses = {
1248
+ export type VerifyMagicLinkError = VerifyMagicLinkErrors[keyof VerifyMagicLinkErrors];
1249
+ export type VerifyMagicLinkResponses = {
1664
1250
  /**
1665
1251
  * Default Response
1666
1252
  */
1667
1253
  200: {
1668
- id: string;
1669
- userId: string;
1670
- role: string;
1671
- group: string;
1672
- createdAt: string;
1254
+ accessToken: string;
1255
+ refreshToken: string;
1256
+ } | {
1257
+ twoFaType: 'email' | 'sms' | 'app';
1258
+ twoFaToken: string;
1673
1259
  };
1674
1260
  };
1675
- export type PatchApiV1UsersByUserIdRolesByRoleIdResponse = PatchApiV1UsersByUserIdRolesByRoleIdResponses[keyof PatchApiV1UsersByUserIdRolesByRoleIdResponses];
1261
+ export type VerifyMagicLinkResponse = VerifyMagicLinkResponses[keyof VerifyMagicLinkResponses];
1676
1262
  //# sourceMappingURL=types.gen.d.ts.map