@kici-dev/engine 0.1.27 → 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 (148) hide show
  1. package/dist/approval/types.d.ts +8 -1
  2. package/dist/approval/types.js +8 -1
  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 +8 -0
  7. package/dist/audit/activity.d.ts +12 -12
  8. package/dist/audit/retention-policy.js +16 -0
  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/context/index.d.ts +9 -1
  26. package/dist/context/index.js +9 -2
  27. package/dist/context/multi-context.d.ts +3 -3
  28. package/dist/context/scope-name.d.ts +29 -0
  29. package/dist/context/scope-name.js +49 -0
  30. package/dist/context/scope-resolver.d.ts +33 -0
  31. package/dist/context/scope-resolver.js +45 -15
  32. package/dist/context/types.d.ts +8 -5
  33. package/dist/dev-ops/operations.d.ts +8 -0
  34. package/dist/dev-ops/operations.js +36 -19
  35. package/dist/diagnostics/infra-alert.d.ts +71 -0
  36. package/dist/diagnostics/infra-alert.js +60 -0
  37. package/dist/env/environment-allowlist.d.ts +4 -4
  38. package/dist/fanout/materialize.d.ts +16 -0
  39. package/dist/fanout/materialize.js +32 -3
  40. package/dist/index.d.ts +15 -6
  41. package/dist/index.js +34 -19
  42. package/dist/inputs/descriptor.d.ts +9 -9
  43. package/dist/inventory.d.ts +4 -4
  44. package/dist/labels.d.ts +82 -2
  45. package/dist/labels.js +119 -1
  46. package/dist/matrix/expand.d.ts +49 -2
  47. package/dist/matrix/expand.js +102 -13
  48. package/dist/matrix/format.d.ts +6 -1
  49. package/dist/matrix/format.js +6 -1
  50. package/dist/mcp/held-run-resolve.d.ts +7 -10
  51. package/dist/mcp/held-run-resolve.js +33 -7
  52. package/dist/metrics/catalog-policy.js +4 -4
  53. package/dist/metrics/metric-catalog.generated.d.ts +954 -739
  54. package/dist/metrics/metric-catalog.generated.js +278 -20
  55. package/dist/metrics/metric-kind-compat.d.ts +26 -0
  56. package/dist/metrics/metric-kind-compat.js +33 -0
  57. package/dist/protocol/analytics-events.d.ts +6 -6
  58. package/dist/protocol/dashboard-api-errors.d.ts +1 -0
  59. package/dist/protocol/dashboard-api-errors.js +5 -1
  60. package/dist/protocol/dashboard-write-operations.d.ts +143 -86
  61. package/dist/protocol/dashboard-write-operations.js +91 -17
  62. package/dist/protocol/messages/access-log.d.ts +437 -392
  63. package/dist/protocol/messages/access-log.js +11 -2
  64. package/dist/protocol/messages/actor.d.ts +2 -2
  65. package/dist/protocol/messages/agent-dev-ops.d.ts +4 -2
  66. package/dist/protocol/messages/agent-dev-ops.js +2 -5
  67. package/dist/protocol/messages/agent-run-result.d.ts +72 -62
  68. package/dist/protocol/messages/auth.d.ts +35 -23
  69. package/dist/protocol/messages/browser.d.ts +81 -5
  70. package/dist/protocol/messages/browser.js +53 -2
  71. package/dist/protocol/messages/capabilities.d.ts +106 -31
  72. package/dist/protocol/messages/capabilities.js +94 -10
  73. package/dist/protocol/messages/common.d.ts +45 -2
  74. package/dist/protocol/messages/common.js +64 -3
  75. package/dist/protocol/messages/dashboard-sealed-write.d.ts +52 -0
  76. package/dist/protocol/messages/dashboard-sealed-write.js +57 -0
  77. package/dist/protocol/messages/dashboard.d.ts +1022 -498
  78. package/dist/protocol/messages/dashboard.js +198 -31
  79. package/dist/protocol/messages/deployment-identity.d.ts +37 -10
  80. package/dist/protocol/messages/deployment-identity.js +30 -3
  81. package/dist/protocol/messages/event-log.d.ts +5 -5
  82. package/dist/protocol/messages/execution-status.d.ts +189 -53
  83. package/dist/protocol/messages/execution-status.js +108 -40
  84. package/dist/protocol/messages/heartbeat-health.d.ts +83 -0
  85. package/dist/protocol/messages/heartbeat-health.js +87 -0
  86. package/dist/protocol/messages/log-stream.d.ts +18 -0
  87. package/dist/protocol/messages/log-stream.js +19 -0
  88. package/dist/protocol/messages/oidc-mint.d.ts +7 -0
  89. package/dist/protocol/messages/oidc-mint.js +7 -0
  90. package/dist/protocol/messages/orchestrator-agent.d.ts +264 -67
  91. package/dist/protocol/messages/orchestrator-agent.js +170 -5
  92. package/dist/protocol/messages/pat-kind.d.ts +1 -1
  93. package/dist/protocol/messages/peer.d.ts +122 -58
  94. package/dist/protocol/messages/peer.js +37 -2
  95. package/dist/protocol/messages/platform-orchestrator.d.ts +561 -217
  96. package/dist/protocol/messages/platform-orchestrator.js +131 -21
  97. package/dist/protocol/messages/run-events.d.ts +5 -5
  98. package/dist/protocol/messages/scaler-event.d.ts +3 -3
  99. package/dist/protocol/messages/source-registration.d.ts +56 -13
  100. package/dist/protocol/messages/source-registration.js +49 -6
  101. package/dist/protocol/source-origin.d.ts +1 -1
  102. package/dist/provenance/attestation-origin.d.ts +1 -1
  103. package/dist/provenance/schema.d.ts +11 -11
  104. package/dist/provenance/verify.js +2 -1
  105. package/dist/provider/changed-files-fetcher.d.ts +21 -2
  106. package/dist/provider/check-run-conclusion.d.ts +2 -2
  107. package/dist/provider/check-status-poster.d.ts +23 -0
  108. package/dist/provider/index.d.ts +2 -2
  109. package/dist/registration/registerable-trigger-type.d.ts +14 -13
  110. package/dist/registration/registerable-trigger-type.js +1 -0
  111. package/dist/sandbox/capabilities.d.ts +6 -0
  112. package/dist/sandbox/capabilities.js +57 -0
  113. package/dist/scaler/scaler-backend-type.d.ts +1 -1
  114. package/dist/status/presentation.d.ts +89 -0
  115. package/dist/status/presentation.js +163 -0
  116. package/dist/trigger/compiled-matchers.d.ts +13 -0
  117. package/dist/trigger/compiled-matchers.js +44 -0
  118. package/dist/trigger/event-buckets.d.ts +44 -0
  119. package/dist/trigger/event-buckets.js +93 -0
  120. package/dist/trigger/matcher.d.ts +7 -3
  121. package/dist/trigger/matcher.js +53 -15
  122. package/dist/trigger/schedule-key.d.ts +14 -0
  123. package/dist/trigger/schedule-key.js +21 -0
  124. package/dist/trigger/trigger-event-type.d.ts +1 -1
  125. package/dist/trigger/trigger-event-type.js +2 -0
  126. package/dist/trigger/types.d.ts +173 -43
  127. package/dist/trigger/types.js +82 -25
  128. package/dist/webhook/event-types.d.ts +56 -0
  129. package/dist/webhook/event-types.js +59 -0
  130. package/dist/ws/ws-like.d.ts +13 -0
  131. package/package.json +12 -4
  132. package/sbom.spdx.json +10 -10
  133. package/dist/environment/host-match.d.ts +0 -25
  134. package/dist/environment/index.d.ts +0 -6
  135. package/dist/environment/multi-env.d.ts +0 -30
  136. package/dist/environment/scope-resolver.d.ts +0 -46
  137. package/dist/environment/scope-template.d.ts +0 -18
  138. package/dist/environment/types.d.ts +0 -119
  139. package/dist/package-manager.d.ts +0 -20
  140. package/dist/protocol/messages/observe.d.ts +0 -76
  141. package/dist/protocol/messages/saas-orchestrator.d.ts +0 -2179
  142. package/dist/protocol/messages/test-run.d.ts +0 -59
  143. package/dist/state-machine/index.d.ts +0 -2
  144. package/dist/state-machine/index.js +0 -3
  145. package/dist/state-machine/machine.d.ts +0 -34
  146. package/dist/state-machine/machine.js +0 -103
  147. package/dist/state-machine/types.d.ts +0 -34
  148. package/dist/state-machine/types.js +0 -15
