@djangocfg/api 2.1.541 → 2.1.543

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 (67) hide show
  1. package/README.md +1 -2
  2. package/dist/auth-server.cjs +1 -0
  3. package/dist/auth-server.cjs.map +1 -1
  4. package/dist/auth.cjs +156 -170
  5. package/dist/auth.cjs.map +1 -1
  6. package/dist/auth.d.cts +134 -29
  7. package/dist/auth.d.ts +134 -29
  8. package/dist/auth.mjs +168 -183
  9. package/dist/auth.mjs.map +1 -1
  10. package/dist/clients.cjs +4 -99
  11. package/dist/clients.cjs.map +1 -1
  12. package/dist/clients.d.cts +4 -136
  13. package/dist/clients.d.ts +4 -136
  14. package/dist/clients.mjs +3 -99
  15. package/dist/clients.mjs.map +1 -1
  16. package/dist/hooks.cjs +1 -0
  17. package/dist/hooks.cjs.map +1 -1
  18. package/dist/hooks.d.cts +2 -4
  19. package/dist/hooks.d.ts +2 -4
  20. package/dist/hooks.mjs.map +1 -1
  21. package/dist/index.cjs +4 -100
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +10 -340
  24. package/dist/index.d.ts +10 -340
  25. package/dist/index.mjs +3 -100
  26. package/dist/index.mjs.map +1 -1
  27. package/package.json +5 -4
  28. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts +8 -2
  29. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts +8 -2
  30. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts +8 -2
  31. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts +8 -2
  32. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileRetrieve.ts +8 -2
  33. package/src/_api/generated/_cfg_accounts/openapi.json +0 -45
  34. package/src/_api/generated/_cfg_accounts/schemas/User.ts +0 -2
  35. package/src/_api/generated/_cfg_accounts/schemas/index.ts +0 -1
  36. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRetrieve.ts +8 -2
  37. package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDevicesRetrieve.ts +8 -2
  38. package/src/_api/generated/index.ts +1 -5
  39. package/src/_api/generated/openapi.json +0 -135
  40. package/src/_api/generated/sdk.gen.ts +1 -20
  41. package/src/_api/generated/types.gen.ts +0 -79
  42. package/src/_api/index.ts +1 -1
  43. package/src/auth/__tests__/useTwoFactorStatus.test.ts +2 -2
  44. package/src/auth/context/AccountsContext.tsx +15 -11
  45. package/src/auth/hooks/useAuthForm.ts +0 -1
  46. package/src/auth/hooks/useCfgRouter.ts +1 -4
  47. package/src/auth/hooks/useGithubAuth.ts +25 -3
  48. package/src/auth/hooks/useLocalStorage.ts +7 -30
  49. package/src/auth/hooks/useSessionStorage.ts +6 -29
  50. package/src/auth/hooks/useTwoFactorVerify.ts +5 -9
  51. package/src/auth/utils/analytics.ts +22 -2
  52. package/src/auth/utils/errors.ts +22 -11
  53. package/src/auth/utils/storage.ts +64 -0
  54. package/src/clients.ts +2 -4
  55. package/src/index.ts +0 -2
  56. package/src/log-control.ts +1 -1
  57. package/src/server.ts +0 -4
  58. package/src/_api/generated/_cfg_accounts/schemas/CentrifugoToken.ts +0 -14
  59. package/src/_api/generated/_cfg_centrifugo/api.ts +0 -87
  60. package/src/_api/generated/_cfg_centrifugo/hooks/index.ts +0 -4
  61. package/src/_api/generated/_cfg_centrifugo/hooks/useCfgCentrifugoAuthTokenRetrieve.ts +0 -74
  62. package/src/_api/generated/_cfg_centrifugo/index.ts +0 -29
  63. package/src/_api/generated/_cfg_centrifugo/openapi.json +0 -136
  64. package/src/_api/generated/_cfg_centrifugo/schemas/ConnectionTokenResponse.ts +0 -14
  65. package/src/_api/generated/_cfg_centrifugo/schemas/index.ts +0 -4
  66. package/src/_api/generated/_cfg_centrifugo/sdk.gen.ts +0 -5
  67. package/src/_api/generated/_cfg_centrifugo/types.gen.ts +0 -5
package/dist/hooks.d.cts CHANGED
@@ -1,6 +1,4 @@
1
- import * as swr from 'swr';
2
- import { SWRConfiguration } from 'swr';
3
- import * as swr__internal from 'swr/_internal';
1
+ import { SWRConfiguration, SWRResponse } from 'swr';
4
2
  import { z } from 'zod';
5
3
 
6
4
  interface ApiKeyTestResult {
@@ -77,7 +75,7 @@ type Result = CfgAccountsOtpConsentPolicyRetrieveResponses[keyof CfgAccountsOtpC
77
75
  type HookConfig = SWRConfiguration<Result> & {
78
76
  enabled?: boolean;
79
77
  };
80
- declare function useCfgAccountsOtpConsentPolicyRetrieve(args?: Omit<CfgAccountsOtpConsentPolicyRetrieveData, "url" | "body">, config?: HookConfig): swr.SWRResponse<ConsentPolicy$1, any, SWRConfiguration<ConsentPolicy$1, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<ConsentPolicy$1>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<ConsentPolicy$1>)>>;
78
+ declare function useCfgAccountsOtpConsentPolicyRetrieve(args?: Omit<CfgAccountsOtpConsentPolicyRetrieveData, "url" | "body">, config?: HookConfig): SWRResponse<Result>;
81
79
 
82
80
  declare const ConsentPolicySchema: z.ZodObject<{
83
81
  country: z.ZodString;
package/dist/hooks.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import * as swr from 'swr';
2
- import { SWRConfiguration } from 'swr';
3
- import * as swr__internal from 'swr/_internal';
1
+ import { SWRConfiguration, SWRResponse } from 'swr';
4
2
  import { z } from 'zod';
5
3
 
6
4
  interface ApiKeyTestResult {
@@ -77,7 +75,7 @@ type Result = CfgAccountsOtpConsentPolicyRetrieveResponses[keyof CfgAccountsOtpC
77
75
  type HookConfig = SWRConfiguration<Result> & {
78
76
  enabled?: boolean;
79
77
  };
80
- declare function useCfgAccountsOtpConsentPolicyRetrieve(args?: Omit<CfgAccountsOtpConsentPolicyRetrieveData, "url" | "body">, config?: HookConfig): swr.SWRResponse<ConsentPolicy$1, any, SWRConfiguration<ConsentPolicy$1, any, ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<ConsentPolicy$1>) | ((arg: readonly [any, ...unknown[]]) => swr__internal.FetcherResponse<ConsentPolicy$1>)>>;
78
+ declare function useCfgAccountsOtpConsentPolicyRetrieve(args?: Omit<CfgAccountsOtpConsentPolicyRetrieveData, "url" | "body">, config?: HookConfig): SWRResponse<Result>;
81
79
 
82
80
  declare const ConsentPolicySchema: z.ZodObject<{
83
81
  country: z.ZodString;