@eco-foundation/api-schemas 0.8.0 → 0.9.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.
Files changed (33) hide show
  1. package/README.md +89 -12
  2. package/dist/fixtures/index.js +6 -6
  3. package/dist/fixtures/index.js.map +1 -1
  4. package/dist/fixtures/v1/deposit-addresses-create.request.gateway-erc20.json +1 -1
  5. package/dist/fixtures/v1/deposit-addresses-create.response.gateway-erc20.json +1 -1
  6. package/dist/fixtures/v1/deposit-addresses-lookup.response.default.json +1 -1
  7. package/dist/fixtures/v1/intents-status.response.quote-filled-detail.json +60 -0
  8. package/dist/fixtures/v1/{quotes-create.request.public-swap.json → quotes-create.request.swap.json} +4 -4
  9. package/dist/fixtures/v1/quotes-create.response.all-quotes.json +288 -81
  10. package/dist/fixtures/v1/quotes-create.response.swap.json +228 -0
  11. package/dist/generated/build-digest.json +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/openapi.js +18 -0
  14. package/dist/openapi.js.map +1 -1
  15. package/dist/v1/endpoints/deposit-addresses.d.ts +12 -12
  16. package/dist/v1/endpoints/deposit-addresses.js +9 -9
  17. package/dist/v1/endpoints/quotes.d.ts +343 -193
  18. package/dist/v1/endpoints/quotes.js +50 -60
  19. package/dist/v1/endpoints/quotes.js.map +1 -1
  20. package/dist/v1/endpoints/registry.d.ts +114 -76
  21. package/dist/v1/endpoints/routes.js +1 -1
  22. package/dist/v1/endpoints/routes.js.map +1 -1
  23. package/dist/v1/endpoints/status.d.ts +4 -0
  24. package/dist/v1/endpoints/status.js +1 -0
  25. package/dist/v1/endpoints/status.js.map +1 -1
  26. package/dist/v1/enums.d.ts +12 -30
  27. package/dist/v1/enums.js +10 -15
  28. package/dist/v1/enums.js.map +1 -1
  29. package/dist/v1/types.d.ts +42 -42
  30. package/openapi/v1.json +1076 -673
  31. package/package.json +1 -1
  32. package/dist/fixtures/v1/quotes-create.response.private-swap.json +0 -153
  33. package/dist/fixtures/v1/quotes-create.response.public-swap.json +0 -159
