@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
@@ -79,13 +79,13 @@ export declare const dashboardRunStructuredResponseSchema: z.ZodObject<{
79
79
  value: z.ZodString;
80
80
  }, z.core.$strip>;
81
81
  status: z.ZodEnum<{
82
- success: "success";
83
- pending: "pending";
84
- running: "running";
85
- failed: "failed";
86
82
  cancelled: "cancelled";
87
83
  cancelling: "cancelling";
84
+ failed: "failed";
88
85
  held: "held";
86
+ pending: "pending";
87
+ running: "running";
88
+ success: "success";
89
89
  }>;
90
90
  provider: z.ZodString;
91
91
  repoIdentifier: z.ZodObject<{
@@ -102,21 +102,21 @@ export declare const dashboardRunStructuredResponseSchema: z.ZodObject<{
102
102
  completedAt: z.ZodNullable<z.ZodString>;
103
103
  durationMs: z.ZodNullable<z.ZodNumber>;
104
104
  trustTier: z.ZodNullable<z.ZodEnum<{
105
- unknown: "unknown";
106
105
  known: "known";
107
106
  trusted: "trusted";
107
+ unknown: "unknown";
108
108
  }>>;
109
109
  contributorUsername: z.ZodNullable<z.ZodObject<{
110
110
  untrusted: z.ZodLiteral<true>;
111
111
  value: z.ZodString;
112
112
  }, z.core.$strip>>;
113
113
  failureCategory: z.ZodNullable<z.ZodEnum<{
114
- unknown: "unknown";
115
114
  cancelled: "cancelled";
115
+ infra: "infra";
116
116
  init_failure: "init_failure";
117
- timed_out: "timed_out";
118
117
  step_failed: "step_failed";
119
- infra: "infra";
118
+ timed_out: "timed_out";
119
+ unknown: "unknown";
120
120
  }>>;
121
121
  failureReason: z.ZodNullable<z.ZodObject<{
122
122
  untrusted: z.ZodLiteral<true>;
@@ -131,17 +131,18 @@ export declare const dashboardRunStructuredResponseSchema: z.ZodObject<{
131
131
  value: z.ZodString;
132
132
  }, z.core.$strip>;
133
133
  status: z.ZodEnum<{
134
- skipped: "skipped";
135
- success: "success";
136
- pending: "pending";
137
- running: "running";
138
- failed: "failed";
139
134
  cancelled: "cancelled";
140
135
  cancelling: "cancelling";
136
+ drift_dropped: "drift_dropped";
137
+ failed: "failed";
138
+ pending: "pending";
141
139
  queued: "queued";
142
140
  recovering: "recovering";
141
+ running: "running";
142
+ skipped: "skipped";
143
+ success: "success";
143
144
  timed_out_stale: "timed_out_stale";
144
- drift_dropped: "drift_dropped";
145
+ unroutable: "unroutable";
145
146
  }>;
146
147
  startedAt: z.ZodNullable<z.ZodString>;
147
148
  completedAt: z.ZodNullable<z.ZodString>;
@@ -157,14 +158,17 @@ export declare const dashboardRunStructuredResponseSchema: z.ZodObject<{
157
158
  run: "run";
158
159
  }>;
159
160
  category: z.ZodEnum<{
160
- secret_resolution: "secret_resolution";
161
- install_secrets: "install_secrets";
162
- lock_resolution: "lock_resolution";
161
+ approval_misconfig: "approval_misconfig";
163
162
  build_coordination: "build_coordination";
164
- environment_rules: "environment_rules";
163
+ context_rules: "context_rules";
165
164
  dynamic_eval: "dynamic_eval";
166
- no_agent: "no_agent";
165
+ install_secrets: "install_secrets";
166
+ lock_resolution: "lock_resolution";
167
167
  matrix_expansion: "matrix_expansion";
168
+ no_agent: "no_agent";
169
+ sandbox_denied: "sandbox_denied";
170
+ secret_resolution: "secret_resolution";
171
+ trust_policy: "trust_policy";
168
172
  }>;
169
173
  message: z.ZodObject<{
170
174
  untrusted: z.ZodLiteral<true>;
@@ -177,17 +181,18 @@ export declare const dashboardRunStructuredResponseSchema: z.ZodObject<{
177
181
  value: z.ZodString;
178
182
  }, z.core.$strip>;
179
183
  runOn: z.ZodArray<z.ZodEnum<{
180
- skipped: "skipped";
181
- success: "success";
182
- pending: "pending";
183
- running: "running";
184
- failed: "failed";
185
184
  cancelled: "cancelled";
186
185
  cancelling: "cancelling";
186
+ drift_dropped: "drift_dropped";
187
+ failed: "failed";
188
+ pending: "pending";
187
189
  queued: "queued";
188
190
  recovering: "recovering";
191
+ running: "running";
192
+ skipped: "skipped";
193
+ success: "success";
189
194
  timed_out_stale: "timed_out_stale";
190
- drift_dropped: "drift_dropped";
195
+ unroutable: "unroutable";
191
196
  }>>;
192
197
  }, z.core.$strip>>;
193
198
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -202,12 +207,12 @@ export declare const dashboardRunStructuredResponseSchema: z.ZodObject<{
202
207
  value: z.ZodString;
203
208
  }, z.core.$strip>;
204
209
  status: z.ZodEnum<{
205
- skipped: "skipped";
206
- success: "success";
210
+ cancelled: "cancelled";
211
+ failed: "failed";
207
212
  pending: "pending";
208
213
  running: "running";
209
- failed: "failed";
210
- cancelled: "cancelled";
214
+ skipped: "skipped";
215
+ success: "success";
211
216
  }>;
212
217
  exitCode: z.ZodNullable<z.ZodNumber>;
213
218
  durationMs: z.ZodNullable<z.ZodNumber>;
@@ -219,11 +224,11 @@ export declare const dashboardRunStructuredResponseSchema: z.ZodObject<{
219
224
  }, z.core.$strip>>;
220
225
  stepType: z.ZodString;
221
226
  checkOutcome: z.ZodNullable<z.ZodEnum<{
222
- skipped: "skipped";
223
227
  applied: "applied";
224
228
  declined: "declined";
225
229
  "dry-run": "dry-run";
226
230
  no_check: "no_check";
231
+ skipped: "skipped";
227
232
  }>>;
228
233
  secretsAccessed: z.ZodArray<z.ZodString>;
229
234
  }, z.core.$strip>>;
@@ -232,6 +237,104 @@ export declare const dashboardRunStructuredResponseSchema: z.ZodObject<{
232
237
  error: z.ZodOptional<z.ZodString>;
233
238
  }, z.core.$strip>;
234
239
  export type DashboardRunStructuredResponse = z.infer<typeof dashboardRunStructuredResponseSchema>;
240
+ /**
241
+ * Request the current mirror-projection state of a single run from the
242
+ * orchestrator. Unlike `dashboard.run.detail` (a user-plane read that
243
+ * access-logs), this is a **system reconciliation read**: the Platform's
244
+ * `RunMirrorReconciler` issues it for a run stuck non-terminal in the mirror to
245
+ * recover a terminal frame dropped on a live connection. The `actor` is always a
246
+ * `system` principal, and the orchestrator does NOT write an access-log row.
247
+ */
248
+ export declare const dashboardRunStateRequestSchema: z.ZodObject<{
249
+ type: z.ZodLiteral<"dashboard.run.state">;
250
+ requestId: z.ZodString;
251
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
252
+ type: z.ZodLiteral<"user">;
253
+ sub: z.ZodString;
254
+ agent: z.ZodOptional<z.ZodObject<{
255
+ patId: z.ZodString;
256
+ label: z.ZodString;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>, z.ZodObject<{
259
+ type: z.ZodLiteral<"api_key">;
260
+ keyId: z.ZodString;
261
+ ownerSub: z.ZodString;
262
+ agent: z.ZodOptional<z.ZodObject<{
263
+ label: z.ZodString;
264
+ }, z.core.$strip>>;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ type: z.ZodLiteral<"service_account">;
267
+ id: z.ZodString;
268
+ }, z.core.$strip>, z.ZodObject<{
269
+ type: z.ZodLiteral<"platform_operator">;
270
+ sub: z.ZodString;
271
+ reason: z.ZodString;
272
+ sessionId: z.ZodOptional<z.ZodString>;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ type: z.ZodLiteral<"system">;
275
+ component: z.ZodString;
276
+ }, z.core.$strip>], "type">;
277
+ runId: z.ZodString;
278
+ }, z.core.$strip>;
279
+ export type DashboardRunStateRequest = z.infer<typeof dashboardRunStateRequestSchema>;
280
+ /**
281
+ * Response carrying the run's current `StateReplayRun` mirror-projection shape
282
+ * (the same shape `state.replay` carries), or `run: null` when the orchestrator
283
+ * has no such run. Consumed by `upsertRunMirror` on the Platform side.
284
+ */
285
+ export declare const dashboardRunStateResponseSchema: z.ZodObject<{
286
+ type: z.ZodLiteral<"dashboard.run.state.response">;
287
+ requestId: z.ZodString;
288
+ run: z.ZodNullable<z.ZodObject<{
289
+ runId: z.ZodString;
290
+ workflowName: z.ZodString;
291
+ status: z.ZodEnum<{
292
+ cancelled: "cancelled";
293
+ cancelling: "cancelling";
294
+ failed: "failed";
295
+ held: "held";
296
+ pending: "pending";
297
+ running: "running";
298
+ success: "success";
299
+ }>;
300
+ routingKey: z.ZodOptional<z.ZodString>;
301
+ repoIdentifier: z.ZodOptional<z.ZodString>;
302
+ sha: z.ZodOptional<z.ZodString>;
303
+ ref: z.ZodOptional<z.ZodString>;
304
+ triggerEvent: z.ZodOptional<z.ZodString>;
305
+ commitMessage: z.ZodOptional<z.ZodString>;
306
+ jobCount: z.ZodNumber;
307
+ startedAt: z.ZodNumber;
308
+ completedAt: z.ZodOptional<z.ZodNumber>;
309
+ durationMs: z.ZodOptional<z.ZodNumber>;
310
+ parentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ originalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
+ triggeredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ triggeredByAgentLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
+ failureReason: z.ZodOptional<z.ZodString>;
315
+ failureClass: z.ZodOptional<z.ZodEnum<{
316
+ cancelled: "cancelled";
317
+ dead_orchestrator: "dead_orchestrator";
318
+ never_started: "never_started";
319
+ step_failure: "step_failure";
320
+ timed_out: "timed_out";
321
+ }>>;
322
+ jobs: z.ZodArray<z.ZodObject<{
323
+ jobId: z.ZodString;
324
+ jobName: z.ZodString;
325
+ status: z.ZodString;
326
+ startedAt: z.ZodOptional<z.ZodNumber>;
327
+ completedAt: z.ZodOptional<z.ZodNumber>;
328
+ durationMs: z.ZodOptional<z.ZodNumber>;
329
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
+ runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
332
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
333
+ }, z.core.$strip>>;
334
+ }, z.core.$strip>>;
335
+ error: z.ZodOptional<z.ZodString>;
336
+ }, z.core.$strip>;
337
+ export type DashboardRunStateResponse = z.infer<typeof dashboardRunStateResponseSchema>;
235
338
  /** Request step logs from orchestrator. */
236
339
  export declare const dashboardStepLogsRequestSchema: z.ZodObject<{
237
340
  type: z.ZodLiteral<"dashboard.step.logs">;
@@ -284,8 +387,8 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
284
387
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
388
  errorMessage: z.ZodNullable<z.ZodString>;
286
389
  runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
287
- environments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
288
- skippedEnvironments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
390
+ contexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
391
+ skippedContexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
289
392
  envWarning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
393
  outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
291
394
  secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -295,14 +398,17 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
295
398
  run: "run";
296
399
  }>;
297
400
  category: z.ZodEnum<{
298
- secret_resolution: "secret_resolution";
299
- install_secrets: "install_secrets";
300
- lock_resolution: "lock_resolution";
401
+ approval_misconfig: "approval_misconfig";
301
402
  build_coordination: "build_coordination";
302
- environment_rules: "environment_rules";
403
+ context_rules: "context_rules";
303
404
  dynamic_eval: "dynamic_eval";
304
- no_agent: "no_agent";
405
+ install_secrets: "install_secrets";
406
+ lock_resolution: "lock_resolution";
305
407
  matrix_expansion: "matrix_expansion";
408
+ no_agent: "no_agent";
409
+ sandbox_denied: "sandbox_denied";
410
+ secret_resolution: "secret_resolution";
411
+ trust_policy: "trust_policy";
306
412
  }>;
307
413
  message: z.ZodString;
308
414
  jobName: z.ZodOptional<z.ZodString>;
@@ -310,17 +416,18 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
310
416
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
311
417
  upstreamName: z.ZodString;
312
418
  runOn: z.ZodArray<z.ZodEnum<{
313
- skipped: "skipped";
314
- success: "success";
315
- pending: "pending";
316
- running: "running";
317
- failed: "failed";
318
419
  cancelled: "cancelled";
319
420
  cancelling: "cancelling";
421
+ drift_dropped: "drift_dropped";
422
+ failed: "failed";
423
+ pending: "pending";
320
424
  queued: "queued";
321
425
  recovering: "recovering";
426
+ running: "running";
427
+ skipped: "skipped";
428
+ success: "success";
322
429
  timed_out_stale: "timed_out_stale";
323
- drift_dropped: "drift_dropped";
430
+ unroutable: "unroutable";
324
431
  }>>;
325
432
  }, z.core.$strip>>>>;
326
433
  steps: z.ZodArray<z.ZodObject<{
@@ -335,17 +442,17 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
335
442
  stepType: z.ZodOptional<z.ZodString>;
336
443
  secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
337
444
  checkOutcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
338
- skipped: "skipped";
339
445
  applied: "applied";
340
446
  declined: "declined";
341
447
  "dry-run": "dry-run";
342
448
  no_check: "no_check";
449
+ skipped: "skipped";
343
450
  }>>>;
344
451
  driftSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
452
  concurrencyKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
346
- sequential: "sequential";
347
453
  "parallel-child": "parallel-child";
348
454
  "parallel-group": "parallel-group";
455
+ sequential: "sequential";
349
456
  }>>>;
350
457
  groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
458
  }, z.core.$strip>>;
@@ -369,8 +476,8 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
369
476
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
477
  errorMessage: z.ZodNullable<z.ZodString>;
371
478
  runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
372
- environments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
373
- skippedEnvironments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
479
+ contexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
480
+ skippedContexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
374
481
  envWarning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
482
  outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
376
483
  secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -380,14 +487,17 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
380
487
  run: "run";
381
488
  }>;
382
489
  category: z.ZodEnum<{
383
- secret_resolution: "secret_resolution";
384
- install_secrets: "install_secrets";
385
- lock_resolution: "lock_resolution";
490
+ approval_misconfig: "approval_misconfig";
386
491
  build_coordination: "build_coordination";
387
- environment_rules: "environment_rules";
492
+ context_rules: "context_rules";
388
493
  dynamic_eval: "dynamic_eval";
389
- no_agent: "no_agent";
494
+ install_secrets: "install_secrets";
495
+ lock_resolution: "lock_resolution";
390
496
  matrix_expansion: "matrix_expansion";
497
+ no_agent: "no_agent";
498
+ sandbox_denied: "sandbox_denied";
499
+ secret_resolution: "secret_resolution";
500
+ trust_policy: "trust_policy";
391
501
  }>;
392
502
  message: z.ZodString;
393
503
  jobName: z.ZodOptional<z.ZodString>;
@@ -395,17 +505,18 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
395
505
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
396
506
  upstreamName: z.ZodString;
397
507
  runOn: z.ZodArray<z.ZodEnum<{
398
- skipped: "skipped";
399
- success: "success";
400
- pending: "pending";
401
- running: "running";
402
- failed: "failed";
403
508
  cancelled: "cancelled";
404
509
  cancelling: "cancelling";
510
+ drift_dropped: "drift_dropped";
511
+ failed: "failed";
512
+ pending: "pending";
405
513
  queued: "queued";
406
514
  recovering: "recovering";
515
+ running: "running";
516
+ skipped: "skipped";
517
+ success: "success";
407
518
  timed_out_stale: "timed_out_stale";
408
- drift_dropped: "drift_dropped";
519
+ unroutable: "unroutable";
409
520
  }>>;
410
521
  }, z.core.$strip>>>>;
411
522
  steps: z.ZodArray<z.ZodObject<{
@@ -420,30 +531,30 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
420
531
  stepType: z.ZodOptional<z.ZodString>;
421
532
  secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
422
533
  checkOutcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
423
- skipped: "skipped";
424
534
  applied: "applied";
425
535
  declined: "declined";
426
536
  "dry-run": "dry-run";
427
537
  no_check: "no_check";
538
+ skipped: "skipped";
428
539
  }>>>;
429
540
  driftSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
541
  concurrencyKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
431
- sequential: "sequential";
432
542
  "parallel-child": "parallel-child";
433
543
  "parallel-group": "parallel-group";
544
+ sequential: "sequential";
434
545
  }>>>;
435
546
  groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
436
547
  }, z.core.$strip>>;
437
548
  }, z.core.$strip>>;
438
549
  trustContext: z.ZodOptional<z.ZodObject<{
439
550
  trustTier: z.ZodNullable<z.ZodEnum<{
440
- unknown: "unknown";
441
551
  known: "known";
442
552
  trusted: "trusted";
553
+ unknown: "unknown";
443
554
  }>>;
444
555
  lockFileSource: z.ZodNullable<z.ZodEnum<{
445
- head: "head";
446
556
  base: "base";
557
+ head: "head";
447
558
  }>>;
448
559
  contributorUsername: z.ZodNullable<z.ZodString>;
449
560
  }, z.core.$strip>>;
@@ -453,14 +564,17 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
453
564
  run: "run";
454
565
  }>;
455
566
  category: z.ZodEnum<{
456
- secret_resolution: "secret_resolution";
457
- install_secrets: "install_secrets";
458
- lock_resolution: "lock_resolution";
567
+ approval_misconfig: "approval_misconfig";
459
568
  build_coordination: "build_coordination";
460
- environment_rules: "environment_rules";
569
+ context_rules: "context_rules";
461
570
  dynamic_eval: "dynamic_eval";
462
- no_agent: "no_agent";
571
+ install_secrets: "install_secrets";
572
+ lock_resolution: "lock_resolution";
463
573
  matrix_expansion: "matrix_expansion";
574
+ no_agent: "no_agent";
575
+ sandbox_denied: "sandbox_denied";
576
+ secret_resolution: "secret_resolution";
577
+ trust_policy: "trust_policy";
464
578
  }>;
465
579
  message: z.ZodString;
466
580
  jobName: z.ZodOptional<z.ZodString>;
@@ -520,10 +634,10 @@ export type DashboardAttestationsListRequest = z.infer<typeof dashboardAttestati
520
634
  * trust root).
521
635
  */
522
636
  export declare const attestationVerifyStatusSchema: z.ZodEnum<{
523
- pending: "pending";
524
637
  failed: "failed";
525
- verified: "verified";
638
+ pending: "pending";
526
639
  unverifiable: "unverifiable";
640
+ verified: "verified";
527
641
  }>;
528
642
  export type AttestationVerifyStatus = z.infer<typeof attestationVerifyStatusSchema>;
