@djangocfg/api 2.1.215 → 2.1.216

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 (226) hide show
  1. package/dist/auth-server.cjs +101 -99
  2. package/dist/auth-server.cjs.map +1 -1
  3. package/dist/auth-server.mjs +101 -99
  4. package/dist/auth-server.mjs.map +1 -1
  5. package/dist/auth.cjs +164 -158
  6. package/dist/auth.cjs.map +1 -1
  7. package/dist/auth.mjs +164 -158
  8. package/dist/auth.mjs.map +1 -1
  9. package/dist/clients.cjs +176 -170
  10. package/dist/clients.cjs.map +1 -1
  11. package/dist/clients.d.cts +248 -242
  12. package/dist/clients.d.ts +248 -242
  13. package/dist/clients.mjs +176 -170
  14. package/dist/clients.mjs.map +1 -1
  15. package/dist/hooks.cjs +59 -57
  16. package/dist/hooks.cjs.map +1 -1
  17. package/dist/hooks.d.cts +56 -54
  18. package/dist/hooks.d.ts +56 -54
  19. package/dist/hooks.mjs +59 -57
  20. package/dist/hooks.mjs.map +1 -1
  21. package/dist/index.cjs +140 -120
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +110 -68
  24. package/dist/index.d.ts +110 -68
  25. package/dist/index.mjs +140 -120
  26. package/dist/index.mjs.map +1 -1
  27. package/package.json +2 -2
  28. package/src/.claude/.sidecar/activity.jsonl +4 -0
  29. package/src/.claude/.sidecar/history/2026-03-13.md +28 -0
  30. package/src/.claude/.sidecar/map_cache.json +50 -0
  31. package/src/.claude/.sidecar/review.md +28 -0
  32. package/src/.claude/.sidecar/scan.log +3 -0
  33. package/src/.claude/.sidecar/tasks/T-001.md +18 -0
  34. package/src/.claude/.sidecar/tasks/T-002.md +18 -0
  35. package/src/.claude/.sidecar/tasks/T-003.md +18 -0
  36. package/src/.claude/.sidecar/tasks/T-004.md +18 -0
  37. package/src/.claude/.sidecar/usage.json +5 -0
  38. package/src/.claude/project-map.md +34 -0
  39. package/src/_api/BaseClient.ts +22 -0
  40. package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts__user_profile.ts +3 -3
  41. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts +1 -1
  42. package/src/_api/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts +20 -0
  43. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts +1 -1
  44. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts +1 -1
  45. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts +1 -1
  46. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts +1 -1
  47. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts +1 -1
  48. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/User.schema.ts +1 -1
  49. package/src/{generated → _api/generated}/cfg_accounts/accounts__oauth/models.ts +49 -25
  50. package/src/{generated → _api/generated}/cfg_accounts/http.ts +26 -0
  51. package/src/{generated → _api/generated}/cfg_accounts/index.ts +5 -1
  52. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts +4 -4
  53. package/src/{generated/cfg_totp → _api/generated/cfg_centrifugo}/http.ts +26 -0
  54. package/src/{generated → _api/generated}/cfg_centrifugo/index.ts +5 -1
  55. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts +1 -1
  56. package/src/{generated/cfg_centrifugo → _api/generated/cfg_totp}/http.ts +26 -0
  57. package/src/{generated → _api/generated}/cfg_totp/index.ts +5 -1
  58. package/src/_api/index.ts +23 -0
  59. package/src/auth/context/AccountsContext.tsx +3 -3
  60. package/src/clients.ts +16 -16
  61. package/src/hooks/accounts.ts +1 -1
  62. package/src/index.ts +6 -6
  63. package/src/server.ts +5 -5
  64. package/src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts +0 -20
  65. package/src/{generated → _api/generated}/cfg_accounts/CLAUDE.md +0 -0
  66. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts.ts +0 -0
  67. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts__auth.ts +0 -0
  68. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts__oauth.ts +0 -0
  69. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +0 -0
  70. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/index.ts +0 -0
  71. package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts.ts +0 -0
  72. package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts__auth.ts +0 -0
  73. package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts__oauth.ts +0 -0
  74. package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/index.ts +0 -0
  75. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts +0 -0
  76. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts +0 -0
  77. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts +0 -0
  78. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthError.schema.ts +0 -0
  79. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts +0 -0
  80. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts +0 -0
  81. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts +0 -0
  82. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts +0 -0
  83. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts +0 -0
  84. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts +0 -0
  85. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts +0 -0
  86. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts +0 -0
  87. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts +0 -0
  88. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/index.ts +0 -0
  89. package/src/{generated → _api/generated}/cfg_accounts/accounts/client.ts +0 -0
  90. package/src/{generated → _api/generated}/cfg_accounts/accounts/index.ts +0 -0
  91. package/src/{generated → _api/generated}/cfg_accounts/accounts/models.ts +20 -20
  92. package/src/{generated → _api/generated}/cfg_accounts/accounts__auth/client.ts +0 -0
  93. package/src/{generated → _api/generated}/cfg_accounts/accounts__auth/index.ts +0 -0
  94. package/src/{generated → _api/generated}/cfg_accounts/accounts__auth/models.ts +5 -5
  95. package/src/{generated → _api/generated}/cfg_accounts/accounts__oauth/client.ts +0 -0
  96. package/src/{generated → _api/generated}/cfg_accounts/accounts__oauth/index.ts +0 -0
  97. package/src/{generated → _api/generated}/cfg_accounts/accounts__user_profile/client.ts +0 -0
  98. package/src/{generated → _api/generated}/cfg_accounts/accounts__user_profile/index.ts +0 -0
  99. package/src/{generated → _api/generated}/cfg_accounts/accounts__user_profile/models.ts +12 -12
  100. package/src/{generated → _api/generated}/cfg_accounts/api-instance.ts +0 -0
  101. package/src/{generated → _api/generated}/cfg_accounts/client.ts +0 -0
  102. package/src/{generated → _api/generated}/cfg_accounts/enums.ts +0 -0
  103. package/src/{generated → _api/generated}/cfg_accounts/errors.ts +0 -0
  104. package/src/{generated → _api/generated}/cfg_accounts/logger.ts +0 -0
  105. package/src/{generated → _api/generated}/cfg_accounts/retry.ts +0 -0
  106. package/src/{generated → _api/generated}/cfg_accounts/schema.json +0 -0
  107. package/src/{generated → _api/generated}/cfg_accounts/storage.ts +0 -0
  108. package/src/{generated → _api/generated}/cfg_accounts/validation-events.ts +0 -0
  109. package/src/{generated → _api/generated}/cfg_centrifugo/CLAUDE.md +0 -0
  110. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +0 -0
  111. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts +0 -0
  112. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +0 -0
  113. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +0 -0
  114. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/index.ts +0 -0
  115. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +0 -0
  116. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts +0 -0
  117. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +0 -0
  118. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +0 -0
  119. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/index.ts +0 -0
  120. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts +0 -0
  121. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +0 -0
  122. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts +0 -0
  123. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts +0 -0
  124. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts +0 -0
  125. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts +0 -0
  126. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts +0 -0
  127. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +0 -0
  128. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts +0 -0
  129. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts +0 -0
  130. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts +0 -0
  131. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts +0 -0
  132. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts +0 -0
  133. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts +0 -0
  134. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts +0 -0
  135. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +0 -0
  136. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts +0 -0
  137. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts +0 -0
  138. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +0 -0
  139. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +0 -0
  140. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +0 -0
  141. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts +0 -0
  142. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts +0 -0
  143. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts +0 -0
  144. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts +0 -0
  145. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts +0 -0
  146. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts +0 -0
  147. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts +0 -0
  148. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts +0 -0
  149. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts +0 -0
  150. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/Publish.schema.ts +0 -0
  151. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts +0 -0
  152. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts +0 -0
  153. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts +0 -0
  154. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts +0 -0
  155. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/index.ts +0 -0
  156. package/src/{generated → _api/generated}/cfg_centrifugo/api-instance.ts +0 -0
  157. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts +0 -0
  158. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +0 -0
  159. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +74 -74
  160. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts +0 -0
  161. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_auth/index.ts +0 -0
  162. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_auth/models.ts +0 -0
  163. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +0 -0
  164. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +61 -61
  165. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts +0 -0
  166. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +0 -0
  167. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +25 -25
  168. package/src/{generated → _api/generated}/cfg_centrifugo/client.ts +0 -0
  169. package/src/{generated → _api/generated}/cfg_centrifugo/errors.ts +0 -0
  170. package/src/{generated → _api/generated}/cfg_centrifugo/logger.ts +0 -0
  171. package/src/{generated → _api/generated}/cfg_centrifugo/retry.ts +0 -0
  172. package/src/{generated → _api/generated}/cfg_centrifugo/schema.json +0 -0
  173. package/src/{generated → _api/generated}/cfg_centrifugo/storage.ts +0 -0
  174. package/src/{generated → _api/generated}/cfg_centrifugo/validation-events.ts +0 -0
  175. package/src/{generated → _api/generated}/cfg_totp/CLAUDE.md +0 -0
  176. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/index.ts +0 -0
  177. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp.ts +0 -0
  178. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__backup_codes.ts +0 -0
  179. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__totp_management.ts +0 -0
  180. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__totp_setup.ts +0 -0
  181. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__totp_verification.ts +0 -0
  182. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/index.ts +0 -0
  183. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp.ts +0 -0
  184. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__backup_codes.ts +0 -0
  185. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__totp_management.ts +0 -0
  186. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__totp_setup.ts +0 -0
  187. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__totp_verification.ts +0 -0
  188. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts +0 -0
  189. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts +0 -0
  190. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts +0 -0
  191. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts +0 -0
  192. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts +0 -0
  193. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/DeviceList.schema.ts +0 -0
  194. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/DeviceListResponse.schema.ts +0 -0
  195. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/DisableRequest.schema.ts +0 -0
  196. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts +0 -0
  197. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/SetupRequest.schema.ts +0 -0
  198. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/SetupResponse.schema.ts +0 -0
  199. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts +0 -0
  200. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/VerifyRequest.schema.ts +0 -0
  201. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/VerifyResponse.schema.ts +0 -0
  202. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/index.ts +0 -0
  203. package/src/{generated → _api/generated}/cfg_totp/api-instance.ts +0 -0
  204. package/src/{generated → _api/generated}/cfg_totp/client.ts +0 -0
  205. package/src/{generated → _api/generated}/cfg_totp/enums.ts +0 -0
  206. package/src/{generated → _api/generated}/cfg_totp/errors.ts +0 -0
  207. package/src/{generated → _api/generated}/cfg_totp/logger.ts +0 -0
  208. package/src/{generated → _api/generated}/cfg_totp/retry.ts +0 -0
  209. package/src/{generated → _api/generated}/cfg_totp/schema.json +0 -0
  210. package/src/{generated → _api/generated}/cfg_totp/storage.ts +0 -0
  211. package/src/{generated → _api/generated}/cfg_totp/totp/client.ts +0 -0
  212. package/src/{generated → _api/generated}/cfg_totp/totp/index.ts +0 -0
  213. package/src/{generated → _api/generated}/cfg_totp/totp/models.ts +0 -0
  214. package/src/{generated → _api/generated}/cfg_totp/totp__backup_codes/client.ts +0 -0
  215. package/src/{generated → _api/generated}/cfg_totp/totp__backup_codes/index.ts +0 -0
  216. package/src/{generated → _api/generated}/cfg_totp/totp__backup_codes/models.ts +0 -0
  217. package/src/{generated → _api/generated}/cfg_totp/totp__totp_management/client.ts +0 -0
  218. package/src/{generated → _api/generated}/cfg_totp/totp__totp_management/index.ts +0 -0
  219. package/src/{generated → _api/generated}/cfg_totp/totp__totp_management/models.ts +0 -0
  220. package/src/{generated → _api/generated}/cfg_totp/totp__totp_setup/client.ts +0 -0
  221. package/src/{generated → _api/generated}/cfg_totp/totp__totp_setup/index.ts +0 -0
  222. package/src/{generated → _api/generated}/cfg_totp/totp__totp_setup/models.ts +23 -23
  223. package/src/{generated → _api/generated}/cfg_totp/totp__totp_verification/client.ts +0 -0
  224. package/src/{generated → _api/generated}/cfg_totp/totp__totp_verification/index.ts +0 -0
  225. package/src/{generated → _api/generated}/cfg_totp/totp__totp_verification/models.ts +12 -12
  226. /package/src/{generated → _api/generated}/cfg_totp/validation-events.ts +0 -0
@@ -4,17 +4,17 @@ import useSWR from 'swr';
4
4
 
5
5
  /**
6
6
  *
7
- * Request model (no read-only fields).
7
+ * Response model (includes read-only fields).
8
8
  */
9
- interface TokenRefreshRequest$1 {
9
+ interface TokenRefresh$1 {
10
+ access: string;
10
11
  refresh: string;
11
12
  }
12
13
  /**
13
14
  *
14
- * Response model (includes read-only fields).
15
+ * Request model (no read-only fields).
15
16
  */
16
- interface TokenRefresh$1 {
17
- access: string;
17
+ interface TokenRefreshRequest$1 {
18
18
  refresh: string;
19
19
  }
20
20
 
@@ -56,15 +56,17 @@ declare namespace enums {
56
56
  }
57
57
 
58
58
  /**
59
- * Request to disconnect OAuth provider.
59
+ * Request to complete OAuth flow (callback handler).
60
60
  *
61
61
  * Request model (no read-only fields).
62
62
  */
63
- interface OAuthDisconnectRequestRequest$1 {
64
- /** OAuth provider to disconnect
65
-
66
- * `github` - GitHub */
67
- provider: OAuthConnectionProvider;
63
+ interface OAuthCallbackRequestRequest$1 {
64
+ /** Authorization code from OAuth provider callback */
65
+ code: string;
66
+ /** State token for CSRF verification (from authorize response) */
67
+ state: string;
68
+ /** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
69
+ redirect_uri?: string;
68
70
  }
69
71
  /**
70
72
  * Request to start OAuth flow.
@@ -89,17 +91,13 @@ interface OAuthAuthorizeResponse$1 {
89
91
  state: string;
90
92
  }
91
93
  /**
92
- * Request to complete OAuth flow (callback handler).
94
+ * Response with available OAuth providers.
93
95
  *
94
- * Request model (no read-only fields).
96
+ * Response model (includes read-only fields).
95
97
  */
96
- interface OAuthCallbackRequestRequest$1 {
97
- /** Authorization code from OAuth provider callback */
98
- code: string;
99
- /** State token for CSRF verification (from authorize response) */
100
- state: string;
101
- /** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
102
- redirect_uri?: string;
98
+ interface OAuthProvidersResponse$1 {
99
+ /** List of available OAuth providers */
100
+ providers: Array<Record<string, any>>;
103
101
  }
104
102
  /**
105
103
  * Response with JWT tokens after OAuth authentication. When 2FA is required: -
@@ -128,13 +126,15 @@ interface OAuthTokenResponse$1 {
128
126
  should_prompt_2fa?: boolean;
129
127
  }
130
128
  /**
131
- * Response with available OAuth providers.
129
+ * Request to disconnect OAuth provider.
132
130
  *
133
- * Response model (includes read-only fields).
131
+ * Request model (no read-only fields).
134
132
  */
135
- interface OAuthProvidersResponse$1 {
136
- /** List of available OAuth providers */
137
- providers: Array<Record<string, any>>;
133
+ interface OAuthDisconnectRequestRequest$1 {
134
+ /** OAuth provider to disconnect
135
+
136
+ * `github` - GitHub */
137
+ provider: OAuthConnectionProvider;
138
138
  }
139
139
 
140
140
  /**
@@ -208,12 +208,17 @@ interface User$2 {
208
208
  centrifugo: CentrifugoToken$2 | null;
209
209
  }
210
210
  /**
211
+ * Serializer for updating user profile.
211
212
  *
212
213
  * Request model (no read-only fields).
213
214
  */
214
- interface CfgAccountsProfileAvatarCreateRequest$1 {
215
- /** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
216
- avatar: File | Blob;
215
+ interface UserProfileUpdateRequest$1 {
216
+ first_name?: string;
217
+ last_name?: string;
218
+ company?: string;
219
+ phone?: string;
220
+ position?: string;
221
+ language?: string;
217
222
  }
218
223
  /**
219
224
  * Response serializer for account deletion.
@@ -231,7 +236,7 @@ interface AccountDeleteResponse$1 {
231
236
  *
232
237
  * Request model (no read-only fields).
233
238
  */
234
- interface UserProfileUpdateRequest$1 {
239
+ interface PatchedUserProfileUpdateRequest$1 {
235
240
  first_name?: string;
236
241
  last_name?: string;
237
242
  company?: string;
@@ -240,17 +245,12 @@ interface UserProfileUpdateRequest$1 {
240
245
  language?: string;
241
246
  }
242
247
  /**
243
- * Serializer for updating user profile.
244
248
  *
245
249
  * Request model (no read-only fields).
246
250
  */
247
- interface PatchedUserProfileUpdateRequest$1 {
248
- first_name?: string;
249
- last_name?: string;
250
- company?: string;
251
- phone?: string;
252
- position?: string;
253
- language?: string;
251
+ interface CfgAccountsProfileAvatarCreateRequest$1 {
252
+ /** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
253
+ avatar: File | Blob;
254
254
  }
255
255
  /**
256
256
  * Nested serializer for Centrifugo WebSocket connection token.
@@ -350,23 +350,6 @@ interface OTPRequestResponse$1 {
350
350
  /** Success message */
351
351
  message: string;
352
352
  }
353
- /**
354
- * Serializer for OTP verification.
355
- *
356
- * Request model (no read-only fields).
357
- */
358
- interface OTPVerifyRequest$1 {
359
- /** Email address or phone number used for OTP request */
360
- identifier: string;
361
- otp: string;
362
- /** Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
363
-
364
- * `email` - Email
365
- * `phone` - Phone */
366
- channel?: OTPRequestRequestChannel;
367
- /** Source URL for tracking login (e.g., https://my.djangocfg.com) */
368
- source_url?: string;
369
- }
370
353
  /**
371
354
  * OTP verification response. When 2FA is required: - requires_2fa: True -
372
355
  * session_id: UUID of 2FA verification session - refresh/access/user: null
@@ -388,6 +371,23 @@ interface OTPVerifyResponse$1 {
388
371
  /** Whether user should be prompted to enable 2FA */
389
372
  should_prompt_2fa?: boolean;
390
373
  }
374
+ /**
375
+ * Serializer for OTP verification.
376
+ *
377
+ * Request model (no read-only fields).
378
+ */
379
+ interface OTPVerifyRequest$1 {
380
+ /** Email address or phone number used for OTP request */
381
+ identifier: string;
382
+ otp: string;
383
+ /** Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
384
+
385
+ * `email` - Email
386
+ * `phone` - Phone */
387
+ channel?: OTPRequestRequestChannel;
388
+ /** Source URL for tracking login (e.g., https://my.djangocfg.com) */
389
+ source_url?: string;
390
+ }
391
391
  /**
392
392
  * Serializer for user details.
393
393
  *
@@ -1196,6 +1196,8 @@ declare function partialUpdateAccountsProfileUpdatePartialUpdate(data?: PatchedU
1196
1196
  interface APIOptions$2 {
1197
1197
  /** Custom storage adapter (defaults to LocalStorageAdapter) */
1198
1198
  storage?: StorageAdapter$2;
1199
+ /** Custom HTTP client adapter (defaults to FetchAdapter) */
1200
+ httpClient?: HttpClientAdapter;
1199
1201
  /** Retry configuration for failed requests */
1200
1202
  retryConfig?: RetryConfig$2;
1201
1203
  /** Logger configuration */
@@ -1275,22 +1277,22 @@ declare class API$2 {
1275
1277
  }
1276
1278
 
1277
1279
  /**
1278
- * Request to list active channels.
1280
+ * Request to get channel presence statistics.
1279
1281
  *
1280
1282
  * Request model (no read-only fields).
1281
1283
  */
1282
- interface CentrifugoChannelsRequestRequest$1 {
1283
- /** Pattern to filter channels (e.g., 'user:*') */
1284
- pattern?: string | null;
1284
+ interface CentrifugoPresenceStatsRequestRequest$1 {
1285
+ /** Channel name */
1286
+ channel: string;
1285
1287
  }
1286
1288
  /**
1287
- * List of active channels response.
1289
+ * Server info response.
1288
1290
  *
1289
1291
  * Response model (includes read-only fields).
1290
1292
  */
1291
- interface CentrifugoChannelsResponse$1 {
1293
+ interface CentrifugoInfoResponse$1 {
1292
1294
  error?: CentrifugoError$1 | null;
1293
- result?: CentrifugoChannelsResult$1 | null;
1295
+ result?: CentrifugoInfoResult$1 | null;
1294
1296
  }
1295
1297
  /**
1296
1298
  * Request to get channel history.
@@ -1307,58 +1309,67 @@ interface CentrifugoHistoryRequestRequest$1 {
1307
1309
  reverse?: boolean | null;
1308
1310
  }
1309
1311
  /**
1310
- * Channel history response.
1312
+ * Request to list active channels.
1313
+ *
1314
+ * Request model (no read-only fields).
1315
+ */
1316
+ interface CentrifugoChannelsRequestRequest$1 {
1317
+ /** Pattern to filter channels (e.g., 'user:*') */
1318
+ pattern?: string | null;
1319
+ }
1320
+ /**
1321
+ * Channel presence response.
1311
1322
  *
1312
1323
  * Response model (includes read-only fields).
1313
1324
  */
1314
- interface CentrifugoHistoryResponse$1 {
1325
+ interface CentrifugoPresenceResponse$1 {
1315
1326
  error?: CentrifugoError$1 | null;
1316
- result?: CentrifugoHistoryResult$1 | null;
1327
+ result?: CentrifugoPresenceResult$1 | null;
1317
1328
  }
1318
1329
  /**
1319
- * Server info response.
1330
+ * Channel presence stats response.
1320
1331
  *
1321
1332
  * Response model (includes read-only fields).
1322
1333
  */
1323
- interface CentrifugoInfoResponse$1 {
1334
+ interface CentrifugoPresenceStatsResponse$1 {
1324
1335
  error?: CentrifugoError$1 | null;
1325
- result?: CentrifugoInfoResult$1 | null;
1336
+ result?: CentrifugoPresenceStatsResult$1 | null;
1326
1337
  }
1327
1338
  /**
1328
- * Request to get channel presence.
1339
+ * Channel history response.
1329
1340
  *
1330
- * Request model (no read-only fields).
1341
+ * Response model (includes read-only fields).
1331
1342
  */
1332
- interface CentrifugoPresenceRequestRequest$1 {
1333
- /** Channel name */
1334
- channel: string;
1343
+ interface CentrifugoHistoryResponse$1 {
1344
+ error?: CentrifugoError$1 | null;
1345
+ result?: CentrifugoHistoryResult$1 | null;
1335
1346
  }
1336
1347
  /**
1337
- * Channel presence response.
1348
+ * List of active channels response.
1338
1349
  *
1339
1350
  * Response model (includes read-only fields).
1340
1351
  */
1341
- interface CentrifugoPresenceResponse$1 {
1352
+ interface CentrifugoChannelsResponse$1 {
1342
1353
  error?: CentrifugoError$1 | null;
1343
- result?: CentrifugoPresenceResult$1 | null;
1354
+ result?: CentrifugoChannelsResult$1 | null;
1344
1355
  }
1345
1356
  /**
1346
- * Request to get channel presence statistics.
1357
+ * Request to get channel presence.
1347
1358
  *
1348
1359
  * Request model (no read-only fields).
1349
1360
  */
1350
- interface CentrifugoPresenceStatsRequestRequest$1 {
1361
+ interface CentrifugoPresenceRequestRequest$1 {
1351
1362
  /** Channel name */
1352
1363
  channel: string;
1353
1364
  }
1354
1365
  /**
1355
- * Channel presence stats response.
1366
+ * Info result wrapper.
1356
1367
  *
1357
1368
  * Response model (includes read-only fields).
1358
1369
  */
1359
- interface CentrifugoPresenceStatsResponse$1 {
1360
- error?: CentrifugoError$1 | null;
1361
- result?: CentrifugoPresenceStatsResult$1 | null;
1370
+ interface CentrifugoInfoResult$1 {
1371
+ /** List of Centrifugo nodes */
1372
+ nodes: Array<CentrifugoNodeInfo$1>;
1362
1373
  }
1363
1374
  /**
1364
1375
  * Centrifugo API error structure.
@@ -1371,15 +1382,6 @@ interface CentrifugoError$1 {
1371
1382
  /** Error message */
1372
1383
  message?: string;
1373
1384
  }
1374
- /**
1375
- * Channels result wrapper.
1376
- *
1377
- * Response model (includes read-only fields).
1378
- */
1379
- interface CentrifugoChannelsResult$1 {
1380
- /** Map of channel names to channel info */
1381
- channels: Record<string, CentrifugoChannelInfo$1>;
1382
- }
1383
1385
  /**
1384
1386
  * Stream position for pagination.
1385
1387
  *
@@ -1391,28 +1393,6 @@ interface CentrifugoStreamPosition$1 {
1391
1393
  /** Stream epoch */
1392
1394
  epoch: string;
1393
1395
  }
1394
- /**
1395
- * History result wrapper.
1396
- *
1397
- * Response model (includes read-only fields).
1398
- */
1399
- interface CentrifugoHistoryResult$1 {
1400
- /** List of publications */
1401
- publications: Array<CentrifugoPublication$1>;
1402
- /** Current stream epoch */
1403
- epoch: string;
1404
- /** Latest stream offset */
1405
- offset: number;
1406
- }
1407
- /**
1408
- * Info result wrapper.
1409
- *
1410
- * Response model (includes read-only fields).
1411
- */
1412
- interface CentrifugoInfoResult$1 {
1413
- /** List of Centrifugo nodes */
1414
- nodes: Array<CentrifugoNodeInfo$1>;
1415
- }
1416
1396
  /**
1417
1397
  * Presence result wrapper.
1418
1398
  *
@@ -1434,27 +1414,26 @@ interface CentrifugoPresenceStatsResult$1 {
1434
1414
  num_users: number;
1435
1415
  }
1436
1416
  /**
1437
- * Information about a single channel.
1417
+ * History result wrapper.
1438
1418
  *
1439
1419
  * Response model (includes read-only fields).
1440
1420
  */
1441
- interface CentrifugoChannelInfo$1 {
1442
- /** Number of connected clients in channel */
1443
- num_clients: number;
1421
+ interface CentrifugoHistoryResult$1 {
1422
+ /** List of publications */
1423
+ publications: Array<CentrifugoPublication$1>;
1424
+ /** Current stream epoch */
1425
+ epoch: string;
1426
+ /** Latest stream offset */
1427
+ offset: number;
1444
1428
  }
1445
1429
  /**
1446
- * Single publication (message) in channel history.
1430
+ * Channels result wrapper.
1447
1431
  *
1448
1432
  * Response model (includes read-only fields).
1449
1433
  */
1450
- interface CentrifugoPublication$1 {
1451
- /** Message payload */
1452
- data: Record<string, any>;
1453
- info?: CentrifugoClientInfo$1 | null;
1454
- /** Message offset in channel stream */
1455
- offset: number;
1456
- /** Optional message tags */
1457
- tags?: Record<string, any> | null;
1434
+ interface CentrifugoChannelsResult$1 {
1435
+ /** Map of channel names to channel info */
1436
+ channels: Record<string, CentrifugoChannelInfo$1>;
1458
1437
  }
1459
1438
  /**
1460
1439
  * Information about a single Centrifugo node.
@@ -1496,6 +1475,29 @@ interface CentrifugoClientInfo$1 {
1496
1475
  /** Channel-specific metadata */
1497
1476
  chan_info?: Record<string, any> | null;
1498
1477
  }
1478
+ /**
1479
+ * Single publication (message) in channel history.
1480
+ *
1481
+ * Response model (includes read-only fields).
1482
+ */
1483
+ interface CentrifugoPublication$1 {
1484
+ /** Message payload */
1485
+ data: Record<string, any>;
1486
+ info?: CentrifugoClientInfo$1 | null;
1487
+ /** Message offset in channel stream */
1488
+ offset: number;
1489
+ /** Optional message tags */
1490
+ tags?: Record<string, any> | null;
1491
+ }
1492
+ /**
1493
+ * Information about a single channel.
1494
+ *
1495
+ * Response model (includes read-only fields).
1496
+ */
1497
+ interface CentrifugoChannelInfo$1 {
1498
+ /** Number of connected clients in channel */
1499
+ num_clients: number;
1500
+ }
1499
1501
  /**
1500
1502
  * Server metrics.
1501
1503
  *
@@ -1596,55 +1598,6 @@ declare class CentrifugoAuth {
1596
1598
  tokenRetrieve(): Promise<ConnectionTokenResponse$1>;
1597
1599
  }
1598
1600
 
1599
- /**
1600
- * List of channel statistics.
1601
- *
1602
- * Response model (includes read-only fields).
1603
- */
1604
- interface ChannelList$1 {
1605
- /** Channel statistics */
1606
- channels: Array<ChannelStats$1>;
1607
- /** Total number of channels */
1608
- total_channels: number;
1609
- }
1610
- /**
1611
- * Health check response.
1612
- *
1613
- * Response model (includes read-only fields).
1614
- */
1615
- interface CentrifugoHealthCheck$1 {
1616
- /** Health status: healthy or unhealthy */
1617
- status: string;
1618
- /** Configured wrapper URL */
1619
- wrapper_url: string;
1620
- /** Whether API key is configured */
1621
- has_api_key: boolean;
1622
- /** Current timestamp */
1623
- timestamp: string;
1624
- }
1625
- /**
1626
- * Overview statistics for Centrifugo publishes.
1627
- *
1628
- * Response model (includes read-only fields).
1629
- */
1630
- interface CentrifugoOverviewStats$1 {
1631
- /** Total publishes in period */
1632
- total: number;
1633
- /** Successful publishes */
1634
- successful: number;
1635
- /** Failed publishes */
1636
- failed: number;
1637
- /** Timeout publishes */
1638
- timeout: number;
1639
- /** Success rate percentage */
1640
- success_rate: number;
1641
- /** Average duration in milliseconds */
1642
- avg_duration_ms: number;
1643
- /** Average ACKs received */
1644
- avg_acks_received: number;
1645
- /** Statistics period in hours */
1646
- period_hours: number;
1647
- }
1648
1601
  /**
1649
1602
  *
1650
1603
  * Response model (includes read-only fields).
@@ -1680,25 +1633,53 @@ interface TimelineResponse$1 {
1680
1633
  interval: string;
1681
1634
  }
1682
1635
  /**
1683
- * Statistics per channel.
1636
+ * Health check response.
1684
1637
  *
1685
1638
  * Response model (includes read-only fields).
1686
1639
  */
1687
- interface ChannelStats$1 {
1688
- /** Channel name */
1689
- channel: string;
1690
- /** Total publishes to this channel */
1640
+ interface CentrifugoHealthCheck$1 {
1641
+ /** Health status: healthy or unhealthy */
1642
+ status: string;
1643
+ /** Configured wrapper URL */
1644
+ wrapper_url: string;
1645
+ /** Whether API key is configured */
1646
+ has_api_key: boolean;
1647
+ /** Current timestamp */
1648
+ timestamp: string;
1649
+ }
1650
+ /**
1651
+ * List of channel statistics.
1652
+ *
1653
+ * Response model (includes read-only fields).
1654
+ */
1655
+ interface ChannelList$1 {
1656
+ /** Channel statistics */
1657
+ channels: Array<ChannelStats$1>;
1658
+ /** Total number of channels */
1659
+ total_channels: number;
1660
+ }
1661
+ /**
1662
+ * Overview statistics for Centrifugo publishes.
1663
+ *
1664
+ * Response model (includes read-only fields).
1665
+ */
1666
+ interface CentrifugoOverviewStats$1 {
1667
+ /** Total publishes in period */
1691
1668
  total: number;
1692
1669
  /** Successful publishes */
1693
1670
  successful: number;
1694
1671
  /** Failed publishes */
1695
1672
  failed: number;
1696
- /** Average duration */
1673
+ /** Timeout publishes */
1674
+ timeout: number;
1675
+ /** Success rate percentage */
1676
+ success_rate: number;
1677
+ /** Average duration in milliseconds */
1697
1678
  avg_duration_ms: number;
1698
1679
  /** Average ACKs received */
1699
- avg_acks: number;
1700
- /** Last activity timestamp (ISO format) */
1701
- last_activity_at: string | null;
1680
+ avg_acks_received: number;
1681
+ /** Statistics period in hours */
1682
+ period_hours: number;
1702
1683
  }
1703
1684
  /**
1704
1685
  * Single publish item for DRF pagination.
@@ -1730,6 +1711,27 @@ interface TimelineItem$1 {
1730
1711
  failed: number;
1731
1712
  timeout: number;
1732
1713
  }
1714
+ /**
1715
+ * Statistics per channel.
1716
+ *
1717
+ * Response model (includes read-only fields).
1718
+ */
1719
+ interface ChannelStats$1 {
1720
+ /** Channel name */
1721
+ channel: string;
1722
+ /** Total publishes to this channel */
1723
+ total: number;
1724
+ /** Successful publishes */
1725
+ successful: number;
1726
+ /** Failed publishes */
1727
+ failed: number;
1728
+ /** Average duration */
1729
+ avg_duration_ms: number;
1730
+ /** Average ACKs received */
1731
+ avg_acks: number;
1732
+ /** Last activity timestamp (ISO format) */
1733
+ last_activity_at: string | null;
1734
+ }
1733
1735
 
1734
1736
  /**
1735
1737
  * API endpoints for Centrifugo Monitoring.
@@ -1737,10 +1739,10 @@ interface TimelineItem$1 {
1737
1739
  declare class CentrifugoMonitoring {
1738
1740
  private client;
1739
1741
  constructor(client: any);
1740
- centrifugoMonitorChannelsRetrieve(hours?: number): Promise<ChannelList$1[]>;
1742
+ centrifugoMonitorChannelsRetrieve(hours?: number): Promise<ChannelList$1>;
1741
1743
  centrifugoMonitorChannelsRetrieve(params?: {
1742
1744
  hours?: number;
1743
- }): Promise<ChannelList$1[]>;
1745
+ }): Promise<ChannelList$1>;
1744
1746
  /**
1745
1747
  * Get Centrifugo health status
1746
1748
  *
@@ -1767,21 +1769,6 @@ declare class CentrifugoMonitoring {
1767
1769
  }): Promise<TimelineResponse$1>;
1768
1770
  }
1769
1771
 
1770
- /**
1771
- * Request model for test message publishing.
1772
- *
1773
- * Request model (no read-only fields).
1774
- */
1775
- interface PublishTestRequestRequest$1 {
1776
- /** Target channel name */
1777
- channel: string;
1778
- /** Message data (any JSON object) */
1779
- data: Record<string, any>;
1780
- /** Wait for client acknowledgment */
1781
- wait_for_ack?: boolean;
1782
- /** ACK timeout in seconds */
1783
- ack_timeout?: number;
1784
- }
1785
1772
  /**
1786
1773
  * Response model for test message publishing.
1787
1774
  *
@@ -1801,6 +1788,19 @@ interface PublishTestResponse$1 {
1801
1788
  /** Error message if failed */
1802
1789
  error?: string | null;
1803
1790
  }
1791
+ /**
1792
+ * Response model for manual ACK.
1793
+ *
1794
+ * Response model (includes read-only fields).
1795
+ */
1796
+ interface ManualAckResponse$1 {
1797
+ /** Whether ACK was sent successfully */
1798
+ success: boolean;
1799
+ /** Message ID that was acknowledged */
1800
+ message_id: string;
1801
+ /** Error message if failed */
1802
+ error?: string | null;
1803
+ }
1804
1804
  /**
1805
1805
  * Request model for manual ACK sending.
1806
1806
  *
@@ -1813,17 +1813,19 @@ interface ManualAckRequestRequest$1 {
1813
1813
  client_id: string;
1814
1814
  }
1815
1815
  /**
1816
- * Response model for manual ACK.
1816
+ * Request model for test message publishing.
1817
1817
  *
1818
- * Response model (includes read-only fields).
1818
+ * Request model (no read-only fields).
1819
1819
  */
1820
- interface ManualAckResponse$1 {
1821
- /** Whether ACK was sent successfully */
1822
- success: boolean;
1823
- /** Message ID that was acknowledged */
1824
- message_id: string;
1825
- /** Error message if failed */
1826
- error?: string | null;
1820
+ interface PublishTestRequestRequest$1 {
1821
+ /** Target channel name */
1822
+ channel: string;
1823
+ /** Message data (any JSON object) */
1824
+ data: Record<string, any>;
1825
+ /** Wait for client acknowledgment */
1826
+ wait_for_ack?: boolean;
1827
+ /** ACK timeout in seconds */
1828
+ ack_timeout?: number;
1827
1829
  }
1828
1830
 
1829
1831
  /**
@@ -3101,6 +3103,8 @@ declare namespace index$4 {
3101
3103
  interface APIOptions$1 {
3102
3104
  /** Custom storage adapter (defaults to LocalStorageAdapter) */
3103
3105
  storage?: StorageAdapter$1;
3106
+ /** Custom HTTP client adapter (defaults to FetchAdapter) */
3107
+ httpClient?: HttpClientAdapter;
3104
3108
  /** Retry configuration for failed requests */
3105
3109
  retryConfig?: RetryConfig$1;
3106
3110
  /** Logger configuration */
@@ -3325,13 +3329,27 @@ declare class TotpManagement {
3325
3329
  }
3326
3330
 
3327
3331
  /**
3328
- * Serializer for starting 2FA setup.
3332
+ * Response serializer for setup confirmation.
3333
+ *
3334
+ * Response model (includes read-only fields).
3335
+ */
3336
+ interface ConfirmSetupResponse$1 {
3337
+ message: string;
3338
+ /** List of backup recovery codes (save these!) */
3339
+ backup_codes: Array<string>;
3340
+ /** Warning message about backup codes */
3341
+ backup_codes_warning: string;
3342
+ }
3343
+ /**
3344
+ * Serializer for confirming 2FA setup with first code.
3329
3345
  *
3330
3346
  * Request model (no read-only fields).
3331
3347
  */
3332
- interface SetupRequest$1 {
3333
- /** Device name for identification (e.g., 'My iPhone') */
3334
- device_name?: string;
3348
+ interface ConfirmSetupRequest$1 {
3349
+ /** Device ID from setup response */
3350
+ device_id: string;
3351
+ /** 6-digit TOTP code from authenticator app */
3352
+ code: string;
3335
3353
  }
3336
3354
  /**
3337
3355
  * Response serializer for setup initiation.
@@ -3351,27 +3369,13 @@ interface SetupResponse$1 {
3351
3369
  expires_in: number;
3352
3370
  }
3353
3371
  /**
3354
- * Serializer for confirming 2FA setup with first code.
3372
+ * Serializer for starting 2FA setup.
3355
3373
  *
3356
3374
  * Request model (no read-only fields).
3357
3375
  */
3358
- interface ConfirmSetupRequest$1 {
3359
- /** Device ID from setup response */
3360
- device_id: string;
3361
- /** 6-digit TOTP code from authenticator app */
3362
- code: string;
3363
- }
3364
- /**
3365
- * Response serializer for setup confirmation.
3366
- *
3367
- * Response model (includes read-only fields).
3368
- */
3369
- interface ConfirmSetupResponse$1 {
3370
- message: string;
3371
- /** List of backup recovery codes (save these!) */
3372
- backup_codes: Array<string>;
3373
- /** Warning message about backup codes */
3374
- backup_codes_warning: string;
3376
+ interface SetupRequest$1 {
3377
+ /** Device name for identification (e.g., 'My iPhone') */
3378
+ device_name?: string;
3375
3379
  }
3376
3380
 
3377
3381
  /**
@@ -3403,6 +3407,17 @@ interface VerifyRequest$1 {
3403
3407
  /** 6-digit TOTP code from authenticator app */
3404
3408
  code: string;
3405
3409
  }
3410
+ /**
3411
+ * Serializer for backup code verification during login.
3412
+ *
3413
+ * Request model (no read-only fields).
3414
+ */
3415
+ interface VerifyBackupRequest$1 {
3416
+ /** 2FA session ID from login response */
3417
+ session_id: string;
3418
+ /** 8-character backup recovery code */
3419
+ backup_code: string;
3420
+ }
3406
3421
  /**
3407
3422
  * Response serializer for successful 2FA verification.
3408
3423
  *
@@ -3420,17 +3435,6 @@ interface VerifyResponse$1 {
3420
3435
  /** Warning message (e.g., low backup codes) */
3421
3436
  warning?: string;
3422
3437
  }
3423
- /**
3424
- * Serializer for backup code verification during login.
3425
- *
3426
- * Request model (no read-only fields).
3427
- */
3428
- interface VerifyBackupRequest$1 {
3429
- /** 2FA session ID from login response */
3430
- session_id: string;
3431
- /** 8-character backup recovery code */
3432
- backup_code: string;
3433
- }
3434
3438
  /**
3435
3439
  * User data returned after 2FA verification.
3436
3440
  *
@@ -4133,6 +4137,8 @@ declare namespace index$2 {
4133
4137
  interface APIOptions {
4134
4138
  /** Custom storage adapter (defaults to LocalStorageAdapter) */
4135
4139
  storage?: StorageAdapter;
4140
+ /** Custom HTTP client adapter (defaults to FetchAdapter) */
4141
+ httpClient?: HttpClientAdapter;
4136
4142
  /** Retry configuration for failed requests */
4137
4143
  retryConfig?: RetryConfig;
4138
4144
  /** Logger configuration */