@kici-dev/engine 0.1.16 → 0.1.17

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 (98) hide show
  1. package/dist/approval/types.js +1 -1
  2. package/dist/audit/access-log-policy.js +3 -1
  3. package/dist/audit/activity.js +1 -1
  4. package/dist/audit/retention-policy.js +5 -1
  5. package/dist/bundler/index.js +1 -1
  6. package/dist/bundler/rolldown-config.js +1 -1
  7. package/dist/env/environment-allowlist.js +1 -1
  8. package/dist/environment/index.js +1 -1
  9. package/dist/environment/scope-resolver.js +1 -1
  10. package/dist/environment/types.js +1 -1
  11. package/dist/fanout/materialize.d.ts +67 -0
  12. package/dist/fanout/materialize.js +119 -0
  13. package/dist/index.d.ts +3 -2
  14. package/dist/index.js +8 -7
  15. package/dist/labels.js +1 -1
  16. package/dist/matrix/expand.d.ts +43 -0
  17. package/dist/matrix/expand.js +66 -0
  18. package/dist/matrix/format.d.ts +10 -0
  19. package/dist/matrix/format.js +19 -0
  20. package/dist/metrics/catalog-policy.js +8 -3
  21. package/dist/metrics/metric-catalog.generated.d.ts +1 -1
  22. package/dist/metrics/metric-catalog.generated.js +2 -2
  23. package/dist/protocol/analytics-events.js +1 -1
  24. package/dist/protocol/cluster-name.js +1 -1
  25. package/dist/protocol/dashboard-global-workflows.js +1 -1
  26. package/dist/protocol/dashboard-write-operations.js +1 -1
  27. package/dist/protocol/event-log-payload.js +1 -1
  28. package/dist/protocol/messages/access-log.d.ts +15 -5
  29. package/dist/protocol/messages/access-log.js +3 -1
  30. package/dist/protocol/messages/actor.js +1 -1
  31. package/dist/protocol/messages/auth.d.ts +1 -0
  32. package/dist/protocol/messages/auth.js +11 -2
  33. package/dist/protocol/messages/browser.js +1 -1
  34. package/dist/protocol/messages/capabilities.js +1 -1
  35. package/dist/protocol/messages/common.js +1 -1
  36. package/dist/protocol/messages/dashboard-global-workflows.js +1 -1
  37. package/dist/protocol/messages/dashboard.d.ts +976 -56
  38. package/dist/protocol/messages/dashboard.js +362 -6
  39. package/dist/protocol/messages/event-log.js +1 -1
  40. package/dist/protocol/messages/execution-status.d.ts +13 -1
  41. package/dist/protocol/messages/execution-status.js +13 -3
  42. package/dist/protocol/messages/join.js +1 -1
  43. package/dist/protocol/messages/log-pull.js +1 -1
  44. package/dist/protocol/messages/observe.d.ts +1 -0
  45. package/dist/protocol/messages/oidc-token-relay.d.ts +31 -0
  46. package/dist/protocol/messages/oidc-token-relay.js +34 -0
  47. package/dist/protocol/messages/orchestrator-agent.d.ts +41 -0
  48. package/dist/protocol/messages/orchestrator-agent.js +33 -2
  49. package/dist/protocol/messages/peer.js +1 -1
  50. package/dist/protocol/messages/platform-orchestrator.d.ts +171 -4
  51. package/dist/protocol/messages/platform-orchestrator.js +1 -1
  52. package/dist/protocol/messages/run-events.js +1 -1
  53. package/dist/protocol/messages/scaler-event.js +1 -1
  54. package/dist/protocol/messages/source-registration.d.ts +7 -6
  55. package/dist/protocol/messages/source-registration.js +7 -6
  56. package/dist/protocol/version.js +1 -1
  57. package/dist/provenance/bundle.d.ts +54 -0
  58. package/dist/provenance/bundle.js +53 -0
  59. package/dist/provenance/dsse.d.ts +39 -0
  60. package/dist/provenance/dsse.js +53 -0
  61. package/dist/provenance/schema.js +1 -1
  62. package/dist/provenance/verify.d.ts +71 -0
  63. package/dist/provenance/verify.js +135 -0
  64. package/dist/provider/changed-files-fetcher.js +1 -1
  65. package/dist/provider/check-run-conclusion.js +1 -1
  66. package/dist/provider/check-status-poster.js +1 -1
  67. package/dist/provider/clone-token-provider.js +1 -1
  68. package/dist/provider/contributor-resolver.js +1 -1
  69. package/dist/provider/index.js +1 -1
  70. package/dist/provider/lock-file-fetcher.js +1 -1
  71. package/dist/provider/lock-file-parse-error.js +3 -1
  72. package/dist/provider/repo-url-builder.js +1 -1
  73. package/dist/provider/types.d.ts +2 -2
  74. package/dist/provider/types.js +1 -1
  75. package/dist/provider/webhook-normalizer.js +1 -1
  76. package/dist/registration/registerable-trigger-type.js +1 -1
  77. package/dist/scaler/resource-types.js +1 -1
  78. package/dist/scaler/scaler-backend-type.js +1 -1
  79. package/dist/secrets/index.js +1 -1
  80. package/dist/secrets/types.js +1 -1
  81. package/dist/state-machine/index.js +1 -1
  82. package/dist/state-machine/machine.js +1 -1
  83. package/dist/state-machine/types.js +1 -1
  84. package/dist/trigger/decision-trace.js +1 -1
  85. package/dist/trigger/jsonpath-matcher.js +1 -1
  86. package/dist/trigger/matcher.js +1 -1
  87. package/dist/trigger/trigger-event-type.js +1 -1
  88. package/dist/trigger/types.d.ts +13 -1
  89. package/dist/trigger/types.js +13 -5
  90. package/dist/webhook/signature.js +1 -1
  91. package/dist/ws/close-codes.js +1 -1
  92. package/dist/ws/rate-limiter.js +3 -1
  93. package/dist/ws/ws-like.js +1 -1
  94. package/package.json +19 -1
  95. package/sbom.spdx.json +55 -5
  96. package/dist/protocol/messages/observe.js +0 -70
  97. package/dist/protocol/messages/test-run.js +0 -52
  98. /package/dist/{chunk-gOLHoazu.js → chunk-BTugEXQM.js} +0 -0
@@ -84,6 +84,13 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
84
84
  message: z.ZodString;
85
85
  jobName: z.ZodOptional<z.ZodString>;
86
86
  }, z.core.$strip>>;
87
+ needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
88
+ upstreamName: z.ZodString;
89
+ ifFailed: z.ZodEnum<{
90
+ run: "run";
91
+ skip: "skip";
92
+ }>;
93
+ }, z.core.$strip>>>>;
87
94
  steps: z.ZodArray<z.ZodObject<{
88
95
  stepIndex: z.ZodNumber;
89
96
  stepName: z.ZodString;
@@ -133,6 +140,13 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
133
140
  message: z.ZodString;
134
141
  jobName: z.ZodOptional<z.ZodString>;
135
142
  }, z.core.$strip>>;