529
643
  /**
@@ -557,20 +671,20 @@ export declare const attestationListItemSchema: z.ZodObject<{
557
671
  }, z.core.$strip>;
558
672
  runId: z.ZodOptional<z.ZodString>;
559
673
  verifyStatus: z.ZodOptional<z.ZodEnum<{
560
- pending: "pending";
561
674
  failed: "failed";
562
- verified: "verified";
675
+ pending: "pending";
563
676
  unverifiable: "unverifiable";
677
+ verified: "verified";
564
678
  }>>;
565
679
  verifyReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
566
680
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
567
- triggered: "triggered";
568
681
  "run-remote": "run-remote";
682
+ triggered: "triggered";
569
683
  }>>;
570
684
  originOrgId: z.ZodOptional<z.ZodString>;
571
685
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
572
- live: "live";
573
686
  deferred: "deferred";
687
+ live: "live";
574
688
  "offline-backfill": "offline-backfill";
575
689
  }>>;
576
690
  }, z.core.$strip>;
@@ -605,26 +719,90 @@ export declare const dashboardAttestationsListResponseSchema: z.ZodObject<{
605
719
  }, z.core.$strip>;
606
720
  runId: z.ZodOptional<z.ZodString>;
607
721
  verifyStatus: z.ZodOptional<z.ZodEnum<{
608
- pending: "pending";
609
722
  failed: "failed";
610
- verified: "verified";
723
+ pending: "pending";
611
724
  unverifiable: "unverifiable";
725
+ verified: "verified";
612
726
  }>>;
613
727
  verifyReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
614
728
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
615
- triggered: "triggered";
616
729
  "run-remote": "run-remote";
730
+ triggered: "triggered";
617
731
  }>>;
618
732
  originOrgId: z.ZodOptional<z.ZodString>;
619
733
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
620
- live: "live";
621
734
  deferred: "deferred";
735
+ live: "live";
622
736
  "offline-backfill": "offline-backfill";
623
737
  }>>;
624
738
  }, z.core.$strip>>;
739
+ trustedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
625
740
  error: z.ZodOptional<z.ZodString>;
626
741
  }, z.core.$strip>;
627
742
  export type DashboardAttestationsListResponse = z.infer<typeof dashboardAttestationsListResponseSchema>;
743
+ /** Request the named artifacts uploaded by a run. */
744
+ export declare const dashboardArtifactsListRequestSchema: z.ZodObject<{
745
+ type: z.ZodLiteral<"dashboard.artifacts.list">;
746
+ requestId: z.ZodString;
747
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
748
+ type: z.ZodLiteral<"user">;
749
+ sub: z.ZodString;
750
+ agent: z.ZodOptional<z.ZodObject<{
751
+ patId: z.ZodString;
752
+ label: z.ZodString;
753
+ }, z.core.$strip>>;
754
+ }, z.core.$strip>, z.ZodObject<{
755
+ type: z.ZodLiteral<"api_key">;
756
+ keyId: z.ZodString;
757
+ ownerSub: z.ZodString;
758
+ agent: z.ZodOptional<z.ZodObject<{
759
+ label: z.ZodString;
760
+ }, z.core.$strip>>;
761
+ }, z.core.$strip>, z.ZodObject<{
762
+ type: z.ZodLiteral<"service_account">;
763
+ id: z.ZodString;
764
+ }, z.core.$strip>, z.ZodObject<{
765
+ type: z.ZodLiteral<"platform_operator">;
766
+ sub: z.ZodString;
767
+ reason: z.ZodString;
768
+ sessionId: z.ZodOptional<z.ZodString>;
769
+ }, z.core.$strip>, z.ZodObject<{
770
+ type: z.ZodLiteral<"system">;
771
+ component: z.ZodString;
772
+ }, z.core.$strip>], "type">;
773
+ runId: z.ZodString;
774
+ }, z.core.$strip>;
775
+ export type DashboardArtifactsListRequest = z.infer<typeof dashboardArtifactsListRequestSchema>;
776
+ /**
777
+ * Single artifact in the list response. `downloadUrl` is a presigned GET the
778
+ * dashboard links directly; it is omitted when the backing object could not be
779
+ * resolved (expired / missing), in which case the row still lists the metadata.
780
+ */
781
+ export declare const artifactListItemSchema: z.ZodObject<{
782
+ name: z.ZodString;
783
+ jobId: z.ZodString;
784
+ sizeBytes: z.ZodNumber;
785
+ sha256: z.ZodString;
786
+ createdAt: z.ZodString;
787
+ downloadUrl: z.ZodOptional<z.ZodString>;
788
+ }, z.core.$strip>;
789
+ export type ArtifactListItem = z.infer<typeof artifactListItemSchema>;
790
+ /** Response with the run's artifacts (correlates to dashboard.artifacts.list). */
791
+ export declare const dashboardArtifactsListResponseSchema: z.ZodObject<{
792
+ type: z.ZodLiteral<"dashboard.artifacts.list.response">;
793
+ requestId: z.ZodString;
794
+ artifacts: z.ZodArray<z.ZodObject<{
795
+ name: z.ZodString;
796
+ jobId: z.ZodString;
797
+ sizeBytes: z.ZodNumber;
798
+ sha256: z.ZodString;
799
+ createdAt: z.ZodString;
800
+ downloadUrl: z.ZodOptional<z.ZodString>;
801
+ }, z.core.$strip>>;
802
+ downloadUrlExpiresInSeconds: z.ZodOptional<z.ZodNumber>;
803
+ error: z.ZodOptional<z.ZodString>;
804
+ }, z.core.$strip>;
805
+ export type DashboardArtifactsListResponse = z.infer<typeof dashboardArtifactsListResponseSchema>;
628
806
  /**
629
807
  * Metadata-only summary row for the org-wide list. No inlined bundle (keeps the
630
808
  * list cheap). `repository` / `workflow` are joined from `execution_runs` when
@@ -641,21 +819,21 @@ export declare const attestationListSummarySchema: z.ZodObject<{
641
819
  mediaType: z.ZodString;
642
820
  createdAt: z.ZodString;
643
821
  verifyStatus: z.ZodEnum<{
644
- pending: "pending";
645
822
  failed: "failed";
646
- verified: "verified";
823
+ pending: "pending";
647
824
  unverifiable: "unverifiable";
825
+ verified: "verified";
648
826
  }>;
649
827
  verifyReason: z.ZodNullable<z.ZodString>;
650
828
  repository: z.ZodNullable<z.ZodString>;
651
829
  workflow: z.ZodNullable<z.ZodString>;
652
830
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
653
- triggered: "triggered";
654
831
  "run-remote": "run-remote";
832
+ triggered: "triggered";
655
833
  }>>;
656
834
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
657
- live: "live";
658
835
  deferred: "deferred";
836
+ live: "live";
659
837
  "offline-backfill": "offline-backfill";
660
838
  }>>;
661
839
  pending: z.ZodOptional<z.ZodBoolean>;
@@ -666,10 +844,10 @@ export declare const attestationListFiltersSchema: z.ZodObject<{
666
844
  digest: z.ZodOptional<z.ZodString>;
667
845
  name: z.ZodOptional<z.ZodString>;
668
846
  status: z.ZodOptional<z.ZodEnum<{
669
- pending: "pending";
670
847
  failed: "failed";
671
- verified: "verified";
848
+ pending: "pending";
672
849
  unverifiable: "unverifiable";
850
+ verified: "verified";
673
851
  }>>;
674
852
  repository: z.ZodOptional<z.ZodString>;
675
853
  workflow: z.ZodOptional<z.ZodString>;
@@ -714,10 +892,10 @@ export declare const dashboardAttestationsListAllRequestSchema: z.ZodObject<{
714
892
  digest: z.ZodOptional<z.ZodString>;
715
893
  name: z.ZodOptional<z.ZodString>;
716
894
  status: z.ZodOptional<z.ZodEnum<{
717
- pending: "pending";
718
895
  failed: "failed";
719
- verified: "verified";
896
+ pending: "pending";
720
897
  unverifiable: "unverifiable";
898
+ verified: "verified";
721
899
  }>>;
722
900
  repository: z.ZodOptional<z.ZodString>;
723
901
  workflow: z.ZodOptional<z.ZodString>;
@@ -742,21 +920,21 @@ export declare const dashboardAttestationsListAllResponseSchema: z.ZodObject<{
742
920
  mediaType: z.ZodString;
743
921
  createdAt: z.ZodString;
744
922
  verifyStatus: z.ZodEnum<{
745
- pending: "pending";
746
923
  failed: "failed";
747
- verified: "verified";
924
+ pending: "pending";
748
925
  unverifiable: "unverifiable";
926
+ verified: "verified";
749
927
  }>;
750
928
  verifyReason: z.ZodNullable<z.ZodString>;
751
929
  repository: z.ZodNullable<z.ZodString>;
752
930
  workflow: z.ZodNullable<z.ZodString>;
753
931
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
754
- triggered: "triggered";
755
932
  "run-remote": "run-remote";
933
+ triggered: "triggered";
756
934
  }>>;
757
935
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
758
- live: "live";
759
936
  deferred: "deferred";
937
+ live: "live";
760
938
  "offline-backfill": "offline-backfill";
761
939
  }>>;
762
940
  pending: z.ZodOptional<z.ZodBoolean>;
@@ -764,6 +942,7 @@ export declare const dashboardAttestationsListAllResponseSchema: z.ZodObject<{
764
942
  page: z.ZodNumber;
765
943
  pageSize: z.ZodNumber;
766
944
  total: z.ZodNumber;
945
+ trustedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
946
  error: z.ZodOptional<z.ZodString>;
768
947
  }, z.core.$strip>;
769
948
  export type DashboardAttestationsListAllResponse = z.infer<typeof dashboardAttestationsListAllResponseSchema>;
@@ -830,20 +1009,20 @@ export declare const dashboardAttestationGetResponseSchema: z.ZodObject<{
830
1009
  }, z.core.$strip>;
831
1010
  runId: z.ZodOptional<z.ZodString>;
832
1011
  verifyStatus: z.ZodOptional<z.ZodEnum<{
833
- pending: "pending";
834
1012
  failed: "failed";
835
- verified: "verified";
1013
+ pending: "pending";
836
1014
  unverifiable: "unverifiable";
1015
+ verified: "verified";
837
1016
  }>>;
838
1017
  verifyReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
839
1018
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
840
- triggered: "triggered";
841
1019
  "run-remote": "run-remote";
1020
+ triggered: "triggered";
842
1021
  }>>;
843
1022
  originOrgId: z.ZodOptional<z.ZodString>;
844
1023
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
845
- live: "live";
846
1024
  deferred: "deferred";
1025
+ live: "live";
847
1026
  "offline-backfill": "offline-backfill";
848
1027
  }>>;
849
1028
  }, z.core.$strip>>;
@@ -913,7 +1092,7 @@ export declare const dashboardRunSummarySchema: z.ZodObject<{
913
1092
  triggerEvent: z.ZodOptional<z.ZodString>;
914
1093
  commitMessage: z.ZodOptional<z.ZodString>;
915
1094
  jobCount: z.ZodOptional<z.ZodNumber>;
916
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
1095
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
917
1096
  startedAt: z.ZodOptional<z.ZodString>;
918
1097
  completedAt: z.ZodOptional<z.ZodString>;
919
1098
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -986,7 +1165,7 @@ export declare const dashboardRunsListResponseSchema: z.ZodObject<{
986
1165
  triggerEvent: z.ZodOptional<z.ZodString>;
987
1166
  commitMessage: z.ZodOptional<z.ZodString>;
988
1167
  jobCount: z.ZodOptional<z.ZodNumber>;
989
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
1168
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
990
1169
  startedAt: z.ZodOptional<z.ZodString>;
991
1170
  completedAt: z.ZodOptional<z.ZodString>;
992
1171
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -1064,10 +1243,10 @@ export declare const dashboardSourceSummarySchema: z.ZodObject<{
1064
1243
  name: z.ZodNullable<z.ZodString>;
1065
1244
  provider: z.ZodString;
1066
1245
  subtype: z.ZodEnum<{
1067
- github_app: "github_app";
1068
1246
  generic_webhook: "generic_webhook";
1069
- universal_git: "universal_git";
1247
+ github_app: "github_app";
1070
1248
  local: "local";
1249
+ universal_git: "universal_git";
1071
1250
  }>;
1072
1251
  enabled: z.ZodBoolean;
1073
1252
  createdAt: z.ZodString;
@@ -1116,10 +1295,10 @@ export declare const dashboardSourcesListResponseSchema: z.ZodObject<{
1116
1295
  name: z.ZodNullable<z.ZodString>;
1117
1296
  provider: z.ZodString;
1118
1297
  subtype: z.ZodEnum<{
1119
- github_app: "github_app";
1120
1298
  generic_webhook: "generic_webhook";
1121
- universal_git: "universal_git";
1299
+ github_app: "github_app";
1122
1300
  local: "local";
1301
+ universal_git: "universal_git";
1123
1302
  }>;
1124
1303
  enabled: z.ZodBoolean;
1125
1304
  createdAt: z.ZodString;
@@ -1274,19 +1453,19 @@ export declare const eventLogListItemSchema: z.ZodObject<{
1274
1453
  event: z.ZodString;
1275
1454
  action: z.ZodNullable<z.ZodString>;
1276
1455
  source: z.ZodEnum<{
1277
- relay: "relay";
1278
1456
  direct: "direct";
1457
+ relay: "relay";
1279
1458
  }>;
1280
1459
  provider: z.ZodString;
1281
1460
  repoIdentifier: z.ZodNullable<z.ZodString>;
1282
1461
  ref: z.ZodNullable<z.ZodString>;
1283
1462
  status: z.ZodEnum<{
1284
- failed: "failed";
1285
- received: "received";
1286
- processed: "processed";
1287
1463
  duplicate: "duplicate";
1288
- lockfile_missing: "lockfile_missing";
1464
+ failed: "failed";
1289
1465
  lockfile_corrupt: "lockfile_corrupt";
1466
+ lockfile_missing: "lockfile_missing";
1467
+ processed: "processed";
1468
+ received: "received";
1290
1469
  }>;
1291
1470
  matchedCount: z.ZodNumber;
1292
1471
  runId: z.ZodNullable<z.ZodString>;
@@ -1334,12 +1513,12 @@ export declare const dashboardEventLogListRequestSchema: z.ZodObject<{
1334
1513
  routingKey: z.ZodOptional<z.ZodString>;
1335
1514
  event: z.ZodOptional<z.ZodString>;
1336
1515
  status: z.ZodOptional<z.ZodEnum<{
1337
- failed: "failed";
1338
- received: "received";
1339
- processed: "processed";
1340
1516
  duplicate: "duplicate";
1341
- lockfile_missing: "lockfile_missing";
1517
+ failed: "failed";
1342
1518
  lockfile_corrupt: "lockfile_corrupt";
1519
+ lockfile_missing: "lockfile_missing";
1520
+ processed: "processed";
1521
+ received: "received";
1343
1522
  }>>;
1344
1523
  fromTimestamp: z.ZodOptional<z.ZodString>;
1345
1524
  toTimestamp: z.ZodOptional<z.ZodString>;
@@ -1357,19 +1536,19 @@ declare const dashboardEventLogListResponseSchema: z.ZodObject<{
1357
1536
  event: z.ZodString;
1358
1537
  action: z.ZodNullable<z.ZodString>;
1359
1538
  source: z.ZodEnum<{
1360
- relay: "relay";
1361
1539
  direct: "direct";
1540
+ relay: "relay";
1362
1541
  }>;
1363
1542
  provider: z.ZodString;
1364
1543
  repoIdentifier: z.ZodNullable<z.ZodString>;
1365
1544
  ref: z.ZodNullable<z.ZodString>;
1366
1545
  status: z.ZodEnum<{
1367
- failed: "failed";
1368
- received: "received";
1369
- processed: "processed";
1370
1546
  duplicate: "duplicate";
1371
- lockfile_missing: "lockfile_missing";
1547
+ failed: "failed";
1372
1548
  lockfile_corrupt: "lockfile_corrupt";
1549
+ lockfile_missing: "lockfile_missing";
1550
+ processed: "processed";
1551
+ received: "received";
1373
1552
  }>;
1374
1553
  matchedCount: z.ZodNumber;
1375
1554
  runId: z.ZodNullable<z.ZodString>;
@@ -1435,19 +1614,19 @@ declare const dashboardEventLogDetailResponseSchema: z.ZodObject<{
1435
1614
  event: z.ZodString;
1436
1615
  action: z.ZodNullable<z.ZodString>;
1437
1616
  source: z.ZodEnum<{
1438
- relay: "relay";
1439
1617
  direct: "direct";
1618
+ relay: "relay";
1440
1619
  }>;
1441
1620
  provider: z.ZodString;
1442
1621
  repoIdentifier: z.ZodNullable<z.ZodString>;
1443
1622
  ref: z.ZodNullable<z.ZodString>;
1444
1623
  status: z.ZodEnum<{
1445
- failed: "failed";
1446
- received: "received";
1447
- processed: "processed";
1448
1624
  duplicate: "duplicate";
1449
- lockfile_missing: "lockfile_missing";
1625
+ failed: "failed";
1450
1626
  lockfile_corrupt: "lockfile_corrupt";
1627
+ lockfile_missing: "lockfile_missing";
1628
+ processed: "processed";
1629
+ received: "received";
1451
1630
  }>;
1452
1631
  matchedCount: z.ZodNumber;
1453
1632
  runId: z.ZodNullable<z.ZodString>;
@@ -1463,6 +1642,66 @@ declare const dashboardEventLogDetailResponseSchema: z.ZodObject<{
1463
1642
  }, z.core.$strip>>;
1464
1643
  error: z.ZodOptional<z.ZodString>;
1465
1644
  }, z.core.$strip>;
1645
+ /** Aggregate webhook-activity counts for a time window (org-scoped).
1646
+ * Powers the Runs-page misconfig strip + the `kici runs` hint. No payloads,
1647
+ * no repo identifiers — safe for all org members. */
1648
+ export declare const dashboardEventLogActivityRequestSchema: z.ZodObject<{
1649
+ type: z.ZodLiteral<"dashboard.event-log.activity">;
1650
+ requestId: z.ZodString;
1651
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1652
+ type: z.ZodLiteral<"user">;
1653
+ sub: z.ZodString;
1654
+ agent: z.ZodOptional<z.ZodObject<{
1655
+ patId: z.ZodString;
1656
+ label: z.ZodString;
1657
+ }, z.core.$strip>>;
1658
+ }, z.core.$strip>, z.ZodObject<{
1659
+ type: z.ZodLiteral<"api_key">;
1660
+ keyId: z.ZodString;
1661
+ ownerSub: z.ZodString;
1662
+ agent: z.ZodOptional<z.ZodObject<{
1663
+ label: z.ZodString;
1664
+ }, z.core.$strip>>;
1665
+ }, z.core.$strip>, z.ZodObject<{
1666
+ type: z.ZodLiteral<"service_account">;
1667
+ id: z.ZodString;
1668
+ }, z.core.$strip>, z.ZodObject<{
1669
+ type: z.ZodLiteral<"platform_operator">;
1670
+ sub: z.ZodString;
1671
+ reason: z.ZodString;
1672
+ sessionId: z.ZodOptional<z.ZodString>;
1673
+ }, z.core.$strip>, z.ZodObject<{
1674
+ type: z.ZodLiteral<"system">;
1675
+ component: z.ZodString;
1676
+ }, z.core.$strip>], "type">;
1677
+ orgId: z.ZodString;
1678
+ fromTimestamp: z.ZodString;
1679
+ toTimestamp: z.ZodString;
1680
+ }, z.core.$strip>;
1681
+ /** Orchestrator-only bucketed counts over the window. `matched`/`unmatched`
1682
+ * distinguish a trigger-no-match delivery from one that produced a run — a
1683
+ * fact the Platform relay cannot compute (see the two-table architecture). */
1684
+ export declare const eventLogActivityCountsSchema: z.ZodObject<{
1685
+ total: z.ZodNumber;
1686
+ matched: z.ZodNumber;
1687
+ unmatched: z.ZodNumber;
1688
+ lockfileMissing: z.ZodNumber;
1689
+ lockfileCorrupt: z.ZodNumber;
1690
+ failed: z.ZodNumber;
1691
+ }, z.core.$strip>;
1692
+ export declare const dashboardEventLogActivityResponseSchema: z.ZodObject<{
1693
+ type: z.ZodLiteral<"dashboard.event-log.activity.response">;
1694
+ requestId: z.ZodString;
1695
+ counts: z.ZodOptional<z.ZodObject<{
1696
+ total: z.ZodNumber;
1697
+ matched: z.ZodNumber;
1698
+ unmatched: z.ZodNumber;
1699
+ lockfileMissing: z.ZodNumber;
1700
+ lockfileCorrupt: z.ZodNumber;
1701
+ failed: z.ZodNumber;
1702
+ }, z.core.$strip>>;
1703
+ error: z.ZodOptional<z.ZodString>;
1704
+ }, z.core.$strip>;
1466
1705
  /**
1467
1706
  * Reasons a chunked event-log payload stream may terminate without a body.
1468
1707
  * The terminal chunk carries `isLast=true` plus one of these codes in
@@ -1483,12 +1722,12 @@ declare const dashboardEventLogDetailResponseSchema: z.ZodObject<{
1483
1722
  * connection for the request (synthesized on Platform side).
1484
1723
  */
1485
1724
  export declare const EventLogPayloadStreamError: z.ZodEnum<{
1486
- payload_unavailable: "payload_unavailable";
1487
- not_found: "not_found";
1488
- read_failed: "read_failed";
1489
1725
  forbidden: "forbidden";
1726
+ not_found: "not_found";
1490
1727
  orch_stream_timeout: "orch_stream_timeout";
1491
1728
  orchestrator_unavailable: "orchestrator_unavailable";
1729
+ payload_unavailable: "payload_unavailable";
1730
+ read_failed: "read_failed";
1492
1731
  }>;
1493
1732
  export type EventLogPayloadStreamError = z.infer<typeof EventLogPayloadStreamError>;
1494
1733
  /** Platform → orchestrator: begin streaming the body for a delivery. */
@@ -1546,12 +1785,12 @@ export declare const dashboardEventLogPayloadChunkSchema: z.ZodObject<{
1546
1785
  data: z.ZodString;
1547
1786
  isLast: z.ZodBoolean;
1548
1787
  error: z.ZodOptional<z.ZodEnum<{
1549
- payload_unavailable: "payload_unavailable";
1550
- not_found: "not_found";
1551
- read_failed: "read_failed";
1552
1788
  forbidden: "forbidden";
1789
+ not_found: "not_found";
1553
1790
  orch_stream_timeout: "orch_stream_timeout";
1554
1791
  orchestrator_unavailable: "orchestrator_unavailable";
1792
+ payload_unavailable: "payload_unavailable";
1793
+ read_failed: "read_failed";
1555
1794
  }>>;
1556
1795
  totalBytes: z.ZodOptional<z.ZodNumber>;
1557
1796
  }, z.core.$strip>;
@@ -1568,12 +1807,12 @@ export declare const browserEventLogPayloadChunkSchema: z.ZodObject<{
1568
1807
  data: z.ZodString;
1569
1808
  isLast: z.ZodBoolean;
1570
1809
  error: z.ZodOptional<z.ZodEnum<{
1571
- payload_unavailable: "payload_unavailable";
1572
- not_found: "not_found";
1573
- read_failed: "read_failed";
1574
1810
  forbidden: "forbidden";
1811
+ not_found: "not_found";
1575
1812
  orch_stream_timeout: "orch_stream_timeout";
1576
1813
  orchestrator_unavailable: "orchestrator_unavailable";
1814
+ payload_unavailable: "payload_unavailable";
1815
+ read_failed: "read_failed";
1577
1816
  }>>;
1578
1817
  totalBytes: z.ZodOptional<z.ZodNumber>;
1579
1818
  }, z.core.$strip>;
@@ -1764,9 +2003,9 @@ declare const dashboardEventDlqDiscardResponseSchema: z.ZodObject<{
1764
2003
  discarded: z.ZodOptional<z.ZodBoolean>;
1765
2004
  error: z.ZodOptional<z.ZodString>;
1766
2005
  }, z.core.$strip>;
