@djangocfg/api 1.2.24 → 1.2.26
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.
- package/dist/index.cjs +6859 -24179
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1243 -20744
- package/dist/index.d.ts +1243 -20744
- package/dist/index.mjs +6766 -24089
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/contexts/index.ts +0 -11
- package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +59 -2
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +175 -6
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +146 -5
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_auth.ts +77 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +117 -4
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +88 -19
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_activity.ts +1 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_api_zones.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_charts.ts +59 -2
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_commands.ts +59 -2
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_config.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_overview.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_statistics.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_system.ts +59 -2
- package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +59 -2
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_api_keys.ts +88 -3
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +204 -7
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_configuration.ts +59 -2
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +119 -21
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_proto_files.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_services.ts +92 -6
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +88 -3
- package/src/cfg/generated/_utils/fetchers/cfg__health.ts +59 -2
- package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +1422 -49
- package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +146 -5
- package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +88 -3
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +146 -5
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +59 -2
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +88 -3
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +175 -6
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_jobs.ts +146 -5
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_monitoring.ts +59 -2
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_queues.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_registries.ts +204 -7
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_schedules.ts +117 -4
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_testing.ts +117 -4
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_workers.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__support.ts +291 -10
- package/src/cfg/generated/_utils/fetchers/index.ts +1 -0
- package/src/cfg/generated/_utils/hooks/cfg__accounts.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__accounts__auth.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_admin_api.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_auth.ts +35 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_testing.ts +0 -21
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_activity.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_api_zones.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_charts.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_config.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_overview.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_statistics.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_system.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__endpoints.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_api_keys.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_charts.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_configuration.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_monitoring.ts +5 -21
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_services.ts +3 -3
- package/src/cfg/generated/_utils/hooks/cfg__health.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__leads__lead_submission.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__newsletter.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__newsletter__bulk_email.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__newsletter__logs.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__newsletter__newsletters.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__newsletter__testing.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__rq__rq_monitoring.ts +0 -1
- package/src/cfg/generated/_utils/hooks/cfg__rq__rq_workers.ts +0 -1
- package/src/cfg/generated/_utils/hooks/index.ts +1 -0
- package/src/cfg/generated/_utils/schemas/ApiKeyStats.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/AppStatistics.schema.ts +2 -1
- package/src/cfg/generated/_utils/schemas/AppStatisticsData.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/AxesConfig.schema.ts +35 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoChannelsResult.schema.ts +2 -1
- package/src/cfg/generated/_utils/schemas/CentrifugoMetrics.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceResult.schema.ts +2 -1
- package/src/cfg/generated/_utils/schemas/CentrifugoToken.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ConnectionTokenResponse.schema.ts +3 -2
- package/src/cfg/generated/_utils/schemas/ConstanceConfig.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/DjangoConfig.schema.ts +14 -7
- package/src/cfg/generated/_utils/schemas/DjangoRQConfig.schema.ts +2 -1
- package/src/cfg/generated/_utils/schemas/GRPCOverviewStats.schema.ts +2 -0
- package/src/cfg/generated/_utils/schemas/GRPCRegisteredService.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/GRPCServerConfig.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/GRPCServerStatus.schema.ts +34 -0
- package/src/cfg/generated/_utils/schemas/NextJSAdminConfig.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/NgrokConfig.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/OpenAPIClientConfig.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/PaginatedRecentRequestList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedServiceSummaryList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/RQSchedule.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/ServiceSummary.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/TelegramConfig.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/User.schema.ts +2 -0
- package/src/cfg/generated/_utils/schemas/index.ts +14 -3
- package/src/cfg/generated/cfg__accounts/models.ts +20 -3
- package/src/cfg/generated/cfg__accounts__user_profile/models.ts +19 -2
- package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +27 -17
- package/src/cfg/generated/cfg__centrifugo__centrifugo_auth/client.ts +26 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_auth/index.ts +2 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_auth/models.ts +16 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/client.ts +0 -10
- package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/models.ts +0 -26
- package/src/cfg/generated/cfg__dashboard__dashboard_api_zones/models.ts +1 -1
- package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +2 -2
- package/src/cfg/generated/cfg__dashboard__dashboard_config/models.ts +159 -26
- package/src/cfg/generated/cfg__dashboard__dashboard_overview/models.ts +18 -5
- package/src/cfg/generated/cfg__grpc__grpc_api_keys/models.ts +1 -1
- package/src/cfg/generated/cfg__grpc__grpc_charts/models.ts +5 -5
- package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +6 -6
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/client.ts +4 -25
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +99 -47
- package/src/cfg/generated/cfg__grpc__grpc_services/client.ts +6 -5
- package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +51 -2
- package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +6 -6
- package/src/cfg/generated/cfg__knowbase/models.ts +12 -12
- package/src/cfg/generated/cfg__leads__lead_submission/models.ts +1 -1
- package/src/cfg/generated/cfg__newsletter/models.ts +1 -1
- package/src/cfg/generated/cfg__newsletter__campaigns/models.ts +1 -1
- package/src/cfg/generated/cfg__newsletter__logs/models.ts +4 -4
- package/src/cfg/generated/cfg__newsletter__subscriptions/models.ts +1 -1
- package/src/cfg/generated/cfg__payments/models.ts +12 -12
- package/src/cfg/generated/cfg__rq__rq_jobs/models.ts +2 -2
- package/src/cfg/generated/cfg__rq__rq_monitoring/models.ts +1 -1
- package/src/cfg/generated/cfg__rq__rq_queues/models.ts +1 -1
- package/src/cfg/generated/cfg__rq__rq_schedules/models.ts +3 -3
- package/src/cfg/generated/cfg__rq__rq_testing/models.ts +2 -2
- package/src/cfg/generated/cfg__support/models.ts +2 -2
- package/src/cfg/generated/client.ts +3 -0
- package/src/cfg/generated/index.ts +17 -8
- package/src/cfg/generated/{schema.ts → schema.json} +19349 -18798
- package/src/index.ts +7 -2
- package/src/types/auth.ts +40 -0
- package/src/types/index.ts +7 -0
- package/src/cfg/contexts/AccountsContext.tsx +0 -205
- package/src/cfg/generated/_utils/schemas/ConnectionTokenRequestRequest.schema.ts +0 -20
- package/src/cfg/generated/_utils/schemas/MonitoringServiceStats.schema.ts +0 -24
- package/src/cfg/generated/_utils/schemas/ServiceList.schema.ts +0 -21
|
@@ -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,
|
|
12
|
+
payload: Record<string, string>;
|
|
13
13
|
/** Request metadata (headers) */
|
|
14
|
-
metadata?: Record<string,
|
|
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,
|
|
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,
|
|
100
|
+
payload_example: Record<string, string>;
|
|
101
101
|
/** Example expected response */
|
|
102
|
-
expected_response: Record<string,
|
|
102
|
+
expected_response: Record<string, string>;
|
|
103
103
|
/** Example metadata (headers) */
|
|
104
|
-
metadata_example?: Record<string,
|
|
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:
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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:
|
|
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
|
|
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:
|
|
1114
|
+
chunk: ArchiveItemChunk;
|
|
1115
1115
|
similarity_score: number;
|
|
1116
|
-
context_summary: Record<string,
|
|
1117
|
-
archive_info: Record<string,
|
|
1118
|
-
item_info: Record<string,
|
|
1116
|
+
context_summary: Record<string, string>;
|
|
1117
|
+
archive_info: Record<string, string>;
|
|
1118
|
+
item_info: Record<string, string>;
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
@@ -32,9 +32,9 @@ export interface PaginatedEmailLogList {
|
|
|
32
32
|
*/
|
|
33
33
|
export interface EmailLog {
|
|
34
34
|
id: string;
|
|
35
|
-
user
|
|
35
|
+
user?: number | null;
|
|
36
36
|
user_email: string;
|
|
37
|
-
newsletter
|
|
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
|
|
49
|
-
error_message
|
|
48
|
+
sent_at?: string | null;
|
|
49
|
+
error_message?: string | null;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -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
|
|
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
|
|
62
|
+
pay_amount?: string | null;
|
|
63
63
|
/** Actual amount received in cryptocurrency */
|
|
64
|
-
actual_amount
|
|
64
|
+
actual_amount?: string | null;
|
|
65
65
|
/** Actual amount received in USD */
|
|
66
|
-
actual_amount_usd
|
|
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
|
|
80
|
+
pay_address?: string | null;
|
|
81
81
|
/** Get QR code URL. */
|
|
82
|
-
qr_code_url
|
|
82
|
+
qr_code_url?: string | null;
|
|
83
83
|
/** Payment page URL (if provided by provider) */
|
|
84
|
-
payment_url
|
|
84
|
+
payment_url?: string | null;
|
|
85
85
|
/** Blockchain transaction hash */
|
|
86
|
-
transaction_hash
|
|
86
|
+
transaction_hash?: string | null;
|
|
87
87
|
/** Get blockchain explorer link. */
|
|
88
|
-
explorer_link
|
|
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
|
|
92
|
+
expires_at?: string | null;
|
|
93
93
|
/** When this payment was completed */
|
|
94
|
-
completed_at
|
|
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
|
|
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,
|
|
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,
|
|
66
|
+
meta?: Record<string, string>;
|
|
67
67
|
/** List of dependency job IDs */
|
|
68
68
|
dependency_ids?: Array<string>;
|
|
69
69
|
}
|
|
@@ -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,
|
|
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,
|
|
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,
|
|
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,
|
|
107
|
+
meta?: Record<string, string>;
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -15,7 +15,7 @@ export interface TestingActionResponse {
|
|
|
15
15
|
/** Number of items affected */
|
|
16
16
|
count?: number | null;
|
|
17
17
|
/** Additional metadata */
|
|
18
|
-
metadata?: Record<string,
|
|
18
|
+
metadata?: Record<string, string>;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -40,7 +40,7 @@ export interface RunDemoRequestRequest {
|
|
|
40
40
|
/** Task arguments */
|
|
41
41
|
args?: Array<string>;
|
|
42
42
|
/** Task keyword arguments */
|
|
43
|
-
kwargs?: Record<string,
|
|
43
|
+
kwargs?: Record<string, string>;
|
|
44
44
|
/** Job timeout in seconds */
|
|
45
45
|
timeout?: number | null;
|
|
46
46
|
}
|
|
@@ -107,7 +107,7 @@ export interface MessageCreate {
|
|
|
107
107
|
export interface Message {
|
|
108
108
|
uuid: string;
|
|
109
109
|
ticket: string;
|
|
110
|
-
sender:
|
|
110
|
+
sender: Sender;
|
|
111
111
|
/** Check if this message is from the ticket author. */
|
|
112
112
|
is_from_author: boolean;
|
|
113
113
|
text: string;
|
|
@@ -154,7 +154,7 @@ export interface Sender {
|
|
|
154
154
|
/** Get formatted username for display. */
|
|
155
155
|
display_username: string;
|
|
156
156
|
email: string;
|
|
157
|
-
avatar
|
|
157
|
+
avatar?: string | null;
|
|
158
158
|
/** Get user's initials for avatar fallback. */
|
|
159
159
|
initials: string;
|
|
160
160
|
/** Designates whether the user can log into this admin site. */
|
|
@@ -2,6 +2,7 @@ import { CfgAuth } from "./cfg__accounts__auth";
|
|
|
2
2
|
import { CfgBulkEmail } from "./cfg__newsletter__bulk_email";
|
|
3
3
|
import { CfgCampaigns } from "./cfg__newsletter__campaigns";
|
|
4
4
|
import { CfgCentrifugoAdminApi } from "./cfg__centrifugo__centrifugo_admin_api";
|
|
5
|
+
import { CfgCentrifugoAuth } from "./cfg__centrifugo__centrifugo_auth";
|
|
5
6
|
import { CfgCentrifugoMonitoring } from "./cfg__centrifugo__centrifugo_monitoring";
|
|
6
7
|
import { CfgCentrifugoTesting } from "./cfg__centrifugo__centrifugo_testing";
|
|
7
8
|
import { CfgDashboardApiZones } from "./cfg__dashboard__dashboard_api_zones";
|
|
@@ -73,6 +74,7 @@ export class APIClient {
|
|
|
73
74
|
public cfg_bulk_email: CfgBulkEmail;
|
|
74
75
|
public cfg_campaigns: CfgCampaigns;
|
|
75
76
|
public cfg_centrifugo_admin_api: CfgCentrifugoAdminApi;
|
|
77
|
+
public cfg_centrifugo_auth: CfgCentrifugoAuth;
|
|
76
78
|
public cfg_centrifugo_monitoring: CfgCentrifugoMonitoring;
|
|
77
79
|
public cfg_centrifugo_testing: CfgCentrifugoTesting;
|
|
78
80
|
public cfg_dashboard_api_zones: CfgDashboardApiZones;
|
|
@@ -139,6 +141,7 @@ export class APIClient {
|
|
|
139
141
|
this.cfg_bulk_email = new CfgBulkEmail(this);
|
|
140
142
|
this.cfg_campaigns = new CfgCampaigns(this);
|
|
141
143
|
this.cfg_centrifugo_admin_api = new CfgCentrifugoAdminApi(this);
|
|
144
|
+
this.cfg_centrifugo_auth = new CfgCentrifugoAuth(this);
|
|
142
145
|
this.cfg_centrifugo_monitoring = new CfgCentrifugoMonitoring(this);
|
|
143
146
|
this.cfg_centrifugo_testing = new CfgCentrifugoTesting(this);
|
|
144
147
|
this.cfg_dashboard_api_zones = new CfgDashboardApiZones(this);
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
import { APIClient } from "./client";
|
|
36
|
-
import { OPENAPI_SCHEMA } from "./schema";
|
|
37
36
|
import {
|
|
38
37
|
StorageAdapter,
|
|
39
38
|
LocalStorageAdapter,
|
|
@@ -47,6 +46,7 @@ import { CfgAuth } from "./cfg__accounts__auth/client";
|
|
|
47
46
|
import { CfgBulkEmail } from "./cfg__newsletter__bulk_email/client";
|
|
48
47
|
import { CfgCampaigns } from "./cfg__newsletter__campaigns/client";
|
|
49
48
|
import { CfgCentrifugoAdminApi } from "./cfg__centrifugo__centrifugo_admin_api/client";
|
|
49
|
+
import { CfgCentrifugoAuth } from "./cfg__centrifugo__centrifugo_auth/client";
|
|
50
50
|
import { CfgCentrifugoMonitoring } from "./cfg__centrifugo__centrifugo_monitoring/client";
|
|
51
51
|
import { CfgCentrifugoTesting } from "./cfg__centrifugo__centrifugo_testing/client";
|
|
52
52
|
import { CfgDashboardApiZones } from "./cfg__dashboard__dashboard_api_zones/client";
|
|
@@ -90,6 +90,7 @@ export * as CfgAuthTypes from "./cfg__accounts__auth/models";
|
|
|
90
90
|
export * as CfgBulkEmailTypes from "./cfg__newsletter__bulk_email/models";
|
|
91
91
|
export * as CfgCampaignsTypes from "./cfg__newsletter__campaigns/models";
|
|
92
92
|
export * as CfgCentrifugoAdminApiTypes from "./cfg__centrifugo__centrifugo_admin_api/models";
|
|
93
|
+
export * as CfgCentrifugoAuthTypes from "./cfg__centrifugo__centrifugo_auth/models";
|
|
93
94
|
export * as CfgCentrifugoMonitoringTypes from "./cfg__centrifugo__centrifugo_monitoring/models";
|
|
94
95
|
export * as CfgCentrifugoTestingTypes from "./cfg__centrifugo__centrifugo_testing/models";
|
|
95
96
|
export * as CfgDashboardApiZonesTypes from "./cfg__dashboard__dashboard_api_zones/models";
|
|
@@ -154,9 +155,6 @@ export * as Hooks from "./_utils/hooks";
|
|
|
154
155
|
// Re-export core client
|
|
155
156
|
export { APIClient };
|
|
156
157
|
|
|
157
|
-
// Re-export OpenAPI schema
|
|
158
|
-
export { OPENAPI_SCHEMA };
|
|
159
|
-
|
|
160
158
|
// Re-export storage adapters for convenience
|
|
161
159
|
export type { StorageAdapter };
|
|
162
160
|
export { LocalStorageAdapter, CookieStorageAdapter, MemoryStorageAdapter };
|
|
@@ -201,6 +199,7 @@ export class API {
|
|
|
201
199
|
public cfg_bulk_email!: CfgBulkEmail;
|
|
202
200
|
public cfg_campaigns!: CfgCampaigns;
|
|
203
201
|
public cfg_centrifugo_admin_api!: CfgCentrifugoAdminApi;
|
|
202
|
+
public cfg_centrifugo_auth!: CfgCentrifugoAuth;
|
|
204
203
|
public cfg_centrifugo_monitoring!: CfgCentrifugoMonitoring;
|
|
205
204
|
public cfg_centrifugo_testing!: CfgCentrifugoTesting;
|
|
206
205
|
public cfg_dashboard_api_zones!: CfgDashboardApiZones;
|
|
@@ -267,6 +266,7 @@ export class API {
|
|
|
267
266
|
this.cfg_bulk_email = this._client.cfg_bulk_email;
|
|
268
267
|
this.cfg_campaigns = this._client.cfg_campaigns;
|
|
269
268
|
this.cfg_centrifugo_admin_api = this._client.cfg_centrifugo_admin_api;
|
|
269
|
+
this.cfg_centrifugo_auth = this._client.cfg_centrifugo_auth;
|
|
270
270
|
this.cfg_centrifugo_monitoring = this._client.cfg_centrifugo_monitoring;
|
|
271
271
|
this.cfg_centrifugo_testing = this._client.cfg_centrifugo_testing;
|
|
272
272
|
this.cfg_dashboard_api_zones = this._client.cfg_dashboard_api_zones;
|
|
@@ -327,6 +327,7 @@ export class API {
|
|
|
327
327
|
this.cfg_bulk_email = this._client.cfg_bulk_email;
|
|
328
328
|
this.cfg_campaigns = this._client.cfg_campaigns;
|
|
329
329
|
this.cfg_centrifugo_admin_api = this._client.cfg_centrifugo_admin_api;
|
|
330
|
+
this.cfg_centrifugo_auth = this._client.cfg_centrifugo_auth;
|
|
330
331
|
this.cfg_centrifugo_monitoring = this._client.cfg_centrifugo_monitoring;
|
|
331
332
|
this.cfg_centrifugo_testing = this._client.cfg_centrifugo_testing;
|
|
332
333
|
this.cfg_dashboard_api_zones = this._client.cfg_dashboard_api_zones;
|
|
@@ -459,11 +460,19 @@ export class API {
|
|
|
459
460
|
}
|
|
460
461
|
|
|
461
462
|
/**
|
|
462
|
-
* Get OpenAPI schema
|
|
463
|
-
* @returns
|
|
463
|
+
* Get OpenAPI schema path
|
|
464
|
+
* @returns Path to the OpenAPI schema JSON file
|
|
465
|
+
*
|
|
466
|
+
* Note: The OpenAPI schema is available in the schema.json file.
|
|
467
|
+
* You can load it dynamically using:
|
|
468
|
+
* ```typescript
|
|
469
|
+
* const schema = await fetch('./schema.json').then(r => r.json());
|
|
470
|
+
* // or using fs in Node.js:
|
|
471
|
+
* // const schema = JSON.parse(fs.readFileSync('./schema.json', 'utf-8'));
|
|
472
|
+
* ```
|
|
464
473
|
*/
|
|
465
|
-
|
|
466
|
-
return
|
|
474
|
+
getSchemaPath(): string {
|
|
475
|
+
return './schema.json';
|
|
467
476
|
}
|
|
468
477
|
}
|
|
469
478
|
|