@djangocfg/api 1.2.5 → 1.2.7

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 (113) hide show
  1. package/dist/index.cjs +4630 -1605
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +5103 -1773
  4. package/dist/index.d.ts +5103 -1773
  5. package/dist/index.mjs +4481 -1486
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/contexts/TasksContext.tsx +242 -0
  9. package/src/cfg/contexts/index.ts +3 -0
  10. package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +2 -3
  11. package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +1 -2
  12. package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +6 -7
  13. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +61 -0
  14. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +12 -13
  15. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +25 -26
  16. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +8 -9
  17. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_activity.ts +61 -0
  18. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_api_zones.ts +62 -0
  19. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_charts.ts +90 -0
  20. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_commands.ts +62 -0
  21. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_overview.ts +48 -0
  22. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_statistics.ts +76 -0
  23. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_system.ts +63 -0
  24. package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +30 -2
  25. package/src/cfg/generated/_utils/fetchers/cfg__health.ts +2 -3
  26. package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +57 -58
  27. package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +6 -7
  28. package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +1 -2
  29. package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +3 -4
  30. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +1 -2
  31. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +6 -7
  32. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +1 -2
  33. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +2 -3
  34. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +3 -4
  35. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +1 -2
  36. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +8 -9
  37. package/src/cfg/generated/_utils/fetchers/cfg__support.ts +12 -13
  38. package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +10 -11
  39. package/src/cfg/generated/_utils/fetchers/index.ts +8 -0
  40. package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +49 -0
  41. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +20 -20
  42. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_activity.ts +49 -0
  43. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_api_zones.ts +50 -0
  44. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_charts.ts +78 -0
  45. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_commands.ts +50 -0
  46. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_overview.ts +36 -0
  47. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_statistics.ts +64 -0
  48. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_system.ts +51 -0
  49. package/src/cfg/generated/_utils/hooks/cfg__endpoints.ts +29 -0
  50. package/src/cfg/generated/_utils/hooks/index.ts +8 -0
  51. package/src/cfg/generated/_utils/schemas/APIZone.schema.ts +27 -0
  52. package/src/cfg/generated/_utils/schemas/APIZonesSummary.schema.ts +21 -0
  53. package/src/cfg/generated/_utils/schemas/ActivityEntry.schema.ts +25 -0
  54. package/src/cfg/generated/_utils/schemas/ActivityTrackerDay.schema.ts +23 -0
  55. package/src/cfg/generated/_utils/schemas/AppStatistics.schema.ts +20 -0
  56. package/src/cfg/generated/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +1 -1
  57. package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +2 -2
  58. package/src/cfg/generated/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +2 -2
  59. package/src/cfg/generated/_utils/schemas/CentrifugoPublication.schema.ts +1 -1
  60. package/src/cfg/generated/_utils/schemas/ChannelStatsSerializer.schema.ts +1 -0
  61. package/src/cfg/generated/_utils/schemas/ChartData.schema.ts +21 -0
  62. package/src/cfg/generated/_utils/schemas/ChartDataset.schema.ts +24 -0
  63. package/src/cfg/generated/_utils/schemas/Command.schema.ts +23 -0
  64. package/src/cfg/generated/_utils/schemas/CommandsSummary.schema.ts +25 -0
  65. package/src/cfg/generated/_utils/schemas/DashboardOverview.schema.ts +27 -0
  66. package/src/cfg/generated/_utils/schemas/ManualAckResponse.schema.ts +1 -1
  67. package/src/cfg/generated/_utils/schemas/PublishTestResponse.schema.ts +1 -1
  68. package/src/cfg/generated/_utils/schemas/QuickAction.schema.ts +29 -0
  69. package/src/cfg/generated/_utils/schemas/RecentPublishes.schema.ts +2 -0
  70. package/src/cfg/generated/_utils/schemas/RecentUser.schema.ts +26 -0
  71. package/src/cfg/generated/_utils/schemas/StatCard.schema.ts +30 -0
  72. package/src/cfg/generated/_utils/schemas/SystemHealth.schema.ts +24 -0
  73. package/src/cfg/generated/_utils/schemas/SystemHealthItem.schema.ts +28 -0
  74. package/src/cfg/generated/_utils/schemas/SystemMetrics.schema.ts +25 -0
  75. package/src/cfg/generated/_utils/schemas/URLPattern.schema.ts +26 -0
  76. package/src/cfg/generated/_utils/schemas/URLsList.schema.ts +25 -0
  77. package/src/cfg/generated/_utils/schemas/UserStatistics.schema.ts +22 -0
  78. package/src/cfg/generated/_utils/schemas/index.ts +19 -0
  79. package/src/cfg/generated/cfg__centrifugo/client.ts +30 -0
  80. package/src/cfg/generated/cfg__centrifugo/index.ts +2 -0
  81. package/src/cfg/generated/cfg__centrifugo/models.ts +0 -0
  82. package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +6 -6
  83. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +32 -32
  84. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +18 -12
  85. package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/models.ts +2 -2
  86. package/src/cfg/generated/cfg__dashboard__dashboard_activity/client.ts +45 -0
  87. package/src/cfg/generated/cfg__dashboard__dashboard_activity/index.ts +2 -0
  88. package/src/cfg/generated/cfg__dashboard__dashboard_activity/models.ts +0 -0
  89. package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/client.ts +34 -0
  90. package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/index.ts +2 -0
  91. package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/models.ts +27 -0
  92. package/src/cfg/generated/cfg__dashboard__dashboard_charts/client.ts +98 -0
  93. package/src/cfg/generated/cfg__dashboard__dashboard_charts/index.ts +2 -0
  94. package/src/cfg/generated/cfg__dashboard__dashboard_charts/models.ts +24 -0
  95. package/src/cfg/generated/cfg__dashboard__dashboard_commands/client.ts +34 -0
  96. package/src/cfg/generated/cfg__dashboard__dashboard_commands/index.ts +2 -0
  97. package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +27 -0
  98. package/src/cfg/generated/cfg__dashboard__dashboard_overview/client.ts +25 -0
  99. package/src/cfg/generated/cfg__dashboard__dashboard_overview/index.ts +2 -0
  100. package/src/cfg/generated/cfg__dashboard__dashboard_overview/models.ts +23 -0
  101. package/src/cfg/generated/cfg__dashboard__dashboard_statistics/client.ts +44 -0
  102. package/src/cfg/generated/cfg__dashboard__dashboard_statistics/index.ts +2 -0
  103. package/src/cfg/generated/cfg__dashboard__dashboard_statistics/models.ts +16 -0
  104. package/src/cfg/generated/cfg__dashboard__dashboard_system/client.ts +34 -0
  105. package/src/cfg/generated/cfg__dashboard__dashboard_system/index.ts +2 -0
  106. package/src/cfg/generated/cfg__dashboard__dashboard_system/models.ts +69 -0
  107. package/src/cfg/generated/cfg__endpoints/client.ts +16 -0
  108. package/src/cfg/generated/cfg__endpoints/models.ts +44 -0
  109. package/src/cfg/generated/client.ts +35 -9
  110. package/src/cfg/generated/enums.ts +56 -0
  111. package/src/cfg/generated/http.ts +8 -3
  112. package/src/cfg/generated/index.ts +47 -10
  113. package/src/cfg/generated/schema.ts +2120 -135
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Zod schema for DashboardOverview
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Main serializer for dashboard overview endpoint.
6
+ Uses DictField to avoid allOf generation in OpenAPI.
7
+ * */
8
+ import { z } from 'zod'
9
+
10
+ /**
11
+ * Main serializer for dashboard overview endpoint.
12
+ Uses DictField to avoid allOf generation in OpenAPI.
13
+ */
14
+ export const DashboardOverviewSchema = z.object({
15
+ stat_cards: z.array(z.record(z.string(), z.any())),
16
+ system_health: z.array(z.record(z.string(), z.any())),
17
+ quick_actions: z.array(z.record(z.string(), z.any())),
18
+ recent_activity: z.array(z.record(z.string(), z.any())),
19
+ system_metrics: z.record(z.string(), z.any()),
20
+ user_statistics: z.record(z.string(), z.any()),
21
+ timestamp: z.string(),
22
+ })
23
+
24
+ /**
25
+ * Infer TypeScript type from Zod schema
26
+ */
27
+ export type DashboardOverview = z.infer<typeof DashboardOverviewSchema>
@@ -12,7 +12,7 @@ import { z } from 'zod'
12
12
  export const ManualAckResponseSchema = z.object({
13
13
  success: z.boolean(),
14
14
  message_id: z.string(),
15
- error: z.string().optional(),
15
+ error: z.string().nullable().optional(),
16
16
  })
