@djangocfg/api 1.2.25 → 1.2.27

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 (94) hide show
  1. package/dist/index.cjs +6319 -2061
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +698 -1532
  4. package/dist/index.d.ts +698 -1532
  5. package/dist/index.mjs +6319 -2061
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +59 -2
  9. package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +30 -1
  10. package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +175 -6
  11. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +30 -1
  12. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +146 -5
  13. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_auth.ts +30 -1
  14. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +117 -4
  15. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +88 -3
  16. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_activity.ts +1 -0
  17. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_api_zones.ts +30 -1
  18. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_charts.ts +59 -2
  19. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_commands.ts +59 -2
  20. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_config.ts +30 -1
  21. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_overview.ts +30 -1
  22. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_statistics.ts +30 -1
  23. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_system.ts +59 -2
  24. package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +59 -2
  25. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_api_keys.ts +88 -3
  26. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +204 -7
  27. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_configuration.ts +59 -2
  28. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +117 -4
  29. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_proto_files.ts +30 -1
  30. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_services.ts +88 -3
  31. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +88 -3
  32. package/src/cfg/generated/_utils/fetchers/cfg__health.ts +59 -2
  33. package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +1422 -49
  34. package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +146 -5
  35. package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +30 -1
  36. package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +88 -3
  37. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +30 -1
  38. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +146 -5
  39. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +30 -1
  40. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +59 -2
  41. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +88 -3
  42. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +30 -1
  43. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +175 -6
  44. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_jobs.ts +146 -5
  45. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_monitoring.ts +59 -2
  46. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_queues.ts +30 -1
  47. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_registries.ts +204 -7
  48. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_schedules.ts +117 -4
  49. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_testing.ts +117 -4
  50. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_workers.ts +30 -1
  51. package/src/cfg/generated/_utils/fetchers/cfg__support.ts +291 -10
  52. package/src/cfg/generated/_utils/schemas/ApiKeyStats.schema.ts +1 -1
  53. package/src/cfg/generated/_utils/schemas/AppStatistics.schema.ts +2 -1
  54. package/src/cfg/generated/_utils/schemas/AppStatisticsData.schema.ts +21 -0
  55. package/src/cfg/generated/_utils/schemas/AxesConfig.schema.ts +35 -0
  56. package/src/cfg/generated/_utils/schemas/CentrifugoChannelsResult.schema.ts +2 -1
  57. package/src/cfg/generated/_utils/schemas/CentrifugoMetrics.schema.ts +1 -1
  58. package/src/cfg/generated/_utils/schemas/CentrifugoPresenceResult.schema.ts +2 -1
  59. package/src/cfg/generated/_utils/schemas/ConstanceConfig.schema.ts +24 -0
  60. package/src/cfg/generated/_utils/schemas/DjangoConfig.schema.ts +14 -7
  61. package/src/cfg/generated/_utils/schemas/DjangoRQConfig.schema.ts +2 -1
  62. package/src/cfg/generated/_utils/schemas/NextJSAdminConfig.schema.ts +21 -0
  63. package/src/cfg/generated/_utils/schemas/NgrokConfig.schema.ts +22 -0
  64. package/src/cfg/generated/_utils/schemas/OpenAPIClientConfig.schema.ts +26 -0
  65. package/src/cfg/generated/_utils/schemas/RQSchedule.schema.ts +26 -0
  66. package/src/cfg/generated/_utils/schemas/TelegramConfig.schema.ts +28 -0
  67. package/src/cfg/generated/_utils/schemas/index.ts +8 -0
  68. package/src/cfg/generated/cfg__accounts/models.ts +4 -4
  69. package/src/cfg/generated/cfg__accounts__user_profile/models.ts +3 -3
  70. package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +27 -17
  71. package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/models.ts +1 -1
  72. package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +2 -2
  73. package/src/cfg/generated/cfg__dashboard__dashboard_config/models.ts +159 -26
  74. package/src/cfg/generated/cfg__dashboard__dashboard_overview/models.ts +18 -5
  75. package/src/cfg/generated/cfg__grpc__grpc_api_keys/models.ts +1 -1
  76. package/src/cfg/generated/cfg__grpc__grpc_charts/models.ts +5 -5
  77. package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +4 -4
  78. package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +1 -1
  79. package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +2 -2
  80. package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +6 -6
  81. package/src/cfg/generated/cfg__knowbase/models.ts +12 -12
  82. package/src/cfg/generated/cfg__leads__lead_submission/models.ts +1 -1
  83. package/src/cfg/generated/cfg__newsletter/models.ts +1 -1
  84. package/src/cfg/generated/cfg__newsletter__campaigns/models.ts +1 -1
  85. package/src/cfg/generated/cfg__newsletter__logs/models.ts +4 -4
  86. package/src/cfg/generated/cfg__newsletter__subscriptions/models.ts +1 -1
  87. package/src/cfg/generated/cfg__payments/models.ts +12 -12
  88. package/src/cfg/generated/cfg__rq__rq_jobs/models.ts +2 -2
  89. package/src/cfg/generated/cfg__rq__rq_monitoring/models.ts +1 -1
  90. package/src/cfg/generated/cfg__rq__rq_queues/models.ts +1 -1
  91. package/src/cfg/generated/cfg__rq__rq_schedules/models.ts +3 -3
  92. package/src/cfg/generated/cfg__rq__rq_testing/models.ts +2 -2
  93. package/src/cfg/generated/cfg__support/models.ts +2 -2
  94. package/src/cfg/generated/schema.json +340 -19
