@crediolabs/policy-synth 0.1.18 → 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.
- package/README.md +6 -5
- package/dist/adapters/interpreter/adapter.d.ts +19 -25
- package/dist/adapters/interpreter/adapter.js +54 -487
- package/dist/adapters/interpreter/index.d.ts +1 -1
- package/dist/adapters/interpreter/index.js +1 -1
- package/dist/adapters/oz/adapter.js +1 -15
- package/dist/errors.d.ts +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -4
- package/dist/install/build-add-context-rule.d.ts +3 -11
- package/dist/install/build-add-context-rule.js +2 -97
- package/dist/install/build-install-policy.d.ts +4 -53
- package/dist/install/build-install-policy.js +44 -123
- package/dist/ir/index.d.ts +1 -1
- package/dist/ir/types.d.ts +7 -76
- package/dist/ir/types.js +0 -2
- package/dist/predicate/decode.d.ts +1 -1
- package/dist/predicate/decode.js +2 -70
- package/dist/predicate/encode.js +45 -229
- package/dist/predicate/from-json.js +1 -42
- package/dist/record/decode.js +3 -8
- package/dist/review-card/builder.d.ts +4 -3
- package/dist/review-card/builder.js +18 -162
- package/dist/review-card/cross-check.js +2 -105
- package/dist/review-card/render-leaf.d.ts +4 -0
- package/dist/review-card/render-leaf.js +47 -0
- package/dist/run/index.d.ts +35 -53
- package/dist/run/index.js +115 -156
- package/dist/run/schemas.d.ts +168 -1650
- package/dist/run/schemas.js +36 -199
- package/dist/seams/types.d.ts +0 -2
- package/dist/simulate/deny-cases.d.ts +26 -0
- package/dist/simulate/deny-cases.js +282 -0
- package/dist/simulate/evaluate.d.ts +18 -0
- package/dist/simulate/evaluate.js +271 -0
- package/dist/simulate/index.d.ts +4 -0
- package/dist/simulate/index.js +8 -0
- package/dist/synth/compose-from-recording.d.ts +24 -51
- package/dist/synth/compose-from-recording.js +120 -282
- package/dist/synth/deny-cases.d.ts +5 -7
- package/dist/synth/deny-cases.js +23 -373
- package/dist/synth/evaluate.d.ts +0 -21
- package/dist/synth/evaluate.js +56 -336
- package/dist/synth/index.d.ts +0 -5
- package/dist/synth/index.js +0 -5
- package/dist/synth/permit-context.d.ts +2 -9
- package/dist/synth/permit-context.js +1 -82
- package/dist/synth/synthesize-from-recording.d.ts +1 -29
- package/dist/synth/synthesize-from-recording.js +41 -356
- package/dist/types.d.ts +8 -60
- package/dist/types.js +5 -2
- package/dist/verify/simulate.d.ts +1 -14
- package/dist/verify/simulate.js +2 -88
- package/dist/verify/verify.d.ts +1 -7
- package/dist/verify/verify.js +0 -8
- package/dist-cjs/adapters/interpreter/adapter.d.ts +19 -25
- package/dist-cjs/adapters/interpreter/adapter.js +56 -489
- package/dist-cjs/adapters/interpreter/index.d.ts +1 -1
- package/dist-cjs/adapters/interpreter/index.js +1 -2
- package/dist-cjs/adapters/oz/adapter.js +1 -15
- package/dist-cjs/errors.d.ts +1 -1
- package/dist-cjs/index.d.ts +1 -4
- package/dist-cjs/index.js +1 -4
- package/dist-cjs/install/build-add-context-rule.d.ts +3 -11
- package/dist-cjs/install/build-add-context-rule.js +1 -96
- package/dist-cjs/install/build-install-policy.d.ts +4 -53
- package/dist-cjs/install/build-install-policy.js +44 -122
- package/dist-cjs/ir/index.d.ts +1 -1
- package/dist-cjs/ir/types.d.ts +7 -76
- package/dist-cjs/ir/types.js +0 -2
- package/dist-cjs/predicate/decode.d.ts +1 -1
- package/dist-cjs/predicate/decode.js +2 -70
- package/dist-cjs/predicate/encode.js +45 -229
- package/dist-cjs/predicate/from-json.js +1 -42
- package/dist-cjs/record/decode.js +3 -8
- package/dist-cjs/review-card/builder.d.ts +4 -3
- package/dist-cjs/review-card/builder.js +23 -167
- package/dist-cjs/review-card/cross-check.js +7 -110
- package/dist-cjs/review-card/render-leaf.d.ts +4 -0
- package/dist-cjs/review-card/render-leaf.js +52 -0
- package/dist-cjs/run/index.d.ts +35 -53
- package/dist-cjs/run/index.js +116 -162
- package/dist-cjs/run/schemas.d.ts +168 -1650
- package/dist-cjs/run/schemas.js +37 -200
- package/dist-cjs/seams/types.d.ts +0 -2
- package/dist-cjs/simulate/deny-cases.d.ts +26 -0
- package/dist-cjs/simulate/deny-cases.js +286 -0
- package/dist-cjs/simulate/evaluate.d.ts +18 -0
- package/dist-cjs/simulate/evaluate.js +274 -0
- package/dist-cjs/simulate/index.d.ts +4 -0
- package/dist-cjs/simulate/index.js +13 -0
- package/dist-cjs/synth/compose-from-recording.d.ts +24 -51
- package/dist-cjs/synth/compose-from-recording.js +120 -282
- package/dist-cjs/synth/deny-cases.d.ts +5 -7
- package/dist-cjs/synth/deny-cases.js +23 -374
- package/dist-cjs/synth/evaluate.d.ts +0 -21
- package/dist-cjs/synth/evaluate.js +57 -337
- package/dist-cjs/synth/index.d.ts +0 -5
- package/dist-cjs/synth/index.js +1 -11
- package/dist-cjs/synth/permit-context.d.ts +2 -9
- package/dist-cjs/synth/permit-context.js +1 -82
- package/dist-cjs/synth/synthesize-from-recording.d.ts +1 -29
- package/dist-cjs/synth/synthesize-from-recording.js +39 -354
- package/dist-cjs/types.d.ts +8 -60
- package/dist-cjs/types.js +6 -3
- package/dist-cjs/verify/simulate.d.ts +1 -14
- package/dist-cjs/verify/simulate.js +2 -88
- package/dist-cjs/verify/verify.d.ts +1 -7
- package/dist-cjs/verify/verify.js +0 -8
- package/package.json +4 -4
- package/src/adapters/interpreter/adapter.ts +76 -572
- package/src/errors.ts +0 -19
- package/src/index.ts +1 -4
- package/src/install/build-add-context-rule.ts +4 -127
- package/src/install/build-install-policy.ts +93 -214
- package/src/predicate/decode.ts +2 -70
- package/src/predicate/encode.ts +49 -261
- package/src/predicate/from-json.ts +1 -43
- package/src/record/decode.ts +3 -8
- package/src/review-card/builder.ts +19 -168
- package/src/review-card/cross-check.ts +3 -105
- package/src/review-card/render-leaf.ts +48 -0
- package/src/run/index.ts +130 -186
- package/src/run/schemas.ts +38 -214
- package/src/simulate/deny-cases.ts +334 -0
- package/src/simulate/evaluate.ts +284 -0
- package/src/simulate/index.ts +11 -0
- package/src/synth/compose-from-recording.ts +148 -347
- package/src/synth/index.ts +0 -13
- package/src/synth/synthesize-from-recording.ts +43 -456
- package/src/types.ts +13 -49
- package/dist/install/build-install-predicate.d.ts +0 -96
- package/dist/install/build-install-predicate.js +0 -444
- package/dist-cjs/install/build-install-predicate.d.ts +0 -96
- package/dist-cjs/install/build-install-predicate.js +0 -479
- package/src/adapters/interpreter/index.ts +0 -8
- package/src/adapters/oz/adapter.ts +0 -376
- package/src/adapters/oz/index.ts +0 -9
- package/src/codegen/compile-gate.ts +0 -167
- package/src/codegen/index.ts +0 -17
- package/src/codegen/template.ts +0 -165
- package/src/ir/index.ts +0 -13
- package/src/ir/types.ts +0 -132
- package/src/mandate/index.ts +0 -4
- package/src/mandate/to-ir.ts +0 -71
- package/src/mandate/types.ts +0 -21
- package/src/seams/index.ts +0 -11
- package/src/seams/types.ts +0 -81
- package/src/synth/deny-cases.ts +0 -663
- package/src/synth/evaluate.ts +0 -613
- package/src/synth/harness.ts +0 -68
- package/src/synth/minimize.ts +0 -48
- package/src/synth/permit-context.ts +0 -136
- package/src/synth/predicate-literals.ts +0 -27
- package/src/synth/synthesize-from-mandate.ts +0 -82
- package/src/verify/envelope.ts +0 -28
- package/src/verify/index.ts +0 -5
- package/src/verify/simulate.ts +0 -311
- package/src/verify/verify.ts +0 -243
|
@@ -14,15 +14,15 @@ export declare const TokenMovementSchema: z.ZodObject<{
|
|
|
14
14
|
to: z.ZodString;
|
|
15
15
|
amount: z.ZodString;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
amount: string;
|
|
18
|
-
token: string;
|
|
19
17
|
from: string;
|
|
20
18
|
to: string;
|
|
21
|
-
}, {
|
|
22
19
|
amount: string;
|
|
23
20
|
token: string;
|
|
21
|
+
}, {
|
|
24
22
|
from: string;
|
|
25
23
|
to: string;
|
|
24
|
+
amount: string;
|
|
25
|
+
token: string;
|
|
26
26
|
}>;
|
|
27
27
|
export declare const OnChainEventSchema: z.ZodObject<{
|
|
28
28
|
contract: z.ZodString;
|
|
@@ -100,15 +100,15 @@ export declare const RecordedTransactionSchema: z.ZodObject<{
|
|
|
100
100
|
to: z.ZodString;
|
|
101
101
|
amount: z.ZodString;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
amount: string;
|
|
104
|
-
token: string;
|
|
105
103
|
from: string;
|
|
106
104
|
to: string;
|
|
107
|
-
}, {
|
|
108
105
|
amount: string;
|
|
109
106
|
token: string;
|
|
107
|
+
}, {
|
|
110
108
|
from: string;
|
|
111
109
|
to: string;
|
|
110
|
+
amount: string;
|
|
111
|
+
token: string;
|
|
112
112
|
}>, "many">;
|
|
113
113
|
events: z.ZodArray<z.ZodObject<{
|
|
114
114
|
contract: z.ZodString;
|
|
@@ -186,15 +186,15 @@ export declare const RecordedTransactionSchema: z.ZodObject<{
|
|
|
186
186
|
to: z.ZodString;
|
|
187
187
|
amount: z.ZodString;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
amount: string;
|
|
190
|
-
token: string;
|
|
191
189
|
from: string;
|
|
192
190
|
to: string;
|
|
193
|
-
}, {
|
|
194
191
|
amount: string;
|
|
195
192
|
token: string;
|
|
193
|
+
}, {
|
|
196
194
|
from: string;
|
|
197
195
|
to: string;
|
|
196
|
+
amount: string;
|
|
197
|
+
token: string;
|
|
198
198
|
}>, "many">;
|
|
199
199
|
events: z.ZodArray<z.ZodObject<{
|
|
200
200
|
contract: z.ZodString;
|
|
@@ -272,15 +272,15 @@ export declare const RecordedTransactionSchema: z.ZodObject<{
|
|
|
272
272
|
to: z.ZodString;
|
|
273
273
|
amount: z.ZodString;
|
|
274
274
|
}, "strip", z.ZodTypeAny, {
|
|
275
|
-
amount: string;
|
|
276
|
-
token: string;
|
|
277
275
|
from: string;
|
|
278
276
|
to: string;
|
|
279
|
-
}, {
|
|
280
277
|
amount: string;
|
|
281
278
|
token: string;
|
|
279
|
+
}, {
|
|
282
280
|
from: string;
|
|
283
281
|
to: string;
|
|
282
|
+
amount: string;
|
|
283
|
+
token: string;
|
|
284
284
|
}>, "many">;
|
|
285
285
|
events: z.ZodArray<z.ZodObject<{
|
|
286
286
|
contract: z.ZodString;
|
|
@@ -349,205 +349,18 @@ export declare const RecordedTransactionSchema: z.ZodObject<{
|
|
|
349
349
|
}>;
|
|
350
350
|
sourceAccount: z.ZodString;
|
|
351
351
|
}, z.ZodTypeAny, "passthrough">>;
|
|
352
|
-
/** MandateSpec mirrors the core MandateSpec. The deterministic Mandate
|
|
353
|
-
* front-end needs no parseConfidence; the tool adapter injects the full
|
|
354
|
-
* confidence after synthesis so the orchestrator can compare. */
|
|
355
|
-
export declare const MandateSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
356
|
-
chain: z.ZodLiteral<"stellar">;
|
|
357
|
-
contract: z.ZodString;
|
|
358
|
-
method: z.ZodOptional<z.ZodString>;
|
|
359
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
360
|
-
token: z.ZodString;
|
|
361
|
-
limit: z.ZodString;
|
|
362
|
-
windowSeconds: z.ZodNumber;
|
|
363
|
-
}, "strip", z.ZodTypeAny, {
|
|
364
|
-
token: string;
|
|
365
|
-
limit: string;
|
|
366
|
-
windowSeconds: number;
|
|
367
|
-
}, {
|
|
368
|
-
token: string;
|
|
369
|
-
limit: string;
|
|
370
|
-
windowSeconds: number;
|
|
371
|
-
}>>;
|
|
372
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
373
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
374
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
375
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
376
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
377
|
-
}, "strip", z.ZodTypeAny, {
|
|
378
|
-
validUntilLedger?: number | undefined;
|
|
379
|
-
validUntilUnixSeconds?: number | undefined;
|
|
380
|
-
}, {
|
|
381
|
-
validUntilLedger?: number | undefined;
|
|
382
|
-
validUntilUnixSeconds?: number | undefined;
|
|
383
|
-
}>>;
|
|
384
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
385
|
-
chain: z.ZodLiteral<"stellar">;
|
|
386
|
-
contract: z.ZodString;
|
|
387
|
-
method: z.ZodOptional<z.ZodString>;
|
|
388
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
389
|
-
token: z.ZodString;
|
|
390
|
-
limit: z.ZodString;
|
|
391
|
-
windowSeconds: z.ZodNumber;
|
|
392
|
-
}, "strip", z.ZodTypeAny, {
|
|
393
|
-
token: string;
|
|
394
|
-
limit: string;
|
|
395
|
-
windowSeconds: number;
|
|
396
|
-
}, {
|
|
397
|
-
token: string;
|
|
398
|
-
limit: string;
|
|
399
|
-
windowSeconds: number;
|
|
400
|
-
}>>;
|
|
401
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
402
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
403
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
404
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
405
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
406
|
-
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
validUntilLedger?: number | undefined;
|
|
408
|
-
validUntilUnixSeconds?: number | undefined;
|
|
409
|
-
}, {
|
|
410
|
-
validUntilLedger?: number | undefined;
|
|
411
|
-
validUntilUnixSeconds?: number | undefined;
|
|
412
|
-
}>>;
|
|
413
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
414
|
-
chain: z.ZodLiteral<"stellar">;
|
|
415
|
-
contract: z.ZodString;
|
|
416
|
-
method: z.ZodOptional<z.ZodString>;
|
|
417
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
418
|
-
token: z.ZodString;
|
|
419
|
-
limit: z.ZodString;
|
|
420
|
-
windowSeconds: z.ZodNumber;
|
|
421
|
-
}, "strip", z.ZodTypeAny, {
|
|
422
|
-
token: string;
|
|
423
|
-
limit: string;
|
|
424
|
-
windowSeconds: number;
|
|
425
|
-
}, {
|
|
426
|
-
token: string;
|
|
427
|
-
limit: string;
|
|
428
|
-
windowSeconds: number;
|
|
429
|
-
}>>;
|
|
430
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
431
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
432
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
433
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
434
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
435
|
-
}, "strip", z.ZodTypeAny, {
|
|
436
|
-
validUntilLedger?: number | undefined;
|
|
437
|
-
validUntilUnixSeconds?: number | undefined;
|
|
438
|
-
}, {
|
|
439
|
-
validUntilLedger?: number | undefined;
|
|
440
|
-
validUntilUnixSeconds?: number | undefined;
|
|
441
|
-
}>>;
|
|
442
|
-
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
443
|
-
chain: z.ZodLiteral<"stellar">;
|
|
444
|
-
contract: z.ZodString;
|
|
445
|
-
method: z.ZodOptional<z.ZodString>;
|
|
446
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
447
|
-
token: z.ZodString;
|
|
448
|
-
limit: z.ZodString;
|
|
449
|
-
windowSeconds: z.ZodNumber;
|
|
450
|
-
}, "strip", z.ZodTypeAny, {
|
|
451
|
-
token: string;
|
|
452
|
-
limit: string;
|
|
453
|
-
windowSeconds: number;
|
|
454
|
-
}, {
|
|
455
|
-
token: string;
|
|
456
|
-
limit: string;
|
|
457
|
-
windowSeconds: number;
|
|
458
|
-
}>>;
|
|
459
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
460
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
461
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
462
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
463
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
464
|
-
}, "strip", z.ZodTypeAny, {
|
|
465
|
-
validUntilLedger?: number | undefined;
|
|
466
|
-
validUntilUnixSeconds?: number | undefined;
|
|
467
|
-
}, {
|
|
468
|
-
validUntilLedger?: number | undefined;
|
|
469
|
-
validUntilUnixSeconds?: number | undefined;
|
|
470
|
-
}>>;
|
|
471
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
472
|
-
chain: z.ZodLiteral<"stellar">;
|
|
473
|
-
contract: z.ZodString;
|
|
474
|
-
method: z.ZodOptional<z.ZodString>;
|
|
475
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
476
|
-
token: z.ZodString;
|
|
477
|
-
limit: z.ZodString;
|
|
478
|
-
windowSeconds: z.ZodNumber;
|
|
479
|
-
}, "strip", z.ZodTypeAny, {
|
|
480
|
-
token: string;
|
|
481
|
-
limit: string;
|
|
482
|
-
windowSeconds: number;
|
|
483
|
-
}, {
|
|
484
|
-
token: string;
|
|
485
|
-
limit: string;
|
|
486
|
-
windowSeconds: number;
|
|
487
|
-
}>>;
|
|
488
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
489
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
490
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
491
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
492
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
493
|
-
}, "strip", z.ZodTypeAny, {
|
|
494
|
-
validUntilLedger?: number | undefined;
|
|
495
|
-
validUntilUnixSeconds?: number | undefined;
|
|
496
|
-
}, {
|
|
497
|
-
validUntilLedger?: number | undefined;
|
|
498
|
-
validUntilUnixSeconds?: number | undefined;
|
|
499
|
-
}>>;
|
|
500
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
501
|
-
/** ComposeUserResponses mirrors the core. */
|
|
502
352
|
export declare const ComposeUserResponsesSchema: z.ZodObject<{
|
|
503
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
504
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
505
|
-
limitAmount: z.ZodOptional<z.ZodString>;
|
|
506
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
507
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
508
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
509
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
510
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
511
|
-
limitAmount: z.ZodOptional<z.ZodString>;
|
|
512
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
513
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
514
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
515
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
516
353
|
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
517
354
|
limitAmount: z.ZodOptional<z.ZodString>;
|
|
518
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
519
355
|
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
520
|
-
}, z.ZodTypeAny,
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
instances: z.ZodObject<{
|
|
525
|
-
spending_limit: z.ZodString;
|
|
526
|
-
simple_threshold: z.ZodString;
|
|
527
|
-
weighted_threshold: z.ZodString;
|
|
528
|
-
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
spending_limit: string;
|
|
530
|
-
simple_threshold: string;
|
|
531
|
-
weighted_threshold: string;
|
|
532
|
-
}, {
|
|
533
|
-
spending_limit: string;
|
|
534
|
-
simple_threshold: string;
|
|
535
|
-
weighted_threshold: string;
|
|
536
|
-
}>;
|
|
537
|
-
}, "strip", z.ZodTypeAny, {
|
|
538
|
-
network: "mainnet" | "testnet";
|
|
539
|
-
instances: {
|
|
540
|
-
spending_limit: string;
|
|
541
|
-
simple_threshold: string;
|
|
542
|
-
weighted_threshold: string;
|
|
543
|
-
};
|
|
356
|
+
}, "strict", z.ZodTypeAny, {
|
|
357
|
+
limitAmount?: string | undefined;
|
|
358
|
+
validUntilLedger?: number | undefined;
|
|
359
|
+
swapRecipientAllowlist?: string[] | undefined;
|
|
544
360
|
}, {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
simple_threshold: string;
|
|
549
|
-
weighted_threshold: string;
|
|
550
|
-
};
|
|
361
|
+
limitAmount?: string | undefined;
|
|
362
|
+
validUntilLedger?: number | undefined;
|
|
363
|
+
swapRecipientAllowlist?: string[] | undefined;
|
|
551
364
|
}>;
|
|
552
365
|
export declare const RecordTransactionInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
553
366
|
hash: z.ZodOptional<z.ZodString>;
|
|
@@ -586,279 +399,17 @@ export declare const RecordTransactionInputSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
586
399
|
confidenceOverride?: number | undefined;
|
|
587
400
|
}>;
|
|
588
401
|
export type RecordTransactionInput = z.infer<typeof RecordTransactionInputSchema>;
|
|
589
|
-
export declare const SynthesizePolicyMandateInputSchema: z.ZodObject<{
|
|
590
|
-
source: z.ZodLiteral<"mandate">;
|
|
591
|
-
mandate: z.ZodEffects<z.ZodObject<{
|
|
592
|
-
chain: z.ZodLiteral<"stellar">;
|
|
593
|
-
contract: z.ZodString;
|
|
594
|
-
method: z.ZodOptional<z.ZodString>;
|
|
595
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
596
|
-
token: z.ZodString;
|
|
597
|
-
limit: z.ZodString;
|
|
598
|
-
windowSeconds: z.ZodNumber;
|
|
599
|
-
}, "strip", z.ZodTypeAny, {
|
|
600
|
-
token: string;
|
|
601
|
-
limit: string;
|
|
602
|
-
windowSeconds: number;
|
|
603
|
-
}, {
|
|
604
|
-
token: string;
|
|
605
|
-
limit: string;
|
|
606
|
-
windowSeconds: number;
|
|
607
|
-
}>>;
|
|
608
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
609
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
610
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
611
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
612
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
613
|
-
}, "strip", z.ZodTypeAny, {
|
|
614
|
-
validUntilLedger?: number | undefined;
|
|
615
|
-
validUntilUnixSeconds?: number | undefined;
|
|
616
|
-
}, {
|
|
617
|
-
validUntilLedger?: number | undefined;
|
|
618
|
-
validUntilUnixSeconds?: number | undefined;
|
|
619
|
-
}>>;
|
|
620
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
621
|
-
chain: z.ZodLiteral<"stellar">;
|
|
622
|
-
contract: z.ZodString;
|
|
623
|
-
method: z.ZodOptional<z.ZodString>;
|
|
624
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
625
|
-
token: z.ZodString;
|
|
626
|
-
limit: z.ZodString;
|
|
627
|
-
windowSeconds: z.ZodNumber;
|
|
628
|
-
}, "strip", z.ZodTypeAny, {
|
|
629
|
-
token: string;
|
|
630
|
-
limit: string;
|
|
631
|
-
windowSeconds: number;
|
|
632
|
-
}, {
|
|
633
|
-
token: string;
|
|
634
|
-
limit: string;
|
|
635
|
-
windowSeconds: number;
|
|
636
|
-
}>>;
|
|
637
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
638
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
639
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
640
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
641
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
642
|
-
}, "strip", z.ZodTypeAny, {
|
|
643
|
-
validUntilLedger?: number | undefined;
|
|
644
|
-
validUntilUnixSeconds?: number | undefined;
|
|
645
|
-
}, {
|
|
646
|
-
validUntilLedger?: number | undefined;
|
|
647
|
-
validUntilUnixSeconds?: number | undefined;
|
|
648
|
-
}>>;
|
|
649
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
650
|
-
chain: z.ZodLiteral<"stellar">;
|
|
651
|
-
contract: z.ZodString;
|
|
652
|
-
method: z.ZodOptional<z.ZodString>;
|
|
653
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
654
|
-
token: z.ZodString;
|
|
655
|
-
limit: z.ZodString;
|
|
656
|
-
windowSeconds: z.ZodNumber;
|
|
657
|
-
}, "strip", z.ZodTypeAny, {
|
|
658
|
-
token: string;
|
|
659
|
-
limit: string;
|
|
660
|
-
windowSeconds: number;
|
|
661
|
-
}, {
|
|
662
|
-
token: string;
|
|
663
|
-
limit: string;
|
|
664
|
-
windowSeconds: number;
|
|
665
|
-
}>>;
|
|
666
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
667
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
668
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
669
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
670
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
671
|
-
}, "strip", z.ZodTypeAny, {
|
|
672
|
-
validUntilLedger?: number | undefined;
|
|
673
|
-
validUntilUnixSeconds?: number | undefined;
|
|
674
|
-
}, {
|
|
675
|
-
validUntilLedger?: number | undefined;
|
|
676
|
-
validUntilUnixSeconds?: number | undefined;
|
|
677
|
-
}>>;
|
|
678
|
-
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
679
|
-
chain: z.ZodLiteral<"stellar">;
|
|
680
|
-
contract: z.ZodString;
|
|
681
|
-
method: z.ZodOptional<z.ZodString>;
|
|
682
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
683
|
-
token: z.ZodString;
|
|
684
|
-
limit: z.ZodString;
|
|
685
|
-
windowSeconds: z.ZodNumber;
|
|
686
|
-
}, "strip", z.ZodTypeAny, {
|
|
687
|
-
token: string;
|
|
688
|
-
limit: string;
|
|
689
|
-
windowSeconds: number;
|
|
690
|
-
}, {
|
|
691
|
-
token: string;
|
|
692
|
-
limit: string;
|
|
693
|
-
windowSeconds: number;
|
|
694
|
-
}>>;
|
|
695
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
696
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
697
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
698
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
699
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
700
|
-
}, "strip", z.ZodTypeAny, {
|
|
701
|
-
validUntilLedger?: number | undefined;
|
|
702
|
-
validUntilUnixSeconds?: number | undefined;
|
|
703
|
-
}, {
|
|
704
|
-
validUntilLedger?: number | undefined;
|
|
705
|
-
validUntilUnixSeconds?: number | undefined;
|
|
706
|
-
}>>;
|
|
707
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
708
|
-
chain: z.ZodLiteral<"stellar">;
|
|
709
|
-
contract: z.ZodString;
|
|
710
|
-
method: z.ZodOptional<z.ZodString>;
|
|
711
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
712
|
-
token: z.ZodString;
|
|
713
|
-
limit: z.ZodString;
|
|
714
|
-
windowSeconds: z.ZodNumber;
|
|
715
|
-
}, "strip", z.ZodTypeAny, {
|
|
716
|
-
token: string;
|
|
717
|
-
limit: string;
|
|
718
|
-
windowSeconds: number;
|
|
719
|
-
}, {
|
|
720
|
-
token: string;
|
|
721
|
-
limit: string;
|
|
722
|
-
windowSeconds: number;
|
|
723
|
-
}>>;
|
|
724
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
725
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
726
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
727
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
728
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
729
|
-
}, "strip", z.ZodTypeAny, {
|
|
730
|
-
validUntilLedger?: number | undefined;
|
|
731
|
-
validUntilUnixSeconds?: number | undefined;
|
|
732
|
-
}, {
|
|
733
|
-
validUntilLedger?: number | undefined;
|
|
734
|
-
validUntilUnixSeconds?: number | undefined;
|
|
735
|
-
}>>;
|
|
736
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
737
|
-
ozConfig: z.ZodOptional<z.ZodObject<{
|
|
738
|
-
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
739
|
-
instances: z.ZodObject<{
|
|
740
|
-
spending_limit: z.ZodString;
|
|
741
|
-
simple_threshold: z.ZodString;
|
|
742
|
-
weighted_threshold: z.ZodString;
|
|
743
|
-
}, "strip", z.ZodTypeAny, {
|
|
744
|
-
spending_limit: string;
|
|
745
|
-
simple_threshold: string;
|
|
746
|
-
weighted_threshold: string;
|
|
747
|
-
}, {
|
|
748
|
-
spending_limit: string;
|
|
749
|
-
simple_threshold: string;
|
|
750
|
-
weighted_threshold: string;
|
|
751
|
-
}>;
|
|
752
|
-
}, "strip", z.ZodTypeAny, {
|
|
753
|
-
network: "mainnet" | "testnet";
|
|
754
|
-
instances: {
|
|
755
|
-
spending_limit: string;
|
|
756
|
-
simple_threshold: string;
|
|
757
|
-
weighted_threshold: string;
|
|
758
|
-
};
|
|
759
|
-
}, {
|
|
760
|
-
network: "mainnet" | "testnet";
|
|
761
|
-
instances: {
|
|
762
|
-
spending_limit: string;
|
|
763
|
-
simple_threshold: string;
|
|
764
|
-
weighted_threshold: string;
|
|
765
|
-
};
|
|
766
|
-
}>>;
|
|
767
|
-
explain: z.ZodOptional<z.ZodBoolean>;
|
|
768
|
-
}, "strip", z.ZodTypeAny, {
|
|
769
|
-
source: "mandate";
|
|
770
|
-
mandate: {
|
|
771
|
-
contract: string;
|
|
772
|
-
chain: "stellar";
|
|
773
|
-
expiry?: {
|
|
774
|
-
validUntilLedger?: number | undefined;
|
|
775
|
-
validUntilUnixSeconds?: number | undefined;
|
|
776
|
-
} | undefined;
|
|
777
|
-
method?: string | undefined;
|
|
778
|
-
spendingLimit?: {
|
|
779
|
-
token: string;
|
|
780
|
-
limit: string;
|
|
781
|
-
windowSeconds: number;
|
|
782
|
-
} | undefined;
|
|
783
|
-
approvalThreshold?: number | undefined;
|
|
784
|
-
recipients?: string[] | undefined;
|
|
785
|
-
} & {
|
|
786
|
-
[k: string]: unknown;
|
|
787
|
-
};
|
|
788
|
-
ozConfig?: {
|
|
789
|
-
network: "mainnet" | "testnet";
|
|
790
|
-
instances: {
|
|
791
|
-
spending_limit: string;
|
|
792
|
-
simple_threshold: string;
|
|
793
|
-
weighted_threshold: string;
|
|
794
|
-
};
|
|
795
|
-
} | undefined;
|
|
796
|
-
explain?: boolean | undefined;
|
|
797
|
-
}, {
|
|
798
|
-
source: "mandate";
|
|
799
|
-
mandate: {
|
|
800
|
-
contract: string;
|
|
801
|
-
chain: "stellar";
|
|
802
|
-
expiry?: {
|
|
803
|
-
validUntilLedger?: number | undefined;
|
|
804
|
-
validUntilUnixSeconds?: number | undefined;
|
|
805
|
-
} | undefined;
|
|
806
|
-
method?: string | undefined;
|
|
807
|
-
spendingLimit?: {
|
|
808
|
-
token: string;
|
|
809
|
-
limit: string;
|
|
810
|
-
windowSeconds: number;
|
|
811
|
-
} | undefined;
|
|
812
|
-
approvalThreshold?: number | undefined;
|
|
813
|
-
recipients?: string[] | undefined;
|
|
814
|
-
} & {
|
|
815
|
-
[k: string]: unknown;
|
|
816
|
-
};
|
|
817
|
-
ozConfig?: {
|
|
818
|
-
network: "mainnet" | "testnet";
|
|
819
|
-
instances: {
|
|
820
|
-
spending_limit: string;
|
|
821
|
-
simple_threshold: string;
|
|
822
|
-
weighted_threshold: string;
|
|
823
|
-
};
|
|
824
|
-
} | undefined;
|
|
825
|
-
explain?: boolean | undefined;
|
|
826
|
-
}>;
|
|
827
|
-
/** Interpreter opt-in for the recording path. Present -> constraints OZ cannot
|
|
828
|
-
* express (per-method scoping, invocation-count windows, oracle bounds, exact
|
|
829
|
-
* hop paths) lower to a real interpreter predicate document instead of being
|
|
830
|
-
* surfaced as warnings. The core deep-validates `smartAccountAddress` (a C...
|
|
831
|
-
* contract, not the recording's G... source) and the tighten-only oracle
|
|
832
|
-
* bounds; the schema stays light so the core owns the friendly ToolErrors. */
|
|
833
402
|
export declare const InterpreterOptionsSchema: z.ZodObject<{
|
|
834
403
|
smartAccountAddress: z.ZodString;
|
|
835
404
|
installNonce: z.ZodOptional<z.ZodNumber>;
|
|
836
|
-
oracleParams: z.ZodOptional<z.ZodObject<{
|
|
837
|
-
maxStalenessSeconds: z.ZodOptional<z.ZodNumber>;
|
|
838
|
-
maxDeviationBps: z.ZodOptional<z.ZodNumber>;
|
|
839
|
-
}, "strip", z.ZodTypeAny, {
|
|
840
|
-
maxStalenessSeconds?: number | undefined;
|
|
841
|
-
maxDeviationBps?: number | undefined;
|
|
842
|
-
}, {
|
|
843
|
-
maxStalenessSeconds?: number | undefined;
|
|
844
|
-
maxDeviationBps?: number | undefined;
|
|
845
|
-
}>>;
|
|
846
405
|
}, "strip", z.ZodTypeAny, {
|
|
847
406
|
smartAccountAddress: string;
|
|
848
|
-
oracleParams?: {
|
|
849
|
-
maxStalenessSeconds?: number | undefined;
|
|
850
|
-
maxDeviationBps?: number | undefined;
|
|
851
|
-
} | undefined;
|
|
852
407
|
installNonce?: number | undefined;
|
|
853
408
|
}, {
|
|
854
409
|
smartAccountAddress: string;
|
|
855
|
-
oracleParams?: {
|
|
856
|
-
maxStalenessSeconds?: number | undefined;
|
|
857
|
-
maxDeviationBps?: number | undefined;
|
|
858
|
-
} | undefined;
|
|
859
410
|
installNonce?: number | undefined;
|
|
860
411
|
}>;
|
|
861
|
-
export declare const
|
|
412
|
+
export declare const SynthesizePolicyInputSchema: z.ZodObject<{
|
|
862
413
|
source: z.ZodLiteral<"recording">;
|
|
863
414
|
recordedTx: z.ZodObject<{
|
|
864
415
|
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
@@ -870,15 +421,15 @@ export declare const SynthesizePolicyRecordingInputSchema: z.ZodObject<{
|
|
|
870
421
|
to: z.ZodString;
|
|
871
422
|
amount: z.ZodString;
|
|
872
423
|
}, "strip", z.ZodTypeAny, {
|
|
873
|
-
amount: string;
|
|
874
|
-
token: string;
|
|
875
424
|
from: string;
|
|
876
425
|
to: string;
|
|
877
|
-
}, {
|
|
878
426
|
amount: string;
|
|
879
427
|
token: string;
|
|
428
|
+
}, {
|
|
880
429
|
from: string;
|
|
881
430
|
to: string;
|
|
431
|
+
amount: string;
|
|
432
|
+
token: string;
|
|
882
433
|
}>, "many">;
|
|
883
434
|
events: z.ZodArray<z.ZodObject<{
|
|
884
435
|
contract: z.ZodString;
|
|
@@ -956,15 +507,15 @@ export declare const SynthesizePolicyRecordingInputSchema: z.ZodObject<{
|
|
|
956
507
|
to: z.ZodString;
|
|
957
508
|
amount: z.ZodString;
|
|
958
509
|
}, "strip", z.ZodTypeAny, {
|
|
959
|
-
amount: string;
|
|
960
|
-
token: string;
|
|
961
510
|
from: string;
|
|
962
511
|
to: string;
|
|
963
|
-
}, {
|
|
964
512
|
amount: string;
|
|
965
513
|
token: string;
|
|
514
|
+
}, {
|
|
966
515
|
from: string;
|
|
967
516
|
to: string;
|
|
517
|
+
amount: string;
|
|
518
|
+
token: string;
|
|
968
519
|
}>, "many">;
|
|
969
520
|
events: z.ZodArray<z.ZodObject<{
|
|
970
521
|
contract: z.ZodString;
|
|
@@ -1042,15 +593,15 @@ export declare const SynthesizePolicyRecordingInputSchema: z.ZodObject<{
|
|
|
1042
593
|
to: z.ZodString;
|
|
1043
594
|
amount: z.ZodString;
|
|
1044
595
|
}, "strip", z.ZodTypeAny, {
|
|
1045
|
-
amount: string;
|
|
1046
|
-
token: string;
|
|
1047
596
|
from: string;
|
|
1048
597
|
to: string;
|
|
1049
|
-
}, {
|
|
1050
598
|
amount: string;
|
|
1051
599
|
token: string;
|
|
600
|
+
}, {
|
|
1052
601
|
from: string;
|
|
1053
602
|
to: string;
|
|
603
|
+
amount: string;
|
|
604
|
+
token: string;
|
|
1054
605
|
}>, "many">;
|
|
1055
606
|
events: z.ZodArray<z.ZodObject<{
|
|
1056
607
|
contract: z.ZodString;
|
|
@@ -1120,740 +671,19 @@ export declare const SynthesizePolicyRecordingInputSchema: z.ZodObject<{
|
|
|
1120
671
|
sourceAccount: z.ZodString;
|
|
1121
672
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1122
673
|
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1123
|
-
userResponses: z.ZodOptional<z.ZodObject<{
|
|
1124
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1125
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1126
|
-
limitAmount: z.ZodOptional<z.ZodString>;
|
|
1127
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
1128
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1129
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1130
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1131
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1132
|
-
limitAmount: z.ZodOptional<z.ZodString>;
|
|
1133
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
1134
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1135
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1136
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1137
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1138
|
-
limitAmount: z.ZodOptional<z.ZodString>;
|
|
1139
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
1140
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1141
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
1142
|
-
confidenceOverride: z.ZodOptional<z.ZodObject<{
|
|
1143
|
-
threshold: z.ZodNumber;
|
|
1144
|
-
}, "strip", z.ZodTypeAny, {
|
|
1145
|
-
threshold: number;
|
|
1146
|
-
}, {
|
|
1147
|
-
threshold: number;
|
|
1148
|
-
}>>;
|
|
1149
|
-
interpreter: z.ZodOptional<z.ZodObject<{
|
|
1150
|
-
smartAccountAddress: z.ZodString;
|
|
1151
|
-
installNonce: z.ZodOptional<z.ZodNumber>;
|
|
1152
|
-
oracleParams: z.ZodOptional<z.ZodObject<{
|
|
1153
|
-
maxStalenessSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1154
|
-
maxDeviationBps: z.ZodOptional<z.ZodNumber>;
|
|
1155
|
-
}, "strip", z.ZodTypeAny, {
|
|
1156
|
-
maxStalenessSeconds?: number | undefined;
|
|
1157
|
-
maxDeviationBps?: number | undefined;
|
|
1158
|
-
}, {
|
|
1159
|
-
maxStalenessSeconds?: number | undefined;
|
|
1160
|
-
maxDeviationBps?: number | undefined;
|
|
1161
|
-
}>>;
|
|
1162
|
-
}, "strip", z.ZodTypeAny, {
|
|
1163
|
-
smartAccountAddress: string;
|
|
1164
|
-
oracleParams?: {
|
|
1165
|
-
maxStalenessSeconds?: number | undefined;
|
|
1166
|
-
maxDeviationBps?: number | undefined;
|
|
1167
|
-
} | undefined;
|
|
1168
|
-
installNonce?: number | undefined;
|
|
1169
|
-
}, {
|
|
1170
|
-
smartAccountAddress: string;
|
|
1171
|
-
oracleParams?: {
|
|
1172
|
-
maxStalenessSeconds?: number | undefined;
|
|
1173
|
-
maxDeviationBps?: number | undefined;
|
|
1174
|
-
} | undefined;
|
|
1175
|
-
installNonce?: number | undefined;
|
|
1176
|
-
}>>;
|
|
1177
|
-
ozConfig: z.ZodOptional<z.ZodObject<{
|
|
1178
|
-
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1179
|
-
instances: z.ZodObject<{
|
|
1180
|
-
spending_limit: z.ZodString;
|
|
1181
|
-
simple_threshold: z.ZodString;
|
|
1182
|
-
weighted_threshold: z.ZodString;
|
|
1183
|
-
}, "strip", z.ZodTypeAny, {
|
|
1184
|
-
spending_limit: string;
|
|
1185
|
-
simple_threshold: string;
|
|
1186
|
-
weighted_threshold: string;
|
|
1187
|
-
}, {
|
|
1188
|
-
spending_limit: string;
|
|
1189
|
-
simple_threshold: string;
|
|
1190
|
-
weighted_threshold: string;
|
|
1191
|
-
}>;
|
|
1192
|
-
}, "strip", z.ZodTypeAny, {
|
|
1193
|
-
network: "mainnet" | "testnet";
|
|
1194
|
-
instances: {
|
|
1195
|
-
spending_limit: string;
|
|
1196
|
-
simple_threshold: string;
|
|
1197
|
-
weighted_threshold: string;
|
|
1198
|
-
};
|
|
1199
|
-
}, {
|
|
1200
|
-
network: "mainnet" | "testnet";
|
|
1201
|
-
instances: {
|
|
1202
|
-
spending_limit: string;
|
|
1203
|
-
simple_threshold: string;
|
|
1204
|
-
weighted_threshold: string;
|
|
1205
|
-
};
|
|
1206
|
-
}>>;
|
|
1207
|
-
explain: z.ZodOptional<z.ZodBoolean>;
|
|
1208
|
-
}, "strip", z.ZodTypeAny, {
|
|
1209
|
-
network: "mainnet" | "testnet";
|
|
1210
|
-
source: "recording";
|
|
1211
|
-
recordedTx: {
|
|
1212
|
-
signers: string[];
|
|
1213
|
-
events: {
|
|
1214
|
-
contract: string;
|
|
1215
|
-
topics: string[];
|
|
1216
|
-
data?: unknown;
|
|
1217
|
-
}[];
|
|
1218
|
-
sourceAccount: string;
|
|
1219
|
-
network: "mainnet" | "testnet";
|
|
1220
|
-
invocations: unknown[];
|
|
1221
|
-
tokenMovements: {
|
|
1222
|
-
amount: string;
|
|
1223
|
-
token: string;
|
|
1224
|
-
from: string;
|
|
1225
|
-
to: string;
|
|
1226
|
-
}[];
|
|
1227
|
-
authEntries: unknown[];
|
|
1228
|
-
ledgerSequence: number;
|
|
1229
|
-
fetchedAt: number;
|
|
1230
|
-
parseConfidence: {
|
|
1231
|
-
opaqueScVals: {
|
|
1232
|
-
type: string;
|
|
1233
|
-
path: string;
|
|
1234
|
-
}[];
|
|
1235
|
-
unknownContracts: {
|
|
1236
|
-
contract: string;
|
|
1237
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1238
|
-
}[];
|
|
1239
|
-
overall: number;
|
|
1240
|
-
knownContracts: string[];
|
|
1241
|
-
thresholdUsed: number;
|
|
1242
|
-
};
|
|
1243
|
-
} & {
|
|
1244
|
-
[k: string]: unknown;
|
|
1245
|
-
};
|
|
1246
|
-
interpreter?: {
|
|
1247
|
-
smartAccountAddress: string;
|
|
1248
|
-
oracleParams?: {
|
|
1249
|
-
maxStalenessSeconds?: number | undefined;
|
|
1250
|
-
maxDeviationBps?: number | undefined;
|
|
1251
|
-
} | undefined;
|
|
1252
|
-
installNonce?: number | undefined;
|
|
1253
|
-
} | undefined;
|
|
1254
|
-
userResponses?: z.objectOutputType<{
|
|
1255
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1256
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1257
|
-
limitAmount: z.ZodOptional<z.ZodString>;
|
|
1258
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
1259
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1260
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1261
|
-
confidenceOverride?: {
|
|
1262
|
-
threshold: number;
|
|
1263
|
-
} | undefined;
|
|
1264
|
-
ozConfig?: {
|
|
1265
|
-
network: "mainnet" | "testnet";
|
|
1266
|
-
instances: {
|
|
1267
|
-
spending_limit: string;
|
|
1268
|
-
simple_threshold: string;
|
|
1269
|
-
weighted_threshold: string;
|
|
1270
|
-
};
|
|
1271
|
-
} | undefined;
|
|
1272
|
-
explain?: boolean | undefined;
|
|
1273
|
-
}, {
|
|
1274
|
-
network: "mainnet" | "testnet";
|
|
1275
|
-
source: "recording";
|
|
1276
|
-
recordedTx: {
|
|
1277
|
-
signers: string[];
|
|
1278
|
-
events: {
|
|
1279
|
-
contract: string;
|
|
1280
|
-
topics: string[];
|
|
1281
|
-
data?: unknown;
|
|
1282
|
-
}[];
|
|
1283
|
-
sourceAccount: string;
|
|
1284
|
-
network: "mainnet" | "testnet";
|
|
1285
|
-
invocations: unknown[];
|
|
1286
|
-
tokenMovements: {
|
|
1287
|
-
amount: string;
|
|
1288
|
-
token: string;
|
|
1289
|
-
from: string;
|
|
1290
|
-
to: string;
|
|
1291
|
-
}[];
|
|
1292
|
-
authEntries: unknown[];
|
|
1293
|
-
ledgerSequence: number;
|
|
1294
|
-
fetchedAt: number;
|
|
1295
|
-
parseConfidence: {
|
|
1296
|
-
opaqueScVals: {
|
|
1297
|
-
type: string;
|
|
1298
|
-
path: string;
|
|
1299
|
-
}[];
|
|
1300
|
-
unknownContracts: {
|
|
1301
|
-
contract: string;
|
|
1302
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1303
|
-
}[];
|
|
1304
|
-
overall: number;
|
|
1305
|
-
knownContracts: string[];
|
|
1306
|
-
thresholdUsed: number;
|
|
1307
|
-
};
|
|
1308
|
-
} & {
|
|
1309
|
-
[k: string]: unknown;
|
|
1310
|
-
};
|
|
1311
|
-
interpreter?: {
|
|
1312
|
-
smartAccountAddress: string;
|
|
1313
|
-
oracleParams?: {
|
|
1314
|
-
maxStalenessSeconds?: number | undefined;
|
|
1315
|
-
maxDeviationBps?: number | undefined;
|
|
1316
|
-
} | undefined;
|
|
1317
|
-
installNonce?: number | undefined;
|
|
1318
|
-
} | undefined;
|
|
1319
|
-
userResponses?: z.objectInputType<{
|
|
1320
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1321
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1322
|
-
limitAmount: z.ZodOptional<z.ZodString>;
|
|
1323
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
1324
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1325
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1326
|
-
confidenceOverride?: {
|
|
1327
|
-
threshold: number;
|
|
1328
|
-
} | undefined;
|
|
1329
|
-
ozConfig?: {
|
|
1330
|
-
network: "mainnet" | "testnet";
|
|
1331
|
-
instances: {
|
|
1332
|
-
spending_limit: string;
|
|
1333
|
-
simple_threshold: string;
|
|
1334
|
-
weighted_threshold: string;
|
|
1335
|
-
};
|
|
1336
|
-
} | undefined;
|
|
1337
|
-
explain?: boolean | undefined;
|
|
1338
|
-
}>;
|
|
1339
|
-
export declare const SynthesizePolicyInputSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
1340
|
-
source: z.ZodLiteral<"mandate">;
|
|
1341
|
-
mandate: z.ZodEffects<z.ZodObject<{
|
|
1342
|
-
chain: z.ZodLiteral<"stellar">;
|
|
1343
|
-
contract: z.ZodString;
|
|
1344
|
-
method: z.ZodOptional<z.ZodString>;
|
|
1345
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
1346
|
-
token: z.ZodString;
|
|
1347
|
-
limit: z.ZodString;
|
|
1348
|
-
windowSeconds: z.ZodNumber;
|
|
1349
|
-
}, "strip", z.ZodTypeAny, {
|
|
1350
|
-
token: string;
|
|
1351
|
-
limit: string;
|
|
1352
|
-
windowSeconds: number;
|
|
1353
|
-
}, {
|
|
1354
|
-
token: string;
|
|
1355
|
-
limit: string;
|
|
1356
|
-
windowSeconds: number;
|
|
1357
|
-
}>>;
|
|
1358
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1359
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1360
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
1361
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1362
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1363
|
-
}, "strip", z.ZodTypeAny, {
|
|
1364
|
-
validUntilLedger?: number | undefined;
|
|
1365
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1366
|
-
}, {
|
|
1367
|
-
validUntilLedger?: number | undefined;
|
|
1368
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1369
|
-
}>>;
|
|
1370
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1371
|
-
chain: z.ZodLiteral<"stellar">;
|
|
1372
|
-
contract: z.ZodString;
|
|
1373
|
-
method: z.ZodOptional<z.ZodString>;
|
|
1374
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
1375
|
-
token: z.ZodString;
|
|
1376
|
-
limit: z.ZodString;
|
|
1377
|
-
windowSeconds: z.ZodNumber;
|
|
1378
|
-
}, "strip", z.ZodTypeAny, {
|
|
1379
|
-
token: string;
|
|
1380
|
-
limit: string;
|
|
1381
|
-
windowSeconds: number;
|
|
1382
|
-
}, {
|
|
1383
|
-
token: string;
|
|
1384
|
-
limit: string;
|
|
1385
|
-
windowSeconds: number;
|
|
1386
|
-
}>>;
|
|
1387
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1388
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1389
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
1390
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1391
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1392
|
-
}, "strip", z.ZodTypeAny, {
|
|
1393
|
-
validUntilLedger?: number | undefined;
|
|
1394
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1395
|
-
}, {
|
|
1396
|
-
validUntilLedger?: number | undefined;
|
|
1397
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1398
|
-
}>>;
|
|
1399
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1400
|
-
chain: z.ZodLiteral<"stellar">;
|
|
1401
|
-
contract: z.ZodString;
|
|
1402
|
-
method: z.ZodOptional<z.ZodString>;
|
|
1403
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
1404
|
-
token: z.ZodString;
|
|
1405
|
-
limit: z.ZodString;
|
|
1406
|
-
windowSeconds: z.ZodNumber;
|
|
1407
|
-
}, "strip", z.ZodTypeAny, {
|
|
1408
|
-
token: string;
|
|
1409
|
-
limit: string;
|
|
1410
|
-
windowSeconds: number;
|
|
1411
|
-
}, {
|
|
1412
|
-
token: string;
|
|
1413
|
-
limit: string;
|
|
1414
|
-
windowSeconds: number;
|
|
1415
|
-
}>>;
|
|
1416
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1417
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1418
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
1419
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1420
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1421
|
-
}, "strip", z.ZodTypeAny, {
|
|
1422
|
-
validUntilLedger?: number | undefined;
|
|
1423
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1424
|
-
}, {
|
|
1425
|
-
validUntilLedger?: number | undefined;
|
|
1426
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1427
|
-
}>>;
|
|
1428
|
-
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
1429
|
-
chain: z.ZodLiteral<"stellar">;
|
|
1430
|
-
contract: z.ZodString;
|
|
1431
|
-
method: z.ZodOptional<z.ZodString>;
|
|
1432
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
1433
|
-
token: z.ZodString;
|
|
1434
|
-
limit: z.ZodString;
|
|
1435
|
-
windowSeconds: z.ZodNumber;
|
|
1436
|
-
}, "strip", z.ZodTypeAny, {
|
|
1437
|
-
token: string;
|
|
1438
|
-
limit: string;
|
|
1439
|
-
windowSeconds: number;
|
|
1440
|
-
}, {
|
|
1441
|
-
token: string;
|
|
1442
|
-
limit: string;
|
|
1443
|
-
windowSeconds: number;
|
|
1444
|
-
}>>;
|
|
1445
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1446
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1447
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
1448
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1449
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1450
|
-
}, "strip", z.ZodTypeAny, {
|
|
1451
|
-
validUntilLedger?: number | undefined;
|
|
1452
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1453
|
-
}, {
|
|
1454
|
-
validUntilLedger?: number | undefined;
|
|
1455
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1456
|
-
}>>;
|
|
1457
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1458
|
-
chain: z.ZodLiteral<"stellar">;
|
|
1459
|
-
contract: z.ZodString;
|
|
1460
|
-
method: z.ZodOptional<z.ZodString>;
|
|
1461
|
-
spendingLimit: z.ZodOptional<z.ZodObject<{
|
|
1462
|
-
token: z.ZodString;
|
|
1463
|
-
limit: z.ZodString;
|
|
1464
|
-
windowSeconds: z.ZodNumber;
|
|
1465
|
-
}, "strip", z.ZodTypeAny, {
|
|
1466
|
-
token: string;
|
|
1467
|
-
limit: string;
|
|
1468
|
-
windowSeconds: number;
|
|
1469
|
-
}, {
|
|
1470
|
-
token: string;
|
|
1471
|
-
limit: string;
|
|
1472
|
-
windowSeconds: number;
|
|
1473
|
-
}>>;
|
|
1474
|
-
approvalThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1475
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1476
|
-
expiry: z.ZodOptional<z.ZodObject<{
|
|
1477
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1478
|
-
validUntilUnixSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1479
|
-
}, "strip", z.ZodTypeAny, {
|
|
1480
|
-
validUntilLedger?: number | undefined;
|
|
1481
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1482
|
-
}, {
|
|
1483
|
-
validUntilLedger?: number | undefined;
|
|
1484
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1485
|
-
}>>;
|
|
1486
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
1487
|
-
ozConfig: z.ZodOptional<z.ZodObject<{
|
|
1488
|
-
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1489
|
-
instances: z.ZodObject<{
|
|
1490
|
-
spending_limit: z.ZodString;
|
|
1491
|
-
simple_threshold: z.ZodString;
|
|
1492
|
-
weighted_threshold: z.ZodString;
|
|
1493
|
-
}, "strip", z.ZodTypeAny, {
|
|
1494
|
-
spending_limit: string;
|
|
1495
|
-
simple_threshold: string;
|
|
1496
|
-
weighted_threshold: string;
|
|
1497
|
-
}, {
|
|
1498
|
-
spending_limit: string;
|
|
1499
|
-
simple_threshold: string;
|
|
1500
|
-
weighted_threshold: string;
|
|
1501
|
-
}>;
|
|
1502
|
-
}, "strip", z.ZodTypeAny, {
|
|
1503
|
-
network: "mainnet" | "testnet";
|
|
1504
|
-
instances: {
|
|
1505
|
-
spending_limit: string;
|
|
1506
|
-
simple_threshold: string;
|
|
1507
|
-
weighted_threshold: string;
|
|
1508
|
-
};
|
|
1509
|
-
}, {
|
|
1510
|
-
network: "mainnet" | "testnet";
|
|
1511
|
-
instances: {
|
|
1512
|
-
spending_limit: string;
|
|
1513
|
-
simple_threshold: string;
|
|
1514
|
-
weighted_threshold: string;
|
|
1515
|
-
};
|
|
1516
|
-
}>>;
|
|
1517
|
-
explain: z.ZodOptional<z.ZodBoolean>;
|
|
1518
|
-
}, "strip", z.ZodTypeAny, {
|
|
1519
|
-
source: "mandate";
|
|
1520
|
-
mandate: {
|
|
1521
|
-
contract: string;
|
|
1522
|
-
chain: "stellar";
|
|
1523
|
-
expiry?: {
|
|
1524
|
-
validUntilLedger?: number | undefined;
|
|
1525
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1526
|
-
} | undefined;
|
|
1527
|
-
method?: string | undefined;
|
|
1528
|
-
spendingLimit?: {
|
|
1529
|
-
token: string;
|
|
1530
|
-
limit: string;
|
|
1531
|
-
windowSeconds: number;
|
|
1532
|
-
} | undefined;
|
|
1533
|
-
approvalThreshold?: number | undefined;
|
|
1534
|
-
recipients?: string[] | undefined;
|
|
1535
|
-
} & {
|
|
1536
|
-
[k: string]: unknown;
|
|
1537
|
-
};
|
|
1538
|
-
ozConfig?: {
|
|
1539
|
-
network: "mainnet" | "testnet";
|
|
1540
|
-
instances: {
|
|
1541
|
-
spending_limit: string;
|
|
1542
|
-
simple_threshold: string;
|
|
1543
|
-
weighted_threshold: string;
|
|
1544
|
-
};
|
|
1545
|
-
} | undefined;
|
|
1546
|
-
explain?: boolean | undefined;
|
|
1547
|
-
}, {
|
|
1548
|
-
source: "mandate";
|
|
1549
|
-
mandate: {
|
|
1550
|
-
contract: string;
|
|
1551
|
-
chain: "stellar";
|
|
1552
|
-
expiry?: {
|
|
1553
|
-
validUntilLedger?: number | undefined;
|
|
1554
|
-
validUntilUnixSeconds?: number | undefined;
|
|
1555
|
-
} | undefined;
|
|
1556
|
-
method?: string | undefined;
|
|
1557
|
-
spendingLimit?: {
|
|
1558
|
-
token: string;
|
|
1559
|
-
limit: string;
|
|
1560
|
-
windowSeconds: number;
|
|
1561
|
-
} | undefined;
|
|
1562
|
-
approvalThreshold?: number | undefined;
|
|
1563
|
-
recipients?: string[] | undefined;
|
|
1564
|
-
} & {
|
|
1565
|
-
[k: string]: unknown;
|
|
1566
|
-
};
|
|
1567
|
-
ozConfig?: {
|
|
1568
|
-
network: "mainnet" | "testnet";
|
|
1569
|
-
instances: {
|
|
1570
|
-
spending_limit: string;
|
|
1571
|
-
simple_threshold: string;
|
|
1572
|
-
weighted_threshold: string;
|
|
1573
|
-
};
|
|
1574
|
-
} | undefined;
|
|
1575
|
-
explain?: boolean | undefined;
|
|
1576
|
-
}>, z.ZodObject<{
|
|
1577
|
-
source: z.ZodLiteral<"recording">;
|
|
1578
|
-
recordedTx: z.ZodObject<{
|
|
1579
|
-
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1580
|
-
signers: z.ZodArray<z.ZodString, "many">;
|
|
1581
|
-
invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
|
|
1582
|
-
tokenMovements: z.ZodArray<z.ZodObject<{
|
|
1583
|
-
token: z.ZodString;
|
|
1584
|
-
from: z.ZodString;
|
|
1585
|
-
to: z.ZodString;
|
|
1586
|
-
amount: z.ZodString;
|
|
1587
|
-
}, "strip", z.ZodTypeAny, {
|
|
1588
|
-
amount: string;
|
|
1589
|
-
token: string;
|
|
1590
|
-
from: string;
|
|
1591
|
-
to: string;
|
|
1592
|
-
}, {
|
|
1593
|
-
amount: string;
|
|
1594
|
-
token: string;
|
|
1595
|
-
from: string;
|
|
1596
|
-
to: string;
|
|
1597
|
-
}>, "many">;
|
|
1598
|
-
events: z.ZodArray<z.ZodObject<{
|
|
1599
|
-
contract: z.ZodString;
|
|
1600
|
-
topics: z.ZodArray<z.ZodString, "many">;
|
|
1601
|
-
data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
1602
|
-
}, "strip", z.ZodTypeAny, {
|
|
1603
|
-
contract: string;
|
|
1604
|
-
topics: string[];
|
|
1605
|
-
data?: unknown;
|
|
1606
|
-
}, {
|
|
1607
|
-
contract: string;
|
|
1608
|
-
topics: string[];
|
|
1609
|
-
data?: unknown;
|
|
1610
|
-
}>, "many">;
|
|
1611
|
-
authEntries: z.ZodArray<z.ZodUnknown, "many">;
|
|
1612
|
-
ledgerSequence: z.ZodNumber;
|
|
1613
|
-
fetchedAt: z.ZodNumber;
|
|
1614
|
-
parseConfidence: z.ZodObject<{
|
|
1615
|
-
overall: z.ZodNumber;
|
|
1616
|
-
knownContracts: z.ZodArray<z.ZodString, "many">;
|
|
1617
|
-
unknownContracts: z.ZodArray<z.ZodObject<{
|
|
1618
|
-
contract: z.ZodString;
|
|
1619
|
-
reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
|
|
1620
|
-
}, "strip", z.ZodTypeAny, {
|
|
1621
|
-
contract: string;
|
|
1622
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1623
|
-
}, {
|
|
1624
|
-
contract: string;
|
|
1625
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1626
|
-
}>, "many">;
|
|
1627
|
-
opaqueScVals: z.ZodArray<z.ZodObject<{
|
|
1628
|
-
path: z.ZodString;
|
|
1629
|
-
type: z.ZodString;
|
|
1630
|
-
}, "strip", z.ZodTypeAny, {
|
|
1631
|
-
type: string;
|
|
1632
|
-
path: string;
|
|
1633
|
-
}, {
|
|
1634
|
-
type: string;
|
|
1635
|
-
path: string;
|
|
1636
|
-
}>, "many">;
|
|
1637
|
-
thresholdUsed: z.ZodNumber;
|
|
1638
|
-
}, "strip", z.ZodTypeAny, {
|
|
1639
|
-
opaqueScVals: {
|
|
1640
|
-
type: string;
|
|
1641
|
-
path: string;
|
|
1642
|
-
}[];
|
|
1643
|
-
unknownContracts: {
|
|
1644
|
-
contract: string;
|
|
1645
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1646
|
-
}[];
|
|
1647
|
-
overall: number;
|
|
1648
|
-
knownContracts: string[];
|
|
1649
|
-
thresholdUsed: number;
|
|
1650
|
-
}, {
|
|
1651
|
-
opaqueScVals: {
|
|
1652
|
-
type: string;
|
|
1653
|
-
path: string;
|
|
1654
|
-
}[];
|
|
1655
|
-
unknownContracts: {
|
|
1656
|
-
contract: string;
|
|
1657
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1658
|
-
}[];
|
|
1659
|
-
overall: number;
|
|
1660
|
-
knownContracts: string[];
|
|
1661
|
-
thresholdUsed: number;
|
|
1662
|
-
}>;
|
|
1663
|
-
sourceAccount: z.ZodString;
|
|
1664
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1665
|
-
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1666
|
-
signers: z.ZodArray<z.ZodString, "many">;
|
|
1667
|
-
invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
|
|
1668
|
-
tokenMovements: z.ZodArray<z.ZodObject<{
|
|
1669
|
-
token: z.ZodString;
|
|
1670
|
-
from: z.ZodString;
|
|
1671
|
-
to: z.ZodString;
|
|
1672
|
-
amount: z.ZodString;
|
|
1673
|
-
}, "strip", z.ZodTypeAny, {
|
|
1674
|
-
amount: string;
|
|
1675
|
-
token: string;
|
|
1676
|
-
from: string;
|
|
1677
|
-
to: string;
|
|
1678
|
-
}, {
|
|
1679
|
-
amount: string;
|
|
1680
|
-
token: string;
|
|
1681
|
-
from: string;
|
|
1682
|
-
to: string;
|
|
1683
|
-
}>, "many">;
|
|
1684
|
-
events: z.ZodArray<z.ZodObject<{
|
|
1685
|
-
contract: z.ZodString;
|
|
1686
|
-
topics: z.ZodArray<z.ZodString, "many">;
|
|
1687
|
-
data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
1688
|
-
}, "strip", z.ZodTypeAny, {
|
|
1689
|
-
contract: string;
|
|
1690
|
-
topics: string[];
|
|
1691
|
-
data?: unknown;
|
|
1692
|
-
}, {
|
|
1693
|
-
contract: string;
|
|
1694
|
-
topics: string[];
|
|
1695
|
-
data?: unknown;
|
|
1696
|
-
}>, "many">;
|
|
1697
|
-
authEntries: z.ZodArray<z.ZodUnknown, "many">;
|
|
1698
|
-
ledgerSequence: z.ZodNumber;
|
|
1699
|
-
fetchedAt: z.ZodNumber;
|
|
1700
|
-
parseConfidence: z.ZodObject<{
|
|
1701
|
-
overall: z.ZodNumber;
|
|
1702
|
-
knownContracts: z.ZodArray<z.ZodString, "many">;
|
|
1703
|
-
unknownContracts: z.ZodArray<z.ZodObject<{
|
|
1704
|
-
contract: z.ZodString;
|
|
1705
|
-
reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
|
|
1706
|
-
}, "strip", z.ZodTypeAny, {
|
|
1707
|
-
contract: string;
|
|
1708
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1709
|
-
}, {
|
|
1710
|
-
contract: string;
|
|
1711
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1712
|
-
}>, "many">;
|
|
1713
|
-
opaqueScVals: z.ZodArray<z.ZodObject<{
|
|
1714
|
-
path: z.ZodString;
|
|
1715
|
-
type: z.ZodString;
|
|
1716
|
-
}, "strip", z.ZodTypeAny, {
|
|
1717
|
-
type: string;
|
|
1718
|
-
path: string;
|
|
1719
|
-
}, {
|
|
1720
|
-
type: string;
|
|
1721
|
-
path: string;
|
|
1722
|
-
}>, "many">;
|
|
1723
|
-
thresholdUsed: z.ZodNumber;
|
|
1724
|
-
}, "strip", z.ZodTypeAny, {
|
|
1725
|
-
opaqueScVals: {
|
|
1726
|
-
type: string;
|
|
1727
|
-
path: string;
|
|
1728
|
-
}[];
|
|
1729
|
-
unknownContracts: {
|
|
1730
|
-
contract: string;
|
|
1731
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1732
|
-
}[];
|
|
1733
|
-
overall: number;
|
|
1734
|
-
knownContracts: string[];
|
|
1735
|
-
thresholdUsed: number;
|
|
1736
|
-
}, {
|
|
1737
|
-
opaqueScVals: {
|
|
1738
|
-
type: string;
|
|
1739
|
-
path: string;
|
|
1740
|
-
}[];
|
|
1741
|
-
unknownContracts: {
|
|
1742
|
-
contract: string;
|
|
1743
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1744
|
-
}[];
|
|
1745
|
-
overall: number;
|
|
1746
|
-
knownContracts: string[];
|
|
1747
|
-
thresholdUsed: number;
|
|
1748
|
-
}>;
|
|
1749
|
-
sourceAccount: z.ZodString;
|
|
1750
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1751
|
-
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1752
|
-
signers: z.ZodArray<z.ZodString, "many">;
|
|
1753
|
-
invocations: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
|
|
1754
|
-
tokenMovements: z.ZodArray<z.ZodObject<{
|
|
1755
|
-
token: z.ZodString;
|
|
1756
|
-
from: z.ZodString;
|
|
1757
|
-
to: z.ZodString;
|
|
1758
|
-
amount: z.ZodString;
|
|
1759
|
-
}, "strip", z.ZodTypeAny, {
|
|
1760
|
-
amount: string;
|
|
1761
|
-
token: string;
|
|
1762
|
-
from: string;
|
|
1763
|
-
to: string;
|
|
1764
|
-
}, {
|
|
1765
|
-
amount: string;
|
|
1766
|
-
token: string;
|
|
1767
|
-
from: string;
|
|
1768
|
-
to: string;
|
|
1769
|
-
}>, "many">;
|
|
1770
|
-
events: z.ZodArray<z.ZodObject<{
|
|
1771
|
-
contract: z.ZodString;
|
|
1772
|
-
topics: z.ZodArray<z.ZodString, "many">;
|
|
1773
|
-
data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
1774
|
-
}, "strip", z.ZodTypeAny, {
|
|
1775
|
-
contract: string;
|
|
1776
|
-
topics: string[];
|
|
1777
|
-
data?: unknown;
|
|
1778
|
-
}, {
|
|
1779
|
-
contract: string;
|
|
1780
|
-
topics: string[];
|
|
1781
|
-
data?: unknown;
|
|
1782
|
-
}>, "many">;
|
|
1783
|
-
authEntries: z.ZodArray<z.ZodUnknown, "many">;
|
|
1784
|
-
ledgerSequence: z.ZodNumber;
|
|
1785
|
-
fetchedAt: z.ZodNumber;
|
|
1786
|
-
parseConfidence: z.ZodObject<{
|
|
1787
|
-
overall: z.ZodNumber;
|
|
1788
|
-
knownContracts: z.ZodArray<z.ZodString, "many">;
|
|
1789
|
-
unknownContracts: z.ZodArray<z.ZodObject<{
|
|
1790
|
-
contract: z.ZodString;
|
|
1791
|
-
reason: z.ZodEnum<["no-abi", "version-mismatch", "opaque-result"]>;
|
|
1792
|
-
}, "strip", z.ZodTypeAny, {
|
|
1793
|
-
contract: string;
|
|
1794
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1795
|
-
}, {
|
|
1796
|
-
contract: string;
|
|
1797
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1798
|
-
}>, "many">;
|
|
1799
|
-
opaqueScVals: z.ZodArray<z.ZodObject<{
|
|
1800
|
-
path: z.ZodString;
|
|
1801
|
-
type: z.ZodString;
|
|
1802
|
-
}, "strip", z.ZodTypeAny, {
|
|
1803
|
-
type: string;
|
|
1804
|
-
path: string;
|
|
1805
|
-
}, {
|
|
1806
|
-
type: string;
|
|
1807
|
-
path: string;
|
|
1808
|
-
}>, "many">;
|
|
1809
|
-
thresholdUsed: z.ZodNumber;
|
|
1810
|
-
}, "strip", z.ZodTypeAny, {
|
|
1811
|
-
opaqueScVals: {
|
|
1812
|
-
type: string;
|
|
1813
|
-
path: string;
|
|
1814
|
-
}[];
|
|
1815
|
-
unknownContracts: {
|
|
1816
|
-
contract: string;
|
|
1817
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1818
|
-
}[];
|
|
1819
|
-
overall: number;
|
|
1820
|
-
knownContracts: string[];
|
|
1821
|
-
thresholdUsed: number;
|
|
1822
|
-
}, {
|
|
1823
|
-
opaqueScVals: {
|
|
1824
|
-
type: string;
|
|
1825
|
-
path: string;
|
|
1826
|
-
}[];
|
|
1827
|
-
unknownContracts: {
|
|
1828
|
-
contract: string;
|
|
1829
|
-
reason: "no-abi" | "version-mismatch" | "opaque-result";
|
|
1830
|
-
}[];
|
|
1831
|
-
overall: number;
|
|
1832
|
-
knownContracts: string[];
|
|
1833
|
-
thresholdUsed: number;
|
|
1834
|
-
}>;
|
|
1835
|
-
sourceAccount: z.ZodString;
|
|
1836
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
1837
|
-
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1838
|
-
userResponses: z.ZodOptional<z.ZodObject<{
|
|
1839
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1840
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1841
|
-
limitAmount: z.ZodOptional<z.ZodString>;
|
|
1842
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
1843
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1844
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1845
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1846
|
-
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1847
|
-
limitAmount: z.ZodOptional<z.ZodString>;
|
|
1848
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
1849
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1850
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1851
|
-
windowSeconds: z.ZodOptional<z.ZodNumber>;
|
|
674
|
+
userResponses: z.ZodOptional<z.ZodObject<{
|
|
1852
675
|
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
1853
676
|
limitAmount: z.ZodOptional<z.ZodString>;
|
|
1854
|
-
invocationLimit: z.ZodOptional<z.ZodNumber>;
|
|
1855
677
|
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1856
|
-
}, z.ZodTypeAny,
|
|
678
|
+
}, "strict", z.ZodTypeAny, {
|
|
679
|
+
limitAmount?: string | undefined;
|
|
680
|
+
validUntilLedger?: number | undefined;
|
|
681
|
+
swapRecipientAllowlist?: string[] | undefined;
|
|
682
|
+
}, {
|
|
683
|
+
limitAmount?: string | undefined;
|
|
684
|
+
validUntilLedger?: number | undefined;
|
|
685
|
+
swapRecipientAllowlist?: string[] | undefined;
|
|
686
|
+
}>>;
|
|
1857
687
|
confidenceOverride: z.ZodOptional<z.ZodObject<{
|
|
1858
688
|
threshold: z.ZodNumber;
|
|
1859
689
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1864,61 +694,13 @@ export declare const SynthesizePolicyInputSchema: z.ZodDiscriminatedUnion<"sourc
|
|
|
1864
694
|
interpreter: z.ZodOptional<z.ZodObject<{
|
|
1865
695
|
smartAccountAddress: z.ZodString;
|
|
1866
696
|
installNonce: z.ZodOptional<z.ZodNumber>;
|
|
1867
|
-
oracleParams: z.ZodOptional<z.ZodObject<{
|
|
1868
|
-
maxStalenessSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1869
|
-
maxDeviationBps: z.ZodOptional<z.ZodNumber>;
|
|
1870
|
-
}, "strip", z.ZodTypeAny, {
|
|
1871
|
-
maxStalenessSeconds?: number | undefined;
|
|
1872
|
-
maxDeviationBps?: number | undefined;
|
|
1873
|
-
}, {
|
|
1874
|
-
maxStalenessSeconds?: number | undefined;
|
|
1875
|
-
maxDeviationBps?: number | undefined;
|
|
1876
|
-
}>>;
|
|
1877
697
|
}, "strip", z.ZodTypeAny, {
|
|
1878
698
|
smartAccountAddress: string;
|
|
1879
|
-
oracleParams?: {
|
|
1880
|
-
maxStalenessSeconds?: number | undefined;
|
|
1881
|
-
maxDeviationBps?: number | undefined;
|
|
1882
|
-
} | undefined;
|
|
1883
699
|
installNonce?: number | undefined;
|
|
1884
700
|
}, {
|
|
1885
701
|
smartAccountAddress: string;
|
|
1886
|
-
oracleParams?: {
|
|
1887
|
-
maxStalenessSeconds?: number | undefined;
|
|
1888
|
-
maxDeviationBps?: number | undefined;
|
|
1889
|
-
} | undefined;
|
|
1890
702
|
installNonce?: number | undefined;
|
|
1891
703
|
}>>;
|
|
1892
|
-
ozConfig: z.ZodOptional<z.ZodObject<{
|
|
1893
|
-
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
1894
|
-
instances: z.ZodObject<{
|
|
1895
|
-
spending_limit: z.ZodString;
|
|
1896
|
-
simple_threshold: z.ZodString;
|
|
1897
|
-
weighted_threshold: z.ZodString;
|
|
1898
|
-
}, "strip", z.ZodTypeAny, {
|
|
1899
|
-
spending_limit: string;
|
|
1900
|
-
simple_threshold: string;
|
|
1901
|
-
weighted_threshold: string;
|
|
1902
|
-
}, {
|
|
1903
|
-
spending_limit: string;
|
|
1904
|
-
simple_threshold: string;
|
|
1905
|
-
weighted_threshold: string;
|
|
1906
|
-
}>;
|
|
1907
|
-
}, "strip", z.ZodTypeAny, {
|
|
1908
|
-
network: "mainnet" | "testnet";
|
|
1909
|
-
instances: {
|
|
1910
|
-
spending_limit: string;
|
|
1911
|
-
simple_threshold: string;
|
|
1912
|
-
weighted_threshold: string;
|
|
1913
|
-
};
|
|
1914
|
-
}, {
|
|
1915
|
-
network: "mainnet" | "testnet";
|
|
1916
|
-
instances: {
|
|
1917
|
-
spending_limit: string;
|
|
1918
|
-
simple_threshold: string;
|
|
1919
|
-
weighted_threshold: string;
|
|
1920
|
-
};
|
|
1921
|
-
}>>;
|
|
1922
704
|
explain: z.ZodOptional<z.ZodBoolean>;
|
|
1923
705
|
}, "strip", z.ZodTypeAny, {
|
|
1924
706
|
network: "mainnet" | "testnet";
|
|
@@ -1934,10 +716,10 @@ export declare const SynthesizePolicyInputSchema: z.ZodDiscriminatedUnion<"sourc
|
|
|
1934
716
|
network: "mainnet" | "testnet";
|
|
1935
717
|
invocations: unknown[];
|
|
1936
718
|
tokenMovements: {
|
|
1937
|
-
amount: string;
|
|
1938
|
-
token: string;
|
|
1939
719
|
from: string;
|
|
1940
720
|
to: string;
|
|
721
|
+
amount: string;
|
|
722
|
+
token: string;
|
|
1941
723
|
}[];
|
|
1942
724
|
authEntries: unknown[];
|
|
1943
725
|
ledgerSequence: number;
|
|
@@ -1960,30 +742,16 @@ export declare const SynthesizePolicyInputSchema: z.ZodDiscriminatedUnion<"sourc
|
|
|
1960
742
|
};
|
|
1961
743
|
interpreter?: {
|
|
1962
744
|
smartAccountAddress: string;
|
|
1963
|
-
oracleParams?: {
|
|
1964
|
-
maxStalenessSeconds?: number | undefined;
|
|
1965
|
-
maxDeviationBps?: number | undefined;
|
|
1966
|
-
} | undefined;
|
|
1967
745
|
installNonce?: number | undefined;
|
|
1968
746
|
} | undefined;
|
|
1969
|
-
userResponses?:
|
|
1970
|
-
|
|
1971
|
-
validUntilLedger
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
1975
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
747
|
+
userResponses?: {
|
|
748
|
+
limitAmount?: string | undefined;
|
|
749
|
+
validUntilLedger?: number | undefined;
|
|
750
|
+
swapRecipientAllowlist?: string[] | undefined;
|
|
751
|
+
} | undefined;
|
|
1976
752
|
confidenceOverride?: {
|
|
1977
753
|
threshold: number;
|
|
1978
754
|
} | undefined;
|
|
1979
|
-
ozConfig?: {
|
|
1980
|
-
network: "mainnet" | "testnet";
|
|
1981
|
-
instances: {
|
|
1982
|
-
spending_limit: string;
|
|
1983
|
-
simple_threshold: string;
|
|
1984
|
-
weighted_threshold: string;
|
|
1985
|
-
};
|
|
1986
|
-
} | undefined;
|
|
1987
755
|
explain?: boolean | undefined;
|
|
1988
756
|
}, {
|
|
1989
757
|
network: "mainnet" | "testnet";
|
|
@@ -1999,10 +767,10 @@ export declare const SynthesizePolicyInputSchema: z.ZodDiscriminatedUnion<"sourc
|
|
|
1999
767
|
network: "mainnet" | "testnet";
|
|
2000
768
|
invocations: unknown[];
|
|
2001
769
|
tokenMovements: {
|
|
2002
|
-
amount: string;
|
|
2003
|
-
token: string;
|
|
2004
770
|
from: string;
|
|
2005
771
|
to: string;
|
|
772
|
+
amount: string;
|
|
773
|
+
token: string;
|
|
2006
774
|
}[];
|
|
2007
775
|
authEntries: unknown[];
|
|
2008
776
|
ledgerSequence: number;
|
|
@@ -2025,32 +793,18 @@ export declare const SynthesizePolicyInputSchema: z.ZodDiscriminatedUnion<"sourc
|
|
|
2025
793
|
};
|
|
2026
794
|
interpreter?: {
|
|
2027
795
|
smartAccountAddress: string;
|
|
2028
|
-
oracleParams?: {
|
|
2029
|
-
maxStalenessSeconds?: number | undefined;
|
|
2030
|
-
maxDeviationBps?: number | undefined;
|
|
2031
|
-
} | undefined;
|
|
2032
796
|
installNonce?: number | undefined;
|
|
2033
797
|
} | undefined;
|
|
2034
|
-
userResponses?:
|
|
2035
|
-
|
|
2036
|
-
validUntilLedger
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
swapRecipientAllowlist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
2040
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
798
|
+
userResponses?: {
|
|
799
|
+
limitAmount?: string | undefined;
|
|
800
|
+
validUntilLedger?: number | undefined;
|
|
801
|
+
swapRecipientAllowlist?: string[] | undefined;
|
|
802
|
+
} | undefined;
|
|
2041
803
|
confidenceOverride?: {
|
|
2042
804
|
threshold: number;
|
|
2043
805
|
} | undefined;
|
|
2044
|
-
ozConfig?: {
|
|
2045
|
-
network: "mainnet" | "testnet";
|
|
2046
|
-
instances: {
|
|
2047
|
-
spending_limit: string;
|
|
2048
|
-
simple_threshold: string;
|
|
2049
|
-
weighted_threshold: string;
|
|
2050
|
-
};
|
|
2051
|
-
} | undefined;
|
|
2052
806
|
explain?: boolean | undefined;
|
|
2053
|
-
}
|
|
807
|
+
}>;
|
|
2054
808
|
export type SynthesizePolicyInput = z.infer<typeof SynthesizePolicyInputSchema>;
|
|
2055
809
|
/** PredicateLeaf mirrors the core `PredicateLeaf` union. Every variant
|
|
2056
810
|
* is a `kind` discriminator; literals carry their primitive value inline.
|
|
@@ -2058,29 +812,10 @@ export type SynthesizePolicyInput = z.infer<typeof SynthesizePolicyInputSchema>;
|
|
|
2058
812
|
* themselves nest) so the leaf schema is lazily self-referential. */
|
|
2059
813
|
export declare const PredicateLeafSchema: z.ZodType<unknown>;
|
|
2060
814
|
/** PredicateNode mirrors the core `PredicateNode` union. Recursive through
|
|
2061
|
-
* `and
|
|
2062
|
-
* type-safe. */
|
|
815
|
+
* `and`; the lazy + annotation pattern keeps the recursion type-safe. */
|
|
2063
816
|
export declare const PredicateNodeSchema: z.ZodType<unknown>;
|
|
2064
|
-
/** Oracle price fixture - mirror of the entry type in `SimulateOptions` /
|
|
2065
|
-
* `VerifyOptions`. Discriminated by presence of `error` vs `price`. */
|
|
2066
|
-
export declare const OraclePriceFixtureSchema: z.ZodUnion<[z.ZodObject<{
|
|
2067
|
-
price: z.ZodString;
|
|
2068
|
-
timestampSeconds: z.ZodNumber;
|
|
2069
|
-
}, "strip", z.ZodTypeAny, {
|
|
2070
|
-
price: string;
|
|
2071
|
-
timestampSeconds: number;
|
|
2072
|
-
}, {
|
|
2073
|
-
price: string;
|
|
2074
|
-
timestampSeconds: number;
|
|
2075
|
-
}>, z.ZodObject<{
|
|
2076
|
-
error: z.ZodEnum<["stale", "missing", "deviation", "paused", "decimals", "fingerprint"]>;
|
|
2077
|
-
}, "strip", z.ZodTypeAny, {
|
|
2078
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2079
|
-
}, {
|
|
2080
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2081
|
-
}>]>;
|
|
2082
817
|
export declare const SimulatePolicyInputSchema: z.ZodObject<{
|
|
2083
|
-
predicate: z.
|
|
818
|
+
predicate: z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
2084
819
|
permitTx: z.ZodObject<{
|
|
2085
820
|
network: z.ZodEnum<["mainnet", "testnet"]>;
|
|
2086
821
|
signers: z.ZodArray<z.ZodString, "many">;
|
|
@@ -2091,15 +826,15 @@ export declare const SimulatePolicyInputSchema: z.ZodObject<{
|
|
|
2091
826
|
to: z.ZodString;
|
|
2092
827
|
amount: z.ZodString;
|
|
2093
828
|
}, "strip", z.ZodTypeAny, {
|
|
2094
|
-
amount: string;
|
|
2095
|
-
token: string;
|
|
2096
829
|
from: string;
|
|
2097
830
|
to: string;
|
|
2098
|
-
}, {
|
|
2099
831
|
amount: string;
|
|
2100
832
|
token: string;
|
|
833
|
+
}, {
|
|
2101
834
|
from: string;
|
|
2102
835
|
to: string;
|
|
836
|
+
amount: string;
|
|
837
|
+
token: string;
|
|
2103
838
|
}>, "many">;
|
|
2104
839
|
events: z.ZodArray<z.ZodObject<{
|
|
2105
840
|
contract: z.ZodString;
|
|
@@ -2177,15 +912,15 @@ export declare const SimulatePolicyInputSchema: z.ZodObject<{
|
|
|
2177
912
|
to: z.ZodString;
|
|
2178
913
|
amount: z.ZodString;
|
|
2179
914
|
}, "strip", z.ZodTypeAny, {
|
|
2180
|
-
amount: string;
|
|
2181
|
-
token: string;
|
|
2182
915
|
from: string;
|
|
2183
916
|
to: string;
|
|
2184
|
-
}, {
|
|
2185
917
|
amount: string;
|
|
2186
918
|
token: string;
|
|
919
|
+
}, {
|
|
2187
920
|
from: string;
|
|
2188
921
|
to: string;
|
|
922
|
+
amount: string;
|
|
923
|
+
token: string;
|
|
2189
924
|
}>, "many">;
|
|
2190
925
|
events: z.ZodArray<z.ZodObject<{
|
|
2191
926
|
contract: z.ZodString;
|
|
@@ -2263,15 +998,15 @@ export declare const SimulatePolicyInputSchema: z.ZodObject<{
|
|
|
2263
998
|
to: z.ZodString;
|
|
2264
999
|
amount: z.ZodString;
|
|
2265
1000
|
}, "strip", z.ZodTypeAny, {
|
|
2266
|
-
amount: string;
|
|
2267
|
-
token: string;
|
|
2268
1001
|
from: string;
|
|
2269
1002
|
to: string;
|
|
2270
|
-
}, {
|
|
2271
1003
|
amount: string;
|
|
2272
1004
|
token: string;
|
|
1005
|
+
}, {
|
|
2273
1006
|
from: string;
|
|
2274
1007
|
to: string;
|
|
1008
|
+
amount: string;
|
|
1009
|
+
token: string;
|
|
2275
1010
|
}>, "many">;
|
|
2276
1011
|
events: z.ZodArray<z.ZodObject<{
|
|
2277
1012
|
contract: z.ZodString;
|
|
@@ -2341,22 +1076,6 @@ export declare const SimulatePolicyInputSchema: z.ZodObject<{
|
|
|
2341
1076
|
sourceAccount: z.ZodString;
|
|
2342
1077
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2343
1078
|
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
2344
|
-
oraclePricesByAsset: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
2345
|
-
price: z.ZodString;
|
|
2346
|
-
timestampSeconds: z.ZodNumber;
|
|
2347
|
-
}, "strip", z.ZodTypeAny, {
|
|
2348
|
-
price: string;
|
|
2349
|
-
timestampSeconds: number;
|
|
2350
|
-
}, {
|
|
2351
|
-
price: string;
|
|
2352
|
-
timestampSeconds: number;
|
|
2353
|
-
}>, z.ZodObject<{
|
|
2354
|
-
error: z.ZodEnum<["stale", "missing", "deviation", "paused", "decimals", "fingerprint"]>;
|
|
2355
|
-
}, "strip", z.ZodTypeAny, {
|
|
2356
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2357
|
-
}, {
|
|
2358
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2359
|
-
}>]>>>;
|
|
2360
1079
|
}, "strip", z.ZodTypeAny, {
|
|
2361
1080
|
permitTx: {
|
|
2362
1081
|
signers: string[];
|
|
@@ -2369,10 +1088,10 @@ export declare const SimulatePolicyInputSchema: z.ZodObject<{
|
|
|
2369
1088
|
network: "mainnet" | "testnet";
|
|
2370
1089
|
invocations: unknown[];
|
|
2371
1090
|
tokenMovements: {
|
|
2372
|
-
amount: string;
|
|
2373
|
-
token: string;
|
|
2374
1091
|
from: string;
|
|
2375
1092
|
to: string;
|
|
1093
|
+
amount: string;
|
|
1094
|
+
token: string;
|
|
2376
1095
|
}[];
|
|
2377
1096
|
authEntries: unknown[];
|
|
2378
1097
|
ledgerSequence: number;
|
|
@@ -2395,12 +1114,6 @@ export declare const SimulatePolicyInputSchema: z.ZodObject<{
|
|
|
2395
1114
|
};
|
|
2396
1115
|
validUntilLedger?: number | undefined;
|
|
2397
1116
|
predicate?: unknown;
|
|
2398
|
-
oraclePricesByAsset?: Record<string, {
|
|
2399
|
-
price: string;
|
|
2400
|
-
timestampSeconds: number;
|
|
2401
|
-
} | {
|
|
2402
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2403
|
-
}> | undefined;
|
|
2404
1117
|
}, {
|
|
2405
1118
|
permitTx: {
|
|
2406
1119
|
signers: string[];
|
|
@@ -2413,10 +1126,10 @@ export declare const SimulatePolicyInputSchema: z.ZodObject<{
|
|
|
2413
1126
|
network: "mainnet" | "testnet";
|
|
2414
1127
|
invocations: unknown[];
|
|
2415
1128
|
tokenMovements: {
|
|
2416
|
-
amount: string;
|
|
2417
|
-
token: string;
|
|
2418
1129
|
from: string;
|
|
2419
1130
|
to: string;
|
|
1131
|
+
amount: string;
|
|
1132
|
+
token: string;
|
|
2420
1133
|
}[];
|
|
2421
1134
|
authEntries: unknown[];
|
|
2422
1135
|
ledgerSequence: number;
|
|
@@ -2439,12 +1152,6 @@ export declare const SimulatePolicyInputSchema: z.ZodObject<{
|
|
|
2439
1152
|
};
|
|
2440
1153
|
validUntilLedger?: number | undefined;
|
|
2441
1154
|
predicate?: unknown;
|
|
2442
|
-
oraclePricesByAsset?: Record<string, {
|
|
2443
|
-
price: string;
|
|
2444
|
-
timestampSeconds: number;
|
|
2445
|
-
} | {
|
|
2446
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2447
|
-
}> | undefined;
|
|
2448
1155
|
}>;
|
|
2449
1156
|
export type SimulatePolicyInput = z.infer<typeof SimulatePolicyInputSchema>;
|
|
2450
1157
|
export declare const VerifyPolicyInputSchema: z.ZodObject<{
|
|
@@ -2459,15 +1166,15 @@ export declare const VerifyPolicyInputSchema: z.ZodObject<{
|
|
|
2459
1166
|
to: z.ZodString;
|
|
2460
1167
|
amount: z.ZodString;
|
|
2461
1168
|
}, "strip", z.ZodTypeAny, {
|
|
2462
|
-
amount: string;
|
|
2463
|
-
token: string;
|
|
2464
1169
|
from: string;
|
|
2465
1170
|
to: string;
|
|
2466
|
-
}, {
|
|
2467
1171
|
amount: string;
|
|
2468
1172
|
token: string;
|
|
1173
|
+
}, {
|
|
2469
1174
|
from: string;
|
|
2470
1175
|
to: string;
|
|
1176
|
+
amount: string;
|
|
1177
|
+
token: string;
|
|
2471
1178
|
}>, "many">;
|
|
2472
1179
|
events: z.ZodArray<z.ZodObject<{
|
|
2473
1180
|
contract: z.ZodString;
|
|
@@ -2545,15 +1252,15 @@ export declare const VerifyPolicyInputSchema: z.ZodObject<{
|
|
|
2545
1252
|
to: z.ZodString;
|
|
2546
1253
|
amount: z.ZodString;
|
|
2547
1254
|
}, "strip", z.ZodTypeAny, {
|
|
2548
|
-
amount: string;
|
|
2549
|
-
token: string;
|
|
2550
1255
|
from: string;
|
|
2551
1256
|
to: string;
|
|
2552
|
-
}, {
|
|
2553
1257
|
amount: string;
|
|
2554
1258
|
token: string;
|
|
1259
|
+
}, {
|
|
2555
1260
|
from: string;
|
|
2556
1261
|
to: string;
|
|
1262
|
+
amount: string;
|
|
1263
|
+
token: string;
|
|
2557
1264
|
}>, "many">;
|
|
2558
1265
|
events: z.ZodArray<z.ZodObject<{
|
|
2559
1266
|
contract: z.ZodString;
|
|
@@ -2631,15 +1338,15 @@ export declare const VerifyPolicyInputSchema: z.ZodObject<{
|
|
|
2631
1338
|
to: z.ZodString;
|
|
2632
1339
|
amount: z.ZodString;
|
|
2633
1340
|
}, "strip", z.ZodTypeAny, {
|
|
2634
|
-
amount: string;
|
|
2635
|
-
token: string;
|
|
2636
1341
|
from: string;
|
|
2637
1342
|
to: string;
|
|
2638
|
-
}, {
|
|
2639
1343
|
amount: string;
|
|
2640
1344
|
token: string;
|
|
1345
|
+
}, {
|
|
2641
1346
|
from: string;
|
|
2642
1347
|
to: string;
|
|
1348
|
+
amount: string;
|
|
1349
|
+
token: string;
|
|
2643
1350
|
}>, "many">;
|
|
2644
1351
|
events: z.ZodArray<z.ZodObject<{
|
|
2645
1352
|
contract: z.ZodString;
|
|
@@ -2709,22 +1416,6 @@ export declare const VerifyPolicyInputSchema: z.ZodObject<{
|
|
|
2709
1416
|
sourceAccount: z.ZodString;
|
|
2710
1417
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2711
1418
|
validUntilLedger: z.ZodOptional<z.ZodNumber>;
|
|
2712
|
-
oraclePricesByAsset: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
2713
|
-
price: z.ZodString;
|
|
2714
|
-
timestampSeconds: z.ZodNumber;
|
|
2715
|
-
}, "strip", z.ZodTypeAny, {
|
|
2716
|
-
price: string;
|
|
2717
|
-
timestampSeconds: number;
|
|
2718
|
-
}, {
|
|
2719
|
-
price: string;
|
|
2720
|
-
timestampSeconds: number;
|
|
2721
|
-
}>, z.ZodObject<{
|
|
2722
|
-
error: z.ZodEnum<["stale", "missing", "deviation", "paused", "decimals", "fingerprint"]>;
|
|
2723
|
-
}, "strip", z.ZodTypeAny, {
|
|
2724
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2725
|
-
}, {
|
|
2726
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2727
|
-
}>]>>>;
|
|
2728
1419
|
}, "strip", z.ZodTypeAny, {
|
|
2729
1420
|
permitTx: {
|
|
2730
1421
|
signers: string[];
|
|
@@ -2737,10 +1428,10 @@ export declare const VerifyPolicyInputSchema: z.ZodObject<{
|
|
|
2737
1428
|
network: "mainnet" | "testnet";
|
|
2738
1429
|
invocations: unknown[];
|
|
2739
1430
|
tokenMovements: {
|
|
2740
|
-
amount: string;
|
|
2741
|
-
token: string;
|
|
2742
1431
|
from: string;
|
|
2743
1432
|
to: string;
|
|
1433
|
+
amount: string;
|
|
1434
|
+
token: string;
|
|
2744
1435
|
}[];
|
|
2745
1436
|
authEntries: unknown[];
|
|
2746
1437
|
ledgerSequence: number;
|
|
@@ -2763,12 +1454,6 @@ export declare const VerifyPolicyInputSchema: z.ZodObject<{
|
|
|
2763
1454
|
};
|
|
2764
1455
|
validUntilLedger?: number | undefined;
|
|
2765
1456
|
predicate?: unknown;
|
|
2766
|
-
oraclePricesByAsset?: Record<string, {
|
|
2767
|
-
price: string;
|
|
2768
|
-
timestampSeconds: number;
|
|
2769
|
-
} | {
|
|
2770
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2771
|
-
}> | undefined;
|
|
2772
1457
|
}, {
|
|
2773
1458
|
permitTx: {
|
|
2774
1459
|
signers: string[];
|
|
@@ -2781,10 +1466,10 @@ export declare const VerifyPolicyInputSchema: z.ZodObject<{
|
|
|
2781
1466
|
network: "mainnet" | "testnet";
|
|
2782
1467
|
invocations: unknown[];
|
|
2783
1468
|
tokenMovements: {
|
|
2784
|
-
amount: string;
|
|
2785
|
-
token: string;
|
|
2786
1469
|
from: string;
|
|
2787
1470
|
to: string;
|
|
1471
|
+
amount: string;
|
|
1472
|
+
token: string;
|
|
2788
1473
|
}[];
|
|
2789
1474
|
authEntries: unknown[];
|
|
2790
1475
|
ledgerSequence: number;
|
|
@@ -2807,28 +1492,27 @@ export declare const VerifyPolicyInputSchema: z.ZodObject<{
|
|
|
2807
1492
|
};
|
|
2808
1493
|
validUntilLedger?: number | undefined;
|
|
2809
1494
|
predicate?: unknown;
|
|
2810
|
-
oraclePricesByAsset?: Record<string, {
|
|
2811
|
-
price: string;
|
|
2812
|
-
timestampSeconds: number;
|
|
2813
|
-
} | {
|
|
2814
|
-
error: "stale" | "missing" | "deviation" | "paused" | "decimals" | "fingerprint";
|
|
2815
|
-
}> | undefined;
|
|
2816
1495
|
}>;
|
|
2817
1496
|
export type VerifyPolicyInput = z.infer<typeof VerifyPolicyInputSchema>;
|
|
2818
1497
|
/** Pinned interpreter address (testnet).
|
|
2819
1498
|
* Single source for the MCP layer; do not embed elsewhere. */
|
|
2820
|
-
export declare const PINNED_INTERPRETER_TESTNET_ADDRESS = "
|
|
2821
|
-
/** Pinned interpreter address (mainnet).
|
|
2822
|
-
*
|
|
2823
|
-
*
|
|
2824
|
-
*
|
|
2825
|
-
* ids are network-scoped. UNAUDITED at the time of writing.
|
|
2826
|
-
|
|
1499
|
+
export declare const PINNED_INTERPRETER_TESTNET_ADDRESS = "CCL336TCK2Y5OFNRCMN2M3HVPBCEX4PW5H6EQ5VW5NPMXOCP4ESB5XR4";
|
|
1500
|
+
/** Pinned interpreter address (mainnet), redeployed 2026-08-22 from a reproducible build. The mainnet
|
|
1501
|
+
* interpreter IS the binary exercised on testnet - both instances were created
|
|
1502
|
+
* from the same uploaded wasm hash (see PINNED_INTERPRETER_WASM_SHA256), and
|
|
1503
|
+
* both were read back with `grammar_version()` returning 3. The address differs
|
|
1504
|
+
* because instance ids are network-scoped. UNAUDITED at the time of writing.
|
|
1505
|
+
*
|
|
1506
|
+
* These four constants move together or not at all. The grammar version and
|
|
1507
|
+
* wasm hash are single values covering BOTH networks, so re-pinning one network
|
|
1508
|
+
* alone would have the builder emit a version the other network refuses - with
|
|
1509
|
+
* a green test run, since `grammar-version-parity.test.ts` would then pass. */
|
|
1510
|
+
export declare const PINNED_INTERPRETER_MAINNET_ADDRESS = "CBZXLSTQUITBFZHQH6XRXF3XIVRQR4RHRI64Q5WELS5KGY3ZKJPFWDPF";
|
|
2827
1511
|
/** Pinned interpreter wasm sha256 (hex). */
|
|
2828
|
-
export declare const PINNED_INTERPRETER_WASM_SHA256 = "
|
|
1512
|
+
export declare const PINNED_INTERPRETER_WASM_SHA256 = "a2b36e8ac5a61caf3757af26aa79e83f2995b451099f44772383806a55fe3414";
|
|
2829
1513
|
/** The grammar version the interpreter enforces (matches SELF_VERSION in
|
|
2830
1514
|
* contracts/policy-interpreter/src/version.rs). */
|
|
2831
|
-
export declare const PINNED_INTERPRETER_GRAMMAR_VERSION =
|
|
1515
|
+
export declare const PINNED_INTERPRETER_GRAMMAR_VERSION = 3;
|
|
2832
1516
|
/** Default Soroban RPC for the install / revoke / info tools. The recorder
|
|
2833
1517
|
* keeps its own copy in record/rpc.ts because it hands back a fetcher rather
|
|
2834
1518
|
* than a Server; the two are deliberately different surfaces, so this is
|
|
@@ -2845,9 +1529,6 @@ export declare const MAINNET_RPC_URL = "https://mainnet.sorobanrpc.com";
|
|
|
2845
1529
|
* a single constant - only the addresses and RPCs are network-scoped. */
|
|
2846
1530
|
export declare const PINNED_INTERPRETER_ADDRESS_BY_NETWORK: Record<Network, string>;
|
|
2847
1531
|
export declare const RPC_URL_BY_NETWORK: Record<Network, string>;
|
|
2848
|
-
/** Soroban `valid_until` window (ledgers) added to the latest ledger when
|
|
2849
|
-
* building the auth entry. ~25 minutes at 5s/ledger. */
|
|
2850
|
-
export declare const DEFAULT_AUTH_VALID_UNTIL_LEDGERS = 300;
|
|
2851
1532
|
/** Stellar network passphrases. Pinned here so the XDR envelope uses the
|
|
2852
1533
|
* matching passphrase when the wallet signs (a mismatch yields invalid
|
|
2853
1534
|
* hashes). */
|
|
@@ -2878,11 +1559,11 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2878
1559
|
kind: z.ZodLiteral<"call_contract">;
|
|
2879
1560
|
contract: z.ZodString;
|
|
2880
1561
|
}, "strip", z.ZodTypeAny, {
|
|
2881
|
-
contract: string;
|
|
2882
1562
|
kind: "call_contract";
|
|
2883
|
-
}, {
|
|
2884
1563
|
contract: string;
|
|
1564
|
+
}, {
|
|
2885
1565
|
kind: "call_contract";
|
|
1566
|
+
contract: string;
|
|
2886
1567
|
}>, z.ZodObject<{
|
|
2887
1568
|
kind: z.ZodLiteral<"create_contract">;
|
|
2888
1569
|
wasmHash: z.ZodString;
|
|
@@ -2917,7 +1598,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2917
1598
|
verifier: string;
|
|
2918
1599
|
keyBytes: string;
|
|
2919
1600
|
}>]>, "many">;
|
|
2920
|
-
policies: z.ZodArray<z.
|
|
1601
|
+
policies: z.ZodArray<z.ZodObject<{
|
|
2921
1602
|
kind: z.ZodLiteral<"interpreter">;
|
|
2922
1603
|
interpreterAddress: z.ZodString;
|
|
2923
1604
|
predicateBlobBase64: z.ZodString;
|
|
@@ -2929,34 +1610,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2929
1610
|
kind: "interpreter";
|
|
2930
1611
|
interpreterAddress: string;
|
|
2931
1612
|
predicateBlobBase64: string;
|
|
2932
|
-
}>,
|
|
2933
|
-
kind: z.ZodLiteral<"oz_builtin">;
|
|
2934
|
-
primitive: z.ZodObject<{
|
|
2935
|
-
primitive: z.ZodEnum<["spending_limit", "simple_threshold", "weighted_threshold"]>;
|
|
2936
|
-
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2937
|
-
}, "strip", z.ZodTypeAny, {
|
|
2938
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
2939
|
-
params: Record<string, unknown>;
|
|
2940
|
-
}, {
|
|
2941
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
2942
|
-
params: Record<string, unknown>;
|
|
2943
|
-
}>;
|
|
2944
|
-
instanceAddress: z.ZodString;
|
|
2945
|
-
}, "strip", z.ZodTypeAny, {
|
|
2946
|
-
instanceAddress: string;
|
|
2947
|
-
primitive: {
|
|
2948
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
2949
|
-
params: Record<string, unknown>;
|
|
2950
|
-
};
|
|
2951
|
-
kind: "oz_builtin";
|
|
2952
|
-
}, {
|
|
2953
|
-
instanceAddress: string;
|
|
2954
|
-
primitive: {
|
|
2955
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
2956
|
-
params: Record<string, unknown>;
|
|
2957
|
-
};
|
|
2958
|
-
kind: "oz_builtin";
|
|
2959
|
-
}>]>, "many">;
|
|
1613
|
+
}>, "many">;
|
|
2960
1614
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2961
1615
|
contextRuleType: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2962
1616
|
kind: z.ZodLiteral<"default">;
|
|
@@ -2968,11 +1622,11 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2968
1622
|
kind: z.ZodLiteral<"call_contract">;
|
|
2969
1623
|
contract: z.ZodString;
|
|
2970
1624
|
}, "strip", z.ZodTypeAny, {
|
|
2971
|
-
contract: string;
|
|
2972
1625
|
kind: "call_contract";
|
|
2973
|
-
}, {
|
|
2974
1626
|
contract: string;
|
|
1627
|
+
}, {
|
|
2975
1628
|
kind: "call_contract";
|
|
1629
|
+
contract: string;
|
|
2976
1630
|
}>, z.ZodObject<{
|
|
2977
1631
|
kind: z.ZodLiteral<"create_contract">;
|
|
2978
1632
|
wasmHash: z.ZodString;
|
|
@@ -3007,7 +1661,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3007
1661
|
verifier: string;
|
|
3008
1662
|
keyBytes: string;
|
|
3009
1663
|
}>]>, "many">;
|
|
3010
|
-
policies: z.ZodArray<z.
|
|
1664
|
+
policies: z.ZodArray<z.ZodObject<{
|
|
3011
1665
|
kind: z.ZodLiteral<"interpreter">;
|
|
3012
1666
|
interpreterAddress: z.ZodString;
|
|
3013
1667
|
predicateBlobBase64: z.ZodString;
|
|
@@ -3019,34 +1673,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3019
1673
|
kind: "interpreter";
|
|
3020
1674
|
interpreterAddress: string;
|
|
3021
1675
|
predicateBlobBase64: string;
|
|
3022
|
-
}>,
|
|
3023
|
-
kind: z.ZodLiteral<"oz_builtin">;
|
|
3024
|
-
primitive: z.ZodObject<{
|
|
3025
|
-
primitive: z.ZodEnum<["spending_limit", "simple_threshold", "weighted_threshold"]>;
|
|
3026
|
-
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3027
|
-
}, "strip", z.ZodTypeAny, {
|
|
3028
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3029
|
-
params: Record<string, unknown>;
|
|
3030
|
-
}, {
|
|
3031
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3032
|
-
params: Record<string, unknown>;
|
|
3033
|
-
}>;
|
|
3034
|
-
instanceAddress: z.ZodString;
|
|
3035
|
-
}, "strip", z.ZodTypeAny, {
|
|
3036
|
-
instanceAddress: string;
|
|
3037
|
-
primitive: {
|
|
3038
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3039
|
-
params: Record<string, unknown>;
|
|
3040
|
-
};
|
|
3041
|
-
kind: "oz_builtin";
|
|
3042
|
-
}, {
|
|
3043
|
-
instanceAddress: string;
|
|
3044
|
-
primitive: {
|
|
3045
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3046
|
-
params: Record<string, unknown>;
|
|
3047
|
-
};
|
|
3048
|
-
kind: "oz_builtin";
|
|
3049
|
-
}>]>, "many">;
|
|
1676
|
+
}>, "many">;
|
|
3050
1677
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3051
1678
|
contextRuleType: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3052
1679
|
kind: z.ZodLiteral<"default">;
|
|
@@ -3058,11 +1685,11 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3058
1685
|
kind: z.ZodLiteral<"call_contract">;
|
|
3059
1686
|
contract: z.ZodString;
|
|
3060
1687
|
}, "strip", z.ZodTypeAny, {
|
|
3061
|
-
contract: string;
|
|
3062
1688
|
kind: "call_contract";
|
|
3063
|
-
}, {
|
|
3064
1689
|
contract: string;
|
|
1690
|
+
}, {
|
|
3065
1691
|
kind: "call_contract";
|
|
1692
|
+
contract: string;
|
|
3066
1693
|
}>, z.ZodObject<{
|
|
3067
1694
|
kind: z.ZodLiteral<"create_contract">;
|
|
3068
1695
|
wasmHash: z.ZodString;
|
|
@@ -3097,7 +1724,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3097
1724
|
verifier: string;
|
|
3098
1725
|
keyBytes: string;
|
|
3099
1726
|
}>]>, "many">;
|
|
3100
|
-
policies: z.ZodArray<z.
|
|
1727
|
+
policies: z.ZodArray<z.ZodObject<{
|
|
3101
1728
|
kind: z.ZodLiteral<"interpreter">;
|
|
3102
1729
|
interpreterAddress: z.ZodString;
|
|
3103
1730
|
predicateBlobBase64: z.ZodString;
|
|
@@ -3109,34 +1736,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3109
1736
|
kind: "interpreter";
|
|
3110
1737
|
interpreterAddress: string;
|
|
3111
1738
|
predicateBlobBase64: string;
|
|
3112
|
-
}>,
|
|
3113
|
-
kind: z.ZodLiteral<"oz_builtin">;
|
|
3114
|
-
primitive: z.ZodObject<{
|
|
3115
|
-
primitive: z.ZodEnum<["spending_limit", "simple_threshold", "weighted_threshold"]>;
|
|
3116
|
-
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3117
|
-
}, "strip", z.ZodTypeAny, {
|
|
3118
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3119
|
-
params: Record<string, unknown>;
|
|
3120
|
-
}, {
|
|
3121
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3122
|
-
params: Record<string, unknown>;
|
|
3123
|
-
}>;
|
|
3124
|
-
instanceAddress: z.ZodString;
|
|
3125
|
-
}, "strip", z.ZodTypeAny, {
|
|
3126
|
-
instanceAddress: string;
|
|
3127
|
-
primitive: {
|
|
3128
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3129
|
-
params: Record<string, unknown>;
|
|
3130
|
-
};
|
|
3131
|
-
kind: "oz_builtin";
|
|
3132
|
-
}, {
|
|
3133
|
-
instanceAddress: string;
|
|
3134
|
-
primitive: {
|
|
3135
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3136
|
-
params: Record<string, unknown>;
|
|
3137
|
-
};
|
|
3138
|
-
kind: "oz_builtin";
|
|
3139
|
-
}>]>, "many">;
|
|
1739
|
+
}>, "many">;
|
|
3140
1740
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
3141
1741
|
contextRuleType: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3142
1742
|
kind: z.ZodLiteral<"default">;
|
|
@@ -3148,11 +1748,11 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3148
1748
|
kind: z.ZodLiteral<"call_contract">;
|
|
3149
1749
|
contract: z.ZodString;
|
|
3150
1750
|
}, "strip", z.ZodTypeAny, {
|
|
3151
|
-
contract: string;
|
|
3152
1751
|
kind: "call_contract";
|
|
3153
|
-
}, {
|
|
3154
1752
|
contract: string;
|
|
1753
|
+
}, {
|
|
3155
1754
|
kind: "call_contract";
|
|
1755
|
+
contract: string;
|
|
3156
1756
|
}>, z.ZodObject<{
|
|
3157
1757
|
kind: z.ZodLiteral<"create_contract">;
|
|
3158
1758
|
wasmHash: z.ZodString;
|
|
@@ -3187,7 +1787,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3187
1787
|
verifier: string;
|
|
3188
1788
|
keyBytes: string;
|
|
3189
1789
|
}>]>, "many">;
|
|
3190
|
-
policies: z.ZodArray<z.
|
|
1790
|
+
policies: z.ZodArray<z.ZodObject<{
|
|
3191
1791
|
kind: z.ZodLiteral<"interpreter">;
|
|
3192
1792
|
interpreterAddress: z.ZodString;
|
|
3193
1793
|
predicateBlobBase64: z.ZodString;
|
|
@@ -3199,34 +1799,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3199
1799
|
kind: "interpreter";
|
|
3200
1800
|
interpreterAddress: string;
|
|
3201
1801
|
predicateBlobBase64: string;
|
|
3202
|
-
}>,
|
|
3203
|
-
kind: z.ZodLiteral<"oz_builtin">;
|
|
3204
|
-
primitive: z.ZodObject<{
|
|
3205
|
-
primitive: z.ZodEnum<["spending_limit", "simple_threshold", "weighted_threshold"]>;
|
|
3206
|
-
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3207
|
-
}, "strip", z.ZodTypeAny, {
|
|
3208
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3209
|
-
params: Record<string, unknown>;
|
|
3210
|
-
}, {
|
|
3211
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3212
|
-
params: Record<string, unknown>;
|
|
3213
|
-
}>;
|
|
3214
|
-
instanceAddress: z.ZodString;
|
|
3215
|
-
}, "strip", z.ZodTypeAny, {
|
|
3216
|
-
instanceAddress: string;
|
|
3217
|
-
primitive: {
|
|
3218
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3219
|
-
params: Record<string, unknown>;
|
|
3220
|
-
};
|
|
3221
|
-
kind: "oz_builtin";
|
|
3222
|
-
}, {
|
|
3223
|
-
instanceAddress: string;
|
|
3224
|
-
primitive: {
|
|
3225
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3226
|
-
params: Record<string, unknown>;
|
|
3227
|
-
};
|
|
3228
|
-
kind: "oz_builtin";
|
|
3229
|
-
}>]>, "many">;
|
|
1802
|
+
}>, "many">;
|
|
3230
1803
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3231
1804
|
contextRuleType: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3232
1805
|
kind: z.ZodLiteral<"default">;
|
|
@@ -3238,11 +1811,11 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3238
1811
|
kind: z.ZodLiteral<"call_contract">;
|
|
3239
1812
|
contract: z.ZodString;
|
|
3240
1813
|
}, "strip", z.ZodTypeAny, {
|
|
3241
|
-
contract: string;
|
|
3242
1814
|
kind: "call_contract";
|
|
3243
|
-
}, {
|
|
3244
1815
|
contract: string;
|
|
1816
|
+
}, {
|
|
3245
1817
|
kind: "call_contract";
|
|
1818
|
+
contract: string;
|
|
3246
1819
|
}>, z.ZodObject<{
|
|
3247
1820
|
kind: z.ZodLiteral<"create_contract">;
|
|
3248
1821
|
wasmHash: z.ZodString;
|
|
@@ -3277,7 +1850,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3277
1850
|
verifier: string;
|
|
3278
1851
|
keyBytes: string;
|
|
3279
1852
|
}>]>, "many">;
|
|
3280
|
-
policies: z.ZodArray<z.
|
|
1853
|
+
policies: z.ZodArray<z.ZodObject<{
|
|
3281
1854
|
kind: z.ZodLiteral<"interpreter">;
|
|
3282
1855
|
interpreterAddress: z.ZodString;
|
|
3283
1856
|
predicateBlobBase64: z.ZodString;
|
|
@@ -3289,34 +1862,7 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3289
1862
|
kind: "interpreter";
|
|
3290
1863
|
interpreterAddress: string;
|
|
3291
1864
|
predicateBlobBase64: string;
|
|
3292
|
-
}>,
|
|
3293
|
-
kind: z.ZodLiteral<"oz_builtin">;
|
|
3294
|
-
primitive: z.ZodObject<{
|
|
3295
|
-
primitive: z.ZodEnum<["spending_limit", "simple_threshold", "weighted_threshold"]>;
|
|
3296
|
-
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3297
|
-
}, "strip", z.ZodTypeAny, {
|
|
3298
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3299
|
-
params: Record<string, unknown>;
|
|
3300
|
-
}, {
|
|
3301
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3302
|
-
params: Record<string, unknown>;
|
|
3303
|
-
}>;
|
|
3304
|
-
instanceAddress: z.ZodString;
|
|
3305
|
-
}, "strip", z.ZodTypeAny, {
|
|
3306
|
-
instanceAddress: string;
|
|
3307
|
-
primitive: {
|
|
3308
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3309
|
-
params: Record<string, unknown>;
|
|
3310
|
-
};
|
|
3311
|
-
kind: "oz_builtin";
|
|
3312
|
-
}, {
|
|
3313
|
-
instanceAddress: string;
|
|
3314
|
-
primitive: {
|
|
3315
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3316
|
-
params: Record<string, unknown>;
|
|
3317
|
-
};
|
|
3318
|
-
kind: "oz_builtin";
|
|
3319
|
-
}>]>, "many">;
|
|
1865
|
+
}>, "many">;
|
|
3320
1866
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3321
1867
|
/** Per-rule install nonce; 1 for a fresh install. */
|
|
3322
1868
|
installNonce: z.ZodNumber;
|
|
@@ -3340,20 +1886,10 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3340
1886
|
/** Base fee in stroops; defaults to BASE_FEE (100). */
|
|
3341
1887
|
baseFee: z.ZodOptional<z.ZodNumber>;
|
|
3342
1888
|
}, "strip", z.ZodTypeAny, {
|
|
3343
|
-
installNonce: number;
|
|
3344
1889
|
smartAccount: string;
|
|
3345
1890
|
sourceAccount: string;
|
|
1891
|
+
installNonce: number;
|
|
3346
1892
|
rule: {
|
|
3347
|
-
contextRuleType: {
|
|
3348
|
-
kind: "default";
|
|
3349
|
-
} | {
|
|
3350
|
-
contract: string;
|
|
3351
|
-
kind: "call_contract";
|
|
3352
|
-
} | {
|
|
3353
|
-
kind: "create_contract";
|
|
3354
|
-
wasmHash: string;
|
|
3355
|
-
};
|
|
3356
|
-
validUntilLedger: number | null;
|
|
3357
1893
|
signers: ({
|
|
3358
1894
|
address: string;
|
|
3359
1895
|
kind: "delegated";
|
|
@@ -3362,18 +1898,21 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3362
1898
|
verifier: string;
|
|
3363
1899
|
keyBytes: string;
|
|
3364
1900
|
})[];
|
|
3365
|
-
|
|
1901
|
+
validUntilLedger: number | null;
|
|
1902
|
+
contextRuleType: {
|
|
1903
|
+
kind: "default";
|
|
1904
|
+
} | {
|
|
1905
|
+
kind: "call_contract";
|
|
1906
|
+
contract: string;
|
|
1907
|
+
} | {
|
|
1908
|
+
kind: "create_contract";
|
|
1909
|
+
wasmHash: string;
|
|
1910
|
+
};
|
|
1911
|
+
policies: {
|
|
3366
1912
|
kind: "interpreter";
|
|
3367
1913
|
interpreterAddress: string;
|
|
3368
1914
|
predicateBlobBase64: string;
|
|
3369
|
-
}
|
|
3370
|
-
instanceAddress: string;
|
|
3371
|
-
primitive: {
|
|
3372
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3373
|
-
params: Record<string, unknown>;
|
|
3374
|
-
};
|
|
3375
|
-
kind: "oz_builtin";
|
|
3376
|
-
})[];
|
|
1915
|
+
}[];
|
|
3377
1916
|
name: string;
|
|
3378
1917
|
} & {
|
|
3379
1918
|
[k: string]: unknown;
|
|
@@ -3384,20 +1923,10 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3384
1923
|
allowUnpinnedInterpreter?: boolean | undefined;
|
|
3385
1924
|
baseFee?: number | undefined;
|
|
3386
1925
|
}, {
|
|
3387
|
-
installNonce: number;
|
|
3388
1926
|
smartAccount: string;
|
|
3389
1927
|
sourceAccount: string;
|
|
1928
|
+
installNonce: number;
|
|
3390
1929
|
rule: {
|
|
3391
|
-
contextRuleType: {
|
|
3392
|
-
kind: "default";
|
|
3393
|
-
} | {
|
|
3394
|
-
contract: string;
|
|
3395
|
-
kind: "call_contract";
|
|
3396
|
-
} | {
|
|
3397
|
-
kind: "create_contract";
|
|
3398
|
-
wasmHash: string;
|
|
3399
|
-
};
|
|
3400
|
-
validUntilLedger: number | null;
|
|
3401
1930
|
signers: ({
|
|
3402
1931
|
address: string;
|
|
3403
1932
|
kind: "delegated";
|
|
@@ -3406,18 +1935,21 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3406
1935
|
verifier: string;
|
|
3407
1936
|
keyBytes: string;
|
|
3408
1937
|
})[];
|
|
3409
|
-
|
|
1938
|
+
validUntilLedger: number | null;
|
|
1939
|
+
contextRuleType: {
|
|
1940
|
+
kind: "default";
|
|
1941
|
+
} | {
|
|
1942
|
+
kind: "call_contract";
|
|
1943
|
+
contract: string;
|
|
1944
|
+
} | {
|
|
1945
|
+
kind: "create_contract";
|
|
1946
|
+
wasmHash: string;
|
|
1947
|
+
};
|
|
1948
|
+
policies: {
|
|
3410
1949
|
kind: "interpreter";
|
|
3411
1950
|
interpreterAddress: string;
|
|
3412
1951
|
predicateBlobBase64: string;
|
|
3413
|
-
}
|
|
3414
|
-
instanceAddress: string;
|
|
3415
|
-
primitive: {
|
|
3416
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3417
|
-
params: Record<string, unknown>;
|
|
3418
|
-
};
|
|
3419
|
-
kind: "oz_builtin";
|
|
3420
|
-
})[];
|
|
1952
|
+
}[];
|
|
3421
1953
|
name: string;
|
|
3422
1954
|
} & {
|
|
3423
1955
|
[k: string]: unknown;
|
|
@@ -3428,20 +1960,10 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3428
1960
|
allowUnpinnedInterpreter?: boolean | undefined;
|
|
3429
1961
|
baseFee?: number | undefined;
|
|
3430
1962
|
}>, {
|
|
3431
|
-
installNonce: number;
|
|
3432
1963
|
smartAccount: string;
|
|
3433
1964
|
sourceAccount: string;
|
|
1965
|
+
installNonce: number;
|
|
3434
1966
|
rule: {
|
|
3435
|
-
contextRuleType: {
|
|
3436
|
-
kind: "default";
|
|
3437
|
-
} | {
|
|
3438
|
-
contract: string;
|
|
3439
|
-
kind: "call_contract";
|
|
3440
|
-
} | {
|
|
3441
|
-
kind: "create_contract";
|
|
3442
|
-
wasmHash: string;
|
|
3443
|
-
};
|
|
3444
|
-
validUntilLedger: number | null;
|
|
3445
1967
|
signers: ({
|
|
3446
1968
|
address: string;
|
|
3447
1969
|
kind: "delegated";
|
|
@@ -3450,18 +1972,21 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3450
1972
|
verifier: string;
|
|
3451
1973
|
keyBytes: string;
|
|
3452
1974
|
})[];
|
|
3453
|
-
|
|
1975
|
+
validUntilLedger: number | null;
|
|
1976
|
+
contextRuleType: {
|
|
1977
|
+
kind: "default";
|
|
1978
|
+
} | {
|
|
1979
|
+
kind: "call_contract";
|
|
1980
|
+
contract: string;
|
|
1981
|
+
} | {
|
|
1982
|
+
kind: "create_contract";
|
|
1983
|
+
wasmHash: string;
|
|
1984
|
+
};
|
|
1985
|
+
policies: {
|
|
3454
1986
|
kind: "interpreter";
|
|
3455
1987
|
interpreterAddress: string;
|
|
3456
1988
|
predicateBlobBase64: string;
|
|
3457
|
-
}
|
|
3458
|
-
instanceAddress: string;
|
|
3459
|
-
primitive: {
|
|
3460
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3461
|
-
params: Record<string, unknown>;
|
|
3462
|
-
};
|
|
3463
|
-
kind: "oz_builtin";
|
|
3464
|
-
})[];
|
|
1989
|
+
}[];
|
|
3465
1990
|
name: string;
|
|
3466
1991
|
} & {
|
|
3467
1992
|
[k: string]: unknown;
|
|
@@ -3472,20 +1997,10 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3472
1997
|
allowUnpinnedInterpreter?: boolean | undefined;
|
|
3473
1998
|
baseFee?: number | undefined;
|
|
3474
1999
|
}, {
|
|
3475
|
-
installNonce: number;
|
|
3476
2000
|
smartAccount: string;
|
|
3477
2001
|
sourceAccount: string;
|
|
2002
|
+
installNonce: number;
|
|
3478
2003
|
rule: {
|
|
3479
|
-
contextRuleType: {
|
|
3480
|
-
kind: "default";
|
|
3481
|
-
} | {
|
|
3482
|
-
contract: string;
|
|
3483
|
-
kind: "call_contract";
|
|
3484
|
-
} | {
|
|
3485
|
-
kind: "create_contract";
|
|
3486
|
-
wasmHash: string;
|
|
3487
|
-
};
|
|
3488
|
-
validUntilLedger: number | null;
|
|
3489
2004
|
signers: ({
|
|
3490
2005
|
address: string;
|
|
3491
2006
|
kind: "delegated";
|
|
@@ -3494,18 +2009,21 @@ export declare const InstallPolicyInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3494
2009
|
verifier: string;
|
|
3495
2010
|
keyBytes: string;
|
|
3496
2011
|
})[];
|
|
3497
|
-
|
|
2012
|
+
validUntilLedger: number | null;
|
|
2013
|
+
contextRuleType: {
|
|
2014
|
+
kind: "default";
|
|
2015
|
+
} | {
|
|
2016
|
+
kind: "call_contract";
|
|
2017
|
+
contract: string;
|
|
2018
|
+
} | {
|
|
2019
|
+
kind: "create_contract";
|
|
2020
|
+
wasmHash: string;
|
|
2021
|
+
};
|
|
2022
|
+
policies: {
|
|
3498
2023
|
kind: "interpreter";
|
|
3499
2024
|
interpreterAddress: string;
|
|
3500
2025
|
predicateBlobBase64: string;
|
|
3501
|
-
}
|
|
3502
|
-
instanceAddress: string;
|
|
3503
|
-
primitive: {
|
|
3504
|
-
primitive: "spending_limit" | "simple_threshold" | "weighted_threshold";
|
|
3505
|
-
params: Record<string, unknown>;
|
|
3506
|
-
};
|
|
3507
|
-
kind: "oz_builtin";
|
|
3508
|
-
})[];
|
|
2026
|
+
}[];
|
|
3509
2027
|
name: string;
|
|
3510
2028
|
} & {
|
|
3511
2029
|
[k: string]: unknown;
|