@oxy.so/contracts 5.8.0 → 6.1.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 (231) hide show
  1. package/dist/cjs/accountAccess.js +6 -5
  2. package/dist/cjs/accountEmail.js +13 -5
  3. package/dist/cjs/accountGraph.js +10 -9
  4. package/dist/cjs/accountName.js +3 -2
  5. package/dist/cjs/agency.js +91 -34
  6. package/dist/cjs/agentKeys.js +21 -17
  7. package/dist/cjs/appAssertions.js +14 -13
  8. package/dist/cjs/applicationRoles.js +19 -12
  9. package/dist/cjs/campaignAttribution.js +28 -0
  10. package/dist/cjs/civic.js +10 -9
  11. package/dist/cjs/client/campaignAttribution.js +14 -0
  12. package/dist/cjs/client/check.js +61 -53
  13. package/dist/cjs/client/index.js +7 -1
  14. package/dist/cjs/client/language.js +7 -0
  15. package/dist/cjs/consoleOnboarding.js +9 -4
  16. package/dist/cjs/contentClaims.js +23 -14
  17. package/dist/cjs/deviceDirectory.js +11 -9
  18. package/dist/cjs/deviceSession.js +27 -25
  19. package/dist/cjs/email/messages.js +20 -18
  20. package/dist/cjs/emailAgentContext.js +11 -9
  21. package/dist/cjs/externalIdentity.js +15 -11
  22. package/dist/cjs/federationInstanceFetch.js +12 -7
  23. package/dist/cjs/identity.js +19 -17
  24. package/dist/cjs/identityLink.js +6 -4
  25. package/dist/cjs/identityProof.js +6 -4
  26. package/dist/cjs/inboxPush.js +5 -4
  27. package/dist/cjs/index.js +17 -6
  28. package/dist/cjs/inference/accountBilling.js +35 -33
  29. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  30. package/dist/cjs/inference/attribution.js +14 -12
  31. package/dist/cjs/inference/catalogue.js +35 -29
  32. package/dist/cjs/inference/economics.js +24 -19
  33. package/dist/cjs/inference/embeddings.js +9 -7
  34. package/dist/cjs/inference/entitlement.js +17 -15
  35. package/dist/cjs/inference/errors.js +15 -8
  36. package/dist/cjs/inference/identifiers.js +33 -21
  37. package/dist/cjs/inference/inbox.js +37 -35
  38. package/dist/cjs/inference/modelDocumentation.js +16 -14
  39. package/dist/cjs/inference/money.js +5 -4
  40. package/dist/cjs/inference/priceVersion.js +10 -5
  41. package/dist/cjs/inference/providerConnection.js +21 -14
  42. package/dist/cjs/inference/realtime.js +88 -47
  43. package/dist/cjs/inference/request.js +27 -25
  44. package/dist/cjs/inference/routingPolicy.js +12 -10
  45. package/dist/cjs/inference/streamEvents.js +22 -16
  46. package/dist/cjs/inference/usage.js +32 -15
  47. package/dist/cjs/keyRecovery.js +8 -6
  48. package/dist/cjs/keyRotation.js +5 -4
  49. package/dist/cjs/linkedAccounts.js +22 -18
  50. package/dist/cjs/moderationReputation.js +29 -27
  51. package/dist/cjs/notifications.js +25 -9
  52. package/dist/cjs/numberChecks.js +45 -0
  53. package/dist/cjs/oauth.js +14 -12
  54. package/dist/cjs/organizations.js +23 -21
  55. package/dist/cjs/products/access.js +10 -8
  56. package/dist/cjs/products/billing.js +10 -8
  57. package/dist/cjs/products/checkout.js +22 -10
  58. package/dist/cjs/products/plans.js +15 -10
  59. package/dist/cjs/protocol.js +6 -5
  60. package/dist/cjs/recommendations.js +27 -19
  61. package/dist/cjs/reputation.js +15 -13
  62. package/dist/cjs/safety.js +43 -27
  63. package/dist/cjs/serviceToken.js +81 -2
  64. package/dist/cjs/sessionRevocation.js +8 -6
  65. package/dist/cjs/signIn.js +50 -24
  66. package/dist/cjs/stickers.js +19 -15
  67. package/dist/cjs/stringChecks.js +70 -0
  68. package/dist/cjs/transparency.js +14 -12
  69. package/dist/cjs/updates.js +24 -22
  70. package/dist/cjs/userInvalidation.js +7 -5
  71. package/dist/cjs/userResponse.js +8 -7
  72. package/dist/cjs/username.js +7 -6
  73. package/dist/esm/accountAccess.js +4 -3
  74. package/dist/esm/accountEmail.js +13 -5
  75. package/dist/esm/accountGraph.js +8 -7
  76. package/dist/esm/accountName.js +3 -2
  77. package/dist/esm/agency.js +90 -33
  78. package/dist/esm/agentKeys.js +21 -17
  79. package/dist/esm/appAssertions.js +11 -10
  80. package/dist/esm/applicationRoles.js +16 -9
  81. package/dist/esm/campaignAttribution.js +25 -0
  82. package/dist/esm/civic.js +8 -7
  83. package/dist/esm/client/campaignAttribution.js +10 -0
  84. package/dist/esm/client/check.js +61 -53
  85. package/dist/esm/client/index.js +2 -0
  86. package/dist/esm/client/language.js +4 -0
  87. package/dist/esm/consoleOnboarding.js +7 -2
  88. package/dist/esm/contentClaims.js +23 -14
  89. package/dist/esm/deviceDirectory.js +11 -9
  90. package/dist/esm/deviceSession.js +27 -25
  91. package/dist/esm/email/messages.js +18 -16
  92. package/dist/esm/emailAgentContext.js +11 -9
  93. package/dist/esm/externalIdentity.js +15 -11
  94. package/dist/esm/federationInstanceFetch.js +10 -5
  95. package/dist/esm/identity.js +17 -15
  96. package/dist/esm/identityLink.js +6 -4
  97. package/dist/esm/identityProof.js +6 -4
  98. package/dist/esm/inboxPush.js +3 -2
  99. package/dist/esm/index.js +5 -2
  100. package/dist/esm/inference/accountBilling.js +33 -31
  101. package/dist/esm/inference/aliaModelRelease.js +7 -5
  102. package/dist/esm/inference/attribution.js +14 -12
  103. package/dist/esm/inference/catalogue.js +33 -27
  104. package/dist/esm/inference/economics.js +22 -17
  105. package/dist/esm/inference/embeddings.js +9 -7
  106. package/dist/esm/inference/entitlement.js +15 -13
  107. package/dist/esm/inference/errors.js +13 -6
  108. package/dist/esm/inference/identifiers.js +31 -19
  109. package/dist/esm/inference/inbox.js +37 -35
  110. package/dist/esm/inference/modelDocumentation.js +14 -12
  111. package/dist/esm/inference/money.js +3 -2
  112. package/dist/esm/inference/priceVersion.js +8 -3
  113. package/dist/esm/inference/providerConnection.js +19 -12
  114. package/dist/esm/inference/realtime.js +85 -44
  115. package/dist/esm/inference/request.js +25 -23
  116. package/dist/esm/inference/routingPolicy.js +9 -7
  117. package/dist/esm/inference/streamEvents.js +20 -14
  118. package/dist/esm/inference/usage.js +30 -13
  119. package/dist/esm/keyRecovery.js +8 -6
  120. package/dist/esm/keyRotation.js +5 -4
  121. package/dist/esm/linkedAccounts.js +20 -16
  122. package/dist/esm/moderationReputation.js +27 -25
  123. package/dist/esm/notifications.js +23 -7
  124. package/dist/esm/numberChecks.js +41 -0
  125. package/dist/esm/oauth.js +14 -12
  126. package/dist/esm/organizations.js +23 -21
  127. package/dist/esm/products/access.js +10 -8
  128. package/dist/esm/products/billing.js +10 -8
  129. package/dist/esm/products/checkout.js +22 -10
  130. package/dist/esm/products/plans.js +15 -10
  131. package/dist/esm/protocol.js +4 -3
  132. package/dist/esm/recommendations.js +25 -17
  133. package/dist/esm/reputation.js +13 -11
  134. package/dist/esm/safety.js +43 -27
  135. package/dist/esm/serviceToken.js +80 -1
  136. package/dist/esm/sessionRevocation.js +6 -4
  137. package/dist/esm/signIn.js +50 -24
  138. package/dist/esm/stickers.js +17 -13
  139. package/dist/esm/stringChecks.js +63 -0
  140. package/dist/esm/transparency.js +14 -12
  141. package/dist/esm/updates.js +22 -20
  142. package/dist/esm/userInvalidation.js +4 -2
  143. package/dist/esm/userResponse.js +4 -3
  144. package/dist/esm/username.js +3 -2
  145. package/dist/types/accountAccess.d.ts +29 -70
  146. package/dist/types/accountEmail.d.ts +2 -14
  147. package/dist/types/accountGraph.d.ts +179 -171
  148. package/dist/types/accountName.d.ts +1 -1
  149. package/dist/types/accountSubject.d.ts +20 -93
  150. package/dist/types/agency.d.ts +528 -2924
  151. package/dist/types/agentKeys.d.ts +48 -421
  152. package/dist/types/appAssertions.d.ts +56 -210
  153. package/dist/types/applicationRoles.d.ts +30 -276
  154. package/dist/types/avatarCharacter.d.ts +1 -1
  155. package/dist/types/campaignAttribution.d.ts +10 -0
  156. package/dist/types/civic.d.ts +1 -13
  157. package/dist/types/client/agentKeys.d.ts +18 -18
  158. package/dist/types/client/appAssertions.d.ts +3 -3
  159. package/dist/types/client/campaignAttribution.d.ts +12 -0
  160. package/dist/types/client/check.d.ts +13 -13
  161. package/dist/types/client/deviceDirectory.d.ts +51 -51
  162. package/dist/types/client/deviceSession.d.ts +14 -14
  163. package/dist/types/client/index.d.ts +3 -0
  164. package/dist/types/client/language.d.ts +2 -0
  165. package/dist/types/client/organizations.d.ts +25 -25
  166. package/dist/types/client/products.d.ts +33 -33
  167. package/dist/types/client/recommendations.d.ts +2 -2
  168. package/dist/types/client/safety.d.ts +45 -45
  169. package/dist/types/client/sessionStatus.d.ts +4 -4
  170. package/dist/types/client/signIn.d.ts +1 -1
  171. package/dist/types/commonsSignIn.d.ts +4 -1
  172. package/dist/types/consoleOnboarding.d.ts +24 -44
  173. package/dist/types/contentClaims.d.ts +24 -180
  174. package/dist/types/deviceDirectory.d.ts +109 -1040
  175. package/dist/types/deviceSession.d.ts +36 -298
  176. package/dist/types/email/messages.d.ts +212 -1793
  177. package/dist/types/emailAgentContext.d.ts +10 -194
  178. package/dist/types/externalIdentity.d.ts +121 -615
  179. package/dist/types/federationInstanceFetch.d.ts +3 -32
  180. package/dist/types/identity.d.ts +15 -92
  181. package/dist/types/identityLink.d.ts +6 -84
  182. package/dist/types/identityProof.d.ts +5 -17
  183. package/dist/types/inboxPush.d.ts +1 -9
  184. package/dist/types/index.d.ts +7 -3
  185. package/dist/types/inference/accountBilling.d.ts +151 -488
  186. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  187. package/dist/types/inference/attribution.d.ts +75 -104
  188. package/dist/types/inference/catalogue.d.ts +417 -1599
  189. package/dist/types/inference/economics.d.ts +69 -276
  190. package/dist/types/inference/embeddings.d.ts +110 -406
  191. package/dist/types/inference/entitlement.d.ts +80 -335
  192. package/dist/types/inference/errors.d.ts +90 -102
  193. package/dist/types/inference/identifiers.d.ts +12 -4
  194. package/dist/types/inference/inbox.d.ts +105 -420
  195. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  196. package/dist/types/inference/money.d.ts +65 -32
  197. package/dist/types/inference/priceVersion.d.ts +53 -120
  198. package/dist/types/inference/providerConnection.d.ts +253 -710
  199. package/dist/types/inference/realtime.d.ts +954 -6825
  200. package/dist/types/inference/request.d.ts +300 -2572
  201. package/dist/types/inference/routingPolicy.d.ts +95 -503
  202. package/dist/types/inference/streamEvents.d.ts +253 -721
  203. package/dist/types/inference/usage.d.ts +317 -950
  204. package/dist/types/keyRecovery.d.ts +3 -51
  205. package/dist/types/keyRotation.d.ts +3 -38
  206. package/dist/types/linkedAccounts.d.ts +50 -236
  207. package/dist/types/moderationReputation.d.ts +81 -14
  208. package/dist/types/notifications.d.ts +19 -51
  209. package/dist/types/numberChecks.d.ts +9 -0
  210. package/dist/types/oauth.d.ts +101 -809
  211. package/dist/types/organizations.d.ts +268 -921
  212. package/dist/types/oxyRecordTypes.d.ts +11 -1
  213. package/dist/types/products/access.d.ts +125 -775
  214. package/dist/types/products/billing.d.ts +67 -503
  215. package/dist/types/products/checkout.d.ts +16 -69
  216. package/dist/types/products/plans.d.ts +33 -366
  217. package/dist/types/recommendations.d.ts +76 -389
  218. package/dist/types/reputation.d.ts +37 -5
  219. package/dist/types/safety.d.ts +408 -2048
  220. package/dist/types/serviceToken.d.ts +247 -7
  221. package/dist/types/sessionRevocation.d.ts +2 -17
  222. package/dist/types/sessionStatus.d.ts +27 -115
  223. package/dist/types/signIn.d.ts +62 -553
  224. package/dist/types/stickers.d.ts +67 -819
  225. package/dist/types/stringChecks.d.ts +16 -0
  226. package/dist/types/transparency.d.ts +14 -302
  227. package/dist/types/updates.d.ts +60 -316
  228. package/dist/types/userInvalidation.d.ts +4 -13
  229. package/dist/types/userResponse.d.ts +302 -2400
  230. package/dist/types/username.d.ts +3 -3
  231. package/package.json +6 -4
@@ -1,181 +1,152 @@
1
1
  import { z } from 'zod';
2
2
  /** Autonomy is ordered from least to most permissive. */
3
3
  export declare const AUTONOMY_LEVELS: readonly ["read_only", "draft", "execute_on_request", "autonomous"];
4
- export declare const autonomyLevelSchema: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
4
+ export declare const autonomyLevelSchema: z.ZodEnum<{
5
+ read_only: "read_only";
6
+ draft: "draft";
7
+ execute_on_request: "execute_on_request";
8
+ autonomous: "autonomous";
9
+ }>;
5
10
  export declare const CAPABILITY_PACKAGES: readonly ["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"];
6
- export declare const capabilityPackageSchema: z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>;
7
- export declare const actorRefSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11
+ export declare const capabilityPackageSchema: z.ZodEnum<{
12
+ finance: "finance";
13
+ security: "security";
14
+ read: "read";
15
+ create: "create";
16
+ publish: "publish";
17
+ communicate: "communicate";
18
+ administer: "administer";
19
+ delegate: "delegate";
20
+ }>;
21
+ export declare const actorRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8
22
  type: z.ZodLiteral<"alia">;
9
23
  ownerAccountId: z.ZodString;
10
- }, "strict", z.ZodTypeAny, {
11
- type: "alia";
12
- ownerAccountId: string;
13
- }, {
14
- type: "alia";
15
- ownerAccountId: string;
16
- }>, z.ZodObject<{
24
+ }, z.core.$strict>, z.ZodObject<{
17
25
  type: z.ZodLiteral<"agent">;
18
26
  accountId: z.ZodString;
19
- }, "strict", z.ZodTypeAny, {
20
- type: "agent";
21
- accountId: string;
22
- }, {
23
- type: "agent";
24
- accountId: string;
25
- }>]>;
27
+ }, z.core.$strict>], "type">;
26
28
  /** Present requester only; standing grants/automation retain actorRefSchema. */
27
- export declare const executionActorRefSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
29
+ export declare const executionActorRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
28
30
  type: z.ZodLiteral<"alia">;
29
31
  ownerAccountId: z.ZodString;
30
- }, "strict", z.ZodTypeAny, {
31
- type: "alia";
32
- ownerAccountId: string;
33
- }, {
34
- type: "alia";
35
- ownerAccountId: string;
36
- }>, z.ZodObject<{
32
+ }, z.core.$strict>, z.ZodObject<{
37
33
  type: z.ZodLiteral<"agent">;
38
34
  accountId: z.ZodString;
39
- }, "strict", z.ZodTypeAny, {
40
- type: "agent";
41
- accountId: string;
42
- }, {
43
- type: "agent";
44
- accountId: string;
45
- }>, z.ZodObject<{
35
+ }, z.core.$strict>, z.ZodObject<{
46
36
  type: z.ZodLiteral<"requester">;
47
37
  accountId: z.ZodString;
48
- }, "strict", z.ZodTypeAny, {
49
- type: "requester";
50
- accountId: string;
51
- }, {
52
- type: "requester";
53
- accountId: string;
54
- }>]>;
38
+ }, z.core.$strict>], "type">;
55
39
  /** Separate bearer lives only in the SDK option / authority request body. */
56
40
  export declare const foregroundExecutionAuthorizationInputSchema: z.ZodObject<{
57
- tool: z.ZodEnum<["recommendProfiles", "readViewerGraph"]>;
41
+ tool: z.ZodEnum<{
42
+ recommendProfiles: "recommendProfiles";
43
+ readViewerGraph: "readViewerGraph";
44
+ }>;
58
45
  expectedCatalog: z.ZodObject<{
59
46
  registrationId: z.ZodString;
60
47
  version: z.ZodString;
61
48
  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
- }>;
49
+ }, z.core.$strict>;
71
50
  runId: z.ZodString;
72
51
  stepId: z.ZodOptional<z.ZodString>;
73
52
  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
