@djangocfg/api 2.1.426 → 2.1.428

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 (41) hide show
  1. package/README.md +56 -0
  2. package/dist/auth-server.cjs +248 -32
  3. package/dist/auth-server.cjs.map +1 -1
  4. package/dist/auth-server.mjs +248 -32
  5. package/dist/auth-server.mjs.map +1 -1
  6. package/dist/auth.cjs +271 -29
  7. package/dist/auth.cjs.map +1 -1
  8. package/dist/auth.mjs +271 -29
  9. package/dist/auth.mjs.map +1 -1
  10. package/dist/clients.cjs +222 -25
  11. package/dist/clients.cjs.map +1 -1
  12. package/dist/clients.d.cts +35 -28
  13. package/dist/clients.d.ts +35 -28
  14. package/dist/clients.mjs +222 -25
  15. package/dist/clients.mjs.map +1 -1
  16. package/dist/hooks.cjs +117 -4
  17. package/dist/hooks.cjs.map +1 -1
  18. package/dist/hooks.mjs +117 -4
  19. package/dist/hooks.mjs.map +1 -1
  20. package/dist/index.cjs +277 -26
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +98 -29
  23. package/dist/index.d.ts +98 -29
  24. package/dist/index.mjs +277 -26
  25. package/dist/index.mjs.map +1 -1
  26. package/package.json +2 -2
  27. package/src/_api/generated/client/index.ts +1 -0
  28. package/src/_api/generated/client/utils.gen.ts +2 -2
  29. package/src/_api/generated/client.gen.ts +2 -2
  30. package/src/_api/generated/core/auth.gen.ts +7 -0
  31. package/src/_api/generated/core/params.gen.ts +10 -8
  32. package/src/_api/generated/core/pathSerializer.gen.ts +6 -6
  33. package/src/_api/generated/core/queryKeySerializer.gen.ts +1 -1
  34. package/src/_api/generated/core/utils.gen.ts +4 -4
  35. package/src/_api/generated/helpers/auth.ts +127 -1
  36. package/src/_api/generated/sdk.gen.ts +149 -53
  37. package/src/auth/context/AuthContext.tsx +8 -0
  38. package/src/auth/utils/env.ts +18 -0
  39. package/src/auth/utils/logger.ts +11 -4
  40. package/src/index.ts +12 -0
  41. package/src/log-control.ts +81 -0
package/dist/index.d.cts CHANGED
@@ -127,6 +127,13 @@ interface Auth {
127
127
  * @default 'header'
128
128
  */
129
129
  in?: 'header' | 'query' | 'cookie';
130
+ /**
131
+ * A unique identifier for the security scheme.
132
+ *
133
+ * Defined only when there are multiple security schemes whose `Auth`
134
+ * shape would otherwise be identical.
135
+ */
136
+ key?: string;
130
137
  /**
131
138
  * Header or query parameter name.
132
139
  *
@@ -1733,19 +1740,19 @@ declare class CfgAccountsApiKey {
1733
1740
  *
1734
1741
  * Retrieve the current user's API key (masked) and metadata.
1735
1742
  */
1736
- static cfgAccountsApiKeyRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsApiKeyRetrieveData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRetrieveResponses, CfgAccountsApiKeyRetrieveErrors, ThrowOnError, "fields">;
1743
+ static cfgAccountsApiKeyRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsApiKeyRetrieveData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRetrieveResponses, CfgAccountsApiKeyRetrieveErrors, ThrowOnError>;
1737
1744
  /**
1738
1745
  * Regenerate API key
1739
1746
  *
1740
1747
  * Generate a new API key. The full key is returned only once.
1741
1748
  */
1742
- static cfgAccountsApiKeyRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyRegenerateCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRegenerateCreateResponses, CfgAccountsApiKeyRegenerateCreateErrors, ThrowOnError, "fields">;
1749
+ static cfgAccountsApiKeyRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyRegenerateCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRegenerateCreateResponses, CfgAccountsApiKeyRegenerateCreateErrors, ThrowOnError>;
1743
1750
  /**
1744
1751
  * Test API key
1745
1752
  *
1746
1753
  * Test whether an API key is valid without consuming it.
1747
1754
  */
1748
- static cfgAccountsApiKeyTestCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyTestCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyTestCreateResponses, unknown, ThrowOnError, "fields">;
1755
+ static cfgAccountsApiKeyTestCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyTestCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyTestCreateResponses, unknown, ThrowOnError>;
1749
1756
  }
1750
1757
  declare class CfgAccountsOauth {
1751
1758
  /**
@@ -1753,37 +1760,37 @@ declare class CfgAccountsOauth {
1753
1760
  *
1754
1761
  * Get all OAuth connections for the current user.
1755
1762
  */
1756
- static cfgAccountsOauthConnectionsList<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthConnectionsListData, ThrowOnError>): RequestResult<CfgAccountsOauthConnectionsListResponses, unknown, ThrowOnError, "fields">;
1763
+ static cfgAccountsOauthConnectionsList<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthConnectionsListData, ThrowOnError>): RequestResult<CfgAccountsOauthConnectionsListResponses, unknown, ThrowOnError>;
1757
1764
  /**
1758
1765
  * Disconnect OAuth provider
1759
1766
  *
1760
1767
  * Remove OAuth connection for the specified provider.
1761
1768
  */
1762
- static cfgAccountsOauthDisconnectCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthDisconnectCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthDisconnectCreateResponses, CfgAccountsOauthDisconnectCreateErrors, ThrowOnError, "fields">;
1769
+ static cfgAccountsOauthDisconnectCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthDisconnectCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthDisconnectCreateResponses, CfgAccountsOauthDisconnectCreateErrors, ThrowOnError>;
1763
1770
  /**
1764
1771
  * Start GitHub OAuth
1765
1772
  *
1766
1773
  * Generate GitHub OAuth authorization URL. Redirect user to this URL to start authentication.
1767
1774
  */
1768
- static cfgAccountsOauthGithubAuthorizeCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthGithubAuthorizeCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubAuthorizeCreateResponses, CfgAccountsOauthGithubAuthorizeCreateErrors, ThrowOnError, "fields">;
1775
+ static cfgAccountsOauthGithubAuthorizeCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthGithubAuthorizeCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubAuthorizeCreateResponses, CfgAccountsOauthGithubAuthorizeCreateErrors, ThrowOnError>;
1769
1776
  /**
1770
1777
  * Complete GitHub OAuth
1771
1778
  *
1772
1779
  * Exchange authorization code for JWT tokens. Call this after GitHub redirects back with code.
1773
1780
  */
1774
- static cfgAccountsOauthGithubCallbackCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthGithubCallbackCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubCallbackCreateResponses, CfgAccountsOauthGithubCallbackCreateErrors, ThrowOnError, "fields">;
1781
+ static cfgAccountsOauthGithubCallbackCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthGithubCallbackCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubCallbackCreateResponses, CfgAccountsOauthGithubCallbackCreateErrors, ThrowOnError>;
1775
1782
  /**
1776
1783
  * List OAuth providers
1777
1784
  *
1778
1785
  * Get list of available OAuth providers for authentication.
1779
1786
  */