143
+ needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
144
+ upstreamName: z.ZodString;
145
+ ifFailed: z.ZodEnum<{
146
+ run: "run";
147
+ skip: "skip";
148
+ }>;
149
+ }, z.core.$strip>>>>;
136
150
  steps: z.ZodArray<z.ZodObject<{
137
151
  stepIndex: z.ZodNumber;
138
152
  stepName: z.ZodString;
@@ -186,6 +200,95 @@ export declare const dashboardStepLogsResponseSchema: z.ZodObject<{
186
200
  totalLines: z.ZodNumber;
187
201
  error: z.ZodOptional<z.ZodString>;
188
202
  }, z.core.$strip>;
203
+ /** Request the build-provenance attestations for a run. */
204
+ export declare const dashboardAttestationsListRequestSchema: z.ZodObject<{
205
+ type: z.ZodLiteral<"dashboard.attestations.list">;
206
+ requestId: z.ZodString;
207
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
208
+ type: z.ZodLiteral<"user">;
209
+ sub: z.ZodString;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ type: z.ZodLiteral<"api_key">;
212
+ keyId: z.ZodString;
213
+ ownerSub: z.ZodString;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ type: z.ZodLiteral<"service_account">;
216
+ id: z.ZodString;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ type: z.ZodLiteral<"platform_operator">;
219
+ sub: z.ZodString;
220
+ reason: z.ZodString;
221
+ sessionId: z.ZodOptional<z.ZodString>;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ type: z.ZodLiteral<"system">;
224
+ component: z.ZodString;
225
+ }, z.core.$strip>], "type">;
226
+ runId: z.ZodString;
227
+ }, z.core.$strip>;
228
+ export type DashboardAttestationsListRequest = z.infer<typeof dashboardAttestationsListRequestSchema>;
229
+ /**
230
+ * Single attestation in the list response, with its bundle inlined from object
231
+ * storage so the dashboard verifies it without a second fetch. The bundle is a
232
+ * KiCI Mode-A bundle (`@kici-dev/engine/provenance/bundle`).
233
+ */
234
+ export declare const attestationListItemSchema: z.ZodObject<{
235
+ id: z.ZodString;
236
+ jobId: z.ZodString;
237
+ jobName: z.ZodNullable<z.ZodString>;
238
+ subjectName: z.ZodString;
239
+ subjectDigest: z.ZodString;
240
+ mode: z.ZodString;
241
+ mediaType: z.ZodString;
242
+ createdAt: z.ZodString;
243
+ bundle: z.ZodObject<{
244
+ mediaType: z.ZodLiteral<"application/vnd.kici.provenance.bundle+json;version=0.1">;
245
+ dsseEnvelope: z.ZodObject<{
246
+ payloadType: z.ZodString;
247
+ payload: z.ZodString;
248
+ signatures: z.ZodArray<z.ZodObject<{
249
+ keyid: z.ZodString;
250
+ sig: z.ZodString;
251
+ }, z.core.$strip>>;
252
+ }, z.core.$strip>;
253
+ verificationMaterial: z.ZodObject<{
254
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
255
+ identityToken: z.ZodString;
256
+ }, z.core.$strip>;
257
+ }, z.core.$strip>;
258
+ }, z.core.$strip>;
259
+ export type AttestationListItem = z.infer<typeof attestationListItemSchema>;
260
+ /** Response with the run's attestations (correlates to dashboard.attestations.list). */
261
+ export declare const dashboardAttestationsListResponseSchema: z.ZodObject<{
262
+ type: z.ZodLiteral<"dashboard.attestations.list.response">;
263
+ requestId: z.ZodString;
264
+ attestations: z.ZodArray<z.ZodObject<{
265
+ id: z.ZodString;
266
+ jobId: z.ZodString;
267
+ jobName: z.ZodNullable<z.ZodString>;
268
+ subjectName: z.ZodString;
269
+ subjectDigest: z.ZodString;
270
+ mode: z.ZodString;
271
+ mediaType: z.ZodString;
272
+ createdAt: z.ZodString;
273
+ bundle: z.ZodObject<{
274
+ mediaType: z.ZodLiteral<"application/vnd.kici.provenance.bundle+json;version=0.1">;
275
+ dsseEnvelope: z.ZodObject<{
276
+ payloadType: z.ZodString;
277
+ payload: z.ZodString;
278
+ signatures: z.ZodArray<z.ZodObject<{
279
+ keyid: z.ZodString;
280
+ sig: z.ZodString;
281
+ }, z.core.$strip>>;
282
+ }, z.core.$strip>;
283
+ verificationMaterial: z.ZodObject<{
284
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
285
+ identityToken: z.ZodString;
286
+ }, z.core.$strip>;
287
+ }, z.core.$strip>;
288
+ }, z.core.$strip>>;
289
+ error: z.ZodOptional<z.ZodString>;
290
+ }, z.core.$strip>;
291
+ export type DashboardAttestationsListResponse = z.infer<typeof dashboardAttestationsListResponseSchema>;
189
292
  /**
190
293
  * Run-summary projection from the orchestrator's execution_runs table.
191
294
  *
@@ -341,7 +444,7 @@ export declare const dashboardSourceSummarySchema: z.ZodObject<{
341
444
  github_app: "github_app";
342
445
  generic_webhook: "generic_webhook";
343
446
  universal_git: "universal_git";
344
- internal: "internal";
447
+ local: "local";
345
448
  }>;
346
449
  enabled: z.ZodBoolean;
347
450
  createdAt: z.ZodString;
@@ -386,7 +489,7 @@ export declare const dashboardSourcesListResponseSchema: z.ZodObject<{
386
489
  github_app: "github_app";
387
490
  generic_webhook: "generic_webhook";
388
491
  universal_git: "universal_git";
389
- internal: "internal";
492
+ local: "local";
390
493
  }>;
391
494
  enabled: z.ZodBoolean;
392
495
  createdAt: z.ZodString;
@@ -976,6 +1079,8 @@ export declare const envListRequestSchema: z.ZodObject<{
976
1079
  type: z.ZodLiteral<"system">;
977
1080
  component: z.ZodString;
978
1081
  }, z.core.$strip>], "type">;
1082
+ includeSecrets: z.ZodOptional<z.ZodBoolean>;
1083
+ orgId: z.ZodOptional<z.ZodString>;
979
1084
  }, z.core.$strip>;
980
1085
  declare const envListResponseSchema: z.ZodObject<{
981
1086
  type: z.ZodLiteral<"dashboard.environments.list.response">;
@@ -984,14 +1089,15 @@ declare const envListResponseSchema: z.ZodObject<{
984
1089
  id: z.ZodString;
985
1090
  name: z.ZodString;
986
1091
  type: z.ZodEnum<{
987
- fixed: "fixed";
988
1092
  glob: "glob";
1093
+ fixed: "fixed";
989
1094
  }>;
990
1095
  globPattern: z.ZodNullable<z.ZodString>;
991
1096
  enabled: z.ZodBoolean;
992
1097
  allowLocalExecution: z.ZodBoolean;
993
1098
  createdAt: z.ZodCoercedString<unknown>;
994
1099
  updatedAt: z.ZodCoercedString<unknown>;
1100
+ secretKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
995
1101
  }, z.core.$strip>>>;
996
1102
  error: z.ZodOptional<z.ZodString>;
997
1103
  }, z.core.$strip>;
@@ -1027,8 +1133,8 @@ declare const envGetResponseSchema: z.ZodObject<{
1027
1133
  id: z.ZodString;
1028
1134
  name: z.ZodString;
1029
1135
  type: z.ZodEnum<{
1030
- fixed: "fixed";
1031
1136
  glob: "glob";
1137
+ fixed: "fixed";
1032
1138
  }>;
1033
1139
  globPattern: z.ZodNullable<z.ZodString>;
1034
1140
  branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
@@ -1072,8 +1178,8 @@ export declare const envCreateRequestSchema: z.ZodObject<{
1072
1178
  }, z.core.$strip>], "type">;
1073
1179
  name: z.ZodString;
1074
1180
  envType: z.ZodEnum<{
1075
- fixed: "fixed";
1076
1181
  glob: "glob";
1182
+ fixed: "fixed";
1077
1183
  }>;
1078
1184
  globPattern: z.ZodOptional<z.ZodString>;
1079
1185
  branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1114,8 +1220,8 @@ export declare const envUpdateRequestSchema: z.ZodObject<{
1114
1220
  updates: z.ZodObject<{
1115
1221
  name: z.ZodOptional<z.ZodString>;
1116
1222
  envType: z.ZodOptional<z.ZodEnum<{
1117
- fixed: "fixed";
1118
1223
  glob: "glob";
1224
+ fixed: "fixed";
1119
1225
  }>>;
1120
1226
  globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
1227
  branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -2150,7 +2256,7 @@ export declare const registrationItemSchema: z.ZodObject<{
2150
2256
  github_app: "github_app";
2151
2257
  generic_webhook: "generic_webhook";
2152
2258
  universal_git: "universal_git";
2153
- internal: "internal";
2259
+ local: "local";
2154
2260
  }>>;
2155
2261
  provider: z.ZodString;
2156
2262
  }, z.core.$strip>>>;
@@ -2180,7 +2286,7 @@ export declare const registrationsListResponseSchema: z.ZodObject<{
2180
2286
  github_app: "github_app";
2181
2287
  generic_webhook: "generic_webhook";
2182
2288
  universal_git: "universal_git";
2183
- internal: "internal";
2289
+ local: "local";
2184
2290
  }>>;
2185
2291
  provider: z.ZodString;
2186
2292
  }, z.core.$strip>>>;
@@ -2417,6 +2523,229 @@ export declare const backendTestResponseSchema: z.ZodObject<{
2417
2523
  latencyMs: z.ZodOptional<z.ZodNumber>;
2418
2524
  error: z.ZodOptional<z.ZodString>;
2419
2525
  }, z.core.$strip>;
2526
+ /** Enum of the five test-relay control message types (request side). */
2527
+ export declare const TestRelayType: z.ZodEnum<{
2528
+ "test.relay.uploads.init": "test.relay.uploads.init";
2529
+ "test.relay.trigger": "test.relay.trigger";
2530
+ "test.relay.run.status": "test.relay.run.status";
2531
+ "test.relay.run.logs": "test.relay.run.logs";
2532
+ "test.relay.cancel": "test.relay.cancel";
2533
+ }>;
2534
+ export type TestRelayType = z.infer<typeof TestRelayType>;
2535
+ /** Request an external presigned upload URL for the overlay tarball. */
2536
+ export declare const testRelayUploadsInitRequestSchema: z.ZodObject<{
2537
+ type: z.ZodLiteral<"test.relay.uploads.init">;
2538
+ requestId: z.ZodString;
2539
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2540
+ type: z.ZodLiteral<"user">;
2541
+ sub: z.ZodString;
2542
+ }, z.core.$strip>, z.ZodObject<{
2543
+ type: z.ZodLiteral<"api_key">;
2544
+ keyId: z.ZodString;
2545
+ ownerSub: z.ZodString;
2546
+ }, z.core.$strip>, z.ZodObject<{
2547
+ type: z.ZodLiteral<"service_account">;
2548
+ id: z.ZodString;
2549
+ }, z.core.$strip>, z.ZodObject<{
2550
+ type: z.ZodLiteral<"platform_operator">;
2551
+ sub: z.ZodString;
2552
+ reason: z.ZodString;
2553
+ sessionId: z.ZodOptional<z.ZodString>;
2554
+ }, z.core.$strip>, z.ZodObject<{
2555
+ type: z.ZodLiteral<"system">;
2556
+ component: z.ZodString;
2557
+ }, z.core.$strip>], "type">;
2558
+ routingKey: z.ZodString;
2559
+ sha: z.ZodOptional<z.ZodString>;
2560
+ fileCount: z.ZodOptional<z.ZodNumber>;
2561
+ compressedSize: z.ZodOptional<z.ZodNumber>;
2562
+ }, z.core.$strip>;
2563
+ export type TestRelayUploadsInitRequest = z.infer<typeof testRelayUploadsInitRequestSchema>;
2564
+ /** Response with the external presigned upload URL + ephemeral encryption key. */
2565
+ export declare const testRelayUploadsInitResponseSchema: z.ZodObject<{
2566
+ type: z.ZodLiteral<"test.relay.uploads.init.response">;
2567
+ requestId: z.ZodString;
2568
+ uploadId: z.ZodOptional<z.ZodString>;
2569
+ signedUrl: z.ZodOptional<z.ZodString>;
2570
+ publicKey: z.ZodOptional<z.ZodString>;
2571
+ expiresIn: z.ZodOptional<z.ZodNumber>;
2572
+ error: z.ZodOptional<z.ZodString>;
2573
+ }, z.core.$strip>;
2574
+ export type TestRelayUploadsInitResponse = z.infer<typeof testRelayUploadsInitResponseSchema>;
2575
+ /** Trigger a remote test run (mirrors the orchestrator's TestTriggerInput). */
2576
+ export declare const testRelayTriggerRequestSchema: z.ZodObject<{
2577
+ type: z.ZodLiteral<"test.relay.trigger">;
2578
+ requestId: z.ZodString;
2579
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2580
+ type: z.ZodLiteral<"user">;
2581
+ sub: z.ZodString;
2582
+ }, z.core.$strip>, z.ZodObject<{
2583
+ type: z.ZodLiteral<"api_key">;
2584
+ keyId: z.ZodString;
2585
+ ownerSub: z.ZodString;
2586
+ }, z.core.$strip>, z.ZodObject<{
2587
+ type: z.ZodLiteral<"service_account">;
2588
+ id: z.ZodString;
2589
+ }, z.core.$strip>, z.ZodObject<{
2590
+ type: z.ZodLiteral<"platform_operator">;
2591
+ sub: z.ZodString;
2592
+ reason: z.ZodString;
2593
+ sessionId: z.ZodOptional<z.ZodString>;
2594
+ }, z.core.$strip>, z.ZodObject<{
2595
+ type: z.ZodLiteral<"system">;
2596
+ component: z.ZodString;
2597
+ }, z.core.$strip>], "type">;
2598
+ routingKey: z.ZodString;
2599
+ fixtureId: z.ZodString;
2600
+ event: z.ZodObject<{
2601
+ type: z.ZodString;
2602
+ action: z.ZodOptional<z.ZodString>;
2603
+ targetBranch: z.ZodString;
2604
+ sourceBranch: z.ZodOptional<z.ZodString>;
2605
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2606
+ changedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2607
+ }, z.core.$strip>;
2608
+ workflowName: z.ZodOptional<z.ZodString>;
2609
+ uploadId: z.ZodOptional<z.ZodString>;
2610
+ cliPublicKey: z.ZodOptional<z.ZodString>;
2611
+ inlineLockFile: z.ZodOptional<z.ZodString>;
2612
+ fullRepo: z.ZodOptional<z.ZodBoolean>;
2613
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2614
+ encryptedSecrets: z.ZodOptional<z.ZodString>;
2615
+ encryptedSecretsKey: z.ZodOptional<z.ZodString>;
2616
+ }, z.core.$strip>;
2617
+ export type TestRelayTriggerRequest = z.infer<typeof testRelayTriggerRequestSchema>;
2618
+ /** Response acknowledging a triggered run. */
2619
+ export declare const testRelayTriggerResponseSchema: z.ZodObject<{
2620
+ type: z.ZodLiteral<"test.relay.trigger.response">;
2621
+ requestId: z.ZodString;
2622
+ runId: z.ZodOptional<z.ZodString>;
2623
+ status: z.ZodOptional<z.ZodEnum<{
2624
+ accepted: "accepted";
2625
+ rejected: "rejected";
2626
+ }>>;
2627
+ reason: z.ZodOptional<z.ZodString>;
2628
+ jobIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2629
+ error: z.ZodOptional<z.ZodString>;
2630
+ }, z.core.$strip>;
2631
+ export type TestRelayTriggerResponse = z.infer<typeof testRelayTriggerResponseSchema>;
2632
+ /** Request a snapshot of a run's status. */
2633
+ export declare const testRelayRunStatusRequestSchema: z.ZodObject<{
2634
+ type: z.ZodLiteral<"test.relay.run.status">;
2635
+ requestId: z.ZodString;
2636
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2637
+ type: z.ZodLiteral<"user">;
2638
+ sub: z.ZodString;
2639
+ }, z.core.$strip>, z.ZodObject<{
2640
+ type: z.ZodLiteral<"api_key">;
2641
+ keyId: z.ZodString;
2642
+ ownerSub: z.ZodString;
2643
+ }, z.core.$strip>, z.ZodObject<{
2644
+ type: z.ZodLiteral<"service_account">;
2645
+ id: z.ZodString;
2646
+ }, z.core.$strip>, z.ZodObject<{
2647
+ type: z.ZodLiteral<"platform_operator">;
2648
+ sub: z.ZodString;
2649
+ reason: z.ZodString;
2650
+ sessionId: z.ZodOptional<z.ZodString>;
2651
+ }, z.core.$strip>, z.ZodObject<{
2652
+ type: z.ZodLiteral<"system">;
2653
+ component: z.ZodString;
2654
+ }, z.core.$strip>], "type">;
2655
+ runId: z.ZodString;
2656
+ }, z.core.$strip>;
2657
+ export type TestRelayRunStatusRequest = z.infer<typeof testRelayRunStatusRequestSchema>;
2658
+ /** Response carrying a run-status snapshot. */
2659
+ export declare const testRelayRunStatusResponseSchema: z.ZodObject<{
2660
+ type: z.ZodLiteral<"test.relay.run.status.response">;
2661
+ requestId: z.ZodString;
2662
+ runId: z.ZodOptional<z.ZodString>;
2663
+ status: z.ZodOptional<z.ZodString>;
2664
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2665
+ jobId: z.ZodString;
2666
+ jobName: z.ZodString;
2667
+ status: z.ZodString;
2668
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2669
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2670
+ }, z.core.$strip>>>;
2671
+ done: z.ZodOptional<z.ZodBoolean>;
2672
+ error: z.ZodOptional<z.ZodString>;
2673
+ }, z.core.$strip>;
2674
+ export type TestRelayRunStatusResponse = z.infer<typeof testRelayRunStatusResponseSchema>;
2675
+ /** Request the next chunk of a run's logs from a cursor. */
2676
+ export declare const testRelayRunLogsRequestSchema: z.ZodObject<{
2677
+ type: z.ZodLiteral<"test.relay.run.logs">;
2678
+ requestId: z.ZodString;
2679
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2680
+ type: z.ZodLiteral<"user">;
2681
+ sub: z.ZodString;
2682
+ }, z.core.$strip>, z.ZodObject<{
2683
+ type: z.ZodLiteral<"api_key">;
2684
+ keyId: z.ZodString;
2685
+ ownerSub: z.ZodString;
2686
+ }, z.core.$strip>, z.ZodObject<{
2687
+ type: z.ZodLiteral<"service_account">;
2688
+ id: z.ZodString;
2689
+ }, z.core.$strip>, z.ZodObject<{
2690
+ type: z.ZodLiteral<"platform_operator">;
2691
+ sub: z.ZodString;
2692
+ reason: z.ZodString;
2693
+ sessionId: z.ZodOptional<z.ZodString>;
2694
+ }, z.core.$strip>, z.ZodObject<{
2695
+ type: z.ZodLiteral<"system">;
2696
+ component: z.ZodString;
2697
+ }, z.core.$strip>], "type">;
2698
+ runId: z.ZodString;
2699
+ cursor: z.ZodNumber;
2700
+ }, z.core.$strip>;
2701
+ export type TestRelayRunLogsRequest = z.infer<typeof testRelayRunLogsRequestSchema>;
2702
+ /** Response carrying the next log chunk + a monotonic cursor. */
2703
+ export declare const testRelayRunLogsResponseSchema: z.ZodObject<{
2704
+ type: z.ZodLiteral<"test.relay.run.logs.response">;
2705
+ requestId: z.ZodString;
2706
+ lines: z.ZodOptional<z.ZodArray<z.ZodString>>;
2707
+ nextCursor: z.ZodOptional<z.ZodNumber>;
2708
+ done: z.ZodOptional<z.ZodBoolean>;
2709
+ error: z.ZodOptional<z.ZodString>;
2710
+ }, z.core.$strip>;
2711
+ export type TestRelayRunLogsResponse = z.infer<typeof testRelayRunLogsResponseSchema>;
2712
+ /** Request to cancel a run. */
2713
+ export declare const testRelayCancelRequestSchema: z.ZodObject<{
2714
+ type: z.ZodLiteral<"test.relay.cancel">;
2715
+ requestId: z.ZodString;
2716
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2717
+ type: z.ZodLiteral<"user">;
2718
+ sub: z.ZodString;
2719
+ }, z.core.$strip>, z.ZodObject<{
2720
+ type: z.ZodLiteral<"api_key">;
2721
+ keyId: z.ZodString;
2722
+ ownerSub: z.ZodString;
2723
+ }, z.core.$strip>, z.ZodObject<{
2724
+ type: z.ZodLiteral<"service_account">;
2725
+ id: z.ZodString;
2726
+ }, z.core.$strip>, z.ZodObject<{
2727
+ type: z.ZodLiteral<"platform_operator">;
2728
+ sub: z.ZodString;
2729
+ reason: z.ZodString;
2730
+ sessionId: z.ZodOptional<z.ZodString>;
2731
+ }, z.core.$strip>, z.ZodObject<{
2732
+ type: z.ZodLiteral<"system">;
2733
+ component: z.ZodString;
2734
+ }, z.core.$strip>], "type">;
2735
+ runId: z.ZodOptional<z.ZodString>;
2736
+ branch: z.ZodOptional<z.ZodString>;
2737
+ }, z.core.$strip>;
2738
+ export type TestRelayCancelRequest = z.infer<typeof testRelayCancelRequestSchema>;
2739
+ /** Response acknowledging a cancel. */
2740
+ export declare const testRelayCancelResponseSchema: z.ZodObject<{
2741
+ type: z.ZodLiteral<"test.relay.cancel.response">;
2742
+ requestId: z.ZodString;
2743
+ cancelled: z.ZodOptional<z.ZodBoolean>;
2744
+ error: z.ZodOptional<z.ZodString>;
2745
+ }, z.core.$strip>;
2746
+ export type TestRelayCancelResponse = z.infer<typeof testRelayCancelResponseSchema>;
2747
+ /** Union of the five Platform→orchestrator test-relay control requests. */
2748
+ export type TestRelayRequest = TestRelayUploadsInitRequest | TestRelayTriggerRequest | TestRelayRunStatusRequest | TestRelayRunLogsRequest | TestRelayCancelRequest;
2420
2749
  /** Dashboard messages flowing from Platform to Orchestrator. */
