@djangocfg/api 1.2.23 → 1.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/dist/index.cjs +2770 -23332
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +1908 -19148
  4. package/dist/index.d.ts +1908 -19148
  5. package/dist/index.mjs +2705 -23279
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/contexts/index.ts +0 -11
  9. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +3 -2
  10. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_auth.ts +48 -0
  11. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +5 -5
  12. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +0 -16
  13. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_api_keys.ts +78 -0
  14. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +5 -20
  15. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_proto_files.ts +91 -0
  16. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_services.ts +5 -4
  17. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_jobs.ts +10 -8
  18. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_registries.ts +24 -22
  19. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_schedules.ts +5 -4
  20. package/src/cfg/generated/_utils/fetchers/index.ts +3 -0
  21. package/src/cfg/generated/_utils/hooks/cfg__accounts.ts +0 -1
  22. package/src/cfg/generated/_utils/hooks/cfg__accounts__auth.ts +0 -1
  23. package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +3 -3
  24. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_admin_api.ts +0 -1
  25. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_auth.ts +35 -0
  26. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +5 -6
  27. package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_testing.ts +0 -21
  28. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_activity.ts +0 -1
  29. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_api_zones.ts +0 -1
  30. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_charts.ts +0 -1
  31. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_config.ts +0 -1
  32. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_overview.ts +0 -1
  33. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_statistics.ts +0 -1
  34. package/src/cfg/generated/_utils/hooks/cfg__dashboard__dashboard_system.ts +0 -1
  35. package/src/cfg/generated/_utils/hooks/cfg__endpoints.ts +0 -1
  36. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_api_keys.ts +65 -0
  37. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_charts.ts +0 -1
  38. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_configuration.ts +0 -1
  39. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_monitoring.ts +5 -21
  40. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_proto_files.ts +83 -0
  41. package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_services.ts +3 -3
  42. package/src/cfg/generated/_utils/hooks/cfg__health.ts +0 -1
  43. package/src/cfg/generated/_utils/hooks/cfg__leads__lead_submission.ts +0 -1
  44. package/src/cfg/generated/_utils/hooks/cfg__newsletter.ts +0 -1
  45. package/src/cfg/generated/_utils/hooks/cfg__newsletter__bulk_email.ts +0 -1
  46. package/src/cfg/generated/_utils/hooks/cfg__newsletter__logs.ts +0 -1
  47. package/src/cfg/generated/_utils/hooks/cfg__newsletter__newsletters.ts +0 -1
  48. package/src/cfg/generated/_utils/hooks/cfg__newsletter__testing.ts +0 -1
  49. package/src/cfg/generated/_utils/hooks/cfg__rq__rq_jobs.ts +8 -6
  50. package/src/cfg/generated/_utils/hooks/cfg__rq__rq_monitoring.ts +0 -1
  51. package/src/cfg/generated/_utils/hooks/cfg__rq__rq_registries.ts +16 -14
  52. package/src/cfg/generated/_utils/hooks/cfg__rq__rq_schedules.ts +3 -2
  53. package/src/cfg/generated/_utils/hooks/cfg__rq__rq_workers.ts +0 -1
  54. package/src/cfg/generated/_utils/hooks/index.ts +3 -0
  55. package/src/cfg/generated/_utils/schemas/ApiKey.schema.ts +32 -0
  56. package/src/cfg/generated/_utils/schemas/ApiKeyStats.schema.ts +23 -0
  57. package/src/cfg/generated/_utils/schemas/CentrifugoToken.schema.ts +22 -0
  58. package/src/cfg/generated/_utils/schemas/Command.schema.ts +13 -0
  59. package/src/cfg/generated/_utils/schemas/ConnectionTokenResponse.schema.ts +3 -2
  60. package/src/cfg/generated/_utils/schemas/DashboardCharts.schema.ts +10 -10
  61. package/src/cfg/generated/_utils/schemas/GRPCCallRequestRequest.schema.ts +2 -2
  62. package/src/cfg/generated/_utils/schemas/GRPCConfig.schema.ts +6 -6
  63. package/src/cfg/generated/_utils/schemas/{GRPCExampleSerializer.schema.ts → GRPCExample.schema.ts} +3 -3
  64. package/src/cfg/generated/_utils/schemas/GRPCExamplesList.schema.ts +2 -2
  65. package/src/cfg/generated/_utils/schemas/{GRPCFeaturesSerializer.schema.ts → GRPCFeatures.schema.ts} +4 -4
  66. package/src/cfg/generated/_utils/schemas/{GRPCFrameworkConfigSerializer.schema.ts → GRPCFrameworkConfig.schema.ts} +3 -3
  67. package/src/cfg/generated/_utils/schemas/{GRPCInterceptorInfoSerializer.schema.ts → GRPCInterceptorInfo.schema.ts} +3 -3
  68. package/src/cfg/generated/_utils/schemas/GRPCOverviewStats.schema.ts +3 -1
  69. package/src/cfg/generated/_utils/schemas/GRPCRegisteredService.schema.ts +24 -0
  70. package/src/cfg/generated/_utils/schemas/{GRPCServerConfigSerializer.schema.ts → GRPCServerConfig.schema.ts} +4 -4
  71. package/src/cfg/generated/_utils/schemas/GRPCServerInfo.schema.ts +6 -6
  72. package/src/cfg/generated/_utils/schemas/GRPCServerStatus.schema.ts +34 -0
  73. package/src/cfg/generated/_utils/schemas/{GRPCServiceInfoSerializer.schema.ts → GRPCServiceInfo.schema.ts} +3 -3
  74. package/src/cfg/generated/_utils/schemas/{GRPCStatsSerializer.schema.ts → GRPCStats.schema.ts} +3 -3
  75. package/src/cfg/generated/_utils/schemas/JobListRequest.schema.ts +28 -0
  76. package/src/cfg/generated/_utils/schemas/{MethodInfoSerializer.schema.ts → MethodInfo.schema.ts} +3 -3
  77. package/src/cfg/generated/_utils/schemas/MethodList.schema.ts +2 -2
  78. package/src/cfg/generated/_utils/schemas/{MethodStatsSerializer.schema.ts → MethodStats.schema.ts} +3 -3
  79. package/src/cfg/generated/_utils/schemas/{MethodSummarySerializer.schema.ts → MethodSummary.schema.ts} +5 -5
  80. package/src/cfg/generated/_utils/schemas/PaginatedApiKeyList.schema.ts +24 -0
  81. package/src/cfg/generated/_utils/schemas/PaginatedJobListList.schema.ts +24 -0
  82. package/src/cfg/generated/_utils/schemas/PaginatedPublishList.schema.ts +24 -0
  83. package/src/cfg/generated/_utils/schemas/PaginatedRecentRequestList.schema.ts +24 -0
  84. package/src/cfg/generated/_utils/schemas/PaginatedScheduledJobList.schema.ts +24 -0
  85. package/src/cfg/generated/_utils/schemas/PaginatedServiceSummaryList.schema.ts +24 -0
  86. package/src/cfg/generated/_utils/schemas/ProtoFileDetail.schema.ts +27 -0
  87. package/src/cfg/generated/_utils/schemas/ProtoFileList.schema.ts +23 -0
  88. package/src/cfg/generated/_utils/schemas/ProtoGenerateError.schema.ts +20 -0
  89. package/src/cfg/generated/_utils/schemas/ProtoGenerateRequestRequest.schema.ts +20 -0
  90. package/src/cfg/generated/_utils/schemas/ProtoGenerateResponse.schema.ts +24 -0
  91. package/src/cfg/generated/_utils/schemas/Publish.schema.ts +29 -0
  92. package/src/cfg/generated/_utils/schemas/{RecentErrorSerializer.schema.ts → RecentError.schema.ts} +3 -3
  93. package/src/cfg/generated/_utils/schemas/RecentRequest.schema.ts +5 -0
  94. package/src/cfg/generated/_utils/schemas/ServiceDetail.schema.ts +6 -6
  95. package/src/cfg/generated/_utils/schemas/ServiceMethods.schema.ts +2 -2
  96. package/src/cfg/generated/_utils/schemas/{ServiceStatsSerializer.schema.ts → ServiceStats.schema.ts} +3 -3
  97. package/src/cfg/generated/_utils/schemas/ServiceSummary.schema.ts +26 -0
  98. package/src/cfg/generated/_utils/schemas/User.schema.ts +2 -0
  99. package/src/cfg/generated/_utils/schemas/index.ts +31 -21
  100. package/src/cfg/generated/cfg__accounts/models.ts +17 -0
  101. package/src/cfg/generated/cfg__accounts__user_profile/models.ts +17 -0
  102. package/src/cfg/generated/cfg__centrifugo/client.ts +1 -1
  103. package/src/cfg/generated/cfg__centrifugo/models.ts +19 -0
  104. package/src/cfg/generated/cfg__centrifugo__centrifugo_auth/client.ts +26 -0
  105. package/src/cfg/generated/cfg__centrifugo__centrifugo_auth/index.ts +2 -0
  106. package/src/cfg/generated/cfg__centrifugo__centrifugo_auth/models.ts +16 -0
  107. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +6 -5
  108. package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +37 -11
  109. package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/client.ts +0 -10
  110. package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/models.ts +0 -26
  111. package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +10 -1
  112. package/src/cfg/generated/cfg__grpc__grpc_api_keys/client.ts +56 -0
  113. package/src/cfg/generated/cfg__grpc__grpc_api_keys/index.ts +2 -0
  114. package/src/cfg/generated/cfg__grpc__grpc_api_keys/models.ts +79 -0
  115. package/src/cfg/generated/cfg__grpc__grpc_charts/models.ts +0 -96
  116. package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +12 -12
  117. package/src/cfg/generated/cfg__grpc__grpc_monitoring/client.ts +4 -25
  118. package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +111 -49
  119. package/src/cfg/generated/cfg__grpc__grpc_proto_files/client.ts +54 -0
  120. package/src/cfg/generated/cfg__grpc__grpc_proto_files/index.ts +2 -0
  121. package/src/cfg/generated/cfg__grpc__grpc_proto_files/models.ts +35 -0
  122. package/src/cfg/generated/cfg__grpc__grpc_services/client.ts +6 -5
  123. package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +57 -8
  124. package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +2 -2
  125. package/src/cfg/generated/cfg__rq__rq_jobs/client.ts +8 -8
  126. package/src/cfg/generated/cfg__rq__rq_jobs/models.ts +65 -0
  127. package/src/cfg/generated/cfg__rq__rq_registries/client.ts +37 -34
  128. package/src/cfg/generated/cfg__rq__rq_registries/models.ts +65 -0
  129. package/src/cfg/generated/cfg__rq__rq_schedules/client.ts +4 -4
  130. package/src/cfg/generated/cfg__rq__rq_schedules/models.ts +25 -0
  131. package/src/cfg/generated/client.ts +9 -0
  132. package/src/cfg/generated/index.ts +27 -8
  133. package/src/cfg/generated/{schema.ts → schema.json} +19166 -18258
  134. package/src/index.ts +7 -2
  135. package/src/types/auth.ts +40 -0
  136. package/src/types/index.ts +7 -0
  137. package/src/cfg/contexts/AccountsContext.tsx +0 -205
  138. package/src/cfg/generated/_utils/schemas/ConnectionTokenRequestRequest.schema.ts +0 -20
  139. package/src/cfg/generated/_utils/schemas/ErrorDistributionChartSerializer.schema.ts +0 -24
  140. package/src/cfg/generated/_utils/schemas/MonitoringServiceStatsSerializer.schema.ts +0 -24
  141. package/src/cfg/generated/_utils/schemas/RecentPublishes.schema.ts +0 -23
  142. package/src/cfg/generated/_utils/schemas/RequestVolumeChartSerializer.schema.ts +0 -25
  143. package/src/cfg/generated/_utils/schemas/ResponseTimeChartSerializer.schema.ts +0 -25
  144. package/src/cfg/generated/_utils/schemas/ServerUptimeChartSerializer.schema.ts +0 -25
  145. package/src/cfg/generated/_utils/schemas/ServiceActivityChartSerializer.schema.ts +0 -24
  146. package/src/cfg/generated/_utils/schemas/ServiceList.schema.ts +0 -21
