@kici-dev/engine 0.1.26 → 0.2.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.
Files changed (157) hide show
  1. package/dist/approval/types.d.ts +11 -4
  2. package/dist/approval/types.js +11 -4
  3. package/dist/artifacts/name.d.ts +60 -0
  4. package/dist/artifacts/name.js +71 -0
  5. package/dist/audit/access-log-policy.d.ts +1 -1
  6. package/dist/audit/access-log-policy.js +20 -11
  7. package/dist/audit/activity.d.ts +12 -12
  8. package/dist/audit/retention-policy.js +40 -22
  9. package/dist/billing/plan-type.d.ts +53 -0
  10. package/dist/billing/plan-type.js +70 -0
  11. package/dist/bundler/rolldown-config.d.ts +3 -3
  12. package/dist/check-mode.d.ts +1 -1
  13. package/dist/context/concurrency-strategy.d.ts +34 -0
  14. package/dist/context/concurrency-strategy.js +35 -0
  15. package/dist/context/held-run-job-id.d.ts +45 -0
  16. package/dist/context/held-run-job-id.js +56 -0
  17. package/dist/context/held-run-status.d.ts +33 -0
  18. package/dist/context/held-run-status.js +37 -0
  19. package/dist/context/hold-expiry.d.ts +20 -0
  20. package/dist/context/hold-expiry.js +25 -0
  21. package/dist/context/hold-reason.d.ts +33 -0
  22. package/dist/context/hold-reason.js +23 -0
  23. package/dist/context/hold-type.d.ts +40 -0
  24. package/dist/context/hold-type.js +61 -0
  25. package/dist/{environment → context}/host-match.js +1 -1
  26. package/dist/context/index.d.ts +14 -0
  27. package/dist/context/index.js +12 -0
  28. package/dist/context/multi-context.d.ts +30 -0
  29. package/dist/context/multi-context.js +38 -0
  30. package/dist/context/scope-name.d.ts +29 -0
  31. package/dist/context/scope-name.js +49 -0
  32. package/dist/context/scope-resolver.d.ts +79 -0
  33. package/dist/{environment → context}/scope-resolver.js +47 -17
  34. package/dist/{environment → context}/scope-template.js +1 -1
  35. package/dist/{environment → context}/types.d.ts +25 -22
  36. package/dist/{environment → context}/types.js +3 -3
  37. package/dist/dev-ops/operations.d.ts +9 -1
  38. package/dist/dev-ops/operations.js +37 -20
  39. package/dist/diagnostics/infra-alert.d.ts +71 -0
  40. package/dist/diagnostics/infra-alert.js +60 -0
  41. package/dist/env/environment-allowlist.d.ts +26 -3
  42. package/dist/env/environment-allowlist.js +35 -1
  43. package/dist/fanout/materialize.d.ts +16 -0
  44. package/dist/fanout/materialize.js +34 -5
  45. package/dist/index.d.ts +16 -7
  46. package/dist/index.js +38 -23
  47. package/dist/inputs/descriptor.d.ts +9 -9
  48. package/dist/inventory.d.ts +4 -4
  49. package/dist/labels.d.ts +82 -2
  50. package/dist/labels.js +119 -1
  51. package/dist/matrix/expand.d.ts +49 -2
  52. package/dist/matrix/expand.js +102 -13
  53. package/dist/matrix/format.d.ts +6 -1
  54. package/dist/matrix/format.js +6 -1
  55. package/dist/mcp/held-run-resolve.d.ts +7 -10
  56. package/dist/mcp/held-run-resolve.js +33 -7
  57. package/dist/metrics/catalog-policy.js +4 -4
  58. package/dist/metrics/metric-catalog.generated.d.ts +954 -734
  59. package/dist/metrics/metric-catalog.generated.js +296 -32
  60. package/dist/metrics/metric-kind-compat.d.ts +26 -0
  61. package/dist/metrics/metric-kind-compat.js +33 -0
  62. package/dist/protocol/analytics-events.d.ts +6 -6
  63. package/dist/protocol/dashboard-api-errors.d.ts +13 -0
  64. package/dist/protocol/dashboard-api-errors.js +17 -0
  65. package/dist/protocol/dashboard-write-operations.d.ts +143 -86
  66. package/dist/protocol/dashboard-write-operations.js +143 -69
  67. package/dist/protocol/messages/access-log.d.ts +438 -388
  68. package/dist/protocol/messages/access-log.js +24 -14
  69. package/dist/protocol/messages/actor.d.ts +2 -2
  70. package/dist/protocol/messages/agent-dev-ops.d.ts +4 -2
  71. package/dist/protocol/messages/agent-dev-ops.js +2 -5
  72. package/dist/protocol/messages/agent-run-result.d.ts +74 -64
  73. package/dist/protocol/messages/agent-run-result.js +1 -1
  74. package/dist/protocol/messages/auth.d.ts +35 -23
  75. package/dist/protocol/messages/browser.d.ts +81 -5
  76. package/dist/protocol/messages/browser.js +53 -2
  77. package/dist/protocol/messages/capabilities.d.ts +106 -31
  78. package/dist/protocol/messages/capabilities.js +94 -10
  79. package/dist/protocol/messages/common.d.ts +45 -2
  80. package/dist/protocol/messages/common.js +64 -3
  81. package/dist/protocol/messages/dashboard-sealed-write.d.ts +52 -0
  82. package/dist/protocol/messages/dashboard-sealed-write.js +57 -0
  83. package/dist/protocol/messages/dashboard.d.ts +1232 -706
  84. package/dist/protocol/messages/dashboard.js +387 -220
  85. package/dist/protocol/messages/deployment-identity.d.ts +37 -10
  86. package/dist/protocol/messages/deployment-identity.js +30 -3
  87. package/dist/protocol/messages/event-log.d.ts +5 -5
  88. package/dist/protocol/messages/execution-status.d.ts +198 -62
  89. package/dist/protocol/messages/execution-status.js +114 -46
  90. package/dist/protocol/messages/heartbeat-health.d.ts +83 -0
  91. package/dist/protocol/messages/heartbeat-health.js +87 -0
  92. package/dist/protocol/messages/log-stream.d.ts +18 -0
  93. package/dist/protocol/messages/log-stream.js +19 -0
  94. package/dist/protocol/messages/oidc-mint.d.ts +7 -0
  95. package/dist/protocol/messages/oidc-mint.js +7 -0
  96. package/dist/protocol/messages/orchestrator-agent.d.ts +264 -67
  97. package/dist/protocol/messages/orchestrator-agent.js +170 -5
  98. package/dist/protocol/messages/pat-kind.d.ts +1 -1
  99. package/dist/protocol/messages/peer.d.ts +122 -58
  100. package/dist/protocol/messages/peer.js +37 -2
  101. package/dist/protocol/messages/platform-orchestrator.d.ts +603 -258
  102. package/dist/protocol/messages/platform-orchestrator.js +131 -21
  103. package/dist/protocol/messages/run-events.d.ts +5 -5
  104. package/dist/protocol/messages/scaler-event.d.ts +3 -3
  105. package/dist/protocol/messages/source-registration.d.ts +56 -13
  106. package/dist/protocol/messages/source-registration.js +49 -6
  107. package/dist/protocol/session-policy.d.ts +20 -0
  108. package/dist/protocol/session-policy.js +25 -0
  109. package/dist/protocol/source-origin.d.ts +1 -1
  110. package/dist/provenance/attestation-origin.d.ts +1 -1
  111. package/dist/provenance/schema.d.ts +11 -11
  112. package/dist/provenance/verify.js +2 -1
  113. package/dist/provider/changed-files-fetcher.d.ts +21 -2
  114. package/dist/provider/check-run-conclusion.d.ts +2 -2
  115. package/dist/provider/check-status-poster.d.ts +23 -0
  116. package/dist/provider/index.d.ts +2 -2
  117. package/dist/registration/registerable-trigger-type.d.ts +14 -13
  118. package/dist/registration/registerable-trigger-type.js +1 -0
  119. package/dist/sandbox/capabilities.d.ts +6 -0
  120. package/dist/sandbox/capabilities.js +57 -0
  121. package/dist/scaler/scaler-backend-type.d.ts +1 -1
  122. package/dist/status/presentation.d.ts +89 -0
  123. package/dist/status/presentation.js +163 -0
  124. package/dist/trigger/compiled-matchers.d.ts +13 -0
  125. package/dist/trigger/compiled-matchers.js +44 -0
  126. package/dist/trigger/event-buckets.d.ts +44 -0
  127. package/dist/trigger/event-buckets.js +93 -0
  128. package/dist/trigger/matcher.d.ts +7 -3
  129. package/dist/trigger/matcher.js +53 -15
  130. package/dist/trigger/schedule-key.d.ts +14 -0
  131. package/dist/trigger/schedule-key.js +21 -0
  132. package/dist/trigger/trigger-event-type.d.ts +1 -1
  133. package/dist/trigger/trigger-event-type.js +2 -0
  134. package/dist/trigger/types.d.ts +178 -47
  135. package/dist/trigger/types.js +82 -24
  136. package/dist/webhook/event-types.d.ts +56 -0
  137. package/dist/webhook/event-types.js +59 -0
  138. package/dist/ws/ws-like.d.ts +13 -0
  139. package/package.json +26 -10
  140. package/sbom.spdx.json +10 -10
  141. package/dist/environment/index.d.ts +0 -6
  142. package/dist/environment/index.js +0 -5
  143. package/dist/environment/multi-env.d.ts +0 -30
  144. package/dist/environment/multi-env.js +0 -38
  145. package/dist/environment/scope-resolver.d.ts +0 -46
  146. package/dist/package-manager.d.ts +0 -20
  147. package/dist/protocol/messages/observe.d.ts +0 -76
  148. package/dist/protocol/messages/saas-orchestrator.d.ts +0 -2179
  149. package/dist/protocol/messages/test-run.d.ts +0 -59
  150. package/dist/state-machine/index.d.ts +0 -2
  151. package/dist/state-machine/index.js +0 -3
  152. package/dist/state-machine/machine.d.ts +0 -34
  153. package/dist/state-machine/machine.js +0 -103
  154. package/dist/state-machine/types.d.ts +0 -34
  155. package/dist/state-machine/types.js +0 -15
  156. /package/dist/{environment → context}/host-match.d.ts +0 -0
  157. /package/dist/{environment → context}/scope-template.d.ts +0 -0