@@ -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
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">;
@@ -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
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>>;
@@ -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
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
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>>;
@@ -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>;
@@ -1862,8 +2101,8 @@ declare const contextGetResponseSchema: 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>;
@@ -1914,8 +2153,8 @@ export declare const contextCreateRequestSchema: 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>;
@@ -1963,8 +2202,8 @@ export declare const contextUpdateRequestSchema: 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>>;
@@ -2093,7 +2332,15 @@ declare const contextVarsListResponseSchema: 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 context. */
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
+ */
2097
2344
  export declare const contextVarSetRequestSchema: z.ZodObject<{
2098
2345
  type: z.ZodLiteral<"dashboard.contexts.variables.set">;
2099
2346
  requestId: z.ZodString;
@@ -2125,7 +2372,12 @@ export declare const contextVarSetRequestSchema: z.ZodObject<{
2125
2372
  }, z.core.$strip>], "type">;
2126
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
2383
  /** Delete a variable from an context. */
@@ -2372,7 +2624,15 @@ export declare const contextSecretsListRequestSchema: 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. */
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
+ */
2376
2636
  export declare const contextSecretSetRequestSchema: z.ZodObject<{
2377
2637
  type: z.ZodLiteral<"dashboard.contexts.secrets.set">;
2378
2638
  requestId: z.ZodString;
@@ -2404,7 +2664,12 @@ export declare const contextSecretSetRequestSchema: 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
2675
  export declare const contextSecretDeleteRequestSchema: z.ZodObject<{
@@ -2570,14 +2835,36 @@ export declare const contextHistoryRequestSchema: z.ZodObject<{
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
2870
  context: "context";
@@ -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
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<{
@@ -2636,16 +2925,8 @@ declare const heldRunsListResponseSchema: z.ZodObject<{
2636
2925
  contextId: z.ZodNullable<z.ZodString>;
2637
2926
  contextName: z.ZodNullable<z.ZodString>;
2638
2927
  holdType: z.ZodString;
2639
- queueType: z.ZodEnum<{
2640
- context: "context";
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;
@@ -4736,8 +5077,8 @@ 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>;
@@ -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>>;
@@ -4913,7 +5254,12 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4913
5254
  }, z.core.$strip>], "type">;
4914
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
5265
  type: z.ZodLiteral<"dashboard.contexts.variables.delete">;
@@ -5166,7 +5512,12 @@ 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
5522
  type: z.ZodLiteral<"dashboard.contexts.secrets.delete">;
5172
5523
  requestId: z.ZodString;
@@ -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
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,117 +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";
6306
- "event_log.detail.read": "event_log.detail.read";
6307
- "event_log.payload.read": "event_log.payload.read";
6308
- "context.list.read": "context.list.read";
6309
- "context.get.read": "context.get.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";
6310
6680
  "context.create": "context.create";
6311
- "context.update": "context.update";
6312
6681
  "context.delete": "context.delete";
6313
- "context_var.list.read": "context_var.list.read";
6314
- "context_var.set": "context_var.set";
6315
- "context_var.delete": "context_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";
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";
6319
6686
  "context_binding.list.read": "context_binding.list.read";
6320
6687
  "context_binding.set": "context_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
- "context.history.read": "context.history.read";
6329
- "held_run.list.read": "held_run.list.read";
6330
- "held_run.approve": "held_run.approve";
6331
- "held_run.auto_approve": "held_run.auto_approve";
6332
- "held_run.reject": "held_run.reject";
6333
- "held_run.request": "held_run.request";
6334
- "held_run.expire": "held_run.expire";
6335
- "registration.list.read": "registration.list.read";
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";
6336
6697
  "diagnostics.read": "diagnostics.read";
6337
- "scaler.capacity.read": "scaler.capacity.read";
6338
- "scaler.agents.read": "scaler.agents.read";
6339
- "fleet.read": "fleet.read";
6698
+ "event_dlq.discard": "event_dlq.discard";
6699
+ "event_dlq.list.read": "event_dlq.list.read";
6700
+ "event_dlq.retry": "event_dlq.retry";
6701
+ "event_log.detail.read": "event_log.detail.read";
6702
+ "event_log.list.read": "event_log.list.read";
6703
+ "event_log.payload.read": "event_log.payload.read";
6704
+ "fleet.host.declare": "fleet.host.declare";
6705
+ "fleet.host.remove": "fleet.host.remove";
6340
6706
  "fleet.init_runner.bringup": "fleet.init_runner.bringup";
6341
6707
  "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";
6708
+ "fleet.read": "fleet.read";
6347
6709
  "global_workflows.get.read": "global_workflows.get.read";
6710
+ "global_workflows.update": "global_workflows.update";
6711
+ "held_run.approve": "held_run.approve";
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";
6715
+ "held_run.reject": "held_run.reject";
6716
+ "held_run.request": "held_run.request";
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
- "attestation.retry": "attestation.retry";
6351
- "access_log.list.read": "access_log.list.read";
6352
- "event_dlq.list.read": "event_dlq.list.read";
6353
- archive_chunk: "archive_chunk";
6354
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";
6355
6748
  }>>;
6356
6749
  source: z.ZodOptional<z.ZodEnum<{
6357
- agent: "agent";
6358
- platform_proxy: "platform_proxy";
6359
- admin_http: "admin_http";
6360
6750
  admin_cli: "admin_cli";
6751
+ admin_http: "admin_http";
6752
+ agent: "agent";
6753
+ platform_proxy: "platform_proxy";
6361
6754
  }>>;
6362
6755
  outcome: z.ZodOptional<z.ZodEnum<{
6363
- error: "error";
6364
6756
  allowed: "allowed";
6365
6757
  denied: "denied";
6758
+ error: "error";
6366
6759
  }>>;
6367
6760
  targetType: z.ZodOptional<z.ZodEnum<{
6368
- job: "job";
6369
- step: "step";
6370
- run: "run";
6761
+ access_log: "access_log";
6762
+ attestation: "attestation";
6763
+ backend: "backend";
6764
+ cluster_meta: "cluster_meta";
6371
6765
  context: "context";
6372
- payload: "payload";
6766
+ database: "database";
6767
+ diagnostics: "diagnostics";
6768
+ event_dlq: "event_dlq";
6373
6769
  event_log: "event_log";
6374
6770
  event_log_payload: "event_log_payload";
6375
- secret_scope: "secret_scope";
6376
- registration: "registration";
6377
- backend: "backend";
6378
- diagnostics: "diagnostics";
6379
- scaler: "scaler";
6380
6771
  fleet: "fleet";
6381
6772
  held_run: "held_run";
6382
- access_log: "access_log";
6383
- event_dlq: "event_dlq";
6773
+ job: "job";
6384
6774
  org_settings: "org_settings";
6385
- cluster_meta: "cluster_meta";
6386
- attestation: "attestation";
6775
+ payload: "payload";
6776
+ registration: "registration";
6777
+ run: "run";
6778
+ scaler: "scaler";
6779
+ secret_scope: "secret_scope";
6780
+ step: "step";
6387
6781
  }>>;
6388
6782
  targetId: z.ZodOptional<z.ZodString>;
6389
6783
  fromTimestamp: z.ZodOptional<z.ZodString>;
@@ -6623,14 +7017,17 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6623
7017
  run: "run";
6624
7018
  }>;
6625
7019
  category: z.ZodEnum<{
6626
- secret_resolution: "secret_resolution";
6627
- install_secrets: "install_secrets";
6628
- lock_resolution: "lock_resolution";
7020
+ approval_misconfig: "approval_misconfig";
6629
7021
  build_coordination: "build_coordination";
6630
7022
  context_rules: "context_rules";
6631
7023
  dynamic_eval: "dynamic_eval";
6632
- no_agent: "no_agent";
7024
+ install_secrets: "install_secrets";
7025
+ lock_resolution: "lock_resolution";
6633
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";
6634
7031
  }>;
6635
7032
  message: z.ZodString;
6636
7033
  jobName: z.ZodOptional<z.ZodString>;
@@ -6638,17 +7035,18 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6638
7035
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
6639
7036
  upstreamName: z.ZodString;
6640
7037
  runOn: z.ZodArray<z.ZodEnum<{
6641
- skipped: "skipped";
6642
- success: "success";
6643
- pending: "pending";
6644
- running: "running";
6645
- failed: "failed";
6646
7038
  cancelled: "cancelled";
6647
7039
  cancelling: "cancelling";
7040
+ drift_dropped: "drift_dropped";
7041
+ failed: "failed";
7042
+ pending: "pending";
6648
7043
  queued: "queued";
6649
7044
  recovering: "recovering";
7045
+ running: "running";
7046
+ skipped: "skipped";
7047
+ success: "success";
6650
7048
  timed_out_stale: "timed_out_stale";
6651
- drift_dropped: "drift_dropped";
7049
+ unroutable: "unroutable";
6652
7050
  }>>;
6653
7051
  }, z.core.$strip>>>>;
6654
7052
  steps: z.ZodArray<z.ZodObject<{
@@ -6663,30 +7061,30 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6663
7061
  stepType: z.ZodOptional<z.ZodString>;
6664
7062
  secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6665
7063
  checkOutcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6666
- skipped: "skipped";
6667
7064
  applied: "applied";
6668
7065
  declined: "declined";
6669
7066
  "dry-run": "dry-run";
6670
7067
  no_check: "no_check";
7068
+ skipped: "skipped";
6671
7069
  }>>>;
6672
7070
  driftSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6673
7071
  concurrencyKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6674
- sequential: "sequential";
6675
7072
  "parallel-child": "parallel-child";
6676
7073
  "parallel-group": "parallel-group";
7074
+ sequential: "sequential";
6677
7075
  }>>>;