@@ -27,6 +27,7 @@ export * from './cfg__accounts__auth'
27
27
  export * from './cfg__newsletter__bulk_email'
28
28
  export * from './cfg__newsletter__campaigns'
29
29
  export * from './cfg__centrifugo__centrifugo_admin_api'
30
+ export * from './cfg__centrifugo__centrifugo_auth'
30
31
  export * from './cfg__centrifugo__centrifugo_monitoring'
31
32
  export * from './cfg__centrifugo__centrifugo_testing'
32
33
  export * from './cfg__dashboard__dashboard_api_zones'
@@ -53,9 +54,11 @@ export * from './cfg__accounts__user_profile'
53
54
  export * from './cfg__accounts'
54
55
  export * from './cfg__centrifugo'
55
56
  export * from './cfg__endpoints'
57
+ export * from './cfg__grpc__grpc_api_keys'
56
58
  export * from './cfg__grpc__grpc_charts'
57
59
  export * from './cfg__grpc__grpc_configuration'
58
60
  export * from './cfg__grpc__grpc_monitoring'
61
+ export * from './cfg__grpc__grpc_proto_files'
59
62
  export * from './cfg__grpc__grpc_services'
60
63
  export * from './cfg__grpc__grpc_testing'
61
64
  export * from './cfg__health'
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Zod schema for ApiKey
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * API Key information (read-only).
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * API Key information (read-only).
11
+ */
12
+ export const ApiKeySchema = z.object({
13
+ id: z.int(),
14
+ name: z.string(),
15
+ key_type: z.string(),
16
+ masked_key: z.string(),
17
+ is_active: z.boolean(),
18
+ is_valid: z.boolean(),
19
+ user_id: z.int(),
20
+ username: z.string(),
21
+ user_email: z.string(),
22
+ request_count: z.int(),
23
+ last_used_at: z.iso.datetime().nullable(),
24
+ expires_at: z.iso.datetime().nullable(),
25
+ created_at: z.iso.datetime(),
26
+ created_by: z.string().nullable(),
27
+ })
28
+
29
+ /**
30
+ * Infer TypeScript type from Zod schema
31
+ */
32
+ export type ApiKey = z.infer<typeof ApiKeySchema>
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Zod schema for ApiKeyStats
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * API Key usage statistics.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * API Key usage statistics.
11
+ */
12
+ export const ApiKeyStatsSchema = z.object({
13
+ total_keys: z.int(),
14
+ active_keys: z.int(),
15
+ expired_keys: z.int(),
16
+ total_requests: z.int(),
17
+ keys_by_type: z.record(z.string(), z.any()),
18
+ })
19
+
20
+ /**
21
+ * Infer TypeScript type from Zod schema
22
+ */
23
+ export type ApiKeyStats = z.infer<typeof ApiKeyStatsSchema>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Zod schema for CentrifugoToken
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Nested serializer for Centrifugo WebSocket connection token.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Nested serializer for Centrifugo WebSocket connection token.
11
+ */
12
+ export const CentrifugoTokenSchema = z.object({
13
+ token: z.string(),
14
+ centrifugo_url: z.url(),
15
+ expires_at: z.iso.datetime(),
16
+ channels: z.array(z.string()),
17
+ })
18
+
19
+ /**
20
+ * Infer TypeScript type from Zod schema
21
+ */
22
+ export type CentrifugoToken = z.infer<typeof CentrifugoTokenSchema>
@@ -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
  /**
@@ -2,17 +2,18 @@
2
2
  * Zod schema for ConnectionTokenResponse
3
3
  *
4
4
  * This schema provides runtime validation and type inference.
5
- * * Response model for connection token.
5
+ * * Response model for Centrifugo connection token.
6
6
  * */