- }>;
53
+ }, z.core.$strict>;
95
54
  export declare const resourceRefSchema: z.ZodObject<{
96
55
  appId: z.ZodString;
97
56
  effectiveAccountId: z.ZodString;
98
57
  resourceType: z.ZodString;
99
58
  resourceId: z.ZodString;
100
- }, "strict", z.ZodTypeAny, {
101
- effectiveAccountId: string;
102
- appId: string;
103
- resourceType: string;
104
- resourceId: string;
105
- }, {
106
- effectiveAccountId: string;
107
- appId: string;
108
- resourceType: string;
109
- resourceId: string;
110
- }>;
59
+ }, z.core.$strict>;
60
+ export declare const firstPartyTaskInputSchema: z.ZodObject<{
61
+ origin: z.ZodObject<{
62
+ kind: z.ZodEnum<{
63
+ automation: "automation";
64
+ request: "request";
65
+ goal: "goal";
66
+ }>;
67
+ id: z.ZodString;
68
+ }, z.core.$strict>;
69
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
70
+ type: z.ZodLiteral<"alia">;
71
+ ownerAccountId: z.ZodString;
72
+ }, z.core.$strict>, z.ZodObject<{
73
+ type: z.ZodLiteral<"agent">;
74
+ accountId: z.ZodString;
75
+ }, z.core.$strict>, z.ZodObject<{
76
+ type: z.ZodLiteral<"requester">;
77
+ accountId: z.ZodString;
78
+ }, z.core.$strict>], "type">;
79
+ effectiveAccountId: z.ZodString;
80
+ expiresAt: z.ZodString;
81
+ }, z.core.$strict>;
82
+ /** Oxy-owned tools use the authenticated requester's task, never per-app grants. */
83
+ export declare const firstPartyExecutionAuthorizationInputSchema: z.ZodObject<{
84
+ authority: z.ZodLiteral<"first_party">;
85
+ kind: z.ZodDefault<z.ZodEnum<{
86
+ automation: "automation";
87
+ direct_request: "direct_request";
88
+ }>>;
89
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
90
+ type: z.ZodLiteral<"alia">;
91
+ ownerAccountId: z.ZodString;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ type: z.ZodLiteral<"agent">;
94
+ accountId: z.ZodString;
95
+ }, z.core.$strict>, z.ZodObject<{
96
+ type: z.ZodLiteral<"requester">;
97
+ accountId: z.ZodString;
98
+ }, z.core.$strict>], "type">;
99
+ resource: z.ZodObject<{
100
+ appId: z.ZodString;
101
+ effectiveAccountId: z.ZodString;
102
+ resourceType: z.ZodString;
103
+ resourceId: z.ZodString;
104
+ }, z.core.$strict>;
105
+ tool: z.ZodString;
106
+ expectedCatalog: z.ZodObject<{
107
+ registrationId: z.ZodString;
108
+ version: z.ZodString;
109
+ digest: z.ZodString;
110
+ }, z.core.$strict>;
111
+ runId: z.ZodOptional<z.ZodString>;
112
+ stepId: z.ZodOptional<z.ZodString>;
113
+ automationId: z.ZodOptional<z.ZodString>;
114
+ limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
115
+ tool: z.ZodString;
116
+ key: z.ZodString;
117
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>;
118
+ }, z.core.$strict>>>;
119
+ expiresAt: z.ZodString;
120
+ }, z.core.$strict>;
111
121
  export declare const toolGrantOverrideSchema: z.ZodObject<{
112
122
  tool: z.ZodString;
113
- decision: z.ZodEnum<["allow", "deny"]>;
114
- }, "strict", z.ZodTypeAny, {
115
- decision: "allow" | "deny";
116
- tool: string;
117
- }, {
118
- decision: "allow" | "deny";
119
- tool: string;
120
- }>;
123
+ decision: z.ZodEnum<{
124
+ allow: "allow";
125
+ deny: "deny";
126
+ }>;
127
+ }, z.core.$strict>;
121
128
  export declare const grantLimitSchema: z.ZodObject<{
122
129
  tool: z.ZodString;
123
130
  key: z.ZodString;
124
- value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
125
- }, "strict", z.ZodTypeAny, {
126
- value: number | boolean;
127
- tool: string;
128
- key: string;
129
- }, {
130
- value: number | boolean;
131
- tool: string;
132
- key: string;
133
- }>;
131
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>;
132
+ }, z.core.$strict>;
134
133
  export declare const capabilityCatalogBindingSchema: z.ZodObject<{
135
134
  registrationId: z.ZodString;
136
135
  version: z.ZodString;
137
136
  digest: z.ZodString;
138
- }, "strict", z.ZodTypeAny, {
139
- registrationId: string;
140
- version: string;
141
- digest: string;
142
- }, {
143
- registrationId: string;
144
- version: string;
145
- digest: string;
146
- }>;
147
- export declare const executionAuthorizationRefSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
137
+ }, z.core.$strict>;
138
+ export declare const executionAuthorizationRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
148
139
  kind: z.ZodLiteral<"direct_request">;
149
140
  id: z.ZodString;
150
- }, "strict", z.ZodTypeAny, {
151
- kind: "direct_request";
152
- id: string;
153
- }, {
154
- kind: "direct_request";
155
- id: string;
156
- }>, z.ZodObject<{
141
+ }, z.core.$strict>, z.ZodObject<{
157
142
  kind: z.ZodLiteral<"automation">;
158
143
  id: z.ZodString;
159
144
  automationId: z.ZodString;
160
- }, "strict", z.ZodTypeAny, {
161
- kind: "automation";
162
- id: string;
163
- automationId: string;
164
- }, {
165
- kind: "automation";
166
- id: string;
167
- automationId: string;
168
- }>]>;
145
+ }, z.core.$strict>], "kind">;
169
146
  export declare const capabilityCoordinatorSchema: z.ZodObject<{
170
147
  applicationId: z.ZodString;
171
148
  credentialId: z.ZodString;
172
- }, "strict", z.ZodTypeAny, {
173
- applicationId: string;
174
- credentialId: string;
175
- }, {
176
- applicationId: string;
177
- credentialId: string;
178
- }>;
149
+ }, z.core.$strict>;
179
150
  /** Opt-in catalogue pin; legacy issuance omits expectedCatalog and its claim. */
180
151
  export declare const capabilityTicketRequestSchema: z.ZodObject<{
181
152
  executionAuthorizationId: z.ZodString;
@@ -185,193 +156,64 @@ export declare const capabilityTicketRequestSchema: z.ZodObject<{
185
156
  registrationId: z.ZodString;
186
157
  version: z.ZodString;
187
158
  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
- }>;
159
+ }, z.core.$strict>>;
160
+ }, z.core.$strict>;
216
161
  export declare const delegationGrantSchema: z.ZodObject<{
217
162
  id: z.ZodString;
218
163
  ownerAccountId: z.ZodString;
219
- actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
164
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
220
165
  type: z.ZodLiteral<"alia">;
221
166
  ownerAccountId: z.ZodString;
222
- }, "strict", z.ZodTypeAny, {
223
- type: "alia";
224
- ownerAccountId: string;
225
- }, {
226
- type: "alia";
227
- ownerAccountId: string;
228
- }>, z.ZodObject<{
167
+ }, z.core.$strict>, z.ZodObject<{
229
168
  type: z.ZodLiteral<"agent">;
230
169
  accountId: z.ZodString;
231
- }, "strict", z.ZodTypeAny, {
232
- type: "agent";
233
- accountId: string;
234
- }, {
235
- type: "agent";
236
- accountId: string;
237
- }>]>;
170
+ }, z.core.$strict>], "type">;
238
171
  resource: z.ZodObject<{
239
172
  appId: z.ZodString;
240
173
  effectiveAccountId: z.ZodString;
241
174
  resourceType: z.ZodString;
242
175
  resourceId: z.ZodString;
243
- }, "strict", z.ZodTypeAny, {
244
- effectiveAccountId: string;
245
- appId: string;
246
- resourceType: string;
247
- resourceId: string;
248
- }, {
249
- effectiveAccountId: string;
250
- appId: string;
251
- resourceType: string;
252
- resourceId: string;
253
- }>;
176
+ }, z.core.$strict>;
254
177
  catalog: z.ZodNullable<z.ZodObject<{
255
178
  registrationId: z.ZodString;
256
179
  version: z.ZodString;
257
180
  digest: z.ZodString;
258
- }, "strict", z.ZodTypeAny, {
259
- registrationId: string;
260
- version: string;
261
- digest: string;
262
- }, {
263
- registrationId: string;
264
- version: string;
265
- digest: string;
181
+ }, z.core.$strict>>;
182
+ capabilityPackages: z.ZodArray<z.ZodEnum<{
183
+ finance: "finance";
184
+ security: "security";
185
+ read: "read";
186
+ create: "create";
187
+ publish: "publish";
188
+ communicate: "communicate";
189
+ administer: "administer";
190
+ delegate: "delegate";
266
191
  }>>;
267
- capabilityPackages: z.ZodArray<z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>, "many">;
268
- capabilities: z.ZodArray<z.ZodString, "many">;
192
+ capabilities: z.ZodArray<z.ZodString>;
269
193
  toolOverrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
270
194
  tool: z.ZodString;
271
- decision: z.ZodEnum<["allow", "deny"]>;
272
- }, "strict", z.ZodTypeAny, {
273
- decision: "allow" | "deny";
274
- tool: string;
275
- }, {
276
- decision: "allow" | "deny";
277
- tool: string;
278
- }>, "many">>;
195
+ decision: z.ZodEnum<{
196
+ allow: "allow";
197
+ deny: "deny";
198
+ }>;
199
+ }, z.core.$strict>>>;
279
200
  limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
280
201
  tool: z.ZodString;
281
202
  key: z.ZodString;
282
- value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
283
- }, "strict", z.ZodTypeAny, {
284
- value: number | boolean;
285
- tool: string;
286
- key: string;
287
- }, {
288
- value: number | boolean;
289
- tool: string;
290
- key: string;
291
- }>, "many">>;
292
- maximumAutonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
203
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>;
204
+ }, z.core.$strict>>>;
205
+ maximumAutonomy: z.ZodEnum<{
206
+ read_only: "read_only";
207
+ draft: "draft";
208
+ execute_on_request: "execute_on_request";
209
+ autonomous: "autonomous";
210
+ }>;
293
211
  canRedelegate: z.ZodDefault<z.ZodBoolean>;
294
212
  expiresAt: z.ZodNullable<z.ZodString>;
295
213
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
296
214
  createdAt: z.ZodString;
297
215
  updatedAt: z.ZodString;
298
- }, "strict", z.ZodTypeAny, {
299
- createdAt: string;
300
- updatedAt: string;
301
- id: string;
302
- expiresAt: string | null;
303
- actor: {
304
- type: "alia";
305
- ownerAccountId: string;
306
- } | {
307
- type: "agent";
308
- accountId: string;
309
- };
310
- ownerAccountId: string;
311
- resource: {
312
- effectiveAccountId: string;
313
- appId: string;
314
- resourceType: string;
315
- resourceId: string;
316
- };
317
- catalog: {
318
- registrationId: string;
319
- version: string;
320
- digest: string;
321
- } | null;
322
- capabilityPackages: ("finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate")[];
323
- capabilities: string[];
324
- toolOverrides: {
325
- decision: "allow" | "deny";
326
- tool: string;
327
- }[];
328
- limits: {
329
- value: number | boolean;
330
- tool: string;
331
- key: string;
332
- }[];
333
- maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
334
- canRedelegate: boolean;
335
- revokedAt: string | null;
336
- }, {
337
- createdAt: string;
338
- updatedAt: string;
339
- id: string;
340
- expiresAt: string | null;
341
- actor: {
342
- type: "alia";
343
- ownerAccountId: string;
344
- } | {
345
- type: "agent";
346
- accountId: string;
347
- };
348
- ownerAccountId: string;
349
- resource: {
350
- effectiveAccountId: string;
351
- appId: string;
352
- resourceType: string;
353
- resourceId: string;
354
- };
355
- catalog: {
356
- registrationId: string;
357
- version: string;
358
- digest: string;
359
- } | null;
360
- capabilityPackages: ("finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate")[];
361
- capabilities: string[];
362
- maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
363
- toolOverrides?: {
364
- decision: "allow" | "deny";
365
- tool: string;
366
- }[] | undefined;
367
- limits?: {
368
- value: number | boolean;
369
- tool: string;
370
- key: string;
371
- }[] | undefined;
372
- canRedelegate?: boolean | undefined;
373
- revokedAt?: string | null | undefined;
374
- }>;
216
+ }, z.core.$strict>;
375
217
  /**
376
218
  * The two levels an owner publishes for whoever uses their agent (ADR 0042):
377
219
  * "Ver" and "Ver y actuar". A ceiling never says `draft` or `execute_on_request`:
@@ -381,87 +223,62 @@ export declare const delegationGrantSchema: z.ZodObject<{
381
223
  export declare const AGENT_REQUESTER_CEILING_AUTONOMY: readonly ["read_only", "autonomous"];
382
224
  /** What an agent may do in one app for whoever uses it; written by an operator of the bot. */
383
225
  export declare const agentRequesterCeilingWriteSchema: z.ZodObject<{
384
- capabilityPackages: z.ZodArray<z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>, "many">;
385
- capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
226
+ capabilityPackages: z.ZodArray<z.ZodEnum<{
227
+ finance: "finance";
228
+ security: "security";
229
+ read: "read";
230
+ create: "create";
231
+ publish: "publish";
232
+ communicate: "communicate";
233
+ administer: "administer";
234
+ delegate: "delegate";
235
+ }>>;
236
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
386
237
  toolOverrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
387
238
  tool: z.ZodString;
388
- decision: z.ZodEnum<["allow", "deny"]>;
389
- }, "strict", z.ZodTypeAny, {
390
- decision: "allow" | "deny";
391
- tool: string;
392
- }, {
393
- decision: "allow" | "deny";
394
- tool: string;
395
- }>, "many">>;
239
+ decision: z.ZodEnum<{
240
+ allow: "allow";
241
+ deny: "deny";
242
+ }>;
243
+ }, z.core.$strict>>>;
396
244
  limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
397
245
  tool: z.ZodString;
398
246
  key: z.ZodString;
399
- value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
400
- }, "strict", z.ZodTypeAny, {
401
- value: number | boolean;
402
- tool: string;
403
- key: string;
404
- }, {
405
- value: number | boolean;
406
- tool: string;
407
- key: string;
408
- }>, "many">>;
409
- maximumAutonomy: z.ZodEnum<["read_only", "autonomous"]>;
410
- }, "strict", z.ZodTypeAny, {
411
- capabilityPackages: ("finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate")[];
412
- capabilities: string[];
413
- toolOverrides: {
414
- decision: "allow" | "deny";
415
- tool: string;
416
- }[];
417
- limits: {
418
- value: number | boolean;
419
- tool: string;
420
- key: string;
421
- }[];
422
- maximumAutonomy: "read_only" | "autonomous";
423
- }, {
424
- capabilityPackages: ("finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate")[];
425
- maximumAutonomy: "read_only" | "autonomous";
426
- capabilities?: string[] | undefined;
427
- toolOverrides?: {
428
- decision: "allow" | "deny";
429
- tool: string;
430
- }[] | undefined;
431
- limits?: {
432
- value: number | boolean;
433
- tool: string;
434
- key: string;
435
- }[] | undefined;
436
- }>;
247
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>;
248
+ }, z.core.$strict>>>;
249
+ maximumAutonomy: z.ZodEnum<{
250
+ read_only: "read_only";
251
+ autonomous: "autonomous";
252
+ }>;
253
+ }, z.core.$strict>;
437
254
  export declare const agentRequesterCeilingSchema: z.ZodObject<{
438
- capabilityPackages: z.ZodArray<z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>, "many">;
439
- capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
255
+ capabilityPackages: z.ZodArray<z.ZodEnum<{
256
+ finance: "finance";
257
+ security: "security";
258
+ read: "read";
259
+ create: "create";
260
+ publish: "publish";
261
+ communicate: "communicate";
262
+ administer: "administer";
263
+ delegate: "delegate";
264
+ }>>;
265
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
440
266
  toolOverrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
441
267
  tool: z.ZodString;
442
- decision: z.ZodEnum<["allow", "deny"]>;
443
- }, "strict", z.ZodTypeAny, {
444
- decision: "allow" | "deny";
445
- tool: string;
446
- }, {
447
- decision: "allow" | "deny";
448
- tool: string;
449
- }>, "many">>;
268
+ decision: z.ZodEnum<{
269
+ allow: "allow";
270
+ deny: "deny";
271
+ }>;
272
+ }, z.core.$strict>>>;
450
273
  limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
451
274
  tool: z.ZodString;
452
275
  key: z.ZodString;
453
- value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
454
- }, "strict", z.ZodTypeAny, {
455
- value: number | boolean;
456
- tool: string;
457
- key: string;
458
- }, {
459
- value: number | boolean;
460
- tool: string;
461
- key: string;
462
- }>, "many">>;
463
- maximumAutonomy: z.ZodEnum<["read_only", "autonomous"]>;
464
- } & {
276
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>;
277
+ }, z.core.$strict>>>;
278
+ maximumAutonomy: z.ZodEnum<{
279
+ read_only: "read_only";
280
+ autonomous: "autonomous";
281
+ }>;
465
282
  id: z.ZodString;
466
283
  agentAccountId: z.ZodString;
467
284
  appId: z.ZodString;
@@ -469,137 +286,55 @@ export declare const agentRequesterCeilingSchema: z.ZodObject<{
469
286
  registrationId: z.ZodString;
470
287
  version: z.ZodString;
471
288
  digest: z.ZodString;
472
- }, "strict", z.ZodTypeAny, {
473
- registrationId: string;
474
- version: string;
475
- digest: string;
476
- }, {
477
- registrationId: string;
478
- version: string;
479
- digest: string;
480
- }>;
289
+ }, z.core.$strict>;
481
290
  version: z.ZodNumber;
482
291
  revokedAt: z.ZodNullable<z.ZodString>;
483
292
  createdAt: z.ZodString;
484
293
  updatedAt: z.ZodString;
