@mimicprotocol/sdk 0.0.1-rc.30 → 0.0.1-rc.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/axia/validators.d.ts +9 -6
  2. package/dist/axia/validators.d.ts.map +1 -1
  3. package/dist/registry/eip712Types.d.ts +2 -1
  4. package/dist/registry/eip712Types.d.ts.map +1 -1
  5. package/dist/registry/eip712Types.js +8 -1
  6. package/dist/registry/eip712Types.js.map +1 -1
  7. package/dist/registry/types.d.ts +4 -1
  8. package/dist/registry/types.d.ts.map +1 -1
  9. package/dist/registry/types.js +5 -1
  10. package/dist/registry/types.js.map +1 -1
  11. package/dist/registry/validators.d.ts +354 -16
  12. package/dist/registry/validators.d.ts.map +1 -1
  13. package/dist/registry/validators.js +27 -4
  14. package/dist/registry/validators.js.map +1 -1
  15. package/dist/runner/validators.d.ts +7 -6
  16. package/dist/runner/validators.d.ts.map +1 -1
  17. package/dist/shared/codec/decoder.d.ts +2 -1
  18. package/dist/shared/codec/decoder.d.ts.map +1 -1
  19. package/dist/shared/codec/decoder.js +5 -0
  20. package/dist/shared/codec/decoder.js.map +1 -1
  21. package/dist/shared/codec/encoder.d.ts +2 -1
  22. package/dist/shared/codec/encoder.d.ts.map +1 -1
  23. package/dist/shared/codec/encoder.js +4 -0
  24. package/dist/shared/codec/encoder.js.map +1 -1
  25. package/dist/shared/eip712Types/index.d.ts +1 -0
  26. package/dist/shared/eip712Types/index.d.ts.map +1 -1
  27. package/dist/shared/eip712Types/index.js +2 -1
  28. package/dist/shared/eip712Types/index.js.map +1 -1
  29. package/dist/shared/types/executions.d.ts +3 -1
  30. package/dist/shared/types/executions.d.ts.map +1 -1
  31. package/dist/shared/utils/time.d.ts +2 -2
  32. package/dist/shared/utils/time.js +4 -4
  33. package/dist/shared/utils/time.js.map +1 -1
  34. package/dist/shared/validators/executions.d.ts +38 -6
  35. package/dist/shared/validators/executions.d.ts.map +1 -1
  36. package/dist/shared/validators/executions.js +7 -1
  37. package/dist/shared/validators/executions.js.map +1 -1
  38. package/package.json +1 -1
@@ -79,7 +79,23 @@ export declare const EventTriggerValidator: z.ZodObject<{
79
79
  contract: string;
80
80
  topics: string[][];
81
81
  }>;
82
- export declare const TriggerValidator: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
82
+ export declare const OnceTriggerValidator: z.ZodObject<{
83
+ type: z.ZodLiteral<2>;
84
+ startDate: z.ZodNumber;
85
+ delta: z.ZodEffects<z.ZodString, string, string>;
86
+ endDate: z.ZodNumber;
87
+ }, "strip", z.ZodTypeAny, {
88
+ type: 2;
89
+ delta: string;
90
+ endDate: number;
91
+ startDate: number;
92
+ }, {
93
+ type: 2;
94
+ delta: string;
95
+ endDate: number;
96
+ startDate: number;
97
+ }>;
98
+ export declare const TriggerValidator: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
83
99
  type: z.ZodLiteral<1>;
84
100
  chainId: z.ZodEffects<z.ZodNumber, number, number>;
85
101
  contract: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodLiteral<"any">]>;
