@djangocfg/api 1.2.21 → 1.2.23

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 (111) hide show
  1. package/dist/index.cjs +11030 -6472
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +10395 -4022
  4. package/dist/index.d.ts +10395 -4022
  5. package/dist/index.mjs +11117 -6580
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +3 -3
  9. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_config.ts +48 -0
  10. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +138 -0
  11. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_configuration.ts +63 -0
  12. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +11 -11
  13. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_services.ts +77 -0
  14. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +79 -0
  15. package/src/cfg/generated/_utils/fetchers/index.ts +5 -0
  16. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +3 -3
  17. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_config.ts +36 -0
  18. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_charts.ts +126 -0
  19. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_configuration.ts +51 -0
  20. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_monitoring.ts +9 -9
  21. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_services.ts +65 -0
  22. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_testing.ts +71 -0
  23. package/src/cfg/generated/_utils/hooks/index.ts +5 -0
  24. package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +2 -2
  25. package/src/cfg/generated/_utils/schemas/CentrifugoConfig.schema.ts +23 -0
  26. package/src/cfg/generated/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +2 -2
  27. package/src/cfg/generated/_utils/schemas/{OverviewStats.schema.ts → CentrifugoOverviewStats.schema.ts} +3 -3
  28. package/src/cfg/generated/_utils/schemas/CentrifugoPublication.schema.ts +1 -1
  29. package/src/cfg/generated/_utils/schemas/ConfigData.schema.ts +27 -0
  30. package/src/cfg/generated/_utils/schemas/ConfigMeta.schema.ts +20 -0
  31. package/src/cfg/generated/_utils/schemas/ConfigValidation.schema.ts +24 -0
  32. package/src/cfg/generated/_utils/schemas/DRFConfig.schema.ts +20 -0
  33. package/src/cfg/generated/_utils/schemas/DashboardCharts.schema.ts +30 -0
  34. package/src/cfg/generated/_utils/schemas/DatabaseConfig.schema.ts +31 -0
  35. package/src/cfg/generated/_utils/schemas/DjangoConfig.schema.ts +86 -0
  36. package/src/cfg/generated/_utils/schemas/DjangoRQConfig.schema.ts +26 -0
  37. package/src/cfg/generated/_utils/schemas/EmailConfig.schema.ts +28 -0
  38. package/src/cfg/generated/_utils/schemas/ErrorDistributionChart.schema.ts +24 -0
  39. package/src/cfg/generated/_utils/schemas/ErrorDistributionChartSerializer.schema.ts +24 -0
  40. package/src/cfg/generated/_utils/schemas/ErrorDistributionDataPoint.schema.ts +22 -0
  41. package/src/cfg/generated/_utils/schemas/GRPCCallRequestRequest.schema.ts +23 -0
  42. package/src/cfg/generated/_utils/schemas/GRPCCallResponse.schema.ts +29 -0
  43. package/src/cfg/generated/_utils/schemas/GRPCConfig.schema.ts +26 -0
  44. package/src/cfg/generated/_utils/schemas/GRPCConfigDashboard.schema.ts +25 -0
  45. package/src/cfg/generated/_utils/schemas/GRPCExampleSerializer.schema.ts +24 -0
  46. package/src/cfg/generated/_utils/schemas/GRPCExamplesList.schema.ts +21 -0
  47. package/src/cfg/generated/_utils/schemas/GRPCFeaturesSerializer.schema.ts +22 -0
  48. package/src/cfg/generated/_utils/schemas/GRPCFrameworkConfigSerializer.schema.ts +22 -0
  49. package/src/cfg/generated/_utils/schemas/GRPCHealthCheck.schema.ts +23 -0
  50. package/src/cfg/generated/_utils/schemas/GRPCInterceptorInfoSerializer.schema.ts +20 -0
  51. package/src/cfg/generated/_utils/schemas/GRPCOverviewStats.schema.ts +27 -0
  52. package/src/cfg/generated/_utils/schemas/GRPCServerConfigSerializer.schema.ts +23 -0
  53. package/src/cfg/generated/_utils/schemas/GRPCServerInfo.schema.ts +28 -0
  54. package/src/cfg/generated/_utils/schemas/GRPCServiceInfoSerializer.schema.ts +22 -0
  55. package/src/cfg/generated/_utils/schemas/GRPCStatsSerializer.schema.ts +21 -0
  56. package/src/cfg/generated/_utils/schemas/GRPCTestLog.schema.ts +27 -0
  57. package/src/cfg/generated/_utils/schemas/JWTConfig.schema.ts +21 -0
  58. package/src/cfg/generated/_utils/schemas/MethodInfoSerializer.schema.ts +24 -0
  59. package/src/cfg/generated/_utils/schemas/MethodSummarySerializer.schema.ts +25 -0
  60. package/src/cfg/generated/_utils/schemas/MonitoringServiceStatsSerializer.schema.ts +24 -0
  61. package/src/cfg/generated/_utils/schemas/PaymentsConfig.schema.ts +21 -0
  62. package/src/cfg/generated/_utils/schemas/PaymentsNowPayments.schema.ts +22 -0
  63. package/src/cfg/generated/_utils/schemas/RecentErrorSerializer.schema.ts +22 -0
  64. package/src/cfg/generated/_utils/schemas/RecentRequest.schema.ts +28 -0
  65. package/src/cfg/generated/_utils/schemas/RedisQueueConfig.schema.ts +29 -0
  66. package/src/cfg/generated/_utils/schemas/RequestVolumeChart.schema.ts +25 -0
  67. package/src/cfg/generated/_utils/schemas/RequestVolumeChartSerializer.schema.ts +25 -0
  68. package/src/cfg/generated/_utils/schemas/RequestVolumeDataPoint.schema.ts +23 -0
  69. package/src/cfg/generated/_utils/schemas/ResponseTimeChart.schema.ts +25 -0
  70. package/src/cfg/generated/_utils/schemas/ResponseTimeChartSerializer.schema.ts +25 -0
  71. package/src/cfg/generated/_utils/schemas/ResponseTimeDataPoint.schema.ts +25 -0
  72. package/src/cfg/generated/_utils/schemas/ServerLifecycleChart.schema.ts +25 -0
  73. package/src/cfg/generated/_utils/schemas/ServerLifecycleEvent.schema.ts +24 -0
  74. package/src/cfg/generated/_utils/schemas/ServerUptimeChart.schema.ts +25 -0
  75. package/src/cfg/generated/_utils/schemas/ServerUptimeChartSerializer.schema.ts +25 -0
  76. package/src/cfg/generated/_utils/schemas/ServerUptimeDataPoint.schema.ts +21 -0
  77. package/src/cfg/generated/_utils/schemas/ServiceActivityChart.schema.ts +24 -0
  78. package/src/cfg/generated/_utils/schemas/ServiceActivityChartSerializer.schema.ts +24 -0
  79. package/src/cfg/generated/_utils/schemas/ServiceActivityDataPoint.schema.ts +22 -0
  80. package/src/cfg/generated/_utils/schemas/ServiceDetail.schema.ts +31 -0
  81. package/src/cfg/generated/_utils/schemas/ServiceList.schema.ts +2 -2
  82. package/src/cfg/generated/_utils/schemas/ServiceMethods.schema.ts +22 -0
  83. package/src/cfg/generated/_utils/schemas/ServiceStatsSerializer.schema.ts +8 -8
  84. package/src/cfg/generated/_utils/schemas/SpectacularConfig.schema.ts +21 -0
  85. package/src/cfg/generated/_utils/schemas/index.ts +56 -2
  86. package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +5 -5
  87. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +4 -4
  88. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +1 -1
  89. package/src/cfg/generated/cfg__dashboard__dashboard_config/client.ts +25 -0
  90. package/src/cfg/generated/cfg__dashboard__dashboard_config/index.ts +2 -0
  91. package/src/cfg/generated/cfg__dashboard__dashboard_config/models.ts +240 -0
  92. package/src/cfg/generated/cfg__endpoints/client.ts +1 -1
  93. package/src/cfg/generated/cfg__grpc__grpc_charts/client.ts +162 -0
  94. package/src/cfg/generated/cfg__grpc__grpc_charts/index.ts +2 -0
  95. package/src/cfg/generated/cfg__grpc__grpc_charts/models.ts +335 -0
  96. package/src/cfg/generated/cfg__grpc__grpc_configuration/client.ts +35 -0
  97. package/src/cfg/generated/cfg__grpc__grpc_configuration/index.ts +2 -0
  98. package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +128 -0
  99. package/src/cfg/generated/cfg__grpc__grpc_monitoring/client.ts +12 -11
  100. package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +45 -31
  101. package/src/cfg/generated/cfg__grpc__grpc_services/client.ts +55 -0
  102. package/src/cfg/generated/cfg__grpc__grpc_services/index.ts +2 -0
  103. package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +138 -0
  104. package/src/cfg/generated/cfg__grpc__grpc_testing/client.ts +67 -0
  105. package/src/cfg/generated/cfg__grpc__grpc_testing/index.ts +2 -0
  106. package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +106 -0
  107. package/src/cfg/generated/cfg__payments/client.ts +1 -1
  108. package/src/cfg/generated/client.ts +15 -0
  109. package/src/cfg/generated/index.ts +25 -0
  110. package/src/cfg/generated/schema.ts +8264 -4968
  111. package/src/cfg/generated/_utils/schemas/RecentRequests.schema.ts +0 -23