1780
- static cfgAccountsOauthProvidersRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthProvidersRetrieveData, ThrowOnError>): RequestResult<CfgAccountsOauthProvidersRetrieveResponses, unknown, ThrowOnError, "fields">;
1787
+ static cfgAccountsOauthProvidersRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthProvidersRetrieveData, ThrowOnError>): RequestResult<CfgAccountsOauthProvidersRetrieveResponses, unknown, ThrowOnError>;
1781
1788
  }
1782
1789
  declare class CfgAccounts {
1783
1790
  /**
1784
1791
  * Request OTP code to email.
1785
1792
  */
1786
- static cfgAccountsOtpRequestCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOtpRequestCreateData, ThrowOnError>): RequestResult<CfgAccountsOtpRequestCreateResponses, CfgAccountsOtpRequestCreateErrors, ThrowOnError, "fields">;
1793
+ static cfgAccountsOtpRequestCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOtpRequestCreateData, ThrowOnError>): RequestResult<CfgAccountsOtpRequestCreateResponses, CfgAccountsOtpRequestCreateErrors, ThrowOnError>;
1787
1794
  /**
1788
1795
  * Verify OTP code and return JWT tokens or 2FA session.
1789
1796
  *
@@ -1794,7 +1801,7 @@ declare class CfgAccounts {
1794
1801
  * If user has no 2FA:
1795
1802
  * - Returns JWT tokens and user data directly
1796
1803
  */
1797
- static cfgAccountsOtpVerifyCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOtpVerifyCreateData, ThrowOnError>): RequestResult<CfgAccountsOtpVerifyCreateResponses, CfgAccountsOtpVerifyCreateErrors, ThrowOnError, "fields">;
1804
+ static cfgAccountsOtpVerifyCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOtpVerifyCreateData, ThrowOnError>): RequestResult<CfgAccountsOtpVerifyCreateResponses, CfgAccountsOtpVerifyCreateErrors, ThrowOnError>;
1798
1805
  }
1799
1806
  declare class CfgAccountsProfile {
1800
1807
  /**
@@ -1802,13 +1809,13 @@ declare class CfgAccountsProfile {
1802
1809
  *
1803
1810
  * Retrieve the current authenticated user's profile information.
1804
1811
  */
1805
- static cfgAccountsProfileRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileRetrieveData, ThrowOnError>): RequestResult<CfgAccountsProfileRetrieveResponses, CfgAccountsProfileRetrieveErrors, ThrowOnError, "fields">;
1812
+ static cfgAccountsProfileRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileRetrieveData, ThrowOnError>): RequestResult<CfgAccountsProfileRetrieveResponses, CfgAccountsProfileRetrieveErrors, ThrowOnError>;
1806
1813
  /**
1807
1814
  * Upload user avatar
1808
1815
  *
1809
1816
  * Upload avatar image for the current authenticated user. Accepts multipart/form-data with 'avatar' field.
1810
1817
  */
1811
- static cfgAccountsProfileAvatarCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileAvatarCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileAvatarCreateResponses, CfgAccountsProfileAvatarCreateErrors, ThrowOnError, "fields">;
1818
+ static cfgAccountsProfileAvatarCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileAvatarCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileAvatarCreateResponses, CfgAccountsProfileAvatarCreateErrors, ThrowOnError>;
1812
1819
  /**
1813
1820
  * Delete user account
1814
1821
  *
@@ -1824,37 +1831,37 @@ declare class CfgAccountsProfile {
1824
1831
  * The account can be restored by an administrator if needed.
1825
1832
  *
1826
1833
  */
1827
- static cfgAccountsProfileDeleteCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileDeleteCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileDeleteCreateResponses, CfgAccountsProfileDeleteCreateErrors, ThrowOnError, "fields">;
1834
+ static cfgAccountsProfileDeleteCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileDeleteCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileDeleteCreateResponses, CfgAccountsProfileDeleteCreateErrors, ThrowOnError>;
1828
1835
  /**
1829
1836
  * Partial update user profile
1830
1837
  *
1831
1838
  * Partially update the current authenticated user's profile information. Supports avatar upload.
1832
1839
  */
1833
- static cfgAccountsProfilePartialPartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialPartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialPartialUpdateResponses, CfgAccountsProfilePartialPartialUpdateErrors, ThrowOnError, "fields">;
1840
+ static cfgAccountsProfilePartialPartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialPartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialPartialUpdateResponses, CfgAccountsProfilePartialPartialUpdateErrors, ThrowOnError>;
1834
1841
  /**
1835
1842
  * Partial update user profile
1836
1843
  *
1837
1844
  * Partially update the current authenticated user's profile information. Supports avatar upload.
1838
1845
  */
1839
- static cfgAccountsProfilePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialUpdateResponses, CfgAccountsProfilePartialUpdateErrors, ThrowOnError, "fields">;
1846
+ static cfgAccountsProfilePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialUpdateResponses, CfgAccountsProfilePartialUpdateErrors, ThrowOnError>;
1840
1847
  /**
1841
1848
  * Update user profile
1842
1849
  *
1843
1850
  * Update the current authenticated user's profile information.
1844
1851
  */
1845
- static cfgAccountsProfileUpdatePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdatePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdatePartialUpdateResponses, CfgAccountsProfileUpdatePartialUpdateErrors, ThrowOnError, "fields">;
1852
+ static cfgAccountsProfileUpdatePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdatePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdatePartialUpdateResponses, CfgAccountsProfileUpdatePartialUpdateErrors, ThrowOnError>;
1846
1853
  /**
1847
1854
  * Update user profile
1848
1855
  *
1849
1856
  * Update the current authenticated user's profile information.
1850
1857
  */
1851
- static cfgAccountsProfileUpdateUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdateUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdateUpdateResponses, CfgAccountsProfileUpdateUpdateErrors, ThrowOnError, "fields">;
1858
+ static cfgAccountsProfileUpdateUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdateUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdateUpdateResponses, CfgAccountsProfileUpdateUpdateErrors, ThrowOnError>;
1852
1859
  }
1853
1860
  declare class CfgAccountsAuth {
1854
1861
  /**
1855
1862
  * Refresh JWT token.
1856
1863
  */
1857
- static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError, "fields">;
1864
+ static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError>;
1858
1865
  }
1859
1866
  declare class CfgCentrifugo {
1860
1867
  /**
@@ -1862,38 +1869,38 @@ declare class CfgCentrifugo {
1862
1869
  *
1863
1870
  * Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
1864
1871
  */
1865
- static cfgCentrifugoAuthTokenRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgCentrifugoAuthTokenRetrieveData, ThrowOnError>): RequestResult<CfgCentrifugoAuthTokenRetrieveResponses, CfgCentrifugoAuthTokenRetrieveErrors, ThrowOnError, "fields">;
1872
+ static cfgCentrifugoAuthTokenRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgCentrifugoAuthTokenRetrieveData, ThrowOnError>): RequestResult<CfgCentrifugoAuthTokenRetrieveResponses, CfgCentrifugoAuthTokenRetrieveErrors, ThrowOnError>;
1866
1873
  }
