@djangocfg/api 2.1.35 → 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
@@ -1,110 +0,0 @@
1
- 'use client';
2
-
3
- /**
4
- * SWR Hooks for RQ Jobs
5
- *
6
- * React hooks powered by SWR for data fetching with automatic caching,
7
- * revalidation, and optimistic updates.
8
- *
9
- * Usage:
10
- * ```typescript
11
- * // Query hooks (GET)
12
- * const { data, error, isLoading } = useUsers({ page: 1 })
13
- *
14
- * // Mutation hooks (POST/PUT/PATCH/DELETE)
15
- * const createUser = useCreateUser()
16
- * await createUser({ name: 'John', email: 'john@example.com' })
17
- * ```
18
- */
19
- import useSWR from 'swr'
20
- import { useSWRConfig } from 'swr'
21
- import * as Fetchers from '../fetchers/cfg_accounts__rq__rq_jobs'
22
- import type { API } from '../../index'
23
- import type { JobActionResponse } from '../schemas/JobActionResponse.schema'
24
- import type { JobDetail } from '../schemas/JobDetail.schema'
25
- import type { JobListRequest } from '../schemas/JobListRequest.schema'
26
- import type { PaginatedJobListList } from '../schemas/PaginatedJobListList.schema'
27
-
28
- /**
29
- * List all jobs
30
- *
31
- * @method GET
32
- * @path /cfg/rq/jobs/
33
- */
34
- export function useRqJobsList(params?: { page?: number; page_size?: number; queue?: string; status?: string }, client?: API): ReturnType<typeof useSWR<PaginatedJobListList>> {
35
- return useSWR<PaginatedJobListList>(
36
- params ? ['cfg-rq-jobs', params] : 'cfg-rq-jobs',
37
- () => Fetchers.getRqJobsList(params, client)
38
- )
39
- }
40
-
41
-
42
- /**
43
- * Get job details
44
- *
45
- * @method GET
46
- * @path /cfg/rq/jobs/{id}/
47
- */
48
- export function useRqJobsRetrieve(id: string, client?: API): ReturnType<typeof useSWR<JobDetail>> {
49
- return useSWR<JobDetail>(
50
- ['cfg-rq-job', id],
51
- () => Fetchers.getRqJobsRetrieve(id, client)
52
- )
53
- }
54
-
55
-
56
- /**
57
- * Delete job
58
- *
59
- * @method DELETE
60
- * @path /cfg/rq/jobs/{id}/
61
- */
62
- export function useDeleteRqJobsDestroy() {
63
- const { mutate } = useSWRConfig()
64
-
65
- return async (id: string, client?: API): Promise<JobActionResponse> => {
66
- const result = await Fetchers.deleteRqJobsDestroy(id, client)
67
- // Revalidate related queries
68
- mutate('cfg-rq-jobs')
69
- mutate('cfg-rq-job')
70
- return result
71
- }
72
- }
73
-
74
-
75
- /**
76
- * Cancel job
77
- *
78
- * @method POST
79
- * @path /cfg/rq/jobs/{id}/cancel/
80
- */
81
- export function useCreateRqJobsCancelCreate() {
82
- const { mutate } = useSWRConfig()
83
-
84
- return async (id: string, data: JobListRequest, client?: API): Promise<JobActionResponse> => {
85
- const result = await Fetchers.createRqJobsCancelCreate(id, data, client)
86
- // Revalidate related queries
87
- mutate('cfg-rq-jobs-cancel')
88
- return result
89
- }
90
- }
91
-
92
-
93
- /**
94
- * Requeue job
95
- *
96
- * @method POST
97
- * @path /cfg/rq/jobs/{id}/requeue/
98
- */
99
- export function useCreateRqJobsRequeueCreate() {
100
- const { mutate } = useSWRConfig()
101
-
102
- return async (id: string, data: JobListRequest, client?: API): Promise<JobActionResponse> => {
103
- const result = await Fetchers.createRqJobsRequeueCreate(id, data, client)
104
- // Revalidate related queries
105
- mutate('cfg-rq-jobs-requeue')
106
- return result
107
- }
108
- }
109
-
110
-
@@ -1,66 +0,0 @@
1
- 'use client';
2
-
3
- /**
4
- * SWR Hooks for RQ Monitoring
5
- *
6
- * React hooks powered by SWR for data fetching with automatic caching,
7
- * revalidation, and optimistic updates.
8
- *
9
- * Usage:
10
- * ```typescript
11
- * // Query hooks (GET)
12
- * const { data, error, isLoading } = useUsers({ page: 1 })
13
- *
14
- * // Mutation hooks (POST/PUT/PATCH/DELETE)
15
- * const createUser = useCreateUser()
16
- * await createUser({ name: 'John', email: 'john@example.com' })
17
- * ```
18
- */
19
- import useSWR from 'swr'
20
- import * as Fetchers from '../fetchers/cfg_accounts__rq__rq_monitoring'
21
- import type { API } from '../../index'
22
- import type { RQConfig } from '../schemas/RQConfig.schema'
23
- import type { RQHealthCheck } from '../schemas/RQHealthCheck.schema'
24
-
25
- /**
26
- * Get RQ configuration
27
- *
28
- * @method GET
29
- * @path /cfg/rq/monitor/config/
30
- */
31
- export function useRqMonitorConfigRetrieve(client?: API): ReturnType<typeof useSWR<RQConfig>> {
32
- return useSWR<RQConfig>(
33
- 'cfg-rq-monitor-config',
34
- () => Fetchers.getRqMonitorConfigRetrieve(client)
35
- )
36
- }
37
-
38
-
39
- /**
40
- * Health check
41
- *
42
- * @method GET
43
- * @path /cfg/rq/monitor/health/
44
- */
45
- export function useRqMonitorHealthRetrieve(client?: API): ReturnType<typeof useSWR<RQHealthCheck>> {
46
- return useSWR<RQHealthCheck>(
47
- 'cfg-rq-monitor-health',
48
- () => Fetchers.getRqMonitorHealthRetrieve(client)
49
- )
50
- }
51
-
52
-
53
- /**
54
- * Prometheus metrics
55
- *
56
- * @method GET
57
- * @path /cfg/rq/monitor/metrics/
58
- */
59
- export function useRqMonitorMetricsRetrieve(client?: API): ReturnType<typeof useSWR<any>> {
60
- return useSWR<any>(
61
- 'cfg-rq-monitor-metric',
62
- () => Fetchers.getRqMonitorMetricsRetrieve(client)
63
- )
64
- }
65
-
66
-
@@ -1,84 +0,0 @@
1
- 'use client';
2
-
3
- /**
4
- * SWR Hooks for RQ Queues
5
- *
6
- * React hooks powered by SWR for data fetching with automatic caching,
7
- * revalidation, and optimistic updates.
8
- *
9
- * Usage:
10
- * ```typescript
11
- * // Query hooks (GET)
12
- * const { data, error, isLoading } = useUsers({ page: 1 })
13
- *
14
- * // Mutation hooks (POST/PUT/PATCH/DELETE)
15
- * const createUser = useCreateUser()
16
- * await createUser({ name: 'John', email: 'john@example.com' })
17
- * ```
18
- */
19
- import useSWR from 'swr'
20
- import { useSWRConfig } from 'swr'
21
- import * as Fetchers from '../fetchers/cfg_accounts__rq__rq_queues'
22
- import type { API } from '../../index'
23
- import type { QueueDetail } from '../schemas/QueueDetail.schema'
24
-
25
- /**
26
- * List all queues
27
- *
28
- * @method GET
29
- * @path /cfg/rq/queues/
30
- */
31
- export function useRqQueuesList(params?: { name?: string }, client?: API): ReturnType<typeof useSWR<any>> {
32
- return useSWR<any>(
33
- params ? ['cfg-rq-queues', params] : 'cfg-rq-queues',
34
- () => Fetchers.getRqQueuesList(params, client)
35
- )
36
- }
37
-
38
-
39
- /**
40
- * Get queue details
41
- *
42
- * @method GET
43
- * @path /cfg/rq/queues/{id}/
44
- */
45
- export function useRqQueuesRetrieve(id: string, client?: API): ReturnType<typeof useSWR<QueueDetail>> {
46
- return useSWR<QueueDetail>(
47
- ['cfg-rq-queue', id],
48
- () => Fetchers.getRqQueuesRetrieve(id, client)
49
- )
50
- }
51
-
52
-
53
- /**
54
- * Empty queue
55
- *
56
- * @method POST
57
- * @path /cfg/rq/queues/{id}/empty/
58
- */
59
- export function useCreateRqQueuesEmptyCreate() {
60
- const { mutate } = useSWRConfig()
61
-
62
- return async (id: string, client?: API): Promise<any> => {
63
- const result = await Fetchers.createRqQueuesEmptyCreate(id, client)
64
- // Revalidate related queries
65
- mutate('cfg-rq-queues-empty')
66
- return result
67
- }
68
- }
69
-
70
-
71
- /**
72
- * Get queue jobs
73
- *
74
- * @method GET
75
- * @path /cfg/rq/queues/{id}/jobs/
76
- */
77
- export function useRqQueuesJobsRetrieve(id: string, params?: { limit?: number; offset?: number }, client?: API): ReturnType<typeof useSWR<any>> {
78
- return useSWR<any>(
79
- ['cfg-rq-queues-job', id],
80
- () => Fetchers.getRqQueuesJobsRetrieve(id, params, client)
81
- )
82
- }
83
-
84
-
@@ -1,136 +0,0 @@
1
- 'use client';
2
-
3
- /**
4
- * SWR Hooks for RQ Registries
5
- *
6
- * React hooks powered by SWR for data fetching with automatic caching,
7
- * revalidation, and optimistic updates.
8
- *
9
- * Usage:
10
- * ```typescript
11
- * // Query hooks (GET)
12
- * const { data, error, isLoading } = useUsers({ page: 1 })
13
- *
14
- * // Mutation hooks (POST/PUT/PATCH/DELETE)
15
- * const createUser = useCreateUser()
16
- * await createUser({ name: 'John', email: 'john@example.com' })
17
- * ```
18
- */
19
- import useSWR from 'swr'
20
- import { useSWRConfig } from 'swr'
21
- import * as Fetchers from '../fetchers/cfg_accounts__rq__rq_registries'
22
- import type { API } from '../../index'
23
- import type { JobActionResponse } from '../schemas/JobActionResponse.schema'
24
- import type { JobListRequest } from '../schemas/JobListRequest.schema'
25
- import type { PaginatedJobListList } from '../schemas/PaginatedJobListList.schema'
26
-
27
- /**
28
- * List deferred jobs
29
- *
30
- * @method GET
31
- * @path /cfg/rq/jobs/registries/deferred/
32
- */
33
- export function useRqJobsRegistriesDeferredList(params?: { page?: number; page_size?: number; queue?: string }, client?: API): ReturnType<typeof useSWR<PaginatedJobListList>> {
34
- return useSWR<PaginatedJobListList>(
35
- params ? ['cfg-rq-jobs-registries-deferred', params] : 'cfg-rq-jobs-registries-deferred',
36
- () => Fetchers.getRqJobsRegistriesDeferredList(params, client)
37
- )
38
- }
39
-
40
-
41
- /**
42
- * List failed jobs
43
- *
44
- * @method GET
45
- * @path /cfg/rq/jobs/registries/failed/
46
- */
47
- export function useRqJobsRegistriesFailedList(params?: { page?: number; page_size?: number; queue?: string }, client?: API): ReturnType<typeof useSWR<PaginatedJobListList>> {
48
- return useSWR<PaginatedJobListList>(
49
- params ? ['cfg-rq-jobs-registries-failed', params] : 'cfg-rq-jobs-registries-failed',
50
- () => Fetchers.getRqJobsRegistriesFailedList(params, client)
51
- )
52
- }
53
-
54
-
55
- /**
56
- * Clear failed jobs registry
57
- *
58
- * @method POST
59
- * @path /cfg/rq/jobs/registries/failed/clear/
60
- */
61
- export function useCreateRqJobsRegistriesFailedClearCreate() {
62
- const { mutate } = useSWRConfig()
63
-
64
- return async (data: JobListRequest, params: { queue: string }, client?: API): Promise<JobActionResponse> => {
65
- const result = await Fetchers.createRqJobsRegistriesFailedClearCreate(data, params, client)
66
- // Revalidate related queries
67
- mutate('cfg-rq-jobs-registries-failed-clear')
68
- return result
69
- }
70
- }
71
-
72
-
73
- /**
74
- * Requeue all failed jobs
75
- *
76
- * @method POST
77
- * @path /cfg/rq/jobs/registries/failed/requeue-all/
78
- */
79
- export function useCreateRqJobsRegistriesFailedRequeueAllCreate() {
80
- const { mutate } = useSWRConfig()
81
-
82
- return async (data: JobListRequest, params: { queue: string }, client?: API): Promise<JobActionResponse> => {
83
- const result = await Fetchers.createRqJobsRegistriesFailedRequeueAllCreate(data, params, client)
84
- // Revalidate related queries
85
- mutate('cfg-rq-jobs-registries-failed-requeue-all')
86
- return result
87
- }
88
- }
89
-
90
-
91
- /**
92
- * List finished jobs
93
- *
94
- * @method GET
95
- * @path /cfg/rq/jobs/registries/finished/
96
- */
97
- export function useRqJobsRegistriesFinishedList(params?: { page?: number; page_size?: number; queue?: string }, client?: API): ReturnType<typeof useSWR<PaginatedJobListList>> {
98
- return useSWR<PaginatedJobListList>(
99
- params ? ['cfg-rq-jobs-registries-finished', params] : 'cfg-rq-jobs-registries-finished',
100
- () => Fetchers.getRqJobsRegistriesFinishedList(params, client)
101
- )
102
- }
103
-
104
-
105
- /**
106
- * Clear finished jobs registry
107
- *
108
- * @method POST
109
- * @path /cfg/rq/jobs/registries/finished/clear/
110
- */
111
- export function useCreateRqJobsRegistriesFinishedClearCreate() {
112
- const { mutate } = useSWRConfig()
113
-
114
- return async (data: JobListRequest, params: { queue: string }, client?: API): Promise<JobActionResponse> => {
115
- const result = await Fetchers.createRqJobsRegistriesFinishedClearCreate(data, params, client)
116
- // Revalidate related queries
117
- mutate('cfg-rq-jobs-registries-finished-clear')
118
- return result
119
- }
120
- }
121
-
122
-
123
- /**
124
- * List started jobs
125
- *
126
- * @method GET
127
- * @path /cfg/rq/jobs/registries/started/
128
- */
129
- export function useRqJobsRegistriesStartedList(params?: { page?: number; page_size?: number; queue?: string }, client?: API): ReturnType<typeof useSWR<PaginatedJobListList>> {
130
- return useSWR<PaginatedJobListList>(
131
- params ? ['cfg-rq-jobs-registries-started', params] : 'cfg-rq-jobs-registries-started',
132
- () => Fetchers.getRqJobsRegistriesStartedList(params, client)
133
- )
134
- }
135
-
136
-
@@ -1,92 +0,0 @@
1
- 'use client';
2
-
3
- /**
4
- * SWR Hooks for RQ Schedules
5
- *
6
- * React hooks powered by SWR for data fetching with automatic caching,
7
- * revalidation, and optimistic updates.
8
- *
9
- * Usage:
10
- * ```typescript
11
- * // Query hooks (GET)
12
- * const { data, error, isLoading } = useUsers({ page: 1 })
13
- *
14
- * // Mutation hooks (POST/PUT/PATCH/DELETE)
15
- * const createUser = useCreateUser()
16
- * await createUser({ name: 'John', email: 'john@example.com' })
17
- * ```
18
- */
19
- import useSWR from 'swr'
20
- import { useSWRConfig } from 'swr'
21
- import * as Fetchers from '../fetchers/cfg_accounts__rq__rq_schedules'
22
- import type { API } from '../../index'
23
- import type { PaginatedScheduledJobList } from '../schemas/PaginatedScheduledJobList.schema'
24
- import type { ScheduleActionResponse } from '../schemas/ScheduleActionResponse.schema'
25
- import type { ScheduleCreateRequest } from '../schemas/ScheduleCreateRequest.schema'
26
- import type { ScheduledJob } from '../schemas/ScheduledJob.schema'
27
-
28
- /**
29
- * List scheduled jobs
30
- *
31
- * @method GET
32
- * @path /cfg/rq/schedules/
33
- */
34
- export function useRqSchedulesList(params?: { page?: number; page_size?: number; queue?: string }, client?: API): ReturnType<typeof useSWR<PaginatedScheduledJobList>> {
35
- return useSWR<PaginatedScheduledJobList>(
36
- params ? ['cfg-rq-schedules', params] : 'cfg-rq-schedules',
37
- () => Fetchers.getRqSchedulesList(params, client)
38
- )
39
- }
40
-
41
-
42
- /**
43
- * Create scheduled job
44
- *
45
- * @method POST
46
- * @path /cfg/rq/schedules/
47
- */
48
- export function useCreateRqSchedulesCreate() {
49
- const { mutate } = useSWRConfig()
50
-
51
- return async (data: ScheduleCreateRequest, client?: API): Promise<ScheduleActionResponse> => {
52
- const result = await Fetchers.createRqSchedulesCreate(data, client)
53
- // Revalidate related queries
54
- mutate('cfg-rq-schedules')
55
- return result
56
- }
57
- }
58
-
59
-
60
- /**
61
- * Get scheduled job details
62
- *
63
- * @method GET
64
- * @path /cfg/rq/schedules/{id}/
65
- */
66
- export function useRqSchedulesRetrieve(id: string, pk: string, params?: { queue?: string }, client?: API): ReturnType<typeof useSWR<ScheduledJob>> {
67
- return useSWR<ScheduledJob>(
68
- ['cfg-rq-schedule', id],
69
- () => Fetchers.getRqSchedulesRetrieve(id, pk, params, client)
70
- )
71
- }
72
-
73
-
74
- /**
75
- * Cancel scheduled job
76
- *
77
- * @method DELETE
78
- * @path /cfg/rq/schedules/{id}/
79
- */
80
- export function useDeleteRqSchedulesDestroy() {
81
- const { mutate } = useSWRConfig()
82
-
83
- return async (id: string, pk: string, params?: { queue?: string }, client?: API): Promise<ScheduleActionResponse> => {
84
- const result = await Fetchers.deleteRqSchedulesDestroy(id, pk, params, client)
85
- // Revalidate related queries
86
- mutate('cfg-rq-schedules')
87
- mutate('cfg-rq-schedule')
88
- return result
89
- }
90
- }
91
-
92
-
@@ -1,126 +0,0 @@
1
- 'use client';
2
-
3
- /**
4
- * SWR Hooks for RQ Testing
5
- *
6
- * React hooks powered by SWR for data fetching with automatic caching,
7
- * revalidation, and optimistic updates.
8
- *
9
- * Usage:
10
- * ```typescript
11
- * // Query hooks (GET)
12
- * const { data, error, isLoading } = useUsers({ page: 1 })
13
- *
14
- * // Mutation hooks (POST/PUT/PATCH/DELETE)
15
- * const createUser = useCreateUser()
16
- * await createUser({ name: 'John', email: 'john@example.com' })
17
- * ```
18
- */
19
- import useSWR from 'swr'
20
- import { useSWRConfig } from 'swr'
21
- import * as Fetchers from '../fetchers/cfg_accounts__rq__rq_testing'
22
- import type { API } from '../../index'
23
- import type { RunDemoRequestRequest } from '../schemas/RunDemoRequestRequest.schema'
24
- import type { StressTestRequestRequest } from '../schemas/StressTestRequestRequest.schema'
25
- import type { TestingActionResponse } from '../schemas/TestingActionResponse.schema'
26
-
27
- /**
28
- * List test scenarios
29
- *
30
- * @method GET
31
- * @path /cfg/rq/testing/
32
- */
33
- export function useRqTestingList(client?: API): ReturnType<typeof useSWR<any>> {
34
- return useSWR<any>(
35
- 'cfg-rq-testing',
36
- () => Fetchers.getRqTestingList(client)
37
- )
38
- }
39
-
40
-
41
- /**
42
- * Cleanup test jobs
43
- *
44
- * @method DELETE
45
- * @path /cfg/rq/testing/cleanup/
46
- */
47
- export function useDeleteRqTestingCleanupDestroy() {
48
- const { mutate } = useSWRConfig()
49
-
50
- return async (params?: { delete_demo_jobs_only?: boolean; queue?: string; registries?: string }, client?: API): Promise<TestingActionResponse> => {
51
- const result = await Fetchers.deleteRqTestingCleanupDestroy(params, client)
52
- // Revalidate related queries
53
- mutate('cfg-rq-testing-cleanup')
54
- return result
55
- }
56
- }
57
-
58
-
59
- /**
60
- * Get test results
61
- *
62
- * @method GET
63
- * @path /cfg/rq/testing/results/
64
- */
65
- export function useRqTestingResultsRetrieve(params?: { queue?: string; scenario?: string }, client?: API): ReturnType<typeof useSWR<any>> {
66
- return useSWR<any>(
67
- params ? ['cfg-rq-testing-result', params] : 'cfg-rq-testing-result',
68
- () => Fetchers.getRqTestingResultsRetrieve(params, client)
69
- )
70
- }
71
-
72
-
73
- /**
74
- * Run demo task
75
- *
76
- * @method POST
77
- * @path /cfg/rq/testing/run-demo/
78
- */
79
- export function useCreateRqTestingRunDemoCreate() {
80
- const { mutate } = useSWRConfig()
81
-
82
- return async (data: RunDemoRequestRequest, client?: API): Promise<TestingActionResponse> => {
83
- const result = await Fetchers.createRqTestingRunDemoCreate(data, client)
84
- // Revalidate related queries
85
- mutate('cfg-rq-testing-run-demo')
86
- return result
87
- }
88
- }
89
-
90
-
91
- /**
92
- * Schedule demo tasks
93
- *
94
- * @method POST
95
- * @path /cfg/rq/testing/schedule-demo/
96
- */
97
- export function useCreateRqTestingScheduleDemoCreate() {
98
- const { mutate } = useSWRConfig()
99
-
100
- return async (data: any, client?: API): Promise<TestingActionResponse> => {
101
- const result = await Fetchers.createRqTestingScheduleDemoCreate(data, client)
102
- // Revalidate related queries
103
- mutate('cfg-rq-testing-schedule-demo')
104
- return result
105
- }
106
- }
107
-
108
-
109
- /**
110
- * Stress test
111
- *
112
- * @method POST
113
- * @path /cfg/rq/testing/stress-test/
114
- */
115
- export function useCreateRqTestingStressTestCreate() {
116
- const { mutate } = useSWRConfig()
117
-
118
- return async (data: StressTestRequestRequest, client?: API): Promise<TestingActionResponse> => {
119
- const result = await Fetchers.createRqTestingStressTestCreate(data, client)
120
- // Revalidate related queries
121
- mutate('cfg-rq-testing-stress-test')
122
- return result
123
- }
124
- }
125
-
126
-
@@ -1,51 +0,0 @@
1
- 'use client';
2
-
3
- /**
4
- * SWR Hooks for RQ Workers
5
- *
6
- * React hooks powered by SWR for data fetching with automatic caching,
7
- * revalidation, and optimistic updates.
8
- *
9
- * Usage:
10
- * ```typescript
11
- * // Query hooks (GET)
12
- * const { data, error, isLoading } = useUsers({ page: 1 })
13
- *
14
- * // Mutation hooks (POST/PUT/PATCH/DELETE)
15
- * const createUser = useCreateUser()
16
- * await createUser({ name: 'John', email: 'john@example.com' })
17
- * ```
18
- */
19
- import useSWR from 'swr'
20
- import * as Fetchers from '../fetchers/cfg_accounts__rq__rq_workers'
21
- import type { API } from '../../index'
22
- import type { WorkerStats } from '../schemas/WorkerStats.schema'
23
-
24
- /**
25
- * List all workers
26
- *
27
- * @method GET
28
- * @path /cfg/rq/workers/
29
- */
30
- export function useRqWorkersList(params?: { queue?: string; state?: string }, client?: API): ReturnType<typeof useSWR<any>> {
31
- return useSWR<any>(
32
- params ? ['cfg-rq-workers', params] : 'cfg-rq-workers',
33
- () => Fetchers.getRqWorkersList(params, client)
34
- )
35
- }
36
-
37
-
38
- /**
39
- * Get worker statistics
40
- *
41
- * @method GET
42
- * @path /cfg/rq/workers/stats/
43
- */
44
- export function useRqWorkersStatsRetrieve(client?: API): ReturnType<typeof useSWR<WorkerStats>> {
45
- return useSWR<WorkerStats>(
46
- 'cfg-rq-workers-stat',
47
- () => Fetchers.getRqWorkersStatsRetrieve(client)
48
- )
49
- }
50
-
51
-
@@ -1,29 +0,0 @@
1
- /**
2
- * Zod schema for APIZone
3
- *
4
- * This schema provides runtime validation and type inference.
5
- * * OpenAPI zone/group serializer.
6
- * */
7
- import { z } from 'zod'
8
-
9
- /**
10
- * OpenAPI zone/group serializer.
11
- */
12
- export const APIZoneSchema = z.object({
13
- name: z.string(),
14
- title: z.string(),
15
- description: z.string(),
16
- app_count: z.int(),
17
- endpoint_count: z.int(),
18
- status: z.string(),
19
- schema_url: z.string(),
20
- relative_schema_url: z.string(),
21
- api_url: z.string(),
22
- relative_api_url: z.string(),
23
- apps: z.array(z.string()),
24
- })
25
-
26
- /**
27
- * Infer TypeScript type from Zod schema
28
- */
29
- export type APIZone = z.infer<typeof APIZoneSchema>