@kici-dev/engine 0.1.16 → 0.1.18

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 (104) 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.d.ts +1 -1
  8. package/dist/env/environment-allowlist.js +13 -2
  9. package/dist/environment/index.js +1 -1
  10. package/dist/environment/scope-resolver.js +1 -1
  11. package/dist/environment/types.js +1 -1
  12. package/dist/fanout/materialize.d.ts +123 -0
  13. package/dist/fanout/materialize.js +176 -0
  14. package/dist/index.d.ts +4 -2
  15. package/dist/index.js +9 -7
  16. package/dist/labels/compile.d.ts +40 -0
  17. package/dist/labels/compile.js +91 -0
  18. package/dist/labels-match.d.ts +32 -0
  19. package/dist/labels-match.js +55 -0
  20. package/dist/labels.js +1 -1
  21. package/dist/matrix/expand.d.ts +48 -0
  22. package/dist/matrix/expand.js +72 -0
  23. package/dist/matrix/format.d.ts +10 -0
  24. package/dist/matrix/format.js +20 -0
  25. package/dist/metrics/catalog-policy.js +8 -3
  26. package/dist/metrics/metric-catalog.generated.d.ts +11 -1
  27. package/dist/metrics/metric-catalog.generated.js +14 -2
  28. package/dist/protocol/analytics-events.js +1 -1
  29. package/dist/protocol/cluster-name.js +1 -1
  30. package/dist/protocol/dashboard-global-workflows.js +1 -1
  31. package/dist/protocol/dashboard-write-operations.js +1 -1
  32. package/dist/protocol/event-log-payload.js +1 -1
  33. package/dist/protocol/messages/access-log.d.ts +15 -5
  34. package/dist/protocol/messages/access-log.js +3 -1
  35. package/dist/protocol/messages/actor.js +1 -1
  36. package/dist/protocol/messages/auth.d.ts +1 -0
  37. package/dist/protocol/messages/auth.js +11 -2
  38. package/dist/protocol/messages/browser.js +1 -1
  39. package/dist/protocol/messages/capabilities.js +1 -1
  40. package/dist/protocol/messages/common.js +1 -1
  41. package/dist/protocol/messages/dashboard-global-workflows.js +1 -1
  42. package/dist/protocol/messages/dashboard.d.ts +985 -57
  43. package/dist/protocol/messages/dashboard.js +368 -13
  44. package/dist/protocol/messages/event-log.js +1 -1
  45. package/dist/protocol/messages/execution-status.d.ts +13 -1
  46. package/dist/protocol/messages/execution-status.js +13 -3
  47. package/dist/protocol/messages/join.js +1 -1
  48. package/dist/protocol/messages/log-pull.js +1 -1
  49. package/dist/protocol/messages/observe.d.ts +1 -0
  50. package/dist/protocol/messages/oidc-token-relay.d.ts +31 -0
  51. package/dist/protocol/messages/oidc-token-relay.js +34 -0
  52. package/dist/protocol/messages/orchestrator-agent.d.ts +56 -0
  53. package/dist/protocol/messages/orchestrator-agent.js +47 -2
  54. package/dist/protocol/messages/peer.d.ts +48 -0
  55. package/dist/protocol/messages/peer.js +12 -1
  56. package/dist/protocol/messages/platform-orchestrator.d.ts +171 -4
  57. package/dist/protocol/messages/platform-orchestrator.js +1 -1
  58. package/dist/protocol/messages/run-events.js +1 -1
  59. package/dist/protocol/messages/scaler-event.js +1 -1
  60. package/dist/protocol/messages/source-registration.d.ts +7 -6
  61. package/dist/protocol/messages/source-registration.js +7 -6
  62. package/dist/protocol/version.js +1 -1
  63. package/dist/provenance/bundle.d.ts +54 -0
  64. package/dist/provenance/bundle.js +53 -0
  65. package/dist/provenance/dsse.d.ts +39 -0
  66. package/dist/provenance/dsse.js +53 -0
  67. package/dist/provenance/schema.js +1 -1
  68. package/dist/provenance/verify.d.ts +71 -0
  69. package/dist/provenance/verify.js +135 -0
  70. package/dist/provider/changed-files-fetcher.js +1 -1
  71. package/dist/provider/check-run-conclusion.js +1 -1
  72. package/dist/provider/check-status-poster.js +1 -1
  73. package/dist/provider/clone-token-provider.js +1 -1
  74. package/dist/provider/contributor-resolver.js +1 -1
  75. package/dist/provider/index.js +1 -1
  76. package/dist/provider/lock-file-fetcher.js +1 -1
  77. package/dist/provider/lock-file-parse-error.js +3 -1
  78. package/dist/provider/repo-url-builder.js +1 -1
  79. package/dist/provider/types.d.ts +2 -2
  80. package/dist/provider/types.js +1 -1
  81. package/dist/provider/webhook-normalizer.js +1 -1
  82. package/dist/registration/registerable-trigger-type.js +1 -1
  83. package/dist/scaler/resource-types.js +1 -1
  84. package/dist/scaler/scaler-backend-type.js +1 -1
  85. package/dist/secrets/index.js +1 -1
  86. package/dist/secrets/types.js +1 -1
  87. package/dist/state-machine/index.js +1 -1
  88. package/dist/state-machine/machine.js +1 -1
  89. package/dist/state-machine/types.js +1 -1
  90. package/dist/trigger/decision-trace.js +1 -1
  91. package/dist/trigger/jsonpath-matcher.js +1 -1
  92. package/dist/trigger/matcher.js +1 -1
  93. package/dist/trigger/trigger-event-type.js +1 -1
  94. package/dist/trigger/types.d.ts +76 -3
  95. package/dist/trigger/types.js +33 -5
  96. package/dist/webhook/signature.js +1 -1
  97. package/dist/ws/close-codes.js +1 -1
  98. package/dist/ws/rate-limiter.js +3 -1
  99. package/dist/ws/ws-like.js +1 -1
  100. package/package.json +26 -3
  101. package/sbom.spdx.json +85 -10
  102. package/dist/protocol/messages/observe.js +0 -70
  103. package/dist/protocol/messages/test-run.js +0 -52
  104. /package/dist/{chunk-gOLHoazu.js → chunk-BTugEXQM.js} +0 -0
@@ -57,6 +57,9 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
57
57
  jobName: z.ZodString;
58
58
  status: z.ZodString;
59
59
  matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
60
+ baseJobName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ variantKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ variantLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
63
  startedAt: z.ZodNullable<z.ZodNumber>;
61
64
  completedAt: z.ZodNullable<z.ZodNumber>;
62
65
  durationMs: z.ZodNullable<z.ZodNumber>;
@@ -84,6 +87,13 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
84
87
  message: z.ZodString;
85
88
  jobName: z.ZodOptional<z.ZodString>;
86
89
  }, z.core.$strip>>;
90
+ needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
91
+ upstreamName: z.ZodString;
92
+ ifFailed: z.ZodEnum<{
93
+ run: "run";
94
+ skip: "skip";
95
+ }>;
96
+ }, z.core.$strip>>>>;
87
97
  steps: z.ZodArray<z.ZodObject<{
88
98
  stepIndex: z.ZodNumber;
89
99
  stepName: z.ZodString;
@@ -106,6 +116,9 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
106
116
  jobName: z.ZodString;
107
117
  status: z.ZodString;
108
118
  matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
119
+ baseJobName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ variantKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ variantLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
122
  startedAt: z.ZodNullable<z.ZodNumber>;
110
123
  completedAt: z.ZodNullable<z.ZodNumber>;
111
124
  durationMs: z.ZodNullable<z.ZodNumber>;
@@ -133,6 +146,13 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
133
146
  message: z.ZodString;
134
147
  jobName: z.ZodOptional<z.ZodString>;
135
148
  }, z.core.$strip>>;