485
- }, "strict", z.ZodTypeAny, {
486
- createdAt: string;
487
- updatedAt: string;
488
- id: string;
489
- version: number;
490
- appId: string;
491
- catalog: {
492
- registrationId: string;
493
- version: string;
494
- digest: string;
495
- };
496
- capabilityPackages: ("finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate")[];
497
- capabilities: string[];
498
- toolOverrides: {
499
- decision: "allow" | "deny";
500
- tool: string;
501
- }[];
502
- limits: {
503
- value: number | boolean;
504
- tool: string;
505
- key: string;
506
- }[];
507
- maximumAutonomy: "read_only" | "autonomous";
508
- revokedAt: string | null;
509
- agentAccountId: string;
510
- }, {
511
- createdAt: string;
512
- updatedAt: string;
513
- id: string;
514
- version: number;
515
- appId: string;
516
- catalog: {
517
- registrationId: string;
518
- version: string;
519
- digest: string;
520
- };
521
- capabilityPackages: ("finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate")[];
522
- maximumAutonomy: "read_only" | "autonomous";
523
- revokedAt: string | null;
524
- agentAccountId: string;
525
- capabilities?: string[] | undefined;
526
- toolOverrides?: {
527
- decision: "allow" | "deny";
528
- tool: string;
529
- }[] | undefined;
530
- limits?: {
531
- value: number | boolean;
532
- tool: string;
533
- key: string;
534
- }[] | undefined;
535
- }>;
294
+ }, z.core.$strict>;
536
295
  /**
537
296
  * Where an application's own agent opens (ADR 0044): `anywhere`, or only in
538
297
  * sessions that belong to that application (`own_application`). An agent with
539
298
  * no application row is available anywhere.
540
299
  */
541
300
  export declare const APPLICATION_AGENT_AVAILABILITIES: readonly ["anywhere", "own_application"];
542
- export declare const applicationAgentAvailabilitySchema: z.ZodEnum<["anywhere", "own_application"]>;
301
+ export declare const applicationAgentAvailabilitySchema: z.ZodEnum<{
302
+ anywhere: "anywhere";
303
+ own_application: "own_application";
304
+ }>;
543
305
  /** What Oxy staff write for one of an application's agents. */
544
306
  export declare const applicationAgentWriteSchema: z.ZodObject<{
545
- availability: z.ZodEnum<["anywhere", "own_application"]>;
546
- }, "strict", z.ZodTypeAny, {
547
- availability: "anywhere" | "own_application";
548
- }, {
549
- availability: "anywhere" | "own_application";
550
- }>;
307
+ availability: z.ZodEnum<{
308
+ anywhere: "anywhere";
309
+ own_application: "own_application";
310
+ }>;
311
+ }, z.core.$strict>;
551
312
  /** One row of the application registry's agents: an agent is one application's. */
552
313
  export declare const applicationAgentSchema: z.ZodObject<{
553
- availability: z.ZodEnum<["anywhere", "own_application"]>;
554
- } & {
314
+ availability: z.ZodEnum<{
315
+ anywhere: "anywhere";
316
+ own_application: "own_application";
317
+ }>;
555
318
  applicationId: z.ZodString;
556
319
  agentAccountId: z.ZodString;
557
320
  createdByUserId: z.ZodNullable<z.ZodString>;
558
321
  createdAt: z.ZodString;
559
322
  updatedAt: z.ZodString;
560
- }, "strict", z.ZodTypeAny, {
561
- createdAt: string;
562
- updatedAt: string;
563
- applicationId: string;
564
- agentAccountId: string;
565
- availability: "anywhere" | "own_application";
566
- createdByUserId: string | null;
567
- }, {
568
- createdAt: string;
569
- updatedAt: string;
570
- applicationId: string;
571
- agentAccountId: string;
572
- availability: "anywhere" | "own_application";
573
- createdByUserId: string | null;
574
- }>;
323
+ }, z.core.$strict>;
575
324
  /**
576
325
  * `GET /capabilities/agent-availability/:agentAccountId`: the sessions an agent
577
326
  * is reachable from. `anywhere: false` lists the applications whose sessions
578
327
  * (the session validation answer's `applicationId`) may reach it.
579
328
  */
580
- export declare const agentAvailabilitySchema: z.ZodDiscriminatedUnion<"anywhere", [z.ZodObject<{
329
+ export declare const agentAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
581
330
  anywhere: z.ZodLiteral<true>;
582
- }, "strict", z.ZodTypeAny, {
583
- anywhere: true;
584
- }, {
585
- anywhere: true;
586
- }>, z.ZodObject<{
331
+ }, z.core.$strict>, z.ZodObject<{
587
332
  anywhere: z.ZodLiteral<false>;
588
- applicationIds: z.ZodArray<z.ZodString, "many">;
589
- }, "strict", z.ZodTypeAny, {
590
- anywhere: false;
591
- applicationIds: string[];
592
- }, {
593
- anywhere: false;
594
- applicationIds: string[];
595
- }>]>;
596
- export declare const automationTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
333
+ applicationIds: z.ZodArray<z.ZodString>;
334
+ }, z.core.$strict>], "anywhere">;
335
+ export declare const automationTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
597
336
  type: z.ZodLiteral<"manual">;
598
- }, "strict", z.ZodTypeAny, {
599
- type: "manual";
600
- }, {
601
- type: "manual";
602
- }>, z.ZodObject<{
337
+ }, z.core.$strict>, z.ZodObject<{
603
338
  type: z.ZodLiteral<"event">;
604
339
  appId: z.ZodString;
605
340
  eventType: z.ZodString;
@@ -608,167 +343,45 @@ export declare const automationTriggerSchema: z.ZodDiscriminatedUnion<"type", [z
608
343
  effectiveAccountId: z.ZodString;
609
344
  resourceType: z.ZodString;
610
345
  resourceId: z.ZodString;
611
- }, "strict", z.ZodTypeAny, {
612
- effectiveAccountId: string;
613
- appId: string;
614
- resourceType: string;
615
- resourceId: string;
616
- }, {
617
- effectiveAccountId: string;
618
- appId: string;
619
- resourceType: string;
620
- resourceId: string;
621
- }>>;
622
- }, "strict", z.ZodTypeAny, {
623
- type: "event";
624
- appId: string;
625
- eventType: string;
626
- resource?: {
627
- effectiveAccountId: string;
628
- appId: string;
629
- resourceType: string;
630
- resourceId: string;
631
- } | undefined;
632
- }, {
633
- type: "event";
634
- appId: string;
635
- eventType: string;
636
- resource?: {
637
- effectiveAccountId: string;
638
- appId: string;
639
- resourceType: string;
640
- resourceId: string;
641
- } | undefined;
642
- }>, z.ZodObject<{
346
+ }, z.core.$strict>>;
347
+ }, z.core.$strict>, z.ZodObject<{
643
348
  type: z.ZodLiteral<"schedule">;
644
349
  cron: z.ZodString;
645
350
  timezone: z.ZodString;
646
- }, "strict", z.ZodTypeAny, {
647
- type: "schedule";
648
- cron: string;
649
- timezone: string;
650
- }, {
651
- type: "schedule";
652
- cron: string;
653
- timezone: string;
654
- }>]>;
655
- export declare const automationActorSelectionSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
351
+ }, z.core.$strict>], "type">;
352
+ export declare const automationActorSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
656
353
  mode: z.ZodLiteral<"fixed">;
657
- actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
354
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
658
355
  type: z.ZodLiteral<"alia">;
659
356
  ownerAccountId: z.ZodString;
660
- }, "strict", z.ZodTypeAny, {
661
- type: "alia";
662
- ownerAccountId: string;
663
- }, {
664
- type: "alia";
665
- ownerAccountId: string;
666
- }>, z.ZodObject<{
357
+ }, z.core.$strict>, z.ZodObject<{
667
358
  type: z.ZodLiteral<"agent">;
668
359
  accountId: z.ZodString;
669
- }, "strict", z.ZodTypeAny, {
670
- type: "agent";
671
- accountId: string;
672
- }, {
673
- type: "agent";
674
- accountId: string;
675
- }>]>;
676
- }, "strict", z.ZodTypeAny, {
677
- actor: {
678
- type: "alia";
679
- ownerAccountId: string;
680
- } | {
681
- type: "agent";
682
- accountId: string;
683
- };
684
- mode: "fixed";
685
- }, {
686
- actor: {
687
- type: "alia";
688
- ownerAccountId: string;
689
- } | {
690
- type: "agent";
691
- accountId: string;
692
- };
693
- mode: "fixed";
694
- }>, z.ZodObject<{
360
+ }, z.core.$strict>], "type">;
361
+ }, z.core.$strict>, z.ZodObject<{
695
362
  mode: z.ZodLiteral<"automatic">;
696
- }, "strict", z.ZodTypeAny, {
697
- mode: "automatic";
698
- }, {
699
- mode: "automatic";
700
- }>]>;
363
+ }, z.core.$strict>], "mode">;
701
364
  export declare const automationDataFlowSchema: z.ZodObject<{
702
365
  sources: z.ZodArray<z.ZodObject<{
703
366
  appId: z.ZodString;
704
367
  effectiveAccountId: z.ZodString;
705
368
  resourceType: z.ZodString;
706
369
  resourceId: z.ZodString;
707
- }, "strict", z.ZodTypeAny, {
708
- effectiveAccountId: string;
709
- appId: string;
710
- resourceType: string;
711
- resourceId: string;
712
- }, {
713
- effectiveAccountId: string;
714
- appId: string;
715
- resourceType: string;
716
- resourceId: string;
717
- }>, "many">;
370
+ }, z.core.$strict>>;
718
371
  destinations: z.ZodArray<z.ZodObject<{
719
372
  appId: z.ZodString;
720
373
  effectiveAccountId: z.ZodString;
721
374
  resourceType: z.ZodString;
722
375
  resourceId: z.ZodString;
723
- }, "strict", z.ZodTypeAny, {
724
- effectiveAccountId: string;
725
- appId: string;
726
- resourceType: string;
727
- resourceId: string;
728
- }, {
729
- effectiveAccountId: string;
730
- appId: string;
731
- resourceType: string;
732
- resourceId: string;
733
- }>, "many">;
734
- }, "strict", z.ZodTypeAny, {
735
- sources: {
736
- effectiveAccountId: string;
737
- appId: string;
738
- resourceType: string;
739
- resourceId: string;
740
- }[];
741
- destinations: {
742
- effectiveAccountId: string;
743
- appId: string;
744
- resourceType: string;
745
- resourceId: string;
746
- }[];
747
- }, {
748
- sources: {
749
- effectiveAccountId: string;
750
- appId: string;
751
- resourceType: string;
752
- resourceId: string;
753
- }[];
754
- destinations: {
755
- effectiveAccountId: string;
756
- appId: string;
757
- resourceType: string;
758
- resourceId: string;
759
- }[];
760
- }>;
376
+ }, z.core.$strict>>;
377
+ }, z.core.$strict>;
761
378
  export declare const automationDefinitionSchema: z.ZodObject<{
762
379
  id: z.ZodString;
763
380
  ownerAccountId: z.ZodString;
764
381
  objective: z.ZodString;
765
- trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
382
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
766
383
  type: z.ZodLiteral<"manual">;
767
- }, "strict", z.ZodTypeAny, {
768
- type: "manual";
769
- }, {
770
- type: "manual";
771
- }>, z.ZodObject<{
384
+ }, z.core.$strict>, z.ZodObject<{
772
385
  type: z.ZodLiteral<"event">;
773
386
  appId: z.ZodString;
774
387
  eventType: z.ZodString;
@@ -777,318 +390,61 @@ export declare const automationDefinitionSchema: z.ZodObject<{
777
390
  effectiveAccountId: z.ZodString;
778
391
  resourceType: z.ZodString;
779
392
  resourceId: z.ZodString;
780
- }, "strict", z.ZodTypeAny, {
781
- effectiveAccountId: string;
782
- appId: string;
783
- resourceType: string;
784
- resourceId: string;
785
- }, {
786
- effectiveAccountId: string;
787
- appId: string;
788
- resourceType: string;
789
- resourceId: string;
790
- }>>;
791
- }, "strict", z.ZodTypeAny, {
792
- type: "event";
793
- appId: string;
794
- eventType: string;
795
- resource?: {
796
- effectiveAccountId: string;
797
- appId: string;
798
- resourceType: string;
799
- resourceId: string;
800
- } | undefined;
801
- }, {
802
- type: "event";
803
- appId: string;
804
- eventType: string;
805
- resource?: {
806
- effectiveAccountId: string;
807
- appId: string;
808
- resourceType: string;
809
- resourceId: string;
810
- } | undefined;
811
- }>, z.ZodObject<{
393
+ }, z.core.$strict>>;
394
+ }, z.core.$strict>, z.ZodObject<{
812
395
  type: z.ZodLiteral<"schedule">;
813
396
  cron: z.ZodString;
814
397
  timezone: z.ZodString;
815
- }, "strict", z.ZodTypeAny, {
816
- type: "schedule";
817
- cron: string;
818
- timezone: string;
819
- }, {
820
- type: "schedule";
821
- cron: string;
822
- timezone: string;
823
- }>]>;
824
- actorSelection: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
398
+ }, z.core.$strict>], "type">;
399
+ actorSelection: z.ZodDiscriminatedUnion<[z.ZodObject<{
825
400
  mode: z.ZodLiteral<"fixed">;
826
- actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
401
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
827
402
  type: z.ZodLiteral<"alia">;
828
403
  ownerAccountId: z.ZodString;
829
- }, "strict", z.ZodTypeAny, {
830
- type: "alia";
831
- ownerAccountId: string;
832
- }, {
833
- type: "alia";
834
- ownerAccountId: string;
835
- }>, z.ZodObject<{
404
+ }, z.core.$strict>, z.ZodObject<{
836
405
  type: z.ZodLiteral<"agent">;
837
406
  accountId: z.ZodString;
838
- }, "strict", z.ZodTypeAny, {
839
- type: "agent";
840
- accountId: string;
841
- }, {
842
- type: "agent";
843
- accountId: string;
844
- }>]>;
845
- }, "strict", z.ZodTypeAny, {
846
- actor: {
847
- type: "alia";
848
- ownerAccountId: string;
849
- } | {
850
- type: "agent";
851
- accountId: string;
852
- };
853
- mode: "fixed";
854
- }, {
855
- actor: {
856
- type: "alia";
857
- ownerAccountId: string;
858
- } | {
859
- type: "agent";
860
- accountId: string;
861
- };
862
- mode: "fixed";
863
- }>, z.ZodObject<{
407
+ }, z.core.$strict>], "type">;
408
+ }, z.core.$strict>, z.ZodObject<{
864
409
  mode: z.ZodLiteral<"automatic">;
865
- }, "strict", z.ZodTypeAny, {
866
- mode: "automatic";
867
- }, {
868
- mode: "automatic";
869
- }>]>;
410
+ }, z.core.$strict>], "mode">;
870
411
  inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
871
412
  resources: z.ZodArray<z.ZodObject<{
872
413
  appId: z.ZodString;
873
414
  effectiveAccountId: z.ZodString;
874
415
  resourceType: z.ZodString;
875
416
  resourceId: z.ZodString;
876
- }, "strict", z.ZodTypeAny, {
877
- effectiveAccountId: string;
878
- appId: string;
879
- resourceType: string;
880
- resourceId: string;
881
- }, {
882
- effectiveAccountId: string;
883
- appId: string;
884
- resourceType: string;
885
- resourceId: string;
886
- }>, "many">;
417
+ }, z.core.$strict>>;
887
418
  dataFlow: z.ZodObject<{
888
419
  sources: z.ZodArray<z.ZodObject<{
889
420
  appId: z.ZodString;
890
421
  effectiveAccountId: z.ZodString;
891
422
  resourceType: z.ZodString;
892
423
  resourceId: z.ZodString;
893
- }, "strict", z.ZodTypeAny, {
894
- effectiveAccountId: string;
895
- appId: string;
896
- resourceType: string;
897
- resourceId: string;
898
- }, {
899
- effectiveAccountId: string;
900
- appId: string;
901
- resourceType: string;
902
- resourceId: string;
903
- }>, "many">;
424
+ }, z.core.$strict>>;
904
425
  destinations: z.ZodArray<z.ZodObject<{
905
426
  appId: z.ZodString;
906
427
  effectiveAccountId: z.ZodString;
907
428
  resourceType: z.ZodString;
908
429
  resourceId: z.ZodString;
909
- }, "strict", z.ZodTypeAny, {
910
- effectiveAccountId: string;
911
- appId: string;
912
- resourceType: string;
913
- resourceId: string;
914
- }, {
915
- effectiveAccountId: string;
916
- appId: string;
917
- resourceType: string;
918
- resourceId: string;
919
- }>, "many">;
920
- }, "strict", z.ZodTypeAny, {
921
- sources: {
922
- effectiveAccountId: string;
923
- appId: string;
924
- resourceType: string;
925
- resourceId: string;
926
- }[];
927
- destinations: {
928
- effectiveAccountId: string;
929
- appId: string;
930
- resourceType: string;
931
- resourceId: string;
932
- }[];
933
- }, {
934
- sources: {
935
- effectiveAccountId: string;
936
- appId: string;
937
- resourceType: string;
938
- resourceId: string;
939
- }[];
940
- destinations: {
941
- effectiveAccountId: string;
942
- appId: string;
943
- resourceType: string;
944
- resourceId: string;
945
- }[];
430
+ }, z.core.$strict>>;
431
+ }, z.core.$strict>;
432
+ maximumAutonomy: z.ZodEnum<{
433
+ read_only: "read_only";
434
+ draft: "draft";
435
+ execute_on_request: "execute_on_request";
436
+ autonomous: "autonomous";
946
437
  }>;
947
- maximumAutonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
948
438
  limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
949
439
  tool: z.ZodString;
950
440
  key: z.ZodString;
951
- value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
952
- }, "strict", z.ZodTypeAny, {
953
- value: number | boolean;
954
- tool: string;
955
- key: string;
956
- }, {
957
- value: number | boolean;
958
- tool: string;
959
- key: string;
960
- }>, "many">>;
441
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>;
442
+ }, z.core.$strict>>>;
961
443
  enabled: z.ZodBoolean;
962
444
  createdAt: z.ZodString;
963
445
  updatedAt: z.ZodString;