@@ -9,7 +9,7 @@ export declare const DestinationCallSchema: z.ZodObject<{
9
9
  export declare const SLIPPAGE_MIN = 0.0001;
10
10
  export declare const SLIPPAGE_MAX = 1;
11
11
  export declare const QuoteRequestSchema: z.ZodObject<{
12
- swapType: z.ZodEnum<{
12
+ type: z.ZodEnum<{
13
13
  custom: "custom";
14
14
  "exact-in": "exact-in";
15
15
  "exact-out": "exact-out";
@@ -18,6 +18,7 @@ export declare const QuoteRequestSchema: z.ZodObject<{
18
18
  chainId: z.ZodNumber;
19
19
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
20
20
  amount: z.ZodOptional<z.ZodString>;
21
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
21
22
  }, z.core.$strict>;
22
23
  destination: z.ZodObject<{
23
24
  chainId: z.ZodNumber;
@@ -32,16 +33,11 @@ export declare const QuoteRequestSchema: z.ZodObject<{
32
33
  gasLimit: z.ZodOptional<z.ZodString>;
33
34
  }, z.core.$strict>>>;
34
35
  }, z.core.$strict>;
35
- funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
36
36
  refundRecipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
37
37
  slippage: z.ZodOptional<z.ZodNumber>;
38
- dappId: z.ZodOptional<z.ZodString>;
38
+ dappId: z.ZodString;
39
39
  options: z.ZodOptional<z.ZodObject<{
40
40
  deadlineSec: z.ZodOptional<z.ZodNumber>;
41
- visibility: z.ZodOptional<z.ZodEnum<{
42
- public: "public";
43
- private: "private";
44
- }>>;
45
41
  allQuotes: z.ZodOptional<z.ZodBoolean>;
46
42
  }, z.core.$strict>>;
47
43
  }, z.core.$strict>;
@@ -53,7 +49,7 @@ export declare const FeeTokenSchema: z.ZodObject<{
53
49
  decimals: z.ZodNullable<z.ZodNumber>;
54
50
  }, z.core.$loose>;
55
51
  export declare const FeeSchema: z.ZodObject<{
56
- kind: z.ZodEnum<{
52
+ type: z.ZodEnum<{
57
53
  gas: "gas";
58
54
  proving: "proving";
59
55
  protocol: "protocol";
@@ -73,59 +69,12 @@ export declare const StepLegSchema: z.ZodObject<{
73
69
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
74
70
  amount: z.ZodString;
75
71
  }, z.core.$loose>;
76
- export declare const StepSchema: z.ZodObject<{
77
- kind: z.ZodEnum<{
78
- swap: "swap";
79
- bridge: "bridge";
80
- deposit: "deposit";
81
- transfer: "transfer";
82
- }>;
83
- tool: z.ZodString;
84
- aggregator: z.ZodOptional<z.ZodString>;
85
- from: z.ZodObject<{
86
- chainId: z.ZodNumber;
87
- token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
88
- amount: z.ZodString;
89
- }, z.core.$loose>;
90
- to: z.ZodObject<{
91
- chainId: z.ZodNumber;
92
- token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
93
- amount: z.ZodString;
94
- }, z.core.$loose>;
95
- fees: z.ZodArray<z.ZodObject<{
96
- kind: z.ZodEnum<{
97
- gas: "gas";
98
- proving: "proving";
99
- protocol: "protocol";
100
- gateway: "gateway";
101
- }>;
102
- amount: z.ZodString;
103
- token: z.ZodObject<{
104
- chainId: z.ZodNumber;
105
- address: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
106
- symbol: z.ZodNullable<z.ZodString>;
107
- decimals: z.ZodNullable<z.ZodNumber>;
108
- }, z.core.$loose>;
109
- estimate: z.ZodBoolean;
110
- }, z.core.$loose>>;
111
- estimatedDurationSec: z.ZodNumber;
112
- }, z.core.$loose>;
113
- export declare const RelatedIntentSchema: z.ZodObject<{
114
- role: z.ZodEnum<{
115
- local: "local";
116
- "bucket-candidate": "bucket-candidate";
117
- "stitched-destination": "stitched-destination";
118
- }>;
119
- intentHash: z.ZodString;
120
- routeHash: z.ZodOptional<z.ZodString>;
121
- bucketIndex: z.ZodOptional<z.ZodNumber>;
122
- }, z.core.$loose>;
123
72
  export declare const SolverIdentitySchema: z.ZodObject<{
124
73
  id: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
125
74
  name: z.ZodOptional<z.ZodString>;
126
75
  }, z.core.$loose>;
127
76
  export declare const EvmTransactionSchema: z.ZodObject<{
128
- kind: z.ZodLiteral<"evm">;
77
+ type: z.ZodLiteral<"evm">;
129
78
  chainId: z.ZodNumber;
130
79
  to: z.ZodString;
131
80
  data: z.ZodString;
@@ -146,7 +95,7 @@ export declare const SvmInstructionSchema: z.ZodObject<{
146
95
  data: z.ZodString;
147
96
  }, z.core.$loose>;
148
97
  export declare const SvmTransactionSchema: z.ZodObject<{
149
- kind: z.ZodLiteral<"svm">;
98
+ type: z.ZodLiteral<"svm">;
150
99
  chainId: z.ZodNumber;
151
100
  feePayer: z.ZodString;
152
101
  instructions: z.ZodArray<z.ZodObject<{
@@ -160,13 +109,13 @@ export declare const SvmTransactionSchema: z.ZodObject<{
160
109
  }, z.core.$loose>>;
161
110
  }, z.core.$loose>;
162
111
  export declare const FundingTransactionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
163
- kind: z.ZodLiteral<"evm">;
112
+ type: z.ZodLiteral<"evm">;
164
113
  chainId: z.ZodNumber;
165
114
  to: z.ZodString;
166
115
  data: z.ZodString;
167
116
  value: z.ZodString;
168
117
  }, z.core.$loose>, z.ZodObject<{
169
- kind: z.ZodLiteral<"svm">;
118
+ type: z.ZodLiteral<"svm">;
170
119
  chainId: z.ZodNumber;
171
120
  feePayer: z.ZodString;
172
121
  instructions: z.ZodArray<z.ZodObject<{
@@ -178,7 +127,7 @@ export declare const FundingTransactionSchema: z.ZodDiscriminatedUnion<[z.ZodObj
178
127
  }, z.core.$loose>>;
179
128
  data: z.ZodString;
180
129
  }, z.core.$loose>>;
181
- }, z.core.$loose>], "kind">;
130
+ }, z.core.$loose>], "type">;
182
131
  export declare const IntentTokenAmountSchema: z.ZodObject<{
183
132
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
184
133
  amount: z.ZodString;
@@ -199,11 +148,11 @@ export declare const IntentRouteSchema: z.ZodObject<{
199
148
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
200
149
  amount: z.ZodString;
201
150
  }, z.core.$loose>>;
202
- calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
151
+ calls: z.ZodArray<z.ZodObject<{
203
152
  target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
204
153
  data: z.ZodString;
205
154
  value: z.ZodString;
206
- }, z.core.$loose>>>;
155
+ }, z.core.$loose>>;
207
156
  }, z.core.$loose>;
208
157
  export declare const IntentRewardSchema: z.ZodObject<{
209
158
  deadline: z.ZodNumber;
@@ -215,15 +164,130 @@ export declare const IntentRewardSchema: z.ZodObject<{
215
164
  amount: z.ZodString;
216
165
  }, z.core.$loose>>;
217
166
  }, z.core.$loose>;
167
+ export declare const StepIntentSchema: z.ZodObject<{
168
+ role: z.ZodEnum<{
169
+ local: "local";
170
+ "bucket-candidate": "bucket-candidate";
171
+ "stitched-destination": "stitched-destination";
172
+ }>;
173
+ intentHash: z.ZodString;
174
+ routeHash: z.ZodOptional<z.ZodString>;
175
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
176
+ intent: z.ZodObject<{
177
+ route: z.ZodObject<{
178
+ salt: z.ZodString;
179
+ deadline: z.ZodNumber;
180
+ source: z.ZodNumber;
181
+ destination: z.ZodNumber;
182
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
183
+ nativeAmount: z.ZodString;
184
+ tokens: z.ZodArray<z.ZodObject<{
185
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
186
+ amount: z.ZodString;
187
+ }, z.core.$loose>>;
188
+ calls: z.ZodArray<z.ZodObject<{
189
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
190
+ data: z.ZodString;
191
+ value: z.ZodString;
192
+ }, z.core.$loose>>;
193
+ }, z.core.$loose>;
194
+ reward: z.ZodObject<{
195
+ deadline: z.ZodNumber;
196
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
197
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
198
+ nativeAmount: z.ZodString;
199
+ tokens: z.ZodArray<z.ZodObject<{
200
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
201
+ amount: z.ZodString;
202
+ }, z.core.$loose>>;
203
+ }, z.core.$loose>;
204
+ }, z.core.$loose>;
205
+ }, z.core.$loose>;
206
+ export declare const StepSchema: z.ZodObject<{
207
+ type: z.ZodEnum<{
208
+ swap: "swap";
209
+ bridge: "bridge";
210
+ deposit: "deposit";
211
+ transfer: "transfer";
212
+ }>;
213
+ provider: z.ZodString;
214
+ aggregator: z.ZodOptional<z.ZodString>;
215
+ from: z.ZodObject<{
216
+ chainId: z.ZodNumber;
217
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
218
+ amount: z.ZodString;
219
+ }, z.core.$loose>;
220
+ to: z.ZodObject<{
221
+ chainId: z.ZodNumber;
222
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
223
+ amount: z.ZodString;
224
+ }, z.core.$loose>;
225
+ fees: z.ZodArray<z.ZodObject<{
226
+ type: z.ZodEnum<{
227
+ gas: "gas";
228
+ proving: "proving";
229
+ protocol: "protocol";
230
+ gateway: "gateway";
231
+ }>;
232
+ amount: z.ZodString;
233
+ token: z.ZodObject<{
234
+ chainId: z.ZodNumber;
235
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
236
+ symbol: z.ZodNullable<z.ZodString>;
237
+ decimals: z.ZodNullable<z.ZodNumber>;
238
+ }, z.core.$loose>;
239
+ estimate: z.ZodBoolean;
240
+ }, z.core.$loose>>;
241
+ estimatedDurationSec: z.ZodNumber;
242
+ intents: z.ZodArray<z.ZodObject<{
243
+ role: z.ZodEnum<{
244
+ local: "local";
245
+ "bucket-candidate": "bucket-candidate";
246
+ "stitched-destination": "stitched-destination";
247
+ }>;
248
+ intentHash: z.ZodString;
249
+ routeHash: z.ZodOptional<z.ZodString>;
250
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
251
+ intent: z.ZodObject<{
252
+ route: z.ZodObject<{
253
+ salt: z.ZodString;
254
+ deadline: z.ZodNumber;
255
+ source: z.ZodNumber;
256
+ destination: z.ZodNumber;
257
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
258
+ nativeAmount: z.ZodString;
259
+ tokens: z.ZodArray<z.ZodObject<{
260
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
261
+ amount: z.ZodString;
262
+ }, z.core.$loose>>;
263
+ calls: z.ZodArray<z.ZodObject<{
264
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
265
+ data: z.ZodString;
266
+ value: z.ZodString;
267
+ }, z.core.$loose>>;
268
+ }, z.core.$loose>;
269
+ reward: z.ZodObject<{
270
+ deadline: z.ZodNumber;
271
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
272
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
273
+ nativeAmount: z.ZodString;
274
+ tokens: z.ZodArray<z.ZodObject<{
275
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
276
+ amount: z.ZodString;
277
+ }, z.core.$loose>>;
278
+ }, z.core.$loose>;
279
+ }, z.core.$loose>;
280
+ }, z.core.$loose>>;
281
+ }, z.core.$loose>;
218
282
  export declare const ExecutionSchema: z.ZodObject<{
219
283
  transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
220
- kind: z.ZodLiteral<"evm">;
284
+ type: z.ZodLiteral<"evm">;
221
285
  chainId: z.ZodNumber;
222
286
  to: z.ZodString;
223
287
  data: z.ZodString;
224
288
  value: z.ZodString;
225
289
  }, z.core.$loose>, z.ZodObject<{
226
- kind: z.ZodLiteral<"svm">;
290
+ type: z.ZodLiteral<"svm">;
227
291
  chainId: z.ZodNumber;
228
292
  feePayer: z.ZodString;
229
293
  instructions: z.ZodArray<z.ZodObject<{
@@ -235,7 +299,7 @@ export declare const ExecutionSchema: z.ZodObject<{
235
299
  }, z.core.$loose>>;
236
300
  data: z.ZodString;
237
301
  }, z.core.$loose>>;
238
- }, z.core.$loose>], "kind">;
302
+ }, z.core.$loose>], "type">;
239
303
  intent: z.ZodObject<{
240
304
  route: z.ZodObject<{
241
305
  salt: z.ZodString;
@@ -248,11 +312,11 @@ export declare const ExecutionSchema: z.ZodObject<{
248
312
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
249
313
  amount: z.ZodString;
250
314
  }, z.core.$loose>>;
251
- calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
315
+ calls: z.ZodArray<z.ZodObject<{
252
316
  target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
253
317
  data: z.ZodString;
254
318
  value: z.ZodString;
255
- }, z.core.$loose>>>;
319
+ }, z.core.$loose>>;
256
320
  }, z.core.$loose>;
