@kici-dev/engine 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +1 -6
  3. package/dist/audit/access-log-policy.d.ts +97 -0
  4. package/dist/audit/access-log-policy.js +195 -0
  5. package/dist/audit/activity.d.ts +156 -0
  6. package/dist/audit/activity.js +175 -0
  7. package/dist/audit/retention-policy.d.ts +157 -0
  8. package/dist/audit/retention-policy.js +364 -0
  9. package/dist/bundler/index.d.ts +3 -0
  10. package/dist/bundler/index.js +3 -0
  11. package/dist/bundler/rolldown-config.d.ts +41 -0
  12. package/dist/bundler/rolldown-config.js +40 -0
  13. package/dist/chunk-gOLHoazu.js +4 -0
  14. package/dist/env/environment-allowlist.d.ts +45 -0
  15. package/dist/env/environment-allowlist.js +69 -0
  16. package/dist/environment/index.d.ts +3 -0
  17. package/dist/environment/index.js +3 -0
  18. package/dist/environment/scope-resolver.d.ts +35 -0
  19. package/dist/environment/scope-resolver.js +77 -0
  20. package/dist/environment/types.d.ts +98 -0
  21. package/dist/environment/types.js +2 -0
  22. package/dist/index.d.ts +54 -0
  23. package/dist/index.js +45 -0
  24. package/dist/labels.d.ts +106 -0
  25. package/dist/labels.js +162 -0
  26. package/dist/metrics/metric-catalog.generated.d.ts +400 -0
  27. package/dist/metrics/metric-catalog.generated.js +510 -0
  28. package/dist/protocol/dashboard-global-workflows.d.ts +9 -0
  29. package/dist/protocol/dashboard-global-workflows.js +3 -0
  30. package/dist/protocol/event-log-payload.d.ts +16 -0
  31. package/dist/protocol/event-log-payload.js +21 -0
  32. package/dist/protocol/messages/access-log.d.ts +545 -0
  33. package/dist/protocol/messages/access-log.js +175 -0
  34. package/dist/protocol/messages/actor.d.ts +100 -0
  35. package/dist/protocol/messages/actor.js +139 -0
  36. package/dist/protocol/messages/auth.d.ts +25 -0
  37. package/dist/protocol/messages/auth.js +36 -0
  38. package/dist/protocol/messages/browser.d.ts +369 -0
  39. package/dist/protocol/messages/browser.js +225 -0
  40. package/dist/protocol/messages/capabilities.d.ts +46 -0
  41. package/dist/protocol/messages/capabilities.js +42 -0
  42. package/dist/protocol/messages/common.d.ts +53 -0
  43. package/dist/protocol/messages/common.js +55 -0
  44. package/dist/protocol/messages/dashboard-global-workflows.d.ts +166 -0
  45. package/dist/protocol/messages/dashboard-global-workflows.js +80 -0
  46. package/dist/protocol/messages/dashboard.d.ts +4068 -0
  47. package/dist/protocol/messages/dashboard.js +1237 -0
  48. package/dist/protocol/messages/event-log.d.ts +49 -0
  49. package/dist/protocol/messages/event-log.js +45 -0
  50. package/dist/protocol/messages/execution-status.d.ts +164 -0
  51. package/dist/protocol/messages/execution-status.js +166 -0
  52. package/dist/protocol/messages/join.d.ts +18 -0
  53. package/dist/protocol/messages/join.js +28 -0
  54. package/dist/protocol/messages/log-pull.d.ts +27 -0
  55. package/dist/protocol/messages/log-pull.js +36 -0
  56. package/dist/protocol/messages/observe.d.ts +75 -0
  57. package/dist/protocol/messages/observe.js +70 -0
  58. package/dist/protocol/messages/orchestrator-agent.d.ts +606 -0
  59. package/dist/protocol/messages/orchestrator-agent.js +481 -0
  60. package/dist/protocol/messages/peer.d.ts +795 -0
  61. package/dist/protocol/messages/peer.js +372 -0
  62. package/dist/protocol/messages/platform-orchestrator.d.ts +1888 -0
  63. package/dist/protocol/messages/platform-orchestrator.js +379 -0
  64. package/dist/protocol/messages/run-events.d.ts +155 -0
  65. package/dist/protocol/messages/run-events.js +115 -0
  66. package/dist/protocol/messages/saas-orchestrator.d.ts +2179 -0
  67. package/dist/protocol/messages/source-registration.d.ts +103 -0
  68. package/dist/protocol/messages/source-registration.js +109 -0
  69. package/dist/protocol/messages/test-run.d.ts +59 -0
  70. package/dist/protocol/messages/test-run.js +52 -0
  71. package/dist/protocol/version.d.ts +12 -0
  72. package/dist/protocol/version.js +17 -0
  73. package/dist/provider/changed-files-fetcher.d.ts +24 -0
  74. package/dist/provider/changed-files-fetcher.js +2 -0
  75. package/dist/provider/check-run-conclusion.d.ts +15 -0
  76. package/dist/provider/check-run-conclusion.js +19 -0
  77. package/dist/provider/check-status-poster.d.ts +15 -0
  78. package/dist/provider/check-status-poster.js +2 -0
  79. package/dist/provider/clone-token-provider.d.ts +58 -0
  80. package/dist/provider/clone-token-provider.js +2 -0
  81. package/dist/provider/contributor-resolver.d.ts +22 -0
  82. package/dist/provider/contributor-resolver.js +2 -0
  83. package/dist/provider/index.d.ts +23 -0
  84. package/dist/provider/index.js +3 -0
  85. package/dist/provider/lock-file-fetcher.d.ts +24 -0
  86. package/dist/provider/lock-file-fetcher.js +2 -0
  87. package/dist/provider/repo-url-builder.d.ts +35 -0
  88. package/dist/provider/repo-url-builder.js +2 -0
  89. package/dist/provider/types.d.ts +9 -0
  90. package/dist/provider/types.js +2 -0
  91. package/dist/provider/webhook-normalizer.d.ts +163 -0
  92. package/dist/provider/webhook-normalizer.js +2 -0
  93. package/dist/registration/registerable-trigger-type.d.ts +52 -0
  94. package/dist/registration/registerable-trigger-type.js +56 -0
  95. package/dist/scaler/resource-types.d.ts +90 -0
  96. package/dist/scaler/resource-types.js +99 -0
  97. package/dist/scaler/scaler-backend-type.d.ts +16 -0
  98. package/dist/scaler/scaler-backend-type.js +20 -0
  99. package/dist/secrets/index.d.ts +7 -0
  100. package/dist/secrets/index.js +2 -0
  101. package/dist/secrets/types.d.ts +138 -0
  102. package/dist/secrets/types.js +2 -0
  103. package/dist/state-machine/index.d.ts +2 -0
  104. package/dist/state-machine/index.js +3 -0
  105. package/dist/state-machine/machine.d.ts +34 -0
  106. package/dist/state-machine/machine.js +103 -0
  107. package/dist/state-machine/types.d.ts +34 -0
  108. package/dist/state-machine/types.js +15 -0
  109. package/dist/trigger/decision-trace.d.ts +41 -0
  110. package/dist/trigger/decision-trace.js +30 -0
  111. package/dist/trigger/jsonpath-matcher.d.ts +27 -0
  112. package/dist/trigger/jsonpath-matcher.js +92 -0
  113. package/dist/trigger/matcher.d.ts +29 -0
  114. package/dist/trigger/matcher.js +704 -0
  115. package/dist/trigger/trigger-event-type.d.ts +14 -0
  116. package/dist/trigger/trigger-event-type.js +66 -0
  117. package/dist/trigger/types.d.ts +524 -0
  118. package/dist/trigger/types.js +48 -0
  119. package/dist/webhook/signature.d.ts +15 -0
  120. package/dist/webhook/signature.js +32 -0
  121. package/dist/ws/close-codes.d.ts +28 -0
  122. package/dist/ws/close-codes.js +33 -0
  123. package/dist/ws/rate-limiter.d.ts +86 -0
  124. package/dist/ws/rate-limiter.js +136 -0
  125. package/dist/ws/ws-like.d.ts +12 -0
  126. package/dist/ws/ws-like.js +2 -0
  127. package/package.json +54 -6
  128. package/sbom.spdx.json +202 -0
  129. package/index.js +0 -3
