@djangocfg/api 2.1.571 → 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.
Files changed (114) hide show
  1. package/dist/APIKey-EYCSY3JW.mjs +14 -0
  2. package/dist/APIKey-EYCSY3JW.mjs.map +1 -0
  3. package/dist/APIKey-I5QBXTLD.mjs +9 -0
  4. package/dist/APIKey-I5QBXTLD.mjs.map +1 -0
  5. package/dist/APIKeyRegenerate-3WIY3UIL.mjs +9 -0
  6. package/dist/APIKeyRegenerate-3WIY3UIL.mjs.map +1 -0
  7. package/dist/APIKeyRegenerate-AV5FCM32.mjs +13 -0
  8. package/dist/APIKeyRegenerate-AV5FCM32.mjs.map +1 -0
  9. package/dist/APIKeyReveal-JDXZMXKO.mjs +9 -0
  10. package/dist/APIKeyReveal-JDXZMXKO.mjs.map +1 -0
  11. package/dist/APIKeyReveal-ZY7ZD4WX.mjs +14 -0
  12. package/dist/APIKeyReveal-ZY7ZD4WX.mjs.map +1 -0
  13. package/dist/APIKeyTestResult-MQM2Q7XN.mjs +9 -0
  14. package/dist/APIKeyTestResult-MQM2Q7XN.mjs.map +1 -0
  15. package/dist/APIKeyTestResult-NPKQLHSQ.mjs +13 -0
  16. package/dist/APIKeyTestResult-NPKQLHSQ.mjs.map +1 -0
  17. package/dist/AccountDeleteResponse-NISN5UOR.mjs +9 -0
  18. package/dist/AccountDeleteResponse-NISN5UOR.mjs.map +1 -0
  19. package/dist/ConsentPolicy-67GXCYPA.mjs +9 -0
  20. package/dist/ConsentPolicy-67GXCYPA.mjs.map +1 -0
  21. package/dist/ConsentPolicy-A5WZFHO7.mjs +19 -0
  22. package/dist/ConsentPolicy-A5WZFHO7.mjs.map +1 -0
  23. package/dist/OAuthAuthorizeResponse-JQ5W7ZOZ.mjs +9 -0
  24. package/dist/OAuthAuthorizeResponse-JQ5W7ZOZ.mjs.map +1 -0
  25. package/dist/OAuthProvidersResponse-5DUH2AT7.mjs +9 -0
  26. package/dist/OAuthProvidersResponse-5DUH2AT7.mjs.map +1 -0
  27. package/dist/OAuthTokenResponse-4SJDK73L.mjs +9 -0
  28. package/dist/OAuthTokenResponse-4SJDK73L.mjs.map +1 -0
  29. package/dist/OTPRequestResponse-KKEOYXXS.mjs +9 -0
  30. package/dist/OTPRequestResponse-KKEOYXXS.mjs.map +1 -0
  31. package/dist/OTPVerifyResponse-XBXVMTO3.mjs +10 -0
  32. package/dist/OTPVerifyResponse-XBXVMTO3.mjs.map +1 -0
  33. package/dist/PasswordLoginResponse-3IRCBQIN.mjs +10 -0
  34. package/dist/PasswordLoginResponse-3IRCBQIN.mjs.map +1 -0
  35. package/dist/TokenRefresh-MKEUOQCX.mjs +9 -0
  36. package/dist/TokenRefresh-MKEUOQCX.mjs.map +1 -0
  37. package/dist/User-7OXQV7XG.mjs +9 -0
  38. package/dist/User-7OXQV7XG.mjs.map +1 -0
  39. package/dist/auth.cjs +485 -299
  40. package/dist/auth.cjs.map +1 -1
  41. package/dist/auth.mjs +132 -302
  42. package/dist/auth.mjs.map +1 -1
  43. package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-J3IH5YMW.mjs +9 -0
  44. package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-J3IH5YMW.mjs.map +1 -0
  45. package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-6JT7B4EX.mjs +9 -0
  46. package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-6JT7B4EX.mjs.map +1 -0
  47. package/dist/chunk-53YKWR6F.mjs +8 -0
  48. package/dist/chunk-53YKWR6F.mjs.map +1 -0
  49. package/dist/chunk-6MHVHTWT.mjs +30 -0
  50. package/dist/chunk-6MHVHTWT.mjs.map +1 -0
  51. package/dist/chunk-AQ2RQ4BQ.mjs +21 -0
  52. package/dist/chunk-AQ2RQ4BQ.mjs.map +1 -0
  53. package/dist/chunk-AXBITHBG.mjs +13 -0
  54. package/dist/chunk-AXBITHBG.mjs.map +1 -0
  55. package/dist/chunk-B22YGMM3.mjs +30 -0
  56. package/dist/chunk-B22YGMM3.mjs.map +1 -0
  57. package/dist/chunk-GCRGQTJ4.mjs +13 -0
  58. package/dist/chunk-GCRGQTJ4.mjs.map +1 -0
  59. package/dist/chunk-IPXJOS2Y.mjs +32 -0
  60. package/dist/chunk-IPXJOS2Y.mjs.map +1 -0
  61. package/dist/chunk-K5HZ55SP.mjs +21 -0
  62. package/dist/chunk-K5HZ55SP.mjs.map +1 -0
  63. package/dist/chunk-NTSWD2CP.mjs +20 -0
  64. package/dist/chunk-NTSWD2CP.mjs.map +1 -0
  65. package/dist/chunk-NZGOHTNF.mjs +14 -0
  66. package/dist/chunk-NZGOHTNF.mjs.map +1 -0
  67. package/dist/chunk-OGDF6IJV.mjs +13 -0
  68. package/dist/chunk-OGDF6IJV.mjs.map +1 -0
  69. package/dist/chunk-PDARU7RC.mjs +14 -0
  70. package/dist/chunk-PDARU7RC.mjs.map +1 -0
  71. package/dist/chunk-RQDZ2EMB.mjs +13 -0
  72. package/dist/chunk-RQDZ2EMB.mjs.map +1 -0
  73. package/dist/chunk-SUTMTPAG.mjs +12 -0
  74. package/dist/chunk-SUTMTPAG.mjs.map +1 -0
  75. package/dist/chunk-X5FEPK4J.mjs +13 -0
  76. package/dist/chunk-X5FEPK4J.mjs.map +1 -0
  77. package/dist/chunk-XSAHOB2U.mjs +19 -0
  78. package/dist/chunk-XSAHOB2U.mjs.map +1 -0
  79. package/dist/chunk-YMOOSBRI.mjs +12 -0
  80. package/dist/chunk-YMOOSBRI.mjs.map +1 -0
  81. package/dist/hooks.cjs +131 -76
  82. package/dist/hooks.cjs.map +1 -1
  83. package/dist/hooks.mjs +33 -78
  84. package/dist/hooks.mjs.map +1 -1
  85. package/package.json +2 -2
  86. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts +41 -37
  87. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts +41 -37
  88. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts +41 -37
  89. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts +41 -37
  90. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts +41 -37
  91. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts +41 -37
  92. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts +41 -37
  93. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts +41 -37
  94. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts +41 -37
  95. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts +41 -37
  96. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts +41 -37
  97. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts +41 -37
  98. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileAvatarCreate.ts +41 -37
  99. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts +41 -37
  100. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts +41 -37
  101. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialUpdate.ts +41 -37
  102. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileRetrieve.ts +41 -37
  103. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts +41 -37
  104. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdateUpdate.ts +41 -37
  105. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts +41 -37
  106. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts +41 -37
  107. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRegenerateCreate.ts +41 -37
  108. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRetrieve.ts +41 -37
  109. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDevicesRetrieve.ts +41 -37
  110. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDisableCreate.ts +41 -37
  111. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupConfirmCreate.ts +41 -37
  112. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupCreate.ts +41 -37
  113. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyBackupCreate.ts +41 -37
  114. 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
