@djangocfg/api 1.2.5 → 1.2.6

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 (74) hide show
  1. package/dist/index.cjs +3407 -1386
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +2418 -409
  4. package/dist/index.d.ts +2418 -409
  5. package/dist/index.mjs +3309 -1304
  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 -2
  11. package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +1 -1
  12. package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +6 -6
  13. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +62 -0
  14. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +12 -12
  15. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +25 -25
  16. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +8 -8
  17. package/src/cfg/generated/_utils/fetchers/cfg__dashboard.ts +150 -0
  18. package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +30 -1
  19. package/src/cfg/generated/_utils/fetchers/cfg__health.ts +2 -2
  20. package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +57 -57
  21. package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +6 -6
  22. package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +1 -1
  23. package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +3 -3
  24. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +1 -1
  25. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +6 -6
  26. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +1 -1
  27. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +2 -2
  28. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +3 -3
  29. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +1 -1
  30. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +8 -8
  31. package/src/cfg/generated/_utils/fetchers/cfg__support.ts +12 -12
  32. package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +10 -10
  33. package/src/cfg/generated/_utils/fetchers/index.ts +2 -0
  34. package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +49 -0
  35. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +20 -20
  36. package/src/cfg/generated/_utils/hooks/cfg__dashboard.ts +137 -0
  37. package/src/cfg/generated/_utils/hooks/cfg__endpoints.ts +29 -0
  38. package/src/cfg/generated/_utils/hooks/index.ts +2 -0
  39. package/src/cfg/generated/_utils/schemas/ActivityEntry.schema.ts +25 -0
  40. package/src/cfg/generated/_utils/schemas/AppStatistics.schema.ts +20 -0
  41. package/src/cfg/generated/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +1 -1
  42. package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +2 -2
  43. package/src/cfg/generated/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +2 -2
  44. package/src/cfg/generated/_utils/schemas/CentrifugoPublication.schema.ts +1 -1
  45. package/src/cfg/generated/_utils/schemas/ChannelStatsSerializer.schema.ts +1 -0
  46. package/src/cfg/generated/_utils/schemas/DashboardOverview.schema.ts +27 -0
  47. package/src/cfg/generated/_utils/schemas/ManualAckResponse.schema.ts +1 -1
  48. package/src/cfg/generated/_utils/schemas/PublishTestResponse.schema.ts +1 -1
  49. package/src/cfg/generated/_utils/schemas/QuickAction.schema.ts +29 -0
  50. package/src/cfg/generated/_utils/schemas/RecentPublishes.schema.ts +2 -0
  51. package/src/cfg/generated/_utils/schemas/StatCard.schema.ts +30 -0
  52. package/src/cfg/generated/_utils/schemas/SystemHealth.schema.ts +24 -0
  53. package/src/cfg/generated/_utils/schemas/SystemHealthItem.schema.ts +28 -0
  54. package/src/cfg/generated/_utils/schemas/SystemMetrics.schema.ts +25 -0
  55. package/src/cfg/generated/_utils/schemas/URLPattern.schema.ts +26 -0
  56. package/src/cfg/generated/_utils/schemas/URLsList.schema.ts +25 -0
  57. package/src/cfg/generated/_utils/schemas/UserStatistics.schema.ts +22 -0
  58. package/src/cfg/generated/_utils/schemas/index.ts +11 -0
  59. package/src/cfg/generated/cfg__centrifugo/client.ts +30 -0
  60. package/src/cfg/generated/cfg__centrifugo/index.ts +2 -0
  61. package/src/cfg/generated/cfg__centrifugo/models.ts +0 -0
  62. package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +6 -6
  63. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +32 -32
  64. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +18 -12
  65. package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/models.ts +2 -2
  66. package/src/cfg/generated/cfg__dashboard/client.ts +106 -0
  67. package/src/cfg/generated/cfg__dashboard/index.ts +2 -0
  68. package/src/cfg/generated/cfg__dashboard/models.ts +108 -0
  69. package/src/cfg/generated/cfg__endpoints/client.ts +16 -0
  70. package/src/cfg/generated/cfg__endpoints/models.ts +44 -0
  71. package/src/cfg/generated/client.ts +6 -0
  72. package/src/cfg/generated/enums.ts +56 -0
  73. package/src/cfg/generated/index.ts +17 -10
  74. package/src/cfg/generated/schema.ts +1546 -127
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Zod schema for ActivityEntry
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for recent activity entries.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Serializer for recent activity entries.
11
+ */
12
+ export const ActivityEntrySchema = z.object({
13
+ id: z.int(),
14
+ user: z.string(),
15
+ action: z.string(),
16
+ resource: z.string(),
17
+ timestamp: z.string(),
18
+ icon: z.string(),
19
+ color: z.string(),
20
+ })
21
+
22
+ /**
23
+ * Infer TypeScript type from Zod schema
24
+ */
25
+ export type ActivityEntry = z.infer<typeof ActivityEntrySchema>
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Zod schema for AppStatistics
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Serializer for application-specific statistics.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Serializer for application-specific statistics.
11
+ */
12
+ export const AppStatisticsSchema = z.object({
13
+ app_name: z.string(),
14
+ statistics: z.record(z.string(), z.any()),
15
+ })
16
+
17
+ /**
18
+ * Infer TypeScript type from Zod schema
19
+ */
20
+ export type AppStatistics = z.infer<typeof AppStatisticsSchema>
@@ -10,7 +10,7 @@ import { z } from 'zod'
10
10
  * Request to list active channels.