6678
7076
  groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6679
7077
  }, z.core.$strip>>;
6680
7078
  }, z.core.$strip>>;
6681
7079
  trustContext: z.ZodOptional<z.ZodObject<{
6682
7080
  trustTier: z.ZodNullable<z.ZodEnum<{
6683
- unknown: "unknown";
6684
7081
  known: "known";
6685
7082
  trusted: "trusted";
7083
+ unknown: "unknown";
6686
7084
  }>>;
6687
7085
  lockFileSource: z.ZodNullable<z.ZodEnum<{
6688
- head: "head";
6689
7086
  base: "base";
7087
+ head: "head";
6690
7088
  }>>;
6691
7089
  contributorUsername: z.ZodNullable<z.ZodString>;
6692
7090
  }, z.core.$strip>>;
@@ -6696,14 +7094,17 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6696
7094
  run: "run";
6697
7095
  }>;
6698
7096
  category: z.ZodEnum<{
6699
- secret_resolution: "secret_resolution";
6700
- install_secrets: "install_secrets";
6701
- lock_resolution: "lock_resolution";
7097
+ approval_misconfig: "approval_misconfig";
6702
7098
  build_coordination: "build_coordination";
6703
7099
  context_rules: "context_rules";
6704
7100
  dynamic_eval: "dynamic_eval";
6705
- no_agent: "no_agent";
7101
+ install_secrets: "install_secrets";
7102
+ lock_resolution: "lock_resolution";
6706
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";
6707
7108
  }>;
6708
7109
  message: z.ZodString;
6709
7110
  jobName: z.ZodOptional<z.ZodString>;
@@ -6719,13 +7120,13 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6719
7120
  value: z.ZodString;
6720
7121
  }, z.core.$strip>;
6721
7122
  status: z.ZodEnum<{
6722
- success: "success";
6723
- pending: "pending";
6724
- running: "running";
6725
- failed: "failed";
6726
7123
  cancelled: "cancelled";
6727
7124
  cancelling: "cancelling";
7125
+ failed: "failed";
6728
7126
  held: "held";
7127
+ pending: "pending";
7128
+ running: "running";
7129
+ success: "success";
6729
7130
  }>;
6730
7131
  provider: z.ZodString;
6731
7132
  repoIdentifier: z.ZodObject<{
@@ -6742,21 +7143,21 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6742
7143
  completedAt: z.ZodNullable<z.ZodString>;
6743
7144
  durationMs: z.ZodNullable<z.ZodNumber>;
6744
7145
  trustTier: z.ZodNullable<z.ZodEnum<{
6745
- unknown: "unknown";
6746
7146
  known: "known";
6747
7147
  trusted: "trusted";
7148
+ unknown: "unknown";
6748
7149
  }>>;
6749
7150
  contributorUsername: z.ZodNullable<z.ZodObject<{
6750
7151
  untrusted: z.ZodLiteral<true>;
6751
7152
  value: z.ZodString;
6752
7153
  }, z.core.$strip>>;
6753
7154
  failureCategory: z.ZodNullable<z.ZodEnum<{
6754
- unknown: "unknown";
6755
7155
  cancelled: "cancelled";
7156
+ infra: "infra";
6756
7157
  init_failure: "init_failure";
6757
- timed_out: "timed_out";
6758
7158
  step_failed: "step_failed";
6759
- infra: "infra";
7159
+ timed_out: "timed_out";
7160
+ unknown: "unknown";
6760
7161
  }>>;
6761
7162
  failureReason: z.ZodNullable<z.ZodObject<{
6762
7163
  untrusted: z.ZodLiteral<true>;
@@ -6771,17 +7172,18 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6771
7172
  value: z.ZodString;
6772
7173
  }, z.core.$strip>;
6773
7174
  status: z.ZodEnum<{
6774
- skipped: "skipped";
6775
- success: "success";
6776
- pending: "pending";
6777
- running: "running";
6778
- failed: "failed";
6779
7175
  cancelled: "cancelled";
6780
7176
  cancelling: "cancelling";
7177
+ drift_dropped: "drift_dropped";
7178
+ failed: "failed";
7179
+ pending: "pending";
6781
7180
  queued: "queued";
6782
7181
  recovering: "recovering";
7182
+ running: "running";
7183
+ skipped: "skipped";
7184
+ success: "success";
6783
7185
  timed_out_stale: "timed_out_stale";
6784
- drift_dropped: "drift_dropped";
7186
+ unroutable: "unroutable";
6785
7187
  }>;
6786
7188
  startedAt: z.ZodNullable<z.ZodString>;
6787
7189
  completedAt: z.ZodNullable<z.ZodString>;
@@ -6797,14 +7199,17 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6797
7199
  run: "run";
6798
7200
  }>;
6799
7201
  category: z.ZodEnum<{
6800
- secret_resolution: "secret_resolution";
6801
- install_secrets: "install_secrets";
6802
- lock_resolution: "lock_resolution";
7202
+ approval_misconfig: "approval_misconfig";
6803
7203
  build_coordination: "build_coordination";
6804
7204
  context_rules: "context_rules";
6805
7205
  dynamic_eval: "dynamic_eval";
6806
- no_agent: "no_agent";
7206
+ install_secrets: "install_secrets";
7207
+ lock_resolution: "lock_resolution";
6807
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";
6808
7213
  }>;
6809
7214
  message: z.ZodObject<{
6810
7215
  untrusted: z.ZodLiteral<true>;
@@ -6817,17 +7222,18 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6817
7222
  value: z.ZodString;
6818
7223
  }, z.core.$strip>;
6819
7224
  runOn: z.ZodArray<z.ZodEnum<{
6820
- skipped: "skipped";
6821
- success: "success";
6822
- pending: "pending";
6823
- running: "running";
6824
- failed: "failed";
6825
7225
  cancelled: "cancelled";
6826
7226
  cancelling: "cancelling";
7227
+ drift_dropped: "drift_dropped";
7228
+ failed: "failed";
7229
+ pending: "pending";
6827
7230
  queued: "queued";
6828
7231
  recovering: "recovering";
7232
+ running: "running";
7233
+ skipped: "skipped";
7234
+ success: "success";
6829
7235
  timed_out_stale: "timed_out_stale";
6830
- drift_dropped: "drift_dropped";
7236
+ unroutable: "unroutable";
6831
7237
  }>>;
