@authticon/client 0.0.0-beta37 → 0.0.0-beta39
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/TokenStorage.d.ts +6 -18
- package/dist/TokenStorage.d.ts.map +1 -1
- package/dist/TokenStorage.js +83 -135
- package/dist/TokenStorage.js.map +1 -1
- package/dist/TokenVerifier.d.ts +3 -10
- package/dist/TokenVerifier.d.ts.map +1 -1
- package/dist/TokenVerifier.js +39 -46
- 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 +88 -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 +91 -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 +164 -0
- package/dist/clients/generated/sdk.gen.d.ts.map +1 -0
- package/dist/clients/generated/sdk.gen.js +415 -0
- package/dist/clients/generated/sdk.gen.js.map +1 -0
- package/dist/clients/generated/types.gen.d.ts +1234 -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 +44 -0
- package/dist/clients/user.d.ts.map +1 -0
- package/dist/clients/user.js +68 -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 +50 -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 +3 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +4 -4
- package/dist/errors.js.map +1 -1
- 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 +149 -43
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +231 -153
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +613 -738
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +1 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +169 -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 +57 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +273 -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/{TokenManager.d.ts → tokens.d.ts} +17 -22
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +188 -0
- package/dist/tokens.js.map +1 -0
- package/dist/types.d.ts +31 -5
- 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 +22 -8
- 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 -29
- package/dist/Auth.d.ts.map +0 -1
- package/dist/Auth.js +0 -47
- package/dist/Auth.js.map +0 -1
- package/dist/Authticon.d.ts +0 -207
- package/dist/Authticon.d.ts.map +0 -1
- package/dist/Authticon.js +0 -127
- 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/Challange.d.ts +0 -8
- package/dist/Challange.d.ts.map +0 -1
- package/dist/Challange.js +0 -24
- package/dist/Challange.js.map +0 -1
- package/dist/CookieStorageAdapter.test.d.ts +0 -2
- package/dist/CookieStorageAdapter.test.d.ts.map +0 -1
- package/dist/CookieStorageAdapter.test.js +0 -137
- package/dist/CookieStorageAdapter.test.js.map +0 -1
- package/dist/InMemoryCacheAdapter.test.d.ts +0 -2
- package/dist/InMemoryCacheAdapter.test.d.ts.map +0 -1
- package/dist/InMemoryCacheAdapter.test.js +0 -38
- package/dist/InMemoryCacheAdapter.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/Session.d.ts +0 -10
- package/dist/Session.d.ts.map +0 -1
- package/dist/Session.js +0 -16
- package/dist/Session.js.map +0 -1
- package/dist/TokenManager.d.ts.map +0 -1
- package/dist/TokenManager.js +0 -49
- 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 -120
- 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 -318
- 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 -139
- package/dist/TokenVerifier.test.js.map +0 -1
- package/dist/TwoFa.d.ts +0 -26
- package/dist/TwoFa.d.ts.map +0 -1
- package/dist/TwoFa.js +0 -55
- 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 -68
- package/dist/Users.d.ts.map +0 -1
- package/dist/Users.js +0 -64
- 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
- package/dist/errors.test.d.ts +0 -2
- package/dist/errors.test.d.ts.map +0 -1
- package/dist/errors.test.js +0 -99
- package/dist/errors.test.js.map +0 -1
- package/dist/user.d.ts +0 -117
- package/dist/user.d.ts.map +0 -1
- package/dist/user.js +0 -84
- package/dist/user.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 PostApiV1AuthEmailChangeData = {
|
|
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
|
*/
|
|
@@ -34,96 +23,37 @@ export type PostApiV1AuthEmailChangeErrors = {
|
|
|
34
23
|
/**
|
|
35
24
|
* Default Response
|
|
36
25
|
*/
|
|
37
|
-
|
|
38
|
-
statusCode: number;
|
|
39
|
-
error: string;
|
|
40
|
-
message: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export type PostApiV1AuthEmailChangeError = PostApiV1AuthEmailChangeErrors[keyof PostApiV1AuthEmailChangeErrors];
|
|
44
|
-
export type PostApiV1AuthEmailChangeResponses = {
|
|
45
|
-
/**
|
|
46
|
-
* Default Response
|
|
47
|
-
*/
|
|
48
|
-
201: null;
|
|
49
|
-
};
|
|
50
|
-
export type PostApiV1AuthEmailChangeResponse = PostApiV1AuthEmailChangeResponses[keyof PostApiV1AuthEmailChangeResponses];
|
|
51
|
-
export type PostApiV1AuthPasswordChangeData = {
|
|
52
|
-
body: {
|
|
53
|
-
oldPassword: string;
|
|
54
|
-
newPassword: string;
|
|
55
|
-
userId: string;
|
|
56
|
-
};
|
|
57
|
-
path?: never;
|
|
58
|
-
query?: never;
|
|
59
|
-
url: '/api/v1/auth/password/change';
|
|
60
|
-
};
|
|
61
|
-
export type PostApiV1AuthPasswordChangeErrors = {
|
|
62
|
-
/**
|
|
63
|
-
* Default Response
|
|
64
|
-
*/
|
|
65
|
-
400: {
|
|
66
|
-
statusCode: number;
|
|
67
|
-
error: string;
|
|
68
|
-
message: string;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Default Response
|
|
72
|
-
*/
|
|
73
|
-
401: {
|
|
74
|
-
statusCode: number;
|
|
75
|
-
error: string;
|
|
76
|
-
message: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export type PostApiV1AuthPasswordChangeError = PostApiV1AuthPasswordChangeErrors[keyof PostApiV1AuthPasswordChangeErrors];
|
|
80
|
-
export type PostApiV1AuthPasswordChangeResponses = {
|
|
81
|
-
/**
|
|
82
|
-
* Default Response
|
|
83
|
-
*/
|
|
84
|
-
201: null;
|
|
85
|
-
};
|
|
86
|
-
export type PostApiV1AuthPasswordChangeResponse = PostApiV1AuthPasswordChangeResponses[keyof PostApiV1AuthPasswordChangeResponses];
|
|
87
|
-
export type PostApiV1AuthGuestData = {
|
|
88
|
-
body: {
|
|
89
|
-
email: string;
|
|
90
|
-
firstName?: string;
|
|
91
|
-
lastName?: string;
|
|
92
|
-
phone?: string;
|
|
93
|
-
};
|
|
94
|
-
path?: never;
|
|
95
|
-
query?: never;
|
|
96
|
-
url: '/api/v1/auth/guest';
|
|
97
|
-
};
|
|
98
|
-
export type PostApiV1AuthGuestErrors = {
|
|
99
|
-
/**
|
|
100
|
-
* Default Response
|
|
101
|
-
*/
|
|
102
|
-
409: {
|
|
26
|
+
404: {
|
|
103
27
|
statusCode: number;
|
|
104
28
|
error: string;
|
|
105
29
|
message: string;
|
|
106
30
|
};
|
|
107
31
|
};
|
|
108
|
-
export type
|
|
109
|
-
export type
|
|
32
|
+
export type LoginAsError = LoginAsErrors[keyof LoginAsErrors];
|
|
33
|
+
export type LoginAsResponses = {
|
|
110
34
|
/**
|
|
111
35
|
* Default Response
|
|
112
36
|
*/
|
|
113
37
|
200: {
|
|
114
|
-
|
|
38
|
+
accessToken: string;
|
|
39
|
+
refreshToken: string;
|
|
40
|
+
deviceId: string;
|
|
41
|
+
sessionId: string;
|
|
115
42
|
};
|
|
116
43
|
};
|
|
117
|
-
export type
|
|
118
|
-
export type
|
|
44
|
+
export type LoginAsResponse = LoginAsResponses[keyof LoginAsResponses];
|
|
45
|
+
export type SendTestEmailData = {
|
|
119
46
|
body: {
|
|
120
47
|
email: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
template: string;
|
|
50
|
+
locale?: string;
|
|
121
51
|
};
|
|
122
52
|
path?: never;
|
|
123
53
|
query?: never;
|
|
124
|
-
url: '/api/v1/
|
|
54
|
+
url: '/api/v1/admin/tools/test-email';
|
|
125
55
|
};
|
|
126
|
-
export type
|
|
56
|
+
export type SendTestEmailResponses = {
|
|
127
57
|
/**
|
|
128
58
|
* Default Response
|
|
129
59
|
*/
|
|
@@ -131,110 +61,26 @@ export type PostApiV1AuthPasswordForgotResponses = {
|
|
|
131
61
|
success: boolean;
|
|
132
62
|
};
|
|
133
63
|
};
|
|
134
|
-
export type
|
|
135
|
-
export type
|
|
136
|
-
body?: never;
|
|
137
|
-
path?: never;
|
|
138
|
-
query?: never;
|
|
139
|
-
url: '/api/v1/auth/two-fa/recovery-codes';
|
|
140
|
-
};
|
|
141
|
-
export type GetApiV1AuthTwoFaRecoveryCodesErrors = {
|
|
142
|
-
/**
|
|
143
|
-
* Default Response
|
|
144
|
-
*/
|
|
145
|
-
401: {
|
|
146
|
-
statusCode: number;
|
|
147
|
-
error: string;
|
|
148
|
-
message: string;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
export type GetApiV1AuthTwoFaRecoveryCodesError = GetApiV1AuthTwoFaRecoveryCodesErrors[keyof GetApiV1AuthTwoFaRecoveryCodesErrors];
|
|
152
|
-
export type GetApiV1AuthTwoFaRecoveryCodesResponses = {
|
|
153
|
-
/**
|
|
154
|
-
* Default Response
|
|
155
|
-
*/
|
|
156
|
-
200: {
|
|
157
|
-
recoveryCodes: Array<string>;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
export type GetApiV1AuthTwoFaRecoveryCodesResponse = GetApiV1AuthTwoFaRecoveryCodesResponses[keyof GetApiV1AuthTwoFaRecoveryCodesResponses];
|
|
161
|
-
export type PostApiV1AuthTwoFaRecoveryCodesData = {
|
|
64
|
+
export type SendTestEmailResponse = SendTestEmailResponses[keyof SendTestEmailResponses];
|
|
65
|
+
export type VerifySmsCodeData = {
|
|
162
66
|
body: {
|
|
163
|
-
|
|
67
|
+
code: string;
|
|
68
|
+
};
|
|
69
|
+
path: {
|
|
70
|
+
userId: string;
|
|
164
71
|
};
|
|
165
|
-
path?: never;
|
|
166
72
|
query?: never;
|
|
167
|
-
url: '/api/v1/
|
|
73
|
+
url: '/api/v1/admin/tools/sms';
|
|
168
74
|
};
|
|
169
|
-
export type
|
|
75
|
+
export type VerifySmsCodeErrors = {
|
|
170
76
|
/**
|
|
171
77
|
* Default Response
|
|
172
78
|
*/
|
|
173
|
-
|
|
79
|
+
400: {
|
|
174
80
|
statusCode: number;
|
|
175
81
|
error: string;
|
|
176
82
|
message: string;
|
|
177
83
|
};
|
|
178
|
-
};
|
|
179
|
-
export type PostApiV1AuthTwoFaRecoveryCodesError = PostApiV1AuthTwoFaRecoveryCodesErrors[keyof PostApiV1AuthTwoFaRecoveryCodesErrors];
|
|
180
|
-
export type PostApiV1AuthTwoFaRecoveryCodesResponses = {
|
|
181
|
-
/**
|
|
182
|
-
* Default Response
|
|
183
|
-
*/
|
|
184
|
-
200: {
|
|
185
|
-
recoveryCodes: Array<string>;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
export type PostApiV1AuthTwoFaRecoveryCodesResponse = PostApiV1AuthTwoFaRecoveryCodesResponses[keyof PostApiV1AuthTwoFaRecoveryCodesResponses];
|
|
189
|
-
export type PostApiV1AuthEmailCheckData = {
|
|
190
|
-
body: {
|
|
191
|
-
email: string;
|
|
192
|
-
};
|
|
193
|
-
path?: never;
|
|
194
|
-
query?: never;
|
|
195
|
-
url: '/api/v1/auth/email/check';
|
|
196
|
-
};
|
|
197
|
-
export type PostApiV1AuthEmailCheckResponses = {
|
|
198
|
-
/**
|
|
199
|
-
* Default Response
|
|
200
|
-
*/
|
|
201
|
-
200: {
|
|
202
|
-
isFree: boolean;
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
export type PostApiV1AuthEmailCheckResponse = PostApiV1AuthEmailCheckResponses[keyof PostApiV1AuthEmailCheckResponses];
|
|
206
|
-
export type PostApiV1AuthPhoneCheckData = {
|
|
207
|
-
body: {
|
|
208
|
-
phone: string;
|
|
209
|
-
};
|
|
210
|
-
path?: never;
|
|
211
|
-
query?: never;
|
|
212
|
-
url: '/api/v1/auth/phone/check';
|
|
213
|
-
};
|
|
214
|
-
export type PostApiV1AuthPhoneCheckResponses = {
|
|
215
|
-
/**
|
|
216
|
-
* Default Response
|
|
217
|
-
*/
|
|
218
|
-
200: {
|
|
219
|
-
isFree: boolean;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
export type PostApiV1AuthPhoneCheckResponse = PostApiV1AuthPhoneCheckResponses[keyof PostApiV1AuthPhoneCheckResponses];
|
|
223
|
-
export type PostApiV1AuthLoginData = {
|
|
224
|
-
body: {
|
|
225
|
-
email: string;
|
|
226
|
-
password: string;
|
|
227
|
-
deviceId?: string;
|
|
228
|
-
ip?: string;
|
|
229
|
-
twoFaCode?: string;
|
|
230
|
-
userAgent: string;
|
|
231
|
-
rememberToken?: string;
|
|
232
|
-
};
|
|
233
|
-
path?: never;
|
|
234
|
-
query?: never;
|
|
235
|
-
url: '/api/v1/auth/login';
|
|
236
|
-
};
|
|
237
|
-
export type PostApiV1AuthLoginErrors = {
|
|
238
84
|
/**
|
|
239
85
|
* Default Response
|
|
240
86
|
*/
|
|
@@ -244,35 +90,31 @@ export type PostApiV1AuthLoginErrors = {
|
|
|
244
90
|
message: string;
|
|
245
91
|
};
|
|
246
92
|
};
|
|
247
|
-
export type
|
|
248
|
-
export type
|
|
93
|
+
export type VerifySmsCodeError = VerifySmsCodeErrors[keyof VerifySmsCodeErrors];
|
|
94
|
+
export type VerifySmsCodeResponses = {
|
|
249
95
|
/**
|
|
250
96
|
* Default Response
|
|
251
97
|
*/
|
|
252
98
|
200: {
|
|
253
|
-
|
|
254
|
-
refreshToken: string;
|
|
255
|
-
deviceId: string;
|
|
256
|
-
challanges: Array<'verifyTwoFa' | 'setTwoFa' | 'resetPassword' | 'setPassword'>;
|
|
257
|
-
sessionId: string;
|
|
99
|
+
verify: boolean;
|
|
258
100
|
};
|
|
259
101
|
};
|
|
260
|
-
export type
|
|
261
|
-
export type
|
|
102
|
+
export type VerifySmsCodeResponse = VerifySmsCodeResponses[keyof VerifySmsCodeResponses];
|
|
103
|
+
export type SendSmsCodeData = {
|
|
262
104
|
body: {
|
|
105
|
+
[key: string]: unknown;
|
|
106
|
+
};
|
|
107
|
+
path: {
|
|
263
108
|
userId: string;
|
|
264
|
-
deviceId: string;
|
|
265
|
-
targetUserId: string;
|
|
266
109
|
};
|
|
267
|
-
path?: never;
|
|
268
110
|
query?: never;
|
|
269
|
-
url: '/api/v1/
|
|
111
|
+
url: '/api/v1/admin/tools/sms';
|
|
270
112
|
};
|
|
271
|
-
export type
|
|
113
|
+
export type SendSmsCodeErrors = {
|
|
272
114
|
/**
|
|
273
115
|
* Default Response
|
|
274
116
|
*/
|
|
275
|
-
|
|
117
|
+
400: {
|
|
276
118
|
statusCode: number;
|
|
277
119
|
error: string;
|
|
278
120
|
message: string;
|
|
@@ -280,34 +122,14 @@ export type PostApiV1AuthLoginAsErrors = {
|
|
|
280
122
|
/**
|
|
281
123
|
* Default Response
|
|
282
124
|
*/
|
|
283
|
-
|
|
125
|
+
401: {
|
|
284
126
|
statusCode: number;
|
|
285
127
|
error: string;
|
|
286
128
|
message: string;
|
|
287
129
|
};
|
|
288
130
|
};
|
|
289
|
-
export type
|
|
290
|
-
export type
|
|
291
|
-
/**
|
|
292
|
-
* Default Response
|
|
293
|
-
*/
|
|
294
|
-
200: {
|
|
295
|
-
accessToken: string;
|
|
296
|
-
refreshToken: string;
|
|
297
|
-
deviceId: string;
|
|
298
|
-
sessionId: string;
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
|
-
export type PostApiV1AuthLoginAsResponse = PostApiV1AuthLoginAsResponses[keyof PostApiV1AuthLoginAsResponses];
|
|
302
|
-
export type PostApiV1AuthLogoutData = {
|
|
303
|
-
body: {
|
|
304
|
-
refreshToken: string;
|
|
305
|
-
};
|
|
306
|
-
path?: never;
|
|
307
|
-
query?: never;
|
|
308
|
-
url: '/api/v1/auth/logout';
|
|
309
|
-
};
|
|
310
|
-
export type PostApiV1AuthLogoutResponses = {
|
|
131
|
+
export type SendSmsCodeError = SendSmsCodeErrors[keyof SendSmsCodeErrors];
|
|
132
|
+
export type SendSmsCodeResponses = {
|
|
311
133
|
/**
|
|
312
134
|
* Default Response
|
|
313
135
|
*/
|
|
@@ -315,256 +137,205 @@ export type PostApiV1AuthLogoutResponses = {
|
|
|
315
137
|
success: boolean;
|
|
316
138
|
};
|
|
317
139
|
};
|
|
318
|
-
export type
|
|
319
|
-
export type
|
|
140
|
+
export type SendSmsCodeResponse = SendSmsCodeResponses[keyof SendSmsCodeResponses];
|
|
141
|
+
export type ListUsersData = {
|
|
320
142
|
body?: never;
|
|
321
143
|
path?: never;
|
|
322
|
-
query?:
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Default Response
|
|
339
|
-
*/
|
|
340
|
-
200: {
|
|
341
|
-
userId: string;
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
export type GetApiV1AuthMeResponse = GetApiV1AuthMeResponses[keyof GetApiV1AuthMeResponses];
|
|
345
|
-
export type PostApiV1AuthTokenRefreshData = {
|
|
346
|
-
body: {
|
|
347
|
-
refreshToken: string;
|
|
348
|
-
};
|
|
349
|
-
path?: never;
|
|
350
|
-
query?: never;
|
|
351
|
-
url: '/api/v1/auth/token/refresh';
|
|
352
|
-
};
|
|
353
|
-
export type PostApiV1AuthTokenRefreshErrors = {
|
|
354
|
-
/**
|
|
355
|
-
* Default Response
|
|
356
|
-
*/
|
|
357
|
-
401: {
|
|
358
|
-
statusCode: number;
|
|
359
|
-
error: string;
|
|
360
|
-
message: string;
|
|
144
|
+
query?: {
|
|
145
|
+
limit?: number;
|
|
146
|
+
offset?: number;
|
|
147
|
+
search?: string;
|
|
148
|
+
firstName?: string;
|
|
149
|
+
lastName?: string;
|
|
150
|
+
email?: string;
|
|
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';
|
|
361
159
|
};
|
|
160
|
+
url: '/api/v1/admin/users/';
|
|
362
161
|
};
|
|
363
|
-
export type
|
|
364
|
-
export type PostApiV1AuthTokenRefreshResponses = {
|
|
162
|
+
export type ListUsersResponses = {
|
|
365
163
|
/**
|
|
366
164
|
* Default Response
|
|
367
165
|
*/
|
|
368
166
|
200: {
|
|
369
|
-
|
|
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;
|
|
370
190
|
};
|
|
371
191
|
};
|
|
372
|
-
export type
|
|
373
|
-
export type
|
|
192
|
+
export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
|
|
193
|
+
export type CreateUserData = {
|
|
374
194
|
body: {
|
|
375
195
|
email: string;
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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
|
+
};
|
|
379
206
|
marketingConsent?: boolean;
|
|
207
|
+
isGuest?: boolean;
|
|
208
|
+
emailVerified?: boolean;
|
|
380
209
|
};
|
|
381
210
|
path?: never;
|
|
382
211
|
query?: never;
|
|
383
|
-
url: '/api/v1/
|
|
212
|
+
url: '/api/v1/admin/users/';
|
|
384
213
|
};
|
|
385
|
-
export type
|
|
214
|
+
export type CreateUserErrors = {
|
|
386
215
|
/**
|
|
387
216
|
* Default Response
|
|
388
217
|
*/
|
|
389
|
-
|
|
218
|
+
400: {
|
|
390
219
|
statusCode: number;
|
|
391
220
|
error: string;
|
|
392
221
|
message: string;
|
|
393
222
|
};
|
|
394
|
-
};
|
|
395
|
-
export type PostApiV1AuthRegisterError = PostApiV1AuthRegisterErrors[keyof PostApiV1AuthRegisterErrors];
|
|
396
|
-
export type PostApiV1AuthRegisterResponses = {
|
|
397
|
-
/**
|
|
398
|
-
* Default Response
|
|
399
|
-
*/
|
|
400
|
-
200: {
|
|
401
|
-
userId: string;
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
export type PostApiV1AuthRegisterResponse = PostApiV1AuthRegisterResponses[keyof PostApiV1AuthRegisterResponses];
|
|
405
|
-
export type PostApiV1AuthEmailResendConfirmationData = {
|
|
406
|
-
body: {
|
|
407
|
-
email: string;
|
|
408
|
-
};
|
|
409
|
-
path?: never;
|
|
410
|
-
query?: never;
|
|
411
|
-
url: '/api/v1/auth/email/resend-confirmation';
|
|
412
|
-
};
|
|
413
|
-
export type PostApiV1AuthEmailResendConfirmationErrors = {
|
|
414
223
|
/**
|
|
415
224
|
* Default Response
|
|
416
225
|
*/
|
|
417
|
-
|
|
226
|
+
409: {
|
|
418
227
|
statusCode: number;
|
|
419
228
|
error: string;
|
|
420
229
|
message: string;
|
|
421
230
|
};
|
|
422
231
|
};
|
|
423
|
-
export type
|
|
424
|
-
export type
|
|
232
|
+
export type CreateUserError = CreateUserErrors[keyof CreateUserErrors];
|
|
233
|
+
export type CreateUserResponses = {
|
|
425
234
|
/**
|
|
426
235
|
* Default Response
|
|
427
236
|
*/
|
|
428
|
-
|
|
429
|
-
|
|
237
|
+
201: {
|
|
238
|
+
id: string;
|
|
239
|
+
email: string;
|
|
240
|
+
isGuest: boolean;
|
|
430
241
|
};
|
|
431
242
|
};
|
|
432
|
-
export type
|
|
433
|
-
export type
|
|
434
|
-
body
|
|
435
|
-
|
|
243
|
+
export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
|
|
244
|
+
export type DeleteUserData = {
|
|
245
|
+
body?: never;
|
|
246
|
+
path: {
|
|
247
|
+
userId: string;
|
|
436
248
|
};
|
|
437
|
-
path?: never;
|
|
438
249
|
query?: never;
|
|
439
|
-
url: '/api/v1/
|
|
250
|
+
url: '/api/v1/admin/users/{userId}/';
|
|
440
251
|
};
|
|
441
|
-
export type
|
|
252
|
+
export type DeleteUserErrors = {
|
|
442
253
|
/**
|
|
443
254
|
* Default Response
|
|
444
255
|
*/
|
|
445
|
-
|
|
446
|
-
statusCode: number;
|
|
447
|
-
error: string;
|
|
448
|
-
message: string;
|
|
449
|
-
};
|
|
450
|
-
/**
|
|
451
|
-
* Default Response
|
|
452
|
-
*/
|
|
453
|
-
401: {
|
|
256
|
+
404: {
|
|
454
257
|
statusCode: number;
|
|
455
258
|
error: string;
|
|
456
259
|
message: string;
|
|
457
260
|
};
|
|
458
261
|
};
|
|
459
|
-
export type
|
|
460
|
-
export type
|
|
262
|
+
export type DeleteUserError = DeleteUserErrors[keyof DeleteUserErrors];
|
|
263
|
+
export type DeleteUserResponses = {
|
|
461
264
|
/**
|
|
462
265
|
* Default Response
|
|
463
266
|
*/
|
|
464
267
|
200: {
|
|
465
|
-
|
|
268
|
+
id: string;
|
|
466
269
|
};
|
|
467
270
|
};
|
|
468
|
-
export type
|
|
469
|
-
export type
|
|
470
|
-
body
|
|
471
|
-
|
|
472
|
-
|
|
271
|
+
export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
|
|
272
|
+
export type GetUserData = {
|
|
273
|
+
body?: never;
|
|
274
|
+
path: {
|
|
275
|
+
userId: string;
|
|
473
276
|
};
|
|
474
|
-
path?: never;
|
|
475
277
|
query?: never;
|
|
476
|
-
url: '/api/v1/
|
|
278
|
+
url: '/api/v1/admin/users/{userId}';
|
|
477
279
|
};
|
|
478
|
-
export type
|
|
479
|
-
/**
|
|
480
|
-
* Default Response
|
|
481
|
-
*/
|
|
482
|
-
400: {
|
|
483
|
-
statusCode: number;
|
|
484
|
-
error: string;
|
|
485
|
-
message: string;
|
|
486
|
-
};
|
|
280
|
+
export type GetUserErrors = {
|
|
487
281
|
/**
|
|
488
282
|
* Default Response
|
|
489
283
|
*/
|
|
490
|
-
|
|
284
|
+
404: {
|
|
491
285
|
statusCode: number;
|
|
492
286
|
error: string;
|
|
493
287
|
message: string;
|
|
494
288
|
};
|
|
495
289
|
};
|
|
496
|
-
export type
|
|
497
|
-
export type
|
|
498
|
-
/**
|
|
499
|
-
* Default Response
|
|
500
|
-
*/
|
|
501
|
-
201: null;
|
|
502
|
-
};
|
|
503
|
-
export type PostApiV1AuthPasswordSetResponse = PostApiV1AuthPasswordSetResponses[keyof PostApiV1AuthPasswordSetResponses];
|
|
504
|
-
export type PostApiV1AuthEmailVerifyData = {
|
|
505
|
-
body: {
|
|
506
|
-
token: string;
|
|
507
|
-
};
|
|
508
|
-
path?: never;
|
|
509
|
-
query?: never;
|
|
510
|
-
url: '/api/v1/auth/email/verify';
|
|
511
|
-
};
|
|
512
|
-
export type PostApiV1AuthEmailVerifyResponses = {
|
|
290
|
+
export type GetUserError = GetUserErrors[keyof GetUserErrors];
|
|
291
|
+
export type GetUserResponses = {
|
|
513
292
|
/**
|
|
514
293
|
* Default Response
|
|
515
294
|
*/
|
|
516
295
|
200: {
|
|
517
|
-
|
|
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;
|
|
518
315
|
};
|
|
519
316
|
};
|
|
520
|
-
export type
|
|
521
|
-
export type
|
|
317
|
+
export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
|
|
318
|
+
export type UpdateUserData = {
|
|
522
319
|
body: {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
400: {
|
|
535
|
-
statusCode: number;
|
|
536
|
-
error: string;
|
|
537
|
-
message: string;
|
|
538
|
-
};
|
|
539
|
-
/**
|
|
540
|
-
* Default Response
|
|
541
|
-
*/
|
|
542
|
-
401: {
|
|
543
|
-
statusCode: number;
|
|
544
|
-
error: string;
|
|
545
|
-
message: string;
|
|
546
|
-
};
|
|
547
|
-
};
|
|
548
|
-
export type PostApiV1AuthTwoFaRecoveryError = PostApiV1AuthTwoFaRecoveryErrors[keyof PostApiV1AuthTwoFaRecoveryErrors];
|
|
549
|
-
export type PostApiV1AuthTwoFaRecoveryResponses = {
|
|
550
|
-
/**
|
|
551
|
-
* Default Response
|
|
552
|
-
*/
|
|
553
|
-
200: {
|
|
554
|
-
accessToken: string;
|
|
555
|
-
refreshToken: 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;
|
|
556
331
|
};
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
export type PostApiV1AuthMagicLinkVerifyData = {
|
|
560
|
-
body: {
|
|
561
|
-
token: string;
|
|
332
|
+
path: {
|
|
333
|
+
userId: string;
|
|
562
334
|
};
|
|
563
|
-
path?: never;
|
|
564
335
|
query?: never;
|
|
565
|
-
url: '/api/v1/
|
|
336
|
+
url: '/api/v1/admin/users/{userId}';
|
|
566
337
|
};
|
|
567
|
-
export type
|
|
338
|
+
export type UpdateUserErrors = {
|
|
568
339
|
/**
|
|
569
340
|
* Default Response
|
|
570
341
|
*/
|
|
@@ -576,107 +347,103 @@ export type PostApiV1AuthMagicLinkVerifyErrors = {
|
|
|
576
347
|
/**
|
|
577
348
|
* Default Response
|
|
578
349
|
*/
|
|
579
|
-
|
|
350
|
+
404: {
|
|
580
351
|
statusCode: number;
|
|
581
352
|
error: string;
|
|
582
353
|
message: string;
|
|
583
354
|
};
|
|
584
355
|
};
|
|
585
|
-
export type
|
|
586
|
-
export type
|
|
356
|
+
export type UpdateUserError = UpdateUserErrors[keyof UpdateUserErrors];
|
|
357
|
+
export type UpdateUserResponses = {
|
|
587
358
|
/**
|
|
588
359
|
* Default Response
|
|
589
360
|
*/
|
|
590
361
|
200: {
|
|
591
|
-
|
|
592
|
-
refreshToken: string;
|
|
593
|
-
} | {
|
|
594
|
-
twoFaType: 'email' | 'sms' | 'app';
|
|
595
|
-
twoFaToken: string;
|
|
362
|
+
id: string;
|
|
596
363
|
};
|
|
597
364
|
};
|
|
598
|
-
export type
|
|
599
|
-
export type
|
|
365
|
+
export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
|
|
366
|
+
export type CreateUserRoleData = {
|
|
600
367
|
body: {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
368
|
+
role: string;
|
|
369
|
+
group: string;
|
|
370
|
+
};
|
|
371
|
+
path: {
|
|
372
|
+
userId: string;
|
|
604
373
|
};
|
|
605
|
-
path?: never;
|
|
606
374
|
query?: never;
|
|
607
|
-
url: '/api/v1/
|
|
375
|
+
url: '/api/v1/admin/users/{userId}/roles';
|
|
608
376
|
};
|
|
609
|
-
export type
|
|
377
|
+
export type CreateUserRoleErrors = {
|
|
610
378
|
/**
|
|
611
379
|
* Default Response
|
|
612
380
|
*/
|
|
613
|
-
|
|
381
|
+
404: {
|
|
382
|
+
statusCode: number;
|
|
383
|
+
error: string;
|
|
384
|
+
message: string;
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* Default Response
|
|
388
|
+
*/
|
|
389
|
+
409: {
|
|
614
390
|
statusCode: number;
|
|
615
391
|
error: string;
|
|
616
392
|
message: string;
|
|
617
393
|
};
|
|
618
394
|
};
|
|
619
|
-
export type
|
|
620
|
-
export type
|
|
395
|
+
export type CreateUserRoleError = CreateUserRoleErrors[keyof CreateUserRoleErrors];
|
|
396
|
+
export type CreateUserRoleResponses = {
|
|
621
397
|
/**
|
|
622
398
|
* Default Response
|
|
623
399
|
*/
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
400
|
+
201: {
|
|
401
|
+
id: string;
|
|
402
|
+
userId: string;
|
|
403
|
+
role: string;
|
|
404
|
+
group: string;
|
|
405
|
+
createdAt: string;
|
|
627
406
|
};
|
|
628
407
|
};
|
|
629
|
-
export type
|
|
630
|
-
export type
|
|
631
|
-
body
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
};
|
|
636
|
-
role?: string;
|
|
637
|
-
group?: string;
|
|
638
|
-
returnUrl?: string;
|
|
639
|
-
invitedById?: string;
|
|
408
|
+
export type CreateUserRoleResponse = CreateUserRoleResponses[keyof CreateUserRoleResponses];
|
|
409
|
+
export type DeleteUserRoleData = {
|
|
410
|
+
body?: never;
|
|
411
|
+
path: {
|
|
412
|
+
userId: string;
|
|
413
|
+
roleId: string;
|
|
640
414
|
};
|
|
641
|
-
path?: never;
|
|
642
415
|
query?: never;
|
|
643
|
-
url: '/api/v1/
|
|
416
|
+
url: '/api/v1/admin/users/{userId}/roles/roles/{roleId}';
|
|
644
417
|
};
|
|
645
|
-
export type
|
|
418
|
+
export type DeleteUserRoleErrors = {
|
|
646
419
|
/**
|
|
647
420
|
* Default Response
|
|
648
421
|
*/
|
|
649
|
-
|
|
422
|
+
404: {
|
|
650
423
|
statusCode: number;
|
|
651
424
|
error: string;
|
|
652
425
|
message: string;
|
|
653
426
|
};
|
|
654
427
|
};
|
|
655
|
-
export type
|
|
656
|
-
export type
|
|
428
|
+
export type DeleteUserRoleError = DeleteUserRoleErrors[keyof DeleteUserRoleErrors];
|
|
429
|
+
export type DeleteUserRoleResponses = {
|
|
657
430
|
/**
|
|
658
431
|
* Default Response
|
|
659
432
|
*/
|
|
660
433
|
200: {
|
|
661
434
|
id: string;
|
|
662
|
-
email: string;
|
|
663
|
-
token: string;
|
|
664
|
-
validTo: string;
|
|
665
|
-
role: string | null;
|
|
666
|
-
group: string | null;
|
|
667
|
-
returnUrl: string | null;
|
|
668
435
|
};
|
|
669
436
|
};
|
|
670
|
-
export type
|
|
671
|
-
export type
|
|
437
|
+
export type DeleteUserRoleResponse = DeleteUserRoleResponses[keyof DeleteUserRoleResponses];
|
|
438
|
+
export type ListUserRolesData = {
|
|
672
439
|
body?: never;
|
|
673
440
|
path: {
|
|
674
|
-
|
|
441
|
+
userId: string;
|
|
675
442
|
};
|
|
676
443
|
query?: never;
|
|
677
|
-
url: '/api/v1/
|
|
444
|
+
url: '/api/v1/admin/users/{userId}/roles/roles';
|
|
678
445
|
};
|
|
679
|
-
export type
|
|
446
|
+
export type ListUserRolesErrors = {
|
|
680
447
|
/**
|
|
681
448
|
* Default Response
|
|
682
449
|
*/
|
|
@@ -686,27 +453,32 @@ export type DeleteApiV1InvitationsInvitationByIdErrors = {
|
|
|
686
453
|
message: string;
|
|
687
454
|
};
|
|
688
455
|
};
|
|
689
|
-
export type
|
|
690
|
-
export type
|
|
456
|
+
export type ListUserRolesError = ListUserRolesErrors[keyof ListUserRolesErrors];
|
|
457
|
+
export type ListUserRolesResponses = {
|
|
691
458
|
/**
|
|
692
459
|
* Default Response
|
|
693
460
|
*/
|
|
694
|
-
200: {
|
|
461
|
+
200: Array<{
|
|
695
462
|
id: string;
|
|
696
|
-
|
|
463
|
+
role: string;
|
|
464
|
+
group: string;
|
|
465
|
+
createdAt: string;
|
|
466
|
+
}>;
|
|
697
467
|
};
|
|
698
|
-
export type
|
|
699
|
-
export type
|
|
468
|
+
export type ListUserRolesResponse = ListUserRolesResponses[keyof ListUserRolesResponses];
|
|
469
|
+
export type UpdateUserRoleData = {
|
|
700
470
|
body: {
|
|
701
|
-
|
|
471
|
+
role?: string;
|
|
472
|
+
group?: string;
|
|
702
473
|
};
|
|
703
474
|
path: {
|
|
704
|
-
|
|
475
|
+
userId: string;
|
|
476
|
+
roleId: string;
|
|
705
477
|
};
|
|
706
478
|
query?: never;
|
|
707
|
-
url: '/api/v1/
|
|
479
|
+
url: '/api/v1/admin/users/{userId}/roles/{roleId}';
|
|
708
480
|
};
|
|
709
|
-
export type
|
|
481
|
+
export type UpdateUserRoleErrors = {
|
|
710
482
|
/**
|
|
711
483
|
* Default Response
|
|
712
484
|
*/
|
|
@@ -718,62 +490,112 @@ export type PostApiV1SessionsBySessionIdChallangesTwoFaErrors = {
|
|
|
718
490
|
/**
|
|
719
491
|
* Default Response
|
|
720
492
|
*/
|
|
721
|
-
|
|
493
|
+
404: {
|
|
722
494
|
statusCode: number;
|
|
723
495
|
error: string;
|
|
724
496
|
message: string;
|
|
725
497
|
};
|
|
726
498
|
};
|
|
727
|
-
export type
|
|
728
|
-
export type
|
|
499
|
+
export type UpdateUserRoleError = UpdateUserRoleErrors[keyof UpdateUserRoleErrors];
|
|
500
|
+
export type UpdateUserRoleResponses = {
|
|
729
501
|
/**
|
|
730
502
|
* Default Response
|
|
731
503
|
*/
|
|
732
504
|
200: {
|
|
733
|
-
|
|
734
|
-
|
|
505
|
+
id: string;
|
|
506
|
+
userId: string;
|
|
507
|
+
role: string;
|
|
508
|
+
group: string;
|
|
509
|
+
createdAt: string;
|
|
735
510
|
};
|
|
736
511
|
};
|
|
737
|
-
export type
|
|
738
|
-
export type
|
|
512
|
+
export type UpdateUserRoleResponse = UpdateUserRoleResponses[keyof UpdateUserRoleResponses];
|
|
513
|
+
export type LogoutData = {
|
|
739
514
|
body: {
|
|
740
|
-
|
|
741
|
-
projectId: string;
|
|
742
|
-
template: string;
|
|
743
|
-
locale?: string;
|
|
515
|
+
[key: string]: unknown;
|
|
744
516
|
};
|
|
745
517
|
path?: never;
|
|
746
518
|
query?: never;
|
|
747
|
-
url: '/api/v1/
|
|
519
|
+
url: '/api/v1/me/logout';
|
|
520
|
+
};
|
|
521
|
+
export type LogoutResponses = {
|
|
522
|
+
/**
|
|
523
|
+
* Default Response
|
|
524
|
+
*/
|
|
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';
|
|
748
533
|
};
|
|
749
|
-
export type
|
|
534
|
+
export type MeResponses = {
|
|
750
535
|
/**
|
|
751
536
|
* Default Response
|
|
752
537
|
*/
|
|
753
538
|
200: {
|
|
754
|
-
|
|
539
|
+
id: string;
|
|
540
|
+
email: string;
|
|
541
|
+
firstName: string | null;
|
|
542
|
+
lastName: string | null;
|
|
543
|
+
username: string;
|
|
544
|
+
role: string;
|
|
545
|
+
emailVerified: boolean;
|
|
546
|
+
phone: string | null;
|
|
547
|
+
phoneVerified: boolean;
|
|
548
|
+
isBlocked: boolean;
|
|
549
|
+
isBlockedUntil: string | null;
|
|
550
|
+
isGuest: boolean;
|
|
551
|
+
locale: string;
|
|
552
|
+
claims: unknown;
|
|
553
|
+
marketingConsent: boolean;
|
|
554
|
+
twoFaEnabled: boolean;
|
|
555
|
+
twoFaType: string | null;
|
|
556
|
+
createdAt: string;
|
|
557
|
+
updatedAt: string;
|
|
755
558
|
};
|
|
756
559
|
};
|
|
757
|
-
export type
|
|
758
|
-
export type
|
|
560
|
+
export type MeResponse = MeResponses[keyof MeResponses];
|
|
561
|
+
export type RefreshData = {
|
|
759
562
|
body: {
|
|
760
|
-
|
|
761
|
-
};
|
|
762
|
-
path: {
|
|
763
|
-
userId: string;
|
|
563
|
+
refreshToken: string;
|
|
764
564
|
};
|
|
565
|
+
path?: never;
|
|
765
566
|
query?: never;
|
|
766
|
-
url: '/api/v1/
|
|
567
|
+
url: '/api/v1/me/token/refresh';
|
|
767
568
|
};
|
|
768
|
-
export type
|
|
569
|
+
export type RefreshErrors = {
|
|
769
570
|
/**
|
|
770
571
|
* Default Response
|
|
771
572
|
*/
|
|
772
|
-
|
|
573
|
+
401: {
|
|
773
574
|
statusCode: number;
|
|
774
575
|
error: string;
|
|
775
576
|
message: string;
|
|
776
577
|
};
|
|
578
|
+
};
|
|
579
|
+
export type RefreshError = RefreshErrors[keyof RefreshErrors];
|
|
580
|
+
export type RefreshResponses = {
|
|
581
|
+
/**
|
|
582
|
+
* Default Response
|
|
583
|
+
*/
|
|
584
|
+
200: {
|
|
585
|
+
accessToken: string;
|
|
586
|
+
refreshToken: string;
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
export type RefreshResponse = RefreshResponses[keyof RefreshResponses];
|
|
590
|
+
export type DisableTwoFaData = {
|
|
591
|
+
body: {
|
|
592
|
+
code: string;
|
|
593
|
+
};
|
|
594
|
+
path?: never;
|
|
595
|
+
query?: never;
|
|
596
|
+
url: '/api/v1/me/2fa';
|
|
597
|
+
};
|
|
598
|
+
export type DisableTwoFaErrors = {
|
|
777
599
|
/**
|
|
778
600
|
* Default Response
|
|
779
601
|
*/
|
|
@@ -783,27 +605,24 @@ export type PatchApiV1ToolsSmsErrors = {
|
|
|
783
605
|
message: string;
|
|
784
606
|
};
|
|
785
607
|
};
|
|
786
|
-
export type
|
|
787
|
-
export type
|
|
608
|
+
export type DisableTwoFaError = DisableTwoFaErrors[keyof DisableTwoFaErrors];
|
|
609
|
+
export type DisableTwoFaResponses = {
|
|
788
610
|
/**
|
|
789
611
|
* Default Response
|
|
790
612
|
*/
|
|
791
|
-
|
|
792
|
-
verify: boolean;
|
|
793
|
-
};
|
|
613
|
+
201: null;
|
|
794
614
|
};
|
|
795
|
-
export type
|
|
796
|
-
export type
|
|
615
|
+
export type DisableTwoFaResponse = DisableTwoFaResponses[keyof DisableTwoFaResponses];
|
|
616
|
+
export type EnableTwoFaData = {
|
|
797
617
|
body: {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
path: {
|
|
801
|
-
userId: string;
|
|
618
|
+
code?: string;
|
|
619
|
+
type?: 'APP' | 'EMAIL' | 'PHONE';
|
|
802
620
|
};
|
|
621
|
+
path?: never;
|
|
803
622
|
query?: never;
|
|
804
|
-
url: '/api/v1/
|
|
623
|
+
url: '/api/v1/me/2fa';
|
|
805
624
|
};
|
|
806
|
-
export type
|
|
625
|
+
export type EnableTwoFaErrors = {
|
|
807
626
|
/**
|
|
808
627
|
* Default Response
|
|
809
628
|
*/
|
|
@@ -821,8 +640,8 @@ export type PostApiV1ToolsSmsErrors = {
|
|
|
821
640
|
message: string;
|
|
822
641
|
};
|
|
823
642
|
};
|
|
824
|
-
export type
|
|
825
|
-
export type
|
|
643
|
+
export type EnableTwoFaError = EnableTwoFaErrors[keyof EnableTwoFaErrors];
|
|
644
|
+
export type EnableTwoFaResponses = {
|
|
826
645
|
/**
|
|
827
646
|
* Default Response
|
|
828
647
|
*/
|
|
@@ -830,135 +649,99 @@ export type PostApiV1ToolsSmsResponses = {
|
|
|
830
649
|
success: boolean;
|
|
831
650
|
};
|
|
832
651
|
};
|
|
833
|
-
export type
|
|
834
|
-
export type
|
|
652
|
+
export type EnableTwoFaResponse = EnableTwoFaResponses[keyof EnableTwoFaResponses];
|
|
653
|
+
export type GetTwoFaSecretData = {
|
|
835
654
|
body?: never;
|
|
836
655
|
path?: never;
|
|
837
|
-
query?:
|
|
838
|
-
|
|
839
|
-
offset?: number;
|
|
840
|
-
search?: string;
|
|
841
|
-
firstName?: string;
|
|
842
|
-
lastName?: string;
|
|
843
|
-
email?: string;
|
|
844
|
-
phone?: string;
|
|
845
|
-
role?: string;
|
|
846
|
-
emailVerified?: boolean;
|
|
847
|
-
phoneVerified?: boolean;
|
|
848
|
-
isBlocked?: boolean;
|
|
849
|
-
isGuest?: boolean;
|
|
850
|
-
twoFaEnabled?: boolean;
|
|
851
|
-
twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
|
|
852
|
-
};
|
|
853
|
-
url: '/api/v1/users/';
|
|
656
|
+
query?: never;
|
|
657
|
+
url: '/api/v1/me/2fa/secret';
|
|
854
658
|
};
|
|
855
|
-
export type
|
|
659
|
+
export type GetTwoFaSecretResponses = {
|
|
856
660
|
/**
|
|
857
661
|
* Default Response
|
|
858
662
|
*/
|
|
859
663
|
200: {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
email: string;
|
|
863
|
-
firstName: string | null;
|
|
864
|
-
lastName: string | null;
|
|
865
|
-
username: string;
|
|
866
|
-
role: string;
|
|
867
|
-
emailVerified: boolean;
|
|
868
|
-
phone: string | null;
|
|
869
|
-
phoneVerified: boolean;
|
|
870
|
-
isBlocked: boolean;
|
|
871
|
-
isGuest: boolean;
|
|
872
|
-
locale: string;
|
|
873
|
-
createdAt: string;
|
|
874
|
-
twoFaEnabled: boolean;
|
|
875
|
-
twoFaType: 'APP' | 'EMAIL' | 'PHONE';
|
|
876
|
-
roles: Array<{
|
|
877
|
-
role: string;
|
|
878
|
-
group: string;
|
|
879
|
-
createdAt: string;
|
|
880
|
-
}>;
|
|
881
|
-
}>;
|
|
882
|
-
total: number;
|
|
664
|
+
secret: string;
|
|
665
|
+
uri: string;
|
|
883
666
|
};
|
|
884
667
|
};
|
|
885
|
-
export type
|
|
886
|
-
export type
|
|
668
|
+
export type GetTwoFaSecretResponse = GetTwoFaSecretResponses[keyof GetTwoFaSecretResponses];
|
|
669
|
+
export type SendTwoFaCodeData = {
|
|
887
670
|
body: {
|
|
888
|
-
|
|
889
|
-
username: string;
|
|
890
|
-
password?: string;
|
|
891
|
-
firstName?: string | null;
|
|
892
|
-
lastName?: string | null;
|
|
893
|
-
phone?: string | null;
|
|
894
|
-
locale?: string;
|
|
895
|
-
role?: string;
|
|
896
|
-
claims?: {
|
|
897
|
-
[key: string]: unknown;
|
|
898
|
-
};
|
|
899
|
-
marketingConsent?: boolean;
|
|
900
|
-
isGuest?: boolean;
|
|
901
|
-
emailVerified?: boolean;
|
|
671
|
+
[key: string]: unknown;
|
|
902
672
|
};
|
|
903
673
|
path?: never;
|
|
904
674
|
query?: never;
|
|
905
|
-
url: '/api/v1/
|
|
675
|
+
url: '/api/v1/me/2fa/send-code';
|
|
906
676
|
};
|
|
907
|
-
export type
|
|
677
|
+
export type SendTwoFaCodeErrors = {
|
|
908
678
|
/**
|
|
909
679
|
* Default Response
|
|
910
680
|
*/
|
|
911
|
-
|
|
681
|
+
404: {
|
|
912
682
|
statusCode: number;
|
|
913
683
|
error: string;
|
|
914
684
|
message: string;
|
|
915
685
|
};
|
|
686
|
+
};
|
|
687
|
+
export type SendTwoFaCodeError = SendTwoFaCodeErrors[keyof SendTwoFaCodeErrors];
|
|
688
|
+
export type SendTwoFaCodeResponses = {
|
|
916
689
|
/**
|
|
917
690
|
* Default Response
|
|
918
691
|
*/
|
|
919
|
-
|
|
692
|
+
201: null;
|
|
693
|
+
};
|
|
694
|
+
export type SendTwoFaCodeResponse = SendTwoFaCodeResponses[keyof SendTwoFaCodeResponses];
|
|
695
|
+
export type VerifyTwoFaData = {
|
|
696
|
+
body: {
|
|
697
|
+
code: string;
|
|
698
|
+
remember?: boolean;
|
|
699
|
+
};
|
|
700
|
+
path?: never;
|
|
701
|
+
query?: never;
|
|
702
|
+
url: '/api/v1/me/2fa/verify';
|
|
703
|
+
};
|
|
704
|
+
export type VerifyTwoFaErrors = {
|
|
705
|
+
/**
|
|
706
|
+
* Default Response
|
|
707
|
+
*/
|
|
708
|
+
400: {
|
|
920
709
|
statusCode: number;
|
|
921
710
|
error: string;
|
|
922
711
|
message: string;
|
|
923
712
|
};
|
|
924
|
-
};
|
|
925
|
-
export type PostApiV1UsersError = PostApiV1UsersErrors[keyof PostApiV1UsersErrors];
|
|
926
|
-
export type PostApiV1UsersResponses = {
|
|
927
713
|
/**
|
|
928
714
|
* Default Response
|
|
929
715
|
*/
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
716
|
+
401: {
|
|
717
|
+
statusCode: number;
|
|
718
|
+
error: string;
|
|
719
|
+
message: string;
|
|
934
720
|
};
|
|
935
721
|
};
|
|
936
|
-
export type
|
|
937
|
-
export type
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
isBlocked?: boolean;
|
|
944
|
-
isBlockedUntil?: string | null;
|
|
945
|
-
twoFaEnabled?: boolean;
|
|
946
|
-
twoFaType?: 'APP' | 'EMAIL' | 'PHONE';
|
|
947
|
-
loginAttempts?: number;
|
|
948
|
-
phone?: string;
|
|
949
|
-
email?: string;
|
|
722
|
+
export type VerifyTwoFaError = VerifyTwoFaErrors[keyof VerifyTwoFaErrors];
|
|
723
|
+
export type VerifyTwoFaResponses = {
|
|
724
|
+
/**
|
|
725
|
+
* Default Response
|
|
726
|
+
*/
|
|
727
|
+
200: {
|
|
728
|
+
[key: string]: never;
|
|
950
729
|
};
|
|
951
|
-
|
|
952
|
-
|
|
730
|
+
};
|
|
731
|
+
export type VerifyTwoFaResponse = VerifyTwoFaResponses[keyof VerifyTwoFaResponses];
|
|
732
|
+
export type ChangeEmailData = {
|
|
733
|
+
body: {
|
|
734
|
+
newEmail: string;
|
|
953
735
|
};
|
|
736
|
+
path?: never;
|
|
954
737
|
query?: never;
|
|
955
|
-
url: '/api/v1/
|
|
738
|
+
url: '/api/v1/me/email';
|
|
956
739
|
};
|
|
957
|
-
export type
|
|
740
|
+
export type ChangeEmailErrors = {
|
|
958
741
|
/**
|
|
959
742
|
* Default Response
|
|
960
743
|
*/
|
|
961
|
-
|
|
744
|
+
401: {
|
|
962
745
|
statusCode: number;
|
|
963
746
|
error: string;
|
|
964
747
|
message: string;
|
|
@@ -966,31 +749,29 @@ export type PatchApiV1UsersByIdErrors = {
|
|
|
966
749
|
/**
|
|
967
750
|
* Default Response
|
|
968
751
|
*/
|
|
969
|
-
|
|
752
|
+
409: {
|
|
970
753
|
statusCode: number;
|
|
971
754
|
error: string;
|
|
972
755
|
message: string;
|
|
973
756
|
};
|
|
974
757
|
};
|
|
975
|
-
export type
|
|
976
|
-
export type
|
|
758
|
+
export type ChangeEmailError = ChangeEmailErrors[keyof ChangeEmailErrors];
|
|
759
|
+
export type ChangeEmailResponses = {
|
|
977
760
|
/**
|
|
978
761
|
* Default Response
|
|
979
762
|
*/
|
|
980
|
-
|
|
981
|
-
id: string;
|
|
982
|
-
};
|
|
763
|
+
201: null;
|
|
983
764
|
};
|
|
984
|
-
export type
|
|
985
|
-
export type
|
|
765
|
+
export type ChangeEmailResponse = ChangeEmailResponses[keyof ChangeEmailResponses];
|
|
766
|
+
export type DeleteInvitationData = {
|
|
986
767
|
body?: never;
|
|
987
768
|
path: {
|
|
988
769
|
id: string;
|
|
989
770
|
};
|
|
990
771
|
query?: never;
|
|
991
|
-
url: '/api/v1/
|
|
772
|
+
url: '/api/v1/me/invitations';
|
|
992
773
|
};
|
|
993
|
-
export type
|
|
774
|
+
export type DeleteInvitationErrors = {
|
|
994
775
|
/**
|
|
995
776
|
* Default Response
|
|
996
777
|
*/
|
|
@@ -1000,8 +781,8 @@ export type DeleteApiV1UsersByUserIdErrors = {
|
|
|
1000
781
|
message: string;
|
|
1001
782
|
};
|
|
1002
783
|
};
|
|
1003
|
-
export type
|
|
1004
|
-
export type
|
|
784
|
+
export type DeleteInvitationError = DeleteInvitationErrors[keyof DeleteInvitationErrors];
|
|
785
|
+
export type DeleteInvitationResponses = {
|
|
1005
786
|
/**
|
|
1006
787
|
* Default Response
|
|
1007
788
|
*/
|
|
@@ -1009,65 +790,67 @@ export type DeleteApiV1UsersByUserIdResponses = {
|
|
|
1009
790
|
id: string;
|
|
1010
791
|
};
|
|
1011
792
|
};
|
|
1012
|
-
export type
|
|
1013
|
-
export type
|
|
1014
|
-
body
|
|
1015
|
-
|
|
1016
|
-
|
|
793
|
+
export type DeleteInvitationResponse = DeleteInvitationResponses[keyof DeleteInvitationResponses];
|
|
794
|
+
export type CreateInvitationData = {
|
|
795
|
+
body: {
|
|
796
|
+
email: string;
|
|
797
|
+
userData?: {
|
|
798
|
+
[key: string]: unknown;
|
|
799
|
+
};
|
|
800
|
+
role?: string;
|
|
801
|
+
group?: string;
|
|
802
|
+
returnUrl?: string;
|
|
803
|
+
invitedById?: string;
|
|
1017
804
|
};
|
|
805
|
+
path?: never;
|
|
1018
806
|
query?: never;
|
|
1019
|
-
url: '/api/v1/
|
|
807
|
+
url: '/api/v1/me/invitations';
|
|
1020
808
|
};
|
|
1021
|
-
export type
|
|
809
|
+
export type CreateInvitationErrors = {
|
|
1022
810
|
/**
|
|
1023
811
|
* Default Response
|
|
1024
812
|
*/
|
|
1025
|
-
|
|
813
|
+
409: {
|
|
1026
814
|
statusCode: number;
|
|
1027
815
|
error: string;
|
|
1028
816
|
message: string;
|
|
1029
817
|
};
|
|
1030
818
|
};
|
|
1031
|
-
export type
|
|
1032
|
-
export type
|
|
819
|
+
export type CreateInvitationError = CreateInvitationErrors[keyof CreateInvitationErrors];
|
|
820
|
+
export type CreateInvitationResponses = {
|
|
1033
821
|
/**
|
|
1034
822
|
* Default Response
|
|
1035
823
|
*/
|
|
1036
824
|
200: {
|
|
1037
825
|
id: string;
|
|
1038
826
|
email: string;
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
phone: string | null;
|
|
1045
|
-
phoneVerified: boolean;
|
|
1046
|
-
isBlocked: boolean;
|
|
1047
|
-
isBlockedUntil: string | null;
|
|
1048
|
-
isGuest: boolean;
|
|
1049
|
-
locale: string;
|
|
1050
|
-
claims: unknown;
|
|
1051
|
-
marketingConsent: boolean;
|
|
1052
|
-
twoFaEnabled: boolean;
|
|
1053
|
-
twoFaType: string | null;
|
|
1054
|
-
createdAt: string;
|
|
1055
|
-
updatedAt: string;
|
|
827
|
+
token: string;
|
|
828
|
+
validTo: string;
|
|
829
|
+
role: string | null;
|
|
830
|
+
group: string | null;
|
|
831
|
+
returnUrl: string | null;
|
|
1056
832
|
};
|
|
1057
833
|
};
|
|
1058
|
-
export type
|
|
1059
|
-
export type
|
|
834
|
+
export type CreateInvitationResponse = CreateInvitationResponses[keyof CreateInvitationResponses];
|
|
835
|
+
export type ChangePasswordData = {
|
|
1060
836
|
body: {
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
};
|
|
1064
|
-
path: {
|
|
837
|
+
oldPassword: string;
|
|
838
|
+
newPassword: string;
|
|
1065
839
|
userId: string;
|
|
1066
840
|
};
|
|
841
|
+
path?: never;
|
|
1067
842
|
query?: never;
|
|
1068
|
-
url: '/api/v1/
|
|
843
|
+
url: '/api/v1/me/password';
|
|
1069
844
|
};
|
|
1070
|
-
export type
|
|
845
|
+
export type ChangePasswordErrors = {
|
|
846
|
+
/**
|
|
847
|
+
* Default Response
|
|
848
|
+
*/
|
|
849
|
+
400: {
|
|
850
|
+
statusCode: number;
|
|
851
|
+
error: string;
|
|
852
|
+
message: string;
|
|
853
|
+
};
|
|
1071
854
|
/**
|
|
1072
855
|
* Default Response
|
|
1073
856
|
*/
|
|
@@ -1076,34 +859,59 @@ export type PatchApiV1UsersByUserIdChallangePhoneErrors = {
|
|
|
1076
859
|
error: string;
|
|
1077
860
|
message: string;
|
|
1078
861
|
};
|
|
862
|
+
};
|
|
863
|
+
export type ChangePasswordError = ChangePasswordErrors[keyof ChangePasswordErrors];
|
|
864
|
+
export type ChangePasswordResponses = {
|
|
1079
865
|
/**
|
|
1080
866
|
* Default Response
|
|
1081
867
|
*/
|
|
1082
|
-
|
|
868
|
+
201: null;
|
|
869
|
+
};
|
|
870
|
+
export type ChangePasswordResponse = ChangePasswordResponses[keyof ChangePasswordResponses];
|
|
871
|
+
export type SetPasswordData = {
|
|
872
|
+
body: {
|
|
873
|
+
password: string;
|
|
874
|
+
token?: string;
|
|
875
|
+
};
|
|
876
|
+
path?: never;
|
|
877
|
+
query?: never;
|
|
878
|
+
url: '/api/v1/me/password';
|
|
879
|
+
};
|
|
880
|
+
export type SetPasswordErrors = {
|
|
881
|
+
/**
|
|
882
|
+
* Default Response
|
|
883
|
+
*/
|
|
884
|
+
400: {
|
|
885
|
+
statusCode: number;
|
|
886
|
+
error: string;
|
|
887
|
+
message: string;
|
|
888
|
+
};
|
|
889
|
+
/**
|
|
890
|
+
* Default Response
|
|
891
|
+
*/
|
|
892
|
+
401: {
|
|
1083
893
|
statusCode: number;
|
|
1084
894
|
error: string;
|
|
1085
895
|
message: string;
|
|
1086
896
|
};
|
|
1087
897
|
};
|
|
1088
|
-
export type
|
|
1089
|
-
export type
|
|
898
|
+
export type SetPasswordError = SetPasswordErrors[keyof SetPasswordErrors];
|
|
899
|
+
export type SetPasswordResponses = {
|
|
1090
900
|
/**
|
|
1091
901
|
* Default Response
|
|
1092
902
|
*/
|
|
1093
903
|
201: null;
|
|
1094
904
|
};
|
|
1095
|
-
export type
|
|
1096
|
-
export type
|
|
905
|
+
export type SetPasswordResponse = SetPasswordResponses[keyof SetPasswordResponses];
|
|
906
|
+
export type ChangePhoneData = {
|
|
1097
907
|
body: {
|
|
1098
908
|
phone: string;
|
|
1099
909
|
};
|
|
1100
|
-
path
|
|
1101
|
-
userId: string;
|
|
1102
|
-
};
|
|
910
|
+
path?: never;
|
|
1103
911
|
query?: never;
|
|
1104
|
-
url: '/api/v1/
|
|
912
|
+
url: '/api/v1/me/phone';
|
|
1105
913
|
};
|
|
1106
|
-
export type
|
|
914
|
+
export type ChangePhoneErrors = {
|
|
1107
915
|
/**
|
|
1108
916
|
* Default Response
|
|
1109
917
|
*/
|
|
@@ -1121,30 +929,28 @@ export type PostApiV1UsersByUserIdChallangePhoneErrors = {
|
|
|
1121
929
|
message: string;
|
|
1122
930
|
};
|
|
1123
931
|
};
|
|
1124
|
-
export type
|
|
1125
|
-
export type
|
|
932
|
+
export type ChangePhoneError = ChangePhoneErrors[keyof ChangePhoneErrors];
|
|
933
|
+
export type ChangePhoneResponses = {
|
|
1126
934
|
/**
|
|
1127
935
|
* Default Response
|
|
1128
936
|
*/
|
|
1129
937
|
200: null;
|
|
1130
938
|
};
|
|
1131
|
-
export type
|
|
1132
|
-
export type
|
|
939
|
+
export type ChangePhoneResponse = ChangePhoneResponses[keyof ChangePhoneResponses];
|
|
940
|
+
export type VerifyPhoneData = {
|
|
1133
941
|
body: {
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
};
|
|
1137
|
-
path: {
|
|
1138
|
-
userId: string;
|
|
942
|
+
phone: string;
|
|
943
|
+
code: string;
|
|
1139
944
|
};
|
|
945
|
+
path?: never;
|
|
1140
946
|
query?: never;
|
|
1141
|
-
url: '/api/v1/
|
|
947
|
+
url: '/api/v1/me/phone/verify';
|
|
1142
948
|
};
|
|
1143
|
-
export type
|
|
949
|
+
export type VerifyPhoneErrors = {
|
|
1144
950
|
/**
|
|
1145
951
|
* Default Response
|
|
1146
952
|
*/
|
|
1147
|
-
|
|
953
|
+
401: {
|
|
1148
954
|
statusCode: number;
|
|
1149
955
|
error: string;
|
|
1150
956
|
message: string;
|
|
@@ -1152,152 +958,187 @@ export type PostApiV1UsersByUserIdRolesErrors = {
|
|
|
1152
958
|
/**
|
|
1153
959
|
* Default Response
|
|
1154
960
|
*/
|
|
1155
|
-
|
|
961
|
+
404: {
|
|
1156
962
|
statusCode: number;
|
|
1157
963
|
error: string;
|
|
1158
964
|
message: string;
|
|
1159
965
|
};
|
|
1160
966
|
};
|
|
1161
|
-
export type
|
|
1162
|
-
export type
|
|
967
|
+
export type VerifyPhoneError = VerifyPhoneErrors[keyof VerifyPhoneErrors];
|
|
968
|
+
export type VerifyPhoneResponses = {
|
|
1163
969
|
/**
|
|
1164
970
|
* Default Response
|
|
1165
971
|
*/
|
|
1166
|
-
201:
|
|
1167
|
-
id: string;
|
|
1168
|
-
userId: string;
|
|
1169
|
-
role: string;
|
|
1170
|
-
group: string;
|
|
1171
|
-
createdAt: string;
|
|
1172
|
-
};
|
|
972
|
+
201: null;
|
|
1173
973
|
};
|
|
1174
|
-
export type
|
|
1175
|
-
export type
|
|
1176
|
-
body
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
974
|
+
export type VerifyPhoneResponse = VerifyPhoneResponses[keyof VerifyPhoneResponses];
|
|
975
|
+
export type AcceptInvitationData = {
|
|
976
|
+
body: {
|
|
977
|
+
token: string;
|
|
978
|
+
password?: string;
|
|
979
|
+
userAgent: string;
|
|
1180
980
|
};
|
|
981
|
+
path?: never;
|
|
1181
982
|
query?: never;
|
|
1182
|
-
url: '/api/v1/
|
|
983
|
+
url: '/api/v1/invitation/accept';
|
|
1183
984
|
};
|
|
1184
|
-
export type
|
|
985
|
+
export type AcceptInvitationErrors = {
|
|
1185
986
|
/**
|
|
1186
987
|
* Default Response
|
|
1187
988
|
*/
|
|
1188
|
-
|
|
989
|
+
400: {
|
|
1189
990
|
statusCode: number;
|
|
1190
991
|
error: string;
|
|
1191
992
|
message: string;
|
|
1192
993
|
};
|
|
1193
994
|
};
|
|
1194
|
-
export type
|
|
1195
|
-
export type
|
|
995
|
+
export type AcceptInvitationError = AcceptInvitationErrors[keyof AcceptInvitationErrors];
|
|
996
|
+
export type AcceptInvitationResponses = {
|
|
1196
997
|
/**
|
|
1197
998
|
* Default Response
|
|
1198
999
|
*/
|
|
1199
1000
|
200: {
|
|
1200
|
-
|
|
1001
|
+
accessToken: string;
|
|
1002
|
+
refreshToken: string;
|
|
1201
1003
|
};
|
|
1202
1004
|
};
|
|
1203
|
-
export type
|
|
1204
|
-
export type
|
|
1205
|
-
body
|
|
1206
|
-
|
|
1207
|
-
|
|
1005
|
+
export type AcceptInvitationResponse = AcceptInvitationResponses[keyof AcceptInvitationResponses];
|
|
1006
|
+
export type CreateGuestUserData = {
|
|
1007
|
+
body: {
|
|
1008
|
+
email: string;
|
|
1009
|
+
firstName?: string;
|
|
1010
|
+
lastName?: string;
|
|
1011
|
+
phone?: string;
|
|
1208
1012
|
};
|
|
1013
|
+
path?: never;
|
|
1209
1014
|
query?: never;
|
|
1210
|
-
url: '/api/v1/
|
|
1015
|
+
url: '/api/v1/guest';
|
|
1211
1016
|
};
|
|
1212
|
-
export type
|
|
1017
|
+
export type CreateGuestUserErrors = {
|
|
1213
1018
|
/**
|
|
1214
1019
|
* Default Response
|
|
1215
1020
|
*/
|
|
1216
|
-
|
|
1021
|
+
409: {
|
|
1217
1022
|
statusCode: number;
|
|
1218
1023
|
error: string;
|
|
1219
1024
|
message: string;
|
|
1220
1025
|
};
|
|
1221
1026
|
};
|
|
1222
|
-
export type
|
|
1223
|
-
export type
|
|
1027
|
+
export type CreateGuestUserError = CreateGuestUserErrors[keyof CreateGuestUserErrors];
|
|
1028
|
+
export type CreateGuestUserResponses = {
|
|
1224
1029
|
/**
|
|
1225
1030
|
* Default Response
|
|
1226
1031
|
*/
|
|
1227
|
-
200:
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
group: string;
|
|
1231
|
-
createdAt: string;
|
|
1232
|
-
}>;
|
|
1032
|
+
200: {
|
|
1033
|
+
token: string;
|
|
1034
|
+
};
|
|
1233
1035
|
};
|
|
1234
|
-
export type
|
|
1235
|
-
export type
|
|
1036
|
+
export type CreateGuestUserResponse = CreateGuestUserResponses[keyof CreateGuestUserResponses];
|
|
1037
|
+
export type ForgotPasswordData = {
|
|
1236
1038
|
body: {
|
|
1237
|
-
|
|
1238
|
-
group?: string;
|
|
1039
|
+
email: string;
|
|
1239
1040
|
};
|
|
1240
|
-
path
|
|
1241
|
-
|
|
1242
|
-
|
|
1041
|
+
path?: never;
|
|
1042
|
+
query?: never;
|
|
1043
|
+
url: '/api/v1/password/forgot';
|
|
1044
|
+
};
|
|
1045
|
+
export type ForgotPasswordResponses = {
|
|
1046
|
+
/**
|
|
1047
|
+
* Default Response
|
|
1048
|
+
*/
|
|
1049
|
+
200: {
|
|
1050
|
+
success: boolean;
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
export type ForgotPasswordResponse = ForgotPasswordResponses[keyof ForgotPasswordResponses];
|
|
1054
|
+
export type LoginData = {
|
|
1055
|
+
body: {
|
|
1056
|
+
email: string;
|
|
1057
|
+
password: string;
|
|
1058
|
+
deviceId?: string;
|
|
1059
|
+
ip?: string;
|
|
1060
|
+
twoFaCode?: string;
|
|
1061
|
+
userAgent: string;
|
|
1243
1062
|
};
|
|
1063
|
+
path?: never;
|
|
1244
1064
|
query?: never;
|
|
1245
|
-
url: '/api/v1/
|
|
1065
|
+
url: '/api/v1/login';
|
|
1246
1066
|
};
|
|
1247
|
-
export type
|
|
1067
|
+
export type LoginErrors = {
|
|
1248
1068
|
/**
|
|
1249
1069
|
* Default Response
|
|
1250
1070
|
*/
|
|
1251
|
-
|
|
1071
|
+
401: {
|
|
1252
1072
|
statusCode: number;
|
|
1253
1073
|
error: string;
|
|
1254
1074
|
message: string;
|
|
1255
1075
|
};
|
|
1076
|
+
};
|
|
1077
|
+
export type LoginError = LoginErrors[keyof LoginErrors];
|
|
1078
|
+
export type LoginResponses = {
|
|
1256
1079
|
/**
|
|
1257
1080
|
* Default Response
|
|
1258
1081
|
*/
|
|
1259
|
-
|
|
1082
|
+
200: {
|
|
1083
|
+
accessToken: string;
|
|
1084
|
+
refreshToken: string;
|
|
1085
|
+
deviceId: string;
|
|
1086
|
+
sessionId: string;
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
export type LoginResponse = LoginResponses[keyof LoginResponses];
|
|
1090
|
+
export type RegisterData = {
|
|
1091
|
+
body: {
|
|
1092
|
+
email: string;
|
|
1093
|
+
password: string;
|
|
1094
|
+
firstName?: string;
|
|
1095
|
+
lastName?: string;
|
|
1096
|
+
marketingConsent?: boolean;
|
|
1097
|
+
};
|
|
1098
|
+
path?: never;
|
|
1099
|
+
query?: never;
|
|
1100
|
+
url: '/api/v1/register';
|
|
1101
|
+
};
|
|
1102
|
+
export type RegisterErrors = {
|
|
1103
|
+
/**
|
|
1104
|
+
* Default Response
|
|
1105
|
+
*/
|
|
1106
|
+
409: {
|
|
1260
1107
|
statusCode: number;
|
|
1261
1108
|
error: string;
|
|
1262
1109
|
message: string;
|
|
1263
1110
|
};
|
|
1264
1111
|
};
|
|
1265
|
-
export type
|
|
1266
|
-
export type
|
|
1112
|
+
export type RegisterError = RegisterErrors[keyof RegisterErrors];
|
|
1113
|
+
export type RegisterResponses = {
|
|
1267
1114
|
/**
|
|
1268
1115
|
* Default Response
|
|
1269
1116
|
*/
|
|
1270
1117
|
200: {
|
|
1271
|
-
id: string;
|
|
1272
1118
|
userId: string;
|
|
1273
|
-
role: string;
|
|
1274
|
-
group: string;
|
|
1275
|
-
createdAt: string;
|
|
1276
1119
|
};
|
|
1277
1120
|
};
|
|
1278
|
-
export type
|
|
1279
|
-
export type
|
|
1121
|
+
export type RegisterResponse = RegisterResponses[keyof RegisterResponses];
|
|
1122
|
+
export type ResendEmailConfirmationData = {
|
|
1280
1123
|
body: {
|
|
1281
|
-
|
|
1282
|
-
};
|
|
1283
|
-
path: {
|
|
1284
|
-
userId: string;
|
|
1124
|
+
email: string;
|
|
1285
1125
|
};
|
|
1126
|
+
path?: never;
|
|
1286
1127
|
query?: never;
|
|
1287
|
-
url: '/api/v1/
|
|
1128
|
+
url: '/api/v1/email/resend-confirmation';
|
|
1288
1129
|
};
|
|
1289
|
-
export type
|
|
1130
|
+
export type ResendEmailConfirmationErrors = {
|
|
1290
1131
|
/**
|
|
1291
1132
|
* Default Response
|
|
1292
1133
|
*/
|
|
1293
|
-
|
|
1134
|
+
400: {
|
|
1294
1135
|
statusCode: number;
|
|
1295
1136
|
error: string;
|
|
1296
1137
|
message: string;
|
|
1297
1138
|
};
|
|
1298
1139
|
};
|
|
1299
|
-
export type
|
|
1300
|
-
export type
|
|
1140
|
+
export type ResendEmailConfirmationError = ResendEmailConfirmationErrors[keyof ResendEmailConfirmationErrors];
|
|
1141
|
+
export type ResendEmailConfirmationResponses = {
|
|
1301
1142
|
/**
|
|
1302
1143
|
* Default Response
|
|
1303
1144
|
*/
|
|
@@ -1305,19 +1146,16 @@ export type DeleteApiV1UsersByUserIdTwoFaResponses = {
|
|
|
1305
1146
|
success: boolean;
|
|
1306
1147
|
};
|
|
1307
1148
|
};
|
|
1308
|
-
export type
|
|
1309
|
-
export type
|
|
1149
|
+
export type ResendEmailConfirmationResponse = ResendEmailConfirmationResponses[keyof ResendEmailConfirmationResponses];
|
|
1150
|
+
export type SendMagicLinkData = {
|
|
1310
1151
|
body: {
|
|
1311
|
-
|
|
1312
|
-
type?: 'APP' | 'EMAIL' | 'PHONE';
|
|
1313
|
-
};
|
|
1314
|
-
path: {
|
|
1315
|
-
userId: string;
|
|
1152
|
+
email: string;
|
|
1316
1153
|
};
|
|
1154
|
+
path?: never;
|
|
1317
1155
|
query?: never;
|
|
1318
|
-
url: '/api/v1/
|
|
1156
|
+
url: '/api/v1/magic-link/send';
|
|
1319
1157
|
};
|
|
1320
|
-
export type
|
|
1158
|
+
export type SendMagicLinkErrors = {
|
|
1321
1159
|
/**
|
|
1322
1160
|
* Default Response
|
|
1323
1161
|
*/
|
|
@@ -1335,8 +1173,8 @@ export type PostApiV1UsersByUserIdTwoFaErrors = {
|
|
|
1335
1173
|
message: string;
|
|
1336
1174
|
};
|
|
1337
1175
|
};
|
|
1338
|
-
export type
|
|
1339
|
-
export type
|
|
1176
|
+
export type SendMagicLinkError = SendMagicLinkErrors[keyof SendMagicLinkErrors];
|
|
1177
|
+
export type SendMagicLinkResponses = {
|
|
1340
1178
|
/**
|
|
1341
1179
|
* Default Response
|
|
1342
1180
|
*/
|
|
@@ -1344,23 +1182,60 @@ export type PostApiV1UsersByUserIdTwoFaResponses = {
|
|
|
1344
1182
|
success: boolean;
|
|
1345
1183
|
};
|
|
1346
1184
|
};
|
|
1347
|
-
export type
|
|
1348
|
-
export type
|
|
1349
|
-
body
|
|
1350
|
-
|
|
1351
|
-
|
|
1185
|
+
export type SendMagicLinkResponse = SendMagicLinkResponses[keyof SendMagicLinkResponses];
|
|
1186
|
+
export type VerifyEmailData = {
|
|
1187
|
+
body: {
|
|
1188
|
+
token: string;
|
|
1189
|
+
};
|
|
1190
|
+
path?: never;
|
|
1191
|
+
query?: never;
|
|
1192
|
+
url: '/api/v1/email/verify';
|
|
1193
|
+
};
|
|
1194
|
+
export type VerifyEmailResponses = {
|
|
1195
|
+
/**
|
|
1196
|
+
* Default Response
|
|
1197
|
+
*/
|
|
1198
|
+
201: null;
|
|
1199
|
+
};
|
|
1200
|
+
export type VerifyEmailResponse = VerifyEmailResponses[keyof VerifyEmailResponses];
|
|
1201
|
+
export type VerifyMagicLinkData = {
|
|
1202
|
+
body: {
|
|
1203
|
+
token: string;
|
|
1352
1204
|
};
|
|
1205
|
+
path?: never;
|
|
1353
1206
|
query?: never;
|
|
1354
|
-
url: '/api/v1/
|
|
1207
|
+
url: '/api/v1/magic-link/verify';
|
|
1208
|
+
};
|
|
1209
|
+
export type VerifyMagicLinkErrors = {
|
|
1210
|
+
/**
|
|
1211
|
+
* Default Response
|
|
1212
|
+
*/
|
|
1213
|
+
400: {
|
|
1214
|
+
statusCode: number;
|
|
1215
|
+
error: string;
|
|
1216
|
+
message: string;
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* Default Response
|
|
1220
|
+
*/
|
|
1221
|
+
401: {
|
|
1222
|
+
statusCode: number;
|
|
1223
|
+
error: string;
|
|
1224
|
+
message: string;
|
|
1225
|
+
};
|
|
1355
1226
|
};
|
|
1356
|
-
export type
|
|
1227
|
+
export type VerifyMagicLinkError = VerifyMagicLinkErrors[keyof VerifyMagicLinkErrors];
|
|
1228
|
+
export type VerifyMagicLinkResponses = {
|
|
1357
1229
|
/**
|
|
1358
1230
|
* Default Response
|
|
1359
1231
|
*/
|
|
1360
1232
|
200: {
|
|
1361
|
-
|
|
1362
|
-
|
|
1233
|
+
accessToken: string;
|
|
1234
|
+
refreshToken: string;
|
|
1235
|
+
} | {
|
|
1236
|
+
twoFaType: 'email' | 'sms' | 'app';
|
|
1237
|
+
twoFaToken: string;
|
|
1363
1238
|
};
|
|
1364
1239
|
};
|
|
1365
|
-
export type
|
|
1240
|
+
export type VerifyMagicLinkResponse = VerifyMagicLinkResponses[keyof VerifyMagicLinkResponses];
|
|
1366
1241
|
//# sourceMappingURL=types.gen.d.ts.map
|