@@ -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
- rejected_misconfigured: "rejected_misconfigured";
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
- rejected_misconfigured: "rejected_misconfigured";
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
- "environments.create": "environments.create";
301
- "environments.update": "environments.update";
302
- "environments.test_access.set": "environments.test_access.set";
303
- "environments.delete": "environments.delete";
304
- "environments.bindings.set": "environments.bindings.set";
305
- "environments.source_overrides.set": "environments.source_overrides.set";
306
- "environments.source_overrides.delete": "environments.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
- }> & z.core.$partial, z.ZodBoolean>>;
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
- verified: "verified";
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;
@@ -942,7 +1127,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
942
1127
  runId: z.ZodString;
943
1128
  jobId: z.ZodString;
944
1129
  }, z.core.$strip>, z.ZodObject<{
945
- type: z.ZodLiteral<"dashboard.environments.list">;
1130
+ type: z.ZodLiteral<"dashboard.contexts.list">;
946
1131
  requestId: z.ZodString;
947
1132
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
948
1133
  type: z.ZodLiteral<"user">;
@@ -973,7 +1158,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
973
1158
  includeSecrets: z.ZodOptional<z.ZodBoolean>;
974
1159
  orgId: z.ZodOptional<z.ZodString>;
975
1160
  }, z.core.$strip>, z.ZodObject<{
976
- type: z.ZodLiteral<"dashboard.environments.get">;
1161
+ type: z.ZodLiteral<"dashboard.contexts.get">;
977
1162
  requestId: z.ZodString;
978
1163
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
979
1164
  type: z.ZodLiteral<"user">;
@@ -1001,9 +1186,9 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1001
1186
  type: z.ZodLiteral<"system">;
1002
1187
  component: z.ZodString;
1003
1188
  }, z.core.$strip>], "type">;