11
11
  */
12
12
  export const CentrifugoChannelsRequestRequestSchema = z.object({
13
- pattern: z.string().optional(),
13
+ pattern: z.string().nullable().optional(),
14
14
  })
15
15
 
16
16
  /**
@@ -12,8 +12,8 @@ import { z } from 'zod'
12
12
  export const CentrifugoClientInfoSchema = z.object({
13
13
  user: z.string(),
14
14
  client: z.string(),
15
- conn_info: z.string().optional(),
16
- chan_info: z.string().optional(),
15
+ conn_info: z.string().nullable().optional(),
16
+ chan_info: z.string().nullable().optional(),
17
17
  })
18
18
 
19
19
  /**
@@ -12,9 +12,9 @@ import { CentrifugoStreamPositionSchema } from './CentrifugoStreamPosition.schem
12
12
  */
13
13
  export const CentrifugoHistoryRequestRequestSchema = z.object({
14
14
  channel: z.string(),
15
- limit: z.string().optional(),
15
+ limit: z.string().nullable().optional(),
16
16
  since: CentrifugoStreamPositionSchema.optional(),
17
- reverse: z.string().optional(),
17
+ reverse: z.string().nullable().optional(),
18
18
  })
19
19
 
20
20
  /**
@@ -14,7 +14,7 @@ export const CentrifugoPublicationSchema = z.object({
14
14
  data: z.record(z.string(), z.any()),
15
15
  info: CentrifugoClientInfoSchema.optional(),
16
16
  offset: z.int(),
17
- tags: z.string().optional(),
17
+ tags: z.string().nullable().optional(),
18
18
  })
19
19
 
20
20
  /**
@@ -16,6 +16,7 @@ export const ChannelStatsSerializerSchema = z.object({
16
16
  failed: z.int(),
17
17
  avg_duration_ms: z.number(),
18
18
  avg_acks: z.number(),
19
+ last_activity_at: z.string().nullable().optional(),
19
20
  })
20
21
 
21
22
  /**
@@ -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,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,8 @@
18
18
 
19
19
  export * from './APIResponse.schema'
20
20
  export * from './APIResponseRequest.schema'
21
+ export * from './ActivityEntry.schema'
22
+ export * from './AppStatistics.schema'
21
23
  export * from './ArchiveItem.schema'
22
24
  export * from './ArchiveItemChunk.schema'
23
25
  export * from './ArchiveItemChunkDetail.schema'
@@ -69,6 +71,7 @@ export * from './ChunkRevectorizationRequestRequest.schema'
69
71
  export * from './ConnectionTokenRequestRequest.schema'
70
72
  export * from './ConnectionTokenResponse.schema'
71
73
  export * from './Currency.schema'
74
+ export * from './DashboardOverview.schema'
72
75
  export * from './Document.schema'
73
76
  export * from './DocumentArchive.schema'
74
77
  export * from './DocumentArchiveDetail.schema'
@@ -144,14 +147,19 @@ export * from './PublishTestResponse.schema'
144
147
  export * from './QueueAction.schema'
145
148
  export * from './QueueActionRequest.schema'
146
149
  export * from './QueueStatus.schema'
150
+ export * from './QuickAction.schema'
147
151
  export * from './QuickHealth.schema'
148
152
  export * from './RecentPublishes.schema'
149
153
  export * from './SendCampaignRequest.schema'
150
154
  export * from './SendCampaignResponse.schema'
151
155
  export * from './Sender.schema'
156
+ export * from './StatCard.schema'
152
157
  export * from './SubscribeRequest.schema'
153
158
  export * from './SubscribeResponse.schema'
154
159
  export * from './SuccessResponse.schema'
160
+ export * from './SystemHealth.schema'
161
+ export * from './SystemHealthItem.schema'
162
+ export * from './SystemMetrics.schema'
155
163
  export * from './TaskStatistics.schema'
156
164
  export * from './TestEmailRequest.schema'
157
165
  export * from './Ticket.schema'
@@ -159,10 +167,13 @@ export * from './TicketRequest.schema'
159
167
  export * from './TokenRefresh.schema'
160
168
  export * from './TokenRefreshRequest.schema'
161
169
  export * from './Transaction.schema'
170
+ export * from './URLPattern.schema'
171
+ export * from './URLsList.schema'
162
172
  export * from './Unsubscribe.schema'
163
173
  export * from './UnsubscribeRequest.schema'
164
174
  export * from './User.schema'
165
175
  export * from './UserProfileUpdateRequest.schema'
176
+ export * from './UserStatistics.schema'
166
177
  export * from './VectorizationResult.schema'
167
178
  export * from './VectorizationStatistics.schema'
168
179
  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