@djangocfg/api 2.1.572 → 2.1.574
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-32BGUXEK.mjs +13 -0
- package/dist/AccountDeleteResponse-32BGUXEK.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/OAuthAuthorizeResponse-TQMQXACC.mjs +13 -0
- package/dist/OAuthAuthorizeResponse-TQMQXACC.mjs.map +1 -0
- package/dist/OAuthProvidersResponse-5DUH2AT7.mjs +9 -0
- package/dist/OAuthProvidersResponse-5DUH2AT7.mjs.map +1 -0
- package/dist/OAuthProvidersResponse-VM3YO5FZ.mjs +12 -0
- package/dist/OAuthProvidersResponse-VM3YO5FZ.mjs.map +1 -0
- package/dist/OAuthTokenResponse-4SJDK73L.mjs +9 -0
- package/dist/OAuthTokenResponse-4SJDK73L.mjs.map +1 -0
- package/dist/OAuthTokenResponse-ELAZFNHE.mjs +20 -0
- package/dist/OAuthTokenResponse-ELAZFNHE.mjs.map +1 -0
- package/dist/OTPRequestResponse-KKEOYXXS.mjs +9 -0
- package/dist/OTPRequestResponse-KKEOYXXS.mjs.map +1 -0
- package/dist/OTPRequestResponse-ZU5KRNSW.mjs +30 -0
- package/dist/OTPRequestResponse-ZU5KRNSW.mjs.map +1 -0
- package/dist/OTPVerifyResponse-LJVUP5JS.mjs +21 -0
- package/dist/OTPVerifyResponse-LJVUP5JS.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/PasswordLoginResponse-A7QRJTAQ.mjs +21 -0
- package/dist/PasswordLoginResponse-A7QRJTAQ.mjs.map +1 -0
- package/dist/TokenRefresh-JAUMGIFS.mjs +13 -0
- package/dist/TokenRefresh-JAUMGIFS.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 +163 -347
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +1 -12
- package/dist/auth.d.ts +1 -12
- package/dist/auth.mjs +39 -349
- package/dist/auth.mjs.map +1 -1
- package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-ILSH4EVV.mjs +31 -0
- package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-ILSH4EVV.mjs.map +1 -0
- 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-4ZCO4CSB.mjs +12 -0
- package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-4ZCO4CSB.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/src/auth/context/AccountsContext.tsx +0 -2
- package/src/auth/context/index.ts +1 -1
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,130 @@ 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
|
+
|
|
32
159
|
// src/auth/index.ts
|
|
33
160
|
var auth_exports = {};
|
|
34
161
|
__export(auth_exports, {
|
|
@@ -40,7 +167,6 @@ __export(auth_exports, {
|
|
|
40
167
|
AnalyticsEvent: () => AnalyticsEvent,
|
|
41
168
|
AuthContext: () => AuthContext_default,
|
|
42
169
|
AuthProvider: () => AuthProvider,
|
|
43
|
-
PatchedCfgUserUpdateRequestSchema: () => PatchedCfgUserUpdateRequestSchema,
|
|
44
170
|
authLogger: () => authLogger,
|
|
45
171
|
clearProfileCache: () => clearProfileCache,
|
|
46
172
|
consumeSavedRedirect: () => consumeSavedRedirect,
|
|
@@ -3991,170 +4117,44 @@ var import_react15 = require("react");
|
|
|
3991
4117
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts
|
|
3992
4118
|
var import_mutation = __toESM(require("swr/mutation"), 1);
|
|
3993
4119
|
|
|
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
4120
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts
|
|
4002
4121
|
var import_swr = __toESM(require("swr"), 1);
|
|
4003
4122
|
|
|
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
4123
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
|
|
4013
4124
|
var import_mutation2 = __toESM(require("swr/mutation"), 1);
|
|
4014
4125
|
|
|
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
4126
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
|
|
4024
4127
|
var import_mutation3 = __toESM(require("swr/mutation"), 1);
|
|
4025
4128
|
|
|
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
4129
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts
|
|
4034
4130
|
var import_swr2 = __toESM(require("swr"), 1);
|
|
4035
4131
|
|
|
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
4132
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts
|
|
4062
4133
|
var import_mutation4 = __toESM(require("swr/mutation"), 1);
|
|
4063
4134
|
|
|
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
4135
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts
|
|
4071
4136
|
var import_mutation5 = __toESM(require("swr/mutation"), 1);
|
|
4072
4137
|
|
|
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
4138
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts
|
|
4081
4139
|
var import_mutation6 = __toESM(require("swr/mutation"), 1);
|
|
4082
4140
|
|
|
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
4141
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts
|
|
4098
4142
|
var import_swr3 = __toESM(require("swr"), 1);
|
|
4099
4143
|
|
|
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
4144
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts
|
|
4107
4145
|
var import_swr4 = __toESM(require("swr"), 1);
|
|
4108
4146
|
|
|
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
4147
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
|
|
4123
4148
|
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
4149
|
function useCfgAccountsOtpRequestCreate(config) {
|
|
4151
4150
|
return (0, import_mutation7.default)(
|
|
4152
4151
|
["cfg_accounts_otp_request_create"],
|
|
4153
4152
|
async (_key, { arg }) => {
|
|
4154
4153
|
const res = await CfgAccountsOtp.cfgAccountsOtpRequestCreate({ ...arg, throwOnError: true });
|
|
4155
4154
|
const data = res.data;
|
|
4156
|
-
|
|
4157
|
-
|
|
4155
|
+
void Promise.resolve().then(() => (init_OTPRequestResponse(), OTPRequestResponse_exports)).then(({ OTPRequestResponseSchema: OTPRequestResponseSchema2 }) => {
|
|
4156
|
+
const parsed = OTPRequestResponseSchema2.safeParse(data);
|
|
4157
|
+
if (parsed.success) return;
|
|
4158
4158
|
console.warn(
|
|
4159
4159
|
"[zod] response did not match schema",
|
|
4160
4160
|
{
|
|
@@ -4184,9 +4184,9 @@ function useCfgAccountsOtpRequestCreate(config) {
|
|
|
4184
4184
|
} catch {
|
|
4185
4185
|
}
|
|
4186
4186
|
}
|
|
4187
|
-
|
|
4188
|
-
}
|
|
4189
|
-
return
|
|
4187
|
+
}).catch(() => {
|
|
4188
|
+
});
|
|
4189
|
+
return data;
|
|
4190
4190
|
},
|
|
4191
4191
|
config
|
|
4192
4192
|
);
|
|
@@ -4195,54 +4195,15 @@ __name(useCfgAccountsOtpRequestCreate, "useCfgAccountsOtpRequestCreate");
|
|
|
4195
4195
|
|
|
4196
4196
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
|
|
4197
4197
|
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
4198
|
function useCfgAccountsOtpVerifyCreate(config) {
|
|
4239
4199
|
return (0, import_mutation8.default)(
|
|
4240
4200
|
["cfg_accounts_otp_verify_create"],
|
|
4241
4201
|
async (_key, { arg }) => {
|
|
4242
4202
|
const res = await CfgAccountsOtp.cfgAccountsOtpVerifyCreate({ ...arg, throwOnError: true });
|
|
4243
4203
|
const data = res.data;
|
|
4244
|
-
|
|
4245
|
-
|
|
4204
|
+
void Promise.resolve().then(() => (init_OTPVerifyResponse(), OTPVerifyResponse_exports)).then(({ OTPVerifyResponseSchema: OTPVerifyResponseSchema2 }) => {
|
|
4205
|
+
const parsed = OTPVerifyResponseSchema2.safeParse(data);
|
|
4206
|
+
if (parsed.success) return;
|
|
4246
4207
|
console.warn(
|
|
4247
4208
|
"[zod] response did not match schema",
|
|
4248
4209
|
{
|
|
@@ -4272,9 +4233,9 @@ function useCfgAccountsOtpVerifyCreate(config) {
|
|
|
4272
4233
|
} catch {
|
|
4273
4234
|
}
|
|
4274
4235
|
}
|
|
4275
|
-
|
|
4276
|
-
}
|
|
4277
|
-
return
|
|
4236
|
+
}).catch(() => {
|
|
4237
|
+
});
|
|
4238
|
+
return data;
|
|
4278
4239
|
},
|
|
4279
4240
|
config
|
|
4280
4241
|
);
|
|
@@ -4289,8 +4250,9 @@ function useCfgAccountsProfileAvatarCreate(config) {
|
|
|
4289
4250
|
async (_key, { arg }) => {
|
|
4290
4251
|
const res = await CfgAccountsProfile.cfgAccountsProfileAvatarCreate({ ...arg, throwOnError: true });
|
|
4291
4252
|
const data = res.data;
|
|
4292
|
-
|
|
4293
|
-
|
|
4253
|
+
void Promise.resolve().then(() => (init_User(), User_exports)).then(({ UserSchema: UserSchema2 }) => {
|
|
4254
|
+
const parsed = UserSchema2.safeParse(data);
|
|
4255
|
+
if (parsed.success) return;
|
|
4294
4256
|
console.warn(
|
|
4295
4257
|
"[zod] response did not match schema",
|
|
4296
4258
|
{
|
|
@@ -4320,9 +4282,9 @@ function useCfgAccountsProfileAvatarCreate(config) {
|
|
|
4320
4282
|
} catch {
|
|
4321
4283
|
}
|
|
4322
4284
|
}
|
|
4323
|
-
|
|
4324
|
-
}
|
|
4325
|
-
return
|
|
4285
|
+
}).catch(() => {
|
|
4286
|
+
});
|
|
4287
|
+
return data;
|
|
4326
4288
|
},
|
|
4327
4289
|
config
|
|
4328
4290
|
);
|
|
@@ -4332,13 +4294,6 @@ __name(useCfgAccountsProfileAvatarCreate, "useCfgAccountsProfileAvatarCreate");
|
|
|
4332
4294
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts
|
|
4333
4295
|
var import_mutation10 = __toESM(require("swr/mutation"), 1);
|
|
4334
4296
|
|
|
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
4297
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts
|
|
4343
4298
|
var import_mutation11 = __toESM(require("swr/mutation"), 1);
|
|
4344
4299
|
|
|
@@ -4350,8 +4305,9 @@ function useCfgAccountsProfilePartialUpdate(config) {
|
|
|
4350
4305
|
async (_key, { arg }) => {
|
|
4351
4306
|
const res = await CfgAccountsProfile.cfgAccountsProfilePartialUpdate({ ...arg, throwOnError: true });
|
|
4352
4307
|
const data = res.data;
|
|
4353
|
-
|
|
4354
|
-
|
|
4308
|
+
void Promise.resolve().then(() => (init_User(), User_exports)).then(({ UserSchema: UserSchema2 }) => {
|
|
4309
|
+
const parsed = UserSchema2.safeParse(data);
|
|
4310
|
+
if (parsed.success) return;
|
|
4355
4311
|
console.warn(
|
|
4356
4312
|
"[zod] response did not match schema",
|
|
4357
4313
|
{
|
|
@@ -4381,9 +4337,9 @@ function useCfgAccountsProfilePartialUpdate(config) {
|
|
|
4381
4337
|
} catch {
|
|
4382
4338
|
}
|
|
4383
4339
|
}
|
|
4384
|
-
|
|
4385
|
-
}
|
|
4386
|
-
return
|
|
4340
|
+
}).catch(() => {
|
|
4341
|
+
});
|
|
4342
|
+
return data;
|
|
4387
4343
|
},
|
|
4388
4344
|
config
|
|
4389
4345
|
);
|
|
@@ -4404,8 +4360,9 @@ function useCfgAccountsProfileUpdateUpdate(config) {
|
|
|
4404
4360
|
async (_key, { arg }) => {
|
|
4405
4361
|
const res = await CfgAccountsProfile.cfgAccountsProfileUpdateUpdate({ ...arg, throwOnError: true });
|
|
4406
4362
|
const data = res.data;
|
|
4407
|
-
|
|
4408
|
-
|
|
4363
|
+
void Promise.resolve().then(() => (init_User(), User_exports)).then(({ UserSchema: UserSchema2 }) => {
|
|
4364
|
+
const parsed = UserSchema2.safeParse(data);
|
|
4365
|
+
if (parsed.success) return;
|
|
4409
4366
|
console.warn(
|
|
4410
4367
|
"[zod] response did not match schema",
|
|
4411
4368
|
{
|
|
@@ -4435,9 +4392,9 @@ function useCfgAccountsProfileUpdateUpdate(config) {
|
|
|
4435
4392
|
} catch {
|
|
4436
4393
|
}
|
|
4437
4394
|
}
|
|
4438
|
-
|
|
4439
|
-
}
|
|
4440
|
-
return
|
|
4395
|
+
}).catch(() => {
|
|
4396
|
+
});
|
|
4397
|
+
return data;
|
|
4441
4398
|
},
|
|
4442
4399
|
config
|
|
4443
4400
|
);
|
|
@@ -4449,28 +4406,15 @@ var import_mutation15 = __toESM(require("swr/mutation"), 1);
|
|
|
4449
4406
|
|
|
4450
4407
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts
|
|
4451
4408
|
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
4409
|
function useCfgAccountsTokenCreate(config) {
|
|
4467
4410
|
return (0, import_mutation16.default)(
|
|
4468
4411
|
["cfg_accounts_token_create"],
|
|
4469
4412
|
async (_key, { arg }) => {
|
|
4470
4413
|
const res = await CfgAccountsAuth.cfgAccountsTokenCreate({ ...arg, throwOnError: true });
|
|
4471
4414
|
const data = res.data;
|
|
4472
|
-
|
|
4473
|
-
|
|
4415
|
+
void Promise.resolve().then(() => (init_PasswordLoginResponse(), PasswordLoginResponse_exports)).then(({ PasswordLoginResponseSchema: PasswordLoginResponseSchema2 }) => {
|
|
4416
|
+
const parsed = PasswordLoginResponseSchema2.safeParse(data);
|
|
4417
|
+
if (parsed.success) return;
|
|
4474
4418
|
console.warn(
|
|
4475
4419
|
"[zod] response did not match schema",
|
|
4476
4420
|
{
|
|
@@ -4500,9 +4444,9 @@ function useCfgAccountsTokenCreate(config) {
|
|
|
4500
4444
|
} catch {
|
|
4501
4445
|
}
|
|
4502
4446
|
}
|
|
4503
|
-
|
|
4504
|
-
}
|
|
4505
|
-
return
|
|
4447
|
+
}).catch(() => {
|
|
4448
|
+
});
|
|
4449
|
+
return data;
|
|
4506
4450
|
},
|
|
4507
4451
|
config
|
|
4508
4452
|
);
|
|
@@ -4512,134 +4456,6 @@ __name(useCfgAccountsTokenCreate, "useCfgAccountsTokenCreate");
|
|
|
4512
4456
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts
|
|
4513
4457
|
var import_mutation17 = __toESM(require("swr/mutation"), 1);
|
|
4514
4458
|
|
|
4515
|
-
// src/_api/generated/_cfg_accounts/schemas/TokenRefresh.ts
|
|
4516
|
-
var import_zod21 = require("zod");
|
|
4517
|
-
var TokenRefreshSchema = import_zod21.z.object({
|
|
4518
|
-
access: import_zod21.z.string(),
|
|
4519
|
-
refresh: import_zod21.z.string()
|
|
4520
|
-
});
|
|
4521
|
-
|
|
4522
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyRequest.ts
|
|
4523
|
-
var import_zod22 = require("zod");
|
|
4524
|
-
var APIKeyRequestSchema = import_zod22.z.object({
|
|
4525
|
-
key: import_zod22.z.string().min(1),
|
|
4526
|
-
reissued_at: import_zod22.z.string().datetime({ offset: true }).nullable(),
|
|
4527
|
-
created_at: import_zod22.z.string().datetime({ offset: true })
|
|
4528
|
-
});
|
|
4529
|
-
|
|
4530
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestRequest.ts
|
|
4531
|
-
var import_zod23 = require("zod");
|
|
4532
|
-
var APIKeyTestRequestSchema = import_zod23.z.object({
|
|
4533
|
-
key: import_zod23.z.string().min(1)
|
|
4534
|
-
});
|
|
4535
|
-
|
|
4536
|
-
// src/_api/generated/_cfg_accounts/schemas/CfgUserUpdateRequest.ts
|
|
4537
|
-
var import_zod24 = require("zod");
|
|
4538
|
-
var CfgUserUpdateRequestSchema = import_zod24.z.object({
|
|
4539
|
-
first_name: import_zod24.z.string().max(50).optional(),
|
|
4540
|
-
last_name: import_zod24.z.string().max(50).optional(),
|
|
4541
|
-
company: import_zod24.z.string().max(100).optional(),
|
|
4542
|
-
phone: import_zod24.z.string().max(20).optional(),
|
|
4543
|
-
position: import_zod24.z.string().max(100).optional(),
|
|
4544
|
-
language: import_zod24.z.string().max(10).optional(),
|
|
4545
|
-
timezone: import_zod24.z.string().max(64).optional()
|
|
4546
|
-
});
|
|
4547
|
-
|
|
4548
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeRequestRequest.ts
|
|
4549
|
-
var import_zod25 = require("zod");
|
|
4550
|
-
var OAuthAuthorizeRequestRequestSchema = import_zod25.z.object({
|
|
4551
|
-
redirect_uri: import_zod25.z.url().or(import_zod25.z.literal("")).optional(),
|
|
4552
|
-
source_url: import_zod25.z.url().or(import_zod25.z.literal("")).optional()
|
|
4553
|
-
});
|
|
4554
|
-
|
|
4555
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthCallbackRequestRequest.ts
|
|
4556
|
-
var import_zod26 = require("zod");
|
|
4557
|
-
var OAuthCallbackRequestRequestSchema = import_zod26.z.object({
|
|
4558
|
-
code: import_zod26.z.string().min(10).max(500),
|
|
4559
|
-
state: import_zod26.z.string().min(20).max(100),
|
|
4560
|
-
redirect_uri: import_zod26.z.url().or(import_zod26.z.literal("")).optional(),
|
|
4561
|
-
remember_me: import_zod26.z.boolean().default(false).optional()
|
|
4562
|
-
});
|
|
4563
|
-
|
|
4564
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthDisconnectRequestRequest.ts
|
|
4565
|
-
var import_zod27 = require("zod");
|
|
4566
|
-
var OAuthDisconnectRequestRequestSchema = import_zod27.z.object({
|
|
4567
|
-
provider: OAuthProviderEnumSchema
|
|
4568
|
-
});
|
|
4569
|
-
|
|
4570
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthError.ts
|
|
4571
|
-
var import_zod28 = require("zod");
|
|
4572
|
-
var OAuthErrorSchema = import_zod28.z.object({
|
|
4573
|
-
error: import_zod28.z.string(),
|
|
4574
|
-
error_description: import_zod28.z.string().optional()
|
|
4575
|
-
});
|
|
4576
|
-
|
|
4577
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPErrorResponse.ts
|
|
4578
|
-
var import_zod29 = require("zod");
|
|
4579
|
-
var OTPErrorResponseSchema = import_zod29.z.object({
|
|
4580
|
-
error: import_zod29.z.string(),
|
|
4581
|
-
error_code: import_zod29.z.string().nullable().optional(),
|
|
4582
|
-
retry_after: import_zod29.z.number().int().nullable().optional()
|
|
4583
|
-
});
|
|
4584
|
-
|
|
4585
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPRequestRequest.ts
|
|
4586
|
-
var import_zod30 = require("zod");
|
|
4587
|
-
var OTPRequestRequestSchema = import_zod30.z.object({
|
|
4588
|
-
identifier: import_zod30.z.string().min(1),
|
|
4589
|
-
source_url: import_zod30.z.url().or(import_zod30.z.literal("")).optional(),
|
|
4590
|
-
marketing_consent: import_zod30.z.boolean().nullable().optional(),
|
|
4591
|
-
consent_disclosure_version: import_zod30.z.string().max(64).optional()
|
|
4592
|
-
});
|
|
4593
|
-
|
|
4594
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyRequest.ts
|
|
4595
|
-
var import_zod31 = require("zod");
|
|
4596
|
-
var OTPVerifyRequestSchema = import_zod31.z.object({
|
|
4597
|
-
identifier: import_zod31.z.string().min(1),
|
|
4598
|
-
otp: import_zod31.z.string().min(4).max(4),
|
|
4599
|
-
source_url: import_zod31.z.url().or(import_zod31.z.literal("")).optional(),
|
|
4600
|
-
remember_me: import_zod31.z.boolean().default(false).optional()
|
|
4601
|
-
});
|
|
4602
|
-
|
|
4603
|
-
// src/_api/generated/_cfg_accounts/schemas/PasswordLoginError.ts
|
|
4604
|
-
var import_zod32 = require("zod");
|
|
4605
|
-
var PasswordLoginErrorSchema = import_zod32.z.object({
|
|
4606
|
-
error: import_zod32.z.string(),
|
|
4607
|
-
error_code: import_zod32.z.string(),
|
|
4608
|
-
retry_after: import_zod32.z.number().int().nullable().optional()
|
|
4609
|
-
});
|
|
4610
|
-
|
|
4611
|
-
// src/_api/generated/_cfg_accounts/schemas/PasswordLoginRequest.ts
|
|
4612
|
-
var import_zod33 = require("zod");
|
|
4613
|
-
var PasswordLoginRequestSchema = import_zod33.z.object({
|
|
4614
|
-
remember_me: import_zod33.z.boolean().default(false).optional(),
|
|
4615
|
-
email: import_zod33.z.email(),
|
|
4616
|
-
password: import_zod33.z.string()
|
|
4617
|
-
});
|
|
4618
|
-
|
|
4619
|
-
// src/_api/generated/_cfg_accounts/schemas/PatchedCfgUserUpdateRequest.ts
|
|
4620
|
-
var import_zod34 = require("zod");
|
|
4621
|
-
var PatchedCfgUserUpdateRequestSchema = import_zod34.z.object({
|
|
4622
|
-
first_name: import_zod34.z.string().max(50).optional(),
|
|
4623
|
-
last_name: import_zod34.z.string().max(50).optional(),
|
|
4624
|
-
company: import_zod34.z.string().max(100).optional(),
|
|
4625
|
-
phone: import_zod34.z.string().max(20).optional(),
|
|
4626
|
-
position: import_zod34.z.string().max(100).optional(),
|
|
4627
|
-
language: import_zod34.z.string().max(10).optional(),
|
|
4628
|
-
timezone: import_zod34.z.string().max(64).optional()
|
|
4629
|
-
});
|
|
4630
|
-
|
|
4631
|
-
// src/_api/generated/_cfg_accounts/schemas/TokenBlacklistRequest.ts
|
|
4632
|
-
var import_zod35 = require("zod");
|
|
4633
|
-
var TokenBlacklistRequestSchema = import_zod35.z.object({
|
|
4634
|
-
refresh: import_zod35.z.string().min(1)
|
|
4635
|
-
});
|
|
4636
|
-
|
|
4637
|
-
// src/_api/generated/_cfg_accounts/schemas/TokenRefreshRequest.ts
|
|
4638
|
-
var import_zod36 = require("zod");
|
|
4639
|
-
var TokenRefreshRequestSchema = import_zod36.z.object({
|
|
4640
|
-
refresh: import_zod36.z.string().min(1)
|
|
4641
|
-
});
|
|
4642
|
-
|
|
4643
4459
|
// src/auth/context/AccountsContext.tsx
|
|
4644
4460
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
4645
4461
|
function hasApiOrigin() {
|