@kici-dev/engine 0.6.0 → 0.7.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.
- package/dist/audit/access-log-policy.js +1 -0
- package/dist/audit/retention-policy.js +2 -0
- package/dist/billing/subscription-status.d.ts +38 -0
- package/dist/billing/subscription-status.js +63 -0
- package/dist/context/host-match.d.ts +25 -2
- package/dist/context/host-match.js +29 -7
- package/dist/index.d.ts +6 -1
- package/dist/index.js +10 -5
- package/dist/labels/compile.d.ts +3 -1
- package/dist/labels/compile.js +10 -5
- package/dist/labels-canonical.d.ts +36 -0
- package/dist/labels-canonical.js +21 -0
- package/dist/labels-match.d.ts +38 -7
- package/dist/labels-match.js +45 -9
- package/dist/metrics/catalog-policy.js +6 -1
- package/dist/metrics/metric-catalog.generated.d.ts +97 -2
- package/dist/metrics/metric-catalog.generated.js +116 -2
- package/dist/protocol/dashboard-write-operations.d.ts +17 -0
- package/dist/protocol/dashboard-write-operations.js +20 -3
- package/dist/protocol/messages/access-log.d.ts +5 -0
- package/dist/protocol/messages/access-log.js +1 -0
- package/dist/protocol/messages/config-paths.d.ts +20 -0
- package/dist/protocol/messages/config-paths.js +27 -0
- package/dist/protocol/messages/dashboard.d.ts +137 -0
- package/dist/protocol/messages/dashboard.js +80 -2
- package/dist/protocol/messages/event-log.d.ts +6 -0
- package/dist/protocol/messages/event-log.js +6 -0
- package/dist/protocol/messages/orchestrator-agent.d.ts +32 -0
- package/dist/protocol/messages/orchestrator-agent.js +52 -5
- package/dist/protocol/messages/peer.d.ts +3 -0
- package/dist/protocol/messages/peer.js +6 -1
- package/dist/protocol/messages/platform-orchestrator.d.ts +36 -0
- package/dist/protocol/messages/source-registration.d.ts +5 -0
- package/dist/protocol/messages/source-registration.js +8 -0
- package/dist/provenance/id-token-event-claims.d.ts +142 -0
- package/dist/provenance/id-token-event-claims.js +113 -0
- package/dist/provenance/statement-hash.d.ts +14 -5
- package/dist/provenance/statement-hash.js +14 -5
- package/dist/provenance/verify.d.ts +21 -0
- package/dist/provenance/verify.js +26 -16
- package/dist/regex-flags.d.ts +32 -0
- package/dist/regex-flags.js +43 -0
- package/dist/trigger/compiled-matchers.d.ts +9 -2
- package/dist/trigger/compiled-matchers.js +14 -5
- package/dist/trigger/decision-trace.d.ts +1 -1
- package/dist/trigger/decision-trace.js +1 -1
- package/dist/trigger/text-match.d.ts +8 -3
- package/dist/trigger/text-match.js +11 -5
- package/dist/trigger/trigger-event-type.d.ts +16 -0
- package/dist/trigger/trigger-event-type.js +25 -1
- package/dist/trigger/types.d.ts +55 -4
- package/dist/trigger/types.js +5 -1
- package/dist/ws/close-codes.d.ts +8 -0
- package/dist/ws/close-codes.js +9 -1
- package/package.json +1 -1
- package/sbom.spdx.json +5 -5
|
@@ -216,7 +216,7 @@ const DASHBOARD_WRITE_OPERATIONS = Object.freeze([
|
|
|
216
216
|
category: "Held runs",
|
|
217
217
|
label: "Approve held run",
|
|
218
218
|
sensitivity: "dispatch",
|
|
219
|
-
cliEquivalent: "kici-admin
|
|
219
|
+
cliEquivalent: "kici-admin held-run approve"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
name: "held_runs.reject",
|
|
@@ -224,7 +224,7 @@ const DASHBOARD_WRITE_OPERATIONS = Object.freeze([
|
|
|
224
224
|
category: "Held runs",
|
|
225
225
|
label: "Reject held run",
|
|
226
226
|
sensitivity: "dispatch",
|
|
227
|
-
cliEquivalent: "kici-admin
|
|
227
|
+
cliEquivalent: "kici-admin held-run reject"
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
name: "event_dlq.retry",
|
|
@@ -315,6 +315,23 @@ const DASHBOARD_WRITE_OPERATIONS = Object.freeze([
|
|
|
315
315
|
cliEquivalent: "kici-admin host remove"
|
|
316
316
|
}
|
|
317
317
|
]);
|
|
318
|
+
/**
|
|
319
|
+
* The operations whose `cliEquivalent` answers only on an **independent**
|
|
320
|
+
* orchestrator.
|
|
321
|
+
*
|
|
322
|
+
* `kici-admin held-run approve` and `reject` refuse with a 409 wherever a
|
|
323
|
+
* Platform is attached, because the Platform's own held-run trust gate is the
|
|
324
|
+
* authority on who may answer a hold there. Every other operation's CLI
|
|
325
|
+
* equivalent works in any mode.
|
|
326
|
+
*
|
|
327
|
+
* That makes these two the only operations a Platform-attached orchestrator
|
|
328
|
+
* cannot move to the CLI layer: disabling one leaves no surface that can answer
|
|
329
|
+
* a context or reviewer hold, so the orchestrator refuses the write. This list
|
|
330
|
+
* is what the orchestrator's policy module and the `dashboard-writes` CLI
|
|
331
|
+
* render both read, so the refusal and the warning can never name different
|
|
332
|
+
* operations.
|
|
333
|
+
*/
|
|
334
|
+
const CLI_INDEPENDENT_ONLY_OPERATIONS = Object.freeze(["held_runs.approve", "held_runs.reject"]);
|
|
318
335
|
/** O(1) lookup of a descriptor by operation name. */
|
|
319
336
|
const DASHBOARD_WRITE_OPERATIONS_BY_NAME = new Map(DASHBOARD_WRITE_OPERATIONS.map((d) => [d.name, d]));
|
|
320
337
|
/** O(1) lookup of a descriptor by wire-message type. */
|
|
@@ -435,6 +452,6 @@ function resolveFullPolicyStateView(policy) {
|
|
|
435
452
|
return out;
|
|
436
453
|
}
|
|
437
454
|
//#endregion
|
|
438
|
-
export { DASHBOARD_WRITE_OPERATIONS, DASHBOARD_WRITE_OPERATIONS_BY_NAME, DASHBOARD_WRITE_OPERATIONS_BY_WIRE_TYPE, DASHBOARD_WRITE_OPERATION_VALUES, DashboardWriteCategory, DashboardWriteOperation, DashboardWritePolicyState, DashboardWriteSensitivity, coerceDashboardWritePolicyValue, dashboardWritePolicyMap, dashboardWritePolicyMapSchema, getDashboardWriteOperationDescriptor, getDashboardWriteOperationsByCategory, getDashboardWriteOperationsBySensitivity, isDashboardWriteOperationEnabled, isEncryptedState, resolveFullPolicyStateView, resolveFullPolicyView, resolvePolicyState };
|
|
455
|
+
export { CLI_INDEPENDENT_ONLY_OPERATIONS, DASHBOARD_WRITE_OPERATIONS, DASHBOARD_WRITE_OPERATIONS_BY_NAME, DASHBOARD_WRITE_OPERATIONS_BY_WIRE_TYPE, DASHBOARD_WRITE_OPERATION_VALUES, DashboardWriteCategory, DashboardWriteOperation, DashboardWritePolicyState, DashboardWriteSensitivity, coerceDashboardWritePolicyValue, dashboardWritePolicyMap, dashboardWritePolicyMapSchema, getDashboardWriteOperationDescriptor, getDashboardWriteOperationsByCategory, getDashboardWriteOperationsBySensitivity, isDashboardWriteOperationEnabled, isEncryptedState, resolveFullPolicyStateView, resolveFullPolicyView, resolvePolicyState };
|
|
439
456
|
|
|
440
457
|
//# sourceMappingURL=dashboard-write-operations.js.map
|
|
@@ -56,6 +56,7 @@ export type AccessLogTargetType = z.infer<typeof AccessLogTargetType>;
|
|
|
56
56
|
*/
|
|
57
57
|
export declare const AccessLogAction: z.ZodEnum<{
|
|
58
58
|
"access_log.list.read": "access_log.list.read";
|
|
59
|
+
"admin_tokens.list.read": "admin_tokens.list.read";
|
|
59
60
|
archive_chunk: "archive_chunk";
|
|
60
61
|
"artifacts.read": "artifacts.read";
|
|
61
62
|
"attestation.retry": "attestation.retry";
|
|
@@ -161,6 +162,7 @@ export declare const accessLogItemSchema: z.ZodObject<{
|
|
|
161
162
|
actorDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
163
|
action: z.ZodEnum<{
|
|
163
164
|
"access_log.list.read": "access_log.list.read";
|
|
165
|
+
"admin_tokens.list.read": "admin_tokens.list.read";
|
|
164
166
|
archive_chunk: "archive_chunk";
|
|
165
167
|
"artifacts.read": "artifacts.read";
|
|
166
168
|
"attestation.retry": "attestation.retry";
|
|
@@ -293,6 +295,7 @@ export declare const accessLogFilterSchema: z.ZodObject<{
|
|
|
293
295
|
actorId: z.ZodOptional<z.ZodString>;
|
|
294
296
|
action: z.ZodOptional<z.ZodEnum<{
|
|
295
297
|
"access_log.list.read": "access_log.list.read";
|
|
298
|
+
"admin_tokens.list.read": "admin_tokens.list.read";
|
|
296
299
|
archive_chunk: "archive_chunk";
|
|
297
300
|
"artifacts.read": "artifacts.read";
|
|
298
301
|
"attestation.retry": "attestation.retry";
|
|
@@ -455,6 +458,7 @@ export declare const dashboardAccessLogListRequestSchema: z.ZodObject<{
|
|
|
455
458
|
actorId: z.ZodOptional<z.ZodString>;
|
|
456
459
|
action: z.ZodOptional<z.ZodEnum<{
|
|
457
460
|
"access_log.list.read": "access_log.list.read";
|
|
461
|
+
"admin_tokens.list.read": "admin_tokens.list.read";
|
|
458
462
|
archive_chunk: "archive_chunk";
|
|
459
463
|
"artifacts.read": "artifacts.read";
|
|
460
464
|
"attestation.retry": "attestation.retry";
|
|
@@ -598,6 +602,7 @@ export declare const dashboardAccessLogListResponseSchema: z.ZodObject<{
|
|
|
598
602
|
actorDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
599
603
|
action: z.ZodEnum<{
|
|
600
604
|
"access_log.list.read": "access_log.list.read";
|
|
605
|
+
"admin_tokens.list.read": "admin_tokens.list.read";
|
|
601
606
|
archive_chunk: "archive_chunk";
|
|
602
607
|
"artifacts.read": "artifacts.read";
|
|
603
608
|
"attestation.retry": "attestation.retry";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Where an orchestrator's own configuration lives on its host, so an operator
|
|
4
|
+
* reading the dashboard knows which files to inspect.
|
|
5
|
+
*
|
|
6
|
+
* Every value is an absolute HOST path, and every field is optional. An absent
|
|
7
|
+
* field means "not reported" and never "no such file": a `composeFile` that is
|
|
8
|
+
* missing does not imply the deployment is not compose, it implies the
|
|
9
|
+
* orchestrator did not say.
|
|
10
|
+
*
|
|
11
|
+
* Paths only — no layer ever carries the contents of these files, which hold
|
|
12
|
+
* the database URL and the Platform token.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ConfigPathsSchema: z.ZodObject<{
|
|
15
|
+
envFile: z.ZodOptional<z.ZodString>;
|
|
16
|
+
scalerConfig: z.ZodOptional<z.ZodString>;
|
|
17
|
+
composeFile: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type ConfigPaths = z.infer<typeof ConfigPathsSchema>;
|
|
20
|
+
//# sourceMappingURL=config-paths.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "../../rolldown-runtime-ClRpJifh.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/protocol/messages/config-paths.ts
|
|
4
|
+
/**
|
|
5
|
+
* Where an orchestrator's own configuration lives on its host, so an operator
|
|
6
|
+
* reading the dashboard knows which files to inspect.
|
|
7
|
+
*
|
|
8
|
+
* Every value is an absolute HOST path, and every field is optional. An absent
|
|
9
|
+
* field means "not reported" and never "no such file": a `composeFile` that is
|
|
10
|
+
* missing does not imply the deployment is not compose, it implies the
|
|
11
|
+
* orchestrator did not say.
|
|
12
|
+
*
|
|
13
|
+
* Paths only — no layer ever carries the contents of these files, which hold
|
|
14
|
+
* the database URL and the Platform token.
|
|
15
|
+
*/
|
|
16
|
+
const ConfigPathsSchema = z.object({
|
|
17
|
+
/** The env file the service manager loads (`EnvironmentFile=` / `env_file:`). */
|
|
18
|
+
envFile: z.string().min(1).optional(),
|
|
19
|
+
/** The scaler YAML file, or the directory when only a directory is configured. */
|
|
20
|
+
scalerConfig: z.string().min(1).optional(),
|
|
21
|
+
/** The generated compose file, for a compose deployment. */
|
|
22
|
+
composeFile: z.string().min(1).optional()
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { ConfigPathsSchema };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=config-paths.js.map
|
|
@@ -1322,6 +1322,77 @@ export declare const dashboardSourcesListResponseSchema: z.ZodObject<{
|
|
|
1322
1322
|
error: z.ZodOptional<z.ZodString>;
|
|
1323
1323
|
}, z.core.$strip>;
|
|
1324
1324
|
export type DashboardSourcesListResponse = z.infer<typeof dashboardSourcesListResponseSchema>;
|
|
1325
|
+
/**
|
|
1326
|
+
* One orchestrator admin token, as the dashboard plane sees it.
|
|
1327
|
+
*
|
|
1328
|
+
* The projection deliberately carries NO `token_hash` / `tokenHash` field. A
|
|
1329
|
+
* hash is a credential verifier: relaying it would put an offline-crackable
|
|
1330
|
+
* value on the dashboard plane for a report that has no use for it.
|
|
1331
|
+
* `dashboard.test.ts` asserts the absence so a later field addition cannot
|
|
1332
|
+
* reintroduce it by accident.
|
|
1333
|
+
*/
|
|
1334
|
+
export declare const dashboardAdminTokenSummarySchema: z.ZodObject<{
|
|
1335
|
+
id: z.ZodString;
|
|
1336
|
+
label: z.ZodString;
|
|
1337
|
+
role: z.ZodString;
|
|
1338
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
1339
|
+
routingKey: z.ZodNullable<z.ZodString>;
|
|
1340
|
+
createdAt: z.ZodString;
|
|
1341
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1342
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
1343
|
+
revoked: z.ZodBoolean;
|
|
1344
|
+
}, z.core.$strip>;
|
|
1345
|
+
export type DashboardAdminTokenSummary = z.infer<typeof dashboardAdminTokenSummarySchema>;
|
|
1346
|
+
/** Request the orchestrator's admin-token inventory. */
|
|
1347
|
+
export declare const dashboardAdminTokensListRequestSchema: z.ZodObject<{
|
|
1348
|
+
type: z.ZodLiteral<"dashboard.admin-tokens.list">;
|
|
1349
|
+
requestId: z.ZodString;
|
|
1350
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1351
|
+
type: z.ZodLiteral<"user">;
|
|
1352
|
+
sub: z.ZodString;
|
|
1353
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
1354
|
+
patId: z.ZodString;
|
|
1355
|
+
label: z.ZodString;
|
|
1356
|
+
}, z.core.$strip>>;
|
|
1357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1358
|
+
type: z.ZodLiteral<"api_key">;
|
|
1359
|
+
keyId: z.ZodString;
|
|
1360
|
+
ownerSub: z.ZodString;
|
|
1361
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
1362
|
+
label: z.ZodString;
|
|
1363
|
+
}, z.core.$strip>>;
|
|
1364
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1365
|
+
type: z.ZodLiteral<"service_account">;
|
|
1366
|
+
id: z.ZodString;
|
|
1367
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1368
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
1369
|
+
sub: z.ZodString;
|
|
1370
|
+
reason: z.ZodString;
|
|
1371
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1372
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1373
|
+
type: z.ZodLiteral<"system">;
|
|
1374
|
+
component: z.ZodString;
|
|
1375
|
+
}, z.core.$strip>], "type">;
|
|
1376
|
+
}, z.core.$strip>;
|
|
1377
|
+
export type DashboardAdminTokensListRequest = z.infer<typeof dashboardAdminTokensListRequestSchema>;
|
|
1378
|
+
/** Response with the admin-token inventory. */
|
|
1379
|
+
export declare const dashboardAdminTokensListResponseSchema: z.ZodObject<{
|
|
1380
|
+
type: z.ZodLiteral<"dashboard.admin-tokens.list.response">;
|
|
1381
|
+
requestId: z.ZodString;
|
|
1382
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
1383
|
+
id: z.ZodString;
|
|
1384
|
+
label: z.ZodString;
|
|
1385
|
+
role: z.ZodString;
|
|
1386
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
1387
|
+
routingKey: z.ZodNullable<z.ZodString>;
|
|
1388
|
+
createdAt: z.ZodString;
|
|
1389
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1390
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
1391
|
+
revoked: z.ZodBoolean;
|
|
1392
|
+
}, z.core.$strip>>;
|
|
1393
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1394
|
+
}, z.core.$strip>;
|
|
1395
|
+
export type DashboardAdminTokensListResponse = z.infer<typeof dashboardAdminTokensListResponseSchema>;
|
|
1325
1396
|
/** Request to re-run a completed run. */
|
|
1326
1397
|
export declare const runRerunRequestSchema: z.ZodObject<{
|
|
1327
1398
|
type: z.ZodLiteral<"run.rerun.request">;
|
|
@@ -1481,6 +1552,7 @@ export declare const eventLogListItemSchema: z.ZodObject<{
|
|
|
1481
1552
|
lockfile_missing: "lockfile_missing";
|
|
1482
1553
|
processed: "processed";
|
|
1483
1554
|
received: "received";
|
|
1555
|
+
shed: "shed";
|
|
1484
1556
|
}>;
|
|
1485
1557
|
matchedCount: z.ZodNumber;
|
|
1486
1558
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -1534,6 +1606,7 @@ export declare const dashboardEventLogListRequestSchema: z.ZodObject<{
|
|
|
1534
1606
|
lockfile_missing: "lockfile_missing";
|
|
1535
1607
|
processed: "processed";
|
|
1536
1608
|
received: "received";
|
|
1609
|
+
shed: "shed";
|
|
1537
1610
|
}>>;
|
|
1538
1611
|
fromTimestamp: z.ZodOptional<z.ZodString>;
|
|
1539
1612
|
toTimestamp: z.ZodOptional<z.ZodString>;
|
|
@@ -1564,6 +1637,7 @@ declare const dashboardEventLogListResponseSchema: z.ZodObject<{
|
|
|
1564
1637
|
lockfile_missing: "lockfile_missing";
|
|
1565
1638
|
processed: "processed";
|
|
1566
1639
|
received: "received";
|
|
1640
|
+
shed: "shed";
|
|
1567
1641
|
}>;
|
|
1568
1642
|
matchedCount: z.ZodNumber;
|
|
1569
1643
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -1642,6 +1716,7 @@ declare const dashboardEventLogDetailResponseSchema: z.ZodObject<{
|
|
|
1642
1716
|
lockfile_missing: "lockfile_missing";
|
|
1643
1717
|
processed: "processed";
|
|
1644
1718
|
received: "received";
|
|
1719
|
+
shed: "shed";
|
|
1645
1720
|
}>;
|
|
1646
1721
|
matchedCount: z.ZodNumber;
|
|
1647
1722
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -3874,6 +3949,7 @@ export declare const registrationItemSchema: z.ZodObject<{
|
|
|
3874
3949
|
}>>;
|
|
3875
3950
|
provider: z.ZodString;
|
|
3876
3951
|
}, z.core.$strip>>>;
|
|
3952
|
+
isGlobal: z.ZodOptional<z.ZodBoolean>;
|
|
3877
3953
|
}, z.core.$strip>;
|
|
3878
3954
|
/** Response with workflow registrations. */
|
|
3879
3955
|
export declare const registrationsListResponseSchema: z.ZodObject<{
|
|
@@ -3904,6 +3980,7 @@ export declare const registrationsListResponseSchema: z.ZodObject<{
|
|
|
3904
3980
|
}>>;
|
|
3905
3981
|
provider: z.ZodString;
|
|
3906
3982
|
}, z.core.$strip>>>;
|
|
3983
|
+
isGlobal: z.ZodOptional<z.ZodBoolean>;
|
|
3907
3984
|
}, z.core.$strip>>>;
|
|
3908
3985
|
registryVersion: z.ZodNumber;
|
|
3909
3986
|
registryUpdatedAt: z.ZodString;
|
|
@@ -4840,6 +4917,35 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
4840
4917
|
}, z.core.$strip>], "type">;
|
|
4841
4918
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
4842
4919
|
cursor: z.ZodOptional<z.ZodString>;
|
|
4920
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4921
|
+
type: z.ZodLiteral<"dashboard.admin-tokens.list">;
|
|
4922
|
+
requestId: z.ZodString;
|
|
4923
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4924
|
+
type: z.ZodLiteral<"user">;
|
|
4925
|
+
sub: z.ZodString;
|
|
4926
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
4927
|
+
patId: z.ZodString;
|
|
4928
|
+
label: z.ZodString;
|
|
4929
|
+
}, z.core.$strip>>;
|
|
4930
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4931
|
+
type: z.ZodLiteral<"api_key">;
|
|
4932
|
+
keyId: z.ZodString;
|
|
4933
|
+
ownerSub: z.ZodString;
|
|
4934
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
4935
|
+
label: z.ZodString;
|
|
4936
|
+
}, z.core.$strip>>;
|
|
4937
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4938
|
+
type: z.ZodLiteral<"service_account">;
|
|
4939
|
+
id: z.ZodString;
|
|
4940
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4941
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
4942
|
+
sub: z.ZodString;
|
|
4943
|
+
reason: z.ZodString;
|
|
4944
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
4945
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4946
|
+
type: z.ZodLiteral<"system">;
|
|
4947
|
+
component: z.ZodString;
|
|
4948
|
+
}, z.core.$strip>], "type">;
|
|
4843
4949
|
}, z.core.$strip>, z.ZodObject<{
|
|
4844
4950
|
type: z.ZodLiteral<"run.rerun.request">;
|
|
4845
4951
|
requestId: z.ZodString;
|
|
@@ -6346,6 +6452,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
6346
6452
|
lockfile_missing: "lockfile_missing";
|
|
6347
6453
|
processed: "processed";
|
|
6348
6454
|
received: "received";
|
|
6455
|
+
shed: "shed";
|
|
6349
6456
|
}>>;
|
|
6350
6457
|
fromTimestamp: z.ZodOptional<z.ZodString>;
|
|
6351
6458
|
toTimestamp: z.ZodOptional<z.ZodString>;
|
|
@@ -6682,6 +6789,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
6682
6789
|
actorId: z.ZodOptional<z.ZodString>;
|
|
6683
6790
|
action: z.ZodOptional<z.ZodEnum<{
|
|
6684
6791
|
"access_log.list.read": "access_log.list.read";
|
|
6792
|
+
"admin_tokens.list.read": "admin_tokens.list.read";
|
|
6685
6793
|
archive_chunk: "archive_chunk";
|
|
6686
6794
|
"artifacts.read": "artifacts.read";
|
|
6687
6795
|
"attestation.retry": "attestation.retry";
|
|
@@ -7580,6 +7688,21 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
7580
7688
|
}, z.core.$strip>>;
|
|
7581
7689
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
7582
7690
|
error: z.ZodOptional<z.ZodString>;
|
|
7691
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7692
|
+
type: z.ZodLiteral<"dashboard.admin-tokens.list.response">;
|
|
7693
|
+
requestId: z.ZodString;
|
|
7694
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
7695
|
+
id: z.ZodString;
|
|
7696
|
+
label: z.ZodString;
|
|
7697
|
+
role: z.ZodString;
|
|
7698
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
7699
|
+
routingKey: z.ZodNullable<z.ZodString>;
|
|
7700
|
+
createdAt: z.ZodString;
|
|
7701
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
7702
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
7703
|
+
revoked: z.ZodBoolean;
|
|
7704
|
+
}, z.core.$strip>>;
|
|
7705
|
+
error: z.ZodOptional<z.ZodString>;
|
|
7583
7706
|
}, z.core.$strip>, z.ZodObject<{
|
|
7584
7707
|
type: z.ZodLiteral<"run.rerun.response">;
|
|
7585
7708
|
requestId: z.ZodString;
|
|
@@ -7851,6 +7974,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
7851
7974
|
}>>;
|
|
7852
7975
|
provider: z.ZodString;
|
|
7853
7976
|
}, z.core.$strip>>>;
|
|
7977
|
+
isGlobal: z.ZodOptional<z.ZodBoolean>;
|
|
7854
7978
|
}, z.core.$strip>>>;
|
|
7855
7979
|
registryVersion: z.ZodNumber;
|
|
7856
7980
|
registryUpdatedAt: z.ZodString;
|
|
@@ -8234,6 +8358,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8234
8358
|
lockfile_missing: "lockfile_missing";
|
|
8235
8359
|
processed: "processed";
|
|
8236
8360
|
received: "received";
|
|
8361
|
+
shed: "shed";
|
|
8237
8362
|
}>;
|
|
8238
8363
|
matchedCount: z.ZodNumber;
|
|
8239
8364
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -8283,6 +8408,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8283
8408
|
lockfile_missing: "lockfile_missing";
|
|
8284
8409
|
processed: "processed";
|
|
8285
8410
|
received: "received";
|
|
8411
|
+
shed: "shed";
|
|
8286
8412
|
}>;
|
|
8287
8413
|
matchedCount: z.ZodNumber;
|
|
8288
8414
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -8411,6 +8537,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8411
8537
|
actorDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8412
8538
|
action: z.ZodEnum<{
|
|
8413
8539
|
"access_log.list.read": "access_log.list.read";
|
|
8540
|
+
"admin_tokens.list.read": "admin_tokens.list.read";
|
|
8414
8541
|
archive_chunk: "archive_chunk";
|
|
8415
8542
|
"artifacts.read": "artifacts.read";
|
|
8416
8543
|
"attestation.retry": "attestation.retry";
|
|
@@ -9012,6 +9139,11 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
|
|
|
9012
9139
|
adminInvocation: z.ZodNullable<z.ZodString>;
|
|
9013
9140
|
adminPath: z.ZodNullable<z.ZodString>;
|
|
9014
9141
|
}, z.core.$strip>;
|
|
9142
|
+
configPaths: z.ZodOptional<z.ZodObject<{
|
|
9143
|
+
envFile: z.ZodNullable<z.ZodString>;
|
|
9144
|
+
scalerConfig: z.ZodNullable<z.ZodString>;
|
|
9145
|
+
composeFile: z.ZodNullable<z.ZodString>;
|
|
9146
|
+
}, z.core.$strip>>;
|
|
9015
9147
|
s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
9016
9148
|
agentCount: z.ZodNumber;
|
|
9017
9149
|
runningJobs: z.ZodNumber;
|
|
@@ -9122,6 +9254,11 @@ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
|
|
|
9122
9254
|
adminInvocation: z.ZodNullable<z.ZodString>;
|
|
9123
9255
|
adminPath: z.ZodNullable<z.ZodString>;
|
|
9124
9256
|
}, z.core.$strip>;
|
|
9257
|
+
configPaths: z.ZodOptional<z.ZodObject<{
|
|
9258
|
+
envFile: z.ZodNullable<z.ZodString>;
|
|
9259
|
+
scalerConfig: z.ZodNullable<z.ZodString>;
|
|
9260
|
+
composeFile: z.ZodNullable<z.ZodString>;
|
|
9261
|
+
}, z.core.$strip>>;
|
|
9125
9262
|
s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
9126
9263
|
agentCount: z.ZodNumber;
|
|
9127
9264
|
runningJobs: z.ZodNumber;
|
|
@@ -550,6 +550,51 @@ const dashboardSourcesListResponseSchema = z.object({
|
|
|
550
550
|
nextCursor: z.string().optional(),
|
|
551
551
|
error: z.string().optional()
|
|
552
552
|
});
|
|
553
|
+
/**
|
|
554
|
+
* One orchestrator admin token, as the dashboard plane sees it.
|
|
555
|
+
*
|
|
556
|
+
* The projection deliberately carries NO `token_hash` / `tokenHash` field. A
|
|
557
|
+
* hash is a credential verifier: relaying it would put an offline-crackable
|
|
558
|
+
* value on the dashboard plane for a report that has no use for it.
|
|
559
|
+
* `dashboard.test.ts` asserts the absence so a later field addition cannot
|
|
560
|
+
* reintroduce it by accident.
|
|
561
|
+
*/
|
|
562
|
+
const dashboardAdminTokenSummarySchema = z.object({
|
|
563
|
+
id: z.string(),
|
|
564
|
+
label: z.string(),
|
|
565
|
+
/** `owner`, `admin` or `auditor` — the orchestrator's three fixed roles. */
|
|
566
|
+
role: z.string(),
|
|
567
|
+
/**
|
|
568
|
+
* The intended holder the operator recorded at `token create --subject` (an
|
|
569
|
+
* OIDC `sub` or an email), or null when nobody did. Null is the report's
|
|
570
|
+
* `unlinked` finding.
|
|
571
|
+
*/
|
|
572
|
+
subject: z.string().nullable(),
|
|
573
|
+
/**
|
|
574
|
+
* The single routing key this token is restricted to, or null for an
|
|
575
|
+
* unscoped token. Load-bearing for the report: a routing-key-scoped token is
|
|
576
|
+
* refused outright on the secret, context, org-settings and trust-policy
|
|
577
|
+
* routes, so it is materially less privileged than its role alone suggests.
|
|
578
|
+
*/
|
|
579
|
+
routingKey: z.string().nullable(),
|
|
580
|
+
createdAt: z.string(),
|
|
581
|
+
expiresAt: z.string().nullable(),
|
|
582
|
+
lastUsedAt: z.string().nullable(),
|
|
583
|
+
revoked: z.boolean()
|
|
584
|
+
});
|
|
585
|
+
/** Request the orchestrator's admin-token inventory. */
|
|
586
|
+
const dashboardAdminTokensListRequestSchema = z.object({
|
|
587
|
+
type: z.literal("dashboard.admin-tokens.list"),
|
|
588
|
+
requestId: z.string(),
|
|
589
|
+
actor: actorPrincipalSchema
|
|
590
|
+
});
|
|
591
|
+
/** Response with the admin-token inventory. */
|
|
592
|
+
const dashboardAdminTokensListResponseSchema = z.object({
|
|
593
|
+
type: z.literal("dashboard.admin-tokens.list.response"),
|
|
594
|
+
requestId: z.string(),
|
|
595
|
+
tokens: z.array(dashboardAdminTokenSummarySchema),
|
|
596
|
+
error: z.string().optional()
|
|
597
|
+
});
|
|
553
598
|
/** Request to re-run a completed run. */
|
|
554
599
|
const runRerunRequestSchema = z.object({
|
|
555
600
|
type: z.literal("run.rerun.request"),
|
|
@@ -1787,7 +1832,18 @@ const registrationItemSchema = z.object({
|
|
|
1787
1832
|
* (legacy / global-workflow rows). Mirrors the shape attached to run
|
|
1788
1833
|
* summaries so the dashboard can reuse the same icon/label helpers.
|
|
1789
1834
|
*/
|
|
1790
|
-
source: registrationSourceSchema.nullable().optional()
|
|
1835
|
+
source: registrationSourceSchema.nullable().optional(),
|
|
1836
|
+
/**
|
|
1837
|
+
* True when this registration is a global workflow — one whose trigger
|
|
1838
|
+
* carries `repos:`, so it fires on events from other repos in the org.
|
|
1839
|
+
*
|
|
1840
|
+
* Optional because an orchestrator predating this field omits it. A reader
|
|
1841
|
+
* that needs a value for such a row derives one from `triggers[].repos`,
|
|
1842
|
+
* which is the same signal the orchestrator classifies on at registration
|
|
1843
|
+
* time. Prefer this field when present: it mirrors the `is_global` column
|
|
1844
|
+
* the dispatcher itself reads, so it cannot drift from dispatch behaviour.
|
|
1845
|
+
*/
|
|
1846
|
+
isGlobal: z.boolean().optional()
|
|
1791
1847
|
});
|
|
1792
1848
|
/** Response with workflow registrations. */
|
|
1793
1849
|
const registrationsListResponseSchema = z.object({
|
|
@@ -2035,6 +2091,7 @@ const dashboardPlatformToOrchSchema = z.discriminatedUnion("type", [
|
|
|
2035
2091
|
dashboardRunsListRequestSchema,
|
|
2036
2092
|
dashboardRunsFiltersRequestSchema,
|
|
2037
2093
|
dashboardSourcesListRequestSchema,
|
|
2094
|
+
dashboardAdminTokensListRequestSchema,
|
|
2038
2095
|
runRerunRequestSchema,
|
|
2039
2096
|
manualScheduleRequestSchema,
|
|
2040
2097
|
runCancelRequestSchema,
|
|
@@ -2112,6 +2169,7 @@ const dashboardOrchToPlatformSchema = z.discriminatedUnion("type", [
|
|
|
2112
2169
|
dashboardRunsListResponseSchema,
|
|
2113
2170
|
dashboardRunsFiltersResponseSchema,
|
|
2114
2171
|
dashboardSourcesListResponseSchema,
|
|
2172
|
+
dashboardAdminTokensListResponseSchema,
|
|
2115
2173
|
runRerunResponseSchema,
|
|
2116
2174
|
manualScheduleResponseSchema,
|
|
2117
2175
|
runCancelResponseSchema,
|
|
@@ -2358,6 +2416,26 @@ const diagnosticsInfraOrchestratorSchema = z.object({
|
|
|
2358
2416
|
adminInvocation: z.string().nullable(),
|
|
2359
2417
|
adminPath: z.string().nullable()
|
|
2360
2418
|
}),
|
|
2419
|
+
/**
|
|
2420
|
+
* Absolute host paths of this orchestrator's own config files, for an
|
|
2421
|
+
* operator who wants to inspect them.
|
|
2422
|
+
*
|
|
2423
|
+
* Optional, and every member nullable. The Platform always emits the object
|
|
2424
|
+
* — all-nulls when nothing is known — but the field is declared optional
|
|
2425
|
+
* because a customer-installed `kici` CLI validates this same schema and may
|
|
2426
|
+
* be pointed at a Platform that predates the field. Members are null rather
|
|
2427
|
+
* than absent so a reader never has to distinguish "not sent" from "not
|
|
2428
|
+
* known".
|
|
2429
|
+
*
|
|
2430
|
+
* Null for every connection served from the database rather than from a live
|
|
2431
|
+
* in-memory registry entry: these are live-host runtime paths and are not
|
|
2432
|
+
* persisted, the same treatment `deployment.adminInvocation` already gets.
|
|
2433
|
+
*/
|
|
2434
|
+
configPaths: z.object({
|
|
2435
|
+
envFile: z.string().nullable(),
|
|
2436
|
+
scalerConfig: z.string().nullable(),
|
|
2437
|
+
composeFile: z.string().nullable()
|
|
2438
|
+
}).optional(),
|
|
2361
2439
|
s3LogAccess: z.boolean().nullable().optional(),
|
|
2362
2440
|
agentCount: z.number(),
|
|
2363
2441
|
runningJobs: z.number(),
|
|
@@ -2518,6 +2596,6 @@ const DashboardResponseErrorCode = z.enum([
|
|
|
2518
2596
|
"internal_error"
|
|
2519
2597
|
]);
|
|
2520
2598
|
//#endregion
|
|
2521
|
-
export { ContextDeleteErrorCode, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, HeldRunQueueType, HeldRunStatus, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, identityLinkItemSchema, identityLinkListResponseSchema, manualScheduleRequestSchema, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, orgMemberSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, runCancelRequestSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, trustPolicyResponseSchema };
|
|
2599
|
+
export { ContextDeleteErrorCode, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, HeldRunQueueType, HeldRunStatus, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, identityLinkItemSchema, identityLinkListResponseSchema, manualScheduleRequestSchema, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, orgMemberSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, runCancelRequestSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, trustPolicyResponseSchema };
|
|
2522
2600
|
|
|
2523
2601
|
//# sourceMappingURL=dashboard.js.map
|
|
@@ -4,6 +4,11 @@ import { z } from 'zod';
|
|
|
4
4
|
*
|
|
5
5
|
* - `received` — row written before processing started (e.g. oversized payload
|
|
6
6
|
* path that records the row but defers further work to the standard pipeline).
|
|
7
|
+
* - `shed` — the ingest admission controller refused the delivery under load
|
|
8
|
+
* before it reached the pipeline. `error_message` names the shed reason. The
|
|
9
|
+
* row is a breadcrumb written at shed time so a shed delivery is telling
|
|
10
|
+
* apart from one that never arrived; a later successful overflow replay
|
|
11
|
+
* upgrades the same row to its real outcome.
|
|
7
12
|
* - `processed` — webhook was processed and at least one workflow was
|
|
8
13
|
* evaluated. `matched_count` carries how many actually matched.
|
|
9
14
|
* - `duplicate` — dedup cache rejected the delivery.
|
|
@@ -22,6 +27,7 @@ export declare const EventLogStatus: z.ZodEnum<{
|
|
|
22
27
|
lockfile_missing: "lockfile_missing";
|
|
23
28
|
processed: "processed";
|
|
24
29
|
received: "received";
|
|
30
|
+
shed: "shed";
|
|
25
31
|
}>;
|
|
26
32
|
export type EventLogStatus = z.infer<typeof EventLogStatus>;
|
|
27
33
|
/**
|
|
@@ -6,6 +6,11 @@ import { z } from "zod";
|
|
|
6
6
|
*
|
|
7
7
|
* - `received` — row written before processing started (e.g. oversized payload
|
|
8
8
|
* path that records the row but defers further work to the standard pipeline).
|
|
9
|
+
* - `shed` — the ingest admission controller refused the delivery under load
|
|
10
|
+
* before it reached the pipeline. `error_message` names the shed reason. The
|
|
11
|
+
* row is a breadcrumb written at shed time so a shed delivery is telling
|
|
12
|
+
* apart from one that never arrived; a later successful overflow replay
|
|
13
|
+
* upgrades the same row to its real outcome.
|
|
9
14
|
* - `processed` — webhook was processed and at least one workflow was
|
|
10
15
|
* evaluated. `matched_count` carries how many actually matched.
|
|
11
16
|
* - `duplicate` — dedup cache rejected the delivery.
|
|
@@ -19,6 +24,7 @@ import { z } from "zod";
|
|
|
19
24
|
*/
|
|
20
25
|
const EventLogStatus = z.enum([
|
|
21
26
|
"received",
|
|
27
|
+
"shed",
|
|
22
28
|
"processed",
|
|
23
29
|
"duplicate",
|
|
24
30
|
"lockfile_missing",
|
|
@@ -109,10 +109,24 @@ export declare const jobDispatchSchema: z.ZodObject<{
|
|
|
109
109
|
concurrencyWaitTimeoutMs: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
110
110
|
sourceTarUrl: z.ZodOptional<z.ZodString>;
|
|
111
111
|
sourceTarHash: z.ZodOptional<z.ZodString>;
|
|
112
|
+
sourceTarDigest: z.ZodOptional<z.ZodString>;
|
|
112
113
|
depsUrl: z.ZodOptional<z.ZodString>;
|
|
113
114
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
114
115
|
requestId: z.ZodOptional<z.ZodString>;
|
|
115
116
|
runPublicKey: z.ZodOptional<z.ZodString>;
|
|
117
|
+
provenanceContext: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
119
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
120
|
+
sha: z.ZodNullable<z.ZodString>;
|
|
121
|
+
workflowRef: z.ZodNullable<z.ZodString>;
|
|
122
|
+
runId: z.ZodString;
|
|
123
|
+
jobId: z.ZodString;
|
|
124
|
+
orgId: z.ZodString;
|
|
125
|
+
sourceOrigin: z.ZodString;
|
|
126
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
127
|
+
issuer: z.ZodString;
|
|
128
|
+
orchestratorId: z.ZodString;
|
|
129
|
+
}, z.core.$loose>>;
|
|
116
130
|
upstreamJobOutputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
117
131
|
upstreamJobStatuses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
118
132
|
cancelled: "cancelled";
|
|
@@ -870,10 +884,24 @@ export declare const orchestratorToAgentMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
870
884
|
concurrencyWaitTimeoutMs: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
871
885
|
sourceTarUrl: z.ZodOptional<z.ZodString>;
|
|
872
886
|
sourceTarHash: z.ZodOptional<z.ZodString>;
|
|
887
|
+
sourceTarDigest: z.ZodOptional<z.ZodString>;
|
|
873
888
|
depsUrl: z.ZodOptional<z.ZodString>;
|
|
874
889
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
875
890
|
requestId: z.ZodOptional<z.ZodString>;
|
|
876
891
|
runPublicKey: z.ZodOptional<z.ZodString>;
|
|
892
|
+
provenanceContext: z.ZodOptional<z.ZodObject<{
|
|
893
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
894
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
895
|
+
sha: z.ZodNullable<z.ZodString>;
|
|
896
|
+
workflowRef: z.ZodNullable<z.ZodString>;
|
|
897
|
+
runId: z.ZodString;
|
|
898
|
+
jobId: z.ZodString;
|
|
899
|
+
orgId: z.ZodString;
|
|
900
|
+
sourceOrigin: z.ZodString;
|
|
901
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
902
|
+
issuer: z.ZodString;
|
|
903
|
+
orchestratorId: z.ZodString;
|
|
904
|
+
}, z.core.$loose>>;
|
|
877
905
|
upstreamJobOutputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
878
906
|
upstreamJobStatuses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
879
907
|
cancelled: "cancelled";
|
|
@@ -1220,6 +1248,8 @@ export declare const agentToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
1220
1248
|
platform: z.ZodString;
|
|
1221
1249
|
arch: z.ZodString;
|
|
1222
1250
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
1251
|
+
sourceTarDigest: z.ZodOptional<z.ZodString>;
|
|
1252
|
+
siblingsDigest: z.ZodOptional<z.ZodString>;
|
|
1223
1253
|
}, z.core.$strip>, z.ZodObject<{
|
|
1224
1254
|
type: z.ZodLiteral<"cache.upload.complete">;
|
|
1225
1255
|
messageId: z.ZodString;
|
|
@@ -1233,6 +1263,8 @@ export declare const agentToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
1233
1263
|
platform: z.ZodString;
|
|
1234
1264
|
arch: z.ZodString;
|
|
1235
1265
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
1266
|
+
sourceTarDigest: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
siblingsDigest: z.ZodOptional<z.ZodString>;
|
|
1236
1268
|
}, z.core.$strip>, z.ZodObject<{
|
|
1237
1269
|
type: z.ZodLiteral<"cache.user.restore.request">;
|
|
1238
1270
|
messageId: z.ZodString;
|