@djangocfg/api 1.2.22 → 1.2.24
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 +5727 -2933
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5121 -1310
- package/dist/index.d.ts +5121 -1310
- package/dist/index.mjs +5741 -2964
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +3 -2
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +8 -8
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_api_keys.ts +78 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +138 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +11 -11
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_proto_files.ts +91 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_jobs.ts +10 -8
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_registries.ts +24 -22
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_schedules.ts +5 -4
- package/src/cfg/generated/_utils/fetchers/index.ts +3 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +3 -2
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +8 -8
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_api_keys.ts +66 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_charts.ts +126 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_monitoring.ts +9 -9
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_proto_files.ts +83 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_testing.ts +4 -4
- package/src/cfg/generated/_utils/hooks/cfg__rq__rq_jobs.ts +8 -6
- package/src/cfg/generated/_utils/hooks/cfg__rq__rq_registries.ts +16 -14
- package/src/cfg/generated/_utils/hooks/cfg__rq__rq_schedules.ts +3 -2
- package/src/cfg/generated/_utils/hooks/index.ts +3 -0
- package/src/cfg/generated/_utils/schemas/ApiKey.schema.ts +32 -0
- package/src/cfg/generated/_utils/schemas/ApiKeyStats.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +2 -2
- 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/Command.schema.ts +13 -0
- package/src/cfg/generated/_utils/schemas/DashboardCharts.schema.ts +30 -0
- package/src/cfg/generated/_utils/schemas/DjangoRQConfig.schema.ts +8 -1
- package/src/cfg/generated/_utils/schemas/ErrorDistributionChart.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ErrorDistributionDataPoint.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/GRPCCallRequestRequest.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/GRPCConfig.schema.ts +6 -6
- package/src/cfg/generated/_utils/schemas/{GRPCExampleSerializer.schema.ts → GRPCExample.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/GRPCExamplesList.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/{GRPCFeaturesSerializer.schema.ts → GRPCFeatures.schema.ts} +4 -4
- package/src/cfg/generated/_utils/schemas/{GRPCFrameworkConfigSerializer.schema.ts → GRPCFrameworkConfig.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/GRPCHealthCheck.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/{GRPCInterceptorInfoSerializer.schema.ts → GRPCInterceptorInfo.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/GRPCOverviewStats.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/{GRPCServerConfigSerializer.schema.ts → GRPCServerConfig.schema.ts} +4 -4
- package/src/cfg/generated/_utils/schemas/GRPCServerInfo.schema.ts +7 -7
- package/src/cfg/generated/_utils/schemas/{GRPCServiceInfoSerializer.schema.ts → GRPCServiceInfo.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/{GRPCStatsSerializer.schema.ts → GRPCStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/{GRPCTestLogSerializer.schema.ts → GRPCTestLog.schema.ts} +4 -4
- package/src/cfg/generated/_utils/schemas/JobListRequest.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/{MethodInfoSerializer.schema.ts → MethodInfo.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/MethodList.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/{MethodStatsSerializer.schema.ts → MethodStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/{MethodSummarySerializer.schema.ts → MethodSummary.schema.ts} +5 -5
- package/src/cfg/generated/_utils/schemas/{ServiceStatsSerializer.schema.ts → MonitoringServiceStats.schema.ts} +5 -5
- package/src/cfg/generated/_utils/schemas/PaginatedApiKeyList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedJobListList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedPublishList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedScheduledJobList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ProtoFileDetail.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/ProtoFileList.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/ProtoGenerateError.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ProtoGenerateRequestRequest.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ProtoGenerateResponse.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/Publish.schema.ts +29 -0
- package/src/cfg/generated/_utils/schemas/{RecentErrorSerializer.schema.ts → RecentError.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/RecentRequest.schema.ts +33 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeChart.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/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/ServerUptimeDataPoint.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityChart.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityDataPoint.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ServiceDetail.schema.ts +6 -6
- package/src/cfg/generated/_utils/schemas/ServiceList.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/ServiceMethods.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/ServiceStats.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/index.ts +44 -17
- package/src/cfg/generated/cfg__centrifugo/client.ts +1 -1
- package/src/cfg/generated/cfg__centrifugo/models.ts +19 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +5 -5
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +10 -9
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +38 -12
- package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +10 -1
- package/src/cfg/generated/cfg__dashboard__dashboard_config/models.ts +26 -1
- package/src/cfg/generated/cfg__endpoints/client.ts +1 -1
- package/src/cfg/generated/cfg__grpc__grpc_api_keys/client.ts +56 -0
- package/src/cfg/generated/cfg__grpc__grpc_api_keys/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_api_keys/models.ts +79 -0
- 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 +239 -0
- package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +12 -12
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/client.ts +12 -11
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +57 -33
- package/src/cfg/generated/cfg__grpc__grpc_proto_files/client.ts +54 -0
- package/src/cfg/generated/cfg__grpc__grpc_proto_files/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_proto_files/models.ts +35 -0
- package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +19 -19
- package/src/cfg/generated/cfg__grpc__grpc_testing/client.ts +9 -10
- package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +24 -40
- package/src/cfg/generated/cfg__payments/client.ts +1 -1
- package/src/cfg/generated/cfg__rq__rq_jobs/client.ts +8 -8
- package/src/cfg/generated/cfg__rq__rq_jobs/models.ts +65 -0
- package/src/cfg/generated/cfg__rq__rq_registries/client.ts +37 -34
- package/src/cfg/generated/cfg__rq__rq_registries/models.ts +65 -0
- package/src/cfg/generated/cfg__rq__rq_schedules/client.ts +4 -4
- package/src/cfg/generated/cfg__rq__rq_schedules/models.ts +25 -0
- package/src/cfg/generated/client.ts +9 -0
- package/src/cfg/generated/index.ts +15 -0
- package/src/cfg/generated/schema.ts +2618 -661
- package/src/cfg/generated/_utils/schemas/GRPCTestLogs.schema.ts +0 -23
- package/src/cfg/generated/_utils/schemas/RecentPublishes.schema.ts +0 -23
- package/src/cfg/generated/_utils/schemas/RecentRequests.schema.ts +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for CentrifugoOverviewStats
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Overview statistics for Centrifugo publishes.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Overview statistics for Centrifugo publishes.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const CentrifugoOverviewStatsSchema = z.object({
|
|
13
13
|
total: z.int(),
|
|
14
14
|
successful: z.int(),
|
|
15
15
|
failed: z.int(),
|
|
@@ -23,4 +23,4 @@ export const OverviewStatsSchema = z.object({
|
|
|
23
23
|
/**
|
|
24
24
|
* Infer TypeScript type from Zod schema
|
|
25
25
|
*/
|
|
26
|
-
export type
|
|
26
|
+
export type CentrifugoOverviewStats = z.infer<typeof CentrifugoOverviewStatsSchema>
|
|
@@ -14,7 +14,7 @@ export const CentrifugoPublicationSchema = z.object({
|
|
|
14
14
|
data: z.record(z.string(), z.any()),
|
|
15
15
|
info: CentrifugoClientInfoSchema.optional(),
|
|
16
16
|
offset: z.int(),
|
|
17
|
-
tags: z.string().nullable().optional(),
|
|
17
|
+
tags: z.record(z.string(), z.any()).nullable().optional(),
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -3,11 +3,21 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Django management command serializer.
|
|
6
|
+
|
|
7
|
+
Includes security metadata from base classes (SafeCommand, InteractiveCommand, etc.):
|
|
8
|
+
- web_executable: Can be executed via web interface
|
|
9
|
+
- requires_input: Requires interactive user input
|
|
10
|
+
- is_destructive: Modifies or deletes data
|
|
6
11
|
* */
|
|
7
12
|
import { z } from 'zod'
|
|
8
13
|
|
|
9
14
|
/**
|
|
10
15
|
* Django management command serializer.
|
|
16
|
+
|
|
17
|
+
Includes security metadata from base classes (SafeCommand, InteractiveCommand, etc.):
|
|
18
|
+
- web_executable: Can be executed via web interface
|
|
19
|
+
- requires_input: Requires interactive user input
|
|
20
|
+
- is_destructive: Modifies or deletes data
|
|
11
21
|
*/
|
|
12
22
|
export const CommandSchema = z.object({
|
|
13
23
|
name: z.string(),
|
|
@@ -17,6 +27,9 @@ export const CommandSchema = z.object({
|
|
|
17
27
|
is_custom: z.boolean(),
|
|
18
28
|
is_allowed: z.boolean().optional(),
|
|
19
29
|
risk_level: z.string().optional(),
|
|
30
|
+
web_executable: z.boolean().nullable().optional(),
|
|
31
|
+
requires_input: z.boolean().nullable().optional(),
|
|
32
|
+
is_destructive: z.boolean().nullable().optional(),
|
|
20
33
|
})
|
|
21
34
|
|
|
22
35
|
/**
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for DashboardCharts
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Combined dashboard charts data.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
import { ErrorDistributionChartSchema } from './ErrorDistributionChart.schema'
|
|
9
|
+
import { RequestVolumeChartSchema } from './RequestVolumeChart.schema'
|
|
10
|
+
import { ResponseTimeChartSchema } from './ResponseTimeChart.schema'
|
|
11
|
+
import { ServerUptimeChartSchema } from './ServerUptimeChart.schema'
|
|
12
|
+
import { ServiceActivityChartSchema } from './ServiceActivityChart.schema'
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Combined dashboard charts data.
|
|
16
|
+
*/
|
|
17
|
+
export const DashboardChartsSchema = z.object({
|
|
18
|
+
server_uptime: ServerUptimeChartSchema,
|
|
19
|
+
request_volume: RequestVolumeChartSchema,
|
|
20
|
+
response_time: ResponseTimeChartSchema,
|
|
21
|
+
service_activity: ServiceActivityChartSchema,
|
|
22
|
+
error_distribution: ErrorDistributionChartSchema,
|
|
23
|
+
period_hours: z.int(),
|
|
24
|
+
generated_at: z.string(),
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Infer TypeScript type from Zod schema
|
|
29
|
+
*/
|
|
30
|
+
export type DashboardCharts = z.infer<typeof DashboardChartsSchema>
|
|
@@ -5,12 +5,19 @@
|
|
|
5
5
|
* * Django-RQ configuration.
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
+
import { RedisQueueConfigSchema } from './RedisQueueConfig.schema'
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Django-RQ configuration.
|
|
11
12
|
*/
|
|
12
13
|
export const DjangoRQConfigSchema = z.object({
|
|
13
|
-
|
|
14
|
+
enabled: z.boolean().nullable().optional(),
|
|
15
|
+
queues: z.array(RedisQueueConfigSchema).nullable().optional(),
|
|
16
|
+
show_admin_link: z.boolean().nullable().optional(),
|
|
17
|
+
exception_handlers: z.array(z.string()).nullable().optional(),
|
|
18
|
+
api_token: z.string().nullable().optional(),
|
|
19
|
+
prometheus_enabled: z.boolean().nullable().optional(),
|
|
20
|
+
schedules: z.array(z.record(z.string(), z.any())).nullable().optional(),
|
|
14
21
|
})
|
|
15
22
|
|
|
16
23
|
/**
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for ErrorDistributionChart
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Error distribution chart data.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
import { ErrorDistributionDataPointSchema } from './ErrorDistributionDataPoint.schema'
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Error distribution chart data.
|
|
12
|
+
*/
|
|
13
|
+
export const ErrorDistributionChartSchema = z.object({
|
|
14
|
+
title: z.string().optional(),
|
|
15
|
+
error_types: z.array(ErrorDistributionDataPointSchema).optional(),
|
|
16
|
+
period_hours: z.int(),
|
|
17
|
+
total_errors: z.int(),
|
|
18
|
+
most_common_error: z.string().nullable().optional(),
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Infer TypeScript type from Zod schema
|
|
23
|
+
*/
|
|
24
|
+
export type ErrorDistributionChart = z.infer<typeof ErrorDistributionChartSchema>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for ErrorDistributionDataPoint
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Error distribution data point.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Error distribution data point.
|
|
11
|
+
*/
|
|
12
|
+
export const ErrorDistributionDataPointSchema = z.object({
|
|
13
|
+
error_code: z.string(),
|
|
14
|
+
count: z.int(),
|
|
15
|
+
percentage: z.number(),
|
|
16
|
+
service_name: z.string().nullable().optional(),
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Infer TypeScript type from Zod schema
|
|
21
|
+
*/
|
|
22
|
+
export type ErrorDistributionDataPoint = z.infer<typeof ErrorDistributionDataPointSchema>
|
|
@@ -10,8 +10,8 @@ import { z } from 'zod'
|
|
|
10
10
|
* Request to call a gRPC method (for future implementation).
|
|
11
11
|
*/
|
|
12
12
|
export const GRPCCallRequestRequestSchema = z.object({
|
|
13
|
-
service: z.string(),
|
|
14
|
-
method: z.string(),
|
|
13
|
+
service: z.string().min(1),
|
|
14
|
+
method: z.string().min(1),
|
|
15
15
|
payload: z.record(z.string(), z.any()),
|
|
16
16
|
metadata: z.record(z.string(), z.any()).optional(),
|
|
17
17
|
timeout_ms: z.int().optional(),
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* * Complete gRPC configuration response.
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { GRPCFeaturesSchema } from './GRPCFeatures.schema'
|
|
9
|
+
import { GRPCFrameworkConfigSchema } from './GRPCFrameworkConfig.schema'
|
|
10
|
+
import { GRPCServerConfigSchema } from './GRPCServerConfig.schema'
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Complete gRPC configuration response.
|
|
14
14
|
*/
|
|
15
15
|
export const GRPCConfigSchema = z.object({
|
|
16
|
-
server:
|
|
17
|
-
framework:
|
|
18
|
-
features:
|
|
16
|
+
server: GRPCServerConfigSchema,
|
|
17
|
+
framework: GRPCFrameworkConfigSchema,
|
|
18
|
+
features: GRPCFeaturesSchema,
|
|
19
19
|
registered_services: z.int(),
|
|
20
20
|
total_methods: z.int(),
|
|
21
21
|
})
|
package/src/cfg/generated/_utils/schemas/{GRPCExampleSerializer.schema.ts → GRPCExample.schema.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for GRPCExample
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Example payload for a gRPC method.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Example payload for a gRPC method.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const GRPCExampleSchema = z.object({
|
|
13
13
|
service: z.string(),
|
|
14
14
|
method: z.string(),
|
|
15
15
|
description: z.string(),
|
|
@@ -21,4 +21,4 @@ export const GRPCExampleSerializerSchema = z.object({
|
|
|
21
21
|
/**
|
|
22
22
|
* Infer TypeScript type from Zod schema
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type GRPCExample = z.infer<typeof GRPCExampleSchema>
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* * List of examples response.
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
-
import {
|
|
8
|
+
import { GRPCExampleSchema } from './GRPCExample.schema'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* List of examples response.
|
|
12
12
|
*/
|
|
13
13
|
export const GRPCExamplesListSchema = z.object({
|
|
14
|
-
examples: z.array(
|
|
14
|
+
examples: z.array(GRPCExampleSchema).optional(),
|
|
15
15
|
total_examples: z.int(),
|
|
16
16
|
})
|
|
17
17
|
|
package/src/cfg/generated/_utils/schemas/{GRPCFeaturesSerializer.schema.ts → GRPCFeatures.schema.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for GRPCFeatures
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * gRPC features configuration.
|
|
@@ -9,8 +9,8 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* gRPC features configuration.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
13
|
-
|
|
12
|
+
export const GRPCFeaturesSchema = z.object({
|
|
13
|
+
api_key_auth: z.boolean(),
|
|
14
14
|
request_logging: z.boolean(),
|
|
15
15
|
metrics: z.boolean(),
|
|
16
16
|
reflection: z.boolean(),
|
|
@@ -19,4 +19,4 @@ export const GRPCFeaturesSerializerSchema = z.object({
|
|
|
19
19
|
/**
|
|
20
20
|
* Infer TypeScript type from Zod schema
|
|
21
21
|
*/
|
|
22
|
-
export type
|
|
22
|
+
export type GRPCFeatures = z.infer<typeof GRPCFeaturesSchema>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for GRPCFrameworkConfig
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * gRPC framework configuration details.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* gRPC framework configuration details.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const GRPCFrameworkConfigSchema = z.object({
|
|
13
13
|
enabled: z.boolean(),
|
|
14
14
|
auto_discover: z.boolean(),
|
|
15
15
|
services_path: z.string(),
|
|
@@ -19,4 +19,4 @@ export const GRPCFrameworkConfigSerializerSchema = z.object({
|
|
|
19
19
|
/**
|
|
20
20
|
* Infer TypeScript type from Zod schema
|
|
21
21
|
*/
|
|
22
|
-
export type
|
|
22
|
+
export type GRPCFrameworkConfig = z.infer<typeof GRPCFrameworkConfigSchema>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for GRPCHealthCheck
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * gRPC health check response.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* gRPC health check response.
|
|
11
|
+
*/
|
|
12
|
+
export const GRPCHealthCheckSchema = z.object({
|
|
13
|
+
status: z.string(),
|
|
14
|
+
server_host: z.string(),
|
|
15
|
+
server_port: z.int(),
|
|
16
|
+
enabled: z.boolean(),
|
|
17
|
+
timestamp: z.string(),
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Infer TypeScript type from Zod schema
|
|
22
|
+
*/
|
|
23
|
+
export type GRPCHealthCheck = z.infer<typeof GRPCHealthCheckSchema>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for GRPCInterceptorInfo
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Information about an interceptor.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Information about an interceptor.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const GRPCInterceptorInfoSchema = z.object({
|
|
13
13
|
name: z.string(),
|
|
14
14
|
enabled: z.boolean(),
|
|
15
15
|
})
|
|
@@ -17,4 +17,4 @@ export const GRPCInterceptorInfoSerializerSchema = z.object({
|
|
|
17
17
|
/**
|
|
18
18
|
* Infer TypeScript type from Zod schema
|
|
19
19
|
*/
|
|
20
|
-
export type
|
|
20
|
+
export type GRPCInterceptorInfo = z.infer<typeof GRPCInterceptorInfoSchema>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for GRPCOverviewStats
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Overview statistics for gRPC requests.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Overview statistics for gRPC requests.
|
|
11
|
+
*/
|
|
12
|
+
export const GRPCOverviewStatsSchema = z.object({
|
|
13
|
+
total: z.int(),
|
|
14
|
+
successful: z.int(),
|
|
15
|
+
errors: z.int(),
|
|
16
|
+
cancelled: z.int(),
|
|
17
|
+
timeout: z.int(),
|
|
18
|
+
success_rate: z.number(),
|
|
19
|
+
avg_duration_ms: z.number(),
|
|
20
|
+
p95_duration_ms: z.number().nullable(),
|
|
21
|
+
period_hours: z.int(),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Infer TypeScript type from Zod schema
|
|
26
|
+
*/
|
|
27
|
+
export type GRPCOverviewStats = z.infer<typeof GRPCOverviewStatsSchema>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for GRPCServerConfig
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * gRPC server configuration details.
|
|
@@ -9,15 +9,15 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* gRPC server configuration details.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const GRPCServerConfigSchema = z.object({
|
|
13
13
|
host: z.string(),
|
|
14
14
|
port: z.int(),
|
|
15
15
|
enabled: z.boolean(),
|
|
16
16
|
max_workers: z.int(),
|
|
17
|
-
max_concurrent_rpcs: z.
|
|
17
|
+
max_concurrent_rpcs: z.int().nullable().optional(),
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Infer TypeScript type from Zod schema
|
|
22
22
|
*/
|
|
23
|
-
export type
|
|
23
|
+
export type GRPCServerConfig = z.infer<typeof GRPCServerConfigSchema>
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* * Complete gRPC server information response.
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { GRPCInterceptorInfoSchema } from './GRPCInterceptorInfo.schema'
|
|
9
|
+
import { GRPCServiceInfoSchema } from './GRPCServiceInfo.schema'
|
|
10
|
+
import { GRPCStatsSchema } from './GRPCStats.schema'
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Complete gRPC server information response.
|
|
@@ -16,10 +16,10 @@ export const GRPCServerInfoSchema = z.object({
|
|
|
16
16
|
server_status: z.string(),
|
|
17
17
|
address: z.string(),
|
|
18
18
|
started_at: z.string().nullable().optional(),
|
|
19
|
-
uptime_seconds: z.
|
|
20
|
-
services: z.array(
|
|
21
|
-
interceptors: z.array(
|
|
22
|
-
stats:
|
|
19
|
+
uptime_seconds: z.int().nullable().optional(),
|
|
20
|
+
services: z.array(GRPCServiceInfoSchema).optional(),
|
|
21
|
+
interceptors: z.array(GRPCInterceptorInfoSchema).optional(),
|
|
22
|
+
stats: GRPCStatsSchema,
|
|
23
23
|
})
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for GRPCServiceInfo
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Information about a single gRPC service.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Information about a single gRPC service.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const GRPCServiceInfoSchema = z.object({
|
|
13
13
|
name: z.string(),
|
|
14
14
|
methods: z.array(z.string()).optional(),
|
|
15
15
|
full_name: z.string(),
|
|
@@ -19,4 +19,4 @@ export const GRPCServiceInfoSerializerSchema = z.object({
|
|
|
19
19
|
/**
|
|
20
20
|
* Infer TypeScript type from Zod schema
|
|
21
21
|
*/
|
|
22
|
-
export type
|
|
22
|
+
export type GRPCServiceInfo = z.infer<typeof GRPCServiceInfoSchema>
|
package/src/cfg/generated/_utils/schemas/{GRPCStatsSerializer.schema.ts → GRPCStats.schema.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for GRPCStats
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Runtime statistics summary.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Runtime statistics summary.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const GRPCStatsSchema = z.object({
|
|
13
13
|
total_requests: z.int(),
|
|
14
14
|
success_rate: z.number(),
|
|
15
15
|
avg_duration_ms: z.number(),
|
|
@@ -18,4 +18,4 @@ export const GRPCStatsSerializerSchema = z.object({
|
|
|
18
18
|
/**
|
|
19
19
|
* Infer TypeScript type from Zod schema
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type GRPCStats = z.infer<typeof GRPCStatsSchema>
|
package/src/cfg/generated/_utils/schemas/{GRPCTestLogSerializer.schema.ts → GRPCTestLog.schema.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for GRPCTestLog
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Single test log entry.
|
|
@@ -9,14 +9,14 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Single test log entry.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const GRPCTestLogSchema = z.object({
|
|
13
13
|
request_id: z.string(),
|
|
14
14
|
service: z.string(),
|
|
15
15
|
method: z.string(),
|
|
16
16
|
status: z.string(),
|
|
17
17
|
grpc_status_code: z.string().nullable().optional(),
|
|
18
18
|
error_message: z.string().nullable().optional(),
|
|
19
|
-
duration_ms: z.
|
|
19
|
+
duration_ms: z.int().nullable().optional(),
|
|
20
20
|
created_at: z.string(),
|
|
21
21
|
user: z.string().nullable().optional(),
|
|
22
22
|
})
|
|
@@ -24,4 +24,4 @@ export const GRPCTestLogSerializerSchema = z.object({
|
|
|
24
24
|
/**
|
|
25
25
|
* Infer TypeScript type from Zod schema
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
27
|
+
export type GRPCTestLog = z.infer<typeof GRPCTestLogSchema>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for JobListRequest
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Job list item serializer.
|
|
6
|
+
|
|
7
|
+
Provides basic job information for list views.
|
|
8
|
+
* */
|
|
9
|
+
import { z } from 'zod'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Job list item serializer.
|
|
13
|
+
|
|
14
|
+
Provides basic job information for list views.
|
|
15
|
+
*/
|
|
16
|
+
export const JobListRequestSchema = z.object({
|
|
17
|
+
id: z.string().min(1),
|
|
18
|
+
func_name: z.string().min(1),
|
|
19
|
+
created_at: z.iso.datetime(),
|
|
20
|
+
status: z.string().min(1),
|
|
21
|
+
queue: z.string().min(1),
|
|
22
|
+
timeout: z.int().nullable().optional(),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Infer TypeScript type from Zod schema
|
|
27
|
+
*/
|
|
28
|
+
export type JobListRequest = z.infer<typeof JobListRequestSchema>
|
package/src/cfg/generated/_utils/schemas/{MethodInfoSerializer.schema.ts → MethodInfo.schema.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for MethodInfo
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Information about a service method.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Information about a service method.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const MethodInfoSchema = z.object({
|
|
13
13
|
name: z.string(),
|
|
14
14
|
full_name: z.string(),
|
|
15
15
|
request_type: z.string().optional(),
|
|
@@ -21,4 +21,4 @@ export const MethodInfoSerializerSchema = z.object({
|
|
|
21
21
|
/**
|
|
22
22
|
* Infer TypeScript type from Zod schema
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type MethodInfo = z.infer<typeof MethodInfoSchema>
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* * List of gRPC methods with statistics.
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
-
import {
|
|
8
|
+
import { MethodStatsSchema } from './MethodStats.schema'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* List of gRPC methods with statistics.
|
|
12
12
|
*/
|
|
13
13
|
export const MethodListSchema = z.object({
|
|
14
|
-
methods: z.array(
|
|
14
|
+
methods: z.array(MethodStatsSchema),
|
|
15
15
|
total_methods: z.int(),
|
|
16
16
|
})
|
|
17
17
|
|
package/src/cfg/generated/_utils/schemas/{MethodStatsSerializer.schema.ts → MethodStats.schema.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for MethodStats
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Statistics for a single gRPC method.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Statistics for a single gRPC method.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const MethodStatsSchema = z.object({
|
|
13
13
|
method_name: z.string(),
|
|
14
14
|
service_name: z.string(),
|
|
15
15
|
total: z.int(),
|
|
@@ -22,4 +22,4 @@ export const MethodStatsSerializerSchema = z.object({
|
|
|
22
22
|
/**
|
|
23
23
|
* Infer TypeScript type from Zod schema
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type MethodStats = z.infer<typeof MethodStatsSchema>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for MethodSummary
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Summary information for a method.
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
-
import {
|
|
8
|
+
import { MethodStatsSchema } from './MethodStats.schema'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Summary information for a method.
|
|
12
12
|
*/
|
|
13
|
-
export const
|
|
13
|
+
export const MethodSummarySchema = z.object({
|
|
14
14
|
name: z.string(),
|
|
15
15
|
full_name: z.string(),
|
|
16
16
|
service_name: z.string(),
|
|
17
17
|
request_type: z.string().optional(),
|
|
18
18
|
response_type: z.string().optional(),
|
|
19
|
-
stats:
|
|
19
|
+
stats: MethodStatsSchema,
|
|
20
20
|
})
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Infer TypeScript type from Zod schema
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type MethodSummary = z.infer<typeof MethodSummarySchema>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for MonitoringServiceStats
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
|
-
* * Statistics for a single gRPC service.
|
|
5
|
+
* * Statistics for a single gRPC service (monitoring endpoint).
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Statistics for a single gRPC service.
|
|
10
|
+
* Statistics for a single gRPC service (monitoring endpoint).
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const MonitoringServiceStatsSchema = z.object({
|
|
13
13
|
service_name: z.string(),
|
|
14
14
|
total: z.int(),
|
|
15
15
|
successful: z.int(),
|
|
@@ -21,4 +21,4 @@ export const ServiceStatsSerializerSchema = z.object({
|
|
|
21
21
|
/**
|
|
22
22
|
* Infer TypeScript type from Zod schema
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type MonitoringServiceStats = z.infer<typeof MonitoringServiceStatsSchema>
|