1767
- /** List all environments for the org. */
1768
- export declare const envListRequestSchema: z.ZodObject<{
1769
- type: z.ZodLiteral<"dashboard.environments.list">;
2006
+ /** List all contexts for the org. */
2007
+ export declare const contextListRequestSchema: z.ZodObject<{
2008
+ type: z.ZodLiteral<"dashboard.contexts.list">;
1770
2009
  requestId: z.ZodString;
1771
2010
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1772
2011
  type: z.ZodLiteral<"user">;
@@ -1797,10 +2036,10 @@ export declare const envListRequestSchema: z.ZodObject<{
1797
2036
  includeSecrets: z.ZodOptional<z.ZodBoolean>;
1798
2037
  orgId: z.ZodOptional<z.ZodString>;
1799
2038
  }, z.core.$strip>;
1800
- declare const envListResponseSchema: z.ZodObject<{
1801
- type: z.ZodLiteral<"dashboard.environments.list.response">;
2039
+ declare const contextListResponseSchema: z.ZodObject<{
2040
+ type: z.ZodLiteral<"dashboard.contexts.list.response">;
1802
2041
  requestId: z.ZodString;
1803
- environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2042
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1804
2043
  id: z.ZodString;
1805
2044
  name: z.ZodString;
1806
2045
  type: z.ZodEnum<{
@@ -1816,9 +2055,9 @@ declare const envListResponseSchema: z.ZodObject<{
1816
2055
  }, z.core.$strip>>>;
1817
2056
  error: z.ZodOptional<z.ZodString>;
1818
2057
  }, z.core.$strip>;
1819
- /** Get a single environment by ID. */
1820
- export declare const envGetRequestSchema: z.ZodObject<{
1821
- type: z.ZodLiteral<"dashboard.environments.get">;
2058
+ /** Get a single context by ID. */
2059
+ export declare const contextGetRequestSchema: z.ZodObject<{
2060
+ type: z.ZodLiteral<"dashboard.contexts.get">;
1822
2061
  requestId: z.ZodString;
1823
2062
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1824
2063
  type: z.ZodLiteral<"user">;
@@ -1846,12 +2085,12 @@ export declare const envGetRequestSchema: z.ZodObject<{
1846
2085
  type: z.ZodLiteral<"system">;
1847
2086
  component: z.ZodString;
1848
2087
  }, z.core.$strip>], "type">;
1849
- environmentId: z.ZodString;
2088
+ contextId: z.ZodString;
1850
2089
  }, z.core.$strip>;
1851
- declare const envGetResponseSchema: z.ZodObject<{
1852
- type: z.ZodLiteral<"dashboard.environments.get.response">;
2090
+ declare const contextGetResponseSchema: z.ZodObject<{
2091
+ type: z.ZodLiteral<"dashboard.contexts.get.response">;
1853
2092
  requestId: z.ZodString;
1854
- environment: z.ZodOptional<z.ZodObject<{
2093
+ context: z.ZodOptional<z.ZodObject<{
1855
2094
  id: z.ZodString;
1856
2095
  name: z.ZodString;
1857
2096
  type: z.ZodEnum<{
@@ -1862,8 +2101,8 @@ declare const envGetResponseSchema: z.ZodObject<{
1862
2101
  branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
1863
2102
  concurrencyLimit: z.ZodNullable<z.ZodNumber>;
1864
2103
  concurrencyStrategy: z.ZodNullable<z.ZodEnum<{
1865
- queue: "queue";
1866
2104
  "cancel-pending": "cancel-pending";
2105
+ queue: "queue";
1867
2106
  }>>;
1868
2107
  requiredReviewers: z.ZodNullable<z.ZodNumber>;
1869
2108
  waitTimerSeconds: z.ZodNullable<z.ZodNumber>;
@@ -1875,9 +2114,9 @@ declare const envGetResponseSchema: z.ZodObject<{
1875
2114
  }, z.core.$strip>>;
1876
2115
  error: z.ZodOptional<z.ZodString>;
1877
2116
  }, z.core.$strip>;
1878
- /** Create a new environment. */
1879
- export declare const envCreateRequestSchema: z.ZodObject<{
1880
- type: z.ZodLiteral<"dashboard.environments.create">;
2117
+ /** Create a new context. */
2118
+ export declare const contextCreateRequestSchema: z.ZodObject<{
2119
+ type: z.ZodLiteral<"dashboard.contexts.create">;
1881
2120
  requestId: z.ZodString;
1882
2121
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1883
2122
  type: z.ZodLiteral<"user">;
@@ -1906,7 +2145,7 @@ export declare const envCreateRequestSchema: z.ZodObject<{
1906
2145
  component: z.ZodString;
1907
2146
  }, z.core.$strip>], "type">;
1908
2147
  name: z.ZodString;
1909
- envType: z.ZodEnum<{
2148
+ contextType: z.ZodEnum<{
1910
2149
  fixed: "fixed";
1911
2150
  glob: "glob";
1912
2151
  }>;
@@ -1914,17 +2153,17 @@ export declare const envCreateRequestSchema: z.ZodObject<{
1914
2153
  branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1915
2154
  concurrencyLimit: z.ZodOptional<z.ZodNumber>;
1916
2155
  concurrencyStrategy: z.ZodOptional<z.ZodEnum<{
1917
- queue: "queue";
1918
2156
  "cancel-pending": "cancel-pending";
2157
+ queue: "queue";
1919
2158
  }>>;
1920
2159
  requiredReviewers: z.ZodOptional<z.ZodNumber>;
1921
2160
  waitTimerSeconds: z.ZodOptional<z.ZodNumber>;
1922
2161
  holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
1923
2162
  enabled: z.ZodOptional<z.ZodBoolean>;
1924
2163
  }, z.core.$strip>;
1925
- /** Update an existing environment. */
1926
- export declare const envUpdateRequestSchema: z.ZodObject<{
1927
- type: z.ZodLiteral<"dashboard.environments.update">;
2164
+ /** Update an existing context. */
2165
+ export declare const contextUpdateRequestSchema: z.ZodObject<{
2166
+ type: z.ZodLiteral<"dashboard.contexts.update">;
1928
2167
  requestId: z.ZodString;
1929
2168
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1930
2169
  type: z.ZodLiteral<"user">;
@@ -1952,10 +2191,10 @@ export declare const envUpdateRequestSchema: z.ZodObject<{
1952
2191
  type: z.ZodLiteral<"system">;
1953
2192
  component: z.ZodString;
1954
2193
  }, z.core.$strip>], "type">;
1955
- environmentId: z.ZodString;
2194
+ contextId: z.ZodString;
1956
2195
  updates: z.ZodObject<{
1957
2196
  name: z.ZodOptional<z.ZodString>;
1958
- envType: z.ZodOptional<z.ZodEnum<{
2197
+ contextType: z.ZodOptional<z.ZodEnum<{
1959
2198
  fixed: "fixed";
1960
2199
  glob: "glob";
1961
2200
  }>>;
@@ -1963,8 +2202,8 @@ export declare const envUpdateRequestSchema: z.ZodObject<{
1963
2202
  branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1964
2203
  concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1965
2204
  concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1966
- queue: "queue";
1967
2205
  "cancel-pending": "cancel-pending";
2206
+ queue: "queue";
1968
2207
  }>>>;
1969
2208
  requiredReviewers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1970
2209
  waitTimerSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1972,9 +2211,9 @@ export declare const envUpdateRequestSchema: z.ZodObject<{
1972
2211
  enabled: z.ZodOptional<z.ZodBoolean>;
1973
2212
  }, z.core.$strip>;
1974
2213
  }, z.core.$strip>;
1975
- /** Set an environment's test-run access flag (allowLocalExecution). */
1976
- export declare const envTestAccessSetRequestSchema: z.ZodObject<{
1977
- type: z.ZodLiteral<"dashboard.environments.test_access.set">;
2214
+ /** Set an context's test-run access flag (allowLocalExecution). */
2215
+ export declare const contextTestAccessSetRequestSchema: z.ZodObject<{
2216
+ type: z.ZodLiteral<"dashboard.contexts.test_access.set">;
1978
2217
  requestId: z.ZodString;
1979
2218
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1980
2219
  type: z.ZodLiteral<"user">;
@@ -2002,12 +2241,12 @@ export declare const envTestAccessSetRequestSchema: z.ZodObject<{
2002
2241
  type: z.ZodLiteral<"system">;
2003
2242
  component: z.ZodString;
2004
2243
  }, z.core.$strip>], "type">;
2005
- environmentId: z.ZodString;
2244
+ contextId: z.ZodString;
2006
2245
  allowLocalExecution: z.ZodBoolean;
2007
2246
  }, z.core.$strip>;
2008
- /** Delete an environment. */
2009
- export declare const envDeleteRequestSchema: z.ZodObject<{
2010
- type: z.ZodLiteral<"dashboard.environments.delete">;
2247
+ /** Delete an context. */
2248
+ export declare const contextDeleteRequestSchema: z.ZodObject<{
2249
+ type: z.ZodLiteral<"dashboard.contexts.delete">;
2011
2250
  requestId: z.ZodString;
2012
2251
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2013
2252
  type: z.ZodLiteral<"user">;
@@ -2035,25 +2274,25 @@ export declare const envDeleteRequestSchema: z.ZodObject<{
2035
2274
  type: z.ZodLiteral<"system">;
2036
2275
  component: z.ZodString;
2037
2276
  }, z.core.$strip>], "type">;
2038
- environmentId: z.ZodString;
2277
+ contextId: z.ZodString;
2039
2278
  }, z.core.$strip>;
2040
2279
  /**
2041
- * Machine-readable codes for environment-delete rejections.
2280
+ * Machine-readable codes for context-delete rejections.
2042
2281
  *
2043
2282
  * Three-category response taxonomy on dashboard responses, each mapped to a
2044
2283
  * distinct HTTP status by the Platform proxy: a bare free-text `error` is the
2045
- * human message and maps to 400; a missing result (e.g. environment not found)
2284
+ * human message and maps to 400; a missing result (e.g. context not found)
2046
2285
  * maps to 404; an `errorCode` flags a specific business rejection mapped to a
2047
2286
  * non-400/404 status — here `pending_held_runs` → 409. The sibling precedent is
2048
2287
  * the rerun response's `errorCode` (`runArchivedNotRerunnable` → 410) above.
2049
2288
  */
2050
- export declare const EnvDeleteErrorCode: z.ZodEnum<{
2289
+ export declare const ContextDeleteErrorCode: z.ZodEnum<{
2051
2290
  pending_held_runs: "pending_held_runs";
2052
2291
  }>;
2053
- export type EnvDeleteErrorCode = z.infer<typeof EnvDeleteErrorCode>;
2054
- /** List variables for an environment. */
2055
- export declare const envVarsListRequestSchema: z.ZodObject<{
2056
- type: z.ZodLiteral<"dashboard.environments.variables.list">;
2292
+ export type ContextDeleteErrorCode = z.infer<typeof ContextDeleteErrorCode>;
2293
+ /** List variables for an context. */
2294
+ export declare const contextVarsListRequestSchema: z.ZodObject<{
2295
+ type: z.ZodLiteral<"dashboard.contexts.variables.list">;
2057
2296
  requestId: z.ZodString;
2058
2297
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2059
2298
  type: z.ZodLiteral<"user">;
@@ -2081,10 +2320,10 @@ export declare const envVarsListRequestSchema: z.ZodObject<{
2081
2320
  type: z.ZodLiteral<"system">;
2082
2321
  component: z.ZodString;
2083
2322
  }, z.core.$strip>], "type">;
2084
- environmentId: z.ZodString;
2323
+ contextId: z.ZodString;
2085
2324
  }, z.core.$strip>;
2086
- declare const envVarsListResponseSchema: z.ZodObject<{
2087
- type: z.ZodLiteral<"dashboard.environments.variables.list.response">;
2325
+ declare const contextVarsListResponseSchema: z.ZodObject<{
2326
+ type: z.ZodLiteral<"dashboard.contexts.variables.list.response">;
2088
2327
  requestId: z.ZodString;
2089
2328
  variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
2090
2329
  key: z.ZodString;
@@ -2093,9 +2332,17 @@ declare const envVarsListResponseSchema: z.ZodObject<{
2093
2332
  }, z.core.$strip>>>;
2094
2333
  error: z.ZodOptional<z.ZodString>;
2095
2334
  }, z.core.$strip>;
2096
- /** Set (create or update) a variable on an environment. */
2097
- export declare const envVarSetRequestSchema: z.ZodObject<{
2098
- type: z.ZodLiteral<"dashboard.environments.variables.set">;
2335
+ /**
2336
+ * Set (create or update) a variable on an context.
2337
+ *
2338
+ * Under the `permissive` posture the browser sends the plaintext `value`.
2339
+ * Under the `encrypted` posture it sends a `sealed` envelope instead (the value
2340
+ * sealed to the orchestrator's X25519 key in the browser). Exactly one of
2341
+ * `value` / `sealed` is present; `value` stays optional for backward
2342
+ * compatibility with older dashboards that only ever send plaintext.
2343
+ */
2344
+ export declare const contextVarSetRequestSchema: z.ZodObject<{
2345
+ type: z.ZodLiteral<"dashboard.contexts.variables.set">;
2099
2346
  requestId: z.ZodString;
2100
2347
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2101
2348
  type: z.ZodLiteral<"user">;
@@ -2123,14 +2370,19 @@ export declare const envVarSetRequestSchema: z.ZodObject<{
2123
2370
  type: z.ZodLiteral<"system">;
2124
2371
  component: z.ZodString;
2125
2372
  }, z.core.$strip>], "type">;
2126
- environmentId: z.ZodString;
2373
+ contextId: z.ZodString;
2127
2374
  key: z.ZodString;
2128
- value: z.ZodString;
2375
+ value: z.ZodOptional<z.ZodString>;
2376
+ sealed: z.ZodOptional<z.ZodObject<{
2377
+ keyId: z.ZodString;
2378
+ ephemeralPublicKey: z.ZodString;
2379
+ encrypted: z.ZodString;
2380
+ }, z.core.$strip>>;
2129
2381
  locked: z.ZodOptional<z.ZodBoolean>;
2130
2382
  }, z.core.$strip>;
2131
- /** Delete a variable from an environment. */
2132
- export declare const envVarDeleteRequestSchema: z.ZodObject<{
2133
- type: z.ZodLiteral<"dashboard.environments.variables.delete">;
2383
+ /** Delete a variable from an context. */
2384
+ export declare const contextVarDeleteRequestSchema: z.ZodObject<{
2385
+ type: z.ZodLiteral<"dashboard.contexts.variables.delete">;
2134
2386
  requestId: z.ZodString;
2135
2387
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2136
2388
  type: z.ZodLiteral<"user">;
@@ -2158,12 +2410,12 @@ export declare const envVarDeleteRequestSchema: z.ZodObject<{
2158
2410
  type: z.ZodLiteral<"system">;
2159
2411
  component: z.ZodString;
2160
2412
  }, z.core.$strip>], "type">;
2161
- environmentId: z.ZodString;
2413
+ contextId: z.ZodString;
2162
2414
  key: z.ZodString;
2163
2415
  }, z.core.$strip>;
2164
- /** List source overrides for an environment + routing key. */
2165
- export declare const envSourceOverridesListRequestSchema: z.ZodObject<{
2166
- type: z.ZodLiteral<"dashboard.environments.source-overrides.list">;
2416
+ /** List source overrides for an context + routing key. */
2417
+ export declare const contextSourceOverridesListRequestSchema: z.ZodObject<{
2418
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.list">;
2167
2419
  requestId: z.ZodString;
2168
2420
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2169
2421
  type: z.ZodLiteral<"user">;
@@ -2191,12 +2443,12 @@ export declare const envSourceOverridesListRequestSchema: z.ZodObject<{
2191
2443
  type: z.ZodLiteral<"system">;
2192
2444
  component: z.ZodString;
2193
2445
  }, z.core.$strip>], "type">;
2194
- environmentId: z.ZodString;
2446
+ contextId: z.ZodString;
2195
2447
  routingKey: z.ZodString;
2196
2448
  }, z.core.$strip>;
2197
2449
  /** Set a source override variable. */
2198
- export declare const envSourceOverrideSetRequestSchema: z.ZodObject<{
2199
- type: z.ZodLiteral<"dashboard.environments.source-overrides.set">;
2450
+ export declare const contextSourceOverrideSetRequestSchema: z.ZodObject<{
2451
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.set">;
2200
2452
  requestId: z.ZodString;
2201
2453
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2202
2454
  type: z.ZodLiteral<"user">;
@@ -2224,14 +2476,14 @@ export declare const envSourceOverrideSetRequestSchema: z.ZodObject<{
2224
2476
  type: z.ZodLiteral<"system">;
2225
2477
  component: z.ZodString;
2226
2478
  }, z.core.$strip>], "type">;
2227
- environmentId: z.ZodString;
2479
+ contextId: z.ZodString;
2228
2480
  routingKey: z.ZodString;
2229
2481
  key: z.ZodString;
2230
2482
  value: z.ZodString;
2231
2483
  }, z.core.$strip>;
2232
2484
  /** Delete a source override variable. */
2233
- export declare const envSourceOverrideDeleteRequestSchema: z.ZodObject<{
2234
- type: z.ZodLiteral<"dashboard.environments.source-overrides.delete">;
2485
+ export declare const contextSourceOverrideDeleteRequestSchema: z.ZodObject<{
2486
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.delete">;
2235
2487
  requestId: z.ZodString;
2236
2488
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2237
2489
  type: z.ZodLiteral<"user">;
@@ -2259,23 +2511,23 @@ export declare const envSourceOverrideDeleteRequestSchema: z.ZodObject<{
2259
2511
  type: z.ZodLiteral<"system">;
2260
2512
  component: z.ZodString;
2261
2513
  }, z.core.$strip>], "type">;
2262
- environmentId: z.ZodString;
2514
+ contextId: z.ZodString;
2263
2515
  routingKey: z.ZodString;
2264
2516
  key: z.ZodString;
2265
2517
  }, z.core.$strip>;
2266
2518
  /**
2267
- * A scope→environment binding with its host selector. `hostPattern` is the host
2519
+ * A scope→context binding with its host selector. `hostPattern` is the host
2268
2520
  * the binding applies to (`'**'` = all hosts); exact / glob / regex over a
2269
2521
  * fan-out child's agentId / hostname / labels.
2270
2522
  */
2271
- export declare const envBindingEntrySchema: z.ZodObject<{
2523
+ export declare const contextBindingEntrySchema: z.ZodObject<{
2272
2524
  scopePattern: z.ZodString;
2273
2525
  hostPattern: z.ZodString;
2274
2526
  }, z.core.$strip>;
2275
- export type EnvBindingEntry = z.infer<typeof envBindingEntrySchema>;
2276
- /** List bindings for an environment. */
2277
- export declare const envBindingsListRequestSchema: z.ZodObject<{
2278
- type: z.ZodLiteral<"dashboard.environments.bindings.list">;
2527
+ export type ContextBindingEntry = z.infer<typeof contextBindingEntrySchema>;
2528
+ /** List bindings for an context. */
2529
+ export declare const contextBindingsListRequestSchema: z.ZodObject<{
2530
+ type: z.ZodLiteral<"dashboard.contexts.bindings.list">;
2279
2531
  requestId: z.ZodString;
2280
2532
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2281
2533
  type: z.ZodLiteral<"user">;
@@ -2303,11 +2555,11 @@ export declare const envBindingsListRequestSchema: z.ZodObject<{
2303
2555
  type: z.ZodLiteral<"system">;
2304
2556
  component: z.ZodString;
2305
2557
  }, z.core.$strip>], "type">;
2306
- environmentId: z.ZodString;
2558
+ contextId: z.ZodString;
2307
2559
  }, z.core.$strip>;
2308
- /** Set bindings (scope + host patterns) for an environment. */
2309
- export declare const envBindingsSetRequestSchema: z.ZodObject<{
2310
- type: z.ZodLiteral<"dashboard.environments.bindings.set">;
2560
+ /** Set bindings (scope + host patterns) for an context. */
2561
+ export declare const contextBindingsSetRequestSchema: z.ZodObject<{
2562
+ type: z.ZodLiteral<"dashboard.contexts.bindings.set">;
2311
2563
  requestId: z.ZodString;
2312
2564
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2313
2565
  type: z.ZodLiteral<"user">;
@@ -2335,15 +2587,15 @@ export declare const envBindingsSetRequestSchema: z.ZodObject<{
2335
2587
  type: z.ZodLiteral<"system">;
2336
2588
  component: z.ZodString;
2337
2589
  }, z.core.$strip>], "type">;
2338
- environmentId: z.ZodString;
2590
+ contextId: z.ZodString;
2339
2591
  bindings: z.ZodArray<z.ZodObject<{
2340
2592
  scopePattern: z.ZodString;
2341
2593
  hostPattern: z.ZodString;
2342
2594
  }, z.core.$strip>>;
2343
2595
  }, z.core.$strip>;
2344
2596
  /** List all scoped secrets for the org. */
2345
- export declare const envSecretsListRequestSchema: z.ZodObject<{
2346
- type: z.ZodLiteral<"dashboard.environments.secrets.list">;
2597
+ export declare const contextSecretsListRequestSchema: z.ZodObject<{
2598
+ type: z.ZodLiteral<"dashboard.contexts.secrets.list">;
2347
2599
  requestId: z.ZodString;
2348
2600
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2349
2601
  type: z.ZodLiteral<"user">;
@@ -2372,9 +2624,17 @@ export declare const envSecretsListRequestSchema: z.ZodObject<{
2372
2624
  component: z.ZodString;
2373
2625
  }, z.core.$strip>], "type">;
2374
2626
  }, z.core.$strip>;
2375
- /** Set (create or update) a scoped secret. */
2376
- export declare const envSecretSetRequestSchema: z.ZodObject<{
2377
- type: z.ZodLiteral<"dashboard.environments.secrets.set">;
2627
+ /**
2628
+ * Set (create or update) a scoped secret.
2629
+ *
2630
+ * Under the `permissive` posture the browser sends the plaintext `value`.
2631
+ * Under the `encrypted` posture it sends a `sealed` envelope instead (the value
2632
+ * sealed to the orchestrator's X25519 key in the browser). Exactly one of
2633
+ * `value` / `sealed` is present; `value` stays optional for backward
2634
+ * compatibility with older dashboards that only ever send plaintext.
2635
+ */
2636
+ export declare const contextSecretSetRequestSchema: z.ZodObject<{
2637
+ type: z.ZodLiteral<"dashboard.contexts.secrets.set">;
2378
2638
  requestId: z.ZodString;
2379
2639
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2380
2640
  type: z.ZodLiteral<"user">;
@@ -2404,11 +2664,16 @@ export declare const envSecretSetRequestSchema: z.ZodObject<{
2404
2664
  }, z.core.$strip>], "type">;
2405
2665
  scope: z.ZodString;
2406
2666
  key: z.ZodString;
2407
- value: z.ZodString;
2667
+ value: z.ZodOptional<z.ZodString>;
2668
+ sealed: z.ZodOptional<z.ZodObject<{
2669
+ keyId: z.ZodString;
2670
+ ephemeralPublicKey: z.ZodString;
2671
+ encrypted: z.ZodString;
2672
+ }, z.core.$strip>>;
2408
2673
  }, z.core.$strip>;
2409
2674
  /** Delete a scoped secret. */
2410
- export declare const envSecretDeleteRequestSchema: z.ZodObject<{
2411
- type: z.ZodLiteral<"dashboard.environments.secrets.delete">;
2675
+ export declare const contextSecretDeleteRequestSchema: z.ZodObject<{
2676
+ type: z.ZodLiteral<"dashboard.contexts.secrets.delete">;
2412
2677
  requestId: z.ZodString;
2413
2678
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2414
2679
  type: z.ZodLiteral<"user">;
@@ -2440,8 +2705,8 @@ export declare const envSecretDeleteRequestSchema: z.ZodObject<{
2440
2705
  key: z.ZodString;
2441
2706
  }, z.core.$strip>;
2442
2707
  /** Create an empty scope. */
2443
- export declare const envSecretScopeCreateRequestSchema: z.ZodObject<{
2444
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.create">;
2708
+ export declare const contextSecretScopeCreateRequestSchema: z.ZodObject<{
2709
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.create">;
2445
2710
  requestId: z.ZodString;
2446
2711
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2447
2712
  type: z.ZodLiteral<"user">;
@@ -2471,9 +2736,9 @@ export declare const envSecretScopeCreateRequestSchema: z.ZodObject<{
2471
2736
  }, z.core.$strip>], "type">;
2472
2737
  scope: z.ZodString;
2473
2738
  }, z.core.$strip>;
2474
- /** Rename a scope -- also updates all environment bindings referencing old scope. */
2475
- export declare const envSecretScopeRenameRequestSchema: z.ZodObject<{
2476
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename">;
2739
+ /** Rename a scope -- also updates all context bindings referencing old scope. */
2740
+ export declare const contextSecretScopeRenameRequestSchema: z.ZodObject<{
2741
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.rename">;
2477
2742
  requestId: z.ZodString;
2478
2743
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2479
2744
  type: z.ZodLiteral<"user">;
@@ -2504,9 +2769,9 @@ export declare const envSecretScopeRenameRequestSchema: z.ZodObject<{
2504
2769
  oldScope: z.ZodString;
2505
2770
  newScope: z.ZodString;
2506
2771
  }, z.core.$strip>;
2507
- /** Delete a scope and all its secrets. Also removes environment bindings referencing this scope. */
2508
- export declare const envSecretScopeDeleteRequestSchema: z.ZodObject<{
2509
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete">;
2772
+ /** Delete a scope and all its secrets. Also removes context bindings referencing this scope. */
2773
+ export declare const contextSecretScopeDeleteRequestSchema: z.ZodObject<{
2774
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.delete">;
2510
2775
  requestId: z.ZodString;
2511
2776
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2512
2777
  type: z.ZodLiteral<"user">;
@@ -2536,9 +2801,9 @@ export declare const envSecretScopeDeleteRequestSchema: z.ZodObject<{
2536
2801
  }, z.core.$strip>], "type">;
2537
2802
  scope: z.ZodString;
2538
2803
  }, z.core.$strip>;
2539
- /** Fetch runs that targeted a specific environment, keyed by environment id. */
2540
- export declare const envHistoryRequestSchema: z.ZodObject<{
2541
- type: z.ZodLiteral<"dashboard.environments.history">;
2804
+ /** Fetch runs that targeted a specific context, keyed by context id. */
2805
+ export declare const contextHistoryRequestSchema: z.ZodObject<{
2806
+ type: z.ZodLiteral<"dashboard.contexts.history">;
2542
2807
  requestId: z.ZodString;
2543
2808
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2544
2809
  type: z.ZodLiteral<"user">;
@@ -2566,21 +2831,43 @@ export declare const envHistoryRequestSchema: z.ZodObject<{
2566
2831
  type: z.ZodLiteral<"system">;
2567
2832
  component: z.ZodString;
2568
2833
  }, z.core.$strip>], "type">;
2569
- environmentId: z.ZodString;
2834
+ contextId: z.ZodString;
2570
2835
  limit: z.ZodOptional<z.ZodNumber>;
2571
2836
  offset: z.ZodOptional<z.ZodNumber>;
2572
2837
  }, z.core.$strip>;
2573
- /** Status values for held runs (approval queue). */
2574
- export declare const HeldRunStatus: z.ZodEnum<{
2575
- pending: "pending";
2576
- approved: "approved";
2577
- rejected: "rejected";
2578
- expired: "expired";
2579
- }>;
2580
- export type HeldRunStatus = z.infer<typeof HeldRunStatus>;
2838
+ export declare const contextHistoryResponseSchema: z.ZodObject<{
2839
+ type: z.ZodLiteral<"dashboard.contexts.history.response">;
2840
+ requestId: z.ZodString;
2841
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2842
+ id: z.ZodString;
2843
+ runId: z.ZodString;
2844
+ workflowName: z.ZodString;
2845
+ status: z.ZodString;
2846
+ branch: z.ZodNullable<z.ZodString>;
2847
+ commitSha: z.ZodNullable<z.ZodString>;
2848
+ startedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
2849
+ completedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
2850
+ context: z.ZodNullable<z.ZodString>;
2851
+ }, z.core.$strip>>>;
2852
+ hasMore: z.ZodOptional<z.ZodBoolean>;
2853
+ error: z.ZodOptional<z.ZodString>;
2854
+ }, z.core.$strip>;
2855
+ /**
2856
+ * Known held-run statuses — the vocabulary the dashboard renders a labelled
2857
+ * badge and a queue tab for, and the vocabulary a client may filter the list
2858
+ * by. Defined in `context/held-run-status.ts` and re-exported here so the
2859
+ * domain types and the wire schema cannot carry divergent copies; a parity test
2860
+ * in the orchestrator asserts these options match every status it persists.
2861
+ *
2862
+ * This is deliberately NOT the wire type of the response field:
2863
+ * `held_runs.status` is a plain-text column owned by a customer-deployed
2864
+ * orchestrator, so the response carries `z.string()` (see
2865
+ * `heldRunsListResponseSchema`) and this enum is what the UI switches on.
2866
+ */
2867
+ export { HeldRunStatus } from '../../context/held-run-status.js';
2581
2868
  /** Queue type for held runs. */
2582
2869
  export declare const HeldRunQueueType: z.ZodEnum<{
2583
- environment: "environment";
2870
+ context: "context";
2584
2871
  security: "security";
2585
2872
  }>;
2586
2873
  export type HeldRunQueueType = z.infer<typeof HeldRunQueueType>;
@@ -2615,16 +2902,18 @@ export declare const heldRunsListRequestSchema: z.ZodObject<{
2615
2902
  component: z.ZodString;
2616
2903
  }, z.core.$strip>], "type">;
2617
2904
  status: z.ZodOptional<z.ZodEnum<{
2618
- pending: "pending";
2619
2905
  approved: "approved";
2620
- rejected: "rejected";
2621
2906
  expired: "expired";
2907
+ pending: "pending";
2908
+ rejected: "rejected";
2909
+ released: "released";
2622
2910
  }>>;
2623
2911
  queueType: z.ZodOptional<z.ZodEnum<{
2624
- environment: "environment";
2912
+ context: "context";
2625
2913
  security: "security";
2626
2914
  }>>;
2627
2915
  runId: z.ZodOptional<z.ZodString>;
2916
+ heldRunId: z.ZodOptional<z.ZodString>;
2628
2917
  orgId: z.ZodOptional<z.ZodString>;
2629
2918
  }, z.core.$strip>;
2630
2919
  declare const heldRunsListResponseSchema: z.ZodObject<{
@@ -2633,19 +2922,11 @@ declare const heldRunsListResponseSchema: z.ZodObject<{
2633
2922
  heldRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
2634
2923
  id: z.ZodString;
2635
2924
  runId: z.ZodString;
2636
- environmentId: z.ZodNullable<z.ZodString>;
2637
- environmentName: z.ZodNullable<z.ZodString>;
2925
+ contextId: z.ZodNullable<z.ZodString>;
2926
+ contextName: z.ZodNullable<z.ZodString>;
2638
2927
  holdType: z.ZodString;
2639
- queueType: z.ZodEnum<{
2640
- environment: "environment";
2641
- security: "security";
2642
- }>;
2643
- status: z.ZodEnum<{
2644
- pending: "pending";
2645
- approved: "approved";
2646
- rejected: "rejected";
2647
- expired: "expired";
2648
- }>;
2928
+ queueType: z.ZodString;
2929
+ status: z.ZodString;
2649
2930
  requestedAt: z.ZodCoercedString<unknown>;
2650
2931
  resolvedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
2651
2932
  resolvedBy: z.ZodNullable<z.ZodString>;
@@ -2655,9 +2936,9 @@ declare const heldRunsListResponseSchema: z.ZodObject<{
2655
2936
  trustTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2656
2937
  jobId: z.ZodOptional<z.ZodString>;
2657
2938
  holdScope: z.ZodOptional<z.ZodEnum<{
2658
- workflow: "workflow";
2659
2939
  job: "job";
2660
2940
  step: "step";
2941
+ workflow: "workflow";
2661
2942
  }>>;
2662
2943
  stepIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2663
2944
  requirement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -2798,9 +3079,9 @@ export declare const fleetPinnedRunSchema: z.ZodObject<{
2798
3079
  export type FleetPinnedRun = z.infer<typeof fleetPinnedRunSchema>;
2799
3080
  /** How a runsOnAll fan-out would treat one host, given its current reachability. */
2800
3081
  export declare const FleetHostDisposition: z.ZodEnum<{
3082
+ "skipped-ephemeral": "skipped-ephemeral";
2801
3083
  target: "target";
2802
3084
  "unreachable-durable": "unreachable-durable";
2803
- "skipped-ephemeral": "skipped-ephemeral";
2804
3085
  }>;
2805
3086
  export type FleetHostDisposition = z.infer<typeof FleetHostDisposition>;
2806
3087
  /** A host matched by a runsOnAll preview, plus how the fan-out would treat it. */
@@ -2813,20 +3094,20 @@ export declare const fleetPreviewHostSchema: z.ZodObject<{
2813
3094
  platform: z.ZodNullable<z.ZodString>;
2814
3095
  arch: z.ZodNullable<z.ZodString>;
2815
3096
  lifecycleClass: z.ZodEnum<{
2816
- static: "static";
2817
3097
  ephemeral: "ephemeral";
3098
+ static: "static";
2818
3099
  }>;
2819
3100
  status: z.ZodEnum<{
2820
3101
  ready: "ready";
2821
- unreachable: "unreachable";
2822
3102
  stale: "stale";
3103
+ unreachable: "unreachable";
2823
3104
  }>;
2824
3105
  lastSeen: z.ZodString;
2825
3106
  }, z.core.$strip>;
2826
3107
  disposition: z.ZodEnum<{
3108
+ "skipped-ephemeral": "skipped-ephemeral";
2827
3109
  target: "target";
2828
3110
  "unreachable-durable": "unreachable-durable";
2829
- "skipped-ephemeral": "skipped-ephemeral";
2830
3111
  }>;
2831
3112
  }, z.core.$strip>;
2832
3113
  export type FleetPreviewHost = z.infer<typeof fleetPreviewHostSchema>;
@@ -2933,13 +3214,13 @@ export declare const dashboardFleetHostsResponseSchema: z.ZodObject<{
2933
3214
  platform: z.ZodNullable<z.ZodString>;
2934
3215
  arch: z.ZodNullable<z.ZodString>;
2935
3216
  lifecycleClass: z.ZodEnum<{
2936
- static: "static";
2937
3217
  ephemeral: "ephemeral";
3218
+ static: "static";
2938
3219
  }>;
2939
3220
  status: z.ZodEnum<{
2940
3221
  ready: "ready";
2941
- unreachable: "unreachable";
2942
3222
  stale: "stale";
3223
+ unreachable: "unreachable";
2943
3224
  }>;
2944
3225
  lastSeen: z.ZodString;
2945
3226
  }, z.core.$strip>>;
@@ -2955,13 +3236,13 @@ export declare const dashboardFleetHostResponseSchema: z.ZodObject<{
2955
3236
  platform: z.ZodNullable<z.ZodString>;
2956
3237
  arch: z.ZodNullable<z.ZodString>;
2957
3238
  lifecycleClass: z.ZodEnum<{
2958
- static: "static";
2959
3239
  ephemeral: "ephemeral";
3240
+ static: "static";
2960
3241
  }>;
2961
3242
  status: z.ZodEnum<{
2962
3243
  ready: "ready";
2963
- unreachable: "unreachable";
2964
3244
  stale: "stale";
3245
+ unreachable: "unreachable";
2965
3246
  }>;
2966
3247
  lastSeen: z.ZodString;
2967
3248
  }, z.core.$strip>>;
@@ -2984,26 +3265,26 @@ export declare const dashboardFleetPreviewResponseSchema: z.ZodObject<{
2984
3265
  platform: z.ZodNullable<z.ZodString>;
2985
3266
  arch: z.ZodNullable<z.ZodString>;
2986
3267
  lifecycleClass: z.ZodEnum<{
2987
- static: "static";
2988
3268
  ephemeral: "ephemeral";
3269
+ static: "static";
2989
3270
  }>;
2990
3271
  status: z.ZodEnum<{
2991
3272
  ready: "ready";
2992
- unreachable: "unreachable";
2993
3273
  stale: "stale";
3274
+ unreachable: "unreachable";
2994
3275
  }>;
2995
3276
  lastSeen: z.ZodString;
2996
3277
  }, z.core.$strip>;
2997
3278
  disposition: z.ZodEnum<{
3279
+ "skipped-ephemeral": "skipped-ephemeral";
2998
3280
  target: "target";
2999
3281
  "unreachable-durable": "unreachable-durable";
3000
- "skipped-ephemeral": "skipped-ephemeral";
3001
3282
  }>;
3002
3283
  }, z.core.$strip>>;
3003
3284
  onUnreachable: z.ZodEnum<{
3285
+ fail: "fail";
3004
3286
  hold: "hold";
3005
3287
  skip: "skip";
3006
- fail: "fail";
3007
3288
  }>;
3008
3289
  estimatedChildCount: z.ZodNumber;
3009
3290
  }, z.core.$strip>;
@@ -3051,14 +3332,14 @@ export declare const fleetHostWorkflowSchema: z.ZodObject<{
3051
3332
  repoIdentifier: z.ZodString;
3052
3333
  sourceFile: z.ZodNullable<z.ZodString>;
3053
3334
  onUnreachable: z.ZodEnum<{
3335
+ fail: "fail";
3054
3336
  hold: "hold";
3055
3337
  skip: "skip";
3056
- fail: "fail";
3057
3338
  }>;
3058
3339
  disposition: z.ZodEnum<{
3340
+ "skipped-ephemeral": "skipped-ephemeral";
3059
3341
  target: "target";
3060
3342
  "unreachable-durable": "unreachable-durable";
3061
- "skipped-ephemeral": "skipped-ephemeral";
3062
3343
  }>;
3063
3344
  }, z.core.$strip>;
3064
3345
  export type FleetHostWorkflow = z.infer<typeof fleetHostWorkflowSchema>;
@@ -3070,14 +3351,14 @@ export declare const dashboardFleetWorkflowsForHostResponseSchema: z.ZodObject<{
3070
3351
  repoIdentifier: z.ZodString;
3071
3352
  sourceFile: z.ZodNullable<z.ZodString>;
3072
3353
  onUnreachable: z.ZodEnum<{
3354
+ fail: "fail";
3073
3355
  hold: "hold";
3074
3356
  skip: "skip";
3075
- fail: "fail";
3076
3357
  }>;
3077
3358
  disposition: z.ZodEnum<{
3359
+ "skipped-ephemeral": "skipped-ephemeral";
3078
3360
  target: "target";
3079
3361
  "unreachable-durable": "unreachable-durable";
3080
- "skipped-ephemeral": "skipped-ephemeral";
3081
3362
  }>;
3082
3363
  }, z.core.$strip>>;
3083
3364
  }, z.core.$strip>;
@@ -3208,8 +3489,8 @@ declare const diagnosticsPeerSchema: z.ZodObject<{
3208
3489
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
3209
3490
  name: z.ZodString;
3210
3491
  status: z.ZodEnum<{
3211
- pass: "pass";
3212
3492
  fail: "fail";
3493
+ pass: "pass";
3213
3494
  warn: "warn";
3214
3495
  }>;
3215
3496
  message: z.ZodNullable<z.ZodString>;
@@ -3247,8 +3528,8 @@ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
3247
3528
  runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3248
3529
  runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3249
3530
  raftRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3250
- follower: "follower";
3251
3531
  candidate: "candidate";
3532
+ follower: "follower";
3252
3533
  leader: "leader";
3253
3534
  }>>>;
3254
3535
  raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3282,8 +3563,8 @@ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
3282
3563
  scalers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3283
3564
  name: z.ZodString;
3284
3565
  type: z.ZodEnum<{
3285
- container: "container";
3286
3566
  "bare-metal": "bare-metal";
3567
+ container: "container";
3287
3568
  firecracker: "firecracker";
3288
3569
  kubernetes: "kubernetes";
3289
3570
  }>;
@@ -3333,8 +3614,8 @@ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
3333
3614
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
3334
3615
  name: z.ZodString;
3335
3616
  status: z.ZodEnum<{
3336
- pass: "pass";
3337
3617
  fail: "fail";
3618
+ pass: "pass";
3338
3619
  warn: "warn";
3339
3620
  }>;
3340
3621
  message: z.ZodNullable<z.ZodString>;
@@ -3570,10 +3851,10 @@ export declare const registrationItemSchema: z.ZodObject<{
3570
3851
  routingKey: z.ZodString;
3571
3852
  name: z.ZodNullable<z.ZodString>;
3572
3853
  subtype: z.ZodNullable<z.ZodEnum<{
3573
- github_app: "github_app";
3574
3854
  generic_webhook: "generic_webhook";
3575
- universal_git: "universal_git";
3855
+ github_app: "github_app";
3576
3856
  local: "local";
3857
+ universal_git: "universal_git";
3577
3858
  }>>;
3578
3859
  provider: z.ZodString;
3579
3860
  }, z.core.$strip>>>;
@@ -3600,10 +3881,10 @@ export declare const registrationsListResponseSchema: z.ZodObject<{
3600
3881
  routingKey: z.ZodString;
3601
3882
  name: z.ZodNullable<z.ZodString>;
3602
3883
  subtype: z.ZodNullable<z.ZodEnum<{
3603
- github_app: "github_app";
3604
3884
  generic_webhook: "generic_webhook";
3605
- universal_git: "universal_git";
3885
+ github_app: "github_app";
3606
3886
  local: "local";
3887
+ universal_git: "universal_git";
3607
3888
  }>>;
3608
3889
  provider: z.ZodString;
3609
3890
  }, z.core.$strip>>>;
@@ -3655,10 +3936,10 @@ export declare const backendItemSchema: z.ZodObject<{
3655
3936
  syncIntervalMs: z.ZodNumber;
3656
3937
  enabled: z.ZodBoolean;
3657
3938
  healthStatus: z.ZodEnum<{
3939
+ degraded: "degraded";
3940
+ healthy: "healthy";
3658
3941
  unknown: "unknown";
3659
3942
  unreachable: "unreachable";
3660
- healthy: "healthy";
3661
- degraded: "degraded";
3662
3943
  }>;
3663
3944
  scopeCount: z.ZodNumber;
3664
3945
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -3682,10 +3963,10 @@ export declare const backendsListResponseSchema: z.ZodObject<{
3682
3963
  syncIntervalMs: z.ZodNumber;
3683
3964
  enabled: z.ZodBoolean;
3684
3965
  healthStatus: z.ZodEnum<{
3966
+ degraded: "degraded";
3967
+ healthy: "healthy";
3685
3968
  unknown: "unknown";
3686
3969
  unreachable: "unreachable";
3687
- healthy: "healthy";
3688
- degraded: "degraded";
3689
3970
  }>;
3690
3971
  scopeCount: z.ZodNumber;
3691
3972
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -3743,10 +4024,10 @@ export declare const backendGetResponseSchema: z.ZodObject<{
3743
4024
  syncIntervalMs: z.ZodNumber;
3744
4025
  enabled: z.ZodBoolean;
3745
4026
  healthStatus: z.ZodEnum<{
4027
+ degraded: "degraded";
4028
+ healthy: "healthy";
3746
4029
  unknown: "unknown";
3747
4030
  unreachable: "unreachable";
3748
- healthy: "healthy";
3749
- degraded: "degraded";
3750
4031
  }>;
3751
4032
  scopeCount: z.ZodNumber;
3752
4033
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -3877,11 +4158,11 @@ export declare const backendTestResponseSchema: z.ZodObject<{
3877
4158
  }, z.core.$strip>;
3878
4159
  /** Enum of the five test-relay control message types (request side). */
3879
4160
  export declare const TestRelayType: z.ZodEnum<{
3880
- "test.relay.uploads.init": "test.relay.uploads.init";
3881
- "test.relay.trigger": "test.relay.trigger";
3882
- "test.relay.run.status": "test.relay.run.status";
3883
- "test.relay.run.logs": "test.relay.run.logs";
3884
4161
  "test.relay.cancel": "test.relay.cancel";
4162
+ "test.relay.run.logs": "test.relay.run.logs";
4163
+ "test.relay.run.status": "test.relay.run.status";
4164
+ "test.relay.trigger": "test.relay.trigger";
4165
+ "test.relay.uploads.init": "test.relay.uploads.init";
3885
4166
  }>;
3886
4167
  export type TestRelayType = z.infer<typeof TestRelayType>;
3887
4168
  /** Request an external presigned upload URL for the overlay tarball. */
@@ -4014,8 +4295,8 @@ export declare const testRelayTriggerResponseSchema: z.ZodObject<{
4014
4295
  requestId: z.ZodString;
4015
4296
  runId: z.ZodOptional<z.ZodString>;
4016
4297
  status: z.ZodOptional<z.ZodEnum<{
4017
- rejected: "rejected";
4018
4298
  accepted: "accepted";
4299
+ rejected: "rejected";
4019
4300
  }>>;
4020
4301
  reason: z.ZodOptional<z.ZodString>;
4021
4302
  jobIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -4222,6 +4503,36 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4222
4503
  component: z.ZodString;
4223
4504
  }, z.core.$strip>], "type">;
4224
4505
  runId: z.ZodString;
4506
+ }, z.core.$strip>, z.ZodObject<{
4507
+ type: z.ZodLiteral<"dashboard.run.state">;
4508
+ requestId: z.ZodString;
4509
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4510
+ type: z.ZodLiteral<"user">;
4511
+ sub: z.ZodString;
4512
+ agent: z.ZodOptional<z.ZodObject<{
4513
+ patId: z.ZodString;
4514
+ label: z.ZodString;
4515
+ }, z.core.$strip>>;
4516
+ }, z.core.$strip>, z.ZodObject<{
4517
+ type: z.ZodLiteral<"api_key">;
4518
+ keyId: z.ZodString;
4519
+ ownerSub: z.ZodString;
4520
+ agent: z.ZodOptional<z.ZodObject<{
4521
+ label: z.ZodString;
4522
+ }, z.core.$strip>>;
4523
+ }, z.core.$strip>, z.ZodObject<{
4524
+ type: z.ZodLiteral<"service_account">;
4525
+ id: z.ZodString;
4526
+ }, z.core.$strip>, z.ZodObject<{
4527
+ type: z.ZodLiteral<"platform_operator">;
4528
+ sub: z.ZodString;
4529
+ reason: z.ZodString;
4530
+ sessionId: z.ZodOptional<z.ZodString>;
4531
+ }, z.core.$strip>, z.ZodObject<{
4532
+ type: z.ZodLiteral<"system">;
4533
+ component: z.ZodString;
4534
+ }, z.core.$strip>], "type">;
4535
+ runId: z.ZodString;
4225
4536
  }, z.core.$strip>, z.ZodObject<{
4226
4537
  type: z.ZodLiteral<"dashboard.step.logs">;
4227
4538
  requestId: z.ZodString;
@@ -4321,10 +4632,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4321
4632
  digest: z.ZodOptional<z.ZodString>;
4322
4633
  name: z.ZodOptional<z.ZodString>;
4323
4634
  status: z.ZodOptional<z.ZodEnum<{
4324
- pending: "pending";
4325
4635
  failed: "failed";
4326
- verified: "verified";
4636
+ pending: "pending";
4327
4637
  unverifiable: "unverifiable";
4638
+ verified: "verified";
4328
4639
  }>>;
4329
4640
  repository: z.ZodOptional<z.ZodString>;
4330
4641
  workflow: z.ZodOptional<z.ZodString>;
@@ -4392,6 +4703,36 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4392
4703
  component: z.ZodString;
4393
4704
  }, z.core.$strip>], "type">;
4394
4705
  runId: z.ZodOptional<z.ZodString>;
4706
+ }, z.core.$strip>, z.ZodObject<{
4707
+ type: z.ZodLiteral<"dashboard.artifacts.list">;
4708
+ requestId: z.ZodString;
4709
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4710
+ type: z.ZodLiteral<"user">;
4711
+ sub: z.ZodString;
4712
+ agent: z.ZodOptional<z.ZodObject<{
4713
+ patId: z.ZodString;
4714
+ label: z.ZodString;
4715
+ }, z.core.$strip>>;
4716
+ }, z.core.$strip>, z.ZodObject<{
4717
+ type: z.ZodLiteral<"api_key">;
4718
+ keyId: z.ZodString;
4719
+ ownerSub: z.ZodString;
4720
+ agent: z.ZodOptional<z.ZodObject<{
4721
+ label: z.ZodString;
4722
+ }, z.core.$strip>>;
4723
+ }, z.core.$strip>, z.ZodObject<{
4724
+ type: z.ZodLiteral<"service_account">;
4725
+ id: z.ZodString;
4726
+ }, z.core.$strip>, z.ZodObject<{
4727
+ type: z.ZodLiteral<"platform_operator">;
4728
+ sub: z.ZodString;
4729
+ reason: z.ZodString;
4730
+ sessionId: z.ZodOptional<z.ZodString>;
4731
+ }, z.core.$strip>, z.ZodObject<{
4732
+ type: z.ZodLiteral<"system">;
4733
+ component: z.ZodString;
4734
+ }, z.core.$strip>], "type">;
4735
+ runId: z.ZodString;
4395
4736
  }, z.core.$strip>, z.ZodObject<{
4396
4737
  type: z.ZodLiteral<"dashboard.runs.list">;
4397
4738
  requestId: z.ZodString;
@@ -4638,7 +4979,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4638
4979
  runId: z.ZodString;
4639
4980
  jobId: z.ZodString;
4640
4981
  }, z.core.$strip>, z.ZodObject<{
4641
- type: z.ZodLiteral<"dashboard.environments.list">;
4982
+ type: z.ZodLiteral<"dashboard.contexts.list">;
4642
4983
  requestId: z.ZodString;
4643
4984
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4644
4985
  type: z.ZodLiteral<"user">;
@@ -4669,7 +5010,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4669
5010
  includeSecrets: z.ZodOptional<z.ZodBoolean>;
4670
5011
  orgId: z.ZodOptional<z.ZodString>;
4671
5012
  }, z.core.$strip>, z.ZodObject<{
4672
- type: z.ZodLiteral<"dashboard.environments.get">;
5013
+ type: z.ZodLiteral<"dashboard.contexts.get">;
4673
5014
  requestId: z.ZodString;
4674
5015
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4675
5016
  type: z.ZodLiteral<"user">;
@@ -4697,9 +5038,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4697
5038
  type: z.ZodLiteral<"system">;
4698
5039
  component: z.ZodString;
4699
5040
  }, z.core.$strip>], "type">;
4700
- environmentId: z.ZodString;
5041
+ contextId: z.ZodString;
4701
5042
  }, z.core.$strip>, z.ZodObject<{
4702
- type: z.ZodLiteral<"dashboard.environments.create">;
5043
+ type: z.ZodLiteral<"dashboard.contexts.create">;
4703
5044
  requestId: z.ZodString;
4704
5045
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4705
5046
  type: z.ZodLiteral<"user">;
@@ -4728,7 +5069,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4728
5069
  component: z.ZodString;
4729
5070
  }, z.core.$strip>], "type">;
4730
5071
  name: z.ZodString;
4731
- envType: z.ZodEnum<{
5072
+ contextType: z.ZodEnum<{
4732
5073
  fixed: "fixed";
4733
5074
  glob: "glob";
4734
5075
  }>;
@@ -4736,15 +5077,15 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4736
5077
  branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4737
5078
  concurrencyLimit: z.ZodOptional<z.ZodNumber>;
4738
5079
  concurrencyStrategy: z.ZodOptional<z.ZodEnum<{
4739
- queue: "queue";
4740
5080
  "cancel-pending": "cancel-pending";
5081
+ queue: "queue";
4741
5082
  }>>;
4742
5083
  requiredReviewers: z.ZodOptional<z.ZodNumber>;
4743
5084
  waitTimerSeconds: z.ZodOptional<z.ZodNumber>;
4744
5085
  holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
4745
5086
  enabled: z.ZodOptional<z.ZodBoolean>;
4746
5087
  }, z.core.$strip>, z.ZodObject<{
4747
- type: z.ZodLiteral<"dashboard.environments.update">;
5088
+ type: z.ZodLiteral<"dashboard.contexts.update">;
4748
5089
  requestId: z.ZodString;
4749
5090
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4750
5091
  type: z.ZodLiteral<"user">;
@@ -4772,10 +5113,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4772
5113
  type: z.ZodLiteral<"system">;
4773
5114
  component: z.ZodString;
4774
5115
  }, z.core.$strip>], "type">;
4775
- environmentId: z.ZodString;
5116
+ contextId: z.ZodString;
4776
5117
  updates: z.ZodObject<{
4777
5118
  name: z.ZodOptional<z.ZodString>;
4778
- envType: z.ZodOptional<z.ZodEnum<{
5119
+ contextType: z.ZodOptional<z.ZodEnum<{
4779
5120
  fixed: "fixed";
4780
5121
  glob: "glob";
4781
5122
  }>>;
@@ -4783,8 +5124,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4783
5124
  branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4784
5125
  concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4785
5126
  concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4786
- queue: "queue";
4787
5127
  "cancel-pending": "cancel-pending";
5128
+ queue: "queue";
4788
5129
  }>>>;
4789
5130
  requiredReviewers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4790
5131
  waitTimerSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -4792,7 +5133,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4792
5133
  enabled: z.ZodOptional<z.ZodBoolean>;
4793
5134
  }, z.core.$strip>;
4794
5135
  }, z.core.$strip>, z.ZodObject<{
4795
- type: z.ZodLiteral<"dashboard.environments.test_access.set">;
5136
+ type: z.ZodLiteral<"dashboard.contexts.test_access.set">;
4796
5137
  requestId: z.ZodString;
4797
5138
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4798
5139
  type: z.ZodLiteral<"user">;
@@ -4820,10 +5161,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4820
5161
  type: z.ZodLiteral<"system">;
4821
5162
  component: z.ZodString;
4822
5163
  }, z.core.$strip>], "type">;
4823
- environmentId: z.ZodString;
5164
+ contextId: z.ZodString;
4824
5165
  allowLocalExecution: z.ZodBoolean;
4825
5166
  }, z.core.$strip>, z.ZodObject<{
4826
- type: z.ZodLiteral<"dashboard.environments.delete">;
5167
+ type: z.ZodLiteral<"dashboard.contexts.delete">;
4827
5168
  requestId: z.ZodString;
4828
5169
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4829
5170
  type: z.ZodLiteral<"user">;
@@ -4851,9 +5192,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4851
5192
  type: z.ZodLiteral<"system">;
4852
5193
  component: z.ZodString;
4853
5194
  }, z.core.$strip>], "type">;
4854
- environmentId: z.ZodString;
5195
+ contextId: z.ZodString;
4855
5196
  }, z.core.$strip>, z.ZodObject<{
4856
- type: z.ZodLiteral<"dashboard.environments.variables.list">;
5197
+ type: z.ZodLiteral<"dashboard.contexts.variables.list">;
4857
5198
  requestId: z.ZodString;
4858
5199
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4859
5200
  type: z.ZodLiteral<"user">;
@@ -4881,9 +5222,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4881
5222
  type: z.ZodLiteral<"system">;
4882
5223
  component: z.ZodString;
4883
5224
  }, z.core.$strip>], "type">;
4884
- environmentId: z.ZodString;
5225
+ contextId: z.ZodString;
4885
5226
  }, z.core.$strip>, z.ZodObject<{
4886
- type: z.ZodLiteral<"dashboard.environments.variables.set">;
5227
+ type: z.ZodLiteral<"dashboard.contexts.variables.set">;
4887
5228
  requestId: z.ZodString;
4888
5229
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4889
5230
  type: z.ZodLiteral<"user">;
@@ -4911,12 +5252,17 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4911
5252
  type: z.ZodLiteral<"system">;
4912
5253
  component: z.ZodString;
4913
5254
  }, z.core.$strip>], "type">;
