@lifi/compose-spec 0.14.0 → 0.15.1

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/dist/index.d.cts CHANGED
@@ -29,19 +29,19 @@ export declare const ResourceSchema: Schema.transform<Schema.Union<[Schema.Struc
29
29
  token: Schema.refine<string, typeof Schema.String>;
30
30
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
31
31
  }>]>, Schema.SchemaClass<{
32
- readonly kind: "native";
33
32
  readonly chainId: number;
33
+ readonly kind: "native";
34
34
  } | {
35
- readonly kind: "erc20";
36
- readonly chainId: number;
37
35
  readonly token: string;
38
- }, {
39
- readonly kind: "native";
40
36
  readonly chainId: number;
41
- } | {
42
37
  readonly kind: "erc20";
38
+ }, {
43
39
  readonly chainId: number;
40
+ readonly kind: "native";
41
+ } | {
44
42
  readonly token: string;
43
+ readonly chainId: number;
44
+ readonly kind: "erc20";
45
45
  }, never>>;
46
46
  export declare const ResourceInputSchema: Schema.Struct<{
47
47
  name: typeof Schema.String;
@@ -53,19 +53,19 @@ export declare const ResourceInputSchema: Schema.Struct<{
53
53
  token: Schema.refine<string, typeof Schema.String>;
54
54
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
55
55
  }>]>, Schema.SchemaClass<{
56
- readonly kind: "native";
57
56
  readonly chainId: number;
57
+ readonly kind: "native";
58
58
  } | {
59
- readonly kind: "erc20";
60
- readonly chainId: number;
61
59
  readonly token: string;
62
- }, {
63
- readonly kind: "native";
64
60
  readonly chainId: number;
65
- } | {
66
61
  readonly kind: "erc20";
62
+ }, {
67
63
  readonly chainId: number;
64
+ readonly kind: "native";
65
+ } | {
68
66
  readonly token: string;
67
+ readonly chainId: number;
68
+ readonly kind: "erc20";
69
69
  }, never>>;
70
70
  }>;
71
71
  export declare const HandleInputSchema: Schema.Struct<{
@@ -82,19 +82,19 @@ export declare const FlowInputSchema: Schema.Union<[Schema.Struct<{
82
82
  token: Schema.refine<string, typeof Schema.String>;
83
83
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
84
84
  }>]>, Schema.SchemaClass<{
85
- readonly kind: "native";
86
85
  readonly chainId: number;
86
+ readonly kind: "native";
87
87
  } | {
88
- readonly kind: "erc20";
89
- readonly chainId: number;
90
88
  readonly token: string;
91
- }, {
92
- readonly kind: "native";
93
89
  readonly chainId: number;
94
- } | {
95
90
  readonly kind: "erc20";
91
+ }, {
96
92
  readonly chainId: number;
93
+ readonly kind: "native";
94
+ } | {
97
95
  readonly token: string;
96
+ readonly chainId: number;
97
+ readonly kind: "erc20";
98
98
  }, never>>;
99
99
  }>, Schema.Struct<{
100
100
  name: typeof Schema.String;
@@ -157,19 +157,19 @@ export declare const EpilogueForwardSchema: Schema.Struct<{
157
157
  token: Schema.refine<string, typeof Schema.String>;
158
158
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
159
159
  }>]>, Schema.SchemaClass<{
160
- readonly kind: "native";
161
160
  readonly chainId: number;
161
+ readonly kind: "native";
162
162
  } | {
163
- readonly kind: "erc20";
164
- readonly chainId: number;
165
163
  readonly token: string;
166
- }, {
167
- readonly kind: "native";
168
164
  readonly chainId: number;
169
- } | {
170
165
  readonly kind: "erc20";
166
+ }, {
171
167
  readonly chainId: number;
168
+ readonly kind: "native";
169
+ } | {
172
170
  readonly token: string;
171
+ readonly chainId: number;
172
+ readonly kind: "erc20";
173
173
  }, never>>;
