@kici-dev/engine 0.1.27 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/approval/types.d.ts +8 -1
  2. package/dist/approval/types.js +8 -1
  3. package/dist/artifacts/name.d.ts +60 -0
  4. package/dist/artifacts/name.js +71 -0
  5. package/dist/audit/access-log-policy.d.ts +1 -1
  6. package/dist/audit/access-log-policy.js +8 -0
  7. package/dist/audit/activity.d.ts +12 -12
  8. package/dist/audit/retention-policy.js +16 -0
  9. package/dist/billing/plan-type.d.ts +53 -0
  10. package/dist/billing/plan-type.js +70 -0
  11. package/dist/bundler/rolldown-config.d.ts +3 -3
  12. package/dist/check-mode.d.ts +1 -1
  13. package/dist/context/concurrency-strategy.d.ts +34 -0
  14. package/dist/context/concurrency-strategy.js +35 -0
  15. package/dist/context/held-run-job-id.d.ts +45 -0
  16. package/dist/context/held-run-job-id.js +56 -0
  17. package/dist/context/held-run-status.d.ts +33 -0
  18. package/dist/context/held-run-status.js +37 -0
  19. package/dist/context/hold-expiry.d.ts +20 -0
  20. package/dist/context/hold-expiry.js +25 -0
  21. package/dist/context/hold-reason.d.ts +33 -0
  22. package/dist/context/hold-reason.js +23 -0
  23. package/dist/context/hold-type.d.ts +40 -0
  24. package/dist/context/hold-type.js +61 -0
  25. package/dist/context/index.d.ts +9 -1
  26. package/dist/context/index.js +9 -2
  27. package/dist/context/multi-context.d.ts +3 -3
  28. package/dist/context/scope-name.d.ts +29 -0
  29. package/dist/context/scope-name.js +49 -0
  30. package/dist/context/scope-resolver.d.ts +33 -0
  31. package/dist/context/scope-resolver.js +45 -15
  32. package/dist/context/types.d.ts +8 -5
  33. package/dist/dev-ops/operations.d.ts +8 -0
  34. package/dist/dev-ops/operations.js +36 -19
  35. package/dist/diagnostics/infra-alert.d.ts +71 -0
  36. package/dist/diagnostics/infra-alert.js +60 -0
  37. package/dist/env/environment-allowlist.d.ts +4 -4
  38. package/dist/fanout/materialize.d.ts +16 -0
  39. package/dist/fanout/materialize.js +32 -3
  40. package/dist/index.d.ts +15 -6
  41. package/dist/index.js +34 -19
  42. package/dist/inputs/descriptor.d.ts +9 -9
  43. package/dist/inventory.d.ts +4 -4
  44. package/dist/labels.d.ts +82 -2
  45. package/dist/labels.js +119 -1
  46. package/dist/matrix/expand.d.ts +49 -2
  47. package/dist/matrix/expand.js +102 -13
  48. package/dist/matrix/format.d.ts +6 -1
  49. package/dist/matrix/format.js +6 -1
  50. package/dist/mcp/held-run-resolve.d.ts +7 -10
  51. package/dist/mcp/held-run-resolve.js +33 -7
  52. package/dist/metrics/catalog-policy.js +4 -4
  53. package/dist/metrics/metric-catalog.generated.d.ts +954 -739
  54. package/dist/metrics/metric-catalog.generated.js +278 -20
  55. package/dist/metrics/metric-kind-compat.d.ts +26 -0
  56. package/dist/metrics/metric-kind-compat.js +33 -0
  57. package/dist/protocol/analytics-events.d.ts +6 -6
  58. package/dist/protocol/dashboard-api-errors.d.ts +1 -0
  59. package/dist/protocol/dashboard-api-errors.js +5 -1
  60. package/dist/protocol/dashboard-write-operations.d.ts +143 -86
  61. package/dist/protocol/dashboard-write-operations.js +91 -17
  62. package/dist/protocol/messages/access-log.d.ts +437 -392
  63. package/dist/protocol/messages/access-log.js +11 -2
  64. package/dist/protocol/messages/actor.d.ts +2 -2
  65. package/dist/protocol/messages/agent-dev-ops.d.ts +4 -2
  66. package/dist/protocol/messages/agent-dev-ops.js +2 -5
  67. package/dist/protocol/messages/agent-run-result.d.ts +72 -62
  68. package/dist/protocol/messages/auth.d.ts +35 -23
  69. package/dist/protocol/messages/browser.d.ts +81 -5
  70. package/dist/protocol/messages/browser.js +53 -2
  71. package/dist/protocol/messages/capabilities.d.ts +106 -31
  72. package/dist/protocol/messages/capabilities.js +94 -10
  73. package/dist/protocol/messages/common.d.ts +45 -2
  74. package/dist/protocol/messages/common.js +64 -3
  75. package/dist/protocol/messages/dashboard-sealed-write.d.ts +52 -0
  76. package/dist/protocol/messages/dashboard-sealed-write.js +57 -0
  77. package/dist/protocol/messages/dashboard.d.ts +1022 -498
  78. package/dist/protocol/messages/dashboard.js +198 -31
  79. package/dist/protocol/messages/deployment-identity.d.ts +37 -10
  80. package/dist/protocol/messages/deployment-identity.js +30 -3
  81. package/dist/protocol/messages/event-log.d.ts +5 -5
  82. package/dist/protocol/messages/execution-status.d.ts +189 -53
  83. package/dist/protocol/messages/execution-status.js +108 -40
  84. package/dist/protocol/messages/heartbeat-health.d.ts +83 -0
  85. package/dist/protocol/messages/heartbeat-health.js +87 -0
  86. package/dist/protocol/messages/log-stream.d.ts +18 -0
  87. package/dist/protocol/messages/log-stream.js +19 -0
  88. package/dist/protocol/messages/oidc-mint.d.ts +7 -0
  89. package/dist/protocol/messages/oidc-mint.js +7 -0
  90. package/dist/protocol/messages/orchestrator-agent.d.ts +264 -67
  91. package/dist/protocol/messages/orchestrator-agent.js +170 -5
  92. package/dist/protocol/messages/pat-kind.d.ts +1 -1
  93. package/dist/protocol/messages/peer.d.ts +122 -58
  94. package/dist/protocol/messages/peer.js +37 -2
  95. package/dist/protocol/messages/platform-orchestrator.d.ts +561 -217
  96. package/dist/protocol/messages/platform-orchestrator.js +131 -21
  97. package/dist/protocol/messages/run-events.d.ts +5 -5
  98. package/dist/protocol/messages/scaler-event.d.ts +3 -3
  99. package/dist/protocol/messages/source-registration.d.ts +56 -13
  100. package/dist/protocol/messages/source-registration.js +49 -6
  101. package/dist/protocol/source-origin.d.ts +1 -1
  102. package/dist/provenance/attestation-origin.d.ts +1 -1
  103. package/dist/provenance/schema.d.ts +11 -11
  104. package/dist/provenance/verify.js +2 -1
  105. package/dist/provider/changed-files-fetcher.d.ts +21 -2
  106. package/dist/provider/check-run-conclusion.d.ts +2 -2
  107. package/dist/provider/check-status-poster.d.ts +23 -0
  108. package/dist/provider/index.d.ts +2 -2
  109. package/dist/registration/registerable-trigger-type.d.ts +14 -13
  110. package/dist/registration/registerable-trigger-type.js +1 -0
  111. package/dist/sandbox/capabilities.d.ts +6 -0
  112. package/dist/sandbox/capabilities.js +57 -0
  113. package/dist/scaler/scaler-backend-type.d.ts +1 -1
  114. package/dist/status/presentation.d.ts +89 -0
  115. package/dist/status/presentation.js +163 -0
  116. package/dist/trigger/compiled-matchers.d.ts +13 -0
  117. package/dist/trigger/compiled-matchers.js +44 -0
  118. package/dist/trigger/event-buckets.d.ts +44 -0
  119. package/dist/trigger/event-buckets.js +93 -0
  120. package/dist/trigger/matcher.d.ts +7 -3
  121. package/dist/trigger/matcher.js +53 -15
  122. package/dist/trigger/schedule-key.d.ts +14 -0
  123. package/dist/trigger/schedule-key.js +21 -0
  124. package/dist/trigger/trigger-event-type.d.ts +1 -1
  125. package/dist/trigger/trigger-event-type.js +2 -0
  126. package/dist/trigger/types.d.ts +173 -43
  127. package/dist/trigger/types.js +82 -25
  128. package/dist/webhook/event-types.d.ts +56 -0
  129. package/dist/webhook/event-types.js +59 -0
  130. package/dist/ws/ws-like.d.ts +13 -0
  131. package/package.json +12 -4
  132. package/sbom.spdx.json +10 -10
  133. package/dist/environment/host-match.d.ts +0 -25
  134. package/dist/environment/index.d.ts +0 -6
  135. package/dist/environment/multi-env.d.ts +0 -30
  136. package/dist/environment/scope-resolver.d.ts +0 -46
  137. package/dist/environment/scope-template.d.ts +0 -18
  138. package/dist/environment/types.d.ts +0 -119
  139. package/dist/package-manager.d.ts +0 -20
  140. package/dist/protocol/messages/observe.d.ts +0 -76
  141. package/dist/protocol/messages/saas-orchestrator.d.ts +0 -2179
  142. package/dist/protocol/messages/test-run.d.ts +0 -59
  143. package/dist/state-machine/index.d.ts +0 -2
  144. package/dist/state-machine/index.js +0 -3
  145. package/dist/state-machine/machine.d.ts +0 -34
  146. package/dist/state-machine/machine.js +0 -103
  147. package/dist/state-machine/types.d.ts +0 -34
  148. package/dist/state-machine/types.js +0 -15
