@djangocfg/api 2.1.36 → 2.1.37

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 (367) hide show
  1. package/dist/auth.cjs +3007 -4015
  2. package/dist/auth.cjs.map +1 -1
  3. package/dist/auth.mjs +3007 -4015
  4. package/dist/auth.mjs.map +1 -1
  5. package/dist/clients.cjs +4983 -0
  6. package/dist/clients.cjs.map +1 -0
  7. package/dist/clients.d.cts +4135 -0
  8. package/dist/clients.d.ts +4135 -0
  9. package/dist/clients.mjs +4957 -0
  10. package/dist/clients.mjs.map +1 -0
  11. package/dist/hooks.cjs +1083 -0
  12. package/dist/hooks.cjs.map +1 -1
  13. package/dist/hooks.d.cts +1122 -1
  14. package/dist/hooks.d.ts +1122 -1
  15. package/dist/hooks.mjs +1053 -0
  16. package/dist/hooks.mjs.map +1 -1
  17. package/dist/index.cjs +2888 -7848
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +1867 -9643
  20. package/dist/index.d.ts +1867 -9643
  21. package/dist/index.mjs +2891 -7851
  22. package/dist/index.mjs.map +1 -1
  23. package/package.json +8 -3
  24. package/src/auth/hooks/useGithubAuth.ts +3 -3
  25. package/src/clients.ts +57 -0
  26. package/src/generated/cfg_accounts/_utils/fetchers/{cfg_accounts__accounts.ts → accounts.ts} +10 -2
  27. package/src/generated/cfg_accounts/_utils/fetchers/{cfg_accounts__accounts__auth.ts → accounts__auth.ts} +9 -1
  28. package/src/generated/cfg_accounts/_utils/fetchers/{cfg_accounts__accounts__oauth.ts → accounts__oauth.ts} +13 -5
  29. package/src/generated/cfg_accounts/_utils/fetchers/{cfg_accounts__accounts__user_profile.ts → accounts__user_profile.ts} +14 -6
  30. package/src/generated/cfg_accounts/_utils/fetchers/index.ts +12 -29
  31. package/src/generated/cfg_accounts/_utils/hooks/{cfg_accounts__accounts.ts → accounts.ts} +9 -1
  32. package/src/generated/cfg_accounts/_utils/hooks/{cfg_accounts__accounts__auth.ts → accounts__auth.ts} +9 -1
  33. package/src/generated/cfg_accounts/_utils/hooks/{cfg_accounts__accounts__oauth.ts → accounts__oauth.ts} +9 -1
  34. package/src/generated/cfg_accounts/_utils/hooks/{cfg_accounts__accounts__user_profile.ts → accounts__user_profile.ts} +9 -1
  35. package/src/generated/cfg_accounts/_utils/hooks/index.ts +12 -29
  36. package/src/generated/cfg_accounts/_utils/schemas/index.ts +8 -134
  37. package/src/generated/cfg_accounts/{cfg_accounts__accounts → accounts}/client.ts +1 -1
  38. package/src/generated/cfg_accounts/accounts/index.ts +10 -0
  39. package/src/generated/cfg_accounts/{cfg_accounts__accounts → accounts}/models.ts +8 -0
  40. package/src/generated/cfg_accounts/{cfg_accounts__accounts__auth → accounts__auth}/client.ts +1 -1
  41. package/src/generated/cfg_accounts/accounts__auth/index.ts +10 -0
  42. package/src/generated/cfg_accounts/accounts__auth/models.ts +25 -0
  43. package/src/generated/cfg_accounts/{cfg_accounts__accounts__oauth → accounts__oauth}/client.ts +1 -1
  44. package/src/generated/cfg_accounts/accounts__oauth/index.ts +10 -0
  45. package/src/generated/cfg_accounts/{cfg_accounts__accounts__oauth → accounts__oauth}/models.ts +8 -0
  46. package/src/generated/cfg_accounts/{cfg_accounts__accounts__user_profile → accounts__user_profile}/client.ts +1 -1
  47. package/src/generated/cfg_accounts/accounts__user_profile/index.ts +10 -0
  48. package/src/generated/cfg_accounts/{cfg_accounts__accounts__user_profile → accounts__user_profile}/models.ts +8 -0
  49. package/src/generated/cfg_accounts/api-instance.ts +8 -0
  50. package/src/generated/cfg_accounts/client.ts +12 -87
  51. package/src/generated/cfg_accounts/enums.ts +8 -96
  52. package/src/generated/cfg_accounts/errors.ts +8 -0
  53. package/src/generated/cfg_accounts/http.ts +8 -0
  54. package/src/generated/cfg_accounts/index.ts +28 -195
  55. package/src/generated/cfg_accounts/logger.ts +8 -0
  56. package/src/generated/cfg_accounts/retry.ts +8 -0
  57. package/src/generated/cfg_accounts/schema.json +246 -10265
  58. package/src/generated/cfg_accounts/storage.ts +8 -0
  59. package/src/generated/cfg_accounts/validation-events.ts +8 -0
  60. package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__centrifugo__centrifugo_admin_api.ts → cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts} +14 -6
  61. package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__centrifugo__centrifugo_auth.ts → cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts} +9 -1
  62. package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__centrifugo__centrifugo_monitoring.ts → cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts} +13 -5
  63. package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__centrifugo__centrifugo_testing.ts → cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts} +11 -3
  64. package/src/generated/cfg_centrifugo/_utils/fetchers/index.ts +39 -0
  65. package/src/generated/{cfg_accounts/_utils/hooks/cfg_accounts__centrifugo__centrifugo_admin_api.ts → cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts} +9 -1
  66. package/src/generated/{cfg_accounts/_utils/hooks/cfg_accounts__centrifugo__centrifugo_auth.ts → cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts} +9 -1
  67. package/src/generated/{cfg_accounts/_utils/hooks/cfg_accounts__centrifugo__centrifugo_monitoring.ts → cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts} +9 -1
  68. package/src/generated/{cfg_accounts/_utils/hooks/cfg_accounts__centrifugo__centrifugo_testing.ts → cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts} +9 -1
  69. package/src/generated/cfg_centrifugo/_utils/hooks/index.ts +39 -0
  70. package/src/generated/cfg_centrifugo/_utils/schemas/index.ts +61 -0
  71. package/src/generated/cfg_centrifugo/api-instance.ts +139 -0
  72. package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_admin_api → cfg_centrifugo/centrifugo__centrifugo_admin_api}/client.ts +1 -1
  73. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +10 -0
  74. package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_admin_api → cfg_centrifugo/centrifugo__centrifugo_admin_api}/models.ts +8 -0
  75. package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_auth → cfg_centrifugo/centrifugo__centrifugo_auth}/client.ts +1 -1
  76. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/index.ts +10 -0
  77. package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_auth → cfg_centrifugo/centrifugo__centrifugo_auth}/models.ts +8 -0
  78. package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_monitoring → cfg_centrifugo/centrifugo__centrifugo_monitoring}/client.ts +1 -1
  79. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +10 -0
  80. package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_monitoring → cfg_centrifugo/centrifugo__centrifugo_monitoring}/models.ts +8 -0
  81. package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_testing → cfg_centrifugo/centrifugo__centrifugo_testing}/client.ts +1 -1
  82. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +10 -0
  83. package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_testing → cfg_centrifugo/centrifugo__centrifugo_testing}/models.ts +8 -0
  84. package/src/generated/cfg_centrifugo/client.ts +310 -0
  85. package/src/generated/cfg_centrifugo/errors.ts +124 -0
  86. package/src/generated/cfg_centrifugo/http.ts +111 -0
  87. package/src/generated/cfg_centrifugo/index.ts +301 -0
  88. package/src/generated/cfg_centrifugo/logger.ts +267 -0
  89. package/src/generated/cfg_centrifugo/retry.ts +183 -0
  90. package/src/generated/cfg_centrifugo/schema.json +2123 -0
  91. package/src/generated/cfg_centrifugo/storage.ts +169 -0
  92. package/src/generated/cfg_centrifugo/validation-events.ts +141 -0
  93. package/src/generated/cfg_webpush/_utils/fetchers/index.ts +36 -0
  94. package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__grpc__grpc_api_keys.ts → cfg_webpush/_utils/fetchers/webpush__web_push.ts} +45 -35
  95. package/src/generated/cfg_webpush/_utils/hooks/index.ts +36 -0
  96. package/src/generated/cfg_webpush/_utils/hooks/webpush__web_push.ts +86 -0
  97. package/src/generated/cfg_webpush/_utils/schemas/SendPushRequestRequest.schema.ts +22 -0
  98. package/src/generated/cfg_webpush/_utils/schemas/SendPushResponse.schema.ts +20 -0
  99. package/src/generated/cfg_webpush/_utils/schemas/SubscribeRequestRequest.schema.ts +20 -0
  100. package/src/generated/cfg_webpush/_utils/schemas/SubscribeResponse.schema.ts +21 -0
  101. package/src/generated/cfg_webpush/_utils/schemas/VapidPublicKeyResponse.schema.ts +19 -0
  102. package/src/generated/cfg_webpush/_utils/schemas/index.ts +31 -0
  103. package/src/generated/cfg_webpush/api-instance.ts +139 -0
  104. package/src/generated/cfg_webpush/client.ts +301 -0
  105. package/src/generated/cfg_webpush/errors.ts +124 -0
  106. package/src/generated/cfg_webpush/http.ts +111 -0
  107. package/src/generated/cfg_webpush/index.ts +280 -0
  108. package/src/generated/cfg_webpush/logger.ts +267 -0
  109. package/src/generated/cfg_webpush/retry.ts +183 -0
  110. package/src/generated/cfg_webpush/schema.json +302 -0
  111. package/src/generated/cfg_webpush/storage.ts +169 -0
  112. package/src/generated/cfg_webpush/validation-events.ts +141 -0
  113. package/src/generated/cfg_webpush/webpush__web_push/client.ts +45 -0
  114. package/src/generated/cfg_webpush/webpush__web_push/index.ts +10 -0
  115. package/src/generated/cfg_webpush/webpush__web_push/models.ts +72 -0
  116. package/src/hooks/accounts.ts +8 -0
  117. package/src/hooks/index.ts +10 -0
  118. package/src/hooks/webpush.ts +12 -0
  119. package/src/index.ts +11 -0
  120. package/src/server.ts +5 -8
  121. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_activity.ts +0 -62
  122. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_api_zones.ts +0 -106
  123. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_charts.ts +0 -177
  124. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_commands.ts +0 -179
  125. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_config.ts +0 -92
  126. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_overview.ts +0 -92
  127. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_statistics.ts +0 -120
  128. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_system.ts +0 -150
  129. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__endpoints.ts +0 -164
  130. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__grpc__grpc_configuration.ts +0 -150
  131. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__grpc__grpc_monitoring.ts +0 -280
  132. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__grpc__grpc_services.ts +0 -208
  133. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__health.ts +0 -150
  134. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_jobs.ts +0 -323
  135. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_monitoring.ts +0 -164
  136. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_queues.ts +0 -134
  137. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_registries.ts +0 -436
  138. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_schedules.ts +0 -266
  139. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_testing.ts +0 -293
  140. package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_workers.ts +0 -106
  141. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_activity.ts +0 -50
  142. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_api_zones.ts +0 -51
  143. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_charts.ts +0 -79
  144. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_commands.ts +0 -86
  145. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_config.ts +0 -37
  146. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_overview.ts +0 -37
  147. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_statistics.ts +0 -65
  148. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_system.ts +0 -52
  149. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__endpoints.ts +0 -66
  150. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__grpc__grpc_api_keys.ts +0 -67
  151. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__grpc__grpc_configuration.ts +0 -52
  152. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__grpc__grpc_monitoring.ts +0 -96
  153. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__grpc__grpc_services.ts +0 -67
  154. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__health.ts +0 -52
  155. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_jobs.ts +0 -110
  156. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_monitoring.ts +0 -66
  157. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_queues.ts +0 -84
  158. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_registries.ts +0 -136
  159. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_schedules.ts +0 -92
  160. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_testing.ts +0 -126
  161. package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_workers.ts +0 -51
  162. package/src/generated/cfg_accounts/_utils/schemas/APIZone.schema.ts +0 -29
  163. package/src/generated/cfg_accounts/_utils/schemas/APIZonesSummary.schema.ts +0 -22
  164. package/src/generated/cfg_accounts/_utils/schemas/ActivityEntry.schema.ts +0 -25
  165. package/src/generated/cfg_accounts/_utils/schemas/ActivityTrackerDay.schema.ts +0 -23
  166. package/src/generated/cfg_accounts/_utils/schemas/ApiKey.schema.ts +0 -30
  167. package/src/generated/cfg_accounts/_utils/schemas/ApiKeyStats.schema.ts +0 -22
  168. package/src/generated/cfg_accounts/_utils/schemas/AppStatistics.schema.ts +0 -21
  169. package/src/generated/cfg_accounts/_utils/schemas/AppStatisticsData.schema.ts +0 -23
  170. package/src/generated/cfg_accounts/_utils/schemas/AxesConfig.schema.ts +0 -35
  171. package/src/generated/cfg_accounts/_utils/schemas/CentrifugoConfig.schema.ts +0 -35
  172. package/src/generated/cfg_accounts/_utils/schemas/ChartData.schema.ts +0 -21
  173. package/src/generated/cfg_accounts/_utils/schemas/ChartDataset.schema.ts +0 -24
  174. package/src/generated/cfg_accounts/_utils/schemas/Command.schema.ts +0 -38
  175. package/src/generated/cfg_accounts/_utils/schemas/CommandCategory.schema.ts +0 -21
  176. package/src/generated/cfg_accounts/_utils/schemas/CommandExecuteRequestRequest.schema.ts +0 -21
  177. package/src/generated/cfg_accounts/_utils/schemas/CommandHelpResponse.schema.ts +0 -25
  178. package/src/generated/cfg_accounts/_utils/schemas/CommandsSummary.schema.ts +0 -26
  179. package/src/generated/cfg_accounts/_utils/schemas/ConfigData.schema.ts +0 -27
  180. package/src/generated/cfg_accounts/_utils/schemas/ConfigMeta.schema.ts +0 -20
  181. package/src/generated/cfg_accounts/_utils/schemas/ConfigValidation.schema.ts +0 -24
  182. package/src/generated/cfg_accounts/_utils/schemas/ConstanceConfig.schema.ts +0 -24
  183. package/src/generated/cfg_accounts/_utils/schemas/DRFConfig.schema.ts +0 -20
  184. package/src/generated/cfg_accounts/_utils/schemas/DRFHealthCheck.schema.ts +0 -25
  185. package/src/generated/cfg_accounts/_utils/schemas/DashboardOverview.schema.ts +0 -35
  186. package/src/generated/cfg_accounts/_utils/schemas/DatabaseConfig.schema.ts +0 -31
  187. package/src/generated/cfg_accounts/_utils/schemas/DjangoConfig.schema.ts +0 -93
  188. package/src/generated/cfg_accounts/_utils/schemas/DjangoRQConfig.schema.ts +0 -27
  189. package/src/generated/cfg_accounts/_utils/schemas/EmailConfig.schema.ts +0 -28
  190. package/src/generated/cfg_accounts/_utils/schemas/Endpoint.schema.ts +0 -35
  191. package/src/generated/cfg_accounts/_utils/schemas/EndpointsStatus.schema.ts +0 -28
  192. package/src/generated/cfg_accounts/_utils/schemas/GRPCConfig.schema.ts +0 -26
  193. package/src/generated/cfg_accounts/_utils/schemas/GRPCConfigDashboard.schema.ts +0 -33
  194. package/src/generated/cfg_accounts/_utils/schemas/GRPCFeatures.schema.ts +0 -22
  195. package/src/generated/cfg_accounts/_utils/schemas/GRPCFrameworkConfig.schema.ts +0 -22
  196. package/src/generated/cfg_accounts/_utils/schemas/GRPCHealthCheck.schema.ts +0 -23
  197. package/src/generated/cfg_accounts/_utils/schemas/GRPCInterceptorInfo.schema.ts +0 -20
  198. package/src/generated/cfg_accounts/_utils/schemas/GRPCOverviewStats.schema.ts +0 -29
  199. package/src/generated/cfg_accounts/_utils/schemas/GRPCRegisteredService.schema.ts +0 -24
  200. package/src/generated/cfg_accounts/_utils/schemas/GRPCServerConfig.schema.ts +0 -23
  201. package/src/generated/cfg_accounts/_utils/schemas/GRPCServerInfo.schema.ts +0 -28
  202. package/src/generated/cfg_accounts/_utils/schemas/GRPCServerStatus.schema.ts +0 -30
  203. package/src/generated/cfg_accounts/_utils/schemas/GRPCServiceInfo.schema.ts +0 -22
  204. package/src/generated/cfg_accounts/_utils/schemas/GRPCServiceRegistryMethodStats.schema.ts +0 -26
  205. package/src/generated/cfg_accounts/_utils/schemas/GRPCStats.schema.ts +0 -21
  206. package/src/generated/cfg_accounts/_utils/schemas/GitHubOAuthConfig.schema.ts +0 -30
  207. package/src/generated/cfg_accounts/_utils/schemas/JWTConfig.schema.ts +0 -21
  208. package/src/generated/cfg_accounts/_utils/schemas/JobActionResponse.schema.ts +0 -26
  209. package/src/generated/cfg_accounts/_utils/schemas/JobDetail.schema.ts +0 -40
  210. package/src/generated/cfg_accounts/_utils/schemas/JobList.schema.ts +0 -28
  211. package/src/generated/cfg_accounts/_utils/schemas/JobListRequest.schema.ts +0 -28
  212. package/src/generated/cfg_accounts/_utils/schemas/MethodInfo.schema.ts +0 -24
  213. package/src/generated/cfg_accounts/_utils/schemas/MethodList.schema.ts +0 -21
  214. package/src/generated/cfg_accounts/_utils/schemas/MethodSummary.schema.ts +0 -25
  215. package/src/generated/cfg_accounts/_utils/schemas/ModelStatistics.schema.ts +0 -23
  216. package/src/generated/cfg_accounts/_utils/schemas/NextJSAdminConfig.schema.ts +0 -21
  217. package/src/generated/cfg_accounts/_utils/schemas/NgrokConfig.schema.ts +0 -22
  218. package/src/generated/cfg_accounts/_utils/schemas/OpenAPIClientConfig.schema.ts +0 -26
  219. package/src/generated/cfg_accounts/_utils/schemas/PaginatedApiKeyList.schema.ts +0 -24
  220. package/src/generated/cfg_accounts/_utils/schemas/PaginatedJobListList.schema.ts +0 -24
  221. package/src/generated/cfg_accounts/_utils/schemas/PaginatedRecentRequestList.schema.ts +0 -24
  222. package/src/generated/cfg_accounts/_utils/schemas/PaginatedScheduledJobList.schema.ts +0 -24
  223. package/src/generated/cfg_accounts/_utils/schemas/PaginatedServiceSummaryList.schema.ts +0 -24
  224. package/src/generated/cfg_accounts/_utils/schemas/PaymentsConfig.schema.ts +0 -21
  225. package/src/generated/cfg_accounts/_utils/schemas/PaymentsNowPayments.schema.ts +0 -22
  226. package/src/generated/cfg_accounts/_utils/schemas/QueueDetail.schema.ts +0 -34
  227. package/src/generated/cfg_accounts/_utils/schemas/QueueStats.schema.ts +0 -31
  228. package/src/generated/cfg_accounts/_utils/schemas/QuickAction.schema.ts +0 -29
  229. package/src/generated/cfg_accounts/_utils/schemas/QuickHealth.schema.ts +0 -21
  230. package/src/generated/cfg_accounts/_utils/schemas/RQConfig.schema.ts +0 -30
  231. package/src/generated/cfg_accounts/_utils/schemas/RQHealthCheck.schema.ts +0 -31
  232. package/src/generated/cfg_accounts/_utils/schemas/RQSchedule.schema.ts +0 -26
  233. package/src/generated/cfg_accounts/_utils/schemas/RecentError.schema.ts +0 -22
  234. package/src/generated/cfg_accounts/_utils/schemas/RecentRequest.schema.ts +0 -33
  235. package/src/generated/cfg_accounts/_utils/schemas/RecentUser.schema.ts +0 -26
  236. package/src/generated/cfg_accounts/_utils/schemas/RedisQueueConfig.schema.ts +0 -29
  237. package/src/generated/cfg_accounts/_utils/schemas/RunDemoRequestRequest.schema.ts +0 -24
  238. package/src/generated/cfg_accounts/_utils/schemas/ScheduleActionResponse.schema.ts +0 -22
  239. package/src/generated/cfg_accounts/_utils/schemas/ScheduleCreateRequest.schema.ts +0 -39
  240. package/src/generated/cfg_accounts/_utils/schemas/ScheduleInfo.schema.ts +0 -27
  241. package/src/generated/cfg_accounts/_utils/schemas/ScheduledJob.schema.ts +0 -32
  242. package/src/generated/cfg_accounts/_utils/schemas/ServiceDetail.schema.ts +0 -31
  243. package/src/generated/cfg_accounts/_utils/schemas/ServiceMethods.schema.ts +0 -22
  244. package/src/generated/cfg_accounts/_utils/schemas/ServiceStats.schema.ts +0 -24
  245. package/src/generated/cfg_accounts/_utils/schemas/ServiceSummary.schema.ts +0 -26
  246. package/src/generated/cfg_accounts/_utils/schemas/SpectacularConfig.schema.ts +0 -21
  247. package/src/generated/cfg_accounts/_utils/schemas/StatCard.schema.ts +0 -30
  248. package/src/generated/cfg_accounts/_utils/schemas/StressTestRequestRequest.schema.ts +0 -23
  249. package/src/generated/cfg_accounts/_utils/schemas/SystemHealth.schema.ts +0 -24
  250. package/src/generated/cfg_accounts/_utils/schemas/SystemHealthItem.schema.ts +0 -28
  251. package/src/generated/cfg_accounts/_utils/schemas/SystemMetrics.schema.ts +0 -25
  252. package/src/generated/cfg_accounts/_utils/schemas/TelegramConfig.schema.ts +0 -28
  253. package/src/generated/cfg_accounts/_utils/schemas/TestScenario.schema.ts +0 -25
  254. package/src/generated/cfg_accounts/_utils/schemas/TestingActionResponse.schema.ts +0 -23
  255. package/src/generated/cfg_accounts/_utils/schemas/URLPattern.schema.ts +0 -26
  256. package/src/generated/cfg_accounts/_utils/schemas/URLsList.schema.ts +0 -25
  257. package/src/generated/cfg_accounts/_utils/schemas/UserStatistics.schema.ts +0 -22
  258. package/src/generated/cfg_accounts/_utils/schemas/Worker.schema.ts +0 -31
  259. package/src/generated/cfg_accounts/_utils/schemas/WorkerStats.schema.ts +0 -31
  260. package/src/generated/cfg_accounts/_utils/schemas/ZonesSummaryStats.schema.ts +0 -21
  261. package/src/generated/cfg_accounts/cfg_accounts__accounts/index.ts +0 -2
  262. package/src/generated/cfg_accounts/cfg_accounts__accounts__auth/index.ts +0 -2
  263. package/src/generated/cfg_accounts/cfg_accounts__accounts__auth/models.ts +0 -17
  264. package/src/generated/cfg_accounts/cfg_accounts__accounts__oauth/index.ts +0 -2
  265. package/src/generated/cfg_accounts/cfg_accounts__accounts__user_profile/index.ts +0 -2
  266. package/src/generated/cfg_accounts/cfg_accounts__centrifugo__centrifugo_admin_api/index.ts +0 -2
  267. package/src/generated/cfg_accounts/cfg_accounts__centrifugo__centrifugo_auth/index.ts +0 -2
  268. package/src/generated/cfg_accounts/cfg_accounts__centrifugo__centrifugo_monitoring/index.ts +0 -2
  269. package/src/generated/cfg_accounts/cfg_accounts__centrifugo__centrifugo_testing/index.ts +0 -2
  270. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_activity/client.ts +0 -45
  271. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_activity/index.ts +0 -2
  272. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_activity/models.ts +0 -0
  273. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_api_zones/client.ts +0 -34
  274. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_api_zones/index.ts +0 -2
  275. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_api_zones/models.ts +0 -40
  276. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_charts/client.ts +0 -98
  277. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_charts/index.ts +0 -2
  278. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_charts/models.ts +0 -24
  279. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_commands/client.ts +0 -55
  280. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_commands/index.ts +0 -2
  281. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_commands/models.ts +0 -80
  282. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_config/client.ts +0 -25
  283. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_config/index.ts +0 -2
  284. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_config/models.ts +0 -412
  285. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_overview/client.ts +0 -25
  286. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_overview/index.ts +0 -2
  287. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_overview/models.ts +0 -228
  288. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_statistics/client.ts +0 -44
  289. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_statistics/index.ts +0 -2
  290. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_statistics/models.ts +0 -16
  291. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_system/client.ts +0 -34
  292. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_system/index.ts +0 -2
  293. package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_system/models.ts +0 -69
  294. package/src/generated/cfg_accounts/cfg_accounts__endpoints/client.ts +0 -42
  295. package/src/generated/cfg_accounts/cfg_accounts__endpoints/index.ts +0 -2
  296. package/src/generated/cfg_accounts/cfg_accounts__endpoints/models.ts +0 -112
  297. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_api_keys/client.ts +0 -56
  298. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_api_keys/index.ts +0 -2
  299. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_api_keys/models.ts +0 -73
  300. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_configuration/client.ts +0 -35
  301. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_configuration/index.ts +0 -2
  302. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_configuration/models.ts +0 -128
  303. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_monitoring/client.ts +0 -109
  304. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_monitoring/index.ts +0 -2
  305. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_monitoring/models.ts +0 -213
  306. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_services/client.ts +0 -56
  307. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_services/index.ts +0 -2
  308. package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_services/models.ts +0 -189
  309. package/src/generated/cfg_accounts/cfg_accounts__health/client.ts +0 -30
  310. package/src/generated/cfg_accounts/cfg_accounts__health/index.ts +0 -2
  311. package/src/generated/cfg_accounts/cfg_accounts__health/models.ts +0 -36
  312. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_jobs/client.ts +0 -76
  313. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_jobs/index.ts +0 -2
  314. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_jobs/models.ts +0 -127
  315. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_monitoring/client.ts +0 -45
  316. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_monitoring/index.ts +0 -2
  317. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_monitoring/models.ts +0 -66
  318. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_queues/client.ts +0 -78
  319. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_queues/index.ts +0 -2
  320. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_queues/models.ts +0 -33
  321. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_registries/client.ts +0 -164
  322. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_registries/index.ts +0 -2
  323. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_registries/models.ts +0 -82
  324. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_schedules/client.ts +0 -91
  325. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_schedules/index.ts +0 -2
  326. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_schedules/models.ts +0 -109
  327. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_testing/client.ts +0 -96
  328. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_testing/index.ts +0 -2
  329. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_testing/models.ts +0 -68
  330. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_workers/client.ts +0 -46
  331. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_workers/index.ts +0 -2
  332. package/src/generated/cfg_accounts/cfg_accounts__rq__rq_workers/models.ts +0 -52
  333. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoChannelInfo.schema.ts +0 -0
  334. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +0 -0
  335. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoChannelsResponse.schema.ts +0 -0
  336. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoChannelsResult.schema.ts +0 -0
  337. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoClientInfo.schema.ts +0 -0
  338. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoError.schema.ts +0 -0
  339. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoHealthCheck.schema.ts +0 -0
  340. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +0 -0
  341. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoHistoryResponse.schema.ts +0 -0
  342. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoHistoryResult.schema.ts +0 -0
  343. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoInfoResponse.schema.ts +0 -0
  344. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoInfoResult.schema.ts +0 -0
  345. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoMetrics.schema.ts +0 -0
  346. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoNodeInfo.schema.ts +0 -0
  347. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoOverviewStats.schema.ts +0 -0
  348. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +0 -0
  349. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceResponse.schema.ts +0 -0
  350. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceResult.schema.ts +0 -0
  351. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +0 -0
  352. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +0 -0
  353. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +0 -0
  354. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoProcess.schema.ts +0 -0
  355. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPublication.schema.ts +0 -0
  356. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoStreamPosition.schema.ts +0 -0
  357. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ChannelList.schema.ts +0 -0
  358. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ChannelStats.schema.ts +0 -0
  359. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ConnectionTokenResponse.schema.ts +0 -0
  360. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ManualAckRequestRequest.schema.ts +0 -0
  361. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ManualAckResponse.schema.ts +0 -0
  362. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/PaginatedPublishList.schema.ts +0 -0
  363. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/Publish.schema.ts +0 -0
  364. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/PublishTestRequestRequest.schema.ts +0 -0
  365. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/PublishTestResponse.schema.ts +0 -0
  366. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/TimelineItem.schema.ts +0 -0
  367. /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/TimelineResponse.schema.ts +0 -0