1004
- environmentId: z.ZodString;
1189
+ contextId: z.ZodString;
1005
1190
  }, z.core.$strip>, z.ZodObject<{
1006
- type: z.ZodLiteral<"dashboard.environments.create">;
1191
+ type: z.ZodLiteral<"dashboard.contexts.create">;
1007
1192
  requestId: z.ZodString;
1008
1193
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1009
1194
  type: z.ZodLiteral<"user">;
@@ -1032,7 +1217,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1032
1217
  component: z.ZodString;
1033
1218
  }, z.core.$strip>], "type">;
1034
1219
  name: z.ZodString;
1035
- envType: z.ZodEnum<{
1220
+ contextType: z.ZodEnum<{
1036
1221
  fixed: "fixed";
1037
1222
  glob: "glob";
1038
1223
  }>;
@@ -1040,15 +1225,15 @@ 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>;
1048
1233
  holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
1049
1234
  enabled: z.ZodOptional<z.ZodBoolean>;
1050
1235
  }, z.core.$strip>, z.ZodObject<{
1051
- type: z.ZodLiteral<"dashboard.environments.update">;
1236
+ type: z.ZodLiteral<"dashboard.contexts.update">;
1052
1237
  requestId: z.ZodString;
1053
1238
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1054
1239
  type: z.ZodLiteral<"user">;
@@ -1076,10 +1261,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1076
1261
  type: z.ZodLiteral<"system">;
1077
1262
  component: z.ZodString;
1078
1263
  }, z.core.$strip>], "type">;
1079
- environmentId: z.ZodString;
1264
+ contextId: z.ZodString;
1080
1265
  updates: z.ZodObject<{
1081
1266
  name: z.ZodOptional<z.ZodString>;
1082
- envType: z.ZodOptional<z.ZodEnum<{
1267
+ contextType: z.ZodOptional<z.ZodEnum<{
1083
1268
  fixed: "fixed";
1084
1269
  glob: "glob";
1085
1270
  }>>;
@@ -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>>;
@@ -1096,7 +1281,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1096
1281
  enabled: z.ZodOptional<z.ZodBoolean>;
1097
1282
  }, z.core.$strip>;
1098
1283
  }, z.core.$strip>, z.ZodObject<{
1099
- type: z.ZodLiteral<"dashboard.environments.test_access.set">;
1284
+ type: z.ZodLiteral<"dashboard.contexts.test_access.set">;
1100
1285
  requestId: z.ZodString;
1101
1286
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1102
1287
  type: z.ZodLiteral<"user">;
@@ -1124,10 +1309,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1124
1309
  type: z.ZodLiteral<"system">;
1125
1310
  component: z.ZodString;
1126
1311
  }, z.core.$strip>], "type">;
1127
- environmentId: z.ZodString;
1312
+ contextId: z.ZodString;
1128
1313
  allowLocalExecution: z.ZodBoolean;
1129
1314
  }, z.core.$strip>, z.ZodObject<{
1130
- type: z.ZodLiteral<"dashboard.environments.delete">;
1315
+ type: z.ZodLiteral<"dashboard.contexts.delete">;
1131
1316
  requestId: z.ZodString;
1132
1317
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1133
1318
  type: z.ZodLiteral<"user">;
@@ -1155,9 +1340,9 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1155
1340
  type: z.ZodLiteral<"system">;
1156
1341
  component: z.ZodString;
1157
1342
  }, z.core.$strip>], "type">;
1158
- environmentId: z.ZodString;
1343
+ contextId: z.ZodString;
1159
1344
  }, z.core.$strip>, z.ZodObject<{
1160
- type: z.ZodLiteral<"dashboard.environments.variables.list">;
1345
+ type: z.ZodLiteral<"dashboard.contexts.variables.list">;
1161
1346
  requestId: z.ZodString;
1162
1347
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1163
1348
  type: z.ZodLiteral<"user">;
@@ -1185,9 +1370,9 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1185
1370
  type: z.ZodLiteral<"system">;
1186
1371
  component: z.ZodString;
1187
1372
  }, z.core.$strip>], "type">;
1188
- environmentId: z.ZodString;
1373
+ contextId: z.ZodString;
1189
1374
  }, z.core.$strip>, z.ZodObject<{
1190
- type: z.ZodLiteral<"dashboard.environments.variables.set">;
1375
+ type: z.ZodLiteral<"dashboard.contexts.variables.set">;
1191
1376
  requestId: z.ZodString;
1192
1377
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1193
1378
  type: z.ZodLiteral<"user">;
@@ -1215,12 +1400,17 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1215
1400
  type: z.ZodLiteral<"system">;
1216
1401
  component: z.ZodString;
1217
1402
  }, z.core.$strip>], "type">;
1218
- environmentId: z.ZodString;
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
- type: z.ZodLiteral<"dashboard.environments.variables.delete">;
1413
+ type: z.ZodLiteral<"dashboard.contexts.variables.delete">;
1224
1414
  requestId: z.ZodString;
1225
1415
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1226
1416
  type: z.ZodLiteral<"user">;
@@ -1248,10 +1438,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1248
1438
  type: z.ZodLiteral<"system">;
1249
1439
  component: z.ZodString;
1250
1440
  }, z.core.$strip>], "type">;
1251
- environmentId: z.ZodString;
1441
+ contextId: z.ZodString;
1252
1442
  key: z.ZodString;
1253
1443
  }, z.core.$strip>, z.ZodObject<{
1254
- type: z.ZodLiteral<"dashboard.environments.source-overrides.list">;
1444
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.list">;
1255
1445
  requestId: z.ZodString;
1256
1446
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1257
1447
  type: z.ZodLiteral<"user">;
@@ -1279,10 +1469,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1279
1469
  type: z.ZodLiteral<"system">;
1280
1470
  component: z.ZodString;
1281
1471
  }, z.core.$strip>], "type">;
1282
- environmentId: z.ZodString;
1472
+ contextId: z.ZodString;
1283
1473
  routingKey: z.ZodString;
