@kici-dev/engine 0.1.14 → 0.1.15

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 (43) hide show
  1. package/README.md +13 -1
  2. package/dist/audit/access-log-policy.js +12 -0
  3. package/dist/audit/retention-policy.js +6 -0
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.js +8 -7
  6. package/dist/labels.d.ts +7 -0
  7. package/dist/labels.js +11 -2
  8. package/dist/metrics/metric-catalog.generated.d.ts +50 -0
  9. package/dist/metrics/metric-catalog.generated.js +60 -0
  10. package/dist/protocol/analytics-events.d.ts +16 -0
  11. package/dist/protocol/analytics-events.js +20 -0
  12. package/dist/protocol/dashboard-write-operations.d.ts +4 -1
  13. package/dist/protocol/dashboard-write-operations.js +11 -1
  14. package/dist/protocol/messages/access-log.d.ts +16 -0
  15. package/dist/protocol/messages/access-log.js +3 -0
  16. package/dist/protocol/messages/actor.d.ts +2 -0
  17. package/dist/protocol/messages/actor.js +12 -2
  18. package/dist/protocol/messages/auth.d.ts +1 -0
  19. package/dist/protocol/messages/capabilities.d.ts +1 -0
  20. package/dist/protocol/messages/dashboard-global-workflows.d.ts +2 -0
  21. package/dist/protocol/messages/dashboard.d.ts +559 -6
  22. package/dist/protocol/messages/dashboard.js +164 -9
  23. package/dist/protocol/messages/event-log.d.ts +4 -0
  24. package/dist/protocol/messages/event-log.js +4 -0
  25. package/dist/protocol/messages/execution-status.d.ts +56 -3
  26. package/dist/protocol/messages/execution-status.js +44 -4
  27. package/dist/protocol/messages/orchestrator-agent.d.ts +164 -0
  28. package/dist/protocol/messages/orchestrator-agent.js +118 -2
  29. package/dist/protocol/messages/peer.d.ts +13 -0
  30. package/dist/protocol/messages/peer.js +14 -1
  31. package/dist/protocol/messages/platform-orchestrator.d.ts +152 -0
  32. package/dist/protocol/messages/platform-orchestrator.js +3 -55
  33. package/dist/protocol/messages/run-events.d.ts +1 -0
  34. package/dist/provider/index.d.ts +1 -0
  35. package/dist/provider/index.js +2 -1
  36. package/dist/provider/lock-file-parse-error.d.ts +14 -0
  37. package/dist/provider/lock-file-parse-error.js +22 -0
  38. package/dist/trigger/types.d.ts +8 -1
  39. package/dist/trigger/types.js +3 -1
  40. package/dist/ws/close-codes.d.ts +7 -0
  41. package/dist/ws/close-codes.js +8 -1
  42. package/package.json +15 -8
  43. package/sbom.spdx.json +5 -5
@@ -17,6 +17,7 @@ export declare const dashboardRunDetailRequestSchema: z.ZodObject<{
17
17
  type: z.ZodLiteral<"platform_operator">;
18
18
  sub: z.ZodString;
19
19
  reason: z.ZodString;
20
+ sessionId: z.ZodOptional<z.ZodString>;
20
21
  }, z.core.$strip>, z.ZodObject<{
21
22
  type: z.ZodLiteral<"system">;
22
23
  component: z.ZodString;
@@ -41,6 +42,7 @@ export declare const dashboardStepLogsRequestSchema: z.ZodObject<{
41
42
  type: z.ZodLiteral<"platform_operator">;
42
43
  sub: z.ZodString;
43
44
  reason: z.ZodString;
45
+ sessionId: z.ZodOptional<z.ZodString>;
44
46
  }, z.core.$strip>, z.ZodObject<{
45
47
  type: z.ZodLiteral<"system">;
46
48
  component: z.ZodString;
@@ -184,6 +186,215 @@ export declare const dashboardStepLogsResponseSchema: z.ZodObject<{
184
186
  totalLines: z.ZodNumber;
185
187
  error: z.ZodOptional<z.ZodString>;
186
188
  }, z.core.$strip>;
189
+ /**
190
+ * Run-summary projection from the orchestrator's execution_runs table.
191
+ *
192
+ * The required fields (`runId` / `routingKey` / `status`) are always present.
193
+ * Every other field is optional: the orchestrator omits what it cannot
194
+ * supply, and the customer runs page degrades a missing field to '—'.
195
+ */
196
+ export declare const dashboardRunSummarySchema: z.ZodObject<{
197
+ runId: z.ZodString;
198
+ routingKey: z.ZodString;
199
+ status: z.ZodString;
200
+ repoIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
+ createdAt: z.ZodString;
202
+ updatedAt: z.ZodOptional<z.ZodString>;
203
+ trigger: z.ZodOptional<z.ZodString>;
204
+ workflowName: z.ZodOptional<z.ZodString>;
205
+ sha: z.ZodOptional<z.ZodString>;
206
+ ref: z.ZodOptional<z.ZodString>;
207
+ triggerEvent: z.ZodOptional<z.ZodString>;
208
+ commitMessage: z.ZodOptional<z.ZodString>;
209
+ jobCount: z.ZodOptional<z.ZodNumber>;
210
+ startedAt: z.ZodOptional<z.ZodString>;
211
+ completedAt: z.ZodOptional<z.ZodString>;
212
+ durationMs: z.ZodOptional<z.ZodNumber>;
213
+ parentRunId: z.ZodOptional<z.ZodString>;
214
+ originalRunId: z.ZodOptional<z.ZodString>;
215
+ triggeredBy: z.ZodOptional<z.ZodString>;
216
+ cancelledBy: z.ZodOptional<z.ZodString>;
217
+ failureReason: z.ZodOptional<z.ZodString>;
218
+ hadCompileJob: z.ZodOptional<z.ZodBoolean>;
219
+ compileJobId: z.ZodOptional<z.ZodString>;
220
+ source: z.ZodOptional<z.ZodObject<{
221
+ routingKey: z.ZodString;
222
+ name: z.ZodNullable<z.ZodString>;
223
+ subtype: z.ZodString;
224
+ provider: z.ZodString;
225
+ }, z.core.$strip>>;
226
+ }, z.core.$strip>;
227
+ export type DashboardRunSummary = z.infer<typeof dashboardRunSummarySchema>;
228
+ /** Request a page of run summaries from the orchestrator. */
229
+ export declare const dashboardRunsListRequestSchema: z.ZodObject<{
230
+ type: z.ZodLiteral<"dashboard.runs.list">;
231
+ requestId: z.ZodString;
232
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
233
+ type: z.ZodLiteral<"user">;
234
+ sub: z.ZodString;
235
+ }, z.core.$strip>, z.ZodObject<{
236
+ type: z.ZodLiteral<"api_key">;
237
+ keyId: z.ZodString;
238
+ ownerSub: z.ZodString;
239
+ }, z.core.$strip>, z.ZodObject<{
240
+ type: z.ZodLiteral<"service_account">;
241
+ id: z.ZodString;
242
+ }, z.core.$strip>, z.ZodObject<{
243
+ type: z.ZodLiteral<"platform_operator">;
244
+ sub: z.ZodString;
245
+ reason: z.ZodString;
246
+ sessionId: z.ZodOptional<z.ZodString>;
247
+ }, z.core.$strip>, z.ZodObject<{
248
+ type: z.ZodLiteral<"system">;
249
+ component: z.ZodString;
250
+ }, z.core.$strip>], "type">;
251
+ limit: z.ZodOptional<z.ZodNumber>;
252
+ cursor: z.ZodOptional<z.ZodString>;
253
+ }, z.core.$strip>;
254
+ export type DashboardRunsListRequest = z.infer<typeof dashboardRunsListRequestSchema>;
255
+ /** Response with the page of run summaries + next-page cursor. */
256
+ export declare const dashboardRunsListResponseSchema: z.ZodObject<{
257
+ type: z.ZodLiteral<"dashboard.runs.list.response">;
258
+ requestId: z.ZodString;
259
+ runs: z.ZodArray<z.ZodObject<{
260
+ runId: z.ZodString;
261
+ routingKey: z.ZodString;
262
+ status: z.ZodString;
263
+ repoIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
+ createdAt: z.ZodString;
265
+ updatedAt: z.ZodOptional<z.ZodString>;
266
+ trigger: z.ZodOptional<z.ZodString>;
267
+ workflowName: z.ZodOptional<z.ZodString>;
268
+ sha: z.ZodOptional<z.ZodString>;
269
+ ref: z.ZodOptional<z.ZodString>;
270
+ triggerEvent: z.ZodOptional<z.ZodString>;
271
+ commitMessage: z.ZodOptional<z.ZodString>;
272
+ jobCount: z.ZodOptional<z.ZodNumber>;
273
+ startedAt: z.ZodOptional<z.ZodString>;
274
+ completedAt: z.ZodOptional<z.ZodString>;
275
+ durationMs: z.ZodOptional<z.ZodNumber>;
276
+ parentRunId: z.ZodOptional<z.ZodString>;
277
+ originalRunId: z.ZodOptional<z.ZodString>;
278
+ triggeredBy: z.ZodOptional<z.ZodString>;
279
+ cancelledBy: z.ZodOptional<z.ZodString>;
280
+ failureReason: z.ZodOptional<z.ZodString>;
281
+ hadCompileJob: z.ZodOptional<z.ZodBoolean>;
282
+ compileJobId: z.ZodOptional<z.ZodString>;
283
+ source: z.ZodOptional<z.ZodObject<{
284
+ routingKey: z.ZodString;
285
+ name: z.ZodNullable<z.ZodString>;
286
+ subtype: z.ZodString;
287
+ provider: z.ZodString;
288
+ }, z.core.$strip>>;
289
+ }, z.core.$strip>>;
290
+ nextCursor: z.ZodOptional<z.ZodString>;
291
+ error: z.ZodOptional<z.ZodString>;
292
+ }, z.core.$strip>;
293
+ export type DashboardRunsListResponse = z.infer<typeof dashboardRunsListResponseSchema>;
294
+ /** Request the distinct filter-option values from the orchestrator. */
295
+ export declare const dashboardRunsFiltersRequestSchema: z.ZodObject<{
296
+ type: z.ZodLiteral<"dashboard.runs.filters">;
297
+ requestId: z.ZodString;
298
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
299
+ type: z.ZodLiteral<"user">;
300
+ sub: z.ZodString;
301
+ }, z.core.$strip>, z.ZodObject<{
302
+ type: z.ZodLiteral<"api_key">;
303
+ keyId: z.ZodString;
304
+ ownerSub: z.ZodString;
305
+ }, z.core.$strip>, z.ZodObject<{
306
+ type: z.ZodLiteral<"service_account">;
307
+ id: z.ZodString;
308
+ }, z.core.$strip>, z.ZodObject<{
309
+ type: z.ZodLiteral<"platform_operator">;
310
+ sub: z.ZodString;
311
+ reason: z.ZodString;
312
+ sessionId: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strip>, z.ZodObject<{
314
+ type: z.ZodLiteral<"system">;
315
+ component: z.ZodString;
316
+ }, z.core.$strip>], "type">;
317
+ }, z.core.$strip>;
318
+ export type DashboardRunsFiltersRequest = z.infer<typeof dashboardRunsFiltersRequestSchema>;
319
+ /** Response with the distinct filter-option values. */
320
+ export declare const dashboardRunsFiltersResponseSchema: z.ZodObject<{
321
+ type: z.ZodLiteral<"dashboard.runs.filters.response">;
322
+ requestId: z.ZodString;
323
+ statuses: z.ZodArray<z.ZodString>;
324
+ workflows: z.ZodArray<z.ZodString>;
325
+ branches: z.ZodArray<z.ZodString>;
326
+ repositories: z.ZodArray<z.ZodString>;
327
+ triggerTypes: z.ZodArray<z.ZodString>;
328
+ sources: z.ZodArray<z.ZodObject<{
329
+ routingKey: z.ZodString;
330
+ name: z.ZodNullable<z.ZodString>;
331
+ }, z.core.$strip>>;
332
+ error: z.ZodOptional<z.ZodString>;
333
+ }, z.core.$strip>;
334
+ export type DashboardRunsFiltersResponse = z.infer<typeof dashboardRunsFiltersResponseSchema>;
335
+ /** Minimal source-summary projection from the orchestrator's sources tables. */
336
+ export declare const dashboardSourceSummarySchema: z.ZodObject<{
337
+ routingKey: z.ZodString;
338
+ name: z.ZodNullable<z.ZodString>;
339
+ provider: z.ZodString;
340
+ subtype: z.ZodEnum<{
341
+ github_app: "github_app";
342
+ generic_webhook: "generic_webhook";
343
+ universal_git: "universal_git";
344
+ internal: "internal";
345
+ }>;
346
+ enabled: z.ZodBoolean;
347
+ createdAt: z.ZodString;
348
+ }, z.core.$strip>;
349
+ export type DashboardSourceSummary = z.infer<typeof dashboardSourceSummarySchema>;
350
+ /** Request a page of source summaries from the orchestrator. */
351
+ export declare const dashboardSourcesListRequestSchema: z.ZodObject<{
352
+ type: z.ZodLiteral<"dashboard.sources.list">;
353
+ requestId: z.ZodString;
354
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
355
+ type: z.ZodLiteral<"user">;
356
+ sub: z.ZodString;
357
+ }, z.core.$strip>, z.ZodObject<{
358
+ type: z.ZodLiteral<"api_key">;
359
+ keyId: z.ZodString;
360
+ ownerSub: z.ZodString;
361
+ }, z.core.$strip>, z.ZodObject<{
362
+ type: z.ZodLiteral<"service_account">;
363
+ id: z.ZodString;
364
+ }, z.core.$strip>, z.ZodObject<{
365
+ type: z.ZodLiteral<"platform_operator">;
366
+ sub: z.ZodString;
367
+ reason: z.ZodString;
368
+ sessionId: z.ZodOptional<z.ZodString>;
369
+ }, z.core.$strip>, z.ZodObject<{
370
+ type: z.ZodLiteral<"system">;
371
+ component: z.ZodString;
372
+ }, z.core.$strip>], "type">;
373
+ limit: z.ZodOptional<z.ZodNumber>;
374
+ cursor: z.ZodOptional<z.ZodString>;
375
+ }, z.core.$strip>;
376
+ export type DashboardSourcesListRequest = z.infer<typeof dashboardSourcesListRequestSchema>;
377
+ /** Response with the page of source summaries + next-page cursor. */
378
+ export declare const dashboardSourcesListResponseSchema: z.ZodObject<{
379
+ type: z.ZodLiteral<"dashboard.sources.list.response">;
380
+ requestId: z.ZodString;
381
+ sources: z.ZodArray<z.ZodObject<{
382
+ routingKey: z.ZodString;
383
+ name: z.ZodNullable<z.ZodString>;
384
+ provider: z.ZodString;
385
+ subtype: z.ZodEnum<{
386
+ github_app: "github_app";
387
+ generic_webhook: "generic_webhook";
388
+ universal_git: "universal_git";
389
+ internal: "internal";
390
+ }>;
391
+ enabled: z.ZodBoolean;
392
+ createdAt: z.ZodString;
393
+ }, z.core.$strip>>;
394
+ nextCursor: z.ZodOptional<z.ZodString>;
395
+ error: z.ZodOptional<z.ZodString>;
396
+ }, z.core.$strip>;
397
+ export type DashboardSourcesListResponse = z.infer<typeof dashboardSourcesListResponseSchema>;
187
398
  /** Request to re-run a completed run. */