964
- }, "strict", z.ZodTypeAny, {
965
- createdAt: string;
966
- updatedAt: string;
967
- id: string;
968
- resources: {
969
- effectiveAccountId: string;
970
- appId: string;
971
- resourceType: string;
972
- resourceId: string;
973
- }[];
974
- ownerAccountId: string;
975
- limits: {
976
- value: number | boolean;
977
- tool: string;
978
- key: string;
979
- }[];
980
- maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
981
- objective: string;
982
- trigger: {
983
- type: "manual";
984
- } | {
985
- type: "event";
986
- appId: string;
987
- eventType: string;
988
- resource?: {
989
- effectiveAccountId: string;
990
- appId: string;
991
- resourceType: string;
992
- resourceId: string;
993
- } | undefined;
994
- } | {
995
- type: "schedule";
996
- cron: string;
997
- timezone: string;
998
- };
999
- actorSelection: {
1000
- actor: {
1001
- type: "alia";
1002
- ownerAccountId: string;
1003
- } | {
1004
- type: "agent";
1005
- accountId: string;
1006
- };
1007
- mode: "fixed";
1008
- } | {
1009
- mode: "automatic";
1010
- };
1011
- inputs: Record<string, unknown>;
1012
- dataFlow: {
1013
- sources: {
1014
- effectiveAccountId: string;
1015
- appId: string;
1016
- resourceType: string;
1017
- resourceId: string;
1018
- }[];
1019
- destinations: {
1020
- effectiveAccountId: string;
1021
- appId: string;
1022
- resourceType: string;
1023
- resourceId: string;
1024
- }[];
1025
- };
1026
- enabled: boolean;
1027
- }, {
1028
- createdAt: string;
1029
- updatedAt: string;
1030
- id: string;
1031
- resources: {
1032
- effectiveAccountId: string;
1033
- appId: string;
1034
- resourceType: string;
1035
- resourceId: string;
1036
- }[];
1037
- ownerAccountId: string;
1038
- maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1039
- objective: string;
1040
- trigger: {
1041
- type: "manual";
1042
- } | {
1043
- type: "event";
1044
- appId: string;
1045
- eventType: string;
1046
- resource?: {
1047
- effectiveAccountId: string;
1048
- appId: string;
1049
- resourceType: string;
1050
- resourceId: string;
1051
- } | undefined;
1052
- } | {
1053
- type: "schedule";
1054
- cron: string;
1055
- timezone: string;
1056
- };
1057
- actorSelection: {
1058
- actor: {
1059
- type: "alia";
1060
- ownerAccountId: string;
1061
- } | {
1062
- type: "agent";
1063
- accountId: string;
1064
- };
1065
- mode: "fixed";
1066
- } | {
1067
- mode: "automatic";
1068
- };
1069
- inputs: Record<string, unknown>;
1070
- dataFlow: {
1071
- sources: {
1072
- effectiveAccountId: string;
1073
- appId: string;
1074
- resourceType: string;
1075
- resourceId: string;
1076
- }[];
1077
- destinations: {
1078
- effectiveAccountId: string;
1079
- appId: string;
1080
- resourceType: string;
1081
- resourceId: string;
1082
- }[];
1083
- };
1084
- enabled: boolean;
1085
- limits?: {
1086
- value: number | boolean;
1087
- tool: string;
1088
- key: string;
1089
- }[] | undefined;
1090
- }>;
1091
- export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
446
+ }, z.core.$strict>;
447
+ export declare const capabilityTicketClaimsSchema: z.ZodObject<{
1092
448
  iss: z.ZodString;
1093
449
  aud: z.ZodString;
1094
450
  sub: z.ZodString;
@@ -1098,366 +454,74 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
1098
454
  runId: z.ZodString;
1099
455
  stepId: z.ZodOptional<z.ZodString>;
1100
456
  automationId: z.ZodOptional<z.ZodString>;
1101
- executionAuthorization: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
457
+ executionAuthorization: z.ZodDiscriminatedUnion<[z.ZodObject<{
1102
458
  kind: z.ZodLiteral<"direct_request">;
1103
459
  id: z.ZodString;
1104
- }, "strict", z.ZodTypeAny, {
1105
- kind: "direct_request";
1106
- id: string;
1107
- }, {
1108
- kind: "direct_request";
1109
- id: string;
1110
- }>, z.ZodObject<{
460
+ }, z.core.$strict>, z.ZodObject<{
1111
461
  kind: z.ZodLiteral<"automation">;
1112
462
  id: z.ZodString;
1113
463
  automationId: z.ZodString;
1114
- }, "strict", z.ZodTypeAny, {
1115
- kind: "automation";
1116
- id: string;
1117
- automationId: string;
1118
- }, {
1119
- kind: "automation";
1120
- id: string;
1121
- automationId: string;
1122
- }>]>;
464
+ }, z.core.$strict>], "kind">;
465
+ authority: z.ZodOptional<z.ZodEnum<{
466
+ external: "external";
467
+ first_party: "first_party";
468
+ }>>;
469
+ taskId: z.ZodOptional<z.ZodString>;
1123
470
  coordinator: z.ZodObject<{
1124
471
  applicationId: z.ZodString;
1125
472
  credentialId: z.ZodString;
1126
- }, "strict", z.ZodTypeAny, {
1127
- applicationId: string;
1128
- credentialId: string;
1129
- }, {
1130
- applicationId: string;
1131
- credentialId: string;
1132
- }>;
1133
- /** Signed only for callers that explicitly requested a pinned catalogue. */
473
+ }, z.core.$strict>;
1134
474
  catalog: z.ZodOptional<z.ZodObject<{
1135
475
  registrationId: z.ZodString;
1136
476
  version: z.ZodString;
1137
477
  digest: z.ZodString;
1138
- }, "strict", z.ZodTypeAny, {
1139
- registrationId: string;
1140
- version: string;
1141
- digest: string;
1142
- }, {
1143
- registrationId: string;
1144
- version: string;
1145
- digest: string;
1146
- }>>;
478
+ }, z.core.$strict>>;
1147
479
  grantId: z.ZodOptional<z.ZodString>;
1148
- /** The owner's published ceiling that bounds an agent acting for a non-owner (ADR 0042). */
1149
480
  ceilingId: z.ZodOptional<z.ZodString>;
1150
481
  requesterAccountId: z.ZodString;
1151
482
  ownerAccountId: z.ZodString;
1152
- actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
483
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1153
484
  type: z.ZodLiteral<"alia">;
1154
485
  ownerAccountId: z.ZodString;
1155
- }, "strict", z.ZodTypeAny, {
1156
- type: "alia";
1157
- ownerAccountId: string;
1158
- }, {
1159
- type: "alia";
1160
- ownerAccountId: string;
1161
- }>, z.ZodObject<{
486
+ }, z.core.$strict>, z.ZodObject<{
1162
487
  type: z.ZodLiteral<"agent">;
1163
488
  accountId: z.ZodString;
1164
- }, "strict", z.ZodTypeAny, {
1165
- type: "agent";
1166
- accountId: string;
1167
- }, {
1168
- type: "agent";
1169
- accountId: string;
1170
- }>, z.ZodObject<{
489
+ }, z.core.$strict>, z.ZodObject<{
1171
490
  type: z.ZodLiteral<"requester">;
1172
491
  accountId: z.ZodString;
1173
- }, "strict", z.ZodTypeAny, {
1174
- type: "requester";
1175
- accountId: string;
1176
- }, {
1177
- type: "requester";
1178
- accountId: string;
1179
- }>]>;
492
+ }, z.core.$strict>], "type">;
1180
493
  resource: z.ZodObject<{
1181
494
  appId: z.ZodString;
1182
495
  effectiveAccountId: z.ZodString;
1183
496
  resourceType: z.ZodString;
1184
497
  resourceId: z.ZodString;
1185
- }, "strict", z.ZodTypeAny, {
1186
- effectiveAccountId: string;
1187
- appId: string;
1188
- resourceType: string;
1189
- resourceId: string;
1190
- }, {
1191
- effectiveAccountId: string;
1192
- appId: string;
1193
- resourceType: string;
1194
- resourceId: string;
1195
- }>;
498
+ }, z.core.$strict>;
1196
499
  tool: z.ZodString;
1197
- capabilities: z.ZodArray<z.ZodString, "many">;
500
+ capabilities: z.ZodArray<z.ZodString>;
1198
501
  limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
1199
502
  tool: z.ZodString;
1200
503
  key: z.ZodString;
1201
- value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
1202
- }, "strict", z.ZodTypeAny, {
1203
- value: number | boolean;
1204
- tool: string;
1205
- key: string;
1206
- }, {
1207
- value: number | boolean;
1208
- tool: string;
1209
- key: string;
1210
- }>, "many">>;
1211
- autonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
1212
- }, "strict", z.ZodTypeAny, {
1213
- actor: {
1214
- type: "alia";
1215
- ownerAccountId: string;
1216
- } | {
1217
- type: "agent";
1218
- accountId: string;
1219
- } | {
1220
- type: "requester";
1221
- accountId: string;
1222
- };
1223
- tool: string;
1224
- ownerAccountId: string;
1225
- runId: string;
1226
- resource: {
1227
- effectiveAccountId: string;
1228
- appId: string;
1229
- resourceType: string;
1230
- resourceId: string;
1231
- };
1232
- capabilities: string[];
1233
- limits: {
1234
- value: number | boolean;
1235
- tool: string;
1236
- key: string;
1237
- }[];
1238
- iss: string;
1239
- aud: string;
1240
- sub: string;
1241
- jti: string;
1242
- iat: number;
1243
- exp: number;
1244
- executionAuthorization: {
1245
- kind: "direct_request";
1246
- id: string;
1247
- } | {
1248
- kind: "automation";
1249
- id: string;
1250
- automationId: string;
1251
- };
1252
- coordinator: {
1253
- applicationId: string;
1254
- credentialId: string;
1255
- };
1256
- requesterAccountId: string;
1257
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1258
- stepId?: string | undefined;
1259
- automationId?: string | undefined;
1260
- catalog?: {
1261
- registrationId: string;
1262
- version: string;
1263
- digest: string;
1264
- } | undefined;
1265
- grantId?: string | undefined;
1266
- ceilingId?: string | undefined;
1267
- }, {
1268
- actor: {
1269
- type: "alia";
1270
- ownerAccountId: string;
1271
- } | {
1272
- type: "agent";
1273
- accountId: string;
1274
- } | {
1275
- type: "requester";
1276
- accountId: string;
1277
- };
1278
- tool: string;
1279
- ownerAccountId: string;
1280
- runId: string;
1281
- resource: {
1282
- effectiveAccountId: string;
1283
- appId: string;
1284
- resourceType: string;
1285
- resourceId: string;
1286
- };
1287
- capabilities: string[];
1288
- iss: string;
1289
- aud: string;
1290
- sub: string;
1291
- jti: string;
1292
- iat: number;
1293
- exp: number;
1294
- executionAuthorization: {
1295
- kind: "direct_request";
1296
- id: string;
1297
- } | {
1298
- kind: "automation";
1299
- id: string;
1300
- automationId: string;
1301
- };
1302
- coordinator: {
1303
- applicationId: string;
1304
- credentialId: string;
1305
- };
1306
- requesterAccountId: string;
1307
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1308
- stepId?: string | undefined;
1309
- automationId?: string | undefined;
1310
- catalog?: {
1311
- registrationId: string;
1312
- version: string;
1313
- digest: string;
1314
- } | undefined;
1315
- limits?: {
1316
- value: number | boolean;
1317
- tool: string;
1318
- key: string;
1319
- }[] | undefined;
1320
- grantId?: string | undefined;
1321
- ceilingId?: string | undefined;
1322
- }>, {
1323
- actor: {
1324
- type: "alia";
1325
- ownerAccountId: string;
1326
- } | {
1327
- type: "agent";
1328
- accountId: string;
1329
- } | {
1330
- type: "requester";
1331
- accountId: string;
1332
- };
1333
- tool: string;
1334
- ownerAccountId: string;
1335
- runId: string;
1336
- resource: {
1337
- effectiveAccountId: string;
1338
- appId: string;
1339
- resourceType: string;
1340
- resourceId: string;
1341
- };
1342
- capabilities: string[];
1343
- limits: {
1344
- value: number | boolean;
1345
- tool: string;
1346
- key: string;
1347
- }[];
1348
- iss: string;
1349
- aud: string;
1350
- sub: string;
1351
- jti: string;
1352
- iat: number;
1353
- exp: number;
1354
- executionAuthorization: {
1355
- kind: "direct_request";
1356
- id: string;
1357
- } | {
1358
- kind: "automation";
1359
- id: string;
1360
- automationId: string;
1361
- };
1362
- coordinator: {
1363
- applicationId: string;
1364
- credentialId: string;
1365
- };
1366
- requesterAccountId: string;
1367
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1368
- stepId?: string | undefined;
1369
- automationId?: string | undefined;
1370
- catalog?: {
1371
- registrationId: string;
1372
- version: string;
1373
- digest: string;
1374
- } | undefined;
1375
- grantId?: string | undefined;
1376
- ceilingId?: string | undefined;
1377
- }, {
1378
- actor: {
1379
- type: "alia";
1380
- ownerAccountId: string;
1381
- } | {
1382
- type: "agent";
1383
- accountId: string;
1384
- } | {
1385
- type: "requester";
1386
- accountId: string;
1387
- };
1388
- tool: string;
1389
- ownerAccountId: string;
1390
- runId: string;
1391
- resource: {
1392
- effectiveAccountId: string;
1393
- appId: string;
1394
- resourceType: string;
1395
- resourceId: string;
1396
- };
1397
- capabilities: string[];
1398
- iss: string;
1399
- aud: string;
1400
- sub: string;
1401
- jti: string;
1402
- iat: number;
1403
- exp: number;
1404
- executionAuthorization: {
1405
- kind: "direct_request";
1406
- id: string;
1407
- } | {
1408
- kind: "automation";
1409
- id: string;
1410
- automationId: string;
1411
- };
1412
- coordinator: {
1413
- applicationId: string;
1414
- credentialId: string;
1415
- };
1416
- requesterAccountId: string;
1417
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1418
- stepId?: string | undefined;
1419
- automationId?: string | undefined;
1420
- catalog?: {
1421
- registrationId: string;
1422
- version: string;
1423
- digest: string;
1424
- } | undefined;
1425
- limits?: {
1426
- value: number | boolean;
1427
- tool: string;
1428
- key: string;
1429
- }[] | undefined;
1430
- grantId?: string | undefined;
1431
- ceilingId?: string | undefined;
1432
- }>;
504
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>;
505
+ }, z.core.$strict>>>;
506
+ autonomy: z.ZodEnum<{
507
+ read_only: "read_only";
508
+ draft: "draft";
509
+ execute_on_request: "execute_on_request";
510
+ autonomous: "autonomous";
511
+ }>;
512
+ }, z.core.$strict>;
1433
513
  /** Structural projections only: an authenticated transport must produce these. */
1434
- export declare const invocationPrincipalSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
514
+ export declare const invocationPrincipalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1435
515
  kind: z.ZodLiteral<"oauth">;
1436
516
  subject: z.ZodString;
1437
517
  clientId: z.ZodString;
1438
518
  originAccountId: z.ZodString;
1439
519
  activeAccountId: z.ZodString;
1440
- scopes: z.ZodArray<z.ZodString, "many">;
520
+ scopes: z.ZodArray<z.ZodString>;
1441
521
  resource: z.ZodString;
1442
- }, "strict", z.ZodTypeAny, {
1443
- kind: "oauth";
1444
- resource: string;
1445
- subject: string;
1446
- clientId: string;
1447
- originAccountId: string;
1448
- activeAccountId: string;
1449
- scopes: string[];
1450
- }, {
1451
- kind: "oauth";
1452
- resource: string;
1453
- subject: string;
1454
- clientId: string;
1455
- originAccountId: string;
1456
- activeAccountId: string;
1457
- scopes: string[];
1458
- }>, z.ZodObject<{
522
+ }, z.core.$strict>, z.ZodObject<{
1459
523
  kind: z.ZodLiteral<"capability">;
1460
- claims: z.ZodEffects<z.ZodEffects<z.ZodObject<{
524
+ claims: z.ZodObject<{
1461
525
  iss: z.ZodString;
1462
526
  aud: z.ZodString;
1463
527
  sub: z.ZodString;
@@ -1467,595 +531,87 @@ export declare const invocationPrincipalSchema: z.ZodDiscriminatedUnion<"kind",
1467
531
  runId: z.ZodString;
1468
532
  stepId: z.ZodOptional<z.ZodString>;
1469
533
  automationId: z.ZodOptional<z.ZodString>;
1470
- executionAuthorization: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
534
+ executionAuthorization: z.ZodDiscriminatedUnion<[z.ZodObject<{
1471
535
  kind: z.ZodLiteral<"direct_request">;
1472
536
  id: z.ZodString;
1473
- }, "strict", z.ZodTypeAny, {
1474
- kind: "direct_request";
1475
- id: string;
1476
- }, {
1477
- kind: "direct_request";
1478
- id: string;
1479
- }>, z.ZodObject<{
537
+ }, z.core.$strict>, z.ZodObject<{
1480
538
  kind: z.ZodLiteral<"automation">;
1481
539
  id: z.ZodString;
1482
540
  automationId: z.ZodString;
1483
- }, "strict", z.ZodTypeAny, {
1484
- kind: "automation";
1485
- id: string;
1486
- automationId: string;
1487
- }, {
1488
- kind: "automation";
1489
- id: string;
1490
- automationId: string;
1491
- }>]>;
541
+ }, z.core.$strict>], "kind">;
542
+ authority: z.ZodOptional<z.ZodEnum<{
543
+ external: "external";
544
+ first_party: "first_party";
545
+ }>>;
546
+ taskId: z.ZodOptional<z.ZodString>;
1492
547
  coordinator: z.ZodObject<{
1493
548
  applicationId: z.ZodString;
1494
549
  credentialId: z.ZodString;
1495
- }, "strict", z.ZodTypeAny, {
1496
- applicationId: string;
1497
- credentialId: string;
1498
- }, {
1499
- applicationId: string;
1500
- credentialId: string;
1501
- }>;
1502
- /** Signed only for callers that explicitly requested a pinned catalogue. */
550
+ }, z.core.$strict>;
1503
551
  catalog: z.ZodOptional<z.ZodObject<{
1504
552
  registrationId: z.ZodString;
1505
553
  version: z.ZodString;
1506
554
  digest: z.ZodString;
1507
- }, "strict", z.ZodTypeAny, {
1508
- registrationId: string;
1509
- version: string;
1510
- digest: string;
1511
- }, {
1512
- registrationId: string;
1513
- version: string;
1514
- digest: string;
1515
- }>>;
555
+ }, z.core.$strict>>;
1516
556
  grantId: z.ZodOptional<z.ZodString>;