6832
7238
  }, z.core.$strip>>;
6833
7239
  outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -6842,12 +7248,12 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6842
7248
  value: z.ZodString;
6843
7249
  }, z.core.$strip>;
6844
7250
  status: z.ZodEnum<{
6845
- skipped: "skipped";
6846
- success: "success";
7251
+ cancelled: "cancelled";
7252
+ failed: "failed";
6847
7253
  pending: "pending";
6848
7254
  running: "running";
6849
- failed: "failed";
6850
- cancelled: "cancelled";
7255
+ skipped: "skipped";
7256
+ success: "success";
6851
7257
  }>;
6852
7258
  exitCode: z.ZodNullable<z.ZodNumber>;
6853
7259
  durationMs: z.ZodNullable<z.ZodNumber>;
@@ -6859,17 +7265,68 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6859
7265
  }, z.core.$strip>>;
6860
7266
  stepType: z.ZodString;
6861
7267
  checkOutcome: z.ZodNullable<z.ZodEnum<{
6862
- skipped: "skipped";
6863
7268
  applied: "applied";
6864
7269
  declined: "declined";
6865
7270
  "dry-run": "dry-run";
6866
7271
  no_check: "no_check";
7272
+ skipped: "skipped";
6867
7273
  }>>;
6868
7274
  secretsAccessed: z.ZodArray<z.ZodString>;
6869
7275
  }, z.core.$strip>>;
6870
7276
  }, z.core.$strip>>;
6871
7277
  }, z.core.$strip>>;
6872
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>;
6873
7330
  }, z.core.$strip>, z.ZodObject<{
6874
7331
  type: z.ZodLiteral<"dashboard.step.logs.response">;
6875
7332
  requestId: z.ZodString;
@@ -6906,23 +7363,24 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6906
7363
  }, z.core.$strip>;
6907
7364
  runId: z.ZodOptional<z.ZodString>;
6908
7365
  verifyStatus: z.ZodOptional<z.ZodEnum<{
6909
- pending: "pending";
6910
7366
  failed: "failed";
6911
- verified: "verified";
7367
+ pending: "pending";
6912
7368
  unverifiable: "unverifiable";
7369
+ verified: "verified";
6913
7370
  }>>;
6914
7371
  verifyReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6915
7372
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
6916
- triggered: "triggered";
6917
7373
  "run-remote": "run-remote";
7374
+ triggered: "triggered";
6918
7375
  }>>;
6919
7376
  originOrgId: z.ZodOptional<z.ZodString>;
6920
7377
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
6921
- live: "live";
6922
7378
  deferred: "deferred";
7379
+ live: "live";
6923
7380
  "offline-backfill": "offline-backfill";
6924
7381
  }>>;
6925
7382
  }, z.core.$strip>>;
7383
+ trustedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6926
7384
  error: z.ZodOptional<z.ZodString>;
6927
7385
  }, z.core.$strip>, z.ZodObject<{
6928
7386
  type: z.ZodLiteral<"dashboard.attestations.list.all.response">;
@@ -6938,21 +7396,21 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6938
7396
  mediaType: z.ZodString;
6939
7397
  createdAt: z.ZodString;
6940
7398
  verifyStatus: z.ZodEnum<{
6941
- pending: "pending";
6942
7399
  failed: "failed";
6943
- verified: "verified";
7400
+ pending: "pending";
6944
7401
  unverifiable: "unverifiable";
7402
+ verified: "verified";
6945
7403
  }>;
6946
7404
  verifyReason: z.ZodNullable<z.ZodString>;
6947
7405
  repository: z.ZodNullable<z.ZodString>;
6948
7406
  workflow: z.ZodNullable<z.ZodString>;
6949
7407
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
6950
- triggered: "triggered";
6951
7408
  "run-remote": "run-remote";
7409
+ triggered: "triggered";
6952
7410
  }>>;
6953
7411
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
6954
- live: "live";
6955
7412
  deferred: "deferred";
7413
+ live: "live";
6956
7414
  "offline-backfill": "offline-backfill";
6957
7415
  }>>;
6958
7416
  pending: z.ZodOptional<z.ZodBoolean>;
@@ -6960,6 +7418,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6960
7418
  page: z.ZodNumber;
6961
7419
  pageSize: z.ZodNumber;
6962
7420
  total: z.ZodNumber;
7421
+ trustedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6963
7422
  error: z.ZodOptional<z.ZodString>;
6964
7423
  }, z.core.$strip>, z.ZodObject<{
6965
7424
  type: z.ZodLiteral<"dashboard.attestation.get.response">;
@@ -6990,20 +7449,20 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6990
7449
  }, z.core.$strip>;
6991
7450
  runId: z.ZodOptional<z.ZodString>;
6992
7451
  verifyStatus: z.ZodOptional<z.ZodEnum<{
6993
- pending: "pending";
6994
7452
  failed: "failed";
6995
- verified: "verified";
7453
+ pending: "pending";
6996
7454
  unverifiable: "unverifiable";
7455
+ verified: "verified";
6997
7456
  }>>;
6998
7457
  verifyReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6999
7458
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
7000
- triggered: "triggered";
7001
7459
  "run-remote": "run-remote";
7460
+ triggered: "triggered";
7002
7461
  }>>;
7003
7462
  originOrgId: z.ZodOptional<z.ZodString>;
7004
7463
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
7005
- live: "live";
7006
7464
  deferred: "deferred";
7465
+ live: "live";
7007
7466
  "offline-backfill": "offline-backfill";
7008
7467
  }>>;
7009
7468
  }, z.core.$strip>>;
@@ -7014,6 +7473,19 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7014
7473
  minted: z.ZodNumber;
7015
7474
  stillPending: z.ZodNumber;
7016
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>;
7017
7489
  }, z.core.$strip>, z.ZodObject<{
7018
7490
  type: z.ZodLiteral<"dashboard.runs.list.response">;
7019
7491
  requestId: z.ZodString;
@@ -7074,10 +7546,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7074
7546
  name: z.ZodNullable<z.ZodString>;
7075
7547
  provider: z.ZodString;
7076
7548
  subtype: z.ZodEnum<{
7077
- github_app: "github_app";
7078
7549
  generic_webhook: "generic_webhook";
7079
- universal_git: "universal_git";
7550
+ github_app: "github_app";
7080
7551
  local: "local";
7552
+ universal_git: "universal_git";
7081
7553
  }>;
7082
7554
  enabled: z.ZodBoolean;
7083
7555
  createdAt: z.ZodString;
@@ -7099,6 +7571,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7099
7571
  type: z.ZodLiteral<"run.cancel.response">;
7100
7572
  requestId: z.ZodString;
7101
7573
  cancelledJobs: z.ZodOptional<z.ZodNumber>;
7574
+ alreadyTerminal: z.ZodOptional<z.ZodBoolean>;
7102
7575
  error: z.ZodOptional<z.ZodString>;
7103
7576
  }, z.core.$strip>, z.ZodObject<{
7104
7577
  type: z.ZodLiteral<"dashboard.payload.response">;
@@ -7143,8 +7616,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7143
7616
  branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
7144
7617
  concurrencyLimit: z.ZodNullable<z.ZodNumber>;
7145
7618
  concurrencyStrategy: z.ZodNullable<z.ZodEnum<{
7146
- queue: "queue";
7147
7619
  "cancel-pending": "cancel-pending";
7620
+ queue: "queue";
7148
7621
  }>>;
7149
7622
  requiredReviewers: z.ZodNullable<z.ZodNumber>;
7150
7623
  waitTimerSeconds: z.ZodNullable<z.ZodNumber>;
@@ -7264,6 +7737,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7264
7737
  completedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
7265
7738
  context: z.ZodNullable<z.ZodString>;
7266
7739
  }, z.core.$strip>>>;