17
17
 
18
18
  /**
@@ -15,7 +15,7 @@ export const PublishTestResponseSchema = z.object({
15
15
  channel: z.string(),
16
16
  acks_received: z.int().optional(),
17
17
  delivered: z.boolean().optional(),
18
- error: z.string().optional(),
18
+ error: z.string().nullable().optional(),
19
19
  })
20
20
 
21
21
  /**
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Zod schema for QuickAction
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for quick action buttons.
6
+
7
+ Maps to QuickAction Pydantic model.
8
+ * */
9
+ import { z } from 'zod'
10
+ import * as Enums from '../../enums'
11
+
12
+ /**
13
+ * Serializer for quick action buttons.
14
+
15
+ Maps to QuickAction Pydantic model.
16
+ */
17
+ export const QuickActionSchema = z.object({
18
+ title: z.string(),
19
+ description: z.string(),
20
+ icon: z.string(),
21
+ link: z.string(),
22
+ color: z.nativeEnum(Enums.QuickActionColor).optional(),
23
+ category: z.string().optional(),
24
+ })
25
+
26
+ /**
27
+ * Infer TypeScript type from Zod schema
28
+ */
29
+ export type QuickAction = z.infer<typeof QuickActionSchema>
@@ -13,6 +13,8 @@ export const RecentPublishesSchema = z.object({
13
13
  publishes: z.array(z.record(z.string(), z.any())),
14
14
  count: z.int(),
15
15
  total_available: z.int(),
16
+ offset: z.int().optional(),
17
+ has_more: z.boolean().optional(),
16
18
  })
