@oxy.so/contracts 4.8.0 → 4.9.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.
Files changed (58) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountGraph.js +13 -5
  3. package/dist/cjs/accountSubject.js +189 -0
  4. package/dist/cjs/agency.js +56 -4
  5. package/dist/cjs/agentKeys.js +67 -0
  6. package/dist/cjs/capabilityBindings.js +72 -0
  7. package/dist/cjs/index.js +60 -13
  8. package/dist/cjs/inference/economics.js +135 -0
  9. package/dist/cjs/products/access.js +60 -0
  10. package/dist/cjs/products/billing.js +32 -0
  11. package/dist/cjs/signIn.js +1 -1
  12. package/dist/esm/.tsbuildinfo +1 -1
  13. package/dist/esm/accountGraph.js +13 -5
  14. package/dist/esm/accountSubject.js +182 -0
  15. package/dist/esm/agency.js +55 -3
  16. package/dist/esm/agentKeys.js +63 -0
  17. package/dist/esm/capabilityBindings.js +67 -0
  18. package/dist/esm/index.js +10 -1
  19. package/dist/esm/inference/economics.js +132 -0
  20. package/dist/esm/products/access.js +57 -0
  21. package/dist/esm/products/billing.js +29 -0
  22. package/dist/esm/signIn.js +1 -1
  23. package/dist/types/.tsbuildinfo +1 -1
  24. package/dist/types/accountGraph.d.ts +23 -8
  25. package/dist/types/accountSubject.d.ts +210 -0
  26. package/dist/types/agency.d.ts +956 -190
  27. package/dist/types/agentKeys.d.ts +525 -0
  28. package/dist/types/capabilityBindings.d.ts +6 -0
  29. package/dist/types/deviceDirectory.d.ts +50 -50
  30. package/dist/types/deviceSession.d.ts +14 -14
  31. package/dist/types/externalIdentity.d.ts +4 -4
  32. package/dist/types/identity.d.ts +2 -2
  33. package/dist/types/index.d.ts +12 -2
  34. package/dist/types/inference/accountBilling.d.ts +30 -30
  35. package/dist/types/inference/aliaModelRelease.d.ts +83 -83
  36. package/dist/types/inference/catalogue.d.ts +180 -180
  37. package/dist/types/inference/economics.d.ts +376 -0
  38. package/dist/types/inference/entitlement.d.ts +47 -47
  39. package/dist/types/inference/inbox.d.ts +12 -12
  40. package/dist/types/inference/modelDocumentation.d.ts +231 -231
  41. package/dist/types/inference/priceVersion.d.ts +4 -4
  42. package/dist/types/inference/providerConnection.d.ts +38 -38
  43. package/dist/types/inference/realtime.d.ts +802 -802
  44. package/dist/types/inference/request.d.ts +844 -844
  45. package/dist/types/inference/routingPolicy.d.ts +4 -4
  46. package/dist/types/inference/scopedExecution.d.ts +38 -38
  47. package/dist/types/inference/streamEvents.d.ts +4 -4
  48. package/dist/types/inference/usage.d.ts +12 -12
  49. package/dist/types/keyRotation.d.ts +2 -2
  50. package/dist/types/notifications.d.ts +4 -4
  51. package/dist/types/oauth.d.ts +30 -30
  52. package/dist/types/products/access.d.ts +487 -0
  53. package/dist/types/products/billing.d.ts +563 -0
  54. package/dist/types/recommendations.d.ts +2 -2
  55. package/dist/types/sessionStatus.d.ts +10 -10
  56. package/dist/types/signIn.d.ts +6 -6
  57. package/dist/types/transparency.d.ts +2 -2
  58. package/package.json +1 -1
@@ -23,19 +23,88 @@ export declare const actorRefSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
23
23
  type: "agent";
24
24
  accountId: string;
25
25
  }>]>;
26
+ /** Present requester only; standing grants/automation retain actorRefSchema. */
27
+ export declare const executionActorRefSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
28
+ type: z.ZodLiteral<"alia">;
29
+ ownerAccountId: z.ZodString;
30
+ }, "strict", z.ZodTypeAny, {
31
+ type: "alia";
32
+ ownerAccountId: string;
33
+ }, {
34
+ type: "alia";
35
+ ownerAccountId: string;
36
+ }>, z.ZodObject<{
37
+ type: z.ZodLiteral<"agent">;
38
+ accountId: z.ZodString;
39
+ }, "strict", z.ZodTypeAny, {
40
+ type: "agent";
41
+ accountId: string;
42
+ }, {
43
+ type: "agent";
44
+ accountId: string;
45
+ }>, z.ZodObject<{
46
+ type: z.ZodLiteral<"requester">;
47
+ accountId: z.ZodString;
48
+ }, "strict", z.ZodTypeAny, {
49
+ type: "requester";
50
+ accountId: string;
51
+ }, {
52
+ type: "requester";
53
+ accountId: string;
54
+ }>]>;
55
+ /** Separate bearer lives only in the SDK option / authority request body. */
56
+ export declare const foregroundExecutionAuthorizationInputSchema: z.ZodObject<{
57
+ tool: z.ZodEnum<["recommendProfiles", "readViewerGraph"]>;
58
+ expectedCatalog: z.ZodObject<{
59
+ registrationId: z.ZodString;
60
+ version: z.ZodString;
61
+ digest: z.ZodString;
62
+ }, "strict", z.ZodTypeAny, {
63
+ registrationId: string;
64
+ version: string;
65
+ digest: string;
66
+ }, {
67
+ registrationId: string;
68
+ version: string;
69
+ digest: string;
70
+ }>;
71
+ runId: z.ZodString;
72
+ stepId: z.ZodOptional<z.ZodString>;
73
+ expiresAt: z.ZodString;
74
+ }, "strict", z.ZodTypeAny, {
75
+ expiresAt: string;
76
+ tool: "recommendProfiles" | "readViewerGraph";
77
+ expectedCatalog: {
78
+ registrationId: string;
79
+ version: string;
80
+ digest: string;
81
+ };
82
+ runId: string;
83
+ stepId?: string | undefined;
84
+ }, {
85
+ expiresAt: string;
86
+ tool: "recommendProfiles" | "readViewerGraph";
87
+ expectedCatalog: {
88
+ registrationId: string;
89
+ version: string;
90
+ digest: string;
91
+ };
92
+ runId: string;
93
+ stepId?: string | undefined;
94
+ }>;
26
95
  export declare const resourceRefSchema: z.ZodObject<{
27
96
  appId: z.ZodString;
28
97
  effectiveAccountId: z.ZodString;
29
98
  resourceType: z.ZodString;
30
99
  resourceId: z.ZodString;
31
100
  }, "strict", z.ZodTypeAny, {
32
- appId: string;
33
101
  effectiveAccountId: string;
102
+ appId: string;
34
103
  resourceType: string;
35
104
  resourceId: string;
36
105
  }, {
37
- appId: string;
38
106
  effectiveAccountId: string;
107
+ appId: string;
39
108
  resourceType: string;
40
109
  resourceId: string;
41
110
  }>;
@@ -107,6 +176,43 @@ export declare const capabilityCoordinatorSchema: z.ZodObject<{
107
176
  applicationId: string;
108
177
  credentialId: string;
109
178
  }>;