@@ -0,0 +1,4135 @@
1
+ import { ConsolaInstance } from 'consola';
2
+ import { z } from 'zod';
3
+ import useSWR from 'swr';
4
+
5
+ /**
6
+ * AUTO-GENERATED FILE - DO NOT EDIT
7
+ *
8
+ * This file is automatically generated by DjangoCFG.
9
+ * Any manual changes will be lost when the code is regenerated.
10
+ *
11
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
12
+ */
13
+ /**
14
+ *
15
+ * Request model (no read-only fields).
16
+ */
17
+ interface TokenRefreshRequest$1 {
18
+ refresh: string;
19
+ }
20
+ /**
21
+ *
22
+ * Response model (includes read-only fields).
23
+ */
24
+ interface TokenRefresh$1 {
25
+ access: string;
26
+ refresh: string;
27
+ }
28
+
29
+ /**
30
+ * API endpoints for Auth.
31
+ */
32
+ declare class Auth {
33
+ private client;
34
+ constructor(client: any);
35
+ /**
36
+ * Refresh JWT token.
37
+ */
38
+ accountsTokenRefreshCreate(data: TokenRefreshRequest$1): Promise<TokenRefresh$1>;
39
+ }
40
+
41
+ /**
42
+ * AUTO-GENERATED FILE - DO NOT EDIT
43
+ *
44
+ * This file is automatically generated by DjangoCFG.
45
+ * Any manual changes will be lost when the code is regenerated.
46
+ *
47
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
48
+ */
49
+ /**
50
+ * OAuth provider name (github, google, etc.)
51
+ * * `github` - GitHub
52
+ */
53
+ declare enum OAuthConnectionProvider {
54
+ GITHUB = "github"
55
+ }
56
+ /**
57
+ * OAuth provider to disconnect
58
+ * * `github` - GitHub
59
+ */
60
+ declare enum OAuthDisconnectRequestRequestProvider {
61
+ GITHUB = "github"
62
+ }
63
+ /**
64
+ * Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
65
+ * * `email` - Email
66
+ * * `phone` - Phone
67
+ */
68
+ declare enum OTPRequestRequestChannel {
69
+ EMAIL = "email",
70
+ PHONE = "phone"
71
+ }
72
+ /**
73
+ * Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
74
+ * * `email` - Email
75
+ * * `phone` - Phone
76
+ */
77
+ declare enum OTPVerifyRequestChannel {
78
+ EMAIL = "email",
79
+ PHONE = "phone"
80
+ }
81
+
82
+ type enums_OAuthConnectionProvider = OAuthConnectionProvider;
83
+ declare const enums_OAuthConnectionProvider: typeof OAuthConnectionProvider;
84
+ type enums_OAuthDisconnectRequestRequestProvider = OAuthDisconnectRequestRequestProvider;
85
+ declare const enums_OAuthDisconnectRequestRequestProvider: typeof OAuthDisconnectRequestRequestProvider;
86
+ type enums_OTPRequestRequestChannel = OTPRequestRequestChannel;
87
+ declare const enums_OTPRequestRequestChannel: typeof OTPRequestRequestChannel;
88
+ type enums_OTPVerifyRequestChannel = OTPVerifyRequestChannel;
89
+ declare const enums_OTPVerifyRequestChannel: typeof OTPVerifyRequestChannel;
90
+ declare namespace enums {
91
+ export { enums_OAuthConnectionProvider as OAuthConnectionProvider, enums_OAuthDisconnectRequestRequestProvider as OAuthDisconnectRequestRequestProvider, enums_OTPRequestRequestChannel as OTPRequestRequestChannel, enums_OTPVerifyRequestChannel as OTPVerifyRequestChannel };
92
+ }
93
+
94
+ /**
95
+ * AUTO-GENERATED FILE - DO NOT EDIT
96
+ *
97
+ * This file is automatically generated by DjangoCFG.
98
+ * Any manual changes will be lost when the code is regenerated.
99
+ *
100
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
101
+ */
102
+
103
+ /**
104
+ * Request to disconnect OAuth provider.
105
+ *
106
+ * Request model (no read-only fields).
107
+ */
108
+ interface OAuthDisconnectRequestRequest$1 {
109
+ /** OAuth provider to disconnect
110
+
111
+ * `github` - GitHub */
112
+ provider: OAuthDisconnectRequestRequestProvider;
113
+ }
114
+ /**
115
+ * Request to start OAuth flow.
116
+ *
117
+ * Request model (no read-only fields).
118
+ */
119
+ interface OAuthAuthorizeRequestRequest$1 {
120
+ /** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
121
+ redirect_uri?: string;
122
+ /** Optional source URL for registration tracking */
123
+ source_url?: string;
124
+ }
125
+ /**
126
+ * Response with OAuth authorization URL.
127
+ *
128
+ * Response model (includes read-only fields).
129
+ */
130
+ interface OAuthAuthorizeResponse$1 {
131
+ /** Full URL to redirect user to OAuth provider */
132
+ authorization_url: string;
133
+ /** State token for CSRF protection. Store this and verify on callback. */
134
+ state: string;
135
+ }
136
+ /**
137
+ * Request to complete OAuth flow (callback handler).
138
+ *
139
+ * Request model (no read-only fields).
140
+ */
141
+ interface OAuthCallbackRequestRequest$1 {
142
+ /** Authorization code from OAuth provider callback */
143
+ code: string;
144
+ /** State token for CSRF verification (from authorize response) */
145
+ state: string;
146
+ /** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
147
+ redirect_uri?: string;
148
+ }
149
+ /**
150
+ * Response with JWT tokens after OAuth authentication.
151
+ *
152
+ * Response model (includes read-only fields).
153
+ */
154
+ interface OAuthTokenResponse$1 {
155
+ /** JWT access token */
156
+ access: string;
157
+ /** JWT refresh token */
158
+ refresh: string;
159
+ /** Authenticated user info */
160
+ user: Record<string, any>;
161
+ /** True if a new user was created during this OAuth flow */
162
+ is_new_user: boolean;
163
+ /** True if a new OAuth connection was created */
164
+ is_new_connection: boolean;
165
+ }
166
+ /**
167
+ * Response with available OAuth providers.
168
+ *
169
+ * Response model (includes read-only fields).
170
+ */
171
+ interface OAuthProvidersResponse$1 {
172
+ /** List of available OAuth providers */
173
+ providers: Array<Record<string, any>>;
174
+ }
175
+
176
+ /**
177
+ * API endpoints for Oauth.
178
+ */
179
+ declare class Oauth {
180
+ private client;
181
+ constructor(client: any);
182
+ /**
183
+ * List OAuth connections
184
+ *
185
+ * Get all OAuth connections for the current user.
186
+ */
187
+ accountsOauthConnectionsList(): Promise<any>;
188
+ /**
189
+ * Disconnect OAuth provider
190
+ *
191
+ * Remove OAuth connection for the specified provider.
192
+ */
193
+ accountsOauthDisconnectCreate(data: OAuthDisconnectRequestRequest$1): Promise<any>;
194
+ /**
195
+ * Start GitHub OAuth
196
+ *
197
+ * Generate GitHub OAuth authorization URL. Redirect user to this URL to
198
+ * start authentication.
199
+ */
200
+ accountsOauthGithubAuthorizeCreate(data: OAuthAuthorizeRequestRequest$1): Promise<OAuthAuthorizeResponse$1>;
201
+ /**
202
+ * Complete GitHub OAuth
203
+ *
204
+ * Exchange authorization code for JWT tokens. Call this after GitHub
205
+ * redirects back with code.
206
+ */
207
+ accountsOauthGithubCallbackCreate(data: OAuthCallbackRequestRequest$1): Promise<OAuthTokenResponse$1>;
208
+ /**
209
+ * List OAuth providers
210
+ *
211
+ * Get list of available OAuth providers for authentication.
212
+ */
213
+ accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse$1>;
214
+ }
215
+
216
+ /**
217
+ * AUTO-GENERATED FILE - DO NOT EDIT
218
+ *
219
+ * This file is automatically generated by DjangoCFG.
220
+ * Any manual changes will be lost when the code is regenerated.
221
+ *
222
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
223
+ */
224
+ /**
225
+ * Serializer for user details.
226
+ *
227
+ * Response model (includes read-only fields).
228
+ */
229
+ interface User$2 {
230
+ id: number;
231
+ email: string;
232
+ first_name?: string;
233
+ last_name?: string;
234
+ /** Get user's full name. */
235
+ full_name: string;
236
+ /** Get user's initials for avatar fallback. */
237
+ initials: string;
238
+ /** Get formatted username for display. */
239
+ display_username: string;
240
+ company?: string;
241
+ phone?: string;
242
+ position?: string;
243
+ avatar?: string | null;
244
+ /** Designates whether the user can log into this admin site. */
245
+ is_staff: boolean;
246
+ /** Designates that this user has all permissions without explicitly assigning them. */
247
+ is_superuser: boolean;
248
+ date_joined: string;
249
+ last_login?: string | null;
250
+ /** Get count of unanswered messages for the user. */
251
+ unanswered_messages_count: number;
252
+ centrifugo: CentrifugoToken$2 | null;
253
+ }
254
+ /**
255
+ * Serializer for updating user profile.
256
+ *
257
+ * Request model (no read-only fields).
258
+ */
259
+ interface UserProfileUpdateRequest$1 {
260
+ first_name?: string;
261
+ last_name?: string;
262
+ company?: string;
263
+ phone?: string;
264
+ position?: string;
265
+ }
266
+ /**
267
+ * Serializer for updating user profile.
268
+ *
269
+ * Request model (no read-only fields).
270
+ */
271
+ interface PatchedUserProfileUpdateRequest$1 {
272
+ first_name?: string;
273
+ last_name?: string;
274
+ company?: string;
275
+ phone?: string;
276
+ position?: string;
277
+ }
278
+ /**
279
+ * Nested serializer for Centrifugo WebSocket connection token.
280
+ *
281
+ * Response model (includes read-only fields).
282
+ */
283
+ interface CentrifugoToken$2 {
284
+ /** JWT token for Centrifugo WebSocket connection */
285
+ token: string;
286
+ /** Centrifugo WebSocket URL */
287
+ centrifugo_url: string;
288
+ /** Token expiration time (ISO 8601) */
289
+ expires_at: string;
290
+ /** List of allowed channels for this user */
291
+ channels: Array<string>;
292
+ }
293
+
294
+ /**
295
+ * API endpoints for User Profile.
296
+ */
297
+ declare class UserProfile {
298
+ private client;
299
+ constructor(client: any);
300
+ /**
301
+ * Get current user profile
302
+ *
303
+ * Retrieve the current authenticated user's profile information.
304
+ */
305
+ accountsProfileRetrieve(): Promise<User$2>;
306
+ /**
307
+ * Upload user avatar
308
+ *
309
+ * Upload avatar image for the current authenticated user. Accepts
310
+ * multipart/form-data with 'avatar' field.
311
+ */
312
+ accountsProfileAvatarCreate(data: FormData): Promise<User$2>;
313
+ /**
314
+ * Partial update user profile
315
+ *
316
+ * Partially update the current authenticated user's profile information.
317
+ * Supports avatar upload.
318
+ */
319
+ accountsProfilePartialUpdate(data: UserProfileUpdateRequest$1): Promise<User$2>;
320
+ /**
321
+ * Partial update user profile
322
+ *
323
+ * Partially update the current authenticated user's profile information.
324
+ * Supports avatar upload.
325
+ */
326
+ accountsProfilePartialPartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
327
+ /**
328
+ * Update user profile
329
+ *
330
+ * Update the current authenticated user's profile information.
331
+ */
332
+ accountsProfileUpdateUpdate(data: UserProfileUpdateRequest$1): Promise<User$2>;
333
+ /**
334
+ * Update user profile
335
+ *
336
+ * Update the current authenticated user's profile information.
337
+ */
338
+ accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
339
+ }
340
+
341
+ /**
342
+ * AUTO-GENERATED FILE - DO NOT EDIT
343
+ *
344
+ * This file is automatically generated by DjangoCFG.
345
+ * Any manual changes will be lost when the code is regenerated.
346
+ *
347
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
348
+ */
349
+
350
+ /**
351
+ * Serializer for OTP request.
352
+ *
353
+ * Request model (no read-only fields).
354
+ */
355
+ interface OTPRequestRequest$1 {
356
+ /** Email address or phone number for OTP delivery */
357
+ identifier: string;
358
+ /** Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
359
+
360
+ * `email` - Email
361
+ * `phone` - Phone */
362
+ channel?: OTPRequestRequestChannel;
363
+ /** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
364
+ source_url?: string;
365
+ }
366
+ /**
367
+ * OTP request response.
368
+ *
369
+ * Response model (includes read-only fields).
370
+ */
371
+ interface OTPRequestResponse$1 {
372
+ /** Success message */
373
+ message: string;
374
+ }
375
+ /**
376
+ * Serializer for OTP verification.
377
+ *
378
+ * Request model (no read-only fields).
379
+ */
380
+ interface OTPVerifyRequest$1 {
381
+ /** Email address or phone number used for OTP request */
382
+ identifier: string;
383
+ otp: string;
384
+ /** Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
385
+
386
+ * `email` - Email
387
+ * `phone` - Phone */
388
+ channel?: OTPVerifyRequestChannel;
389
+ /** Source URL for tracking login (e.g., https://my.djangocfg.com) */
390
+ source_url?: string;
391
+ }
392
+ /**
393
+ * OTP verification response.
394
+ *
395
+ * Response model (includes read-only fields).
396
+ */
397
+ interface OTPVerifyResponse$1 {
398
+ /** JWT refresh token */
399
+ refresh: string;
400
+ /** JWT access token */
401
+ access: string;
402
+ user: User$1;
403
+ }
404
+ /**
405
+ * Serializer for user details.
406
+ *
407
+ * Response model (includes read-only fields).
408
+ */
409
+ interface User$1 {
410
+ id: number;
411
+ email: string;
412
+ first_name?: string;
413
+ last_name?: string;
414
+ /** Get user's full name. */
415
+ full_name: string;
416
+ /** Get user's initials for avatar fallback. */
417
+ initials: string;
418
+ /** Get formatted username for display. */
419
+ display_username: string;
420
+ company?: string;
421
+ phone?: string;
422
+ position?: string;
423
+ avatar?: string | null;
424
+ /** Designates whether the user can log into this admin site. */
425
+ is_staff: boolean;
426
+ /** Designates that this user has all permissions without explicitly assigning them. */
427
+ is_superuser: boolean;
428
+ date_joined: string;
429
+ last_login?: string | null;
430
+ /** Get count of unanswered messages for the user. */
431
+ unanswered_messages_count: number;
432
+ centrifugo: CentrifugoToken$1 | null;
433
+ }
434
+ /**
435
+ * Nested serializer for Centrifugo WebSocket connection token.
436
+ *
437
+ * Response model (includes read-only fields).
438
+ */
439
+ interface CentrifugoToken$1 {
440
+ /** JWT token for Centrifugo WebSocket connection */
441
+ token: string;
442
+ /** Centrifugo WebSocket URL */
443
+ centrifugo_url: string;
444
+ /** Token expiration time (ISO 8601) */
445
+ expires_at: string;
446
+ /** List of allowed channels for this user */
447
+ channels: Array<string>;
448
+ }
449
+
450
+ /**
451
+ * API endpoints for Accounts.
452
+ */
453
+ declare class Accounts {
454
+ private client;
455
+ constructor(client: any);
456
+ /**
457
+ * Request OTP code to email or phone.
458
+ */
459
+ otpRequestCreate(data: OTPRequestRequest$1): Promise<OTPRequestResponse$1>;
460
+ /**
461
+ * Verify OTP code and return JWT tokens.
462
+ */
463
+ otpVerifyCreate(data: OTPVerifyRequest$1): Promise<OTPVerifyResponse$1>;
464
+ }
465
+
466
+ /**
467
+ * AUTO-GENERATED FILE - DO NOT EDIT
468
+ *
469
+ * This file is automatically generated by DjangoCFG.
470
+ * Any manual changes will be lost when the code is regenerated.
471
+ *
472
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
473
+ */
474
+ /**
475
+ * API Logger with Consola
476
+ * Beautiful console logging for API requests and responses
477
+ *
478
+ * Installation:
479
+ * npm install consola
480
+ */
481
+
482
+ /**
483
+ * Logger configuration
484
+ */
485
+ interface LoggerConfig$2 {
486
+ /** Enable logging */
487
+ enabled: boolean;
488
+ /** Log requests */
489
+ logRequests: boolean;
490
+ /** Log responses */
491
+ logResponses: boolean;
492
+ /** Log errors */
493
+ logErrors: boolean;
494
+ /** Log request/response bodies */
495
+ logBodies: boolean;
496
+ /** Log headers (excluding sensitive ones) */
497
+ logHeaders: boolean;
498
+ /** Custom consola instance */
499
+ consola?: ConsolaInstance;
500
+ }
501
+
502
+ /**
503
+ * AUTO-GENERATED FILE - DO NOT EDIT
504
+ *
505
+ * This file is automatically generated by DjangoCFG.
506
+ * Any manual changes will be lost when the code is regenerated.
507
+ *
508
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
509
+ */
510
+ /**
511
+ * Retry Configuration and Utilities
512
+ *
513
+ * Provides automatic retry logic for failed HTTP requests using p-retry.
514
+ * Retries only on network errors and server errors (5xx), not client errors (4xx).
515
+ */
516
+ /**
517
+ * Information about a failed retry attempt.
518
+ */
519
+ interface FailedAttemptInfo$2 {
520
+ /** The error that caused the failure */
521
+ error: Error;
522
+ /** The attempt number (1-indexed) */
523
+ attemptNumber: number;
524
+ /** Number of retries left */
525
+ retriesLeft: number;
526
+ }
527
+ /**
528
+ * Retry configuration options.
529
+ *
530
+ * Uses exponential backoff with jitter by default to avoid thundering herd.
531
+ */
532
+ interface RetryConfig$2 {
533
+ /**
534
+ * Maximum number of retry attempts.
535
+ * @default 3
536
+ */
537
+ retries?: number;
538
+ /**
539
+ * Exponential backoff factor.
540
+ * @default 2
541
+ */
542
+ factor?: number;
543
+ /**
544
+ * Minimum wait time between retries (ms).
545
+ * @default 1000
546
+ */
547
+ minTimeout?: number;
548
+ /**
549
+ * Maximum wait time between retries (ms).
550
+ * @default 60000
551
+ */
552
+ maxTimeout?: number;
553
+ /**
554
+ * Add randomness to wait times (jitter).
555
+ * Helps avoid thundering herd problem.
556
+ * @default true
557
+ */
558
+ randomize?: boolean;
559
+ /**
560
+ * Callback called on each failed attempt.
561
+ */
562
+ onFailedAttempt?: (info: FailedAttemptInfo$2) => void;
563
+ }
564
+
565
+ /**
566
+ * AUTO-GENERATED FILE - DO NOT EDIT
567
+ *
568
+ * This file is automatically generated by DjangoCFG.
569
+ * Any manual changes will be lost when the code is regenerated.
570
+ *
571
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
572
+ */
573
+ /**
574
+ * Storage adapters for cross-platform token storage.
575
+ *
576
+ * Supports:
577
+ * - LocalStorage (browser)
578
+ * - Cookies (SSR/browser)
579
+ * - Memory (Node.js/Electron/testing)
580
+ */
581
+
582
+ /**
583
+ * Storage adapter interface for cross-platform token storage.
584
+ */
585
+ interface StorageAdapter$2 {
586
+ getItem(key: string): string | null;
587
+ setItem(key: string, value: string): void;
588
+ removeItem(key: string): void;
589
+ }
590
+
591
+ /**
592
+ * Zod schema for CentrifugoToken
593
+ *
594
+ * This schema provides runtime validation and type inference.
595
+ * * Nested serializer for Centrifugo WebSocket connection token.
596
+ * */
597
+
598
+ /**
599
+ * Nested serializer for Centrifugo WebSocket connection token.
600
+ */
601
+ declare const CentrifugoTokenSchema: z.ZodObject<{
602
+ token: z.ZodString;
603
+ centrifugo_url: z.ZodURL;
604
+ expires_at: z.ZodISODateTime;
605
+ channels: z.ZodArray<z.ZodString>;
606
+ }, z.core.$strip>;
607
+ /**
608
+ * Infer TypeScript type from Zod schema
609
+ */
610
+ type CentrifugoToken = z.infer<typeof CentrifugoTokenSchema>;
611
+
612
+ /**
613
+ * Zod schema for OAuthAuthorizeRequestRequest
614
+ *
615
+ * This schema provides runtime validation and type inference.
616
+ * * Request to start OAuth flow.
617
+ * */
618
+
619
+ /**
620
+ * Request to start OAuth flow.
621
+ */
622
+ declare const OAuthAuthorizeRequestRequestSchema: z.ZodObject<{
623
+ redirect_uri: z.ZodOptional<z.ZodURL>;
624
+ source_url: z.ZodOptional<z.ZodURL>;
625
+ }, z.core.$strip>;
626
+ /**
627
+ * Infer TypeScript type from Zod schema
628
+ */
629
+ type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestSchema>;
630
+
631
+ /**
632
+ * Zod schema for OAuthAuthorizeResponse
633
+ *
634
+ * This schema provides runtime validation and type inference.
635
+ * * Response with OAuth authorization URL.
636
+ * */
637
+
638
+ /**
639
+ * Response with OAuth authorization URL.
640
+ */
641
+ declare const OAuthAuthorizeResponseSchema: z.ZodObject<{
642
+ authorization_url: z.ZodURL;
643
+ state: z.ZodString;
644
+ }, z.core.$strip>;
645
+ /**
646
+ * Infer TypeScript type from Zod schema
647
+ */
648
+ type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>;
649
+
650
+ /**
651
+ * Zod schema for OAuthCallbackRequestRequest
652
+ *
653
+ * This schema provides runtime validation and type inference.
654
+ * * Request to complete OAuth flow (callback handler).
655
+ * */
656
+
657
+ /**
658
+ * Request to complete OAuth flow (callback handler).
659
+ */
660
+ declare const OAuthCallbackRequestRequestSchema: z.ZodObject<{
661
+ code: z.ZodString;
662
+ state: z.ZodString;
663
+ redirect_uri: z.ZodOptional<z.ZodURL>;
664
+ }, z.core.$strip>;
665
+ /**
666
+ * Infer TypeScript type from Zod schema
667
+ */
668
+ type OAuthCallbackRequestRequest = z.infer<typeof OAuthCallbackRequestRequestSchema>;
669
+
670
+ /**
671
+ * Zod schema for OAuthConnection
672
+ *
673
+ * This schema provides runtime validation and type inference.
674
+ * * Serializer for OAuth connection info (user-facing).
675
+ * */
676
+
677
+ /**
678
+ * Serializer for OAuth connection info (user-facing).
679
+ */
680
+ declare const OAuthConnectionSchema: z.ZodObject<{
681
+ id: z.ZodInt;
682
+ provider: z.ZodEnum<typeof OAuthConnectionProvider>;
683
+ provider_display: z.ZodString;
684
+ provider_username: z.ZodString;
685
+ provider_email: z.ZodEmail;
686
+ provider_avatar_url: z.ZodURL;
687
+ connected_at: z.ZodISODateTime;
688
+ last_login_at: z.ZodISODateTime;
689
+ }, z.core.$strip>;
690
+ /**
691
+ * Infer TypeScript type from Zod schema
692
+ */
693
+ type OAuthConnection = z.infer<typeof OAuthConnectionSchema>;
694
+
695
+ /**
696
+ * Zod schema for OAuthDisconnectRequestRequest
697
+ *
698
+ * This schema provides runtime validation and type inference.
699
+ * * Request to disconnect OAuth provider.
700
+ * */
701
+
702
+ /**
703
+ * Request to disconnect OAuth provider.
704
+ */
705
+ declare const OAuthDisconnectRequestRequestSchema: z.ZodObject<{
706
+ provider: z.ZodEnum<typeof OAuthDisconnectRequestRequestProvider>;
707
+ }, z.core.$strip>;
708
+ /**
709
+ * Infer TypeScript type from Zod schema
710
+ */
711
+ type OAuthDisconnectRequestRequest = z.infer<typeof OAuthDisconnectRequestRequestSchema>;
712
+
713
+ /**
714
+ * Zod schema for OAuthError
715
+ *
716
+ * This schema provides runtime validation and type inference.
717
+ * * Error response for OAuth endpoints.
718
+ * */
719
+
720
+ /**
721
+ * Error response for OAuth endpoints.
722
+ */
723
+ declare const OAuthErrorSchema: z.ZodObject<{
724
+ error: z.ZodString;
725
+ error_description: z.ZodOptional<z.ZodString>;
726
+ }, z.core.$strip>;
727
+ /**
728
+ * Infer TypeScript type from Zod schema
729
+ */
730
+ type OAuthError = z.infer<typeof OAuthErrorSchema>;
731
+
732
+ /**
733
+ * Zod schema for OAuthProvidersResponse
734
+ *
735
+ * This schema provides runtime validation and type inference.
736
+ * * Response with available OAuth providers.
737
+ * */
738
+
739
+ /**
740
+ * Response with available OAuth providers.
741
+ */
742
+ declare const OAuthProvidersResponseSchema: z.ZodObject<{
743
+ providers: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
744
+ }, z.core.$strip>;
745
+ /**
746
+ * Infer TypeScript type from Zod schema
747
+ */
748
+ type OAuthProvidersResponse = z.infer<typeof OAuthProvidersResponseSchema>;
749
+
750
+ /**
751
+ * Zod schema for OAuthTokenResponse
752
+ *
753
+ * This schema provides runtime validation and type inference.
754
+ * * Response with JWT tokens after OAuth authentication.
755
+ * */
756
+
757
+ /**
758
+ * Response with JWT tokens after OAuth authentication.
759
+ */
760
+ declare const OAuthTokenResponseSchema: z.ZodObject<{
761
+ access: z.ZodString;
762
+ refresh: z.ZodString;
763
+ user: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>;
764
+ is_new_user: z.ZodBoolean;
765
+ is_new_connection: z.ZodBoolean;
766
+ }, z.core.$strip>;
767
+ /**
768
+ * Infer TypeScript type from Zod schema
769
+ */
770
+ type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>;
771
+
772
+ /**
773
+ * Zod schema for OTPErrorResponse
774
+ *
775
+ * This schema provides runtime validation and type inference.
776
+ * * Error response for OTP operations.
777
+ * */
778
+
779
+ /**
780
+ * Error response for OTP operations.
781
+ */
782
+ declare const OTPErrorResponseSchema: z.ZodObject<{
783
+ error: z.ZodString;
784
+ }, z.core.$strip>;
785
+ /**
786
+ * Infer TypeScript type from Zod schema
787
+ */
788
+ type OTPErrorResponse = z.infer<typeof OTPErrorResponseSchema>;
789
+
790
+ /**
791
+ * Zod schema for OTPRequestRequest
792
+ *
793
+ * This schema provides runtime validation and type inference.
794
+ * * Serializer for OTP request.
795
+ * */
796
+
797
+ /**
798
+ * Serializer for OTP request.
799
+ */
800
+ declare const OTPRequestRequestSchema: z.ZodObject<{
801
+ identifier: z.ZodString;
802
+ channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
803
+ source_url: z.ZodOptional<z.ZodURL>;
804
+ }, z.core.$strip>;
805
+ /**
806
+ * Infer TypeScript type from Zod schema
807
+ */
808
+ type OTPRequestRequest = z.infer<typeof OTPRequestRequestSchema>;
809
+
810
+ /**
811
+ * Zod schema for OTPRequestResponse
812
+ *
813
+ * This schema provides runtime validation and type inference.
814
+ * * OTP request response.
815
+ * */
816
+
817
+ /**
818
+ * OTP request response.
819
+ */
820
+ declare const OTPRequestResponseSchema: z.ZodObject<{
821
+ message: z.ZodString;
822
+ }, z.core.$strip>;
823
+ /**
824
+ * Infer TypeScript type from Zod schema
825
+ */
826
+ type OTPRequestResponse = z.infer<typeof OTPRequestResponseSchema>;
827
+
828
+ /**
829
+ * Zod schema for OTPVerifyRequest
830
+ *
831
+ * This schema provides runtime validation and type inference.
832
+ * * Serializer for OTP verification.
833
+ * */
834
+
835
+ /**
836
+ * Serializer for OTP verification.
837
+ */
838
+ declare const OTPVerifyRequestSchema: z.ZodObject<{
839
+ identifier: z.ZodString;
840
+ otp: z.ZodString;
841
+ channel: z.ZodOptional<z.ZodEnum<typeof OTPVerifyRequestChannel>>;
842
+ source_url: z.ZodOptional<z.ZodURL>;
843
+ }, z.core.$strip>;
844
+ /**
845
+ * Infer TypeScript type from Zod schema
846
+ */
847
+ type OTPVerifyRequest = z.infer<typeof OTPVerifyRequestSchema>;
848
+
849
+ /**
850
+ * Zod schema for OTPVerifyResponse
851
+ *
852
+ * This schema provides runtime validation and type inference.
853
+ * * OTP verification response.
854
+ * */
855
+
856
+ /**
857
+ * OTP verification response.
858
+ */
859
+ declare const OTPVerifyResponseSchema: z.ZodObject<{
860
+ refresh: z.ZodString;
861
+ access: z.ZodString;
862
+ user: z.ZodObject<{
863
+ id: z.ZodInt;
864
+ email: z.ZodEmail;
865
+ first_name: z.ZodOptional<z.ZodString>;
866
+ last_name: z.ZodOptional<z.ZodString>;
867
+ full_name: z.ZodString;
868
+ initials: z.ZodString;
869
+ display_username: z.ZodString;
870
+ company: z.ZodOptional<z.ZodString>;
871
+ phone: z.ZodOptional<z.ZodString>;
872
+ position: z.ZodOptional<z.ZodString>;
873
+ avatar: z.ZodNullable<z.ZodURL>;
874
+ is_staff: z.ZodBoolean;
875
+ is_superuser: z.ZodBoolean;
876
+ date_joined: z.ZodISODateTime;
877
+ last_login: z.ZodNullable<z.ZodISODateTime>;
878
+ unanswered_messages_count: z.ZodInt;
879
+ centrifugo: z.ZodNullable<z.ZodObject<{
880
+ token: z.ZodString;
881
+ centrifugo_url: z.ZodURL;
882
+ expires_at: z.ZodISODateTime;
883
+ channels: z.ZodArray<z.ZodString>;
884
+ }, z.core.$strip>>;
885
+ }, z.core.$strip>;
886
+ }, z.core.$strip>;
887
+ /**
888
+ * Infer TypeScript type from Zod schema
889
+ */
890
+ type OTPVerifyResponse = z.infer<typeof OTPVerifyResponseSchema>;
891
+
892
+ /**
893
+ * Zod schema for PatchedUserProfileUpdateRequest
894
+ *
895
+ * This schema provides runtime validation and type inference.
896
+ * * Serializer for updating user profile.
897
+ * */
898
+
899
+ /**
900
+ * Serializer for updating user profile.
901
+ */
902
+ declare const PatchedUserProfileUpdateRequestSchema: z.ZodObject<{
903
+ first_name: z.ZodOptional<z.ZodString>;
904
+ last_name: z.ZodOptional<z.ZodString>;
905
+ company: z.ZodOptional<z.ZodString>;
906
+ phone: z.ZodOptional<z.ZodString>;
907
+ position: z.ZodOptional<z.ZodString>;
908
+ }, z.core.$strip>;
909
+ /**
910
+ * Infer TypeScript type from Zod schema
911
+ */
912
+ type PatchedUserProfileUpdateRequest = z.infer<typeof PatchedUserProfileUpdateRequestSchema>;
913
+
914
+ /**
915
+ * Zod schema for TokenRefresh
916
+ *
917
+ * This schema provides runtime validation and type inference.
918
+ * */
919
+
920
+ declare const TokenRefreshSchema: z.ZodObject<{
921
+ access: z.ZodString;
922
+ refresh: z.ZodString;
923
+ }, z.core.$strip>;
924
+ /**
925
+ * Infer TypeScript type from Zod schema
926
+ */
927
+ type TokenRefresh = z.infer<typeof TokenRefreshSchema>;
928
+
929
+ /**
930
+ * Zod schema for TokenRefreshRequest
931
+ *
932
+ * This schema provides runtime validation and type inference.
933
+ * */
934
+
935
+ declare const TokenRefreshRequestSchema: z.ZodObject<{
936
+ refresh: z.ZodString;
937
+ }, z.core.$strip>;
938
+ /**
939
+ * Infer TypeScript type from Zod schema
940
+ */
941
+ type TokenRefreshRequest = z.infer<typeof TokenRefreshRequestSchema>;
942
+
943
+ /**
944
+ * Zod schema for User
945
+ *
946
+ * This schema provides runtime validation and type inference.
947
+ * * Serializer for user details.
948
+ * */
949
+
950
+ /**
951
+ * Serializer for user details.
952
+ */
953
+ declare const UserSchema: z.ZodObject<{
954
+ id: z.ZodInt;
955
+ email: z.ZodEmail;
956
+ first_name: z.ZodOptional<z.ZodString>;
957
+ last_name: z.ZodOptional<z.ZodString>;
958
+ full_name: z.ZodString;
959
+ initials: z.ZodString;
960
+ display_username: z.ZodString;
961
+ company: z.ZodOptional<z.ZodString>;
962
+ phone: z.ZodOptional<z.ZodString>;
963
+ position: z.ZodOptional<z.ZodString>;
964
+ avatar: z.ZodNullable<z.ZodURL>;
965
+ is_staff: z.ZodBoolean;
966
+ is_superuser: z.ZodBoolean;
967
+ date_joined: z.ZodISODateTime;
968
+ last_login: z.ZodNullable<z.ZodISODateTime>;
969
+ unanswered_messages_count: z.ZodInt;
970
+ centrifugo: z.ZodNullable<z.ZodObject<{
971
+ token: z.ZodString;
972
+ centrifugo_url: z.ZodURL;
973
+ expires_at: z.ZodISODateTime;
974
+ channels: z.ZodArray<z.ZodString>;
975
+ }, z.core.$strip>>;
976
+ }, z.core.$strip>;
977
+ /**
978
+ * Infer TypeScript type from Zod schema
979
+ */
980
+ type User = z.infer<typeof UserSchema>;
981
+
982
+ /**
983
+ * Zod schema for UserProfileUpdateRequest
984
+ *
985
+ * This schema provides runtime validation and type inference.
986
+ * * Serializer for updating user profile.
987
+ * */
988
+
989
+ /**
990
+ * Serializer for updating user profile.
991
+ */
992
+ declare const UserProfileUpdateRequestSchema: z.ZodObject<{
993
+ first_name: z.ZodOptional<z.ZodString>;
994
+ last_name: z.ZodOptional<z.ZodString>;
995
+ company: z.ZodOptional<z.ZodString>;
996
+ phone: z.ZodOptional<z.ZodString>;
997
+ position: z.ZodOptional<z.ZodString>;
998
+ }, z.core.$strip>;
999
+ /**
1000
+ * Infer TypeScript type from Zod schema
1001
+ */
1002
+ type UserProfileUpdateRequest = z.infer<typeof UserProfileUpdateRequestSchema>;
1003
+
1004
+ /**
1005
+ * API operation
1006
+ *
1007
+ * @method POST
1008
+ * @path /cfg/accounts/otp/request/
1009
+ */
1010
+ declare function createAccountsOtpRequestCreate(data: OTPRequestRequest, client?: any): Promise<OTPRequestResponse>;
1011
+ /**
1012
+ * API operation
1013
+ *
1014
+ * @method POST
1015
+ * @path /cfg/accounts/otp/verify/
1016
+ */
1017
+ declare function createAccountsOtpVerifyCreate(data: OTPVerifyRequest, client?: any): Promise<OTPVerifyResponse>;
1018
+
1019
+ /**
1020
+ * API operation
1021
+ *
1022
+ * @method POST
1023
+ * @path /cfg/accounts/token/refresh/
1024
+ */
1025
+ declare function createAccountsTokenRefreshCreate(data: TokenRefreshRequest, client?: any): Promise<TokenRefresh>;
1026
+
1027
+ /**
1028
+ * List OAuth connections
1029
+ *
1030
+ * @method GET
1031
+ * @path /cfg/accounts/oauth/connections/
1032
+ */
1033
+ declare function getAccountsOauthConnectionsList(client?: any): Promise<any>;
1034
+ /**
1035
+ * Disconnect OAuth provider
1036
+ *
1037
+ * @method POST
1038
+ * @path /cfg/accounts/oauth/disconnect/
1039
+ */
1040
+ declare function createAccountsOauthDisconnectCreate(data: OAuthDisconnectRequestRequest, client?: any): Promise<any>;
1041
+ /**
1042
+ * Start GitHub OAuth
1043
+ *
1044
+ * @method POST
1045
+ * @path /cfg/accounts/oauth/github/authorize/
1046
+ */
1047
+ declare function createAccountsOauthGithubAuthorizeCreate(data: OAuthAuthorizeRequestRequest, client?: any): Promise<OAuthAuthorizeResponse>;
1048
+ /**
1049
+ * Complete GitHub OAuth
1050
+ *
1051
+ * @method POST
1052
+ * @path /cfg/accounts/oauth/github/callback/
1053
+ */
1054
+ declare function createAccountsOauthGithubCallbackCreate(data: OAuthCallbackRequestRequest, client?: any): Promise<OAuthTokenResponse>;
1055
+ /**
1056
+ * List OAuth providers
1057
+ *
1058
+ * @method GET
1059
+ * @path /cfg/accounts/oauth/providers/
1060
+ */
1061
+ declare function getAccountsOauthProvidersRetrieve(client?: any): Promise<OAuthProvidersResponse>;
1062
+
1063
+ /**
1064
+ * Get current user profile
1065
+ *
1066
+ * @method GET
1067
+ * @path /cfg/accounts/profile/
1068
+ */
1069
+ declare function getAccountsProfileRetrieve(client?: any): Promise<User>;
1070
+ /**
1071
+ * Upload user avatar
1072
+ *
1073
+ * @method POST
1074
+ * @path /cfg/accounts/profile/avatar/
1075
+ */
1076
+ declare function createAccountsProfileAvatarCreate(data: any, client?: any): Promise<User>;
1077
+ /**
1078
+ * Partial update user profile
1079
+ *
1080
+ * @method PUT
1081
+ * @path /cfg/accounts/profile/partial/
1082
+ */
1083
+ declare function partialUpdateAccountsProfilePartialUpdate(data: UserProfileUpdateRequest, client?: any): Promise<User>;
1084
+ /**
1085
+ * Partial update user profile
1086
+ *
1087
+ * @method PATCH
1088
+ * @path /cfg/accounts/profile/partial/
1089
+ */
1090
+ declare function partialUpdateAccountsProfilePartialPartialUpdate(data?: PatchedUserProfileUpdateRequest, client?: any): Promise<User>;
1091
+ /**
1092
+ * Update user profile
1093
+ *
1094
+ * @method PUT
1095
+ * @path /cfg/accounts/profile/update/
1096
+ */
1097
+ declare function updateAccountsProfileUpdateUpdate(data: UserProfileUpdateRequest, client?: any): Promise<User>;
1098
+ /**
1099
+ * Update user profile
1100
+ *
1101
+ * @method PATCH
1102
+ * @path /cfg/accounts/profile/update/
1103
+ */
1104
+ declare function partialUpdateAccountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest, client?: any): Promise<User>;
1105
+
1106
+ /**
1107
+ * AUTO-GENERATED FILE - DO NOT EDIT
1108
+ *
1109
+ * This file is automatically generated by DjangoCFG.
1110
+ * Any manual changes will be lost when the code is regenerated.
1111
+ *
1112
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1113
+ */
1114
+ /**
1115
+ * Django CFG API - API Client with JWT Management
1116
+ *
1117
+ * Usage:
1118
+ * ```typescript
1119
+ * import { API } from './api';
1120
+ *
1121
+ * const api = new API('https://api.example.com');
1122
+ *
1123
+ * // Set JWT token
1124
+ * api.setToken('your-jwt-token', 'refresh-token');
1125
+ *
1126
+ * // Use API
1127
+ * const posts = await api.posts.list();
1128
+ * const user = await api.users.retrieve(1);
1129
+ *
1130
+ * // Check authentication
1131
+ * if (api.isAuthenticated()) {
1132
+ * // ...
1133
+ * }
1134
+ *
1135
+ * // Custom storage with logging (for Electron/Node.js)
1136
+ * import { MemoryStorageAdapter, APILogger } from './storage';
1137
+ * const logger = new APILogger({ enabled: true, logLevel: 'debug' });
1138
+ * const api = new API('https://api.example.com', {
1139
+ * storage: new MemoryStorageAdapter(logger),
1140
+ * loggerConfig: { enabled: true, logLevel: 'debug' }
1141
+ * });
1142
+ *
1143
+ * // Get OpenAPI schema
1144
+ * const schema = api.getSchema();
1145
+ * ```
1146
+ */
1147
+
1148
+ interface APIOptions$2 {
1149
+ /** Custom storage adapter (defaults to LocalStorageAdapter) */
1150
+ storage?: StorageAdapter$2;
1151
+ /** Retry configuration for failed requests */
1152
+ retryConfig?: RetryConfig$2;
1153
+ /** Logger configuration */
1154
+ loggerConfig?: Partial<LoggerConfig$2>;
1155
+ }
1156
+ declare class API$2 {
1157
+ private baseUrl;
1158
+ private _client;
1159
+ private _token;
1160
+ private _refreshToken;
1161
+ private storage;
1162
+ private options?;
1163
+ auth: Auth;
1164
+ oauth: Oauth;
1165
+ user_profile: UserProfile;
1166
+ accounts: Accounts;
1167
+ constructor(baseUrl: string, options?: APIOptions$2);
1168
+ private _loadTokensFromStorage;
1169
+ private _reinitClients;
1170
+ private _injectAuthHeader;
1171
+ /**
1172
+ * Get current JWT token
1173
+ */
1174
+ getToken(): string | null;
1175
+ /**
1176
+ * Get current refresh token
1177
+ */
1178
+ getRefreshToken(): string | null;
1179
+ /**
1180
+ * Set JWT token and refresh token
1181
+ * @param token - JWT access token
1182
+ * @param refreshToken - JWT refresh token (optional)
1183
+ */
1184
+ setToken(token: string, refreshToken?: string): void;
1185
+ /**
1186
+ * Clear all tokens
1187
+ */
1188
+ clearTokens(): void;
1189
+ /**
1190
+ * Check if user is authenticated
1191
+ */
1192
+ isAuthenticated(): boolean;
1193
+ /**
1194
+ * Update base URL and reinitialize clients
1195
+ * @param url - New base URL
1196
+ */
1197
+ setBaseUrl(url: string): void;
1198
+ /**
1199
+ * Get current base URL
1200
+ */
1201
+ getBaseUrl(): string;
1202
+ /**
1203
+ * Get OpenAPI schema path
1204
+ * @returns Path to the OpenAPI schema JSON file
1205
+ *
1206
+ * Note: The OpenAPI schema is available in the schema.json file.
1207
+ * You can load it dynamically using:
1208
+ * ```typescript
1209
+ * const schema = await fetch('./schema.json').then(r => r.json());
1210
+ * // or using fs in Node.js:
1211
+ * // const schema = JSON.parse(fs.readFileSync('./schema.json', 'utf-8'));
1212
+ * ```
1213
+ */
1214
+ getSchemaPath(): string;
1215
+ }
1216
+
1217
+ /**
1218
+ * AUTO-GENERATED FILE - DO NOT EDIT
1219
+ *
1220
+ * This file is automatically generated by DjangoCFG.
1221
+ * Any manual changes will be lost when the code is regenerated.
1222
+ *
1223
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1224
+ */
1225
+ /**
1226
+ * Request serializer for sending push notifications.
1227
+ *
1228
+ * Request model (no read-only fields).
1229
+ */
1230
+ interface SendPushRequestRequest$1 {
1231
+ /** Notification title */
1232
+ title: string;
1233
+ /** Notification body */
1234
+ body: string;
1235
+ /** Notification icon URL */
1236
+ icon?: string | null;
1237
+ /** URL to open on click */
1238
+ url?: string | null;
1239
+ }
1240
+ /**
1241
+ * Response serializer for send push endpoint.
1242
+ *
1243
+ * Response model (includes read-only fields).
1244
+ */
1245
+ interface SendPushResponse$1 {
1246
+ /** Whether send was successful */
1247
+ success: boolean;
1248
+ /** Number of devices notification was sent to */
1249
+ sent_to: number;
1250
+ }
1251
+ /**
1252
+ * Request serializer for subscribing to push notifications.
1253
+ *
1254
+ * Request model (no read-only fields).
1255
+ */
1256
+ interface SubscribeRequestRequest$1 {
1257
+ /** Push service endpoint URL from browser */
1258
+ endpoint: string;
1259
+ /** Encryption keys (p256dh and auth) */
1260
+ keys: Record<string, any>;
1261
+ }
1262
+ /**
1263
+ * Response serializer for subscription endpoint.
1264
+ *
1265
+ * Response model (includes read-only fields).
1266
+ */
1267
+ interface SubscribeResponse$1 {
1268
+ /** Whether subscription was successful */
1269
+ success: boolean;
1270
+ /** ID of the subscription */
1271
+ subscription_id: number;
1272
+ /** Whether subscription was newly created */
1273
+ created: boolean;
1274
+ }
1275
+ /**
1276
+ * Response serializer for VAPID public key endpoint.
1277
+ *
1278
+ * Response model (includes read-only fields).
1279
+ */
1280
+ interface VapidPublicKeyResponse$1 {
1281
+ /** VAPID public key for client subscription */
1282
+ publicKey: string;
1283
+ }
1284
+
1285
+ /**
1286
+ * API endpoints for Web Push.
1287
+ */
1288
+ declare class WebPush {
1289
+ private client;
1290
+ constructor(client: any);
1291
+ /**
1292
+ * Send push notification
1293
+ *
1294
+ * Send push notification to all active subscriptions for the authenticated
1295
+ * user.
1296
+ */
1297
+ webpushSendCreate(data: SendPushRequestRequest$1): Promise<SendPushResponse$1>;
1298
+ /**
1299
+ * Subscribe to push notifications
1300
+ *
1301
+ * Save push subscription from browser for the authenticated user.
1302
+ */
1303
+ webpushSubscribeCreate(data: SubscribeRequestRequest$1): Promise<SubscribeResponse$1>;
1304
+ /**
1305
+ * Get VAPID public key
1306
+ *
1307
+ * Get VAPID public key for client subscription.
1308
+ */
1309
+ webpushVapidRetrieve(): Promise<VapidPublicKeyResponse$1>;
1310
+ }
1311
+
1312
+ /**
1313
+ * AUTO-GENERATED FILE - DO NOT EDIT
1314
+ *
1315
+ * This file is automatically generated by DjangoCFG.
1316
+ * Any manual changes will be lost when the code is regenerated.
1317
+ *
1318
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1319
+ */
1320
+ /**
1321
+ * API Logger with Consola
1322
+ * Beautiful console logging for API requests and responses
1323
+ *
1324
+ * Installation:
1325
+ * npm install consola
1326
+ */
1327
+
1328
+ /**
1329
+ * Logger configuration
1330
+ */
1331
+ interface LoggerConfig$1 {
1332
+ /** Enable logging */
1333
+ enabled: boolean;
1334
+ /** Log requests */
1335
+ logRequests: boolean;
1336
+ /** Log responses */
1337
+ logResponses: boolean;
1338
+ /** Log errors */
1339
+ logErrors: boolean;
1340
+ /** Log request/response bodies */
1341
+ logBodies: boolean;
1342
+ /** Log headers (excluding sensitive ones) */
1343
+ logHeaders: boolean;
1344
+ /** Custom consola instance */
1345
+ consola?: ConsolaInstance;
1346
+ }
1347
+
1348
+ /**
1349
+ * AUTO-GENERATED FILE - DO NOT EDIT
1350
+ *
1351
+ * This file is automatically generated by DjangoCFG.
1352
+ * Any manual changes will be lost when the code is regenerated.
1353
+ *
1354
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1355
+ */
1356
+ /**
1357
+ * Retry Configuration and Utilities
1358
+ *
1359
+ * Provides automatic retry logic for failed HTTP requests using p-retry.
1360
+ * Retries only on network errors and server errors (5xx), not client errors (4xx).
1361
+ */
1362
+ /**
1363
+ * Information about a failed retry attempt.
1364
+ */
1365
+ interface FailedAttemptInfo$1 {
1366
+ /** The error that caused the failure */
1367
+ error: Error;
1368
+ /** The attempt number (1-indexed) */
1369
+ attemptNumber: number;
1370
+ /** Number of retries left */
1371
+ retriesLeft: number;
1372
+ }
1373
+ /**
1374
+ * Retry configuration options.
1375
+ *
1376
+ * Uses exponential backoff with jitter by default to avoid thundering herd.
1377
+ */
1378
+ interface RetryConfig$1 {
1379
+ /**
1380
+ * Maximum number of retry attempts.
1381
+ * @default 3
1382
+ */
1383
+ retries?: number;
1384
+ /**
1385
+ * Exponential backoff factor.
1386
+ * @default 2
1387
+ */
1388
+ factor?: number;
1389
+ /**
1390
+ * Minimum wait time between retries (ms).
1391
+ * @default 1000
1392
+ */
1393
+ minTimeout?: number;
1394
+ /**
1395
+ * Maximum wait time between retries (ms).
1396
+ * @default 60000
1397
+ */
1398
+ maxTimeout?: number;
1399
+ /**
1400
+ * Add randomness to wait times (jitter).
1401
+ * Helps avoid thundering herd problem.
1402
+ * @default true
1403
+ */
1404
+ randomize?: boolean;
1405
+ /**
1406
+ * Callback called on each failed attempt.
1407
+ */
1408
+ onFailedAttempt?: (info: FailedAttemptInfo$1) => void;
1409
+ }
1410
+
1411
+ /**
1412
+ * AUTO-GENERATED FILE - DO NOT EDIT
1413
+ *
1414
+ * This file is automatically generated by DjangoCFG.
1415
+ * Any manual changes will be lost when the code is regenerated.
1416
+ *
1417
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1418
+ */
1419
+ /**
1420
+ * Storage adapters for cross-platform token storage.
1421
+ *
1422
+ * Supports:
1423
+ * - LocalStorage (browser)
1424
+ * - Cookies (SSR/browser)
1425
+ * - Memory (Node.js/Electron/testing)
1426
+ */
1427
+
1428
+ /**
1429
+ * Storage adapter interface for cross-platform token storage.
1430
+ */
1431
+ interface StorageAdapter$1 {
1432
+ getItem(key: string): string | null;
1433
+ setItem(key: string, value: string): void;
1434
+ removeItem(key: string): void;
1435
+ }
1436
+
1437
+ /**
1438
+ * Zod schema for SendPushRequestRequest
1439
+ *
1440
+ * This schema provides runtime validation and type inference.
1441
+ * * Request serializer for sending push notifications.
1442
+ * */
1443
+
1444
+ /**
1445
+ * Request serializer for sending push notifications.
1446
+ */
1447
+ declare const SendPushRequestRequestSchema: z.ZodObject<{
1448
+ title: z.ZodString;
1449
+ body: z.ZodString;
1450
+ icon: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1451
+ url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1452
+ }, z.core.$strip>;
1453
+ /**
1454
+ * Infer TypeScript type from Zod schema
1455
+ */
1456
+ type SendPushRequestRequest = z.infer<typeof SendPushRequestRequestSchema>;
1457
+
1458
+ /**
1459
+ * Zod schema for SendPushResponse
1460
+ *
1461
+ * This schema provides runtime validation and type inference.
1462
+ * * Response serializer for send push endpoint.
1463
+ * */
1464
+
1465
+ /**
1466
+ * Response serializer for send push endpoint.
1467
+ */
1468
+ declare const SendPushResponseSchema: z.ZodObject<{
1469
+ success: z.ZodBoolean;
1470
+ sent_to: z.ZodInt;
1471
+ }, z.core.$strip>;
1472
+ /**
1473
+ * Infer TypeScript type from Zod schema
1474
+ */
1475
+ type SendPushResponse = z.infer<typeof SendPushResponseSchema>;
1476
+
1477
+ /**
1478
+ * Zod schema for SubscribeRequestRequest
1479
+ *
1480
+ * This schema provides runtime validation and type inference.
1481
+ * * Request serializer for subscribing to push notifications.
1482
+ * */
1483
+
1484
+ /**
1485
+ * Request serializer for subscribing to push notifications.
1486
+ */
1487
+ declare const SubscribeRequestRequestSchema: z.ZodObject<{
1488
+ endpoint: z.ZodURL;
1489
+ keys: z.ZodRecord<z.ZodString, z.ZodString>;
1490
+ }, z.core.$strip>;
1491
+ /**
1492
+ * Infer TypeScript type from Zod schema
1493
+ */
1494
+ type SubscribeRequestRequest = z.infer<typeof SubscribeRequestRequestSchema>;
1495
+
1496
+ /**
1497
+ * Zod schema for SubscribeResponse
1498
+ *
1499
+ * This schema provides runtime validation and type inference.
1500
+ * * Response serializer for subscription endpoint.
1501
+ * */
1502
+
1503
+ /**
1504
+ * Response serializer for subscription endpoint.
1505
+ */
1506
+ declare const SubscribeResponseSchema: z.ZodObject<{
1507
+ success: z.ZodBoolean;
1508
+ subscription_id: z.ZodInt;
1509
+ created: z.ZodBoolean;
1510
+ }, z.core.$strip>;
1511
+ /**
1512
+ * Infer TypeScript type from Zod schema
1513
+ */
1514
+ type SubscribeResponse = z.infer<typeof SubscribeResponseSchema>;
1515
+
1516
+ /**
1517
+ * Zod schema for VapidPublicKeyResponse
1518
+ *
1519
+ * This schema provides runtime validation and type inference.
1520
+ * * Response serializer for VAPID public key endpoint.
1521
+ * */
1522
+
1523
+ /**
1524
+ * Response serializer for VAPID public key endpoint.
1525
+ */
1526
+ declare const VapidPublicKeyResponseSchema: z.ZodObject<{
1527
+ publicKey: z.ZodString;
1528
+ }, z.core.$strip>;
1529
+ /**
1530
+ * Infer TypeScript type from Zod schema
1531
+ */
1532
+ type VapidPublicKeyResponse = z.infer<typeof VapidPublicKeyResponseSchema>;
1533
+
1534
+ /**
1535
+ * AUTO-GENERATED FILE - DO NOT EDIT
1536
+ *
1537
+ * This file is automatically generated by DjangoCFG.
1538
+ * Any manual changes will be lost when the code is regenerated.
1539
+ *
1540
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1541
+ */
1542
+ /**
1543
+ * Zod Schemas - Runtime validation and type inference
1544
+ *
1545
+ * Auto-generated from OpenAPI specification.
1546
+ * Provides runtime validation for API requests and responses.
1547
+ *
1548
+ * Usage:
1549
+ * ```typescript
1550
+ * import { UserSchema } from './schemas'
1551
+ *
1552
+ * // Validate data
1553
+ * const user = UserSchema.parse(data)
1554
+ *
1555
+ * // Type inference
1556
+ * type User = z.infer<typeof UserSchema>
1557
+ * ```
1558
+ */
1559
+
1560
+ type index$5_SendPushRequestRequest = SendPushRequestRequest;
1561
+ declare const index$5_SendPushRequestRequestSchema: typeof SendPushRequestRequestSchema;
1562
+ type index$5_SendPushResponse = SendPushResponse;
1563
+ declare const index$5_SendPushResponseSchema: typeof SendPushResponseSchema;
1564
+ type index$5_SubscribeRequestRequest = SubscribeRequestRequest;
1565
+ declare const index$5_SubscribeRequestRequestSchema: typeof SubscribeRequestRequestSchema;
1566
+ type index$5_SubscribeResponse = SubscribeResponse;
1567
+ declare const index$5_SubscribeResponseSchema: typeof SubscribeResponseSchema;
1568
+ type index$5_VapidPublicKeyResponse = VapidPublicKeyResponse;
1569
+ declare const index$5_VapidPublicKeyResponseSchema: typeof VapidPublicKeyResponseSchema;
1570
+ declare namespace index$5 {
1571
+ export { type index$5_SendPushRequestRequest as SendPushRequestRequest, index$5_SendPushRequestRequestSchema as SendPushRequestRequestSchema, type index$5_SendPushResponse as SendPushResponse, index$5_SendPushResponseSchema as SendPushResponseSchema, type index$5_SubscribeRequestRequest as SubscribeRequestRequest, index$5_SubscribeRequestRequestSchema as SubscribeRequestRequestSchema, type index$5_SubscribeResponse as SubscribeResponse, index$5_SubscribeResponseSchema as SubscribeResponseSchema, type index$5_VapidPublicKeyResponse as VapidPublicKeyResponse, index$5_VapidPublicKeyResponseSchema as VapidPublicKeyResponseSchema };
1572
+ }
1573
+
1574
+ /**
1575
+ * Send push notification
1576
+ *
1577
+ * @method POST
1578
+ * @path /cfg/webpush/send/
1579
+ */
1580
+ declare function createWebpushSendCreate(data: SendPushRequestRequest, client?: any): Promise<SendPushResponse>;
1581
+ /**
1582
+ * Subscribe to push notifications
1583
+ *
1584
+ * @method POST
1585
+ * @path /cfg/webpush/subscribe/
1586
+ */
1587
+ declare function createWebpushSubscribeCreate(data: SubscribeRequestRequest, client?: any): Promise<SubscribeResponse>;
1588
+ /**
1589
+ * Get VAPID public key
1590
+ *
1591
+ * @method GET
1592
+ * @path /cfg/webpush/vapid/
1593
+ */
1594
+ declare function getWebpushVapidRetrieve(client?: any): Promise<VapidPublicKeyResponse>;
1595
+
1596
+ /**
1597
+ * AUTO-GENERATED FILE - DO NOT EDIT
1598
+ *
1599
+ * This file is automatically generated by DjangoCFG.
1600
+ * Any manual changes will be lost when the code is regenerated.
1601
+ *
1602
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1603
+ */
1604
+ /**
1605
+ * Typed Fetchers - Universal API functions
1606
+ *
1607
+ * Auto-generated from OpenAPI specification.
1608
+ * These functions work in any JavaScript environment.
1609
+ *
1610
+ * Features:
1611
+ * - Runtime validation with Zod
1612
+ * - Type-safe parameters and responses
1613
+ * - Works with any data-fetching library (SWR, React Query, etc)
1614
+ * - Server Component compatible
1615
+ *
1616
+ * Usage:
1617
+ * ```typescript
1618
+ * import * as fetchers from './fetchers'
1619
+ *
1620
+ * // Direct usage
1621
+ * const user = await fetchers.getUser(1)
1622
+ *
1623
+ * // With SWR
1624
+ * const { data } = useSWR('user-1', () => fetchers.getUser(1))
1625
+ *
1626
+ * // With React Query
1627
+ * const { data } = useQuery(['user', 1], () => fetchers.getUser(1))
1628
+ * ```
1629
+ */
1630
+
1631
+ declare const index$4_createWebpushSendCreate: typeof createWebpushSendCreate;
1632
+ declare const index$4_createWebpushSubscribeCreate: typeof createWebpushSubscribeCreate;
1633
+ declare const index$4_getWebpushVapidRetrieve: typeof getWebpushVapidRetrieve;
1634
+ declare namespace index$4 {
1635
+ export { index$4_createWebpushSendCreate as createWebpushSendCreate, index$4_createWebpushSubscribeCreate as createWebpushSubscribeCreate, index$4_getWebpushVapidRetrieve as getWebpushVapidRetrieve };
1636
+ }
1637
+
1638
+ /**
1639
+ * AUTO-GENERATED FILE - DO NOT EDIT
1640
+ *
1641
+ * This file is automatically generated by DjangoCFG.
1642
+ * Any manual changes will be lost when the code is regenerated.
1643
+ *
1644
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1645
+ */
1646
+ /**
1647
+ * Django CFG API - API Client with JWT Management
1648
+ *
1649
+ * Usage:
1650
+ * ```typescript
1651
+ * import { API } from './api';
1652
+ *
1653
+ * const api = new API('https://api.example.com');
1654
+ *
1655
+ * // Set JWT token
1656
+ * api.setToken('your-jwt-token', 'refresh-token');
1657
+ *
1658
+ * // Use API
1659
+ * const posts = await api.posts.list();
1660
+ * const user = await api.users.retrieve(1);
1661
+ *
1662
+ * // Check authentication
1663
+ * if (api.isAuthenticated()) {
1664
+ * // ...
1665
+ * }
1666
+ *
1667
+ * // Custom storage with logging (for Electron/Node.js)
1668
+ * import { MemoryStorageAdapter, APILogger } from './storage';
1669
+ * const logger = new APILogger({ enabled: true, logLevel: 'debug' });
1670
+ * const api = new API('https://api.example.com', {
1671
+ * storage: new MemoryStorageAdapter(logger),
1672
+ * loggerConfig: { enabled: true, logLevel: 'debug' }
1673
+ * });
1674
+ *
1675
+ * // Get OpenAPI schema
1676
+ * const schema = api.getSchema();
1677
+ * ```
1678
+ */
1679
+
1680
+ interface APIOptions$1 {
1681
+ /** Custom storage adapter (defaults to LocalStorageAdapter) */
1682
+ storage?: StorageAdapter$1;
1683
+ /** Retry configuration for failed requests */
1684
+ retryConfig?: RetryConfig$1;
1685
+ /** Logger configuration */
1686
+ loggerConfig?: Partial<LoggerConfig$1>;
1687
+ }
1688
+ declare class API$1 {
1689
+ private baseUrl;
1690
+ private _client;
1691
+ private _token;
1692
+ private _refreshToken;
1693
+ private storage;
1694
+ private options?;
1695
+ web_push: WebPush;
1696
+ constructor(baseUrl: string, options?: APIOptions$1);
1697
+ private _loadTokensFromStorage;
1698
+ private _reinitClients;
1699
+ private _injectAuthHeader;
1700
+ /**
1701
+ * Get current JWT token
1702
+ */
1703
+ getToken(): string | null;
1704
+ /**
1705
+ * Get current refresh token
1706
+ */
1707
+ getRefreshToken(): string | null;
1708
+ /**
1709
+ * Set JWT token and refresh token
1710
+ * @param token - JWT access token
1711
+ * @param refreshToken - JWT refresh token (optional)
1712
+ */
1713
+ setToken(token: string, refreshToken?: string): void;
1714
+ /**
1715
+ * Clear all tokens
1716
+ */
1717
+ clearTokens(): void;
1718
+ /**
1719
+ * Check if user is authenticated
1720
+ */
1721
+ isAuthenticated(): boolean;
1722
+ /**
1723
+ * Update base URL and reinitialize clients
1724
+ * @param url - New base URL
1725
+ */
1726
+ setBaseUrl(url: string): void;
1727
+ /**
1728
+ * Get current base URL
1729
+ */
1730
+ getBaseUrl(): string;
1731
+ /**
1732
+ * Get OpenAPI schema path
1733
+ * @returns Path to the OpenAPI schema JSON file
1734
+ *
1735
+ * Note: The OpenAPI schema is available in the schema.json file.
1736
+ * You can load it dynamically using:
1737
+ * ```typescript
1738
+ * const schema = await fetch('./schema.json').then(r => r.json());
1739
+ * // or using fs in Node.js:
1740
+ * // const schema = JSON.parse(fs.readFileSync('./schema.json', 'utf-8'));
1741
+ * ```
1742
+ */
1743
+ getSchemaPath(): string;
1744
+ }
1745
+
1746
+ /**
1747
+ * AUTO-GENERATED FILE - DO NOT EDIT
1748
+ *
1749
+ * This file is automatically generated by DjangoCFG.
1750
+ * Any manual changes will be lost when the code is regenerated.
1751
+ *
1752
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
1753
+ */
1754
+ /**
1755
+ * Request to list active channels.
1756
+ *
1757
+ * Request model (no read-only fields).
1758
+ */
1759
+ interface CentrifugoChannelsRequestRequest$1 {
1760
+ /** Pattern to filter channels (e.g., 'user:*') */
1761
+ pattern?: string | null;
1762
+ }
1763
+ /**
1764
+ * List of active channels response.
1765
+ *
1766
+ * Response model (includes read-only fields).
1767
+ */
1768
+ interface CentrifugoChannelsResponse$1 {
1769
+ error?: CentrifugoError$1;
1770
+ result?: CentrifugoChannelsResult$1;
1771
+ }
1772
+ /**
1773
+ * Request to get channel history.
1774
+ *
1775
+ * Request model (no read-only fields).
1776
+ */
1777
+ interface CentrifugoHistoryRequestRequest$1 {
1778
+ /** Channel name */
1779
+ channel: string;
1780
+ /** Maximum number of messages to return */
1781
+ limit?: number | null;
1782
+ since?: CentrifugoStreamPosition$1;
1783
+ /** Reverse message order (newest first) */
1784
+ reverse?: boolean | null;
1785
+ }
1786
+ /**
1787
+ * Channel history response.
1788
+ *
1789
+ * Response model (includes read-only fields).
1790
+ */
1791
+ interface CentrifugoHistoryResponse$1 {
1792
+ error?: CentrifugoError$1;
1793
+ result?: CentrifugoHistoryResult$1;
1794
+ }
1795
+ /**
1796
+ * Server info response.
1797
+ *
1798
+ * Response model (includes read-only fields).
1799
+ */
1800
+ interface CentrifugoInfoResponse$1 {
1801
+ error?: CentrifugoError$1;
1802
+ result?: CentrifugoInfoResult$1;
1803
+ }
1804
+ /**
1805
+ * Request to get channel presence.
1806
+ *
1807
+ * Request model (no read-only fields).
1808
+ */
1809
+ interface CentrifugoPresenceRequestRequest$1 {
1810
+ /** Channel name */
1811
+ channel: string;
1812
+ }
1813
+ /**
1814
+ * Channel presence response.
1815
+ *
1816
+ * Response model (includes read-only fields).
1817
+ */
1818
+ interface CentrifugoPresenceResponse$1 {
1819
+ error?: CentrifugoError$1;
1820
+ result?: CentrifugoPresenceResult$1;
1821
+ }
1822
+ /**
1823
+ * Request to get channel presence statistics.
1824
+ *
1825
+ * Request model (no read-only fields).
1826
+ */
1827
+ interface CentrifugoPresenceStatsRequestRequest$1 {
1828
+ /** Channel name */
1829
+ channel: string;
1830
+ }
1831
+ /**
1832
+ * Channel presence stats response.
1833
+ *
1834
+ * Response model (includes read-only fields).
1835
+ */
1836
+ interface CentrifugoPresenceStatsResponse$1 {
1837
+ error?: CentrifugoError$1;
1838
+ result?: CentrifugoPresenceStatsResult$1;
1839
+ }
1840
+ /**
1841
+ * Centrifugo API error structure.
1842
+ *
1843
+ * Response model (includes read-only fields).
1844
+ */
1845
+ interface CentrifugoError$1 {
1846
+ /** Error code (0 = no error) */
1847
+ code?: number;
1848
+ /** Error message */
1849
+ message?: string;
1850
+ }
1851
+ /**
1852
+ * Channels result wrapper.
1853
+ *
1854
+ * Response model (includes read-only fields).
1855
+ */
1856
+ interface CentrifugoChannelsResult$1 {
1857
+ /** Map of channel names to channel info */
1858
+ channels: Record<string, CentrifugoChannelInfo$1>;
1859
+ }
1860
+ /**
1861
+ * Stream position for pagination.
1862
+ *
1863
+ * Response model (includes read-only fields).
1864
+ */
1865
+ interface CentrifugoStreamPosition$1 {
1866
+ /** Stream offset */
1867
+ offset: number;
1868
+ /** Stream epoch */
1869
+ epoch: string;
1870
+ }
1871
+ /**
1872
+ * History result wrapper.
1873
+ *
1874
+ * Response model (includes read-only fields).
1875
+ */
1876
+ interface CentrifugoHistoryResult$1 {
1877
+ /** List of publications */
1878
+ publications: Array<CentrifugoPublication$1>;
1879
+ /** Current stream epoch */
1880
+ epoch: string;
1881
+ /** Latest stream offset */
1882
+ offset: number;
1883
+ }
1884
+ /**
1885
+ * Info result wrapper.
1886
+ *
1887
+ * Response model (includes read-only fields).
1888
+ */
1889
+ interface CentrifugoInfoResult$1 {
1890
+ /** List of Centrifugo nodes */
1891
+ nodes: Array<CentrifugoNodeInfo$1>;
1892
+ }
1893
+ /**
1894
+ * Presence result wrapper.
1895
+ *
1896
+ * Response model (includes read-only fields).
1897
+ */
1898
+ interface CentrifugoPresenceResult$1 {
1899
+ /** Map of client IDs to client info */
1900
+ presence: Record<string, CentrifugoClientInfo$1>;
1901
+ }
1902
+ /**
1903
+ * Presence stats result.
1904
+ *
1905
+ * Response model (includes read-only fields).
1906
+ */
1907
+ interface CentrifugoPresenceStatsResult$1 {
1908
+ /** Number of connected clients */
1909
+ num_clients: number;
1910
+ /** Number of unique users */
1911
+ num_users: number;
1912
+ }
1913
+ /**
1914
+ * Information about a single channel.
1915
+ *
1916
+ * Response model (includes read-only fields).
1917
+ */
1918
+ interface CentrifugoChannelInfo$1 {
1919
+ /** Number of connected clients in channel */
1920
+ num_clients: number;
1921
+ }
1922
+ /**
1923
+ * Single publication (message) in channel history.
1924
+ *
1925
+ * Response model (includes read-only fields).
1926
+ */
1927
+ interface CentrifugoPublication$1 {
1928
+ /** Message payload */
1929
+ data: Record<string, any>;
1930
+ info?: CentrifugoClientInfo$1;
1931
+ /** Message offset in channel stream */
1932
+ offset: number;
1933
+ /** Optional message tags */
1934
+ tags?: Record<string, any> | null;
1935
+ }
1936
+ /**
1937
+ * Information about a single Centrifugo node.
1938
+ *
1939
+ * Response model (includes read-only fields).
1940
+ */
1941
+ interface CentrifugoNodeInfo$1 {
1942
+ /** Unique node identifier */
1943
+ uid: string;
1944
+ /** Node name */
1945
+ name: string;
1946
+ /** Centrifugo version */
1947
+ version: string;
1948
+ /** Number of connected clients */
1949
+ num_clients: number;
1950
+ /** Number of unique users */
1951
+ num_users: number;
1952
+ /** Number of active channels */
1953
+ num_channels: number;
1954
+ /** Node uptime in seconds */
1955
+ uptime: number;
1956
+ /** Total number of subscriptions */
1957
+ num_subs: number;
1958
+ metrics?: CentrifugoMetrics$1;
1959
+ process?: CentrifugoProcess$1;
1960
+ }
1961
+ /**
1962
+ * Information about connected client.
1963
+ *
1964
+ * Response model (includes read-only fields).
1965
+ */
1966
+ interface CentrifugoClientInfo$1 {
1967
+ /** User ID */
1968
+ user: string;
1969
+ /** Client UUID */
1970
+ client: string;
1971
+ /** Connection metadata */
1972
+ conn_info?: Record<string, any> | null;
1973
+ /** Channel-specific metadata */
1974
+ chan_info?: Record<string, any> | null;
1975
+ }
1976
+ /**
1977
+ * Server metrics.
1978
+ *
1979
+ * Response model (includes read-only fields).
1980
+ */
1981
+ interface CentrifugoMetrics$1 {
1982
+ /** Metrics collection interval */
1983
+ interval: number;
1984
+ /** Metric name to value mapping */
1985
+ items: Record<string, any>;
1986
+ }
1987
+ /**
1988
+ * Process information.
1989
+ *
1990
+ * Response model (includes read-only fields).
1991
+ */
1992
+ interface CentrifugoProcess$1 {
1993
+ /** CPU usage percentage */
1994
+ cpu: number;
1995
+ /** Resident set size in bytes */
1996
+ rss: number;
1997
+ }
1998
+
1999
+ /**
2000
+ * API endpoints for Centrifugo Admin API.
2001
+ */
2002
+ declare class CentrifugoAdminApi {
2003
+ private client;
2004
+ constructor(client: any);
2005
+ /**
2006
+ * Get connection token for dashboard
2007
+ *
2008
+ * Returns JWT token and config for WebSocket connection to Centrifugo.
2009
+ */
2010
+ centrifugoServerAuthTokenCreate(): Promise<any>;
2011
+ /**
2012
+ * List active channels
2013
+ *
2014
+ * Returns list of active channels with optional pattern filter.
2015
+ */
2016
+ centrifugoServerChannelsCreate(data: CentrifugoChannelsRequestRequest$1): Promise<CentrifugoChannelsResponse$1>;
2017
+ /**
2018
+ * Get channel history
2019
+ *
2020
+ * Returns message history for a channel.
2021
+ */
2022
+ centrifugoServerHistoryCreate(data: CentrifugoHistoryRequestRequest$1): Promise<CentrifugoHistoryResponse$1>;
2023
+ /**
2024
+ * Get Centrifugo server info
2025
+ *
2026
+ * Returns server information including node count, version, and uptime.
2027
+ */
2028
+ centrifugoServerInfoCreate(): Promise<CentrifugoInfoResponse$1>;
2029
+ /**
2030
+ * Get channel presence
2031
+ *
2032
+ * Returns list of clients currently subscribed to a channel.
2033
+ */
2034
+ centrifugoServerPresenceCreate(data: CentrifugoPresenceRequestRequest$1): Promise<CentrifugoPresenceResponse$1>;
2035
+ /**
2036
+ * Get channel presence statistics
2037
+ *
2038
+ * Returns quick statistics about channel presence (num_clients,
2039
+ * num_users).
2040
+ */
2041
+ centrifugoServerPresenceStatsCreate(data: CentrifugoPresenceStatsRequestRequest$1): Promise<CentrifugoPresenceStatsResponse$1>;
2042
+ }
2043
+
2044
+ /**
2045
+ * AUTO-GENERATED FILE - DO NOT EDIT
2046
+ *
2047
+ * This file is automatically generated by DjangoCFG.
2048
+ * Any manual changes will be lost when the code is regenerated.
2049
+ *
2050
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2051
+ */
2052
+ /**
2053
+ * Response model for Centrifugo connection token.
2054
+ *
2055
+ * Response model (includes read-only fields).
2056
+ */
2057
+ interface ConnectionTokenResponse$1 {
2058
+ /** JWT token for Centrifugo connection */
2059
+ token: string;
2060
+ /** Centrifugo WebSocket URL */
2061
+ centrifugo_url: string;
2062
+ /** Token expiration time (ISO 8601) */
2063
+ expires_at: string;
2064
+ /** List of allowed channels */
2065
+ channels: Array<string>;
2066
+ }
2067
+
2068
+ /**
2069
+ * API endpoints for Centrifugo Auth.
2070
+ */
2071
+ declare class CentrifugoAuth {
2072
+ private client;
2073
+ constructor(client: any);
2074
+ /**
2075
+ * Get Centrifugo connection token
2076
+ *
2077
+ * Generate JWT token for WebSocket connection to Centrifugo. Token
2078
+ * includes user's allowed channels based on their permissions. Requires
2079
+ * authentication.
2080
+ */
2081
+ tokenRetrieve(): Promise<ConnectionTokenResponse$1>;
2082
+ }
2083
+
2084
+ /**
2085
+ * AUTO-GENERATED FILE - DO NOT EDIT
2086
+ *
2087
+ * This file is automatically generated by DjangoCFG.
2088
+ * Any manual changes will be lost when the code is regenerated.
2089
+ *
2090
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2091
+ */
2092
+ /**
2093
+ * List of channel statistics.
2094
+ *
2095
+ * Response model (includes read-only fields).
2096
+ */
2097
+ interface ChannelList$1 {
2098
+ /** Channel statistics */
2099
+ channels: Array<ChannelStats$1>;
2100
+ /** Total number of channels */
2101
+ total_channels: number;
2102
+ }
2103
+ /**
2104
+ * Health check response.
2105
+ *
2106
+ * Response model (includes read-only fields).
2107
+ */
2108
+ interface CentrifugoHealthCheck$1 {
2109
+ /** Health status: healthy or unhealthy */
2110
+ status: string;
2111
+ /** Configured wrapper URL */
2112
+ wrapper_url: string;
2113
+ /** Whether API key is configured */
2114
+ has_api_key: boolean;
2115
+ /** Current timestamp */
2116
+ timestamp: string;
2117
+ }
2118
+ /**
2119
+ * Overview statistics for Centrifugo publishes.
2120
+ *
2121
+ * Response model (includes read-only fields).
2122
+ */
2123
+ interface CentrifugoOverviewStats$1 {
2124
+ /** Total publishes in period */
2125
+ total: number;
2126
+ /** Successful publishes */
2127
+ successful: number;
2128
+ /** Failed publishes */
2129
+ failed: number;
2130
+ /** Timeout publishes */
2131
+ timeout: number;
2132
+ /** Success rate percentage */
2133
+ success_rate: number;
2134
+ /** Average duration in milliseconds */
2135
+ avg_duration_ms: number;
2136
+ /** Average ACKs received */
2137
+ avg_acks_received: number;
2138
+ /** Statistics period in hours */
2139
+ period_hours: number;
2140
+ }
2141
+ /**
2142
+ *
2143
+ * Response model (includes read-only fields).
2144
+ */
2145
+ interface PaginatedPublishList$1 {
2146
+ /** Total number of items across all pages */
2147
+ count: number;
2148
+ /** Current page number (1-based) */
2149
+ page: number;
2150
+ /** Total number of pages */
2151
+ pages: number;
2152
+ /** Number of items per page */
2153
+ page_size: number;
2154
+ /** Whether there is a next page */
2155
+ has_next: boolean;
2156
+ /** Whether there is a previous page */
2157
+ has_previous: boolean;
2158
+ /** Next page number (null if no next page) */
2159
+ next_page?: number | null;
2160
+ /** Previous page number (null if no previous page) */
2161
+ previous_page?: number | null;
2162
+ /** Array of items for current page */
2163
+ results: Array<Publish$1>;
2164
+ }
2165
+ /**
2166
+ * Timeline response with hourly/daily breakdown for DRF.
2167
+ *
2168
+ * Response model (includes read-only fields).
2169
+ */
2170
+ interface TimelineResponse$1 {
2171
+ timeline: Array<TimelineItem$1>;
2172
+ period_hours: number;
2173
+ interval: string;
2174
+ }
2175
+ /**
2176
+ * Statistics per channel.
2177
+ *
2178
+ * Response model (includes read-only fields).
2179
+ */
2180
+ interface ChannelStats$1 {
2181
+ /** Channel name */
2182
+ channel: string;
2183
+ /** Total publishes to this channel */
2184
+ total: number;
2185
+ /** Successful publishes */
2186
+ successful: number;
2187
+ /** Failed publishes */
2188
+ failed: number;
2189
+ /** Average duration */
2190
+ avg_duration_ms: number;
2191
+ /** Average ACKs received */
2192
+ avg_acks: number;
2193
+ /** Last activity timestamp (ISO format) */
2194
+ last_activity_at: string | null;
2195
+ }
2196
+ /**
2197
+ * Single publish item for DRF pagination.
2198
+ *
2199
+ * Response model (includes read-only fields).
2200
+ */
2201
+ interface Publish$1 {
2202
+ message_id: string;
2203
+ channel: string;
2204
+ status: string;
2205
+ wait_for_ack: boolean;
2206
+ acks_received: number;
2207
+ acks_expected: number | null;
2208
+ duration_ms: number | null;
2209
+ created_at: string;
2210
+ completed_at: string | null;
2211
+ error_code: string | null;
2212
+ error_message: string | null;
2213
+ }
2214
+ /**
2215
+ * Single timeline data point for DRF.
2216
+ *
2217
+ * Response model (includes read-only fields).
2218
+ */
2219
+ interface TimelineItem$1 {
2220
+ timestamp: string;
2221
+ count: number;
2222
+ successful: number;
2223
+ failed: number;
2224
+ timeout: number;
2225
+ }
2226
+
2227
+ /**
2228
+ * API endpoints for Centrifugo Monitoring.
2229
+ */
2230
+ declare class CentrifugoMonitoring {
2231
+ private client;
2232
+ constructor(client: any);
2233
+ centrifugoMonitorChannelsRetrieve(hours?: number): Promise<ChannelList$1[]>;
2234
+ centrifugoMonitorChannelsRetrieve(params?: {
2235
+ hours?: number;
2236
+ }): Promise<ChannelList$1[]>;
2237
+ /**
2238
+ * Get Centrifugo health status
2239
+ *
2240
+ * Returns the current health status of the Centrifugo client.
2241
+ */
2242
+ centrifugoMonitorHealthRetrieve(): Promise<CentrifugoHealthCheck$1>;
2243
+ centrifugoMonitorOverviewRetrieve(hours?: number): Promise<CentrifugoOverviewStats$1>;
2244
+ centrifugoMonitorOverviewRetrieve(params?: {
2245
+ hours?: number;
2246
+ }): Promise<CentrifugoOverviewStats$1>;
2247
+ centrifugoMonitorPublishesList(channel?: string, page?: number, page_size?: number, status?: string): Promise<PaginatedPublishList$1>;
2248
+ centrifugoMonitorPublishesList(params?: {
2249
+ channel?: string;
2250
+ page?: number;
2251
+ page_size?: number;
2252
+ status?: string;
2253
+ }): Promise<PaginatedPublishList$1>;
2254
+ centrifugoMonitorTimelineRetrieve(hours?: number, interval?: string): Promise<TimelineResponse$1>;
2255
+ centrifugoMonitorTimelineRetrieve(params?: {
2256
+ hours?: number;
2257
+ interval?: string;
2258
+ }): Promise<TimelineResponse$1>;
2259
+ }
2260
+
2261
+ /**
2262
+ * AUTO-GENERATED FILE - DO NOT EDIT
2263
+ *
2264
+ * This file is automatically generated by DjangoCFG.
2265
+ * Any manual changes will be lost when the code is regenerated.
2266
+ *
2267
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2268
+ */
2269
+ /**
2270
+ * Request model for test message publishing.
2271
+ *
2272
+ * Request model (no read-only fields).
2273
+ */
2274
+ interface PublishTestRequestRequest$1 {
2275
+ /** Target channel name */
2276
+ channel: string;
2277
+ /** Message data (any JSON object) */
2278
+ data: Record<string, any>;
2279
+ /** Wait for client acknowledgment */
2280
+ wait_for_ack?: boolean;
2281
+ /** ACK timeout in seconds */
2282
+ ack_timeout?: number;
2283
+ }
2284
+ /**
2285
+ * Response model for test message publishing.
2286
+ *
2287
+ * Response model (includes read-only fields).
2288
+ */
2289
+ interface PublishTestResponse$1 {
2290
+ /** Whether publish succeeded */
2291
+ success: boolean;
2292
+ /** Unique message ID */
2293
+ message_id: string;
2294
+ /** Target channel */
2295
+ channel: string;
2296
+ /** Number of ACKs received */
2297
+ acks_received?: number;
2298
+ /** Whether message was delivered */
2299
+ delivered?: boolean;
2300
+ /** Error message if failed */
2301
+ error?: string | null;
2302
+ }
2303
+ /**
2304
+ * Request model for manual ACK sending.
2305
+ *
2306
+ * Request model (no read-only fields).
2307
+ */
2308
+ interface ManualAckRequestRequest$1 {
2309
+ /** Message ID to acknowledge */
2310
+ message_id: string;
2311
+ /** Client ID sending the ACK */
2312
+ client_id: string;
2313
+ }
2314
+ /**
2315
+ * Response model for manual ACK.
2316
+ *
2317
+ * Response model (includes read-only fields).
2318
+ */
2319
+ interface ManualAckResponse$1 {
2320
+ /** Whether ACK was sent successfully */
2321
+ success: boolean;
2322
+ /** Message ID that was acknowledged */
2323
+ message_id: string;
2324
+ /** Error message if failed */
2325
+ error?: string | null;
2326
+ }
2327
+
2328
+ /**
2329
+ * API endpoints for Centrifugo Testing.
2330
+ */
2331
+ declare class CentrifugoTesting {
2332
+ private client;
2333
+ constructor(client: any);
2334
+ /**
2335
+ * Publish test message
2336
+ *
2337
+ * Publish test message to Centrifugo via wrapper with optional ACK
2338
+ * tracking.
2339
+ */
2340
+ publishTestCreate(data: PublishTestRequestRequest$1): Promise<PublishTestResponse$1>;
2341
+ /**
2342
+ * Publish with database logging
2343
+ *
2344
+ * Publish message using CentrifugoClient with database logging. This will
2345
+ * create CentrifugoLog records.
2346
+ */
2347
+ publishWithLoggingCreate(data: PublishTestRequestRequest$1): Promise<PublishTestResponse$1>;
2348
+ /**
2349
+ * Send manual ACK
2350
+ *
2351
+ * Manually send ACK for a message to the wrapper. Pass message_id in
2352
+ * request body.
2353
+ */
2354
+ sendAckCreate(data: ManualAckRequestRequest$1): Promise<ManualAckResponse$1>;
2355
+ }
2356
+
2357
+ /**
2358
+ * AUTO-GENERATED FILE - DO NOT EDIT
2359
+ *
2360
+ * This file is automatically generated by DjangoCFG.
2361
+ * Any manual changes will be lost when the code is regenerated.
2362
+ *
2363
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2364
+ */
2365
+ /**
2366
+ * API Logger with Consola
2367
+ * Beautiful console logging for API requests and responses
2368
+ *
2369
+ * Installation:
2370
+ * npm install consola
2371
+ */
2372
+
2373
+ /**
2374
+ * Logger configuration
2375
+ */
2376
+ interface LoggerConfig {
2377
+ /** Enable logging */
2378
+ enabled: boolean;
2379
+ /** Log requests */
2380
+ logRequests: boolean;
2381
+ /** Log responses */
2382
+ logResponses: boolean;
2383
+ /** Log errors */
2384
+ logErrors: boolean;
2385
+ /** Log request/response bodies */
2386
+ logBodies: boolean;
2387
+ /** Log headers (excluding sensitive ones) */
2388
+ logHeaders: boolean;
2389
+ /** Custom consola instance */
2390
+ consola?: ConsolaInstance;
2391
+ }
2392
+
2393
+ /**
2394
+ * AUTO-GENERATED FILE - DO NOT EDIT
2395
+ *
2396
+ * This file is automatically generated by DjangoCFG.
2397
+ * Any manual changes will be lost when the code is regenerated.
2398
+ *
2399
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2400
+ */
2401
+ /**
2402
+ * Retry Configuration and Utilities
2403
+ *
2404
+ * Provides automatic retry logic for failed HTTP requests using p-retry.
2405
+ * Retries only on network errors and server errors (5xx), not client errors (4xx).
2406
+ */
2407
+ /**
2408
+ * Information about a failed retry attempt.
2409
+ */
2410
+ interface FailedAttemptInfo {
2411
+ /** The error that caused the failure */
2412
+ error: Error;
2413
+ /** The attempt number (1-indexed) */
2414
+ attemptNumber: number;
2415
+ /** Number of retries left */
2416
+ retriesLeft: number;
2417
+ }
2418
+ /**
2419
+ * Retry configuration options.
2420
+ *
2421
+ * Uses exponential backoff with jitter by default to avoid thundering herd.
2422
+ */
2423
+ interface RetryConfig {
2424
+ /**
2425
+ * Maximum number of retry attempts.
2426
+ * @default 3
2427
+ */
2428
+ retries?: number;
2429
+ /**
2430
+ * Exponential backoff factor.
2431
+ * @default 2
2432
+ */
2433
+ factor?: number;
2434
+ /**
2435
+ * Minimum wait time between retries (ms).
2436
+ * @default 1000
2437
+ */
2438
+ minTimeout?: number;
2439
+ /**
2440
+ * Maximum wait time between retries (ms).
2441
+ * @default 60000
2442
+ */
2443
+ maxTimeout?: number;
2444
+ /**
2445
+ * Add randomness to wait times (jitter).
2446
+ * Helps avoid thundering herd problem.
2447
+ * @default true
2448
+ */
2449
+ randomize?: boolean;
2450
+ /**
2451
+ * Callback called on each failed attempt.
2452
+ */
2453
+ onFailedAttempt?: (info: FailedAttemptInfo) => void;
2454
+ }
2455
+
2456
+ /**
2457
+ * AUTO-GENERATED FILE - DO NOT EDIT
2458
+ *
2459
+ * This file is automatically generated by DjangoCFG.
2460
+ * Any manual changes will be lost when the code is regenerated.
2461
+ *
2462
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
2463
+ */
2464
+ /**
2465
+ * Storage adapters for cross-platform token storage.
2466
+ *
2467
+ * Supports:
2468
+ * - LocalStorage (browser)
2469
+ * - Cookies (SSR/browser)
2470
+ * - Memory (Node.js/Electron/testing)
2471
+ */
2472
+
2473
+ /**
2474
+ * Storage adapter interface for cross-platform token storage.
2475
+ */
2476
+ interface StorageAdapter {
2477
+ getItem(key: string): string | null;
2478
+ setItem(key: string, value: string): void;
2479
+ removeItem(key: string): void;
2480
+ }
2481
+
2482
+ /**
2483
+ * Zod schema for CentrifugoChannelInfo
2484
+ *
2485
+ * This schema provides runtime validation and type inference.
2486
+ * * Information about a single channel.
2487
+ * */
2488
+
2489
+ /**
2490
+ * Information about a single channel.
2491
+ */
2492
+ declare const CentrifugoChannelInfoSchema: z.ZodObject<{
2493
+ num_clients: z.ZodInt;
2494
+ }, z.core.$strip>;
2495
+ /**
2496
+ * Infer TypeScript type from Zod schema
2497
+ */
2498
+ type CentrifugoChannelInfo = z.infer<typeof CentrifugoChannelInfoSchema>;
2499
+
2500
+ /**
2501
+ * Zod schema for CentrifugoChannelsRequestRequest
2502
+ *
2503
+ * This schema provides runtime validation and type inference.
2504
+ * * Request to list active channels.
2505
+ * */
2506
+
2507
+ /**
2508
+ * Request to list active channels.
2509
+ */
2510
+ declare const CentrifugoChannelsRequestRequestSchema: z.ZodObject<{
2511
+ pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2512
+ }, z.core.$strip>;
2513
+ /**
2514
+ * Infer TypeScript type from Zod schema
2515
+ */
2516
+ type CentrifugoChannelsRequestRequest = z.infer<typeof CentrifugoChannelsRequestRequestSchema>;
2517
+
2518
+ /**
2519
+ * Zod schema for CentrifugoChannelsResponse
2520
+ *
2521
+ * This schema provides runtime validation and type inference.
2522
+ * * List of active channels response.
2523
+ * */
2524
+
2525
+ /**
2526
+ * List of active channels response.
2527
+ */
2528
+ declare const CentrifugoChannelsResponseSchema: z.ZodObject<{
2529
+ error: z.ZodOptional<z.ZodObject<{
2530
+ code: z.ZodOptional<z.ZodInt>;
2531
+ message: z.ZodOptional<z.ZodString>;
2532
+ }, z.core.$strip>>;
2533
+ result: z.ZodOptional<z.ZodObject<{
2534
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
2535
+ num_clients: z.ZodInt;
2536
+ }, z.core.$strip>>;
2537
+ }, z.core.$strip>>;
2538
+ }, z.core.$strip>;
2539
+ /**
2540
+ * Infer TypeScript type from Zod schema
2541
+ */
2542
+ type CentrifugoChannelsResponse = z.infer<typeof CentrifugoChannelsResponseSchema>;
2543
+
2544
+ /**
2545
+ * Zod schema for CentrifugoChannelsResult
2546
+ *
2547
+ * This schema provides runtime validation and type inference.
2548
+ * * Channels result wrapper.
2549
+ * */
2550
+
2551
+ /**
2552
+ * Channels result wrapper.
2553
+ */
2554
+ declare const CentrifugoChannelsResultSchema: z.ZodObject<{
2555
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
2556
+ num_clients: z.ZodInt;
2557
+ }, z.core.$strip>>;
2558
+ }, z.core.$strip>;
2559
+ /**
2560
+ * Infer TypeScript type from Zod schema
2561
+ */
2562
+ type CentrifugoChannelsResult = z.infer<typeof CentrifugoChannelsResultSchema>;
2563
+
2564
+ /**
2565
+ * Zod schema for CentrifugoClientInfo
2566
+ *
2567
+ * This schema provides runtime validation and type inference.
2568
+ * * Information about connected client.
2569
+ * */
2570
+
2571
+ /**
2572
+ * Information about connected client.
2573
+ */
2574
+ declare const CentrifugoClientInfoSchema: z.ZodObject<{
2575
+ user: z.ZodString;
2576
+ client: z.ZodString;
2577
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2578
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2579
+ }, z.core.$strip>;
2580
+ /**
2581
+ * Infer TypeScript type from Zod schema
2582
+ */
2583
+ type CentrifugoClientInfo = z.infer<typeof CentrifugoClientInfoSchema>;
2584
+
2585
+ /**
2586
+ * Zod schema for CentrifugoError
2587
+ *
2588
+ * This schema provides runtime validation and type inference.
2589
+ * * Centrifugo API error structure.
2590
+ * */
2591
+
2592
+ /**
2593
+ * Centrifugo API error structure.
2594
+ */
2595
+ declare const CentrifugoErrorSchema: z.ZodObject<{
2596
+ code: z.ZodOptional<z.ZodInt>;
2597
+ message: z.ZodOptional<z.ZodString>;
2598
+ }, z.core.$strip>;
2599
+ /**
2600
+ * Infer TypeScript type from Zod schema
2601
+ */
2602
+ type CentrifugoError = z.infer<typeof CentrifugoErrorSchema>;
2603
+
2604
+ /**
2605
+ * Zod schema for CentrifugoHealthCheck
2606
+ *
2607
+ * This schema provides runtime validation and type inference.
2608
+ * * Health check response.
2609
+ * */
2610
+
2611
+ /**
2612
+ * Health check response.
2613
+ */
2614
+ declare const CentrifugoHealthCheckSchema: z.ZodObject<{
2615
+ status: z.ZodString;
2616
+ wrapper_url: z.ZodString;
2617
+ has_api_key: z.ZodBoolean;
2618
+ timestamp: z.ZodString;
2619
+ }, z.core.$strip>;
2620
+ /**
2621
+ * Infer TypeScript type from Zod schema
2622
+ */
2623
+ type CentrifugoHealthCheck = z.infer<typeof CentrifugoHealthCheckSchema>;
2624
+
2625
+ /**
2626
+ * Zod schema for CentrifugoHistoryRequestRequest
2627
+ *
2628
+ * This schema provides runtime validation and type inference.
2629
+ * * Request to get channel history.
2630
+ * */
2631
+
2632
+ /**
2633
+ * Request to get channel history.
2634
+ */
2635
+ declare const CentrifugoHistoryRequestRequestSchema: z.ZodObject<{
2636
+ channel: z.ZodString;
2637
+ limit: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2638
+ since: z.ZodOptional<z.ZodObject<{
2639
+ offset: z.ZodInt;
2640
+ epoch: z.ZodString;
2641
+ }, z.core.$strip>>;
2642
+ reverse: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2643
+ }, z.core.$strip>;
2644
+ /**
2645
+ * Infer TypeScript type from Zod schema
2646
+ */
2647
+ type CentrifugoHistoryRequestRequest = z.infer<typeof CentrifugoHistoryRequestRequestSchema>;
2648
+
2649
+ /**
2650
+ * Zod schema for CentrifugoHistoryResponse
2651
+ *
2652
+ * This schema provides runtime validation and type inference.
2653
+ * * Channel history response.
2654
+ * */
2655
+
2656
+ /**
2657
+ * Channel history response.
2658
+ */
2659
+ declare const CentrifugoHistoryResponseSchema: z.ZodObject<{
2660
+ error: z.ZodOptional<z.ZodObject<{
2661
+ code: z.ZodOptional<z.ZodInt>;
2662
+ message: z.ZodOptional<z.ZodString>;
2663
+ }, z.core.$strip>>;
2664
+ result: z.ZodOptional<z.ZodObject<{
2665
+ publications: z.ZodArray<z.ZodObject<{
2666
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
2667
+ info: z.ZodOptional<z.ZodObject<{
2668
+ user: z.ZodString;
2669
+ client: z.ZodString;
2670
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2671
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2672
+ }, z.core.$strip>>;
2673
+ offset: z.ZodInt;
2674
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2675
+ }, z.core.$strip>>;
2676
+ epoch: z.ZodString;
2677
+ offset: z.ZodInt;
2678
+ }, z.core.$strip>>;
2679
+ }, z.core.$strip>;
2680
+ /**
2681
+ * Infer TypeScript type from Zod schema
2682
+ */
2683
+ type CentrifugoHistoryResponse = z.infer<typeof CentrifugoHistoryResponseSchema>;
2684
+
2685
+ /**
2686
+ * Zod schema for CentrifugoHistoryResult
2687
+ *
2688
+ * This schema provides runtime validation and type inference.
2689
+ * * History result wrapper.
2690
+ * */
2691
+
2692
+ /**
2693
+ * History result wrapper.
2694
+ */
2695
+ declare const CentrifugoHistoryResultSchema: z.ZodObject<{
2696
+ publications: z.ZodArray<z.ZodObject<{
2697
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
2698
+ info: z.ZodOptional<z.ZodObject<{
2699
+ user: z.ZodString;
2700
+ client: z.ZodString;
2701
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2702
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2703
+ }, z.core.$strip>>;
2704
+ offset: z.ZodInt;
2705
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2706
+ }, z.core.$strip>>;
2707
+ epoch: z.ZodString;
2708
+ offset: z.ZodInt;
2709
+ }, z.core.$strip>;
2710
+ /**
2711
+ * Infer TypeScript type from Zod schema
2712
+ */
2713
+ type CentrifugoHistoryResult = z.infer<typeof CentrifugoHistoryResultSchema>;
2714
+
2715
+ /**
2716
+ * Zod schema for CentrifugoInfoResponse
2717
+ *
2718
+ * This schema provides runtime validation and type inference.
2719
+ * * Server info response.
2720
+ * */
2721
+
2722
+ /**
2723
+ * Server info response.
2724
+ */
2725
+ declare const CentrifugoInfoResponseSchema: z.ZodObject<{
2726
+ error: z.ZodOptional<z.ZodObject<{
2727
+ code: z.ZodOptional<z.ZodInt>;
2728
+ message: z.ZodOptional<z.ZodString>;
2729
+ }, z.core.$strip>>;
2730
+ result: z.ZodOptional<z.ZodObject<{
2731
+ nodes: z.ZodArray<z.ZodObject<{
2732
+ uid: z.ZodString;
2733
+ name: z.ZodString;
2734
+ version: z.ZodString;
2735
+ num_clients: z.ZodInt;
2736
+ num_users: z.ZodInt;
2737
+ num_channels: z.ZodInt;
2738
+ uptime: z.ZodInt;
2739
+ num_subs: z.ZodInt;
2740
+ metrics: z.ZodOptional<z.ZodObject<{
2741
+ interval: z.ZodNumber;
2742
+ items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2743
+ }, z.core.$strip>>;
2744
+ process: z.ZodOptional<z.ZodObject<{
2745
+ cpu: z.ZodNumber;
2746
+ rss: z.ZodInt;
2747
+ }, z.core.$strip>>;
2748
+ }, z.core.$strip>>;
2749
+ }, z.core.$strip>>;
2750
+ }, z.core.$strip>;
2751
+ /**
2752
+ * Infer TypeScript type from Zod schema
2753
+ */
2754
+ type CentrifugoInfoResponse = z.infer<typeof CentrifugoInfoResponseSchema>;
2755
+
2756
+ /**
2757
+ * Zod schema for CentrifugoInfoResult
2758
+ *
2759
+ * This schema provides runtime validation and type inference.
2760
+ * * Info result wrapper.
2761
+ * */
2762
+
2763
+ /**
2764
+ * Info result wrapper.
2765
+ */
2766
+ declare const CentrifugoInfoResultSchema: z.ZodObject<{
2767
+ nodes: z.ZodArray<z.ZodObject<{
2768
+ uid: z.ZodString;
2769
+ name: z.ZodString;
2770
+ version: z.ZodString;
2771
+ num_clients: z.ZodInt;
2772
+ num_users: z.ZodInt;
2773
+ num_channels: z.ZodInt;
2774
+ uptime: z.ZodInt;
2775
+ num_subs: z.ZodInt;
2776
+ metrics: z.ZodOptional<z.ZodObject<{
2777
+ interval: z.ZodNumber;
2778
+ items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2779
+ }, z.core.$strip>>;
2780
+ process: z.ZodOptional<z.ZodObject<{
2781
+ cpu: z.ZodNumber;
2782
+ rss: z.ZodInt;
2783
+ }, z.core.$strip>>;
2784
+ }, z.core.$strip>>;
2785
+ }, z.core.$strip>;
2786
+ /**
2787
+ * Infer TypeScript type from Zod schema
2788
+ */
2789
+ type CentrifugoInfoResult = z.infer<typeof CentrifugoInfoResultSchema>;
2790
+
2791
+ /**
2792
+ * Zod schema for CentrifugoMetrics
2793
+ *
2794
+ * This schema provides runtime validation and type inference.
2795
+ * * Server metrics.
2796
+ * */
2797
+
2798
+ /**
2799
+ * Server metrics.
2800
+ */
2801
+ declare const CentrifugoMetricsSchema: z.ZodObject<{
2802
+ interval: z.ZodNumber;
2803
+ items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2804
+ }, z.core.$strip>;
2805
+ /**
2806
+ * Infer TypeScript type from Zod schema
2807
+ */
2808
+ type CentrifugoMetrics = z.infer<typeof CentrifugoMetricsSchema>;
2809
+
2810
+ /**
2811
+ * Zod schema for CentrifugoNodeInfo
2812
+ *
2813
+ * This schema provides runtime validation and type inference.
2814
+ * * Information about a single Centrifugo node.
2815
+ * */
2816
+
2817
+ /**
2818
+ * Information about a single Centrifugo node.
2819
+ */
2820
+ declare const CentrifugoNodeInfoSchema: z.ZodObject<{
2821
+ uid: z.ZodString;
2822
+ name: z.ZodString;
2823
+ version: z.ZodString;
2824
+ num_clients: z.ZodInt;
2825
+ num_users: z.ZodInt;
2826
+ num_channels: z.ZodInt;
2827
+ uptime: z.ZodInt;
2828
+ num_subs: z.ZodInt;
2829
+ metrics: z.ZodOptional<z.ZodObject<{
2830
+ interval: z.ZodNumber;
2831
+ items: z.ZodRecord<z.ZodString, z.ZodNumber>;
2832
+ }, z.core.$strip>>;
2833
+ process: z.ZodOptional<z.ZodObject<{
2834
+ cpu: z.ZodNumber;
2835
+ rss: z.ZodInt;
2836
+ }, z.core.$strip>>;
2837
+ }, z.core.$strip>;
2838
+ /**
2839
+ * Infer TypeScript type from Zod schema
2840
+ */
2841
+ type CentrifugoNodeInfo = z.infer<typeof CentrifugoNodeInfoSchema>;
2842
+
2843
+ /**
2844
+ * Zod schema for CentrifugoOverviewStats
2845
+ *
2846
+ * This schema provides runtime validation and type inference.
2847
+ * * Overview statistics for Centrifugo publishes.
2848
+ * */
2849
+
2850
+ /**
2851
+ * Overview statistics for Centrifugo publishes.
2852
+ */
2853
+ declare const CentrifugoOverviewStatsSchema: z.ZodObject<{
2854
+ total: z.ZodInt;
2855
+ successful: z.ZodInt;
2856
+ failed: z.ZodInt;
2857
+ timeout: z.ZodInt;
2858
+ success_rate: z.ZodNumber;
2859
+ avg_duration_ms: z.ZodNumber;
2860
+ avg_acks_received: z.ZodNumber;
2861
+ period_hours: z.ZodInt;
2862
+ }, z.core.$strip>;
2863
+ /**
2864
+ * Infer TypeScript type from Zod schema
2865
+ */
2866
+ type CentrifugoOverviewStats = z.infer<typeof CentrifugoOverviewStatsSchema>;
2867
+
2868
+ /**
2869
+ * Zod schema for CentrifugoPresenceRequestRequest
2870
+ *
2871
+ * This schema provides runtime validation and type inference.
2872
+ * * Request to get channel presence.
2873
+ * */
2874
+
2875
+ /**
2876
+ * Request to get channel presence.
2877
+ */
2878
+ declare const CentrifugoPresenceRequestRequestSchema: z.ZodObject<{
2879
+ channel: z.ZodString;
2880
+ }, z.core.$strip>;
2881
+ /**
2882
+ * Infer TypeScript type from Zod schema
2883
+ */
2884
+ type CentrifugoPresenceRequestRequest = z.infer<typeof CentrifugoPresenceRequestRequestSchema>;
2885
+
2886
+ /**
2887
+ * Zod schema for CentrifugoPresenceResponse
2888
+ *
2889
+ * This schema provides runtime validation and type inference.
2890
+ * * Channel presence response.
2891
+ * */
2892
+
2893
+ /**
2894
+ * Channel presence response.
2895
+ */
2896
+ declare const CentrifugoPresenceResponseSchema: z.ZodObject<{
2897
+ error: z.ZodOptional<z.ZodObject<{
2898
+ code: z.ZodOptional<z.ZodInt>;
2899
+ message: z.ZodOptional<z.ZodString>;
2900
+ }, z.core.$strip>>;
2901
+ result: z.ZodOptional<z.ZodObject<{
2902
+ presence: z.ZodRecord<z.ZodString, z.ZodObject<{
2903
+ user: z.ZodString;
2904
+ client: z.ZodString;
2905
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2906
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2907
+ }, z.core.$strip>>;
2908
+ }, z.core.$strip>>;
2909
+ }, z.core.$strip>;
2910
+ /**
2911
+ * Infer TypeScript type from Zod schema
2912
+ */
2913
+ type CentrifugoPresenceResponse = z.infer<typeof CentrifugoPresenceResponseSchema>;
2914
+
2915
+ /**
2916
+ * Zod schema for CentrifugoPresenceResult
2917
+ *
2918
+ * This schema provides runtime validation and type inference.
2919
+ * * Presence result wrapper.
2920
+ * */
2921
+
2922
+ /**
2923
+ * Presence result wrapper.
2924
+ */
2925
+ declare const CentrifugoPresenceResultSchema: z.ZodObject<{
2926
+ presence: z.ZodRecord<z.ZodString, z.ZodObject<{
2927
+ user: z.ZodString;
2928
+ client: z.ZodString;
2929
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2930
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2931
+ }, z.core.$strip>>;
2932
+ }, z.core.$strip>;
2933
+ /**
2934
+ * Infer TypeScript type from Zod schema
2935
+ */
2936
+ type CentrifugoPresenceResult = z.infer<typeof CentrifugoPresenceResultSchema>;
2937
+
2938
+ /**
2939
+ * Zod schema for CentrifugoPresenceStatsRequestRequest
2940
+ *
2941
+ * This schema provides runtime validation and type inference.
2942
+ * * Request to get channel presence statistics.
2943
+ * */
2944
+
2945
+ /**
2946
+ * Request to get channel presence statistics.
2947
+ */
2948
+ declare const CentrifugoPresenceStatsRequestRequestSchema: z.ZodObject<{
2949
+ channel: z.ZodString;
2950
+ }, z.core.$strip>;
2951
+ /**
2952
+ * Infer TypeScript type from Zod schema
2953
+ */
2954
+ type CentrifugoPresenceStatsRequestRequest = z.infer<typeof CentrifugoPresenceStatsRequestRequestSchema>;
2955
+
2956
+ /**
2957
+ * Zod schema for CentrifugoPresenceStatsResponse
2958
+ *
2959
+ * This schema provides runtime validation and type inference.
2960
+ * * Channel presence stats response.
2961
+ * */
2962
+
2963
+ /**
2964
+ * Channel presence stats response.
2965
+ */
2966
+ declare const CentrifugoPresenceStatsResponseSchema: z.ZodObject<{
2967
+ error: z.ZodOptional<z.ZodObject<{
2968
+ code: z.ZodOptional<z.ZodInt>;
2969
+ message: z.ZodOptional<z.ZodString>;
2970
+ }, z.core.$strip>>;
2971
+ result: z.ZodOptional<z.ZodObject<{
2972
+ num_clients: z.ZodInt;
2973
+ num_users: z.ZodInt;
2974
+ }, z.core.$strip>>;
2975
+ }, z.core.$strip>;
2976
+ /**
2977
+ * Infer TypeScript type from Zod schema
2978
+ */
2979
+ type CentrifugoPresenceStatsResponse = z.infer<typeof CentrifugoPresenceStatsResponseSchema>;
2980
+
2981
+ /**
2982
+ * Zod schema for CentrifugoPresenceStatsResult
2983
+ *
2984
+ * This schema provides runtime validation and type inference.
2985
+ * * Presence stats result.
2986
+ * */
2987
+
2988
+ /**
2989
+ * Presence stats result.
2990
+ */
2991
+ declare const CentrifugoPresenceStatsResultSchema: z.ZodObject<{
2992
+ num_clients: z.ZodInt;
2993
+ num_users: z.ZodInt;
2994
+ }, z.core.$strip>;
2995
+ /**
2996
+ * Infer TypeScript type from Zod schema
2997
+ */
2998
+ type CentrifugoPresenceStatsResult = z.infer<typeof CentrifugoPresenceStatsResultSchema>;
2999
+
3000
+ /**
3001
+ * Zod schema for CentrifugoProcess
3002
+ *
3003
+ * This schema provides runtime validation and type inference.
3004
+ * * Process information.
3005
+ * */
3006
+
3007
+ /**
3008
+ * Process information.
3009
+ */
3010
+ declare const CentrifugoProcessSchema: z.ZodObject<{
3011
+ cpu: z.ZodNumber;
3012
+ rss: z.ZodInt;
3013
+ }, z.core.$strip>;
3014
+ /**
3015
+ * Infer TypeScript type from Zod schema
3016
+ */
3017
+ type CentrifugoProcess = z.infer<typeof CentrifugoProcessSchema>;
3018
+
3019
+ /**
3020
+ * Zod schema for CentrifugoPublication
3021
+ *
3022
+ * This schema provides runtime validation and type inference.
3023
+ * * Single publication (message) in channel history.
3024
+ * */
3025
+
3026
+ /**
3027
+ * Single publication (message) in channel history.
3028
+ */
3029
+ declare const CentrifugoPublicationSchema: z.ZodObject<{
3030
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
3031
+ info: z.ZodOptional<z.ZodObject<{
3032
+ user: z.ZodString;
3033
+ client: z.ZodString;
3034
+ conn_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3035
+ chan_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3036
+ }, z.core.$strip>>;
3037
+ offset: z.ZodInt;
3038
+ tags: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3039
+ }, z.core.$strip>;
3040
+ /**
3041
+ * Infer TypeScript type from Zod schema
3042
+ */
3043
+ type CentrifugoPublication = z.infer<typeof CentrifugoPublicationSchema>;
3044
+
3045
+ /**
3046
+ * Zod schema for CentrifugoStreamPosition
3047
+ *
3048
+ * This schema provides runtime validation and type inference.
3049
+ * * Stream position for pagination.
3050
+ * */
3051
+
3052
+ /**
3053
+ * Stream position for pagination.
3054
+ */
3055
+ declare const CentrifugoStreamPositionSchema: z.ZodObject<{
3056
+ offset: z.ZodInt;
3057
+ epoch: z.ZodString;
3058
+ }, z.core.$strip>;
3059
+ /**
3060
+ * Infer TypeScript type from Zod schema
3061
+ */
3062
+ type CentrifugoStreamPosition = z.infer<typeof CentrifugoStreamPositionSchema>;
3063
+
3064
+ /**
3065
+ * Zod schema for ChannelList
3066
+ *
3067
+ * This schema provides runtime validation and type inference.
3068
+ * * List of channel statistics.
3069
+ * */
3070
+
3071
+ /**
3072
+ * List of channel statistics.
3073
+ */
3074
+ declare const ChannelListSchema: z.ZodObject<{
3075
+ channels: z.ZodArray<z.ZodObject<{
3076
+ channel: z.ZodString;
3077
+ total: z.ZodInt;
3078
+ successful: z.ZodInt;
3079
+ failed: z.ZodInt;
3080
+ avg_duration_ms: z.ZodNumber;
3081
+ avg_acks: z.ZodNumber;
3082
+ last_activity_at: z.ZodNullable<z.ZodString>;
3083
+ }, z.core.$strip>>;
3084
+ total_channels: z.ZodInt;
3085
+ }, z.core.$strip>;
3086
+ /**
3087
+ * Infer TypeScript type from Zod schema
3088
+ */
3089
+ type ChannelList = z.infer<typeof ChannelListSchema>;
3090
+
3091
+ /**
3092
+ * Zod schema for ChannelStats
3093
+ *
3094
+ * This schema provides runtime validation and type inference.
3095
+ * * Statistics per channel.
3096
+ * */
3097
+
3098
+ /**
3099
+ * Statistics per channel.
3100
+ */
3101
+ declare const ChannelStatsSchema: z.ZodObject<{
3102
+ channel: z.ZodString;
3103
+ total: z.ZodInt;
3104
+ successful: z.ZodInt;
3105
+ failed: z.ZodInt;
3106
+ avg_duration_ms: z.ZodNumber;
3107
+ avg_acks: z.ZodNumber;
3108
+ last_activity_at: z.ZodNullable<z.ZodString>;
3109
+ }, z.core.$strip>;
3110
+ /**
3111
+ * Infer TypeScript type from Zod schema
3112
+ */
3113
+ type ChannelStats = z.infer<typeof ChannelStatsSchema>;
3114
+
3115
+ /**
3116
+ * Zod schema for ConnectionTokenResponse
3117
+ *
3118
+ * This schema provides runtime validation and type inference.
3119
+ * * Response model for Centrifugo connection token.
3120
+ * */
3121
+
3122
+ /**
3123
+ * Response model for Centrifugo connection token.
3124
+ */
3125
+ declare const ConnectionTokenResponseSchema: z.ZodObject<{
3126
+ token: z.ZodString;
3127
+ centrifugo_url: z.ZodString;
3128
+ expires_at: z.ZodString;
3129
+ channels: z.ZodArray<z.ZodString>;
3130
+ }, z.core.$strip>;
3131
+ /**
3132
+ * Infer TypeScript type from Zod schema
3133
+ */
3134
+ type ConnectionTokenResponse = z.infer<typeof ConnectionTokenResponseSchema>;
3135
+
3136
+ /**
3137
+ * Zod schema for ManualAckRequestRequest
3138
+ *
3139
+ * This schema provides runtime validation and type inference.
3140
+ * * Request model for manual ACK sending.
3141
+ * */
3142
+
3143
+ /**
3144
+ * Request model for manual ACK sending.
3145
+ */
3146
+ declare const ManualAckRequestRequestSchema: z.ZodObject<{
3147
+ message_id: z.ZodString;
3148
+ client_id: z.ZodString;
3149
+ }, z.core.$strip>;
3150
+ /**
3151
+ * Infer TypeScript type from Zod schema
3152
+ */
3153
+ type ManualAckRequestRequest = z.infer<typeof ManualAckRequestRequestSchema>;
3154
+
3155
+ /**
3156
+ * Zod schema for ManualAckResponse
3157
+ *
3158
+ * This schema provides runtime validation and type inference.
3159
+ * * Response model for manual ACK.
3160
+ * */
3161
+
3162
+ /**
3163
+ * Response model for manual ACK.
3164
+ */
3165
+ declare const ManualAckResponseSchema: z.ZodObject<{
3166
+ success: z.ZodBoolean;
3167
+ message_id: z.ZodString;
3168
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3169
+ }, z.core.$strip>;
3170
+ /**
3171
+ * Infer TypeScript type from Zod schema
3172
+ */
3173
+ type ManualAckResponse = z.infer<typeof ManualAckResponseSchema>;
3174
+
3175
+ /**
3176
+ * Zod schema for PaginatedPublishList
3177
+ *
3178
+ * This schema provides runtime validation and type inference.
3179
+ * */
3180
+
3181
+ declare const PaginatedPublishListSchema: z.ZodObject<{
3182
+ count: z.ZodInt;
3183
+ page: z.ZodInt;
3184
+ pages: z.ZodInt;
3185
+ page_size: z.ZodInt;
3186
+ has_next: z.ZodBoolean;
3187
+ has_previous: z.ZodBoolean;
3188
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3189
+ previous_page: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
3190
+ results: z.ZodArray<z.ZodObject<{
3191
+ message_id: z.ZodString;
3192
+ channel: z.ZodString;
3193
+ status: z.ZodString;
3194
+ wait_for_ack: z.ZodBoolean;
3195
+ acks_received: z.ZodInt;
3196
+ acks_expected: z.ZodNullable<z.ZodInt>;
3197
+ duration_ms: z.ZodNullable<z.ZodNumber>;
3198
+ created_at: z.ZodISODateTime;
3199
+ completed_at: z.ZodNullable<z.ZodISODateTime>;
3200
+ error_code: z.ZodNullable<z.ZodString>;
3201
+ error_message: z.ZodNullable<z.ZodString>;
3202
+ }, z.core.$strip>>;
3203
+ }, z.core.$strip>;
3204
+ /**
3205
+ * Infer TypeScript type from Zod schema
3206
+ */
3207
+ type PaginatedPublishList = z.infer<typeof PaginatedPublishListSchema>;
3208
+
3209
+ /**
3210
+ * Zod schema for Publish
3211
+ *
3212
+ * This schema provides runtime validation and type inference.
3213
+ * * Single publish item for DRF pagination.
3214
+ * */
3215
+
3216
+ /**
3217
+ * Single publish item for DRF pagination.
3218
+ */
3219
+ declare const PublishSchema: z.ZodObject<{
3220
+ message_id: z.ZodString;
3221
+ channel: z.ZodString;
3222
+ status: z.ZodString;
3223
+ wait_for_ack: z.ZodBoolean;
3224
+ acks_received: z.ZodInt;
3225
+ acks_expected: z.ZodNullable<z.ZodInt>;
3226
+ duration_ms: z.ZodNullable<z.ZodNumber>;
3227
+ created_at: z.ZodISODateTime;
3228
+ completed_at: z.ZodNullable<z.ZodISODateTime>;
3229
+ error_code: z.ZodNullable<z.ZodString>;
3230
+ error_message: z.ZodNullable<z.ZodString>;
3231
+ }, z.core.$strip>;
3232
+ /**
3233
+ * Infer TypeScript type from Zod schema
3234
+ */
3235
+ type Publish = z.infer<typeof PublishSchema>;
3236
+
3237
+ /**
3238
+ * Zod schema for PublishTestRequestRequest
3239
+ *
3240
+ * This schema provides runtime validation and type inference.
3241
+ * * Request model for test message publishing.
3242
+ * */
3243
+
3244
+ /**
3245
+ * Request model for test message publishing.
3246
+ */
3247
+ declare const PublishTestRequestRequestSchema: z.ZodObject<{
3248
+ channel: z.ZodString;
3249
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
3250
+ wait_for_ack: z.ZodOptional<z.ZodBoolean>;
3251
+ ack_timeout: z.ZodOptional<z.ZodInt>;
3252
+ }, z.core.$strip>;
3253
+ /**
3254
+ * Infer TypeScript type from Zod schema
3255
+ */
3256
+ type PublishTestRequestRequest = z.infer<typeof PublishTestRequestRequestSchema>;
3257
+
3258
+ /**
3259
+ * Zod schema for PublishTestResponse
3260
+ *
3261
+ * This schema provides runtime validation and type inference.
3262
+ * * Response model for test message publishing.
3263
+ * */
3264
+
3265
+ /**
3266
+ * Response model for test message publishing.
3267
+ */
3268
+ declare const PublishTestResponseSchema: z.ZodObject<{
3269
+ success: z.ZodBoolean;
3270
+ message_id: z.ZodString;
3271
+ channel: z.ZodString;
3272
+ acks_received: z.ZodOptional<z.ZodInt>;
3273
+ delivered: z.ZodOptional<z.ZodBoolean>;
3274
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3275
+ }, z.core.$strip>;
3276
+ /**
3277
+ * Infer TypeScript type from Zod schema
3278
+ */
3279
+ type PublishTestResponse = z.infer<typeof PublishTestResponseSchema>;
3280
+
3281
+ /**
3282
+ * Zod schema for TimelineItem
3283
+ *
3284
+ * This schema provides runtime validation and type inference.
3285
+ * * Single timeline data point for DRF.
3286
+ * */
3287
+
3288
+ /**
3289
+ * Single timeline data point for DRF.
3290
+ */
3291
+ declare const TimelineItemSchema: z.ZodObject<{
3292
+ timestamp: z.ZodString;
3293
+ count: z.ZodInt;
3294
+ successful: z.ZodInt;
3295
+ failed: z.ZodInt;
3296
+ timeout: z.ZodInt;
3297
+ }, z.core.$strip>;
3298
+ /**
3299
+ * Infer TypeScript type from Zod schema
3300
+ */
3301
+ type TimelineItem = z.infer<typeof TimelineItemSchema>;
3302
+
3303
+ /**
3304
+ * Zod schema for TimelineResponse
3305
+ *
3306
+ * This schema provides runtime validation and type inference.
3307
+ * * Timeline response with hourly/daily breakdown for DRF.
3308
+ * */
3309
+
3310
+ /**
3311
+ * Timeline response with hourly/daily breakdown for DRF.
3312
+ */
3313
+ declare const TimelineResponseSchema: z.ZodObject<{
3314
+ timeline: z.ZodArray<z.ZodObject<{
3315
+ timestamp: z.ZodString;
3316
+ count: z.ZodInt;
3317
+ successful: z.ZodInt;
3318
+ failed: z.ZodInt;
3319
+ timeout: z.ZodInt;
3320
+ }, z.core.$strip>>;
3321
+ period_hours: z.ZodInt;
3322
+ interval: z.ZodString;
3323
+ }, z.core.$strip>;
3324
+ /**
3325
+ * Infer TypeScript type from Zod schema
3326
+ */
3327
+ type TimelineResponse = z.infer<typeof TimelineResponseSchema>;
3328
+
3329
+ /**
3330
+ * AUTO-GENERATED FILE - DO NOT EDIT
3331
+ *
3332
+ * This file is automatically generated by DjangoCFG.
3333
+ * Any manual changes will be lost when the code is regenerated.
3334
+ *
3335
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
3336
+ */
3337
+ /**
3338
+ * Zod Schemas - Runtime validation and type inference
3339
+ *
3340
+ * Auto-generated from OpenAPI specification.
3341
+ * Provides runtime validation for API requests and responses.
3342
+ *
3343
+ * Usage:
3344
+ * ```typescript
3345
+ * import { UserSchema } from './schemas'
3346
+ *
3347
+ * // Validate data
3348
+ * const user = UserSchema.parse(data)
3349
+ *
3350
+ * // Type inference
3351
+ * type User = z.infer<typeof UserSchema>
3352
+ * ```
3353
+ */
3354
+
3355
+ type index$3_CentrifugoChannelInfo = CentrifugoChannelInfo;
3356
+ declare const index$3_CentrifugoChannelInfoSchema: typeof CentrifugoChannelInfoSchema;
3357
+ type index$3_CentrifugoChannelsRequestRequest = CentrifugoChannelsRequestRequest;
3358
+ declare const index$3_CentrifugoChannelsRequestRequestSchema: typeof CentrifugoChannelsRequestRequestSchema;
3359
+ type index$3_CentrifugoChannelsResponse = CentrifugoChannelsResponse;
3360
+ declare const index$3_CentrifugoChannelsResponseSchema: typeof CentrifugoChannelsResponseSchema;
3361
+ type index$3_CentrifugoChannelsResult = CentrifugoChannelsResult;
3362
+ declare const index$3_CentrifugoChannelsResultSchema: typeof CentrifugoChannelsResultSchema;
3363
+ type index$3_CentrifugoClientInfo = CentrifugoClientInfo;
3364
+ declare const index$3_CentrifugoClientInfoSchema: typeof CentrifugoClientInfoSchema;
3365
+ type index$3_CentrifugoError = CentrifugoError;
3366
+ declare const index$3_CentrifugoErrorSchema: typeof CentrifugoErrorSchema;
3367
+ type index$3_CentrifugoHealthCheck = CentrifugoHealthCheck;
3368
+ declare const index$3_CentrifugoHealthCheckSchema: typeof CentrifugoHealthCheckSchema;
3369
+ type index$3_CentrifugoHistoryRequestRequest = CentrifugoHistoryRequestRequest;
3370
+ declare const index$3_CentrifugoHistoryRequestRequestSchema: typeof CentrifugoHistoryRequestRequestSchema;
3371
+ type index$3_CentrifugoHistoryResponse = CentrifugoHistoryResponse;
3372
+ declare const index$3_CentrifugoHistoryResponseSchema: typeof CentrifugoHistoryResponseSchema;
3373
+ type index$3_CentrifugoHistoryResult = CentrifugoHistoryResult;
3374
+ declare const index$3_CentrifugoHistoryResultSchema: typeof CentrifugoHistoryResultSchema;
3375
+ type index$3_CentrifugoInfoResponse = CentrifugoInfoResponse;
3376
+ declare const index$3_CentrifugoInfoResponseSchema: typeof CentrifugoInfoResponseSchema;
3377
+ type index$3_CentrifugoInfoResult = CentrifugoInfoResult;
3378
+ declare const index$3_CentrifugoInfoResultSchema: typeof CentrifugoInfoResultSchema;
3379
+ type index$3_CentrifugoMetrics = CentrifugoMetrics;
3380
+ declare const index$3_CentrifugoMetricsSchema: typeof CentrifugoMetricsSchema;
3381
+ type index$3_CentrifugoNodeInfo = CentrifugoNodeInfo;
3382
+ declare const index$3_CentrifugoNodeInfoSchema: typeof CentrifugoNodeInfoSchema;
3383
+ type index$3_CentrifugoOverviewStats = CentrifugoOverviewStats;
3384
+ declare const index$3_CentrifugoOverviewStatsSchema: typeof CentrifugoOverviewStatsSchema;
3385
+ type index$3_CentrifugoPresenceRequestRequest = CentrifugoPresenceRequestRequest;
3386
+ declare const index$3_CentrifugoPresenceRequestRequestSchema: typeof CentrifugoPresenceRequestRequestSchema;
3387
+ type index$3_CentrifugoPresenceResponse = CentrifugoPresenceResponse;
3388
+ declare const index$3_CentrifugoPresenceResponseSchema: typeof CentrifugoPresenceResponseSchema;
3389
+ type index$3_CentrifugoPresenceResult = CentrifugoPresenceResult;
3390
+ declare const index$3_CentrifugoPresenceResultSchema: typeof CentrifugoPresenceResultSchema;
3391
+ type index$3_CentrifugoPresenceStatsRequestRequest = CentrifugoPresenceStatsRequestRequest;
3392
+ declare const index$3_CentrifugoPresenceStatsRequestRequestSchema: typeof CentrifugoPresenceStatsRequestRequestSchema;
3393
+ type index$3_CentrifugoPresenceStatsResponse = CentrifugoPresenceStatsResponse;
3394
+ declare const index$3_CentrifugoPresenceStatsResponseSchema: typeof CentrifugoPresenceStatsResponseSchema;
3395
+ type index$3_CentrifugoPresenceStatsResult = CentrifugoPresenceStatsResult;
3396
+ declare const index$3_CentrifugoPresenceStatsResultSchema: typeof CentrifugoPresenceStatsResultSchema;
3397
+ type index$3_CentrifugoProcess = CentrifugoProcess;
3398
+ declare const index$3_CentrifugoProcessSchema: typeof CentrifugoProcessSchema;
3399
+ type index$3_CentrifugoPublication = CentrifugoPublication;
3400
+ declare const index$3_CentrifugoPublicationSchema: typeof CentrifugoPublicationSchema;
3401
+ type index$3_CentrifugoStreamPosition = CentrifugoStreamPosition;
3402
+ declare const index$3_CentrifugoStreamPositionSchema: typeof CentrifugoStreamPositionSchema;
3403
+ type index$3_ChannelList = ChannelList;
3404
+ declare const index$3_ChannelListSchema: typeof ChannelListSchema;
3405
+ type index$3_ChannelStats = ChannelStats;
3406
+ declare const index$3_ChannelStatsSchema: typeof ChannelStatsSchema;
3407
+ type index$3_ConnectionTokenResponse = ConnectionTokenResponse;
3408
+ declare const index$3_ConnectionTokenResponseSchema: typeof ConnectionTokenResponseSchema;
3409
+ type index$3_ManualAckRequestRequest = ManualAckRequestRequest;
3410
+ declare const index$3_ManualAckRequestRequestSchema: typeof ManualAckRequestRequestSchema;
3411
+ type index$3_ManualAckResponse = ManualAckResponse;
3412
+ declare const index$3_ManualAckResponseSchema: typeof ManualAckResponseSchema;
3413
+ type index$3_PaginatedPublishList = PaginatedPublishList;
3414
+ declare const index$3_PaginatedPublishListSchema: typeof PaginatedPublishListSchema;
3415
+ type index$3_Publish = Publish;
3416
+ declare const index$3_PublishSchema: typeof PublishSchema;
3417
+ type index$3_PublishTestRequestRequest = PublishTestRequestRequest;
3418
+ declare const index$3_PublishTestRequestRequestSchema: typeof PublishTestRequestRequestSchema;
3419
+ type index$3_PublishTestResponse = PublishTestResponse;
3420
+ declare const index$3_PublishTestResponseSchema: typeof PublishTestResponseSchema;
3421
+ type index$3_TimelineItem = TimelineItem;
3422
+ declare const index$3_TimelineItemSchema: typeof TimelineItemSchema;
3423
+ type index$3_TimelineResponse = TimelineResponse;
3424
+ declare const index$3_TimelineResponseSchema: typeof TimelineResponseSchema;
3425
+ declare namespace index$3 {
3426
+ export { type index$3_CentrifugoChannelInfo as CentrifugoChannelInfo, index$3_CentrifugoChannelInfoSchema as CentrifugoChannelInfoSchema, type index$3_CentrifugoChannelsRequestRequest as CentrifugoChannelsRequestRequest, index$3_CentrifugoChannelsRequestRequestSchema as CentrifugoChannelsRequestRequestSchema, type index$3_CentrifugoChannelsResponse as CentrifugoChannelsResponse, index$3_CentrifugoChannelsResponseSchema as CentrifugoChannelsResponseSchema, type index$3_CentrifugoChannelsResult as CentrifugoChannelsResult, index$3_CentrifugoChannelsResultSchema as CentrifugoChannelsResultSchema, type index$3_CentrifugoClientInfo as CentrifugoClientInfo, index$3_CentrifugoClientInfoSchema as CentrifugoClientInfoSchema, type index$3_CentrifugoError as CentrifugoError, index$3_CentrifugoErrorSchema as CentrifugoErrorSchema, type index$3_CentrifugoHealthCheck as CentrifugoHealthCheck, index$3_CentrifugoHealthCheckSchema as CentrifugoHealthCheckSchema, type index$3_CentrifugoHistoryRequestRequest as CentrifugoHistoryRequestRequest, index$3_CentrifugoHistoryRequestRequestSchema as CentrifugoHistoryRequestRequestSchema, type index$3_CentrifugoHistoryResponse as CentrifugoHistoryResponse, index$3_CentrifugoHistoryResponseSchema as CentrifugoHistoryResponseSchema, type index$3_CentrifugoHistoryResult as CentrifugoHistoryResult, index$3_CentrifugoHistoryResultSchema as CentrifugoHistoryResultSchema, type index$3_CentrifugoInfoResponse as CentrifugoInfoResponse, index$3_CentrifugoInfoResponseSchema as CentrifugoInfoResponseSchema, type index$3_CentrifugoInfoResult as CentrifugoInfoResult, index$3_CentrifugoInfoResultSchema as CentrifugoInfoResultSchema, type index$3_CentrifugoMetrics as CentrifugoMetrics, index$3_CentrifugoMetricsSchema as CentrifugoMetricsSchema, type index$3_CentrifugoNodeInfo as CentrifugoNodeInfo, index$3_CentrifugoNodeInfoSchema as CentrifugoNodeInfoSchema, type index$3_CentrifugoOverviewStats as CentrifugoOverviewStats, index$3_CentrifugoOverviewStatsSchema as CentrifugoOverviewStatsSchema, type index$3_CentrifugoPresenceRequestRequest as CentrifugoPresenceRequestRequest, index$3_CentrifugoPresenceRequestRequestSchema as CentrifugoPresenceRequestRequestSchema, type index$3_CentrifugoPresenceResponse as CentrifugoPresenceResponse, index$3_CentrifugoPresenceResponseSchema as CentrifugoPresenceResponseSchema, type index$3_CentrifugoPresenceResult as CentrifugoPresenceResult, index$3_CentrifugoPresenceResultSchema as CentrifugoPresenceResultSchema, type index$3_CentrifugoPresenceStatsRequestRequest as CentrifugoPresenceStatsRequestRequest, index$3_CentrifugoPresenceStatsRequestRequestSchema as CentrifugoPresenceStatsRequestRequestSchema, type index$3_CentrifugoPresenceStatsResponse as CentrifugoPresenceStatsResponse, index$3_CentrifugoPresenceStatsResponseSchema as CentrifugoPresenceStatsResponseSchema, type index$3_CentrifugoPresenceStatsResult as CentrifugoPresenceStatsResult, index$3_CentrifugoPresenceStatsResultSchema as CentrifugoPresenceStatsResultSchema, type index$3_CentrifugoProcess as CentrifugoProcess, index$3_CentrifugoProcessSchema as CentrifugoProcessSchema, type index$3_CentrifugoPublication as CentrifugoPublication, index$3_CentrifugoPublicationSchema as CentrifugoPublicationSchema, type index$3_CentrifugoStreamPosition as CentrifugoStreamPosition, index$3_CentrifugoStreamPositionSchema as CentrifugoStreamPositionSchema, type index$3_ChannelList as ChannelList, index$3_ChannelListSchema as ChannelListSchema, type index$3_ChannelStats as ChannelStats, index$3_ChannelStatsSchema as ChannelStatsSchema, type index$3_ConnectionTokenResponse as ConnectionTokenResponse, index$3_ConnectionTokenResponseSchema as ConnectionTokenResponseSchema, type index$3_ManualAckRequestRequest as ManualAckRequestRequest, index$3_ManualAckRequestRequestSchema as ManualAckRequestRequestSchema, type index$3_ManualAckResponse as ManualAckResponse, index$3_ManualAckResponseSchema as ManualAckResponseSchema, type index$3_PaginatedPublishList as PaginatedPublishList, index$3_PaginatedPublishListSchema as PaginatedPublishListSchema, type index$3_Publish as Publish, index$3_PublishSchema as PublishSchema, type index$3_PublishTestRequestRequest as PublishTestRequestRequest, index$3_PublishTestRequestRequestSchema as PublishTestRequestRequestSchema, type index$3_PublishTestResponse as PublishTestResponse, index$3_PublishTestResponseSchema as PublishTestResponseSchema, type index$3_TimelineItem as TimelineItem, index$3_TimelineItemSchema as TimelineItemSchema, type index$3_TimelineResponse as TimelineResponse, index$3_TimelineResponseSchema as TimelineResponseSchema };
3427
+ }
3428
+
3429
+ /**
3430
+ * Get connection token for dashboard
3431
+ *
3432
+ * @method POST
3433
+ * @path /cfg/centrifugo/server/auth/token/
3434
+ */
3435
+ declare function createCentrifugoServerAuthTokenCreate(client?: any): Promise<any>;
3436
+ /**
3437
+ * List active channels
3438
+ *
3439
+ * @method POST
3440
+ * @path /cfg/centrifugo/server/channels/
3441
+ */
3442
+ declare function createCentrifugoServerChannelsCreate(data: CentrifugoChannelsRequestRequest, client?: any): Promise<CentrifugoChannelsResponse>;
3443
+ /**
3444
+ * Get channel history
3445
+ *
3446
+ * @method POST
3447
+ * @path /cfg/centrifugo/server/history/
3448
+ */
3449
+ declare function createCentrifugoServerHistoryCreate(data: CentrifugoHistoryRequestRequest, client?: any): Promise<CentrifugoHistoryResponse>;
3450
+ /**
3451
+ * Get Centrifugo server info
3452
+ *
3453
+ * @method POST
3454
+ * @path /cfg/centrifugo/server/info/
3455
+ */
3456
+ declare function createCentrifugoServerInfoCreate(client?: any): Promise<CentrifugoInfoResponse>;
3457
+ /**
3458
+ * Get channel presence
3459
+ *
3460
+ * @method POST
3461
+ * @path /cfg/centrifugo/server/presence/
3462
+ */
3463
+ declare function createCentrifugoServerPresenceCreate(data: CentrifugoPresenceRequestRequest, client?: any): Promise<CentrifugoPresenceResponse>;
3464
+ /**
3465
+ * Get channel presence statistics
3466
+ *
3467
+ * @method POST
3468
+ * @path /cfg/centrifugo/server/presence-stats/
3469
+ */
3470
+ declare function createCentrifugoServerPresenceStatsCreate(data: CentrifugoPresenceStatsRequestRequest, client?: any): Promise<CentrifugoPresenceStatsResponse>;
3471
+
3472
+ /**
3473
+ * Get Centrifugo connection token
3474
+ *
3475
+ * @method GET
3476
+ * @path /cfg/centrifugo/auth/token/
3477
+ */
3478
+ declare function getCentrifugoAuthTokenRetrieve(client?: any): Promise<ConnectionTokenResponse>;
3479
+
3480
+ /**
3481
+ * Get channel statistics
3482
+ *
3483
+ * @method GET
3484
+ * @path /cfg/centrifugo/monitor/channels/
3485
+ */
3486
+ declare function getCentrifugoMonitorChannelsRetrieve(params?: {
3487
+ hours?: number;
3488
+ }, client?: any): Promise<ChannelList>;
3489
+ /**
3490
+ * Get Centrifugo health status
3491
+ *
3492
+ * @method GET
3493
+ * @path /cfg/centrifugo/monitor/health/
3494
+ */
3495
+ declare function getCentrifugoMonitorHealthRetrieve(client?: any): Promise<CentrifugoHealthCheck>;
3496
+ /**
3497
+ * Get overview statistics
3498
+ *
3499
+ * @method GET
3500
+ * @path /cfg/centrifugo/monitor/overview/
3501
+ */
3502
+ declare function getCentrifugoMonitorOverviewRetrieve(params?: {
3503
+ hours?: number;
3504
+ }, client?: any): Promise<CentrifugoOverviewStats>;
3505
+ /**
3506
+ * Get recent publishes
3507
+ *
3508
+ * @method GET
3509
+ * @path /cfg/centrifugo/monitor/publishes/
3510
+ */
3511
+ declare function getCentrifugoMonitorPublishesList(params?: {
3512
+ channel?: string;
3513
+ page?: number;
3514
+ page_size?: number;
3515
+ status?: string;
3516
+ }, client?: any): Promise<PaginatedPublishList>;
3517
+ /**
3518
+ * Get publish timeline
3519
+ *
3520
+ * @method GET
3521
+ * @path /cfg/centrifugo/monitor/timeline/
3522
+ */
3523
+ declare function getCentrifugoMonitorTimelineRetrieve(params?: {
3524
+ hours?: number;
3525
+ interval?: string;
3526
+ }, client?: any): Promise<TimelineResponse>;
3527
+
3528
+ /**
3529
+ * Publish test message
3530
+ *
3531
+ * @method POST
3532
+ * @path /cfg/centrifugo/testing/publish-test/
3533
+ */
3534
+ declare function createCentrifugoTestingPublishTestCreate(data: PublishTestRequestRequest, client?: any): Promise<PublishTestResponse>;
3535
+ /**
3536
+ * Publish with database logging
3537
+ *
3538
+ * @method POST
3539
+ * @path /cfg/centrifugo/testing/publish-with-logging/
3540
+ */
3541
+ declare function createCentrifugoTestingPublishWithLoggingCreate(data: PublishTestRequestRequest, client?: any): Promise<PublishTestResponse>;
3542
+ /**
3543
+ * Send manual ACK
3544
+ *
3545
+ * @method POST
3546
+ * @path /cfg/centrifugo/testing/send-ack/
3547
+ */
3548
+ declare function createCentrifugoTestingSendAckCreate(data: ManualAckRequestRequest, client?: any): Promise<ManualAckResponse>;
3549
+
3550
+ /**
3551
+ * AUTO-GENERATED FILE - DO NOT EDIT
3552
+ *
3553
+ * This file is automatically generated by DjangoCFG.
3554
+ * Any manual changes will be lost when the code is regenerated.
3555
+ *
3556
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
3557
+ */
3558
+ /**
3559
+ * Typed Fetchers - Universal API functions
3560
+ *
3561
+ * Auto-generated from OpenAPI specification.
3562
+ * These functions work in any JavaScript environment.
3563
+ *
3564
+ * Features:
3565
+ * - Runtime validation with Zod
3566
+ * - Type-safe parameters and responses
3567
+ * - Works with any data-fetching library (SWR, React Query, etc)
3568
+ * - Server Component compatible
3569
+ *
3570
+ * Usage:
3571
+ * ```typescript
3572
+ * import * as fetchers from './fetchers'
3573
+ *
3574
+ * // Direct usage
3575
+ * const user = await fetchers.getUser(1)
3576
+ *
3577
+ * // With SWR
3578
+ * const { data } = useSWR('user-1', () => fetchers.getUser(1))
3579
+ *
3580
+ * // With React Query
3581
+ * const { data } = useQuery(['user', 1], () => fetchers.getUser(1))
3582
+ * ```
3583
+ */
3584
+
3585
+ declare const index$2_createCentrifugoServerAuthTokenCreate: typeof createCentrifugoServerAuthTokenCreate;
3586
+ declare const index$2_createCentrifugoServerChannelsCreate: typeof createCentrifugoServerChannelsCreate;
3587
+ declare const index$2_createCentrifugoServerHistoryCreate: typeof createCentrifugoServerHistoryCreate;
3588
+ declare const index$2_createCentrifugoServerInfoCreate: typeof createCentrifugoServerInfoCreate;
3589
+ declare const index$2_createCentrifugoServerPresenceCreate: typeof createCentrifugoServerPresenceCreate;
3590
+ declare const index$2_createCentrifugoServerPresenceStatsCreate: typeof createCentrifugoServerPresenceStatsCreate;
3591
+ declare const index$2_createCentrifugoTestingPublishTestCreate: typeof createCentrifugoTestingPublishTestCreate;
3592
+ declare const index$2_createCentrifugoTestingPublishWithLoggingCreate: typeof createCentrifugoTestingPublishWithLoggingCreate;
3593
+ declare const index$2_createCentrifugoTestingSendAckCreate: typeof createCentrifugoTestingSendAckCreate;
3594
+ declare const index$2_getCentrifugoAuthTokenRetrieve: typeof getCentrifugoAuthTokenRetrieve;
3595
+ declare const index$2_getCentrifugoMonitorChannelsRetrieve: typeof getCentrifugoMonitorChannelsRetrieve;
3596
+ declare const index$2_getCentrifugoMonitorHealthRetrieve: typeof getCentrifugoMonitorHealthRetrieve;
3597
+ declare const index$2_getCentrifugoMonitorOverviewRetrieve: typeof getCentrifugoMonitorOverviewRetrieve;
3598
+ declare const index$2_getCentrifugoMonitorPublishesList: typeof getCentrifugoMonitorPublishesList;
3599
+ declare const index$2_getCentrifugoMonitorTimelineRetrieve: typeof getCentrifugoMonitorTimelineRetrieve;
3600
+ declare namespace index$2 {
3601
+ export { index$2_createCentrifugoServerAuthTokenCreate as createCentrifugoServerAuthTokenCreate, index$2_createCentrifugoServerChannelsCreate as createCentrifugoServerChannelsCreate, index$2_createCentrifugoServerHistoryCreate as createCentrifugoServerHistoryCreate, index$2_createCentrifugoServerInfoCreate as createCentrifugoServerInfoCreate, index$2_createCentrifugoServerPresenceCreate as createCentrifugoServerPresenceCreate, index$2_createCentrifugoServerPresenceStatsCreate as createCentrifugoServerPresenceStatsCreate, index$2_createCentrifugoTestingPublishTestCreate as createCentrifugoTestingPublishTestCreate, index$2_createCentrifugoTestingPublishWithLoggingCreate as createCentrifugoTestingPublishWithLoggingCreate, index$2_createCentrifugoTestingSendAckCreate as createCentrifugoTestingSendAckCreate, index$2_getCentrifugoAuthTokenRetrieve as getCentrifugoAuthTokenRetrieve, index$2_getCentrifugoMonitorChannelsRetrieve as getCentrifugoMonitorChannelsRetrieve, index$2_getCentrifugoMonitorHealthRetrieve as getCentrifugoMonitorHealthRetrieve, index$2_getCentrifugoMonitorOverviewRetrieve as getCentrifugoMonitorOverviewRetrieve, index$2_getCentrifugoMonitorPublishesList as getCentrifugoMonitorPublishesList, index$2_getCentrifugoMonitorTimelineRetrieve as getCentrifugoMonitorTimelineRetrieve };
3602
+ }
3603
+
3604
+ /**
3605
+ * AUTO-GENERATED FILE - DO NOT EDIT
3606
+ *
3607
+ * This file is automatically generated by DjangoCFG.
3608
+ * Any manual changes will be lost when the code is regenerated.
3609
+ *
3610
+ * @see https://djangocfg.com/docs/features/modules/django-client/overview/
3611
+ */
3612
+ /**
3613
+ * Django CFG API - API Client with JWT Management
3614
+ *
3615
+ * Usage:
3616
+ * ```typescript
3617
+ * import { API } from './api';
3618
+ *
3619
+ * const api = new API('https://api.example.com');
3620
+ *
3621
+ * // Set JWT token
3622
+ * api.setToken('your-jwt-token', 'refresh-token');
3623
+ *
3624
+ * // Use API
3625
+ * const posts = await api.posts.list();
3626
+ * const user = await api.users.retrieve(1);
3627
+ *
3628
+ * // Check authentication
3629
+ * if (api.isAuthenticated()) {
3630
+ * // ...
3631
+ * }
3632
+ *
3633
+ * // Custom storage with logging (for Electron/Node.js)
3634
+ * import { MemoryStorageAdapter, APILogger } from './storage';
3635
+ * const logger = new APILogger({ enabled: true, logLevel: 'debug' });
3636
+ * const api = new API('https://api.example.com', {
3637
+ * storage: new MemoryStorageAdapter(logger),
3638
+ * loggerConfig: { enabled: true, logLevel: 'debug' }
3639
+ * });
3640
+ *
3641
+ * // Get OpenAPI schema
3642
+ * const schema = api.getSchema();
3643
+ * ```
3644
+ */
3645
+
3646
+ interface APIOptions {
3647
+ /** Custom storage adapter (defaults to LocalStorageAdapter) */
3648
+ storage?: StorageAdapter;
3649
+ /** Retry configuration for failed requests */
3650
+ retryConfig?: RetryConfig;
3651
+ /** Logger configuration */
3652
+ loggerConfig?: Partial<LoggerConfig>;
3653
+ }
3654
+ declare class API {
3655
+ private baseUrl;
3656
+ private _client;
3657
+ private _token;
3658
+ private _refreshToken;
3659
+ private storage;
3660
+ private options?;
3661
+ centrifugo_admin_api: CentrifugoAdminApi;
3662
+ centrifugo_auth: CentrifugoAuth;
3663
+ centrifugo_monitoring: CentrifugoMonitoring;
3664
+ centrifugo_testing: CentrifugoTesting;
3665
+ constructor(baseUrl: string, options?: APIOptions);
3666
+ private _loadTokensFromStorage;
3667
+ private _reinitClients;
3668
+ private _injectAuthHeader;
3669
+ /**
3670
+ * Get current JWT token
3671
+ */
3672
+ getToken(): string | null;
3673
+ /**
3674
+ * Get current refresh token
3675
+ */
3676
+ getRefreshToken(): string | null;
3677
+ /**
3678
+ * Set JWT token and refresh token
3679
+ * @param token - JWT access token
3680
+ * @param refreshToken - JWT refresh token (optional)
3681
+ */
3682
+ setToken(token: string, refreshToken?: string): void;
3683
+ /**
3684
+ * Clear all tokens
3685
+ */
3686
+ clearTokens(): void;
3687
+ /**
3688
+ * Check if user is authenticated
3689
+ */
3690
+ isAuthenticated(): boolean;
3691
+ /**
3692
+ * Update base URL and reinitialize clients
3693
+ * @param url - New base URL
3694
+ */
3695
+ setBaseUrl(url: string): void;
3696
+ /**
3697
+ * Get current base URL
3698
+ */
3699
+ getBaseUrl(): string;
3700
+ /**
3701
+ * Get OpenAPI schema path
3702
+ * @returns Path to the OpenAPI schema JSON file
3703
+ *
3704
+ * Note: The OpenAPI schema is available in the schema.json file.
3705
+ * You can load it dynamically using:
3706
+ * ```typescript
3707
+ * const schema = await fetch('./schema.json').then(r => r.json());
3708
+ * // or using fs in Node.js:
3709
+ * // const schema = JSON.parse(fs.readFileSync('./schema.json', 'utf-8'));
3710
+ * ```
3711
+ */
3712
+ getSchemaPath(): string;
3713
+ }
3714
+
3715
+ /**
3716
+ * API operation
3717
+ *
3718
+ * @method POST
3719
+ * @path /cfg/accounts/token/refresh/
3720
+ */
3721
+ declare function useCreateAccountsTokenRefreshCreate(): (data: TokenRefreshRequest, client?: API$2) => Promise<TokenRefresh>;
3722
+
3723
+ /**
3724
+ * SWR Hooks for Oauth
3725
+ *
3726
+ * React hooks powered by SWR for data fetching with automatic caching,
3727
+ * revalidation, and optimistic updates.
3728
+ *
3729
+ * Usage:
3730
+ * ```typescript
3731
+ * // Query hooks (GET)
3732
+ * const { data, error, isLoading } = useUsers({ page: 1 })
3733
+ *
3734
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
3735
+ * const createUser = useCreateUser()
3736
+ * await createUser({ name: 'John', email: 'john@example.com' })
3737
+ * ```
3738
+ */
3739
+
3740
+ /**
3741
+ * List OAuth connections
3742
+ *
3743
+ * @method GET
3744
+ * @path /cfg/accounts/oauth/connections/
3745
+ */
3746
+ declare function useAccountsOauthConnectionsList(client?: API$2): ReturnType<typeof useSWR<any>>;
3747
+ /**
3748
+ * Disconnect OAuth provider
3749
+ *
3750
+ * @method POST
3751
+ * @path /cfg/accounts/oauth/disconnect/
3752
+ */
3753
+ declare function useCreateAccountsOauthDisconnectCreate(): (data: OAuthDisconnectRequestRequest, client?: API$2) => Promise<any>;
3754
+ /**
3755
+ * Start GitHub OAuth
3756
+ *
3757
+ * @method POST
3758
+ * @path /cfg/accounts/oauth/github/authorize/
3759
+ */
3760
+ declare function useCreateAccountsOauthGithubAuthorizeCreate(): (data: OAuthAuthorizeRequestRequest, client?: API$2) => Promise<OAuthAuthorizeResponse>;
3761
+ /**
3762
+ * Complete GitHub OAuth
3763
+ *
3764
+ * @method POST
3765
+ * @path /cfg/accounts/oauth/github/callback/
3766
+ */
3767
+ declare function useCreateAccountsOauthGithubCallbackCreate(): (data: OAuthCallbackRequestRequest, client?: API$2) => Promise<OAuthTokenResponse>;
3768
+ /**
3769
+ * List OAuth providers
3770
+ *
3771
+ * @method GET
3772
+ * @path /cfg/accounts/oauth/providers/
3773
+ */
3774
+ declare function useAccountsOauthProvidersRetrieve(client?: API$2): ReturnType<typeof useSWR<OAuthProvidersResponse>>;
3775
+
3776
+ /**
3777
+ * SWR Hooks for User Profile
3778
+ *
3779
+ * React hooks powered by SWR for data fetching with automatic caching,
3780
+ * revalidation, and optimistic updates.
3781
+ *
3782
+ * Usage:
3783
+ * ```typescript
3784
+ * // Query hooks (GET)
3785
+ * const { data, error, isLoading } = useUsers({ page: 1 })
3786
+ *
3787
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
3788
+ * const createUser = useCreateUser()
3789
+ * await createUser({ name: 'John', email: 'john@example.com' })
3790
+ * ```
3791
+ */
3792
+
3793
+ /**
3794
+ * Get current user profile
3795
+ *
3796
+ * @method GET
3797
+ * @path /cfg/accounts/profile/
3798
+ */
3799
+ declare function useAccountsProfileRetrieve(client?: API$2): ReturnType<typeof useSWR<User>>;
3800
+ /**
3801
+ * Upload user avatar
3802
+ *
3803
+ * @method POST
3804
+ * @path /cfg/accounts/profile/avatar/
3805
+ */
3806
+ declare function useCreateAccountsProfileAvatarCreate(): (data: any, client?: API$2) => Promise<User>;
3807
+ /**
3808
+ * Partial update user profile
3809
+ *
3810
+ * @method PUT
3811
+ * @path /cfg/accounts/profile/partial/
3812
+ */
3813
+ declare function usePartialUpdateAccountsProfilePartialUpdate(): (data: UserProfileUpdateRequest, client?: API$2) => Promise<User>;
3814
+ /**
3815
+ * Partial update user profile
3816
+ *
3817
+ * @method PATCH
3818
+ * @path /cfg/accounts/profile/partial/
3819
+ */
3820
+ declare function usePartialUpdateAccountsProfilePartialPartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$2) => Promise<User>;
3821
+ /**
3822
+ * Update user profile
3823
+ *
3824
+ * @method PUT
3825
+ * @path /cfg/accounts/profile/update/
3826
+ */
3827
+ declare function useUpdateAccountsProfileUpdateUpdate(): (data: UserProfileUpdateRequest, client?: API$2) => Promise<User>;
3828
+ /**
3829
+ * Update user profile
3830
+ *
3831
+ * @method PATCH
3832
+ * @path /cfg/accounts/profile/update/
3833
+ */
3834
+ declare function usePartialUpdateAccountsProfileUpdatePartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$2) => Promise<User>;
3835
+
3836
+ /**
3837
+ * API operation
3838
+ *
3839
+ * @method POST
3840
+ * @path /cfg/accounts/otp/request/
3841
+ */
3842
+ declare function useCreateAccountsOtpRequestCreate(): (data: OTPRequestRequest, client?: API$2) => Promise<OTPRequestResponse>;
3843
+ /**
3844
+ * API operation
3845
+ *
3846
+ * @method POST
3847
+ * @path /cfg/accounts/otp/verify/
3848
+ */
3849
+ declare function useCreateAccountsOtpVerifyCreate(): (data: OTPVerifyRequest, client?: API$2) => Promise<OTPVerifyResponse>;
3850
+
3851
+ /**
3852
+ * SWR Hooks for Web Push
3853
+ *
3854
+ * React hooks powered by SWR for data fetching with automatic caching,
3855
+ * revalidation, and optimistic updates.
3856
+ *
3857
+ * Usage:
3858
+ * ```typescript
3859
+ * // Query hooks (GET)
3860
+ * const { data, error, isLoading } = useUsers({ page: 1 })
3861
+ *
3862
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
3863
+ * const createUser = useCreateUser()
3864
+ * await createUser({ name: 'John', email: 'john@example.com' })
3865
+ * ```
3866
+ */
3867
+
3868
+ /**
3869
+ * Send push notification
3870
+ *
3871
+ * @method POST
3872
+ * @path /cfg/webpush/send/
3873
+ */
3874
+ declare function useCreateWebpushSendCreate(): (data: SendPushRequestRequest, client?: API$1) => Promise<SendPushResponse>;
3875
+ /**
3876
+ * Subscribe to push notifications
3877
+ *
3878
+ * @method POST
3879
+ * @path /cfg/webpush/subscribe/
3880
+ */
3881
+ declare function useCreateWebpushSubscribeCreate(): (data: SubscribeRequestRequest, client?: API$1) => Promise<SubscribeResponse>;
3882
+ /**
3883
+ * Get VAPID public key
3884
+ *
3885
+ * @method GET
3886
+ * @path /cfg/webpush/vapid/
3887
+ */
3888
+ declare function useWebpushVapidRetrieve(client?: API$1): ReturnType<typeof useSWR<VapidPublicKeyResponse>>;
3889
+
3890
+ /**
3891
+ * SWR Hooks - React data fetching hooks
3892
+ *
3893
+ * Auto-generated from OpenAPI specification.
3894
+ * Powered by SWR for automatic caching and revalidation.
3895
+ *
3896
+ * Features:
3897
+ * - Automatic caching and deduplication
3898
+ * - Revalidation on focus/reconnect
3899
+ * - Optimistic updates
3900
+ * - Type-safe parameters and responses
3901
+ *
3902
+ * Usage:
3903
+ * ```typescript
3904
+ * import * as hooks from './hooks'
3905
+ *
3906
+ * // Query hooks (GET)
3907
+ * const { data, error, isLoading } = hooks.useUsers({ page: 1 })
3908
+ *
3909
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
3910
+ * const createUser = hooks.useCreateUser()
3911
+ * await createUser({ name: 'John' })
3912
+ * ```
3913
+ */
3914
+
3915
+ declare const index$1_useCreateWebpushSendCreate: typeof useCreateWebpushSendCreate;
3916
+ declare const index$1_useCreateWebpushSubscribeCreate: typeof useCreateWebpushSubscribeCreate;
3917
+ declare const index$1_useWebpushVapidRetrieve: typeof useWebpushVapidRetrieve;
3918
+ declare namespace index$1 {
3919
+ export { index$1_useCreateWebpushSendCreate as useCreateWebpushSendCreate, index$1_useCreateWebpushSubscribeCreate as useCreateWebpushSubscribeCreate, index$1_useWebpushVapidRetrieve as useWebpushVapidRetrieve };
3920
+ }
3921
+
3922
+ /**
3923
+ * Get connection token for dashboard
3924
+ *
3925
+ * @method POST
3926
+ * @path /cfg/centrifugo/server/auth/token/
3927
+ */
3928
+ declare function useCreateCentrifugoServerAuthTokenCreate(): (client?: API) => Promise<any>;
3929
+ /**
3930
+ * List active channels
3931
+ *
3932
+ * @method POST
3933
+ * @path /cfg/centrifugo/server/channels/
3934
+ */
3935
+ declare function useCreateCentrifugoServerChannelsCreate(): (data: CentrifugoChannelsRequestRequest, client?: API) => Promise<CentrifugoChannelsResponse>;
3936
+ /**
3937
+ * Get channel history
3938
+ *
3939
+ * @method POST
3940
+ * @path /cfg/centrifugo/server/history/
3941
+ */
3942
+ declare function useCreateCentrifugoServerHistoryCreate(): (data: CentrifugoHistoryRequestRequest, client?: API) => Promise<CentrifugoHistoryResponse>;
3943
+ /**
3944
+ * Get Centrifugo server info
3945
+ *
3946
+ * @method POST
3947
+ * @path /cfg/centrifugo/server/info/
3948
+ */
3949
+ declare function useCreateCentrifugoServerInfoCreate(): (client?: API) => Promise<CentrifugoInfoResponse>;
3950
+ /**
3951
+ * Get channel presence
3952
+ *
3953
+ * @method POST
3954
+ * @path /cfg/centrifugo/server/presence/
3955
+ */
3956
+ declare function useCreateCentrifugoServerPresenceCreate(): (data: CentrifugoPresenceRequestRequest, client?: API) => Promise<CentrifugoPresenceResponse>;
3957
+ /**
3958
+ * Get channel presence statistics
3959
+ *
3960
+ * @method POST
3961
+ * @path /cfg/centrifugo/server/presence-stats/
3962
+ */
3963
+ declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: CentrifugoPresenceStatsRequestRequest, client?: API) => Promise<CentrifugoPresenceStatsResponse>;
3964
+
3965
+ /**
3966
+ * SWR Hooks for Centrifugo Auth
3967
+ *
3968
+ * React hooks powered by SWR for data fetching with automatic caching,
3969
+ * revalidation, and optimistic updates.
3970
+ *
3971
+ * Usage:
3972
+ * ```typescript
3973
+ * // Query hooks (GET)
3974
+ * const { data, error, isLoading } = useUsers({ page: 1 })
3975
+ *
3976
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
3977
+ * const createUser = useCreateUser()
3978
+ * await createUser({ name: 'John', email: 'john@example.com' })
3979
+ * ```
3980
+ */
3981
+
3982
+ /**
3983
+ * Get Centrifugo connection token
3984
+ *
3985
+ * @method GET
3986
+ * @path /cfg/centrifugo/auth/token/
3987
+ */
3988
+ declare function useCentrifugoAuthTokenRetrieve(client?: API): ReturnType<typeof useSWR<ConnectionTokenResponse>>;
3989
+
3990
+ /**
3991
+ * SWR Hooks for Centrifugo Monitoring
3992
+ *
3993
+ * React hooks powered by SWR for data fetching with automatic caching,
3994
+ * revalidation, and optimistic updates.
3995
+ *
3996
+ * Usage:
3997
+ * ```typescript
3998
+ * // Query hooks (GET)
3999
+ * const { data, error, isLoading } = useUsers({ page: 1 })
4000
+ *
4001
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
4002
+ * const createUser = useCreateUser()
4003
+ * await createUser({ name: 'John', email: 'john@example.com' })
4004
+ * ```
4005
+ */
4006
+
4007
+ /**
4008
+ * Get channel statistics
4009
+ *
4010
+ * @method GET
4011
+ * @path /cfg/centrifugo/monitor/channels/
4012
+ */
4013
+ declare function useCentrifugoMonitorChannelsRetrieve(params?: {
4014
+ hours?: number;
4015
+ }, client?: API): ReturnType<typeof useSWR<ChannelList>>;
4016
+ /**
4017
+ * Get Centrifugo health status
4018
+ *
4019
+ * @method GET
4020
+ * @path /cfg/centrifugo/monitor/health/
4021
+ */
4022
+ declare function useCentrifugoMonitorHealthRetrieve(client?: API): ReturnType<typeof useSWR<CentrifugoHealthCheck>>;
4023
+ /**
4024
+ * Get overview statistics
4025
+ *
4026
+ * @method GET
4027
+ * @path /cfg/centrifugo/monitor/overview/
4028
+ */
4029
+ declare function useCentrifugoMonitorOverviewRetrieve(params?: {
4030
+ hours?: number;
4031
+ }, client?: API): ReturnType<typeof useSWR<CentrifugoOverviewStats>>;
4032
+ /**
4033
+ * Get recent publishes
4034
+ *
4035
+ * @method GET
4036
+ * @path /cfg/centrifugo/monitor/publishes/
4037
+ */
4038
+ declare function useCentrifugoMonitorPublishesList(params?: {
4039
+ channel?: string;
4040
+ page?: number;
4041
+ page_size?: number;
4042
+ status?: string;
4043
+ }, client?: API): ReturnType<typeof useSWR<PaginatedPublishList>>;
4044
+ /**
4045
+ * Get publish timeline
4046
+ *
4047
+ * @method GET
4048
+ * @path /cfg/centrifugo/monitor/timeline/
4049
+ */
4050
+ declare function useCentrifugoMonitorTimelineRetrieve(params?: {
4051
+ hours?: number;
4052
+ interval?: string;
4053
+ }, client?: API): ReturnType<typeof useSWR<TimelineResponse>>;
4054
+
4055
+ /**
4056
+ * Publish test message
4057
+ *
4058
+ * @method POST
4059
+ * @path /cfg/centrifugo/testing/publish-test/
4060
+ */
4061
+ declare function useCreateCentrifugoTestingPublishTestCreate(): (data: PublishTestRequestRequest, client?: API) => Promise<PublishTestResponse>;
4062
+ /**
4063
+ * Publish with database logging
4064
+ *
4065
+ * @method POST
4066
+ * @path /cfg/centrifugo/testing/publish-with-logging/
4067
+ */
4068
+ declare function useCreateCentrifugoTestingPublishWithLoggingCreate(): (data: PublishTestRequestRequest, client?: API) => Promise<PublishTestResponse>;
4069
+ /**
4070
+ * Send manual ACK
4071
+ *
4072
+ * @method POST
4073
+ * @path /cfg/centrifugo/testing/send-ack/
4074
+ */
4075
+ declare function useCreateCentrifugoTestingSendAckCreate(): (data: ManualAckRequestRequest, client?: API) => Promise<ManualAckResponse>;
4076
+
4077
+ /**
4078
+ * SWR Hooks - React data fetching hooks
4079
+ *
4080
+ * Auto-generated from OpenAPI specification.
4081
+ * Powered by SWR for automatic caching and revalidation.
4082
+ *
4083
+ * Features:
4084
+ * - Automatic caching and deduplication
4085
+ * - Revalidation on focus/reconnect
4086
+ * - Optimistic updates
4087
+ * - Type-safe parameters and responses
4088
+ *
4089
+ * Usage:
4090
+ * ```typescript
4091
+ * import * as hooks from './hooks'
4092
+ *
4093
+ * // Query hooks (GET)
4094
+ * const { data, error, isLoading } = hooks.useUsers({ page: 1 })
4095
+ *
4096
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
4097
+ * const createUser = hooks.useCreateUser()
4098
+ * await createUser({ name: 'John' })
4099
+ * ```
4100
+ */
4101
+
4102
+ declare const index_useCentrifugoAuthTokenRetrieve: typeof useCentrifugoAuthTokenRetrieve;
4103
+ declare const index_useCentrifugoMonitorChannelsRetrieve: typeof useCentrifugoMonitorChannelsRetrieve;
4104
+ declare const index_useCentrifugoMonitorHealthRetrieve: typeof useCentrifugoMonitorHealthRetrieve;
4105
+ declare const index_useCentrifugoMonitorOverviewRetrieve: typeof useCentrifugoMonitorOverviewRetrieve;
4106
+ declare const index_useCentrifugoMonitorPublishesList: typeof useCentrifugoMonitorPublishesList;
4107
+ declare const index_useCentrifugoMonitorTimelineRetrieve: typeof useCentrifugoMonitorTimelineRetrieve;
4108
+ declare const index_useCreateCentrifugoServerAuthTokenCreate: typeof useCreateCentrifugoServerAuthTokenCreate;
4109
+ declare const index_useCreateCentrifugoServerChannelsCreate: typeof useCreateCentrifugoServerChannelsCreate;
4110
+ declare const index_useCreateCentrifugoServerHistoryCreate: typeof useCreateCentrifugoServerHistoryCreate;
4111
+ declare const index_useCreateCentrifugoServerInfoCreate: typeof useCreateCentrifugoServerInfoCreate;
4112
+ declare const index_useCreateCentrifugoServerPresenceCreate: typeof useCreateCentrifugoServerPresenceCreate;
4113
+ declare const index_useCreateCentrifugoServerPresenceStatsCreate: typeof useCreateCentrifugoServerPresenceStatsCreate;
4114
+ declare const index_useCreateCentrifugoTestingPublishTestCreate: typeof useCreateCentrifugoTestingPublishTestCreate;
4115
+ declare const index_useCreateCentrifugoTestingPublishWithLoggingCreate: typeof useCreateCentrifugoTestingPublishWithLoggingCreate;
4116
+ declare const index_useCreateCentrifugoTestingSendAckCreate: typeof useCreateCentrifugoTestingSendAckCreate;
4117
+ declare namespace index {
4118
+ export { index_useCentrifugoAuthTokenRetrieve as useCentrifugoAuthTokenRetrieve, index_useCentrifugoMonitorChannelsRetrieve as useCentrifugoMonitorChannelsRetrieve, index_useCentrifugoMonitorHealthRetrieve as useCentrifugoMonitorHealthRetrieve, index_useCentrifugoMonitorOverviewRetrieve as useCentrifugoMonitorOverviewRetrieve, index_useCentrifugoMonitorPublishesList as useCentrifugoMonitorPublishesList, index_useCentrifugoMonitorTimelineRetrieve as useCentrifugoMonitorTimelineRetrieve, index_useCreateCentrifugoServerAuthTokenCreate as useCreateCentrifugoServerAuthTokenCreate, index_useCreateCentrifugoServerChannelsCreate as useCreateCentrifugoServerChannelsCreate, index_useCreateCentrifugoServerHistoryCreate as useCreateCentrifugoServerHistoryCreate, index_useCreateCentrifugoServerInfoCreate as useCreateCentrifugoServerInfoCreate, index_useCreateCentrifugoServerPresenceCreate as useCreateCentrifugoServerPresenceCreate, index_useCreateCentrifugoServerPresenceStatsCreate as useCreateCentrifugoServerPresenceStatsCreate, index_useCreateCentrifugoTestingPublishTestCreate as useCreateCentrifugoTestingPublishTestCreate, index_useCreateCentrifugoTestingPublishWithLoggingCreate as useCreateCentrifugoTestingPublishWithLoggingCreate, index_useCreateCentrifugoTestingSendAckCreate as useCreateCentrifugoTestingSendAckCreate };
4119
+ }
4120
+
4121
+ /**
4122
+ * @djangocfg/api - Pre-configured API Clients
4123
+ *
4124
+ * Ready-to-use API instances for accounts, webpush, and centrifugo.
4125
+ *
4126
+ * Usage:
4127
+ * import { apiAccounts, apiWebPush, apiCentrifugo } from '@djangocfg/api/clients';
4128
+ * import { useAccountsOauthGithubCallbackCreate } from '@djangocfg/api/clients';
4129
+ */
4130
+
4131
+ declare const apiAccounts: API$2;
4132
+ declare const apiWebPush: API$1;
4133
+ declare const apiCentrifugo: API;
4134
+
4135
+ export { API$2 as AccountsAPI, API as CentrifugoAPI, index$2 as CentrifugoFetchers, index as CentrifugoHooks, type CentrifugoToken, CentrifugoTokenSchema, index$3 as CentrifugoTypes, enums as Enums, type OAuthAuthorizeRequestRequest, OAuthAuthorizeRequestRequestSchema, type OAuthAuthorizeResponse, OAuthAuthorizeResponseSchema, type OAuthCallbackRequestRequest, OAuthCallbackRequestRequestSchema, type OAuthConnection, OAuthConnectionSchema, type OAuthDisconnectRequestRequest, OAuthDisconnectRequestRequestSchema, type OAuthError, OAuthErrorSchema, type OAuthProvidersResponse, OAuthProvidersResponseSchema, type OAuthTokenResponse, OAuthTokenResponseSchema, type OTPErrorResponse, OTPErrorResponseSchema, type OTPRequestRequest, OTPRequestRequestSchema, type OTPRequestResponse, OTPRequestResponseSchema, type OTPVerifyRequest, OTPVerifyRequestSchema, type OTPVerifyResponse, OTPVerifyResponseSchema, type PatchedUserProfileUpdateRequest, PatchedUserProfileUpdateRequestSchema, type TokenRefresh, type TokenRefreshRequest, TokenRefreshRequestSchema, TokenRefreshSchema, type User, type UserProfileUpdateRequest, UserProfileUpdateRequestSchema, UserSchema, API$1 as WebPushAPI, index$4 as WebPushFetchers, index$1 as WebPushHooks, index$5 as WebPushTypes, apiAccounts, apiCentrifugo, apiWebPush, createAccountsOauthDisconnectCreate, createAccountsOauthGithubAuthorizeCreate, createAccountsOauthGithubCallbackCreate, createAccountsOtpRequestCreate, createAccountsOtpVerifyCreate, createAccountsProfileAvatarCreate, createAccountsTokenRefreshCreate, getAccountsOauthConnectionsList, getAccountsOauthProvidersRetrieve, getAccountsProfileRetrieve, partialUpdateAccountsProfilePartialPartialUpdate, partialUpdateAccountsProfilePartialUpdate, partialUpdateAccountsProfileUpdatePartialUpdate, updateAccountsProfileUpdateUpdate, useAccountsOauthConnectionsList, useAccountsOauthProvidersRetrieve, useAccountsProfileRetrieve, useCreateAccountsOauthDisconnectCreate, useCreateAccountsOauthGithubAuthorizeCreate, useCreateAccountsOauthGithubCallbackCreate, useCreateAccountsOtpRequestCreate, useCreateAccountsOtpVerifyCreate, useCreateAccountsProfileAvatarCreate, useCreateAccountsTokenRefreshCreate, usePartialUpdateAccountsProfilePartialPartialUpdate, usePartialUpdateAccountsProfilePartialUpdate, usePartialUpdateAccountsProfileUpdatePartialUpdate, useUpdateAccountsProfileUpdateUpdate };