149
+ needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
150
+ upstreamName: z.ZodString;
151
+ ifFailed: z.ZodEnum<{
152
+ run: "run";
153
+ skip: "skip";
154
+ }>;
155
+ }, z.core.$strip>>>>;
136
156
  steps: z.ZodArray<z.ZodObject<{
137
157
  stepIndex: z.ZodNumber;
138
158
  stepName: z.ZodString;
@@ -186,6 +206,95 @@ export declare const dashboardStepLogsResponseSchema: z.ZodObject<{
186
206
  totalLines: z.ZodNumber;
187
207
  error: z.ZodOptional<z.ZodString>;
188
208
  }, z.core.$strip>;
209
+ /** Request the build-provenance attestations for a run. */
210
+ export declare const dashboardAttestationsListRequestSchema: z.ZodObject<{
211
+ type: z.ZodLiteral<"dashboard.attestations.list">;
212
+ requestId: z.ZodString;
213
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
214
+ type: z.ZodLiteral<"user">;
215
+ sub: z.ZodString;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ type: z.ZodLiteral<"api_key">;
218
+ keyId: z.ZodString;
219
+ ownerSub: z.ZodString;
220
+ }, z.core.$strip>, z.ZodObject<{
221
+ type: z.ZodLiteral<"service_account">;
222
+ id: z.ZodString;
223
+ }, z.core.$strip>, z.ZodObject<{
224
+ type: z.ZodLiteral<"platform_operator">;
225
+ sub: z.ZodString;
226
+ reason: z.ZodString;
227
+ sessionId: z.ZodOptional<z.ZodString>;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ type: z.ZodLiteral<"system">;
230
+ component: z.ZodString;
231
+ }, z.core.$strip>], "type">;
232
+ runId: z.ZodString;
233
+ }, z.core.$strip>;
234
+ export type DashboardAttestationsListRequest = z.infer<typeof dashboardAttestationsListRequestSchema>;
235
+ /**
236
+ * Single attestation in the list response, with its bundle inlined from object
237
+ * storage so the dashboard verifies it without a second fetch. The bundle is a
238
+ * KiCI Mode-A bundle (`@kici-dev/engine/provenance/bundle`).
239
+ */
240
+ export declare const attestationListItemSchema: z.ZodObject<{
241
+ id: z.ZodString;
242
+ jobId: z.ZodString;
243
+ jobName: z.ZodNullable<z.ZodString>;
244
+ subjectName: z.ZodString;
245
+ subjectDigest: z.ZodString;
246
+ mode: z.ZodString;
247
+ mediaType: z.ZodString;
248
+ createdAt: z.ZodString;
249
+ bundle: z.ZodObject<{
250
+ mediaType: z.ZodLiteral<"application/vnd.kici.provenance.bundle+json;version=0.1">;
251
+ dsseEnvelope: z.ZodObject<{
252
+ payloadType: z.ZodString;
253
+ payload: z.ZodString;
254
+ signatures: z.ZodArray<z.ZodObject<{
255
+ keyid: z.ZodString;
256
+ sig: z.ZodString;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>;
259
+ verificationMaterial: z.ZodObject<{
260
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
261
+ identityToken: z.ZodString;
262
+ }, z.core.$strip>;
263
+ }, z.core.$strip>;
264
+ }, z.core.$strip>;
265
+ export type AttestationListItem = z.infer<typeof attestationListItemSchema>;
266
+ /** Response with the run's attestations (correlates to dashboard.attestations.list). */
267
+ export declare const dashboardAttestationsListResponseSchema: z.ZodObject<{
268
+ type: z.ZodLiteral<"dashboard.attestations.list.response">;
269
+ requestId: z.ZodString;
270
+ attestations: z.ZodArray<z.ZodObject<{
271
+ id: z.ZodString;
272
+ jobId: z.ZodString;
273
+ jobName: z.ZodNullable<z.ZodString>;
274
+ subjectName: z.ZodString;
275
+ subjectDigest: z.ZodString;
276
+ mode: z.ZodString;
277
+ mediaType: z.ZodString;
278
+ createdAt: z.ZodString;
279
+ bundle: z.ZodObject<{
280
+ mediaType: z.ZodLiteral<"application/vnd.kici.provenance.bundle+json;version=0.1">;
281
+ dsseEnvelope: z.ZodObject<{
282
+ payloadType: z.ZodString;
283
+ payload: z.ZodString;
284
+ signatures: z.ZodArray<z.ZodObject<{
285
+ keyid: z.ZodString;
286
+ sig: z.ZodString;
287
+ }, z.core.$strip>>;
288
+ }, z.core.$strip>;
289
+ verificationMaterial: z.ZodObject<{
290
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
291
+ identityToken: z.ZodString;
292
+ }, z.core.$strip>;
293
+ }, z.core.$strip>;
294
+ }, z.core.$strip>>;
295
+ error: z.ZodOptional<z.ZodString>;
296
+ }, z.core.$strip>;
297
+ export type DashboardAttestationsListResponse = z.infer<typeof dashboardAttestationsListResponseSchema>;
189
298
  /**
190
299
  * Run-summary projection from the orchestrator's execution_runs table.
191
300
  *
@@ -341,7 +450,7 @@ export declare const dashboardSourceSummarySchema: z.ZodObject<{
341
450
  github_app: "github_app";
342
451
  generic_webhook: "generic_webhook";
343
452
  universal_git: "universal_git";
344
- internal: "internal";
453
+ local: "local";
345
454
  }>;
346
455
  enabled: z.ZodBoolean;
347
456
  createdAt: z.ZodString;
@@ -386,7 +495,7 @@ export declare const dashboardSourcesListResponseSchema: z.ZodObject<{
386
495
  github_app: "github_app";
387
496
  generic_webhook: "generic_webhook";
388
497
  universal_git: "universal_git";
389
- internal: "internal";
498
+ local: "local";
390
499
  }>;
391
500
  enabled: z.ZodBoolean;
392
501
  createdAt: z.ZodString;
@@ -976,6 +1085,8 @@ export declare const envListRequestSchema: z.ZodObject<{
976
1085
  type: z.ZodLiteral<"system">;
977
1086
  component: z.ZodString;
978
1087
  }, z.core.$strip>], "type">;
1088
+ includeSecrets: z.ZodOptional<z.ZodBoolean>;
1089
+ orgId: z.ZodOptional<z.ZodString>;
979
1090
  }, z.core.$strip>;
980
1091
  declare const envListResponseSchema: z.ZodObject<{
981
1092
  type: z.ZodLiteral<"dashboard.environments.list.response">;
@@ -984,14 +1095,15 @@ declare const envListResponseSchema: z.ZodObject<{
984
1095
  id: z.ZodString;
985
1096
  name: z.ZodString;
986
1097
  type: z.ZodEnum<{
987
- fixed: "fixed";
988
1098
  glob: "glob";
1099
+ fixed: "fixed";
989
1100
  }>;
990
1101
  globPattern: z.ZodNullable<z.ZodString>;
991
1102
  enabled: z.ZodBoolean;
992
1103
  allowLocalExecution: z.ZodBoolean;
993
1104
  createdAt: z.ZodCoercedString<unknown>;
994
1105
  updatedAt: z.ZodCoercedString<unknown>;
1106
+ secretKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
995
1107
  }, z.core.$strip>>>;
996
1108
  error: z.ZodOptional<z.ZodString>;
997
1109
  }, z.core.$strip>;
@@ -1027,8 +1139,8 @@ declare const envGetResponseSchema: z.ZodObject<{
1027
1139
  id: z.ZodString;
1028
1140
  name: z.ZodString;
1029
1141
  type: z.ZodEnum<{
1030
- fixed: "fixed";
1031
1142
  glob: "glob";
1143
+ fixed: "fixed";
1032
1144
  }>;
1033
1145
  globPattern: z.ZodNullable<z.ZodString>;
1034
1146
  branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
@@ -1072,8 +1184,8 @@ export declare const envCreateRequestSchema: z.ZodObject<{
1072
1184
  }, z.core.$strip>], "type">;
1073
1185
  name: z.ZodString;
1074
1186
  envType: z.ZodEnum<{
1075
- fixed: "fixed";
1076
1187
  glob: "glob";
1188
+ fixed: "fixed";
1077
1189
  }>;
1078
1190
  globPattern: z.ZodOptional<z.ZodString>;
1079
1191
  branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1114,8 +1226,8 @@ export declare const envUpdateRequestSchema: z.ZodObject<{
1114
1226
  updates: z.ZodObject<{
1115
1227
  name: z.ZodOptional<z.ZodString>;
1116
1228
  envType: z.ZodOptional<z.ZodEnum<{
1117
- fixed: "fixed";
1118
1229
  glob: "glob";
1230
+ fixed: "fixed";
1119
1231
  }>>;
1120
1232
  globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
1233
  branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -1819,9 +1931,9 @@ declare const diagnosticsPeerSchema: z.ZodObject<{
1819
1931
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1820
1932
  name: z.ZodString;
1821
1933
  status: z.ZodEnum<{
1934
+ fail: "fail";
1822
1935
  pass: "pass";
1823
1936
  warn: "warn";
1824
- fail: "fail";
1825
1937
  }>;
1826
1938
  message: z.ZodNullable<z.ZodString>;
1827
1939
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1866,7 +1978,6 @@ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
1866
1978
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1867
1979
  agentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1868
1980
  statefulAgentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1869
- statefulHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1870
1981
  }, z.core.$strip>;
1871
1982
  agents: z.ZodArray<z.ZodObject<{
1872
1983
  agentId: z.ZodString;
@@ -1945,9 +2056,9 @@ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
1945
2056
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1946
2057
  name: z.ZodString;
1947
2058
  status: z.ZodEnum<{
2059
+ fail: "fail";
1948
2060
  pass: "pass";
1949
2061
  warn: "warn";
1950
- fail: "fail";
1951
2062
  }>;
1952
2063
  message: z.ZodNullable<z.ZodString>;
1953
2064
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2150,7 +2261,7 @@ export declare const registrationItemSchema: z.ZodObject<{
2150
2261
  github_app: "github_app";
2151
2262
  generic_webhook: "generic_webhook";
2152
2263
  universal_git: "universal_git";
2153
- internal: "internal";
2264
+ local: "local";
2154
2265
  }>>;
2155
2266
  provider: z.ZodString;
2156
2267
  }, z.core.$strip>>>;
@@ -2180,7 +2291,7 @@ export declare const registrationsListResponseSchema: z.ZodObject<{
2180
2291
  github_app: "github_app";
2181
2292
  generic_webhook: "generic_webhook";
2182
2293
  universal_git: "universal_git";
2183
- internal: "internal";
2294
+ local: "local";
2184
2295
  }>>;
2185
2296
  provider: z.ZodString;
2186
2297
  }, z.core.$strip>>>;
@@ -2417,6 +2528,229 @@ export declare const backendTestResponseSchema: z.ZodObject<{
2417
2528
  latencyMs: z.ZodOptional<z.ZodNumber>;
2418
2529
  error: z.ZodOptional<z.ZodString>;
2419
2530
  }, z.core.$strip>;
2531
+ /** Enum of the five test-relay control message types (request side). */
2532
+ export declare const TestRelayType: z.ZodEnum<{
2533
+ "test.relay.uploads.init": "test.relay.uploads.init";
2534
+ "test.relay.trigger": "test.relay.trigger";
2535
+ "test.relay.run.status": "test.relay.run.status";
2536
+ "test.relay.run.logs": "test.relay.run.logs";
2537
+ "test.relay.cancel": "test.relay.cancel";
2538
+ }>;
2539
+ export type TestRelayType = z.infer<typeof TestRelayType>;
2540
+ /** Request an external presigned upload URL for the overlay tarball. */
2541
+ export declare const testRelayUploadsInitRequestSchema: z.ZodObject<{
2542
+ type: z.ZodLiteral<"test.relay.uploads.init">;
2543
+ requestId: z.ZodString;
2544
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2545
+ type: z.ZodLiteral<"user">;
2546
+ sub: z.ZodString;
2547
+ }, z.core.$strip>, z.ZodObject<{
2548
+ type: z.ZodLiteral<"api_key">;
2549
+ keyId: z.ZodString;
2550
+ ownerSub: z.ZodString;
2551
+ }, z.core.$strip>, z.ZodObject<{
2552
+ type: z.ZodLiteral<"service_account">;
2553
+ id: z.ZodString;
2554
+ }, z.core.$strip>, z.ZodObject<{
2555
+ type: z.ZodLiteral<"platform_operator">;
2556
+ sub: z.ZodString;
2557
+ reason: z.ZodString;
2558
+ sessionId: z.ZodOptional<z.ZodString>;
2559
+ }, z.core.$strip>, z.ZodObject<{
2560
+ type: z.ZodLiteral<"system">;
2561
+ component: z.ZodString;
2562
+ }, z.core.$strip>], "type">;
2563
+ routingKey: z.ZodString;
2564
+ sha: z.ZodOptional<z.ZodString>;
2565
+ fileCount: z.ZodOptional<z.ZodNumber>;
2566
+ compressedSize: z.ZodOptional<z.ZodNumber>;
2567
+ }, z.core.$strip>;
2568
+ export type TestRelayUploadsInitRequest = z.infer<typeof testRelayUploadsInitRequestSchema>;
2569
+ /** Response with the external presigned upload URL + ephemeral encryption key. */
2570
+ export declare const testRelayUploadsInitResponseSchema: z.ZodObject<{
2571
+ type: z.ZodLiteral<"test.relay.uploads.init.response">;
2572
+ requestId: z.ZodString;
2573
+ uploadId: z.ZodOptional<z.ZodString>;
2574
+ signedUrl: z.ZodOptional<z.ZodString>;
2575
+ publicKey: z.ZodOptional<z.ZodString>;
2576
+ expiresIn: z.ZodOptional<z.ZodNumber>;
2577
+ error: z.ZodOptional<z.ZodString>;
2578
+ }, z.core.$strip>;
2579
+ export type TestRelayUploadsInitResponse = z.infer<typeof testRelayUploadsInitResponseSchema>;
2580
+ /** Trigger a remote test run (mirrors the orchestrator's TestTriggerInput). */
2581
+ export declare const testRelayTriggerRequestSchema: z.ZodObject<{
2582
+ type: z.ZodLiteral<"test.relay.trigger">;
2583
+ requestId: z.ZodString;
2584
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2585
+ type: z.ZodLiteral<"user">;
2586
+ sub: z.ZodString;
2587
+ }, z.core.$strip>, z.ZodObject<{
2588
+ type: z.ZodLiteral<"api_key">;
2589
+ keyId: z.ZodString;
2590
+ ownerSub: z.ZodString;
2591
+ }, z.core.$strip>, z.ZodObject<{
2592
+ type: z.ZodLiteral<"service_account">;
2593
+ id: z.ZodString;
2594
+ }, z.core.$strip>, z.ZodObject<{
2595
+ type: z.ZodLiteral<"platform_operator">;
2596
+ sub: z.ZodString;
2597
+ reason: z.ZodString;
2598
+ sessionId: z.ZodOptional<z.ZodString>;
2599
+ }, z.core.$strip>, z.ZodObject<{
2600
+ type: z.ZodLiteral<"system">;
2601
+ component: z.ZodString;
2602
+ }, z.core.$strip>], "type">;
2603
+ routingKey: z.ZodString;
2604
+ fixtureId: z.ZodString;
2605
+ event: z.ZodObject<{
2606
+ type: z.ZodString;
2607
+ action: z.ZodOptional<z.ZodString>;
2608
+ targetBranch: z.ZodString;
2609
+ sourceBranch: z.ZodOptional<z.ZodString>;
2610
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2611
+ changedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2612
+ }, z.core.$strip>;
2613
+ workflowName: z.ZodOptional<z.ZodString>;
2614
+ uploadId: z.ZodOptional<z.ZodString>;
2615
+ cliPublicKey: z.ZodOptional<z.ZodString>;
2616
+ inlineLockFile: z.ZodOptional<z.ZodString>;
2617
+ fullRepo: z.ZodOptional<z.ZodBoolean>;
2618
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2619
+ encryptedSecrets: z.ZodOptional<z.ZodString>;
2620
+ encryptedSecretsKey: z.ZodOptional<z.ZodString>;
2621
+ }, z.core.$strip>;
2622
+ export type TestRelayTriggerRequest = z.infer<typeof testRelayTriggerRequestSchema>;
2623
+ /** Response acknowledging a triggered run. */
2624
+ export declare const testRelayTriggerResponseSchema: z.ZodObject<{
2625
+ type: z.ZodLiteral<"test.relay.trigger.response">;
2626
+ requestId: z.ZodString;
2627
+ runId: z.ZodOptional<z.ZodString>;
2628
+ status: z.ZodOptional<z.ZodEnum<{
2629
+ accepted: "accepted";
2630
+ rejected: "rejected";
2631
+ }>>;
2632
+ reason: z.ZodOptional<z.ZodString>;
2633
+ jobIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2634
+ error: z.ZodOptional<z.ZodString>;
2635
+ }, z.core.$strip>;
2636
+ export type TestRelayTriggerResponse = z.infer<typeof testRelayTriggerResponseSchema>;
2637
+ /** Request a snapshot of a run's status. */
2638
+ export declare const testRelayRunStatusRequestSchema: z.ZodObject<{
2639
+ type: z.ZodLiteral<"test.relay.run.status">;
2640
+ requestId: z.ZodString;
2641
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2642
+ type: z.ZodLiteral<"user">;
2643
+ sub: z.ZodString;
2644
+ }, z.core.$strip>, z.ZodObject<{
2645
+ type: z.ZodLiteral<"api_key">;
2646
+ keyId: z.ZodString;
2647
+ ownerSub: z.ZodString;
2648
+ }, z.core.$strip>, z.ZodObject<{
2649
+ type: z.ZodLiteral<"service_account">;
2650
+ id: z.ZodString;
2651
+ }, z.core.$strip>, z.ZodObject<{
2652
+ type: z.ZodLiteral<"platform_operator">;
2653
+ sub: z.ZodString;
2654
+ reason: z.ZodString;
2655
+ sessionId: z.ZodOptional<z.ZodString>;
2656
+ }, z.core.$strip>, z.ZodObject<{
2657
+ type: z.ZodLiteral<"system">;
2658
+ component: z.ZodString;
2659
+ }, z.core.$strip>], "type">;
2660
+ runId: z.ZodString;
2661
+ }, z.core.$strip>;
2662
+ export type TestRelayRunStatusRequest = z.infer<typeof testRelayRunStatusRequestSchema>;
2663
+ /** Response carrying a run-status snapshot. */
2664
+ export declare const testRelayRunStatusResponseSchema: z.ZodObject<{
2665
+ type: z.ZodLiteral<"test.relay.run.status.response">;
2666
+ requestId: z.ZodString;
2667
+ runId: z.ZodOptional<z.ZodString>;
2668
+ status: z.ZodOptional<z.ZodString>;
2669
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2670
+ jobId: z.ZodString;
2671
+ jobName: z.ZodString;
2672
+ status: z.ZodString;
2673
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2674
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2675
+ }, z.core.$strip>>>;
2676
+ done: z.ZodOptional<z.ZodBoolean>;
2677
+ error: z.ZodOptional<z.ZodString>;
2678
+ }, z.core.$strip>;
2679
+ export type TestRelayRunStatusResponse = z.infer<typeof testRelayRunStatusResponseSchema>;
2680
+ /** Request the next chunk of a run's logs from a cursor. */
2681
+ export declare const testRelayRunLogsRequestSchema: z.ZodObject<{
2682
+ type: z.ZodLiteral<"test.relay.run.logs">;
2683
+ requestId: z.ZodString;
2684
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2685
+ type: z.ZodLiteral<"user">;
2686
+ sub: z.ZodString;
2687
+ }, z.core.$strip>, z.ZodObject<{
2688
+ type: z.ZodLiteral<"api_key">;
2689
+ keyId: z.ZodString;
2690
+ ownerSub: z.ZodString;
2691
+ }, z.core.$strip>, z.ZodObject<{
2692
+ type: z.ZodLiteral<"service_account">;
2693
+ id: z.ZodString;
2694
+ }, z.core.$strip>, z.ZodObject<{
2695
+ type: z.ZodLiteral<"platform_operator">;
2696
+ sub: z.ZodString;
2697
+ reason: z.ZodString;
2698
+ sessionId: z.ZodOptional<z.ZodString>;
2699
+ }, z.core.$strip>, z.ZodObject<{
2700
+ type: z.ZodLiteral<"system">;
2701
+ component: z.ZodString;
2702
+ }, z.core.$strip>], "type">;
2703
+ runId: z.ZodString;
2704
+ cursor: z.ZodNumber;
2705
+ }, z.core.$strip>;
2706
+ export type TestRelayRunLogsRequest = z.infer<typeof testRelayRunLogsRequestSchema>;
2707
+ /** Response carrying the next log chunk + a monotonic cursor. */
2708
+ export declare const testRelayRunLogsResponseSchema: z.ZodObject<{
2709
+ type: z.ZodLiteral<"test.relay.run.logs.response">;
2710
+ requestId: z.ZodString;
2711
+ lines: z.ZodOptional<z.ZodArray<z.ZodString>>;
2712
+ nextCursor: z.ZodOptional<z.ZodNumber>;
2713
+ done: z.ZodOptional<z.ZodBoolean>;
2714
+ error: z.ZodOptional<z.ZodString>;
2715
+ }, z.core.$strip>;
2716
+ export type TestRelayRunLogsResponse = z.infer<typeof testRelayRunLogsResponseSchema>;
2717
+ /** Request to cancel a run. */
2718
+ export declare const testRelayCancelRequestSchema: z.ZodObject<{
2719
+ type: z.ZodLiteral<"test.relay.cancel">;
2720
+ requestId: z.ZodString;
2721
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2722
+ type: z.ZodLiteral<"user">;
2723
+ sub: z.ZodString;
2724
+ }, z.core.$strip>, z.ZodObject<{
2725
+ type: z.ZodLiteral<"api_key">;
2726
+ keyId: z.ZodString;
2727
+ ownerSub: z.ZodString;
2728
+ }, z.core.$strip>, z.ZodObject<{
2729
+ type: z.ZodLiteral<"service_account">;
2730
+ id: z.ZodString;
2731
+ }, z.core.$strip>, z.ZodObject<{
2732
+ type: z.ZodLiteral<"platform_operator">;
2733
+ sub: z.ZodString;
2734
+ reason: z.ZodString;
2735
+ sessionId: z.ZodOptional<z.ZodString>;
2736
+ }, z.core.$strip>, z.ZodObject<{
2737
+ type: z.ZodLiteral<"system">;
2738
+ component: z.ZodString;
2739
+ }, z.core.$strip>], "type">;
2740
+ runId: z.ZodOptional<z.ZodString>;
2741
+ branch: z.ZodOptional<z.ZodString>;
2742
+ }, z.core.$strip>;
2743
+ export type TestRelayCancelRequest = z.infer<typeof testRelayCancelRequestSchema>;
2744
+ /** Response acknowledging a cancel. */
2745
+ export declare const testRelayCancelResponseSchema: z.ZodObject<{
2746
+ type: z.ZodLiteral<"test.relay.cancel.response">;
2747
+ requestId: z.ZodString;
2748
+ cancelled: z.ZodOptional<z.ZodBoolean>;
2749
+ error: z.ZodOptional<z.ZodString>;
2750
+ }, z.core.$strip>;
2751
+ export type TestRelayCancelResponse = z.infer<typeof testRelayCancelResponseSchema>;
2752
+ /** Union of the five Platform→orchestrator test-relay control requests. */
2753
+ export type TestRelayRequest = TestRelayUploadsInitRequest | TestRelayTriggerRequest | TestRelayRunStatusRequest | TestRelayRunLogsRequest | TestRelayCancelRequest;
2420
2754
  /** Dashboard messages flowing from Platform to Orchestrator. */