2421
2750
  export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2422
2751
  type: z.ZodLiteral<"dashboard.run.detail">;
@@ -2466,6 +2795,29 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2466
2795
  runId: z.ZodString;
2467
2796
  jobId: z.ZodString;
2468
2797
  stepIndex: z.ZodNumber;
2798
+ }, z.core.$strip>, z.ZodObject<{
2799
+ type: z.ZodLiteral<"dashboard.attestations.list">;
2800
+ requestId: z.ZodString;
2801
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2802
+ type: z.ZodLiteral<"user">;
2803
+ sub: z.ZodString;
2804
+ }, z.core.$strip>, z.ZodObject<{
2805
+ type: z.ZodLiteral<"api_key">;
2806
+ keyId: z.ZodString;
2807
+ ownerSub: z.ZodString;
2808
+ }, z.core.$strip>, z.ZodObject<{
2809
+ type: z.ZodLiteral<"service_account">;
2810
+ id: z.ZodString;
2811
+ }, z.core.$strip>, z.ZodObject<{
2812
+ type: z.ZodLiteral<"platform_operator">;
2813
+ sub: z.ZodString;
2814
+ reason: z.ZodString;
2815
+ sessionId: z.ZodOptional<z.ZodString>;
2816
+ }, z.core.$strip>, z.ZodObject<{
2817
+ type: z.ZodLiteral<"system">;
2818
+ component: z.ZodString;
2819
+ }, z.core.$strip>], "type">;
2820
+ runId: z.ZodString;
2469
2821
  }, z.core.$strip>, z.ZodObject<{
2470
2822
  type: z.ZodLiteral<"dashboard.runs.list">;
2471
2823
  requestId: z.ZodString;
@@ -2676,6 +3028,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2676
3028
  type: z.ZodLiteral<"system">;
2677
3029
  component: z.ZodString;
2678
3030
  }, z.core.$strip>], "type">;
