@byok-sdk/protocol 0.24.0 → 0.25.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-egress.d.ts +13 -16
- package/dist/agent-event.d.ts +1 -1
- package/dist/envelope.d.ts +6 -99
- package/dist/http-api.d.ts +14 -218
- package/dist/index.d.ts +2 -4
- package/dist/index.js +14 -60
- package/dist/index.js.map +1 -1
- package/dist/input-preparation-version.d.ts +12 -0
- package/dist/input-preparation-version.js +6 -0
- package/dist/input-preparation-version.js.map +1 -0
- package/dist/input-preparation.d.ts +14 -100
- package/dist/messages.d.ts +20 -313
- package/dist/version.d.ts +20 -11
- package/package.json +6 -2
- package/dist/permission.d.ts +0 -39
package/dist/agent-egress.d.ts
CHANGED
|
@@ -41,15 +41,16 @@ export declare const ContentReadPolicySchema: z.ZodObject<{
|
|
|
41
41
|
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
42
42
|
}, z.core.$strict>;
|
|
43
43
|
export type ContentReadPolicy = z.infer<typeof ContentReadPolicySchema>;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
/**
|
|
45
|
+
* The latest-value activity lane. Agent events go to the Host as the runtime
|
|
46
|
+
* produced them; these limits only bound transport (coalesce window and one
|
|
47
|
+
* event's byte size).
|
|
48
|
+
*/
|
|
49
|
+
export declare const AgentEgressActivityPolicySchema: z.ZodObject<{
|
|
49
50
|
delivery: z.ZodLiteral<"latest-value">;
|
|
50
51
|
maxCoalesceMs: z.ZodNumber;
|
|
51
52
|
maxEventBytes: z.ZodNumber;
|
|
52
|
-
}, z.core.$strict
|
|
53
|
+
}, z.core.$strict>;
|
|
53
54
|
export type AgentEgressActivityPolicy = z.infer<typeof AgentEgressActivityPolicySchema>;
|
|
54
55
|
export declare const AgentReliableQuotaPolicySchema: z.ZodObject<{
|
|
55
56
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
@@ -58,21 +59,18 @@ export declare const AgentReliableQuotaPolicySchema: z.ZodObject<{
|
|
|
58
59
|
}, z.core.$strict>;
|
|
59
60
|
export type AgentReliableQuotaPolicy = z.infer<typeof AgentReliableQuotaPolicySchema>;
|
|
60
61
|
/**
|
|
61
|
-
* The only consumable policy shape for Agent egress.
|
|
62
|
-
*
|
|
63
|
-
* revision and all three
|
|
62
|
+
* The only consumable policy shape for Agent egress. It selects transport
|
|
63
|
+
* limits and the Host content-read surfaces. It does not filter, redact or
|
|
64
|
+
* omit Agent egress content. Callers must select a revision and all three
|
|
65
|
+
* content-read surfaces independently.
|
|
64
66
|
*/
|
|
65
67
|
export declare const AgentEgressPolicySchema: z.ZodObject<{
|
|
66
68
|
policyRevision: z.ZodString;
|
|
67
|
-
activity: z.
|
|
68
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
69
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
70
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
71
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
69
|
+
activity: z.ZodObject<{
|
|
72
70
|
delivery: z.ZodLiteral<"latest-value">;
|
|
73
71
|
maxCoalesceMs: z.ZodNumber;
|
|
74
72
|
maxEventBytes: z.ZodNumber;
|
|
75
|
-
}, z.core.$strict
|
|
73
|
+
}, z.core.$strict>;
|
|
76
74
|
reliable: z.ZodObject<{
|
|
77
75
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
78
76
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -110,7 +108,6 @@ export declare const AgentEgressDropReasonSchema: z.ZodEnum<{
|
|
|
110
108
|
invalid_envelope: "invalid_envelope";
|
|
111
109
|
policy_denied: "policy_denied";
|
|
112
110
|
quota_exceeded: "quota_exceeded";
|
|
113
|
-
sanitizer_rejected: "sanitizer_rejected";
|
|
114
111
|
}>;
|
|
115
112
|
export type AgentEgressDropReason = z.infer<typeof AgentEgressDropReasonSchema>;
|
|
116
113
|
export declare const AgentContentReadSurfaceSchema: z.ZodEnum<{
|
package/dist/agent-event.d.ts
CHANGED
|
@@ -180,7 +180,7 @@ export declare const KNOWN_AGENT_EVENT_TYPES: readonly string[];
|
|
|
180
180
|
* combines this with {@link AgentEventSchema} for real use.
|
|
181
181
|
*
|
|
182
182
|
* Deliberately asymmetric with envelope-level control/security fields
|
|
183
|
-
* (`instruction
|
|
183
|
+
* (`instruction` — see `messages.ts`), which stay
|
|
184
184
|
* fail-closed on unknown shapes with no equivalent widening: this tolerance
|
|
185
185
|
* applies only to observability data (agent progress events), never to
|
|
186
186
|
* control/security surfaces. That asymmetry is the freeze rule.
|
package/dist/envelope.d.ts
CHANGED
|
@@ -43,7 +43,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
43
43
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
44
44
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
46
|
}, z.core.$strip>>;
|
|
48
47
|
}, z.core.$strip>>>;
|
|
49
48
|
harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -54,7 +53,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
54
53
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
55
54
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
56
55
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
56
|
}, z.core.$strip>;
|
|
59
57
|
}, z.core.$strip>>>;
|
|
60
58
|
configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -91,18 +89,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
91
89
|
url: z.ZodOptional<z.ZodString>;
|
|
92
90
|
}, z.core.$strip>;
|
|
93
91
|
}, z.core.$strict>]>;
|
|
94
|
-
policy: z.ZodObject<{
|
|
95
|
-
mode: z.ZodEnum<{
|
|
96
|
-
auto: "auto";
|
|
97
|
-
confirm: "confirm";
|
|
98
|
-
plan: "plan";
|
|
99
|
-
readonly: "readonly";
|
|
100
|
-
}>;
|
|
101
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
102
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
104
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
}, z.core.$strict>;
|
|
106
92
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
107
93
|
claude: "claude";
|
|
108
94
|
codex: "codex";
|
|
@@ -160,18 +146,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
160
146
|
url: z.ZodOptional<z.ZodString>;
|
|
161
147
|
}, z.core.$strip>;
|
|
162
148
|
}, z.core.$strict>]>;
|
|
163
|
-
policy: z.ZodObject<{
|
|
164
|
-
mode: z.ZodEnum<{
|
|
165
|
-
auto: "auto";
|
|
166
|
-
confirm: "confirm";
|
|
167
|
-
plan: "plan";
|
|
168
|
-
readonly: "readonly";
|
|
169
|
-
}>;
|
|
170
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
171
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
173
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
-
}, z.core.$strict>;
|
|
175
149
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
176
150
|
claude: "claude";
|
|
177
151
|
codex: "codex";
|
|
@@ -230,18 +204,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
230
204
|
url: z.ZodOptional<z.ZodString>;
|
|
231
205
|
}, z.core.$strip>;
|
|
232
206
|
}, z.core.$strict>]>;
|
|
233
|
-
policy: z.ZodObject<{
|
|
234
|
-
mode: z.ZodEnum<{
|
|
235
|
-
auto: "auto";
|
|
236
|
-
confirm: "confirm";
|
|
237
|
-
plan: "plan";
|
|
238
|
-
readonly: "readonly";
|
|
239
|
-
}>;
|
|
240
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
242
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
243
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
-
}, z.core.$strict>;
|
|
245
207
|
agentRef: z.ZodObject<{
|
|
246
208
|
agentId: z.ZodString;
|
|
247
209
|
profileRevision: z.ZodString;
|
|
@@ -309,18 +271,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
309
271
|
url: z.ZodOptional<z.ZodString>;
|
|
310
272
|
}, z.core.$strip>;
|
|
311
273
|
}, z.core.$strict>]>;
|
|
312
|
-
policy: z.ZodObject<{
|
|
313
|
-
mode: z.ZodEnum<{
|
|
314
|
-
auto: "auto";
|
|
315
|
-
confirm: "confirm";
|
|
316
|
-
plan: "plan";
|
|
317
|
-
readonly: "readonly";
|
|
318
|
-
}>;
|
|
319
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
320
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
321
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
322
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
323
|
-
}, z.core.$strict>;
|
|
324
274
|
agentRef: z.ZodObject<{
|
|
325
275
|
agentId: z.ZodString;
|
|
326
276
|
profileRevision: z.ZodString;
|
|
@@ -371,15 +321,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
371
321
|
sessionRef: z.ZodString;
|
|
372
322
|
egressPolicy: z.ZodObject<{
|
|
373
323
|
policyRevision: z.ZodString;
|
|
374
|
-
activity: z.
|
|
375
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
376
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
377
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
378
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
324
|
+
activity: z.ZodObject<{
|
|
379
325
|
delivery: z.ZodLiteral<"latest-value">;
|
|
380
326
|
maxCoalesceMs: z.ZodNumber;
|
|
381
327
|
maxEventBytes: z.ZodNumber;
|
|
382
|
-
}, z.core.$strict
|
|
328
|
+
}, z.core.$strict>;
|
|
383
329
|
reliable: z.ZodObject<{
|
|
384
330
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
385
331
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -428,18 +374,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
428
374
|
url: z.ZodOptional<z.ZodString>;
|
|
429
375
|
}, z.core.$strip>;
|
|
430
376
|
}, z.core.$strict>]>;
|
|
431
|
-
policy: z.ZodObject<{
|
|
432
|
-
mode: z.ZodEnum<{
|
|
433
|
-
auto: "auto";
|
|
434
|
-
confirm: "confirm";
|
|
435
|
-
plan: "plan";
|
|
436
|
-
readonly: "readonly";
|
|
437
|
-
}>;
|
|
438
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
439
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
440
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
441
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
442
|
-
}, z.core.$strict>;
|
|
443
377
|
agentRef: z.ZodObject<{
|
|
444
378
|
agentId: z.ZodString;
|
|
445
379
|
profileRevision: z.ZodString;
|
|
@@ -489,15 +423,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
489
423
|
}, z.core.$strip>>;
|
|
490
424
|
egressPolicy: z.ZodObject<{
|
|
491
425
|
policyRevision: z.ZodString;
|
|
492
|
-
activity: z.
|
|
493
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
494
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
495
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
496
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
426
|
+
activity: z.ZodObject<{
|
|
497
427
|
delivery: z.ZodLiteral<"latest-value">;
|
|
498
428
|
maxCoalesceMs: z.ZodNumber;
|
|
499
429
|
maxEventBytes: z.ZodNumber;
|
|
500
|
-
}, z.core.$strict
|
|
430
|
+
}, z.core.$strict>;
|
|
501
431
|
reliable: z.ZodObject<{
|
|
502
432
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
503
433
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -537,18 +467,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
537
467
|
session_ref: z.ZodOptional<z.ZodString>;
|
|
538
468
|
seq: z.ZodNumber;
|
|
539
469
|
payload: z.ZodObject<{
|
|
540
|
-
policy: z.ZodObject<{
|
|
541
|
-
mode: z.ZodEnum<{
|
|
542
|
-
auto: "auto";
|
|
543
|
-
confirm: "confirm";
|
|
544
|
-
plan: "plan";
|
|
545
|
-
readonly: "readonly";
|
|
546
|
-
}>;
|
|
547
|
-
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
548
|
-
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
549
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
550
|
-
network: z.ZodOptional<z.ZodBoolean>;
|
|
551
|
-
}, z.core.$strict>;
|
|
552
470
|
agentRef: z.ZodObject<{
|
|
553
471
|
agentId: z.ZodString;
|
|
554
472
|
profileRevision: z.ZodString;
|
|
@@ -608,15 +526,11 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
608
526
|
}>;
|
|
609
527
|
egressPolicy: z.ZodObject<{
|
|
610
528
|
policyRevision: z.ZodString;
|
|
611
|
-
activity: z.
|
|
612
|
-
mode: z.ZodLiteral<"metadata-status">;
|
|
613
|
-
delivery: z.ZodLiteral<"latest-value">;
|
|
614
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
615
|
-
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
529
|
+
activity: z.ZodObject<{
|
|
616
530
|
delivery: z.ZodLiteral<"latest-value">;
|
|
617
531
|
maxCoalesceMs: z.ZodNumber;
|
|
618
532
|
maxEventBytes: z.ZodNumber;
|
|
619
|
-
}, z.core.$strict
|
|
533
|
+
}, z.core.$strict>;
|
|
620
534
|
reliable: z.ZodObject<{
|
|
621
535
|
maxPendingEventsPerAgent: z.ZodNumber;
|
|
622
536
|
maxPendingBytesPerAgent: z.ZodNumber;
|
|
@@ -870,12 +784,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
870
784
|
contentHash: z.ZodString;
|
|
871
785
|
}, z.core.$strict>]>;
|
|
872
786
|
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
873
|
-
permissionMode: z.ZodEnum<{
|
|
874
|
-
auto: "auto";
|
|
875
|
-
confirm: "confirm";
|
|
876
|
-
plan: "plan";
|
|
877
|
-
readonly: "readonly";
|
|
878
|
-
}>;
|
|
879
787
|
accountingPolicyRef: z.ZodOptional<z.ZodObject<{
|
|
880
788
|
revision: z.ZodString;
|
|
881
789
|
ruledRuntime: z.ZodString;
|
|
@@ -983,7 +891,6 @@ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
983
891
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
984
892
|
approvalInteractive: z.ZodOptional<z.ZodBoolean>;
|
|
985
893
|
mcpToolsets: z.ZodOptional<z.ZodBoolean>;
|
|
986
|
-
permissionModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
987
894
|
}, z.core.$strip>>;
|
|
988
895
|
}, z.core.$strip>;
|
|
989
896
|
}, z.core.$strip>, z.ZodObject<{
|