2421
2755
  export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2422
2756
  type: z.ZodLiteral<"dashboard.run.detail">;
@@ -2466,6 +2800,29 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2466
2800
  runId: z.ZodString;
2467
2801
  jobId: z.ZodString;
2468
2802
  stepIndex: z.ZodNumber;
2803
+ }, z.core.$strip>, z.ZodObject<{
2804
+ type: z.ZodLiteral<"dashboard.attestations.list">;
2805
+ requestId: z.ZodString;
2806
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2807
+ type: z.ZodLiteral<"user">;
2808
+ sub: z.ZodString;
2809
+ }, z.core.$strip>, z.ZodObject<{
2810
+ type: z.ZodLiteral<"api_key">;
2811
+ keyId: z.ZodString;
2812
+ ownerSub: z.ZodString;
2813
+ }, z.core.$strip>, z.ZodObject<{
2814
+ type: z.ZodLiteral<"service_account">;
2815
+ id: z.ZodString;
2816
+ }, z.core.$strip>, z.ZodObject<{
2817
+ type: z.ZodLiteral<"platform_operator">;
2818
+ sub: z.ZodString;
2819
+ reason: z.ZodString;
2820
+ sessionId: z.ZodOptional<z.ZodString>;
2821
+ }, z.core.$strip>, z.ZodObject<{
2822
+ type: z.ZodLiteral<"system">;
2823
+ component: z.ZodString;
2824
+ }, z.core.$strip>], "type">;
2825
+ runId: z.ZodString;
2469
2826
  }, z.core.$strip>, z.ZodObject<{
2470
2827
  type: z.ZodLiteral<"dashboard.runs.list">;
2471
2828
  requestId: z.ZodString;
@@ -2676,6 +3033,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2676
3033
  type: z.ZodLiteral<"system">;
2677
3034
  component: z.ZodString;
2678
3035
  }, z.core.$strip>], "type">;