7
7
  import { z } from 'zod'
8
8
 
9
9
  /**
10
- * Response model for connection token.
10
+ * Response model for Centrifugo connection token.
11
11
  */
12
12
  export const ConnectionTokenResponseSchema = z.object({
13
13
  token: z.string(),
14
14
  centrifugo_url: z.string(),
15
15
  expires_at: z.string(),
16
+ channels: z.array(z.string()),
16
17
  })
17
18
 
18
19
  /**
@@ -5,21 +5,21 @@
5
5
  * * Combined dashboard charts data.
6
6
  * */
7
7
  import { z } from 'zod'
8
- import { ErrorDistributionChartSerializerSchema } from './ErrorDistributionChartSerializer.schema'
9
- import { RequestVolumeChartSerializerSchema } from './RequestVolumeChartSerializer.schema'
10
- import { ResponseTimeChartSerializerSchema } from './ResponseTimeChartSerializer.schema'
11
- import { ServerUptimeChartSerializerSchema } from './ServerUptimeChartSerializer.schema'
12
- import { ServiceActivityChartSerializerSchema } from './ServiceActivityChartSerializer.schema'
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
13
 
14
14
  /**
15
15
  * Combined dashboard charts data.
16
16
  */
17
17
  export const DashboardChartsSchema = z.object({
18
- server_uptime: ServerUptimeChartSerializerSchema,
19
- request_volume: RequestVolumeChartSerializerSchema,
20
- response_time: ResponseTimeChartSerializerSchema,
21
- service_activity: ServiceActivityChartSerializerSchema,
22
- error_distribution: ErrorDistributionChartSerializerSchema,
18
+ server_uptime: ServerUptimeChartSchema,
19
+ request_volume: RequestVolumeChartSchema,
20
+ response_time: ResponseTimeChartSchema,
21
+ service_activity: ServiceActivityChartSchema,
22
+ error_distribution: ErrorDistributionChartSchema,
23
23
  period_hours: z.int(),
24
24
  generated_at: z.string(),
25
25
  })
