@djangocfg/api 2.1.572 → 2.1.573
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/dist/APIKey-EYCSY3JW.mjs +14 -0
- package/dist/APIKey-EYCSY3JW.mjs.map +1 -0
- package/dist/APIKey-I5QBXTLD.mjs +9 -0
- package/dist/APIKey-I5QBXTLD.mjs.map +1 -0
- package/dist/APIKeyRegenerate-3WIY3UIL.mjs +9 -0
- package/dist/APIKeyRegenerate-3WIY3UIL.mjs.map +1 -0
- package/dist/APIKeyRegenerate-AV5FCM32.mjs +13 -0
- package/dist/APIKeyRegenerate-AV5FCM32.mjs.map +1 -0
- package/dist/APIKeyReveal-JDXZMXKO.mjs +9 -0
- package/dist/APIKeyReveal-JDXZMXKO.mjs.map +1 -0
- package/dist/APIKeyReveal-ZY7ZD4WX.mjs +14 -0
- package/dist/APIKeyReveal-ZY7ZD4WX.mjs.map +1 -0
- package/dist/APIKeyTestResult-MQM2Q7XN.mjs +9 -0
- package/dist/APIKeyTestResult-MQM2Q7XN.mjs.map +1 -0
- package/dist/APIKeyTestResult-NPKQLHSQ.mjs +13 -0
- package/dist/APIKeyTestResult-NPKQLHSQ.mjs.map +1 -0
- package/dist/AccountDeleteResponse-NISN5UOR.mjs +9 -0
- package/dist/AccountDeleteResponse-NISN5UOR.mjs.map +1 -0
- package/dist/ConsentPolicy-67GXCYPA.mjs +9 -0
- package/dist/ConsentPolicy-67GXCYPA.mjs.map +1 -0
- package/dist/ConsentPolicy-A5WZFHO7.mjs +19 -0
- package/dist/ConsentPolicy-A5WZFHO7.mjs.map +1 -0
- package/dist/OAuthAuthorizeResponse-JQ5W7ZOZ.mjs +9 -0
- package/dist/OAuthAuthorizeResponse-JQ5W7ZOZ.mjs.map +1 -0
- package/dist/OAuthProvidersResponse-5DUH2AT7.mjs +9 -0
- package/dist/OAuthProvidersResponse-5DUH2AT7.mjs.map +1 -0
- package/dist/OAuthTokenResponse-4SJDK73L.mjs +9 -0
- package/dist/OAuthTokenResponse-4SJDK73L.mjs.map +1 -0
- package/dist/OTPRequestResponse-KKEOYXXS.mjs +9 -0
- package/dist/OTPRequestResponse-KKEOYXXS.mjs.map +1 -0
- package/dist/OTPVerifyResponse-XBXVMTO3.mjs +10 -0
- package/dist/OTPVerifyResponse-XBXVMTO3.mjs.map +1 -0
- package/dist/PasswordLoginResponse-3IRCBQIN.mjs +10 -0
- package/dist/PasswordLoginResponse-3IRCBQIN.mjs.map +1 -0
- package/dist/TokenRefresh-MKEUOQCX.mjs +9 -0
- package/dist/TokenRefresh-MKEUOQCX.mjs.map +1 -0
- package/dist/User-7OXQV7XG.mjs +9 -0
- package/dist/User-7OXQV7XG.mjs.map +1 -0
- package/dist/auth.cjs +485 -299
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +132 -302
- package/dist/auth.mjs.map +1 -1
- package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-J3IH5YMW.mjs +9 -0
- package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-J3IH5YMW.mjs.map +1 -0
- package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-6JT7B4EX.mjs +9 -0
- package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-6JT7B4EX.mjs.map +1 -0
- package/dist/chunk-53YKWR6F.mjs +8 -0
- package/dist/chunk-53YKWR6F.mjs.map +1 -0
- package/dist/chunk-6MHVHTWT.mjs +30 -0
- package/dist/chunk-6MHVHTWT.mjs.map +1 -0
- package/dist/chunk-AQ2RQ4BQ.mjs +21 -0
- package/dist/chunk-AQ2RQ4BQ.mjs.map +1 -0
- package/dist/chunk-AXBITHBG.mjs +13 -0
- package/dist/chunk-AXBITHBG.mjs.map +1 -0
- package/dist/chunk-B22YGMM3.mjs +30 -0
- package/dist/chunk-B22YGMM3.mjs.map +1 -0
- package/dist/chunk-GCRGQTJ4.mjs +13 -0
- package/dist/chunk-GCRGQTJ4.mjs.map +1 -0
- package/dist/chunk-IPXJOS2Y.mjs +32 -0
- package/dist/chunk-IPXJOS2Y.mjs.map +1 -0
- package/dist/chunk-K5HZ55SP.mjs +21 -0
- package/dist/chunk-K5HZ55SP.mjs.map +1 -0
- package/dist/chunk-NTSWD2CP.mjs +20 -0
- package/dist/chunk-NTSWD2CP.mjs.map +1 -0
- package/dist/chunk-NZGOHTNF.mjs +14 -0
- package/dist/chunk-NZGOHTNF.mjs.map +1 -0
- package/dist/chunk-OGDF6IJV.mjs +13 -0
- package/dist/chunk-OGDF6IJV.mjs.map +1 -0
- package/dist/chunk-PDARU7RC.mjs +14 -0
- package/dist/chunk-PDARU7RC.mjs.map +1 -0
- package/dist/chunk-RQDZ2EMB.mjs +13 -0
- package/dist/chunk-RQDZ2EMB.mjs.map +1 -0
- package/dist/chunk-SUTMTPAG.mjs +12 -0
- package/dist/chunk-SUTMTPAG.mjs.map +1 -0
- package/dist/chunk-X5FEPK4J.mjs +13 -0
- package/dist/chunk-X5FEPK4J.mjs.map +1 -0
- package/dist/chunk-XSAHOB2U.mjs +19 -0
- package/dist/chunk-XSAHOB2U.mjs.map +1 -0
- package/dist/chunk-YMOOSBRI.mjs +12 -0
- package/dist/chunk-YMOOSBRI.mjs.map +1 -0
- package/dist/hooks.cjs +131 -76
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.mjs +33 -78
- package/dist/hooks.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileAvatarCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialUpdate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdateUpdate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRegenerateCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDevicesRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDisableCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupConfirmCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyBackupCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyCreate.ts +41 -37
package/dist/auth.cjs
CHANGED
|
@@ -7,6 +7,9 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
10
|
+
var __esm = (fn, res) => function __init() {
|
|
11
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
12
|
+
};
|
|
10
13
|
var __export = (target, all) => {
|
|
11
14
|
for (var name in all)
|
|
12
15
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,6 +32,332 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
32
|
));
|
|
30
33
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
34
|
|
|
35
|
+
// src/_api/generated/_cfg_accounts/schemas/WebmailLinkProviderEnum.ts
|
|
36
|
+
var import_zod, WebmailLinkProviderEnumSchema;
|
|
37
|
+
var init_WebmailLinkProviderEnum = __esm({
|
|
38
|
+
"src/_api/generated/_cfg_accounts/schemas/WebmailLinkProviderEnum.ts"() {
|
|
39
|
+
"use strict";
|
|
40
|
+
import_zod = require("zod");
|
|
41
|
+
WebmailLinkProviderEnumSchema = import_zod.z.enum(["gmail", "outlook", "yahoo", "icloud", "proton", "zoho", "aol", "fastmail", "gmx", "mailcom", "mail_ru", "yandex", "rambler", "qq", "netease", "sina", "aliyun", "naver", "daum", "web_de", "tonline", "seznam", "wp_pl", "o2_pl", "interia", "libero", "virgilio", "orange", "laposte", "free_fr", "sfr"]);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
// src/_api/generated/_cfg_accounts/schemas/WebmailLink.ts
|
|
46
|
+
var import_zod2, WebmailLinkSchema;
|
|
47
|
+
var init_WebmailLink = __esm({
|
|
48
|
+
"src/_api/generated/_cfg_accounts/schemas/WebmailLink.ts"() {
|
|
49
|
+
"use strict";
|
|
50
|
+
import_zod2 = require("zod");
|
|
51
|
+
init_WebmailLinkProviderEnum();
|
|
52
|
+
WebmailLinkSchema = import_zod2.z.object({
|
|
53
|
+
provider: WebmailLinkProviderEnumSchema,
|
|
54
|
+
provider_name: import_zod2.z.string(),
|
|
55
|
+
url: import_zod2.z.url().or(import_zod2.z.literal("")),
|
|
56
|
+
is_search: import_zod2.z.boolean()
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// src/_api/generated/_cfg_accounts/schemas/OTPRequestResponse.ts
|
|
62
|
+
var OTPRequestResponse_exports = {};
|
|
63
|
+
__export(OTPRequestResponse_exports, {
|
|
64
|
+
OTPRequestResponseSchema: () => OTPRequestResponseSchema
|
|
65
|
+
});
|
|
66
|
+
var import_zod3, OTPRequestResponseSchema;
|
|
67
|
+
var init_OTPRequestResponse = __esm({
|
|
68
|
+
"src/_api/generated/_cfg_accounts/schemas/OTPRequestResponse.ts"() {
|
|
69
|
+
"use strict";
|
|
70
|
+
import_zod3 = require("zod");
|
|
71
|
+
init_WebmailLink();
|
|
72
|
+
OTPRequestResponseSchema = import_zod3.z.object({
|
|
73
|
+
message: import_zod3.z.string(),
|
|
74
|
+
webmail: WebmailLinkSchema.nullable().optional()
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// src/_api/generated/_cfg_accounts/schemas/User.ts
|
|
80
|
+
var User_exports = {};
|
|
81
|
+
__export(User_exports, {
|
|
82
|
+
UserSchema: () => UserSchema
|
|
83
|
+
});
|
|
84
|
+
var import_zod4, UserSchema;
|
|
85
|
+
var init_User = __esm({
|
|
86
|
+
"src/_api/generated/_cfg_accounts/schemas/User.ts"() {
|
|
87
|
+
"use strict";
|
|
88
|
+
import_zod4 = require("zod");
|
|
89
|
+
UserSchema = import_zod4.z.object({
|
|
90
|
+
id: import_zod4.z.number().int(),
|
|
91
|
+
email: import_zod4.z.email().or(import_zod4.z.literal("")),
|
|
92
|
+
first_name: import_zod4.z.string().max(50).nullable().optional(),
|
|
93
|
+
last_name: import_zod4.z.string().max(50).nullable().optional(),
|
|
94
|
+
full_name: import_zod4.z.string(),
|
|
95
|
+
initials: import_zod4.z.string(),
|
|
96
|
+
display_username: import_zod4.z.string(),
|
|
97
|
+
company: import_zod4.z.string().max(100).nullable().optional(),
|
|
98
|
+
phone: import_zod4.z.string().max(20).nullable().optional(),
|
|
99
|
+
position: import_zod4.z.string().max(100).nullable().optional(),
|
|
100
|
+
language: import_zod4.z.string().max(10).nullable().optional(),
|
|
101
|
+
timezone: import_zod4.z.string().max(64).nullable().optional(),
|
|
102
|
+
avatar: import_zod4.z.url().or(import_zod4.z.literal("")).nullable(),
|
|
103
|
+
is_staff: import_zod4.z.boolean(),
|
|
104
|
+
is_superuser: import_zod4.z.boolean(),
|
|
105
|
+
date_joined: import_zod4.z.string().datetime({ offset: true }),
|
|
106
|
+
last_login: import_zod4.z.string().datetime({ offset: true }).nullable(),
|
|
107
|
+
unanswered_messages_count: import_zod4.z.number().int().default(0),
|
|
108
|
+
api_key: import_zod4.z.string().nullable()
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts
|
|
114
|
+
var OTPVerifyResponse_exports = {};
|
|
115
|
+
__export(OTPVerifyResponse_exports, {
|
|
116
|
+
OTPVerifyResponseSchema: () => OTPVerifyResponseSchema
|
|
117
|
+
});
|
|
118
|
+
var import_zod5, OTPVerifyResponseSchema;
|
|
119
|
+
var init_OTPVerifyResponse = __esm({
|
|
120
|
+
"src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts"() {
|
|
121
|
+
"use strict";
|
|
122
|
+
import_zod5 = require("zod");
|
|
123
|
+
init_User();
|
|
124
|
+
OTPVerifyResponseSchema = import_zod5.z.object({
|
|
125
|
+
requires_2fa: import_zod5.z.boolean().default(false).optional(),
|
|
126
|
+
session_id: import_zod5.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
127
|
+
refresh: import_zod5.z.string().nullable().optional(),
|
|
128
|
+
access: import_zod5.z.string().nullable().optional(),
|
|
129
|
+
user: UserSchema.nullable().optional(),
|
|
130
|
+
should_prompt_2fa: import_zod5.z.boolean().optional(),
|
|
131
|
+
persistent_session: import_zod5.z.boolean().optional()
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
// src/_api/generated/_cfg_accounts/schemas/PasswordLoginResponse.ts
|
|
137
|
+
var PasswordLoginResponse_exports = {};
|
|
138
|
+
__export(PasswordLoginResponse_exports, {
|
|
139
|
+
PasswordLoginResponseSchema: () => PasswordLoginResponseSchema
|
|
140
|
+
});
|
|
141
|
+
var import_zod6, PasswordLoginResponseSchema;
|
|
142
|
+
var init_PasswordLoginResponse = __esm({
|
|
143
|
+
"src/_api/generated/_cfg_accounts/schemas/PasswordLoginResponse.ts"() {
|
|
144
|
+
"use strict";
|
|
145
|
+
import_zod6 = require("zod");
|
|
146
|
+
init_User();
|
|
147
|
+
PasswordLoginResponseSchema = import_zod6.z.object({
|
|
148
|
+
requires_2fa: import_zod6.z.boolean().default(false).optional(),
|
|
149
|
+
session_id: import_zod6.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
150
|
+
refresh: import_zod6.z.string().nullable().optional(),
|
|
151
|
+
access: import_zod6.z.string().nullable().optional(),
|
|
152
|
+
user: UserSchema.nullable().optional(),
|
|
153
|
+
should_prompt_2fa: import_zod6.z.boolean().optional(),
|
|
154
|
+
persistent_session: import_zod6.z.boolean().optional()
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKey.ts
|
|
160
|
+
var import_zod7, APIKeySchema;
|
|
161
|
+
var init_APIKey = __esm({
|
|
162
|
+
"src/_api/generated/_cfg_accounts/schemas/APIKey.ts"() {
|
|
163
|
+
"use strict";
|
|
164
|
+
import_zod7 = require("zod");
|
|
165
|
+
APIKeySchema = import_zod7.z.object({
|
|
166
|
+
key: import_zod7.z.string(),
|
|
167
|
+
reissued_at: import_zod7.z.string().datetime({ offset: true }).nullable(),
|
|
168
|
+
created_at: import_zod7.z.string().datetime({ offset: true })
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKeyRegenerate.ts
|
|
174
|
+
var import_zod8, APIKeyRegenerateSchema;
|
|
175
|
+
var init_APIKeyRegenerate = __esm({
|
|
176
|
+
"src/_api/generated/_cfg_accounts/schemas/APIKeyRegenerate.ts"() {
|
|
177
|
+
"use strict";
|
|
178
|
+
import_zod8 = require("zod");
|
|
179
|
+
APIKeyRegenerateSchema = import_zod8.z.object({
|
|
180
|
+
key: import_zod8.z.string(),
|
|
181
|
+
reissued_at: import_zod8.z.string().datetime({ offset: true })
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts
|
|
187
|
+
var import_zod10, APIKeyRevealSchema;
|
|
188
|
+
var init_APIKeyReveal = __esm({
|
|
189
|
+
"src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts"() {
|
|
190
|
+
"use strict";
|
|
191
|
+
import_zod10 = require("zod");
|
|
192
|
+
APIKeyRevealSchema = import_zod10.z.object({
|
|
193
|
+
key: import_zod10.z.string(),
|
|
194
|
+
created_at: import_zod10.z.string().datetime({ offset: true }),
|
|
195
|
+
reissued_at: import_zod10.z.string().datetime({ offset: true }).nullable()
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts
|
|
201
|
+
var import_zod12, APIKeyTestResultSchema;
|
|
202
|
+
var init_APIKeyTestResult = __esm({
|
|
203
|
+
"src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts"() {
|
|
204
|
+
"use strict";
|
|
205
|
+
import_zod12 = require("zod");
|
|
206
|
+
APIKeyTestResultSchema = import_zod12.z.object({
|
|
207
|
+
valid: import_zod12.z.boolean(),
|
|
208
|
+
user_id: import_zod12.z.string().nullable()
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
// src/_api/generated/_cfg_accounts/schemas/AccountDeleteResponse.ts
|
|
214
|
+
var import_zod13, AccountDeleteResponseSchema;
|
|
215
|
+
var init_AccountDeleteResponse = __esm({
|
|
216
|
+
"src/_api/generated/_cfg_accounts/schemas/AccountDeleteResponse.ts"() {
|
|
217
|
+
"use strict";
|
|
218
|
+
import_zod13 = require("zod");
|
|
219
|
+
AccountDeleteResponseSchema = import_zod13.z.object({
|
|
220
|
+
success: import_zod13.z.boolean(),
|
|
221
|
+
message: import_zod13.z.string()
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
// src/_api/generated/_cfg_accounts/schemas/MarketingConsentDefaultEnum.ts
|
|
227
|
+
var import_zod15, MarketingConsentDefaultEnumSchema;
|
|
228
|
+
var init_MarketingConsentDefaultEnum = __esm({
|
|
229
|
+
"src/_api/generated/_cfg_accounts/schemas/MarketingConsentDefaultEnum.ts"() {
|
|
230
|
+
"use strict";
|
|
231
|
+
import_zod15 = require("zod");
|
|
232
|
+
MarketingConsentDefaultEnumSchema = import_zod15.z.enum(["checked", "unchecked"]);
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
237
|
+
var import_zod16, ConsentPolicySchema;
|
|
238
|
+
var init_ConsentPolicy = __esm({
|
|
239
|
+
"src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts"() {
|
|
240
|
+
"use strict";
|
|
241
|
+
import_zod16 = require("zod");
|
|
242
|
+
init_MarketingConsentDefaultEnum();
|
|
243
|
+
ConsentPolicySchema = import_zod16.z.object({
|
|
244
|
+
country: import_zod16.z.string(),
|
|
245
|
+
marketing_consent_default: MarketingConsentDefaultEnumSchema
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
// src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeResponse.ts
|
|
251
|
+
var import_zod18, OAuthAuthorizeResponseSchema;
|
|
252
|
+
var init_OAuthAuthorizeResponse = __esm({
|
|
253
|
+
"src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeResponse.ts"() {
|
|
254
|
+
"use strict";
|
|
255
|
+
import_zod18 = require("zod");
|
|
256
|
+
OAuthAuthorizeResponseSchema = import_zod18.z.object({
|
|
257
|
+
authorization_url: import_zod18.z.url().or(import_zod18.z.literal("")),
|
|
258
|
+
state: import_zod18.z.string()
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
// src/_api/generated/_cfg_accounts/schemas/OAuthProviderEnum.ts
|
|
264
|
+
var import_zod20, OAuthProviderEnumSchema;
|
|
265
|
+
var init_OAuthProviderEnum = __esm({
|
|
266
|
+
"src/_api/generated/_cfg_accounts/schemas/OAuthProviderEnum.ts"() {
|
|
267
|
+
"use strict";
|
|
268
|
+
import_zod20 = require("zod");
|
|
269
|
+
OAuthProviderEnumSchema = import_zod20.z.enum(["github"]);
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
// src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts
|
|
274
|
+
var import_zod21, OAuthConnectionSchema;
|
|
275
|
+
var init_OAuthConnection = __esm({
|
|
276
|
+
"src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts"() {
|
|
277
|
+
"use strict";
|
|
278
|
+
import_zod21 = require("zod");
|
|
279
|
+
init_OAuthProviderEnum();
|
|
280
|
+
OAuthConnectionSchema = import_zod21.z.object({
|
|
281
|
+
id: import_zod21.z.number().int(),
|
|
282
|
+
provider: OAuthProviderEnumSchema,
|
|
283
|
+
provider_display: import_zod21.z.string(),
|
|
284
|
+
provider_username: import_zod21.z.string(),
|
|
285
|
+
provider_email: import_zod21.z.email().or(import_zod21.z.literal("")),
|
|
286
|
+
provider_avatar_url: import_zod21.z.url().or(import_zod21.z.literal("")),
|
|
287
|
+
connected_at: import_zod21.z.string().datetime({ offset: true }),
|
|
288
|
+
last_login_at: import_zod21.z.string().datetime({ offset: true })
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
// src/_api/generated/_cfg_accounts/schemas/OAuthProvidersResponse.ts
|
|
294
|
+
var import_zod24, OAuthProvidersResponseSchema;
|
|
295
|
+
var init_OAuthProvidersResponse = __esm({
|
|
296
|
+
"src/_api/generated/_cfg_accounts/schemas/OAuthProvidersResponse.ts"() {
|
|
297
|
+
"use strict";
|
|
298
|
+
import_zod24 = require("zod");
|
|
299
|
+
OAuthProvidersResponseSchema = import_zod24.z.object({
|
|
300
|
+
providers: import_zod24.z.array(import_zod24.z.object({}).passthrough())
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
// src/_api/generated/_cfg_accounts/schemas/OAuthTokenResponse.ts
|
|
306
|
+
var import_zod25, OAuthTokenResponseSchema;
|
|
307
|
+
var init_OAuthTokenResponse = __esm({
|
|
308
|
+
"src/_api/generated/_cfg_accounts/schemas/OAuthTokenResponse.ts"() {
|
|
309
|
+
"use strict";
|
|
310
|
+
import_zod25 = require("zod");
|
|
311
|
+
OAuthTokenResponseSchema = import_zod25.z.object({
|
|
312
|
+
requires_2fa: import_zod25.z.boolean().default(false).optional(),
|
|
313
|
+
session_id: import_zod25.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
314
|
+
access: import_zod25.z.string().nullable().optional(),
|
|
315
|
+
refresh: import_zod25.z.string().nullable().optional(),
|
|
316
|
+
user: import_zod25.z.object({}).passthrough().nullable().optional(),
|
|
317
|
+
is_new_user: import_zod25.z.boolean().default(false).optional(),
|
|
318
|
+
is_new_connection: import_zod25.z.boolean().default(false).optional(),
|
|
319
|
+
should_prompt_2fa: import_zod25.z.boolean().optional(),
|
|
320
|
+
persistent_session: import_zod25.z.boolean().optional()
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
// src/_api/generated/_cfg_accounts/schemas/TokenRefresh.ts
|
|
326
|
+
var import_zod33, TokenRefreshSchema;
|
|
327
|
+
var init_TokenRefresh = __esm({
|
|
328
|
+
"src/_api/generated/_cfg_accounts/schemas/TokenRefresh.ts"() {
|
|
329
|
+
"use strict";
|
|
330
|
+
import_zod33 = require("zod");
|
|
331
|
+
TokenRefreshSchema = import_zod33.z.object({
|
|
332
|
+
access: import_zod33.z.string(),
|
|
333
|
+
refresh: import_zod33.z.string()
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts
|
|
339
|
+
var import_zod35, cfg_accounts_oauth_connections_response_200_AutoRefSchema;
|
|
340
|
+
var init_cfg_accounts_oauth_connections_response_200_AutoRef = __esm({
|
|
341
|
+
"src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts"() {
|
|
342
|
+
"use strict";
|
|
343
|
+
import_zod35 = require("zod");
|
|
344
|
+
init_OAuthConnection();
|
|
345
|
+
cfg_accounts_oauth_connections_response_200_AutoRefSchema = import_zod35.z.array(OAuthConnectionSchema);
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_disconnect_response_200_AutoRef.ts
|
|
350
|
+
var import_zod36, cfg_accounts_oauth_disconnect_response_200_AutoRefSchema;
|
|
351
|
+
var init_cfg_accounts_oauth_disconnect_response_200_AutoRef = __esm({
|
|
352
|
+
"src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_disconnect_response_200_AutoRef.ts"() {
|
|
353
|
+
"use strict";
|
|
354
|
+
import_zod36 = require("zod");
|
|
355
|
+
cfg_accounts_oauth_disconnect_response_200_AutoRefSchema = import_zod36.z.object({
|
|
356
|
+
message: import_zod36.z.string().optional()
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
|
|
32
361
|
// src/auth/index.ts
|
|
33
362
|
var auth_exports = {};
|
|
34
363
|
__export(auth_exports, {
|
|
@@ -3991,170 +4320,44 @@ var import_react15 = require("react");
|
|
|
3991
4320
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts
|
|
3992
4321
|
var import_mutation = __toESM(require("swr/mutation"), 1);
|
|
3993
4322
|
|
|
3994
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyRegenerate.ts
|
|
3995
|
-
var import_zod = require("zod");
|
|
3996
|
-
var APIKeyRegenerateSchema = import_zod.z.object({
|
|
3997
|
-
key: import_zod.z.string(),
|
|
3998
|
-
reissued_at: import_zod.z.string().datetime({ offset: true })
|
|
3999
|
-
});
|
|
4000
|
-
|
|
4001
4323
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts
|
|
4002
4324
|
var import_swr = __toESM(require("swr"), 1);
|
|
4003
4325
|
|
|
4004
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKey.ts
|
|
4005
|
-
var import_zod2 = require("zod");
|
|
4006
|
-
var APIKeySchema = import_zod2.z.object({
|
|
4007
|
-
key: import_zod2.z.string(),
|
|
4008
|
-
reissued_at: import_zod2.z.string().datetime({ offset: true }).nullable(),
|
|
4009
|
-
created_at: import_zod2.z.string().datetime({ offset: true })
|
|
4010
|
-
});
|
|
4011
|
-
|
|
4012
4326
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
|
|
4013
4327
|
var import_mutation2 = __toESM(require("swr/mutation"), 1);
|
|
4014
4328
|
|
|
4015
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts
|
|
4016
|
-
var import_zod3 = require("zod");
|
|
4017
|
-
var APIKeyRevealSchema = import_zod3.z.object({
|
|
4018
|
-
key: import_zod3.z.string(),
|
|
4019
|
-
created_at: import_zod3.z.string().datetime({ offset: true }),
|
|
4020
|
-
reissued_at: import_zod3.z.string().datetime({ offset: true }).nullable()
|
|
4021
|
-
});
|
|
4022
|
-
|
|
4023
4329
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
|
|
4024
4330
|
var import_mutation3 = __toESM(require("swr/mutation"), 1);
|
|
4025
4331
|
|
|
4026
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts
|
|
4027
|
-
var import_zod4 = require("zod");
|
|
4028
|
-
var APIKeyTestResultSchema = import_zod4.z.object({
|
|
4029
|
-
valid: import_zod4.z.boolean(),
|
|
4030
|
-
user_id: import_zod4.z.string().nullable()
|
|
4031
|
-
});
|
|
4032
|
-
|
|
4033
4332
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts
|
|
4034
4333
|
var import_swr2 = __toESM(require("swr"), 1);
|
|
4035
4334
|
|
|
4036
|
-
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts
|
|
4037
|
-
var import_zod7 = require("zod");
|
|
4038
|
-
|
|
4039
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts
|
|
4040
|
-
var import_zod6 = require("zod");
|
|
4041
|
-
|
|
4042
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthProviderEnum.ts
|
|
4043
|
-
var import_zod5 = require("zod");
|
|
4044
|
-
var OAuthProviderEnumSchema = import_zod5.z.enum(["github"]);
|
|
4045
|
-
|
|
4046
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts
|
|
4047
|
-
var OAuthConnectionSchema = import_zod6.z.object({
|
|
4048
|
-
id: import_zod6.z.number().int(),
|
|
4049
|
-
provider: OAuthProviderEnumSchema,
|
|
4050
|
-
provider_display: import_zod6.z.string(),
|
|
4051
|
-
provider_username: import_zod6.z.string(),
|
|
4052
|
-
provider_email: import_zod6.z.email().or(import_zod6.z.literal("")),
|
|
4053
|
-
provider_avatar_url: import_zod6.z.url().or(import_zod6.z.literal("")),
|
|
4054
|
-
connected_at: import_zod6.z.string().datetime({ offset: true }),
|
|
4055
|
-
last_login_at: import_zod6.z.string().datetime({ offset: true })
|
|
4056
|
-
});
|
|
4057
|
-
|
|
4058
|
-
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts
|
|
4059
|
-
var cfg_accounts_oauth_connections_response_200_AutoRefSchema = import_zod7.z.array(OAuthConnectionSchema);
|
|
4060
|
-
|
|
4061
4335
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts
|
|
4062
4336
|
var import_mutation4 = __toESM(require("swr/mutation"), 1);
|
|
4063
4337
|
|
|
4064
|
-
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_disconnect_response_200_AutoRef.ts
|
|
4065
|
-
var import_zod8 = require("zod");
|
|
4066
|
-
var cfg_accounts_oauth_disconnect_response_200_AutoRefSchema = import_zod8.z.object({
|
|
4067
|
-
message: import_zod8.z.string().optional()
|
|
4068
|
-
});
|
|
4069
|
-
|
|
4070
4338
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts
|
|
4071
4339
|
var import_mutation5 = __toESM(require("swr/mutation"), 1);
|
|
4072
4340
|
|
|
4073
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeResponse.ts
|
|
4074
|
-
var import_zod9 = require("zod");
|
|
4075
|
-
var OAuthAuthorizeResponseSchema = import_zod9.z.object({
|
|
4076
|
-
authorization_url: import_zod9.z.url().or(import_zod9.z.literal("")),
|
|
4077
|
-
state: import_zod9.z.string()
|
|
4078
|
-
});
|
|
4079
|
-
|
|
4080
4341
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts
|
|
4081
4342
|
var import_mutation6 = __toESM(require("swr/mutation"), 1);
|
|
4082
4343
|
|
|
4083
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthTokenResponse.ts
|
|
4084
|
-
var import_zod10 = require("zod");
|
|
4085
|
-
var OAuthTokenResponseSchema = import_zod10.z.object({
|
|
4086
|
-
requires_2fa: import_zod10.z.boolean().default(false).optional(),
|
|
4087
|
-
session_id: import_zod10.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
4088
|
-
access: import_zod10.z.string().nullable().optional(),
|
|
4089
|
-
refresh: import_zod10.z.string().nullable().optional(),
|
|
4090
|
-
user: import_zod10.z.object({}).passthrough().nullable().optional(),
|
|
4091
|
-
is_new_user: import_zod10.z.boolean().default(false).optional(),
|
|
4092
|
-
is_new_connection: import_zod10.z.boolean().default(false).optional(),
|
|
4093
|
-
should_prompt_2fa: import_zod10.z.boolean().optional(),
|
|
4094
|
-
persistent_session: import_zod10.z.boolean().optional()
|
|
4095
|
-
});
|
|
4096
|
-
|
|
4097
4344
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts
|
|
4098
4345
|
var import_swr3 = __toESM(require("swr"), 1);
|
|
4099
4346
|
|
|
4100
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthProvidersResponse.ts
|
|
4101
|
-
var import_zod11 = require("zod");
|
|
4102
|
-
var OAuthProvidersResponseSchema = import_zod11.z.object({
|
|
4103
|
-
providers: import_zod11.z.array(import_zod11.z.object({}).passthrough())
|
|
4104
|
-
});
|
|
4105
|
-
|
|
4106
4347
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts
|
|
4107
4348
|
var import_swr4 = __toESM(require("swr"), 1);
|
|
4108
4349
|
|
|
4109
|
-
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
4110
|
-
var import_zod13 = require("zod");
|
|
4111
|
-
|
|
4112
|
-
// src/_api/generated/_cfg_accounts/schemas/MarketingConsentDefaultEnum.ts
|
|
4113
|
-
var import_zod12 = require("zod");
|
|
4114
|
-
var MarketingConsentDefaultEnumSchema = import_zod12.z.enum(["checked", "unchecked"]);
|
|
4115
|
-
|
|
4116
|
-
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
4117
|
-
var ConsentPolicySchema = import_zod13.z.object({
|
|
4118
|
-
country: import_zod13.z.string(),
|
|
4119
|
-
marketing_consent_default: MarketingConsentDefaultEnumSchema
|
|
4120
|
-
});
|
|
4121
|
-
|
|
4122
4350
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
|
|
4123
4351
|
var import_mutation7 = __toESM(require("swr/mutation"), 1);
|
|
4124
|
-
|
|
4125
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPRequestResponse.ts
|
|
4126
|
-
var import_zod16 = require("zod");
|
|
4127
|
-
|
|
4128
|
-
// src/_api/generated/_cfg_accounts/schemas/WebmailLink.ts
|
|
4129
|
-
var import_zod15 = require("zod");
|
|
4130
|
-
|
|
4131
|
-
// src/_api/generated/_cfg_accounts/schemas/WebmailLinkProviderEnum.ts
|
|
4132
|
-
var import_zod14 = require("zod");
|
|
4133
|
-
var WebmailLinkProviderEnumSchema = import_zod14.z.enum(["gmail", "outlook", "yahoo", "icloud", "proton", "zoho", "aol", "fastmail", "gmx", "mailcom", "mail_ru", "yandex", "rambler", "qq", "netease", "sina", "aliyun", "naver", "daum", "web_de", "tonline", "seznam", "wp_pl", "o2_pl", "interia", "libero", "virgilio", "orange", "laposte", "free_fr", "sfr"]);
|
|
4134
|
-
|
|
4135
|
-
// src/_api/generated/_cfg_accounts/schemas/WebmailLink.ts
|
|
4136
|
-
var WebmailLinkSchema = import_zod15.z.object({
|
|
4137
|
-
provider: WebmailLinkProviderEnumSchema,
|
|
4138
|
-
provider_name: import_zod15.z.string(),
|
|
4139
|
-
url: import_zod15.z.url().or(import_zod15.z.literal("")),
|
|
4140
|
-
is_search: import_zod15.z.boolean()
|
|
4141
|
-
});
|
|
4142
|
-
|
|
4143
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPRequestResponse.ts
|
|
4144
|
-
var OTPRequestResponseSchema = import_zod16.z.object({
|
|
4145
|
-
message: import_zod16.z.string(),
|
|
4146
|
-
webmail: WebmailLinkSchema.nullable().optional()
|
|
4147
|
-
});
|
|
4148
|
-
|
|
4149
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
|
|
4150
4352
|
function useCfgAccountsOtpRequestCreate(config) {
|
|
4151
4353
|
return (0, import_mutation7.default)(
|
|
4152
4354
|
["cfg_accounts_otp_request_create"],
|
|
4153
4355
|
async (_key, { arg }) => {
|
|
4154
4356
|
const res = await CfgAccountsOtp.cfgAccountsOtpRequestCreate({ ...arg, throwOnError: true });
|
|
4155
4357
|
const data = res.data;
|
|
4156
|
-
|
|
4157
|
-
|
|
4358
|
+
void Promise.resolve().then(() => (init_OTPRequestResponse(), OTPRequestResponse_exports)).then(({ OTPRequestResponseSchema: OTPRequestResponseSchema2 }) => {
|
|
4359
|
+
const parsed = OTPRequestResponseSchema2.safeParse(data);
|
|
4360
|
+
if (parsed.success) return;
|
|
4158
4361
|
console.warn(
|
|
4159
4362
|
"[zod] response did not match schema",
|
|
4160
4363
|
{
|
|
@@ -4184,9 +4387,9 @@ function useCfgAccountsOtpRequestCreate(config) {
|
|
|
4184
4387
|
} catch {
|
|
4185
4388
|
}
|
|
4186
4389
|
}
|
|
4187
|
-
|
|
4188
|
-
}
|
|
4189
|
-
return
|
|
4390
|
+
}).catch(() => {
|
|
4391
|
+
});
|
|
4392
|
+
return data;
|
|
4190
4393
|
},
|
|
4191
4394
|
config
|
|
4192
4395
|
);
|
|
@@ -4195,54 +4398,15 @@ __name(useCfgAccountsOtpRequestCreate, "useCfgAccountsOtpRequestCreate");
|
|
|
4195
4398
|
|
|
4196
4399
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
|
|
4197
4400
|
var import_mutation8 = __toESM(require("swr/mutation"), 1);
|
|
4198
|
-
|
|
4199
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts
|
|
4200
|
-
var import_zod18 = require("zod");
|
|
4201
|
-
|
|
4202
|
-
// src/_api/generated/_cfg_accounts/schemas/User.ts
|
|
4203
|
-
var import_zod17 = require("zod");
|
|
4204
|
-
var UserSchema = import_zod17.z.object({
|
|
4205
|
-
id: import_zod17.z.number().int(),
|
|
4206
|
-
email: import_zod17.z.email().or(import_zod17.z.literal("")),
|
|
4207
|
-
first_name: import_zod17.z.string().max(50).nullable().optional(),
|
|
4208
|
-
last_name: import_zod17.z.string().max(50).nullable().optional(),
|
|
4209
|
-
full_name: import_zod17.z.string(),
|
|
4210
|
-
initials: import_zod17.z.string(),
|
|
4211
|
-
display_username: import_zod17.z.string(),
|
|
4212
|
-
company: import_zod17.z.string().max(100).nullable().optional(),
|
|
4213
|
-
phone: import_zod17.z.string().max(20).nullable().optional(),
|
|
4214
|
-
position: import_zod17.z.string().max(100).nullable().optional(),
|
|
4215
|
-
language: import_zod17.z.string().max(10).nullable().optional(),
|
|
4216
|
-
timezone: import_zod17.z.string().max(64).nullable().optional(),
|
|
4217
|
-
avatar: import_zod17.z.url().or(import_zod17.z.literal("")).nullable(),
|
|
4218
|
-
is_staff: import_zod17.z.boolean(),
|
|
4219
|
-
is_superuser: import_zod17.z.boolean(),
|
|
4220
|
-
date_joined: import_zod17.z.string().datetime({ offset: true }),
|
|
4221
|
-
last_login: import_zod17.z.string().datetime({ offset: true }).nullable(),
|
|
4222
|
-
unanswered_messages_count: import_zod17.z.number().int().default(0),
|
|
4223
|
-
api_key: import_zod17.z.string().nullable()
|
|
4224
|
-
});
|
|
4225
|
-
|
|
4226
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts
|
|
4227
|
-
var OTPVerifyResponseSchema = import_zod18.z.object({
|
|
4228
|
-
requires_2fa: import_zod18.z.boolean().default(false).optional(),
|
|
4229
|
-
session_id: import_zod18.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
4230
|
-
refresh: import_zod18.z.string().nullable().optional(),
|
|
4231
|
-
access: import_zod18.z.string().nullable().optional(),
|
|
4232
|
-
user: UserSchema.nullable().optional(),
|
|
4233
|
-
should_prompt_2fa: import_zod18.z.boolean().optional(),
|
|
4234
|
-
persistent_session: import_zod18.z.boolean().optional()
|
|
4235
|
-
});
|
|
4236
|
-
|
|
4237
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
|
|
4238
4401
|
function useCfgAccountsOtpVerifyCreate(config) {
|
|
4239
4402
|
return (0, import_mutation8.default)(
|
|
4240
4403
|
["cfg_accounts_otp_verify_create"],
|
|
4241
4404
|
async (_key, { arg }) => {
|
|
4242
4405
|
const res = await CfgAccountsOtp.cfgAccountsOtpVerifyCreate({ ...arg, throwOnError: true });
|
|
4243
4406
|
const data = res.data;
|
|
4244
|
-
|
|
4245
|
-
|
|
4407
|
+
void Promise.resolve().then(() => (init_OTPVerifyResponse(), OTPVerifyResponse_exports)).then(({ OTPVerifyResponseSchema: OTPVerifyResponseSchema2 }) => {
|
|
4408
|
+
const parsed = OTPVerifyResponseSchema2.safeParse(data);
|
|
4409
|
+
if (parsed.success) return;
|
|
4246
4410
|
console.warn(
|
|
4247
4411
|
"[zod] response did not match schema",
|
|
4248
4412
|
{
|
|
@@ -4272,9 +4436,9 @@ function useCfgAccountsOtpVerifyCreate(config) {
|
|
|
4272
4436
|
} catch {
|
|
4273
4437
|
}
|
|
4274
4438
|
}
|
|
4275
|
-
|
|
4276
|
-
}
|
|
4277
|
-
return
|
|
4439
|
+
}).catch(() => {
|
|
4440
|
+
});
|
|
4441
|
+
return data;
|
|
4278
4442
|
},
|
|
4279
4443
|
config
|
|
4280
4444
|
);
|
|
@@ -4289,8 +4453,9 @@ function useCfgAccountsProfileAvatarCreate(config) {
|
|
|
4289
4453
|
async (_key, { arg }) => {
|
|
4290
4454
|
const res = await CfgAccountsProfile.cfgAccountsProfileAvatarCreate({ ...arg, throwOnError: true });
|
|
4291
4455
|
const data = res.data;
|
|
4292
|
-
|
|
4293
|
-
|
|
4456
|
+
void Promise.resolve().then(() => (init_User(), User_exports)).then(({ UserSchema: UserSchema2 }) => {
|
|
4457
|
+
const parsed = UserSchema2.safeParse(data);
|
|
4458
|
+
if (parsed.success) return;
|
|
4294
4459
|
console.warn(
|
|
4295
4460
|
"[zod] response did not match schema",
|
|
4296
4461
|
{
|
|
@@ -4320,9 +4485,9 @@ function useCfgAccountsProfileAvatarCreate(config) {
|
|
|
4320
4485
|
} catch {
|
|
4321
4486
|
}
|
|
4322
4487
|
}
|
|
4323
|
-
|
|
4324
|
-
}
|
|
4325
|
-
return
|
|
4488
|
+
}).catch(() => {
|
|
4489
|
+
});
|
|
4490
|
+
return data;
|
|
4326
4491
|
},
|
|
4327
4492
|
config
|
|
4328
4493
|
);
|
|
@@ -4332,13 +4497,6 @@ __name(useCfgAccountsProfileAvatarCreate, "useCfgAccountsProfileAvatarCreate");
|
|
|
4332
4497
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts
|
|
4333
4498
|
var import_mutation10 = __toESM(require("swr/mutation"), 1);
|
|
4334
4499
|
|
|
4335
|
-
// src/_api/generated/_cfg_accounts/schemas/AccountDeleteResponse.ts
|
|
4336
|
-
var import_zod19 = require("zod");
|
|
4337
|
-
var AccountDeleteResponseSchema = import_zod19.z.object({
|
|
4338
|
-
success: import_zod19.z.boolean(),
|
|
4339
|
-
message: import_zod19.z.string()
|
|
4340
|
-
});
|
|
4341
|
-
|
|
4342
4500
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts
|
|
4343
4501
|
var import_mutation11 = __toESM(require("swr/mutation"), 1);
|
|
4344
4502
|
|
|
@@ -4350,8 +4508,9 @@ function useCfgAccountsProfilePartialUpdate(config) {
|
|
|
4350
4508
|
async (_key, { arg }) => {
|
|
4351
4509
|
const res = await CfgAccountsProfile.cfgAccountsProfilePartialUpdate({ ...arg, throwOnError: true });
|
|
4352
4510
|
const data = res.data;
|
|
4353
|
-
|
|
4354
|
-
|
|
4511
|
+
void Promise.resolve().then(() => (init_User(), User_exports)).then(({ UserSchema: UserSchema2 }) => {
|
|
4512
|
+
const parsed = UserSchema2.safeParse(data);
|
|
4513
|
+
if (parsed.success) return;
|
|
4355
4514
|
console.warn(
|
|
4356
4515
|
"[zod] response did not match schema",
|
|
4357
4516
|
{
|
|
@@ -4381,9 +4540,9 @@ function useCfgAccountsProfilePartialUpdate(config) {
|
|
|
4381
4540
|
} catch {
|
|
4382
4541
|
}
|
|
4383
4542
|
}
|
|
4384
|
-
|
|
4385
|
-
}
|
|
4386
|
-
return
|
|
4543
|
+
}).catch(() => {
|
|
4544
|
+
});
|
|
4545
|
+
return data;
|
|
4387
4546
|
},
|
|
4388
4547
|
config
|
|
4389
4548
|
);
|
|
@@ -4404,8 +4563,9 @@ function useCfgAccountsProfileUpdateUpdate(config) {
|
|
|
4404
4563
|
async (_key, { arg }) => {
|
|
4405
4564
|
const res = await CfgAccountsProfile.cfgAccountsProfileUpdateUpdate({ ...arg, throwOnError: true });
|
|
4406
4565
|
const data = res.data;
|
|
4407
|
-
|
|
4408
|
-
|
|
4566
|
+
void Promise.resolve().then(() => (init_User(), User_exports)).then(({ UserSchema: UserSchema2 }) => {
|
|
4567
|
+
const parsed = UserSchema2.safeParse(data);
|
|
4568
|
+
if (parsed.success) return;
|
|
4409
4569
|
console.warn(
|
|
4410
4570
|
"[zod] response did not match schema",
|
|
4411
4571
|
{
|
|
@@ -4435,9 +4595,9 @@ function useCfgAccountsProfileUpdateUpdate(config) {
|
|
|
4435
4595
|
} catch {
|
|
4436
4596
|
}
|
|
4437
4597
|
}
|
|
4438
|
-
|
|
4439
|
-
}
|
|
4440
|
-
return
|
|
4598
|
+
}).catch(() => {
|
|
4599
|
+
});
|
|
4600
|
+
return data;
|
|
4441
4601
|
},
|
|
4442
4602
|
config
|
|
4443
4603
|
);
|
|
@@ -4449,28 +4609,15 @@ var import_mutation15 = __toESM(require("swr/mutation"), 1);
|
|
|
4449
4609
|
|
|
4450
4610
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts
|
|
4451
4611
|
var import_mutation16 = __toESM(require("swr/mutation"), 1);
|
|
4452
|
-
|
|
4453
|
-
// src/_api/generated/_cfg_accounts/schemas/PasswordLoginResponse.ts
|
|
4454
|
-
var import_zod20 = require("zod");
|
|
4455
|
-
var PasswordLoginResponseSchema = import_zod20.z.object({
|
|
4456
|
-
requires_2fa: import_zod20.z.boolean().default(false).optional(),
|
|
4457
|
-
session_id: import_zod20.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
4458
|
-
refresh: import_zod20.z.string().nullable().optional(),
|
|
4459
|
-
access: import_zod20.z.string().nullable().optional(),
|
|
4460
|
-
user: UserSchema.nullable().optional(),
|
|
4461
|
-
should_prompt_2fa: import_zod20.z.boolean().optional(),
|
|
4462
|
-
persistent_session: import_zod20.z.boolean().optional()
|
|
4463
|
-
});
|
|
4464
|
-
|
|
4465
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts
|
|
4466
4612
|
function useCfgAccountsTokenCreate(config) {
|
|
4467
4613
|
return (0, import_mutation16.default)(
|
|
4468
4614
|
["cfg_accounts_token_create"],
|
|
4469
4615
|
async (_key, { arg }) => {
|
|
4470
4616
|
const res = await CfgAccountsAuth.cfgAccountsTokenCreate({ ...arg, throwOnError: true });
|
|
4471
4617
|
const data = res.data;
|
|
4472
|
-
|
|
4473
|
-
|
|
4618
|
+
void Promise.resolve().then(() => (init_PasswordLoginResponse(), PasswordLoginResponse_exports)).then(({ PasswordLoginResponseSchema: PasswordLoginResponseSchema2 }) => {
|
|
4619
|
+
const parsed = PasswordLoginResponseSchema2.safeParse(data);
|
|
4620
|
+
if (parsed.success) return;
|
|
4474
4621
|
console.warn(
|
|
4475
4622
|
"[zod] response did not match schema",
|
|
4476
4623
|
{
|
|
@@ -4500,9 +4647,9 @@ function useCfgAccountsTokenCreate(config) {
|
|
|
4500
4647
|
} catch {
|
|
4501
4648
|
}
|
|
4502
4649
|
}
|
|
4503
|
-
|
|
4504
|
-
}
|
|
4505
|
-
return
|
|
4650
|
+
}).catch(() => {
|
|
4651
|
+
});
|
|
4652
|
+
return data;
|
|
4506
4653
|
},
|
|
4507
4654
|
config
|
|
4508
4655
|
);
|
|
@@ -4512,134 +4659,173 @@ __name(useCfgAccountsTokenCreate, "useCfgAccountsTokenCreate");
|
|
|
4512
4659
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts
|
|
4513
4660
|
var import_mutation17 = __toESM(require("swr/mutation"), 1);
|
|
4514
4661
|
|
|
4515
|
-
// src/_api/generated/_cfg_accounts/schemas/
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
access: import_zod21.z.string(),
|
|
4519
|
-
refresh: import_zod21.z.string()
|
|
4520
|
-
});
|
|
4662
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4663
|
+
init_APIKey();
|
|
4664
|
+
init_APIKeyRegenerate();
|
|
4521
4665
|
|
|
4522
4666
|
// src/_api/generated/_cfg_accounts/schemas/APIKeyRequest.ts
|
|
4523
|
-
var
|
|
4524
|
-
var APIKeyRequestSchema =
|
|
4525
|
-
key:
|
|
4526
|
-
reissued_at:
|
|
4527
|
-
created_at:
|
|
4667
|
+
var import_zod9 = require("zod");
|
|
4668
|
+
var APIKeyRequestSchema = import_zod9.z.object({
|
|
4669
|
+
key: import_zod9.z.string().min(1),
|
|
4670
|
+
reissued_at: import_zod9.z.string().datetime({ offset: true }).nullable(),
|
|
4671
|
+
created_at: import_zod9.z.string().datetime({ offset: true })
|
|
4528
4672
|
});
|
|
4529
4673
|
|
|
4674
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4675
|
+
init_APIKeyReveal();
|
|
4676
|
+
|
|
4530
4677
|
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestRequest.ts
|
|
4531
|
-
var
|
|
4532
|
-
var APIKeyTestRequestSchema =
|
|
4533
|
-
key:
|
|
4678
|
+
var import_zod11 = require("zod");
|
|
4679
|
+
var APIKeyTestRequestSchema = import_zod11.z.object({
|
|
4680
|
+
key: import_zod11.z.string().min(1)
|
|
4534
4681
|
});
|
|
4535
4682
|
|
|
4683
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4684
|
+
init_APIKeyTestResult();
|
|
4685
|
+
init_AccountDeleteResponse();
|
|
4686
|
+
|
|
4536
4687
|
// src/_api/generated/_cfg_accounts/schemas/CfgUserUpdateRequest.ts
|
|
4537
|
-
var
|
|
4538
|
-
var CfgUserUpdateRequestSchema =
|
|
4539
|
-
first_name:
|
|
4540
|
-
last_name:
|
|
4541
|
-
company:
|
|
4542
|
-
phone:
|
|
4543
|
-
position:
|
|
4544
|
-
language:
|
|
4545
|
-
timezone:
|
|
4688
|
+
var import_zod14 = require("zod");
|
|
4689
|
+
var CfgUserUpdateRequestSchema = import_zod14.z.object({
|
|
4690
|
+
first_name: import_zod14.z.string().max(50).optional(),
|
|
4691
|
+
last_name: import_zod14.z.string().max(50).optional(),
|
|
4692
|
+
company: import_zod14.z.string().max(100).optional(),
|
|
4693
|
+
phone: import_zod14.z.string().max(20).optional(),
|
|
4694
|
+
position: import_zod14.z.string().max(100).optional(),
|
|
4695
|
+
language: import_zod14.z.string().max(10).optional(),
|
|
4696
|
+
timezone: import_zod14.z.string().max(64).optional()
|
|
4546
4697
|
});
|
|
4547
4698
|
|
|
4699
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4700
|
+
init_ConsentPolicy();
|
|
4701
|
+
init_MarketingConsentDefaultEnum();
|
|
4702
|
+
|
|
4548
4703
|
// src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeRequestRequest.ts
|
|
4549
|
-
var
|
|
4550
|
-
var OAuthAuthorizeRequestRequestSchema =
|
|
4551
|
-
redirect_uri:
|
|
4552
|
-
source_url:
|
|
4704
|
+
var import_zod17 = require("zod");
|
|
4705
|
+
var OAuthAuthorizeRequestRequestSchema = import_zod17.z.object({
|
|
4706
|
+
redirect_uri: import_zod17.z.url().or(import_zod17.z.literal("")).optional(),
|
|
4707
|
+
source_url: import_zod17.z.url().or(import_zod17.z.literal("")).optional()
|
|
4553
4708
|
});
|
|
4554
4709
|
|
|
4710
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4711
|
+
init_OAuthAuthorizeResponse();
|
|
4712
|
+
|
|
4555
4713
|
// src/_api/generated/_cfg_accounts/schemas/OAuthCallbackRequestRequest.ts
|
|
4556
|
-
var
|
|
4557
|
-
var OAuthCallbackRequestRequestSchema =
|
|
4558
|
-
code:
|
|
4559
|
-
state:
|
|
4560
|
-
redirect_uri:
|
|
4561
|
-
remember_me:
|
|
4714
|
+
var import_zod19 = require("zod");
|
|
4715
|
+
var OAuthCallbackRequestRequestSchema = import_zod19.z.object({
|
|
4716
|
+
code: import_zod19.z.string().min(10).max(500),
|
|
4717
|
+
state: import_zod19.z.string().min(20).max(100),
|
|
4718
|
+
redirect_uri: import_zod19.z.url().or(import_zod19.z.literal("")).optional(),
|
|
4719
|
+
remember_me: import_zod19.z.boolean().default(false).optional()
|
|
4562
4720
|
});
|
|
4563
4721
|
|
|
4722
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4723
|
+
init_OAuthConnection();
|
|
4724
|
+
|
|
4564
4725
|
// src/_api/generated/_cfg_accounts/schemas/OAuthDisconnectRequestRequest.ts
|
|
4565
|
-
var
|
|
4566
|
-
|
|
4726
|
+
var import_zod22 = require("zod");
|
|
4727
|
+
init_OAuthProviderEnum();
|
|
4728
|
+
var OAuthDisconnectRequestRequestSchema = import_zod22.z.object({
|
|
4567
4729
|
provider: OAuthProviderEnumSchema
|
|
4568
4730
|
});
|
|
4569
4731
|
|
|
4570
4732
|
// src/_api/generated/_cfg_accounts/schemas/OAuthError.ts
|
|
4571
|
-
var
|
|
4572
|
-
var OAuthErrorSchema =
|
|
4573
|
-
error:
|
|
4574
|
-
error_description:
|
|
4733
|
+
var import_zod23 = require("zod");
|
|
4734
|
+
var OAuthErrorSchema = import_zod23.z.object({
|
|
4735
|
+
error: import_zod23.z.string(),
|
|
4736
|
+
error_description: import_zod23.z.string().optional()
|
|
4575
4737
|
});
|
|
4576
4738
|
|
|
4739
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4740
|
+
init_OAuthProviderEnum();
|
|
4741
|
+
init_OAuthProvidersResponse();
|
|
4742
|
+
init_OAuthTokenResponse();
|
|
4743
|
+
|
|
4577
4744
|
// src/_api/generated/_cfg_accounts/schemas/OTPErrorResponse.ts
|
|
4578
|
-
var
|
|
4579
|
-
var OTPErrorResponseSchema =
|
|
4580
|
-
error:
|
|
4581
|
-
error_code:
|
|
4582
|
-
retry_after:
|
|
4745
|
+
var import_zod26 = require("zod");
|
|
4746
|
+
var OTPErrorResponseSchema = import_zod26.z.object({
|
|
4747
|
+
error: import_zod26.z.string(),
|
|
4748
|
+
error_code: import_zod26.z.string().nullable().optional(),
|
|
4749
|
+
retry_after: import_zod26.z.number().int().nullable().optional()
|
|
4583
4750
|
});
|
|
4584
4751
|
|
|
4585
4752
|
// src/_api/generated/_cfg_accounts/schemas/OTPRequestRequest.ts
|
|
4586
|
-
var
|
|
4587
|
-
var OTPRequestRequestSchema =
|
|
4588
|
-
identifier:
|
|
4589
|
-
source_url:
|
|
4590
|
-
marketing_consent:
|
|
4591
|
-
consent_disclosure_version:
|
|
4753
|
+
var import_zod27 = require("zod");
|
|
4754
|
+
var OTPRequestRequestSchema = import_zod27.z.object({
|
|
4755
|
+
identifier: import_zod27.z.string().min(1),
|
|
4756
|
+
source_url: import_zod27.z.url().or(import_zod27.z.literal("")).optional(),
|
|
4757
|
+
marketing_consent: import_zod27.z.boolean().nullable().optional(),
|
|
4758
|
+
consent_disclosure_version: import_zod27.z.string().max(64).optional()
|
|
4592
4759
|
});
|
|
4593
4760
|
|
|
4761
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4762
|
+
init_OTPRequestResponse();
|
|
4763
|
+
|
|
4594
4764
|
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyRequest.ts
|
|
4595
|
-
var
|
|
4596
|
-
var OTPVerifyRequestSchema =
|
|
4597
|
-
identifier:
|
|
4598
|
-
otp:
|
|
4599
|
-
source_url:
|
|
4600
|
-
remember_me:
|
|
4765
|
+
var import_zod28 = require("zod");
|
|
4766
|
+
var OTPVerifyRequestSchema = import_zod28.z.object({
|
|
4767
|
+
identifier: import_zod28.z.string().min(1),
|
|
4768
|
+
otp: import_zod28.z.string().min(4).max(4),
|
|
4769
|
+
source_url: import_zod28.z.url().or(import_zod28.z.literal("")).optional(),
|
|
4770
|
+
remember_me: import_zod28.z.boolean().default(false).optional()
|
|
4601
4771
|
});
|
|
4602
4772
|
|
|
4773
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4774
|
+
init_OTPVerifyResponse();
|
|
4775
|
+
|
|
4603
4776
|
// src/_api/generated/_cfg_accounts/schemas/PasswordLoginError.ts
|
|
4604
|
-
var
|
|
4605
|
-
var PasswordLoginErrorSchema =
|
|
4606
|
-
error:
|
|
4607
|
-
error_code:
|
|
4608
|
-
retry_after:
|
|
4777
|
+
var import_zod29 = require("zod");
|
|
4778
|
+
var PasswordLoginErrorSchema = import_zod29.z.object({
|
|
4779
|
+
error: import_zod29.z.string(),
|
|
4780
|
+
error_code: import_zod29.z.string(),
|
|
4781
|
+
retry_after: import_zod29.z.number().int().nullable().optional()
|
|
4609
4782
|
});
|
|
4610
4783
|
|
|
4611
4784
|
// src/_api/generated/_cfg_accounts/schemas/PasswordLoginRequest.ts
|
|
4612
|
-
var
|
|
4613
|
-
var PasswordLoginRequestSchema =
|
|
4614
|
-
remember_me:
|
|
4615
|
-
email:
|
|
4616
|
-
password:
|
|
4785
|
+
var import_zod30 = require("zod");
|
|
4786
|
+
var PasswordLoginRequestSchema = import_zod30.z.object({
|
|
4787
|
+
remember_me: import_zod30.z.boolean().default(false).optional(),
|
|
4788
|
+
email: import_zod30.z.email(),
|
|
4789
|
+
password: import_zod30.z.string()
|
|
4617
4790
|
});
|
|
4618
4791
|
|
|
4792
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4793
|
+
init_PasswordLoginResponse();
|
|
4794
|
+
|
|
4619
4795
|
// src/_api/generated/_cfg_accounts/schemas/PatchedCfgUserUpdateRequest.ts
|
|
4620
|
-
var
|
|
4621
|
-
var PatchedCfgUserUpdateRequestSchema =
|
|
4622
|
-
first_name:
|
|
4623
|
-
last_name:
|
|
4624
|
-
company:
|
|
4625
|
-
phone:
|
|
4626
|
-
position:
|
|
4627
|
-
language:
|
|
4628
|
-
timezone:
|
|
4796
|
+
var import_zod31 = require("zod");
|
|
4797
|
+
var PatchedCfgUserUpdateRequestSchema = import_zod31.z.object({
|
|
4798
|
+
first_name: import_zod31.z.string().max(50).optional(),
|
|
4799
|
+
last_name: import_zod31.z.string().max(50).optional(),
|
|
4800
|
+
company: import_zod31.z.string().max(100).optional(),
|
|
4801
|
+
phone: import_zod31.z.string().max(20).optional(),
|
|
4802
|
+
position: import_zod31.z.string().max(100).optional(),
|
|
4803
|
+
language: import_zod31.z.string().max(10).optional(),
|
|
4804
|
+
timezone: import_zod31.z.string().max(64).optional()
|
|
4629
4805
|
});
|
|
4630
4806
|
|
|
4631
4807
|
// src/_api/generated/_cfg_accounts/schemas/TokenBlacklistRequest.ts
|
|
4632
|
-
var
|
|
4633
|
-
var TokenBlacklistRequestSchema =
|
|
4634
|
-
refresh:
|
|
4808
|
+
var import_zod32 = require("zod");
|
|
4809
|
+
var TokenBlacklistRequestSchema = import_zod32.z.object({
|
|
4810
|
+
refresh: import_zod32.z.string().min(1)
|
|
4635
4811
|
});
|
|
4636
4812
|
|
|
4813
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4814
|
+
init_TokenRefresh();
|
|
4815
|
+
|
|
4637
4816
|
// src/_api/generated/_cfg_accounts/schemas/TokenRefreshRequest.ts
|
|
4638
|
-
var
|
|
4639
|
-
var TokenRefreshRequestSchema =
|
|
4640
|
-
refresh:
|
|
4817
|
+
var import_zod34 = require("zod");
|
|
4818
|
+
var TokenRefreshRequestSchema = import_zod34.z.object({
|
|
4819
|
+
refresh: import_zod34.z.string().min(1)
|
|
4641
4820
|
});
|
|
4642
4821
|
|
|
4822
|
+
// src/_api/generated/_cfg_accounts/schemas/index.ts
|
|
4823
|
+
init_User();
|
|
4824
|
+
init_WebmailLink();
|
|
4825
|
+
init_WebmailLinkProviderEnum();
|
|
4826
|
+
init_cfg_accounts_oauth_connections_response_200_AutoRef();
|
|
4827
|
+
init_cfg_accounts_oauth_disconnect_response_200_AutoRef();
|
|
4828
|
+
|
|
4643
4829
|
// src/auth/context/AccountsContext.tsx
|
|
4644
4830
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
4645
4831
|
function hasApiOrigin() {
|