3036
+ includeSecrets: z.ZodOptional<z.ZodBoolean>;
3037
+ orgId: z.ZodOptional<z.ZodString>;
2679
3038
  }, z.core.$strip>, z.ZodObject<{
2680
3039
  type: z.ZodLiteral<"dashboard.environments.get">;
2681
3040
  requestId: z.ZodString;
@@ -2723,8 +3082,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2723
3082
  }, z.core.$strip>], "type">;
2724
3083
  name: z.ZodString;
2725
3084
  envType: z.ZodEnum<{
2726
- fixed: "fixed";
2727
3085
  glob: "glob";
3086
+ fixed: "fixed";
2728
3087
  }>;
2729
3088
  globPattern: z.ZodOptional<z.ZodString>;
2730
3089
  branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -2763,8 +3122,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2763
3122
  updates: z.ZodObject<{
2764
3123
  name: z.ZodOptional<z.ZodString>;
2765
3124
  envType: z.ZodOptional<z.ZodEnum<{
2766
- fixed: "fixed";
2767
3125
  glob: "glob";
3126
+ fixed: "fixed";
2768
3127
  }>>;
2769
3128
  globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2770
3129
  branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -3804,9 +4163,11 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3804
4163
  "run.payload.read": "run.payload.read";
3805
4164
  "run.orch_logs.read": "run.orch_logs.read";
3806
4165
  "step.logs.read": "step.logs.read";
4166
+ "attestations.read": "attestations.read";
3807
4167
  "run.cancel": "run.cancel";
3808
4168
  "run.rerun": "run.rerun";
3809
4169
  "run.manual_schedule": "run.manual_schedule";
4170
+ "run.trigger": "run.trigger";
3810
4171
  "job.cancel": "job.cancel";
3811
4172
  "event_log.list.read": "event_log.list.read";
3812
4173
  "event_log.detail.read": "event_log.detail.read";
@@ -3867,8 +4228,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3867
4228
  targetType: z.ZodOptional<z.ZodEnum<{
3868
4229
  run: "run";
3869
4230
  job: "job";
3870
- step: "step";
3871
4231
  payload: "payload";
4232
+ step: "step";
3872
4233
  event_log: "event_log";
3873
4234
  event_log_payload: "event_log_payload";
3874
4235
  secret_scope: "secret_scope";
@@ -3889,43 +4250,190 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3889
4250
  q: z.ZodOptional<z.ZodString>;
3890
4251
  limit: z.ZodOptional<z.ZodNumber>;
3891
4252
  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">;
4253
+ }, z.core.$strip>, z.ZodObject<{
4254
+ type: z.ZodLiteral<"test.relay.uploads.init">;
3896
4255
  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>>;
4256
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4257
+ type: z.ZodLiteral<"user">;
4258
+ sub: z.ZodString;
4259
+ }, z.core.$strip>, z.ZodObject<{
4260
+ type: z.ZodLiteral<"api_key">;
4261
+ keyId: z.ZodString;
4262
+ ownerSub: z.ZodString;
4263
+ }, z.core.$strip>, z.ZodObject<{
4264
+ type: z.ZodLiteral<"service_account">;
4265
+ id: z.ZodString;
4266
+ }, z.core.$strip>, z.ZodObject<{
4267
+ type: z.ZodLiteral<"platform_operator">;
4268
+ sub: z.ZodString;
4269
+ reason: z.ZodString;
4270
+ sessionId: z.ZodOptional<z.ZodString>;
4271
+ }, z.core.$strip>, z.ZodObject<{
4272
+ type: z.ZodLiteral<"system">;
4273
+ component: z.ZodString;
4274
+ }, z.core.$strip>], "type">;
4275
+ routingKey: z.ZodString;
4276
+ sha: z.ZodOptional<z.ZodString>;
4277
+ fileCount: z.ZodOptional<z.ZodNumber>;
4278
+ compressedSize: z.ZodOptional<z.ZodNumber>;
4279
+ }, z.core.$strip>, z.ZodObject<{
4280
+ type: z.ZodLiteral<"test.relay.trigger">;
4281
+ requestId: z.ZodString;
4282
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4283
+ type: z.ZodLiteral<"user">;
4284
+ sub: z.ZodString;
4285
+ }, z.core.$strip>, z.ZodObject<{
4286
+ type: z.ZodLiteral<"api_key">;
4287
+ keyId: z.ZodString;
4288
+ ownerSub: z.ZodString;
4289
+ }, z.core.$strip>, z.ZodObject<{
4290
+ type: z.ZodLiteral<"service_account">;
4291
+ id: z.ZodString;
4292
+ }, z.core.$strip>, z.ZodObject<{
4293
+ type: z.ZodLiteral<"platform_operator">;
4294
+ sub: z.ZodString;
4295
+ reason: z.ZodString;
4296
+ sessionId: z.ZodOptional<z.ZodString>;
4297
+ }, z.core.$strip>, z.ZodObject<{
4298
+ type: z.ZodLiteral<"system">;
4299
+ component: z.ZodString;
4300
+ }, z.core.$strip>], "type">;
4301
+ routingKey: z.ZodString;
4302
+ fixtureId: z.ZodString;
4303
+ event: z.ZodObject<{
4304
+ type: z.ZodString;
4305
+ action: z.ZodOptional<z.ZodString>;
4306
+ targetBranch: z.ZodString;
4307
+ sourceBranch: z.ZodOptional<z.ZodString>;
4308
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4309
+ changedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
4310
+ }, z.core.$strip>;
4311
+ workflowName: z.ZodOptional<z.ZodString>;
4312
+ uploadId: z.ZodOptional<z.ZodString>;
4313
+ cliPublicKey: z.ZodOptional<z.ZodString>;
4314
+ inlineLockFile: z.ZodOptional<z.ZodString>;
4315
+ fullRepo: z.ZodOptional<z.ZodBoolean>;
4316
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4317
+ encryptedSecrets: z.ZodOptional<z.ZodString>;
4318
+ encryptedSecretsKey: z.ZodOptional<z.ZodString>;
4319
+ }, z.core.$strip>, z.ZodObject<{
4320
+ type: z.ZodLiteral<"test.relay.run.status">;
4321
+ requestId: z.ZodString;
4322
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4323
+ type: z.ZodLiteral<"user">;
4324
+ sub: z.ZodString;
4325
+ }, z.core.$strip>, z.ZodObject<{
4326
+ type: z.ZodLiteral<"api_key">;
4327
+ keyId: z.ZodString;
4328
+ ownerSub: z.ZodString;
4329
+ }, z.core.$strip>, z.ZodObject<{
4330
+ type: z.ZodLiteral<"service_account">;
4331
+ id: z.ZodString;
4332
+ }, z.core.$strip>, z.ZodObject<{
4333
+ type: z.ZodLiteral<"platform_operator">;
4334
+ sub: z.ZodString;
4335
+ reason: z.ZodString;
4336
+ sessionId: z.ZodOptional<z.ZodString>;
4337
+ }, z.core.$strip>, z.ZodObject<{
4338
+ type: z.ZodLiteral<"system">;
4339
+ component: z.ZodString;
4340
+ }, z.core.$strip>], "type">;
4341
+ runId: z.ZodString;
4342
+ }, z.core.$strip>, z.ZodObject<{
4343
+ type: z.ZodLiteral<"test.relay.run.logs">;
4344
+ requestId: z.ZodString;
4345
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4346
+ type: z.ZodLiteral<"user">;
4347
+ sub: z.ZodString;
4348
+ }, z.core.$strip>, z.ZodObject<{
4349
+ type: z.ZodLiteral<"api_key">;
4350
+ keyId: z.ZodString;
4351
+ ownerSub: z.ZodString;
4352
+ }, z.core.$strip>, z.ZodObject<{
4353
+ type: z.ZodLiteral<"service_account">;
4354
+ id: z.ZodString;
4355
+ }, z.core.$strip>, z.ZodObject<{
4356
+ type: z.ZodLiteral<"platform_operator">;
4357
+ sub: z.ZodString;
4358
+ reason: z.ZodString;
4359
+ sessionId: z.ZodOptional<z.ZodString>;
4360
+ }, z.core.$strip>, z.ZodObject<{
4361
+ type: z.ZodLiteral<"system">;
4362
+ component: z.ZodString;
4363
+ }, z.core.$strip>], "type">;
4364
+ runId: z.ZodString;
4365
+ cursor: z.ZodNumber;
4366
+ }, z.core.$strip>, z.ZodObject<{
4367
+ type: z.ZodLiteral<"test.relay.cancel">;
4368
+ requestId: z.ZodString;
4369
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4370
+ type: z.ZodLiteral<"user">;
4371
+ sub: z.ZodString;
4372
+ }, z.core.$strip>, z.ZodObject<{
4373
+ type: z.ZodLiteral<"api_key">;
4374
+ keyId: z.ZodString;
4375
+ ownerSub: z.ZodString;
4376
+ }, z.core.$strip>, z.ZodObject<{
4377
+ type: z.ZodLiteral<"service_account">;
4378
+ id: z.ZodString;
4379
+ }, z.core.$strip>, z.ZodObject<{
4380
+ type: z.ZodLiteral<"platform_operator">;
4381
+ sub: z.ZodString;
4382
+ reason: z.ZodString;
4383
+ sessionId: z.ZodOptional<z.ZodString>;
4384
+ }, z.core.$strip>, z.ZodObject<{
4385
+ type: z.ZodLiteral<"system">;
4386
+ component: z.ZodString;
4387
+ }, z.core.$strip>], "type">;
4388
+ runId: z.ZodOptional<z.ZodString>;
4389
+ branch: z.ZodOptional<z.ZodString>;
4390
+ }, z.core.$strip>], "type">;
4391
+ /** Dashboard messages flowing from Orchestrator to Platform. */
4392
+ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4393
+ type: z.ZodLiteral<"dashboard.run.detail.response">;
4394
+ requestId: z.ZodString;
4395
+ jobs: z.ZodArray<z.ZodObject<{
4396
+ jobId: z.ZodString;
4397
+ jobName: z.ZodString;
4398
+ status: z.ZodString;
4399
+ matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4400
+ baseJobName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4401
+ variantKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4402
+ variantLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4403
+ startedAt: z.ZodNullable<z.ZodNumber>;
4404
+ completedAt: z.ZodNullable<z.ZodNumber>;
4405
+ durationMs: z.ZodNullable<z.ZodNumber>;
4406
+ agentId: z.ZodNullable<z.ZodString>;
4407
+ orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4408
+ errorMessage: z.ZodNullable<z.ZodString>;
4409
+ runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4410
+ outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
4411
+ secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4412
+ initFailure: z.ZodOptional<z.ZodObject<{
4413
+ scope: z.ZodEnum<{
4414
+ run: "run";
4415
+ job: "job";
4416
+ }>;
4417
+ category: z.ZodEnum<{
4418
+ secret_resolution: "secret_resolution";
4419
+ install_secrets: "install_secrets";
4420
+ lock_resolution: "lock_resolution";
4421
+ build_coordination: "build_coordination";
4422
+ environment_rules: "environment_rules";
4423
+ dynamic_eval: "dynamic_eval";
4424
+ no_agent: "no_agent";
4425
+ matrix_expansion: "matrix_expansion";
4426
+ }>;
4427
+ message: z.ZodString;
4428
+ jobName: z.ZodOptional<z.ZodString>;
4429
+ }, z.core.$strip>>;
4430
+ needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4431
+ upstreamName: z.ZodString;
4432
+ ifFailed: z.ZodEnum<{
4433
+ run: "run";
4434
+ skip: "skip";
4435
+ }>;
4436
+ }, z.core.$strip>>>>;
3929
4437
  steps: z.ZodArray<z.ZodObject<{
3930
4438
  stepIndex: z.ZodNumber;
3931
4439
  stepName: z.ZodString;
@@ -3976,6 +4484,35 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3976
4484
  lines: z.ZodArray<z.ZodString>;
3977
4485
  totalLines: z.ZodNumber;
3978
4486
  error: z.ZodOptional<z.ZodString>;
4487
+ }, z.core.$strip>, z.ZodObject<{
4488
+ type: z.ZodLiteral<"dashboard.attestations.list.response">;
4489
+ requestId: z.ZodString;
4490
+ attestations: z.ZodArray<z.ZodObject<{
4491
+ id: z.ZodString;
4492
+ jobId: z.ZodString;
4493
+ jobName: z.ZodNullable<z.ZodString>;
4494
+ subjectName: z.ZodString;
4495
+ subjectDigest: z.ZodString;
4496
+ mode: z.ZodString;
4497
+ mediaType: z.ZodString;
4498
+ createdAt: z.ZodString;
4499
+ bundle: z.ZodObject<{
4500
+ mediaType: z.ZodLiteral<"application/vnd.kici.provenance.bundle+json;version=0.1">;
4501
+ dsseEnvelope: z.ZodObject<{
4502
+ payloadType: z.ZodString;
4503
+ payload: z.ZodString;
4504
+ signatures: z.ZodArray<z.ZodObject<{
4505
+ keyid: z.ZodString;
4506
+ sig: z.ZodString;
4507
+ }, z.core.$strip>>;
4508
+ }, z.core.$strip>;
4509
+ verificationMaterial: z.ZodObject<{
4510
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4511
+ identityToken: z.ZodString;
4512
+ }, z.core.$strip>;
4513
+ }, z.core.$strip>;
4514
+ }, z.core.$strip>>;
4515
+ error: z.ZodOptional<z.ZodString>;
3979
4516
  }, z.core.$strip>, z.ZodObject<{
3980
4517
  type: z.ZodLiteral<"dashboard.runs.list.response">;
3981
4518
  requestId: z.ZodString;
@@ -4036,7 +4573,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4036
4573
  github_app: "github_app";
4037
4574
  generic_webhook: "generic_webhook";
4038
4575
  universal_git: "universal_git";
4039
- internal: "internal";
4576
+ local: "local";
4040
4577
  }>;