1284
1474
  }, z.core.$strip>, z.ZodObject<{
1285
- type: z.ZodLiteral<"dashboard.environments.source-overrides.set">;
1475
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.set">;
1286
1476
  requestId: z.ZodString;
1287
1477
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1288
1478
  type: z.ZodLiteral<"user">;
@@ -1310,12 +1500,12 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1310
1500
  type: z.ZodLiteral<"system">;
1311
1501
  component: z.ZodString;
1312
1502
  }, z.core.$strip>], "type">;
1313
- environmentId: z.ZodString;
1503
+ contextId: z.ZodString;
1314
1504
  routingKey: z.ZodString;
1315
1505
  key: z.ZodString;
1316
1506
  value: z.ZodString;
1317
1507
  }, z.core.$strip>, z.ZodObject<{
1318
- type: z.ZodLiteral<"dashboard.environments.source-overrides.delete">;
1508
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.delete">;
1319
1509
  requestId: z.ZodString;
1320
1510
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1321
1511
  type: z.ZodLiteral<"user">;
@@ -1343,11 +1533,11 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1343
1533
  type: z.ZodLiteral<"system">;
1344
1534
  component: z.ZodString;
1345
1535
  }, z.core.$strip>], "type">;
1346
- environmentId: z.ZodString;
1536
+ contextId: z.ZodString;
1347
1537
  routingKey: z.ZodString;
1348
1538
  key: z.ZodString;
1349
1539
  }, z.core.$strip>, z.ZodObject<{
1350
- type: z.ZodLiteral<"dashboard.environments.bindings.list">;
1540
+ type: z.ZodLiteral<"dashboard.contexts.bindings.list">;
1351
1541
  requestId: z.ZodString;
1352
1542
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1353
1543
  type: z.ZodLiteral<"user">;
@@ -1375,9 +1565,9 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1375
1565
  type: z.ZodLiteral<"system">;
1376
1566
  component: z.ZodString;
1377
1567
  }, z.core.$strip>], "type">;
1378
- environmentId: z.ZodString;
1568
+ contextId: z.ZodString;
1379
1569
  }, z.core.$strip>, z.ZodObject<{
1380
- type: z.ZodLiteral<"dashboard.environments.bindings.set">;
1570
+ type: z.ZodLiteral<"dashboard.contexts.bindings.set">;
1381
1571
  requestId: z.ZodString;
1382
1572
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1383
1573
  type: z.ZodLiteral<"user">;
@@ -1405,13 +1595,13 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1405
1595
  type: z.ZodLiteral<"system">;
1406
1596
  component: z.ZodString;
1407
1597
  }, z.core.$strip>], "type">;
1408
- environmentId: z.ZodString;
1598
+ contextId: z.ZodString;
1409
1599
  bindings: z.ZodArray<z.ZodObject<{
1410
1600
  scopePattern: z.ZodString;
1411
1601
  hostPattern: z.ZodString;
1412
1602
  }, z.core.$strip>>;
1413
1603
  }, z.core.$strip>, z.ZodObject<{
1414
- type: z.ZodLiteral<"dashboard.environments.secrets.list">;
1604
+ type: z.ZodLiteral<"dashboard.contexts.secrets.list">;
1415
1605
  requestId: z.ZodString;
1416
1606
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1417
1607
  type: z.ZodLiteral<"user">;
@@ -1440,7 +1630,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1440
1630
  component: z.ZodString;
1441
1631
  }, z.core.$strip>], "type">;
1442
1632
  }, z.core.$strip>, z.ZodObject<{
1443
- type: z.ZodLiteral<"dashboard.environments.secrets.set">;
1633
+ type: z.ZodLiteral<"dashboard.contexts.secrets.set">;
1444
1634
  requestId: z.ZodString;
1445
1635
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1446
1636
  type: z.ZodLiteral<"user">;
@@ -1470,9 +1660,14 @@ 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
- type: z.ZodLiteral<"dashboard.environments.secrets.delete">;
1670
+ type: z.ZodLiteral<"dashboard.contexts.secrets.delete">;
1476
1671
  requestId: z.ZodString;
1477
1672
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1478
1673
  type: z.ZodLiteral<"user">;
@@ -1503,7 +1698,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1503
1698
  scope: z.ZodString;
1504
1699
  key: z.ZodString;
1505
1700
  }, z.core.$strip>, z.ZodObject<{
1506
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.create">;
1701
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.create">;
1507
1702
  requestId: z.ZodString;
1508
1703
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1509
1704
  type: z.ZodLiteral<"user">;
@@ -1533,7 +1728,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1533
1728
  }, z.core.$strip>], "type">;
1534
1729
  scope: z.ZodString;
1535
1730
  }, z.core.$strip>, z.ZodObject<{
1536
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename">;
1731
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.rename">;
1537
1732
  requestId: z.ZodString;
1538
1733
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1539
1734
  type: z.ZodLiteral<"user">;
@@ -1564,7 +1759,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1564
1759
  oldScope: z.ZodString;
1565
1760
  newScope: z.ZodString;
1566
1761
  }, z.core.$strip>, z.ZodObject<{
1567
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete">;
1762
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.delete">;
1568
1763
  requestId: z.ZodString;
1569
1764
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1570
1765
  type: z.ZodLiteral<"user">;
@@ -1594,7 +1789,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1594
1789
  }, z.core.$strip>], "type">;
1595
1790
  scope: z.ZodString;
1596
1791
  }, z.core.$strip>, z.ZodObject<{
1597
- type: z.ZodLiteral<"dashboard.environments.history">;
1792
+ type: z.ZodLiteral<"dashboard.contexts.history">;
1598
1793
  requestId: z.ZodString;
1599
1794
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1600
1795
  type: z.ZodLiteral<"user">;
@@ -1622,7 +1817,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1622
1817
  type: z.ZodLiteral<"system">;
1623
1818
  component: z.ZodString;
1624
1819
  }, z.core.$strip>], "type">;
1625
- environmentId: z.ZodString;
1820
+ contextId: z.ZodString;
1626
1821
  limit: z.ZodOptional<z.ZodNumber>;
1627
1822
  offset: z.ZodOptional<z.ZodNumber>;