4914
- environmentId: z.ZodString;
5255
+ contextId: z.ZodString;
4915
5256
  key: z.ZodString;
4916
- value: z.ZodString;
5257
+ value: z.ZodOptional<z.ZodString>;
5258
+ sealed: z.ZodOptional<z.ZodObject<{
5259
+ keyId: z.ZodString;
5260
+ ephemeralPublicKey: z.ZodString;
5261
+ encrypted: z.ZodString;
5262
+ }, z.core.$strip>>;
4917
5263
  locked: z.ZodOptional<z.ZodBoolean>;
4918
5264
  }, z.core.$strip>, z.ZodObject<{
4919
- type: z.ZodLiteral<"dashboard.environments.variables.delete">;
5265
+ type: z.ZodLiteral<"dashboard.contexts.variables.delete">;
4920
5266
  requestId: z.ZodString;
4921
5267
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4922
5268
  type: z.ZodLiteral<"user">;
@@ -4944,10 +5290,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4944
5290
  type: z.ZodLiteral<"system">;
4945
5291
  component: z.ZodString;
4946
5292
  }, z.core.$strip>], "type">;
4947
- environmentId: z.ZodString;
5293
+ contextId: z.ZodString;
4948
5294
  key: z.ZodString;
4949
5295
  }, z.core.$strip>, z.ZodObject<{
4950
- type: z.ZodLiteral<"dashboard.environments.source-overrides.list">;
5296
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.list">;
4951
5297
  requestId: z.ZodString;
4952
5298
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4953
5299
  type: z.ZodLiteral<"user">;
@@ -4975,10 +5321,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4975
5321
  type: z.ZodLiteral<"system">;
4976
5322
  component: z.ZodString;
4977
5323
  }, z.core.$strip>], "type">;
