@byok-sdk/protocol 0.29.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capability-constants.d.ts +29 -0
- package/dist/codec.d.ts +56 -0
- package/dist/constants.js +27 -2
- package/dist/constants.js.map +1 -1
- package/dist/e2ee-member.d.ts +159 -0
- package/dist/envelope.d.ts +18 -1416
- package/dist/http-api.d.ts +13 -1415
- package/dist/index.d.ts +7 -3
- package/dist/index.js +493 -13
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +1074 -1549
- package/dist/sealed-payload.d.ts +219 -0
- package/dist/sealed-split-table.d.ts +181 -0
- package/dist/version.d.ts +1 -1
- package/dist/wire-additions.d.ts +4 -3
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ProviderProvisioningAvailablePayloadSchema } from './provider-provisioning';
|
|
3
|
+
import { E2eeKeyPackageAvailablePayloadSchema } from './e2ee-member';
|
|
2
4
|
import { type PlainJsonCheck } from './plain-json';
|
|
3
5
|
export declare const RuntimeIdSchema: z.ZodEnum<{
|
|
4
6
|
claude: "claude";
|
|
@@ -197,6 +199,8 @@ export type DispatchSelection = z.infer<typeof DispatchSelectionSchema>;
|
|
|
197
199
|
* envelope's `task_id` (M1 gap #7 — single source of truth for routing).
|
|
198
200
|
*/
|
|
199
201
|
export declare const TaskOfferPayloadSchema: z.ZodObject<{
|
|
202
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
203
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
200
204
|
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
201
205
|
blobRef: z.ZodObject<{
|
|
202
206
|
blobId: z.ZodString;
|
|
@@ -258,6 +262,8 @@ export declare const RequiredToolsetsSchema: z.ZodArray<z.ZodString>;
|
|
|
258
262
|
* strict because every field here affects execution authority.
|
|
259
263
|
*/
|
|
260
264
|
export declare const TaskOfferWithToolsetsPayloadSchema: z.ZodObject<{
|
|
265
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
266
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
261
267
|
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
262
268
|
blobRef: z.ZodObject<{
|
|
263
269
|
blobId: z.ZodString;
|
|
@@ -321,17 +327,36 @@ export type TaskOfferWithToolsetsPayload = z.infer<typeof TaskOfferWithToolsetsP
|
|
|
321
327
|
*/
|
|
322
328
|
export declare const AgentHomeAccessSchema: z.ZodLiteral<"memory-reader">;
|
|
323
329
|
export type AgentHomeAccess = z.infer<typeof AgentHomeAccessSchema>;
|
|
330
|
+
/**
|
|
331
|
+
* The `agentMemory` of an ordinary Agent offer: the prepared modes plus
|
|
332
|
+
* `read-if-admitted` and `read-write-if-admitted`. When the daemon admits the
|
|
333
|
+
* memory MCP they run as `read` and `read-write`; when it does not, both run as
|
|
334
|
+
* `none`. A host sends each only to a device that advertises
|
|
335
|
+
* `agent-memory-read-if-admitted` or `agent-memory-read-write-if-admitted`. A
|
|
336
|
+
* `memory-reader` Attempt cannot select `read-write-if-admitted`. Prepared
|
|
337
|
+
* offers refuse both.
|
|
338
|
+
*/
|
|
339
|
+
export declare const AgentMemorySelectionSchema: z.ZodEnum<{
|
|
340
|
+
none: "none";
|
|
341
|
+
read: "read";
|
|
342
|
+
"read-if-admitted": "read-if-admitted";
|
|
343
|
+
"read-write": "read-write";
|
|
344
|
+
"read-write-if-admitted": "read-write-if-admitted";
|
|
345
|
+
}>;
|
|
346
|
+
export type AgentMemorySelection = z.infer<typeof AgentMemorySelectionSchema>;
|
|
324
347
|
/**
|
|
325
348
|
* Strict additive offer for a durable host-owned Agent. An older daemon that
|
|
326
349
|
* does not advertise `agent-home-contract` skips this distinct message type
|
|
327
350
|
* instead of stripping identity and applying legacy workspace semantics.
|
|
328
351
|
*
|
|
329
|
-
* `agentMemory` selects the Agent memory of this one task
|
|
330
|
-
*
|
|
331
|
-
* to a device that advertises `agent-memory-selection`. The
|
|
332
|
-
* replaces it with its own required selection.
|
|
352
|
+
* `agentMemory` selects the Agent memory of this one task (see
|
|
353
|
+
* {@link AgentMemorySelectionSchema}). Absent keeps the daemon admission. A
|
|
354
|
+
* host sends it only to a device that advertises `agent-memory-selection`. The
|
|
355
|
+
* prepared offer replaces it with its own required selection.
|
|
333
356
|
*/
|
|
334
357
|
export declare const TaskOfferForAgentPayloadSchema: z.ZodObject<{
|
|
358
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
359
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
335
360
|
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
336
361
|
blobRef: z.ZodObject<{
|
|
337
362
|
blobId: z.ZodString;
|
|
@@ -349,7 +374,9 @@ export declare const TaskOfferForAgentPayloadSchema: z.ZodObject<{
|
|
|
349
374
|
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
350
375
|
none: "none";
|
|
351
376
|
read: "read";
|
|
377
|
+
"read-if-admitted": "read-if-admitted";
|
|
352
378
|
"read-write": "read-write";
|
|
379
|
+
"read-write-if-admitted": "read-write-if-admitted";
|
|
353
380
|
}>>;
|
|
354
381
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
355
382
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
@@ -404,6 +431,8 @@ export type TaskOfferForAgentPayload = z.infer<typeof TaskOfferForAgentPayloadSc
|
|
|
404
431
|
* with an unconsumed egress declaration.
|
|
405
432
|
*/
|
|
406
433
|
export declare const TaskOfferForAgentWithEgressPayloadSchema: z.ZodObject<{
|
|
434
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
435
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
407
436
|
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
408
437
|
blobRef: z.ZodObject<{
|
|
409
438
|
blobId: z.ZodString;
|
|
@@ -421,7 +450,9 @@ export declare const TaskOfferForAgentWithEgressPayloadSchema: z.ZodObject<{
|
|
|
421
450
|
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
422
451
|
none: "none";
|
|
423
452
|
read: "read";
|
|
453
|
+
"read-if-admitted": "read-if-admitted";
|
|
424
454
|
"read-write": "read-write";
|
|
455
|
+
"read-write-if-admitted": "read-write-if-admitted";
|
|
425
456
|
}>>;
|
|
426
457
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
427
458
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
@@ -513,6 +544,8 @@ export type TaskOfferForAgentWithEgressPayload = z.infer<typeof TaskOfferForAgen
|
|
|
513
544
|
* interpreted as a fresh execution by an older daemon.
|
|
514
545
|
*/
|
|
515
546
|
export declare const TaskOfferForAgentWithEgressFreshPayloadSchema: z.ZodObject<{
|
|
547
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
548
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
516
549
|
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
517
550
|
blobRef: z.ZodObject<{
|
|
518
551
|
blobId: z.ZodString;
|
|
@@ -530,7 +563,9 @@ export declare const TaskOfferForAgentWithEgressFreshPayloadSchema: z.ZodObject<
|
|
|
530
563
|
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
531
564
|
none: "none";
|
|
532
565
|
read: "read";
|
|
566
|
+
"read-if-admitted": "read-if-admitted";
|
|
533
567
|
"read-write": "read-write";
|
|
568
|
+
"read-write-if-admitted": "read-write-if-admitted";
|
|
534
569
|
}>>;
|
|
535
570
|
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
536
571
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
@@ -635,6 +670,8 @@ export type TaskOfferForAgentWithEgressFreshPayload = z.infer<typeof TaskOfferFo
|
|
|
635
670
|
* and declines non-retryably on any difference; nothing here is authority.
|
|
636
671
|
*/
|
|
637
672
|
export declare const TaskOfferPreparedPayloadSchema: z.ZodObject<{
|
|
673
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
674
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
638
675
|
agentRef: z.ZodObject<{
|
|
639
676
|
agentId: z.ZodString;
|
|
640
677
|
profileRevision: z.ZodString;
|
|
@@ -1188,6 +1225,8 @@ export declare const TaskCancelPayloadSchema: z.ZodObject<{
|
|
|
1188
1225
|
export type TaskCancelPayload = z.infer<typeof TaskCancelPayloadSchema>;
|
|
1189
1226
|
/** server -> daemon: inject steering text into a running task. */
|
|
1190
1227
|
export declare const TaskSteerPayloadSchema: z.ZodObject<{
|
|
1228
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
1229
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
1191
1230
|
text: z.ZodString;
|
|
1192
1231
|
}, z.core.$strip>;
|
|
1193
1232
|
export type TaskSteerPayload = z.infer<typeof TaskSteerPayloadSchema>;
|
|
@@ -1258,21 +1297,13 @@ export type TaskClaimPayload = z.infer<typeof TaskClaimPayloadSchema>;
|
|
|
1258
1297
|
export declare const TaskStartedPayloadSchema: z.ZodObject<{}, z.core.$strip>;
|
|
1259
1298
|
export type TaskStartedPayload = z.infer<typeof TaskStartedPayloadSchema>;
|
|
1260
1299
|
/**
|
|
1261
|
-
*
|
|
1262
|
-
* no
|
|
1263
|
-
*
|
|
1264
|
-
*
|
|
1265
|
-
* Decision (see docs/protocol.md "Declined vs. Failed" for the full
|
|
1266
|
-
* writeup): declining does *not* introduce a new `Declined` terminal state.
|
|
1267
|
-
* It maps onto the existing `Failed` state via a new `Offered -> Failed`
|
|
1268
|
-
* transition. `reason`/`retryable` intentionally mirror `TaskFailPayload`
|
|
1269
|
-
* semantics, because a pre-claim decline and a post-claim failure are the same
|
|
1270
|
-
* outcome from the dispatcher's point of view (this attempt produced no
|
|
1271
|
-
* result; here's whether retrying — e.g. offering to a different device —
|
|
1272
|
-
* makes sense), and keeping the state machine minimal avoids forking every
|
|
1273
|
-
* terminal-state consumer into "Failed or Declined, handle both".
|
|
1300
|
+
* #654: a sealed decline code names a fixed, non-retryable outcome and
|
|
1301
|
+
* carries no content, so its `reason` is the code itself. A free-text reason
|
|
1302
|
+
* or `retryable: true` never goes with it.
|
|
1274
1303
|
*/
|
|
1275
1304
|
export declare const TaskDeclinePayloadSchema: z.ZodObject<{
|
|
1305
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
1306
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
1276
1307
|
reason: z.ZodString;
|
|
1277
1308
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1278
1309
|
agentRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -1282,6 +1313,10 @@ export declare const TaskDeclinePayloadSchema: z.ZodObject<{
|
|
|
1282
1313
|
code: z.ZodOptional<z.ZodEnum<{
|
|
1283
1314
|
agent_home_reader_busy: "agent_home_reader_busy";
|
|
1284
1315
|
agent_home_writer_busy: "agent_home_writer_busy";
|
|
1316
|
+
sealed_content_mac_mismatch: "sealed_content_mac_mismatch";
|
|
1317
|
+
sealed_key_unavailable: "sealed_key_unavailable";
|
|
1318
|
+
sealed_open_failed: "sealed_open_failed";
|
|
1319
|
+
sealing_policy_mismatch: "sealing_policy_mismatch";
|
|
1285
1320
|
}>>;
|
|
1286
1321
|
}, z.core.$strip>;
|
|
1287
1322
|
export type TaskDeclinePayload = z.infer<typeof TaskDeclinePayloadSchema>;
|
|
@@ -1297,6 +1332,8 @@ export type TaskDeclinePayload = z.infer<typeof TaskDeclinePayloadSchema>;
|
|
|
1297
1332
|
* unknowns instead of choking on them.
|
|
1298
1333
|
*/
|
|
1299
1334
|
export declare const TaskProgressPayloadSchema: z.ZodObject<{
|
|
1335
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
1336
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
1300
1337
|
seq: z.ZodNumber;
|
|
1301
1338
|
events: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1302
1339
|
type: z.ZodLiteral<"progress">;
|
|
@@ -1386,6 +1423,8 @@ export declare const TaskProgressPayloadSchema: z.ZodObject<{
|
|
|
1386
1423
|
export type TaskProgressPayload = z.infer<typeof TaskProgressPayloadSchema>;
|
|
1387
1424
|
/** daemon -> server: an artifact produced by the task, inline or by blob ref. */
|
|
1388
1425
|
export declare const TaskArtifactPayloadSchema: z.ZodObject<{
|
|
1426
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
1427
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
1389
1428
|
name: z.ZodString;
|
|
1390
1429
|
contentType: z.ZodString;
|
|
1391
1430
|
inline: z.ZodOptional<z.ZodString>;
|
|
@@ -1415,6 +1454,8 @@ export type TaskArtifactPayload = z.infer<typeof TaskArtifactPayloadSchema>;
|
|
|
1415
1454
|
* pending" — the same behavior every server had before this field existed.
|
|
1416
1455
|
*/
|
|
1417
1456
|
export declare const TaskAwaitApprovalPayloadSchema: z.ZodObject<{
|
|
1457
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
1458
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
1418
1459
|
summary: z.ZodString;
|
|
1419
1460
|
approvalId: z.ZodOptional<z.ZodString>;
|
|
1420
1461
|
}, z.core.$strip>;
|
|
@@ -1630,6 +1671,8 @@ export type TerminalAgentHomeMemoryChange = z.infer<typeof TerminalAgentHomeMemo
|
|
|
1630
1671
|
* `RESULT_OUTCOME_MAX_BYTES`).
|
|
1631
1672
|
*/
|
|
1632
1673
|
export declare const TaskCompletePayloadSchema: z.ZodObject<{
|
|
1674
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
1675
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
1633
1676
|
harnessId: z.ZodOptional<z.ZodString>;
|
|
1634
1677
|
summary: z.ZodString;
|
|
1635
1678
|
finalMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -1682,8 +1725,52 @@ export declare const TaskCompletePayloadSchema: z.ZodObject<{
|
|
|
1682
1725
|
}, z.core.$strict>], "outcome">>;
|
|
1683
1726
|
}, z.core.$strip>;
|
|
1684
1727
|
export type TaskCompletePayload = z.infer<typeof TaskCompletePayloadSchema>;
|
|
1728
|
+
/** A closed runtime failure class (#869). `unknown` means the runtime gave no structured evidence. */
|
|
1729
|
+
export declare const RuntimeFailureClassSchema: z.ZodEnum<{
|
|
1730
|
+
auth: "auth";
|
|
1731
|
+
billing: "billing";
|
|
1732
|
+
input_too_large: "input_too_large";
|
|
1733
|
+
invalid_request: "invalid_request";
|
|
1734
|
+
limit_reached: "limit_reached";
|
|
1735
|
+
model_unavailable: "model_unavailable";
|
|
1736
|
+
output_schema: "output_schema";
|
|
1737
|
+
overloaded: "overloaded";
|
|
1738
|
+
provider: "provider";
|
|
1739
|
+
quota: "quota";
|
|
1740
|
+
rate_limited: "rate_limited";
|
|
1741
|
+
runtime_exited: "runtime_exited";
|
|
1742
|
+
unknown: "unknown";
|
|
1743
|
+
}>;
|
|
1744
|
+
export type RuntimeFailureClass = z.infer<typeof RuntimeFailureClassSchema>;
|
|
1745
|
+
/**
|
|
1746
|
+
* The machine-readable failure of a `task.fail` (#869); `reason` stays display
|
|
1747
|
+
* text. `resetsAt` (ISO 8601 UTC) exists only on `quota`, and only when the
|
|
1748
|
+
* runtime reported when the limit resets.
|
|
1749
|
+
*/
|
|
1750
|
+
export declare const TaskFailureSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1751
|
+
class: z.ZodLiteral<"quota">;
|
|
1752
|
+
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1753
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1754
|
+
class: z.ZodEnum<{
|
|
1755
|
+
auth: "auth";
|
|
1756
|
+
billing: "billing";
|
|
1757
|
+
input_too_large: "input_too_large";
|
|
1758
|
+
invalid_request: "invalid_request";
|
|
1759
|
+
limit_reached: "limit_reached";
|
|
1760
|
+
model_unavailable: "model_unavailable";
|
|
1761
|
+
output_schema: "output_schema";
|
|
1762
|
+
overloaded: "overloaded";
|
|
1763
|
+
provider: "provider";
|
|
1764
|
+
rate_limited: "rate_limited";
|
|
1765
|
+
runtime_exited: "runtime_exited";
|
|
1766
|
+
unknown: "unknown";
|
|
1767
|
+
}>;
|
|
1768
|
+
}, z.core.$strict>]>;
|
|
1769
|
+
export type TaskFailure = z.infer<typeof TaskFailureSchema>;
|
|
1685
1770
|
/** daemon -> server: task failed. */
|
|
1686
1771
|
export declare const TaskFailPayloadSchema: z.ZodObject<{
|
|
1772
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
1773
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
1687
1774
|
recovery: z.ZodOptional<z.ZodObject<{
|
|
1688
1775
|
kind: z.ZodLiteral<"daemon_interrupted">;
|
|
1689
1776
|
offerId: z.ZodUUID;
|
|
@@ -1691,6 +1778,25 @@ export declare const TaskFailPayloadSchema: z.ZodObject<{
|
|
|
1691
1778
|
harnessId: z.ZodOptional<z.ZodString>;
|
|
1692
1779
|
reason: z.ZodString;
|
|
1693
1780
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1781
|
+
failure: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1782
|
+
class: z.ZodLiteral<"quota">;
|
|
1783
|
+
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1784
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1785
|
+
class: z.ZodEnum<{
|
|
1786
|
+
auth: "auth";
|
|
1787
|
+
billing: "billing";
|
|
1788
|
+
input_too_large: "input_too_large";
|
|
1789
|
+
invalid_request: "invalid_request";
|
|
1790
|
+
limit_reached: "limit_reached";
|
|
1791
|
+
model_unavailable: "model_unavailable";
|
|
1792
|
+
output_schema: "output_schema";
|
|
1793
|
+
overloaded: "overloaded";
|
|
1794
|
+
provider: "provider";
|
|
1795
|
+
rate_limited: "rate_limited";
|
|
1796
|
+
runtime_exited: "runtime_exited";
|
|
1797
|
+
unknown: "unknown";
|
|
1798
|
+
}>;
|
|
1799
|
+
}, z.core.$strict>]>>;
|
|
1694
1800
|
usage: z.ZodOptional<z.ZodObject<{
|
|
1695
1801
|
runtime: z.ZodEnum<{
|
|
1696
1802
|
claude: "claude";
|
|
@@ -1751,6 +1857,8 @@ export type TaskFailPayload = z.infer<typeof TaskFailPayloadSchema>;
|
|
|
1751
1857
|
* trigger that moves `Claimed`/`Running`/`AwaitApproval -> Cancelled`.
|
|
1752
1858
|
*/
|
|
1753
1859
|
export declare const TaskCancelledPayloadSchema: z.ZodObject<{
|
|
1860
|
+
sealed: z.ZodOptional<z.ZodNever>;
|
|
1861
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
1754
1862
|
harnessId: z.ZodOptional<z.ZodString>;
|
|
1755
1863
|
reason: z.ZodOptional<z.ZodString>;
|
|
1756
1864
|
usage: z.ZodOptional<z.ZodObject<{
|
|
@@ -1836,1629 +1944,1046 @@ export declare const TaskApprovalResolvedPayloadSchema: z.ZodObject<{
|
|
|
1836
1944
|
at: z.ZodISODateTime;
|
|
1837
1945
|
}, z.core.$strip>;
|
|
1838
1946
|
export type TaskApprovalResolvedPayload = z.infer<typeof TaskApprovalResolvedPayloadSchema>;
|
|
1839
|
-
/**
|
|
1840
|
-
declare const
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
}, z.core.$strict>]>;
|
|
1851
|
-
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1852
|
-
claude: "claude";
|
|
1853
|
-
codex: "codex";
|
|
1854
|
-
pi: "pi";
|
|
1855
|
-
}>>;
|
|
1856
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
1857
|
-
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1858
|
-
lane: z.ZodLiteral<"subscription">;
|
|
1859
|
-
runtimeId: z.ZodEnum<{
|
|
1860
|
-
claude: "claude";
|
|
1861
|
-
codex: "codex";
|
|
1862
|
-
}>;
|
|
1863
|
-
providerId: z.ZodNull;
|
|
1864
|
-
modelId: z.ZodString;
|
|
1865
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1866
|
-
lane: z.ZodLiteral<"byok">;
|
|
1867
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
1868
|
-
providerId: z.ZodString;
|
|
1869
|
-
modelId: z.ZodString;
|
|
1870
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1871
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
1872
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
1873
|
-
providerProfile: z.ZodObject<{
|
|
1874
|
-
profileRef: z.ZodString;
|
|
1875
|
-
profileRevision: z.ZodString;
|
|
1876
|
-
profileHash: z.ZodString;
|
|
1877
|
-
modelId: z.ZodString;
|
|
1878
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1879
|
-
"image-input": "image-input";
|
|
1880
|
-
}>>;
|
|
1881
|
-
}, z.core.$strict>;
|
|
1882
|
-
}, z.core.$strict>], "lane">>;
|
|
1883
|
-
sessionRef: z.ZodOptional<z.ZodString>;
|
|
1884
|
-
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
1885
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
1886
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1887
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1888
|
-
}, z.core.$strip>>;
|
|
1889
|
-
}, z.core.$strip>;
|
|
1890
|
-
readonly 'task.offer_with_toolsets': z.ZodObject<{
|
|
1891
|
-
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1892
|
-
blobRef: z.ZodObject<{
|
|
1893
|
-
blobId: z.ZodString;
|
|
1894
|
-
contentHash: z.ZodString;
|
|
1895
|
-
size: z.ZodNumber;
|
|
1896
|
-
contentType: z.ZodString;
|
|
1897
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1898
|
-
}, z.core.$strip>;
|
|
1899
|
-
}, z.core.$strict>]>;
|
|
1900
|
-
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1947
|
+
/** server -> daemon: `task.offer` of a sealed task. */
|
|
1948
|
+
export declare const TaskOfferSealedPayloadSchema: z.ZodObject<{
|
|
1949
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1950
|
+
claude: "claude";
|
|
1951
|
+
codex: "codex";
|
|
1952
|
+
pi: "pi";
|
|
1953
|
+
}>>;
|
|
1954
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
1955
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1956
|
+
lane: z.ZodLiteral<"subscription">;
|
|
1957
|
+
runtimeId: z.ZodEnum<{
|
|
1901
1958
|
claude: "claude";
|
|
1902
1959
|
codex: "codex";
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
1917
|
-
providerId: z.ZodString;
|
|
1918
|
-
modelId: z.ZodString;
|
|
1919
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1920
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
1921
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
1922
|
-
providerProfile: z.ZodObject<{
|
|
1923
|
-
profileRef: z.ZodString;
|
|
1924
|
-
profileRevision: z.ZodString;
|
|
1925
|
-
profileHash: z.ZodString;
|
|
1926
|
-
modelId: z.ZodString;
|
|
1927
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1928
|
-
"image-input": "image-input";
|
|
1929
|
-
}>>;
|
|
1930
|
-
}, z.core.$strict>;
|
|
1931
|
-
}, z.core.$strict>], "lane">>;
|
|
1932
|
-
sessionRef: z.ZodOptional<z.ZodString>;
|
|
1933
|
-
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
1934
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
1935
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1936
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1937
|
-
}, z.core.$strip>>;
|
|
1938
|
-
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
1939
|
-
}, z.core.$strict>;
|
|
1940
|
-
readonly 'task.offer_for_agent': z.ZodObject<{
|
|
1941
|
-
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1942
|
-
blobRef: z.ZodObject<{
|
|
1943
|
-
blobId: z.ZodString;
|
|
1944
|
-
contentHash: z.ZodString;
|
|
1945
|
-
size: z.ZodNumber;
|
|
1946
|
-
contentType: z.ZodString;
|
|
1947
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1948
|
-
}, z.core.$strip>;
|
|
1949
|
-
}, z.core.$strict>]>;
|
|
1950
|
-
agentRef: z.ZodObject<{
|
|
1951
|
-
agentId: z.ZodString;
|
|
1960
|
+
}>;
|
|
1961
|
+
providerId: z.ZodNull;
|
|
1962
|
+
modelId: z.ZodString;
|
|
1963
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1964
|
+
lane: z.ZodLiteral<"byok">;
|
|
1965
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1966
|
+
providerId: z.ZodString;
|
|
1967
|
+
modelId: z.ZodString;
|
|
1968
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1969
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
1970
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1971
|
+
providerProfile: z.ZodObject<{
|
|
1972
|
+
profileRef: z.ZodString;
|
|
1952
1973
|
profileRevision: z.ZodString;
|
|
1974
|
+
profileHash: z.ZodString;
|
|
1975
|
+
modelId: z.ZodString;
|
|
1976
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1977
|
+
"image-input": "image-input";
|
|
1978
|
+
}>>;
|
|
1953
1979
|
}, z.core.$strict>;
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1980
|
+
}, z.core.$strict>], "lane">>;
|
|
1981
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
1982
|
+
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
1983
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1984
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1985
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1986
|
+
}, z.core.$strip>>;
|
|
1987
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1988
|
+
blobRef: z.ZodObject<{
|
|
1989
|
+
blobId: z.ZodString;
|
|
1990
|
+
contentHash: z.ZodString;
|
|
1991
|
+
size: z.ZodNumber;
|
|
1992
|
+
contentType: z.ZodString;
|
|
1993
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1994
|
+
}, z.core.$strip>;
|
|
1995
|
+
}, z.core.$strict>]>>;
|
|
1996
|
+
sealing: z.ZodObject<{
|
|
1997
|
+
scopeId: z.ZodString;
|
|
1998
|
+
epoch: z.ZodNumber;
|
|
1999
|
+
categories: z.ZodArray<z.ZodEnum<{
|
|
2000
|
+
"task-input": "task-input";
|
|
2001
|
+
"task-output": "task-output";
|
|
1965
2002
|
}>>;
|
|
1966
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
1967
|
-
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1968
|
-
lane: z.ZodLiteral<"subscription">;
|
|
1969
|
-
runtimeId: z.ZodEnum<{
|
|
1970
|
-
claude: "claude";
|
|
1971
|
-
codex: "codex";
|
|
1972
|
-
}>;
|
|
1973
|
-
providerId: z.ZodNull;
|
|
1974
|
-
modelId: z.ZodString;
|
|
1975
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1976
|
-
lane: z.ZodLiteral<"byok">;
|
|
1977
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
1978
|
-
providerId: z.ZodString;
|
|
1979
|
-
modelId: z.ZodString;
|
|
1980
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1981
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
1982
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
1983
|
-
providerProfile: z.ZodObject<{
|
|
1984
|
-
profileRef: z.ZodString;
|
|
1985
|
-
profileRevision: z.ZodString;
|
|
1986
|
-
profileHash: z.ZodString;
|
|
1987
|
-
modelId: z.ZodString;
|
|
1988
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1989
|
-
"image-input": "image-input";
|
|
1990
|
-
}>>;
|
|
1991
|
-
}, z.core.$strict>;
|
|
1992
|
-
}, z.core.$strict>], "lane">>;
|
|
1993
|
-
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1994
|
-
mode: z.ZodLiteral<"none">;
|
|
1995
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1996
|
-
mode: z.ZodLiteral<"result-document">;
|
|
1997
|
-
contract: z.ZodString;
|
|
1998
|
-
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
1999
|
-
}, z.core.$strict>], "mode">>;
|
|
2000
|
-
sessionRef: z.ZodOptional<z.ZodString>;
|
|
2001
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2002
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2003
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2004
|
-
}, z.core.$strip>>;
|
|
2005
2003
|
}, z.core.$strict>;
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
}, z.core.$strip>;
|
|
2015
|
-
}, z.core.$strict>]>;
|
|
2016
|
-
agentRef: z.ZodObject<{
|
|
2017
|
-
agentId: z.ZodString;
|
|
2018
|
-
profileRevision: z.ZodString;
|
|
2004
|
+
sealed: z.ZodOptional<z.ZodObject<{
|
|
2005
|
+
v: z.ZodLiteral<1>;
|
|
2006
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2007
|
+
category: z.ZodLiteral<"task-input">;
|
|
2008
|
+
scope: z.ZodObject<{
|
|
2009
|
+
id: z.ZodString;
|
|
2010
|
+
epoch: z.ZodNumber;
|
|
2011
|
+
keyId: z.ZodString;
|
|
2019
2012
|
}, z.core.$strict>;
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
read: "read";
|
|
2024
|
-
"read-write": "read-write";
|
|
2025
|
-
}>>;
|
|
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
|
-
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2065
|
-
}, z.core.$strict>], "mode">>;
|
|
2066
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2067
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2068
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2069
|
-
}, z.core.$strip>>;
|
|
2070
|
-
sessionRef: z.ZodString;
|
|
2071
|
-
egressPolicy: z.ZodObject<{
|
|
2072
|
-
policyRevision: z.ZodString;
|
|
2073
|
-
activity: z.ZodObject<{
|
|
2074
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2075
|
-
maxCoalesceMs: z.ZodNumber;
|
|
2076
|
-
maxEventBytes: z.ZodNumber;
|
|
2077
|
-
}, z.core.$strict>;
|
|
2078
|
-
reliable: z.ZodObject<{
|
|
2079
|
-
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2080
|
-
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2081
|
-
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2082
|
-
}, z.core.$strict>;
|
|
2083
|
-
transfers: z.ZodObject<{
|
|
2084
|
-
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2085
|
-
maxBytes: z.ZodNumber;
|
|
2086
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2087
|
-
}, z.core.$strict>]>;
|
|
2088
|
-
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2089
|
-
maxBytes: z.ZodNumber;
|
|
2090
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2091
|
-
}, z.core.$strict>]>;
|
|
2092
|
-
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2093
|
-
maxBytes: z.ZodNumber;
|
|
2094
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2095
|
-
}, z.core.$strict>]>;
|
|
2096
|
-
}, z.core.$strict>;
|
|
2013
|
+
chainHead: z.ZodObject<{
|
|
2014
|
+
seq: z.ZodNumber;
|
|
2015
|
+
hash: z.ZodString;
|
|
2097
2016
|
}, z.core.$strict>;
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2017
|
+
sender: z.ZodString;
|
|
2018
|
+
salt: z.ZodString;
|
|
2019
|
+
nonce: z.ZodString;
|
|
2020
|
+
paddedLength: z.ZodNumber;
|
|
2021
|
+
contentMac: z.ZodString;
|
|
2022
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2023
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2024
|
+
blobId: z.ZodString;
|
|
2025
|
+
contentHash: z.ZodString;
|
|
2026
|
+
size: z.ZodNumber;
|
|
2027
|
+
contentType: z.ZodString;
|
|
2106
2028
|
}, z.core.$strict>>;
|
|
2107
|
-
}, z.core.$strict
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
}, z.core.$strict>;
|
|
2122
|
-
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2123
|
-
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
2124
|
-
none: "none";
|
|
2125
|
-
read: "read";
|
|
2126
|
-
"read-write": "read-write";
|
|
2127
|
-
}>>;
|
|
2128
|
-
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2129
|
-
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2029
|
+
}, z.core.$strict>>;
|
|
2030
|
+
}, z.core.$strict>;
|
|
2031
|
+
export type TaskOfferSealedPayload = z.infer<typeof TaskOfferSealedPayloadSchema>;
|
|
2032
|
+
/** server -> daemon: `task.offer_with_toolsets` of a sealed task. */
|
|
2033
|
+
export declare const TaskOfferWithToolsetsSealedPayloadSchema: z.ZodObject<{
|
|
2034
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2035
|
+
claude: "claude";
|
|
2036
|
+
codex: "codex";
|
|
2037
|
+
pi: "pi";
|
|
2038
|
+
}>>;
|
|
2039
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2040
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2041
|
+
lane: z.ZodLiteral<"subscription">;
|
|
2042
|
+
runtimeId: z.ZodEnum<{
|
|
2130
2043
|
claude: "claude";
|
|
2131
2044
|
codex: "codex";
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2146
|
-
providerId: z.ZodString;
|
|
2147
|
-
modelId: z.ZodString;
|
|
2148
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2149
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
2150
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2151
|
-
providerProfile: z.ZodObject<{
|
|
2152
|
-
profileRef: z.ZodString;
|
|
2153
|
-
profileRevision: z.ZodString;
|
|
2154
|
-
profileHash: z.ZodString;
|
|
2155
|
-
modelId: z.ZodString;
|
|
2156
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2157
|
-
"image-input": "image-input";
|
|
2158
|
-
}>>;
|
|
2159
|
-
}, z.core.$strict>;
|
|
2160
|
-
}, z.core.$strict>], "lane">>;
|
|
2161
|
-
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2162
|
-
mode: z.ZodLiteral<"none">;
|
|
2163
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2164
|
-
mode: z.ZodLiteral<"result-document">;
|
|
2165
|
-
contract: z.ZodString;
|
|
2166
|
-
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2167
|
-
}, z.core.$strict>], "mode">>;
|
|
2168
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2169
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2170
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2171
|
-
}, z.core.$strip>>;
|
|
2172
|
-
egressPolicy: z.ZodObject<{
|
|
2173
|
-
policyRevision: z.ZodString;
|
|
2174
|
-
activity: z.ZodObject<{
|
|
2175
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2176
|
-
maxCoalesceMs: z.ZodNumber;
|
|
2177
|
-
maxEventBytes: z.ZodNumber;
|
|
2178
|
-
}, z.core.$strict>;
|
|
2179
|
-
reliable: z.ZodObject<{
|
|
2180
|
-
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2181
|
-
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2182
|
-
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2183
|
-
}, z.core.$strict>;
|
|
2184
|
-
transfers: z.ZodObject<{
|
|
2185
|
-
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2186
|
-
maxBytes: z.ZodNumber;
|
|
2187
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2188
|
-
}, z.core.$strict>]>;
|
|
2189
|
-
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2190
|
-
maxBytes: z.ZodNumber;
|
|
2191
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2192
|
-
}, z.core.$strict>]>;
|
|
2193
|
-
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2194
|
-
maxBytes: z.ZodNumber;
|
|
2195
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2196
|
-
}, z.core.$strict>]>;
|
|
2197
|
-
}, z.core.$strict>;
|
|
2198
|
-
}, z.core.$strict>;
|
|
2199
|
-
messageEgress: z.ZodOptional<z.ZodObject<{
|
|
2200
|
-
mode: z.ZodLiteral<"required">;
|
|
2201
|
-
contract: z.ZodString;
|
|
2202
|
-
contentType: z.ZodEnum<{
|
|
2203
|
-
"text/markdown": "text/markdown";
|
|
2204
|
-
"text/plain": "text/plain";
|
|
2205
|
-
}>;
|
|
2206
|
-
maxBytes: z.ZodNumber;
|
|
2207
|
-
}, z.core.$strict>>;
|
|
2208
|
-
}, z.core.$strict>;
|
|
2209
|
-
readonly 'task.offer_prepared': z.ZodObject<{
|
|
2210
|
-
agentRef: z.ZodObject<{
|
|
2211
|
-
agentId: z.ZodString;
|
|
2045
|
+
}>;
|
|
2046
|
+
providerId: z.ZodNull;
|
|
2047
|
+
modelId: z.ZodString;
|
|
2048
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2049
|
+
lane: z.ZodLiteral<"byok">;
|
|
2050
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2051
|
+
providerId: z.ZodString;
|
|
2052
|
+
modelId: z.ZodString;
|
|
2053
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2054
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
2055
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2056
|
+
providerProfile: z.ZodObject<{
|
|
2057
|
+
profileRef: z.ZodString;
|
|
2212
2058
|
profileRevision: z.ZodString;
|
|
2059
|
+
profileHash: z.ZodString;
|
|
2060
|
+
modelId: z.ZodString;
|
|
2061
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2062
|
+
"image-input": "image-input";
|
|
2063
|
+
}>>;
|
|
2213
2064
|
}, z.core.$strict>;
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2065
|
+
}, z.core.$strict>], "lane">>;
|
|
2066
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
2067
|
+
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
2068
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2069
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2070
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2071
|
+
}, z.core.$strip>>;
|
|
2072
|
+
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
2073
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2074
|
+
blobRef: z.ZodObject<{
|
|
2075
|
+
blobId: z.ZodString;
|
|
2076
|
+
contentHash: z.ZodString;
|
|
2077
|
+
size: z.ZodNumber;
|
|
2078
|
+
contentType: z.ZodString;
|
|
2079
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2080
|
+
}, z.core.$strip>;
|
|
2081
|
+
}, z.core.$strict>]>>;
|
|
2082
|
+
sealing: z.ZodObject<{
|
|
2083
|
+
scopeId: z.ZodString;
|
|
2084
|
+
epoch: z.ZodNumber;
|
|
2085
|
+
categories: z.ZodArray<z.ZodEnum<{
|
|
2086
|
+
"task-input": "task-input";
|
|
2087
|
+
"task-output": "task-output";
|
|
2220
2088
|
}>>;
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2231
|
-
lane: z.ZodLiteral<"byok">;
|
|
2232
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2233
|
-
providerId: z.ZodString;
|
|
2234
|
-
modelId: z.ZodString;
|
|
2235
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2236
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
2237
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2238
|
-
providerProfile: z.ZodObject<{
|
|
2239
|
-
profileRef: z.ZodString;
|
|
2240
|
-
profileRevision: z.ZodString;
|
|
2241
|
-
profileHash: z.ZodString;
|
|
2242
|
-
modelId: z.ZodString;
|
|
2243
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2244
|
-
"image-input": "image-input";
|
|
2245
|
-
}>>;
|
|
2246
|
-
}, z.core.$strict>;
|
|
2247
|
-
}, z.core.$strict>], "lane">>;
|
|
2248
|
-
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2249
|
-
mode: z.ZodLiteral<"none">;
|
|
2250
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2251
|
-
mode: z.ZodLiteral<"result-document">;
|
|
2252
|
-
contract: z.ZodString;
|
|
2253
|
-
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2254
|
-
}, z.core.$strict>], "mode">>;
|
|
2255
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2256
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2257
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2258
|
-
}, z.core.$strip>>;
|
|
2259
|
-
preparation: z.ZodObject<{
|
|
2260
|
-
reference: z.ZodString;
|
|
2261
|
-
requestDigest: z.ZodString;
|
|
2262
|
-
artifactDigest: z.ZodOptional<z.ZodString>;
|
|
2089
|
+
}, z.core.$strict>;
|
|
2090
|
+
sealed: z.ZodOptional<z.ZodObject<{
|
|
2091
|
+
v: z.ZodLiteral<1>;
|
|
2092
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2093
|
+
category: z.ZodLiteral<"task-input">;
|
|
2094
|
+
scope: z.ZodObject<{
|
|
2095
|
+
id: z.ZodString;
|
|
2096
|
+
epoch: z.ZodNumber;
|
|
2097
|
+
keyId: z.ZodString;
|
|
2263
2098
|
}, z.core.$strict>;
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
"read-write": "read-write";
|
|
2268
|
-
}>;
|
|
2269
|
-
egressPolicy: z.ZodObject<{
|
|
2270
|
-
policyRevision: z.ZodString;
|
|
2271
|
-
activity: z.ZodObject<{
|
|
2272
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2273
|
-
maxCoalesceMs: z.ZodNumber;
|
|
2274
|
-
maxEventBytes: z.ZodNumber;
|
|
2275
|
-
}, z.core.$strict>;
|
|
2276
|
-
reliable: z.ZodObject<{
|
|
2277
|
-
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2278
|
-
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2279
|
-
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2280
|
-
}, z.core.$strict>;
|
|
2281
|
-
transfers: z.ZodObject<{
|
|
2282
|
-
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2283
|
-
maxBytes: z.ZodNumber;
|
|
2284
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2285
|
-
}, z.core.$strict>]>;
|
|
2286
|
-
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2287
|
-
maxBytes: z.ZodNumber;
|
|
2288
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2289
|
-
}, z.core.$strict>]>;
|
|
2290
|
-
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2291
|
-
maxBytes: z.ZodNumber;
|
|
2292
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2293
|
-
}, z.core.$strict>]>;
|
|
2294
|
-
}, z.core.$strict>;
|
|
2099
|
+
chainHead: z.ZodObject<{
|
|
2100
|
+
seq: z.ZodNumber;
|
|
2101
|
+
hash: z.ZodString;
|
|
2295
2102
|
}, z.core.$strict>;
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2103
|
+
sender: z.ZodString;
|
|
2104
|
+
salt: z.ZodString;
|
|
2105
|
+
nonce: z.ZodString;
|
|
2106
|
+
paddedLength: z.ZodNumber;
|
|
2107
|
+
contentMac: z.ZodString;
|
|
2108
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2109
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2110
|
+
blobId: z.ZodString;
|
|
2111
|
+
contentHash: z.ZodString;
|
|
2112
|
+
size: z.ZodNumber;
|
|
2113
|
+
contentType: z.ZodString;
|
|
2304
2114
|
}, z.core.$strict>>;
|
|
2115
|
+
}, z.core.$strict>>;
|
|
2116
|
+
}, z.core.$strict>;
|
|
2117
|
+
export type TaskOfferWithToolsetsSealedPayload = z.infer<typeof TaskOfferWithToolsetsSealedPayloadSchema>;
|
|
2118
|
+
/** server -> daemon: `task.offer_for_agent` of a sealed task. */
|
|
2119
|
+
export declare const TaskOfferForAgentSealedPayloadSchema: z.ZodObject<{
|
|
2120
|
+
agentRef: z.ZodObject<{
|
|
2121
|
+
agentId: z.ZodString;
|
|
2122
|
+
profileRevision: z.ZodString;
|
|
2305
2123
|
}, z.core.$strict>;
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2124
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2125
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
2126
|
+
none: "none";
|
|
2127
|
+
read: "read";
|
|
2128
|
+
"read-if-admitted": "read-if-admitted";
|
|
2129
|
+
"read-write": "read-write";
|
|
2130
|
+
"read-write-if-admitted": "read-write-if-admitted";
|
|
2131
|
+
}>>;
|
|
2132
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2133
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2134
|
+
claude: "claude";
|
|
2135
|
+
codex: "codex";
|
|
2136
|
+
pi: "pi";
|
|
2137
|
+
}>>;
|
|
2138
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2140
|
+
lane: z.ZodLiteral<"subscription">;
|
|
2141
|
+
runtimeId: z.ZodEnum<{
|
|
2323
2142
|
claude: "claude";
|
|
2324
2143
|
codex: "codex";
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2339
|
-
providerId: z.ZodString;
|
|
2340
|
-
modelId: z.ZodString;
|
|
2341
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2342
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
2343
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2344
|
-
providerProfile: z.ZodObject<{
|
|
2345
|
-
profileRef: z.ZodString;
|
|
2346
|
-
profileRevision: z.ZodString;
|
|
2347
|
-
profileHash: z.ZodString;
|
|
2348
|
-
modelId: z.ZodString;
|
|
2349
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2350
|
-
"image-input": "image-input";
|
|
2351
|
-
}>>;
|
|
2352
|
-
}, z.core.$strict>;
|
|
2353
|
-
}, z.core.$strict>], "lane">>;
|
|
2354
|
-
sessionRef: z.ZodOptional<z.ZodString>;
|
|
2355
|
-
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
2356
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2357
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2358
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2359
|
-
}, z.core.$strip>>;
|
|
2360
|
-
}, z.core.$strip>;
|
|
2361
|
-
readonly 'task.offer_with_toolsets': z.ZodObject<{
|
|
2362
|
-
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2363
|
-
blobRef: z.ZodObject<{
|
|
2364
|
-
blobId: z.ZodString;
|
|
2365
|
-
contentHash: z.ZodString;
|
|
2366
|
-
size: z.ZodNumber;
|
|
2367
|
-
contentType: z.ZodString;
|
|
2368
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2369
|
-
}, z.core.$strip>;
|
|
2370
|
-
}, z.core.$strict>]>;
|
|
2371
|
-
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2372
|
-
claude: "claude";
|
|
2373
|
-
codex: "codex";
|
|
2374
|
-
pi: "pi";
|
|
2375
|
-
}>>;
|
|
2376
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
2377
|
-
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2378
|
-
lane: z.ZodLiteral<"subscription">;
|
|
2379
|
-
runtimeId: z.ZodEnum<{
|
|
2380
|
-
claude: "claude";
|
|
2381
|
-
codex: "codex";
|
|
2382
|
-
}>;
|
|
2383
|
-
providerId: z.ZodNull;
|
|
2384
|
-
modelId: z.ZodString;
|
|
2385
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2386
|
-
lane: z.ZodLiteral<"byok">;
|
|
2387
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2388
|
-
providerId: z.ZodString;
|
|
2389
|
-
modelId: z.ZodString;
|
|
2390
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2391
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
2392
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2393
|
-
providerProfile: z.ZodObject<{
|
|
2394
|
-
profileRef: z.ZodString;
|
|
2395
|
-
profileRevision: z.ZodString;
|
|
2396
|
-
profileHash: z.ZodString;
|
|
2397
|
-
modelId: z.ZodString;
|
|
2398
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2399
|
-
"image-input": "image-input";
|
|
2400
|
-
}>>;
|
|
2401
|
-
}, z.core.$strict>;
|
|
2402
|
-
}, z.core.$strict>], "lane">>;
|
|
2403
|
-
sessionRef: z.ZodOptional<z.ZodString>;
|
|
2404
|
-
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
2405
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2406
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2407
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2408
|
-
}, z.core.$strip>>;
|
|
2409
|
-
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
2410
|
-
}, z.core.$strict>;
|
|
2411
|
-
readonly 'task.offer_for_agent': z.ZodObject<{
|
|
2412
|
-
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2413
|
-
blobRef: z.ZodObject<{
|
|
2414
|
-
blobId: z.ZodString;
|
|
2415
|
-
contentHash: z.ZodString;
|
|
2416
|
-
size: z.ZodNumber;
|
|
2417
|
-
contentType: z.ZodString;
|
|
2418
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2419
|
-
}, z.core.$strip>;
|
|
2420
|
-
}, z.core.$strict>]>;
|
|
2421
|
-
agentRef: z.ZodObject<{
|
|
2422
|
-
agentId: z.ZodString;
|
|
2144
|
+
}>;
|
|
2145
|
+
providerId: z.ZodNull;
|
|
2146
|
+
modelId: z.ZodString;
|
|
2147
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2148
|
+
lane: z.ZodLiteral<"byok">;
|
|
2149
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2150
|
+
providerId: z.ZodString;
|
|
2151
|
+
modelId: z.ZodString;
|
|
2152
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2153
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
2154
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2155
|
+
providerProfile: z.ZodObject<{
|
|
2156
|
+
profileRef: z.ZodString;
|
|
2423
2157
|
profileRevision: z.ZodString;
|
|
2158
|
+
profileHash: z.ZodString;
|
|
2159
|
+
modelId: z.ZodString;
|
|
2160
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2161
|
+
"image-input": "image-input";
|
|
2162
|
+
}>>;
|
|
2424
2163
|
}, z.core.$strict>;
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2164
|
+
}, z.core.$strict>], "lane">>;
|
|
2165
|
+
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2166
|
+
mode: z.ZodLiteral<"none">;
|
|
2167
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2168
|
+
mode: z.ZodLiteral<"result-document">;
|
|
2169
|
+
contract: z.ZodString;
|
|
2170
|
+
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2171
|
+
}, z.core.$strict>], "mode">>;
|
|
2172
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
2173
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2174
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2175
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2176
|
+
}, z.core.$strip>>;
|
|
2177
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2178
|
+
blobRef: z.ZodObject<{
|
|
2179
|
+
blobId: z.ZodString;
|
|
2180
|
+
contentHash: z.ZodString;
|
|
2181
|
+
size: z.ZodNumber;
|
|
2182
|
+
contentType: z.ZodString;
|
|
2183
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2184
|
+
}, z.core.$strip>;
|
|
2185
|
+
}, z.core.$strict>]>>;
|
|
2186
|
+
sealing: z.ZodObject<{
|
|
2187
|
+
scopeId: z.ZodString;
|
|
2188
|
+
epoch: z.ZodNumber;
|
|
2189
|
+
categories: z.ZodArray<z.ZodEnum<{
|
|
2190
|
+
"task-input": "task-input";
|
|
2191
|
+
"task-output": "task-output";
|
|
2436
2192
|
}>>;
|
|
2437
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
2438
|
-
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2439
|
-
lane: z.ZodLiteral<"subscription">;
|
|
2440
|
-
runtimeId: z.ZodEnum<{
|
|
2441
|
-
claude: "claude";
|
|
2442
|
-
codex: "codex";
|
|
2443
|
-
}>;
|
|
2444
|
-
providerId: z.ZodNull;
|
|
2445
|
-
modelId: z.ZodString;
|
|
2446
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2447
|
-
lane: z.ZodLiteral<"byok">;
|
|
2448
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2449
|
-
providerId: z.ZodString;
|
|
2450
|
-
modelId: z.ZodString;
|
|
2451
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2452
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
2453
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2454
|
-
providerProfile: z.ZodObject<{
|
|
2455
|
-
profileRef: z.ZodString;
|
|
2456
|
-
profileRevision: z.ZodString;
|
|
2457
|
-
profileHash: z.ZodString;
|
|
2458
|
-
modelId: z.ZodString;
|
|
2459
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2460
|
-
"image-input": "image-input";
|
|
2461
|
-
}>>;
|
|
2462
|
-
}, z.core.$strict>;
|
|
2463
|
-
}, z.core.$strict>], "lane">>;
|
|
2464
|
-
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2465
|
-
mode: z.ZodLiteral<"none">;
|
|
2466
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2467
|
-
mode: z.ZodLiteral<"result-document">;
|
|
2468
|
-
contract: z.ZodString;
|
|
2469
|
-
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2470
|
-
}, z.core.$strict>], "mode">>;
|
|
2471
|
-
sessionRef: z.ZodOptional<z.ZodString>;
|
|
2472
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2473
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2474
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2475
|
-
}, z.core.$strip>>;
|
|
2476
2193
|
}, z.core.$strict>;
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
}, z.core.$strip>;
|
|
2486
|
-
}, z.core.$strict>]>;
|
|
2487
|
-
agentRef: z.ZodObject<{
|
|
2488
|
-
agentId: z.ZodString;
|
|
2489
|
-
profileRevision: z.ZodString;
|
|
2194
|
+
sealed: z.ZodOptional<z.ZodObject<{
|
|
2195
|
+
v: z.ZodLiteral<1>;
|
|
2196
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2197
|
+
category: z.ZodLiteral<"task-input">;
|
|
2198
|
+
scope: z.ZodObject<{
|
|
2199
|
+
id: z.ZodString;
|
|
2200
|
+
epoch: z.ZodNumber;
|
|
2201
|
+
keyId: z.ZodString;
|
|
2490
2202
|
}, z.core.$strict>;
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
read: "read";
|
|
2495
|
-
"read-write": "read-write";
|
|
2496
|
-
}>>;
|
|
2497
|
-
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2498
|
-
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2499
|
-
claude: "claude";
|
|
2500
|
-
codex: "codex";
|
|
2501
|
-
pi: "pi";
|
|
2502
|
-
}>>;
|
|
2503
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
2504
|
-
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2505
|
-
lane: z.ZodLiteral<"subscription">;
|
|
2506
|
-
runtimeId: z.ZodEnum<{
|
|
2507
|
-
claude: "claude";
|
|
2508
|
-
codex: "codex";
|
|
2509
|
-
}>;
|
|
2510
|
-
providerId: z.ZodNull;
|
|
2511
|
-
modelId: z.ZodString;
|
|
2512
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2513
|
-
lane: z.ZodLiteral<"byok">;
|
|
2514
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2515
|
-
providerId: z.ZodString;
|
|
2516
|
-
modelId: z.ZodString;
|
|
2517
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2518
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
2519
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2520
|
-
providerProfile: z.ZodObject<{
|
|
2521
|
-
profileRef: z.ZodString;
|
|
2522
|
-
profileRevision: z.ZodString;
|
|
2523
|
-
profileHash: z.ZodString;
|
|
2524
|
-
modelId: z.ZodString;
|
|
2525
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2526
|
-
"image-input": "image-input";
|
|
2527
|
-
}>>;
|
|
2528
|
-
}, z.core.$strict>;
|
|
2529
|
-
}, z.core.$strict>], "lane">>;
|
|
2530
|
-
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2531
|
-
mode: z.ZodLiteral<"none">;
|
|
2532
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2533
|
-
mode: z.ZodLiteral<"result-document">;
|
|
2534
|
-
contract: z.ZodString;
|
|
2535
|
-
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2536
|
-
}, z.core.$strict>], "mode">>;
|
|
2537
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2538
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2539
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2540
|
-
}, z.core.$strip>>;
|
|
2541
|
-
sessionRef: z.ZodString;
|
|
2542
|
-
egressPolicy: z.ZodObject<{
|
|
2543
|
-
policyRevision: z.ZodString;
|
|
2544
|
-
activity: z.ZodObject<{
|
|
2545
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2546
|
-
maxCoalesceMs: z.ZodNumber;
|
|
2547
|
-
maxEventBytes: z.ZodNumber;
|
|
2548
|
-
}, z.core.$strict>;
|
|
2549
|
-
reliable: z.ZodObject<{
|
|
2550
|
-
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2551
|
-
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2552
|
-
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2553
|
-
}, z.core.$strict>;
|
|
2554
|
-
transfers: z.ZodObject<{
|
|
2555
|
-
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2556
|
-
maxBytes: z.ZodNumber;
|
|
2557
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2558
|
-
}, z.core.$strict>]>;
|
|
2559
|
-
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2560
|
-
maxBytes: z.ZodNumber;
|
|
2561
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2562
|
-
}, z.core.$strict>]>;
|
|
2563
|
-
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2564
|
-
maxBytes: z.ZodNumber;
|
|
2565
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2566
|
-
}, z.core.$strict>]>;
|
|
2567
|
-
}, z.core.$strict>;
|
|
2203
|
+
chainHead: z.ZodObject<{
|
|
2204
|
+
seq: z.ZodNumber;
|
|
2205
|
+
hash: z.ZodString;
|
|
2568
2206
|
}, z.core.$strict>;
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2207
|
+
sender: z.ZodString;
|
|
2208
|
+
salt: z.ZodString;
|
|
2209
|
+
nonce: z.ZodString;
|
|
2210
|
+
paddedLength: z.ZodNumber;
|
|
2211
|
+
contentMac: z.ZodString;
|
|
2212
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2213
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2214
|
+
blobId: z.ZodString;
|
|
2215
|
+
contentHash: z.ZodString;
|
|
2216
|
+
size: z.ZodNumber;
|
|
2217
|
+
contentType: z.ZodString;
|
|
2577
2218
|
}, z.core.$strict>>;
|
|
2219
|
+
}, z.core.$strict>>;
|
|
2220
|
+
}, z.core.$strict>;
|
|
2221
|
+
export type TaskOfferForAgentSealedPayload = z.infer<typeof TaskOfferForAgentSealedPayloadSchema>;
|
|
2222
|
+
/** server -> daemon: `task.offer_for_agent_with_egress` of a sealed task. */
|
|
2223
|
+
export declare const TaskOfferForAgentWithEgressSealedPayloadSchema: z.ZodObject<{
|
|
2224
|
+
agentRef: z.ZodObject<{
|
|
2225
|
+
agentId: z.ZodString;
|
|
2226
|
+
profileRevision: z.ZodString;
|
|
2578
2227
|
}, z.core.$strict>;
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
"read-write": "read-write";
|
|
2598
|
-
}>>;
|
|
2599
|
-
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2600
|
-
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2228
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2229
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
2230
|
+
none: "none";
|
|
2231
|
+
read: "read";
|
|
2232
|
+
"read-if-admitted": "read-if-admitted";
|
|
2233
|
+
"read-write": "read-write";
|
|
2234
|
+
"read-write-if-admitted": "read-write-if-admitted";
|
|
2235
|
+
}>>;
|
|
2236
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2237
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2238
|
+
claude: "claude";
|
|
2239
|
+
codex: "codex";
|
|
2240
|
+
pi: "pi";
|
|
2241
|
+
}>>;
|
|
2242
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2243
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2244
|
+
lane: z.ZodLiteral<"subscription">;
|
|
2245
|
+
runtimeId: z.ZodEnum<{
|
|
2601
2246
|
claude: "claude";
|
|
2602
2247
|
codex: "codex";
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2248
|
+
}>;
|
|
2249
|
+
providerId: z.ZodNull;
|
|
2250
|
+
modelId: z.ZodString;
|
|
2251
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2252
|
+
lane: z.ZodLiteral<"byok">;
|
|
2253
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2254
|
+
providerId: z.ZodString;
|
|
2255
|
+
modelId: z.ZodString;
|
|
2256
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2257
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
2258
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2259
|
+
providerProfile: z.ZodObject<{
|
|
2260
|
+
profileRef: z.ZodString;
|
|
2261
|
+
profileRevision: z.ZodString;
|
|
2262
|
+
profileHash: z.ZodString;
|
|
2618
2263
|
modelId: z.ZodString;
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
providerProfile: z.ZodObject<{
|
|
2623
|
-
profileRef: z.ZodString;
|
|
2624
|
-
profileRevision: z.ZodString;
|
|
2625
|
-
profileHash: z.ZodString;
|
|
2626
|
-
modelId: z.ZodString;
|
|
2627
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2628
|
-
"image-input": "image-input";
|
|
2629
|
-
}>>;
|
|
2630
|
-
}, z.core.$strict>;
|
|
2631
|
-
}, z.core.$strict>], "lane">>;
|
|
2632
|
-
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2633
|
-
mode: z.ZodLiteral<"none">;
|
|
2634
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2635
|
-
mode: z.ZodLiteral<"result-document">;
|
|
2636
|
-
contract: z.ZodString;
|
|
2637
|
-
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2638
|
-
}, z.core.$strict>], "mode">>;
|
|
2639
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2640
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2641
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2642
|
-
}, z.core.$strip>>;
|
|
2643
|
-
egressPolicy: z.ZodObject<{
|
|
2644
|
-
policyRevision: z.ZodString;
|
|
2645
|
-
activity: z.ZodObject<{
|
|
2646
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
2647
|
-
maxCoalesceMs: z.ZodNumber;
|
|
2648
|
-
maxEventBytes: z.ZodNumber;
|
|
2649
|
-
}, z.core.$strict>;
|
|
2650
|
-
reliable: z.ZodObject<{
|
|
2651
|
-
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2652
|
-
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2653
|
-
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2654
|
-
}, z.core.$strict>;
|
|
2655
|
-
transfers: z.ZodObject<{
|
|
2656
|
-
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2657
|
-
maxBytes: z.ZodNumber;
|
|
2658
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2659
|
-
}, z.core.$strict>]>;
|
|
2660
|
-
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2661
|
-
maxBytes: z.ZodNumber;
|
|
2662
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2663
|
-
}, z.core.$strict>]>;
|
|
2664
|
-
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2665
|
-
maxBytes: z.ZodNumber;
|
|
2666
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2667
|
-
}, z.core.$strict>]>;
|
|
2668
|
-
}, z.core.$strict>;
|
|
2264
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2265
|
+
"image-input": "image-input";
|
|
2266
|
+
}>>;
|
|
2669
2267
|
}, z.core.$strict>;
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2268
|
+
}, z.core.$strict>], "lane">>;
|
|
2269
|
+
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2270
|
+
mode: z.ZodLiteral<"none">;
|
|
2271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2272
|
+
mode: z.ZodLiteral<"result-document">;
|
|
2273
|
+
contract: z.ZodString;
|
|
2274
|
+
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2275
|
+
}, z.core.$strict>], "mode">>;
|
|
2276
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2277
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2278
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2279
|
+
}, z.core.$strip>>;
|
|
2280
|
+
sessionRef: z.ZodString;
|
|
2281
|
+
egressPolicy: z.ZodObject<{
|
|
2282
|
+
policyRevision: z.ZodString;
|
|
2283
|
+
activity: z.ZodObject<{
|
|
2284
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2285
|
+
maxCoalesceMs: z.ZodNumber;
|
|
2286
|
+
maxEventBytes: z.ZodNumber;
|
|
2684
2287
|
}, z.core.$strict>;
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
codex: "codex";
|
|
2690
|
-
pi: "pi";
|
|
2691
|
-
}>>;
|
|
2692
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
2693
|
-
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2694
|
-
lane: z.ZodLiteral<"subscription">;
|
|
2695
|
-
runtimeId: z.ZodEnum<{
|
|
2696
|
-
claude: "claude";
|
|
2697
|
-
codex: "codex";
|
|
2698
|
-
}>;
|
|
2699
|
-
providerId: z.ZodNull;
|
|
2700
|
-
modelId: z.ZodString;
|
|
2701
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2702
|
-
lane: z.ZodLiteral<"byok">;
|
|
2703
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2704
|
-
providerId: z.ZodString;
|
|
2705
|
-
modelId: z.ZodString;
|
|
2706
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2707
|
-
lane: z.ZodLiteral<"byok-profile">;
|
|
2708
|
-
runtimeId: z.ZodLiteral<"pi">;
|
|
2709
|
-
providerProfile: z.ZodObject<{
|
|
2710
|
-
profileRef: z.ZodString;
|
|
2711
|
-
profileRevision: z.ZodString;
|
|
2712
|
-
profileHash: z.ZodString;
|
|
2713
|
-
modelId: z.ZodString;
|
|
2714
|
-
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2715
|
-
"image-input": "image-input";
|
|
2716
|
-
}>>;
|
|
2717
|
-
}, z.core.$strict>;
|
|
2718
|
-
}, z.core.$strict>], "lane">>;
|
|
2719
|
-
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2720
|
-
mode: z.ZodLiteral<"none">;
|
|
2721
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
2722
|
-
mode: z.ZodLiteral<"result-document">;
|
|
2723
|
-
contract: z.ZodString;
|
|
2724
|
-
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2725
|
-
}, z.core.$strict>], "mode">>;
|
|
2726
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2727
|
-
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2728
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2729
|
-
}, z.core.$strip>>;
|
|
2730
|
-
preparation: z.ZodObject<{
|
|
2731
|
-
reference: z.ZodString;
|
|
2732
|
-
requestDigest: z.ZodString;
|
|
2733
|
-
artifactDigest: z.ZodOptional<z.ZodString>;
|
|
2288
|
+
reliable: z.ZodObject<{
|
|
2289
|
+
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2290
|
+
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2291
|
+
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2734
2292
|
}, z.core.$strict>;
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2749
|
-
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2750
|
-
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2751
|
-
}, z.core.$strict>;
|
|
2752
|
-
transfers: z.ZodObject<{
|
|
2753
|
-
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2754
|
-
maxBytes: z.ZodNumber;
|
|
2755
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2756
|
-
}, z.core.$strict>]>;
|
|
2757
|
-
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2758
|
-
maxBytes: z.ZodNumber;
|
|
2759
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2760
|
-
}, z.core.$strict>]>;
|
|
2761
|
-
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2762
|
-
maxBytes: z.ZodNumber;
|
|
2763
|
-
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2764
|
-
}, z.core.$strict>]>;
|
|
2765
|
-
}, z.core.$strict>;
|
|
2293
|
+
transfers: z.ZodObject<{
|
|
2294
|
+
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2295
|
+
maxBytes: z.ZodNumber;
|
|
2296
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2297
|
+
}, z.core.$strict>]>;
|
|
2298
|
+
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2299
|
+
maxBytes: z.ZodNumber;
|
|
2300
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2301
|
+
}, z.core.$strict>]>;
|
|
2302
|
+
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2303
|
+
maxBytes: z.ZodNumber;
|
|
2304
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2305
|
+
}, z.core.$strict>]>;
|
|
2766
2306
|
}, z.core.$strict>;
|
|
2767
|
-
messageEgress: z.ZodOptional<z.ZodObject<{
|
|
2768
|
-
mode: z.ZodLiteral<"required">;
|
|
2769
|
-
contract: z.ZodString;
|
|
2770
|
-
contentType: z.ZodEnum<{
|
|
2771
|
-
"text/markdown": "text/markdown";
|
|
2772
|
-
"text/plain": "text/plain";
|
|
2773
|
-
}>;
|
|
2774
|
-
maxBytes: z.ZodNumber;
|
|
2775
|
-
}, z.core.$strict>>;
|
|
2776
2307
|
}, z.core.$strict>;
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2308
|
+
messageEgress: z.ZodOptional<z.ZodObject<{
|
|
2309
|
+
mode: z.ZodLiteral<"required">;
|
|
2310
|
+
contract: z.ZodString;
|
|
2311
|
+
contentType: z.ZodEnum<{
|
|
2312
|
+
"text/markdown": "text/markdown";
|
|
2313
|
+
"text/plain": "text/plain";
|
|
2314
|
+
}>;
|
|
2315
|
+
maxBytes: z.ZodNumber;
|
|
2316
|
+
}, z.core.$strict>>;
|
|
2317
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2318
|
+
blobRef: z.ZodObject<{
|
|
2319
|
+
blobId: z.ZodString;
|
|
2320
|
+
contentHash: z.ZodString;
|
|
2321
|
+
size: z.ZodNumber;
|
|
2322
|
+
contentType: z.ZodString;
|
|
2323
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2324
|
+
}, z.core.$strip>;
|
|
2325
|
+
}, z.core.$strict>]>>;
|
|
2326
|
+
sealing: z.ZodObject<{
|
|
2327
|
+
scopeId: z.ZodString;
|
|
2328
|
+
epoch: z.ZodNumber;
|
|
2329
|
+
categories: z.ZodArray<z.ZodEnum<{
|
|
2330
|
+
"task-input": "task-input";
|
|
2331
|
+
"task-output": "task-output";
|
|
2332
|
+
}>>;
|
|
2333
|
+
}, z.core.$strict>;
|
|
2334
|
+
sealed: z.ZodOptional<z.ZodObject<{
|
|
2335
|
+
v: z.ZodLiteral<1>;
|
|
2336
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2337
|
+
category: z.ZodLiteral<"task-input">;
|
|
2338
|
+
scope: z.ZodObject<{
|
|
2800
2339
|
id: z.ZodString;
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
steer: z.ZodOptional<z.ZodBoolean>;
|
|
2804
|
-
resume: z.ZodOptional<z.ZodBoolean>;
|
|
2805
|
-
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
2806
|
-
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
2807
|
-
messageDraft: z.ZodOptional<z.ZodBoolean>;
|
|
2808
|
-
}, z.core.$strip>;
|
|
2809
|
-
}, z.core.$strip>>>;
|
|
2810
|
-
configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2811
|
-
cursor: z.ZodOptional<z.ZodNumber>;
|
|
2812
|
-
}, z.core.$strip>;
|
|
2813
|
-
readonly 'conn.ack': z.ZodObject<{
|
|
2814
|
-
protocolVersion: z.ZodNumber;
|
|
2815
|
-
capabilities: z.ZodArray<z.ZodString>;
|
|
2816
|
-
serverTime: z.ZodISODateTime;
|
|
2817
|
-
}, z.core.$strip>;
|
|
2818
|
-
readonly 'agent.egress.reliable': z.ZodObject<{
|
|
2819
|
-
agentRef: z.ZodObject<{
|
|
2820
|
-
agentId: z.ZodString;
|
|
2821
|
-
profileRevision: z.ZodString;
|
|
2340
|
+
epoch: z.ZodNumber;
|
|
2341
|
+
keyId: z.ZodString;
|
|
2822
2342
|
}, z.core.$strict>;
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2343
|
+
chainHead: z.ZodObject<{
|
|
2344
|
+
seq: z.ZodNumber;
|
|
2345
|
+
hash: z.ZodString;
|
|
2346
|
+
}, z.core.$strict>;
|
|
2347
|
+
sender: z.ZodString;
|
|
2348
|
+
salt: z.ZodString;
|
|
2349
|
+
nonce: z.ZodString;
|
|
2350
|
+
paddedLength: z.ZodNumber;
|
|
2351
|
+
contentMac: z.ZodString;
|
|
2352
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2353
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2354
|
+
blobId: z.ZodString;
|
|
2355
|
+
contentHash: z.ZodString;
|
|
2356
|
+
size: z.ZodNumber;
|
|
2357
|
+
contentType: z.ZodString;
|
|
2358
|
+
}, z.core.$strict>>;
|
|
2359
|
+
}, z.core.$strict>>;
|
|
2360
|
+
}, z.core.$strict>;
|
|
2361
|
+
export type TaskOfferForAgentWithEgressSealedPayload = z.infer<typeof TaskOfferForAgentWithEgressSealedPayloadSchema>;
|
|
2362
|
+
/**
|
|
2363
|
+
* server -> daemon: `task.offer_for_agent_with_egress_fresh` of a sealed task.
|
|
2364
|
+
* Only this type takes `routineRef`: a routine occurrence is an execution.
|
|
2365
|
+
*/
|
|
2366
|
+
export declare const TaskOfferForAgentWithEgressFreshSealedPayloadSchema: z.ZodObject<{
|
|
2367
|
+
agentRef: z.ZodObject<{
|
|
2368
|
+
agentId: z.ZodString;
|
|
2369
|
+
profileRevision: z.ZodString;
|
|
2830
2370
|
}, z.core.$strict>;
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2371
|
+
homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
|
|
2372
|
+
agentMemory: z.ZodOptional<z.ZodEnum<{
|
|
2373
|
+
none: "none";
|
|
2374
|
+
read: "read";
|
|
2375
|
+
"read-if-admitted": "read-if-admitted";
|
|
2376
|
+
"read-write": "read-write";
|
|
2377
|
+
"read-write-if-admitted": "read-write-if-admitted";
|
|
2378
|
+
}>>;
|
|
2379
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2380
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
2381
|
+
claude: "claude";
|
|
2382
|
+
codex: "codex";
|
|
2383
|
+
pi: "pi";
|
|
2384
|
+
}>>;
|
|
2385
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2386
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2387
|
+
lane: z.ZodLiteral<"subscription">;
|
|
2388
|
+
runtimeId: z.ZodEnum<{
|
|
2389
|
+
claude: "claude";
|
|
2390
|
+
codex: "codex";
|
|
2391
|
+
}>;
|
|
2392
|
+
providerId: z.ZodNull;
|
|
2393
|
+
modelId: z.ZodString;
|
|
2394
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2395
|
+
lane: z.ZodLiteral<"byok">;
|
|
2396
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2397
|
+
providerId: z.ZodString;
|
|
2398
|
+
modelId: z.ZodString;
|
|
2399
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2400
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
2401
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
2402
|
+
providerProfile: z.ZodObject<{
|
|
2403
|
+
profileRef: z.ZodString;
|
|
2834
2404
|
profileRevision: z.ZodString;
|
|
2405
|
+
profileHash: z.ZodString;
|
|
2406
|
+
modelId: z.ZodString;
|
|
2407
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
2408
|
+
"image-input": "image-input";
|
|
2409
|
+
}>>;
|
|
2835
2410
|
}, z.core.$strict>;
|
|
2836
|
-
|
|
2411
|
+
}, z.core.$strict>], "lane">>;
|
|
2412
|
+
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2413
|
+
mode: z.ZodLiteral<"none">;
|
|
2414
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2415
|
+
mode: z.ZodLiteral<"result-document">;
|
|
2416
|
+
contract: z.ZodString;
|
|
2417
|
+
schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
|
|
2418
|
+
}, z.core.$strict>], "mode">>;
|
|
2419
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2420
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2421
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2422
|
+
}, z.core.$strip>>;
|
|
2423
|
+
egressPolicy: z.ZodObject<{
|
|
2837
2424
|
policyRevision: z.ZodString;
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
readonly 'agent.message.draft': z.ZodObject<{
|
|
2843
|
-
agentRef: z.ZodObject<{
|
|
2844
|
-
agentId: z.ZodString;
|
|
2845
|
-
profileRevision: z.ZodString;
|
|
2425
|
+
activity: z.ZodObject<{
|
|
2426
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
2427
|
+
maxCoalesceMs: z.ZodNumber;
|
|
2428
|
+
maxEventBytes: z.ZodNumber;
|
|
2846
2429
|
}, z.core.$strict>;
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2430
|
+
reliable: z.ZodObject<{
|
|
2431
|
+
maxPendingEventsPerAgent: z.ZodNumber;
|
|
2432
|
+
maxPendingBytesPerAgent: z.ZodNumber;
|
|
2433
|
+
maxPendingBytesPerTenant: z.ZodNumber;
|
|
2434
|
+
}, z.core.$strict>;
|
|
2435
|
+
transfers: z.ZodObject<{
|
|
2436
|
+
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2437
|
+
maxBytes: z.ZodNumber;
|
|
2438
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2439
|
+
}, z.core.$strict>]>;
|
|
2440
|
+
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2441
|
+
maxBytes: z.ZodNumber;
|
|
2442
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2443
|
+
}, z.core.$strict>]>;
|
|
2444
|
+
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
2445
|
+
maxBytes: z.ZodNumber;
|
|
2446
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
2447
|
+
}, z.core.$strict>]>;
|
|
2856
2448
|
}, z.core.$strict>;
|
|
2857
|
-
|
|
2449
|
+
}, z.core.$strict>;
|
|
2450
|
+
messageEgress: z.ZodOptional<z.ZodObject<{
|
|
2451
|
+
mode: z.ZodLiteral<"required">;
|
|
2858
2452
|
contract: z.ZodString;
|
|
2859
|
-
messageId: z.ZodUUID;
|
|
2860
|
-
cursor: z.ZodNumber;
|
|
2861
2453
|
contentType: z.ZodEnum<{
|
|
2862
2454
|
"text/markdown": "text/markdown";
|
|
2863
2455
|
"text/plain": "text/plain";
|
|
2864
2456
|
}>;
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2457
|
+
maxBytes: z.ZodNumber;
|
|
2458
|
+
}, z.core.$strict>>;
|
|
2459
|
+
instruction: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2460
|
+
blobRef: z.ZodObject<{
|
|
2461
|
+
blobId: z.ZodString;
|
|
2462
|
+
contentHash: z.ZodString;
|
|
2463
|
+
size: z.ZodNumber;
|
|
2464
|
+
contentType: z.ZodString;
|
|
2465
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2466
|
+
}, z.core.$strip>;
|
|
2467
|
+
}, z.core.$strict>]>>;
|
|
2468
|
+
sealing: z.ZodObject<{
|
|
2469
|
+
scopeId: z.ZodString;
|
|
2470
|
+
epoch: z.ZodNumber;
|
|
2471
|
+
categories: z.ZodArray<z.ZodEnum<{
|
|
2472
|
+
"task-input": "task-input";
|
|
2473
|
+
"task-output": "task-output";
|
|
2474
|
+
}>>;
|
|
2868
2475
|
}, z.core.$strict>;
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2476
|
+
sealed: z.ZodOptional<z.ZodObject<{
|
|
2477
|
+
v: z.ZodLiteral<1>;
|
|
2478
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2479
|
+
category: z.ZodLiteral<"task-input">;
|
|
2480
|
+
scope: z.ZodObject<{
|
|
2481
|
+
id: z.ZodString;
|
|
2482
|
+
epoch: z.ZodNumber;
|
|
2483
|
+
keyId: z.ZodString;
|
|
2873
2484
|
}, z.core.$strict>;
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2485
|
+
chainHead: z.ZodObject<{
|
|
2486
|
+
seq: z.ZodNumber;
|
|
2487
|
+
hash: z.ZodString;
|
|
2488
|
+
}, z.core.$strict>;
|
|
2489
|
+
sender: z.ZodString;
|
|
2490
|
+
salt: z.ZodString;
|
|
2491
|
+
nonce: z.ZodString;
|
|
2492
|
+
paddedLength: z.ZodNumber;
|
|
2493
|
+
contentMac: z.ZodString;
|
|
2494
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2495
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2496
|
+
blobId: z.ZodString;
|
|
2497
|
+
contentHash: z.ZodString;
|
|
2498
|
+
size: z.ZodNumber;
|
|
2499
|
+
contentType: z.ZodString;
|
|
2500
|
+
}, z.core.$strict>>;
|
|
2501
|
+
}, z.core.$strict>>;
|
|
2502
|
+
routineRef: z.ZodOptional<z.ZodObject<{
|
|
2503
|
+
routineId: z.ZodString;
|
|
2504
|
+
definitionVersion: z.ZodNumber;
|
|
2505
|
+
notAfter: z.ZodString;
|
|
2506
|
+
}, z.core.$strict>>;
|
|
2507
|
+
}, z.core.$strict>;
|
|
2508
|
+
export type TaskOfferForAgentWithEgressFreshSealedPayload = z.infer<typeof TaskOfferForAgentWithEgressFreshSealedPayloadSchema>;
|
|
2509
|
+
/**
|
|
2510
|
+
* server -> daemon: sealed steering text. `steerId` names this steer in the
|
|
2511
|
+
* AAD and the content MAC, so the Host cannot replay an earlier steer of the
|
|
2512
|
+
* same task as a new one.
|
|
2513
|
+
*/
|
|
2514
|
+
export declare const TaskSteerSealedPayloadSchema: z.ZodObject<{
|
|
2515
|
+
steerId: z.ZodUUID;
|
|
2516
|
+
sealed: z.ZodObject<{
|
|
2517
|
+
v: z.ZodLiteral<1>;
|
|
2518
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2519
|
+
category: z.ZodLiteral<"task-input">;
|
|
2520
|
+
scope: z.ZodObject<{
|
|
2521
|
+
id: z.ZodString;
|
|
2522
|
+
epoch: z.ZodNumber;
|
|
2523
|
+
keyId: z.ZodString;
|
|
2524
|
+
}, z.core.$strict>;
|
|
2525
|
+
chainHead: z.ZodObject<{
|
|
2526
|
+
seq: z.ZodNumber;
|
|
2527
|
+
hash: z.ZodString;
|
|
2528
|
+
}, z.core.$strict>;
|
|
2529
|
+
sender: z.ZodString;
|
|
2530
|
+
salt: z.ZodString;
|
|
2531
|
+
nonce: z.ZodString;
|
|
2532
|
+
paddedLength: z.ZodNumber;
|
|
2533
|
+
contentMac: z.ZodString;
|
|
2534
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2535
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2536
|
+
blobId: z.ZodString;
|
|
2537
|
+
contentHash: z.ZodString;
|
|
2538
|
+
size: z.ZodNumber;
|
|
2539
|
+
contentType: z.ZodString;
|
|
2540
|
+
}, z.core.$strict>>;
|
|
2886
2541
|
}, z.core.$strict>;
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2542
|
+
}, z.core.$strict>;
|
|
2543
|
+
export type TaskSteerSealedPayload = z.infer<typeof TaskSteerSealedPayloadSchema>;
|
|
2544
|
+
/**
|
|
2545
|
+
* daemon -> server: `task.complete` of a sealed task. `summary`,
|
|
2546
|
+
* `finalMessage` and `document` are sealed. `artifactRefs` and
|
|
2547
|
+
* `preparedObservation` are not carried in v1.
|
|
2548
|
+
*/
|
|
2549
|
+
export declare const TaskCompleteSealedPayloadSchema: z.ZodObject<{
|
|
2550
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
2551
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2552
|
+
sessionRef: z.ZodString;
|
|
2553
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
2554
|
+
runtime: z.ZodEnum<{
|
|
2555
|
+
claude: "claude";
|
|
2556
|
+
codex: "codex";
|
|
2557
|
+
pi: "pi";
|
|
2893
2558
|
}>;
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2559
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2560
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2561
|
+
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
2562
|
+
completionTokens: z.ZodOptional<z.ZodNumber>;
|
|
2563
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2564
|
+
clientVersion: z.ZodString;
|
|
2565
|
+
reportedAt: z.ZodISODateTime;
|
|
2566
|
+
}, z.core.$strip>>;
|
|
2567
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
2568
|
+
agentId: z.ZodString;
|
|
2569
|
+
profileRevision: z.ZodString;
|
|
2570
|
+
}, z.core.$strict>>;
|
|
2571
|
+
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
2572
|
+
profileRevision: z.ZodString;
|
|
2573
|
+
projectionHash: z.ZodString;
|
|
2574
|
+
}, z.core.$strict>>;
|
|
2575
|
+
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2576
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
2577
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2578
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
2579
|
+
paths: z.ZodArray<z.ZodString>;
|
|
2580
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2581
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
2582
|
+
paths: z.ZodArray<z.ZodString>;
|
|
2583
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2584
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
2585
|
+
}, z.core.$strict>], "outcome">>;
|
|
2586
|
+
sealed: z.ZodObject<{
|
|
2587
|
+
v: z.ZodLiteral<1>;
|
|
2588
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2589
|
+
category: z.ZodLiteral<"task-output">;
|
|
2590
|
+
scope: z.ZodObject<{
|
|
2900
2591
|
id: z.ZodString;
|
|
2592
|
+
epoch: z.ZodNumber;
|
|
2593
|
+
keyId: z.ZodString;
|
|
2901
2594
|
}, z.core.$strict>;
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2595
|
+
chainHead: z.ZodObject<{
|
|
2596
|
+
seq: z.ZodNumber;
|
|
2597
|
+
hash: z.ZodString;
|
|
2905
2598
|
}, z.core.$strict>;
|
|
2906
|
-
|
|
2599
|
+
sender: z.ZodString;
|
|
2600
|
+
salt: z.ZodString;
|
|
2601
|
+
nonce: z.ZodString;
|
|
2602
|
+
paddedLength: z.ZodNumber;
|
|
2603
|
+
contentMac: z.ZodString;
|
|
2604
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2605
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2606
|
+
blobId: z.ZodString;
|
|
2607
|
+
contentHash: z.ZodString;
|
|
2608
|
+
size: z.ZodNumber;
|
|
2609
|
+
contentType: z.ZodString;
|
|
2610
|
+
}, z.core.$strict>>;
|
|
2611
|
+
}, z.core.$strict>;
|
|
2612
|
+
}, z.core.$strict>;
|
|
2613
|
+
export type TaskCompleteSealedPayload = z.infer<typeof TaskCompleteSealedPayloadSchema>;
|
|
2614
|
+
/** daemon -> server: `task.fail` of a sealed task. `reason` is sealed; `preparedObservation` is not carried in v1. */
|
|
2615
|
+
export declare const TaskFailSealedPayloadSchema: z.ZodObject<{
|
|
2616
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
2617
|
+
recovery: z.ZodOptional<z.ZodObject<{
|
|
2618
|
+
kind: z.ZodLiteral<"daemon_interrupted">;
|
|
2619
|
+
offerId: z.ZodUUID;
|
|
2620
|
+
}, z.core.$strict>>;
|
|
2621
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2622
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2623
|
+
failure: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2624
|
+
class: z.ZodLiteral<"quota">;
|
|
2625
|
+
resetsAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2626
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2627
|
+
class: z.ZodEnum<{
|
|
2628
|
+
auth: "auth";
|
|
2629
|
+
billing: "billing";
|
|
2630
|
+
input_too_large: "input_too_large";
|
|
2631
|
+
invalid_request: "invalid_request";
|
|
2632
|
+
limit_reached: "limit_reached";
|
|
2633
|
+
model_unavailable: "model_unavailable";
|
|
2634
|
+
output_schema: "output_schema";
|
|
2635
|
+
overloaded: "overloaded";
|
|
2636
|
+
provider: "provider";
|
|
2637
|
+
rate_limited: "rate_limited";
|
|
2638
|
+
runtime_exited: "runtime_exited";
|
|
2639
|
+
unknown: "unknown";
|
|
2640
|
+
}>;
|
|
2641
|
+
}, z.core.$strict>]>>;
|
|
2642
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
2907
2643
|
runtime: z.ZodEnum<{
|
|
2908
2644
|
claude: "claude";
|
|
2909
2645
|
codex: "codex";
|
|
2910
2646
|
pi: "pi";
|
|
2911
2647
|
}>;
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2648
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2649
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2650
|
+
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
2651
|
+
completionTokens: z.ZodOptional<z.ZodNumber>;
|
|
2652
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2653
|
+
clientVersion: z.ZodString;
|
|
2654
|
+
reportedAt: z.ZodISODateTime;
|
|
2655
|
+
}, z.core.$strip>>;
|
|
2656
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
2657
|
+
agentId: z.ZodString;
|
|
2658
|
+
profileRevision: z.ZodString;
|
|
2659
|
+
}, z.core.$strict>>;
|
|
2660
|
+
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
2661
|
+
profileRevision: z.ZodString;
|
|
2662
|
+
projectionHash: z.ZodString;
|
|
2663
|
+
}, z.core.$strict>>;
|
|
2664
|
+
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2665
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
2666
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2667
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
2668
|
+
paths: z.ZodArray<z.ZodString>;
|
|
2669
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2670
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
2671
|
+
paths: z.ZodArray<z.ZodString>;
|
|
2672
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2673
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
2674
|
+
}, z.core.$strict>], "outcome">>;
|
|
2675
|
+
sealed: z.ZodObject<{
|
|
2676
|
+
v: z.ZodLiteral<1>;
|
|
2677
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2678
|
+
category: z.ZodLiteral<"task-output">;
|
|
2679
|
+
scope: z.ZodObject<{
|
|
2940
2680
|
id: z.ZodString;
|
|
2681
|
+
epoch: z.ZodNumber;
|
|
2682
|
+
keyId: z.ZodString;
|
|
2941
2683
|
}, z.core.$strict>;
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2684
|
+
chainHead: z.ZodObject<{
|
|
2685
|
+
seq: z.ZodNumber;
|
|
2686
|
+
hash: z.ZodString;
|
|
2945
2687
|
}, z.core.$strict>;
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
policyRevision: z.ZodString;
|
|
2954
|
-
target: z.ZodString;
|
|
2955
|
-
mimeType: z.ZodString;
|
|
2956
|
-
decodeAs: z.ZodEnum<{
|
|
2957
|
-
bytes: "bytes";
|
|
2958
|
-
utf8: "utf8";
|
|
2959
|
-
}>;
|
|
2960
|
-
decision: z.ZodLiteral<"allowed">;
|
|
2961
|
-
byteCount: z.ZodNumber;
|
|
2962
|
-
contentHash: z.ZodString;
|
|
2963
|
-
blobRef: z.ZodObject<{
|
|
2688
|
+
sender: z.ZodString;
|
|
2689
|
+
salt: z.ZodString;
|
|
2690
|
+
nonce: z.ZodString;
|
|
2691
|
+
paddedLength: z.ZodNumber;
|
|
2692
|
+
contentMac: z.ZodString;
|
|
2693
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2694
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2964
2695
|
blobId: z.ZodString;
|
|
2965
2696
|
contentHash: z.ZodString;
|
|
2966
2697
|
size: z.ZodNumber;
|
|
2967
2698
|
contentType: z.ZodString;
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2699
|
+
}, z.core.$strict>>;
|
|
2700
|
+
}, z.core.$strict>;
|
|
2701
|
+
}, z.core.$strict>;
|
|
2702
|
+
export type TaskFailSealedPayload = z.infer<typeof TaskFailSealedPayloadSchema>;
|
|
2703
|
+
/**
|
|
2704
|
+
* daemon -> server: `task.decline` of a sealed task with a sealed `reason`.
|
|
2705
|
+
* The sealed decline codes go only on the plaintext `task.decline`: a device
|
|
2706
|
+
* that cannot open or use the scope key often cannot seal a reply either.
|
|
2707
|
+
*/
|
|
2708
|
+
export declare const TaskDeclineSealedPayloadSchema: z.ZodObject<{
|
|
2709
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
2710
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2711
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
2712
|
+
agentId: z.ZodString;
|
|
2713
|
+
profileRevision: z.ZodString;
|
|
2714
|
+
}, z.core.$strict>>;
|
|
2715
|
+
code: z.ZodOptional<z.ZodEnum<{
|
|
2716
|
+
agent_home_reader_busy: "agent_home_reader_busy";
|
|
2717
|
+
agent_home_writer_busy: "agent_home_writer_busy";
|
|
2718
|
+
}>>;
|
|
2719
|
+
sealed: z.ZodObject<{
|
|
2720
|
+
v: z.ZodLiteral<1>;
|
|
2721
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2722
|
+
category: z.ZodLiteral<"task-output">;
|
|
2723
|
+
scope: z.ZodObject<{
|
|
2985
2724
|
id: z.ZodString;
|
|
2725
|
+
epoch: z.ZodNumber;
|
|
2726
|
+
keyId: z.ZodString;
|
|
2986
2727
|
}, z.core.$strict>;
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2728
|
+
chainHead: z.ZodObject<{
|
|
2729
|
+
seq: z.ZodNumber;
|
|
2730
|
+
hash: z.ZodString;
|
|
2990
2731
|
}, z.core.$strict>;
|
|
2991
|
-
|
|
2732
|
+
sender: z.ZodString;
|
|
2733
|
+
salt: z.ZodString;
|
|
2734
|
+
nonce: z.ZodString;
|
|
2735
|
+
paddedLength: z.ZodNumber;
|
|
2736
|
+
contentMac: z.ZodString;
|
|
2737
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2738
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2739
|
+
blobId: z.ZodString;
|
|
2740
|
+
contentHash: z.ZodString;
|
|
2741
|
+
size: z.ZodNumber;
|
|
2742
|
+
contentType: z.ZodString;
|
|
2743
|
+
}, z.core.$strict>>;
|
|
2744
|
+
}, z.core.$strict>;
|
|
2745
|
+
}, z.core.$strict>;
|
|
2746
|
+
export type TaskDeclineSealedPayload = z.infer<typeof TaskDeclineSealedPayloadSchema>;
|
|
2747
|
+
/** daemon -> server: `task.cancelled` of a sealed task. `reason` is sealed. */
|
|
2748
|
+
export declare const TaskCancelledSealedPayloadSchema: z.ZodObject<{
|
|
2749
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
2750
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
2751
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
2992
2752
|
runtime: z.ZodEnum<{
|
|
2993
2753
|
claude: "claude";
|
|
2994
2754
|
codex: "codex";
|
|
2995
2755
|
pi: "pi";
|
|
2996
2756
|
}>;
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
"dot-segment": "dot-segment";
|
|
3012
|
-
"identity-mismatch": "identity-mismatch";
|
|
3013
|
-
"invalid-request": "invalid-request";
|
|
3014
|
-
"mime-not-allowlisted": "mime-not-allowlisted";
|
|
3015
|
-
"non-relative-target": "non-relative-target";
|
|
3016
|
-
"not-regular-file": "not-regular-file";
|
|
3017
|
-
"path-escape": "path-escape";
|
|
3018
|
-
"policy-disabled": "policy-disabled";
|
|
3019
|
-
"policy-revision-mismatch": "policy-revision-mismatch";
|
|
3020
|
-
"root-invalid": "root-invalid";
|
|
3021
|
-
"root-not-allowlisted": "root-not-allowlisted";
|
|
3022
|
-
"sensitive-name": "sensitive-name";
|
|
3023
|
-
symlink: "symlink";
|
|
3024
|
-
"target-missing": "target-missing";
|
|
3025
|
-
"text-decode-failed": "text-decode-failed";
|
|
3026
|
-
"text-not-allowlisted": "text-not-allowlisted";
|
|
3027
|
-
}>;
|
|
3028
|
-
}, z.core.$strict>], "decision">;
|
|
3029
|
-
readonly 'agent.home.projection': z.ZodObject<{
|
|
3030
|
-
requestId: z.ZodUUID;
|
|
3031
|
-
agentRef: z.ZodObject<{
|
|
3032
|
-
agentId: z.ZodString;
|
|
3033
|
-
profileRevision: z.ZodString;
|
|
3034
|
-
}, z.core.$strict>;
|
|
2757
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2758
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2759
|
+
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
2760
|
+
completionTokens: z.ZodOptional<z.ZodNumber>;
|
|
2761
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2762
|
+
clientVersion: z.ZodString;
|
|
2763
|
+
reportedAt: z.ZodISODateTime;
|
|
2764
|
+
}, z.core.$strip>>;
|
|
2765
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
2766
|
+
agentId: z.ZodString;
|
|
2767
|
+
profileRevision: z.ZodString;
|
|
2768
|
+
}, z.core.$strict>>;
|
|
2769
|
+
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
2770
|
+
profileRevision: z.ZodString;
|
|
3035
2771
|
projectionHash: z.ZodString;
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
2772
|
+
}, z.core.$strict>>;
|
|
2773
|
+
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2774
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
2775
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2776
|
+
outcome: z.ZodLiteral<"reader-attributed">;
|
|
2777
|
+
paths: z.ZodArray<z.ZodString>;
|
|
2778
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2779
|
+
outcome: z.ZodLiteral<"unattributed">;
|
|
2780
|
+
paths: z.ZodArray<z.ZodString>;
|
|
2781
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2782
|
+
outcome: z.ZodLiteral<"unmeasured">;
|
|
2783
|
+
}, z.core.$strict>], "outcome">>;
|
|
2784
|
+
sealed: z.ZodObject<{
|
|
2785
|
+
v: z.ZodLiteral<1>;
|
|
2786
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2787
|
+
category: z.ZodLiteral<"task-output">;
|
|
2788
|
+
scope: z.ZodObject<{
|
|
2789
|
+
id: z.ZodString;
|
|
2790
|
+
epoch: z.ZodNumber;
|
|
2791
|
+
keyId: z.ZodString;
|
|
3054
2792
|
}, z.core.$strict>;
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
name: z.ZodString;
|
|
3059
|
-
api: z.ZodLiteral<"openai-completions">;
|
|
3060
|
-
provider: z.ZodString;
|
|
3061
|
-
baseUrl: z.ZodString;
|
|
3062
|
-
reasoning: z.ZodBoolean;
|
|
3063
|
-
input: z.ZodArray<z.ZodEnum<{
|
|
3064
|
-
image: "image";
|
|
3065
|
-
text: "text";
|
|
3066
|
-
}>>;
|
|
3067
|
-
cost: z.ZodObject<{
|
|
3068
|
-
input: z.ZodNumber;
|
|
3069
|
-
output: z.ZodNumber;
|
|
3070
|
-
cacheRead: z.ZodNumber;
|
|
3071
|
-
cacheWrite: z.ZodNumber;
|
|
3072
|
-
}, z.core.$strict>;
|
|
3073
|
-
contextWindow: z.ZodNumber;
|
|
3074
|
-
maxTokens: z.ZodNumber;
|
|
3075
|
-
thinkingLevelMap: z.ZodOptional<z.ZodObject<{
|
|
3076
|
-
off: z.ZodNullable<z.ZodString>;
|
|
3077
|
-
minimal: z.ZodNullable<z.ZodString>;
|
|
3078
|
-
low: z.ZodNullable<z.ZodString>;
|
|
3079
|
-
medium: z.ZodNullable<z.ZodString>;
|
|
3080
|
-
high: z.ZodNullable<z.ZodString>;
|
|
3081
|
-
xhigh: z.ZodNullable<z.ZodString>;
|
|
3082
|
-
max: z.ZodNullable<z.ZodString>;
|
|
3083
|
-
}, z.core.$strict>>;
|
|
3084
|
-
compat: z.ZodOptional<z.ZodObject<{
|
|
3085
|
-
supportsStore: z.ZodOptional<z.ZodBoolean>;
|
|
3086
|
-
supportsDeveloperRole: z.ZodOptional<z.ZodBoolean>;
|
|
3087
|
-
supportsReasoningEffort: z.ZodOptional<z.ZodBoolean>;
|
|
3088
|
-
supportsUsageInStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
3089
|
-
maxTokensField: z.ZodOptional<z.ZodEnum<{
|
|
3090
|
-
max_completion_tokens: "max_completion_tokens";
|
|
3091
|
-
max_tokens: "max_tokens";
|
|
3092
|
-
}>>;
|
|
3093
|
-
thinkingFormat: z.ZodOptional<z.ZodEnum<{
|
|
3094
|
-
"ant-ling": "ant-ling";
|
|
3095
|
-
baseten: "baseten";
|
|
3096
|
-
"chat-template": "chat-template";
|
|
3097
|
-
deepseek: "deepseek";
|
|
3098
|
-
openai: "openai";
|
|
3099
|
-
openrouter: "openrouter";
|
|
3100
|
-
qwen: "qwen";
|
|
3101
|
-
"qwen-chat-template": "qwen-chat-template";
|
|
3102
|
-
"string-thinking": "string-thinking";
|
|
3103
|
-
together: "together";
|
|
3104
|
-
zai: "zai";
|
|
3105
|
-
}>>;
|
|
3106
|
-
zaiToolStream: z.ZodOptional<z.ZodBoolean>;
|
|
3107
|
-
}, z.core.$strict>>;
|
|
3108
|
-
}, z.core.$strict>;
|
|
3109
|
-
options: z.ZodObject<{
|
|
3110
|
-
cacheRetention: z.ZodEnum<{
|
|
3111
|
-
long: "long";
|
|
3112
|
-
none: "none";
|
|
3113
|
-
short: "short";
|
|
3114
|
-
}>;
|
|
3115
|
-
maxTokens: z.ZodNumber;
|
|
3116
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
3117
|
-
toolChoice: z.ZodOptional<z.ZodEnum<{
|
|
3118
|
-
auto: "auto";
|
|
3119
|
-
none: "none";
|
|
3120
|
-
}>>;
|
|
3121
|
-
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
3122
|
-
high: "high";
|
|
3123
|
-
low: "low";
|
|
3124
|
-
max: "max";
|
|
3125
|
-
medium: "medium";
|
|
3126
|
-
minimal: "minimal";
|
|
3127
|
-
xhigh: "xhigh";
|
|
3128
|
-
}>>;
|
|
3129
|
-
}, z.core.$strict>;
|
|
2793
|
+
chainHead: z.ZodObject<{
|
|
2794
|
+
seq: z.ZodNumber;
|
|
2795
|
+
hash: z.ZodString;
|
|
3130
2796
|
}, z.core.$strict>;
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
contentType: z.ZodString;
|
|
3140
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3141
|
-
}, z.core.$strip>;
|
|
2797
|
+
sender: z.ZodString;
|
|
2798
|
+
salt: z.ZodString;
|
|
2799
|
+
nonce: z.ZodString;
|
|
2800
|
+
paddedLength: z.ZodNumber;
|
|
2801
|
+
contentMac: z.ZodString;
|
|
2802
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2803
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2804
|
+
blobId: z.ZodString;
|
|
3142
2805
|
contentHash: z.ZodString;
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
accountingPolicyRef: z.ZodOptional<z.ZodObject<{
|
|
3146
|
-
revision: z.ZodString;
|
|
3147
|
-
ruledRuntime: z.ZodString;
|
|
3148
|
-
ruledTarget: z.ZodObject<{
|
|
3149
|
-
endpoint: z.ZodString;
|
|
3150
|
-
modelId: z.ZodString;
|
|
3151
|
-
}, z.core.$strict>;
|
|
3152
|
-
ruledResidualKeys: z.ZodArray<z.ZodString>;
|
|
2806
|
+
size: z.ZodNumber;
|
|
2807
|
+
contentType: z.ZodString;
|
|
3153
2808
|
}, z.core.$strict>>;
|
|
3154
2809
|
}, z.core.$strict>;
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
2810
|
+
}, z.core.$strict>;
|
|
2811
|
+
export type TaskCancelledSealedPayload = z.infer<typeof TaskCancelledSealedPayloadSchema>;
|
|
2812
|
+
/** daemon -> server: `task.progress` of a sealed task. `events` is sealed; `seq` names the batch. */
|
|
2813
|
+
export declare const TaskProgressSealedPayloadSchema: z.ZodObject<{
|
|
2814
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
2815
|
+
seq: z.ZodNumber;
|
|
2816
|
+
sealed: z.ZodObject<{
|
|
2817
|
+
v: z.ZodLiteral<1>;
|
|
2818
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2819
|
+
category: z.ZodLiteral<"task-output">;
|
|
2820
|
+
scope: z.ZodObject<{
|
|
2821
|
+
id: z.ZodString;
|
|
2822
|
+
epoch: z.ZodNumber;
|
|
2823
|
+
keyId: z.ZodString;
|
|
3163
2824
|
}, z.core.$strict>;
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
readonly 'task.steer': z.ZodObject<{
|
|
3176
|
-
text: z.ZodString;
|
|
3177
|
-
}, z.core.$strip>;
|
|
3178
|
-
readonly 'task.claim': z.ZodObject<{
|
|
3179
|
-
deviceId: z.ZodString;
|
|
3180
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
3181
|
-
agentRef: z.ZodOptional<z.ZodObject<{
|
|
3182
|
-
agentId: z.ZodString;
|
|
3183
|
-
profileRevision: z.ZodString;
|
|
3184
|
-
}, z.core.$strict>>;
|
|
3185
|
-
runtime: z.ZodOptional<z.ZodEnum<{
|
|
3186
|
-
claude: "claude";
|
|
3187
|
-
codex: "codex";
|
|
3188
|
-
pi: "pi";
|
|
3189
|
-
}>>;
|
|
3190
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
3191
|
-
capabilities: z.ZodOptional<z.ZodObject<{
|
|
3192
|
-
steer: z.ZodOptional<z.ZodBoolean>;
|
|
3193
|
-
resume: z.ZodOptional<z.ZodBoolean>;
|
|
3194
|
-
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
3195
|
-
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
3196
|
-
messageDraft: z.ZodOptional<z.ZodBoolean>;
|
|
3197
|
-
}, z.core.$strip>>;
|
|
3198
|
-
}, z.core.$strip>;
|
|
3199
|
-
readonly 'task.started': z.ZodObject<{}, z.core.$strip>;
|
|
3200
|
-
readonly 'task.decline': z.ZodObject<{
|
|
3201
|
-
reason: z.ZodString;
|
|
3202
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
3203
|
-
agentRef: z.ZodOptional<z.ZodObject<{
|
|
3204
|
-
agentId: z.ZodString;
|
|
3205
|
-
profileRevision: z.ZodString;
|
|
3206
|
-
}, z.core.$strict>>;
|
|
3207
|
-
code: z.ZodOptional<z.ZodEnum<{
|
|
3208
|
-
agent_home_reader_busy: "agent_home_reader_busy";
|
|
3209
|
-
agent_home_writer_busy: "agent_home_writer_busy";
|
|
3210
|
-
}>>;
|
|
3211
|
-
}, z.core.$strip>;
|
|
3212
|
-
readonly 'task.progress': z.ZodObject<{
|
|
3213
|
-
seq: z.ZodNumber;
|
|
3214
|
-
events: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3215
|
-
type: z.ZodLiteral<"progress">;
|
|
3216
|
-
text: z.ZodString;
|
|
3217
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3218
|
-
type: z.ZodLiteral<"tool_use">;
|
|
3219
|
-
tool: z.ZodString;
|
|
3220
|
-
mcp: z.ZodOptional<z.ZodObject<{
|
|
3221
|
-
server: z.ZodString;
|
|
3222
|
-
tool: z.ZodString;
|
|
3223
|
-
}, z.core.$strict>>;
|
|
3224
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
3225
|
-
toolCallId: z.ZodOptional<z.ZodString>;
|
|
3226
|
-
spill: z.ZodOptional<z.ZodObject<{
|
|
3227
|
-
field: z.ZodEnum<{
|
|
3228
|
-
input: "input";
|
|
3229
|
-
output: "output";
|
|
3230
|
-
}>;
|
|
3231
|
-
totalBytes: z.ZodNumber;
|
|
3232
|
-
omittedBytes: z.ZodNumber;
|
|
3233
|
-
contentType: z.ZodLiteral<"application/json">;
|
|
3234
|
-
blob: z.ZodOptional<z.ZodObject<{
|
|
3235
|
-
blobId: z.ZodString;
|
|
3236
|
-
contentHash: z.ZodString;
|
|
3237
|
-
size: z.ZodNumber;
|
|
3238
|
-
contentType: z.ZodString;
|
|
3239
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3240
|
-
}, z.core.$strip>>;
|
|
3241
|
-
unstoredReason: z.ZodOptional<z.ZodString>;
|
|
3242
|
-
}, z.core.$strict>>;
|
|
3243
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3244
|
-
type: z.ZodLiteral<"tool_result">;
|
|
3245
|
-
tool: z.ZodString;
|
|
3246
|
-
mcp: z.ZodOptional<z.ZodObject<{
|
|
3247
|
-
server: z.ZodString;
|
|
3248
|
-
tool: z.ZodString;
|
|
3249
|
-
}, z.core.$strict>>;
|
|
3250
|
-
output: z.ZodOptional<z.ZodUnknown>;
|
|
3251
|
-
toolCallId: z.ZodOptional<z.ZodString>;
|
|
3252
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
|
3253
|
-
spill: z.ZodOptional<z.ZodObject<{
|
|
3254
|
-
field: z.ZodEnum<{
|
|
3255
|
-
input: "input";
|
|
3256
|
-
output: "output";
|
|
3257
|
-
}>;
|
|
3258
|
-
totalBytes: z.ZodNumber;
|
|
3259
|
-
omittedBytes: z.ZodNumber;
|
|
3260
|
-
contentType: z.ZodLiteral<"application/json">;
|
|
3261
|
-
blob: z.ZodOptional<z.ZodObject<{
|
|
3262
|
-
blobId: z.ZodString;
|
|
3263
|
-
contentHash: z.ZodString;
|
|
3264
|
-
size: z.ZodNumber;
|
|
3265
|
-
contentType: z.ZodString;
|
|
3266
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3267
|
-
}, z.core.$strip>>;
|
|
3268
|
-
unstoredReason: z.ZodOptional<z.ZodString>;
|
|
3269
|
-
}, z.core.$strict>>;
|
|
3270
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3271
|
-
type: z.ZodLiteral<"artifact">;
|
|
3272
|
-
name: z.ZodString;
|
|
3273
|
-
contentType: z.ZodString;
|
|
3274
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3275
|
-
type: z.ZodLiteral<"needs_approval">;
|
|
3276
|
-
summary: z.ZodString;
|
|
3277
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3278
|
-
type: z.ZodLiteral<"turn_end">;
|
|
3279
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3280
|
-
type: z.ZodLiteral<"error">;
|
|
3281
|
-
message: z.ZodString;
|
|
3282
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3283
|
-
type: z.ZodLiteral<"usage">;
|
|
3284
|
-
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3285
|
-
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3286
|
-
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3287
|
-
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
3288
|
-
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
3289
|
-
contextTokens: z.ZodOptional<z.ZodNumber>;
|
|
3290
|
-
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
3291
|
-
contextSource: z.ZodOptional<z.ZodEnum<{
|
|
3292
|
-
estimate: "estimate";
|
|
3293
|
-
provider: "provider";
|
|
3294
|
-
}>>;
|
|
3295
|
-
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
3296
|
-
type: z.ZodString;
|
|
3297
|
-
}, z.core.$loose>]>>;
|
|
3298
|
-
}, z.core.$strip>;
|
|
3299
|
-
readonly 'task.artifact': z.ZodObject<{
|
|
3300
|
-
name: z.ZodString;
|
|
3301
|
-
contentType: z.ZodString;
|
|
3302
|
-
inline: z.ZodOptional<z.ZodString>;
|
|
3303
|
-
blobRef: z.ZodOptional<z.ZodObject<{
|
|
2825
|
+
chainHead: z.ZodObject<{
|
|
2826
|
+
seq: z.ZodNumber;
|
|
2827
|
+
hash: z.ZodString;
|
|
2828
|
+
}, z.core.$strict>;
|
|
2829
|
+
sender: z.ZodString;
|
|
2830
|
+
salt: z.ZodString;
|
|
2831
|
+
nonce: z.ZodString;
|
|
2832
|
+
paddedLength: z.ZodNumber;
|
|
2833
|
+
contentMac: z.ZodString;
|
|
2834
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2835
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
3304
2836
|
blobId: z.ZodString;
|
|
3305
2837
|
contentHash: z.ZodString;
|
|
3306
2838
|
size: z.ZodNumber;
|
|
3307
2839
|
contentType: z.ZodString;
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
2840
|
+
}, z.core.$strict>>;
|
|
2841
|
+
}, z.core.$strict>;
|
|
2842
|
+
}, z.core.$strict>;
|
|
2843
|
+
export type TaskProgressSealedPayload = z.infer<typeof TaskProgressSealedPayloadSchema>;
|
|
2844
|
+
/**
|
|
2845
|
+
* daemon -> server: an inline artifact of a sealed task. `inline` is sealed; a
|
|
2846
|
+
* blob artifact is not carried in v1. `artifactId` names the write in the AAD
|
|
2847
|
+
* and the content MAC, because two artifacts of one task may share a `name`.
|
|
2848
|
+
*/
|
|
2849
|
+
export declare const TaskArtifactSealedPayloadSchema: z.ZodObject<{
|
|
2850
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
2851
|
+
name: z.ZodString;
|
|
2852
|
+
contentType: z.ZodString;
|
|
2853
|
+
artifactId: z.ZodUUID;
|
|
2854
|
+
sealed: z.ZodObject<{
|
|
2855
|
+
v: z.ZodLiteral<1>;
|
|
2856
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2857
|
+
category: z.ZodLiteral<"task-output">;
|
|
2858
|
+
scope: z.ZodObject<{
|
|
2859
|
+
id: z.ZodString;
|
|
2860
|
+
epoch: z.ZodNumber;
|
|
2861
|
+
keyId: z.ZodString;
|
|
2862
|
+
}, z.core.$strict>;
|
|
2863
|
+
chainHead: z.ZodObject<{
|
|
2864
|
+
seq: z.ZodNumber;
|
|
2865
|
+
hash: z.ZodString;
|
|
2866
|
+
}, z.core.$strict>;
|
|
2867
|
+
sender: z.ZodString;
|
|
2868
|
+
salt: z.ZodString;
|
|
2869
|
+
nonce: z.ZodString;
|
|
2870
|
+
paddedLength: z.ZodNumber;
|
|
2871
|
+
contentMac: z.ZodString;
|
|
2872
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2873
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
3321
2874
|
blobId: z.ZodString;
|
|
3322
2875
|
contentHash: z.ZodString;
|
|
3323
2876
|
size: z.ZodNumber;
|
|
3324
2877
|
contentType: z.ZodString;
|
|
3325
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3326
|
-
}, z.core.$strip>>>;
|
|
3327
|
-
document: z.ZodOptional<z.ZodUnknown>;
|
|
3328
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
3329
|
-
runtime: z.ZodEnum<{
|
|
3330
|
-
claude: "claude";
|
|
3331
|
-
codex: "codex";
|
|
3332
|
-
pi: "pi";
|
|
3333
|
-
}>;
|
|
3334
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
3335
|
-
model: z.ZodOptional<z.ZodString>;
|
|
3336
|
-
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
3337
|
-
completionTokens: z.ZodOptional<z.ZodNumber>;
|
|
3338
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3339
|
-
clientVersion: z.ZodString;
|
|
3340
|
-
reportedAt: z.ZodISODateTime;
|
|
3341
|
-
}, z.core.$strip>>;
|
|
3342
|
-
preparedObservation: z.ZodOptional<z.ZodObject<{
|
|
3343
|
-
requestDigest: z.ZodString;
|
|
3344
|
-
initialPromptTokens: z.ZodNumber;
|
|
3345
|
-
maxPromptTokens: z.ZodNumber;
|
|
3346
|
-
}, z.core.$strict>>;
|
|
3347
|
-
agentRef: z.ZodOptional<z.ZodObject<{
|
|
3348
|
-
agentId: z.ZodString;
|
|
3349
|
-
profileRevision: z.ZodString;
|
|
3350
|
-
}, z.core.$strict>>;
|
|
3351
|
-
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
3352
|
-
profileRevision: z.ZodString;
|
|
3353
|
-
projectionHash: z.ZodString;
|
|
3354
|
-
}, z.core.$strict>>;
|
|
3355
|
-
agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3356
|
-
outcome: z.ZodLiteral<"unchanged">;
|
|
3357
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
3358
|
-
outcome: z.ZodLiteral<"reader-attributed">;
|
|
3359
|
-
paths: z.ZodArray<z.ZodString>;
|
|
3360
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
3361
|
-
outcome: z.ZodLiteral<"unattributed">;
|
|
3362
|
-
paths: z.ZodArray<z.ZodString>;
|
|
3363
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
3364
|
-
outcome: z.ZodLiteral<"unmeasured">;
|
|
3365
|
-
}, z.core.$strict>], "outcome">>;
|
|
3366
|
-
}, z.core.$strip>;
|
|
3367
|
-
readonly 'task.fail': z.ZodObject<{
|
|
3368
|
-
recovery: z.ZodOptional<z.ZodObject<{
|
|
3369
|
-
kind: z.ZodLiteral<"daemon_interrupted">;
|
|
3370
|
-
offerId: z.ZodUUID;
|
|
3371
|
-
}, z.core.$strict>>;
|
|
3372
|
-
harnessId: z.ZodOptional<z.ZodString>;
|
|
3373
|
-
reason: z.ZodString;
|
|
3374
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
3375
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
3376
|
-
runtime: z.ZodEnum<{
|
|
3377
|
-
claude: "claude";
|
|
3378
|
-
codex: "codex";
|
|
3379
|
-
pi: "pi";
|
|
3380
|
-
}>;
|
|
3381
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
3382
|
-
model: z.ZodOptional<z.ZodString>;
|
|
3383
|
-
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
3384
|
-
completionTokens: z.ZodOptional<z.ZodNumber>;
|
|
3385
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3386
|
-
clientVersion: z.ZodString;
|
|
3387
|
-
reportedAt: z.ZodISODateTime;
|
|
3388
|
-
}, z.core.$strip>>;
|
|
3389
|
-
preparedObservation: z.ZodOptional<z.ZodObject<{
|
|
3390
|
-
requestDigest: z.ZodString;
|
|
3391
|
-
initialPromptTokens: z.ZodNumber;
|
|
3392
|
-
maxPromptTokens: z.ZodNumber;
|
|
3393
|
-
}, z.core.$strict>>;
|
|
3394
|
-
agentRef: z.ZodOptional<z.ZodObject<{
|
|
3395
|
-
agentId: z.ZodString;
|
|
3396
|
-
profileRevision: z.ZodString;
|
|
3397
|
-
}, z.core.$strict>>;
|
|
3398
|
-
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
3399
|
-
profileRevision: z.ZodString;
|
|
3400
|
-
projectionHash: z.ZodString;
|
|
3401
2878
|
}, z.core.$strict>>;
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
profileRevision: z.ZodString;
|
|
3434
|
-
}, z.core.$strict>>;
|
|
3435
|
-
agentHomeProjection: z.ZodOptional<z.ZodObject<{
|
|
3436
|
-
profileRevision: z.ZodString;
|
|
3437
|
-
projectionHash: z.ZodString;
|
|
2879
|
+
}, z.core.$strict>;
|
|
2880
|
+
}, z.core.$strict>;
|
|
2881
|
+
export type TaskArtifactSealedPayload = z.infer<typeof TaskArtifactSealedPayloadSchema>;
|
|
2882
|
+
/** daemon -> server: `task.await_approval` of a sealed task. `summary` is sealed; `approvalId` is required. */
|
|
2883
|
+
export declare const TaskAwaitApprovalSealedPayloadSchema: z.ZodObject<{
|
|
2884
|
+
sealing: z.ZodOptional<z.ZodNever>;
|
|
2885
|
+
approvalId: z.ZodString;
|
|
2886
|
+
sealed: z.ZodObject<{
|
|
2887
|
+
v: z.ZodLiteral<1>;
|
|
2888
|
+
suite: z.ZodLiteral<"byok-sealed-v1.hkdf-sha256.aes-256-gcm">;
|
|
2889
|
+
category: z.ZodLiteral<"task-output">;
|
|
2890
|
+
scope: z.ZodObject<{
|
|
2891
|
+
id: z.ZodString;
|
|
2892
|
+
epoch: z.ZodNumber;
|
|
2893
|
+
keyId: z.ZodString;
|
|
2894
|
+
}, z.core.$strict>;
|
|
2895
|
+
chainHead: z.ZodObject<{
|
|
2896
|
+
seq: z.ZodNumber;
|
|
2897
|
+
hash: z.ZodString;
|
|
2898
|
+
}, z.core.$strict>;
|
|
2899
|
+
sender: z.ZodString;
|
|
2900
|
+
salt: z.ZodString;
|
|
2901
|
+
nonce: z.ZodString;
|
|
2902
|
+
paddedLength: z.ZodNumber;
|
|
2903
|
+
contentMac: z.ZodString;
|
|
2904
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
2905
|
+
ciphertextRef: z.ZodOptional<z.ZodObject<{
|
|
2906
|
+
blobId: z.ZodString;
|
|
2907
|
+
contentHash: z.ZodString;
|
|
2908
|
+
size: z.ZodNumber;
|
|
2909
|
+
contentType: z.ZodString;
|
|
3438
2910
|
}, z.core.$strict>>;
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
readonly 'task.
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
2911
|
+
}, z.core.$strict>;
|
|
2912
|
+
}, z.core.$strict>;
|
|
2913
|
+
export type TaskAwaitApprovalSealedPayload = z.infer<typeof TaskAwaitApprovalSealedPayloadSchema>;
|
|
2914
|
+
/**
|
|
2915
|
+
* Protocol-owned task-opening family; the wire registry consumes these same entries.
|
|
2916
|
+
*
|
|
2917
|
+
* Each value is written `X as typeof X`, here and in `MESSAGE_PAYLOAD_SCHEMAS`.
|
|
2918
|
+
* The assertion is type-only (no runtime code). It makes declaration emit
|
|
2919
|
+
* name each schema (`typeof X`) instead of copying its full type, which keeps
|
|
2920
|
+
* the published `.d.ts` small. Every new entry follows this rule.
|
|
2921
|
+
*/
|
|
2922
|
+
declare const TASK_OFFER_PAYLOAD_SCHEMAS: {
|
|
2923
|
+
readonly 'task.offer': typeof TaskOfferPayloadSchema;
|
|
2924
|
+
readonly 'task.offer_with_toolsets': typeof TaskOfferWithToolsetsPayloadSchema;
|
|
2925
|
+
readonly 'task.offer_for_agent': typeof TaskOfferForAgentPayloadSchema;
|
|
2926
|
+
readonly 'task.offer_for_agent_with_egress': typeof TaskOfferForAgentWithEgressPayloadSchema;
|
|
2927
|
+
readonly 'task.offer_for_agent_with_egress_fresh': typeof TaskOfferForAgentWithEgressFreshPayloadSchema;
|
|
2928
|
+
readonly 'task.offer_prepared': typeof TaskOfferPreparedPayloadSchema;
|
|
2929
|
+
readonly 'task.offer_sealed': typeof TaskOfferSealedPayloadSchema;
|
|
2930
|
+
readonly 'task.offer_with_toolsets_sealed': typeof TaskOfferWithToolsetsSealedPayloadSchema;
|
|
2931
|
+
readonly 'task.offer_for_agent_sealed': typeof TaskOfferForAgentSealedPayloadSchema;
|
|
2932
|
+
readonly 'task.offer_for_agent_with_egress_sealed': typeof TaskOfferForAgentWithEgressSealedPayloadSchema;
|
|
2933
|
+
readonly 'task.offer_for_agent_with_egress_fresh_sealed': typeof TaskOfferForAgentWithEgressFreshSealedPayloadSchema;
|
|
2934
|
+
};
|
|
2935
|
+
export type TaskOfferType = keyof typeof TASK_OFFER_PAYLOAD_SCHEMAS;
|
|
2936
|
+
export declare const TASK_OFFER_TYPES: readonly TaskOfferType[];
|
|
2937
|
+
/** Classify task-opening offers without duplicating the protocol registry in consumers. */
|
|
2938
|
+
export declare function isTaskOfferType(type: string): type is TaskOfferType;
|
|
2939
|
+
export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
2940
|
+
readonly 'task.offer': typeof TaskOfferPayloadSchema;
|
|
2941
|
+
readonly 'task.offer_with_toolsets': typeof TaskOfferWithToolsetsPayloadSchema;
|
|
2942
|
+
readonly 'task.offer_for_agent': typeof TaskOfferForAgentPayloadSchema;
|
|
2943
|
+
readonly 'task.offer_for_agent_with_egress': typeof TaskOfferForAgentWithEgressPayloadSchema;
|
|
2944
|
+
readonly 'task.offer_for_agent_with_egress_fresh': typeof TaskOfferForAgentWithEgressFreshPayloadSchema;
|
|
2945
|
+
readonly 'task.offer_prepared': typeof TaskOfferPreparedPayloadSchema;
|
|
2946
|
+
readonly 'task.offer_sealed': typeof TaskOfferSealedPayloadSchema;
|
|
2947
|
+
readonly 'task.offer_with_toolsets_sealed': typeof TaskOfferWithToolsetsSealedPayloadSchema;
|
|
2948
|
+
readonly 'task.offer_for_agent_sealed': typeof TaskOfferForAgentSealedPayloadSchema;
|
|
2949
|
+
readonly 'task.offer_for_agent_with_egress_sealed': typeof TaskOfferForAgentWithEgressSealedPayloadSchema;
|
|
2950
|
+
readonly 'task.offer_for_agent_with_egress_fresh_sealed': typeof TaskOfferForAgentWithEgressFreshSealedPayloadSchema;
|
|
2951
|
+
readonly 'conn.hello': typeof ConnHelloPayloadSchema;
|
|
2952
|
+
readonly 'conn.ack': typeof ConnAckPayloadSchema;
|
|
2953
|
+
readonly 'agent.egress.reliable': typeof AgentEgressReliablePayloadSchema;
|
|
2954
|
+
readonly 'agent.egress.ack': typeof AgentEgressAckPayloadSchema;
|
|
2955
|
+
readonly 'agent.message.draft': typeof AgentMessageDraftPayloadSchema;
|
|
2956
|
+
readonly 'agent.message.publish': typeof AgentMessagePublishPayloadSchema;
|
|
2957
|
+
readonly 'agent.message.disposition': typeof AgentMessageDispositionPayloadSchema;
|
|
2958
|
+
readonly 'agent.content.read': typeof AgentContentReadPayloadSchema;
|
|
2959
|
+
readonly 'agent.content.receipt': typeof AgentContentReceiptPayloadSchema;
|
|
2960
|
+
readonly 'agent.home.projection': typeof AgentHomeProjectionPayloadSchema;
|
|
2961
|
+
readonly 'agent.input.preparation': typeof AgentInputPreparationPayloadSchema;
|
|
2962
|
+
readonly 'provider.provisioning.available': typeof ProviderProvisioningAvailablePayloadSchema;
|
|
2963
|
+
readonly 'agent.memory.intent.available': typeof AgentMemoryIntentAvailablePayloadSchema;
|
|
2964
|
+
readonly 'task.approve': typeof TaskApprovePayloadSchema;
|
|
2965
|
+
readonly 'task.reject': typeof TaskRejectPayloadSchema;
|
|
2966
|
+
readonly 'task.cancel': typeof TaskCancelPayloadSchema;
|
|
2967
|
+
readonly 'task.steer': typeof TaskSteerPayloadSchema;
|
|
2968
|
+
readonly 'task.claim': typeof TaskClaimPayloadSchema;
|
|
2969
|
+
readonly 'task.started': typeof TaskStartedPayloadSchema;
|
|
2970
|
+
readonly 'task.decline': typeof TaskDeclinePayloadSchema;
|
|
2971
|
+
readonly 'task.progress': typeof TaskProgressPayloadSchema;
|
|
2972
|
+
readonly 'task.artifact': typeof TaskArtifactPayloadSchema;
|
|
2973
|
+
readonly 'task.await_approval': typeof TaskAwaitApprovalPayloadSchema;
|
|
2974
|
+
readonly 'task.complete': typeof TaskCompletePayloadSchema;
|
|
2975
|
+
readonly 'task.fail': typeof TaskFailPayloadSchema;
|
|
2976
|
+
readonly 'task.cancelled': typeof TaskCancelledPayloadSchema;
|
|
2977
|
+
readonly 'task.approval_resolved': typeof TaskApprovalResolvedPayloadSchema;
|
|
2978
|
+
readonly 'task.steer_sealed': typeof TaskSteerSealedPayloadSchema;
|
|
2979
|
+
readonly 'task.complete_sealed': typeof TaskCompleteSealedPayloadSchema;
|
|
2980
|
+
readonly 'task.fail_sealed': typeof TaskFailSealedPayloadSchema;
|
|
2981
|
+
readonly 'task.decline_sealed': typeof TaskDeclineSealedPayloadSchema;
|
|
2982
|
+
readonly 'task.cancelled_sealed': typeof TaskCancelledSealedPayloadSchema;
|
|
2983
|
+
readonly 'task.progress_sealed': typeof TaskProgressSealedPayloadSchema;
|
|
2984
|
+
readonly 'task.artifact_sealed': typeof TaskArtifactSealedPayloadSchema;
|
|
2985
|
+
readonly 'task.await_approval_sealed': typeof TaskAwaitApprovalSealedPayloadSchema;
|
|
2986
|
+
readonly 'e2ee.key_package.available': typeof E2eeKeyPackageAvailablePayloadSchema;
|
|
3462
2987
|
};
|
|
3463
2988
|
export type MessageType = keyof typeof MESSAGE_PAYLOAD_SCHEMAS;
|
|
3464
2989
|
export declare const MESSAGE_TYPES: MessageType[];
|
|
@@ -3467,7 +2992,7 @@ export declare const MESSAGE_TYPES: MessageType[];
|
|
|
3467
2992
|
* (`envelope.ts`) to decide which branches require envelope `seq` (M1
|
|
3468
2993
|
* redelivery cursor).
|
|
3469
2994
|
*/
|
|
3470
|
-
export declare const SERVER_TO_DAEMON_TYPES: readonly ["conn.ack", "task.offer", "task.offer_with_toolsets", "task.offer_for_agent", "task.offer_for_agent_with_egress", "task.offer_for_agent_with_egress_fresh", "task.offer_prepared", "agent.egress.ack", "agent.message.disposition", "agent.content.read", "agent.home.projection", "agent.input.preparation", "provider.provisioning.available", "agent.memory.intent.available", "task.approve", "task.reject", "task.cancel", "task.steer"];
|
|
2995
|
+
export declare const SERVER_TO_DAEMON_TYPES: readonly ["conn.ack", "task.offer", "task.offer_with_toolsets", "task.offer_for_agent", "task.offer_for_agent_with_egress", "task.offer_for_agent_with_egress_fresh", "task.offer_prepared", "agent.egress.ack", "agent.message.disposition", "agent.content.read", "agent.home.projection", "agent.input.preparation", "provider.provisioning.available", "agent.memory.intent.available", "task.approve", "task.reject", "task.cancel", "task.steer", "task.offer_sealed", "task.offer_with_toolsets_sealed", "task.offer_for_agent_sealed", "task.offer_for_agent_with_egress_sealed", "task.offer_for_agent_with_egress_fresh_sealed", "task.steer_sealed", "e2ee.key_package.available"];
|
|
3471
2996
|
/**
|
|
3472
2997
|
* Message types the daemon sends to the server — the flip side of
|
|
3473
2998
|
* {@link SERVER_TO_DAEMON_TYPES}. `conn.hello` is deliberately excluded: it's
|
|
@@ -3480,5 +3005,5 @@ export declare const SERVER_TO_DAEMON_TYPES: readonly ["conn.ack", "task.offer",
|
|
|
3480
3005
|
* or anything unrecognized — is rejected before it's dispatched to any
|
|
3481
3006
|
* handler or counted `accepted` on the `/byok/messages` wire.
|
|
3482
3007
|
*/
|
|
3483
|
-
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.draft", "agent.message.publish", "agent.content.receipt"];
|
|
3008
|
+
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.draft", "agent.message.publish", "agent.content.receipt", "task.complete_sealed", "task.fail_sealed", "task.decline_sealed", "task.cancelled_sealed", "task.progress_sealed", "task.artifact_sealed", "task.await_approval_sealed"];
|
|
3484
3009
|
export {};
|