1628
1823
  }, z.core.$strip>, z.ZodObject<{
@@ -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
- environment: "environment";
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
- lockfile_missing: "lockfile_missing";
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,116 +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
- "event_dlq.retry": "event_dlq.retry";
2817
+ "access_log.list.read": "access_log.list.read";
2818
+ archive_chunk: "archive_chunk";
2819
+ "artifacts.read": "artifacts.read";
2820
+ "attestation.retry": "attestation.retry";
2821
+ "attestations.read": "attestations.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";
2828
+ "context.create": "context.create";
2829
+ "context.delete": "context.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";
2834
+ "context_binding.list.read": "context_binding.list.read";
2835
+ "context_binding.set": "context_binding.set";
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";
2845
+ "diagnostics.read": "diagnostics.read";
2589
2846
  "event_dlq.discard": "event_dlq.discard";
2590
- "registration.disable": "registration.disable";
2591
- "registration.delete": "registration.delete";
2592
- "global_workflows.update": "global_workflows.update";
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";
2593
2852
  "fleet.host.declare": "fleet.host.declare";
2594
2853
  "fleet.host.remove": "fleet.host.remove";
2854
+ "fleet.init_runner.bringup": "fleet.init_runner.bringup";
2855
+ "fleet.pre_boot.send": "fleet.pre_boot.send";
2856
+ "fleet.read": "fleet.read";
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";
2866
+ "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
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";
2595
2872
  "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";
2873
+ "run.manual_schedule": "run.manual_schedule";
2601
2874
  "run.orch_logs.read": "run.orch_logs.read";
2602
- "step.logs.read": "step.logs.read";
2603
- "attestations.read": "attestations.read";
2604
- "run.cancel": "run.cancel";
2875
+ "run.payload.read": "run.payload.read";
2605
2876
  "run.rerun": "run.rerun";
2606
- "run.manual_schedule": "run.manual_schedule";
2877
+ "run.structured.read": "run.structured.read";
2607
2878
  "run.trigger": "run.trigger";
2608
- "job.cancel": "job.cancel";
2609
- "event_log.list.read": "event_log.list.read";
2610
- "event_log.detail.read": "event_log.detail.read";
2611
- "event_log.payload.read": "event_log.payload.read";
2612
- "environment.list.read": "environment.list.read";
2613
- "environment.get.read": "environment.get.read";
2614
- "environment.create": "environment.create";
2615
- "environment.update": "environment.update";
2616
- "environment.delete": "environment.delete";
2617
- "env_var.list.read": "env_var.list.read";
2618
- "env_var.set": "env_var.set";
2619
- "env_var.delete": "env_var.delete";
2620
- "source_override.list.read": "source_override.list.read";
2621
- "source_override.set": "source_override.set";
2622
- "source_override.delete": "source_override.delete";
2623
- "env_binding.list.read": "env_binding.list.read";
2624
- "env_binding.set": "env_binding.set";
2625
- "secret.list.read": "secret.list.read";
2626
- "secret.set": "secret.set";
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";
2627
2883
  "secret.delete": "secret.delete";
2884
+ "secret.list.read": "secret.list.read";
2628
2885
  "secret.reveal": "secret.reveal";
2886
+ "secret.set": "secret.set";
2629
2887
  "secret_scope.create": "secret_scope.create";
2630
- "secret_scope.rename": "secret_scope.rename";
2631
2888
  "secret_scope.delete": "secret_scope.delete";
2632
- "environment.history.read": "environment.history.read";
2633
- "held_run.list.read": "held_run.list.read";
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";
2640
- "diagnostics.read": "diagnostics.read";
2641
- "scaler.capacity.read": "scaler.capacity.read";
2642
- "scaler.agents.read": "scaler.agents.read";
2643
- "fleet.read": "fleet.read";
2644
- "fleet.init_runner.bringup": "fleet.init_runner.bringup";
2645
- "fleet.pre_boot.send": "fleet.pre_boot.send";
2646
- "backend.list.read": "backend.list.read";
2647
- "backend.get.read": "backend.get.read";
2648
- "backend.sync": "backend.sync";
2649
- "backend.sync.one": "backend.sync.one";
2650
- "backend.test": "backend.test";
2651
- "global_workflows.get.read": "global_workflows.get.read";
2652
- "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
2653
- "cluster_name.update": "cluster_name.update";
2654
- "access_log.list.read": "access_log.list.read";
2655
- "event_dlq.list.read": "event_dlq.list.read";
2656
- archive_chunk: "archive_chunk";
2657
- purge_chunk: "purge_chunk";
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";
2658
2896
  }>>;
2659
2897
  source: z.ZodOptional<z.ZodEnum<{
2898
+ admin_cli: "admin_cli";
2899
+ admin_http: "admin_http";
2660
2900
  agent: "agent";
2661
2901
  platform_proxy: "platform_proxy";
2662
- admin_http: "admin_http";
2663
- admin_cli: "admin_cli";
2664
2902
  }>>;
2665
2903
  outcome: z.ZodOptional<z.ZodEnum<{
2666
- error: "error";
2667
2904
  allowed: "allowed";
2668
2905
  denied: "denied";
2906
+ error: "error";
2669
2907
  }>>;
2670
2908
  targetType: z.ZodOptional<z.ZodEnum<{
2671
- job: "job";
2672
- step: "step";
2673
- run: "run";
2674
- environment: "environment";
2675
- payload: "payload";
2676
- event_log: "event_log";
2677
- event_log_payload: "event_log_payload";
2678
- secret_scope: "secret_scope";
2679
- registration: "registration";
2909
+ access_log: "access_log";
2910
+ attestation: "attestation";
2680
2911
  backend: "backend";
2912
+ cluster_meta: "cluster_meta";
2913
+ context: "context";
2914
+ database: "database";
2681
2915
  diagnostics: "diagnostics";
2682
- scaler: "scaler";
2916
+ event_dlq: "event_dlq";
2917
+ event_log: "event_log";
2918
+ event_log_payload: "event_log_payload";
2683
2919
  fleet: "fleet";
2684
2920
  held_run: "held_run";
2685
- access_log: "access_log";
2686
- event_dlq: "event_dlq";
2921
+ job: "job";
2687
2922
  org_settings: "org_settings";
2688
- cluster_meta: "cluster_meta";
2689
- attestation: "attestation";
2923
+ payload: "payload";
2924
+ registration: "registration";
2925
+ run: "run";
2926
+ scaler: "scaler";
2927
+ secret_scope: "secret_scope";
2928
+ step: "step";
2690
2929
  }>>;