179
+ /** Opt-in catalogue pin; legacy issuance omits expectedCatalog and its claim. */
180
+ export declare const capabilityTicketRequestSchema: z.ZodObject<{
181
+ executionAuthorizationId: z.ZodString;
182
+ runId: z.ZodOptional<z.ZodString>;
183
+ stepId: z.ZodOptional<z.ZodString>;
184
+ expectedCatalog: z.ZodOptional<z.ZodObject<{
185
+ registrationId: z.ZodString;
186
+ version: z.ZodString;
187
+ digest: z.ZodString;
188
+ }, "strict", z.ZodTypeAny, {
189
+ registrationId: string;
190
+ version: string;
191
+ digest: string;
192
+ }, {
193
+ registrationId: string;
194
+ version: string;
195
+ digest: string;
196
+ }>>;
197
+ }, "strict", z.ZodTypeAny, {
198
+ executionAuthorizationId: string;
199
+ expectedCatalog?: {
200
+ registrationId: string;
201
+ version: string;
202
+ digest: string;
203
+ } | undefined;
204
+ runId?: string | undefined;
205
+ stepId?: string | undefined;
206
+ }, {
207
+ executionAuthorizationId: string;
208
+ expectedCatalog?: {
209
+ registrationId: string;
210
+ version: string;
211
+ digest: string;
212
+ } | undefined;
213
+ runId?: string | undefined;
214
+ stepId?: string | undefined;
215
+ }>;
110
216
  export declare const delegationGrantSchema: z.ZodObject<{
111
217
  id: z.ZodString;
112
218
  ownerAccountId: z.ZodString;
@@ -135,13 +241,13 @@ export declare const delegationGrantSchema: z.ZodObject<{
135
241
  resourceType: z.ZodString;
136
242
  resourceId: z.ZodString;
137
243
  }, "strict", z.ZodTypeAny, {
138
- appId: string;
139
244
  effectiveAccountId: string;
245
+ appId: string;
140
246
  resourceType: string;
141
247
  resourceId: string;
142
248
  }, {
143
- appId: string;
144
249
  effectiveAccountId: string;
250
+ appId: string;
145
251
  resourceType: string;
146
252
  resourceId: string;
147
253
  }>;
@@ -191,8 +297,6 @@ export declare const delegationGrantSchema: z.ZodObject<{
191
297
  updatedAt: z.ZodString;
192
298
  }, "strict", z.ZodTypeAny, {
193
299
  expiresAt: string | null;
194
- ownerAccountId: string;
195
- id: string;
196
300
  actor: {
197
301
  type: "alia";
198
302
  ownerAccountId: string;
@@ -200,9 +304,11 @@ export declare const delegationGrantSchema: z.ZodObject<{
200
304
  type: "agent";
201
305
  accountId: string;
202
306
  };
307
+ ownerAccountId: string;
308
+ id: string;
203
309
  resource: {
204
- appId: string;
205
310
  effectiveAccountId: string;
311
+ appId: string;
206
312
  resourceType: string;
207
313
  resourceId: string;
208
314
  };
@@ -229,8 +335,6 @@ export declare const delegationGrantSchema: z.ZodObject<{
229
335
  updatedAt: string;
230
336
  }, {
231
337
  expiresAt: string | null;
232
- ownerAccountId: string;
233
- id: string;
234
338
  actor: {
235
339
  type: "alia";
236
340
  ownerAccountId: string;
@@ -238,9 +342,11 @@ export declare const delegationGrantSchema: z.ZodObject<{
238
342
  type: "agent";
239
343
  accountId: string;
240
344
  };
345
+ ownerAccountId: string;
346
+ id: string;
241
347
  resource: {
242
- appId: string;
243
348
  effectiveAccountId: string;
349
+ appId: string;
244
350
  resourceType: string;
245
351
  resourceId: string;
246
352
  };
@@ -282,13 +388,13 @@ export declare const automationTriggerSchema: z.ZodDiscriminatedUnion<"type", [z
282
388
  resourceType: z.ZodString;
283
389
  resourceId: z.ZodString;
284
390
  }, "strict", z.ZodTypeAny, {
285
- appId: string;
286
391
  effectiveAccountId: string;
392
+ appId: string;
287
393
  resourceType: string;
288
394
  resourceId: string;
289
395
  }, {
290
- appId: string;
291
396
  effectiveAccountId: string;
397
+ appId: string;
292
398
  resourceType: string;
293
399
  resourceId: string;
294
400
  }>>;
@@ -297,8 +403,8 @@ export declare const automationTriggerSchema: z.ZodDiscriminatedUnion<"type", [z
297
403
  appId: string;
298
404
  eventType: string;
299
405
  resource?: {
300
- appId: string;
301
406
  effectiveAccountId: string;
407
+ appId: string;
302
408
  resourceType: string;
303
409
  resourceId: string;
304
410
  } | undefined;
@@ -307,8 +413,8 @@ export declare const automationTriggerSchema: z.ZodDiscriminatedUnion<"type", [z
307
413
  appId: string;
308
414
  eventType: string;
309
415
  resource?: {
310
- appId: string;
311
416
  effectiveAccountId: string;
417
+ appId: string;
312
418
  resourceType: string;
313
419
  resourceId: string;
314
420
  } | undefined;
@@ -378,13 +484,13 @@ export declare const automationDataFlowSchema: z.ZodObject<{
378
484
  resourceType: z.ZodString;
379
485
  resourceId: z.ZodString;
380
486
  }, "strict", z.ZodTypeAny, {
381
- appId: string;
382
487
  effectiveAccountId: string;
488
+ appId: string;
383
489
  resourceType: string;
384
490
  resourceId: string;
385
491
  }, {
386
- appId: string;
387
492
  effectiveAccountId: string;
493
+ appId: string;
388
494
  resourceType: string;
389
495
  resourceId: string;
390
496
  }>, "many">;
@@ -394,39 +500,39 @@ export declare const automationDataFlowSchema: z.ZodObject<{
394
500
  resourceType: z.ZodString;
395
501
  resourceId: z.ZodString;
396
502
  }, "strict", z.ZodTypeAny, {
397
- appId: string;
398
503
  effectiveAccountId: string;
504
+ appId: string;
399
505
  resourceType: string;
400
506
  resourceId: string;
401
507
  }, {
402
- appId: string;
403
508
  effectiveAccountId: string;
509
+ appId: string;
404
510
  resourceType: string;
405
511
  resourceId: string;
406
512
  }>, "many">;
407
513
  }, "strict", z.ZodTypeAny, {
408
514
  sources: {
409
- appId: string;
410
515
  effectiveAccountId: string;
516
+ appId: string;
411
517
  resourceType: string;
412
518
  resourceId: string;
413
519
  }[];
414
520
  destinations: {
415
- appId: string;
416
521
  effectiveAccountId: string;
522
+ appId: string;
417
523
  resourceType: string;
418
524
  resourceId: string;
419
525
  }[];
420
526
  }, {
421
527
  sources: {
422
- appId: string;
423
528
  effectiveAccountId: string;
529
+ appId: string;
424
530
  resourceType: string;
425
531
  resourceId: string;
426
532
  }[];
427
533
  destinations: {
428
- appId: string;
429
534
  effectiveAccountId: string;
535
+ appId: string;
430
536
  resourceType: string;
431
537
  resourceId: string;
432
538
  }[];
@@ -451,13 +557,13 @@ export declare const automationDefinitionSchema: z.ZodObject<{
451
557
  resourceType: z.ZodString;
452
558
  resourceId: z.ZodString;
453
559
  }, "strict", z.ZodTypeAny, {
454
- appId: string;
455
560
  effectiveAccountId: string;
561
+ appId: string;
456
562
  resourceType: string;
457
563
  resourceId: string;
458
564
  }, {
459
- appId: string;
460
565
  effectiveAccountId: string;
566
+ appId: string;
461
567
  resourceType: string;
462
568
  resourceId: string;
463
569
  }>>;
@@ -466,8 +572,8 @@ export declare const automationDefinitionSchema: z.ZodObject<{
466
572
  appId: string;
467
573
  eventType: string;
468
574
  resource?: {
469
- appId: string;
470
575
  effectiveAccountId: string;
576
+ appId: string;
471
577
  resourceType: string;
472
578
  resourceId: string;
473
579
  } | undefined;
@@ -476,8 +582,8 @@ export declare const automationDefinitionSchema: z.ZodObject<{
476
582
  appId: string;
477
583
  eventType: string;
478
584
  resource?: {
479
- appId: string;
480
585
  effectiveAccountId: string;
586
+ appId: string;
481
587
  resourceType: string;
482
588
  resourceId: string;
483
589
  } | undefined;
@@ -547,13 +653,13 @@ export declare const automationDefinitionSchema: z.ZodObject<{
547
653
  resourceType: z.ZodString;
548
654
  resourceId: z.ZodString;
549
655
  }, "strict", z.ZodTypeAny, {
550
- appId: string;
551
656
  effectiveAccountId: string;
657
+ appId: string;
552
658
  resourceType: string;
553
659
  resourceId: string;
554
660
  }, {
555
- appId: string;
556
661
  effectiveAccountId: string;
662
+ appId: string;
557
663
  resourceType: string;
558
664
  resourceId: string;
559
665
  }>, "many">;
@@ -564,13 +670,13 @@ export declare const automationDefinitionSchema: z.ZodObject<{
564
670
  resourceType: z.ZodString;
565
671
  resourceId: z.ZodString;
566
672
  }, "strict", z.ZodTypeAny, {
567
- appId: string;
568
673
  effectiveAccountId: string;
674
+ appId: string;
569
675
  resourceType: string;
570
676
  resourceId: string;
571
677
  }, {
572
- appId: string;
573
678
  effectiveAccountId: string;
679
+ appId: string;
574
680
  resourceType: string;
575
681
  resourceId: string;
576
682
  }>, "many">;
@@ -580,39 +686,39 @@ export declare const automationDefinitionSchema: z.ZodObject<{
580
686
  resourceType: z.ZodString;
581
687
  resourceId: z.ZodString;
582
688
  }, "strict", z.ZodTypeAny, {
583
- appId: string;
584
689
  effectiveAccountId: string;
690
+ appId: string;
585
691
  resourceType: string;
586
692
  resourceId: string;
587
693
  }, {
588
- appId: string;
589
694
  effectiveAccountId: string;
695
+ appId: string;
590
696
  resourceType: string;
591
697
  resourceId: string;
592
698
  }>, "many">;
593
699
  }, "strict", z.ZodTypeAny, {
594
700
  sources: {
595
- appId: string;
596
701
  effectiveAccountId: string;
702
+ appId: string;
597
703
  resourceType: string;
598
704
  resourceId: string;
599
705
  }[];
600
706
  destinations: {
601
- appId: string;
602
707
  effectiveAccountId: string;
708
+ appId: string;
603
709
  resourceType: string;
604
710
  resourceId: string;
605
711
  }[];
606
712
  }, {
607
713
  sources: {
608
- appId: string;
609
714
  effectiveAccountId: string;
715
+ appId: string;
610
716
  resourceType: string;
611
717
  resourceId: string;
612
718
  }[];
613
719
  destinations: {
614
- appId: string;
615
720
  effectiveAccountId: string;
721
+ appId: string;
616
722
  resourceType: string;
617
723
  resourceId: string;
618
724
  }[];
@@ -635,6 +741,12 @@ export declare const automationDefinitionSchema: z.ZodObject<{
635
741
  createdAt: z.ZodString;
636
742
  updatedAt: z.ZodString;
637
743
  }, "strict", z.ZodTypeAny, {
744
+ resources: {
745
+ effectiveAccountId: string;
746
+ appId: string;
747
+ resourceType: string;
748
+ resourceId: string;
749
+ }[];
638
750
  ownerAccountId: string;
639
751
  id: string;
640
752
  limits: {
@@ -653,8 +765,8 @@ export declare const automationDefinitionSchema: z.ZodObject<{
653
765
  appId: string;
654
766
  eventType: string;
655
767
  resource?: {
656
- appId: string;
657
768
  effectiveAccountId: string;
769
+ appId: string;
658
770
  resourceType: string;
659
771
  resourceId: string;
660
772
  } | undefined;
@@ -676,28 +788,28 @@ export declare const automationDefinitionSchema: z.ZodObject<{
676
788
  mode: "automatic";
677
789
  };
678
790
  inputs: Record<string, unknown>;
679
- resources: {
680
- appId: string;
681
- effectiveAccountId: string;
682
- resourceType: string;
683
- resourceId: string;
684
- }[];
685
791
  dataFlow: {
686
792
  sources: {
687
- appId: string;
688
793
  effectiveAccountId: string;
794
+ appId: string;
689
795
  resourceType: string;
690
796
  resourceId: string;
691
797
  }[];
692
798
  destinations: {
693
- appId: string;
694
799
  effectiveAccountId: string;
800
+ appId: string;
695
801
  resourceType: string;
696
802
  resourceId: string;
697
803
  }[];
698
804
  };
699
805
  enabled: boolean;
700
806
  }, {
807
+ resources: {
808
+ effectiveAccountId: string;
809
+ appId: string;
810
+ resourceType: string;
811
+ resourceId: string;
812
+ }[];
701
813
  ownerAccountId: string;
702
814
  id: string;
703
815
  maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
@@ -711,8 +823,8 @@ export declare const automationDefinitionSchema: z.ZodObject<{
711
823
  appId: string;
712
824
  eventType: string;
713
825
  resource?: {
714
- appId: string;
715
826
  effectiveAccountId: string;
827
+ appId: string;
716
828
  resourceType: string;
717
829
  resourceId: string;
718
830
  } | undefined;
@@ -734,22 +846,16 @@ export declare const automationDefinitionSchema: z.ZodObject<{
734
846
  mode: "automatic";
735
847
  };
736
848
  inputs: Record<string, unknown>;
737
- resources: {
738
- appId: string;
739
- effectiveAccountId: string;
740
- resourceType: string;
741
- resourceId: string;
742
- }[];
743
849
  dataFlow: {
744
850
  sources: {
745
- appId: string;
746
851
  effectiveAccountId: string;
852
+ appId: string;
747
853
  resourceType: string;
748
854
  resourceId: string;
749
855
  }[];
750
856
  destinations: {
751
- appId: string;
752
857
  effectiveAccountId: string;
858
+ appId: string;
753
859
  resourceType: string;
754
860
  resourceId: string;
755
861
  }[];
@@ -803,6 +909,20 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
803
909
  applicationId: string;
804
910
  credentialId: string;
805
911
  }>;
912
+ /** Signed only for callers that explicitly requested a pinned catalogue. */
913
+ catalog: z.ZodOptional<z.ZodObject<{
914
+ registrationId: z.ZodString;
915
+ version: z.ZodString;
916
+ digest: z.ZodString;
917
+ }, "strict", z.ZodTypeAny, {
918
+ registrationId: string;
919
+ version: string;
920
+ digest: string;
921
+ }, {
922
+ registrationId: string;
923
+ version: string;
924
+ digest: string;
925
+ }>>;
806
926
  grantId: z.ZodOptional<z.ZodString>;
807
927
  requesterAccountId: z.ZodString;
808
928
  ownerAccountId: z.ZodString;
@@ -824,6 +944,15 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
824
944
  }, {
825
945
  type: "agent";
826
946
  accountId: string;
947
+ }>, z.ZodObject<{
948
+ type: z.ZodLiteral<"requester">;
949
+ accountId: z.ZodString;
950
+ }, "strict", z.ZodTypeAny, {
951
+ type: "requester";
952
+ accountId: string;
953
+ }, {
954
+ type: "requester";
955
+ accountId: string;
827
956
  }>]>;
828
957
  resource: z.ZodObject<{
829
958
  appId: z.ZodString;
@@ -831,13 +960,13 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
831
960
  resourceType: z.ZodString;
832
961
  resourceId: z.ZodString;
833
962
  }, "strict", z.ZodTypeAny, {
834
- appId: string;
835
963
  effectiveAccountId: string;
964
+ appId: string;
836
965
  resourceType: string;
837
966
  resourceId: string;
838
967
  }, {
839
- appId: string;
840
968
  effectiveAccountId: string;
969
+ appId: string;
841
970
  resourceType: string;
842
971
  resourceId: string;
843
972
  }>;
@@ -858,18 +987,22 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
858
987
  }>, "many">>;
859
988
  autonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
860
989
  }, "strict", z.ZodTypeAny, {
861
- tool: string;
862
- ownerAccountId: string;
863
990
  actor: {
864
991
  type: "alia";
865
992
  ownerAccountId: string;
866
993
  } | {
867
994
  type: "agent";
868
995
  accountId: string;
996
+ } | {
997
+ type: "requester";
998
+ accountId: string;
869
999
  };
1000
+ tool: string;
1001
+ ownerAccountId: string;
1002
+ runId: string;
870
1003
  resource: {
871
- appId: string;
872
1004
  effectiveAccountId: string;
1005
+ appId: string;
873
1006
  resourceType: string;
874
1007
  resourceId: string;
875
1008
  };
@@ -885,7 +1018,6 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
885
1018
  jti: string;
886
1019
  iat: number;
887
1020
  exp: number;
888
- runId: string;
889
1021
  executionAuthorization: {
890
1022
  kind: "direct_request";
891
1023
  id: string;
@@ -900,22 +1032,31 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
900
1032
  };
901
1033
  requesterAccountId: string;
902
1034
  autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
903
- automationId?: string | undefined;
904
1035
  stepId?: string | undefined;
1036
+ automationId?: string | undefined;
1037
+ catalog?: {
1038
+ registrationId: string;
1039
+ version: string;
1040
+ digest: string;
1041
+ } | undefined;
905
1042
  grantId?: string | undefined;
906
1043
  }, {
907
- tool: string;
908
- ownerAccountId: string;
909
1044
  actor: {
910
1045
  type: "alia";
911
1046
  ownerAccountId: string;
912
1047
  } | {
913
1048
  type: "agent";
914
1049
  accountId: string;
1050
+ } | {
1051
+ type: "requester";
1052
+ accountId: string;
915
1053
  };
1054
+ tool: string;
1055
+ ownerAccountId: string;
1056
+ runId: string;
916
1057
  resource: {
917
- appId: string;
918
1058
  effectiveAccountId: string;
1059
+ appId: string;
919
1060
  resourceType: string;
920
1061
  resourceId: string;
921
1062
  };
@@ -926,7 +1067,6 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
926
1067
  jti: string;
927
1068
  iat: number;
928
1069
  exp: number;
929
- runId: string;
930
1070
  executionAuthorization: {
931
1071
  kind: "direct_request";
932
1072
  id: string;
@@ -941,107 +1081,715 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
941
1081
  };
942
1082
  requesterAccountId: string;
943
1083
  autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1084
+ stepId?: string | undefined;
944
1085
  automationId?: string | undefined;
1086
+ catalog?: {
1087
+ registrationId: string;
1088
+ version: string;
1089
+ digest: string;
1090
+ } | undefined;
945
1091
  limits?: {
946
1092
  value: number | boolean;
947
1093
  tool: string;
948
- key: string;
949
- }[] | undefined;
950
- stepId?: string | undefined;
951
- grantId?: string | undefined;
952
- }>, {
953
- tool: string;
954
- ownerAccountId: string;
955
- actor: {
956
- type: "alia";
1094
+ key: string;
1095
+ }[] | undefined;
1096
+ grantId?: string | undefined;
1097
+ }>, {
1098
+ actor: {
1099
+ type: "alia";
1100
+ ownerAccountId: string;
1101
+ } | {
1102
+ type: "agent";
1103
+ accountId: string;
1104
+ } | {
1105
+ type: "requester";
1106
+ accountId: string;
1107
+ };
1108
+ tool: string;
1109
+ ownerAccountId: string;
1110
+ runId: string;
1111
+ resource: {
1112
+ effectiveAccountId: string;
1113
+ appId: string;
1114
+ resourceType: string;
1115
+ resourceId: string;
1116
+ };
1117
+ capabilities: string[];
1118
+ limits: {
1119
+ value: number | boolean;
1120
+ tool: string;
1121
+ key: string;
1122
+ }[];
1123
+ iss: string;
1124
+ aud: string;
1125
+ sub: string;
1126
+ jti: string;
1127
+ iat: number;
1128
+ exp: number;
1129
+ executionAuthorization: {
1130
+ kind: "direct_request";
1131
+ id: string;
1132
+ } | {
1133
+ kind: "automation";
1134
+ id: string;
1135
+ automationId: string;
1136
+ };
1137
+ coordinator: {
1138
+ applicationId: string;
1139
+ credentialId: string;
1140
+ };
1141
+ requesterAccountId: string;
1142
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1143
+ stepId?: string | undefined;
1144
+ automationId?: string | undefined;
1145
+ catalog?: {
1146
+ registrationId: string;
1147
+ version: string;
1148
+ digest: string;
1149
+ } | undefined;
1150
+ grantId?: string | undefined;
1151
+ }, {
1152
+ actor: {
1153
+ type: "alia";
1154
+ ownerAccountId: string;
1155
+ } | {
1156
+ type: "agent";
1157
+ accountId: string;
1158
+ } | {
1159
+ type: "requester";
1160
+ accountId: string;
1161
+ };
1162
+ tool: string;
1163
+ ownerAccountId: string;
1164
+ runId: string;
1165
+ resource: {
1166
+ effectiveAccountId: string;
1167
+ appId: string;
1168
+ resourceType: string;
1169
+ resourceId: string;
1170
+ };
1171
+ capabilities: string[];
1172
+ iss: string;
1173
+ aud: string;
1174
+ sub: string;
1175
+ jti: string;
1176
+ iat: number;
1177
+ exp: number;
1178
+ executionAuthorization: {
1179
+ kind: "direct_request";
1180
+ id: string;
1181
+ } | {
1182
+ kind: "automation";
1183
+ id: string;
1184
+ automationId: string;
1185
+ };
1186
+ coordinator: {
1187
+ applicationId: string;
1188
+ credentialId: string;
1189
+ };
1190
+ requesterAccountId: string;
1191
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1192
+ stepId?: string | undefined;
1193
+ automationId?: string | undefined;
1194
+ catalog?: {
1195
+ registrationId: string;
1196
+ version: string;
1197
+ digest: string;
1198
+ } | undefined;
1199
+ limits?: {
1200
+ value: number | boolean;
1201
+ tool: string;
1202
+ key: string;
1203
+ }[] | undefined;
1204
+ grantId?: string | undefined;
1205
+ }>;
1206
+ /** Structural projections only: an authenticated transport must produce these. */
1207
+ export declare const invocationPrincipalSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1208
+ kind: z.ZodLiteral<"oauth">;
1209
+ subject: z.ZodString;
1210
+ clientId: z.ZodString;
1211
+ originAccountId: z.ZodString;
1212
+ activeAccountId: z.ZodString;
1213
+ scopes: z.ZodArray<z.ZodString, "many">;
1214
+ resource: z.ZodString;
1215
+ }, "strict", z.ZodTypeAny, {
1216
+ kind: "oauth";
1217
+ resource: string;
1218
+ subject: string;
1219
+ clientId: string;
1220
+ originAccountId: string;
1221
+ activeAccountId: string;
1222
+ scopes: string[];
1223
+ }, {
1224
+ kind: "oauth";
1225
+ resource: string;
1226
+ subject: string;
1227
+ clientId: string;
1228
+ originAccountId: string;
1229
+ activeAccountId: string;
1230
+ scopes: string[];
1231
+ }>, z.ZodObject<{
1232
+ kind: z.ZodLiteral<"capability">;
1233
+ claims: z.ZodEffects<z.ZodEffects<z.ZodObject<{
1234
+ iss: z.ZodString;
1235
+ aud: z.ZodString;
1236
+ sub: z.ZodString;
1237
+ jti: z.ZodString;
1238
+ iat: z.ZodNumber;
1239
+ exp: z.ZodNumber;
1240
+ runId: z.ZodString;
1241
+ stepId: z.ZodOptional<z.ZodString>;
1242
+ automationId: z.ZodOptional<z.ZodString>;
1243
+ executionAuthorization: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1244
+ kind: z.ZodLiteral<"direct_request">;
1245
+ id: z.ZodString;
1246
+ }, "strict", z.ZodTypeAny, {
1247
+ kind: "direct_request";
1248
+ id: string;
1249
+ }, {
1250
+ kind: "direct_request";
1251
+ id: string;
1252
+ }>, z.ZodObject<{
1253
+ kind: z.ZodLiteral<"automation">;
1254
+ id: z.ZodString;
1255
+ automationId: z.ZodString;
1256
+ }, "strict", z.ZodTypeAny, {
1257
+ kind: "automation";
1258
+ id: string;
1259
+ automationId: string;
1260
+ }, {
1261
+ kind: "automation";
1262
+ id: string;
1263
+ automationId: string;
1264
+ }>]>;
1265
+ coordinator: z.ZodObject<{
1266
+ applicationId: z.ZodString;
1267
+ credentialId: z.ZodString;
1268
+ }, "strict", z.ZodTypeAny, {
1269
+ applicationId: string;
1270
+ credentialId: string;
1271
+ }, {
1272
+ applicationId: string;
1273
+ credentialId: string;
1274
+ }>;
1275
+ /** Signed only for callers that explicitly requested a pinned catalogue. */
1276
+ catalog: z.ZodOptional<z.ZodObject<{
1277
+ registrationId: z.ZodString;
1278
+ version: z.ZodString;
1279
+ digest: z.ZodString;
1280
+ }, "strict", z.ZodTypeAny, {
1281
+ registrationId: string;
1282
+ version: string;
1283
+ digest: string;
1284
+ }, {
1285
+ registrationId: string;
1286
+ version: string;
1287
+ digest: string;
1288
+ }>>;
1289
+ grantId: z.ZodOptional<z.ZodString>;
1290
+ requesterAccountId: z.ZodString;
1291
+ ownerAccountId: z.ZodString;
1292
+ actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1293
+ type: z.ZodLiteral<"alia">;
1294
+ ownerAccountId: z.ZodString;
1295
+ }, "strict", z.ZodTypeAny, {
1296
+ type: "alia";
1297
+ ownerAccountId: string;
1298
+ }, {
1299
+ type: "alia";
1300
+ ownerAccountId: string;
1301
+ }>, z.ZodObject<{
1302
+ type: z.ZodLiteral<"agent">;
1303
+ accountId: z.ZodString;
1304
+ }, "strict", z.ZodTypeAny, {
1305
+ type: "agent";
1306
+ accountId: string;
1307
+ }, {
1308
+ type: "agent";
1309
+ accountId: string;
1310
+ }>, z.ZodObject<{
1311
+ type: z.ZodLiteral<"requester">;
1312
+ accountId: z.ZodString;
1313
+ }, "strict", z.ZodTypeAny, {
1314
+ type: "requester";
1315
+ accountId: string;
1316
+ }, {
1317
+ type: "requester";
1318
+ accountId: string;
1319
+ }>]>;
1320
+ resource: z.ZodObject<{
1321
+ appId: z.ZodString;
1322
+ effectiveAccountId: z.ZodString;
1323
+ resourceType: z.ZodString;
1324
+ resourceId: z.ZodString;
1325
+ }, "strict", z.ZodTypeAny, {
1326
+ effectiveAccountId: string;
1327
+ appId: string;
1328
+ resourceType: string;
1329
+ resourceId: string;
1330
+ }, {
1331
+ effectiveAccountId: string;
1332
+ appId: string;
1333
+ resourceType: string;
1334
+ resourceId: string;
1335
+ }>;
1336
+ tool: z.ZodString;
1337
+ capabilities: z.ZodArray<z.ZodString, "many">;
1338
+ limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
1339
+ tool: z.ZodString;
1340
+ key: z.ZodString;
1341
+ value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
1342
+ }, "strict", z.ZodTypeAny, {
1343
+ value: number | boolean;
1344
+ tool: string;
1345
+ key: string;
1346
+ }, {
1347
+ value: number | boolean;
1348
+ tool: string;
1349
+ key: string;
1350
+ }>, "many">>;
1351
+ autonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
1352
+ }, "strict", z.ZodTypeAny, {
1353
+ actor: {
1354
+ type: "alia";
1355
+ ownerAccountId: string;
1356
+ } | {
1357
+ type: "agent";
1358
+ accountId: string;
1359
+ } | {
1360
+ type: "requester";
1361
+ accountId: string;
1362
+ };
1363
+ tool: string;
1364
+ ownerAccountId: string;
1365
+ runId: string;
1366
+ resource: {
1367
+ effectiveAccountId: string;
1368
+ appId: string;
1369
+ resourceType: string;
1370
+ resourceId: string;
1371
+ };
1372
+ capabilities: string[];
1373
+ limits: {
1374
+ value: number | boolean;
1375
+ tool: string;
1376
+ key: string;
1377
+ }[];
1378
+ iss: string;
1379
+ aud: string;
1380
+ sub: string;
1381
+ jti: string;
1382
+ iat: number;
1383
+ exp: number;
1384
+ executionAuthorization: {
1385
+ kind: "direct_request";
1386
+ id: string;
1387
+ } | {
1388
+ kind: "automation";
1389
+ id: string;
1390
+ automationId: string;
1391
+ };
1392
+ coordinator: {
1393
+ applicationId: string;
1394
+ credentialId: string;
1395
+ };
1396
+ requesterAccountId: string;
1397
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1398
+ stepId?: string | undefined;
1399
+ automationId?: string | undefined;
1400
+ catalog?: {
1401
+ registrationId: string;
1402
+ version: string;
1403
+ digest: string;
1404
+ } | undefined;
1405
+ grantId?: string | undefined;
1406
+ }, {
1407
+ actor: {
1408
+ type: "alia";
1409
+ ownerAccountId: string;
1410
+ } | {
1411
+ type: "agent";
1412
+ accountId: string;
1413
+ } | {
1414
+ type: "requester";
1415
+ accountId: string;
1416
+ };
1417
+ tool: string;
1418
+ ownerAccountId: string;
1419
+ runId: string;
1420
+ resource: {
1421
+ effectiveAccountId: string;
1422
+ appId: string;
1423
+ resourceType: string;
1424
+ resourceId: string;
1425
+ };
1426
+ capabilities: string[];
1427
+ iss: string;
1428
+ aud: string;
1429
+ sub: string;
1430
+ jti: string;
1431
+ iat: number;
1432
+ exp: number;
1433
+ executionAuthorization: {
1434
+ kind: "direct_request";
1435
+ id: string;
1436
+ } | {
1437
+ kind: "automation";
1438
+ id: string;
1439
+ automationId: string;
1440
+ };
1441
+ coordinator: {
1442
+ applicationId: string;
1443
+ credentialId: string;
1444
+ };
1445
+ requesterAccountId: string;
1446
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1447
+ stepId?: string | undefined;
1448
+ automationId?: string | undefined;
1449
+ catalog?: {
1450
+ registrationId: string;
1451
+ version: string;
1452
+ digest: string;
1453
+ } | undefined;
1454
+ limits?: {
1455
+ value: number | boolean;
1456
+ tool: string;
1457
+ key: string;
1458
+ }[] | undefined;
1459
+ grantId?: string | undefined;
1460
+ }>, {
1461
+ actor: {
1462
+ type: "alia";
1463
+ ownerAccountId: string;
1464
+ } | {
1465
+ type: "agent";
1466
+ accountId: string;
1467
+ } | {
1468
+ type: "requester";
1469
+ accountId: string;
1470
+ };
1471
+ tool: string;
1472
+ ownerAccountId: string;
1473
+ runId: string;
1474
+ resource: {
1475
+ effectiveAccountId: string;
1476
+ appId: string;
1477
+ resourceType: string;
1478
+ resourceId: string;
1479
+ };
1480
+ capabilities: string[];
1481
+ limits: {
1482
+ value: number | boolean;
1483
+ tool: string;
1484
+ key: string;
1485
+ }[];
1486
+ iss: string;
1487
+ aud: string;
1488
+ sub: string;
1489
+ jti: string;
1490
+ iat: number;
1491
+ exp: number;
1492
+ executionAuthorization: {
1493
+ kind: "direct_request";
1494
+ id: string;
1495
+ } | {
1496
+ kind: "automation";
1497
+ id: string;
1498
+ automationId: string;
1499
+ };
1500
+ coordinator: {
1501
+ applicationId: string;
1502
+ credentialId: string;
1503
+ };
1504
+ requesterAccountId: string;
1505
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1506
+ stepId?: string | undefined;
1507
+ automationId?: string | undefined;
1508
+ catalog?: {
1509
+ registrationId: string;
1510
+ version: string;
1511
+ digest: string;
1512
+ } | undefined;
1513
+ grantId?: string | undefined;
1514
+ }, {
1515
+ actor: {
1516
+ type: "alia";
1517
+ ownerAccountId: string;
1518
+ } | {
1519
+ type: "agent";
1520
+ accountId: string;
1521
+ } | {
1522
+ type: "requester";
1523
+ accountId: string;
1524
+ };
1525
+ tool: string;
1526
+ ownerAccountId: string;
1527
+ runId: string;
1528
+ resource: {
1529
+ effectiveAccountId: string;
1530
+ appId: string;
1531
+ resourceType: string;
1532
+ resourceId: string;
1533
+ };
1534
+ capabilities: string[];
1535
+ iss: string;
1536
+ aud: string;
1537
+ sub: string;
1538
+ jti: string;
1539
+ iat: number;
1540
+ exp: number;
1541
+ executionAuthorization: {
1542
+ kind: "direct_request";
1543
+ id: string;
1544
+ } | {
1545
+ kind: "automation";
1546
+ id: string;
1547
+ automationId: string;
1548
+ };
1549
+ coordinator: {
1550
+ applicationId: string;
1551
+ credentialId: string;
1552
+ };
1553
+ requesterAccountId: string;
1554
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1555
+ stepId?: string | undefined;
1556
+ automationId?: string | undefined;
1557
+ catalog?: {
1558
+ registrationId: string;
1559
+ version: string;
1560
+ digest: string;
1561
+ } | undefined;
1562
+ limits?: {
1563
+ value: number | boolean;
1564
+ tool: string;
1565
+ key: string;
1566
+ }[] | undefined;
1567
+ grantId?: string | undefined;
1568
+ }>, {
1569
+ actor: {
1570
+ type: "alia";
1571
+ ownerAccountId: string;
1572
+ } | {
1573
+ type: "agent";
1574
+ accountId: string;
1575
+ } | {
1576
+ type: "requester";
1577
+ accountId: string;
1578
+ };
1579
+ tool: string;
1580
+ ownerAccountId: string;
1581
+ runId: string;
1582
+ resource: {
1583
+ effectiveAccountId: string;
1584
+ appId: string;
1585
+ resourceType: string;
1586
+ resourceId: string;
1587
+ };
1588
+ capabilities: string[];
1589
+ limits: {
1590
+ value: number | boolean;
1591
+ tool: string;
1592
+ key: string;
1593
+ }[];
1594
+ iss: string;
1595
+ aud: string;
1596
+ sub: string;
1597
+ jti: string;
1598
+ iat: number;
1599
+ exp: number;
1600
+ executionAuthorization: {
1601
+ kind: "direct_request";
1602
+ id: string;
1603
+ } | {
1604
+ kind: "automation";
1605
+ id: string;
1606
+ automationId: string;
1607
+ };
1608
+ coordinator: {
1609
+ applicationId: string;
1610
+ credentialId: string;
1611
+ };
1612
+ requesterAccountId: string;
1613
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1614
+ stepId?: string | undefined;
1615
+ automationId?: string | undefined;
1616
+ catalog?: {
1617
+ registrationId: string;
1618
+ version: string;
1619
+ digest: string;
1620
+ } | undefined;
1621
+ grantId?: string | undefined;
1622
+ }, {
1623
+ actor: {
1624
+ type: "alia";
1625
+ ownerAccountId: string;
1626
+ } | {
1627
+ type: "agent";
1628
+ accountId: string;
1629
+ } | {
1630
+ type: "requester";
1631
+ accountId: string;
1632
+ };
1633
+ tool: string;
957
1634
  ownerAccountId: string;
958
- } | {
959
- type: "agent";
960
- accountId: string;
961
- };
962
- resource: {
963
- appId: string;
964
- effectiveAccountId: string;
965
- resourceType: string;
966
- resourceId: string;
967
- };
968
- capabilities: string[];
969
- limits: {
970
- value: number | boolean;
1635
+ runId: string;
1636
+ resource: {
1637
+ effectiveAccountId: string;
1638
+ appId: string;
1639
+ resourceType: string;
1640
+ resourceId: string;
1641
+ };
1642
+ capabilities: string[];
1643
+ iss: string;
1644
+ aud: string;
1645
+ sub: string;
1646
+ jti: string;
1647
+ iat: number;
1648
+ exp: number;
1649
+ executionAuthorization: {
1650
+ kind: "direct_request";
1651
+ id: string;
1652
+ } | {
1653
+ kind: "automation";
1654
+ id: string;
1655
+ automationId: string;
1656
+ };
1657
+ coordinator: {
1658
+ applicationId: string;
1659
+ credentialId: string;
1660
+ };
1661
+ requesterAccountId: string;
1662
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1663
+ stepId?: string | undefined;
1664
+ automationId?: string | undefined;
1665
+ catalog?: {
1666
+ registrationId: string;
1667
+ version: string;
1668
+ digest: string;
1669
+ } | undefined;
1670
+ limits?: {
1671
+ value: number | boolean;
1672
+ tool: string;
1673
+ key: string;
1674
+ }[] | undefined;
1675
+ grantId?: string | undefined;
1676
+ }>;
1677
+ }, "strict", z.ZodTypeAny, {
1678
+ kind: "capability";
1679
+ claims: {
1680
+ actor: {
1681
+ type: "alia";
1682
+ ownerAccountId: string;
1683
+ } | {
1684
+ type: "agent";
1685
+ accountId: string;
1686
+ } | {
1687
+ type: "requester";
1688
+ accountId: string;
1689
+ };
971
1690
  tool: string;
972
- key: string;
973
- }[];
974
- iss: string;
975
- aud: string;
976
- sub: string;
977
- jti: string;
978
- iat: number;
979
- exp: number;
980
- runId: string;
981
- executionAuthorization: {
982
- kind: "direct_request";
983
- id: string;
984
- } | {
985
- kind: "automation";
986
- id: string;
987
- automationId: string;
988
- };
989
- coordinator: {
990
- applicationId: string;
991
- credentialId: string;
1691
+ ownerAccountId: string;
1692
+ runId: string;
1693
+ resource: {
1694
+ effectiveAccountId: string;
1695
+ appId: string;
1696
+ resourceType: string;
1697
+ resourceId: string;
1698
+ };
1699
+ capabilities: string[];
1700
+ limits: {
1701
+ value: number | boolean;
1702
+ tool: string;
1703
+ key: string;
1704
+ }[];
1705
+ iss: string;
1706
+ aud: string;
1707
+ sub: string;
1708
+ jti: string;
1709
+ iat: number;
1710
+ exp: number;
1711
+ executionAuthorization: {
1712
+ kind: "direct_request";
1713
+ id: string;
1714
+ } | {
1715
+ kind: "automation";
1716
+ id: string;
1717
+ automationId: string;
1718
+ };
1719
+ coordinator: {
1720
+ applicationId: string;
1721
+ credentialId: string;
1722
+ };
1723
+ requesterAccountId: string;
1724
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1725
+ stepId?: string | undefined;
1726
+ automationId?: string | undefined;
1727
+ catalog?: {
1728
+ registrationId: string;
1729
+ version: string;
1730
+ digest: string;
1731
+ } | undefined;
1732
+ grantId?: string | undefined;
992
1733
  };
993
- requesterAccountId: string;
994
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
995
- automationId?: string | undefined;
996
- stepId?: string | undefined;
997
- grantId?: string | undefined;
998
1734
  }, {
999
- tool: string;
1000
- ownerAccountId: string;
1001
- actor: {
1002
- type: "alia";
1735
+ kind: "capability";
1736
+ claims: {
1737
+ actor: {
1738
+ type: "alia";
1739
+ ownerAccountId: string;
1740
+ } | {
1741
+ type: "agent";
1742
+ accountId: string;
1743
+ } | {
1744
+ type: "requester";
1745
+ accountId: string;
1746
+ };
1747
+ tool: string;
1003
1748
  ownerAccountId: string;
1004
- } | {
1005
- type: "agent";
1006
- accountId: string;
1007
- };
1008
- resource: {
1009
- appId: string;
1010
- effectiveAccountId: string;
1011
- resourceType: string;
1012
- resourceId: string;
1013
- };
1014
- capabilities: string[];
1015
- iss: string;
1016
- aud: string;
1017
- sub: string;
1018
- jti: string;
1019
- iat: number;
1020
- exp: number;
1021
- runId: string;
1022
- executionAuthorization: {
1023
- kind: "direct_request";
1024
- id: string;
1025
- } | {
1026
- kind: "automation";
1027
- id: string;
1028
- automationId: string;
1029
- };
1030
- coordinator: {
1031
- applicationId: string;
1032
- credentialId: string;
1749
+ runId: string;
1750
+ resource: {
1751
+ effectiveAccountId: string;
1752
+ appId: string;
1753
+ resourceType: string;
1754
+ resourceId: string;
1755
+ };
1756
+ capabilities: string[];
1757
+ iss: string;
1758
+ aud: string;
1759
+ sub: string;
1760
+ jti: string;
1761
+ iat: number;
1762
+ exp: number;
1763
+ executionAuthorization: {
1764
+ kind: "direct_request";
1765
+ id: string;
1766
+ } | {
1767
+ kind: "automation";
1768
+ id: string;
1769
+ automationId: string;
1770
+ };
1771
+ coordinator: {
1772
+ applicationId: string;
1773
+ credentialId: string;
1774
+ };
1775
+ requesterAccountId: string;
1776
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1777
+ stepId?: string | undefined;
1778
+ automationId?: string | undefined;
1779
+ catalog?: {
1780
+ registrationId: string;
1781
+ version: string;
1782
+ digest: string;
1783
+ } | undefined;
1784
+ limits?: {
1785
+ value: number | boolean;
1786
+ tool: string;
1787
+ key: string;
1788
+ }[] | undefined;
1789
+ grantId?: string | undefined;
1033
1790
  };
1034
- requesterAccountId: string;
1035
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1036
- automationId?: string | undefined;
1037
- limits?: {
1038
- value: number | boolean;
1039
- tool: string;
1040
- key: string;
1041
- }[] | undefined;
1042
- stepId?: string | undefined;
1043
- grantId?: string | undefined;
1044
- }>;
1791
+ }>]>;
1792
+ export type InvocationPrincipal = z.infer<typeof invocationPrincipalSchema>;
1045
1793
  export declare const policyDecisionSchema: z.ZodObject<{
1046
1794
  allowed: z.ZodBoolean;
1047
1795
  reason: z.ZodString;
@@ -1100,6 +1848,15 @@ export declare const auditEventSchema: z.ZodObject<{
1100
1848
  }, {
1101
1849
  type: "agent";
1102
1850
  accountId: string;
1851
+ }>, z.ZodObject<{
1852
+ type: z.ZodLiteral<"requester">;
1853
+ accountId: z.ZodString;
1854
+ }, "strict", z.ZodTypeAny, {
1855
+ type: "requester";
1856
+ accountId: string;
1857
+ }, {
1858
+ type: "requester";
1859
+ accountId: string;
1103
1860
  }>]>;
1104
1861
  effectiveAccountId: z.ZodString;
1105
1862
  resource: z.ZodObject<{
@@ -1108,13 +1865,13 @@ export declare const auditEventSchema: z.ZodObject<{
1108
1865
  resourceType: z.ZodString;
1109
1866
  resourceId: z.ZodString;
1110
1867
  }, "strict", z.ZodTypeAny, {
1111
- appId: string;
1112
1868
  effectiveAccountId: string;
1869
+ appId: string;
1113
1870
  resourceType: string;
1114
1871
  resourceId: string;
1115
1872
  }, {
1116
- appId: string;
1117
1873
  effectiveAccountId: string;
1874
+ appId: string;
1118
1875
  resourceType: string;
1119
1876
  resourceId: string;
1120
1877
  }>;
@@ -1168,24 +1925,24 @@ export declare const auditEventSchema: z.ZodObject<{
1168
1925
  capabilityTicketId: z.ZodOptional<z.ZodString>;
1169
1926
  }, "strict", z.ZodTypeAny, {
1170
1927
  runId: string;
1171
- automationId?: string | undefined;
1172
1928
  stepId?: string | undefined;
1929
+ automationId?: string | undefined;
1173
1930
  idempotencyKeyHash?: string | undefined;
1174
1931
  capabilityTicketId?: string | undefined;
1175
1932
  }, {
1176
1933
  runId: string;
1177
- automationId?: string | undefined;
1178
1934
  stepId?: string | undefined;
1935
+ automationId?: string | undefined;
1179
1936
  idempotencyKeyHash?: string | undefined;
1180
1937
  capabilityTicketId?: string | undefined;
1181
1938
  }>;
1182
1939
  }, "strict", z.ZodTypeAny, {
1940
+ effectiveAccountId: string;
1183
1941
  tool: string;
1184
1942
  appId: string;
1185
- effectiveAccountId: string;
1186
1943
  resource: {
1187
- appId: string;
1188
1944
  effectiveAccountId: string;
1945
+ appId: string;
1189
1946
  resourceType: string;
1190
1947
  resourceId: string;
1191
1948
  };
@@ -1203,6 +1960,9 @@ export declare const auditEventSchema: z.ZodObject<{
1203
1960
  } | {
1204
1961
  type: "agent";
1205
1962
  accountId: string;
1963
+ } | {
1964
+ type: "requester";
1965
+ accountId: string;
1206
1966
  };
1207
1967
  policyDecision: {
1208
1968
  allowed: boolean;
@@ -1221,18 +1981,18 @@ export declare const auditEventSchema: z.ZodObject<{
1221
1981
  };
1222
1982
  correlation: {
1223
1983
  runId: string;
1224
- automationId?: string | undefined;
1225
1984
  stepId?: string | undefined;
1985
+ automationId?: string | undefined;
1226
1986
  idempotencyKeyHash?: string | undefined;
1227
1987
  capabilityTicketId?: string | undefined;
1228
1988
  };
1229
1989
  }, {
1990
+ effectiveAccountId: string;
1230
1991
  tool: string;
1231
1992
  appId: string;
1232
- effectiveAccountId: string;
1233
1993
  resource: {
1234
- appId: string;
1235
1994
  effectiveAccountId: string;
1995
+ appId: string;
1236
1996
  resourceType: string;
1237
1997
  resourceId: string;
1238
1998
  };
@@ -1250,6 +2010,9 @@ export declare const auditEventSchema: z.ZodObject<{
1250
2010
  } | {
1251
2011
  type: "agent";
1252
2012
  accountId: string;
2013
+ } | {
2014
+ type: "requester";
2015
+ accountId: string;
1253
2016
  };
1254
2017
  policyDecision: {
1255
2018
  allowed: boolean;
@@ -1268,8 +2031,8 @@ export declare const auditEventSchema: z.ZodObject<{
1268
2031
  };
1269
2032
  correlation: {
1270
2033
  runId: string;
1271
- automationId?: string | undefined;
1272
2034
  stepId?: string | undefined;
2035
+ automationId?: string | undefined;
1273
2036
  idempotencyKeyHash?: string | undefined;
1274
2037
  capabilityTicketId?: string | undefined;
1275
2038
  };
@@ -1566,9 +2329,9 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
1566
2329
  dataSchema: Record<string, unknown>;
1567
2330
  }>, "many">;
1568
2331
  }, "strict", z.ZodTypeAny, {
1569
- appId: string;
1570
- version: string;
1571
2332
  schemaVersion: "1";
2333
+ version: string;
2334
+ appId: string;
1572
2335
  audience: string;
1573
2336
  internalBaseUrl: string;
1574
2337
  accountResourceType: string;
@@ -1605,9 +2368,9 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
1605
2368
  resource: string;
1606
2369
  } | undefined;
1607
2370
  }, {
1608
- appId: string;
1609
- version: string;
1610
2371
  schemaVersion: "1";
2372
+ version: string;
2373
+ appId: string;
1611
2374
  audience: string;
1612
2375
  internalBaseUrl: string;
1613
2376
  accountResourceType: string;
@@ -1644,9 +2407,9 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
1644
2407
  resource: string;
1645
2408
  } | undefined;
1646
2409
  }>, {
1647
- appId: string;
1648
- version: string;
1649
2410
  schemaVersion: "1";
2411
+ version: string;
2412
+ appId: string;
1650
2413
  audience: string;
1651
2414
  internalBaseUrl: string;
1652
2415
  accountResourceType: string;
@@ -1683,9 +2446,9 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
1683
2446
  resource: string;
1684
2447
  } | undefined;
1685
2448
  }, {
1686
- appId: string;
1687
- version: string;
1688
2449
  schemaVersion: "1";
2450
+ version: string;
2451
+ appId: string;
1689
2452
  audience: string;
1690
2453
  internalBaseUrl: string;
1691
2454
  accountResourceType: string;
@@ -1878,9 +2641,9 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
1878
2641
  dataSchema: Record<string, unknown>;
1879
2642
  }>, "many">;
