@kici-dev/engine 0.1.27 → 0.3.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/dist/approval/types.d.ts +8 -1
- package/dist/approval/types.js +8 -1
- package/dist/artifacts/name.d.ts +60 -0
- package/dist/artifacts/name.js +71 -0
- package/dist/audit/access-log-policy.d.ts +1 -1
- package/dist/audit/access-log-policy.js +8 -0
- package/dist/audit/activity.d.ts +12 -12
- package/dist/audit/retention-policy.js +16 -0
- package/dist/billing/plan-type.d.ts +53 -0
- package/dist/billing/plan-type.js +70 -0
- package/dist/bundler/rolldown-config.d.ts +3 -3
- package/dist/check-mode.d.ts +1 -1
- package/dist/context/concurrency-strategy.d.ts +34 -0
- package/dist/context/concurrency-strategy.js +35 -0
- package/dist/context/held-run-job-id.d.ts +45 -0
- package/dist/context/held-run-job-id.js +56 -0
- package/dist/context/held-run-status.d.ts +33 -0
- package/dist/context/held-run-status.js +37 -0
- package/dist/context/hold-expiry.d.ts +20 -0
- package/dist/context/hold-expiry.js +25 -0
- package/dist/context/hold-reason.d.ts +33 -0
- package/dist/context/hold-reason.js +23 -0
- package/dist/context/hold-type.d.ts +40 -0
- package/dist/context/hold-type.js +61 -0
- package/dist/context/index.d.ts +9 -1
- package/dist/context/index.js +9 -2
- package/dist/context/multi-context.d.ts +3 -3
- package/dist/context/scope-name.d.ts +29 -0
- package/dist/context/scope-name.js +49 -0
- package/dist/context/scope-resolver.d.ts +33 -0
- package/dist/context/scope-resolver.js +45 -15
- package/dist/context/types.d.ts +8 -5
- package/dist/dev-ops/operations.d.ts +8 -0
- package/dist/dev-ops/operations.js +36 -19
- package/dist/diagnostics/infra-alert.d.ts +71 -0
- package/dist/diagnostics/infra-alert.js +60 -0
- package/dist/env/environment-allowlist.d.ts +4 -4
- package/dist/fanout/materialize.d.ts +16 -0
- package/dist/fanout/materialize.js +32 -3
- package/dist/index.d.ts +15 -6
- package/dist/index.js +34 -19
- package/dist/inputs/descriptor.d.ts +9 -9
- package/dist/inventory.d.ts +4 -4
- package/dist/labels.d.ts +82 -2
- package/dist/labels.js +119 -1
- package/dist/matrix/expand.d.ts +49 -2
- package/dist/matrix/expand.js +102 -13
- package/dist/matrix/format.d.ts +6 -1
- package/dist/matrix/format.js +6 -1
- package/dist/mcp/held-run-resolve.d.ts +7 -10
- package/dist/mcp/held-run-resolve.js +33 -7
- package/dist/metrics/catalog-policy.js +4 -4
- package/dist/metrics/metric-catalog.generated.d.ts +959 -739
- package/dist/metrics/metric-catalog.generated.js +284 -20
- package/dist/metrics/metric-kind-compat.d.ts +26 -0
- package/dist/metrics/metric-kind-compat.js +33 -0
- package/dist/protocol/analytics-events.d.ts +6 -6
- package/dist/protocol/dashboard-api-errors.d.ts +1 -0
- package/dist/protocol/dashboard-api-errors.js +5 -1
- package/dist/protocol/dashboard-write-operations.d.ts +143 -86
- package/dist/protocol/dashboard-write-operations.js +91 -17
- package/dist/protocol/messages/access-log.d.ts +437 -392
- package/dist/protocol/messages/access-log.js +11 -2
- package/dist/protocol/messages/actor.d.ts +2 -2
- package/dist/protocol/messages/agent-dev-ops.d.ts +4 -2
- package/dist/protocol/messages/agent-dev-ops.js +2 -5
- package/dist/protocol/messages/agent-run-result.d.ts +72 -62
- package/dist/protocol/messages/auth.d.ts +35 -23
- package/dist/protocol/messages/browser.d.ts +81 -5
- package/dist/protocol/messages/browser.js +53 -2
- package/dist/protocol/messages/capabilities.d.ts +106 -31
- package/dist/protocol/messages/capabilities.js +94 -10
- package/dist/protocol/messages/common.d.ts +45 -2
- package/dist/protocol/messages/common.js +64 -3
- package/dist/protocol/messages/dashboard-sealed-write.d.ts +52 -0
- package/dist/protocol/messages/dashboard-sealed-write.js +57 -0
- package/dist/protocol/messages/dashboard.d.ts +1026 -498
- package/dist/protocol/messages/dashboard.js +208 -31
- package/dist/protocol/messages/deployment-identity.d.ts +37 -10
- package/dist/protocol/messages/deployment-identity.js +30 -3
- package/dist/protocol/messages/event-log.d.ts +5 -5
- package/dist/protocol/messages/execution-status.d.ts +189 -53
- package/dist/protocol/messages/execution-status.js +108 -40
- package/dist/protocol/messages/heartbeat-health.d.ts +83 -0
- package/dist/protocol/messages/heartbeat-health.js +87 -0
- package/dist/protocol/messages/log-stream.d.ts +18 -0
- package/dist/protocol/messages/log-stream.js +19 -0
- package/dist/protocol/messages/oidc-mint.d.ts +7 -0
- package/dist/protocol/messages/oidc-mint.js +7 -0
- package/dist/protocol/messages/orchestrator-agent.d.ts +264 -67
- package/dist/protocol/messages/orchestrator-agent.js +170 -5
- package/dist/protocol/messages/pat-kind.d.ts +1 -1
- package/dist/protocol/messages/peer.d.ts +122 -58
- package/dist/protocol/messages/peer.js +37 -2
- package/dist/protocol/messages/platform-orchestrator.d.ts +561 -217
- package/dist/protocol/messages/platform-orchestrator.js +131 -21
- package/dist/protocol/messages/run-events.d.ts +5 -5
- package/dist/protocol/messages/scaler-event.d.ts +3 -3
- package/dist/protocol/messages/source-registration.d.ts +56 -13
- package/dist/protocol/messages/source-registration.js +49 -6
- package/dist/protocol/source-origin.d.ts +1 -1
- package/dist/provenance/attestation-origin.d.ts +1 -1
- package/dist/provenance/schema.d.ts +11 -11
- package/dist/provenance/verify.js +2 -1
- package/dist/provider/changed-files-fetcher.d.ts +21 -2
- package/dist/provider/check-run-conclusion.d.ts +2 -2
- package/dist/provider/check-status-poster.d.ts +23 -0
- package/dist/provider/index.d.ts +2 -2
- package/dist/registration/registerable-trigger-type.d.ts +14 -13
- package/dist/registration/registerable-trigger-type.js +1 -0
- package/dist/sandbox/capabilities.d.ts +6 -0
- package/dist/sandbox/capabilities.js +57 -0
- package/dist/scaler/scaler-backend-type.d.ts +1 -1
- package/dist/status/presentation.d.ts +89 -0
- package/dist/status/presentation.js +163 -0
- package/dist/trigger/compiled-matchers.d.ts +13 -0
- package/dist/trigger/compiled-matchers.js +44 -0
- package/dist/trigger/event-buckets.d.ts +44 -0
- package/dist/trigger/event-buckets.js +93 -0
- package/dist/trigger/matcher.d.ts +7 -3
- package/dist/trigger/matcher.js +53 -15
- package/dist/trigger/schedule-key.d.ts +14 -0
- package/dist/trigger/schedule-key.js +21 -0
- package/dist/trigger/trigger-event-type.d.ts +1 -1
- package/dist/trigger/trigger-event-type.js +2 -0
- package/dist/trigger/types.d.ts +173 -43
- package/dist/trigger/types.js +82 -25
- package/dist/webhook/event-types.d.ts +56 -0
- package/dist/webhook/event-types.js +59 -0
- package/dist/ws/ws-like.d.ts +13 -0
- package/package.json +12 -4
- package/sbom.spdx.json +10 -10
- package/dist/environment/host-match.d.ts +0 -25
- package/dist/environment/index.d.ts +0 -6
- package/dist/environment/multi-env.d.ts +0 -30
- package/dist/environment/scope-resolver.d.ts +0 -46
- package/dist/environment/scope-template.d.ts +0 -18
- package/dist/environment/types.d.ts +0 -119
- package/dist/package-manager.d.ts +0 -20
- package/dist/protocol/messages/observe.d.ts +0 -76
- package/dist/protocol/messages/saas-orchestrator.d.ts +0 -2179
- package/dist/protocol/messages/test-run.d.ts +0 -59
- package/dist/state-machine/index.d.ts +0 -2
- package/dist/state-machine/index.js +0 -3
- package/dist/state-machine/machine.d.ts +0 -34
- package/dist/state-machine/machine.js +0 -103
- package/dist/state-machine/types.d.ts +0 -34
- package/dist/state-machine/types.js +0 -15
|
@@ -1,22 +1,54 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Org trust policy — Platform-owned tenant policy pushed to the orchestrator.
|
|
4
|
+
* The orchestrator caches and enforces it; it never owns it. Named separately
|
|
5
|
+
* from the enclosing message so the orchestrator's evaluator and cache can type
|
|
6
|
+
* against the policy alone.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Documented default hours a security hold stays open.
|
|
10
|
+
*
|
|
11
|
+
* The single owner of the value: the fail-closed policy, the orchestrator's
|
|
12
|
+
* stored-policy default, and the hold-sizing fallback all read it, so the
|
|
13
|
+
* number cannot drift between the two packages that enforce it.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DEFAULT_APPROVAL_EXPIRY_HOURS = 72;
|
|
16
|
+
export declare const trustPolicySchema: z.ZodObject<{
|
|
17
|
+
forkPolicy: z.ZodEnum<{
|
|
18
|
+
allow: "allow";
|
|
19
|
+
hold: "hold";
|
|
20
|
+
reject: "reject";
|
|
21
|
+
}>;
|
|
22
|
+
unknownContributorPolicy: z.ZodEnum<{
|
|
23
|
+
hold: "hold";
|
|
24
|
+
reject: "reject";
|
|
25
|
+
}>;
|
|
26
|
+
workflowChangePolicy: z.ZodEnum<{
|
|
27
|
+
allow: "allow";
|
|
28
|
+
hold: "hold";
|
|
29
|
+
reject: "reject";
|
|
30
|
+
}>;
|
|
31
|
+
approvalExpiryHours: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type TrustPolicy = z.infer<typeof trustPolicySchema>;
|
|
2
34
|
/** Trust policy update pushed from Platform to orchestrator when policy or identity links change. */
|
|
3
35
|
export declare const trustPolicyUpdateSchema: z.ZodObject<{
|
|
4
36
|
type: z.ZodLiteral<"trust_policy.update">;
|
|
5
37
|
orgId: z.ZodString;
|
|
6
38
|
policy: z.ZodObject<{
|
|
7
39
|
forkPolicy: z.ZodEnum<{
|
|
40
|
+
allow: "allow";
|
|
8
41
|
hold: "hold";
|
|
9
42
|
reject: "reject";
|
|
10
|
-
allow: "allow";
|
|
11
43
|
}>;
|
|
12
44
|
unknownContributorPolicy: z.ZodEnum<{
|
|
13
45
|
hold: "hold";
|
|
14
46
|
reject: "reject";
|
|
15
47
|
}>;
|
|
16
48
|
workflowChangePolicy: z.ZodEnum<{
|
|
49
|
+
allow: "allow";
|
|
17
50
|
hold: "hold";
|
|
18
51
|
reject: "reject";
|
|
19
|
-
allow: "allow";
|
|
20
52
|
}>;
|
|
21
53
|
approvalExpiryHours: z.ZodNumber;
|
|
22
54
|
}, z.core.$strip>;
|
|
@@ -27,10 +59,10 @@ export declare const trustPolicyUpdateSchema: z.ZodObject<{
|
|
|
27
59
|
providerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
60
|
}, z.core.$strip>>;
|
|
29
61
|
memberCiTrustLevels: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
62
|
+
admin: "admin";
|
|
30
63
|
none: "none";
|
|
31
64
|
read: "read";
|
|
32
65
|
write: "write";
|
|
33
|
-
admin: "admin";
|
|
34
66
|
}>>;
|
|
35
67
|
teamMemberships: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
36
68
|
teamName: z.ZodString;
|
|
@@ -80,12 +112,18 @@ export declare const webhookRelaySchema: z.ZodObject<{
|
|
|
80
112
|
* is malformed (e.g. invalid JSON in generic_webhook_sources.verification_config) or
|
|
81
113
|
* the chunked stream itself was malformed (out-of-order, oversize, base64 decode fail,
|
|
82
114
|
* missing chunks at finalization, TTL expiry). Maps to HTTP 500.
|
|
115
|
+
* - `shed_retry_later`: the orchestrator's ingest admission controller is
|
|
116
|
+
* saturated and shed this delivery (event-loop overload or per-org/global
|
|
117
|
+
* cap). Maps to HTTP 429 + Retry-After — a terminal, RETRYABLE result: the
|
|
118
|
+
* caller redelivers, the delivery is not lost, and Platform does NOT fail
|
|
119
|
+
* over to a pool peer (peers share the same overloaded orchestrator DB).
|
|
83
120
|
*/
|
|
84
121
|
export declare const WebhookRelayResult: z.ZodEnum<{
|
|
85
122
|
accepted: "accepted";
|
|
123
|
+
rejected_misconfigured: "rejected_misconfigured";
|
|
86
124
|
rejected_signature: "rejected_signature";
|
|
87
125
|
rejected_unknown_source: "rejected_unknown_source";
|
|
88
|
-
|
|
126
|
+
shed_retry_later: "shed_retry_later";
|
|
89
127
|
}>;
|
|
90
128
|
export type WebhookRelayResult = z.infer<typeof WebhookRelayResult>;
|
|
91
129
|
/**
|
|
@@ -181,6 +219,23 @@ export declare const staleCheckrunCleanupSchema: z.ZodObject<{
|
|
|
181
219
|
}, z.core.$strip>>;
|
|
182
220
|
}, z.core.$strip>;
|
|
183
221
|
export type StaleCheckrunCleanup = z.infer<typeof staleCheckrunCleanupSchema>;
|
|
222
|
+
/**
|
|
223
|
+
* Platform capability advertisement, sent once by the Platform after the
|
|
224
|
+
* orchestrator authenticates. The orchestrator caches it per connection and
|
|
225
|
+
* pre-flight-checks its own feature-gated sends against it, so a self-hosted
|
|
226
|
+
* orchestrator running ahead of the hosted Platform surfaces a diagnosable
|
|
227
|
+
* capability gap instead of firing a frame the Platform would silently drop.
|
|
228
|
+
* Payload is `platformCapabilitiesSchema` (`.passthrough()`, absent =
|
|
229
|
+
* unsupported).
|
|
230
|
+
*/
|
|
231
|
+
export declare const platformCapabilitiesMessageSchema: z.ZodObject<{
|
|
232
|
+
type: z.ZodLiteral<"platform.capabilities">;
|
|
233
|
+
capabilities: z.ZodObject<{
|
|
234
|
+
orchMetrics: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
oidcMint: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
}, z.core.$loose>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
export type PlatformCapabilitiesMessage = z.infer<typeof platformCapabilitiesMessageSchema>;
|
|
184
239
|
/**
|
|
185
240
|
* Periodic OTel metrics push from orchestrator to Platform for centralized observability.
|
|
186
241
|
*
|
|
@@ -203,8 +258,8 @@ export declare const orchMetricsSchema: z.ZodObject<{
|
|
|
203
258
|
name: z.ZodString;
|
|
204
259
|
type: z.ZodEnum<{
|
|
205
260
|
counter: "counter";
|
|
206
|
-
histogram: "histogram";
|
|
207
261
|
gauge: "gauge";
|
|
262
|
+
histogram: "histogram";
|
|
208
263
|
upDownCounter: "upDownCounter";
|
|
209
264
|
}>;
|
|
210
265
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -233,9 +288,10 @@ export declare const webhookAckSchema: z.ZodObject<{
|
|
|
233
288
|
deliveryId: z.ZodString;
|
|
234
289
|
result: z.ZodOptional<z.ZodEnum<{
|
|
235
290
|
accepted: "accepted";
|
|
291
|
+
rejected_misconfigured: "rejected_misconfigured";
|
|
236
292
|
rejected_signature: "rejected_signature";
|
|
237
293
|
rejected_unknown_source: "rejected_unknown_source";
|
|
238
|
-
|
|
294
|
+
shed_retry_later: "shed_retry_later";
|
|
239
295
|
}>>;
|
|
240
296
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
297
|
}, z.core.$strip>;
|
|
@@ -245,10 +301,10 @@ export declare const executionEventSchema: z.ZodObject<{
|
|
|
245
301
|
messageId: z.ZodString;
|
|
246
302
|
runId: z.ZodString;
|
|
247
303
|
event: z.ZodEnum<{
|
|
248
|
-
started: "started";
|
|
249
|
-
job_dispatched: "job_dispatched";
|
|
250
|
-
job_completed: "job_completed";
|
|
251
304
|
finished: "finished";
|
|
305
|
+
job_completed: "job_completed";
|
|
306
|
+
job_dispatched: "job_dispatched";
|
|
307
|
+
started: "started";
|
|
252
308
|
}>;
|
|
253
309
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
254
310
|
timestamp: z.ZodNumber;
|
|
@@ -262,13 +318,59 @@ export declare const logChunkSchema: z.ZodObject<{
|
|
|
262
318
|
stepIndex: z.ZodNumber;
|
|
263
319
|
lines: z.ZodArray<z.ZodString>;
|
|
264
320
|
timestamp: z.ZodNumber;
|
|
321
|
+
stream: z.ZodOptional<z.ZodEnum<{
|
|
322
|
+
stderr: "stderr";
|
|
323
|
+
stdout: "stdout";
|
|
324
|
+
}>>;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
/**
|
|
327
|
+
* Phase of an orchestration/provisioning log line. Mirrors the phases the
|
|
328
|
+
* orchestrator writes into its per-job orchestration/provisioning JSONL files
|
|
329
|
+
* and that the dashboard splits the run-detail orch-log viewer by. `unknown`
|
|
330
|
+
* is the fallback for a line whose stored phase is missing/unrecognized.
|
|
331
|
+
*/
|
|
332
|
+
export declare const OrchLogPhase: z.ZodEnum<{
|
|
333
|
+
dispatch: "dispatch";
|
|
334
|
+
provisioning: "provisioning";
|
|
335
|
+
setup: "setup";
|
|
336
|
+
teardown: "teardown";
|
|
337
|
+
unknown: "unknown";
|
|
338
|
+
}>;
|
|
339
|
+
export type OrchLogPhase = z.infer<typeof OrchLogPhase>;
|
|
340
|
+
/**
|
|
341
|
+
* Live orchestration/provisioning log line(s) pushed orchestrator -> Platform.
|
|
342
|
+
*
|
|
343
|
+
* Emitted at the orchestrator's `writeOrchLog` / provisioning-write tap points
|
|
344
|
+
* (in addition to persisting to LogStorage, which stays the authoritative
|
|
345
|
+
* backfill source). Platform fans this out to browser subscribers keyed by
|
|
346
|
+
* `(runId, jobId)` as an `orch-log.lines` message. `lines` carries the raw
|
|
347
|
+
* message strings for this phase; `ts` is the write timestamp (ms).
|
|
348
|
+
*
|
|
349
|
+
* Best-effort: a push failure never breaks dispatch (fire-and-forget at the
|
|
350
|
+
* write site). Not correlated/acked, so — unlike step `log.chunk` — it is not
|
|
351
|
+
* fast-pathed and carries no `messageId`.
|
|
352
|
+
*/
|
|
353
|
+
export declare const orchLogChunkSchema: z.ZodObject<{
|
|
354
|
+
type: z.ZodLiteral<"orch-log.chunk">;
|
|
355
|
+
runId: z.ZodString;
|
|
356
|
+
jobId: z.ZodString;
|
|
357
|
+
phase: z.ZodEnum<{
|
|
358
|
+
dispatch: "dispatch";
|
|
359
|
+
provisioning: "provisioning";
|
|
360
|
+
setup: "setup";
|
|
361
|
+
teardown: "teardown";
|
|
362
|
+
unknown: "unknown";
|
|
363
|
+
}>;
|
|
364
|
+
lines: z.ZodArray<z.ZodString>;
|
|
365
|
+
ts: z.ZodNumber;
|
|
265
366
|
}, z.core.$strip>;
|
|
367
|
+
export type OrchLogChunk = z.infer<typeof orchLogChunkSchema>;
|
|
266
368
|
/** Cache lookup statistics forwarded from orchestrator to Platform for centralized metrics. */
|
|
267
369
|
export declare const cacheStatsSchema: z.ZodObject<{
|
|
268
370
|
type: z.ZodLiteral<"cache.stats">;
|
|
269
371
|
cacheType: z.ZodEnum<{
|
|
270
|
-
source: "source";
|
|
271
372
|
dep: "dep";
|
|
373
|
+
source: "source";
|
|
272
374
|
}>;
|
|
273
375
|
hit: z.ZodBoolean;
|
|
274
376
|
}, z.core.$strip>;
|
|
@@ -289,36 +391,48 @@ export declare const orchCapabilitiesUpdateSchema: z.ZodObject<{
|
|
|
289
391
|
coordinator: "coordinator";
|
|
290
392
|
worker: "worker";
|
|
291
393
|
}>>;
|
|
292
|
-
dashboardWrites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
293
|
-
"secrets.set": "secrets.set";
|
|
294
|
-
"secrets.delete": "secrets.delete";
|
|
295
|
-
"secrets.scope.create": "secrets.scope.create";
|
|
296
|
-
"secrets.scope.rename": "secrets.scope.rename";
|
|
297
|
-
"secrets.scope.delete": "secrets.scope.delete";
|
|
298
|
-
"variables.set": "variables.set";
|
|
299
|
-
"variables.delete": "variables.delete";
|
|
300
|
-
"contexts.create": "contexts.create";
|
|
301
|
-
"contexts.update": "contexts.update";
|
|
302
|
-
"contexts.test_access.set": "contexts.test_access.set";
|
|
303
|
-
"contexts.delete": "contexts.delete";
|
|
304
|
-
"contexts.bindings.set": "contexts.bindings.set";
|
|
305
|
-
"contexts.source_overrides.set": "contexts.source_overrides.set";
|
|
306
|
-
"contexts.source_overrides.delete": "contexts.source_overrides.delete";
|
|
307
|
-
"held_runs.approve": "held_runs.approve";
|
|
308
|
-
"held_runs.reject": "held_runs.reject";
|
|
309
|
-
"event_dlq.retry": "event_dlq.retry";
|
|
310
|
-
"event_dlq.discard": "event_dlq.discard";
|
|
394
|
+
dashboardWrites: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodEnum<{
|
|
311
395
|
"attestations.retry": "attestations.retry";
|
|
312
|
-
"registration.disable": "registration.disable";
|
|
313
|
-
"registration.delete": "registration.delete";
|
|
314
|
-
"global_workflows.update": "global_workflows.update";
|
|
315
396
|
"backends.sync": "backends.sync";
|
|
316
397
|
"backends.sync_one": "backends.sync_one";
|
|
317
398
|
"backends.test": "backends.test";
|
|
399
|
+
"contexts.bindings.set": "contexts.bindings.set";
|
|
400
|
+
"contexts.create": "contexts.create";
|
|
401
|
+
"contexts.delete": "contexts.delete";
|
|
402
|
+
"contexts.source_overrides.delete": "contexts.source_overrides.delete";
|
|
403
|
+
"contexts.source_overrides.set": "contexts.source_overrides.set";
|
|
404
|
+
"contexts.test_access.set": "contexts.test_access.set";
|
|
405
|
+
"contexts.update": "contexts.update";
|
|
406
|
+
"event_dlq.discard": "event_dlq.discard";
|
|
407
|
+
"event_dlq.retry": "event_dlq.retry";
|
|
318
408
|
"fleet.host.declare": "fleet.host.declare";
|
|
319
409
|
"fleet.host.remove": "fleet.host.remove";
|
|
320
|
-
|
|
410
|
+
"global_workflows.update": "global_workflows.update";
|
|
411
|
+
"held_runs.approve": "held_runs.approve";
|
|
412
|
+
"held_runs.reject": "held_runs.reject";
|
|
413
|
+
"registration.delete": "registration.delete";
|
|
414
|
+
"registration.disable": "registration.disable";
|
|
415
|
+
"secrets.delete": "secrets.delete";
|
|
416
|
+
"secrets.scope.create": "secrets.scope.create";
|
|
417
|
+
"secrets.scope.delete": "secrets.scope.delete";
|
|
418
|
+
"secrets.scope.rename": "secrets.scope.rename";
|
|
419
|
+
"secrets.set": "secrets.set";
|
|
420
|
+
"variables.delete": "variables.delete";
|
|
421
|
+
"variables.set": "variables.set";
|
|
422
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
423
|
+
disabled: "disabled";
|
|
424
|
+
encrypted: "encrypted";
|
|
425
|
+
permissive: "permissive";
|
|
426
|
+
}>]>>, z.ZodTransform<Partial<Record<"attestations.retry" | "backends.sync" | "backends.sync_one" | "backends.test" | "contexts.bindings.set" | "contexts.create" | "contexts.delete" | "contexts.source_overrides.delete" | "contexts.source_overrides.set" | "contexts.test_access.set" | "contexts.update" | "event_dlq.discard" | "event_dlq.retry" | "fleet.host.declare" | "fleet.host.remove" | "global_workflows.update" | "held_runs.approve" | "held_runs.reject" | "registration.delete" | "registration.disable" | "secrets.delete" | "secrets.scope.create" | "secrets.scope.delete" | "secrets.scope.rename" | "secrets.set" | "variables.delete" | "variables.set", "disabled" | "encrypted" | "permissive">>, Partial<Record<"attestations.retry" | "backends.sync" | "backends.sync_one" | "backends.test" | "contexts.bindings.set" | "contexts.create" | "contexts.delete" | "contexts.source_overrides.delete" | "contexts.source_overrides.set" | "contexts.test_access.set" | "contexts.update" | "event_dlq.discard" | "event_dlq.retry" | "fleet.host.declare" | "fleet.host.remove" | "global_workflows.update" | "held_runs.approve" | "held_runs.reject" | "registration.delete" | "registration.disable" | "secrets.delete" | "secrets.scope.create" | "secrets.scope.delete" | "secrets.scope.rename" | "secrets.set" | "variables.delete" | "variables.set", "disabled" | "encrypted" | "permissive" | boolean>>>>>;
|
|
321
427
|
supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
428
|
+
dashboardEncryptionKey: z.ZodOptional<z.ZodObject<{
|
|
429
|
+
kty: z.ZodLiteral<"OKP">;
|
|
430
|
+
crv: z.ZodLiteral<"X25519">;
|
|
431
|
+
x: z.ZodString;
|
|
432
|
+
kid: z.ZodString;
|
|
433
|
+
use: z.ZodOptional<z.ZodLiteral<"enc">>;
|
|
434
|
+
}, z.core.$loose>>;
|
|
435
|
+
dashboardVerifiedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
436
|
}, z.core.$loose>;
|
|
323
437
|
}, z.core.$strip>;
|
|
324
438
|
export type OrchCapabilitiesUpdate = z.infer<typeof orchCapabilitiesUpdateSchema>;
|
|
@@ -358,18 +472,18 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
358
472
|
orgId: z.ZodString;
|
|
359
473
|
policy: z.ZodObject<{
|
|
360
474
|
forkPolicy: z.ZodEnum<{
|
|
475
|
+
allow: "allow";
|
|
361
476
|
hold: "hold";
|
|
362
477
|
reject: "reject";
|
|
363
|
-
allow: "allow";
|
|
364
478
|
}>;
|
|
365
479
|
unknownContributorPolicy: z.ZodEnum<{
|
|
366
480
|
hold: "hold";
|
|
367
481
|
reject: "reject";
|
|
368
482
|
}>;
|
|
369
483
|
workflowChangePolicy: z.ZodEnum<{
|
|
484
|
+
allow: "allow";
|
|
370
485
|
hold: "hold";
|
|
371
486
|
reject: "reject";
|
|
372
|
-
allow: "allow";
|
|
373
487
|
}>;
|
|
374
488
|
approvalExpiryHours: z.ZodNumber;
|
|
375
489
|
}, z.core.$strip>;
|
|
@@ -380,10 +494,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
380
494
|
providerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
495
|
}, z.core.$strip>>;
|
|
382
496
|
memberCiTrustLevels: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
497
|
+
admin: "admin";
|
|
383
498
|
none: "none";
|
|
384
499
|
read: "read";
|
|
385
500
|
write: "write";
|
|
386
|
-
admin: "admin";
|
|
387
501
|
}>>;
|
|
388
502
|
teamMemberships: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
389
503
|
teamName: z.ZodString;
|
|
@@ -466,6 +580,17 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
466
580
|
}>;
|
|
467
581
|
message: z.ZodString;
|
|
468
582
|
}, z.core.$strip>>;
|
|
583
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
584
|
+
type: z.ZodLiteral<"platform.capabilities">;
|
|
585
|
+
capabilities: z.ZodObject<{
|
|
586
|
+
orchMetrics: z.ZodOptional<z.ZodBoolean>;
|
|
587
|
+
oidcMint: z.ZodOptional<z.ZodBoolean>;
|
|
588
|
+
}, z.core.$loose>;
|
|
589
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
590
|
+
type: z.ZodLiteral<"nack">;
|
|
591
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
592
|
+
receivedType: z.ZodOptional<z.ZodString>;
|
|
593
|
+
reason: z.ZodString;
|
|
469
594
|
}, z.core.$strip>, z.ZodObject<{
|
|
470
595
|
type: z.ZodLiteral<"dashboard.run.detail">;
|
|
471
596
|
requestId: z.ZodString;
|
|
@@ -526,6 +651,36 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
526
651
|
component: z.ZodString;
|
|
527
652
|
}, z.core.$strip>], "type">;
|
|
528
653
|
runId: z.ZodString;
|
|
654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
+
type: z.ZodLiteral<"dashboard.run.state">;
|
|
656
|
+
requestId: z.ZodString;
|
|
657
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
658
|
+
type: z.ZodLiteral<"user">;
|
|
659
|
+
sub: z.ZodString;
|
|
660
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
661
|
+
patId: z.ZodString;
|
|
662
|
+
label: z.ZodString;
|
|
663
|
+
}, z.core.$strip>>;
|
|
664
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
665
|
+
type: z.ZodLiteral<"api_key">;
|
|
666
|
+
keyId: z.ZodString;
|
|
667
|
+
ownerSub: z.ZodString;
|
|
668
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
669
|
+
label: z.ZodString;
|
|
670
|
+
}, z.core.$strip>>;
|
|
671
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
672
|
+
type: z.ZodLiteral<"service_account">;
|
|
673
|
+
id: z.ZodString;
|
|
674
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
675
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
676
|
+
sub: z.ZodString;
|
|
677
|
+
reason: z.ZodString;
|
|
678
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
679
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
680
|
+
type: z.ZodLiteral<"system">;
|
|
681
|
+
component: z.ZodString;
|
|
682
|
+
}, z.core.$strip>], "type">;
|
|
683
|
+
runId: z.ZodString;
|
|
529
684
|
}, z.core.$strip>, z.ZodObject<{
|
|
530
685
|
type: z.ZodLiteral<"dashboard.step.logs">;
|
|
531
686
|
requestId: z.ZodString;
|
|
@@ -625,10 +780,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
625
780
|
digest: z.ZodOptional<z.ZodString>;
|
|
626
781
|
name: z.ZodOptional<z.ZodString>;
|
|
627
782
|
status: z.ZodOptional<z.ZodEnum<{
|
|
628
|
-
pending: "pending";
|
|
629
783
|
failed: "failed";
|
|
630
|
-
|
|
784
|
+
pending: "pending";
|
|
631
785
|
unverifiable: "unverifiable";
|
|
786
|
+
verified: "verified";
|
|
632
787
|
}>>;
|
|
633
788
|
repository: z.ZodOptional<z.ZodString>;
|
|
634
789
|
workflow: z.ZodOptional<z.ZodString>;
|
|
@@ -696,6 +851,36 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
696
851
|
component: z.ZodString;
|
|
697
852
|
}, z.core.$strip>], "type">;
|
|
698
853
|
runId: z.ZodOptional<z.ZodString>;
|
|
854
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
855
|
+
type: z.ZodLiteral<"dashboard.artifacts.list">;
|
|
856
|
+
requestId: z.ZodString;
|
|
857
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
858
|
+
type: z.ZodLiteral<"user">;
|
|
859
|
+
sub: z.ZodString;
|
|
860
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
861
|
+
patId: z.ZodString;
|
|
862
|
+
label: z.ZodString;
|
|
863
|
+
}, z.core.$strip>>;
|
|
864
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
865
|
+
type: z.ZodLiteral<"api_key">;
|
|
866
|
+
keyId: z.ZodString;
|
|
867
|
+
ownerSub: z.ZodString;
|
|
868
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
869
|
+
label: z.ZodString;
|
|
870
|
+
}, z.core.$strip>>;
|
|
871
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
872
|
+
type: z.ZodLiteral<"service_account">;
|
|
873
|
+
id: z.ZodString;
|
|
874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
875
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
876
|
+
sub: z.ZodString;
|
|
877
|
+
reason: z.ZodString;
|
|
878
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
879
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
880
|
+
type: z.ZodLiteral<"system">;
|
|
881
|
+
component: z.ZodString;
|
|
882
|
+
}, z.core.$strip>], "type">;
|
|
883
|
+
runId: z.ZodString;
|
|
699
884
|
}, z.core.$strip>, z.ZodObject<{
|
|
700
885
|
type: z.ZodLiteral<"dashboard.runs.list">;
|
|
701
886
|
requestId: z.ZodString;
|
|
@@ -1040,8 +1225,8 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1040
1225
|
branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1041
1226
|
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1042
1227
|
concurrencyStrategy: z.ZodOptional<z.ZodEnum<{
|
|
1043
|
-
queue: "queue";
|
|
1044
1228
|
"cancel-pending": "cancel-pending";
|
|
1229
|
+
queue: "queue";
|
|
1045
1230
|
}>>;
|
|
1046
1231
|
requiredReviewers: z.ZodOptional<z.ZodNumber>;
|
|
1047
1232
|
waitTimerSeconds: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1087,8 +1272,8 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1087
1272
|
branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1088
1273
|
concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1089
1274
|
concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1090
|
-
queue: "queue";
|
|
1091
1275
|
"cancel-pending": "cancel-pending";
|
|
1276
|
+
queue: "queue";
|
|
1092
1277
|
}>>>;
|
|
1093
1278
|
requiredReviewers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1094
1279
|
waitTimerSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1217,7 +1402,12 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1217
1402
|
}, z.core.$strip>], "type">;
|
|
1218
1403
|
contextId: z.ZodString;
|
|
1219
1404
|
key: z.ZodString;
|
|
1220
|
-
value: z.ZodString
|
|
1405
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
sealed: z.ZodOptional<z.ZodObject<{
|
|
1407
|
+
keyId: z.ZodString;
|
|
1408
|
+
ephemeralPublicKey: z.ZodString;
|
|
1409
|
+
encrypted: z.ZodString;
|
|
1410
|
+
}, z.core.$strip>>;
|
|
1221
1411
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
1222
1412
|
}, z.core.$strip>, z.ZodObject<{
|
|
1223
1413
|
type: z.ZodLiteral<"dashboard.contexts.variables.delete">;
|
|
@@ -1470,7 +1660,12 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1470
1660
|
}, z.core.$strip>], "type">;
|
|
1471
1661
|
scope: z.ZodString;
|
|
1472
1662
|
key: z.ZodString;
|
|
1473
|
-
value: z.ZodString
|
|
1663
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
sealed: z.ZodOptional<z.ZodObject<{
|
|
1665
|
+
keyId: z.ZodString;
|
|
1666
|
+
ephemeralPublicKey: z.ZodString;
|
|
1667
|
+
encrypted: z.ZodString;
|
|
1668
|
+
}, z.core.$strip>>;
|
|
1474
1669
|
}, z.core.$strip>, z.ZodObject<{
|
|
1475
1670
|
type: z.ZodLiteral<"dashboard.contexts.secrets.delete">;
|
|
1476
1671
|
requestId: z.ZodString;
|
|
@@ -1655,16 +1850,18 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1655
1850
|
component: z.ZodString;
|
|
1656
1851
|
}, z.core.$strip>], "type">;
|
|
1657
1852
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1658
|
-
pending: "pending";
|
|
1659
1853
|
approved: "approved";
|
|
1660
|
-
rejected: "rejected";
|
|
1661
1854
|
expired: "expired";
|
|
1855
|
+
pending: "pending";
|
|
1856
|
+
rejected: "rejected";
|
|
1857
|
+
released: "released";
|
|
1662
1858
|
}>>;
|
|
1663
1859
|
queueType: z.ZodOptional<z.ZodEnum<{
|
|
1664
1860
|
context: "context";
|
|
1665
1861
|
security: "security";
|
|
1666
1862
|
}>>;
|
|
1667
1863
|
runId: z.ZodOptional<z.ZodString>;
|
|
1864
|
+
heldRunId: z.ZodOptional<z.ZodString>;
|
|
1668
1865
|
orgId: z.ZodOptional<z.ZodString>;
|
|
1669
1866
|
}, z.core.$strip>, z.ZodObject<{
|
|
1670
1867
|
type: z.ZodLiteral<"dashboard.held-runs.approve">;
|
|
@@ -2275,18 +2472,50 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2275
2472
|
routingKey: z.ZodOptional<z.ZodString>;
|
|
2276
2473
|
event: z.ZodOptional<z.ZodString>;
|
|
2277
2474
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2278
|
-
failed: "failed";
|
|
2279
|
-
received: "received";
|
|
2280
|
-
processed: "processed";
|
|
2281
2475
|
duplicate: "duplicate";
|
|
2282
|
-
|
|
2476
|
+
failed: "failed";
|
|
2283
2477
|
lockfile_corrupt: "lockfile_corrupt";
|
|
2478
|
+
lockfile_missing: "lockfile_missing";
|
|
2479
|
+
processed: "processed";
|
|
2480
|
+
received: "received";
|
|
2284
2481
|
}>>;
|
|
2285
2482
|
fromTimestamp: z.ZodOptional<z.ZodString>;
|
|
2286
2483
|
toTimestamp: z.ZodOptional<z.ZodString>;
|
|
2287
2484
|
deliveryId: z.ZodOptional<z.ZodString>;
|
|
2288
2485
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2289
2486
|
cursor: z.ZodOptional<z.ZodString>;
|
|
2487
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2488
|
+
type: z.ZodLiteral<"dashboard.event-log.activity">;
|
|
2489
|
+
requestId: z.ZodString;
|
|
2490
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2491
|
+
type: z.ZodLiteral<"user">;
|
|
2492
|
+
sub: z.ZodString;
|
|
2493
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
2494
|
+
patId: z.ZodString;
|
|
2495
|
+
label: z.ZodString;
|
|
2496
|
+
}, z.core.$strip>>;
|
|
2497
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2498
|
+
type: z.ZodLiteral<"api_key">;
|
|
2499
|
+
keyId: z.ZodString;
|
|
2500
|
+
ownerSub: z.ZodString;
|
|
2501
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
2502
|
+
label: z.ZodString;
|
|
2503
|
+
}, z.core.$strip>>;
|
|
2504
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2505
|
+
type: z.ZodLiteral<"service_account">;
|
|
2506
|
+
id: z.ZodString;
|
|
2507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2508
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
2509
|
+
sub: z.ZodString;
|
|
2510
|
+
reason: z.ZodString;
|
|
2511
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
2512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2513
|
+
type: z.ZodLiteral<"system">;
|
|
2514
|
+
component: z.ZodString;
|
|
2515
|
+
}, z.core.$strip>], "type">;
|
|
2516
|
+
orgId: z.ZodString;
|
|
2517
|
+
fromTimestamp: z.ZodString;
|
|
2518
|
+
toTimestamp: z.ZodString;
|
|
2290
2519
|
}, z.core.$strip>, z.ZodObject<{
|
|
2291
2520
|
type: z.ZodLiteral<"dashboard.event-log.detail">;
|
|
2292
2521
|
requestId: z.ZodString;
|
|
@@ -2577,117 +2806,126 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2577
2806
|
}, z.core.$strip>], "type">;
|
|
2578
2807
|
orgId: z.ZodString;
|
|
2579
2808
|
actorType: z.ZodOptional<z.ZodEnum<{
|
|
2580
|
-
user: "user";
|
|
2581
2809
|
api_key: "api_key";
|
|
2582
|
-
service_account: "service_account";
|
|
2583
2810
|
platform_operator: "platform_operator";
|
|
2811
|
+
service_account: "service_account";
|
|
2584
2812
|
system: "system";
|
|
2813
|
+
user: "user";
|
|
2585
2814
|
}>>;
|
|
2586
2815
|
actorId: z.ZodOptional<z.ZodString>;
|
|
2587
2816
|
action: z.ZodOptional<z.ZodEnum<{
|
|
2588
|
-
"
|
|
2589
|
-
|
|
2590
|
-
"
|
|
2591
|
-
"
|
|
2592
|
-
"global_workflows.update": "global_workflows.update";
|
|
2593
|
-
"fleet.host.declare": "fleet.host.declare";
|
|
2594
|
-
"fleet.host.remove": "fleet.host.remove";
|
|
2595
|
-
"run.detail.read": "run.detail.read";
|
|
2596
|
-
"run.structured.read": "run.structured.read";
|
|
2597
|
-
"runs.list.read": "runs.list.read";
|
|
2598
|
-
"runs.filters.read": "runs.filters.read";
|
|
2599
|
-
"sources.list.read": "sources.list.read";
|
|
2600
|
-
"run.payload.read": "run.payload.read";
|
|
2601
|
-
"run.orch_logs.read": "run.orch_logs.read";
|
|
2602
|
-
"step.logs.read": "step.logs.read";
|
|
2817
|
+
"access_log.list.read": "access_log.list.read";
|
|
2818
|
+
archive_chunk: "archive_chunk";
|
|
2819
|
+
"artifacts.read": "artifacts.read";
|
|
2820
|
+
"attestation.retry": "attestation.retry";
|
|
2603
2821
|
"attestations.read": "attestations.read";
|
|
2604
|
-
"
|
|
2605
|
-
"
|
|
2606
|
-
"
|
|
2607
|
-
"
|
|
2608
|
-
"
|
|
2609
|
-
"
|
|
2610
|
-
"event_log.detail.read": "event_log.detail.read";
|
|
2611
|
-
"event_log.payload.read": "event_log.payload.read";
|
|
2612
|
-
"context.list.read": "context.list.read";
|
|
2613
|
-
"context.get.read": "context.get.read";
|
|
2822
|
+
"backend.get.read": "backend.get.read";
|
|
2823
|
+
"backend.list.read": "backend.list.read";
|
|
2824
|
+
"backend.sync": "backend.sync";
|
|
2825
|
+
"backend.sync.one": "backend.sync.one";
|
|
2826
|
+
"backend.test": "backend.test";
|
|
2827
|
+
"cluster_name.update": "cluster_name.update";
|
|
2614
2828
|
"context.create": "context.create";
|
|
2615
|
-
"context.update": "context.update";
|
|
2616
2829
|
"context.delete": "context.delete";
|
|
2617
|
-
"
|
|
2618
|
-
"
|
|
2619
|
-
"
|
|
2620
|
-
"
|
|
2621
|
-
"source_override.set": "source_override.set";
|
|
2622
|
-
"source_override.delete": "source_override.delete";
|
|
2830
|
+
"context.get.read": "context.get.read";
|
|
2831
|
+
"context.history.read": "context.history.read";
|
|
2832
|
+
"context.list.read": "context.list.read";
|
|
2833
|
+
"context.update": "context.update";
|
|
2623
2834
|
"context_binding.list.read": "context_binding.list.read";
|
|
2624
2835
|
"context_binding.set": "context_binding.set";
|
|
2625
|
-
"
|
|
2626
|
-
"
|
|
2627
|
-
"
|
|
2628
|
-
"
|
|
2629
|
-
"
|
|
2630
|
-
"
|
|
2631
|
-
"
|
|
2632
|
-
"
|
|
2633
|
-
"
|
|
2634
|
-
"held_run.approve": "held_run.approve";
|
|
2635
|
-
"held_run.auto_approve": "held_run.auto_approve";
|
|
2636
|
-
"held_run.reject": "held_run.reject";
|
|
2637
|
-
"held_run.request": "held_run.request";
|
|
2638
|
-
"held_run.expire": "held_run.expire";
|
|
2639
|
-
"registration.list.read": "registration.list.read";
|
|
2836
|
+
"context_var.delete": "context_var.delete";
|
|
2837
|
+
"context_var.list.read": "context_var.list.read";
|
|
2838
|
+
"context_var.set": "context_var.set";
|
|
2839
|
+
"db.create_readonly_user": "db.create_readonly_user";
|
|
2840
|
+
"db.create_role": "db.create_role";
|
|
2841
|
+
"db.ensure": "db.ensure";
|
|
2842
|
+
"db.fresh": "db.fresh";
|
|
2843
|
+
"db.refresh_collation_version": "db.refresh_collation_version";
|
|
2844
|
+
"db.reindex": "db.reindex";
|
|
2640
2845
|
"diagnostics.read": "diagnostics.read";
|
|
2641
|
-
"
|
|
2642
|
-
"
|
|
2643
|
-
"
|
|
2846
|
+
"event_dlq.discard": "event_dlq.discard";
|
|
2847
|
+
"event_dlq.list.read": "event_dlq.list.read";
|
|
2848
|
+
"event_dlq.retry": "event_dlq.retry";
|
|
2849
|
+
"event_log.detail.read": "event_log.detail.read";
|
|
2850
|
+
"event_log.list.read": "event_log.list.read";
|
|
2851
|
+
"event_log.payload.read": "event_log.payload.read";
|
|
2852
|
+
"fleet.host.declare": "fleet.host.declare";
|
|
2853
|
+
"fleet.host.remove": "fleet.host.remove";
|
|
2644
2854
|
"fleet.init_runner.bringup": "fleet.init_runner.bringup";
|
|
2645
2855
|
"fleet.pre_boot.send": "fleet.pre_boot.send";
|
|
2646
|
-
"
|
|
2647
|
-
"backend.get.read": "backend.get.read";
|
|
2648
|
-
"backend.sync": "backend.sync";
|
|
2649
|
-
"backend.sync.one": "backend.sync.one";
|
|
2650
|
-
"backend.test": "backend.test";
|
|
2856
|
+
"fleet.read": "fleet.read";
|
|
2651
2857
|
"global_workflows.get.read": "global_workflows.get.read";
|
|
2858
|
+
"global_workflows.update": "global_workflows.update";
|
|
2859
|
+
"held_run.approve": "held_run.approve";
|
|
2860
|
+
"held_run.auto_approve": "held_run.auto_approve";
|
|
2861
|
+
"held_run.expire": "held_run.expire";
|
|
2862
|
+
"held_run.list.read": "held_run.list.read";
|
|
2863
|
+
"held_run.reject": "held_run.reject";
|
|
2864
|
+
"held_run.request": "held_run.request";
|
|
2865
|
+
"job.cancel": "job.cancel";
|
|
2652
2866
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
2653
|
-
"cluster_name.update": "cluster_name.update";
|
|
2654
|
-
"attestation.retry": "attestation.retry";
|
|
2655
|
-
"access_log.list.read": "access_log.list.read";
|
|
2656
|
-
"event_dlq.list.read": "event_dlq.list.read";
|
|
2657
|
-
archive_chunk: "archive_chunk";
|
|
2658
2867
|
purge_chunk: "purge_chunk";
|
|
2868
|
+
"registration.delete": "registration.delete";
|
|
2869
|
+
"registration.disable": "registration.disable";
|
|
2870
|
+
"registration.list.read": "registration.list.read";
|
|
2871
|
+
"run.cancel": "run.cancel";
|
|
2872
|
+
"run.detail.read": "run.detail.read";
|
|
2873
|
+
"run.manual_schedule": "run.manual_schedule";
|
|
2874
|
+
"run.orch_logs.read": "run.orch_logs.read";
|
|
2875
|
+
"run.payload.read": "run.payload.read";
|
|
2876
|
+
"run.rerun": "run.rerun";
|
|
2877
|
+
"run.structured.read": "run.structured.read";
|
|
2878
|
+
"run.trigger": "run.trigger";
|
|
2879
|
+
"runs.filters.read": "runs.filters.read";
|
|
2880
|
+
"runs.list.read": "runs.list.read";
|
|
2881
|
+
"scaler.agents.read": "scaler.agents.read";
|
|
2882
|
+
"scaler.capacity.read": "scaler.capacity.read";
|
|
2883
|
+
"secret.delete": "secret.delete";
|
|
2884
|
+
"secret.list.read": "secret.list.read";
|
|
2885
|
+
"secret.reveal": "secret.reveal";
|
|
2886
|
+
"secret.set": "secret.set";
|
|
2887
|
+
"secret_scope.create": "secret_scope.create";
|
|
2888
|
+
"secret_scope.delete": "secret_scope.delete";
|
|
2889
|
+
"secret_scope.rename": "secret_scope.rename";
|
|
2890
|
+
"source_override.delete": "source_override.delete";
|
|
2891
|
+
"source_override.list.read": "source_override.list.read";
|
|
2892
|
+
"source_override.set": "source_override.set";
|
|
2893
|
+
"sources.list.read": "sources.list.read";
|
|
2894
|
+
"step.logs.read": "step.logs.read";
|
|
2895
|
+
"trust_policy.updated": "trust_policy.updated";
|
|
2659
2896
|
}>>;
|
|
2660
2897
|
source: z.ZodOptional<z.ZodEnum<{
|
|
2898
|
+
admin_cli: "admin_cli";
|
|
2899
|
+
admin_http: "admin_http";
|
|
2661
2900
|
agent: "agent";
|
|
2662
2901
|
platform_proxy: "platform_proxy";
|
|
2663
|
-
admin_http: "admin_http";
|
|
2664
|
-
admin_cli: "admin_cli";
|
|
2665
2902
|
}>>;
|
|
2666
2903
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
2667
|
-
error: "error";
|
|
2668
2904
|
allowed: "allowed";
|
|
2669
2905
|
denied: "denied";
|
|
2906
|
+
error: "error";
|
|
2670
2907
|
}>>;
|
|
2671
2908
|
targetType: z.ZodOptional<z.ZodEnum<{
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2909
|
+
access_log: "access_log";
|
|
2910
|
+
attestation: "attestation";
|
|
2911
|
+
backend: "backend";
|
|
2912
|
+
cluster_meta: "cluster_meta";
|
|
2675
2913
|
context: "context";
|
|
2676
|
-
|
|
2914
|
+
database: "database";
|
|
2915
|
+
diagnostics: "diagnostics";
|
|
2916
|
+
event_dlq: "event_dlq";
|
|
2677
2917
|
event_log: "event_log";
|
|
2678
2918
|
event_log_payload: "event_log_payload";
|
|
2679
|
-
secret_scope: "secret_scope";
|
|
2680
|
-
registration: "registration";
|
|
2681
|
-
backend: "backend";
|
|
2682
|
-
diagnostics: "diagnostics";
|
|
2683
|
-
scaler: "scaler";
|
|
2684
2919
|
fleet: "fleet";
|
|
2685
2920
|
held_run: "held_run";
|
|
2686
|
-
|
|
2687
|
-
event_dlq: "event_dlq";
|
|
2921
|
+
job: "job";
|
|
2688
2922
|
org_settings: "org_settings";
|
|
2689
|
-
|
|
2690
|
-
|
|
2923
|
+
payload: "payload";
|
|
2924
|
+
registration: "registration";
|
|
2925
|
+
run: "run";
|
|
2926
|
+
scaler: "scaler";
|
|
2927
|
+
secret_scope: "secret_scope";
|
|
2928
|
+
step: "step";
|
|
2691
2929
|
}>>;
|
|
2692
2930
|
targetId: z.ZodOptional<z.ZodString>;
|
|
2693
2931
|
fromTimestamp: z.ZodOptional<z.ZodString>;
|
|
@@ -2910,9 +3148,10 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2910
3148
|
deliveryId: z.ZodString;
|
|
2911
3149
|
result: z.ZodOptional<z.ZodEnum<{
|
|
2912
3150
|
accepted: "accepted";
|
|
3151
|
+
rejected_misconfigured: "rejected_misconfigured";
|
|
2913
3152
|
rejected_signature: "rejected_signature";
|
|
2914
3153
|
rejected_unknown_source: "rejected_unknown_source";
|
|
2915
|
-
|
|
3154
|
+
shed_retry_later: "shed_retry_later";
|
|
2916
3155
|
}>>;
|
|
2917
3156
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2918
3157
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2920,10 +3159,10 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2920
3159
|
messageId: z.ZodString;
|
|
2921
3160
|
runId: z.ZodString;
|
|
2922
3161
|
event: z.ZodEnum<{
|
|
2923
|
-
started: "started";
|
|
2924
|
-
job_dispatched: "job_dispatched";
|
|
2925
|
-
job_completed: "job_completed";
|
|
2926
3162
|
finished: "finished";
|
|
3163
|
+
job_completed: "job_completed";
|
|
3164
|
+
job_dispatched: "job_dispatched";
|
|
3165
|
+
started: "started";
|
|
2927
3166
|
}>;
|
|
2928
3167
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2929
3168
|
timestamp: z.ZodNumber;
|
|
@@ -2935,20 +3174,38 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2935
3174
|
stepIndex: z.ZodNumber;
|
|
2936
3175
|
lines: z.ZodArray<z.ZodString>;
|
|
2937
3176
|
timestamp: z.ZodNumber;
|
|
3177
|
+
stream: z.ZodOptional<z.ZodEnum<{
|
|
3178
|
+
stderr: "stderr";
|
|
3179
|
+
stdout: "stdout";
|
|
3180
|
+
}>>;
|
|
3181
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3182
|
+
type: z.ZodLiteral<"orch-log.chunk">;
|
|
3183
|
+
runId: z.ZodString;
|
|
3184
|
+
jobId: z.ZodString;
|
|
3185
|
+
phase: z.ZodEnum<{
|
|
3186
|
+
dispatch: "dispatch";
|
|
3187
|
+
provisioning: "provisioning";
|
|
3188
|
+
setup: "setup";
|
|
3189
|
+
teardown: "teardown";
|
|
3190
|
+
unknown: "unknown";
|
|
3191
|
+
}>;
|
|
3192
|
+
lines: z.ZodArray<z.ZodString>;
|
|
3193
|
+
ts: z.ZodNumber;
|
|
2938
3194
|
}, z.core.$strip>, z.ZodObject<{
|
|
2939
3195
|
type: z.ZodLiteral<"execution.status">;
|
|
2940
3196
|
messageId: z.ZodString;
|
|
2941
3197
|
runId: z.ZodString;
|
|
2942
3198
|
workflowName: z.ZodString;
|
|
2943
3199
|
status: z.ZodEnum<{
|
|
2944
|
-
success: "success";
|
|
2945
|
-
pending: "pending";
|
|
2946
|
-
running: "running";
|
|
2947
|
-
failed: "failed";
|
|
2948
3200
|
cancelled: "cancelled";
|
|
2949
3201
|
cancelling: "cancelling";
|
|
3202
|
+
failed: "failed";
|
|
2950
3203
|
held: "held";
|
|
3204
|
+
pending: "pending";
|
|
3205
|
+
running: "running";
|
|
3206
|
+
success: "success";
|
|
2951
3207
|
}>;
|
|
3208
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
2952
3209
|
repoIdentifier: z.ZodOptional<z.ZodString>;
|
|
2953
3210
|
repoProvider: z.ZodOptional<z.ZodString>;
|
|
2954
3211
|
localWorkingTree: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2976,18 +3233,28 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2976
3233
|
run: "run";
|
|
2977
3234
|
}>;
|
|
2978
3235
|
category: z.ZodEnum<{
|
|
2979
|
-
|
|
2980
|
-
install_secrets: "install_secrets";
|
|
2981
|
-
lock_resolution: "lock_resolution";
|
|
3236
|
+
approval_misconfig: "approval_misconfig";
|
|
2982
3237
|
build_coordination: "build_coordination";
|
|
2983
3238
|
context_rules: "context_rules";
|
|
2984
3239
|
dynamic_eval: "dynamic_eval";
|
|
2985
|
-
|
|
3240
|
+
install_secrets: "install_secrets";
|
|
3241
|
+
lock_resolution: "lock_resolution";
|
|
2986
3242
|
matrix_expansion: "matrix_expansion";
|
|
3243
|
+
no_agent: "no_agent";
|
|
3244
|
+
sandbox_denied: "sandbox_denied";
|
|
3245
|
+
secret_resolution: "secret_resolution";
|
|
3246
|
+
trust_policy: "trust_policy";
|
|
2987
3247
|
}>;
|
|
2988
3248
|
message: z.ZodString;
|
|
2989
3249
|
jobName: z.ZodOptional<z.ZodString>;
|
|
2990
3250
|
}, z.core.$strip>>;
|
|
3251
|
+
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
3252
|
+
cancelled: "cancelled";
|
|
3253
|
+
dead_orchestrator: "dead_orchestrator";
|
|
3254
|
+
never_started: "never_started";
|
|
3255
|
+
step_failure: "step_failure";
|
|
3256
|
+
timed_out: "timed_out";
|
|
3257
|
+
}>>;
|
|
2991
3258
|
}, z.core.$strip>, z.ZodObject<{
|
|
2992
3259
|
type: z.ZodLiteral<"step.status.forward">;
|
|
2993
3260
|
messageId: z.ZodString;
|
|
@@ -2997,20 +3264,20 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2997
3264
|
stepIndex: z.ZodNumber;
|
|
2998
3265
|
stepName: z.ZodString;
|
|
2999
3266
|
state: z.ZodEnum<{
|
|
3000
|
-
|
|
3001
|
-
|
|
3267
|
+
cancelled: "cancelled";
|
|
3268
|
+
failed: "failed";
|
|
3002
3269
|
pending: "pending";
|
|
3003
3270
|
running: "running";
|
|
3004
|
-
|
|
3005
|
-
|
|
3271
|
+
skipped: "skipped";
|
|
3272
|
+
success: "success";
|
|
3006
3273
|
}>;
|
|
3007
3274
|
timestamp: z.ZodNumber;
|
|
3008
3275
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3009
3276
|
secretsAccessed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3010
3277
|
concurrencyKind: z.ZodOptional<z.ZodEnum<{
|
|
3011
|
-
sequential: "sequential";
|
|
3012
3278
|
"parallel-child": "parallel-child";
|
|
3013
3279
|
"parallel-group": "parallel-group";
|
|
3280
|
+
sequential: "sequential";
|
|
3014
3281
|
}>>;
|
|
3015
3282
|
groupId: z.ZodOptional<z.ZodString>;
|
|
3016
3283
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3020,17 +3287,18 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3020
3287
|
jobId: z.ZodString;
|
|
3021
3288
|
jobName: z.ZodString;
|
|
3022
3289
|
status: z.ZodEnum<{
|
|
3023
|
-
skipped: "skipped";
|
|
3024
|
-
success: "success";
|
|
3025
|
-
pending: "pending";
|
|
3026
|
-
running: "running";
|
|
3027
|
-
failed: "failed";
|
|
3028
3290
|
cancelled: "cancelled";
|
|
3029
3291
|
cancelling: "cancelling";
|
|
3292
|
+
drift_dropped: "drift_dropped";
|
|
3293
|
+
failed: "failed";
|
|
3294
|
+
pending: "pending";
|
|
3030
3295
|
queued: "queued";
|
|
3031
3296
|
recovering: "recovering";
|
|
3297
|
+
running: "running";
|
|
3298
|
+
skipped: "skipped";
|
|
3299
|
+
success: "success";
|
|
3032
3300
|
timed_out_stale: "timed_out_stale";
|
|
3033
|
-
|
|
3301
|
+
unroutable: "unroutable";
|
|
3034
3302
|
}>;
|
|
3035
3303
|
matrixValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3036
3304
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3049,14 +3317,17 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3049
3317
|
run: "run";
|
|
3050
3318
|
}>;
|
|
3051
3319
|
category: z.ZodEnum<{
|
|
3052
|
-
|
|
3053
|
-
install_secrets: "install_secrets";
|
|
3054
|
-
lock_resolution: "lock_resolution";
|
|
3320
|
+
approval_misconfig: "approval_misconfig";
|
|
3055
3321
|
build_coordination: "build_coordination";
|
|
3056
3322
|
context_rules: "context_rules";
|
|
3057
3323
|
dynamic_eval: "dynamic_eval";
|
|
3058
|
-
|
|
3324
|
+
install_secrets: "install_secrets";
|
|
3325
|
+
lock_resolution: "lock_resolution";
|
|
3059
3326
|
matrix_expansion: "matrix_expansion";
|
|
3327
|
+
no_agent: "no_agent";
|
|
3328
|
+
sandbox_denied: "sandbox_denied";
|
|
3329
|
+
secret_resolution: "secret_resolution";
|
|
3330
|
+
trust_policy: "trust_policy";
|
|
3060
3331
|
}>;
|
|
3061
3332
|
message: z.ZodString;
|
|
3062
3333
|
jobName: z.ZodOptional<z.ZodString>;
|
|
@@ -3068,13 +3339,13 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3068
3339
|
runId: z.ZodString;
|
|
3069
3340
|
workflowName: z.ZodString;
|
|
3070
3341
|
status: z.ZodEnum<{
|
|
3071
|
-
success: "success";
|
|
3072
|
-
pending: "pending";
|
|
3073
|
-
running: "running";
|
|
3074
|
-
failed: "failed";
|
|
3075
3342
|
cancelled: "cancelled";
|
|
3076
3343
|
cancelling: "cancelling";
|
|
3344
|
+
failed: "failed";
|
|
3077
3345
|
held: "held";
|
|
3346
|
+
pending: "pending";
|
|
3347
|
+
running: "running";
|
|
3348
|
+
success: "success";
|
|
3078
3349
|
}>;
|
|
3079
3350
|
routingKey: z.ZodOptional<z.ZodString>;
|
|
3080
3351
|
repoIdentifier: z.ZodOptional<z.ZodString>;
|
|
@@ -3091,6 +3362,13 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3091
3362
|
triggeredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3092
3363
|
triggeredByAgentLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3093
3364
|
failureReason: z.ZodOptional<z.ZodString>;
|
|
3365
|
+
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
3366
|
+
cancelled: "cancelled";
|
|
3367
|
+
dead_orchestrator: "dead_orchestrator";
|
|
3368
|
+
never_started: "never_started";
|
|
3369
|
+
step_failure: "step_failure";
|
|
3370
|
+
timed_out: "timed_out";
|
|
3371
|
+
}>>;
|
|
3094
3372
|
jobs: z.ZodArray<z.ZodObject<{
|
|
3095
3373
|
jobId: z.ZodString;
|
|
3096
3374
|
jobName: z.ZodString;
|
|
@@ -3112,54 +3390,66 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3112
3390
|
coordinator: "coordinator";
|
|
3113
3391
|
worker: "worker";
|
|
3114
3392
|
}>>;
|
|
3115
|
-
dashboardWrites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
3116
|
-
"secrets.set": "secrets.set";
|
|
3117
|
-
"secrets.delete": "secrets.delete";
|
|
3118
|
-
"secrets.scope.create": "secrets.scope.create";
|
|
3119
|
-
"secrets.scope.rename": "secrets.scope.rename";
|
|
3120
|
-
"secrets.scope.delete": "secrets.scope.delete";
|
|
3121
|
-
"variables.set": "variables.set";
|
|
3122
|
-
"variables.delete": "variables.delete";
|
|
3123
|
-
"contexts.create": "contexts.create";
|
|
3124
|
-
"contexts.update": "contexts.update";
|
|
3125
|
-
"contexts.test_access.set": "contexts.test_access.set";
|
|
3126
|
-
"contexts.delete": "contexts.delete";
|
|
3127
|
-
"contexts.bindings.set": "contexts.bindings.set";
|
|
3128
|
-
"contexts.source_overrides.set": "contexts.source_overrides.set";
|
|
3129
|
-
"contexts.source_overrides.delete": "contexts.source_overrides.delete";
|
|
3130
|
-
"held_runs.approve": "held_runs.approve";
|
|
3131
|
-
"held_runs.reject": "held_runs.reject";
|
|
3132
|
-
"event_dlq.retry": "event_dlq.retry";
|
|
3133
|
-
"event_dlq.discard": "event_dlq.discard";
|
|
3393
|
+
dashboardWrites: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodEnum<{
|
|
3134
3394
|
"attestations.retry": "attestations.retry";
|
|
3135
|
-
"registration.disable": "registration.disable";
|
|
3136
|
-
"registration.delete": "registration.delete";
|
|
3137
|
-
"global_workflows.update": "global_workflows.update";
|
|
3138
3395
|
"backends.sync": "backends.sync";
|
|
3139
3396
|
"backends.sync_one": "backends.sync_one";
|
|
3140
3397
|
"backends.test": "backends.test";
|
|
3398
|
+
"contexts.bindings.set": "contexts.bindings.set";
|
|
3399
|
+
"contexts.create": "contexts.create";
|
|
3400
|
+
"contexts.delete": "contexts.delete";
|
|
3401
|
+
"contexts.source_overrides.delete": "contexts.source_overrides.delete";
|
|
3402
|
+
"contexts.source_overrides.set": "contexts.source_overrides.set";
|
|
3403
|
+
"contexts.test_access.set": "contexts.test_access.set";
|
|
3404
|
+
"contexts.update": "contexts.update";
|
|
3405
|
+
"event_dlq.discard": "event_dlq.discard";
|
|
3406
|
+
"event_dlq.retry": "event_dlq.retry";
|
|
3141
3407
|
"fleet.host.declare": "fleet.host.declare";
|
|
3142
3408
|
"fleet.host.remove": "fleet.host.remove";
|
|
3143
|
-
|
|
3409
|
+
"global_workflows.update": "global_workflows.update";
|
|
3410
|
+
"held_runs.approve": "held_runs.approve";
|
|
3411
|
+
"held_runs.reject": "held_runs.reject";
|
|
3412
|
+
"registration.delete": "registration.delete";
|
|
3413
|
+
"registration.disable": "registration.disable";
|
|
3414
|
+
"secrets.delete": "secrets.delete";
|
|
3415
|
+
"secrets.scope.create": "secrets.scope.create";
|
|
3416
|
+
"secrets.scope.delete": "secrets.scope.delete";
|
|
3417
|
+
"secrets.scope.rename": "secrets.scope.rename";
|
|
3418
|
+
"secrets.set": "secrets.set";
|
|
3419
|
+
"variables.delete": "variables.delete";
|
|
3420
|
+
"variables.set": "variables.set";
|
|
3421
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
3422
|
+
disabled: "disabled";
|
|
3423
|
+
encrypted: "encrypted";
|
|
3424
|
+
permissive: "permissive";
|
|
3425
|
+
}>]>>, z.ZodTransform<Partial<Record<"attestations.retry" | "backends.sync" | "backends.sync_one" | "backends.test" | "contexts.bindings.set" | "contexts.create" | "contexts.delete" | "contexts.source_overrides.delete" | "contexts.source_overrides.set" | "contexts.test_access.set" | "contexts.update" | "event_dlq.discard" | "event_dlq.retry" | "fleet.host.declare" | "fleet.host.remove" | "global_workflows.update" | "held_runs.approve" | "held_runs.reject" | "registration.delete" | "registration.disable" | "secrets.delete" | "secrets.scope.create" | "secrets.scope.delete" | "secrets.scope.rename" | "secrets.set" | "variables.delete" | "variables.set", "disabled" | "encrypted" | "permissive">>, Partial<Record<"attestations.retry" | "backends.sync" | "backends.sync_one" | "backends.test" | "contexts.bindings.set" | "contexts.create" | "contexts.delete" | "contexts.source_overrides.delete" | "contexts.source_overrides.set" | "contexts.test_access.set" | "contexts.update" | "event_dlq.discard" | "event_dlq.retry" | "fleet.host.declare" | "fleet.host.remove" | "global_workflows.update" | "held_runs.approve" | "held_runs.reject" | "registration.delete" | "registration.disable" | "secrets.delete" | "secrets.scope.create" | "secrets.scope.delete" | "secrets.scope.rename" | "secrets.set" | "variables.delete" | "variables.set", "disabled" | "encrypted" | "permissive" | boolean>>>>>;
|
|
3144
3426
|
supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3427
|
+
dashboardEncryptionKey: z.ZodOptional<z.ZodObject<{
|
|
3428
|
+
kty: z.ZodLiteral<"OKP">;
|
|
3429
|
+
crv: z.ZodLiteral<"X25519">;
|
|
3430
|
+
x: z.ZodString;
|
|
3431
|
+
kid: z.ZodString;
|
|
3432
|
+
use: z.ZodOptional<z.ZodLiteral<"enc">>;
|
|
3433
|
+
}, z.core.$loose>>;
|
|
3434
|
+
dashboardVerifiedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3145
3435
|
}, z.core.$loose>;
|
|
3146
3436
|
}, z.core.$strip>, z.ZodObject<{
|
|
3147
3437
|
type: z.ZodLiteral<"source.register">;
|
|
3148
3438
|
messageId: z.ZodString;
|
|
3149
3439
|
sources: z.ZodArray<z.ZodObject<{
|
|
3150
3440
|
provider: z.ZodEnum<{
|
|
3151
|
-
github: "github";
|
|
3152
|
-
gitlab: "gitlab";
|
|
3153
3441
|
bitbucket: "bitbucket";
|
|
3154
3442
|
generic: "generic";
|
|
3443
|
+
github: "github";
|
|
3444
|
+
gitlab: "gitlab";
|
|
3155
3445
|
}>;
|
|
3156
3446
|
routingKey: z.ZodString;
|
|
3157
3447
|
name: z.ZodString;
|
|
3158
3448
|
subtype: z.ZodEnum<{
|
|
3159
|
-
github_app: "github_app";
|
|
3160
3449
|
generic_webhook: "generic_webhook";
|
|
3161
|
-
|
|
3450
|
+
github_app: "github_app";
|
|
3162
3451
|
local: "local";
|
|
3452
|
+
universal_git: "universal_git";
|
|
3163
3453
|
}>;
|
|
3164
3454
|
slug: z.ZodOptional<z.ZodString>;
|
|
3165
3455
|
}, z.core.$strip>>;
|
|
@@ -3169,24 +3459,27 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3169
3459
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3170
3460
|
version: z.ZodOptional<z.ZodString>;
|
|
3171
3461
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
3172
|
-
platform: "platform";
|
|
3173
3462
|
hybrid: "hybrid";
|
|
3174
3463
|
independent: "independent";
|
|
3464
|
+
observed: "observed";
|
|
3465
|
+
platform: "platform";
|
|
3175
3466
|
}>>;
|
|
3176
3467
|
scalerBackends: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3177
3468
|
deployment: z.ZodOptional<z.ZodObject<{
|
|
3178
3469
|
mode: z.ZodEnum<{
|
|
3179
|
-
|
|
3180
|
-
systemd: "systemd";
|
|
3470
|
+
compose: "compose";
|
|
3181
3471
|
launchd: "launchd";
|
|
3472
|
+
systemd: "systemd";
|
|
3473
|
+
unknown: "unknown";
|
|
3182
3474
|
windows: "windows";
|
|
3183
|
-
compose: "compose";
|
|
3184
3475
|
}>;
|
|
3185
3476
|
containerName: z.ZodOptional<z.ZodString>;
|
|
3186
3477
|
containerRuntime: z.ZodOptional<z.ZodEnum<{
|
|
3187
|
-
podman: "podman";
|
|
3188
3478
|
docker: "docker";
|
|
3479
|
+
podman: "podman";
|
|
3189
3480
|
}>>;
|
|
3481
|
+
adminInvocation: z.ZodOptional<z.ZodString>;
|
|
3482
|
+
adminPath: z.ZodOptional<z.ZodString>;
|
|
3190
3483
|
}, z.core.$strip>>;
|
|
3191
3484
|
s3LogAccess: z.ZodOptional<z.ZodBoolean>;
|
|
3192
3485
|
queueTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3197,8 +3490,8 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3197
3490
|
}, z.core.$strip>, z.ZodObject<{
|
|
3198
3491
|
type: z.ZodLiteral<"cache.stats">;
|
|
3199
3492
|
cacheType: z.ZodEnum<{
|
|
3200
|
-
source: "source";
|
|
3201
3493
|
dep: "dep";
|
|
3494
|
+
source: "source";
|
|
3202
3495
|
}>;
|
|
3203
3496
|
hit: z.ZodBoolean;
|
|
3204
3497
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3210,36 +3503,48 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3210
3503
|
coordinator: "coordinator";
|
|
3211
3504
|
worker: "worker";
|
|
3212
3505
|
}>>;
|
|
3213
|
-
dashboardWrites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
3214
|
-
"secrets.set": "secrets.set";
|
|
3215
|
-
"secrets.delete": "secrets.delete";
|
|
3216
|
-
"secrets.scope.create": "secrets.scope.create";
|
|
3217
|
-
"secrets.scope.rename": "secrets.scope.rename";
|
|
3218
|
-
"secrets.scope.delete": "secrets.scope.delete";
|
|
3219
|
-
"variables.set": "variables.set";
|
|
3220
|
-
"variables.delete": "variables.delete";
|
|
3221
|
-
"contexts.create": "contexts.create";
|
|
3222
|
-
"contexts.update": "contexts.update";
|
|
3223
|
-
"contexts.test_access.set": "contexts.test_access.set";
|
|
3224
|
-
"contexts.delete": "contexts.delete";
|
|
3225
|
-
"contexts.bindings.set": "contexts.bindings.set";
|
|
3226
|
-
"contexts.source_overrides.set": "contexts.source_overrides.set";
|
|
3227
|
-
"contexts.source_overrides.delete": "contexts.source_overrides.delete";
|
|
3228
|
-
"held_runs.approve": "held_runs.approve";
|
|
3229
|
-
"held_runs.reject": "held_runs.reject";
|
|
3230
|
-
"event_dlq.retry": "event_dlq.retry";
|
|
3231
|
-
"event_dlq.discard": "event_dlq.discard";
|
|
3506
|
+
dashboardWrites: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodEnum<{
|
|
3232
3507
|
"attestations.retry": "attestations.retry";
|
|
3233
|
-
"registration.disable": "registration.disable";
|
|
3234
|
-
"registration.delete": "registration.delete";
|
|
3235
|
-
"global_workflows.update": "global_workflows.update";
|
|
3236
3508
|
"backends.sync": "backends.sync";
|
|
3237
3509
|
"backends.sync_one": "backends.sync_one";
|
|
3238
3510
|
"backends.test": "backends.test";
|
|
3511
|
+
"contexts.bindings.set": "contexts.bindings.set";
|
|
3512
|
+
"contexts.create": "contexts.create";
|
|
3513
|
+
"contexts.delete": "contexts.delete";
|
|
3514
|
+
"contexts.source_overrides.delete": "contexts.source_overrides.delete";
|
|
3515
|
+
"contexts.source_overrides.set": "contexts.source_overrides.set";
|
|
3516
|
+
"contexts.test_access.set": "contexts.test_access.set";
|
|
3517
|
+
"contexts.update": "contexts.update";
|
|
3518
|
+
"event_dlq.discard": "event_dlq.discard";
|
|
3519
|
+
"event_dlq.retry": "event_dlq.retry";
|
|
3239
3520
|
"fleet.host.declare": "fleet.host.declare";
|
|
3240
3521
|
"fleet.host.remove": "fleet.host.remove";
|
|
3241
|
-
|
|
3522
|
+
"global_workflows.update": "global_workflows.update";
|
|
3523
|
+
"held_runs.approve": "held_runs.approve";
|
|
3524
|
+
"held_runs.reject": "held_runs.reject";
|
|
3525
|
+
"registration.delete": "registration.delete";
|
|
3526
|
+
"registration.disable": "registration.disable";
|
|
3527
|
+
"secrets.delete": "secrets.delete";
|
|
3528
|
+
"secrets.scope.create": "secrets.scope.create";
|
|
3529
|
+
"secrets.scope.delete": "secrets.scope.delete";
|
|
3530
|
+
"secrets.scope.rename": "secrets.scope.rename";
|
|
3531
|
+
"secrets.set": "secrets.set";
|
|
3532
|
+
"variables.delete": "variables.delete";
|
|
3533
|
+
"variables.set": "variables.set";
|
|
3534
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
3535
|
+
disabled: "disabled";
|
|
3536
|
+
encrypted: "encrypted";
|
|
3537
|
+
permissive: "permissive";
|
|
3538
|
+
}>]>>, z.ZodTransform<Partial<Record<"attestations.retry" | "backends.sync" | "backends.sync_one" | "backends.test" | "contexts.bindings.set" | "contexts.create" | "contexts.delete" | "contexts.source_overrides.delete" | "contexts.source_overrides.set" | "contexts.test_access.set" | "contexts.update" | "event_dlq.discard" | "event_dlq.retry" | "fleet.host.declare" | "fleet.host.remove" | "global_workflows.update" | "held_runs.approve" | "held_runs.reject" | "registration.delete" | "registration.disable" | "secrets.delete" | "secrets.scope.create" | "secrets.scope.delete" | "secrets.scope.rename" | "secrets.set" | "variables.delete" | "variables.set", "disabled" | "encrypted" | "permissive">>, Partial<Record<"attestations.retry" | "backends.sync" | "backends.sync_one" | "backends.test" | "contexts.bindings.set" | "contexts.create" | "contexts.delete" | "contexts.source_overrides.delete" | "contexts.source_overrides.set" | "contexts.test_access.set" | "contexts.update" | "event_dlq.discard" | "event_dlq.retry" | "fleet.host.declare" | "fleet.host.remove" | "global_workflows.update" | "held_runs.approve" | "held_runs.reject" | "registration.delete" | "registration.disable" | "secrets.delete" | "secrets.scope.create" | "secrets.scope.delete" | "secrets.scope.rename" | "secrets.set" | "variables.delete" | "variables.set", "disabled" | "encrypted" | "permissive" | boolean>>>>>;
|
|
3242
3539
|
supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3540
|
+
dashboardEncryptionKey: z.ZodOptional<z.ZodObject<{
|
|
3541
|
+
kty: z.ZodLiteral<"OKP">;
|
|
3542
|
+
crv: z.ZodLiteral<"X25519">;
|
|
3543
|
+
x: z.ZodString;
|
|
3544
|
+
kid: z.ZodString;
|
|
3545
|
+
use: z.ZodOptional<z.ZodLiteral<"enc">>;
|
|
3546
|
+
}, z.core.$loose>>;
|
|
3547
|
+
dashboardVerifiedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3243
3548
|
}, z.core.$loose>>;
|
|
3244
3549
|
}, z.core.$strip>, z.ZodObject<{
|
|
3245
3550
|
type: z.ZodLiteral<"heartbeat">;
|
|
@@ -3251,8 +3556,8 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3251
3556
|
timestampMs: z.ZodNumber;
|
|
3252
3557
|
sourceService: z.ZodEnum<{
|
|
3253
3558
|
agent: "agent";
|
|
3254
|
-
platform: "platform";
|
|
3255
3559
|
orchestrator: "orchestrator";
|
|
3560
|
+
platform: "platform";
|
|
3256
3561
|
}>;
|
|
3257
3562
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3258
3563
|
traceId: z.ZodOptional<z.ZodString>;
|
|
@@ -3270,10 +3575,10 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3270
3575
|
name: z.ZodString;
|
|
3271
3576
|
value: z.ZodString;
|
|
3272
3577
|
category: z.ZodEnum<{
|
|
3273
|
-
user: "user";
|
|
3274
|
-
system: "system";
|
|
3275
3578
|
inherited: "inherited";
|
|
3276
3579
|
secret: "secret";
|
|
3580
|
+
system: "system";
|
|
3581
|
+
user: "user";
|
|
3277
3582
|
}>;
|
|
3278
3583
|
}, z.core.$strip>>>;
|
|
3279
3584
|
runtime: z.ZodOptional<z.ZodObject<{
|
|
@@ -3301,8 +3606,8 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3301
3606
|
name: z.ZodString;
|
|
3302
3607
|
type: z.ZodEnum<{
|
|
3303
3608
|
counter: "counter";
|
|
3304
|
-
histogram: "histogram";
|
|
3305
3609
|
gauge: "gauge";
|
|
3610
|
+
histogram: "histogram";
|
|
3306
3611
|
upDownCounter: "upDownCounter";
|
|
3307
3612
|
}>;
|
|
3308
3613
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3328,7 +3633,45 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3328
3633
|
deferred: "deferred";
|
|
3329
3634
|
"offline-backfill": "offline-backfill";
|
|
3330
3635
|
}>>;
|
|
3636
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3637
|
+
type: z.ZodLiteral<"nack">;
|
|
3638
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
3639
|
+
receivedType: z.ZodOptional<z.ZodString>;
|
|
3640
|
+
reason: z.ZodString;
|
|
3331
3641
|
}, z.core.$strip>], "type">;
|
|
3642
|
+
/** Minimal structural shape of a Zod object schema carrying a `type` literal. */
|
|
3643
|
+
type TypeLiteralObjectSchema = {
|
|
3644
|
+
shape: {
|
|
3645
|
+
type: {
|
|
3646
|
+
value: string;
|
|
3647
|
+
};
|
|
3648
|
+
};
|
|
3649
|
+
};
|
|
3650
|
+
/**
|
|
3651
|
+
* Extract the discriminator `type` values a schema recognizes: every option of a
|
|
3652
|
+
* discriminated union, or the single `type` literal of an object schema. Reuses
|
|
3653
|
+
* the `schema.options.map((o) => o.shape.type.value)` idiom already used for
|
|
3654
|
+
* `DASHBOARD_REQUEST_TYPES`, so a recognized-type set derived through this helper
|
|
3655
|
+
* can never drift from the schema it is built from.
|
|
3656
|
+
*/
|
|
3657
|
+
export declare function collectDiscriminatorTypes(schema: {
|
|
3658
|
+
options: readonly TypeLiteralObjectSchema[];
|
|
3659
|
+
} | TypeLiteralObjectSchema): string[];
|
|
3660
|
+
/**
|
|
3661
|
+
* Every message `type` the orchestrator→Platform mainline union recognizes.
|
|
3662
|
+
* The Platform WS handler unions this with its extra recognition-chain schemas
|
|
3663
|
+
* (log-pull, dashboard responses, cluster join) to decide whether a frame that
|
|
3664
|
+
* failed validation is a known-but-invalid type (close the connection) or a
|
|
3665
|
+
* genuinely-unknown one (version-skew NACK + keep alive).
|
|
3666
|
+
*/
|
|
3667
|
+
export declare const ORCH_TO_PLATFORM_RECOGNIZED_TYPES: ReadonlySet<string>;
|
|
3668
|
+
/**
|
|
3669
|
+
* Every message `type` the Platform→orchestrator mainline union recognizes
|
|
3670
|
+
* (dashboard request types included — they are members of this union). The
|
|
3671
|
+
* orchestrator's platform client unions this with its extra recognition-chain
|
|
3672
|
+
* schemas to make the same known-but-invalid vs unknown decision.
|
|
3673
|
+
*/
|
|
3674
|
+
export declare const PLATFORM_TO_ORCH_RECOGNIZED_TYPES: ReadonlySet<string>;
|
|
3332
3675
|
export type WebhookRelay = z.infer<typeof webhookRelaySchema>;
|
|
3333
3676
|
export type WebhookAck = z.infer<typeof webhookAckSchema>;
|
|
3334
3677
|
export type ExecutionEvent = z.infer<typeof executionEventSchema>;
|
|
@@ -3337,4 +3680,5 @@ export type PeerDiscover = z.infer<typeof peerDiscoverSchema>;
|
|
|
3337
3680
|
export type PeerUpdate = z.infer<typeof peerUpdateSchema>;
|
|
3338
3681
|
export type PlatformToOrchestratorMessage = z.infer<typeof platformToOrchestratorMessageSchema>;
|
|
3339
3682
|
export type OrchestratorToPlatformMessage = z.infer<typeof orchestratorToPlatformMessageSchema>;
|
|
3683
|
+
export {};
|
|
3340
3684
|
//# sourceMappingURL=platform-orchestrator.d.ts.map
|