3031
+ includeSecrets: z.ZodOptional<z.ZodBoolean>;
3032
+ orgId: z.ZodOptional<z.ZodString>;
2679
3033
  }, z.core.$strip>, z.ZodObject<{
2680
3034
  type: z.ZodLiteral<"dashboard.environments.get">;
2681
3035
  requestId: z.ZodString;
@@ -2723,8 +3077,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2723
3077
  }, z.core.$strip>], "type">;
2724
3078
  name: z.ZodString;
2725
3079
  envType: z.ZodEnum<{
2726
- fixed: "fixed";
2727
3080
  glob: "glob";
3081
+ fixed: "fixed";
2728
3082
  }>;
2729
3083
  globPattern: z.ZodOptional<z.ZodString>;
2730
3084
  branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -2763,8 +3117,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2763
3117
  updates: z.ZodObject<{
2764
3118
  name: z.ZodOptional<z.ZodString>;
2765
3119
  envType: z.ZodOptional<z.ZodEnum<{
2766
- fixed: "fixed";
2767
3120
  glob: "glob";
3121
+ fixed: "fixed";
2768
3122
  }>>;
2769
3123
  globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2770
3124
  branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -3804,9 +4158,11 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3804
4158
  "run.payload.read": "run.payload.read";
3805
4159
  "run.orch_logs.read": "run.orch_logs.read";
3806
4160
  "step.logs.read": "step.logs.read";
4161
+ "attestations.read": "attestations.read";
3807
4162
  "run.cancel": "run.cancel";
3808
4163
  "run.rerun": "run.rerun";
3809
4164
  "run.manual_schedule": "run.manual_schedule";
4165
+ "run.trigger": "run.trigger";
3810
4166
  "job.cancel": "job.cancel";
3811
4167
  "event_log.list.read": "event_log.list.read";
3812
4168
  "event_log.detail.read": "event_log.detail.read";
@@ -3867,8 +4223,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3867
4223
  targetType: z.ZodOptional<z.ZodEnum<{
3868
4224
  run: "run";
3869
4225
  job: "job";
3870
- step: "step";
3871
4226
  payload: "payload";
4227
+ step: "step";
3872
4228
  event_log: "event_log";
3873
4229
  event_log_payload: "event_log_payload";
3874
4230
  secret_scope: "secret_scope";
@@ -3889,47 +4245,191 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3889
4245
  q: z.ZodOptional<z.ZodString>;
3890
4246
  limit: z.ZodOptional<z.ZodNumber>;
3891
4247
  cursor: z.ZodOptional<z.ZodString>;
3892
- }, z.core.$strip>], "type">;
3893
- /** Dashboard messages flowing from Orchestrator to Platform. */
3894
- export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3895
- type: z.ZodLiteral<"dashboard.run.detail.response">;
4248
+ }, z.core.$strip>, z.ZodObject<{
4249
+ type: z.ZodLiteral<"test.relay.uploads.init">;
3896
4250
  requestId: z.ZodString;
3897
- jobs: z.ZodArray<z.ZodObject<{
3898
- jobId: z.ZodString;
3899
- jobName: z.ZodString;
3900
- status: z.ZodString;
3901
- matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3902
- startedAt: z.ZodNullable<z.ZodNumber>;
3903
- completedAt: z.ZodNullable<z.ZodNumber>;
3904
- durationMs: z.ZodNullable<z.ZodNumber>;
3905
- agentId: z.ZodNullable<z.ZodString>;
3906
- orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3907
- errorMessage: z.ZodNullable<z.ZodString>;
3908
- runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3909
- outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
3910
- secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3911
- initFailure: z.ZodOptional<z.ZodObject<{
3912
- scope: z.ZodEnum<{
3913
- run: "run";
3914
- job: "job";
3915
- }>;
3916
- category: z.ZodEnum<{
3917
- secret_resolution: "secret_resolution";
3918
- install_secrets: "install_secrets";
3919
- lock_resolution: "lock_resolution";
3920
- build_coordination: "build_coordination";
3921
- environment_rules: "environment_rules";
3922
- dynamic_eval: "dynamic_eval";
3923
- no_agent: "no_agent";
3924
- matrix_expansion: "matrix_expansion";
3925
- }>;
3926
- message: z.ZodString;
3927
- jobName: z.ZodOptional<z.ZodString>;
3928
- }, z.core.$strip>>;
3929
- steps: z.ZodArray<z.ZodObject<{
3930
- stepIndex: z.ZodNumber;
3931
- stepName: z.ZodString;
3932
- status: z.ZodString;
4251
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4252
+ type: z.ZodLiteral<"user">;
4253
+ sub: z.ZodString;
4254
+ }, z.core.$strip>, z.ZodObject<{
4255
+ type: z.ZodLiteral<"api_key">;
4256
+ keyId: z.ZodString;
4257
+ ownerSub: z.ZodString;
4258
+ }, z.core.$strip>, z.ZodObject<{
4259
+ type: z.ZodLiteral<"service_account">;
4260
+ id: z.ZodString;
4261
+ }, z.core.$strip>, z.ZodObject<{
4262
+ type: z.ZodLiteral<"platform_operator">;
4263
+ sub: z.ZodString;
4264
+ reason: z.ZodString;
4265
+ sessionId: z.ZodOptional<z.ZodString>;
4266
+ }, z.core.$strip>, z.ZodObject<{
4267
+ type: z.ZodLiteral<"system">;
4268
+ component: z.ZodString;
4269
+ }, z.core.$strip>], "type">;
4270
+ routingKey: z.ZodString;
4271
+ sha: z.ZodOptional<z.ZodString>;
4272
+ fileCount: z.ZodOptional<z.ZodNumber>;
4273
+ compressedSize: z.ZodOptional<z.ZodNumber>;
4274
+ }, z.core.$strip>, z.ZodObject<{
4275
+ type: z.ZodLiteral<"test.relay.trigger">;
4276
+ requestId: z.ZodString;
4277
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4278
+ type: z.ZodLiteral<"user">;
4279
+ sub: z.ZodString;
4280
+ }, z.core.$strip>, z.ZodObject<{
4281
+ type: z.ZodLiteral<"api_key">;
4282
+ keyId: z.ZodString;
4283
+ ownerSub: z.ZodString;
4284
+ }, z.core.$strip>, z.ZodObject<{
4285
+ type: z.ZodLiteral<"service_account">;
4286
+ id: z.ZodString;
4287
+ }, z.core.$strip>, z.ZodObject<{
4288
+ type: z.ZodLiteral<"platform_operator">;
4289
+ sub: z.ZodString;
4290
+ reason: z.ZodString;
4291
+ sessionId: z.ZodOptional<z.ZodString>;
4292
+ }, z.core.$strip>, z.ZodObject<{
4293
+ type: z.ZodLiteral<"system">;
4294
+ component: z.ZodString;
4295
+ }, z.core.$strip>], "type">;
4296
+ routingKey: z.ZodString;
4297
+ fixtureId: z.ZodString;
4298
+ event: z.ZodObject<{
4299
+ type: z.ZodString;
4300
+ action: z.ZodOptional<z.ZodString>;
4301
+ targetBranch: z.ZodString;
4302
+ sourceBranch: z.ZodOptional<z.ZodString>;
4303
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4304
+ changedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
4305
+ }, z.core.$strip>;
4306
+ workflowName: z.ZodOptional<z.ZodString>;
4307
+ uploadId: z.ZodOptional<z.ZodString>;
4308
+ cliPublicKey: z.ZodOptional<z.ZodString>;
4309
+ inlineLockFile: z.ZodOptional<z.ZodString>;
4310
+ fullRepo: z.ZodOptional<z.ZodBoolean>;
4311
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4312
+ encryptedSecrets: z.ZodOptional<z.ZodString>;
4313
+ encryptedSecretsKey: z.ZodOptional<z.ZodString>;
4314
+ }, z.core.$strip>, z.ZodObject<{
4315
+ type: z.ZodLiteral<"test.relay.run.status">;
4316
+ requestId: z.ZodString;
4317
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4318
+ type: z.ZodLiteral<"user">;
4319
+ sub: z.ZodString;
4320
+ }, z.core.$strip>, z.ZodObject<{
4321
+ type: z.ZodLiteral<"api_key">;
4322
+ keyId: z.ZodString;
4323
+ ownerSub: z.ZodString;
4324
+ }, z.core.$strip>, z.ZodObject<{
4325
+ type: z.ZodLiteral<"service_account">;
4326
+ id: z.ZodString;
4327
+ }, z.core.$strip>, z.ZodObject<{
4328
+ type: z.ZodLiteral<"platform_operator">;
4329
+ sub: z.ZodString;
4330
+ reason: z.ZodString;
4331
+ sessionId: z.ZodOptional<z.ZodString>;
4332
+ }, z.core.$strip>, z.ZodObject<{
4333
+ type: z.ZodLiteral<"system">;
4334
+ component: z.ZodString;
4335
+ }, z.core.$strip>], "type">;
4336
+ runId: z.ZodString;
4337
+ }, z.core.$strip>, z.ZodObject<{
4338
+ type: z.ZodLiteral<"test.relay.run.logs">;
4339
+ requestId: z.ZodString;
4340
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4341
+ type: z.ZodLiteral<"user">;
4342
+ sub: z.ZodString;
4343
+ }, z.core.$strip>, z.ZodObject<{
4344
+ type: z.ZodLiteral<"api_key">;
4345
+ keyId: z.ZodString;
4346
+ ownerSub: z.ZodString;
4347
+ }, z.core.$strip>, z.ZodObject<{
4348
+ type: z.ZodLiteral<"service_account">;
4349
+ id: z.ZodString;
4350
+ }, z.core.$strip>, z.ZodObject<{
4351
+ type: z.ZodLiteral<"platform_operator">;
4352
+ sub: z.ZodString;
4353
+ reason: z.ZodString;
4354
+ sessionId: z.ZodOptional<z.ZodString>;
4355
+ }, z.core.$strip>, z.ZodObject<{
4356
+ type: z.ZodLiteral<"system">;
4357
+ component: z.ZodString;
4358
+ }, z.core.$strip>], "type">;
4359
+ runId: z.ZodString;
4360
+ cursor: z.ZodNumber;
4361
+ }, z.core.$strip>, z.ZodObject<{
4362
+ type: z.ZodLiteral<"test.relay.cancel">;
4363
+ requestId: z.ZodString;
4364
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4365
+ type: z.ZodLiteral<"user">;
4366
+ sub: z.ZodString;
4367
+ }, z.core.$strip>, z.ZodObject<{
4368
+ type: z.ZodLiteral<"api_key">;
4369
+ keyId: z.ZodString;
4370
+ ownerSub: z.ZodString;
4371
+ }, z.core.$strip>, z.ZodObject<{
4372
+ type: z.ZodLiteral<"service_account">;
4373
+ id: z.ZodString;
4374
+ }, z.core.$strip>, z.ZodObject<{
4375
+ type: z.ZodLiteral<"platform_operator">;
4376
+ sub: z.ZodString;
4377
+ reason: z.ZodString;
4378
+ sessionId: z.ZodOptional<z.ZodString>;
4379
+ }, z.core.$strip>, z.ZodObject<{
4380
+ type: z.ZodLiteral<"system">;
4381
+ component: z.ZodString;
4382
+ }, z.core.$strip>], "type">;
4383
+ runId: z.ZodOptional<z.ZodString>;
4384
+ branch: z.ZodOptional<z.ZodString>;
4385
+ }, z.core.$strip>], "type">;
4386
+ /** Dashboard messages flowing from Orchestrator to Platform. */
4387
+ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4388
+ type: z.ZodLiteral<"dashboard.run.detail.response">;
4389
+ requestId: z.ZodString;
4390
+ jobs: z.ZodArray<z.ZodObject<{
4391
+ jobId: z.ZodString;
4392
+ jobName: z.ZodString;
4393
+ status: z.ZodString;
4394
+ matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4395
+ startedAt: z.ZodNullable<z.ZodNumber>;
4396
+ completedAt: z.ZodNullable<z.ZodNumber>;
4397
+ durationMs: z.ZodNullable<z.ZodNumber>;
4398
+ agentId: z.ZodNullable<z.ZodString>;
4399
+ orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4400
+ errorMessage: z.ZodNullable<z.ZodString>;
4401
+ runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4402
+ outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4403
+ secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4404
+ initFailure: z.ZodOptional<z.ZodObject<{
4405
+ scope: z.ZodEnum<{
4406
+ run: "run";
4407
+ job: "job";
4408
+ }>;
4409
+ category: z.ZodEnum<{
4410
+ secret_resolution: "secret_resolution";
4411
+ install_secrets: "install_secrets";
4412
+ lock_resolution: "lock_resolution";
4413
+ build_coordination: "build_coordination";
4414
+ environment_rules: "environment_rules";
4415
+ dynamic_eval: "dynamic_eval";
4416
+ no_agent: "no_agent";
4417
+ matrix_expansion: "matrix_expansion";
4418
+ }>;
4419
+ message: z.ZodString;
4420
+ jobName: z.ZodOptional<z.ZodString>;
4421
+ }, z.core.$strip>>;
4422
+ needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4423
+ upstreamName: z.ZodString;
4424
+ ifFailed: z.ZodEnum<{
4425
+ run: "run";
4426
+ skip: "skip";
4427
+ }>;
4428
+ }, z.core.$strip>>>>;
4429
+ steps: z.ZodArray<z.ZodObject<{
4430
+ stepIndex: z.ZodNumber;
4431
+ stepName: z.ZodString;
4432
+ status: z.ZodString;
3933
4433
  startedAt: z.ZodNullable<z.ZodNumber>;
3934
4434
  completedAt: z.ZodNullable<z.ZodNumber>;
3935
4435
  durationMs: z.ZodNullable<z.ZodNumber>;
@@ -3976,6 +4476,35 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3976
4476
  lines: z.ZodArray<z.ZodString>;
3977
4477
  totalLines: z.ZodNumber;
3978
4478
  error: z.ZodOptional<z.ZodString>;
4479
+ }, z.core.$strip>, z.ZodObject<{
4480
+ type: z.ZodLiteral<"dashboard.attestations.list.response">;
4481
+ requestId: z.ZodString;
4482
+ attestations: z.ZodArray<z.ZodObject<{
4483
+ id: z.ZodString;
4484
+ jobId: z.ZodString;
4485
+ jobName: z.ZodNullable<z.ZodString>;
4486
+ subjectName: z.ZodString;
4487
+ subjectDigest: z.ZodString;
4488
+ mode: z.ZodString;
4489
+ mediaType: z.ZodString;
4490
+ createdAt: z.ZodString;
4491
+ bundle: z.ZodObject<{
4492
+ mediaType: z.ZodLiteral<"application/vnd.kici.provenance.bundle+json;version=0.1">;
4493
+ dsseEnvelope: z.ZodObject<{
4494
+ payloadType: z.ZodString;
4495
+ payload: z.ZodString;
4496
+ signatures: z.ZodArray<z.ZodObject<{
4497
+ keyid: z.ZodString;
4498
+ sig: z.ZodString;
4499
+ }, z.core.$strip>>;
4500
+ }, z.core.$strip>;
4501
+ verificationMaterial: z.ZodObject<{
4502
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4503
+ identityToken: z.ZodString;
4504
+ }, z.core.$strip>;
4505
+ }, z.core.$strip>;
4506
+ }, z.core.$strip>>;
4507
+ error: z.ZodOptional<z.ZodString>;
3979
4508
  }, z.core.$strip>, z.ZodObject<{
3980
4509
  type: z.ZodLiteral<"dashboard.runs.list.response">;
3981
4510
  requestId: z.ZodString;
@@ -4036,7 +4565,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4036
4565
  github_app: "github_app";
4037
4566
  generic_webhook: "generic_webhook";
4038
4567
  universal_git: "universal_git";
4039
- internal: "internal";
4568
+ local: "local";
4040
4569
  }>;
