@eco-foundation/api-schemas 0.15.0 → 0.16.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 (31) hide show
  1. package/README.md +11 -34
  2. package/dist/fixtures/index.js +12 -10
  3. package/dist/fixtures/index.js.map +1 -1
  4. package/dist/fixtures/v1/intents-status.response.gasless-handoff.json +30 -0
  5. package/dist/fixtures/v1/intents-status.response.intent-filled.json +21 -0
  6. package/dist/fixtures/v1/intents-status.response.quote-enriched.json +63 -0
  7. package/dist/fixtures/v1/intents-status.response.quote-filled-detail.json +60 -0
  8. package/dist/fixtures/v1/intents-status.response.unknown.json +20 -0
  9. package/dist/fixtures/v1/intents-status.response.wallet-page.json +27 -0
  10. package/dist/generated/build-digest.json +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/v1/endpoints/registry.d.ts +113 -123
  13. package/dist/v1/endpoints/registry.js +3 -4
  14. package/dist/v1/endpoints/registry.js.map +1 -1
  15. package/dist/v1/endpoints/status.d.ts +70 -2
  16. package/dist/v1/endpoints/status.js +11 -1
  17. package/dist/v1/endpoints/status.js.map +1 -1
  18. package/dist/v1/index.d.ts +0 -1
  19. package/dist/v1/index.js +0 -1
  20. package/dist/v1/index.js.map +1 -1
  21. package/dist/v1/types.d.ts +8 -87
  22. package/openapi/v1.json +477 -705
  23. package/package.json +2 -1
  24. package/dist/fixtures/v1/intents-status.response.completed-fulfilled.json +0 -117
  25. package/dist/fixtures/v1/intents-status.response.completed-refunded.json +0 -101
  26. package/dist/fixtures/v1/intents-status.response.empty.json +0 -13
  27. package/dist/fixtures/v1/intents-status.response.pending-fulfillment.json +0 -101
  28. package/dist/fixtures/v1/intents-status.response.unlinked-intent.json +0 -81
  29. package/dist/v1/endpoints/transfer-status.d.ts +0 -488
  30. package/dist/v1/endpoints/transfer-status.js +0 -197
  31. package/dist/v1/endpoints/transfer-status.js.map +0 -1
@@ -208,6 +208,9 @@ export type V1StatusStepType = 'SWAP' | 'BRIDGE';
208
208
  export type V1StatusTxRef = {
209
209
  chainId: number;
210
210
  txHash: string;
211
+ timestamp?: number;
212
+ token?: string;
213
+ amount?: string;
211
214
  [extension: string]: unknown;
212
215
  };
213
216
  export type V1StatusTokenAmount = {
@@ -221,6 +224,9 @@ export type V1StatusTxDetail = {
221
224
  txHash: string;
222
225
  token: string;
223
226
  amount: string;
227
+ timestamp?: number;
228
+ symbol?: string;
229
+ decimals?: number;
224
230
  [extension: string]: unknown;
225
231
  };
226
232
  export type V1StatusStep = {
@@ -248,95 +254,10 @@ export type V1StatusEntry = {
248
254
  sourceTx?: V1StatusTxDetail;
249
255
  destinationTx?: V1StatusTxDetail;
250
256
  steps?: V1StatusStep[];
257
+ createdAt?: number;
258
+ refundAddress?: string;
251
259
  [extension: string]: unknown;
252
260
  };
253
- export type V1TransferStatus = 'pending' | 'completed';
254
- export type V1TransferSubstatus = 'waiting_for_funding' | 'waiting_for_fulfillment' | 'waiting_for_refund' | 'fulfilled' | 'refunded';
255
- export type V1TransferTokenType = 'native' | 'token' | 'hypercore_perps' | 'hypercore_spot';
256
- export type V1TransferStepType = 'swap' | 'bridge' | 'transfer' | 'call' | 'refund';
257
- export type V1TransferTxType = 'funding' | 'burn' | 'mint' | 'execution' | 'refund';
258
- export type V1TransferToken = {
259
- type: V1TransferTokenType;
260
- address: string | null;
261
- symbol: string | null;
262
- decimals: number | null;
263
- [extension: string]: unknown;
264
- };
265
- export type V1TransferSource = {
266
- status: V1TransferStatus;
267
- chainId: number | null;
268
- txHash: string | null;
269
- timestamp: number | null;
270
- token: V1TransferToken | null;
271
- amount: string | null;
272
- sender: string | null;
273
- [extension: string]: unknown;
274
- };
275
- export type V1TransferDestination = {
276
- status: V1TransferStatus;
277
- chainId: number | null;
278
- txHash: string | null;
279
- timestamp: number | null;
280
- token: V1TransferToken | null;
281
- amount: string | null;
282
- recipient: string | null;
283
- [extension: string]: unknown;
284
- };
285
- export type V1TransferTransaction = {
286
- chainId: number;
287
- txHash: string;
288
- txLink: string | null;
289
- timestamp: number | null;
290
- type: V1TransferTxType;
291
- sender: string | null;
292
- recipient: string | null;
293
- token: V1TransferToken | null;
294
- amount: string | null;
295
- [extension: string]: unknown;
296
- };
297
- export type V1TransferRelatedIntent = {
298
- chainId: number;
299
- intentHash: string;
300
- status: V1TransferStatus;
301
- substatus: V1TransferSubstatus;
302
- [extension: string]: unknown;
303
- };
304
- export type V1TransferStep = {
305
- id: string;
306
- type: V1TransferStepType;
307
- provider: string | null;
308
- relatedIntents: V1TransferRelatedIntent[];
309
- status: V1TransferStatus;
310
- substatus: V1TransferSubstatus;
311
- transactions: V1TransferTransaction[];
312
- [extension: string]: unknown;
313
- };
314
- export type V1TransferStatusEntry = {
315
- id: string | null;
316
- status: V1TransferStatus;
317
- substatus: V1TransferSubstatus;
318
- createdAt: number | null;
319
- updatedAt: number | null;
320
- refundAddress: string | null;
321
- source: V1TransferSource;
322
- destination: V1TransferDestination;
323
- steps: V1TransferStep[];
324
- [extension: string]: unknown;
325
- };
326
- export type V1TransferStatusResponse = {
327
- results: V1TransferStatusEntry[];
328
- nextPage: number | null;
329
- [extension: string]: unknown;
330
- };
331
- export type V1TransferStatusQuery = {
332
- txHash?: string;
333
- intentHash?: string;
334
- quoteId?: string;
335
- jobId?: string;
336
- wallet?: string;
337
- page?: number;
338
- limit?: number;
339
- };
340
261
  export type V1Chain = {
341
262
  chainId: number;
342
263
  name: string;