@@ -115,7 +131,56 @@ export declare const TriggerValidator: z.ZodDiscriminatedUnion<"type", [z.ZodObj
115
131
  schedule: string;
116
132
  delta: string;
117
133
  endDate: number;
118
- }>]>;
134
+ }>, z.ZodObject<{
135
+ type: z.ZodLiteral<2>;
136
+ startDate: z.ZodNumber;
137
+ delta: z.ZodEffects<z.ZodString, string, string>;
138
+ endDate: z.ZodNumber;
139
+ }, "strip", z.ZodTypeAny, {
140
+ type: 2;
141
+ delta: string;
142
+ endDate: number;
143
+ startDate: number;
144
+ }, {
145
+ type: 2;
146
+ delta: string;
147
+ endDate: number;
148
+ startDate: number;
149
+ }>]>, {
150
+ type: 0;
151
+ schedule: string;
152
+ delta: string;
153
+ endDate: number;
154
+ } | {
155
+ chainId: number;
156
+ type: 1;
157
+ delta: string;
158
+ endDate: number;
159
+ contract: string;
160
+ topics: string[][];
161
+ } | {
162
+ type: 2;
163
+ delta: string;
164
+ endDate: number;
165
+ startDate: number;
166
+ }, {
167
+ type: 0;
168
+ schedule: string;
169
+ delta: string;
170
+ endDate: number;
171
+ } | {
172
+ chainId: number;
173
+ type: 1;
174
+ delta: string;
175
+ endDate: number;
176
+ contract: string;
177
+ topics: string[][];
178
+ } | {
179
+ type: 2;
180
+ delta: string;
181
+ endDate: number;
182
+ startDate: number;
183
+ }>;
119
184
  export declare const ManifestInputsValidator: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
120
185
  type: z.ZodEffects<z.ZodString, string, string>;
121
186
  description: z.ZodOptional<z.ZodString>;
@@ -425,7 +490,8 @@ export declare const TaskCreateRequestValidator: z.ZodObject<{
425
490
  }>;
426
491
  export declare const CronTriggerTypeValidator: z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>;
427
492
  export declare const EventTriggerTypeValidator: z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>;
428
- export declare const TriggerTypeValidator: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
493
+ export declare const OnceTriggerTypeValidator: z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>;
494
+ export declare const TriggerTypeValidator: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
429
495
  export declare const ConfigTypedDataFieldValidator: z.ZodObject<{
430
496
  name: z.ZodString;
431
497
  type: z.ZodEffects<z.ZodString, string, string>;
@@ -447,7 +513,7 @@ export declare const ConfigTypesValidator: z.ZodIntersection<z.ZodObject<{
447
513
  name: string;
448
514
  type: string;
449
515
  }>, "many">;
450
- Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
516
+ Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
451
517
  Config: z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>;
452
518
  }, "strip", z.ZodTypeAny, {
453
519
  Input: {
@@ -485,7 +551,7 @@ export declare const ConfigTypedDataValidator: z.ZodObject<{
485
551
  name: string;
486
552
  type: string;
487
553
  }>, "many">;
488
- Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
554
+ Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
489
555
  Config: z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>;
490
556
  }, "strip", z.ZodTypeAny, {
491
557
  Input: {
@@ -515,7 +581,7 @@ export declare const ConfigTypedDataValidator: z.ZodObject<{
515
581
  taskCid: z.ZodEffects<z.ZodString, string, string>;
516
582
  version: z.ZodEffects<z.ZodString, string, string>;
517
583
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
518
- trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
584
+ trigger: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
519
585
  type: z.ZodLiteral<1>;
520
586
  chainId: z.ZodEffects<z.ZodNumber, number, number>;
521
587
  contract: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodLiteral<"any">]>;
@@ -551,7 +617,56 @@ export declare const ConfigTypedDataValidator: z.ZodObject<{
551
617
  schedule: string;
552
618
  delta: string;
553
619
  endDate: number;
554
- }>]>;
620
+ }>, z.ZodObject<{
621
+ type: z.ZodLiteral<2>;
622
+ startDate: z.ZodNumber;
623
+ delta: z.ZodEffects<z.ZodString, string, string>;
624
+ endDate: z.ZodNumber;
625
+ }, "strip", z.ZodTypeAny, {
626
+ type: 2;
627
+ delta: string;
628
+ endDate: number;
629
+ startDate: number;
630
+ }, {
631
+ type: 2;
632
+ delta: string;
633
+ endDate: number;
634
+ startDate: number;
635
+ }>]>, {
636
+ type: 0;
637
+ schedule: string;
638
+ delta: string;
639
+ endDate: number;
640
+ } | {
641
+ chainId: number;
642
+ type: 1;
643
+ delta: string;
644
+ endDate: number;
645
+ contract: string;
646
+ topics: string[][];
647
+ } | {
648
+ type: 2;
649
+ delta: string;
650
+ endDate: number;
651
+ startDate: number;
652
+ }, {
653
+ type: 0;
654
+ schedule: string;
655
+ delta: string;
656
+ endDate: number;
657
+ } | {
658
+ chainId: number;
659
+ type: 1;
660
+ delta: string;
661
+ endDate: number;
662
+ contract: string;
663
+ topics: string[][];
664
+ } | {
665
+ type: 2;
666
+ delta: string;
667
+ endDate: number;
668
+ startDate: number;
669
+ }>;
555
670
  executionFeeLimit: z.ZodEffects<z.ZodString, string, string>;
