@authticon/client 0.0.0-beta4 → 0.0.0-beta41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +375 -0
- package/dist/CookieStorageAdapter.d.ts +15 -0
- package/dist/CookieStorageAdapter.d.ts.map +1 -0
- package/dist/CookieStorageAdapter.js +60 -0
- package/dist/CookieStorageAdapter.js.map +1 -0
- package/dist/InMemoryCacheAdapter.d.ts +3 -0
- package/dist/InMemoryCacheAdapter.d.ts.map +1 -0
- package/dist/InMemoryCacheAdapter.js +13 -0
- package/dist/InMemoryCacheAdapter.js.map +1 -0
- package/dist/TokenStorage.d.ts +14 -10
- package/dist/TokenStorage.d.ts.map +1 -1
- package/dist/TokenStorage.js +92 -59
- package/dist/TokenStorage.js.map +1 -1
- package/dist/TokenVerifier.d.ts +6 -11
- package/dist/TokenVerifier.d.ts.map +1 -1
- package/dist/TokenVerifier.js +48 -34
- package/dist/TokenVerifier.js.map +1 -1
- package/dist/admin.d.ts +2 -0
- package/dist/admin.d.ts.map +1 -0
- package/dist/admin.js +2 -0
- package/dist/admin.js.map +1 -0
- package/dist/adminClient.d.ts +104 -0
- package/dist/adminClient.d.ts.map +1 -0
- package/dist/adminClient.js +108 -0
- package/dist/adminClient.js.map +1 -0
- package/dist/apiClient.d.ts +8 -0
- package/dist/apiClient.d.ts.map +1 -0
- package/dist/apiClient.js +18 -0
- package/dist/apiClient.js.map +1 -0
- package/dist/authClient.d.ts +42 -0
- package/dist/authClient.d.ts.map +1 -0
- package/dist/authClient.js +75 -0
- package/dist/authClient.js.map +1 -0
- package/dist/authticon.d.ts +131 -0
- package/dist/authticon.d.ts.map +1 -0
- package/dist/authticon.js +24 -0
- package/dist/authticon.js.map +1 -0
- package/dist/browser.d.ts +134 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +7 -0
- package/dist/browser.js.map +1 -0
- package/dist/clients/admin.d.ts +106 -0
- package/dist/clients/admin.d.ts.map +1 -0
- package/dist/clients/admin.js +126 -0
- package/dist/clients/admin.js.map +1 -0
- package/dist/clients/auth.d.ts +42 -0
- package/dist/clients/auth.d.ts.map +1 -0
- package/dist/clients/auth.js +74 -0
- package/dist/clients/auth.js.map +1 -0
- package/dist/clients/base.d.ts +8 -0
- package/dist/clients/base.d.ts.map +1 -0
- package/dist/clients/base.js +18 -0
- package/dist/clients/base.js.map +1 -0
- package/dist/clients/generated/client/client.gen.d.ts +3 -0
- package/dist/clients/generated/client/client.gen.d.ts.map +1 -0
- package/dist/clients/generated/client/client.gen.js +236 -0
- package/dist/clients/generated/client/client.gen.js.map +1 -0
- package/dist/clients/generated/client/index.d.ts +9 -0
- package/dist/clients/generated/client/index.d.ts.map +1 -0
- package/dist/clients/generated/client/index.js +7 -0
- package/dist/clients/generated/client/index.js.map +1 -0
- package/dist/clients/generated/client/types.gen.d.ts +118 -0
- package/dist/clients/generated/client/types.gen.d.ts.map +1 -0
- package/dist/clients/generated/client/types.gen.js +3 -0
- package/dist/clients/generated/client/types.gen.js.map +1 -0
- package/dist/clients/generated/client/utils.gen.d.ts +34 -0
- package/dist/clients/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/clients/generated/client/utils.gen.js +229 -0
- package/dist/clients/generated/client/utils.gen.js.map +1 -0
- package/dist/clients/generated/client.gen.d.ts +13 -0
- package/dist/clients/generated/client.gen.d.ts.map +1 -0
- package/dist/clients/generated/client.gen.js +4 -0
- package/dist/clients/generated/client.gen.js.map +1 -0
- package/dist/clients/generated/core/auth.gen.d.ts +19 -0
- package/dist/clients/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/auth.gen.js +15 -0
- package/dist/clients/generated/core/auth.gen.js.map +1 -0
- package/dist/clients/generated/core/bodySerializer.gen.d.ts +26 -0
- package/dist/clients/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/bodySerializer.gen.js +58 -0
- package/dist/clients/generated/core/bodySerializer.gen.js.map +1 -0
- package/dist/clients/generated/core/params.gen.d.ts +44 -0
- package/dist/clients/generated/core/params.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/params.gen.js +101 -0
- package/dist/clients/generated/core/params.gen.js.map +1 -0
- package/dist/clients/generated/core/pathSerializer.gen.d.ts +34 -0
- package/dist/clients/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/pathSerializer.gen.js +107 -0
- package/dist/clients/generated/core/pathSerializer.gen.js.map +1 -0
- package/dist/clients/generated/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/clients/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/queryKeySerializer.gen.js +93 -0
- package/dist/clients/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/clients/generated/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/clients/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/serverSentEvents.gen.js +134 -0
- package/dist/clients/generated/core/serverSentEvents.gen.js.map +1 -0
- package/dist/clients/generated/core/types.gen.d.ts +79 -0
- package/dist/clients/generated/core/types.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/types.gen.js +3 -0
- package/dist/clients/generated/core/types.gen.js.map +1 -0
- package/dist/clients/generated/core/utils.gen.d.ts +20 -0
- package/dist/clients/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/clients/generated/core/utils.gen.js +88 -0
- package/dist/clients/generated/core/utils.gen.js.map +1 -0
- package/dist/clients/generated/index.d.ts +3 -0
- package/dist/clients/generated/index.d.ts.map +1 -0
- package/dist/clients/generated/index.js +3 -0
- package/dist/clients/generated/index.js.map +1 -0
- package/dist/clients/generated/sdk.gen.d.ts +168 -0
- package/dist/clients/generated/sdk.gen.d.ts.map +1 -0
- package/dist/clients/generated/sdk.gen.js +427 -0
- package/dist/clients/generated/sdk.gen.js.map +1 -0
- package/dist/clients/generated/types.gen.d.ts +1261 -0
- package/dist/clients/generated/types.gen.d.ts.map +1 -0
- package/dist/clients/generated/types.gen.js +3 -0
- package/dist/clients/generated/types.gen.js.map +1 -0
- package/dist/clients/user.d.ts +67 -0
- package/dist/clients/user.d.ts.map +1 -0
- package/dist/clients/user.js +72 -0
- package/dist/clients/user.js.map +1 -0
- package/dist/cookies/browser.d.ts +3 -0
- package/dist/cookies/browser.d.ts.map +1 -0
- package/dist/cookies/browser.js +31 -0
- package/dist/cookies/browser.js.map +1 -0
- package/dist/cookies/node.d.ts +8 -0
- package/dist/cookies/node.d.ts.map +1 -0
- package/dist/cookies/node.js +49 -0
- package/dist/cookies/node.js.map +1 -0
- package/dist/createSessionUser.d.ts +3 -0
- package/dist/createSessionUser.d.ts.map +1 -0
- package/dist/createSessionUser.js +15 -0
- package/dist/createSessionUser.js.map +1 -0
- package/dist/errors.d.ts +22 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +40 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated/client/client.gen.d.ts.map +1 -1
- package/dist/generated/client/client.gen.js +151 -50
- package/dist/generated/client/client.gen.js.map +1 -1
- package/dist/generated/client/index.d.ts +2 -2
- package/dist/generated/client/index.d.ts.map +1 -1
- package/dist/generated/client/index.js +1 -1
- package/dist/generated/client/index.js.map +1 -1
- package/dist/generated/client/types.gen.d.ts +53 -24
- package/dist/generated/client/types.gen.d.ts.map +1 -1
- package/dist/generated/client/utils.gen.d.ts +25 -6
- package/dist/generated/client/utils.gen.d.ts.map +1 -1
- package/dist/generated/client/utils.gen.js +117 -57
- package/dist/generated/client/utils.gen.js.map +1 -1
- package/dist/generated/client.gen.js +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +153 -52
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +234 -209
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +557 -971
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +2 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +171 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/node.js +46 -0
- package/dist/node.js.map +1 -0
- package/dist/session.d.ts +100 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +203 -0
- package/dist/session.js.map +1 -0
- package/dist/sessionClient.d.ts +53 -0
- package/dist/sessionClient.d.ts.map +1 -0
- package/dist/sessionClient.js +267 -0
- package/dist/sessionClient.js.map +1 -0
- package/dist/tokens.d.ts +27 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +212 -0
- package/dist/tokens.js.map +1 -0
- package/dist/types.d.ts +47 -8
- package/dist/types.d.ts.map +1 -1
- package/dist/userClient.d.ts +41 -0
- package/dist/userClient.d.ts.map +1 -0
- package/dist/userClient.js +64 -0
- package/dist/userClient.js.map +1 -0
- package/package.json +24 -7
- package/dist/Acccount.d.ts +0 -9
- package/dist/Acccount.d.ts.map +0 -1
- package/dist/Acccount.js +0 -22
- package/dist/Acccount.js.map +0 -1
- package/dist/Auth.d.ts +0 -19
- package/dist/Auth.d.ts.map +0 -1
- package/dist/Auth.js +0 -24
- package/dist/Auth.js.map +0 -1
- package/dist/Authticon.d.ts +0 -27
- package/dist/Authticon.d.ts.map +0 -1
- package/dist/Authticon.js +0 -41
- package/dist/Authticon.js.map +0 -1
- package/dist/BrowserCookieAdapter.d.ts +0 -13
- package/dist/BrowserCookieAdapter.d.ts.map +0 -1
- package/dist/BrowserCookieAdapter.js +0 -18
- package/dist/BrowserCookieAdapter.js.map +0 -1
- package/dist/BrowserCookieAdapter.test.d.ts +0 -2
- package/dist/BrowserCookieAdapter.test.d.ts.map +0 -1
- package/dist/BrowserCookieAdapter.test.js +0 -145
- package/dist/BrowserCookieAdapter.test.js.map +0 -1
- package/dist/RemixCookieAdapter.d.ts +0 -12
- package/dist/RemixCookieAdapter.d.ts.map +0 -1
- package/dist/RemixCookieAdapter.js +0 -25
- package/dist/RemixCookieAdapter.js.map +0 -1
- package/dist/RemixCookieAdapter.test.d.ts +0 -2
- package/dist/RemixCookieAdapter.test.d.ts.map +0 -1
- package/dist/RemixCookieAdapter.test.js +0 -136
- package/dist/RemixCookieAdapter.test.js.map +0 -1
- package/dist/TokenManager.d.ts +0 -22
- package/dist/TokenManager.d.ts.map +0 -1
- package/dist/TokenManager.js +0 -45
- package/dist/TokenManager.js.map +0 -1
- package/dist/TokenManager.test.d.ts +0 -2
- package/dist/TokenManager.test.d.ts.map +0 -1
- package/dist/TokenManager.test.js +0 -118
- package/dist/TokenManager.test.js.map +0 -1
- package/dist/TokenStorage.test.d.ts +0 -2
- package/dist/TokenStorage.test.d.ts.map +0 -1
- package/dist/TokenStorage.test.js +0 -179
- package/dist/TokenStorage.test.js.map +0 -1
- package/dist/TokenVerifier.test.d.ts +0 -2
- package/dist/TokenVerifier.test.d.ts.map +0 -1
- package/dist/TokenVerifier.test.js +0 -117
- package/dist/TokenVerifier.test.js.map +0 -1
- package/dist/TwoFa.d.ts +0 -22
- package/dist/TwoFa.d.ts.map +0 -1
- package/dist/TwoFa.js +0 -47
- package/dist/TwoFa.js.map +0 -1
- package/dist/User.d.ts +0 -25
- package/dist/User.d.ts.map +0 -1
- package/dist/User.js +0 -27
- package/dist/User.js.map +0 -1
- package/dist/Users.d.ts +0 -57
- package/dist/Users.d.ts.map +0 -1
- package/dist/Users.js +0 -54
- package/dist/Users.js.map +0 -1
- package/dist/cookie-utils.d.ts +0 -5
- package/dist/cookie-utils.d.ts.map +0 -1
- package/dist/cookie-utils.js +0 -33
- package/dist/cookie-utils.js.map +0 -1
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
|
-
|
|
2
|
+
baseUrl: 'https://authticon.com' | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type
|
|
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
|
-
|
|
7
|
+
deviceId: string;
|
|
8
|
+
targetUserId: string;
|
|
20
9
|
};
|
|
21
10
|
path?: never;
|
|
22
11
|
query?: never;
|
|
23
|
-
url: '/api/v1/
|
|
12
|
+
url: '/api/v1/admin/login-as';
|
|
24
13
|
};
|
|
25
|
-
export type
|
|
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
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
|
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
|
|
84
|
-
export type
|
|
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/
|
|
73
|
+
url: '/api/v1/admin/tools/sms';
|
|
92
74
|
};
|
|
93
|
-
export type
|
|
75
|
+
export type VerifySmsCodeErrors = {
|
|
94
76
|
/**
|
|
95
77
|
* Default Response
|
|
96
78
|
*/
|
|
97
|
-
|
|
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
|
-
|
|
87
|
+
401: {
|
|
106
88
|
statusCode: number;
|
|
107
89
|
error: string;
|
|
108
90
|
message: string;
|
|
109
91
|
};
|
|
110
92
|
};
|
|
111
|
-
export type
|
|
112
|
-
export type
|
|
93
|
+
export type VerifySmsCodeError = VerifySmsCodeErrors[keyof VerifySmsCodeErrors];
|
|
94
|
+
export type VerifySmsCodeResponses = {
|
|
113
95
|
/**
|
|
114
96
|
* Default Response
|
|
115
97
|
*/
|
|
116
|
-
|
|
98
|
+
200: {
|
|
99
|
+
verify: boolean;
|
|
100
|
+
};
|
|
117
101
|
};
|
|
118
|
-
export type
|
|
119
|
-
export type
|
|
102
|
+
export type VerifySmsCodeResponse = VerifySmsCodeResponses[keyof VerifySmsCodeResponses];
|
|
103
|
+
export type SendSmsCodeData = {
|
|
120
104
|
body: {
|
|
121
|
-
|
|
122
|
-
|
|
105
|
+
[key: string]: unknown;
|
|
106
|
+
};
|
|
107
|
+
path: {
|
|
123
108
|
userId: string;
|
|
124
109
|
};
|
|
125
|
-
path?: never;
|
|
126
110
|
query?: never;
|
|
127
|
-
url: '/api/v1/
|
|
111
|
+
url: '/api/v1/admin/tools/sms';
|
|
128
112
|
};
|
|
129
|
-
export type
|
|
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
|
|
148
|
-
export type
|
|
131
|
+
export type SendSmsCodeError = SendSmsCodeErrors[keyof SendSmsCodeErrors];
|
|
132
|
+
export type SendSmsCodeResponses = {
|
|
149
133
|
/**
|
|
150
134
|
* Default Response
|
|
151
135
|
*/
|
|
152
|
-
|
|
136
|
+
200: {
|
|
137
|
+
success: boolean;
|
|
138
|
+
};
|
|
153
139
|
};
|
|
154
|
-
export type
|
|
155
|
-
export type
|
|
156
|
-
body
|
|
157
|
-
|
|
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
|
-
|
|
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
|
|
177
|
-
export type PostApiV1AuthGuestResponses = {
|
|
162
|
+
export type ListUsersResponses = {
|
|
178
163
|
/**
|
|
179
164
|
* Default Response
|
|
180
165
|
*/
|
|
181
166
|
200: {
|
|
182
|
-
|
|
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
|
|
186
|
-
export type
|
|
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/
|
|
212
|
+
url: '/api/v1/admin/users/';
|
|
193
213
|
};
|
|
194
|
-
export type
|
|
214
|
+
export type CreateUserErrors = {
|
|
195
215
|
/**
|
|
196
216
|
* Default Response
|
|
197
217
|
*/
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
|
|
226
|
+
409: {
|
|
214
227
|
statusCode: number;
|
|
215
228
|
error: string;
|
|
216
229
|
message: string;
|
|
217
230
|
};
|
|
218
231
|
};
|
|
219
|
-
export type
|
|
220
|
-
export type
|
|
232
|
+
export type CreateUserError = CreateUserErrors[keyof CreateUserErrors];
|
|
233
|
+
export type CreateUserResponses = {
|
|
221
234
|
/**
|
|
222
235
|
* Default Response
|
|
223
236
|
*/
|
|
224
|
-
|
|
225
|
-
|
|
237
|
+
201: {
|
|
238
|
+
id: string;
|
|
239
|
+
email: string;
|
|
240
|
+
isGuest: boolean;
|
|
226
241
|
};
|
|
227
242
|
};
|
|
228
|
-
export type
|
|
229
|
-
export type
|
|
230
|
-
body
|
|
231
|
-
|
|
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/
|
|
250
|
+
url: '/api/v1/admin/users/{userId}/';
|
|
236
251
|
};
|
|
237
|
-
export type
|
|
252
|
+
export type DeleteUserErrors = {
|
|
238
253
|
/**
|
|
239
254
|
* Default Response
|
|
240
255
|
*/
|
|
241
|
-
|
|
256
|
+
404: {
|
|
242
257
|
statusCode: number;
|
|
243
258
|
error: string;
|
|
244
259
|
message: string;
|
|
245
260
|
};
|
|
246
261
|
};
|
|
247
|
-
export type
|
|
248
|
-
export type
|
|
262
|
+
export type DeleteUserError = DeleteUserErrors[keyof DeleteUserErrors];
|
|
263
|
+
export type DeleteUserResponses = {
|
|
249
264
|
/**
|
|
250
265
|
* Default Response
|
|
251
266
|
*/
|
|
252
267
|
200: {
|
|
253
|
-
|
|
268
|
+
id: string;
|
|
254
269
|
};
|
|
255
270
|
};
|
|
256
|
-
export type
|
|
257
|
-
export type
|
|
258
|
-
body
|
|
259
|
-
|
|
260
|
-
|
|
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/
|
|
278
|
+
url: '/api/v1/admin/users/{userId}';
|
|
265
279
|
};
|
|
266
|
-
export type
|
|
280
|
+
export type GetUserErrors = {
|
|
267
281
|
/**
|
|
268
282
|
* Default Response
|
|
269
283
|
*/
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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
|
|
290
|
+
export type GetUserError = GetUserErrors[keyof GetUserErrors];
|
|
291
|
+
export type GetUserResponses = {
|
|
285
292
|
/**
|
|
286
293
|
* Default Response
|
|
287
294
|
*/
|
|
288
295
|
200: {
|
|
289
|
-
|
|
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
|
|
293
|
-
export type
|
|
317
|
+
export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
|
|
318
|
+
export type UpdateUserData = {
|
|
294
319
|
body: {
|
|
295
|
-
|
|
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/
|
|
336
|
+
url: '/api/v1/admin/users/{userId}';
|
|
300
337
|
};
|
|
301
|
-
export type
|
|
338
|
+
export type UpdateUserErrors = {
|
|
302
339
|
/**
|
|
303
340
|
* Default Response
|
|
304
341
|
*/
|
|
305
|
-
|
|
306
|
-
|
|
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
|
-
|
|
350
|
+
404: {
|
|
329
351
|
statusCode: number;
|
|
330
352
|
error: string;
|
|
331
353
|
message: string;
|
|
332
354
|
};
|
|
333
355
|
};
|
|
334
|
-
export type
|
|
335
|
-
export type
|
|
356
|
+
export type UpdateUserError = UpdateUserErrors[keyof UpdateUserErrors];
|
|
357
|
+
export type UpdateUserResponses = {
|
|
336
358
|
/**
|
|
337
359
|
* Default Response
|
|
338
360
|
*/
|
|
339
361
|
200: {
|
|
340
|
-
|
|
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
|
|
350
|
-
export type
|
|
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/
|
|
375
|
+
url: '/api/v1/admin/users/{userId}/roles';
|
|
357
376
|
};
|
|
358
|
-
export type
|
|
377
|
+
export type CreateUserRoleErrors = {
|
|
359
378
|
/**
|
|
360
379
|
* Default Response
|
|
361
380
|
*/
|
|
362
|
-
|
|
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
|
-
|
|
389
|
+
409: {
|
|
371
390
|
statusCode: number;
|
|
372
391
|
error: string;
|
|
373
392
|
message: string;
|
|
374
393
|
};
|
|
375
394
|
};
|
|
376
|
-
export type
|
|
377
|
-
export type
|
|
395
|
+
export type CreateUserRoleError = CreateUserRoleErrors[keyof CreateUserRoleErrors];
|
|
396
|
+
export type CreateUserRoleResponses = {
|
|
378
397
|
/**
|
|
379
398
|
* Default Response
|
|
380
399
|
*/
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
400
|
+
201: {
|
|
401
|
+
id: string;
|
|
402
|
+
userId: string;
|
|
403
|
+
role: string;
|
|
404
|
+
group: string;
|
|
405
|
+
createdAt: string;
|
|
384
406
|
};
|
|
385
407
|
};
|
|
386
|
-
export type
|
|
387
|
-
export type
|
|
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
|
|
411
|
+
path: {
|
|
412
|
+
userId: string;
|
|
413
|
+
roleId: string;
|
|
414
|
+
};
|
|
407
415
|
query?: never;
|
|
408
|
-
url: '/api/v1/
|
|
416
|
+
url: '/api/v1/admin/users/{userId}/roles/roles/{roleId}';
|
|
409
417
|
};
|
|
410
|
-
export type
|
|
418
|
+
export type DeleteUserRoleErrors = {
|
|
411
419
|
/**
|
|
412
420
|
* Default Response
|
|
413
421
|
*/
|
|
414
|
-
|
|
422
|
+
404: {
|
|
415
423
|
statusCode: number;
|
|
416
424
|
error: string;
|
|
417
425
|
message: string;
|
|
418
426
|
};
|
|
419
427
|
};
|
|
420
|
-
export type
|
|
421
|
-
export type
|
|
428
|
+
export type DeleteUserRoleError = DeleteUserRoleErrors[keyof DeleteUserRoleErrors];
|
|
429
|
+
export type DeleteUserRoleResponses = {
|
|
422
430
|
/**
|
|
423
431
|
* Default Response
|
|
424
432
|
*/
|
|
425
433
|
200: {
|
|
426
|
-
|
|
434
|
+
id: string;
|
|
427
435
|
};
|
|
428
436
|
};
|
|
429
|
-
export type
|
|
430
|
-
export type
|
|
431
|
-
body
|
|
432
|
-
|
|
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/
|
|
444
|
+
url: '/api/v1/admin/users/{userId}/roles/roles';
|
|
437
445
|
};
|
|
438
|
-
export type
|
|
446
|
+
export type ListUserRolesErrors = {
|
|
439
447
|
/**
|
|
440
448
|
* Default Response
|
|
441
449
|
*/
|
|
442
|
-
|
|
450
|
+
404: {
|
|
443
451
|
statusCode: number;
|
|
444
452
|
error: string;
|
|
445
453
|
message: string;
|
|
446
454
|
};
|
|
447
455
|
};
|
|
448
|
-
export type
|
|
449
|
-
export type
|
|
456
|
+
export type ListUserRolesError = ListUserRolesErrors[keyof ListUserRolesErrors];
|
|
457
|
+
export type ListUserRolesResponses = {
|
|
450
458
|
/**
|
|
451
459
|
* Default Response
|
|
452
460
|
*/
|
|
453
|
-
200: {
|
|
454
|
-
|
|
455
|
-
|
|
461
|
+
200: Array<{
|
|
462
|
+
id: string;
|
|
463
|
+
role: string;
|
|
464
|
+
group: string;
|
|
465
|
+
createdAt: string;
|
|
466
|
+
}>;
|
|
456
467
|
};
|
|
457
|
-
export type
|
|
458
|
-
export type
|
|
468
|
+
export type ListUserRolesResponse = ListUserRolesResponses[keyof ListUserRolesResponses];
|
|
469
|
+
export type UpdateUserRoleData = {
|
|
459
470
|
body: {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
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/
|
|
479
|
+
url: '/api/v1/admin/users/{userId}/roles/{roleId}';
|
|
469
480
|
};
|
|
470
|
-
export type
|
|
481
|
+
export type UpdateUserRoleErrors = {
|
|
471
482
|
/**
|
|
472
483
|
* Default Response
|
|
473
484
|
*/
|
|
474
|
-
|
|
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
|
|
481
|
-
export type
|
|
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
|
|
490
|
-
export type
|
|
512
|
+
export type UpdateUserRoleResponse = UpdateUserRoleResponses[keyof UpdateUserRoleResponses];
|
|
513
|
+
export type LogoutData = {
|
|
491
514
|
body: {
|
|
492
|
-
|
|
515
|
+
[key: string]: unknown;
|
|
493
516
|
};
|
|
494
517
|
path?: never;
|
|
495
518
|
query?: never;
|
|
496
|
-
url: '/api/v1/
|
|
519
|
+
url: '/api/v1/me/logout';
|
|
497
520
|
};
|
|
498
|
-
export type
|
|
521
|
+
export type LogoutResponses = {
|
|
499
522
|
/**
|
|
500
523
|
* Default Response
|
|
501
524
|
*/
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
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
|
|
509
|
-
export type PostApiV1AuthEmailResendConfirmationResponses = {
|
|
534
|
+
export type MeResponses = {
|
|
510
535
|
/**
|
|
511
536
|
* Default Response
|
|
512
537
|
*/
|
|
513
538
|
200: {
|
|
514
|
-
|
|
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
|
|
518
|
-
export type
|
|
562
|
+
export type MeResponse = MeResponses[keyof MeResponses];
|
|
563
|
+
export type RefreshData = {
|
|
519
564
|
body: {
|
|
520
|
-
|
|
565
|
+
refreshToken: string;
|
|
521
566
|
};
|
|
522
567
|
path?: never;
|
|
523
568
|
query?: never;
|
|
524
|
-
url: '/api/v1/
|
|
569
|
+
url: '/api/v1/me/token/refresh';
|
|
525
570
|
};
|
|
526
|
-
export type
|
|
571
|
+
export type RefreshErrors = {
|
|
527
572
|
/**
|
|
528
573
|
* Default Response
|
|
529
574
|
*/
|
|
530
|
-
|
|
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
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
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
|
|
545
|
-
export type PostApiV1AuthMagicLinkSendResponses = {
|
|
602
|
+
export type UpdateMeResponses = {
|
|
546
603
|
/**
|
|
547
604
|
* Default Response
|
|
548
605
|
*/
|
|
549
606
|
200: {
|
|
550
|
-
|
|
607
|
+
id: string;
|
|
551
608
|
};
|
|
552
609
|
};
|
|
553
|
-
export type
|
|
554
|
-
export type
|
|
610
|
+
export type UpdateMeResponse = UpdateMeResponses[keyof UpdateMeResponses];
|
|
611
|
+
export type DisableTwoFaData = {
|
|
555
612
|
body: {
|
|
556
|
-
|
|
613
|
+
code: string;
|
|
557
614
|
};
|
|
558
615
|
path?: never;
|
|
559
616
|
query?: never;
|
|
560
|
-
url: '/api/v1/
|
|
617
|
+
url: '/api/v1/me/2fa';
|
|
561
618
|
};
|
|
562
|
-
export type
|
|
619
|
+
export type DisableTwoFaErrors = {
|
|
563
620
|
/**
|
|
564
621
|
* Default Response
|
|
565
622
|
*/
|
|
566
|
-
|
|
623
|
+
401: {
|
|
567
624
|
statusCode: number;
|
|
568
625
|
error: string;
|
|
569
626
|
message: string;
|
|
570
627
|
};
|
|
571
628
|
};
|
|
572
|
-
export type
|
|
573
|
-
export type
|
|
629
|
+
export type DisableTwoFaError = DisableTwoFaErrors[keyof DisableTwoFaErrors];
|
|
630
|
+
export type DisableTwoFaResponses = {
|
|
574
631
|
/**
|
|
575
632
|
* Default Response
|
|
576
633
|
*/
|
|
577
|
-
|
|
578
|
-
success: boolean;
|
|
579
|
-
};
|
|
634
|
+
201: null;
|
|
580
635
|
};
|
|
581
|
-
export type
|
|
582
|
-
export type
|
|
636
|
+
export type DisableTwoFaResponse = DisableTwoFaResponses[keyof DisableTwoFaResponses];
|
|
637
|
+
export type EnableTwoFaData = {
|
|
583
638
|
body: {
|
|
584
|
-
|
|
639
|
+
code?: string;
|
|
640
|
+
type?: 'APP' | 'EMAIL' | 'PHONE';
|
|
585
641
|
};
|
|
586
642
|
path?: never;
|
|
587
643
|
query?: never;
|
|
588
|
-
url: '/api/v1/
|
|
644
|
+
url: '/api/v1/me/2fa';
|
|
589
645
|
};
|
|
590
|
-
export type
|
|
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
|
|
609
|
-
export type
|
|
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
|
|
618
|
-
export type
|
|
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/
|
|
678
|
+
url: '/api/v1/me/2fa/secret';
|
|
628
679
|
};
|
|
629
|
-
export type
|
|
680
|
+
export type GetTwoFaSecretResponses = {
|
|
630
681
|
/**
|
|
631
682
|
* Default Response
|
|
632
683
|
*/
|
|
633
684
|
200: {
|
|
634
|
-
|
|
685
|
+
secret: string;
|
|
686
|
+
uri: string;
|
|
635
687
|
};
|
|
636
688
|
};
|
|
637
|
-
export type
|
|
638
|
-
export type
|
|
689
|
+
export type GetTwoFaSecretResponse = GetTwoFaSecretResponses[keyof GetTwoFaSecretResponses];
|
|
690
|
+
export type SendTwoFaCodeData = {
|
|
639
691
|
body: {
|
|
640
|
-
|
|
641
|
-
token?: string;
|
|
692
|
+
[key: string]: unknown;
|
|
642
693
|
};
|
|
643
694
|
path?: never;
|
|
644
695
|
query?: never;
|
|
645
|
-
url: '/api/v1/
|
|
696
|
+
url: '/api/v1/me/2fa/send-code';
|
|
646
697
|
};
|
|
647
|
-
export type
|
|
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
|
-
|
|
702
|
+
404: {
|
|
660
703
|
statusCode: number;
|
|
661
704
|
error: string;
|
|
662
705
|
message: string;
|
|
663
706
|
};
|
|
664
707
|
};
|
|
665
|
-
export type
|
|
666
|
-
export type
|
|
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
|
|
673
|
-
export type
|
|
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/
|
|
723
|
+
url: '/api/v1/me/2fa/verify';
|
|
698
724
|
};
|
|
699
|
-
export type
|
|
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
|
|
718
|
-
export type
|
|
743
|
+
export type VerifyTwoFaError = VerifyTwoFaErrors[keyof VerifyTwoFaErrors];
|
|
744
|
+
export type VerifyTwoFaResponses = {
|
|
719
745
|
/**
|
|
720
746
|
* Default Response
|
|
721
747
|
*/
|
|
722
748
|
200: {
|
|
723
|
-
|
|
724
|
-
refreshToken: string;
|
|
749
|
+
[key: string]: never;
|
|
725
750
|
};
|
|
726
751
|
};
|
|
727
|
-
export type
|
|
728
|
-
export type
|
|
752
|
+
export type VerifyTwoFaResponse = VerifyTwoFaResponses[keyof VerifyTwoFaResponses];
|
|
753
|
+
export type ChangeEmailData = {
|
|
729
754
|
body: {
|
|
730
|
-
|
|
731
|
-
code: string;
|
|
755
|
+
newEmail: string;
|
|
732
756
|
};
|
|
733
757
|
path?: never;
|
|
734
758
|
query?: never;
|
|
735
|
-
url: '/api/v1/
|
|
759
|
+
url: '/api/v1/me/email';
|
|
736
760
|
};
|
|
737
|
-
export type
|
|
761
|
+
export type ChangeEmailErrors = {
|
|
738
762
|
/**
|
|
739
763
|
* Default Response
|
|
740
764
|
*/
|
|
741
|
-
|
|
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
|
-
|
|
773
|
+
409: {
|
|
750
774
|
statusCode: number;
|
|
751
775
|
error: string;
|
|
752
776
|
message: string;
|
|
753
777
|
};
|
|
754
778
|
};
|
|
755
|
-
export type
|
|
756
|
-
export type
|
|
779
|
+
export type ChangeEmailError = ChangeEmailErrors[keyof ChangeEmailErrors];
|
|
780
|
+
export type ChangeEmailResponses = {
|
|
757
781
|
/**
|
|
758
782
|
* Default Response
|
|
759
783
|
*/
|
|
760
|
-
|
|
761
|
-
accessToken: string;
|
|
762
|
-
refreshToken: string;
|
|
763
|
-
rememberToken: string;
|
|
764
|
-
};
|
|
784
|
+
201: null;
|
|
765
785
|
};
|
|
766
|
-
export type
|
|
767
|
-
export type
|
|
768
|
-
body
|
|
769
|
-
|
|
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/
|
|
793
|
+
url: '/api/v1/me/invitations';
|
|
774
794
|
};
|
|
775
|
-
export type
|
|
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
|
-
|
|
799
|
+
404: {
|
|
788
800
|
statusCode: number;
|
|
789
801
|
error: string;
|
|
790
802
|
message: string;
|
|
791
803
|
};
|
|
792
804
|
};
|
|
793
|
-
export type
|
|
794
|
-
export type
|
|
805
|
+
export type DeleteInvitationError = DeleteInvitationErrors[keyof DeleteInvitationErrors];
|
|
806
|
+
export type DeleteInvitationResponses = {
|
|
795
807
|
/**
|
|
796
808
|
* Default Response
|
|
797
809
|
*/
|
|
798
810
|
200: {
|
|
799
|
-
|
|
800
|
-
refreshToken: string;
|
|
801
|
-
} | {
|
|
802
|
-
twoFaType: 'email' | 'sms' | 'app';
|
|
803
|
-
twoFaToken: string;
|
|
811
|
+
id: string;
|
|
804
812
|
};
|
|
805
813
|
};
|
|
806
|
-
export type
|
|
807
|
-
export type
|
|
814
|
+
export type DeleteInvitationResponse = DeleteInvitationResponses[keyof DeleteInvitationResponses];
|
|
815
|
+
export type CreateInvitationData = {
|
|
808
816
|
body: {
|
|
809
|
-
|
|
810
|
-
|
|
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/
|
|
828
|
+
url: '/api/v1/me/invitations';
|
|
815
829
|
};
|
|
816
|
-
export type
|
|
830
|
+
export type CreateInvitationErrors = {
|
|
817
831
|
/**
|
|
818
832
|
* Default Response
|
|
819
833
|
*/
|
|
820
|
-
|
|
834
|
+
409: {
|
|
821
835
|
statusCode: number;
|
|
822
836
|
error: string;
|
|
823
837
|
message: string;
|
|
824
838
|
};
|
|
825
839
|
};
|
|
826
|
-
export type
|
|
827
|
-
export type
|
|
840
|
+
export type CreateInvitationError = CreateInvitationErrors[keyof CreateInvitationErrors];
|
|
841
|
+
export type CreateInvitationResponses = {
|
|
828
842
|
/**
|
|
829
843
|
* Default Response
|
|
830
844
|
*/
|
|
831
845
|
200: {
|
|
832
|
-
|
|
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
|
|
836
|
-
export type
|
|
855
|
+
export type CreateInvitationResponse = CreateInvitationResponses[keyof CreateInvitationResponses];
|
|
856
|
+
export type ChangePasswordData = {
|
|
837
857
|
body: {
|
|
838
|
-
|
|
858
|
+
oldPassword: string;
|
|
859
|
+
newPassword: string;
|
|
860
|
+
userId: string;
|
|
839
861
|
};
|
|
840
862
|
path?: never;
|
|
841
863
|
query?: never;
|
|
842
|
-
url: '/api/v1/
|
|
864
|
+
url: '/api/v1/me/password';
|
|
843
865
|
};
|
|
844
|
-
export type
|
|
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
|
|
863
|
-
export type
|
|
884
|
+
export type ChangePasswordError = ChangePasswordErrors[keyof ChangePasswordErrors];
|
|
885
|
+
export type ChangePasswordResponses = {
|
|
864
886
|
/**
|
|
865
887
|
* Default Response
|
|
866
888
|
*/
|
|
867
|
-
|
|
868
|
-
verify: boolean;
|
|
869
|
-
};
|
|
889
|
+
201: null;
|
|
870
890
|
};
|
|
871
|
-
export type
|
|
872
|
-
export type
|
|
891
|
+
export type ChangePasswordResponse = ChangePasswordResponses[keyof ChangePasswordResponses];
|
|
892
|
+
export type SetPasswordData = {
|
|
873
893
|
body: {
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
userAgent: string;
|
|
894
|
+
password: string;
|
|
895
|
+
token?: string;
|
|
877
896
|
};
|
|
878
897
|
path?: never;
|
|
879
898
|
query?: never;
|
|
880
|
-
url: '/api/v1/
|
|
899
|
+
url: '/api/v1/me/password';
|
|
881
900
|
};
|
|
882
|
-
export type
|
|
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
|
-
|
|
898
|
-
|
|
899
|
-
|
|
913
|
+
401: {
|
|
914
|
+
statusCode: number;
|
|
915
|
+
error: string;
|
|
916
|
+
message: string;
|
|
900
917
|
};
|
|
901
918
|
};
|
|
902
|
-
export type
|
|
903
|
-
export type
|
|
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
|
-
|
|
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/
|
|
933
|
+
url: '/api/v1/me/phone';
|
|
917
934
|
};
|
|
918
|
-
export type
|
|
935
|
+
export type ChangePhoneErrors = {
|
|
919
936
|
/**
|
|
920
937
|
* Default Response
|
|
921
938
|
*/
|
|
922
|
-
|
|
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
|
-
|
|
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
|
|
963
|
-
export type
|
|
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
|
|
1006
|
-
export type
|
|
960
|
+
export type ChangePhoneResponse = ChangePhoneResponses[keyof ChangePhoneResponses];
|
|
961
|
+
export type VerifyPhoneData = {
|
|
1007
962
|
body: {
|
|
1008
|
-
|
|
1009
|
-
|
|
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/
|
|
968
|
+
url: '/api/v1/me/phone/verify';
|
|
1026
969
|
};
|
|
1027
|
-
export type
|
|
970
|
+
export type VerifyPhoneErrors = {
|
|
1028
971
|
/**
|
|
1029
972
|
* Default Response
|
|
1030
973
|
*/
|
|
1031
|
-
|
|
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
|
|
1076
|
-
export type
|
|
988
|
+
export type VerifyPhoneError = VerifyPhoneErrors[keyof VerifyPhoneErrors];
|
|
989
|
+
export type VerifyPhoneResponses = {
|
|
1077
990
|
/**
|
|
1078
991
|
* Default Response
|
|
1079
992
|
*/
|
|
1080
|
-
|
|
1081
|
-
id: string;
|
|
1082
|
-
role: string;
|
|
1083
|
-
group: string;
|
|
1084
|
-
createdAt: string;
|
|
1085
|
-
}>;
|
|
993
|
+
201: null;
|
|
1086
994
|
};
|
|
1087
|
-
export type
|
|
1088
|
-
export type
|
|
995
|
+
export type VerifyPhoneResponse = VerifyPhoneResponses[keyof VerifyPhoneResponses];
|
|
996
|
+
export type AcceptInvitationData = {
|
|
1089
997
|
body: {
|
|
1090
|
-
|
|
1091
|
-
|
|
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/
|
|
1004
|
+
url: '/api/v1/invitation/accept';
|
|
1166
1005
|
};
|
|
1167
|
-
export type
|
|
1006
|
+
export type AcceptInvitationErrors = {
|
|
1168
1007
|
/**
|
|
1169
1008
|
* Default Response
|
|
1170
1009
|
*/
|
|
1171
|
-
|
|
1010
|
+
400: {
|
|
1172
1011
|
statusCode: number;
|
|
1173
1012
|
error: string;
|
|
1174
1013
|
message: string;
|
|
1175
1014
|
};
|
|
1176
1015
|
};
|
|
1177
|
-
export type
|
|
1178
|
-
export type
|
|
1016
|
+
export type AcceptInvitationError = AcceptInvitationErrors[keyof AcceptInvitationErrors];
|
|
1017
|
+
export type AcceptInvitationResponses = {
|
|
1179
1018
|
/**
|
|
1180
1019
|
* Default Response
|
|
1181
1020
|
*/
|
|
1182
1021
|
200: {
|
|
1183
|
-
|
|
1184
|
-
|
|
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
|
|
1205
|
-
export type
|
|
1026
|
+
export type AcceptInvitationResponse = AcceptInvitationResponses[keyof AcceptInvitationResponses];
|
|
1027
|
+
export type CreateGuestUserData = {
|
|
1206
1028
|
body: {
|
|
1207
|
-
email
|
|
1208
|
-
|
|
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/
|
|
1036
|
+
url: '/api/v1/guest';
|
|
1222
1037
|
};
|
|
1223
|
-
export type
|
|
1038
|
+
export type CreateGuestUserErrors = {
|
|
1224
1039
|
/**
|
|
1225
1040
|
* Default Response
|
|
1226
1041
|
*/
|
|
1227
|
-
|
|
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
|
|
1242
|
-
export type
|
|
1048
|
+
export type CreateGuestUserError = CreateGuestUserErrors[keyof CreateGuestUserErrors];
|
|
1049
|
+
export type CreateGuestUserResponses = {
|
|
1243
1050
|
/**
|
|
1244
1051
|
* Default Response
|
|
1245
1052
|
*/
|
|
1246
1053
|
200: {
|
|
1247
|
-
|
|
1054
|
+
token: string;
|
|
1248
1055
|
};
|
|
1249
1056
|
};
|
|
1250
|
-
export type
|
|
1251
|
-
export type
|
|
1252
|
-
body
|
|
1253
|
-
|
|
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/
|
|
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
|
|
1271
|
-
export type DeleteApiV1UserByUserIdRolesByRoleIdResponses = {
|
|
1066
|
+
export type ForgotPasswordResponses = {
|
|
1272
1067
|
/**
|
|
1273
1068
|
* Default Response
|
|
1274
1069
|
*/
|
|
1275
1070
|
200: {
|
|
1276
|
-
|
|
1071
|
+
success: boolean;
|
|
1277
1072
|
};
|
|
1278
1073
|
};
|
|
1279
|
-
export type
|
|
1280
|
-
export type
|
|
1074
|
+
export type ForgotPasswordResponse = ForgotPasswordResponses[keyof ForgotPasswordResponses];
|
|
1075
|
+
export type LoginData = {
|
|
1281
1076
|
body: {
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
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/
|
|
1086
|
+
url: '/api/v1/login';
|
|
1291
1087
|
};
|
|
1292
|
-
export type
|
|
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
|
-
|
|
1092
|
+
401: {
|
|
1305
1093
|
statusCode: number;
|
|
1306
1094
|
error: string;
|
|
1307
1095
|
message: string;
|
|
1308
1096
|
};
|
|
1309
1097
|
};
|
|
1310
|
-
export type
|
|
1311
|
-
export type
|
|
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
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
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
|
|
1358
|
-
export type
|
|
1110
|
+
export type LoginResponse = LoginResponses[keyof LoginResponses];
|
|
1111
|
+
export type RegisterData = {
|
|
1359
1112
|
body: {
|
|
1360
1113
|
email: string;
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
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/
|
|
1121
|
+
url: '/api/v1/register';
|
|
1378
1122
|
};
|
|
1379
|
-
export type
|
|
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
|
|
1398
|
-
export type
|
|
1133
|
+
export type RegisterError = RegisterErrors[keyof RegisterErrors];
|
|
1134
|
+
export type RegisterResponses = {
|
|
1399
1135
|
/**
|
|
1400
1136
|
* Default Response
|
|
1401
1137
|
*/
|
|
1402
|
-
|
|
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
|
|
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
|
-
|
|
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/
|
|
1149
|
+
url: '/api/v1/email/resend-confirmation';
|
|
1518
1150
|
};
|
|
1519
|
-
export type
|
|
1151
|
+
export type ResendEmailConfirmationErrors = {
|
|
1520
1152
|
/**
|
|
1521
1153
|
* Default Response
|
|
1522
1154
|
*/
|
|
1523
|
-
|
|
1155
|
+
400: {
|
|
1524
1156
|
statusCode: number;
|
|
1525
1157
|
error: string;
|
|
1526
1158
|
message: string;
|
|
1527
1159
|
};
|
|
1528
1160
|
};
|
|
1529
|
-
export type
|
|
1530
|
-
export type
|
|
1161
|
+
export type ResendEmailConfirmationError = ResendEmailConfirmationErrors[keyof ResendEmailConfirmationErrors];
|
|
1162
|
+
export type ResendEmailConfirmationResponses = {
|
|
1531
1163
|
/**
|
|
1532
1164
|
* Default Response
|
|
1533
1165
|
*/
|
|
1534
1166
|
200: {
|
|
1535
|
-
|
|
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
|
|
1557
|
-
export type
|
|
1170
|
+
export type ResendEmailConfirmationResponse = ResendEmailConfirmationResponses[keyof ResendEmailConfirmationResponses];
|
|
1171
|
+
export type SendMagicLinkData = {
|
|
1558
1172
|
body: {
|
|
1559
|
-
email
|
|
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/
|
|
1177
|
+
url: '/api/v1/magic-link/send';
|
|
1574
1178
|
};
|
|
1575
|
-
export type
|
|
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
|
-
|
|
1191
|
+
401: {
|
|
1588
1192
|
statusCode: number;
|
|
1589
1193
|
error: string;
|
|
1590
1194
|
message: string;
|
|
1591
1195
|
};
|
|
1592
1196
|
};
|
|
1593
|
-
export type
|
|
1594
|
-
export type
|
|
1197
|
+
export type SendMagicLinkError = SendMagicLinkErrors[keyof SendMagicLinkErrors];
|
|
1198
|
+
export type SendMagicLinkResponses = {
|
|
1595
1199
|
/**
|
|
1596
1200
|
* Default Response
|
|
1597
1201
|
*/
|
|
1598
1202
|
200: {
|
|
1599
|
-
|
|
1203
|
+
success: boolean;
|
|
1600
1204
|
};
|
|
1601
1205
|
};
|
|
1602
|
-
export type
|
|
1603
|
-
export type
|
|
1604
|
-
body
|
|
1605
|
-
|
|
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/
|
|
1213
|
+
url: '/api/v1/email/verify';
|
|
1611
1214
|
};
|
|
1612
|
-
export type
|
|
1215
|
+
export type VerifyEmailResponses = {
|
|
1613
1216
|
/**
|
|
1614
1217
|
* Default Response
|
|
1615
1218
|
*/
|
|
1616
|
-
|
|
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
|
|
1632
|
-
export type
|
|
1221
|
+
export type VerifyEmailResponse = VerifyEmailResponses[keyof VerifyEmailResponses];
|
|
1222
|
+
export type VerifyMagicLinkData = {
|
|
1633
1223
|
body: {
|
|
1634
|
-
|
|
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/
|
|
1228
|
+
url: '/api/v1/magic-link/verify';
|
|
1643
1229
|
};
|
|
1644
|
-
export type
|
|
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
|
-
|
|
1242
|
+
401: {
|
|
1657
1243
|
statusCode: number;
|
|
1658
1244
|
error: string;
|
|
1659
1245
|
message: string;
|
|
1660
1246
|
};
|
|
1661
1247
|
};
|
|
1662
|
-
export type
|
|
1663
|
-
export type
|
|
1248
|
+
export type VerifyMagicLinkError = VerifyMagicLinkErrors[keyof VerifyMagicLinkErrors];
|
|
1249
|
+
export type VerifyMagicLinkResponses = {
|
|
1664
1250
|
/**
|
|
1665
1251
|
* Default Response
|
|
1666
1252
|
*/
|
|
1667
1253
|
200: {
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1254
|
+
accessToken: string;
|
|
1255
|
+
refreshToken: string;
|
|
1256
|
+
} | {
|
|
1257
|
+
twoFaType: 'email' | 'sms' | 'app';
|
|
1258
|
+
twoFaToken: string;
|
|
1673
1259
|
};
|
|
1674
1260
|
};
|
|
1675
|
-
export type
|
|
1261
|
+
export type VerifyMagicLinkResponse = VerifyMagicLinkResponses[keyof VerifyMagicLinkResponses];
|
|
1676
1262
|
//# sourceMappingURL=types.gen.d.ts.map
|