tapimo 0.4.3 → 0.4.4

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 (77) hide show
  1. package/dist/App.d.ts +2491 -2861
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/admin/apps/verified-tokens.d.ts +57 -57
  4. package/dist/apps/data/App.d.ts +2354 -2724
  5. package/dist/apps/data/App.d.ts.map +1 -1
  6. package/dist/apps/data/FundingRouteProviders.d.ts +3 -110
  7. package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -1
  8. package/dist/apps/data/FundingRouteProviders.js +1 -302
  9. package/dist/apps/data/FundingRouteProviders.js.map +1 -1
  10. package/dist/apps/data/routes/exchanges.d.ts +455 -455
  11. package/dist/apps/data/routes/fee-amm.d.ts +92 -92
  12. package/dist/apps/data/routes/funding.d.ts +138 -730
  13. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  14. package/dist/apps/data/routes/funding.js +7 -241
  15. package/dist/apps/data/routes/funding.js.map +1 -1
  16. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  17. package/dist/apps/data/routes/transactions.d.ts +281 -281
  18. package/dist/apps/data/routes/transfers.d.ts +58 -58
  19. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  20. package/dist/apps/management/App.d.ts +855 -855
  21. package/dist/apps/management/routes/api-keys.d.ts +40 -40
  22. package/dist/apps/management/routes/billing.d.ts +207 -207
  23. package/dist/apps/management/routes/me.d.ts +6 -6
  24. package/dist/apps/management/routes/members.d.ts +30 -30
  25. package/dist/apps/management/routes/orgs.d.ts +92 -92
  26. package/dist/apps/management/routes/projects.d.ts +28 -28
  27. package/dist/apps/management/routes/usage.d.ts +24 -24
  28. package/dist/apps/mcp.d.ts.map +1 -1
  29. package/dist/apps/mcp.js +3 -1
  30. package/dist/apps/mcp.js.map +1 -1
  31. package/dist/cloudflare.d.ts +2 -0
  32. package/dist/cloudflare.d.ts.map +1 -1
  33. package/dist/cloudflare.js +4 -0
  34. package/dist/cloudflare.js.map +1 -1
  35. package/dist/internal/Auth.d.ts +33 -22
  36. package/dist/internal/Auth.d.ts.map +1 -1
  37. package/dist/internal/Auth.js +40 -11
  38. package/dist/internal/Auth.js.map +1 -1
  39. package/dist/internal/Errors.d.ts +6 -0
  40. package/dist/internal/Errors.d.ts.map +1 -0
  41. package/dist/internal/Errors.js +16 -0
  42. package/dist/internal/Errors.js.map +1 -0
  43. package/dist/internal/FundingRoutes.d.ts +15 -213
  44. package/dist/internal/FundingRoutes.d.ts.map +1 -1
  45. package/dist/internal/FundingRoutes.js +1 -72
  46. package/dist/internal/FundingRoutes.js.map +1 -1
  47. package/dist/internal/Store.d.ts +61 -16
  48. package/dist/internal/Store.d.ts.map +1 -1
  49. package/dist/internal/Store.js +72 -17
  50. package/dist/internal/Store.js.map +1 -1
  51. package/dist/internal/Viem.d.ts +1 -1
  52. package/dist/internal/index.d.ts +27 -0
  53. package/dist/internal/index.d.ts.map +1 -0
  54. package/dist/internal/index.js +27 -0
  55. package/dist/internal/index.js.map +1 -0
  56. package/package.json +8 -3
  57. package/src/App.test.ts +60 -4
  58. package/src/Client.test-d.ts +0 -47
  59. package/src/apps/data/FundingRouteProviders.test.ts +37 -297
  60. package/src/apps/data/FundingRouteProviders.ts +3 -435
  61. package/src/apps/data/routes/funding.test.ts +7 -109
  62. package/src/apps/data/routes/funding.ts +8 -323
  63. package/src/apps/data/routes/indexer.test.ts +2 -2
  64. package/src/apps/data/routes/webhooks.test.ts +2 -2
  65. package/src/apps/mcp.test.ts +55 -14
  66. package/src/apps/mcp.ts +3 -1
  67. package/src/cloudflare.ts +5 -0
  68. package/src/internal/Auth.test.ts +397 -16
  69. package/src/internal/Auth.ts +76 -32
  70. package/src/internal/FundingRoutes.test.ts +8 -34
  71. package/src/internal/FundingRoutes.ts +1 -174
  72. package/src/internal/Log.test.ts +4 -4
  73. package/src/internal/Store.test-d.ts +15 -0
  74. package/src/internal/Store.test.ts +153 -2
  75. package/src/internal/Store.ts +157 -41
  76. package/src/internal/index.test.ts +34 -0
  77. package/src/internal/index.ts +26 -0
