@kici-dev/engine 0.0.0 → 0.1.1
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.
- package/LICENSE +661 -0
- package/README.md +1 -6
- package/dist/audit/access-log-policy.d.ts +97 -0
- package/dist/audit/access-log-policy.js +195 -0
- package/dist/audit/activity.d.ts +156 -0
- package/dist/audit/activity.js +175 -0
- package/dist/audit/retention-policy.d.ts +157 -0
- package/dist/audit/retention-policy.js +364 -0
- package/dist/bundler/index.d.ts +3 -0
- package/dist/bundler/index.js +3 -0
- package/dist/bundler/rolldown-config.d.ts +41 -0
- package/dist/bundler/rolldown-config.js +40 -0
- package/dist/chunk-gOLHoazu.js +4 -0
- package/dist/env/environment-allowlist.d.ts +45 -0
- package/dist/env/environment-allowlist.js +69 -0
- package/dist/environment/index.d.ts +3 -0
- package/dist/environment/index.js +3 -0
- package/dist/environment/scope-resolver.d.ts +35 -0
- package/dist/environment/scope-resolver.js +77 -0
- package/dist/environment/types.d.ts +98 -0
- package/dist/environment/types.js +2 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +45 -0
- package/dist/labels.d.ts +106 -0
- package/dist/labels.js +162 -0
- package/dist/metrics/metric-catalog.generated.d.ts +400 -0
- package/dist/metrics/metric-catalog.generated.js +510 -0
- package/dist/protocol/dashboard-global-workflows.d.ts +9 -0
- package/dist/protocol/dashboard-global-workflows.js +3 -0
- package/dist/protocol/event-log-payload.d.ts +16 -0
- package/dist/protocol/event-log-payload.js +21 -0
- package/dist/protocol/messages/access-log.d.ts +545 -0
- package/dist/protocol/messages/access-log.js +175 -0
- package/dist/protocol/messages/actor.d.ts +100 -0
- package/dist/protocol/messages/actor.js +139 -0
- package/dist/protocol/messages/auth.d.ts +25 -0
- package/dist/protocol/messages/auth.js +36 -0
- package/dist/protocol/messages/browser.d.ts +369 -0
- package/dist/protocol/messages/browser.js +225 -0
- package/dist/protocol/messages/capabilities.d.ts +46 -0
- package/dist/protocol/messages/capabilities.js +42 -0
- package/dist/protocol/messages/common.d.ts +53 -0
- package/dist/protocol/messages/common.js +55 -0
- package/dist/protocol/messages/dashboard-global-workflows.d.ts +166 -0
- package/dist/protocol/messages/dashboard-global-workflows.js +80 -0
- package/dist/protocol/messages/dashboard.d.ts +4068 -0
- package/dist/protocol/messages/dashboard.js +1237 -0
- package/dist/protocol/messages/event-log.d.ts +49 -0
- package/dist/protocol/messages/event-log.js +45 -0
- package/dist/protocol/messages/execution-status.d.ts +164 -0
- package/dist/protocol/messages/execution-status.js +166 -0
- package/dist/protocol/messages/join.d.ts +18 -0
- package/dist/protocol/messages/join.js +28 -0
- package/dist/protocol/messages/log-pull.d.ts +27 -0
- package/dist/protocol/messages/log-pull.js +36 -0
- package/dist/protocol/messages/observe.d.ts +75 -0
- package/dist/protocol/messages/observe.js +70 -0
- package/dist/protocol/messages/orchestrator-agent.d.ts +606 -0
- package/dist/protocol/messages/orchestrator-agent.js +481 -0
- package/dist/protocol/messages/peer.d.ts +795 -0
- package/dist/protocol/messages/peer.js +372 -0
- package/dist/protocol/messages/platform-orchestrator.d.ts +1888 -0
- package/dist/protocol/messages/platform-orchestrator.js +379 -0
- package/dist/protocol/messages/run-events.d.ts +155 -0
- package/dist/protocol/messages/run-events.js +115 -0
- package/dist/protocol/messages/saas-orchestrator.d.ts +2179 -0
- package/dist/protocol/messages/source-registration.d.ts +103 -0
- package/dist/protocol/messages/source-registration.js +109 -0
- package/dist/protocol/messages/test-run.d.ts +59 -0
- package/dist/protocol/messages/test-run.js +52 -0
- package/dist/protocol/version.d.ts +12 -0
- package/dist/protocol/version.js +17 -0
- package/dist/provider/changed-files-fetcher.d.ts +24 -0
- package/dist/provider/changed-files-fetcher.js +2 -0
- package/dist/provider/check-run-conclusion.d.ts +15 -0
- package/dist/provider/check-run-conclusion.js +19 -0
- package/dist/provider/check-status-poster.d.ts +15 -0
- package/dist/provider/check-status-poster.js +2 -0
- package/dist/provider/clone-token-provider.d.ts +58 -0
- package/dist/provider/clone-token-provider.js +2 -0
- package/dist/provider/contributor-resolver.d.ts +22 -0
- package/dist/provider/contributor-resolver.js +2 -0
- package/dist/provider/index.d.ts +23 -0
- package/dist/provider/index.js +3 -0
- package/dist/provider/lock-file-fetcher.d.ts +24 -0
- package/dist/provider/lock-file-fetcher.js +2 -0
- package/dist/provider/repo-url-builder.d.ts +35 -0
- package/dist/provider/repo-url-builder.js +2 -0
- package/dist/provider/types.d.ts +9 -0
- package/dist/provider/types.js +2 -0
- package/dist/provider/webhook-normalizer.d.ts +163 -0
- package/dist/provider/webhook-normalizer.js +2 -0
- package/dist/registration/registerable-trigger-type.d.ts +52 -0
- package/dist/registration/registerable-trigger-type.js +56 -0
- package/dist/scaler/resource-types.d.ts +90 -0
- package/dist/scaler/resource-types.js +99 -0
- package/dist/scaler/scaler-backend-type.d.ts +16 -0
- package/dist/scaler/scaler-backend-type.js +20 -0
- package/dist/secrets/index.d.ts +7 -0
- package/dist/secrets/index.js +2 -0
- package/dist/secrets/types.d.ts +138 -0
- package/dist/secrets/types.js +2 -0
- package/dist/state-machine/index.d.ts +2 -0
- package/dist/state-machine/index.js +3 -0
- package/dist/state-machine/machine.d.ts +34 -0
- package/dist/state-machine/machine.js +103 -0
- package/dist/state-machine/types.d.ts +34 -0
- package/dist/state-machine/types.js +15 -0
- package/dist/trigger/decision-trace.d.ts +41 -0
- package/dist/trigger/decision-trace.js +30 -0
- package/dist/trigger/jsonpath-matcher.d.ts +27 -0
- package/dist/trigger/jsonpath-matcher.js +92 -0
- package/dist/trigger/matcher.d.ts +29 -0
- package/dist/trigger/matcher.js +704 -0
- package/dist/trigger/trigger-event-type.d.ts +14 -0
- package/dist/trigger/trigger-event-type.js +66 -0
- package/dist/trigger/types.d.ts +524 -0
- package/dist/trigger/types.js +48 -0
- package/dist/webhook/signature.d.ts +15 -0
- package/dist/webhook/signature.js +32 -0
- package/dist/ws/close-codes.d.ts +28 -0
- package/dist/ws/close-codes.js +33 -0
- package/dist/ws/rate-limiter.d.ts +86 -0
- package/dist/ws/rate-limiter.js +136 -0
- package/dist/ws/ws-like.d.ts +12 -0
- package/dist/ws/ws-like.js +2 -0
- package/package.json +54 -6
- package/sbom.spdx.json +202 -0
- package/index.js +0 -3
|
@@ -0,0 +1,1888 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Trust policy update pushed from Platform 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<{
|
|
8
|
+
hold: "hold";
|
|
9
|
+
reject: "reject";
|
|
10
|
+
allow: "allow";
|
|
11
|
+
}>;
|
|
12
|
+
unknownContributorPolicy: z.ZodEnum<{
|
|
13
|
+
hold: "hold";
|
|
14
|
+
reject: "reject";
|
|
15
|
+
}>;
|
|
16
|
+
workflowChangePolicy: z.ZodEnum<{
|
|
17
|
+
hold: "hold";
|
|
18
|
+
reject: "reject";
|
|
19
|
+
allow: "allow";
|
|
20
|
+
}>;
|
|
21
|
+
approvalExpiryHours: z.ZodNumber;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
identityLinks: z.ZodArray<z.ZodObject<{
|
|
24
|
+
userId: z.ZodString;
|
|
25
|
+
provider: z.ZodString;
|
|
26
|
+
providerUsername: z.ZodString;
|
|
27
|
+
providerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
memberCiTrustLevels: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
30
|
+
none: "none";
|
|
31
|
+
read: "read";
|
|
32
|
+
write: "write";
|
|
33
|
+
admin: "admin";
|
|
34
|
+
}>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type TrustPolicyUpdate = z.infer<typeof trustPolicyUpdateSchema>;
|
|
37
|
+
/**
|
|
38
|
+
* Internal shape of a fully-reassembled, HMAC-verified webhook relay handed
|
|
39
|
+
* to the orchestrator's `onWebhookRelay` callback.
|
|
40
|
+
*
|
|
41
|
+
* NOT a wire-parseable schema: this shape is intentionally absent from the
|
|
42
|
+
* `platformToOrchestratorMessageSchema` discriminated union so that a rogue
|
|
43
|
+
* or compromised Platform process (A10) cannot fabricate one and bypass the
|
|
44
|
+
* on-orchestrator HMAC verification gate. The only legitimate construction
|
|
45
|
+
* site is `completeChunkedRelay` in `packages/orchestrator/src/ws/platform-client.ts`,
|
|
46
|
+
* which synthesizes this shape AFTER `onVerifyInbound` returns `'accepted'`.
|
|
47
|
+
*
|
|
48
|
+
* Migration `packages/platform/src/db/migrations/012_drop_webhook_secret_columns.ts`
|
|
49
|
+
* makes the orch-side `verifyInboundWebhook` (called from `onVerifyInbound` on
|
|
50
|
+
* the chunked relay path `webhook.relay.start` / `webhook.relay.chunk`) the
|
|
51
|
+
* sole trust boundary against a malicious Platform; keeping this schema OUT
|
|
52
|
+
* of the wire union enforces that invariant statically.
|
|
53
|
+
*/
|
|
54
|
+
export declare const webhookRelaySchema: z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<"webhook.relay">;
|
|
56
|
+
messageId: z.ZodString;
|
|
57
|
+
routingKey: z.ZodString;
|
|
58
|
+
deliveryId: z.ZodString;
|
|
59
|
+
event: z.ZodString;
|
|
60
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
payload: z.ZodUnknown;
|
|
62
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
/**
|
|
65
|
+
* HMAC verification + processing result returned by orchestrator in webhook.ack.
|
|
66
|
+
*
|
|
67
|
+
* Used in the chunked relay protocol where the orchestrator (not Platform)
|
|
68
|
+
* verifies the inbound HMAC signature against its locally-stored secret.
|
|
69
|
+
*
|
|
70
|
+
* - `accepted`: signature verified (or method is `none`/IP allowlist OK), webhook
|
|
71
|
+
* handed to the existing webhook processing pipeline.
|
|
72
|
+
* - `rejected_signature`: signature did not match any rotation secret. Maps to HTTP 401.
|
|
73
|
+
* - `rejected_unknown_source`: the routing key is not registered on this orchestrator
|
|
74
|
+
* (or the provider is not yet implemented). Maps to HTTP 404 + Platform negative cache.
|
|
75
|
+
* - `rejected_misconfigured`: the orchestrator has the source but its verification config
|
|
76
|
+
* is malformed (e.g. invalid JSON in generic_webhook_sources.verification_config) or
|
|
77
|
+
* the chunked stream itself was malformed (out-of-order, oversize, base64 decode fail,
|
|
78
|
+
* missing chunks at finalization, TTL expiry). Maps to HTTP 500.
|
|
79
|
+
*/
|
|
80
|
+
export declare const WebhookRelayResult: z.ZodEnum<{
|
|
81
|
+
accepted: "accepted";
|
|
82
|
+
rejected_signature: "rejected_signature";
|
|
83
|
+
rejected_unknown_source: "rejected_unknown_source";
|
|
84
|
+
rejected_misconfigured: "rejected_misconfigured";
|
|
85
|
+
}>;
|
|
86
|
+
export type WebhookRelayResult = z.infer<typeof WebhookRelayResult>;
|
|
87
|
+
/**
|
|
88
|
+
* Maximum total body size accepted by the chunked webhook relay protocol.
|
|
89
|
+
* 25 MiB matches GitHub's own webhook payload cap. Senders that need higher must
|
|
90
|
+
* connect their orchestrator directly (bypassing Platform).
|
|
91
|
+
*/
|
|
92
|
+
export declare const WEBHOOK_RELAY_MAX_BODY_BYTES: number;
|
|
93
|
+
/**
|
|
94
|
+
* Recommended raw chunk size for the chunked relay protocol. 64 KiB raw becomes
|
|
95
|
+
* ~85 KiB base64 in JSON; permessage-deflate compresses it well. Sender (Platform)
|
|
96
|
+
* picks the actual size; receiver (orchestrator) just enforces totalSize and chunkCount.
|
|
97
|
+
*/
|
|
98
|
+
export declare const WEBHOOK_RELAY_CHUNK_SIZE: number;
|
|
99
|
+
/**
|
|
100
|
+
* Start frame of the chunked webhook relay protocol (Platform -> orchestrator).
|
|
101
|
+
* Carries metadata + signature inputs only; body bytes follow in subsequent
|
|
102
|
+
* webhook.relay.chunk frames correlated by messageId.
|
|
103
|
+
*
|
|
104
|
+
* The orchestrator allocates a per-messageId reassembly buffer on receipt.
|
|
105
|
+
* No webhook.ack is sent until the final chunk completes the stream.
|
|
106
|
+
*/
|
|
107
|
+
export declare const webhookRelayStartSchema: z.ZodObject<{
|
|
108
|
+
type: z.ZodLiteral<"webhook.relay.start">;
|
|
109
|
+
messageId: z.ZodString;
|
|
110
|
+
routingKey: z.ZodString;
|
|
111
|
+
deliveryId: z.ZodString;
|
|
112
|
+
event: z.ZodString;
|
|
113
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
signatureHeaderName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
+
signatureHeader: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
clientIp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
118
|
+
totalSize: z.ZodNumber;
|
|
119
|
+
chunkCount: z.ZodNumber;
|
|
120
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
export type WebhookRelayStart = z.infer<typeof webhookRelayStartSchema>;
|
|
123
|
+
/**
|
|
124
|
+
* One chunk of the body. Sequence is 0-indexed and MUST arrive strictly in order;
|
|
125
|
+
* the final=true chunk completes the stream and triggers verify+process on the
|
|
126
|
+
* orchestrator. Decoded chunk bytes (sum across the stream) MUST equal totalSize
|
|
127
|
+
* declared in webhook.relay.start.
|
|
128
|
+
*/
|
|
129
|
+
export declare const webhookRelayChunkSchema: z.ZodObject<{
|
|
130
|
+
type: z.ZodLiteral<"webhook.relay.chunk">;
|
|
131
|
+
messageId: z.ZodString;
|
|
132
|
+
sequence: z.ZodNumber;
|
|
133
|
+
data: z.ZodString;
|
|
134
|
+
final: z.ZodBoolean;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type WebhookRelayChunk = z.infer<typeof webhookRelayChunkSchema>;
|
|
137
|
+
/** Peer discovery notification sent by Platform when another orchestrator shares routing keys. */
|
|
138
|
+
export declare const peerDiscoverSchema: z.ZodObject<{
|
|
139
|
+
type: z.ZodLiteral<"peer.discover">;
|
|
140
|
+
peer: z.ZodObject<{
|
|
141
|
+
connectionId: z.ZodString;
|
|
142
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
143
|
+
address: z.ZodNullable<z.ZodString>;
|
|
144
|
+
routingKeys: z.ZodArray<z.ZodString>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
/** Full peer list update pushed by Platform to all pool members when membership changes. Replaces peer.discover. */
|
|
148
|
+
export declare const peerUpdateSchema: z.ZodObject<{
|
|
149
|
+
type: z.ZodLiteral<"peer.update">;
|
|
150
|
+
peers: z.ZodArray<z.ZodObject<{
|
|
151
|
+
connectionId: z.ZodString;
|
|
152
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
153
|
+
address: z.ZodNullable<z.ZodString>;
|
|
154
|
+
routingKeys: z.ZodArray<z.ZodString>;
|
|
155
|
+
orchRole: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
coordinator: "coordinator";
|
|
157
|
+
worker: "worker";
|
|
158
|
+
}>>;
|
|
159
|
+
}, z.core.$strip>>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
/**
|
|
162
|
+
* Stale check run cleanup request sent by Platform when a replacement orchestrator
|
|
163
|
+
* reconnects after the previous one died. Contains metadata for runs that were
|
|
164
|
+
* marked timed_out_stale by Platform, so the orchestrator can update stuck GitHub
|
|
165
|
+
* check runs that the dead orchestrator left as "in_progress".
|
|
166
|
+
*/
|
|
167
|
+
export declare const staleCheckrunCleanupSchema: z.ZodObject<{
|
|
168
|
+
type: z.ZodLiteral<"stale.checkrun.cleanup">;
|
|
169
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
170
|
+
runId: z.ZodString;
|
|
171
|
+
provider: z.ZodString;
|
|
172
|
+
routingKey: z.ZodString;
|
|
173
|
+
repoIdentifier: z.ZodString;
|
|
174
|
+
sha: z.ZodString;
|
|
175
|
+
workflowName: z.ZodString;
|
|
176
|
+
jobNames: z.ZodArray<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export type StaleCheckrunCleanup = z.infer<typeof staleCheckrunCleanupSchema>;
|
|
180
|
+
/** Periodic OTel metrics push from orchestrator to Platform for centralized observability. */
|
|
181
|
+
export declare const orchMetricsSchema: z.ZodObject<{
|
|
182
|
+
type: z.ZodLiteral<"orch.metrics">;
|
|
183
|
+
messageId: z.ZodString;
|
|
184
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
185
|
+
name: z.ZodString;
|
|
186
|
+
type: z.ZodEnum<{
|
|
187
|
+
counter: "counter";
|
|
188
|
+
histogram: "histogram";
|
|
189
|
+
gauge: "gauge";
|
|
190
|
+
upDownCounter: "upDownCounter";
|
|
191
|
+
}>;
|
|
192
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
194
|
+
buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
195
|
+
le: z.ZodNumber;
|
|
196
|
+
count: z.ZodNumber;
|
|
197
|
+
}, z.core.$strip>>>;
|
|
198
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
sum: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
timestamp: z.ZodNumber;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
export type OrchMetrics = z.infer<typeof orchMetricsSchema>;
|
|
204
|
+
/**
|
|
205
|
+
* Acknowledgment that a webhook was received and processing started.
|
|
206
|
+
*
|
|
207
|
+
* Under the chunked relay protocol the orchestrator also reports the HMAC
|
|
208
|
+
* verification outcome here via `result`, and may include a non-secret-bearing
|
|
209
|
+
* diagnostic in `reason` when result is a rejection. Both fields are optional
|
|
210
|
+
* for backward compatibility during the rollout: pre-cutover senders omit them.
|
|
211
|
+
*/
|
|
212
|
+
export declare const webhookAckSchema: z.ZodObject<{
|
|
213
|
+
type: z.ZodLiteral<"webhook.ack">;
|
|
214
|
+
messageId: z.ZodString;
|
|
215
|
+
deliveryId: z.ZodString;
|
|
216
|
+
result: z.ZodOptional<z.ZodEnum<{
|
|
217
|
+
accepted: "accepted";
|
|
218
|
+
rejected_signature: "rejected_signature";
|
|
219
|
+
rejected_unknown_source: "rejected_unknown_source";
|
|
220
|
+
rejected_misconfigured: "rejected_misconfigured";
|
|
221
|
+
}>>;
|
|
222
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
/** Execution lifecycle event reported back to Platform. */
|
|
225
|
+
export declare const executionEventSchema: z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"execution.event">;
|
|
227
|
+
messageId: z.ZodString;
|
|
228
|
+
runId: z.ZodString;
|
|
229
|
+
event: z.ZodEnum<{
|
|
230
|
+
started: "started";
|
|
231
|
+
job_dispatched: "job_dispatched";
|
|
232
|
+
job_completed: "job_completed";
|
|
233
|
+
finished: "finished";
|
|
234
|
+
}>;
|
|
235
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
236
|
+
timestamp: z.ZodNumber;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
/** Streaming log chunk from job execution. */
|
|
239
|
+
export declare const logChunkSchema: z.ZodObject<{
|
|
240
|
+
type: z.ZodLiteral<"log.chunk">;
|
|
241
|
+
messageId: z.ZodString;
|
|
242
|
+
runId: z.ZodString;
|
|
243
|
+
jobId: z.ZodString;
|
|
244
|
+
stepIndex: z.ZodNumber;
|
|
245
|
+
lines: z.ZodArray<z.ZodString>;
|
|
246
|
+
timestamp: z.ZodNumber;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
/** Cache lookup statistics forwarded from orchestrator to Platform for centralized metrics. */
|
|
249
|
+
export declare const cacheStatsSchema: z.ZodObject<{
|
|
250
|
+
type: z.ZodLiteral<"cache.stats">;
|
|
251
|
+
cacheType: z.ZodEnum<{
|
|
252
|
+
source: "source";
|
|
253
|
+
dep: "dep";
|
|
254
|
+
}>;
|
|
255
|
+
hit: z.ZodBoolean;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
export type CacheStats = z.infer<typeof cacheStatsSchema>;
|
|
258
|
+
/** All messages that flow from Platform to Orchestrator.
|
|
259
|
+
*
|
|
260
|
+
* The single-frame `webhookRelaySchema` is intentionally NOT a member of this
|
|
261
|
+
* union: that shape carries an attacker-controlled `payload` and pre-existed
|
|
262
|
+
* the chunked relay's on-orch HMAC verification, so accepting it on the wire
|
|
263
|
+
* would let a compromised Platform (A10) fabricate webhook deliveries that
|
|
264
|
+
* bypass the only trust boundary against a malicious Platform (see the
|
|
265
|
+
* docblock on `webhookRelaySchema` above and migration
|
|
266
|
+
* `packages/platform/src/db/migrations/012_drop_webhook_secret_columns.ts`).
|
|
267
|
+
* The chunked path `webhook.relay.start` + `webhook.relay.chunk` is the sole
|
|
268
|
+
* legitimate route from Platform to `onWebhookRelay`. */
|
|
269
|
+
export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
|
+
type: z.ZodLiteral<"webhook.relay.start">;
|
|
271
|
+
messageId: z.ZodString;
|
|
272
|
+
routingKey: z.ZodString;
|
|
273
|
+
deliveryId: z.ZodString;
|
|
274
|
+
event: z.ZodString;
|
|
275
|
+
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
signatureHeaderName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
signatureHeader: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
clientIp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
280
|
+
totalSize: z.ZodNumber;
|
|
281
|
+
chunkCount: z.ZodNumber;
|
|
282
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
283
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
284
|
+
type: z.ZodLiteral<"webhook.relay.chunk">;
|
|
285
|
+
messageId: z.ZodString;
|
|
286
|
+
sequence: z.ZodNumber;
|
|
287
|
+
data: z.ZodString;
|
|
288
|
+
final: z.ZodBoolean;
|
|
289
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
290
|
+
type: z.ZodLiteral<"trust_policy.update">;
|
|
291
|
+
orgId: z.ZodString;
|
|
292
|
+
policy: z.ZodObject<{
|
|
293
|
+
forkPolicy: z.ZodEnum<{
|
|
294
|
+
hold: "hold";
|
|
295
|
+
reject: "reject";
|
|
296
|
+
allow: "allow";
|
|
297
|
+
}>;
|
|
298
|
+
unknownContributorPolicy: z.ZodEnum<{
|
|
299
|
+
hold: "hold";
|
|
300
|
+
reject: "reject";
|
|
301
|
+
}>;
|
|
302
|
+
workflowChangePolicy: z.ZodEnum<{
|
|
303
|
+
hold: "hold";
|
|
304
|
+
reject: "reject";
|
|
305
|
+
allow: "allow";
|
|
306
|
+
}>;
|
|
307
|
+
approvalExpiryHours: z.ZodNumber;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
identityLinks: z.ZodArray<z.ZodObject<{
|
|
310
|
+
userId: z.ZodString;
|
|
311
|
+
provider: z.ZodString;
|
|
312
|
+
providerUsername: z.ZodString;
|
|
313
|
+
providerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
memberCiTrustLevels: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
316
|
+
none: "none";
|
|
317
|
+
read: "read";
|
|
318
|
+
write: "write";
|
|
319
|
+
admin: "admin";
|
|
320
|
+
}>>;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
type: z.ZodLiteral<"source.register.ack">;
|
|
323
|
+
messageId: z.ZodString;
|
|
324
|
+
accepted: z.ZodArray<z.ZodString>;
|
|
325
|
+
rejected: z.ZodArray<z.ZodObject<{
|
|
326
|
+
routingKey: z.ZodString;
|
|
327
|
+
reason: z.ZodString;
|
|
328
|
+
}, z.core.$strip>>;
|
|
329
|
+
peers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
330
|
+
connectionId: z.ZodString;
|
|
331
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
332
|
+
address: z.ZodNullable<z.ZodString>;
|
|
333
|
+
routingKeys: z.ZodArray<z.ZodString>;
|
|
334
|
+
}, z.core.$strip>>>;
|
|
335
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
336
|
+
type: z.ZodLiteral<"source.deregister.ack">;
|
|
337
|
+
messageId: z.ZodString;
|
|
338
|
+
removed: z.ZodArray<z.ZodString>;
|
|
339
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
340
|
+
type: z.ZodLiteral<"auth.success">;
|
|
341
|
+
connectionId: z.ZodString;
|
|
342
|
+
orgPublicAlias: z.ZodOptional<z.ZodString>;
|
|
343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
344
|
+
type: z.ZodLiteral<"auth.failure">;
|
|
345
|
+
reason: z.ZodString;
|
|
346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
347
|
+
type: z.ZodLiteral<"peer.discover">;
|
|
348
|
+
peer: z.ZodObject<{
|
|
349
|
+
connectionId: z.ZodString;
|
|
350
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
351
|
+
address: z.ZodNullable<z.ZodString>;
|
|
352
|
+
routingKeys: z.ZodArray<z.ZodString>;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
type: z.ZodLiteral<"peer.update">;
|
|
356
|
+
peers: z.ZodArray<z.ZodObject<{
|
|
357
|
+
connectionId: z.ZodString;
|
|
358
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
359
|
+
address: z.ZodNullable<z.ZodString>;
|
|
360
|
+
routingKeys: z.ZodArray<z.ZodString>;
|
|
361
|
+
orchRole: z.ZodOptional<z.ZodEnum<{
|
|
362
|
+
coordinator: "coordinator";
|
|
363
|
+
worker: "worker";
|
|
364
|
+
}>>;
|
|
365
|
+
}, z.core.$strip>>;
|
|
366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
367
|
+
type: z.ZodLiteral<"stale.checkrun.cleanup">;
|
|
368
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
369
|
+
runId: z.ZodString;
|
|
370
|
+
provider: z.ZodString;
|
|
371
|
+
routingKey: z.ZodString;
|
|
372
|
+
repoIdentifier: z.ZodString;
|
|
373
|
+
sha: z.ZodString;
|
|
374
|
+
workflowName: z.ZodString;
|
|
375
|
+
jobNames: z.ZodArray<z.ZodString>;
|
|
376
|
+
}, z.core.$strip>>;
|
|
377
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
378
|
+
type: z.ZodLiteral<"dashboard.run.detail">;
|
|
379
|
+
requestId: z.ZodString;
|
|
380
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
381
|
+
type: z.ZodLiteral<"user">;
|
|
382
|
+
sub: z.ZodString;
|
|
383
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
384
|
+
type: z.ZodLiteral<"api_key">;
|
|
385
|
+
keyId: z.ZodString;
|
|
386
|
+
ownerSub: z.ZodString;
|
|
387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
388
|
+
type: z.ZodLiteral<"service_account">;
|
|
389
|
+
id: z.ZodString;
|
|
390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
392
|
+
sub: z.ZodString;
|
|
393
|
+
reason: z.ZodString;
|
|
394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
395
|
+
type: z.ZodLiteral<"system">;
|
|
396
|
+
component: z.ZodString;
|
|
397
|
+
}, z.core.$strip>], "type">;
|
|
398
|
+
runId: z.ZodString;
|
|
399
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
400
|
+
type: z.ZodLiteral<"dashboard.step.logs">;
|
|
401
|
+
requestId: z.ZodString;
|
|
402
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
403
|
+
type: z.ZodLiteral<"user">;
|
|
404
|
+
sub: z.ZodString;
|
|
405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
406
|
+
type: z.ZodLiteral<"api_key">;
|
|
407
|
+
keyId: z.ZodString;
|
|
408
|
+
ownerSub: z.ZodString;
|
|
409
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
410
|
+
type: z.ZodLiteral<"service_account">;
|
|
411
|
+
id: z.ZodString;
|
|
412
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
413
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
414
|
+
sub: z.ZodString;
|
|
415
|
+
reason: z.ZodString;
|
|
416
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
417
|
+
type: z.ZodLiteral<"system">;
|
|
418
|
+
component: z.ZodString;
|
|
419
|
+
}, z.core.$strip>], "type">;
|
|
420
|
+
runId: z.ZodString;
|
|
421
|
+
jobId: z.ZodString;
|
|
422
|
+
stepIndex: z.ZodNumber;
|
|
423
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
424
|
+
type: z.ZodLiteral<"run.rerun.request">;
|
|
425
|
+
requestId: z.ZodString;
|
|
426
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
427
|
+
type: z.ZodLiteral<"user">;
|
|
428
|
+
sub: z.ZodString;
|
|
429
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
430
|
+
type: z.ZodLiteral<"api_key">;
|
|
431
|
+
keyId: z.ZodString;
|
|
432
|
+
ownerSub: z.ZodString;
|
|
433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
+
type: z.ZodLiteral<"service_account">;
|
|
435
|
+
id: z.ZodString;
|
|
436
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
437
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
438
|
+
sub: z.ZodString;
|
|
439
|
+
reason: z.ZodString;
|
|
440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
441
|
+
type: z.ZodLiteral<"system">;
|
|
442
|
+
component: z.ZodString;
|
|
443
|
+
}, z.core.$strip>], "type">;
|
|
444
|
+
runId: z.ZodString;
|
|
445
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
446
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
447
|
+
type: z.ZodLiteral<"run.manual_schedule.request">;
|
|
448
|
+
requestId: z.ZodString;
|
|
449
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
450
|
+
type: z.ZodLiteral<"user">;
|
|
451
|
+
sub: z.ZodString;
|
|
452
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
453
|
+
type: z.ZodLiteral<"api_key">;
|
|
454
|
+
keyId: z.ZodString;
|
|
455
|
+
ownerSub: z.ZodString;
|
|
456
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
457
|
+
type: z.ZodLiteral<"service_account">;
|
|
458
|
+
id: z.ZodString;
|
|
459
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
460
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
461
|
+
sub: z.ZodString;
|
|
462
|
+
reason: z.ZodString;
|
|
463
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
464
|
+
type: z.ZodLiteral<"system">;
|
|
465
|
+
component: z.ZodString;
|
|
466
|
+
}, z.core.$strip>], "type">;
|
|
467
|
+
registrationId: z.ZodString;
|
|
468
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
469
|
+
type: z.ZodLiteral<"run.cancel.request">;
|
|
470
|
+
requestId: z.ZodString;
|
|
471
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
472
|
+
type: z.ZodLiteral<"user">;
|
|
473
|
+
sub: z.ZodString;
|
|
474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
475
|
+
type: z.ZodLiteral<"api_key">;
|
|
476
|
+
keyId: z.ZodString;
|
|
477
|
+
ownerSub: z.ZodString;
|
|
478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
479
|
+
type: z.ZodLiteral<"service_account">;
|
|
480
|
+
id: z.ZodString;
|
|
481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
482
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
483
|
+
sub: z.ZodString;
|
|
484
|
+
reason: z.ZodString;
|
|
485
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
486
|
+
type: z.ZodLiteral<"system">;
|
|
487
|
+
component: z.ZodString;
|
|
488
|
+
}, z.core.$strip>], "type">;
|
|
489
|
+
runId: z.ZodString;
|
|
490
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
491
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
492
|
+
type: z.ZodLiteral<"dashboard.payload">;
|
|
493
|
+
requestId: z.ZodString;
|
|
494
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
495
|
+
type: z.ZodLiteral<"user">;
|
|
496
|
+
sub: z.ZodString;
|
|
497
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
498
|
+
type: z.ZodLiteral<"api_key">;
|
|
499
|
+
keyId: z.ZodString;
|
|
500
|
+
ownerSub: z.ZodString;
|
|
501
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
502
|
+
type: z.ZodLiteral<"service_account">;
|
|
503
|
+
id: z.ZodString;
|
|
504
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
505
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
506
|
+
sub: z.ZodString;
|
|
507
|
+
reason: z.ZodString;
|
|
508
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
509
|
+
type: z.ZodLiteral<"system">;
|
|
510
|
+
component: z.ZodString;
|
|
511
|
+
}, z.core.$strip>], "type">;
|
|
512
|
+
runId: z.ZodString;
|
|
513
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
514
|
+
type: z.ZodLiteral<"dashboard.orch.logs">;
|
|
515
|
+
requestId: z.ZodString;
|
|
516
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
517
|
+
type: z.ZodLiteral<"user">;
|
|
518
|
+
sub: z.ZodString;
|
|
519
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
520
|
+
type: z.ZodLiteral<"api_key">;
|
|
521
|
+
keyId: z.ZodString;
|
|
522
|
+
ownerSub: z.ZodString;
|
|
523
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
524
|
+
type: z.ZodLiteral<"service_account">;
|
|
525
|
+
id: z.ZodString;
|
|
526
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
527
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
528
|
+
sub: z.ZodString;
|
|
529
|
+
reason: z.ZodString;
|
|
530
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
531
|
+
type: z.ZodLiteral<"system">;
|
|
532
|
+
component: z.ZodString;
|
|
533
|
+
}, z.core.$strip>], "type">;
|
|
534
|
+
runId: z.ZodString;
|
|
535
|
+
jobId: z.ZodString;
|
|
536
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
537
|
+
type: z.ZodLiteral<"dashboard.environments.list">;
|
|
538
|
+
requestId: z.ZodString;
|
|
539
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
540
|
+
type: z.ZodLiteral<"user">;
|
|
541
|
+
sub: z.ZodString;
|
|
542
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
543
|
+
type: z.ZodLiteral<"api_key">;
|
|
544
|
+
keyId: z.ZodString;
|
|
545
|
+
ownerSub: z.ZodString;
|
|
546
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
547
|
+
type: z.ZodLiteral<"service_account">;
|
|
548
|
+
id: z.ZodString;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
551
|
+
sub: z.ZodString;
|
|
552
|
+
reason: z.ZodString;
|
|
553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
554
|
+
type: z.ZodLiteral<"system">;
|
|
555
|
+
component: z.ZodString;
|
|
556
|
+
}, z.core.$strip>], "type">;
|
|
557
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
558
|
+
type: z.ZodLiteral<"dashboard.environments.get">;
|
|
559
|
+
requestId: z.ZodString;
|
|
560
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
561
|
+
type: z.ZodLiteral<"user">;
|
|
562
|
+
sub: z.ZodString;
|
|
563
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
564
|
+
type: z.ZodLiteral<"api_key">;
|
|
565
|
+
keyId: z.ZodString;
|
|
566
|
+
ownerSub: z.ZodString;
|
|
567
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
568
|
+
type: z.ZodLiteral<"service_account">;
|
|
569
|
+
id: z.ZodString;
|
|
570
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
571
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
572
|
+
sub: z.ZodString;
|
|
573
|
+
reason: z.ZodString;
|
|
574
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
575
|
+
type: z.ZodLiteral<"system">;
|
|
576
|
+
component: z.ZodString;
|
|
577
|
+
}, z.core.$strip>], "type">;
|
|
578
|
+
environmentId: z.ZodString;
|
|
579
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
580
|
+
type: z.ZodLiteral<"dashboard.environments.create">;
|
|
581
|
+
requestId: z.ZodString;
|
|
582
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
583
|
+
type: z.ZodLiteral<"user">;
|
|
584
|
+
sub: z.ZodString;
|
|
585
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
586
|
+
type: z.ZodLiteral<"api_key">;
|
|
587
|
+
keyId: z.ZodString;
|
|
588
|
+
ownerSub: z.ZodString;
|
|
589
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
590
|
+
type: z.ZodLiteral<"service_account">;
|
|
591
|
+
id: z.ZodString;
|
|
592
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
593
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
594
|
+
sub: z.ZodString;
|
|
595
|
+
reason: z.ZodString;
|
|
596
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
597
|
+
type: z.ZodLiteral<"system">;
|
|
598
|
+
component: z.ZodString;
|
|
599
|
+
}, z.core.$strip>], "type">;
|
|
600
|
+
name: z.ZodString;
|
|
601
|
+
envType: z.ZodEnum<{
|
|
602
|
+
fixed: "fixed";
|
|
603
|
+
glob: "glob";
|
|
604
|
+
}>;
|
|
605
|
+
globPattern: z.ZodOptional<z.ZodString>;
|
|
606
|
+
branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
607
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
608
|
+
concurrencyStrategy: z.ZodOptional<z.ZodEnum<{
|
|
609
|
+
queue: "queue";
|
|
610
|
+
"cancel-pending": "cancel-pending";
|
|
611
|
+
}>>;
|
|
612
|
+
requiredReviewers: z.ZodOptional<z.ZodNumber>;
|
|
613
|
+
waitTimerSeconds: z.ZodOptional<z.ZodNumber>;
|
|
614
|
+
holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
616
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
617
|
+
type: z.ZodLiteral<"dashboard.environments.update">;
|
|
618
|
+
requestId: z.ZodString;
|
|
619
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
620
|
+
type: z.ZodLiteral<"user">;
|
|
621
|
+
sub: z.ZodString;
|
|
622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
623
|
+
type: z.ZodLiteral<"api_key">;
|
|
624
|
+
keyId: z.ZodString;
|
|
625
|
+
ownerSub: z.ZodString;
|
|
626
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
627
|
+
type: z.ZodLiteral<"service_account">;
|
|
628
|
+
id: z.ZodString;
|
|
629
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
630
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
631
|
+
sub: z.ZodString;
|
|
632
|
+
reason: z.ZodString;
|
|
633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
634
|
+
type: z.ZodLiteral<"system">;
|
|
635
|
+
component: z.ZodString;
|
|
636
|
+
}, z.core.$strip>], "type">;
|
|
637
|
+
environmentId: z.ZodString;
|
|
638
|
+
updates: z.ZodObject<{
|
|
639
|
+
name: z.ZodOptional<z.ZodString>;
|
|
640
|
+
envType: z.ZodOptional<z.ZodEnum<{
|
|
641
|
+
fixed: "fixed";
|
|
642
|
+
glob: "glob";
|
|
643
|
+
}>>;
|
|
644
|
+
globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
645
|
+
branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
646
|
+
concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
647
|
+
concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
648
|
+
queue: "queue";
|
|
649
|
+
"cancel-pending": "cancel-pending";
|
|
650
|
+
}>>>;
|
|
651
|
+
requiredReviewers: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
652
|
+
waitTimerSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
653
|
+
holdExpirySeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
654
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
655
|
+
}, z.core.$strip>;
|
|
656
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
657
|
+
type: z.ZodLiteral<"dashboard.environments.delete">;
|
|
658
|
+
requestId: z.ZodString;
|
|
659
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
660
|
+
type: z.ZodLiteral<"user">;
|
|
661
|
+
sub: z.ZodString;
|
|
662
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
663
|
+
type: z.ZodLiteral<"api_key">;
|
|
664
|
+
keyId: z.ZodString;
|
|
665
|
+
ownerSub: z.ZodString;
|
|
666
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
667
|
+
type: z.ZodLiteral<"service_account">;
|
|
668
|
+
id: z.ZodString;
|
|
669
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
670
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
671
|
+
sub: z.ZodString;
|
|
672
|
+
reason: z.ZodString;
|
|
673
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
674
|
+
type: z.ZodLiteral<"system">;
|
|
675
|
+
component: z.ZodString;
|
|
676
|
+
}, z.core.$strip>], "type">;
|
|
677
|
+
environmentId: z.ZodString;
|
|
678
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
679
|
+
type: z.ZodLiteral<"dashboard.environments.variables.list">;
|
|
680
|
+
requestId: z.ZodString;
|
|
681
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
682
|
+
type: z.ZodLiteral<"user">;
|
|
683
|
+
sub: z.ZodString;
|
|
684
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
685
|
+
type: z.ZodLiteral<"api_key">;
|
|
686
|
+
keyId: z.ZodString;
|
|
687
|
+
ownerSub: z.ZodString;
|
|
688
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
689
|
+
type: z.ZodLiteral<"service_account">;
|
|
690
|
+
id: z.ZodString;
|
|
691
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
692
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
693
|
+
sub: z.ZodString;
|
|
694
|
+
reason: z.ZodString;
|
|
695
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
696
|
+
type: z.ZodLiteral<"system">;
|
|
697
|
+
component: z.ZodString;
|
|
698
|
+
}, z.core.$strip>], "type">;
|
|
699
|
+
environmentId: z.ZodString;
|
|
700
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
701
|
+
type: z.ZodLiteral<"dashboard.environments.variables.set">;
|
|
702
|
+
requestId: z.ZodString;
|
|
703
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
704
|
+
type: z.ZodLiteral<"user">;
|
|
705
|
+
sub: z.ZodString;
|
|
706
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
707
|
+
type: z.ZodLiteral<"api_key">;
|
|
708
|
+
keyId: z.ZodString;
|
|
709
|
+
ownerSub: z.ZodString;
|
|
710
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
711
|
+
type: z.ZodLiteral<"service_account">;
|
|
712
|
+
id: z.ZodString;
|
|
713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
714
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
715
|
+
sub: z.ZodString;
|
|
716
|
+
reason: z.ZodString;
|
|
717
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
718
|
+
type: z.ZodLiteral<"system">;
|
|
719
|
+
component: z.ZodString;
|
|
720
|
+
}, z.core.$strip>], "type">;
|
|
721
|
+
environmentId: z.ZodString;
|
|
722
|
+
key: z.ZodString;
|
|
723
|
+
value: z.ZodString;
|
|
724
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
725
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
726
|
+
type: z.ZodLiteral<"dashboard.environments.variables.delete">;
|
|
727
|
+
requestId: z.ZodString;
|
|
728
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
729
|
+
type: z.ZodLiteral<"user">;
|
|
730
|
+
sub: z.ZodString;
|
|
731
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
732
|
+
type: z.ZodLiteral<"api_key">;
|
|
733
|
+
keyId: z.ZodString;
|
|
734
|
+
ownerSub: z.ZodString;
|
|
735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
736
|
+
type: z.ZodLiteral<"service_account">;
|
|
737
|
+
id: z.ZodString;
|
|
738
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
739
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
740
|
+
sub: z.ZodString;
|
|
741
|
+
reason: z.ZodString;
|
|
742
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
743
|
+
type: z.ZodLiteral<"system">;
|
|
744
|
+
component: z.ZodString;
|
|
745
|
+
}, z.core.$strip>], "type">;
|
|
746
|
+
environmentId: z.ZodString;
|
|
747
|
+
key: z.ZodString;
|
|
748
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
749
|
+
type: z.ZodLiteral<"dashboard.environments.source-overrides.list">;
|
|
750
|
+
requestId: z.ZodString;
|
|
751
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
752
|
+
type: z.ZodLiteral<"user">;
|
|
753
|
+
sub: z.ZodString;
|
|
754
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
755
|
+
type: z.ZodLiteral<"api_key">;
|
|
756
|
+
keyId: z.ZodString;
|
|
757
|
+
ownerSub: z.ZodString;
|
|
758
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
759
|
+
type: z.ZodLiteral<"service_account">;
|
|
760
|
+
id: z.ZodString;
|
|
761
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
762
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
763
|
+
sub: z.ZodString;
|
|
764
|
+
reason: z.ZodString;
|
|
765
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
766
|
+
type: z.ZodLiteral<"system">;
|
|
767
|
+
component: z.ZodString;
|
|
768
|
+
}, z.core.$strip>], "type">;
|
|
769
|
+
environmentId: z.ZodString;
|
|
770
|
+
routingKey: z.ZodString;
|
|
771
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
772
|
+
type: z.ZodLiteral<"dashboard.environments.source-overrides.set">;
|
|
773
|
+
requestId: z.ZodString;
|
|
774
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
775
|
+
type: z.ZodLiteral<"user">;
|
|
776
|
+
sub: z.ZodString;
|
|
777
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
778
|
+
type: z.ZodLiteral<"api_key">;
|
|
779
|
+
keyId: z.ZodString;
|
|
780
|
+
ownerSub: z.ZodString;
|
|
781
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
782
|
+
type: z.ZodLiteral<"service_account">;
|
|
783
|
+
id: z.ZodString;
|
|
784
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
785
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
786
|
+
sub: z.ZodString;
|
|
787
|
+
reason: z.ZodString;
|
|
788
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
789
|
+
type: z.ZodLiteral<"system">;
|
|
790
|
+
component: z.ZodString;
|
|
791
|
+
}, z.core.$strip>], "type">;
|
|
792
|
+
environmentId: z.ZodString;
|
|
793
|
+
routingKey: z.ZodString;
|
|
794
|
+
key: z.ZodString;
|
|
795
|
+
value: z.ZodString;
|
|
796
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
797
|
+
type: z.ZodLiteral<"dashboard.environments.source-overrides.delete">;
|
|
798
|
+
requestId: z.ZodString;
|
|
799
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
800
|
+
type: z.ZodLiteral<"user">;
|
|
801
|
+
sub: z.ZodString;
|
|
802
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
803
|
+
type: z.ZodLiteral<"api_key">;
|
|
804
|
+
keyId: z.ZodString;
|
|
805
|
+
ownerSub: z.ZodString;
|
|
806
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
807
|
+
type: z.ZodLiteral<"service_account">;
|
|
808
|
+
id: z.ZodString;
|
|
809
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
810
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
811
|
+
sub: z.ZodString;
|
|
812
|
+
reason: z.ZodString;
|
|
813
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
814
|
+
type: z.ZodLiteral<"system">;
|
|
815
|
+
component: z.ZodString;
|
|
816
|
+
}, z.core.$strip>], "type">;
|
|
817
|
+
environmentId: z.ZodString;
|
|
818
|
+
routingKey: z.ZodString;
|
|
819
|
+
key: z.ZodString;
|
|
820
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
821
|
+
type: z.ZodLiteral<"dashboard.environments.bindings.list">;
|
|
822
|
+
requestId: z.ZodString;
|
|
823
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
824
|
+
type: z.ZodLiteral<"user">;
|
|
825
|
+
sub: z.ZodString;
|
|
826
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
827
|
+
type: z.ZodLiteral<"api_key">;
|
|
828
|
+
keyId: z.ZodString;
|
|
829
|
+
ownerSub: z.ZodString;
|
|
830
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
831
|
+
type: z.ZodLiteral<"service_account">;
|
|
832
|
+
id: z.ZodString;
|
|
833
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
834
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
835
|
+
sub: z.ZodString;
|
|
836
|
+
reason: z.ZodString;
|
|
837
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
838
|
+
type: z.ZodLiteral<"system">;
|
|
839
|
+
component: z.ZodString;
|
|
840
|
+
}, z.core.$strip>], "type">;
|
|
841
|
+
environmentId: z.ZodString;
|
|
842
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
843
|
+
type: z.ZodLiteral<"dashboard.environments.bindings.set">;
|
|
844
|
+
requestId: z.ZodString;
|
|
845
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
846
|
+
type: z.ZodLiteral<"user">;
|
|
847
|
+
sub: z.ZodString;
|
|
848
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
849
|
+
type: z.ZodLiteral<"api_key">;
|
|
850
|
+
keyId: z.ZodString;
|
|
851
|
+
ownerSub: z.ZodString;
|
|
852
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
853
|
+
type: z.ZodLiteral<"service_account">;
|
|
854
|
+
id: z.ZodString;
|
|
855
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
856
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
857
|
+
sub: z.ZodString;
|
|
858
|
+
reason: z.ZodString;
|
|
859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
860
|
+
type: z.ZodLiteral<"system">;
|
|
861
|
+
component: z.ZodString;
|
|
862
|
+
}, z.core.$strip>], "type">;
|
|
863
|
+
environmentId: z.ZodString;
|
|
864
|
+
scopePatterns: z.ZodArray<z.ZodString>;
|
|
865
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
866
|
+
type: z.ZodLiteral<"dashboard.environments.secrets.list">;
|
|
867
|
+
requestId: z.ZodString;
|
|
868
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
869
|
+
type: z.ZodLiteral<"user">;
|
|
870
|
+
sub: z.ZodString;
|
|
871
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
872
|
+
type: z.ZodLiteral<"api_key">;
|
|
873
|
+
keyId: z.ZodString;
|
|
874
|
+
ownerSub: z.ZodString;
|
|
875
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
876
|
+
type: z.ZodLiteral<"service_account">;
|
|
877
|
+
id: z.ZodString;
|
|
878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
879
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
880
|
+
sub: z.ZodString;
|
|
881
|
+
reason: z.ZodString;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
type: z.ZodLiteral<"system">;
|
|
884
|
+
component: z.ZodString;
|
|
885
|
+
}, z.core.$strip>], "type">;
|
|
886
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
887
|
+
type: z.ZodLiteral<"dashboard.environments.secrets.set">;
|
|
888
|
+
requestId: z.ZodString;
|
|
889
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
890
|
+
type: z.ZodLiteral<"user">;
|
|
891
|
+
sub: z.ZodString;
|
|
892
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
893
|
+
type: z.ZodLiteral<"api_key">;
|
|
894
|
+
keyId: z.ZodString;
|
|
895
|
+
ownerSub: z.ZodString;
|
|
896
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
897
|
+
type: z.ZodLiteral<"service_account">;
|
|
898
|
+
id: z.ZodString;
|
|
899
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
900
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
901
|
+
sub: z.ZodString;
|
|
902
|
+
reason: z.ZodString;
|
|
903
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
904
|
+
type: z.ZodLiteral<"system">;
|
|
905
|
+
component: z.ZodString;
|
|
906
|
+
}, z.core.$strip>], "type">;
|
|
907
|
+
scope: z.ZodString;
|
|
908
|
+
key: z.ZodString;
|
|
909
|
+
value: z.ZodString;
|
|
910
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
911
|
+
type: z.ZodLiteral<"dashboard.environments.secrets.delete">;
|
|
912
|
+
requestId: z.ZodString;
|
|
913
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
914
|
+
type: z.ZodLiteral<"user">;
|
|
915
|
+
sub: z.ZodString;
|
|
916
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
917
|
+
type: z.ZodLiteral<"api_key">;
|
|
918
|
+
keyId: z.ZodString;
|
|
919
|
+
ownerSub: z.ZodString;
|
|
920
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
921
|
+
type: z.ZodLiteral<"service_account">;
|
|
922
|
+
id: z.ZodString;
|
|
923
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
924
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
925
|
+
sub: z.ZodString;
|
|
926
|
+
reason: z.ZodString;
|
|
927
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
928
|
+
type: z.ZodLiteral<"system">;
|
|
929
|
+
component: z.ZodString;
|
|
930
|
+
}, z.core.$strip>], "type">;
|
|
931
|
+
scope: z.ZodString;
|
|
932
|
+
key: z.ZodString;
|
|
933
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
934
|
+
type: z.ZodLiteral<"dashboard.environments.secrets.scope.create">;
|
|
935
|
+
requestId: z.ZodString;
|
|
936
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
937
|
+
type: z.ZodLiteral<"user">;
|
|
938
|
+
sub: z.ZodString;
|
|
939
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
940
|
+
type: z.ZodLiteral<"api_key">;
|
|
941
|
+
keyId: z.ZodString;
|
|
942
|
+
ownerSub: z.ZodString;
|
|
943
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
944
|
+
type: z.ZodLiteral<"service_account">;
|
|
945
|
+
id: z.ZodString;
|
|
946
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
947
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
948
|
+
sub: z.ZodString;
|
|
949
|
+
reason: z.ZodString;
|
|
950
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
951
|
+
type: z.ZodLiteral<"system">;
|
|
952
|
+
component: z.ZodString;
|
|
953
|
+
}, z.core.$strip>], "type">;
|
|
954
|
+
scope: z.ZodString;
|
|
955
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
956
|
+
type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename">;
|
|
957
|
+
requestId: z.ZodString;
|
|
958
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
959
|
+
type: z.ZodLiteral<"user">;
|
|
960
|
+
sub: z.ZodString;
|
|
961
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
962
|
+
type: z.ZodLiteral<"api_key">;
|
|
963
|
+
keyId: z.ZodString;
|
|
964
|
+
ownerSub: z.ZodString;
|
|
965
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
966
|
+
type: z.ZodLiteral<"service_account">;
|
|
967
|
+
id: z.ZodString;
|
|
968
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
969
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
970
|
+
sub: z.ZodString;
|
|
971
|
+
reason: z.ZodString;
|
|
972
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
973
|
+
type: z.ZodLiteral<"system">;
|
|
974
|
+
component: z.ZodString;
|
|
975
|
+
}, z.core.$strip>], "type">;
|
|
976
|
+
oldScope: z.ZodString;
|
|
977
|
+
newScope: z.ZodString;
|
|
978
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
979
|
+
type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete">;
|
|
980
|
+
requestId: z.ZodString;
|
|
981
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
982
|
+
type: z.ZodLiteral<"user">;
|
|
983
|
+
sub: z.ZodString;
|
|
984
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
985
|
+
type: z.ZodLiteral<"api_key">;
|
|
986
|
+
keyId: z.ZodString;
|
|
987
|
+
ownerSub: z.ZodString;
|
|
988
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
989
|
+
type: z.ZodLiteral<"service_account">;
|
|
990
|
+
id: z.ZodString;
|
|
991
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
992
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
993
|
+
sub: z.ZodString;
|
|
994
|
+
reason: z.ZodString;
|
|
995
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
996
|
+
type: z.ZodLiteral<"system">;
|
|
997
|
+
component: z.ZodString;
|
|
998
|
+
}, z.core.$strip>], "type">;
|
|
999
|
+
scope: z.ZodString;
|
|
1000
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1001
|
+
type: z.ZodLiteral<"dashboard.environments.history">;
|
|
1002
|
+
requestId: z.ZodString;
|
|
1003
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1004
|
+
type: z.ZodLiteral<"user">;
|
|
1005
|
+
sub: z.ZodString;
|
|
1006
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1007
|
+
type: z.ZodLiteral<"api_key">;
|
|
1008
|
+
keyId: z.ZodString;
|
|
1009
|
+
ownerSub: z.ZodString;
|
|
1010
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1011
|
+
type: z.ZodLiteral<"service_account">;
|
|
1012
|
+
id: z.ZodString;
|
|
1013
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1014
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1015
|
+
sub: z.ZodString;
|
|
1016
|
+
reason: z.ZodString;
|
|
1017
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1018
|
+
type: z.ZodLiteral<"system">;
|
|
1019
|
+
component: z.ZodString;
|
|
1020
|
+
}, z.core.$strip>], "type">;
|
|
1021
|
+
environmentName: z.ZodString;
|
|
1022
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1023
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1024
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1025
|
+
type: z.ZodLiteral<"dashboard.held-runs.list">;
|
|
1026
|
+
requestId: z.ZodString;
|
|
1027
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1028
|
+
type: z.ZodLiteral<"user">;
|
|
1029
|
+
sub: z.ZodString;
|
|
1030
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1031
|
+
type: z.ZodLiteral<"api_key">;
|
|
1032
|
+
keyId: z.ZodString;
|
|
1033
|
+
ownerSub: z.ZodString;
|
|
1034
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1035
|
+
type: z.ZodLiteral<"service_account">;
|
|
1036
|
+
id: z.ZodString;
|
|
1037
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1038
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1039
|
+
sub: z.ZodString;
|
|
1040
|
+
reason: z.ZodString;
|
|
1041
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1042
|
+
type: z.ZodLiteral<"system">;
|
|
1043
|
+
component: z.ZodString;
|
|
1044
|
+
}, z.core.$strip>], "type">;
|
|
1045
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1046
|
+
pending: "pending";
|
|
1047
|
+
rejected: "rejected";
|
|
1048
|
+
approved: "approved";
|
|
1049
|
+
expired: "expired";
|
|
1050
|
+
}>>;
|
|
1051
|
+
queueType: z.ZodOptional<z.ZodEnum<{
|
|
1052
|
+
environment: "environment";
|
|
1053
|
+
security: "security";
|
|
1054
|
+
}>>;
|
|
1055
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1057
|
+
type: z.ZodLiteral<"dashboard.held-runs.approve">;
|
|
1058
|
+
requestId: z.ZodString;
|
|
1059
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1060
|
+
type: z.ZodLiteral<"user">;
|
|
1061
|
+
sub: z.ZodString;
|
|
1062
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1063
|
+
type: z.ZodLiteral<"api_key">;
|
|
1064
|
+
keyId: z.ZodString;
|
|
1065
|
+
ownerSub: z.ZodString;
|
|
1066
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1067
|
+
type: z.ZodLiteral<"service_account">;
|
|
1068
|
+
id: z.ZodString;
|
|
1069
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1070
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1071
|
+
sub: z.ZodString;
|
|
1072
|
+
reason: z.ZodString;
|
|
1073
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1074
|
+
type: z.ZodLiteral<"system">;
|
|
1075
|
+
component: z.ZodString;
|
|
1076
|
+
}, z.core.$strip>], "type">;
|
|
1077
|
+
heldRunId: z.ZodString;
|
|
1078
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1079
|
+
type: z.ZodLiteral<"dashboard.held-runs.reject">;
|
|
1080
|
+
requestId: z.ZodString;
|
|
1081
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1082
|
+
type: z.ZodLiteral<"user">;
|
|
1083
|
+
sub: z.ZodString;
|
|
1084
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1085
|
+
type: z.ZodLiteral<"api_key">;
|
|
1086
|
+
keyId: z.ZodString;
|
|
1087
|
+
ownerSub: z.ZodString;
|
|
1088
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1089
|
+
type: z.ZodLiteral<"service_account">;
|
|
1090
|
+
id: z.ZodString;
|
|
1091
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1092
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1093
|
+
sub: z.ZodString;
|
|
1094
|
+
reason: z.ZodString;
|
|
1095
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1096
|
+
type: z.ZodLiteral<"system">;
|
|
1097
|
+
component: z.ZodString;
|
|
1098
|
+
}, z.core.$strip>], "type">;
|
|
1099
|
+
heldRunId: z.ZodString;
|
|
1100
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1102
|
+
type: z.ZodLiteral<"dashboard.registrations.list">;
|
|
1103
|
+
requestId: z.ZodString;
|
|
1104
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1105
|
+
type: z.ZodLiteral<"user">;
|
|
1106
|
+
sub: z.ZodString;
|
|
1107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1108
|
+
type: z.ZodLiteral<"api_key">;
|
|
1109
|
+
keyId: z.ZodString;
|
|
1110
|
+
ownerSub: z.ZodString;
|
|
1111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1112
|
+
type: z.ZodLiteral<"service_account">;
|
|
1113
|
+
id: z.ZodString;
|
|
1114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1115
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1116
|
+
sub: z.ZodString;
|
|
1117
|
+
reason: z.ZodString;
|
|
1118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1119
|
+
type: z.ZodLiteral<"system">;
|
|
1120
|
+
component: z.ZodString;
|
|
1121
|
+
}, z.core.$strip>], "type">;
|
|
1122
|
+
triggerType: z.ZodOptional<z.ZodString>;
|
|
1123
|
+
repoIdentifier: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1125
|
+
type: z.ZodLiteral<"dashboard.registration.disable">;
|
|
1126
|
+
requestId: z.ZodString;
|
|
1127
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1128
|
+
type: z.ZodLiteral<"user">;
|
|
1129
|
+
sub: z.ZodString;
|
|
1130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1131
|
+
type: z.ZodLiteral<"api_key">;
|
|
1132
|
+
keyId: z.ZodString;
|
|
1133
|
+
ownerSub: z.ZodString;
|
|
1134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1135
|
+
type: z.ZodLiteral<"service_account">;
|
|
1136
|
+
id: z.ZodString;
|
|
1137
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1138
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1139
|
+
sub: z.ZodString;
|
|
1140
|
+
reason: z.ZodString;
|
|
1141
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1142
|
+
type: z.ZodLiteral<"system">;
|
|
1143
|
+
component: z.ZodString;
|
|
1144
|
+
}, z.core.$strip>], "type">;
|
|
1145
|
+
registrationId: z.ZodString;
|
|
1146
|
+
disabled: z.ZodBoolean;
|
|
1147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1148
|
+
type: z.ZodLiteral<"dashboard.registration.delete">;
|
|
1149
|
+
requestId: z.ZodString;
|
|
1150
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1151
|
+
type: z.ZodLiteral<"user">;
|
|
1152
|
+
sub: z.ZodString;
|
|
1153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1154
|
+
type: z.ZodLiteral<"api_key">;
|
|
1155
|
+
keyId: z.ZodString;
|
|
1156
|
+
ownerSub: z.ZodString;
|
|
1157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1158
|
+
type: z.ZodLiteral<"service_account">;
|
|
1159
|
+
id: z.ZodString;
|
|
1160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1161
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1162
|
+
sub: z.ZodString;
|
|
1163
|
+
reason: z.ZodString;
|
|
1164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1165
|
+
type: z.ZodLiteral<"system">;
|
|
1166
|
+
component: z.ZodString;
|
|
1167
|
+
}, z.core.$strip>], "type">;
|
|
1168
|
+
registrationId: z.ZodString;
|
|
1169
|
+
cancelActiveRuns: z.ZodOptional<z.ZodBoolean>;
|
|
1170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1171
|
+
type: z.ZodLiteral<"dashboard.diagnostics">;
|
|
1172
|
+
requestId: z.ZodString;
|
|
1173
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1174
|
+
type: z.ZodLiteral<"user">;
|
|
1175
|
+
sub: z.ZodString;
|
|
1176
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1177
|
+
type: z.ZodLiteral<"api_key">;
|
|
1178
|
+
keyId: z.ZodString;
|
|
1179
|
+
ownerSub: z.ZodString;
|
|
1180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1181
|
+
type: z.ZodLiteral<"service_account">;
|
|
1182
|
+
id: z.ZodString;
|
|
1183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1184
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1185
|
+
sub: z.ZodString;
|
|
1186
|
+
reason: z.ZodString;
|
|
1187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1188
|
+
type: z.ZodLiteral<"system">;
|
|
1189
|
+
component: z.ZodString;
|
|
1190
|
+
}, z.core.$strip>], "type">;
|
|
1191
|
+
includeAgents: z.ZodOptional<z.ZodBoolean>;
|
|
1192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1193
|
+
type: z.ZodLiteral<"dashboard.scaler.capacity">;
|
|
1194
|
+
requestId: z.ZodString;
|
|
1195
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1196
|
+
type: z.ZodLiteral<"user">;
|
|
1197
|
+
sub: z.ZodString;
|
|
1198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1199
|
+
type: z.ZodLiteral<"api_key">;
|
|
1200
|
+
keyId: z.ZodString;
|
|
1201
|
+
ownerSub: z.ZodString;
|
|
1202
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1203
|
+
type: z.ZodLiteral<"service_account">;
|
|
1204
|
+
id: z.ZodString;
|
|
1205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1206
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1207
|
+
sub: z.ZodString;
|
|
1208
|
+
reason: z.ZodString;
|
|
1209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1210
|
+
type: z.ZodLiteral<"system">;
|
|
1211
|
+
component: z.ZodString;
|
|
1212
|
+
}, z.core.$strip>], "type">;
|
|
1213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1214
|
+
type: z.ZodLiteral<"dashboard.scaler.agents">;
|
|
1215
|
+
requestId: z.ZodString;
|
|
1216
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1217
|
+
type: z.ZodLiteral<"user">;
|
|
1218
|
+
sub: z.ZodString;
|
|
1219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1220
|
+
type: z.ZodLiteral<"api_key">;
|
|
1221
|
+
keyId: z.ZodString;
|
|
1222
|
+
ownerSub: z.ZodString;
|
|
1223
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1224
|
+
type: z.ZodLiteral<"service_account">;
|
|
1225
|
+
id: z.ZodString;
|
|
1226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1227
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1228
|
+
sub: z.ZodString;
|
|
1229
|
+
reason: z.ZodString;
|
|
1230
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1231
|
+
type: z.ZodLiteral<"system">;
|
|
1232
|
+
component: z.ZodString;
|
|
1233
|
+
}, z.core.$strip>], "type">;
|
|
1234
|
+
scalerName: z.ZodNullable<z.ZodString>;
|
|
1235
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1236
|
+
type: z.ZodLiteral<"dashboard.backends.list">;
|
|
1237
|
+
requestId: z.ZodString;
|
|
1238
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1239
|
+
type: z.ZodLiteral<"user">;
|
|
1240
|
+
sub: z.ZodString;
|
|
1241
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1242
|
+
type: z.ZodLiteral<"api_key">;
|
|
1243
|
+
keyId: z.ZodString;
|
|
1244
|
+
ownerSub: z.ZodString;
|
|
1245
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1246
|
+
type: z.ZodLiteral<"service_account">;
|
|
1247
|
+
id: z.ZodString;
|
|
1248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1249
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1250
|
+
sub: z.ZodString;
|
|
1251
|
+
reason: z.ZodString;
|
|
1252
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1253
|
+
type: z.ZodLiteral<"system">;
|
|
1254
|
+
component: z.ZodString;
|
|
1255
|
+
}, z.core.$strip>], "type">;
|
|
1256
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1257
|
+
type: z.ZodLiteral<"dashboard.backends.get">;
|
|
1258
|
+
requestId: z.ZodString;
|
|
1259
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1260
|
+
type: z.ZodLiteral<"user">;
|
|
1261
|
+
sub: z.ZodString;
|
|
1262
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1263
|
+
type: z.ZodLiteral<"api_key">;
|
|
1264
|
+
keyId: z.ZodString;
|
|
1265
|
+
ownerSub: z.ZodString;
|
|
1266
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1267
|
+
type: z.ZodLiteral<"service_account">;
|
|
1268
|
+
id: z.ZodString;
|
|
1269
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1270
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1271
|
+
sub: z.ZodString;
|
|
1272
|
+
reason: z.ZodString;
|
|
1273
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1274
|
+
type: z.ZodLiteral<"system">;
|
|
1275
|
+
component: z.ZodString;
|
|
1276
|
+
}, z.core.$strip>], "type">;
|
|
1277
|
+
name: z.ZodString;
|
|
1278
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1279
|
+
type: z.ZodLiteral<"dashboard.backends.sync">;
|
|
1280
|
+
requestId: z.ZodString;
|
|
1281
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1282
|
+
type: z.ZodLiteral<"user">;
|
|
1283
|
+
sub: z.ZodString;
|
|
1284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1285
|
+
type: z.ZodLiteral<"api_key">;
|
|
1286
|
+
keyId: z.ZodString;
|
|
1287
|
+
ownerSub: z.ZodString;
|
|
1288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1289
|
+
type: z.ZodLiteral<"service_account">;
|
|
1290
|
+
id: z.ZodString;
|
|
1291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1292
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1293
|
+
sub: z.ZodString;
|
|
1294
|
+
reason: z.ZodString;
|
|
1295
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1296
|
+
type: z.ZodLiteral<"system">;
|
|
1297
|
+
component: z.ZodString;
|
|
1298
|
+
}, z.core.$strip>], "type">;
|
|
1299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1300
|
+
type: z.ZodLiteral<"dashboard.backends.sync.one">;
|
|
1301
|
+
requestId: z.ZodString;
|
|
1302
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1303
|
+
type: z.ZodLiteral<"user">;
|
|
1304
|
+
sub: z.ZodString;
|
|
1305
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1306
|
+
type: z.ZodLiteral<"api_key">;
|
|
1307
|
+
keyId: z.ZodString;
|
|
1308
|
+
ownerSub: z.ZodString;
|
|
1309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1310
|
+
type: z.ZodLiteral<"service_account">;
|
|
1311
|
+
id: z.ZodString;
|
|
1312
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1313
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1314
|
+
sub: z.ZodString;
|
|
1315
|
+
reason: z.ZodString;
|
|
1316
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1317
|
+
type: z.ZodLiteral<"system">;
|
|
1318
|
+
component: z.ZodString;
|
|
1319
|
+
}, z.core.$strip>], "type">;
|
|
1320
|
+
name: z.ZodString;
|
|
1321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1322
|
+
type: z.ZodLiteral<"dashboard.backends.test">;
|
|
1323
|
+
requestId: z.ZodString;
|
|
1324
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1325
|
+
type: z.ZodLiteral<"user">;
|
|
1326
|
+
sub: z.ZodString;
|
|
1327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1328
|
+
type: z.ZodLiteral<"api_key">;
|
|
1329
|
+
keyId: z.ZodString;
|
|
1330
|
+
ownerSub: z.ZodString;
|
|
1331
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1332
|
+
type: z.ZodLiteral<"service_account">;
|
|
1333
|
+
id: z.ZodString;
|
|
1334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1335
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1336
|
+
sub: z.ZodString;
|
|
1337
|
+
reason: z.ZodString;
|
|
1338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1339
|
+
type: z.ZodLiteral<"system">;
|
|
1340
|
+
component: z.ZodString;
|
|
1341
|
+
}, z.core.$strip>], "type">;
|
|
1342
|
+
name: z.ZodString;
|
|
1343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1344
|
+
type: z.ZodLiteral<"dashboard.event-log.list">;
|
|
1345
|
+
requestId: z.ZodString;
|
|
1346
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1347
|
+
type: z.ZodLiteral<"user">;
|
|
1348
|
+
sub: z.ZodString;
|
|
1349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1350
|
+
type: z.ZodLiteral<"api_key">;
|
|
1351
|
+
keyId: z.ZodString;
|
|
1352
|
+
ownerSub: z.ZodString;
|
|
1353
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1354
|
+
type: z.ZodLiteral<"service_account">;
|
|
1355
|
+
id: z.ZodString;
|
|
1356
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1357
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1358
|
+
sub: z.ZodString;
|
|
1359
|
+
reason: z.ZodString;
|
|
1360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1361
|
+
type: z.ZodLiteral<"system">;
|
|
1362
|
+
component: z.ZodString;
|
|
1363
|
+
}, z.core.$strip>], "type">;
|
|
1364
|
+
orgId: z.ZodString;
|
|
1365
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
event: z.ZodOptional<z.ZodString>;
|
|
1367
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1368
|
+
failed: "failed";
|
|
1369
|
+
received: "received";
|
|
1370
|
+
processed: "processed";
|
|
1371
|
+
duplicate: "duplicate";
|
|
1372
|
+
lockfile_missing: "lockfile_missing";
|
|
1373
|
+
}>>;
|
|
1374
|
+
fromTimestamp: z.ZodOptional<z.ZodString>;
|
|
1375
|
+
toTimestamp: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
deliveryId: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1378
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1379
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1380
|
+
type: z.ZodLiteral<"dashboard.event-log.detail">;
|
|
1381
|
+
requestId: z.ZodString;
|
|
1382
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1383
|
+
type: z.ZodLiteral<"user">;
|
|
1384
|
+
sub: z.ZodString;
|
|
1385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1386
|
+
type: z.ZodLiteral<"api_key">;
|
|
1387
|
+
keyId: z.ZodString;
|
|
1388
|
+
ownerSub: z.ZodString;
|
|
1389
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1390
|
+
type: z.ZodLiteral<"service_account">;
|
|
1391
|
+
id: z.ZodString;
|
|
1392
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1393
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1394
|
+
sub: z.ZodString;
|
|
1395
|
+
reason: z.ZodString;
|
|
1396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1397
|
+
type: z.ZodLiteral<"system">;
|
|
1398
|
+
component: z.ZodString;
|
|
1399
|
+
}, z.core.$strip>], "type">;
|
|
1400
|
+
orgId: z.ZodString;
|
|
1401
|
+
deliveryId: z.ZodString;
|
|
1402
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
1403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1404
|
+
type: z.ZodLiteral<"dashboard.event-log.payload.stream">;
|
|
1405
|
+
requestId: z.ZodString;
|
|
1406
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1407
|
+
type: z.ZodLiteral<"user">;
|
|
1408
|
+
sub: z.ZodString;
|
|
1409
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1410
|
+
type: z.ZodLiteral<"api_key">;
|
|
1411
|
+
keyId: z.ZodString;
|
|
1412
|
+
ownerSub: z.ZodString;
|
|
1413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1414
|
+
type: z.ZodLiteral<"service_account">;
|
|
1415
|
+
id: z.ZodString;
|
|
1416
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1417
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1418
|
+
sub: z.ZodString;
|
|
1419
|
+
reason: z.ZodString;
|
|
1420
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1421
|
+
type: z.ZodLiteral<"system">;
|
|
1422
|
+
component: z.ZodString;
|
|
1423
|
+
}, z.core.$strip>], "type">;
|
|
1424
|
+
orgId: z.ZodString;
|
|
1425
|
+
deliveryId: z.ZodString;
|
|
1426
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
1427
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1428
|
+
type: z.ZodLiteral<"dashboard.global-workflows.get">;
|
|
1429
|
+
requestId: z.ZodString;
|
|
1430
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1431
|
+
type: z.ZodLiteral<"user">;
|
|
1432
|
+
sub: z.ZodString;
|
|
1433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1434
|
+
type: z.ZodLiteral<"api_key">;
|
|
1435
|
+
keyId: z.ZodString;
|
|
1436
|
+
ownerSub: z.ZodString;
|
|
1437
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1438
|
+
type: z.ZodLiteral<"service_account">;
|
|
1439
|
+
id: z.ZodString;
|
|
1440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1441
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1442
|
+
sub: z.ZodString;
|
|
1443
|
+
reason: z.ZodString;
|
|
1444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1445
|
+
type: z.ZodLiteral<"system">;
|
|
1446
|
+
component: z.ZodString;
|
|
1447
|
+
}, z.core.$strip>], "type">;
|
|
1448
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1449
|
+
type: z.ZodLiteral<"dashboard.global-workflows.update">;
|
|
1450
|
+
requestId: z.ZodString;
|
|
1451
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1452
|
+
type: z.ZodLiteral<"user">;
|
|
1453
|
+
sub: z.ZodString;
|
|
1454
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1455
|
+
type: z.ZodLiteral<"api_key">;
|
|
1456
|
+
keyId: z.ZodString;
|
|
1457
|
+
ownerSub: z.ZodString;
|
|
1458
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1459
|
+
type: z.ZodLiteral<"service_account">;
|
|
1460
|
+
id: z.ZodString;
|
|
1461
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1462
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1463
|
+
sub: z.ZodString;
|
|
1464
|
+
reason: z.ZodString;
|
|
1465
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1466
|
+
type: z.ZodLiteral<"system">;
|
|
1467
|
+
component: z.ZodString;
|
|
1468
|
+
}, z.core.$strip>], "type">;
|
|
1469
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1470
|
+
allowedRepos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1471
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
pattern: z.ZodString;
|
|
1473
|
+
}, z.core.$strip>>>>;
|
|
1474
|
+
deniedRepos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1475
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
pattern: z.ZodString;
|
|
1477
|
+
}, z.core.$strip>>>>;
|
|
1478
|
+
elevatedRepos: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1479
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
1480
|
+
pattern: z.ZodString;
|
|
1481
|
+
}, z.core.$strip>>>>;
|
|
1482
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1483
|
+
type: z.ZodLiteral<"dashboard.access-log.list">;
|
|
1484
|
+
requestId: z.ZodString;
|
|
1485
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1486
|
+
type: z.ZodLiteral<"user">;
|
|
1487
|
+
sub: z.ZodString;
|
|
1488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1489
|
+
type: z.ZodLiteral<"api_key">;
|
|
1490
|
+
keyId: z.ZodString;
|
|
1491
|
+
ownerSub: z.ZodString;
|
|
1492
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1493
|
+
type: z.ZodLiteral<"service_account">;
|
|
1494
|
+
id: z.ZodString;
|
|
1495
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1496
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1497
|
+
sub: z.ZodString;
|
|
1498
|
+
reason: z.ZodString;
|
|
1499
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1500
|
+
type: z.ZodLiteral<"system">;
|
|
1501
|
+
component: z.ZodString;
|
|
1502
|
+
}, z.core.$strip>], "type">;
|
|
1503
|
+
orgId: z.ZodString;
|
|
1504
|
+
actorType: z.ZodOptional<z.ZodEnum<{
|
|
1505
|
+
user: "user";
|
|
1506
|
+
api_key: "api_key";
|
|
1507
|
+
service_account: "service_account";
|
|
1508
|
+
platform_operator: "platform_operator";
|
|
1509
|
+
system: "system";
|
|
1510
|
+
}>>;
|
|
1511
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
1513
|
+
"run.detail.read": "run.detail.read";
|
|
1514
|
+
"run.payload.read": "run.payload.read";
|
|
1515
|
+
"run.orch_logs.read": "run.orch_logs.read";
|
|
1516
|
+
"step.logs.read": "step.logs.read";
|
|
1517
|
+
"run.cancel": "run.cancel";
|
|
1518
|
+
"run.rerun": "run.rerun";
|
|
1519
|
+
"run.manual_schedule": "run.manual_schedule";
|
|
1520
|
+
"job.cancel": "job.cancel";
|
|
1521
|
+
"event_log.list.read": "event_log.list.read";
|
|
1522
|
+
"event_log.detail.read": "event_log.detail.read";
|
|
1523
|
+
"event_log.payload.read": "event_log.payload.read";
|
|
1524
|
+
"environment.list.read": "environment.list.read";
|
|
1525
|
+
"environment.get.read": "environment.get.read";
|
|
1526
|
+
"environment.create": "environment.create";
|
|
1527
|
+
"environment.update": "environment.update";
|
|
1528
|
+
"environment.delete": "environment.delete";
|
|
1529
|
+
"env_var.list.read": "env_var.list.read";
|
|
1530
|
+
"env_var.set": "env_var.set";
|
|
1531
|
+
"env_var.delete": "env_var.delete";
|
|
1532
|
+
"source_override.list.read": "source_override.list.read";
|
|
1533
|
+
"source_override.set": "source_override.set";
|
|
1534
|
+
"source_override.delete": "source_override.delete";
|
|
1535
|
+
"env_binding.list.read": "env_binding.list.read";
|
|
1536
|
+
"env_binding.set": "env_binding.set";
|
|
1537
|
+
"secret.list.read": "secret.list.read";
|
|
1538
|
+
"secret.set": "secret.set";
|
|
1539
|
+
"secret.delete": "secret.delete";
|
|
1540
|
+
"secret.reveal": "secret.reveal";
|
|
1541
|
+
"secret_scope.create": "secret_scope.create";
|
|
1542
|
+
"secret_scope.rename": "secret_scope.rename";
|
|
1543
|
+
"secret_scope.delete": "secret_scope.delete";
|
|
1544
|
+
"environment.history.read": "environment.history.read";
|
|
1545
|
+
"held_run.list.read": "held_run.list.read";
|
|
1546
|
+
"held_run.approve": "held_run.approve";
|
|
1547
|
+
"held_run.reject": "held_run.reject";
|
|
1548
|
+
"registration.list.read": "registration.list.read";
|
|
1549
|
+
"registration.disable": "registration.disable";
|
|
1550
|
+
"registration.delete": "registration.delete";
|
|
1551
|
+
"diagnostics.read": "diagnostics.read";
|
|
1552
|
+
"scaler.capacity.read": "scaler.capacity.read";
|
|
1553
|
+
"scaler.agents.read": "scaler.agents.read";
|
|
1554
|
+
"backend.list.read": "backend.list.read";
|
|
1555
|
+
"backend.get.read": "backend.get.read";
|
|
1556
|
+
"backend.sync": "backend.sync";
|
|
1557
|
+
"backend.sync.one": "backend.sync.one";
|
|
1558
|
+
"backend.test": "backend.test";
|
|
1559
|
+
"global_workflows.get.read": "global_workflows.get.read";
|
|
1560
|
+
"global_workflows.update": "global_workflows.update";
|
|
1561
|
+
"access_log.list.read": "access_log.list.read";
|
|
1562
|
+
"event_dlq.list.read": "event_dlq.list.read";
|
|
1563
|
+
"event_dlq.retry": "event_dlq.retry";
|
|
1564
|
+
"event_dlq.discard": "event_dlq.discard";
|
|
1565
|
+
archive_chunk: "archive_chunk";
|
|
1566
|
+
}>>;
|
|
1567
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1568
|
+
platform_proxy: "platform_proxy";
|
|
1569
|
+
admin_http: "admin_http";
|
|
1570
|
+
admin_cli: "admin_cli";
|
|
1571
|
+
}>>;
|
|
1572
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
1573
|
+
error: "error";
|
|
1574
|
+
allowed: "allowed";
|
|
1575
|
+
denied: "denied";
|
|
1576
|
+
}>>;
|
|
1577
|
+
targetType: z.ZodOptional<z.ZodEnum<{
|
|
1578
|
+
run: "run";
|
|
1579
|
+
job: "job";
|
|
1580
|
+
step: "step";
|
|
1581
|
+
payload: "payload";
|
|
1582
|
+
event_log: "event_log";
|
|
1583
|
+
event_log_payload: "event_log_payload";
|
|
1584
|
+
secret_scope: "secret_scope";
|
|
1585
|
+
environment: "environment";
|
|
1586
|
+
registration: "registration";
|
|
1587
|
+
backend: "backend";
|
|
1588
|
+
diagnostics: "diagnostics";
|
|
1589
|
+
scaler: "scaler";
|
|
1590
|
+
held_run: "held_run";
|
|
1591
|
+
access_log: "access_log";
|
|
1592
|
+
event_dlq: "event_dlq";
|
|
1593
|
+
}>>;
|
|
1594
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
1595
|
+
fromTimestamp: z.ZodOptional<z.ZodString>;
|
|
1596
|
+
toTimestamp: z.ZodOptional<z.ZodString>;
|
|
1597
|
+
q: z.ZodOptional<z.ZodString>;
|
|
1598
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1599
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1600
|
+
}, z.core.$strip>], "type">;
|
|
1601
|
+
/** All messages that flow from Orchestrator to Platform.
|
|
1602
|
+
*
|
|
1603
|
+
* Note: Dashboard response messages (dashboard.run.detail.response,
|
|
1604
|
+
* dashboard.step.logs.response, dashboard.orch.logs.response) are intentionally
|
|
1605
|
+
* excluded here. They are parsed separately via dashboardOrchToPlatformSchema so
|
|
1606
|
+
* the Platform WS handler can route them to the DashboardProxy for request
|
|
1607
|
+
* correlation. */
|
|
1608
|
+
export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1609
|
+
type: z.ZodLiteral<"webhook.ack">;
|
|
1610
|
+
messageId: z.ZodString;
|
|
1611
|
+
deliveryId: z.ZodString;
|
|
1612
|
+
result: z.ZodOptional<z.ZodEnum<{
|
|
1613
|
+
accepted: "accepted";
|
|
1614
|
+
rejected_signature: "rejected_signature";
|
|
1615
|
+
rejected_unknown_source: "rejected_unknown_source";
|
|
1616
|
+
rejected_misconfigured: "rejected_misconfigured";
|
|
1617
|
+
}>>;
|
|
1618
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1619
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1620
|
+
type: z.ZodLiteral<"execution.event">;
|
|
1621
|
+
messageId: z.ZodString;
|
|
1622
|
+
runId: z.ZodString;
|
|
1623
|
+
event: z.ZodEnum<{
|
|
1624
|
+
started: "started";
|
|
1625
|
+
job_dispatched: "job_dispatched";
|
|
1626
|
+
job_completed: "job_completed";
|
|
1627
|
+
finished: "finished";
|
|
1628
|
+
}>;
|
|
1629
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1630
|
+
timestamp: z.ZodNumber;
|
|
1631
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1632
|
+
type: z.ZodLiteral<"log.chunk">;
|
|
1633
|
+
messageId: z.ZodString;
|
|
1634
|
+
runId: z.ZodString;
|
|
1635
|
+
jobId: z.ZodString;
|
|
1636
|
+
stepIndex: z.ZodNumber;
|
|
1637
|
+
lines: z.ZodArray<z.ZodString>;
|
|
1638
|
+
timestamp: z.ZodNumber;
|
|
1639
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1640
|
+
type: z.ZodLiteral<"execution.status">;
|
|
1641
|
+
messageId: z.ZodString;
|
|
1642
|
+
runId: z.ZodString;
|
|
1643
|
+
workflowName: z.ZodString;
|
|
1644
|
+
status: z.ZodEnum<{
|
|
1645
|
+
success: "success";
|
|
1646
|
+
pending: "pending";
|
|
1647
|
+
running: "running";
|
|
1648
|
+
failed: "failed";
|
|
1649
|
+
cancelled: "cancelled";
|
|
1650
|
+
cancelling: "cancelling";
|
|
1651
|
+
}>;
|
|
1652
|
+
repoIdentifier: z.ZodOptional<z.ZodString>;
|
|
1653
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
1654
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
triggerEvent: z.ZodOptional<z.ZodString>;
|
|
1656
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
jobCount: z.ZodOptional<z.ZodNumber>;
|
|
1658
|
+
startedAt: z.ZodNumber;
|
|
1659
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1660
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1661
|
+
timestamp: z.ZodNumber;
|
|
1662
|
+
parentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1663
|
+
originalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1664
|
+
triggeredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1665
|
+
failureReason: z.ZodOptional<z.ZodString>;
|
|
1666
|
+
logBytes: z.ZodOptional<z.ZodNumber>;
|
|
1667
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1668
|
+
type: z.ZodLiteral<"step.status.forward">;
|
|
1669
|
+
messageId: z.ZodString;
|
|
1670
|
+
runId: z.ZodString;
|
|
1671
|
+
jobId: z.ZodString;
|
|
1672
|
+
jobName: z.ZodString;
|
|
1673
|
+
stepIndex: z.ZodNumber;
|
|
1674
|
+
stepName: z.ZodString;
|
|
1675
|
+
state: z.ZodEnum<{
|
|
1676
|
+
success: "success";
|
|
1677
|
+
running: "running";
|
|
1678
|
+
failed: "failed";
|
|
1679
|
+
skipped: "skipped";
|
|
1680
|
+
}>;
|
|
1681
|
+
timestamp: z.ZodNumber;
|
|
1682
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1683
|
+
secretsAccessed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1684
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1685
|
+
type: z.ZodLiteral<"job.status.forward">;
|
|
1686
|
+
messageId: z.ZodString;
|
|
1687
|
+
runId: z.ZodString;
|
|
1688
|
+
jobId: z.ZodString;
|
|
1689
|
+
jobName: z.ZodString;
|
|
1690
|
+
status: z.ZodEnum<{
|
|
1691
|
+
success: "success";
|
|
1692
|
+
pending: "pending";
|
|
1693
|
+
running: "running";
|
|
1694
|
+
failed: "failed";
|
|
1695
|
+
cancelled: "cancelled";
|
|
1696
|
+
cancelling: "cancelling";
|
|
1697
|
+
queued: "queued";
|
|
1698
|
+
recovering: "recovering";
|
|
1699
|
+
skipped: "skipped";
|
|
1700
|
+
timed_out_stale: "timed_out_stale";
|
|
1701
|
+
drift_dropped: "drift_dropped";
|
|
1702
|
+
}>;
|
|
1703
|
+
matrixValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1704
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1705
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1706
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1707
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1708
|
+
agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1709
|
+
orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1710
|
+
runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1711
|
+
logBytes: z.ZodOptional<z.ZodNumber>;
|
|
1712
|
+
timestamp: z.ZodNumber;
|
|
1713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1714
|
+
type: z.ZodLiteral<"state.replay">;
|
|
1715
|
+
messageId: z.ZodString;
|
|
1716
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1717
|
+
runId: z.ZodString;
|
|
1718
|
+
workflowName: z.ZodString;
|
|
1719
|
+
status: z.ZodEnum<{
|
|
1720
|
+
success: "success";
|
|
1721
|
+
pending: "pending";
|
|
1722
|
+
running: "running";
|
|
1723
|
+
failed: "failed";
|
|
1724
|
+
cancelled: "cancelled";
|
|
1725
|
+
cancelling: "cancelling";
|
|
1726
|
+
}>;
|
|
1727
|
+
routingKey: z.ZodOptional<z.ZodString>;
|
|
1728
|
+
repoIdentifier: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
1730
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
triggerEvent: z.ZodOptional<z.ZodString>;
|
|
1732
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
1733
|
+
jobCount: z.ZodNumber;
|
|
1734
|
+
startedAt: z.ZodNumber;
|
|
1735
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1736
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1737
|
+
parentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1738
|
+
originalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1739
|
+
triggeredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1740
|
+
failureReason: z.ZodOptional<z.ZodString>;
|
|
1741
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
1742
|
+
jobId: z.ZodString;
|
|
1743
|
+
jobName: z.ZodString;
|
|
1744
|
+
status: z.ZodString;
|
|
1745
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1746
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1747
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1748
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1749
|
+
agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1750
|
+
runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1751
|
+
}, z.core.$strip>>;
|
|
1752
|
+
}, z.core.$strip>>;
|
|
1753
|
+
timestamp: z.ZodNumber;
|
|
1754
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1755
|
+
type: z.ZodLiteral<"source.register">;
|
|
1756
|
+
messageId: z.ZodString;
|
|
1757
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
1758
|
+
provider: z.ZodEnum<{
|
|
1759
|
+
github: "github";
|
|
1760
|
+
gitlab: "gitlab";
|
|
1761
|
+
bitbucket: "bitbucket";
|
|
1762
|
+
generic: "generic";
|
|
1763
|
+
}>;
|
|
1764
|
+
routingKey: z.ZodString;
|
|
1765
|
+
name: z.ZodString;
|
|
1766
|
+
subtype: z.ZodEnum<{
|
|
1767
|
+
github_app: "github_app";
|
|
1768
|
+
generic_webhook: "generic_webhook";
|
|
1769
|
+
universal_git: "universal_git";
|
|
1770
|
+
internal: "internal";
|
|
1771
|
+
}>;
|
|
1772
|
+
}, z.core.$strip>>;
|
|
1773
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
1774
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1775
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1776
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
1777
|
+
platform: "platform";
|
|
1778
|
+
hybrid: "hybrid";
|
|
1779
|
+
independent: "independent";
|
|
1780
|
+
}>>;
|
|
1781
|
+
scalerBackends: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1782
|
+
s3LogAccess: z.ZodOptional<z.ZodBoolean>;
|
|
1783
|
+
queueTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1784
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1785
|
+
type: z.ZodLiteral<"source.deregister">;
|
|
1786
|
+
messageId: z.ZodString;
|
|
1787
|
+
routingKeys: z.ZodArray<z.ZodString>;
|
|
1788
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1789
|
+
type: z.ZodLiteral<"cache.stats">;
|
|
1790
|
+
cacheType: z.ZodEnum<{
|
|
1791
|
+
source: "source";
|
|
1792
|
+
dep: "dep";
|
|
1793
|
+
}>;
|
|
1794
|
+
hit: z.ZodBoolean;
|
|
1795
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1796
|
+
type: z.ZodLiteral<"auth.request">;
|
|
1797
|
+
token: z.ZodString;
|
|
1798
|
+
protocolVersion: z.ZodNumber;
|
|
1799
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
1800
|
+
orchRole: z.ZodOptional<z.ZodEnum<{
|
|
1801
|
+
coordinator: "coordinator";
|
|
1802
|
+
worker: "worker";
|
|
1803
|
+
}>>;
|
|
1804
|
+
}, z.core.$loose>>;
|
|
1805
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1806
|
+
type: z.ZodLiteral<"heartbeat">;
|
|
1807
|
+
timestamp: z.ZodNumber;
|
|
1808
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1809
|
+
type: z.ZodLiteral<"run.event">;
|
|
1810
|
+
runId: z.ZodString;
|
|
1811
|
+
eventType: z.ZodString;
|
|
1812
|
+
timestampMs: z.ZodNumber;
|
|
1813
|
+
sourceService: z.ZodEnum<{
|
|
1814
|
+
platform: "platform";
|
|
1815
|
+
orchestrator: "orchestrator";
|
|
1816
|
+
agent: "agent";
|
|
1817
|
+
}>;
|
|
1818
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1819
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
1820
|
+
spanId: z.ZodOptional<z.ZodString>;
|
|
1821
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
1822
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1823
|
+
jobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1824
|
+
stepIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1825
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1826
|
+
type: z.ZodLiteral<"job.context">;
|
|
1827
|
+
runId: z.ZodString;
|
|
1828
|
+
jobId: z.ZodString;
|
|
1829
|
+
context: z.ZodObject<{
|
|
1830
|
+
envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1831
|
+
name: z.ZodString;
|
|
1832
|
+
value: z.ZodString;
|
|
1833
|
+
category: z.ZodEnum<{
|
|
1834
|
+
user: "user";
|
|
1835
|
+
system: "system";
|
|
1836
|
+
inherited: "inherited";
|
|
1837
|
+
secret: "secret";
|
|
1838
|
+
}>;
|
|
1839
|
+
}, z.core.$strip>>>;
|
|
1840
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
1841
|
+
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
os: z.ZodOptional<z.ZodString>;
|
|
1843
|
+
arch: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
}, z.core.$strip>>;
|
|
1845
|
+
sandboxType: z.ZodOptional<z.ZodString>;
|
|
1846
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1847
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
1848
|
+
gitRef: z.ZodOptional<z.ZodString>;
|
|
1849
|
+
lockFileVersion: z.ZodOptional<z.ZodString>;
|
|
1850
|
+
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
1851
|
+
depCacheStatus: z.ZodOptional<z.ZodString>;
|
|
1852
|
+
networkIsolation: z.ZodOptional<z.ZodString>;
|
|
1853
|
+
scalerContext: z.ZodOptional<z.ZodObject<{
|
|
1854
|
+
backendType: z.ZodString;
|
|
1855
|
+
scalerName: z.ZodString;
|
|
1856
|
+
}, z.core.$loose>>;
|
|
1857
|
+
}, z.core.$strip>;
|
|
1858
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1859
|
+
type: z.ZodLiteral<"orch.metrics">;
|
|
1860
|
+
messageId: z.ZodString;
|
|
1861
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
1862
|
+
name: z.ZodString;
|
|
1863
|
+
type: z.ZodEnum<{
|
|
1864
|
+
counter: "counter";
|
|
1865
|
+
histogram: "histogram";
|
|
1866
|
+
gauge: "gauge";
|
|
1867
|
+
upDownCounter: "upDownCounter";
|
|
1868
|
+
}>;
|
|
1869
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1870
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1871
|
+
buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1872
|
+
le: z.ZodNumber;
|
|
1873
|
+
count: z.ZodNumber;
|
|
1874
|
+
}, z.core.$strip>>>;
|
|
1875
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1876
|
+
sum: z.ZodOptional<z.ZodNumber>;
|
|
1877
|
+
}, z.core.$strip>>;
|
|
1878
|
+
timestamp: z.ZodNumber;
|
|
1879
|
+
}, z.core.$strip>], "type">;
|
|
1880
|
+
export type WebhookRelay = z.infer<typeof webhookRelaySchema>;
|
|
1881
|
+
export type WebhookAck = z.infer<typeof webhookAckSchema>;
|
|
1882
|
+
export type ExecutionEvent = z.infer<typeof executionEventSchema>;
|
|
1883
|
+
export type LogChunk = z.infer<typeof logChunkSchema>;
|
|
1884
|
+
export type PeerDiscover = z.infer<typeof peerDiscoverSchema>;
|
|
1885
|
+
export type PeerUpdate = z.infer<typeof peerUpdateSchema>;
|
|
1886
|
+
export type PlatformToOrchestratorMessage = z.infer<typeof platformToOrchestratorMessageSchema>;
|
|
1887
|
+
export type OrchestratorToPlatformMessage = z.infer<typeof orchestratorToPlatformMessageSchema>;
|
|
1888
|
+
//# sourceMappingURL=platform-orchestrator.d.ts.map
|