@@ -5,10 +5,10 @@
5
5
  * Response model (includes read-only fields).
6
6
  */
7
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>;
8
+ django_config: DjangoConfig;
9
+ /** Complete Django settings (sanitized, contains mixed types) */
10
+ django_settings: Record<string, string>;
11
+ _validation: ConfigValidation;
12
12
  }
13
13
 
14
14
  /**
@@ -42,36 +42,36 @@ export interface DjangoConfig {
42
42
  wsgi_application?: string | null;
43
43
  auth_user_model?: string | null;
44
44
  project_apps?: Array<string> | null;
45
- databases?: Record<string, any> | null;
45
+ databases?: Record<string, DatabaseConfig> | null;
46
46
  redis_url?: string | null;
47
47
  cache_default?: string | null;
48
48
  cache_sessions?: string | null;
49
49
  security_domains?: Array<string> | null;
50
50
  ssl_redirect?: boolean | null;
51
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;
52
+ email?: EmailConfig | null;
53
+ payments?: PaymentsConfig | null;
54
+ grpc?: GRPCConfigDashboard | null;
55
+ centrifugo?: CentrifugoConfig | null;
56
+ django_rq?: DjangoRQConfig | null;
57
+ drf?: DRFConfig | null;
58
+ spectacular?: SpectacularConfig | null;
59
+ jwt?: JWTConfig | null;
60
+ telegram?: TelegramConfig | null;
61
+ ngrok?: NgrokConfig | null;
62
+ axes?: AxesConfig | null;
63
+ crypto_fields?: Record<string, string> | null;
64
64
  unfold?: string | null;
65
65
  tailwind_app_name?: string | null;
66
66
  tailwind_version?: number | null;
67
- limits?: Record<string, any> | null;
68
- api_keys?: Record<string, any> | null;
67
+ limits?: Record<string, string> | null;
68
+ api_keys?: Record<string, string> | null;
69
69
  custom_middleware?: Array<string> | null;
70
- nextjs_admin?: Record<string, any> | null;
70
+ nextjs_admin?: NextJSAdminConfig | null;
71
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;
72
+ constance?: ConstanceConfig | null;
73
+ openapi_client?: OpenAPIClientConfig | null;
74
+ _meta?: ConfigMeta | null;
75
75
  }
76
76
 
77
77
  /**
@@ -87,13 +87,34 @@ export interface ConfigValidation {
87
87
  /** Fields present in serializer but not in config */
