@vfarcic/dot-ai 1.0.3 → 1.1.0
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/README.md +1 -0
- package/dist/core/ai-provider.interface.d.ts +12 -8
- package/dist/core/ai-provider.interface.d.ts.map +1 -1
- package/dist/core/artifacthub.d.ts +1 -1
- package/dist/core/artifacthub.d.ts.map +1 -1
- package/dist/core/base-vector-service.d.ts +22 -9
- package/dist/core/base-vector-service.d.ts.map +1 -1
- package/dist/core/base-vector-service.js +106 -37
- package/dist/core/capabilities.d.ts.map +1 -1
- package/dist/core/capabilities.js +5 -2
- package/dist/core/capability-operations.d.ts +55 -7
- package/dist/core/capability-operations.d.ts.map +1 -1
- package/dist/core/capability-operations.js +1 -3
- package/dist/core/capability-scan-workflow.d.ts +64 -8
- package/dist/core/capability-scan-workflow.d.ts.map +1 -1
- package/dist/core/capability-scan-workflow.js +14 -13
- package/dist/core/capability-tools.d.ts +1 -1
- package/dist/core/capability-tools.d.ts.map +1 -1
- package/dist/core/capability-tools.js +1 -1
- package/dist/core/capability-vector-service.d.ts +3 -4
- package/dist/core/capability-vector-service.d.ts.map +1 -1
- package/dist/core/capability-vector-service.js +2 -2
- package/dist/core/command-executor.d.ts +3 -4
- package/dist/core/command-executor.d.ts.map +1 -1
- package/dist/core/command-executor.js +8 -4
- package/dist/core/crd-availability.d.ts +3 -5
- package/dist/core/crd-availability.d.ts.map +1 -1
- package/dist/core/crd-availability.js +8 -18
- package/dist/core/deploy-operation.d.ts +6 -5
- package/dist/core/deploy-operation.d.ts.map +1 -1
- package/dist/core/deploy-operation.js +16 -10
- package/dist/core/discovery.d.ts +6 -14
- package/dist/core/discovery.d.ts.map +1 -1
- package/dist/core/discovery.js +35 -51
- package/dist/core/embedding-service.d.ts.map +1 -1
- package/dist/core/embedding-service.js +1 -1
- package/dist/core/error-handling.d.ts +13 -13
- package/dist/core/error-handling.d.ts.map +1 -1
- package/dist/core/error-handling.js +2 -3
- package/dist/core/generic-session-manager.d.ts +2 -2
- package/dist/core/generic-session-manager.d.ts.map +1 -1
- package/dist/core/helm-types.d.ts +5 -5
- package/dist/core/helm-types.d.ts.map +1 -1
- package/dist/core/index.d.ts +4 -11
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +8 -14
- package/dist/core/knowledge-types.d.ts +114 -0
- package/dist/core/knowledge-types.d.ts.map +1 -0
- package/dist/core/knowledge-types.js +10 -0
- package/dist/core/memory.d.ts +12 -12
- package/dist/core/memory.d.ts.map +1 -1
- package/dist/core/mermaid-tools.d.ts +24 -1
- package/dist/core/mermaid-tools.d.ts.map +1 -1
- package/dist/core/mermaid-tools.js +10 -8
- package/dist/core/packaging.d.ts +23 -1
- package/dist/core/packaging.d.ts.map +1 -1
- package/dist/core/pattern-operations.d.ts +32 -9
- package/dist/core/pattern-operations.d.ts.map +1 -1
- package/dist/core/pattern-operations.js +17 -22
- package/dist/core/pattern-vector-service.d.ts +3 -4
- package/dist/core/pattern-vector-service.d.ts.map +1 -1
- package/dist/core/pattern-vector-service.js +2 -2
- package/dist/core/platform-utils.d.ts +2 -2
- package/dist/core/platform-utils.d.ts.map +1 -1
- package/dist/core/plugin-manager.d.ts +6 -2
- package/dist/core/plugin-manager.d.ts.map +1 -1
- package/dist/core/plugin-manager.js +9 -16
- package/dist/core/plugin-registry.d.ts +59 -0
- package/dist/core/plugin-registry.d.ts.map +1 -0
- package/dist/core/plugin-registry.js +80 -0
- package/dist/core/policy-operations.d.ts +101 -21
- package/dist/core/policy-operations.d.ts.map +1 -1
- package/dist/core/policy-operations.js +45 -47
- package/dist/core/policy-vector-service.d.ts +3 -4
- package/dist/core/policy-vector-service.d.ts.map +1 -1
- package/dist/core/policy-vector-service.js +2 -2
- package/dist/core/providers/host-provider.d.ts +1 -1
- package/dist/core/providers/host-provider.d.ts.map +1 -1
- package/dist/core/providers/host-provider.js +2 -2
- package/dist/core/providers/provider-debug-utils.d.ts +2 -2
- package/dist/core/providers/provider-debug-utils.d.ts.map +1 -1
- package/dist/core/providers/tool-utils.d.ts +10 -2
- package/dist/core/providers/tool-utils.d.ts.map +1 -1
- package/dist/core/providers/tool-utils.js +2 -2
- package/dist/core/providers/vercel-provider.d.ts.map +1 -1
- package/dist/core/providers/vercel-provider.js +29 -23
- package/dist/core/resource-tools.d.ts +29 -1
- package/dist/core/resource-tools.d.ts.map +1 -1
- package/dist/core/resource-vector-service.d.ts +3 -4
- package/dist/core/resource-vector-service.d.ts.map +1 -1
- package/dist/core/resource-vector-service.js +2 -2
- package/dist/core/schema.d.ts +15 -14
- package/dist/core/schema.d.ts.map +1 -1
- package/dist/core/schema.js +32 -34
- package/dist/core/shared-prompt-loader.d.ts +1 -1
- package/dist/core/shared-prompt-loader.d.ts.map +1 -1
- package/dist/core/solution-cr.js +1 -1
- package/dist/core/solution-utils.d.ts +22 -3
- package/dist/core/solution-utils.d.ts.map +1 -1
- package/dist/core/solution-utils.js +1 -1
- package/dist/core/telemetry/client.d.ts +0 -6
- package/dist/core/telemetry/client.d.ts.map +1 -1
- package/dist/core/telemetry/client.js +6 -17
- package/dist/core/telemetry/config.js +1 -1
- package/dist/core/telemetry/index.d.ts +1 -1
- package/dist/core/telemetry/index.d.ts.map +1 -1
- package/dist/core/telemetry/index.js +1 -2
- package/dist/core/tracing/tool-tracing.d.ts +1 -1
- package/dist/core/tracing/tool-tracing.d.ts.map +1 -1
- package/dist/core/unified-creation-session.d.ts +15 -8
- package/dist/core/unified-creation-session.d.ts.map +1 -1
- package/dist/core/unified-creation-session.js +19 -19
- package/dist/core/unified-creation-types.d.ts +2 -2
- package/dist/core/unified-creation-types.d.ts.map +1 -1
- package/dist/core/visualization.d.ts +1 -1
- package/dist/core/visualization.d.ts.map +1 -1
- package/dist/core/workflow.d.ts +8 -5
- package/dist/core/workflow.d.ts.map +1 -1
- package/dist/evaluation/dataset-analyzer.d.ts +13 -7
- package/dist/evaluation/dataset-analyzer.d.ts.map +1 -1
- package/dist/evaluation/dataset-analyzer.js +1 -1
- package/dist/evaluation/datasets/loader.d.ts +2 -2
- package/dist/evaluation/datasets/loader.d.ts.map +1 -1
- package/dist/evaluation/eval-runner.js +7 -5
- package/dist/evaluation/evaluators/base-comparative.d.ts +1 -1
- package/dist/evaluation/evaluators/base-comparative.d.ts.map +1 -1
- package/dist/evaluation/evaluators/base-comparative.js +4 -3
- package/dist/evaluation/evaluators/base.d.ts +5 -5
- package/dist/evaluation/evaluators/base.d.ts.map +1 -1
- package/dist/evaluation/evaluators/capability-comparative.js +1 -1
- package/dist/evaluation/platform-synthesizer.d.ts.map +1 -1
- package/dist/interfaces/mcp.d.ts.map +1 -1
- package/dist/interfaces/mcp.js +26 -15
- package/dist/interfaces/openapi-generator.d.ts +116 -12
- package/dist/interfaces/openapi-generator.d.ts.map +1 -1
- package/dist/interfaces/openapi-generator.js +490 -199
- package/dist/interfaces/rest-api.d.ts +28 -6
- package/dist/interfaces/rest-api.d.ts.map +1 -1
- package/dist/interfaces/rest-api.js +436 -245
- package/dist/interfaces/rest-registry.d.ts +4 -4
- package/dist/interfaces/rest-registry.d.ts.map +1 -1
- package/dist/interfaces/rest-registry.js +6 -5
- package/dist/interfaces/rest-route-registry.d.ts +165 -0
- package/dist/interfaces/rest-route-registry.d.ts.map +1 -0
- package/dist/interfaces/rest-route-registry.js +230 -0
- package/dist/interfaces/routes/index.d.ts +22 -0
- package/dist/interfaces/routes/index.d.ts.map +1 -0
- package/dist/interfaces/routes/index.js +347 -0
- package/dist/interfaces/schemas/common.d.ts +177 -0
- package/dist/interfaces/schemas/common.d.ts.map +1 -0
- package/dist/interfaces/schemas/common.js +102 -0
- package/dist/interfaces/schemas/events.d.ts +131 -0
- package/dist/interfaces/schemas/events.d.ts.map +1 -0
- package/dist/interfaces/schemas/events.js +66 -0
- package/dist/interfaces/schemas/index.d.ts +21 -0
- package/dist/interfaces/schemas/index.d.ts.map +1 -0
- package/dist/interfaces/schemas/index.js +138 -0
- package/dist/interfaces/schemas/knowledge.d.ts +210 -0
- package/dist/interfaces/schemas/knowledge.d.ts.map +1 -0
- package/dist/interfaces/schemas/knowledge.js +117 -0
- package/dist/interfaces/schemas/logs.d.ts +82 -0
- package/dist/interfaces/schemas/logs.d.ts.map +1 -0
- package/dist/interfaces/schemas/logs.js +46 -0
- package/dist/interfaces/schemas/prompts.d.ts +191 -0
- package/dist/interfaces/schemas/prompts.d.ts.map +1 -0
- package/dist/interfaces/schemas/prompts.js +91 -0
- package/dist/interfaces/schemas/resources.d.ts +378 -0
- package/dist/interfaces/schemas/resources.d.ts.map +1 -0
- package/dist/interfaces/schemas/resources.js +173 -0
- package/dist/interfaces/schemas/sessions.d.ts +90 -0
- package/dist/interfaces/schemas/sessions.d.ts.map +1 -0
- package/dist/interfaces/schemas/sessions.js +56 -0
- package/dist/interfaces/schemas/tools.d.ts +194 -0
- package/dist/interfaces/schemas/tools.d.ts.map +1 -0
- package/dist/interfaces/schemas/tools.js +101 -0
- package/dist/interfaces/schemas/visualization.d.ts +373 -0
- package/dist/interfaces/schemas/visualization.d.ts.map +1 -0
- package/dist/interfaces/schemas/visualization.js +134 -0
- package/dist/mcp/server.js +5 -4
- package/dist/tools/answer-question.d.ts +1 -1
- package/dist/tools/answer-question.d.ts.map +1 -1
- package/dist/tools/answer-question.js +9 -8
- package/dist/tools/deploy-manifests.d.ts +4 -2
- package/dist/tools/deploy-manifests.d.ts.map +1 -1
- package/dist/tools/deploy-manifests.js +10 -6
- package/dist/tools/generate-manifests.d.ts.map +1 -1
- package/dist/tools/generate-manifests.js +28 -20
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +6 -1
- package/dist/tools/manage-knowledge.d.ts +77 -0
- package/dist/tools/manage-knowledge.d.ts.map +1 -0
- package/dist/tools/manage-knowledge.js +573 -0
- package/dist/tools/operate-analysis.d.ts +31 -2
- package/dist/tools/operate-analysis.d.ts.map +1 -1
- package/dist/tools/operate-execution.d.ts +2 -3
- package/dist/tools/operate-execution.d.ts.map +1 -1
- package/dist/tools/operate-execution.js +7 -7
- package/dist/tools/operate.d.ts +7 -2
- package/dist/tools/operate.d.ts.map +1 -1
- package/dist/tools/operate.js +2 -2
- package/dist/tools/organizational-data.d.ts +30 -4
- package/dist/tools/organizational-data.d.ts.map +1 -1
- package/dist/tools/organizational-data.js +24 -19
- package/dist/tools/project-setup/discovery.d.ts.map +1 -1
- package/dist/tools/project-setup/generate-scope.d.ts +1 -1
- package/dist/tools/project-setup/generate-scope.d.ts.map +1 -1
- package/dist/tools/project-setup/types.d.ts +1 -0
- package/dist/tools/project-setup/types.d.ts.map +1 -1
- package/dist/tools/prompts.d.ts +28 -2
- package/dist/tools/prompts.d.ts.map +1 -1
- package/dist/tools/query.d.ts +17 -3
- package/dist/tools/query.d.ts.map +1 -1
- package/dist/tools/query.js +1 -7
- package/dist/tools/recommend.d.ts +24 -6
- package/dist/tools/recommend.d.ts.map +1 -1
- package/dist/tools/recommend.js +18 -15
- package/dist/tools/remediate.d.ts +12 -3
- package/dist/tools/remediate.d.ts.map +1 -1
- package/dist/tools/remediate.js +22 -14
- package/dist/tools/version.d.ts +19 -5
- package/dist/tools/version.d.ts.map +1 -1
- package/dist/tools/version.js +106 -54
- package/package.json +11 -5
- package/prompts/knowledge-ask.md +29 -0
- package/dist/core/vector-db-service.d.ts +0 -108
- package/dist/core/vector-db-service.d.ts.map +0 -1
- package/dist/core/vector-db-service.js +0 -647
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Events Endpoint Schemas
|
|
3
|
+
*
|
|
4
|
+
* Schemas for the /api/v1/events endpoint.
|
|
5
|
+
* PRD #354: REST API Route Registry with Auto-Generated OpenAPI and Test Fixtures
|
|
6
|
+
* PRD #328: Events endpoint for UI
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
/**
|
|
10
|
+
* Kubernetes event involved object reference
|
|
11
|
+
*/
|
|
12
|
+
export declare const EventInvolvedObjectSchema: z.ZodObject<{
|
|
13
|
+
kind: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
16
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type EventInvolvedObject = z.infer<typeof EventInvolvedObjectSchema>;
|
|
19
|
+
/**
|
|
20
|
+
* Kubernetes event schema
|
|
21
|
+
*/
|
|
22
|
+
export declare const KubernetesEventSchema: z.ZodObject<{
|
|
23
|
+
lastTimestamp: z.ZodOptional<z.ZodString>;
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
reason: z.ZodString;
|
|
26
|
+
message: z.ZodString;
|
|
27
|
+
involvedObject: z.ZodObject<{
|
|
28
|
+
kind: z.ZodString;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
31
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
firstTimestamp: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type KubernetesEvent = z.infer<typeof KubernetesEventSchema>;
|
|
37
|
+
/**
|
|
38
|
+
* Events response data
|
|
39
|
+
* GET /api/v1/events
|
|
40
|
+
*/
|
|
41
|
+
export declare const EventsDataSchema: z.ZodObject<{
|
|
42
|
+
events: z.ZodArray<z.ZodObject<{
|
|
43
|
+
lastTimestamp: z.ZodOptional<z.ZodString>;
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
reason: z.ZodString;
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
involvedObject: z.ZodObject<{
|
|
48
|
+
kind: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
51
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
firstTimestamp: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
count: z.ZodNumber;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type EventsData = z.infer<typeof EventsDataSchema>;
|
|
59
|
+
export declare const EventsResponseSchema: z.ZodObject<{
|
|
60
|
+
success: z.ZodLiteral<true>;
|
|
61
|
+
data: z.ZodObject<{
|
|
62
|
+
events: z.ZodArray<z.ZodObject<{
|
|
63
|
+
lastTimestamp: z.ZodOptional<z.ZodString>;
|
|
64
|
+
type: z.ZodString;
|
|
65
|
+
reason: z.ZodString;
|
|
66
|
+
message: z.ZodString;
|
|
67
|
+
involvedObject: z.ZodObject<{
|
|
68
|
+
kind: z.ZodString;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
71
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
firstTimestamp: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
count: z.ZodNumber;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
error: z.ZodOptional<z.ZodUndefined>;
|
|
79
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
timestamp: z.ZodString;
|
|
81
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
82
|
+
version: z.ZodString;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type EventsResponse = z.infer<typeof EventsResponseSchema>;
|
|
86
|
+
/**
|
|
87
|
+
* Events endpoint error schemas
|
|
88
|
+
*/
|
|
89
|
+
export declare const EventsBadRequestErrorSchema: z.ZodObject<{
|
|
90
|
+
success: z.ZodLiteral<false>;
|
|
91
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
92
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
timestamp: z.ZodString;
|
|
94
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
95
|
+
version: z.ZodString;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
error: z.ZodObject<{
|
|
98
|
+
code: z.ZodLiteral<"BAD_REQUEST">;
|
|
99
|
+
message: z.ZodString;
|
|
100
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export declare const EventsPluginUnavailableErrorSchema: z.ZodObject<{
|
|
104
|
+
success: z.ZodLiteral<false>;
|
|
105
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
106
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
timestamp: z.ZodString;
|
|
108
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
109
|
+
version: z.ZodString;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
error: z.ZodObject<{
|
|
112
|
+
code: z.ZodLiteral<"PLUGIN_UNAVAILABLE">;
|
|
113
|
+
message: z.ZodString;
|
|
114
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export declare const EventsErrorSchema: z.ZodObject<{
|
|
118
|
+
success: z.ZodLiteral<false>;
|
|
119
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
120
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
timestamp: z.ZodString;
|
|
122
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
123
|
+
version: z.ZodString;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
error: z.ZodObject<{
|
|
126
|
+
code: z.ZodLiteral<"EVENTS_ERROR">;
|
|
127
|
+
message: z.ZodString;
|
|
128
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;iBAQhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgD,CAAC;AAElF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;iBAM7C,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;iBAM5B,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Events Endpoint Schemas
|
|
4
|
+
*
|
|
5
|
+
* Schemas for the /api/v1/events endpoint.
|
|
6
|
+
* PRD #354: REST API Route Registry with Auto-Generated OpenAPI and Test Fixtures
|
|
7
|
+
* PRD #328: Events endpoint for UI
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.EventsErrorSchema = exports.EventsPluginUnavailableErrorSchema = exports.EventsBadRequestErrorSchema = exports.EventsResponseSchema = exports.EventsDataSchema = exports.KubernetesEventSchema = exports.EventInvolvedObjectSchema = void 0;
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
|
+
const common_1 = require("./common");
|
|
13
|
+
/**
|
|
14
|
+
* Kubernetes event involved object reference
|
|
15
|
+
*/
|
|
16
|
+
exports.EventInvolvedObjectSchema = zod_1.z.object({
|
|
17
|
+
kind: zod_1.z.string().describe('Resource kind'),
|
|
18
|
+
name: zod_1.z.string().describe('Resource name'),
|
|
19
|
+
namespace: zod_1.z.string().optional().describe('Resource namespace'),
|
|
20
|
+
uid: zod_1.z.string().optional().describe('Resource UID'),
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Kubernetes event schema
|
|
24
|
+
*/
|
|
25
|
+
exports.KubernetesEventSchema = zod_1.z.object({
|
|
26
|
+
lastTimestamp: zod_1.z.string().optional().describe('Last time the event occurred'),
|
|
27
|
+
type: zod_1.z.string().describe('Event type (Normal, Warning)'),
|
|
28
|
+
reason: zod_1.z.string().describe('Short reason for the event'),
|
|
29
|
+
message: zod_1.z.string().describe('Human-readable description'),
|
|
30
|
+
involvedObject: exports.EventInvolvedObjectSchema.describe('Object this event is about'),
|
|
31
|
+
count: zod_1.z.number().optional().describe('Number of times this event has occurred'),
|
|
32
|
+
firstTimestamp: zod_1.z.string().optional().describe('First time the event occurred'),
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* Events response data
|
|
36
|
+
* GET /api/v1/events
|
|
37
|
+
*/
|
|
38
|
+
exports.EventsDataSchema = zod_1.z.object({
|
|
39
|
+
events: zod_1.z.array(exports.KubernetesEventSchema).describe('List of events'),
|
|
40
|
+
count: zod_1.z.number().describe('Number of events returned'),
|
|
41
|
+
});
|
|
42
|
+
exports.EventsResponseSchema = (0, common_1.createSuccessResponseSchema)(exports.EventsDataSchema);
|
|
43
|
+
/**
|
|
44
|
+
* Events endpoint error schemas
|
|
45
|
+
*/
|
|
46
|
+
exports.EventsBadRequestErrorSchema = common_1.BadRequestErrorSchema.extend({
|
|
47
|
+
error: zod_1.z.object({
|
|
48
|
+
code: zod_1.z.literal('BAD_REQUEST'),
|
|
49
|
+
message: zod_1.z.string(),
|
|
50
|
+
details: zod_1.z.any().optional(),
|
|
51
|
+
}),
|
|
52
|
+
});
|
|
53
|
+
exports.EventsPluginUnavailableErrorSchema = common_1.ServiceUnavailableErrorSchema.extend({
|
|
54
|
+
error: zod_1.z.object({
|
|
55
|
+
code: zod_1.z.literal('PLUGIN_UNAVAILABLE'),
|
|
56
|
+
message: zod_1.z.string(),
|
|
57
|
+
details: zod_1.z.any().optional(),
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
exports.EventsErrorSchema = common_1.InternalServerErrorSchema.extend({
|
|
61
|
+
error: zod_1.z.object({
|
|
62
|
+
code: zod_1.z.literal('EVENTS_ERROR'),
|
|
63
|
+
message: zod_1.z.string(),
|
|
64
|
+
details: zod_1.z.any().optional(),
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* REST API Response Schemas
|
|
3
|
+
*
|
|
4
|
+
* Central export for all REST API Zod schemas.
|
|
5
|
+
* PRD #354: REST API Route Registry with Auto-Generated OpenAPI and Test Fixtures
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { VisualizationResponseSchema, ToolDiscoveryResponseSchema } from '../schemas';
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export { MetaSchema, ErrorDetailsSchema, RestApiResponseSchema, ErrorResponseSchema, NotFoundErrorSchema, BadRequestErrorSchema, MethodNotAllowedErrorSchema, ServiceUnavailableErrorSchema, InternalServerErrorSchema, createSuccessResponseSchema, type Meta, type ErrorDetails, type RestApiResponse, type ErrorResponse, } from './common';
|
|
13
|
+
export { ToolParameterSchema, ToolInfoSchema, ToolDiscoveryDataSchema, ToolDiscoveryResponseSchema, ToolExecutionDataSchema, ToolExecutionResponseSchema, ToolNotFoundErrorSchema, InvalidToolRequestErrorSchema, ToolExecutionErrorSchema, ToolDiscoveryErrorSchema, type ToolParameter, type ToolInfo, type ToolDiscoveryData, type ToolDiscoveryResponse, type ToolExecutionData, type ToolExecutionResponse, } from './tools';
|
|
14
|
+
export { VisualizationTypeSchema, CodeContentSchema, TableContentSchema, CardItemSchema, CardsContentSchema, DiffContentSchema, BarChartDataItemSchema, BarChartContentSchema, VisualizationContentSchema, VisualizationSchema, VisualizationResponseDataSchema, VisualizationResponseSchema, VisualizationNotFoundErrorSchema, VisualizationServiceUnavailableErrorSchema, VisualizationInternalErrorSchema, type VisualizationType, type CodeContent, type TableContent, type CardItem, type CardsContent, type DiffContent, type BarChartDataItem, type BarChartContent, type VisualizationContent, type Visualization, type VisualizationResponseData, type VisualizationResponse, } from './visualization';
|
|
15
|
+
export { ResourceKindSchema, ResourceKindsDataSchema, ResourceKindsResponseSchema, ResourceSummarySchema, ResourceSearchDataSchema, ResourceSearchResponseSchema, ResourceListDataSchema, ResourceListResponseSchema, SingleResourceDataSchema, SingleResourceResponseSchema, NamespacesDataSchema, NamespacesResponseSchema, ResourceSyncRequestSchema, ResourceSyncDataSchema, ResourceSyncResponseSchema, ResourceNotFoundErrorSchema, ResourceBadRequestErrorSchema, ResourcePluginUnavailableErrorSchema, ResourceKindsErrorSchema, ResourceSearchErrorSchema, ResourceListErrorSchema, SingleResourceErrorSchema, NamespacesErrorSchema, ResourceSyncErrorSchema, type ResourceKind, type ResourceKindsData, type ResourceKindsResponse, type ResourceSummary, type ResourceSearchData, type ResourceSearchResponse, type ResourceListData, type ResourceListResponse, type SingleResourceData, type SingleResourceResponse, type NamespacesData, type NamespacesResponse, type ResourceSyncRequest, type ResourceSyncData, type ResourceSyncResponse, } from './resources';
|
|
16
|
+
export { EventInvolvedObjectSchema, KubernetesEventSchema, EventsDataSchema, EventsResponseSchema, EventsBadRequestErrorSchema, EventsPluginUnavailableErrorSchema, EventsErrorSchema, type EventInvolvedObject, type KubernetesEvent, type EventsData, type EventsResponse, } from './events';
|
|
17
|
+
export { LogsDataSchema, LogsResponseSchema, LogsBadRequestErrorSchema, LogsPluginUnavailableErrorSchema, LogsErrorSchema, type LogsData, type LogsResponse, } from './logs';
|
|
18
|
+
export { SessionMetadataSchema, SessionDataSchema, SessionResponseDataSchema, SessionResponseSchema, SessionNotFoundErrorSchema, SessionRetrievalErrorSchema, type SessionMetadata, type SessionData, type SessionResponseData, type SessionResponse, } from './sessions';
|
|
19
|
+
export { PromptArgumentSchema, PromptInfoSchema, PromptsListDataSchema, PromptsListResponseSchema, PromptMessageSchema, PromptGetDataSchema, PromptGetResponseSchema, PromptGetRequestSchema, PromptNotFoundErrorSchema, PromptValidationErrorSchema, PromptsListErrorSchema, PromptGetErrorSchema, type PromptArgument, type PromptInfo, type PromptsListData, type PromptsListResponse, type PromptMessage, type PromptGetData, type PromptGetResponse, type PromptGetRequest, } from './prompts';
|
|
20
|
+
export { DeleteBySourceDataSchema, DeleteBySourceResponseSchema, DeleteBySourceBadRequestErrorSchema, DeleteBySourcePluginUnavailableErrorSchema, DeleteBySourceErrorSchema, KnowledgeAskRequestSchema, KnowledgeAskSourceSchema, KnowledgeAskChunkSchema, KnowledgeAskDataSchema, KnowledgeAskResponseSchema, KnowledgeAskBadRequestErrorSchema, KnowledgeAskAIUnavailableErrorSchema, KnowledgeAskPluginUnavailableErrorSchema, KnowledgeAskErrorSchema, type DeleteBySourceData, type DeleteBySourceResponse, type KnowledgeAskRequest, type KnowledgeAskSource, type KnowledgeAskChunk, type KnowledgeAskData, type KnowledgeAskResponse, } from './knowledge';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* REST API Response Schemas
|
|
4
|
+
*
|
|
5
|
+
* Central export for all REST API Zod schemas.
|
|
6
|
+
* PRD #354: REST API Route Registry with Auto-Generated OpenAPI and Test Fixtures
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { VisualizationResponseSchema, ToolDiscoveryResponseSchema } from '../schemas';
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ResourceSyncResponseSchema = exports.ResourceSyncDataSchema = exports.ResourceSyncRequestSchema = exports.NamespacesResponseSchema = exports.NamespacesDataSchema = exports.SingleResourceResponseSchema = exports.SingleResourceDataSchema = exports.ResourceListResponseSchema = exports.ResourceListDataSchema = exports.ResourceSearchResponseSchema = exports.ResourceSearchDataSchema = exports.ResourceSummarySchema = exports.ResourceKindsResponseSchema = exports.ResourceKindsDataSchema = exports.ResourceKindSchema = exports.VisualizationInternalErrorSchema = exports.VisualizationServiceUnavailableErrorSchema = exports.VisualizationNotFoundErrorSchema = exports.VisualizationResponseSchema = exports.VisualizationResponseDataSchema = exports.VisualizationSchema = exports.VisualizationContentSchema = exports.BarChartContentSchema = exports.BarChartDataItemSchema = exports.DiffContentSchema = exports.CardsContentSchema = exports.CardItemSchema = exports.TableContentSchema = exports.CodeContentSchema = exports.VisualizationTypeSchema = exports.ToolDiscoveryErrorSchema = exports.ToolExecutionErrorSchema = exports.InvalidToolRequestErrorSchema = exports.ToolNotFoundErrorSchema = exports.ToolExecutionResponseSchema = exports.ToolExecutionDataSchema = exports.ToolDiscoveryResponseSchema = exports.ToolDiscoveryDataSchema = exports.ToolInfoSchema = exports.ToolParameterSchema = exports.createSuccessResponseSchema = exports.InternalServerErrorSchema = exports.ServiceUnavailableErrorSchema = exports.MethodNotAllowedErrorSchema = exports.BadRequestErrorSchema = exports.NotFoundErrorSchema = exports.ErrorResponseSchema = exports.RestApiResponseSchema = exports.ErrorDetailsSchema = exports.MetaSchema = void 0;
|
|
15
|
+
exports.KnowledgeAskBadRequestErrorSchema = exports.KnowledgeAskResponseSchema = exports.KnowledgeAskDataSchema = exports.KnowledgeAskChunkSchema = exports.KnowledgeAskSourceSchema = exports.KnowledgeAskRequestSchema = exports.DeleteBySourceErrorSchema = exports.DeleteBySourcePluginUnavailableErrorSchema = exports.DeleteBySourceBadRequestErrorSchema = exports.DeleteBySourceResponseSchema = exports.DeleteBySourceDataSchema = exports.PromptGetErrorSchema = exports.PromptsListErrorSchema = exports.PromptValidationErrorSchema = exports.PromptNotFoundErrorSchema = exports.PromptGetRequestSchema = exports.PromptGetResponseSchema = exports.PromptGetDataSchema = exports.PromptMessageSchema = exports.PromptsListResponseSchema = exports.PromptsListDataSchema = exports.PromptInfoSchema = exports.PromptArgumentSchema = exports.SessionRetrievalErrorSchema = exports.SessionNotFoundErrorSchema = exports.SessionResponseSchema = exports.SessionResponseDataSchema = exports.SessionDataSchema = exports.SessionMetadataSchema = exports.LogsErrorSchema = exports.LogsPluginUnavailableErrorSchema = exports.LogsBadRequestErrorSchema = exports.LogsResponseSchema = exports.LogsDataSchema = exports.EventsErrorSchema = exports.EventsPluginUnavailableErrorSchema = exports.EventsBadRequestErrorSchema = exports.EventsResponseSchema = exports.EventsDataSchema = exports.KubernetesEventSchema = exports.EventInvolvedObjectSchema = exports.ResourceSyncErrorSchema = exports.NamespacesErrorSchema = exports.SingleResourceErrorSchema = exports.ResourceListErrorSchema = exports.ResourceSearchErrorSchema = exports.ResourceKindsErrorSchema = exports.ResourcePluginUnavailableErrorSchema = exports.ResourceBadRequestErrorSchema = exports.ResourceNotFoundErrorSchema = void 0;
|
|
16
|
+
exports.KnowledgeAskErrorSchema = exports.KnowledgeAskPluginUnavailableErrorSchema = exports.KnowledgeAskAIUnavailableErrorSchema = void 0;
|
|
17
|
+
// Common schemas
|
|
18
|
+
var common_1 = require("./common");
|
|
19
|
+
Object.defineProperty(exports, "MetaSchema", { enumerable: true, get: function () { return common_1.MetaSchema; } });
|
|
20
|
+
Object.defineProperty(exports, "ErrorDetailsSchema", { enumerable: true, get: function () { return common_1.ErrorDetailsSchema; } });
|
|
21
|
+
Object.defineProperty(exports, "RestApiResponseSchema", { enumerable: true, get: function () { return common_1.RestApiResponseSchema; } });
|
|
22
|
+
Object.defineProperty(exports, "ErrorResponseSchema", { enumerable: true, get: function () { return common_1.ErrorResponseSchema; } });
|
|
23
|
+
Object.defineProperty(exports, "NotFoundErrorSchema", { enumerable: true, get: function () { return common_1.NotFoundErrorSchema; } });
|
|
24
|
+
Object.defineProperty(exports, "BadRequestErrorSchema", { enumerable: true, get: function () { return common_1.BadRequestErrorSchema; } });
|
|
25
|
+
Object.defineProperty(exports, "MethodNotAllowedErrorSchema", { enumerable: true, get: function () { return common_1.MethodNotAllowedErrorSchema; } });
|
|
26
|
+
Object.defineProperty(exports, "ServiceUnavailableErrorSchema", { enumerable: true, get: function () { return common_1.ServiceUnavailableErrorSchema; } });
|
|
27
|
+
Object.defineProperty(exports, "InternalServerErrorSchema", { enumerable: true, get: function () { return common_1.InternalServerErrorSchema; } });
|
|
28
|
+
Object.defineProperty(exports, "createSuccessResponseSchema", { enumerable: true, get: function () { return common_1.createSuccessResponseSchema; } });
|
|
29
|
+
// Tool schemas
|
|
30
|
+
var tools_1 = require("./tools");
|
|
31
|
+
Object.defineProperty(exports, "ToolParameterSchema", { enumerable: true, get: function () { return tools_1.ToolParameterSchema; } });
|
|
32
|
+
Object.defineProperty(exports, "ToolInfoSchema", { enumerable: true, get: function () { return tools_1.ToolInfoSchema; } });
|
|
33
|
+
Object.defineProperty(exports, "ToolDiscoveryDataSchema", { enumerable: true, get: function () { return tools_1.ToolDiscoveryDataSchema; } });
|
|
34
|
+
Object.defineProperty(exports, "ToolDiscoveryResponseSchema", { enumerable: true, get: function () { return tools_1.ToolDiscoveryResponseSchema; } });
|
|
35
|
+
Object.defineProperty(exports, "ToolExecutionDataSchema", { enumerable: true, get: function () { return tools_1.ToolExecutionDataSchema; } });
|
|
36
|
+
Object.defineProperty(exports, "ToolExecutionResponseSchema", { enumerable: true, get: function () { return tools_1.ToolExecutionResponseSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "ToolNotFoundErrorSchema", { enumerable: true, get: function () { return tools_1.ToolNotFoundErrorSchema; } });
|
|
38
|
+
Object.defineProperty(exports, "InvalidToolRequestErrorSchema", { enumerable: true, get: function () { return tools_1.InvalidToolRequestErrorSchema; } });
|
|
39
|
+
Object.defineProperty(exports, "ToolExecutionErrorSchema", { enumerable: true, get: function () { return tools_1.ToolExecutionErrorSchema; } });
|
|
40
|
+
Object.defineProperty(exports, "ToolDiscoveryErrorSchema", { enumerable: true, get: function () { return tools_1.ToolDiscoveryErrorSchema; } });
|
|
41
|
+
// Visualization schemas
|
|
42
|
+
var visualization_1 = require("./visualization");
|
|
43
|
+
Object.defineProperty(exports, "VisualizationTypeSchema", { enumerable: true, get: function () { return visualization_1.VisualizationTypeSchema; } });
|
|
44
|
+
Object.defineProperty(exports, "CodeContentSchema", { enumerable: true, get: function () { return visualization_1.CodeContentSchema; } });
|
|
45
|
+
Object.defineProperty(exports, "TableContentSchema", { enumerable: true, get: function () { return visualization_1.TableContentSchema; } });
|
|
46
|
+
Object.defineProperty(exports, "CardItemSchema", { enumerable: true, get: function () { return visualization_1.CardItemSchema; } });
|
|
47
|
+
Object.defineProperty(exports, "CardsContentSchema", { enumerable: true, get: function () { return visualization_1.CardsContentSchema; } });
|
|
48
|
+
Object.defineProperty(exports, "DiffContentSchema", { enumerable: true, get: function () { return visualization_1.DiffContentSchema; } });
|
|
49
|
+
Object.defineProperty(exports, "BarChartDataItemSchema", { enumerable: true, get: function () { return visualization_1.BarChartDataItemSchema; } });
|
|
50
|
+
Object.defineProperty(exports, "BarChartContentSchema", { enumerable: true, get: function () { return visualization_1.BarChartContentSchema; } });
|
|
51
|
+
Object.defineProperty(exports, "VisualizationContentSchema", { enumerable: true, get: function () { return visualization_1.VisualizationContentSchema; } });
|
|
52
|
+
Object.defineProperty(exports, "VisualizationSchema", { enumerable: true, get: function () { return visualization_1.VisualizationSchema; } });
|
|
53
|
+
Object.defineProperty(exports, "VisualizationResponseDataSchema", { enumerable: true, get: function () { return visualization_1.VisualizationResponseDataSchema; } });
|
|
54
|
+
Object.defineProperty(exports, "VisualizationResponseSchema", { enumerable: true, get: function () { return visualization_1.VisualizationResponseSchema; } });
|
|
55
|
+
Object.defineProperty(exports, "VisualizationNotFoundErrorSchema", { enumerable: true, get: function () { return visualization_1.VisualizationNotFoundErrorSchema; } });
|
|
56
|
+
Object.defineProperty(exports, "VisualizationServiceUnavailableErrorSchema", { enumerable: true, get: function () { return visualization_1.VisualizationServiceUnavailableErrorSchema; } });
|
|
57
|
+
Object.defineProperty(exports, "VisualizationInternalErrorSchema", { enumerable: true, get: function () { return visualization_1.VisualizationInternalErrorSchema; } });
|
|
58
|
+
// Resource schemas
|
|
59
|
+
var resources_1 = require("./resources");
|
|
60
|
+
Object.defineProperty(exports, "ResourceKindSchema", { enumerable: true, get: function () { return resources_1.ResourceKindSchema; } });
|
|
61
|
+
Object.defineProperty(exports, "ResourceKindsDataSchema", { enumerable: true, get: function () { return resources_1.ResourceKindsDataSchema; } });
|
|
62
|
+
Object.defineProperty(exports, "ResourceKindsResponseSchema", { enumerable: true, get: function () { return resources_1.ResourceKindsResponseSchema; } });
|
|
63
|
+
Object.defineProperty(exports, "ResourceSummarySchema", { enumerable: true, get: function () { return resources_1.ResourceSummarySchema; } });
|
|
64
|
+
Object.defineProperty(exports, "ResourceSearchDataSchema", { enumerable: true, get: function () { return resources_1.ResourceSearchDataSchema; } });
|
|
65
|
+
Object.defineProperty(exports, "ResourceSearchResponseSchema", { enumerable: true, get: function () { return resources_1.ResourceSearchResponseSchema; } });
|
|
66
|
+
Object.defineProperty(exports, "ResourceListDataSchema", { enumerable: true, get: function () { return resources_1.ResourceListDataSchema; } });
|
|
67
|
+
Object.defineProperty(exports, "ResourceListResponseSchema", { enumerable: true, get: function () { return resources_1.ResourceListResponseSchema; } });
|
|
68
|
+
Object.defineProperty(exports, "SingleResourceDataSchema", { enumerable: true, get: function () { return resources_1.SingleResourceDataSchema; } });
|
|
69
|
+
Object.defineProperty(exports, "SingleResourceResponseSchema", { enumerable: true, get: function () { return resources_1.SingleResourceResponseSchema; } });
|
|
70
|
+
Object.defineProperty(exports, "NamespacesDataSchema", { enumerable: true, get: function () { return resources_1.NamespacesDataSchema; } });
|
|
71
|
+
Object.defineProperty(exports, "NamespacesResponseSchema", { enumerable: true, get: function () { return resources_1.NamespacesResponseSchema; } });
|
|
72
|
+
Object.defineProperty(exports, "ResourceSyncRequestSchema", { enumerable: true, get: function () { return resources_1.ResourceSyncRequestSchema; } });
|
|
73
|
+
Object.defineProperty(exports, "ResourceSyncDataSchema", { enumerable: true, get: function () { return resources_1.ResourceSyncDataSchema; } });
|
|
74
|
+
Object.defineProperty(exports, "ResourceSyncResponseSchema", { enumerable: true, get: function () { return resources_1.ResourceSyncResponseSchema; } });
|
|
75
|
+
Object.defineProperty(exports, "ResourceNotFoundErrorSchema", { enumerable: true, get: function () { return resources_1.ResourceNotFoundErrorSchema; } });
|
|
76
|
+
Object.defineProperty(exports, "ResourceBadRequestErrorSchema", { enumerable: true, get: function () { return resources_1.ResourceBadRequestErrorSchema; } });
|
|
77
|
+
Object.defineProperty(exports, "ResourcePluginUnavailableErrorSchema", { enumerable: true, get: function () { return resources_1.ResourcePluginUnavailableErrorSchema; } });
|
|
78
|
+
Object.defineProperty(exports, "ResourceKindsErrorSchema", { enumerable: true, get: function () { return resources_1.ResourceKindsErrorSchema; } });
|
|
79
|
+
Object.defineProperty(exports, "ResourceSearchErrorSchema", { enumerable: true, get: function () { return resources_1.ResourceSearchErrorSchema; } });
|
|
80
|
+
Object.defineProperty(exports, "ResourceListErrorSchema", { enumerable: true, get: function () { return resources_1.ResourceListErrorSchema; } });
|
|
81
|
+
Object.defineProperty(exports, "SingleResourceErrorSchema", { enumerable: true, get: function () { return resources_1.SingleResourceErrorSchema; } });
|
|
82
|
+
Object.defineProperty(exports, "NamespacesErrorSchema", { enumerable: true, get: function () { return resources_1.NamespacesErrorSchema; } });
|
|
83
|
+
Object.defineProperty(exports, "ResourceSyncErrorSchema", { enumerable: true, get: function () { return resources_1.ResourceSyncErrorSchema; } });
|
|
84
|
+
// Events schemas
|
|
85
|
+
var events_1 = require("./events");
|
|
86
|
+
Object.defineProperty(exports, "EventInvolvedObjectSchema", { enumerable: true, get: function () { return events_1.EventInvolvedObjectSchema; } });
|
|
87
|
+
Object.defineProperty(exports, "KubernetesEventSchema", { enumerable: true, get: function () { return events_1.KubernetesEventSchema; } });
|
|
88
|
+
Object.defineProperty(exports, "EventsDataSchema", { enumerable: true, get: function () { return events_1.EventsDataSchema; } });
|
|
89
|
+
Object.defineProperty(exports, "EventsResponseSchema", { enumerable: true, get: function () { return events_1.EventsResponseSchema; } });
|
|
90
|
+
Object.defineProperty(exports, "EventsBadRequestErrorSchema", { enumerable: true, get: function () { return events_1.EventsBadRequestErrorSchema; } });
|
|
91
|
+
Object.defineProperty(exports, "EventsPluginUnavailableErrorSchema", { enumerable: true, get: function () { return events_1.EventsPluginUnavailableErrorSchema; } });
|
|
92
|
+
Object.defineProperty(exports, "EventsErrorSchema", { enumerable: true, get: function () { return events_1.EventsErrorSchema; } });
|
|
93
|
+
// Logs schemas
|
|
94
|
+
var logs_1 = require("./logs");
|
|
95
|
+
Object.defineProperty(exports, "LogsDataSchema", { enumerable: true, get: function () { return logs_1.LogsDataSchema; } });
|
|
96
|
+
Object.defineProperty(exports, "LogsResponseSchema", { enumerable: true, get: function () { return logs_1.LogsResponseSchema; } });
|
|
97
|
+
Object.defineProperty(exports, "LogsBadRequestErrorSchema", { enumerable: true, get: function () { return logs_1.LogsBadRequestErrorSchema; } });
|
|
98
|
+
Object.defineProperty(exports, "LogsPluginUnavailableErrorSchema", { enumerable: true, get: function () { return logs_1.LogsPluginUnavailableErrorSchema; } });
|
|
99
|
+
Object.defineProperty(exports, "LogsErrorSchema", { enumerable: true, get: function () { return logs_1.LogsErrorSchema; } });
|
|
100
|
+
// Sessions schemas
|
|
101
|
+
var sessions_1 = require("./sessions");
|
|
102
|
+
Object.defineProperty(exports, "SessionMetadataSchema", { enumerable: true, get: function () { return sessions_1.SessionMetadataSchema; } });
|
|
103
|
+
Object.defineProperty(exports, "SessionDataSchema", { enumerable: true, get: function () { return sessions_1.SessionDataSchema; } });
|
|
104
|
+
Object.defineProperty(exports, "SessionResponseDataSchema", { enumerable: true, get: function () { return sessions_1.SessionResponseDataSchema; } });
|
|
105
|
+
Object.defineProperty(exports, "SessionResponseSchema", { enumerable: true, get: function () { return sessions_1.SessionResponseSchema; } });
|
|
106
|
+
Object.defineProperty(exports, "SessionNotFoundErrorSchema", { enumerable: true, get: function () { return sessions_1.SessionNotFoundErrorSchema; } });
|
|
107
|
+
Object.defineProperty(exports, "SessionRetrievalErrorSchema", { enumerable: true, get: function () { return sessions_1.SessionRetrievalErrorSchema; } });
|
|
108
|
+
// Prompts schemas
|
|
109
|
+
var prompts_1 = require("./prompts");
|
|
110
|
+
Object.defineProperty(exports, "PromptArgumentSchema", { enumerable: true, get: function () { return prompts_1.PromptArgumentSchema; } });
|
|
111
|
+
Object.defineProperty(exports, "PromptInfoSchema", { enumerable: true, get: function () { return prompts_1.PromptInfoSchema; } });
|
|
112
|
+
Object.defineProperty(exports, "PromptsListDataSchema", { enumerable: true, get: function () { return prompts_1.PromptsListDataSchema; } });
|
|
113
|
+
Object.defineProperty(exports, "PromptsListResponseSchema", { enumerable: true, get: function () { return prompts_1.PromptsListResponseSchema; } });
|
|
114
|
+
Object.defineProperty(exports, "PromptMessageSchema", { enumerable: true, get: function () { return prompts_1.PromptMessageSchema; } });
|
|
115
|
+
Object.defineProperty(exports, "PromptGetDataSchema", { enumerable: true, get: function () { return prompts_1.PromptGetDataSchema; } });
|
|
116
|
+
Object.defineProperty(exports, "PromptGetResponseSchema", { enumerable: true, get: function () { return prompts_1.PromptGetResponseSchema; } });
|
|
117
|
+
Object.defineProperty(exports, "PromptGetRequestSchema", { enumerable: true, get: function () { return prompts_1.PromptGetRequestSchema; } });
|
|
118
|
+
Object.defineProperty(exports, "PromptNotFoundErrorSchema", { enumerable: true, get: function () { return prompts_1.PromptNotFoundErrorSchema; } });
|
|
119
|
+
Object.defineProperty(exports, "PromptValidationErrorSchema", { enumerable: true, get: function () { return prompts_1.PromptValidationErrorSchema; } });
|
|
120
|
+
Object.defineProperty(exports, "PromptsListErrorSchema", { enumerable: true, get: function () { return prompts_1.PromptsListErrorSchema; } });
|
|
121
|
+
Object.defineProperty(exports, "PromptGetErrorSchema", { enumerable: true, get: function () { return prompts_1.PromptGetErrorSchema; } });
|
|
122
|
+
// Knowledge schemas
|
|
123
|
+
var knowledge_1 = require("./knowledge");
|
|
124
|
+
Object.defineProperty(exports, "DeleteBySourceDataSchema", { enumerable: true, get: function () { return knowledge_1.DeleteBySourceDataSchema; } });
|
|
125
|
+
Object.defineProperty(exports, "DeleteBySourceResponseSchema", { enumerable: true, get: function () { return knowledge_1.DeleteBySourceResponseSchema; } });
|
|
126
|
+
Object.defineProperty(exports, "DeleteBySourceBadRequestErrorSchema", { enumerable: true, get: function () { return knowledge_1.DeleteBySourceBadRequestErrorSchema; } });
|
|
127
|
+
Object.defineProperty(exports, "DeleteBySourcePluginUnavailableErrorSchema", { enumerable: true, get: function () { return knowledge_1.DeleteBySourcePluginUnavailableErrorSchema; } });
|
|
128
|
+
Object.defineProperty(exports, "DeleteBySourceErrorSchema", { enumerable: true, get: function () { return knowledge_1.DeleteBySourceErrorSchema; } });
|
|
129
|
+
// Knowledge Ask schemas (PRD #356)
|
|
130
|
+
Object.defineProperty(exports, "KnowledgeAskRequestSchema", { enumerable: true, get: function () { return knowledge_1.KnowledgeAskRequestSchema; } });
|
|
131
|
+
Object.defineProperty(exports, "KnowledgeAskSourceSchema", { enumerable: true, get: function () { return knowledge_1.KnowledgeAskSourceSchema; } });
|
|
132
|
+
Object.defineProperty(exports, "KnowledgeAskChunkSchema", { enumerable: true, get: function () { return knowledge_1.KnowledgeAskChunkSchema; } });
|
|
133
|
+
Object.defineProperty(exports, "KnowledgeAskDataSchema", { enumerable: true, get: function () { return knowledge_1.KnowledgeAskDataSchema; } });
|
|
134
|
+
Object.defineProperty(exports, "KnowledgeAskResponseSchema", { enumerable: true, get: function () { return knowledge_1.KnowledgeAskResponseSchema; } });
|
|
135
|
+
Object.defineProperty(exports, "KnowledgeAskBadRequestErrorSchema", { enumerable: true, get: function () { return knowledge_1.KnowledgeAskBadRequestErrorSchema; } });
|
|
136
|
+
Object.defineProperty(exports, "KnowledgeAskAIUnavailableErrorSchema", { enumerable: true, get: function () { return knowledge_1.KnowledgeAskAIUnavailableErrorSchema; } });
|
|
137
|
+
Object.defineProperty(exports, "KnowledgeAskPluginUnavailableErrorSchema", { enumerable: true, get: function () { return knowledge_1.KnowledgeAskPluginUnavailableErrorSchema; } });
|
|
138
|
+
Object.defineProperty(exports, "KnowledgeAskErrorSchema", { enumerable: true, get: function () { return knowledge_1.KnowledgeAskErrorSchema; } });
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Base REST API Response Schemas
|
|
3
|
+
*
|
|
4
|
+
* PRD #356: Knowledge Base System
|
|
5
|
+
* Schemas for HTTP-only endpoints (not exposed via MCP)
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
/**
|
|
9
|
+
* Delete by source response data
|
|
10
|
+
*/
|
|
11
|
+
export declare const DeleteBySourceDataSchema: z.ZodObject<{
|
|
12
|
+
sourceIdentifier: z.ZodString;
|
|
13
|
+
chunksDeleted: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type DeleteBySourceData = z.infer<typeof DeleteBySourceDataSchema>;
|
|
16
|
+
/**
|
|
17
|
+
* Delete by source success response
|
|
18
|
+
*/
|
|
19
|
+
export declare const DeleteBySourceResponseSchema: z.ZodObject<{
|
|
20
|
+
success: z.ZodLiteral<true>;
|
|
21
|
+
data: z.ZodObject<{
|
|
22
|
+
sourceIdentifier: z.ZodString;
|
|
23
|
+
chunksDeleted: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
error: z.ZodOptional<z.ZodUndefined>;
|
|
26
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
timestamp: z.ZodString;
|
|
28
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
version: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type DeleteBySourceResponse = z.infer<typeof DeleteBySourceResponseSchema>;
|
|
33
|
+
/**
|
|
34
|
+
* Delete by source error responses
|
|
35
|
+
*/
|
|
36
|
+
export declare const DeleteBySourceBadRequestErrorSchema: z.ZodObject<{
|
|
37
|
+
success: z.ZodLiteral<false>;
|
|
38
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
39
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
timestamp: z.ZodString;
|
|
41
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
version: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
error: z.ZodObject<{
|
|
45
|
+
code: z.ZodLiteral<"BAD_REQUEST">;
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export declare const DeleteBySourcePluginUnavailableErrorSchema: z.ZodObject<{
|
|
51
|
+
success: z.ZodLiteral<false>;
|
|
52
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
53
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
timestamp: z.ZodString;
|
|
55
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
version: z.ZodString;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
error: z.ZodObject<{
|
|
59
|
+
code: z.ZodLiteral<"PLUGIN_UNAVAILABLE">;
|
|
60
|
+
message: z.ZodString;
|
|
61
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export declare const DeleteBySourceErrorSchema: z.ZodObject<{
|
|
65
|
+
success: z.ZodLiteral<false>;
|
|
66
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
67
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
timestamp: z.ZodString;
|
|
69
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
70
|
+
version: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
error: z.ZodObject<{
|
|
73
|
+
code: z.ZodLiteral<"DELETE_SOURCE_ERROR">;
|
|
74
|
+
message: z.ZodString;
|
|
75
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
/**
|
|
79
|
+
* Knowledge Ask request body
|
|
80
|
+
*/
|
|
81
|
+
export declare const KnowledgeAskRequestSchema: z.ZodObject<{
|
|
82
|
+
query: z.ZodString;
|
|
83
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
84
|
+
uriFilter: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type KnowledgeAskRequest = z.infer<typeof KnowledgeAskRequestSchema>;
|
|
87
|
+
/**
|
|
88
|
+
* Source reference in knowledge ask response
|
|
89
|
+
*/
|
|
90
|
+
export declare const KnowledgeAskSourceSchema: z.ZodObject<{
|
|
91
|
+
uri: z.ZodString;
|
|
92
|
+
title: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type KnowledgeAskSource = z.infer<typeof KnowledgeAskSourceSchema>;
|
|
95
|
+
/**
|
|
96
|
+
* Chunk in knowledge ask response
|
|
97
|
+
*/
|
|
98
|
+
export declare const KnowledgeAskChunkSchema: z.ZodObject<{
|
|
99
|
+
content: z.ZodString;
|
|
100
|
+
uri: z.ZodString;
|
|
101
|
+
score: z.ZodNumber;
|
|
102
|
+
chunkIndex: z.ZodNumber;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export type KnowledgeAskChunk = z.infer<typeof KnowledgeAskChunkSchema>;
|
|
105
|
+
/**
|
|
106
|
+
* Knowledge Ask response data
|
|
107
|
+
*/
|
|
108
|
+
export declare const KnowledgeAskDataSchema: z.ZodObject<{
|
|
109
|
+
answer: z.ZodString;
|
|
110
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
111
|
+
uri: z.ZodString;
|
|
112
|
+
title: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
115
|
+
content: z.ZodString;
|
|
116
|
+
uri: z.ZodString;
|
|
117
|
+
score: z.ZodNumber;
|
|
118
|
+
chunkIndex: z.ZodNumber;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
export type KnowledgeAskData = z.infer<typeof KnowledgeAskDataSchema>;
|
|
122
|
+
/**
|
|
123
|
+
* Knowledge Ask success response
|
|
124
|
+
*/
|
|
125
|
+
export declare const KnowledgeAskResponseSchema: z.ZodObject<{
|
|
126
|
+
success: z.ZodLiteral<true>;
|
|
127
|
+
data: z.ZodObject<{
|
|
128
|
+
answer: z.ZodString;
|
|
129
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
130
|
+
uri: z.ZodString;
|
|
131
|
+
title: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
134
|
+
content: z.ZodString;
|
|
135
|
+
uri: z.ZodString;
|
|
136
|
+
score: z.ZodNumber;
|
|
137
|
+
chunkIndex: z.ZodNumber;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
error: z.ZodOptional<z.ZodUndefined>;
|
|
141
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
timestamp: z.ZodString;
|
|
143
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
144
|
+
version: z.ZodString;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
export type KnowledgeAskResponse = z.infer<typeof KnowledgeAskResponseSchema>;
|
|
148
|
+
/**
|
|
149
|
+
* Knowledge Ask error responses
|
|
150
|
+
*/
|
|
151
|
+
export declare const KnowledgeAskBadRequestErrorSchema: z.ZodObject<{
|
|
152
|
+
success: z.ZodLiteral<false>;
|
|
153
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
154
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
timestamp: z.ZodString;
|
|
156
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
157
|
+
version: z.ZodString;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
error: z.ZodObject<{
|
|
160
|
+
code: z.ZodLiteral<"BAD_REQUEST">;
|
|
161
|
+
message: z.ZodString;
|
|
162
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export declare const KnowledgeAskAIUnavailableErrorSchema: z.ZodObject<{
|
|
166
|
+
success: z.ZodLiteral<false>;
|
|
167
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
168
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
timestamp: z.ZodString;
|
|
170
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
version: z.ZodString;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
error: z.ZodObject<{
|
|
174
|
+
code: z.ZodLiteral<"AI_UNAVAILABLE">;
|
|
175
|
+
message: z.ZodString;
|
|
176
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export declare const KnowledgeAskPluginUnavailableErrorSchema: z.ZodObject<{
|
|
180
|
+
success: z.ZodLiteral<false>;
|
|
181
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
182
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
timestamp: z.ZodString;
|
|
184
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
185
|
+
version: z.ZodString;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
error: z.ZodObject<{
|
|
188
|
+
code: z.ZodLiteral<"PLUGIN_UNAVAILABLE">;
|
|
189
|
+
message: z.ZodString;
|
|
190
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
export declare const KnowledgeAskErrorSchema: z.ZodObject<{
|
|
194
|
+
success: z.ZodLiteral<false>;
|
|
195
|
+
data: z.ZodOptional<z.ZodUndefined>;
|
|
196
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
timestamp: z.ZodString;
|
|
198
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
199
|
+
version: z.ZodString;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
error: z.ZodObject<{
|
|
202
|
+
code: z.ZodEnum<{
|
|
203
|
+
SEARCH_ERROR: "SEARCH_ERROR";
|
|
204
|
+
SYNTHESIS_ERROR: "SYNTHESIS_ERROR";
|
|
205
|
+
}>;
|
|
206
|
+
message: z.ZodString;
|
|
207
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
//# sourceMappingURL=knowledge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/knowledge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAAwD,CAAC;AAElG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;iBAM9C,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;iBAMrD,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;iBAMpC,CAAC;AAOH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAAsD,CAAC;AAE9F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;iBAM5C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;iBAM/C,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;iBAMnD,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;iBAMlC,CAAC"}
|