7740
+ hasMore: z.ZodOptional<z.ZodBoolean>;
7267
7741
  error: z.ZodOptional<z.ZodString>;
7268
7742
  }, z.core.$strip>, z.ZodObject<{
7269
7743
  type: z.ZodLiteral<"dashboard.held-runs.list.response">;
@@ -7274,16 +7748,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7274
7748
  contextId: z.ZodNullable<z.ZodString>;
7275
7749
  contextName: z.ZodNullable<z.ZodString>;
7276
7750
  holdType: z.ZodString;
7277
- queueType: z.ZodEnum<{
7278
- context: "context";
7279
- security: "security";
7280
- }>;
7281
- status: z.ZodEnum<{
7282
- pending: "pending";
7283
- approved: "approved";
7284
- rejected: "rejected";
7285
- expired: "expired";
7286
- }>;
7751
+ queueType: z.ZodString;
7752
+ status: z.ZodString;
7287
7753
  requestedAt: z.ZodCoercedString<unknown>;
7288
7754
  resolvedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
7289
7755
  resolvedBy: z.ZodNullable<z.ZodString>;
@@ -7293,9 +7759,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7293
7759
  trustTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7294
7760
  jobId: z.ZodOptional<z.ZodString>;
7295
7761
  holdScope: z.ZodOptional<z.ZodEnum<{
7296
- workflow: "workflow";
7297
7762
  job: "job";
7298
7763
  step: "step";
7764
+ workflow: "workflow";
7299
7765
  }>>;
7300
7766
  stepIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7301
7767
  requirement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -7354,10 +7820,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7354
7820
  routingKey: z.ZodString;
7355
7821
  name: z.ZodNullable<z.ZodString>;
7356
7822
  subtype: z.ZodNullable<z.ZodEnum<{
7357
- github_app: "github_app";
7358
7823
  generic_webhook: "generic_webhook";
7359
- universal_git: "universal_git";
7824
+ github_app: "github_app";
7360
7825
  local: "local";
7826
+ universal_git: "universal_git";
7361
7827
  }>>;
7362
7828
  provider: z.ZodString;
7363
7829
  }, z.core.$strip>>>;
@@ -7402,8 +7868,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7402
7868
  runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7403
7869
  runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7404
7870
  raftRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7405
- follower: "follower";
7406
7871
  candidate: "candidate";
7872
+ follower: "follower";
7407
7873
  leader: "leader";
7408
7874
  }>>>;
7409
7875
  raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -7437,8 +7903,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7437
7903
  scalers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7438
7904
  name: z.ZodString;
7439
7905
  type: z.ZodEnum<{
7440
- container: "container";
7441
7906
  "bare-metal": "bare-metal";
7907
+ container: "container";
7442
7908
  firecracker: "firecracker";
7443
7909
  kubernetes: "kubernetes";
7444
7910
  }>;
@@ -7488,8 +7954,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7488
7954
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
7489
7955
  name: z.ZodString;
7490
7956
  status: z.ZodEnum<{
7491
- pass: "pass";
7492
7957
  fail: "fail";
7958
+ pass: "pass";
7493
7959
  warn: "warn";
7494
7960
  }>;
7495
7961
  message: z.ZodNullable<z.ZodString>;
@@ -7511,13 +7977,13 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7511
7977
  platform: z.ZodNullable<z.ZodString>;
7512
7978
  arch: z.ZodNullable<z.ZodString>;
7513
7979
  lifecycleClass: z.ZodEnum<{
7514
- static: "static";
7515
7980
  ephemeral: "ephemeral";
7981
+ static: "static";
7516
7982
  }>;
7517
7983
  status: z.ZodEnum<{
7518
7984
  ready: "ready";
7519
- unreachable: "unreachable";
7520
7985
  stale: "stale";
7986
+ unreachable: "unreachable";
7521
7987
  }>;
7522
7988
  lastSeen: z.ZodString;
7523
7989
  }, z.core.$strip>>;
@@ -7532,13 +7998,13 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7532
7998
  platform: z.ZodNullable<z.ZodString>;
7533
7999
  arch: z.ZodNullable<z.ZodString>;
7534
8000
  lifecycleClass: z.ZodEnum<{
7535
- static: "static";
7536
8001
  ephemeral: "ephemeral";
8002
+ static: "static";
7537
8003
  }>;
7538
8004
  status: z.ZodEnum<{
7539
8005
  ready: "ready";
7540
- unreachable: "unreachable";
7541
8006
  stale: "stale";
8007
+ unreachable: "unreachable";
7542
8008
  }>;
7543
8009
  lastSeen: z.ZodString;
7544
8010
  }, z.core.$strip>>;
@@ -7560,26 +8026,26 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7560
8026
  platform: z.ZodNullable<z.ZodString>;
7561
8027
  arch: z.ZodNullable<z.ZodString>;
7562
8028
  lifecycleClass: z.ZodEnum<{
7563
- static: "static";
7564
8029
  ephemeral: "ephemeral";
8030
+ static: "static";
7565
8031
  }>;
7566
8032
  status: z.ZodEnum<{
7567
8033
  ready: "ready";
7568
- unreachable: "unreachable";
7569
8034
  stale: "stale";
8035
+ unreachable: "unreachable";
7570
8036
  }>;
7571
8037
  lastSeen: z.ZodString;
7572
8038
  }, z.core.$strip>;
7573
8039
  disposition: z.ZodEnum<{
8040
+ "skipped-ephemeral": "skipped-ephemeral";
7574
8041
  target: "target";
7575
8042
  "unreachable-durable": "unreachable-durable";
7576
- "skipped-ephemeral": "skipped-ephemeral";
7577
8043
  }>;
7578
8044
  }, z.core.$strip>>;
7579
8045
  onUnreachable: z.ZodEnum<{
8046
+ fail: "fail";
7580
8047
  hold: "hold";
7581
8048
  skip: "skip";
7582
- fail: "fail";
7583
8049
  }>;
7584
8050
  estimatedChildCount: z.ZodNumber;
7585
8051
  }, z.core.$strip>, z.ZodObject<{
@@ -7590,14 +8056,14 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7590
8056
  repoIdentifier: z.ZodString;
7591
8057
  sourceFile: z.ZodNullable<z.ZodString>;
7592
8058
  onUnreachable: z.ZodEnum<{
8059
+ fail: "fail";
7593
8060
  hold: "hold";
7594
8061
  skip: "skip";
7595
- fail: "fail";
7596
8062
  }>;
7597
8063
  disposition: z.ZodEnum<{
8064
+ "skipped-ephemeral": "skipped-ephemeral";
7598
8065
  target: "target";
7599
8066
  "unreachable-durable": "unreachable-durable";
7600
- "skipped-ephemeral": "skipped-ephemeral";
7601
8067
  }>;
7602
8068
  }, z.core.$strip>>;
7603
8069
  }, z.core.$strip>, z.ZodObject<{
@@ -7664,10 +8130,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7664
8130
  syncIntervalMs: z.ZodNumber;
7665
8131
  enabled: z.ZodBoolean;
7666
8132
  healthStatus: z.ZodEnum<{
8133
+ degraded: "degraded";
8134
+ healthy: "healthy";
7667
8135
  unknown: "unknown";
7668
8136
  unreachable: "unreachable";
7669
- healthy: "healthy";
7670
- degraded: "degraded";
7671
8137
  }>;
7672
8138
  scopeCount: z.ZodNumber;
7673
8139
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -7691,10 +8157,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7691
8157
  syncIntervalMs: z.ZodNumber;
7692
8158
  enabled: z.ZodBoolean;
7693
8159
  healthStatus: z.ZodEnum<{
8160
+ degraded: "degraded";
8161
+ healthy: "healthy";
7694
8162
  unknown: "unknown";
7695
8163
  unreachable: "unreachable";
7696
- healthy: "healthy";
7697
- degraded: "degraded";
7698
8164
  }>;
7699
8165
  scopeCount: z.ZodNumber;
7700
8166
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -7730,19 +8196,19 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7730
8196
  event: z.ZodString;
7731
8197
  action: z.ZodNullable<z.ZodString>;
7732
8198
  source: z.ZodEnum<{
7733
- relay: "relay";
7734
8199
  direct: "direct";
8200
+ relay: "relay";
7735
8201
  }>;
7736
8202
  provider: z.ZodString;
7737
8203
  repoIdentifier: z.ZodNullable<z.ZodString>;
7738
8204
  ref: z.ZodNullable<z.ZodString>;
7739
8205
  status: z.ZodEnum<{
7740
- failed: "failed";
7741
- received: "received";
7742
- processed: "processed";
7743
8206
  duplicate: "duplicate";
7744
- lockfile_missing: "lockfile_missing";
8207
+ failed: "failed";
7745
8208
  lockfile_corrupt: "lockfile_corrupt";
8209
+ lockfile_missing: "lockfile_missing";
8210
+ processed: "processed";
8211
+ received: "received";
7746
8212
  }>;
7747
8213
  matchedCount: z.ZodNumber;
7748
8214
  runId: z.ZodNullable<z.ZodString>;
@@ -7758,6 +8224,18 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7758
8224
  }, z.core.$strip>>>;