- var __defProp = Object.defineProperty;
3
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
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
- const parsed = OTPRequestResponseSchema.safeParse(data);
4090
- if (!parsed.success) {
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
- return data;
4121
- }
4122
- return parsed.data;
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
- const parsed = OTPVerifyResponseSchema.safeParse(data);
4178
- if (!parsed.success) {
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
- return data;
4209
- }
4210
- return parsed.data;
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
- const parsed = UserSchema.safeParse(data);
4226
- if (!parsed.success) {
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
- return data;
4257
- }
4258
- return parsed.data;
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
- const parsed = UserSchema.safeParse(data);
4287
- if (!parsed.success) {
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
- return data;
4318
- }
4319
- return parsed.data;
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
- const parsed = UserSchema.safeParse(data);
4341
- if (!parsed.success) {
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
- return data;
4372
- }
4373
- return parsed.data;
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
- const parsed = PasswordLoginResponseSchema.safeParse(data);
4406
- if (!parsed.success) {
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
- return data;
4437
- }
4438
- return parsed.data;
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 as z22 } from "zod";
4457
- var APIKeyRequestSchema = z22.object({
4458
- key: z22.string().min(1),
4459
- reissued_at: z22.string().datetime({ offset: true }).nullable(),
4460
- created_at: z22.string().datetime({ offset: true })
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 z23 } from "zod";
4465
- var APIKeyTestRequestSchema = z23.object({
4466
- key: z23.string().min(1)
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 z24 } from "zod";
4471
- var CfgUserUpdateRequestSchema = z24.object({
4472
- first_name: z24.string().max(50).optional(),
4473
- last_name: z24.string().max(50).optional(),
4474
- company: z24.string().max(100).optional(),
4475
- phone: z24.string().max(20).optional(),
4476
- position: z24.string().max(100).optional(),
4477
- language: z24.string().max(10).optional(),
4478
- timezone: z24.string().max(64).optional()
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 z25 } from "zod";
4483
- var OAuthAuthorizeRequestRequestSchema = z25.object({
4484
- redirect_uri: z25.url().or(z25.literal("")).optional(),
4485
- source_url: z25.url().or(z25.literal("")).optional()
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 z26 } from "zod";
4490
- var OAuthCallbackRequestRequestSchema = z26.object({
4491
- code: z26.string().min(10).max(500),
4492
- state: z26.string().min(20).max(100),
4493
- redirect_uri: z26.url().or(z26.literal("")).optional(),
4494
- remember_me: z26.boolean().default(false).optional()
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 z27 } from "zod";
4499
- var OAuthDisconnectRequestRequestSchema = z27.object({
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 z28 } from "zod";
4505
- var OAuthErrorSchema = z28.object({
4506
- error: z28.string(),
4507
- error_description: z28.string().optional()
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 z29 } from "zod";
4512
- var OTPErrorResponseSchema = z29.object({
4513
- error: z29.string(),
4514
- error_code: z29.string().nullable().optional(),
4515
- retry_after: z29.number().int().nullable().optional()
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 z30 } from "zod";
4520
- var OTPRequestRequestSchema = z30.object({
4521
- identifier: z30.string().min(1),
4522
- source_url: z30.url().or(z30.literal("")).optional(),
4523
- marketing_consent: z30.boolean().nullable().optional(),
4524
- consent_disclosure_version: z30.string().max(64).optional()
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 z31 } from "zod";
4529
- var OTPVerifyRequestSchema = z31.object({
4530
- identifier: z31.string().min(1),
4531
- otp: z31.string().min(4).max(4),
4532
- source_url: z31.url().or(z31.literal("")).optional(),
4533
- remember_me: z31.boolean().default(false).optional()
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 z32 } from "zod";
4538
- var PasswordLoginErrorSchema = z32.object({
4539
- error: z32.string(),
4540
- error_code: z32.string(),
4541
- retry_after: z32.number().int().nullable().optional()
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 z33 } from "zod";
4546
- var PasswordLoginRequestSchema = z33.object({
4547
- remember_me: z33.boolean().default(false).optional(),
4548
- email: z33.email(),
4549
- password: z33.string()
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 z34 } from "zod";
4554
- var PatchedCfgUserUpdateRequestSchema = z34.object({
4555
- first_name: z34.string().max(50).optional(),
4556
- last_name: z34.string().max(50).optional(),
4557
- company: z34.string().max(100).optional(),
4558
- phone: z34.string().max(20).optional(),
4559
- position: z34.string().max(100).optional(),
4560
- language: z34.string().max(10).optional(),
4561
- timezone: z34.string().max(64).optional()
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 z35 } from "zod";
4566
- var TokenBlacklistRequestSchema = z35.object({
4567
- refresh: z35.string().min(1)
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 z36 } from "zod";
4572
- var TokenRefreshRequestSchema = z36.object({
4573
- refresh: z36.string().min(1)
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