1517
- /** The owner's published ceiling that bounds an agent acting for a non-owner (ADR 0042). */
1518
557
  ceilingId: z.ZodOptional<z.ZodString>;
1519
558
  requesterAccountId: z.ZodString;
1520
559
  ownerAccountId: z.ZodString;
1521
- actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
560
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1522
561
  type: z.ZodLiteral<"alia">;
1523
562
  ownerAccountId: z.ZodString;
1524
- }, "strict", z.ZodTypeAny, {
1525
- type: "alia";
1526
- ownerAccountId: string;
1527
- }, {
1528
- type: "alia";
1529
- ownerAccountId: string;
1530
- }>, z.ZodObject<{
563
+ }, z.core.$strict>, z.ZodObject<{
1531
564
  type: z.ZodLiteral<"agent">;
1532
565
  accountId: z.ZodString;
1533
- }, "strict", z.ZodTypeAny, {
1534
- type: "agent";
1535
- accountId: string;
1536
- }, {
1537
- type: "agent";
1538
- accountId: string;
1539
- }>, z.ZodObject<{
566
+ }, z.core.$strict>, z.ZodObject<{
1540
567
  type: z.ZodLiteral<"requester">;
1541
568
  accountId: z.ZodString;
1542
- }, "strict", z.ZodTypeAny, {
1543
- type: "requester";
1544
- accountId: string;
1545
- }, {
1546
- type: "requester";
1547
- accountId: string;
1548
- }>]>;
569
+ }, z.core.$strict>], "type">;
1549
570
  resource: z.ZodObject<{
1550
571
  appId: z.ZodString;
1551
572
  effectiveAccountId: z.ZodString;
1552
573
  resourceType: z.ZodString;
1553
574
  resourceId: z.ZodString;
1554
- }, "strict", z.ZodTypeAny, {
1555
- effectiveAccountId: string;
1556
- appId: string;
1557
- resourceType: string;
1558
- resourceId: string;
1559
- }, {
1560
- effectiveAccountId: string;
1561
- appId: string;
1562
- resourceType: string;
1563
- resourceId: string;
1564
- }>;
575
+ }, z.core.$strict>;
1565
576
  tool: z.ZodString;
1566
- capabilities: z.ZodArray<z.ZodString, "many">;
577
+ capabilities: z.ZodArray<z.ZodString>;
1567
578
  limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
1568
579
  tool: z.ZodString;
1569
580
  key: z.ZodString;
1570
- value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
1571
- }, "strict", z.ZodTypeAny, {
1572
- value: number | boolean;
1573
- tool: string;
1574
- key: string;
1575
- }, {
1576
- value: number | boolean;
1577
- tool: string;
1578
- key: string;
1579
- }>, "many">>;
1580
- autonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
1581
- }, "strict", z.ZodTypeAny, {
1582
- actor: {
1583
- type: "alia";
1584
- ownerAccountId: string;
1585
- } | {
1586
- type: "agent";
1587
- accountId: string;
1588
- } | {
1589
- type: "requester";
1590
- accountId: string;
1591
- };
1592
- tool: string;
1593
- ownerAccountId: string;
1594
- runId: string;
1595
- resource: {
1596
- effectiveAccountId: string;
1597
- appId: string;
1598
- resourceType: string;
1599
- resourceId: string;
1600
- };
1601
- capabilities: string[];
1602
- limits: {
1603
- value: number | boolean;
1604
- tool: string;
1605
- key: string;
1606
- }[];
1607
- iss: string;
1608
- aud: string;
1609
- sub: string;
1610
- jti: string;
1611
- iat: number;
1612
- exp: number;
1613
- executionAuthorization: {
1614
- kind: "direct_request";
1615
- id: string;
1616
- } | {
1617
- kind: "automation";
1618
- id: string;
1619
- automationId: string;
1620
- };
1621
- coordinator: {
1622
- applicationId: string;
1623
- credentialId: string;
1624
- };
1625
- requesterAccountId: string;
1626
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1627
- stepId?: string | undefined;
1628
- automationId?: string | undefined;
1629
- catalog?: {
1630
- registrationId: string;
1631
- version: string;
1632
- digest: string;
1633
- } | undefined;
1634
- grantId?: string | undefined;
1635
- ceilingId?: string | undefined;
1636
- }, {
1637
- actor: {
1638
- type: "alia";
1639
- ownerAccountId: string;
1640
- } | {
1641
- type: "agent";
1642
- accountId: string;
1643
- } | {
1644
- type: "requester";
1645
- accountId: string;
1646
- };
1647
- tool: string;
1648
- ownerAccountId: string;
1649
- runId: string;
1650
- resource: {
1651
- effectiveAccountId: string;
1652
- appId: string;
1653
- resourceType: string;
1654
- resourceId: string;
1655
- };
1656
- capabilities: string[];
1657
- iss: string;
1658
- aud: string;
1659
- sub: string;
1660
- jti: string;
1661
- iat: number;
1662
- exp: number;
1663
- executionAuthorization: {
1664
- kind: "direct_request";
1665
- id: string;
1666
- } | {
1667
- kind: "automation";
1668
- id: string;
1669
- automationId: string;
1670
- };
1671
- coordinator: {
1672
- applicationId: string;
1673
- credentialId: string;
1674
- };
1675
- requesterAccountId: string;
1676
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1677
- stepId?: string | undefined;
1678
- automationId?: string | undefined;
1679
- catalog?: {
1680
- registrationId: string;
1681
- version: string;
1682
- digest: string;
1683
- } | undefined;
1684
- limits?: {
1685
- value: number | boolean;
1686
- tool: string;
1687
- key: string;
1688
- }[] | undefined;
1689
- grantId?: string | undefined;
1690
- ceilingId?: string | undefined;
1691
- }>, {
1692
- actor: {
1693
- type: "alia";
1694
- ownerAccountId: string;
1695
- } | {
1696
- type: "agent";
1697
- accountId: string;
1698
- } | {
1699
- type: "requester";
1700
- accountId: string;
1701
- };
1702
- tool: string;
1703
- ownerAccountId: string;
1704
- runId: string;
1705
- resource: {
1706
- effectiveAccountId: string;
1707
- appId: string;
1708
- resourceType: string;
1709
- resourceId: string;
1710
- };
1711
- capabilities: string[];
1712
- limits: {
1713
- value: number | boolean;
1714
- tool: string;
1715
- key: string;
1716
- }[];
1717
- iss: string;
1718
- aud: string;
1719
- sub: string;
1720
- jti: string;
1721
- iat: number;
1722
- exp: number;
1723
- executionAuthorization: {
1724
- kind: "direct_request";
1725
- id: string;
1726
- } | {
1727
- kind: "automation";
1728
- id: string;
1729
- automationId: string;
1730
- };
1731
- coordinator: {
1732
- applicationId: string;
1733
- credentialId: string;
1734
- };
1735
- requesterAccountId: string;
1736
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1737
- stepId?: string | undefined;
1738
- automationId?: string | undefined;
1739
- catalog?: {
1740
- registrationId: string;
1741
- version: string;
1742
- digest: string;
1743
- } | undefined;
1744
- grantId?: string | undefined;
1745
- ceilingId?: string | undefined;
1746
- }, {
1747
- actor: {
1748
- type: "alia";
1749
- ownerAccountId: string;
1750
- } | {
1751
- type: "agent";
1752
- accountId: string;
1753
- } | {
1754
- type: "requester";
1755
- accountId: string;
1756
- };
1757
- tool: string;
1758
- ownerAccountId: string;
1759
- runId: string;
1760
- resource: {
1761
- effectiveAccountId: string;
1762
- appId: string;
1763
- resourceType: string;
1764
- resourceId: string;
1765
- };
1766
- capabilities: string[];
1767
- iss: string;
1768
- aud: string;
1769
- sub: string;
1770
- jti: string;
1771
- iat: number;
1772
- exp: number;
1773
- executionAuthorization: {
1774
- kind: "direct_request";
1775
- id: string;
1776
- } | {
1777
- kind: "automation";
1778
- id: string;
1779
- automationId: string;
1780
- };
1781
- coordinator: {
1782
- applicationId: string;
1783
- credentialId: string;
1784
- };
1785
- requesterAccountId: string;
1786
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1787
- stepId?: string | undefined;
1788
- automationId?: string | undefined;
1789
- catalog?: {
1790
- registrationId: string;
1791
- version: string;
1792
- digest: string;
1793
- } | undefined;
1794
- limits?: {
1795
- value: number | boolean;
1796
- tool: string;
1797
- key: string;
1798
- }[] | undefined;
1799
- grantId?: string | undefined;
1800
- ceilingId?: string | undefined;
1801
- }>, {
1802
- actor: {
1803
- type: "alia";
1804
- ownerAccountId: string;
1805
- } | {
1806
- type: "agent";
1807
- accountId: string;
1808
- } | {
1809
- type: "requester";
1810
- accountId: string;
1811
- };
1812
- tool: string;
1813
- ownerAccountId: string;
1814
- runId: string;
1815
- resource: {
1816
- effectiveAccountId: string;
1817
- appId: string;
1818
- resourceType: string;
1819
- resourceId: string;
1820
- };
1821
- capabilities: string[];
1822
- limits: {
1823
- value: number | boolean;
1824
- tool: string;
1825
- key: string;
1826
- }[];
1827
- iss: string;
1828
- aud: string;
1829
- sub: string;
1830
- jti: string;
1831
- iat: number;
1832
- exp: number;
1833
- executionAuthorization: {
1834
- kind: "direct_request";
1835
- id: string;
1836
- } | {
1837
- kind: "automation";
1838
- id: string;
1839
- automationId: string;
1840
- };
1841
- coordinator: {
1842
- applicationId: string;
1843
- credentialId: string;
1844
- };
1845
- requesterAccountId: string;
1846
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1847
- stepId?: string | undefined;
1848
- automationId?: string | undefined;
1849
- catalog?: {
1850
- registrationId: string;
1851
- version: string;
1852
- digest: string;
1853
- } | undefined;
1854
- grantId?: string | undefined;
1855
- ceilingId?: string | undefined;
1856
- }, {
1857
- actor: {
1858
- type: "alia";
1859
- ownerAccountId: string;
1860
- } | {
1861
- type: "agent";
1862
- accountId: string;
1863
- } | {
1864
- type: "requester";
1865
- accountId: string;
1866
- };
1867
- tool: string;
1868
- ownerAccountId: string;
1869
- runId: string;
1870
- resource: {
1871
- effectiveAccountId: string;
1872
- appId: string;
1873
- resourceType: string;
1874
- resourceId: string;
1875
- };
1876
- capabilities: string[];
1877
- iss: string;
1878
- aud: string;
1879
- sub: string;
1880
- jti: string;
1881
- iat: number;
1882
- exp: number;
1883
- executionAuthorization: {
1884
- kind: "direct_request";
1885
- id: string;
1886
- } | {
1887
- kind: "automation";
1888
- id: string;
1889
- automationId: string;
1890
- };
1891
- coordinator: {
1892
- applicationId: string;
1893
- credentialId: string;
1894
- };
1895
- requesterAccountId: string;
1896
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1897
- stepId?: string | undefined;
1898
- automationId?: string | undefined;
1899
- catalog?: {
1900
- registrationId: string;
1901
- version: string;
1902
- digest: string;
1903
- } | undefined;
1904
- limits?: {
1905
- value: number | boolean;
1906
- tool: string;
1907
- key: string;
1908
- }[] | undefined;
1909
- grantId?: string | undefined;
1910
- ceilingId?: string | undefined;
1911
- }>;
1912
- }, "strict", z.ZodTypeAny, {
1913
- kind: "capability";
1914
- claims: {
1915
- actor: {
1916
- type: "alia";
1917
- ownerAccountId: string;
1918
- } | {
1919
- type: "agent";
1920
- accountId: string;
1921
- } | {
1922
- type: "requester";
1923
- accountId: string;
1924
- };
1925
- tool: string;
1926
- ownerAccountId: string;
1927
- runId: string;
1928
- resource: {
1929
- effectiveAccountId: string;
1930
- appId: string;
1931
- resourceType: string;
1932
- resourceId: string;
1933
- };
1934
- capabilities: string[];
1935
- limits: {
1936
- value: number | boolean;
1937
- tool: string;
1938
- key: string;
1939
- }[];
1940
- iss: string;
1941
- aud: string;
1942
- sub: string;
1943
- jti: string;
1944
- iat: number;
1945
- exp: number;
1946
- executionAuthorization: {
1947
- kind: "direct_request";
1948
- id: string;
1949
- } | {
1950
- kind: "automation";
1951
- id: string;
1952
- automationId: string;
1953
- };
1954
- coordinator: {
1955
- applicationId: string;
1956
- credentialId: string;
1957
- };
1958
- requesterAccountId: string;
1959
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1960
- stepId?: string | undefined;
1961
- automationId?: string | undefined;
1962
- catalog?: {
1963
- registrationId: string;
1964
- version: string;
1965
- digest: string;
1966
- } | undefined;
1967
- grantId?: string | undefined;
1968
- ceilingId?: string | undefined;
1969
- };
1970
- }, {
1971
- kind: "capability";
1972
- claims: {
1973
- actor: {
1974
- type: "alia";
1975
- ownerAccountId: string;
1976
- } | {
1977
- type: "agent";
1978
- accountId: string;
1979
- } | {
1980
- type: "requester";
1981
- accountId: string;
1982
- };
1983
- tool: string;
1984
- ownerAccountId: string;
1985
- runId: string;
1986
- resource: {
1987
- effectiveAccountId: string;
1988
- appId: string;
1989
- resourceType: string;
1990
- resourceId: string;
1991
- };
1992
- capabilities: string[];
1993
- iss: string;
1994
- aud: string;
1995
- sub: string;
1996
- jti: string;
1997
- iat: number;
1998
- exp: number;
1999
- executionAuthorization: {
2000
- kind: "direct_request";
2001
- id: string;
2002
- } | {
2003
- kind: "automation";
2004
- id: string;
2005
- automationId: string;
2006
- };
2007
- coordinator: {
2008
- applicationId: string;
2009
- credentialId: string;
2010
- };
2011
- requesterAccountId: string;
2012
- autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
2013
- stepId?: string | undefined;
2014
- automationId?: string | undefined;
2015
- catalog?: {
2016
- registrationId: string;
2017
- version: string;
2018
- digest: string;
2019
- } | undefined;
2020
- limits?: {
2021
- value: number | boolean;
2022
- tool: string;
2023
- key: string;
2024
- }[] | undefined;
2025
- grantId?: string | undefined;
2026
- ceilingId?: string | undefined;
2027
- };
2028
- }>]>;
581
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean]>;
582
+ }, z.core.$strict>>>;
583
+ autonomy: z.ZodEnum<{
584
+ read_only: "read_only";
585
+ draft: "draft";
586
+ execute_on_request: "execute_on_request";
587
+ autonomous: "autonomous";
588
+ }>;
589
+ }, z.core.$strict>;
590
+ }, z.core.$strict>], "kind">;
2029
591
  export type InvocationPrincipal = z.infer<typeof invocationPrincipalSchema>;
2030
592
  export declare const policyDecisionSchema: z.ZodObject<{
2031
593
  allowed: z.ZodBoolean;
2032
594
  reason: z.ZodString;
2033
- effectiveAutonomy: z.ZodOptional<z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>>;
595
+ effectiveAutonomy: z.ZodOptional<z.ZodEnum<{
596
+ read_only: "read_only";
597
+ draft: "draft";
598
+ execute_on_request: "execute_on_request";
599
+ autonomous: "autonomous";
600
+ }>>;
2034
601
  grantId: z.ZodOptional<z.ZodString>;
2035
602
  ceilingId: z.ZodOptional<z.ZodString>;
2036
- }, "strict", z.ZodTypeAny, {
2037
- allowed: boolean;
2038
- reason: string;
2039
- grantId?: string | undefined;
2040
- ceilingId?: string | undefined;
2041
- effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
2042
- }, {
2043
- allowed: boolean;
2044
- reason: string;
2045
- grantId?: string | undefined;
2046
- ceilingId?: string | undefined;
2047
- effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
2048
- }>;
603
+ }, z.core.$strict>;
2049
604
  export declare const auditResultSchema: z.ZodObject<{
2050
- status: z.ZodEnum<["planned", "allowed", "denied", "succeeded", "failed", "rolled_back"]>;
605
+ status: z.ZodEnum<{
606
+ allowed: "allowed";
607
+ planned: "planned";
608
+ denied: "denied";
609
+ succeeded: "succeeded";
610
+ failed: "failed";
611
+ rolled_back: "rolled_back";
612
+ }>;
2051
613
  code: z.ZodOptional<z.ZodString>;
2052
- }, "strict", z.ZodTypeAny, {
2053
- status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
2054
- code?: string | undefined;
2055
- }, {
2056
- status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
2057
- code?: string | undefined;
2058
- }>;
614
+ }, z.core.$strict>;
2059
615
  export declare const auditEventSchema: z.ZodObject<{
2060
616
  eventId: z.ZodString;
2061
617
  occurredAt: z.ZodString;
@@ -2063,231 +619,73 @@ export declare const auditEventSchema: z.ZodObject<{
2063
619
  coordinator: z.ZodObject<{
2064
620
  applicationId: z.ZodString;
2065
621
  credentialId: z.ZodString;
2066
- }, "strict", z.ZodTypeAny, {
2067
- applicationId: string;
2068
- credentialId: string;
2069
- }, {
2070
- applicationId: string;
2071
- credentialId: string;
2072
- }>;
2073
- executor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
622
+ }, z.core.$strict>;
623
+ executor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2074
624
  type: z.ZodLiteral<"alia">;
2075
625
  ownerAccountId: z.ZodString;
2076
- }, "strict", z.ZodTypeAny, {
2077
- type: "alia";
2078
- ownerAccountId: string;
2079
- }, {
2080
- type: "alia";
2081
- ownerAccountId: string;
2082
- }>, z.ZodObject<{
626
+ }, z.core.$strict>, z.ZodObject<{
2083
627
  type: z.ZodLiteral<"agent">;
2084
628
  accountId: z.ZodString;
2085
- }, "strict", z.ZodTypeAny, {
2086
- type: "agent";
2087
- accountId: string;
2088
- }, {
2089
- type: "agent";
2090
- accountId: string;
2091
- }>, z.ZodObject<{
629
+ }, z.core.$strict>, z.ZodObject<{
2092
630
  type: z.ZodLiteral<"requester">;
2093
631
  accountId: z.ZodString;
2094
- }, "strict", z.ZodTypeAny, {
2095
- type: "requester";
2096
- accountId: string;
2097
- }, {
2098
- type: "requester";
2099
- accountId: string;
2100
- }>]>;
632
+ }, z.core.$strict>], "type">;
2101
633
  effectiveAccountId: z.ZodString;