@@ -0,0 +1,4068 @@
1
+ import { z } from 'zod';
2
+ /** Request full run detail (jobs + steps) from orchestrator. */
3
+ export declare const dashboardRunDetailRequestSchema: z.ZodObject<{
4
+ type: z.ZodLiteral<"dashboard.run.detail">;
5
+ requestId: z.ZodString;
6
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ type: z.ZodLiteral<"user">;
8
+ sub: z.ZodString;
9
+ }, z.core.$strip>, z.ZodObject<{
10
+ type: z.ZodLiteral<"api_key">;
11
+ keyId: z.ZodString;
12
+ ownerSub: z.ZodString;
13
+ }, z.core.$strip>, z.ZodObject<{
14
+ type: z.ZodLiteral<"service_account">;
15
+ id: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ type: z.ZodLiteral<"platform_operator">;
18
+ sub: z.ZodString;
19
+ reason: z.ZodString;
20
+ }, z.core.$strip>, z.ZodObject<{
21
+ type: z.ZodLiteral<"system">;
22
+ component: z.ZodString;
23
+ }, z.core.$strip>], "type">;
24
+ runId: z.ZodString;
25
+ }, z.core.$strip>;
26
+ /** Request step logs from orchestrator. */
27
+ export declare const dashboardStepLogsRequestSchema: z.ZodObject<{
28
+ type: z.ZodLiteral<"dashboard.step.logs">;
29
+ requestId: z.ZodString;
30
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
31
+ type: z.ZodLiteral<"user">;
32
+ sub: z.ZodString;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ type: z.ZodLiteral<"api_key">;
35
+ keyId: z.ZodString;
36
+ ownerSub: z.ZodString;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ type: z.ZodLiteral<"service_account">;
39
+ id: z.ZodString;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ type: z.ZodLiteral<"platform_operator">;
42
+ sub: z.ZodString;
43
+ reason: z.ZodString;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ type: z.ZodLiteral<"system">;
46
+ component: z.ZodString;
47
+ }, z.core.$strip>], "type">;
48
+ runId: z.ZodString;
49
+ jobId: z.ZodString;
50
+ stepIndex: z.ZodNumber;
51
+ }, z.core.$strip>;
52
+ /** Job detail within a run detail response. */
53
+ export declare const dashboardJobDetailSchema: z.ZodObject<{
54
+ jobId: z.ZodString;
55
+ jobName: z.ZodString;
56
+ status: z.ZodString;
57
+ matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
58
+ startedAt: z.ZodNullable<z.ZodNumber>;
59
+ completedAt: z.ZodNullable<z.ZodNumber>;
60
+ durationMs: z.ZodNullable<z.ZodNumber>;
61
+ agentId: z.ZodNullable<z.ZodString>;
62
+ orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ errorMessage: z.ZodNullable<z.ZodString>;
64
+ runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
65
+ outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
66
+ secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
67
+ steps: z.ZodArray<z.ZodObject<{
68
+ stepIndex: z.ZodNumber;
69
+ stepName: z.ZodString;
70
+ status: z.ZodString;
71
+ startedAt: z.ZodNullable<z.ZodNumber>;
72
+ completedAt: z.ZodNullable<z.ZodNumber>;
73
+ durationMs: z.ZodNullable<z.ZodNumber>;
74
+ exitCode: z.ZodNullable<z.ZodNumber>;
75
+ errorMessage: z.ZodNullable<z.ZodString>;
76
+ stepType: z.ZodOptional<z.ZodString>;
77
+ secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
78
+ }, z.core.$strip>>;
79
+ }, z.core.$strip>;
80
+ /** Response with full run detail (correlates to dashboard.run.detail). */
81
+ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
82
+ type: z.ZodLiteral<"dashboard.run.detail.response">;
83
+ requestId: z.ZodString;
84
+ jobs: z.ZodArray<z.ZodObject<{
85
+ jobId: z.ZodString;
86
+ jobName: z.ZodString;
87
+ status: z.ZodString;
88
+ matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
89
+ startedAt: z.ZodNullable<z.ZodNumber>;
90
+ completedAt: z.ZodNullable<z.ZodNumber>;
91
+ durationMs: z.ZodNullable<z.ZodNumber>;
92
+ agentId: z.ZodNullable<z.ZodString>;
93
+ orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ errorMessage: z.ZodNullable<z.ZodString>;
95
+ runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
96
+ outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
97
+ secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
98
+ steps: z.ZodArray<z.ZodObject<{
99
+ stepIndex: z.ZodNumber;
100
+ stepName: z.ZodString;
101
+ status: z.ZodString;
102
+ startedAt: z.ZodNullable<z.ZodNumber>;
103
+ completedAt: z.ZodNullable<z.ZodNumber>;
104
+ durationMs: z.ZodNullable<z.ZodNumber>;
105
+ exitCode: z.ZodNullable<z.ZodNumber>;
106
+ errorMessage: z.ZodNullable<z.ZodString>;
107
+ stepType: z.ZodOptional<z.ZodString>;
108
+ secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>>;
111
+ trustContext: z.ZodOptional<z.ZodObject<{
112
+ trustTier: z.ZodNullable<z.ZodEnum<{
113
+ unknown: "unknown";
114
+ trusted: "trusted";
115
+ known: "known";
116
+ }>>;
117
+ lockFileSource: z.ZodNullable<z.ZodEnum<{
118
+ head: "head";
119
+ base: "base";
120
+ }>>;
121
+ contributorUsername: z.ZodNullable<z.ZodString>;
122
+ }, z.core.$strip>>;
123
+ error: z.ZodOptional<z.ZodString>;
124
+ }, z.core.$strip>;
125
+ /** Response with step log lines (correlates to dashboard.step.logs). */
126
+ export declare const dashboardStepLogsResponseSchema: z.ZodObject<{
127
+ type: z.ZodLiteral<"dashboard.step.logs.response">;
128
+ requestId: z.ZodString;
129
+ lines: z.ZodArray<z.ZodString>;
130
+ totalLines: z.ZodNumber;
131
+ error: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strip>;
133
+ /** Request to re-run a completed run. */
134
+ export declare const runRerunRequestSchema: z.ZodObject<{
135
+ type: z.ZodLiteral<"run.rerun.request">;
136
+ requestId: z.ZodString;
137
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
138
+ type: z.ZodLiteral<"user">;
139
+ sub: z.ZodString;
140
+ }, z.core.$strip>, z.ZodObject<{
141
+ type: z.ZodLiteral<"api_key">;
142
+ keyId: z.ZodString;
143
+ ownerSub: z.ZodString;
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ type: z.ZodLiteral<"service_account">;
146
+ id: z.ZodString;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ type: z.ZodLiteral<"platform_operator">;
149
+ sub: z.ZodString;
150
+ reason: z.ZodString;
151
+ }, z.core.$strip>, z.ZodObject<{
152
+ type: z.ZodLiteral<"system">;
153
+ component: z.ZodString;
154
+ }, z.core.$strip>], "type">;
155
+ runId: z.ZodString;
156
+ routingKey: z.ZodOptional<z.ZodString>;
157
+ }, z.core.$strip>;
158
+ /** Request to manually trigger a cron-scheduled workflow. */
159
+ export declare const manualScheduleRequestSchema: z.ZodObject<{
160
+ type: z.ZodLiteral<"run.manual_schedule.request">;
161
+ requestId: z.ZodString;
162
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
163
+ type: z.ZodLiteral<"user">;
164
+ sub: z.ZodString;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ type: z.ZodLiteral<"api_key">;
167
+ keyId: z.ZodString;
168
+ ownerSub: z.ZodString;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ type: z.ZodLiteral<"service_account">;
171
+ id: z.ZodString;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ type: z.ZodLiteral<"platform_operator">;
174
+ sub: z.ZodString;
175
+ reason: z.ZodString;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ type: z.ZodLiteral<"system">;
178
+ component: z.ZodString;
179
+ }, z.core.$strip>], "type">;
180
+ registrationId: z.ZodString;
181
+ }, z.core.$strip>;
182
+ /** Request to cancel a running run. */
183
+ export declare const runCancelRequestSchema: z.ZodObject<{
184
+ type: z.ZodLiteral<"run.cancel.request">;
185
+ requestId: z.ZodString;
186
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
187
+ type: z.ZodLiteral<"user">;
188
+ sub: z.ZodString;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ type: z.ZodLiteral<"api_key">;
191
+ keyId: z.ZodString;
192
+ ownerSub: z.ZodString;
193
+ }, z.core.$strip>, z.ZodObject<{
194
+ type: z.ZodLiteral<"service_account">;
195
+ id: z.ZodString;
196
+ }, z.core.$strip>, z.ZodObject<{
197
+ type: z.ZodLiteral<"platform_operator">;
198
+ sub: z.ZodString;
199
+ reason: z.ZodString;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ type: z.ZodLiteral<"system">;
202
+ component: z.ZodString;
203
+ }, z.core.$strip>], "type">;
204
+ runId: z.ZodString;
205
+ force: z.ZodOptional<z.ZodBoolean>;
206
+ }, z.core.$strip>;
207
+ /** Request the original webhook payload for a run. */
208
+ export declare const dashboardPayloadRequestSchema: z.ZodObject<{
209
+ type: z.ZodLiteral<"dashboard.payload">;
210
+ requestId: z.ZodString;
211
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
212
+ type: z.ZodLiteral<"user">;
213
+ sub: z.ZodString;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ type: z.ZodLiteral<"api_key">;
216
+ keyId: z.ZodString;
217
+ ownerSub: z.ZodString;
218
+ }, z.core.$strip>, z.ZodObject<{
219
+ type: z.ZodLiteral<"service_account">;
220
+ id: z.ZodString;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ type: z.ZodLiteral<"platform_operator">;
223
+ sub: z.ZodString;
224
+ reason: z.ZodString;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ type: z.ZodLiteral<"system">;
227
+ component: z.ZodString;
228
+ }, z.core.$strip>], "type">;
229
+ runId: z.ZodString;
230
+ }, z.core.$strip>;
231
+ /** Lineage response containing all re-runs of a root run. */
232
+ export declare const runLineageResponseSchema: z.ZodObject<{
233
+ reruns: z.ZodArray<z.ZodObject<{
234
+ runId: z.ZodString;
235
+ status: z.ZodString;
236
+ createdAt: z.ZodCoercedString<unknown>;
237
+ }, z.core.$strip>>;
238
+ }, z.core.$strip>;
239
+ /** Single delivery row in the list response (orchestrator-side projection). */
240
+ export declare const eventLogListItemSchema: z.ZodObject<{
241
+ deliveryId: z.ZodString;
242
+ routingKey: z.ZodString;
243
+ event: z.ZodString;
244
+ action: z.ZodNullable<z.ZodString>;
245
+ source: z.ZodEnum<{
246
+ relay: "relay";
247
+ direct: "direct";
248
+ }>;
249
+ provider: z.ZodString;
250
+ repoIdentifier: z.ZodNullable<z.ZodString>;
251
+ ref: z.ZodNullable<z.ZodString>;
252
+ status: z.ZodEnum<{
253
+ failed: "failed";
254
+ received: "received";
255
+ processed: "processed";
256
+ duplicate: "duplicate";
257
+ lockfile_missing: "lockfile_missing";
258
+ }>;
259
+ matchedCount: z.ZodNumber;
260
+ runId: z.ZodNullable<z.ZodString>;
261
+ errorMessage: z.ZodNullable<z.ZodString>;
262
+ receivedAt: z.ZodString;
263
+ payloadOmitted: z.ZodBoolean;
264
+ payloadOmittedReason: z.ZodNullable<z.ZodEnum<{
265
+ size_exceeded: "size_exceeded";
266
+ storage_failed: "storage_failed";
267
+ }>>;
268
+ payloadSizeBytes: z.ZodNumber;
269
+ payloadHash: z.ZodString;
270
+ }, z.core.$strip>;
271
+ /** Request a paginated list of inbound webhook deliveries from the orchestrator. */
272
+ export declare const dashboardEventLogListRequestSchema: z.ZodObject<{
273
+ type: z.ZodLiteral<"dashboard.event-log.list">;
274
+ requestId: z.ZodString;
275
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
276
+ type: z.ZodLiteral<"user">;
277
+ sub: z.ZodString;
278
+ }, z.core.$strip>, z.ZodObject<{
279
+ type: z.ZodLiteral<"api_key">;
280
+ keyId: z.ZodString;
281
+ ownerSub: z.ZodString;
282
+ }, z.core.$strip>, z.ZodObject<{
283
+ type: z.ZodLiteral<"service_account">;
284
+ id: z.ZodString;
285
+ }, z.core.$strip>, z.ZodObject<{
286
+ type: z.ZodLiteral<"platform_operator">;
287
+ sub: z.ZodString;
288
+ reason: z.ZodString;
289
+ }, z.core.$strip>, z.ZodObject<{
290
+ type: z.ZodLiteral<"system">;
291
+ component: z.ZodString;
292
+ }, z.core.$strip>], "type">;
293
+ orgId: z.ZodString;
294
+ routingKey: z.ZodOptional<z.ZodString>;
295
+ event: z.ZodOptional<z.ZodString>;
296
+ status: z.ZodOptional<z.ZodEnum<{
297
+ failed: "failed";
298
+ received: "received";
299
+ processed: "processed";
300
+ duplicate: "duplicate";
301
+ lockfile_missing: "lockfile_missing";
302
+ }>>;
303
+ fromTimestamp: z.ZodOptional<z.ZodString>;
304
+ toTimestamp: z.ZodOptional<z.ZodString>;
305
+ deliveryId: z.ZodOptional<z.ZodString>;
306
+ limit: z.ZodOptional<z.ZodNumber>;
307
+ cursor: z.ZodOptional<z.ZodString>;
308
+ }, z.core.$strip>;
309
+ /** Response with the page of deliveries + next-page cursor (null = end). */
310
+ declare const dashboardEventLogListResponseSchema: z.ZodObject<{
311
+ type: z.ZodLiteral<"dashboard.event-log.list.response">;
312
+ requestId: z.ZodString;
313
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
314
+ deliveryId: z.ZodString;
315
+ routingKey: z.ZodString;
316
+ event: z.ZodString;
317
+ action: z.ZodNullable<z.ZodString>;
318
+ source: z.ZodEnum<{
319
+ relay: "relay";
320
+ direct: "direct";
321
+ }>;
322
+ provider: z.ZodString;
323
+ repoIdentifier: z.ZodNullable<z.ZodString>;
324
+ ref: z.ZodNullable<z.ZodString>;
325
+ status: z.ZodEnum<{
326
+ failed: "failed";
327
+ received: "received";
328
+ processed: "processed";
329
+ duplicate: "duplicate";
330
+ lockfile_missing: "lockfile_missing";
331
+ }>;
332
+ matchedCount: z.ZodNumber;
333
+ runId: z.ZodNullable<z.ZodString>;
334
+ errorMessage: z.ZodNullable<z.ZodString>;
335
+ receivedAt: z.ZodString;
336
+ payloadOmitted: z.ZodBoolean;
337
+ payloadOmittedReason: z.ZodNullable<z.ZodEnum<{
338
+ size_exceeded: "size_exceeded";
339
+ storage_failed: "storage_failed";
340
+ }>>;
341
+ payloadSizeBytes: z.ZodNumber;
342
+ payloadHash: z.ZodString;
343
+ }, z.core.$strip>>>;
344
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ error: z.ZodOptional<z.ZodString>;
346
+ }, z.core.$strip>;
347
+ /** Request the full detail (incl. payload) of a single delivery. */
348
+ export declare const dashboardEventLogDetailRequestSchema: z.ZodObject<{
349
+ type: z.ZodLiteral<"dashboard.event-log.detail">;
350
+ requestId: z.ZodString;
351
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
352
+ type: z.ZodLiteral<"user">;
353
+ sub: z.ZodString;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ type: z.ZodLiteral<"api_key">;
356
+ keyId: z.ZodString;
357
+ ownerSub: z.ZodString;
358
+ }, z.core.$strip>, z.ZodObject<{
359
+ type: z.ZodLiteral<"service_account">;
360
+ id: z.ZodString;
361
+ }, z.core.$strip>, z.ZodObject<{
362
+ type: z.ZodLiteral<"platform_operator">;
363
+ sub: z.ZodString;
364
+ reason: z.ZodString;
365
+ }, z.core.$strip>, z.ZodObject<{
366
+ type: z.ZodLiteral<"system">;
367
+ component: z.ZodString;
368
+ }, z.core.$strip>], "type">;
369
+ orgId: z.ZodString;
370
+ deliveryId: z.ZodString;
371
+ routingKey: z.ZodOptional<z.ZodString>;
372
+ }, z.core.$strip>;
373
+ /** Response with the orchestrator-side projection.
374
+ * The webhook body is NOT included here — it streams over the chunked
375
+ * transport (see `dashboardEventLogPayloadStreamRequestSchema`). When
376
+ * `payloadOmitted=true` the `payloadOmittedReason` field on the item carries
377
+ * the cause; the dashboard renders the empty state without issuing a
378
+ * payload-stream request in that case. */
379
+ declare const dashboardEventLogDetailResponseSchema: z.ZodObject<{
380
+ type: z.ZodLiteral<"dashboard.event-log.detail.response">;
381
+ requestId: z.ZodString;
382
+ item: z.ZodOptional<z.ZodObject<{
383
+ deliveryId: z.ZodString;
384
+ routingKey: z.ZodString;
385
+ event: z.ZodString;
386
+ action: z.ZodNullable<z.ZodString>;
387
+ source: z.ZodEnum<{
388
+ relay: "relay";
389
+ direct: "direct";
390
+ }>;
391
+ provider: z.ZodString;
392
+ repoIdentifier: z.ZodNullable<z.ZodString>;
393
+ ref: z.ZodNullable<z.ZodString>;
394
+ status: z.ZodEnum<{
395
+ failed: "failed";
396
+ received: "received";
397
+ processed: "processed";
398
+ duplicate: "duplicate";
399
+ lockfile_missing: "lockfile_missing";
400
+ }>;
401
+ matchedCount: z.ZodNumber;
402
+ runId: z.ZodNullable<z.ZodString>;
403
+ errorMessage: z.ZodNullable<z.ZodString>;
404
+ receivedAt: z.ZodString;
405
+ payloadOmitted: z.ZodBoolean;
406
+ payloadOmittedReason: z.ZodNullable<z.ZodEnum<{
407
+ size_exceeded: "size_exceeded";
408
+ storage_failed: "storage_failed";
409
+ }>>;
410
+ payloadSizeBytes: z.ZodNumber;
411
+ payloadHash: z.ZodString;
412
+ }, z.core.$strip>>;
413
+ error: z.ZodOptional<z.ZodString>;
414
+ }, z.core.$strip>;
415
+ /**
416
+ * Reasons a chunked event-log payload stream may terminate without a body.
417
+ * The terminal chunk carries `isLast=true` plus one of these codes in
418
+ * `error`. A successful stream ends with `isLast=true` and no `error`.
419
+ *
420
+ * - `payload_unavailable`: orchestrator row exists but `payload_omitted=true`
421
+ * or `payload_key=null`. The dashboard renders the existing empty state
422
+ * (size cap exceeded / object-storage write failed at ingress).
423
+ * - `not_found`: no orchestrator row matched the deliveryId. The dashboard
424
+ * shows the existing "delivery not found" message.
425
+ * - `read_failed`: orchestrator could not read or gunzip the body.
426
+ * - `forbidden`: caller lacks `event_log:read_payload`. Platform synthesizes
427
+ * this code on its side and never forwards the upstream request.
428
+ * - `orch_stream_timeout`: Platform observed no inter-chunk activity for
429
+ * `KICI_EVENT_LOG_PAYLOAD_STREAM_IDLE_MS` and synthesized a terminal
430
+ * chunk to evict the stream entry.
431
+ * - `orchestrator_unavailable`: Platform could not select an orchestrator
432
+ * connection for the request (synthesized on Platform side).
433
+ */
434
+ export declare const EventLogPayloadStreamError: z.ZodEnum<{
435
+ payload_unavailable: "payload_unavailable";
436
+ not_found: "not_found";
437
+ read_failed: "read_failed";
438
+ forbidden: "forbidden";
439
+ orch_stream_timeout: "orch_stream_timeout";
440
+ orchestrator_unavailable: "orchestrator_unavailable";
441
+ }>;
442
+ export type EventLogPayloadStreamError = z.infer<typeof EventLogPayloadStreamError>;
443
+ /** Platform → orchestrator: begin streaming the body for a delivery. */
444
+ export declare const dashboardEventLogPayloadStreamRequestSchema: z.ZodObject<{
445
+ type: z.ZodLiteral<"dashboard.event-log.payload.stream">;
446
+ requestId: z.ZodString;
447
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
448
+ type: z.ZodLiteral<"user">;
449
+ sub: z.ZodString;
450
+ }, z.core.$strip>, z.ZodObject<{
451
+ type: z.ZodLiteral<"api_key">;
452
+ keyId: z.ZodString;
453
+ ownerSub: z.ZodString;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ type: z.ZodLiteral<"service_account">;
456
+ id: z.ZodString;
457
+ }, z.core.$strip>, z.ZodObject<{
458
+ type: z.ZodLiteral<"platform_operator">;
459
+ sub: z.ZodString;
460
+ reason: z.ZodString;
461
+ }, z.core.$strip>, z.ZodObject<{
462
+ type: z.ZodLiteral<"system">;
463
+ component: z.ZodString;
464
+ }, z.core.$strip>], "type">;
465
+ orgId: z.ZodString;
466
+ deliveryId: z.ZodString;
467
+ routingKey: z.ZodOptional<z.ZodString>;
468
+ }, z.core.$strip>;
469
+ /**
470
+ * Orchestrator → Platform / Platform → browser: one chunk of the body.
471
+ *
472
+ * - `seq` is 0-based and monotonic. The orchestrator emits chunks strictly
473
+ * in order on a single WS connection, which guarantees in-order delivery.
474
+ * - `data` is base64-encoded UTF-8 bytes. Base64 sidesteps mid-multibyte
475
+ * slicing concerns when chunking by raw byte count.
476
+ * - `isLast=true` ends the stream. The terminal chunk may carry an `error`
477
+ * code (and `data` is empty) when streaming aborted before sending any
478
+ * body bytes; or it may carry the final body slice (with `error`
479
+ * undefined).
480
+ * - `totalBytes` is included only on `seq=0` so the dashboard can render
481
+ * "N KB / M KB" progress.
482
+ */
483
+ export declare const dashboardEventLogPayloadChunkSchema: z.ZodObject<{
484
+ type: z.ZodLiteral<"dashboard.event-log.payload.chunk">;
485
+ requestId: z.ZodString;
486
+ seq: z.ZodNumber;
487
+ data: z.ZodString;
488
+ isLast: z.ZodBoolean;
489
+ error: z.ZodOptional<z.ZodEnum<{
490
+ payload_unavailable: "payload_unavailable";
491
+ not_found: "not_found";
492
+ read_failed: "read_failed";
493
+ forbidden: "forbidden";
494
+ orch_stream_timeout: "orch_stream_timeout";
495
+ orchestrator_unavailable: "orchestrator_unavailable";
496
+ }>>;
497
+ totalBytes: z.ZodOptional<z.ZodNumber>;
498
+ }, z.core.$strip>;
499
+ /**
500
+ * Platform → browser: forwarded chunk. Same shape as the orchestrator-side
501
+ * message, just renamed to keep the `dashboard.*` family for the
502
+ * Platform↔orchestrator hop and align with the browser-facing `log.lines` /
503
+ * `run.status` naming convention.
504
+ */
505
+ export declare const browserEventLogPayloadChunkSchema: z.ZodObject<{
506
+ type: z.ZodLiteral<"event-log.payload.chunk">;
507
+ requestId: z.ZodString;
508
+ seq: z.ZodNumber;
509
+ data: z.ZodString;
510
+ isLast: z.ZodBoolean;
511
+ error: z.ZodOptional<z.ZodEnum<{
512
+ payload_unavailable: "payload_unavailable";
513
+ not_found: "not_found";
514
+ read_failed: "read_failed";
515
+ forbidden: "forbidden";
516
+ orch_stream_timeout: "orch_stream_timeout";
517
+ orchestrator_unavailable: "orchestrator_unavailable";
518
+ }>>;
519
+ totalBytes: z.ZodOptional<z.ZodNumber>;
520
+ }, z.core.$strip>;
521
+ /** List all environments for the org. */
522
+ export declare const envListRequestSchema: z.ZodObject<{
523
+ type: z.ZodLiteral<"dashboard.environments.list">;
524
+ requestId: z.ZodString;
525
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
526
+ type: z.ZodLiteral<"user">;
527
+ sub: z.ZodString;
528
+ }, z.core.$strip>, z.ZodObject<{
529
+ type: z.ZodLiteral<"api_key">;
530
+ keyId: z.ZodString;
531
+ ownerSub: z.ZodString;
532
+ }, z.core.$strip>, z.ZodObject<{
533
+ type: z.ZodLiteral<"service_account">;
534
+ id: z.ZodString;
535
+ }, z.core.$strip>, z.ZodObject<{
536
+ type: z.ZodLiteral<"platform_operator">;
537
+ sub: z.ZodString;
538
+ reason: z.ZodString;
539
+ }, z.core.$strip>, z.ZodObject<{
540
+ type: z.ZodLiteral<"system">;
541
+ component: z.ZodString;
542
+ }, z.core.$strip>], "type">;
543
+ }, z.core.$strip>;
544
+ declare const envListResponseSchema: z.ZodObject<{
545
+ type: z.ZodLiteral<"dashboard.environments.list.response">;
546
+ requestId: z.ZodString;
547
+ environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
548
+ id: z.ZodString;
549
+ name: z.ZodString;
550
+ type: z.ZodEnum<{
551
+ fixed: "fixed";
552
+ glob: "glob";
553
+ }>;
554
+ globPattern: z.ZodNullable<z.ZodString>;
555
+ enabled: z.ZodBoolean;
556
+ createdAt: z.ZodCoercedString<unknown>;
557
+ updatedAt: z.ZodCoercedString<unknown>;
558
+ }, z.core.$strip>>>;
559
+ error: z.ZodOptional<z.ZodString>;
560
+ }, z.core.$strip>;
561
+ /** Get a single environment by ID. */
562
+ export declare const envGetRequestSchema: z.ZodObject<{
563
+ type: z.ZodLiteral<"dashboard.environments.get">;
564
+ requestId: z.ZodString;
565
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
566
+ type: z.ZodLiteral<"user">;
567
+ sub: z.ZodString;
568
+ }, z.core.$strip>, z.ZodObject<{
569
+ type: z.ZodLiteral<"api_key">;
570
+ keyId: z.ZodString;
571
+ ownerSub: z.ZodString;
572
+ }, z.core.$strip>, z.ZodObject<{
573
+ type: z.ZodLiteral<"service_account">;
574
+ id: z.ZodString;
575
+ }, z.core.$strip>, z.ZodObject<{
576
+ type: z.ZodLiteral<"platform_operator">;
577
+ sub: z.ZodString;
578
+ reason: z.ZodString;
579
+ }, z.core.$strip>, z.ZodObject<{
580
+ type: z.ZodLiteral<"system">;
581
+ component: z.ZodString;
582
+ }, z.core.$strip>], "type">;
583
+ environmentId: z.ZodString;
584
+ }, z.core.$strip>;
585
+ declare const envGetResponseSchema: z.ZodObject<{
586
+ type: z.ZodLiteral<"dashboard.environments.get.response">;
587
+ requestId: z.ZodString;
588
+ environment: z.ZodOptional<z.ZodObject<{
589
+ id: z.ZodString;
590
+ name: z.ZodString;
591
+ type: z.ZodEnum<{
592
+ fixed: "fixed";
593
+ glob: "glob";
594
+ }>;
595
+ globPattern: z.ZodNullable<z.ZodString>;
596
+ branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
597
+ concurrencyLimit: z.ZodNullable<z.ZodNumber>;
598
+ concurrencyStrategy: z.ZodNullable<z.ZodEnum<{
599
+ queue: "queue";
600
+ "cancel-pending": "cancel-pending";
601
+ }>>;
602
+ requiredReviewers: z.ZodNullable<z.ZodNumber>;
603
+ waitTimerSeconds: z.ZodNullable<z.ZodNumber>;
604
+ holdExpirySeconds: z.ZodNullable<z.ZodNumber>;
605
+ enabled: z.ZodBoolean;
606
+ createdAt: z.ZodCoercedString<unknown>;
607
+ updatedAt: z.ZodCoercedString<unknown>;
608
+ }, z.core.$strip>>;
609
+ error: z.ZodOptional<z.ZodString>;
610
+ }, z.core.$strip>;
611
+ /** Create a new environment. */
612
+ export declare const envCreateRequestSchema: z.ZodObject<{
613
+ type: z.ZodLiteral<"dashboard.environments.create">;
614
+ requestId: z.ZodString;
615
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
616
+ type: z.ZodLiteral<"user">;
617
+ sub: z.ZodString;
618
+ }, z.core.$strip>, z.ZodObject<{
619
+ type: z.ZodLiteral<"api_key">;
620
+ keyId: z.ZodString;
621
+ ownerSub: z.ZodString;
622
+ }, z.core.$strip>, z.ZodObject<{
623
+ type: z.ZodLiteral<"service_account">;
624
+ id: z.ZodString;
625
+ }, z.core.$strip>, z.ZodObject<{
626
+ type: z.ZodLiteral<"platform_operator">;
627
+ sub: z.ZodString;
628
+ reason: z.ZodString;
629
+ }, z.core.$strip>, z.ZodObject<{
630
+ type: z.ZodLiteral<"system">;
631
+ component: z.ZodString;
632
+ }, z.core.$strip>], "type">;
633
+ name: z.ZodString;
634
+ envType: z.ZodEnum<{
635
+ fixed: "fixed";
636
+ glob: "glob";
637
+ }>;
638
+ globPattern: z.ZodOptional<z.ZodString>;
639
+ branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
640
+ concurrencyLimit: z.ZodOptional<z.ZodNumber>;
641
+ concurrencyStrategy: z.ZodOptional<z.ZodEnum<{
642
+ queue: "queue";
643
+ "cancel-pending": "cancel-pending";
644
+ }>>;
645
+ requiredReviewers: z.ZodOptional<z.ZodNumber>;
646
+ waitTimerSeconds: z.ZodOptional<z.ZodNumber>;
647
+ holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
648
+ enabled: z.ZodOptional<z.ZodBoolean>;
649
+ }, z.core.$strip>;
650
+ /** Update an existing environment. */
651
+ export declare const envUpdateRequestSchema: z.ZodObject<{
652
+ type: z.ZodLiteral<"dashboard.environments.update">;
653
+ requestId: z.ZodString;
654
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
655
+ type: z.ZodLiteral<"user">;
656
+ sub: z.ZodString;
657
+ }, z.core.$strip>, z.ZodObject<{
658
+ type: z.ZodLiteral<"api_key">;
659
+ keyId: z.ZodString;
660
+ ownerSub: z.ZodString;
661
+ }, z.core.$strip>, z.ZodObject<{
662
+ type: z.ZodLiteral<"service_account">;
663
+ id: z.ZodString;
664
+ }, z.core.$strip>, z.ZodObject<{
665
+ type: z.ZodLiteral<"platform_operator">;
666
+ sub: z.ZodString;
667
+ reason: z.ZodString;
668
+ }, z.core.$strip>, z.ZodObject<{
669
+ type: z.ZodLiteral<"system">;
670
+ component: z.ZodString;
671
+ }, z.core.$strip>], "type">;
672
+ environmentId: z.ZodString;
673
+ updates: z.ZodObject<{
674
+ name: z.ZodOptional<z.ZodString>;
675
+ envType: z.ZodOptional<z.ZodEnum<{
676
+ fixed: "fixed";
677
+ glob: "glob";
678
+ }>>;
679
+ globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
680
+ branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
681
+ concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
682
+ concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
683
+ queue: "queue";
684
+ "cancel-pending": "cancel-pending";
685
+ }>>>;
686
+ requiredReviewers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
687
+ waitTimerSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
688
+ holdExpirySeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
689
+ enabled: z.ZodOptional<z.ZodBoolean>;
690
+ }, z.core.$strip>;
691
+ }, z.core.$strip>;
692
+ /** Delete an environment. */
693
+ export declare const envDeleteRequestSchema: z.ZodObject<{
694
+ type: z.ZodLiteral<"dashboard.environments.delete">;
695
+ requestId: z.ZodString;
696
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
697
+ type: z.ZodLiteral<"user">;
698
+ sub: z.ZodString;
699
+ }, z.core.$strip>, z.ZodObject<{
700
+ type: z.ZodLiteral<"api_key">;
701
+ keyId: z.ZodString;
702
+ ownerSub: z.ZodString;
703
+ }, z.core.$strip>, z.ZodObject<{
704
+ type: z.ZodLiteral<"service_account">;
705
+ id: z.ZodString;
706
+ }, z.core.$strip>, z.ZodObject<{
707
+ type: z.ZodLiteral<"platform_operator">;
708
+ sub: z.ZodString;
709
+ reason: z.ZodString;
710
+ }, z.core.$strip>, z.ZodObject<{
711
+ type: z.ZodLiteral<"system">;
712
+ component: z.ZodString;
713
+ }, z.core.$strip>], "type">;
714
+ environmentId: z.ZodString;
715
+ }, z.core.$strip>;
716
+ /** List variables for an environment. */
717
+ export declare const envVarsListRequestSchema: z.ZodObject<{
718
+ type: z.ZodLiteral<"dashboard.environments.variables.list">;
719
+ requestId: z.ZodString;
720
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
721
+ type: z.ZodLiteral<"user">;
722
+ sub: z.ZodString;
723
+ }, z.core.$strip>, z.ZodObject<{
724
+ type: z.ZodLiteral<"api_key">;
725
+ keyId: z.ZodString;
726
+ ownerSub: z.ZodString;
727
+ }, z.core.$strip>, z.ZodObject<{
728
+ type: z.ZodLiteral<"service_account">;
729
+ id: z.ZodString;
730
+ }, z.core.$strip>, z.ZodObject<{
731
+ type: z.ZodLiteral<"platform_operator">;
732
+ sub: z.ZodString;
733
+ reason: z.ZodString;
734
+ }, z.core.$strip>, z.ZodObject<{
735
+ type: z.ZodLiteral<"system">;
736
+ component: z.ZodString;
737
+ }, z.core.$strip>], "type">;
738
+ environmentId: z.ZodString;
739
+ }, z.core.$strip>;
740
+ declare const envVarsListResponseSchema: z.ZodObject<{
741
+ type: z.ZodLiteral<"dashboard.environments.variables.list.response">;
742
+ requestId: z.ZodString;
743
+ variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
744
+ key: z.ZodString;
745
+ value: z.ZodString;
746
+ locked: z.ZodBoolean;
747
+ }, z.core.$strip>>>;
748
+ error: z.ZodOptional<z.ZodString>;
749
+ }, z.core.$strip>;
750
+ /** Set (create or update) a variable on an environment. */
751
+ export declare const envVarSetRequestSchema: z.ZodObject<{
752
+ type: z.ZodLiteral<"dashboard.environments.variables.set">;
753
+ requestId: z.ZodString;
754
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
755
+ type: z.ZodLiteral<"user">;
756
+ sub: z.ZodString;
757
+ }, z.core.$strip>, z.ZodObject<{
758
+ type: z.ZodLiteral<"api_key">;
759
+ keyId: z.ZodString;
760
+ ownerSub: z.ZodString;
761
+ }, z.core.$strip>, z.ZodObject<{
762
+ type: z.ZodLiteral<"service_account">;
763
+ id: z.ZodString;
764
+ }, z.core.$strip>, z.ZodObject<{
765
+ type: z.ZodLiteral<"platform_operator">;
766
+ sub: z.ZodString;
767
+ reason: z.ZodString;
768
+ }, z.core.$strip>, z.ZodObject<{
769
+ type: z.ZodLiteral<"system">;
770
+ component: z.ZodString;
771
+ }, z.core.$strip>], "type">;
772
+ environmentId: z.ZodString;
773
+ key: z.ZodString;
774
+ value: z.ZodString;
775
+ locked: z.ZodOptional<z.ZodBoolean>;
776
+ }, z.core.$strip>;
777
+ /** Delete a variable from an environment. */
778
+ export declare const envVarDeleteRequestSchema: z.ZodObject<{
779
+ type: z.ZodLiteral<"dashboard.environments.variables.delete">;
780
+ requestId: z.ZodString;
781
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
782
+ type: z.ZodLiteral<"user">;
783
+ sub: z.ZodString;
784
+ }, z.core.$strip>, z.ZodObject<{
785
+ type: z.ZodLiteral<"api_key">;
786
+ keyId: z.ZodString;
787
+ ownerSub: z.ZodString;
788
+ }, z.core.$strip>, z.ZodObject<{
789
+ type: z.ZodLiteral<"service_account">;
790
+ id: z.ZodString;
791
+ }, z.core.$strip>, z.ZodObject<{
792
+ type: z.ZodLiteral<"platform_operator">;
793
+ sub: z.ZodString;
794
+ reason: z.ZodString;
795
+ }, z.core.$strip>, z.ZodObject<{
796
+ type: z.ZodLiteral<"system">;
797
+ component: z.ZodString;
798
+ }, z.core.$strip>], "type">;
799
+ environmentId: z.ZodString;
800
+ key: z.ZodString;
801
+ }, z.core.$strip>;
802
+ /** List source overrides for an environment + routing key. */
803
+ export declare const envSourceOverridesListRequestSchema: z.ZodObject<{
804
+ type: z.ZodLiteral<"dashboard.environments.source-overrides.list">;
805
+ requestId: z.ZodString;
806
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
807
+ type: z.ZodLiteral<"user">;
808
+ sub: z.ZodString;
809
+ }, z.core.$strip>, z.ZodObject<{
810
+ type: z.ZodLiteral<"api_key">;
811
+ keyId: z.ZodString;
812
+ ownerSub: z.ZodString;
813
+ }, z.core.$strip>, z.ZodObject<{
814
+ type: z.ZodLiteral<"service_account">;
815
+ id: z.ZodString;
816
+ }, z.core.$strip>, z.ZodObject<{
817
+ type: z.ZodLiteral<"platform_operator">;
818
+ sub: z.ZodString;
819
+ reason: z.ZodString;
820
+ }, z.core.$strip>, z.ZodObject<{
821
+ type: z.ZodLiteral<"system">;
822
+ component: z.ZodString;
823
+ }, z.core.$strip>], "type">;
824
+ environmentId: z.ZodString;
825
+ routingKey: z.ZodString;
826
+ }, z.core.$strip>;
827
+ /** Set a source override variable. */
828
+ export declare const envSourceOverrideSetRequestSchema: z.ZodObject<{
829
+ type: z.ZodLiteral<"dashboard.environments.source-overrides.set">;
830
+ requestId: z.ZodString;
831
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
832
+ type: z.ZodLiteral<"user">;
833
+ sub: z.ZodString;
834
+ }, z.core.$strip>, z.ZodObject<{
835
+ type: z.ZodLiteral<"api_key">;
836
+ keyId: z.ZodString;
837
+ ownerSub: z.ZodString;
838
+ }, z.core.$strip>, z.ZodObject<{
839
+ type: z.ZodLiteral<"service_account">;
840
+ id: z.ZodString;
841
+ }, z.core.$strip>, z.ZodObject<{
842
+ type: z.ZodLiteral<"platform_operator">;
843
+ sub: z.ZodString;
844
+ reason: z.ZodString;
845
+ }, z.core.$strip>, z.ZodObject<{
846
+ type: z.ZodLiteral<"system">;
847
+ component: z.ZodString;
848
+ }, z.core.$strip>], "type">;
849
+ environmentId: z.ZodString;
850
+ routingKey: z.ZodString;
851
+ key: z.ZodString;
852
+ value: z.ZodString;
853
+ }, z.core.$strip>;
854
+ /** Delete a source override variable. */
855
+ export declare const envSourceOverrideDeleteRequestSchema: z.ZodObject<{
856
+ type: z.ZodLiteral<"dashboard.environments.source-overrides.delete">;
857
+ requestId: z.ZodString;
858
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
859
+ type: z.ZodLiteral<"user">;
860
+ sub: z.ZodString;
861
+ }, z.core.$strip>, z.ZodObject<{
862
+ type: z.ZodLiteral<"api_key">;
863
+ keyId: z.ZodString;
864
+ ownerSub: z.ZodString;
865
+ }, z.core.$strip>, z.ZodObject<{
866
+ type: z.ZodLiteral<"service_account">;
867
+ id: z.ZodString;
868
+ }, z.core.$strip>, z.ZodObject<{
869
+ type: z.ZodLiteral<"platform_operator">;
870
+ sub: z.ZodString;
871
+ reason: z.ZodString;
872
+ }, z.core.$strip>, z.ZodObject<{
873
+ type: z.ZodLiteral<"system">;
874
+ component: z.ZodString;
875
+ }, z.core.$strip>], "type">;
876
+ environmentId: z.ZodString;
877
+ routingKey: z.ZodString;
878
+ key: z.ZodString;
879
+ }, z.core.$strip>;
880
+ /** List bindings for an environment. */
881
+ export declare const envBindingsListRequestSchema: z.ZodObject<{
882
+ type: z.ZodLiteral<"dashboard.environments.bindings.list">;
883
+ requestId: z.ZodString;
884
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
885
+ type: z.ZodLiteral<"user">;
886
+ sub: z.ZodString;
887
+ }, z.core.$strip>, z.ZodObject<{
888
+ type: z.ZodLiteral<"api_key">;
889
+ keyId: z.ZodString;
890
+ ownerSub: z.ZodString;
891
+ }, z.core.$strip>, z.ZodObject<{
892
+ type: z.ZodLiteral<"service_account">;
893
+ id: z.ZodString;
894
+ }, z.core.$strip>, z.ZodObject<{
895
+ type: z.ZodLiteral<"platform_operator">;
896
+ sub: z.ZodString;
897
+ reason: z.ZodString;
898
+ }, z.core.$strip>, z.ZodObject<{
899
+ type: z.ZodLiteral<"system">;
900
+ component: z.ZodString;
901
+ }, z.core.$strip>], "type">;
902
+ environmentId: z.ZodString;
903
+ }, z.core.$strip>;
904
+ /** Set bindings (scope patterns) for an environment. */
905
+ export declare const envBindingsSetRequestSchema: z.ZodObject<{
906
+ type: z.ZodLiteral<"dashboard.environments.bindings.set">;
907
+ requestId: z.ZodString;
908
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
909
+ type: z.ZodLiteral<"user">;
910
+ sub: z.ZodString;
911
+ }, z.core.$strip>, z.ZodObject<{
912
+ type: z.ZodLiteral<"api_key">;
913
+ keyId: z.ZodString;
914
+ ownerSub: z.ZodString;
915
+ }, z.core.$strip>, z.ZodObject<{
916
+ type: z.ZodLiteral<"service_account">;
917
+ id: z.ZodString;
918
+ }, z.core.$strip>, z.ZodObject<{
919
+ type: z.ZodLiteral<"platform_operator">;
920
+ sub: z.ZodString;
921
+ reason: z.ZodString;
922
+ }, z.core.$strip>, z.ZodObject<{
923
+ type: z.ZodLiteral<"system">;
924
+ component: z.ZodString;
925
+ }, z.core.$strip>], "type">;
926
+ environmentId: z.ZodString;
927
+ scopePatterns: z.ZodArray<z.ZodString>;
928
+ }, z.core.$strip>;
929
+ /** List all scoped secrets for the org. */
930
+ export declare const envSecretsListRequestSchema: z.ZodObject<{
931
+ type: z.ZodLiteral<"dashboard.environments.secrets.list">;
932
+ requestId: z.ZodString;
933
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
934
+ type: z.ZodLiteral<"user">;
935
+ sub: z.ZodString;
936
+ }, z.core.$strip>, z.ZodObject<{
937
+ type: z.ZodLiteral<"api_key">;
938
+ keyId: z.ZodString;
939
+ ownerSub: z.ZodString;
940
+ }, z.core.$strip>, z.ZodObject<{
941
+ type: z.ZodLiteral<"service_account">;
942
+ id: z.ZodString;
943
+ }, z.core.$strip>, z.ZodObject<{
944
+ type: z.ZodLiteral<"platform_operator">;
945
+ sub: z.ZodString;
946
+ reason: z.ZodString;
947
+ }, z.core.$strip>, z.ZodObject<{
948
+ type: z.ZodLiteral<"system">;
949
+ component: z.ZodString;
950
+ }, z.core.$strip>], "type">;
951
+ }, z.core.$strip>;
952
+ /** Set (create or update) a scoped secret. */
953
+ export declare const envSecretSetRequestSchema: z.ZodObject<{
954
+ type: z.ZodLiteral<"dashboard.environments.secrets.set">;
955
+ requestId: z.ZodString;
956
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
957
+ type: z.ZodLiteral<"user">;
958
+ sub: z.ZodString;
959
+ }, z.core.$strip>, z.ZodObject<{
960
+ type: z.ZodLiteral<"api_key">;
961
+ keyId: z.ZodString;
962
+ ownerSub: z.ZodString;
963
+ }, z.core.$strip>, z.ZodObject<{
964
+ type: z.ZodLiteral<"service_account">;
965
+ id: z.ZodString;
966
+ }, z.core.$strip>, z.ZodObject<{
967
+ type: z.ZodLiteral<"platform_operator">;
968
+ sub: z.ZodString;
969
+ reason: z.ZodString;
970
+ }, z.core.$strip>, z.ZodObject<{
971
+ type: z.ZodLiteral<"system">;
972
+ component: z.ZodString;
973
+ }, z.core.$strip>], "type">;
974
+ scope: z.ZodString;
975
+ key: z.ZodString;
976
+ value: z.ZodString;
977
+ }, z.core.$strip>;
978
+ /** Delete a scoped secret. */
979
+ export declare const envSecretDeleteRequestSchema: z.ZodObject<{
980
+ type: z.ZodLiteral<"dashboard.environments.secrets.delete">;
981
+ requestId: z.ZodString;
982
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
983
+ type: z.ZodLiteral<"user">;
984
+ sub: z.ZodString;
985
+ }, z.core.$strip>, z.ZodObject<{
986
+ type: z.ZodLiteral<"api_key">;
987
+ keyId: z.ZodString;
988
+ ownerSub: z.ZodString;
989
+ }, z.core.$strip>, z.ZodObject<{
990
+ type: z.ZodLiteral<"service_account">;
991
+ id: z.ZodString;
992
+ }, z.core.$strip>, z.ZodObject<{
993
+ type: z.ZodLiteral<"platform_operator">;
994
+ sub: z.ZodString;
995
+ reason: z.ZodString;
996
+ }, z.core.$strip>, z.ZodObject<{
997
+ type: z.ZodLiteral<"system">;
998
+ component: z.ZodString;
999
+ }, z.core.$strip>], "type">;
1000
+ scope: z.ZodString;
1001
+ key: z.ZodString;
1002
+ }, z.core.$strip>;
1003
+ /** Create an empty scope. */
1004
+ export declare const envSecretScopeCreateRequestSchema: z.ZodObject<{
1005
+ type: z.ZodLiteral<"dashboard.environments.secrets.scope.create">;
1006
+ requestId: z.ZodString;
1007
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1008
+ type: z.ZodLiteral<"user">;
1009
+ sub: z.ZodString;
1010
+ }, z.core.$strip>, z.ZodObject<{
1011
+ type: z.ZodLiteral<"api_key">;
1012
+ keyId: z.ZodString;
1013
+ ownerSub: z.ZodString;
1014
+ }, z.core.$strip>, z.ZodObject<{
1015
+ type: z.ZodLiteral<"service_account">;
1016
+ id: z.ZodString;
1017
+ }, z.core.$strip>, z.ZodObject<{
1018
+ type: z.ZodLiteral<"platform_operator">;
1019
+ sub: z.ZodString;
1020
+ reason: z.ZodString;
1021
+ }, z.core.$strip>, z.ZodObject<{
1022
+ type: z.ZodLiteral<"system">;
1023
+ component: z.ZodString;
1024
+ }, z.core.$strip>], "type">;
1025
+ scope: z.ZodString;
1026
+ }, z.core.$strip>;
1027
+ /** Rename a scope -- also updates all environment bindings referencing old scope. */
1028
+ export declare const envSecretScopeRenameRequestSchema: z.ZodObject<{
1029
+ type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename">;
1030
+ requestId: z.ZodString;
1031
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1032
+ type: z.ZodLiteral<"user">;
1033
+ sub: z.ZodString;
1034
+ }, z.core.$strip>, z.ZodObject<{
1035
+ type: z.ZodLiteral<"api_key">;
1036
+ keyId: z.ZodString;
1037
+ ownerSub: z.ZodString;
1038
+ }, z.core.$strip>, z.ZodObject<{
1039
+ type: z.ZodLiteral<"service_account">;
1040
+ id: z.ZodString;
1041
+ }, z.core.$strip>, z.ZodObject<{
1042
+ type: z.ZodLiteral<"platform_operator">;
1043
+ sub: z.ZodString;
1044
+ reason: z.ZodString;
1045
+ }, z.core.$strip>, z.ZodObject<{
1046
+ type: z.ZodLiteral<"system">;
1047
+ component: z.ZodString;
1048
+ }, z.core.$strip>], "type">;
1049
+ oldScope: z.ZodString;
1050
+ newScope: z.ZodString;
1051
+ }, z.core.$strip>;
1052
+ /** Delete a scope and all its secrets. Also removes environment bindings referencing this scope. */
1053
+ export declare const envSecretScopeDeleteRequestSchema: z.ZodObject<{
1054
+ type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete">;
1055
+ requestId: z.ZodString;
1056
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1057
+ type: z.ZodLiteral<"user">;
1058
+ sub: z.ZodString;
1059
+ }, z.core.$strip>, z.ZodObject<{
1060
+ type: z.ZodLiteral<"api_key">;
1061
+ keyId: z.ZodString;
1062
+ ownerSub: z.ZodString;
1063
+ }, z.core.$strip>, z.ZodObject<{
1064
+ type: z.ZodLiteral<"service_account">;
1065
+ id: z.ZodString;
1066
+ }, z.core.$strip>, z.ZodObject<{
1067
+ type: z.ZodLiteral<"platform_operator">;
1068
+ sub: z.ZodString;
1069
+ reason: z.ZodString;
1070
+ }, z.core.$strip>, z.ZodObject<{
1071
+ type: z.ZodLiteral<"system">;
1072
+ component: z.ZodString;
1073
+ }, z.core.$strip>], "type">;
1074
+ scope: z.ZodString;
1075
+ }, z.core.$strip>;
1076
+ /** Fetch runs that targeted a specific environment. */
1077
+ export declare const envHistoryRequestSchema: z.ZodObject<{
1078
+ type: z.ZodLiteral<"dashboard.environments.history">;
1079
+ requestId: z.ZodString;
1080
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1081
+ type: z.ZodLiteral<"user">;
1082
+ sub: z.ZodString;
1083
+ }, z.core.$strip>, z.ZodObject<{
1084
+ type: z.ZodLiteral<"api_key">;
1085
+ keyId: z.ZodString;
1086
+ ownerSub: z.ZodString;
1087
+ }, z.core.$strip>, z.ZodObject<{
1088
+ type: z.ZodLiteral<"service_account">;
1089
+ id: z.ZodString;
1090
+ }, z.core.$strip>, z.ZodObject<{
1091
+ type: z.ZodLiteral<"platform_operator">;
1092
+ sub: z.ZodString;
1093
+ reason: z.ZodString;
1094
+ }, z.core.$strip>, z.ZodObject<{
1095
+ type: z.ZodLiteral<"system">;
1096
+ component: z.ZodString;
1097
+ }, z.core.$strip>], "type">;
1098
+ environmentName: z.ZodString;
1099
+ limit: z.ZodOptional<z.ZodNumber>;
1100
+ offset: z.ZodOptional<z.ZodNumber>;
1101
+ }, z.core.$strip>;
1102
+ /** Status values for held runs (approval queue). */
1103
+ export declare const HeldRunStatus: z.ZodEnum<{
1104
+ pending: "pending";
1105
+ rejected: "rejected";
1106
+ approved: "approved";
1107
+ expired: "expired";
1108
+ }>;
1109
+ export type HeldRunStatus = z.infer<typeof HeldRunStatus>;
1110
+ /** Queue type for held runs. */
1111
+ export declare const HeldRunQueueType: z.ZodEnum<{
1112
+ environment: "environment";
1113
+ security: "security";
1114
+ }>;
1115
+ export type HeldRunQueueType = z.infer<typeof HeldRunQueueType>;
1116
+ /** List held runs. */
1117
+ export declare const heldRunsListRequestSchema: z.ZodObject<{
1118
+ type: z.ZodLiteral<"dashboard.held-runs.list">;
1119
+ requestId: z.ZodString;
1120
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1121
+ type: z.ZodLiteral<"user">;
1122
+ sub: z.ZodString;
1123
+ }, z.core.$strip>, z.ZodObject<{
1124
+ type: z.ZodLiteral<"api_key">;
1125
+ keyId: z.ZodString;
1126
+ ownerSub: z.ZodString;
1127
+ }, z.core.$strip>, z.ZodObject<{
1128
+ type: z.ZodLiteral<"service_account">;
1129
+ id: z.ZodString;
1130
+ }, z.core.$strip>, z.ZodObject<{
1131
+ type: z.ZodLiteral<"platform_operator">;
1132
+ sub: z.ZodString;
1133
+ reason: z.ZodString;
1134
+ }, z.core.$strip>, z.ZodObject<{
1135
+ type: z.ZodLiteral<"system">;
1136
+ component: z.ZodString;
1137
+ }, z.core.$strip>], "type">;
1138
+ status: z.ZodOptional<z.ZodEnum<{
1139
+ pending: "pending";
1140
+ rejected: "rejected";
1141
+ approved: "approved";
1142
+ expired: "expired";
1143
+ }>>;
1144
+ queueType: z.ZodOptional<z.ZodEnum<{
1145
+ environment: "environment";
1146
+ security: "security";
1147
+ }>>;
1148
+ runId: z.ZodOptional<z.ZodString>;
1149
+ }, z.core.$strip>;
1150
+ declare const heldRunsListResponseSchema: z.ZodObject<{
1151
+ type: z.ZodLiteral<"dashboard.held-runs.list.response">;
1152
+ requestId: z.ZodString;
1153
+ heldRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1154
+ id: z.ZodString;
1155
+ runId: z.ZodString;
1156
+ environmentId: z.ZodString;
1157
+ environmentName: z.ZodString;
1158
+ holdType: z.ZodString;
1159
+ queueType: z.ZodEnum<{
1160
+ environment: "environment";
1161
+ security: "security";
1162
+ }>;
1163
+ status: z.ZodEnum<{
1164
+ pending: "pending";
1165
+ rejected: "rejected";
1166
+ approved: "approved";
1167
+ expired: "expired";
1168
+ }>;
1169
+ requestedAt: z.ZodCoercedString<unknown>;
1170
+ resolvedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
1171
+ resolvedBy: z.ZodNullable<z.ZodString>;
1172
+ reason: z.ZodNullable<z.ZodString>;
1173
+ expiresAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
1174
+ contributorUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1175
+ trustTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1176
+ }, z.core.$strip>>>;
1177
+ error: z.ZodOptional<z.ZodString>;
1178
+ }, z.core.$strip>;
1179
+ /** Approve a held run. */
1180
+ export declare const heldRunApproveRequestSchema: z.ZodObject<{
1181
+ type: z.ZodLiteral<"dashboard.held-runs.approve">;
1182
+ requestId: z.ZodString;
1183
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1184
+ type: z.ZodLiteral<"user">;
1185
+ sub: z.ZodString;
1186
+ }, z.core.$strip>, z.ZodObject<{
1187
+ type: z.ZodLiteral<"api_key">;
1188
+ keyId: z.ZodString;
1189
+ ownerSub: z.ZodString;
1190
+ }, z.core.$strip>, z.ZodObject<{
1191
+ type: z.ZodLiteral<"service_account">;
1192
+ id: z.ZodString;
1193
+ }, z.core.$strip>, z.ZodObject<{
1194
+ type: z.ZodLiteral<"platform_operator">;
1195
+ sub: z.ZodString;
1196
+ reason: z.ZodString;
1197
+ }, z.core.$strip>, z.ZodObject<{
1198
+ type: z.ZodLiteral<"system">;
1199
+ component: z.ZodString;
1200
+ }, z.core.$strip>], "type">;
1201
+ heldRunId: z.ZodString;
1202
+ }, z.core.$strip>;
1203
+ /** Reject a held run. */
1204
+ export declare const heldRunRejectRequestSchema: z.ZodObject<{
1205
+ type: z.ZodLiteral<"dashboard.held-runs.reject">;
1206
+ requestId: z.ZodString;
1207
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1208
+ type: z.ZodLiteral<"user">;
1209
+ sub: z.ZodString;
1210
+ }, z.core.$strip>, z.ZodObject<{
1211
+ type: z.ZodLiteral<"api_key">;
1212
+ keyId: z.ZodString;
1213
+ ownerSub: z.ZodString;
1214
+ }, z.core.$strip>, z.ZodObject<{
1215
+ type: z.ZodLiteral<"service_account">;
1216
+ id: z.ZodString;
1217
+ }, z.core.$strip>, z.ZodObject<{
1218
+ type: z.ZodLiteral<"platform_operator">;
1219
+ sub: z.ZodString;
1220
+ reason: z.ZodString;
1221
+ }, z.core.$strip>, z.ZodObject<{
1222
+ type: z.ZodLiteral<"system">;
1223
+ component: z.ZodString;
1224
+ }, z.core.$strip>], "type">;
1225
+ heldRunId: z.ZodString;
1226
+ reason: z.ZodOptional<z.ZodString>;
1227
+ }, z.core.$strip>;
1228
+ /** Request diagnostics info (orchestrator metadata + agent list) from orchestrator. */
1229
+ export declare const dashboardDiagnosticsRequestSchema: z.ZodObject<{
1230
+ type: z.ZodLiteral<"dashboard.diagnostics">;
1231
+ requestId: z.ZodString;
1232
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1233
+ type: z.ZodLiteral<"user">;
1234
+ sub: z.ZodString;
1235
+ }, z.core.$strip>, z.ZodObject<{
1236
+ type: z.ZodLiteral<"api_key">;
1237
+ keyId: z.ZodString;
1238
+ ownerSub: z.ZodString;
1239
+ }, z.core.$strip>, z.ZodObject<{
1240
+ type: z.ZodLiteral<"service_account">;
1241
+ id: z.ZodString;
1242
+ }, z.core.$strip>, z.ZodObject<{
1243
+ type: z.ZodLiteral<"platform_operator">;
1244
+ sub: z.ZodString;
1245
+ reason: z.ZodString;
1246
+ }, z.core.$strip>, z.ZodObject<{
1247
+ type: z.ZodLiteral<"system">;
1248
+ component: z.ZodString;
1249
+ }, z.core.$strip>], "type">;
1250
+ includeAgents: z.ZodOptional<z.ZodBoolean>;
1251
+ }, z.core.$strip>;
1252
+ /** Peer orchestrator reported by coordinator in diagnostics. */
1253
+ declare const diagnosticsPeerSchema: z.ZodObject<{
1254
+ instanceId: z.ZodString;
1255
+ role: z.ZodEnum<{
1256
+ coordinator: "coordinator";
1257
+ worker: "worker";
1258
+ }>;
1259
+ connected: z.ZodBoolean;
1260
+ lastHeartbeatAt: z.ZodNumber;
1261
+ draining: z.ZodBoolean;
1262
+ agents: z.ZodArray<z.ZodObject<{
1263
+ agentId: z.ZodString;
1264
+ labels: z.ZodArray<z.ZodString>;
1265
+ platform: z.ZodString;
1266
+ arch: z.ZodString;
1267
+ activeJobs: z.ZodNumber;
1268
+ maxConcurrency: z.ZodNumber;
1269
+ }, z.core.$strip>>;
1270
+ hostname: z.ZodOptional<z.ZodString>;
1271
+ osRelease: z.ZodOptional<z.ZodString>;
1272
+ totalMemoryMb: z.ZodOptional<z.ZodNumber>;
1273
+ memoryUsedMb: z.ZodOptional<z.ZodNumber>;
1274
+ memoryAvailableMb: z.ZodOptional<z.ZodNumber>;
1275
+ cpuCount: z.ZodOptional<z.ZodNumber>;
1276
+ uptimeSeconds: z.ZodOptional<z.ZodNumber>;
1277
+ nodeVersion: z.ZodOptional<z.ZodString>;
1278
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1279
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1280
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1281
+ scalerCapacity: z.ZodOptional<z.ZodArray<z.ZodObject<{
1282
+ name: z.ZodOptional<z.ZodString>;
1283
+ type: z.ZodOptional<z.ZodString>;
1284
+ activeCount: z.ZodNumber;
1285
+ maxAgents: z.ZodNumber;
1286
+ labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
1287
+ }, z.core.$strip>>>;
1288
+ dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1289
+ name: z.ZodString;
1290
+ status: z.ZodEnum<{
1291
+ pass: "pass";
1292
+ warn: "warn";
1293
+ fail: "fail";
1294
+ }>;
1295
+ message: z.ZodNullable<z.ZodString>;
1296
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1297
+ durationMs: z.ZodOptional<z.ZodNumber>;
1298
+ }, z.core.$strip>>>;
1299
+ raftTerm: z.ZodOptional<z.ZodNumber>;
1300
+ raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1301
+ }, z.core.$strip>;
1302
+ /** Response with orchestrator metadata and connected agents. */
1303
+ export declare const dashboardDiagnosticsResponseSchema: z.ZodObject<{
1304
+ type: z.ZodLiteral<"dashboard.diagnostics.response">;
1305
+ requestId: z.ZodString;
1306
+ orchestrator: z.ZodObject<{
1307
+ version: z.ZodNullable<z.ZodString>;
1308
+ mode: z.ZodNullable<z.ZodString>;
1309
+ role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1310
+ coordinator: "coordinator";
1311
+ worker: "worker";
1312
+ }>>>;
1313
+ scalerBackends: z.ZodArray<z.ZodString>;
1314
+ runningJobs: z.ZodNumber;
1315
+ queuedJobs: z.ZodNumber;
1316
+ pendingLabelGaps: z.ZodArray<z.ZodString>;
1317
+ instanceId: z.ZodOptional<z.ZodString>;
1318
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1319
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1320
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1321
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1322
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1323
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1324
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1325
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1326
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1327
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1328
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1329
+ raftRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1330
+ follower: "follower";
1331
+ candidate: "candidate";
1332
+ leader: "leader";
1333
+ }>>>;
1334
+ raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1335
+ raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1336
+ agentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1337
+ statefulAgentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1338
+ }, z.core.$strip>;
1339
+ agents: z.ZodArray<z.ZodObject<{
1340
+ agentId: z.ZodString;
1341
+ labels: z.ZodArray<z.ZodString>;
1342
+ platform: z.ZodString;
1343
+ arch: z.ZodString;
1344
+ activeJobs: z.ZodNumber;
1345
+ maxConcurrency: z.ZodNumber;
1346
+ lastHeartbeatAt: z.ZodNumber;
1347
+ registeredAt: z.ZodNumber;
1348
+ version: z.ZodNullable<z.ZodString>;
1349
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1350
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1351
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1352
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1353
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1354
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1355
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1356
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1357
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1358
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1359
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1360
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1361
+ }, z.core.$strip>>;
1362
+ scalers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1363
+ name: z.ZodString;
1364
+ type: z.ZodString;
1365
+ maxAgents: z.ZodNumber;
1366
+ activeAgents: z.ZodNumber;
1367
+ labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
1368
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1369
+ }, z.core.$strip>>>;
1370
+ peers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1371
+ instanceId: z.ZodString;
1372
+ role: z.ZodEnum<{
1373
+ coordinator: "coordinator";
1374
+ worker: "worker";
1375
+ }>;
1376
+ connected: z.ZodBoolean;
1377
+ lastHeartbeatAt: z.ZodNumber;
1378
+ draining: z.ZodBoolean;
1379
+ agents: z.ZodArray<z.ZodObject<{
1380
+ agentId: z.ZodString;
1381
+ labels: z.ZodArray<z.ZodString>;
1382
+ platform: z.ZodString;
1383
+ arch: z.ZodString;
1384
+ activeJobs: z.ZodNumber;
1385
+ maxConcurrency: z.ZodNumber;
1386
+ }, z.core.$strip>>;
1387
+ hostname: z.ZodOptional<z.ZodString>;
1388
+ osRelease: z.ZodOptional<z.ZodString>;
1389
+ totalMemoryMb: z.ZodOptional<z.ZodNumber>;
1390
+ memoryUsedMb: z.ZodOptional<z.ZodNumber>;
1391
+ memoryAvailableMb: z.ZodOptional<z.ZodNumber>;
1392
+ cpuCount: z.ZodOptional<z.ZodNumber>;
1393
+ uptimeSeconds: z.ZodOptional<z.ZodNumber>;
1394
+ nodeVersion: z.ZodOptional<z.ZodString>;
1395
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1396
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1397
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1398
+ scalerCapacity: z.ZodOptional<z.ZodArray<z.ZodObject<{
1399
+ name: z.ZodOptional<z.ZodString>;
1400
+ type: z.ZodOptional<z.ZodString>;
1401
+ activeCount: z.ZodNumber;
1402
+ maxAgents: z.ZodNumber;
1403
+ labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
1404
+ }, z.core.$strip>>>;
1405
+ dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
1406
+ name: z.ZodString;
1407
+ status: z.ZodEnum<{
1408
+ pass: "pass";
1409
+ warn: "warn";
1410
+ fail: "fail";
1411
+ }>;
1412
+ message: z.ZodNullable<z.ZodString>;
1413
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1414
+ durationMs: z.ZodOptional<z.ZodNumber>;
1415
+ }, z.core.$strip>>>;
1416
+ raftTerm: z.ZodOptional<z.ZodNumber>;
1417
+ raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1418
+ }, z.core.$strip>>>;
1419
+ error: z.ZodOptional<z.ZodString>;
1420
+ }, z.core.$strip>;
1421
+ /** Request per-scaler capacity info from orchestrator. */
1422
+ export declare const dashboardScalerCapacityRequestSchema: z.ZodObject<{
1423
+ type: z.ZodLiteral<"dashboard.scaler.capacity">;
1424
+ requestId: z.ZodString;
1425
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1426
+ type: z.ZodLiteral<"user">;
1427
+ sub: z.ZodString;
1428
+ }, z.core.$strip>, z.ZodObject<{
1429
+ type: z.ZodLiteral<"api_key">;
1430
+ keyId: z.ZodString;
1431
+ ownerSub: z.ZodString;
1432
+ }, z.core.$strip>, z.ZodObject<{
1433
+ type: z.ZodLiteral<"service_account">;
1434
+ id: z.ZodString;
1435
+ }, z.core.$strip>, z.ZodObject<{
1436
+ type: z.ZodLiteral<"platform_operator">;
1437
+ sub: z.ZodString;
1438
+ reason: z.ZodString;
1439
+ }, z.core.$strip>, z.ZodObject<{
1440
+ type: z.ZodLiteral<"system">;
1441
+ component: z.ZodString;
1442
+ }, z.core.$strip>], "type">;
1443
+ }, z.core.$strip>;
1444
+ /** Response with per-scaler capacity data. */
1445
+ export declare const dashboardScalerCapacityResponseSchema: z.ZodObject<{
1446
+ type: z.ZodLiteral<"dashboard.scaler.capacity.response">;
1447
+ requestId: z.ZodString;
1448
+ scalers: z.ZodArray<z.ZodObject<{
1449
+ scalerType: z.ZodString;
1450
+ name: z.ZodString;
1451
+ activeAgents: z.ZodNumber;
1452
+ maxAgents: z.ZodNumber;
1453
+ history: z.ZodArray<z.ZodNumber>;
1454
+ }, z.core.$strip>>;
1455
+ error: z.ZodOptional<z.ZodString>;
1456
+ }, z.core.$strip>;
1457
+ /** Request agents for a specific scaler (or stateful agents when scalerName is null). */
1458
+ export declare const dashboardScalerAgentsRequestSchema: z.ZodObject<{
1459
+ type: z.ZodLiteral<"dashboard.scaler.agents">;
1460
+ requestId: z.ZodString;
1461
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1462
+ type: z.ZodLiteral<"user">;
1463
+ sub: z.ZodString;
1464
+ }, z.core.$strip>, z.ZodObject<{
1465
+ type: z.ZodLiteral<"api_key">;
1466
+ keyId: z.ZodString;
1467
+ ownerSub: z.ZodString;
1468
+ }, z.core.$strip>, z.ZodObject<{
1469
+ type: z.ZodLiteral<"service_account">;
1470
+ id: z.ZodString;
1471
+ }, z.core.$strip>, z.ZodObject<{
1472
+ type: z.ZodLiteral<"platform_operator">;
1473
+ sub: z.ZodString;
1474
+ reason: z.ZodString;
1475
+ }, z.core.$strip>, z.ZodObject<{
1476
+ type: z.ZodLiteral<"system">;
1477
+ component: z.ZodString;
1478
+ }, z.core.$strip>], "type">;
1479
+ scalerName: z.ZodNullable<z.ZodString>;
1480
+ }, z.core.$strip>;
1481
+ /** Response with agents for a specific scaler. */
1482
+ export declare const dashboardScalerAgentsResponseSchema: z.ZodObject<{
1483
+ type: z.ZodLiteral<"dashboard.scaler.agents.response">;
1484
+ requestId: z.ZodString;
1485
+ scalerName: z.ZodNullable<z.ZodString>;
1486
+ agents: z.ZodArray<z.ZodObject<{
1487
+ agentId: z.ZodString;
1488
+ labels: z.ZodArray<z.ZodString>;
1489
+ platform: z.ZodString;
1490
+ arch: z.ZodString;
1491
+ activeJobs: z.ZodNumber;
1492
+ maxConcurrency: z.ZodNumber;
1493
+ lastHeartbeatAt: z.ZodNumber;
1494
+ registeredAt: z.ZodNumber;
1495
+ version: z.ZodNullable<z.ZodString>;
1496
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1498
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1499
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1500
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1501
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1502
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1503
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1504
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1505
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1506
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1507
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1508
+ }, z.core.$strip>>;
1509
+ error: z.ZodOptional<z.ZodString>;
1510
+ }, z.core.$strip>;
1511
+ /** Request to disable or enable a workflow registration. */
1512
+ export declare const registrationDisableRequestSchema: z.ZodObject<{
1513
+ type: z.ZodLiteral<"dashboard.registration.disable">;
1514
+ requestId: z.ZodString;
1515
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1516
+ type: z.ZodLiteral<"user">;
1517
+ sub: z.ZodString;
1518
+ }, z.core.$strip>, z.ZodObject<{
1519
+ type: z.ZodLiteral<"api_key">;
1520
+ keyId: z.ZodString;
1521
+ ownerSub: z.ZodString;
1522
+ }, z.core.$strip>, z.ZodObject<{
1523
+ type: z.ZodLiteral<"service_account">;
1524
+ id: z.ZodString;
1525
+ }, z.core.$strip>, z.ZodObject<{
1526
+ type: z.ZodLiteral<"platform_operator">;
1527
+ sub: z.ZodString;
1528
+ reason: z.ZodString;
1529
+ }, z.core.$strip>, z.ZodObject<{
1530
+ type: z.ZodLiteral<"system">;
1531
+ component: z.ZodString;
1532
+ }, z.core.$strip>], "type">;
1533
+ registrationId: z.ZodString;
1534
+ disabled: z.ZodBoolean;
1535
+ }, z.core.$strip>;
1536
+ /** Request to delete a workflow registration. */
1537
+ export declare const registrationDeleteRequestSchema: z.ZodObject<{
1538
+ type: z.ZodLiteral<"dashboard.registration.delete">;
1539
+ requestId: z.ZodString;
1540
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1541
+ type: z.ZodLiteral<"user">;
1542
+ sub: z.ZodString;
1543
+ }, z.core.$strip>, z.ZodObject<{
1544
+ type: z.ZodLiteral<"api_key">;
1545
+ keyId: z.ZodString;
1546
+ ownerSub: z.ZodString;
1547
+ }, z.core.$strip>, z.ZodObject<{
1548
+ type: z.ZodLiteral<"service_account">;
1549
+ id: z.ZodString;
1550
+ }, z.core.$strip>, z.ZodObject<{
1551
+ type: z.ZodLiteral<"platform_operator">;
1552
+ sub: z.ZodString;
1553
+ reason: z.ZodString;
1554
+ }, z.core.$strip>, z.ZodObject<{
1555
+ type: z.ZodLiteral<"system">;
1556
+ component: z.ZodString;
1557
+ }, z.core.$strip>], "type">;
1558
+ registrationId: z.ZodString;
1559
+ cancelActiveRuns: z.ZodOptional<z.ZodBoolean>;
1560
+ }, z.core.$strip>;
1561
+ /** Request workflow registrations from orchestrator. */
1562
+ export declare const registrationsListRequestSchema: z.ZodObject<{
1563
+ type: z.ZodLiteral<"dashboard.registrations.list">;
1564
+ requestId: z.ZodString;
1565
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1566
+ type: z.ZodLiteral<"user">;
1567
+ sub: z.ZodString;
1568
+ }, z.core.$strip>, z.ZodObject<{
1569
+ type: z.ZodLiteral<"api_key">;
1570
+ keyId: z.ZodString;
1571
+ ownerSub: z.ZodString;
1572
+ }, z.core.$strip>, z.ZodObject<{
1573
+ type: z.ZodLiteral<"service_account">;
1574
+ id: z.ZodString;
1575
+ }, z.core.$strip>, z.ZodObject<{
1576
+ type: z.ZodLiteral<"platform_operator">;
1577
+ sub: z.ZodString;
1578
+ reason: z.ZodString;
1579
+ }, z.core.$strip>, z.ZodObject<{
1580
+ type: z.ZodLiteral<"system">;
1581
+ component: z.ZodString;
1582
+ }, z.core.$strip>], "type">;
1583
+ triggerType: z.ZodOptional<z.ZodString>;
1584
+ repoIdentifier: z.ZodOptional<z.ZodString>;
1585
+ }, z.core.$strip>;
1586
+ /** Single registration item in the list response. */
1587
+ export declare const registrationItemSchema: z.ZodObject<{
1588
+ id: z.ZodString;
1589
+ repoIdentifier: z.ZodString;
1590
+ workflowName: z.ZodString;
1591
+ triggerTypes: z.ZodArray<z.ZodString>;
1592
+ triggers: z.ZodArray<z.ZodUnknown>;
1593
+ lastTriggeredAt: z.ZodNullable<z.ZodString>;
1594
+ nextFireAt: z.ZodNullable<z.ZodString>;
1595
+ sourceRepos: z.ZodArray<z.ZodString>;
1596
+ createdAt: z.ZodString;
1597
+ updatedAt: z.ZodString;
1598
+ disabled: z.ZodOptional<z.ZodBoolean>;
1599
+ commitSha: z.ZodOptional<z.ZodString>;
1600
+ sourceFile: z.ZodOptional<z.ZodString>;
1601
+ source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1602
+ routingKey: z.ZodString;
1603
+ name: z.ZodNullable<z.ZodString>;
1604
+ subtype: z.ZodNullable<z.ZodEnum<{
1605
+ github_app: "github_app";
1606
+ generic_webhook: "generic_webhook";
1607
+ universal_git: "universal_git";
1608
+ internal: "internal";
1609
+ }>>;
1610
+ provider: z.ZodString;
1611
+ }, z.core.$strip>>>;
1612
+ }, z.core.$strip>;
1613
+ /** Response with workflow registrations. */
1614
+ export declare const registrationsListResponseSchema: z.ZodObject<{
1615
+ type: z.ZodLiteral<"dashboard.registrations.list.response">;
1616
+ requestId: z.ZodString;
1617
+ registrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1618
+ id: z.ZodString;
1619
+ repoIdentifier: z.ZodString;
1620
+ workflowName: z.ZodString;
1621
+ triggerTypes: z.ZodArray<z.ZodString>;
1622
+ triggers: z.ZodArray<z.ZodUnknown>;
1623
+ lastTriggeredAt: z.ZodNullable<z.ZodString>;
1624
+ nextFireAt: z.ZodNullable<z.ZodString>;
1625
+ sourceRepos: z.ZodArray<z.ZodString>;
1626
+ createdAt: z.ZodString;
1627
+ updatedAt: z.ZodString;
1628
+ disabled: z.ZodOptional<z.ZodBoolean>;
1629
+ commitSha: z.ZodOptional<z.ZodString>;
1630
+ sourceFile: z.ZodOptional<z.ZodString>;
1631
+ source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1632
+ routingKey: z.ZodString;
1633
+ name: z.ZodNullable<z.ZodString>;
1634
+ subtype: z.ZodNullable<z.ZodEnum<{
1635
+ github_app: "github_app";
1636
+ generic_webhook: "generic_webhook";
1637
+ universal_git: "universal_git";
1638
+ internal: "internal";
1639
+ }>>;
1640
+ provider: z.ZodString;
1641
+ }, z.core.$strip>>>;
1642
+ }, z.core.$strip>>>;
1643
+ registryVersion: z.ZodNumber;
1644
+ registryUpdatedAt: z.ZodString;
1645
+ error: z.ZodOptional<z.ZodString>;
1646
+ }, z.core.$strip>;
1647
+ /** Request to list all secret backends. */
1648
+ export declare const backendsListRequestSchema: z.ZodObject<{
1649
+ type: z.ZodLiteral<"dashboard.backends.list">;
1650
+ requestId: z.ZodString;
1651
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1652
+ type: z.ZodLiteral<"user">;
1653
+ sub: z.ZodString;
1654
+ }, z.core.$strip>, z.ZodObject<{
1655
+ type: z.ZodLiteral<"api_key">;
1656
+ keyId: z.ZodString;
1657
+ ownerSub: z.ZodString;
1658
+ }, z.core.$strip>, z.ZodObject<{
1659
+ type: z.ZodLiteral<"service_account">;
1660
+ id: z.ZodString;
1661
+ }, z.core.$strip>, z.ZodObject<{
1662
+ type: z.ZodLiteral<"platform_operator">;
1663
+ sub: z.ZodString;
1664
+ reason: z.ZodString;
1665
+ }, z.core.$strip>, z.ZodObject<{
1666
+ type: z.ZodLiteral<"system">;
1667
+ component: z.ZodString;
1668
+ }, z.core.$strip>], "type">;
1669
+ }, z.core.$strip>;
1670
+ /** Single backend item in the list response. */
1671
+ export declare const backendItemSchema: z.ZodObject<{
1672
+ id: z.ZodString;
1673
+ name: z.ZodString;
1674
+ backendType: z.ZodEnum<{
1675
+ pg: "pg";
1676
+ vault: "vault";
1677
+ }>;
1678
+ scopeFilter: z.ZodString;
1679
+ syncIntervalMs: z.ZodNumber;
1680
+ enabled: z.ZodBoolean;
1681
+ healthStatus: z.ZodEnum<{
1682
+ unknown: "unknown";
1683
+ healthy: "healthy";
1684
+ degraded: "degraded";
1685
+ unreachable: "unreachable";
1686
+ }>;
1687
+ scopeCount: z.ZodNumber;
1688
+ lastSyncAt: z.ZodNullable<z.ZodString>;
1689
+ lastSyncError: z.ZodNullable<z.ZodString>;
1690
+ lastHealthCheckAt: z.ZodNullable<z.ZodString>;
1691
+ createdAt: z.ZodString;
1692
+ updatedAt: z.ZodString;
1693
+ }, z.core.$strip>;
1694
+ /** Response with all secret backends. */
1695
+ export declare const backendsListResponseSchema: z.ZodObject<{
1696
+ type: z.ZodLiteral<"dashboard.backends.list.response">;
1697
+ requestId: z.ZodString;
1698
+ backends: z.ZodOptional<z.ZodArray<z.ZodObject<{
1699
+ id: z.ZodString;
1700
+ name: z.ZodString;
1701
+ backendType: z.ZodEnum<{
1702
+ pg: "pg";
1703
+ vault: "vault";
1704
+ }>;
1705
+ scopeFilter: z.ZodString;
1706
+ syncIntervalMs: z.ZodNumber;
1707
+ enabled: z.ZodBoolean;
1708
+ healthStatus: z.ZodEnum<{
1709
+ unknown: "unknown";
1710
+ healthy: "healthy";
1711
+ degraded: "degraded";
1712
+ unreachable: "unreachable";
1713
+ }>;
1714
+ scopeCount: z.ZodNumber;
1715
+ lastSyncAt: z.ZodNullable<z.ZodString>;
1716
+ lastSyncError: z.ZodNullable<z.ZodString>;
1717
+ lastHealthCheckAt: z.ZodNullable<z.ZodString>;
1718
+ createdAt: z.ZodString;
1719
+ updatedAt: z.ZodString;
1720
+ }, z.core.$strip>>>;
1721
+ error: z.ZodOptional<z.ZodString>;
1722
+ }, z.core.$strip>;
1723
+ /** Request to get a single backend by name. */
1724
+ export declare const backendGetRequestSchema: z.ZodObject<{
1725
+ type: z.ZodLiteral<"dashboard.backends.get">;
1726
+ requestId: z.ZodString;
1727
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1728
+ type: z.ZodLiteral<"user">;
1729
+ sub: z.ZodString;
1730
+ }, z.core.$strip>, z.ZodObject<{
1731
+ type: z.ZodLiteral<"api_key">;
1732
+ keyId: z.ZodString;
1733
+ ownerSub: z.ZodString;
1734
+ }, z.core.$strip>, z.ZodObject<{
1735
+ type: z.ZodLiteral<"service_account">;
1736
+ id: z.ZodString;
1737
+ }, z.core.$strip>, z.ZodObject<{
1738
+ type: z.ZodLiteral<"platform_operator">;
1739
+ sub: z.ZodString;
1740
+ reason: z.ZodString;
1741
+ }, z.core.$strip>, z.ZodObject<{
1742
+ type: z.ZodLiteral<"system">;
1743
+ component: z.ZodString;
1744
+ }, z.core.$strip>], "type">;
1745
+ name: z.ZodString;
1746
+ }, z.core.$strip>;
1747
+ /** Response with a single backend. */
1748
+ export declare const backendGetResponseSchema: z.ZodObject<{
1749
+ type: z.ZodLiteral<"dashboard.backends.get.response">;
1750
+ requestId: z.ZodString;
1751
+ backend: z.ZodOptional<z.ZodObject<{
1752
+ id: z.ZodString;
1753
+ name: z.ZodString;
1754
+ backendType: z.ZodEnum<{
1755
+ pg: "pg";
1756
+ vault: "vault";
1757
+ }>;
1758
+ scopeFilter: z.ZodString;
1759
+ syncIntervalMs: z.ZodNumber;
1760
+ enabled: z.ZodBoolean;
1761
+ healthStatus: z.ZodEnum<{
1762
+ unknown: "unknown";
1763
+ healthy: "healthy";
1764
+ degraded: "degraded";
1765
+ unreachable: "unreachable";
1766
+ }>;
1767
+ scopeCount: z.ZodNumber;
1768
+ lastSyncAt: z.ZodNullable<z.ZodString>;
1769
+ lastSyncError: z.ZodNullable<z.ZodString>;
1770
+ lastHealthCheckAt: z.ZodNullable<z.ZodString>;
1771
+ createdAt: z.ZodString;
1772
+ updatedAt: z.ZodString;
1773
+ }, z.core.$strip>>;
1774
+ error: z.ZodOptional<z.ZodString>;
1775
+ }, z.core.$strip>;
1776
+ /** Request to sync all backends. */
1777
+ export declare const backendsSyncAllRequestSchema: z.ZodObject<{
1778
+ type: z.ZodLiteral<"dashboard.backends.sync">;
1779
+ requestId: z.ZodString;
1780
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1781
+ type: z.ZodLiteral<"user">;
1782
+ sub: z.ZodString;
1783
+ }, z.core.$strip>, z.ZodObject<{
1784
+ type: z.ZodLiteral<"api_key">;
1785
+ keyId: z.ZodString;
1786
+ ownerSub: z.ZodString;
1787
+ }, z.core.$strip>, z.ZodObject<{
1788
+ type: z.ZodLiteral<"service_account">;
1789
+ id: z.ZodString;
1790
+ }, z.core.$strip>, z.ZodObject<{
1791
+ type: z.ZodLiteral<"platform_operator">;
1792
+ sub: z.ZodString;
1793
+ reason: z.ZodString;
1794
+ }, z.core.$strip>, z.ZodObject<{
1795
+ type: z.ZodLiteral<"system">;
1796
+ component: z.ZodString;
1797
+ }, z.core.$strip>], "type">;
1798
+ }, z.core.$strip>;
1799
+ /** Response to sync all backends. */
1800
+ export declare const backendsSyncAllResponseSchema: z.ZodObject<{
1801
+ type: z.ZodLiteral<"dashboard.backends.sync.response">;
1802
+ requestId: z.ZodString;
1803
+ results: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1804
+ error: z.ZodOptional<z.ZodString>;
1805
+ }, z.core.$strip>;
1806
+ /** Request to sync a single backend. */
1807
+ export declare const backendSyncRequestSchema: z.ZodObject<{
1808
+ type: z.ZodLiteral<"dashboard.backends.sync.one">;
1809
+ requestId: z.ZodString;
1810
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1811
+ type: z.ZodLiteral<"user">;
1812
+ sub: z.ZodString;
1813
+ }, z.core.$strip>, z.ZodObject<{
1814
+ type: z.ZodLiteral<"api_key">;
1815
+ keyId: z.ZodString;
1816
+ ownerSub: z.ZodString;
1817
+ }, z.core.$strip>, z.ZodObject<{
1818
+ type: z.ZodLiteral<"service_account">;
1819
+ id: z.ZodString;
1820
+ }, z.core.$strip>, z.ZodObject<{
1821
+ type: z.ZodLiteral<"platform_operator">;
1822
+ sub: z.ZodString;
1823
+ reason: z.ZodString;
1824
+ }, z.core.$strip>, z.ZodObject<{
1825
+ type: z.ZodLiteral<"system">;
1826
+ component: z.ZodString;
1827
+ }, z.core.$strip>], "type">;
1828
+ name: z.ZodString;
1829
+ }, z.core.$strip>;
1830
+ /** Response to sync a single backend. */
1831
+ export declare const backendSyncResponseSchema: z.ZodObject<{
1832
+ type: z.ZodLiteral<"dashboard.backends.sync.one.response">;
1833
+ requestId: z.ZodString;
1834
+ synced: z.ZodOptional<z.ZodBoolean>;
1835
+ scopeCount: z.ZodOptional<z.ZodNumber>;
1836
+ error: z.ZodOptional<z.ZodString>;
1837
+ }, z.core.$strip>;
1838
+ /** Request to test a named backend connection. */
1839
+ export declare const backendTestRequestSchema: z.ZodObject<{
1840
+ type: z.ZodLiteral<"dashboard.backends.test">;
1841
+ requestId: z.ZodString;
1842
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1843
+ type: z.ZodLiteral<"user">;
1844
+ sub: z.ZodString;
1845
+ }, z.core.$strip>, z.ZodObject<{
1846
+ type: z.ZodLiteral<"api_key">;
1847
+ keyId: z.ZodString;
1848
+ ownerSub: z.ZodString;
1849
+ }, z.core.$strip>, z.ZodObject<{
1850
+ type: z.ZodLiteral<"service_account">;
1851
+ id: z.ZodString;
1852
+ }, z.core.$strip>, z.ZodObject<{
1853
+ type: z.ZodLiteral<"platform_operator">;
1854
+ sub: z.ZodString;
1855
+ reason: z.ZodString;
1856
+ }, z.core.$strip>, z.ZodObject<{
1857
+ type: z.ZodLiteral<"system">;
1858
+ component: z.ZodString;
1859
+ }, z.core.$strip>], "type">;
1860
+ name: z.ZodString;
1861
+ }, z.core.$strip>;
1862
+ /** Response to test a backend connection. */
1863
+ export declare const backendTestResponseSchema: z.ZodObject<{
1864
+ type: z.ZodLiteral<"dashboard.backends.test.response">;
1865
+ requestId: z.ZodString;
1866
+ ok: z.ZodOptional<z.ZodBoolean>;
1867
+ latencyMs: z.ZodOptional<z.ZodNumber>;
1868
+ error: z.ZodOptional<z.ZodString>;
1869
+ }, z.core.$strip>;
1870
+ /** Dashboard messages flowing from Platform to Orchestrator. */
1871
+ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1872
+ type: z.ZodLiteral<"dashboard.run.detail">;
1873
+ requestId: z.ZodString;
1874
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1875
+ type: z.ZodLiteral<"user">;
1876
+ sub: z.ZodString;
1877
+ }, z.core.$strip>, z.ZodObject<{
1878
+ type: z.ZodLiteral<"api_key">;
1879
+ keyId: z.ZodString;
1880
+ ownerSub: z.ZodString;
1881
+ }, z.core.$strip>, z.ZodObject<{
1882
+ type: z.ZodLiteral<"service_account">;
1883
+ id: z.ZodString;
1884
+ }, z.core.$strip>, z.ZodObject<{
1885
+ type: z.ZodLiteral<"platform_operator">;
1886
+ sub: z.ZodString;
1887
+ reason: z.ZodString;
1888
+ }, z.core.$strip>, z.ZodObject<{
1889
+ type: z.ZodLiteral<"system">;
1890
+ component: z.ZodString;
1891
+ }, z.core.$strip>], "type">;
1892
+ runId: z.ZodString;
1893
+ }, z.core.$strip>, z.ZodObject<{
1894
+ type: z.ZodLiteral<"dashboard.step.logs">;
1895
+ requestId: z.ZodString;
1896
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1897
+ type: z.ZodLiteral<"user">;
1898
+ sub: z.ZodString;
1899
+ }, z.core.$strip>, z.ZodObject<{
1900
+ type: z.ZodLiteral<"api_key">;
1901
+ keyId: z.ZodString;
1902
+ ownerSub: z.ZodString;
1903
+ }, z.core.$strip>, z.ZodObject<{
1904
+ type: z.ZodLiteral<"service_account">;
1905
+ id: z.ZodString;
1906
+ }, z.core.$strip>, z.ZodObject<{
1907
+ type: z.ZodLiteral<"platform_operator">;
1908
+ sub: z.ZodString;
1909
+ reason: z.ZodString;
1910
+ }, z.core.$strip>, z.ZodObject<{
1911
+ type: z.ZodLiteral<"system">;
1912
+ component: z.ZodString;
1913
+ }, z.core.$strip>], "type">;
1914
+ runId: z.ZodString;
1915
+ jobId: z.ZodString;
1916
+ stepIndex: z.ZodNumber;
1917
+ }, z.core.$strip>, z.ZodObject<{
1918
+ type: z.ZodLiteral<"run.rerun.request">;
1919
+ requestId: z.ZodString;
1920
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1921
+ type: z.ZodLiteral<"user">;
1922
+ sub: z.ZodString;
1923
+ }, z.core.$strip>, z.ZodObject<{
1924
+ type: z.ZodLiteral<"api_key">;
1925
+ keyId: z.ZodString;
1926
+ ownerSub: z.ZodString;
1927
+ }, z.core.$strip>, z.ZodObject<{
1928
+ type: z.ZodLiteral<"service_account">;
1929
+ id: z.ZodString;
1930
+ }, z.core.$strip>, z.ZodObject<{
1931
+ type: z.ZodLiteral<"platform_operator">;
1932
+ sub: z.ZodString;
1933
+ reason: z.ZodString;
1934
+ }, z.core.$strip>, z.ZodObject<{
1935
+ type: z.ZodLiteral<"system">;
1936
+ component: z.ZodString;
1937
+ }, z.core.$strip>], "type">;
1938
+ runId: z.ZodString;
1939
+ routingKey: z.ZodOptional<z.ZodString>;
1940
+ }, z.core.$strip>, z.ZodObject<{
1941
+ type: z.ZodLiteral<"run.manual_schedule.request">;
1942
+ requestId: z.ZodString;
1943
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1944
+ type: z.ZodLiteral<"user">;
1945
+ sub: z.ZodString;
1946
+ }, z.core.$strip>, z.ZodObject<{
1947
+ type: z.ZodLiteral<"api_key">;
1948
+ keyId: z.ZodString;
1949
+ ownerSub: z.ZodString;
1950
+ }, z.core.$strip>, z.ZodObject<{
1951
+ type: z.ZodLiteral<"service_account">;
1952
+ id: z.ZodString;
1953
+ }, z.core.$strip>, z.ZodObject<{
1954
+ type: z.ZodLiteral<"platform_operator">;
1955
+ sub: z.ZodString;
1956
+ reason: z.ZodString;
1957
+ }, z.core.$strip>, z.ZodObject<{
1958
+ type: z.ZodLiteral<"system">;
1959
+ component: z.ZodString;
1960
+ }, z.core.$strip>], "type">;
1961
+ registrationId: z.ZodString;
1962
+ }, z.core.$strip>, z.ZodObject<{
1963
+ type: z.ZodLiteral<"run.cancel.request">;
1964
+ requestId: z.ZodString;
1965
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1966
+ type: z.ZodLiteral<"user">;
1967
+ sub: z.ZodString;
1968
+ }, z.core.$strip>, z.ZodObject<{
1969
+ type: z.ZodLiteral<"api_key">;
1970
+ keyId: z.ZodString;
1971
+ ownerSub: z.ZodString;
1972
+ }, z.core.$strip>, z.ZodObject<{
1973
+ type: z.ZodLiteral<"service_account">;
1974
+ id: z.ZodString;
1975
+ }, z.core.$strip>, z.ZodObject<{
1976
+ type: z.ZodLiteral<"platform_operator">;
1977
+ sub: z.ZodString;
1978
+ reason: z.ZodString;
1979
+ }, z.core.$strip>, z.ZodObject<{
1980
+ type: z.ZodLiteral<"system">;
1981
+ component: z.ZodString;
1982
+ }, z.core.$strip>], "type">;
1983
+ runId: z.ZodString;
1984
+ force: z.ZodOptional<z.ZodBoolean>;
1985
+ }, z.core.$strip>, z.ZodObject<{
1986
+ type: z.ZodLiteral<"dashboard.payload">;
1987
+ requestId: z.ZodString;
1988
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1989
+ type: z.ZodLiteral<"user">;
1990
+ sub: z.ZodString;
1991
+ }, z.core.$strip>, z.ZodObject<{
1992
+ type: z.ZodLiteral<"api_key">;
1993
+ keyId: z.ZodString;
1994
+ ownerSub: z.ZodString;
1995
+ }, z.core.$strip>, z.ZodObject<{
1996
+ type: z.ZodLiteral<"service_account">;
1997
+ id: z.ZodString;
1998
+ }, z.core.$strip>, z.ZodObject<{
1999
+ type: z.ZodLiteral<"platform_operator">;
2000
+ sub: z.ZodString;
2001
+ reason: z.ZodString;
2002
+ }, z.core.$strip>, z.ZodObject<{
2003
+ type: z.ZodLiteral<"system">;
2004
+ component: z.ZodString;
2005
+ }, z.core.$strip>], "type">;
2006
+ runId: z.ZodString;
2007
+ }, z.core.$strip>, z.ZodObject<{
2008
+ type: z.ZodLiteral<"dashboard.orch.logs">;
2009
+ requestId: z.ZodString;
2010
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2011
+ type: z.ZodLiteral<"user">;
2012
+ sub: z.ZodString;
2013
+ }, z.core.$strip>, z.ZodObject<{
2014
+ type: z.ZodLiteral<"api_key">;
2015
+ keyId: z.ZodString;
2016
+ ownerSub: z.ZodString;
2017
+ }, z.core.$strip>, z.ZodObject<{
2018
+ type: z.ZodLiteral<"service_account">;
2019
+ id: z.ZodString;
2020
+ }, z.core.$strip>, z.ZodObject<{
2021
+ type: z.ZodLiteral<"platform_operator">;
2022
+ sub: z.ZodString;
2023
+ reason: z.ZodString;
2024
+ }, z.core.$strip>, z.ZodObject<{
2025
+ type: z.ZodLiteral<"system">;
2026
+ component: z.ZodString;
2027
+ }, z.core.$strip>], "type">;
2028
+ runId: z.ZodString;
2029
+ jobId: z.ZodString;
2030
+ }, z.core.$strip>, z.ZodObject<{
2031
+ type: z.ZodLiteral<"dashboard.environments.list">;
2032
+ requestId: z.ZodString;
2033
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2034
+ type: z.ZodLiteral<"user">;
2035
+ sub: z.ZodString;
2036
+ }, z.core.$strip>, z.ZodObject<{
2037
+ type: z.ZodLiteral<"api_key">;
2038
+ keyId: z.ZodString;
2039
+ ownerSub: z.ZodString;
2040
+ }, z.core.$strip>, z.ZodObject<{
2041
+ type: z.ZodLiteral<"service_account">;
2042
+ id: z.ZodString;
2043
+ }, z.core.$strip>, z.ZodObject<{
2044
+ type: z.ZodLiteral<"platform_operator">;
2045
+ sub: z.ZodString;
2046
+ reason: z.ZodString;
2047
+ }, z.core.$strip>, z.ZodObject<{
2048
+ type: z.ZodLiteral<"system">;
2049
+ component: z.ZodString;
2050
+ }, z.core.$strip>], "type">;
2051
+ }, z.core.$strip>, z.ZodObject<{
2052
+ type: z.ZodLiteral<"dashboard.environments.get">;
2053
+ requestId: z.ZodString;
2054
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2055
+ type: z.ZodLiteral<"user">;
2056
+ sub: z.ZodString;
2057
+ }, z.core.$strip>, z.ZodObject<{
2058
+ type: z.ZodLiteral<"api_key">;
2059
+ keyId: z.ZodString;
2060
+ ownerSub: z.ZodString;
2061
+ }, z.core.$strip>, z.ZodObject<{
2062
+ type: z.ZodLiteral<"service_account">;
2063
+ id: z.ZodString;
2064
+ }, z.core.$strip>, z.ZodObject<{
2065
+ type: z.ZodLiteral<"platform_operator">;
2066
+ sub: z.ZodString;
2067
+ reason: z.ZodString;
2068
+ }, z.core.$strip>, z.ZodObject<{
2069
+ type: z.ZodLiteral<"system">;
2070
+ component: z.ZodString;
2071
+ }, z.core.$strip>], "type">;
2072
+ environmentId: z.ZodString;
2073
+ }, z.core.$strip>, z.ZodObject<{
2074
+ type: z.ZodLiteral<"dashboard.environments.create">;
2075
+ requestId: z.ZodString;
2076
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2077
+ type: z.ZodLiteral<"user">;
2078
+ sub: z.ZodString;
2079
+ }, z.core.$strip>, z.ZodObject<{
2080
+ type: z.ZodLiteral<"api_key">;
2081
+ keyId: z.ZodString;
2082
+ ownerSub: z.ZodString;
2083
+ }, z.core.$strip>, z.ZodObject<{
2084
+ type: z.ZodLiteral<"service_account">;
2085
+ id: z.ZodString;
2086
+ }, z.core.$strip>, z.ZodObject<{
2087
+ type: z.ZodLiteral<"platform_operator">;
2088
+ sub: z.ZodString;
2089
+ reason: z.ZodString;
2090
+ }, z.core.$strip>, z.ZodObject<{
2091
+ type: z.ZodLiteral<"system">;
2092
+ component: z.ZodString;
2093
+ }, z.core.$strip>], "type">;
2094
+ name: z.ZodString;
2095
+ envType: z.ZodEnum<{
2096
+ fixed: "fixed";
2097
+ glob: "glob";
2098
+ }>;
2099
+ globPattern: z.ZodOptional<z.ZodString>;
2100
+ branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2101
+ concurrencyLimit: z.ZodOptional<z.ZodNumber>;
2102
+ concurrencyStrategy: z.ZodOptional<z.ZodEnum<{
2103
+ queue: "queue";
2104
+ "cancel-pending": "cancel-pending";
2105
+ }>>;
2106
+ requiredReviewers: z.ZodOptional<z.ZodNumber>;
2107
+ waitTimerSeconds: z.ZodOptional<z.ZodNumber>;
2108
+ holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
2109
+ enabled: z.ZodOptional<z.ZodBoolean>;
2110
+ }, z.core.$strip>, z.ZodObject<{
2111
+ type: z.ZodLiteral<"dashboard.environments.update">;
2112
+ requestId: z.ZodString;
2113
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2114
+ type: z.ZodLiteral<"user">;
2115
+ sub: z.ZodString;
2116
+ }, z.core.$strip>, z.ZodObject<{
2117
+ type: z.ZodLiteral<"api_key">;
2118
+ keyId: z.ZodString;
2119
+ ownerSub: z.ZodString;
2120
+ }, z.core.$strip>, z.ZodObject<{
2121
+ type: z.ZodLiteral<"service_account">;
2122
+ id: z.ZodString;
2123
+ }, z.core.$strip>, z.ZodObject<{
2124
+ type: z.ZodLiteral<"platform_operator">;
2125
+ sub: z.ZodString;
2126
+ reason: z.ZodString;
2127
+ }, z.core.$strip>, z.ZodObject<{
2128
+ type: z.ZodLiteral<"system">;
2129
+ component: z.ZodString;
2130
+ }, z.core.$strip>], "type">;
2131
+ environmentId: z.ZodString;
2132
+ updates: z.ZodObject<{
2133
+ name: z.ZodOptional<z.ZodString>;
2134
+ envType: z.ZodOptional<z.ZodEnum<{
2135
+ fixed: "fixed";
2136
+ glob: "glob";
2137
+ }>>;
2138
+ globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2139
+ branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2140
+ concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2141
+ concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2142
+ queue: "queue";
2143
+ "cancel-pending": "cancel-pending";
2144
+ }>>>;
2145
+ requiredReviewers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2146
+ waitTimerSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2147
+ holdExpirySeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2148
+ enabled: z.ZodOptional<z.ZodBoolean>;
2149
+ }, z.core.$strip>;
2150
+ }, z.core.$strip>, z.ZodObject<{
2151
+ type: z.ZodLiteral<"dashboard.environments.delete">;
2152
+ requestId: z.ZodString;
2153
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2154
+ type: z.ZodLiteral<"user">;
2155
+ sub: z.ZodString;
2156
+ }, z.core.$strip>, z.ZodObject<{
2157
+ type: z.ZodLiteral<"api_key">;
2158
+ keyId: z.ZodString;
2159
+ ownerSub: z.ZodString;
2160
+ }, z.core.$strip>, z.ZodObject<{
2161
+ type: z.ZodLiteral<"service_account">;
2162
+ id: z.ZodString;
2163
+ }, z.core.$strip>, z.ZodObject<{
2164
+ type: z.ZodLiteral<"platform_operator">;
2165
+ sub: z.ZodString;
2166
+ reason: z.ZodString;
2167
+ }, z.core.$strip>, z.ZodObject<{
2168
+ type: z.ZodLiteral<"system">;
2169
+ component: z.ZodString;
2170
+ }, z.core.$strip>], "type">;
2171
+ environmentId: z.ZodString;
2172
+ }, z.core.$strip>, z.ZodObject<{
2173
+ type: z.ZodLiteral<"dashboard.environments.variables.list">;
2174
+ requestId: z.ZodString;
2175
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2176
+ type: z.ZodLiteral<"user">;
2177
+ sub: z.ZodString;
2178
+ }, z.core.$strip>, z.ZodObject<{
2179
+ type: z.ZodLiteral<"api_key">;
2180
+ keyId: z.ZodString;
2181
+ ownerSub: z.ZodString;
2182
+ }, z.core.$strip>, z.ZodObject<{
2183
+ type: z.ZodLiteral<"service_account">;
2184
+ id: z.ZodString;
2185
+ }, z.core.$strip>, z.ZodObject<{
2186
+ type: z.ZodLiteral<"platform_operator">;
2187
+ sub: z.ZodString;
2188
+ reason: z.ZodString;
2189
+ }, z.core.$strip>, z.ZodObject<{
2190
+ type: z.ZodLiteral<"system">;
2191
+ component: z.ZodString;
2192
+ }, z.core.$strip>], "type">;
2193
+ environmentId: z.ZodString;
2194
+ }, z.core.$strip>, z.ZodObject<{
2195
+ type: z.ZodLiteral<"dashboard.environments.variables.set">;
2196
+ requestId: z.ZodString;
2197
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2198
+ type: z.ZodLiteral<"user">;
2199
+ sub: z.ZodString;
2200
+ }, z.core.$strip>, z.ZodObject<{
2201
+ type: z.ZodLiteral<"api_key">;
2202
+ keyId: z.ZodString;
2203
+ ownerSub: z.ZodString;
2204
+ }, z.core.$strip>, z.ZodObject<{
2205
+ type: z.ZodLiteral<"service_account">;
2206
+ id: z.ZodString;
2207
+ }, z.core.$strip>, z.ZodObject<{
2208
+ type: z.ZodLiteral<"platform_operator">;
2209
+ sub: z.ZodString;
2210
+ reason: z.ZodString;
2211
+ }, z.core.$strip>, z.ZodObject<{
2212
+ type: z.ZodLiteral<"system">;
2213
+ component: z.ZodString;
2214
+ }, z.core.$strip>], "type">;
2215
+ environmentId: z.ZodString;
2216
+ key: z.ZodString;
2217
+ value: z.ZodString;
2218
+ locked: z.ZodOptional<z.ZodBoolean>;
2219
+ }, z.core.$strip>, z.ZodObject<{
2220
+ type: z.ZodLiteral<"dashboard.environments.variables.delete">;
2221
+ requestId: z.ZodString;
2222
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2223
+ type: z.ZodLiteral<"user">;
2224
+ sub: z.ZodString;
2225
+ }, z.core.$strip>, z.ZodObject<{
2226
+ type: z.ZodLiteral<"api_key">;
2227
+ keyId: z.ZodString;
2228
+ ownerSub: z.ZodString;
2229
+ }, z.core.$strip>, z.ZodObject<{
2230
+ type: z.ZodLiteral<"service_account">;
2231
+ id: z.ZodString;
2232
+ }, z.core.$strip>, z.ZodObject<{
2233
+ type: z.ZodLiteral<"platform_operator">;
2234
+ sub: z.ZodString;
2235
+ reason: z.ZodString;
2236
+ }, z.core.$strip>, z.ZodObject<{
2237
+ type: z.ZodLiteral<"system">;
2238
+ component: z.ZodString;
2239
+ }, z.core.$strip>], "type">;
2240
+ environmentId: z.ZodString;
2241
+ key: z.ZodString;
2242
+ }, z.core.$strip>, z.ZodObject<{
2243
+ type: z.ZodLiteral<"dashboard.environments.source-overrides.list">;
2244
+ requestId: z.ZodString;
2245
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2246
+ type: z.ZodLiteral<"user">;
2247
+ sub: z.ZodString;
2248
+ }, z.core.$strip>, z.ZodObject<{
2249
+ type: z.ZodLiteral<"api_key">;
2250
+ keyId: z.ZodString;
2251
+ ownerSub: z.ZodString;
2252
+ }, z.core.$strip>, z.ZodObject<{
2253
+ type: z.ZodLiteral<"service_account">;
2254
+ id: z.ZodString;
2255
+ }, z.core.$strip>, z.ZodObject<{
2256
+ type: z.ZodLiteral<"platform_operator">;
2257
+ sub: z.ZodString;
2258
+ reason: z.ZodString;
2259
+ }, z.core.$strip>, z.ZodObject<{
2260
+ type: z.ZodLiteral<"system">;
2261
+ component: z.ZodString;
2262
+ }, z.core.$strip>], "type">;
2263
+ environmentId: z.ZodString;
2264
+ routingKey: z.ZodString;
2265
+ }, z.core.$strip>, z.ZodObject<{
2266
+ type: z.ZodLiteral<"dashboard.environments.source-overrides.set">;
2267
+ requestId: z.ZodString;
2268
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2269
+ type: z.ZodLiteral<"user">;
2270
+ sub: z.ZodString;
2271
+ }, z.core.$strip>, z.ZodObject<{
2272
+ type: z.ZodLiteral<"api_key">;
2273
+ keyId: z.ZodString;
2274
+ ownerSub: z.ZodString;
2275
+ }, z.core.$strip>, z.ZodObject<{
2276
+ type: z.ZodLiteral<"service_account">;
2277
+ id: z.ZodString;
2278
+ }, z.core.$strip>, z.ZodObject<{
2279
+ type: z.ZodLiteral<"platform_operator">;
2280
+ sub: z.ZodString;
2281
+ reason: z.ZodString;
2282
+ }, z.core.$strip>, z.ZodObject<{
2283
+ type: z.ZodLiteral<"system">;
2284
+ component: z.ZodString;
2285
+ }, z.core.$strip>], "type">;
2286
+ environmentId: z.ZodString;
2287
+ routingKey: z.ZodString;
2288
+ key: z.ZodString;
2289
+ value: z.ZodString;
2290
+ }, z.core.$strip>, z.ZodObject<{
2291
+ type: z.ZodLiteral<"dashboard.environments.source-overrides.delete">;
2292
+ requestId: z.ZodString;
2293
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2294
+ type: z.ZodLiteral<"user">;
2295
+ sub: z.ZodString;
2296
+ }, z.core.$strip>, z.ZodObject<{
2297
+ type: z.ZodLiteral<"api_key">;
2298
+ keyId: z.ZodString;
2299
+ ownerSub: z.ZodString;
2300
+ }, z.core.$strip>, z.ZodObject<{
2301
+ type: z.ZodLiteral<"service_account">;
2302
+ id: z.ZodString;
2303
+ }, z.core.$strip>, z.ZodObject<{
2304
+ type: z.ZodLiteral<"platform_operator">;
2305
+ sub: z.ZodString;
2306
+ reason: z.ZodString;
2307
+ }, z.core.$strip>, z.ZodObject<{
2308
+ type: z.ZodLiteral<"system">;
2309
+ component: z.ZodString;
2310
+ }, z.core.$strip>], "type">;
2311
+ environmentId: z.ZodString;
2312
+ routingKey: z.ZodString;
2313
+ key: z.ZodString;
2314
+ }, z.core.$strip>, z.ZodObject<{
2315
+ type: z.ZodLiteral<"dashboard.environments.bindings.list">;
2316
+ requestId: z.ZodString;
2317
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2318
+ type: z.ZodLiteral<"user">;
2319
+ sub: z.ZodString;
2320
+ }, z.core.$strip>, z.ZodObject<{
2321
+ type: z.ZodLiteral<"api_key">;
2322
+ keyId: z.ZodString;
2323
+ ownerSub: z.ZodString;
2324
+ }, z.core.$strip>, z.ZodObject<{
2325
+ type: z.ZodLiteral<"service_account">;
2326
+ id: z.ZodString;
2327
+ }, z.core.$strip>, z.ZodObject<{
2328
+ type: z.ZodLiteral<"platform_operator">;
2329
+ sub: z.ZodString;
2330
+ reason: z.ZodString;
2331
+ }, z.core.$strip>, z.ZodObject<{
2332
+ type: z.ZodLiteral<"system">;
2333
+ component: z.ZodString;
2334
+ }, z.core.$strip>], "type">;
2335
+ environmentId: z.ZodString;
2336
+ }, z.core.$strip>, z.ZodObject<{
2337
+ type: z.ZodLiteral<"dashboard.environments.bindings.set">;
2338
+ requestId: z.ZodString;
2339
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2340
+ type: z.ZodLiteral<"user">;
2341
+ sub: z.ZodString;
2342
+ }, z.core.$strip>, z.ZodObject<{
2343
+ type: z.ZodLiteral<"api_key">;
2344
+ keyId: z.ZodString;
2345
+ ownerSub: z.ZodString;
2346
+ }, z.core.$strip>, z.ZodObject<{
2347
+ type: z.ZodLiteral<"service_account">;
2348
+ id: z.ZodString;
2349
+ }, z.core.$strip>, z.ZodObject<{
2350
+ type: z.ZodLiteral<"platform_operator">;
2351
+ sub: z.ZodString;
2352
+ reason: z.ZodString;
2353
+ }, z.core.$strip>, z.ZodObject<{
2354
+ type: z.ZodLiteral<"system">;
2355
+ component: z.ZodString;
2356
+ }, z.core.$strip>], "type">;
2357
+ environmentId: z.ZodString;
2358
+ scopePatterns: z.ZodArray<z.ZodString>;
2359
+ }, z.core.$strip>, z.ZodObject<{
2360
+ type: z.ZodLiteral<"dashboard.environments.secrets.list">;
2361
+ requestId: z.ZodString;
2362
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2363
+ type: z.ZodLiteral<"user">;
2364
+ sub: z.ZodString;
2365
+ }, z.core.$strip>, z.ZodObject<{
2366
+ type: z.ZodLiteral<"api_key">;
2367
+ keyId: z.ZodString;
2368
+ ownerSub: z.ZodString;
2369
+ }, z.core.$strip>, z.ZodObject<{
2370
+ type: z.ZodLiteral<"service_account">;
2371
+ id: z.ZodString;
2372
+ }, z.core.$strip>, z.ZodObject<{
2373
+ type: z.ZodLiteral<"platform_operator">;
2374
+ sub: z.ZodString;
2375
+ reason: z.ZodString;
2376
+ }, z.core.$strip>, z.ZodObject<{
2377
+ type: z.ZodLiteral<"system">;
2378
+ component: z.ZodString;
2379
+ }, z.core.$strip>], "type">;
2380
+ }, z.core.$strip>, z.ZodObject<{
2381
+ type: z.ZodLiteral<"dashboard.environments.secrets.set">;
2382
+ requestId: z.ZodString;
2383
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2384
+ type: z.ZodLiteral<"user">;
2385
+ sub: z.ZodString;
2386
+ }, z.core.$strip>, z.ZodObject<{
2387
+ type: z.ZodLiteral<"api_key">;
2388
+ keyId: z.ZodString;
2389
+ ownerSub: z.ZodString;
2390
+ }, z.core.$strip>, z.ZodObject<{
2391
+ type: z.ZodLiteral<"service_account">;
2392
+ id: z.ZodString;
2393
+ }, z.core.$strip>, z.ZodObject<{
2394
+ type: z.ZodLiteral<"platform_operator">;
2395
+ sub: z.ZodString;
2396
+ reason: z.ZodString;
2397
+ }, z.core.$strip>, z.ZodObject<{
2398
+ type: z.ZodLiteral<"system">;
2399
+ component: z.ZodString;
2400
+ }, z.core.$strip>], "type">;
2401
+ scope: z.ZodString;
2402
+ key: z.ZodString;
2403
+ value: z.ZodString;
2404
+ }, z.core.$strip>, z.ZodObject<{
2405
+ type: z.ZodLiteral<"dashboard.environments.secrets.delete">;
2406
+ requestId: z.ZodString;
2407
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2408
+ type: z.ZodLiteral<"user">;
2409
+ sub: z.ZodString;
2410
+ }, z.core.$strip>, z.ZodObject<{
2411
+ type: z.ZodLiteral<"api_key">;
2412
+ keyId: z.ZodString;
2413
+ ownerSub: z.ZodString;
2414
+ }, z.core.$strip>, z.ZodObject<{
2415
+ type: z.ZodLiteral<"service_account">;
2416
+ id: z.ZodString;
2417
+ }, z.core.$strip>, z.ZodObject<{
2418
+ type: z.ZodLiteral<"platform_operator">;
2419
+ sub: z.ZodString;
2420
+ reason: z.ZodString;
2421
+ }, z.core.$strip>, z.ZodObject<{
2422
+ type: z.ZodLiteral<"system">;
2423
+ component: z.ZodString;
2424
+ }, z.core.$strip>], "type">;
2425
+ scope: z.ZodString;
2426
+ key: z.ZodString;
2427
+ }, z.core.$strip>, z.ZodObject<{
2428
+ type: z.ZodLiteral<"dashboard.environments.secrets.scope.create">;
2429
+ requestId: z.ZodString;
2430
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2431
+ type: z.ZodLiteral<"user">;
2432
+ sub: z.ZodString;
2433
+ }, z.core.$strip>, z.ZodObject<{
2434
+ type: z.ZodLiteral<"api_key">;
2435
+ keyId: z.ZodString;
2436
+ ownerSub: z.ZodString;
2437
+ }, z.core.$strip>, z.ZodObject<{
2438
+ type: z.ZodLiteral<"service_account">;
2439
+ id: z.ZodString;
2440
+ }, z.core.$strip>, z.ZodObject<{
2441
+ type: z.ZodLiteral<"platform_operator">;
2442
+ sub: z.ZodString;
2443
+ reason: z.ZodString;
2444
+ }, z.core.$strip>, z.ZodObject<{
2445
+ type: z.ZodLiteral<"system">;
2446
+ component: z.ZodString;
2447
+ }, z.core.$strip>], "type">;
2448
+ scope: z.ZodString;
2449
+ }, z.core.$strip>, z.ZodObject<{
2450
+ type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename">;
2451
+ requestId: z.ZodString;
2452
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2453
+ type: z.ZodLiteral<"user">;
2454
+ sub: z.ZodString;
2455
+ }, z.core.$strip>, z.ZodObject<{
2456
+ type: z.ZodLiteral<"api_key">;
2457
+ keyId: z.ZodString;
2458
+ ownerSub: z.ZodString;
2459
+ }, z.core.$strip>, z.ZodObject<{
2460
+ type: z.ZodLiteral<"service_account">;
2461
+ id: z.ZodString;
2462
+ }, z.core.$strip>, z.ZodObject<{
2463
+ type: z.ZodLiteral<"platform_operator">;
2464
+ sub: z.ZodString;
2465
+ reason: z.ZodString;
2466
+ }, z.core.$strip>, z.ZodObject<{
2467
+ type: z.ZodLiteral<"system">;
2468
+ component: z.ZodString;
2469
+ }, z.core.$strip>], "type">;
2470
+ oldScope: z.ZodString;
2471
+ newScope: z.ZodString;
2472
+ }, z.core.$strip>, z.ZodObject<{
2473
+ type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete">;
2474
+ requestId: z.ZodString;
2475
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2476
+ type: z.ZodLiteral<"user">;
2477
+ sub: z.ZodString;
2478
+ }, z.core.$strip>, z.ZodObject<{
2479
+ type: z.ZodLiteral<"api_key">;
2480
+ keyId: z.ZodString;
2481
+ ownerSub: z.ZodString;
2482
+ }, z.core.$strip>, z.ZodObject<{
2483
+ type: z.ZodLiteral<"service_account">;
2484
+ id: z.ZodString;
2485
+ }, z.core.$strip>, z.ZodObject<{
2486
+ type: z.ZodLiteral<"platform_operator">;
2487
+ sub: z.ZodString;
2488
+ reason: z.ZodString;
2489
+ }, z.core.$strip>, z.ZodObject<{
2490
+ type: z.ZodLiteral<"system">;
2491
+ component: z.ZodString;
2492
+ }, z.core.$strip>], "type">;
2493
+ scope: z.ZodString;
2494
+ }, z.core.$strip>, z.ZodObject<{
2495
+ type: z.ZodLiteral<"dashboard.environments.history">;
2496
+ requestId: z.ZodString;
2497
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2498
+ type: z.ZodLiteral<"user">;
2499
+ sub: z.ZodString;
2500
+ }, z.core.$strip>, z.ZodObject<{
2501
+ type: z.ZodLiteral<"api_key">;
2502
+ keyId: z.ZodString;
2503
+ ownerSub: z.ZodString;
2504
+ }, z.core.$strip>, z.ZodObject<{
2505
+ type: z.ZodLiteral<"service_account">;
2506
+ id: z.ZodString;
2507
+ }, z.core.$strip>, z.ZodObject<{
2508
+ type: z.ZodLiteral<"platform_operator">;
2509
+ sub: z.ZodString;
2510
+ reason: z.ZodString;
2511
+ }, z.core.$strip>, z.ZodObject<{
2512
+ type: z.ZodLiteral<"system">;
2513
+ component: z.ZodString;
2514
+ }, z.core.$strip>], "type">;
2515
+ environmentName: z.ZodString;
2516
+ limit: z.ZodOptional<z.ZodNumber>;
2517
+ offset: z.ZodOptional<z.ZodNumber>;
2518
+ }, z.core.$strip>, z.ZodObject<{
2519
+ type: z.ZodLiteral<"dashboard.held-runs.list">;
2520
+ requestId: z.ZodString;
2521
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2522
+ type: z.ZodLiteral<"user">;
2523
+ sub: z.ZodString;
2524
+ }, z.core.$strip>, z.ZodObject<{
2525
+ type: z.ZodLiteral<"api_key">;
2526
+ keyId: z.ZodString;
2527
+ ownerSub: z.ZodString;
2528
+ }, z.core.$strip>, z.ZodObject<{
2529
+ type: z.ZodLiteral<"service_account">;
2530
+ id: z.ZodString;
2531
+ }, z.core.$strip>, z.ZodObject<{
2532
+ type: z.ZodLiteral<"platform_operator">;
2533
+ sub: z.ZodString;
2534
+ reason: z.ZodString;
2535
+ }, z.core.$strip>, z.ZodObject<{
2536
+ type: z.ZodLiteral<"system">;
2537
+ component: z.ZodString;
2538
+ }, z.core.$strip>], "type">;
2539
+ status: z.ZodOptional<z.ZodEnum<{
2540
+ pending: "pending";
2541
+ rejected: "rejected";
2542
+ approved: "approved";
2543
+ expired: "expired";
2544
+ }>>;
2545
+ queueType: z.ZodOptional<z.ZodEnum<{
2546
+ environment: "environment";
2547
+ security: "security";
2548
+ }>>;
2549
+ runId: z.ZodOptional<z.ZodString>;
2550
+ }, z.core.$strip>, z.ZodObject<{
2551
+ type: z.ZodLiteral<"dashboard.held-runs.approve">;
2552
+ requestId: z.ZodString;
2553
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2554
+ type: z.ZodLiteral<"user">;
2555
+ sub: z.ZodString;
2556
+ }, z.core.$strip>, z.ZodObject<{
2557
+ type: z.ZodLiteral<"api_key">;
2558
+ keyId: z.ZodString;
2559
+ ownerSub: z.ZodString;
2560
+ }, z.core.$strip>, z.ZodObject<{
2561
+ type: z.ZodLiteral<"service_account">;
2562
+ id: z.ZodString;
2563
+ }, z.core.$strip>, z.ZodObject<{
2564
+ type: z.ZodLiteral<"platform_operator">;
2565
+ sub: z.ZodString;
2566
+ reason: z.ZodString;
2567
+ }, z.core.$strip>, z.ZodObject<{
2568
+ type: z.ZodLiteral<"system">;
2569
+ component: z.ZodString;
2570
+ }, z.core.$strip>], "type">;
2571
+ heldRunId: z.ZodString;
2572
+ }, z.core.$strip>, z.ZodObject<{
2573
+ type: z.ZodLiteral<"dashboard.held-runs.reject">;
2574
+ requestId: z.ZodString;
2575
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2576
+ type: z.ZodLiteral<"user">;
2577
+ sub: z.ZodString;
2578
+ }, z.core.$strip>, z.ZodObject<{
2579
+ type: z.ZodLiteral<"api_key">;
2580
+ keyId: z.ZodString;
2581
+ ownerSub: z.ZodString;
2582
+ }, z.core.$strip>, z.ZodObject<{
2583
+ type: z.ZodLiteral<"service_account">;
2584
+ id: z.ZodString;
2585
+ }, z.core.$strip>, z.ZodObject<{
2586
+ type: z.ZodLiteral<"platform_operator">;
2587
+ sub: z.ZodString;
2588
+ reason: z.ZodString;
2589
+ }, z.core.$strip>, z.ZodObject<{
2590
+ type: z.ZodLiteral<"system">;
2591
+ component: z.ZodString;
2592
+ }, z.core.$strip>], "type">;
2593
+ heldRunId: z.ZodString;
2594
+ reason: z.ZodOptional<z.ZodString>;
2595
+ }, z.core.$strip>, z.ZodObject<{
2596
+ type: z.ZodLiteral<"dashboard.registrations.list">;
2597
+ requestId: z.ZodString;
2598
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2599
+ type: z.ZodLiteral<"user">;
2600
+ sub: z.ZodString;
2601
+ }, z.core.$strip>, z.ZodObject<{
2602
+ type: z.ZodLiteral<"api_key">;
2603
+ keyId: z.ZodString;
2604
+ ownerSub: z.ZodString;
2605
+ }, z.core.$strip>, z.ZodObject<{
2606
+ type: z.ZodLiteral<"service_account">;
2607
+ id: z.ZodString;
2608
+ }, z.core.$strip>, z.ZodObject<{
2609
+ type: z.ZodLiteral<"platform_operator">;
2610
+ sub: z.ZodString;
2611
+ reason: z.ZodString;
2612
+ }, z.core.$strip>, z.ZodObject<{
2613
+ type: z.ZodLiteral<"system">;
2614
+ component: z.ZodString;
2615
+ }, z.core.$strip>], "type">;
2616
+ triggerType: z.ZodOptional<z.ZodString>;
2617
+ repoIdentifier: z.ZodOptional<z.ZodString>;
2618
+ }, z.core.$strip>, z.ZodObject<{
2619
+ type: z.ZodLiteral<"dashboard.registration.disable">;
2620
+ requestId: z.ZodString;
2621
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2622
+ type: z.ZodLiteral<"user">;
2623
+ sub: z.ZodString;
2624
+ }, z.core.$strip>, z.ZodObject<{
2625
+ type: z.ZodLiteral<"api_key">;
2626
+ keyId: z.ZodString;
2627
+ ownerSub: z.ZodString;
2628
+ }, z.core.$strip>, z.ZodObject<{
2629
+ type: z.ZodLiteral<"service_account">;
2630
+ id: z.ZodString;
2631
+ }, z.core.$strip>, z.ZodObject<{
2632
+ type: z.ZodLiteral<"platform_operator">;
2633
+ sub: z.ZodString;
2634
+ reason: z.ZodString;
2635
+ }, z.core.$strip>, z.ZodObject<{
2636
+ type: z.ZodLiteral<"system">;
2637
+ component: z.ZodString;
2638
+ }, z.core.$strip>], "type">;
2639
+ registrationId: z.ZodString;
2640
+ disabled: z.ZodBoolean;
2641
+ }, z.core.$strip>, z.ZodObject<{
2642
+ type: z.ZodLiteral<"dashboard.registration.delete">;
2643
+ requestId: z.ZodString;
2644
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2645
+ type: z.ZodLiteral<"user">;
2646
+ sub: z.ZodString;
2647
+ }, z.core.$strip>, z.ZodObject<{
2648
+ type: z.ZodLiteral<"api_key">;
2649
+ keyId: z.ZodString;
2650
+ ownerSub: z.ZodString;
2651
+ }, z.core.$strip>, z.ZodObject<{
2652
+ type: z.ZodLiteral<"service_account">;
2653
+ id: z.ZodString;
2654
+ }, z.core.$strip>, z.ZodObject<{
2655
+ type: z.ZodLiteral<"platform_operator">;
2656
+ sub: z.ZodString;
2657
+ reason: z.ZodString;
2658
+ }, z.core.$strip>, z.ZodObject<{
2659
+ type: z.ZodLiteral<"system">;
2660
+ component: z.ZodString;
2661
+ }, z.core.$strip>], "type">;
2662
+ registrationId: z.ZodString;
2663
+ cancelActiveRuns: z.ZodOptional<z.ZodBoolean>;
2664
+ }, z.core.$strip>, z.ZodObject<{
2665
+ type: z.ZodLiteral<"dashboard.diagnostics">;
2666
+ requestId: z.ZodString;
2667
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2668
+ type: z.ZodLiteral<"user">;
2669
+ sub: z.ZodString;
2670
+ }, z.core.$strip>, z.ZodObject<{
2671
+ type: z.ZodLiteral<"api_key">;
2672
+ keyId: z.ZodString;
2673
+ ownerSub: z.ZodString;
2674
+ }, z.core.$strip>, z.ZodObject<{
2675
+ type: z.ZodLiteral<"service_account">;
2676
+ id: z.ZodString;
2677
+ }, z.core.$strip>, z.ZodObject<{
2678
+ type: z.ZodLiteral<"platform_operator">;
2679
+ sub: z.ZodString;
2680
+ reason: z.ZodString;
2681
+ }, z.core.$strip>, z.ZodObject<{
2682
+ type: z.ZodLiteral<"system">;
2683
+ component: z.ZodString;
2684
+ }, z.core.$strip>], "type">;
2685
+ includeAgents: z.ZodOptional<z.ZodBoolean>;
2686
+ }, z.core.$strip>, z.ZodObject<{
2687
+ type: z.ZodLiteral<"dashboard.scaler.capacity">;
2688
+ requestId: z.ZodString;
2689
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2690
+ type: z.ZodLiteral<"user">;
2691
+ sub: z.ZodString;
2692
+ }, z.core.$strip>, z.ZodObject<{
2693
+ type: z.ZodLiteral<"api_key">;
2694
+ keyId: z.ZodString;
2695
+ ownerSub: z.ZodString;
2696
+ }, z.core.$strip>, z.ZodObject<{
2697
+ type: z.ZodLiteral<"service_account">;
2698
+ id: z.ZodString;
2699
+ }, z.core.$strip>, z.ZodObject<{
2700
+ type: z.ZodLiteral<"platform_operator">;
2701
+ sub: z.ZodString;
2702
+ reason: z.ZodString;
2703
+ }, z.core.$strip>, z.ZodObject<{
2704
+ type: z.ZodLiteral<"system">;
2705
+ component: z.ZodString;
2706
+ }, z.core.$strip>], "type">;
2707
+ }, z.core.$strip>, z.ZodObject<{
2708
+ type: z.ZodLiteral<"dashboard.scaler.agents">;
2709
+ requestId: z.ZodString;
2710
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2711
+ type: z.ZodLiteral<"user">;
2712
+ sub: z.ZodString;
2713
+ }, z.core.$strip>, z.ZodObject<{
2714
+ type: z.ZodLiteral<"api_key">;
2715
+ keyId: z.ZodString;
2716
+ ownerSub: z.ZodString;
2717
+ }, z.core.$strip>, z.ZodObject<{
2718
+ type: z.ZodLiteral<"service_account">;
2719
+ id: z.ZodString;
2720
+ }, z.core.$strip>, z.ZodObject<{
2721
+ type: z.ZodLiteral<"platform_operator">;
2722
+ sub: z.ZodString;
2723
+ reason: z.ZodString;
2724
+ }, z.core.$strip>, z.ZodObject<{
2725
+ type: z.ZodLiteral<"system">;
2726
+ component: z.ZodString;
2727
+ }, z.core.$strip>], "type">;
2728
+ scalerName: z.ZodNullable<z.ZodString>;
2729
+ }, z.core.$strip>, z.ZodObject<{
2730
+ type: z.ZodLiteral<"dashboard.backends.list">;
2731
+ requestId: z.ZodString;
2732
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2733
+ type: z.ZodLiteral<"user">;
2734
+ sub: z.ZodString;
2735
+ }, z.core.$strip>, z.ZodObject<{
2736
+ type: z.ZodLiteral<"api_key">;
2737
+ keyId: z.ZodString;
2738
+ ownerSub: z.ZodString;
2739
+ }, z.core.$strip>, z.ZodObject<{
2740
+ type: z.ZodLiteral<"service_account">;
2741
+ id: z.ZodString;
2742
+ }, z.core.$strip>, z.ZodObject<{
2743
+ type: z.ZodLiteral<"platform_operator">;
2744
+ sub: z.ZodString;
2745
+ reason: z.ZodString;
2746
+ }, z.core.$strip>, z.ZodObject<{
2747
+ type: z.ZodLiteral<"system">;
2748
+ component: z.ZodString;
2749
+ }, z.core.$strip>], "type">;
2750
+ }, z.core.$strip>, z.ZodObject<{
2751
+ type: z.ZodLiteral<"dashboard.backends.get">;
2752
+ requestId: z.ZodString;
2753
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2754
+ type: z.ZodLiteral<"user">;
2755
+ sub: z.ZodString;
2756
+ }, z.core.$strip>, z.ZodObject<{
2757
+ type: z.ZodLiteral<"api_key">;
2758
+ keyId: z.ZodString;
2759
+ ownerSub: z.ZodString;
2760
+ }, z.core.$strip>, z.ZodObject<{
2761
+ type: z.ZodLiteral<"service_account">;
2762
+ id: z.ZodString;
2763
+ }, z.core.$strip>, z.ZodObject<{
2764
+ type: z.ZodLiteral<"platform_operator">;
2765
+ sub: z.ZodString;
2766
+ reason: z.ZodString;
2767
+ }, z.core.$strip>, z.ZodObject<{
2768
+ type: z.ZodLiteral<"system">;
2769
+ component: z.ZodString;
2770
+ }, z.core.$strip>], "type">;
2771
+ name: z.ZodString;
2772
+ }, z.core.$strip>, z.ZodObject<{
2773
+ type: z.ZodLiteral<"dashboard.backends.sync">;
2774
+ requestId: z.ZodString;
2775
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2776
+ type: z.ZodLiteral<"user">;
2777
+ sub: z.ZodString;
2778
+ }, z.core.$strip>, z.ZodObject<{
2779
+ type: z.ZodLiteral<"api_key">;
2780
+ keyId: z.ZodString;
2781
+ ownerSub: z.ZodString;
2782
+ }, z.core.$strip>, z.ZodObject<{
2783
+ type: z.ZodLiteral<"service_account">;
2784
+ id: z.ZodString;
2785
+ }, z.core.$strip>, z.ZodObject<{
2786
+ type: z.ZodLiteral<"platform_operator">;
2787
+ sub: z.ZodString;
2788
+ reason: z.ZodString;
2789
+ }, z.core.$strip>, z.ZodObject<{
2790
+ type: z.ZodLiteral<"system">;
2791
+ component: z.ZodString;
2792
+ }, z.core.$strip>], "type">;
2793
+ }, z.core.$strip>, z.ZodObject<{
2794
+ type: z.ZodLiteral<"dashboard.backends.sync.one">;
2795
+ requestId: z.ZodString;
2796
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2797
+ type: z.ZodLiteral<"user">;
2798
+ sub: z.ZodString;
2799
+ }, z.core.$strip>, z.ZodObject<{
2800
+ type: z.ZodLiteral<"api_key">;
2801
+ keyId: z.ZodString;
2802
+ ownerSub: z.ZodString;
2803
+ }, z.core.$strip>, z.ZodObject<{
2804
+ type: z.ZodLiteral<"service_account">;
2805
+ id: z.ZodString;
2806
+ }, z.core.$strip>, z.ZodObject<{
2807
+ type: z.ZodLiteral<"platform_operator">;
2808
+ sub: z.ZodString;
2809
+ reason: z.ZodString;
2810
+ }, z.core.$strip>, z.ZodObject<{
2811
+ type: z.ZodLiteral<"system">;
2812
+ component: z.ZodString;
2813
+ }, z.core.$strip>], "type">;
2814
+ name: z.ZodString;
2815
+ }, z.core.$strip>, z.ZodObject<{
2816
+ type: z.ZodLiteral<"dashboard.backends.test">;
2817
+ requestId: z.ZodString;
2818
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2819
+ type: z.ZodLiteral<"user">;
2820
+ sub: z.ZodString;
2821
+ }, z.core.$strip>, z.ZodObject<{
2822
+ type: z.ZodLiteral<"api_key">;
2823
+ keyId: z.ZodString;
2824
+ ownerSub: z.ZodString;
2825
+ }, z.core.$strip>, z.ZodObject<{
2826
+ type: z.ZodLiteral<"service_account">;
2827
+ id: z.ZodString;
2828
+ }, z.core.$strip>, z.ZodObject<{
2829
+ type: z.ZodLiteral<"platform_operator">;
2830
+ sub: z.ZodString;
2831
+ reason: z.ZodString;
2832
+ }, z.core.$strip>, z.ZodObject<{
2833
+ type: z.ZodLiteral<"system">;
2834
+ component: z.ZodString;
2835
+ }, z.core.$strip>], "type">;
2836
+ name: z.ZodString;
2837
+ }, z.core.$strip>, z.ZodObject<{
2838
+ type: z.ZodLiteral<"dashboard.event-log.list">;
2839
+ requestId: z.ZodString;
2840
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2841
+ type: z.ZodLiteral<"user">;
2842
+ sub: z.ZodString;
2843
+ }, z.core.$strip>, z.ZodObject<{
2844
+ type: z.ZodLiteral<"api_key">;
2845
+ keyId: z.ZodString;
2846
+ ownerSub: z.ZodString;
2847
+ }, z.core.$strip>, z.ZodObject<{
2848
+ type: z.ZodLiteral<"service_account">;
2849
+ id: z.ZodString;
2850
+ }, z.core.$strip>, z.ZodObject<{
2851
+ type: z.ZodLiteral<"platform_operator">;
2852
+ sub: z.ZodString;
2853
+ reason: z.ZodString;
2854
+ }, z.core.$strip>, z.ZodObject<{
2855
+ type: z.ZodLiteral<"system">;
2856
+ component: z.ZodString;
2857
+ }, z.core.$strip>], "type">;
2858
+ orgId: z.ZodString;
2859
+ routingKey: z.ZodOptional<z.ZodString>;
2860
+ event: z.ZodOptional<z.ZodString>;
2861
+ status: z.ZodOptional<z.ZodEnum<{
2862
+ failed: "failed";
2863
+ received: "received";
2864
+ processed: "processed";
2865
+ duplicate: "duplicate";
2866
+ lockfile_missing: "lockfile_missing";
2867
+ }>>;
2868
+ fromTimestamp: z.ZodOptional<z.ZodString>;
2869
+ toTimestamp: z.ZodOptional<z.ZodString>;
2870
+ deliveryId: z.ZodOptional<z.ZodString>;
2871
+ limit: z.ZodOptional<z.ZodNumber>;
2872
+ cursor: z.ZodOptional<z.ZodString>;
2873
+ }, z.core.$strip>, z.ZodObject<{
2874
+ type: z.ZodLiteral<"dashboard.event-log.detail">;
2875
+ requestId: z.ZodString;
2876
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2877
+ type: z.ZodLiteral<"user">;
2878
+ sub: z.ZodString;
2879
+ }, z.core.$strip>, z.ZodObject<{
2880
+ type: z.ZodLiteral<"api_key">;
2881
+ keyId: z.ZodString;
2882
+ ownerSub: z.ZodString;
2883
+ }, z.core.$strip>, z.ZodObject<{
2884
+ type: z.ZodLiteral<"service_account">;
2885
+ id: z.ZodString;
2886
+ }, z.core.$strip>, z.ZodObject<{
2887
+ type: z.ZodLiteral<"platform_operator">;
2888
+ sub: z.ZodString;
2889
+ reason: z.ZodString;
2890
+ }, z.core.$strip>, z.ZodObject<{
2891
+ type: z.ZodLiteral<"system">;
2892
+ component: z.ZodString;
2893
+ }, z.core.$strip>], "type">;
2894
+ orgId: z.ZodString;
2895
+ deliveryId: z.ZodString;
2896
+ routingKey: z.ZodOptional<z.ZodString>;
2897
+ }, z.core.$strip>, z.ZodObject<{
2898
+ type: z.ZodLiteral<"dashboard.event-log.payload.stream">;
2899
+ requestId: z.ZodString;
2900
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2901
+ type: z.ZodLiteral<"user">;
2902
+ sub: z.ZodString;
2903
+ }, z.core.$strip>, z.ZodObject<{
2904
+ type: z.ZodLiteral<"api_key">;
2905
+ keyId: z.ZodString;
2906
+ ownerSub: z.ZodString;
2907
+ }, z.core.$strip>, z.ZodObject<{
2908
+ type: z.ZodLiteral<"service_account">;
2909
+ id: z.ZodString;
2910
+ }, z.core.$strip>, z.ZodObject<{
2911
+ type: z.ZodLiteral<"platform_operator">;
2912
+ sub: z.ZodString;
2913
+ reason: z.ZodString;
2914
+ }, z.core.$strip>, z.ZodObject<{
2915
+ type: z.ZodLiteral<"system">;
2916
+ component: z.ZodString;
2917
+ }, z.core.$strip>], "type">;
2918
+ orgId: z.ZodString;
2919
+ deliveryId: z.ZodString;
2920
+ routingKey: z.ZodOptional<z.ZodString>;
2921
+ }, z.core.$strip>, z.ZodObject<{
2922
+ type: z.ZodLiteral<"dashboard.global-workflows.get">;
2923
+ requestId: z.ZodString;
2924
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2925
+ type: z.ZodLiteral<"user">;
2926
+ sub: z.ZodString;
2927
+ }, z.core.$strip>, z.ZodObject<{
2928
+ type: z.ZodLiteral<"api_key">;
2929
+ keyId: z.ZodString;
2930
+ ownerSub: z.ZodString;
2931
+ }, z.core.$strip>, z.ZodObject<{
2932
+ type: z.ZodLiteral<"service_account">;
2933
+ id: z.ZodString;
2934
+ }, z.core.$strip>, z.ZodObject<{
2935
+ type: z.ZodLiteral<"platform_operator">;
2936
+ sub: z.ZodString;
2937
+ reason: z.ZodString;
2938
+ }, z.core.$strip>, z.ZodObject<{
2939
+ type: z.ZodLiteral<"system">;
2940
+ component: z.ZodString;
2941
+ }, z.core.$strip>], "type">;
2942
+ }, z.core.$strip>, z.ZodObject<{
2943
+ type: z.ZodLiteral<"dashboard.global-workflows.update">;
2944
+ requestId: z.ZodString;
2945
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2946
+ type: z.ZodLiteral<"user">;
2947
+ sub: z.ZodString;
2948
+ }, z.core.$strip>, z.ZodObject<{
2949
+ type: z.ZodLiteral<"api_key">;
2950
+ keyId: z.ZodString;
2951
+ ownerSub: z.ZodString;
2952
+ }, z.core.$strip>, z.ZodObject<{
2953
+ type: z.ZodLiteral<"service_account">;
2954
+ id: z.ZodString;
2955
+ }, z.core.$strip>, z.ZodObject<{
2956
+ type: z.ZodLiteral<"platform_operator">;
2957
+ sub: z.ZodString;
2958
+ reason: z.ZodString;
2959
+ }, z.core.$strip>, z.ZodObject<{
2960
+ type: z.ZodLiteral<"system">;
2961
+ component: z.ZodString;
2962
+ }, z.core.$strip>], "type">;
2963
+ enabled: z.ZodOptional<z.ZodBoolean>;
2964
+ allowedRepos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2965
+ routingKey: z.ZodOptional<z.ZodString>;
2966
+ pattern: z.ZodString;
2967
+ }, z.core.$strip>>>>;
2968
+ deniedRepos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2969
+ routingKey: z.ZodOptional<z.ZodString>;
2970
+ pattern: z.ZodString;
2971
+ }, z.core.$strip>>>>;
2972
+ elevatedRepos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2973
+ routingKey: z.ZodOptional<z.ZodString>;
2974
+ pattern: z.ZodString;
2975
+ }, z.core.$strip>>>>;
2976
+ }, z.core.$strip>, z.ZodObject<{
2977
+ type: z.ZodLiteral<"dashboard.access-log.list">;
2978
+ requestId: z.ZodString;
2979
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2980
+ type: z.ZodLiteral<"user">;
2981
+ sub: z.ZodString;
2982
+ }, z.core.$strip>, z.ZodObject<{
2983
+ type: z.ZodLiteral<"api_key">;
2984
+ keyId: z.ZodString;
2985
+ ownerSub: z.ZodString;
2986
+ }, z.core.$strip>, z.ZodObject<{
2987
+ type: z.ZodLiteral<"service_account">;
2988
+ id: z.ZodString;
2989
+ }, z.core.$strip>, z.ZodObject<{
2990
+ type: z.ZodLiteral<"platform_operator">;
2991
+ sub: z.ZodString;
2992
+ reason: z.ZodString;
2993
+ }, z.core.$strip>, z.ZodObject<{
2994
+ type: z.ZodLiteral<"system">;
2995
+ component: z.ZodString;
2996
+ }, z.core.$strip>], "type">;
2997
+ orgId: z.ZodString;
2998
+ actorType: z.ZodOptional<z.ZodEnum<{
2999
+ user: "user";
3000
+ api_key: "api_key";
3001
+ service_account: "service_account";
3002
+ platform_operator: "platform_operator";
3003
+ system: "system";
3004
+ }>>;
3005
+ actorId: z.ZodOptional<z.ZodString>;
3006
+ action: z.ZodOptional<z.ZodEnum<{
3007
+ "run.detail.read": "run.detail.read";
3008
+ "run.payload.read": "run.payload.read";
3009
+ "run.orch_logs.read": "run.orch_logs.read";
3010
+ "step.logs.read": "step.logs.read";
3011
+ "run.cancel": "run.cancel";
3012
+ "run.rerun": "run.rerun";
3013
+ "run.manual_schedule": "run.manual_schedule";
3014
+ "job.cancel": "job.cancel";
3015
+ "event_log.list.read": "event_log.list.read";
3016
+ "event_log.detail.read": "event_log.detail.read";
3017
+ "event_log.payload.read": "event_log.payload.read";
3018
+ "environment.list.read": "environment.list.read";
3019
+ "environment.get.read": "environment.get.read";
3020
+ "environment.create": "environment.create";
3021
+ "environment.update": "environment.update";
3022
+ "environment.delete": "environment.delete";
3023
+ "env_var.list.read": "env_var.list.read";
3024
+ "env_var.set": "env_var.set";
3025
+ "env_var.delete": "env_var.delete";
3026
+ "source_override.list.read": "source_override.list.read";
3027
+ "source_override.set": "source_override.set";
3028
+ "source_override.delete": "source_override.delete";
3029
+ "env_binding.list.read": "env_binding.list.read";
3030
+ "env_binding.set": "env_binding.set";
3031
+ "secret.list.read": "secret.list.read";
3032
+ "secret.set": "secret.set";
3033
+ "secret.delete": "secret.delete";
3034
+ "secret.reveal": "secret.reveal";
3035
+ "secret_scope.create": "secret_scope.create";
3036
+ "secret_scope.rename": "secret_scope.rename";
3037
+ "secret_scope.delete": "secret_scope.delete";
3038
+ "environment.history.read": "environment.history.read";
3039
+ "held_run.list.read": "held_run.list.read";
3040
+ "held_run.approve": "held_run.approve";
3041
+ "held_run.reject": "held_run.reject";
3042
+ "registration.list.read": "registration.list.read";
3043
+ "registration.disable": "registration.disable";
3044
+ "registration.delete": "registration.delete";
3045
+ "diagnostics.read": "diagnostics.read";
3046
+ "scaler.capacity.read": "scaler.capacity.read";
3047
+ "scaler.agents.read": "scaler.agents.read";
3048
+ "backend.list.read": "backend.list.read";
3049
+ "backend.get.read": "backend.get.read";
3050
+ "backend.sync": "backend.sync";
3051
+ "backend.sync.one": "backend.sync.one";
3052
+ "backend.test": "backend.test";
3053
+ "global_workflows.get.read": "global_workflows.get.read";
3054
+ "global_workflows.update": "global_workflows.update";
3055
+ "access_log.list.read": "access_log.list.read";
3056
+ "event_dlq.list.read": "event_dlq.list.read";
3057
+ "event_dlq.retry": "event_dlq.retry";
3058
+ "event_dlq.discard": "event_dlq.discard";
3059
+ archive_chunk: "archive_chunk";
3060
+ }>>;
3061
+ source: z.ZodOptional<z.ZodEnum<{
3062
+ platform_proxy: "platform_proxy";
3063
+ admin_http: "admin_http";
3064
+ admin_cli: "admin_cli";
3065
+ }>>;
3066
+ outcome: z.ZodOptional<z.ZodEnum<{
3067
+ error: "error";
3068
+ allowed: "allowed";
3069
+ denied: "denied";
3070
+ }>>;
3071
+ targetType: z.ZodOptional<z.ZodEnum<{
3072
+ run: "run";
3073
+ job: "job";
3074
+ step: "step";
3075
+ payload: "payload";
3076
+ event_log: "event_log";
3077
+ event_log_payload: "event_log_payload";
3078
+ secret_scope: "secret_scope";
3079
+ environment: "environment";
3080
+ registration: "registration";
3081
+ backend: "backend";
3082
+ diagnostics: "diagnostics";
3083
+ scaler: "scaler";
3084
+ held_run: "held_run";
3085
+ access_log: "access_log";
3086
+ event_dlq: "event_dlq";
3087
+ }>>;
3088
+ targetId: z.ZodOptional<z.ZodString>;
3089
+ fromTimestamp: z.ZodOptional<z.ZodString>;
3090
+ toTimestamp: z.ZodOptional<z.ZodString>;
3091
+ q: z.ZodOptional<z.ZodString>;
3092
+ limit: z.ZodOptional<z.ZodNumber>;
3093
+ cursor: z.ZodOptional<z.ZodString>;
3094
+ }, z.core.$strip>], "type">;
3095
+ /** Dashboard messages flowing from Orchestrator to Platform. */
3096
+ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3097
+ type: z.ZodLiteral<"dashboard.run.detail.response">;
3098
+ requestId: z.ZodString;
3099
+ jobs: z.ZodArray<z.ZodObject<{
3100
+ jobId: z.ZodString;
3101
+ jobName: z.ZodString;
3102
+ status: z.ZodString;
3103
+ matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3104
+ startedAt: z.ZodNullable<z.ZodNumber>;
3105
+ completedAt: z.ZodNullable<z.ZodNumber>;
3106
+ durationMs: z.ZodNullable<z.ZodNumber>;
3107
+ agentId: z.ZodNullable<z.ZodString>;
3108
+ orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3109
+ errorMessage: z.ZodNullable<z.ZodString>;
3110
+ runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3111
+ outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
3112
+ secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3113
+ steps: z.ZodArray<z.ZodObject<{
3114
+ stepIndex: z.ZodNumber;
3115
+ stepName: z.ZodString;
3116
+ status: z.ZodString;
3117
+ startedAt: z.ZodNullable<z.ZodNumber>;
3118
+ completedAt: z.ZodNullable<z.ZodNumber>;
3119
+ durationMs: z.ZodNullable<z.ZodNumber>;
3120
+ exitCode: z.ZodNullable<z.ZodNumber>;
3121
+ errorMessage: z.ZodNullable<z.ZodString>;
3122
+ stepType: z.ZodOptional<z.ZodString>;
3123
+ secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3124
+ }, z.core.$strip>>;
3125
+ }, z.core.$strip>>;
3126
+ trustContext: z.ZodOptional<z.ZodObject<{
3127
+ trustTier: z.ZodNullable<z.ZodEnum<{
3128
+ unknown: "unknown";
3129
+ trusted: "trusted";
3130
+ known: "known";
3131
+ }>>;
3132
+ lockFileSource: z.ZodNullable<z.ZodEnum<{
3133
+ head: "head";
3134
+ base: "base";
3135
+ }>>;
3136
+ contributorUsername: z.ZodNullable<z.ZodString>;
3137
+ }, z.core.$strip>>;
3138
+ error: z.ZodOptional<z.ZodString>;
3139
+ }, z.core.$strip>, z.ZodObject<{
3140
+ type: z.ZodLiteral<"dashboard.step.logs.response">;
3141
+ requestId: z.ZodString;
3142
+ lines: z.ZodArray<z.ZodString>;
3143
+ totalLines: z.ZodNumber;
3144
+ error: z.ZodOptional<z.ZodString>;
3145
+ }, z.core.$strip>, z.ZodObject<{
3146
+ type: z.ZodLiteral<"run.rerun.response">;
3147
+ requestId: z.ZodString;
3148
+ newRunId: z.ZodOptional<z.ZodString>;
3149
+ error: z.ZodOptional<z.ZodString>;
3150
+ errorCode: z.ZodOptional<z.ZodString>;
3151
+ }, z.core.$strip>, z.ZodObject<{
3152
+ type: z.ZodLiteral<"run.manual_schedule.response">;
3153
+ requestId: z.ZodString;
3154
+ newRunId: z.ZodOptional<z.ZodString>;
3155
+ error: z.ZodOptional<z.ZodString>;
3156
+ }, z.core.$strip>, z.ZodObject<{
3157
+ type: z.ZodLiteral<"run.cancel.response">;
3158
+ requestId: z.ZodString;
3159
+ cancelledJobs: z.ZodOptional<z.ZodNumber>;
3160
+ error: z.ZodOptional<z.ZodString>;
3161
+ }, z.core.$strip>, z.ZodObject<{
3162
+ type: z.ZodLiteral<"dashboard.payload.response">;
3163
+ requestId: z.ZodString;
3164
+ payload: z.ZodOptional<z.ZodUnknown>;
3165
+ error: z.ZodOptional<z.ZodString>;
3166
+ }, z.core.$strip>, z.ZodObject<{
3167
+ type: z.ZodLiteral<"dashboard.orch.logs.response">;
3168
+ requestId: z.ZodString;
3169
+ lines: z.ZodArray<z.ZodString>;
3170
+ totalLines: z.ZodNumber;
3171
+ error: z.ZodOptional<z.ZodString>;
3172
+ }, z.core.$strip>, z.ZodObject<{
3173
+ type: z.ZodLiteral<"dashboard.environments.list.response">;
3174
+ requestId: z.ZodString;
3175
+ environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3176
+ id: z.ZodString;
3177
+ name: z.ZodString;
3178
+ type: z.ZodEnum<{
3179
+ fixed: "fixed";
3180
+ glob: "glob";
3181
+ }>;
3182
+ globPattern: z.ZodNullable<z.ZodString>;
3183
+ enabled: z.ZodBoolean;
3184
+ createdAt: z.ZodCoercedString<unknown>;
3185
+ updatedAt: z.ZodCoercedString<unknown>;
3186
+ }, z.core.$strip>>>;
3187
+ error: z.ZodOptional<z.ZodString>;
3188
+ }, z.core.$strip>, z.ZodObject<{
3189
+ type: z.ZodLiteral<"dashboard.environments.get.response">;
3190
+ requestId: z.ZodString;
3191
+ environment: z.ZodOptional<z.ZodObject<{
3192
+ id: z.ZodString;
3193
+ name: z.ZodString;
3194
+ type: z.ZodEnum<{
3195
+ fixed: "fixed";
3196
+ glob: "glob";
3197
+ }>;
3198
+ globPattern: z.ZodNullable<z.ZodString>;
3199
+ branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
3200
+ concurrencyLimit: z.ZodNullable<z.ZodNumber>;
3201
+ concurrencyStrategy: z.ZodNullable<z.ZodEnum<{
3202
+ queue: "queue";
3203
+ "cancel-pending": "cancel-pending";
3204
+ }>>;
3205
+ requiredReviewers: z.ZodNullable<z.ZodNumber>;
3206
+ waitTimerSeconds: z.ZodNullable<z.ZodNumber>;
3207
+ holdExpirySeconds: z.ZodNullable<z.ZodNumber>;
3208
+ enabled: z.ZodBoolean;
3209
+ createdAt: z.ZodCoercedString<unknown>;
3210
+ updatedAt: z.ZodCoercedString<unknown>;
3211
+ }, z.core.$strip>>;
3212
+ error: z.ZodOptional<z.ZodString>;
3213
+ }, z.core.$strip>, z.ZodObject<{
3214
+ type: z.ZodLiteral<"dashboard.environments.create.response">;
3215
+ requestId: z.ZodString;
3216
+ environmentId: z.ZodOptional<z.ZodString>;
3217
+ error: z.ZodOptional<z.ZodString>;
3218
+ }, z.core.$strip>, z.ZodObject<{
3219
+ type: z.ZodLiteral<"dashboard.environments.update.response">;
3220
+ requestId: z.ZodString;
3221
+ error: z.ZodOptional<z.ZodString>;
3222
+ }, z.core.$strip>, z.ZodObject<{
3223
+ type: z.ZodLiteral<"dashboard.environments.delete.response">;
3224
+ requestId: z.ZodString;
3225
+ error: z.ZodOptional<z.ZodString>;
3226
+ }, z.core.$strip>, z.ZodObject<{
3227
+ type: z.ZodLiteral<"dashboard.environments.variables.list.response">;
3228
+ requestId: z.ZodString;
3229
+ variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
3230
+ key: z.ZodString;
3231
+ value: z.ZodString;
3232
+ locked: z.ZodBoolean;
3233
+ }, z.core.$strip>>>;
3234
+ error: z.ZodOptional<z.ZodString>;
3235
+ }, z.core.$strip>, z.ZodObject<{
3236
+ type: z.ZodLiteral<"dashboard.environments.variables.set.response">;
3237
+ requestId: z.ZodString;
3238
+ error: z.ZodOptional<z.ZodString>;
3239
+ }, z.core.$strip>, z.ZodObject<{
3240
+ type: z.ZodLiteral<"dashboard.environments.variables.delete.response">;
3241
+ requestId: z.ZodString;
3242
+ error: z.ZodOptional<z.ZodString>;
3243
+ }, z.core.$strip>, z.ZodObject<{
3244
+ type: z.ZodLiteral<"dashboard.environments.source-overrides.list.response">;
3245
+ requestId: z.ZodString;
3246
+ overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
3247
+ key: z.ZodString;
3248
+ value: z.ZodString;
3249
+ }, z.core.$strip>>>;
3250
+ error: z.ZodOptional<z.ZodString>;
3251
+ }, z.core.$strip>, z.ZodObject<{
3252
+ type: z.ZodLiteral<"dashboard.environments.source-overrides.set.response">;
3253
+ requestId: z.ZodString;
3254
+ error: z.ZodOptional<z.ZodString>;
3255
+ }, z.core.$strip>, z.ZodObject<{
3256
+ type: z.ZodLiteral<"dashboard.environments.source-overrides.delete.response">;
3257
+ requestId: z.ZodString;
3258
+ error: z.ZodOptional<z.ZodString>;
3259
+ }, z.core.$strip>, z.ZodObject<{
3260
+ type: z.ZodLiteral<"dashboard.environments.bindings.list.response">;
3261
+ requestId: z.ZodString;
3262
+ scopePatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
3263
+ error: z.ZodOptional<z.ZodString>;
3264
+ }, z.core.$strip>, z.ZodObject<{
3265
+ type: z.ZodLiteral<"dashboard.environments.bindings.set.response">;
3266
+ requestId: z.ZodString;
3267
+ error: z.ZodOptional<z.ZodString>;
3268
+ }, z.core.$strip>, z.ZodObject<{
3269
+ type: z.ZodLiteral<"dashboard.environments.secrets.list.response">;
3270
+ requestId: z.ZodString;
3271
+ secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3272
+ scope: z.ZodString;
3273
+ key: z.ZodString;
3274
+ createdAt: z.ZodCoercedString<unknown>;
3275
+ updatedAt: z.ZodCoercedString<unknown>;
3276
+ }, z.core.$strip>>>;
3277
+ error: z.ZodOptional<z.ZodString>;
3278
+ }, z.core.$strip>, z.ZodObject<{
3279
+ type: z.ZodLiteral<"dashboard.environments.secrets.set.response">;
3280
+ requestId: z.ZodString;
3281
+ error: z.ZodOptional<z.ZodString>;
3282
+ }, z.core.$strip>, z.ZodObject<{
3283
+ type: z.ZodLiteral<"dashboard.environments.secrets.delete.response">;
3284
+ requestId: z.ZodString;
3285
+ error: z.ZodOptional<z.ZodString>;
3286
+ }, z.core.$strip>, z.ZodObject<{
3287
+ type: z.ZodLiteral<"dashboard.environments.secrets.scope.create.response">;
3288
+ requestId: z.ZodString;
3289
+ error: z.ZodOptional<z.ZodString>;
3290
+ }, z.core.$strip>, z.ZodObject<{
3291
+ type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename.response">;
3292
+ requestId: z.ZodString;
3293
+ error: z.ZodOptional<z.ZodString>;
3294
+ }, z.core.$strip>, z.ZodObject<{
3295
+ type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete.response">;
3296
+ requestId: z.ZodString;
3297
+ error: z.ZodOptional<z.ZodString>;
3298
+ }, z.core.$strip>, z.ZodObject<{
3299
+ type: z.ZodLiteral<"dashboard.environments.history.response">;
3300
+ requestId: z.ZodString;
3301
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3302
+ id: z.ZodString;
3303
+ runId: z.ZodString;
3304
+ workflowName: z.ZodString;
3305
+ status: z.ZodString;
3306
+ branch: z.ZodNullable<z.ZodString>;
3307
+ commitSha: z.ZodNullable<z.ZodString>;
3308
+ startedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
3309
+ completedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
3310
+ environment: z.ZodNullable<z.ZodString>;
3311
+ }, z.core.$strip>>>;
3312
+ error: z.ZodOptional<z.ZodString>;
3313
+ }, z.core.$strip>, z.ZodObject<{
3314
+ type: z.ZodLiteral<"dashboard.held-runs.list.response">;
3315
+ requestId: z.ZodString;
3316
+ heldRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
3317
+ id: z.ZodString;
3318
+ runId: z.ZodString;
3319
+ environmentId: z.ZodString;
3320
+ environmentName: z.ZodString;
3321
+ holdType: z.ZodString;
3322
+ queueType: z.ZodEnum<{
3323
+ environment: "environment";
3324
+ security: "security";
3325
+ }>;
3326
+ status: z.ZodEnum<{
3327
+ pending: "pending";
3328
+ rejected: "rejected";
3329
+ approved: "approved";
3330
+ expired: "expired";
3331
+ }>;
3332
+ requestedAt: z.ZodCoercedString<unknown>;
3333
+ resolvedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
3334
+ resolvedBy: z.ZodNullable<z.ZodString>;
3335
+ reason: z.ZodNullable<z.ZodString>;
3336
+ expiresAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
3337
+ contributorUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3338
+ trustTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3339
+ }, z.core.$strip>>>;
3340
+ error: z.ZodOptional<z.ZodString>;
3341
+ }, z.core.$strip>, z.ZodObject<{
3342
+ type: z.ZodLiteral<"dashboard.held-runs.approve.response">;
3343
+ requestId: z.ZodString;
3344
+ error: z.ZodOptional<z.ZodString>;
3345
+ }, z.core.$strip>, z.ZodObject<{
3346
+ type: z.ZodLiteral<"dashboard.held-runs.reject.response">;
3347
+ requestId: z.ZodString;
3348
+ error: z.ZodOptional<z.ZodString>;
3349
+ }, z.core.$strip>, z.ZodObject<{
3350
+ type: z.ZodLiteral<"dashboard.registrations.list.response">;
3351
+ requestId: z.ZodString;
3352
+ registrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
3353
+ id: z.ZodString;
3354
+ repoIdentifier: z.ZodString;
3355
+ workflowName: z.ZodString;
3356
+ triggerTypes: z.ZodArray<z.ZodString>;
3357
+ triggers: z.ZodArray<z.ZodUnknown>;
3358
+ lastTriggeredAt: z.ZodNullable<z.ZodString>;
3359
+ nextFireAt: z.ZodNullable<z.ZodString>;
3360
+ sourceRepos: z.ZodArray<z.ZodString>;
3361
+ createdAt: z.ZodString;
3362
+ updatedAt: z.ZodString;
3363
+ disabled: z.ZodOptional<z.ZodBoolean>;
3364
+ commitSha: z.ZodOptional<z.ZodString>;
3365
+ sourceFile: z.ZodOptional<z.ZodString>;
3366
+ source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3367
+ routingKey: z.ZodString;
3368
+ name: z.ZodNullable<z.ZodString>;
3369
+ subtype: z.ZodNullable<z.ZodEnum<{
3370
+ github_app: "github_app";
3371
+ generic_webhook: "generic_webhook";
3372
+ universal_git: "universal_git";
3373
+ internal: "internal";
3374
+ }>>;
3375
+ provider: z.ZodString;
3376
+ }, z.core.$strip>>>;
3377
+ }, z.core.$strip>>>;
3378
+ registryVersion: z.ZodNumber;
3379
+ registryUpdatedAt: z.ZodString;
3380
+ error: z.ZodOptional<z.ZodString>;
3381
+ }, z.core.$strip>, z.ZodObject<{
3382
+ type: z.ZodLiteral<"dashboard.registration.disable.result">;
3383
+ requestId: z.ZodString;
3384
+ success: z.ZodBoolean;
3385
+ error: z.ZodOptional<z.ZodString>;
3386
+ }, z.core.$strip>, z.ZodObject<{
3387
+ type: z.ZodLiteral<"dashboard.registration.delete.result">;
3388
+ requestId: z.ZodString;
3389
+ success: z.ZodBoolean;
3390
+ error: z.ZodOptional<z.ZodString>;
3391
+ }, z.core.$strip>, z.ZodObject<{
3392
+ type: z.ZodLiteral<"dashboard.diagnostics.response">;
3393
+ requestId: z.ZodString;
3394
+ orchestrator: z.ZodObject<{
3395
+ version: z.ZodNullable<z.ZodString>;
3396
+ mode: z.ZodNullable<z.ZodString>;
3397
+ role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3398
+ coordinator: "coordinator";
3399
+ worker: "worker";
3400
+ }>>>;
3401
+ scalerBackends: z.ZodArray<z.ZodString>;
3402
+ runningJobs: z.ZodNumber;
3403
+ queuedJobs: z.ZodNumber;
3404
+ pendingLabelGaps: z.ZodArray<z.ZodString>;
3405
+ instanceId: z.ZodOptional<z.ZodString>;
3406
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3407
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3408
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3409
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3410
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3411
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3412
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3413
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3414
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3415
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3416
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3417
+ raftRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3418
+ follower: "follower";
3419
+ candidate: "candidate";
3420
+ leader: "leader";
3421
+ }>>>;
3422
+ raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3423
+ raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3424
+ agentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3425
+ statefulAgentCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3426
+ }, z.core.$strip>;
3427
+ agents: z.ZodArray<z.ZodObject<{
3428
+ agentId: z.ZodString;
3429
+ labels: z.ZodArray<z.ZodString>;
3430
+ platform: z.ZodString;
3431
+ arch: z.ZodString;
3432
+ activeJobs: z.ZodNumber;
3433
+ maxConcurrency: z.ZodNumber;
3434
+ lastHeartbeatAt: z.ZodNumber;
3435
+ registeredAt: z.ZodNumber;
3436
+ version: z.ZodNullable<z.ZodString>;
3437
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3438
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3439
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3440
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3441
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3442
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3443
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3444
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3445
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3446
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3447
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3448
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3449
+ }, z.core.$strip>>;
3450
+ scalers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3451
+ name: z.ZodString;
3452
+ type: z.ZodString;
3453
+ maxAgents: z.ZodNumber;
3454
+ activeAgents: z.ZodNumber;
3455
+ labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
3456
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3457
+ }, z.core.$strip>>>;
3458
+ peers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3459
+ instanceId: z.ZodString;
3460
+ role: z.ZodEnum<{
3461
+ coordinator: "coordinator";
3462
+ worker: "worker";
3463
+ }>;
3464
+ connected: z.ZodBoolean;
3465
+ lastHeartbeatAt: z.ZodNumber;
3466
+ draining: z.ZodBoolean;
3467
+ agents: z.ZodArray<z.ZodObject<{
3468
+ agentId: z.ZodString;
3469
+ labels: z.ZodArray<z.ZodString>;
3470
+ platform: z.ZodString;
3471
+ arch: z.ZodString;
3472
+ activeJobs: z.ZodNumber;
3473
+ maxConcurrency: z.ZodNumber;
3474
+ }, z.core.$strip>>;
3475
+ hostname: z.ZodOptional<z.ZodString>;
3476
+ osRelease: z.ZodOptional<z.ZodString>;
3477
+ totalMemoryMb: z.ZodOptional<z.ZodNumber>;
3478
+ memoryUsedMb: z.ZodOptional<z.ZodNumber>;
3479
+ memoryAvailableMb: z.ZodOptional<z.ZodNumber>;
3480
+ cpuCount: z.ZodOptional<z.ZodNumber>;
3481
+ uptimeSeconds: z.ZodOptional<z.ZodNumber>;
3482
+ nodeVersion: z.ZodOptional<z.ZodString>;
3483
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3484
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3485
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3486
+ scalerCapacity: z.ZodOptional<z.ZodArray<z.ZodObject<{
3487
+ name: z.ZodOptional<z.ZodString>;
3488
+ type: z.ZodOptional<z.ZodString>;
3489
+ activeCount: z.ZodNumber;
3490
+ maxAgents: z.ZodNumber;
3491
+ labelSets: z.ZodArray<z.ZodArray<z.ZodString>>;
3492
+ }, z.core.$strip>>>;
3493
+ dependencyHealth: z.ZodOptional<z.ZodArray<z.ZodObject<{
3494
+ name: z.ZodString;
3495
+ status: z.ZodEnum<{
3496
+ pass: "pass";
3497
+ warn: "warn";
3498
+ fail: "fail";
3499
+ }>;
3500
+ message: z.ZodNullable<z.ZodString>;
3501
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3502
+ durationMs: z.ZodOptional<z.ZodNumber>;
3503
+ }, z.core.$strip>>>;
3504
+ raftTerm: z.ZodOptional<z.ZodNumber>;
3505
+ raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3506
+ }, z.core.$strip>>>;
3507
+ error: z.ZodOptional<z.ZodString>;
3508
+ }, z.core.$strip>, z.ZodObject<{
3509
+ type: z.ZodLiteral<"dashboard.scaler.capacity.response">;
3510
+ requestId: z.ZodString;
3511
+ scalers: z.ZodArray<z.ZodObject<{
3512
+ scalerType: z.ZodString;
3513
+ name: z.ZodString;
3514
+ activeAgents: z.ZodNumber;
3515
+ maxAgents: z.ZodNumber;
3516
+ history: z.ZodArray<z.ZodNumber>;
3517
+ }, z.core.$strip>>;
3518
+ error: z.ZodOptional<z.ZodString>;
3519
+ }, z.core.$strip>, z.ZodObject<{
3520
+ type: z.ZodLiteral<"dashboard.scaler.agents.response">;
3521
+ requestId: z.ZodString;
3522
+ scalerName: z.ZodNullable<z.ZodString>;
3523
+ agents: z.ZodArray<z.ZodObject<{
3524
+ agentId: z.ZodString;
3525
+ labels: z.ZodArray<z.ZodString>;
3526
+ platform: z.ZodString;
3527
+ arch: z.ZodString;
3528
+ activeJobs: z.ZodNumber;
3529
+ maxConcurrency: z.ZodNumber;
3530
+ lastHeartbeatAt: z.ZodNumber;
3531
+ registeredAt: z.ZodNumber;
3532
+ version: z.ZodNullable<z.ZodString>;
3533
+ hostname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3534
+ osRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3535
+ osVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3536
+ totalMemoryMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3537
+ cpuCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3538
+ nodeVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3539
+ memoryUsedMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3540
+ memoryAvailableMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3541
+ uptimeSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3542
+ runningAsUser: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3543
+ runningAsUid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3544
+ scalerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3545
+ }, z.core.$strip>>;
3546
+ error: z.ZodOptional<z.ZodString>;
3547
+ }, z.core.$strip>, z.ZodObject<{
3548
+ type: z.ZodLiteral<"dashboard.backends.list.response">;
3549
+ requestId: z.ZodString;
3550
+ backends: z.ZodOptional<z.ZodArray<z.ZodObject<{
3551
+ id: z.ZodString;
3552
+ name: z.ZodString;
3553
+ backendType: z.ZodEnum<{
3554
+ pg: "pg";
3555
+ vault: "vault";
3556
+ }>;
3557
+ scopeFilter: z.ZodString;
3558
+ syncIntervalMs: z.ZodNumber;
3559
+ enabled: z.ZodBoolean;
3560
+ healthStatus: z.ZodEnum<{
3561
+ unknown: "unknown";
3562
+ healthy: "healthy";
3563
+ degraded: "degraded";
3564
+ unreachable: "unreachable";
3565
+ }>;
3566
+ scopeCount: z.ZodNumber;
3567
+ lastSyncAt: z.ZodNullable<z.ZodString>;
3568
+ lastSyncError: z.ZodNullable<z.ZodString>;
3569
+ lastHealthCheckAt: z.ZodNullable<z.ZodString>;
3570
+ createdAt: z.ZodString;
3571
+ updatedAt: z.ZodString;
3572
+ }, z.core.$strip>>>;
3573
+ error: z.ZodOptional<z.ZodString>;
3574
+ }, z.core.$strip>, z.ZodObject<{
3575
+ type: z.ZodLiteral<"dashboard.backends.get.response">;
3576
+ requestId: z.ZodString;
3577
+ backend: z.ZodOptional<z.ZodObject<{
3578
+ id: z.ZodString;
3579
+ name: z.ZodString;
3580
+ backendType: z.ZodEnum<{
3581
+ pg: "pg";
3582
+ vault: "vault";
3583
+ }>;
3584
+ scopeFilter: z.ZodString;
3585
+ syncIntervalMs: z.ZodNumber;
3586
+ enabled: z.ZodBoolean;
3587
+ healthStatus: z.ZodEnum<{
3588
+ unknown: "unknown";
3589
+ healthy: "healthy";
3590
+ degraded: "degraded";
3591
+ unreachable: "unreachable";
3592
+ }>;
3593
+ scopeCount: z.ZodNumber;
3594
+ lastSyncAt: z.ZodNullable<z.ZodString>;
3595
+ lastSyncError: z.ZodNullable<z.ZodString>;
3596
+ lastHealthCheckAt: z.ZodNullable<z.ZodString>;
3597
+ createdAt: z.ZodString;
3598
+ updatedAt: z.ZodString;
3599
+ }, z.core.$strip>>;
3600
+ error: z.ZodOptional<z.ZodString>;
3601
+ }, z.core.$strip>, z.ZodObject<{
3602
+ type: z.ZodLiteral<"dashboard.backends.sync.response">;
3603
+ requestId: z.ZodString;
3604
+ results: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
3605
+ error: z.ZodOptional<z.ZodString>;
3606
+ }, z.core.$strip>, z.ZodObject<{
3607
+ type: z.ZodLiteral<"dashboard.backends.sync.one.response">;
3608
+ requestId: z.ZodString;
3609
+ synced: z.ZodOptional<z.ZodBoolean>;
3610
+ scopeCount: z.ZodOptional<z.ZodNumber>;
3611
+ error: z.ZodOptional<z.ZodString>;
3612
+ }, z.core.$strip>, z.ZodObject<{
3613
+ type: z.ZodLiteral<"dashboard.backends.test.response">;
3614
+ requestId: z.ZodString;
3615
+ ok: z.ZodOptional<z.ZodBoolean>;
3616
+ latencyMs: z.ZodOptional<z.ZodNumber>;
3617
+ error: z.ZodOptional<z.ZodString>;
3618
+ }, z.core.$strip>, z.ZodObject<{
3619
+ type: z.ZodLiteral<"dashboard.event-log.list.response">;
3620
+ requestId: z.ZodString;
3621
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
3622
+ deliveryId: z.ZodString;
3623
+ routingKey: z.ZodString;
3624
+ event: z.ZodString;
3625
+ action: z.ZodNullable<z.ZodString>;
3626
+ source: z.ZodEnum<{
3627
+ relay: "relay";
3628
+ direct: "direct";
3629
+ }>;
3630
+ provider: z.ZodString;
3631
+ repoIdentifier: z.ZodNullable<z.ZodString>;
3632
+ ref: z.ZodNullable<z.ZodString>;
3633
+ status: z.ZodEnum<{
3634
+ failed: "failed";
3635
+ received: "received";
3636
+ processed: "processed";
3637
+ duplicate: "duplicate";
3638
+ lockfile_missing: "lockfile_missing";
3639
+ }>;
3640
+ matchedCount: z.ZodNumber;
3641
+ runId: z.ZodNullable<z.ZodString>;
3642
+ errorMessage: z.ZodNullable<z.ZodString>;
3643
+ receivedAt: z.ZodString;
3644
+ payloadOmitted: z.ZodBoolean;
3645
+ payloadOmittedReason: z.ZodNullable<z.ZodEnum<{
3646
+ size_exceeded: "size_exceeded";
3647
+ storage_failed: "storage_failed";
3648
+ }>>;
3649
+ payloadSizeBytes: z.ZodNumber;
3650
+ payloadHash: z.ZodString;
3651
+ }, z.core.$strip>>>;
3652
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3653
+ error: z.ZodOptional<z.ZodString>;
3654
+ }, z.core.$strip>, z.ZodObject<{
3655
+ type: z.ZodLiteral<"dashboard.event-log.detail.response">;
3656
+ requestId: z.ZodString;
3657
+ item: z.ZodOptional<z.ZodObject<{
3658
+ deliveryId: z.ZodString;
3659
+ routingKey: z.ZodString;
3660
+ event: z.ZodString;
3661
+ action: z.ZodNullable<z.ZodString>;
3662
+ source: z.ZodEnum<{
3663
+ relay: "relay";
3664
+ direct: "direct";
3665
+ }>;
3666
+ provider: z.ZodString;
3667
+ repoIdentifier: z.ZodNullable<z.ZodString>;
3668
+ ref: z.ZodNullable<z.ZodString>;
3669
+ status: z.ZodEnum<{
3670
+ failed: "failed";
3671
+ received: "received";
3672
+ processed: "processed";
3673
+ duplicate: "duplicate";
3674
+ lockfile_missing: "lockfile_missing";
3675
+ }>;
3676
+ matchedCount: z.ZodNumber;
3677
+ runId: z.ZodNullable<z.ZodString>;
3678
+ errorMessage: z.ZodNullable<z.ZodString>;
3679
+ receivedAt: z.ZodString;
3680
+ payloadOmitted: z.ZodBoolean;
3681
+ payloadOmittedReason: z.ZodNullable<z.ZodEnum<{
3682
+ size_exceeded: "size_exceeded";
3683
+ storage_failed: "storage_failed";
3684
+ }>>;
3685
+ payloadSizeBytes: z.ZodNumber;
3686
+ payloadHash: z.ZodString;
3687
+ }, z.core.$strip>>;
3688
+ error: z.ZodOptional<z.ZodString>;
3689
+ }, z.core.$strip>, z.ZodObject<{
3690
+ type: z.ZodLiteral<"dashboard.event-log.payload.chunk">;
3691
+ requestId: z.ZodString;
3692
+ seq: z.ZodNumber;
3693
+ data: z.ZodString;
3694
+ isLast: z.ZodBoolean;
3695
+ error: z.ZodOptional<z.ZodEnum<{
3696
+ payload_unavailable: "payload_unavailable";
3697
+ not_found: "not_found";
3698
+ read_failed: "read_failed";
3699
+ forbidden: "forbidden";
3700
+ orch_stream_timeout: "orch_stream_timeout";
3701
+ orchestrator_unavailable: "orchestrator_unavailable";
3702
+ }>>;
3703
+ totalBytes: z.ZodOptional<z.ZodNumber>;
3704
+ }, z.core.$strip>, z.ZodObject<{
3705
+ type: z.ZodLiteral<"dashboard.global-workflows.get.response">;
3706
+ requestId: z.ZodString;
3707
+ settings: z.ZodOptional<z.ZodObject<{
3708
+ customerId: z.ZodString;
3709
+ enabled: z.ZodBoolean;
3710
+ allowedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
3711
+ routingKey: z.ZodOptional<z.ZodString>;
3712
+ pattern: z.ZodString;
3713
+ }, z.core.$strip>>>;
3714
+ deniedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
3715
+ routingKey: z.ZodOptional<z.ZodString>;
3716
+ pattern: z.ZodString;
3717
+ }, z.core.$strip>>>;
3718
+ elevatedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
3719
+ routingKey: z.ZodOptional<z.ZodString>;
3720
+ pattern: z.ZodString;
3721
+ }, z.core.$strip>>>;
3722
+ createdAt: z.ZodNullable<z.ZodString>;
3723
+ updatedAt: z.ZodNullable<z.ZodString>;
3724
+ }, z.core.$strip>>;
3725
+ error: z.ZodOptional<z.ZodString>;
3726
+ }, z.core.$strip>, z.ZodObject<{
3727
+ type: z.ZodLiteral<"dashboard.global-workflows.update.response">;
3728
+ requestId: z.ZodString;
3729
+ settings: z.ZodOptional<z.ZodObject<{
3730
+ customerId: z.ZodString;
3731
+ enabled: z.ZodBoolean;
3732
+ allowedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
3733
+ routingKey: z.ZodOptional<z.ZodString>;
3734
+ pattern: z.ZodString;
3735
+ }, z.core.$strip>>>;
3736
+ deniedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
3737
+ routingKey: z.ZodOptional<z.ZodString>;
3738
+ pattern: z.ZodString;
3739
+ }, z.core.$strip>>>;
3740
+ elevatedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
3741
+ routingKey: z.ZodOptional<z.ZodString>;
3742
+ pattern: z.ZodString;
3743
+ }, z.core.$strip>>>;
3744
+ createdAt: z.ZodNullable<z.ZodString>;
3745
+ updatedAt: z.ZodNullable<z.ZodString>;
3746
+ }, z.core.$strip>>;
3747
+ error: z.ZodOptional<z.ZodString>;
3748
+ }, z.core.$strip>, z.ZodObject<{
3749
+ type: z.ZodLiteral<"dashboard.access-log.list.response">;
3750
+ requestId: z.ZodString;
3751
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
3752
+ id: z.ZodString;
3753
+ orgId: z.ZodNullable<z.ZodString>;
3754
+ routingKey: z.ZodNullable<z.ZodString>;
3755
+ actorType: z.ZodEnum<{
3756
+ user: "user";
3757
+ api_key: "api_key";
3758
+ service_account: "service_account";
3759
+ platform_operator: "platform_operator";
3760
+ system: "system";
3761
+ }>;
3762
+ actorId: z.ZodString;
3763
+ actorMeta: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3764
+ actorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3765
+ actorDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3766
+ action: z.ZodEnum<{
3767
+ "run.detail.read": "run.detail.read";
3768
+ "run.payload.read": "run.payload.read";
3769
+ "run.orch_logs.read": "run.orch_logs.read";
3770
+ "step.logs.read": "step.logs.read";
3771
+ "run.cancel": "run.cancel";
3772
+ "run.rerun": "run.rerun";
3773
+ "run.manual_schedule": "run.manual_schedule";
3774
+ "job.cancel": "job.cancel";
3775
+ "event_log.list.read": "event_log.list.read";
3776
+ "event_log.detail.read": "event_log.detail.read";
3777
+ "event_log.payload.read": "event_log.payload.read";
3778
+ "environment.list.read": "environment.list.read";
3779
+ "environment.get.read": "environment.get.read";
3780
+ "environment.create": "environment.create";
3781
+ "environment.update": "environment.update";
3782
+ "environment.delete": "environment.delete";
3783
+ "env_var.list.read": "env_var.list.read";
3784
+ "env_var.set": "env_var.set";
3785
+ "env_var.delete": "env_var.delete";
3786
+ "source_override.list.read": "source_override.list.read";
3787
+ "source_override.set": "source_override.set";
3788
+ "source_override.delete": "source_override.delete";
3789
+ "env_binding.list.read": "env_binding.list.read";
3790
+ "env_binding.set": "env_binding.set";
3791
+ "secret.list.read": "secret.list.read";
3792
+ "secret.set": "secret.set";
3793
+ "secret.delete": "secret.delete";
3794
+ "secret.reveal": "secret.reveal";
3795
+ "secret_scope.create": "secret_scope.create";
3796
+ "secret_scope.rename": "secret_scope.rename";
3797
+ "secret_scope.delete": "secret_scope.delete";
3798
+ "environment.history.read": "environment.history.read";
3799
+ "held_run.list.read": "held_run.list.read";
3800
+ "held_run.approve": "held_run.approve";
3801
+ "held_run.reject": "held_run.reject";
3802
+ "registration.list.read": "registration.list.read";
3803
+ "registration.disable": "registration.disable";
3804
+ "registration.delete": "registration.delete";
3805
+ "diagnostics.read": "diagnostics.read";
3806
+ "scaler.capacity.read": "scaler.capacity.read";
3807
+ "scaler.agents.read": "scaler.agents.read";
3808
+ "backend.list.read": "backend.list.read";
3809
+ "backend.get.read": "backend.get.read";
3810
+ "backend.sync": "backend.sync";
3811
+ "backend.sync.one": "backend.sync.one";
3812
+ "backend.test": "backend.test";
3813
+ "global_workflows.get.read": "global_workflows.get.read";
3814
+ "global_workflows.update": "global_workflows.update";
3815
+ "access_log.list.read": "access_log.list.read";
3816
+ "event_dlq.list.read": "event_dlq.list.read";
3817
+ "event_dlq.retry": "event_dlq.retry";
3818
+ "event_dlq.discard": "event_dlq.discard";
3819
+ archive_chunk: "archive_chunk";
3820
+ }>;
3821
+ targetType: z.ZodNullable<z.ZodEnum<{
3822
+ run: "run";
3823
+ job: "job";
3824
+ step: "step";
3825
+ payload: "payload";
3826
+ event_log: "event_log";
3827
+ event_log_payload: "event_log_payload";
3828
+ secret_scope: "secret_scope";
3829
+ environment: "environment";
3830
+ registration: "registration";
3831
+ backend: "backend";
3832
+ diagnostics: "diagnostics";
3833
+ scaler: "scaler";
3834
+ held_run: "held_run";
3835
+ access_log: "access_log";
3836
+ event_dlq: "event_dlq";
3837
+ }>>;
3838
+ targetId: z.ZodNullable<z.ZodString>;
3839
+ requestId: z.ZodNullable<z.ZodString>;
3840
+ source: z.ZodEnum<{
3841
+ platform_proxy: "platform_proxy";
3842
+ admin_http: "admin_http";
3843
+ admin_cli: "admin_cli";
3844
+ }>;
3845
+ outcome: z.ZodEnum<{
3846
+ error: "error";
3847
+ allowed: "allowed";
3848
+ denied: "denied";
3849
+ }>;
3850
+ errorMessage: z.ZodNullable<z.ZodString>;
3851
+ createdAt: z.ZodString;
3852
+ }, z.core.$strip>>>;
3853
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3854
+ error: z.ZodOptional<z.ZodString>;
3855
+ }, z.core.$strip>], "type">;
3856
+ export type DashboardRunDetailRequest = z.infer<typeof dashboardRunDetailRequestSchema>;
3857
+ export type DashboardStepLogsRequest = z.infer<typeof dashboardStepLogsRequestSchema>;
3858
+ export type RunRerunRequest = z.infer<typeof runRerunRequestSchema>;
3859
+ export type ManualScheduleRequest = z.infer<typeof manualScheduleRequestSchema>;
3860
+ export type RunCancelRequest = z.infer<typeof runCancelRequestSchema>;
3861
+ export type DashboardPayloadRequest = z.infer<typeof dashboardPayloadRequestSchema>;
3862
+ export type DashboardPlatformToOrchMessage = z.infer<typeof dashboardPlatformToOrchSchema>;
3863
+ export type EventLogListItem = z.infer<typeof eventLogListItemSchema>;
3864
+ export type DashboardEventLogListRequest = z.infer<typeof dashboardEventLogListRequestSchema>;
3865
+ export type DashboardEventLogListResponse = z.infer<typeof dashboardEventLogListResponseSchema>;
3866
+ export type DashboardEventLogDetailRequest = z.infer<typeof dashboardEventLogDetailRequestSchema>;
3867
+ export type DashboardEventLogDetailResponse = z.infer<typeof dashboardEventLogDetailResponseSchema>;
3868
+ export type DashboardEventLogPayloadStreamRequest = z.infer<typeof dashboardEventLogPayloadStreamRequestSchema>;
3869
+ export type DashboardEventLogPayloadChunk = z.infer<typeof dashboardEventLogPayloadChunkSchema>;
3870
+ export type BrowserEventLogPayloadChunk = z.infer<typeof browserEventLogPayloadChunkSchema>;
3871
+ export type EnvListRequest = z.infer<typeof envListRequestSchema>;
3872
+ type EnvListResponse = z.infer<typeof envListResponseSchema>;
3873
+ export type EnvGetRequest = z.infer<typeof envGetRequestSchema>;
3874
+ type EnvGetResponse = z.infer<typeof envGetResponseSchema>;
3875
+ export type EnvCreateRequest = z.infer<typeof envCreateRequestSchema>;
3876
+ export type EnvUpdateRequest = z.infer<typeof envUpdateRequestSchema>;
3877
+ export type EnvDeleteRequest = z.infer<typeof envDeleteRequestSchema>;
3878
+ export type EnvVarsListRequest = z.infer<typeof envVarsListRequestSchema>;
3879
+ type EnvVarsListResponse = z.infer<typeof envVarsListResponseSchema>;
3880
+ export type EnvVarSetRequest = z.infer<typeof envVarSetRequestSchema>;
3881
+ export type EnvVarDeleteRequest = z.infer<typeof envVarDeleteRequestSchema>;
3882
+ export type EnvSourceOverridesListRequest = z.infer<typeof envSourceOverridesListRequestSchema>;
3883
+ export type EnvSourceOverrideSetRequest = z.infer<typeof envSourceOverrideSetRequestSchema>;
3884
+ export type EnvSourceOverrideDeleteRequest = z.infer<typeof envSourceOverrideDeleteRequestSchema>;
3885
+ export type EnvBindingsListRequest = z.infer<typeof envBindingsListRequestSchema>;
3886
+ export type EnvBindingsSetRequest = z.infer<typeof envBindingsSetRequestSchema>;
3887
+ export type EnvSecretsListRequest = z.infer<typeof envSecretsListRequestSchema>;
3888
+ export type EnvSecretSetRequest = z.infer<typeof envSecretSetRequestSchema>;
3889
+ export type EnvSecretDeleteRequest = z.infer<typeof envSecretDeleteRequestSchema>;
3890
+ export type EnvSecretScopeCreateRequest = z.infer<typeof envSecretScopeCreateRequestSchema>;
3891
+ export type EnvSecretScopeRenameRequest = z.infer<typeof envSecretScopeRenameRequestSchema>;
3892
+ export type EnvSecretScopeDeleteRequest = z.infer<typeof envSecretScopeDeleteRequestSchema>;
3893
+ export type EnvHistoryRequest = z.infer<typeof envHistoryRequestSchema>;
3894
+ export type HeldRunsListRequest = z.infer<typeof heldRunsListRequestSchema>;
3895
+ type HeldRunsListResponse = z.infer<typeof heldRunsListResponseSchema>;
3896
+ export type HeldRunApproveRequest = z.infer<typeof heldRunApproveRequestSchema>;
3897
+ export type HeldRunRejectRequest = z.infer<typeof heldRunRejectRequestSchema>;
3898
+ export type DashboardDiagnosticsRequest = z.infer<typeof dashboardDiagnosticsRequestSchema>;
3899
+ export type DashboardDiagnosticsResponse = z.infer<typeof dashboardDiagnosticsResponseSchema>;
3900
+ export type DiagnosticsPeer = z.infer<typeof diagnosticsPeerSchema>;
3901
+ export type DashboardScalerCapacityRequest = z.infer<typeof dashboardScalerCapacityRequestSchema>;
3902
+ export type DashboardScalerCapacityResponse = z.infer<typeof dashboardScalerCapacityResponseSchema>;
3903
+ export type DashboardScalerAgentsRequest = z.infer<typeof dashboardScalerAgentsRequestSchema>;
3904
+ export type DashboardScalerAgentsResponse = z.infer<typeof dashboardScalerAgentsResponseSchema>;
3905
+ export type BackendsListRequest = z.infer<typeof backendsListRequestSchema>;
3906
+ export type BackendGetRequest = z.infer<typeof backendGetRequestSchema>;
3907
+ export type BackendsSyncAllRequest = z.infer<typeof backendsSyncAllRequestSchema>;
3908
+ export type BackendSyncRequest = z.infer<typeof backendSyncRequestSchema>;
3909
+ export type BackendTestRequest = z.infer<typeof backendTestRequestSchema>;
3910
+ export type BackendItem = z.infer<typeof backendItemSchema>;
3911
+ export type RegistrationItem = z.infer<typeof registrationItemSchema>;
3912
+ /** REST API response for run detail (jobs with nested steps). */
3913
+ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
3914
+ jobs: z.ZodArray<z.ZodObject<{
3915
+ jobId: z.ZodString;
3916
+ jobName: z.ZodString;
3917
+ status: z.ZodString;
3918
+ matrixValues: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3919
+ startedAt: z.ZodNullable<z.ZodNumber>;
3920
+ completedAt: z.ZodNullable<z.ZodNumber>;
3921
+ durationMs: z.ZodNullable<z.ZodNumber>;
3922
+ agentId: z.ZodNullable<z.ZodString>;
3923
+ orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3924
+ errorMessage: z.ZodNullable<z.ZodString>;
3925
+ runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3926
+ outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
3927
+ secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3928
+ steps: z.ZodArray<z.ZodObject<{
3929
+ stepIndex: z.ZodNumber;
3930
+ stepName: z.ZodString;
3931
+ status: z.ZodString;
3932
+ startedAt: z.ZodNullable<z.ZodNumber>;
3933
+ completedAt: z.ZodNullable<z.ZodNumber>;
3934
+ durationMs: z.ZodNullable<z.ZodNumber>;
3935
+ exitCode: z.ZodNullable<z.ZodNumber>;
3936
+ errorMessage: z.ZodNullable<z.ZodString>;
3937
+ stepType: z.ZodOptional<z.ZodString>;
3938
+ secretsAccessed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3939
+ }, z.core.$strip>>;
3940
+ }, z.core.$strip>>;
3941
+ trustContext: z.ZodOptional<z.ZodObject<{
3942
+ trustTier: z.ZodNullable<z.ZodEnum<{
3943
+ unknown: "unknown";
3944
+ trusted: "trusted";
3945
+ known: "known";
3946
+ }>>;
3947
+ lockFileSource: z.ZodNullable<z.ZodEnum<{
3948
+ head: "head";
3949
+ base: "base";
3950
+ }>>;
3951
+ contributorUsername: z.ZodNullable<z.ZodString>;
3952
+ }, z.core.$strip>>;
3953
+ }, z.core.$strip>;
3954
+ /** REST API response for step logs. */
3955
+ export declare const dashboardStepLogsApiResponseSchema: z.ZodObject<{
3956
+ lines: z.ZodArray<z.ZodString>;
3957
+ totalLines: z.ZodNumber;
3958
+ }, z.core.$strip>;
3959
+ export type DashboardRunDetailApiResponse = z.infer<typeof dashboardRunDetailApiResponseSchema>;
3960
+ export type DashboardStepLogsApiResponse = z.infer<typeof dashboardStepLogsApiResponseSchema>;
3961
+ export type DashboardJobDetail = z.infer<typeof dashboardJobDetailSchema>;
3962
+ /** Single environment from the list response. */
3963
+ export type DashboardEnvironment = NonNullable<EnvListResponse['environments']>[number];
3964
+ /** Full environment detail from the get response. */
3965
+ export type DashboardEnvironmentDetail = NonNullable<EnvGetResponse['environment']>;
3966
+ /** Single environment variable from the variables list response. */
3967
+ export type DashboardEnvironmentVariable = NonNullable<EnvVarsListResponse['variables']>[number];
3968
+ /** Single held run from the held runs list response. */
3969
+ export type DashboardHeldRun = NonNullable<HeldRunsListResponse['heldRuns']>[number];
3970
+ /** Single infrastructure event for a run (from run_events table). */
3971
+ export declare const runEventSchema: z.ZodObject<{
3972
+ id: z.ZodString;
3973
+ runId: z.ZodString;
3974
+ eventType: z.ZodString;
3975
+ timestampMs: z.ZodNumber;
3976
+ sourceService: z.ZodString;
3977
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3978
+ durationMs: z.ZodNullable<z.ZodNumber>;
3979
+ jobId: z.ZodNullable<z.ZodString>;
3980
+ stepIndex: z.ZodNullable<z.ZodNumber>;
3981
+ traceId: z.ZodNullable<z.ZodString>;
3982
+ spanId: z.ZodNullable<z.ZodString>;
3983
+ parentSpanId: z.ZodNullable<z.ZodString>;
3984
+ }, z.core.$strip>;
3985
+ export type RunEvent = z.infer<typeof runEventSchema>;
3986
+ /** Trust policy response (from trust_policies table). */
3987
+ export declare const trustPolicyResponseSchema: z.ZodObject<{
3988
+ forkPolicy: z.ZodString;
3989
+ unknownContributorPolicy: z.ZodString;
3990
+ workflowChangePolicy: z.ZodString;
3991
+ approvalExpiryHours: z.ZodNumber;
3992
+ }, z.core.$strip>;
3993
+ export type TrustPolicy = z.infer<typeof trustPolicyResponseSchema>;
3994
+ /** Single identity link item. */
3995
+ export declare const identityLinkItemSchema: z.ZodObject<{
3996
+ id: z.ZodString;
3997
+ provider: z.ZodString;
3998
+ providerUsername: z.ZodString;
3999
+ linkMethod: z.ZodString;
4000
+ linkedAt: z.ZodString;
4001
+ }, z.core.$strip>;
4002
+ /** Response for identity links list endpoint. */
4003
+ export declare const identityLinkListResponseSchema: z.ZodObject<{
4004
+ identityLinks: z.ZodArray<z.ZodObject<{
4005
+ id: z.ZodString;
4006
+ provider: z.ZodString;
4007
+ providerUsername: z.ZodString;
4008
+ linkMethod: z.ZodString;
4009
+ linkedAt: z.ZodString;
4010
+ }, z.core.$strip>>;
4011
+ }, z.core.$strip>;
4012
+ export type IdentityLink = z.infer<typeof identityLinkItemSchema>;
4013
+ export type IdentityLinkListResponse = z.infer<typeof identityLinkListResponseSchema>;
4014
+ /** Single identity link in a member context (no id/method/date). */
4015
+ export declare const memberIdentityLinkSchema: z.ZodObject<{
4016
+ provider: z.ZodString;
4017
+ providerUsername: z.ZodString;
4018
+ }, z.core.$strip>;
4019
+ /** Role assignment within a member response. */
4020
+ export declare const memberRoleAssignmentSchema: z.ZodObject<{
4021
+ roleId: z.ZodString;
4022
+ roleName: z.ZodString;
4023
+ isOwner: z.ZodBoolean;
4024
+ }, z.core.$strip>;
4025
+ /** Single org member with identity and trust info. */
4026
+ export declare const orgMemberSchema: z.ZodObject<{
4027
+ userId: z.ZodString;
4028
+ email: z.ZodNullable<z.ZodString>;
4029
+ displayName: z.ZodNullable<z.ZodString>;
4030
+ roles: z.ZodArray<z.ZodString>;
4031
+ roleAssignments: z.ZodArray<z.ZodObject<{
4032
+ roleId: z.ZodString;
4033
+ roleName: z.ZodString;
4034
+ isOwner: z.ZodBoolean;
4035
+ }, z.core.$strip>>;
4036
+ suspendedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
4037
+ joinedAt: z.ZodCoercedString<unknown>;
4038
+ ciTrustLevel: z.ZodString;
4039
+ identityLinks: z.ZodArray<z.ZodObject<{
4040
+ provider: z.ZodString;
4041
+ providerUsername: z.ZodString;
4042
+ }, z.core.$strip>>;
4043
+ }, z.core.$strip>;
4044
+ /** Response for org members list endpoint. */
4045
+ export declare const memberListResponseSchema: z.ZodObject<{
4046
+ members: z.ZodArray<z.ZodObject<{
4047
+ userId: z.ZodString;
4048
+ email: z.ZodNullable<z.ZodString>;
4049
+ displayName: z.ZodNullable<z.ZodString>;
4050
+ roles: z.ZodArray<z.ZodString>;
4051
+ roleAssignments: z.ZodArray<z.ZodObject<{
4052
+ roleId: z.ZodString;
4053
+ roleName: z.ZodString;
4054
+ isOwner: z.ZodBoolean;
4055
+ }, z.core.$strip>>;
4056
+ suspendedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
4057
+ joinedAt: z.ZodCoercedString<unknown>;
4058
+ ciTrustLevel: z.ZodString;
4059
+ identityLinks: z.ZodArray<z.ZodObject<{
4060
+ provider: z.ZodString;
4061
+ providerUsername: z.ZodString;
4062
+ }, z.core.$strip>>;
4063
+ }, z.core.$strip>>;
4064
+ }, z.core.$strip>;
4065
+ export type OrgMember = z.infer<typeof orgMemberSchema>;
4066
+ export type MemberListResponse = z.infer<typeof memberListResponseSchema>;
4067
+ export {};
4068
+ //# sourceMappingURL=dashboard.d.ts.map