@@ -39,6 +39,7 @@ export * from './CentrifugoChannelsRequestRequest.schema'
39
39
  export * from './CentrifugoChannelsResponse.schema'
40
40
  export * from './CentrifugoChannelsResult.schema'
41
41
  export * from './CentrifugoClientInfo.schema'
42
+ export * from './CentrifugoConfig.schema'
42
43
  export * from './CentrifugoError.schema'
43
44
  export * from './CentrifugoHistoryRequestRequest.schema'
44
45
  export * from './CentrifugoHistoryResponse.schema'
@@ -47,6 +48,7 @@ export * from './CentrifugoInfoResponse.schema'
47
48
  export * from './CentrifugoInfoResult.schema'
48
49
  export * from './CentrifugoMetrics.schema'
49
50
  export * from './CentrifugoNodeInfo.schema'
51
+ export * from './CentrifugoOverviewStats.schema'
50
52
  export * from './CentrifugoPresenceRequestRequest.schema'
51
53
  export * from './CentrifugoPresenceResponse.schema'
52
54
  export * from './CentrifugoPresenceResult.schema'
@@ -75,10 +77,18 @@ export * from './Command.schema'
75
77
  export * from './CommandExecuteRequestRequest.schema'
76
78
  export * from './CommandHelpResponse.schema'