17
19
 
18
20
  /**
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Zod schema for RecentUser
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Recent user serializer.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Recent user serializer.
11
+ */
12
+ export const RecentUserSchema = z.object({
13
+ id: z.int(),
14
+ username: z.string(),
15
+ email: z.email(),
16
+ date_joined: z.string(),
17
+ is_active: z.boolean(),
18
+ is_staff: z.boolean(),
19
+ is_superuser: z.boolean(),
20
+ last_login: z.string().nullable(),
21
+ })
22
+
23
+ /**
24
+ * Infer TypeScript type from Zod schema
25
+ */
26
+ export type RecentUser = z.infer<typeof RecentUserSchema>
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Zod schema for StatCard
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for dashboard statistics cards.
6
+
7
+ Maps to StatCard Pydantic model.
8
+ * */
9
+ import { z } from 'zod'
10
+ import * as Enums from '../../enums'
11
+
12
+ /**
13
+ * Serializer for dashboard statistics cards.
14
+
15
+ Maps to StatCard Pydantic model.
16
+ */
17
+ export const StatCardSchema = z.object({
18
+ title: z.string(),
19
+ value: z.string(),
20
+ icon: z.string(),
21
+ change: z.string().nullable().optional(),
22
+ change_type: z.nativeEnum(Enums.StatCardChangeType).optional(),
23
+ description: z.string().nullable().optional(),
24
+ color: z.string().optional(),
25
+ })
26
+
27
+ /**
28
+ * Infer TypeScript type from Zod schema
29
+ */
30
+ export type StatCard = z.infer<typeof StatCardSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for SystemHealth
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for overall system health status.
6
+ * */
7
+ import { z } from 'zod'
8
+ import * as Enums from '../../enums'
9
+ import { SystemHealthItemSchema } from './SystemHealthItem.schema'
10
+
11
+ /**
12
+ * Serializer for overall system health status.
13
+ */
14
+ export const SystemHealthSchema = z.object({
15
+ overall_status: z.nativeEnum(Enums.SystemHealthOverallStatus),
16
+ overall_health_percentage: z.int().min(0.0).max(100.0),
17
+ components: z.array(SystemHealthItemSchema),
18
+ timestamp: z.string(),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type SystemHealth = z.infer<typeof SystemHealthSchema>
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Zod schema for SystemHealthItem
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for system health status items.
6
+
7
+ Maps to SystemHealthItem Pydantic model.
8
+ * */
9
+ import { z } from 'zod'
10
+ import * as Enums from '../../enums'
11
+
12
+ /**
13
+ * Serializer for system health status items.
14
+
15
+ Maps to SystemHealthItem Pydantic model.
16
+ */
17
+ export const SystemHealthItemSchema = z.object({
18
+ component: z.string(),
19
+ status: z.nativeEnum(Enums.SystemHealthItemStatus),
20
+ description: z.string(),
21
+ last_check: z.string(),
22
+ health_percentage: z.int().min(0.0).max(100.0).nullable().optional(),
23
+ })
24
+
25
+ /**
26
+ * Infer TypeScript type from Zod schema
27
+ */
28
+ export type SystemHealthItem = z.infer<typeof SystemHealthItemSchema>
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Zod schema for SystemMetrics
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for system performance metrics.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Serializer for system performance metrics.
11
+ */
12
+ export const SystemMetricsSchema = z.object({
13
+ cpu_usage: z.number(),
14
+ memory_usage: z.number(),
15
+ disk_usage: z.number(),
16
+ network_in: z.string(),
17
+ network_out: z.string(),
18
+ response_time: z.string(),
19
+ uptime: z.string(),
20
+ })
21
+
22
+ /**
23
+ * Infer TypeScript type from Zod schema
24
+ */
25
+ export type SystemMetrics = z.infer<typeof SystemMetricsSchema>
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Zod schema for URLPattern
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for single URL pattern.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Serializer for single URL pattern.
11
+ */
12
+ export const URLPatternSchema = z.object({
13
+ pattern: z.string(),
14
+ name: z.string().nullable().optional(),
15
+ full_name: z.string().nullable().optional(),
16
+ namespace: z.string().nullable().optional(),
17
+ view: z.string().nullable().optional(),
18
+ view_class: z.string().nullable().optional(),
19
+ methods: z.array(z.string()).optional(),
20
+ module: z.string().nullable().optional(),
21
+ })
22
+
23
+ /**
24
+ * Infer TypeScript type from Zod schema
25
+ */
26
+ export type URLPattern = z.infer<typeof URLPatternSchema>
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Zod schema for URLsList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for URLs list response.
6
+ * */
7
+ import { z } from 'zod'
8
+ import { URLPatternSchema } from './URLPattern.schema'
9
+
10
+ /**
11
+ * Serializer for URLs list response.
12
+ */
13
+ export const URLsListSchema = z.object({
14
+ status: z.string(),
15
+ service: z.string(),
16
+ version: z.string(),
17
+ base_url: z.string(),
18
+ total_urls: z.int(),
19
+ urls: z.array(URLPatternSchema),
20
+ })
21
+
22
+ /**
23
+ * Infer TypeScript type from Zod schema
24
+ */
25
+ export type URLsList = z.infer<typeof URLsListSchema>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Zod schema for UserStatistics
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for user statistics.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Serializer for user statistics.
11
+ */
12
+ export const UserStatisticsSchema = z.object({
13
+ total_users: z.int(),
14
+ active_users: z.int(),
15
+ new_users: z.int(),
16
+ superusers: z.int(),
17
+ })
18
+
19
+ /**
20
+ * Infer TypeScript type from Zod schema
21
+ */
22
+ export type UserStatistics = z.infer<typeof UserStatisticsSchema>
@@ -18,6 +18,11 @@
18
18
 
19
19
  export * from './APIResponse.schema'
20
20
  export * from './APIResponseRequest.schema'
21
+ export * from './APIZone.schema'
22
+ export * from './APIZonesSummary.schema'
23
+ export * from './ActivityEntry.schema'
24
+ export * from './ActivityTrackerDay.schema'
25
+ export * from './AppStatistics.schema'
21
26
  export * from './ArchiveItem.schema'
22
27
  export * from './ArchiveItemChunk.schema'
23
28
  export * from './ArchiveItemChunkDetail.schema'
@@ -55,6 +60,8 @@ export * from './CentrifugoPublication.schema'
55
60
  export * from './CentrifugoStreamPosition.schema'
56
61
  export * from './ChannelList.schema'
57
62
  export * from './ChannelStatsSerializer.schema'
63
+ export * from './ChartData.schema'
64
+ export * from './ChartDataset.schema'
58
65
  export * from './ChatHistory.schema'
59
66
  export * from './ChatMessage.schema'
60
67
  export * from './ChatQueryRequest.schema'
@@ -66,9 +73,12 @@ export * from './ChatSessionRequest.schema'
66
73
  export * from './ChatSource.schema'
67
74
  export * from './ChatSourceRequest.schema'
68
75
  export * from './ChunkRevectorizationRequestRequest.schema'
76
+ export * from './Command.schema'
77
+ export * from './CommandsSummary.schema'
69
78
  export * from './ConnectionTokenRequestRequest.schema'
70
79
  export * from './ConnectionTokenResponse.schema'
71
80
  export * from './Currency.schema'
81
+ export * from './DashboardOverview.schema'
72
82
  export * from './Document.schema'
73
83
  export * from './DocumentArchive.schema'
74
84
  export * from './DocumentArchiveDetail.schema'
@@ -144,14 +154,20 @@ export * from './PublishTestResponse.schema'
144
154
  export * from './QueueAction.schema'
145
155
  export * from './QueueActionRequest.schema'
146
156
  export * from './QueueStatus.schema'
157
+ export * from './QuickAction.schema'
147
158
  export * from './QuickHealth.schema'
148
159
  export * from './RecentPublishes.schema'
160
+ export * from './RecentUser.schema'
149
161
  export * from './SendCampaignRequest.schema'
150
162
  export * from './SendCampaignResponse.schema'
151
163
  export * from './Sender.schema'
164
+ export * from './StatCard.schema'
152
165
  export * from './SubscribeRequest.schema'
153
166
  export * from './SubscribeResponse.schema'
154
167
  export * from './SuccessResponse.schema'
168
+ export * from './SystemHealth.schema'
169
+ export * from './SystemHealthItem.schema'
170
+ export * from './SystemMetrics.schema'
155
171
  export * from './TaskStatistics.schema'
156
172
  export * from './TestEmailRequest.schema'
157
173
  export * from './Ticket.schema'
@@ -159,10 +175,13 @@ export * from './TicketRequest.schema'
159
175
  export * from './TokenRefresh.schema'
160
176
  export * from './TokenRefreshRequest.schema'
161
177
  export * from './Transaction.schema'
178
+ export * from './URLPattern.schema'
179
+ export * from './URLsList.schema'
162
180
  export * from './Unsubscribe.schema'
163
181
  export * from './UnsubscribeRequest.schema'
164
182
  export * from './User.schema'
165
183
  export * from './UserProfileUpdateRequest.schema'
184
+ export * from './UserStatistics.schema'
166
185
  export * from './VectorizationResult.schema'
167
186
  export * from './VectorizationStatistics.schema'
168
187
  export * from './WorkerAction.schema'
@@ -0,0 +1,30 @@
1
+ import * as Models from "./models";
2
+
3
+
4
+ /**
5
+ * API endpoints for Centrifugo.
6
+ */
7
+ export class CfgCentrifugo {
8
+ private client: any;
9
+
10
+ constructor(client: any) {
11
+ this.client = client;
12
+ }
13
+
14
+ /**
15
+ * Get statistics per channel.
16
+ */
17
+ async adminApiMonitorChannelsRetrieve(): Promise<any> {
18
+ const response = await this.client.request('GET', "/cfg/centrifugo/admin/api/monitor/channels/");
19
+ return response;
20
+ }
21
+
22
+ /**
23
+ * Get statistics per channel.
24
+ */
25
+ async monitorChannelsRetrieve(): Promise<any> {
26
+ const response = await this.client.request('GET', "/cfg/centrifugo/monitor/channels/");
27
+ return response;
28
+ }
29
+
30
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * as Models from "./models";
File without changes
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export interface CentrifugoChannelsRequestRequest {
7
7
  /** Pattern to filter channels (e.g., 'user:*') */
8
- pattern?: string;
8
+ pattern?: string | null;
9
9
  }
10
10
 
11
11
  /**
@@ -27,10 +27,10 @@ export interface CentrifugoHistoryRequestRequest {
27
27
  /** Channel name */
28
28
  channel: string;
29
29
  /** Maximum number of messages to return */
30
- limit?: string;
30
+ limit?: string | null;
31
31
  since?: Record<string, any>;
32
32
  /** Reverse message order (newest first) */
33
- reverse?: string;
33
+ reverse?: string | null;
34
34
  }
35
35
 
36
36
  /**
@@ -185,7 +185,7 @@ export interface CentrifugoPublication {
185
185
  /** Message offset in channel stream */
186
186
  offset: number;
187
187
  /** Optional message tags */
188
- tags?: string;
188
+ tags?: string | null;
189
189
  }
190
190
 
191
191
  /**
@@ -225,9 +225,9 @@ export interface CentrifugoClientInfo {
225
225
  /** Client UUID */
226
226
  client: string;
227
227
  /** Connection metadata */
228
- conn_info?: string;
228
+ conn_info?: string | null;
229
229
  /** Channel-specific metadata */
230
- chan_info?: string;
230
+ chan_info?: string | null;
231
231
  }