4041
4570
  enabled: z.ZodBoolean;
4042
4571
  createdAt: z.ZodString;
@@ -4077,14 +4606,15 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4077
4606
  id: z.ZodString;
4078
4607
  name: z.ZodString;
4079
4608
  type: z.ZodEnum<{
4080
- fixed: "fixed";
4081
4609
  glob: "glob";
4610
+ fixed: "fixed";
4082
4611
  }>;
4083
4612
  globPattern: z.ZodNullable<z.ZodString>;
4084
4613
  enabled: z.ZodBoolean;
4085
4614
  allowLocalExecution: z.ZodBoolean;
4086
4615
  createdAt: z.ZodCoercedString<unknown>;
4087
4616
  updatedAt: z.ZodCoercedString<unknown>;
4617
+ secretKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
4088
4618
  }, z.core.$strip>>>;
4089
4619
  error: z.ZodOptional<z.ZodString>;
4090
4620
  }, z.core.$strip>, z.ZodObject<{
@@ -4094,8 +4624,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4094
4624
  id: z.ZodString;
4095
4625
  name: z.ZodString;
4096
4626
  type: z.ZodEnum<{
4097
- fixed: "fixed";
4098
4627
  glob: "glob";
4628
+ fixed: "fixed";
4099
4629
  }>;
4100
4630
  globPattern: z.ZodNullable<z.ZodString>;
4101
4631
  branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
@@ -4308,7 +4838,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4308
4838
  github_app: "github_app";
4309
4839
  generic_webhook: "generic_webhook";
4310
4840
  universal_git: "universal_git";
4311
- internal: "internal";
4841
+ local: "local";
4312
4842
  }>>;
