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