232
232
 
233
233
  /**
@@ -11,27 +11,6 @@ export class CfgCentrifugoMonitoring {
11
11
  this.client = client;
12
12
  }
13
13
 
14
- async centrifugoAdminApiMonitorChannelsRetrieve(hours?: number): Promise<Models.ChannelList[]>;
15
- async centrifugoAdminApiMonitorChannelsRetrieve(params?: { hours?: number }): Promise<Models.ChannelList[]>;
16
-
17
- /**
18
- * Get channel statistics
19
- *
20
- * Returns statistics grouped by channel.
21
- */
22
- async centrifugoAdminApiMonitorChannelsRetrieve(...args: any[]): Promise<Models.ChannelList[]> {
23
- const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
24
-
25
- let params;
26
- if (isParamsObject) {
27
- params = args[0];
28
- } else {
29
- params = { hours: args[0] };
30
- }
31
- const response = await this.client.request('GET', "/cfg/centrifugo/admin/api/monitor/channels/", { params });
32
- return (response as any).results || [];
33
- }
34
-
35
14
  /**
36
15
  * Get Centrifugo health status
37
16
  *
@@ -63,8 +42,8 @@ export class CfgCentrifugoMonitoring {
63
42
  return response;
64
43
  }
65
44
 
66
- async centrifugoAdminApiMonitorPublishesRetrieve(channel?: string, count?: number): Promise<Models.RecentPublishes>;
67
- async centrifugoAdminApiMonitorPublishesRetrieve(params?: { channel?: string; count?: number }): Promise<Models.RecentPublishes>;
45
+ async centrifugoAdminApiMonitorPublishesRetrieve(channel?: string, count?: number, offset?: number, status?: string): Promise<Models.RecentPublishes>;
46
+ async centrifugoAdminApiMonitorPublishesRetrieve(params?: { channel?: string; count?: number; offset?: number; status?: string }): Promise<Models.RecentPublishes>;
68
47
 
69
48
  /**
70
49
  * Get recent publishes
@@ -78,30 +57,30 @@ export class CfgCentrifugoMonitoring {
78
57
  if (isParamsObject) {
79
58
  params = args[0];
80
59
  } else {
81
- params = { channel: args[0], count: args[1] };
60
+ params = { channel: args[0], count: args[1], offset: args[2], status: args[3] };
82
61
  }
83
62
  const response = await this.client.request('GET', "/cfg/centrifugo/admin/api/monitor/publishes/", { params });
84
63
  return response;
85
64
  }
86
65
 
87
- async centrifugoMonitorChannelsRetrieve(hours?: number): Promise<Models.ChannelList[]>;
88
- async centrifugoMonitorChannelsRetrieve(params?: { hours?: number }): Promise<Models.ChannelList[]>;
66
+ async centrifugoAdminApiMonitorTimelineRetrieve(hours?: number, interval?: string): Promise<Models.ChannelList[]>;
67
+ async centrifugoAdminApiMonitorTimelineRetrieve(params?: { hours?: number; interval?: string }): Promise<Models.ChannelList[]>;
89
68
 
90
69
  /**
91
70
  * Get channel statistics
92
71
  *
93
72
  * Returns statistics grouped by channel.
94
73
  */
