@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.
Files changed (138) 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-32BGUXEK.mjs +13 -0
  18. package/dist/AccountDeleteResponse-32BGUXEK.mjs.map +1 -0
  19. package/dist/AccountDeleteResponse-NISN5UOR.mjs +9 -0
  20. package/dist/AccountDeleteResponse-NISN5UOR.mjs.map +1 -0
  21. package/dist/ConsentPolicy-67GXCYPA.mjs +9 -0
  22. package/dist/ConsentPolicy-67GXCYPA.mjs.map +1 -0
  23. package/dist/ConsentPolicy-A5WZFHO7.mjs +19 -0
  24. package/dist/ConsentPolicy-A5WZFHO7.mjs.map +1 -0
  25. package/dist/OAuthAuthorizeResponse-JQ5W7ZOZ.mjs +9 -0
  26. package/dist/OAuthAuthorizeResponse-JQ5W7ZOZ.mjs.map +1 -0
  27. package/dist/OAuthAuthorizeResponse-TQMQXACC.mjs +13 -0
  28. package/dist/OAuthAuthorizeResponse-TQMQXACC.mjs.map +1 -0
  29. package/dist/OAuthProvidersResponse-5DUH2AT7.mjs +9 -0
  30. package/dist/OAuthProvidersResponse-5DUH2AT7.mjs.map +1 -0
  31. package/dist/OAuthProvidersResponse-VM3YO5FZ.mjs +12 -0
  32. package/dist/OAuthProvidersResponse-VM3YO5FZ.mjs.map +1 -0
  33. package/dist/OAuthTokenResponse-4SJDK73L.mjs +9 -0
  34. package/dist/OAuthTokenResponse-4SJDK73L.mjs.map +1 -0
  35. package/dist/OAuthTokenResponse-ELAZFNHE.mjs +20 -0
  36. package/dist/OAuthTokenResponse-ELAZFNHE.mjs.map +1 -0
  37. package/dist/OTPRequestResponse-KKEOYXXS.mjs +9 -0
  38. package/dist/OTPRequestResponse-KKEOYXXS.mjs.map +1 -0
  39. package/dist/OTPRequestResponse-ZU5KRNSW.mjs +30 -0
  40. package/dist/OTPRequestResponse-ZU5KRNSW.mjs.map +1 -0
  41. package/dist/OTPVerifyResponse-LJVUP5JS.mjs +21 -0
  42. package/dist/OTPVerifyResponse-LJVUP5JS.mjs.map +1 -0
  43. package/dist/OTPVerifyResponse-XBXVMTO3.mjs +10 -0
  44. package/dist/OTPVerifyResponse-XBXVMTO3.mjs.map +1 -0
  45. package/dist/PasswordLoginResponse-3IRCBQIN.mjs +10 -0
  46. package/dist/PasswordLoginResponse-3IRCBQIN.mjs.map +1 -0
  47. package/dist/PasswordLoginResponse-A7QRJTAQ.mjs +21 -0
  48. package/dist/PasswordLoginResponse-A7QRJTAQ.mjs.map +1 -0
  49. package/dist/TokenRefresh-JAUMGIFS.mjs +13 -0
  50. package/dist/TokenRefresh-JAUMGIFS.mjs.map +1 -0
  51. package/dist/TokenRefresh-MKEUOQCX.mjs +9 -0
  52. package/dist/TokenRefresh-MKEUOQCX.mjs.map +1 -0
  53. package/dist/User-7OXQV7XG.mjs +9 -0
  54. package/dist/User-7OXQV7XG.mjs.map +1 -0
  55. package/dist/auth.cjs +163 -347
  56. package/dist/auth.cjs.map +1 -1
  57. package/dist/auth.d.cts +1 -12
  58. package/dist/auth.d.ts +1 -12
  59. package/dist/auth.mjs +39 -349
  60. package/dist/auth.mjs.map +1 -1
  61. package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-ILSH4EVV.mjs +31 -0
  62. package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-ILSH4EVV.mjs.map +1 -0
  63. package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-J3IH5YMW.mjs +9 -0
  64. package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-J3IH5YMW.mjs.map +1 -0
  65. package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-4ZCO4CSB.mjs +12 -0
  66. package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-4ZCO4CSB.mjs.map +1 -0
  67. package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-6JT7B4EX.mjs +9 -0
  68. package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-6JT7B4EX.mjs.map +1 -0
  69. package/dist/chunk-53YKWR6F.mjs +8 -0
  70. package/dist/chunk-53YKWR6F.mjs.map +1 -0
  71. package/dist/chunk-6MHVHTWT.mjs +30 -0
  72. package/dist/chunk-6MHVHTWT.mjs.map +1 -0
  73. package/dist/chunk-AQ2RQ4BQ.mjs +21 -0
  74. package/dist/chunk-AQ2RQ4BQ.mjs.map +1 -0
  75. package/dist/chunk-AXBITHBG.mjs +13 -0
  76. package/dist/chunk-AXBITHBG.mjs.map +1 -0
  77. package/dist/chunk-B22YGMM3.mjs +30 -0
  78. package/dist/chunk-B22YGMM3.mjs.map +1 -0
  79. package/dist/chunk-GCRGQTJ4.mjs +13 -0
  80. package/dist/chunk-GCRGQTJ4.mjs.map +1 -0
  81. package/dist/chunk-IPXJOS2Y.mjs +32 -0
  82. package/dist/chunk-IPXJOS2Y.mjs.map +1 -0
  83. package/dist/chunk-K5HZ55SP.mjs +21 -0
  84. package/dist/chunk-K5HZ55SP.mjs.map +1 -0
  85. package/dist/chunk-NTSWD2CP.mjs +20 -0
  86. package/dist/chunk-NTSWD2CP.mjs.map +1 -0
  87. package/dist/chunk-NZGOHTNF.mjs +14 -0
  88. package/dist/chunk-NZGOHTNF.mjs.map +1 -0
  89. package/dist/chunk-OGDF6IJV.mjs +13 -0
  90. package/dist/chunk-OGDF6IJV.mjs.map +1 -0
  91. package/dist/chunk-PDARU7RC.mjs +14 -0
  92. package/dist/chunk-PDARU7RC.mjs.map +1 -0
  93. package/dist/chunk-RQDZ2EMB.mjs +13 -0
  94. package/dist/chunk-RQDZ2EMB.mjs.map +1 -0
  95. package/dist/chunk-SUTMTPAG.mjs +12 -0
  96. package/dist/chunk-SUTMTPAG.mjs.map +1 -0
  97. package/dist/chunk-X5FEPK4J.mjs +13 -0
  98. package/dist/chunk-X5FEPK4J.mjs.map +1 -0
  99. package/dist/chunk-XSAHOB2U.mjs +19 -0
  100. package/dist/chunk-XSAHOB2U.mjs.map +1 -0
  101. package/dist/chunk-YMOOSBRI.mjs +12 -0
  102. package/dist/chunk-YMOOSBRI.mjs.map +1 -0
  103. package/dist/hooks.cjs +131 -76
  104. package/dist/hooks.cjs.map +1 -1
  105. package/dist/hooks.mjs +33 -78
  106. package/dist/hooks.mjs.map +1 -1
  107. package/package.json +2 -2
  108. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts +41 -37
  109. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts +41 -37
  110. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts +41 -37
  111. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts +41 -37
  112. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts +41 -37
  113. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts +41 -37
  114. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts +41 -37
  115. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts +41 -37
  116. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts +41 -37
  117. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts +41 -37
  118. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts +41 -37
  119. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts +41 -37
  120. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileAvatarCreate.ts +41 -37
  121. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts +41 -37
  122. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts +41 -37
  123. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialUpdate.ts +41 -37
  124. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileRetrieve.ts +41 -37
  125. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts +41 -37
  126. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdateUpdate.ts +41 -37
  127. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts +41 -37
  128. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts +41 -37
  129. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRegenerateCreate.ts +41 -37
  130. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRetrieve.ts +41 -37
  131. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDevicesRetrieve.ts +41 -37
  132. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDisableCreate.ts +41 -37
  133. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupConfirmCreate.ts +41 -37
  134. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupCreate.ts +41 -37
  135. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyBackupCreate.ts +41 -37
  136. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyCreate.ts +41 -37
  137. package/src/auth/context/AccountsContext.tsx +0 -2
  138. package/src/auth/context/index.ts +1 -1