1867
1874
  declare class CfgTotpBackupCodes {
1868
1875
  /**
1869
1876
  * Get backup codes status for user.
1870
1877
  */
1871
- static cfgTotpBackupCodesRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgTotpBackupCodesRetrieveData, ThrowOnError>): RequestResult<CfgTotpBackupCodesRetrieveResponses, unknown, ThrowOnError, "fields">;
1878
+ static cfgTotpBackupCodesRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgTotpBackupCodesRetrieveData, ThrowOnError>): RequestResult<CfgTotpBackupCodesRetrieveResponses, unknown, ThrowOnError>;
1872
1879
  /**
1873
1880
  * Regenerate backup codes.
1874
1881
  *
1875
1882
  * Requires TOTP code for verification.
1876
1883
  * Invalidates all existing codes.
1877
1884
  */
1878
- static cfgTotpBackupCodesRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpBackupCodesRegenerateCreateData, ThrowOnError>): RequestResult<CfgTotpBackupCodesRegenerateCreateResponses, CfgTotpBackupCodesRegenerateCreateErrors, ThrowOnError, "fields">;
1885
+ static cfgTotpBackupCodesRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpBackupCodesRegenerateCreateData, ThrowOnError>): RequestResult<CfgTotpBackupCodesRegenerateCreateResponses, CfgTotpBackupCodesRegenerateCreateErrors, ThrowOnError>;
1879
1886
  }
1880
1887
  declare class CfgTotp {
1881
1888
  /**
1882
1889
  * List all TOTP devices for user.
1883
1890
  */
1884
- static cfgTotpDevicesRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgTotpDevicesRetrieveData, ThrowOnError>): RequestResult<CfgTotpDevicesRetrieveResponses, unknown, ThrowOnError, "fields">;
1891
+ static cfgTotpDevicesRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgTotpDevicesRetrieveData, ThrowOnError>): RequestResult<CfgTotpDevicesRetrieveResponses, unknown, ThrowOnError>;
1885
1892
  /**
1886
1893
  * Delete a TOTP device.
1887
1894
  *
1888
1895
  * Requires verification code if removing the last/primary device.
1889
1896
  */
1890
- static cfgTotpDevicesDestroy<ThrowOnError extends boolean = false>(options: Options<CfgTotpDevicesDestroyData, ThrowOnError>): RequestResult<CfgTotpDevicesDestroyResponses, unknown, ThrowOnError, "fields">;
1897
+ static cfgTotpDevicesDestroy<ThrowOnError extends boolean = false>(options: Options<CfgTotpDevicesDestroyData, ThrowOnError>): RequestResult<CfgTotpDevicesDestroyResponses, unknown, ThrowOnError>;
1891
1898
  /**
1892
1899
  * Completely disable 2FA for account.
1893
1900
  *
1894
1901
  * Requires verification code.
1895
1902
  */
1896
- static cfgTotpDisableCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpDisableCreateData, ThrowOnError>): RequestResult<CfgTotpDisableCreateResponses, CfgTotpDisableCreateErrors, ThrowOnError, "fields">;
1903
+ static cfgTotpDisableCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpDisableCreateData, ThrowOnError>): RequestResult<CfgTotpDisableCreateResponses, CfgTotpDisableCreateErrors, ThrowOnError>;
1897
1904
  }
1898
1905
  declare class CfgTotpSetup {
1899
1906
  /**
@@ -1901,13 +1908,13 @@ declare class CfgTotpSetup {
1901
1908
  *
1902
1909
  * Creates a new TOTP device and returns QR code for scanning.
1903
1910
  */
1904
- static cfgTotpSetupCreate<ThrowOnError extends boolean = false>(options?: Options<CfgTotpSetupCreateData, ThrowOnError>): RequestResult<CfgTotpSetupCreateResponses, CfgTotpSetupCreateErrors, ThrowOnError, "fields">;
1911
+ static cfgTotpSetupCreate<ThrowOnError extends boolean = false>(options?: Options<CfgTotpSetupCreateData, ThrowOnError>): RequestResult<CfgTotpSetupCreateResponses, CfgTotpSetupCreateErrors, ThrowOnError>;
1905
1912
  /**
1906
1913
  * Confirm 2FA setup with first valid code.
1907
1914
  *
1908
1915
  * Activates the device and generates backup codes.
1909
1916
  */
1910
- static cfgTotpSetupConfirmCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpSetupConfirmCreateData, ThrowOnError>): RequestResult<CfgTotpSetupConfirmCreateResponses, CfgTotpSetupConfirmCreateErrors, ThrowOnError, "fields">;
1917
+ static cfgTotpSetupConfirmCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpSetupConfirmCreateData, ThrowOnError>): RequestResult<CfgTotpSetupConfirmCreateResponses, CfgTotpSetupConfirmCreateErrors, ThrowOnError>;
1911
1918
  }
1912
1919
  declare class CfgTotpVerify {
1913
1920
  /**
@@ -1915,13 +1922,13 @@ declare class CfgTotpVerify {
1915
1922
  *
1916
1923
  * Completes authentication and returns JWT tokens on success.
1917
1924
  */
1918
- static cfgTotpVerifyCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpVerifyCreateData, ThrowOnError>): RequestResult<CfgTotpVerifyCreateResponses, CfgTotpVerifyCreateErrors, ThrowOnError, "fields">;
1925
+ static cfgTotpVerifyCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpVerifyCreateData, ThrowOnError>): RequestResult<CfgTotpVerifyCreateResponses, CfgTotpVerifyCreateErrors, ThrowOnError>;
1919
1926
  /**
1920
1927
  * Verify backup recovery code for 2FA session.
1921
1928
  *
1922
1929
  * Alternative verification method when TOTP device unavailable.
1923
1930
  */
1924
- static cfgTotpVerifyBackupCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpVerifyBackupCreateData, ThrowOnError>): RequestResult<CfgTotpVerifyBackupCreateResponses, CfgTotpVerifyBackupCreateErrors, ThrowOnError, "fields">;
1931
+ static cfgTotpVerifyBackupCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpVerifyBackupCreateData, ThrowOnError>): RequestResult<CfgTotpVerifyBackupCreateResponses, CfgTotpVerifyBackupCreateErrors, ThrowOnError>;
1925
1932
  }
1926
1933
 
