@byok-sdk/protocol 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/codec.d.ts +1 -1
- package/dist/envelope.d.ts +60 -0
- package/dist/http-api.d.ts +129 -13
- package/dist/index.d.ts +3 -1
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +132 -0
- package/dist/provider-profile-binding.d.ts +28 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -148,6 +148,18 @@ export declare const DispatchSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
148
148
|
runtimeId: z.ZodLiteral<"pi">;
|
|
149
149
|
providerId: z.ZodString;
|
|
150
150
|
modelId: z.ZodString;
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
153
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
154
|
+
providerProfile: z.ZodObject<{
|
|
155
|
+
profileRef: z.ZodString;
|
|
156
|
+
profileRevision: z.ZodString;
|
|
157
|
+
profileHash: z.ZodString;
|
|
158
|
+
modelId: z.ZodString;
|
|
159
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
160
|
+
"image-input": "image-input";
|
|
161
|
+
}>>;
|
|
162
|
+
}, z.core.$strict>;
|
|
151
163
|
}, z.core.$strict>], "lane">;
|
|
152
164
|
export type DispatchSelection = z.infer<typeof DispatchSelectionSchema>;
|
|
153
165
|
/**
|
|
@@ -196,6 +208,18 @@ export declare const TaskOfferPayloadSchema: z.ZodObject<{
|
|
|
196
208
|
runtimeId: z.ZodLiteral<"pi">;
|
|
197
209
|
providerId: z.ZodString;
|
|
198
210
|
modelId: z.ZodString;
|
|
211
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
212
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
213
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
214
|
+
providerProfile: z.ZodObject<{
|
|
215
|
+
profileRef: z.ZodString;
|
|
216
|
+
profileRevision: z.ZodString;
|
|
217
|
+
profileHash: z.ZodString;
|
|
218
|
+
modelId: z.ZodString;
|
|
219
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
220
|
+
"image-input": "image-input";
|
|
221
|
+
}>>;
|
|
222
|
+
}, z.core.$strict>;
|
|
199
223
|
}, z.core.$strict>], "lane">>;
|
|
200
224
|
sessionRef: z.ZodOptional<z.ZodString>;
|
|
201
225
|
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
@@ -255,6 +279,18 @@ export declare const TaskOfferWithToolsetsPayloadSchema: z.ZodObject<{
|
|
|
255
279
|
runtimeId: z.ZodLiteral<"pi">;
|
|
256
280
|
providerId: z.ZodString;
|
|
257
281
|
modelId: z.ZodString;
|
|
282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
283
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
284
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
285
|
+
providerProfile: z.ZodObject<{
|
|
286
|
+
profileRef: z.ZodString;
|
|
287
|
+
profileRevision: z.ZodString;
|
|
288
|
+
profileHash: z.ZodString;
|
|
289
|
+
modelId: z.ZodString;
|
|
290
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
291
|
+
"image-input": "image-input";
|
|
292
|
+
}>>;
|
|
293
|
+
}, z.core.$strict>;
|
|
258
294
|
}, z.core.$strict>], "lane">>;
|
|
259
295
|
sessionRef: z.ZodOptional<z.ZodString>;
|
|
260
296
|
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
@@ -315,6 +351,18 @@ export declare const TaskOfferForAgentPayloadSchema: z.ZodObject<{
|
|
|
315
351
|
runtimeId: z.ZodLiteral<"pi">;
|
|
316
352
|
providerId: z.ZodString;
|
|
317
353
|
modelId: z.ZodString;
|
|
354
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
355
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
356
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
357
|
+
providerProfile: z.ZodObject<{
|
|
358
|
+
profileRef: z.ZodString;
|
|
359
|
+
profileRevision: z.ZodString;
|
|
360
|
+
profileHash: z.ZodString;
|
|
361
|
+
modelId: z.ZodString;
|
|
362
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
363
|
+
"image-input": "image-input";
|
|
364
|
+
}>>;
|
|
365
|
+
}, z.core.$strict>;
|
|
318
366
|
}, z.core.$strict>], "lane">>;
|
|
319
367
|
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
320
368
|
mode: z.ZodLiteral<"none">;
|
|
@@ -379,6 +427,18 @@ export declare const TaskOfferForAgentWithEgressPayloadSchema: z.ZodObject<{
|
|
|
379
427
|
runtimeId: z.ZodLiteral<"pi">;
|
|
380
428
|
providerId: z.ZodString;
|
|
381
429
|
modelId: z.ZodString;
|
|
430
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
431
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
432
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
433
|
+
providerProfile: z.ZodObject<{
|
|
434
|
+
profileRef: z.ZodString;
|
|
435
|
+
profileRevision: z.ZodString;
|
|
436
|
+
profileHash: z.ZodString;
|
|
437
|
+
modelId: z.ZodString;
|
|
438
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
439
|
+
"image-input": "image-input";
|
|
440
|
+
}>>;
|
|
441
|
+
}, z.core.$strict>;
|
|
382
442
|
}, z.core.$strict>], "lane">>;
|
|
383
443
|
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
384
444
|
mode: z.ZodLiteral<"none">;
|
|
@@ -484,6 +544,18 @@ export declare const TaskOfferForAgentWithEgressFreshPayloadSchema: z.ZodObject<
|
|
|
484
544
|
runtimeId: z.ZodLiteral<"pi">;
|
|
485
545
|
providerId: z.ZodString;
|
|
486
546
|
modelId: z.ZodString;
|
|
547
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
548
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
549
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
550
|
+
providerProfile: z.ZodObject<{
|
|
551
|
+
profileRef: z.ZodString;
|
|
552
|
+
profileRevision: z.ZodString;
|
|
553
|
+
profileHash: z.ZodString;
|
|
554
|
+
modelId: z.ZodString;
|
|
555
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
556
|
+
"image-input": "image-input";
|
|
557
|
+
}>>;
|
|
558
|
+
}, z.core.$strict>;
|
|
487
559
|
}, z.core.$strict>], "lane">>;
|
|
488
560
|
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
489
561
|
mode: z.ZodLiteral<"none">;
|
|
@@ -1366,6 +1438,18 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1366
1438
|
runtimeId: z.ZodLiteral<"pi">;
|
|
1367
1439
|
providerId: z.ZodString;
|
|
1368
1440
|
modelId: z.ZodString;
|
|
1441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1442
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
1443
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1444
|
+
providerProfile: z.ZodObject<{
|
|
1445
|
+
profileRef: z.ZodString;
|
|
1446
|
+
profileRevision: z.ZodString;
|
|
1447
|
+
profileHash: z.ZodString;
|
|
1448
|
+
modelId: z.ZodString;
|
|
1449
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1450
|
+
"image-input": "image-input";
|
|
1451
|
+
}>>;
|
|
1452
|
+
}, z.core.$strict>;
|
|
1369
1453
|
}, z.core.$strict>], "lane">>;
|
|
1370
1454
|
sessionRef: z.ZodOptional<z.ZodString>;
|
|
1371
1455
|
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
@@ -1414,6 +1498,18 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1414
1498
|
runtimeId: z.ZodLiteral<"pi">;
|
|
1415
1499
|
providerId: z.ZodString;
|
|
1416
1500
|
modelId: z.ZodString;
|
|
1501
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1502
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
1503
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1504
|
+
providerProfile: z.ZodObject<{
|
|
1505
|
+
profileRef: z.ZodString;
|
|
1506
|
+
profileRevision: z.ZodString;
|
|
1507
|
+
profileHash: z.ZodString;
|
|
1508
|
+
modelId: z.ZodString;
|
|
1509
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1510
|
+
"image-input": "image-input";
|
|
1511
|
+
}>>;
|
|
1512
|
+
}, z.core.$strict>;
|
|
1417
1513
|
}, z.core.$strict>], "lane">>;
|
|
1418
1514
|
sessionRef: z.ZodOptional<z.ZodString>;
|
|
1419
1515
|
workspaceHint: z.ZodOptional<z.ZodString>;
|
|
@@ -1468,6 +1564,18 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1468
1564
|
runtimeId: z.ZodLiteral<"pi">;
|
|
1469
1565
|
providerId: z.ZodString;
|
|
1470
1566
|
modelId: z.ZodString;
|
|
1567
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1568
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
1569
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1570
|
+
providerProfile: z.ZodObject<{
|
|
1571
|
+
profileRef: z.ZodString;
|
|
1572
|
+
profileRevision: z.ZodString;
|
|
1573
|
+
profileHash: z.ZodString;
|
|
1574
|
+
modelId: z.ZodString;
|
|
1575
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1576
|
+
"image-input": "image-input";
|
|
1577
|
+
}>>;
|
|
1578
|
+
}, z.core.$strict>;
|
|
1471
1579
|
}, z.core.$strict>], "lane">>;
|
|
1472
1580
|
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1473
1581
|
mode: z.ZodLiteral<"none">;
|
|
@@ -1526,6 +1634,18 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1526
1634
|
runtimeId: z.ZodLiteral<"pi">;
|
|
1527
1635
|
providerId: z.ZodString;
|
|
1528
1636
|
modelId: z.ZodString;
|
|
1637
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1638
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
1639
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1640
|
+
providerProfile: z.ZodObject<{
|
|
1641
|
+
profileRef: z.ZodString;
|
|
1642
|
+
profileRevision: z.ZodString;
|
|
1643
|
+
profileHash: z.ZodString;
|
|
1644
|
+
modelId: z.ZodString;
|
|
1645
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1646
|
+
"image-input": "image-input";
|
|
1647
|
+
}>>;
|
|
1648
|
+
}, z.core.$strict>;
|
|
1529
1649
|
}, z.core.$strict>], "lane">>;
|
|
1530
1650
|
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1531
1651
|
mode: z.ZodLiteral<"none">;
|
|
@@ -1624,6 +1744,18 @@ export declare const MESSAGE_PAYLOAD_SCHEMAS: {
|
|
|
1624
1744
|
runtimeId: z.ZodLiteral<"pi">;
|
|
1625
1745
|
providerId: z.ZodString;
|
|
1626
1746
|
modelId: z.ZodString;
|
|
1747
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1748
|
+
lane: z.ZodLiteral<"byok-profile">;
|
|
1749
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1750
|
+
providerProfile: z.ZodObject<{
|
|
1751
|
+
profileRef: z.ZodString;
|
|
1752
|
+
profileRevision: z.ZodString;
|
|
1753
|
+
profileHash: z.ZodString;
|
|
1754
|
+
modelId: z.ZodString;
|
|
1755
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
1756
|
+
"image-input": "image-input";
|
|
1757
|
+
}>>;
|
|
1758
|
+
}, z.core.$strict>;
|
|
1627
1759
|
}, z.core.$strict>], "lane">>;
|
|
1628
1760
|
terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1629
1761
|
mode: z.ZodLiteral<"none">;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Daemon capability required before an exact local provider profile may be offered. */
|
|
3
|
+
export declare const PROVIDER_PROFILE_BINDING_CAPABILITY: 'provider-profile-binding';
|
|
4
|
+
/** Opaque, portable local profile identity. It is one logical id, never a path. */
|
|
5
|
+
export declare const ProviderProfileRefSchema: z.ZodString;
|
|
6
|
+
export type ProviderProfileRef = z.infer<typeof ProviderProfileRefSchema>;
|
|
7
|
+
/** Monotonic local profile revision represented canonically on the wire. */
|
|
8
|
+
export declare const ProviderProfileRevisionSchema: z.ZodString;
|
|
9
|
+
export type ProviderProfileRevision = z.infer<typeof ProviderProfileRevisionSchema>;
|
|
10
|
+
/** Hash of the normalized, non-secret local profile projection. */
|
|
11
|
+
export declare const ProviderProfileHashSchema: z.ZodString;
|
|
12
|
+
export type ProviderProfileHash = z.infer<typeof ProviderProfileHashSchema>;
|
|
13
|
+
export declare const PROVIDER_MODEL_CAPABILITIES: readonly ['image-input'];
|
|
14
|
+
export declare const ProviderModelCapabilitySchema: z.ZodEnum<{
|
|
15
|
+
"image-input": "image-input";
|
|
16
|
+
}>;
|
|
17
|
+
export type ProviderModelCapability = z.infer<typeof ProviderModelCapabilitySchema>;
|
|
18
|
+
/** Credential-free exact desired binding. Endpoint and auth material stay device-local. */
|
|
19
|
+
export declare const ProviderProfileBindingSchema: z.ZodObject<{
|
|
20
|
+
profileRef: z.ZodString;
|
|
21
|
+
profileRevision: z.ZodString;
|
|
22
|
+
profileHash: z.ZodString;
|
|
23
|
+
modelId: z.ZodString;
|
|
24
|
+
requiredCapabilities: z.ZodArray<z.ZodEnum<{
|
|
25
|
+
"image-input": "image-input";
|
|
26
|
+
}>>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export type ProviderProfileBinding = z.infer<typeof ProviderProfileBindingSchema>;
|
package/dist/version.d.ts
CHANGED
|
@@ -103,5 +103,5 @@ export declare const STRICT_AGENT_ONLY_CAPABILITY: 'strict-agent-only';
|
|
|
103
103
|
* boundary for long-poll: an older daemon skips it as unknown and therefore
|
|
104
104
|
* cannot accidentally execute the instruction without the required tools.
|
|
105
105
|
*/
|
|
106
|
-
export declare const CAPABILITY_FLAGS: readonly ['steer', 'blob-upload', 'interactive-approval', 'approval_resolved', 'approval-targeting', 'result-document', 'dispatch-selection', 'toolset-selection', 'agent-home-contract', "strict-agent-only", "agent-egress-policy", "agent-egress-reliable-ack", "agent-message-egress", "agent-egress-fresh-session", "agent-content-workspace-read", "agent-content-transcript-read", "agent-content-artifact-read", "agent-home-projection", "terminal-projection-selection"];
|
|
106
|
+
export declare const CAPABILITY_FLAGS: readonly ['steer', 'blob-upload', 'interactive-approval', 'approval_resolved', 'approval-targeting', 'result-document', 'dispatch-selection', "provider-profile-binding", 'toolset-selection', 'agent-home-contract', "strict-agent-only", "agent-egress-policy", "agent-egress-reliable-ack", "agent-message-egress", "agent-egress-fresh-session", "agent-content-workspace-read", "agent-content-transcript-read", "agent-content-artifact-read", "agent-home-projection", "terminal-projection-selection"];
|
|
107
107
|
export type CapabilityFlag = (typeof CAPABILITY_FLAGS)[number];
|