@djangocfg/api 1.2.21 → 1.2.22
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 +5029 -2249
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4267 -278
- package/dist/index.d.ts +4267 -278
- package/dist/index.mjs +4672 -1905
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_config.ts +48 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_configuration.ts +63 -0
- 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 +4 -0
- package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_config.ts +36 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_configuration.ts +51 -0
- 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 +4 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoConfig.schema.ts +23 -0
- 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/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 +19 -0
- package/src/cfg/generated/_utils/schemas/EmailConfig.schema.ts +28 -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/GRPCInterceptorInfoSerializer.schema.ts +20 -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/GRPCTestLogSerializer.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/GRPCTestLogs.schema.ts +23 -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/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/RedisQueueConfig.schema.ts +29 -0
- package/src/cfg/generated/_utils/schemas/ServiceDetail.schema.ts +31 -0
- package/src/cfg/generated/_utils/schemas/ServiceMethods.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/SpectacularConfig.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/index.ts +34 -0
- 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 +215 -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_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 +68 -0
- package/src/cfg/generated/cfg__grpc__grpc_testing/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +122 -0
- package/src/cfg/generated/client.ts +12 -0
- package/src/cfg/generated/index.ts +20 -0
- package/src/cfg/generated/schema.ts +7133 -5116
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for RecentErrorSerializer
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Recent error information.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Recent error information.
|
|
11
|
+
*/
|
|
12
|
+
export const RecentErrorSerializerSchema = z.object({
|
|
13
|
+
method: z.string(),
|
|
14
|
+
error_message: z.string(),
|
|
15
|
+
grpc_status_code: z.string(),
|
|
16
|
+
occurred_at: z.string(),
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Infer TypeScript type from Zod schema
|
|
21
|
+
*/
|
|
22
|
+
export type RecentErrorSerializer = z.infer<typeof RecentErrorSerializerSchema>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for RedisQueueConfig
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Redis Queue configuration.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Redis Queue configuration.
|
|
11
|
+
*/
|
|
12
|
+
export const RedisQueueConfigSchema = z.object({
|
|
13
|
+
url: z.string().nullable().optional(),
|
|
14
|
+
host: z.string().nullable().optional(),
|
|
15
|
+
port: z.int().nullable().optional(),
|
|
16
|
+
db: z.int().nullable().optional(),
|
|
17
|
+
username: z.string().nullable().optional(),
|
|
18
|
+
password: z.string().nullable().optional(),
|
|
19
|
+
default_timeout: z.int().nullable().optional(),
|
|
20
|
+
default_result_ttl: z.int().nullable().optional(),
|
|
21
|
+
sentinels: z.array(z.string()).nullable().optional(),
|
|
22
|
+
master_name: z.string().nullable().optional(),
|
|
23
|
+
socket_timeout: z.int().nullable().optional(),
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Infer TypeScript type from Zod schema
|
|
28
|
+
*/
|
|
29
|
+
export type RedisQueueConfig = z.infer<typeof RedisQueueConfigSchema>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for ServiceDetail
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Detailed information about a service.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
import { MethodInfoSerializerSchema } from './MethodInfoSerializer.schema'
|
|
9
|
+
import { RecentErrorSerializerSchema } from './RecentErrorSerializer.schema'
|
|
10
|
+
import { ServiceStatsSerializerSchema } from './ServiceStatsSerializer.schema'
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Detailed information about a service.
|
|
14
|
+
*/
|
|
15
|
+
export const ServiceDetailSchema = z.object({
|
|
16
|
+
name: z.string(),
|
|
17
|
+
full_name: z.string(),
|
|
18
|
+
package: z.string(),
|
|
19
|
+
description: z.string().optional(),
|
|
20
|
+
file_path: z.string().optional(),
|
|
21
|
+
class_name: z.string(),
|
|
22
|
+
base_class: z.string().optional(),
|
|
23
|
+
methods: z.array(MethodInfoSerializerSchema).optional(),
|
|
24
|
+
stats: ServiceStatsSerializerSchema,
|
|
25
|
+
recent_errors: z.array(RecentErrorSerializerSchema).optional(),
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Infer TypeScript type from Zod schema
|
|
30
|
+
*/
|
|
31
|
+
export type ServiceDetail = z.infer<typeof ServiceDetailSchema>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for ServiceMethods
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * List of methods for a service.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
import { MethodSummarySerializerSchema } from './MethodSummarySerializer.schema'
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* List of methods for a service.
|
|
12
|
+
*/
|
|
13
|
+
export const ServiceMethodsSchema = z.object({
|
|
14
|
+
service_name: z.string(),
|
|
15
|
+
methods: z.array(MethodSummarySerializerSchema).optional(),
|
|
16
|
+
total_methods: z.int(),
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Infer TypeScript type from Zod schema
|
|
21
|
+
*/
|
|
22
|
+
export type ServiceMethods = z.infer<typeof ServiceMethodsSchema>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for SpectacularConfig
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * DRF Spectacular configuration.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* DRF Spectacular configuration.
|
|
11
|
+
*/
|
|
12
|
+
export const SpectacularConfigSchema = z.object({
|
|
13
|
+
title: z.string().nullable().optional(),
|
|
14
|
+
description: z.string().nullable().optional(),
|
|
15
|
+
version: z.string().nullable().optional(),
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Infer TypeScript type from Zod schema
|
|
20
|
+
*/
|
|
21
|
+
export type SpectacularConfig = z.infer<typeof SpectacularConfigSchema>
|
|
@@ -39,6 +39,7 @@ export * from './CentrifugoChannelsRequestRequest.schema'
|
|
|
39
39
|
export * from './CentrifugoChannelsResponse.schema'
|
|
40
40
|
export * from './CentrifugoChannelsResult.schema'
|
|
41
41
|
export * from './CentrifugoClientInfo.schema'
|
|
42
|
+
export * from './CentrifugoConfig.schema'
|
|
42
43
|
export * from './CentrifugoError.schema'
|
|
43
44
|
export * from './CentrifugoHistoryRequestRequest.schema'
|
|
44
45
|
export * from './CentrifugoHistoryResponse.schema'
|
|
@@ -75,10 +76,17 @@ export * from './Command.schema'
|
|
|
75
76
|
export * from './CommandExecuteRequestRequest.schema'
|
|
76
77
|
export * from './CommandHelpResponse.schema'
|
|
77
78
|
export * from './CommandsSummary.schema'
|
|
79
|
+
export * from './ConfigData.schema'
|
|
80
|
+
export * from './ConfigMeta.schema'
|
|
81
|
+
export * from './ConfigValidation.schema'
|
|
78
82
|
export * from './ConnectionTokenRequestRequest.schema'
|
|
79
83
|
export * from './ConnectionTokenResponse.schema'
|
|
80
84
|
export * from './Currency.schema'
|
|
85
|
+
export * from './DRFConfig.schema'
|
|
81
86
|
export * from './DashboardOverview.schema'
|
|
87
|
+
export * from './DatabaseConfig.schema'
|
|
88
|
+
export * from './DjangoConfig.schema'
|
|
89
|
+
export * from './DjangoRQConfig.schema'
|
|
82
90
|
export * from './Document.schema'
|
|
83
91
|
export * from './DocumentArchive.schema'
|
|
84
92
|
export * from './DocumentArchiveDetail.schema'
|
|
@@ -90,11 +98,28 @@ export * from './DocumentCreateRequest.schema'
|
|
|
90
98
|
export * from './DocumentProcessingStatus.schema'
|
|
91
99
|
export * from './DocumentRequest.schema'
|
|
92
100
|
export * from './DocumentStats.schema'
|
|
101
|
+
export * from './EmailConfig.schema'
|
|
93
102
|
export * from './EmailLog.schema'
|
|
94
103
|
export * from './Endpoint.schema'
|
|
95
104
|
export * from './EndpointsStatus.schema'
|
|
96
105
|
export * from './ErrorResponse.schema'
|
|
106
|
+
export * from './GRPCCallRequestRequest.schema'
|
|
107
|
+
export * from './GRPCCallResponse.schema'
|
|
108
|
+
export * from './GRPCConfig.schema'
|
|
109
|
+
export * from './GRPCConfigDashboard.schema'
|
|
110
|
+
export * from './GRPCExampleSerializer.schema'
|
|
111
|
+
export * from './GRPCExamplesList.schema'
|
|
112
|
+
export * from './GRPCFeaturesSerializer.schema'
|
|
113
|
+
export * from './GRPCFrameworkConfigSerializer.schema'
|
|
114
|
+
export * from './GRPCInterceptorInfoSerializer.schema'
|
|
115
|
+
export * from './GRPCServerConfigSerializer.schema'
|
|
116
|
+
export * from './GRPCServerInfo.schema'
|
|
117
|
+
export * from './GRPCServiceInfoSerializer.schema'
|
|
118
|
+
export * from './GRPCStatsSerializer.schema'
|
|
119
|
+
export * from './GRPCTestLogSerializer.schema'
|
|
120
|
+
export * from './GRPCTestLogs.schema'
|
|
97
121
|
export * from './HealthCheck.schema'
|
|
122
|
+
export * from './JWTConfig.schema'
|
|
98
123
|
export * from './JobActionResponse.schema'
|
|
99
124
|
export * from './JobDetail.schema'
|
|
100
125
|
export * from './JobList.schema'
|
|
@@ -108,8 +133,10 @@ export * from './Message.schema'
|
|
|
108
133
|
export * from './MessageCreate.schema'
|
|
109
134
|
export * from './MessageCreateRequest.schema'
|
|
110
135
|
export * from './MessageRequest.schema'
|
|
136
|
+
export * from './MethodInfoSerializer.schema'
|
|
111
137
|
export * from './MethodList.schema'
|
|
112
138
|
export * from './MethodStatsSerializer.schema'
|
|
139
|
+
export * from './MethodSummarySerializer.schema'
|
|
113
140
|
export * from './Newsletter.schema'
|
|
114
141
|
export * from './NewsletterCampaign.schema'
|
|
115
142
|
export * from './NewsletterCampaignRequest.schema'
|
|
@@ -151,6 +178,8 @@ export * from './PatchedUnsubscribeRequest.schema'
|
|
|
151
178
|
export * from './PatchedUserProfileUpdateRequest.schema'
|
|
152
179
|
export * from './PaymentDetail.schema'
|
|
153
180
|
export * from './PaymentList.schema'
|
|
181
|
+
export * from './PaymentsConfig.schema'
|
|
182
|
+
export * from './PaymentsNowPayments.schema'
|
|
154
183
|
export * from './PublicCategory.schema'
|
|
155
184
|
export * from './PublicDocument.schema'
|
|
156
185
|
export * from './PublicDocumentList.schema'
|
|
@@ -161,9 +190,11 @@ export * from './QueueStats.schema'
|
|
|
161
190
|
export * from './QuickAction.schema'
|
|
162
191
|
export * from './QuickHealth.schema'
|
|
163
192
|
export * from './RQConfig.schema'
|
|
193
|
+
export * from './RecentErrorSerializer.schema'
|
|
164
194
|
export * from './RecentPublishes.schema'
|
|
165
195
|
export * from './RecentRequests.schema'
|
|
166
196
|
export * from './RecentUser.schema'
|
|
197
|
+
export * from './RedisQueueConfig.schema'
|
|
167
198
|
export * from './RunDemoRequestRequest.schema'
|
|
168
199
|
export * from './ScheduleActionResponse.schema'
|
|
169
200
|
export * from './ScheduleCreateRequest.schema'
|
|
@@ -171,8 +202,11 @@ export * from './ScheduledJob.schema'
|
|
|
171
202
|
export * from './SendCampaignRequest.schema'
|
|
172
203
|
export * from './SendCampaignResponse.schema'
|
|
173
204
|
export * from './Sender.schema'
|
|
205
|
+
export * from './ServiceDetail.schema'
|
|
174
206
|
export * from './ServiceList.schema'
|
|
207
|
+
export * from './ServiceMethods.schema'
|
|
175
208
|
export * from './ServiceStatsSerializer.schema'
|
|
209
|
+
export * from './SpectacularConfig.schema'
|
|
176
210
|
export * from './StatCard.schema'
|
|
177
211
|
export * from './StressTestRequestRequest.schema'
|
|
178
212
|
export * from './SubscribeRequest.schema'
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Models from "./models";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API endpoints for Dashboard - Config.
|
|
6
|
+
*/
|
|
7
|
+
export class CfgDashboardConfig {
|
|
8
|
+
private client: any;
|
|
9
|
+
|
|
10
|
+
constructor(client: any) {
|
|
11
|
+
this.client = client;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get configuration data
|
|
16
|
+
*
|
|
17
|
+
* Retrieve user's DjangoConfig settings and complete Django settings
|
|
18
|
+
* (sanitized)
|
|
19
|
+
*/
|
|
20
|
+
async dashboardApiConfigConfigRetrieve(): Promise<Models.ConfigData> {
|
|
21
|
+
const response = await this.client.request('GET', "/cfg/dashboard/api/config/config/");
|
|
22
|
+
return response;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serializer for complete config data endpoint. Returns both DjangoConfig and
|
|
3
|
+
* Django settings with validation info.
|
|
4
|
+
*
|
|
5
|
+
* Response model (includes read-only fields).
|
|
6
|
+
*/
|
|
7
|
+
export interface ConfigData {
|
|
8
|
+
django_config: Record<string, any>;
|
|
9
|
+
/** Complete Django settings (sanitized) */
|
|
10
|
+
django_settings: Record<string, any>;
|
|
11
|
+
_validation: Record<string, any>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Typed serializer for user's DjangoConfig settings. Reflects the actual
|
|
16
|
+
* structure of DjangoConfig model. All passwords and sensitive data are
|
|
17
|
+
* sanitized before reaching this serializer.
|
|
18
|
+
*
|
|
19
|
+
* Response model (includes read-only fields).
|
|
20
|
+
*/
|
|
21
|
+
export interface DjangoConfig {
|
|
22
|
+
env_mode?: string | null;
|
|
23
|
+
project_name?: string | null;
|
|
24
|
+
project_logo?: string | null;
|
|
25
|
+
project_version?: string | null;
|
|
26
|
+
project_description?: string | null;
|
|
27
|
+
startup_info_mode?: string | null;
|
|
28
|
+
enable_support?: boolean | null;
|
|
29
|
+
enable_accounts?: boolean | null;
|
|
30
|
+
enable_newsletter?: boolean | null;
|
|
31
|
+
enable_leads?: boolean | null;
|
|
32
|
+
enable_knowbase?: boolean | null;
|
|
33
|
+
enable_agents?: boolean | null;
|
|
34
|
+
enable_maintenance?: boolean | null;
|
|
35
|
+
enable_frontend?: boolean | null;
|
|
36
|
+
enable_drf_tailwind?: boolean | null;
|
|
37
|
+
site_url?: string | null;
|
|
38
|
+
api_url?: string | null;
|
|
39
|
+
debug?: boolean | null;
|
|
40
|
+
debug_warnings?: boolean | null;
|
|
41
|
+
root_urlconf?: string | null;
|
|
42
|
+
wsgi_application?: string | null;
|
|
43
|
+
auth_user_model?: string | null;
|
|
44
|
+
project_apps?: Array<string> | null;
|
|
45
|
+
databases?: Record<string, any> | null;
|
|
46
|
+
redis_url?: string | null;
|
|
47
|
+
cache_default?: string | null;
|
|
48
|
+
cache_sessions?: string | null;
|
|
49
|
+
security_domains?: Array<string> | null;
|
|
50
|
+
ssl_redirect?: boolean | null;
|
|
51
|
+
cors_allow_headers?: Array<string> | null;
|
|
52
|
+
email?: Record<string, any> | null;
|
|
53
|
+
payments?: Record<string, any> | null;
|
|
54
|
+
grpc?: Record<string, any> | null;
|
|
55
|
+
centrifugo?: Record<string, any> | null;
|
|
56
|
+
django_rq?: Record<string, any> | null;
|
|
57
|
+
drf?: Record<string, any> | null;
|
|
58
|
+
spectacular?: Record<string, any> | null;
|
|
59
|
+
jwt?: Record<string, any> | null;
|
|
60
|
+
telegram?: Record<string, any> | null;
|
|
61
|
+
ngrok?: Record<string, any> | null;
|
|
62
|
+
axes?: Record<string, any> | null;
|
|
63
|
+
crypto_fields?: Record<string, any> | null;
|
|
64
|
+
unfold?: string | null;
|
|
65
|
+
tailwind_app_name?: string | null;
|
|
66
|
+
tailwind_version?: number | null;
|
|
67
|
+
limits?: Record<string, any> | null;
|
|
68
|
+
api_keys?: Record<string, any> | null;
|
|
69
|
+
custom_middleware?: Array<string> | null;
|
|
70
|
+
nextjs_admin?: Record<string, any> | null;
|
|
71
|
+
admin_emails?: Array<string> | null;
|
|
72
|
+
constance?: Record<string, any> | null;
|
|
73
|
+
openapi_client?: Record<string, any> | null;
|
|
74
|
+
_meta?: Record<string, any> | null;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validation result for config serializer.
|
|
79
|
+
*
|
|
80
|
+
* Response model (includes read-only fields).
|
|
81
|
+
*/
|
|
82
|
+
export interface ConfigValidation {
|
|
83
|
+
/** Validation status: 'valid', 'warning', or 'error' */
|
|
84
|
+
status: string;
|
|
85
|
+
/** Fields present in config but missing in serializer */
|
|
86
|
+
missing_in_serializer: Array<string>;
|
|
87
|
+
/** Fields present in serializer but not in config */
|
|
88
|
+
extra_in_serializer: Array<string>;
|
|
89
|
+
/** Fields with type mismatches */
|
|
90
|
+
type_mismatches: Array<Record<string, any>>;
|
|
91
|
+
/** Total fields in config */
|
|
92
|
+
total_config_fields: number;
|
|
93
|
+
/** Total fields in serializer */
|
|
94
|
+
total_serializer_fields: number;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Email configuration.
|
|
99
|
+
*
|
|
100
|
+
* Response model (includes read-only fields).
|
|
101
|
+
*/
|
|
102
|
+
export interface EmailConfig {
|
|
103
|
+
backend?: string | null;
|
|
104
|
+
host?: string | null;
|
|
105
|
+
port?: number | null;
|
|
106
|
+
username?: string | null;
|
|
107
|
+
password?: string | null;
|
|
108
|
+
use_tls?: boolean | null;
|
|
109
|
+
use_ssl?: boolean | null;
|
|
110
|
+
ssl_verify?: boolean | null;
|
|
111
|
+
timeout?: number | null;
|
|
112
|
+
default_from?: string | null;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Payments configuration.
|
|
117
|
+
*
|
|
118
|
+
* Response model (includes read-only fields).
|
|
119
|
+
*/
|
|
120
|
+
export interface PaymentsConfig {
|
|
121
|
+
enabled?: boolean | null;
|
|
122
|
+
nowpayments?: Record<string, any> | null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* gRPC configuration for dashboard.
|
|
127
|
+
*
|
|
128
|
+
* Response model (includes read-only fields).
|
|
129
|
+
*/
|
|
130
|
+
export interface GRPCConfigDashboard {
|
|
131
|
+
enabled?: boolean | null;
|
|
132
|
+
host?: string | null;
|
|
133
|
+
port?: number | null;
|
|
134
|
+
max_workers?: number | null;
|
|
135
|
+
reflection?: boolean | null;
|
|
136
|
+
health_check?: boolean | null;
|
|
137
|
+
interceptors?: Array<string> | null;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Centrifugo configuration.
|
|
142
|
+
*
|
|
143
|
+
* Response model (includes read-only fields).
|
|
144
|
+
*/
|
|
145
|
+
export interface CentrifugoConfig {
|
|
146
|
+
enabled?: boolean | null;
|
|
147
|
+
api_url?: string | null;
|
|
148
|
+
api_key?: string | null;
|
|
149
|
+
token_hmac_secret_key?: string | null;
|
|
150
|
+
timeout?: number | null;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Django-RQ configuration.
|
|
155
|
+
*
|
|
156
|
+
* Response model (includes read-only fields).
|
|
157
|
+
*/
|
|
158
|
+
export interface DjangoRQConfig {
|
|
159
|
+
queues?: Record<string, any> | null;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Django REST Framework configuration.
|
|
164
|
+
*
|
|
165
|
+
* Response model (includes read-only fields).
|
|
166
|
+
*/
|
|
167
|
+
export interface DRFConfig {
|
|
168
|
+
default_pagination_class?: string | null;
|
|
169
|
+
page_size?: number | null;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* DRF Spectacular configuration.
|
|
174
|
+
*
|
|
175
|
+
* Response model (includes read-only fields).
|
|
176
|
+
*/
|
|
177
|
+
export interface SpectacularConfig {
|
|
178
|
+
title?: string | null;
|
|
179
|
+
description?: string | null;
|
|
180
|
+
version?: string | null;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* JWT configuration.
|
|
185
|
+
*
|
|
186
|
+
* Response model (includes read-only fields).
|
|
187
|
+
*/
|
|
188
|
+
export interface JWTConfig {
|
|
189
|
+
access_token_lifetime?: number | null;
|
|
190
|
+
refresh_token_lifetime?: number | null;
|
|
191
|
+
algorithm?: string | null;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Config metadata.
|
|
196
|
+
*
|
|
197
|
+
* Response model (includes read-only fields).
|
|
198
|
+
*/
|
|
199
|
+
export interface ConfigMeta {
|
|
200
|
+
config_class: string;
|
|
201
|
+
secret_key_configured: boolean;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* NowPayments configuration.
|
|
206
|
+
*
|
|
207
|
+
* Response model (includes read-only fields).
|
|
208
|
+
*/
|
|
209
|
+
export interface PaymentsNowPayments {
|
|
210
|
+
api_key?: string | null;
|
|
211
|
+
ipn_secret?: string | null;
|
|
212
|
+
sandbox?: boolean | null;
|
|
213
|
+
enabled?: boolean | null;
|
|
214
|
+
}
|
|
215
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as Models from "./models";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API endpoints for Grpc Configuration.
|
|
6
|
+
*/
|
|
7
|
+
export class CfgGrpcConfiguration {
|
|
8
|
+
private client: any;
|
|
9
|
+
|
|
10
|
+
constructor(client: any) {
|
|
11
|
+
this.client = client;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Get gRPC configuration
|
|
16
|
+
*
|
|
17
|
+
* Returns current gRPC server configuration from Django settings.
|
|
18
|
+
*/
|
|
19
|
+
async grpcConfigConfigRetrieve(): Promise<Models.GRPCConfig> {
|
|
20
|
+
const response = await this.client.request('GET', "/cfg/grpc/config/config/");
|
|
21
|
+
return response;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Get server information
|
|
26
|
+
*
|
|
27
|
+
* Returns detailed information about gRPC server, services, and runtime
|
|
28
|
+
* statistics.
|
|
29
|
+
*/
|
|
30
|
+
async grpcConfigServerInfoRetrieve(): Promise<Models.GRPCServerInfo> {
|
|
31
|
+
const response = await this.client.request('GET', "/cfg/grpc/config/server-info/");
|
|
32
|
+
return response;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Complete gRPC configuration response.
|
|
3
|
+
*
|
|
4
|
+
* Response model (includes read-only fields).
|
|
5
|
+
*/
|
|
6
|
+
export interface GRPCConfig {
|
|
7
|
+
server: Record<string, any>;
|
|
8
|
+
framework: Record<string, any>;
|
|
9
|
+
features: Record<string, any>;
|
|
10
|
+
/** Number of registered services */
|
|
11
|
+
registered_services: number;
|
|
12
|
+
/** Total number of methods */
|
|
13
|
+
total_methods: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Complete gRPC server information response.
|
|
18
|
+
*
|
|
19
|
+
* Response model (includes read-only fields).
|
|
20
|
+
*/
|
|
21
|
+
export interface GRPCServerInfo {
|
|
22
|
+
/** Server status (running, stopped) */
|
|
23
|
+
server_status: string;
|
|
24
|
+
/** Server address (host:port) */
|
|
25
|
+
address: string;
|
|
26
|
+
/** Server start timestamp */
|
|
27
|
+
started_at?: string | null;
|
|
28
|
+
/** Server uptime in seconds */
|
|
29
|
+
uptime_seconds?: string | null;
|
|
30
|
+
/** Registered services */
|
|
31
|
+
services?: Array<GRPCServiceInfoSerializer>;
|
|
32
|
+
/** Active interceptors */
|
|
33
|
+
interceptors?: Array<GRPCInterceptorInfoSerializer>;
|
|
34
|
+
stats: Record<string, any>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* gRPC server configuration details.
|
|
39
|
+
*
|
|
40
|
+
* Response model (includes read-only fields).
|
|
41
|
+
*/
|
|
42
|
+
export interface GRPCServerConfigSerializer {
|
|
43
|
+
/** Server host address */
|
|
44
|
+
host: string;
|
|
45
|
+
/** Server port */
|
|
46
|
+
port: number;
|
|
47
|
+
/** Whether gRPC server is enabled */
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
/** Maximum worker threads */
|
|
50
|
+
max_workers: number;
|
|
51
|
+
/** Maximum concurrent RPCs */
|
|
52
|
+
max_concurrent_rpcs?: string | null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* gRPC framework configuration details.
|
|
57
|
+
*
|
|
58
|
+
* Response model (includes read-only fields).
|
|
59
|
+
*/
|
|
60
|
+
export interface GRPCFrameworkConfigSerializer {
|
|
61
|
+
/** Whether framework is enabled */
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
/** Auto-discover services */
|
|
64
|
+
auto_discover: boolean;
|
|
65
|
+
/** Services discovery path pattern */
|
|
66
|
+
services_path: string;
|
|
67
|
+
/** Registered interceptors */
|
|
68
|
+
interceptors?: Array<string>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* gRPC features configuration.
|
|
73
|
+
*
|
|
74
|
+
* Response model (includes read-only fields).
|
|
75
|
+
*/
|
|
76
|
+
export interface GRPCFeaturesSerializer {
|
|
77
|
+
/** JWT authentication enabled */
|
|
78
|
+
jwt_auth: boolean;
|
|
79
|
+
/** Request logging enabled */
|
|
80
|
+
request_logging: boolean;
|
|
81
|
+
/** Metrics collection enabled */
|
|
82
|
+
metrics: boolean;
|
|
83
|
+
/** gRPC reflection enabled */
|
|
84
|
+
reflection: boolean;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Information about a single gRPC service.
|
|
89
|
+
*
|
|
90
|
+
* Response model (includes read-only fields).
|
|
91
|
+
*/
|
|
92
|
+
export interface GRPCServiceInfoSerializer {
|
|
93
|
+
/** Service name */
|
|
94
|
+
name: string;
|
|
95
|
+
/** Service methods */
|
|
96
|
+
methods?: Array<string>;
|
|
97
|
+
/** Full service name with package */
|
|
98
|
+
full_name: string;
|
|
99
|
+
/** Service description */
|
|
100
|
+
description?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Information about an interceptor.
|
|
105
|
+
*
|
|
106
|
+
* Response model (includes read-only fields).
|
|
107
|
+
*/
|
|
108
|
+
export interface GRPCInterceptorInfoSerializer {
|
|
109
|
+
/** Interceptor name */
|
|
110
|
+
name: string;
|
|
111
|
+
/** Whether interceptor is enabled */
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Runtime statistics summary.
|
|
117
|
+
*
|
|
118
|
+
* Response model (includes read-only fields).
|
|
119
|
+
*/
|
|
120
|
+
export interface GRPCStatsSerializer {
|
|
121
|
+
/** Total number of requests */
|
|
122
|
+
total_requests: number;
|
|
123
|
+
/** Success rate percentage */
|
|
124
|
+
success_rate: number;
|
|
125
|
+
/** Average duration in milliseconds */
|
|
126
|
+
avg_duration_ms: number;
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -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
|
+
}
|