556
671
  minValidations: z.ZodNumber;
557
672
  }, "strict", z.ZodTypeAny, {
@@ -571,6 +686,11 @@ export declare const ConfigTypedDataValidator: z.ZodObject<{
571
686
  endDate: number;
572
687
  contract: string;
573
688
  topics: string[][];
689
+ } | {
690
+ type: 2;
691
+ delta: string;
692
+ endDate: number;
693
+ startDate: number;
574
694
  };
575
695
  executionFeeLimit: string;
576
696
  }, {
@@ -590,6 +710,11 @@ export declare const ConfigTypedDataValidator: z.ZodObject<{
590
710
  endDate: number;
591
711
  contract: string;
592
712
  topics: string[][];
713
+ } | {
714
+ type: 2;
715
+ delta: string;
716
+ endDate: number;
717
+ startDate: number;
593
718
  };
594
719
  executionFeeLimit: string;
595
720
  }>;
@@ -611,6 +736,11 @@ export declare const ConfigTypedDataValidator: z.ZodObject<{
611
736
  endDate: number;
612
737
  contract: string;
613
738
  topics: string[][];
739
+ } | {
740
+ type: 2;
741
+ delta: string;
742
+ endDate: number;
743
+ startDate: number;
614
744
  };
615
745
  executionFeeLimit: string;
616
746
  };
@@ -643,6 +773,11 @@ export declare const ConfigTypedDataValidator: z.ZodObject<{
643
773
  endDate: number;
644
774
  contract: string;
645
775
  topics: string[][];
776
+ } | {
777
+ type: 2;
778
+ delta: string;
779
+ endDate: number;
780
+ startDate: number;
646
781
  };
647
782
  executionFeeLimit: string;
648
783
  };
@@ -672,7 +807,7 @@ export declare const ConfigCreateRequestValidator: z.ZodObject<{
672
807
  name: string;
673
808
  type: string;
674
809
  }>, "many">;
675
- Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
810
+ Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
676
811
  Config: z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>;
677
812
  }, "strip", z.ZodTypeAny, {
678
813
  Input: {
@@ -702,7 +837,7 @@ export declare const ConfigCreateRequestValidator: z.ZodObject<{
702
837
  taskCid: z.ZodEffects<z.ZodString, string, string>;
703
838
  version: z.ZodEffects<z.ZodString, string, string>;
704
839
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
705
- trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
840
+ trigger: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
706
841
  type: z.ZodLiteral<1>;
707
842
  chainId: z.ZodEffects<z.ZodNumber, number, number>;
708
843
  contract: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodLiteral<"any">]>;
@@ -738,7 +873,56 @@ export declare const ConfigCreateRequestValidator: z.ZodObject<{
738
873
  schedule: string;
739
874
  delta: string;
740
875
  endDate: number;
741
- }>]>;
876
+ }>, z.ZodObject<{
877
+ type: z.ZodLiteral<2>;
878
+ startDate: z.ZodNumber;
879
+ delta: z.ZodEffects<z.ZodString, string, string>;
880
+ endDate: z.ZodNumber;
881
+ }, "strip", z.ZodTypeAny, {
882
+ type: 2;
883
+ delta: string;
884
+ endDate: number;
885
+ startDate: number;
886
+ }, {
887
+ type: 2;
888
+ delta: string;
889
+ endDate: number;
890
+ startDate: number;
891
+ }>]>, {
892
+ type: 0;
893
+ schedule: string;
894
+ delta: string;
895
+ endDate: number;
896
+ } | {
897
+ chainId: number;
898
+ type: 1;
899
+ delta: string;
900
+ endDate: number;
901
+ contract: string;
902
+ topics: string[][];
903
+ } | {
904
+ type: 2;
905
+ delta: string;
906
+ endDate: number;
907
+ startDate: number;
908
+ }, {
909
+ type: 0;
910
+ schedule: string;
911
+ delta: string;
912
+ endDate: number;
913
+ } | {
914
+ chainId: number;
915
+ type: 1;
916
+ delta: string;
917
+ endDate: number;
918
+ contract: string;
919
+ topics: string[][];
920
+ } | {
921
+ type: 2;
922
+ delta: string;
923
+ endDate: number;
924
+ startDate: number;
925
+ }>;
742
926
  executionFeeLimit: z.ZodEffects<z.ZodString, string, string>;
