@eco-foundation/api-schemas 0.1.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 (102) hide show
  1. package/README.md +160 -0
  2. package/dist/build-digest.d.ts +2 -0
  3. package/dist/build-digest.js +10 -0
  4. package/dist/build-digest.js.map +1 -0
  5. package/dist/fixtures/index.d.ts +14 -0
  6. package/dist/fixtures/index.js +71 -0
  7. package/dist/fixtures/index.js.map +1 -0
  8. package/dist/fixtures/v1/chains-list.response.default.json +37 -0
  9. package/dist/fixtures/v1/deposit-addresses-create.request.gateway-erc20.json +16 -0
  10. package/dist/fixtures/v1/deposit-addresses-create.response.gateway-erc20.json +20 -0
  11. package/dist/fixtures/v1/deposit-addresses-lookup.response.default.json +24 -0
  12. package/dist/fixtures/v1/deposit-addresses-submit-erc-2612.request.deposit-address-target.json +23 -0
  13. package/dist/fixtures/v1/deposit-addresses-submit-erc-3009.request.deposit-address-target.json +24 -0
  14. package/dist/fixtures/v1/intents-status.response.gasless-handoff.json +30 -0
  15. package/dist/fixtures/v1/intents-status.response.intent-filled.json +21 -0
  16. package/dist/fixtures/v1/intents-status.response.unknown.json +20 -0
  17. package/dist/fixtures/v1/intents-status.response.wallet-page.json +27 -0
  18. package/dist/fixtures/v1/intents-submit-erc-3009.response.job.json +25 -0
  19. package/dist/fixtures/v1/intents-submit-permit2.request.quote-target.json +25 -0
  20. package/dist/fixtures/v1/intents-submit-permit3.request.quote-target.json +27 -0
  21. package/dist/fixtures/v1/quotes-create.request.public-swap.json +25 -0
  22. package/dist/fixtures/v1/quotes-create.response.all-quotes.json +455 -0
  23. package/dist/fixtures/v1/quotes-create.response.private-swap.json +152 -0
  24. package/dist/fixtures/v1/quotes-create.response.public-swap.json +158 -0
  25. package/dist/fixtures/v1/routes-list.response.default.json +26 -0
  26. package/dist/fixtures/v1/tokens-list.response.default.json +24 -0
  27. package/dist/generated/build-digest.json +7 -0
  28. package/dist/index.d.ts +6 -0
  29. package/dist/index.js +47 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/openapi.d.ts +2 -0
  32. package/dist/openapi.js +81 -0
  33. package/dist/openapi.js.map +1 -0
  34. package/dist/scripts/generate-build-digest.d.ts +1 -0
  35. package/dist/scripts/generate-build-digest.js +25 -0
  36. package/dist/scripts/generate-build-digest.js.map +1 -0
  37. package/dist/scripts/generate-openapi.d.ts +1 -0
  38. package/dist/scripts/generate-openapi.js +21 -0
  39. package/dist/scripts/generate-openapi.js.map +1 -0
  40. package/dist/testing/index.d.ts +7 -0
  41. package/dist/testing/index.js +27 -0
  42. package/dist/testing/index.js.map +1 -0
  43. package/dist/v1/endpoints/chains.d.ts +52 -0
  44. package/dist/v1/endpoints/chains.js +23 -0
  45. package/dist/v1/endpoints/chains.js.map +1 -0
  46. package/dist/v1/endpoints/deposit-addresses.d.ts +100 -0
  47. package/dist/v1/endpoints/deposit-addresses.js +61 -0
  48. package/dist/v1/endpoints/deposit-addresses.js.map +1 -0
  49. package/dist/v1/endpoints/quotes.d.ts +861 -0
  50. package/dist/v1/endpoints/quotes.js +297 -0
  51. package/dist/v1/endpoints/quotes.js.map +1 -0
  52. package/dist/v1/endpoints/registry.d.ts +641 -0
  53. package/dist/v1/endpoints/registry.js +108 -0
  54. package/dist/v1/endpoints/registry.js.map +1 -0
  55. package/dist/v1/endpoints/routes.d.ts +35 -0
  56. package/dist/v1/endpoints/routes.js +21 -0
  57. package/dist/v1/endpoints/routes.js.map +1 -0
  58. package/dist/v1/endpoints/status.d.ts +149 -0
  59. package/dist/v1/endpoints/status.js +110 -0
  60. package/dist/v1/endpoints/status.js.map +1 -0
  61. package/dist/v1/endpoints/submit.d.ts +271 -0
  62. package/dist/v1/endpoints/submit.js +127 -0
  63. package/dist/v1/endpoints/submit.js.map +1 -0
  64. package/dist/v1/endpoints/tokens.d.ts +59 -0
  65. package/dist/v1/endpoints/tokens.js +22 -0
  66. package/dist/v1/endpoints/tokens.js.map +1 -0
  67. package/dist/v1/enums.d.ts +133 -0
  68. package/dist/v1/enums.js +62 -0
  69. package/dist/v1/enums.js.map +1 -0
  70. package/dist/v1/errors/catalog.d.ts +247 -0
  71. package/dist/v1/errors/catalog.js +124 -0
  72. package/dist/v1/errors/catalog.js.map +1 -0
  73. package/dist/v1/errors/lock.d.ts +10 -0
  74. package/dist/v1/errors/lock.js +45 -0
  75. package/dist/v1/errors/lock.js.map +1 -0
  76. package/dist/v1/errors/problem.d.ts +50 -0
  77. package/dist/v1/errors/problem.js +82 -0
  78. package/dist/v1/errors/problem.js.map +1 -0
  79. package/dist/v1/index.d.ts +14 -0
  80. package/dist/v1/index.js +32 -0
  81. package/dist/v1/index.js.map +1 -0
  82. package/dist/v1/primitives.d.ts +33 -0
  83. package/dist/v1/primitives.js +63 -0
  84. package/dist/v1/primitives.js.map +1 -0
  85. package/dist/v1/signature.d.ts +10 -0
  86. package/dist/v1/signature.js +72 -0
  87. package/dist/v1/signature.js.map +1 -0
  88. package/dist/v1/tolerant.d.ts +4 -0
  89. package/dist/v1/tolerant.js +11 -0
  90. package/dist/v1/tolerant.js.map +1 -0
  91. package/dist/v1/types.d.ts +277 -0
  92. package/dist/v1/types.js +3 -0
  93. package/dist/v1/types.js.map +1 -0
  94. package/errors/catalog.lock.json +232 -0
  95. package/fixtures/quote-signature/vector-1.json +9 -0
  96. package/fixtures/quote-signature/vector-2.json +13 -0
  97. package/fixtures/quote-signature/vector-3.json +9 -0
  98. package/fixtures/signature-hash/vectors.json +58 -0
  99. package/openapi/v1.json +5225 -0
  100. package/package.json +71 -0
  101. package/v1/types.d.ts +7 -0
  102. package/v1/types.js +5 -0