package/dist/auth.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { MutableRefObject, ReactNode } from 'react';
3
3
  import * as consola from 'consola';
4
- import { z } from 'zod';
5
4
 
6
5
  /**
7
6
  * Auth-related constants shared across the frontend.
@@ -721,16 +720,6 @@ declare const AuthProvider: React__default.MemoExoticComponent<typeof AuthProvid
721
720
  */
722
721
  declare const useAuth: () => AuthContextType;
723
722
 
724
- declare const PatchedCfgUserUpdateRequestSchema: z.ZodObject<{
725
- first_name: z.ZodOptional<z.ZodString>;
726
- last_name: z.ZodOptional<z.ZodString>;
727
- company: z.ZodOptional<z.ZodString>;
728
- phone: z.ZodOptional<z.ZodString>;
729
- position: z.ZodOptional<z.ZodString>;
730
- language: z.ZodOptional<z.ZodString>;
731
- timezone: z.ZodOptional<z.ZodString>;
732
- }, z.core.$strip>;
733
-
734
723
  interface AccountsContextValue {
735
724
  profile?: User;
736
725
  isLoadingProfile: boolean;
@@ -1440,4 +1429,4 @@ declare const Analytics: {
1440
1429
  setUser(userId: string | null): void;
1441
1430
  };
1442
1431
 
1443
- export { AUTH_CONSTANTS, AUTH_ERROR_KEYS, type AccountsContextValue, AccountsProvider, Analytics, AnalyticsCategory, type AnalyticsCategoryType, AnalyticsEvent, type AnalyticsEventType, type AnalyticsSink, type AuthConfig, AuthContext, type AuthContextType, type AuthErrorCopy, type AuthErrorKey, type AuthFormAutoSubmit, type AuthFormReturn, type AuthFormState, type AuthFormStateHandlers, type AuthFormSubmitHandlers, type AuthFormValidation, AuthProvider, type AuthProviderProps, type AuthStep, type DeleteAccountResult, type GuardInput, type OTPRequestConsent, type OTPRequestResult, type PasswordLoginOptions, type PasswordLoginResult, type PatchedCfgUserUpdateRequest, PatchedCfgUserUpdateRequestSchema, type ProfileCacheOptions, type SessionSnapshot, type SessionStatus, type TwoFactorDevice, type TwoFactorSetupData, type UseAuthFormOptions, type UseAuthFormStateReturn, type UseAutoAuthOptions, type UseDeleteAccountReturn, type UseGithubAuthOptions, type UseGithubAuthReturn, type UseTwoFactorOptions, type UseTwoFactorReturn, type UseTwoFactorSetupOptions, type UseTwoFactorSetupReturn, type UseTwoFactorStatusReturn, type UseTwoFactorVerifyOptions, type UseTwoFactorVerifyReturn, type UserProfile, type WebmailLink, authLogger, clearProfileCache, consumeSavedRedirect, decodeBase64, encodeBase64, formatAuthError, getCacheMetadata, getCachedProfile, hasValidCache, isAllowedAuthPath, isForbidden, logAuthFailure, logger, normalizePath, peekSavedRedirect, resolveAuthError, resolveGuardIsAuthenticated, resolveGuardIsLoading, setAnalyticsSink, setCachedProfile, shouldRedirectToAuth, useAccountsContext, useAuth, useAuthForm, useAuthFormState, useAuthRedirectManager, useAuthValidation, useAutoAuth, useBase64, useCfgRouter, useDeleteAccount, useGithubAuth, useLocalStorage, useQueryParams, useSession, useSessionStorage, useTwoFactor, useTwoFactorSetup, useTwoFactorStatus, useTwoFactorVerify, validateEmail, validateIdentifier };
1432
+ export { AUTH_CONSTANTS, AUTH_ERROR_KEYS, type AccountsContextValue, AccountsProvider, Analytics, AnalyticsCategory, type AnalyticsCategoryType, AnalyticsEvent, type AnalyticsEventType, type AnalyticsSink, type AuthConfig, AuthContext, type AuthContextType, type AuthErrorCopy, type AuthErrorKey, type AuthFormAutoSubmit, type AuthFormReturn, type AuthFormState, type AuthFormStateHandlers, type AuthFormSubmitHandlers, type AuthFormValidation, AuthProvider, type AuthProviderProps, type AuthStep, type DeleteAccountResult, type GuardInput, type OTPRequestConsent, type OTPRequestResult, type PasswordLoginOptions, type PasswordLoginResult, type PatchedCfgUserUpdateRequest, type ProfileCacheOptions, type SessionSnapshot, type SessionStatus, type TwoFactorDevice, type TwoFactorSetupData, type UseAuthFormOptions, type UseAuthFormStateReturn, type UseAutoAuthOptions, type UseDeleteAccountReturn, type UseGithubAuthOptions, type UseGithubAuthReturn, type UseTwoFactorOptions, type UseTwoFactorReturn, type UseTwoFactorSetupOptions, type UseTwoFactorSetupReturn, type UseTwoFactorStatusReturn, type UseTwoFactorVerifyOptions, type UseTwoFactorVerifyReturn, type UserProfile, type WebmailLink, authLogger, clearProfileCache, consumeSavedRedirect, decodeBase64, encodeBase64, formatAuthError, getCacheMetadata, getCachedProfile, hasValidCache, isAllowedAuthPath, isForbidden, logAuthFailure, logger, normalizePath, peekSavedRedirect, resolveAuthError, resolveGuardIsAuthenticated, resolveGuardIsLoading, setAnalyticsSink, setCachedProfile, shouldRedirectToAuth, useAccountsContext, useAuth, useAuthForm, useAuthFormState, useAuthRedirectManager, useAuthValidation, useAutoAuth, useBase64, useCfgRouter, useDeleteAccount, useGithubAuth, useLocalStorage, useQueryParams, useSession, useSessionStorage, useTwoFactor, useTwoFactorSetup, useTwoFactorStatus, useTwoFactorVerify, validateEmail, validateIdentifier };
package/dist/auth.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as React$1 from 'react';
2
2
  import React__default, { MutableRefObject, ReactNode } from 'react';
3
3
  import * as consola from 'consola';
4
- import { z } from 'zod';
5
4
 
6
5
  /**
7
6
  * Auth-related constants shared across the frontend.
@@ -721,16 +720,6 @@ declare const AuthProvider: React__default.MemoExoticComponent<typeof AuthProvid
721
720
  */
722
721
  declare const useAuth: () => AuthContextType;
723
722
 
724
- declare const PatchedCfgUserUpdateRequestSchema: z.ZodObject<{
725
- first_name: z.ZodOptional<z.ZodString>;
726
- last_name: z.ZodOptional<z.ZodString>;
727
- company: z.ZodOptional<z.ZodString>;
728
- phone: z.ZodOptional<z.ZodString>;
729
- position: z.ZodOptional<z.ZodString>;
730
- language: z.ZodOptional<z.ZodString>;
731
- timezone: z.ZodOptional<z.ZodString>;
732
- }, z.core.$strip>;
733
-
734
723
  interface AccountsContextValue {
735
724
  profile?: User;
736
725
  isLoadingProfile: boolean;
@@ -1440,4 +1429,4 @@ declare const Analytics: {
1440
1429
  setUser(userId: string | null): void;
1441
1430
  };
1442
1431
 
1443
- export { AUTH_CONSTANTS, AUTH_ERROR_KEYS, type AccountsContextValue, AccountsProvider, Analytics, AnalyticsCategory, type AnalyticsCategoryType, AnalyticsEvent, type AnalyticsEventType, type AnalyticsSink, type AuthConfig, AuthContext, type AuthContextType, type AuthErrorCopy, type AuthErrorKey, type AuthFormAutoSubmit, type AuthFormReturn, type AuthFormState, type AuthFormStateHandlers, type AuthFormSubmitHandlers, type AuthFormValidation, AuthProvider, type AuthProviderProps, type AuthStep, type DeleteAccountResult, type GuardInput, type OTPRequestConsent, type OTPRequestResult, type PasswordLoginOptions, type PasswordLoginResult, type PatchedCfgUserUpdateRequest, PatchedCfgUserUpdateRequestSchema, type ProfileCacheOptions, type SessionSnapshot, type SessionStatus, type TwoFactorDevice, type TwoFactorSetupData, type UseAuthFormOptions, type UseAuthFormStateReturn, type UseAutoAuthOptions, type UseDeleteAccountReturn, type UseGithubAuthOptions, type UseGithubAuthReturn, type UseTwoFactorOptions, type UseTwoFactorReturn, type UseTwoFactorSetupOptions, type UseTwoFactorSetupReturn, type UseTwoFactorStatusReturn, type UseTwoFactorVerifyOptions, type UseTwoFactorVerifyReturn, type UserProfile, type WebmailLink, authLogger, clearProfileCache, consumeSavedRedirect, decodeBase64, encodeBase64, formatAuthError, getCacheMetadata, getCachedProfile, hasValidCache, isAllowedAuthPath, isForbidden, logAuthFailure, logger, normalizePath, peekSavedRedirect, resolveAuthError, resolveGuardIsAuthenticated, resolveGuardIsLoading, setAnalyticsSink, setCachedProfile, shouldRedirectToAuth, useAccountsContext, useAuth, useAuthForm, useAuthFormState, useAuthRedirectManager, useAuthValidation, useAutoAuth, useBase64, useCfgRouter, useDeleteAccount, useGithubAuth, useLocalStorage, useQueryParams, useSession, useSessionStorage, useTwoFactor, useTwoFactorSetup, useTwoFactorStatus, useTwoFactorVerify, validateEmail, validateIdentifier };
1432
+ export { AUTH_CONSTANTS, AUTH_ERROR_KEYS, type AccountsContextValue, AccountsProvider, Analytics, AnalyticsCategory, type AnalyticsCategoryType, AnalyticsEvent, type AnalyticsEventType, type AnalyticsSink, type AuthConfig, AuthContext, type AuthContextType, type AuthErrorCopy, type AuthErrorKey, type AuthFormAutoSubmit, type AuthFormReturn, type AuthFormState, type AuthFormStateHandlers, type AuthFormSubmitHandlers, type AuthFormValidation, AuthProvider, type AuthProviderProps, type AuthStep, type DeleteAccountResult, type GuardInput, type OTPRequestConsent, type OTPRequestResult, type PasswordLoginOptions, type PasswordLoginResult, type PatchedCfgUserUpdateRequest, type ProfileCacheOptions, type SessionSnapshot, type SessionStatus, type TwoFactorDevice, type TwoFactorSetupData, type UseAuthFormOptions, type UseAuthFormStateReturn, type UseAutoAuthOptions, type UseDeleteAccountReturn, type UseGithubAuthOptions, type UseGithubAuthReturn, type UseTwoFactorOptions, type UseTwoFactorReturn, type UseTwoFactorSetupOptions, type UseTwoFactorSetupReturn, type UseTwoFactorStatusReturn, type UseTwoFactorVerifyOptions, type UseTwoFactorVerifyReturn, type UserProfile, type WebmailLink, authLogger, clearProfileCache, consumeSavedRedirect, decodeBase64, encodeBase64, formatAuthError, getCacheMetadata, getCachedProfile, hasValidCache, isAllowedAuthPath, isForbidden, logAuthFailure, logger, normalizePath, peekSavedRedirect, resolveAuthError, resolveGuardIsAuthenticated, resolveGuardIsLoading, setAnalyticsSink, setCachedProfile, shouldRedirectToAuth, useAccountsContext, useAuth, useAuthForm, useAuthFormState, useAuthRedirectManager, useAuthValidation, useAutoAuth, useBase64, useCfgRouter, useDeleteAccount, useGithubAuth, useLocalStorage, useQueryParams, useSession, useSessionStorage, useTwoFactor, useTwoFactorSetup, useTwoFactorStatus, useTwoFactorVerify, validateEmail, validateIdentifier };
package/dist/auth.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  "use client";
2
- var __defProp = Object.defineProperty;
3
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
2
+ import {
3
+ __name
4
+ } from "./chunk-53YKWR6F.mjs";
4
5
 
5
6
  // src/auth/constants.ts
6
7
  var AUTH_CONSTANTS = {
@@ -3924,170 +3925,44 @@ import {
3924
3925
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts
3925
3926
  import useSWRMutation from "swr/mutation";
3926
3927
 
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
3928
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts
3935
3929
  import useSWR from "swr";
3936
3930
 
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
3931
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
3946
3932
  import useSWRMutation2 from "swr/mutation";
3947
3933
 
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
3934
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
3957
3935
  import useSWRMutation3 from "swr/mutation";
3958
3936
 
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
3937
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts
3967
3938
  import useSWR2 from "swr";
3968
3939
 
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
3940
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts
3995
3941
  import useSWRMutation4 from "swr/mutation";
3996
3942
 
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
3943
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts
4004
3944
  import useSWRMutation5 from "swr/mutation";
4005
3945
 
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
3946
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts
4014
3947
  import useSWRMutation6 from "swr/mutation";
4015
3948
 
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
3949
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts
4031
3950
  import useSWR3 from "swr";
4032
3951
 
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
3952
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts
4040
3953
  import useSWR4 from "swr";
4041
3954
 
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
3955
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
4056
3956
  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
3957
  function useCfgAccountsOtpRequestCreate(config) {
4084
3958
  return useSWRMutation7(
4085
3959
  ["cfg_accounts_otp_request_create"],
4086
3960
  async (_key, { arg }) => {
4087
3961
  const res = await CfgAccountsOtp.cfgAccountsOtpRequestCreate({ ...arg, throwOnError: true });
4088
3962
  const data = res.data;
4089
- const parsed = OTPRequestResponseSchema.safeParse(data);
4090
- if (!parsed.success) {
3963
+ void import("./OTPRequestResponse-ZU5KRNSW.mjs").then(({ OTPRequestResponseSchema }) => {
3964
+ const parsed = OTPRequestResponseSchema.safeParse(data);
3965
+ if (parsed.success) return;
4091
3966
  console.warn(
4092
3967
  "[zod] response did not match schema",
4093
3968
  {
@@ -4117,9 +3992,9 @@ function useCfgAccountsOtpRequestCreate(config) {
4117
3992
  } catch {
4118
3993
  }
4119
3994
  }
4120
- return data;
4121
- }
4122
- return parsed.data;
3995
+ }).catch(() => {
3996
+ });
3997
+ return data;
4123
3998
  },
4124
3999
  config
4125
4000
  );
@@ -4128,54 +4003,15 @@ __name(useCfgAccountsOtpRequestCreate, "useCfgAccountsOtpRequestCreate");
4128
4003
 
4129
4004
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
4130
4005
  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
4006
  function useCfgAccountsOtpVerifyCreate(config) {
4172
4007
  return useSWRMutation8(
4173
4008
  ["cfg_accounts_otp_verify_create"],
4174
4009
  async (_key, { arg }) => {
4175
4010
  const res = await CfgAccountsOtp.cfgAccountsOtpVerifyCreate({ ...arg, throwOnError: true });
4176
4011
  const data = res.data;
4177
- const parsed = OTPVerifyResponseSchema.safeParse(data);
4178
- if (!parsed.success) {
4012
+ void import("./OTPVerifyResponse-LJVUP5JS.mjs").then(({ OTPVerifyResponseSchema }) => {
4013
+ const parsed = OTPVerifyResponseSchema.safeParse(data);
4014
+ if (parsed.success) return;
4179
4015
  console.warn(
4180
4016
  "[zod] response did not match schema",
4181
4017
  {
@@ -4205,9 +4041,9 @@ function useCfgAccountsOtpVerifyCreate(config) {
4205
4041
  } catch {
4206
4042
  }
4207
4043
  }
4208
- return data;
4209
- }
4210
- return parsed.data;
4044
+ }).catch(() => {
4045
+ });
4046
+ return data;
4211
4047
  },
4212
4048
  config
4213
4049
  );
@@ -4222,8 +4058,9 @@ function useCfgAccountsProfileAvatarCreate(config) {
4222
4058
  async (_key, { arg }) => {
4223
4059
  const res = await CfgAccountsProfile.cfgAccountsProfileAvatarCreate({ ...arg, throwOnError: true });
4224
4060
  const data = res.data;
4225
- const parsed = UserSchema.safeParse(data);
4226
- if (!parsed.success) {
4061
+ void import("./User-7OXQV7XG.mjs").then(({ UserSchema }) => {
4062
+ const parsed = UserSchema.safeParse(data);
4063
+ if (parsed.success) return;
4227
4064
  console.warn(
4228
4065
  "[zod] response did not match schema",
4229
4066
  {
@@ -4253,9 +4090,9 @@ function useCfgAccountsProfileAvatarCreate(config) {
4253
4090
  } catch {
4254
4091
  }
4255
4092
  }
4256
- return data;
4257
- }
4258
- return parsed.data;
4093
+ }).catch(() => {
4094
+ });
4095
+ return data;
4259
4096
  },
4260
4097
  config
4261
4098
  );
@@ -4265,13 +4102,6 @@ __name(useCfgAccountsProfileAvatarCreate, "useCfgAccountsProfileAvatarCreate");
4265
4102
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts
4266
4103
  import useSWRMutation10 from "swr/mutation";
4267
4104
 
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
4105
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts
4276
4106
  import useSWRMutation11 from "swr/mutation";
4277
4107
 
@@ -4283,8 +4113,9 @@ function useCfgAccountsProfilePartialUpdate(config) {
4283
4113
  async (_key, { arg }) => {
4284
4114
  const res = await CfgAccountsProfile.cfgAccountsProfilePartialUpdate({ ...arg, throwOnError: true });
4285
4115
  const data = res.data;
4286
- const parsed = UserSchema.safeParse(data);
4287
- if (!parsed.success) {
4116
+ void import("./User-7OXQV7XG.mjs").then(({ UserSchema }) => {
4117
+ const parsed = UserSchema.safeParse(data);
4118
+ if (parsed.success) return;
4288
4119
  console.warn(
4289
4120
  "[zod] response did not match schema",
4290
4121
  {
@@ -4314,9 +4145,9 @@ function useCfgAccountsProfilePartialUpdate(config) {
4314
4145
  } catch {
4315
4146
  }
4316
4147
  }
4317
- return data;
4318
- }
4319
- return parsed.data;
4148
+ }).catch(() => {
4149
+ });
4150
+ return data;
4320
4151
  },
4321
4152
  config
4322
4153
  );
@@ -4337,8 +4168,9 @@ function useCfgAccountsProfileUpdateUpdate(config) {
4337
4168
  async (_key, { arg }) => {
4338
4169
  const res = await CfgAccountsProfile.cfgAccountsProfileUpdateUpdate({ ...arg, throwOnError: true });
4339
4170
  const data = res.data;
4340
- const parsed = UserSchema.safeParse(data);
4341
- if (!parsed.success) {
4171
+ void import("./User-7OXQV7XG.mjs").then(({ UserSchema }) => {
4172
+ const parsed = UserSchema.safeParse(data);
4173
+ if (parsed.success) return;
4342
4174
  console.warn(
4343
4175
  "[zod] response did not match schema",
4344
4176
  {
@@ -4368,9 +4200,9 @@ function useCfgAccountsProfileUpdateUpdate(config) {
4368
4200
  } catch {
4369
4201
  }
4370
4202
  }
4371
- return data;
4372
- }
4373
- return parsed.data;
4203
+ }).catch(() => {
4204
+ });
4205
+ return data;
4374
4206
  },
4375
4207
  config
4376
4208
  );
@@ -4382,28 +4214,15 @@ import useSWRMutation15 from "swr/mutation";
4382
4214
 
4383
4215
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts
4384
4216
  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
4217
  function useCfgAccountsTokenCreate(config) {
4400
4218
  return useSWRMutation16(
4401
4219
  ["cfg_accounts_token_create"],
4402
4220
  async (_key, { arg }) => {
4403
4221
  const res = await CfgAccountsAuth.cfgAccountsTokenCreate({ ...arg, throwOnError: true });
4404
4222
  const data = res.data;
4405
- const parsed = PasswordLoginResponseSchema.safeParse(data);
4406
- if (!parsed.success) {
4223
+ void import("./PasswordLoginResponse-A7QRJTAQ.mjs").then(({ PasswordLoginResponseSchema }) => {
4224
+ const parsed = PasswordLoginResponseSchema.safeParse(data);
4225
+ if (parsed.success) return;
4407
4226
  console.warn(
4408
4227
  "[zod] response did not match schema",
4409
4228
  {
@@ -4433,9 +4252,9 @@ function useCfgAccountsTokenCreate(config) {
4433
4252
  } catch {
4434
4253
  }
4435
4254
  }
4436
- return data;
4437
- }
4438
- return parsed.data;
4255
+ }).catch(() => {
4256
+ });
4257
+ return data;
4439
4258
  },
4440
4259
  config
4441
4260
  );
@@ -4445,134 +4264,6 @@ __name(useCfgAccountsTokenCreate, "useCfgAccountsTokenCreate");
4445
4264
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts
4446
4265
  import useSWRMutation17 from "swr/mutation";
4447
4266
 
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
- // 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 })
4461
- });
4462
-
4463
- // 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)
4467
- });
4468
-
4469
- // 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()
4479
- });
4480
-
4481
- // 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()
4486
- });
4487
-
4488
- // 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()
4495
- });
4496
-
4497
- // src/_api/generated/_cfg_accounts/schemas/OAuthDisconnectRequestRequest.ts
4498
- import { z as z27 } from "zod";
4499
- var OAuthDisconnectRequestRequestSchema = z27.object({
4500
- provider: OAuthProviderEnumSchema
4501
- });
4502
-
4503
- // 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()
4508
- });
4509
-
4510
- // 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()
4516
- });
4517
-
4518
- // 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()
4525
- });
4526
-
4527
- // 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()
4534
- });
4535
-
4536
- // 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()
4542
- });
4543
-
4544
- // 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()
4550
- });
4551
-
4552
- // 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()
4562
- });
4563
-
4564
- // 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)
4568
- });
4569
-
4570
- // 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)
4574
- });
4575
-
4576
4267
  // src/auth/context/AccountsContext.tsx
4577
4268
  import { jsx } from "react/jsx-runtime";
4578
4269
  function hasApiOrigin() {
@@ -5215,7 +4906,6 @@ export {
5215
4906
  AnalyticsEvent,
5216
4907
  AuthContext_default as AuthContext,
5217
4908
  AuthProvider,
5218
- PatchedCfgUserUpdateRequestSchema,
5219
4909
  authLogger,
5220
4910
  clearProfileCache,
5221
4911
  consumeSavedRedirect,