88
88
  extra_in_serializer: Array<string>;
89
89
  /** Fields with type mismatches */
90
- type_mismatches: Array<Record<string, any>>;
90
+ type_mismatches: Array<Record<string, string>>;
91
91
  /** Total fields in config */
92
92
  total_config_fields: number;
93
93
  /** Total fields in serializer */
94
94
  total_serializer_fields: number;
95
95
  }
96
96
 
97
+ /**
98
+ * Database configuration.
99
+ *
100
+ * Response model (includes read-only fields).
101
+ */
102
+ export interface DatabaseConfig {
103
+ engine: string;
104
+ name: string;
105
+ user?: string | null;
106
+ password?: string | null;
107
+ host?: string | null;
108
+ port?: number | null;
109
+ connect_timeout?: number | null;
110
+ sslmode?: string | null;
111
+ options?: Record<string, string> | null;
112
+ apps?: Array<string> | null;
113
+ operations?: Array<string> | null;
114
+ migrate_to?: string | null;
115
+ routing_description?: string | null;
116
+ }
117
+
97
118
  /**
98
119
  * Email configuration.
99
120
  *
@@ -119,7 +140,7 @@ export interface EmailConfig {
119
140
  */
120
141
  export interface PaymentsConfig {
121
142
  enabled?: boolean | null;
122
- nowpayments?: Record<string, any> | null;
143
+ nowpayments?: PaymentsNowPayments | null;
123
144
  }
124
145
 