4978
- environmentId: z.ZodString;
5324
+ contextId: z.ZodString;
4979
5325
  routingKey: z.ZodString;
4980
5326
  }, z.core.$strip>, z.ZodObject<{
4981
- type: z.ZodLiteral<"dashboard.environments.source-overrides.set">;
5327
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.set">;
4982
5328
  requestId: z.ZodString;
4983
5329
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4984
5330
  type: z.ZodLiteral<"user">;
@@ -5006,12 +5352,12 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5006
5352
  type: z.ZodLiteral<"system">;
5007
5353
  component: z.ZodString;
5008
5354
  }, z.core.$strip>], "type">;
5009
- environmentId: z.ZodString;
5355
+ contextId: z.ZodString;
5010
5356
  routingKey: z.ZodString;
5011
5357
  key: z.ZodString;
5012
5358
  value: z.ZodString;
5013
5359
  }, z.core.$strip>, z.ZodObject<{
5014
- type: z.ZodLiteral<"dashboard.environments.source-overrides.delete">;
5360
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.delete">;
5015
5361
  requestId: z.ZodString;
5016
5362
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5017
5363
  type: z.ZodLiteral<"user">;
@@ -5039,11 +5385,11 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5039
5385
  type: z.ZodLiteral<"system">;
5040
5386
  component: z.ZodString;
5041
5387
  }, z.core.$strip>], "type">;
5042
- environmentId: z.ZodString;
5388
+ contextId: z.ZodString;
5043
5389
  routingKey: z.ZodString;
5044
5390
  key: z.ZodString;
5045
5391
  }, z.core.$strip>, z.ZodObject<{
5046
- type: z.ZodLiteral<"dashboard.environments.bindings.list">;
5392
+ type: z.ZodLiteral<"dashboard.contexts.bindings.list">;
5047
5393
  requestId: z.ZodString;
5048
5394
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5049
5395
  type: z.ZodLiteral<"user">;
@@ -5071,9 +5417,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5071
5417
  type: z.ZodLiteral<"system">;
5072
5418
  component: z.ZodString;
5073
5419
  }, z.core.$strip>], "type">;
5074
- environmentId: z.ZodString;
5420
+ contextId: z.ZodString;
5075
5421
  }, z.core.$strip>, z.ZodObject<{
5076
- type: z.ZodLiteral<"dashboard.environments.bindings.set">;
5422
+ type: z.ZodLiteral<"dashboard.contexts.bindings.set">;
5077
5423
  requestId: z.ZodString;
5078
5424
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5079
5425
  type: z.ZodLiteral<"user">;
@@ -5101,13 +5447,13 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5101
5447
  type: z.ZodLiteral<"system">;
5102
5448
  component: z.ZodString;
5103
5449
  }, z.core.$strip>], "type">;
5104
- environmentId: z.ZodString;
5450
+ contextId: z.ZodString;
5105
5451
  bindings: z.ZodArray<z.ZodObject<{
5106
5452
  scopePattern: z.ZodString;
5107
5453
  hostPattern: z.ZodString;
5108
5454
  }, z.core.$strip>>;
5109
5455
  }, z.core.$strip>, z.ZodObject<{
5110
- type: z.ZodLiteral<"dashboard.environments.secrets.list">;
5456
+ type: z.ZodLiteral<"dashboard.contexts.secrets.list">;
5111
5457
  requestId: z.ZodString;
5112
5458
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5113
5459
  type: z.ZodLiteral<"user">;
@@ -5136,7 +5482,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5136
5482
  component: z.ZodString;
5137
5483
  }, z.core.$strip>], "type">;
5138
5484
  }, z.core.$strip>, z.ZodObject<{
5139
- type: z.ZodLiteral<"dashboard.environments.secrets.set">;
5485
+ type: z.ZodLiteral<"dashboard.contexts.secrets.set">;
5140
5486
  requestId: z.ZodString;
5141
5487
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5142
5488
  type: z.ZodLiteral<"user">;
@@ -5166,9 +5512,14 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5166
5512
  }, z.core.$strip>], "type">;
5167
5513
  scope: z.ZodString;
5168
5514
  key: z.ZodString;
5169
- value: z.ZodString;
5515
+ value: z.ZodOptional<z.ZodString>;
5516
+ sealed: z.ZodOptional<z.ZodObject<{
5517
+ keyId: z.ZodString;
5518
+ ephemeralPublicKey: z.ZodString;
5519
+ encrypted: z.ZodString;
5520
+ }, z.core.$strip>>;
5170
5521
  }, z.core.$strip>, z.ZodObject<{
5171
- type: z.ZodLiteral<"dashboard.environments.secrets.delete">;
5522
+ type: z.ZodLiteral<"dashboard.contexts.secrets.delete">;
5172
5523
  requestId: z.ZodString;
5173
5524
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5174
5525
  type: z.ZodLiteral<"user">;
@@ -5199,7 +5550,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5199
5550
  scope: z.ZodString;
5200
5551
  key: z.ZodString;
5201
5552
  }, z.core.$strip>, z.ZodObject<{
5202
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.create">;
5553
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.create">;
5203
5554
  requestId: z.ZodString;
5204
5555
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5205
5556
  type: z.ZodLiteral<"user">;
@@ -5229,7 +5580,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5229
5580
  }, z.core.$strip>], "type">;
5230
5581
  scope: z.ZodString;
5231
5582
  }, z.core.$strip>, z.ZodObject<{
5232
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename">;
5583
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.rename">;
5233
5584
  requestId: z.ZodString;
5234
5585
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5235
5586
  type: z.ZodLiteral<"user">;
@@ -5260,7 +5611,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5260
5611
  oldScope: z.ZodString;
5261
5612
  newScope: z.ZodString;
5262
5613
  }, z.core.$strip>, z.ZodObject<{
5263
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete">;
5614
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.delete">;
5264
5615
  requestId: z.ZodString;
5265
5616
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5266
5617
  type: z.ZodLiteral<"user">;
@@ -5290,7 +5641,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5290
5641
  }, z.core.$strip>], "type">;
5291
5642
  scope: z.ZodString;
5292
5643
  }, z.core.$strip>, z.ZodObject<{
5293
- type: z.ZodLiteral<"dashboard.environments.history">;
5644
+ type: z.ZodLiteral<"dashboard.contexts.history">;
5294
5645
  requestId: z.ZodString;
5295
5646
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5296
5647
  type: z.ZodLiteral<"user">;
@@ -5318,7 +5669,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5318
5669
  type: z.ZodLiteral<"system">;
5319
5670
  component: z.ZodString;
5320
5671
  }, z.core.$strip>], "type">;
5321
- environmentId: z.ZodString;
5672
+ contextId: z.ZodString;
5322
5673
  limit: z.ZodOptional<z.ZodNumber>;
5323
5674
  offset: z.ZodOptional<z.ZodNumber>;
5324
5675
  }, z.core.$strip>, z.ZodObject<{
@@ -5351,16 +5702,18 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5351
5702
  component: z.ZodString;
5352
5703
  }, z.core.$strip>], "type">;
5353
5704
  status: z.ZodOptional<z.ZodEnum<{
5354
- pending: "pending";
5355
5705
  approved: "approved";
5356
- rejected: "rejected";
5357
5706
  expired: "expired";
5707
+ pending: "pending";
5708
+ rejected: "rejected";
5709
+ released: "released";
5358
5710
  }>>;
5359
5711
  queueType: z.ZodOptional<z.ZodEnum<{
5360
- environment: "environment";
5712
+ context: "context";
5361
5713
  security: "security";
5362
5714
  }>>;
5363
5715
  runId: z.ZodOptional<z.ZodString>;
5716
+ heldRunId: z.ZodOptional<z.ZodString>;
5364
5717
  orgId: z.ZodOptional<z.ZodString>;
5365
5718
  }, z.core.$strip>, z.ZodObject<{
5366
5719
  type: z.ZodLiteral<"dashboard.held-runs.approve">;
@@ -5971,18 +6324,50 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5971
6324
  routingKey: z.ZodOptional<z.ZodString>;
5972
6325
  event: z.ZodOptional<z.ZodString>;
5973
6326
  status: z.ZodOptional<z.ZodEnum<{
5974
- failed: "failed";
5975
- received: "received";
5976
- processed: "processed";
5977
6327
  duplicate: "duplicate";
5978
- lockfile_missing: "lockfile_missing";
6328
+ failed: "failed";
5979
6329
  lockfile_corrupt: "lockfile_corrupt";
6330
+ lockfile_missing: "lockfile_missing";
6331
+ processed: "processed";
6332
+ received: "received";
5980
6333
  }>>;
5981
6334
  fromTimestamp: z.ZodOptional<z.ZodString>;
5982
6335
  toTimestamp: z.ZodOptional<z.ZodString>;
5983
6336
  deliveryId: z.ZodOptional<z.ZodString>;
5984
6337
  limit: z.ZodOptional<z.ZodNumber>;
5985
6338
  cursor: z.ZodOptional<z.ZodString>;
6339
+ }, z.core.$strip>, z.ZodObject<{
6340
+ type: z.ZodLiteral<"dashboard.event-log.activity">;
6341
+ requestId: z.ZodString;
6342
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
6343
+ type: z.ZodLiteral<"user">;
6344
+ sub: z.ZodString;
6345
+ agent: z.ZodOptional<z.ZodObject<{
6346
+ patId: z.ZodString;
6347
+ label: z.ZodString;
6348
+ }, z.core.$strip>>;
6349
+ }, z.core.$strip>, z.ZodObject<{
6350
+ type: z.ZodLiteral<"api_key">;
6351
+ keyId: z.ZodString;
6352
+ ownerSub: z.ZodString;
6353
+ agent: z.ZodOptional<z.ZodObject<{
6354
+ label: z.ZodString;
6355
+ }, z.core.$strip>>;
6356
+ }, z.core.$strip>, z.ZodObject<{
6357
+ type: z.ZodLiteral<"service_account">;
6358
+ id: z.ZodString;
6359
+ }, z.core.$strip>, z.ZodObject<{
6360
+ type: z.ZodLiteral<"platform_operator">;
6361
+ sub: z.ZodString;
6362
+ reason: z.ZodString;
6363
+ sessionId: z.ZodOptional<z.ZodString>;
6364
+ }, z.core.$strip>, z.ZodObject<{
6365
+ type: z.ZodLiteral<"system">;
6366
+ component: z.ZodString;
6367
+ }, z.core.$strip>], "type">;
6368
+ orgId: z.ZodString;
6369
+ fromTimestamp: z.ZodString;
6370
+ toTimestamp: z.ZodString;
5986
6371
  }, z.core.$strip>, z.ZodObject<{
5987
6372
  type: z.ZodLiteral<"dashboard.event-log.detail">;
5988
6373
  requestId: z.ZodString;
@@ -6273,116 +6658,126 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
6273
6658
  }, z.core.$strip>], "type">;
6274
6659
  orgId: z.ZodString;
6275
6660
  actorType: z.ZodOptional<z.ZodEnum<{
6276
- user: "user";
6277
6661
  api_key: "api_key";
6278
- service_account: "service_account";
6279
6662
  platform_operator: "platform_operator";
6663
+ service_account: "service_account";
6280
6664
  system: "system";
6665
+ user: "user";
6281
6666
  }>>;
6282
6667
  actorId: z.ZodOptional<z.ZodString>;
6283
6668
  action: z.ZodOptional<z.ZodEnum<{
6284
- "event_dlq.retry": "event_dlq.retry";
6285
- "event_dlq.discard": "event_dlq.discard";
6286
- "registration.disable": "registration.disable";
6287
- "registration.delete": "registration.delete";
6288
- "global_workflows.update": "global_workflows.update";
6289
- "fleet.host.declare": "fleet.host.declare";
6290
- "fleet.host.remove": "fleet.host.remove";
6291
- "run.detail.read": "run.detail.read";
6292
- "run.structured.read": "run.structured.read";
6293
- "runs.list.read": "runs.list.read";
6294
- "runs.filters.read": "runs.filters.read";
6295
- "sources.list.read": "sources.list.read";
6296
- "run.payload.read": "run.payload.read";
6297
- "run.orch_logs.read": "run.orch_logs.read";
6298
- "step.logs.read": "step.logs.read";
6669
+ "access_log.list.read": "access_log.list.read";
6670
+ archive_chunk: "archive_chunk";
6671
+ "artifacts.read": "artifacts.read";
6672
+ "attestation.retry": "attestation.retry";
6299
6673
  "attestations.read": "attestations.read";
6300
- "run.cancel": "run.cancel";
6301
- "run.rerun": "run.rerun";
6302
- "run.manual_schedule": "run.manual_schedule";
6303
- "run.trigger": "run.trigger";
6304
- "job.cancel": "job.cancel";
6305
- "event_log.list.read": "event_log.list.read";
6674
+ "backend.get.read": "backend.get.read";
6675
+ "backend.list.read": "backend.list.read";
6676
+ "backend.sync": "backend.sync";
6677
+ "backend.sync.one": "backend.sync.one";
6678
+ "backend.test": "backend.test";
6679
+ "cluster_name.update": "cluster_name.update";
6680
+ "context.create": "context.create";
6681
+ "context.delete": "context.delete";
6682
+ "context.get.read": "context.get.read";
6683
+ "context.history.read": "context.history.read";
6684
+ "context.list.read": "context.list.read";
6685
+ "context.update": "context.update";
6686
+ "context_binding.list.read": "context_binding.list.read";
6687
+ "context_binding.set": "context_binding.set";
6688
+ "context_var.delete": "context_var.delete";
6689
+ "context_var.list.read": "context_var.list.read";
6690
+ "context_var.set": "context_var.set";
6691
+ "db.create_readonly_user": "db.create_readonly_user";
6692
+ "db.create_role": "db.create_role";
6693
+ "db.ensure": "db.ensure";
6694
+ "db.fresh": "db.fresh";
6695
+ "db.refresh_collation_version": "db.refresh_collation_version";
6696
+ "db.reindex": "db.reindex";
6697
+ "diagnostics.read": "diagnostics.read";
6698
+ "event_dlq.discard": "event_dlq.discard";
6699
+ "event_dlq.list.read": "event_dlq.list.read";
6700
+ "event_dlq.retry": "event_dlq.retry";
6306
6701
  "event_log.detail.read": "event_log.detail.read";
6702
+ "event_log.list.read": "event_log.list.read";
6307
6703
  "event_log.payload.read": "event_log.payload.read";
6308
- "environment.list.read": "environment.list.read";
6309
- "environment.get.read": "environment.get.read";
6310
- "environment.create": "environment.create";
6311
- "environment.update": "environment.update";
6312
- "environment.delete": "environment.delete";
6313
- "env_var.list.read": "env_var.list.read";
6314
- "env_var.set": "env_var.set";
6315
- "env_var.delete": "env_var.delete";
6316
- "source_override.list.read": "source_override.list.read";
6317
- "source_override.set": "source_override.set";
6318
- "source_override.delete": "source_override.delete";
6319
- "env_binding.list.read": "env_binding.list.read";
6320
- "env_binding.set": "env_binding.set";
6321
- "secret.list.read": "secret.list.read";
6322
- "secret.set": "secret.set";
6323
- "secret.delete": "secret.delete";
6324
- "secret.reveal": "secret.reveal";
6325
- "secret_scope.create": "secret_scope.create";
6326
- "secret_scope.rename": "secret_scope.rename";
6327
- "secret_scope.delete": "secret_scope.delete";
6328
- "environment.history.read": "environment.history.read";
6329
- "held_run.list.read": "held_run.list.read";
6704
+ "fleet.host.declare": "fleet.host.declare";
6705
+ "fleet.host.remove": "fleet.host.remove";
6706
+ "fleet.init_runner.bringup": "fleet.init_runner.bringup";
6707
+ "fleet.pre_boot.send": "fleet.pre_boot.send";
6708
+ "fleet.read": "fleet.read";
6709
+ "global_workflows.get.read": "global_workflows.get.read";
6710
+ "global_workflows.update": "global_workflows.update";
6330
6711
  "held_run.approve": "held_run.approve";
6331
6712
  "held_run.auto_approve": "held_run.auto_approve";
6713
+ "held_run.expire": "held_run.expire";
6714
+ "held_run.list.read": "held_run.list.read";
6332
6715
  "held_run.reject": "held_run.reject";
6333
6716
  "held_run.request": "held_run.request";
6334
- "held_run.expire": "held_run.expire";
6335
- "registration.list.read": "registration.list.read";
6336
- "diagnostics.read": "diagnostics.read";
6337
- "scaler.capacity.read": "scaler.capacity.read";
6338
- "scaler.agents.read": "scaler.agents.read";
6339
- "fleet.read": "fleet.read";
6340
- "fleet.init_runner.bringup": "fleet.init_runner.bringup";
6341
- "fleet.pre_boot.send": "fleet.pre_boot.send";
6342
- "backend.list.read": "backend.list.read";
6343
- "backend.get.read": "backend.get.read";
6344
- "backend.sync": "backend.sync";
6345
- "backend.sync.one": "backend.sync.one";
6346
- "backend.test": "backend.test";
6347
- "global_workflows.get.read": "global_workflows.get.read";
6717
+ "job.cancel": "job.cancel";
6348
6718
  "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
6349
- "cluster_name.update": "cluster_name.update";
6350
- "access_log.list.read": "access_log.list.read";
6351
- "event_dlq.list.read": "event_dlq.list.read";
6352
- archive_chunk: "archive_chunk";
6353
6719
  purge_chunk: "purge_chunk";
6720
+ "registration.delete": "registration.delete";
6721
+ "registration.disable": "registration.disable";
6722
+ "registration.list.read": "registration.list.read";
6723
+ "run.cancel": "run.cancel";
6724
+ "run.detail.read": "run.detail.read";
6725
+ "run.manual_schedule": "run.manual_schedule";
6726
+ "run.orch_logs.read": "run.orch_logs.read";
6727
+ "run.payload.read": "run.payload.read";
6728
+ "run.rerun": "run.rerun";
6729
+ "run.structured.read": "run.structured.read";
6730
+ "run.trigger": "run.trigger";
6731
+ "runs.filters.read": "runs.filters.read";
6732
+ "runs.list.read": "runs.list.read";
6733
+ "scaler.agents.read": "scaler.agents.read";
6734
+ "scaler.capacity.read": "scaler.capacity.read";
6735
+ "secret.delete": "secret.delete";
6736
+ "secret.list.read": "secret.list.read";
6737
+ "secret.reveal": "secret.reveal";
6738
+ "secret.set": "secret.set";
6739
+ "secret_scope.create": "secret_scope.create";
6740
+ "secret_scope.delete": "secret_scope.delete";
6741
+ "secret_scope.rename": "secret_scope.rename";
6742
+ "source_override.delete": "source_override.delete";
6743
+ "source_override.list.read": "source_override.list.read";
6744
+ "source_override.set": "source_override.set";
6745
+ "sources.list.read": "sources.list.read";
6746
+ "step.logs.read": "step.logs.read";
6747
+ "trust_policy.updated": "trust_policy.updated";
6354
6748
  }>>;
6355
6749
  source: z.ZodOptional<z.ZodEnum<{
6750
+ admin_cli: "admin_cli";
6751
+ admin_http: "admin_http";
6356
6752
  agent: "agent";
6357
6753
  platform_proxy: "platform_proxy";
6358
- admin_http: "admin_http";
6359
- admin_cli: "admin_cli";
6360
6754
  }>>;
6361
6755
  outcome: z.ZodOptional<z.ZodEnum<{
6362
- error: "error";
6363
6756
  allowed: "allowed";
6364
6757
  denied: "denied";
6758
+ error: "error";
6365
6759
  }>>;
6366
6760
  targetType: z.ZodOptional<z.ZodEnum<{
6367
- job: "job";
6368
- step: "step";
6369
- run: "run";
6370
- environment: "environment";
6371
- payload: "payload";
6372
- event_log: "event_log";
6373
- event_log_payload: "event_log_payload";
6374
- secret_scope: "secret_scope";
6375
- registration: "registration";
6761
+ access_log: "access_log";
6762
+ attestation: "attestation";
6376
6763
  backend: "backend";
6764
+ cluster_meta: "cluster_meta";
6765
+ context: "context";
6766
+ database: "database";
6377
6767
  diagnostics: "diagnostics";
6378
- scaler: "scaler";
6768
+ event_dlq: "event_dlq";
6769
+ event_log: "event_log";
6770
+ event_log_payload: "event_log_payload";
6379
6771
  fleet: "fleet";
6380
6772
  held_run: "held_run";
6381
- access_log: "access_log";
6382
- event_dlq: "event_dlq";
6773
+ job: "job";
6383
6774
  org_settings: "org_settings";
6384
- cluster_meta: "cluster_meta";
6385
- attestation: "attestation";
6775
+ payload: "payload";
6776
+ registration: "registration";
6777
+ run: "run";
6778
+ scaler: "scaler";
6779
+ secret_scope: "secret_scope";
6780
+ step: "step";
6386
6781
  }>>;
6387
6782
  targetId: z.ZodOptional<z.ZodString>;
6388
6783
  fromTimestamp: z.ZodOptional<z.ZodString>;
@@ -6611,8 +7006,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6611
7006
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6612
7007
  errorMessage: z.ZodNullable<z.ZodString>;
6613
7008
  runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6614
- environments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6615
- skippedEnvironments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7009
+ contexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
7010
+ skippedContexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6616
7011
  envWarning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6617
7012
  outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
6618
7013
  secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -6622,14 +7017,17 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6622
7017
  run: "run";
6623
7018
  }>;
6624
7019
  category: z.ZodEnum<{
6625
- secret_resolution: "secret_resolution";
6626
- install_secrets: "install_secrets";
6627
- lock_resolution: "lock_resolution";
7020
+ approval_misconfig: "approval_misconfig";
6628
7021
  build_coordination: "build_coordination";
6629
- environment_rules: "environment_rules";
7022
+ context_rules: "context_rules";
6630
7023
  dynamic_eval: "dynamic_eval";
6631
- no_agent: "no_agent";
7024
+ install_secrets: "install_secrets";
7025
+ lock_resolution: "lock_resolution";
6632
7026
  matrix_expansion: "matrix_expansion";
7027
+ no_agent: "no_agent";
7028
+ sandbox_denied: "sandbox_denied";
7029
+ secret_resolution: "secret_resolution";
7030
+ trust_policy: "trust_policy";
6633
7031
  }>;
6634
7032
  message: z.ZodString;
6635
7033
  jobName: z.ZodOptional<z.ZodString>;
@@ -6637,17 +7035,18 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6637
7035
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
6638
7036
  upstreamName: z.ZodString;