77
79
  export * from './CommandsSummary.schema'
80
+ export * from './ConfigData.schema'
81
+ export * from './ConfigMeta.schema'
82
+ export * from './ConfigValidation.schema'
78
83
  export * from './ConnectionTokenRequestRequest.schema'
79
84
  export * from './ConnectionTokenResponse.schema'
80
85
  export * from './Currency.schema'
86
+ export * from './DRFConfig.schema'
87
+ export * from './DashboardCharts.schema'
81
88
  export * from './DashboardOverview.schema'
89
+ export * from './DatabaseConfig.schema'
90
+ export * from './DjangoConfig.schema'
91
+ export * from './DjangoRQConfig.schema'
82
92
  export * from './Document.schema'
83
93
  export * from './DocumentArchive.schema'
84
94
  export * from './DocumentArchiveDetail.schema'
@@ -90,11 +100,32 @@ export * from './DocumentCreateRequest.schema'
90
100
  export * from './DocumentProcessingStatus.schema'
91
101
  export * from './DocumentRequest.schema'
92
102
  export * from './DocumentStats.schema'
103
+ export * from './EmailConfig.schema'
93
104
  export * from './EmailLog.schema'
94
105
  export * from './Endpoint.schema'
95
106
  export * from './EndpointsStatus.schema'
107
+ export * from './ErrorDistributionChart.schema'
108
+ export * from './ErrorDistributionChartSerializer.schema'
109
+ export * from './ErrorDistributionDataPoint.schema'
96
110
  export * from './ErrorResponse.schema'
111
+ export * from './GRPCCallRequestRequest.schema'
112
+ export * from './GRPCCallResponse.schema'
113
+ export * from './GRPCConfig.schema'
114
+ export * from './GRPCConfigDashboard.schema'
115
+ export * from './GRPCExampleSerializer.schema'
116
+ export * from './GRPCExamplesList.schema'
117
+ export * from './GRPCFeaturesSerializer.schema'
118
+ export * from './GRPCFrameworkConfigSerializer.schema'
119
+ export * from './GRPCHealthCheck.schema'
120
+ export * from './GRPCInterceptorInfoSerializer.schema'
121
+ export * from './GRPCOverviewStats.schema'
122
+ export * from './GRPCServerConfigSerializer.schema'
123
+ export * from './GRPCServerInfo.schema'
124
+ export * from './GRPCServiceInfoSerializer.schema'
125
+ export * from './GRPCStatsSerializer.schema'
126
+ export * from './GRPCTestLog.schema'
97
127
  export * from './HealthCheck.schema'