4313
4843
  provider: z.ZodString;
4314
4844
  }, z.core.$strip>>>;
@@ -4760,9 +5290,11 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4760
5290
  "run.payload.read": "run.payload.read";
4761
5291
  "run.orch_logs.read": "run.orch_logs.read";
4762
5292
  "step.logs.read": "step.logs.read";
5293
+ "attestations.read": "attestations.read";
4763
5294
  "run.cancel": "run.cancel";
4764
5295
  "run.rerun": "run.rerun";
4765
5296
  "run.manual_schedule": "run.manual_schedule";
5297
+ "run.trigger": "run.trigger";
4766
5298
  "job.cancel": "job.cancel";
4767
5299
  "event_log.list.read": "event_log.list.read";
4768
5300
  "event_log.detail.read": "event_log.detail.read";
@@ -4813,8 +5345,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4813
5345
  targetType: z.ZodNullable<z.ZodEnum<{
4814
5346
  run: "run";
4815
5347
  job: "job";
4816
- step: "step";
4817
5348
  payload: "payload";
5349
+ step: "step";
4818
5350
  event_log: "event_log";
4819
5351
  event_log_payload: "event_log_payload";
4820
5352
  secret_scope: "secret_scope";
@@ -4846,6 +5378,51 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4846
5378
  }, z.core.$strip>>>;
4847
5379
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4848
5380
  error: z.ZodOptional<z.ZodString>;
5381
+ }, z.core.$strip>, z.ZodObject<{
5382
+ type: z.ZodLiteral<"test.relay.uploads.init.response">;
5383
+ requestId: z.ZodString;
5384
+ uploadId: z.ZodOptional<z.ZodString>;
5385
+ signedUrl: z.ZodOptional<z.ZodString>;
5386
+ publicKey: z.ZodOptional<z.ZodString>;
5387
+ expiresIn: z.ZodOptional<z.ZodNumber>;
5388
+ error: z.ZodOptional<z.ZodString>;
5389
+ }, z.core.$strip>, z.ZodObject<{
5390
+ type: z.ZodLiteral<"test.relay.trigger.response">;
5391
+ requestId: z.ZodString;
5392
+ runId: z.ZodOptional<z.ZodString>;
5393
+ status: z.ZodOptional<z.ZodEnum<{
5394
+ accepted: "accepted";
5395
+ rejected: "rejected";
5396
+ }>>;
5397
+ reason: z.ZodOptional<z.ZodString>;
5398
+ jobIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
5399
+ error: z.ZodOptional<z.ZodString>;
5400
+ }, z.core.$strip>, z.ZodObject<{
5401
+ type: z.ZodLiteral<"test.relay.run.status.response">;
5402
+ requestId: z.ZodString;
5403
+ runId: z.ZodOptional<z.ZodString>;
5404
+ status: z.ZodOptional<z.ZodString>;
5405
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5406
+ jobId: z.ZodString;
5407
+ jobName: z.ZodString;
5408
+ status: z.ZodString;
5409
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5410
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5411
+ }, z.core.$strip>>>;
5412
+ done: z.ZodOptional<z.ZodBoolean>;
5413
+ error: z.ZodOptional<z.ZodString>;
5414
+ }, z.core.$strip>, z.ZodObject<{
5415
+ type: z.ZodLiteral<"test.relay.run.logs.response">;
5416
+ requestId: z.ZodString;
5417
+ lines: z.ZodOptional<z.ZodArray<z.ZodString>>;
5418
+ nextCursor: z.ZodOptional<z.ZodNumber>;
5419
+ done: z.ZodOptional<z.ZodBoolean>;
5420
+ error: z.ZodOptional<z.ZodString>;
5421
+ }, z.core.$strip>, z.ZodObject<{
5422
+ type: z.ZodLiteral<"test.relay.cancel.response">;
5423
+ requestId: z.ZodString;
5424
+ cancelled: z.ZodOptional<z.ZodBoolean>;
5425
+ error: z.ZodOptional<z.ZodString>;
4849
5426
  }, z.core.$strip>], "type">;
