@oxy.so/contracts 1.0.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 (147) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +16 -0
  3. package/dist/cjs/.tsbuildinfo +1 -0
  4. package/dist/cjs/accountGraph.js +489 -0
  5. package/dist/cjs/agency.js +439 -0
  6. package/dist/cjs/browserHub.js +215 -0
  7. package/dist/cjs/civic.js +163 -0
  8. package/dist/cjs/commonsSignIn.js +59 -0
  9. package/dist/cjs/deviceBoot.js +50 -0
  10. package/dist/cjs/deviceDirectory.js +189 -0
  11. package/dist/cjs/devicePairing.js +138 -0
  12. package/dist/cjs/deviceSession.js +164 -0
  13. package/dist/cjs/emailAgentContext.js +32 -0
  14. package/dist/cjs/followGraph.js +28 -0
  15. package/dist/cjs/identity.js +258 -0
  16. package/dist/cjs/inboxPush.js +24 -0
  17. package/dist/cjs/index.js +618 -0
  18. package/dist/cjs/inference/accountBilling.js +334 -0
  19. package/dist/cjs/inference/aliaModelRelease.js +262 -0
  20. package/dist/cjs/inference/attribution.js +106 -0
  21. package/dist/cjs/inference/catalogue.js +487 -0
  22. package/dist/cjs/inference/entitlement.js +217 -0
  23. package/dist/cjs/inference/errors.js +309 -0
  24. package/dist/cjs/inference/identifiers.js +224 -0
  25. package/dist/cjs/inference/inbox.js +105 -0
  26. package/dist/cjs/inference/modelDocumentation.js +433 -0
  27. package/dist/cjs/inference/money.js +188 -0
  28. package/dist/cjs/inference/priceVersion.js +110 -0
  29. package/dist/cjs/inference/providerConnection.js +455 -0
  30. package/dist/cjs/inference/request.js +477 -0
  31. package/dist/cjs/inference/routingPolicy.js +318 -0
  32. package/dist/cjs/inference/streamEvents.js +258 -0
  33. package/dist/cjs/inference/usage.js +329 -0
  34. package/dist/cjs/inference/version.js +105 -0
  35. package/dist/cjs/keyRecovery.js +91 -0
  36. package/dist/cjs/keyRotation.js +75 -0
  37. package/dist/cjs/links.js +68 -0
  38. package/dist/cjs/moderationReputation.js +298 -0
  39. package/dist/cjs/oauth.js +66 -0
  40. package/dist/cjs/oxyRecordTypes.js +71 -0
  41. package/dist/cjs/protocol.js +53 -0
  42. package/dist/cjs/recommendations.js +168 -0
  43. package/dist/cjs/reputation.js +297 -0
  44. package/dist/cjs/sessionStatus.js +121 -0
  45. package/dist/cjs/transparency.js +89 -0
  46. package/dist/cjs/updates.js +252 -0
  47. package/dist/cjs/userInvalidation.js +89 -0
  48. package/dist/cjs/userResponse.js +245 -0
  49. package/dist/cjs/username.js +290 -0
  50. package/dist/cjs/webauthn.js +71 -0
  51. package/dist/esm/.tsbuildinfo +1 -0
  52. package/dist/esm/accountGraph.js +480 -0
  53. package/dist/esm/agency.js +436 -0
  54. package/dist/esm/browserHub.js +212 -0
  55. package/dist/esm/civic.js +160 -0
  56. package/dist/esm/commonsSignIn.js +56 -0
  57. package/dist/esm/deviceBoot.js +47 -0
  58. package/dist/esm/deviceDirectory.js +186 -0
  59. package/dist/esm/devicePairing.js +135 -0
  60. package/dist/esm/deviceSession.js +161 -0
  61. package/dist/esm/emailAgentContext.js +29 -0
  62. package/dist/esm/followGraph.js +27 -0
  63. package/dist/esm/identity.js +255 -0
  64. package/dist/esm/inboxPush.js +21 -0
  65. package/dist/esm/index.js +172 -0
  66. package/dist/esm/inference/accountBilling.js +331 -0
  67. package/dist/esm/inference/aliaModelRelease.js +259 -0
  68. package/dist/esm/inference/attribution.js +103 -0
  69. package/dist/esm/inference/catalogue.js +484 -0
  70. package/dist/esm/inference/entitlement.js +214 -0
  71. package/dist/esm/inference/errors.js +306 -0
  72. package/dist/esm/inference/identifiers.js +221 -0
  73. package/dist/esm/inference/inbox.js +102 -0
  74. package/dist/esm/inference/modelDocumentation.js +430 -0
  75. package/dist/esm/inference/money.js +185 -0
  76. package/dist/esm/inference/priceVersion.js +107 -0
  77. package/dist/esm/inference/providerConnection.js +452 -0
  78. package/dist/esm/inference/request.js +474 -0
  79. package/dist/esm/inference/routingPolicy.js +315 -0
  80. package/dist/esm/inference/streamEvents.js +255 -0
  81. package/dist/esm/inference/usage.js +326 -0
  82. package/dist/esm/inference/version.js +102 -0
  83. package/dist/esm/keyRecovery.js +88 -0
  84. package/dist/esm/keyRotation.js +72 -0
  85. package/dist/esm/links.js +65 -0
  86. package/dist/esm/moderationReputation.js +295 -0
  87. package/dist/esm/oauth.js +63 -0
  88. package/dist/esm/oxyRecordTypes.js +68 -0
  89. package/dist/esm/protocol.js +50 -0
  90. package/dist/esm/recommendations.js +165 -0
  91. package/dist/esm/reputation.js +293 -0
  92. package/dist/esm/sessionStatus.js +118 -0
  93. package/dist/esm/transparency.js +86 -0
  94. package/dist/esm/updates.js +249 -0
  95. package/dist/esm/userInvalidation.js +85 -0
  96. package/dist/esm/userResponse.js +240 -0
  97. package/dist/esm/username.js +283 -0
  98. package/dist/esm/webauthn.js +68 -0
  99. package/dist/types/.tsbuildinfo +1 -0
  100. package/dist/types/accountGraph.d.ts +378 -0
  101. package/dist/types/agency.d.ts +2162 -0
  102. package/dist/types/browserHub.d.ts +856 -0
  103. package/dist/types/civic.d.ts +338 -0
  104. package/dist/types/commonsSignIn.d.ts +58 -0
  105. package/dist/types/deviceBoot.d.ts +74 -0
  106. package/dist/types/deviceDirectory.d.ts +1317 -0
  107. package/dist/types/devicePairing.d.ts +130 -0
  108. package/dist/types/deviceSession.d.ts +411 -0
  109. package/dist/types/emailAgentContext.d.ts +248 -0
  110. package/dist/types/followGraph.d.ts +150 -0
  111. package/dist/types/identity.d.ts +402 -0
  112. package/dist/types/inboxPush.d.ts +30 -0
  113. package/dist/types/index.d.ts +100 -0
  114. package/dist/types/inference/accountBilling.d.ts +738 -0
  115. package/dist/types/inference/aliaModelRelease.d.ts +609 -0
  116. package/dist/types/inference/attribution.d.ts +176 -0
  117. package/dist/types/inference/catalogue.d.ts +1618 -0
  118. package/dist/types/inference/entitlement.d.ts +519 -0
  119. package/dist/types/inference/errors.d.ts +242 -0
  120. package/dist/types/inference/identifiers.d.ts +182 -0
  121. package/dist/types/inference/inbox.d.ts +374 -0
  122. package/dist/types/inference/modelDocumentation.d.ts +1603 -0
  123. package/dist/types/inference/money.d.ts +185 -0
  124. package/dist/types/inference/priceVersion.d.ts +182 -0
  125. package/dist/types/inference/providerConnection.d.ts +968 -0
  126. package/dist/types/inference/request.d.ts +2800 -0
  127. package/dist/types/inference/routingPolicy.d.ts +616 -0
  128. package/dist/types/inference/streamEvents.d.ts +950 -0
  129. package/dist/types/inference/usage.d.ts +1164 -0
  130. package/dist/types/inference/version.d.ts +102 -0
  131. package/dist/types/keyRecovery.d.ts +138 -0
  132. package/dist/types/keyRotation.d.ts +103 -0
  133. package/dist/types/links.d.ts +96 -0
  134. package/dist/types/moderationReputation.d.ts +487 -0
  135. package/dist/types/oauth.d.ts +86 -0
  136. package/dist/types/oxyRecordTypes.d.ts +62 -0
  137. package/dist/types/protocol.d.ts +86 -0
  138. package/dist/types/recommendations.d.ts +542 -0
  139. package/dist/types/reputation.d.ts +457 -0
  140. package/dist/types/sessionStatus.d.ts +231 -0
  141. package/dist/types/transparency.d.ts +392 -0
  142. package/dist/types/updates.d.ts +545 -0
  143. package/dist/types/userInvalidation.d.ts +94 -0
  144. package/dist/types/userResponse.d.ts +1706 -0
  145. package/dist/types/username.d.ts +265 -0
  146. package/dist/types/webauthn.d.ts +77 -0
  147. package/package.json +87 -0