6639
7037
  runOn: z.ZodArray<z.ZodEnum<{
6640
- skipped: "skipped";
6641
- success: "success";
6642
- pending: "pending";
6643
- running: "running";
6644
- failed: "failed";
6645
7038
  cancelled: "cancelled";
6646
7039
  cancelling: "cancelling";
7040
+ drift_dropped: "drift_dropped";
7041
+ failed: "failed";
7042
+ pending: "pending";
6647
7043
  queued: "queued";
6648
7044
  recovering: "recovering";
7045
+ running: "running";
7046
+ skipped: "skipped";
7047
+ success: "success";
6649
7048
  timed_out_stale: "timed_out_stale";
6650
- drift_dropped: "drift_dropped";
7049
+ unroutable: "unroutable";
6651
7050
  }>>;
6652
7051
  }, z.core.$strip>>>>;
6653
7052
  steps: z.ZodArray<z.ZodObject<{
@@ -6662,30 +7061,30 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6662
7061
  stepType: z.ZodOptional<z.ZodString>;
6663
7062
  secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6664
7063
  checkOutcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6665
- skipped: "skipped";
6666
7064
  applied: "applied";
6667
7065
  declined: "declined";
6668
7066
  "dry-run": "dry-run";
6669
7067
  no_check: "no_check";
7068
+ skipped: "skipped";
6670
7069
  }>>>;
6671
7070
  driftSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6672
7071
  concurrencyKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6673
- sequential: "sequential";
6674
7072
  "parallel-child": "parallel-child";
6675
7073
  "parallel-group": "parallel-group";
7074
+ sequential: "sequential";
6676
7075
  }>>>;
6677
7076
  groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6678
7077
  }, z.core.$strip>>;
6679
7078
  }, z.core.$strip>>;
6680
7079
  trustContext: z.ZodOptional<z.ZodObject<{
6681
7080
  trustTier: z.ZodNullable<z.ZodEnum<{
6682
- unknown: "unknown";
6683
7081
  known: "known";
6684
7082
  trusted: "trusted";
7083
+ unknown: "unknown";
6685
7084
  }>>;
6686
7085
  lockFileSource: z.ZodNullable<z.ZodEnum<{
6687
- head: "head";
6688
7086
  base: "base";
7087
+ head: "head";
6689
7088
  }>>;
6690
7089
  contributorUsername: z.ZodNullable<z.ZodString>;
6691
7090
  }, z.core.$strip>>;
@@ -6695,14 +7094,17 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6695
7094
  run: "run";
6696
7095
  }>;
6697
7096
  category: z.ZodEnum<{
6698
- secret_resolution: "secret_resolution";
6699
- install_secrets: "install_secrets";
6700
- lock_resolution: "lock_resolution";
7097
+ approval_misconfig: "approval_misconfig";
6701
7098
  build_coordination: "build_coordination";
6702
- environment_rules: "environment_rules";
7099
+ context_rules: "context_rules";
6703
7100
  dynamic_eval: "dynamic_eval";
6704
- no_agent: "no_agent";
7101
+ install_secrets: "install_secrets";
7102
+ lock_resolution: "lock_resolution";
6705
7103
  matrix_expansion: "matrix_expansion";
7104
+ no_agent: "no_agent";
7105
+ sandbox_denied: "sandbox_denied";
7106
+ secret_resolution: "secret_resolution";
7107
+ trust_policy: "trust_policy";
6706
7108
  }>;
6707
7109
  message: z.ZodString;
6708
7110
  jobName: z.ZodOptional<z.ZodString>;
@@ -6718,13 +7120,13 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6718
7120
  value: z.ZodString;
6719
7121
  }, z.core.$strip>;
6720
7122
  status: z.ZodEnum<{
6721
- success: "success";
6722
- pending: "pending";
6723
- running: "running";
6724
- failed: "failed";
6725
7123
  cancelled: "cancelled";
6726
7124
  cancelling: "cancelling";
7125
+ failed: "failed";
6727
7126
  held: "held";
7127
+ pending: "pending";
7128
+ running: "running";
7129
+ success: "success";
6728
7130
  }>;
6729
7131
  provider: z.ZodString;
6730
7132
  repoIdentifier: z.ZodObject<{
@@ -6741,21 +7143,21 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6741
7143
  completedAt: z.ZodNullable<z.ZodString>;
6742
7144
  durationMs: z.ZodNullable<z.ZodNumber>;
6743
7145
  trustTier: z.ZodNullable<z.ZodEnum<{
6744
- unknown: "unknown";
6745
7146
  known: "known";
6746
7147
  trusted: "trusted";
7148
+ unknown: "unknown";
6747
7149
  }>>;
6748
7150
  contributorUsername: z.ZodNullable<z.ZodObject<{
6749
7151
  untrusted: z.ZodLiteral<true>;
6750
7152
  value: z.ZodString;
6751
7153
  }, z.core.$strip>>;
6752
7154
  failureCategory: z.ZodNullable<z.ZodEnum<{
6753
- unknown: "unknown";
6754
7155
  cancelled: "cancelled";
7156
+ infra: "infra";
6755
7157
  init_failure: "init_failure";
6756
- timed_out: "timed_out";
6757
7158
  step_failed: "step_failed";
6758
- infra: "infra";
7159
+ timed_out: "timed_out";
7160
+ unknown: "unknown";
6759
7161
  }>>;
6760
7162
  failureReason: z.ZodNullable<z.ZodObject<{
6761
7163
  untrusted: z.ZodLiteral<true>;
@@ -6770,17 +7172,18 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6770
7172
  value: z.ZodString;
6771
7173
  }, z.core.$strip>;
6772
7174
  status: z.ZodEnum<{
6773
- skipped: "skipped";
6774
- success: "success";
6775
- pending: "pending";
6776
- running: "running";
6777
- failed: "failed";
6778
7175
  cancelled: "cancelled";
6779
7176
  cancelling: "cancelling";
7177
+ drift_dropped: "drift_dropped";
7178
+ failed: "failed";
7179
+ pending: "pending";
6780
7180
  queued: "queued";
6781
7181
  recovering: "recovering";
7182
+ running: "running";
7183
+ skipped: "skipped";
7184
+ success: "success";
6782
7185
  timed_out_stale: "timed_out_stale";
6783
- drift_dropped: "drift_dropped";
7186
+ unroutable: "unroutable";
6784
7187
  }>;
6785
7188
  startedAt: z.ZodNullable<z.ZodString>;
6786
7189
  completedAt: z.ZodNullable<z.ZodString>;
@@ -6796,14 +7199,17 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6796
7199
  run: "run";
6797
7200
  }>;
6798
7201
  category: z.ZodEnum<{
6799
- secret_resolution: "secret_resolution";
6800
- install_secrets: "install_secrets";
6801
- lock_resolution: "lock_resolution";
7202
+ approval_misconfig: "approval_misconfig";
6802
7203
  build_coordination: "build_coordination";
6803
- environment_rules: "environment_rules";
7204
+ context_rules: "context_rules";
6804
7205
  dynamic_eval: "dynamic_eval";
6805
- no_agent: "no_agent";
7206
+ install_secrets: "install_secrets";
7207
+ lock_resolution: "lock_resolution";
6806
7208
  matrix_expansion: "matrix_expansion";
7209
+ no_agent: "no_agent";
7210
+ sandbox_denied: "sandbox_denied";
7211
+ secret_resolution: "secret_resolution";
7212
+ trust_policy: "trust_policy";
6807
7213
  }>;
6808
7214
  message: z.ZodObject<{
6809
7215
  untrusted: z.ZodLiteral<true>;
@@ -6816,17 +7222,18 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6816
7222
  value: z.ZodString;
6817
7223
  }, z.core.$strip>;
6818
7224
  runOn: z.ZodArray<z.ZodEnum<{
6819
- skipped: "skipped";
6820
- success: "success";
6821
- pending: "pending";
6822
- running: "running";
6823
- failed: "failed";
6824
7225
  cancelled: "cancelled";
6825
7226
  cancelling: "cancelling";
7227
+ drift_dropped: "drift_dropped";
7228
+ failed: "failed";
7229
+ pending: "pending";
6826
7230
  queued: "queued";
6827
7231
  recovering: "recovering";
7232
+ running: "running";
7233
+ skipped: "skipped";
7234
+ success: "success";
6828
7235
  timed_out_stale: "timed_out_stale";
6829
- drift_dropped: "drift_dropped";
7236
+ unroutable: "unroutable";
6830
7237
  }>>;
6831
7238
  }, z.core.$strip>>;
6832
7239
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -6841,12 +7248,12 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6841
7248
  value: z.ZodString;
6842
7249
  }, z.core.$strip>;
6843
7250
  status: z.ZodEnum<{
6844
- skipped: "skipped";
6845
- success: "success";
7251
+ cancelled: "cancelled";
7252
+ failed: "failed";
6846
7253
  pending: "pending";
6847
7254
  running: "running";
6848
- failed: "failed";
6849
- cancelled: "cancelled";
7255
+ skipped: "skipped";
7256
+ success: "success";
6850
7257
  }>;
6851
7258
  exitCode: z.ZodNullable<z.ZodNumber>;
6852
7259
  durationMs: z.ZodNullable<z.ZodNumber>;
@@ -6858,17 +7265,68 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6858
7265
  }, z.core.$strip>>;
6859
7266
  stepType: z.ZodString;
6860
7267
  checkOutcome: z.ZodNullable<z.ZodEnum<{
6861
- skipped: "skipped";
6862
7268
  applied: "applied";
6863
7269
  declined: "declined";
6864
7270
  "dry-run": "dry-run";
6865
7271
  no_check: "no_check";
7272
+ skipped: "skipped";
6866
7273
  }>>;
6867
7274
  secretsAccessed: z.ZodArray<z.ZodString>;
6868
7275
  }, z.core.$strip>>;
6869
7276
  }, z.core.$strip>>;
6870
7277
  }, z.core.$strip>>;
6871
7278
  error: z.ZodOptional<z.ZodString>;
7279
+ }, z.core.$strip>, z.ZodObject<{
7280
+ type: z.ZodLiteral<"dashboard.run.state.response">;
7281
+ requestId: z.ZodString;
7282
+ run: z.ZodNullable<z.ZodObject<{
7283
+ runId: z.ZodString;
7284
+ workflowName: z.ZodString;
7285
+ status: z.ZodEnum<{
7286
+ cancelled: "cancelled";
7287
+ cancelling: "cancelling";
7288
+ failed: "failed";
7289
+ held: "held";
7290
+ pending: "pending";
7291
+ running: "running";
7292
+ success: "success";
7293
+ }>;
7294
+ routingKey: z.ZodOptional<z.ZodString>;
7295
+ repoIdentifier: z.ZodOptional<z.ZodString>;
7296
+ sha: z.ZodOptional<z.ZodString>;
7297
+ ref: z.ZodOptional<z.ZodString>;
7298
+ triggerEvent: z.ZodOptional<z.ZodString>;
7299
+ commitMessage: z.ZodOptional<z.ZodString>;
7300
+ jobCount: z.ZodNumber;
7301
+ startedAt: z.ZodNumber;
7302
+ completedAt: z.ZodOptional<z.ZodNumber>;
7303
+ durationMs: z.ZodOptional<z.ZodNumber>;
7304
+ parentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7305
+ originalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7306
+ triggeredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7307
+ triggeredByAgentLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7308
+ failureReason: z.ZodOptional<z.ZodString>;
7309
+ failureClass: z.ZodOptional<z.ZodEnum<{
7310
+ cancelled: "cancelled";
7311
+ dead_orchestrator: "dead_orchestrator";
7312
+ never_started: "never_started";
7313
+ step_failure: "step_failure";
7314
+ timed_out: "timed_out";
7315
+ }>>;
7316
+ jobs: z.ZodArray<z.ZodObject<{
7317
+ jobId: z.ZodString;
7318
+ jobName: z.ZodString;
7319
+ status: z.ZodString;
7320
+ startedAt: z.ZodOptional<z.ZodNumber>;
7321
+ completedAt: z.ZodOptional<z.ZodNumber>;
7322
+ durationMs: z.ZodOptional<z.ZodNumber>;
7323
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7324
+ agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7325
+ runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
7326
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
7327
+ }, z.core.$strip>>;
7328
+ }, z.core.$strip>>;
7329
+ error: z.ZodOptional<z.ZodString>;
6872
7330
  }, z.core.$strip>, z.ZodObject<{
6873
7331
  type: z.ZodLiteral<"dashboard.step.logs.response">;
6874
7332
  requestId: z.ZodString;
@@ -6905,23 +7363,24 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6905
7363
  }, z.core.$strip>;
6906
7364
  runId: z.ZodOptional<z.ZodString>;
6907
7365
  verifyStatus: z.ZodOptional<z.ZodEnum<{
6908
- pending: "pending";
6909
7366
  failed: "failed";
6910
- verified: "verified";
7367
+ pending: "pending";
6911
7368
  unverifiable: "unverifiable";
7369
+ verified: "verified";
6912
7370
  }>>;
6913
7371
  verifyReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6914
7372
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
6915
- triggered: "triggered";
6916
7373
  "run-remote": "run-remote";
7374
+ triggered: "triggered";
6917
7375
  }>>;
6918
7376
  originOrgId: z.ZodOptional<z.ZodString>;
6919
7377
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
6920
- live: "live";
6921
7378
  deferred: "deferred";
7379
+ live: "live";
6922
7380
  "offline-backfill": "offline-backfill";
6923
7381
  }>>;
6924
7382
  }, z.core.$strip>>;
7383
+ trustedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6925
7384
  error: z.ZodOptional<z.ZodString>;
6926
7385
  }, z.core.$strip>, z.ZodObject<{
6927
7386
  type: z.ZodLiteral<"dashboard.attestations.list.all.response">;
@@ -6937,21 +7396,21 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6937
7396
  mediaType: z.ZodString;
6938
7397
  createdAt: z.ZodString;
6939
7398
  verifyStatus: z.ZodEnum<{
6940
- pending: "pending";
6941
7399
  failed: "failed";
6942
- verified: "verified";
7400
+ pending: "pending";
6943
7401
  unverifiable: "unverifiable";
7402
+ verified: "verified";
6944
7403
  }>;
6945
7404
  verifyReason: z.ZodNullable<z.ZodString>;
6946
7405
  repository: z.ZodNullable<z.ZodString>;
6947
7406
  workflow: z.ZodNullable<z.ZodString>;
6948
7407
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
6949
- triggered: "triggered";
6950
7408
  "run-remote": "run-remote";
7409
+ triggered: "triggered";
6951
7410
  }>>;
6952
7411
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
6953
- live: "live";
6954
7412
  deferred: "deferred";
7413
+ live: "live";
6955
7414
  "offline-backfill": "offline-backfill";
6956
7415
  }>>;
6957
7416
  pending: z.ZodOptional<z.ZodBoolean>;
@@ -6959,6 +7418,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6959
7418
  page: z.ZodNumber;
6960
7419
  pageSize: z.ZodNumber;
6961
7420
  total: z.ZodNumber;
7421
+ trustedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6962
7422
  error: z.ZodOptional<z.ZodString>;
6963
7423
  }, z.core.$strip>, z.ZodObject<{
6964
7424
  type: z.ZodLiteral<"dashboard.attestation.get.response">;
@@ -6989,20 +7449,20 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6989
7449
  }, z.core.$strip>;
6990
7450
  runId: z.ZodOptional<z.ZodString>;
6991
7451
  verifyStatus: z.ZodOptional<z.ZodEnum<{
6992
- pending: "pending";
6993
7452
  failed: "failed";
6994
- verified: "verified";
7453
+ pending: "pending";
6995
7454
  unverifiable: "unverifiable";
7455
+ verified: "verified";
6996
7456
  }>>;
6997
7457
  verifyReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6998
7458
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
6999
- triggered: "triggered";
7000
7459
  "run-remote": "run-remote";
7460
+ triggered: "triggered";
7001
7461
  }>>;
7002
7462
  originOrgId: z.ZodOptional<z.ZodString>;
7003
7463
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
7004
- live: "live";
7005
7464
  deferred: "deferred";
7465
+ live: "live";
7006
7466
  "offline-backfill": "offline-backfill";
7007
7467
  }>>;
7008
7468
  }, z.core.$strip>>;
@@ -7013,6 +7473,19 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7013
7473
  minted: z.ZodNumber;
7014
7474
  stillPending: z.ZodNumber;
7015
7475
  error: z.ZodOptional<z.ZodString>;
7476
+ }, z.core.$strip>, z.ZodObject<{
7477
+ type: z.ZodLiteral<"dashboard.artifacts.list.response">;
7478
+ requestId: z.ZodString;
7479
+ artifacts: z.ZodArray<z.ZodObject<{
7480
+ name: z.ZodString;
7481
+ jobId: z.ZodString;
7482
+ sizeBytes: z.ZodNumber;
7483
+ sha256: z.ZodString;
7484
+ createdAt: z.ZodString;
7485
+ downloadUrl: z.ZodOptional<z.ZodString>;
7486
+ }, z.core.$strip>>;
7487
+ downloadUrlExpiresInSeconds: z.ZodOptional<z.ZodNumber>;
7488
+ error: z.ZodOptional<z.ZodString>;
7016
7489
  }, z.core.$strip>, z.ZodObject<{
7017
7490
  type: z.ZodLiteral<"dashboard.runs.list.response">;
7018
7491
  requestId: z.ZodString;
@@ -7030,7 +7503,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7030
7503
  triggerEvent: z.ZodOptional<z.ZodString>;
7031
7504
  commitMessage: z.ZodOptional<z.ZodString>;
7032
7505
  jobCount: z.ZodOptional<z.ZodNumber>;
7033
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
7506
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
7034
7507
  startedAt: z.ZodOptional<z.ZodString>;
7035
7508
  completedAt: z.ZodOptional<z.ZodString>;
7036
7509
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -7073,10 +7546,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7073
7546
  name: z.ZodNullable<z.ZodString>;
7074
7547
  provider: z.ZodString;
7075
7548
  subtype: z.ZodEnum<{
7076
- github_app: "github_app";
7077
7549
  generic_webhook: "generic_webhook";
7078
- universal_git: "universal_git";
7550
+ github_app: "github_app";
7079
7551
  local: "local";
7552
+ universal_git: "universal_git";
7080
7553
  }>;
7081
7554
  enabled: z.ZodBoolean;
7082
7555
  createdAt: z.ZodString;
@@ -7098,6 +7571,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7098
7571
  type: z.ZodLiteral<"run.cancel.response">;
7099
7572
  requestId: z.ZodString;
7100
7573
  cancelledJobs: z.ZodOptional<z.ZodNumber>;
7574
+ alreadyTerminal: z.ZodOptional<z.ZodBoolean>;
7101
7575
  error: z.ZodOptional<z.ZodString>;
7102
7576
  }, z.core.$strip>, z.ZodObject<{
7103
7577
  type: z.ZodLiteral<"dashboard.payload.response">;
@@ -7111,9 +7585,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7111
7585
  totalLines: z.ZodNumber;
7112
7586
  error: z.ZodOptional<z.ZodString>;
7113
7587
  }, z.core.$strip>, z.ZodObject<{
7114
- type: z.ZodLiteral<"dashboard.environments.list.response">;
7588
+ type: z.ZodLiteral<"dashboard.contexts.list.response">;
7115
7589
  requestId: z.ZodString;
7116
- environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
7590
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
7117
7591
  id: z.ZodString;
7118
7592
  name: z.ZodString;
7119
7593
  type: z.ZodEnum<{
@@ -7129,9 +7603,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7129
7603
  }, z.core.$strip>>>;
7130
7604
  error: z.ZodOptional<z.ZodString>;
7131
7605
  }, z.core.$strip>, z.ZodObject<{
7132
- type: z.ZodLiteral<"dashboard.environments.get.response">;
7606
+ type: z.ZodLiteral<"dashboard.contexts.get.response">;
7133
7607
  requestId: z.ZodString;
7134
- environment: z.ZodOptional<z.ZodObject<{
7608
+ context: z.ZodOptional<z.ZodObject<{
7135
7609
  id: z.ZodString;
7136
7610
  name: z.ZodString;
7137
7611
  type: z.ZodEnum<{
@@ -7142,8 +7616,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7142
7616
  branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
7143
7617
  concurrencyLimit: z.ZodNullable<z.ZodNumber>;
7144
7618
  concurrencyStrategy: z.ZodNullable<z.ZodEnum<{
7145
- queue: "queue";
7146
7619
  "cancel-pending": "cancel-pending";
7620
+ queue: "queue";
7147
7621
  }>>;
7148
7622
  requiredReviewers: z.ZodNullable<z.ZodNumber>;
7149
7623
  waitTimerSeconds: z.ZodNullable<z.ZodNumber>;
@@ -7155,27 +7629,27 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7155
7629
  }, z.core.$strip>>;
7156
7630
  error: z.ZodOptional<z.ZodString>;
7157
7631
  }, z.core.$strip>, z.ZodObject<{
7158
- type: z.ZodLiteral<"dashboard.environments.create.response">;
7632
+ type: z.ZodLiteral<"dashboard.contexts.create.response">;
7159
7633
  requestId: z.ZodString;
7160
- environmentId: z.ZodOptional<z.ZodString>;
7634
+ contextId: z.ZodOptional<z.ZodString>;
7161
7635
  error: z.ZodOptional<z.ZodString>;
7162
7636
  }, z.core.$strip>, z.ZodObject<{
7163
- type: z.ZodLiteral<"dashboard.environments.update.response">;
7637
+ type: z.ZodLiteral<"dashboard.contexts.update.response">;
7164
7638
  requestId: z.ZodString;
7165
7639
  error: z.ZodOptional<z.ZodString>;
7166
7640
  }, z.core.$strip>, z.ZodObject<{
7167
- type: z.ZodLiteral<"dashboard.environments.test_access.set.response">;
7641
+ type: z.ZodLiteral<"dashboard.contexts.test_access.set.response">;
7168
7642
  requestId: z.ZodString;
7169
7643
  error: z.ZodOptional<z.ZodString>;
7170
7644
  }, z.core.$strip>, z.ZodObject<{
7171
- type: z.ZodLiteral<"dashboard.environments.delete.response">;
7645
+ type: z.ZodLiteral<"dashboard.contexts.delete.response">;
7172
7646
  requestId: z.ZodString;
7173
7647
  error: z.ZodOptional<z.ZodString>;
7174
7648
  errorCode: z.ZodOptional<z.ZodEnum<{
7175
7649
  pending_held_runs: "pending_held_runs";
7176
7650
  }>>;
7177
7651
  }, z.core.$strip>, z.ZodObject<{
7178
- type: z.ZodLiteral<"dashboard.environments.variables.list.response">;
7652
+ type: z.ZodLiteral<"dashboard.contexts.variables.list.response">;
7179
7653
  requestId: z.ZodString;
7180
7654
  variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
7181
7655
  key: z.ZodString;
@@ -7184,15 +7658,15 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7184
7658
  }, z.core.$strip>>>;
7185
7659
  error: z.ZodOptional<z.ZodString>;
7186
7660
  }, z.core.$strip>, z.ZodObject<{
7187
- type: z.ZodLiteral<"dashboard.environments.variables.set.response">;
7661
+ type: z.ZodLiteral<"dashboard.contexts.variables.set.response">;
7188
7662
  requestId: z.ZodString;
7189
7663
  error: z.ZodOptional<z.ZodString>;
7190
7664
  }, z.core.$strip>, z.ZodObject<{
7191
- type: z.ZodLiteral<"dashboard.environments.variables.delete.response">;
7665
+ type: z.ZodLiteral<"dashboard.contexts.variables.delete.response">;
7192
7666
  requestId: z.ZodString;
7193
7667
  error: z.ZodOptional<z.ZodString>;
7194
7668
  }, z.core.$strip>, z.ZodObject<{
7195
- type: z.ZodLiteral<"dashboard.environments.source-overrides.list.response">;
7669
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.list.response">;
7196
7670
  requestId: z.ZodString;
7197
7671
  overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
7198
7672
  key: z.ZodString;
@@ -7200,15 +7674,15 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7200
7674
  }, z.core.$strip>>>;
7201
7675
  error: z.ZodOptional<z.ZodString>;
7202
7676
  }, z.core.$strip>, z.ZodObject<{
7203
- type: z.ZodLiteral<"dashboard.environments.source-overrides.set.response">;
7677
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.set.response">;
7204
7678
  requestId: z.ZodString;
7205
7679
  error: z.ZodOptional<z.ZodString>;
7206
7680
  }, z.core.$strip>, z.ZodObject<{
7207
- type: z.ZodLiteral<"dashboard.environments.source-overrides.delete.response">;
7681
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.delete.response">;
7208
7682
  requestId: z.ZodString;
7209
7683
  error: z.ZodOptional<z.ZodString>;
7210
7684
  }, z.core.$strip>, z.ZodObject<{
7211
- type: z.ZodLiteral<"dashboard.environments.bindings.list.response">;
7685
+ type: z.ZodLiteral<"dashboard.contexts.bindings.list.response">;
7212
7686
  requestId: z.ZodString;
7213
7687
  bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
7214
7688
  scopePattern: z.ZodString;
@@ -7216,11 +7690,11 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7216
7690
  }, z.core.$strip>>>;
