@eco-foundation/api-schemas 0.7.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 +104 -13
  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 +344 -194
  18. package/dist/v1/endpoints/quotes.js +51 -61
  19. package/dist/v1/endpoints/quotes.js.map +1 -1
  20. package/dist/v1/endpoints/registry.d.ts +115 -77
  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 +43 -43
  30. package/openapi/v1.json +1079 -675
  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
@@ -20,7 +20,7 @@ export declare const V1_ENDPOINTS: {
20
20
  readonly stability: "stable";
21
21
  readonly successStatus: 200;
22
22
  readonly request: z.ZodObject<{
23
- swapType: z.ZodEnum<{
23
+ type: z.ZodEnum<{
24
24
  custom: "custom";
25
25
  "exact-in": "exact-in";
26
26
  "exact-out": "exact-out";
@@ -29,12 +29,13 @@ export declare const V1_ENDPOINTS: {
29
29
  chainId: z.ZodNumber;
30
30
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
31
31
  amount: z.ZodOptional<z.ZodString>;
32
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
32
33
  }, z.core.$strict>;
33
34
  destination: z.ZodObject<{
34
35
  chainId: z.ZodNumber;
35
36
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
36
37
  amount: z.ZodOptional<z.ZodString>;
37
- recipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
38
+ recipient: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
38
39
  calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
40
  target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
40
41
  data: z.ZodString;
@@ -43,45 +44,33 @@ export declare const V1_ENDPOINTS: {
43
44
  gasLimit: z.ZodOptional<z.ZodString>;
44
45
  }, z.core.$strict>>>;
45
46
  }, z.core.$strict>;
46
- funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
47
47
  refundRecipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
48
48
  slippage: z.ZodOptional<z.ZodNumber>;
49
- dappId: z.ZodOptional<z.ZodString>;
49
+ dappId: z.ZodString;
50
50
  options: z.ZodOptional<z.ZodObject<{
51
51
  deadlineSec: z.ZodOptional<z.ZodNumber>;
52
- visibility: z.ZodOptional<z.ZodEnum<{
53
- public: "public";
54
- private: "private";
55
- }>>;
56
52
  allQuotes: z.ZodOptional<z.ZodBoolean>;
57
53
  }, z.core.$strict>>;
58
54
  }, z.core.$strict>;
59
55
  readonly response: z.ZodObject<{
60
56
  id: z.ZodString;
61
- swapType: z.ZodEnum<{
57
+ type: z.ZodEnum<{
62
58
  custom: "custom";
63
59
  "exact-in": "exact-in";
64
60
  "exact-out": "exact-out";
65
61
  }>;
66
- visibility: z.ZodEnum<{
67
- public: "public";
68
- private: "private";
69
- }>;
70
- guarantee: z.ZodEnum<{
71
- "atomic-or-refund": "atomic-or-refund";
72
- "calls-execute-or-refund": "calls-execute-or-refund";
73
- }>;
74
62
  source: z.ZodObject<{
75
63
  chainId: z.ZodNumber;
76
64
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
77
65
  amount: z.ZodString;
66
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
78
67
  symbol: z.ZodNullable<z.ZodString>;
79
68
  decimals: z.ZodNullable<z.ZodNumber>;
80
69
  }, z.core.$loose>;
81
70
  destination: z.ZodObject<{
82
71
  chainId: z.ZodNumber;
83
72
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
84
- amount: z.ZodString;
73
+ amountOut: z.ZodString;
85
74
  minAmountOut: z.ZodString;
86
75
  recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
87
76
  symbol: z.ZodNullable<z.ZodString>;
@@ -89,7 +78,7 @@ export declare const V1_ENDPOINTS: {
89
78
  }, z.core.$loose>;
90
79
  slippage: z.ZodNumber;
91
80
  fees: z.ZodArray<z.ZodObject<{
92
- kind: z.ZodEnum<{
81
+ type: z.ZodEnum<{
93
82
  gas: "gas";
94
83
  proving: "proving";
95
84
  protocol: "protocol";
@@ -105,13 +94,13 @@ export declare const V1_ENDPOINTS: {
105
94
  estimate: z.ZodBoolean;
106
95
  }, z.core.$loose>>;
107
96
  steps: z.ZodArray<z.ZodObject<{
108
- kind: z.ZodEnum<{
97
+ type: z.ZodEnum<{
109
98
  swap: "swap";
110
99
  bridge: "bridge";
111
100
  deposit: "deposit";
112
101
  transfer: "transfer";
113
102
  }>;
114
- tool: z.ZodString;
103
+ provider: z.ZodString;
115
104
  aggregator: z.ZodOptional<z.ZodString>;
116
105
  from: z.ZodObject<{
117
106
  chainId: z.ZodNumber;
@@ -124,7 +113,7 @@ export declare const V1_ENDPOINTS: {
124
113
  amount: z.ZodString;
125
114
  }, z.core.$loose>;
126
115
  fees: z.ZodArray<z.ZodObject<{
127
- kind: z.ZodEnum<{
116
+ type: z.ZodEnum<{
128
117
  gas: "gas";
129
118
  proving: "proving";
130
119
  protocol: "protocol";
@@ -140,16 +129,45 @@ export declare const V1_ENDPOINTS: {
140
129
  estimate: z.ZodBoolean;
141
130
  }, z.core.$loose>>;
142
131
  estimatedDurationSec: z.ZodNumber;
143
- }, z.core.$loose>>;
144
- relatedIntents: z.ZodArray<z.ZodObject<{
145
- role: z.ZodEnum<{
146
- local: "local";
147
- "bucket-candidate": "bucket-candidate";
148
- "stitched-destination": "stitched-destination";
149
- }>;
150
- intentHash: z.ZodString;
151
- routeHash: z.ZodOptional<z.ZodString>;
152
- bucketIndex: z.ZodOptional<z.ZodNumber>;
132
+ intents: z.ZodArray<z.ZodObject<{
133
+ role: z.ZodEnum<{
134
+ local: "local";
135
+ "bucket-candidate": "bucket-candidate";
136
+ "stitched-destination": "stitched-destination";
137
+ }>;
138
+ intentHash: z.ZodString;
139
+ routeHash: z.ZodOptional<z.ZodString>;
140
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
141
+ intent: z.ZodObject<{
142
+ route: z.ZodObject<{
143
+ salt: z.ZodString;
144
+ deadline: z.ZodNumber;
145
+ source: z.ZodNumber;
146
+ destination: z.ZodNumber;
147
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
148
+ nativeAmount: z.ZodString;
149
+ tokens: z.ZodArray<z.ZodObject<{
150
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
151
+ amount: z.ZodString;
152
+ }, z.core.$loose>>;
153
+ calls: z.ZodArray<z.ZodObject<{
154
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
155
+ data: z.ZodString;
156
+ value: z.ZodString;
157
+ }, z.core.$loose>>;
158
+ }, z.core.$loose>;
159
+ reward: z.ZodObject<{
160
+ deadline: z.ZodNumber;
161
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
162
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
163
+ nativeAmount: z.ZodString;
164
+ tokens: z.ZodArray<z.ZodObject<{
165
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
166
+ amount: z.ZodString;
167
+ }, z.core.$loose>>;
168
+ }, z.core.$loose>;
169
+ }, z.core.$loose>;
170
+ }, z.core.$loose>>;
153
171
  }, z.core.$loose>>;
154
172
  solver: z.ZodObject<{
155
173
  id: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
@@ -158,13 +176,13 @@ export declare const V1_ENDPOINTS: {
158
176
  intentHash: z.ZodNullable<z.ZodString>;
159
177
  execution: z.ZodNullable<z.ZodObject<{
160
178
  transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
161
- kind: z.ZodLiteral<"evm">;
179
+ type: z.ZodLiteral<"evm">;
162
180
  chainId: z.ZodNumber;
163
181
  to: z.ZodString;
164
182
  data: z.ZodString;
165
183
  value: z.ZodString;
166
184
  }, z.core.$loose>, z.ZodObject<{
167
- kind: z.ZodLiteral<"svm">;
185
+ type: z.ZodLiteral<"svm">;
168
186
  chainId: z.ZodNumber;
169
187
  feePayer: z.ZodString;
170
188
  instructions: z.ZodArray<z.ZodObject<{
@@ -176,7 +194,7 @@ export declare const V1_ENDPOINTS: {
176
194
  }, z.core.$loose>>;
177
195
  data: z.ZodString;
178
196
  }, z.core.$loose>>;
179
- }, z.core.$loose>], "kind">;
197
+ }, z.core.$loose>], "type">;
180
198
  intent: z.ZodObject<{
181
199
  route: z.ZodObject<{
182
200
  salt: z.ZodString;
@@ -189,11 +207,11 @@ export declare const V1_ENDPOINTS: {
189
207
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
190
208
  amount: z.ZodString;
191
209
  }, z.core.$loose>>;
192
- calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
210
+ calls: z.ZodArray<z.ZodObject<{
193
211
  target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
194
212
  data: z.ZodString;
195
213
  value: z.ZodString;
196
- }, z.core.$loose>>>;
214
+ }, z.core.$loose>>;
197
215
  }, z.core.$loose>;
198
216
  reward: z.ZodObject<{
199
217
  deadline: z.ZodNumber;
@@ -206,38 +224,29 @@ export declare const V1_ENDPOINTS: {
206
224
  }, z.core.$loose>>;
207
225
  }, z.core.$loose>;
208
226
  }, z.core.$loose>;
209
- encodedRoute: z.ZodNullable<z.ZodString>;
210
- encodedReward: z.ZodNullable<z.ZodString>;
211
227
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
212
228
  }, z.core.$loose>>;
213
229
  expiresAt: z.ZodNumber;
214
230
  signature: z.ZodString;
215
231
  quotes: z.ZodNullable<z.ZodArray<z.ZodObject<{
216
232
  id: z.ZodString;
217
- swapType: z.ZodEnum<{
233
+ type: z.ZodEnum<{
218
234
  custom: "custom";
219
235
  "exact-in": "exact-in";
220
236
  "exact-out": "exact-out";
221
237
  }>;
222
- visibility: z.ZodEnum<{
223
- public: "public";
224
- private: "private";
225
- }>;
226
- guarantee: z.ZodEnum<{
227
- "atomic-or-refund": "atomic-or-refund";
228
- "calls-execute-or-refund": "calls-execute-or-refund";
229
- }>;
230
238
  source: z.ZodObject<{
231
239
  chainId: z.ZodNumber;
232
240
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
233
241
  amount: z.ZodString;
242
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
234
243
  symbol: z.ZodNullable<z.ZodString>;
235
244
  decimals: z.ZodNullable<z.ZodNumber>;
236
245
  }, z.core.$loose>;
237
246
  destination: z.ZodObject<{
238
247
  chainId: z.ZodNumber;
239
248
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
240
- amount: z.ZodString;
249
+ amountOut: z.ZodString;
241
250
  minAmountOut: z.ZodString;
242
251
  recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
243
252
  symbol: z.ZodNullable<z.ZodString>;
@@ -245,7 +254,7 @@ export declare const V1_ENDPOINTS: {
245
254
  }, z.core.$loose>;
246
255
  slippage: z.ZodNumber;
247
256
  fees: z.ZodArray<z.ZodObject<{
248
- kind: z.ZodEnum<{
257
+ type: z.ZodEnum<{
249
258
  gas: "gas";
250
259
  proving: "proving";
251
260
  protocol: "protocol";
@@ -261,13 +270,13 @@ export declare const V1_ENDPOINTS: {
261
270
  estimate: z.ZodBoolean;
262
271
  }, z.core.$loose>>;
263
272
  steps: z.ZodArray<z.ZodObject<{
264
- kind: z.ZodEnum<{
273
+ type: z.ZodEnum<{
265
274
  swap: "swap";
266
275
  bridge: "bridge";
267
276
  deposit: "deposit";
268
277
  transfer: "transfer";
269
278
  }>;
270
- tool: z.ZodString;
279
+ provider: z.ZodString;
271
280
  aggregator: z.ZodOptional<z.ZodString>;
272
281
  from: z.ZodObject<{
273
282
  chainId: z.ZodNumber;
@@ -280,7 +289,7 @@ export declare const V1_ENDPOINTS: {
280
289
  amount: z.ZodString;
281
290
  }, z.core.$loose>;
282
291
  fees: z.ZodArray<z.ZodObject<{
283
- kind: z.ZodEnum<{
292
+ type: z.ZodEnum<{
284
293
  gas: "gas";
285
294
  proving: "proving";
286
295
  protocol: "protocol";
@@ -296,16 +305,45 @@ export declare const V1_ENDPOINTS: {
296
305
  estimate: z.ZodBoolean;
297
306
  }, z.core.$loose>>;
298
307
  estimatedDurationSec: z.ZodNumber;
299
- }, z.core.$loose>>;
300
- relatedIntents: z.ZodArray<z.ZodObject<{
301
- role: z.ZodEnum<{
302
- local: "local";
303
- "bucket-candidate": "bucket-candidate";
304
- "stitched-destination": "stitched-destination";
305
- }>;
306
- intentHash: z.ZodString;
307
- routeHash: z.ZodOptional<z.ZodString>;
308
- bucketIndex: z.ZodOptional<z.ZodNumber>;
308
+ intents: z.ZodArray<z.ZodObject<{
309
+ role: z.ZodEnum<{
310
+ local: "local";
311
+ "bucket-candidate": "bucket-candidate";
312
+ "stitched-destination": "stitched-destination";
313
+ }>;
314
+ intentHash: z.ZodString;
315
+ routeHash: z.ZodOptional<z.ZodString>;
316
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
317
+ intent: z.ZodObject<{
318
+ route: z.ZodObject<{
319
+ salt: z.ZodString;
320
+ deadline: z.ZodNumber;
321
+ source: z.ZodNumber;
322
+ destination: z.ZodNumber;
323
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
324
+ nativeAmount: z.ZodString;
325
+ tokens: z.ZodArray<z.ZodObject<{
326
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
327
+ amount: z.ZodString;
328
+ }, z.core.$loose>>;
329
+ calls: z.ZodArray<z.ZodObject<{
330
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
331
+ data: z.ZodString;
332
+ value: z.ZodString;
333
+ }, z.core.$loose>>;
334
+ }, z.core.$loose>;
335
+ reward: z.ZodObject<{
336
+ deadline: z.ZodNumber;
337
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
338
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
339
+ nativeAmount: z.ZodString;
340
+ tokens: z.ZodArray<z.ZodObject<{
341
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
342
+ amount: z.ZodString;
343
+ }, z.core.$loose>>;
344
+ }, z.core.$loose>;
345
+ }, z.core.$loose>;
346
+ }, z.core.$loose>>;
309
347
  }, z.core.$loose>>;
310
348
  solver: z.ZodObject<{
311
349
  id: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
@@ -314,13 +352,13 @@ export declare const V1_ENDPOINTS: {
314
352
  intentHash: z.ZodNullable<z.ZodString>;
315
353
  execution: z.ZodNullable<z.ZodObject<{
316
354
  transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
317
- kind: z.ZodLiteral<"evm">;
355
+ type: z.ZodLiteral<"evm">;
318
356
  chainId: z.ZodNumber;
319
357
  to: z.ZodString;
320
358
  data: z.ZodString;
321
359
  value: z.ZodString;
322
360
  }, z.core.$loose>, z.ZodObject<{
323
- kind: z.ZodLiteral<"svm">;
361
+ type: z.ZodLiteral<"svm">;
324
362
  chainId: z.ZodNumber;
325
363
  feePayer: z.ZodString;
326
364
  instructions: z.ZodArray<z.ZodObject<{
@@ -332,7 +370,7 @@ export declare const V1_ENDPOINTS: {
332
370
  }, z.core.$loose>>;
333
371
  data: z.ZodString;
334
372
  }, z.core.$loose>>;
335
- }, z.core.$loose>], "kind">;
373
+ }, z.core.$loose>], "type">;
336
374
  intent: z.ZodObject<{
337
375
  route: z.ZodObject<{
338
376
  salt: z.ZodString;
@@ -345,11 +383,11 @@ export declare const V1_ENDPOINTS: {
345
383
  token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
346
384
  amount: z.ZodString;
347
385
  }, z.core.$loose>>;
348
- calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
386
+ calls: z.ZodArray<z.ZodObject<{
349
387
  target: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>;
350
388
  data: z.ZodString;
351
389
  value: z.ZodString;
352
- }, z.core.$loose>>>;
390
+ }, z.core.$loose>>;
353
391
  }, z.core.$loose>;
354
392
  reward: z.ZodObject<{
355
393
  deadline: z.ZodNumber;
@@ -362,8 +400,6 @@ export declare const V1_ENDPOINTS: {
362
400
  }, z.core.$loose>>;
363
401
  }, z.core.$loose>;
364
402
  }, z.core.$loose>;
365
- encodedRoute: z.ZodNullable<z.ZodString>;
366
- encodedReward: z.ZodNullable<z.ZodString>;
367
403
  vault: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>>;
368
404
  }, z.core.$loose>>;
369
405
  expiresAt: z.ZodNumber;
@@ -436,6 +472,7 @@ export declare const V1_ENDPOINTS: {
436
472
  SWAP: "SWAP";
437
473
  BRIDGE: "BRIDGE";
438
474
  }>;
475
+ intentHash: z.ZodString;
439
476
  status: z.ZodString;
440
477
  from: z.ZodObject<{
441
478
  token: z.ZodString;
@@ -521,6 +558,7 @@ export declare const V1_ENDPOINTS: {
521
558
  SWAP: "SWAP";
522
559
  BRIDGE: "BRIDGE";
523
560
  }>;
561
+ intentHash: z.ZodString;
524
562
  status: z.ZodString;
525
563
  from: z.ZodObject<{
526
564
  token: z.ZodString;
@@ -671,26 +709,26 @@ export declare const V1_ENDPOINTS: {
671
709
  readonly request: z.ZodDiscriminatedUnion<[z.ZodObject<{
672
710
  chainId: z.ZodNumber;
673
711
  depositor: z.ZodString;
674
- kind: z.ZodLiteral<"solana">;
712
+ type: z.ZodLiteral<"solana">;
675
713
  destinationAddress: z.ZodString;
676
714
  }, z.core.$strict>, z.ZodObject<{
677
715
  chainId: z.ZodNumber;
678
716
  depositor: z.ZodString;
679
- kind: z.ZodLiteral<"gateway">;
717
+ type: z.ZodLiteral<"gateway">;
680
718
  destinationAddress: z.ZodString;
681
719
  }, z.core.$strict>, z.ZodObject<{
682
720
  chainId: z.ZodNumber;
683
721
  depositor: z.ZodString;
684
- kind: z.ZodLiteral<"gateway-erc20">;
722
+ type: z.ZodLiteral<"gateway-erc20">;
685
723
  destinationAddress: z.ZodString;
686
724
  destinationChainId: z.ZodNumber;
687
- }, z.core.$strict>], "kind">;
725
+ }, z.core.$strict>], "type">;
688
726
  readonly response: z.ZodObject<{
689
727
  id: z.ZodString;
690
728
  depositAddress: z.ZodString;
691
729
  chainId: z.ZodNumber;
692
730
  depositor: z.ZodString;
693
- kind: z.ZodEnum<{
731
+ type: z.ZodEnum<{
694
732
  gateway: "gateway";
695
733
  solana: "solana";
696
734
  "gateway-erc20": "gateway-erc20";
@@ -723,7 +761,7 @@ export declare const V1_ENDPOINTS: {
723
761
  depositor: z.ZodOptional<z.ZodString>;
724
762
  destinationAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString]>>;
725
763
  chainId: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
726
- kind: z.ZodOptional<z.ZodEnum<{
764
+ type: z.ZodOptional<z.ZodEnum<{
727
765
  gateway: "gateway";
728
766
  solana: "solana";
729
767
  "gateway-erc20": "gateway-erc20";
@@ -735,7 +773,7 @@ export declare const V1_ENDPOINTS: {
735
773
  depositAddress: z.ZodString;
736
774
  chainId: z.ZodNumber;
737
775
  depositor: z.ZodString;
738
- kind: z.ZodEnum<{
776
+ type: z.ZodEnum<{
739
777
  gateway: "gateway";
740
778
  solana: "solana";
741
779
  "gateway-erc20": "gateway-erc20";
@@ -12,7 +12,7 @@ const RouteLegSchema = zod_1.z.looseObject({
12
12
  exports.RouteEntrySchema = zod_1.z.looseObject({
13
13
  source: RouteLegSchema,
14
14
  destination: RouteLegSchema,
15
- swapTypes: zod_1.z.array(enums_1.SwapType),
15
+ swapTypes: zod_1.z.array(enums_1.QuoteType),
16
16
  });
17
17
  exports.RoutesResponseSchema = zod_1.z.looseObject({
18
18
  routes: zod_1.z.array(exports.RouteEntrySchema),
@@ -1 +1 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/v1/endpoints/routes.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,oCAAoC;AACpC,8CAAoD;AASvC,QAAA,gBAAgB,GAAG,OAAgB,CAAC;AAEjD,MAAM,cAAc,GAAG,OAAC,CAAC,WAAW,CAAC;IACnC,OAAO,EAAE,oBAAO;IAChB,KAAK,EAAE,uBAAU;CAClB,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,OAAC,CAAC,WAAW,CAAC;IAC5C,MAAM,EAAE,cAAc;IACtB,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,gBAAQ,CAAC;CAC7B,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,OAAC,CAAC,WAAW,CAAC;IAChD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;IAEjC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
1
+ {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/v1/endpoints/routes.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,oCAAqC;AACrC,8CAAoD;AASvC,QAAA,gBAAgB,GAAG,OAAgB,CAAC;AAEjD,MAAM,cAAc,GAAG,OAAC,CAAC,WAAW,CAAC;IACnC,OAAO,EAAE,oBAAO;IAChB,KAAK,EAAE,uBAAU;CAClB,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,OAAC,CAAC,WAAW,CAAC;IAC5C,MAAM,EAAE,cAAc;IACtB,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,iBAAS,CAAC;CAC9B,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,OAAC,CAAC,WAAW,CAAC;IAChD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;IAEjC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
@@ -31,6 +31,7 @@ export declare const StatusStepSchema: z.ZodObject<{
31
31
  SWAP: "SWAP";
32
32
  BRIDGE: "BRIDGE";
33
33
  }>;
34
+ intentHash: z.ZodString;
34
35
  status: z.ZodString;
35
36
  from: z.ZodObject<{
36
37
  token: z.ZodString;
@@ -90,6 +91,7 @@ export declare const StatusEntrySchema: z.ZodObject<{
90
91
  SWAP: "SWAP";
91
92
  BRIDGE: "BRIDGE";
92
93
  }>;
94
+ intentHash: z.ZodString;
93
95
  status: z.ZodString;
94
96
  from: z.ZodObject<{
95
97
  token: z.ZodString;
@@ -159,6 +161,7 @@ export declare function statusEntrySchemaFor(type: StatusType): z.ZodObject<{
159
161
  SWAP: "SWAP";
160
162
  BRIDGE: "BRIDGE";
161
163
  }>;
164
+ intentHash: z.ZodString;
162
165
  status: z.ZodString;
163
166
  from: z.ZodObject<{
164
167
  token: z.ZodString;
@@ -299,6 +302,7 @@ export declare const StatusListResponseSchema: z.ZodObject<{
299
302
  SWAP: "SWAP";
300
303
  BRIDGE: "BRIDGE";
301
304
  }>;
305
+ intentHash: z.ZodString;
302
306
  status: z.ZodString;
303
307
  from: z.ZodObject<{
304
308
  token: z.ZodString;
@@ -34,6 +34,7 @@ exports.STATUS_STEP_TYPES = ['SWAP', 'BRIDGE'];
34
34
  exports.StatusStepType = zod_1.z.enum(exports.STATUS_STEP_TYPES);
35
35
  exports.StatusStepSchema = zod_1.z.looseObject({
36
36
  type: exports.StatusStepType,
37
+ intentHash: primitives_1.Bytes32,
37
38
  status: zod_1.z.string().min(1),
38
39
  from: exports.StatusTokenAmountSchema,
39
40
  to: exports.StatusTokenAmountSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/v1/endpoints/status.ts"],"names":[],"mappings":";;;AA4JA,oDAQC;AAyFD,0DAWC;AAxQD,6BAAwB;AAExB,oCAAuE;AACvE,8CAWuB;AACvB,qCAAkD;AAErC,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAC3B,QAAA,yBAAyB,GAAG,EAAE,CAAC;AAG5C,MAAM,iBAAiB,GAA0C;IAC/D,MAAM,EAAE,qBAAQ;IAChB,KAAK,EAAE,oBAAO;IACd,OAAO,EAAE,sBAAS;IAClB,iBAAiB,EAAE,6BAAgB;CACpC,CAAC;AAOW,QAAA,iBAAiB,GAAG,OAAC,CAAC,WAAW,CAAC;IAC7C,OAAO,EAAE,oBAAO;IAChB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC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iCAAyB,CAAC;KACjC,WAAW,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAE/D,MAAM,8BAA8B,GAAG,CAAC,SAAS,EAAE,OAAO,CAAU,CAAC;AAgCxD,QAAA,kCAAkC,GAAG;IAChD,OAAO,EAAE,uBAAU,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,0BAAa,CAAC,QAAQ,EAAE;IAC/B,GAAG,oBAAY;CAChB,CAAC;AAEW,QAAA,+BAA+B,GAAG,OAAC;KAC7C,MAAM,CAAC,0CAAkC,CAAC;KAC1C,WAAW,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC,CAAC;AAO3D,QAAA,wBAAwB,GAAG,OAAC,CAAC,WAAW,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC,CAAC,GAAG,CAAC,6BAAqB,CAAC;IAC9D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC"}
@@ -1,38 +1,26 @@
1
1
  import { z } from 'zod';
2
- export declare const SWAP_TYPES: readonly ["exact-in", "exact-out", "custom"];
3
- export declare const SwapType: z.ZodEnum<{
2
+ export declare const QUOTE_TYPES: readonly ["exact-in", "exact-out", "custom"];
3
+ export declare const QuoteType: z.ZodEnum<{
4
4
  custom: "custom";
5
5
  "exact-in": "exact-in";
6
6
  "exact-out": "exact-out";
7
7
  }>;
8
- export declare const SwapTypeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
8
+ export declare const QuoteTypeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
9
9
  custom: "custom";
10
10
  "exact-in": "exact-in";
11
11
  "exact-out": "exact-out";
12
12
  }>, z.ZodPipe<z.ZodString, z.ZodTransform<{
13
13
  unknown: string;
14
14
  }, string>>]>;
15
- export type SwapType = z.infer<typeof SwapType>;
16
- export declare const GUARANTEES: readonly ["atomic-or-refund", "calls-execute-or-refund"];
17
- export declare const Guarantee: z.ZodEnum<{
18
- "atomic-or-refund": "atomic-or-refund";
19
- "calls-execute-or-refund": "calls-execute-or-refund";
20
- }>;
21
- export declare const GuaranteeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
22
- "atomic-or-refund": "atomic-or-refund";
23
- "calls-execute-or-refund": "calls-execute-or-refund";
24
- }>, z.ZodPipe<z.ZodString, z.ZodTransform<{
25
- unknown: string;
26
- }, string>>]>;
27
- export type Guarantee = z.infer<typeof Guarantee>;
28
- export declare const FEE_KINDS: readonly ["gas", "proving", "protocol", "gateway"];
29
- export declare const FeeKind: z.ZodEnum<{
15
+ export type QuoteType = z.infer<typeof QuoteType>;
16
+ export declare const FEE_TYPES: readonly ["gas", "proving", "protocol", "gateway"];
17
+ export declare const FeeType: z.ZodEnum<{
30
18
  gas: "gas";
31
19
  proving: "proving";
32
20
  protocol: "protocol";
33
21
  gateway: "gateway";
34
22
  }>;
35
- export declare const FeeKindTolerant: z.ZodUnion<readonly [z.ZodEnum<{
23
+ export declare const FeeTypeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
36
24
  gas: "gas";
37
25
  proving: "proving";
38
26
  protocol: "protocol";
@@ -40,13 +28,7 @@ export declare const FeeKindTolerant: z.ZodUnion<readonly [z.ZodEnum<{
40
28
  }>, z.ZodPipe<z.ZodString, z.ZodTransform<{
41
29
  unknown: string;
42
30
  }, string>>]>;
43
- export type FeeKind = z.infer<typeof FeeKind>;
44
- export declare const VISIBILITIES: readonly ["public", "private"];
45
- export declare const Visibility: z.ZodEnum<{
46
- public: "public";
47
- private: "private";
48
- }>;
49
- export type Visibility = z.infer<typeof Visibility>;
31
+ export type FeeType = z.infer<typeof FeeType>;
50
32
  export declare const CHAIN_TYPES: readonly ["evm", "svm", "tvm"];
51
33
  export declare const ChainType: z.ZodEnum<{
52
34
  evm: "evm";
@@ -80,14 +62,14 @@ export declare const RelatedIntentRoleTolerant: z.ZodUnion<readonly [z.ZodEnum<{
80
62
  unknown: string;
81
63
  }, string>>]>;
82
64
  export type RelatedIntentRole = z.infer<typeof RelatedIntentRole>;
83
- export declare const STEP_KINDS: readonly ["swap", "bridge", "deposit", "transfer"];
84
- export declare const StepKind: z.ZodEnum<{
65
+ export declare const STEP_TYPES: readonly ["swap", "bridge", "deposit", "transfer"];
66
+ export declare const StepType: z.ZodEnum<{
85
67
  swap: "swap";
86
68
  bridge: "bridge";
87
69
  deposit: "deposit";
88
70
  transfer: "transfer";
89
71
  }>;
90
- export declare const StepKindTolerant: z.ZodUnion<readonly [z.ZodEnum<{
72
+ export declare const StepTypeTolerant: z.ZodUnion<readonly [z.ZodEnum<{
91
73
  swap: "swap";
92
74
  bridge: "bridge";
93
75
  deposit: "deposit";
@@ -95,7 +77,7 @@ export declare const StepKindTolerant: z.ZodUnion<readonly [z.ZodEnum<{
95
77
  }>, z.ZodPipe<z.ZodString, z.ZodTransform<{
96
78
  unknown: string;
97
79
  }, string>>]>;
98
- export type StepKind = z.infer<typeof StepKind>;
80
+ export type StepType = z.infer<typeof StepType>;
99
81
  export declare const SUBMIT_STANDARDS: readonly ["permit3", "permit2", "erc-3009", "erc-2612"];
100
82
  export declare const SubmitStandard: z.ZodEnum<{
101
83
  permit3: "permit3";