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