743
927
  minValidations: z.ZodNumber;
744
928
  }, "strict", z.ZodTypeAny, {
@@ -758,6 +942,11 @@ export declare const ConfigCreateRequestValidator: z.ZodObject<{
758
942
  endDate: number;
759
943
  contract: string;
760
944
  topics: string[][];
945
+ } | {
946
+ type: 2;
947
+ delta: string;
948
+ endDate: number;
949
+ startDate: number;
761
950
  };
762
951
  executionFeeLimit: string;
763
952
  }, {
@@ -777,6 +966,11 @@ export declare const ConfigCreateRequestValidator: z.ZodObject<{
777
966
  endDate: number;
778
967
  contract: string;
779
968
  topics: string[][];
969
+ } | {
970
+ type: 2;
971
+ delta: string;
972
+ endDate: number;
973
+ startDate: number;
780
974
  };
781
975
  executionFeeLimit: string;
782
976
  }>;
@@ -798,6 +992,11 @@ export declare const ConfigCreateRequestValidator: z.ZodObject<{
798
992
  endDate: number;
799
993
  contract: string;
800
994
  topics: string[][];
995
+ } | {
996
+ type: 2;
997
+ delta: string;
998
+ endDate: number;
999
+ startDate: number;
801
1000
  };
802
1001
  executionFeeLimit: string;
803
1002
  };
@@ -830,6 +1029,11 @@ export declare const ConfigCreateRequestValidator: z.ZodObject<{
830
1029
  endDate: number;
831
1030
  contract: string;
832
1031
  topics: string[][];
1032
+ } | {
1033
+ type: 2;
1034
+ delta: string;
1035
+ endDate: number;
1036
+ startDate: number;
833
1037
  };
834
1038
  executionFeeLimit: string;
835
1039
  };
@@ -867,6 +1071,11 @@ export declare const ConfigCreateRequestValidator: z.ZodObject<{
867
1071
  endDate: number;
868
1072
  contract: string;
869
1073
  topics: string[][];
1074
+ } | {
1075
+ type: 2;
1076
+ delta: string;
1077
+ endDate: number;
1078
+ startDate: number;
870
1079
  };
871
1080
  executionFeeLimit: string;
872
1081
  };
@@ -904,6 +1113,11 @@ export declare const ConfigCreateRequestValidator: z.ZodObject<{
904
1113
  endDate: number;
905
1114
  contract: string;
906
1115
  topics: string[][];
1116
+ } | {
1117
+ type: 2;
1118
+ delta: string;
1119
+ endDate: number;
1120
+ startDate: number;
907
1121
  };
908
1122
  executionFeeLimit: string;
909
1123
  };
@@ -965,7 +1179,7 @@ export declare const ConfigValidator: z.ZodObject<{
965
1179
  deactivateSig: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
966
1180
  createdAt: z.ZodDate;
967
1181
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
968
- trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1182
+ trigger: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
969
1183
  type: z.ZodLiteral<1>;
970
1184
  chainId: z.ZodEffects<z.ZodNumber, number, number>;
971
1185
  contract: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodLiteral<"any">]>;