174
174
  to: Schema.Union<[Schema.refine<string, typeof Schema.String>, Schema.Struct<{
175
175
  $ref: Schema.filter<typeof Schema.String>;
@@ -185,19 +185,19 @@ export declare const EpilogueSchema: Schema.filter<Schema.Struct<{
185
185
  token: Schema.refine<string, typeof Schema.String>;
186
186
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
187
187
  }>]>, Schema.SchemaClass<{
188
- readonly kind: "native";
189
188
  readonly chainId: number;
189
+ readonly kind: "native";
190
190
  } | {
191
- readonly kind: "erc20";
192
- readonly chainId: number;
193
191
  readonly token: string;
194
- }, {
195
- readonly kind: "native";
196
192
  readonly chainId: number;
197
- } | {
198
193
  readonly kind: "erc20";
194
+ }, {
199
195
  readonly chainId: number;
196
+ readonly kind: "native";
197
+ } | {
200
198
  readonly token: string;
199
+ readonly chainId: number;
200
+ readonly kind: "erc20";
201
201
  }, never>>;
202
202
  to: Schema.Union<[Schema.refine<string, typeof Schema.String>, Schema.Struct<{
203
203
  $ref: Schema.filter<typeof Schema.String>;
@@ -221,19 +221,19 @@ export declare const FlowSchema: Schema.Struct<{
221
221
  token: Schema.refine<string, typeof Schema.String>;
222
222
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
223
223
  }>]>, Schema.SchemaClass<{
224
- readonly kind: "native";
225
224
  readonly chainId: number;
225
+ readonly kind: "native";
226
226
  } | {
227
- readonly kind: "erc20";
228
- readonly chainId: number;
229
227
  readonly token: string;
230
- }, {
231
- readonly kind: "native";
232
228
  readonly chainId: number;
233
- } | {
234
229
  readonly kind: "erc20";
230
+ }, {
235
231
  readonly chainId: number;
232
+ readonly kind: "native";
233
+ } | {
236
234
  readonly token: string;
235
+ readonly chainId: number;
236
+ readonly kind: "erc20";
237
237
  }, never>>;
238
238
  }>, Schema.Struct<{
239
239
  name: typeof Schema.String;
@@ -274,19 +274,19 @@ export declare const FlowSchema: Schema.Struct<{
274
274
  token: Schema.refine<string, typeof Schema.String>;
275
275
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
276
276
  }>]>, Schema.SchemaClass<{
277
- readonly kind: "native";
278
277
  readonly chainId: number;
278
+ readonly kind: "native";
279
279
  } | {
280
- readonly kind: "erc20";
281
- readonly chainId: number;
282
280
  readonly token: string;
283
- }, {
284
- readonly kind: "native";
285
281
  readonly chainId: number;
286
- } | {
287
282
  readonly kind: "erc20";
283
+ }, {
288
284
  readonly chainId: number;
285
+ readonly kind: "native";
286
+ } | {
289
287
  readonly token: string;
288
+ readonly chainId: number;
289
+ readonly kind: "erc20";
290
290
  }, never>>;
291
291
  to: Schema.Union<[Schema.refine<string, typeof Schema.String>, Schema.Struct<{
292
292
  $ref: Schema.filter<typeof Schema.String>;
@@ -315,68 +315,68 @@ type Flow = typeof FlowSchema.Type;
315
315
  //#region src/continuation.d.ts
316
316
  export declare const CONTINUATION_COMMITMENT_OP_ID = "continuation.commitment";
317
317
  export declare const ContinuationOutcomeSchema: Schema.transform<Schema.Schema<{
318
- readonly chainId: number;
319
318
  readonly token: string;
320
319
  readonly minAmount?: string | undefined;
321
320
  readonly destination: string;
322
- }, {
323
321
  readonly chainId: number;
322
+ }, {
324
323
  readonly token: string;
325
324
  readonly destination: string;
325
+ readonly chainId: number;
326
326
  readonly minAmount?: string | undefined;
327
327
  }, never>, Schema.SchemaClass<{
328
- readonly chainId: number;
329
328
  readonly token: string;
330
329
  readonly minAmount?: string | undefined;
331
330
  readonly destination: string;
332
- }, {
333
331
  readonly chainId: number;
332
+ }, {
334
333
  readonly token: string;
335
334
  readonly minAmount?: string | undefined;
336
335
  readonly destination: string;
336
+ readonly chainId: number;
337
337
  }, never>>;
338
338
  export declare const CommittedOutcomeSchema: Schema.transform<Schema.Schema<{
339
- readonly chainId: number;
340
339
  readonly token: string;
341
340
  readonly minAmount: string;
342
341
  readonly destination: string;
343
- }, {
344
342
  readonly chainId: number;
343
+ }, {
345
344
  readonly token: string;
346
345
  readonly minAmount: string;
347
346
  readonly destination: string;
348
- }, never>, Schema.SchemaClass<{
349
347
  readonly chainId: number;
348
+ }, never>, Schema.SchemaClass<{
350
349
  readonly token: string;
351
350
  readonly minAmount: string;
352
351
  readonly destination: string;
353
- }, {
354
352
  readonly chainId: number;
353
+ }, {
355
354
  readonly token: string;
356
355
  readonly minAmount: string;
357
356
  readonly destination: string;
357
+ readonly chainId: number;
358
358
  }, never>>;
359
359
  export declare const ContinuationIntentSchema: Schema.Struct<{
360
360
  outcomes: Schema.Array$<Schema.transform<Schema.Schema<{
361
- readonly chainId: number;
362
361
  readonly token: string;
363
362
  readonly minAmount?: string | undefined;
364
363
  readonly destination: string;
365
- }, {
366
364
  readonly chainId: number;
365
+ }, {
367
366
  readonly token: string;
368
367
  readonly destination: string;
368
+ readonly chainId: number;
369
369
  readonly minAmount?: string | undefined;
370
370
  }, never>, Schema.SchemaClass<{
371
- readonly chainId: number;
372
371
  readonly token: string;
373
372
  readonly minAmount?: string | undefined;
374
373
  readonly destination: string;
375
- }, {
376
374
  readonly chainId: number;
375
+ }, {
377
376
  readonly token: string;
378
377
  readonly minAmount?: string | undefined;
379
378
  readonly destination: string;
379
+ readonly chainId: number;
380
380
  }, never>>>;
381
381
  continuationFlow: Schema.optional<Schema.Struct<{
382
382
  version: Schema.Literal<[1]>;
@@ -392,19 +392,19 @@ export declare const ContinuationIntentSchema: Schema.Struct<{
392
392
  token: Schema.refine<string, typeof Schema.String>;
393
393
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
394
394
  }>]>, Schema.SchemaClass<{
395
- readonly kind: "native";
396
395
  readonly chainId: number;
396
+ readonly kind: "native";
397
397
  } | {
398
- readonly kind: "erc20";
399
- readonly chainId: number;
400
398
  readonly token: string;
401
- }, {
402
- readonly kind: "native";
403
399
  readonly chainId: number;
404
- } | {
405
400
  readonly kind: "erc20";
401
+ }, {
406
402
  readonly chainId: number;
403
+ readonly kind: "native";
404
+ } | {
407
405
  readonly token: string;
406
+ readonly chainId: number;
407
+ readonly kind: "erc20";
408
408
  }, never>>;
409
409
  }>, Schema.Struct<{
410
410
  name: typeof Schema.String;
@@ -445,19 +445,19 @@ export declare const ContinuationIntentSchema: Schema.Struct<{
445
445
  token: Schema.refine<string, typeof Schema.String>;
446
446
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
447
447
  }>]>, Schema.SchemaClass<{
448
- readonly kind: "native";
449
448
  readonly chainId: number;
449
+ readonly kind: "native";
450
450
  } | {
451
- readonly kind: "erc20";
452
- readonly chainId: number;
453
451
  readonly token: string;
454
- }, {
455
- readonly kind: "native";
456
452
  readonly chainId: number;
457
- } | {
458
453
  readonly kind: "erc20";
454
+ }, {
459
455
  readonly chainId: number;
456
+ readonly kind: "native";
457
+ } | {
460
458
  readonly token: string;
459
+ readonly chainId: number;
460
+ readonly kind: "erc20";
461
461
  }, never>>;
462
462
  to: Schema.Union<[Schema.refine<string, typeof Schema.String>, Schema.Struct<{
463
463
  $ref: Schema.filter<typeof Schema.String>;
@@ -589,38 +589,38 @@ export declare const AssertedPredicateSchema: Schema.transformOrFail<Schema.Unio
589
589
  comparator: Schema.Literal<["gte", "eq", "lte"]>;
590
590
  threshold: Schema.filter<typeof Schema.String>;
591
591
  }>]>, Schema.SchemaClass<{
592
- readonly kind: "nativeBalanceGte";
593
- readonly chainId: number;
594
592
  readonly minAmount: string;
593
+ readonly chainId: number;
594
+ readonly kind: "nativeBalanceGte";
595
595
  readonly owner: string;
596
596
  } | {
597
- readonly kind: "erc20BalanceGte";
598
- readonly chainId: number;
599
597
  readonly token: string;
600
598
  readonly minAmount: string;
599
+ readonly chainId: number;
600
+ readonly kind: "erc20BalanceGte";
601
601
  readonly owner: string;
602
602
  } | {
603
- readonly kind: "call";
604
603
  readonly chainId: number;
604
+ readonly kind: "call";
605
605
  readonly to: string;
606
606
  readonly signature: string;
607
607
  readonly args: readonly string[];
608
608
  readonly comparator: "gte" | "eq" | "lte";
609
609
  readonly threshold: string;
610
610
  }, {
611
- readonly kind: "nativeBalanceGte";
612
- readonly chainId: number;
613
611
  readonly minAmount: string;
612
+ readonly chainId: number;
613
+ readonly kind: "nativeBalanceGte";
614
614
  readonly owner: string;
615
615
  } | {
616
- readonly kind: "erc20BalanceGte";
617
- readonly chainId: number;
618
616
  readonly token: string;
619
617
  readonly minAmount: string;
618
+ readonly chainId: number;
619
+ readonly kind: "erc20BalanceGte";
620
620
  readonly owner: string;
621
621
  } | {
622
- readonly kind: "call";
623
622
  readonly chainId: number;
623
+ readonly kind: "call";
624
624
  readonly to: string;
625
625
  readonly signature: string;
626
626
  readonly args: readonly string[];
@@ -650,38 +650,38 @@ export declare const VerificationDescriptorSchema: Schema.Struct<{
650
650
  comparator: Schema.Literal<["gte", "eq", "lte"]>;
651
651
  threshold: Schema.filter<typeof Schema.String>;
652
652
  }>]>, Schema.SchemaClass<{
653
- readonly kind: "nativeBalanceGte";
654
- readonly chainId: number;
655
653
  readonly minAmount: string;
654
+ readonly chainId: number;
655
+ readonly kind: "nativeBalanceGte";
656
656
  readonly owner: string;
657
657
  } | {
658
- readonly kind: "erc20BalanceGte";
659
- readonly chainId: number;
660
658
  readonly token: string;
661
659
  readonly minAmount: string;
660
+ readonly chainId: number;
661
+ readonly kind: "erc20BalanceGte";
662
662
  readonly owner: string;
663
663
  } | {
664
- readonly kind: "call";
665
664
  readonly chainId: number;
665
+ readonly kind: "call";
666
666
  readonly to: string;
667
667
  readonly signature: string;
668
668
  readonly args: readonly string[];
669
669
  readonly comparator: "gte" | "eq" | "lte";
670
670
  readonly threshold: string;
671
671
  }, {
672
- readonly kind: "nativeBalanceGte";
673
- readonly chainId: number;
674
672
  readonly minAmount: string;
673
+ readonly chainId: number;
674
+ readonly kind: "nativeBalanceGte";
675
675
  readonly owner: string;
676
676
  } | {
677
- readonly kind: "erc20BalanceGte";
678
- readonly chainId: number;
679
677
  readonly token: string;
680
678
  readonly minAmount: string;
679
+ readonly chainId: number;
680
+ readonly kind: "erc20BalanceGte";
681
681
  readonly owner: string;
682
682
  } | {
683
- readonly kind: "call";
684
683
  readonly chainId: number;
684
+ readonly kind: "call";
685
685
  readonly to: string;
686
686
  readonly signature: string;
687
687
  readonly args: readonly string[];
@@ -1048,12 +1048,12 @@ export declare const GuardSelectorZod: z.ZodObject<{
1048
1048
  match: z.ZodObject<{
1049
1049
  kind: z.ZodUnion<readonly [z.ZodEnum<{
1050
1050
  resource: "resource";
1051
- handle: "handle";
1052
1051
  resource_output: "resource_output";
1052
+ handle: "handle";
1053
1053
  }>, z.ZodArray<z.ZodEnum<{
1054
1054
  resource: "resource";
1055
- handle: "handle";
1056
1055
  resource_output: "resource_output";
1056
+ handle: "handle";
1057
1057
  }>>]>;
1058
1058
  mode: z.ZodOptional<z.ZodEnum<{
1059
1059
  linear: "linear";
@@ -1086,12 +1086,12 @@ export declare const GuardCompatibilityZod: z.ZodObject<{
1086
1086
  match: z.ZodObject<{
1087
1087
  kind: z.ZodUnion<readonly [z.ZodEnum<{
1088
1088
  resource: "resource";
1089
- handle: "handle";
1090
1089
  resource_output: "resource_output";
1090
+ handle: "handle";
1091
1091
  }>, z.ZodArray<z.ZodEnum<{
1092
1092
  resource: "resource";
1093
- handle: "handle";
1094
1093
  resource_output: "resource_output";
1094
+ handle: "handle";
1095
1095
  }>>]>;
1096
1096
  mode: z.ZodOptional<z.ZodEnum<{
1097
1097
  linear: "linear";
@@ -1129,12 +1129,12 @@ export declare const ManifestGuardZod: z.ZodObject<{
1129
1129
  match: z.ZodObject<{
1130
1130
  kind: z.ZodUnion<readonly [z.ZodEnum<{
1131
1131
  resource: "resource";
1132
- handle: "handle";
1133
1132
  resource_output: "resource_output";
1133
+ handle: "handle";
1134
1134
  }>, z.ZodArray<z.ZodEnum<{
1135
1135
  resource: "resource";
1136
- handle: "handle";
1137
1136
  resource_output: "resource_output";
1137
+ handle: "handle";
1138
1138
  }>>]>;
1139
1139
  mode: z.ZodOptional<z.ZodEnum<{
1140
1140
  linear: "linear";
@@ -1164,8 +1164,8 @@ export declare const ManifestMaterialiserZod: z.ZodObject<{
1164
1164
  description: z.ZodOptional<z.ZodString>;
1165
1165
  accepts: z.ZodEnum<{
1166
1166
  resource: "resource";
1167
- any: "any";
1168
1167
  handle: "handle";
1168
+ any: "any";
1169
1169
  }>;
1170
1170
  configSchema: z.ZodOptional<z.ZodUnknown>;
1171
1171
  }, z.core.$strip>;
@@ -1298,12 +1298,12 @@ export declare const ComposeManifestZod: z.ZodObject<{
1298
1298
  match: z.ZodObject<{
1299
1299
  kind: z.ZodUnion<readonly [z.ZodEnum<{
1300
1300
  resource: "resource";
1301
- handle: "handle";
1302
1301
  resource_output: "resource_output";
1302
+ handle: "handle";
1303
1303
  }>, z.ZodArray<z.ZodEnum<{
1304
1304
  resource: "resource";
1305
- handle: "handle";
1306
1305
  resource_output: "resource_output";
1306
+ handle: "handle";
1307
1307
  }>>]>;
1308
1308
  mode: z.ZodOptional<z.ZodEnum<{
1309
1309
  linear: "linear";
@@ -1333,8 +1333,8 @@ export declare const ComposeManifestZod: z.ZodObject<{
1333
1333
  description: z.ZodOptional<z.ZodString>;
1334
1334
  accepts: z.ZodEnum<{
1335
1335
  resource: "resource";
1336
- any: "any";
1337
1336
  handle: "handle";
1337
+ any: "any";
1338
1338
  }>;
1339
1339
  configSchema: z.ZodOptional<z.ZodUnknown>;
1340
1340
  }, z.core.$strip>>;
package/dist/index.d.ts CHANGED
@@ -29,19 +29,19 @@ export declare const ResourceSchema: Schema.transform<Schema.Union<[Schema.Struc
29
29
  token: Schema.refine<string, typeof Schema.String>;
30
30
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
31
31
  }>]>, Schema.SchemaClass<{
32
- readonly kind: "native";
33
32
  readonly chainId: number;
33
+ readonly kind: "native";
34
34
  } | {
35
- readonly kind: "erc20";
36
- readonly chainId: number;
37
35
  readonly token: string;
38
- }, {
39
- readonly kind: "native";
40
36
  readonly chainId: number;
41
- } | {
42
37
  readonly kind: "erc20";
38
+ }, {
43
39
  readonly chainId: number;
40
+ readonly kind: "native";
41
+ } | {
44
42
  readonly token: string;
43
+ readonly chainId: number;
44
+ readonly kind: "erc20";
45
45
  }, never>>;
46
46
  export declare const ResourceInputSchema: Schema.Struct<{
47
47
  name: typeof Schema.String;
@@ -53,19 +53,19 @@ export declare const ResourceInputSchema: Schema.Struct<{
53
53
  token: Schema.refine<string, typeof Schema.String>;
54
54
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
55
55
  }>]>, Schema.SchemaClass<{
56
- readonly kind: "native";
57
56
  readonly chainId: number;
57
+ readonly kind: "native";
58
58
  } | {
59
- readonly kind: "erc20";
60
- readonly chainId: number;
61
59
  readonly token: string;
62
- }, {
63
- readonly kind: "native";
64
60
  readonly chainId: number;
65
- } | {
66
61
  readonly kind: "erc20";
62
+ }, {
67
63
  readonly chainId: number;
64
+ readonly kind: "native";
65
+ } | {
68
66
  readonly token: string;
67
+ readonly chainId: number;
68
+ readonly kind: "erc20";
69
69
  }, never>>;
70
70
  }>;
71
71
  export declare const HandleInputSchema: Schema.Struct<{
@@ -82,19 +82,19 @@ export declare const FlowInputSchema: Schema.Union<[Schema.Struct<{
82
82
  token: Schema.refine<string, typeof Schema.String>;
83
83
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
84
84
  }>]>, Schema.SchemaClass<{
85
- readonly kind: "native";
86
85
  readonly chainId: number;
86
+ readonly kind: "native";
87
87
  } | {
88
- readonly kind: "erc20";
89
- readonly chainId: number;
90
88
  readonly token: string;
91
- }, {
92
- readonly kind: "native";
93
89
  readonly chainId: number;
94
- } | {
95
90
  readonly kind: "erc20";
91
+ }, {
96
92
  readonly chainId: number;
93
+ readonly kind: "native";
94
+ } | {
97
95
  readonly token: string;
96
+ readonly chainId: number;
97
+ readonly kind: "erc20";
98
98
  }, never>>;
99
99
  }>, Schema.Struct<{
100
100
  name: typeof Schema.String;
@@ -157,19 +157,19 @@ export declare const EpilogueForwardSchema: Schema.Struct<{
157
157
  token: Schema.refine<string, typeof Schema.String>;
158
158
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
159
159
  }>]>, Schema.SchemaClass<{
160
- readonly kind: "native";
161
160
  readonly chainId: number;
161
+ readonly kind: "native";
162
162
  } | {
163
- readonly kind: "erc20";
164
- readonly chainId: number;
165
163
  readonly token: string;
166
- }, {
167
- readonly kind: "native";
168
164
  readonly chainId: number;
169
- } | {
170
165
  readonly kind: "erc20";
166
+ }, {
171
167
  readonly chainId: number;
168
+ readonly kind: "native";
169
+ } | {
172
170
  readonly token: string;
171
+ readonly chainId: number;
172
+ readonly kind: "erc20";
173
173
  }, never>>;
174
174
  to: Schema.Union<[Schema.refine<string, typeof Schema.String>, Schema.Struct<{
175
175
  $ref: Schema.filter<typeof Schema.String>;
@@ -185,19 +185,19 @@ export declare const EpilogueSchema: Schema.filter<Schema.Struct<{
185
185
  token: Schema.refine<string, typeof Schema.String>;
186
186
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
187
187
  }>]>, Schema.SchemaClass<{
188
- readonly kind: "native";
189
188
  readonly chainId: number;
189
+ readonly kind: "native";
190
190
  } | {
191
- readonly kind: "erc20";
192
- readonly chainId: number;
193
191
  readonly token: string;
194
- }, {
195
- readonly kind: "native";
196
192
  readonly chainId: number;
197
- } | {
198
193
  readonly kind: "erc20";
194
+ }, {
199
195
  readonly chainId: number;
196
+ readonly kind: "native";
197
+ } | {
200
198
  readonly token: string;
199
+ readonly chainId: number;
200
+ readonly kind: "erc20";
201
201
  }, never>>;
202
202
  to: Schema.Union<[Schema.refine<string, typeof Schema.String>, Schema.Struct<{
203
203
  $ref: Schema.filter<typeof Schema.String>;
@@ -221,19 +221,19 @@ export declare const FlowSchema: Schema.Struct<{
221
221
  token: Schema.refine<string, typeof Schema.String>;
222
222
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
223
223
  }>]>, Schema.SchemaClass<{
224
- readonly kind: "native";
225
224
  readonly chainId: number;
225
+ readonly kind: "native";
226
226
  } | {
227
- readonly kind: "erc20";
228
- readonly chainId: number;
229
227
  readonly token: string;
230
- }, {
231
- readonly kind: "native";
232
228
  readonly chainId: number;
233
- } | {
234
229
  readonly kind: "erc20";
230
+ }, {
235
231
  readonly chainId: number;
232
+ readonly kind: "native";
233
+ } | {
236
234
  readonly token: string;
235
+ readonly chainId: number;
236
+ readonly kind: "erc20";
237
237
  }, never>>;
238
238
  }>, Schema.Struct<{
239
239
  name: typeof Schema.String;
@@ -274,19 +274,19 @@ export declare const FlowSchema: Schema.Struct<{
274
274
  token: Schema.refine<string, typeof Schema.String>;
275
275
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
276
276
  }>]>, Schema.SchemaClass<{
277
- readonly kind: "native";
278
277
  readonly chainId: number;
278
+ readonly kind: "native";
279
279
  } | {
280
- readonly kind: "erc20";
281
- readonly chainId: number;
282
280
  readonly token: string;
283
- }, {
284
- readonly kind: "native";
285
281
  readonly chainId: number;
286
- } | {
287
282
  readonly kind: "erc20";
283
+ }, {
288
284
  readonly chainId: number;
285
+ readonly kind: "native";
286
+ } | {
289
287
  readonly token: string;
288
+ readonly chainId: number;
289
+ readonly kind: "erc20";
290
290
  }, never>>;
291
291
  to: Schema.Union<[Schema.refine<string, typeof Schema.String>, Schema.Struct<{
292
292
  $ref: Schema.filter<typeof Schema.String>;
@@ -315,68 +315,68 @@ type Flow = typeof FlowSchema.Type;
315
315
  //#region src/continuation.d.ts
316
316
  export declare const CONTINUATION_COMMITMENT_OP_ID = "continuation.commitment";
317
317
  export declare const ContinuationOutcomeSchema: Schema.transform<Schema.Schema<{
318
- readonly chainId: number;
319
318
  readonly token: string;
320
319
  readonly minAmount?: string | undefined;
321
320
  readonly destination: string;
322
- }, {
323
321
  readonly chainId: number;
322
+ }, {
324
323
  readonly token: string;
325
324
  readonly destination: string;
325
+ readonly chainId: number;
326
326
  readonly minAmount?: string | undefined;
327
327
  }, never>, Schema.SchemaClass<{
328
- readonly chainId: number;
329
328
  readonly token: string;
330
329
  readonly minAmount?: string | undefined;
331
330
  readonly destination: string;
332
- }, {
333
331
  readonly chainId: number;
332
+ }, {
334
333
  readonly token: string;
335
334
  readonly minAmount?: string | undefined;
336
335
  readonly destination: string;
336
+ readonly chainId: number;
337
337
  }, never>>;
338
338
  export declare const CommittedOutcomeSchema: Schema.transform<Schema.Schema<{
339
- readonly chainId: number;
340
339
  readonly token: string;
341
340
  readonly minAmount: string;
342
341
  readonly destination: string;
343
- }, {
344
342
  readonly chainId: number;
343
+ }, {
345
344
  readonly token: string;
346
345
  readonly minAmount: string;
347
346
  readonly destination: string;
348
- }, never>, Schema.SchemaClass<{
349
347
  readonly chainId: number;
348
+ }, never>, Schema.SchemaClass<{
350
349
  readonly token: string;
351
350
  readonly minAmount: string;
352
351
  readonly destination: string;
353
- }, {
354
352
  readonly chainId: number;
353
+ }, {
355
354
  readonly token: string;
356
355
  readonly minAmount: string;
357
356
  readonly destination: string;
357
+ readonly chainId: number;
358
358
  }, never>>;
359
359
  export declare const ContinuationIntentSchema: Schema.Struct<{
360
360
  outcomes: Schema.Array$<Schema.transform<Schema.Schema<{
361
- readonly chainId: number;
362
361
  readonly token: string;
363
362
  readonly minAmount?: string | undefined;
364
363
  readonly destination: string;
365
- }, {
366
364
  readonly chainId: number;
365
+ }, {
367
366
  readonly token: string;
368
367
  readonly destination: string;
368
+ readonly chainId: number;
369
369
  readonly minAmount?: string | undefined;
370
370
  }, never>, Schema.SchemaClass<{
371
- readonly chainId: number;
372
371
  readonly token: string;
373
372
  readonly minAmount?: string | undefined;
374
373
  readonly destination: string;
375
- }, {
376
374
  readonly chainId: number;
375
+ }, {
377
376
  readonly token: string;
378
377
  readonly minAmount?: string | undefined;
379
378
  readonly destination: string;
379
+ readonly chainId: number;
380
380
  }, never>>>;
381
381
  continuationFlow: Schema.optional<Schema.Struct<{
382
382
  version: Schema.Literal<[1]>;
@@ -392,19 +392,19 @@ export declare const ContinuationIntentSchema: Schema.Struct<{
392
392
  token: Schema.refine<string, typeof Schema.String>;
393
393
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
394
394
  }>]>, Schema.SchemaClass<{
395
- readonly kind: "native";
396
395
  readonly chainId: number;
396
+ readonly kind: "native";
397
397
  } | {
398
- readonly kind: "erc20";
399
- readonly chainId: number;
400
398
  readonly token: string;
401
- }, {
402
- readonly kind: "native";
403
399
  readonly chainId: number;
404
- } | {
405
400
  readonly kind: "erc20";
401
+ }, {
406
402
  readonly chainId: number;
403
+ readonly kind: "native";
404
+ } | {
407
405
  readonly token: string;
406
+ readonly chainId: number;
407
+ readonly kind: "erc20";
408
408
  }, never>>;
409
409
  }>, Schema.Struct<{
410
410
  name: typeof Schema.String;
@@ -445,19 +445,19 @@ export declare const ContinuationIntentSchema: Schema.Struct<{
445
445
  token: Schema.refine<string, typeof Schema.String>;
446
446
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
447
447
  }>]>, Schema.SchemaClass<{
448
- readonly kind: "native";
449
448
  readonly chainId: number;
449
+ readonly kind: "native";
450
450
  } | {
451
- readonly kind: "erc20";
452
- readonly chainId: number;
453
451
  readonly token: string;
454
- }, {
455
- readonly kind: "native";
456
452
  readonly chainId: number;
457
- } | {
458
453
  readonly kind: "erc20";
454
+ }, {
459
455
  readonly chainId: number;
456
+ readonly kind: "native";
457
+ } | {
460
458
  readonly token: string;
459
+ readonly chainId: number;
460
+ readonly kind: "erc20";
461
461
  }, never>>;
462
462
  to: Schema.Union<[Schema.refine<string, typeof Schema.String>, Schema.Struct<{
463
463
  $ref: Schema.filter<typeof Schema.String>;
@@ -589,38 +589,38 @@ export declare const AssertedPredicateSchema: Schema.transformOrFail<Schema.Unio
589
589
  comparator: Schema.Literal<["gte", "eq", "lte"]>;
590
590
  threshold: Schema.filter<typeof Schema.String>;
591
591
  }>]>, Schema.SchemaClass<{
592
- readonly kind: "nativeBalanceGte";
593
- readonly chainId: number;
594
592
  readonly minAmount: string;
593
+ readonly chainId: number;
594
+ readonly kind: "nativeBalanceGte";
595
595
  readonly owner: string;
596
596
  } | {
597
- readonly kind: "erc20BalanceGte";
598
- readonly chainId: number;
599
597
  readonly token: string;
600
598
  readonly minAmount: string;
599
+ readonly chainId: number;
600
+ readonly kind: "erc20BalanceGte";
601
601
  readonly owner: string;
602
602
  } | {
603
- readonly kind: "call";
604
603
  readonly chainId: number;
604
+ readonly kind: "call";
605
605
  readonly to: string;
606
606
  readonly signature: string;
607
607
  readonly args: readonly string[];
608
608
  readonly comparator: "gte" | "eq" | "lte";
609
609
  readonly threshold: string;
610
610
  }, {
611
- readonly kind: "nativeBalanceGte";
612
- readonly chainId: number;
613
611
  readonly minAmount: string;
612
+ readonly chainId: number;
613
+ readonly kind: "nativeBalanceGte";
614
614
  readonly owner: string;
615
615
  } | {
616
- readonly kind: "erc20BalanceGte";
617
- readonly chainId: number;
618
616
  readonly token: string;
619
617
  readonly minAmount: string;
618
+ readonly chainId: number;
619
+ readonly kind: "erc20BalanceGte";
620
620
  readonly owner: string;
621
621
  } | {
622
- readonly kind: "call";
623
622
  readonly chainId: number;
623
+ readonly kind: "call";
624
624
  readonly to: string;
625
625
  readonly signature: string;
626
626
  readonly args: readonly string[];
@@ -650,38 +650,38 @@ export declare const VerificationDescriptorSchema: Schema.Struct<{
650
650
  comparator: Schema.Literal<["gte", "eq", "lte"]>;
651
651
  threshold: Schema.filter<typeof Schema.String>;
652
652
  }>]>, Schema.SchemaClass<{
653
- readonly kind: "nativeBalanceGte";
654
- readonly chainId: number;
655
653
  readonly minAmount: string;
654
+ readonly chainId: number;
655
+ readonly kind: "nativeBalanceGte";
656
656
  readonly owner: string;
657
657
  } | {
658
- readonly kind: "erc20BalanceGte";
659
- readonly chainId: number;
660
658
  readonly token: string;
661
659
  readonly minAmount: string;
660
+ readonly chainId: number;
661
+ readonly kind: "erc20BalanceGte";
662
662
  readonly owner: string;
663
663
  } | {
664
- readonly kind: "call";
665
664
  readonly chainId: number;
665
+ readonly kind: "call";
666
666
  readonly to: string;
667
667
  readonly signature: string;
668
668
  readonly args: readonly string[];
669
669
  readonly comparator: "gte" | "eq" | "lte";
670
670
  readonly threshold: string;
671
671
  }, {
672
- readonly kind: "nativeBalanceGte";
673
- readonly chainId: number;
674
672
  readonly minAmount: string;
673
+ readonly chainId: number;
674
+ readonly kind: "nativeBalanceGte";
675
675
  readonly owner: string;
676
676
  } | {
677
- readonly kind: "erc20BalanceGte";
678
- readonly chainId: number;
679
677
  readonly token: string;
680
678
  readonly minAmount: string;
679
+ readonly chainId: number;
680
+ readonly kind: "erc20BalanceGte";
681
681
  readonly owner: string;
682
682
  } | {
683
- readonly kind: "call";
684
683
  readonly chainId: number;
684
+ readonly kind: "call";
685
685
  readonly to: string;
686
686
  readonly signature: string;
687
687
  readonly args: readonly string[];
@@ -1048,12 +1048,12 @@ export declare const GuardSelectorZod: z.ZodObject<{
1048
1048
  match: z.ZodObject<{
1049
1049
  kind: z.ZodUnion<readonly [z.ZodEnum<{
1050
1050
  resource: "resource";
1051
- handle: "handle";
1052
1051
  resource_output: "resource_output";
1052
+ handle: "handle";
1053
1053
  }>, z.ZodArray<z.ZodEnum<{
1054
1054
  resource: "resource";
1055
- handle: "handle";
1056
1055
  resource_output: "resource_output";
1056
+ handle: "handle";
1057
1057
  }>>]>;
1058
1058
  mode: z.ZodOptional<z.ZodEnum<{
1059
1059
  linear: "linear";
@@ -1086,12 +1086,12 @@ export declare const GuardCompatibilityZod: z.ZodObject<{
1086
1086
  match: z.ZodObject<{
1087
1087
  kind: z.ZodUnion<readonly [z.ZodEnum<{
1088
1088
  resource: "resource";
1089
- handle: "handle";
1090
1089
  resource_output: "resource_output";
1090
+ handle: "handle";
1091
1091
  }>, z.ZodArray<z.ZodEnum<{
1092
1092
  resource: "resource";
1093
- handle: "handle";
1094
1093
  resource_output: "resource_output";
1094
+ handle: "handle";
1095
1095
  }>>]>;
1096
1096
  mode: z.ZodOptional<z.ZodEnum<{
1097
1097
  linear: "linear";
@@ -1129,12 +1129,12 @@ export declare const ManifestGuardZod: z.ZodObject<{
1129
1129
  match: z.ZodObject<{
1130
1130
  kind: z.ZodUnion<readonly [z.ZodEnum<{
1131
1131
  resource: "resource";
1132
- handle: "handle";
1133
1132
  resource_output: "resource_output";
1133
+ handle: "handle";
1134
1134
  }>, z.ZodArray<z.ZodEnum<{
1135
1135
  resource: "resource";
1136
- handle: "handle";
1137
1136
  resource_output: "resource_output";
1137
+ handle: "handle";
1138
1138
  }>>]>;
1139
1139
  mode: z.ZodOptional<z.ZodEnum<{
1140
1140
  linear: "linear";
@@ -1164,8 +1164,8 @@ export declare const ManifestMaterialiserZod: z.ZodObject<{
1164
1164
  description: z.ZodOptional<z.ZodString>;
1165
1165
  accepts: z.ZodEnum<{
1166
1166
  resource: "resource";
1167
- any: "any";
1168
1167
  handle: "handle";
1168
+ any: "any";
1169
1169
  }>;
1170
1170
  configSchema: z.ZodOptional<z.ZodUnknown>;
1171
1171
  }, z.core.$strip>;
@@ -1298,12 +1298,12 @@ export declare const ComposeManifestZod: z.ZodObject<{
1298
1298
  match: z.ZodObject<{
1299
1299
  kind: z.ZodUnion<readonly [z.ZodEnum<{
1300
1300
  resource: "resource";
1301
- handle: "handle";
1302
1301
  resource_output: "resource_output";
1302
+ handle: "handle";
1303
1303
  }>, z.ZodArray<z.ZodEnum<{
1304
1304
  resource: "resource";
1305
- handle: "handle";
1306
1305
  resource_output: "resource_output";
1306
+ handle: "handle";
1307
1307
  }>>]>;
1308
1308
  mode: z.ZodOptional<z.ZodEnum<{
1309
1309
  linear: "linear";
@@ -1333,8 +1333,8 @@ export declare const ComposeManifestZod: z.ZodObject<{
1333
1333
  description: z.ZodOptional<z.ZodString>;
1334
1334
  accepts: z.ZodEnum<{
1335
1335
  resource: "resource";
1336
- any: "any";
1337
1336
  handle: "handle";
1337
+ any: "any";
1338
1338
  }>;
1339
1339
  configSchema: z.ZodOptional<z.ZodUnknown>;
1340
1340
  }, z.core.$strip>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/compose-spec",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "description": "Public wire-format types and schemas for Compose flows",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {