@djangocfg/api 2.1.213 → 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 (225) 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/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts +2 -2
  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 → _api/generated}/cfg_accounts/CLAUDE.md +0 -0
  65. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts.ts +0 -0
  66. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts__auth.ts +0 -0
  67. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts__oauth.ts +0 -0
  68. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +0 -0
  69. package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/index.ts +0 -0
  70. package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts.ts +0 -0
  71. package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts__auth.ts +0 -0
  72. package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts__oauth.ts +0 -0
  73. package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/index.ts +0 -0
  74. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts +0 -0
  75. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts +0 -0
  76. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts +0 -0
  77. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthError.schema.ts +0 -0
  78. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts +0 -0
  79. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts +0 -0
  80. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts +0 -0
  81. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts +0 -0
  82. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts +0 -0
  83. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts +0 -0
  84. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts +0 -0
  85. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts +0 -0
  86. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts +0 -0
  87. package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/index.ts +0 -0
  88. package/src/{generated → _api/generated}/cfg_accounts/accounts/client.ts +0 -0
  89. package/src/{generated → _api/generated}/cfg_accounts/accounts/index.ts +0 -0
  90. package/src/{generated → _api/generated}/cfg_accounts/accounts/models.ts +20 -20
  91. package/src/{generated → _api/generated}/cfg_accounts/accounts__auth/client.ts +0 -0
  92. package/src/{generated → _api/generated}/cfg_accounts/accounts__auth/index.ts +0 -0
  93. package/src/{generated → _api/generated}/cfg_accounts/accounts__auth/models.ts +5 -5
  94. package/src/{generated → _api/generated}/cfg_accounts/accounts__oauth/client.ts +0 -0
  95. package/src/{generated → _api/generated}/cfg_accounts/accounts__oauth/index.ts +0 -0
  96. package/src/{generated → _api/generated}/cfg_accounts/accounts__user_profile/client.ts +0 -0
  97. package/src/{generated → _api/generated}/cfg_accounts/accounts__user_profile/index.ts +0 -0
  98. package/src/{generated → _api/generated}/cfg_accounts/accounts__user_profile/models.ts +12 -12
  99. package/src/{generated → _api/generated}/cfg_accounts/api-instance.ts +0 -0
  100. package/src/{generated → _api/generated}/cfg_accounts/client.ts +0 -0
  101. package/src/{generated → _api/generated}/cfg_accounts/enums.ts +0 -0
  102. package/src/{generated → _api/generated}/cfg_accounts/errors.ts +0 -0
  103. package/src/{generated → _api/generated}/cfg_accounts/logger.ts +0 -0
  104. package/src/{generated → _api/generated}/cfg_accounts/retry.ts +0 -0
  105. package/src/{generated → _api/generated}/cfg_accounts/schema.json +0 -0
  106. package/src/{generated → _api/generated}/cfg_accounts/storage.ts +0 -0
  107. package/src/{generated → _api/generated}/cfg_accounts/validation-events.ts +0 -0
  108. package/src/{generated → _api/generated}/cfg_centrifugo/CLAUDE.md +0 -0
  109. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +0 -0
  110. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts +0 -0
  111. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +0 -0
  112. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +0 -0
  113. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/index.ts +0 -0
  114. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +0 -0
  115. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts +0 -0
  116. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +0 -0
  117. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +0 -0
  118. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/index.ts +0 -0
  119. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts +0 -0
  120. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +0 -0
  121. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts +0 -0
  122. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts +0 -0
  123. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts +0 -0
  124. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts +0 -0
  125. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts +0 -0
  126. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +0 -0
  127. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts +0 -0
  128. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts +0 -0
  129. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts +0 -0
  130. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts +0 -0
  131. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts +0 -0
  132. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts +0 -0
  133. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts +0 -0
  134. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +0 -0
  135. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts +0 -0
  136. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts +0 -0
  137. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +0 -0
  138. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +0 -0
  139. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +0 -0
  140. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts +0 -0
  141. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts +0 -0
  142. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts +0 -0
  143. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts +0 -0
  144. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts +0 -0
  145. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts +0 -0
  146. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts +0 -0
  147. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts +0 -0
  148. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts +0 -0
  149. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/Publish.schema.ts +0 -0
  150. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts +0 -0
  151. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts +0 -0
  152. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts +0 -0
  153. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts +0 -0
  154. package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/index.ts +0 -0
  155. package/src/{generated → _api/generated}/cfg_centrifugo/api-instance.ts +0 -0
  156. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts +0 -0
  157. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +0 -0
  158. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +74 -74
  159. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts +0 -0
  160. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_auth/index.ts +0 -0
  161. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_auth/models.ts +0 -0
  162. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +0 -0
  163. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +61 -61
  164. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts +0 -0
  165. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +0 -0
  166. package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +25 -25
  167. package/src/{generated → _api/generated}/cfg_centrifugo/client.ts +0 -0
  168. package/src/{generated → _api/generated}/cfg_centrifugo/errors.ts +0 -0
  169. package/src/{generated → _api/generated}/cfg_centrifugo/logger.ts +0 -0
  170. package/src/{generated → _api/generated}/cfg_centrifugo/retry.ts +0 -0
  171. package/src/{generated → _api/generated}/cfg_centrifugo/schema.json +0 -0
  172. package/src/{generated → _api/generated}/cfg_centrifugo/storage.ts +0 -0
  173. package/src/{generated → _api/generated}/cfg_centrifugo/validation-events.ts +0 -0
  174. package/src/{generated → _api/generated}/cfg_totp/CLAUDE.md +0 -0
  175. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/index.ts +0 -0
  176. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp.ts +0 -0
  177. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__backup_codes.ts +0 -0
  178. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__totp_management.ts +0 -0
  179. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__totp_setup.ts +0 -0
  180. package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__totp_verification.ts +0 -0
  181. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/index.ts +0 -0
  182. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp.ts +0 -0
  183. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__backup_codes.ts +0 -0
  184. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__totp_management.ts +0 -0
  185. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__totp_setup.ts +0 -0
  186. package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__totp_verification.ts +0 -0
  187. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts +0 -0
  188. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts +0 -0
  189. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts +0 -0
  190. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts +0 -0
  191. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts +0 -0
  192. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/DeviceList.schema.ts +0 -0
  193. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/DeviceListResponse.schema.ts +0 -0
  194. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/DisableRequest.schema.ts +0 -0
  195. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts +0 -0
  196. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/SetupRequest.schema.ts +0 -0
  197. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/SetupResponse.schema.ts +0 -0
  198. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts +0 -0
  199. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/VerifyRequest.schema.ts +0 -0
  200. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/VerifyResponse.schema.ts +0 -0
  201. package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/index.ts +0 -0
  202. package/src/{generated → _api/generated}/cfg_totp/api-instance.ts +0 -0
  203. package/src/{generated → _api/generated}/cfg_totp/client.ts +0 -0
  204. package/src/{generated → _api/generated}/cfg_totp/enums.ts +0 -0
  205. package/src/{generated → _api/generated}/cfg_totp/errors.ts +0 -0
  206. package/src/{generated → _api/generated}/cfg_totp/logger.ts +0 -0
  207. package/src/{generated → _api/generated}/cfg_totp/retry.ts +0 -0
  208. package/src/{generated → _api/generated}/cfg_totp/schema.json +0 -0
  209. package/src/{generated → _api/generated}/cfg_totp/storage.ts +0 -0
  210. package/src/{generated → _api/generated}/cfg_totp/totp/client.ts +0 -0
  211. package/src/{generated → _api/generated}/cfg_totp/totp/index.ts +0 -0
  212. package/src/{generated → _api/generated}/cfg_totp/totp/models.ts +0 -0
  213. package/src/{generated → _api/generated}/cfg_totp/totp__backup_codes/client.ts +0 -0
  214. package/src/{generated → _api/generated}/cfg_totp/totp__backup_codes/index.ts +0 -0
  215. package/src/{generated → _api/generated}/cfg_totp/totp__backup_codes/models.ts +0 -0
  216. package/src/{generated → _api/generated}/cfg_totp/totp__totp_management/client.ts +0 -0
  217. package/src/{generated → _api/generated}/cfg_totp/totp__totp_management/index.ts +0 -0
  218. package/src/{generated → _api/generated}/cfg_totp/totp__totp_management/models.ts +0 -0
  219. package/src/{generated → _api/generated}/cfg_totp/totp__totp_setup/client.ts +0 -0
  220. package/src/{generated → _api/generated}/cfg_totp/totp__totp_setup/index.ts +0 -0
  221. package/src/{generated → _api/generated}/cfg_totp/totp__totp_setup/models.ts +23 -23
  222. package/src/{generated → _api/generated}/cfg_totp/totp__totp_verification/client.ts +0 -0
  223. package/src/{generated → _api/generated}/cfg_totp/totp__totp_verification/index.ts +0 -0
  224. package/src/{generated → _api/generated}/cfg_totp/totp__totp_verification/models.ts +12 -12
  225. /package/src/{generated → _api/generated}/cfg_totp/validation-events.ts +0 -0
@@ -1,23 +1,23 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
3
  /**
4
- * Request to list active channels.
4
+ * Request to get channel presence statistics.
5
5
  *
6
6
  * Request model (no read-only fields).
7
7
  */
8
- export interface CentrifugoChannelsRequestRequest {
9
- /** Pattern to filter channels (e.g., 'user:*') */
10
- pattern?: string | null;
8
+ export interface CentrifugoPresenceStatsRequestRequest {
9
+ /** Channel name */
10
+ channel: string;
11
11
  }
12
12
 
13
13
  /**
14
- * List of active channels response.
14
+ * Server info response.
15
15
  *
16
16
  * Response model (includes read-only fields).
17
17
  */
18
- export interface CentrifugoChannelsResponse {
18
+ export interface CentrifugoInfoResponse {
19
19
  error?: CentrifugoError | null;
20
- result?: CentrifugoChannelsResult | null;
20
+ result?: CentrifugoInfoResult | null;
21
21
  }
22
22
 
23
23
  /**
@@ -36,63 +36,73 @@ export interface CentrifugoHistoryRequestRequest {
36
36
  }
37
37
 
38
38
  /**
39
- * Channel history response.
39
+ * Request to list active channels.
40
+ *
41
+ * Request model (no read-only fields).
42
+ */
43
+ export interface CentrifugoChannelsRequestRequest {
44
+ /** Pattern to filter channels (e.g., 'user:*') */
45
+ pattern?: string | null;
46
+ }
47
+
48
+ /**
49
+ * Channel presence response.
40
50
  *
41
51
  * Response model (includes read-only fields).
42
52
  */
43
- export interface CentrifugoHistoryResponse {
53
+ export interface CentrifugoPresenceResponse {
44
54
  error?: CentrifugoError | null;
45
- result?: CentrifugoHistoryResult | null;
55
+ result?: CentrifugoPresenceResult | null;
46
56
  }
47
57
 
48
58
  /**
49
- * Server info response.
59
+ * Channel presence stats response.
50
60
  *
51
61
  * Response model (includes read-only fields).
52
62
  */
53
- export interface CentrifugoInfoResponse {
63
+ export interface CentrifugoPresenceStatsResponse {
54
64
  error?: CentrifugoError | null;
55
- result?: CentrifugoInfoResult | null;
65
+ result?: CentrifugoPresenceStatsResult | null;
56
66
  }
57
67
 
58
68
  /**
59
- * Request to get channel presence.
69
+ * Channel history response.
60
70
  *
61
- * Request model (no read-only fields).
71
+ * Response model (includes read-only fields).
62
72
  */
63
- export interface CentrifugoPresenceRequestRequest {
64
- /** Channel name */
65
- channel: string;
73
+ export interface CentrifugoHistoryResponse {
74
+ error?: CentrifugoError | null;
75
+ result?: CentrifugoHistoryResult | null;
66
76
  }
67
77
 
68
78
  /**
69
- * Channel presence response.
79
+ * List of active channels response.
70
80
  *
71
81
  * Response model (includes read-only fields).
72
82
  */
73
- export interface CentrifugoPresenceResponse {
83
+ export interface CentrifugoChannelsResponse {
74
84
  error?: CentrifugoError | null;
75
- result?: CentrifugoPresenceResult | null;
85
+ result?: CentrifugoChannelsResult | null;
76
86
  }
77
87
 
78
88
  /**
79
- * Request to get channel presence statistics.
89
+ * Request to get channel presence.
80
90
  *
81
91
  * Request model (no read-only fields).
82
92
  */
83
- export interface CentrifugoPresenceStatsRequestRequest {
93
+ export interface CentrifugoPresenceRequestRequest {
84
94
  /** Channel name */
85
95
  channel: string;
86
96
  }
87
97
 
88
98
  /**
89
- * Channel presence stats response.
99
+ * Info result wrapper.
90
100
  *
91
101
  * Response model (includes read-only fields).
92
102
  */
93
- export interface CentrifugoPresenceStatsResponse {
94
- error?: CentrifugoError | null;
95
- result?: CentrifugoPresenceStatsResult | null;
103
+ export interface CentrifugoInfoResult {
104
+ /** List of Centrifugo nodes */
105
+ nodes: Array<CentrifugoNodeInfo>;
96
106
  }
97
107
 
98
108
  /**
@@ -107,16 +117,6 @@ export interface CentrifugoError {
107
117
  message?: string;
108
118
  }
109
119
 
110
- /**
111
- * Channels result wrapper.
112
- *
113
- * Response model (includes read-only fields).
114
- */
115
- export interface CentrifugoChannelsResult {
116
- /** Map of channel names to channel info */
117
- channels: Record<string, CentrifugoChannelInfo>;
118
- }
119
-
120
120
  /**
121
121
  * Stream position for pagination.
122
122
  *
@@ -129,30 +129,6 @@ export interface CentrifugoStreamPosition {
129
129
  epoch: string;
130
130
  }
131
131
 
132
- /**
133
- * History result wrapper.
134
- *
135
- * Response model (includes read-only fields).
136
- */
137
- export interface CentrifugoHistoryResult {
138
- /** List of publications */
139
- publications: Array<CentrifugoPublication>;
140
- /** Current stream epoch */
141
- epoch: string;
142
- /** Latest stream offset */
143
- offset: number;
144
- }
145
-
146
- /**
147
- * Info result wrapper.
148
- *
149
- * Response model (includes read-only fields).
150
- */
151
- export interface CentrifugoInfoResult {
152
- /** List of Centrifugo nodes */
153
- nodes: Array<CentrifugoNodeInfo>;
154
- }
155
-
156
132
  /**
157
133
  * Presence result wrapper.
158
134
  *
@@ -176,28 +152,27 @@ export interface CentrifugoPresenceStatsResult {
176
152
  }
177
153
 
178
154
  /**
179
- * Information about a single channel.
155
+ * History result wrapper.
180
156
  *
181
157
  * Response model (includes read-only fields).
182
158
  */
183
- export interface CentrifugoChannelInfo {
184
- /** Number of connected clients in channel */
185
- num_clients: number;
159
+ export interface CentrifugoHistoryResult {
160
+ /** List of publications */
161
+ publications: Array<CentrifugoPublication>;
162
+ /** Current stream epoch */
163
+ epoch: string;
164
+ /** Latest stream offset */
165
+ offset: number;
186
166
  }
187
167
 
188
168
  /**
189
- * Single publication (message) in channel history.
169
+ * Channels result wrapper.
190
170
  *
191
171
  * Response model (includes read-only fields).
192
172
  */
193
- export interface CentrifugoPublication {
194
- /** Message payload */
195
- data: Record<string, any>;
196
- info?: CentrifugoClientInfo | null;
197
- /** Message offset in channel stream */
198
- offset: number;
199
- /** Optional message tags */
200
- tags?: Record<string, any> | null;
173
+ export interface CentrifugoChannelsResult {
174
+ /** Map of channel names to channel info */
175
+ channels: Record<string, CentrifugoChannelInfo>;
201
176
  }
202
177
 
203
178
  /**
@@ -242,6 +217,31 @@ export interface CentrifugoClientInfo {
242
217
  chan_info?: Record<string, any> | null;
243
218
  }
244
219
 
220
+ /**
221
+ * Single publication (message) in channel history.
222
+ *
223
+ * Response model (includes read-only fields).
224
+ */
225
+ export interface CentrifugoPublication {
226
+ /** Message payload */
227
+ data: Record<string, any>;
228
+ info?: CentrifugoClientInfo | null;
229
+ /** Message offset in channel stream */
230
+ offset: number;
231
+ /** Optional message tags */
232
+ tags?: Record<string, any> | null;
233
+ }
234
+
235
+ /**
236
+ * Information about a single channel.
237
+ *
238
+ * Response model (includes read-only fields).
239
+ */
240
+ export interface CentrifugoChannelInfo {
241
+ /** Number of connected clients in channel */
242
+ num_clients: number;
243
+ }
244
+
245
245
  /**
246
246
  * Server metrics.
247
247
  *
@@ -1,57 +1,5 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
- /**
4
- * List of channel statistics.
5
- *
6
- * Response model (includes read-only fields).
7
- */
8
- export interface ChannelList {
9
- /** Channel statistics */
10
- channels: Array<ChannelStats>;
11
- /** Total number of channels */
12
- total_channels: number;
13
- }
14
-
15
- /**
16
- * Health check response.
17
- *
18
- * Response model (includes read-only fields).
19
- */
20
- export interface CentrifugoHealthCheck {
21
- /** Health status: healthy or unhealthy */
22
- status: string;
23
- /** Configured wrapper URL */
24
- wrapper_url: string;
25
- /** Whether API key is configured */
26
- has_api_key: boolean;
27
- /** Current timestamp */
28
- timestamp: string;
29
- }
30
-
31
- /**
32
- * Overview statistics for Centrifugo publishes.
33
- *
34
- * Response model (includes read-only fields).
35
- */
36
- export interface CentrifugoOverviewStats {
37
- /** Total publishes in period */
38
- total: number;
39
- /** Successful publishes */
40
- successful: number;
41
- /** Failed publishes */
42
- failed: number;
43
- /** Timeout publishes */
44
- timeout: number;
45
- /** Success rate percentage */
46
- success_rate: number;
47
- /** Average duration in milliseconds */
48
- avg_duration_ms: number;
49
- /** Average ACKs received */
50
- avg_acks_received: number;
51
- /** Statistics period in hours */
52
- period_hours: number;
53
- }
54
-
55
3
  /**
56
4
  *
57
5
  * Response model (includes read-only fields).
@@ -89,25 +37,55 @@ export interface TimelineResponse {
89
37
  }
90
38
 
91
39
  /**
92
- * Statistics per channel.
40
+ * Health check response.
93
41
  *
94
42
  * Response model (includes read-only fields).
95
43
  */
96
- export interface ChannelStats {
97
- /** Channel name */
98
- channel: string;
99
- /** Total publishes to this channel */
44
+ export interface CentrifugoHealthCheck {
45
+ /** Health status: healthy or unhealthy */
46
+ status: string;
47
+ /** Configured wrapper URL */
48
+ wrapper_url: string;
49
+ /** Whether API key is configured */
50
+ has_api_key: boolean;
51
+ /** Current timestamp */
52
+ timestamp: string;
53
+ }
54
+
55
+ /**
56
+ * List of channel statistics.
57
+ *
58
+ * Response model (includes read-only fields).
59
+ */
60
+ export interface ChannelList {
61
+ /** Channel statistics */
62
+ channels: Array<ChannelStats>;
63
+ /** Total number of channels */
64
+ total_channels: number;
65
+ }
66
+
67
+ /**
68
+ * Overview statistics for Centrifugo publishes.
69
+ *
70
+ * Response model (includes read-only fields).
71
+ */
72
+ export interface CentrifugoOverviewStats {
73
+ /** Total publishes in period */
100
74
  total: number;
101
75
  /** Successful publishes */
102
76
  successful: number;
103
77
  /** Failed publishes */
104
78
  failed: number;
105
- /** Average duration */
79
+ /** Timeout publishes */
80
+ timeout: number;
81
+ /** Success rate percentage */
82
+ success_rate: number;
83
+ /** Average duration in milliseconds */
106
84
  avg_duration_ms: number;
107
85
  /** Average ACKs received */
108
- avg_acks: number;
109
- /** Last activity timestamp (ISO format) */
110
- last_activity_at: string | null;
86
+ avg_acks_received: number;
87
+ /** Statistics period in hours */
88
+ period_hours: number;
111
89
  }
112
90
 
113
91
  /**
@@ -142,3 +120,25 @@ export interface TimelineItem {
142
120
  timeout: number;
143
121
  }
144
122
 
123
+ /**
124
+ * Statistics per channel.
125
+ *
126
+ * Response model (includes read-only fields).
127
+ */
128
+ export interface ChannelStats {
129
+ /** Channel name */
130
+ channel: string;
131
+ /** Total publishes to this channel */
132
+ total: number;
133
+ /** Successful publishes */
134
+ successful: number;
135
+ /** Failed publishes */
136
+ failed: number;
137
+ /** Average duration */
138
+ avg_duration_ms: number;
139
+ /** Average ACKs received */
140
+ avg_acks: number;
141
+ /** Last activity timestamp (ISO format) */
142
+ last_activity_at: string | null;
143
+ }
144
+
@@ -1,21 +1,5 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
- /**
4
- * Request model for test message publishing.
5
- *
6
- * Request model (no read-only fields).
7
- */
8
- export interface PublishTestRequestRequest {
9
- /** Target channel name */
10
- channel: string;
11
- /** Message data (any JSON object) */
12
- data: Record<string, any>;
13
- /** Wait for client acknowledgment */
14
- wait_for_ack?: boolean;
15
- /** ACK timeout in seconds */
16
- ack_timeout?: number;
17
- }
18
-
19
3
  /**
20
4
  * Response model for test message publishing.
21
5
  *
@@ -36,6 +20,20 @@ export interface PublishTestResponse {
36
20
  error?: string | null;
37
21
  }
38
22
 
23
+ /**
24
+ * Response model for manual ACK.
25
+ *
26
+ * Response model (includes read-only fields).
27
+ */
28
+ export interface ManualAckResponse {
29
+ /** Whether ACK was sent successfully */
30
+ success: boolean;
31
+ /** Message ID that was acknowledged */
32
+ message_id: string;
33
+ /** Error message if failed */
34
+ error?: string | null;
35
+ }
36
+
39
37
  /**
40
38
  * Request model for manual ACK sending.
41
39
  *
@@ -49,16 +47,18 @@ export interface ManualAckRequestRequest {
49
47
  }
50
48
 
51
49
  /**
52
- * Response model for manual ACK.
50
+ * Request model for test message publishing.
53
51
  *
54
- * Response model (includes read-only fields).
52
+ * Request model (no read-only fields).
55
53
  */
56
- export interface ManualAckResponse {
57
- /** Whether ACK was sent successfully */
58
- success: boolean;
59
- /** Message ID that was acknowledged */
60
- message_id: string;
61
- /** Error message if failed */
62
- error?: string | null;
54
+ export interface PublishTestRequestRequest {
55
+ /** Target channel name */
56
+ channel: string;
57
+ /** Message data (any JSON object) */
58
+ data: Record<string, any>;
59
+ /** Wait for client acknowledgment */
60
+ wait_for_ack?: boolean;
61
+ /** ACK timeout in seconds */
62
+ ack_timeout?: number;
63
63
  }
64
64