1927
1934
  interface APIOptions$2 {
@@ -2648,4 +2655,66 @@ declare namespace types_gen {
2648
2655
  export { type types_gen_AccountDeleteResponse as AccountDeleteResponse, type types_gen_ApiKey as ApiKey, type types_gen_ApiKeyRegenerate as ApiKeyRegenerate, type types_gen_ApiKeyRequest as ApiKeyRequest, type types_gen_ApiKeyTestRequest as ApiKeyTestRequest, type types_gen_ApiKeyTestResult as ApiKeyTestResult, type types_gen_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, type types_gen_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, type types_gen_BackupCodesStatus as BackupCodesStatus, type types_gen_CentrifugoToken as CentrifugoToken, type types_gen_CfgAccountsApiKeyRegenerateCreateData as CfgAccountsApiKeyRegenerateCreateData, type types_gen_CfgAccountsApiKeyRegenerateCreateErrors as CfgAccountsApiKeyRegenerateCreateErrors, type types_gen_CfgAccountsApiKeyRegenerateCreateResponse as CfgAccountsApiKeyRegenerateCreateResponse, type types_gen_CfgAccountsApiKeyRegenerateCreateResponses as CfgAccountsApiKeyRegenerateCreateResponses, type types_gen_CfgAccountsApiKeyRetrieveData as CfgAccountsApiKeyRetrieveData, type types_gen_CfgAccountsApiKeyRetrieveErrors as CfgAccountsApiKeyRetrieveErrors, type types_gen_CfgAccountsApiKeyRetrieveResponse as CfgAccountsApiKeyRetrieveResponse, type types_gen_CfgAccountsApiKeyRetrieveResponses as CfgAccountsApiKeyRetrieveResponses, type types_gen_CfgAccountsApiKeyTestCreateData as CfgAccountsApiKeyTestCreateData, type types_gen_CfgAccountsApiKeyTestCreateResponse as CfgAccountsApiKeyTestCreateResponse, type types_gen_CfgAccountsApiKeyTestCreateResponses as CfgAccountsApiKeyTestCreateResponses, type types_gen_CfgAccountsOauthConnectionsListData as CfgAccountsOauthConnectionsListData, type types_gen_CfgAccountsOauthConnectionsListResponse as CfgAccountsOauthConnectionsListResponse, type types_gen_CfgAccountsOauthConnectionsListResponses as CfgAccountsOauthConnectionsListResponses, type types_gen_CfgAccountsOauthConnectionsResponse200AutoRef as CfgAccountsOauthConnectionsResponse200AutoRef, type types_gen_CfgAccountsOauthDisconnectCreateData as CfgAccountsOauthDisconnectCreateData, type types_gen_CfgAccountsOauthDisconnectCreateError as CfgAccountsOauthDisconnectCreateError, type types_gen_CfgAccountsOauthDisconnectCreateErrors as CfgAccountsOauthDisconnectCreateErrors, type types_gen_CfgAccountsOauthDisconnectCreateResponse as CfgAccountsOauthDisconnectCreateResponse, type types_gen_CfgAccountsOauthDisconnectCreateResponses as CfgAccountsOauthDisconnectCreateResponses, type types_gen_CfgAccountsOauthDisconnectResponse200AutoRef as CfgAccountsOauthDisconnectResponse200AutoRef, type types_gen_CfgAccountsOauthGithubAuthorizeCreateData as CfgAccountsOauthGithubAuthorizeCreateData, type types_gen_CfgAccountsOauthGithubAuthorizeCreateError as CfgAccountsOauthGithubAuthorizeCreateError, type types_gen_CfgAccountsOauthGithubAuthorizeCreateErrors as CfgAccountsOauthGithubAuthorizeCreateErrors, type types_gen_CfgAccountsOauthGithubAuthorizeCreateResponse as CfgAccountsOauthGithubAuthorizeCreateResponse, type types_gen_CfgAccountsOauthGithubAuthorizeCreateResponses as CfgAccountsOauthGithubAuthorizeCreateResponses, type types_gen_CfgAccountsOauthGithubCallbackCreateData as CfgAccountsOauthGithubCallbackCreateData, type types_gen_CfgAccountsOauthGithubCallbackCreateError as CfgAccountsOauthGithubCallbackCreateError, type types_gen_CfgAccountsOauthGithubCallbackCreateErrors as CfgAccountsOauthGithubCallbackCreateErrors, type types_gen_CfgAccountsOauthGithubCallbackCreateResponse as CfgAccountsOauthGithubCallbackCreateResponse, type types_gen_CfgAccountsOauthGithubCallbackCreateResponses as CfgAccountsOauthGithubCallbackCreateResponses, type types_gen_CfgAccountsOauthProvidersRetrieveData as CfgAccountsOauthProvidersRetrieveData, type types_gen_CfgAccountsOauthProvidersRetrieveResponse as CfgAccountsOauthProvidersRetrieveResponse, type types_gen_CfgAccountsOauthProvidersRetrieveResponses as CfgAccountsOauthProvidersRetrieveResponses, type types_gen_CfgAccountsOtpRequestCreateData as CfgAccountsOtpRequestCreateData, type types_gen_CfgAccountsOtpRequestCreateError as CfgAccountsOtpRequestCreateError, type types_gen_CfgAccountsOtpRequestCreateErrors as CfgAccountsOtpRequestCreateErrors, type types_gen_CfgAccountsOtpRequestCreateResponse as CfgAccountsOtpRequestCreateResponse, type types_gen_CfgAccountsOtpRequestCreateResponses as CfgAccountsOtpRequestCreateResponses, type types_gen_CfgAccountsOtpVerifyCreateData as CfgAccountsOtpVerifyCreateData, type types_gen_CfgAccountsOtpVerifyCreateError as CfgAccountsOtpVerifyCreateError, type types_gen_CfgAccountsOtpVerifyCreateErrors as CfgAccountsOtpVerifyCreateErrors, type types_gen_CfgAccountsOtpVerifyCreateResponse as CfgAccountsOtpVerifyCreateResponse, type types_gen_CfgAccountsOtpVerifyCreateResponses as CfgAccountsOtpVerifyCreateResponses, type types_gen_CfgAccountsProfileAvatarCreateData as CfgAccountsProfileAvatarCreateData, type types_gen_CfgAccountsProfileAvatarCreateErrors as CfgAccountsProfileAvatarCreateErrors, type types_gen_CfgAccountsProfileAvatarCreateResponse as CfgAccountsProfileAvatarCreateResponse, type types_gen_CfgAccountsProfileAvatarCreateResponses as CfgAccountsProfileAvatarCreateResponses, type types_gen_CfgAccountsProfileDeleteCreateData as CfgAccountsProfileDeleteCreateData, type types_gen_CfgAccountsProfileDeleteCreateErrors as CfgAccountsProfileDeleteCreateErrors, type types_gen_CfgAccountsProfileDeleteCreateResponse as CfgAccountsProfileDeleteCreateResponse, type types_gen_CfgAccountsProfileDeleteCreateResponses as CfgAccountsProfileDeleteCreateResponses, type types_gen_CfgAccountsProfilePartialPartialUpdateData as CfgAccountsProfilePartialPartialUpdateData, type types_gen_CfgAccountsProfilePartialPartialUpdateErrors as CfgAccountsProfilePartialPartialUpdateErrors, type types_gen_CfgAccountsProfilePartialPartialUpdateResponse as CfgAccountsProfilePartialPartialUpdateResponse, type types_gen_CfgAccountsProfilePartialPartialUpdateResponses as CfgAccountsProfilePartialPartialUpdateResponses, type types_gen_CfgAccountsProfilePartialUpdateData as CfgAccountsProfilePartialUpdateData, type types_gen_CfgAccountsProfilePartialUpdateErrors as CfgAccountsProfilePartialUpdateErrors, type types_gen_CfgAccountsProfilePartialUpdateResponse as CfgAccountsProfilePartialUpdateResponse, type types_gen_CfgAccountsProfilePartialUpdateResponses as CfgAccountsProfilePartialUpdateResponses, type types_gen_CfgAccountsProfileRetrieveData as CfgAccountsProfileRetrieveData, type types_gen_CfgAccountsProfileRetrieveErrors as CfgAccountsProfileRetrieveErrors, type types_gen_CfgAccountsProfileRetrieveResponse as CfgAccountsProfileRetrieveResponse, type types_gen_CfgAccountsProfileRetrieveResponses as CfgAccountsProfileRetrieveResponses, type types_gen_CfgAccountsProfileUpdatePartialUpdateData as CfgAccountsProfileUpdatePartialUpdateData, type types_gen_CfgAccountsProfileUpdatePartialUpdateErrors as CfgAccountsProfileUpdatePartialUpdateErrors, type types_gen_CfgAccountsProfileUpdatePartialUpdateResponse as CfgAccountsProfileUpdatePartialUpdateResponse, type types_gen_CfgAccountsProfileUpdatePartialUpdateResponses as CfgAccountsProfileUpdatePartialUpdateResponses, type types_gen_CfgAccountsProfileUpdateUpdateData as CfgAccountsProfileUpdateUpdateData, type types_gen_CfgAccountsProfileUpdateUpdateErrors as CfgAccountsProfileUpdateUpdateErrors, type types_gen_CfgAccountsProfileUpdateUpdateResponse as CfgAccountsProfileUpdateUpdateResponse, type types_gen_CfgAccountsProfileUpdateUpdateResponses as CfgAccountsProfileUpdateUpdateResponses, type types_gen_CfgAccountsTokenRefreshCreateData as CfgAccountsTokenRefreshCreateData, type types_gen_CfgAccountsTokenRefreshCreateResponse as CfgAccountsTokenRefreshCreateResponse, type types_gen_CfgAccountsTokenRefreshCreateResponses as CfgAccountsTokenRefreshCreateResponses, type types_gen_CfgCentrifugoAuthTokenRetrieveData as CfgCentrifugoAuthTokenRetrieveData, type types_gen_CfgCentrifugoAuthTokenRetrieveErrors as CfgCentrifugoAuthTokenRetrieveErrors, type types_gen_CfgCentrifugoAuthTokenRetrieveResponse as CfgCentrifugoAuthTokenRetrieveResponse, type types_gen_CfgCentrifugoAuthTokenRetrieveResponses as CfgCentrifugoAuthTokenRetrieveResponses, type types_gen_CfgTotpBackupCodesRegenerateCreateData as CfgTotpBackupCodesRegenerateCreateData, type types_gen_CfgTotpBackupCodesRegenerateCreateErrors as CfgTotpBackupCodesRegenerateCreateErrors, type types_gen_CfgTotpBackupCodesRegenerateCreateResponse as CfgTotpBackupCodesRegenerateCreateResponse, type types_gen_CfgTotpBackupCodesRegenerateCreateResponses as CfgTotpBackupCodesRegenerateCreateResponses, type types_gen_CfgTotpBackupCodesRetrieveData as CfgTotpBackupCodesRetrieveData, type types_gen_CfgTotpBackupCodesRetrieveResponse as CfgTotpBackupCodesRetrieveResponse, type types_gen_CfgTotpBackupCodesRetrieveResponses as CfgTotpBackupCodesRetrieveResponses, type types_gen_CfgTotpDevicesDestroyData as CfgTotpDevicesDestroyData, type types_gen_CfgTotpDevicesDestroyResponse as CfgTotpDevicesDestroyResponse, type types_gen_CfgTotpDevicesDestroyResponses as CfgTotpDevicesDestroyResponses, type types_gen_CfgTotpDevicesRetrieveData as CfgTotpDevicesRetrieveData, type types_gen_CfgTotpDevicesRetrieveResponse as CfgTotpDevicesRetrieveResponse, type types_gen_CfgTotpDevicesRetrieveResponses as CfgTotpDevicesRetrieveResponses, type types_gen_CfgTotpDisableCreateData as CfgTotpDisableCreateData, type types_gen_CfgTotpDisableCreateErrors as CfgTotpDisableCreateErrors, type types_gen_CfgTotpDisableCreateResponse as CfgTotpDisableCreateResponse, type types_gen_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen_CfgTotpDisableResponse200AutoRef as CfgTotpDisableResponse200AutoRef, type types_gen_CfgTotpSetupConfirmCreateData as CfgTotpSetupConfirmCreateData, type types_gen_CfgTotpSetupConfirmCreateErrors as CfgTotpSetupConfirmCreateErrors, type types_gen_CfgTotpSetupConfirmCreateResponse as CfgTotpSetupConfirmCreateResponse, type types_gen_CfgTotpSetupConfirmCreateResponses as CfgTotpSetupConfirmCreateResponses, type types_gen_CfgTotpSetupCreateData as CfgTotpSetupCreateData, type types_gen_CfgTotpSetupCreateErrors as CfgTotpSetupCreateErrors, type types_gen_CfgTotpSetupCreateResponse as CfgTotpSetupCreateResponse, type types_gen_CfgTotpSetupCreateResponses as CfgTotpSetupCreateResponses, type types_gen_CfgTotpVerifyBackupCreateData as CfgTotpVerifyBackupCreateData, type types_gen_CfgTotpVerifyBackupCreateErrors as CfgTotpVerifyBackupCreateErrors, type types_gen_CfgTotpVerifyBackupCreateResponse as CfgTotpVerifyBackupCreateResponse, type types_gen_CfgTotpVerifyBackupCreateResponses as CfgTotpVerifyBackupCreateResponses, type types_gen_CfgTotpVerifyCreateData as CfgTotpVerifyCreateData, type types_gen_CfgTotpVerifyCreateErrors as CfgTotpVerifyCreateErrors, type types_gen_CfgTotpVerifyCreateResponse as CfgTotpVerifyCreateResponse, type types_gen_CfgTotpVerifyCreateResponses as CfgTotpVerifyCreateResponses, type types_gen_CfgUserUpdateRequest as CfgUserUpdateRequest, type types_gen_ClientOptions as ClientOptions, type types_gen_ConfirmSetupRequest as ConfirmSetupRequest, type types_gen_ConfirmSetupResponse as ConfirmSetupResponse, type types_gen_ConnectionTokenResponse as ConnectionTokenResponse, type types_gen_DeviceList as DeviceList, type types_gen_DeviceListResponse as DeviceListResponse, type types_gen_DeviceListResponseWritable as DeviceListResponseWritable, types_gen_DeviceStatusEnum as DeviceStatusEnum, type types_gen_DisableRequest as DisableRequest, type types_gen_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, type types_gen_OAuthAuthorizeResponse as OAuthAuthorizeResponse, type types_gen_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, type types_gen_OAuthConnection as OAuthConnection, type types_gen_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, type types_gen_OAuthError as OAuthError, types_gen_OAuthProviderEnum as OAuthProviderEnum, type types_gen_OAuthProvidersResponse as OAuthProvidersResponse, type types_gen_OAuthTokenResponse as OAuthTokenResponse, type types_gen_OtpErrorResponse as OtpErrorResponse, type types_gen_OtpRequestRequest as OtpRequestRequest, type types_gen_OtpRequestResponse as OtpRequestResponse, type types_gen_OtpVerifyRequest as OtpVerifyRequest, type types_gen_OtpVerifyResponse as OtpVerifyResponse, type types_gen_OtpVerifyResponseWritable as OtpVerifyResponseWritable, type types_gen_PatchedCfgUserUpdateRequest as PatchedCfgUserUpdateRequest, type types_gen_SetupRequest as SetupRequest, type types_gen_SetupResponse as SetupResponse, type types_gen_TokenRefresh as TokenRefresh, type types_gen_TokenRefreshRequest as TokenRefreshRequest, type types_gen_TokenRefreshWritable as TokenRefreshWritable, type types_gen_TotpVerifyUser as TotpVerifyUser, type types_gen_TotpVerifyUserWritable as TotpVerifyUserWritable, type types_gen_User as User, type types_gen_UserWritable as UserWritable, type types_gen_VerifyBackupRequest as VerifyBackupRequest, type types_gen_VerifyRequest as VerifyRequest, type types_gen_VerifyResponse as VerifyResponse, type types_gen_VerifyResponseWritable as VerifyResponseWritable };
2649
2656
  }
2650
2657
 
2651
- export { APIError, APILogger, type AccountDeleteResponse, types_gen$2 as AccountsTypes, type ApiKey, type ApiKeyRegenerate, type ApiKeyRequest, type ApiKeyTestRequest, type ApiKeyTestResult, type Auth$1 as Auth, type BackupCodesRegenerateRequest, type BackupCodesRegenerateResponse, type BackupCodesStatus, type CentrifugoToken, types_gen as CentrifugoTypes, CfgAccounts, API$2 as CfgAccountsAPI, CfgAccountsApi, CfgAccountsApiKey, type CfgAccountsApiKeyRegenerateCreateData, type CfgAccountsApiKeyRegenerateCreateErrors, type CfgAccountsApiKeyRegenerateCreateResponse, type CfgAccountsApiKeyRegenerateCreateResponses, type CfgAccountsApiKeyRetrieveData, type CfgAccountsApiKeyRetrieveErrors, type CfgAccountsApiKeyRetrieveResponse, type CfgAccountsApiKeyRetrieveResponses, type CfgAccountsApiKeyTestCreateData, type CfgAccountsApiKeyTestCreateResponse, type CfgAccountsApiKeyTestCreateResponses, CfgAccountsAuth, CfgAccountsOauth, type CfgAccountsOauthConnectionsListData, type CfgAccountsOauthConnectionsListResponse, type CfgAccountsOauthConnectionsListResponses, type CfgAccountsOauthConnectionsResponse200AutoRef, type CfgAccountsOauthDisconnectCreateData, type CfgAccountsOauthDisconnectCreateError, type CfgAccountsOauthDisconnectCreateErrors, type CfgAccountsOauthDisconnectCreateResponse, type CfgAccountsOauthDisconnectCreateResponses, type CfgAccountsOauthDisconnectResponse200AutoRef, type CfgAccountsOauthGithubAuthorizeCreateData, type CfgAccountsOauthGithubAuthorizeCreateError, type CfgAccountsOauthGithubAuthorizeCreateErrors, type CfgAccountsOauthGithubAuthorizeCreateResponse, type CfgAccountsOauthGithubAuthorizeCreateResponses, type CfgAccountsOauthGithubCallbackCreateData, type CfgAccountsOauthGithubCallbackCreateError, type CfgAccountsOauthGithubCallbackCreateErrors, type CfgAccountsOauthGithubCallbackCreateResponse, type CfgAccountsOauthGithubCallbackCreateResponses, type CfgAccountsOauthProvidersRetrieveData, type CfgAccountsOauthProvidersRetrieveResponse, type CfgAccountsOauthProvidersRetrieveResponses, type CfgAccountsOtpRequestCreateData, type CfgAccountsOtpRequestCreateError, type CfgAccountsOtpRequestCreateErrors, type CfgAccountsOtpRequestCreateResponse, type CfgAccountsOtpRequestCreateResponses, type CfgAccountsOtpVerifyCreateData, type CfgAccountsOtpVerifyCreateError, type CfgAccountsOtpVerifyCreateErrors, type CfgAccountsOtpVerifyCreateResponse, type CfgAccountsOtpVerifyCreateResponses, CfgAccountsProfile, type CfgAccountsProfileAvatarCreateData, type CfgAccountsProfileAvatarCreateErrors, type CfgAccountsProfileAvatarCreateResponse, type CfgAccountsProfileAvatarCreateResponses, type CfgAccountsProfileDeleteCreateData, type CfgAccountsProfileDeleteCreateErrors, type CfgAccountsProfileDeleteCreateResponse, type CfgAccountsProfileDeleteCreateResponses, type CfgAccountsProfilePartialPartialUpdateData, type CfgAccountsProfilePartialPartialUpdateErrors, type CfgAccountsProfilePartialPartialUpdateResponse, type CfgAccountsProfilePartialPartialUpdateResponses, type CfgAccountsProfilePartialUpdateData, type CfgAccountsProfilePartialUpdateErrors, type CfgAccountsProfilePartialUpdateResponse, type CfgAccountsProfilePartialUpdateResponses, type CfgAccountsProfileRetrieveData, type CfgAccountsProfileRetrieveErrors, type CfgAccountsProfileRetrieveResponse, type CfgAccountsProfileRetrieveResponses, type CfgAccountsProfileUpdatePartialUpdateData, type CfgAccountsProfileUpdatePartialUpdateErrors, type CfgAccountsProfileUpdatePartialUpdateResponse, type CfgAccountsProfileUpdatePartialUpdateResponses, type CfgAccountsProfileUpdateUpdateData, type CfgAccountsProfileUpdateUpdateErrors, type CfgAccountsProfileUpdateUpdateResponse, type CfgAccountsProfileUpdateUpdateResponses, type CfgAccountsTokenRefreshCreateData, type CfgAccountsTokenRefreshCreateResponse, type CfgAccountsTokenRefreshCreateResponses, CfgCentrifugo, API$1 as CfgCentrifugoAPI, CfgCentrifugoApi, type CfgCentrifugoAuthTokenRetrieveData, type CfgCentrifugoAuthTokenRetrieveErrors, type CfgCentrifugoAuthTokenRetrieveResponse, type CfgCentrifugoAuthTokenRetrieveResponses, CfgTotp, API as CfgTotpAPI, CfgTotpApi, CfgTotpBackupCodes, type CfgTotpBackupCodesRegenerateCreateData, type CfgTotpBackupCodesRegenerateCreateErrors, type CfgTotpBackupCodesRegenerateCreateResponse, type CfgTotpBackupCodesRegenerateCreateResponses, type CfgTotpBackupCodesRetrieveData, type CfgTotpBackupCodesRetrieveResponse, type CfgTotpBackupCodesRetrieveResponses, type CfgTotpDevicesDestroyData, type CfgTotpDevicesDestroyResponse, type CfgTotpDevicesDestroyResponses, type CfgTotpDevicesRetrieveData, type CfgTotpDevicesRetrieveResponse, type CfgTotpDevicesRetrieveResponses, type CfgTotpDisableCreateData, type CfgTotpDisableCreateErrors, type CfgTotpDisableCreateResponse, type CfgTotpDisableCreateResponses, type CfgTotpDisableResponse200AutoRef, CfgTotpSetup, type CfgTotpSetupConfirmCreateData, type CfgTotpSetupConfirmCreateErrors, type CfgTotpSetupConfirmCreateResponse, type CfgTotpSetupConfirmCreateResponses, type CfgTotpSetupCreateData, type CfgTotpSetupCreateErrors, type CfgTotpSetupCreateResponse, type CfgTotpSetupCreateResponses, CfgTotpVerify, type CfgTotpVerifyBackupCreateData, type CfgTotpVerifyBackupCreateErrors, type CfgTotpVerifyBackupCreateResponse, type CfgTotpVerifyBackupCreateResponses, type CfgTotpVerifyCreateData, type CfgTotpVerifyCreateErrors, type CfgTotpVerifyCreateResponse, type CfgTotpVerifyCreateResponses, type CfgUserUpdateRequest, type ClientOptions, type ConfirmSetupRequest, type ConfirmSetupResponse, type ConnectionTokenResponse, CookieStorageAdapter, type DeviceList, type DeviceListResponse, type DeviceListResponseWritable, DeviceStatusEnum, type DisableRequest, type ErrorLog, LocalStorageAdapter, type LoggerConfig, MemoryStorageAdapter, NetworkError, type OAuthAuthorizeRequestRequest, type OAuthAuthorizeResponse, type OAuthCallbackRequestRequest, type OAuthConnection, type OAuthDisconnectRequestRequest, type OAuthError, OAuthProviderEnum, type OAuthProvidersResponse, type OAuthTokenResponse, type OtpErrorResponse, type OtpRequestRequest, type OtpRequestResponse, type OtpVerifyRequest, type OtpVerifyResponse, type OtpVerifyResponseWritable, type PatchedCfgUserUpdateRequest, type RequestLog, type ResponseLog, type SetupRequest, type SetupResponse, type StorageAdapter, type TokenRefresh, type TokenRefreshRequest, type TokenRefreshWritable, types_gen$1 as TotpTypes, type TotpVerifyUser, type TotpVerifyUserWritable, type User, type UserWritable, type ValidationErrorDetail, type ValidationErrorEvent, type VerifyBackupRequest, type VerifyRequest, type VerifyResponse, type VerifyResponseWritable, CfgAccountsApi as api, auth, defaultLogger, dispatchValidationError, formatZodError, onValidationError };
2658
+ /**
2659
+ * Global runtime log-level control.
2660
+ *
2661
+ * One mutable level that every `@djangocfg/*` consola wrapper reads, so the
2662
+ * whole app's console verbosity can be changed at runtime (e.g. raised for an
2663
+ * admin, kept silent for a regular user in production) WITHOUT each package
2664
+ * hardcoding `isDev ? 4 : 1`.
2665
+ *
2666
+ * Lives in `@djangocfg/api` because it's the lowest shared package — api,
2667
+ * layouts, centrifugo, ui-core consumers can all import it without a cycle.
2668
+ *
2669
+ * consola levels: 0 silent · 1 error · 2 warn · 3 info · 4 debug · 5 trace.
2670
+ *
2671
+ * Default policy (before anyone calls setLogLevel):
2672
+ * - dev / static build → 4 (debug)
2673
+ * - production → 1 (errors only)
2674
+ * App bootstrap should call `applyRoleLogPolicy({ isAdmin, isDev })` once auth
2675
+ * is known to raise verbosity for staff/superusers even in production.
2676
+ */
2677
+ type ConsolaLevel = 0 | 1 | 2 | 3 | 4 | 5;
2678
+ /** Current global log level. Wrappers read this when constructing/refreshing. */
2679
+ declare function getLogLevel(): ConsolaLevel;
2680
+ /** Set the global log level and notify all live loggers. */
2681
+ declare function setLogLevel(level: ConsolaLevel): void;
2682
+ /**
2683
+ * Subscribe to level changes. Returns an unsubscribe fn. The callback fires
2684
+ * immediately with the current level so a logger can sync on registration.
2685
+ */
2686
+ declare function onLogLevelChange(fn: (level: ConsolaLevel) => void): () => void;
2687
+ /**
2688
+ * Apply the role-aware policy. Call once at bootstrap and whenever auth changes.
2689
+ *
2690
+ * - admin (is_staff / is_superuser): full verbosity (debug) everywhere, even
2691
+ * in production — so support/devs can diagnose live without a redeploy.
2692
+ * - dev (non-admin): debug.
2693
+ * - production regular user: errors only — a clean console, like big SaaS apps.
2694
+ */
2695
+ declare function applyRoleLogPolicy(opts: {
2696
+ isAdmin: boolean;
2697
+ isDev?: boolean;
2698
+ }): void;
2699
+
2700
+ declare const isDev: boolean;
2701
+ declare const isProd: boolean;
2702
+ declare const isBrowser: boolean;
2703
+ /**
2704
+ * Next.js static-export build (`output: 'export'`). Loggers treat it like dev
2705
+ * for visibility; some auth/SSR features behave differently under it.
2706
+ */
2707
+ declare const isStaticBuild: boolean;
2708
+ /**
2709
+ * DPoP (RFC 9449) sender-constrained tokens are enabled for this app.
2710
+ *
2711
+ * Set by `createBaseNextConfig({ dpop: true })` (inlines
2712
+ * `NEXT_PUBLIC_DPOP_ENABLED='true'`). When true: tokens are bound to a
2713
+ * non-extractable in-browser key, a copied Bearer token can't be replayed, and
2714
+ * the API client signs a per-request DPoP proof. This flag lives in
2715
+ * `@djangocfg/api` — the package that implements DPoP — so it is the single
2716
+ * source of truth, importable by every higher-level package.
2717
+ */
2718
+ declare const dpopEnabled: boolean;
2719
+
2720
+ export { APIError, APILogger, type AccountDeleteResponse, types_gen$2 as AccountsTypes, type ApiKey, type ApiKeyRegenerate, type ApiKeyRequest, type ApiKeyTestRequest, type ApiKeyTestResult, type Auth$1 as Auth, type BackupCodesRegenerateRequest, type BackupCodesRegenerateResponse, type BackupCodesStatus, type CentrifugoToken, types_gen as CentrifugoTypes, CfgAccounts, API$2 as CfgAccountsAPI, CfgAccountsApi, CfgAccountsApiKey, type CfgAccountsApiKeyRegenerateCreateData, type CfgAccountsApiKeyRegenerateCreateErrors, type CfgAccountsApiKeyRegenerateCreateResponse, type CfgAccountsApiKeyRegenerateCreateResponses, type CfgAccountsApiKeyRetrieveData, type CfgAccountsApiKeyRetrieveErrors, type CfgAccountsApiKeyRetrieveResponse, type CfgAccountsApiKeyRetrieveResponses, type CfgAccountsApiKeyTestCreateData, type CfgAccountsApiKeyTestCreateResponse, type CfgAccountsApiKeyTestCreateResponses, CfgAccountsAuth, CfgAccountsOauth, type CfgAccountsOauthConnectionsListData, type CfgAccountsOauthConnectionsListResponse, type CfgAccountsOauthConnectionsListResponses, type CfgAccountsOauthConnectionsResponse200AutoRef, type CfgAccountsOauthDisconnectCreateData, type CfgAccountsOauthDisconnectCreateError, type CfgAccountsOauthDisconnectCreateErrors, type CfgAccountsOauthDisconnectCreateResponse, type CfgAccountsOauthDisconnectCreateResponses, type CfgAccountsOauthDisconnectResponse200AutoRef, type CfgAccountsOauthGithubAuthorizeCreateData, type CfgAccountsOauthGithubAuthorizeCreateError, type CfgAccountsOauthGithubAuthorizeCreateErrors, type CfgAccountsOauthGithubAuthorizeCreateResponse, type CfgAccountsOauthGithubAuthorizeCreateResponses, type CfgAccountsOauthGithubCallbackCreateData, type CfgAccountsOauthGithubCallbackCreateError, type CfgAccountsOauthGithubCallbackCreateErrors, type CfgAccountsOauthGithubCallbackCreateResponse, type CfgAccountsOauthGithubCallbackCreateResponses, type CfgAccountsOauthProvidersRetrieveData, type CfgAccountsOauthProvidersRetrieveResponse, type CfgAccountsOauthProvidersRetrieveResponses, type CfgAccountsOtpRequestCreateData, type CfgAccountsOtpRequestCreateError, type CfgAccountsOtpRequestCreateErrors, type CfgAccountsOtpRequestCreateResponse, type CfgAccountsOtpRequestCreateResponses, type CfgAccountsOtpVerifyCreateData, type CfgAccountsOtpVerifyCreateError, type CfgAccountsOtpVerifyCreateErrors, type CfgAccountsOtpVerifyCreateResponse, type CfgAccountsOtpVerifyCreateResponses, CfgAccountsProfile, type CfgAccountsProfileAvatarCreateData, type CfgAccountsProfileAvatarCreateErrors, type CfgAccountsProfileAvatarCreateResponse, type CfgAccountsProfileAvatarCreateResponses, type CfgAccountsProfileDeleteCreateData, type CfgAccountsProfileDeleteCreateErrors, type CfgAccountsProfileDeleteCreateResponse, type CfgAccountsProfileDeleteCreateResponses, type CfgAccountsProfilePartialPartialUpdateData, type CfgAccountsProfilePartialPartialUpdateErrors, type CfgAccountsProfilePartialPartialUpdateResponse, type CfgAccountsProfilePartialPartialUpdateResponses, type CfgAccountsProfilePartialUpdateData, type CfgAccountsProfilePartialUpdateErrors, type CfgAccountsProfilePartialUpdateResponse, type CfgAccountsProfilePartialUpdateResponses, type CfgAccountsProfileRetrieveData, type CfgAccountsProfileRetrieveErrors, type CfgAccountsProfileRetrieveResponse, type CfgAccountsProfileRetrieveResponses, type CfgAccountsProfileUpdatePartialUpdateData, type CfgAccountsProfileUpdatePartialUpdateErrors, type CfgAccountsProfileUpdatePartialUpdateResponse, type CfgAccountsProfileUpdatePartialUpdateResponses, type CfgAccountsProfileUpdateUpdateData, type CfgAccountsProfileUpdateUpdateErrors, type CfgAccountsProfileUpdateUpdateResponse, type CfgAccountsProfileUpdateUpdateResponses, type CfgAccountsTokenRefreshCreateData, type CfgAccountsTokenRefreshCreateResponse, type CfgAccountsTokenRefreshCreateResponses, CfgCentrifugo, API$1 as CfgCentrifugoAPI, CfgCentrifugoApi, type CfgCentrifugoAuthTokenRetrieveData, type CfgCentrifugoAuthTokenRetrieveErrors, type CfgCentrifugoAuthTokenRetrieveResponse, type CfgCentrifugoAuthTokenRetrieveResponses, CfgTotp, API as CfgTotpAPI, CfgTotpApi, CfgTotpBackupCodes, type CfgTotpBackupCodesRegenerateCreateData, type CfgTotpBackupCodesRegenerateCreateErrors, type CfgTotpBackupCodesRegenerateCreateResponse, type CfgTotpBackupCodesRegenerateCreateResponses, type CfgTotpBackupCodesRetrieveData, type CfgTotpBackupCodesRetrieveResponse, type CfgTotpBackupCodesRetrieveResponses, type CfgTotpDevicesDestroyData, type CfgTotpDevicesDestroyResponse, type CfgTotpDevicesDestroyResponses, type CfgTotpDevicesRetrieveData, type CfgTotpDevicesRetrieveResponse, type CfgTotpDevicesRetrieveResponses, type CfgTotpDisableCreateData, type CfgTotpDisableCreateErrors, type CfgTotpDisableCreateResponse, type CfgTotpDisableCreateResponses, type CfgTotpDisableResponse200AutoRef, CfgTotpSetup, type CfgTotpSetupConfirmCreateData, type CfgTotpSetupConfirmCreateErrors, type CfgTotpSetupConfirmCreateResponse, type CfgTotpSetupConfirmCreateResponses, type CfgTotpSetupCreateData, type CfgTotpSetupCreateErrors, type CfgTotpSetupCreateResponse, type CfgTotpSetupCreateResponses, CfgTotpVerify, type CfgTotpVerifyBackupCreateData, type CfgTotpVerifyBackupCreateErrors, type CfgTotpVerifyBackupCreateResponse, type CfgTotpVerifyBackupCreateResponses, type CfgTotpVerifyCreateData, type CfgTotpVerifyCreateErrors, type CfgTotpVerifyCreateResponse, type CfgTotpVerifyCreateResponses, type CfgUserUpdateRequest, type ClientOptions, type ConfirmSetupRequest, type ConfirmSetupResponse, type ConnectionTokenResponse, type ConsolaLevel, CookieStorageAdapter, type DeviceList, type DeviceListResponse, type DeviceListResponseWritable, DeviceStatusEnum, type DisableRequest, type ErrorLog, LocalStorageAdapter, type LoggerConfig, MemoryStorageAdapter, NetworkError, type OAuthAuthorizeRequestRequest, type OAuthAuthorizeResponse, type OAuthCallbackRequestRequest, type OAuthConnection, type OAuthDisconnectRequestRequest, type OAuthError, OAuthProviderEnum, type OAuthProvidersResponse, type OAuthTokenResponse, type OtpErrorResponse, type OtpRequestRequest, type OtpRequestResponse, type OtpVerifyRequest, type OtpVerifyResponse, type OtpVerifyResponseWritable, type PatchedCfgUserUpdateRequest, type RequestLog, type ResponseLog, type SetupRequest, type SetupResponse, type StorageAdapter, type TokenRefresh, type TokenRefreshRequest, type TokenRefreshWritable, types_gen$1 as TotpTypes, type TotpVerifyUser, type TotpVerifyUserWritable, type User, type UserWritable, type ValidationErrorDetail, type ValidationErrorEvent, type VerifyBackupRequest, type VerifyRequest, type VerifyResponse, type VerifyResponseWritable, CfgAccountsApi as api, applyRoleLogPolicy, auth, defaultLogger, dispatchValidationError, dpopEnabled, formatZodError, getLogLevel, isBrowser, isDev, isProd, isStaticBuild, onLogLevelChange, onValidationError, setLogLevel };