@@ -0,0 +1,2162 @@
1
+ import { z } from 'zod';
2
+ /** Autonomy is ordered from least to most permissive. */
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"]>;
5
+ 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<{
8
+ type: z.ZodLiteral<"alia">;
9
+ ownerAccountId: z.ZodString;
10
+ }, "strict", z.ZodTypeAny, {
11
+ type: "alia";
12
+ ownerAccountId: string;
13
+ }, {
14
+ type: "alia";
15
+ ownerAccountId: string;
16
+ }>, z.ZodObject<{
17
+ type: z.ZodLiteral<"agent">;
18
+ accountId: z.ZodString;
19
+ }, "strict", z.ZodTypeAny, {
20
+ type: "agent";
21
+ accountId: string;
22
+ }, {
23
+ type: "agent";
24
+ accountId: string;
25
+ }>]>;
26
+ export declare const resourceRefSchema: z.ZodObject<{
27
+ appId: z.ZodString;
28
+ effectiveAccountId: z.ZodString;
29
+ resourceType: z.ZodString;
30
+ resourceId: z.ZodString;
31
+ }, "strict", z.ZodTypeAny, {
32
+ appId: string;
33
+ effectiveAccountId: string;
34
+ resourceType: string;
35
+ resourceId: string;
36
+ }, {
37
+ appId: string;
38
+ effectiveAccountId: string;
39
+ resourceType: string;
40
+ resourceId: string;
41
+ }>;
42
+ export declare const toolGrantOverrideSchema: z.ZodObject<{
43
+ tool: z.ZodString;
44
+ decision: z.ZodEnum<["allow", "deny"]>;
45
+ }, "strict", z.ZodTypeAny, {
46
+ tool: string;
47
+ decision: "allow" | "deny";
48
+ }, {
49
+ tool: string;
50
+ decision: "allow" | "deny";
51
+ }>;
52
+ export declare const grantLimitSchema: z.ZodObject<{
53
+ tool: z.ZodString;
54
+ key: z.ZodString;
55
+ value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
56
+ }, "strict", z.ZodTypeAny, {
57
+ value: number | boolean;
58
+ tool: string;
59
+ key: string;
60
+ }, {
61
+ value: number | boolean;
62
+ tool: string;
63
+ key: string;
64
+ }>;
65
+ export declare const executionAuthorizationRefSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
66
+ kind: z.ZodLiteral<"direct_request">;
67
+ id: z.ZodString;
68
+ }, "strict", z.ZodTypeAny, {
69
+ kind: "direct_request";
70
+ id: string;
71
+ }, {
72
+ kind: "direct_request";
73
+ id: string;
74
+ }>, z.ZodObject<{
75
+ kind: z.ZodLiteral<"automation">;
76
+ id: z.ZodString;
77
+ automationId: z.ZodString;
78
+ }, "strict", z.ZodTypeAny, {
79
+ kind: "automation";
80
+ id: string;
81
+ automationId: string;
82
+ }, {
83
+ kind: "automation";
84
+ id: string;
85
+ automationId: string;
86
+ }>]>;
87
+ export declare const capabilityCoordinatorSchema: z.ZodObject<{
88
+ applicationId: z.ZodString;
89
+ credentialId: z.ZodString;
90
+ }, "strict", z.ZodTypeAny, {
91
+ applicationId: string;
92
+ credentialId: string;
93
+ }, {
94
+ applicationId: string;
95
+ credentialId: string;
96
+ }>;
97
+ export declare const delegationGrantSchema: z.ZodObject<{
98
+ id: z.ZodString;
99
+ ownerAccountId: z.ZodString;
100
+ actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
101
+ type: z.ZodLiteral<"alia">;
102
+ ownerAccountId: z.ZodString;
103
+ }, "strict", z.ZodTypeAny, {
104
+ type: "alia";
105
+ ownerAccountId: string;
106
+ }, {
107
+ type: "alia";
108
+ ownerAccountId: string;
109
+ }>, z.ZodObject<{
110
+ type: z.ZodLiteral<"agent">;
111
+ accountId: z.ZodString;
112
+ }, "strict", z.ZodTypeAny, {
113
+ type: "agent";
114
+ accountId: string;
115
+ }, {
116
+ type: "agent";
117
+ accountId: string;
118
+ }>]>;
119
+ resource: z.ZodObject<{
120
+ appId: z.ZodString;
121
+ effectiveAccountId: z.ZodString;
122
+ resourceType: z.ZodString;
123
+ resourceId: z.ZodString;
124
+ }, "strict", z.ZodTypeAny, {
125
+ appId: string;
126
+ effectiveAccountId: string;
127
+ resourceType: string;
128
+ resourceId: string;
129
+ }, {
130
+ appId: string;
131
+ effectiveAccountId: string;
132
+ resourceType: string;
133
+ resourceId: string;
134
+ }>;
135
+ capabilityPackages: z.ZodArray<z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>, "many">;
136
+ capabilities: z.ZodArray<z.ZodString, "many">;
137
+ toolOverrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
138
+ tool: z.ZodString;
139
+ decision: z.ZodEnum<["allow", "deny"]>;
140
+ }, "strict", z.ZodTypeAny, {
141
+ tool: string;
142
+ decision: "allow" | "deny";
143
+ }, {
144
+ tool: string;
145
+ decision: "allow" | "deny";
146
+ }>, "many">>;
147
+ limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
148
+ tool: z.ZodString;
149
+ key: z.ZodString;
150
+ value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
151
+ }, "strict", z.ZodTypeAny, {
152
+ value: number | boolean;
153
+ tool: string;
154
+ key: string;
155
+ }, {
156
+ value: number | boolean;
157
+ tool: string;
158
+ key: string;
159
+ }>, "many">>;
160
+ maximumAutonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
161
+ canRedelegate: z.ZodDefault<z.ZodBoolean>;
162
+ expiresAt: z.ZodNullable<z.ZodString>;
163
+ revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
164
+ createdAt: z.ZodString;
165
+ updatedAt: z.ZodString;
166
+ }, "strict", z.ZodTypeAny, {
167
+ ownerAccountId: string;
168
+ id: string;
169
+ actor: {
170
+ type: "alia";
171
+ ownerAccountId: string;
172
+ } | {
173
+ type: "agent";
174
+ accountId: string;
175
+ };
176
+ resource: {
177
+ appId: string;
178
+ effectiveAccountId: string;
179
+ resourceType: string;
180
+ resourceId: string;
181
+ };
182
+ capabilityPackages: ("finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate")[];
183
+ capabilities: string[];
184
+ toolOverrides: {
185
+ tool: string;
186
+ decision: "allow" | "deny";
187
+ }[];
188
+ limits: {
189
+ value: number | boolean;
190
+ tool: string;
191
+ key: string;
192
+ }[];
193
+ maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
194
+ canRedelegate: boolean;
195
+ expiresAt: string | null;
196
+ revokedAt: string | null;
197
+ createdAt: string;
198
+ updatedAt: string;
199
+ }, {
200
+ ownerAccountId: string;
201
+ id: string;
202
+ actor: {
203
+ type: "alia";
204
+ ownerAccountId: string;
205
+ } | {
206
+ type: "agent";
207
+ accountId: string;
208
+ };
209
+ resource: {
210
+ appId: string;
211
+ effectiveAccountId: string;
212
+ resourceType: string;
213
+ resourceId: string;
214
+ };
215
+ capabilityPackages: ("finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate")[];
216
+ capabilities: string[];
217
+ maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
218
+ expiresAt: string | null;
219
+ createdAt: string;
220
+ updatedAt: string;
221
+ toolOverrides?: {
222
+ tool: string;
223
+ decision: "allow" | "deny";
224
+ }[] | undefined;
225
+ limits?: {
226
+ value: number | boolean;
227
+ tool: string;
228
+ key: string;
229
+ }[] | undefined;
230
+ canRedelegate?: boolean | undefined;
231
+ revokedAt?: string | null | undefined;
232
+ }>;
233
+ export declare const automationTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
234
+ type: z.ZodLiteral<"manual">;
235
+ }, "strict", z.ZodTypeAny, {
236
+ type: "manual";
237
+ }, {
238
+ type: "manual";
239
+ }>, z.ZodObject<{
240
+ type: z.ZodLiteral<"event">;
241
+ appId: z.ZodString;
242
+ eventType: z.ZodString;
243
+ resource: z.ZodOptional<z.ZodObject<{
244
+ appId: z.ZodString;
245
+ effectiveAccountId: z.ZodString;
246
+ resourceType: z.ZodString;
247
+ resourceId: z.ZodString;
248
+ }, "strict", z.ZodTypeAny, {
249
+ appId: string;
250
+ effectiveAccountId: string;
251
+ resourceType: string;
252
+ resourceId: string;
253
+ }, {
254
+ appId: string;
255
+ effectiveAccountId: string;
256
+ resourceType: string;
257
+ resourceId: string;
258
+ }>>;
259
+ }, "strict", z.ZodTypeAny, {
260
+ type: "event";
261
+ appId: string;
262
+ eventType: string;
263
+ resource?: {
264
+ appId: string;
265
+ effectiveAccountId: string;
266
+ resourceType: string;
267
+ resourceId: string;
268
+ } | undefined;
269
+ }, {
270
+ type: "event";
271
+ appId: string;
272
+ eventType: string;
273
+ resource?: {
274
+ appId: string;
275
+ effectiveAccountId: string;
276
+ resourceType: string;
277
+ resourceId: string;
278
+ } | undefined;
279
+ }>, z.ZodObject<{
280
+ type: z.ZodLiteral<"schedule">;
281
+ cron: z.ZodString;
282
+ timezone: z.ZodString;
283
+ }, "strict", z.ZodTypeAny, {
284
+ type: "schedule";
285
+ cron: string;
286
+ timezone: string;
287
+ }, {
288
+ type: "schedule";
289
+ cron: string;
290
+ timezone: string;
291
+ }>]>;
292
+ export declare const automationActorSelectionSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
293
+ mode: z.ZodLiteral<"fixed">;
294
+ actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
295
+ type: z.ZodLiteral<"alia">;
296
+ ownerAccountId: z.ZodString;
297
+ }, "strict", z.ZodTypeAny, {
298
+ type: "alia";
299
+ ownerAccountId: string;
300
+ }, {
301
+ type: "alia";
302
+ ownerAccountId: string;
303
+ }>, z.ZodObject<{
304
+ type: z.ZodLiteral<"agent">;
305
+ accountId: z.ZodString;
306
+ }, "strict", z.ZodTypeAny, {
307
+ type: "agent";
308
+ accountId: string;
309
+ }, {
310
+ type: "agent";
311
+ accountId: string;
312
+ }>]>;
313
+ }, "strict", z.ZodTypeAny, {
314
+ actor: {
315
+ type: "alia";
316
+ ownerAccountId: string;
317
+ } | {
318
+ type: "agent";
319
+ accountId: string;
320
+ };
321
+ mode: "fixed";
322
+ }, {
323
+ actor: {
324
+ type: "alia";
325
+ ownerAccountId: string;
326
+ } | {
327
+ type: "agent";
328
+ accountId: string;
329
+ };
330
+ mode: "fixed";
331
+ }>, z.ZodObject<{
332
+ mode: z.ZodLiteral<"automatic">;
333
+ }, "strict", z.ZodTypeAny, {
334
+ mode: "automatic";
335
+ }, {
336
+ mode: "automatic";
337
+ }>]>;
338
+ export declare const automationDataFlowSchema: z.ZodObject<{
339
+ sources: z.ZodArray<z.ZodObject<{
340
+ appId: z.ZodString;
341
+ effectiveAccountId: z.ZodString;
342
+ resourceType: z.ZodString;
343
+ resourceId: z.ZodString;
344
+ }, "strict", z.ZodTypeAny, {
345
+ appId: string;
346
+ effectiveAccountId: string;
347
+ resourceType: string;
348
+ resourceId: string;
349
+ }, {
350
+ appId: string;
351
+ effectiveAccountId: string;
352
+ resourceType: string;
353
+ resourceId: string;
354
+ }>, "many">;
355
+ destinations: z.ZodArray<z.ZodObject<{
356
+ appId: z.ZodString;
357
+ effectiveAccountId: z.ZodString;
358
+ resourceType: z.ZodString;
359
+ resourceId: z.ZodString;
360
+ }, "strict", z.ZodTypeAny, {
361
+ appId: string;
362
+ effectiveAccountId: string;
363
+ resourceType: string;
364
+ resourceId: string;
365
+ }, {
366
+ appId: string;
367
+ effectiveAccountId: string;
368
+ resourceType: string;
369
+ resourceId: string;
370
+ }>, "many">;
371
+ }, "strict", z.ZodTypeAny, {
372
+ sources: {
373
+ appId: string;
374
+ effectiveAccountId: string;
375
+ resourceType: string;
376
+ resourceId: string;
377
+ }[];
378
+ destinations: {
379
+ appId: string;
380
+ effectiveAccountId: string;
381
+ resourceType: string;
382
+ resourceId: string;
383
+ }[];
384
+ }, {
385
+ sources: {
386
+ appId: string;
387
+ effectiveAccountId: string;
388
+ resourceType: string;
389
+ resourceId: string;
390
+ }[];
391
+ destinations: {
392
+ appId: string;
393
+ effectiveAccountId: string;
394
+ resourceType: string;
395
+ resourceId: string;
396
+ }[];
397
+ }>;
398
+ export declare const automationDefinitionSchema: z.ZodObject<{
399
+ id: z.ZodString;
400
+ ownerAccountId: z.ZodString;
401
+ objective: z.ZodString;
402
+ trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
403
+ type: z.ZodLiteral<"manual">;
404
+ }, "strict", z.ZodTypeAny, {
405
+ type: "manual";
406
+ }, {
407
+ type: "manual";
408
+ }>, z.ZodObject<{
409
+ type: z.ZodLiteral<"event">;
410
+ appId: z.ZodString;
411
+ eventType: z.ZodString;
412
+ resource: z.ZodOptional<z.ZodObject<{
413
+ appId: z.ZodString;
414
+ effectiveAccountId: z.ZodString;
415
+ resourceType: z.ZodString;
416
+ resourceId: z.ZodString;
417
+ }, "strict", z.ZodTypeAny, {
418
+ appId: string;
419
+ effectiveAccountId: string;
420
+ resourceType: string;
421
+ resourceId: string;
422
+ }, {
423
+ appId: string;
424
+ effectiveAccountId: string;
425
+ resourceType: string;
426
+ resourceId: string;
427
+ }>>;
428
+ }, "strict", z.ZodTypeAny, {
429
+ type: "event";
430
+ appId: string;
431
+ eventType: string;
432
+ resource?: {
433
+ appId: string;
434
+ effectiveAccountId: string;
435
+ resourceType: string;
436
+ resourceId: string;
437
+ } | undefined;
438
+ }, {
439
+ type: "event";
440
+ appId: string;
441
+ eventType: string;
442
+ resource?: {
443
+ appId: string;
444
+ effectiveAccountId: string;
445
+ resourceType: string;
446
+ resourceId: string;
447
+ } | undefined;
448
+ }>, z.ZodObject<{
449
+ type: z.ZodLiteral<"schedule">;
450
+ cron: z.ZodString;
451
+ timezone: z.ZodString;
452
+ }, "strict", z.ZodTypeAny, {
453
+ type: "schedule";
454
+ cron: string;
455
+ timezone: string;
456
+ }, {
457
+ type: "schedule";
458
+ cron: string;
459
+ timezone: string;
460
+ }>]>;
461
+ actorSelection: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
462
+ mode: z.ZodLiteral<"fixed">;
463
+ actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
464
+ type: z.ZodLiteral<"alia">;
465
+ ownerAccountId: z.ZodString;
466
+ }, "strict", z.ZodTypeAny, {
467
+ type: "alia";
468
+ ownerAccountId: string;
469
+ }, {
470
+ type: "alia";
471
+ ownerAccountId: string;
472
+ }>, z.ZodObject<{
473
+ type: z.ZodLiteral<"agent">;
474
+ accountId: z.ZodString;
475
+ }, "strict", z.ZodTypeAny, {
476
+ type: "agent";
477
+ accountId: string;
478
+ }, {
479
+ type: "agent";
480
+ accountId: string;
481
+ }>]>;
482
+ }, "strict", z.ZodTypeAny, {
483
+ actor: {
484
+ type: "alia";
485
+ ownerAccountId: string;
486
+ } | {
487
+ type: "agent";
488
+ accountId: string;
489
+ };
490
+ mode: "fixed";
491
+ }, {
492
+ actor: {
493
+ type: "alia";
494
+ ownerAccountId: string;
495
+ } | {
496
+ type: "agent";
497
+ accountId: string;
498
+ };
499
+ mode: "fixed";
500
+ }>, z.ZodObject<{
501
+ mode: z.ZodLiteral<"automatic">;
502
+ }, "strict", z.ZodTypeAny, {
503
+ mode: "automatic";
504
+ }, {
505
+ mode: "automatic";
506
+ }>]>;
507
+ inputs: z.ZodRecord<z.ZodString, z.ZodUnknown>;
508
+ resources: z.ZodArray<z.ZodObject<{
509
+ appId: z.ZodString;
510
+ effectiveAccountId: z.ZodString;
511
+ resourceType: z.ZodString;
512
+ resourceId: z.ZodString;
513
+ }, "strict", z.ZodTypeAny, {
514
+ appId: string;
515
+ effectiveAccountId: string;
516
+ resourceType: string;
517
+ resourceId: string;
518
+ }, {
519
+ appId: string;
520
+ effectiveAccountId: string;
521
+ resourceType: string;
522
+ resourceId: string;
523
+ }>, "many">;
524
+ dataFlow: z.ZodObject<{
525
+ sources: z.ZodArray<z.ZodObject<{
526
+ appId: z.ZodString;
527
+ effectiveAccountId: z.ZodString;
528
+ resourceType: z.ZodString;
529
+ resourceId: z.ZodString;
530
+ }, "strict", z.ZodTypeAny, {
531
+ appId: string;
532
+ effectiveAccountId: string;
533
+ resourceType: string;
534
+ resourceId: string;
535
+ }, {
536
+ appId: string;
537
+ effectiveAccountId: string;
538
+ resourceType: string;
539
+ resourceId: string;
540
+ }>, "many">;
541
+ destinations: z.ZodArray<z.ZodObject<{
542
+ appId: z.ZodString;
543
+ effectiveAccountId: z.ZodString;
544
+ resourceType: z.ZodString;
545
+ resourceId: z.ZodString;
546
+ }, "strict", z.ZodTypeAny, {
547
+ appId: string;
548
+ effectiveAccountId: string;
549
+ resourceType: string;
550
+ resourceId: string;
551
+ }, {
552
+ appId: string;
553
+ effectiveAccountId: string;
554
+ resourceType: string;
555
+ resourceId: string;
556
+ }>, "many">;
557
+ }, "strict", z.ZodTypeAny, {
558
+ sources: {
559
+ appId: string;
560
+ effectiveAccountId: string;
561
+ resourceType: string;
562
+ resourceId: string;
563
+ }[];
564
+ destinations: {
565
+ appId: string;
566
+ effectiveAccountId: string;
567
+ resourceType: string;
568
+ resourceId: string;
569
+ }[];
570
+ }, {
571
+ sources: {
572
+ appId: string;
573
+ effectiveAccountId: string;
574
+ resourceType: string;
575
+ resourceId: string;
576
+ }[];
577
+ destinations: {
578
+ appId: string;
579
+ effectiveAccountId: string;
580
+ resourceType: string;
581
+ resourceId: string;
582
+ }[];
583
+ }>;
584
+ maximumAutonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
585
+ limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
586
+ tool: z.ZodString;
587
+ key: z.ZodString;
588
+ value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
589
+ }, "strict", z.ZodTypeAny, {
590
+ value: number | boolean;
591
+ tool: string;
592
+ key: string;
593
+ }, {
594
+ value: number | boolean;
595
+ tool: string;
596
+ key: string;
597
+ }>, "many">>;
598
+ enabled: z.ZodBoolean;
599
+ createdAt: z.ZodString;
600
+ updatedAt: z.ZodString;
601
+ }, "strict", z.ZodTypeAny, {
602
+ ownerAccountId: string;
603
+ id: string;
604
+ limits: {
605
+ value: number | boolean;
606
+ tool: string;
607
+ key: string;
608
+ }[];
609
+ maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
610
+ createdAt: string;
611
+ updatedAt: string;
612
+ objective: string;
613
+ trigger: {
614
+ type: "manual";
615
+ } | {
616
+ type: "event";
617
+ appId: string;
618
+ eventType: string;
619
+ resource?: {
620
+ appId: string;
621
+ effectiveAccountId: string;
622
+ resourceType: string;
623
+ resourceId: string;
624
+ } | undefined;
625
+ } | {
626
+ type: "schedule";
627
+ cron: string;
628
+ timezone: string;
629
+ };
630
+ actorSelection: {
631
+ actor: {
632
+ type: "alia";
633
+ ownerAccountId: string;
634
+ } | {
635
+ type: "agent";
636
+ accountId: string;
637
+ };
638
+ mode: "fixed";
639
+ } | {
640
+ mode: "automatic";
641
+ };
642
+ inputs: Record<string, unknown>;
643
+ resources: {
644
+ appId: string;
645
+ effectiveAccountId: string;
646
+ resourceType: string;
647
+ resourceId: string;
648
+ }[];
649
+ dataFlow: {
650
+ sources: {
651
+ appId: string;
652
+ effectiveAccountId: string;
653
+ resourceType: string;
654
+ resourceId: string;
655
+ }[];
656
+ destinations: {
657
+ appId: string;
658
+ effectiveAccountId: string;
659
+ resourceType: string;
660
+ resourceId: string;
661
+ }[];
662
+ };
663
+ enabled: boolean;
664
+ }, {
665
+ ownerAccountId: string;
666
+ id: string;
667
+ maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
668
+ createdAt: string;
669
+ updatedAt: string;
670
+ objective: string;
671
+ trigger: {
672
+ type: "manual";
673
+ } | {
674
+ type: "event";
675
+ appId: string;
676
+ eventType: string;
677
+ resource?: {
678
+ appId: string;
679
+ effectiveAccountId: string;
680
+ resourceType: string;
681
+ resourceId: string;
682
+ } | undefined;
683
+ } | {
684
+ type: "schedule";
685
+ cron: string;
686
+ timezone: string;
687
+ };
688
+ actorSelection: {
689
+ actor: {
690
+ type: "alia";
691
+ ownerAccountId: string;
692
+ } | {
693
+ type: "agent";
694
+ accountId: string;
695
+ };
696
+ mode: "fixed";
697
+ } | {
698
+ mode: "automatic";
699
+ };
700
+ inputs: Record<string, unknown>;
701
+ resources: {
702
+ appId: string;
703
+ effectiveAccountId: string;
704
+ resourceType: string;
705
+ resourceId: string;
706
+ }[];
707
+ dataFlow: {
708
+ sources: {
709
+ appId: string;
710
+ effectiveAccountId: string;
711
+ resourceType: string;
712
+ resourceId: string;
713
+ }[];
714
+ destinations: {
715
+ appId: string;
716
+ effectiveAccountId: string;
717
+ resourceType: string;
718
+ resourceId: string;
719
+ }[];
720
+ };
721
+ enabled: boolean;
722
+ limits?: {
723
+ value: number | boolean;
724
+ tool: string;
725
+ key: string;
726
+ }[] | undefined;
727
+ }>;
728
+ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
729
+ iss: z.ZodString;
730
+ aud: z.ZodString;
731
+ sub: z.ZodString;
732
+ jti: z.ZodString;
733
+ iat: z.ZodNumber;
734
+ exp: z.ZodNumber;
735
+ runId: z.ZodString;
736
+ stepId: z.ZodOptional<z.ZodString>;
737
+ automationId: z.ZodOptional<z.ZodString>;
738
+ executionAuthorization: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
739
+ kind: z.ZodLiteral<"direct_request">;
740
+ id: z.ZodString;
741
+ }, "strict", z.ZodTypeAny, {
742
+ kind: "direct_request";
743
+ id: string;
744
+ }, {
745
+ kind: "direct_request";
746
+ id: string;
747
+ }>, z.ZodObject<{
748
+ kind: z.ZodLiteral<"automation">;
749
+ id: z.ZodString;
750
+ automationId: z.ZodString;
751
+ }, "strict", z.ZodTypeAny, {
752
+ kind: "automation";
753
+ id: string;
754
+ automationId: string;
755
+ }, {
756
+ kind: "automation";
757
+ id: string;
758
+ automationId: string;
759
+ }>]>;
760
+ coordinator: z.ZodObject<{
761
+ applicationId: z.ZodString;
762
+ credentialId: z.ZodString;
763
+ }, "strict", z.ZodTypeAny, {
764
+ applicationId: string;
765
+ credentialId: string;
766
+ }, {
767
+ applicationId: string;
768
+ credentialId: string;
769
+ }>;
770
+ grantId: z.ZodOptional<z.ZodString>;
771
+ requesterAccountId: z.ZodString;
772
+ ownerAccountId: z.ZodString;
773
+ actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
774
+ type: z.ZodLiteral<"alia">;
775
+ ownerAccountId: z.ZodString;
776
+ }, "strict", z.ZodTypeAny, {
777
+ type: "alia";
778
+ ownerAccountId: string;
779
+ }, {
780
+ type: "alia";
781
+ ownerAccountId: string;
782
+ }>, z.ZodObject<{
783
+ type: z.ZodLiteral<"agent">;
784
+ accountId: z.ZodString;
785
+ }, "strict", z.ZodTypeAny, {
786
+ type: "agent";
787
+ accountId: string;
788
+ }, {
789
+ type: "agent";
790
+ accountId: string;
791
+ }>]>;
792
+ resource: z.ZodObject<{
793
+ appId: z.ZodString;
794
+ effectiveAccountId: z.ZodString;
795
+ resourceType: z.ZodString;
796
+ resourceId: z.ZodString;
797
+ }, "strict", z.ZodTypeAny, {
798
+ appId: string;
799
+ effectiveAccountId: string;
800
+ resourceType: string;
801
+ resourceId: string;
802
+ }, {
803
+ appId: string;
804
+ effectiveAccountId: string;
805
+ resourceType: string;
806
+ resourceId: string;
807
+ }>;
808
+ tool: z.ZodString;
809
+ capabilities: z.ZodArray<z.ZodString, "many">;
810
+ limits: z.ZodDefault<z.ZodArray<z.ZodObject<{
811
+ tool: z.ZodString;
812
+ key: z.ZodString;
813
+ value: z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>;
814
+ }, "strict", z.ZodTypeAny, {
815
+ value: number | boolean;
816
+ tool: string;
817
+ key: string;
818
+ }, {
819
+ value: number | boolean;
820
+ tool: string;
821
+ key: string;
822
+ }>, "many">>;
823
+ autonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
824
+ }, "strict", z.ZodTypeAny, {
825
+ ownerAccountId: string;
826
+ tool: string;
827
+ actor: {
828
+ type: "alia";
829
+ ownerAccountId: string;
830
+ } | {
831
+ type: "agent";
832
+ accountId: string;
833
+ };
834
+ resource: {
835
+ appId: string;
836
+ effectiveAccountId: string;
837
+ resourceType: string;
838
+ resourceId: string;
839
+ };
840
+ capabilities: string[];
841
+ limits: {
842
+ value: number | boolean;
843
+ tool: string;
844
+ key: string;
845
+ }[];
846
+ iss: string;
847
+ aud: string;
848
+ sub: string;
849
+ jti: string;
850
+ iat: number;
851
+ exp: number;
852
+ runId: string;
853
+ executionAuthorization: {
854
+ kind: "direct_request";
855
+ id: string;
856
+ } | {
857
+ kind: "automation";
858
+ id: string;
859
+ automationId: string;
860
+ };
861
+ coordinator: {
862
+ applicationId: string;
863
+ credentialId: string;
864
+ };
865
+ requesterAccountId: string;
866
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
867
+ automationId?: string | undefined;
868
+ stepId?: string | undefined;
869
+ grantId?: string | undefined;
870
+ }, {
871
+ ownerAccountId: string;
872
+ tool: string;
873
+ actor: {
874
+ type: "alia";
875
+ ownerAccountId: string;
876
+ } | {
877
+ type: "agent";
878
+ accountId: string;
879
+ };
880
+ resource: {
881
+ appId: string;
882
+ effectiveAccountId: string;
883
+ resourceType: string;
884
+ resourceId: string;
885
+ };
886
+ capabilities: string[];
887
+ iss: string;
888
+ aud: string;
889
+ sub: string;
890
+ jti: string;
891
+ iat: number;
892
+ exp: number;
893
+ runId: string;
894
+ executionAuthorization: {
895
+ kind: "direct_request";
896
+ id: string;
897
+ } | {
898
+ kind: "automation";
899
+ id: string;
900
+ automationId: string;
901
+ };
902
+ coordinator: {
903
+ applicationId: string;
904
+ credentialId: string;
905
+ };
906
+ requesterAccountId: string;
907
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
908
+ automationId?: string | undefined;
909
+ limits?: {
910
+ value: number | boolean;
911
+ tool: string;
912
+ key: string;
913
+ }[] | undefined;
914
+ stepId?: string | undefined;
915
+ grantId?: string | undefined;
916
+ }>, {
917
+ ownerAccountId: string;
918
+ tool: string;
919
+ actor: {
920
+ type: "alia";
921
+ ownerAccountId: string;
922
+ } | {
923
+ type: "agent";
924
+ accountId: string;
925
+ };
926
+ resource: {
927
+ appId: string;
928
+ effectiveAccountId: string;
929
+ resourceType: string;
930
+ resourceId: string;
931
+ };
932
+ capabilities: string[];
933
+ limits: {
934
+ value: number | boolean;
935
+ tool: string;
936
+ key: string;
937
+ }[];
938
+ iss: string;
939
+ aud: string;
940
+ sub: string;
941
+ jti: string;
942
+ iat: number;
943
+ exp: number;
944
+ runId: string;
945
+ executionAuthorization: {
946
+ kind: "direct_request";
947
+ id: string;
948
+ } | {
949
+ kind: "automation";
950
+ id: string;
951
+ automationId: string;
952
+ };
953
+ coordinator: {
954
+ applicationId: string;
955
+ credentialId: string;
956
+ };
957
+ requesterAccountId: string;
958
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
959
+ automationId?: string | undefined;
960
+ stepId?: string | undefined;
961
+ grantId?: string | undefined;
962
+ }, {
963
+ ownerAccountId: string;
964
+ tool: string;
965
+ actor: {
966
+ type: "alia";
967
+ ownerAccountId: string;
968
+ } | {
969
+ type: "agent";
970
+ accountId: string;
971
+ };
972
+ resource: {
973
+ appId: string;
974
+ effectiveAccountId: string;
975
+ resourceType: string;
976
+ resourceId: string;
977
+ };
978
+ capabilities: string[];
979
+ iss: string;
980
+ aud: string;
981
+ sub: string;
982
+ jti: string;
983
+ iat: number;
984
+ exp: number;
985
+ runId: string;
986
+ executionAuthorization: {
987
+ kind: "direct_request";
988
+ id: string;
989
+ } | {
990
+ kind: "automation";
991
+ id: string;
992
+ automationId: string;
993
+ };
994
+ coordinator: {
995
+ applicationId: string;
996
+ credentialId: string;
997
+ };
998
+ requesterAccountId: string;
999
+ autonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
1000
+ automationId?: string | undefined;
1001
+ limits?: {
1002
+ value: number | boolean;
1003
+ tool: string;
1004
+ key: string;
1005
+ }[] | undefined;
1006
+ stepId?: string | undefined;
1007
+ grantId?: string | undefined;
1008
+ }>;
1009
+ export declare const policyDecisionSchema: z.ZodObject<{
1010
+ allowed: z.ZodBoolean;
1011
+ reason: z.ZodString;
1012
+ effectiveAutonomy: z.ZodOptional<z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>>;
1013
+ grantId: z.ZodOptional<z.ZodString>;
1014
+ }, "strict", z.ZodTypeAny, {
1015
+ allowed: boolean;
1016
+ reason: string;
1017
+ grantId?: string | undefined;
1018
+ effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
1019
+ }, {
1020
+ allowed: boolean;
1021
+ reason: string;
1022
+ grantId?: string | undefined;
1023
+ effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
1024
+ }>;
1025
+ export declare const auditResultSchema: z.ZodObject<{
1026
+ status: z.ZodEnum<["planned", "allowed", "denied", "succeeded", "failed", "rolled_back"]>;
1027
+ code: z.ZodOptional<z.ZodString>;
1028
+ }, "strict", z.ZodTypeAny, {
1029
+ status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
1030
+ code?: string | undefined;
1031
+ }, {
1032
+ status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
1033
+ code?: string | undefined;
1034
+ }>;
1035
+ export declare const auditEventSchema: z.ZodObject<{
1036
+ eventId: z.ZodString;
1037
+ occurredAt: z.ZodString;
1038
+ requesterAccountId: z.ZodString;
1039
+ coordinator: z.ZodObject<{
1040
+ applicationId: z.ZodString;
1041
+ credentialId: z.ZodString;
1042
+ }, "strict", z.ZodTypeAny, {
1043
+ applicationId: string;
1044
+ credentialId: string;
1045
+ }, {
1046
+ applicationId: string;
1047
+ credentialId: string;
1048
+ }>;
1049
+ executor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1050
+ type: z.ZodLiteral<"alia">;
1051
+ ownerAccountId: z.ZodString;
1052
+ }, "strict", z.ZodTypeAny, {
1053
+ type: "alia";
1054
+ ownerAccountId: string;
1055
+ }, {
1056
+ type: "alia";
1057
+ ownerAccountId: string;
1058
+ }>, z.ZodObject<{
1059
+ type: z.ZodLiteral<"agent">;
1060
+ accountId: z.ZodString;
1061
+ }, "strict", z.ZodTypeAny, {
1062
+ type: "agent";
1063
+ accountId: string;
1064
+ }, {
1065
+ type: "agent";
1066
+ accountId: string;
1067
+ }>]>;
1068
+ effectiveAccountId: z.ZodString;
1069
+ resource: z.ZodObject<{
1070
+ appId: z.ZodString;
1071
+ effectiveAccountId: z.ZodString;
1072
+ resourceType: z.ZodString;
1073
+ resourceId: z.ZodString;
1074
+ }, "strict", z.ZodTypeAny, {
1075
+ appId: string;
1076
+ effectiveAccountId: string;
1077
+ resourceType: string;
1078
+ resourceId: string;
1079
+ }, {
1080
+ appId: string;
1081
+ effectiveAccountId: string;
1082
+ resourceType: string;
1083
+ resourceId: string;
1084
+ }>;
1085
+ appId: z.ZodString;
1086
+ tool: z.ZodString;
1087
+ capabilities: z.ZodArray<z.ZodString, "many">;
1088
+ policyDecision: z.ZodObject<{
1089
+ allowed: z.ZodBoolean;
1090
+ reason: z.ZodString;
1091
+ effectiveAutonomy: z.ZodOptional<z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>>;
1092
+ grantId: z.ZodOptional<z.ZodString>;
1093
+ }, "strict", z.ZodTypeAny, {
1094
+ allowed: boolean;
1095
+ reason: string;
1096
+ grantId?: string | undefined;
1097
+ effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
1098
+ }, {
1099
+ allowed: boolean;
1100
+ reason: string;
1101
+ grantId?: string | undefined;
1102
+ effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
1103
+ }>;
1104
+ result: z.ZodObject<{
1105
+ status: z.ZodEnum<["planned", "allowed", "denied", "succeeded", "failed", "rolled_back"]>;
1106
+ code: z.ZodOptional<z.ZodString>;
1107
+ }, "strict", z.ZodTypeAny, {
1108
+ status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
1109
+ code?: string | undefined;
1110
+ }, {
1111
+ status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
1112
+ code?: string | undefined;
1113
+ }>;
1114
+ rollback: z.ZodObject<{
1115
+ supported: z.ZodBoolean;
1116
+ attempted: z.ZodBoolean;
1117
+ succeeded: z.ZodOptional<z.ZodBoolean>;
1118
+ }, "strict", z.ZodTypeAny, {
1119
+ supported: boolean;
1120
+ attempted: boolean;
1121
+ succeeded?: boolean | undefined;
1122
+ }, {
1123
+ supported: boolean;
1124
+ attempted: boolean;
1125
+ succeeded?: boolean | undefined;
1126
+ }>;
1127
+ correlation: z.ZodObject<{
1128
+ runId: z.ZodString;
1129
+ stepId: z.ZodOptional<z.ZodString>;
1130
+ automationId: z.ZodOptional<z.ZodString>;
1131
+ idempotencyKeyHash: z.ZodOptional<z.ZodString>;
1132
+ capabilityTicketId: z.ZodOptional<z.ZodString>;
1133
+ }, "strict", z.ZodTypeAny, {
1134
+ runId: string;
1135
+ automationId?: string | undefined;
1136
+ stepId?: string | undefined;
1137
+ idempotencyKeyHash?: string | undefined;
1138
+ capabilityTicketId?: string | undefined;
1139
+ }, {
1140
+ runId: string;
1141
+ automationId?: string | undefined;
1142
+ stepId?: string | undefined;
1143
+ idempotencyKeyHash?: string | undefined;
1144
+ capabilityTicketId?: string | undefined;
1145
+ }>;
1146
+ }, "strict", z.ZodTypeAny, {
1147
+ appId: string;
1148
+ effectiveAccountId: string;
1149
+ tool: string;
1150
+ resource: {
1151
+ appId: string;
1152
+ effectiveAccountId: string;
1153
+ resourceType: string;
1154
+ resourceId: string;
1155
+ };
1156
+ capabilities: string[];
1157
+ coordinator: {
1158
+ applicationId: string;
1159
+ credentialId: string;
1160
+ };
1161
+ requesterAccountId: string;
1162
+ eventId: string;
1163
+ occurredAt: string;
1164
+ executor: {
1165
+ type: "alia";
1166
+ ownerAccountId: string;
1167
+ } | {
1168
+ type: "agent";
1169
+ accountId: string;
1170
+ };
1171
+ policyDecision: {
1172
+ allowed: boolean;
1173
+ reason: string;
1174
+ grantId?: string | undefined;
1175
+ effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
1176
+ };
1177
+ result: {
1178
+ status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
1179
+ code?: string | undefined;
1180
+ };
1181
+ rollback: {
1182
+ supported: boolean;
1183
+ attempted: boolean;
1184
+ succeeded?: boolean | undefined;
1185
+ };
1186
+ correlation: {
1187
+ runId: string;
1188
+ automationId?: string | undefined;
1189
+ stepId?: string | undefined;
1190
+ idempotencyKeyHash?: string | undefined;
1191
+ capabilityTicketId?: string | undefined;
1192
+ };
1193
+ }, {
1194
+ appId: string;
1195
+ effectiveAccountId: string;
1196
+ tool: string;
1197
+ resource: {
1198
+ appId: string;
1199
+ effectiveAccountId: string;
1200
+ resourceType: string;
1201
+ resourceId: string;
1202
+ };
1203
+ capabilities: string[];
1204
+ coordinator: {
1205
+ applicationId: string;
1206
+ credentialId: string;
1207
+ };
1208
+ requesterAccountId: string;
1209
+ eventId: string;
1210
+ occurredAt: string;
1211
+ executor: {
1212
+ type: "alia";
1213
+ ownerAccountId: string;
1214
+ } | {
1215
+ type: "agent";
1216
+ accountId: string;
1217
+ };
1218
+ policyDecision: {
1219
+ allowed: boolean;
1220
+ reason: string;
1221
+ grantId?: string | undefined;
1222
+ effectiveAutonomy?: "read_only" | "draft" | "execute_on_request" | "autonomous" | undefined;
1223
+ };
1224
+ result: {
1225
+ status: "allowed" | "planned" | "denied" | "succeeded" | "failed" | "rolled_back";
1226
+ code?: string | undefined;
1227
+ };
1228
+ rollback: {
1229
+ supported: boolean;
1230
+ attempted: boolean;
1231
+ succeeded?: boolean | undefined;
1232
+ };
1233
+ correlation: {
1234
+ runId: string;
1235
+ automationId?: string | undefined;
1236
+ stepId?: string | undefined;
1237
+ idempotencyKeyHash?: string | undefined;
1238
+ capabilityTicketId?: string | undefined;
1239
+ };
1240
+ }>;
1241
+ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
1242
+ name: z.ZodString;
1243
+ version: z.ZodString;
1244
+ description: z.ZodString;
1245
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1246
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1247
+ capabilityPackage: z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>;
1248
+ requiredCapabilities: z.ZodArray<z.ZodString, "many">;
1249
+ resourceTypes: z.ZodArray<z.ZodString, "many">;
1250
+ effect: z.ZodEnum<["read", "write", "external", "financial", "security"]>;
1251
+ idempotency: z.ZodEnum<["none", "supported", "required"]>;
1252
+ rollback: z.ZodEnum<["none", "manual", "supported"]>;
1253
+ exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
1254
+ limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
1255
+ key: z.ZodString;
1256
+ kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
1257
+ }, "strict", z.ZodTypeAny, {
1258
+ kind: "maximum_number" | "exact_boolean";
1259
+ key: string;
1260
+ }, {
1261
+ kind: "maximum_number" | "exact_boolean";
1262
+ key: string;
1263
+ }>, "many">>;
1264
+ invocation: z.ZodObject<{
1265
+ method: z.ZodEnum<["GET", "POST", "PATCH", "PUT", "DELETE"]>;
1266
+ path: z.ZodString;
1267
+ }, "strict", z.ZodTypeAny, {
1268
+ path: string;
1269
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1270
+ }, {
1271
+ path: string;
1272
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1273
+ }>;
1274
+ }, "strict", z.ZodTypeAny, {
1275
+ effect: "security" | "read" | "write" | "external" | "financial";
1276
+ name: string;
1277
+ description: string;
1278
+ rollback: "manual" | "supported" | "none";
1279
+ version: string;
1280
+ inputSchema: Record<string, unknown>;
1281
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1282
+ requiredCapabilities: string[];
1283
+ resourceTypes: string[];
1284
+ idempotency: "supported" | "none" | "required";
1285
+ exposure: ("internal" | "mcp")[];
1286
+ limitKeys: {
1287
+ kind: "maximum_number" | "exact_boolean";
1288
+ key: string;
1289
+ }[];
1290
+ invocation: {
1291
+ path: string;
1292
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1293
+ };
1294
+ outputSchema?: Record<string, unknown> | undefined;
1295
+ }, {
1296
+ effect: "security" | "read" | "write" | "external" | "financial";
1297
+ name: string;
1298
+ description: string;
1299
+ rollback: "manual" | "supported" | "none";
1300
+ version: string;
1301
+ inputSchema: Record<string, unknown>;
1302
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1303
+ requiredCapabilities: string[];
1304
+ resourceTypes: string[];
1305
+ idempotency: "supported" | "none" | "required";
1306
+ exposure: ("internal" | "mcp")[];
1307
+ invocation: {
1308
+ path: string;
1309
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1310
+ };
1311
+ outputSchema?: Record<string, unknown> | undefined;
1312
+ limitKeys?: {
1313
+ kind: "maximum_number" | "exact_boolean";
1314
+ key: string;
1315
+ }[] | undefined;
1316
+ }>, {
1317
+ effect: "security" | "read" | "write" | "external" | "financial";
1318
+ name: string;
1319
+ description: string;
1320
+ rollback: "manual" | "supported" | "none";
1321
+ version: string;
1322
+ inputSchema: Record<string, unknown>;
1323
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1324
+ requiredCapabilities: string[];
1325
+ resourceTypes: string[];
1326
+ idempotency: "supported" | "none" | "required";
1327
+ exposure: ("internal" | "mcp")[];
1328
+ limitKeys: {
1329
+ kind: "maximum_number" | "exact_boolean";
1330
+ key: string;
1331
+ }[];
1332
+ invocation: {
1333
+ path: string;
1334
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1335
+ };
1336
+ outputSchema?: Record<string, unknown> | undefined;
1337
+ }, {
1338
+ effect: "security" | "read" | "write" | "external" | "financial";
1339
+ name: string;
1340
+ description: string;
1341
+ rollback: "manual" | "supported" | "none";
1342
+ version: string;
1343
+ inputSchema: Record<string, unknown>;
1344
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1345
+ requiredCapabilities: string[];
1346
+ resourceTypes: string[];
1347
+ idempotency: "supported" | "none" | "required";
1348
+ exposure: ("internal" | "mcp")[];
1349
+ invocation: {
1350
+ path: string;
1351
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1352
+ };
1353
+ outputSchema?: Record<string, unknown> | undefined;
1354
+ limitKeys?: {
1355
+ kind: "maximum_number" | "exact_boolean";
1356
+ key: string;
1357
+ }[] | undefined;
1358
+ }>;
1359
+ export declare const catalogEventSchema: z.ZodObject<{
1360
+ type: z.ZodString;
1361
+ version: z.ZodString;
1362
+ description: z.ZodString;
1363
+ dataSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1364
+ resourceTypes: z.ZodArray<z.ZodString, "many">;
1365
+ }, "strict", z.ZodTypeAny, {
1366
+ type: string;
1367
+ description: string;
1368
+ version: string;
1369
+ resourceTypes: string[];
1370
+ dataSchema: Record<string, unknown>;
1371
+ }, {
1372
+ type: string;
1373
+ description: string;
1374
+ version: string;
1375
+ resourceTypes: string[];
1376
+ dataSchema: Record<string, unknown>;
1377
+ }>;
1378
+ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
1379
+ schemaVersion: z.ZodLiteral<"1">;
1380
+ appId: z.ZodString;
1381
+ version: z.ZodString;
1382
+ audience: z.ZodString;
1383
+ /** HTTPS origin that serves the catalog's internal invocation paths. */
1384
+ internalBaseUrl: z.ZodEffects<z.ZodString, string, string>;
1385
+ /** Account-scoped resource used for native Alia bindings without app-specific code. */
1386
+ accountResourceType: z.ZodString;
1387
+ /** Canonical protected-resource URI when this catalog is also exposed as an external MCP server. */
1388
+ externalMcp: z.ZodOptional<z.ZodObject<{
1389
+ resource: z.ZodEffects<z.ZodString, string, string>;
1390
+ }, "strict", z.ZodTypeAny, {
1391
+ resource: string;
1392
+ }, {
1393
+ resource: string;
1394
+ }>>;
1395
+ tools: z.ZodArray<z.ZodEffects<z.ZodObject<{
1396
+ name: z.ZodString;
1397
+ version: z.ZodString;
1398
+ description: z.ZodString;
1399
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1400
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1401
+ capabilityPackage: z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>;
1402
+ requiredCapabilities: z.ZodArray<z.ZodString, "many">;
1403
+ resourceTypes: z.ZodArray<z.ZodString, "many">;
1404
+ effect: z.ZodEnum<["read", "write", "external", "financial", "security"]>;
1405
+ idempotency: z.ZodEnum<["none", "supported", "required"]>;
1406
+ rollback: z.ZodEnum<["none", "manual", "supported"]>;
1407
+ exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
1408
+ limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
1409
+ key: z.ZodString;
1410
+ kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
1411
+ }, "strict", z.ZodTypeAny, {
1412
+ kind: "maximum_number" | "exact_boolean";
1413
+ key: string;
1414
+ }, {
1415
+ kind: "maximum_number" | "exact_boolean";
1416
+ key: string;
1417
+ }>, "many">>;
1418
+ invocation: z.ZodObject<{
1419
+ method: z.ZodEnum<["GET", "POST", "PATCH", "PUT", "DELETE"]>;
1420
+ path: z.ZodString;
1421
+ }, "strict", z.ZodTypeAny, {
1422
+ path: string;
1423
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1424
+ }, {
1425
+ path: string;
1426
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1427
+ }>;
1428
+ }, "strict", z.ZodTypeAny, {
1429
+ effect: "security" | "read" | "write" | "external" | "financial";
1430
+ name: string;
1431
+ description: string;
1432
+ rollback: "manual" | "supported" | "none";
1433
+ version: string;
1434
+ inputSchema: Record<string, unknown>;
1435
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1436
+ requiredCapabilities: string[];
1437
+ resourceTypes: string[];
1438
+ idempotency: "supported" | "none" | "required";
1439
+ exposure: ("internal" | "mcp")[];
1440
+ limitKeys: {
1441
+ kind: "maximum_number" | "exact_boolean";
1442
+ key: string;
1443
+ }[];
1444
+ invocation: {
1445
+ path: string;
1446
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1447
+ };
1448
+ outputSchema?: Record<string, unknown> | undefined;
1449
+ }, {
1450
+ effect: "security" | "read" | "write" | "external" | "financial";
1451
+ name: string;
1452
+ description: string;
1453
+ rollback: "manual" | "supported" | "none";
1454
+ version: string;
1455
+ inputSchema: Record<string, unknown>;
1456
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1457
+ requiredCapabilities: string[];
1458
+ resourceTypes: string[];
1459
+ idempotency: "supported" | "none" | "required";
1460
+ exposure: ("internal" | "mcp")[];
1461
+ invocation: {
1462
+ path: string;
1463
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1464
+ };
1465
+ outputSchema?: Record<string, unknown> | undefined;
1466
+ limitKeys?: {
1467
+ kind: "maximum_number" | "exact_boolean";
1468
+ key: string;
1469
+ }[] | undefined;
1470
+ }>, {
1471
+ effect: "security" | "read" | "write" | "external" | "financial";
1472
+ name: string;
1473
+ description: string;
1474
+ rollback: "manual" | "supported" | "none";
1475
+ version: string;
1476
+ inputSchema: Record<string, unknown>;
1477
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1478
+ requiredCapabilities: string[];
1479
+ resourceTypes: string[];
1480
+ idempotency: "supported" | "none" | "required";
1481
+ exposure: ("internal" | "mcp")[];
1482
+ limitKeys: {
1483
+ kind: "maximum_number" | "exact_boolean";
1484
+ key: string;
1485
+ }[];
1486
+ invocation: {
1487
+ path: string;
1488
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1489
+ };
1490
+ outputSchema?: Record<string, unknown> | undefined;
1491
+ }, {
1492
+ effect: "security" | "read" | "write" | "external" | "financial";
1493
+ name: string;
1494
+ description: string;
1495
+ rollback: "manual" | "supported" | "none";
1496
+ version: string;
1497
+ inputSchema: Record<string, unknown>;
1498
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1499
+ requiredCapabilities: string[];
1500
+ resourceTypes: string[];
1501
+ idempotency: "supported" | "none" | "required";
1502
+ exposure: ("internal" | "mcp")[];
1503
+ invocation: {
1504
+ path: string;
1505
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1506
+ };
1507
+ outputSchema?: Record<string, unknown> | undefined;
1508
+ limitKeys?: {
1509
+ kind: "maximum_number" | "exact_boolean";
1510
+ key: string;
1511
+ }[] | undefined;
1512
+ }>, "many">;
1513
+ events: z.ZodArray<z.ZodObject<{
1514
+ type: z.ZodString;
1515
+ version: z.ZodString;
1516
+ description: z.ZodString;
1517
+ dataSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1518
+ resourceTypes: z.ZodArray<z.ZodString, "many">;
1519
+ }, "strict", z.ZodTypeAny, {
1520
+ type: string;
1521
+ description: string;
1522
+ version: string;
1523
+ resourceTypes: string[];
1524
+ dataSchema: Record<string, unknown>;
1525
+ }, {
1526
+ type: string;
1527
+ description: string;
1528
+ version: string;
1529
+ resourceTypes: string[];
1530
+ dataSchema: Record<string, unknown>;
1531
+ }>, "many">;
1532
+ }, "strict", z.ZodTypeAny, {
1533
+ appId: string;
1534
+ version: string;
1535
+ schemaVersion: "1";
1536
+ audience: string;
1537
+ internalBaseUrl: string;
1538
+ accountResourceType: string;
1539
+ tools: {
1540
+ effect: "security" | "read" | "write" | "external" | "financial";
1541
+ name: string;
1542
+ description: string;
1543
+ rollback: "manual" | "supported" | "none";
1544
+ version: string;
1545
+ inputSchema: Record<string, unknown>;
1546
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1547
+ requiredCapabilities: string[];
1548
+ resourceTypes: string[];
1549
+ idempotency: "supported" | "none" | "required";
1550
+ exposure: ("internal" | "mcp")[];
1551
+ limitKeys: {
1552
+ kind: "maximum_number" | "exact_boolean";
1553
+ key: string;
1554
+ }[];
1555
+ invocation: {
1556
+ path: string;
1557
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1558
+ };
1559
+ outputSchema?: Record<string, unknown> | undefined;
1560
+ }[];
1561
+ events: {
1562
+ type: string;
1563
+ description: string;
1564
+ version: string;
1565
+ resourceTypes: string[];
1566
+ dataSchema: Record<string, unknown>;
1567
+ }[];
1568
+ externalMcp?: {
1569
+ resource: string;
1570
+ } | undefined;
1571
+ }, {
1572
+ appId: string;
1573
+ version: string;
1574
+ schemaVersion: "1";
1575
+ audience: string;
1576
+ internalBaseUrl: string;
1577
+ accountResourceType: string;
1578
+ tools: {
1579
+ effect: "security" | "read" | "write" | "external" | "financial";
1580
+ name: string;
1581
+ description: string;
1582
+ rollback: "manual" | "supported" | "none";
1583
+ version: string;
1584
+ inputSchema: Record<string, unknown>;
1585
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1586
+ requiredCapabilities: string[];
1587
+ resourceTypes: string[];
1588
+ idempotency: "supported" | "none" | "required";
1589
+ exposure: ("internal" | "mcp")[];
1590
+ invocation: {
1591
+ path: string;
1592
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1593
+ };
1594
+ outputSchema?: Record<string, unknown> | undefined;
1595
+ limitKeys?: {
1596
+ kind: "maximum_number" | "exact_boolean";
1597
+ key: string;
1598
+ }[] | undefined;
1599
+ }[];
1600
+ events: {
1601
+ type: string;
1602
+ description: string;
1603
+ version: string;
1604
+ resourceTypes: string[];
1605
+ dataSchema: Record<string, unknown>;
1606
+ }[];
1607
+ externalMcp?: {
1608
+ resource: string;
1609
+ } | undefined;
1610
+ }>, {
1611
+ appId: string;
1612
+ version: string;
1613
+ schemaVersion: "1";
1614
+ audience: string;
1615
+ internalBaseUrl: string;
1616
+ accountResourceType: string;
1617
+ tools: {
1618
+ effect: "security" | "read" | "write" | "external" | "financial";
1619
+ name: string;
1620
+ description: string;
1621
+ rollback: "manual" | "supported" | "none";
1622
+ version: string;
1623
+ inputSchema: Record<string, unknown>;
1624
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1625
+ requiredCapabilities: string[];
1626
+ resourceTypes: string[];
1627
+ idempotency: "supported" | "none" | "required";
1628
+ exposure: ("internal" | "mcp")[];
1629
+ limitKeys: {
1630
+ kind: "maximum_number" | "exact_boolean";
1631
+ key: string;
1632
+ }[];
1633
+ invocation: {
1634
+ path: string;
1635
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1636
+ };
1637
+ outputSchema?: Record<string, unknown> | undefined;
1638
+ }[];
1639
+ events: {
1640
+ type: string;
1641
+ description: string;
1642
+ version: string;
1643
+ resourceTypes: string[];
1644
+ dataSchema: Record<string, unknown>;
1645
+ }[];
1646
+ externalMcp?: {
1647
+ resource: string;
1648
+ } | undefined;
1649
+ }, {
1650
+ appId: string;
1651
+ version: string;
1652
+ schemaVersion: "1";
1653
+ audience: string;
1654
+ internalBaseUrl: string;
1655
+ accountResourceType: string;
1656
+ tools: {
1657
+ effect: "security" | "read" | "write" | "external" | "financial";
1658
+ name: string;
1659
+ description: string;
1660
+ rollback: "manual" | "supported" | "none";
1661
+ version: string;
1662
+ inputSchema: Record<string, unknown>;
1663
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1664
+ requiredCapabilities: string[];
1665
+ resourceTypes: string[];
1666
+ idempotency: "supported" | "none" | "required";
1667
+ exposure: ("internal" | "mcp")[];
1668
+ invocation: {
1669
+ path: string;
1670
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1671
+ };
1672
+ outputSchema?: Record<string, unknown> | undefined;
1673
+ limitKeys?: {
1674
+ kind: "maximum_number" | "exact_boolean";
1675
+ key: string;
1676
+ }[] | undefined;
1677
+ }[];
1678
+ events: {
1679
+ type: string;
1680
+ description: string;
1681
+ version: string;
1682
+ resourceTypes: string[];
1683
+ dataSchema: Record<string, unknown>;
1684
+ }[];
1685
+ externalMcp?: {
1686
+ resource: string;
1687
+ } | undefined;
1688
+ }>;
1689
+ export declare const catalogRegistrationSchema: z.ZodObject<{
1690
+ catalog: z.ZodEffects<z.ZodObject<{
1691
+ schemaVersion: z.ZodLiteral<"1">;
1692
+ appId: z.ZodString;
1693
+ version: z.ZodString;
1694
+ audience: z.ZodString;
1695
+ /** HTTPS origin that serves the catalog's internal invocation paths. */
1696
+ internalBaseUrl: z.ZodEffects<z.ZodString, string, string>;
1697
+ /** Account-scoped resource used for native Alia bindings without app-specific code. */
1698
+ accountResourceType: z.ZodString;
1699
+ /** Canonical protected-resource URI when this catalog is also exposed as an external MCP server. */
1700
+ externalMcp: z.ZodOptional<z.ZodObject<{
1701
+ resource: z.ZodEffects<z.ZodString, string, string>;
1702
+ }, "strict", z.ZodTypeAny, {
1703
+ resource: string;
1704
+ }, {
1705
+ resource: string;
1706
+ }>>;
1707
+ tools: z.ZodArray<z.ZodEffects<z.ZodObject<{
1708
+ name: z.ZodString;
1709
+ version: z.ZodString;
1710
+ description: z.ZodString;
1711
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1712
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1713
+ capabilityPackage: z.ZodEnum<["read", "create", "publish", "communicate", "administer", "finance", "security", "delegate"]>;
1714
+ requiredCapabilities: z.ZodArray<z.ZodString, "many">;
1715
+ resourceTypes: z.ZodArray<z.ZodString, "many">;
1716
+ effect: z.ZodEnum<["read", "write", "external", "financial", "security"]>;
1717
+ idempotency: z.ZodEnum<["none", "supported", "required"]>;
1718
+ rollback: z.ZodEnum<["none", "manual", "supported"]>;
1719
+ exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
1720
+ limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
1721
+ key: z.ZodString;
1722
+ kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
1723
+ }, "strict", z.ZodTypeAny, {
1724
+ kind: "maximum_number" | "exact_boolean";
1725
+ key: string;
1726
+ }, {
1727
+ kind: "maximum_number" | "exact_boolean";
1728
+ key: string;
1729
+ }>, "many">>;
1730
+ invocation: z.ZodObject<{
1731
+ method: z.ZodEnum<["GET", "POST", "PATCH", "PUT", "DELETE"]>;
1732
+ path: z.ZodString;
1733
+ }, "strict", z.ZodTypeAny, {
1734
+ path: string;
1735
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1736
+ }, {
1737
+ path: string;
1738
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1739
+ }>;
1740
+ }, "strict", z.ZodTypeAny, {
1741
+ effect: "security" | "read" | "write" | "external" | "financial";
1742
+ name: string;
1743
+ description: string;
1744
+ rollback: "manual" | "supported" | "none";
1745
+ version: string;
1746
+ inputSchema: Record<string, unknown>;
1747
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1748
+ requiredCapabilities: string[];
1749
+ resourceTypes: string[];
1750
+ idempotency: "supported" | "none" | "required";
1751
+ exposure: ("internal" | "mcp")[];
1752
+ limitKeys: {
1753
+ kind: "maximum_number" | "exact_boolean";
1754
+ key: string;
1755
+ }[];
1756
+ invocation: {
1757
+ path: string;
1758
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1759
+ };
1760
+ outputSchema?: Record<string, unknown> | undefined;
1761
+ }, {
1762
+ effect: "security" | "read" | "write" | "external" | "financial";
1763
+ name: string;
1764
+ description: string;
1765
+ rollback: "manual" | "supported" | "none";
1766
+ version: string;
1767
+ inputSchema: Record<string, unknown>;
1768
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1769
+ requiredCapabilities: string[];
1770
+ resourceTypes: string[];
1771
+ idempotency: "supported" | "none" | "required";
1772
+ exposure: ("internal" | "mcp")[];
1773
+ invocation: {
1774
+ path: string;
1775
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1776
+ };
1777
+ outputSchema?: Record<string, unknown> | undefined;
1778
+ limitKeys?: {
1779
+ kind: "maximum_number" | "exact_boolean";
1780
+ key: string;
1781
+ }[] | undefined;
1782
+ }>, {
1783
+ effect: "security" | "read" | "write" | "external" | "financial";
1784
+ name: string;
1785
+ description: string;
1786
+ rollback: "manual" | "supported" | "none";
1787
+ version: string;
1788
+ inputSchema: Record<string, unknown>;
1789
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1790
+ requiredCapabilities: string[];
1791
+ resourceTypes: string[];
1792
+ idempotency: "supported" | "none" | "required";
1793
+ exposure: ("internal" | "mcp")[];
1794
+ limitKeys: {
1795
+ kind: "maximum_number" | "exact_boolean";
1796
+ key: string;
1797
+ }[];
1798
+ invocation: {
1799
+ path: string;
1800
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1801
+ };
1802
+ outputSchema?: Record<string, unknown> | undefined;
1803
+ }, {
1804
+ effect: "security" | "read" | "write" | "external" | "financial";
1805
+ name: string;
1806
+ description: string;
1807
+ rollback: "manual" | "supported" | "none";
1808
+ version: string;
1809
+ inputSchema: Record<string, unknown>;
1810
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1811
+ requiredCapabilities: string[];
1812
+ resourceTypes: string[];
1813
+ idempotency: "supported" | "none" | "required";
1814
+ exposure: ("internal" | "mcp")[];
1815
+ invocation: {
1816
+ path: string;
1817
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1818
+ };
1819
+ outputSchema?: Record<string, unknown> | undefined;
1820
+ limitKeys?: {
1821
+ kind: "maximum_number" | "exact_boolean";
1822
+ key: string;
1823
+ }[] | undefined;
1824
+ }>, "many">;
1825
+ events: z.ZodArray<z.ZodObject<{
1826
+ type: z.ZodString;
1827
+ version: z.ZodString;
1828
+ description: z.ZodString;
1829
+ dataSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1830
+ resourceTypes: z.ZodArray<z.ZodString, "many">;
1831
+ }, "strict", z.ZodTypeAny, {
1832
+ type: string;
1833
+ description: string;
1834
+ version: string;
1835
+ resourceTypes: string[];
1836
+ dataSchema: Record<string, unknown>;
1837
+ }, {
1838
+ type: string;
1839
+ description: string;
1840
+ version: string;
1841
+ resourceTypes: string[];
1842
+ dataSchema: Record<string, unknown>;
1843
+ }>, "many">;
1844
+ }, "strict", z.ZodTypeAny, {
1845
+ appId: string;
1846
+ version: string;
1847
+ schemaVersion: "1";
1848
+ audience: string;
1849
+ internalBaseUrl: string;
1850
+ accountResourceType: string;
1851
+ tools: {
1852
+ effect: "security" | "read" | "write" | "external" | "financial";
1853
+ name: string;
1854
+ description: string;
1855
+ rollback: "manual" | "supported" | "none";
1856
+ version: string;
1857
+ inputSchema: Record<string, unknown>;
1858
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1859
+ requiredCapabilities: string[];
1860
+ resourceTypes: string[];
1861
+ idempotency: "supported" | "none" | "required";
1862
+ exposure: ("internal" | "mcp")[];
1863
+ limitKeys: {
1864
+ kind: "maximum_number" | "exact_boolean";
1865
+ key: string;
1866
+ }[];
1867
+ invocation: {
1868
+ path: string;
1869
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1870
+ };
1871
+ outputSchema?: Record<string, unknown> | undefined;
1872
+ }[];
1873
+ events: {
1874
+ type: string;
1875
+ description: string;
1876
+ version: string;
1877
+ resourceTypes: string[];
1878
+ dataSchema: Record<string, unknown>;
1879
+ }[];
1880
+ externalMcp?: {
1881
+ resource: string;
1882
+ } | undefined;
1883
+ }, {
1884
+ appId: string;
1885
+ version: string;
1886
+ schemaVersion: "1";
1887
+ audience: string;
1888
+ internalBaseUrl: string;
1889
+ accountResourceType: string;
1890
+ tools: {
1891
+ effect: "security" | "read" | "write" | "external" | "financial";
1892
+ name: string;
1893
+ description: string;
1894
+ rollback: "manual" | "supported" | "none";
1895
+ version: string;
1896
+ inputSchema: Record<string, unknown>;
1897
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1898
+ requiredCapabilities: string[];
1899
+ resourceTypes: string[];
1900
+ idempotency: "supported" | "none" | "required";
1901
+ exposure: ("internal" | "mcp")[];
1902
+ invocation: {
1903
+ path: string;
1904
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1905
+ };
1906
+ outputSchema?: Record<string, unknown> | undefined;
1907
+ limitKeys?: {
1908
+ kind: "maximum_number" | "exact_boolean";
1909
+ key: string;
1910
+ }[] | undefined;
1911
+ }[];
1912
+ events: {
1913
+ type: string;
1914
+ description: string;
1915
+ version: string;
1916
+ resourceTypes: string[];
1917
+ dataSchema: Record<string, unknown>;
1918
+ }[];
1919
+ externalMcp?: {
1920
+ resource: string;
1921
+ } | undefined;
1922
+ }>, {
1923
+ appId: string;
1924
+ version: string;
1925
+ schemaVersion: "1";
1926
+ audience: string;
1927
+ internalBaseUrl: string;
1928
+ accountResourceType: string;
1929
+ tools: {
1930
+ effect: "security" | "read" | "write" | "external" | "financial";
1931
+ name: string;
1932
+ description: string;
1933
+ rollback: "manual" | "supported" | "none";
1934
+ version: string;
1935
+ inputSchema: Record<string, unknown>;
1936
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1937
+ requiredCapabilities: string[];
1938
+ resourceTypes: string[];
1939
+ idempotency: "supported" | "none" | "required";
1940
+ exposure: ("internal" | "mcp")[];
1941
+ limitKeys: {
1942
+ kind: "maximum_number" | "exact_boolean";
1943
+ key: string;
1944
+ }[];
1945
+ invocation: {
1946
+ path: string;
1947
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1948
+ };
1949
+ outputSchema?: Record<string, unknown> | undefined;
1950
+ }[];
1951
+ events: {
1952
+ type: string;
1953
+ description: string;
1954
+ version: string;
1955
+ resourceTypes: string[];
1956
+ dataSchema: Record<string, unknown>;
1957
+ }[];
1958
+ externalMcp?: {
1959
+ resource: string;
1960
+ } | undefined;
1961
+ }, {
1962
+ appId: string;
1963
+ version: string;
1964
+ schemaVersion: "1";
1965
+ audience: string;
1966
+ internalBaseUrl: string;
1967
+ accountResourceType: string;
1968
+ tools: {
1969
+ effect: "security" | "read" | "write" | "external" | "financial";
1970
+ name: string;
1971
+ description: string;
1972
+ rollback: "manual" | "supported" | "none";
1973
+ version: string;
1974
+ inputSchema: Record<string, unknown>;
1975
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
1976
+ requiredCapabilities: string[];
1977
+ resourceTypes: string[];
1978
+ idempotency: "supported" | "none" | "required";
1979
+ exposure: ("internal" | "mcp")[];
1980
+ invocation: {
1981
+ path: string;
1982
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
1983
+ };
1984
+ outputSchema?: Record<string, unknown> | undefined;
1985
+ limitKeys?: {
1986
+ kind: "maximum_number" | "exact_boolean";
1987
+ key: string;
1988
+ }[] | undefined;
1989
+ }[];
1990
+ events: {
1991
+ type: string;
1992
+ description: string;
1993
+ version: string;
1994
+ resourceTypes: string[];
1995
+ dataSchema: Record<string, unknown>;
1996
+ }[];
1997
+ externalMcp?: {
1998
+ resource: string;
1999
+ } | undefined;
2000
+ }>;
2001
+ digest: z.ZodString;
2002
+ signature: z.ZodString;
2003
+ deployedAt: z.ZodString;
2004
+ }, "strict", z.ZodTypeAny, {
2005
+ catalog: {
2006
+ appId: string;
2007
+ version: string;
2008
+ schemaVersion: "1";
2009
+ audience: string;
2010
+ internalBaseUrl: string;
2011
+ accountResourceType: string;
2012
+ tools: {
2013
+ effect: "security" | "read" | "write" | "external" | "financial";
2014
+ name: string;
2015
+ description: string;
2016
+ rollback: "manual" | "supported" | "none";
2017
+ version: string;
2018
+ inputSchema: Record<string, unknown>;
2019
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
2020
+ requiredCapabilities: string[];
2021
+ resourceTypes: string[];
2022
+ idempotency: "supported" | "none" | "required";
2023
+ exposure: ("internal" | "mcp")[];
2024
+ limitKeys: {
2025
+ kind: "maximum_number" | "exact_boolean";
2026
+ key: string;
2027
+ }[];
2028
+ invocation: {
2029
+ path: string;
2030
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2031
+ };
2032
+ outputSchema?: Record<string, unknown> | undefined;
2033
+ }[];
2034
+ events: {
2035
+ type: string;
2036
+ description: string;
2037
+ version: string;
2038
+ resourceTypes: string[];
2039
+ dataSchema: Record<string, unknown>;
2040
+ }[];
2041
+ externalMcp?: {
2042
+ resource: string;
2043
+ } | undefined;
2044
+ };
2045
+ digest: string;
2046
+ signature: string;
2047
+ deployedAt: string;
2048
+ }, {
2049
+ catalog: {
2050
+ appId: string;
2051
+ version: string;
2052
+ schemaVersion: "1";
2053
+ audience: string;
2054
+ internalBaseUrl: string;
2055
+ accountResourceType: string;
2056
+ tools: {
2057
+ effect: "security" | "read" | "write" | "external" | "financial";
2058
+ name: string;
2059
+ description: string;
2060
+ rollback: "manual" | "supported" | "none";
2061
+ version: string;
2062
+ inputSchema: Record<string, unknown>;
2063
+ capabilityPackage: "finance" | "security" | "read" | "create" | "publish" | "communicate" | "administer" | "delegate";
2064
+ requiredCapabilities: string[];
2065
+ resourceTypes: string[];
2066
+ idempotency: "supported" | "none" | "required";
2067
+ exposure: ("internal" | "mcp")[];
2068
+ invocation: {
2069
+ path: string;
2070
+ method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2071
+ };
2072
+ outputSchema?: Record<string, unknown> | undefined;
2073
+ limitKeys?: {
2074
+ kind: "maximum_number" | "exact_boolean";
2075
+ key: string;
2076
+ }[] | undefined;
2077
+ }[];
2078
+ events: {
2079
+ type: string;
2080
+ description: string;
2081
+ version: string;
2082
+ resourceTypes: string[];
2083
+ dataSchema: Record<string, unknown>;
2084
+ }[];
2085
+ externalMcp?: {
2086
+ resource: string;
2087
+ } | undefined;
2088
+ };
2089
+ digest: string;
2090
+ signature: string;
2091
+ deployedAt: string;
2092
+ }>;
2093
+ export declare const normalizedAppEventSchema: z.ZodObject<{
2094
+ eventId: z.ZodString;
2095
+ appId: z.ZodString;
2096
+ accountId: z.ZodString;
2097
+ resource: z.ZodObject<{
2098
+ appId: z.ZodString;
2099
+ effectiveAccountId: z.ZodString;
2100
+ resourceType: z.ZodString;
2101
+ resourceId: z.ZodString;
2102
+ }, "strict", z.ZodTypeAny, {
2103
+ appId: string;
2104
+ effectiveAccountId: string;
2105
+ resourceType: string;
2106
+ resourceId: string;
2107
+ }, {
2108
+ appId: string;
2109
+ effectiveAccountId: string;
2110
+ resourceType: string;
2111
+ resourceId: string;
2112
+ }>;
2113
+ type: z.ZodString;
2114
+ occurredAt: z.ZodString;
2115
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2116
+ }, "strict", z.ZodTypeAny, {
2117
+ type: string;
2118
+ accountId: string;
2119
+ appId: string;
2120
+ resource: {
2121
+ appId: string;
2122
+ effectiveAccountId: string;
2123
+ resourceType: string;
2124
+ resourceId: string;
2125
+ };
2126
+ eventId: string;
2127
+ occurredAt: string;
2128
+ data: Record<string, unknown>;
2129
+ }, {
2130
+ type: string;
2131
+ accountId: string;
2132
+ appId: string;
2133
+ resource: {
2134
+ appId: string;
2135
+ effectiveAccountId: string;
2136
+ resourceType: string;
2137
+ resourceId: string;
2138
+ };
2139
+ eventId: string;
2140
+ occurredAt: string;
2141
+ data: Record<string, unknown>;
2142
+ }>;
2143
+ export type AutonomyLevel = z.infer<typeof autonomyLevelSchema>;
2144
+ export type CapabilityPackage = z.infer<typeof capabilityPackageSchema>;
2145
+ export type ActorRef = z.infer<typeof actorRefSchema>;
2146
+ export type ResourceRef = z.infer<typeof resourceRefSchema>;
2147
+ export type ToolGrantOverride = z.infer<typeof toolGrantOverrideSchema>;
2148
+ export type GrantLimit = z.infer<typeof grantLimitSchema>;
2149
+ export type ExecutionAuthorizationRef = z.infer<typeof executionAuthorizationRefSchema>;
2150
+ export type CapabilityCoordinator = z.infer<typeof capabilityCoordinatorSchema>;
2151
+ export type DelegationGrant = z.infer<typeof delegationGrantSchema>;
2152
+ export type AutomationTrigger = z.infer<typeof automationTriggerSchema>;
2153
+ export type AutomationActorSelection = z.infer<typeof automationActorSelectionSchema>;
2154
+ export type AutomationDefinition = z.infer<typeof automationDefinitionSchema>;
2155
+ export type CapabilityTicketClaims = z.infer<typeof capabilityTicketClaimsSchema>;
2156
+ export type PolicyDecision = z.infer<typeof policyDecisionSchema>;
2157
+ export type AuditEvent = z.infer<typeof auditEventSchema>;
2158
+ export type CatalogTool = z.infer<typeof catalogToolSchema>;
2159
+ export type CatalogEvent = z.infer<typeof catalogEventSchema>;
2160
+ export type AppCapabilityCatalog = z.infer<typeof appCapabilityCatalogSchema>;
2161
+ export type CatalogRegistration = z.infer<typeof catalogRegistrationSchema>;
2162
+ export type NormalizedAppEvent = z.infer<typeof normalizedAppEventSchema>;