7217
7691
  error: z.ZodOptional<z.ZodString>;
7218
7692
  }, z.core.$strip>, z.ZodObject<{
7219
- type: z.ZodLiteral<"dashboard.environments.bindings.set.response">;
7693
+ type: z.ZodLiteral<"dashboard.contexts.bindings.set.response">;
7220
7694
  requestId: z.ZodString;
7221
7695
  error: z.ZodOptional<z.ZodString>;
7222
7696
  }, z.core.$strip>, z.ZodObject<{
7223
- type: z.ZodLiteral<"dashboard.environments.secrets.list.response">;
7697
+ type: z.ZodLiteral<"dashboard.contexts.secrets.list.response">;
7224
7698
  requestId: z.ZodString;
7225
7699
  secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
7226
7700
  scope: z.ZodString;
@@ -7230,27 +7704,27 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7230
7704
  }, z.core.$strip>>>;
7231
7705
  error: z.ZodOptional<z.ZodString>;
7232
7706
  }, z.core.$strip>, z.ZodObject<{
7233
- type: z.ZodLiteral<"dashboard.environments.secrets.set.response">;
7707
+ type: z.ZodLiteral<"dashboard.contexts.secrets.set.response">;
7234
7708
  requestId: z.ZodString;
7235
7709
  error: z.ZodOptional<z.ZodString>;
7236
7710
  }, z.core.$strip>, z.ZodObject<{
7237
- type: z.ZodLiteral<"dashboard.environments.secrets.delete.response">;
7711
+ type: z.ZodLiteral<"dashboard.contexts.secrets.delete.response">;
7238
7712
  requestId: z.ZodString;
7239
7713
  error: z.ZodOptional<z.ZodString>;
7240
7714
  }, z.core.$strip>, z.ZodObject<{
7241
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.create.response">;
7715
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.create.response">;
7242
7716
  requestId: z.ZodString;
7243
7717
  error: z.ZodOptional<z.ZodString>;
7244
7718
  }, z.core.$strip>, z.ZodObject<{
7245
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename.response">;
7719
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.rename.response">;
7246
7720
  requestId: z.ZodString;
7247
7721
  error: z.ZodOptional<z.ZodString>;
7248
7722
  }, z.core.$strip>, z.ZodObject<{
7249
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete.response">;
7723
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.delete.response">;
7250
7724
  requestId: z.ZodString;
7251
7725
  error: z.ZodOptional<z.ZodString>;
7252
7726
  }, z.core.$strip>, z.ZodObject<{
7253
- type: z.ZodLiteral<"dashboard.environments.history.response">;
7727
+ type: z.ZodLiteral<"dashboard.contexts.history.response">;
7254
7728
  requestId: z.ZodString;
7255
7729
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7256
7730
  id: z.ZodString;
@@ -7261,8 +7735,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7261
7735
  commitSha: z.ZodNullable<z.ZodString>;
7262
7736
  startedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
7263
7737
  completedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
7264
- environment: z.ZodNullable<z.ZodString>;
7738
+ context: z.ZodNullable<z.ZodString>;
7265
7739
  }, z.core.$strip>>>;
7740
+ hasMore: z.ZodOptional<z.ZodBoolean>;
7266
7741
  error: z.ZodOptional<z.ZodString>;
7267
7742
  }, z.core.$strip>, z.ZodObject<{
7268
7743
  type: z.ZodLiteral<"dashboard.held-runs.list.response">;
@@ -7270,19 +7745,11 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7270
7745
  heldRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
7271
7746
  id: z.ZodString;
7272
7747
  runId: z.ZodString;
7273
- environmentId: z.ZodNullable<z.ZodString>;
7274
- environmentName: z.ZodNullable<z.ZodString>;
7748
+ contextId: z.ZodNullable<z.ZodString>;
7749
+ contextName: z.ZodNullable<z.ZodString>;
7275
7750
  holdType: z.ZodString;
7276
- queueType: z.ZodEnum<{
7277
- environment: "environment";
7278
- security: "security";
7279
- }>;
7280
- status: z.ZodEnum<{
7281
- pending: "pending";
7282
- approved: "approved";
7283
- rejected: "rejected";
7284
- expired: "expired";
7285
- }>;
7751
+ queueType: z.ZodString;
7752
+ status: z.ZodString;
7286
7753
  requestedAt: z.ZodCoercedString<unknown>;
7287
7754
  resolvedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
7288
7755
  resolvedBy: z.ZodNullable<z.ZodString>;
@@ -7292,9 +7759,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7292
7759
  trustTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7293
7760
  jobId: z.ZodOptional<z.ZodString>;
7294
7761
  holdScope: z.ZodOptional<z.ZodEnum<{
7295
- workflow: "workflow";
7296
7762
  job: "job";
7297
7763
  step: "step";
7764
+ workflow: "workflow";
7298
7765
  }>>;
7299
7766
  stepIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7300
7767
  requirement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -7353,10 +7820,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7353
7820
  routingKey: z.ZodString;
7354
7821
  name: z.ZodNullable<z.ZodString>;
7355
7822
  subtype: z.ZodNullable<z.ZodEnum<{
7356
- github_app: "github_app";
7357
7823
  generic_webhook: "generic_webhook";
7358
- universal_git: "universal_git";
7824
+ github_app: "github_app";
7359
7825
  local: "local";
7826
+ universal_git: "universal_git";
7360
7827
  }>>;
7361
7828
  provider: z.ZodString;
7362
7829
  }, z.core.$strip>>>;
@@ -7401,8 +7868,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7401
7868
  runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7402
7869
  runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7403
7870
  raftRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7404
- follower: "follower";
7405
7871
  candidate: "candidate";
7872
+ follower: "follower";
7406
7873
  leader: "leader";
7407
7874
  }>>>;
7408
7875
  raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -7436,8 +7903,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7436
7903
  scalers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7437
7904
  name: z.ZodString;
7438
7905
  type: z.ZodEnum<{
7439
- container: "container";
7440
7906
  "bare-metal": "bare-metal";
7907
+ container: "container";
7441
7908
  firecracker: "firecracker";
7442
7909
  kubernetes: "kubernetes";
7443
7910
  }>;
@@ -7487,8 +7954,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7487
7954
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
7488
7955
  name: z.ZodString;
7489
7956
  status: z.ZodEnum<{
7490
- pass: "pass";
7491
7957
  fail: "fail";
7958
+ pass: "pass";
7492
7959
  warn: "warn";
7493
7960
  }>;
7494
7961
  message: z.ZodNullable<z.ZodString>;
@@ -7510,13 +7977,13 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7510
7977
  platform: z.ZodNullable<z.ZodString>;
7511
7978
  arch: z.ZodNullable<z.ZodString>;
7512
7979
  lifecycleClass: z.ZodEnum<{
7513
- static: "static";
7514
7980
  ephemeral: "ephemeral";
7981
+ static: "static";
7515
7982
  }>;
7516
7983
  status: z.ZodEnum<{
7517
7984
  ready: "ready";
7518
- unreachable: "unreachable";
7519
7985
  stale: "stale";
7986
+ unreachable: "unreachable";
7520
7987
  }>;
7521
7988
  lastSeen: z.ZodString;
7522
7989
  }, z.core.$strip>>;
@@ -7531,13 +7998,13 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7531
7998
  platform: z.ZodNullable<z.ZodString>;
7532
7999
  arch: z.ZodNullable<z.ZodString>;
7533
8000
  lifecycleClass: z.ZodEnum<{
7534
- static: "static";
7535
8001
  ephemeral: "ephemeral";
8002
+ static: "static";
7536
8003
  }>;
7537
8004
  status: z.ZodEnum<{
7538
8005
  ready: "ready";
7539
- unreachable: "unreachable";
7540
8006
  stale: "stale";
8007
+ unreachable: "unreachable";
7541
8008
  }>;
7542
8009
  lastSeen: z.ZodString;
7543
8010
  }, z.core.$strip>>;
@@ -7559,26 +8026,26 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7559
8026
  platform: z.ZodNullable<z.ZodString>;
7560
8027
  arch: z.ZodNullable<z.ZodString>;
7561
8028
  lifecycleClass: z.ZodEnum<{
7562
- static: "static";
7563
8029
  ephemeral: "ephemeral";
8030
+ static: "static";
7564
8031
  }>;
7565
8032
  status: z.ZodEnum<{
7566
8033
  ready: "ready";
7567
- unreachable: "unreachable";
7568
8034
  stale: "stale";
8035
+ unreachable: "unreachable";
7569
8036
  }>;
7570
8037
  lastSeen: z.ZodString;
7571
8038
  }, z.core.$strip>;
7572
8039
  disposition: z.ZodEnum<{
8040
+ "skipped-ephemeral": "skipped-ephemeral";
7573
8041
  target: "target";
7574
8042
  "unreachable-durable": "unreachable-durable";
7575
- "skipped-ephemeral": "skipped-ephemeral";
7576
8043
  }>;
7577
8044
  }, z.core.$strip>>;
7578
8045
  onUnreachable: z.ZodEnum<{
8046
+ fail: "fail";
7579
8047
  hold: "hold";
7580
8048
  skip: "skip";
7581
- fail: "fail";
7582
8049
  }>;
7583
8050
  estimatedChildCount: z.ZodNumber;
7584
8051
  }, z.core.$strip>, z.ZodObject<{
@@ -7589,14 +8056,14 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7589
8056
  repoIdentifier: z.ZodString;
7590
8057
  sourceFile: z.ZodNullable<z.ZodString>;
7591
8058
  onUnreachable: z.ZodEnum<{
8059
+ fail: "fail";
7592
8060
  hold: "hold";
7593
8061
  skip: "skip";
7594
- fail: "fail";
7595
8062
  }>;
7596
8063
  disposition: z.ZodEnum<{
8064
+ "skipped-ephemeral": "skipped-ephemeral";
7597
8065
  target: "target";
7598
8066
  "unreachable-durable": "unreachable-durable";
7599
- "skipped-ephemeral": "skipped-ephemeral";
7600
8067
  }>;
7601
8068
  }, z.core.$strip>>;
7602
8069
  }, z.core.$strip>, z.ZodObject<{
@@ -7663,10 +8130,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7663
8130
  syncIntervalMs: z.ZodNumber;
7664
8131
  enabled: z.ZodBoolean;
7665
8132
  healthStatus: z.ZodEnum<{
7666
- unknown: "unknown";
7667
- unreachable: "unreachable";
7668
- healthy: "healthy";
7669
8133
  degraded: "degraded";
8134
+ healthy: "healthy";
8135
+ unknown: "unknown";
8136
+ unreachable: "unreachable";
7670
8137
  }>;
7671
8138
  scopeCount: z.ZodNumber;
7672
8139
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -7690,10 +8157,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7690
8157
  syncIntervalMs: z.ZodNumber;
7691
8158
  enabled: z.ZodBoolean;
7692
8159
  healthStatus: z.ZodEnum<{
8160
+ degraded: "degraded";
8161
+ healthy: "healthy";
7693
8162
  unknown: "unknown";
7694
8163
  unreachable: "unreachable";
7695
- healthy: "healthy";
7696
- degraded: "degraded";
7697
8164
  }>;
7698
8165
  scopeCount: z.ZodNumber;
7699
8166
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -7729,19 +8196,19 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7729
8196
  event: z.ZodString;
7730
8197
  action: z.ZodNullable<z.ZodString>;
7731
8198
  source: z.ZodEnum<{
7732
- relay: "relay";
7733
8199
  direct: "direct";
8200
+ relay: "relay";
7734
8201
  }>;
7735
8202
  provider: z.ZodString;
7736
8203
  repoIdentifier: z.ZodNullable<z.ZodString>;
7737
8204
  ref: z.ZodNullable<z.ZodString>;
7738
8205
  status: z.ZodEnum<{
7739
- failed: "failed";
7740
- received: "received";
7741
- processed: "processed";
7742
8206
  duplicate: "duplicate";
7743
- lockfile_missing: "lockfile_missing";
8207
+ failed: "failed";
7744
8208
  lockfile_corrupt: "lockfile_corrupt";
8209
+ lockfile_missing: "lockfile_missing";
8210
+ processed: "processed";
8211
+ received: "received";
7745
8212
  }>;
7746
8213
  matchedCount: z.ZodNumber;
7747
8214
  runId: z.ZodNullable<z.ZodString>;
@@ -7757,6 +8224,18 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7757
8224
  }, z.core.$strip>>>;
7758
8225
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7759
8226
  error: z.ZodOptional<z.ZodString>;
8227
+ }, z.core.$strip>, z.ZodObject<{
8228
+ type: z.ZodLiteral<"dashboard.event-log.activity.response">;
8229
+ requestId: z.ZodString;
8230
+ counts: z.ZodOptional<z.ZodObject<{
8231
+ total: z.ZodNumber;
8232
+ matched: z.ZodNumber;
8233
+ unmatched: z.ZodNumber;
8234
+ lockfileMissing: z.ZodNumber;
8235
+ lockfileCorrupt: z.ZodNumber;
8236
+ failed: z.ZodNumber;
8237
+ }, z.core.$strip>>;
8238
+ error: z.ZodOptional<z.ZodString>;
7760
8239
  }, z.core.$strip>, z.ZodObject<{
7761
8240
  type: z.ZodLiteral<"dashboard.event-log.detail.response">;
7762
8241
  requestId: z.ZodString;
@@ -7766,19 +8245,19 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7766
8245
  event: z.ZodString;
7767
8246
  action: z.ZodNullable<z.ZodString>;
7768
8247
  source: z.ZodEnum<{
7769
- relay: "relay";
7770
8248
  direct: "direct";
8249
+ relay: "relay";
7771
8250
  }>;
7772
8251
  provider: z.ZodString;
7773
8252
  repoIdentifier: z.ZodNullable<z.ZodString>;
7774
8253
  ref: z.ZodNullable<z.ZodString>;
7775
8254
  status: z.ZodEnum<{
7776
- failed: "failed";
7777
- received: "received";
7778
- processed: "processed";
7779
8255
  duplicate: "duplicate";
7780
- lockfile_missing: "lockfile_missing";
8256
+ failed: "failed";
7781
8257
  lockfile_corrupt: "lockfile_corrupt";
8258
+ lockfile_missing: "lockfile_missing";
8259
+ processed: "processed";
8260
+ received: "received";
7782
8261
  }>;
7783
8262
  matchedCount: z.ZodNumber;
7784
8263
  runId: z.ZodNullable<z.ZodString>;
@@ -7800,12 +8279,12 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7800
8279
  data: z.ZodString;
7801
8280
  isLast: z.ZodBoolean;
7802
8281
  error: z.ZodOptional<z.ZodEnum<{
7803
- payload_unavailable: "payload_unavailable";
7804
- not_found: "not_found";
7805
- read_failed: "read_failed";
7806
8282
  forbidden: "forbidden";
8283
+ not_found: "not_found";
7807
8284
  orch_stream_timeout: "orch_stream_timeout";
7808
8285
  orchestrator_unavailable: "orchestrator_unavailable";
8286
+ payload_unavailable: "payload_unavailable";
8287
+ read_failed: "read_failed";
7809
8288
  }>>;
7810
8289
  totalBytes: z.ZodOptional<z.ZodNumber>;
7811
8290
  }, z.core.$strip>, z.ZodObject<{
@@ -7895,121 +8374,131 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7895
8374
  orgId: z.ZodNullable<z.ZodString>;
7896
8375
  routingKey: z.ZodNullable<z.ZodString>;
7897
8376
  actorType: z.ZodEnum<{
7898
- user: "user";
7899
8377
  api_key: "api_key";
7900
- service_account: "service_account";
7901
8378
  platform_operator: "platform_operator";
8379
+ service_account: "service_account";
7902
8380
  system: "system";
8381
+ user: "user";
7903
8382
  }>;
7904
8383
  actorId: z.ZodString;
7905
8384
  actorMeta: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7906
8385
  actorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7907
8386
  actorDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7908
8387
  action: z.ZodEnum<{
7909
- "event_dlq.retry": "event_dlq.retry";
8388
+ "access_log.list.read": "access_log.list.read";
8389
+ archive_chunk: "archive_chunk";
8390
+ "artifacts.read": "artifacts.read";
8391
+ "attestation.retry": "attestation.retry";
8392
+ "attestations.read": "attestations.read";
8393
+ "backend.get.read": "backend.get.read";
8394
+ "backend.list.read": "backend.list.read";
8395
+ "backend.sync": "backend.sync";
8396
+ "backend.sync.one": "backend.sync.one";
8397
+ "backend.test": "backend.test";
8398
+ "cluster_name.update": "cluster_name.update";
8399
+ "context.create": "context.create";
8400
+ "context.delete": "context.delete";
8401
+ "context.get.read": "context.get.read";
8402
+ "context.history.read": "context.history.read";
8403
+ "context.list.read": "context.list.read";
8404
+ "context.update": "context.update";
8405
+ "context_binding.list.read": "context_binding.list.read";
8406
+ "context_binding.set": "context_binding.set";
8407
+ "context_var.delete": "context_var.delete";
8408
+ "context_var.list.read": "context_var.list.read";
8409
+ "context_var.set": "context_var.set";
8410
+ "db.create_readonly_user": "db.create_readonly_user";
8411
+ "db.create_role": "db.create_role";
8412
+ "db.ensure": "db.ensure";
8413
+ "db.fresh": "db.fresh";
8414
+ "db.refresh_collation_version": "db.refresh_collation_version";
8415
+ "db.reindex": "db.reindex";
8416
+ "diagnostics.read": "diagnostics.read";
7910
8417
  "event_dlq.discard": "event_dlq.discard";
7911
- "registration.disable": "registration.disable";
7912
- "registration.delete": "registration.delete";
7913
- "global_workflows.update": "global_workflows.update";
8418
+ "event_dlq.list.read": "event_dlq.list.read";
8419
+ "event_dlq.retry": "event_dlq.retry";
8420
+ "event_log.detail.read": "event_log.detail.read";
8421
+ "event_log.list.read": "event_log.list.read";
8422
+ "event_log.payload.read": "event_log.payload.read";
7914
8423
  "fleet.host.declare": "fleet.host.declare";
7915
8424
  "fleet.host.remove": "fleet.host.remove";
8425
+ "fleet.init_runner.bringup": "fleet.init_runner.bringup";
8426
+ "fleet.pre_boot.send": "fleet.pre_boot.send";
8427
+ "fleet.read": "fleet.read";
8428
+ "global_workflows.get.read": "global_workflows.get.read";
8429
+ "global_workflows.update": "global_workflows.update";
8430
+ "held_run.approve": "held_run.approve";
8431
+ "held_run.auto_approve": "held_run.auto_approve";
8432
+ "held_run.expire": "held_run.expire";
8433
+ "held_run.list.read": "held_run.list.read";
8434
+ "held_run.reject": "held_run.reject";
8435
+ "held_run.request": "held_run.request";
8436
+ "job.cancel": "job.cancel";
8437
+ "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
8438
+ purge_chunk: "purge_chunk";
8439
+ "registration.delete": "registration.delete";
8440
+ "registration.disable": "registration.disable";
8441
+ "registration.list.read": "registration.list.read";
8442
+ "run.cancel": "run.cancel";
7916
8443
  "run.detail.read": "run.detail.read";
7917
- "run.structured.read": "run.structured.read";
7918
- "runs.list.read": "runs.list.read";
7919
- "runs.filters.read": "runs.filters.read";
7920
- "sources.list.read": "sources.list.read";
7921
- "run.payload.read": "run.payload.read";
8444
+ "run.manual_schedule": "run.manual_schedule";
7922
8445
  "run.orch_logs.read": "run.orch_logs.read";
7923
- "step.logs.read": "step.logs.read";
7924
- "attestations.read": "attestations.read";
7925
- "run.cancel": "run.cancel";
8446
+ "run.payload.read": "run.payload.read";
7926
8447
  "run.rerun": "run.rerun";
7927
- "run.manual_schedule": "run.manual_schedule";
8448
+ "run.structured.read": "run.structured.read";
7928
8449
  "run.trigger": "run.trigger";
7929
- "job.cancel": "job.cancel";
7930
- "event_log.list.read": "event_log.list.read";
7931
- "event_log.detail.read": "event_log.detail.read";
7932
- "event_log.payload.read": "event_log.payload.read";
7933
- "environment.list.read": "environment.list.read";
7934
- "environment.get.read": "environment.get.read";
7935
- "environment.create": "environment.create";
7936
- "environment.update": "environment.update";
7937
- "environment.delete": "environment.delete";
7938
- "env_var.list.read": "env_var.list.read";
7939
- "env_var.set": "env_var.set";
7940
- "env_var.delete": "env_var.delete";
7941
- "source_override.list.read": "source_override.list.read";
7942
- "source_override.set": "source_override.set";
7943
- "source_override.delete": "source_override.delete";
7944
- "env_binding.list.read": "env_binding.list.read";
7945
- "env_binding.set": "env_binding.set";
7946
- "secret.list.read": "secret.list.read";
7947
- "secret.set": "secret.set";
8450
+ "runs.filters.read": "runs.filters.read";
8451
+ "runs.list.read": "runs.list.read";
8452
+ "scaler.agents.read": "scaler.agents.read";
8453
+ "scaler.capacity.read": "scaler.capacity.read";
7948
8454
  "secret.delete": "secret.delete";
8455
+ "secret.list.read": "secret.list.read";
7949
8456
  "secret.reveal": "secret.reveal";
8457
+ "secret.set": "secret.set";
7950
8458
  "secret_scope.create": "secret_scope.create";
7951
- "secret_scope.rename": "secret_scope.rename";
7952
8459
  "secret_scope.delete": "secret_scope.delete";
7953
- "environment.history.read": "environment.history.read";
7954
- "held_run.list.read": "held_run.list.read";
7955
- "held_run.approve": "held_run.approve";
7956
- "held_run.auto_approve": "held_run.auto_approve";
7957
- "held_run.reject": "held_run.reject";
7958
- "held_run.request": "held_run.request";
7959
- "held_run.expire": "held_run.expire";
7960
- "registration.list.read": "registration.list.read";
7961
- "diagnostics.read": "diagnostics.read";
7962
- "scaler.capacity.read": "scaler.capacity.read";
7963
- "scaler.agents.read": "scaler.agents.read";
7964
- "fleet.read": "fleet.read";
7965
- "fleet.init_runner.bringup": "fleet.init_runner.bringup";
7966
- "fleet.pre_boot.send": "fleet.pre_boot.send";
7967
- "backend.list.read": "backend.list.read";
7968
- "backend.get.read": "backend.get.read";
7969
- "backend.sync": "backend.sync";
7970
- "backend.sync.one": "backend.sync.one";
7971
- "backend.test": "backend.test";
7972
- "global_workflows.get.read": "global_workflows.get.read";
7973
- "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
7974
- "cluster_name.update": "cluster_name.update";
7975
- "access_log.list.read": "access_log.list.read";
7976
- "event_dlq.list.read": "event_dlq.list.read";
7977
- archive_chunk: "archive_chunk";
7978
- purge_chunk: "purge_chunk";
8460
+ "secret_scope.rename": "secret_scope.rename";
8461
+ "source_override.delete": "source_override.delete";
8462
+ "source_override.list.read": "source_override.list.read";
8463
+ "source_override.set": "source_override.set";
8464
+ "sources.list.read": "sources.list.read";
8465
+ "step.logs.read": "step.logs.read";
8466
+ "trust_policy.updated": "trust_policy.updated";
7979
8467
  }>;
7980
8468
  targetType: z.ZodNullable<z.ZodEnum<{
7981
- job: "job";
7982
- step: "step";
7983
- run: "run";
7984
- environment: "environment";
7985
- payload: "payload";
7986
- event_log: "event_log";
7987
- event_log_payload: "event_log_payload";
7988
- secret_scope: "secret_scope";
7989
- registration: "registration";
8469
+ access_log: "access_log";
8470
+ attestation: "attestation";
7990
8471
  backend: "backend";
8472
+ cluster_meta: "cluster_meta";
8473
+ context: "context";
8474
+ database: "database";
7991
8475
  diagnostics: "diagnostics";
7992
- scaler: "scaler";
8476
+ event_dlq: "event_dlq";
8477
+ event_log: "event_log";
8478
+ event_log_payload: "event_log_payload";
7993
8479
  fleet: "fleet";
7994
8480
  held_run: "held_run";
7995
- access_log: "access_log";
7996
- event_dlq: "event_dlq";
8481
+ job: "job";
7997
8482
  org_settings: "org_settings";
7998
- cluster_meta: "cluster_meta";
7999
- attestation: "attestation";
8483
+ payload: "payload";
8484
+ registration: "registration";
8485
+ run: "run";
8486
+ scaler: "scaler";
8487
+ secret_scope: "secret_scope";
8488
+ step: "step";
8000
8489
  }>>;
8001
8490
  targetId: z.ZodNullable<z.ZodString>;
8002
8491
  requestId: z.ZodNullable<z.ZodString>;
8003
8492
  source: z.ZodEnum<{
8493
+ admin_cli: "admin_cli";
8494
+ admin_http: "admin_http";
8004
8495
  agent: "agent";
8005
8496
  platform_proxy: "platform_proxy";
8006
- admin_http: "admin_http";
8007
- admin_cli: "admin_cli";
8008
8497
  }>;
8009
8498
  outcome: z.ZodEnum<{
8010
- error: "error";
8011
8499
  allowed: "allowed";
8012
8500
  denied: "denied";
8501
+ error: "error";
8013
8502
  }>;
8014
8503
  errorMessage: z.ZodNullable<z.ZodString>;
8015
8504
  agentLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8030,8 +8519,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
8030
8519
  requestId: z.ZodString;
8031
8520
  runId: z.ZodOptional<z.ZodString>;
8032
8521
  status: z.ZodOptional<z.ZodEnum<{
8033
- rejected: "rejected";
8034
8522
  accepted: "accepted";
8523
+ rejected: "rejected";
8035
8524
  }>>;
8036
8525
  reason: z.ZodOptional<z.ZodString>;
8037
8526
  jobIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -8074,6 +8563,9 @@ export type DashboardPlatformToOrchMessage = z.infer<typeof dashboardPlatformToO
8074
8563
  export type EventLogListItem = z.infer<typeof eventLogListItemSchema>;
8075
8564
  export type DashboardEventLogListRequest = z.infer<typeof dashboardEventLogListRequestSchema>;
8076
8565
  export type DashboardEventLogListResponse = z.infer<typeof dashboardEventLogListResponseSchema>;
8566
+ export type EventLogActivityCounts = z.infer<typeof eventLogActivityCountsSchema>;
8567
+ export type DashboardEventLogActivityRequest = z.infer<typeof dashboardEventLogActivityRequestSchema>;
8568
+ export type DashboardEventLogActivityResponse = z.infer<typeof dashboardEventLogActivityResponseSchema>;
8077
8569
  export type DashboardEventLogDetailRequest = z.infer<typeof dashboardEventLogDetailRequestSchema>;
8078
8570
  export type DashboardEventLogDetailResponse = z.infer<typeof dashboardEventLogDetailResponseSchema>;
8079
8571
  export type DashboardEventLogPayloadStreamRequest = z.infer<typeof dashboardEventLogPayloadStreamRequestSchema>;
@@ -8088,30 +8580,30 @@ export type DashboardEventDlqRetryRequest = z.infer<typeof dashboardEventDlqRetr
8088
8580
  export type DashboardEventDlqRetryResponse = z.infer<typeof dashboardEventDlqRetryResponseSchema>;
8089
8581
  export type DashboardEventDlqDiscardRequest = z.infer<typeof dashboardEventDlqDiscardRequestSchema>;
8090
8582
  export type DashboardEventDlqDiscardResponse = z.infer<typeof dashboardEventDlqDiscardResponseSchema>;
8091
- export type EnvListRequest = z.infer<typeof envListRequestSchema>;
8092
- type EnvListResponse = z.infer<typeof envListResponseSchema>;
8093
- export type EnvGetRequest = z.infer<typeof envGetRequestSchema>;
8094
- type EnvGetResponse = z.infer<typeof envGetResponseSchema>;
8095
- export type EnvCreateRequest = z.infer<typeof envCreateRequestSchema>;
8096
- export type EnvUpdateRequest = z.infer<typeof envUpdateRequestSchema>;
8097
- export type EnvTestAccessSetRequest = z.infer<typeof envTestAccessSetRequestSchema>;
8098
- export type EnvDeleteRequest = z.infer<typeof envDeleteRequestSchema>;
8099
- export type EnvVarsListRequest = z.infer<typeof envVarsListRequestSchema>;
8100
- type EnvVarsListResponse = z.infer<typeof envVarsListResponseSchema>;
8101
- export type EnvVarSetRequest = z.infer<typeof envVarSetRequestSchema>;
8102
- export type EnvVarDeleteRequest = z.infer<typeof envVarDeleteRequestSchema>;
8103
- export type EnvSourceOverridesListRequest = z.infer<typeof envSourceOverridesListRequestSchema>;
8104
- export type EnvSourceOverrideSetRequest = z.infer<typeof envSourceOverrideSetRequestSchema>;
8105
- export type EnvSourceOverrideDeleteRequest = z.infer<typeof envSourceOverrideDeleteRequestSchema>;
8106
- export type EnvBindingsListRequest = z.infer<typeof envBindingsListRequestSchema>;
8107
- export type EnvBindingsSetRequest = z.infer<typeof envBindingsSetRequestSchema>;
8108
- export type EnvSecretsListRequest = z.infer<typeof envSecretsListRequestSchema>;
8109
- export type EnvSecretSetRequest = z.infer<typeof envSecretSetRequestSchema>;
8110
- export type EnvSecretDeleteRequest = z.infer<typeof envSecretDeleteRequestSchema>;
8111
- export type EnvSecretScopeCreateRequest = z.infer<typeof envSecretScopeCreateRequestSchema>;
8112
- export type EnvSecretScopeRenameRequest = z.infer<typeof envSecretScopeRenameRequestSchema>;
8113
- export type EnvSecretScopeDeleteRequest = z.infer<typeof envSecretScopeDeleteRequestSchema>;
8114
- export type EnvHistoryRequest = z.infer<typeof envHistoryRequestSchema>;
8583
+ export type ContextListRequest = z.infer<typeof contextListRequestSchema>;
8584
+ type ContextListResponse = z.infer<typeof contextListResponseSchema>;
8585
+ export type ContextGetRequest = z.infer<typeof contextGetRequestSchema>;
8586
+ type ContextGetResponse = z.infer<typeof contextGetResponseSchema>;
8587
+ export type ContextCreateRequest = z.infer<typeof contextCreateRequestSchema>;
8588
+ export type ContextUpdateRequest = z.infer<typeof contextUpdateRequestSchema>;
8589
+ export type ContextTestAccessSetRequest = z.infer<typeof contextTestAccessSetRequestSchema>;
8590
+ export type ContextDeleteRequest = z.infer<typeof contextDeleteRequestSchema>;
8591
+ export type ContextVarsListRequest = z.infer<typeof contextVarsListRequestSchema>;
8592
+ type ContextVarsListResponse = z.infer<typeof contextVarsListResponseSchema>;
8593
+ export type ContextVarSetRequest = z.infer<typeof contextVarSetRequestSchema>;
8594
+ export type ContextVarDeleteRequest = z.infer<typeof contextVarDeleteRequestSchema>;
8595
+ export type ContextSourceOverridesListRequest = z.infer<typeof contextSourceOverridesListRequestSchema>;
8596
+ export type ContextSourceOverrideSetRequest = z.infer<typeof contextSourceOverrideSetRequestSchema>;
8597
+ export type ContextSourceOverrideDeleteRequest = z.infer<typeof contextSourceOverrideDeleteRequestSchema>;
8598
+ export type ContextBindingsListRequest = z.infer<typeof contextBindingsListRequestSchema>;
8599
+ export type ContextBindingsSetRequest = z.infer<typeof contextBindingsSetRequestSchema>;
8600
+ export type ContextSecretsListRequest = z.infer<typeof contextSecretsListRequestSchema>;
8601
+ export type ContextSecretSetRequest = z.infer<typeof contextSecretSetRequestSchema>;
8602
+ export type ContextSecretDeleteRequest = z.infer<typeof contextSecretDeleteRequestSchema>;
8603
+ export type ContextSecretScopeCreateRequest = z.infer<typeof contextSecretScopeCreateRequestSchema>;
8604
+ export type ContextSecretScopeRenameRequest = z.infer<typeof contextSecretScopeRenameRequestSchema>;
8605
+ export type ContextSecretScopeDeleteRequest = z.infer<typeof contextSecretScopeDeleteRequestSchema>;
8606
+ export type ContextHistoryRequest = z.infer<typeof contextHistoryRequestSchema>;
8115
8607
  export type HeldRunsListRequest = z.infer<typeof heldRunsListRequestSchema>;
8116
8608
  type HeldRunsListResponse = z.infer<typeof heldRunsListResponseSchema>;
8117
8609
  export type HeldRunApproveRequest = z.infer<typeof heldRunApproveRequestSchema>;
@@ -8147,8 +8639,8 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8147
8639
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8148
8640
  errorMessage: z.ZodNullable<z.ZodString>;
8149
8641
  runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8150
- environments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8151
- skippedEnvironments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8642
+ contexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8643
+ skippedContexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8152
8644
  envWarning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8153
8645
  outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
8154
8646
  secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -8158,14 +8650,17 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8158
8650
  run: "run";
8159
8651
  }>;