2691
2930
  targetId: z.ZodOptional<z.ZodString>;
2692
2931
  fromTimestamp: z.ZodOptional<z.ZodString>;
@@ -2909,9 +3148,10 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2909
3148
  deliveryId: z.ZodString;
2910
3149
  result: z.ZodOptional<z.ZodEnum<{
2911
3150
  accepted: "accepted";
3151
+ rejected_misconfigured: "rejected_misconfigured";
2912
3152
  rejected_signature: "rejected_signature";
2913
3153
  rejected_unknown_source: "rejected_unknown_source";
2914
- rejected_misconfigured: "rejected_misconfigured";
3154
+ shed_retry_later: "shed_retry_later";
2915
3155
  }>>;
2916
3156
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2917
3157
  }, z.core.$strip>, z.ZodObject<{
@@ -2919,10 +3159,10 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2919
3159
  messageId: z.ZodString;
2920
3160
  runId: z.ZodString;
2921
3161
  event: z.ZodEnum<{
2922
- started: "started";
2923
- job_dispatched: "job_dispatched";
2924
- job_completed: "job_completed";
2925
3162
  finished: "finished";
3163
+ job_completed: "job_completed";
3164
+ job_dispatched: "job_dispatched";
3165
+ started: "started";
2926
3166
  }>;
2927
3167
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2928
3168
  timestamp: z.ZodNumber;
@@ -2934,20 +3174,38 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2934
3174
  stepIndex: z.ZodNumber;
2935
3175
  lines: z.ZodArray<z.ZodString>;
2936
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;
2937
3194
  }, z.core.$strip>, z.ZodObject<{
2938
3195
  type: z.ZodLiteral<"execution.status">;
2939
3196
  messageId: z.ZodString;
2940
3197
  runId: z.ZodString;
2941
3198
  workflowName: z.ZodString;
2942
3199
  status: z.ZodEnum<{
2943
- success: "success";
2944
- pending: "pending";
2945
- running: "running";
2946
- failed: "failed";
2947
3200
  cancelled: "cancelled";
2948
3201
  cancelling: "cancelling";
3202
+ failed: "failed";
2949
3203
  held: "held";
3204
+ pending: "pending";
3205
+ running: "running";
3206
+ success: "success";
2950
3207
  }>;
3208
+ routingKey: z.ZodOptional<z.ZodString>;
2951
3209
  repoIdentifier: z.ZodOptional<z.ZodString>;
2952
3210
  repoProvider: z.ZodOptional<z.ZodString>;
2953
3211
  localWorkingTree: z.ZodOptional<z.ZodBoolean>;
@@ -2975,18 +3233,28 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2975
3233
  run: "run";
2976
3234
  }>;
2977
3235
  category: z.ZodEnum<{
2978
- secret_resolution: "secret_resolution";
2979
- install_secrets: "install_secrets";
2980
- lock_resolution: "lock_resolution";
3236
+ approval_misconfig: "approval_misconfig";
2981
3237
  build_coordination: "build_coordination";
2982
- environment_rules: "environment_rules";
3238
+ context_rules: "context_rules";
2983
3239
  dynamic_eval: "dynamic_eval";
2984
- no_agent: "no_agent";
3240
+ install_secrets: "install_secrets";
3241
+ lock_resolution: "lock_resolution";
2985
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";
2986
3247
  }>;
2987
3248
  message: z.ZodString;
2988
3249
  jobName: z.ZodOptional<z.ZodString>;