1880
2643
  }, "strict", z.ZodTypeAny, {
1881
- appId: string;
1882
- version: string;
1883
2644
  schemaVersion: "1";
2645
+ version: string;
2646
+ appId: string;
1884
2647
  audience: string;
1885
2648
  internalBaseUrl: string;
1886
2649
  accountResourceType: string;
@@ -1917,9 +2680,9 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
1917
2680
  resource: string;
1918
2681
  } | undefined;
1919
2682
  }, {
1920
- appId: string;
1921
- version: string;
1922
2683
  schemaVersion: "1";
2684
+ version: string;
2685
+ appId: string;
1923
2686
  audience: string;
1924
2687
  internalBaseUrl: string;
1925
2688
  accountResourceType: string;
@@ -1956,9 +2719,9 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
1956
2719
  resource: string;
1957
2720
  } | undefined;
1958
2721
  }>, {
1959
- appId: string;
1960
- version: string;
1961
2722
  schemaVersion: "1";
2723
+ version: string;
2724
+ appId: string;
1962
2725
  audience: string;
1963
2726
  internalBaseUrl: string;
1964
2727
  accountResourceType: string;
@@ -1995,9 +2758,9 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
1995
2758
  resource: string;
1996
2759
  } | undefined;
1997
2760
  }, {
1998
- appId: string;
1999
- version: string;
2000
2761
  schemaVersion: "1";
2762
+ version: string;
2763
+ appId: string;
2001
2764
  audience: string;
2002
2765
  internalBaseUrl: string;
2003
2766
  accountResourceType: string;
@@ -2040,9 +2803,9 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
2040
2803
  }, "strict", z.ZodTypeAny, {
2041
2804
  digest: string;
2042
2805
  catalog: {
2043
- appId: string;
2044
- version: string;
2045
2806
  schemaVersion: "1";
2807
+ version: string;
2808
+ appId: string;
2046
2809
  audience: string;
2047
2810
  internalBaseUrl: string;
2048
2811
  accountResourceType: string;
@@ -2084,9 +2847,9 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
2084
2847
  }, {
2085
2848
  digest: string;
2086
2849
  catalog: {
2087
- appId: string;
2088
- version: string;
2089
2850
  schemaVersion: "1";
2851
+ version: string;
2852
+ appId: string;
2090
2853
  audience: string;
2091
2854
  internalBaseUrl: string;
2092
2855
  accountResourceType: string;
@@ -2136,13 +2899,13 @@ export declare const normalizedAppEventSchema: z.ZodObject<{
2136
2899
  resourceType: z.ZodString;
2137
2900
  resourceId: z.ZodString;
2138
2901
  }, "strict", z.ZodTypeAny, {
2139
- appId: string;
2140
2902
  effectiveAccountId: string;
2903
+ appId: string;
2141
2904
  resourceType: string;
2142
2905
  resourceId: string;
2143
2906
  }, {
2144
- appId: string;
2145
2907
  effectiveAccountId: string;
2908
+ appId: string;
2146
2909
  resourceType: string;
2147
2910
  resourceId: string;
2148
2911
  }>;
@@ -2154,8 +2917,8 @@ export declare const normalizedAppEventSchema: z.ZodObject<{
2154
2917
  accountId: string;
2155
2918
  appId: string;
2156
2919
  resource: {
2157
- appId: string;
2158
2920
  effectiveAccountId: string;
2921
+ appId: string;
2159
2922
  resourceType: string;
2160
2923
  resourceId: string;
2161
2924
  };
@@ -2167,8 +2930,8 @@ export declare const normalizedAppEventSchema: z.ZodObject<{
2167
2930
  accountId: string;
2168
2931
  appId: string;
2169
2932
  resource: {
2170
- appId: string;
2171
2933
  effectiveAccountId: string;
2934
+ appId: string;
2172
2935
  resourceType: string;
2173
2936
  resourceId: string;
2174
2937
  };
@@ -2178,6 +2941,8 @@ export declare const normalizedAppEventSchema: z.ZodObject<{
2178
2941
  }>;
2179
2942
  export type AutonomyLevel = z.infer<typeof autonomyLevelSchema>;
2180
2943
  export type CapabilityPackage = z.infer<typeof capabilityPackageSchema>;
2944
+ export type ExecutionActorRef = z.infer<typeof executionActorRefSchema>;
2945
+ export type ForegroundExecutionAuthorizationInput = z.infer<typeof foregroundExecutionAuthorizationInputSchema>;
2181
2946
  export type ActorRef = z.infer<typeof actorRefSchema>;
2182
2947
  export type ResourceRef = z.infer<typeof resourceRefSchema>;
2183
2948
  export type ToolGrantOverride = z.infer<typeof toolGrantOverrideSchema>;
@@ -2185,6 +2950,7 @@ export type GrantLimit = z.infer<typeof grantLimitSchema>;
2185
2950
  export type CapabilityCatalogBinding = z.infer<typeof capabilityCatalogBindingSchema>;
2186
2951
  export type ExecutionAuthorizationRef = z.infer<typeof executionAuthorizationRefSchema>;
2187
2952
  export type CapabilityCoordinator = z.infer<typeof capabilityCoordinatorSchema>;
2953
+ export type CapabilityTicketRequest = z.infer<typeof capabilityTicketRequestSchema>;
2188
2954
  export type DelegationGrant = z.infer<typeof delegationGrantSchema>;
2189
2955
  export type AutomationTrigger = z.infer<typeof automationTriggerSchema>;
2190
2956
  export type AutomationActorSelection = z.infer<typeof automationActorSelectionSchema>;