4850
5427
  export type DashboardRunDetailRequest = z.infer<typeof dashboardRunDetailRequestSchema>;
4851
5428
  export type DashboardStepLogsRequest = z.infer<typeof dashboardStepLogsRequestSchema>;
@@ -4947,6 +5524,13 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
4947
5524
  message: z.ZodString;
4948
5525
  jobName: z.ZodOptional<z.ZodString>;
4949
5526
  }, z.core.$strip>>;
5527
+ needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
5528
+ upstreamName: z.ZodString;
5529
+ ifFailed: z.ZodEnum<{
5530
+ run: "run";
5531
+ skip: "skip";
5532
+ }>;
5533
+ }, z.core.$strip>>>>;
4950
5534
  steps: z.ZodArray<z.ZodObject<{
4951
5535
  stepIndex: z.ZodNumber;
4952
5536
  stepName: z.ZodString;
@@ -4996,8 +5580,344 @@ export declare const dashboardStepLogsApiResponseSchema: z.ZodObject<{
4996
5580
  lines: z.ZodArray<z.ZodString>;
4997
5581
  totalLines: z.ZodNumber;
4998
5582
  }, z.core.$strip>;
5583
+ /**
5584
+ * REST API response for the run attestations list. The orchestrator-relayed
5585
+ * `attestations` array is augmented by Platform with the provenance trust root
5586
+ * from its own `oidcIssuer` config: `trustedIssuer` is the issuer the dashboard
5587
+ * pins each bundle's identity token to (never the bundle's own `iss`), and
5588
+ * `jwksUri` is the discovery JWKS endpoint the dashboard fetches to verify.
5589
+ * Both are null when the Platform has no provenance issuer configured — the
5590
+ * dashboard then lists + downloads the bundles but renders the badge as
5591
+ * "verification unavailable".
5592
+ */
5593
+ export declare const dashboardAttestationsApiResponseSchema: z.ZodObject<{
5594
+ trustedIssuer: z.ZodNullable<z.ZodString>;
5595
+ jwksUri: z.ZodNullable<z.ZodString>;
5596
+ attestations: z.ZodArray<z.ZodObject<{
5597
+ id: z.ZodString;
5598
+ jobId: z.ZodString;
5599
+ jobName: z.ZodNullable<z.ZodString>;
5600
+ subjectName: z.ZodString;
5601
+ subjectDigest: z.ZodString;
5602
+ mode: z.ZodString;
5603
+ mediaType: z.ZodString;
5604
+ createdAt: z.ZodString;
5605
+ bundle: z.ZodObject<{
5606
+ mediaType: z.ZodLiteral<"application/vnd.kici.provenance.bundle+json;version=0.1">;
5607
+ dsseEnvelope: z.ZodObject<{
5608
+ payloadType: z.ZodString;
5609
+ payload: z.ZodString;
5610
+ signatures: z.ZodArray<z.ZodObject<{
5611
+ keyid: z.ZodString;
5612
+ sig: z.ZodString;
5613
+ }, z.core.$strip>>;
5614
+ }, z.core.$strip>;
5615
+ verificationMaterial: z.ZodObject<{
5616
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5617
+ identityToken: z.ZodString;
5618
+ }, z.core.$strip>;
5619
+ }, z.core.$strip>;
5620
+ }, z.core.$strip>>;
5621
+ }, z.core.$strip>;
5622
+ /** Single run summary in the paginated run list. */
5623
+ export declare const runListItemSchema: z.ZodObject<{
5624
+ runId: z.ZodString;
5625
+ workflowName: z.ZodString;
5626
+ status: z.ZodString;
5627
+ repoIdentifier: z.ZodNullable<z.ZodString>;
5628
+ sha: z.ZodNullable<z.ZodString>;
5629
+ ref: z.ZodNullable<z.ZodString>;
5630
+ triggerEvent: z.ZodNullable<z.ZodString>;
5631
+ commitMessage: z.ZodNullable<z.ZodString>;
5632
+ jobCount: z.ZodNullable<z.ZodNumber>;
5633
+ startedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
5634
+ completedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
5635
+ durationMs: z.ZodNullable<z.ZodNumber>;
5636
+ parentRunId: z.ZodNullable<z.ZodString>;
5637
+ originalRunId: z.ZodNullable<z.ZodString>;
5638
+ triggeredBy: z.ZodNullable<z.ZodString>;
5639
+ triggeredByUser: z.ZodNullable<z.ZodObject<{
5640
+ sub: z.ZodString;
5641
+ email: z.ZodNullable<z.ZodString>;
5642
+ displayName: z.ZodNullable<z.ZodString>;
5643
+ }, z.core.$strip>>;
5644
+ cancelledBy: z.ZodNullable<z.ZodString>;
5645
+ cancelledByUser: z.ZodNullable<z.ZodObject<{
5646
+ sub: z.ZodString;
5647
+ email: z.ZodNullable<z.ZodString>;
5648
+ displayName: z.ZodNullable<z.ZodString>;
5649
+ }, z.core.$strip>>;
5650
+ failureReason: z.ZodOptional<z.ZodString>;
5651
+ hadCompileJob: z.ZodBoolean;
5652
+ compileJobId: z.ZodNullable<z.ZodString>;
5653
+ source: z.ZodNullable<z.ZodObject<{
5654
+ routingKey: z.ZodString;
5655
+ name: z.ZodNullable<z.ZodString>;
5656
+ subtype: z.ZodNullable<z.ZodEnum<{
5657
+ github_app: "github_app";
5658
+ generic_webhook: "generic_webhook";
5659
+ universal_git: "universal_git";
5660
+ local: "local";
5661
+ }>>;
5662
+ provider: z.ZodString;
5663
+ }, z.core.$strip>>;
5664
+ }, z.core.$strip>;
5665
+ export type RunListItem = z.infer<typeof runListItemSchema>;
5666
+ /** Paginated run list response envelope. */
5667
+ export declare const runListResponseSchema: z.ZodObject<{
5668
+ runs: z.ZodArray<z.ZodObject<{
5669
+ runId: z.ZodString;
5670
+ workflowName: z.ZodString;
5671
+ status: z.ZodString;
5672
+ repoIdentifier: z.ZodNullable<z.ZodString>;
5673
+ sha: z.ZodNullable<z.ZodString>;
5674
+ ref: z.ZodNullable<z.ZodString>;
5675
+ triggerEvent: z.ZodNullable<z.ZodString>;
5676
+ commitMessage: z.ZodNullable<z.ZodString>;
5677
+ jobCount: z.ZodNullable<z.ZodNumber>;
5678
+ startedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
5679
+ completedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
5680
+ durationMs: z.ZodNullable<z.ZodNumber>;
5681
+ parentRunId: z.ZodNullable<z.ZodString>;
5682
+ originalRunId: z.ZodNullable<z.ZodString>;
5683
+ triggeredBy: z.ZodNullable<z.ZodString>;
5684
+ triggeredByUser: z.ZodNullable<z.ZodObject<{
5685
+ sub: z.ZodString;
5686
+ email: z.ZodNullable<z.ZodString>;
5687
+ displayName: z.ZodNullable<z.ZodString>;
5688
+ }, z.core.$strip>>;
5689
+ cancelledBy: z.ZodNullable<z.ZodString>;
5690
+ cancelledByUser: z.ZodNullable<z.ZodObject<{
5691
+ sub: z.ZodString;
5692
+ email: z.ZodNullable<z.ZodString>;
5693
+ displayName: z.ZodNullable<z.ZodString>;
5694
+ }, z.core.$strip>>;
5695
+ failureReason: z.ZodOptional<z.ZodString>;
5696
+ hadCompileJob: z.ZodBoolean;
5697
+ compileJobId: z.ZodNullable<z.ZodString>;
5698
+ source: z.ZodNullable<z.ZodObject<{
5699
+ routingKey: z.ZodString;
5700
+ name: z.ZodNullable<z.ZodString>;
5701
+ subtype: z.ZodNullable<z.ZodEnum<{
5702
+ github_app: "github_app";
5703
+ generic_webhook: "generic_webhook";
5704
+ universal_git: "universal_git";
5705
+ local: "local";
5706
+ }>>;
5707
+ provider: z.ZodString;
5708
+ }, z.core.$strip>>;
5709
+ }, z.core.$strip>>;
5710
+ total: z.ZodNumber;
5711
+ page: z.ZodNumber;
5712
+ pageSize: z.ZodNumber;
5713
+ hasMore: z.ZodBoolean;
5714
+ }, z.core.$strip>;
5715
+ export type RunListResponse = z.infer<typeof runListResponseSchema>;
5716
+ declare const diagnosticsInfraAgentSchema: z.ZodObject<{
5717
+ agentId: z.ZodString;
5718
+ labels: z.ZodArray<z.ZodString>;
5719
+ platform: z.ZodString;
5720
+ arch: z.ZodString;
5721
+ activeJobs: z.ZodNumber;
5722
+ maxConcurrency: z.ZodNumber;
5723
+ lastHeartbeatAt: z.ZodNumber;
5724
+ registeredAt: z.ZodNumber;
5725
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5726
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5727
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5728
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5729
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5730
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5731
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5732
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5733
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5734
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5735
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5736
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5737
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5738
+ }, z.core.$strip>;
5739
+ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
5740
+ connectionId: z.ZodString;
5741
+ clusterName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5742
+ instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5743
+ routingKeys: z.ZodArray<z.ZodString>;
5744
+ connected: z.ZodBoolean;
5745
+ connectedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5746
+ lastHeartbeat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5747
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5748
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5749
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5750
+ raftRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5751
+ raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5752
+ raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5753
+ scalerBackends: z.ZodArray<z.ZodString>;
5754
+ s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5755
+ agentCount: z.ZodNumber;
5756
+ runningJobs: z.ZodNumber;
5757
+ queuedJobs: z.ZodNumber;
5758
+ pendingLabelGaps: z.ZodArray<z.ZodString>;
5759
+ agents: z.ZodArray<z.ZodObject<{
5760
+ agentId: z.ZodString;
5761
+ labels: z.ZodArray<z.ZodString>;
5762
+ platform: z.ZodString;
5763
+ arch: z.ZodString;
5764
+ activeJobs: z.ZodNumber;
5765
+ maxConcurrency: z.ZodNumber;
5766
+ lastHeartbeatAt: z.ZodNumber;
5767
+ registeredAt: z.ZodNumber;
5768
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5769
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5770
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5771
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5772
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5773
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5774
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5775
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5776
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5777
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5778
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5779
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5780
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5781
+ }, z.core.$strip>>;
5782
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5783
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5784
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5785
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5786
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5787
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5788
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5789
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5790
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5791
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5792
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5793
+ statefulAgentCount: z.ZodNumber;
5794
+ statefulHosts: z.ZodArray<z.ZodString>;
5795
+ scalers: z.ZodArray<z.ZodObject<{
5796
+ name: z.ZodString;
5797
+ type: z.ZodString;
5798
+ maxAgents: z.ZodNumber;
5799
+ activeAgents: z.ZodNumber;
5800
+ labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
5801
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5802
+ hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5803
+ }, z.core.$strip>>;
5804
+ dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
5805
+ name: z.ZodString;
5806
+ status: z.ZodEnum<{
5807
+ pass: "pass";
5808
+ warn: "warn";
5809
+ fail: "fail";
5810
+ }>;
5811
+ message: z.ZodNullable<z.ZodString>;
5812
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5813
+ durationMs: z.ZodOptional<z.ZodNumber>;
5814
+ }, z.core.$strip>>>;
5815
+ error: z.ZodOptional<z.ZodString>;
5816
+ }, z.core.$strip>;
5817
+ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
5818
+ orchestrators: z.ZodArray<z.ZodObject<{
5819
+ connectionId: z.ZodString;
5820
+ clusterName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5821
+ instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5822
+ routingKeys: z.ZodArray<z.ZodString>;
5823
+ connected: z.ZodBoolean;
5824
+ connectedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5825
+ lastHeartbeat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5826
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5827
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5828
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5829
+ raftRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5830
+ raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5831
+ raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5832
+ scalerBackends: z.ZodArray<z.ZodString>;
5833
+ s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5834
+ agentCount: z.ZodNumber;
5835
+ runningJobs: z.ZodNumber;
5836
+ queuedJobs: z.ZodNumber;
5837
+ pendingLabelGaps: z.ZodArray<z.ZodString>;
5838
+ agents: z.ZodArray<z.ZodObject<{
5839
+ agentId: z.ZodString;
5840
+ labels: z.ZodArray<z.ZodString>;
5841
+ platform: z.ZodString;
5842
+ arch: z.ZodString;
5843
+ activeJobs: z.ZodNumber;
5844
+ maxConcurrency: z.ZodNumber;
5845
+ lastHeartbeatAt: z.ZodNumber;
5846
+ registeredAt: z.ZodNumber;
5847
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5848
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5849
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5850
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5851
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5852
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5853
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5854
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5855
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5856
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5857
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5858
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5859
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5860
+ }, z.core.$strip>>;
5861
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5862
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5863
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5864
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5865
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5866
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5867
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5868
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5869
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5870
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5871
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5872
+ statefulAgentCount: z.ZodNumber;
5873
+ statefulHosts: z.ZodArray<z.ZodString>;
5874
+ scalers: z.ZodArray<z.ZodObject<{
5875
+ name: z.ZodString;
5876
+ type: z.ZodString;
5877
+ maxAgents: z.ZodNumber;
5878
+ activeAgents: z.ZodNumber;
5879
+ labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
5880
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5881
+ hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5882
+ }, z.core.$strip>>;
5883
+ dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
5884
+ name: z.ZodString;
5885
+ status: z.ZodEnum<{
5886
+ pass: "pass";
5887
+ warn: "warn";
5888
+ fail: "fail";
5889
+ }>;
5890
+ message: z.ZodNullable<z.ZodString>;
5891
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5892
+ durationMs: z.ZodOptional<z.ZodNumber>;
5893
+ }, z.core.$strip>>>;
5894
+ error: z.ZodOptional<z.ZodString>;
5895
+ }, z.core.$strip>>;
5896
+ alerts: z.ZodArray<z.ZodObject<{
5897
+ type: z.ZodString;
5898
+ message: z.ZodString;
5899
+ severity: z.ZodString;
5900
+ }, z.core.$strip>>;
5901
+ latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5902
+ }, z.core.$strip>;
5903
+ export type DiagnosticsInfrastructureResponse = z.infer<typeof diagnosticsInfrastructureResponseSchema>;
5904
+ export type DiagnosticsOrchestrator = z.infer<typeof diagnosticsInfraOrchestratorSchema>;
5905
+ export type DiagnosticsAgent = z.infer<typeof diagnosticsInfraAgentSchema>;
5906
+ export declare const diagnosticsSummaryResponseSchema: z.ZodObject<{
5907
+ connections: z.ZodArray<z.ZodUnknown>;
5908
+ executionMetrics: z.ZodObject<{
5909
+ totalRuns: z.ZodNumber;
5910
+ successRate: z.ZodNumber;
5911
+ avgDurationSeconds: z.ZodNumber;
5912
+ queuedJobs: z.ZodNumber;
5913
+ runningJobs: z.ZodNumber;
5914
+ }, z.core.$strip>;
5915
+ orphanedConnections: z.ZodNumber;
5916
+ }, z.core.$strip>;
5917
+ export type DiagnosticsSummaryResponse = z.infer<typeof diagnosticsSummaryResponseSchema>;
4999
5918
  export type DashboardRunDetailApiResponse = z.infer<typeof dashboardRunDetailApiResponseSchema>;
5000
5919
  export type DashboardStepLogsApiResponse = z.infer<typeof dashboardStepLogsApiResponseSchema>;
5920
+ export type DashboardAttestationsApiResponse = z.infer<typeof dashboardAttestationsApiResponseSchema>;
5001
5921
  export type DashboardJobDetail = z.infer<typeof dashboardJobDetailSchema>;
5002
5922
  /** Single environment from the list response. */
5003
5923
  export type DashboardEnvironment = NonNullable<EnvListResponse['environments']>[number];