95
- async centrifugoMonitorChannelsRetrieve(...args: any[]): Promise<Models.ChannelList[]> {
74
+ async centrifugoAdminApiMonitorTimelineRetrieve(...args: any[]): Promise<Models.ChannelList[]> {
96
75
  const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
97
76
 
98
77
  let params;
99
78
  if (isParamsObject) {
100
79
  params = args[0];
101
80
  } else {
102
- params = { hours: args[0] };
81
+ params = { hours: args[0], interval: args[1] };
103
82
  }
104
- const response = await this.client.request('GET', "/cfg/centrifugo/monitor/channels/", { params });
83
+ const response = await this.client.request('GET', "/cfg/centrifugo/admin/api/monitor/timeline/", { params });
105
84
  return (response as any).results || [];
106
85
  }
107
86
 
@@ -136,8 +115,8 @@ export class CfgCentrifugoMonitoring {
136
115
  return response;
137
116
  }
138
117
 
139
- async centrifugoMonitorPublishesRetrieve(channel?: string, count?: number): Promise<Models.RecentPublishes>;
140
- async centrifugoMonitorPublishesRetrieve(params?: { channel?: string; count?: number }): Promise<Models.RecentPublishes>;
118
+ async centrifugoMonitorPublishesRetrieve(channel?: string, count?: number, offset?: number, status?: string): Promise<Models.RecentPublishes>;
119
+ async centrifugoMonitorPublishesRetrieve(params?: { channel?: string; count?: number; offset?: number; status?: string }): Promise<Models.RecentPublishes>;
141
120
 
142
121
  /**
143
122
  * Get recent publishes
@@ -151,10 +130,31 @@ export class CfgCentrifugoMonitoring {
151
130
  if (isParamsObject) {
152
131
  params = args[0];
153
132
  } else {
154
- params = { channel: args[0], count: args[1] };
133
+ params = { channel: args[0], count: args[1], offset: args[2], status: args[3] };
155
134
  }
156
135
  const response = await this.client.request('GET', "/cfg/centrifugo/monitor/publishes/", { params });
157
136
  return response;
158
137
  }
159
138
 
139
+ async centrifugoMonitorTimelineRetrieve(hours?: number, interval?: string): Promise<Models.ChannelList[]>;
140
+ async centrifugoMonitorTimelineRetrieve(params?: { hours?: number; interval?: string }): Promise<Models.ChannelList[]>;
141
+
142
+ /**
143
+ * Get channel statistics
144
+ *
145
+ * Returns statistics grouped by channel.
146
+ */
147
+ async centrifugoMonitorTimelineRetrieve(...args: any[]): Promise<Models.ChannelList[]> {
148
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
149
+
150
+ let params;
151
+ if (isParamsObject) {
152
+ params = args[0];
153
+ } else {
154
+ params = { hours: args[0], interval: args[1] };
155
+ }
156
+ const response = await this.client.request('GET', "/cfg/centrifugo/monitor/timeline/", { params });
157
+ return (response as any).results || [];
158
+ }
159
+
160
160
  }
