@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.
- package/dist/index.cjs +11030 -6472
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10395 -4022
- package/dist/index.d.ts +10395 -4022
- package/dist/index.mjs +11117 -6580
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +3 -3
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_config.ts +48 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +138 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_configuration.ts +63 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +11 -11
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_services.ts +77 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +79 -0
- package/src/cfg/generated/_utils/fetchers/index.ts +5 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +3 -3
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_config.ts +36 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_charts.ts +126 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_configuration.ts +51 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_monitoring.ts +9 -9
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_services.ts +65 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_testing.ts +71 -0
- package/src/cfg/generated/_utils/hooks/index.ts +5 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/CentrifugoConfig.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/{OverviewStats.schema.ts → CentrifugoOverviewStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/CentrifugoPublication.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/ConfigData.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/ConfigMeta.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ConfigValidation.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/DRFConfig.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/DashboardCharts.schema.ts +30 -0
- package/src/cfg/generated/_utils/schemas/DatabaseConfig.schema.ts +31 -0
- package/src/cfg/generated/_utils/schemas/DjangoConfig.schema.ts +86 -0
- package/src/cfg/generated/_utils/schemas/DjangoRQConfig.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/EmailConfig.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/ErrorDistributionChart.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ErrorDistributionChartSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ErrorDistributionDataPoint.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/GRPCCallRequestRequest.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/GRPCCallResponse.schema.ts +29 -0
- package/src/cfg/generated/_utils/schemas/GRPCConfig.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/GRPCConfigDashboard.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/GRPCExampleSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/GRPCExamplesList.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/GRPCFeaturesSerializer.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/GRPCFrameworkConfigSerializer.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/GRPCHealthCheck.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/GRPCInterceptorInfoSerializer.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/GRPCOverviewStats.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/GRPCServerConfigSerializer.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/GRPCServerInfo.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/GRPCServiceInfoSerializer.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/GRPCStatsSerializer.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/GRPCTestLog.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/JWTConfig.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/MethodInfoSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/MethodSummarySerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/MonitoringServiceStatsSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaymentsConfig.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/PaymentsNowPayments.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/RecentErrorSerializer.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/RecentRequest.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/RedisQueueConfig.schema.ts +29 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeChartSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeDataPoint.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/ResponseTimeChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ResponseTimeChartSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ResponseTimeDataPoint.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerLifecycleChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerLifecycleEvent.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServerUptimeChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerUptimeChartSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerUptimeDataPoint.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityChart.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityChartSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityDataPoint.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ServiceDetail.schema.ts +31 -0
- package/src/cfg/generated/_utils/schemas/ServiceList.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/ServiceMethods.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ServiceStatsSerializer.schema.ts +8 -8
- package/src/cfg/generated/_utils/schemas/SpectacularConfig.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/index.ts +56 -2
- package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +5 -5
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +4 -4
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +1 -1
- package/src/cfg/generated/cfg__dashboard__dashboard_config/client.ts +25 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_config/index.ts +2 -0
- package/src/cfg/generated/cfg__dashboard__dashboard_config/models.ts +240 -0
- package/src/cfg/generated/cfg__endpoints/client.ts +1 -1
- package/src/cfg/generated/cfg__grpc__grpc_charts/client.ts +162 -0
- package/src/cfg/generated/cfg__grpc__grpc_charts/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_charts/models.ts +335 -0
- package/src/cfg/generated/cfg__grpc__grpc_configuration/client.ts +35 -0
- package/src/cfg/generated/cfg__grpc__grpc_configuration/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +128 -0
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/client.ts +12 -11
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +45 -31
- package/src/cfg/generated/cfg__grpc__grpc_services/client.ts +55 -0
- package/src/cfg/generated/cfg__grpc__grpc_services/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +138 -0
- package/src/cfg/generated/cfg__grpc__grpc_testing/client.ts +67 -0
- package/src/cfg/generated/cfg__grpc__grpc_testing/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +106 -0
- package/src/cfg/generated/cfg__payments/client.ts +1 -1
- package/src/cfg/generated/client.ts +15 -0
- package/src/cfg/generated/index.ts +25 -0
- package/src/cfg/generated/schema.ts +8264 -4968
- package/src/cfg/generated/_utils/schemas/RecentRequests.schema.ts +0 -23
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as Models from "./models";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API endpoints for Grpc Services.
|
|
6
|
+
*/
|
|
7
|
+
export class CfgGrpcServices {
|
|
8
|
+
private client: any;
|
|
9
|
+
|
|
10
|
+
constructor(client: any) {
|
|
11
|
+
this.client = client;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async list(hours?: number): Promise<any>;
|
|
15
|
+
async list(params?: { hours?: number }): Promise<any>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* List all services
|
|
19
|
+
*
|
|
20
|
+
* Returns list of all registered gRPC services with basic statistics.
|
|
21
|
+
*/
|
|
22
|
+
async list(...args: any[]): Promise<any> {
|
|
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/services/", { params });
|
|
32
|
+
return response;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Get service details
|
|
37
|
+
*
|
|
38
|
+
* Returns detailed information about a specific gRPC service.
|
|
39
|
+
*/
|
|
40
|
+
async retrieve(id: string, pk: string): Promise<Models.ServiceDetail> {
|
|
41
|
+
const response = await this.client.request('GET', `/cfg/grpc/services/${id}/`);
|
|
42
|
+
return response;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Get service methods
|
|
47
|
+
*
|
|
48
|
+
* Returns list of methods for a specific service with statistics.
|
|
49
|
+
*/
|
|
50
|
+
async methodsRetrieve(id: string, pk: string): Promise<Models.ServiceMethods> {
|
|
51
|
+
const response = await this.client.request('GET', `/cfg/grpc/services/${id}/methods/`);
|
|
52
|
+
return response;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detailed information about a service.
|
|
3
|
+
*
|
|
4
|
+
* Response model (includes read-only fields).
|
|
5
|
+
*/
|
|
6
|
+
export interface ServiceDetail {
|
|
7
|
+
/** Service name */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Full service name with package */
|
|
10
|
+
full_name: string;
|
|
11
|
+
/** Package name */
|
|
12
|
+
package: string;
|
|
13
|
+
/** Service description from docstring */
|
|
14
|
+
description?: string;
|
|
15
|
+
/** Path to service file */
|
|
16
|
+
file_path?: string;
|
|
17
|
+
/** Service class name */
|
|
18
|
+
class_name: string;
|
|
19
|
+
/** Base class name */
|
|
20
|
+
base_class?: string;
|
|
21
|
+
/** Service methods */
|
|
22
|
+
methods?: Array<MethodInfoSerializer>;
|
|
23
|
+
stats: Record<string, any>;
|
|
24
|
+
/** Recent errors */
|
|
25
|
+
recent_errors?: Array<RecentErrorSerializer>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* List of methods for a service.
|
|
30
|
+
*
|
|
31
|
+
* Response model (includes read-only fields).
|
|
32
|
+
*/
|
|
33
|
+
export interface ServiceMethods {
|
|
34
|
+
/** Service name */
|
|
35
|
+
service_name: string;
|
|
36
|
+
/** List of methods */
|
|
37
|
+
methods?: Array<MethodSummarySerializer>;
|
|
38
|
+
/** Total number of methods */
|
|
39
|
+
total_methods: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Information about a service method.
|
|
44
|
+
*
|
|
45
|
+
* Response model (includes read-only fields).
|
|
46
|
+
*/
|
|
47
|
+
export interface MethodInfoSerializer {
|
|
48
|
+
/** Method name */
|
|
49
|
+
name: string;
|
|
50
|
+
/** Full method name (/service/method) */
|
|
51
|
+
full_name: string;
|
|
52
|
+
/** Request message type */
|
|
53
|
+
request_type?: string;
|
|
54
|
+
/** Response message type */
|
|
55
|
+
response_type?: string;
|
|
56
|
+
/** Whether method uses streaming */
|
|
57
|
+
streaming?: boolean;
|
|
58
|
+
/** Whether authentication is required */
|
|
59
|
+
auth_required?: boolean;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Service statistics.
|
|
64
|
+
*
|
|
65
|
+
* Response model (includes read-only fields).
|
|
66
|
+
*/
|
|
67
|
+
export interface ServiceStatsSerializer {
|
|
68
|
+
/** Total requests */
|
|
69
|
+
total_requests?: number;
|
|
70
|
+
/** Successful requests */
|
|
71
|
+
successful?: number;
|
|
72
|
+
/** Failed requests */
|
|
73
|
+
errors?: number;
|
|
74
|
+
/** Success rate percentage */
|
|
75
|
+
success_rate?: number;
|
|
76
|
+
/** Average duration in milliseconds */
|
|
77
|
+
avg_duration_ms?: number;
|
|
78
|
+
/** Requests in last 24 hours */
|
|
79
|
+
last_24h_requests?: number;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Recent error information.
|
|
84
|
+
*
|
|
85
|
+
* Response model (includes read-only fields).
|
|
86
|
+
*/
|
|
87
|
+
export interface RecentErrorSerializer {
|
|
88
|
+
/** Method name where error occurred */
|
|
89
|
+
method: string;
|
|
90
|
+
/** Error message */
|
|
91
|
+
error_message: string;
|
|
92
|
+
/** gRPC status code */
|
|
93
|
+
grpc_status_code: string;
|
|
94
|
+
/** When error occurred (ISO timestamp) */
|
|
95
|
+
occurred_at: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Summary information for a method.
|
|
100
|
+
*
|
|
101
|
+
* Response model (includes read-only fields).
|
|
102
|
+
*/
|
|
103
|
+
export interface MethodSummarySerializer {
|
|
104
|
+
/** Method name */
|
|
105
|
+
name: string;
|
|
106
|
+
/** Full method path */
|
|
107
|
+
full_name: string;
|
|
108
|
+
/** Service name */
|
|
109
|
+
service_name: string;
|
|
110
|
+
/** Request message type */
|
|
111
|
+
request_type?: string;
|
|
112
|
+
/** Response message type */
|
|
113
|
+
response_type?: string;
|
|
114
|
+
stats: Record<string, any>;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Statistics for a single gRPC method.
|
|
119
|
+
*
|
|
120
|
+
* Response model (includes read-only fields).
|
|
121
|
+
*/
|
|
122
|
+
export interface MethodStatsSerializer {
|
|
123
|
+
/** Method name */
|
|
124
|
+
method_name: string;
|
|
125
|
+
/** Service name */
|
|
126
|
+
service_name: string;
|
|
127
|
+
/** Total requests */
|
|
128
|
+
total: number;
|
|
129
|
+
/** Successful requests */
|
|
130
|
+
successful: number;
|
|
131
|
+
/** Error requests */
|
|
132
|
+
errors: number;
|
|
133
|
+
/** Average duration */
|
|
134
|
+
avg_duration_ms: number;
|
|
135
|
+
/** Last activity timestamp */
|
|
136
|
+
last_activity_at: string | null;
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as Models from "./models";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API endpoints for Grpc Testing.
|
|
6
|
+
*/
|
|
7
|
+
export class CfgGrpcTesting {
|
|
8
|
+
private client: any;
|
|
9
|
+
|
|
10
|
+
constructor(client: any) {
|
|
11
|
+
this.client = client;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Call gRPC method
|
|
16
|
+
*
|
|
17
|
+
* Interactive gRPC method calling using dynamic invocation. Uses gRPC
|
|
18
|
+
* Reflection API to discover and call methods without compiled stubs.
|
|
19
|
+
*/
|
|
20
|
+
async grpcTestCallCreate(data: Models.GRPCCallRequestRequest): Promise<Models.GRPCCallResponse> {
|
|
21
|
+
const response = await this.client.request('POST', "/cfg/grpc/test/call/", { body: data });
|
|
22
|
+
return response;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async grpcTestExamplesRetrieve(method?: string, service?: string): Promise<Models.GRPCExamplesList[]>;
|
|
26
|
+
async grpcTestExamplesRetrieve(params?: { method?: string; service?: string }): Promise<Models.GRPCExamplesList[]>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get example payloads
|
|
30
|
+
*
|
|
31
|
+
* Returns example payloads for testing gRPC methods.
|
|
32
|
+
*/
|
|
33
|
+
async grpcTestExamplesRetrieve(...args: any[]): Promise<Models.GRPCExamplesList[]> {
|
|
34
|
+
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
35
|
+
|
|
36
|
+
let params;
|
|
37
|
+
if (isParamsObject) {
|
|
38
|
+
params = args[0];
|
|
39
|
+
} else {
|
|
40
|
+
params = { method: args[0], service: args[1] };
|
|
41
|
+
}
|
|
42
|
+
const response = await this.client.request('GET', "/cfg/grpc/test/examples/", { params });
|
|
43
|
+
return (response as any).results || response;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async grpcTestLogsRetrieve(method?: string, service?: string, status?: string): Promise<Models.GRPCTestLog>;
|
|
47
|
+
async grpcTestLogsRetrieve(params?: { method?: string; service?: string; status?: string }): Promise<Models.GRPCTestLog>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Get test logs
|
|
51
|
+
*
|
|
52
|
+
* Returns logs from test gRPC calls. Uses standard DRF pagination.
|
|
53
|
+
*/
|
|
54
|
+
async grpcTestLogsRetrieve(...args: any[]): Promise<Models.GRPCTestLog> {
|
|
55
|
+
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
56
|
+
|
|
57
|
+
let params;
|
|
58
|
+
if (isParamsObject) {
|
|
59
|
+
params = args[0];
|
|
60
|
+
} else {
|
|
61
|
+
params = { method: args[0], service: args[1], status: args[2] };
|
|
62
|
+
}
|
|
63
|
+
const response = await this.client.request('GET', "/cfg/grpc/test/logs/", { params });
|
|
64
|
+
return response;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request to call a gRPC method (for future implementation).
|
|
3
|
+
*
|
|
4
|
+
* Request model (no read-only fields).
|
|
5
|
+
*/
|
|
6
|
+
export interface GRPCCallRequestRequest {
|
|
7
|
+
/** Service name to call */
|
|
8
|
+
service: string;
|
|
9
|
+
/** Method name to call */
|
|
10
|
+
method: string;
|
|
11
|
+
/** Request payload */
|
|
12
|
+
payload: Record<string, any>;
|
|
13
|
+
/** Request metadata (headers) */
|
|
14
|
+
metadata?: Record<string, any>;
|
|
15
|
+
/** Request timeout in milliseconds */
|
|
16
|
+
timeout_ms?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Response from calling a gRPC method.
|
|
21
|
+
*
|
|
22
|
+
* Response model (includes read-only fields).
|
|
23
|
+
*/
|
|
24
|
+
export interface GRPCCallResponse {
|
|
25
|
+
/** Whether call was successful */
|
|
26
|
+
success: boolean;
|
|
27
|
+
/** Request ID for tracking */
|
|
28
|
+
request_id: string;
|
|
29
|
+
/** Service name */
|
|
30
|
+
service: string;
|
|
31
|
+
/** Method name */
|
|
32
|
+
method: string;
|
|
33
|
+
/** Request status */
|
|
34
|
+
status: string;
|
|
35
|
+
/** gRPC status code */
|
|
36
|
+
grpc_status_code: string;
|
|
37
|
+
/** Call duration in milliseconds */
|
|
38
|
+
duration_ms: number;
|
|
39
|
+
/** Response data if successful (JSON string) */
|
|
40
|
+
response?: string | null;
|
|
41
|
+
/** Error message if failed */
|
|
42
|
+
error?: string | null;
|
|
43
|
+
/** Response metadata */
|
|
44
|
+
metadata?: Record<string, any>;
|
|
45
|
+
/** Response timestamp (ISO format) */
|
|
46
|
+
timestamp: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* List of examples response.
|
|
51
|
+
*
|
|
52
|
+
* Response model (includes read-only fields).
|
|
53
|
+
*/
|
|
54
|
+
export interface GRPCExamplesList {
|
|
55
|
+
/** List of examples */
|
|
56
|
+
examples?: Array<GRPCExampleSerializer>;
|
|
57
|
+
/** Total number of examples */
|
|
58
|
+
total_examples: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Single test log entry.
|
|
63
|
+
*
|
|
64
|
+
* Response model (includes read-only fields).
|
|
65
|
+
*/
|
|
66
|
+
export interface GRPCTestLog {
|
|
67
|
+
/** Request ID */
|
|
68
|
+
request_id: string;
|
|
69
|
+
/** Service name */
|
|
70
|
+
service: string;
|
|
71
|
+
/** Method name */
|
|
72
|
+
method: string;
|
|
73
|
+
/** Request status (success, error, etc.) */
|
|
74
|
+
status: string;
|
|
75
|
+
/** gRPC status code if available */
|
|
76
|
+
grpc_status_code?: string | null;
|
|
77
|
+
/** Error message if failed */
|
|
78
|
+
error_message?: string | null;
|
|
79
|
+
/** Duration in milliseconds */
|
|
80
|
+
duration_ms?: number | null;
|
|
81
|
+
/** Request timestamp (ISO format) */
|
|
82
|
+
created_at: string;
|
|
83
|
+
/** User who made the request */
|
|
84
|
+
user?: string | null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Example payload for a gRPC method.
|
|
89
|
+
*
|
|
90
|
+
* Response model (includes read-only fields).
|
|
91
|
+
*/
|
|
92
|
+
export interface GRPCExampleSerializer {
|
|
93
|
+
/** Service name */
|
|
94
|
+
service: string;
|
|
95
|
+
/** Method name */
|
|
96
|
+
method: string;
|
|
97
|
+
/** Method description */
|
|
98
|
+
description: string;
|
|
99
|
+
/** Example request payload */
|
|
100
|
+
payload_example: Record<string, any>;
|
|
101
|
+
/** Example expected response */
|
|
102
|
+
expected_response: Record<string, any>;
|
|
103
|
+
/** Example metadata (headers) */
|
|
104
|
+
metadata_example?: Record<string, any>;
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -81,7 +81,7 @@ export class CfgPayments {
|
|
|
81
81
|
*/
|
|
82
82
|
async paymentsStatusRetrieve(id: string): Promise<Models.PaymentList[]> {
|
|
83
83
|
const response = await this.client.request('GET', `/cfg/payments/payments/${id}/status/`);
|
|
84
|
-
return (response as any).results ||
|
|
84
|
+
return (response as any).results || response;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -8,6 +8,7 @@ import { CfgDashboardApiZones } from "./cfg__dashboard__dashboard_api_zones";
|
|
|
8
8
|
import { CfgDashboardActivity } from "./cfg__dashboard__dashboard_activity";
|
|
9
9
|
import { CfgDashboardCharts } from "./cfg__dashboard__dashboard_charts";
|
|
10
10
|
import { CfgDashboardCommands } from "./cfg__dashboard__dashboard_commands";
|
|
11
|
+
import { CfgDashboardConfig } from "./cfg__dashboard__dashboard_config";
|
|
11
12
|
import { CfgDashboardOverview } from "./cfg__dashboard__dashboard_overview";
|
|
12
13
|
import { CfgDashboardStatistics } from "./cfg__dashboard__dashboard_statistics";
|
|
13
14
|
import { CfgDashboardSystem } from "./cfg__dashboard__dashboard_system";
|
|
@@ -27,7 +28,11 @@ import { CfgUserProfile } from "./cfg__accounts__user_profile";
|
|
|
27
28
|
import { CfgAccounts } from "./cfg__accounts";
|
|
28
29
|
import { CfgCentrifugo } from "./cfg__centrifugo";
|
|
29
30
|
import { CfgEndpoints } from "./cfg__endpoints";
|
|
31
|
+
import { CfgGrpcCharts } from "./cfg__grpc__grpc_charts";
|
|
32
|
+
import { CfgGrpcConfiguration } from "./cfg__grpc__grpc_configuration";
|
|
30
33
|
import { CfgGrpcMonitoring } from "./cfg__grpc__grpc_monitoring";
|
|
34
|
+
import { CfgGrpcServices } from "./cfg__grpc__grpc_services";
|
|
35
|
+
import { CfgGrpcTesting } from "./cfg__grpc__grpc_testing";
|
|
31
36
|
import { CfgHealth } from "./cfg__health";
|
|
32
37
|
import { CfgKnowbase } from "./cfg__knowbase";
|
|
33
38
|
import { CfgLeads } from "./cfg__leads";
|
|
@@ -72,6 +77,7 @@ export class APIClient {
|
|
|
72
77
|
public cfg_dashboard_activity: CfgDashboardActivity;
|
|
73
78
|
public cfg_dashboard_charts: CfgDashboardCharts;
|
|
74
79
|
public cfg_dashboard_commands: CfgDashboardCommands;
|
|
80
|
+
public cfg_dashboard_config: CfgDashboardConfig;
|
|
75
81
|
public cfg_dashboard_overview: CfgDashboardOverview;
|
|
76
82
|
public cfg_dashboard_statistics: CfgDashboardStatistics;
|
|
77
83
|
public cfg_dashboard_system: CfgDashboardSystem;
|
|
@@ -91,7 +97,11 @@ export class APIClient {
|
|
|
91
97
|
public cfg_accounts: CfgAccounts;
|
|
92
98
|
public cfg_centrifugo: CfgCentrifugo;
|
|
93
99
|
public cfg_endpoints: CfgEndpoints;
|
|
100
|
+
public cfg_grpc_charts: CfgGrpcCharts;
|
|
101
|
+
public cfg_grpc_configuration: CfgGrpcConfiguration;
|
|
94
102
|
public cfg_grpc_monitoring: CfgGrpcMonitoring;
|
|
103
|
+
public cfg_grpc_services: CfgGrpcServices;
|
|
104
|
+
public cfg_grpc_testing: CfgGrpcTesting;
|
|
95
105
|
public cfg_health: CfgHealth;
|
|
96
106
|
public cfg_knowbase: CfgKnowbase;
|
|
97
107
|
public cfg_leads: CfgLeads;
|
|
@@ -131,6 +141,7 @@ export class APIClient {
|
|
|
131
141
|
this.cfg_dashboard_activity = new CfgDashboardActivity(this);
|
|
132
142
|
this.cfg_dashboard_charts = new CfgDashboardCharts(this);
|
|
133
143
|
this.cfg_dashboard_commands = new CfgDashboardCommands(this);
|
|
144
|
+
this.cfg_dashboard_config = new CfgDashboardConfig(this);
|
|
134
145
|
this.cfg_dashboard_overview = new CfgDashboardOverview(this);
|
|
135
146
|
this.cfg_dashboard_statistics = new CfgDashboardStatistics(this);
|
|
136
147
|
this.cfg_dashboard_system = new CfgDashboardSystem(this);
|
|
@@ -150,7 +161,11 @@ export class APIClient {
|
|
|
150
161
|
this.cfg_accounts = new CfgAccounts(this);
|
|
151
162
|
this.cfg_centrifugo = new CfgCentrifugo(this);
|
|
152
163
|
this.cfg_endpoints = new CfgEndpoints(this);
|
|
164
|
+
this.cfg_grpc_charts = new CfgGrpcCharts(this);
|
|
165
|
+
this.cfg_grpc_configuration = new CfgGrpcConfiguration(this);
|
|
153
166
|
this.cfg_grpc_monitoring = new CfgGrpcMonitoring(this);
|
|
167
|
+
this.cfg_grpc_services = new CfgGrpcServices(this);
|
|
168
|
+
this.cfg_grpc_testing = new CfgGrpcTesting(this);
|
|
154
169
|
this.cfg_health = new CfgHealth(this);
|
|
155
170
|
this.cfg_knowbase = new CfgKnowbase(this);
|
|
156
171
|
this.cfg_leads = new CfgLeads(this);
|
|
@@ -53,6 +53,7 @@ import { CfgDashboardApiZones } from "./cfg__dashboard__dashboard_api_zones/clie
|
|
|
53
53
|
import { CfgDashboardActivity } from "./cfg__dashboard__dashboard_activity/client";
|
|
54
54
|
import { CfgDashboardCharts } from "./cfg__dashboard__dashboard_charts/client";
|
|
55
55
|
import { CfgDashboardCommands } from "./cfg__dashboard__dashboard_commands/client";
|
|
56
|
+
import { CfgDashboardConfig } from "./cfg__dashboard__dashboard_config/client";
|
|
56
57
|
import { CfgDashboardOverview } from "./cfg__dashboard__dashboard_overview/client";
|
|
57
58
|
import { CfgDashboardStatistics } from "./cfg__dashboard__dashboard_statistics/client";
|
|
58
59
|
import { CfgDashboardSystem } from "./cfg__dashboard__dashboard_system/client";
|
|
@@ -72,7 +73,11 @@ import { CfgUserProfile } from "./cfg__accounts__user_profile/client";
|
|
|
72
73
|
import { CfgAccounts } from "./cfg__accounts/client";
|
|
73
74
|
import { CfgCentrifugo } from "./cfg__centrifugo/client";
|
|
74
75
|
import { CfgEndpoints } from "./cfg__endpoints/client";
|
|
76
|
+
import { CfgGrpcCharts } from "./cfg__grpc__grpc_charts/client";
|
|
77
|
+
import { CfgGrpcConfiguration } from "./cfg__grpc__grpc_configuration/client";
|
|
75
78
|
import { CfgGrpcMonitoring } from "./cfg__grpc__grpc_monitoring/client";
|
|
79
|
+
import { CfgGrpcServices } from "./cfg__grpc__grpc_services/client";
|
|
80
|
+
import { CfgGrpcTesting } from "./cfg__grpc__grpc_testing/client";
|
|
76
81
|
import { CfgHealth } from "./cfg__health/client";
|
|
77
82
|
import { CfgKnowbase } from "./cfg__knowbase/client";
|
|
78
83
|
import { CfgLeads } from "./cfg__leads/client";
|
|
@@ -89,6 +94,7 @@ export * as CfgDashboardApiZonesTypes from "./cfg__dashboard__dashboard_api_zone
|
|
|
89
94
|
export * as CfgDashboardActivityTypes from "./cfg__dashboard__dashboard_activity/models";
|
|
90
95
|
export * as CfgDashboardChartsTypes from "./cfg__dashboard__dashboard_charts/models";
|
|
91
96
|
export * as CfgDashboardCommandsTypes from "./cfg__dashboard__dashboard_commands/models";
|
|
97
|
+
export * as CfgDashboardConfigTypes from "./cfg__dashboard__dashboard_config/models";
|
|
92
98
|
export * as CfgDashboardOverviewTypes from "./cfg__dashboard__dashboard_overview/models";
|
|
93
99
|
export * as CfgDashboardStatisticsTypes from "./cfg__dashboard__dashboard_statistics/models";
|
|
94
100
|
export * as CfgDashboardSystemTypes from "./cfg__dashboard__dashboard_system/models";
|
|
@@ -108,7 +114,11 @@ export * as CfgUserProfileTypes from "./cfg__accounts__user_profile/models";
|
|
|
108
114
|
export * as CfgAccountsTypes from "./cfg__accounts/models";
|
|
109
115
|
export * as CfgCentrifugoTypes from "./cfg__centrifugo/models";
|
|
110
116
|
export * as CfgEndpointsTypes from "./cfg__endpoints/models";
|
|
117
|
+
export * as CfgGrpcChartsTypes from "./cfg__grpc__grpc_charts/models";
|
|
118
|
+
export * as CfgGrpcConfigurationTypes from "./cfg__grpc__grpc_configuration/models";
|
|
111
119
|
export * as CfgGrpcMonitoringTypes from "./cfg__grpc__grpc_monitoring/models";
|
|
120
|
+
export * as CfgGrpcServicesTypes from "./cfg__grpc__grpc_services/models";
|
|
121
|
+
export * as CfgGrpcTestingTypes from "./cfg__grpc__grpc_testing/models";
|
|
112
122
|
export * as CfgHealthTypes from "./cfg__health/models";
|
|
113
123
|
export * as CfgKnowbaseTypes from "./cfg__knowbase/models";
|
|
114
124
|
export * as CfgLeadsTypes from "./cfg__leads/models";
|
|
@@ -193,6 +203,7 @@ export class API {
|
|
|
193
203
|
public cfg_dashboard_activity!: CfgDashboardActivity;
|
|
194
204
|
public cfg_dashboard_charts!: CfgDashboardCharts;
|
|
195
205
|
public cfg_dashboard_commands!: CfgDashboardCommands;
|
|
206
|
+
public cfg_dashboard_config!: CfgDashboardConfig;
|
|
196
207
|
public cfg_dashboard_overview!: CfgDashboardOverview;
|
|
197
208
|
public cfg_dashboard_statistics!: CfgDashboardStatistics;
|
|
198
209
|
public cfg_dashboard_system!: CfgDashboardSystem;
|
|
@@ -212,7 +223,11 @@ export class API {
|
|
|
212
223
|
public cfg_accounts!: CfgAccounts;
|
|
213
224
|
public cfg_centrifugo!: CfgCentrifugo;
|
|
214
225
|
public cfg_endpoints!: CfgEndpoints;
|
|
226
|
+
public cfg_grpc_charts!: CfgGrpcCharts;
|
|
227
|
+
public cfg_grpc_configuration!: CfgGrpcConfiguration;
|
|
215
228
|
public cfg_grpc_monitoring!: CfgGrpcMonitoring;
|
|
229
|
+
public cfg_grpc_services!: CfgGrpcServices;
|
|
230
|
+
public cfg_grpc_testing!: CfgGrpcTesting;
|
|
216
231
|
public cfg_health!: CfgHealth;
|
|
217
232
|
public cfg_knowbase!: CfgKnowbase;
|
|
218
233
|
public cfg_leads!: CfgLeads;
|
|
@@ -252,6 +267,7 @@ export class API {
|
|
|
252
267
|
this.cfg_dashboard_activity = this._client.cfg_dashboard_activity;
|
|
253
268
|
this.cfg_dashboard_charts = this._client.cfg_dashboard_charts;
|
|
254
269
|
this.cfg_dashboard_commands = this._client.cfg_dashboard_commands;
|
|
270
|
+
this.cfg_dashboard_config = this._client.cfg_dashboard_config;
|
|
255
271
|
this.cfg_dashboard_overview = this._client.cfg_dashboard_overview;
|
|
256
272
|
this.cfg_dashboard_statistics = this._client.cfg_dashboard_statistics;
|
|
257
273
|
this.cfg_dashboard_system = this._client.cfg_dashboard_system;
|
|
@@ -271,7 +287,11 @@ export class API {
|
|
|
271
287
|
this.cfg_accounts = this._client.cfg_accounts;
|
|
272
288
|
this.cfg_centrifugo = this._client.cfg_centrifugo;
|
|
273
289
|
this.cfg_endpoints = this._client.cfg_endpoints;
|
|
290
|
+
this.cfg_grpc_charts = this._client.cfg_grpc_charts;
|
|
291
|
+
this.cfg_grpc_configuration = this._client.cfg_grpc_configuration;
|
|
274
292
|
this.cfg_grpc_monitoring = this._client.cfg_grpc_monitoring;
|
|
293
|
+
this.cfg_grpc_services = this._client.cfg_grpc_services;
|
|
294
|
+
this.cfg_grpc_testing = this._client.cfg_grpc_testing;
|
|
275
295
|
this.cfg_health = this._client.cfg_health;
|
|
276
296
|
this.cfg_knowbase = this._client.cfg_knowbase;
|
|
277
297
|
this.cfg_leads = this._client.cfg_leads;
|
|
@@ -305,6 +325,7 @@ export class API {
|
|
|
305
325
|
this.cfg_dashboard_activity = this._client.cfg_dashboard_activity;
|
|
306
326
|
this.cfg_dashboard_charts = this._client.cfg_dashboard_charts;
|
|
307
327
|
this.cfg_dashboard_commands = this._client.cfg_dashboard_commands;
|
|
328
|
+
this.cfg_dashboard_config = this._client.cfg_dashboard_config;
|
|
308
329
|
this.cfg_dashboard_overview = this._client.cfg_dashboard_overview;
|
|
309
330
|
this.cfg_dashboard_statistics = this._client.cfg_dashboard_statistics;
|
|
310
331
|
this.cfg_dashboard_system = this._client.cfg_dashboard_system;
|
|
@@ -324,7 +345,11 @@ export class API {
|
|
|
324
345
|
this.cfg_accounts = this._client.cfg_accounts;
|
|
325
346
|
this.cfg_centrifugo = this._client.cfg_centrifugo;
|
|
326
347
|
this.cfg_endpoints = this._client.cfg_endpoints;
|
|
348
|
+
this.cfg_grpc_charts = this._client.cfg_grpc_charts;
|
|
349
|
+
this.cfg_grpc_configuration = this._client.cfg_grpc_configuration;
|
|
327
350
|
this.cfg_grpc_monitoring = this._client.cfg_grpc_monitoring;
|
|
351
|
+
this.cfg_grpc_services = this._client.cfg_grpc_services;
|
|
352
|
+
this.cfg_grpc_testing = this._client.cfg_grpc_testing;
|
|
328
353
|
this.cfg_health = this._client.cfg_health;
|
|
329
354
|
this.cfg_knowbase = this._client.cfg_knowbase;
|
|
330
355
|
this.cfg_leads = this._client.cfg_leads;
|