@byok-sdk/protocol 0.13.0 → 0.15.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/agent-event.d.ts +126 -0
- package/dist/envelope.d.ts +58 -0
- package/dist/http-api.d.ts +117 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.js +68 -10
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +704 -139
- package/dist/version.d.ts +5 -1
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -62,6 +62,32 @@ export declare const RuntimeInfoSchema: z.ZodObject<{
|
|
|
62
62
|
}, z.core.$strip>>;
|
|
63
63
|
}, z.core.$strip>;
|
|
64
64
|
export type RuntimeInfo = z.infer<typeof RuntimeInfoSchema>;
|
|
65
|
+
/** Custom identities are disjoint from the frozen built-in runtime enum. */
|
|
66
|
+
export declare const HarnessIdSchema: z.ZodString;
|
|
67
|
+
export type HarnessId = z.infer<typeof HarnessIdSchema>;
|
|
68
|
+
export declare const HarnessInfoSchema: z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
version: z.ZodOptional<z.ZodString>;
|
|
71
|
+
capabilities: z.ZodObject<{
|
|
72
|
+
steer: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
resume: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type HarnessInfo = z.infer<typeof HarnessInfoSchema>;
|
|
80
|
+
export declare const HarnessInventorySchema: z.ZodArray<z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
version: z.ZodOptional<z.ZodString>;
|
|
83
|
+
capabilities: z.ZodObject<{
|
|
84
|
+
steer: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
resume: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
65
91
|
/** Maximum logical toolsets one daemon may advertise as locally configured. */
|
|
66
92
|
export declare const CONFIGURED_TOOLSETS_MAX_ITEMS = 64;
|
|
67
93
|
/**
|
|
@@ -117,6 +143,17 @@ export declare const ConnHelloPayloadSchema: z.ZodObject<{
|
|
|
117
143
|
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
144
|
}, z.core.$strip>>;
|
|
119
145
|
}, z.core.$strip>>>;
|
|
146
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
version: z.ZodOptional<z.ZodString>;
|
|
149
|
+
capabilities: z.ZodObject<{
|
|
150
|
+
steer: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
resume: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
+
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
}, z.core.$strip>>>;
|
|
120
157
|
configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
158
|
cursor: z.ZodOptional<z.ZodNumber>;
|
|
122
159
|
}, z.core.$strip>;
|
|
@@ -195,6 +232,7 @@ export declare const TaskOfferPayloadSchema: z.ZodObject<{
|
|
|
195
232
|
codex: "codex";
|
|
196
233
|
pi: "pi";
|
|
197
234
|
}>>;
|
|
235
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
198
236
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
199
237
|
lane: z.ZodLiteral<"subscription">;
|
|
200
238
|
runtimeId: z.ZodEnum<{
|
|
@@ -266,6 +304,7 @@ export declare const TaskOfferWithToolsetsPayloadSchema: z.ZodObject<{
|
|
|
266
304
|
codex: "codex";
|
|
267
305
|
pi: "pi";
|
|
268
306
|
}>>;
|
|
307
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
269
308
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
309
|
lane: z.ZodLiteral<"subscription">;
|
|
271
310
|
runtimeId: z.ZodEnum<{
|
|
@@ -338,6 +377,7 @@ export declare const TaskOfferForAgentPayloadSchema: z.ZodObject<{
|
|
|
338
377
|
codex: "codex";
|
|
339
378
|
pi: "pi";
|
|
340
379
|
}>>;
|
|
380
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
341
381
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
382
|
lane: z.ZodLiteral<"subscription">;
|
|
343
383
|
runtimeId: z.ZodEnum<{
|
|
@@ -414,6 +454,7 @@ export declare const TaskOfferForAgentWithEgressPayloadSchema: z.ZodObject<{
|
|
|
414
454
|
codex: "codex";
|
|
415
455
|
pi: "pi";
|
|
416
456
|
}>>;
|
|
457
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
417
458
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
418
459
|
lane: z.ZodLiteral<"subscription">;
|
|
419
460
|
runtimeId: z.ZodEnum<{
|
|
@@ -531,6 +572,7 @@ export declare const TaskOfferForAgentWithEgressFreshPayloadSchema: z.ZodObject<
|
|
|
531
572
|
codex: "codex";
|
|
532
573
|
pi: "pi";
|
|
533
574
|
}>>;
|
|
575
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
534
576
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
535
577
|
lane: z.ZodLiteral<"subscription">;
|
|
536
578
|
runtimeId: z.ZodEnum<{
|
|
@@ -948,6 +990,7 @@ export declare const TaskClaimPayloadSchema: z.ZodObject<{
|
|
|
948
990
|
codex: "codex";
|
|
949
991
|
pi: "pi";
|
|
950
992
|
}>>;
|
|
993
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
951
994
|
capabilities: z.ZodOptional<z.ZodObject<{
|
|
952
995
|
steer: z.ZodOptional<z.ZodBoolean>;
|
|
953
996
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1010,12 +1053,46 @@ export declare const TaskProgressPayloadSchema: z.ZodObject<{
|
|
|
1010
1053
|
tool: z.ZodString;
|
|
1011
1054
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
1012
1055
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
spill: z.ZodOptional<z.ZodObject<{
|
|
1057
|
+
field: z.ZodEnum<{
|
|
1058
|
+
input: "input";
|
|
1059
|
+
output: "output";
|
|
1060
|
+
}>;
|
|
1061
|
+
totalBytes: z.ZodNumber;
|
|
1062
|
+
omittedBytes: z.ZodNumber;
|
|
1063
|
+
contentType: z.ZodLiteral<"application/json">;
|
|
1064
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
1065
|
+
blobId: z.ZodString;
|
|
1066
|
+
contentHash: z.ZodString;
|
|
1067
|
+
size: z.ZodNumber;
|
|
1068
|
+
contentType: z.ZodString;
|
|
1069
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
}, z.core.$strip>>;
|
|
1071
|
+
unstoredReason: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
}, z.core.$strict>>;
|
|
1013
1073
|
}, z.core.$strip>, z.ZodObject<{
|
|
1014
1074
|
type: z.ZodLiteral<"tool_result">;
|
|
1015
1075
|
tool: z.ZodString;
|
|
1016
1076
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
1017
1077
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1018
1078
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
1079
|
+
spill: z.ZodOptional<z.ZodObject<{
|
|
1080
|
+
field: z.ZodEnum<{
|
|
1081
|
+
input: "input";
|
|
1082
|
+
output: "output";
|
|
1083
|
+
}>;
|
|
1084
|
+
totalBytes: z.ZodNumber;
|
|
1085
|
+
omittedBytes: z.ZodNumber;
|
|
1086
|
+
contentType: z.ZodLiteral<"application/json">;
|
|
1087
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
1088
|
+
blobId: z.ZodString;
|
|
1089
|
+
contentHash: z.ZodString;
|
|
1090
|
+
size: z.ZodNumber;
|
|
1091
|
+
contentType: z.ZodString;
|
|
1092
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
}, z.core.$strip>>;
|
|
1094
|
+
unstoredReason: z.ZodOptional<z.ZodString>;
|
|
1095
|
+
}, z.core.$strict>>;
|
|
1019
1096
|
}, z.core.$strip>, z.ZodObject<{
|
|
1020
1097
|
type: z.ZodLiteral<"artifact">;
|
|
1021
1098
|
name: z.ZodString;
|
|
@@ -1224,6 +1301,7 @@ export type TerminalInferenceUsage = z.infer<typeof TerminalInferenceUsageSchema
|
|
|
1224
1301
|
* see `packages/client`'s `task-runner.ts`.
|
|
1225
1302
|
*/
|
|
1226
1303
|
export declare const TaskCompletePayloadSchema: z.ZodObject<{
|
|
1304
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1227
1305
|
summary: z.ZodString;
|
|
1228
1306
|
sessionRef: z.ZodString;
|
|
1229
1307
|
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1256,6 +1334,11 @@ export declare const TaskCompletePayloadSchema: z.ZodObject<{
|
|
|
1256
1334
|
export type TaskCompletePayload = z.infer<typeof TaskCompletePayloadSchema>;
|
|
1257
1335
|
/** daemon -> server: task failed. */
|
|
1258
1336
|
export declare const TaskFailPayloadSchema: z.ZodObject<{
|
|
1337
|
+
recovery: z.ZodOptional<z.ZodObject<{
|
|
1338
|
+
kind: z.ZodLiteral<"daemon_interrupted">;
|
|
1339
|
+
offerId: z.ZodUUID;
|
|
1340
|
+
}, z.core.$strict>>;
|
|
1341
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1259
1342
|
reason: z.ZodString;
|
|
1260
1343
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1261
1344
|
usage: z.ZodOptional<z.ZodObject<{
|
|
@@ -1298,6 +1381,7 @@ export type TaskFailPayload = z.infer<typeof TaskFailPayloadSchema>;
|
|
|
1298
1381
|
* trigger that moves `Claimed`/`Running`/`AwaitApproval -> Cancelled`.
|
|
1299
1382
|
*/
|
|
1300
1383
|
export declare const TaskCancelledPayloadSchema: z.ZodObject<{
|
|
1384
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1301
1385
|
reason: z.ZodOptional<z.ZodString>;
|
|
1302
1386
|
usage: z.ZodOptional<z.ZodObject<{
|
|
1303
1387
|
runtime: z.ZodEnum<{
|
|
@@ -1367,37 +1451,8 @@ export declare const TaskApprovalResolvedPayloadSchema: z.ZodObject<{
|
|
|
1367
1451
|
at: z.ZodISODateTime;
|
|
1368
1452
|
}, z.core.$strip>;
|
|
1369
1453
|
export type TaskApprovalResolvedPayload = z.infer<typeof TaskApprovalResolvedPayloadSchema>;
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
protocolVersions: z.ZodArray<z.ZodNumber>;
|
|
1373
|
-
capabilities: z.ZodArray<z.ZodString>;
|
|
1374
|
-
deviceId: z.ZodString;
|
|
1375
|
-
productId: z.ZodString;
|
|
1376
|
-
clientVersion: z.ZodOptional<z.ZodString>;
|
|
1377
|
-
runtimes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1378
|
-
id: z.ZodEnum<{
|
|
1379
|
-
claude: "claude";
|
|
1380
|
-
codex: "codex";
|
|
1381
|
-
pi: "pi";
|
|
1382
|
-
}>;
|
|
1383
|
-
version: z.ZodOptional<z.ZodString>;
|
|
1384
|
-
authPresent: z.ZodOptional<z.ZodBoolean>;
|
|
1385
|
-
capabilities: z.ZodOptional<z.ZodObject<{
|
|
1386
|
-
steer: z.ZodOptional<z.ZodBoolean>;
|
|
1387
|
-
resume: z.ZodOptional<z.ZodBoolean>;
|
|
1388
|
-
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
1389
|
-
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
1390
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1391
|
-
}, z.core.$strip>>;
|
|
1392
|
-
}, z.core.$strip>>>;
|
|
1393
|
-
configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1394
|
-
cursor: z.ZodOptional<z.ZodNumber>;
|
|
1395
|
-
}, z.core.$strip>;
|
|
1396
|
-
readonly 'conn.ack': z.ZodObject<{
|
|
1397
|
-
protocolVersion: z.ZodNumber;
|
|
1398
|
-
capabilities: z.ZodArray<z.ZodString>;
|
|
1399
|
-
serverTime: z.ZodISODateTime;
|
|
1400
|
-
}, z.core.$strip>;
|
|
1454
|
+
/** Protocol-owned task-opening family; the wire registry consumes these same entries. */
|
|
1455
|
+
declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
1401
1456
|
readonly 'task.offer': z.ZodObject<{
|
|
1402
1457
|
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1403
1458
|
blobRef: z.ZodObject<{
|
|
@@ -1425,6 +1480,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1425
1480
|
codex: "codex";
|
|
1426
1481
|
pi: "pi";
|
|
1427
1482
|
}>>;
|
|
1483
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1428
1484
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1429
1485
|
lane: z.ZodLiteral<"subscription">;
|
|
1430
1486
|
runtimeId: z.ZodEnum<{
|
|
@@ -1485,6 +1541,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1485
1541
|
codex: "codex";
|
|
1486
1542
|
pi: "pi";
|
|
1487
1543
|
}>>;
|
|
1544
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1488
1545
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1489
1546
|
lane: z.ZodLiteral<"subscription">;
|
|
1490
1547
|
runtimeId: z.ZodEnum<{
|
|
@@ -1551,6 +1608,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1551
1608
|
codex: "codex";
|
|
1552
1609
|
pi: "pi";
|
|
1553
1610
|
}>>;
|
|
1611
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1554
1612
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1555
1613
|
lane: z.ZodLiteral<"subscription">;
|
|
1556
1614
|
runtimeId: z.ZodEnum<{
|
|
@@ -1621,6 +1679,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1621
1679
|
codex: "codex";
|
|
1622
1680
|
pi: "pi";
|
|
1623
1681
|
}>>;
|
|
1682
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1624
1683
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1625
1684
|
lane: z.ZodLiteral<"subscription">;
|
|
1626
1685
|
runtimeId: z.ZodEnum<{
|
|
@@ -1731,6 +1790,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1731
1790
|
codex: "codex";
|
|
1732
1791
|
pi: "pi";
|
|
1733
1792
|
}>>;
|
|
1793
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1734
1794
|
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1735
1795
|
lane: z.ZodLiteral<"subscription">;
|
|
1736
1796
|
runtimeId: z.ZodEnum<{
|
|
@@ -1808,122 +1868,584 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1808
1868
|
maxBytes: z.ZodNumber;
|
|
1809
1869
|
}, z.core.$strict>>;
|
|
1810
1870
|
}, z.core.$strict>;
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
receiptId: z.ZodUUID;
|
|
1834
|
-
}, z.core.$strict>;
|
|
1835
|
-
readonly 'agent.message.publish': z.ZodObject<{
|
|
1836
|
-
agentRef: z.ZodObject<{
|
|
1837
|
-
agentId: z.ZodString;
|
|
1838
|
-
profileRevision: z.ZodString;
|
|
1839
|
-
}, z.core.$strict>;
|
|
1840
|
-
sessionRef: z.ZodString;
|
|
1841
|
-
contract: z.ZodString;
|
|
1842
|
-
messageId: z.ZodUUID;
|
|
1843
|
-
cursor: z.ZodNumber;
|
|
1844
|
-
contentType: z.ZodEnum<{
|
|
1845
|
-
"text/markdown": "text/markdown";
|
|
1846
|
-
"text/plain": "text/plain";
|
|
1847
|
-
}>;
|
|
1848
|
-
body: z.ZodString;
|
|
1849
|
-
contentHash: z.ZodString;
|
|
1850
|
-
byteCount: z.ZodNumber;
|
|
1851
|
-
}, z.core.$strict>;
|
|
1852
|
-
readonly 'agent.message.disposition': z.ZodObject<{
|
|
1853
|
-
agentRef: z.ZodObject<{
|
|
1854
|
-
agentId: z.ZodString;
|
|
1855
|
-
profileRevision: z.ZodString;
|
|
1856
|
-
}, z.core.$strict>;
|
|
1857
|
-
sessionRef: z.ZodString;
|
|
1858
|
-
contract: z.ZodString;
|
|
1859
|
-
messageId: z.ZodUUID;
|
|
1860
|
-
cursor: z.ZodNumber;
|
|
1861
|
-
contentHash: z.ZodString;
|
|
1862
|
-
outcome: z.ZodEnum<{
|
|
1863
|
-
accepted: "accepted";
|
|
1864
|
-
held: "held";
|
|
1865
|
-
refused: "refused";
|
|
1866
|
-
}>;
|
|
1867
|
-
receiptId: z.ZodUUID;
|
|
1868
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1869
|
-
}, z.core.$strict>;
|
|
1870
|
-
readonly 'agent.content.read': z.ZodObject<{
|
|
1871
|
-
requestId: z.ZodUUID;
|
|
1872
|
-
surface: z.ZodEnum<{
|
|
1873
|
-
artifact: "artifact";
|
|
1874
|
-
transcript: "transcript";
|
|
1875
|
-
workspace: "workspace";
|
|
1876
|
-
}>;
|
|
1877
|
-
actor: z.ZodObject<{
|
|
1878
|
-
kind: z.ZodEnum<{
|
|
1879
|
-
agent: "agent";
|
|
1880
|
-
system: "system";
|
|
1881
|
-
user: "user";
|
|
1871
|
+
};
|
|
1872
|
+
export type TaskOfferType = keyof typeof TASK_OFFER_PAYLOAD_SCHEMAS;
|
|
1873
|
+
export declare const TASK_OFFER_TYPES: readonly TaskOfferType[];
|
|
1874
|
+
/** Classify task-opening offers without duplicating the protocol registry in consumers. */
|
|
1875
|
+
export declare function isTaskOfferType(type: string): type is TaskOfferType;
|
|
1876
|
+
export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
1877
|
+
readonly 'task.offer': z.ZodObject<{
|
|
1878
|
+
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1879
|
+
blobRef: z.ZodObject<{
|
|
1880
|
+
blobId: z.ZodString;
|
|
1881
|
+
contentHash: z.ZodString;
|
|
1882
|
+
size: z.ZodNumber;
|
|
1883
|
+
contentType: z.ZodString;
|
|
1884
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1885
|
+
}, z.core.$strip>;
|
|
1886
|
+
}, z.core.$strict>]>;
|
|
1887
|
+
policy: z.ZodObject<{
|
|
1888
|
+
mode: z.ZodEnum<{
|
|
1889
|
+
auto: "auto";
|
|
1890
|
+
confirm: "confirm";
|
|
1891
|
+
plan: "plan";
|
|
1892
|
+
readonly: "readonly";
|
|
1882
1893
|
}>;
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
profileRevision: z.ZodString;
|
|
1894
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1895
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1896
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
1897
|
+
network: z.ZodOptional<z.ZodBoolean>;
|
|
1888
1898
|
}, z.core.$strict>;
|
|
1889
|
-
|
|
1890
|
-
runtime: z.ZodEnum<{
|
|
1899
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1891
1900
|
claude: "claude";
|
|
1892
1901
|
codex: "codex";
|
|
1893
1902
|
pi: "pi";
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
+
}>>;
|
|
1904
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1905
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1906
|
+
lane: z.ZodLiteral<"subscription">;
|
|
1907
|
+
runtimeId: z.ZodEnum<{
|
|
1908
|
+
claude: "claude";
|
|
1909
|
+
codex: "codex";
|
|
1910
|
+
}>;
|
|
1911
|
+
providerId: z.ZodNull;
|
|
1912
|
+
modelId: z.ZodString;
|
|
1913
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1914
|
+
lane: z.ZodLiteral<"byok">;
|
|
1915
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1916
|
+
providerId: z.ZodString;
|
|
1917
|
+
modelId: z.ZodString;
|
|
1918
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1919
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
1920
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1921
|
+
providerProfile: z.ZodObject<{
|
|
1922
|
+
profileRef: z.ZodString;
|
|
1923
|
+
profileRevision: z.ZodString;
|
|
1924
|
+
profileHash: z.ZodString;
|
|
1925
|
+
modelId: z.ZodString;
|
|
1926
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1927
|
+
"image-input": "image-input";
|
|
1928
|
+
}>>;
|
|
1929
|
+
}, z.core.$strict>;
|
|
1930
|
+
}, z.core.$strict>], "lane">>;
|
|
1931
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
1932
|
+
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
1933
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1934
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1935
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1936
|
+
}, z.core.$strip>>;
|
|
1937
|
+
}, z.core.$strip>;
|
|
1938
|
+
readonly 'task.offer_with_toolsets': z.ZodObject<{
|
|
1939
|
+
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1940
|
+
blobRef: z.ZodObject<{
|
|
1941
|
+
blobId: z.ZodString;
|
|
1942
|
+
contentHash: z.ZodString;
|
|
1943
|
+
size: z.ZodNumber;
|
|
1944
|
+
contentType: z.ZodString;
|
|
1945
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1946
|
+
}, z.core.$strip>;
|
|
1947
|
+
}, z.core.$strict>]>;
|
|
1903
1948
|
policy: z.ZodObject<{
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
requestId: z.ZodUUID;
|
|
1910
|
-
eventId: z.ZodUUID;
|
|
1911
|
-
cursor: z.ZodNumber;
|
|
1912
|
-
surface: z.ZodEnum<{
|
|
1913
|
-
artifact: "artifact";
|
|
1914
|
-
transcript: "transcript";
|
|
1915
|
-
workspace: "workspace";
|
|
1916
|
-
}>;
|
|
1917
|
-
actor: z.ZodObject<{
|
|
1918
|
-
kind: z.ZodEnum<{
|
|
1919
|
-
agent: "agent";
|
|
1920
|
-
system: "system";
|
|
1921
|
-
user: "user";
|
|
1949
|
+
mode: z.ZodEnum<{
|
|
1950
|
+
auto: "auto";
|
|
1951
|
+
confirm: "confirm";
|
|
1952
|
+
plan: "plan";
|
|
1953
|
+
readonly: "readonly";
|
|
1922
1954
|
}>;
|
|
1923
|
-
|
|
1955
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1956
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1957
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
1958
|
+
network: z.ZodOptional<z.ZodBoolean>;
|
|
1924
1959
|
}, z.core.$strict>;
|
|
1925
|
-
|
|
1926
|
-
|
|
1960
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1961
|
+
claude: "claude";
|
|
1962
|
+
codex: "codex";
|
|
1963
|
+
pi: "pi";
|
|
1964
|
+
}>>;
|
|
1965
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1967
|
+
lane: z.ZodLiteral<"subscription">;
|
|
1968
|
+
runtimeId: z.ZodEnum<{
|
|
1969
|
+
claude: "claude";
|
|
1970
|
+
codex: "codex";
|
|
1971
|
+
}>;
|
|
1972
|
+
providerId: z.ZodNull;
|
|
1973
|
+
modelId: z.ZodString;
|
|
1974
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1975
|
+
lane: z.ZodLiteral<"byok">;
|
|
1976
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1977
|
+
providerId: z.ZodString;
|
|
1978
|
+
modelId: z.ZodString;
|
|
1979
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1980
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
1981
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1982
|
+
providerProfile: z.ZodObject<{
|
|
1983
|
+
profileRef: z.ZodString;
|
|
1984
|
+
profileRevision: z.ZodString;
|
|
1985
|
+
profileHash: z.ZodString;
|
|
1986
|
+
modelId: z.ZodString;
|
|
1987
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1988
|
+
"image-input": "image-input";
|
|
1989
|
+
}>>;
|
|
1990
|
+
}, z.core.$strict>;
|
|
1991
|
+
}, z.core.$strict>], "lane">>;
|
|
1992
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
1993
|
+
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
1994
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1995
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1996
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1997
|
+
}, z.core.$strip>>;
|
|
1998
|
+
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
1999
|
+
}, z.core.$strict>;
|
|
2000
|
+
readonly 'task.offer_for_agent': z.ZodObject<{
|
|
2001
|
+
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2002
|
+
blobRef: z.ZodObject<{
|
|
2003
|
+
blobId: z.ZodString;
|
|
2004
|
+
contentHash: z.ZodString;
|
|
2005
|
+
size: z.ZodNumber;
|
|
2006
|
+
contentType: z.ZodString;
|
|
2007
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2008
|
+
}, z.core.$strip>;
|
|
2009
|
+
}, z.core.$strict>]>;
|
|
2010
|
+
policy: z.ZodObject<{
|
|
2011
|
+
mode: z.ZodEnum<{
|
|
2012
|
+
auto: "auto";
|
|
2013
|
+
confirm: "confirm";
|
|
2014
|
+
plan: "plan";
|
|
2015
|
+
readonly: "readonly";
|
|
2016
|
+
}>;
|
|
2017
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2018
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2019
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2020
|
+
network: z.ZodOptional<z.ZodBoolean>;
|
|
2021
|
+
}, z.core.$strict>;
|
|
2022
|
+
agentRef: z.ZodObject<{
|
|
2023
|
+
agentId: z.ZodString;
|
|
2024
|
+
profileRevision: z.ZodString;
|
|
2025
|
+
}, z.core.$strict>;
|
|
2026
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2027
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2028
|
+
claude: "claude";
|
|
2029
|
+
codex: "codex";
|
|
2030
|
+
pi: "pi";
|
|
2031
|
+
}>>;
|
|
2032
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2033
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2034
|
+
lane: z.ZodLiteral<"subscription">;
|
|
2035
|
+
runtimeId: z.ZodEnum<{
|
|
2036
|
+
claude: "claude";
|
|
2037
|
+
codex: "codex";
|
|
2038
|
+
}>;
|
|
2039
|
+
providerId: z.ZodNull;
|
|
2040
|
+
modelId: z.ZodString;
|
|
2041
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2042
|
+
lane: z.ZodLiteral<"byok">;
|
|
2043
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2044
|
+
providerId: z.ZodString;
|
|
2045
|
+
modelId: z.ZodString;
|
|
2046
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2047
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
2048
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2049
|
+
providerProfile: z.ZodObject<{
|
|
2050
|
+
profileRef: z.ZodString;
|
|
2051
|
+
profileRevision: z.ZodString;
|
|
2052
|
+
profileHash: z.ZodString;
|
|
2053
|
+
modelId: z.ZodString;
|
|
2054
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2055
|
+
"image-input": "image-input";
|
|
2056
|
+
}>>;
|
|
2057
|
+
}, z.core.$strict>;
|
|
2058
|
+
}, z.core.$strict>], "lane">>;
|
|
2059
|
+
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2060
|
+
mode: z.ZodLiteral<"none">;
|
|
2061
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2062
|
+
mode: z.ZodLiteral<"result-document">;
|
|
2063
|
+
contract: z.ZodString;
|
|
2064
|
+
}, z.core.$strict>], "mode">>;
|
|
2065
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
2066
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2067
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2068
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2069
|
+
}, z.core.$strip>>;
|
|
2070
|
+
}, z.core.$strict>;
|
|
2071
|
+
readonly 'task.offer_for_agent_with_egress': z.ZodObject<{
|
|
2072
|
+
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2073
|
+
blobRef: z.ZodObject<{
|
|
2074
|
+
blobId: z.ZodString;
|
|
2075
|
+
contentHash: z.ZodString;
|
|
2076
|
+
size: z.ZodNumber;
|
|
2077
|
+
contentType: z.ZodString;
|
|
2078
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2079
|
+
}, z.core.$strip>;
|
|
2080
|
+
}, z.core.$strict>]>;
|
|
2081
|
+
policy: z.ZodObject<{
|
|
2082
|
+
mode: z.ZodEnum<{
|
|
2083
|
+
auto: "auto";
|
|
2084
|
+
confirm: "confirm";
|
|
2085
|
+
plan: "plan";
|
|
2086
|
+
readonly: "readonly";
|
|
2087
|
+
}>;
|
|
2088
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2089
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2090
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2091
|
+
network: z.ZodOptional<z.ZodBoolean>;
|
|
2092
|
+
}, z.core.$strict>;
|
|
2093
|
+
agentRef: z.ZodObject<{
|
|
2094
|
+
agentId: z.ZodString;
|
|
2095
|
+
profileRevision: z.ZodString;
|
|
2096
|
+
}, z.core.$strict>;
|
|
2097
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2098
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2099
|
+
claude: "claude";
|
|
2100
|
+
codex: "codex";
|
|
2101
|
+
pi: "pi";
|
|
2102
|
+
}>>;
|
|
2103
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2104
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2105
|
+
lane: z.ZodLiteral<"subscription">;
|
|
2106
|
+
runtimeId: z.ZodEnum<{
|
|
2107
|
+
claude: "claude";
|
|
2108
|
+
codex: "codex";
|
|
2109
|
+
}>;
|
|
2110
|
+
providerId: z.ZodNull;
|
|
2111
|
+
modelId: z.ZodString;
|
|
2112
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2113
|
+
lane: z.ZodLiteral<"byok">;
|
|
2114
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2115
|
+
providerId: z.ZodString;
|
|
2116
|
+
modelId: z.ZodString;
|
|
2117
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2118
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
2119
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2120
|
+
providerProfile: z.ZodObject<{
|
|
2121
|
+
profileRef: z.ZodString;
|
|
2122
|
+
profileRevision: z.ZodString;
|
|
2123
|
+
profileHash: z.ZodString;
|
|
2124
|
+
modelId: z.ZodString;
|
|
2125
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2126
|
+
"image-input": "image-input";
|
|
2127
|
+
}>>;
|
|
2128
|
+
}, z.core.$strict>;
|
|
2129
|
+
}, z.core.$strict>], "lane">>;
|
|
2130
|
+
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2131
|
+
mode: z.ZodLiteral<"none">;
|
|
2132
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2133
|
+
mode: z.ZodLiteral<"result-document">;
|
|
2134
|
+
contract: z.ZodString;
|
|
2135
|
+
}, z.core.$strict>], "mode">>;
|
|
2136
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2137
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2138
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2139
|
+
}, z.core.$strip>>;
|
|
2140
|
+
sessionRef: z.ZodString;
|
|
2141
|
+
egressPolicy: z.ZodObject<{
|
|
2142
|
+
policyRevision: z.ZodString;
|
|
2143
|
+
activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2144
|
+
mode: z.ZodLiteral<"metadata-status">;
|
|
2145
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2146
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2147
|
+
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
2148
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2149
|
+
maxCoalesceMs: z.ZodNumber;
|
|
2150
|
+
maxEventBytes: z.ZodNumber;
|
|
2151
|
+
}, z.core.$strict>], "mode">;
|
|
2152
|
+
reliable: z.ZodObject<{
|
|
2153
|
+
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2154
|
+
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2155
|
+
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2156
|
+
}, z.core.$strict>;
|
|
2157
|
+
transfers: z.ZodObject<{
|
|
2158
|
+
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2159
|
+
maxBytes: z.ZodNumber;
|
|
2160
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2161
|
+
}, z.core.$strict>]>;
|
|
2162
|
+
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2163
|
+
maxBytes: z.ZodNumber;
|
|
2164
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2165
|
+
}, z.core.$strict>]>;
|
|
2166
|
+
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2167
|
+
maxBytes: z.ZodNumber;
|
|
2168
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2169
|
+
}, z.core.$strict>]>;
|
|
2170
|
+
}, z.core.$strict>;
|
|
2171
|
+
}, z.core.$strict>;
|
|
2172
|
+
messageEgress: z.ZodOptional<z.ZodObject<{
|
|
2173
|
+
mode: z.ZodLiteral<"required">;
|
|
2174
|
+
contract: z.ZodString;
|
|
2175
|
+
contentType: z.ZodEnum<{
|
|
2176
|
+
"text/markdown": "text/markdown";
|
|
2177
|
+
"text/plain": "text/plain";
|
|
2178
|
+
}>;
|
|
2179
|
+
maxBytes: z.ZodNumber;
|
|
2180
|
+
}, z.core.$strict>>;
|
|
2181
|
+
}, z.core.$strict>;
|
|
2182
|
+
readonly 'task.offer_for_agent_with_egress_fresh': z.ZodObject<{
|
|
2183
|
+
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2184
|
+
blobRef: z.ZodObject<{
|
|
2185
|
+
blobId: z.ZodString;
|
|
2186
|
+
contentHash: z.ZodString;
|
|
2187
|
+
size: z.ZodNumber;
|
|
2188
|
+
contentType: z.ZodString;
|
|
2189
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2190
|
+
}, z.core.$strip>;
|
|
2191
|
+
}, z.core.$strict>]>;
|
|
2192
|
+
policy: z.ZodObject<{
|
|
2193
|
+
mode: z.ZodEnum<{
|
|
2194
|
+
auto: "auto";
|
|
2195
|
+
confirm: "confirm";
|
|
2196
|
+
plan: "plan";
|
|
2197
|
+
readonly: "readonly";
|
|
2198
|
+
}>;
|
|
2199
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2200
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2201
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
2202
|
+
network: z.ZodOptional<z.ZodBoolean>;
|
|
2203
|
+
}, z.core.$strict>;
|
|
2204
|
+
agentRef: z.ZodObject<{
|
|
2205
|
+
agentId: z.ZodString;
|
|
2206
|
+
profileRevision: z.ZodString;
|
|
2207
|
+
}, z.core.$strict>;
|
|
2208
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2209
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2210
|
+
claude: "claude";
|
|
2211
|
+
codex: "codex";
|
|
2212
|
+
pi: "pi";
|
|
2213
|
+
}>>;
|
|
2214
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2215
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2216
|
+
lane: z.ZodLiteral<"subscription">;
|
|
2217
|
+
runtimeId: z.ZodEnum<{
|
|
2218
|
+
claude: "claude";
|
|
2219
|
+
codex: "codex";
|
|
2220
|
+
}>;
|
|
2221
|
+
providerId: z.ZodNull;
|
|
2222
|
+
modelId: z.ZodString;
|
|
2223
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2224
|
+
lane: z.ZodLiteral<"byok">;
|
|
2225
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2226
|
+
providerId: z.ZodString;
|
|
2227
|
+
modelId: z.ZodString;
|
|
2228
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2229
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
2230
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2231
|
+
providerProfile: z.ZodObject<{
|
|
2232
|
+
profileRef: z.ZodString;
|
|
2233
|
+
profileRevision: z.ZodString;
|
|
2234
|
+
profileHash: z.ZodString;
|
|
2235
|
+
modelId: z.ZodString;
|
|
2236
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2237
|
+
"image-input": "image-input";
|
|
2238
|
+
}>>;
|
|
2239
|
+
}, z.core.$strict>;
|
|
2240
|
+
}, z.core.$strict>], "lane">>;
|
|
2241
|
+
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2242
|
+
mode: z.ZodLiteral<"none">;
|
|
2243
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2244
|
+
mode: z.ZodLiteral<"result-document">;
|
|
2245
|
+
contract: z.ZodString;
|
|
2246
|
+
}, z.core.$strict>], "mode">>;
|
|
2247
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2248
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2249
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2250
|
+
}, z.core.$strip>>;
|
|
2251
|
+
egressPolicy: z.ZodObject<{
|
|
2252
|
+
policyRevision: z.ZodString;
|
|
2253
|
+
activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2254
|
+
mode: z.ZodLiteral<"metadata-status">;
|
|
2255
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2256
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2257
|
+
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
2258
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2259
|
+
maxCoalesceMs: z.ZodNumber;
|
|
2260
|
+
maxEventBytes: z.ZodNumber;
|
|
2261
|
+
}, z.core.$strict>], "mode">;
|
|
2262
|
+
reliable: z.ZodObject<{
|
|
2263
|
+
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2264
|
+
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2265
|
+
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2266
|
+
}, z.core.$strict>;
|
|
2267
|
+
transfers: z.ZodObject<{
|
|
2268
|
+
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2269
|
+
maxBytes: z.ZodNumber;
|
|
2270
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2271
|
+
}, z.core.$strict>]>;
|
|
2272
|
+
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2273
|
+
maxBytes: z.ZodNumber;
|
|
2274
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2275
|
+
}, z.core.$strict>]>;
|
|
2276
|
+
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2277
|
+
maxBytes: z.ZodNumber;
|
|
2278
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2279
|
+
}, z.core.$strict>]>;
|
|
2280
|
+
}, z.core.$strict>;
|
|
2281
|
+
}, z.core.$strict>;
|
|
2282
|
+
messageEgress: z.ZodOptional<z.ZodObject<{
|
|
2283
|
+
mode: z.ZodLiteral<"required">;
|
|
2284
|
+
contract: z.ZodString;
|
|
2285
|
+
contentType: z.ZodEnum<{
|
|
2286
|
+
"text/markdown": "text/markdown";
|
|
2287
|
+
"text/plain": "text/plain";
|
|
2288
|
+
}>;
|
|
2289
|
+
maxBytes: z.ZodNumber;
|
|
2290
|
+
}, z.core.$strict>>;
|
|
2291
|
+
}, z.core.$strict>;
|
|
2292
|
+
readonly 'conn.hello': z.ZodObject<{
|
|
2293
|
+
protocolVersions: z.ZodArray<z.ZodNumber>;
|
|
2294
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
2295
|
+
deviceId: z.ZodString;
|
|
2296
|
+
productId: z.ZodString;
|
|
2297
|
+
clientVersion: z.ZodOptional<z.ZodString>;
|
|
2298
|
+
runtimes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2299
|
+
id: z.ZodEnum<{
|
|
2300
|
+
claude: "claude";
|
|
2301
|
+
codex: "codex";
|
|
2302
|
+
pi: "pi";
|
|
2303
|
+
}>;
|
|
2304
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2305
|
+
authPresent: z.ZodOptional<z.ZodBoolean>;
|
|
2306
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
2307
|
+
steer: z.ZodOptional<z.ZodBoolean>;
|
|
2308
|
+
resume: z.ZodOptional<z.ZodBoolean>;
|
|
2309
|
+
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
2310
|
+
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
2311
|
+
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2312
|
+
}, z.core.$strip>>;
|
|
2313
|
+
}, z.core.$strip>>>;
|
|
2314
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2315
|
+
id: z.ZodString;
|
|
2316
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2317
|
+
capabilities: z.ZodObject<{
|
|
2318
|
+
steer: z.ZodOptional<z.ZodBoolean>;
|
|
2319
|
+
resume: z.ZodOptional<z.ZodBoolean>;
|
|
2320
|
+
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
2321
|
+
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
2322
|
+
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2323
|
+
}, z.core.$strip>;
|
|
2324
|
+
}, z.core.$strip>>>;
|
|
2325
|
+
configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2326
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
2327
|
+
}, z.core.$strip>;
|
|
2328
|
+
readonly 'conn.ack': z.ZodObject<{
|
|
2329
|
+
protocolVersion: z.ZodNumber;
|
|
2330
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
2331
|
+
serverTime: z.ZodISODateTime;
|
|
2332
|
+
}, z.core.$strip>;
|
|
2333
|
+
readonly 'agent.egress.reliable': z.ZodObject<{
|
|
2334
|
+
agentRef: z.ZodObject<{
|
|
2335
|
+
agentId: z.ZodString;
|
|
2336
|
+
profileRevision: z.ZodString;
|
|
2337
|
+
}, z.core.$strict>;
|
|
2338
|
+
sessionRef: z.ZodString;
|
|
2339
|
+
policyRevision: z.ZodString;
|
|
2340
|
+
eventId: z.ZodUUID;
|
|
2341
|
+
cursor: z.ZodNumber;
|
|
2342
|
+
payload: z.ZodJSONSchema;
|
|
2343
|
+
contentHash: z.ZodString;
|
|
2344
|
+
byteCount: z.ZodNumber;
|
|
2345
|
+
}, z.core.$strict>;
|
|
2346
|
+
readonly 'agent.egress.ack': z.ZodObject<{
|
|
2347
|
+
agentRef: z.ZodObject<{
|
|
2348
|
+
agentId: z.ZodString;
|
|
2349
|
+
profileRevision: z.ZodString;
|
|
2350
|
+
}, z.core.$strict>;
|
|
2351
|
+
sessionRef: z.ZodString;
|
|
2352
|
+
policyRevision: z.ZodString;
|
|
2353
|
+
eventId: z.ZodUUID;
|
|
2354
|
+
cursor: z.ZodNumber;
|
|
2355
|
+
receiptId: z.ZodUUID;
|
|
2356
|
+
}, z.core.$strict>;
|
|
2357
|
+
readonly 'agent.message.publish': z.ZodObject<{
|
|
2358
|
+
agentRef: z.ZodObject<{
|
|
2359
|
+
agentId: z.ZodString;
|
|
2360
|
+
profileRevision: z.ZodString;
|
|
2361
|
+
}, z.core.$strict>;
|
|
2362
|
+
sessionRef: z.ZodString;
|
|
2363
|
+
contract: z.ZodString;
|
|
2364
|
+
messageId: z.ZodUUID;
|
|
2365
|
+
cursor: z.ZodNumber;
|
|
2366
|
+
contentType: z.ZodEnum<{
|
|
2367
|
+
"text/markdown": "text/markdown";
|
|
2368
|
+
"text/plain": "text/plain";
|
|
2369
|
+
}>;
|
|
2370
|
+
body: z.ZodString;
|
|
2371
|
+
contentHash: z.ZodString;
|
|
2372
|
+
byteCount: z.ZodNumber;
|
|
2373
|
+
}, z.core.$strict>;
|
|
2374
|
+
readonly 'agent.message.disposition': z.ZodObject<{
|
|
2375
|
+
agentRef: z.ZodObject<{
|
|
2376
|
+
agentId: z.ZodString;
|
|
2377
|
+
profileRevision: z.ZodString;
|
|
2378
|
+
}, z.core.$strict>;
|
|
2379
|
+
sessionRef: z.ZodString;
|
|
2380
|
+
contract: z.ZodString;
|
|
2381
|
+
messageId: z.ZodUUID;
|
|
2382
|
+
cursor: z.ZodNumber;
|
|
2383
|
+
contentHash: z.ZodString;
|
|
2384
|
+
outcome: z.ZodEnum<{
|
|
2385
|
+
accepted: "accepted";
|
|
2386
|
+
held: "held";
|
|
2387
|
+
refused: "refused";
|
|
2388
|
+
}>;
|
|
2389
|
+
receiptId: z.ZodUUID;
|
|
2390
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
2391
|
+
}, z.core.$strict>;
|
|
2392
|
+
readonly 'agent.content.read': z.ZodObject<{
|
|
2393
|
+
requestId: z.ZodUUID;
|
|
2394
|
+
surface: z.ZodEnum<{
|
|
2395
|
+
artifact: "artifact";
|
|
2396
|
+
transcript: "transcript";
|
|
2397
|
+
workspace: "workspace";
|
|
2398
|
+
}>;
|
|
2399
|
+
actor: z.ZodObject<{
|
|
2400
|
+
kind: z.ZodEnum<{
|
|
2401
|
+
agent: "agent";
|
|
2402
|
+
system: "system";
|
|
2403
|
+
user: "user";
|
|
2404
|
+
}>;
|
|
2405
|
+
id: z.ZodString;
|
|
2406
|
+
}, z.core.$strict>;
|
|
2407
|
+
agentRef: z.ZodObject<{
|
|
2408
|
+
agentId: z.ZodString;
|
|
2409
|
+
profileRevision: z.ZodString;
|
|
2410
|
+
}, z.core.$strict>;
|
|
2411
|
+
sessionRef: z.ZodString;
|
|
2412
|
+
runtime: z.ZodEnum<{
|
|
2413
|
+
claude: "claude";
|
|
2414
|
+
codex: "codex";
|
|
2415
|
+
pi: "pi";
|
|
2416
|
+
}>;
|
|
2417
|
+
cwd: z.ZodString;
|
|
2418
|
+
policyRevision: z.ZodString;
|
|
2419
|
+
target: z.ZodString;
|
|
2420
|
+
mimeType: z.ZodString;
|
|
2421
|
+
decodeAs: z.ZodEnum<{
|
|
2422
|
+
bytes: "bytes";
|
|
2423
|
+
utf8: "utf8";
|
|
2424
|
+
}>;
|
|
2425
|
+
policy: z.ZodObject<{
|
|
2426
|
+
maxBytes: z.ZodNumber;
|
|
2427
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2428
|
+
}, z.core.$strict>;
|
|
2429
|
+
}, z.core.$strict>;
|
|
2430
|
+
readonly 'agent.content.receipt': z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2431
|
+
requestId: z.ZodUUID;
|
|
2432
|
+
eventId: z.ZodUUID;
|
|
2433
|
+
cursor: z.ZodNumber;
|
|
2434
|
+
surface: z.ZodEnum<{
|
|
2435
|
+
artifact: "artifact";
|
|
2436
|
+
transcript: "transcript";
|
|
2437
|
+
workspace: "workspace";
|
|
2438
|
+
}>;
|
|
2439
|
+
actor: z.ZodObject<{
|
|
2440
|
+
kind: z.ZodEnum<{
|
|
2441
|
+
agent: "agent";
|
|
2442
|
+
system: "system";
|
|
2443
|
+
user: "user";
|
|
2444
|
+
}>;
|
|
2445
|
+
id: z.ZodString;
|
|
2446
|
+
}, z.core.$strict>;
|
|
2447
|
+
agentRef: z.ZodObject<{
|
|
2448
|
+
agentId: z.ZodString;
|
|
1927
2449
|
profileRevision: z.ZodString;
|
|
1928
2450
|
}, z.core.$strict>;
|
|
1929
2451
|
sessionRef: z.ZodString;
|
|
@@ -2043,6 +2565,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2043
2565
|
codex: "codex";
|
|
2044
2566
|
pi: "pi";
|
|
2045
2567
|
}>>;
|
|
2568
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2046
2569
|
capabilities: z.ZodOptional<z.ZodObject<{
|
|
2047
2570
|
steer: z.ZodOptional<z.ZodBoolean>;
|
|
2048
2571
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2070,12 +2593,46 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2070
2593
|
tool: z.ZodString;
|
|
2071
2594
|
input: z.ZodOptional<z.ZodUnknown>;
|
|
2072
2595
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
2596
|
+
spill: z.ZodOptional<z.ZodObject<{
|
|
2597
|
+
field: z.ZodEnum<{
|
|
2598
|
+
input: "input";
|
|
2599
|
+
output: "output";
|
|
2600
|
+
}>;
|
|
2601
|
+
totalBytes: z.ZodNumber;
|
|
2602
|
+
omittedBytes: z.ZodNumber;
|
|
2603
|
+
contentType: z.ZodLiteral<"application/json">;
|
|
2604
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
2605
|
+
blobId: z.ZodString;
|
|
2606
|
+
contentHash: z.ZodString;
|
|
2607
|
+
size: z.ZodNumber;
|
|
2608
|
+
contentType: z.ZodString;
|
|
2609
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2610
|
+
}, z.core.$strip>>;
|
|
2611
|
+
unstoredReason: z.ZodOptional<z.ZodString>;
|
|
2612
|
+
}, z.core.$strict>>;
|
|
2073
2613
|
}, z.core.$strip>, z.ZodObject<{
|
|
2074
2614
|
type: z.ZodLiteral<"tool_result">;
|
|
2075
2615
|
tool: z.ZodString;
|
|
2076
2616
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
2077
2617
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
2078
2618
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
2619
|
+
spill: z.ZodOptional<z.ZodObject<{
|
|
2620
|
+
field: z.ZodEnum<{
|
|
2621
|
+
input: "input";
|
|
2622
|
+
output: "output";
|
|
2623
|
+
}>;
|
|
2624
|
+
totalBytes: z.ZodNumber;
|
|
2625
|
+
omittedBytes: z.ZodNumber;
|
|
2626
|
+
contentType: z.ZodLiteral<"application/json">;
|
|
2627
|
+
blob: z.ZodOptional<z.ZodObject<{
|
|
2628
|
+
blobId: z.ZodString;
|
|
2629
|
+
contentHash: z.ZodString;
|
|
2630
|
+
size: z.ZodNumber;
|
|
2631
|
+
contentType: z.ZodString;
|
|
2632
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2633
|
+
}, z.core.$strip>>;
|
|
2634
|
+
unstoredReason: z.ZodOptional<z.ZodString>;
|
|
2635
|
+
}, z.core.$strict>>;
|
|
2079
2636
|
}, z.core.$strip>, z.ZodObject<{
|
|
2080
2637
|
type: z.ZodLiteral<"artifact">;
|
|
2081
2638
|
name: z.ZodString;
|
|
@@ -2116,6 +2673,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2116
2673
|
approvalId: z.ZodOptional<z.ZodString>;
|
|
2117
2674
|
}, z.core.$strip>;
|
|
2118
2675
|
readonly 'task.complete': z.ZodObject<{
|
|
2676
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2119
2677
|
summary: z.ZodString;
|
|
2120
2678
|
sessionRef: z.ZodString;
|
|
2121
2679
|
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2146,6 +2704,11 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2146
2704
|
}, z.core.$strict>>;
|
|
2147
2705
|
}, z.core.$strip>;
|
|
2148
2706
|
readonly 'task.fail': z.ZodObject<{
|
|
2707
|
+
recovery: z.ZodOptional<z.ZodObject<{
|
|
2708
|
+
kind: z.ZodLiteral<"daemon_interrupted">;
|
|
2709
|
+
offerId: z.ZodUUID;
|
|
2710
|
+
}, z.core.$strict>>;
|
|
2711
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2149
2712
|
reason: z.ZodString;
|
|
2150
2713
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2151
2714
|
usage: z.ZodOptional<z.ZodObject<{
|
|
@@ -2168,6 +2731,7 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
2168
2731
|
}, z.core.$strict>>;
|
|
2169
2732
|
}, z.core.$strip>;
|
|
2170
2733
|
readonly 'task.cancelled': z.ZodObject<{
|
|
2734
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2171
2735
|
reason: z.ZodOptional<z.ZodString>;
|
|
2172
2736
|
usage: z.ZodOptional<z.ZodObject<{
|
|
2173
2737
|
runtime: z.ZodEnum<{
|
|
@@ -2221,3 +2785,4 @@ export declare const SERVER_TO_DAEMON_TYPES: readonly ["conn.ack", "task.offer",
|
|
|
2221
2785
|
* handler or counted `accepted` on the `/byok/messages` wire.
|
|
2222
2786
|
*/
|
|
2223
2787
|
export declare const DAEMON_TO_SERVER_TYPES: readonly ["task.claim", "task.started", "task.decline", "task.progress", "task.artifact", "task.await_approval", "task.complete", "task.fail", "task.cancelled", "task.approval_resolved", "agent.egress.reliable", "agent.message.publish", "agent.content.receipt"];
|
|
2788
|
+
export {};
|