128
+ export * from './JWTConfig.schema'
98
129
  export * from './JobActionResponse.schema'
99
130
  export * from './JobDetail.schema'
100
131
  export * from './JobList.schema'
@@ -108,8 +139,11 @@ export * from './Message.schema'
108
139
  export * from './MessageCreate.schema'
109
140
  export * from './MessageCreateRequest.schema'
110
141
  export * from './MessageRequest.schema'
142
+ export * from './MethodInfoSerializer.schema'
111
143
  export * from './MethodList.schema'
112
144
  export * from './MethodStatsSerializer.schema'
145
+ export * from './MethodSummarySerializer.schema'
146
+ export * from './MonitoringServiceStatsSerializer.schema'
113
147
  export * from './Newsletter.schema'
114
148
  export * from './NewsletterCampaign.schema'
115
149
  export * from './NewsletterCampaignRequest.schema'
@@ -119,7 +153,6 @@ export * from './OTPRequestRequest.schema'
119
153
  export * from './OTPRequestResponse.schema'
120
154
  export * from './OTPVerifyRequest.schema'
121
155
  export * from './OTPVerifyResponse.schema'
122
- export * from './OverviewStats.schema'
123
156
  export * from './PaginatedArchiveItemChunkList.schema'
124
157
  export * from './PaginatedArchiveItemList.schema'
125
158
  export * from './PaginatedArchiveSearchResultList.schema'
@@ -151,6 +184,8 @@ export * from './PatchedUnsubscribeRequest.schema'
151
184
  export * from './PatchedUserProfileUpdateRequest.schema'
152
185
  export * from './PaymentDetail.schema'
153
186
  export * from './PaymentList.schema'
187
+ export * from './PaymentsConfig.schema'
188
+ export * from './PaymentsNowPayments.schema'
154
189
  export * from './PublicCategory.schema'
155
190
  export * from './PublicDocument.schema'
156
191
  export * from './PublicDocumentList.schema'
@@ -161,9 +196,17 @@ export * from './QueueStats.schema'
161
196
  export * from './QuickAction.schema'
162
197
  export * from './QuickHealth.schema'
163
198
  export * from './RQConfig.schema'
199
+ export * from './RecentErrorSerializer.schema'
164
200
  export * from './RecentPublishes.schema'
165
- export * from './RecentRequests.schema'
201
+ export * from './RecentRequest.schema'
166
202
  export * from './RecentUser.schema'
203
+ export * from './RedisQueueConfig.schema'
204
+ export * from './RequestVolumeChart.schema'
205
+ export * from './RequestVolumeChartSerializer.schema'
206
+ export * from './RequestVolumeDataPoint.schema'
207
+ export * from './ResponseTimeChart.schema'
208
+ export * from './ResponseTimeChartSerializer.schema'
209
+ export * from './ResponseTimeDataPoint.schema'
167
210
  export * from './RunDemoRequestRequest.schema'
168
211
  export * from './ScheduleActionResponse.schema'
169
212
  export * from './ScheduleCreateRequest.schema'
@@ -171,8 +214,19 @@ export * from './ScheduledJob.schema'
171
214
  export * from './SendCampaignRequest.schema'
172
215
  export * from './SendCampaignResponse.schema'
173
216
  export * from './Sender.schema'
217
+ export * from './ServerLifecycleChart.schema'
218
+ export * from './ServerLifecycleEvent.schema'
219
+ export * from './ServerUptimeChart.schema'
220
+ export * from './ServerUptimeChartSerializer.schema'
221
+ export * from './ServerUptimeDataPoint.schema'
222
+ export * from './ServiceActivityChart.schema'
223
+ export * from './ServiceActivityChartSerializer.schema'
224
+ export * from './ServiceActivityDataPoint.schema'
225
+ export * from './ServiceDetail.schema'
174
226
  export * from './ServiceList.schema'
227
+ export * from './ServiceMethods.schema'
175
228
  export * from './ServiceStatsSerializer.schema'
229
+ export * from './SpectacularConfig.schema'
176
230
  export * from './StatCard.schema'
177
231
  export * from './StressTestRequestRequest.schema'
178
232
  export * from './SubscribeRequest.schema'
@@ -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 | null;
30
+ limit?: number | null;
31
31
  since?: Record<string, any>;
32
32
  /** Reverse message order (newest first) */