@@ -1001,7 +1215,56 @@ export declare const ConfigValidator: z.ZodObject<{
1001
1215
  schedule: string;
1002
1216
  delta: string;
1003
1217
  endDate: number;
1004
- }>]>;
1218
+ }>, z.ZodObject<{
1219
+ type: z.ZodLiteral<2>;
1220
+ startDate: z.ZodNumber;
1221
+ delta: z.ZodEffects<z.ZodString, string, string>;
1222
+ endDate: z.ZodNumber;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ type: 2;
1225
+ delta: string;
1226
+ endDate: number;
1227
+ startDate: number;
1228
+ }, {
1229
+ type: 2;
1230
+ delta: string;
1231
+ endDate: number;
1232
+ startDate: number;
1233
+ }>]>, {
1234
+ type: 0;
1235
+ schedule: string;
1236
+ delta: string;
1237
+ endDate: number;
1238
+ } | {
1239
+ chainId: number;
1240
+ type: 1;
1241
+ delta: string;
1242
+ endDate: number;
1243
+ contract: string;
1244
+ topics: string[][];
1245
+ } | {
1246
+ type: 2;
1247
+ delta: string;
1248
+ endDate: number;
1249
+ startDate: number;
1250
+ }, {
1251
+ type: 0;
1252
+ schedule: string;
1253
+ delta: string;
1254
+ endDate: number;
1255
+ } | {
1256
+ chainId: number;
1257
+ type: 1;
1258
+ delta: string;
1259
+ endDate: number;
1260
+ contract: string;
1261
+ topics: string[][];
1262
+ } | {
1263
+ type: 2;
1264
+ delta: string;
1265
+ endDate: number;
1266
+ startDate: number;
1267
+ }>;
1005
1268
  executionFeeLimit: z.ZodEffects<z.ZodString, string, string>;
1006
1269
  minValidations: z.ZodNumber;
