@kici-dev/engine 0.6.1 → 0.8.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 +11 -6
- 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 +136 -0
- package/dist/protocol/messages/dashboard.js +70 -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 +46 -0
- package/dist/protocol/messages/orchestrator-agent.js +66 -7
- 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/provider/lock-file-fetcher.d.ts +8 -0
- 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>;
|
|
@@ -4367,6 +4442,7 @@ export declare const testRelayRunStatusResponseSchema: z.ZodObject<{
|
|
|
4367
4442
|
status: z.ZodString;
|
|
4368
4443
|
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4369
4444
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4445
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4370
4446
|
}, z.core.$strip>>>;
|
|
4371
4447
|
done: z.ZodOptional<z.ZodBoolean>;
|
|
4372
4448
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -4842,6 +4918,35 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
4842
4918
|
}, z.core.$strip>], "type">;
|
|
4843
4919
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
4844
4920
|
cursor: z.ZodOptional<z.ZodString>;
|
|
4921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4922
|
+
type: z.ZodLiteral<"dashboard.admin-tokens.list">;
|
|
4923
|
+
requestId: z.ZodString;
|
|
4924
|
+
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4925
|
+
type: z.ZodLiteral<"user">;
|
|
4926
|
+
sub: z.ZodString;
|
|
4927
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
4928
|
+
patId: z.ZodString;
|
|
4929
|
+
label: z.ZodString;
|
|
4930
|
+
}, z.core.$strip>>;
|
|
4931
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4932
|
+
type: z.ZodLiteral<"api_key">;
|
|
4933
|
+
keyId: z.ZodString;
|
|
4934
|
+
ownerSub: z.ZodString;
|
|
4935
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
4936
|
+
label: z.ZodString;
|
|
4937
|
+
}, z.core.$strip>>;
|
|
4938
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4939
|
+
type: z.ZodLiteral<"service_account">;
|
|
4940
|
+
id: z.ZodString;
|
|
4941
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4942
|
+
type: z.ZodLiteral<"platform_operator">;
|
|
4943
|
+
sub: z.ZodString;
|
|
4944
|
+
reason: z.ZodString;
|
|
4945
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
4946
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4947
|
+
type: z.ZodLiteral<"system">;
|
|
4948
|
+
component: z.ZodString;
|
|
4949
|
+
}, z.core.$strip>], "type">;
|
|
4845
4950
|
}, z.core.$strip>, z.ZodObject<{
|
|
4846
4951
|
type: z.ZodLiteral<"run.rerun.request">;
|
|
4847
4952
|
requestId: z.ZodString;
|
|
@@ -6348,6 +6453,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
6348
6453
|
lockfile_missing: "lockfile_missing";
|
|
6349
6454
|
processed: "processed";
|
|
6350
6455
|
received: "received";
|
|
6456
|
+
shed: "shed";
|
|
6351
6457
|
}>>;
|
|
6352
6458
|
fromTimestamp: z.ZodOptional<z.ZodString>;
|
|
6353
6459
|
toTimestamp: z.ZodOptional<z.ZodString>;
|
|
@@ -6684,6 +6790,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
6684
6790
|
actorId: z.ZodOptional<z.ZodString>;
|
|
6685
6791
|
action: z.ZodOptional<z.ZodEnum<{
|
|
6686
6792
|
"access_log.list.read": "access_log.list.read";
|
|
6793
|
+
"admin_tokens.list.read": "admin_tokens.list.read";
|
|
6687
6794
|
archive_chunk: "archive_chunk";
|
|
6688
6795
|
"artifacts.read": "artifacts.read";
|
|
6689
6796
|
"attestation.retry": "attestation.retry";
|
|
@@ -7582,6 +7689,21 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
7582
7689
|
}, z.core.$strip>>;
|
|
7583
7690
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
7584
7691
|
error: z.ZodOptional<z.ZodString>;
|
|
7692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7693
|
+
type: z.ZodLiteral<"dashboard.admin-tokens.list.response">;
|
|
7694
|
+
requestId: z.ZodString;
|
|
7695
|
+
tokens: z.ZodArray<z.ZodObject<{
|
|
7696
|
+
id: z.ZodString;
|
|
7697
|
+
label: z.ZodString;
|
|
7698
|
+
role: z.ZodString;
|
|
7699
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
7700
|
+
routingKey: z.ZodNullable<z.ZodString>;
|
|
7701
|
+
createdAt: z.ZodString;
|
|
7702
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
7703
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
7704
|
+
revoked: z.ZodBoolean;
|
|
7705
|
+
}, z.core.$strip>>;
|
|
7706
|
+
error: z.ZodOptional<z.ZodString>;
|
|
7585
7707
|
}, z.core.$strip>, z.ZodObject<{
|
|
7586
7708
|
type: z.ZodLiteral<"run.rerun.response">;
|
|
7587
7709
|
requestId: z.ZodString;
|
|
@@ -8237,6 +8359,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8237
8359
|
lockfile_missing: "lockfile_missing";
|
|
8238
8360
|
processed: "processed";
|
|
8239
8361
|
received: "received";
|
|
8362
|
+
shed: "shed";
|
|
8240
8363
|
}>;
|
|
8241
8364
|
matchedCount: z.ZodNumber;
|
|
8242
8365
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -8286,6 +8409,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8286
8409
|
lockfile_missing: "lockfile_missing";
|
|
8287
8410
|
processed: "processed";
|
|
8288
8411
|
received: "received";
|
|
8412
|
+
shed: "shed";
|
|
8289
8413
|
}>;
|
|
8290
8414
|
matchedCount: z.ZodNumber;
|
|
8291
8415
|
runId: z.ZodNullable<z.ZodString>;
|
|
@@ -8414,6 +8538,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8414
8538
|
actorDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8415
8539
|
action: z.ZodEnum<{
|
|
8416
8540
|
"access_log.list.read": "access_log.list.read";
|
|
8541
|
+
"admin_tokens.list.read": "admin_tokens.list.read";
|
|
8417
8542
|
archive_chunk: "archive_chunk";
|
|
8418
8543
|
"artifacts.read": "artifacts.read";
|
|
8419
8544
|
"attestation.retry": "attestation.retry";
|
|
@@ -8566,6 +8691,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8566
8691
|
status: z.ZodString;
|
|
8567
8692
|
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8568
8693
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8694
|
+
durationMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8569
8695
|
}, z.core.$strip>>>;
|
|
8570
8696
|
done: z.ZodOptional<z.ZodBoolean>;
|
|
8571
8697
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -9015,6 +9141,11 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
|
|
|
9015
9141
|
adminInvocation: z.ZodNullable<z.ZodString>;
|
|
9016
9142
|
adminPath: z.ZodNullable<z.ZodString>;
|
|
9017
9143
|
}, z.core.$strip>;
|
|
9144
|
+
configPaths: z.ZodOptional<z.ZodObject<{
|
|
9145
|
+
envFile: z.ZodNullable<z.ZodString>;
|
|
9146
|
+
scalerConfig: z.ZodNullable<z.ZodString>;
|
|
9147
|
+
composeFile: z.ZodNullable<z.ZodString>;
|
|
9148
|
+
}, z.core.$strip>>;
|
|
9018
9149
|
s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
9019
9150
|
agentCount: z.ZodNumber;
|
|
9020
9151
|
runningJobs: z.ZodNumber;
|
|
@@ -9125,6 +9256,11 @@ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
|
|
|
9125
9256
|
adminInvocation: z.ZodNullable<z.ZodString>;
|
|
9126
9257
|
adminPath: z.ZodNullable<z.ZodString>;
|
|
9127
9258
|
}, z.core.$strip>;
|
|
9259
|
+
configPaths: z.ZodOptional<z.ZodObject<{
|
|
9260
|
+
envFile: z.ZodNullable<z.ZodString>;
|
|
9261
|
+
scalerConfig: z.ZodNullable<z.ZodString>;
|
|
9262
|
+
composeFile: z.ZodNullable<z.ZodString>;
|
|
9263
|
+
}, z.core.$strip>>;
|
|
9128
9264
|
s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
9129
9265
|
agentCount: z.ZodNumber;
|
|
9130
9266
|
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"),
|
|
@@ -1995,7 +2040,8 @@ const testRelayRunStatusResponseSchema = z.object({
|
|
|
1995
2040
|
jobName: z.string(),
|
|
1996
2041
|
status: z.string(),
|
|
1997
2042
|
exitCode: z.number().nullable().optional(),
|
|
1998
|
-
errorMessage: z.string().nullable().optional()
|
|
2043
|
+
errorMessage: z.string().nullable().optional(),
|
|
2044
|
+
durationMs: z.number().nullable().optional()
|
|
1999
2045
|
})).optional(),
|
|
2000
2046
|
done: z.boolean().optional(),
|
|
2001
2047
|
error: z.string().optional()
|
|
@@ -2046,6 +2092,7 @@ const dashboardPlatformToOrchSchema = z.discriminatedUnion("type", [
|
|
|
2046
2092
|
dashboardRunsListRequestSchema,
|
|
2047
2093
|
dashboardRunsFiltersRequestSchema,
|
|
2048
2094
|
dashboardSourcesListRequestSchema,
|
|
2095
|
+
dashboardAdminTokensListRequestSchema,
|
|
2049
2096
|
runRerunRequestSchema,
|
|
2050
2097
|
manualScheduleRequestSchema,
|
|
2051
2098
|
runCancelRequestSchema,
|
|
@@ -2123,6 +2170,7 @@ const dashboardOrchToPlatformSchema = z.discriminatedUnion("type", [
|
|
|
2123
2170
|
dashboardRunsListResponseSchema,
|
|
2124
2171
|
dashboardRunsFiltersResponseSchema,
|
|
2125
2172
|
dashboardSourcesListResponseSchema,
|
|
2173
|
+
dashboardAdminTokensListResponseSchema,
|
|
2126
2174
|
runRerunResponseSchema,
|
|
2127
2175
|
manualScheduleResponseSchema,
|
|
2128
2176
|
runCancelResponseSchema,
|
|
@@ -2369,6 +2417,26 @@ const diagnosticsInfraOrchestratorSchema = z.object({
|
|
|
2369
2417
|
adminInvocation: z.string().nullable(),
|
|
2370
2418
|
adminPath: z.string().nullable()
|
|
2371
2419
|
}),
|
|
2420
|
+
/**
|
|
2421
|
+
* Absolute host paths of this orchestrator's own config files, for an
|
|
2422
|
+
* operator who wants to inspect them.
|
|
2423
|
+
*
|
|
2424
|
+
* Optional, and every member nullable. The Platform always emits the object
|
|
2425
|
+
* — all-nulls when nothing is known — but the field is declared optional
|
|
2426
|
+
* because a customer-installed `kici` CLI validates this same schema and may
|
|
2427
|
+
* be pointed at a Platform that predates the field. Members are null rather
|
|
2428
|
+
* than absent so a reader never has to distinguish "not sent" from "not
|
|
2429
|
+
* known".
|
|
2430
|
+
*
|
|
2431
|
+
* Null for every connection served from the database rather than from a live
|
|
2432
|
+
* in-memory registry entry: these are live-host runtime paths and are not
|
|
2433
|
+
* persisted, the same treatment `deployment.adminInvocation` already gets.
|
|
2434
|
+
*/
|
|
2435
|
+
configPaths: z.object({
|
|
2436
|
+
envFile: z.string().nullable(),
|
|
2437
|
+
scalerConfig: z.string().nullable(),
|
|
2438
|
+
composeFile: z.string().nullable()
|
|
2439
|
+
}).optional(),
|
|
2372
2440
|
s3LogAccess: z.boolean().nullable().optional(),
|
|
2373
2441
|
agentCount: z.number(),
|
|
2374
2442
|
runningJobs: z.number(),
|
|
@@ -2529,6 +2597,6 @@ const DashboardResponseErrorCode = z.enum([
|
|
|
2529
2597
|
"internal_error"
|
|
2530
2598
|
]);
|
|
2531
2599
|
//#endregion
|
|
2532
|
-
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 };
|
|
2600
|
+
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 };
|
|
2533
2601
|
|
|
2534
2602
|
//# 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";
|
|
@@ -766,6 +780,16 @@ export declare const fleetLogsRequestSchema: z.ZodObject<{
|
|
|
766
780
|
logWindowHours: z.ZodNumber;
|
|
767
781
|
maxBytes: z.ZodNumber;
|
|
768
782
|
}, z.core.$strip>;
|
|
783
|
+
/**
|
|
784
|
+
* The orchestrator dropped the agent's last frame because the connection's
|
|
785
|
+
* rate limiter refused it. Sent instead of processing the frame; the agent
|
|
786
|
+
* should wait `retryAfterMs` before sending more. A sustained overrun closes
|
|
787
|
+
* the connection instead.
|
|
788
|
+
*/
|
|
789
|
+
export declare const rateLimitWarningSchema: z.ZodObject<{
|
|
790
|
+
type: z.ZodLiteral<"rate.limit.warning">;
|
|
791
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
792
|
+
}, z.core.$strip>;
|
|
769
793
|
/** One base64 frame of an agent's mini-bundle ZIP. */
|
|
770
794
|
export declare const fleetBundleChunkSchema: z.ZodObject<{
|
|
771
795
|
type: z.ZodLiteral<"fleet.bundle.chunk">;
|
|
@@ -870,10 +894,24 @@ export declare const orchestratorToAgentMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
870
894
|
concurrencyWaitTimeoutMs: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
871
895
|
sourceTarUrl: z.ZodOptional<z.ZodString>;
|
|
872
896
|
sourceTarHash: z.ZodOptional<z.ZodString>;
|
|
897
|
+
sourceTarDigest: z.ZodOptional<z.ZodString>;
|
|
873
898
|
depsUrl: z.ZodOptional<z.ZodString>;
|
|
874
899
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
875
900
|
requestId: z.ZodOptional<z.ZodString>;
|
|
876
901
|
runPublicKey: z.ZodOptional<z.ZodString>;
|
|
902
|
+
provenanceContext: z.ZodOptional<z.ZodObject<{
|
|
903
|
+
repository: z.ZodNullable<z.ZodString>;
|
|
904
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
905
|
+
sha: z.ZodNullable<z.ZodString>;
|
|
906
|
+
workflowRef: z.ZodNullable<z.ZodString>;
|
|
907
|
+
runId: z.ZodString;
|
|
908
|
+
jobId: z.ZodString;
|
|
909
|
+
orgId: z.ZodString;
|
|
910
|
+
sourceOrigin: z.ZodString;
|
|
911
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
912
|
+
issuer: z.ZodString;
|
|
913
|
+
orchestratorId: z.ZodString;
|
|
914
|
+
}, z.core.$loose>>;
|
|
877
915
|
upstreamJobOutputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
878
916
|
upstreamJobStatuses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
879
917
|
cancelled: "cancelled";
|
|
@@ -1066,6 +1104,9 @@ export declare const orchestratorToAgentMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
1066
1104
|
rejected: "rejected";
|
|
1067
1105
|
}>;
|
|
1068
1106
|
reason: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1108
|
+
type: z.ZodLiteral<"rate.limit.warning">;
|
|
1109
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
1069
1110
|
}, z.core.$strip>], "type">;
|
|
1070
1111
|
/** All messages that flow from Agent to Orchestrator. */
|
|
1071
1112
|
export declare const agentToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1220,6 +1261,8 @@ export declare const agentToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
1220
1261
|
platform: z.ZodString;
|
|
1221
1262
|
arch: z.ZodString;
|
|
1222
1263
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
sourceTarDigest: z.ZodOptional<z.ZodString>;
|
|
1265
|
+
siblingsDigest: z.ZodOptional<z.ZodString>;
|
|
1223
1266
|
}, z.core.$strip>, z.ZodObject<{
|
|
1224
1267
|
type: z.ZodLiteral<"cache.upload.complete">;
|
|
1225
1268
|
messageId: z.ZodString;
|
|
@@ -1233,6 +1276,8 @@ export declare const agentToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
1233
1276
|
platform: z.ZodString;
|
|
1234
1277
|
arch: z.ZodString;
|
|
1235
1278
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
1279
|
+
sourceTarDigest: z.ZodOptional<z.ZodString>;
|
|
1280
|
+
siblingsDigest: z.ZodOptional<z.ZodString>;
|
|
1236
1281
|
}, z.core.$strip>, z.ZodObject<{
|
|
1237
1282
|
type: z.ZodLiteral<"cache.user.restore.request">;
|
|
1238
1283
|
messageId: z.ZodString;
|
|
@@ -1398,6 +1443,7 @@ export type ArtifactsDownloadRequest = z.infer<typeof artifactsDownloadRequestSc
|
|
|
1398
1443
|
export type ArtifactsDownloadResponse = z.infer<typeof artifactsDownloadResponseSchema>;
|
|
1399
1444
|
export type FleetLogsRequest = z.infer<typeof fleetLogsRequestSchema>;
|
|
1400
1445
|
export type FleetBundleChunk = z.infer<typeof fleetBundleChunkSchema>;
|
|
1446
|
+
export type RateLimitWarning = z.infer<typeof rateLimitWarningSchema>;
|
|
1401
1447
|
export type FleetBundleError = z.infer<typeof fleetBundleErrorSchema>;
|
|
1402
1448
|
export type ScalerClaimCredentials = z.infer<typeof scalerClaimCredentialsSchema>;
|
|
1403
1449
|
export type ScalerClaimCredentialsResponse = z.infer<typeof scalerClaimCredentialsResponseSchema>;
|