7759
8225
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7760
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>;
7761
8239
  }, z.core.$strip>, z.ZodObject<{
7762
8240
  type: z.ZodLiteral<"dashboard.event-log.detail.response">;
7763
8241
  requestId: z.ZodString;
@@ -7767,19 +8245,19 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7767
8245
  event: z.ZodString;
7768
8246
  action: z.ZodNullable<z.ZodString>;
7769
8247
  source: z.ZodEnum<{
7770
- relay: "relay";
7771
8248
  direct: "direct";
8249
+ relay: "relay";
7772
8250
  }>;
7773
8251
  provider: z.ZodString;
7774
8252
  repoIdentifier: z.ZodNullable<z.ZodString>;
7775
8253
  ref: z.ZodNullable<z.ZodString>;
7776
8254
  status: z.ZodEnum<{
7777
- failed: "failed";
7778
- received: "received";
7779
- processed: "processed";
7780
8255
  duplicate: "duplicate";
7781
- lockfile_missing: "lockfile_missing";
8256
+ failed: "failed";
7782
8257
  lockfile_corrupt: "lockfile_corrupt";
8258
+ lockfile_missing: "lockfile_missing";
8259
+ processed: "processed";
8260
+ received: "received";
7783
8261
  }>;
7784
8262
  matchedCount: z.ZodNumber;
7785
8263
  runId: z.ZodNullable<z.ZodString>;
@@ -7801,12 +8279,12 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7801
8279
  data: z.ZodString;
7802
8280
  isLast: z.ZodBoolean;
7803
8281
  error: z.ZodOptional<z.ZodEnum<{
7804
- payload_unavailable: "payload_unavailable";
7805
- not_found: "not_found";
7806
- read_failed: "read_failed";
7807
8282
  forbidden: "forbidden";
8283
+ not_found: "not_found";
7808
8284
  orch_stream_timeout: "orch_stream_timeout";
7809
8285
  orchestrator_unavailable: "orchestrator_unavailable";
8286
+ payload_unavailable: "payload_unavailable";
8287
+ read_failed: "read_failed";
7810
8288
  }>>;
7811
8289
  totalBytes: z.ZodOptional<z.ZodNumber>;
7812
8290
  }, z.core.$strip>, z.ZodObject<{
@@ -7896,122 +8374,131 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7896
8374
  orgId: z.ZodNullable<z.ZodString>;
7897
8375
  routingKey: z.ZodNullable<z.ZodString>;
7898
8376
  actorType: z.ZodEnum<{
7899
- user: "user";
7900
8377
  api_key: "api_key";
7901
- service_account: "service_account";
7902
8378
  platform_operator: "platform_operator";
8379
+ service_account: "service_account";
7903
8380
  system: "system";
8381
+ user: "user";
7904
8382
  }>;
7905
8383
  actorId: z.ZodString;
7906
8384
  actorMeta: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7907
8385
  actorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7908
8386
  actorDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7909
8387
  action: z.ZodEnum<{
7910
- "event_dlq.retry": "event_dlq.retry";
7911
- "event_dlq.discard": "event_dlq.discard";
7912
- "registration.disable": "registration.disable";
7913
- "registration.delete": "registration.delete";
7914
- "global_workflows.update": "global_workflows.update";
7915
- "fleet.host.declare": "fleet.host.declare";
7916
- "fleet.host.remove": "fleet.host.remove";
7917
- "run.detail.read": "run.detail.read";
7918
- "run.structured.read": "run.structured.read";
7919
- "runs.list.read": "runs.list.read";
7920
- "runs.filters.read": "runs.filters.read";
7921
- "sources.list.read": "sources.list.read";
7922
- "run.payload.read": "run.payload.read";
7923
- "run.orch_logs.read": "run.orch_logs.read";
7924
- "step.logs.read": "step.logs.read";
8388
+ "access_log.list.read": "access_log.list.read";
8389
+ archive_chunk: "archive_chunk";
8390
+ "artifacts.read": "artifacts.read";
8391
+ "attestation.retry": "attestation.retry";
7925
8392
  "attestations.read": "attestations.read";
7926
- "run.cancel": "run.cancel";
7927
- "run.rerun": "run.rerun";
7928
- "run.manual_schedule": "run.manual_schedule";
7929
- "run.trigger": "run.trigger";
7930
- "job.cancel": "job.cancel";
7931
- "event_log.list.read": "event_log.list.read";
7932
- "event_log.detail.read": "event_log.detail.read";
7933
- "event_log.payload.read": "event_log.payload.read";
7934
- "context.list.read": "context.list.read";
7935
- "context.get.read": "context.get.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";
7936
8399
  "context.create": "context.create";
7937
- "context.update": "context.update";
7938
8400
  "context.delete": "context.delete";
7939
- "context_var.list.read": "context_var.list.read";
7940
- "context_var.set": "context_var.set";
7941
- "context_var.delete": "context_var.delete";
7942
- "source_override.list.read": "source_override.list.read";
7943
- "source_override.set": "source_override.set";
7944
- "source_override.delete": "source_override.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";
7945
8405
  "context_binding.list.read": "context_binding.list.read";
7946
8406
  "context_binding.set": "context_binding.set";
7947
- "secret.list.read": "secret.list.read";
7948
- "secret.set": "secret.set";
7949
- "secret.delete": "secret.delete";
7950
- "secret.reveal": "secret.reveal";
7951
- "secret_scope.create": "secret_scope.create";
7952
- "secret_scope.rename": "secret_scope.rename";
7953
- "secret_scope.delete": "secret_scope.delete";
7954
- "context.history.read": "context.history.read";
7955
- "held_run.list.read": "held_run.list.read";
7956
- "held_run.approve": "held_run.approve";
7957
- "held_run.auto_approve": "held_run.auto_approve";
7958
- "held_run.reject": "held_run.reject";
7959
- "held_run.request": "held_run.request";
7960
- "held_run.expire": "held_run.expire";
7961
- "registration.list.read": "registration.list.read";
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";
7962
8416
  "diagnostics.read": "diagnostics.read";
7963
- "scaler.capacity.read": "scaler.capacity.read";
7964
- "scaler.agents.read": "scaler.agents.read";
7965
- "fleet.read": "fleet.read";
8417
+ "event_dlq.discard": "event_dlq.discard";
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";
8423
+ "fleet.host.declare": "fleet.host.declare";
8424
+ "fleet.host.remove": "fleet.host.remove";
7966
8425
  "fleet.init_runner.bringup": "fleet.init_runner.bringup";
7967
8426
  "fleet.pre_boot.send": "fleet.pre_boot.send";
7968
- "backend.list.read": "backend.list.read";
7969
- "backend.get.read": "backend.get.read";
7970
- "backend.sync": "backend.sync";
7971
- "backend.sync.one": "backend.sync.one";
7972
- "backend.test": "backend.test";
8427
+ "fleet.read": "fleet.read";
7973
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";
7974
8437
  "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
7975
- "cluster_name.update": "cluster_name.update";
7976
- "attestation.retry": "attestation.retry";
7977
- "access_log.list.read": "access_log.list.read";
7978
- "event_dlq.list.read": "event_dlq.list.read";
7979
- archive_chunk: "archive_chunk";
7980
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";
8443
+ "run.detail.read": "run.detail.read";
8444
+ "run.manual_schedule": "run.manual_schedule";
8445
+ "run.orch_logs.read": "run.orch_logs.read";
8446
+ "run.payload.read": "run.payload.read";
8447
+ "run.rerun": "run.rerun";
8448
+ "run.structured.read": "run.structured.read";
8449
+ "run.trigger": "run.trigger";
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";
8454
+ "secret.delete": "secret.delete";
8455
+ "secret.list.read": "secret.list.read";
8456
+ "secret.reveal": "secret.reveal";
8457
+ "secret.set": "secret.set";
8458
+ "secret_scope.create": "secret_scope.create";
8459
+ "secret_scope.delete": "secret_scope.delete";
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";
7981
8467
  }>;
7982
8468
  targetType: z.ZodNullable<z.ZodEnum<{
7983
- job: "job";
7984
- step: "step";
7985
- run: "run";
8469
+ access_log: "access_log";
8470
+ attestation: "attestation";
8471
+ backend: "backend";
8472
+ cluster_meta: "cluster_meta";
7986
8473
  context: "context";
7987
- payload: "payload";
8474
+ database: "database";
8475
+ diagnostics: "diagnostics";
8476
+ event_dlq: "event_dlq";
7988
8477
  event_log: "event_log";
7989
8478
  event_log_payload: "event_log_payload";
7990
- secret_scope: "secret_scope";
7991
- registration: "registration";
7992
- backend: "backend";
7993
- diagnostics: "diagnostics";
7994
- scaler: "scaler";
7995
8479
  fleet: "fleet";
7996
8480
  held_run: "held_run";
7997
- access_log: "access_log";
7998
- event_dlq: "event_dlq";
8481
+ job: "job";
7999
8482
  org_settings: "org_settings";
8000
- cluster_meta: "cluster_meta";
8001
- attestation: "attestation";
8483
+ payload: "payload";
8484
+ registration: "registration";
8485
+ run: "run";
8486
+ scaler: "scaler";
8487
+ secret_scope: "secret_scope";
8488
+ step: "step";
8002
8489
  }>>;
8003
8490
  targetId: z.ZodNullable<z.ZodString>;
8004
8491
  requestId: z.ZodNullable<z.ZodString>;
8005
8492
  source: z.ZodEnum<{
8493
+ admin_cli: "admin_cli";
8494
+ admin_http: "admin_http";
8006
8495
  agent: "agent";
8007
8496
  platform_proxy: "platform_proxy";
8008
- admin_http: "admin_http";
8009
- admin_cli: "admin_cli";
8010
8497
  }>;
8011
8498
  outcome: z.ZodEnum<{
8012
- error: "error";
8013
8499
  allowed: "allowed";
8014
8500
  denied: "denied";
8501
+ error: "error";
8015
8502
  }>;
8016
8503
  errorMessage: z.ZodNullable<z.ZodString>;
8017
8504
  agentLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8032,8 +8519,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
8032
8519
  requestId: z.ZodString;
8033
8520
  runId: z.ZodOptional<z.ZodString>;
8034
8521
  status: z.ZodOptional<z.ZodEnum<{
8035
- rejected: "rejected";
8036
8522
  accepted: "accepted";
8523
+ rejected: "rejected";
8037
8524
  }>>;
8038
8525
  reason: z.ZodOptional<z.ZodString>;
8039
8526
  jobIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -8076,6 +8563,9 @@ export type DashboardPlatformToOrchMessage = z.infer<typeof dashboardPlatformToO
8076
8563
  export type EventLogListItem = z.infer<typeof eventLogListItemSchema>;
8077
8564
  export type DashboardEventLogListRequest = z.infer<typeof dashboardEventLogListRequestSchema>;
8078
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>;
8079
8569
  export type DashboardEventLogDetailRequest = z.infer<typeof dashboardEventLogDetailRequestSchema>;
8080
8570
  export type DashboardEventLogDetailResponse = z.infer<typeof dashboardEventLogDetailResponseSchema>;
8081
8571
  export type DashboardEventLogPayloadStreamRequest = z.infer<typeof dashboardEventLogPayloadStreamRequestSchema>;
@@ -8160,14 +8650,17 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8160
8650
  run: "run";
8161
8651
  }>;