8160
8652
  category: z.ZodEnum<{
8161
- secret_resolution: "secret_resolution";
8162
- install_secrets: "install_secrets";
8163
- lock_resolution: "lock_resolution";
8653
+ approval_misconfig: "approval_misconfig";
8164
8654
  build_coordination: "build_coordination";
8165
- environment_rules: "environment_rules";
8655
+ context_rules: "context_rules";
8166
8656
  dynamic_eval: "dynamic_eval";
8167
- no_agent: "no_agent";
8657
+ install_secrets: "install_secrets";
8658
+ lock_resolution: "lock_resolution";
8168
8659
  matrix_expansion: "matrix_expansion";
8660
+ no_agent: "no_agent";
8661
+ sandbox_denied: "sandbox_denied";
8662
+ secret_resolution: "secret_resolution";
8663
+ trust_policy: "trust_policy";
8169
8664
  }>;
8170
8665
  message: z.ZodString;
8171
8666
  jobName: z.ZodOptional<z.ZodString>;
@@ -8173,17 +8668,18 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8173
8668
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
8174
8669
  upstreamName: z.ZodString;
8175
8670
  runOn: z.ZodArray<z.ZodEnum<{
8176
- skipped: "skipped";
8177
- success: "success";
8178
- pending: "pending";
8179
- running: "running";
8180
- failed: "failed";
8181
8671
  cancelled: "cancelled";
8182
8672
  cancelling: "cancelling";
8673
+ drift_dropped: "drift_dropped";
8674
+ failed: "failed";
8675
+ pending: "pending";
8183
8676
  queued: "queued";
8184
8677
  recovering: "recovering";
8678
+ running: "running";
8679
+ skipped: "skipped";
8680
+ success: "success";
8185
8681
  timed_out_stale: "timed_out_stale";
8186
- drift_dropped: "drift_dropped";
8682
+ unroutable: "unroutable";
8187
8683
  }>>;
8188
8684
  }, z.core.$strip>>>>;
8189
8685
  steps: z.ZodArray<z.ZodObject<{
@@ -8198,30 +8694,30 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8198
8694
  stepType: z.ZodOptional<z.ZodString>;
8199
8695
  secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8200
8696
  checkOutcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
8201
- skipped: "skipped";
8202
8697
  applied: "applied";
8203
8698
  declined: "declined";
8204
8699
  "dry-run": "dry-run";
8205
8700
  no_check: "no_check";
8701
+ skipped: "skipped";
8206
8702
  }>>>;
8207
8703
  driftSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8208
8704
  concurrencyKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
8209
- sequential: "sequential";
8210
8705
  "parallel-child": "parallel-child";
8211
8706
  "parallel-group": "parallel-group";
8707
+ sequential: "sequential";
8212
8708
  }>>>;
8213
8709
  groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8214
8710
  }, z.core.$strip>>;
8215
8711
  }, z.core.$strip>>;
8216
8712
  trustContext: z.ZodOptional<z.ZodObject<{
8217
8713
  trustTier: z.ZodNullable<z.ZodEnum<{
8218
- unknown: "unknown";
8219
8714
  known: "known";
8220
8715
  trusted: "trusted";
8716
+ unknown: "unknown";
8221
8717
  }>>;
8222
8718
  lockFileSource: z.ZodNullable<z.ZodEnum<{
8223
- head: "head";
8224
8719
  base: "base";
8720
+ head: "head";
8225
8721
  }>>;
8226
8722
  contributorUsername: z.ZodNullable<z.ZodString>;
8227
8723
  }, z.core.$strip>>;
@@ -8236,14 +8732,17 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8236
8732
  run: "run";
8237
8733
  }>;
8238
8734
  category: z.ZodEnum<{
8239
- secret_resolution: "secret_resolution";
8240
- install_secrets: "install_secrets";
8241
- lock_resolution: "lock_resolution";
8735
+ approval_misconfig: "approval_misconfig";
8242
8736
  build_coordination: "build_coordination";
8243
- environment_rules: "environment_rules";
8737
+ context_rules: "context_rules";
8244
8738
  dynamic_eval: "dynamic_eval";
8245
- no_agent: "no_agent";
8739
+ install_secrets: "install_secrets";
8740
+ lock_resolution: "lock_resolution";
8246
8741
  matrix_expansion: "matrix_expansion";
8742
+ no_agent: "no_agent";
8743
+ sandbox_denied: "sandbox_denied";
8744
+ secret_resolution: "secret_resolution";
8745
+ trust_policy: "trust_policy";
8247
8746
  }>;
8248
8747
  message: z.ZodString;
8249
8748
  jobName: z.ZodOptional<z.ZodString>;
@@ -8294,20 +8793,20 @@ export declare const dashboardAttestationsApiResponseSchema: z.ZodObject<{
8294
8793
  }, z.core.$strip>;
8295
8794
  runId: z.ZodOptional<z.ZodString>;
8296
8795
  verifyStatus: z.ZodOptional<z.ZodEnum<{
8297
- pending: "pending";
8298
8796
  failed: "failed";
8299
- verified: "verified";
8797
+ pending: "pending";
8300
8798
  unverifiable: "unverifiable";
8799
+ verified: "verified";
8301
8800
  }>>;
8302
8801
  verifyReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8303
8802
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
8304
- triggered: "triggered";
8305
8803
  "run-remote": "run-remote";
8804
+ triggered: "triggered";
8306
8805
  }>>;
8307
8806
  originOrgId: z.ZodOptional<z.ZodString>;
8308
8807
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
8309
- live: "live";
8310
8808
  deferred: "deferred";
8809
+ live: "live";
8311
8810
  "offline-backfill": "offline-backfill";
8312
8811
  }>>;
8313
8812
  }, z.core.$strip>>;
@@ -8345,23 +8844,30 @@ export declare const runListItemSchema: z.ZodObject<{
8345
8844
  failureReason: z.ZodOptional<z.ZodString>;
8346
8845
  hadCompileJob: z.ZodBoolean;
8347
8846
  compileJobId: z.ZodNullable<z.ZodString>;
8348
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
8847
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
8349
8848
  repoProvider: z.ZodNullable<z.ZodString>;
8350
8849
  localWorkingTree: z.ZodBoolean;
8351
8850
  source: z.ZodNullable<z.ZodObject<{
8352
8851
  routingKey: z.ZodString;
8353
8852
  name: z.ZodNullable<z.ZodString>;
8354
8853
  subtype: z.ZodNullable<z.ZodEnum<{
8355
- github_app: "github_app";
8356
8854
  generic_webhook: "generic_webhook";
8357
- universal_git: "universal_git";
8855
+ github_app: "github_app";
8358
8856
  local: "local";
8857
+ universal_git: "universal_git";
8359
8858
  }>>;
8360
8859
  provider: z.ZodString;
8361
8860
  }, z.core.$strip>>;
8362
8861
  }, z.core.$strip>;
8363
8862
  export type RunListItem = z.infer<typeof runListItemSchema>;
8364
- /** Paginated run list response envelope. */
8863
+ /**
8864
+ * Cursor-paginated run list response envelope.
8865
+ *
8866
+ * Keyset (cursor) pagination: `nextCursor` fetches the next (older) page,
8867
+ * `prevCursor` the previous (newer) page — both opaque, `null` when there is no
8868
+ * such page. `hasMore` is true when an older page exists. `approxTotal` is a
8869
+ * cached, approximate match count for the "~N runs" label (not an exact total).
8870
+ */
8365
8871
  export declare const runListResponseSchema: z.ZodObject<{
8366
8872
  runs: z.ZodArray<z.ZodObject<{
8367
8873
  runId: z.ZodString;
@@ -8395,25 +8901,26 @@ export declare const runListResponseSchema: z.ZodObject<{
8395
8901
  failureReason: z.ZodOptional<z.ZodString>;
8396
8902
  hadCompileJob: z.ZodBoolean;
8397
8903
  compileJobId: z.ZodNullable<z.ZodString>;
8398
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
8904
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
8399
8905
  repoProvider: z.ZodNullable<z.ZodString>;
8400
8906
  localWorkingTree: z.ZodBoolean;
8401
8907
  source: z.ZodNullable<z.ZodObject<{
8402
8908
  routingKey: z.ZodString;
8403
8909
  name: z.ZodNullable<z.ZodString>;
8404
8910
  subtype: z.ZodNullable<z.ZodEnum<{
8405
- github_app: "github_app";
8406
8911
  generic_webhook: "generic_webhook";
8407
- universal_git: "universal_git";
8912
+ github_app: "github_app";
8408
8913
  local: "local";
8914
+ universal_git: "universal_git";
8409
8915
  }>>;
8410
8916
  provider: z.ZodString;
8411
8917
  }, z.core.$strip>>;
8412
8918
  }, z.core.$strip>>;
8413
- total: z.ZodNumber;
8414
- page: z.ZodNumber;
8415
- pageSize: z.ZodNumber;
8919
+ nextCursor: z.ZodNullable<z.ZodString>;
8920
+ prevCursor: z.ZodNullable<z.ZodString>;
8416
8921
  hasMore: z.ZodBoolean;
8922
+ approxTotal: z.ZodNumber;
8923
+ pageSize: z.ZodNumber;
8417
8924
  }, z.core.$strip>;
8418
8925
  export type RunListResponse = z.infer<typeof runListResponseSchema>;
8419
8926
  declare const diagnosticsInfraAgentSchema: z.ZodObject<{
@@ -8456,17 +8963,19 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
8456
8963
  scalerBackends: z.ZodArray<z.ZodString>;
8457
8964
  deployment: z.ZodObject<{
8458
8965
  mode: z.ZodEnum<{
8459
- unknown: "unknown";
8460
- systemd: "systemd";
8966
+ compose: "compose";
8461
8967
  launchd: "launchd";
8968
+ systemd: "systemd";
8969
+ unknown: "unknown";
8462
8970
  windows: "windows";
8463
- compose: "compose";
8464
8971
  }>;
8465
8972
  containerName: z.ZodNullable<z.ZodString>;
8466
8973
  containerRuntime: z.ZodNullable<z.ZodEnum<{
8467
- podman: "podman";
8468
8974
  docker: "docker";
8975
+ podman: "podman";
8469
8976
  }>>;
8977
+ adminInvocation: z.ZodNullable<z.ZodString>;
8978
+ adminPath: z.ZodNullable<z.ZodString>;
8470
8979
  }, z.core.$strip>;
8471
8980
  s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8472
8981
  agentCount: z.ZodNumber;
@@ -8520,8 +9029,8 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
8520
9029
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
8521
9030
  name: z.ZodString;
8522
9031
  status: z.ZodEnum<{
8523
- pass: "pass";
8524
9032
  fail: "fail";
9033
+ pass: "pass";
8525
9034
  warn: "warn";
8526
9035
  }>;
8527
9036
  message: z.ZodNullable<z.ZodString>;
@@ -8530,6 +9039,22 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
8530
9039
  }, z.core.$strip>>>;
8531
9040
  error: z.ZodOptional<z.ZodString>;
8532
9041
  }, z.core.$strip>;
9042
+ /**
9043
+ * A single infrastructure health alert.
9044
+ *
9045
+ * Both vocabulary fields are `z.string()` on purpose. `InfraAlertType` and
9046
+ * `InfraAlertSeverity` (`diagnostics/infra-alert.ts`) name the *known*
9047
+ * vocabulary the producer mints from and the read-side consumers colour by; the
9048
+ * wire stays permissive because the `kici` CLI hard-parses this response while
9049
+ * pinned to an older version than the hosted Platform it is talking to. A
9050
+ * strict enum would fail the whole response rather than degrade one row.
9051
+ */
9052
+ export declare const diagnosticsInfraAlertSchema: z.ZodObject<{
9053
+ type: z.ZodString;
9054
+ message: z.ZodString;
9055
+ severity: z.ZodString;
9056
+ }, z.core.$strip>;
9057
+ export type DiagnosticsInfraAlert = z.infer<typeof diagnosticsInfraAlertSchema>;
8533
9058
  export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
8534
9059
  orchestrators: z.ZodArray<z.ZodObject<{
8535
9060
  connectionId: z.ZodString;
@@ -8548,17 +9073,19 @@ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
8548
9073
  scalerBackends: z.ZodArray<z.ZodString>;
8549
9074
  deployment: z.ZodObject<{
8550
9075
  mode: z.ZodEnum<{
8551
- unknown: "unknown";
8552
- systemd: "systemd";
9076
+ compose: "compose";
8553
9077
  launchd: "launchd";
9078
+ systemd: "systemd";
9079
+ unknown: "unknown";
8554
9080
  windows: "windows";
8555
- compose: "compose";
8556
9081
  }>;
8557
9082
  containerName: z.ZodNullable<z.ZodString>;
8558
9083
  containerRuntime: z.ZodNullable<z.ZodEnum<{
8559
- podman: "podman";
8560
9084
  docker: "docker";
9085
+ podman: "podman";
8561
9086
  }>>;
9087
+ adminInvocation: z.ZodNullable<z.ZodString>;
9088
+ adminPath: z.ZodNullable<z.ZodString>;
8562
9089
  }, z.core.$strip>;
8563
9090
  s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8564
9091
  agentCount: z.ZodNumber;
@@ -8612,8 +9139,8 @@ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
8612
9139
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
8613
9140
  name: z.ZodString;
8614
9141
  status: z.ZodEnum<{
8615
- pass: "pass";
8616
9142
  fail: "fail";
9143
+ pass: "pass";
8617
9144
  warn: "warn";
8618
9145
  }>;
8619
9146
  message: z.ZodNullable<z.ZodString>;
@@ -8648,12 +9175,12 @@ export type DashboardRunDetailApiResponse = z.infer<typeof dashboardRunDetailApi
8648
9175
  export type DashboardStepLogsApiResponse = z.infer<typeof dashboardStepLogsApiResponseSchema>;
8649
9176
  export type DashboardAttestationsApiResponse = z.infer<typeof dashboardAttestationsApiResponseSchema>;
8650
9177
  export type DashboardJobDetail = z.infer<typeof dashboardJobDetailSchema>;
8651
- /** Single environment from the list response. */
8652
- export type DashboardEnvironment = NonNullable<EnvListResponse['environments']>[number];
8653
- /** Full environment detail from the get response. */
8654
- export type DashboardEnvironmentDetail = NonNullable<EnvGetResponse['environment']>;
8655
- /** Single environment variable from the variables list response. */
8656
- export type DashboardEnvironmentVariable = NonNullable<EnvVarsListResponse['variables']>[number];
9178
+ /** Single context from the list response. */
9179
+ export type DashboardContext = NonNullable<ContextListResponse['contexts']>[number];
9180
+ /** Full context detail from the get response. */
9181
+ export type DashboardContextDetail = NonNullable<ContextGetResponse['context']>;
9182
+ /** Single context variable from the variables list response. */
9183
+ export type DashboardContextVariable = NonNullable<ContextVarsListResponse['variables']>[number];
8657
9184
  /** Single held run from the held runs list response. */
8658
9185
  export type DashboardHeldRun = NonNullable<HeldRunsListResponse['heldRuns']>[number];
8659
9186
  /** Single infrastructure event for a run (from run_events table). */
@@ -8764,11 +9291,10 @@ export declare const DASHBOARD_REQUEST_TYPES: readonly string[];
8764
9291
  export declare const DASHBOARD_REQUEST_TYPE_SET: ReadonlySet<string>;
8765
9292
  /** Structured error code on a dashboard `*.response` frame's `code` field. */
8766
9293
  export declare const DashboardResponseErrorCode: z.ZodEnum<{
8767
- unsupported_request_type: "unsupported_request_type";
9294
+ internal_error: "internal_error";
8768
9295
  invalid_payload: "invalid_payload";
8769
9296
  unsupported_message_type: "unsupported_message_type";
8770
- internal_error: "internal_error";
9297
+ unsupported_request_type: "unsupported_request_type";
8771
9298
  }>;
8772
9299
  export type DashboardResponseErrorCode = z.infer<typeof DashboardResponseErrorCode>;
8773
- export {};
8774
9300
  //# sourceMappingURL=dashboard.d.ts.map