@@ -0,0 +1,641 @@
1
+ import { z } from 'zod';
2
+ export interface V1EndpointDefinition {
3
+ method: 'GET' | 'POST';
4
+ path: string;
5
+ summary: string;
6
+ tag: 'quotes' | 'intents' | 'status' | 'discovery' | 'deposit-addresses';
7
+ stability: 'stable' | 'draft';
8
+ successStatus: number;
9
+ request?: z.ZodType;
10
+ query?: Record<string, z.ZodType>;
11
+ pathParams?: Record<string, z.ZodType>;
12
+ response: z.ZodType;
13
+ }
14
+ export declare const V1_ENDPOINTS: {
15
+ readonly 'quotes.create': {
16
+ readonly method: "POST";
17
+ readonly path: "/v1/quotes";
18
+ readonly summary: "Request a quote.";
19
+ readonly tag: "quotes";
20
+ readonly stability: "stable";
21
+ readonly successStatus: 200;
22
+ readonly request: z.ZodObject<{
23
+ swapType: z.ZodEnum<{
24
+ custom: "custom";
25
+ "exact-in": "exact-in";
26
+ "exact-out": "exact-out";
27
+ }>;
28
+ source: z.ZodObject<{
29
+ chainId: z.ZodNumber;
30
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
31
+ amount: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>;
33
+ destination: z.ZodObject<{
34
+ chainId: z.ZodNumber;
35
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
36
+ amount: z.ZodOptional<z.ZodString>;
37
+ recipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
38
+ calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
40
+ data: z.ZodString;
41
+ value: z.ZodString;
42
+ tokenOut: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
43
+ gasLimit: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>>>;
45
+ }, z.core.$strip>;
46
+ funder: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
47
+ refundRecipient: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
48
+ slippage: z.ZodOptional<z.ZodNumber>;
49
+ dappId: z.ZodOptional<z.ZodString>;
50
+ options: z.ZodOptional<z.ZodObject<{
51
+ deadlineSec: z.ZodOptional<z.ZodNumber>;
52
+ visibility: z.ZodOptional<z.ZodEnum<{
53
+ public: "public";
54
+ private: "private";
55
+ }>>;
56
+ maxCallDataSize: z.ZodOptional<z.ZodNumber>;
57
+ allQuotes: z.ZodOptional<z.ZodBoolean>;
58
+ }, z.core.$strip>>;
59
+ }, z.core.$strip>;
60
+ readonly response: z.ZodObject<{
61
+ id: z.ZodString;
62
+ swapType: z.ZodEnum<{
63
+ custom: "custom";
64
+ "exact-in": "exact-in";
65
+ "exact-out": "exact-out";
66
+ }>;
67
+ visibility: z.ZodEnum<{
68
+ public: "public";
69
+ private: "private";
70
+ }>;
71
+ guarantee: z.ZodEnum<{
72
+ "atomic-or-refund": "atomic-or-refund";
73
+ "calls-execute-or-refund": "calls-execute-or-refund";
74
+ }>;
75
+ source: z.ZodObject<{
76
+ chainId: z.ZodNumber;
77
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
78
+ amount: z.ZodString;
79
+ symbol: z.ZodNullable<z.ZodString>;
80
+ decimals: z.ZodNullable<z.ZodNumber>;
81
+ }, z.core.$loose>;
82
+ destination: z.ZodObject<{
83
+ chainId: z.ZodNumber;
84
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
85
+ amount: z.ZodString;
86
+ minAmountOut: z.ZodString;
87
+ recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
88
+ symbol: z.ZodNullable<z.ZodString>;
89
+ decimals: z.ZodNullable<z.ZodNumber>;
90
+ }, z.core.$loose>;
91
+ slippage: z.ZodNumber;
92
+ fees: z.ZodArray<z.ZodObject<{
93
+ kind: z.ZodEnum<{
94
+ gas: "gas";
95
+ proving: "proving";
96
+ protocol: "protocol";
97
+ gateway: "gateway";
98
+ }>;
99
+ amount: z.ZodString;
100
+ token: z.ZodObject<{
101
+ chainId: z.ZodNumber;
102
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
103
+ symbol: z.ZodNullable<z.ZodString>;
104
+ decimals: z.ZodNullable<z.ZodNumber>;
105
+ }, z.core.$loose>;
106
+ estimate: z.ZodBoolean;
107
+ }, z.core.$loose>>;
108
+ steps: z.ZodArray<z.ZodObject<{
109
+ kind: z.ZodEnum<{
110
+ swap: "swap";
111
+ bridge: "bridge";
112
+ deposit: "deposit";
113
+ transfer: "transfer";
114
+ }>;
115
+ tool: z.ZodString;
116
+ aggregator: z.ZodOptional<z.ZodString>;
117
+ from: z.ZodObject<{
118
+ chainId: z.ZodNumber;
119
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
120
+ amount: z.ZodString;
121
+ }, z.core.$loose>;
122
+ to: z.ZodObject<{
123
+ chainId: z.ZodNumber;
124
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
125
+ amount: z.ZodString;
126
+ }, z.core.$loose>;
127
+ fees: z.ZodArray<z.ZodObject<{
128
+ kind: z.ZodEnum<{
129
+ gas: "gas";
130
+ proving: "proving";
131
+ protocol: "protocol";
132
+ gateway: "gateway";
133
+ }>;
134
+ amount: z.ZodString;
135
+ token: z.ZodObject<{
136
+ chainId: z.ZodNumber;
137
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
138
+ symbol: z.ZodNullable<z.ZodString>;
139
+ decimals: z.ZodNullable<z.ZodNumber>;
140
+ }, z.core.$loose>;
141
+ estimate: z.ZodBoolean;
142
+ }, z.core.$loose>>;
143
+ estimatedDurationSec: z.ZodNumber;
144
+ }, z.core.$loose>>;
145
+ relatedIntents: z.ZodArray<z.ZodObject<{
146
+ role: z.ZodEnum<{
147
+ local: "local";
148
+ "bucket-candidate": "bucket-candidate";
149
+ "stitched-destination": "stitched-destination";
150
+ }>;
151
+ intentHash: z.ZodString;
152
+ routeHash: z.ZodOptional<z.ZodString>;
153
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
154
+ }, z.core.$loose>>;
155
+ solver: z.ZodObject<{
156
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
157
+ name: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$loose>;
159
+ intentHash: z.ZodNullable<z.ZodString>;
160
+ execution: z.ZodNullable<z.ZodObject<{
161
+ transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
162
+ kind: z.ZodLiteral<"evm">;
163
+ chainId: z.ZodNumber;
164
+ to: z.ZodString;
165
+ data: z.ZodString;
166
+ value: z.ZodString;
167
+ }, z.core.$loose>, z.ZodObject<{
168
+ kind: z.ZodLiteral<"svm">;
169
+ chainId: z.ZodNumber;
170
+ serializedTransaction: z.ZodString;
171
+ }, z.core.$loose>], "kind">;
172
+ intent: z.ZodObject<{
173
+ route: z.ZodObject<{
174
+ salt: z.ZodString;
175
+ deadline: z.ZodNumber;
176
+ source: z.ZodNumber;
177
+ destination: z.ZodNumber;
178
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
179
+ nativeAmount: z.ZodString;
180
+ tokens: z.ZodArray<z.ZodObject<{
181
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
182
+ amount: z.ZodString;
183
+ }, z.core.$loose>>;
184
+ calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
185
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
186
+ data: z.ZodString;
187
+ value: z.ZodString;
188
+ }, z.core.$loose>>>;
189
+ }, z.core.$loose>;
190
+ reward: z.ZodObject<{
191
+ deadline: z.ZodNumber;
192
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
193
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
194
+ nativeAmount: z.ZodString;
195
+ tokens: z.ZodArray<z.ZodObject<{
196
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
197
+ amount: z.ZodString;
198
+ }, z.core.$loose>>;
199
+ }, z.core.$loose>;
200
+ }, z.core.$loose>;
201
+ encodedRoute: z.ZodNullable<z.ZodString>;
202
+ encodedReward: z.ZodNullable<z.ZodString>;
203
+ }, z.core.$loose>>;
204
+ expiresAt: z.ZodNumber;
205
+ signature: z.ZodString;
206
+ quotes: z.ZodNullable<z.ZodArray<z.ZodObject<{
207
+ id: z.ZodString;
208
+ swapType: z.ZodEnum<{
209
+ custom: "custom";
210
+ "exact-in": "exact-in";
211
+ "exact-out": "exact-out";
212
+ }>;
213
+ visibility: z.ZodEnum<{
214
+ public: "public";
215
+ private: "private";
216
+ }>;
217
+ guarantee: z.ZodEnum<{
218
+ "atomic-or-refund": "atomic-or-refund";
219
+ "calls-execute-or-refund": "calls-execute-or-refund";
220
+ }>;
221
+ source: z.ZodObject<{
222
+ chainId: z.ZodNumber;
223
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
224
+ amount: z.ZodString;
225
+ symbol: z.ZodNullable<z.ZodString>;
226
+ decimals: z.ZodNullable<z.ZodNumber>;
227
+ }, z.core.$loose>;
228
+ destination: z.ZodObject<{
229
+ chainId: z.ZodNumber;
230
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
231
+ amount: z.ZodString;
232
+ minAmountOut: z.ZodString;
233
+ recipient: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
234
+ symbol: z.ZodNullable<z.ZodString>;
235
+ decimals: z.ZodNullable<z.ZodNumber>;
236
+ }, z.core.$loose>;
237
+ slippage: z.ZodNumber;
238
+ fees: z.ZodArray<z.ZodObject<{
239
+ kind: z.ZodEnum<{
240
+ gas: "gas";
241
+ proving: "proving";
242
+ protocol: "protocol";
243
+ gateway: "gateway";
244
+ }>;
245
+ amount: z.ZodString;
246
+ token: z.ZodObject<{
247
+ chainId: z.ZodNumber;
248
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
249
+ symbol: z.ZodNullable<z.ZodString>;
250
+ decimals: z.ZodNullable<z.ZodNumber>;
251
+ }, z.core.$loose>;
252
+ estimate: z.ZodBoolean;
253
+ }, z.core.$loose>>;
254
+ steps: z.ZodArray<z.ZodObject<{
255
+ kind: z.ZodEnum<{
256
+ swap: "swap";
257
+ bridge: "bridge";
258
+ deposit: "deposit";
259
+ transfer: "transfer";
260
+ }>;
261
+ tool: z.ZodString;
262
+ aggregator: z.ZodOptional<z.ZodString>;
263
+ from: z.ZodObject<{
264
+ chainId: z.ZodNumber;
265
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
266
+ amount: z.ZodString;
267
+ }, z.core.$loose>;
268
+ to: z.ZodObject<{
269
+ chainId: z.ZodNumber;
270
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
271
+ amount: z.ZodString;
272
+ }, z.core.$loose>;
273
+ fees: z.ZodArray<z.ZodObject<{
274
+ kind: z.ZodEnum<{
275
+ gas: "gas";
276
+ proving: "proving";
277
+ protocol: "protocol";
278
+ gateway: "gateway";
279
+ }>;
280
+ amount: z.ZodString;
281
+ token: z.ZodObject<{
282
+ chainId: z.ZodNumber;
283
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
284
+ symbol: z.ZodNullable<z.ZodString>;
285
+ decimals: z.ZodNullable<z.ZodNumber>;
286
+ }, z.core.$loose>;
287
+ estimate: z.ZodBoolean;
288
+ }, z.core.$loose>>;
289
+ estimatedDurationSec: z.ZodNumber;
290
+ }, z.core.$loose>>;
291
+ relatedIntents: z.ZodArray<z.ZodObject<{
292
+ role: z.ZodEnum<{
293
+ local: "local";
294
+ "bucket-candidate": "bucket-candidate";
295
+ "stitched-destination": "stitched-destination";
296
+ }>;
297
+ intentHash: z.ZodString;
298
+ routeHash: z.ZodOptional<z.ZodString>;
299
+ bucketIndex: z.ZodOptional<z.ZodNumber>;
300
+ }, z.core.$loose>>;
301
+ solver: z.ZodObject<{
302
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
303
+ name: z.ZodOptional<z.ZodString>;
304
+ }, z.core.$loose>;
305
+ intentHash: z.ZodNullable<z.ZodString>;
306
+ execution: z.ZodNullable<z.ZodObject<{
307
+ transaction: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
+ kind: z.ZodLiteral<"evm">;
309
+ chainId: z.ZodNumber;
310
+ to: z.ZodString;
311
+ data: z.ZodString;
312
+ value: z.ZodString;
313
+ }, z.core.$loose>, z.ZodObject<{
314
+ kind: z.ZodLiteral<"svm">;
315
+ chainId: z.ZodNumber;
316
+ serializedTransaction: z.ZodString;
317
+ }, z.core.$loose>], "kind">;
318
+ intent: z.ZodObject<{
319
+ route: z.ZodObject<{
320
+ salt: z.ZodString;
321
+ deadline: z.ZodNumber;
322
+ source: z.ZodNumber;
323
+ destination: z.ZodNumber;
324
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
325
+ nativeAmount: z.ZodString;
326
+ tokens: z.ZodArray<z.ZodObject<{
327
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
328
+ amount: z.ZodString;
329
+ }, z.core.$loose>>;
330
+ calls: z.ZodNullable<z.ZodArray<z.ZodObject<{
331
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
332
+ data: z.ZodString;
333
+ value: z.ZodString;
334
+ }, z.core.$loose>>>;
335
+ }, z.core.$loose>;
336
+ reward: z.ZodObject<{
337
+ deadline: z.ZodNumber;
338
+ creator: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
339
+ prover: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
340
+ nativeAmount: z.ZodString;
341
+ tokens: z.ZodArray<z.ZodObject<{
342
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
343
+ amount: z.ZodString;
344
+ }, z.core.$loose>>;
345
+ }, z.core.$loose>;
346
+ }, z.core.$loose>;
347
+ encodedRoute: z.ZodNullable<z.ZodString>;
348
+ encodedReward: z.ZodNullable<z.ZodString>;
349
+ }, z.core.$loose>>;
350
+ expiresAt: z.ZodNumber;
351
+ signature: z.ZodString;
352
+ }, z.core.$loose>>>;
353
+ }, z.core.$loose>;
354
+ };
355
+ readonly 'intents.submit.permit3': V1EndpointDefinition;
356
+ readonly 'intents.submit.permit2': V1EndpointDefinition;
357
+ readonly 'intents.submit.erc-3009': V1EndpointDefinition;
358
+ readonly 'deposit-addresses.submit.erc-3009': V1EndpointDefinition;
359
+ readonly 'deposit-addresses.submit.erc-2612': V1EndpointDefinition;
360
+ readonly 'intents.status': {
361
+ readonly method: "GET";
362
+ readonly path: "/v1/intents/status";
363
+ readonly summary: "Track intents, quotes and solver gasless jobs. Always 200; an unknown exact id reports status \"unknown\".";
364
+ readonly tag: "status";
365
+ readonly stability: "stable";
366
+ readonly successStatus: 200;
367
+ readonly query: {
368
+ cursor: z.ZodOptional<z.ZodString>;
369
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
370
+ intentHash: z.ZodOptional<z.ZodString>;
371
+ sourceTxHash: z.ZodOptional<z.ZodString>;
372
+ destinationTxHash: z.ZodOptional<z.ZodString>;
373
+ quoteId: z.ZodOptional<z.ZodUUID>;
374
+ jobId: z.ZodOptional<z.ZodUUID>;
375
+ wallet: z.ZodOptional<z.ZodString>;
376
+ status: z.ZodOptional<z.ZodEnum<{
377
+ unknown: "unknown";
378
+ pending: "pending";
379
+ failed: "failed";
380
+ filled: "filled";
381
+ settled: "settled";
382
+ refunded: "refunded";
383
+ refundable: "refundable";
384
+ expired: "expired";
385
+ }>>;
386
+ };
387
+ readonly response: z.ZodObject<{
388
+ results: z.ZodArray<z.ZodObject<{
389
+ id: z.ZodString;
390
+ type: z.ZodEnum<{
391
+ quote: "quote";
392
+ intent: "intent";
393
+ gasless: "gasless";
394
+ "deposit-address": "deposit-address";
395
+ }>;
396
+ status: z.ZodString;
397
+ updatedAt: z.ZodNullable<z.ZodNumber>;
398
+ intentHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
399
+ txHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ subStatuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
401
+ chainId: z.ZodNumber;
402
+ quoteIds: z.ZodArray<z.ZodString>;
403
+ txHash: z.ZodNullable<z.ZodString>;
404
+ intentHashes: z.ZodArray<z.ZodString>;
405
+ state: z.ZodEnum<{
406
+ pending: "pending";
407
+ published: "published";
408
+ failed: "failed";
409
+ submitted: "submitted";
410
+ }>;
411
+ }, z.core.$loose>>>;
412
+ }, z.core.$loose>>;
413
+ nextCursor: z.ZodNullable<z.ZodString>;
414
+ }, z.core.$loose>;
415
+ };
416
+ readonly 'deposit-addresses.status': {
417
+ readonly method: "GET";
418
+ readonly path: "/v1/deposit-addresses/status";
419
+ readonly summary: "Track deposit addresses and DA gasless jobs. Always 200.";
420
+ readonly tag: "status";
421
+ readonly stability: "stable";
422
+ readonly successStatus: 200;
423
+ readonly query: {
424
+ cursor: z.ZodOptional<z.ZodString>;
425
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
426
+ address: z.ZodOptional<z.ZodString>;
427
+ jobId: z.ZodOptional<z.ZodString>;
428
+ };
429
+ readonly response: z.ZodObject<{
430
+ results: z.ZodArray<z.ZodObject<{
431
+ id: z.ZodString;
432
+ type: z.ZodEnum<{
433
+ quote: "quote";
434
+ intent: "intent";
435
+ gasless: "gasless";
436
+ "deposit-address": "deposit-address";
437
+ }>;
438
+ status: z.ZodString;
439
+ updatedAt: z.ZodNullable<z.ZodNumber>;
440
+ intentHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
441
+ txHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
442
+ subStatuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ chainId: z.ZodNumber;
444
+ quoteIds: z.ZodArray<z.ZodString>;
445
+ txHash: z.ZodNullable<z.ZodString>;
446
+ intentHashes: z.ZodArray<z.ZodString>;
447
+ state: z.ZodEnum<{
448
+ pending: "pending";
449
+ published: "published";
450
+ failed: "failed";
451
+ submitted: "submitted";
452
+ }>;
453
+ }, z.core.$loose>>>;
454
+ }, z.core.$loose>>;
455
+ nextCursor: z.ZodNullable<z.ZodString>;
456
+ }, z.core.$loose>;
457
+ };
458
+ readonly 'chains.list': {
459
+ readonly method: "GET";
460
+ readonly path: "/v1/chains";
461
+ readonly summary: "Supported chains, their deployed contracts (portal, executor) and quote-signing address.";
462
+ readonly tag: "discovery";
463
+ readonly stability: "stable";
464
+ readonly successStatus: 200;
465
+ readonly response: z.ZodObject<{
466
+ chains: z.ZodArray<z.ZodObject<{
467
+ chainId: z.ZodNumber;
468
+ name: z.ZodString;
469
+ quoteSigner: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
470
+ type: z.ZodEnum<{
471
+ evm: "evm";
472
+ svm: "svm";
473
+ tvm: "tvm";
474
+ }>;
475
+ encoding: z.ZodEnum<{
476
+ abi: "abi";
477
+ borsh: "borsh";
478
+ }>;
479
+ status: z.ZodEnum<{
480
+ live: "live";
481
+ paused: "paused";
482
+ }>;
483
+ contracts: z.ZodObject<{
484
+ portal: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
485
+ executor: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
486
+ }, z.core.$loose>;
487
+ }, z.core.$loose>>;
488
+ }, z.core.$loose>;
489
+ };
490
+ readonly 'tokens.list': {
491
+ readonly method: "GET";
492
+ readonly path: "/v1/tokens";
493
+ readonly summary: "Supported tokens with per-target gasless standards (F1).";
494
+ readonly tag: "discovery";
495
+ readonly stability: "stable";
496
+ readonly successStatus: 200;
497
+ readonly response: z.ZodObject<{
498
+ tokens: z.ZodArray<z.ZodObject<{
499
+ chainId: z.ZodNumber;
500
+ address: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
501
+ symbol: z.ZodNullable<z.ZodString>;
502
+ decimals: z.ZodNullable<z.ZodNumber>;
503
+ supports: z.ZodObject<{
504
+ quote: z.ZodArray<z.ZodEnum<{
505
+ permit3: "permit3";
506
+ permit2: "permit2";
507
+ "erc-3009": "erc-3009";
508
+ "erc-2612": "erc-2612";
509
+ }>>;
510
+ depositAddress: z.ZodArray<z.ZodEnum<{
511
+ permit3: "permit3";
512
+ permit2: "permit2";
513
+ "erc-3009": "erc-3009";
514
+ "erc-2612": "erc-2612";
515
+ }>>;
516
+ }, z.core.$loose>;
517
+ }, z.core.$loose>>;
518
+ nextCursor: z.ZodNullable<z.ZodString>;
519
+ }, z.core.$loose>;
520
+ };
521
+ readonly 'routes.list': {
522
+ readonly method: "GET";
523
+ readonly path: "/v1/routes";
524
+ readonly summary: "Enabled routes (DRAFT — final shape depends on the WS2 solver feed).";
525
+ readonly tag: "discovery";
526
+ readonly stability: "draft";
527
+ readonly successStatus: 200;
528
+ readonly response: z.ZodObject<{
529
+ routes: z.ZodArray<z.ZodObject<{
530
+ source: z.ZodObject<{
531
+ chainId: z.ZodNumber;
532
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
533
+ }, z.core.$loose>;
534
+ destination: z.ZodObject<{
535
+ chainId: z.ZodNumber;
536
+ token: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
537
+ }, z.core.$loose>;
538
+ swapTypes: z.ZodArray<z.ZodEnum<{
539
+ custom: "custom";
540
+ "exact-in": "exact-in";
541
+ "exact-out": "exact-out";
542
+ }>>;
543
+ }, z.core.$loose>>;
544
+ nextCursor: z.ZodNullable<z.ZodString>;
545
+ }, z.core.$loose>;
546
+ };
547
+ readonly 'deposit-addresses.create': {
548
+ readonly method: "POST";
549
+ readonly path: "/v1/deposit-addresses";
550
+ readonly summary: "Create (or idempotently retrieve) a deposit address.";
551
+ readonly tag: "deposit-addresses";
552
+ readonly stability: "stable";
553
+ readonly successStatus: 201;
554
+ readonly request: z.ZodDiscriminatedUnion<[z.ZodObject<{
555
+ chainId: z.ZodNumber;
556
+ depositor: z.ZodString;
557
+ kind: z.ZodLiteral<"solana">;
558
+ destinationAddress: z.ZodString;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ chainId: z.ZodNumber;
561
+ depositor: z.ZodString;
562
+ kind: z.ZodLiteral<"gateway">;
563
+ destinationAddress: z.ZodString;
564
+ }, z.core.$strip>, z.ZodObject<{
565
+ chainId: z.ZodNumber;
566
+ depositor: z.ZodString;
567
+ kind: z.ZodLiteral<"gateway-erc20">;
568
+ destinationAddress: z.ZodString;
569
+ destinationChainId: z.ZodNumber;
570
+ }, z.core.$strip>], "kind">;
571
+ readonly response: z.ZodObject<{
572
+ id: z.ZodString;
573
+ depositAddress: z.ZodString;
574
+ chainId: z.ZodNumber;
575
+ depositor: z.ZodString;
576
+ kind: z.ZodEnum<{
577
+ gateway: "gateway";
578
+ solana: "solana";
579
+ "gateway-erc20": "gateway-erc20";
580
+ }>;
581
+ destinationAddress: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
582
+ destinationChainId: z.ZodOptional<z.ZodNumber>;
583
+ expiresAt: z.ZodNullable<z.ZodNumber>;
584
+ createdAt: z.ZodNumber;
585
+ }, z.core.$loose>;
586
+ };
587
+ readonly 'deposit-addresses.lookup': {
588
+ readonly method: "GET";
589
+ readonly path: "/v1/deposit-addresses";
590
+ readonly summary: "Look up deposit addresses by filters; a miss is an empty results array.";
591
+ readonly tag: "deposit-addresses";
592
+ readonly stability: "stable";
593
+ readonly successStatus: 200;
594
+ readonly query: {
595
+ cursor: z.ZodOptional<z.ZodString>;
596
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
597
+ depositAddress: z.ZodOptional<z.ZodString>;
598
+ depositor: z.ZodOptional<z.ZodString>;
599
+ destinationAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>>;
600
+ chainId: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
601
+ kind: z.ZodOptional<z.ZodEnum<{
602
+ gateway: "gateway";
603
+ solana: "solana";
604
+ "gateway-erc20": "gateway-erc20";
605
+ }>>;
606
+ };
607
+ readonly response: z.ZodObject<{
608
+ results: z.ZodArray<z.ZodObject<{
609
+ id: z.ZodString;
610
+ depositAddress: z.ZodString;
611
+ chainId: z.ZodNumber;
612
+ depositor: z.ZodString;
613
+ kind: z.ZodEnum<{
614
+ gateway: "gateway";
615
+ solana: "solana";
616
+ "gateway-erc20": "gateway-erc20";
617
+ }>;
618
+ destinationAddress: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
619
+ destinationChainId: z.ZodOptional<z.ZodNumber>;
620
+ expiresAt: z.ZodNullable<z.ZodNumber>;
621
+ createdAt: z.ZodNumber;
622
+ }, z.core.$loose>>;
623
+ }, z.core.$loose>;
624
+ };
625
+ };
626
+ export type V1EndpointId = keyof typeof V1_ENDPOINTS;
627
+ export declare const V1_ERROR_RESPONSE_SCHEMA: z.ZodObject<{
628
+ type: z.ZodURL;
629
+ title: z.ZodString;
630
+ status: z.ZodNumber;
631
+ code: z.ZodString;
632
+ detail: z.ZodOptional<z.ZodString>;
633
+ instance: z.ZodOptional<z.ZodString>;
634
+ legacyCode: z.ZodOptional<z.ZodString>;
635
+ solverErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
636
+ solver: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodString]>]>;
637
+ solverName: z.ZodOptional<z.ZodString>;
638
+ code: z.ZodOptional<z.ZodString>;
639
+ message: z.ZodString;
640
+ }, z.core.$loose>>>;
641
+ }, z.core.$loose>;