4041
4578
  enabled: z.ZodBoolean;
4042
4579
  createdAt: z.ZodString;
@@ -4077,14 +4614,15 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4077
4614
  id: z.ZodString;
4078
4615
  name: z.ZodString;
4079
4616
  type: z.ZodEnum<{
4080
- fixed: "fixed";
4081
4617
  glob: "glob";
4618
+ fixed: "fixed";
4082
4619
  }>;
4083
4620
  globPattern: z.ZodNullable<z.ZodString>;
4084
4621
  enabled: z.ZodBoolean;
4085
4622
  allowLocalExecution: z.ZodBoolean;
4086
4623
  createdAt: z.ZodCoercedString<unknown>;
4087
4624
  updatedAt: z.ZodCoercedString<unknown>;
4625
+ secretKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
4088
4626
  }, z.core.$strip>>>;
4089
4627
  error: z.ZodOptional<z.ZodString>;
4090
4628
  }, z.core.$strip>, z.ZodObject<{
@@ -4094,8 +4632,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4094
4632
  id: z.ZodString;
4095
4633
  name: z.ZodString;
4096
4634
  type: z.ZodEnum<{
4097
- fixed: "fixed";
4098
4635
  glob: "glob";
4636
+ fixed: "fixed";
4099
4637
  }>;
4100
4638
  globPattern: z.ZodNullable<z.ZodString>;
4101
4639
  branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
@@ -4308,7 +4846,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4308
4846
  github_app: "github_app";
4309
4847
  generic_webhook: "generic_webhook";
4310
4848
  universal_git: "universal_git";
4311
- internal: "internal";
4849
+ local: "local";
4312
4850
  }>>;
