@hyperscale0/udl 2.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +15 -1
- package/conformance/invalid/call-binds-results.expected.json +10 -0
- package/conformance/invalid/call-binds-results.udl +314 -0
- package/conformance/invalid/call-unknown-action.expected.json +10 -0
- package/conformance/invalid/call-unknown-action.udl +314 -0
- package/conformance/invalid/leaf-effect-mismatch.expected.json +10 -0
- package/conformance/invalid/leaf-effect-mismatch.udl +314 -0
- package/conformance/invalid/piece-plan-without-partition.expected.json +10 -0
- package/conformance/invalid/piece-plan-without-partition.udl +305 -0
- package/conformance/invalid/private-action-independent-approval.expected.json +10 -0
- package/conformance/invalid/private-action-independent-approval.udl +314 -0
- package/conformance/invalid/unfund-order-not-reversed.expected.json +10 -0
- package/conformance/invalid/unfund-order-not-reversed.udl +314 -0
- package/conformance/valid/piece-plan-calls.expected.json +6 -0
- package/conformance/valid/piece-plan-calls.udl +314 -0
- package/dist/diagnostics.d.ts +36 -0
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/diagnostics.js +36 -0
- package/dist/diagnostics.js.map +1 -1
- package/dist/effects.d.ts +24 -3
- package/dist/effects.d.ts.map +1 -1
- package/dist/effects.js +906 -8
- package/dist/effects.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +2 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +2 -0
- package/dist/limits.js.map +1 -1
- package/dist/schema.d.ts +594 -11
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +111 -1
- package/dist/schema.js.map +1 -1
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +289 -4
- package/dist/validation.js.map +1 -1
- package/docs/assets/brand/manifest.json +30 -0
- package/docs/assets/brand/udl-horizontal-white.svg +1 -0
- package/docs/assets/brand/udl-horizontal.svg +1 -0
- package/docs/assets/brand/udl-stacked-white.svg +1 -0
- package/docs/assets/brand/udl-stacked.svg +1 -0
- package/docs/assets/udl.svg +7 -14
- package/docs/llms-full.txt +199 -32
- package/docs/llms.txt +1 -1
- package/docs/reference/clauses.md +162 -1
- package/docs/reference/cli.md +1 -1
- package/docs/reference/diagnostics.md +38 -32
- package/package.json +2 -2
- package/spec/udl.schema.json +321 -1
- package/src/diagnostics.ts +36 -0
- package/src/effects.ts +1603 -9
- package/src/index.ts +15 -0
- package/src/limits.ts +2 -0
- package/src/schema.ts +149 -2
- package/src/validation.ts +469 -4
package/dist/schema.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
export declare const udlEffectKinds: readonly ["decides", "holds", "moves", "notifies", "reads", "schedules"];
|
|
3
|
+
export type UdlEffectKind = (typeof udlEffectKinds)[number];
|
|
3
4
|
export declare const UDL_FORMAT_VERSION: 1;
|
|
4
5
|
export declare const udlPublicActionSchema: z.ZodString;
|
|
5
6
|
export declare const udlInstrumentActionIdSchema: z.ZodString;
|
|
@@ -472,8 +473,270 @@ declare const udlEffectsSchema: z.ZodObject<{
|
|
|
472
473
|
source: z.ZodString;
|
|
473
474
|
}, z.core.$strict>>>;
|
|
474
475
|
}, z.core.$strict>;
|
|
476
|
+
export declare const udlPieceSchema: z.ZodObject<{
|
|
477
|
+
amount: z.ZodString;
|
|
478
|
+
id: z.ZodString;
|
|
479
|
+
refund_to: z.ZodString;
|
|
480
|
+
release_to: z.ZodString;
|
|
481
|
+
}, z.core.$strict>;
|
|
482
|
+
export declare const udlPiecePlanSchema: z.ZodObject<{
|
|
483
|
+
fund_order: z.ZodArray<z.ZodString>;
|
|
484
|
+
id: z.ZodString;
|
|
485
|
+
pieces: z.ZodArray<z.ZodObject<{
|
|
486
|
+
amount: z.ZodString;
|
|
487
|
+
id: z.ZodString;
|
|
488
|
+
refund_to: z.ZodString;
|
|
489
|
+
release_to: z.ZodString;
|
|
490
|
+
}, z.core.$strict>>;
|
|
491
|
+
refund_order: z.ZodArray<z.ZodString>;
|
|
492
|
+
release_order: z.ZodArray<z.ZodString>;
|
|
493
|
+
total: z.ZodString;
|
|
494
|
+
unfund_order: z.ZodArray<z.ZodString>;
|
|
495
|
+
}, z.core.$strict>;
|
|
496
|
+
export declare const udlPieceStageStageSchema: z.ZodEnum<{
|
|
497
|
+
fund: "fund";
|
|
498
|
+
refund: "refund";
|
|
499
|
+
release: "release";
|
|
500
|
+
unfund: "unfund";
|
|
501
|
+
}>;
|
|
502
|
+
export declare const udlPieceStageSchema: z.ZodObject<{
|
|
503
|
+
plan: z.ZodString;
|
|
504
|
+
stage: z.ZodEnum<{
|
|
505
|
+
fund: "fund";
|
|
506
|
+
refund: "refund";
|
|
507
|
+
release: "release";
|
|
508
|
+
unfund: "unfund";
|
|
509
|
+
}>;
|
|
510
|
+
}, z.core.$strict>;
|
|
511
|
+
export declare const udlCallSchema: z.ZodObject<{
|
|
512
|
+
action: z.ZodString;
|
|
513
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
514
|
+
id: z.ZodString;
|
|
515
|
+
}, z.core.$strict>;
|
|
516
|
+
export declare const udlPrivateParameterKindSchema: z.ZodEnum<{
|
|
517
|
+
account: "account";
|
|
518
|
+
instance: "instance";
|
|
519
|
+
money: "money";
|
|
520
|
+
piece: "piece";
|
|
521
|
+
text: "text";
|
|
522
|
+
}>;
|
|
523
|
+
export declare const udlPrivateParameterSchema: z.ZodObject<{
|
|
524
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
525
|
+
kind: z.ZodEnum<{
|
|
526
|
+
account: "account";
|
|
527
|
+
instance: "instance";
|
|
528
|
+
money: "money";
|
|
529
|
+
piece: "piece";
|
|
530
|
+
text: "text";
|
|
531
|
+
}>;
|
|
532
|
+
}, z.core.$strict>;
|
|
533
|
+
export declare const udlPrivateLeafSchema: z.ZodObject<{
|
|
534
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
535
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
536
|
+
effects: z.ZodArray<z.ZodObject<{
|
|
537
|
+
kind: z.ZodEnum<{
|
|
538
|
+
decides: "decides";
|
|
539
|
+
holds: "holds";
|
|
540
|
+
moves: "moves";
|
|
541
|
+
notifies: "notifies";
|
|
542
|
+
reads: "reads";
|
|
543
|
+
schedules: "schedules";
|
|
544
|
+
}>;
|
|
545
|
+
signature: z.ZodString;
|
|
546
|
+
}, z.core.$strict>>;
|
|
547
|
+
evidence: z.ZodString;
|
|
548
|
+
id: z.ZodString;
|
|
549
|
+
operation: z.ZodEnum<{
|
|
550
|
+
"account.escrow.provision": "account.escrow.provision";
|
|
551
|
+
"account.freeze": "account.freeze";
|
|
552
|
+
"account.unfreeze": "account.unfreeze";
|
|
553
|
+
"internal_transfer.create": "internal_transfer.create";
|
|
554
|
+
"internal_transfer.post": "internal_transfer.post";
|
|
555
|
+
"internal_transfer.reserve": "internal_transfer.reserve";
|
|
556
|
+
"internal_transfer.void": "internal_transfer.void";
|
|
557
|
+
}>;
|
|
558
|
+
}, z.core.$strict>;
|
|
559
|
+
export declare const udlPrivateActionSchema: z.ZodObject<{
|
|
560
|
+
approval: z.ZodEnum<{
|
|
561
|
+
independent: "independent";
|
|
562
|
+
inherit: "inherit";
|
|
563
|
+
}>;
|
|
564
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
565
|
+
action: z.ZodString;
|
|
566
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
567
|
+
id: z.ZodString;
|
|
568
|
+
}, z.core.$strict>>;
|
|
569
|
+
leaves: z.ZodArray<z.ZodObject<{
|
|
570
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
571
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
572
|
+
effects: z.ZodArray<z.ZodObject<{
|
|
573
|
+
kind: z.ZodEnum<{
|
|
574
|
+
decides: "decides";
|
|
575
|
+
holds: "holds";
|
|
576
|
+
moves: "moves";
|
|
577
|
+
notifies: "notifies";
|
|
578
|
+
reads: "reads";
|
|
579
|
+
schedules: "schedules";
|
|
580
|
+
}>;
|
|
581
|
+
signature: z.ZodString;
|
|
582
|
+
}, z.core.$strict>>;
|
|
583
|
+
evidence: z.ZodString;
|
|
584
|
+
id: z.ZodString;
|
|
585
|
+
operation: z.ZodEnum<{
|
|
586
|
+
"account.escrow.provision": "account.escrow.provision";
|
|
587
|
+
"account.freeze": "account.freeze";
|
|
588
|
+
"account.unfreeze": "account.unfreeze";
|
|
589
|
+
"internal_transfer.create": "internal_transfer.create";
|
|
590
|
+
"internal_transfer.post": "internal_transfer.post";
|
|
591
|
+
"internal_transfer.reserve": "internal_transfer.reserve";
|
|
592
|
+
"internal_transfer.void": "internal_transfer.void";
|
|
593
|
+
}>;
|
|
594
|
+
}, z.core.$strict>>;
|
|
595
|
+
order: z.ZodArray<z.ZodString>;
|
|
596
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
597
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
598
|
+
kind: z.ZodEnum<{
|
|
599
|
+
account: "account";
|
|
600
|
+
instance: "instance";
|
|
601
|
+
money: "money";
|
|
602
|
+
piece: "piece";
|
|
603
|
+
text: "text";
|
|
604
|
+
}>;
|
|
605
|
+
}, z.core.$strict>>;
|
|
606
|
+
principal: z.ZodEnum<{
|
|
607
|
+
api_key: "api_key";
|
|
608
|
+
user_session: "user_session";
|
|
609
|
+
}>;
|
|
610
|
+
recovery: z.ZodEnum<{
|
|
611
|
+
external: "external";
|
|
612
|
+
local: "local";
|
|
613
|
+
}>;
|
|
614
|
+
}, z.core.$strict>;
|
|
615
|
+
export declare const udlActionLibraryModuleSchema: z.ZodObject<{
|
|
616
|
+
actionOrder: z.ZodArray<z.ZodString>;
|
|
617
|
+
actions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
618
|
+
approval: z.ZodEnum<{
|
|
619
|
+
independent: "independent";
|
|
620
|
+
inherit: "inherit";
|
|
621
|
+
}>;
|
|
622
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
623
|
+
action: z.ZodString;
|
|
624
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
625
|
+
id: z.ZodString;
|
|
626
|
+
}, z.core.$strict>>;
|
|
627
|
+
leaves: z.ZodArray<z.ZodObject<{
|
|
628
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
629
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
630
|
+
effects: z.ZodArray<z.ZodObject<{
|
|
631
|
+
kind: z.ZodEnum<{
|
|
632
|
+
decides: "decides";
|
|
633
|
+
holds: "holds";
|
|
634
|
+
moves: "moves";
|
|
635
|
+
notifies: "notifies";
|
|
636
|
+
reads: "reads";
|
|
637
|
+
schedules: "schedules";
|
|
638
|
+
}>;
|
|
639
|
+
signature: z.ZodString;
|
|
640
|
+
}, z.core.$strict>>;
|
|
641
|
+
evidence: z.ZodString;
|
|
642
|
+
id: z.ZodString;
|
|
643
|
+
operation: z.ZodEnum<{
|
|
644
|
+
"account.escrow.provision": "account.escrow.provision";
|
|
645
|
+
"account.freeze": "account.freeze";
|
|
646
|
+
"account.unfreeze": "account.unfreeze";
|
|
647
|
+
"internal_transfer.create": "internal_transfer.create";
|
|
648
|
+
"internal_transfer.post": "internal_transfer.post";
|
|
649
|
+
"internal_transfer.reserve": "internal_transfer.reserve";
|
|
650
|
+
"internal_transfer.void": "internal_transfer.void";
|
|
651
|
+
}>;
|
|
652
|
+
}, z.core.$strict>>;
|
|
653
|
+
order: z.ZodArray<z.ZodString>;
|
|
654
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
655
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
656
|
+
kind: z.ZodEnum<{
|
|
657
|
+
account: "account";
|
|
658
|
+
instance: "instance";
|
|
659
|
+
money: "money";
|
|
660
|
+
piece: "piece";
|
|
661
|
+
text: "text";
|
|
662
|
+
}>;
|
|
663
|
+
}, z.core.$strict>>;
|
|
664
|
+
principal: z.ZodEnum<{
|
|
665
|
+
api_key: "api_key";
|
|
666
|
+
user_session: "user_session";
|
|
667
|
+
}>;
|
|
668
|
+
recovery: z.ZodEnum<{
|
|
669
|
+
external: "external";
|
|
670
|
+
local: "local";
|
|
671
|
+
}>;
|
|
672
|
+
}, z.core.$strict>>;
|
|
673
|
+
}, z.core.$strict>;
|
|
674
|
+
export declare const udlActionLibrarySchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
675
|
+
actionOrder: z.ZodArray<z.ZodString>;
|
|
676
|
+
actions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
677
|
+
approval: z.ZodEnum<{
|
|
678
|
+
independent: "independent";
|
|
679
|
+
inherit: "inherit";
|
|
680
|
+
}>;
|
|
681
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
682
|
+
action: z.ZodString;
|
|
683
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
684
|
+
id: z.ZodString;
|
|
685
|
+
}, z.core.$strict>>;
|
|
686
|
+
leaves: z.ZodArray<z.ZodObject<{
|
|
687
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
688
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
689
|
+
effects: z.ZodArray<z.ZodObject<{
|
|
690
|
+
kind: z.ZodEnum<{
|
|
691
|
+
decides: "decides";
|
|
692
|
+
holds: "holds";
|
|
693
|
+
moves: "moves";
|
|
694
|
+
notifies: "notifies";
|
|
695
|
+
reads: "reads";
|
|
696
|
+
schedules: "schedules";
|
|
697
|
+
}>;
|
|
698
|
+
signature: z.ZodString;
|
|
699
|
+
}, z.core.$strict>>;
|
|
700
|
+
evidence: z.ZodString;
|
|
701
|
+
id: z.ZodString;
|
|
702
|
+
operation: z.ZodEnum<{
|
|
703
|
+
"account.escrow.provision": "account.escrow.provision";
|
|
704
|
+
"account.freeze": "account.freeze";
|
|
705
|
+
"account.unfreeze": "account.unfreeze";
|
|
706
|
+
"internal_transfer.create": "internal_transfer.create";
|
|
707
|
+
"internal_transfer.post": "internal_transfer.post";
|
|
708
|
+
"internal_transfer.reserve": "internal_transfer.reserve";
|
|
709
|
+
"internal_transfer.void": "internal_transfer.void";
|
|
710
|
+
}>;
|
|
711
|
+
}, z.core.$strict>>;
|
|
712
|
+
order: z.ZodArray<z.ZodString>;
|
|
713
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
714
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
715
|
+
kind: z.ZodEnum<{
|
|
716
|
+
account: "account";
|
|
717
|
+
instance: "instance";
|
|
718
|
+
money: "money";
|
|
719
|
+
piece: "piece";
|
|
720
|
+
text: "text";
|
|
721
|
+
}>;
|
|
722
|
+
}, z.core.$strict>>;
|
|
723
|
+
principal: z.ZodEnum<{
|
|
724
|
+
api_key: "api_key";
|
|
725
|
+
user_session: "user_session";
|
|
726
|
+
}>;
|
|
727
|
+
recovery: z.ZodEnum<{
|
|
728
|
+
external: "external";
|
|
729
|
+
local: "local";
|
|
730
|
+
}>;
|
|
731
|
+
}, z.core.$strict>>;
|
|
732
|
+
}, z.core.$strict>>;
|
|
475
733
|
declare const udlActionShape: {
|
|
476
734
|
agentDescription: z.ZodOptional<z.ZodString>;
|
|
735
|
+
calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
736
|
+
action: z.ZodString;
|
|
737
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
738
|
+
id: z.ZodString;
|
|
739
|
+
}, z.core.$strict>>>;
|
|
477
740
|
captureInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
478
741
|
/** Names the quoting action whose offer this action spends. */
|
|
479
742
|
commit: z.ZodOptional<z.ZodString>;
|
|
@@ -613,6 +876,15 @@ declare const udlActionShape: {
|
|
|
613
876
|
sourceAccountField: z.ZodString;
|
|
614
877
|
speed: z.ZodLiteral<"standard">;
|
|
615
878
|
}, z.core.$strict>>;
|
|
879
|
+
pieceStage: z.ZodOptional<z.ZodObject<{
|
|
880
|
+
plan: z.ZodString;
|
|
881
|
+
stage: z.ZodEnum<{
|
|
882
|
+
fund: "fund";
|
|
883
|
+
refund: "refund";
|
|
884
|
+
release: "release";
|
|
885
|
+
unfund: "unfund";
|
|
886
|
+
}>;
|
|
887
|
+
}, z.core.$strict>>;
|
|
616
888
|
port: z.ZodOptional<z.ZodObject<{
|
|
617
889
|
allowedParties: z.ZodArray<z.ZodString>;
|
|
618
890
|
}, z.core.$strict>>;
|
|
@@ -786,7 +1058,7 @@ declare const udlActionShape: {
|
|
|
786
1058
|
subtotalRef: z.ZodString;
|
|
787
1059
|
}, z.core.$strict>>;
|
|
788
1060
|
}, z.core.$strict>>;
|
|
789
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
1061
|
+
steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
790
1062
|
bind: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
791
1063
|
from: z.ZodLiteral<"const">;
|
|
792
1064
|
value: z.ZodString;
|
|
@@ -803,12 +1075,17 @@ declare const udlActionShape: {
|
|
|
803
1075
|
"account.freeze": "account.freeze";
|
|
804
1076
|
"account.unfreeze": "account.unfreeze";
|
|
805
1077
|
}>;
|
|
806
|
-
}, z.core.$strict
|
|
1078
|
+
}, z.core.$strict>>>;
|
|
807
1079
|
summary: z.ZodString;
|
|
808
1080
|
updates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
809
1081
|
};
|
|
810
1082
|
declare const udlActionSchema: z.ZodObject<{
|
|
811
1083
|
agentDescription: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1085
|
+
action: z.ZodString;
|
|
1086
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1087
|
+
id: z.ZodString;
|
|
1088
|
+
}, z.core.$strict>>>;
|
|
812
1089
|
captureInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
813
1090
|
commit: z.ZodOptional<z.ZodString>;
|
|
814
1091
|
decidedAmount: z.ZodOptional<z.ZodObject<{
|
|
@@ -947,6 +1224,15 @@ declare const udlActionSchema: z.ZodObject<{
|
|
|
947
1224
|
sourceAccountField: z.ZodString;
|
|
948
1225
|
speed: z.ZodLiteral<"standard">;
|
|
949
1226
|
}, z.core.$strict>>;
|
|
1227
|
+
pieceStage: z.ZodOptional<z.ZodObject<{
|
|
1228
|
+
plan: z.ZodString;
|
|
1229
|
+
stage: z.ZodEnum<{
|
|
1230
|
+
fund: "fund";
|
|
1231
|
+
refund: "refund";
|
|
1232
|
+
release: "release";
|
|
1233
|
+
unfund: "unfund";
|
|
1234
|
+
}>;
|
|
1235
|
+
}, z.core.$strict>>;
|
|
950
1236
|
port: z.ZodOptional<z.ZodObject<{
|
|
951
1237
|
allowedParties: z.ZodArray<z.ZodString>;
|
|
952
1238
|
}, z.core.$strict>>;
|
|
@@ -1120,7 +1406,7 @@ declare const udlActionSchema: z.ZodObject<{
|
|
|
1120
1406
|
subtotalRef: z.ZodString;
|
|
1121
1407
|
}, z.core.$strict>>;
|
|
1122
1408
|
}, z.core.$strict>>;
|
|
1123
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
1409
|
+
steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1124
1410
|
bind: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1125
1411
|
from: z.ZodLiteral<"const">;
|
|
1126
1412
|
value: z.ZodString;
|
|
@@ -1137,7 +1423,7 @@ declare const udlActionSchema: z.ZodObject<{
|
|
|
1137
1423
|
"account.freeze": "account.freeze";
|
|
1138
1424
|
"account.unfreeze": "account.unfreeze";
|
|
1139
1425
|
}>;
|
|
1140
|
-
}, z.core.$strict
|
|
1426
|
+
}, z.core.$strict>>>;
|
|
1141
1427
|
summary: z.ZodString;
|
|
1142
1428
|
updates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1143
1429
|
}, z.core.$strict>;
|
|
@@ -1159,6 +1445,65 @@ declare const udlAggregateSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1159
1445
|
}, z.core.$strict>>;
|
|
1160
1446
|
}, z.core.$strict>]>;
|
|
1161
1447
|
declare const udlInstrumentShape: {
|
|
1448
|
+
actionLibrary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1449
|
+
actionOrder: z.ZodArray<z.ZodString>;
|
|
1450
|
+
actions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1451
|
+
approval: z.ZodEnum<{
|
|
1452
|
+
independent: "independent";
|
|
1453
|
+
inherit: "inherit";
|
|
1454
|
+
}>;
|
|
1455
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
1456
|
+
action: z.ZodString;
|
|
1457
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1458
|
+
id: z.ZodString;
|
|
1459
|
+
}, z.core.$strict>>;
|
|
1460
|
+
leaves: z.ZodArray<z.ZodObject<{
|
|
1461
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1462
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1463
|
+
effects: z.ZodArray<z.ZodObject<{
|
|
1464
|
+
kind: z.ZodEnum<{
|
|
1465
|
+
decides: "decides";
|
|
1466
|
+
holds: "holds";
|
|
1467
|
+
moves: "moves";
|
|
1468
|
+
notifies: "notifies";
|
|
1469
|
+
reads: "reads";
|
|
1470
|
+
schedules: "schedules";
|
|
1471
|
+
}>;
|
|
1472
|
+
signature: z.ZodString;
|
|
1473
|
+
}, z.core.$strict>>;
|
|
1474
|
+
evidence: z.ZodString;
|
|
1475
|
+
id: z.ZodString;
|
|
1476
|
+
operation: z.ZodEnum<{
|
|
1477
|
+
"account.escrow.provision": "account.escrow.provision";
|
|
1478
|
+
"account.freeze": "account.freeze";
|
|
1479
|
+
"account.unfreeze": "account.unfreeze";
|
|
1480
|
+
"internal_transfer.create": "internal_transfer.create";
|
|
1481
|
+
"internal_transfer.post": "internal_transfer.post";
|
|
1482
|
+
"internal_transfer.reserve": "internal_transfer.reserve";
|
|
1483
|
+
"internal_transfer.void": "internal_transfer.void";
|
|
1484
|
+
}>;
|
|
1485
|
+
}, z.core.$strict>>;
|
|
1486
|
+
order: z.ZodArray<z.ZodString>;
|
|
1487
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1488
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1489
|
+
kind: z.ZodEnum<{
|
|
1490
|
+
account: "account";
|
|
1491
|
+
instance: "instance";
|
|
1492
|
+
money: "money";
|
|
1493
|
+
piece: "piece";
|
|
1494
|
+
text: "text";
|
|
1495
|
+
}>;
|
|
1496
|
+
}, z.core.$strict>>;
|
|
1497
|
+
principal: z.ZodEnum<{
|
|
1498
|
+
api_key: "api_key";
|
|
1499
|
+
user_session: "user_session";
|
|
1500
|
+
}>;
|
|
1501
|
+
recovery: z.ZodEnum<{
|
|
1502
|
+
external: "external";
|
|
1503
|
+
local: "local";
|
|
1504
|
+
}>;
|
|
1505
|
+
}, z.core.$strict>>;
|
|
1506
|
+
}, z.core.$strict>>>;
|
|
1162
1507
|
actionOrder: z.ZodArray<z.ZodString>;
|
|
1163
1508
|
agentDescription: z.ZodOptional<z.ZodString>;
|
|
1164
1509
|
aggregateInvariants: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1277,6 +1622,20 @@ declare const udlInstrumentShape: {
|
|
|
1277
1622
|
pieceFields: z.ZodArray<z.ZodString>;
|
|
1278
1623
|
totalField: z.ZodString;
|
|
1279
1624
|
}, z.core.$strict>>>;
|
|
1625
|
+
piecePlan: z.ZodOptional<z.ZodObject<{
|
|
1626
|
+
fund_order: z.ZodArray<z.ZodString>;
|
|
1627
|
+
id: z.ZodString;
|
|
1628
|
+
pieces: z.ZodArray<z.ZodObject<{
|
|
1629
|
+
amount: z.ZodString;
|
|
1630
|
+
id: z.ZodString;
|
|
1631
|
+
refund_to: z.ZodString;
|
|
1632
|
+
release_to: z.ZodString;
|
|
1633
|
+
}, z.core.$strict>>;
|
|
1634
|
+
refund_order: z.ZodArray<z.ZodString>;
|
|
1635
|
+
release_order: z.ZodArray<z.ZodString>;
|
|
1636
|
+
total: z.ZodString;
|
|
1637
|
+
unfund_order: z.ZodArray<z.ZodString>;
|
|
1638
|
+
}, z.core.$strict>>;
|
|
1280
1639
|
required: z.ZodArray<z.ZodString>;
|
|
1281
1640
|
subject: z.ZodOptional<z.ZodObject<{
|
|
1282
1641
|
extensible: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1301,6 +1660,11 @@ declare const udlInstrumentShape: {
|
|
|
1301
1660
|
}, z.core.$strict>>;
|
|
1302
1661
|
actions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1303
1662
|
agentDescription: z.ZodOptional<z.ZodString>;
|
|
1663
|
+
calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1664
|
+
action: z.ZodString;
|
|
1665
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1666
|
+
id: z.ZodString;
|
|
1667
|
+
}, z.core.$strict>>>;
|
|
1304
1668
|
captureInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1305
1669
|
commit: z.ZodOptional<z.ZodString>;
|
|
1306
1670
|
decidedAmount: z.ZodOptional<z.ZodObject<{
|
|
@@ -1439,6 +1803,15 @@ declare const udlInstrumentShape: {
|
|
|
1439
1803
|
sourceAccountField: z.ZodString;
|
|
1440
1804
|
speed: z.ZodLiteral<"standard">;
|
|
1441
1805
|
}, z.core.$strict>>;
|
|
1806
|
+
pieceStage: z.ZodOptional<z.ZodObject<{
|
|
1807
|
+
plan: z.ZodString;
|
|
1808
|
+
stage: z.ZodEnum<{
|
|
1809
|
+
fund: "fund";
|
|
1810
|
+
refund: "refund";
|
|
1811
|
+
release: "release";
|
|
1812
|
+
unfund: "unfund";
|
|
1813
|
+
}>;
|
|
1814
|
+
}, z.core.$strict>>;
|
|
1442
1815
|
port: z.ZodOptional<z.ZodObject<{
|
|
1443
1816
|
allowedParties: z.ZodArray<z.ZodString>;
|
|
1444
1817
|
}, z.core.$strict>>;
|
|
@@ -1612,7 +1985,7 @@ declare const udlInstrumentShape: {
|
|
|
1612
1985
|
subtotalRef: z.ZodString;
|
|
1613
1986
|
}, z.core.$strict>>;
|
|
1614
1987
|
}, z.core.$strict>>;
|
|
1615
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
1988
|
+
steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1616
1989
|
bind: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1617
1990
|
from: z.ZodLiteral<"const">;
|
|
1618
1991
|
value: z.ZodString;
|
|
@@ -1629,12 +2002,71 @@ declare const udlInstrumentShape: {
|
|
|
1629
2002
|
"account.freeze": "account.freeze";
|
|
1630
2003
|
"account.unfreeze": "account.unfreeze";
|
|
1631
2004
|
}>;
|
|
1632
|
-
}, z.core.$strict
|
|
2005
|
+
}, z.core.$strict>>>;
|
|
1633
2006
|
summary: z.ZodString;
|
|
1634
2007
|
updates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1635
2008
|
}, z.core.$strict>>;
|
|
1636
2009
|
};
|
|
1637
2010
|
declare const udlInstrumentSchema: z.ZodObject<{
|
|
2011
|
+
actionLibrary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2012
|
+
actionOrder: z.ZodArray<z.ZodString>;
|
|
2013
|
+
actions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2014
|
+
approval: z.ZodEnum<{
|
|
2015
|
+
independent: "independent";
|
|
2016
|
+
inherit: "inherit";
|
|
2017
|
+
}>;
|
|
2018
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
2019
|
+
action: z.ZodString;
|
|
2020
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2021
|
+
id: z.ZodString;
|
|
2022
|
+
}, z.core.$strict>>;
|
|
2023
|
+
leaves: z.ZodArray<z.ZodObject<{
|
|
2024
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2025
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2026
|
+
effects: z.ZodArray<z.ZodObject<{
|
|
2027
|
+
kind: z.ZodEnum<{
|
|
2028
|
+
decides: "decides";
|
|
2029
|
+
holds: "holds";
|
|
2030
|
+
moves: "moves";
|
|
2031
|
+
notifies: "notifies";
|
|
2032
|
+
reads: "reads";
|
|
2033
|
+
schedules: "schedules";
|
|
2034
|
+
}>;
|
|
2035
|
+
signature: z.ZodString;
|
|
2036
|
+
}, z.core.$strict>>;
|
|
2037
|
+
evidence: z.ZodString;
|
|
2038
|
+
id: z.ZodString;
|
|
2039
|
+
operation: z.ZodEnum<{
|
|
2040
|
+
"account.escrow.provision": "account.escrow.provision";
|
|
2041
|
+
"account.freeze": "account.freeze";
|
|
2042
|
+
"account.unfreeze": "account.unfreeze";
|
|
2043
|
+
"internal_transfer.create": "internal_transfer.create";
|
|
2044
|
+
"internal_transfer.post": "internal_transfer.post";
|
|
2045
|
+
"internal_transfer.reserve": "internal_transfer.reserve";
|
|
2046
|
+
"internal_transfer.void": "internal_transfer.void";
|
|
2047
|
+
}>;
|
|
2048
|
+
}, z.core.$strict>>;
|
|
2049
|
+
order: z.ZodArray<z.ZodString>;
|
|
2050
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2051
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
2052
|
+
kind: z.ZodEnum<{
|
|
2053
|
+
account: "account";
|
|
2054
|
+
instance: "instance";
|
|
2055
|
+
money: "money";
|
|
2056
|
+
piece: "piece";
|
|
2057
|
+
text: "text";
|
|
2058
|
+
}>;
|
|
2059
|
+
}, z.core.$strict>>;
|
|
2060
|
+
principal: z.ZodEnum<{
|
|
2061
|
+
api_key: "api_key";
|
|
2062
|
+
user_session: "user_session";
|
|
2063
|
+
}>;
|
|
2064
|
+
recovery: z.ZodEnum<{
|
|
2065
|
+
external: "external";
|
|
2066
|
+
local: "local";
|
|
2067
|
+
}>;
|
|
2068
|
+
}, z.core.$strict>>;
|
|
2069
|
+
}, z.core.$strict>>>;
|
|
1638
2070
|
actionOrder: z.ZodArray<z.ZodString>;
|
|
1639
2071
|
agentDescription: z.ZodOptional<z.ZodString>;
|
|
1640
2072
|
aggregateInvariants: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1753,6 +2185,20 @@ declare const udlInstrumentSchema: z.ZodObject<{
|
|
|
1753
2185
|
pieceFields: z.ZodArray<z.ZodString>;
|
|
1754
2186
|
totalField: z.ZodString;
|
|
1755
2187
|
}, z.core.$strict>>>;
|
|
2188
|
+
piecePlan: z.ZodOptional<z.ZodObject<{
|
|
2189
|
+
fund_order: z.ZodArray<z.ZodString>;
|
|
2190
|
+
id: z.ZodString;
|
|
2191
|
+
pieces: z.ZodArray<z.ZodObject<{
|
|
2192
|
+
amount: z.ZodString;
|
|
2193
|
+
id: z.ZodString;
|
|
2194
|
+
refund_to: z.ZodString;
|
|
2195
|
+
release_to: z.ZodString;
|
|
2196
|
+
}, z.core.$strict>>;
|
|
2197
|
+
refund_order: z.ZodArray<z.ZodString>;
|
|
2198
|
+
release_order: z.ZodArray<z.ZodString>;
|
|
2199
|
+
total: z.ZodString;
|
|
2200
|
+
unfund_order: z.ZodArray<z.ZodString>;
|
|
2201
|
+
}, z.core.$strict>>;
|
|
1756
2202
|
required: z.ZodArray<z.ZodString>;
|
|
1757
2203
|
subject: z.ZodOptional<z.ZodObject<{
|
|
1758
2204
|
extensible: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1777,6 +2223,11 @@ declare const udlInstrumentSchema: z.ZodObject<{
|
|
|
1777
2223
|
}, z.core.$strict>>;
|
|
1778
2224
|
actions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1779
2225
|
agentDescription: z.ZodOptional<z.ZodString>;
|
|
2226
|
+
calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2227
|
+
action: z.ZodString;
|
|
2228
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2229
|
+
id: z.ZodString;
|
|
2230
|
+
}, z.core.$strict>>>;
|
|
1780
2231
|
captureInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1781
2232
|
commit: z.ZodOptional<z.ZodString>;
|
|
1782
2233
|
decidedAmount: z.ZodOptional<z.ZodObject<{
|
|
@@ -1915,6 +2366,15 @@ declare const udlInstrumentSchema: z.ZodObject<{
|
|
|
1915
2366
|
sourceAccountField: z.ZodString;
|
|
1916
2367
|
speed: z.ZodLiteral<"standard">;
|
|
1917
2368
|
}, z.core.$strict>>;
|
|
2369
|
+
pieceStage: z.ZodOptional<z.ZodObject<{
|
|
2370
|
+
plan: z.ZodString;
|
|
2371
|
+
stage: z.ZodEnum<{
|
|
2372
|
+
fund: "fund";
|
|
2373
|
+
refund: "refund";
|
|
2374
|
+
release: "release";
|
|
2375
|
+
unfund: "unfund";
|
|
2376
|
+
}>;
|
|
2377
|
+
}, z.core.$strict>>;
|
|
1918
2378
|
port: z.ZodOptional<z.ZodObject<{
|
|
1919
2379
|
allowedParties: z.ZodArray<z.ZodString>;
|
|
1920
2380
|
}, z.core.$strict>>;
|
|
@@ -2088,7 +2548,7 @@ declare const udlInstrumentSchema: z.ZodObject<{
|
|
|
2088
2548
|
subtotalRef: z.ZodString;
|
|
2089
2549
|
}, z.core.$strict>>;
|
|
2090
2550
|
}, z.core.$strict>>;
|
|
2091
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
2551
|
+
steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2092
2552
|
bind: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2093
2553
|
from: z.ZodLiteral<"const">;
|
|
2094
2554
|
value: z.ZodString;
|
|
@@ -2105,7 +2565,7 @@ declare const udlInstrumentSchema: z.ZodObject<{
|
|
|
2105
2565
|
"account.freeze": "account.freeze";
|
|
2106
2566
|
"account.unfreeze": "account.unfreeze";
|
|
2107
2567
|
}>;
|
|
2108
|
-
}, z.core.$strict
|
|
2568
|
+
}, z.core.$strict>>>;
|
|
2109
2569
|
summary: z.ZodString;
|
|
2110
2570
|
updates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2111
2571
|
}, z.core.$strict>>;
|
|
@@ -2130,6 +2590,7 @@ interface UdlClauseVocabularyMetadata {
|
|
|
2130
2590
|
readonly effects?: readonly UdlClauseEffect[];
|
|
2131
2591
|
readonly linearOutputs?: readonly string[];
|
|
2132
2592
|
readonly linearSink?: true;
|
|
2593
|
+
readonly literalKeys?: true;
|
|
2133
2594
|
readonly spelling: string;
|
|
2134
2595
|
}
|
|
2135
2596
|
export type UdlClauseVocabularyEntry = UdlClauseVocabularyMetadata & ({
|
|
@@ -2140,10 +2601,22 @@ export type UdlClauseVocabularyEntry = UdlClauseVocabularyMetadata & ({
|
|
|
2140
2601
|
readonly target: UdlInstrumentClauseTarget;
|
|
2141
2602
|
});
|
|
2142
2603
|
export declare const udlClauseVocabulary: readonly [{
|
|
2604
|
+
readonly cardinality: "one";
|
|
2605
|
+
readonly literalKeys: true;
|
|
2606
|
+
readonly scope: "instrument";
|
|
2607
|
+
readonly spelling: "action library";
|
|
2608
|
+
readonly target: "actionLibrary";
|
|
2609
|
+
}, {
|
|
2143
2610
|
readonly cardinality: "one";
|
|
2144
2611
|
readonly scope: "action";
|
|
2145
2612
|
readonly spelling: "agent description";
|
|
2146
2613
|
readonly target: "agentDescription";
|
|
2614
|
+
}, {
|
|
2615
|
+
readonly cardinality: "many";
|
|
2616
|
+
readonly literalKeys: true;
|
|
2617
|
+
readonly scope: "action";
|
|
2618
|
+
readonly spelling: "calls";
|
|
2619
|
+
readonly target: "calls";
|
|
2147
2620
|
}, {
|
|
2148
2621
|
readonly cardinality: "one";
|
|
2149
2622
|
readonly scope: "action";
|
|
@@ -2279,6 +2752,18 @@ export declare const udlClauseVocabulary: readonly [{
|
|
|
2279
2752
|
readonly scope: "action";
|
|
2280
2753
|
readonly spelling: "payout";
|
|
2281
2754
|
readonly target: "payout";
|
|
2755
|
+
}, {
|
|
2756
|
+
readonly cardinality: "one";
|
|
2757
|
+
readonly literalKeys: true;
|
|
2758
|
+
readonly scope: "instrument";
|
|
2759
|
+
readonly spelling: "piece plan";
|
|
2760
|
+
readonly target: "piecePlan";
|
|
2761
|
+
}, {
|
|
2762
|
+
readonly cardinality: "one";
|
|
2763
|
+
readonly literalKeys: true;
|
|
2764
|
+
readonly scope: "action";
|
|
2765
|
+
readonly spelling: "piece stage";
|
|
2766
|
+
readonly target: "pieceStage";
|
|
2282
2767
|
}, {
|
|
2283
2768
|
readonly cardinality: "one";
|
|
2284
2769
|
readonly effects: readonly [{
|
|
@@ -2509,6 +2994,65 @@ export declare const udlDocumentSchema: z.ZodObject<{
|
|
|
2509
2994
|
title: z.ZodString;
|
|
2510
2995
|
}, z.core.$strict>>>;
|
|
2511
2996
|
instruments: z.ZodArray<z.ZodObject<{
|
|
2997
|
+
actionLibrary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2998
|
+
actionOrder: z.ZodArray<z.ZodString>;
|
|
2999
|
+
actions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3000
|
+
approval: z.ZodEnum<{
|
|
3001
|
+
independent: "independent";
|
|
3002
|
+
inherit: "inherit";
|
|
3003
|
+
}>;
|
|
3004
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
3005
|
+
action: z.ZodString;
|
|
3006
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3007
|
+
id: z.ZodString;
|
|
3008
|
+
}, z.core.$strict>>;
|
|
3009
|
+
leaves: z.ZodArray<z.ZodObject<{
|
|
3010
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3011
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3012
|
+
effects: z.ZodArray<z.ZodObject<{
|
|
3013
|
+
kind: z.ZodEnum<{
|
|
3014
|
+
decides: "decides";
|
|
3015
|
+
holds: "holds";
|
|
3016
|
+
moves: "moves";
|
|
3017
|
+
notifies: "notifies";
|
|
3018
|
+
reads: "reads";
|
|
3019
|
+
schedules: "schedules";
|
|
3020
|
+
}>;
|
|
3021
|
+
signature: z.ZodString;
|
|
3022
|
+
}, z.core.$strict>>;
|
|
3023
|
+
evidence: z.ZodString;
|
|
3024
|
+
id: z.ZodString;
|
|
3025
|
+
operation: z.ZodEnum<{
|
|
3026
|
+
"account.escrow.provision": "account.escrow.provision";
|
|
3027
|
+
"account.freeze": "account.freeze";
|
|
3028
|
+
"account.unfreeze": "account.unfreeze";
|
|
3029
|
+
"internal_transfer.create": "internal_transfer.create";
|
|
3030
|
+
"internal_transfer.post": "internal_transfer.post";
|
|
3031
|
+
"internal_transfer.reserve": "internal_transfer.reserve";
|
|
3032
|
+
"internal_transfer.void": "internal_transfer.void";
|
|
3033
|
+
}>;
|
|
3034
|
+
}, z.core.$strict>>;
|
|
3035
|
+
order: z.ZodArray<z.ZodString>;
|
|
3036
|
+
parameters: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3037
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
3038
|
+
kind: z.ZodEnum<{
|
|
3039
|
+
account: "account";
|
|
3040
|
+
instance: "instance";
|
|
3041
|
+
money: "money";
|
|
3042
|
+
piece: "piece";
|
|
3043
|
+
text: "text";
|
|
3044
|
+
}>;
|
|
3045
|
+
}, z.core.$strict>>;
|
|
3046
|
+
principal: z.ZodEnum<{
|
|
3047
|
+
api_key: "api_key";
|
|
3048
|
+
user_session: "user_session";
|
|
3049
|
+
}>;
|
|
3050
|
+
recovery: z.ZodEnum<{
|
|
3051
|
+
external: "external";
|
|
3052
|
+
local: "local";
|
|
3053
|
+
}>;
|
|
3054
|
+
}, z.core.$strict>>;
|
|
3055
|
+
}, z.core.$strict>>>;
|
|
2512
3056
|
actionOrder: z.ZodArray<z.ZodString>;
|
|
2513
3057
|
agentDescription: z.ZodOptional<z.ZodString>;
|
|
2514
3058
|
aggregateInvariants: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -2627,6 +3171,20 @@ export declare const udlDocumentSchema: z.ZodObject<{
|
|
|
2627
3171
|
pieceFields: z.ZodArray<z.ZodString>;
|
|
2628
3172
|
totalField: z.ZodString;
|
|
2629
3173
|
}, z.core.$strict>>>;
|
|
3174
|
+
piecePlan: z.ZodOptional<z.ZodObject<{
|
|
3175
|
+
fund_order: z.ZodArray<z.ZodString>;
|
|
3176
|
+
id: z.ZodString;
|
|
3177
|
+
pieces: z.ZodArray<z.ZodObject<{
|
|
3178
|
+
amount: z.ZodString;
|
|
3179
|
+
id: z.ZodString;
|
|
3180
|
+
refund_to: z.ZodString;
|
|
3181
|
+
release_to: z.ZodString;
|
|
3182
|
+
}, z.core.$strict>>;
|
|
3183
|
+
refund_order: z.ZodArray<z.ZodString>;
|
|
3184
|
+
release_order: z.ZodArray<z.ZodString>;
|
|
3185
|
+
total: z.ZodString;
|
|
3186
|
+
unfund_order: z.ZodArray<z.ZodString>;
|
|
3187
|
+
}, z.core.$strict>>;
|
|
2630
3188
|
required: z.ZodArray<z.ZodString>;
|
|
2631
3189
|
subject: z.ZodOptional<z.ZodObject<{
|
|
2632
3190
|
extensible: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2651,6 +3209,11 @@ export declare const udlDocumentSchema: z.ZodObject<{
|
|
|
2651
3209
|
}, z.core.$strict>>;
|
|
2652
3210
|
actions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2653
3211
|
agentDescription: z.ZodOptional<z.ZodString>;
|
|
3212
|
+
calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3213
|
+
action: z.ZodString;
|
|
3214
|
+
bind: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3215
|
+
id: z.ZodString;
|
|
3216
|
+
}, z.core.$strict>>>;
|
|
2654
3217
|
captureInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2655
3218
|
commit: z.ZodOptional<z.ZodString>;
|
|
2656
3219
|
decidedAmount: z.ZodOptional<z.ZodObject<{
|
|
@@ -2789,6 +3352,15 @@ export declare const udlDocumentSchema: z.ZodObject<{
|
|
|
2789
3352
|
sourceAccountField: z.ZodString;
|
|
2790
3353
|
speed: z.ZodLiteral<"standard">;
|
|
2791
3354
|
}, z.core.$strict>>;
|
|
3355
|
+
pieceStage: z.ZodOptional<z.ZodObject<{
|
|
3356
|
+
plan: z.ZodString;
|
|
3357
|
+
stage: z.ZodEnum<{
|
|
3358
|
+
fund: "fund";
|
|
3359
|
+
refund: "refund";
|
|
3360
|
+
release: "release";
|
|
3361
|
+
unfund: "unfund";
|
|
3362
|
+
}>;
|
|
3363
|
+
}, z.core.$strict>>;
|
|
2792
3364
|
port: z.ZodOptional<z.ZodObject<{
|
|
2793
3365
|
allowedParties: z.ZodArray<z.ZodString>;
|
|
2794
3366
|
}, z.core.$strict>>;
|
|
@@ -2962,7 +3534,7 @@ export declare const udlDocumentSchema: z.ZodObject<{
|
|
|
2962
3534
|
subtotalRef: z.ZodString;
|
|
2963
3535
|
}, z.core.$strict>>;
|
|
2964
3536
|
}, z.core.$strict>>;
|
|
2965
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
3537
|
+
steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2966
3538
|
bind: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2967
3539
|
from: z.ZodLiteral<"const">;
|
|
2968
3540
|
value: z.ZodString;
|
|
@@ -2979,7 +3551,7 @@ export declare const udlDocumentSchema: z.ZodObject<{
|
|
|
2979
3551
|
"account.freeze": "account.freeze";
|
|
2980
3552
|
"account.unfreeze": "account.unfreeze";
|
|
2981
3553
|
}>;
|
|
2982
|
-
}, z.core.$strict
|
|
3554
|
+
}, z.core.$strict>>>;
|
|
2983
3555
|
summary: z.ZodString;
|
|
2984
3556
|
updates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2985
3557
|
}, z.core.$strict>>;
|
|
@@ -3031,5 +3603,16 @@ export type UdlRemainder = z.infer<typeof udlRemainderSchema>;
|
|
|
3031
3603
|
export type UdlStep = z.infer<typeof udlStepSchema>;
|
|
3032
3604
|
export type UdlSubject = z.infer<typeof udlSubjectSchema>;
|
|
3033
3605
|
export type UdlAction = z.infer<typeof udlActionSchema>;
|
|
3606
|
+
export type UdlPiece = z.infer<typeof udlPieceSchema>;
|
|
3607
|
+
export type UdlPiecePlan = z.infer<typeof udlPiecePlanSchema>;
|
|
3608
|
+
export type UdlPieceStage = z.infer<typeof udlPieceStageSchema>;
|
|
3609
|
+
export type UdlPieceStageStage = z.infer<typeof udlPieceStageStageSchema>;
|
|
3610
|
+
export type UdlCall = z.infer<typeof udlCallSchema>;
|
|
3611
|
+
export type UdlPrivateParameterKind = z.infer<typeof udlPrivateParameterKindSchema>;
|
|
3612
|
+
export type UdlPrivateParameter = z.infer<typeof udlPrivateParameterSchema>;
|
|
3613
|
+
export type UdlPrivateLeaf = z.infer<typeof udlPrivateLeafSchema>;
|
|
3614
|
+
export type UdlPrivateAction = z.infer<typeof udlPrivateActionSchema>;
|
|
3615
|
+
export type UdlActionLibraryModule = z.infer<typeof udlActionLibraryModuleSchema>;
|
|
3616
|
+
export type UdlActionLibrary = z.infer<typeof udlActionLibrarySchema>;
|
|
3034
3617
|
export {};
|
|
3035
3618
|
//# sourceMappingURL=schema.d.ts.map
|