2102
634
  resource: z.ZodObject<{
2103
635
  appId: z.ZodString;
2104
636
  effectiveAccountId: z.ZodString;
2105
637
  resourceType: z.ZodString;
2106
638
  resourceId: z.ZodString;
2107
- }, "strict", z.ZodTypeAny, {
2108
- effectiveAccountId: string;
2109
- appId: string;
2110
- resourceType: string;
2111
- resourceId: string;
2112
- }, {
2113
- effectiveAccountId: string;
2114
- appId: string;
2115
- resourceType: string;
2116
- resourceId: string;
2117
- }>;
639
+ }, z.core.$strict>;
2118
640
  appId: z.ZodString;
2119
641
  tool: z.ZodString;
2120
- capabilities: z.ZodArray<z.ZodString, "many">;
642
+ capabilities: z.ZodArray<z.ZodString>;
2121
643
  policyDecision: z.ZodObject<{
2122
644
  allowed: z.ZodBoolean;
2123
645
  reason: z.ZodString;
2124
- effectiveAutonomy: z.ZodOptional<z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>>;
646
+ effectiveAutonomy: z.ZodOptional<z.ZodEnum<{
647
+ read_only: "read_only";
648
+ draft: "draft";
649
+ execute_on_request: "execute_on_request";
650
+ autonomous: "autonomous";
651
+ }>>;
2125
652
  grantId: z.ZodOptional<z.ZodString>;
2126
653
  ceilingId: z.ZodOptional<z.ZodString>;
2127
- }, "strict", z.ZodTypeAny, {
2128
- allowed: boolean;
2129
- reason: string;
2130
- grantId?: string | undefined;
2131
- ceilingId?: string | undefined;
2132
- effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
2133
- }, {
2134
- allowed: boolean;
2135
- reason: string;
2136
- grantId?: string | undefined;
2137
- ceilingId?: string | undefined;
2138
- effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
2139
- }>;
654
+ }, z.core.$strict>;
2140
655
  result: z.ZodObject<{
2141
- status: z.ZodEnum<["planned", "allowed", "denied", "succeeded", "failed", "rolled_back"]>;
656
+ status: z.ZodEnum<{
657
+ allowed: "allowed";
658
+ planned: "planned";
659
+ denied: "denied";
660
+ succeeded: "succeeded";
661
+ failed: "failed";
662
+ rolled_back: "rolled_back";
663
+ }>;
2142
664
  code: z.ZodOptional<z.ZodString>;
2143
- }, "strict", z.ZodTypeAny, {
2144
- status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
2145
- code?: string | undefined;
2146
- }, {
2147
- status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
2148
- code?: string | undefined;
2149
- }>;
665
+ }, z.core.$strict>;
2150
666
  rollback: z.ZodObject<{
2151
667
  supported: z.ZodBoolean;
2152
668
  attempted: z.ZodBoolean;
2153
669
  succeeded: z.ZodOptional<z.ZodBoolean>;
2154
- }, "strict", z.ZodTypeAny, {
2155
- supported: boolean;
2156
- attempted: boolean;
2157
- succeeded?: boolean | undefined;
2158
- }, {
2159
- supported: boolean;
2160
- attempted: boolean;
2161
- succeeded?: boolean | undefined;
2162
- }>;
670
+ }, z.core.$strict>;
2163
671
  correlation: z.ZodObject<{
2164
672
  runId: z.ZodString;
2165
673
  stepId: z.ZodOptional<z.ZodString>;
2166
674
  automationId: z.ZodOptional<z.ZodString>;
2167
675
  idempotencyKeyHash: z.ZodOptional<z.ZodString>;
2168
676
  capabilityTicketId: z.ZodOptional<z.ZodString>;
2169
- }, "strict", z.ZodTypeAny, {
2170
- runId: string;
2171
- stepId?: string | undefined;
2172
- automationId?: string | undefined;
2173
- idempotencyKeyHash?: string | undefined;
2174
- capabilityTicketId?: string | undefined;
2175
- }, {
2176
- runId: string;
2177
- stepId?: string | undefined;
2178
- automationId?: string | undefined;
2179
- idempotencyKeyHash?: string | undefined;
2180
- capabilityTicketId?: string | undefined;
2181
- }>;
2182
- }, "strict", z.ZodTypeAny, {
2183
- effectiveAccountId: string;
2184
- tool: string;
2185
- appId: string;
2186
- resource: {
2187
- effectiveAccountId: string;
2188
- appId: string;
2189
- resourceType: string;
2190
- resourceId: string;
2191
- };
2192
- capabilities: string[];
2193
- coordinator: {
2194
- applicationId: string;
2195
- credentialId: string;
2196
- };
2197
- requesterAccountId: string;
2198
- eventId: string;
2199
- occurredAt: string;
2200
- executor: {
2201
- type: "alia";
2202
- ownerAccountId: string;
2203
- } | {
2204
- type: "agent";
2205
- accountId: string;
2206
- } | {
2207
- type: "requester";
2208
- accountId: string;
2209
- };
2210
- policyDecision: {
2211
- allowed: boolean;
2212
- reason: string;
2213
- grantId?: string | undefined;
2214
- ceilingId?: string | undefined;
2215
- effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
2216
- };
2217
- result: {
2218
- status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
2219
- code?: string | undefined;
2220
- };
2221
- rollback: {
2222
- supported: boolean;
2223
- attempted: boolean;
2224
- succeeded?: boolean | undefined;
2225
- };
2226
- correlation: {
2227
- runId: string;
2228
- stepId?: string | undefined;
2229
- automationId?: string | undefined;
2230
- idempotencyKeyHash?: string | undefined;
2231
- capabilityTicketId?: string | undefined;
2232
- };
2233
- }, {
2234
- effectiveAccountId: string;
2235
- tool: string;
2236
- appId: string;
2237
- resource: {
2238
- effectiveAccountId: string;
2239
- appId: string;
2240
- resourceType: string;
2241
- resourceId: string;
2242
- };
2243
- capabilities: string[];
2244
- coordinator: {
2245
- applicationId: string;
2246
- credentialId: string;
2247
- };
2248
- requesterAccountId: string;
2249
- eventId: string;
2250
- occurredAt: string;
2251
- executor: {
2252
- type: "alia";
2253
- ownerAccountId: string;
2254
- } | {
2255
- type: "agent";
2256
- accountId: string;
2257
- } | {
2258
- type: "requester";
2259
- accountId: string;
2260
- };
2261
- policyDecision: {
2262
- allowed: boolean;
2263
- reason: string;
2264
- grantId?: string | undefined;
2265
- ceilingId?: string | undefined;
2266
- effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
2267
- };
2268
- result: {
2269
- status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
2270
- code?: string | undefined;
2271
- };
2272
- rollback: {
2273
- supported: boolean;
2274
- attempted: boolean;
2275
- succeeded?: boolean | undefined;
2276
- };
2277
- correlation: {
2278
- runId: string;
2279
- stepId?: string | undefined;
2280
- automationId?: string | undefined;
2281
- idempotencyKeyHash?: string | undefined;
2282
- capabilityTicketId?: string | undefined;
2283
- };
2284
- }>;
677
+ }, z.core.$strict>;
678
+ }, z.core.$strict>;
2285
679
  /**
2286
680
  * The executing actor types a catalogue tool may name in `actors` — exactly the
2287
681
  * discriminator of {@link executionActorRefSchema}.
2288
682
  */
2289
683
  export declare const CATALOG_TOOL_ACTOR_TYPES: readonly ["alia", "agent", "requester"];
2290
- export declare const catalogToolActorTypeSchema: z.ZodEnum<["alia", "agent", "requester"]>;
684
+ export declare const catalogToolActorTypeSchema: z.ZodEnum<{
685
+ alia: "alia";
686
+ agent: "agent";
687
+ requester: "requester";
688
+ }>;
2291
689
  /**
2292
690
  * Who may execute a tool that declares no `actors`: the standing actors
2293
691
  * (native Alia and agents, {@link actorRefSchema}). A present requester
@@ -2295,153 +693,75 @@ export declare const catalogToolActorTypeSchema: z.ZodEnum<["alia", "agent", "re
2295
693
  * which is what every catalogue meant before the field existed.
2296
694
  */
2297
695
  export declare const CATALOG_TOOL_DEFAULT_ACTORS: readonly ["alia", "agent"];
2298
- export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
696
+ export declare const catalogToolSchema: z.ZodObject<{
2299
697
  name: z.ZodString;
2300
698
  version: z.ZodString;
2301
699
  description: z.ZodString;
2302
700
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2303
701
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2304
- capabilityPackage: z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>;
2305
- requiredCapabilities: z.ZodArray<z.ZodString, "many">;
2306
- resourceTypes: z.ZodArray<z.ZodString, "many">;
2307
- effect: z.ZodEnum<["read", "write", "external", "financial", "security"]>;
2308
- idempotency: z.ZodEnum<["none", "supported", "required"]>;
2309
- rollback: z.ZodEnum<["none", "manual", "supported"]>;
2310
- exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
2311
- /**
2312
- * Executing actor types Oxy will issue a capability ticket for. Absent
2313
- * means {@link CATALOG_TOOL_DEFAULT_ACTORS}. A coordinator must not offer
2314
- * the tool to any other actor: Oxy refuses the authorization.
2315
- */
2316
- actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
702
+ capabilityPackage: z.ZodEnum<{
703
+ finance: "finance";
704
+ security: "security";
705
+ read: "read";
706
+ create: "create";
707
+ publish: "publish";
708
+ communicate: "communicate";
709
+ administer: "administer";
710
+ delegate: "delegate";
711
+ }>;
712
+ requiredCapabilities: z.ZodArray<z.ZodString>;
713
+ resourceTypes: z.ZodArray<z.ZodString>;
714
+ effect: z.ZodEnum<{
715
+ external: "external";
716
+ security: "security";
717
+ read: "read";
718
+ write: "write";
719
+ financial: "financial";
720
+ }>;
721
+ idempotency: z.ZodEnum<{
722
+ none: "none";
723
+ supported: "supported";
724
+ required: "required";
725
+ }>;
726
+ rollback: z.ZodEnum<{
727
+ none: "none";
728
+ manual: "manual";
729
+ supported: "supported";
730
+ }>;
731
+ exposure: z.ZodArray<z.ZodEnum<{
732
+ internal: "internal";
733
+ mcp: "mcp";
734
+ }>>;
735
+ actors: z.ZodOptional<z.ZodArray<z.ZodEnum<{
736
+ alia: "alia";
737
+ agent: "agent";
738
+ requester: "requester";
739
+ }>>>;
2317
740
  limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
2318
741
  key: z.ZodString;
2319
- kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
2320
- }, "strict", z.ZodTypeAny, {
2321
- kind: "maximum_number" | "exact_boolean";
2322
- key: string;
2323
- }, {
2324
- kind: "maximum_number" | "exact_boolean";
2325
- key: string;
2326
- }>, "many">>;
742
+ kind: z.ZodEnum<{
743
+ maximum_number: "maximum_number";
744
+ exact_boolean: "exact_boolean";
745
+ }>;
746
+ }, z.core.$strict>>>;
2327
747
  invocation: z.ZodObject<{
2328
- method: z.ZodEnum<["GET", "POST", "PATCH", "PUT", "DELETE"]>;
748
+ method: z.ZodEnum<{
749
+ GET: "GET";
750
+ POST: "POST";
751
+ PATCH: "PATCH";
752
+ PUT: "PUT";
753
+ DELETE: "DELETE";
754
+ }>;
2329
755
  path: z.ZodString;
2330
- }, "strict", z.ZodTypeAny, {
2331
- path: string;
2332
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2333
- }, {
2334
- path: string;
2335
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2336
- }>;
2337
- }, "strict", z.ZodTypeAny, {
2338
- effect: "security" | "read" | "write" | "external" | "financial";
2339
- name: string;
2340
- description: string;
2341
- version: string;
2342
- rollback: "none" | "manual" | "supported";
2343
- inputSchema: Record<string, unknown>;
2344
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2345
- requiredCapabilities: string[];
2346
- resourceTypes: string[];
2347
- idempotency: "none" | "supported" | "required";
2348
- exposure: ("internal" | "mcp")[];
2349
- limitKeys: {
2350
- kind: "maximum_number" | "exact_boolean";
2351
- key: string;
2352
- }[];
2353
- invocation: {
2354
- path: string;
2355
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2356
- };
2357
- outputSchema?: Record<string, unknown> | undefined;
2358
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2359
- }, {
2360
- effect: "security" | "read" | "write" | "external" | "financial";
2361
- name: string;
2362
- description: string;
2363
- version: string;
2364
- rollback: "none" | "manual" | "supported";
2365
- inputSchema: Record<string, unknown>;
2366
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2367
- requiredCapabilities: string[];
2368
- resourceTypes: string[];
2369
- idempotency: "none" | "supported" | "required";
2370
- exposure: ("internal" | "mcp")[];
2371
- invocation: {
2372
- path: string;
2373
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2374
- };
2375
- outputSchema?: Record<string, unknown> | undefined;
2376
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2377
- limitKeys?: {
2378
- kind: "maximum_number" | "exact_boolean";
2379
- key: string;
2380
- }[] | undefined;
2381
- }>, {
2382
- effect: "security" | "read" | "write" | "external" | "financial";
2383
- name: string;
2384
- description: string;
2385
- version: string;
2386
- rollback: "none" | "manual" | "supported";
2387
- inputSchema: Record<string, unknown>;
2388
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2389
- requiredCapabilities: string[];
2390
- resourceTypes: string[];
2391
- idempotency: "none" | "supported" | "required";
2392
- exposure: ("internal" | "mcp")[];
2393
- limitKeys: {
2394
- kind: "maximum_number" | "exact_boolean";
2395
- key: string;
2396
- }[];
2397
- invocation: {
2398
- path: string;
2399
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2400
- };
2401
- outputSchema?: Record<string, unknown> | undefined;
2402
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2403
- }, {
2404
- effect: "security" | "read" | "write" | "external" | "financial";
2405
- name: string;
2406
- description: string;
2407
- version: string;
2408
- rollback: "none" | "manual" | "supported";
2409
- inputSchema: Record<string, unknown>;
2410
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2411
- requiredCapabilities: string[];
2412
- resourceTypes: string[];
2413
- idempotency: "none" | "supported" | "required";
2414
- exposure: ("internal" | "mcp")[];
2415
- invocation: {
2416
- path: string;
2417
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2418
- };
2419
- outputSchema?: Record<string, unknown> | undefined;
2420
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2421
- limitKeys?: {
2422
- kind: "maximum_number" | "exact_boolean";
2423
- key: string;
2424
- }[] | undefined;
2425
- }>;
756
+ }, z.core.$strict>;
757
+ }, z.core.$strict>;
2426
758
  export declare const catalogEventSchema: z.ZodObject<{
2427
759
  type: z.ZodString;
2428
760
  version: z.ZodString;
2429
761
  description: z.ZodString;
2430
762
  dataSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2431
- resourceTypes: z.ZodArray<z.ZodString, "many">;
2432
- }, "strict", z.ZodTypeAny, {
2433
- type: string;
2434
- description: string;
2435
- version: string;
2436
- resourceTypes: string[];
2437
- dataSchema: Record<string, unknown>;
2438
- }, {
2439
- type: string;
2440
- description: string;
2441
- version: string;
2442
- resourceTypes: string[];
2443
- dataSchema: Record<string, unknown>;
2444
- }>;
763
+ resourceTypes: z.ZodArray<z.ZodString>;
764
+ }, z.core.$strict>;
2445
765
  /**
2446
766
  * A feature an agent may gate on (Alia ADR 0020 §6): the app answers whether the
2447
767
  * person may use it (`checkTool`) and, when using it costs something, spends it
@@ -2452,876 +772,194 @@ export declare const catalogFeatureSchema: z.ZodObject<{
2452
772
  description: z.ZodString;
2453
773
  checkTool: z.ZodString;
2454
774
  consumeTool: z.ZodOptional<z.ZodString>;
2455
- }, "strict", z.ZodTypeAny, {
2456
- description: string;
2457
- key: string;
2458
- checkTool: string;
2459
- consumeTool?: string | undefined;
2460
- }, {
2461
- description: string;
2462
- key: string;
2463
- checkTool: string;
2464
- consumeTool?: string | undefined;
2465
- }>;
775
+ }, z.core.$strict>;
2466
776
  /** How a coordinator reaches the catalogue's internal tools. */
2467
777
  export declare const CATALOG_INTERNAL_TRANSPORTS: readonly ["http", "mcp"];