@@ -1,15 +1,3 @@
1
- /**
2
- * List of channel statistics.
3
- *
4
- * Response model (includes read-only fields).
5
- */
6
- export interface ChannelList {
7
- /** Channel statistics */
8
- channels: Array<ChannelStatsSerializer>;
9
- /** Total number of channels */
10
- total_channels: number;
11
- }
12
-
13
1
  /**
14
2
  * Health check response.
15
3
  *
@@ -62,6 +50,22 @@ export interface RecentPublishes {
62
50
  count: number;
63
51
  /** Total publishes available */
64
52
  total_available: number;
53
+ /** Current offset for pagination */
54
+ offset?: number;
55
+ /** Whether more results are available */
56
+ has_more?: boolean;
57
+ }
58
+
59
+ /**
60
+ * List of channel statistics.
61
+ *
62
+ * Response model (includes read-only fields).
63
+ */
64
+ export interface ChannelList {
65
+ /** Channel statistics */
66
+ channels: Array<ChannelStatsSerializer>;
67
+ /** Total number of channels */
68
+ total_channels: number;
65
69
  }
66
70
 
67
71
  /**
@@ -82,5 +86,7 @@ export interface ChannelStatsSerializer {
82
86
  avg_duration_ms: number;
83
87
  /** Average ACKs received */