8162
8652
  category: z.ZodEnum<{
8163
- secret_resolution: "secret_resolution";
8164
- install_secrets: "install_secrets";
8165
- lock_resolution: "lock_resolution";
8653
+ approval_misconfig: "approval_misconfig";
8166
8654
  build_coordination: "build_coordination";
8167
8655
  context_rules: "context_rules";
8168
8656
  dynamic_eval: "dynamic_eval";
8169
- no_agent: "no_agent";
8657
+ install_secrets: "install_secrets";
8658
+ lock_resolution: "lock_resolution";
8170
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";
8171
8664
  }>;
8172
8665
  message: z.ZodString;
8173
8666
  jobName: z.ZodOptional<z.ZodString>;
@@ -8175,17 +8668,18 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8175
8668
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
8176
8669
  upstreamName: z.ZodString;
8177
8670
  runOn: z.ZodArray<z.ZodEnum<{
8178
- skipped: "skipped";
8179
- success: "success";
8180
- pending: "pending";
8181
- running: "running";
8182
- failed: "failed";
8183
8671
  cancelled: "cancelled";
8184
8672
  cancelling: "cancelling";
8673
+ drift_dropped: "drift_dropped";
8674
+ failed: "failed";
8675
+ pending: "pending";
8185
8676
  queued: "queued";
8186
8677
  recovering: "recovering";
8678
+ running: "running";
8679
+ skipped: "skipped";
8680
+ success: "success";
8187
8681
  timed_out_stale: "timed_out_stale";
8188
- drift_dropped: "drift_dropped";
8682
+ unroutable: "unroutable";
8189
8683
  }>>;
8190
8684
  }, z.core.$strip>>>>;
8191
8685
  steps: z.ZodArray<z.ZodObject<{
@@ -8200,30 +8694,30 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8200
8694
  stepType: z.ZodOptional<z.ZodString>;
8201
8695
  secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8202
8696
  checkOutcome: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
8203
- skipped: "skipped";
8204
8697
  applied: "applied";
8205
8698
  declined: "declined";
8206
8699
  "dry-run": "dry-run";
8207
8700
  no_check: "no_check";
8701
+ skipped: "skipped";
8208
8702
  }>>>;
8209
8703
  driftSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8210
8704
  concurrencyKind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
8211
- sequential: "sequential";
8212
8705
  "parallel-child": "parallel-child";
8213
8706
  "parallel-group": "parallel-group";
8707
+ sequential: "sequential";
8214
8708
  }>>>;
8215
8709
  groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8216
8710
  }, z.core.$strip>>;
8217
8711
  }, z.core.$strip>>;
8218
8712
  trustContext: z.ZodOptional<z.ZodObject<{
8219
8713
  trustTier: z.ZodNullable<z.ZodEnum<{
8220
- unknown: "unknown";
8221
8714
  known: "known";
8222
8715
  trusted: "trusted";
8716
+ unknown: "unknown";
8223
8717
  }>>;
8224
8718
  lockFileSource: z.ZodNullable<z.ZodEnum<{
8225
- head: "head";
8226
8719
  base: "base";
8720
+ head: "head";
8227
8721
  }>>;
8228
8722
  contributorUsername: z.ZodNullable<z.ZodString>;
8229
8723
  }, z.core.$strip>>;
@@ -8238,14 +8732,17 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8238
8732
  run: "run";
8239
8733
  }>;
8240
8734
  category: z.ZodEnum<{
8241
- secret_resolution: "secret_resolution";
8242
- install_secrets: "install_secrets";
8243
- lock_resolution: "lock_resolution";
8735
+ approval_misconfig: "approval_misconfig";
8244
8736
  build_coordination: "build_coordination";
8245
8737
  context_rules: "context_rules";
8246
8738
  dynamic_eval: "dynamic_eval";
8247
- no_agent: "no_agent";
8739
+ install_secrets: "install_secrets";
8740
+ lock_resolution: "lock_resolution";
8248
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";
8249
8746
  }>;
