@djangocfg/api 1.2.17 → 1.2.19

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 (40) hide show
  1. package/dist/index.cjs +2841 -1242
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +2704 -432
  4. package/dist/index.d.ts +2704 -432
  5. package/dist/index.mjs +2717 -1130
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/generated/_utils/fetchers/cfg__dashboard.ts +89 -0
  9. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +122 -0
  10. package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +9 -7
  11. package/src/cfg/generated/_utils/fetchers/index.ts +2 -0
  12. package/src/cfg/generated/_utils/hooks/cfg__dashboard.ts +77 -0
  13. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_monitoring.ts +110 -0
  14. package/src/cfg/generated/_utils/hooks/cfg__tasks.ts +9 -7
  15. package/src/cfg/generated/_utils/hooks/index.ts +2 -0
  16. package/src/cfg/generated/_utils/schemas/DashboardOverview.schema.ts +16 -8
  17. package/src/cfg/generated/_utils/schemas/MethodList.schema.ts +21 -0
  18. package/src/cfg/generated/_utils/schemas/MethodStatsSerializer.schema.ts +25 -0
  19. package/src/cfg/generated/_utils/schemas/RecentRequests.schema.ts +23 -0
  20. package/src/cfg/generated/_utils/schemas/ServiceList.schema.ts +21 -0
  21. package/src/cfg/generated/_utils/schemas/ServiceStatsSerializer.schema.ts +24 -0
  22. package/src/cfg/generated/_utils/schemas/TaskLogOverview.schema.ts +43 -0
  23. package/src/cfg/generated/_utils/schemas/TaskLogTimeline.schema.ts +28 -0
  24. package/src/cfg/generated/_utils/schemas/TaskLogTimelineItem.schema.ts +28 -0
  25. package/src/cfg/generated/_utils/schemas/TasksByQueue.schema.ts +24 -0
  26. package/src/cfg/generated/_utils/schemas/TasksByStatus.schema.ts +24 -0
  27. package/src/cfg/generated/_utils/schemas/index.ts +10 -0
  28. package/src/cfg/generated/cfg__dashboard/client.ts +48 -0
  29. package/src/cfg/generated/cfg__dashboard/index.ts +2 -0
  30. package/src/cfg/generated/cfg__dashboard/models.ts +0 -0
  31. package/src/cfg/generated/cfg__dashboard__dashboard_overview/models.ts +179 -9
  32. package/src/cfg/generated/cfg__grpc__grpc_monitoring/client.ts +129 -0
  33. package/src/cfg/generated/cfg__grpc__grpc_monitoring/index.ts +2 -0
  34. package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +124 -0
  35. package/src/cfg/generated/cfg__support/client.ts +30 -12
  36. package/src/cfg/generated/cfg__tasks/client.ts +38 -31
  37. package/src/cfg/generated/cfg__tasks/models.ts +82 -0
  38. package/src/cfg/generated/client.ts +6 -0
  39. package/src/cfg/generated/index.ts +10 -0
  40. package/src/cfg/generated/schema.ts +1292 -121
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for ServiceStatsSerializer
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Statistics for a single gRPC service.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Statistics for a single gRPC service.
11
+ */
12
+ export const ServiceStatsSerializerSchema = z.object({
13
+ service_name: z.string(),
14
+ total: z.int(),
15
+ successful: z.int(),
16
+ errors: z.int(),
17
+ avg_duration_ms: z.number(),
18
+ last_activity_at: z.string().nullable(),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type ServiceStatsSerializer = z.infer<typeof ServiceStatsSerializerSchema>
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Zod schema for TaskLogOverview
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Overview of task system with proper structure.
6
+
7
+ Provides high-level statistics about the entire task system:
8
+ - Total tasks count (all-time)
9
+ - Active queues list
10
+ - Recent failures (last 24h)
11
+ - Tasks distribution by queue (as array)
12
+ - Tasks distribution by status (as array)
13
+
14
+ Used by /cfg/tasks/logs/overview/ endpoint.
15
+ * */
16
+ import { z } from 'zod'
17
+ import { TasksByQueueSchema } from './TasksByQueue.schema'
18
+ import { TasksByStatusSchema } from './TasksByStatus.schema'
19
+
20
+ /**
21
+ * Overview of task system with proper structure.
22
+
23
+ Provides high-level statistics about the entire task system:
24
+ - Total tasks count (all-time)
25
+ - Active queues list
26
+ - Recent failures (last 24h)
27
+ - Tasks distribution by queue (as array)
28
+ - Tasks distribution by status (as array)
29
+
30
+ Used by /cfg/tasks/logs/overview/ endpoint.
31
+ */
32
+ export const TaskLogOverviewSchema = z.object({
33
+ total_tasks: z.int(),
34
+ active_queues: z.array(z.string()),
35
+ recent_failures: z.int(),
36
+ tasks_by_queue: z.array(TasksByQueueSchema),
37
+ tasks_by_status: z.array(TasksByStatusSchema),
38
+ })
39
+
40
+ /**
41
+ * Infer TypeScript type from Zod schema
42
+ */
43
+ export type TaskLogOverview = z.infer<typeof TaskLogOverviewSchema>
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Zod schema for TaskLogTimeline
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Timeline response wrapper.
6
+
7
+ Returns timeline data as array of time-bucketed statistics.
8
+ Used by /cfg/tasks/logs/timeline/ endpoint.
9
+ * */
10
+ import { z } from 'zod'
11
+ import { TaskLogTimelineItemSchema } from './TaskLogTimelineItem.schema'
12
+
13
+ /**
14
+ * Timeline response wrapper.
15
+
16
+ Returns timeline data as array of time-bucketed statistics.
17
+ Used by /cfg/tasks/logs/timeline/ endpoint.
18
+ */
19
+ export const TaskLogTimelineSchema = z.object({
20
+ period_hours: z.int(),
21
+ interval: z.string(),
22
+ data: z.array(TaskLogTimelineItemSchema),
23
+ })
24
+
25
+ /**
26
+ * Infer TypeScript type from Zod schema
27
+ */
28
+ export type TaskLogTimeline = z.infer<typeof TaskLogTimelineSchema>
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Zod schema for TaskLogTimelineItem
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Single timeline data point.
6
+
7
+ Represents aggregated task statistics for a specific time period.
8
+ * */
9
+ import { z } from 'zod'
10
+
11
+ /**
12
+ * Single timeline data point.
13
+
14
+ Represents aggregated task statistics for a specific time period.
15
+ */
16
+ export const TaskLogTimelineItemSchema = z.object({
17
+ timestamp: z.iso.datetime(),
18
+ total: z.int(),
19
+ successful: z.int(),
20
+ failed: z.int(),
21
+ in_progress: z.int().optional(),
22
+ avg_duration_ms: z.number().optional(),
23
+ })
24
+
25
+ /**
26
+ * Infer TypeScript type from Zod schema
27
+ */
28
+ export type TaskLogTimelineItem = z.infer<typeof TaskLogTimelineItemSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for TasksByQueue
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Tasks count by queue.
6
+
7
+ Used in overview endpoint for tasks_by_queue list.
8
+ * */
9
+ import { z } from 'zod'
10
+
11
+ /**
12
+ * Tasks count by queue.
13
+
14
+ Used in overview endpoint for tasks_by_queue list.
15
+ */
16
+ export const TasksByQueueSchema = z.object({
17
+ queue_name: z.string(),
18
+ count: z.int(),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type TasksByQueue = z.infer<typeof TasksByQueueSchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for TasksByStatus
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Tasks count by status.
6
+
7
+ Used in overview endpoint for tasks_by_status list.
8
+ * */
9
+ import { z } from 'zod'
10
+
11
+ /**
12
+ * Tasks count by status.
13
+
14
+ Used in overview endpoint for tasks_by_status list.
15
+ */
16
+ export const TasksByStatusSchema = z.object({
17
+ status: z.string(),
18
+ count: z.int(),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type TasksByStatus = z.infer<typeof TasksByStatusSchema>
@@ -105,6 +105,8 @@ export * from './Message.schema'
105
105
  export * from './MessageCreate.schema'
106
106
  export * from './MessageCreateRequest.schema'
107
107
  export * from './MessageRequest.schema'
108
+ export * from './MethodList.schema'
109
+ export * from './MethodStatsSerializer.schema'
108
110
  export * from './Newsletter.schema'
109
111
  export * from './NewsletterCampaign.schema'
110
112
  export * from './NewsletterCampaignRequest.schema'
@@ -155,10 +157,13 @@ export * from './PublishTestResponse.schema'
155
157
  export * from './QuickAction.schema'
156
158
  export * from './QuickHealth.schema'
157
159
  export * from './RecentPublishes.schema'
160
+ export * from './RecentRequests.schema'
158
161
  export * from './RecentUser.schema'
159
162
  export * from './SendCampaignRequest.schema'
160
163
  export * from './SendCampaignResponse.schema'
161
164
  export * from './Sender.schema'
165
+ export * from './ServiceList.schema'
166
+ export * from './ServiceStatsSerializer.schema'
162
167
  export * from './StatCard.schema'
163
168
  export * from './SubscribeRequest.schema'
164
169
  export * from './SubscribeResponse.schema'
@@ -169,7 +174,12 @@ export * from './SystemMetrics.schema'
169
174
  export * from './TaskLog.schema'
170
175
  export * from './TaskLogDetail.schema'
171
176
  export * from './TaskLogList.schema'
177
+ export * from './TaskLogOverview.schema'
172
178
  export * from './TaskLogStats.schema'
179
+ export * from './TaskLogTimeline.schema'
180
+ export * from './TaskLogTimelineItem.schema'
181
+ export * from './TasksByQueue.schema'
182
+ export * from './TasksByStatus.schema'
173
183
  export * from './TestEmailRequest.schema'
174
184
  export * from './Ticket.schema'
175
185
  export * from './TicketRequest.schema'
@@ -0,0 +1,48 @@
1
+ import * as Models from "./models";
2
+
3
+
4
+ /**
5
+ * API endpoints for Dashboard.
6
+ */
7
+ export class CfgDashboard {
8
+ private client: any;
9
+
10
+ constructor(client: any) {
11
+ this.client = client;
12
+ }
13
+
14
+ /**
15
+ * Get complete Django-Q2 summary. GET /api/django_q2/ Returns status,
16
+ * schedules, and recent tasks.
17
+ */
18
+ async apiDjangoQ2Retrieve(): Promise<any> {
19
+ const response = await this.client.request('GET', "/cfg/dashboard/api/django_q2/");
20
+ return response;
21
+ }
22
+
23
+ /**
24
+ * Get all scheduled tasks. GET /api/django_q2/schedules/
25
+ */
26
+ async apiDjangoQ2SchedulesRetrieve(): Promise<any> {
27
+ const response = await this.client.request('GET', "/cfg/dashboard/api/django_q2/schedules/");
28
+ return response;
29
+ }
30
+
31
+ /**
32
+ * Get Django-Q2 cluster status. GET /api/django_q2/status/
33
+ */
34
+ async apiDjangoQ2StatusRetrieve(): Promise<any> {
35
+ const response = await this.client.request('GET', "/cfg/dashboard/api/django_q2/status/");
36
+ return response;
37
+ }
38
+
39
+ /**
40
+ * Get recent task executions. GET /api/django_q2/tasks/ Query params: -
41
+ * limit: Number of tasks to return (default: 20)
42
+ */
43
+ async apiDjangoQ2TasksRetrieve(): Promise<any> {
44
+ const response = await this.client.request('GET', "/cfg/dashboard/api/django_q2/tasks/");
45
+ return response;
46
+ }
47
+
48
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * as Models from "./models";
File without changes
@@ -1,23 +1,193 @@
1
+ import * as Enums from "../enums";
2
+
1
3
  /**
2
- * Main serializer for dashboard overview endpoint. Uses DictField to avoid
3
- * allOf generation in OpenAPI.
4
+ * Main serializer for dashboard overview endpoint. Uses typed serializers for
5
+ * proper OpenAPI schema generation.
4
6
  *
5
7
  * Response model (includes read-only fields).
6
8
  */
7
9
  export interface DashboardOverview {
8
10
  /** Dashboard statistics cards */
9
- stat_cards: Array<Record<string, any>>;
10
- /** System health status */
11
- system_health: Array<Record<string, any>>;
11
+ stat_cards: Array<StatCard>;
12
+ system_health: Record<string, any>;
12
13
  /** Quick action buttons */
13
- quick_actions: Array<Record<string, any>>;
14
+ quick_actions: Array<QuickAction>;
14
15
  /** Recent activity entries */
15
- recent_activity: Array<Record<string, any>>;
16
- /** System performance metrics */
16
+ recent_activity: Array<ActivityEntry>;
17
17
  system_metrics: Record<string, any>;
18
- /** User statistics */
19
18
  user_statistics: Record<string, any>;
19
+ /** Application statistics */
20
+ app_statistics?: Array<AppStatistics>;
20
21
  /** Data timestamp (ISO format) */
21
22
  timestamp: string;
22
23
  }
23
24
 
25
+ /**
26
+ * Serializer for dashboard statistics cards. Maps to StatCard Pydantic model.
27
+ *
28
+ * Response model (includes read-only fields).
29
+ */
30
+ export interface StatCard {
31
+ /** Card title */
32
+ title: string;
33
+ /** Main value to display */
34
+ value: string;
35
+ /** Material icon name */
36
+ icon: string;
37
+ /** Change indicator (e.g., '+12%') */
38
+ change?: string | null;
39
+ /** Change type
40
+
41
+ * `positive` - positive
42
+ * `negative` - negative
43
+ * `neutral` - neutral */
44
+ change_type?: Enums.StatCardChangeType;
45
+ /** Additional description */
46
+ description?: string | null;
47
+ /** Card color theme */
48
+ color?: string;
49
+ }
50
+
51
+ /**
52
+ * Serializer for overall system health status.
53
+ *
54
+ * Response model (includes read-only fields).
55
+ */
56
+ export interface SystemHealth {
57
+ /** Overall system health status
58
+
59
+ * `healthy` - healthy
60
+ * `warning` - warning
61
+ * `error` - error
62
+ * `unknown` - unknown */
63
+ overall_status: Enums.SystemHealthOverallStatus;
64
+ /** Overall health percentage */
65
+ overall_health_percentage: number;
66
+ /** Health status of individual components */
67
+ components: Array<SystemHealthItem>;
68
+ /** Check timestamp (ISO format) */
69
+ timestamp: string;
70
+ }
71
+
72
+ /**
73
+ * Serializer for quick action buttons. Maps to QuickAction Pydantic model.
74
+ *
75
+ * Response model (includes read-only fields).
76
+ */
77
+ export interface QuickAction {
78
+ /** Action title */
79
+ title: string;
80
+ /** Action description */
81
+ description: string;
82
+ /** Material icon name */
83
+ icon: string;
84
+ /** Action URL */
85
+ link: string;
86
+ /** Button color theme
87
+
88
+ * `primary` - primary
89
+ * `success` - success
90
+ * `warning` - warning
91
+ * `danger` - danger
92
+ * `secondary` - secondary */
93
+ color?: Enums.QuickActionColor;
94
+ /** Action category */
95
+ category?: string;
96
+ }
97
+
98
+ /**
99
+ * Serializer for recent activity entries.
100
+ *
101
+ * Response model (includes read-only fields).
102
+ */
103
+ export interface ActivityEntry {
104
+ /** Activity ID */
105
+ id: number;
106
+ /** User who performed the action */
107
+ user: string;
108
+ /** Action type (created, updated, deleted, etc.) */
109
+ action: string;
110
+ /** Resource affected */
111
+ resource: string;
112
+ /** Activity timestamp (ISO format) */
113
+ timestamp: string;
114
+ /** Material icon name */
115
+ icon: string;
116
+ /** Icon color */
117
+ color: string;
118
+ }
119
+
120
+ /**
121
+ * Serializer for system performance metrics.
122
+ *
123
+ * Response model (includes read-only fields).
124
+ */
125
+ export interface SystemMetrics {
126
+ /** CPU usage percentage */
127
+ cpu_usage: number;
128
+ /** Memory usage percentage */
129
+ memory_usage: number;
130
+ /** Disk usage percentage */
131
+ disk_usage: number;
132
+ /** Network incoming bandwidth */
133
+ network_in: string;
134
+ /** Network outgoing bandwidth */
135
+ network_out: string;
136
+ /** Average response time */
137
+ response_time: string;
138
+ /** System uptime */
139
+ uptime: string;
140
+ }
141
+
142
+ /**
143
+ * Serializer for user statistics.
144
+ *
145
+ * Response model (includes read-only fields).
146
+ */
147
+ export interface UserStatistics {
148
+ /** Total number of users */
149
+ total_users: number;
150
+ /** Active users (last 30 days) */
151
+ active_users: number;
152
+ /** New users (last 7 days) */
153
+ new_users: number;
154
+ /** Number of superusers */
155
+ superusers: number;
156
+ }
157
+
158
+ /**
159
+ * Serializer for application-specific statistics.
160
+ *
161
+ * Response model (includes read-only fields).
162
+ */
163
+ export interface AppStatistics {
164
+ /** Application name */
165
+ app_name: string;
166
+ /** Application statistics */
167
+ statistics: Record<string, any>;
168
+ }
169
+
170
+ /**
171
+ * Serializer for system health status items. Maps to SystemHealthItem Pydantic
172
+ * model.
173
+ *
174
+ * Response model (includes read-only fields).
175
+ */
176
+ export interface SystemHealthItem {
177
+ /** Component name */
178
+ component: string;
179
+ /** Health status
180
+
181
+ * `healthy` - healthy
182
+ * `warning` - warning
183
+ * `error` - error
184
+ * `unknown` - unknown */
185
+ status: Enums.SystemHealthItemStatus;
186
+ /** Status description */
187
+ description: string;
188
+ /** Last check time (ISO format) */
189
+ last_check: string;
190
+ /** Health percentage (0-100) */
191
+ health_percentage?: number | null;
192
+ }
193
+
@@ -0,0 +1,129 @@
1
+ import * as Models from "./models";
2
+
3
+
4
+ /**
5
+ * API endpoints for Grpc Monitoring.
6
+ */
7
+ export class CfgGrpcMonitoring {
8
+ private client: any;
9
+
10
+ constructor(client: any) {
11
+ this.client = client;
12
+ }
13
+
14
+ /**
15
+ * Get gRPC health status
16
+ *
17
+ * Returns the current health status of the gRPC server.
18
+ */
19
+ async grpcMonitorHealthRetrieve(): Promise<Models.HealthCheck> {
20
+ const response = await this.client.request('GET', "/cfg/grpc/monitor/health/");
21
+ return response;
22
+ }
23
+
24
+ async grpcMonitorMethodsRetrieve(hours?: number, service?: string): Promise<Models.MethodList[]>;
25
+ async grpcMonitorMethodsRetrieve(params?: { hours?: number; service?: string }): Promise<Models.MethodList[]>;
26
+
27
+ /**
28
+ * Get method statistics
29
+ *
30
+ * Returns statistics grouped by method.
31
+ */
32
+ async grpcMonitorMethodsRetrieve(...args: any[]): Promise<Models.MethodList[]> {
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 = { hours: args[0], service: args[1] };
40
+ }
41
+ const response = await this.client.request('GET', "/cfg/grpc/monitor/methods/", { params });
42
+ return (response as any).results || [];
43
+ }
44
+
45
+ async grpcMonitorOverviewRetrieve(hours?: number): Promise<Models.OverviewStats>;
46
+ async grpcMonitorOverviewRetrieve(params?: { hours?: number }): Promise<Models.OverviewStats>;
47
+
48
+ /**
49
+ * Get overview statistics
50
+ *
51
+ * Returns overview statistics for gRPC requests.
52
+ */
53
+ async grpcMonitorOverviewRetrieve(...args: any[]): Promise<Models.OverviewStats> {
54
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
55
+
56
+ let params;
57
+ if (isParamsObject) {
58
+ params = args[0];
59
+ } else {
60
+ params = { hours: args[0] };
61
+ }
62
+ const response = await this.client.request('GET', "/cfg/grpc/monitor/overview/", { params });
63
+ return response;
64
+ }
65
+
66
+ async grpcMonitorRequestsRetrieve(count?: number, method?: string, offset?: number, service?: string, status?: string): Promise<Models.RecentRequests>;
67
+ async grpcMonitorRequestsRetrieve(params?: { count?: number; method?: string; offset?: number; service?: string; status?: string }): Promise<Models.RecentRequests>;
68
+
69
+ /**
70
+ * Get recent requests
71
+ *
72
+ * Returns a list of recent gRPC requests with their details.
73
+ */
74
+ async grpcMonitorRequestsRetrieve(...args: any[]): Promise<Models.RecentRequests> {
75
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
76
+
77
+ let params;
78
+ if (isParamsObject) {
79
+ params = args[0];
80
+ } else {
81
+ params = { count: args[0], method: args[1], offset: args[2], service: args[3], status: args[4] };
82
+ }
83
+ const response = await this.client.request('GET', "/cfg/grpc/monitor/requests/", { params });
84
+ return response;
85
+ }
86
+
87
+ async grpcMonitorServicesRetrieve(hours?: number): Promise<Models.ServiceList[]>;
88
+ async grpcMonitorServicesRetrieve(params?: { hours?: number }): Promise<Models.ServiceList[]>;
89
+
90
+ /**
91
+ * Get service statistics
92
+ *
93
+ * Returns statistics grouped by service.
94
+ */
95
+ async grpcMonitorServicesRetrieve(...args: any[]): Promise<Models.ServiceList[]> {
96
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
97
+
98
+ let params;
99
+ if (isParamsObject) {
100
+ params = args[0];
101
+ } else {
102
+ params = { hours: args[0] };
103
+ }
104
+ const response = await this.client.request('GET', "/cfg/grpc/monitor/services/", { params });
105
+ return (response as any).results || [];
106
+ }
107
+
108
+ async grpcMonitorTimelineRetrieve(hours?: number, interval?: string): Promise<any>;
109
+ async grpcMonitorTimelineRetrieve(params?: { hours?: number; interval?: string }): Promise<any>;
110
+
111
+ /**
112
+ * Get request timeline
113
+ *
114
+ * Returns hourly or daily breakdown of request counts for charts.
115
+ */
116
+ async grpcMonitorTimelineRetrieve(...args: any[]): Promise<any> {
117
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
118
+
119
+ let params;
120
+ if (isParamsObject) {
121
+ params = args[0];
122
+ } else {
123
+ params = { hours: args[0], interval: args[1] };
124
+ }
125
+ const response = await this.client.request('GET', "/cfg/grpc/monitor/timeline/", { params });
126
+ return response;
127
+ }
128
+
129
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * as Models from "./models";