33
- reverse?: string | null;
33
+ reverse?: boolean | 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 | null;
188
+ tags?: Record<string, any> | 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 | null;
228
+ conn_info?: Record<string, any> | null;
229
229
  /** Channel-specific metadata */
230
- chan_info?: string | null;
230
+ chan_info?: Record<string, any> | null;
231
231
  }
232
232
 
233
233
  /**
@@ -21,15 +21,15 @@ export class CfgCentrifugoMonitoring {
21
21
  return response;
22
22
  }
23
23
 
24
- async centrifugoMonitorOverviewRetrieve(hours?: number): Promise<Models.OverviewStats>;
25
- async centrifugoMonitorOverviewRetrieve(params?: { hours?: number }): Promise<Models.OverviewStats>;
24
+ async centrifugoMonitorOverviewRetrieve(hours?: number): Promise<Models.CentrifugoOverviewStats>;
25
+ async centrifugoMonitorOverviewRetrieve(params?: { hours?: number }): Promise<Models.CentrifugoOverviewStats>;
26
26
 
27
27
  /**
28
28
  * Get overview statistics
29
29
  *
30
30
  * Returns overview statistics for Centrifugo publishes.
31
31
  */
32
- async centrifugoMonitorOverviewRetrieve(...args: any[]): Promise<Models.OverviewStats> {
32
+ async centrifugoMonitorOverviewRetrieve(...args: any[]): Promise<Models.CentrifugoOverviewStats> {
33
33
  const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
34
34
 
35
35
  let params;
@@ -81,7 +81,7 @@ export class CfgCentrifugoMonitoring {
81
81
  params = { hours: args[0], interval: args[1] };
82
82
  }
83
83
  const response = await this.client.request('GET', "/cfg/centrifugo/monitor/timeline/", { params });
84
- return (response as any).results || [];
84
+ return (response as any).results || response;
85
85
  }
86
86
 
87
87
  }
