@crediolabs/policy-builder-mcp 0.2.0 → 0.3.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.
@@ -0,0 +1,869 @@
1
+ import { ComposeUserResponsesSchema, GetInterpreterInfoInputSchema, InstallPolicyInputSchema, InterpreterOptionsSchema, NetworkSchema, PredicateNodeSchema, RecordedTransactionSchema, RecordTransactionInputSchema, RevokePolicyInputSchema, SynthesizePolicyInputSchema, ToolErrorSchema } from '@crediolabs/policy-synth/run';
2
+ import { z } from 'zod';
3
+ export { ComposeUserResponsesSchema, GetInterpreterInfoInputSchema, InstallPolicyInputSchema, InterpreterOptionsSchema, NetworkSchema, PredicateNodeSchema, RecordedTransactionSchema, RecordTransactionInputSchema, RevokePolicyInputSchema, SynthesizePolicyInputSchema, ToolErrorSchema, };
4
+ /** Flat ZodRawShape used for the MCP SDK tool registration. The body
5
+ * re-validates against `RecordTransactionInputSchema` so the mutual-exclusion
6
+ * rule still fires (the SDK does not invoke `.refine()` at registration time). */
7
+ export declare const RecordTransactionToolShape: {
8
+ readonly hash: z.ZodOptional<z.ZodString>;
9
+ readonly xdr: z.ZodOptional<z.ZodString>;
10
+ readonly network: z.ZodEnum<["mainnet", "testnet"]>;
11
+ readonly confidenceOverride: z.ZodOptional<z.ZodNumber>;
12
+ };
13
+ /** Flat ZodRawShape used for MCP tool registration. Every field is optional
14
+ * so the JSON-Schema the SDK exposes to clients stays permissive; the body
15
+ * re-validates against the strict schema. */
16
+ export declare const SynthesizePolicyToolShape: {
17
+ readonly source: z.ZodOptional<z.ZodLiteral<"recording">>;
18
+ readonly recordedTx: z.ZodOptional<z.ZodObject<{
19
+ network: z.ZodEnum<["mainnet", "testnet"]>;
20
+ signers: z.ZodArray<z.ZodString, "many">;
21
+ invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
22
+ tokenMovements: z.ZodArray<z.ZodObject<{
23
+ token: z.ZodString;
24
+ from: z.ZodString;
25
+ to: z.ZodString;
26
+ amount: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ from: string;
29
+ to: string;
30
+ amount: string;
31
+ token: string;
32
+ }, {
33
+ from: string;
34
+ to: string;
35
+ amount: string;
36
+ token: string;
37
+ }>, "many">;
38
+ events: z.ZodArray<z.ZodObject<{
39
+ contract: z.ZodString;
40
+ topics: z.ZodArray<z.ZodString, "many">;
41
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ contract: string;
44
+ topics: string[];
45
+ data?: unknown;
46
+ }, {
47
+ contract: string;
48
+ topics: string[];
49
+ data?: unknown;
50
+ }>, "many">;
51
+ authEntries: z.ZodArray<z.ZodUnknown, "many">;
52
+ ledgerSequence: z.ZodNumber;
53
+ fetchedAt: z.ZodNumber;
54
+ parseConfidence: z.ZodObject<{
55
+ overall: z.ZodNumber;
56
+ knownContracts: z.ZodArray<z.ZodString, "many">;
57
+ unknownContracts: z.ZodArray<z.ZodObject<{
58
+ contract: z.ZodString;
59
+ reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ contract: string;
62
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
63
+ }, {
64
+ contract: string;
65
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
66
+ }>, "many">;
67
+ opaqueScVals: z.ZodArray<z.ZodObject<{
68
+ path: z.ZodString;
69
+ type: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ type: string;
72
+ path: string;
73
+ }, {
74
+ type: string;
75
+ path: string;
76
+ }>, "many">;
77
+ thresholdUsed: z.ZodNumber;
78
+ }, "strip", z.ZodTypeAny, {
79
+ opaqueScVals: {
80
+ type: string;
81
+ path: string;
82
+ }[];
83
+ unknownContracts: {
84
+ contract: string;
85
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
86
+ }[];
87
+ overall: number;
88
+ knownContracts: string[];
89
+ thresholdUsed: number;
90
+ }, {
91
+ opaqueScVals: {
92
+ type: string;
93
+ path: string;
94
+ }[];
95
+ unknownContracts: {
96
+ contract: string;
97
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
98
+ }[];
99
+ overall: number;
100
+ knownContracts: string[];
101
+ thresholdUsed: number;
102
+ }>;
103
+ sourceAccount: z.ZodString;
104
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
105
+ network: z.ZodEnum<["mainnet", "testnet"]>;
106
+ signers: z.ZodArray<z.ZodString, "many">;
107
+ invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
108
+ tokenMovements: z.ZodArray<z.ZodObject<{
109
+ token: z.ZodString;
110
+ from: z.ZodString;
111
+ to: z.ZodString;
112
+ amount: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ from: string;
115
+ to: string;
116
+ amount: string;
117
+ token: string;
118
+ }, {
119
+ from: string;
120
+ to: string;
121
+ amount: string;
122
+ token: string;
123
+ }>, "many">;
124
+ events: z.ZodArray<z.ZodObject<{
125
+ contract: z.ZodString;
126
+ topics: z.ZodArray<z.ZodString, "many">;
127
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ contract: string;
130
+ topics: string[];
131
+ data?: unknown;
132
+ }, {
133
+ contract: string;
134
+ topics: string[];
135
+ data?: unknown;
136
+ }>, "many">;
137
+ authEntries: z.ZodArray<z.ZodUnknown, "many">;
138
+ ledgerSequence: z.ZodNumber;
139
+ fetchedAt: z.ZodNumber;
140
+ parseConfidence: z.ZodObject<{
141
+ overall: z.ZodNumber;
142
+ knownContracts: z.ZodArray<z.ZodString, "many">;
143
+ unknownContracts: z.ZodArray<z.ZodObject<{
144
+ contract: z.ZodString;
145
+ reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ contract: string;
148
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
149
+ }, {
150
+ contract: string;
151
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
152
+ }>, "many">;
153
+ opaqueScVals: z.ZodArray<z.ZodObject<{
154
+ path: z.ZodString;
155
+ type: z.ZodString;
156
+ }, "strip", z.ZodTypeAny, {
157
+ type: string;
158
+ path: string;
159
+ }, {
160
+ type: string;
161
+ path: string;
162
+ }>, "many">;
163
+ thresholdUsed: z.ZodNumber;
164
+ }, "strip", z.ZodTypeAny, {
165
+ opaqueScVals: {
166
+ type: string;
167
+ path: string;
168
+ }[];
169
+ unknownContracts: {
170
+ contract: string;
171
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
172
+ }[];
173
+ overall: number;
174
+ knownContracts: string[];
175
+ thresholdUsed: number;
176
+ }, {
177
+ opaqueScVals: {
178
+ type: string;
179
+ path: string;
180
+ }[];
181
+ unknownContracts: {
182
+ contract: string;
183
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
184
+ }[];
185
+ overall: number;
186
+ knownContracts: string[];
187
+ thresholdUsed: number;
188
+ }>;
189
+ sourceAccount: z.ZodString;
190
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
191
+ network: z.ZodEnum<["mainnet", "testnet"]>;
192
+ signers: z.ZodArray<z.ZodString, "many">;
193
+ invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
194
+ tokenMovements: z.ZodArray<z.ZodObject<{
195
+ token: z.ZodString;
196
+ from: z.ZodString;
197
+ to: z.ZodString;
198
+ amount: z.ZodString;
199
+ }, "strip", z.ZodTypeAny, {
200
+ from: string;
201
+ to: string;
202
+ amount: string;
203
+ token: string;
204
+ }, {
205
+ from: string;
206
+ to: string;
207
+ amount: string;
208
+ token: string;
209
+ }>, "many">;
210
+ events: z.ZodArray<z.ZodObject<{
211
+ contract: z.ZodString;
212
+ topics: z.ZodArray<z.ZodString, "many">;
213
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ contract: string;
216
+ topics: string[];
217
+ data?: unknown;
218
+ }, {
219
+ contract: string;
220
+ topics: string[];
221
+ data?: unknown;
222
+ }>, "many">;
223
+ authEntries: z.ZodArray<z.ZodUnknown, "many">;
224
+ ledgerSequence: z.ZodNumber;
225
+ fetchedAt: z.ZodNumber;
226
+ parseConfidence: z.ZodObject<{
227
+ overall: z.ZodNumber;
228
+ knownContracts: z.ZodArray<z.ZodString, "many">;
229
+ unknownContracts: z.ZodArray<z.ZodObject<{
230
+ contract: z.ZodString;
231
+ reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ contract: string;
234
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
235
+ }, {
236
+ contract: string;
237
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
238
+ }>, "many">;
239
+ opaqueScVals: z.ZodArray<z.ZodObject<{
240
+ path: z.ZodString;
241
+ type: z.ZodString;
242
+ }, "strip", z.ZodTypeAny, {
243
+ type: string;
244
+ path: string;
245
+ }, {
246
+ type: string;
247
+ path: string;
248
+ }>, "many">;
249
+ thresholdUsed: z.ZodNumber;
250
+ }, "strip", z.ZodTypeAny, {
251
+ opaqueScVals: {
252
+ type: string;
253
+ path: string;
254
+ }[];
255
+ unknownContracts: {
256
+ contract: string;
257
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
258
+ }[];
259
+ overall: number;
260
+ knownContracts: string[];
261
+ thresholdUsed: number;
262
+ }, {
263
+ opaqueScVals: {
264
+ type: string;
265
+ path: string;
266
+ }[];
267
+ unknownContracts: {
268
+ contract: string;
269
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
270
+ }[];
271
+ overall: number;
272
+ knownContracts: string[];
273
+ thresholdUsed: number;
274
+ }>;
275
+ sourceAccount: z.ZodString;
276
+ }, z.ZodTypeAny, "passthrough">>>;
277
+ readonly network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
278
+ readonly userResponses: z.ZodOptional<z.ZodObject<{
279
+ validUntilLedger: z.ZodOptional<z.ZodNumber>;
280
+ limitAmount: z.ZodOptional<z.ZodString>;
281
+ swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
282
+ }, "strict", z.ZodTypeAny, {
283
+ limitAmount?: string | undefined;
284
+ validUntilLedger?: number | undefined;
285
+ swapRecipientAllowlist?: string[] | undefined;
286
+ }, {
287
+ limitAmount?: string | undefined;
288
+ validUntilLedger?: number | undefined;
289
+ swapRecipientAllowlist?: string[] | undefined;
290
+ }>>;
291
+ readonly confidenceOverride: z.ZodOptional<z.ZodObject<{
292
+ threshold: z.ZodNumber;
293
+ }, "strip", z.ZodTypeAny, {
294
+ threshold: number;
295
+ }, {
296
+ threshold: number;
297
+ }>>;
298
+ readonly interpreter: z.ZodOptional<z.ZodObject<{
299
+ smartAccountAddress: z.ZodString;
300
+ installNonce: z.ZodOptional<z.ZodNumber>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ smartAccountAddress: string;
303
+ installNonce?: number | undefined;
304
+ }, {
305
+ smartAccountAddress: string;
306
+ installNonce?: number | undefined;
307
+ }>>;
308
+ readonly explain: z.ZodOptional<z.ZodBoolean>;
309
+ };
310
+ export declare const SimulatePolicyToolShape: {
311
+ readonly predicate: z.ZodType<unknown, z.ZodTypeDef, unknown>;
312
+ readonly permitTx: z.ZodObject<{
313
+ network: z.ZodEnum<["mainnet", "testnet"]>;
314
+ signers: z.ZodArray<z.ZodString, "many">;
315
+ invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
316
+ tokenMovements: z.ZodArray<z.ZodObject<{
317
+ token: z.ZodString;
318
+ from: z.ZodString;
319
+ to: z.ZodString;
320
+ amount: z.ZodString;
321
+ }, "strip", z.ZodTypeAny, {
322
+ from: string;
323
+ to: string;
324
+ amount: string;
325
+ token: string;
326
+ }, {
327
+ from: string;
328
+ to: string;
329
+ amount: string;
330
+ token: string;
331
+ }>, "many">;
332
+ events: z.ZodArray<z.ZodObject<{
333
+ contract: z.ZodString;
334
+ topics: z.ZodArray<z.ZodString, "many">;
335
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ contract: string;
338
+ topics: string[];
339
+ data?: unknown;
340
+ }, {
341
+ contract: string;
342
+ topics: string[];
343
+ data?: unknown;
344
+ }>, "many">;
345
+ authEntries: z.ZodArray<z.ZodUnknown, "many">;
346
+ ledgerSequence: z.ZodNumber;
347
+ fetchedAt: z.ZodNumber;
348
+ parseConfidence: z.ZodObject<{
349
+ overall: z.ZodNumber;
350
+ knownContracts: z.ZodArray<z.ZodString, "many">;
351
+ unknownContracts: z.ZodArray<z.ZodObject<{
352
+ contract: z.ZodString;
353
+ reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ contract: string;
356
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
357
+ }, {
358
+ contract: string;
359
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
360
+ }>, "many">;
361
+ opaqueScVals: z.ZodArray<z.ZodObject<{
362
+ path: z.ZodString;
363
+ type: z.ZodString;
364
+ }, "strip", z.ZodTypeAny, {
365
+ type: string;
366
+ path: string;
367
+ }, {
368
+ type: string;
369
+ path: string;
370
+ }>, "many">;
371
+ thresholdUsed: z.ZodNumber;
372
+ }, "strip", z.ZodTypeAny, {
373
+ opaqueScVals: {
374
+ type: string;
375
+ path: string;
376
+ }[];
377
+ unknownContracts: {
378
+ contract: string;
379
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
380
+ }[];
381
+ overall: number;
382
+ knownContracts: string[];
383
+ thresholdUsed: number;
384
+ }, {
385
+ opaqueScVals: {
386
+ type: string;
387
+ path: string;
388
+ }[];
389
+ unknownContracts: {
390
+ contract: string;
391
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
392
+ }[];
393
+ overall: number;
394
+ knownContracts: string[];
395
+ thresholdUsed: number;
396
+ }>;
397
+ sourceAccount: z.ZodString;
398
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
399
+ network: z.ZodEnum<["mainnet", "testnet"]>;
400
+ signers: z.ZodArray<z.ZodString, "many">;
401
+ invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
402
+ tokenMovements: z.ZodArray<z.ZodObject<{
403
+ token: z.ZodString;
404
+ from: z.ZodString;
405
+ to: z.ZodString;
406
+ amount: z.ZodString;
407
+ }, "strip", z.ZodTypeAny, {
408
+ from: string;
409
+ to: string;
410
+ amount: string;
411
+ token: string;
412
+ }, {
413
+ from: string;
414
+ to: string;
415
+ amount: string;
416
+ token: string;
417
+ }>, "many">;
418
+ events: z.ZodArray<z.ZodObject<{
419
+ contract: z.ZodString;
420
+ topics: z.ZodArray<z.ZodString, "many">;
421
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ contract: string;
424
+ topics: string[];
425
+ data?: unknown;
426
+ }, {
427
+ contract: string;
428
+ topics: string[];
429
+ data?: unknown;
430
+ }>, "many">;
431
+ authEntries: z.ZodArray<z.ZodUnknown, "many">;
432
+ ledgerSequence: z.ZodNumber;
433
+ fetchedAt: z.ZodNumber;
434
+ parseConfidence: z.ZodObject<{
435
+ overall: z.ZodNumber;
436
+ knownContracts: z.ZodArray<z.ZodString, "many">;
437
+ unknownContracts: z.ZodArray<z.ZodObject<{
438
+ contract: z.ZodString;
439
+ reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ contract: string;
442
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
443
+ }, {
444
+ contract: string;
445
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
446
+ }>, "many">;
447
+ opaqueScVals: z.ZodArray<z.ZodObject<{
448
+ path: z.ZodString;
449
+ type: z.ZodString;
450
+ }, "strip", z.ZodTypeAny, {
451
+ type: string;
452
+ path: string;
453
+ }, {
454
+ type: string;
455
+ path: string;
456
+ }>, "many">;
457
+ thresholdUsed: z.ZodNumber;
458
+ }, "strip", z.ZodTypeAny, {
459
+ opaqueScVals: {
460
+ type: string;
461
+ path: string;
462
+ }[];
463
+ unknownContracts: {
464
+ contract: string;
465
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
466
+ }[];
467
+ overall: number;
468
+ knownContracts: string[];
469
+ thresholdUsed: number;
470
+ }, {
471
+ opaqueScVals: {
472
+ type: string;
473
+ path: string;
474
+ }[];
475
+ unknownContracts: {
476
+ contract: string;
477
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
478
+ }[];
479
+ overall: number;
480
+ knownContracts: string[];
481
+ thresholdUsed: number;
482
+ }>;
483
+ sourceAccount: z.ZodString;
484
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
485
+ network: z.ZodEnum<["mainnet", "testnet"]>;
486
+ signers: z.ZodArray<z.ZodString, "many">;
487
+ invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
488
+ tokenMovements: z.ZodArray<z.ZodObject<{
489
+ token: z.ZodString;
490
+ from: z.ZodString;
491
+ to: z.ZodString;
492
+ amount: z.ZodString;
493
+ }, "strip", z.ZodTypeAny, {
494
+ from: string;
495
+ to: string;
496
+ amount: string;
497
+ token: string;
498
+ }, {
499
+ from: string;
500
+ to: string;
501
+ amount: string;
502
+ token: string;
503
+ }>, "many">;
504
+ events: z.ZodArray<z.ZodObject<{
505
+ contract: z.ZodString;
506
+ topics: z.ZodArray<z.ZodString, "many">;
507
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ contract: string;
510
+ topics: string[];
511
+ data?: unknown;
512
+ }, {
513
+ contract: string;
514
+ topics: string[];
515
+ data?: unknown;
516
+ }>, "many">;
517
+ authEntries: z.ZodArray<z.ZodUnknown, "many">;
518
+ ledgerSequence: z.ZodNumber;
519
+ fetchedAt: z.ZodNumber;
520
+ parseConfidence: z.ZodObject<{
521
+ overall: z.ZodNumber;
522
+ knownContracts: z.ZodArray<z.ZodString, "many">;
523
+ unknownContracts: z.ZodArray<z.ZodObject<{
524
+ contract: z.ZodString;
525
+ reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ contract: string;
528
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
529
+ }, {
530
+ contract: string;
531
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
532
+ }>, "many">;
533
+ opaqueScVals: z.ZodArray<z.ZodObject<{
534
+ path: z.ZodString;
535
+ type: z.ZodString;
536
+ }, "strip", z.ZodTypeAny, {
537
+ type: string;
538
+ path: string;
539
+ }, {
540
+ type: string;
541
+ path: string;
542
+ }>, "many">;
543
+ thresholdUsed: z.ZodNumber;
544
+ }, "strip", z.ZodTypeAny, {
545
+ opaqueScVals: {
546
+ type: string;
547
+ path: string;
548
+ }[];
549
+ unknownContracts: {
550
+ contract: string;
551
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
552
+ }[];
553
+ overall: number;
554
+ knownContracts: string[];
555
+ thresholdUsed: number;
556
+ }, {
557
+ opaqueScVals: {
558
+ type: string;
559
+ path: string;
560
+ }[];
561
+ unknownContracts: {
562
+ contract: string;
563
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
564
+ }[];
565
+ overall: number;
566
+ knownContracts: string[];
567
+ thresholdUsed: number;
568
+ }>;
569
+ sourceAccount: z.ZodString;
570
+ }, z.ZodTypeAny, "passthrough">>;
571
+ readonly validUntilLedger: z.ZodOptional<z.ZodNumber>;
572
+ };
573
+ export declare const VerifyPolicyToolShape: {
574
+ readonly predicate: z.ZodType<unknown, z.ZodTypeDef, unknown>;
575
+ readonly permitTx: z.ZodObject<{
576
+ network: z.ZodEnum<["mainnet", "testnet"]>;
577
+ signers: z.ZodArray<z.ZodString, "many">;
578
+ invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
579
+ tokenMovements: z.ZodArray<z.ZodObject<{
580
+ token: z.ZodString;
581
+ from: z.ZodString;
582
+ to: z.ZodString;
583
+ amount: z.ZodString;
584
+ }, "strip", z.ZodTypeAny, {
585
+ from: string;
586
+ to: string;
587
+ amount: string;
588
+ token: string;
589
+ }, {
590
+ from: string;
591
+ to: string;
592
+ amount: string;
593
+ token: string;
594
+ }>, "many">;
595
+ events: z.ZodArray<z.ZodObject<{
596
+ contract: z.ZodString;
597
+ topics: z.ZodArray<z.ZodString, "many">;
598
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ contract: string;
601
+ topics: string[];
602
+ data?: unknown;
603
+ }, {
604
+ contract: string;
605
+ topics: string[];
606
+ data?: unknown;
607
+ }>, "many">;
608
+ authEntries: z.ZodArray<z.ZodUnknown, "many">;
609
+ ledgerSequence: z.ZodNumber;
610
+ fetchedAt: z.ZodNumber;
611
+ parseConfidence: z.ZodObject<{
612
+ overall: z.ZodNumber;
613
+ knownContracts: z.ZodArray<z.ZodString, "many">;
614
+ unknownContracts: z.ZodArray<z.ZodObject<{
615
+ contract: z.ZodString;
616
+ reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ contract: string;
619
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
620
+ }, {
621
+ contract: string;
622
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
623
+ }>, "many">;
624
+ opaqueScVals: z.ZodArray<z.ZodObject<{
625
+ path: z.ZodString;
626
+ type: z.ZodString;
627
+ }, "strip", z.ZodTypeAny, {
628
+ type: string;
629
+ path: string;
630
+ }, {
631
+ type: string;
632
+ path: string;
633
+ }>, "many">;
634
+ thresholdUsed: z.ZodNumber;
635
+ }, "strip", z.ZodTypeAny, {
636
+ opaqueScVals: {
637
+ type: string;
638
+ path: string;
639
+ }[];
640
+ unknownContracts: {
641
+ contract: string;
642
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
643
+ }[];
644
+ overall: number;
645
+ knownContracts: string[];
646
+ thresholdUsed: number;
647
+ }, {
648
+ opaqueScVals: {
649
+ type: string;
650
+ path: string;
651
+ }[];
652
+ unknownContracts: {
653
+ contract: string;
654
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
655
+ }[];
656
+ overall: number;
657
+ knownContracts: string[];
658
+ thresholdUsed: number;
659
+ }>;
660
+ sourceAccount: z.ZodString;
661
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
662
+ network: z.ZodEnum<["mainnet", "testnet"]>;
663
+ signers: z.ZodArray<z.ZodString, "many">;
664
+ invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
665
+ tokenMovements: z.ZodArray<z.ZodObject<{
666
+ token: z.ZodString;
667
+ from: z.ZodString;
668
+ to: z.ZodString;
669
+ amount: z.ZodString;
670
+ }, "strip", z.ZodTypeAny, {
671
+ from: string;
672
+ to: string;
673
+ amount: string;
674
+ token: string;
675
+ }, {
676
+ from: string;
677
+ to: string;
678
+ amount: string;
679
+ token: string;
680
+ }>, "many">;
681
+ events: z.ZodArray<z.ZodObject<{
682
+ contract: z.ZodString;
683
+ topics: z.ZodArray<z.ZodString, "many">;
684
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ contract: string;
687
+ topics: string[];
688
+ data?: unknown;
689
+ }, {
690
+ contract: string;
691
+ topics: string[];
692
+ data?: unknown;
693
+ }>, "many">;
694
+ authEntries: z.ZodArray<z.ZodUnknown, "many">;
695
+ ledgerSequence: z.ZodNumber;
696
+ fetchedAt: z.ZodNumber;
697
+ parseConfidence: z.ZodObject<{
698
+ overall: z.ZodNumber;
699
+ knownContracts: z.ZodArray<z.ZodString, "many">;
700
+ unknownContracts: z.ZodArray<z.ZodObject<{
701
+ contract: z.ZodString;
702
+ reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ contract: string;
705
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
706
+ }, {
707
+ contract: string;
708
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
709
+ }>, "many">;
710
+ opaqueScVals: z.ZodArray<z.ZodObject<{
711
+ path: z.ZodString;
712
+ type: z.ZodString;
713
+ }, "strip", z.ZodTypeAny, {
714
+ type: string;
715
+ path: string;
716
+ }, {
717
+ type: string;
718
+ path: string;
719
+ }>, "many">;
720
+ thresholdUsed: z.ZodNumber;
721
+ }, "strip", z.ZodTypeAny, {
722
+ opaqueScVals: {
723
+ type: string;
724
+ path: string;
725
+ }[];
726
+ unknownContracts: {
727
+ contract: string;
728
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
729
+ }[];
730
+ overall: number;
731
+ knownContracts: string[];
732
+ thresholdUsed: number;
733
+ }, {
734
+ opaqueScVals: {
735
+ type: string;
736
+ path: string;
737
+ }[];
738
+ unknownContracts: {
739
+ contract: string;
740
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
741
+ }[];
742
+ overall: number;
743
+ knownContracts: string[];
744
+ thresholdUsed: number;
745
+ }>;
746
+ sourceAccount: z.ZodString;
747
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
748
+ network: z.ZodEnum<["mainnet", "testnet"]>;
749
+ signers: z.ZodArray<z.ZodString, "many">;
750
+ invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
751
+ tokenMovements: z.ZodArray<z.ZodObject<{
752
+ token: z.ZodString;
753
+ from: z.ZodString;
754
+ to: z.ZodString;
755
+ amount: z.ZodString;
756
+ }, "strip", z.ZodTypeAny, {
757
+ from: string;
758
+ to: string;
759
+ amount: string;
760
+ token: string;
761
+ }, {
762
+ from: string;
763
+ to: string;
764
+ amount: string;
765
+ token: string;
766
+ }>, "many">;
767
+ events: z.ZodArray<z.ZodObject<{
768
+ contract: z.ZodString;
769
+ topics: z.ZodArray<z.ZodString, "many">;
770
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ contract: string;
773
+ topics: string[];
774
+ data?: unknown;
775
+ }, {
776
+ contract: string;
777
+ topics: string[];
778
+ data?: unknown;
779
+ }>, "many">;
780
+ authEntries: z.ZodArray<z.ZodUnknown, "many">;
781
+ ledgerSequence: z.ZodNumber;
782
+ fetchedAt: z.ZodNumber;
783
+ parseConfidence: z.ZodObject<{
784
+ overall: z.ZodNumber;
785
+ knownContracts: z.ZodArray<z.ZodString, "many">;
786
+ unknownContracts: z.ZodArray<z.ZodObject<{
787
+ contract: z.ZodString;
788
+ reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ contract: string;
791
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
792
+ }, {
793
+ contract: string;
794
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
795
+ }>, "many">;
796
+ opaqueScVals: z.ZodArray<z.ZodObject<{
797
+ path: z.ZodString;
798
+ type: z.ZodString;
799
+ }, "strip", z.ZodTypeAny, {
800
+ type: string;
801
+ path: string;
802
+ }, {
803
+ type: string;
804
+ path: string;
805
+ }>, "many">;
806
+ thresholdUsed: z.ZodNumber;
807
+ }, "strip", z.ZodTypeAny, {
808
+ opaqueScVals: {
809
+ type: string;
810
+ path: string;
811
+ }[];
812
+ unknownContracts: {
813
+ contract: string;
814
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
815
+ }[];
816
+ overall: number;
817
+ knownContracts: string[];
818
+ thresholdUsed: number;
819
+ }, {
820
+ opaqueScVals: {
821
+ type: string;
822
+ path: string;
823
+ }[];
824
+ unknownContracts: {
825
+ contract: string;
826
+ reason: "no-abi" | "version-mismatch" | "opaque-result";
827
+ }[];
828
+ overall: number;
829
+ knownContracts: string[];
830
+ thresholdUsed: number;
831
+ }>;
832
+ sourceAccount: z.ZodString;
833
+ }, z.ZodTypeAny, "passthrough">>;
834
+ readonly validUntilLedger: z.ZodOptional<z.ZodNumber>;
835
+ };
836
+ export type { GetInterpreterInfoInput, InstallPolicyInput, RevokePolicyInput, SimulatePolicyInput, VerifyPolicyInput, } from '@crediolabs/policy-synth/run';
837
+ /** Flat ZodRawShape for `install_policy`. `rule` is typed as `z.unknown()`
838
+ * at the tool boundary because the rule schema is a discriminated union
839
+ * the SDK does not accept at registration; the body re-validates
840
+ * against `InstallPolicyInputSchema`. `encodedPredicate` /
841
+ * `predicateHash` live INSIDE `rule.policies[].predicateBlobBase64`
842
+ * (the policy already carries the encoded predicate); the run-layer
843
+ * extracts them from there. */
844
+ export declare const InstallPolicyToolShape: {
845
+ readonly rule: z.ZodOptional<z.ZodUnknown>;
846
+ readonly installNonce: z.ZodOptional<z.ZodNumber>;
847
+ readonly interpreterAddress: z.ZodOptional<z.ZodString>;
848
+ readonly smartAccount: z.ZodOptional<z.ZodString>;
849
+ readonly sourceAccount: z.ZodOptional<z.ZodString>;
850
+ readonly rpcUrl: z.ZodOptional<z.ZodString>;
851
+ readonly baseFee: z.ZodOptional<z.ZodNumber>;
852
+ };
853
+ /** Flat ZodRawShape for `revoke_policy`. */
854
+ export declare const RevokePolicyToolShape: {
855
+ readonly ruleId: z.ZodOptional<z.ZodNumber>;
856
+ readonly interpreterAddress: z.ZodOptional<z.ZodString>;
857
+ readonly smartAccount: z.ZodOptional<z.ZodString>;
858
+ readonly sourceAccount: z.ZodOptional<z.ZodString>;
859
+ readonly rpcUrl: z.ZodOptional<z.ZodString>;
860
+ readonly baseFee: z.ZodOptional<z.ZodNumber>;
861
+ };
862
+ /** Flat ZodRawShape for `get_interpreter_info`. `verifyLive` triggers an
863
+ * optional RPC `grammar_version()` call so the caller can verify the
864
+ * deployed contract matches the pin. */
865
+ export declare const GetInterpreterInfoToolShape: {
866
+ readonly network: z.ZodOptional<z.ZodEnum<["mainnet", "testnet"]>>;
867
+ readonly verifyLive: z.ZodOptional<z.ZodBoolean>;
868
+ readonly rpcUrl: z.ZodOptional<z.ZodString>;
869
+ };