257
321
  reward: z.ZodObject<{
258
322
  deadline: z.ZodNumber;
@@ -265,36 +329,27 @@ export declare const ExecutionSchema: z.ZodObject<{
265
329
  }, z.core.$loose>>;
266
330
  }, z.core.$loose>;
267
331
  }, z.core.$loose>;
268
- encodedRoute: z.ZodNullable<z.ZodString>;
269
- encodedReward: z.ZodNullable<z.ZodString>;
270
332
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
271
333
  }, z.core.$loose>;
272
334
  export declare const QuoteCoreSchema: z.ZodObject<{
273
335
  id: z.ZodString;
274
- swapType: z.ZodEnum<{
336
+ type: z.ZodEnum<{
275
337
  custom: "custom";
276
338
  "exact-in": "exact-in";
277
339
  "exact-out": "exact-out";
278
340
  }>;
279
- visibility: z.ZodEnum<{
280
- public: "public";
281
- private: "private";
282
- }>;
283
- guarantee: z.ZodEnum<{
284
- "atomic-or-refund": "atomic-or-refund";
285
- "calls-execute-or-refund": "calls-execute-or-refund";
286
- }>;
287
341
  source: z.ZodObject<{
288
342
  chainId: z.ZodNumber;
289
343
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
290
344
  amount: z.ZodString;
345
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
291
346
  symbol: z.ZodNullable<z.ZodString>;
292
347
  decimals: z.ZodNullable<z.ZodNumber>;
293
348
  }, z.core.$loose>;
294
349
  destination: z.ZodObject<{
295
350
  chainId: z.ZodNumber;
296
351
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
297
- amount: z.ZodString;
352
+ amountOut: z.ZodString;
298
353
  minAmountOut: z.ZodString;
299
354
  recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
300
355
  symbol: z.ZodNullable<z.ZodString>;
@@ -302,7 +357,7 @@ export declare const QuoteCoreSchema: z.ZodObject<{
302
357
  }, z.core.$loose>;
303
358
  slippage: z.ZodNumber;
304
359
  fees: z.ZodArray<z.ZodObject<{
305
- kind: z.ZodEnum<{
360
+ type: z.ZodEnum<{
306
361
  gas: "gas";
307
362
  proving: "proving";
308
363
  protocol: "protocol";
@@ -318,13 +373,13 @@ export declare const QuoteCoreSchema: z.ZodObject<{
318
373
  estimate: z.ZodBoolean;
319
374
  }, z.core.$loose>>;
320
375
  steps: z.ZodArray<z.ZodObject<{
321
- kind: z.ZodEnum<{
376
+ type: z.ZodEnum<{
322
377
  swap: "swap";
323
378
  bridge: "bridge";
324
379
  deposit: "deposit";
325
380
  transfer: "transfer";
326
381
  }>;
327
- tool: z.ZodString;
382
+ provider: z.ZodString;
328
383
  aggregator: z.ZodOptional<z.ZodString>;
329
384
  from: z.ZodObject<{
330
385
  chainId: z.ZodNumber;
@@ -337,7 +392,7 @@ export declare const QuoteCoreSchema: z.ZodObject<{
337
392
  amount: z.ZodString;
338
393
  }, z.core.$loose>;
339
394
  fees: z.ZodArray<z.ZodObject<{
340
- kind: z.ZodEnum<{
395
+ type: z.ZodEnum<{
341
396
  gas: "gas";
342
397
  proving: "proving";
343
398
  protocol: "protocol";
@@ -353,16 +408,45 @@ export declare const QuoteCoreSchema: z.ZodObject<{
353
408
  estimate: z.ZodBoolean;
354
409
  }, z.core.$loose>>;
355
410
  estimatedDurationSec: z.ZodNumber;
356
- }, z.core.$loose>>;
357
- relatedIntents: z.ZodArray<z.ZodObject<{
358
- role: z.ZodEnum<{
359
- local: "local";
360
- "bucket-candidate": "bucket-candidate";
361
- "stitched-destination": "stitched-destination";
362
- }>;
363
- intentHash: z.ZodString;
364
- routeHash: z.ZodOptional<z.ZodString>;
365
- bucketIndex: z.ZodOptional<z.ZodNumber>;
411
+ intents: z.ZodArray<z.ZodObject<{
412
+ role: z.ZodEnum<{
413
+ local: "local";
414
+ "bucket-candidate": "bucket-candidate";
415
+ "stitched-destination": "stitched-destination";
416
+ }>;
417
+ intentHash: z.ZodString;
418
+ routeHash: z.ZodOptional<z.ZodString>;
419
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
420
+ intent: z.ZodObject<{
421
+ route: z.ZodObject<{
422
+ salt: z.ZodString;
423
+ deadline: z.ZodNumber;
424
+ source: z.ZodNumber;
425
+ destination: z.ZodNumber;
426
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
427
+ nativeAmount: z.ZodString;
428
+ tokens: z.ZodArray<z.ZodObject<{
429
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
430
+ amount: z.ZodString;
431
+ }, z.core.$loose>>;
432
+ calls: z.ZodArray<z.ZodObject<{
433
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
434
+ data: z.ZodString;
435
+ value: z.ZodString;
436
+ }, z.core.$loose>>;
437
+ }, z.core.$loose>;
438
+ reward: z.ZodObject<{
439
+ deadline: z.ZodNumber;
440
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
441
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
442
+ nativeAmount: z.ZodString;
443
+ tokens: z.ZodArray<z.ZodObject<{
444
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
445
+ amount: z.ZodString;
446
+ }, z.core.$loose>>;
447
+ }, z.core.$loose>;
448
+ }, z.core.$loose>;
449
+ }, z.core.$loose>>;
366
450
  }, z.core.$loose>>;
367
451
  solver: z.ZodObject<{
368
452
  id: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
@@ -371,13 +455,13 @@ export declare const QuoteCoreSchema: z.ZodObject<{
371
455
  intentHash: z.ZodNullable<z.ZodString>;
372
456
  execution: z.ZodNullable<z.ZodObject<{
373
457
  transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
374
- kind: z.ZodLiteral<"evm">;
458
+ type: z.ZodLiteral<"evm">;
375
459
  chainId: z.ZodNumber;
376
460
  to: z.ZodString;
377
461
  data: z.ZodString;
378
462
  value: z.ZodString;
379
463
  }, z.core.$loose>, z.ZodObject<{
380
- kind: z.ZodLiteral<"svm">;
464
+ type: z.ZodLiteral<"svm">;
381
465
  chainId: z.ZodNumber;
382
466
  feePayer: z.ZodString;
383
467
  instructions: z.ZodArray<z.ZodObject<{
@@ -389,7 +473,7 @@ export declare const QuoteCoreSchema: z.ZodObject<{
389
473
  }, z.core.$loose>>;
390
474
  data: z.ZodString;
391
475
  }, z.core.$loose>>;
392
- }, z.core.$loose>], "kind">;
476
+ }, z.core.$loose>], "type">;
393
477
  intent: z.ZodObject<{
394
478
  route: z.ZodObject<{
395
479
  salt: z.ZodString;
@@ -402,11 +486,11 @@ export declare const QuoteCoreSchema: z.ZodObject<{
402
486
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
403
487
  amount: z.ZodString;
404
488
  }, z.core.$loose>>;
405
- calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
489
+ calls: z.ZodArray<z.ZodObject<{
406
490
  target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
407
491
  data: z.ZodString;
408
492
  value: z.ZodString;
409
- }, z.core.$loose>>>;
493
+ }, z.core.$loose>>;
410
494
  }, z.core.$loose>;
411
495
  reward: z.ZodObject<{
412
496
  deadline: z.ZodNumber;
@@ -419,39 +503,38 @@ export declare const QuoteCoreSchema: z.ZodObject<{
419
503
  }, z.core.$loose>>;
420
504
  }, z.core.$loose>;
421
505
  }, z.core.$loose>;
422
- encodedRoute: z.ZodNullable<z.ZodString>;
423
- encodedReward: z.ZodNullable<z.ZodString>;
424
506
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
425
507
  }, z.core.$loose>>;
426
508
  expiresAt: z.ZodNumber;
427
509
  signature: z.ZodString;
428
510
  }, z.core.$loose>;
511
+ export declare function quoteIntentHashes(quote: {
512
+ intentHash: string | null;
513
+ steps: readonly {
514
+ intents: readonly {
515
+ intentHash: string;
516
+ }[];
517
+ }[];
518
+ }): string[];
429
519
  export declare const RankedQuoteEntrySchema: z.ZodObject<{
430
520
  id: z.ZodString;
431
- swapType: z.ZodEnum<{
521
+ type: z.ZodEnum<{
432
522
  custom: "custom";
433
523
  "exact-in": "exact-in";
434
524
  "exact-out": "exact-out";
435
525
  }>;
436
- visibility: z.ZodEnum<{
437
- public: "public";
438
- private: "private";
439
- }>;
440
- guarantee: z.ZodEnum<{
441
- "atomic-or-refund": "atomic-or-refund";
442
- "calls-execute-or-refund": "calls-execute-or-refund";
443
- }>;
444
526
  source: z.ZodObject<{
445
527
  chainId: z.ZodNumber;
446
528
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
447
529
  amount: z.ZodString;
530
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
448
531
  symbol: z.ZodNullable<z.ZodString>;
449
532
  decimals: z.ZodNullable<z.ZodNumber>;
450
533
  }, z.core.$loose>;
451
534
  destination: z.ZodObject<{
452
535
  chainId: z.ZodNumber;
453
536
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
454
- amount: z.ZodString;
537
+ amountOut: z.ZodString;
455
538
  minAmountOut: z.ZodString;
456
539
  recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
457
540
  symbol: z.ZodNullable<z.ZodString>;
@@ -459,7 +542,7 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
459
542
  }, z.core.$loose>;
460
543
  slippage: z.ZodNumber;
461
544
  fees: z.ZodArray<z.ZodObject<{
462
- kind: z.ZodEnum<{
545
+ type: z.ZodEnum<{
463
546
  gas: "gas";
464
547
  proving: "proving";
465
548
  protocol: "protocol";
@@ -475,13 +558,13 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
475
558
  estimate: z.ZodBoolean;
476
559
  }, z.core.$loose>>;
477
560
  steps: z.ZodArray<z.ZodObject<{
478
- kind: z.ZodEnum<{
561
+ type: z.ZodEnum<{
479
562
  swap: "swap";
480
563
  bridge: "bridge";
481
564
  deposit: "deposit";
482
565
  transfer: "transfer";
483
566
  }>;
484
- tool: z.ZodString;
567
+ provider: z.ZodString;
485
568
  aggregator: z.ZodOptional<z.ZodString>;
486
569
  from: z.ZodObject<{
487
570
  chainId: z.ZodNumber;
@@ -494,7 +577,7 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
494
577
  amount: z.ZodString;
495
578
  }, z.core.$loose>;
496
579
  fees: z.ZodArray<z.ZodObject<{
497
- kind: z.ZodEnum<{
580
+ type: z.ZodEnum<{
498
581
  gas: "gas";
499
582
  proving: "proving";
500
583
  protocol: "protocol";
@@ -510,16 +593,45 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
510
593
  estimate: z.ZodBoolean;
511
594
  }, z.core.$loose>>;
512
595
  estimatedDurationSec: z.ZodNumber;
513
- }, z.core.$loose>>;
514
- relatedIntents: z.ZodArray<z.ZodObject<{
515
- role: z.ZodEnum<{
516
- local: "local";
517
- "bucket-candidate": "bucket-candidate";
518
- "stitched-destination": "stitched-destination";
519
- }>;
520
- intentHash: z.ZodString;
521
- routeHash: z.ZodOptional<z.ZodString>;
522
- bucketIndex: z.ZodOptional<z.ZodNumber>;
596
+ intents: z.ZodArray<z.ZodObject<{
597
+ role: z.ZodEnum<{
598
+ local: "local";
599
+ "bucket-candidate": "bucket-candidate";
600
+ "stitched-destination": "stitched-destination";
601
+ }>;
602
+ intentHash: z.ZodString;
603
+ routeHash: z.ZodOptional<z.ZodString>;
604
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
605
+ intent: z.ZodObject<{
606
+ route: z.ZodObject<{
607
+ salt: z.ZodString;
608
+ deadline: z.ZodNumber;
609
+ source: z.ZodNumber;
610
+ destination: z.ZodNumber;
611
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
612
+ nativeAmount: z.ZodString;
613
+ tokens: z.ZodArray<z.ZodObject<{
614
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
615
+ amount: z.ZodString;
616
+ }, z.core.$loose>>;
617
+ calls: z.ZodArray<z.ZodObject<{
618
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
619
+ data: z.ZodString;
620
+ value: z.ZodString;
621
+ }, z.core.$loose>>;
622
+ }, z.core.$loose>;
623
+ reward: z.ZodObject<{
624
+ deadline: z.ZodNumber;
625
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
626
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
627
+ nativeAmount: z.ZodString;
628
+ tokens: z.ZodArray<z.ZodObject<{
629
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
630
+ amount: z.ZodString;
631
+ }, z.core.$loose>>;
632
+ }, z.core.$loose>;
633
+ }, z.core.$loose>;
634
+ }, z.core.$loose>>;
523
635
  }, z.core.$loose>>;
524
636
  solver: z.ZodObject<{
525
637
  id: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
@@ -528,13 +640,13 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
528
640
  intentHash: z.ZodNullable<z.ZodString>;
529
641
  execution: z.ZodNullable<z.ZodObject<{
530
642
  transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
531
- kind: z.ZodLiteral<"evm">;
643
+ type: z.ZodLiteral<"evm">;
532
644
  chainId: z.ZodNumber;
533
645
  to: z.ZodString;
534
646
  data: z.ZodString;
535
647
  value: z.ZodString;
536
648
  }, z.core.$loose>, z.ZodObject<{
537
- kind: z.ZodLiteral<"svm">;
649
+ type: z.ZodLiteral<"svm">;
538
650
  chainId: z.ZodNumber;
539
651
  feePayer: z.ZodString;
540
652
  instructions: z.ZodArray<z.ZodObject<{
@@ -546,7 +658,7 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
546
658
  }, z.core.$loose>>;
547
659
  data: z.ZodString;
548
660
  }, z.core.$loose>>;
549
- }, z.core.$loose>], "kind">;
661
+ }, z.core.$loose>], "type">;
550
662
  intent: z.ZodObject<{
551
663
  route: z.ZodObject<{
552
664
  salt: z.ZodString;
@@ -559,11 +671,11 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
559
671
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
560
672
  amount: z.ZodString;
561
673
  }, z.core.$loose>>;
562
- calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
674
+ calls: z.ZodArray<z.ZodObject<{
563
675
  target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
564
676
  data: z.ZodString;
565
677
  value: z.ZodString;
566
- }, z.core.$loose>>>;
678
+ }, z.core.$loose>>;
567
679
  }, z.core.$loose>;
568
680
  reward: z.ZodObject<{
569
681
  deadline: z.ZodNumber;
@@ -576,8 +688,6 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
576
688
  }, z.core.$loose>>;
577
689
  }, z.core.$loose>;
578
690
  }, z.core.$loose>;
579
- encodedRoute: z.ZodNullable<z.ZodString>;
580
- encodedReward: z.ZodNullable<z.ZodString>;
581
691
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
582
692
  }, z.core.$loose>>;
583
693
  expiresAt: z.ZodNumber;
@@ -586,30 +696,23 @@ export declare const RankedQuoteEntrySchema: z.ZodObject<{
586
696
  export type RankedQuoteEntry = z.input<typeof RankedQuoteEntrySchema>;
587
697
  export declare const QuoteResponseSchema: z.ZodObject<{
588
698
  id: z.ZodString;
589
- swapType: z.ZodEnum<{
699
+ type: z.ZodEnum<{
590
700
  custom: "custom";
591
701
  "exact-in": "exact-in";
592
702
  "exact-out": "exact-out";
593
703
  }>;
594
- visibility: z.ZodEnum<{
595
- public: "public";
596
- private: "private";
597
- }>;
598
- guarantee: z.ZodEnum<{
599
- "atomic-or-refund": "atomic-or-refund";
600
- "calls-execute-or-refund": "calls-execute-or-refund";
601
- }>;
602
704
  source: z.ZodObject<{
603
705
  chainId: z.ZodNumber;
604
706
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
605
707
  amount: z.ZodString;
708
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
606
709
  symbol: z.ZodNullable<z.ZodString>;
607
710
  decimals: z.ZodNullable<z.ZodNumber>;
608
711
  }, z.core.$loose>;
609
712
  destination: z.ZodObject<{
610
713
  chainId: z.ZodNumber;
611
714
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
612
- amount: z.ZodString;
715
+ amountOut: z.ZodString;
613
716
  minAmountOut: z.ZodString;
614
717
  recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
615
718
  symbol: z.ZodNullable<z.ZodString>;
@@ -617,7 +720,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
617
720
  }, z.core.$loose>;
618
721
  slippage: z.ZodNumber;
619
722
  fees: z.ZodArray<z.ZodObject<{
620
- kind: z.ZodEnum<{
723
+ type: z.ZodEnum<{
621
724
  gas: "gas";
622
725
  proving: "proving";
623
726
  protocol: "protocol";
@@ -633,13 +736,13 @@ export declare const QuoteResponseSchema: z.ZodObject<{
633
736
  estimate: z.ZodBoolean;
634
737
  }, z.core.$loose>>;
635
738
  steps: z.ZodArray<z.ZodObject<{
636
- kind: z.ZodEnum<{
739
+ type: z.ZodEnum<{
637
740
  swap: "swap";
638
741
  bridge: "bridge";
639
742
  deposit: "deposit";
640
743
  transfer: "transfer";
641
744
  }>;
642
- tool: z.ZodString;
745
+ provider: z.ZodString;
643
746
  aggregator: z.ZodOptional<z.ZodString>;
644
747
  from: z.ZodObject<{
645
748
  chainId: z.ZodNumber;
@@ -652,7 +755,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
652
755
  amount: z.ZodString;
653
756
  }, z.core.$loose>;
654
757
  fees: z.ZodArray<z.ZodObject<{
655
- kind: z.ZodEnum<{
758
+ type: z.ZodEnum<{
656
759
  gas: "gas";
657
760
  proving: "proving";
658
761
  protocol: "protocol";
@@ -668,16 +771,45 @@ export declare const QuoteResponseSchema: z.ZodObject<{
668
771
  estimate: z.ZodBoolean;
669
772
  }, z.core.$loose>>;
670
773
  estimatedDurationSec: z.ZodNumber;
671
- }, z.core.$loose>>;
672
- relatedIntents: z.ZodArray<z.ZodObject<{
673
- role: z.ZodEnum<{
674
- local: "local";
675
- "bucket-candidate": "bucket-candidate";
676
- "stitched-destination": "stitched-destination";
677
- }>;
678
- intentHash: z.ZodString;
679
- routeHash: z.ZodOptional<z.ZodString>;
680
- bucketIndex: z.ZodOptional<z.ZodNumber>;
774
+ intents: z.ZodArray<z.ZodObject<{
775
+ role: z.ZodEnum<{
776
+ local: "local";
777
+ "bucket-candidate": "bucket-candidate";
778
+ "stitched-destination": "stitched-destination";
779
+ }>;
780
+ intentHash: z.ZodString;
781
+ routeHash: z.ZodOptional<z.ZodString>;
782
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
783
+ intent: z.ZodObject<{
784
+ route: z.ZodObject<{
785
+ salt: z.ZodString;
786
+ deadline: z.ZodNumber;
787
+ source: z.ZodNumber;
788
+ destination: z.ZodNumber;
789
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
790
+ nativeAmount: z.ZodString;
791
+ tokens: z.ZodArray<z.ZodObject<{
792
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
793
+ amount: z.ZodString;
794
+ }, z.core.$loose>>;
795
+ calls: z.ZodArray<z.ZodObject<{
796
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
797
+ data: z.ZodString;
798
+ value: z.ZodString;
799
+ }, z.core.$loose>>;
800
+ }, z.core.$loose>;
801
+ reward: z.ZodObject<{
802
+ deadline: z.ZodNumber;
803
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
804
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
805
+ nativeAmount: z.ZodString;
806
+ tokens: z.ZodArray<z.ZodObject<{
807
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
808
+ amount: z.ZodString;
809
+ }, z.core.$loose>>;
810
+ }, z.core.$loose>;
811
+ }, z.core.$loose>;
812
+ }, z.core.$loose>>;
681
813
  }, z.core.$loose>>;
682
814
  solver: z.ZodObject<{
683
815
  id: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
@@ -686,13 +818,13 @@ export declare const QuoteResponseSchema: z.ZodObject<{
686
818
  intentHash: z.ZodNullable<z.ZodString>;
687
819
  execution: z.ZodNullable<z.ZodObject<{
688
820
  transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
689
- kind: z.ZodLiteral<"evm">;
821
+ type: z.ZodLiteral<"evm">;
690
822
  chainId: z.ZodNumber;
691
823
  to: z.ZodString;
692
824
  data: z.ZodString;
693
825
  value: z.ZodString;
694
826
  }, z.core.$loose>, z.ZodObject<{
695
- kind: z.ZodLiteral<"svm">;
827
+ type: z.ZodLiteral<"svm">;
696
828
  chainId: z.ZodNumber;
697
829
  feePayer: z.ZodString;
698
830
  instructions: z.ZodArray<z.ZodObject<{
@@ -704,7 +836,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
704
836
  }, z.core.$loose>>;
705
837
  data: z.ZodString;
706
838
  }, z.core.$loose>>;
707
- }, z.core.$loose>], "kind">;
839
+ }, z.core.$loose>], "type">;
708
840
  intent: z.ZodObject<{
709
841
  route: z.ZodObject<{
710
842
  salt: z.ZodString;
@@ -717,11 +849,11 @@ export declare const QuoteResponseSchema: z.ZodObject<{
717
849
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
718
850
  amount: z.ZodString;
719
851
  }, z.core.$loose>>;
720
- calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
852
+ calls: z.ZodArray<z.ZodObject<{
721
853
  target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
722
854
  data: z.ZodString;
723
855
  value: z.ZodString;
724
- }, z.core.$loose>>>;
856
+ }, z.core.$loose>>;
725
857
  }, z.core.$loose>;
726
858
  reward: z.ZodObject<{
727
859
  deadline: z.ZodNumber;
@@ -734,38 +866,29 @@ export declare const QuoteResponseSchema: z.ZodObject<{
734
866
  }, z.core.$loose>>;
735
867
  }, z.core.$loose>;
736
868
  }, z.core.$loose>;
737
- encodedRoute: z.ZodNullable<z.ZodString>;
738
- encodedReward: z.ZodNullable<z.ZodString>;
739
869
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
740
870
  }, z.core.$loose>>;
741
871
  expiresAt: z.ZodNumber;
742
872
  signature: z.ZodString;
743
873
  quotes: z.ZodNullable<z.ZodArray<z.ZodObject<{
744
874
  id: z.ZodString;
745
- swapType: z.ZodEnum<{
875
+ type: z.ZodEnum<{
746
876
  custom: "custom";
747
877
  "exact-in": "exact-in";
748
878
  "exact-out": "exact-out";
749
879
  }>;
750
- visibility: z.ZodEnum<{
751
- public: "public";
752
- private: "private";
753
- }>;
754
- guarantee: z.ZodEnum<{
755
- "atomic-or-refund": "atomic-or-refund";
756
- "calls-execute-or-refund": "calls-execute-or-refund";
757
- }>;
758
880
  source: z.ZodObject<{
759
881
  chainId: z.ZodNumber;
760
882
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
761
883
  amount: z.ZodString;
884
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
762
885
  symbol: z.ZodNullable<z.ZodString>;
763
886
  decimals: z.ZodNullable<z.ZodNumber>;
764
887
  }, z.core.$loose>;
765
888
  destination: z.ZodObject<{
766
889
  chainId: z.ZodNumber;
767
890
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
768
- amount: z.ZodString;
891
+ amountOut: z.ZodString;
769
892
  minAmountOut: z.ZodString;
770
893
  recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
771
894
  symbol: z.ZodNullable<z.ZodString>;
@@ -773,7 +896,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
773
896
  }, z.core.$loose>;
774
897
  slippage: z.ZodNumber;
775
898
  fees: z.ZodArray<z.ZodObject<{
776
- kind: z.ZodEnum<{
899
+ type: z.ZodEnum<{
777
900
  gas: "gas";
778
901
  proving: "proving";
779
902
  protocol: "protocol";
@@ -789,13 +912,13 @@ export declare const QuoteResponseSchema: z.ZodObject<{
789
912
  estimate: z.ZodBoolean;
790
913
  }, z.core.$loose>>;
791
914
  steps: z.ZodArray<z.ZodObject<{
792
- kind: z.ZodEnum<{
915
+ type: z.ZodEnum<{
793
916
  swap: "swap";
794
917
  bridge: "bridge";
795
918
  deposit: "deposit";
796
919
  transfer: "transfer";
797
920
  }>;
798
- tool: z.ZodString;
921
+ provider: z.ZodString;
799
922
  aggregator: z.ZodOptional<z.ZodString>;
800
923
  from: z.ZodObject<{
801
924
  chainId: z.ZodNumber;
@@ -808,7 +931,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
808
931
  amount: z.ZodString;
809
932
  }, z.core.$loose>;
810
933
  fees: z.ZodArray<z.ZodObject<{
811
- kind: z.ZodEnum<{
934
+ type: z.ZodEnum<{
812
935
  gas: "gas";
813
936
  proving: "proving";
814
937
  protocol: "protocol";
@@ -824,16 +947,45 @@ export declare const QuoteResponseSchema: z.ZodObject<{
824
947
  estimate: z.ZodBoolean;
825
948
  }, z.core.$loose>>;
826
949
  estimatedDurationSec: z.ZodNumber;
827
- }, z.core.$loose>>;
828
- relatedIntents: z.ZodArray<z.ZodObject<{
829
- role: z.ZodEnum<{
830
- local: "local";
831
- "bucket-candidate": "bucket-candidate";
832
- "stitched-destination": "stitched-destination";
833
- }>;
834
- intentHash: z.ZodString;
835
- routeHash: z.ZodOptional<z.ZodString>;
836
- bucketIndex: z.ZodOptional<z.ZodNumber>;
950
+ intents: z.ZodArray<z.ZodObject<{
951
+ role: z.ZodEnum<{
952
+ local: "local";
953
+ "bucket-candidate": "bucket-candidate";
954
+ "stitched-destination": "stitched-destination";
955
+ }>;
956
+ intentHash: z.ZodString;
957
+ routeHash: z.ZodOptional<z.ZodString>;
958
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
959
+ intent: z.ZodObject<{
960
+ route: z.ZodObject<{
961
+ salt: z.ZodString;
962
+ deadline: z.ZodNumber;
963
+ source: z.ZodNumber;
964
+ destination: z.ZodNumber;
965
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
966
+ nativeAmount: z.ZodString;
967
+ tokens: z.ZodArray<z.ZodObject<{
968
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
969
+ amount: z.ZodString;
970
+ }, z.core.$loose>>;
971
+ calls: z.ZodArray<z.ZodObject<{
972
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
973
+ data: z.ZodString;
974
+ value: z.ZodString;
975
+ }, z.core.$loose>>;
976
+ }, z.core.$loose>;
977
+ reward: z.ZodObject<{
978
+ deadline: z.ZodNumber;
979
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
980
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
981
+ nativeAmount: z.ZodString;
982
+ tokens: z.ZodArray<z.ZodObject<{
983
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
984
+ amount: z.ZodString;
985
+ }, z.core.$loose>>;
986
+ }, z.core.$loose>;
987
+ }, z.core.$loose>;
988
+ }, z.core.$loose>>;
837
989
  }, z.core.$loose>>;
838
990
  solver: z.ZodObject<{
839
991
  id: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
@@ -842,13 +994,13 @@ export declare const QuoteResponseSchema: z.ZodObject<{
842
994
  intentHash: z.ZodNullable<z.ZodString>;
843
995
  execution: z.ZodNullable<z.ZodObject<{
844
996
  transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
845
- kind: z.ZodLiteral<"evm">;
997
+ type: z.ZodLiteral<"evm">;
846
998
  chainId: z.ZodNumber;
847
999
  to: z.ZodString;
848
1000
  data: z.ZodString;
849
1001
  value: z.ZodString;
850
1002
  }, z.core.$loose>, z.ZodObject<{
851
- kind: z.ZodLiteral<"svm">;
1003
+ type: z.ZodLiteral<"svm">;
852
1004
  chainId: z.ZodNumber;
853
1005
  feePayer: z.ZodString;
854
1006
  instructions: z.ZodArray<z.ZodObject<{
@@ -860,7 +1012,7 @@ export declare const QuoteResponseSchema: z.ZodObject<{
860
1012
  }, z.core.$loose>>;
861
1013
  data: z.ZodString;
862
1014
  }, z.core.$loose>>;
863
- }, z.core.$loose>], "kind">;
1015
+ }, z.core.$loose>], "type">;
864
1016
  intent: z.ZodObject<{
865
1017
  route: z.ZodObject<{
866
1018
  salt: z.ZodString;
@@ -873,11 +1025,11 @@ export declare const QuoteResponseSchema: z.ZodObject<{
873
1025
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
874
1026
  amount: z.ZodString;
875
1027
  }, z.core.$loose>>;
876
- calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
1028
+ calls: z.ZodArray<z.ZodObject<{
877
1029
  target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
878
1030
  data: z.ZodString;
879
1031
  value: z.ZodString;
880
- }, z.core.$loose>>>;
1032
+ }, z.core.$loose>>;
881
1033
  }, z.core.$loose>;
882
1034
  reward: z.ZodObject<{
883
1035
  deadline: z.ZodNumber;
@@ -890,8 +1042,6 @@ export declare const QuoteResponseSchema: z.ZodObject<{
890
1042
  }, z.core.$loose>>;
891
1043
  }, z.core.$loose>;
892
1044
  }, z.core.$loose>;
893
- encodedRoute: z.ZodNullable<z.ZodString>;
894
- encodedReward: z.ZodNullable<z.ZodString>;
895
1045
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
896
1046
  }, z.core.$loose>>;
897
1047
  expiresAt: z.ZodNumber;