2989
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
+ }>>;
2990
3258
  }, z.core.$strip>, z.ZodObject<{
2991
3259
  type: z.ZodLiteral<"step.status.forward">;
2992
3260
  messageId: z.ZodString;
@@ -2996,20 +3264,20 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2996
3264
  stepIndex: z.ZodNumber;
2997
3265
  stepName: z.ZodString;
2998
3266
  state: z.ZodEnum<{
2999
- skipped: "skipped";
3000
- success: "success";
3267
+ cancelled: "cancelled";
3268
+ failed: "failed";
3001
3269
  pending: "pending";
3002
3270
  running: "running";
3003
- failed: "failed";
3004
- cancelled: "cancelled";
3271
+ skipped: "skipped";
3272
+ success: "success";
3005
3273
  }>;
3006
3274
  timestamp: z.ZodNumber;
3007
3275
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3008
3276
  secretsAccessed: z.ZodOptional<z.ZodArray<z.ZodString>>;
3009
3277
  concurrencyKind: z.ZodOptional<z.ZodEnum<{
3010
- sequential: "sequential";
3011
3278
  "parallel-child": "parallel-child";
3012
3279
  "parallel-group": "parallel-group";
3280
+ sequential: "sequential";
3013
3281
  }>>;
3014
3282
  groupId: z.ZodOptional<z.ZodString>;
3015
3283
  }, z.core.$strip>, z.ZodObject<{
@@ -3019,17 +3287,18 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3019
3287
  jobId: z.ZodString;
3020
3288
  jobName: z.ZodString;
3021
3289
  status: z.ZodEnum<{
3022
- skipped: "skipped";
3023
- success: "success";
3024
- pending: "pending";
3025
- running: "running";
3026
- failed: "failed";
3027
3290
  cancelled: "cancelled";
3028
3291
  cancelling: "cancelling";
3292
+ drift_dropped: "drift_dropped";
3293
+ failed: "failed";
3294
+ pending: "pending";
3029
3295
  queued: "queued";
3030
3296
  recovering: "recovering";
3297
+ running: "running";
3298
+ skipped: "skipped";
3299
+ success: "success";
3031
3300
  timed_out_stale: "timed_out_stale";
3032
- drift_dropped: "drift_dropped";
3301
+ unroutable: "unroutable";
3033
3302
  }>;
3034
3303
  matrixValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3035
3304
  startedAt: z.ZodOptional<z.ZodNumber>;
@@ -3039,7 +3308,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3039
3308
  agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3040
3309
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3041
3310
  runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
3042
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
3311
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
3043
3312
  logBytes: z.ZodOptional<z.ZodNumber>;
3044
3313
  timestamp: z.ZodNumber;
3045
3314
  initFailure: z.ZodOptional<z.ZodObject<{
@@ -3048,14 +3317,17 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3048
3317
  run: "run";
3049
3318
  }>;
3050
3319
  category: z.ZodEnum<{
3051
- secret_resolution: "secret_resolution";
3052
- install_secrets: "install_secrets";
3053
- lock_resolution: "lock_resolution";
3320
+ approval_misconfig: "approval_misconfig";
3054
3321
  build_coordination: "build_coordination";
3055
- environment_rules: "environment_rules";
3322
+ context_rules: "context_rules";
3056
3323
  dynamic_eval: "dynamic_eval";
3057
- no_agent: "no_agent";
3324
+ install_secrets: "install_secrets";
3325
+ lock_resolution: "lock_resolution";
3058
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";
3059
3331
  }>;
3060
3332
  message: z.ZodString;
3061
3333
  jobName: z.ZodOptional<z.ZodString>;
@@ -3067,13 +3339,13 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3067
3339
  runId: z.ZodString;
3068
3340
  workflowName: z.ZodString;
3069
3341
  status: z.ZodEnum<{
3070
- success: "success";
3071
- pending: "pending";
3072
- running: "running";
3073
- failed: "failed";
3074
3342
  cancelled: "cancelled";
3075
3343
  cancelling: "cancelling";
3344
+ failed: "failed";
3076
3345
  held: "held";
3346
+ pending: "pending";
3347
+ running: "running";
3348
+ success: "success";
3077
3349
  }>;
3078
3350
  routingKey: z.ZodOptional<z.ZodString>;
3079
3351
  repoIdentifier: z.ZodOptional<z.ZodString>;
@@ -3090,6 +3362,13 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3090
3362
  triggeredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3091
3363
  triggeredByAgentLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3092
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
+ }>>;
3093
3372
  jobs: z.ZodArray<z.ZodObject<{
3094
3373
  jobId: z.ZodString;
3095
3374
  jobName: z.ZodString;
@@ -3100,7 +3379,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3100
3379
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3101
3380
  agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3102
3381
  runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
3103
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
3382
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
3104
3383
  }, z.core.$strip>>;
3105
3384
  }, z.core.$strip>>;
3106
3385
  timestamp: z.ZodNumber;
@@ -3111,54 +3390,66 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3111
3390
  coordinator: "coordinator";
3112
3391
  worker: "worker";
3113
3392
  }>>;
3114
- dashboardWrites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
3115
- "secrets.set": "secrets.set";
3116
- "secrets.delete": "secrets.delete";
3117
- "secrets.scope.create": "secrets.scope.create";
3118
- "secrets.scope.rename": "secrets.scope.rename";
3119
- "secrets.scope.delete": "secrets.scope.delete";
3120
- "variables.set": "variables.set";
3121
- "variables.delete": "variables.delete";
3122
- "environments.create": "environments.create";
3123
- "environments.update": "environments.update";
3124
- "environments.test_access.set": "environments.test_access.set";
3125
- "environments.delete": "environments.delete";
3126
- "environments.bindings.set": "environments.bindings.set";
3127
- "environments.source_overrides.set": "environments.source_overrides.set";
3128
- "environments.source_overrides.delete": "environments.source_overrides.delete";
3129
- "held_runs.approve": "held_runs.approve";
3130
- "held_runs.reject": "held_runs.reject";
3131
- "event_dlq.retry": "event_dlq.retry";
3132
- "event_dlq.discard": "event_dlq.discard";
3393
+ dashboardWrites: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodEnum<{
3133
3394
  "attestations.retry": "attestations.retry";
3134
- "registration.disable": "registration.disable";
3135
- "registration.delete": "registration.delete";
3136
- "global_workflows.update": "global_workflows.update";
3137
3395
  "backends.sync": "backends.sync";
3138
3396
  "backends.sync_one": "backends.sync_one";
3139
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";
3140
3407
  "fleet.host.declare": "fleet.host.declare";
3141
3408
  "fleet.host.remove": "fleet.host.remove";
3142
- }> & z.core.$partial, z.ZodBoolean>>;
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>>>>>;
3143
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>>;
3144
3435
  }, z.core.$loose>;