2468
- export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
778
+ export declare const appCapabilityCatalogSchema: z.ZodObject<{
2469
779
  schemaVersion: z.ZodLiteral<"1">;
2470
780
  appId: z.ZodString;
2471
781
  version: z.ZodString;
2472
782
  audience: z.ZodString;
2473
- /** HTTPS origin that serves the catalog's internal invocation paths. */
2474
- internalBaseUrl: z.ZodEffects<z.ZodString, string, string>;
2475
- /** Account-scoped resource used for native Alia bindings without app-specific code. */
783
+ internalBaseUrl: z.ZodString;
2476
784
  accountResourceType: z.ZodString;
2477
- /** Canonical protected-resource URI when this catalog is also exposed as an external MCP server. */
2478
785
  externalMcp: z.ZodOptional<z.ZodObject<{
2479
- resource: z.ZodEffects<z.ZodString, string, string>;
2480
- }, "strict", z.ZodTypeAny, {
2481
- resource: string;
2482
- }, {
2483
- resource: string;
786
+ resource: z.ZodString;
787
+ }, z.core.$strict>>;
788
+ internalTransport: z.ZodOptional<z.ZodEnum<{
789
+ mcp: "mcp";
790
+ http: "http";
2484
791
  }>>;
2485
- /**
2486
- * `mcp`: internal tools are served at `<internalBaseUrl>/_oxy/mcp`. Absent or
2487
- * `http`: each tool's `invocation` path on `internalBaseUrl`.
2488
- */
2489
- internalTransport: z.ZodOptional<z.ZodEnum<["http", "mcp"]>>;
2490
792
  features: z.ZodOptional<z.ZodArray<z.ZodObject<{
2491
793
  key: z.ZodString;
2492
794
  description: z.ZodString;
2493
795
  checkTool: z.ZodString;
2494
796
  consumeTool: z.ZodOptional<z.ZodString>;
2495
- }, "strict", z.ZodTypeAny, {
2496
- description: string;
2497
- key: string;
2498
- checkTool: string;
2499
- consumeTool?: string | undefined;
2500
- }, {
2501
- description: string;
2502
- key: string;
2503
- checkTool: string;
2504
- consumeTool?: string | undefined;
2505
- }>, "many">>;
2506
- tools: z.ZodArray<z.ZodEffects<z.ZodObject<{
797
+ }, z.core.$strict>>>;
798
+ tools: z.ZodArray<z.ZodObject<{
2507
799
  name: z.ZodString;
2508
800
  version: z.ZodString;
2509
801
  description: z.ZodString;
2510
802
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2511
803
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2512
- capabilityPackage: z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>;
2513
- requiredCapabilities: z.ZodArray<z.ZodString, "many">;
2514
- resourceTypes: z.ZodArray<z.ZodString, "many">;
2515
- effect: z.ZodEnum<["read", "write", "external", "financial", "security"]>;
2516
- idempotency: z.ZodEnum<["none", "supported", "required"]>;
2517
- rollback: z.ZodEnum<["none", "manual", "supported"]>;
2518
- exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
2519
- /**
2520
- * Executing actor types Oxy will issue a capability ticket for. Absent
2521
- * means {@link CATALOG_TOOL_DEFAULT_ACTORS}. A coordinator must not offer
2522
- * the tool to any other actor: Oxy refuses the authorization.
2523
- */
2524
- actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
804
+ capabilityPackage: z.ZodEnum<{
805
+ finance: "finance";
806
+ security: "security";
807
+ read: "read";
808
+ create: "create";
809
+ publish: "publish";
810
+ communicate: "communicate";
811
+ administer: "administer";
812
+ delegate: "delegate";
813
+ }>;
814
+ requiredCapabilities: z.ZodArray<z.ZodString>;
815
+ resourceTypes: z.ZodArray<z.ZodString>;
816
+ effect: z.ZodEnum<{
817
+ external: "external";
818
+ security: "security";
819
+ read: "read";
820
+ write: "write";
821
+ financial: "financial";
822
+ }>;
823
+ idempotency: z.ZodEnum<{
824
+ none: "none";
825
+ supported: "supported";
826
+ required: "required";
827
+ }>;
828
+ rollback: z.ZodEnum<{
829
+ none: "none";
830
+ manual: "manual";
831
+ supported: "supported";
832
+ }>;
833
+ exposure: z.ZodArray<z.ZodEnum<{
834
+ internal: "internal";
835
+ mcp: "mcp";
836
+ }>>;
837
+ actors: z.ZodOptional<z.ZodArray<z.ZodEnum<{
838
+ alia: "alia";
839
+ agent: "agent";
840
+ requester: "requester";
841
+ }>>>;
2525
842
  limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
2526
843
  key: z.ZodString;
2527
- kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
2528
- }, "strict", z.ZodTypeAny, {
2529
- kind: "maximum_number" | "exact_boolean";
2530
- key: string;
2531
- }, {
2532
- kind: "maximum_number" | "exact_boolean";
2533
- key: string;
2534
- }>, "many">>;
844
+ kind: z.ZodEnum<{
845
+ maximum_number: "maximum_number";
846
+ exact_boolean: "exact_boolean";
847
+ }>;
848
+ }, z.core.$strict>>>;
2535
849
  invocation: z.ZodObject<{
2536
- method: z.ZodEnum<["GET", "POST", "PATCH", "PUT", "DELETE"]>;
850
+ method: z.ZodEnum<{
851
+ GET: "GET";
852
+ POST: "POST";
853
+ PATCH: "PATCH";
854
+ PUT: "PUT";
855
+ DELETE: "DELETE";
856
+ }>;
2537
857
  path: z.ZodString;
2538
- }, "strict", z.ZodTypeAny, {
2539
- path: string;
2540
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2541
- }, {
2542
- path: string;
2543
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2544
- }>;
2545
- }, "strict", z.ZodTypeAny, {
2546
- effect: "security" | "read" | "write" | "external" | "financial";
2547
- name: string;
2548
- description: string;
2549
- version: string;
2550
- rollback: "none" | "manual" | "supported";
2551
- inputSchema: Record<string, unknown>;
2552
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2553
- requiredCapabilities: string[];
2554
- resourceTypes: string[];
2555
- idempotency: "none" | "supported" | "required";
2556
- exposure: ("internal" | "mcp")[];
2557
- limitKeys: {
2558
- kind: "maximum_number" | "exact_boolean";
2559
- key: string;
2560
- }[];
2561
- invocation: {
2562
- path: string;
2563
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2564
- };
2565
- outputSchema?: Record<string, unknown> | undefined;
2566
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2567
- }, {
2568
- effect: "security" | "read" | "write" | "external" | "financial";
2569
- name: string;
2570
- description: string;
2571
- version: string;
2572
- rollback: "none" | "manual" | "supported";
2573
- inputSchema: Record<string, unknown>;
2574
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2575
- requiredCapabilities: string[];
2576
- resourceTypes: string[];
2577
- idempotency: "none" | "supported" | "required";
2578
- exposure: ("internal" | "mcp")[];
2579
- invocation: {
2580
- path: string;
2581
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2582
- };
2583
- outputSchema?: Record<string, unknown> | undefined;
2584
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2585
- limitKeys?: {
2586
- kind: "maximum_number" | "exact_boolean";
2587
- key: string;
2588
- }[] | undefined;
2589
- }>, {
2590
- effect: "security" | "read" | "write" | "external" | "financial";
2591
- name: string;
2592
- description: string;
2593
- version: string;
2594
- rollback: "none" | "manual" | "supported";
2595
- inputSchema: Record<string, unknown>;
2596
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2597
- requiredCapabilities: string[];
2598
- resourceTypes: string[];
2599
- idempotency: "none" | "supported" | "required";
2600
- exposure: ("internal" | "mcp")[];
2601
- limitKeys: {
2602
- kind: "maximum_number" | "exact_boolean";
2603
- key: string;
2604
- }[];
2605
- invocation: {
2606
- path: string;
2607
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2608
- };
2609
- outputSchema?: Record<string, unknown> | undefined;
2610
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2611
- }, {
2612
- effect: "security" | "read" | "write" | "external" | "financial";
2613
- name: string;
2614
- description: string;
2615
- version: string;
2616
- rollback: "none" | "manual" | "supported";
2617
- inputSchema: Record<string, unknown>;
2618
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2619
- requiredCapabilities: string[];
2620
- resourceTypes: string[];
2621
- idempotency: "none" | "supported" | "required";
2622
- exposure: ("internal" | "mcp")[];
2623
- invocation: {
2624
- path: string;
2625
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2626
- };
2627
- outputSchema?: Record<string, unknown> | undefined;
2628
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2629
- limitKeys?: {
2630
- kind: "maximum_number" | "exact_boolean";
2631
- key: string;
2632
- }[] | undefined;
2633
- }>, "many">;
858
+ }, z.core.$strict>;
859
+ }, z.core.$strict>>;
2634
860
  events: z.ZodArray<z.ZodObject<{
2635
861
  type: z.ZodString;
2636
862
  version: z.ZodString;
2637
863
  description: z.ZodString;
2638
864
  dataSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2639
- resourceTypes: z.ZodArray<z.ZodString, "many">;
2640
- }, "strict", z.ZodTypeAny, {
2641
- type: string;
2642
- description: string;
2643
- version: string;
2644
- resourceTypes: string[];
2645
- dataSchema: Record<string, unknown>;
2646
- }, {
2647
- type: string;
2648
- description: string;
2649
- version: string;
2650
- resourceTypes: string[];
2651
- dataSchema: Record<string, unknown>;
2652
- }>, "many">;
2653
- }, "strict", z.ZodTypeAny, {
2654
- schemaVersion: "1";
2655
- version: string;
2656
- appId: string;
2657
- audience: string;
2658
- internalBaseUrl: string;
2659
- accountResourceType: string;
2660
- tools: {
2661
- effect: "security" | "read" | "write" | "external" | "financial";
2662
- name: string;
2663
- description: string;
2664
- version: string;
2665
- rollback: "none" | "manual" | "supported";
2666
- inputSchema: Record<string, unknown>;
2667
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2668
- requiredCapabilities: string[];
2669
- resourceTypes: string[];
2670
- idempotency: "none" | "supported" | "required";
2671
- exposure: ("internal" | "mcp")[];
2672
- limitKeys: {
2673
- kind: "maximum_number" | "exact_boolean";
2674
- key: string;
2675
- }[];
2676
- invocation: {
2677
- path: string;
2678
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2679
- };
2680
- outputSchema?: Record<string, unknown> | undefined;
2681
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2682
- }[];
2683
- events: {
2684
- type: string;
2685
- description: string;
2686
- version: string;
2687
- resourceTypes: string[];
2688
- dataSchema: Record<string, unknown>;
2689
- }[];
2690
- externalMcp?: {
2691
- resource: string;
2692
- } | undefined;
2693
- internalTransport?: "mcp" | "http" | undefined;
2694
- features?: {
2695
- description: string;
2696
- key: string;
2697
- checkTool: string;
2698
- consumeTool?: string | undefined;
2699
- }[] | undefined;
2700
- }, {
2701
- schemaVersion: "1";
2702
- version: string;
2703
- appId: string;
2704
- audience: string;
2705
- internalBaseUrl: string;
2706
- accountResourceType: string;
2707
- tools: {
2708
- effect: "security" | "read" | "write" | "external" | "financial";
2709
- name: string;
2710
- description: string;
2711
- version: string;
2712
- rollback: "none" | "manual" | "supported";
2713
- inputSchema: Record<string, unknown>;
2714
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2715
- requiredCapabilities: string[];
2716
- resourceTypes: string[];
2717
- idempotency: "none" | "supported" | "required";
2718
- exposure: ("internal" | "mcp")[];
2719
- invocation: {
2720
- path: string;
2721
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2722
- };
2723
- outputSchema?: Record<string, unknown> | undefined;
2724
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2725
- limitKeys?: {
2726
- kind: "maximum_number" | "exact_boolean";
2727
- key: string;
2728
- }[] | undefined;
2729
- }[];
2730
- events: {
2731
- type: string;
2732
- description: string;
2733
- version: string;
2734
- resourceTypes: string[];
2735
- dataSchema: Record<string, unknown>;
2736
- }[];
2737
- externalMcp?: {
2738
- resource: string;
2739
- } | undefined;
2740
- internalTransport?: "mcp" | "http" | undefined;
2741
- features?: {
2742
- description: string;
2743
- key: string;
2744
- checkTool: string;
2745
- consumeTool?: string | undefined;
2746
- }[] | undefined;
2747
- }>, {
2748
- schemaVersion: "1";
2749
- version: string;
2750
- appId: string;
2751
- audience: string;
2752
- internalBaseUrl: string;
2753
- accountResourceType: string;
2754
- tools: {
2755
- effect: "security" | "read" | "write" | "external" | "financial";
2756
- name: string;
2757
- description: string;
2758
- version: string;
2759
- rollback: "none" | "manual" | "supported";
2760
- inputSchema: Record<string, unknown>;
2761
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2762
- requiredCapabilities: string[];
2763
- resourceTypes: string[];
2764
- idempotency: "none" | "supported" | "required";
2765
- exposure: ("internal" | "mcp")[];
2766
- limitKeys: {
2767
- kind: "maximum_number" | "exact_boolean";
2768
- key: string;
2769
- }[];
2770
- invocation: {
2771
- path: string;
2772
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2773
- };
2774
- outputSchema?: Record<string, unknown> | undefined;
2775
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2776
- }[];
2777
- events: {
2778
- type: string;
2779
- description: string;
2780
- version: string;
2781
- resourceTypes: string[];
2782
- dataSchema: Record<string, unknown>;
2783
- }[];
2784
- externalMcp?: {
2785
- resource: string;
2786
- } | undefined;
2787
- internalTransport?: "mcp" | "http" | undefined;
2788
- features?: {
2789
- description: string;
2790
- key: string;
2791
- checkTool: string;
2792
- consumeTool?: string | undefined;
2793
- }[] | undefined;
2794
- }, {
2795
- schemaVersion: "1";
2796
- version: string;
2797
- appId: string;
2798
- audience: string;
2799
- internalBaseUrl: string;
2800
- accountResourceType: string;
2801
- tools: {
2802
- effect: "security" | "read" | "write" | "external" | "financial";
2803
- name: string;
2804
- description: string;
2805
- version: string;
2806
- rollback: "none" | "manual" | "supported";
2807
- inputSchema: Record<string, unknown>;
2808
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2809
- requiredCapabilities: string[];
2810
- resourceTypes: string[];
2811
- idempotency: "none" | "supported" | "required";
2812
- exposure: ("internal" | "mcp")[];
2813
- invocation: {
2814
- path: string;
2815
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2816
- };
2817
- outputSchema?: Record<string, unknown> | undefined;
2818
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2819
- limitKeys?: {
2820
- kind: "maximum_number" | "exact_boolean";
2821
- key: string;
2822
- }[] | undefined;
2823
- }[];
2824
- events: {
2825
- type: string;
2826
- description: string;
2827
- version: string;
2828
- resourceTypes: string[];
2829
- dataSchema: Record<string, unknown>;
2830
- }[];
2831
- externalMcp?: {
2832
- resource: string;
2833
- } | undefined;
2834
- internalTransport?: "mcp" | "http" | undefined;
2835
- features?: {
2836
- description: string;
2837
- key: string;
2838
- checkTool: string;
2839
- consumeTool?: string | undefined;
2840
- }[] | undefined;
2841
- }>;
865
+ resourceTypes: z.ZodArray<z.ZodString>;
866
+ }, z.core.$strict>>;
867
+ }, z.core.$strict>;
2842
868
  export declare const catalogRegistrationSchema: z.ZodObject<{
2843
- catalog: z.ZodEffects<z.ZodObject<{
869
+ catalog: z.ZodObject<{
2844
870
  schemaVersion: z.ZodLiteral<"1">;
2845
871
  appId: z.ZodString;
2846
872
  version: z.ZodString;
2847
873
  audience: z.ZodString;
2848
- /** HTTPS origin that serves the catalog's internal invocation paths. */
2849
- internalBaseUrl: z.ZodEffects<z.ZodString, string, string>;
2850
- /** Account-scoped resource used for native Alia bindings without app-specific code. */
874
+ internalBaseUrl: z.ZodString;
2851
875
  accountResourceType: z.ZodString;
2852
- /** Canonical protected-resource URI when this catalog is also exposed as an external MCP server. */
2853
876
  externalMcp: z.ZodOptional<z.ZodObject<{
2854
- resource: z.ZodEffects<z.ZodString, string, string>;
2855
- }, "strict", z.ZodTypeAny, {
2856
- resource: string;
2857
- }, {
2858
- resource: string;
877
+ resource: z.ZodString;
878
+ }, z.core.$strict>>;
879
+ internalTransport: z.ZodOptional<z.ZodEnum<{
880
+ mcp: "mcp";
881
+ http: "http";
2859
882
  }>>;
2860
- /**
2861
- * `mcp`: internal tools are served at `<internalBaseUrl>/_oxy/mcp`. Absent or
2862
- * `http`: each tool's `invocation` path on `internalBaseUrl`.
2863
- */
2864
- internalTransport: z.ZodOptional<z.ZodEnum<["http", "mcp"]>>;
2865
883
  features: z.ZodOptional<z.ZodArray<z.ZodObject<{
2866
884
  key: z.ZodString;
2867
885
  description: z.ZodString;
2868
886
  checkTool: z.ZodString;
2869
887
  consumeTool: z.ZodOptional<z.ZodString>;
2870
- }, "strict", z.ZodTypeAny, {
2871
- description: string;
2872
- key: string;
2873
- checkTool: string;
2874
- consumeTool?: string | undefined;
2875
- }, {
2876
- description: string;
2877
- key: string;
2878
- checkTool: string;
2879
- consumeTool?: string | undefined;
2880
- }>, "many">>;
2881
- tools: z.ZodArray<z.ZodEffects<z.ZodObject<{
888
+ }, z.core.$strict>>>;
889
+ tools: z.ZodArray<z.ZodObject<{
2882
890
  name: z.ZodString;
2883
891
  version: z.ZodString;
2884
892
  description: z.ZodString;
2885
893
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2886
894
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2887
- capabilityPackage: z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>;
2888
- requiredCapabilities: z.ZodArray<z.ZodString, "many">;
2889
- resourceTypes: z.ZodArray<z.ZodString, "many">;
2890
- effect: z.ZodEnum<["read", "write", "external", "financial", "security"]>;
2891
- idempotency: z.ZodEnum<["none", "supported", "required"]>;
2892
- rollback: z.ZodEnum<["none", "manual", "supported"]>;
2893
- exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
2894
- /**
2895
- * Executing actor types Oxy will issue a capability ticket for. Absent
2896
- * means {@link CATALOG_TOOL_DEFAULT_ACTORS}. A coordinator must not offer
2897
- * the tool to any other actor: Oxy refuses the authorization.
2898
- */
2899
- actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
895
+ capabilityPackage: z.ZodEnum<{
896
+ finance: "finance";
897
+ security: "security";
898
+ read: "read";
899
+ create: "create";
900
+ publish: "publish";
901
+ communicate: "communicate";
902
+ administer: "administer";
903
+ delegate: "delegate";
904
+ }>;
905
+ requiredCapabilities: z.ZodArray<z.ZodString>;
906
+ resourceTypes: z.ZodArray<z.ZodString>;
907
+ effect: z.ZodEnum<{
908
+ external: "external";
909
+ security: "security";
910
+ read: "read";
911
+ write: "write";
912
+ financial: "financial";
913
+ }>;
914
+ idempotency: z.ZodEnum<{
915
+ none: "none";
916
+ supported: "supported";
917
+ required: "required";
918
+ }>;
919
+ rollback: z.ZodEnum<{
920
+ none: "none";
921
+ manual: "manual";
922
+ supported: "supported";
923
+ }>;
924
+ exposure: z.ZodArray<z.ZodEnum<{
925
+ internal: "internal";
926
+ mcp: "mcp";
927
+ }>>;
928
+ actors: z.ZodOptional<z.ZodArray<z.ZodEnum<{
929
+ alia: "alia";
930
+ agent: "agent";
931
+ requester: "requester";
932
+ }>>>;
2900
933
  limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
2901
934
  key: z.ZodString;
2902
- kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
2903
- }, "strict", z.ZodTypeAny, {
2904
- kind: "maximum_number" | "exact_boolean";
2905
- key: string;
2906
- }, {
2907
- kind: "maximum_number" | "exact_boolean";
2908
- key: string;
2909
- }>, "many">>;
935
+ kind: z.ZodEnum<{
936
+ maximum_number: "maximum_number";
937
+ exact_boolean: "exact_boolean";
938
+ }>;
939
+ }, z.core.$strict>>>;
2910
940
  invocation: z.ZodObject<{
2911
- method: z.ZodEnum<["GET", "POST", "PATCH", "PUT", "DELETE"]>;
941
+ method: z.ZodEnum<{
942
+ GET: "GET";
943
+ POST: "POST";
944
+ PATCH: "PATCH";
945
+ PUT: "PUT";
946
+ DELETE: "DELETE";
947
+ }>;
2912
948
  path: z.ZodString;
2913
- }, "strict", z.ZodTypeAny, {
2914
- path: string;
2915
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2916
- }, {
2917
- path: string;
2918
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2919
- }>;
2920
- }, "strict", z.ZodTypeAny, {
2921
- effect: "security" | "read" | "write" | "external" | "financial";
2922
- name: string;
2923
- description: string;
2924
- version: string;
2925
- rollback: "none" | "manual" | "supported";
2926
- inputSchema: Record<string, unknown>;
2927
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2928
- requiredCapabilities: string[];
2929
- resourceTypes: string[];
2930
- idempotency: "none" | "supported" | "required";
2931
- exposure: ("internal" | "mcp")[];
2932
- limitKeys: {
2933
- kind: "maximum_number" | "exact_boolean";
2934
- key: string;
2935
- }[];
2936
- invocation: {
2937
- path: string;
2938
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2939
- };
2940
- outputSchema?: Record<string, unknown> | undefined;
2941
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2942
- }, {
2943
- effect: "security" | "read" | "write" | "external" | "financial";
2944
- name: string;
2945
- description: string;
2946
- version: string;
2947
- rollback: "none" | "manual" | "supported";
2948
- inputSchema: Record<string, unknown>;
2949
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2950
- requiredCapabilities: string[];
2951
- resourceTypes: string[];
2952
- idempotency: "none" | "supported" | "required";
2953
- exposure: ("internal" | "mcp")[];
2954
- invocation: {
2955
- path: string;
2956
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2957
- };
2958
- outputSchema?: Record<string, unknown> | undefined;
2959
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2960
- limitKeys?: {
2961
- kind: "maximum_number" | "exact_boolean";
2962
- key: string;
2963
- }[] | undefined;
2964
- }>, {
2965
- effect: "security" | "read" | "write" | "external" | "financial";
2966
- name: string;
2967
- description: string;
2968
- version: string;
2969
- rollback: "none" | "manual" | "supported";
2970
- inputSchema: Record<string, unknown>;
2971
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2972
- requiredCapabilities: string[];
2973
- resourceTypes: string[];
2974
- idempotency: "none" | "supported" | "required";
2975
- exposure: ("internal" | "mcp")[];
2976
- limitKeys: {
2977
- kind: "maximum_number" | "exact_boolean";
2978
- key: string;
2979
- }[];
2980
- invocation: {
2981
- path: string;
2982
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2983
- };
2984
- outputSchema?: Record<string, unknown> | undefined;
2985
- actors?: ("alia" | "agent" | "requester")[] | undefined;
2986
- }, {
2987
- effect: "security" | "read" | "write" | "external" | "financial";
2988
- name: string;
2989
- description: string;
2990
- version: string;
2991
- rollback: "none" | "manual" | "supported";
2992
- inputSchema: Record<string, unknown>;
2993
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
2994
- requiredCapabilities: string[];
2995
- resourceTypes: string[];
2996
- idempotency: "none" | "supported" | "required";
2997
- exposure: ("internal" | "mcp")[];
2998
- invocation: {
2999
- path: string;
3000
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3001
- };
3002
- outputSchema?: Record<string, unknown> | undefined;
3003
- actors?: ("alia" | "agent" | "requester")[] | undefined;
3004
- limitKeys?: {
3005
- kind: "maximum_number" | "exact_boolean";
3006
- key: string;
3007
- }[] | undefined;
3008
- }>, "many">;
949
+ }, z.core.$strict>;
950
+ }, z.core.$strict>>;
3009
951
  events: z.ZodArray<z.ZodObject<{
3010
952
  type: z.ZodString;
3011
953
  version: z.ZodString;
3012
954
  description: z.ZodString;
3013
955
  dataSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3014
- resourceTypes: z.ZodArray<z.ZodString, "many">;
3015
- }, "strict", z.ZodTypeAny, {
3016
- type: string;
3017
- description: string;
3018
- version: string;
3019
- resourceTypes: string[];
3020
- dataSchema: Record<string, unknown>;
3021
- }, {
3022
- type: string;
3023
- description: string;
3024
- version: string;
3025
- resourceTypes: string[];
3026
- dataSchema: Record<string, unknown>;
3027
- }>, "many">;
3028
- }, "strict", z.ZodTypeAny, {
3029
- schemaVersion: "1";
3030
- version: string;
3031
- appId: string;
3032
- audience: string;
3033
- internalBaseUrl: string;
3034
- accountResourceType: string;
3035
- tools: {
3036
- effect: "security" | "read" | "write" | "external" | "financial";
3037
- name: string;
3038
- description: string;
3039
- version: string;
3040
- rollback: "none" | "manual" | "supported";
3041
- inputSchema: Record<string, unknown>;
3042
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
3043
- requiredCapabilities: string[];
3044
- resourceTypes: string[];
3045
- idempotency: "none" | "supported" | "required";
3046
- exposure: ("internal" | "mcp")[];
3047
- limitKeys: {
3048
- kind: "maximum_number" | "exact_boolean";
3049
- key: string;
3050
- }[];
3051
- invocation: {
3052
- path: string;
3053
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3054
- };
3055
- outputSchema?: Record<string, unknown> | undefined;
3056
- actors?: ("alia" | "agent" | "requester")[] | undefined;
3057
- }[];
3058
- events: {
3059
- type: string;
3060
- description: string;
3061
- version: string;
3062
- resourceTypes: string[];
3063
- dataSchema: Record<string, unknown>;
3064
- }[];
3065
- externalMcp?: {
3066
- resource: string;
3067
- } | undefined;
3068
- internalTransport?: "mcp" | "http" | undefined;
3069
- features?: {
3070
- description: string;
3071
- key: string;
3072
- checkTool: string;
3073
- consumeTool?: string | undefined;
3074
- }[] | undefined;
3075
- }, {
3076
- schemaVersion: "1";
3077
- version: string;
3078
- appId: string;
3079
- audience: string;
3080
- internalBaseUrl: string;
3081
- accountResourceType: string;
3082
- tools: {
3083
- effect: "security" | "read" | "write" | "external" | "financial";
3084
- name: string;
3085
- description: string;
3086
- version: string;
3087
- rollback: "none" | "manual" | "supported";
3088
- inputSchema: Record<string, unknown>;
3089
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
3090
- requiredCapabilities: string[];
3091
- resourceTypes: string[];
3092
- idempotency: "none" | "supported" | "required";
3093
- exposure: ("internal" | "mcp")[];
3094
- invocation: {
3095
- path: string;
3096
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3097
- };
3098
- outputSchema?: Record<string, unknown> | undefined;
3099
- actors?: ("alia" | "agent" | "requester")[] | undefined;
3100
- limitKeys?: {
3101
- kind: "maximum_number" | "exact_boolean";
3102
- key: string;
3103
- }[] | undefined;
3104
- }[];
3105
- events: {
3106
- type: string;
3107
- description: string;
3108
- version: string;
3109
- resourceTypes: string[];
3110
- dataSchema: Record<string, unknown>;
3111
- }[];
3112
- externalMcp?: {
3113
- resource: string;
3114
- } | undefined;
3115
- internalTransport?: "mcp" | "http" | undefined;
3116
- features?: {
3117
- description: string;
3118
- key: string;
3119
- checkTool: string;
3120
- consumeTool?: string | undefined;
3121
- }[] | undefined;
3122
- }>, {
3123
- schemaVersion: "1";
3124
- version: string;
3125
- appId: string;
3126
- audience: string;
3127
- internalBaseUrl: string;
3128
- accountResourceType: string;
3129
- tools: {
3130
- effect: "security" | "read" | "write" | "external" | "financial";
3131
- name: string;
3132
- description: string;
3133
- version: string;
3134
- rollback: "none" | "manual" | "supported";
3135
- inputSchema: Record<string, unknown>;
3136
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
3137
- requiredCapabilities: string[];
3138
- resourceTypes: string[];
3139
- idempotency: "none" | "supported" | "required";
3140
- exposure: ("internal" | "mcp")[];
3141
- limitKeys: {
3142
- kind: "maximum_number" | "exact_boolean";
3143
- key: string;
3144
- }[];
3145
- invocation: {
3146
- path: string;
3147
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3148
- };
3149
- outputSchema?: Record<string, unknown> | undefined;
3150
- actors?: ("alia" | "agent" | "requester")[] | undefined;
3151
- }[];
3152
- events: {
3153
- type: string;
3154
- description: string;
3155
- version: string;
3156
- resourceTypes: string[];
3157
- dataSchema: Record<string, unknown>;
3158
- }[];
3159
- externalMcp?: {
3160
- resource: string;
3161
- } | undefined;
3162
- internalTransport?: "mcp" | "http" | undefined;
3163
- features?: {
3164
- description: string;
3165
- key: string;
3166
- checkTool: string;
3167
- consumeTool?: string | undefined;
3168
- }[] | undefined;
3169
- }, {
3170
- schemaVersion: "1";
3171
- version: string;
3172
- appId: string;
3173
- audience: string;
3174
- internalBaseUrl: string;
3175
- accountResourceType: string;
3176
- tools: {
3177
- effect: "security" | "read" | "write" | "external" | "financial";
3178
- name: string;
3179
- description: string;
3180
- version: string;
3181
- rollback: "none" | "manual" | "supported";
3182
- inputSchema: Record<string, unknown>;
3183
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
3184
- requiredCapabilities: string[];
3185
- resourceTypes: string[];
3186
- idempotency: "none" | "supported" | "required";
3187
- exposure: ("internal" | "mcp")[];
3188
- invocation: {
3189
- path: string;
3190
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3191
- };
3192
- outputSchema?: Record<string, unknown> | undefined;
3193
- actors?: ("alia" | "agent" | "requester")[] | undefined;
3194
- limitKeys?: {
3195
- kind: "maximum_number" | "exact_boolean";
3196
- key: string;
3197
- }[] | undefined;
3198
- }[];
3199
- events: {
3200
- type: string;
3201
- description: string;
3202
- version: string;
3203
- resourceTypes: string[];
3204
- dataSchema: Record<string, unknown>;
3205
- }[];
3206
- externalMcp?: {
3207
- resource: string;
3208
- } | undefined;
3209
- internalTransport?: "mcp" | "http" | undefined;
3210
- features?: {
3211
- description: string;
3212
- key: string;
3213
- checkTool: string;
3214
- consumeTool?: string | undefined;
3215
- }[] | undefined;
3216
- }>;
956
+ resourceTypes: z.ZodArray<z.ZodString>;
957
+ }, z.core.$strict>>;
958
+ }, z.core.$strict>;
3217
959
  digest: z.ZodString;
