@djangocfg/api 1.2.23 → 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 +4025 -3009
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3089 -1662
- package/dist/index.d.ts +3089 -1662
- package/dist/index.mjs +4009 -3002
- 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 +5 -5
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_api_keys.ts +78 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_proto_files.ts +91 -0
- 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 +2 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +3 -2
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +5 -5
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_api_keys.ts +66 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_proto_files.ts +83 -0
- 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 +2 -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/Command.schema.ts +13 -0
- package/src/cfg/generated/_utils/schemas/DashboardCharts.schema.ts +10 -10
- 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/{GRPCInterceptorInfoSerializer.schema.ts → GRPCInterceptorInfo.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/GRPCOverviewStats.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/{GRPCServerConfigSerializer.schema.ts → GRPCServerConfig.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/GRPCServerInfo.schema.ts +6 -6
- 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/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/{MonitoringServiceStatsSerializer.schema.ts → MonitoringServiceStats.schema.ts} +3 -3
- 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 +5 -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/{ServiceStatsSerializer.schema.ts → ServiceStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/index.ts +26 -19
- 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_monitoring/client.ts +6 -5
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +37 -11
- package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +10 -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/models.ts +0 -96
- package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +10 -10
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +15 -5
- 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 +8 -8
- package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +2 -2
- 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 +6 -0
- package/src/cfg/generated/index.ts +10 -0
- package/src/cfg/generated/schema.ts +1613 -935
- package/src/cfg/generated/_utils/schemas/ErrorDistributionChartSerializer.schema.ts +0 -24
- package/src/cfg/generated/_utils/schemas/RecentPublishes.schema.ts +0 -23
- package/src/cfg/generated/_utils/schemas/RequestVolumeChartSerializer.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/ResponseTimeChartSerializer.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/ServerUptimeChartSerializer.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/ServiceActivityChartSerializer.schema.ts +0 -24
|
@@ -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>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for PaginatedJobListList
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* */
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { JobListSchema } from './JobList.schema'
|
|
8
|
+
|
|
9
|
+
export const PaginatedJobListListSchema = 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(JobListSchema),
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Infer TypeScript type from Zod schema
|
|
23
|
+
*/
|
|
24
|
+
export type PaginatedJobListList = z.infer<typeof PaginatedJobListListSchema>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for PaginatedPublishList
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* */
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { PublishSchema } from './Publish.schema'
|
|
8
|
+
|
|
9
|
+
export const PaginatedPublishListSchema = 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(PublishSchema),
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Infer TypeScript type from Zod schema
|
|
23
|
+
*/
|
|
24
|
+
export type PaginatedPublishList = z.infer<typeof PaginatedPublishListSchema>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for PaginatedScheduledJobList
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* */
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { ScheduledJobSchema } from './ScheduledJob.schema'
|
|
8
|
+
|
|
9
|
+
export const PaginatedScheduledJobListSchema = 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(ScheduledJobSchema),
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Infer TypeScript type from Zod schema
|
|
23
|
+
*/
|
|
24
|
+
export type PaginatedScheduledJobList = z.infer<typeof PaginatedScheduledJobListSchema>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for ProtoFileDetail
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Proto file metadata.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Proto file metadata.
|
|
11
|
+
*/
|
|
12
|
+
export const ProtoFileDetailSchema = z.object({
|
|
13
|
+
app_label: z.string(),
|
|
14
|
+
filename: z.string(),
|
|
15
|
+
size_bytes: z.int(),
|
|
16
|
+
package: z.string(),
|
|
17
|
+
messages_count: z.int(),
|
|
18
|
+
services_count: z.int(),
|
|
19
|
+
created_at: z.number(),
|
|
20
|
+
modified_at: z.number(),
|
|
21
|
+
download_url: z.string().optional(),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Infer TypeScript type from Zod schema
|
|
26
|
+
*/
|
|
27
|
+
export type ProtoFileDetail = z.infer<typeof ProtoFileDetailSchema>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for ProtoFileList
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * List of proto files.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
import { ProtoFileDetailSchema } from './ProtoFileDetail.schema'
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* List of proto files.
|
|
12
|
+
*/
|
|
13
|
+
export const ProtoFileListSchema = z.object({
|
|
14
|
+
files: z.array(ProtoFileDetailSchema),
|
|
15
|
+
total_files: z.int(),
|
|
16
|
+
proto_dir: z.string(),
|
|
17
|
+
download_all_url: z.string().optional(),
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Infer TypeScript type from Zod schema
|
|
22
|
+
*/
|
|
23
|
+
export type ProtoFileList = z.infer<typeof ProtoFileListSchema>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for ProtoGenerateError
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Proto generation error.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Proto generation error.
|
|
11
|
+
*/
|
|
12
|
+
export const ProtoGenerateErrorSchema = z.object({
|
|
13
|
+
app: z.string(),
|
|
14
|
+
error: z.string(),
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Infer TypeScript type from Zod schema
|
|
19
|
+
*/
|
|
20
|
+
export type ProtoGenerateError = z.infer<typeof ProtoGenerateErrorSchema>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for ProtoGenerateRequestRequest
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Request to generate proto files.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Request to generate proto files.
|
|
11
|
+
*/
|
|
12
|
+
export const ProtoGenerateRequestRequestSchema = z.object({
|
|
13
|
+
apps: z.array(z.string().min(1)).optional(),
|
|
14
|
+
force: z.boolean().optional(),
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Infer TypeScript type from Zod schema
|
|
19
|
+
*/
|
|
20
|
+
export type ProtoGenerateRequestRequest = z.infer<typeof ProtoGenerateRequestRequestSchema>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for ProtoGenerateResponse
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Response from proto generation.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
import { ProtoGenerateErrorSchema } from './ProtoGenerateError.schema'
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Response from proto generation.
|
|
12
|
+
*/
|
|
13
|
+
export const ProtoGenerateResponseSchema = z.object({
|
|
14
|
+
status: z.string(),
|
|
15
|
+
generated: z.array(z.string()),
|
|
16
|
+
generated_count: z.int(),
|
|
17
|
+
errors: z.array(ProtoGenerateErrorSchema),
|
|
18
|
+
proto_dir: z.string(),
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Infer TypeScript type from Zod schema
|
|
23
|
+
*/
|
|
24
|
+
export type ProtoGenerateResponse = z.infer<typeof ProtoGenerateResponseSchema>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for Publish
|
|
3
|
+
*
|
|
4
|
+
* This schema provides runtime validation and type inference.
|
|
5
|
+
* * Single publish item for DRF pagination.
|
|
6
|
+
* */
|
|
7
|
+
import { z } from 'zod'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Single publish item for DRF pagination.
|
|
11
|
+
*/
|
|
12
|
+
export const PublishSchema = z.object({
|
|
13
|
+
message_id: z.string(),
|
|
14
|
+
channel: z.string(),
|
|
15
|
+
status: z.string(),
|
|
16
|
+
wait_for_ack: z.boolean(),
|
|
17
|
+
acks_received: z.int(),
|
|
18
|
+
acks_expected: z.int(),
|
|
19
|
+
duration_ms: z.number().nullable(),
|
|
20
|
+
created_at: z.iso.datetime(),
|
|
21
|
+
completed_at: z.iso.datetime().nullable(),
|
|
22
|
+
error_code: z.string().nullable(),
|
|
23
|
+
error_message: z.string().nullable(),
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Infer TypeScript type from Zod schema
|
|
28
|
+
*/
|
|
29
|
+
export type Publish = z.infer<typeof PublishSchema>
|
package/src/cfg/generated/_utils/schemas/{RecentErrorSerializer.schema.ts → RecentError.schema.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for RecentError
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Recent error information.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Recent error information.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const RecentErrorSchema = z.object({
|
|
13
13
|
method: z.string(),
|
|
14
14
|
error_message: z.string(),
|
|
15
15
|
grpc_status_code: z.string(),
|
|
@@ -19,4 +19,4 @@ export const RecentErrorSerializerSchema = z.object({
|
|
|
19
19
|
/**
|
|
20
20
|
* Infer TypeScript type from Zod schema
|
|
21
21
|
*/
|
|
22
|
-
export type
|
|
22
|
+
export type RecentError = z.infer<typeof RecentErrorSchema>
|
|
@@ -20,6 +20,11 @@ export const RecentRequestSchema = z.object({
|
|
|
20
20
|
error_message: z.string().optional(),
|
|
21
21
|
created_at: z.string(),
|
|
22
22
|
client_ip: z.string().optional(),
|
|
23
|
+
user_id: z.int().nullable().optional(),
|
|
24
|
+
username: z.string().nullable().optional(),
|
|
25
|
+
is_authenticated: z.boolean().optional(),
|
|
26
|
+
api_key_id: z.int().nullable().optional(),
|
|
27
|
+
api_key_name: z.string().nullable().optional(),
|
|
23
28
|
})
|
|
24
29
|
|
|
25
30
|
/**
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* * Detailed information about a service.
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { MethodInfoSchema } from './MethodInfo.schema'
|
|
9
|
+
import { RecentErrorSchema } from './RecentError.schema'
|
|
10
|
+
import { ServiceStatsSchema } from './ServiceStats.schema'
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Detailed information about a service.
|
|
@@ -20,9 +20,9 @@ export const ServiceDetailSchema = z.object({
|
|
|
20
20
|
file_path: z.string().optional(),
|
|
21
21
|
class_name: z.string(),
|
|
22
22
|
base_class: z.string().optional(),
|
|
23
|
-
methods: z.array(
|
|
24
|
-
stats:
|
|
25
|
-
recent_errors: z.array(
|
|
23
|
+
methods: z.array(MethodInfoSchema).optional(),
|
|
24
|
+
stats: ServiceStatsSchema,
|
|
25
|
+
recent_errors: z.array(RecentErrorSchema).optional(),
|
|
26
26
|
})
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* * List of gRPC services with statistics.
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
-
import {
|
|
8
|
+
import { MonitoringServiceStatsSchema } from './MonitoringServiceStats.schema'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* List of gRPC services with statistics.
|
|
12
12
|
*/
|
|
13
13
|
export const ServiceListSchema = z.object({
|
|
14
|
-
services: z.array(
|
|
14
|
+
services: z.array(MonitoringServiceStatsSchema),
|
|
15
15
|
total_services: z.int(),
|
|
16
16
|
})
|
|
17
17
|
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* * List of methods for a service.
|
|
6
6
|
* */
|
|
7
7
|
import { z } from 'zod'
|
|
8
|
-
import {
|
|
8
|
+
import { MethodSummarySchema } from './MethodSummary.schema'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* List of methods for a service.
|
|
12
12
|
*/
|
|
13
13
|
export const ServiceMethodsSchema = z.object({
|
|
14
14
|
service_name: z.string(),
|
|
15
|
-
methods: z.array(
|
|
15
|
+
methods: z.array(MethodSummarySchema).optional(),
|
|
16
16
|
total_methods: z.int(),
|
|
17
17
|
})
|
|
18
18
|
|
package/src/cfg/generated/_utils/schemas/{ServiceStatsSerializer.schema.ts → ServiceStats.schema.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod schema for
|
|
2
|
+
* Zod schema for ServiceStats
|
|
3
3
|
*
|
|
4
4
|
* This schema provides runtime validation and type inference.
|
|
5
5
|
* * Service statistics.
|
|
@@ -9,7 +9,7 @@ import { z } from 'zod'
|
|
|
9
9
|
/**
|
|
10
10
|
* Service statistics.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const ServiceStatsSchema = z.object({
|
|
13
13
|
total_requests: z.int().optional(),
|
|
14
14
|
successful: z.int().optional(),
|
|
15
15
|
errors: z.int().optional(),
|
|
@@ -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 ServiceStats = z.infer<typeof ServiceStatsSchema>
|
|
@@ -20,6 +20,8 @@ export * from './APIZone.schema'
|
|
|
20
20
|
export * from './APIZonesSummary.schema'
|
|
21
21
|
export * from './ActivityEntry.schema'
|
|
22
22
|
export * from './ActivityTrackerDay.schema'
|
|
23
|
+
export * from './ApiKey.schema'
|
|
24
|
+
export * from './ApiKeyStats.schema'
|
|
23
25
|
export * from './AppStatistics.schema'
|
|
24
26
|
export * from './ArchiveItem.schema'
|
|
25
27
|
export * from './ArchiveItemChunk.schema'
|
|
@@ -105,30 +107,30 @@ export * from './EmailLog.schema'
|
|
|
105
107
|
export * from './Endpoint.schema'
|
|
106
108
|
export * from './EndpointsStatus.schema'
|
|
107
109
|
export * from './ErrorDistributionChart.schema'
|
|
108
|
-
export * from './ErrorDistributionChartSerializer.schema'
|
|
109
110
|
export * from './ErrorDistributionDataPoint.schema'
|
|
110
111
|
export * from './ErrorResponse.schema'
|
|
111
112
|
export * from './GRPCCallRequestRequest.schema'
|
|
112
113
|
export * from './GRPCCallResponse.schema'
|
|
113
114
|
export * from './GRPCConfig.schema'
|
|
114
115
|
export * from './GRPCConfigDashboard.schema'
|
|
115
|
-
export * from './
|
|
116
|
+
export * from './GRPCExample.schema'
|
|
116
117
|
export * from './GRPCExamplesList.schema'
|
|
117
|
-
export * from './
|
|
118
|
-
export * from './
|
|
118
|
+
export * from './GRPCFeatures.schema'
|
|
119
|
+
export * from './GRPCFrameworkConfig.schema'
|
|
119
120
|
export * from './GRPCHealthCheck.schema'
|
|
120
|
-
export * from './
|
|
121
|
+
export * from './GRPCInterceptorInfo.schema'
|
|
121
122
|
export * from './GRPCOverviewStats.schema'
|
|
122
|
-
export * from './
|
|
123
|
+
export * from './GRPCServerConfig.schema'
|
|
123
124
|
export * from './GRPCServerInfo.schema'
|
|
124
|
-
export * from './
|
|
125
|
-
export * from './
|
|
125
|
+
export * from './GRPCServiceInfo.schema'
|
|
126
|
+
export * from './GRPCStats.schema'
|
|
126
127
|
export * from './GRPCTestLog.schema'
|
|
127
128
|
export * from './HealthCheck.schema'
|
|
128
129
|
export * from './JWTConfig.schema'
|
|
129
130
|
export * from './JobActionResponse.schema'
|
|
130
131
|
export * from './JobDetail.schema'
|
|
131
132
|
export * from './JobList.schema'
|
|
133
|
+
export * from './JobListRequest.schema'
|
|
132
134
|
export * from './LeadSubmission.schema'
|
|
133
135
|
export * from './LeadSubmissionError.schema'
|
|
134
136
|
export * from './LeadSubmissionRequest.schema'
|
|
@@ -139,11 +141,11 @@ export * from './Message.schema'
|
|
|
139
141
|
export * from './MessageCreate.schema'
|
|
140
142
|
export * from './MessageCreateRequest.schema'
|
|
141
143
|
export * from './MessageRequest.schema'
|
|
142
|
-
export * from './
|
|
144
|
+
export * from './MethodInfo.schema'
|
|
143
145
|
export * from './MethodList.schema'
|
|
144
|
-
export * from './
|
|
145
|
-
export * from './
|
|
146
|
-
export * from './
|
|
146
|
+
export * from './MethodStats.schema'
|
|
147
|
+
export * from './MethodSummary.schema'
|
|
148
|
+
export * from './MonitoringServiceStats.schema'
|
|
147
149
|
export * from './Newsletter.schema'
|
|
148
150
|
export * from './NewsletterCampaign.schema'
|
|
149
151
|
export * from './NewsletterCampaignRequest.schema'
|
|
@@ -153,6 +155,7 @@ export * from './OTPRequestRequest.schema'
|
|
|
153
155
|
export * from './OTPRequestResponse.schema'
|
|
154
156
|
export * from './OTPVerifyRequest.schema'
|
|
155
157
|
export * from './OTPVerifyResponse.schema'
|
|
158
|
+
export * from './PaginatedApiKeyList.schema'
|
|
156
159
|
export * from './PaginatedArchiveItemChunkList.schema'
|
|
157
160
|
export * from './PaginatedArchiveItemList.schema'
|
|
158
161
|
export * from './PaginatedArchiveSearchResultList.schema'
|
|
@@ -161,6 +164,7 @@ export * from './PaginatedChatSessionList.schema'
|
|
|
161
164
|
export * from './PaginatedDocumentArchiveListList.schema'
|
|
162
165
|
export * from './PaginatedDocumentList.schema'
|
|
163
166
|
export * from './PaginatedEmailLogList.schema'
|
|
167
|
+
export * from './PaginatedJobListList.schema'
|
|
164
168
|
export * from './PaginatedLeadSubmissionList.schema'
|
|
165
169
|
export * from './PaginatedMessageList.schema'
|
|
166
170
|
export * from './PaginatedNewsletterCampaignList.schema'
|
|
@@ -169,6 +173,8 @@ export * from './PaginatedNewsletterSubscriptionList.schema'
|
|
|
169
173
|
export * from './PaginatedPaymentListList.schema'
|
|
170
174
|
export * from './PaginatedPublicCategoryList.schema'
|
|
171
175
|
export * from './PaginatedPublicDocumentListList.schema'
|
|
176
|
+
export * from './PaginatedPublishList.schema'
|
|
177
|
+
export * from './PaginatedScheduledJobList.schema'
|
|
172
178
|
export * from './PaginatedTicketList.schema'
|
|
173
179
|
export * from './PatchedArchiveItemChunkRequest.schema'
|
|
174
180
|
export * from './PatchedArchiveItemRequest.schema'
|
|
@@ -186,9 +192,15 @@ export * from './PaymentDetail.schema'
|
|
|
186
192
|
export * from './PaymentList.schema'
|
|
187
193
|
export * from './PaymentsConfig.schema'
|
|
188
194
|
export * from './PaymentsNowPayments.schema'
|
|
195
|
+
export * from './ProtoFileDetail.schema'
|
|
196
|
+
export * from './ProtoFileList.schema'
|
|
197
|
+
export * from './ProtoGenerateError.schema'
|
|
198
|
+
export * from './ProtoGenerateRequestRequest.schema'
|
|
199
|
+
export * from './ProtoGenerateResponse.schema'
|
|
189
200
|
export * from './PublicCategory.schema'
|
|
190
201
|
export * from './PublicDocument.schema'
|
|
191
202
|
export * from './PublicDocumentList.schema'
|
|
203
|
+
export * from './Publish.schema'
|
|
192
204
|
export * from './PublishTestRequestRequest.schema'
|
|
193
205
|
export * from './PublishTestResponse.schema'
|
|
194
206
|
export * from './QueueDetail.schema'
|
|
@@ -196,16 +208,13 @@ export * from './QueueStats.schema'
|
|
|
196
208
|
export * from './QuickAction.schema'
|
|
197
209
|
export * from './QuickHealth.schema'
|
|
198
210
|
export * from './RQConfig.schema'
|
|
199
|
-
export * from './
|
|
200
|
-
export * from './RecentPublishes.schema'
|
|
211
|
+
export * from './RecentError.schema'
|
|
201
212
|
export * from './RecentRequest.schema'
|
|
202
213
|
export * from './RecentUser.schema'
|
|
203
214
|
export * from './RedisQueueConfig.schema'
|
|
204
215
|
export * from './RequestVolumeChart.schema'
|
|
205
|
-
export * from './RequestVolumeChartSerializer.schema'
|
|
206
216
|
export * from './RequestVolumeDataPoint.schema'
|
|
207
217
|
export * from './ResponseTimeChart.schema'
|
|
208
|
-
export * from './ResponseTimeChartSerializer.schema'
|
|
209
218
|
export * from './ResponseTimeDataPoint.schema'
|
|
210
219
|
export * from './RunDemoRequestRequest.schema'
|
|
211
220
|
export * from './ScheduleActionResponse.schema'
|
|
@@ -217,15 +226,13 @@ export * from './Sender.schema'
|
|
|
217
226
|
export * from './ServerLifecycleChart.schema'
|
|
218
227
|
export * from './ServerLifecycleEvent.schema'
|
|
219
228
|
export * from './ServerUptimeChart.schema'
|
|
220
|
-
export * from './ServerUptimeChartSerializer.schema'
|
|
221
229
|
export * from './ServerUptimeDataPoint.schema'
|
|
222
230
|
export * from './ServiceActivityChart.schema'
|
|
223
|
-
export * from './ServiceActivityChartSerializer.schema'
|
|
224
231
|
export * from './ServiceActivityDataPoint.schema'
|
|
225
232
|
export * from './ServiceDetail.schema'
|
|
226
233
|
export * from './ServiceList.schema'
|
|
227
234
|
export * from './ServiceMethods.schema'
|
|
228
|
-
export * from './
|
|
235
|
+
export * from './ServiceStats.schema'
|
|
229
236
|
export * from './SpectacularConfig.schema'
|
|
230
237
|
export * from './StatCard.schema'
|
|
231
238
|
export * from './StressTestRequestRequest.schema'
|
|
@@ -14,7 +14,7 @@ export class CfgCentrifugo {
|
|
|
14
14
|
/**
|
|
15
15
|
* Get statistics per channel.
|
|
16
16
|
*/
|
|
17
|
-
async monitorChannelsRetrieve(): Promise<
|
|
17
|
+
async monitorChannelsRetrieve(): Promise<Models.Publish> {
|
|
18
18
|
const response = await this.client.request('GET', "/cfg/centrifugo/monitor/channels/");
|
|
19
19
|
return response;
|
|
20
20
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single publish item for DRF pagination.
|
|
3
|
+
*
|
|
4
|
+
* Response model (includes read-only fields).
|
|
5
|
+
*/
|
|
6
|
+
export interface Publish {
|
|
7
|
+
message_id: string;
|
|
8
|
+
channel: string;
|
|
9
|
+
status: string;
|
|
10
|
+
wait_for_ack: boolean;
|
|
11
|
+
acks_received: number;
|
|
12
|
+
acks_expected: number;
|
|
13
|
+
duration_ms: number | null;
|
|
14
|
+
created_at: string;
|
|
15
|
+
completed_at: string | null;
|
|
16
|
+
error_code: string | null;
|
|
17
|
+
error_message: string | null;
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -42,22 +42,23 @@ export class CfgCentrifugoMonitoring {
|
|
|
42
42
|
return response;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
async
|
|
46
|
-
async
|
|
45
|
+
async centrifugoMonitorPublishesList(channel?: string, page?: number, page_size?: number, status?: string): Promise<Models.PaginatedPublishList>;
|
|
46
|
+
async centrifugoMonitorPublishesList(params?: { channel?: string; page?: number; page_size?: number; status?: string }): Promise<Models.PaginatedPublishList>;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Get recent publishes
|
|
50
50
|
*
|
|
51
|
-
* Returns a list of recent Centrifugo publishes with their
|
|
51
|
+
* Returns a paginated list of recent Centrifugo publishes with their
|
|
52
|
+
* details. Uses standard DRF pagination.
|
|
52
53
|
*/
|
|
53
|
-
async
|
|
54
|
+
async centrifugoMonitorPublishesList(...args: any[]): Promise<Models.PaginatedPublishList> {
|
|
54
55
|
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
55
56
|
|
|
56
57
|
let params;
|
|
57
58
|
if (isParamsObject) {
|
|
58
59
|
params = args[0];
|
|
59
60
|
} else {
|
|
60
|
-
params = { channel: args[0],
|
|
61
|
+
params = { channel: args[0], page: args[1], page_size: args[2], status: args[3] };
|
|
61
62
|
}
|
|
62
63
|
const response = await this.client.request('GET', "/cfg/centrifugo/monitor/publishes/", { params });
|
|
63
64
|
return response;
|
|
@@ -39,21 +39,28 @@ export interface CentrifugoOverviewStats {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Recent publishes list.
|
|
43
42
|
*
|
|
44
43
|
* Response model (includes read-only fields).
|
|
45
44
|
*/
|
|
46
|
-
export interface
|
|
47
|
-
/**
|
|
48
|
-
publishes: Array<Record<string, any>>;
|
|
49
|
-
/** Number of publishes returned */
|
|
45
|
+
export interface PaginatedPublishList {
|
|
46
|
+
/** Total number of items across all pages */
|
|
50
47
|
count: number;
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
|
|
48
|
+
/** Current page number (1-based) */
|
|
49
|
+
page: number;
|
|
50
|
+
/** Total number of pages */
|
|
51
|
+
pages: number;
|
|
52
|
+
/** Number of items per page */
|
|
53
|
+
page_size: number;
|
|
54
|
+
/** Whether there is a next page */
|
|
55
|
+
has_next: boolean;
|
|
56
|
+
/** Whether there is a previous page */
|
|
57
|
+
has_previous: boolean;
|
|
58
|
+
/** Next page number (null if no next page) */
|
|
59
|
+
next_page?: number | null;
|
|
60
|
+
/** Previous page number (null if no previous page) */
|
|
61
|
+
previous_page?: number | null;
|
|
62
|
+
/** Array of items for current page */
|
|
63
|
+
results: Array<Publish>;
|
|
57
64
|
}
|
|
58
65
|
|
|
59
66
|
/**
|
|
@@ -68,6 +75,25 @@ export interface ChannelList {
|
|
|
68
75
|
total_channels: number;
|
|
69
76
|
}
|
|
70
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Single publish item for DRF pagination.
|
|
80
|
+
*
|
|
81
|
+
* Response model (includes read-only fields).
|
|
82
|
+
*/
|
|
83
|
+
export interface Publish {
|
|
84
|
+
message_id: string;
|
|
85
|
+
channel: string;
|
|
86
|
+
status: string;
|
|
87
|
+
wait_for_ack: boolean;
|
|
88
|
+
acks_received: number;
|
|
89
|
+
acks_expected: number;
|
|
90
|
+
duration_ms: number | null;
|
|
91
|
+
created_at: string;
|
|
92
|
+
completed_at: string | null;
|
|
93
|
+
error_code: string | null;
|
|
94
|
+
error_message: string | null;
|
|
95
|
+
}
|
|
96
|
+
|
|
71
97
|
/**
|
|
72
98
|
* Statistics per channel.
|
|
73
99
|
*
|
|
@@ -42,7 +42,10 @@ export interface CommandsSummary {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Django management command serializer.
|
|
45
|
+
* Django management command serializer. Includes security metadata from base
|
|
46
|
+
* classes (SafeCommand, InteractiveCommand, etc.): - web_executable: Can be
|
|
47
|
+
* executed via web interface - requires_input: Requires interactive user input
|
|
48
|
+
* - is_destructive: Modifies or deletes data
|
|
46
49
|
*
|
|
47
50
|
* Response model (includes read-only fields).
|
|
48
51
|
*/
|
|
@@ -54,5 +57,11 @@ export interface Command {
|
|
|
54
57
|
is_custom: boolean;
|
|
55
58
|
is_allowed?: boolean;
|
|
56
59
|
risk_level?: string;
|
|
60
|
+
/** Can be executed via web interface */
|
|
61
|
+
web_executable?: boolean | null;
|
|
62
|
+
/** Requires interactive user input */
|
|
63
|
+
requires_input?: boolean | null;
|
|
64
|
+
/** Modifies or deletes data */
|
|
65
|
+
is_destructive?: boolean | null;
|
|
57
66
|
}
|
|
58
67
|
|