@byok-sdk/protocol 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-egress.d.ts +144 -0
- package/dist/codec.d.ts +24 -0
- package/dist/envelope.d.ts +369 -0
- package/dist/http-api.d.ts +750 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +256 -9
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +677 -5
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/http-api.d.ts
CHANGED
|
@@ -16,10 +16,22 @@ export declare const PairRequestSchema: z.ZodObject<{
|
|
|
16
16
|
devicePublicKey: z.ZodString;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export type PairRequest = z.infer<typeof PairRequestSchema>;
|
|
19
|
+
/**
|
|
20
|
+
* The authenticated tenant projection is opaque to the wire protocol. It is
|
|
21
|
+
* bounded so a malformed control-plane value cannot become an unbounded local
|
|
22
|
+
* key prefix, while deliberately imposing no product-specific format.
|
|
23
|
+
*
|
|
24
|
+
* Keep these runtime checks aligned with `@byok-sdk/core`'s TenantId mint
|
|
25
|
+
* point: trimming or normalizing here would make the response disagree with
|
|
26
|
+
* the authenticated device row that authored it.
|
|
27
|
+
*/
|
|
28
|
+
export declare const PAIR_RESPONSE_TENANT_ID_MAX_LENGTH = 200;
|
|
29
|
+
export declare const PairResponseTenantIdSchema: z.ZodString;
|
|
19
30
|
export declare const PairResponseSchema: z.ZodObject<{
|
|
20
31
|
deviceId: z.ZodString;
|
|
21
32
|
accessToken: z.ZodString;
|
|
22
33
|
refreshHint: z.ZodOptional<z.ZodString>;
|
|
34
|
+
tenantId: z.ZodString;
|
|
23
35
|
}, z.core.$strip>;
|
|
24
36
|
export type PairResponse = z.infer<typeof PairResponseSchema>;
|
|
25
37
|
export declare const ChallengeRequestSchema: z.ZodObject<{
|
|
@@ -255,6 +267,222 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
|
|
|
255
267
|
}, z.core.$strip>>;
|
|
256
268
|
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
257
269
|
}, z.core.$strict>;
|
|
270
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
271
|
+
v: z.ZodNumber;
|
|
272
|
+
id: z.ZodUUID;
|
|
273
|
+
ts: z.ZodISODateTime;
|
|
274
|
+
type: z.ZodLiteral<"task.offer_for_agent">;
|
|
275
|
+
task_id: z.ZodString;
|
|
276
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
277
|
+
seq: z.ZodNumber;
|
|
278
|
+
payload: z.ZodObject<{
|
|
279
|
+
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
280
|
+
blobRef: z.ZodObject<{
|
|
281
|
+
blobId: z.ZodString;
|
|
282
|
+
contentHash: z.ZodString;
|
|
283
|
+
size: z.ZodNumber;
|
|
284
|
+
contentType: z.ZodString;
|
|
285
|
+
url: z.ZodOptional<z.ZodString>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
}, z.core.$strict>]>;
|
|
288
|
+
policy: z.ZodObject<{
|
|
289
|
+
mode: z.ZodEnum<{
|
|
290
|
+
auto: "auto";
|
|
291
|
+
confirm: "confirm";
|
|
292
|
+
plan: "plan";
|
|
293
|
+
readonly: "readonly";
|
|
294
|
+
}>;
|
|
295
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
296
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
297
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
298
|
+
network: z.ZodOptional<z.ZodBoolean>;
|
|
299
|
+
}, z.core.$strict>;
|
|
300
|
+
agentRef: z.ZodObject<{
|
|
301
|
+
agentId: z.ZodString;
|
|
302
|
+
profileRevision: z.ZodString;
|
|
303
|
+
}, z.core.$strict>;
|
|
304
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
305
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
306
|
+
claude: "claude";
|
|
307
|
+
codex: "codex";
|
|
308
|
+
pi: "pi";
|
|
309
|
+
}>>;
|
|
310
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
311
|
+
lane: z.ZodLiteral<"subscription">;
|
|
312
|
+
runtimeId: z.ZodEnum<{
|
|
313
|
+
claude: "claude";
|
|
314
|
+
codex: "codex";
|
|
315
|
+
}>;
|
|
316
|
+
providerId: z.ZodNull;
|
|
317
|
+
modelId: z.ZodString;
|
|
318
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
319
|
+
lane: z.ZodLiteral<"byok">;
|
|
320
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
321
|
+
providerId: z.ZodString;
|
|
322
|
+
modelId: z.ZodString;
|
|
323
|
+
}, z.core.$strict>], "lane">>;
|
|
324
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
325
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
326
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
327
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
328
|
+
}, z.core.$strip>>;
|
|
329
|
+
}, z.core.$strict>;
|
|
330
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
331
|
+
v: z.ZodNumber;
|
|
332
|
+
id: z.ZodUUID;
|
|
333
|
+
ts: z.ZodISODateTime;
|
|
334
|
+
type: z.ZodLiteral<"task.offer_for_agent_with_egress">;
|
|
335
|
+
task_id: z.ZodString;
|
|
336
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
337
|
+
seq: z.ZodNumber;
|
|
338
|
+
payload: z.ZodObject<{
|
|
339
|
+
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
340
|
+
blobRef: z.ZodObject<{
|
|
341
|
+
blobId: z.ZodString;
|
|
342
|
+
contentHash: z.ZodString;
|
|
343
|
+
size: z.ZodNumber;
|
|
344
|
+
contentType: z.ZodString;
|
|
345
|
+
url: z.ZodOptional<z.ZodString>;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
}, z.core.$strict>]>;
|
|
348
|
+
policy: z.ZodObject<{
|
|
349
|
+
mode: z.ZodEnum<{
|
|
350
|
+
auto: "auto";
|
|
351
|
+
confirm: "confirm";
|
|
352
|
+
plan: "plan";
|
|
353
|
+
readonly: "readonly";
|
|
354
|
+
}>;
|
|
355
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
356
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
357
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
358
|
+
network: z.ZodOptional<z.ZodBoolean>;
|
|
359
|
+
}, z.core.$strict>;
|
|
360
|
+
agentRef: z.ZodObject<{
|
|
361
|
+
agentId: z.ZodString;
|
|
362
|
+
profileRevision: z.ZodString;
|
|
363
|
+
}, z.core.$strict>;
|
|
364
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
365
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
366
|
+
claude: "claude";
|
|
367
|
+
codex: "codex";
|
|
368
|
+
pi: "pi";
|
|
369
|
+
}>>;
|
|
370
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
371
|
+
lane: z.ZodLiteral<"subscription">;
|
|
372
|
+
runtimeId: z.ZodEnum<{
|
|
373
|
+
claude: "claude";
|
|
374
|
+
codex: "codex";
|
|
375
|
+
}>;
|
|
376
|
+
providerId: z.ZodNull;
|
|
377
|
+
modelId: z.ZodString;
|
|
378
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
379
|
+
lane: z.ZodLiteral<"byok">;
|
|
380
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
381
|
+
providerId: z.ZodString;
|
|
382
|
+
modelId: z.ZodString;
|
|
383
|
+
}, z.core.$strict>], "lane">>;
|
|
384
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
385
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
386
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
}, z.core.$strip>>;
|
|
388
|
+
sessionRef: z.ZodString;
|
|
389
|
+
egressPolicy: z.ZodObject<{
|
|
390
|
+
policyRevision: z.ZodString;
|
|
391
|
+
activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
392
|
+
mode: z.ZodLiteral<"metadata-status">;
|
|
393
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
394
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
395
|
+
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
396
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
397
|
+
maxCoalesceMs: z.ZodNumber;
|
|
398
|
+
maxEventBytes: z.ZodNumber;
|
|
399
|
+
}, z.core.$strict>], "mode">;
|
|
400
|
+
reliable: z.ZodObject<{
|
|
401
|
+
maxPendingEventsPerAgent: z.ZodNumber;
|
|
402
|
+
maxPendingBytesPerAgent: z.ZodNumber;
|
|
403
|
+
maxPendingBytesPerTenant: z.ZodNumber;
|
|
404
|
+
}, z.core.$strict>;
|
|
405
|
+
transfers: z.ZodObject<{
|
|
406
|
+
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
407
|
+
maxBytes: z.ZodNumber;
|
|
408
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
409
|
+
}, z.core.$strict>]>;
|
|
410
|
+
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
411
|
+
maxBytes: z.ZodNumber;
|
|
412
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
413
|
+
}, z.core.$strict>]>;
|
|
414
|
+
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
415
|
+
maxBytes: z.ZodNumber;
|
|
416
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
417
|
+
}, z.core.$strict>]>;
|
|
418
|
+
}, z.core.$strict>;
|
|
419
|
+
}, z.core.$strict>;
|
|
420
|
+
}, z.core.$strict>;
|
|
421
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
422
|
+
v: z.ZodNumber;
|
|
423
|
+
id: z.ZodUUID;
|
|
424
|
+
ts: z.ZodISODateTime;
|
|
425
|
+
type: z.ZodLiteral<"agent.egress.ack">;
|
|
426
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
427
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
428
|
+
seq: z.ZodNumber;
|
|
429
|
+
payload: z.ZodObject<{
|
|
430
|
+
agentRef: z.ZodObject<{
|
|
431
|
+
agentId: z.ZodString;
|
|
432
|
+
profileRevision: z.ZodString;
|
|
433
|
+
}, z.core.$strict>;
|
|
434
|
+
sessionRef: z.ZodString;
|
|
435
|
+
policyRevision: z.ZodString;
|
|
436
|
+
eventId: z.ZodUUID;
|
|
437
|
+
cursor: z.ZodNumber;
|
|
438
|
+
receiptId: z.ZodUUID;
|
|
439
|
+
}, z.core.$strict>;
|
|
440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
441
|
+
v: z.ZodNumber;
|
|
442
|
+
id: z.ZodUUID;
|
|
443
|
+
ts: z.ZodISODateTime;
|
|
444
|
+
type: z.ZodLiteral<"agent.content.read">;
|
|
445
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
446
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
447
|
+
seq: z.ZodNumber;
|
|
448
|
+
payload: z.ZodObject<{
|
|
449
|
+
requestId: z.ZodUUID;
|
|
450
|
+
surface: z.ZodEnum<{
|
|
451
|
+
artifact: "artifact";
|
|
452
|
+
transcript: "transcript";
|
|
453
|
+
workspace: "workspace";
|
|
454
|
+
}>;
|
|
455
|
+
actor: z.ZodObject<{
|
|
456
|
+
kind: z.ZodEnum<{
|
|
457
|
+
agent: "agent";
|
|
458
|
+
system: "system";
|
|
459
|
+
user: "user";
|
|
460
|
+
}>;
|
|
461
|
+
id: z.ZodString;
|
|
462
|
+
}, z.core.$strict>;
|
|
463
|
+
agentRef: z.ZodObject<{
|
|
464
|
+
agentId: z.ZodString;
|
|
465
|
+
profileRevision: z.ZodString;
|
|
466
|
+
}, z.core.$strict>;
|
|
467
|
+
sessionRef: z.ZodString;
|
|
468
|
+
runtime: z.ZodEnum<{
|
|
469
|
+
claude: "claude";
|
|
470
|
+
codex: "codex";
|
|
471
|
+
pi: "pi";
|
|
472
|
+
}>;
|
|
473
|
+
cwd: z.ZodString;
|
|
474
|
+
policyRevision: z.ZodString;
|
|
475
|
+
target: z.ZodString;
|
|
476
|
+
mimeType: z.ZodString;
|
|
477
|
+
decodeAs: z.ZodEnum<{
|
|
478
|
+
bytes: "bytes";
|
|
479
|
+
utf8: "utf8";
|
|
480
|
+
}>;
|
|
481
|
+
policy: z.ZodObject<{
|
|
482
|
+
maxBytes: z.ZodNumber;
|
|
483
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
484
|
+
}, z.core.$strict>;
|
|
485
|
+
}, z.core.$strict>;
|
|
258
486
|
}, z.core.$strip>, z.ZodObject<{
|
|
259
487
|
v: z.ZodNumber;
|
|
260
488
|
id: z.ZodUUID;
|
|
@@ -311,6 +539,10 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
|
|
|
311
539
|
payload: z.ZodObject<{
|
|
312
540
|
deviceId: z.ZodString;
|
|
313
541
|
agentId: z.ZodOptional<z.ZodString>;
|
|
542
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
543
|
+
agentId: z.ZodString;
|
|
544
|
+
profileRevision: z.ZodString;
|
|
545
|
+
}, z.core.$strict>>;
|
|
314
546
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
315
547
|
claude: "claude";
|
|
316
548
|
codex: "codex";
|
|
@@ -344,6 +576,10 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
|
|
|
344
576
|
payload: z.ZodObject<{
|
|
345
577
|
reason: z.ZodString;
|
|
346
578
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
579
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
580
|
+
agentId: z.ZodString;
|
|
581
|
+
profileRevision: z.ZodString;
|
|
582
|
+
}, z.core.$strict>>;
|
|
347
583
|
}, z.core.$strip>;
|
|
348
584
|
}, z.core.$strip>, z.ZodObject<{
|
|
349
585
|
v: z.ZodNumber;
|
|
@@ -457,6 +693,10 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
|
|
|
457
693
|
clientVersion: z.ZodString;
|
|
458
694
|
reportedAt: z.ZodISODateTime;
|
|
459
695
|
}, z.core.$strip>>;
|
|
696
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
697
|
+
agentId: z.ZodString;
|
|
698
|
+
profileRevision: z.ZodString;
|
|
699
|
+
}, z.core.$strict>>;
|
|
460
700
|
}, z.core.$strip>;
|
|
461
701
|
}, z.core.$strip>, z.ZodObject<{
|
|
462
702
|
v: z.ZodNumber;
|
|
@@ -483,6 +723,10 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
|
|
|
483
723
|
clientVersion: z.ZodString;
|
|
484
724
|
reportedAt: z.ZodISODateTime;
|
|
485
725
|
}, z.core.$strip>>;
|
|
726
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
727
|
+
agentId: z.ZodString;
|
|
728
|
+
profileRevision: z.ZodString;
|
|
729
|
+
}, z.core.$strict>>;
|
|
486
730
|
}, z.core.$strip>;
|
|
487
731
|
}, z.core.$strip>, z.ZodObject<{
|
|
488
732
|
v: z.ZodNumber;
|
|
@@ -508,6 +752,10 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
|
|
|
508
752
|
clientVersion: z.ZodString;
|
|
509
753
|
reportedAt: z.ZodISODateTime;
|
|
510
754
|
}, z.core.$strip>>;
|
|
755
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
756
|
+
agentId: z.ZodString;
|
|
757
|
+
profileRevision: z.ZodString;
|
|
758
|
+
}, z.core.$strict>>;
|
|
511
759
|
}, z.core.$strip>;
|
|
512
760
|
}, z.core.$strip>, z.ZodObject<{
|
|
513
761
|
v: z.ZodNumber;
|
|
@@ -528,6 +776,139 @@ export declare const EventsPollResponseSchema: z.ZodObject<{
|
|
|
528
776
|
}>;
|
|
529
777
|
at: z.ZodISODateTime;
|
|
530
778
|
}, z.core.$strip>;
|
|
779
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
780
|
+
v: z.ZodNumber;
|
|
781
|
+
id: z.ZodUUID;
|
|
782
|
+
ts: z.ZodISODateTime;
|
|
783
|
+
type: z.ZodLiteral<"agent.egress.reliable">;
|
|
784
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
785
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
786
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
787
|
+
payload: z.ZodObject<{
|
|
788
|
+
agentRef: z.ZodObject<{
|
|
789
|
+
agentId: z.ZodString;
|
|
790
|
+
profileRevision: z.ZodString;
|
|
791
|
+
}, z.core.$strict>;
|
|
792
|
+
sessionRef: z.ZodString;
|
|
793
|
+
policyRevision: z.ZodString;
|
|
794
|
+
eventId: z.ZodUUID;
|
|
795
|
+
cursor: z.ZodNumber;
|
|
796
|
+
payload: z.ZodJSONSchema;
|
|
797
|
+
contentHash: z.ZodString;
|
|
798
|
+
byteCount: z.ZodNumber;
|
|
799
|
+
}, z.core.$strict>;
|
|
800
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
801
|
+
v: z.ZodNumber;
|
|
802
|
+
id: z.ZodUUID;
|
|
803
|
+
ts: z.ZodISODateTime;
|
|
804
|
+
type: z.ZodLiteral<"agent.content.receipt">;
|
|
805
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
806
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
807
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
808
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
809
|
+
requestId: z.ZodUUID;
|
|
810
|
+
eventId: z.ZodUUID;
|
|
811
|
+
cursor: z.ZodNumber;
|
|
812
|
+
surface: z.ZodEnum<{
|
|
813
|
+
artifact: "artifact";
|
|
814
|
+
transcript: "transcript";
|
|
815
|
+
workspace: "workspace";
|
|
816
|
+
}>;
|
|
817
|
+
actor: z.ZodObject<{
|
|
818
|
+
kind: z.ZodEnum<{
|
|
819
|
+
agent: "agent";
|
|
820
|
+
system: "system";
|
|
821
|
+
user: "user";
|
|
822
|
+
}>;
|
|
823
|
+
id: z.ZodString;
|
|
824
|
+
}, z.core.$strict>;
|
|
825
|
+
agentRef: z.ZodObject<{
|
|
826
|
+
agentId: z.ZodString;
|
|
827
|
+
profileRevision: z.ZodString;
|
|
828
|
+
}, z.core.$strict>;
|
|
829
|
+
sessionRef: z.ZodString;
|
|
830
|
+
runtime: z.ZodEnum<{
|
|
831
|
+
claude: "claude";
|
|
832
|
+
codex: "codex";
|
|
833
|
+
pi: "pi";
|
|
834
|
+
}>;
|
|
835
|
+
cwd: z.ZodString;
|
|
836
|
+
policyRevision: z.ZodString;
|
|
837
|
+
target: z.ZodString;
|
|
838
|
+
mimeType: z.ZodString;
|
|
839
|
+
decodeAs: z.ZodEnum<{
|
|
840
|
+
bytes: "bytes";
|
|
841
|
+
utf8: "utf8";
|
|
842
|
+
}>;
|
|
843
|
+
decision: z.ZodLiteral<"allowed">;
|
|
844
|
+
byteCount: z.ZodNumber;
|
|
845
|
+
contentHash: z.ZodString;
|
|
846
|
+
blobRef: z.ZodObject<{
|
|
847
|
+
blobId: z.ZodString;
|
|
848
|
+
contentHash: z.ZodString;
|
|
849
|
+
size: z.ZodNumber;
|
|
850
|
+
contentType: z.ZodString;
|
|
851
|
+
url: z.ZodOptional<z.ZodString>;
|
|
852
|
+
}, z.core.$strip>;
|
|
853
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
854
|
+
requestId: z.ZodUUID;
|
|
855
|
+
eventId: z.ZodUUID;
|
|
856
|
+
cursor: z.ZodNumber;
|
|
857
|
+
surface: z.ZodEnum<{
|
|
858
|
+
artifact: "artifact";
|
|
859
|
+
transcript: "transcript";
|
|
860
|
+
workspace: "workspace";
|
|
861
|
+
}>;
|
|
862
|
+
actor: z.ZodObject<{
|
|
863
|
+
kind: z.ZodEnum<{
|
|
864
|
+
agent: "agent";
|
|
865
|
+
system: "system";
|
|
866
|
+
user: "user";
|
|
867
|
+
}>;
|
|
868
|
+
id: z.ZodString;
|
|
869
|
+
}, z.core.$strict>;
|
|
870
|
+
agentRef: z.ZodObject<{
|
|
871
|
+
agentId: z.ZodString;
|
|
872
|
+
profileRevision: z.ZodString;
|
|
873
|
+
}, z.core.$strict>;
|
|
874
|
+
sessionRef: z.ZodString;
|
|
875
|
+
runtime: z.ZodEnum<{
|
|
876
|
+
claude: "claude";
|
|
877
|
+
codex: "codex";
|
|
878
|
+
pi: "pi";
|
|
879
|
+
}>;
|
|
880
|
+
cwd: z.ZodString;
|
|
881
|
+
policyRevision: z.ZodString;
|
|
882
|
+
target: z.ZodString;
|
|
883
|
+
mimeType: z.ZodString;
|
|
884
|
+
decodeAs: z.ZodEnum<{
|
|
885
|
+
bytes: "bytes";
|
|
886
|
+
utf8: "utf8";
|
|
887
|
+
}>;
|
|
888
|
+
decision: z.ZodLiteral<"denied">;
|
|
889
|
+
byteCount: z.ZodLiteral<0>;
|
|
890
|
+
reason: z.ZodEnum<{
|
|
891
|
+
"absolute-target": "absolute-target";
|
|
892
|
+
"byte-limit": "byte-limit";
|
|
893
|
+
"capability-missing": "capability-missing";
|
|
894
|
+
"dot-segment": "dot-segment";
|
|
895
|
+
"identity-mismatch": "identity-mismatch";
|
|
896
|
+
"invalid-request": "invalid-request";
|
|
897
|
+
"mime-not-allowlisted": "mime-not-allowlisted";
|
|
898
|
+
"non-relative-target": "non-relative-target";
|
|
899
|
+
"not-regular-file": "not-regular-file";
|
|
900
|
+
"path-escape": "path-escape";
|
|
901
|
+
"policy-disabled": "policy-disabled";
|
|
902
|
+
"policy-revision-mismatch": "policy-revision-mismatch";
|
|
903
|
+
"root-invalid": "root-invalid";
|
|
904
|
+
"root-not-allowlisted": "root-not-allowlisted";
|
|
905
|
+
"sensitive-name": "sensitive-name";
|
|
906
|
+
symlink: "symlink";
|
|
907
|
+
"target-missing": "target-missing";
|
|
908
|
+
"text-decode-failed": "text-decode-failed";
|
|
909
|
+
"text-not-allowlisted": "text-not-allowlisted";
|
|
910
|
+
}>;
|
|
911
|
+
}, z.core.$strict>], "decision">;
|
|
531
912
|
}, z.core.$strip>], "type">>;
|
|
532
913
|
cursor: z.ZodNumber;
|
|
533
914
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -702,6 +1083,222 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
|
|
|
702
1083
|
}, z.core.$strip>>;
|
|
703
1084
|
requiredToolsets: z.ZodArray<z.ZodString>;
|
|
704
1085
|
}, z.core.$strict>;
|
|
1086
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1087
|
+
v: z.ZodNumber;
|
|
1088
|
+
id: z.ZodUUID;
|
|
1089
|
+
ts: z.ZodISODateTime;
|
|
1090
|
+
type: z.ZodLiteral<"task.offer_for_agent">;
|
|
1091
|
+
task_id: z.ZodString;
|
|
1092
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
seq: z.ZodNumber;
|
|
1094
|
+
payload: z.ZodObject<{
|
|
1095
|
+
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1096
|
+
blobRef: z.ZodObject<{
|
|
1097
|
+
blobId: z.ZodString;
|
|
1098
|
+
contentHash: z.ZodString;
|
|
1099
|
+
size: z.ZodNumber;
|
|
1100
|
+
contentType: z.ZodString;
|
|
1101
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
}, z.core.$strip>;
|
|
1103
|
+
}, z.core.$strict>]>;
|
|
1104
|
+
policy: z.ZodObject<{
|
|
1105
|
+
mode: z.ZodEnum<{
|
|
1106
|
+
auto: "auto";
|
|
1107
|
+
confirm: "confirm";
|
|
1108
|
+
plan: "plan";
|
|
1109
|
+
readonly: "readonly";
|
|
1110
|
+
}>;
|
|
1111
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1112
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1113
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
1114
|
+
network: z.ZodOptional<z.ZodBoolean>;
|
|
1115
|
+
}, z.core.$strict>;
|
|
1116
|
+
agentRef: z.ZodObject<{
|
|
1117
|
+
agentId: z.ZodString;
|
|
1118
|
+
profileRevision: z.ZodString;
|
|
1119
|
+
}, z.core.$strict>;
|
|
1120
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1121
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1122
|
+
claude: "claude";
|
|
1123
|
+
codex: "codex";
|
|
1124
|
+
pi: "pi";
|
|
1125
|
+
}>>;
|
|
1126
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1127
|
+
lane: z.ZodLiteral<"subscription">;
|
|
1128
|
+
runtimeId: z.ZodEnum<{
|
|
1129
|
+
claude: "claude";
|
|
1130
|
+
codex: "codex";
|
|
1131
|
+
}>;
|
|
1132
|
+
providerId: z.ZodNull;
|
|
1133
|
+
modelId: z.ZodString;
|
|
1134
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1135
|
+
lane: z.ZodLiteral<"byok">;
|
|
1136
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1137
|
+
providerId: z.ZodString;
|
|
1138
|
+
modelId: z.ZodString;
|
|
1139
|
+
}, z.core.$strict>], "lane">>;
|
|
1140
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
1141
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1142
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1143
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1144
|
+
}, z.core.$strip>>;
|
|
1145
|
+
}, z.core.$strict>;
|
|
1146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1147
|
+
v: z.ZodNumber;
|
|
1148
|
+
id: z.ZodUUID;
|
|
1149
|
+
ts: z.ZodISODateTime;
|
|
1150
|
+
type: z.ZodLiteral<"task.offer_for_agent_with_egress">;
|
|
1151
|
+
task_id: z.ZodString;
|
|
1152
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
1153
|
+
seq: z.ZodNumber;
|
|
1154
|
+
payload: z.ZodObject<{
|
|
1155
|
+
instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1156
|
+
blobRef: z.ZodObject<{
|
|
1157
|
+
blobId: z.ZodString;
|
|
1158
|
+
contentHash: z.ZodString;
|
|
1159
|
+
size: z.ZodNumber;
|
|
1160
|
+
contentType: z.ZodString;
|
|
1161
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1162
|
+
}, z.core.$strip>;
|
|
1163
|
+
}, z.core.$strict>]>;
|
|
1164
|
+
policy: z.ZodObject<{
|
|
1165
|
+
mode: z.ZodEnum<{
|
|
1166
|
+
auto: "auto";
|
|
1167
|
+
confirm: "confirm";
|
|
1168
|
+
plan: "plan";
|
|
1169
|
+
readonly: "readonly";
|
|
1170
|
+
}>;
|
|
1171
|
+
allowTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1172
|
+
denyTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1173
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
network: z.ZodOptional<z.ZodBoolean>;
|
|
1175
|
+
}, z.core.$strict>;
|
|
1176
|
+
agentRef: z.ZodObject<{
|
|
1177
|
+
agentId: z.ZodString;
|
|
1178
|
+
profileRevision: z.ZodString;
|
|
1179
|
+
}, z.core.$strict>;
|
|
1180
|
+
requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1181
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1182
|
+
claude: "claude";
|
|
1183
|
+
codex: "codex";
|
|
1184
|
+
pi: "pi";
|
|
1185
|
+
}>>;
|
|
1186
|
+
dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1187
|
+
lane: z.ZodLiteral<"subscription">;
|
|
1188
|
+
runtimeId: z.ZodEnum<{
|
|
1189
|
+
claude: "claude";
|
|
1190
|
+
codex: "codex";
|
|
1191
|
+
}>;
|
|
1192
|
+
providerId: z.ZodNull;
|
|
1193
|
+
modelId: z.ZodString;
|
|
1194
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1195
|
+
lane: z.ZodLiteral<"byok">;
|
|
1196
|
+
runtimeId: z.ZodLiteral<"pi">;
|
|
1197
|
+
providerId: z.ZodString;
|
|
1198
|
+
modelId: z.ZodString;
|
|
1199
|
+
}, z.core.$strict>], "lane">>;
|
|
1200
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1201
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1202
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
1203
|
+
}, z.core.$strip>>;
|
|
1204
|
+
sessionRef: z.ZodString;
|
|
1205
|
+
egressPolicy: z.ZodObject<{
|
|
1206
|
+
policyRevision: z.ZodString;
|
|
1207
|
+
activity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1208
|
+
mode: z.ZodLiteral<"metadata-status">;
|
|
1209
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
1210
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1211
|
+
mode: z.ZodLiteral<"contentful-trajectory">;
|
|
1212
|
+
delivery: z.ZodLiteral<"latest-value">;
|
|
1213
|
+
maxCoalesceMs: z.ZodNumber;
|
|
1214
|
+
maxEventBytes: z.ZodNumber;
|
|
1215
|
+
}, z.core.$strict>], "mode">;
|
|
1216
|
+
reliable: z.ZodObject<{
|
|
1217
|
+
maxPendingEventsPerAgent: z.ZodNumber;
|
|
1218
|
+
maxPendingBytesPerAgent: z.ZodNumber;
|
|
1219
|
+
maxPendingBytesPerTenant: z.ZodNumber;
|
|
1220
|
+
}, z.core.$strict>;
|
|
1221
|
+
transfers: z.ZodObject<{
|
|
1222
|
+
workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
1223
|
+
maxBytes: z.ZodNumber;
|
|
1224
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
1225
|
+
}, z.core.$strict>]>;
|
|
1226
|
+
transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
1227
|
+
maxBytes: z.ZodNumber;
|
|
1228
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
1229
|
+
}, z.core.$strict>]>;
|
|
1230
|
+
artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
|
|
1231
|
+
maxBytes: z.ZodNumber;
|
|
1232
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
1233
|
+
}, z.core.$strict>]>;
|
|
1234
|
+
}, z.core.$strict>;
|
|
1235
|
+
}, z.core.$strict>;
|
|
1236
|
+
}, z.core.$strict>;
|
|
1237
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1238
|
+
v: z.ZodNumber;
|
|
1239
|
+
id: z.ZodUUID;
|
|
1240
|
+
ts: z.ZodISODateTime;
|
|
1241
|
+
type: z.ZodLiteral<"agent.egress.ack">;
|
|
1242
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
1243
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
1244
|
+
seq: z.ZodNumber;
|
|
1245
|
+
payload: z.ZodObject<{
|
|
1246
|
+
agentRef: z.ZodObject<{
|
|
1247
|
+
agentId: z.ZodString;
|
|
1248
|
+
profileRevision: z.ZodString;
|
|
1249
|
+
}, z.core.$strict>;
|
|
1250
|
+
sessionRef: z.ZodString;
|
|
1251
|
+
policyRevision: z.ZodString;
|
|
1252
|
+
eventId: z.ZodUUID;
|
|
1253
|
+
cursor: z.ZodNumber;
|
|
1254
|
+
receiptId: z.ZodUUID;
|
|
1255
|
+
}, z.core.$strict>;
|
|
1256
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1257
|
+
v: z.ZodNumber;
|
|
1258
|
+
id: z.ZodUUID;
|
|
1259
|
+
ts: z.ZodISODateTime;
|
|
1260
|
+
type: z.ZodLiteral<"agent.content.read">;
|
|
1261
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
1262
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
seq: z.ZodNumber;
|
|
1264
|
+
payload: z.ZodObject<{
|
|
1265
|
+
requestId: z.ZodUUID;
|
|
1266
|
+
surface: z.ZodEnum<{
|
|
1267
|
+
artifact: "artifact";
|
|
1268
|
+
transcript: "transcript";
|
|
1269
|
+
workspace: "workspace";
|
|
1270
|
+
}>;
|
|
1271
|
+
actor: z.ZodObject<{
|
|
1272
|
+
kind: z.ZodEnum<{
|
|
1273
|
+
agent: "agent";
|
|
1274
|
+
system: "system";
|
|
1275
|
+
user: "user";
|
|
1276
|
+
}>;
|
|
1277
|
+
id: z.ZodString;
|
|
1278
|
+
}, z.core.$strict>;
|
|
1279
|
+
agentRef: z.ZodObject<{
|
|
1280
|
+
agentId: z.ZodString;
|
|
1281
|
+
profileRevision: z.ZodString;
|
|
1282
|
+
}, z.core.$strict>;
|
|
1283
|
+
sessionRef: z.ZodString;
|
|
1284
|
+
runtime: z.ZodEnum<{
|
|
1285
|
+
claude: "claude";
|
|
1286
|
+
codex: "codex";
|
|
1287
|
+
pi: "pi";
|
|
1288
|
+
}>;
|
|
1289
|
+
cwd: z.ZodString;
|
|
1290
|
+
policyRevision: z.ZodString;
|
|
1291
|
+
target: z.ZodString;
|
|
1292
|
+
mimeType: z.ZodString;
|
|
1293
|
+
decodeAs: z.ZodEnum<{
|
|
1294
|
+
bytes: "bytes";
|
|
1295
|
+
utf8: "utf8";
|
|
1296
|
+
}>;
|
|
1297
|
+
policy: z.ZodObject<{
|
|
1298
|
+
maxBytes: z.ZodNumber;
|
|
1299
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
1300
|
+
}, z.core.$strict>;
|
|
1301
|
+
}, z.core.$strict>;
|
|
705
1302
|
}, z.core.$strip>, z.ZodObject<{
|
|
706
1303
|
v: z.ZodNumber;
|
|
707
1304
|
id: z.ZodUUID;
|
|
@@ -758,6 +1355,10 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
|
|
|
758
1355
|
payload: z.ZodObject<{
|
|
759
1356
|
deviceId: z.ZodString;
|
|
760
1357
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
1359
|
+
agentId: z.ZodString;
|
|
1360
|
+
profileRevision: z.ZodString;
|
|
1361
|
+
}, z.core.$strict>>;
|
|
761
1362
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
762
1363
|
claude: "claude";
|
|
763
1364
|
codex: "codex";
|
|
@@ -791,6 +1392,10 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
|
|
|
791
1392
|
payload: z.ZodObject<{
|
|
792
1393
|
reason: z.ZodString;
|
|
793
1394
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1395
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
1396
|
+
agentId: z.ZodString;
|
|
1397
|
+
profileRevision: z.ZodString;
|
|
1398
|
+
}, z.core.$strict>>;
|
|
794
1399
|
}, z.core.$strip>;
|
|
795
1400
|
}, z.core.$strip>, z.ZodObject<{
|
|
796
1401
|
v: z.ZodNumber;
|
|
@@ -904,6 +1509,10 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
|
|
|
904
1509
|
clientVersion: z.ZodString;
|
|
905
1510
|
reportedAt: z.ZodISODateTime;
|
|
906
1511
|
}, z.core.$strip>>;
|
|
1512
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
1513
|
+
agentId: z.ZodString;
|
|
1514
|
+
profileRevision: z.ZodString;
|
|
1515
|
+
}, z.core.$strict>>;
|
|
907
1516
|
}, z.core.$strip>;
|
|
908
1517
|
}, z.core.$strip>, z.ZodObject<{
|
|
909
1518
|
v: z.ZodNumber;
|
|
@@ -930,6 +1539,10 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
|
|
|
930
1539
|
clientVersion: z.ZodString;
|
|
931
1540
|
reportedAt: z.ZodISODateTime;
|
|
932
1541
|
}, z.core.$strip>>;
|
|
1542
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
1543
|
+
agentId: z.ZodString;
|
|
1544
|
+
profileRevision: z.ZodString;
|
|
1545
|
+
}, z.core.$strict>>;
|
|
933
1546
|
}, z.core.$strip>;
|
|
934
1547
|
}, z.core.$strip>, z.ZodObject<{
|
|
935
1548
|
v: z.ZodNumber;
|
|
@@ -955,6 +1568,10 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
|
|
|
955
1568
|
clientVersion: z.ZodString;
|
|
956
1569
|
reportedAt: z.ZodISODateTime;
|
|
957
1570
|
}, z.core.$strip>>;
|
|
1571
|
+
agentRef: z.ZodOptional<z.ZodObject<{
|
|
1572
|
+
agentId: z.ZodString;
|
|
1573
|
+
profileRevision: z.ZodString;
|
|
1574
|
+
}, z.core.$strict>>;
|
|
958
1575
|
}, z.core.$strip>;
|
|
959
1576
|
}, z.core.$strip>, z.ZodObject<{
|
|
960
1577
|
v: z.ZodNumber;
|
|
@@ -975,6 +1592,139 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
|
|
|
975
1592
|
}>;
|
|
976
1593
|
at: z.ZodISODateTime;
|
|
977
1594
|
}, z.core.$strip>;
|
|
1595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1596
|
+
v: z.ZodNumber;
|
|
1597
|
+
id: z.ZodUUID;
|
|
1598
|
+
ts: z.ZodISODateTime;
|
|
1599
|
+
type: z.ZodLiteral<"agent.egress.reliable">;
|
|
1600
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
1601
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
1602
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
1603
|
+
payload: z.ZodObject<{
|
|
1604
|
+
agentRef: z.ZodObject<{
|
|
1605
|
+
agentId: z.ZodString;
|
|
1606
|
+
profileRevision: z.ZodString;
|
|
1607
|
+
}, z.core.$strict>;
|
|
1608
|
+
sessionRef: z.ZodString;
|
|
1609
|
+
policyRevision: z.ZodString;
|
|
1610
|
+
eventId: z.ZodUUID;
|
|
1611
|
+
cursor: z.ZodNumber;
|
|
1612
|
+
payload: z.ZodJSONSchema;
|
|
1613
|
+
contentHash: z.ZodString;
|
|
1614
|
+
byteCount: z.ZodNumber;
|
|
1615
|
+
}, z.core.$strict>;
|
|
1616
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1617
|
+
v: z.ZodNumber;
|
|
1618
|
+
id: z.ZodUUID;
|
|
1619
|
+
ts: z.ZodISODateTime;
|
|
1620
|
+
type: z.ZodLiteral<"agent.content.receipt">;
|
|
1621
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
1622
|
+
session_ref: z.ZodOptional<z.ZodString>;
|
|
1623
|
+
seq: z.ZodOptional<z.ZodNumber>;
|
|
1624
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1625
|
+
requestId: z.ZodUUID;
|
|
1626
|
+
eventId: z.ZodUUID;
|
|
1627
|
+
cursor: z.ZodNumber;
|
|
1628
|
+
surface: z.ZodEnum<{
|
|
1629
|
+
artifact: "artifact";
|
|
1630
|
+
transcript: "transcript";
|
|
1631
|
+
workspace: "workspace";
|
|
1632
|
+
}>;
|
|
1633
|
+
actor: z.ZodObject<{
|
|
1634
|
+
kind: z.ZodEnum<{
|
|
1635
|
+
agent: "agent";
|
|
1636
|
+
system: "system";
|
|
1637
|
+
user: "user";
|
|
1638
|
+
}>;
|
|
1639
|
+
id: z.ZodString;
|
|
1640
|
+
}, z.core.$strict>;
|
|
1641
|
+
agentRef: z.ZodObject<{
|
|
1642
|
+
agentId: z.ZodString;
|
|
1643
|
+
profileRevision: z.ZodString;
|
|
1644
|
+
}, z.core.$strict>;
|
|
1645
|
+
sessionRef: z.ZodString;
|
|
1646
|
+
runtime: z.ZodEnum<{
|
|
1647
|
+
claude: "claude";
|
|
1648
|
+
codex: "codex";
|
|
1649
|
+
pi: "pi";
|
|
1650
|
+
}>;
|
|
1651
|
+
cwd: z.ZodString;
|
|
1652
|
+
policyRevision: z.ZodString;
|
|
1653
|
+
target: z.ZodString;
|
|
1654
|
+
mimeType: z.ZodString;
|
|
1655
|
+
decodeAs: z.ZodEnum<{
|
|
1656
|
+
bytes: "bytes";
|
|
1657
|
+
utf8: "utf8";
|
|
1658
|
+
}>;
|
|
1659
|
+
decision: z.ZodLiteral<"allowed">;
|
|
1660
|
+
byteCount: z.ZodNumber;
|
|
1661
|
+
contentHash: z.ZodString;
|
|
1662
|
+
blobRef: z.ZodObject<{
|
|
1663
|
+
blobId: z.ZodString;
|
|
1664
|
+
contentHash: z.ZodString;
|
|
1665
|
+
size: z.ZodNumber;
|
|
1666
|
+
contentType: z.ZodString;
|
|
1667
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1668
|
+
}, z.core.$strip>;
|
|
1669
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1670
|
+
requestId: z.ZodUUID;
|
|
1671
|
+
eventId: z.ZodUUID;
|
|
1672
|
+
cursor: z.ZodNumber;
|
|
1673
|
+
surface: z.ZodEnum<{
|
|
1674
|
+
artifact: "artifact";
|
|
1675
|
+
transcript: "transcript";
|
|
1676
|
+
workspace: "workspace";
|
|
1677
|
+
}>;
|
|
1678
|
+
actor: z.ZodObject<{
|
|
1679
|
+
kind: z.ZodEnum<{
|
|
1680
|
+
agent: "agent";
|
|
1681
|
+
system: "system";
|
|
1682
|
+
user: "user";
|
|
1683
|
+
}>;
|
|
1684
|
+
id: z.ZodString;
|
|
1685
|
+
}, z.core.$strict>;
|
|
1686
|
+
agentRef: z.ZodObject<{
|
|
1687
|
+
agentId: z.ZodString;
|
|
1688
|
+
profileRevision: z.ZodString;
|
|
1689
|
+
}, z.core.$strict>;
|
|
1690
|
+
sessionRef: z.ZodString;
|
|
1691
|
+
runtime: z.ZodEnum<{
|
|
1692
|
+
claude: "claude";
|
|
1693
|
+
codex: "codex";
|
|
1694
|
+
pi: "pi";
|
|
1695
|
+
}>;
|
|
1696
|
+
cwd: z.ZodString;
|
|
1697
|
+
policyRevision: z.ZodString;
|
|
1698
|
+
target: z.ZodString;
|
|
1699
|
+
mimeType: z.ZodString;
|
|
1700
|
+
decodeAs: z.ZodEnum<{
|
|
1701
|
+
bytes: "bytes";
|
|
1702
|
+
utf8: "utf8";
|
|
1703
|
+
}>;
|
|
1704
|
+
decision: z.ZodLiteral<"denied">;
|
|
1705
|
+
byteCount: z.ZodLiteral<0>;
|
|
1706
|
+
reason: z.ZodEnum<{
|
|
1707
|
+
"absolute-target": "absolute-target";
|
|
1708
|
+
"byte-limit": "byte-limit";
|
|
1709
|
+
"capability-missing": "capability-missing";
|
|
1710
|
+
"dot-segment": "dot-segment";
|
|
1711
|
+
"identity-mismatch": "identity-mismatch";
|
|
1712
|
+
"invalid-request": "invalid-request";
|
|
1713
|
+
"mime-not-allowlisted": "mime-not-allowlisted";
|
|
1714
|
+
"non-relative-target": "non-relative-target";
|
|
1715
|
+
"not-regular-file": "not-regular-file";
|
|
1716
|
+
"path-escape": "path-escape";
|
|
1717
|
+
"policy-disabled": "policy-disabled";
|
|
1718
|
+
"policy-revision-mismatch": "policy-revision-mismatch";
|
|
1719
|
+
"root-invalid": "root-invalid";
|
|
1720
|
+
"root-not-allowlisted": "root-not-allowlisted";
|
|
1721
|
+
"sensitive-name": "sensitive-name";
|
|
1722
|
+
symlink: "symlink";
|
|
1723
|
+
"target-missing": "target-missing";
|
|
1724
|
+
"text-decode-failed": "text-decode-failed";
|
|
1725
|
+
"text-not-allowlisted": "text-not-allowlisted";
|
|
1726
|
+
}>;
|
|
1727
|
+
}, z.core.$strict>], "decision">;
|
|
978
1728
|
}, z.core.$strip>], "type">>;
|
|
979
1729
|
}, z.core.$strip>;
|
|
980
1730
|
export type MessagesSendRequest = z.infer<typeof MessagesSendRequestSchema>;
|