@lssm/lib.infra-ops-spec 2.0.1
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 +61 -0
- package/dist/fixtures-deployment.d.ts +249 -0
- package/dist/fixtures-deployment.js +2 -0
- package/dist/fixtures-incident.d.ts +219 -0
- package/dist/fixtures-incident.js +2 -0
- package/dist/fixtures.d.ts +2 -0
- package/dist/fixtures.js +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2 -0
- package/dist/infra-ops-spec.test.d.ts +1 -0
- package/dist/intent-architecture.d.ts +104 -0
- package/dist/intent-architecture.js +2 -0
- package/dist/intent-canonical.d.ts +4 -0
- package/dist/intent-canonical.js +2 -0
- package/dist/intent-comparison.d.ts +8 -0
- package/dist/intent-comparison.js +2 -0
- package/dist/intent-core.d.ts +98 -0
- package/dist/intent-core.js +2 -0
- package/dist/intent-decisions.d.ts +72 -0
- package/dist/intent-decisions.js +2 -0
- package/dist/intent-fixtures-decision.d.ts +4 -0
- package/dist/intent-fixtures-decision.js +2 -0
- package/dist/intent-fixtures.d.ts +3 -0
- package/dist/intent-fixtures.js +2 -0
- package/dist/intent-plans.d.ts +64 -0
- package/dist/intent-plans.js +2 -0
- package/dist/intent-types.d.ts +284 -0
- package/dist/intent-types.js +2 -0
- package/dist/intent-validation-bindings.d.ts +3 -0
- package/dist/intent-validation-bindings.js +2 -0
- package/dist/intent-validation-refs.d.ts +7 -0
- package/dist/intent-validation-refs.js +2 -0
- package/dist/intent-validation-rules.d.ts +3 -0
- package/dist/intent-validation-rules.js +2 -0
- package/dist/intent-validation-shared.d.ts +9 -0
- package/dist/intent-validation-shared.js +2 -0
- package/dist/intent-validation.d.ts +10 -0
- package/dist/intent-validation.js +2 -0
- package/dist/intent.test.d.ts +1 -0
- package/dist/node/fixtures-deployment.js +1 -0
- package/dist/node/fixtures-incident.js +1 -0
- package/dist/node/fixtures.js +1 -0
- package/dist/node/index.js +1 -0
- package/dist/node/intent-architecture.js +1 -0
- package/dist/node/intent-canonical.js +1 -0
- package/dist/node/intent-comparison.js +1 -0
- package/dist/node/intent-core.js +1 -0
- package/dist/node/intent-decisions.js +1 -0
- package/dist/node/intent-fixtures-decision.js +1 -0
- package/dist/node/intent-fixtures.js +1 -0
- package/dist/node/intent-plans.js +1 -0
- package/dist/node/intent-types.js +1 -0
- package/dist/node/intent-validation-bindings.js +1 -0
- package/dist/node/intent-validation-refs.js +1 -0
- package/dist/node/intent-validation-rules.js +1 -0
- package/dist/node/intent-validation-shared.js +1 -0
- package/dist/node/intent-validation.js +1 -0
- package/dist/node/types.js +1 -0
- package/dist/node/validation.js +1 -0
- package/dist/types.d.ts +748 -0
- package/dist/types.js +2 -0
- package/dist/validation.d.ts +13 -0
- package/dist/validation.js +2 -0
- package/package.json +421 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,748 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ProgressiveDeliveryRolloutRefSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
version: z.ZodOptional<z.ZodString>;
|
|
5
|
+
kind: z.ZodLiteral<"progressive_delivery_rollout">;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const ProgressiveDeliveryRollbackRefSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
version: z.ZodOptional<z.ZodString>;
|
|
10
|
+
kind: z.ZodLiteral<"progressive_delivery_rollback">;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const ObservabilityMetricRefSchema: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
version: z.ZodOptional<z.ZodString>;
|
|
15
|
+
kind: z.ZodLiteral<"observability_metric">;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const ObservabilityTraceRefSchema: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
version: z.ZodOptional<z.ZodString>;
|
|
20
|
+
kind: z.ZodLiteral<"observability_trace">;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const ObservabilityLogRefSchema: z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
version: z.ZodOptional<z.ZodString>;
|
|
25
|
+
kind: z.ZodLiteral<"observability_log">;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const JobScheduleRefSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
version: z.ZodOptional<z.ZodString>;
|
|
30
|
+
kind: z.ZodLiteral<"job_schedule">;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const IntegrationCapabilityRefSchema: z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
version: z.ZodOptional<z.ZodString>;
|
|
35
|
+
kind: z.ZodLiteral<"integration_capability">;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const CompanyOsPolicyGateRefSchema: z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
version: z.ZodOptional<z.ZodString>;
|
|
40
|
+
kind: z.ZodLiteral<"companyos_policy_gate">;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const CompanyOsOwnerRefSchema: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
version: z.ZodOptional<z.ZodString>;
|
|
45
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const OrchestrationWorkflowRefSchema: z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
version: z.ZodOptional<z.ZodString>;
|
|
50
|
+
kind: z.ZodLiteral<"orchestration_workflow">;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export declare const CostBudgetRefSchema: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
version: z.ZodOptional<z.ZodString>;
|
|
55
|
+
kind: z.ZodLiteral<"cost_budget">;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const MeteringUsageRefSchema: z.ZodObject<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
version: z.ZodOptional<z.ZodString>;
|
|
60
|
+
kind: z.ZodLiteral<"metering_usage">;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type ProgressiveDeliveryRolloutRef = z.infer<typeof ProgressiveDeliveryRolloutRefSchema>;
|
|
63
|
+
export type ProgressiveDeliveryRollbackRef = z.infer<typeof ProgressiveDeliveryRollbackRefSchema>;
|
|
64
|
+
export type ObservabilityMetricRef = z.infer<typeof ObservabilityMetricRefSchema>;
|
|
65
|
+
export type ObservabilityTraceRef = z.infer<typeof ObservabilityTraceRefSchema>;
|
|
66
|
+
export type ObservabilityLogRef = z.infer<typeof ObservabilityLogRefSchema>;
|
|
67
|
+
export type JobScheduleRef = z.infer<typeof JobScheduleRefSchema>;
|
|
68
|
+
export type IntegrationCapabilityRef = z.infer<typeof IntegrationCapabilityRefSchema>;
|
|
69
|
+
export type CompanyOsPolicyGateRef = z.infer<typeof CompanyOsPolicyGateRefSchema>;
|
|
70
|
+
export type CompanyOsOwnerRef = z.infer<typeof CompanyOsOwnerRefSchema>;
|
|
71
|
+
export type OrchestrationWorkflowRef = z.infer<typeof OrchestrationWorkflowRefSchema>;
|
|
72
|
+
export type CostBudgetRef = z.infer<typeof CostBudgetRefSchema>;
|
|
73
|
+
export type MeteringUsageRef = z.infer<typeof MeteringUsageRefSchema>;
|
|
74
|
+
export declare const InfraEnvironmentRefSchema: z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
tier: z.ZodEnum<{
|
|
78
|
+
development: "development";
|
|
79
|
+
preview: "preview";
|
|
80
|
+
production: "production";
|
|
81
|
+
staging: "staging";
|
|
82
|
+
}>;
|
|
83
|
+
ownerRef: z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
version: z.ZodOptional<z.ZodString>;
|
|
86
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type InfraEnvironmentRef = z.infer<typeof InfraEnvironmentRefSchema>;
|
|
90
|
+
export declare const InfraRuntimeTargetRefSchema: z.ZodObject<{
|
|
91
|
+
id: z.ZodString;
|
|
92
|
+
type: z.ZodEnum<{
|
|
93
|
+
api: "api";
|
|
94
|
+
custom: "custom";
|
|
95
|
+
database: "database";
|
|
96
|
+
edge: "edge";
|
|
97
|
+
job: "job";
|
|
98
|
+
web: "web";
|
|
99
|
+
worker: "worker";
|
|
100
|
+
}>;
|
|
101
|
+
capabilityRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
103
|
+
version: z.ZodOptional<z.ZodString>;
|
|
104
|
+
kind: z.ZodLiteral<"integration_capability">;
|
|
105
|
+
}, z.core.$strip>>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type InfraRuntimeTargetRef = z.infer<typeof InfraRuntimeTargetRefSchema>;
|
|
108
|
+
export declare const InfraServiceRefSchema: z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
name: z.ZodString;
|
|
111
|
+
runtimeTargetId: z.ZodString;
|
|
112
|
+
ownerRef: z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
version: z.ZodOptional<z.ZodString>;
|
|
115
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export type InfraServiceRef = z.infer<typeof InfraServiceRefSchema>;
|
|
119
|
+
export declare const InfraHealthCheckSpecSchema: z.ZodObject<{
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
serviceId: z.ZodString;
|
|
122
|
+
kind: z.ZodEnum<{
|
|
123
|
+
health: "health";
|
|
124
|
+
liveness: "liveness";
|
|
125
|
+
readiness: "readiness";
|
|
126
|
+
}>;
|
|
127
|
+
metricRef: z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
version: z.ZodOptional<z.ZodString>;
|
|
130
|
+
kind: z.ZodLiteral<"observability_metric">;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
export type InfraHealthCheckSpec = z.infer<typeof InfraHealthCheckSpecSchema>;
|
|
134
|
+
export declare const InfraSloSpecSchema: z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
serviceId: z.ZodString;
|
|
137
|
+
objective: z.ZodString;
|
|
138
|
+
threshold: z.ZodString;
|
|
139
|
+
metricRefs: z.ZodArray<z.ZodObject<{
|
|
140
|
+
id: z.ZodString;
|
|
141
|
+
version: z.ZodOptional<z.ZodString>;
|
|
142
|
+
kind: z.ZodLiteral<"observability_metric">;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
ownerRef: z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
version: z.ZodOptional<z.ZodString>;
|
|
147
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export type InfraSloSpec = z.infer<typeof InfraSloSpecSchema>;
|
|
151
|
+
export declare const InfraMonitorSpecSchema: z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
serviceId: z.ZodString;
|
|
154
|
+
metricRefs: z.ZodArray<z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
version: z.ZodOptional<z.ZodString>;
|
|
157
|
+
kind: z.ZodLiteral<"observability_metric">;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
traceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
160
|
+
id: z.ZodString;
|
|
161
|
+
version: z.ZodOptional<z.ZodString>;
|
|
162
|
+
kind: z.ZodLiteral<"observability_trace">;
|
|
163
|
+
}, z.core.$strip>>>;
|
|
164
|
+
logRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
version: z.ZodOptional<z.ZodString>;
|
|
167
|
+
kind: z.ZodLiteral<"observability_log">;
|
|
168
|
+
}, z.core.$strip>>>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
export type InfraMonitorSpec = z.infer<typeof InfraMonitorSpecSchema>;
|
|
171
|
+
export declare const InfraEvidenceReceiptSpecSchema: z.ZodObject<{
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
sourceRef: z.ZodString;
|
|
174
|
+
action: z.ZodString;
|
|
175
|
+
actorRef: z.ZodObject<{
|
|
176
|
+
id: z.ZodString;
|
|
177
|
+
version: z.ZodOptional<z.ZodString>;
|
|
178
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
targetRef: z.ZodString;
|
|
181
|
+
outcome: z.ZodEnum<{
|
|
182
|
+
approved: "approved";
|
|
183
|
+
failed: "failed";
|
|
184
|
+
mitigated: "mitigated";
|
|
185
|
+
planned: "planned";
|
|
186
|
+
succeeded: "succeeded";
|
|
187
|
+
}>;
|
|
188
|
+
observedAt: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
export type InfraEvidenceReceiptSpec = z.infer<typeof InfraEvidenceReceiptSpecSchema>;
|
|
191
|
+
export declare const InfraApprovalRequirementSpecSchema: z.ZodObject<{
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
policyGateRef: z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
version: z.ZodOptional<z.ZodString>;
|
|
196
|
+
kind: z.ZodLiteral<"companyos_policy_gate">;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
ownerRef: z.ZodObject<{
|
|
199
|
+
id: z.ZodString;
|
|
200
|
+
version: z.ZodOptional<z.ZodString>;
|
|
201
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
requiredFor: z.ZodArray<z.ZodString>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
export type InfraApprovalRequirementSpec = z.infer<typeof InfraApprovalRequirementSpecSchema>;
|
|
206
|
+
export declare const InfraPipelineSpecSchema: z.ZodObject<{
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
jobScheduleRef: z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
version: z.ZodOptional<z.ZodString>;
|
|
211
|
+
kind: z.ZodLiteral<"job_schedule">;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
capabilityRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
version: z.ZodOptional<z.ZodString>;
|
|
216
|
+
kind: z.ZodLiteral<"integration_capability">;
|
|
217
|
+
}, z.core.$strip>>>;
|
|
218
|
+
ownerRef: z.ZodObject<{
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
version: z.ZodOptional<z.ZodString>;
|
|
221
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
export type InfraPipelineSpec = z.infer<typeof InfraPipelineSpecSchema>;
|
|
225
|
+
export declare const InfraMigrationWindowSpecSchema: z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
serviceId: z.ZodString;
|
|
228
|
+
windowRef: z.ZodString;
|
|
229
|
+
rollbackRef: z.ZodObject<{
|
|
230
|
+
id: z.ZodString;
|
|
231
|
+
version: z.ZodOptional<z.ZodString>;
|
|
232
|
+
kind: z.ZodLiteral<"progressive_delivery_rollback">;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
ownerRef: z.ZodObject<{
|
|
235
|
+
id: z.ZodString;
|
|
236
|
+
version: z.ZodOptional<z.ZodString>;
|
|
237
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
export type InfraMigrationWindowSpec = z.infer<typeof InfraMigrationWindowSpecSchema>;
|
|
242
|
+
export declare const InfraDeploymentSpecSchema: z.ZodObject<{
|
|
243
|
+
id: z.ZodString;
|
|
244
|
+
environmentId: z.ZodString;
|
|
245
|
+
serviceId: z.ZodString;
|
|
246
|
+
pipelineId: z.ZodString;
|
|
247
|
+
rolloutRef: z.ZodObject<{
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
version: z.ZodOptional<z.ZodString>;
|
|
250
|
+
kind: z.ZodLiteral<"progressive_delivery_rollout">;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
rollbackRef: z.ZodObject<{
|
|
253
|
+
id: z.ZodString;
|
|
254
|
+
version: z.ZodOptional<z.ZodString>;
|
|
255
|
+
kind: z.ZodLiteral<"progressive_delivery_rollback">;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
approvalRequirementId: z.ZodString;
|
|
258
|
+
healthCheckIds: z.ZodArray<z.ZodString>;
|
|
259
|
+
sloIds: z.ZodArray<z.ZodString>;
|
|
260
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
261
|
+
highRisk: z.ZodDefault<z.ZodBoolean>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export type InfraDeploymentSpec = z.infer<typeof InfraDeploymentSpecSchema>;
|
|
264
|
+
export declare const InfraRollbackSpecSchema: z.ZodObject<{
|
|
265
|
+
id: z.ZodString;
|
|
266
|
+
deploymentId: z.ZodString;
|
|
267
|
+
rollbackRef: z.ZodObject<{
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
version: z.ZodOptional<z.ZodString>;
|
|
270
|
+
kind: z.ZodLiteral<"progressive_delivery_rollback">;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
priorEvidenceReceiptId: z.ZodString;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
export type InfraRollbackSpec = z.infer<typeof InfraRollbackSpecSchema>;
|
|
275
|
+
export declare const InfraReleaseSpecSchema: z.ZodObject<{
|
|
276
|
+
id: z.ZodString;
|
|
277
|
+
deploymentId: z.ZodString;
|
|
278
|
+
version: z.ZodString;
|
|
279
|
+
orchestrationRef: z.ZodObject<{
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
version: z.ZodOptional<z.ZodString>;
|
|
282
|
+
kind: z.ZodLiteral<"orchestration_workflow">;
|
|
283
|
+
}, z.core.$strip>;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
export type InfraReleaseSpec = z.infer<typeof InfraReleaseSpecSchema>;
|
|
286
|
+
export declare const InfraAlertSpecSchema: z.ZodObject<{
|
|
287
|
+
id: z.ZodString;
|
|
288
|
+
serviceId: z.ZodString;
|
|
289
|
+
severity: z.ZodEnum<{
|
|
290
|
+
critical: "critical";
|
|
291
|
+
high: "high";
|
|
292
|
+
low: "low";
|
|
293
|
+
medium: "medium";
|
|
294
|
+
}>;
|
|
295
|
+
monitorId: z.ZodString;
|
|
296
|
+
sloId: z.ZodString;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
export type InfraAlertSpec = z.infer<typeof InfraAlertSpecSchema>;
|
|
299
|
+
export declare const InfraOnCallSpecSchema: z.ZodObject<{
|
|
300
|
+
id: z.ZodString;
|
|
301
|
+
serviceId: z.ZodString;
|
|
302
|
+
ownerRef: z.ZodObject<{
|
|
303
|
+
id: z.ZodString;
|
|
304
|
+
version: z.ZodOptional<z.ZodString>;
|
|
305
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
scheduleRef: z.ZodObject<{
|
|
308
|
+
id: z.ZodString;
|
|
309
|
+
version: z.ZodOptional<z.ZodString>;
|
|
310
|
+
kind: z.ZodLiteral<"job_schedule">;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
export type InfraOnCallSpec = z.infer<typeof InfraOnCallSpecSchema>;
|
|
314
|
+
export declare const InfraEscalationSpecSchema: z.ZodObject<{
|
|
315
|
+
id: z.ZodString;
|
|
316
|
+
incidentId: z.ZodString;
|
|
317
|
+
onCallId: z.ZodString;
|
|
318
|
+
ownerRef: z.ZodObject<{
|
|
319
|
+
id: z.ZodString;
|
|
320
|
+
version: z.ZodOptional<z.ZodString>;
|
|
321
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
}, z.core.$strip>;
|
|
324
|
+
export type InfraEscalationSpec = z.infer<typeof InfraEscalationSpecSchema>;
|
|
325
|
+
export declare const InfraPostmortemSpecSchema: z.ZodObject<{
|
|
326
|
+
id: z.ZodString;
|
|
327
|
+
incidentId: z.ZodString;
|
|
328
|
+
ownerRef: z.ZodObject<{
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
version: z.ZodOptional<z.ZodString>;
|
|
331
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
334
|
+
followUpRefs: z.ZodArray<z.ZodString>;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
export type InfraPostmortemSpec = z.infer<typeof InfraPostmortemSpecSchema>;
|
|
337
|
+
export declare const InfraIncidentSpecSchema: z.ZodObject<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
alertId: z.ZodString;
|
|
340
|
+
environmentId: z.ZodString;
|
|
341
|
+
serviceId: z.ZodString;
|
|
342
|
+
severity: z.ZodEnum<{
|
|
343
|
+
critical: "critical";
|
|
344
|
+
high: "high";
|
|
345
|
+
low: "low";
|
|
346
|
+
medium: "medium";
|
|
347
|
+
}>;
|
|
348
|
+
escalationId: z.ZodString;
|
|
349
|
+
mitigationOwnerRef: z.ZodObject<{
|
|
350
|
+
id: z.ZodString;
|
|
351
|
+
version: z.ZodOptional<z.ZodString>;
|
|
352
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
postmortemId: z.ZodString;
|
|
355
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
356
|
+
}, z.core.$strip>;
|
|
357
|
+
export type InfraIncidentSpec = z.infer<typeof InfraIncidentSpecSchema>;
|
|
358
|
+
export declare const InfraCapacityPlanSpecSchema: z.ZodObject<{
|
|
359
|
+
id: z.ZodString;
|
|
360
|
+
serviceId: z.ZodString;
|
|
361
|
+
expectedLoad: z.ZodString;
|
|
362
|
+
thresholds: z.ZodArray<z.ZodString>;
|
|
363
|
+
ownerRef: z.ZodObject<{
|
|
364
|
+
id: z.ZodString;
|
|
365
|
+
version: z.ZodOptional<z.ZodString>;
|
|
366
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
369
|
+
}, z.core.$strip>;
|
|
370
|
+
export type InfraCapacityPlanSpec = z.infer<typeof InfraCapacityPlanSpecSchema>;
|
|
371
|
+
export declare const InfraCostBudgetSpecSchema: z.ZodObject<{
|
|
372
|
+
id: z.ZodString;
|
|
373
|
+
serviceId: z.ZodString;
|
|
374
|
+
budgetRef: z.ZodObject<{
|
|
375
|
+
id: z.ZodString;
|
|
376
|
+
version: z.ZodOptional<z.ZodString>;
|
|
377
|
+
kind: z.ZodLiteral<"cost_budget">;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
usageRef: z.ZodObject<{
|
|
380
|
+
id: z.ZodString;
|
|
381
|
+
version: z.ZodOptional<z.ZodString>;
|
|
382
|
+
kind: z.ZodLiteral<"metering_usage">;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
|
+
thresholds: z.ZodArray<z.ZodString>;
|
|
385
|
+
ownerRef: z.ZodObject<{
|
|
386
|
+
id: z.ZodString;
|
|
387
|
+
version: z.ZodOptional<z.ZodString>;
|
|
388
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
389
|
+
}, z.core.$strip>;
|
|
390
|
+
}, z.core.$strip>;
|
|
391
|
+
export type InfraCostBudgetSpec = z.infer<typeof InfraCostBudgetSpecSchema>;
|
|
392
|
+
export declare const InfraSecretRefSpecSchema: z.ZodObject<{
|
|
393
|
+
id: z.ZodString;
|
|
394
|
+
purpose: z.ZodString;
|
|
395
|
+
ref: z.ZodString;
|
|
396
|
+
ownerRef: z.ZodObject<{
|
|
397
|
+
id: z.ZodString;
|
|
398
|
+
version: z.ZodOptional<z.ZodString>;
|
|
399
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
}, z.core.$strip>;
|
|
402
|
+
export type InfraSecretRefSpec = z.infer<typeof InfraSecretRefSpecSchema>;
|
|
403
|
+
export declare const InfraOperationalRiskSpecSchema: z.ZodObject<{
|
|
404
|
+
id: z.ZodString;
|
|
405
|
+
serviceId: z.ZodString;
|
|
406
|
+
level: z.ZodEnum<{
|
|
407
|
+
critical: "critical";
|
|
408
|
+
high: "high";
|
|
409
|
+
low: "low";
|
|
410
|
+
medium: "medium";
|
|
411
|
+
}>;
|
|
412
|
+
mitigationRef: z.ZodString;
|
|
413
|
+
ownerRef: z.ZodObject<{
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
version: z.ZodOptional<z.ZodString>;
|
|
416
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
export type InfraOperationalRiskSpec = z.infer<typeof InfraOperationalRiskSpecSchema>;
|
|
420
|
+
export declare const InfraOpsSpecSchema: z.ZodObject<{
|
|
421
|
+
id: z.ZodString;
|
|
422
|
+
version: z.ZodString;
|
|
423
|
+
environments: z.ZodArray<z.ZodObject<{
|
|
424
|
+
id: z.ZodString;
|
|
425
|
+
name: z.ZodString;
|
|
426
|
+
tier: z.ZodEnum<{
|
|
427
|
+
development: "development";
|
|
428
|
+
preview: "preview";
|
|
429
|
+
production: "production";
|
|
430
|
+
staging: "staging";
|
|
431
|
+
}>;
|
|
432
|
+
ownerRef: z.ZodObject<{
|
|
433
|
+
id: z.ZodString;
|
|
434
|
+
version: z.ZodOptional<z.ZodString>;
|
|
435
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
}, z.core.$strip>>;
|
|
438
|
+
runtimeTargets: z.ZodArray<z.ZodObject<{
|
|
439
|
+
id: z.ZodString;
|
|
440
|
+
type: z.ZodEnum<{
|
|
441
|
+
api: "api";
|
|
442
|
+
custom: "custom";
|
|
443
|
+
database: "database";
|
|
444
|
+
edge: "edge";
|
|
445
|
+
job: "job";
|
|
446
|
+
web: "web";
|
|
447
|
+
worker: "worker";
|
|
448
|
+
}>;
|
|
449
|
+
capabilityRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
version: z.ZodOptional<z.ZodString>;
|
|
452
|
+
kind: z.ZodLiteral<"integration_capability">;
|
|
453
|
+
}, z.core.$strip>>>;
|
|
454
|
+
}, z.core.$strip>>;
|
|
455
|
+
services: z.ZodArray<z.ZodObject<{
|
|
456
|
+
id: z.ZodString;
|
|
457
|
+
name: z.ZodString;
|
|
458
|
+
runtimeTargetId: z.ZodString;
|
|
459
|
+
ownerRef: z.ZodObject<{
|
|
460
|
+
id: z.ZodString;
|
|
461
|
+
version: z.ZodOptional<z.ZodString>;
|
|
462
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
463
|
+
}, z.core.$strip>;
|
|
464
|
+
}, z.core.$strip>>;
|
|
465
|
+
pipelines: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
466
|
+
id: z.ZodString;
|
|
467
|
+
jobScheduleRef: z.ZodObject<{
|
|
468
|
+
id: z.ZodString;
|
|
469
|
+
version: z.ZodOptional<z.ZodString>;
|
|
470
|
+
kind: z.ZodLiteral<"job_schedule">;
|
|
471
|
+
}, z.core.$strip>;
|
|
472
|
+
capabilityRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
473
|
+
id: z.ZodString;
|
|
474
|
+
version: z.ZodOptional<z.ZodString>;
|
|
475
|
+
kind: z.ZodLiteral<"integration_capability">;
|
|
476
|
+
}, z.core.$strip>>>;
|
|
477
|
+
ownerRef: z.ZodObject<{
|
|
478
|
+
id: z.ZodString;
|
|
479
|
+
version: z.ZodOptional<z.ZodString>;
|
|
480
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
}, z.core.$strip>>>;
|
|
483
|
+
migrationWindows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
484
|
+
id: z.ZodString;
|
|
485
|
+
serviceId: z.ZodString;
|
|
486
|
+
windowRef: z.ZodString;
|
|
487
|
+
rollbackRef: z.ZodObject<{
|
|
488
|
+
id: z.ZodString;
|
|
489
|
+
version: z.ZodOptional<z.ZodString>;
|
|
490
|
+
kind: z.ZodLiteral<"progressive_delivery_rollback">;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
ownerRef: z.ZodObject<{
|
|
493
|
+
id: z.ZodString;
|
|
494
|
+
version: z.ZodOptional<z.ZodString>;
|
|
495
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
496
|
+
}, z.core.$strip>;
|
|
497
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
498
|
+
}, z.core.$strip>>>;
|
|
499
|
+
deployments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
500
|
+
id: z.ZodString;
|
|
501
|
+
environmentId: z.ZodString;
|
|
502
|
+
serviceId: z.ZodString;
|
|
503
|
+
pipelineId: z.ZodString;
|
|
504
|
+
rolloutRef: z.ZodObject<{
|
|
505
|
+
id: z.ZodString;
|
|
506
|
+
version: z.ZodOptional<z.ZodString>;
|
|
507
|
+
kind: z.ZodLiteral<"progressive_delivery_rollout">;
|
|
508
|
+
}, z.core.$strip>;
|
|
509
|
+
rollbackRef: z.ZodObject<{
|
|
510
|
+
id: z.ZodString;
|
|
511
|
+
version: z.ZodOptional<z.ZodString>;
|
|
512
|
+
kind: z.ZodLiteral<"progressive_delivery_rollback">;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
approvalRequirementId: z.ZodString;
|
|
515
|
+
healthCheckIds: z.ZodArray<z.ZodString>;
|
|
516
|
+
sloIds: z.ZodArray<z.ZodString>;
|
|
517
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
518
|
+
highRisk: z.ZodDefault<z.ZodBoolean>;
|
|
519
|
+
}, z.core.$strip>>>;
|
|
520
|
+
releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
521
|
+
id: z.ZodString;
|
|
522
|
+
deploymentId: z.ZodString;
|
|
523
|
+
version: z.ZodString;
|
|
524
|
+
orchestrationRef: z.ZodObject<{
|
|
525
|
+
id: z.ZodString;
|
|
526
|
+
version: z.ZodOptional<z.ZodString>;
|
|
527
|
+
kind: z.ZodLiteral<"orchestration_workflow">;
|
|
528
|
+
}, z.core.$strip>;
|
|
529
|
+
}, z.core.$strip>>>;
|
|
530
|
+
rollbacks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
531
|
+
id: z.ZodString;
|
|
532
|
+
deploymentId: z.ZodString;
|
|
533
|
+
rollbackRef: z.ZodObject<{
|
|
534
|
+
id: z.ZodString;
|
|
535
|
+
version: z.ZodOptional<z.ZodString>;
|
|
536
|
+
kind: z.ZodLiteral<"progressive_delivery_rollback">;
|
|
537
|
+
}, z.core.$strip>;
|
|
538
|
+
priorEvidenceReceiptId: z.ZodString;
|
|
539
|
+
}, z.core.$strip>>>;
|
|
540
|
+
healthChecks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
541
|
+
id: z.ZodString;
|
|
542
|
+
serviceId: z.ZodString;
|
|
543
|
+
kind: z.ZodEnum<{
|
|
544
|
+
health: "health";
|
|
545
|
+
liveness: "liveness";
|
|
546
|
+
readiness: "readiness";
|
|
547
|
+
}>;
|
|
548
|
+
metricRef: z.ZodObject<{
|
|
549
|
+
id: z.ZodString;
|
|
550
|
+
version: z.ZodOptional<z.ZodString>;
|
|
551
|
+
kind: z.ZodLiteral<"observability_metric">;
|
|
552
|
+
}, z.core.$strip>;
|
|
553
|
+
}, z.core.$strip>>>;
|
|
554
|
+
slos: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
555
|
+
id: z.ZodString;
|
|
556
|
+
serviceId: z.ZodString;
|
|
557
|
+
objective: z.ZodString;
|
|
558
|
+
threshold: z.ZodString;
|
|
559
|
+
metricRefs: z.ZodArray<z.ZodObject<{
|
|
560
|
+
id: z.ZodString;
|
|
561
|
+
version: z.ZodOptional<z.ZodString>;
|
|
562
|
+
kind: z.ZodLiteral<"observability_metric">;
|
|
563
|
+
}, z.core.$strip>>;
|
|
564
|
+
ownerRef: z.ZodObject<{
|
|
565
|
+
id: z.ZodString;
|
|
566
|
+
version: z.ZodOptional<z.ZodString>;
|
|
567
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
568
|
+
}, z.core.$strip>;
|
|
569
|
+
}, z.core.$strip>>>;
|
|
570
|
+
monitors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
571
|
+
id: z.ZodString;
|
|
572
|
+
serviceId: z.ZodString;
|
|
573
|
+
metricRefs: z.ZodArray<z.ZodObject<{
|
|
574
|
+
id: z.ZodString;
|
|
575
|
+
version: z.ZodOptional<z.ZodString>;
|
|
576
|
+
kind: z.ZodLiteral<"observability_metric">;
|
|
577
|
+
}, z.core.$strip>>;
|
|
578
|
+
traceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
579
|
+
id: z.ZodString;
|
|
580
|
+
version: z.ZodOptional<z.ZodString>;
|
|
581
|
+
kind: z.ZodLiteral<"observability_trace">;
|
|
582
|
+
}, z.core.$strip>>>;
|
|
583
|
+
logRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
584
|
+
id: z.ZodString;
|
|
585
|
+
version: z.ZodOptional<z.ZodString>;
|
|
586
|
+
kind: z.ZodLiteral<"observability_log">;
|
|
587
|
+
}, z.core.$strip>>>;
|
|
588
|
+
}, z.core.$strip>>>;
|
|
589
|
+
alerts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
590
|
+
id: z.ZodString;
|
|
591
|
+
serviceId: z.ZodString;
|
|
592
|
+
severity: z.ZodEnum<{
|
|
593
|
+
critical: "critical";
|
|
594
|
+
high: "high";
|
|
595
|
+
low: "low";
|
|
596
|
+
medium: "medium";
|
|
597
|
+
}>;
|
|
598
|
+
monitorId: z.ZodString;
|
|
599
|
+
sloId: z.ZodString;
|
|
600
|
+
}, z.core.$strip>>>;
|
|
601
|
+
onCall: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
602
|
+
id: z.ZodString;
|
|
603
|
+
serviceId: z.ZodString;
|
|
604
|
+
ownerRef: z.ZodObject<{
|
|
605
|
+
id: z.ZodString;
|
|
606
|
+
version: z.ZodOptional<z.ZodString>;
|
|
607
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
608
|
+
}, z.core.$strip>;
|
|
609
|
+
scheduleRef: z.ZodObject<{
|
|
610
|
+
id: z.ZodString;
|
|
611
|
+
version: z.ZodOptional<z.ZodString>;
|
|
612
|
+
kind: z.ZodLiteral<"job_schedule">;
|
|
613
|
+
}, z.core.$strip>;
|
|
614
|
+
}, z.core.$strip>>>;
|
|
615
|
+
escalations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
616
|
+
id: z.ZodString;
|
|
617
|
+
incidentId: z.ZodString;
|
|
618
|
+
onCallId: z.ZodString;
|
|
619
|
+
ownerRef: z.ZodObject<{
|
|
620
|
+
id: z.ZodString;
|
|
621
|
+
version: z.ZodOptional<z.ZodString>;
|
|
622
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
623
|
+
}, z.core.$strip>;
|
|
624
|
+
}, z.core.$strip>>>;
|
|
625
|
+
incidents: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
626
|
+
id: z.ZodString;
|
|
627
|
+
alertId: z.ZodString;
|
|
628
|
+
environmentId: z.ZodString;
|
|
629
|
+
serviceId: z.ZodString;
|
|
630
|
+
severity: z.ZodEnum<{
|
|
631
|
+
critical: "critical";
|
|
632
|
+
high: "high";
|
|
633
|
+
low: "low";
|
|
634
|
+
medium: "medium";
|
|
635
|
+
}>;
|
|
636
|
+
escalationId: z.ZodString;
|
|
637
|
+
mitigationOwnerRef: z.ZodObject<{
|
|
638
|
+
id: z.ZodString;
|
|
639
|
+
version: z.ZodOptional<z.ZodString>;
|
|
640
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
postmortemId: z.ZodString;
|
|
643
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
644
|
+
}, z.core.$strip>>>;
|
|
645
|
+
postmortems: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
646
|
+
id: z.ZodString;
|
|
647
|
+
incidentId: z.ZodString;
|
|
648
|
+
ownerRef: z.ZodObject<{
|
|
649
|
+
id: z.ZodString;
|
|
650
|
+
version: z.ZodOptional<z.ZodString>;
|
|
651
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
652
|
+
}, z.core.$strip>;
|
|
653
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
654
|
+
followUpRefs: z.ZodArray<z.ZodString>;
|
|
655
|
+
}, z.core.$strip>>>;
|
|
656
|
+
capacityPlans: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
657
|
+
id: z.ZodString;
|
|
658
|
+
serviceId: z.ZodString;
|
|
659
|
+
expectedLoad: z.ZodString;
|
|
660
|
+
thresholds: z.ZodArray<z.ZodString>;
|
|
661
|
+
ownerRef: z.ZodObject<{
|
|
662
|
+
id: z.ZodString;
|
|
663
|
+
version: z.ZodOptional<z.ZodString>;
|
|
664
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
665
|
+
}, z.core.$strip>;
|
|
666
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
667
|
+
}, z.core.$strip>>>;
|
|
668
|
+
costBudgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
669
|
+
id: z.ZodString;
|
|
670
|
+
serviceId: z.ZodString;
|
|
671
|
+
budgetRef: z.ZodObject<{
|
|
672
|
+
id: z.ZodString;
|
|
673
|
+
version: z.ZodOptional<z.ZodString>;
|
|
674
|
+
kind: z.ZodLiteral<"cost_budget">;
|
|
675
|
+
}, z.core.$strip>;
|
|
676
|
+
usageRef: z.ZodObject<{
|
|
677
|
+
id: z.ZodString;
|
|
678
|
+
version: z.ZodOptional<z.ZodString>;
|
|
679
|
+
kind: z.ZodLiteral<"metering_usage">;
|
|
680
|
+
}, z.core.$strip>;
|
|
681
|
+
thresholds: z.ZodArray<z.ZodString>;
|
|
682
|
+
ownerRef: z.ZodObject<{
|
|
683
|
+
id: z.ZodString;
|
|
684
|
+
version: z.ZodOptional<z.ZodString>;
|
|
685
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
686
|
+
}, z.core.$strip>;
|
|
687
|
+
}, z.core.$strip>>>;
|
|
688
|
+
secretRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
689
|
+
id: z.ZodString;
|
|
690
|
+
purpose: z.ZodString;
|
|
691
|
+
ref: z.ZodString;
|
|
692
|
+
ownerRef: z.ZodObject<{
|
|
693
|
+
id: z.ZodString;
|
|
694
|
+
version: z.ZodOptional<z.ZodString>;
|
|
695
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
696
|
+
}, z.core.$strip>;
|
|
697
|
+
}, z.core.$strip>>>;
|
|
698
|
+
operationalRisks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
699
|
+
id: z.ZodString;
|
|
700
|
+
serviceId: z.ZodString;
|
|
701
|
+
level: z.ZodEnum<{
|
|
702
|
+
critical: "critical";
|
|
703
|
+
high: "high";
|
|
704
|
+
low: "low";
|
|
705
|
+
medium: "medium";
|
|
706
|
+
}>;
|
|
707
|
+
mitigationRef: z.ZodString;
|
|
708
|
+
ownerRef: z.ZodObject<{
|
|
709
|
+
id: z.ZodString;
|
|
710
|
+
version: z.ZodOptional<z.ZodString>;
|
|
711
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
712
|
+
}, z.core.$strip>;
|
|
713
|
+
}, z.core.$strip>>>;
|
|
714
|
+
approvalRequirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
715
|
+
id: z.ZodString;
|
|
716
|
+
policyGateRef: z.ZodObject<{
|
|
717
|
+
id: z.ZodString;
|
|
718
|
+
version: z.ZodOptional<z.ZodString>;
|
|
719
|
+
kind: z.ZodLiteral<"companyos_policy_gate">;
|
|
720
|
+
}, z.core.$strip>;
|
|
721
|
+
ownerRef: z.ZodObject<{
|
|
722
|
+
id: z.ZodString;
|
|
723
|
+
version: z.ZodOptional<z.ZodString>;
|
|
724
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
725
|
+
}, z.core.$strip>;
|
|
726
|
+
requiredFor: z.ZodArray<z.ZodString>;
|
|
727
|
+
}, z.core.$strip>>>;
|
|
728
|
+
evidenceReceipts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
729
|
+
id: z.ZodString;
|
|
730
|
+
sourceRef: z.ZodString;
|
|
731
|
+
action: z.ZodString;
|
|
732
|
+
actorRef: z.ZodObject<{
|
|
733
|
+
id: z.ZodString;
|
|
734
|
+
version: z.ZodOptional<z.ZodString>;
|
|
735
|
+
kind: z.ZodLiteral<"companyos_owner">;
|
|
736
|
+
}, z.core.$strip>;
|
|
737
|
+
targetRef: z.ZodString;
|
|
738
|
+
outcome: z.ZodEnum<{
|
|
739
|
+
approved: "approved";
|
|
740
|
+
failed: "failed";
|
|
741
|
+
mitigated: "mitigated";
|
|
742
|
+
planned: "planned";
|
|
743
|
+
succeeded: "succeeded";
|
|
744
|
+
}>;
|
|
745
|
+
observedAt: z.ZodString;
|
|
746
|
+
}, z.core.$strip>>>;
|
|
747
|
+
}, z.core.$strip>;
|
|
748
|
+
export type InfraOpsSpec = z.infer<typeof InfraOpsSpecSchema>;
|