@@ -184,46 +184,9 @@ export declare namespace schema {
184
184
  export declare function transfers(): import("hono/hono-base").HonoBase<App.Environment, {
185
185
  "/v1/transfers": {
186
186
  $get: {
187
- output: {
188
- data: {
189
- attribution?: string | undefined;
190
- blockNumber: number;
191
- destinationToken?: {
192
- address: `0x${string}`;
193
- amount: string;
194
- currency?: string | undefined;
195
- decimals?: number | undefined;
196
- logoUri?: string | undefined;
197
- name?: string | undefined;
198
- symbol?: string | undefined;
199
- verified?: boolean | undefined;
200
- } | undefined;
201
- id: string;
202
- logIndex: number;
203
- memo?: string | undefined;
204
- recipient: `0x${string}`;
205
- sender: `0x${string}`;
206
- sourceToken: {
207
- address: `0x${string}`;
208
- amount: string;
209
- currency?: string | undefined;
210
- decimals?: number | undefined;
211
- logoUri?: string | undefined;
212
- name?: string | undefined;
213
- symbol?: string | undefined;
214
- verified?: boolean | undefined;
215
- };
216
- timestamp: string;
217
- transactionHash: `0x${string}`;
218
- }[];
219
- meta?: {
220
- totalCountCapped: boolean;
221
- totalCount: number;
222
- } | undefined;
223
- nextCursor: string | null;
224
- };
225
- outputFormat: "json";
226
- status: 200;
187
+ output: null;
188
+ outputFormat: "body";
189
+ status: 402;
227
190
  input: {
228
191
  query?: {
229
192
  recipient?: string | string[];
@@ -274,14 +237,14 @@ export declare function transfers(): import("hono/hono-base").HonoBase<App.Envir
274
237
  } | {
275
238
  output: {
276
239
  error: {
277
- code: "query_invalid";
240
+ code: "api_key_invalid" | "api_key_missing";
278
241
  details?: readonly Response.error.Detail[] | undefined;
279
242
  message: string;
280
243
  };
281
244
  requestId: string;
282
245
  };
283
246
  outputFormat: "json";
284
- status: 400;
247
+ status: 401;
285
248
  input: {
286
249
  query?: {
287
250
  recipient?: string | string[];
@@ -303,14 +266,14 @@ export declare function transfers(): import("hono/hono-base").HonoBase<App.Envir
303
266
  } | {
304
267
  output: {
305
268
  error: {
306
- code: "api_key_invalid" | "api_key_missing";
269
+ code: "api_key_forbidden";
307
270
  details?: readonly Response.error.Detail[] | undefined;
308
271
  message: string;
309
272
  };
310
273
  requestId: string;
311
274
  };
312
275
  outputFormat: "json";
313
- status: 401;
276
+ status: 403;
314
277
  input: {
315
278
  query?: {
316
279
  recipient?: string | string[];
@@ -330,9 +293,16 @@ export declare function transfers(): import("hono/hono-base").HonoBase<App.Envir
330
293
  } | undefined;
331
294
  };
332
295
  } | {
333
- output: null;
334
- outputFormat: "body";
335
- status: 402;
296
+ output: {
297
+ error: {
298
+ code: "payment_required" | "rate_limit_exceeded";
299
+ details?: readonly Response.error.Detail[] | undefined;
300
+ message: string;
301
+ };
302
+ requestId: string;
303
+ };
304
+ outputFormat: "json";
305
+ status: 429;
336
306
  input: {
337
307
  query?: {
338
308
  recipient?: string | string[];
@@ -354,14 +324,14 @@ export declare function transfers(): import("hono/hono-base").HonoBase<App.Envir
354
324
  } | {
355
325
  output: {
356
326
  error: {
357
- code: "api_key_forbidden";
327
+ code: "query_invalid";
358
328
  details?: readonly Response.error.Detail[] | undefined;
359
329
  message: string;
360
330
  };
361
331
  requestId: string;
362
332
  };
363
333
  outputFormat: "json";
364
- status: 403;
334
+ status: 400;
365
335
  input: {
366
336
  query?: {
367
337
  recipient?: string | string[];
@@ -383,14 +353,14 @@ export declare function transfers(): import("hono/hono-base").HonoBase<App.Envir
383
353
  } | {
384
354
  output: {
385
355
  error: {
386
- code: "payment_required" | "rate_limit_exceeded";
356
+ code: "upstream_error";
387
357
  details?: readonly Response.error.Detail[] | undefined;
388
358
  message: string;
389
359
  };
390
360
  requestId: string;
391
361
  };
392
362
  outputFormat: "json";
393
- status: 429;
363
+ status: 502;
394
364
  input: {
395
365
  query?: {
396
366
  recipient?: string | string[];
@@ -411,15 +381,45 @@ export declare function transfers(): import("hono/hono-base").HonoBase<App.Envir
411
381
  };
412
382
  } | {
413
383
  output: {
414
- error: {
415
- code: "upstream_error";
416
- details?: readonly Response.error.Detail[] | undefined;
417
- message: string;
418
- };
419
- requestId: string;
384
+ data: {
385
+ attribution?: string | undefined;
386
+ blockNumber: number;
387
+ destinationToken?: {
388
+ address: `0x${string}`;
389
+ amount: string;
390
+ currency?: string | undefined;
391
+ decimals?: number | undefined;
392
+ logoUri?: string | undefined;
393
+ name?: string | undefined;
394
+ symbol?: string | undefined;
395
+ verified?: boolean | undefined;
396
+ } | undefined;
397
+ id: string;
398
+ logIndex: number;
399
+ memo?: string | undefined;
400
+ recipient: `0x${string}`;
401
+ sender: `0x${string}`;
402
+ sourceToken: {
403
+ address: `0x${string}`;
404
+ amount: string;
405
+ currency?: string | undefined;
406
+ decimals?: number | undefined;
407
+ logoUri?: string | undefined;
408
+ name?: string | undefined;
409
+ symbol?: string | undefined;
410
+ verified?: boolean | undefined;
411
+ };
412
+ timestamp: string;
413
+ transactionHash: `0x${string}`;
414
+ }[];
415
+ meta?: {
416
+ totalCountCapped: boolean;
417
+ totalCount: number;
418
+ } | undefined;
419
+ nextCursor: string | null;
420
420
  };
421
421
  outputFormat: "json";
422
- status: 502;
422
+ status: 200;
423
423
  input: {
424
424
  query?: {
425
425
  recipient?: string | string[];
@@ -89,19 +89,9 @@ export declare namespace schema {
89
89
  export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.Environment, {
90
90
  "/v1/verified-tokens": {
91
91
  $get: {
92
- output: {
93
- data: {
94
- address: `0x${string}`;
95
- currency: string;
96
- decimals: number;
97
- logoUri?: string | undefined;
98
- name: string;
99
- symbol: string;
100
- id: string;
101
- }[];
102
- };
103
- outputFormat: "json";
104
- status: 200;
92
+ output: null;
93
+ outputFormat: "body";
94
+ status: 402;
105
95
  input: {
106
96
  query?: {
107
97
  chainId?: string | string[];
@@ -128,14 +118,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
128
118
  } | {
129
119
  output: {
130
120
  error: {
131
- code: "query_invalid";
121
+ code: "api_key_invalid" | "api_key_missing";
132
122
  details?: readonly Response.error.Detail[] | undefined;
133
123
  message: string;
134
124
  };
135
125
  requestId: string;
136
126
  };
137
127
  outputFormat: "json";
138
- status: 400;
128
+ status: 401;
139
129
  input: {
140
130
  query?: {
141
131
  chainId?: string | string[];
@@ -145,24 +135,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
145
135
  } | {
146
136
  output: {
147
137
  error: {
148
- code: "api_key_invalid" | "api_key_missing";
138
+ code: "api_key_forbidden";
149
139
  details?: readonly Response.error.Detail[] | undefined;
150
140
  message: string;
151
141
  };
152
142
  requestId: string;
153
143
  };
154
144
  outputFormat: "json";
155
- status: 401;
156
- input: {
157
- query?: {
158
- chainId?: string | string[];
159
- currency?: string | string[];
160
- } | undefined;
161
- };
162
- } | {
163
- output: null;
164
- outputFormat: "body";
165
- status: 402;
145
+ status: 403;
166
146
  input: {
167
147
  query?: {
168
148
  chainId?: string | string[];
@@ -172,14 +152,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
172
152
  } | {
173
153
  output: {
174
154
  error: {
175
- code: "api_key_forbidden";
155
+ code: "payment_required" | "rate_limit_exceeded";
176
156
  details?: readonly Response.error.Detail[] | undefined;
177
157
  message: string;
178
158
  };
179
159
  requestId: string;
180
160
  };
181
161
  outputFormat: "json";
182
- status: 403;
162
+ status: 429;
183
163
  input: {
184
164
  query?: {
185
165
  chainId?: string | string[];
@@ -189,14 +169,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
189
169
  } | {
190
170
  output: {
191
171
  error: {
192
- code: "payment_required" | "rate_limit_exceeded";
172
+ code: "query_invalid";
193
173
  details?: readonly Response.error.Detail[] | undefined;
194
174
  message: string;
195
175
  };
196
176
  requestId: string;
197
177
  };
198
178
  outputFormat: "json";
199
- status: 429;
179
+ status: 400;
200
180
  input: {
201
181
  query?: {
202
182
  chainId?: string | string[];
@@ -220,16 +200,34 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
220
200
  currency?: string | string[];
221
201
  } | undefined;
222
202
  };
203
+ } | {
204
+ output: {
205
+ data: {
206
+ address: `0x${string}`;
207
+ currency: string;
208
+ decimals: number;
209
+ logoUri?: string | undefined;
210
+ name: string;
211
+ symbol: string;
212
+ id: string;
213
+ }[];
214
+ };
215
+ outputFormat: "json";
216
+ status: 200;
217
+ input: {
218
+ query?: {
219
+ chainId?: string | string[];
220
+ currency?: string | string[];
221
+ } | undefined;
222
+ };
223
223
  };
224
224
  };
225
225
  } & {
226
226
  "/v1/verified-tokens/currencies": {
227
227
  $get: {
228
- output: {
229
- data: string[];
230
- };
231
- outputFormat: "json";
232
- status: 200;
228
+ output: null;
229
+ outputFormat: "body";
230
+ status: 402;
233
231
  input: {
234
232
  query?: {
235
233
  chainId?: string | string[];
@@ -254,14 +252,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
254
252
  } | {
255
253
  output: {
256
254
  error: {
257
- code: "query_invalid";
255
+ code: "api_key_invalid" | "api_key_missing";
258
256
  details?: readonly Response.error.Detail[] | undefined;
259
257
  message: string;
260
258
  };
261
259
  requestId: string;
262
260
  };
263
261
  outputFormat: "json";
264
- status: 400;
262
+ status: 401;
265
263
  input: {
266
264
  query?: {
267
265
  chainId?: string | string[];
@@ -270,23 +268,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
270
268
  } | {
271
269
  output: {
272
270
  error: {
273
- code: "api_key_invalid" | "api_key_missing";
271
+ code: "api_key_forbidden";
274
272
  details?: readonly Response.error.Detail[] | undefined;
275
273
  message: string;
276
274
  };
277
275
  requestId: string;
278
276
  };
279
277
  outputFormat: "json";
280
- status: 401;
281
- input: {
282
- query?: {
283
- chainId?: string | string[];
284
- } | undefined;
285
- };
286
- } | {
287
- output: null;
288
- outputFormat: "body";
289
- status: 402;
278
+ status: 403;
290
279
  input: {
291
280
  query?: {
292
281
  chainId?: string | string[];
@@ -295,14 +284,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
295
284
  } | {
296
285
  output: {
297
286
  error: {
298
- code: "api_key_forbidden";
287
+ code: "payment_required" | "rate_limit_exceeded";
299
288
  details?: readonly Response.error.Detail[] | undefined;
300
289
  message: string;
301
290
  };
302
291
  requestId: string;
303
292
  };
304
293
  outputFormat: "json";
305
- status: 403;
294
+ status: 429;
306
295
  input: {
307
296
  query?: {
308
297
  chainId?: string | string[];
@@ -311,14 +300,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
311
300
  } | {
312
301
  output: {
313
302
  error: {
314
- code: "payment_required" | "rate_limit_exceeded";
303
+ code: "query_invalid";
315
304
  details?: readonly Response.error.Detail[] | undefined;
316
305
  message: string;
317
306
  };
318
307
  requestId: string;
319
308
  };
320
309
  outputFormat: "json";
321
- status: 429;
310
+ status: 400;
322
311
  input: {
323
312
  query?: {
324
313
  chainId?: string | string[];
@@ -340,22 +329,25 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
340
329
  chainId?: string | string[];
341
330
  } | undefined;
342
331
  };
332
+ } | {
333
+ output: {
334
+ data: string[];
335
+ };
336
+ outputFormat: "json";
337
+ status: 200;
338
+ input: {
339
+ query?: {
340
+ chainId?: string | string[];
341
+ } | undefined;
342
+ };
343
343
  };
344
344
  };
345
345
  } & {
346
346
  "/v1/verified-tokens/:address": {
347
347
  $get: {
348
- output: {
349
- address: `0x${string}`;
350
- currency: string;
351
- decimals: number;
352
- logoUri?: string | undefined;
353
- name: string;
354
- symbol: string;
355
- id: string;
356
- };
357
- outputFormat: "json";
358
- status: 200;
348
+ output: null;
349
+ outputFormat: "body";
350
+ status: 402;
359
351
  input: {
360
352
  param: {
361
353
  address: `0x${string}`;
@@ -388,14 +380,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
388
380
  } | {
389
381
  output: {
390
382
  error: {
391
- code: "query_invalid";
383
+ code: "api_key_invalid" | "api_key_missing";
392
384
  details?: readonly Response.error.Detail[] | undefined;
393
385
  message: string;
394
386
  };
395
387
  requestId: string;
396
388
  };
397
389
  outputFormat: "json";
398
- status: 400;
390
+ status: 401;
399
391
  input: {
400
392
  param: {
401
393
  address: `0x${string}`;
@@ -408,14 +400,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
408
400
  } | {
409
401
  output: {
410
402
  error: {
411
- code: "address_invalid";
403
+ code: "api_key_forbidden";
412
404
  details?: readonly Response.error.Detail[] | undefined;
413
405
  message: string;
414
406
  };
415
407
  requestId: string;
416
408
  };
417
409
  outputFormat: "json";
418
- status: 400;
410
+ status: 403;
419
411
  input: {
420
412
  param: {
421
413
  address: `0x${string}`;
@@ -428,14 +420,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
428
420
  } | {
429
421
  output: {
430
422
  error: {
431
- code: "api_key_invalid" | "api_key_missing";
423
+ code: "payment_required" | "rate_limit_exceeded";
432
424
  details?: readonly Response.error.Detail[] | undefined;
433
425
  message: string;
434
426
  };
435
427
  requestId: string;
436
428
  };
437
429
  outputFormat: "json";
438
- status: 401;
430
+ status: 429;
439
431
  input: {
440
432
  param: {
441
433
  address: `0x${string}`;
@@ -446,9 +438,16 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
446
438
  } | undefined;
447
439
  };
448
440
  } | {
449
- output: null;
450
- outputFormat: "body";
451
- status: 402;
441
+ output: {
442
+ error: {
443
+ code: "address_invalid";
444
+ details?: readonly Response.error.Detail[] | undefined;
445
+ message: string;
446
+ };
447
+ requestId: string;
448
+ };
449
+ outputFormat: "json";
450
+ status: 400;
452
451
  input: {
453
452
  param: {
454
453
  address: `0x${string}`;
@@ -461,14 +460,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
461
460
  } | {
462
461
  output: {
463
462
  error: {
464
- code: "api_key_forbidden";
463
+ code: "query_invalid";
465
464
  details?: readonly Response.error.Detail[] | undefined;
466
465
  message: string;
467
466
  };
468
467
  requestId: string;
469
468
  };
470
469
  outputFormat: "json";
471
- status: 403;
470
+ status: 400;
472
471
  input: {
473
472
  param: {
474
473
  address: `0x${string}`;
@@ -481,14 +480,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
481
480
  } | {
482
481
  output: {
483
482
  error: {
484
- code: "verified_token_not_found";
483
+ code: "upstream_error";
485
484
  details?: readonly Response.error.Detail[] | undefined;
486
485
  message: string;
487
486
  };
488
487
  requestId: string;
489
488
  };
490
489
  outputFormat: "json";
491
- status: 404;
490
+ status: 502;
492
491
  input: {
493
492
  param: {
494
493
  address: `0x${string}`;
@@ -501,14 +500,14 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
501
500
  } | {
502
501
  output: {
503
502
  error: {
504
- code: "payment_required" | "rate_limit_exceeded";
503
+ code: "verified_token_not_found";
505
504
  details?: readonly Response.error.Detail[] | undefined;
506
505
  message: string;
507
506
  };
508
507
  requestId: string;
509
508
  };
510
509
  outputFormat: "json";
511
- status: 429;
510
+ status: 404;
512
511
  input: {
513
512
  param: {
514
513
  address: `0x${string}`;
@@ -520,15 +519,16 @@ export declare function verifiedTokens(): import("hono/hono-base").HonoBase<App.
520
519
  };
521
520
  } | {
522
521
  output: {
523
- error: {
524
- code: "upstream_error";
525
- details?: readonly Response.error.Detail[] | undefined;
526
- message: string;
527
- };
528
- requestId: string;
522
+ address: `0x${string}`;
523
+ currency: string;
524
+ decimals: number;
525
+ logoUri?: string | undefined;
526
+ name: string;
527
+ symbol: string;
528
+ id: string;
529
529
  };
530
530
  outputFormat: "json";
531
- status: 502;
531
+ status: 200;
532
532
  input: {
533
533
  param: {
534
534
  address: `0x${string}`;