3218
960
  signature: z.ZodString;
3219
961
  deployedAt: z.ZodString;
3220
- }, "strict", z.ZodTypeAny, {
3221
- digest: string;
3222
- catalog: {
3223
- schemaVersion: "1";
3224
- version: string;
3225
- appId: string;
3226
- audience: string;
3227
- internalBaseUrl: string;
3228
- accountResourceType: string;
3229
- tools: {
3230
- effect: "security" | "read" | "write" | "external" | "financial";
3231
- name: string;
3232
- description: string;
3233
- version: string;
3234
- rollback: "none" | "manual" | "supported";
3235
- inputSchema: Record<string, unknown>;
3236
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
3237
- requiredCapabilities: string[];
3238
- resourceTypes: string[];
3239
- idempotency: "none" | "supported" | "required";
3240
- exposure: ("internal" | "mcp")[];
3241
- limitKeys: {
3242
- kind: "maximum_number" | "exact_boolean";
3243
- key: string;
3244
- }[];
3245
- invocation: {
3246
- path: string;
3247
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3248
- };
3249
- outputSchema?: Record<string, unknown> | undefined;
3250
- actors?: ("alia" | "agent" | "requester")[] | undefined;
3251
- }[];
3252
- events: {
3253
- type: string;
3254
- description: string;
3255
- version: string;
3256
- resourceTypes: string[];
3257
- dataSchema: Record<string, unknown>;
3258
- }[];
3259
- externalMcp?: {
3260
- resource: string;
3261
- } | undefined;
3262
- internalTransport?: "mcp" | "http" | undefined;
3263
- features?: {
3264
- description: string;
3265
- key: string;
3266
- checkTool: string;
3267
- consumeTool?: string | undefined;
3268
- }[] | undefined;
3269
- };
3270
- signature: string;
3271
- deployedAt: string;
3272
- }, {
3273
- digest: string;
3274
- catalog: {
3275
- schemaVersion: "1";
3276
- version: string;
3277
- appId: string;
3278
- audience: string;
3279
- internalBaseUrl: string;
3280
- accountResourceType: string;
3281
- tools: {
3282
- effect: "security" | "read" | "write" | "external" | "financial";
3283
- name: string;
3284
- description: string;
3285
- version: string;
3286
- rollback: "none" | "manual" | "supported";
3287
- inputSchema: Record<string, unknown>;
3288
- capabilityPackage: "finance" | "security" | "create" | "read" | "publish" | "communicate" | "administer" | "delegate";
3289
- requiredCapabilities: string[];
3290
- resourceTypes: string[];
3291
- idempotency: "none" | "supported" | "required";
3292
- exposure: ("internal" | "mcp")[];
3293
- invocation: {
3294
- path: string;
3295
- method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3296
- };
3297
- outputSchema?: Record<string, unknown> | undefined;
3298
- actors?: ("alia" | "agent" | "requester")[] | undefined;
3299
- limitKeys?: {
3300
- kind: "maximum_number" | "exact_boolean";
3301
- key: string;
3302
- }[] | undefined;
3303
- }[];
3304
- events: {
3305
- type: string;
3306
- description: string;
3307
- version: string;
3308
- resourceTypes: string[];
3309
- dataSchema: Record<string, unknown>;
3310
- }[];
3311
- externalMcp?: {
3312
- resource: string;
3313
- } | undefined;
3314
- internalTransport?: "mcp" | "http" | undefined;
3315
- features?: {
3316
- description: string;
3317
- key: string;
3318
- checkTool: string;
3319
- consumeTool?: string | undefined;
3320
- }[] | undefined;
3321
- };
3322
- signature: string;
3323
- deployedAt: string;
3324
- }>;
962
+ }, z.core.$strict>;
3325
963
  export declare const normalizedAppEventSchema: z.ZodObject<{
3326
964
  eventId: z.ZodString;
3327
965
  appId: z.ZodString;
@@ -3331,47 +969,11 @@ export declare const normalizedAppEventSchema: z.ZodObject<{
3331
969
  effectiveAccountId: z.ZodString;
3332
970
  resourceType: z.ZodString;
3333
971
  resourceId: z.ZodString;
3334
- }, "strict", z.ZodTypeAny, {
3335
- effectiveAccountId: string;
3336
- appId: string;
3337
- resourceType: string;
3338
- resourceId: string;
3339
- }, {
3340
- effectiveAccountId: string;
3341
- appId: string;
3342
- resourceType: string;
3343
- resourceId: string;
3344
- }>;
972
+ }, z.core.$strict>;
3345
973
  type: z.ZodString;
3346
974
  occurredAt: z.ZodString;
3347
975
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3348
- }, "strict", z.ZodTypeAny, {
3349
- type: string;
3350
- accountId: string;
3351
- appId: string;
3352
- resource: {
3353
- effectiveAccountId: string;
3354
- appId: string;
3355
- resourceType: string;
3356
- resourceId: string;
3357
- };
3358
- eventId: string;
3359
- occurredAt: string;
3360
- data: Record<string, unknown>;
3361
- }, {
3362
- type: string;
3363
- accountId: string;
3364
- appId: string;
3365
- resource: {
3366
- effectiveAccountId: string;
3367
- appId: string;
3368
- resourceType: string;
3369
- resourceId: string;
3370
- };
3371
- eventId: string;
3372
- occurredAt: string;
3373
- data: Record<string, unknown>;
3374
- }>;
976
+ }, z.core.$strict>;
3375
977
  export type AutonomyLevel = z.infer<typeof autonomyLevelSchema>;
3376
978
  export type CapabilityPackage = z.infer<typeof capabilityPackageSchema>;
3377
979
  export type ExecutionActorRef = z.infer<typeof executionActorRefSchema>;
@@ -3410,3 +1012,5 @@ export type ApplicationAgent = z.infer<typeof applicationAgentSchema>;
3410
1012
  export type AgentAvailability = z.infer<typeof agentAvailabilitySchema>;
3411
1013
  export type CatalogRegistration = z.infer<typeof catalogRegistrationSchema>;
3412
1014
  export type NormalizedAppEvent = z.infer<typeof normalizedAppEventSchema>;
1015
+ export type FirstPartyExecutionAuthorizationInput = z.infer<typeof firstPartyExecutionAuthorizationInputSchema>;
1016
+ export type FirstPartyTaskInput = z.infer<typeof firstPartyTaskInputSchema>;