4313
4851
  provider: z.ZodString;
4314
4852
  }, z.core.$strip>>>;
@@ -4361,7 +4899,6 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4361
4899
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4362
4900
  agentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4363
4901
  statefulAgentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4364
- statefulHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
4365
4902
  }, z.core.$strip>;
4366
4903
  agents: z.ZodArray<z.ZodObject<{
4367
4904
  agentId: z.ZodString;
@@ -4440,9 +4977,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4440
4977
  dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
4441
4978
  name: z.ZodString;
4442
4979
  status: z.ZodEnum<{
4980
+ fail: "fail";
4443
4981
  pass: "pass";
4444
4982
  warn: "warn";
4445
- fail: "fail";
4446
4983
  }>;
4447
4984
  message: z.ZodNullable<z.ZodString>;
4448
4985
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -4760,9 +5297,11 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4760
5297
  "run.payload.read": "run.payload.read";
4761
5298
  "run.orch_logs.read": "run.orch_logs.read";
4762
5299
  "step.logs.read": "step.logs.read";
5300
+ "attestations.read": "attestations.read";
4763
5301
  "run.cancel": "run.cancel";
4764
5302
  "run.rerun": "run.rerun";
4765
5303
  "run.manual_schedule": "run.manual_schedule";
5304
+ "run.trigger": "run.trigger";
4766
5305
  "job.cancel": "job.cancel";
4767
5306
  "event_log.list.read": "event_log.list.read";
4768
5307
  "event_log.detail.read": "event_log.detail.read";
@@ -4813,8 +5352,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4813
5352
  targetType: z.ZodNullable<z.ZodEnum<{
4814
5353
  run: "run";
4815
5354
  job: "job";
4816
- step: "step";
4817
5355
  payload: "payload";
5356
+ step: "step";
4818
5357
  event_log: "event_log";
4819
5358
  event_log_payload: "event_log_payload";
4820
5359
  secret_scope: "secret_scope";
@@ -4846,6 +5385,51 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4846
5385
  }, z.core.$strip>>>;
4847
5386
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4848
5387
  error: z.ZodOptional<z.ZodString>;
5388
+ }, z.core.$strip>, z.ZodObject<{
5389
+ type: z.ZodLiteral<"test.relay.uploads.init.response">;
5390
+ requestId: z.ZodString;
5391
+ uploadId: z.ZodOptional<z.ZodString>;
5392
+ signedUrl: z.ZodOptional<z.ZodString>;
5393
+ publicKey: z.ZodOptional<z.ZodString>;
5394
+ expiresIn: z.ZodOptional<z.ZodNumber>;
5395
+ error: z.ZodOptional<z.ZodString>;
5396
+ }, z.core.$strip>, z.ZodObject<{
5397
+ type: z.ZodLiteral<"test.relay.trigger.response">;
5398
+ requestId: z.ZodString;
5399
+ runId: z.ZodOptional<z.ZodString>;
5400
+ status: z.ZodOptional<z.ZodEnum<{
5401
+ accepted: "accepted";
5402
+ rejected: "rejected";
5403
+ }>>;
5404
+ reason: z.ZodOptional<z.ZodString>;
5405
+ jobIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
5406
+ error: z.ZodOptional<z.ZodString>;
5407
+ }, z.core.$strip>, z.ZodObject<{
5408
+ type: z.ZodLiteral<"test.relay.run.status.response">;
5409
+ requestId: z.ZodString;
5410
+ runId: z.ZodOptional<z.ZodString>;
5411
+ status: z.ZodOptional<z.ZodString>;
5412
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5413
+ jobId: z.ZodString;
5414
+ jobName: z.ZodString;
5415
+ status: z.ZodString;
5416
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5417
+ errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5418
+ }, z.core.$strip>>>;
5419
+ done: z.ZodOptional<z.ZodBoolean>;
5420
+ error: z.ZodOptional<z.ZodString>;
5421
+ }, z.core.$strip>, z.ZodObject<{
5422
+ type: z.ZodLiteral<"test.relay.run.logs.response">;
5423
+ requestId: z.ZodString;
5424
+ lines: z.ZodOptional<z.ZodArray<z.ZodString>>;
5425
+ nextCursor: z.ZodOptional<z.ZodNumber>;
5426
+ done: z.ZodOptional<z.ZodBoolean>;
5427
+ error: z.ZodOptional<z.ZodString>;
5428
+ }, z.core.$strip>, z.ZodObject<{
5429
+ type: z.ZodLiteral<"test.relay.cancel.response">;
5430
+ requestId: z.ZodString;
5431
+ cancelled: z.ZodOptional<z.ZodBoolean>;
5432
+ error: z.ZodOptional<z.ZodString>;
4849
5433
  }, z.core.$strip>], "type">;