84
88
  avg_acks: number;
89
+ /** Last activity timestamp (ISO format) */
90
+ last_activity_at?: string | null;
85
91
  }
86
92
 
@@ -57,7 +57,7 @@ export interface PublishTestResponse {
57
57
  /** Whether message was delivered */
58
58
  delivered?: boolean;
59
59
  /** Error message if failed */
60
- error?: string;
60
+ error?: string | null;
61
61
  }
62
62
 
63
63
  /**
@@ -83,6 +83,6 @@ export interface ManualAckResponse {
83
83
  /** Message ID that was acknowledged */
84
84
  message_id: string;
85
85
  /** Error message if failed */
86
- error?: string;
86
+ error?: string | null;
87
87
  }
88
88
 
@@ -0,0 +1,45 @@
1
+ import * as Models from "./models";
2
+
3
+
4
+ /**
5
+ * API endpoints for Dashboard - Activity.
6
+ */
7
+ export class CfgDashboardActivity {
8
+ private client: any;
9
+
10
+ constructor(client: any) {
11
+ this.client = client;
12
+ }
13
+
14
+ /**
15
+ * Get quick actions
16
+ *
17
+ * Retrieve quick action buttons for dashboard
18
+ */
19
+ async dashboardApiActivityActionsList(): Promise<any> {
20
+ const response = await this.client.request('GET', "/cfg/dashboard/api/activity/actions/");
21
+ return response;
22
+ }
23
+
24
+ async dashboardApiActivityRecentList(limit?: number): Promise<any>;
25
+ async dashboardApiActivityRecentList(params?: { limit?: number }): Promise<any>;
26
+
27
+ /**
28
+ * Get recent activity
29
+ *
30
+ * Retrieve recent system activity entries
31
+ */
32
+ async dashboardApiActivityRecentList(...args: any[]): Promise<any> {
33
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
34
+
35
+ let params;
36
+ if (isParamsObject) {
37
+ params = args[0];
38
+ } else {
39
+ params = { limit: args[0] };
40
+ }
41
+ const response = await this.client.request('GET', "/cfg/dashboard/api/activity/recent/", { params });
42
+ return response;
43
+ }
44
+
45
+ }