1007
1270
  types: z.ZodIntersection<z.ZodObject<{
@@ -1015,7 +1278,7 @@ export declare const ConfigValidator: z.ZodObject<{
1015
1278
  name: string;
1016
1279
  type: string;
1017
1280
  }>, "many">;
1018
- Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
1281
+ Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
1019
1282
  Config: z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>;
1020
1283
  }, "strip", z.ZodTypeAny, {
1021
1284
  Input: {
@@ -1062,6 +1325,11 @@ export declare const ConfigValidator: z.ZodObject<{
1062
1325
  endDate: number;
1063
1326
  contract: string;
1064
1327
  topics: string[][];
1328
+ } | {
1329
+ type: 2;
1330
+ delta: string;
1331
+ endDate: number;
1332
+ startDate: number;
1065
1333
  };
1066
1334
  executionFeeLimit: string;
1067
1335
  types: {
@@ -1098,6 +1366,11 @@ export declare const ConfigValidator: z.ZodObject<{
1098
1366
  endDate: number;
1099
1367
  contract: string;
1100
1368
  topics: string[][];
1369
+ } | {
1370
+ type: 2;
1371
+ delta: string;
1372
+ endDate: number;
1373
+ startDate: number;
1101
1374
  };
1102
1375
  executionFeeLimit: string;
1103
1376
  types: {
@@ -1124,7 +1397,7 @@ export declare const ConfigsValidator: z.ZodArray<z.ZodObject<{
1124
1397
  deactivateSig: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1125
1398
  createdAt: z.ZodDate;
1126
1399
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1127
- trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1400
+ trigger: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1128
1401
  type: z.ZodLiteral<1>;
1129
1402
  chainId: z.ZodEffects<z.ZodNumber, number, number>;
1130
1403
  contract: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodLiteral<"any">]>;
@@ -1160,7 +1433,56 @@ export declare const ConfigsValidator: z.ZodArray<z.ZodObject<{
1160
1433
  schedule: string;
1161
1434
  delta: string;
1162
1435
  endDate: number;
1163
- }>]>;
1436
+ }>, z.ZodObject<{
1437
+ type: z.ZodLiteral<2>;
1438
+ startDate: z.ZodNumber;
1439
+ delta: z.ZodEffects<z.ZodString, string, string>;
1440
+ endDate: z.ZodNumber;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ type: 2;
1443
+ delta: string;
1444
+ endDate: number;
1445
+ startDate: number;
1446
+ }, {
1447
+ type: 2;
1448
+ delta: string;
1449
+ endDate: number;
1450
+ startDate: number;
1451
+ }>]>, {
1452
+ type: 0;
1453
+ schedule: string;
1454
+ delta: string;
1455
+ endDate: number;
1456
+ } | {
1457
+ chainId: number;
1458
+ type: 1;
1459
+ delta: string;
1460
+ endDate: number;
1461
+ contract: string;
1462
+ topics: string[][];
1463
+ } | {
1464
+ type: 2;
1465
+ delta: string;
1466
+ endDate: number;
1467
+ startDate: number;
1468
+ }, {
1469
+ type: 0;
1470
+ schedule: string;
1471
+ delta: string;
1472
+ endDate: number;
1473
+ } | {
1474
+ chainId: number;
1475
+ type: 1;
1476
+ delta: string;
1477
+ endDate: number;
1478
+ contract: string;
1479
+ topics: string[][];
1480
+ } | {
1481
+ type: 2;
1482
+ delta: string;
1483
+ endDate: number;
1484
+ startDate: number;
1485
+ }>;
1164
1486
  executionFeeLimit: z.ZodEffects<z.ZodString, string, string>;
1165
1487
  minValidations: z.ZodNumber;
1166
1488
  types: z.ZodIntersection<z.ZodObject<{
@@ -1174,7 +1496,7 @@ export declare const ConfigsValidator: z.ZodArray<z.ZodObject<{
1174
1496
  name: string;
1175
1497
  type: string;
1176
1498
  }>, "many">;
1177
- Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
1499
+ Trigger: z.ZodUnion<[z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>, z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>]>;
1178
1500
  Config: z.ZodTuple<[z.ZodTypeAny, ...z.ZodTypeAny[]], null>;
1179
1501
  }, "strip", z.ZodTypeAny, {
1180
1502
  Input: {
@@ -1221,6 +1543,11 @@ export declare const ConfigsValidator: z.ZodArray<z.ZodObject<{
1221
1543
  endDate: number;
1222
1544
  contract: string;
1223
1545
  topics: string[][];
1546
+ } | {
1547
+ type: 2;
1548
+ delta: string;
1549
+ endDate: number;
1550
+ startDate: number;
1224
1551
  };
1225
1552
  executionFeeLimit: string;
1226
1553
  types: {
@@ -1257,6 +1584,11 @@ export declare const ConfigsValidator: z.ZodArray<z.ZodObject<{
1257
1584
  endDate: number;
1258
1585
  contract: string;
1259
1586
  topics: string[][];
1587
+ } | {
1588
+ type: 2;
1589
+ delta: string;
1590
+ endDate: number;
1591
+ startDate: number;
1260
1592
  };
1261
1593
  executionFeeLimit: string;
1262
1594
  types: {
@@ -1334,6 +1666,7 @@ export declare const ExecutionPricingValidator: z.ZodObject<{
1334
1666
  subgraphQuery: z.ZodNumber;
1335
1667
  cronTrigger: z.ZodNumber;
1336
1668
  eventTrigger: z.ZodNumber;
1669
+ onceTrigger: z.ZodNumber;
1337
1670
  protocolFeePct: z.ZodNumber;
1338
1671
  createdAt: z.ZodDate;
1339
1672
  }, "strip", z.ZodTypeAny, {
@@ -1348,6 +1681,7 @@ export declare const ExecutionPricingValidator: z.ZodObject<{
1348
1681
  subgraphQuery: number;
1349
1682
  cronTrigger: number;
1350
1683
  eventTrigger: number;
1684
+ onceTrigger: number;
1351
1685
  protocolFeePct: number;
1352
1686
  }, {
1353
1687
  intent: number;
@@ -1361,6 +1695,7 @@ export declare const ExecutionPricingValidator: z.ZodObject<{
1361
1695
  subgraphQuery: number;
1362
1696
  cronTrigger: number;
1363
1697
  eventTrigger: number;
1698
+ onceTrigger: number;
1364
1699
  protocolFeePct: number;
1365
1700
  }>;
1366
1701
  export declare const ExecutionPricingsValidator: z.ZodArray<z.ZodObject<{
@@ -1374,6 +1709,7 @@ export declare const ExecutionPricingsValidator: z.ZodArray<z.ZodObject<{
1374
1709
  subgraphQuery: z.ZodNumber;
1375
1710
  cronTrigger: z.ZodNumber;
1376
1711
  eventTrigger: z.ZodNumber;
1712
+ onceTrigger: z.ZodNumber;
1377
1713
  protocolFeePct: z.ZodNumber;
1378
1714
  createdAt: z.ZodDate;
1379
1715
  }, "strip", z.ZodTypeAny, {
@@ -1388,6 +1724,7 @@ export declare const ExecutionPricingsValidator: z.ZodArray<z.ZodObject<{
1388
1724
  subgraphQuery: number;
1389
1725
  cronTrigger: number;
1390
1726
  eventTrigger: number;
1727
+ onceTrigger: number;
1391
1728
  protocolFeePct: number;
1392
1729
  }, {
1393
1730
  intent: number;
@@ -1401,6 +1738,7 @@ export declare const ExecutionPricingsValidator: z.ZodArray<z.ZodObject<{
1401
1738
  subgraphQuery: number;
1402
1739
  cronTrigger: number;
1403
1740
  eventTrigger: number;
1741
+ onceTrigger: number;
1404
1742
  protocolFeePct: number;
1405
1743
  }>, "many">;
1406
1744
  export declare const UserDataValidator: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/registry/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAiCvB,eAAO,MAAM,eAAe,2CAAkE,CAAA;AAE9F,eAAO,MAAM,cAAc,2CAAgE,CAAA;AAE3F,eAAO,MAAM,aAAa,2CAA8D,CAAA;AAExF,eAAO,MAAM,qBAAqB,2CAA+E,CAAA;AAEjH,eAAO,MAAM,0BAA0B,2C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;;;;;;;;;;;;;;;;;;;;;;EAcpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAqC,CAAA;AAI5E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;EAAsE,CAAA;AAIjH,eAAO,MAAM,uCAAuC;;;;;;EAAsC,CAAA;AAE1F,eAAO,MAAM,uCAAuC;;;;;;EAAsC,CAAA;AAE1F,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmailVerificationVerifyRequestValidator = exports.EmailVerificationCreateRequestValidator = exports.UserDataUpdateRequestValidator = exports.UserDataValidator = exports.ExecutionPricingsValidator = exports.ExecutionPricingValidator = exports.ExecutionPricingsGetRequestValidator = exports.RelayerValidator = exports.OracleValidator = exports.ConfigDeactivateRequestValidator = exports.ConfigsValidator = exports.ConfigValidator = exports.ConfigsGetRequestValidator = exports.ConfigCreateRequestValidator = exports.ConfigTypedDataValidator = exports.ConfigTypesValidator = exports.ConfigTypedDataFieldValidator = exports.TriggerTypeValidator = exports.EventTriggerTypeValidator = exports.CronTriggerTypeValidator = exports.TaskCreateRequestValidator = exports.TasksValidator = exports.TaskValidator = exports.TasksGetRequestValidator = exports.BalancesCreateRequestValidator = exports.BalanceTotalValidator = exports.BalancesValidator = exports.BalanceValidator = exports.BalancesGetRequestValidator = exports.UserTokensValidator = exports.UserTokenValidator = exports.UserApiKeyValidator = exports.UserNonceValidator = exports.UserNonceRequestValidator = exports.UserAuthenticationValidator = exports.UserAuthenticationRequestValidator = exports.ManifestValidator = exports.ManifestInputsValidator = exports.TriggerValidator = exports.EventTriggerValidator = exports.CronTriggerValidator = exports.EventTopicsValidator = exports.EventTopicValidator = exports.TokenAmountValidator = exports.TokenValidator = exports.ManifestInputTypeValidator = exports.SolidityTypeValidator = exports.CronValidator = exports.DeltaValidator = exports.SemVerValidator = void 0;
4
- exports.EmailVerificationValidator = void 0;
3
+ exports.UserDataUpdateRequestValidator = exports.UserDataValidator = exports.ExecutionPricingsValidator = exports.ExecutionPricingValidator = exports.ExecutionPricingsGetRequestValidator = exports.RelayerValidator = exports.OracleValidator = exports.ConfigDeactivateRequestValidator = exports.ConfigsValidator = exports.ConfigValidator = exports.ConfigsGetRequestValidator = exports.ConfigCreateRequestValidator = exports.ConfigTypedDataValidator = exports.ConfigTypesValidator = exports.ConfigTypedDataFieldValidator = exports.TriggerTypeValidator = exports.OnceTriggerTypeValidator = exports.EventTriggerTypeValidator = exports.CronTriggerTypeValidator = exports.TaskCreateRequestValidator = exports.TasksValidator = exports.TaskValidator = exports.TasksGetRequestValidator = exports.BalancesCreateRequestValidator = exports.BalanceTotalValidator = exports.BalancesValidator = exports.BalanceValidator = exports.BalancesGetRequestValidator = exports.UserTokensValidator = exports.UserTokenValidator = exports.UserApiKeyValidator = exports.UserNonceValidator = exports.UserNonceRequestValidator = exports.UserAuthenticationValidator = exports.UserAuthenticationRequestValidator = exports.ManifestValidator = exports.ManifestInputsValidator = exports.TriggerValidator = exports.OnceTriggerValidator = exports.EventTriggerValidator = exports.CronTriggerValidator = exports.EventTopicsValidator = exports.EventTopicValidator = exports.TokenAmountValidator = exports.TokenValidator = exports.ManifestInputTypeValidator = exports.SolidityTypeValidator = exports.CronValidator = exports.DeltaValidator = exports.SemVerValidator = void 0;
4
+ exports.EmailVerificationValidator = exports.EmailVerificationVerifyRequestValidator = exports.EmailVerificationCreateRequestValidator = void 0;
5
5
  const zod_1 = require("zod");
6
6
  const shared_1 = require("../shared");
7
7
  const validators_1 = require("../shared/validators");
@@ -40,7 +40,24 @@ exports.EventTriggerValidator = zod_1.z
40
40
  endDate: shared_1.TimestampValidator,
41
41
  })
42
42
  .strict();
43
- exports.TriggerValidator = zod_1.z.discriminatedUnion('type', [exports.EventTriggerValidator, exports.CronTriggerValidator]);
43
+ exports.OnceTriggerValidator = zod_1.z.object({
44
+ type: zod_1.z.literal(shared_1.TriggerType.Once),
45
+ startDate: shared_1.TimestampValidator,
46
+ delta: exports.DeltaValidator,
47
+ endDate: shared_1.TimestampValidator,
48
+ });
49
+ exports.TriggerValidator = zod_1.z
50
+ .discriminatedUnion('type', [exports.EventTriggerValidator, exports.CronTriggerValidator, exports.OnceTriggerValidator])
51
+ .superRefine((trigger, ctx) => {
52
+ if (trigger.type == shared_1.TriggerType.Once &&
53
+ trigger.endDate != trigger.startDate + (0, shared_1.getDurationInMilliseconds)(trigger.delta)) {
54
+ ctx.addIssue({
55
+ code: zod_1.z.ZodIssueCode.custom,
56
+ path: ['endDate'],
57
+ message: 'endDate must be equal to startDate + delta',
58
+ });
59
+ }
60
+ });
44
61
  exports.ManifestInputsValidator = zod_1.z.record(shared_1.StringValidator, zod_1.z.union([
45
62
  exports.ManifestInputTypeValidator,
46
63
  zod_1.z.object({ type: exports.ManifestInputTypeValidator, description: shared_1.StringValidator.optional() }),
@@ -128,7 +145,12 @@ exports.TaskCreateRequestValidator = zod_1.z.object({
128
145
  // ========= Config =========
129
146
  exports.CronTriggerTypeValidator = (0, validators_1.eip712TypesToZodValidator)(eip712Types_1.TRIGGER_712_TYPES[shared_1.TriggerType.Cron]);
130
147
  exports.EventTriggerTypeValidator = (0, validators_1.eip712TypesToZodValidator)(eip712Types_1.TRIGGER_712_TYPES[shared_1.TriggerType.Event]);
131
- exports.TriggerTypeValidator = zod_1.z.union([exports.CronTriggerTypeValidator, exports.EventTriggerTypeValidator]);
148
+ exports.OnceTriggerTypeValidator = (0, validators_1.eip712TypesToZodValidator)(eip712Types_1.TRIGGER_712_TYPES[shared_1.TriggerType.Once]);
149
+ exports.TriggerTypeValidator = zod_1.z.union([
150
+ exports.CronTriggerTypeValidator,
151
+ exports.EventTriggerTypeValidator,
152
+ exports.OnceTriggerTypeValidator,
153
+ ]);
132
154
  exports.ConfigTypedDataFieldValidator = zod_1.z
133
155
  .object({ name: shared_1.StringValidator, type: exports.ManifestInputTypeValidator })
134
156
  .strict();
@@ -219,6 +241,7 @@ exports.ExecutionPricingValidator = zod_1.z.object({
219
241
  subgraphQuery: validators_1.PositiveNumberValidator,
220
242
  cronTrigger: validators_1.PositiveNumberValidator,
221
243
  eventTrigger: validators_1.PositiveNumberValidator,
244
+ onceTrigger: validators_1.PositiveNumberValidator,
222
245
  protocolFeePct: validators_1.PositiveNumberValidator.max(100),
223
246
  createdAt: validators_1.DateValidator,
224
247
  });