125
146
  /**
@@ -162,7 +183,7 @@ export interface DjangoRQConfig {
162
183
  exception_handlers?: Array<string> | null;
163
184
  api_token?: string | null;
164
185
  prometheus_enabled?: boolean | null;
165
- schedules?: Array<Record<string, any>> | null;
186
+ schedules?: Array<RQSchedule> | null;
166
187
  }
167
188
 
168
189
  /**
@@ -197,6 +218,102 @@ export interface JWTConfig {
197
218
  algorithm?: string | null;
198
219
  }
199
220
 
221
+ /**
222
+ * Telegram service configuration.
223
+ *
224
+ * Response model (includes read-only fields).
225
+ */
226
+ export interface TelegramConfig {
227
+ bot_token?: string | null;
228
+ chat_id?: number | null;
229
+ parse_mode?: string | null;
230
+ disable_notification?: boolean | null;
231
+ disable_web_page_preview?: boolean | null;
232
+ timeout?: number | null;
233
+ webhook_url?: string | null;
234
+ webhook_secret?: string | null;
235
+ max_retries?: number | null;
236
+ retry_delay?: number | null;
237
+ }
238
+
239
+ /**
240
+ * Ngrok tunneling configuration.
241
+ *
242
+ * Response model (includes read-only fields).
243
+ */
244
+ export interface NgrokConfig {
245
+ enabled?: boolean | null;
246
+ authtoken?: string | null;
247
+ basic_auth?: Array<string> | null;
248
+ compression?: boolean | null;
249
+ }
250
+
251
+ /**
252
+ * Django-Axes brute-force protection configuration.
253
+ *
254
+ * Response model (includes read-only fields).
255
+ */
256
+ export interface AxesConfig {
257
+ enabled?: boolean | null;
258
+ failure_limit?: number | null;
259
+ cooloff_time?: number | null;
260
+ lock_out_at_failure?: boolean | null;
261
+ reset_on_success?: boolean | null;
262
+ only_user_failures?: boolean | null;
263
+ lockout_template?: string | null;
264
+ lockout_url?: string | null;
265
+ verbose?: boolean | null;
266
+ enable_access_failure_log?: boolean | null;
267
+ ipware_proxy_count?: number | null;
268
+ ipware_meta_precedence_order?: Array<string> | null;
269
+ allowed_ips?: Array<string> | null;
270
+ denied_ips?: Array<string> | null;
271
+ cache_name?: string | null;
272
+ use_user_agent?: boolean | null;
273
+ username_form_field?: string | null;
274
+ }
275
+
276
+ /**
277
+ * Next.js Admin application configuration.
278
+ *
279
+ * Response model (includes read-only fields).
280
+ */
281
+ export interface NextJSAdminConfig {
282
+ enabled?: boolean | null;
283
+ url?: string | null;
284
+ api_base_url?: string | null;
285
+ }
286
+
287
+ /**
288
+ * Django-Constance dynamic settings configuration.
289
+ *
290
+ * Response model (includes read-only fields).
291
+ */
292
+ export interface ConstanceConfig {
293
+ config?: Record<string, string> | null;
294
+ config_fieldsets?: Record<string, string> | null;
295
+ backend?: string | null;
296
+ database_prefix?: string | null;
297
+ database_cache_backend?: string | null;
298
+ additional_config?: Record<string, string> | null;
299
+ }
300
+
301
+ /**
302
+ * OpenAPI Client generation configuration.
303
+ *
304
+ * Response model (includes read-only fields).
305
+ */
306
+ export interface OpenAPIClientConfig {
307
+ enabled?: boolean | null;
308
+ output_dir?: string | null;
309
+ client_name?: string | null;
310
+ schema_url?: string | null;
311
+ generator?: string | null;
312
+ additional_properties?: Record<string, string> | null;
313
+ templates?: Array<string> | null;
314
+ global_properties?: Record<string, string> | null;
315
+ }
316
+
200
317
  /**
201
318
  * Config metadata.
202
319
  *
@@ -238,3 +355,19 @@ export interface RedisQueueConfig {
238
355
  socket_timeout?: number | null;
239
356
  }
240
357
 
358
+ /**
359
+ * Redis Queue schedule configuration.
360
+ *
361
+ * Response model (includes read-only fields).
362
+ */
363
+ export interface RQSchedule {
364
+ func?: string | null;
365
+ cron_string?: string | null;
366
+ queue?: string | null;
367
+ kwargs?: Record<string, string> | null;
368
+ args?: Array<string> | null;
369
+ meta?: Record<string, string> | null;
370
+ repeat?: number | null;
371
+ result_ttl?: number | null;
372
+ }
373
+
@@ -9,13 +9,13 @@ import * as Enums from "../enums";
9
9
  export interface DashboardOverview {
10
10
  /** Dashboard statistics cards */
11
11
  stat_cards: Array<StatCard>;
12
- system_health: Record<string, any>;
12
+ system_health: SystemHealth;
13
13
  /** Quick action buttons */
14
14
  quick_actions: Array<QuickAction>;
15
15
  /** Recent activity entries */
16
16
  recent_activity: Array<ActivityEntry>;
17
- system_metrics: Record<string, any>;
18
- user_statistics: Record<string, any>;
17
+ system_metrics: SystemMetrics;
18
+ user_statistics: UserStatistics;
19
19
  /** Application statistics */
20
20
  app_statistics?: Array<AppStatistics>;
21
21
  /** Data timestamp (ISO format) */
@@ -165,8 +165,7 @@ export interface UserStatistics {
165
165
  export interface AppStatistics {
166
166
  /** Application name */
167
167
  app_name: string;
168
- /** Application statistics */
169
- statistics: Record<string, any>;
168
+ statistics: AppStatisticsData;
170
169
  }
171
170
 
172
171
  /**
@@ -193,3 +192,17 @@ export interface SystemHealthItem {
193
192
  health_percentage?: number | null;
194
193
  }
195
194
 
195
+ /**
196
+ * Serializer for application statistics data.
197
+ *
198
+ * Response model (includes read-only fields).
199
+ */
200
+ export interface AppStatisticsData {
201
+ /** Human-readable app name */
202
+ name: string;
203
+ /** Total records count */
204
+ total_records: number;
205
+ /** Number of models */
206
+ model_count: number;
207
+ }
208
+
@@ -74,6 +74,6 @@ export interface ApiKeyStats {
74
74
  /** Total requests across all keys */
75
75
  total_requests: number;
76
76
  /** Count of keys by type */
77
- keys_by_type: Record<string, any>;
77
+ keys_by_type: Record<string, number>;
78
78
  }
79
79
 
@@ -4,11 +4,11 @@
4
4
  * Response model (includes read-only fields).
5
5
  */
6
6
  export interface DashboardCharts {
7
- server_uptime: Record<string, any>;
8
- request_volume: Record<string, any>;
9
- response_time: Record<string, any>;
10
- service_activity: Record<string, any>;
11
- error_distribution: Record<string, any>;
7
+ server_uptime: ServerUptimeChart;
8
+ request_volume: RequestVolumeChart;
9
+ response_time: ResponseTimeChart;
10
+ service_activity: ServiceActivityChart;
11
+ error_distribution: ErrorDistributionChart;
12
12
  /** Period in hours for all charts */
13
13
  period_hours: number;
14
14
  /** When data was generated */
@@ -4,9 +4,9 @@
4
4
  * Response model (includes read-only fields).
5
5
  */
6
6
  export interface GRPCConfig {
7
- server: Record<string, any>;
8
- framework: Record<string, any>;
9
- features: Record<string, any>;
7
+ server: GRPCServerConfig;
8
+ framework: GRPCFrameworkConfig;
9
+ features: GRPCFeatures;
10
10
  /** Number of registered services */
11
11
  registered_services: number;
12
12
  /** Total number of methods */
@@ -31,7 +31,7 @@ export interface GRPCServerInfo {
31
31
  services?: Array<GRPCServiceInfo>;
32
32
  /** Active interceptors */
33
33
  interceptors?: Array<GRPCInterceptorInfo>;
34
- stats: Record<string, any>;
34
+ stats: GRPCStats;
35
35
  }
36
36
 
37
37
  /**
@@ -52,7 +52,7 @@ export interface GRPCOverviewStats {
52
52
  p95_duration_ms: number | null;
53
53
  /** Statistics period in hours */
54
54
  period_hours: number;
55
- server: Record<string, any>;
55
+ server: GRPCServerStatus;
56
56
  }
57
57
 
58
58
  /**
@@ -45,7 +45,7 @@ export interface ServiceDetail {
45
45
  base_class?: string;
46
46
  /** Service methods */
47
47
  methods?: Array<MethodInfo>;
48
- stats: Record<string, any>;
48
+ stats: ServiceStats;
49
49
  /** Recent errors */
50
50
  recent_errors?: Array<RecentError>;
51
51
  }
@@ -160,7 +160,7 @@ export interface MethodSummary {
160
160
  request_type?: string;
161
161
  /** Response message type */
162
162
  response_type?: string;
163
- stats: Record<string, any>;
163
+ stats: MethodStats;
164
164
  }
165
165
 
166
166
  /**
@@ -9,9 +9,9 @@ export interface GRPCCallRequestRequest {
9
9
  /** Method name to call */
10
10
  method: string;
11
11
  /** Request payload */
12
- payload: Record<string, any>;
12
+ payload: Record<string, string>;
13
13
  /** Request metadata (headers) */
14
- metadata?: Record<string, any>;
14
+ metadata?: Record<string, string>;
15
15
  /** Request timeout in milliseconds */
16
16
  timeout_ms?: number;
17
17
  }
@@ -41,7 +41,7 @@ export interface GRPCCallResponse {
41
41
  /** Error message if failed */
42
42
  error?: string | null;
43
43
  /** Response metadata */
44
- metadata?: Record<string, any>;
44
+ metadata?: Record<string, string>;
45
45
  /** Response timestamp (ISO format) */
46
46
  timestamp: string;
47
47
  }
@@ -97,10 +97,10 @@ export interface GRPCExample {
97
97
  /** Method description */
98
98
  description: string;
99
99
  /** Example request payload */
100
- payload_example: Record<string, any>;
100
+ payload_example: Record<string, string>;
101
101
  /** Example expected response */
102
- expected_response: Record<string, any>;
102
+ expected_response: Record<string, string>;
103
103
  /** Example metadata (headers) */
104
- metadata_example?: Record<string, any>;
104
+ metadata_example?: Record<string, string>;
105
105
  }
106
106
 
@@ -403,7 +403,7 @@ export interface PublicDocument {
403
403
  title: string;
404
404
  /** Full document content */
405
405
  content: string;
406
- category: Record<string, any>;
406
+ category: PublicCategory;
407
407
  created_at: string;
408
408
  updated_at: string;
409
409
  }
@@ -483,7 +483,7 @@ export interface DocumentArchiveDetail {
483
483
  * `cancelled` - Cancelled */
484
484
  processing_status: Enums.DocumentArchiveDetailProcessingStatus;
485
485
  /** When processing completed */
486
- processed_at: string | null;
486
+ processed_at?: string | null;
487
487
  /** Processing time in milliseconds */
488
488
  processing_duration_ms: number;
489
489
  /** Error message if processing failed */
@@ -510,7 +510,7 @@ export interface DocumentArchiveDetail {
510
510
  updated_at: string;
511
511
  items: Array<ArchiveItem>;
512
512
  /** Get hierarchical file tree. */
513
- file_tree: Record<string, any>;
513
+ file_tree: Record<string, string>;
514
514
  /** Additional archive metadata */
515
515
  metadata?: string | null;
516
516
  }
@@ -563,7 +563,7 @@ export interface DocumentArchive {
563
563
  * `cancelled` - Cancelled */
564
564
  processing_status: Enums.DocumentArchiveProcessingStatus;
565
565
  /** When processing completed */
566
- processed_at: string | null;
566
+ processed_at?: string | null;
567
567
  /** Processing time in milliseconds */
568
568
  processing_duration_ms: number;
569
569
  /** Error message if processing failed */
@@ -811,7 +811,7 @@ export interface ArchiveItemChunk {
811
811
  /** Cost in USD for embedding generation */
812
812
  embedding_cost: number;
813
813
  /** Get context summary for display. */
814
- context_summary: Record<string, any>;
814
+ context_summary: Record<string, string>;
815
815
  created_at: string;
816
816
  }
817
817
 
@@ -844,7 +844,7 @@ export interface ArchiveItemChunkDetail {
844
844
  /** Cost in USD for embedding generation */
845
845
  embedding_cost: number;
846
846
  /** Get context summary for display. */
847
- context_summary: Record<string, any>;
847
+ context_summary: Record<string, string>;
848
848
  created_at: string;
849
849
  context_metadata: string;
850
850
  }
@@ -1040,7 +1040,7 @@ export interface PublicDocumentList {
1040
1040
  id: string;
1041
1041
  /** Document title */
1042
1042
  title: string;
1043
- category: Record<string, any>;
1043
+ category: PublicCategory;
1044
1044
  created_at: string;
1045
1045
  updated_at: string;
1046
1046
  }
@@ -1077,7 +1077,7 @@ export interface DocumentArchiveList {
1077
1077
  * `cancelled` - Cancelled */
1078
1078
  processing_status: Enums.DocumentArchiveListProcessingStatus;
1079
1079
  /** When processing completed */
1080
- processed_at: string | null;
1080
+ processed_at?: string | null;
1081
1081
  /** Total items in archive */
1082
1082
  total_items: number;
1083
1083
  /** Total chunks created */
@@ -1111,10 +1111,10 @@ export interface DocumentCategory {
1111
1111
  * Response model (includes read-only fields).
1112
1112
  */
1113
1113
  export interface ArchiveSearchResult {
1114
- chunk: Record<string, any>;
1114
+ chunk: ArchiveItemChunk;
1115
1115
  similarity_score: number;
1116
- context_summary: Record<string, any>;
1117
- archive_info: Record<string, any>;
1118
- item_info: Record<string, any>;
1116
+ context_summary: Record<string, string>;
1117
+ archive_info: Record<string, string>;
1118
+ item_info: Record<string, string>;
1119
1119
  }
1120
1120
 
@@ -43,6 +43,6 @@ export interface LeadSubmissionResponse {
43
43
  export interface LeadSubmissionError {
44
44
  success: boolean;
45
45
  error: string;
46
- details?: Record<string, any>;
46
+ details?: Record<string, string>;
47
47
  }
48
48
 
@@ -38,7 +38,7 @@ export interface NewsletterCampaign {
38
38
  * `failed` - Failed */
39
39
  status: Enums.NewsletterCampaignStatus;
40
40
  created_at: string;
41
- sent_at: string | null;
41
+ sent_at?: string | null;
42
42
  recipient_count: number;
43
43
  }
44
44
 
@@ -63,7 +63,7 @@ export interface NewsletterCampaign {
63
63
  * `failed` - Failed */
64
64
  status: Enums.NewsletterCampaignStatus;
65
65
  created_at: string;
66
- sent_at: string | null;
66
+ sent_at?: string | null;
67
67
  recipient_count: number;
68
68
  }
69
69
 
@@ -32,9 +32,9 @@ export interface PaginatedEmailLogList {
32
32
  */
33
33
  export interface EmailLog {
34
34
  id: string;
35
- user: number | null;
35
+ user?: number | null;
36
36
  user_email: string;
37
- newsletter: number | null;
37
+ newsletter?: number | null;
38
38
  newsletter_title: string;
39
39
  /** Comma-separated email addresses */
40
40
  recipient: string;
@@ -45,7 +45,7 @@ export interface EmailLog {
45
45
  * `failed` - Failed */
46
46
  status: Enums.EmailLogStatus;
47
47
  created_at: string;
48
- sent_at: string | null;
49
- error_message: string | null;
48
+ sent_at?: string | null;
49
+ error_message?: string | null;
50
50
  }
51
51
 
@@ -87,6 +87,6 @@ export interface NewsletterSubscription {
87
87
  email: string;
88
88
  is_active?: boolean;
89
89
  subscribed_at: string;
90
- unsubscribed_at: string | null;
90
+ unsubscribed_at?: string | null;
91
91
  }
92
92
 
@@ -14,7 +14,7 @@ export interface Balance {
14
14
  /** Total amount withdrawn (lifetime) */
15
15
  total_withdrawn: string;
16
16
  /** When the last transaction occurred */
17
- last_transaction_at: string | null;
17
+ last_transaction_at?: string | null;
18
18
  }
19
19
 
20
20
  /**
@@ -59,11 +59,11 @@ export interface PaymentDetail {
59
59
  currency_token: string;
60
60
  currency_network: string;
61
61
  /** Amount to pay in cryptocurrency */
62
- pay_amount: string | null;
62
+ pay_amount?: string | null;
63
63
  /** Actual amount received in cryptocurrency */
64
- actual_amount: string | null;
64
+ actual_amount?: string | null;
65
65
  /** Actual amount received in USD */
66
- actual_amount_usd: string | null;
66
+ actual_amount_usd?: string | null;
67
67
  /** Current payment status
68
68
 
69
69
  * `pending` - Pending
@@ -77,21 +77,21 @@ export interface PaymentDetail {
77
77
  status: Enums.PaymentDetailStatus;
78
78
  status_display: string;
79
79
  /** Cryptocurrency payment address */
80
- pay_address: string | null;
80
+ pay_address?: string | null;
81
81
  /** Get QR code URL. */
82
- qr_code_url: string | null;
82
+ qr_code_url?: string | null;
83
83
  /** Payment page URL (if provided by provider) */
84
- payment_url: string | null;
84
+ payment_url?: string | null;
85
85
  /** Blockchain transaction hash */
86
- transaction_hash: string | null;
86
+ transaction_hash?: string | null;
87
87
  /** Get blockchain explorer link. */
88
- explorer_link: string | null;
88
+ explorer_link?: string | null;
89
89
  /** Number of blockchain confirmations */
90
90
  confirmations_count: number;
91
91
  /** When this payment expires (typically 30 minutes) */
92
- expires_at: string | null;
92
+ expires_at?: string | null;
93
93
  /** When this payment was completed */
94
- completed_at: string | null;
94
+ completed_at?: string | null;
95
95
  /** When this record was created */
96
96
  created_at: string;
97
97
  is_completed: boolean;
@@ -130,6 +130,6 @@ export interface PaymentList {
130
130
  /** When this record was created */
131
131
  created_at: string;
132
132
  /** When this payment was completed */
133
- completed_at: string | null;
133
+ completed_at?: string | null;
134
134
  }
135
135
 
@@ -37,7 +37,7 @@ export interface JobDetail {
37
37
  /** Function arguments */
38
38
  args?: Array<string>;
39
39
  /** Function keyword arguments */
40
- kwargs?: Record<string, any>;
40
+ kwargs?: Record<string, string>;
41
41
  /** Job creation time */
42
42
  created_at: string;
43
43
  /** Job enqueue time */
@@ -63,7 +63,7 @@ export interface JobDetail {
63
63
  /** Exception info if failed */
64
64
  exc_info?: string | null;
65
65
  /** Job metadata */
66
- meta?: Record<string, any>;
66
+ meta?: Record<string, string>;
67
67
  /** List of dependency job IDs */
68
68
  dependency_ids?: Array<string>;
69
69
  }
@@ -8,7 +8,7 @@ export interface RQConfig {
8
8
  /** RQ enabled status */
9
9
  enabled: boolean;
10
10
  /** Configured queues */
11
- queues: Record<string, any>;
11
+ queues: Record<string, string>;
12
12
  /** Async mode enabled */
13
13
  async_mode?: boolean;
14
14
  /** Show admin link */
@@ -26,7 +26,7 @@ export interface QueueDetail {
26
26
  /** Timestamp of oldest job in queue */
27
27
  oldest_job_timestamp?: string | null;
28
28
  /** Redis connection parameters */
29
- connection_kwargs?: Record<string, any>;
29
+ connection_kwargs?: Record<string, string>;
30
30
  /** Queue is in async mode */
31
31
  is_async?: boolean;
32
32
  }
@@ -36,7 +36,7 @@ export interface ScheduleCreateRequest {
36
36
  /** Function arguments */
37
37
  args?: Array<string>;
38
38
  /** Function keyword arguments */
39
- kwargs?: Record<string, any>;
39
+ kwargs?: Record<string, string>;
40
40
  /** Queue name to schedule job in */
41
41
  queue_name?: string;
42
42
  /** Schedule job at specific time (ISO 8601) */
@@ -84,7 +84,7 @@ export interface ScheduledJob {
84
84
  /** Function arguments */
85
85
  args?: Array<string>;
86
86
  /** Function keyword arguments */
87
- kwargs?: Record<string, any>;
87
+ kwargs?: Record<string, string>;
88
88
  /** Queue name */
89
89
  queue_name: string;
90
90
  /** Next scheduled time */
@@ -104,6 +104,6 @@ export interface ScheduledJob {
104
104
  /** Job creation time */
105
105
  created_at?: string | null;
106
106
  /** Job metadata */
107
- meta?: Record<string, any>;
107
+ meta?: Record<string, string>;
108
108
  }
109
109