4850
5434
  export type DashboardRunDetailRequest = z.infer<typeof dashboardRunDetailRequestSchema>;
4851
5435
  export type DashboardStepLogsRequest = z.infer<typeof dashboardStepLogsRequestSchema>;
@@ -4920,6 +5504,9 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
4920
5504
  jobName: z.ZodString;
4921
5505
  status: z.ZodString;
4922
5506
  matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5507
+ baseJobName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5508
+ variantKind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5509
+ variantLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4923
5510
  startedAt: z.ZodNullable<z.ZodNumber>;
4924
5511
  completedAt: z.ZodNullable<z.ZodNumber>;
4925
5512
  durationMs: z.ZodNullable<z.ZodNumber>;
@@ -4947,6 +5534,13 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
4947
5534
  message: z.ZodString;
4948
5535
  jobName: z.ZodOptional<z.ZodString>;
4949
5536
  }, z.core.$strip>>;
5537
+ needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
5538
+ upstreamName: z.ZodString;
5539
+ ifFailed: z.ZodEnum<{
5540
+ run: "run";
5541
+ skip: "skip";
5542
+ }>;
5543
+ }, z.core.$strip>>>>;
4950
5544
  steps: z.ZodArray<z.ZodObject<{
4951
5545
  stepIndex: z.ZodNumber;
4952
5546
  stepName: z.ZodString;
@@ -4996,8 +5590,342 @@ export declare const dashboardStepLogsApiResponseSchema: z.ZodObject<{
4996
5590
  lines: z.ZodArray<z.ZodString>;
4997
5591
  totalLines: z.ZodNumber;
4998
5592
  }, z.core.$strip>;
5593
+ /**
5594
+ * REST API response for the run attestations list. The orchestrator-relayed
5595
+ * `attestations` array is augmented by Platform with the provenance trust root
5596
+ * from its own `oidcIssuer` config: `trustedIssuer` is the issuer the dashboard
5597
+ * pins each bundle's identity token to (never the bundle's own `iss`), and
5598
+ * `jwksUri` is the discovery JWKS endpoint the dashboard fetches to verify.
5599
+ * Both are null when the Platform has no provenance issuer configured — the
5600
+ * dashboard then lists + downloads the bundles but renders the badge as
5601
+ * "verification unavailable".
5602
+ */
5603
+ export declare const dashboardAttestationsApiResponseSchema: z.ZodObject<{
5604
+ trustedIssuer: z.ZodNullable<z.ZodString>;
5605
+ jwksUri: z.ZodNullable<z.ZodString>;
5606
+ attestations: z.ZodArray<z.ZodObject<{
5607
+ id: z.ZodString;
5608
+ jobId: z.ZodString;
5609
+ jobName: z.ZodNullable<z.ZodString>;
5610
+ subjectName: z.ZodString;
5611
+ subjectDigest: z.ZodString;
5612
+ mode: z.ZodString;
5613
+ mediaType: z.ZodString;
5614
+ createdAt: z.ZodString;
5615
+ bundle: z.ZodObject<{
5616
+ mediaType: z.ZodLiteral<"application/vnd.kici.provenance.bundle+json;version=0.1">;
5617
+ dsseEnvelope: z.ZodObject<{
5618
+ payloadType: z.ZodString;
5619
+ payload: z.ZodString;
5620
+ signatures: z.ZodArray<z.ZodObject<{
5621
+ keyid: z.ZodString;
5622
+ sig: z.ZodString;
5623
+ }, z.core.$strip>>;
5624
+ }, z.core.$strip>;
5625
+ verificationMaterial: z.ZodObject<{
5626
+ publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5627
+ identityToken: z.ZodString;
5628
+ }, z.core.$strip>;
5629
+ }, z.core.$strip>;
5630
+ }, z.core.$strip>>;
5631
+ }, z.core.$strip>;
5632
+ /** Single run summary in the paginated run list. */
5633
+ export declare const runListItemSchema: z.ZodObject<{
5634
+ runId: z.ZodString;
5635
+ workflowName: z.ZodString;
5636
+ status: z.ZodString;
5637
+ repoIdentifier: z.ZodNullable<z.ZodString>;
5638
+ sha: z.ZodNullable<z.ZodString>;
5639
+ ref: z.ZodNullable<z.ZodString>;
5640
+ triggerEvent: z.ZodNullable<z.ZodString>;
5641
+ commitMessage: z.ZodNullable<z.ZodString>;
5642
+ jobCount: z.ZodNullable<z.ZodNumber>;
5643
+ startedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
5644
+ completedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
5645
+ durationMs: z.ZodNullable<z.ZodNumber>;
5646
+ parentRunId: z.ZodNullable<z.ZodString>;
5647
+ originalRunId: z.ZodNullable<z.ZodString>;
5648
+ triggeredBy: z.ZodNullable<z.ZodString>;
5649
+ triggeredByUser: z.ZodNullable<z.ZodObject<{
5650
+ sub: z.ZodString;
5651
+ email: z.ZodNullable<z.ZodString>;
5652
+ displayName: z.ZodNullable<z.ZodString>;
5653
+ }, z.core.$strip>>;
5654
+ cancelledBy: z.ZodNullable<z.ZodString>;
5655
+ cancelledByUser: z.ZodNullable<z.ZodObject<{
5656
+ sub: z.ZodString;
5657
+ email: z.ZodNullable<z.ZodString>;
5658
+ displayName: z.ZodNullable<z.ZodString>;
5659
+ }, z.core.$strip>>;
5660
+ failureReason: z.ZodOptional<z.ZodString>;
5661
+ hadCompileJob: z.ZodBoolean;
5662
+ compileJobId: z.ZodNullable<z.ZodString>;
5663
+ source: z.ZodNullable<z.ZodObject<{
5664
+ routingKey: z.ZodString;
5665
+ name: z.ZodNullable<z.ZodString>;
5666
+ subtype: z.ZodNullable<z.ZodEnum<{
5667
+ github_app: "github_app";
5668
+ generic_webhook: "generic_webhook";
5669
+ universal_git: "universal_git";
5670
+ local: "local";
5671
+ }>>;
5672
+ provider: z.ZodString;
5673
+ }, z.core.$strip>>;
5674
+ }, z.core.$strip>;
5675
+ export type RunListItem = z.infer<typeof runListItemSchema>;
5676
+ /** Paginated run list response envelope. */
5677
+ export declare const runListResponseSchema: z.ZodObject<{
5678
+ runs: z.ZodArray<z.ZodObject<{
5679
+ runId: z.ZodString;
5680
+ workflowName: z.ZodString;
5681
+ status: z.ZodString;
5682
+ repoIdentifier: z.ZodNullable<z.ZodString>;
5683
+ sha: z.ZodNullable<z.ZodString>;
5684
+ ref: z.ZodNullable<z.ZodString>;
5685
+ triggerEvent: z.ZodNullable<z.ZodString>;
5686
+ commitMessage: z.ZodNullable<z.ZodString>;
5687
+ jobCount: z.ZodNullable<z.ZodNumber>;
5688
+ startedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
5689
+ completedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
5690
+ durationMs: z.ZodNullable<z.ZodNumber>;
5691
+ parentRunId: z.ZodNullable<z.ZodString>;
5692
+ originalRunId: z.ZodNullable<z.ZodString>;
5693
+ triggeredBy: z.ZodNullable<z.ZodString>;
5694
+ triggeredByUser: z.ZodNullable<z.ZodObject<{
5695
+ sub: z.ZodString;
5696
+ email: z.ZodNullable<z.ZodString>;
5697
+ displayName: z.ZodNullable<z.ZodString>;
5698
+ }, z.core.$strip>>;
5699
+ cancelledBy: z.ZodNullable<z.ZodString>;
5700
+ cancelledByUser: z.ZodNullable<z.ZodObject<{
5701
+ sub: z.ZodString;
5702
+ email: z.ZodNullable<z.ZodString>;
5703
+ displayName: z.ZodNullable<z.ZodString>;
5704
+ }, z.core.$strip>>;
5705
+ failureReason: z.ZodOptional<z.ZodString>;
5706
+ hadCompileJob: z.ZodBoolean;
5707
+ compileJobId: z.ZodNullable<z.ZodString>;
5708
+ source: z.ZodNullable<z.ZodObject<{
5709
+ routingKey: z.ZodString;
5710
+ name: z.ZodNullable<z.ZodString>;
5711
+ subtype: z.ZodNullable<z.ZodEnum<{
5712
+ github_app: "github_app";
5713
+ generic_webhook: "generic_webhook";
5714
+ universal_git: "universal_git";
5715
+ local: "local";
5716
+ }>>;
5717
+ provider: z.ZodString;
5718
+ }, z.core.$strip>>;
5719
+ }, z.core.$strip>>;
5720
+ total: z.ZodNumber;
5721
+ page: z.ZodNumber;
5722
+ pageSize: z.ZodNumber;
5723
+ hasMore: z.ZodBoolean;
5724
+ }, z.core.$strip>;
5725
+ export type RunListResponse = z.infer<typeof runListResponseSchema>;
5726
+ declare const diagnosticsInfraAgentSchema: z.ZodObject<{
5727
+ agentId: z.ZodString;
5728
+ labels: z.ZodArray<z.ZodString>;
5729
+ platform: z.ZodString;
5730
+ arch: z.ZodString;
5731
+ activeJobs: z.ZodNumber;
5732
+ maxConcurrency: z.ZodNumber;
5733
+ lastHeartbeatAt: z.ZodNumber;
5734
+ registeredAt: z.ZodNumber;
5735
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5736
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5737
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5738
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5739
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5740
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5741
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5742
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5743
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5744
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5745
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5746
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5747
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5748
+ }, z.core.$strip>;
5749
+ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
5750
+ connectionId: z.ZodString;
5751
+ clusterName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5752
+ instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5753
+ routingKeys: z.ZodArray<z.ZodString>;
5754
+ connected: z.ZodBoolean;
5755
+ connectedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5756
+ lastHeartbeat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5757
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5758
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5759
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5760
+ raftRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5761
+ raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5762
+ raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5763
+ scalerBackends: z.ZodArray<z.ZodString>;
5764
+ s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5765
+ agentCount: z.ZodNumber;
5766
+ runningJobs: z.ZodNumber;
5767
+ queuedJobs: z.ZodNumber;
5768
+ pendingLabelGaps: z.ZodArray<z.ZodString>;
5769
+ agents: z.ZodArray<z.ZodObject<{
5770
+ agentId: z.ZodString;
5771
+ labels: z.ZodArray<z.ZodString>;
5772
+ platform: z.ZodString;
5773
+ arch: z.ZodString;
5774
+ activeJobs: z.ZodNumber;
5775
+ maxConcurrency: z.ZodNumber;
5776
+ lastHeartbeatAt: z.ZodNumber;
5777
+ registeredAt: z.ZodNumber;
5778
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5779
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5780
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5781
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5782
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5783
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5784
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5785
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5786
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5787
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5788
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5789
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5790
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5791
+ }, z.core.$strip>>;
5792
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5793
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5794
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5795
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5796
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5797
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5798
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5799
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5800
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5801
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5802
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5803
+ statefulAgentCount: z.ZodNumber;
5804
+ scalers: z.ZodArray<z.ZodObject<{
5805
+ name: z.ZodString;
5806
+ type: z.ZodString;
5807
+ maxAgents: z.ZodNumber;
5808
+ activeAgents: z.ZodNumber;
5809
+ labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
5810
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5811
+ hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5812
+ }, z.core.$strip>>;
5813
+ dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
5814
+ name: z.ZodString;
5815
+ status: z.ZodEnum<{
5816
+ fail: "fail";
5817
+ pass: "pass";
5818
+ warn: "warn";
5819
+ }>;
5820
+ message: z.ZodNullable<z.ZodString>;
5821
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5822
+ durationMs: z.ZodOptional<z.ZodNumber>;
5823
+ }, z.core.$strip>>>;
5824
+ error: z.ZodOptional<z.ZodString>;
5825
+ }, z.core.$strip>;
5826
+ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
5827
+ orchestrators: z.ZodArray<z.ZodObject<{
5828
+ connectionId: z.ZodString;
5829
+ clusterName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5830
+ instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5831
+ routingKeys: z.ZodArray<z.ZodString>;
5832
+ connected: z.ZodBoolean;
5833
+ connectedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5834
+ lastHeartbeat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5835
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5836
+ mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5837
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5838
+ raftRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5839
+ raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5840
+ raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5841
+ scalerBackends: z.ZodArray<z.ZodString>;
5842
+ s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5843
+ agentCount: z.ZodNumber;
5844
+ runningJobs: z.ZodNumber;
5845
+ queuedJobs: z.ZodNumber;
5846
+ pendingLabelGaps: z.ZodArray<z.ZodString>;
5847
+ agents: z.ZodArray<z.ZodObject<{
5848
+ agentId: z.ZodString;
5849
+ labels: z.ZodArray<z.ZodString>;
5850
+ platform: z.ZodString;
5851
+ arch: z.ZodString;
5852
+ activeJobs: z.ZodNumber;
5853
+ maxConcurrency: z.ZodNumber;
5854
+ lastHeartbeatAt: z.ZodNumber;
5855
+ registeredAt: z.ZodNumber;
5856
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5857
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5858
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5859
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5860
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5861
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5862
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5863
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5864
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5865
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5866
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5867
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5868
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5869
+ }, z.core.$strip>>;
5870
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5871
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5872
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5873
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5874
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5875
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5876
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5877
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5878
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5879
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5880
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5881
+ statefulAgentCount: z.ZodNumber;
5882
+ scalers: z.ZodArray<z.ZodObject<{
5883
+ name: z.ZodString;
5884
+ type: z.ZodString;
5885
+ maxAgents: z.ZodNumber;
5886
+ activeAgents: z.ZodNumber;
5887
+ labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
5888
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5889
+ hosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5890
+ }, z.core.$strip>>;
5891
+ dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
5892
+ name: z.ZodString;
5893
+ status: z.ZodEnum<{
5894
+ fail: "fail";
5895
+ pass: "pass";
5896
+ warn: "warn";
5897
+ }>;
5898
+ message: z.ZodNullable<z.ZodString>;
5899
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5900
+ durationMs: z.ZodOptional<z.ZodNumber>;
5901
+ }, z.core.$strip>>>;
5902
+ error: z.ZodOptional<z.ZodString>;
5903
+ }, z.core.$strip>>;
5904
+ alerts: z.ZodArray<z.ZodObject<{
5905
+ type: z.ZodString;
5906
+ message: z.ZodString;
5907
+ severity: z.ZodString;
5908
+ }, z.core.$strip>>;
5909
+ latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5910
+ }, z.core.$strip>;
5911
+ export type DiagnosticsInfrastructureResponse = z.infer<typeof diagnosticsInfrastructureResponseSchema>;
5912
+ export type DiagnosticsOrchestrator = z.infer<typeof diagnosticsInfraOrchestratorSchema>;
5913
+ export type DiagnosticsAgent = z.infer<typeof diagnosticsInfraAgentSchema>;
5914
+ export declare const diagnosticsSummaryResponseSchema: z.ZodObject<{
5915
+ connections: z.ZodArray<z.ZodUnknown>;
5916
+ executionMetrics: z.ZodObject<{
5917
+ totalRuns: z.ZodNumber;
5918
+ successRate: z.ZodNumber;
5919
+ avgDurationSeconds: z.ZodNumber;
5920
+ queuedJobs: z.ZodNumber;
5921
+ runningJobs: z.ZodNumber;
5922
+ }, z.core.$strip>;
5923
+ orphanedConnections: z.ZodNumber;
5924
+ }, z.core.$strip>;
5925
+ export type DiagnosticsSummaryResponse = z.infer<typeof diagnosticsSummaryResponseSchema>;
4999
5926
  export type DashboardRunDetailApiResponse = z.infer<typeof dashboardRunDetailApiResponseSchema>;
5000
5927
  export type DashboardStepLogsApiResponse = z.infer<typeof dashboardStepLogsApiResponseSchema>;
5928
+ export type DashboardAttestationsApiResponse = z.infer<typeof dashboardAttestationsApiResponseSchema>;
5001
5929
  export type DashboardJobDetail = z.infer<typeof dashboardJobDetailSchema>;
5002
5930
  /** Single environment from the list response. */
5003
5931
  export type DashboardEnvironment = NonNullable<EnvListResponse['environments']>[number];