@@ -1,2179 +0,0 @@
1
- import { z } from 'zod';
2
- /** Trust policy update pushed from SaaS to orchestrator when policy or identity links change. */
3
- export declare const trustPolicyUpdateSchema: z.ZodObject<{
4
- type: z.ZodLiteral<"trust_policy.update">;
5
- orgId: z.ZodString;
6
- policy: z.ZodObject<{
7
- forkPolicy: z.ZodEnum<["hold", "reject", "allow"]>;
8
- unknownContributorPolicy: z.ZodEnum<["hold", "reject"]>;
9
- workflowChangePolicy: z.ZodEnum<["hold", "reject", "allow"]>;
10
- approvalExpiryHours: z.ZodNumber;
11
- }, "strip", z.ZodTypeAny, {
12
- forkPolicy: "hold" | "reject" | "allow";
13
- unknownContributorPolicy: "hold" | "reject";
14
- workflowChangePolicy: "hold" | "reject" | "allow";
15
- approvalExpiryHours: number;
16
- }, {
17
- forkPolicy: "hold" | "reject" | "allow";
18
- unknownContributorPolicy: "hold" | "reject";
19
- workflowChangePolicy: "hold" | "reject" | "allow";
20
- approvalExpiryHours: number;
21
- }>;
22
- identityLinks: z.ZodArray<z.ZodObject<{
23
- userId: z.ZodString;
24
- provider: z.ZodString;
25
- providerUsername: z.ZodString;
26
- }, "strip", z.ZodTypeAny, {
27
- provider: string;
28
- providerUsername: string;
29
- userId: string;
30
- }, {
31
- provider: string;
32
- providerUsername: string;
33
- userId: string;
34
- }>, "many">;
35
- memberCiTrustLevels: z.ZodRecord<z.ZodString, z.ZodEnum<["none", "read", "write", "admin"]>>;
36
- }, "strip", z.ZodTypeAny, {
37
- type: "trust_policy.update";
38
- orgId: string;
39
- identityLinks: {
40
- provider: string;
41
- providerUsername: string;
42
- userId: string;
43
- }[];
44
- policy: {
45
- forkPolicy: "hold" | "reject" | "allow";
46
- unknownContributorPolicy: "hold" | "reject";
47
- workflowChangePolicy: "hold" | "reject" | "allow";
48
- approvalExpiryHours: number;
49
- };
50
- memberCiTrustLevels: Record<string, "none" | "read" | "write" | "admin">;
51
- }, {
52
- type: "trust_policy.update";
53
- orgId: string;
54
- identityLinks: {
55
- provider: string;
56
- providerUsername: string;
57
- userId: string;
58
- }[];
59
- policy: {
60
- forkPolicy: "hold" | "reject" | "allow";
61
- unknownContributorPolicy: "hold" | "reject";
62
- workflowChangePolicy: "hold" | "reject" | "allow";
63
- approvalExpiryHours: number;
64
- };
65
- memberCiTrustLevels: Record<string, "none" | "read" | "write" | "admin">;
66
- }>;
67
- export type TrustPolicyUpdate = z.infer<typeof trustPolicyUpdateSchema>;
68
- /** Webhook relay from SaaS to customer orchestrator. */
69
- export declare const webhookRelaySchema: z.ZodObject<{
70
- type: z.ZodLiteral<"webhook.relay">;
71
- messageId: z.ZodString;
72
- routingKey: z.ZodString;
73
- deliveryId: z.ZodString;
74
- event: z.ZodString;
75
- action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
- payload: z.ZodUnknown;
77
- /** Trace ID propagated across tiers for distributed tracing. */
78
- requestId: z.ZodOptional<z.ZodString>;
79
- }, "strip", z.ZodTypeAny, {
80
- type: "webhook.relay";
81
- messageId: string;
82
- routingKey: string;
83
- deliveryId: string;
84
- event: string;
85
- requestId?: string | undefined;
86
- payload?: unknown;
87
- action?: string | null | undefined;
88
- }, {
89
- type: "webhook.relay";
90
- messageId: string;
91
- routingKey: string;
92
- deliveryId: string;
93
- event: string;
94
- requestId?: string | undefined;
95
- payload?: unknown;
96
- action?: string | null | undefined;
97
- }>;
98
- /** Peer discovery notification sent by SaaS when another orchestrator shares routing keys. */
99
- export declare const peerDiscoverSchema: z.ZodObject<{
100
- type: z.ZodLiteral<"peer.discover">;
101
- peer: z.ZodObject<{
102
- connectionId: z.ZodString;
103
- /** The peer's self-reported cluster instance ID (from source.register). */
104
- instanceId: z.ZodOptional<z.ZodString>;
105
- address: z.ZodNullable<z.ZodString>;
106
- routingKeys: z.ZodArray<z.ZodString, "many">;
107
- }, "strip", z.ZodTypeAny, {
108
- connectionId: string;
109
- address: string | null;
110
- routingKeys: string[];
111
- instanceId?: string | undefined;
112
- }, {
113
- connectionId: string;
114
- address: string | null;
115
- routingKeys: string[];
116
- instanceId?: string | undefined;
117
- }>;
118
- }, "strip", z.ZodTypeAny, {
119
- type: "peer.discover";
120
- peer: {
121
- connectionId: string;
122
- address: string | null;
123
- routingKeys: string[];
124
- instanceId?: string | undefined;
125
- };
126
- }, {
127
- type: "peer.discover";
128
- peer: {
129
- connectionId: string;
130
- address: string | null;
131
- routingKeys: string[];
132
- instanceId?: string | undefined;
133
- };
134
- }>;
135
- /** Full peer list update pushed by SaaS to all pool members when membership changes. Replaces peer.discover. */
136
- export declare const peerUpdateSchema: z.ZodObject<{
137
- type: z.ZodLiteral<"peer.update">;
138
- peers: z.ZodArray<z.ZodObject<{
139
- connectionId: z.ZodString;
140
- instanceId: z.ZodOptional<z.ZodString>;
141
- address: z.ZodNullable<z.ZodString>;
142
- routingKeys: z.ZodArray<z.ZodString, "many">;
143
- orchRole: z.ZodOptional<z.ZodEnum<["coordinator", "worker"]>>;
144
- }, "strip", z.ZodTypeAny, {
145
- connectionId: string;
146
- address: string | null;
147
- routingKeys: string[];
148
- orchRole?: "coordinator" | "worker" | undefined;
149
- instanceId?: string | undefined;
150
- }, {
151
- connectionId: string;
152
- address: string | null;
153
- routingKeys: string[];
154
- orchRole?: "coordinator" | "worker" | undefined;
155
- instanceId?: string | undefined;
156
- }>, "many">;
157
- }, "strip", z.ZodTypeAny, {
158
- type: "peer.update";
159
- peers: {
160
- connectionId: string;
161
- address: string | null;
162
- routingKeys: string[];
163
- orchRole?: "coordinator" | "worker" | undefined;
164
- instanceId?: string | undefined;
165
- }[];
166
- }, {
167
- type: "peer.update";
168
- peers: {
169
- connectionId: string;
170
- address: string | null;
171
- routingKeys: string[];
172
- orchRole?: "coordinator" | "worker" | undefined;
173
- instanceId?: string | undefined;
174
- }[];
175
- }>;
176
- /**
177
- * Stale check run cleanup request sent by SaaS when a replacement orchestrator
178
- * reconnects after the previous one died. Contains metadata for runs that were
179
- * marked timed_out_stale by SaaS, so the orchestrator can update stuck GitHub
180
- * check runs that the dead orchestrator left as "in_progress".
181
- */
182
- export declare const staleCheckrunCleanupSchema: z.ZodObject<{
183
- type: z.ZodLiteral<"stale.checkrun.cleanup">;
184
- runs: z.ZodArray<z.ZodObject<{
185
- runId: z.ZodString;
186
- provider: z.ZodString;
187
- routingKey: z.ZodString;
188
- repoIdentifier: z.ZodString;
189
- sha: z.ZodString;
190
- workflowName: z.ZodString;
191
- jobNames: z.ZodArray<z.ZodString, "many">;
192
- }, "strip", z.ZodTypeAny, {
193
- runId: string;
194
- workflowName: string;
195
- repoIdentifier: string;
196
- sha: string;
197
- routingKey: string;
198
- provider: string;
199
- jobNames: string[];
200
- }, {
201
- runId: string;
202
- workflowName: string;
203
- repoIdentifier: string;
204
- sha: string;
205
- routingKey: string;
206
- provider: string;
207
- jobNames: string[];
208
- }>, "many">;
209
- }, "strip", z.ZodTypeAny, {
210
- type: "stale.checkrun.cleanup";
211
- runs: {
212
- runId: string;
213
- workflowName: string;
214
- repoIdentifier: string;
215
- sha: string;
216
- routingKey: string;
217
- provider: string;
218
- jobNames: string[];
219
- }[];
220
- }, {
221
- type: "stale.checkrun.cleanup";
222
- runs: {
223
- runId: string;
224
- workflowName: string;
225
- repoIdentifier: string;
226
- sha: string;
227
- routingKey: string;
228
- provider: string;
229
- jobNames: string[];
230
- }[];
231
- }>;
232
- export type StaleCheckrunCleanup = z.infer<typeof staleCheckrunCleanupSchema>;
233
- /** Periodic OTel metrics push from orchestrator to SaaS for centralized observability. */
234
- export declare const orchMetricsSchema: z.ZodObject<{
235
- type: z.ZodLiteral<"orch.metrics">;
236
- messageId: z.ZodString;
237
- metrics: z.ZodArray<z.ZodObject<{
238
- name: z.ZodString;
239
- type: z.ZodEnum<["counter", "histogram", "gauge", "upDownCounter"]>;
240
- value: z.ZodOptional<z.ZodNumber>;
241
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
242
- buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
243
- le: z.ZodNumber;
244
- count: z.ZodNumber;
245
- }, "strip", z.ZodTypeAny, {
246
- le: number;
247
- count: number;
248
- }, {
249
- le: number;
250
- count: number;
251
- }>, "many">>;
252
- count: z.ZodOptional<z.ZodNumber>;
253
- sum: z.ZodOptional<z.ZodNumber>;
254
- }, "strip", z.ZodTypeAny, {
255
- type: "counter" | "histogram" | "gauge" | "upDownCounter";
256
- name: string;
257
- value?: number | undefined;
258
- labels?: Record<string, string> | undefined;
259
- count?: number | undefined;
260
- buckets?: {
261
- le: number;
262
- count: number;
263
- }[] | undefined;
264
- sum?: number | undefined;
265
- }, {
266
- type: "counter" | "histogram" | "gauge" | "upDownCounter";
267
- name: string;
268
- value?: number | undefined;
269
- labels?: Record<string, string> | undefined;
270
- count?: number | undefined;
271
- buckets?: {
272
- le: number;
273
- count: number;
274
- }[] | undefined;
275
- sum?: number | undefined;
276
- }>, "many">;
277
- timestamp: z.ZodNumber;
278
- }, "strip", z.ZodTypeAny, {
279
- type: "orch.metrics";
280
- timestamp: number;
281
- messageId: string;
282
- metrics: {
283
- type: "counter" | "histogram" | "gauge" | "upDownCounter";
284
- name: string;
285
- value?: number | undefined;
286
- labels?: Record<string, string> | undefined;
287
- count?: number | undefined;
288
- buckets?: {
289
- le: number;
290
- count: number;
291
- }[] | undefined;
292
- sum?: number | undefined;
293
- }[];
294
- }, {
295
- type: "orch.metrics";
296
- timestamp: number;
297
- messageId: string;
298
- metrics: {
299
- type: "counter" | "histogram" | "gauge" | "upDownCounter";
300
- name: string;
301
- value?: number | undefined;
302
- labels?: Record<string, string> | undefined;
303
- count?: number | undefined;
304
- buckets?: {
305
- le: number;
306
- count: number;
307
- }[] | undefined;
308
- sum?: number | undefined;
309
- }[];
310
- }>;
311
- export type OrchMetrics = z.infer<typeof orchMetricsSchema>;
312
- /** Acknowledgment that a webhook was received and processing started. */
313
- export declare const webhookAckSchema: z.ZodObject<{
314
- type: z.ZodLiteral<"webhook.ack">;
315
- messageId: z.ZodString;
316
- deliveryId: z.ZodString;
317
- }, "strip", z.ZodTypeAny, {
318
- type: "webhook.ack";
319
- messageId: string;
320
- deliveryId: string;
321
- }, {
322
- type: "webhook.ack";
323
- messageId: string;
324
- deliveryId: string;
325
- }>;
326
- /** Execution lifecycle event reported back to SaaS. */
327
- export declare const executionEventSchema: z.ZodObject<{
328
- type: z.ZodLiteral<"execution.event">;
329
- messageId: z.ZodString;
330
- runId: z.ZodString;
331
- event: z.ZodEnum<["started", "job_dispatched", "job_completed", "finished"]>;
332
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
333
- timestamp: z.ZodNumber;
334
- }, "strip", z.ZodTypeAny, {
335
- type: "execution.event";
336
- timestamp: number;
337
- messageId: string;
338
- runId: string;
339
- data: Record<string, unknown>;
340
- event: "started" | "job_dispatched" | "job_completed" | "finished";
341
- }, {
342
- type: "execution.event";
343
- timestamp: number;
344
- messageId: string;
345
- runId: string;
346
- data: Record<string, unknown>;
347
- event: "started" | "job_dispatched" | "job_completed" | "finished";
348
- }>;
349
- /** Streaming log chunk from job execution. */
350
- export declare const logChunkSchema: z.ZodObject<{
351
- type: z.ZodLiteral<"log.chunk">;
352
- messageId: z.ZodString;
353
- runId: z.ZodString;
354
- jobId: z.ZodString;
355
- stepIndex: z.ZodNumber;
356
- lines: z.ZodArray<z.ZodString, "many">;
357
- timestamp: z.ZodNumber;
358
- }, "strip", z.ZodTypeAny, {
359
- type: "log.chunk";
360
- timestamp: number;
361
- messageId: string;
362
- runId: string;
363
- jobId: string;
364
- stepIndex: number;
365
- lines: string[];
366
- }, {
367
- type: "log.chunk";
368
- timestamp: number;
369
- messageId: string;
370
- runId: string;
371
- jobId: string;
372
- stepIndex: number;
373
- lines: string[];
374
- }>;
375
- /** Cache lookup statistics forwarded from orchestrator to SaaS for centralized metrics. */
376
- export declare const cacheStatsSchema: z.ZodObject<{
377
- type: z.ZodLiteral<"cache.stats">;
378
- cacheType: z.ZodEnum<["bundle", "dep"]>;
379
- hit: z.ZodBoolean;
380
- }, "strip", z.ZodTypeAny, {
381
- type: "cache.stats";
382
- cacheType: "bundle" | "dep";
383
- hit: boolean;
384
- }, {
385
- type: "cache.stats";
386
- cacheType: "bundle" | "dep";
387
- hit: boolean;
388
- }>;
389
- export type CacheStats = z.infer<typeof cacheStatsSchema>;
390
- /** Push webhook secrets to SaaS for first-line verification. */
391
- export declare const sourceSecretsSchema: z.ZodObject<{
392
- type: z.ZodLiteral<"source.secrets">;
393
- messageId: z.ZodString;
394
- secrets: z.ZodArray<z.ZodObject<{
395
- routingKey: z.ZodString;
396
- secrets: z.ZodArray<z.ZodString, "many">;
397
- }, "strip", z.ZodTypeAny, {
398
- routingKey: string;
399
- secrets: string[];
400
- }, {
401
- routingKey: string;
402
- secrets: string[];
403
- }>, "many">;
404
- }, "strip", z.ZodTypeAny, {
405
- type: "source.secrets";
406
- messageId: string;
407
- secrets: {
408
- routingKey: string;
409
- secrets: string[];
410
- }[];
411
- }, {
412
- type: "source.secrets";
413
- messageId: string;
414
- secrets: {
415
- routingKey: string;
416
- secrets: string[];
417
- }[];
418
- }>;
419
- /** All messages that flow from SaaS to Orchestrator. */
420
- export declare const saasToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
421
- type: z.ZodLiteral<"webhook.relay">;
422
- messageId: z.ZodString;
423
- routingKey: z.ZodString;
424
- deliveryId: z.ZodString;
425
- event: z.ZodString;
426
- action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
- payload: z.ZodUnknown;
428
- /** Trace ID propagated across tiers for distributed tracing. */
429
- requestId: z.ZodOptional<z.ZodString>;
430
- }, "strip", z.ZodTypeAny, {
431
- type: "webhook.relay";
432
- messageId: string;
433
- routingKey: string;
434
- deliveryId: string;
435
- event: string;
436
- requestId?: string | undefined;
437
- payload?: unknown;
438
- action?: string | null | undefined;
439
- }, {
440
- type: "webhook.relay";
441
- messageId: string;
442
- routingKey: string;
443
- deliveryId: string;
444
- event: string;
445
- requestId?: string | undefined;
446
- payload?: unknown;
447
- action?: string | null | undefined;
448
- }>, z.ZodObject<{
449
- type: z.ZodLiteral<"trust_policy.update">;
450
- orgId: z.ZodString;
451
- policy: z.ZodObject<{
452
- forkPolicy: z.ZodEnum<["hold", "reject", "allow"]>;
453
- unknownContributorPolicy: z.ZodEnum<["hold", "reject"]>;
454
- workflowChangePolicy: z.ZodEnum<["hold", "reject", "allow"]>;
455
- approvalExpiryHours: z.ZodNumber;
456
- }, "strip", z.ZodTypeAny, {
457
- forkPolicy: "hold" | "reject" | "allow";
458
- unknownContributorPolicy: "hold" | "reject";
459
- workflowChangePolicy: "hold" | "reject" | "allow";
460
- approvalExpiryHours: number;
461
- }, {
462
- forkPolicy: "hold" | "reject" | "allow";
463
- unknownContributorPolicy: "hold" | "reject";
464
- workflowChangePolicy: "hold" | "reject" | "allow";
465
- approvalExpiryHours: number;
466
- }>;
467
- identityLinks: z.ZodArray<z.ZodObject<{
468
- userId: z.ZodString;
469
- provider: z.ZodString;
470
- providerUsername: z.ZodString;
471
- }, "strip", z.ZodTypeAny, {
472
- provider: string;
473
- providerUsername: string;
474
- userId: string;
475
- }, {
476
- provider: string;
477
- providerUsername: string;
478
- userId: string;
479
- }>, "many">;
480
- memberCiTrustLevels: z.ZodRecord<z.ZodString, z.ZodEnum<["none", "read", "write", "admin"]>>;
481
- }, "strip", z.ZodTypeAny, {
482
- type: "trust_policy.update";
483
- orgId: string;
484
- identityLinks: {
485
- provider: string;
486
- providerUsername: string;
487
- userId: string;
488
- }[];
489
- policy: {
490
- forkPolicy: "hold" | "reject" | "allow";
491
- unknownContributorPolicy: "hold" | "reject";
492
- workflowChangePolicy: "hold" | "reject" | "allow";
493
- approvalExpiryHours: number;
494
- };
495
- memberCiTrustLevels: Record<string, "none" | "read" | "write" | "admin">;
496
- }, {
497
- type: "trust_policy.update";
498
- orgId: string;
499
- identityLinks: {
500
- provider: string;
501
- providerUsername: string;
502
- userId: string;
503
- }[];
504
- policy: {
505
- forkPolicy: "hold" | "reject" | "allow";
506
- unknownContributorPolicy: "hold" | "reject";
507
- workflowChangePolicy: "hold" | "reject" | "allow";
508
- approvalExpiryHours: number;
509
- };
510
- memberCiTrustLevels: Record<string, "none" | "read" | "write" | "admin">;
511
- }>, z.ZodObject<{
512
- type: z.ZodLiteral<"source.register.ack">;
513
- messageId: z.ZodString;
514
- accepted: z.ZodArray<z.ZodString, "many">;
515
- rejected: z.ZodArray<z.ZodObject<{
516
- routingKey: z.ZodString;
517
- reason: z.ZodString;
518
- }, "strip", z.ZodTypeAny, {
519
- reason: string;
520
- routingKey: string;
521
- }, {
522
- reason: string;
523
- routingKey: string;
524
- }>, "many">;
525
- peers: z.ZodOptional<z.ZodArray<z.ZodObject<{
526
- connectionId: z.ZodString;
527
- instanceId: z.ZodOptional<z.ZodString>;
528
- address: z.ZodNullable<z.ZodString>;
529
- routingKeys: z.ZodArray<z.ZodString, "many">;
530
- }, "strip", z.ZodTypeAny, {
531
- connectionId: string;
532
- address: string | null;
533
- routingKeys: string[];
534
- instanceId?: string | undefined;
535
- }, {
536
- connectionId: string;
537
- address: string | null;
538
- routingKeys: string[];
539
- instanceId?: string | undefined;
540
- }>, "many">>;
541
- }, "strip", z.ZodTypeAny, {
542
- type: "source.register.ack";
543
- messageId: string;
544
- accepted: string[];
545
- rejected: {
546
- reason: string;
547
- routingKey: string;
548
- }[];
549
- peers?: {
550
- connectionId: string;
551
- address: string | null;
552
- routingKeys: string[];
553
- instanceId?: string | undefined;
554
- }[] | undefined;
555
- }, {
556
- type: "source.register.ack";
557
- messageId: string;
558
- accepted: string[];
559
- rejected: {
560
- reason: string;
561
- routingKey: string;
562
- }[];
563
- peers?: {
564
- connectionId: string;
565
- address: string | null;
566
- routingKeys: string[];
567
- instanceId?: string | undefined;
568
- }[] | undefined;
569
- }>, z.ZodObject<{
570
- type: z.ZodLiteral<"source.deregister.ack">;
571
- messageId: z.ZodString;
572
- removed: z.ZodArray<z.ZodString, "many">;
573
- }, "strip", z.ZodTypeAny, {
574
- type: "source.deregister.ack";
575
- messageId: string;
576
- removed: string[];
577
- }, {
578
- type: "source.deregister.ack";
579
- messageId: string;
580
- removed: string[];
581
- }>, z.ZodObject<{
582
- type: z.ZodLiteral<"auth.success">;
583
- connectionId: z.ZodString;
584
- }, "strip", z.ZodTypeAny, {
585
- type: "auth.success";
586
- connectionId: string;
587
- }, {
588
- type: "auth.success";
589
- connectionId: string;
590
- }>, z.ZodObject<{
591
- type: z.ZodLiteral<"auth.failure">;
592
- reason: z.ZodString;
593
- }, "strip", z.ZodTypeAny, {
594
- type: "auth.failure";
595
- reason: string;
596
- }, {
597
- type: "auth.failure";
598
- reason: string;
599
- }>, z.ZodObject<{
600
- type: z.ZodLiteral<"peer.discover">;
601
- peer: z.ZodObject<{
602
- connectionId: z.ZodString;
603
- /** The peer's self-reported cluster instance ID (from source.register). */
604
- instanceId: z.ZodOptional<z.ZodString>;
605
- address: z.ZodNullable<z.ZodString>;
606
- routingKeys: z.ZodArray<z.ZodString, "many">;
607
- }, "strip", z.ZodTypeAny, {
608
- connectionId: string;
609
- address: string | null;
610
- routingKeys: string[];
611
- instanceId?: string | undefined;
612
- }, {
613
- connectionId: string;
614
- address: string | null;
615
- routingKeys: string[];
616
- instanceId?: string | undefined;
617
- }>;
618
- }, "strip", z.ZodTypeAny, {
619
- type: "peer.discover";
620
- peer: {
621
- connectionId: string;
622
- address: string | null;
623
- routingKeys: string[];
624
- instanceId?: string | undefined;
625
- };
626
- }, {
627
- type: "peer.discover";
628
- peer: {
629
- connectionId: string;
630
- address: string | null;
631
- routingKeys: string[];
632
- instanceId?: string | undefined;
633
- };
634
- }>, z.ZodObject<{
635
- type: z.ZodLiteral<"peer.update">;
636
- peers: z.ZodArray<z.ZodObject<{
637
- connectionId: z.ZodString;
638
- instanceId: z.ZodOptional<z.ZodString>;
639
- address: z.ZodNullable<z.ZodString>;
640
- routingKeys: z.ZodArray<z.ZodString, "many">;
641
- orchRole: z.ZodOptional<z.ZodEnum<["coordinator", "worker"]>>;
642
- }, "strip", z.ZodTypeAny, {
643
- connectionId: string;
644
- address: string | null;
645
- routingKeys: string[];
646
- orchRole?: "coordinator" | "worker" | undefined;
647
- instanceId?: string | undefined;
648
- }, {
649
- connectionId: string;
650
- address: string | null;
651
- routingKeys: string[];
652
- orchRole?: "coordinator" | "worker" | undefined;
653
- instanceId?: string | undefined;
654
- }>, "many">;
655
- }, "strip", z.ZodTypeAny, {
656
- type: "peer.update";
657
- peers: {
658
- connectionId: string;
659
- address: string | null;
660
- routingKeys: string[];
661
- orchRole?: "coordinator" | "worker" | undefined;
662
- instanceId?: string | undefined;
663
- }[];
664
- }, {
665
- type: "peer.update";
666
- peers: {
667
- connectionId: string;
668
- address: string | null;
669
- routingKeys: string[];
670
- orchRole?: "coordinator" | "worker" | undefined;
671
- instanceId?: string | undefined;
672
- }[];
673
- }>, z.ZodObject<{
674
- type: z.ZodLiteral<"stale.checkrun.cleanup">;
675
- runs: z.ZodArray<z.ZodObject<{
676
- runId: z.ZodString;
677
- provider: z.ZodString;
678
- routingKey: z.ZodString;
679
- repoIdentifier: z.ZodString;
680
- sha: z.ZodString;
681
- workflowName: z.ZodString;
682
- jobNames: z.ZodArray<z.ZodString, "many">;
683
- }, "strip", z.ZodTypeAny, {
684
- runId: string;
685
- workflowName: string;
686
- repoIdentifier: string;
687
- sha: string;
688
- routingKey: string;
689
- provider: string;
690
- jobNames: string[];
691
- }, {
692
- runId: string;
693
- workflowName: string;
694
- repoIdentifier: string;
695
- sha: string;
696
- routingKey: string;
697
- provider: string;
698
- jobNames: string[];
699
- }>, "many">;
700
- }, "strip", z.ZodTypeAny, {
701
- type: "stale.checkrun.cleanup";
702
- runs: {
703
- runId: string;
704
- workflowName: string;
705
- repoIdentifier: string;
706
- sha: string;
707
- routingKey: string;
708
- provider: string;
709
- jobNames: string[];
710
- }[];
711
- }, {
712
- type: "stale.checkrun.cleanup";
713
- runs: {
714
- runId: string;
715
- workflowName: string;
716
- repoIdentifier: string;
717
- sha: string;
718
- routingKey: string;
719
- provider: string;
720
- jobNames: string[];
721
- }[];
722
- }>, z.ZodObject<{
723
- type: z.ZodLiteral<"dashboard.run.detail">;
724
- requestId: z.ZodString;
725
- runId: z.ZodString;
726
- }, "strip", z.ZodTypeAny, {
727
- type: "dashboard.run.detail";
728
- runId: string;
729
- requestId: string;
730
- }, {
731
- type: "dashboard.run.detail";
732
- runId: string;
733
- requestId: string;
734
- }>, z.ZodObject<{
735
- type: z.ZodLiteral<"dashboard.step.logs">;
736
- requestId: z.ZodString;
737
- runId: z.ZodString;
738
- jobId: z.ZodString;
739
- stepIndex: z.ZodNumber;
740
- }, "strip", z.ZodTypeAny, {
741
- type: "dashboard.step.logs";
742
- runId: string;
743
- jobId: string;
744
- stepIndex: number;
745
- requestId: string;
746
- }, {
747
- type: "dashboard.step.logs";
748
- runId: string;
749
- jobId: string;
750
- stepIndex: number;
751
- requestId: string;
752
- }>, z.ZodObject<{
753
- type: z.ZodLiteral<"run.rerun.request">;
754
- requestId: z.ZodString;
755
- runId: z.ZodString;
756
- triggeredBy: z.ZodNullable<z.ZodString>;
757
- }, "strip", z.ZodTypeAny, {
758
- type: "run.rerun.request";
759
- runId: string;
760
- triggeredBy: string | null;
761
- requestId: string;
762
- }, {
763
- type: "run.rerun.request";
764
- runId: string;
765
- triggeredBy: string | null;
766
- requestId: string;
767
- }>, z.ZodObject<{
768
- type: z.ZodLiteral<"run.manual_schedule.request">;
769
- requestId: z.ZodString;
770
- registrationId: z.ZodString;
771
- triggeredBy: z.ZodNullable<z.ZodString>;
772
- }, "strip", z.ZodTypeAny, {
773
- type: "run.manual_schedule.request";
774
- triggeredBy: string | null;
775
- requestId: string;
776
- registrationId: string;
777
- }, {
778
- type: "run.manual_schedule.request";
779
- triggeredBy: string | null;
780
- requestId: string;
781
- registrationId: string;
782
- }>, z.ZodObject<{
783
- type: z.ZodLiteral<"run.cancel.request">;
784
- requestId: z.ZodString;
785
- runId: z.ZodString;
786
- cancelledBy: z.ZodNullable<z.ZodString>;
787
- force: z.ZodOptional<z.ZodBoolean>;
788
- }, "strip", z.ZodTypeAny, {
789
- type: "run.cancel.request";
790
- runId: string;
791
- requestId: string;
792
- cancelledBy: string | null;
793
- force?: boolean | undefined;
794
- }, {
795
- type: "run.cancel.request";
796
- runId: string;
797
- requestId: string;
798
- cancelledBy: string | null;
799
- force?: boolean | undefined;
800
- }>, z.ZodObject<{
801
- type: z.ZodLiteral<"dashboard.payload">;
802
- requestId: z.ZodString;
803
- runId: z.ZodString;
804
- }, "strip", z.ZodTypeAny, {
805
- type: "dashboard.payload";
806
- runId: string;
807
- requestId: string;
808
- }, {
809
- type: "dashboard.payload";
810
- runId: string;
811
- requestId: string;
812
- }>, z.ZodObject<{
813
- type: z.ZodLiteral<"dashboard.orch.logs">;
814
- requestId: z.ZodString;
815
- runId: z.ZodString;
816
- jobId: z.ZodString;
817
- }, "strip", z.ZodTypeAny, {
818
- type: "dashboard.orch.logs";
819
- runId: string;
820
- jobId: string;
821
- requestId: string;
822
- }, {
823
- type: "dashboard.orch.logs";
824
- runId: string;
825
- jobId: string;
826
- requestId: string;
827
- }>, z.ZodObject<{
828
- type: z.ZodLiteral<"dashboard.environments.list">;
829
- requestId: z.ZodString;
830
- }, "strip", z.ZodTypeAny, {
831
- type: "dashboard.environments.list";
832
- requestId: string;
833
- }, {
834
- type: "dashboard.environments.list";
835
- requestId: string;
836
- }>, z.ZodObject<{
837
- type: z.ZodLiteral<"dashboard.environments.get">;
838
- requestId: z.ZodString;
839
- environmentId: z.ZodString;
840
- }, "strip", z.ZodTypeAny, {
841
- type: "dashboard.environments.get";
842
- requestId: string;
843
- environmentId: string;
844
- }, {
845
- type: "dashboard.environments.get";
846
- requestId: string;
847
- environmentId: string;
848
- }>, z.ZodObject<{
849
- type: z.ZodLiteral<"dashboard.environments.create">;
850
- requestId: z.ZodString;
851
- name: z.ZodString;
852
- envType: z.ZodEnum<["fixed", "glob"]>;
853
- globPattern: z.ZodOptional<z.ZodString>;
854
- branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
855
- concurrencyLimit: z.ZodOptional<z.ZodNumber>;
856
- concurrencyStrategy: z.ZodOptional<z.ZodEnum<["queue", "cancel-pending"]>>;
857
- requiredReviewers: z.ZodOptional<z.ZodNumber>;
858
- waitTimerSeconds: z.ZodOptional<z.ZodNumber>;
859
- holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
860
- enabled: z.ZodOptional<z.ZodBoolean>;
861
- }, "strip", z.ZodTypeAny, {
862
- type: "dashboard.environments.create";
863
- name: string;
864
- requestId: string;
865
- envType: "fixed" | "glob";
866
- globPattern?: string | undefined;
867
- enabled?: boolean | undefined;
868
- branchRestrictions?: string[] | undefined;
869
- concurrencyLimit?: number | undefined;
870
- concurrencyStrategy?: "queue" | "cancel-pending" | undefined;
871
- requiredReviewers?: number | undefined;
872
- waitTimerSeconds?: number | undefined;
873
- holdExpirySeconds?: number | undefined;
874
- }, {
875
- type: "dashboard.environments.create";
876
- name: string;
877
- requestId: string;
878
- envType: "fixed" | "glob";
879
- globPattern?: string | undefined;
880
- enabled?: boolean | undefined;
881
- branchRestrictions?: string[] | undefined;
882
- concurrencyLimit?: number | undefined;
883
- concurrencyStrategy?: "queue" | "cancel-pending" | undefined;
884
- requiredReviewers?: number | undefined;
885
- waitTimerSeconds?: number | undefined;
886
- holdExpirySeconds?: number | undefined;
887
- }>, z.ZodObject<{
888
- type: z.ZodLiteral<"dashboard.environments.update">;
889
- requestId: z.ZodString;
890
- environmentId: z.ZodString;
891
- updates: z.ZodObject<{
892
- name: z.ZodOptional<z.ZodString>;
893
- envType: z.ZodOptional<z.ZodEnum<["fixed", "glob"]>>;
894
- globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
- branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
896
- concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
897
- concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<["queue", "cancel-pending"]>>>;
898
- requiredReviewers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
899
- waitTimerSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
900
- holdExpirySeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
901
- enabled: z.ZodOptional<z.ZodBoolean>;
902
- }, "strip", z.ZodTypeAny, {
903
- name?: string | undefined;
904
- globPattern?: string | null | undefined;
905
- enabled?: boolean | undefined;
906
- branchRestrictions?: string[] | null | undefined;
907
- concurrencyLimit?: number | null | undefined;
908
- concurrencyStrategy?: "queue" | "cancel-pending" | null | undefined;
909
- requiredReviewers?: number | null | undefined;
910
- waitTimerSeconds?: number | null | undefined;
911
- holdExpirySeconds?: number | null | undefined;
912
- envType?: "fixed" | "glob" | undefined;
913
- }, {
914
- name?: string | undefined;
915
- globPattern?: string | null | undefined;
916
- enabled?: boolean | undefined;
917
- branchRestrictions?: string[] | null | undefined;
918
- concurrencyLimit?: number | null | undefined;
919
- concurrencyStrategy?: "queue" | "cancel-pending" | null | undefined;
920
- requiredReviewers?: number | null | undefined;
921
- waitTimerSeconds?: number | null | undefined;
922
- holdExpirySeconds?: number | null | undefined;
923
- envType?: "fixed" | "glob" | undefined;
924
- }>;
925
- }, "strip", z.ZodTypeAny, {
926
- type: "dashboard.environments.update";
927
- requestId: string;
928
- environmentId: string;
929
- updates: {
930
- name?: string | undefined;
931
- globPattern?: string | null | undefined;
932
- enabled?: boolean | undefined;
933
- branchRestrictions?: string[] | null | undefined;
934
- concurrencyLimit?: number | null | undefined;
935
- concurrencyStrategy?: "queue" | "cancel-pending" | null | undefined;
936
- requiredReviewers?: number | null | undefined;
937
- waitTimerSeconds?: number | null | undefined;
938
- holdExpirySeconds?: number | null | undefined;
939
- envType?: "fixed" | "glob" | undefined;
940
- };
941
- }, {
942
- type: "dashboard.environments.update";
943
- requestId: string;
944
- environmentId: string;
945
- updates: {
946
- name?: string | undefined;
947
- globPattern?: string | null | undefined;
948
- enabled?: boolean | undefined;
949
- branchRestrictions?: string[] | null | undefined;
950
- concurrencyLimit?: number | null | undefined;
951
- concurrencyStrategy?: "queue" | "cancel-pending" | null | undefined;
952
- requiredReviewers?: number | null | undefined;
953
- waitTimerSeconds?: number | null | undefined;
954
- holdExpirySeconds?: number | null | undefined;
955
- envType?: "fixed" | "glob" | undefined;
956
- };
957
- }>, z.ZodObject<{
958
- type: z.ZodLiteral<"dashboard.environments.delete">;
959
- requestId: z.ZodString;
960
- environmentId: z.ZodString;
961
- }, "strip", z.ZodTypeAny, {
962
- type: "dashboard.environments.delete";
963
- requestId: string;
964
- environmentId: string;
965
- }, {
966
- type: "dashboard.environments.delete";
967
- requestId: string;
968
- environmentId: string;
969
- }>, z.ZodObject<{
970
- type: z.ZodLiteral<"dashboard.environments.variables.list">;
971
- requestId: z.ZodString;
972
- environmentId: z.ZodString;
973
- }, "strip", z.ZodTypeAny, {
974
- type: "dashboard.environments.variables.list";
975
- requestId: string;
976
- environmentId: string;
977
- }, {
978
- type: "dashboard.environments.variables.list";
979
- requestId: string;
980
- environmentId: string;
981
- }>, z.ZodObject<{
982
- type: z.ZodLiteral<"dashboard.environments.variables.set">;
983
- requestId: z.ZodString;
984
- environmentId: z.ZodString;
985
- key: z.ZodString;
986
- value: z.ZodString;
987
- locked: z.ZodOptional<z.ZodBoolean>;
988
- }, "strip", z.ZodTypeAny, {
989
- type: "dashboard.environments.variables.set";
990
- value: string;
991
- requestId: string;
992
- environmentId: string;
993
- key: string;
994
- locked?: boolean | undefined;
995
- }, {
996
- type: "dashboard.environments.variables.set";
997
- value: string;
998
- requestId: string;
999
- environmentId: string;
1000
- key: string;
1001
- locked?: boolean | undefined;
1002
- }>, z.ZodObject<{
1003
- type: z.ZodLiteral<"dashboard.environments.variables.delete">;
1004
- requestId: z.ZodString;
1005
- environmentId: z.ZodString;
1006
- key: z.ZodString;
1007
- }, "strip", z.ZodTypeAny, {
1008
- type: "dashboard.environments.variables.delete";
1009
- requestId: string;
1010
- environmentId: string;
1011
- key: string;
1012
- }, {
1013
- type: "dashboard.environments.variables.delete";
1014
- requestId: string;
1015
- environmentId: string;
1016
- key: string;
1017
- }>, z.ZodObject<{
1018
- type: z.ZodLiteral<"dashboard.environments.source-overrides.list">;
1019
- requestId: z.ZodString;
1020
- environmentId: z.ZodString;
1021
- routingKey: z.ZodString;
1022
- }, "strip", z.ZodTypeAny, {
1023
- type: "dashboard.environments.source-overrides.list";
1024
- routingKey: string;
1025
- requestId: string;
1026
- environmentId: string;
1027
- }, {
1028
- type: "dashboard.environments.source-overrides.list";
1029
- routingKey: string;
1030
- requestId: string;
1031
- environmentId: string;
1032
- }>, z.ZodObject<{
1033
- type: z.ZodLiteral<"dashboard.environments.source-overrides.set">;
1034
- requestId: z.ZodString;
1035
- environmentId: z.ZodString;
1036
- routingKey: z.ZodString;
1037
- key: z.ZodString;
1038
- value: z.ZodString;
1039
- }, "strip", z.ZodTypeAny, {
1040
- type: "dashboard.environments.source-overrides.set";
1041
- value: string;
1042
- routingKey: string;
1043
- requestId: string;
1044
- environmentId: string;
1045
- key: string;
1046
- }, {
1047
- type: "dashboard.environments.source-overrides.set";
1048
- value: string;
1049
- routingKey: string;
1050
- requestId: string;
1051
- environmentId: string;
1052
- key: string;
1053
- }>, z.ZodObject<{
1054
- type: z.ZodLiteral<"dashboard.environments.source-overrides.delete">;
1055
- requestId: z.ZodString;
1056
- environmentId: z.ZodString;
1057
- routingKey: z.ZodString;
1058
- key: z.ZodString;
1059
- }, "strip", z.ZodTypeAny, {
1060
- type: "dashboard.environments.source-overrides.delete";
1061
- routingKey: string;
1062
- requestId: string;
1063
- environmentId: string;
1064
- key: string;
1065
- }, {
1066
- type: "dashboard.environments.source-overrides.delete";
1067
- routingKey: string;
1068
- requestId: string;
1069
- environmentId: string;
1070
- key: string;
1071
- }>, z.ZodObject<{
1072
- type: z.ZodLiteral<"dashboard.environments.bindings.list">;
1073
- requestId: z.ZodString;
1074
- environmentId: z.ZodString;
1075
- }, "strip", z.ZodTypeAny, {
1076
- type: "dashboard.environments.bindings.list";
1077
- requestId: string;
1078
- environmentId: string;
1079
- }, {
1080
- type: "dashboard.environments.bindings.list";
1081
- requestId: string;
1082
- environmentId: string;
1083
- }>, z.ZodObject<{
1084
- type: z.ZodLiteral<"dashboard.environments.bindings.set">;
1085
- requestId: z.ZodString;
1086
- environmentId: z.ZodString;
1087
- scopePatterns: z.ZodArray<z.ZodString, "many">;
1088
- }, "strip", z.ZodTypeAny, {
1089
- type: "dashboard.environments.bindings.set";
1090
- requestId: string;
1091
- environmentId: string;
1092
- scopePatterns: string[];
1093
- }, {
1094
- type: "dashboard.environments.bindings.set";
1095
- requestId: string;
1096
- environmentId: string;
1097
- scopePatterns: string[];
1098
- }>, z.ZodObject<{
1099
- type: z.ZodLiteral<"dashboard.environments.secrets.list">;
1100
- requestId: z.ZodString;
1101
- }, "strip", z.ZodTypeAny, {
1102
- type: "dashboard.environments.secrets.list";
1103
- requestId: string;
1104
- }, {
1105
- type: "dashboard.environments.secrets.list";
1106
- requestId: string;
1107
- }>, z.ZodObject<{
1108
- type: z.ZodLiteral<"dashboard.environments.secrets.set">;
1109
- requestId: z.ZodString;
1110
- scope: z.ZodString;
1111
- key: z.ZodString;
1112
- value: z.ZodString;
1113
- }, "strip", z.ZodTypeAny, {
1114
- type: "dashboard.environments.secrets.set";
1115
- value: string;
1116
- requestId: string;
1117
- key: string;
1118
- scope: string;
1119
- }, {
1120
- type: "dashboard.environments.secrets.set";
1121
- value: string;
1122
- requestId: string;
1123
- key: string;
1124
- scope: string;
1125
- }>, z.ZodObject<{
1126
- type: z.ZodLiteral<"dashboard.environments.secrets.delete">;
1127
- requestId: z.ZodString;
1128
- scope: z.ZodString;
1129
- key: z.ZodString;
1130
- }, "strip", z.ZodTypeAny, {
1131
- type: "dashboard.environments.secrets.delete";
1132
- requestId: string;
1133
- key: string;
1134
- scope: string;
1135
- }, {
1136
- type: "dashboard.environments.secrets.delete";
1137
- requestId: string;
1138
- key: string;
1139
- scope: string;
1140
- }>, z.ZodObject<{
1141
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.create">;
1142
- requestId: z.ZodString;
1143
- scope: z.ZodString;
1144
- }, "strip", z.ZodTypeAny, {
1145
- type: "dashboard.environments.secrets.scope.create";
1146
- requestId: string;
1147
- scope: string;
1148
- }, {
1149
- type: "dashboard.environments.secrets.scope.create";
1150
- requestId: string;
1151
- scope: string;
1152
- }>, z.ZodObject<{
1153
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename">;
1154
- requestId: z.ZodString;
1155
- oldScope: z.ZodString;
1156
- newScope: z.ZodString;
1157
- }, "strip", z.ZodTypeAny, {
1158
- type: "dashboard.environments.secrets.scope.rename";
1159
- requestId: string;
1160
- oldScope: string;
1161
- newScope: string;
1162
- }, {
1163
- type: "dashboard.environments.secrets.scope.rename";
1164
- requestId: string;
1165
- oldScope: string;
1166
- newScope: string;
1167
- }>, z.ZodObject<{
1168
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete">;
1169
- requestId: z.ZodString;
1170
- scope: z.ZodString;
1171
- }, "strip", z.ZodTypeAny, {
1172
- type: "dashboard.environments.secrets.scope.delete";
1173
- requestId: string;
1174
- scope: string;
1175
- }, {
1176
- type: "dashboard.environments.secrets.scope.delete";
1177
- requestId: string;
1178
- scope: string;
1179
- }>, z.ZodObject<{
1180
- type: z.ZodLiteral<"dashboard.environments.history">;
1181
- requestId: z.ZodString;
1182
- environmentName: z.ZodString;
1183
- limit: z.ZodOptional<z.ZodNumber>;
1184
- offset: z.ZodOptional<z.ZodNumber>;
1185
- }, "strip", z.ZodTypeAny, {
1186
- type: "dashboard.environments.history";
1187
- requestId: string;
1188
- environmentName: string;
1189
- limit?: number | undefined;
1190
- offset?: number | undefined;
1191
- }, {
1192
- type: "dashboard.environments.history";
1193
- requestId: string;
1194
- environmentName: string;
1195
- limit?: number | undefined;
1196
- offset?: number | undefined;
1197
- }>, z.ZodObject<{
1198
- type: z.ZodLiteral<"dashboard.held-runs.list">;
1199
- requestId: z.ZodString;
1200
- status: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected", "expired"]>>;
1201
- queueType: z.ZodOptional<z.ZodEnum<["environment", "security"]>>;
1202
- runId: z.ZodOptional<z.ZodString>;
1203
- }, "strip", z.ZodTypeAny, {
1204
- type: "dashboard.held-runs.list";
1205
- requestId: string;
1206
- status?: "pending" | "rejected" | "approved" | "expired" | undefined;
1207
- runId?: string | undefined;
1208
- queueType?: "environment" | "security" | undefined;
1209
- }, {
1210
- type: "dashboard.held-runs.list";
1211
- requestId: string;
1212
- status?: "pending" | "rejected" | "approved" | "expired" | undefined;
1213
- runId?: string | undefined;
1214
- queueType?: "environment" | "security" | undefined;
1215
- }>, z.ZodObject<{
1216
- type: z.ZodLiteral<"dashboard.held-runs.approve">;
1217
- requestId: z.ZodString;
1218
- heldRunId: z.ZodString;
1219
- }, "strip", z.ZodTypeAny, {
1220
- type: "dashboard.held-runs.approve";
1221
- requestId: string;
1222
- heldRunId: string;
1223
- }, {
1224
- type: "dashboard.held-runs.approve";
1225
- requestId: string;
1226
- heldRunId: string;
1227
- }>, z.ZodObject<{
1228
- type: z.ZodLiteral<"dashboard.held-runs.reject">;
1229
- requestId: z.ZodString;
1230
- heldRunId: z.ZodString;
1231
- reason: z.ZodOptional<z.ZodString>;
1232
- }, "strip", z.ZodTypeAny, {
1233
- type: "dashboard.held-runs.reject";
1234
- requestId: string;
1235
- heldRunId: string;
1236
- reason?: string | undefined;
1237
- }, {
1238
- type: "dashboard.held-runs.reject";
1239
- requestId: string;
1240
- heldRunId: string;
1241
- reason?: string | undefined;
1242
- }>, z.ZodObject<{
1243
- type: z.ZodLiteral<"dashboard.registrations.list">;
1244
- requestId: z.ZodString;
1245
- triggerType: z.ZodOptional<z.ZodString>;
1246
- repoIdentifier: z.ZodOptional<z.ZodString>;
1247
- }, "strip", z.ZodTypeAny, {
1248
- type: "dashboard.registrations.list";
1249
- requestId: string;
1250
- repoIdentifier?: string | undefined;
1251
- triggerType?: string | undefined;
1252
- }, {
1253
- type: "dashboard.registrations.list";
1254
- requestId: string;
1255
- repoIdentifier?: string | undefined;
1256
- triggerType?: string | undefined;
1257
- }>, z.ZodObject<{
1258
- type: z.ZodLiteral<"dashboard.registration.disable">;
1259
- requestId: z.ZodString;
1260
- registrationId: z.ZodString;
1261
- disabled: z.ZodBoolean;
1262
- }, "strip", z.ZodTypeAny, {
1263
- type: "dashboard.registration.disable";
1264
- requestId: string;
1265
- registrationId: string;
1266
- disabled: boolean;
1267
- }, {
1268
- type: "dashboard.registration.disable";
1269
- requestId: string;
1270
- registrationId: string;
1271
- disabled: boolean;
1272
- }>, z.ZodObject<{
1273
- type: z.ZodLiteral<"dashboard.registration.delete">;
1274
- requestId: z.ZodString;
1275
- registrationId: z.ZodString;
1276
- cancelActiveRuns: z.ZodOptional<z.ZodBoolean>;
1277
- }, "strip", z.ZodTypeAny, {
1278
- type: "dashboard.registration.delete";
1279
- requestId: string;
1280
- registrationId: string;
1281
- cancelActiveRuns?: boolean | undefined;
1282
- }, {
1283
- type: "dashboard.registration.delete";
1284
- requestId: string;
1285
- registrationId: string;
1286
- cancelActiveRuns?: boolean | undefined;
1287
- }>, z.ZodObject<{
1288
- type: z.ZodLiteral<"dashboard.diagnostics">;
1289
- requestId: z.ZodString;
1290
- includeAgents: z.ZodOptional<z.ZodBoolean>;
1291
- }, "strip", z.ZodTypeAny, {
1292
- type: "dashboard.diagnostics";
1293
- requestId: string;
1294
- includeAgents?: boolean | undefined;
1295
- }, {
1296
- type: "dashboard.diagnostics";
1297
- requestId: string;
1298
- includeAgents?: boolean | undefined;
1299
- }>, z.ZodObject<{
1300
- type: z.ZodLiteral<"dashboard.scaler.capacity">;
1301
- requestId: z.ZodString;
1302
- }, "strip", z.ZodTypeAny, {
1303
- type: "dashboard.scaler.capacity";
1304
- requestId: string;
1305
- }, {
1306
- type: "dashboard.scaler.capacity";
1307
- requestId: string;
1308
- }>, z.ZodObject<{
1309
- type: z.ZodLiteral<"dashboard.scaler.agents">;
1310
- requestId: z.ZodString;
1311
- scalerName: z.ZodNullable<z.ZodString>;
1312
- }, "strip", z.ZodTypeAny, {
1313
- type: "dashboard.scaler.agents";
1314
- scalerName: string | null;
1315
- requestId: string;
1316
- }, {
1317
- type: "dashboard.scaler.agents";
1318
- scalerName: string | null;
1319
- requestId: string;
1320
- }>, z.ZodObject<{
1321
- type: z.ZodLiteral<"dashboard.backends.list">;
1322
- requestId: z.ZodString;
1323
- }, "strip", z.ZodTypeAny, {
1324
- type: "dashboard.backends.list";
1325
- requestId: string;
1326
- }, {
1327
- type: "dashboard.backends.list";
1328
- requestId: string;
1329
- }>, z.ZodObject<{
1330
- type: z.ZodLiteral<"dashboard.backends.get">;
1331
- requestId: z.ZodString;
1332
- name: z.ZodString;
1333
- }, "strip", z.ZodTypeAny, {
1334
- type: "dashboard.backends.get";
1335
- name: string;
1336
- requestId: string;
1337
- }, {
1338
- type: "dashboard.backends.get";
1339
- name: string;
1340
- requestId: string;
1341
- }>, z.ZodObject<{
1342
- type: z.ZodLiteral<"dashboard.backends.sync">;
1343
- requestId: z.ZodString;
1344
- }, "strip", z.ZodTypeAny, {
1345
- type: "dashboard.backends.sync";
1346
- requestId: string;
1347
- }, {
1348
- type: "dashboard.backends.sync";
1349
- requestId: string;
1350
- }>, z.ZodObject<{
1351
- type: z.ZodLiteral<"dashboard.backends.sync.one">;
1352
- requestId: z.ZodString;
1353
- name: z.ZodString;
1354
- }, "strip", z.ZodTypeAny, {
1355
- type: "dashboard.backends.sync.one";
1356
- name: string;
1357
- requestId: string;
1358
- }, {
1359
- type: "dashboard.backends.sync.one";
1360
- name: string;
1361
- requestId: string;
1362
- }>, z.ZodObject<{
1363
- type: z.ZodLiteral<"dashboard.backends.test">;
1364
- requestId: z.ZodString;
1365
- name: z.ZodString;
1366
- }, "strip", z.ZodTypeAny, {
1367
- type: "dashboard.backends.test";
1368
- name: string;
1369
- requestId: string;
1370
- }, {
1371
- type: "dashboard.backends.test";
1372
- name: string;
1373
- requestId: string;
1374
- }>]>;
1375
- /** All messages that flow from Orchestrator to SaaS.
1376
- *
1377
- * Note: Dashboard response messages (dashboard.run.detail.response,
1378
- * dashboard.step.logs.response, dashboard.orch.logs.response) are intentionally
1379
- * excluded here. They are parsed separately via dashboardOrchToSaasSchema so
1380
- * the SaaS WS handler can route them to the DashboardProxy for request
1381
- * correlation. */
1382
- export declare const orchestratorToSaasMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1383
- type: z.ZodLiteral<"webhook.ack">;
1384
- messageId: z.ZodString;
1385
- deliveryId: z.ZodString;
1386
- }, "strip", z.ZodTypeAny, {
1387
- type: "webhook.ack";
1388
- messageId: string;
1389
- deliveryId: string;
1390
- }, {
1391
- type: "webhook.ack";
1392
- messageId: string;
1393
- deliveryId: string;
1394
- }>, z.ZodObject<{
1395
- type: z.ZodLiteral<"execution.event">;
1396
- messageId: z.ZodString;
1397
- runId: z.ZodString;
1398
- event: z.ZodEnum<["started", "job_dispatched", "job_completed", "finished"]>;
1399
- data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1400
- timestamp: z.ZodNumber;
1401
- }, "strip", z.ZodTypeAny, {
1402
- type: "execution.event";
1403
- timestamp: number;
1404
- messageId: string;
1405
- runId: string;
1406
- data: Record<string, unknown>;
1407
- event: "started" | "job_dispatched" | "job_completed" | "finished";
1408
- }, {
1409
- type: "execution.event";
1410
- timestamp: number;
1411
- messageId: string;
1412
- runId: string;
1413
- data: Record<string, unknown>;
1414
- event: "started" | "job_dispatched" | "job_completed" | "finished";
1415
- }>, z.ZodObject<{
1416
- type: z.ZodLiteral<"log.chunk">;
1417
- messageId: z.ZodString;
1418
- runId: z.ZodString;
1419
- jobId: z.ZodString;
1420
- stepIndex: z.ZodNumber;
1421
- lines: z.ZodArray<z.ZodString, "many">;
1422
- timestamp: z.ZodNumber;
1423
- }, "strip", z.ZodTypeAny, {
1424
- type: "log.chunk";
1425
- timestamp: number;
1426
- messageId: string;
1427
- runId: string;
1428
- jobId: string;
1429
- stepIndex: number;
1430
- lines: string[];
1431
- }, {
1432
- type: "log.chunk";
1433
- timestamp: number;
1434
- messageId: string;
1435
- runId: string;
1436
- jobId: string;
1437
- stepIndex: number;
1438
- lines: string[];
1439
- }>, z.ZodObject<{
1440
- type: z.ZodLiteral<"execution.status">;
1441
- messageId: z.ZodString;
1442
- runId: z.ZodString;
1443
- workflowName: z.ZodString;
1444
- status: z.ZodEnum<["pending", "running", "success", "failed", "cancelled", "cancelling"]>;
1445
- repoIdentifier: z.ZodOptional<z.ZodString>;
1446
- sha: z.ZodOptional<z.ZodString>;
1447
- ref: z.ZodOptional<z.ZodString>;
1448
- triggerEvent: z.ZodOptional<z.ZodString>;
1449
- commitMessage: z.ZodOptional<z.ZodString>;
1450
- jobCount: z.ZodOptional<z.ZodNumber>;
1451
- startedAt: z.ZodNumber;
1452
- completedAt: z.ZodOptional<z.ZodNumber>;
1453
- durationMs: z.ZodOptional<z.ZodNumber>;
1454
- timestamp: z.ZodNumber;
1455
- parentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1456
- originalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1457
- triggeredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1458
- failureReason: z.ZodOptional<z.ZodString>;
1459
- }, "strip", z.ZodTypeAny, {
1460
- type: "execution.status";
1461
- status: "pending" | "running" | "success" | "failed" | "cancelled" | "cancelling";
1462
- timestamp: number;
1463
- messageId: string;
1464
- runId: string;
1465
- workflowName: string;
1466
- startedAt: number;
1467
- repoIdentifier?: string | undefined;
1468
- sha?: string | undefined;
1469
- ref?: string | undefined;
1470
- triggerEvent?: string | undefined;
1471
- commitMessage?: string | undefined;
1472
- jobCount?: number | undefined;
1473
- completedAt?: number | undefined;
1474
- durationMs?: number | undefined;
1475
- parentRunId?: string | null | undefined;
1476
- originalRunId?: string | null | undefined;
1477
- triggeredBy?: string | null | undefined;
1478
- failureReason?: string | undefined;
1479
- }, {
1480
- type: "execution.status";
1481
- status: "pending" | "running" | "success" | "failed" | "cancelled" | "cancelling";
1482
- timestamp: number;
1483
- messageId: string;
1484
- runId: string;
1485
- workflowName: string;
1486
- startedAt: number;
1487
- repoIdentifier?: string | undefined;
1488
- sha?: string | undefined;
1489
- ref?: string | undefined;
1490
- triggerEvent?: string | undefined;
1491
- commitMessage?: string | undefined;
1492
- jobCount?: number | undefined;
1493
- completedAt?: number | undefined;
1494
- durationMs?: number | undefined;
1495
- parentRunId?: string | null | undefined;
1496
- originalRunId?: string | null | undefined;
1497
- triggeredBy?: string | null | undefined;
1498
- failureReason?: string | undefined;
1499
- }>, z.ZodObject<{
1500
- type: z.ZodLiteral<"step.status.forward">;
1501
- messageId: z.ZodString;
1502
- runId: z.ZodString;
1503
- jobId: z.ZodString;
1504
- jobName: z.ZodString;
1505
- stepIndex: z.ZodNumber;
1506
- stepName: z.ZodString;
1507
- state: z.ZodEnum<["running", "success", "failed", "skipped"]>;
1508
- timestamp: z.ZodNumber;
1509
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1510
- secretsAccessed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1511
- }, "strip", z.ZodTypeAny, {
1512
- type: "step.status.forward";
1513
- timestamp: number;
1514
- messageId: string;
1515
- runId: string;
1516
- jobId: string;
1517
- jobName: string;
1518
- stepIndex: number;
1519
- stepName: string;
1520
- state: "running" | "success" | "failed" | "skipped";
1521
- data?: Record<string, unknown> | undefined;
1522
- secretsAccessed?: string[] | undefined;
1523
- }, {
1524
- type: "step.status.forward";
1525
- timestamp: number;
1526
- messageId: string;
1527
- runId: string;
1528
- jobId: string;
1529
- jobName: string;
1530
- stepIndex: number;
1531
- stepName: string;
1532
- state: "running" | "success" | "failed" | "skipped";
1533
- data?: Record<string, unknown> | undefined;
1534
- secretsAccessed?: string[] | undefined;
1535
- }>, z.ZodObject<{
1536
- type: z.ZodLiteral<"job.status.forward">;
1537
- messageId: z.ZodString;
1538
- runId: z.ZodString;
1539
- jobId: z.ZodString;
1540
- jobName: z.ZodString;
1541
- status: z.ZodEnum<["pending", "queued", "running", "recovering", "cancelling", "success", "failed", "cancelled", "skipped", "timed_out_stale", "drift_dropped"]>;
1542
- matrixValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1543
- startedAt: z.ZodOptional<z.ZodNumber>;
1544
- completedAt: z.ZodOptional<z.ZodNumber>;
1545
- durationMs: z.ZodOptional<z.ZodNumber>;
1546
- errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1547
- agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1548
- orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1549
- runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1550
- timestamp: z.ZodNumber;
1551
- }, "strip", z.ZodTypeAny, {
1552
- type: "job.status.forward";
1553
- status: "pending" | "running" | "success" | "failed" | "cancelled" | "cancelling" | "queued" | "recovering" | "skipped" | "timed_out_stale" | "drift_dropped";
1554
- timestamp: number;
1555
- messageId: string;
1556
- runId: string;
1557
- jobId: string;
1558
- jobName: string;
1559
- startedAt?: number | undefined;
1560
- completedAt?: number | undefined;
1561
- durationMs?: number | undefined;
1562
- matrixValues?: Record<string, unknown> | undefined;
1563
- errorMessage?: string | null | undefined;
1564
- agentId?: string | null | undefined;
1565
- orchestratorId?: string | null | undefined;
1566
- runsOnLabels?: string[] | undefined;
1567
- }, {
1568
- type: "job.status.forward";
1569
- status: "pending" | "running" | "success" | "failed" | "cancelled" | "cancelling" | "queued" | "recovering" | "skipped" | "timed_out_stale" | "drift_dropped";
1570
- timestamp: number;
1571
- messageId: string;
1572
- runId: string;
1573
- jobId: string;
1574
- jobName: string;
1575
- startedAt?: number | undefined;
1576
- completedAt?: number | undefined;
1577
- durationMs?: number | undefined;
1578
- matrixValues?: Record<string, unknown> | undefined;
1579
- errorMessage?: string | null | undefined;
1580
- agentId?: string | null | undefined;
1581
- orchestratorId?: string | null | undefined;
1582
- runsOnLabels?: string[] | undefined;
1583
- }>, z.ZodObject<{
1584
- type: z.ZodLiteral<"state.replay">;
1585
- messageId: z.ZodString;
1586
- runs: z.ZodArray<z.ZodObject<{
1587
- runId: z.ZodString;
1588
- workflowName: z.ZodString;
1589
- status: z.ZodEnum<["pending", "running", "success", "failed", "cancelled", "cancelling"]>;
1590
- routingKey: z.ZodOptional<z.ZodString>;
1591
- repoIdentifier: z.ZodOptional<z.ZodString>;
1592
- sha: z.ZodOptional<z.ZodString>;
1593
- ref: z.ZodOptional<z.ZodString>;
1594
- triggerEvent: z.ZodOptional<z.ZodString>;
1595
- commitMessage: z.ZodOptional<z.ZodString>;
1596
- jobCount: z.ZodNumber;
1597
- startedAt: z.ZodNumber;
1598
- completedAt: z.ZodOptional<z.ZodNumber>;
1599
- durationMs: z.ZodOptional<z.ZodNumber>;
1600
- parentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1601
- originalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1602
- triggeredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1603
- failureReason: z.ZodOptional<z.ZodString>;
1604
- jobs: z.ZodArray<z.ZodObject<{
1605
- jobId: z.ZodString;
1606
- jobName: z.ZodString;
1607
- status: z.ZodString;
1608
- startedAt: z.ZodOptional<z.ZodNumber>;
1609
- completedAt: z.ZodOptional<z.ZodNumber>;
1610
- durationMs: z.ZodOptional<z.ZodNumber>;
1611
- errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1612
- agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1613
- runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1614
- }, "strip", z.ZodTypeAny, {
1615
- status: string;
1616
- jobId: string;
1617
- jobName: string;
1618
- startedAt?: number | undefined;
1619
- completedAt?: number | undefined;
1620
- durationMs?: number | undefined;
1621
- errorMessage?: string | null | undefined;
1622
- agentId?: string | null | undefined;
1623
- runsOnLabels?: string[] | undefined;
1624
- }, {
1625
- status: string;
1626
- jobId: string;
1627
- jobName: string;
1628
- startedAt?: number | undefined;
1629
- completedAt?: number | undefined;
1630
- durationMs?: number | undefined;
1631
- errorMessage?: string | null | undefined;
1632
- agentId?: string | null | undefined;
1633
- runsOnLabels?: string[] | undefined;
1634
- }>, "many">;
1635
- }, "strip", z.ZodTypeAny, {
1636
- status: "pending" | "running" | "success" | "failed" | "cancelled" | "cancelling";
1637
- runId: string;
1638
- workflowName: string;
1639
- jobCount: number;
1640
- startedAt: number;
1641
- jobs: {
1642
- status: string;
1643
- jobId: string;
1644
- jobName: string;
1645
- startedAt?: number | undefined;
1646
- completedAt?: number | undefined;
1647
- durationMs?: number | undefined;
1648
- errorMessage?: string | null | undefined;
1649
- agentId?: string | null | undefined;
1650
- runsOnLabels?: string[] | undefined;
1651
- }[];
1652
- repoIdentifier?: string | undefined;
1653
- sha?: string | undefined;
1654
- ref?: string | undefined;
1655
- triggerEvent?: string | undefined;
1656
- commitMessage?: string | undefined;
1657
- completedAt?: number | undefined;
1658
- durationMs?: number | undefined;
1659
- parentRunId?: string | null | undefined;
1660
- originalRunId?: string | null | undefined;
1661
- triggeredBy?: string | null | undefined;
1662
- failureReason?: string | undefined;
1663
- routingKey?: string | undefined;
1664
- }, {
1665
- status: "pending" | "running" | "success" | "failed" | "cancelled" | "cancelling";
1666
- runId: string;
1667
- workflowName: string;
1668
- jobCount: number;
1669
- startedAt: number;
1670
- jobs: {
1671
- status: string;
1672
- jobId: string;
1673
- jobName: string;
1674
- startedAt?: number | undefined;
1675
- completedAt?: number | undefined;
1676
- durationMs?: number | undefined;
1677
- errorMessage?: string | null | undefined;
1678
- agentId?: string | null | undefined;
1679
- runsOnLabels?: string[] | undefined;
1680
- }[];
1681
- repoIdentifier?: string | undefined;
1682
- sha?: string | undefined;
1683
- ref?: string | undefined;
1684
- triggerEvent?: string | undefined;
1685
- commitMessage?: string | undefined;
1686
- completedAt?: number | undefined;
1687
- durationMs?: number | undefined;
1688
- parentRunId?: string | null | undefined;
1689
- originalRunId?: string | null | undefined;
1690
- triggeredBy?: string | null | undefined;
1691
- failureReason?: string | undefined;
1692
- routingKey?: string | undefined;
1693
- }>, "many">;
1694
- timestamp: z.ZodNumber;
1695
- }, "strip", z.ZodTypeAny, {
1696
- type: "state.replay";
1697
- timestamp: number;
1698
- messageId: string;
1699
- runs: {
1700
- status: "pending" | "running" | "success" | "failed" | "cancelled" | "cancelling";
1701
- runId: string;
1702
- workflowName: string;
1703
- jobCount: number;
1704
- startedAt: number;
1705
- jobs: {
1706
- status: string;
1707
- jobId: string;
1708
- jobName: string;
1709
- startedAt?: number | undefined;
1710
- completedAt?: number | undefined;
1711
- durationMs?: number | undefined;
1712
- errorMessage?: string | null | undefined;
1713
- agentId?: string | null | undefined;
1714
- runsOnLabels?: string[] | undefined;
1715
- }[];
1716
- repoIdentifier?: string | undefined;
1717
- sha?: string | undefined;
1718
- ref?: string | undefined;
1719
- triggerEvent?: string | undefined;
1720
- commitMessage?: string | undefined;
1721
- completedAt?: number | undefined;
1722
- durationMs?: number | undefined;
1723
- parentRunId?: string | null | undefined;
1724
- originalRunId?: string | null | undefined;
1725
- triggeredBy?: string | null | undefined;
1726
- failureReason?: string | undefined;
1727
- routingKey?: string | undefined;
1728
- }[];
1729
- }, {
1730
- type: "state.replay";
1731
- timestamp: number;
1732
- messageId: string;
1733
- runs: {
1734
- status: "pending" | "running" | "success" | "failed" | "cancelled" | "cancelling";
1735
- runId: string;
1736
- workflowName: string;
1737
- jobCount: number;
1738
- startedAt: number;
1739
- jobs: {
1740
- status: string;
1741
- jobId: string;
1742
- jobName: string;
1743
- startedAt?: number | undefined;
1744
- completedAt?: number | undefined;
1745
- durationMs?: number | undefined;
1746
- errorMessage?: string | null | undefined;
1747
- agentId?: string | null | undefined;
1748
- runsOnLabels?: string[] | undefined;
1749
- }[];
1750
- repoIdentifier?: string | undefined;
1751
- sha?: string | undefined;
1752
- ref?: string | undefined;
1753
- triggerEvent?: string | undefined;
1754
- commitMessage?: string | undefined;
1755
- completedAt?: number | undefined;
1756
- durationMs?: number | undefined;
1757
- parentRunId?: string | null | undefined;
1758
- originalRunId?: string | null | undefined;
1759
- triggeredBy?: string | null | undefined;
1760
- failureReason?: string | undefined;
1761
- routingKey?: string | undefined;
1762
- }[];
1763
- }>, z.ZodObject<{
1764
- type: z.ZodLiteral<"source.register">;
1765
- messageId: z.ZodString;
1766
- sources: z.ZodArray<z.ZodObject<{
1767
- provider: z.ZodEnum<["github", "gitlab", "bitbucket", "generic"]>;
1768
- routingKey: z.ZodString;
1769
- }, "strip", z.ZodTypeAny, {
1770
- routingKey: string;
1771
- provider: "github" | "gitlab" | "bitbucket" | "generic";
1772
- }, {
1773
- routingKey: string;
1774
- provider: "github" | "gitlab" | "bitbucket" | "generic";
1775
- }>, "many">;
1776
- instanceId: z.ZodOptional<z.ZodString>;
1777
- address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1778
- version: z.ZodOptional<z.ZodString>;
1779
- mode: z.ZodOptional<z.ZodEnum<["saas", "hybrid", "independent"]>>;
1780
- scalerBackends: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1781
- s3LogAccess: z.ZodOptional<z.ZodBoolean>;
1782
- queueTimeoutMs: z.ZodOptional<z.ZodNumber>;
1783
- }, "strip", z.ZodTypeAny, {
1784
- type: "source.register";
1785
- messageId: string;
1786
- sources: {
1787
- routingKey: string;
1788
- provider: "github" | "gitlab" | "bitbucket" | "generic";
1789
- }[];
1790
- instanceId?: string | undefined;
1791
- address?: string | null | undefined;
1792
- version?: string | undefined;
1793
- mode?: "saas" | "hybrid" | "independent" | undefined;
1794
- scalerBackends?: string[] | undefined;
1795
- s3LogAccess?: boolean | undefined;
1796
- queueTimeoutMs?: number | undefined;
1797
- }, {
1798
- type: "source.register";
1799
- messageId: string;
1800
- sources: {
1801
- routingKey: string;
1802
- provider: "github" | "gitlab" | "bitbucket" | "generic";
1803
- }[];
1804
- instanceId?: string | undefined;
1805
- address?: string | null | undefined;
1806
- version?: string | undefined;
1807
- mode?: "saas" | "hybrid" | "independent" | undefined;
1808
- scalerBackends?: string[] | undefined;
1809
- s3LogAccess?: boolean | undefined;
1810
- queueTimeoutMs?: number | undefined;
1811
- }>, z.ZodObject<{
1812
- type: z.ZodLiteral<"source.deregister">;
1813
- messageId: z.ZodString;
1814
- routingKeys: z.ZodArray<z.ZodString, "many">;
1815
- }, "strip", z.ZodTypeAny, {
1816
- type: "source.deregister";
1817
- messageId: string;
1818
- routingKeys: string[];
1819
- }, {
1820
- type: "source.deregister";
1821
- messageId: string;
1822
- routingKeys: string[];
1823
- }>, z.ZodObject<{
1824
- type: z.ZodLiteral<"source.secrets">;
1825
- messageId: z.ZodString;
1826
- secrets: z.ZodArray<z.ZodObject<{
1827
- routingKey: z.ZodString;
1828
- secrets: z.ZodArray<z.ZodString, "many">;
1829
- }, "strip", z.ZodTypeAny, {
1830
- routingKey: string;
1831
- secrets: string[];
1832
- }, {
1833
- routingKey: string;
1834
- secrets: string[];
1835
- }>, "many">;
1836
- }, "strip", z.ZodTypeAny, {
1837
- type: "source.secrets";
1838
- messageId: string;
1839
- secrets: {
1840
- routingKey: string;
1841
- secrets: string[];
1842
- }[];
1843
- }, {
1844
- type: "source.secrets";
1845
- messageId: string;
1846
- secrets: {
1847
- routingKey: string;
1848
- secrets: string[];
1849
- }[];
1850
- }>, z.ZodObject<{
1851
- type: z.ZodLiteral<"cache.stats">;
1852
- cacheType: z.ZodEnum<["bundle", "dep"]>;
1853
- hit: z.ZodBoolean;
1854
- }, "strip", z.ZodTypeAny, {
1855
- type: "cache.stats";
1856
- cacheType: "bundle" | "dep";
1857
- hit: boolean;
1858
- }, {
1859
- type: "cache.stats";
1860
- cacheType: "bundle" | "dep";
1861
- hit: boolean;
1862
- }>, z.ZodObject<{
1863
- type: z.ZodLiteral<"auth.request">;
1864
- token: z.ZodString;
1865
- protocolVersion: z.ZodNumber;
1866
- capabilities: z.ZodOptional<z.ZodObject<{
1867
- orchRole: z.ZodOptional<z.ZodEnum<["coordinator", "worker"]>>;
1868
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1869
- orchRole: z.ZodOptional<z.ZodEnum<["coordinator", "worker"]>>;
1870
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1871
- orchRole: z.ZodOptional<z.ZodEnum<["coordinator", "worker"]>>;
1872
- }, z.ZodTypeAny, "passthrough">>>;
1873
- }, "strip", z.ZodTypeAny, {
1874
- type: "auth.request";
1875
- token: string;
1876
- protocolVersion: number;
1877
- capabilities?: z.objectOutputType<{
1878
- orchRole: z.ZodOptional<z.ZodEnum<["coordinator", "worker"]>>;
1879
- }, z.ZodTypeAny, "passthrough"> | undefined;
1880
- }, {
1881
- type: "auth.request";
1882
- token: string;
1883
- protocolVersion: number;
1884
- capabilities?: z.objectInputType<{
1885
- orchRole: z.ZodOptional<z.ZodEnum<["coordinator", "worker"]>>;
1886
- }, z.ZodTypeAny, "passthrough"> | undefined;
1887
- }>, z.ZodObject<{
1888
- type: z.ZodLiteral<"heartbeat">;
1889
- timestamp: z.ZodNumber;
1890
- }, "strip", z.ZodTypeAny, {
1891
- type: "heartbeat";
1892
- timestamp: number;
1893
- }, {
1894
- type: "heartbeat";
1895
- timestamp: number;
1896
- }>, z.ZodObject<{
1897
- type: z.ZodLiteral<"run.event">;
1898
- runId: z.ZodString;
1899
- orgId: z.ZodOptional<z.ZodString>;
1900
- eventType: z.ZodString;
1901
- timestampMs: z.ZodNumber;
1902
- sourceService: z.ZodEnum<["saas", "orchestrator", "agent"]>;
1903
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1904
- traceId: z.ZodOptional<z.ZodString>;
1905
- spanId: z.ZodOptional<z.ZodString>;
1906
- parentSpanId: z.ZodOptional<z.ZodString>;
1907
- durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1908
- jobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1909
- stepIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1910
- }, "strip", z.ZodTypeAny, {
1911
- type: "run.event";
1912
- runId: string;
1913
- eventType: string;
1914
- timestampMs: number;
1915
- sourceService: "saas" | "orchestrator" | "agent";
1916
- durationMs?: number | null | undefined;
1917
- jobId?: string | null | undefined;
1918
- stepIndex?: number | null | undefined;
1919
- orgId?: string | undefined;
1920
- metadata?: Record<string, unknown> | undefined;
1921
- traceId?: string | undefined;
1922
- spanId?: string | undefined;
1923
- parentSpanId?: string | undefined;
1924
- }, {
1925
- type: "run.event";
1926
- runId: string;
1927
- eventType: string;
1928
- timestampMs: number;
1929
- sourceService: "saas" | "orchestrator" | "agent";
1930
- durationMs?: number | null | undefined;
1931
- jobId?: string | null | undefined;
1932
- stepIndex?: number | null | undefined;
1933
- orgId?: string | undefined;
1934
- metadata?: Record<string, unknown> | undefined;
1935
- traceId?: string | undefined;
1936
- spanId?: string | undefined;
1937
- parentSpanId?: string | undefined;
1938
- }>, z.ZodObject<{
1939
- type: z.ZodLiteral<"job.context">;
1940
- runId: z.ZodString;
1941
- orgId: z.ZodOptional<z.ZodString>;
1942
- jobId: z.ZodString;
1943
- context: z.ZodObject<{
1944
- envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
1945
- name: z.ZodString;
1946
- value: z.ZodString;
1947
- category: z.ZodEnum<["system", "user", "inherited", "secret"]>;
1948
- }, "strip", z.ZodTypeAny, {
1949
- value: string;
1950
- name: string;
1951
- category: "system" | "user" | "inherited" | "secret";
1952
- }, {
1953
- value: string;
1954
- name: string;
1955
- category: "system" | "user" | "inherited" | "secret";
1956
- }>, "many">>;
1957
- runtime: z.ZodOptional<z.ZodObject<{
1958
- nodeVersion: z.ZodOptional<z.ZodString>;
1959
- os: z.ZodOptional<z.ZodString>;
1960
- arch: z.ZodOptional<z.ZodString>;
1961
- }, "strip", z.ZodTypeAny, {
1962
- nodeVersion?: string | undefined;
1963
- os?: string | undefined;
1964
- arch?: string | undefined;
1965
- }, {
1966
- nodeVersion?: string | undefined;
1967
- os?: string | undefined;
1968
- arch?: string | undefined;
1969
- }>>;
1970
- sandboxType: z.ZodOptional<z.ZodString>;
1971
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1972
- workingDirectory: z.ZodOptional<z.ZodString>;
1973
- gitRef: z.ZodOptional<z.ZodString>;
1974
- lockFileVersion: z.ZodOptional<z.ZodString>;
1975
- sdkVersion: z.ZodOptional<z.ZodString>;
1976
- depCacheStatus: z.ZodOptional<z.ZodString>;
1977
- networkIsolation: z.ZodOptional<z.ZodString>;
1978
- scalerContext: z.ZodOptional<z.ZodObject<{
1979
- backendType: z.ZodString;
1980
- scalerName: z.ZodString;
1981
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1982
- backendType: z.ZodString;
1983
- scalerName: z.ZodString;
1984
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1985
- backendType: z.ZodString;
1986
- scalerName: z.ZodString;
1987
- }, z.ZodTypeAny, "passthrough">>>;
1988
- }, "strip", z.ZodTypeAny, {
1989
- envVars?: {
1990
- value: string;
1991
- name: string;
1992
- category: "system" | "user" | "inherited" | "secret";
1993
- }[] | undefined;
1994
- runtime?: {
1995
- nodeVersion?: string | undefined;
1996
- os?: string | undefined;
1997
- arch?: string | undefined;
1998
- } | undefined;
1999
- sandboxType?: string | undefined;
2000
- labels?: string[] | undefined;
2001
- workingDirectory?: string | undefined;
2002
- gitRef?: string | undefined;
2003
- lockFileVersion?: string | undefined;
2004
- sdkVersion?: string | undefined;
2005
- depCacheStatus?: string | undefined;
2006
- networkIsolation?: string | undefined;
2007
- scalerContext?: z.objectOutputType<{
2008
- backendType: z.ZodString;
2009
- scalerName: z.ZodString;
2010
- }, z.ZodTypeAny, "passthrough"> | undefined;
2011
- }, {
2012
- envVars?: {
2013
- value: string;
2014
- name: string;
2015
- category: "system" | "user" | "inherited" | "secret";
2016
- }[] | undefined;
2017
- runtime?: {
2018
- nodeVersion?: string | undefined;
2019
- os?: string | undefined;
2020
- arch?: string | undefined;
2021
- } | undefined;
2022
- sandboxType?: string | undefined;
2023
- labels?: string[] | undefined;
2024
- workingDirectory?: string | undefined;
2025
- gitRef?: string | undefined;
2026
- lockFileVersion?: string | undefined;
2027
- sdkVersion?: string | undefined;
2028
- depCacheStatus?: string | undefined;
2029
- networkIsolation?: string | undefined;
2030
- scalerContext?: z.objectInputType<{
2031
- backendType: z.ZodString;
2032
- scalerName: z.ZodString;
2033
- }, z.ZodTypeAny, "passthrough"> | undefined;
2034
- }>;
2035
- }, "strip", z.ZodTypeAny, {
2036
- type: "job.context";
2037
- runId: string;
2038
- jobId: string;
2039
- context: {
2040
- envVars?: {
2041
- value: string;
2042
- name: string;
2043
- category: "system" | "user" | "inherited" | "secret";
2044
- }[] | undefined;
2045
- runtime?: {
2046
- nodeVersion?: string | undefined;
2047
- os?: string | undefined;
2048
- arch?: string | undefined;
2049
- } | undefined;
2050
- sandboxType?: string | undefined;
2051
- labels?: string[] | undefined;
2052
- workingDirectory?: string | undefined;
2053
- gitRef?: string | undefined;
2054
- lockFileVersion?: string | undefined;
2055
- sdkVersion?: string | undefined;
2056
- depCacheStatus?: string | undefined;
2057
- networkIsolation?: string | undefined;
2058
- scalerContext?: z.objectOutputType<{
2059
- backendType: z.ZodString;
2060
- scalerName: z.ZodString;
2061
- }, z.ZodTypeAny, "passthrough"> | undefined;
2062
- };
2063
- orgId?: string | undefined;
2064
- }, {
2065
- type: "job.context";
2066
- runId: string;
2067
- jobId: string;
2068
- context: {
2069
- envVars?: {
2070
- value: string;
2071
- name: string;
2072
- category: "system" | "user" | "inherited" | "secret";
2073
- }[] | undefined;
2074
- runtime?: {
2075
- nodeVersion?: string | undefined;
2076
- os?: string | undefined;
2077
- arch?: string | undefined;
2078
- } | undefined;
2079
- sandboxType?: string | undefined;
2080
- labels?: string[] | undefined;
2081
- workingDirectory?: string | undefined;
2082
- gitRef?: string | undefined;
2083
- lockFileVersion?: string | undefined;
2084
- sdkVersion?: string | undefined;
2085
- depCacheStatus?: string | undefined;
2086
- networkIsolation?: string | undefined;
2087
- scalerContext?: z.objectInputType<{
2088
- backendType: z.ZodString;
2089
- scalerName: z.ZodString;
2090
- }, z.ZodTypeAny, "passthrough"> | undefined;
2091
- };
2092
- orgId?: string | undefined;
2093
- }>, z.ZodObject<{
2094
- type: z.ZodLiteral<"orch.metrics">;
2095
- messageId: z.ZodString;
2096
- metrics: z.ZodArray<z.ZodObject<{
2097
- name: z.ZodString;
2098
- type: z.ZodEnum<["counter", "histogram", "gauge", "upDownCounter"]>;
2099
- value: z.ZodOptional<z.ZodNumber>;
2100
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2101
- buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2102
- le: z.ZodNumber;
2103
- count: z.ZodNumber;
2104
- }, "strip", z.ZodTypeAny, {
2105
- le: number;
2106
- count: number;
2107
- }, {
2108
- le: number;
2109
- count: number;
2110
- }>, "many">>;
2111
- count: z.ZodOptional<z.ZodNumber>;
2112
- sum: z.ZodOptional<z.ZodNumber>;
2113
- }, "strip", z.ZodTypeAny, {
2114
- type: "counter" | "histogram" | "gauge" | "upDownCounter";
2115
- name: string;
2116
- value?: number | undefined;
2117
- labels?: Record<string, string> | undefined;
2118
- count?: number | undefined;
2119
- buckets?: {
2120
- le: number;
2121
- count: number;
2122
- }[] | undefined;
2123
- sum?: number | undefined;
2124
- }, {
2125
- type: "counter" | "histogram" | "gauge" | "upDownCounter";
2126
- name: string;
2127
- value?: number | undefined;
2128
- labels?: Record<string, string> | undefined;
2129
- count?: number | undefined;
2130
- buckets?: {
2131
- le: number;
2132
- count: number;
2133
- }[] | undefined;
2134
- sum?: number | undefined;
2135
- }>, "many">;
2136
- timestamp: z.ZodNumber;
2137
- }, "strip", z.ZodTypeAny, {
2138
- type: "orch.metrics";
2139
- timestamp: number;
2140
- messageId: string;
2141
- metrics: {
2142
- type: "counter" | "histogram" | "gauge" | "upDownCounter";
2143
- name: string;
2144
- value?: number | undefined;
2145
- labels?: Record<string, string> | undefined;
2146
- count?: number | undefined;
2147
- buckets?: {
2148
- le: number;
2149
- count: number;
2150
- }[] | undefined;
2151
- sum?: number | undefined;
2152
- }[];
2153
- }, {
2154
- type: "orch.metrics";
2155
- timestamp: number;
2156
- messageId: string;
2157
- metrics: {
2158
- type: "counter" | "histogram" | "gauge" | "upDownCounter";
2159
- name: string;
2160
- value?: number | undefined;
2161
- labels?: Record<string, string> | undefined;
2162
- count?: number | undefined;
2163
- buckets?: {
2164
- le: number;
2165
- count: number;
2166
- }[] | undefined;
2167
- sum?: number | undefined;
2168
- }[];
2169
- }>]>;
2170
- export type WebhookRelay = z.infer<typeof webhookRelaySchema>;
2171
- export type WebhookAck = z.infer<typeof webhookAckSchema>;
2172
- export type ExecutionEvent = z.infer<typeof executionEventSchema>;
2173
- export type LogChunk = z.infer<typeof logChunkSchema>;
2174
- export type SourceSecrets = z.infer<typeof sourceSecretsSchema>;
2175
- export type PeerDiscover = z.infer<typeof peerDiscoverSchema>;
2176
- export type PeerUpdate = z.infer<typeof peerUpdateSchema>;
2177
- export type SaasToOrchestratorMessage = z.infer<typeof saasToOrchestratorMessageSchema>;
2178
- export type OrchestratorToSaasMessage = z.infer<typeof orchestratorToSaasMessageSchema>;
2179
- //# sourceMappingURL=saas-orchestrator.d.ts.map