188
399
  export declare const runRerunRequestSchema: z.ZodObject<{
189
400
  type: z.ZodLiteral<"run.rerun.request">;
@@ -202,6 +413,7 @@ export declare const runRerunRequestSchema: z.ZodObject<{
202
413
  type: z.ZodLiteral<"platform_operator">;
203
414
  sub: z.ZodString;
204
415
  reason: z.ZodString;
416
+ sessionId: z.ZodOptional<z.ZodString>;
205
417
  }, z.core.$strip>, z.ZodObject<{
206
418
  type: z.ZodLiteral<"system">;
207
419
  component: z.ZodString;
@@ -227,6 +439,7 @@ export declare const manualScheduleRequestSchema: z.ZodObject<{
227
439
  type: z.ZodLiteral<"platform_operator">;
228
440
  sub: z.ZodString;
229
441
  reason: z.ZodString;
442
+ sessionId: z.ZodOptional<z.ZodString>;
230
443
  }, z.core.$strip>, z.ZodObject<{
231
444
  type: z.ZodLiteral<"system">;
232
445
  component: z.ZodString;
@@ -251,6 +464,7 @@ export declare const runCancelRequestSchema: z.ZodObject<{
251
464
  type: z.ZodLiteral<"platform_operator">;
252
465
  sub: z.ZodString;
253
466
  reason: z.ZodString;
467
+ sessionId: z.ZodOptional<z.ZodString>;
254
468
  }, z.core.$strip>, z.ZodObject<{
255
469
  type: z.ZodLiteral<"system">;
256
470
  component: z.ZodString;
@@ -276,6 +490,7 @@ export declare const dashboardPayloadRequestSchema: z.ZodObject<{
276
490
  type: z.ZodLiteral<"platform_operator">;
277
491
  sub: z.ZodString;
278
492
  reason: z.ZodString;
493
+ sessionId: z.ZodOptional<z.ZodString>;
279
494
  }, z.core.$strip>, z.ZodObject<{
280
495
  type: z.ZodLiteral<"system">;
281
496
  component: z.ZodString;
@@ -309,6 +524,7 @@ export declare const eventLogListItemSchema: z.ZodObject<{
309
524
  processed: "processed";
310
525
  duplicate: "duplicate";
311
526
  lockfile_missing: "lockfile_missing";
527
+ lockfile_corrupt: "lockfile_corrupt";
312
528
  }>;
313
529
  matchedCount: z.ZodNumber;
314
530
  runId: z.ZodNullable<z.ZodString>;
@@ -340,6 +556,7 @@ export declare const dashboardEventLogListRequestSchema: z.ZodObject<{
340
556
  type: z.ZodLiteral<"platform_operator">;
341
557
  sub: z.ZodString;
342
558
  reason: z.ZodString;
559
+ sessionId: z.ZodOptional<z.ZodString>;
343
560
  }, z.core.$strip>, z.ZodObject<{
344
561
  type: z.ZodLiteral<"system">;
345
562
  component: z.ZodString;
@@ -353,6 +570,7 @@ export declare const dashboardEventLogListRequestSchema: z.ZodObject<{
353
570
  processed: "processed";
354
571
  duplicate: "duplicate";
355
572
  lockfile_missing: "lockfile_missing";
573
+ lockfile_corrupt: "lockfile_corrupt";
356
574
  }>>;
357
575
  fromTimestamp: z.ZodOptional<z.ZodString>;
358
576
  toTimestamp: z.ZodOptional<z.ZodString>;
@@ -382,6 +600,7 @@ declare const dashboardEventLogListResponseSchema: z.ZodObject<{
382
600
  processed: "processed";
383
601
  duplicate: "duplicate";
384
602
  lockfile_missing: "lockfile_missing";
603
+ lockfile_corrupt: "lockfile_corrupt";
385
604
  }>;
386
605
  matchedCount: z.ZodNumber;
387
606
  runId: z.ZodNullable<z.ZodString>;
@@ -416,6 +635,7 @@ export declare const dashboardEventLogDetailRequestSchema: z.ZodObject<{
416
635
  type: z.ZodLiteral<"platform_operator">;
417
636
  sub: z.ZodString;
418
637
  reason: z.ZodString;
638
+ sessionId: z.ZodOptional<z.ZodString>;
419
639
  }, z.core.$strip>, z.ZodObject<{
420
640
  type: z.ZodLiteral<"system">;
421
641
  component: z.ZodString;
@@ -451,6 +671,7 @@ declare const dashboardEventLogDetailResponseSchema: z.ZodObject<{
451
671
  processed: "processed";
452
672
  duplicate: "duplicate";
453
673
  lockfile_missing: "lockfile_missing";
674
+ lockfile_corrupt: "lockfile_corrupt";
454
675
  }>;
455
676
  matchedCount: z.ZodNumber;
456
677
  runId: z.ZodNullable<z.ZodString>;
@@ -512,6 +733,7 @@ export declare const dashboardEventLogPayloadStreamRequestSchema: z.ZodObject<{
512
733
  type: z.ZodLiteral<"platform_operator">;
513
734
  sub: z.ZodString;
514
735
  reason: z.ZodString;
736
+ sessionId: z.ZodOptional<z.ZodString>;
515
737
  }, z.core.$strip>, z.ZodObject<{
516
738
  type: z.ZodLiteral<"system">;
517
739
  component: z.ZodString;
@@ -606,6 +828,7 @@ export declare const dashboardEventDlqListRequestSchema: z.ZodObject<{
606
828
  type: z.ZodLiteral<"platform_operator">;
607
829
  sub: z.ZodString;
608
830
  reason: z.ZodString;
831
+ sessionId: z.ZodOptional<z.ZodString>;
609
832
  }, z.core.$strip>, z.ZodObject<{
610
833
  type: z.ZodLiteral<"system">;
611
834
  component: z.ZodString;
@@ -653,6 +876,7 @@ export declare const dashboardEventDlqCountRequestSchema: z.ZodObject<{
653
876
  type: z.ZodLiteral<"platform_operator">;
654
877
  sub: z.ZodString;
655
878
  reason: z.ZodString;
879
+ sessionId: z.ZodOptional<z.ZodString>;
656
880
  }, z.core.$strip>, z.ZodObject<{
657
881
  type: z.ZodLiteral<"system">;
658
882
  component: z.ZodString;
@@ -683,6 +907,7 @@ export declare const dashboardEventDlqRetryRequestSchema: z.ZodObject<{
683
907
  type: z.ZodLiteral<"platform_operator">;
684
908
  sub: z.ZodString;
685
909
  reason: z.ZodString;
910
+ sessionId: z.ZodOptional<z.ZodString>;
686
911
  }, z.core.$strip>, z.ZodObject<{
687
912
  type: z.ZodLiteral<"system">;
688
913
  component: z.ZodString;
@@ -714,6 +939,7 @@ export declare const dashboardEventDlqDiscardRequestSchema: z.ZodObject<{
714
939
  type: z.ZodLiteral<"platform_operator">;
715
940
  sub: z.ZodString;
716
941
  reason: z.ZodString;
942
+ sessionId: z.ZodOptional<z.ZodString>;
717
943
  }, z.core.$strip>, z.ZodObject<{
718
944
  type: z.ZodLiteral<"system">;
719
945
  component: z.ZodString;
@@ -745,6 +971,7 @@ export declare const envListRequestSchema: z.ZodObject<{
745
971
  type: z.ZodLiteral<"platform_operator">;
746
972
  sub: z.ZodString;
747
973
  reason: z.ZodString;
974
+ sessionId: z.ZodOptional<z.ZodString>;
748
975
  }, z.core.$strip>, z.ZodObject<{
749
976
  type: z.ZodLiteral<"system">;
750
977
  component: z.ZodString;
@@ -762,6 +989,7 @@ declare const envListResponseSchema: z.ZodObject<{
762
989
  }>;
763
990
  globPattern: z.ZodNullable<z.ZodString>;
764
991
  enabled: z.ZodBoolean;
992
+ allowLocalExecution: z.ZodBoolean;
765
993
  createdAt: z.ZodCoercedString<unknown>;
766
994
  updatedAt: z.ZodCoercedString<unknown>;
767
995
  }, z.core.$strip>>>;
@@ -785,6 +1013,7 @@ export declare const envGetRequestSchema: z.ZodObject<{
785
1013
  type: z.ZodLiteral<"platform_operator">;
786
1014
  sub: z.ZodString;
787
1015
  reason: z.ZodString;
1016
+ sessionId: z.ZodOptional<z.ZodString>;
788
1017
  }, z.core.$strip>, z.ZodObject<{
789
1018
  type: z.ZodLiteral<"system">;
790
1019
  component: z.ZodString;
@@ -812,6 +1041,7 @@ declare const envGetResponseSchema: z.ZodObject<{
812
1041
  waitTimerSeconds: z.ZodNullable<z.ZodNumber>;
813
1042
  holdExpirySeconds: z.ZodNullable<z.ZodNumber>;
814
1043
  enabled: z.ZodBoolean;
1044
+ allowLocalExecution: z.ZodBoolean;
815
1045
  createdAt: z.ZodCoercedString<unknown>;
816
1046
  updatedAt: z.ZodCoercedString<unknown>;
817
1047
  }, z.core.$strip>>;
@@ -835,6 +1065,7 @@ export declare const envCreateRequestSchema: z.ZodObject<{
835
1065
  type: z.ZodLiteral<"platform_operator">;
836
1066
  sub: z.ZodString;
837
1067
  reason: z.ZodString;
1068
+ sessionId: z.ZodOptional<z.ZodString>;
838
1069
  }, z.core.$strip>, z.ZodObject<{
839
1070
  type: z.ZodLiteral<"system">;
840
1071
  component: z.ZodString;
@@ -874,6 +1105,7 @@ export declare const envUpdateRequestSchema: z.ZodObject<{
874
1105
  type: z.ZodLiteral<"platform_operator">;
875
1106
  sub: z.ZodString;
876
1107
  reason: z.ZodString;
1108
+ sessionId: z.ZodOptional<z.ZodString>;
877
1109
  }, z.core.$strip>, z.ZodObject<{
878
1110
  type: z.ZodLiteral<"system">;
879
1111
  component: z.ZodString;
@@ -898,6 +1130,32 @@ export declare const envUpdateRequestSchema: z.ZodObject<{
898
1130
  enabled: z.ZodOptional<z.ZodBoolean>;
899
1131
  }, z.core.$strip>;
900
1132
  }, z.core.$strip>;
1133
+ /** Set an environment's test-run access flag (allowLocalExecution). */
1134
+ export declare const envTestAccessSetRequestSchema: z.ZodObject<{
1135
+ type: z.ZodLiteral<"dashboard.environments.test_access.set">;
1136
+ requestId: z.ZodString;
1137
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1138
+ type: z.ZodLiteral<"user">;
1139
+ sub: z.ZodString;
1140
+ }, z.core.$strip>, z.ZodObject<{
1141
+ type: z.ZodLiteral<"api_key">;
1142
+ keyId: z.ZodString;
1143
+ ownerSub: z.ZodString;
1144
+ }, z.core.$strip>, z.ZodObject<{
1145
+ type: z.ZodLiteral<"service_account">;
1146
+ id: z.ZodString;
1147
+ }, z.core.$strip>, z.ZodObject<{
1148
+ type: z.ZodLiteral<"platform_operator">;
1149
+ sub: z.ZodString;
1150
+ reason: z.ZodString;
1151
+ sessionId: z.ZodOptional<z.ZodString>;
1152
+ }, z.core.$strip>, z.ZodObject<{
1153
+ type: z.ZodLiteral<"system">;
1154
+ component: z.ZodString;
1155
+ }, z.core.$strip>], "type">;
1156
+ environmentId: z.ZodString;
1157
+ allowLocalExecution: z.ZodBoolean;
1158
+ }, z.core.$strip>;
901
1159
  /** Delete an environment. */
902
1160
  export declare const envDeleteRequestSchema: z.ZodObject<{
903
1161
  type: z.ZodLiteral<"dashboard.environments.delete">;
@@ -916,12 +1174,27 @@ export declare const envDeleteRequestSchema: z.ZodObject<{
916
1174
  type: z.ZodLiteral<"platform_operator">;
917
1175
  sub: z.ZodString;
918
1176
  reason: z.ZodString;
1177
+ sessionId: z.ZodOptional<z.ZodString>;
919
1178
  }, z.core.$strip>, z.ZodObject<{
920
1179
  type: z.ZodLiteral<"system">;
921
1180
  component: z.ZodString;
922
1181
  }, z.core.$strip>], "type">;
923
1182
  environmentId: z.ZodString;
924
1183
  }, z.core.$strip>;
1184
+ /**
1185
+ * Machine-readable codes for environment-delete rejections.
1186
+ *
1187
+ * Three-category response taxonomy on dashboard responses, each mapped to a
1188
+ * distinct HTTP status by the Platform proxy: a bare free-text `error` is the
1189
+ * human message and maps to 400; a missing result (e.g. environment not found)
1190
+ * maps to 404; an `errorCode` flags a specific business rejection mapped to a
1191
+ * non-400/404 status — here `pending_held_runs` → 409. The sibling precedent is
1192
+ * the rerun response's `errorCode` (`runArchivedNotRerunnable` → 410) above.
1193
+ */
1194
+ export declare const EnvDeleteErrorCode: z.ZodEnum<{
1195
+ pending_held_runs: "pending_held_runs";
1196
+ }>;
1197
+ export type EnvDeleteErrorCode = z.infer<typeof EnvDeleteErrorCode>;
925
1198
  /** List variables for an environment. */
926
1199
  export declare const envVarsListRequestSchema: z.ZodObject<{
927
1200
  type: z.ZodLiteral<"dashboard.environments.variables.list">;
@@ -940,6 +1213,7 @@ export declare const envVarsListRequestSchema: z.ZodObject<{
940
1213
  type: z.ZodLiteral<"platform_operator">;
941
1214
  sub: z.ZodString;
942
1215
  reason: z.ZodString;
1216
+ sessionId: z.ZodOptional<z.ZodString>;
943
1217
  }, z.core.$strip>, z.ZodObject<{
944
1218
  type: z.ZodLiteral<"system">;
945
1219
  component: z.ZodString;
@@ -974,6 +1248,7 @@ export declare const envVarSetRequestSchema: z.ZodObject<{
974
1248
  type: z.ZodLiteral<"platform_operator">;
975
1249
  sub: z.ZodString;
976
1250
  reason: z.ZodString;
1251
+ sessionId: z.ZodOptional<z.ZodString>;
977
1252
  }, z.core.$strip>, z.ZodObject<{
978
1253
  type: z.ZodLiteral<"system">;
979
1254
  component: z.ZodString;
@@ -1001,6 +1276,7 @@ export declare const envVarDeleteRequestSchema: z.ZodObject<{
1001
1276
  type: z.ZodLiteral<"platform_operator">;
1002
1277
  sub: z.ZodString;
1003
1278
  reason: z.ZodString;
1279
+ sessionId: z.ZodOptional<z.ZodString>;
1004
1280
  }, z.core.$strip>, z.ZodObject<{
1005
1281
  type: z.ZodLiteral<"system">;
1006
1282
  component: z.ZodString;
@@ -1026,6 +1302,7 @@ export declare const envSourceOverridesListRequestSchema: z.ZodObject<{
1026
1302
  type: z.ZodLiteral<"platform_operator">;
1027
1303
  sub: z.ZodString;
1028
1304
  reason: z.ZodString;
1305
+ sessionId: z.ZodOptional<z.ZodString>;
1029
1306
  }, z.core.$strip>, z.ZodObject<{
1030
1307
  type: z.ZodLiteral<"system">;
1031
1308
  component: z.ZodString;
@@ -1051,6 +1328,7 @@ export declare const envSourceOverrideSetRequestSchema: z.ZodObject<{
1051
1328
  type: z.ZodLiteral<"platform_operator">;
1052
1329
  sub: z.ZodString;
1053
1330
  reason: z.ZodString;
1331
+ sessionId: z.ZodOptional<z.ZodString>;
1054
1332
  }, z.core.$strip>, z.ZodObject<{
1055
1333
  type: z.ZodLiteral<"system">;
1056
1334
  component: z.ZodString;
@@ -1078,6 +1356,7 @@ export declare const envSourceOverrideDeleteRequestSchema: z.ZodObject<{
1078
1356
  type: z.ZodLiteral<"platform_operator">;
1079
1357
  sub: z.ZodString;
1080
1358
  reason: z.ZodString;
1359
+ sessionId: z.ZodOptional<z.ZodString>;
1081
1360
  }, z.core.$strip>, z.ZodObject<{
1082
1361
  type: z.ZodLiteral<"system">;
1083
1362
  component: z.ZodString;
@@ -1104,6 +1383,7 @@ export declare const envBindingsListRequestSchema: z.ZodObject<{
1104
1383
  type: z.ZodLiteral<"platform_operator">;
1105
1384
  sub: z.ZodString;
1106
1385
  reason: z.ZodString;
1386
+ sessionId: z.ZodOptional<z.ZodString>;
1107
1387
  }, z.core.$strip>, z.ZodObject<{
1108
1388
  type: z.ZodLiteral<"system">;
1109
1389
  component: z.ZodString;
@@ -1128,6 +1408,7 @@ export declare const envBindingsSetRequestSchema: z.ZodObject<{
1128
1408
  type: z.ZodLiteral<"platform_operator">;
1129
1409
  sub: z.ZodString;
1130
1410
  reason: z.ZodString;
1411
+ sessionId: z.ZodOptional<z.ZodString>;
1131
1412
  }, z.core.$strip>, z.ZodObject<{
1132
1413
  type: z.ZodLiteral<"system">;
1133
1414
  component: z.ZodString;
@@ -1153,6 +1434,7 @@ export declare const envSecretsListRequestSchema: z.ZodObject<{
1153
1434
  type: z.ZodLiteral<"platform_operator">;
1154
1435
  sub: z.ZodString;
1155
1436
  reason: z.ZodString;
1437
+ sessionId: z.ZodOptional<z.ZodString>;
1156
1438
  }, z.core.$strip>, z.ZodObject<{
1157
1439
  type: z.ZodLiteral<"system">;
1158
1440
  component: z.ZodString;
@@ -1176,6 +1458,7 @@ export declare const envSecretSetRequestSchema: z.ZodObject<{
1176
1458
  type: z.ZodLiteral<"platform_operator">;
1177
1459
  sub: z.ZodString;
1178
1460
  reason: z.ZodString;
1461
+ sessionId: z.ZodOptional<z.ZodString>;
1179
1462
  }, z.core.$strip>, z.ZodObject<{
1180
1463
  type: z.ZodLiteral<"system">;
1181
1464
  component: z.ZodString;
@@ -1202,6 +1485,7 @@ export declare const envSecretDeleteRequestSchema: z.ZodObject<{
1202
1485
  type: z.ZodLiteral<"platform_operator">;
1203
1486
  sub: z.ZodString;
1204
1487
  reason: z.ZodString;
1488
+ sessionId: z.ZodOptional<z.ZodString>;
1205
1489
  }, z.core.$strip>, z.ZodObject<{
1206
1490
  type: z.ZodLiteral<"system">;
1207
1491
  component: z.ZodString;
@@ -1227,6 +1511,7 @@ export declare const envSecretScopeCreateRequestSchema: z.ZodObject<{
1227
1511
  type: z.ZodLiteral<"platform_operator">;
1228
1512
  sub: z.ZodString;
1229
1513
  reason: z.ZodString;
1514
+ sessionId: z.ZodOptional<z.ZodString>;
1230
1515
  }, z.core.$strip>, z.ZodObject<{
1231
1516
  type: z.ZodLiteral<"system">;
1232
1517
  component: z.ZodString;
@@ -1251,6 +1536,7 @@ export declare const envSecretScopeRenameRequestSchema: z.ZodObject<{
1251
1536
  type: z.ZodLiteral<"platform_operator">;
1252
1537
  sub: z.ZodString;
1253
1538
  reason: z.ZodString;
1539
+ sessionId: z.ZodOptional<z.ZodString>;
1254
1540
  }, z.core.$strip>, z.ZodObject<{
1255
1541
  type: z.ZodLiteral<"system">;
1256
1542
  component: z.ZodString;
@@ -1276,6 +1562,7 @@ export declare const envSecretScopeDeleteRequestSchema: z.ZodObject<{
1276
1562
  type: z.ZodLiteral<"platform_operator">;
1277
1563
  sub: z.ZodString;
1278
1564
  reason: z.ZodString;
1565
+ sessionId: z.ZodOptional<z.ZodString>;
1279
1566
  }, z.core.$strip>, z.ZodObject<{
1280
1567
  type: z.ZodLiteral<"system">;
1281
1568
  component: z.ZodString;
@@ -1300,6 +1587,7 @@ export declare const envHistoryRequestSchema: z.ZodObject<{
1300
1587
  type: z.ZodLiteral<"platform_operator">;
1301
1588
  sub: z.ZodString;
1302
1589
  reason: z.ZodString;
1590
+ sessionId: z.ZodOptional<z.ZodString>;
1303
1591
  }, z.core.$strip>, z.ZodObject<{
1304
1592
  type: z.ZodLiteral<"system">;
1305
1593
  component: z.ZodString;
@@ -1340,6 +1628,7 @@ export declare const heldRunsListRequestSchema: z.ZodObject<{
1340
1628
  type: z.ZodLiteral<"platform_operator">;
1341
1629
  sub: z.ZodString;
1342
1630
  reason: z.ZodString;
1631
+ sessionId: z.ZodOptional<z.ZodString>;
1343
1632
  }, z.core.$strip>, z.ZodObject<{
1344
1633
  type: z.ZodLiteral<"system">;
1345
1634
  component: z.ZodString;
@@ -1362,8 +1651,8 @@ declare const heldRunsListResponseSchema: z.ZodObject<{
1362
1651
  heldRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1363
1652
  id: z.ZodString;
1364
1653
  runId: z.ZodString;
1365
- environmentId: z.ZodString;
1366
- environmentName: z.ZodString;
1654
+ environmentId: z.ZodNullable<z.ZodString>;
1655
+ environmentName: z.ZodNullable<z.ZodString>;
1367
1656
  holdType: z.ZodString;
1368
1657
  queueType: z.ZodEnum<{
1369
1658
  environment: "environment";
@@ -1403,6 +1692,7 @@ export declare const heldRunApproveRequestSchema: z.ZodObject<{
1403
1692
  type: z.ZodLiteral<"platform_operator">;
1404
1693
  sub: z.ZodString;
1405
1694
  reason: z.ZodString;
1695
+ sessionId: z.ZodOptional<z.ZodString>;
1406
1696
  }, z.core.$strip>, z.ZodObject<{
1407
1697
  type: z.ZodLiteral<"system">;
1408
1698
  component: z.ZodString;
@@ -1427,6 +1717,7 @@ export declare const heldRunRejectRequestSchema: z.ZodObject<{
1427
1717
  type: z.ZodLiteral<"platform_operator">;
1428
1718
  sub: z.ZodString;
1429
1719
  reason: z.ZodString;
1720
+ sessionId: z.ZodOptional<z.ZodString>;
1430
1721
  }, z.core.$strip>, z.ZodObject<{
1431
1722
  type: z.ZodLiteral<"system">;
1432
1723
  component: z.ZodString;
@@ -1452,6 +1743,7 @@ export declare const dashboardDiagnosticsRequestSchema: z.ZodObject<{
1452
1743
  type: z.ZodLiteral<"platform_operator">;
1453
1744
  sub: z.ZodString;
1454
1745
  reason: z.ZodString;
1746
+ sessionId: z.ZodOptional<z.ZodString>;
1455
1747
  }, z.core.$strip>, z.ZodObject<{
1456
1748
  type: z.ZodLiteral<"system">;
1457
1749
  component: z.ZodString;
@@ -1475,6 +1767,7 @@ declare const diagnosticsPeerSchema: z.ZodObject<{
1475
1767
  arch: z.ZodString;
1476
1768
  activeJobs: z.ZodNumber;
1477
1769
  maxConcurrency: z.ZodNumber;
1770
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
1771
  }, z.core.$strip>>;
1479
1772
  hostname: z.ZodOptional<z.ZodString>;
1480
1773
  osRelease: z.ZodOptional<z.ZodString>;
@@ -1493,6 +1786,7 @@ declare const diagnosticsPeerSchema: z.ZodObject<{
1493
1786
  activeCount: z.ZodNumber;
1494
1787
  maxAgents: z.ZodNumber;
1495
1788
  labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
1789
+ spawnsOnLocalHost: z.ZodOptional<z.ZodBoolean>;
1496
1790
  }, z.core.$strip>>>;
1497
1791
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1498
1792
  name: z.ZodString;
@@ -1544,6 +1838,7 @@ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
1544
1838
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1545
1839
  agentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1546
1840
  statefulAgentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1841
+ statefulHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1547
1842
  }, z.core.$strip>;
1548
1843
  agents: z.ZodArray<z.ZodObject<{
1549
1844
  agentId: z.ZodString;
@@ -1570,11 +1865,17 @@ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
1570
1865
  }, z.core.$strip>>;
1571
1866
  scalers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1572
1867
  name: z.ZodString;
1573
- type: z.ZodString;
1868
+ type: z.ZodEnum<{
1869
+ container: "container";
1870
+ "bare-metal": "bare-metal";
1871
+ firecracker: "firecracker";
1872
+ kubernetes: "kubernetes";
1873
+ }>;
1574
1874
  maxAgents: z.ZodNumber;
1575
1875
  activeAgents: z.ZodNumber;
1576
1876
  labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
1577
1877
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1878
+ hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1578
1879
  }, z.core.$strip>>>;
1579
1880
  peers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1580
1881
  instanceId: z.ZodString;
@@ -1592,6 +1893,7 @@ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
1592
1893
  arch: z.ZodString;
1593
1894
  activeJobs: z.ZodNumber;
1594
1895
  maxConcurrency: z.ZodNumber;
1896
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1595
1897
  }, z.core.$strip>>;
1596
1898
  hostname: z.ZodOptional<z.ZodString>;
1597
1899
  osRelease: z.ZodOptional<z.ZodString>;
@@ -1610,6 +1912,7 @@ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
1610
1912
  activeCount: z.ZodNumber;
1611
1913
  maxAgents: z.ZodNumber;
1612
1914
  labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
1915
+ spawnsOnLocalHost: z.ZodOptional<z.ZodBoolean>;
1613
1916
  }, z.core.$strip>>>;
1614
1917
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1615
1918
  name: z.ZodString;
@@ -1645,6 +1948,7 @@ export declare const dashboardScalerCapacityRequestSchema: z.ZodObject<{
1645
1948
  type: z.ZodLiteral<"platform_operator">;
1646
1949
  sub: z.ZodString;
1647
1950
  reason: z.ZodString;
1951
+ sessionId: z.ZodOptional<z.ZodString>;
1648
1952
  }, z.core.$strip>, z.ZodObject<{
1649
1953
  type: z.ZodLiteral<"system">;
1650
1954
  component: z.ZodString;
@@ -1681,6 +1985,7 @@ export declare const dashboardScalerAgentsRequestSchema: z.ZodObject<{
1681
1985
  type: z.ZodLiteral<"platform_operator">;
1682
1986
  sub: z.ZodString;
1683
1987
  reason: z.ZodString;
1988
+ sessionId: z.ZodOptional<z.ZodString>;
1684
1989
  }, z.core.$strip>, z.ZodObject<{
1685
1990
  type: z.ZodLiteral<"system">;
1686
1991
  component: z.ZodString;
@@ -1735,6 +2040,7 @@ export declare const registrationDisableRequestSchema: z.ZodObject<{
1735
2040
  type: z.ZodLiteral<"platform_operator">;
1736
2041
  sub: z.ZodString;
1737
2042
  reason: z.ZodString;
2043
+ sessionId: z.ZodOptional<z.ZodString>;
1738
2044
  }, z.core.$strip>, z.ZodObject<{
1739
2045
  type: z.ZodLiteral<"system">;
1740
2046
  component: z.ZodString;
@@ -1760,6 +2066,7 @@ export declare const registrationDeleteRequestSchema: z.ZodObject<{
1760
2066
  type: z.ZodLiteral<"platform_operator">;
1761
2067
  sub: z.ZodString;
1762
2068
  reason: z.ZodString;
2069
+ sessionId: z.ZodOptional<z.ZodString>;
1763
2070
  }, z.core.$strip>, z.ZodObject<{
1764
2071
  type: z.ZodLiteral<"system">;
1765
2072
  component: z.ZodString;
@@ -1785,6 +2092,7 @@ export declare const registrationsListRequestSchema: z.ZodObject<{
1785
2092
  type: z.ZodLiteral<"platform_operator">;
1786
2093
  sub: z.ZodString;
1787
2094
  reason: z.ZodString;
2095
+ sessionId: z.ZodOptional<z.ZodString>;
1788
2096
  }, z.core.$strip>, z.ZodObject<{
1789
2097
  type: z.ZodLiteral<"system">;
1790
2098
  component: z.ZodString;
@@ -1871,6 +2179,7 @@ export declare const backendsListRequestSchema: z.ZodObject<{
1871
2179
  type: z.ZodLiteral<"platform_operator">;
1872
2180
  sub: z.ZodString;
1873
2181
  reason: z.ZodString;
2182
+ sessionId: z.ZodOptional<z.ZodString>;
1874
2183
  }, z.core.$strip>, z.ZodObject<{
1875
2184
  type: z.ZodLiteral<"system">;
1876
2185
  component: z.ZodString;
@@ -1947,6 +2256,7 @@ export declare const backendGetRequestSchema: z.ZodObject<{
1947
2256
  type: z.ZodLiteral<"platform_operator">;
1948
2257
  sub: z.ZodString;
1949
2258
  reason: z.ZodString;
2259
+ sessionId: z.ZodOptional<z.ZodString>;
1950
2260
  }, z.core.$strip>, z.ZodObject<{
1951
2261
  type: z.ZodLiteral<"system">;
1952
2262
  component: z.ZodString;
@@ -2000,6 +2310,7 @@ export declare const backendsSyncAllRequestSchema: z.ZodObject<{
2000
2310
  type: z.ZodLiteral<"platform_operator">;
2001
2311
  sub: z.ZodString;
2002
2312
  reason: z.ZodString;
2313
+ sessionId: z.ZodOptional<z.ZodString>;
2003
2314
  }, z.core.$strip>, z.ZodObject<{
2004
2315
  type: z.ZodLiteral<"system">;
2005
2316
  component: z.ZodString;
@@ -2030,6 +2341,7 @@ export declare const backendSyncRequestSchema: z.ZodObject<{
2030
2341
  type: z.ZodLiteral<"platform_operator">;
2031
2342
  sub: z.ZodString;
2032
2343
  reason: z.ZodString;
2344
+ sessionId: z.ZodOptional<z.ZodString>;
2033
2345
  }, z.core.$strip>, z.ZodObject<{
2034
2346
  type: z.ZodLiteral<"system">;
2035
2347
  component: z.ZodString;
@@ -2062,6 +2374,7 @@ export declare const backendTestRequestSchema: z.ZodObject<{
2062
2374
  type: z.ZodLiteral<"platform_operator">;
2063
2375
  sub: z.ZodString;
2064
2376
  reason: z.ZodString;
2377
+ sessionId: z.ZodOptional<z.ZodString>;
2065
2378
  }, z.core.$strip>, z.ZodObject<{
2066
2379
  type: z.ZodLiteral<"system">;
2067
2380
  component: z.ZodString;
@@ -2094,6 +2407,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2094
2407
  type: z.ZodLiteral<"platform_operator">;
2095
2408
  sub: z.ZodString;
2096
2409
  reason: z.ZodString;
2410
+ sessionId: z.ZodOptional<z.ZodString>;
2097
2411
  }, z.core.$strip>, z.ZodObject<{
2098
2412
  type: z.ZodLiteral<"system">;
2099
2413
  component: z.ZodString;
@@ -2116,6 +2430,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2116
2430
  type: z.ZodLiteral<"platform_operator">;
2117
2431
  sub: z.ZodString;
2118
2432
  reason: z.ZodString;
2433
+ sessionId: z.ZodOptional<z.ZodString>;
2119
2434
  }, z.core.$strip>, z.ZodObject<{
2120
2435
  type: z.ZodLiteral<"system">;
2121
2436
  component: z.ZodString;
@@ -2123,6 +2438,76 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2123
2438
  runId: z.ZodString;
2124
2439
  jobId: z.ZodString;
2125
2440
  stepIndex: z.ZodNumber;
2441
+ }, z.core.$strip>, z.ZodObject<{
2442
+ type: z.ZodLiteral<"dashboard.runs.list">;
2443
+ requestId: z.ZodString;
2444
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2445
+ type: z.ZodLiteral<"user">;
2446
+ sub: z.ZodString;
2447
+ }, z.core.$strip>, z.ZodObject<{
2448
+ type: z.ZodLiteral<"api_key">;
2449
+ keyId: z.ZodString;
2450
+ ownerSub: z.ZodString;
2451
+ }, z.core.$strip>, z.ZodObject<{
2452
+ type: z.ZodLiteral<"service_account">;
2453
+ id: z.ZodString;
2454
+ }, z.core.$strip>, z.ZodObject<{
2455
+ type: z.ZodLiteral<"platform_operator">;
2456
+ sub: z.ZodString;
2457
+ reason: z.ZodString;
2458
+ sessionId: z.ZodOptional<z.ZodString>;
2459
+ }, z.core.$strip>, z.ZodObject<{
2460
+ type: z.ZodLiteral<"system">;
2461
+ component: z.ZodString;
2462
+ }, z.core.$strip>], "type">;
2463
+ limit: z.ZodOptional<z.ZodNumber>;
2464
+ cursor: z.ZodOptional<z.ZodString>;
2465
+ }, z.core.$strip>, z.ZodObject<{
2466
+ type: z.ZodLiteral<"dashboard.runs.filters">;
2467
+ requestId: z.ZodString;
2468
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2469
+ type: z.ZodLiteral<"user">;
2470
+ sub: z.ZodString;
2471
+ }, z.core.$strip>, z.ZodObject<{
2472
+ type: z.ZodLiteral<"api_key">;
2473
+ keyId: z.ZodString;
2474
+ ownerSub: z.ZodString;
2475
+ }, z.core.$strip>, z.ZodObject<{
2476
+ type: z.ZodLiteral<"service_account">;
2477
+ id: z.ZodString;
2478
+ }, z.core.$strip>, z.ZodObject<{
2479
+ type: z.ZodLiteral<"platform_operator">;
2480
+ sub: z.ZodString;
2481
+ reason: z.ZodString;
2482
+ sessionId: z.ZodOptional<z.ZodString>;
2483
+ }, z.core.$strip>, z.ZodObject<{
2484
+ type: z.ZodLiteral<"system">;
2485
+ component: z.ZodString;
2486
+ }, z.core.$strip>], "type">;
2487
+ }, z.core.$strip>, z.ZodObject<{
2488
+ type: z.ZodLiteral<"dashboard.sources.list">;
2489
+ requestId: z.ZodString;
2490
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2491
+ type: z.ZodLiteral<"user">;
2492
+ sub: z.ZodString;
2493
+ }, z.core.$strip>, z.ZodObject<{
2494
+ type: z.ZodLiteral<"api_key">;
2495
+ keyId: z.ZodString;
2496
+ ownerSub: z.ZodString;
2497
+ }, z.core.$strip>, z.ZodObject<{
2498
+ type: z.ZodLiteral<"service_account">;
2499
+ id: z.ZodString;
2500
+ }, z.core.$strip>, z.ZodObject<{
2501
+ type: z.ZodLiteral<"platform_operator">;
2502
+ sub: z.ZodString;
2503
+ reason: z.ZodString;
2504
+ sessionId: z.ZodOptional<z.ZodString>;
2505
+ }, z.core.$strip>, z.ZodObject<{
2506
+ type: z.ZodLiteral<"system">;
2507
+ component: z.ZodString;
2508
+ }, z.core.$strip>], "type">;
2509
+ limit: z.ZodOptional<z.ZodNumber>;
2510
+ cursor: z.ZodOptional<z.ZodString>;
2126
2511
  }, z.core.$strip>, z.ZodObject<{
2127
2512
  type: z.ZodLiteral<"run.rerun.request">;
2128
2513
  requestId: z.ZodString;
@@ -2140,6 +2525,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2140
2525
  type: z.ZodLiteral<"platform_operator">;
2141
2526
  sub: z.ZodString;
2142
2527
  reason: z.ZodString;
2528
+ sessionId: z.ZodOptional<z.ZodString>;
2143
2529
  }, z.core.$strip>, z.ZodObject<{
2144
2530
  type: z.ZodLiteral<"system">;
2145
2531
  component: z.ZodString;
@@ -2163,6 +2549,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2163
2549
  type: z.ZodLiteral<"platform_operator">;
2164
2550
  sub: z.ZodString;
2165
2551
  reason: z.ZodString;
2552
+ sessionId: z.ZodOptional<z.ZodString>;
2166
2553
  }, z.core.$strip>, z.ZodObject<{
2167
2554
  type: z.ZodLiteral<"system">;
2168
2555
  component: z.ZodString;
@@ -2185,6 +2572,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2185
2572
  type: z.ZodLiteral<"platform_operator">;
2186
2573
  sub: z.ZodString;
2187
2574
  reason: z.ZodString;
2575
+ sessionId: z.ZodOptional<z.ZodString>;
2188
2576
  }, z.core.$strip>, z.ZodObject<{
2189
2577
  type: z.ZodLiteral<"system">;
2190
2578
  component: z.ZodString;
@@ -2208,6 +2596,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2208
2596
  type: z.ZodLiteral<"platform_operator">;
2209
2597
  sub: z.ZodString;
2210
2598
  reason: z.ZodString;
2599
+ sessionId: z.ZodOptional<z.ZodString>;
2211
2600
  }, z.core.$strip>, z.ZodObject<{
2212
2601
  type: z.ZodLiteral<"system">;
2213
2602
  component: z.ZodString;
@@ -2230,6 +2619,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2230
2619
  type: z.ZodLiteral<"platform_operator">;
2231
2620
  sub: z.ZodString;
2232
2621
  reason: z.ZodString;
2622
+ sessionId: z.ZodOptional<z.ZodString>;
2233
2623
  }, z.core.$strip>, z.ZodObject<{
2234
2624
  type: z.ZodLiteral<"system">;
2235
2625
  component: z.ZodString;
@@ -2253,6 +2643,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2253
2643
  type: z.ZodLiteral<"platform_operator">;
2254
2644
  sub: z.ZodString;
2255
2645
  reason: z.ZodString;
2646
+ sessionId: z.ZodOptional<z.ZodString>;
2256
2647
  }, z.core.$strip>, z.ZodObject<{
2257
2648
  type: z.ZodLiteral<"system">;
2258
2649
  component: z.ZodString;
@@ -2274,6 +2665,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2274
2665
  type: z.ZodLiteral<"platform_operator">;
2275
2666
  sub: z.ZodString;
2276
2667
  reason: z.ZodString;
2668
+ sessionId: z.ZodOptional<z.ZodString>;
2277
2669
  }, z.core.$strip>, z.ZodObject<{
2278
2670
  type: z.ZodLiteral<"system">;
2279
2671
  component: z.ZodString;
@@ -2296,6 +2688,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2296
2688
  type: z.ZodLiteral<"platform_operator">;
2297
2689
  sub: z.ZodString;
2298
2690
  reason: z.ZodString;
2691
+ sessionId: z.ZodOptional<z.ZodString>;
2299
2692
  }, z.core.$strip>, z.ZodObject<{
2300
2693
  type: z.ZodLiteral<"system">;
2301
2694
  component: z.ZodString;
@@ -2333,6 +2726,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2333
2726
  type: z.ZodLiteral<"platform_operator">;
2334
2727
  sub: z.ZodString;
2335
2728
  reason: z.ZodString;
2729
+ sessionId: z.ZodOptional<z.ZodString>;
2336
2730
  }, z.core.$strip>, z.ZodObject<{
2337
2731
  type: z.ZodLiteral<"system">;
2338
2732
  component: z.ZodString;
@@ -2356,6 +2750,30 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2356
2750
  holdExpirySeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2357
2751
  enabled: z.ZodOptional<z.ZodBoolean>;
2358
2752
  }, z.core.$strip>;
2753
+ }, z.core.$strip>, z.ZodObject<{
2754
+ type: z.ZodLiteral<"dashboard.environments.test_access.set">;
2755
+ requestId: z.ZodString;
2756
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2757
+ type: z.ZodLiteral<"user">;
2758
+ sub: z.ZodString;
2759
+ }, z.core.$strip>, z.ZodObject<{
2760
+ type: z.ZodLiteral<"api_key">;
2761
+ keyId: z.ZodString;
2762
+ ownerSub: z.ZodString;
2763
+ }, z.core.$strip>, z.ZodObject<{
2764
+ type: z.ZodLiteral<"service_account">;
2765
+ id: z.ZodString;
2766
+ }, z.core.$strip>, z.ZodObject<{
2767
+ type: z.ZodLiteral<"platform_operator">;
2768
+ sub: z.ZodString;
2769
+ reason: z.ZodString;
2770
+ sessionId: z.ZodOptional<z.ZodString>;
2771
+ }, z.core.$strip>, z.ZodObject<{
2772
+ type: z.ZodLiteral<"system">;
2773
+ component: z.ZodString;
2774
+ }, z.core.$strip>], "type">;
2775
+ environmentId: z.ZodString;
2776
+ allowLocalExecution: z.ZodBoolean;
2359
2777
  }, z.core.$strip>, z.ZodObject<{
2360
2778
  type: z.ZodLiteral<"dashboard.environments.delete">;
2361
2779
  requestId: z.ZodString;
@@ -2373,6 +2791,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2373
2791
  type: z.ZodLiteral<"platform_operator">;
2374
2792
  sub: z.ZodString;
2375
2793
  reason: z.ZodString;
2794
+ sessionId: z.ZodOptional<z.ZodString>;
2376
2795
  }, z.core.$strip>, z.ZodObject<{
2377
2796
  type: z.ZodLiteral<"system">;
2378
2797
  component: z.ZodString;
@@ -2395,6 +2814,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2395
2814
  type: z.ZodLiteral<"platform_operator">;
2396
2815
  sub: z.ZodString;
2397
2816
  reason: z.ZodString;
2817
+ sessionId: z.ZodOptional<z.ZodString>;
2398
2818
  }, z.core.$strip>, z.ZodObject<{
2399
2819
  type: z.ZodLiteral<"system">;
2400
2820
  component: z.ZodString;
@@ -2417,6 +2837,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2417
2837
  type: z.ZodLiteral<"platform_operator">;
2418
2838
  sub: z.ZodString;
2419
2839
  reason: z.ZodString;
2840
+ sessionId: z.ZodOptional<z.ZodString>;
2420
2841
  }, z.core.$strip>, z.ZodObject<{
2421
2842
  type: z.ZodLiteral<"system">;
2422
2843
  component: z.ZodString;
@@ -2442,6 +2863,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2442
2863
  type: z.ZodLiteral<"platform_operator">;
2443
2864
  sub: z.ZodString;
2444
2865
  reason: z.ZodString;
2866
+ sessionId: z.ZodOptional<z.ZodString>;
2445
2867
  }, z.core.$strip>, z.ZodObject<{
2446
2868
  type: z.ZodLiteral<"system">;
2447
2869
  component: z.ZodString;
@@ -2465,6 +2887,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2465
2887
  type: z.ZodLiteral<"platform_operator">;
2466
2888
  sub: z.ZodString;
2467
2889
  reason: z.ZodString;
2890
+ sessionId: z.ZodOptional<z.ZodString>;
2468
2891
  }, z.core.$strip>, z.ZodObject<{
2469
2892
  type: z.ZodLiteral<"system">;
2470
2893
  component: z.ZodString;
@@ -2488,6 +2911,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2488
2911
  type: z.ZodLiteral<"platform_operator">;
2489
2912
  sub: z.ZodString;
2490
2913
  reason: z.ZodString;
2914
+ sessionId: z.ZodOptional<z.ZodString>;
2491
2915
  }, z.core.$strip>, z.ZodObject<{
2492
2916
  type: z.ZodLiteral<"system">;
2493
2917
  component: z.ZodString;
@@ -2513,6 +2937,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2513
2937
  type: z.ZodLiteral<"platform_operator">;
2514
2938
  sub: z.ZodString;
2515
2939
  reason: z.ZodString;
2940
+ sessionId: z.ZodOptional<z.ZodString>;
2516
2941
  }, z.core.$strip>, z.ZodObject<{
2517
2942
  type: z.ZodLiteral<"system">;
2518
2943
  component: z.ZodString;
@@ -2537,6 +2962,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2537
2962
  type: z.ZodLiteral<"platform_operator">;
2538
2963
  sub: z.ZodString;
2539
2964
  reason: z.ZodString;
2965
+ sessionId: z.ZodOptional<z.ZodString>;
2540
2966
  }, z.core.$strip>, z.ZodObject<{
2541
2967
  type: z.ZodLiteral<"system">;
2542
2968
  component: z.ZodString;
@@ -2559,6 +2985,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2559
2985
  type: z.ZodLiteral<"platform_operator">;
2560
2986
  sub: z.ZodString;
2561
2987
  reason: z.ZodString;
2988
+ sessionId: z.ZodOptional<z.ZodString>;
2562
2989
  }, z.core.$strip>, z.ZodObject<{
2563
2990
  type: z.ZodLiteral<"system">;
2564
2991
  component: z.ZodString;
@@ -2582,6 +3009,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2582
3009
  type: z.ZodLiteral<"platform_operator">;
2583
3010
  sub: z.ZodString;
2584
3011
  reason: z.ZodString;
3012
+ sessionId: z.ZodOptional<z.ZodString>;
2585
3013
  }, z.core.$strip>, z.ZodObject<{
2586
3014
  type: z.ZodLiteral<"system">;
2587
3015
  component: z.ZodString;
@@ -2603,6 +3031,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2603
3031
  type: z.ZodLiteral<"platform_operator">;
2604
3032
  sub: z.ZodString;
2605
3033
  reason: z.ZodString;
3034
+ sessionId: z.ZodOptional<z.ZodString>;
2606
3035
  }, z.core.$strip>, z.ZodObject<{
2607
3036
  type: z.ZodLiteral<"system">;
2608
3037
  component: z.ZodString;
@@ -2627,6 +3056,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2627
3056
  type: z.ZodLiteral<"platform_operator">;
2628
3057
  sub: z.ZodString;
2629
3058
  reason: z.ZodString;
3059
+ sessionId: z.ZodOptional<z.ZodString>;
2630
3060
  }, z.core.$strip>, z.ZodObject<{
2631
3061
  type: z.ZodLiteral<"system">;
2632
3062
  component: z.ZodString;
@@ -2650,6 +3080,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2650
3080
  type: z.ZodLiteral<"platform_operator">;
2651
3081
  sub: z.ZodString;
2652
3082
  reason: z.ZodString;
3083
+ sessionId: z.ZodOptional<z.ZodString>;
2653
3084
  }, z.core.$strip>, z.ZodObject<{
2654
3085
  type: z.ZodLiteral<"system">;
2655
3086
  component: z.ZodString;
@@ -2672,6 +3103,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2672
3103
  type: z.ZodLiteral<"platform_operator">;
2673
3104
  sub: z.ZodString;
2674
3105
  reason: z.ZodString;
3106
+ sessionId: z.ZodOptional<z.ZodString>;
2675
3107
  }, z.core.$strip>, z.ZodObject<{
2676
3108
  type: z.ZodLiteral<"system">;
2677
3109
  component: z.ZodString;
@@ -2695,6 +3127,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2695
3127
  type: z.ZodLiteral<"platform_operator">;
2696
3128
  sub: z.ZodString;
2697
3129
  reason: z.ZodString;
3130
+ sessionId: z.ZodOptional<z.ZodString>;
2698
3131
  }, z.core.$strip>, z.ZodObject<{
2699
3132
  type: z.ZodLiteral<"system">;
2700
3133
  component: z.ZodString;
@@ -2717,6 +3150,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2717
3150
  type: z.ZodLiteral<"platform_operator">;
2718
3151
  sub: z.ZodString;
2719
3152
  reason: z.ZodString;
3153
+ sessionId: z.ZodOptional<z.ZodString>;
2720
3154
  }, z.core.$strip>, z.ZodObject<{
2721
3155
  type: z.ZodLiteral<"system">;
2722
3156
  component: z.ZodString;
@@ -2741,6 +3175,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2741
3175
  type: z.ZodLiteral<"platform_operator">;
2742
3176
  sub: z.ZodString;
2743
3177
  reason: z.ZodString;
3178
+ sessionId: z.ZodOptional<z.ZodString>;
2744
3179
  }, z.core.$strip>, z.ZodObject<{
2745
3180
  type: z.ZodLiteral<"system">;
2746
3181
  component: z.ZodString;
@@ -2773,6 +3208,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2773
3208
  type: z.ZodLiteral<"platform_operator">;
2774
3209
  sub: z.ZodString;
2775
3210
  reason: z.ZodString;
3211
+ sessionId: z.ZodOptional<z.ZodString>;
2776
3212
  }, z.core.$strip>, z.ZodObject<{
2777
3213
  type: z.ZodLiteral<"system">;
2778
3214
  component: z.ZodString;
@@ -2795,6 +3231,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2795
3231
  type: z.ZodLiteral<"platform_operator">;
2796
3232
  sub: z.ZodString;
2797
3233
  reason: z.ZodString;
3234
+ sessionId: z.ZodOptional<z.ZodString>;
2798
3235
  }, z.core.$strip>, z.ZodObject<{
2799
3236
  type: z.ZodLiteral<"system">;
2800
3237
  component: z.ZodString;
@@ -2818,6 +3255,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2818
3255
  type: z.ZodLiteral<"platform_operator">;
2819
3256
  sub: z.ZodString;
2820
3257
  reason: z.ZodString;
3258
+ sessionId: z.ZodOptional<z.ZodString>;
2821
3259
  }, z.core.$strip>, z.ZodObject<{
2822
3260
  type: z.ZodLiteral<"system">;
2823
3261
  component: z.ZodString;
@@ -2841,6 +3279,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2841
3279
  type: z.ZodLiteral<"platform_operator">;
2842
3280
  sub: z.ZodString;
2843
3281
  reason: z.ZodString;
3282
+ sessionId: z.ZodOptional<z.ZodString>;
2844
3283
  }, z.core.$strip>, z.ZodObject<{
2845
3284
  type: z.ZodLiteral<"system">;
2846
3285
  component: z.ZodString;
@@ -2864,6 +3303,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2864
3303
  type: z.ZodLiteral<"platform_operator">;
2865
3304
  sub: z.ZodString;
2866
3305
  reason: z.ZodString;
3306
+ sessionId: z.ZodOptional<z.ZodString>;
2867
3307
  }, z.core.$strip>, z.ZodObject<{
2868
3308
  type: z.ZodLiteral<"system">;
2869
3309
  component: z.ZodString;
@@ -2887,6 +3327,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2887
3327
  type: z.ZodLiteral<"platform_operator">;
2888
3328
  sub: z.ZodString;
2889
3329
  reason: z.ZodString;
3330
+ sessionId: z.ZodOptional<z.ZodString>;
2890
3331
  }, z.core.$strip>, z.ZodObject<{
2891
3332
  type: z.ZodLiteral<"system">;
2892
3333
  component: z.ZodString;
@@ -2909,6 +3350,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2909
3350
  type: z.ZodLiteral<"platform_operator">;
2910
3351
  sub: z.ZodString;
2911
3352
  reason: z.ZodString;
3353
+ sessionId: z.ZodOptional<z.ZodString>;
2912
3354
  }, z.core.$strip>, z.ZodObject<{
2913
3355
  type: z.ZodLiteral<"system">;
2914
3356
  component: z.ZodString;
@@ -2930,6 +3372,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2930
3372
  type: z.ZodLiteral<"platform_operator">;
2931
3373
  sub: z.ZodString;
2932
3374
  reason: z.ZodString;
3375
+ sessionId: z.ZodOptional<z.ZodString>;
2933
3376
  }, z.core.$strip>, z.ZodObject<{
2934
3377
  type: z.ZodLiteral<"system">;
2935
3378
  component: z.ZodString;
@@ -2952,6 +3395,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2952
3395
  type: z.ZodLiteral<"platform_operator">;
2953
3396
  sub: z.ZodString;
2954
3397
  reason: z.ZodString;
3398
+ sessionId: z.ZodOptional<z.ZodString>;
2955
3399
  }, z.core.$strip>, z.ZodObject<{
2956
3400
  type: z.ZodLiteral<"system">;
2957
3401
  component: z.ZodString;
@@ -2973,6 +3417,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2973
3417
  type: z.ZodLiteral<"platform_operator">;
2974
3418
  sub: z.ZodString;
2975
3419
  reason: z.ZodString;
3420
+ sessionId: z.ZodOptional<z.ZodString>;
2976
3421
  }, z.core.$strip>, z.ZodObject<{
2977
3422
  type: z.ZodLiteral<"system">;
2978
3423
  component: z.ZodString;
@@ -2995,6 +3440,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2995
3440
  type: z.ZodLiteral<"platform_operator">;
2996
3441
  sub: z.ZodString;
2997
3442
  reason: z.ZodString;
3443
+ sessionId: z.ZodOptional<z.ZodString>;
2998
3444
  }, z.core.$strip>, z.ZodObject<{
2999
3445
  type: z.ZodLiteral<"system">;
3000
3446
  component: z.ZodString;
@@ -3016,6 +3462,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3016
3462
  type: z.ZodLiteral<"platform_operator">;
3017
3463
  sub: z.ZodString;
3018
3464
  reason: z.ZodString;
3465
+ sessionId: z.ZodOptional<z.ZodString>;
3019
3466
  }, z.core.$strip>, z.ZodObject<{
3020
3467
  type: z.ZodLiteral<"system">;
3021
3468
  component: z.ZodString;
@@ -3038,6 +3485,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3038
3485
  type: z.ZodLiteral<"platform_operator">;
3039
3486
  sub: z.ZodString;
3040
3487
  reason: z.ZodString;
3488
+ sessionId: z.ZodOptional<z.ZodString>;
3041
3489
  }, z.core.$strip>, z.ZodObject<{
3042
3490
  type: z.ZodLiteral<"system">;
3043
3491
  component: z.ZodString;
@@ -3060,6 +3508,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3060
3508
  type: z.ZodLiteral<"platform_operator">;
3061
3509
  sub: z.ZodString;
3062
3510
  reason: z.ZodString;
3511
+ sessionId: z.ZodOptional<z.ZodString>;
3063
3512
  }, z.core.$strip>, z.ZodObject<{
3064
3513
  type: z.ZodLiteral<"system">;
3065
3514
  component: z.ZodString;
@@ -3073,6 +3522,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3073
3522
  processed: "processed";
3074
3523
  duplicate: "duplicate";
3075
3524
  lockfile_missing: "lockfile_missing";
3525
+ lockfile_corrupt: "lockfile_corrupt";
3076
3526
  }>>;
3077
3527
  fromTimestamp: z.ZodOptional<z.ZodString>;
3078
3528
  toTimestamp: z.ZodOptional<z.ZodString>;
@@ -3096,6 +3546,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3096
3546
  type: z.ZodLiteral<"platform_operator">;
3097
3547
  sub: z.ZodString;
3098
3548
  reason: z.ZodString;
3549
+ sessionId: z.ZodOptional<z.ZodString>;
3099
3550
  }, z.core.$strip>, z.ZodObject<{
3100
3551
  type: z.ZodLiteral<"system">;
3101
3552
  component: z.ZodString;
@@ -3120,6 +3571,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3120
3571
  type: z.ZodLiteral<"platform_operator">;
3121
3572
  sub: z.ZodString;
3122
3573
  reason: z.ZodString;
3574
+ sessionId: z.ZodOptional<z.ZodString>;
3123
3575
  }, z.core.$strip>, z.ZodObject<{
3124
3576
  type: z.ZodLiteral<"system">;
3125
3577
  component: z.ZodString;
@@ -3144,6 +3596,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3144
3596
  type: z.ZodLiteral<"platform_operator">;
3145
3597
  sub: z.ZodString;
3146
3598
  reason: z.ZodString;
3599
+ sessionId: z.ZodOptional<z.ZodString>;
3147
3600
  }, z.core.$strip>, z.ZodObject<{
3148
3601
  type: z.ZodLiteral<"system">;
3149
3602
  component: z.ZodString;
@@ -3168,6 +3621,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3168
3621
  type: z.ZodLiteral<"platform_operator">;
3169
3622
  sub: z.ZodString;
3170
3623
  reason: z.ZodString;
3624
+ sessionId: z.ZodOptional<z.ZodString>;
3171
3625
  }, z.core.$strip>, z.ZodObject<{
3172
3626
  type: z.ZodLiteral<"system">;
3173
3627
  component: z.ZodString;
@@ -3190,6 +3644,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3190
3644
  type: z.ZodLiteral<"platform_operator">;
3191
3645
  sub: z.ZodString;
3192
3646
  reason: z.ZodString;
3647
+ sessionId: z.ZodOptional<z.ZodString>;
3193
3648
  }, z.core.$strip>, z.ZodObject<{
3194
3649
  type: z.ZodLiteral<"system">;
3195
3650
  component: z.ZodString;
@@ -3213,6 +3668,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3213
3668
  type: z.ZodLiteral<"platform_operator">;
3214
3669
  sub: z.ZodString;
3215
3670
  reason: z.ZodString;
3671
+ sessionId: z.ZodOptional<z.ZodString>;
3216
3672
  }, z.core.$strip>, z.ZodObject<{
3217
3673
  type: z.ZodLiteral<"system">;
3218
3674
  component: z.ZodString;
@@ -3236,6 +3692,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3236
3692
  type: z.ZodLiteral<"platform_operator">;
3237
3693
  sub: z.ZodString;
3238
3694
  reason: z.ZodString;
3695
+ sessionId: z.ZodOptional<z.ZodString>;
3239
3696
  }, z.core.$strip>, z.ZodObject<{
3240
3697
  type: z.ZodLiteral<"system">;
3241
3698
  component: z.ZodString;
@@ -3257,6 +3714,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3257
3714
  type: z.ZodLiteral<"platform_operator">;
3258
3715
  sub: z.ZodString;
3259
3716
  reason: z.ZodString;
3717
+ sessionId: z.ZodOptional<z.ZodString>;
3260
3718
  }, z.core.$strip>, z.ZodObject<{
3261
3719
  type: z.ZodLiteral<"system">;
3262
3720
  component: z.ZodString;
@@ -3291,6 +3749,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3291
3749
  type: z.ZodLiteral<"platform_operator">;
3292
3750
  sub: z.ZodString;
3293
3751
  reason: z.ZodString;
3752
+ sessionId: z.ZodOptional<z.ZodString>;
3294
3753
  }, z.core.$strip>, z.ZodObject<{
3295
3754
  type: z.ZodLiteral<"system">;
3296
3755
  component: z.ZodString;
@@ -3311,6 +3770,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3311
3770
  "registration.delete": "registration.delete";
3312
3771
  "global_workflows.update": "global_workflows.update";
3313
3772
  "run.detail.read": "run.detail.read";
3773
+ "runs.list.read": "runs.list.read";
3774
+ "runs.filters.read": "runs.filters.read";
3775
+ "sources.list.read": "sources.list.read";
3314
3776
  "run.payload.read": "run.payload.read";
3315
3777
  "run.orch_logs.read": "run.orch_logs.read";
3316
3778
  "step.logs.read": "step.logs.read";
@@ -3484,6 +3946,73 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3484
3946
  lines: z.ZodArray<z.ZodString>;
3485
3947
  totalLines: z.ZodNumber;
3486
3948
  error: z.ZodOptional<z.ZodString>;
3949
+ }, z.core.$strip>, z.ZodObject<{
3950
+ type: z.ZodLiteral<"dashboard.runs.list.response">;
3951
+ requestId: z.ZodString;
3952
+ runs: z.ZodArray<z.ZodObject<{
3953
+ runId: z.ZodString;
3954
+ routingKey: z.ZodString;
3955
+ status: z.ZodString;
3956
+ repoIdentifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3957
+ createdAt: z.ZodString;
3958
+ updatedAt: z.ZodOptional<z.ZodString>;
3959
+ trigger: z.ZodOptional<z.ZodString>;
3960
+ workflowName: z.ZodOptional<z.ZodString>;
3961
+ sha: z.ZodOptional<z.ZodString>;
3962
+ ref: z.ZodOptional<z.ZodString>;
3963
+ triggerEvent: z.ZodOptional<z.ZodString>;
3964
+ commitMessage: z.ZodOptional<z.ZodString>;
3965
+ jobCount: z.ZodOptional<z.ZodNumber>;
3966
+ startedAt: z.ZodOptional<z.ZodString>;
3967
+ completedAt: z.ZodOptional<z.ZodString>;
3968
+ durationMs: z.ZodOptional<z.ZodNumber>;
3969
+ parentRunId: z.ZodOptional<z.ZodString>;
3970
+ originalRunId: z.ZodOptional<z.ZodString>;
3971
+ triggeredBy: z.ZodOptional<z.ZodString>;
3972
+ cancelledBy: z.ZodOptional<z.ZodString>;
3973
+ failureReason: z.ZodOptional<z.ZodString>;
3974
+ hadCompileJob: z.ZodOptional<z.ZodBoolean>;
3975
+ compileJobId: z.ZodOptional<z.ZodString>;
3976
+ source: z.ZodOptional<z.ZodObject<{
3977
+ routingKey: z.ZodString;
3978
+ name: z.ZodNullable<z.ZodString>;
3979
+ subtype: z.ZodString;
3980
+ provider: z.ZodString;
3981
+ }, z.core.$strip>>;
3982
+ }, z.core.$strip>>;
3983
+ nextCursor: z.ZodOptional<z.ZodString>;
3984
+ error: z.ZodOptional<z.ZodString>;
3985
+ }, z.core.$strip>, z.ZodObject<{
3986
+ type: z.ZodLiteral<"dashboard.runs.filters.response">;
3987
+ requestId: z.ZodString;
3988
+ statuses: z.ZodArray<z.ZodString>;
3989
+ workflows: z.ZodArray<z.ZodString>;
3990
+ branches: z.ZodArray<z.ZodString>;
3991
+ repositories: z.ZodArray<z.ZodString>;
3992
+ triggerTypes: z.ZodArray<z.ZodString>;
3993
+ sources: z.ZodArray<z.ZodObject<{
3994
+ routingKey: z.ZodString;
3995
+ name: z.ZodNullable<z.ZodString>;
3996
+ }, z.core.$strip>>;
3997
+ error: z.ZodOptional<z.ZodString>;
3998
+ }, z.core.$strip>, z.ZodObject<{
3999
+ type: z.ZodLiteral<"dashboard.sources.list.response">;
4000
+ requestId: z.ZodString;
4001
+ sources: z.ZodArray<z.ZodObject<{
4002
+ routingKey: z.ZodString;
4003
+ name: z.ZodNullable<z.ZodString>;
4004
+ provider: z.ZodString;
4005
+ subtype: z.ZodEnum<{
4006
+ github_app: "github_app";
4007
+ generic_webhook: "generic_webhook";
4008
+ universal_git: "universal_git";
4009
+ internal: "internal";
4010
+ }>;
4011
+ enabled: z.ZodBoolean;
4012
+ createdAt: z.ZodString;
4013
+ }, z.core.$strip>>;
4014
+ nextCursor: z.ZodOptional<z.ZodString>;
4015
+ error: z.ZodOptional<z.ZodString>;
3487
4016
  }, z.core.$strip>, z.ZodObject<{
3488
4017
  type: z.ZodLiteral<"run.rerun.response">;
3489
4018
  requestId: z.ZodString;
@@ -3523,6 +4052,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3523
4052
  }>;
3524
4053
  globPattern: z.ZodNullable<z.ZodString>;
3525
4054
  enabled: z.ZodBoolean;
4055
+ allowLocalExecution: z.ZodBoolean;
3526
4056
  createdAt: z.ZodCoercedString<unknown>;
3527
4057
  updatedAt: z.ZodCoercedString<unknown>;
3528
4058
  }, z.core.$strip>>>;
@@ -3548,6 +4078,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3548
4078
  waitTimerSeconds: z.ZodNullable<z.ZodNumber>;
3549
4079
  holdExpirySeconds: z.ZodNullable<z.ZodNumber>;
3550
4080
  enabled: z.ZodBoolean;
4081
+ allowLocalExecution: z.ZodBoolean;
3551
4082
  createdAt: z.ZodCoercedString<unknown>;
3552
4083
  updatedAt: z.ZodCoercedString<unknown>;
3553
4084
  }, z.core.$strip>>;
@@ -3561,10 +4092,17 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3561
4092
  type: z.ZodLiteral<"dashboard.environments.update.response">;
3562
4093
  requestId: z.ZodString;
3563
4094
  error: z.ZodOptional<z.ZodString>;
4095
+ }, z.core.$strip>, z.ZodObject<{
4096
+ type: z.ZodLiteral<"dashboard.environments.test_access.set.response">;
4097
+ requestId: z.ZodString;
4098
+ error: z.ZodOptional<z.ZodString>;
3564
4099
  }, z.core.$strip>, z.ZodObject<{
3565
4100
  type: z.ZodLiteral<"dashboard.environments.delete.response">;
3566
4101
  requestId: z.ZodString;
3567
4102
  error: z.ZodOptional<z.ZodString>;
4103
+ errorCode: z.ZodOptional<z.ZodEnum<{
4104
+ pending_held_runs: "pending_held_runs";
4105
+ }>>;
3568
4106
  }, z.core.$strip>, z.ZodObject<{
3569
4107
  type: z.ZodLiteral<"dashboard.environments.variables.list.response">;
3570
4108
  requestId: z.ZodString;
@@ -3658,8 +4196,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3658
4196
  heldRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
3659
4197
  id: z.ZodString;
3660
4198
  runId: z.ZodString;
3661
- environmentId: z.ZodString;
3662
- environmentName: z.ZodString;
4199
+ environmentId: z.ZodNullable<z.ZodString>;
4200
+ environmentName: z.ZodNullable<z.ZodString>;
3663
4201
  holdType: z.ZodString;
3664
4202
  queueType: z.ZodEnum<{
3665
4203
  environment: "environment";
@@ -3765,6 +4303,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3765
4303
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3766
4304
  agentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3767
4305
  statefulAgentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4306
+ statefulHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
3768
4307
  }, z.core.$strip>;
3769
4308
  agents: z.ZodArray<z.ZodObject<{
3770
4309
  agentId: z.ZodString;
@@ -3791,11 +4330,17 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3791
4330
  }, z.core.$strip>>;
3792
4331
  scalers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3793
4332
  name: z.ZodString;
3794
- type: z.ZodString;
4333
+ type: z.ZodEnum<{
4334
+ container: "container";
4335
+ "bare-metal": "bare-metal";
4336
+ firecracker: "firecracker";
4337
+ kubernetes: "kubernetes";
4338
+ }>;
3795
4339
  maxAgents: z.ZodNumber;
3796
4340
  activeAgents: z.ZodNumber;
3797
4341
  labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
3798
4342
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4343
+ hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
3799
4344
  }, z.core.$strip>>>;
3800
4345
  peers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3801
4346
  instanceId: z.ZodString;
@@ -3813,6 +4358,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3813
4358
  arch: z.ZodString;
3814
4359
  activeJobs: z.ZodNumber;
3815
4360
  maxConcurrency: z.ZodNumber;
4361
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3816
4362
  }, z.core.$strip>>;
3817
4363
  hostname: z.ZodOptional<z.ZodString>;
3818
4364
  osRelease: z.ZodOptional<z.ZodString>;
@@ -3831,6 +4377,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3831
4377
  activeCount: z.ZodNumber;
3832
4378
  maxAgents: z.ZodNumber;
3833
4379
  labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
4380
+ spawnsOnLocalHost: z.ZodOptional<z.ZodBoolean>;
3834
4381
  }, z.core.$strip>>>;
3835
4382
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
3836
4383
  name: z.ZodString;
@@ -3978,6 +4525,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3978
4525
  processed: "processed";
3979
4526
  duplicate: "duplicate";
3980
4527
  lockfile_missing: "lockfile_missing";
4528
+ lockfile_corrupt: "lockfile_corrupt";
3981
4529
  }>;
3982
4530
  matchedCount: z.ZodNumber;
3983
4531
  runId: z.ZodNullable<z.ZodString>;
@@ -4014,6 +4562,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4014
4562
  processed: "processed";
4015
4563
  duplicate: "duplicate";
4016
4564
  lockfile_missing: "lockfile_missing";
4565
+ lockfile_corrupt: "lockfile_corrupt";
4017
4566
  }>;
4018
4567
  matchedCount: z.ZodNumber;
4019
4568
  runId: z.ZodNullable<z.ZodString>;
@@ -4147,6 +4696,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4147
4696
  "registration.delete": "registration.delete";
4148
4697
  "global_workflows.update": "global_workflows.update";
4149
4698
  "run.detail.read": "run.detail.read";
4699
+ "runs.list.read": "runs.list.read";
4700
+ "runs.filters.read": "runs.filters.read";
4701
+ "sources.list.read": "sources.list.read";
4150
4702
  "run.payload.read": "run.payload.read";
4151
4703
  "run.orch_logs.read": "run.orch_logs.read";
4152
4704
  "step.logs.read": "step.logs.read";
@@ -4265,6 +4817,7 @@ export type EnvGetRequest = z.infer<typeof envGetRequestSchema>;
4265
4817
  type EnvGetResponse = z.infer<typeof envGetResponseSchema>;
4266
4818
  export type EnvCreateRequest = z.infer<typeof envCreateRequestSchema>;
4267
4819
  export type EnvUpdateRequest = z.infer<typeof envUpdateRequestSchema>;
4820
+ export type EnvTestAccessSetRequest = z.infer<typeof envTestAccessSetRequestSchema>;
4268
4821
  export type EnvDeleteRequest = z.infer<typeof envDeleteRequestSchema>;
4269
4822
  export type EnvVarsListRequest = z.infer<typeof envVarsListRequestSchema>;
4270
4823
  type EnvVarsListResponse = z.infer<typeof envVarsListResponseSchema>;