8250
8747
  message: z.ZodString;
8251
8748
  jobName: z.ZodOptional<z.ZodString>;
@@ -8296,20 +8793,20 @@ export declare const dashboardAttestationsApiResponseSchema: z.ZodObject<{
8296
8793
  }, z.core.$strip>;
8297
8794
  runId: z.ZodOptional<z.ZodString>;
8298
8795
  verifyStatus: z.ZodOptional<z.ZodEnum<{
8299
- pending: "pending";
8300
8796
  failed: "failed";
8301
- verified: "verified";
8797
+ pending: "pending";
8302
8798
  unverifiable: "unverifiable";
8799
+ verified: "verified";
8303
8800
  }>>;
8304
8801
  verifyReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8305
8802
  sourceOrigin: z.ZodOptional<z.ZodEnum<{
8306
- triggered: "triggered";
8307
8803
  "run-remote": "run-remote";
8804
+ triggered: "triggered";
8308
8805
  }>>;
8309
8806
  originOrgId: z.ZodOptional<z.ZodString>;
8310
8807
  attestationOrigin: z.ZodOptional<z.ZodEnum<{
8311
- live: "live";
8312
8808
  deferred: "deferred";
8809
+ live: "live";
8313
8810
  "offline-backfill": "offline-backfill";
8314
8811
  }>>;
8315
8812
  }, z.core.$strip>>;
@@ -8354,16 +8851,23 @@ export declare const runListItemSchema: z.ZodObject<{
8354
8851
  routingKey: z.ZodString;
8355
8852
  name: z.ZodNullable<z.ZodString>;
8356
8853
  subtype: z.ZodNullable<z.ZodEnum<{
8357
- github_app: "github_app";
8358
8854
  generic_webhook: "generic_webhook";
8359
- universal_git: "universal_git";
8855
+ github_app: "github_app";
8360
8856
  local: "local";
8857
+ universal_git: "universal_git";
8361
8858
  }>>;
8362
8859
  provider: z.ZodString;
8363
8860
  }, z.core.$strip>>;
8364
8861
  }, z.core.$strip>;
8365
8862
  export type RunListItem = z.infer<typeof runListItemSchema>;
8366
- /** 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
+ */
8367
8871
  export declare const runListResponseSchema: z.ZodObject<{
8368
8872
  runs: z.ZodArray<z.ZodObject<{
8369
8873
  runId: z.ZodString;
@@ -8404,18 +8908,19 @@ export declare const runListResponseSchema: z.ZodObject<{
8404
8908
  routingKey: z.ZodString;
8405
8909
  name: z.ZodNullable<z.ZodString>;
8406
8910
  subtype: z.ZodNullable<z.ZodEnum<{
8407
- github_app: "github_app";
8408
8911
  generic_webhook: "generic_webhook";
8409
- universal_git: "universal_git";
8912
+ github_app: "github_app";
8410
8913
  local: "local";
8914
+ universal_git: "universal_git";
8411
8915
  }>>;
8412
8916
  provider: z.ZodString;
8413
8917
  }, z.core.$strip>>;
8414
8918
  }, z.core.$strip>>;
8415
- total: z.ZodNumber;
8416
- page: z.ZodNumber;
8417
- pageSize: z.ZodNumber;
8919
+ nextCursor: z.ZodNullable<z.ZodString>;
8920
+ prevCursor: z.ZodNullable<z.ZodString>;
8418
8921
  hasMore: z.ZodBoolean;
8922
+ approxTotal: z.ZodNumber;
8923
+ pageSize: z.ZodNumber;
8419
8924
  }, z.core.$strip>;
8420
8925
  export type RunListResponse = z.infer<typeof runListResponseSchema>;
8421
8926
  declare const diagnosticsInfraAgentSchema: z.ZodObject<{
@@ -8458,17 +8963,19 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
8458
8963
  scalerBackends: z.ZodArray<z.ZodString>;
8459
8964
  deployment: z.ZodObject<{
8460
8965
  mode: z.ZodEnum<{
8461
- unknown: "unknown";
8462
- systemd: "systemd";
8966
+ compose: "compose";
8463
8967
  launchd: "launchd";
8968
+ systemd: "systemd";
8969
+ unknown: "unknown";
8464
8970
  windows: "windows";
8465
- compose: "compose";
8466
8971
  }>;
8467
8972
  containerName: z.ZodNullable<z.ZodString>;
8468
8973
  containerRuntime: z.ZodNullable<z.ZodEnum<{
8469
- podman: "podman";
8470
8974
  docker: "docker";
8975
+ podman: "podman";
8471
8976
  }>>;
8977
+ adminInvocation: z.ZodNullable<z.ZodString>;
8978
+ adminPath: z.ZodNullable<z.ZodString>;
8472
8979
  }, z.core.$strip>;
8473
8980
  s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8474
8981
  agentCount: z.ZodNumber;
@@ -8522,8 +9029,8 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
8522
9029
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
8523
9030
  name: z.ZodString;
8524
9031
  status: z.ZodEnum<{
8525
- pass: "pass";
8526
9032
  fail: "fail";
9033
+ pass: "pass";
8527
9034
  warn: "warn";
8528
9035
  }>;
8529
9036
  message: z.ZodNullable<z.ZodString>;
@@ -8532,6 +9039,22 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
8532
9039
  }, z.core.$strip>>>;
8533
9040
  error: z.ZodOptional<z.ZodString>;
8534
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>;
8535
9058
  export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
8536
9059
  orchestrators: z.ZodArray<z.ZodObject<{
8537
9060
  connectionId: z.ZodString;
@@ -8550,17 +9073,19 @@ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
8550
9073
  scalerBackends: z.ZodArray<z.ZodString>;
8551
9074
  deployment: z.ZodObject<{
8552
9075
  mode: z.ZodEnum<{
8553
- unknown: "unknown";
8554
- systemd: "systemd";
9076
+ compose: "compose";
8555
9077
  launchd: "launchd";
9078
+ systemd: "systemd";
9079
+ unknown: "unknown";
8556
9080
  windows: "windows";
8557
- compose: "compose";
8558
9081
  }>;
8559
9082
  containerName: z.ZodNullable<z.ZodString>;
8560
9083
  containerRuntime: z.ZodNullable<z.ZodEnum<{
8561
- podman: "podman";
8562
9084
  docker: "docker";
9085
+ podman: "podman";
8563
9086
  }>>;
9087
+ adminInvocation: z.ZodNullable<z.ZodString>;
9088
+ adminPath: z.ZodNullable<z.ZodString>;
8564
9089
  }, z.core.$strip>;
8565
9090
  s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8566
9091
  agentCount: z.ZodNumber;
@@ -8614,8 +9139,8 @@ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
8614
9139
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
8615
9140
  name: z.ZodString;
8616
9141
  status: z.ZodEnum<{
8617
- pass: "pass";
8618
9142
  fail: "fail";
9143
+ pass: "pass";
8619
9144
  warn: "warn";
8620
9145
  }>;
8621
9146
  message: z.ZodNullable<z.ZodString>;
@@ -8766,11 +9291,10 @@ export declare const DASHBOARD_REQUEST_TYPES: readonly string[];
8766
9291
  export declare const DASHBOARD_REQUEST_TYPE_SET: ReadonlySet<string>;
8767
9292
  /** Structured error code on a dashboard `*.response` frame's `code` field. */
8768
9293
  export declare const DashboardResponseErrorCode: z.ZodEnum<{
8769
- unsupported_request_type: "unsupported_request_type";
9294
+ internal_error: "internal_error";
8770
9295
  invalid_payload: "invalid_payload";
8771
9296
  unsupported_message_type: "unsupported_message_type";
8772
- internal_error: "internal_error";
9297
+ unsupported_request_type: "unsupported_request_type";
8773
9298
  }>;
8774
9299
  export type DashboardResponseErrorCode = z.infer<typeof DashboardResponseErrorCode>;
8775
- export {};
8776
9300
  //# sourceMappingURL=dashboard.d.ts.map