@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.mjs
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import "./chunk-X5FEPK4J.mjs";
|
|
3
|
+
import "./chunk-NTSWD2CP.mjs";
|
|
4
|
+
import "./chunk-SUTMTPAG.mjs";
|
|
5
|
+
import "./chunk-XSAHOB2U.mjs";
|
|
6
|
+
import "./chunk-6MHVHTWT.mjs";
|
|
7
|
+
import "./chunk-K5HZ55SP.mjs";
|
|
8
|
+
import "./chunk-OGDF6IJV.mjs";
|
|
9
|
+
import "./chunk-AQ2RQ4BQ.mjs";
|
|
10
|
+
import "./chunk-B22YGMM3.mjs";
|
|
11
|
+
import "./chunk-RQDZ2EMB.mjs";
|
|
12
|
+
import "./chunk-NZGOHTNF.mjs";
|
|
13
|
+
import "./chunk-PDARU7RC.mjs";
|
|
14
|
+
import "./chunk-GCRGQTJ4.mjs";
|
|
15
|
+
import {
|
|
16
|
+
OAuthProviderEnumSchema
|
|
17
|
+
} from "./chunk-IPXJOS2Y.mjs";
|
|
18
|
+
import "./chunk-YMOOSBRI.mjs";
|
|
19
|
+
import "./chunk-AXBITHBG.mjs";
|
|
20
|
+
import {
|
|
21
|
+
__name
|
|
22
|
+
} from "./chunk-53YKWR6F.mjs";
|
|
4
23
|
|
|
5
24
|
// src/auth/constants.ts
|
|
6
25
|
var AUTH_CONSTANTS = {
|
|
@@ -3924,170 +3943,44 @@ import {
|
|
|
3924
3943
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts
|
|
3925
3944
|
import useSWRMutation from "swr/mutation";
|
|
3926
3945
|
|
|
3927
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyRegenerate.ts
|
|
3928
|
-
import { z } from "zod";
|
|
3929
|
-
var APIKeyRegenerateSchema = z.object({
|
|
3930
|
-
key: z.string(),
|
|
3931
|
-
reissued_at: z.string().datetime({ offset: true })
|
|
3932
|
-
});
|
|
3933
|
-
|
|
3934
3946
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts
|
|
3935
3947
|
import useSWR from "swr";
|
|
3936
3948
|
|
|
3937
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKey.ts
|
|
3938
|
-
import { z as z2 } from "zod";
|
|
3939
|
-
var APIKeySchema = z2.object({
|
|
3940
|
-
key: z2.string(),
|
|
3941
|
-
reissued_at: z2.string().datetime({ offset: true }).nullable(),
|
|
3942
|
-
created_at: z2.string().datetime({ offset: true })
|
|
3943
|
-
});
|
|
3944
|
-
|
|
3945
3949
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
|
|
3946
3950
|
import useSWRMutation2 from "swr/mutation";
|
|
3947
3951
|
|
|
3948
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts
|
|
3949
|
-
import { z as z3 } from "zod";
|
|
3950
|
-
var APIKeyRevealSchema = z3.object({
|
|
3951
|
-
key: z3.string(),
|
|
3952
|
-
created_at: z3.string().datetime({ offset: true }),
|
|
3953
|
-
reissued_at: z3.string().datetime({ offset: true }).nullable()
|
|
3954
|
-
});
|
|
3955
|
-
|
|
3956
3952
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
|
|
3957
3953
|
import useSWRMutation3 from "swr/mutation";
|
|
3958
3954
|
|
|
3959
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts
|
|
3960
|
-
import { z as z4 } from "zod";
|
|
3961
|
-
var APIKeyTestResultSchema = z4.object({
|
|
3962
|
-
valid: z4.boolean(),
|
|
3963
|
-
user_id: z4.string().nullable()
|
|
3964
|
-
});
|
|
3965
|
-
|
|
3966
3955
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts
|
|
3967
3956
|
import useSWR2 from "swr";
|
|
3968
3957
|
|
|
3969
|
-
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts
|
|
3970
|
-
import { z as z7 } from "zod";
|
|
3971
|
-
|
|
3972
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts
|
|
3973
|
-
import { z as z6 } from "zod";
|
|
3974
|
-
|
|
3975
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthProviderEnum.ts
|
|
3976
|
-
import { z as z5 } from "zod";
|
|
3977
|
-
var OAuthProviderEnumSchema = z5.enum(["github"]);
|
|
3978
|
-
|
|
3979
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts
|
|
3980
|
-
var OAuthConnectionSchema = z6.object({
|
|
3981
|
-
id: z6.number().int(),
|
|
3982
|
-
provider: OAuthProviderEnumSchema,
|
|
3983
|
-
provider_display: z6.string(),
|
|
3984
|
-
provider_username: z6.string(),
|
|
3985
|
-
provider_email: z6.email().or(z6.literal("")),
|
|
3986
|
-
provider_avatar_url: z6.url().or(z6.literal("")),
|
|
3987
|
-
connected_at: z6.string().datetime({ offset: true }),
|
|
3988
|
-
last_login_at: z6.string().datetime({ offset: true })
|
|
3989
|
-
});
|
|
3990
|
-
|
|
3991
|
-
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts
|
|
3992
|
-
var cfg_accounts_oauth_connections_response_200_AutoRefSchema = z7.array(OAuthConnectionSchema);
|
|
3993
|
-
|
|
3994
3958
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts
|
|
3995
3959
|
import useSWRMutation4 from "swr/mutation";
|
|
3996
3960
|
|
|
3997
|
-
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_disconnect_response_200_AutoRef.ts
|
|
3998
|
-
import { z as z8 } from "zod";
|
|
3999
|
-
var cfg_accounts_oauth_disconnect_response_200_AutoRefSchema = z8.object({
|
|
4000
|
-
message: z8.string().optional()
|
|
4001
|
-
});
|
|
4002
|
-
|
|
4003
3961
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts
|
|
4004
3962
|
import useSWRMutation5 from "swr/mutation";
|
|
4005
3963
|
|
|
4006
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeResponse.ts
|
|
4007
|
-
import { z as z9 } from "zod";
|
|
4008
|
-
var OAuthAuthorizeResponseSchema = z9.object({
|
|
4009
|
-
authorization_url: z9.url().or(z9.literal("")),
|
|
4010
|
-
state: z9.string()
|
|
4011
|
-
});
|
|
4012
|
-
|
|
4013
3964
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts
|
|
4014
3965
|
import useSWRMutation6 from "swr/mutation";
|
|
4015
3966
|
|
|
4016
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthTokenResponse.ts
|
|
4017
|
-
import { z as z10 } from "zod";
|
|
4018
|
-
var OAuthTokenResponseSchema = z10.object({
|
|
4019
|
-
requires_2fa: z10.boolean().default(false).optional(),
|
|
4020
|
-
session_id: z10.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(),
|
|
4021
|
-
access: z10.string().nullable().optional(),
|
|
4022
|
-
refresh: z10.string().nullable().optional(),
|
|
4023
|
-
user: z10.object({}).passthrough().nullable().optional(),
|
|
4024
|
-
is_new_user: z10.boolean().default(false).optional(),
|
|
4025
|
-
is_new_connection: z10.boolean().default(false).optional(),
|
|
4026
|
-
should_prompt_2fa: z10.boolean().optional(),
|
|
4027
|
-
persistent_session: z10.boolean().optional()
|
|
4028
|
-
});
|
|
4029
|
-
|
|
4030
3967
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts
|
|
4031
3968
|
import useSWR3 from "swr";
|
|
4032
3969
|
|
|
4033
|
-
// src/_api/generated/_cfg_accounts/schemas/OAuthProvidersResponse.ts
|
|
4034
|
-
import { z as z11 } from "zod";
|
|
4035
|
-
var OAuthProvidersResponseSchema = z11.object({
|
|
4036
|
-
providers: z11.array(z11.object({}).passthrough())
|
|
4037
|
-
});
|
|
4038
|
-
|
|
4039
3970
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts
|
|
4040
3971
|
import useSWR4 from "swr";
|
|
4041
3972
|
|
|
4042
|
-
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
4043
|
-
import { z as z13 } from "zod";
|
|
4044
|
-
|
|
4045
|
-
// src/_api/generated/_cfg_accounts/schemas/MarketingConsentDefaultEnum.ts
|
|
4046
|
-
import { z as z12 } from "zod";
|
|
4047
|
-
var MarketingConsentDefaultEnumSchema = z12.enum(["checked", "unchecked"]);
|
|
4048
|
-
|
|
4049
|
-
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
4050
|
-
var ConsentPolicySchema = z13.object({
|
|
4051
|
-
country: z13.string(),
|
|
4052
|
-
marketing_consent_default: MarketingConsentDefaultEnumSchema
|
|
4053
|
-
});
|
|
4054
|
-
|
|
4055
3973
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
|
|
4056
3974
|
import useSWRMutation7 from "swr/mutation";
|
|
4057
|
-
|
|
4058
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPRequestResponse.ts
|
|
4059
|
-
import { z as z16 } from "zod";
|
|
4060
|
-
|
|
4061
|
-
// src/_api/generated/_cfg_accounts/schemas/WebmailLink.ts
|
|
4062
|
-
import { z as z15 } from "zod";
|
|
4063
|
-
|
|
4064
|
-
// src/_api/generated/_cfg_accounts/schemas/WebmailLinkProviderEnum.ts
|
|
4065
|
-
import { z as z14 } from "zod";
|
|
4066
|
-
var WebmailLinkProviderEnumSchema = z14.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"]);
|
|
4067
|
-
|
|
4068
|
-
// src/_api/generated/_cfg_accounts/schemas/WebmailLink.ts
|
|
4069
|
-
var WebmailLinkSchema = z15.object({
|
|
4070
|
-
provider: WebmailLinkProviderEnumSchema,
|
|
4071
|
-
provider_name: z15.string(),
|
|
4072
|
-
url: z15.url().or(z15.literal("")),
|
|
4073
|
-
is_search: z15.boolean()
|
|
4074
|
-
});
|
|
4075
|
-
|
|
4076
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPRequestResponse.ts
|
|
4077
|
-
var OTPRequestResponseSchema = z16.object({
|
|
4078
|
-
message: z16.string(),
|
|
4079
|
-
webmail: WebmailLinkSchema.nullable().optional()
|
|
4080
|
-
});
|
|
4081
|
-
|
|
4082
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
|
|
4083
3975
|
function useCfgAccountsOtpRequestCreate(config) {
|
|
4084
3976
|
return useSWRMutation7(
|
|
4085
3977
|
["cfg_accounts_otp_request_create"],
|
|
4086
3978
|
async (_key, { arg }) => {
|
|
4087
3979
|
const res = await CfgAccountsOtp.cfgAccountsOtpRequestCreate({ ...arg, throwOnError: true });
|
|
4088
3980
|
const data = res.data;
|
|
4089
|
-
|
|
4090
|
-
|
|
3981
|
+
void import("./OTPRequestResponse-KKEOYXXS.mjs").then(({ OTPRequestResponseSchema }) => {
|
|
3982
|
+
const parsed = OTPRequestResponseSchema.safeParse(data);
|
|
3983
|
+
if (parsed.success) return;
|
|
4091
3984
|
console.warn(
|
|
4092
3985
|
"[zod] response did not match schema",
|
|
4093
3986
|
{
|
|
@@ -4117,9 +4010,9 @@ function useCfgAccountsOtpRequestCreate(config) {
|
|
|
4117
4010
|
} catch {
|
|
4118
4011
|
}
|
|
4119
4012
|
}
|
|
4120
|
-
|
|
4121
|
-
}
|
|
4122
|
-
return
|
|
4013
|
+
}).catch(() => {
|
|
4014
|
+
});
|
|
4015
|
+
return data;
|
|
4123
4016
|
},
|
|
4124
4017
|
config
|
|
4125
4018
|
);
|
|
@@ -4128,54 +4021,15 @@ __name(useCfgAccountsOtpRequestCreate, "useCfgAccountsOtpRequestCreate");
|
|
|
4128
4021
|
|
|
4129
4022
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
|
|
4130
4023
|
import useSWRMutation8 from "swr/mutation";
|
|
4131
|
-
|
|
4132
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts
|
|
4133
|
-
import { z as z18 } from "zod";
|
|
4134
|
-
|
|
4135
|
-
// src/_api/generated/_cfg_accounts/schemas/User.ts
|
|
4136
|
-
import { z as z17 } from "zod";
|
|
4137
|
-
var UserSchema = z17.object({
|
|
4138
|
-
id: z17.number().int(),
|
|
4139
|
-
email: z17.email().or(z17.literal("")),
|
|
4140
|
-
first_name: z17.string().max(50).nullable().optional(),
|
|
4141
|
-
last_name: z17.string().max(50).nullable().optional(),
|
|
4142
|
-
full_name: z17.string(),
|
|
4143
|
-
initials: z17.string(),
|
|
4144
|
-
display_username: z17.string(),
|
|
4145
|
-
company: z17.string().max(100).nullable().optional(),
|
|
4146
|
-
phone: z17.string().max(20).nullable().optional(),
|
|
4147
|
-
position: z17.string().max(100).nullable().optional(),
|
|
4148
|
-
language: z17.string().max(10).nullable().optional(),
|
|
4149
|
-
timezone: z17.string().max(64).nullable().optional(),
|
|
4150
|
-
avatar: z17.url().or(z17.literal("")).nullable(),
|
|
4151
|
-
is_staff: z17.boolean(),
|
|
4152
|
-
is_superuser: z17.boolean(),
|
|
4153
|
-
date_joined: z17.string().datetime({ offset: true }),
|
|
4154
|
-
last_login: z17.string().datetime({ offset: true }).nullable(),
|
|
4155
|
-
unanswered_messages_count: z17.number().int().default(0),
|
|
4156
|
-
api_key: z17.string().nullable()
|
|
4157
|
-
});
|
|
4158
|
-
|
|
4159
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts
|
|
4160
|
-
var OTPVerifyResponseSchema = z18.object({
|
|
4161
|
-
requires_2fa: z18.boolean().default(false).optional(),
|
|
4162
|
-
session_id: z18.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(),
|
|
4163
|
-
refresh: z18.string().nullable().optional(),
|
|
4164
|
-
access: z18.string().nullable().optional(),
|
|
4165
|
-
user: UserSchema.nullable().optional(),
|
|
4166
|
-
should_prompt_2fa: z18.boolean().optional(),
|
|
4167
|
-
persistent_session: z18.boolean().optional()
|
|
4168
|
-
});
|
|
4169
|
-
|
|
4170
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
|
|
4171
4024
|
function useCfgAccountsOtpVerifyCreate(config) {
|
|
4172
4025
|
return useSWRMutation8(
|
|
4173
4026
|
["cfg_accounts_otp_verify_create"],
|
|
4174
4027
|
async (_key, { arg }) => {
|
|
4175
4028
|
const res = await CfgAccountsOtp.cfgAccountsOtpVerifyCreate({ ...arg, throwOnError: true });
|
|
4176
4029
|
const data = res.data;
|
|
4177
|
-
|
|
4178
|
-
|
|
4030
|
+
void import("./OTPVerifyResponse-XBXVMTO3.mjs").then(({ OTPVerifyResponseSchema }) => {
|
|
4031
|
+
const parsed = OTPVerifyResponseSchema.safeParse(data);
|
|
4032
|
+
if (parsed.success) return;
|
|
4179
4033
|
console.warn(
|
|
4180
4034
|
"[zod] response did not match schema",
|
|
4181
4035
|
{
|
|
@@ -4205,9 +4059,9 @@ function useCfgAccountsOtpVerifyCreate(config) {
|
|
|
4205
4059
|
} catch {
|
|
4206
4060
|
}
|
|
4207
4061
|
}
|
|
4208
|
-
|
|
4209
|
-
}
|
|
4210
|
-
return
|
|
4062
|
+
}).catch(() => {
|
|
4063
|
+
});
|
|
4064
|
+
return data;
|
|
4211
4065
|
},
|
|
4212
4066
|
config
|
|
4213
4067
|
);
|
|
@@ -4222,8 +4076,9 @@ function useCfgAccountsProfileAvatarCreate(config) {
|
|
|
4222
4076
|
async (_key, { arg }) => {
|
|
4223
4077
|
const res = await CfgAccountsProfile.cfgAccountsProfileAvatarCreate({ ...arg, throwOnError: true });
|
|
4224
4078
|
const data = res.data;
|
|
4225
|
-
|
|
4226
|
-
|
|
4079
|
+
void import("./User-7OXQV7XG.mjs").then(({ UserSchema }) => {
|
|
4080
|
+
const parsed = UserSchema.safeParse(data);
|
|
4081
|
+
if (parsed.success) return;
|
|
4227
4082
|
console.warn(
|
|
4228
4083
|
"[zod] response did not match schema",
|
|
4229
4084
|
{
|
|
@@ -4253,9 +4108,9 @@ function useCfgAccountsProfileAvatarCreate(config) {
|
|
|
4253
4108
|
} catch {
|
|
4254
4109
|
}
|
|
4255
4110
|
}
|
|
4256
|
-
|
|
4257
|
-
}
|
|
4258
|
-
return
|
|
4111
|
+
}).catch(() => {
|
|
4112
|
+
});
|
|
4113
|
+
return data;
|
|
4259
4114
|
},
|
|
4260
4115
|
config
|
|
4261
4116
|
);
|
|
@@ -4265,13 +4120,6 @@ __name(useCfgAccountsProfileAvatarCreate, "useCfgAccountsProfileAvatarCreate");
|
|
|
4265
4120
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts
|
|
4266
4121
|
import useSWRMutation10 from "swr/mutation";
|
|
4267
4122
|
|
|
4268
|
-
// src/_api/generated/_cfg_accounts/schemas/AccountDeleteResponse.ts
|
|
4269
|
-
import { z as z19 } from "zod";
|
|
4270
|
-
var AccountDeleteResponseSchema = z19.object({
|
|
4271
|
-
success: z19.boolean(),
|
|
4272
|
-
message: z19.string()
|
|
4273
|
-
});
|
|
4274
|
-
|
|
4275
4123
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts
|
|
4276
4124
|
import useSWRMutation11 from "swr/mutation";
|
|
4277
4125
|
|
|
@@ -4283,8 +4131,9 @@ function useCfgAccountsProfilePartialUpdate(config) {
|
|
|
4283
4131
|
async (_key, { arg }) => {
|
|
4284
4132
|
const res = await CfgAccountsProfile.cfgAccountsProfilePartialUpdate({ ...arg, throwOnError: true });
|
|
4285
4133
|
const data = res.data;
|
|
4286
|
-
|
|
4287
|
-
|
|
4134
|
+
void import("./User-7OXQV7XG.mjs").then(({ UserSchema }) => {
|
|
4135
|
+
const parsed = UserSchema.safeParse(data);
|
|
4136
|
+
if (parsed.success) return;
|
|
4288
4137
|
console.warn(
|
|
4289
4138
|
"[zod] response did not match schema",
|
|
4290
4139
|
{
|
|
@@ -4314,9 +4163,9 @@ function useCfgAccountsProfilePartialUpdate(config) {
|
|
|
4314
4163
|
} catch {
|
|
4315
4164
|
}
|
|
4316
4165
|
}
|
|
4317
|
-
|
|
4318
|
-
}
|
|
4319
|
-
return
|
|
4166
|
+
}).catch(() => {
|
|
4167
|
+
});
|
|
4168
|
+
return data;
|
|
4320
4169
|
},
|
|
4321
4170
|
config
|
|
4322
4171
|
);
|
|
@@ -4337,8 +4186,9 @@ function useCfgAccountsProfileUpdateUpdate(config) {
|
|
|
4337
4186
|
async (_key, { arg }) => {
|
|
4338
4187
|
const res = await CfgAccountsProfile.cfgAccountsProfileUpdateUpdate({ ...arg, throwOnError: true });
|
|
4339
4188
|
const data = res.data;
|
|
4340
|
-
|
|
4341
|
-
|
|
4189
|
+
void import("./User-7OXQV7XG.mjs").then(({ UserSchema }) => {
|
|
4190
|
+
const parsed = UserSchema.safeParse(data);
|
|
4191
|
+
if (parsed.success) return;
|
|
4342
4192
|
console.warn(
|
|
4343
4193
|
"[zod] response did not match schema",
|
|
4344
4194
|
{
|
|
@@ -4368,9 +4218,9 @@ function useCfgAccountsProfileUpdateUpdate(config) {
|
|
|
4368
4218
|
} catch {
|
|
4369
4219
|
}
|
|
4370
4220
|
}
|
|
4371
|
-
|
|
4372
|
-
}
|
|
4373
|
-
return
|
|
4221
|
+
}).catch(() => {
|
|
4222
|
+
});
|
|
4223
|
+
return data;
|
|
4374
4224
|
},
|
|
4375
4225
|
config
|
|
4376
4226
|
);
|
|
@@ -4382,28 +4232,15 @@ import useSWRMutation15 from "swr/mutation";
|
|
|
4382
4232
|
|
|
4383
4233
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts
|
|
4384
4234
|
import useSWRMutation16 from "swr/mutation";
|
|
4385
|
-
|
|
4386
|
-
// src/_api/generated/_cfg_accounts/schemas/PasswordLoginResponse.ts
|
|
4387
|
-
import { z as z20 } from "zod";
|
|
4388
|
-
var PasswordLoginResponseSchema = z20.object({
|
|
4389
|
-
requires_2fa: z20.boolean().default(false).optional(),
|
|
4390
|
-
session_id: z20.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(),
|
|
4391
|
-
refresh: z20.string().nullable().optional(),
|
|
4392
|
-
access: z20.string().nullable().optional(),
|
|
4393
|
-
user: UserSchema.nullable().optional(),
|
|
4394
|
-
should_prompt_2fa: z20.boolean().optional(),
|
|
4395
|
-
persistent_session: z20.boolean().optional()
|
|
4396
|
-
});
|
|
4397
|
-
|
|
4398
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts
|
|
4399
4235
|
function useCfgAccountsTokenCreate(config) {
|
|
4400
4236
|
return useSWRMutation16(
|
|
4401
4237
|
["cfg_accounts_token_create"],
|
|
4402
4238
|
async (_key, { arg }) => {
|
|
4403
4239
|
const res = await CfgAccountsAuth.cfgAccountsTokenCreate({ ...arg, throwOnError: true });
|
|
4404
4240
|
const data = res.data;
|
|
4405
|
-
|
|
4406
|
-
|
|
4241
|
+
void import("./PasswordLoginResponse-3IRCBQIN.mjs").then(({ PasswordLoginResponseSchema }) => {
|
|
4242
|
+
const parsed = PasswordLoginResponseSchema.safeParse(data);
|
|
4243
|
+
if (parsed.success) return;
|
|
4407
4244
|
console.warn(
|
|
4408
4245
|
"[zod] response did not match schema",
|
|
4409
4246
|
{
|
|
@@ -4433,9 +4270,9 @@ function useCfgAccountsTokenCreate(config) {
|
|
|
4433
4270
|
} catch {
|
|
4434
4271
|
}
|
|
4435
4272
|
}
|
|
4436
|
-
|
|
4437
|
-
}
|
|
4438
|
-
return
|
|
4273
|
+
}).catch(() => {
|
|
4274
|
+
});
|
|
4275
|
+
return data;
|
|
4439
4276
|
},
|
|
4440
4277
|
config
|
|
4441
4278
|
);
|
|
@@ -4445,132 +4282,125 @@ __name(useCfgAccountsTokenCreate, "useCfgAccountsTokenCreate");
|
|
|
4445
4282
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts
|
|
4446
4283
|
import useSWRMutation17 from "swr/mutation";
|
|
4447
4284
|
|
|
4448
|
-
// src/_api/generated/_cfg_accounts/schemas/TokenRefresh.ts
|
|
4449
|
-
import { z as z21 } from "zod";
|
|
4450
|
-
var TokenRefreshSchema = z21.object({
|
|
4451
|
-
access: z21.string(),
|
|
4452
|
-
refresh: z21.string()
|
|
4453
|
-
});
|
|
4454
|
-
|
|
4455
4285
|
// src/_api/generated/_cfg_accounts/schemas/APIKeyRequest.ts
|
|
4456
|
-
import { z
|
|
4457
|
-
var APIKeyRequestSchema =
|
|
4458
|
-
key:
|
|
4459
|
-
reissued_at:
|
|
4460
|
-
created_at:
|
|
4286
|
+
import { z } from "zod";
|
|
4287
|
+
var APIKeyRequestSchema = z.object({
|
|
4288
|
+
key: z.string().min(1),
|
|
4289
|
+
reissued_at: z.string().datetime({ offset: true }).nullable(),
|
|
4290
|
+
created_at: z.string().datetime({ offset: true })
|
|
4461
4291
|
});
|
|
4462
4292
|
|
|
4463
4293
|
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestRequest.ts
|
|
4464
|
-
import { z as
|
|
4465
|
-
var APIKeyTestRequestSchema =
|
|
4466
|
-
key:
|
|
4294
|
+
import { z as z2 } from "zod";
|
|
4295
|
+
var APIKeyTestRequestSchema = z2.object({
|
|
4296
|
+
key: z2.string().min(1)
|
|
4467
4297
|
});
|
|
4468
4298
|
|
|
4469
4299
|
// src/_api/generated/_cfg_accounts/schemas/CfgUserUpdateRequest.ts
|
|
4470
|
-
import { z as
|
|
4471
|
-
var CfgUserUpdateRequestSchema =
|
|
4472
|
-
first_name:
|
|
4473
|
-
last_name:
|
|
4474
|
-
company:
|
|
4475
|
-
phone:
|
|
4476
|
-
position:
|
|
4477
|
-
language:
|
|
4478
|
-
timezone:
|
|
4300
|
+
import { z as z3 } from "zod";
|
|
4301
|
+
var CfgUserUpdateRequestSchema = z3.object({
|
|
4302
|
+
first_name: z3.string().max(50).optional(),
|
|
4303
|
+
last_name: z3.string().max(50).optional(),
|
|
4304
|
+
company: z3.string().max(100).optional(),
|
|
4305
|
+
phone: z3.string().max(20).optional(),
|
|
4306
|
+
position: z3.string().max(100).optional(),
|
|
4307
|
+
language: z3.string().max(10).optional(),
|
|
4308
|
+
timezone: z3.string().max(64).optional()
|
|
4479
4309
|
});
|
|
4480
4310
|
|
|
4481
4311
|
// src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeRequestRequest.ts
|
|
4482
|
-
import { z as
|
|
4483
|
-
var OAuthAuthorizeRequestRequestSchema =
|
|
4484
|
-
redirect_uri:
|
|
4485
|
-
source_url:
|
|
4312
|
+
import { z as z4 } from "zod";
|
|
4313
|
+
var OAuthAuthorizeRequestRequestSchema = z4.object({
|
|
4314
|
+
redirect_uri: z4.url().or(z4.literal("")).optional(),
|
|
4315
|
+
source_url: z4.url().or(z4.literal("")).optional()
|
|
4486
4316
|
});
|
|
4487
4317
|
|
|
4488
4318
|
// src/_api/generated/_cfg_accounts/schemas/OAuthCallbackRequestRequest.ts
|
|
4489
|
-
import { z as
|
|
4490
|
-
var OAuthCallbackRequestRequestSchema =
|
|
4491
|
-
code:
|
|
4492
|
-
state:
|
|
4493
|
-
redirect_uri:
|
|
4494
|
-
remember_me:
|
|
4319
|
+
import { z as z5 } from "zod";
|
|
4320
|
+
var OAuthCallbackRequestRequestSchema = z5.object({
|
|
4321
|
+
code: z5.string().min(10).max(500),
|
|
4322
|
+
state: z5.string().min(20).max(100),
|
|
4323
|
+
redirect_uri: z5.url().or(z5.literal("")).optional(),
|
|
4324
|
+
remember_me: z5.boolean().default(false).optional()
|
|
4495
4325
|
});
|
|
4496
4326
|
|
|
4497
4327
|
// src/_api/generated/_cfg_accounts/schemas/OAuthDisconnectRequestRequest.ts
|
|
4498
|
-
import { z as
|
|
4499
|
-
var OAuthDisconnectRequestRequestSchema =
|
|
4328
|
+
import { z as z6 } from "zod";
|
|
4329
|
+
var OAuthDisconnectRequestRequestSchema = z6.object({
|
|
4500
4330
|
provider: OAuthProviderEnumSchema
|
|
4501
4331
|
});
|
|
4502
4332
|
|
|
4503
4333
|
// src/_api/generated/_cfg_accounts/schemas/OAuthError.ts
|
|
4504
|
-
import { z as
|
|
4505
|
-
var OAuthErrorSchema =
|
|
4506
|
-
error:
|
|
4507
|
-
error_description:
|
|
4334
|
+
import { z as z7 } from "zod";
|
|
4335
|
+
var OAuthErrorSchema = z7.object({
|
|
4336
|
+
error: z7.string(),
|
|
4337
|
+
error_description: z7.string().optional()
|
|
4508
4338
|
});
|
|
4509
4339
|
|
|
4510
4340
|
// src/_api/generated/_cfg_accounts/schemas/OTPErrorResponse.ts
|
|
4511
|
-
import { z as
|
|
4512
|
-
var OTPErrorResponseSchema =
|
|
4513
|
-
error:
|
|
4514
|
-
error_code:
|
|
4515
|
-
retry_after:
|
|
4341
|
+
import { z as z8 } from "zod";
|
|
4342
|
+
var OTPErrorResponseSchema = z8.object({
|
|
4343
|
+
error: z8.string(),
|
|
4344
|
+
error_code: z8.string().nullable().optional(),
|
|
4345
|
+
retry_after: z8.number().int().nullable().optional()
|
|
4516
4346
|
});
|
|
4517
4347
|
|
|
4518
4348
|
// src/_api/generated/_cfg_accounts/schemas/OTPRequestRequest.ts
|
|
4519
|
-
import { z as
|
|
4520
|
-
var OTPRequestRequestSchema =
|
|
4521
|
-
identifier:
|
|
4522
|
-
source_url:
|
|
4523
|
-
marketing_consent:
|
|
4524
|
-
consent_disclosure_version:
|
|
4349
|
+
import { z as z9 } from "zod";
|
|
4350
|
+
var OTPRequestRequestSchema = z9.object({
|
|
4351
|
+
identifier: z9.string().min(1),
|
|
4352
|
+
source_url: z9.url().or(z9.literal("")).optional(),
|
|
4353
|
+
marketing_consent: z9.boolean().nullable().optional(),
|
|
4354
|
+
consent_disclosure_version: z9.string().max(64).optional()
|
|
4525
4355
|
});
|
|
4526
4356
|
|
|
4527
4357
|
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyRequest.ts
|
|
4528
|
-
import { z as
|
|
4529
|
-
var OTPVerifyRequestSchema =
|
|
4530
|
-
identifier:
|
|
4531
|
-
otp:
|
|
4532
|
-
source_url:
|
|
4533
|
-
remember_me:
|
|
4358
|
+
import { z as z10 } from "zod";
|
|
4359
|
+
var OTPVerifyRequestSchema = z10.object({
|
|
4360
|
+
identifier: z10.string().min(1),
|
|
4361
|
+
otp: z10.string().min(4).max(4),
|
|
4362
|
+
source_url: z10.url().or(z10.literal("")).optional(),
|
|
4363
|
+
remember_me: z10.boolean().default(false).optional()
|
|
4534
4364
|
});
|
|
4535
4365
|
|
|
4536
4366
|
// src/_api/generated/_cfg_accounts/schemas/PasswordLoginError.ts
|
|
4537
|
-
import { z as
|
|
4538
|
-
var PasswordLoginErrorSchema =
|
|
4539
|
-
error:
|
|
4540
|
-
error_code:
|
|
4541
|
-
retry_after:
|
|
4367
|
+
import { z as z11 } from "zod";
|
|
4368
|
+
var PasswordLoginErrorSchema = z11.object({
|
|
4369
|
+
error: z11.string(),
|
|
4370
|
+
error_code: z11.string(),
|
|
4371
|
+
retry_after: z11.number().int().nullable().optional()
|
|
4542
4372
|
});
|
|
4543
4373
|
|
|
4544
4374
|
// src/_api/generated/_cfg_accounts/schemas/PasswordLoginRequest.ts
|
|
4545
|
-
import { z as
|
|
4546
|
-
var PasswordLoginRequestSchema =
|
|
4547
|
-
remember_me:
|
|
4548
|
-
email:
|
|
4549
|
-
password:
|
|
4375
|
+
import { z as z12 } from "zod";
|
|
4376
|
+
var PasswordLoginRequestSchema = z12.object({
|
|
4377
|
+
remember_me: z12.boolean().default(false).optional(),
|
|
4378
|
+
email: z12.email(),
|
|
4379
|
+
password: z12.string()
|
|
4550
4380
|
});
|
|
4551
4381
|
|
|
4552
4382
|
// src/_api/generated/_cfg_accounts/schemas/PatchedCfgUserUpdateRequest.ts
|
|
4553
|
-
import { z as
|
|
4554
|
-
var PatchedCfgUserUpdateRequestSchema =
|
|
4555
|
-
first_name:
|
|
4556
|
-
last_name:
|
|
4557
|
-
company:
|
|
4558
|
-
phone:
|
|
4559
|
-
position:
|
|
4560
|
-
language:
|
|
4561
|
-
timezone:
|
|
4383
|
+
import { z as z13 } from "zod";
|
|
4384
|
+
var PatchedCfgUserUpdateRequestSchema = z13.object({
|
|
4385
|
+
first_name: z13.string().max(50).optional(),
|
|
4386
|
+
last_name: z13.string().max(50).optional(),
|
|
4387
|
+
company: z13.string().max(100).optional(),
|
|
4388
|
+
phone: z13.string().max(20).optional(),
|
|
4389
|
+
position: z13.string().max(100).optional(),
|
|
4390
|
+
language: z13.string().max(10).optional(),
|
|
4391
|
+
timezone: z13.string().max(64).optional()
|
|
4562
4392
|
});
|
|
4563
4393
|
|
|
4564
4394
|
// src/_api/generated/_cfg_accounts/schemas/TokenBlacklistRequest.ts
|
|
4565
|
-
import { z as
|
|
4566
|
-
var TokenBlacklistRequestSchema =
|
|
4567
|
-
refresh:
|
|
4395
|
+
import { z as z14 } from "zod";
|
|
4396
|
+
var TokenBlacklistRequestSchema = z14.object({
|
|
4397
|
+
refresh: z14.string().min(1)
|
|
4568
4398
|
});
|
|
4569
4399
|
|
|
4570
4400
|
// src/_api/generated/_cfg_accounts/schemas/TokenRefreshRequest.ts
|
|
4571
|
-
import { z as
|
|
4572
|
-
var TokenRefreshRequestSchema =
|
|
4573
|
-
refresh:
|
|
4401
|
+
import { z as z15 } from "zod";
|
|
4402
|
+
var TokenRefreshRequestSchema = z15.object({
|
|
4403
|
+
refresh: z15.string().min(1)
|
|
4574
4404
|
});
|
|
4575
4405
|
|
|
4576
4406
|
// src/auth/context/AccountsContext.tsx
|