@@ -19,7 +19,7 @@ export interface HealthCheck {
19
19
  *
20
20
  * Response model (includes read-only fields).
21
21
  */
22
- export interface OverviewStats {
22
+ export interface CentrifugoOverviewStats {
23
23
  /** Total publishes in period */
24
24
  total: number;
25
25
  /** Successful publishes */
@@ -0,0 +1,25 @@
1
+ import * as Models from "./models";
2
+
3
+
4
+ /**
5
+ * API endpoints for Dashboard - Config.
6
+ */
7
+ export class CfgDashboardConfig {
8
+ private client: any;
9
+
10
+ constructor(client: any) {
11
+ this.client = client;
12
+ }
13
+
14
+ /**
15
+ * Get configuration data
16
+ *
17
+ * Retrieve user's DjangoConfig settings and complete Django settings
18
+ * (sanitized)
19
+ */
20
+ async dashboardApiConfigConfigRetrieve(): Promise<Models.ConfigData> {
21
+ const response = await this.client.request('GET', "/cfg/dashboard/api/config/config/");
22
+ return response;
23
+ }
24
+
25
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * as Models from "./models";
@@ -0,0 +1,240 @@
1
+ /**
2
+ * Serializer for complete config data endpoint. Returns both DjangoConfig and
3
+ * Django settings with validation info.
4
+ *
5
+ * Response model (includes read-only fields).
6
+ */
7
+ export interface ConfigData {
8
+ django_config: Record<string, any>;
9
+ /** Complete Django settings (sanitized) */
10
+ django_settings: Record<string, any>;
11
+ _validation: Record<string, any>;
12
+ }
13
+
14
+ /**
15
+ * Typed serializer for user's DjangoConfig settings. Reflects the actual
16
+ * structure of DjangoConfig model. All passwords and sensitive data are
17
+ * sanitized before reaching this serializer.
18
+ *
19
+ * Response model (includes read-only fields).
20
+ */
21
+ export interface DjangoConfig {
22
+ env_mode?: string | null;
23
+ project_name?: string | null;
24
+ project_logo?: string | null;
25
+ project_version?: string | null;
26
+ project_description?: string | null;
27
+ startup_info_mode?: string | null;
28
+ enable_support?: boolean | null;
29
+ enable_accounts?: boolean | null;
30
+ enable_newsletter?: boolean | null;
31
+ enable_leads?: boolean | null;
32
+ enable_knowbase?: boolean | null;
33
+ enable_agents?: boolean | null;
34
+ enable_maintenance?: boolean | null;
35
+ enable_frontend?: boolean | null;
36
+ enable_drf_tailwind?: boolean | null;
37
+ site_url?: string | null;
38
+ api_url?: string | null;
39
+ debug?: boolean | null;
40
+ debug_warnings?: boolean | null;
41
+ root_urlconf?: string | null;
42
+ wsgi_application?: string | null;
43
+ auth_user_model?: string | null;
44
+ project_apps?: Array<string> | null;
45
+ databases?: Record<string, any> | null;
46
+ redis_url?: string | null;
47
+ cache_default?: string | null;
48
+ cache_sessions?: string | null;
49
+ security_domains?: Array<string> | null;
50
+ ssl_redirect?: boolean | null;
51
+ cors_allow_headers?: Array<string> | null;
52
+ email?: Record<string, any> | null;
53
+ payments?: Record<string, any> | null;
54
+ grpc?: Record<string, any> | null;
55
+ centrifugo?: Record<string, any> | null;
56
+ django_rq?: Record<string, any> | null;
57
+ drf?: Record<string, any> | null;
58
+ spectacular?: Record<string, any> | null;
59
+ jwt?: Record<string, any> | null;
60
+ telegram?: Record<string, any> | null;
61
+ ngrok?: Record<string, any> | null;
62
+ axes?: Record<string, any> | null;
63
+ crypto_fields?: Record<string, any> | null;
64
+ unfold?: string | null;
65
+ tailwind_app_name?: string | null;
66
+ tailwind_version?: number | null;
67
+ limits?: Record<string, any> | null;
68
+ api_keys?: Record<string, any> | null;
69
+ custom_middleware?: Array<string> | null;
70
+ nextjs_admin?: Record<string, any> | null;
71
+ admin_emails?: Array<string> | null;
72
+ constance?: Record<string, any> | null;
73
+ openapi_client?: Record<string, any> | null;
74
+ _meta?: Record<string, any> | null;
75
+ }
76
+
77
+ /**
78
+ * Validation result for config serializer.
79
+ *
80
+ * Response model (includes read-only fields).
81
+ */
82
+ export interface ConfigValidation {
83
+ /** Validation status: 'valid', 'warning', or 'error' */
84
+ status: string;
85
+ /** Fields present in config but missing in serializer */
86
+ missing_in_serializer: Array<string>;
87
+ /** Fields present in serializer but not in config */
88
+ extra_in_serializer: Array<string>;
89
+ /** Fields with type mismatches */
90
+ type_mismatches: Array<Record<string, any>>;
91
+ /** Total fields in config */
92
+ total_config_fields: number;
93
+ /** Total fields in serializer */
94
+ total_serializer_fields: number;
95
+ }
96
+
97
+ /**
98
+ * Email configuration.
99
+ *
100
+ * Response model (includes read-only fields).
101
+ */
102
+ export interface EmailConfig {
103
+ backend?: string | null;
104
+ host?: string | null;
105
+ port?: number | null;
106
+ username?: string | null;
107
+ password?: string | null;
108
+ use_tls?: boolean | null;
109
+ use_ssl?: boolean | null;
110
+ ssl_verify?: boolean | null;
111
+ timeout?: number | null;
112
+ default_from?: string | null;
113
+ }
114
+
115
+ /**
116
+ * Payments configuration.
117
+ *
118
+ * Response model (includes read-only fields).
119
+ */
120
+ export interface PaymentsConfig {
121
+ enabled?: boolean | null;
122
+ nowpayments?: Record<string, any> | null;
123
+ }
124
+
125
+ /**
126
+ * gRPC configuration for dashboard.
127
+ *
128
+ * Response model (includes read-only fields).
129
+ */
130
+ export interface GRPCConfigDashboard {
131
+ enabled?: boolean | null;
132
+ host?: string | null;
133
+ port?: number | null;
134
+ max_workers?: number | null;
135
+ reflection?: boolean | null;
136
+ health_check?: boolean | null;
137
+ interceptors?: Array<string> | null;
138
+ }
139
+
140
+ /**
141
+ * Centrifugo configuration.
142
+ *
143
+ * Response model (includes read-only fields).
144
+ */
145
+ export interface CentrifugoConfig {
146
+ enabled?: boolean | null;
147
+ api_url?: string | null;
148
+ api_key?: string | null;
149
+ token_hmac_secret_key?: string | null;
150
+ timeout?: number | null;
151
+ }
152
+
153
+ /**
154
+ * Django-RQ configuration.
155
+ *
156
+ * Response model (includes read-only fields).
157
+ */
158
+ export interface DjangoRQConfig {
159
+ enabled?: boolean | null;
160
+ queues?: Array<RedisQueueConfig> | null;
161
+ show_admin_link?: boolean | null;
162
+ exception_handlers?: Array<string> | null;
163
+ api_token?: string | null;
164
+ prometheus_enabled?: boolean | null;
165
+ schedules?: Array<Record<string, any>> | null;
166
+ }
167
+
168
+ /**
169
+ * Django REST Framework configuration.
170
+ *
171
+ * Response model (includes read-only fields).
172
+ */
173
+ export interface DRFConfig {
174
+ default_pagination_class?: string | null;
175
+ page_size?: number | null;
176
+ }
177
+
178
+ /**
179
+ * DRF Spectacular configuration.
180
+ *
181
+ * Response model (includes read-only fields).
182
+ */
183
+ export interface SpectacularConfig {
184
+ title?: string | null;
185
+ description?: string | null;
186
+ version?: string | null;
187
+ }
188
+
189
+ /**
190
+ * JWT configuration.
191
+ *
192
+ * Response model (includes read-only fields).
193
+ */
194
+ export interface JWTConfig {
195
+ access_token_lifetime?: number | null;
196
+ refresh_token_lifetime?: number | null;
197
+ algorithm?: string | null;
198
+ }
199
+
200
+ /**
201
+ * Config metadata.
202
+ *
203
+ * Response model (includes read-only fields).
204
+ */
205
+ export interface ConfigMeta {
206
+ config_class: string;
207
+ secret_key_configured: boolean;
208
+ }
209
+
210
+ /**
211
+ * NowPayments configuration.
212
+ *
213
+ * Response model (includes read-only fields).
214
+ */
215
+ export interface PaymentsNowPayments {
216
+ api_key?: string | null;
217
+ ipn_secret?: string | null;
218
+ sandbox?: boolean | null;
219
+ enabled?: boolean | null;
220
+ }
221
+
222
+ /**
223
+ * Redis Queue configuration.
224
+ *
225
+ * Response model (includes read-only fields).
226
+ */
227
+ export interface RedisQueueConfig {
228
+ url?: string | null;
229
+ host?: string | null;
230
+ port?: number | null;
231
+ db?: number | null;
232
+ username?: string | null;
233
+ password?: string | null;
234
+ default_timeout?: number | null;
235
+ default_result_ttl?: number | null;
236
+ sentinels?: Array<string> | null;
237
+ master_name?: string | null;
238
+ socket_timeout?: number | null;
239
+ }
240
+
@@ -24,7 +24,7 @@ export class CfgEndpoints {
24
24
  */
25
25
  async urlsRetrieve(): Promise<Models.URLsList[]> {
26
26
  const response = await this.client.request('GET', "/cfg/endpoints/urls/");
27
- return (response as any).results || [];
27
+ return (response as any).results || response;
28
28
  }
29
29
 
30
30
  /**
@@ -0,0 +1,162 @@
1
+ import * as Models from "./models";
2
+
3
+
4
+ /**
5
+ * API endpoints for Grpc Charts.
6
+ */
7
+ export class CfgGrpcCharts {
8
+ private client: any;
9
+
10
+ constructor(client: any) {
11
+ this.client = client;
12
+ }
13
+
14
+ async dashboardRetrieve(hours?: number): Promise<Models.DashboardCharts>;
15
+ async dashboardRetrieve(params?: { hours?: number }): Promise<Models.DashboardCharts>;
16
+
17
+ /**
18
+ * Get all dashboard charts data
19
+ *
20
+ * Returns combined data for all charts in one request (optimized).
21
+ */
22
+ async dashboardRetrieve(...args: any[]): Promise<Models.DashboardCharts> {
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/grpc/charts/dashboard/", { params });
32
+ return response;
33
+ }
34
+
35
+ async errorDistributionRetrieve(hours?: number): Promise<Models.ErrorDistributionChart>;
36
+ async errorDistributionRetrieve(params?: { hours?: number }): Promise<Models.ErrorDistributionChart>;
37
+
38
+ /**
39
+ * Get error distribution chart data
40
+ *
41
+ * Returns distribution of error types across services.
42
+ */
43
+ async errorDistributionRetrieve(...args: any[]): Promise<Models.ErrorDistributionChart> {
44
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
45
+
46
+ let params;
47
+ if (isParamsObject) {
48
+ params = args[0];
49
+ } else {
50
+ params = { hours: args[0] };
51
+ }
52
+ const response = await this.client.request('GET', "/cfg/grpc/charts/error-distribution/", { params });
53
+ return response;
54
+ }
55
+
56
+ async requestVolumeRetrieve(hours?: number): Promise<Models.RequestVolumeChart>;
57
+ async requestVolumeRetrieve(params?: { hours?: number }): Promise<Models.RequestVolumeChart>;
58
+
59
+ /**
60
+ * Get request volume chart data
61
+ *
62
+ * Returns time-series data showing request volume and success rates.
63
+ */
64
+ async requestVolumeRetrieve(...args: any[]): Promise<Models.RequestVolumeChart> {
65
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
66
+
67
+ let params;
68
+ if (isParamsObject) {
69
+ params = args[0];
70
+ } else {
71
+ params = { hours: args[0] };
72
+ }
73
+ const response = await this.client.request('GET', "/cfg/grpc/charts/request-volume/", { params });
74
+ return response;
75
+ }
76
+
77
+ async responseTimeRetrieve(hours?: number): Promise<Models.ResponseTimeChart>;
78
+ async responseTimeRetrieve(params?: { hours?: number }): Promise<Models.ResponseTimeChart>;
79
+
80
+ /**
81
+ * Get response time chart data
82
+ *
83
+ * Returns time-series data showing response time statistics (avg, P50,
84
+ * P95, P99).
85
+ */
86
+ async responseTimeRetrieve(...args: any[]): Promise<Models.ResponseTimeChart> {
87
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
88
+
89
+ let params;
90
+ if (isParamsObject) {
91
+ params = args[0];
92
+ } else {
93
+ params = { hours: args[0] };
94
+ }
95
+ const response = await this.client.request('GET', "/cfg/grpc/charts/response-time/", { params });
96
+ return response;
97
+ }
98
+
99
+ async serverLifecycleRetrieve(hours?: number): Promise<Models.ServerLifecycleChart>;
100
+ async serverLifecycleRetrieve(params?: { hours?: number }): Promise<Models.ServerLifecycleChart>;
101
+
102
+ /**
103
+ * Get server lifecycle events
104
+ *
105
+ * Returns timeline of server start/stop/error events.
106
+ */
107
+ async serverLifecycleRetrieve(...args: any[]): Promise<Models.ServerLifecycleChart> {
108
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
109
+
110
+ let params;
111
+ if (isParamsObject) {
112
+ params = args[0];
113
+ } else {
114
+ params = { hours: args[0] };
115
+ }
116
+ const response = await this.client.request('GET', "/cfg/grpc/charts/server-lifecycle/", { params });
117
+ return response;
118
+ }
119
+
120
+ async serverUptimeRetrieve(hours?: number): Promise<Models.ServerUptimeChart>;
121
+ async serverUptimeRetrieve(params?: { hours?: number }): Promise<Models.ServerUptimeChart>;
122
+
123
+ /**
124
+ * Get server uptime chart data
125
+ *
126
+ * Returns time-series data showing number of running servers over time.
127
+ */
128
+ async serverUptimeRetrieve(...args: any[]): Promise<Models.ServerUptimeChart> {
129
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
130
+
131
+ let params;
132
+ if (isParamsObject) {
133
+ params = args[0];
134
+ } else {
135
+ params = { hours: args[0] };
136
+ }
137
+ const response = await this.client.request('GET', "/cfg/grpc/charts/server-uptime/", { params });
138
+ return response;
139
+ }
140
+
141
+ async serviceActivityRetrieve(hours?: number): Promise<Models.ServiceActivityChart>;
142
+ async serviceActivityRetrieve(params?: { hours?: number }): Promise<Models.ServiceActivityChart>;
143
+
144
+ /**
145
+ * Get service activity chart data
146
+ *
147
+ * Returns comparison data showing activity across all services.
148
+ */
149
+ async serviceActivityRetrieve(...args: any[]): Promise<Models.ServiceActivityChart> {
150
+ const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
151
+
152
+ let params;
153
+ if (isParamsObject) {
154
+ params = args[0];
155
+ } else {
156
+ params = { hours: args[0] };
157
+ }
158
+ const response = await this.client.request('GET', "/cfg/grpc/charts/service-activity/", { params });
159
+ return response;
160
+ }
161
+
162
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * as Models from "./models";