3145
3436
  }, z.core.$strip>, z.ZodObject<{
3146
3437
  type: z.ZodLiteral<"source.register">;
3147
3438
  messageId: z.ZodString;
3148
3439
  sources: z.ZodArray<z.ZodObject<{
3149
3440
  provider: z.ZodEnum<{
3150
- github: "github";
3151
- gitlab: "gitlab";
3152
3441
  bitbucket: "bitbucket";
3153
3442
  generic: "generic";
3443
+ github: "github";
3444
+ gitlab: "gitlab";
3154
3445
  }>;
3155
3446
  routingKey: z.ZodString;
3156
3447
  name: z.ZodString;
3157
3448
  subtype: z.ZodEnum<{
3158
- github_app: "github_app";
3159
3449
  generic_webhook: "generic_webhook";
3160
- universal_git: "universal_git";
3450
+ github_app: "github_app";
3161
3451
  local: "local";
3452
+ universal_git: "universal_git";
3162
3453
  }>;
3163
3454
  slug: z.ZodOptional<z.ZodString>;
3164
3455
  }, z.core.$strip>>;
@@ -3168,24 +3459,27 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3168
3459
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3169
3460
  version: z.ZodOptional<z.ZodString>;
3170
3461
  mode: z.ZodOptional<z.ZodEnum<{
3171
- platform: "platform";
3172
3462
  hybrid: "hybrid";
3173
3463
  independent: "independent";
3464
+ observed: "observed";
3465
+ platform: "platform";
3174
3466
  }>>;
3175
3467
  scalerBackends: z.ZodOptional<z.ZodArray<z.ZodString>>;
3176
3468
  deployment: z.ZodOptional<z.ZodObject<{
3177
3469
  mode: z.ZodEnum<{
3178
- unknown: "unknown";
3179
- systemd: "systemd";
3470
+ compose: "compose";
3180
3471
  launchd: "launchd";
3472
+ systemd: "systemd";
3473
+ unknown: "unknown";
3181
3474
  windows: "windows";
3182
- compose: "compose";
3183
3475
  }>;
3184
3476
  containerName: z.ZodOptional<z.ZodString>;
3185
3477
  containerRuntime: z.ZodOptional<z.ZodEnum<{
3186
- podman: "podman";
3187
3478
  docker: "docker";
3479
+ podman: "podman";
3188
3480
  }>>;
3481
+ adminInvocation: z.ZodOptional<z.ZodString>;
3482
+ adminPath: z.ZodOptional<z.ZodString>;
3189
3483
  }, z.core.$strip>>;
3190
3484
  s3LogAccess: z.ZodOptional<z.ZodBoolean>;
3191
3485
  queueTimeoutMs: z.ZodOptional<z.ZodNumber>;
@@ -3196,8 +3490,8 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3196
3490
  }, z.core.$strip>, z.ZodObject<{
3197
3491
  type: z.ZodLiteral<"cache.stats">;
3198
3492
  cacheType: z.ZodEnum<{
3199
- source: "source";
3200
3493
  dep: "dep";
3494
+ source: "source";
3201
3495
  }>;
3202
3496
  hit: z.ZodBoolean;
3203
3497
  }, z.core.$strip>, z.ZodObject<{
@@ -3209,36 +3503,48 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3209
3503
  coordinator: "coordinator";
3210
3504
  worker: "worker";
3211
3505
  }>>;
3212
- dashboardWrites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
3213
- "secrets.set": "secrets.set";
3214
- "secrets.delete": "secrets.delete";
3215
- "secrets.scope.create": "secrets.scope.create";
3216
- "secrets.scope.rename": "secrets.scope.rename";
3217
- "secrets.scope.delete": "secrets.scope.delete";
3218
- "variables.set": "variables.set";
3219
- "variables.delete": "variables.delete";
3220
- "environments.create": "environments.create";
3221
- "environments.update": "environments.update";
3222
- "environments.test_access.set": "environments.test_access.set";
3223
- "environments.delete": "environments.delete";
3224
- "environments.bindings.set": "environments.bindings.set";
3225
- "environments.source_overrides.set": "environments.source_overrides.set";
3226
- "environments.source_overrides.delete": "environments.source_overrides.delete";
3227
- "held_runs.approve": "held_runs.approve";
3228
- "held_runs.reject": "held_runs.reject";
3229
- "event_dlq.retry": "event_dlq.retry";
3230
- "event_dlq.discard": "event_dlq.discard";
3506
+ dashboardWrites: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodEnum<{
3231
3507
  "attestations.retry": "attestations.retry";
3232
- "registration.disable": "registration.disable";
3233
- "registration.delete": "registration.delete";
3234
- "global_workflows.update": "global_workflows.update";
3235
3508
  "backends.sync": "backends.sync";
3236
3509
  "backends.sync_one": "backends.sync_one";
3237
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";
3238
3520
  "fleet.host.declare": "fleet.host.declare";
3239
3521
  "fleet.host.remove": "fleet.host.remove";
3240
- }> & z.core.$partial, z.ZodBoolean>>;
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>>>>>;
3241
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>>;
3242
3548
  }, z.core.$loose>>;
3243
3549
  }, z.core.$strip>, z.ZodObject<{
3244
3550
  type: z.ZodLiteral<"heartbeat">;
@@ -3250,8 +3556,8 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3250
3556
  timestampMs: z.ZodNumber;
3251
3557
  sourceService: z.ZodEnum<{
3252
3558
  agent: "agent";
3253
- platform: "platform";
3254
3559
  orchestrator: "orchestrator";
3560
+ platform: "platform";
3255
3561
  }>;
3256
3562
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3257
3563
  traceId: z.ZodOptional<z.ZodString>;
@@ -3269,10 +3575,10 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3269
3575
  name: z.ZodString;
3270
3576
  value: z.ZodString;
3271
3577
  category: z.ZodEnum<{
3272
- user: "user";
3273
- system: "system";
3274
3578
  inherited: "inherited";
3275
3579
  secret: "secret";
3580
+ system: "system";
3581
+ user: "user";
3276
3582
  }>;
3277
3583
  }, z.core.$strip>>>;
3278
3584
  runtime: z.ZodOptional<z.ZodObject<{
@@ -3300,8 +3606,8 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3300
3606
  name: z.ZodString;
3301
3607
  type: z.ZodEnum<{
3302
3608
  counter: "counter";
3303
- histogram: "histogram";
3304
3609
  gauge: "gauge";
3610
+ histogram: "histogram";
3305
3611
  upDownCounter: "upDownCounter";
3306
3612
  }>;
3307
3613
  value: z.ZodOptional<z.ZodNumber>;
@@ -3327,7 +3633,45 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
3327
3633
  deferred: "deferred";
3328
3634
  "offline-backfill": "offline-backfill";
3329
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;
3330
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>;
3331
3675
  export type WebhookRelay = z.infer<typeof webhookRelaySchema>;
3332
3676
  export type WebhookAck = z.infer<typeof webhookAckSchema>;
3333
3677
  export type ExecutionEvent = z.infer<typeof executionEventSchema>;
@@ -3336,4 +3680,5 @@ export type PeerDiscover = z.infer<typeof peerDiscoverSchema>;
3336
3680
  export type PeerUpdate = z.infer<typeof peerUpdateSchema>;
3337
3681
  export type PlatformToOrchestratorMessage = z.infer<typeof platformToOrchestratorMessageSchema>;
3338
3682
  export type OrchestratorToPlatformMessage = z.infer<typeof orchestratorToPlatformMessageSchema>;
3683
+ export {};
3339
3684
  //# sourceMappingURL=platform-orchestrator.d.ts.map