@@ -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 { GRPCFeaturesSerializerSchema } from './GRPCFeaturesSerializer.schema'
9
- import { GRPCFrameworkConfigSerializerSchema } from './GRPCFrameworkConfigSerializer.schema'
10
- import { GRPCServerConfigSerializerSchema } from './GRPCServerConfigSerializer.schema'
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: GRPCServerConfigSerializerSchema,
17
- framework: GRPCFrameworkConfigSerializerSchema,
18
- features: GRPCFeaturesSerializerSchema,
16
+ server: GRPCServerConfigSchema,
17
+ framework: GRPCFrameworkConfigSchema,
18
+ features: GRPCFeaturesSchema,
19
19
  registered_services: z.int(),
20
20
  total_methods: z.int(),
21
21
  })
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Zod schema for GRPCExampleSerializer
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 GRPCExampleSerializerSchema = z.object({
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 GRPCExampleSerializer = z.infer<typeof GRPCExampleSerializerSchema>
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 { GRPCExampleSerializerSchema } from './GRPCExampleSerializer.schema'
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(GRPCExampleSerializerSchema).optional(),
14
+ examples: z.array(GRPCExampleSchema).optional(),
15
15
  total_examples: z.int(),
16
16
  })
17
17
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Zod schema for GRPCFeaturesSerializer
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 GRPCFeaturesSerializerSchema = z.object({
13
- jwt_auth: z.boolean(),
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 GRPCFeaturesSerializer = z.infer<typeof GRPCFeaturesSerializerSchema>
22
+ export type GRPCFeatures = z.infer<typeof GRPCFeaturesSchema>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Zod schema for GRPCFrameworkConfigSerializer
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 GRPCFrameworkConfigSerializerSchema = z.object({
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 GRPCFrameworkConfigSerializer = z.infer<typeof GRPCFrameworkConfigSerializerSchema>
22
+ export type GRPCFrameworkConfig = z.infer<typeof GRPCFrameworkConfigSchema>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Zod schema for GRPCInterceptorInfoSerializer
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 GRPCInterceptorInfoSerializerSchema = z.object({
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 GRPCInterceptorInfoSerializer = z.infer<typeof GRPCInterceptorInfoSerializerSchema>
20
+ export type GRPCInterceptorInfo = z.infer<typeof GRPCInterceptorInfoSchema>
@@ -5,6 +5,7 @@
5
5
  * * Overview statistics for gRPC requests.
6
6
  * */
7
7
  import { z } from 'zod'
8
+ import { GRPCServerStatusSchema } from './GRPCServerStatus.schema'
8
9
 
9
10
  /**
10
11
  * Overview statistics for gRPC requests.
@@ -17,8 +18,9 @@ export const GRPCOverviewStatsSchema = z.object({
17
18
  timeout: z.int(),
18
19
  success_rate: z.number(),
19
20
  avg_duration_ms: z.number(),
20
- p95_duration_ms: z.number(),
21
+ p95_duration_ms: z.number().nullable(),
21
22
  period_hours: z.int(),
23
+ server: GRPCServerStatusSchema,
22
24
  })
23
25
 
24
26
  /**
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for GRPCRegisteredService
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * Information about a registered gRPC service.
6
+ * */
7
+ import { z } from 'zod'
8
+
9
+ /**
10
+ * Information about a registered gRPC service.
11
+ */
12
+ export const GRPCRegisteredServiceSchema = z.object({
13
+ name: z.string(),
14
+ full_name: z.string(),
15
+ methods_count: z.int(),
16
+ request_count: z.int(),
17
+ error_count: z.int(),
18
+ success_rate: z.number(),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type GRPCRegisteredService = z.infer<typeof GRPCRegisteredServiceSchema>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Zod schema for GRPCServerConfigSerializer
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 GRPCServerConfigSerializerSchema = z.object({
12
+ export const GRPCServerConfigSchema = z.object({
13
13
  host: z.string(),
14
14
  port: z.int(),
15
15
  enabled: z.boolean(),
16
- max_workers: z.int(),
16
+ max_concurrent_streams: z.int().nullable().optional(),
17
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 GRPCServerConfigSerializer = z.infer<typeof GRPCServerConfigSerializerSchema>
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 { GRPCInterceptorInfoSerializerSchema } from './GRPCInterceptorInfoSerializer.schema'
9
- import { GRPCServiceInfoSerializerSchema } from './GRPCServiceInfoSerializer.schema'
10
- import { GRPCStatsSerializerSchema } from './GRPCStatsSerializer.schema'
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.
@@ -17,9 +17,9 @@ export const GRPCServerInfoSchema = z.object({
17
17
  address: z.string(),
18
18
  started_at: z.string().nullable().optional(),
19
19
  uptime_seconds: z.int().nullable().optional(),
20
- services: z.array(GRPCServiceInfoSerializerSchema).optional(),
21
- interceptors: z.array(GRPCInterceptorInfoSerializerSchema).optional(),
22
- stats: GRPCStatsSerializerSchema,
20
+ services: z.array(GRPCServiceInfoSchema).optional(),
21
+ interceptors: z.array(GRPCInterceptorInfoSchema).optional(),
22
+ stats: GRPCStatsSchema,
23
23
  })
24
24
 
25
25
  /**
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Zod schema for GRPCServerStatus
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * * gRPC server status and information for overview stats.
6
+ * */
7
+ import { z } from 'zod'
8
+ import { GRPCRegisteredServiceSchema } from './GRPCRegisteredService.schema'
9
+
10
+ /**
11
+ * gRPC server status and information for overview stats.
12
+ */
13
+ export const GRPCServerStatusSchema = z.object({
14
+ status: z.string(),
15
+ is_running: z.boolean(),
16
+ host: z.string(),
17
+ port: z.int(),
18
+ address: z.string(),
19
+ pid: z.int().nullable(),
20
+ started_at: z.iso.datetime().nullable(),
21
+ uptime_seconds: z.int(),
22
+ uptime_display: z.string(),
23
+ registered_services_count: z.int(),
24
+ enable_reflection: z.boolean(),
25
+ enable_health_check: z.boolean(),
26
+ last_heartbeat: z.iso.datetime().nullable(),
27
+ services: z.array(GRPCRegisteredServiceSchema),
28
+ services_healthy: z.boolean(),
29
+ })
30
+
31
+ /**
32
+ * Infer TypeScript type from Zod schema
33
+ */
34
+ export type GRPCServerStatus = z.infer<typeof GRPCServerStatusSchema>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Zod schema for GRPCServiceInfoSerializer
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 GRPCServiceInfoSerializerSchema = z.object({
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 GRPCServiceInfoSerializer = z.infer<typeof GRPCServiceInfoSerializerSchema>
22
+ export type GRPCServiceInfo = z.infer<typeof GRPCServiceInfoSchema>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Zod schema for GRPCStatsSerializer
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 GRPCStatsSerializerSchema = z.object({
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 GRPCStatsSerializer = z.infer<typeof GRPCStatsSerializerSchema>
21
+ export type GRPCStats = z.infer<typeof GRPCStatsSchema>
@@ -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>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Zod schema for MethodInfoSerializer
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 MethodInfoSerializerSchema = z.object({
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 MethodInfoSerializer = z.infer<typeof MethodInfoSerializerSchema>
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 { MethodStatsSerializerSchema } from './MethodStatsSerializer.schema'
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(MethodStatsSerializerSchema),
14
+ methods: z.array(MethodStatsSchema),
15
15
  total_methods: z.int(),
16
16
  })
17
17
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Zod schema for MethodStatsSerializer
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 MethodStatsSerializerSchema = z.object({
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 MethodStatsSerializer = z.infer<typeof MethodStatsSerializerSchema>
25
+ export type MethodStats = z.infer<typeof MethodStatsSchema>
@@ -1,25 +1,25 @@
1
1
  /**
2
- * Zod schema for MethodSummarySerializer
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 { MethodStatsSerializerSchema } from './MethodStatsSerializer.schema'
8
+ import { MethodStatsSchema } from './MethodStats.schema'
9
9
 
10
10
  /**
11
11
  * Summary information for a method.
12
12
  */
13
- export const MethodSummarySerializerSchema = z.object({
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: MethodStatsSerializerSchema,
19
+ stats: MethodStatsSchema,
20
20
  })
21
21
 
22
22
  /**
23
23
  * Infer TypeScript type from Zod schema
24
24
  */
25
- export type MethodSummarySerializer = z.infer<typeof MethodSummarySerializerSchema>
25
+ export type MethodSummary = z.infer<typeof MethodSummarySchema>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Zod schema for PaginatedApiKeyList
3
+ *
4
+ * This schema provides runtime validation and type inference.
5
+ * */
6
+ import { z } from 'zod'
7
+ import { ApiKeySchema } from './ApiKey.schema'
8
+
9
+ export const PaginatedApiKeyListSchema = z.object({
10
+ count: z.int(),
11
+ page: z.int(),
12
+ pages: z.int(),
13
+ page_size: z.int(),
14
+ has_next: z.boolean(),
15
+ has_previous: z.boolean(),
16
+ next_page: z.int().nullable().optional(),
17
+ previous_page: z.int().nullable().optional(),
18
+ results: z.array(ApiKeySchema),
19
+ })
20
+
21
+ /**
22
+ * Infer TypeScript type from Zod schema
23
+ */
24
+ export type PaginatedApiKeyList = z.infer<typeof PaginatedApiKeyListSchema>