tapimo 0.9.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 (198) hide show
  1. package/dist/App.d.ts +4887 -5074
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/Webhooks.d.ts +21 -20
  4. package/dist/Webhooks.d.ts.map +1 -1
  5. package/dist/Webhooks.js +66 -23
  6. package/dist/Webhooks.js.map +1 -1
  7. package/dist/admin/apps/verified-tokens.d.ts +168 -168
  8. package/dist/apps/Zones.d.ts +34 -22
  9. package/dist/apps/Zones.d.ts.map +1 -1
  10. package/dist/apps/Zones.js +9 -8
  11. package/dist/apps/Zones.js.map +1 -1
  12. package/dist/apps/data/App.d.ts +5198 -5099
  13. package/dist/apps/data/App.d.ts.map +1 -1
  14. package/dist/apps/data/FxOracle.d.ts +4 -5
  15. package/dist/apps/data/FxOracle.d.ts.map +1 -1
  16. package/dist/apps/data/FxOracle.js +19 -4
  17. package/dist/apps/data/FxOracle.js.map +1 -1
  18. package/dist/apps/data/routes/activities.d.ts +270 -270
  19. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  20. package/dist/apps/data/routes/activities.js +32 -27
  21. package/dist/apps/data/routes/activities.js.map +1 -1
  22. package/dist/apps/data/routes/addresses.d.ts +52 -52
  23. package/dist/apps/data/routes/balances.d.ts +36 -36
  24. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  25. package/dist/apps/data/routes/balances.js +135 -81
  26. package/dist/apps/data/routes/balances.js.map +1 -1
  27. package/dist/apps/data/routes/blocks.d.ts +125 -125
  28. package/dist/apps/data/routes/coingecko.d.ts +54 -54
  29. package/dist/apps/data/routes/earn.d.ts +512 -58
  30. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  31. package/dist/apps/data/routes/earn.js +368 -44
  32. package/dist/apps/data/routes/earn.js.map +1 -1
  33. package/dist/apps/data/routes/exchanges.d.ts +120 -120
  34. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  35. package/dist/apps/data/routes/exchanges.js +114 -118
  36. package/dist/apps/data/routes/exchanges.js.map +1 -1
  37. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  38. package/dist/apps/data/routes/receipts.js +68 -47
  39. package/dist/apps/data/routes/receipts.js.map +1 -1
  40. package/dist/apps/data/routes/rpc.d.ts +31 -31
  41. package/dist/apps/data/routes/tokens.d.ts +461 -459
  42. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  43. package/dist/apps/data/routes/transactions.d.ts +59 -51
  44. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  45. package/dist/apps/data/routes/transactions.js +25 -23
  46. package/dist/apps/data/routes/transactions.js.map +1 -1
  47. package/dist/apps/data/routes/transfers.d.ts +108 -86
  48. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  49. package/dist/apps/data/routes/transfers.js +618 -105
  50. package/dist/apps/data/routes/transfers.js.map +1 -1
  51. package/dist/apps/data/routes/valuation.d.ts +21 -21
  52. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  53. package/dist/apps/data/routes/valuation.js +2 -2
  54. package/dist/apps/data/routes/valuation.js.map +1 -1
  55. package/dist/apps/data/routes/verified-tokens.d.ts +37 -37
  56. package/dist/apps/data/routes/webhooks.d.ts +102 -505
  57. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  58. package/dist/apps/data/routes/webhooks.js +484 -342
  59. package/dist/apps/data/routes/webhooks.js.map +1 -1
  60. package/dist/apps/data/routes/zones.d.ts +12 -12
  61. package/dist/apps/data/routes/zones.d.ts.map +1 -1
  62. package/dist/apps/data/routes/zones.js +3 -1
  63. package/dist/apps/data/routes/zones.js.map +1 -1
  64. package/dist/apps/funding/App.d.ts +96 -96
  65. package/dist/apps/funding/routes/deposit-addresses.d.ts +52 -52
  66. package/dist/apps/funding/routes/quotes.d.ts +89 -89
  67. package/dist/apps/funding/routes/transfers.d.ts +4 -4
  68. package/dist/apps/management/App.d.ts +429 -727
  69. package/dist/apps/management/App.d.ts.map +1 -1
  70. package/dist/apps/management/routes/api-keys.d.ts +24 -24
  71. package/dist/apps/management/routes/billing.d.ts +72 -72
  72. package/dist/apps/management/routes/faucet.d.ts +6 -6
  73. package/dist/apps/management/routes/invitations.d.ts +134 -134
  74. package/dist/apps/management/routes/invite-links.d.ts +38 -38
  75. package/dist/apps/management/routes/me.d.ts +6 -6
  76. package/dist/apps/management/routes/members.d.ts +30 -30
  77. package/dist/apps/management/routes/orgs.d.ts +98 -98
  78. package/dist/apps/management/routes/projects.d.ts +20 -20
  79. package/dist/apps/management/routes/usage.d.ts +24 -24
  80. package/dist/apps/management/routes/verified-token-requests.d.ts +83 -83
  81. package/dist/apps/management/routes/webhooks.d.ts +158 -573
  82. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  83. package/dist/apps/mpp/App.d.ts +56 -44
  84. package/dist/apps/mpp/App.d.ts.map +1 -1
  85. package/dist/apps/mpp/Mpp.d.ts +3 -0
  86. package/dist/apps/mpp/Mpp.d.ts.map +1 -1
  87. package/dist/apps/mpp/Mpp.js +3 -0
  88. package/dist/apps/mpp/Mpp.js.map +1 -1
  89. package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
  90. package/dist/apps/mpp/internal/Adapter.js +9 -2
  91. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  92. package/dist/db/Db.d.ts +2 -2
  93. package/dist/db/Db.d.ts.map +1 -1
  94. package/dist/db/Db.js +17 -15
  95. package/dist/db/Db.js.map +1 -1
  96. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  97. package/dist/db/tables/sponsoredTransactions.js +4 -1
  98. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  99. package/dist/db/tables/webhookSubscriptions.d.ts +56 -3
  100. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  101. package/dist/db/tables/webhookSubscriptions.js +76 -3
  102. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  103. package/dist/internal/MetricSink.d.ts +112 -3
  104. package/dist/internal/MetricSink.d.ts.map +1 -1
  105. package/dist/internal/MetricSink.js +116 -3
  106. package/dist/internal/MetricSink.js.map +1 -1
  107. package/dist/internal/Schema.js +1 -1
  108. package/dist/internal/Schema.js.map +1 -1
  109. package/dist/internal/Tidx.d.ts +1 -3
  110. package/dist/internal/Tidx.d.ts.map +1 -1
  111. package/dist/internal/Tidx.js +1 -3
  112. package/dist/internal/Tidx.js.map +1 -1
  113. package/dist/internal/Viem.d.ts.map +1 -1
  114. package/dist/internal/Viem.js +2 -1
  115. package/dist/internal/Viem.js.map +1 -1
  116. package/dist/internal/WebhookDestination.d.ts +2 -0
  117. package/dist/internal/WebhookDestination.d.ts.map +1 -1
  118. package/dist/internal/WebhookDestination.js +11 -0
  119. package/dist/internal/WebhookDestination.js.map +1 -1
  120. package/dist/internal/WebhookTransfer.d.ts +55 -0
  121. package/dist/internal/WebhookTransfer.d.ts.map +1 -0
  122. package/dist/internal/WebhookTransfer.js +296 -0
  123. package/dist/internal/WebhookTransfer.js.map +1 -0
  124. package/dist/internal/Webhooks.d.ts +37 -0
  125. package/dist/internal/Webhooks.d.ts.map +1 -1
  126. package/dist/internal/Webhooks.js +87 -13
  127. package/dist/internal/Webhooks.js.map +1 -1
  128. package/dist/internal/funding/Provider.d.ts +4 -0
  129. package/dist/internal/funding/Provider.d.ts.map +1 -1
  130. package/dist/internal/funding/Provider.js +11 -7
  131. package/dist/internal/funding/Provider.js.map +1 -1
  132. package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
  133. package/dist/internal/funding/Reconciliation.js +128 -0
  134. package/dist/internal/funding/Reconciliation.js.map +1 -1
  135. package/dist/internal/funding/providers/relay.d.ts +3 -0
  136. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  137. package/dist/internal/funding/providers/relay.js +12 -1
  138. package/dist/internal/funding/providers/relay.js.map +1 -1
  139. package/package.json +3 -3
  140. package/src/Client.test-d.ts +60 -5
  141. package/src/Webhooks.bench.ts +714 -0
  142. package/src/Webhooks.memory.bench.ts +250 -0
  143. package/src/Webhooks.test.ts +77 -6
  144. package/src/Webhooks.ts +83 -29
  145. package/src/apps/Zones.test.ts +5 -4
  146. package/src/apps/Zones.ts +9 -8
  147. package/src/apps/data/FxOracle.test.ts +18 -0
  148. package/src/apps/data/FxOracle.ts +28 -5
  149. package/src/apps/data/routes/activities.test.ts +19 -0
  150. package/src/apps/data/routes/activities.ts +34 -30
  151. package/src/apps/data/routes/balances.test.ts +119 -10
  152. package/src/apps/data/routes/balances.ts +154 -95
  153. package/src/apps/data/routes/blocks.test.ts +12 -6
  154. package/src/apps/data/routes/earn.test.ts +197 -0
  155. package/src/apps/data/routes/earn.ts +486 -44
  156. package/src/apps/data/routes/exchanges.test.ts +7 -6
  157. package/src/apps/data/routes/exchanges.ts +124 -117
  158. package/src/apps/data/routes/receipts.test.ts +24 -7
  159. package/src/apps/data/routes/receipts.ts +67 -50
  160. package/src/apps/data/routes/tokens.test.ts +51 -0
  161. package/src/apps/data/routes/transactions.test.ts +42 -0
  162. package/src/apps/data/routes/transactions.ts +44 -39
  163. package/src/apps/data/routes/transfers.test.ts +402 -24
  164. package/src/apps/data/routes/transfers.ts +708 -101
  165. package/src/apps/data/routes/valuation.test.ts +26 -0
  166. package/src/apps/data/routes/valuation.ts +6 -2
  167. package/src/apps/data/routes/webhooks.test.ts +414 -130
  168. package/src/apps/data/routes/webhooks.ts +603 -419
  169. package/src/apps/data/routes/zones.ts +6 -1
  170. package/src/apps/funding/routes/quotes.test.ts +1 -1
  171. package/src/apps/mpp/Mpp.test.ts +13 -1
  172. package/src/apps/mpp/Mpp.ts +8 -0
  173. package/src/apps/mpp/internal/Adapter.ts +10 -2
  174. package/src/db/Db.test.ts +40 -6
  175. package/src/db/Db.ts +33 -19
  176. package/src/db/tables/sponsoredTransactions.ts +9 -2
  177. package/src/db/tables/webhookSubscriptions.ts +116 -4
  178. package/src/internal/EarnVaults.test.ts +2 -2
  179. package/src/internal/MetricSink.test.ts +518 -0
  180. package/src/internal/MetricSink.ts +266 -9
  181. package/src/internal/Schema.ts +1 -1
  182. package/src/internal/Tidx.test.ts +4 -4
  183. package/src/internal/Tidx.ts +1 -3
  184. package/src/internal/Viem.test.ts +8 -0
  185. package/src/internal/Viem.ts +2 -1
  186. package/src/internal/WebhookDestination.test.ts +20 -0
  187. package/src/internal/WebhookDestination.ts +10 -0
  188. package/src/internal/WebhookTransfer.ts +426 -0
  189. package/src/internal/Webhooks.test.ts +137 -0
  190. package/src/internal/Webhooks.ts +131 -17
  191. package/src/internal/funding/Provider.test.ts +47 -7
  192. package/src/internal/funding/Provider.ts +12 -7
  193. package/src/internal/funding/Reconciliation.local.test.ts +3 -1
  194. package/src/internal/funding/Reconciliation.test.ts +1240 -0
  195. package/src/internal/funding/Reconciliation.ts +136 -0
  196. package/src/internal/funding/SourceObservation.test.ts +1 -0
  197. package/src/internal/funding/providers/relay.test.ts +1 -4
  198. package/src/internal/funding/providers/relay.ts +16 -1
@@ -107,14 +107,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
107
107
  } | {
108
108
  output: {
109
109
  error: {
110
- code: "api_key_malformed";
110
+ code: "upstream_error";
111
111
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
112
112
  message: string;
113
113
  };
114
114
  requestId: string;
115
115
  };
116
116
  outputFormat: "json";
117
- status: 400;
117
+ status: 502;
118
118
  input: {
119
119
  query: {
120
120
  destinationToken?: string | string[];
@@ -128,14 +128,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
128
128
  } | {
129
129
  output: {
130
130
  error: {
131
- code: "api_key_invalid" | "api_key_missing";
131
+ code: "api_key_malformed";
132
132
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
133
133
  message: string;
134
134
  };
135
135
  requestId: string;
136
136
  };
137
137
  outputFormat: "json";
138
- status: 401;
138
+ status: 400;
139
139
  input: {
140
140
  query: {
141
141
  destinationToken?: string | string[];
@@ -149,14 +149,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
149
149
  } | {
150
150
  output: {
151
151
  error: {
152
- code: "api_key_forbidden" | "api_key_ip_forbidden";
152
+ code: "api_key_invalid" | "api_key_missing";
153
153
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
154
154
  message: string;
155
155
  };
156
156
  requestId: string;
157
157
  };
158
158
  outputFormat: "json";
159
- status: 403;
159
+ status: 401;
160
160
  input: {
161
161
  query: {
162
162
  destinationToken?: string | string[];
@@ -170,14 +170,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
170
170
  } | {
171
171
  output: {
172
172
  error: {
173
- code: "payment_required" | "rate_limit_exceeded";
173
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
174
174
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
175
175
  message: string;
176
176
  };
177
177
  requestId: string;
178
178
  };
179
179
  outputFormat: "json";
180
- status: 429;
180
+ status: 403;
181
181
  input: {
182
182
  query: {
183
183
  destinationToken?: string | string[];
@@ -191,14 +191,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
191
191
  } | {
192
192
  output: {
193
193
  error: {
194
- code: "query_invalid";
194
+ code: "payment_required" | "rate_limit_exceeded";
195
195
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
196
196
  message: string;
197
197
  };
198
198
  requestId: string;
199
199
  };
200
200
  outputFormat: "json";
201
- status: 400;
201
+ status: 429;
202
202
  input: {
203
203
  query: {
204
204
  destinationToken?: string | string[];
@@ -212,14 +212,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
212
212
  } | {
213
213
  output: {
214
214
  error: {
215
- code: "upstream_error";
215
+ code: "query_invalid";
216
216
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
217
217
  message: string;
218
218
  };
219
219
  requestId: string;
220
220
  };
221
221
  outputFormat: "json";
222
- status: 502;
222
+ status: 400;
223
223
  input: {
224
224
  query: {
225
225
  destinationToken?: string | string[];
@@ -386,14 +386,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
386
386
  $get: {
387
387
  output: {
388
388
  error: {
389
- code: "api_key_malformed";
389
+ code: "upstream_error";
390
390
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
391
391
  message: string;
392
392
  };
393
393
  requestId: string;
394
394
  };
395
395
  outputFormat: "json";
396
- status: 400;
396
+ status: 502;
397
397
  input: {
398
398
  query?: {
399
399
  cursor?: string | string[];
@@ -405,14 +405,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
405
405
  } | {
406
406
  output: {
407
407
  error: {
408
- code: "api_key_invalid" | "api_key_missing";
408
+ code: "api_key_malformed";
409
409
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
410
410
  message: string;
411
411
  };
412
412
  requestId: string;
413
413
  };
414
414
  outputFormat: "json";
415
- status: 401;
415
+ status: 400;
416
416
  input: {
417
417
  query?: {
418
418
  cursor?: string | string[];
@@ -424,14 +424,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
424
424
  } | {
425
425
  output: {
426
426
  error: {
427
- code: "api_key_forbidden" | "api_key_ip_forbidden";
427
+ code: "api_key_invalid" | "api_key_missing";
428
428
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
429
429
  message: string;
430
430
  };
431
431
  requestId: string;
432
432
  };
433
433
  outputFormat: "json";
434
- status: 403;
434
+ status: 401;
435
435
  input: {
436
436
  query?: {
437
437
  cursor?: string | string[];
@@ -443,14 +443,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
443
443
  } | {
444
444
  output: {
445
445
  error: {
446
- code: "payment_required" | "rate_limit_exceeded";
446
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
447
447
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
448
448
  message: string;
449
449
  };
450
450
  requestId: string;
451
451
  };
452
452
  outputFormat: "json";
453
- status: 429;
453
+ status: 403;
454
454
  input: {
455
455
  query?: {
456
456
  cursor?: string | string[];
@@ -462,14 +462,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
462
462
  } | {
463
463
  output: {
464
464
  error: {
465
- code: "query_invalid";
465
+ code: "payment_required" | "rate_limit_exceeded";
466
466
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
467
467
  message: string;
468
468
  };
469
469
  requestId: string;
470
470
  };
471
471
  outputFormat: "json";
472
- status: 400;
472
+ status: 429;
473
473
  input: {
474
474
  query?: {
475
475
  cursor?: string | string[];
@@ -481,14 +481,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
481
481
  } | {
482
482
  output: {
483
483
  error: {
484
- code: "upstream_error";
484
+ code: "query_invalid";
485
485
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
486
486
  message: string;
487
487
  };
488
488
  requestId: string;
489
489
  };
490
490
  outputFormat: "json";
491
- status: 502;
491
+ status: 400;
492
492
  input: {
493
493
  query?: {
494
494
  cursor?: string | string[];
@@ -650,14 +650,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
650
650
  $get: {
651
651
  output: {
652
652
  error: {
653
- code: "api_key_malformed";
653
+ code: "upstream_error";
654
654
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
655
655
  message: string;
656
656
  };
657
657
  requestId: string;
658
658
  };
659
659
  outputFormat: "json";
660
- status: 400;
660
+ status: 502;
661
661
  input: {
662
662
  param: {
663
663
  id: string;
@@ -666,14 +666,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
666
666
  } | {
667
667
  output: {
668
668
  error: {
669
- code: "api_key_invalid" | "api_key_missing";
669
+ code: "api_key_malformed";
670
670
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
671
671
  message: string;
672
672
  };
673
673
  requestId: string;
674
674
  };
675
675
  outputFormat: "json";
676
- status: 401;
676
+ status: 400;
677
677
  input: {
678
678
  param: {
679
679
  id: string;
@@ -682,14 +682,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
682
682
  } | {
683
683
  output: {
684
684
  error: {
685
- code: "api_key_forbidden" | "api_key_ip_forbidden";
685
+ code: "api_key_invalid" | "api_key_missing";
686
686
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
687
687
  message: string;
688
688
  };
689
689
  requestId: string;
690
690
  };
691
691
  outputFormat: "json";
692
- status: 403;
692
+ status: 401;
693
693
  input: {
694
694
  param: {
695
695
  id: string;
@@ -698,14 +698,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
698
698
  } | {
699
699
  output: {
700
700
  error: {
701
- code: "payment_required" | "rate_limit_exceeded";
701
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
702
702
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
703
703
  message: string;
704
704
  };
705
705
  requestId: string;
706
706
  };
707
707
  outputFormat: "json";
708
- status: 429;
708
+ status: 403;
709
709
  input: {
710
710
  param: {
711
711
  id: string;
@@ -714,14 +714,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
714
714
  } | {
715
715
  output: {
716
716
  error: {
717
- code: "upstream_error";
717
+ code: "payment_required" | "rate_limit_exceeded";
718
718
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
719
719
  message: string;
720
720
  };
721
721
  requestId: string;
722
722
  };
723
723
  outputFormat: "json";
724
- status: 502;
724
+ status: 429;
725
725
  input: {
726
726
  param: {
727
727
  id: string;
@@ -899,14 +899,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
899
899
  $post: {
900
900
  output: {
901
901
  error: {
902
- code: "api_key_malformed";
902
+ code: "upstream_error";
903
903
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
904
904
  message: string;
905
905
  };
906
906
  requestId: string;
907
907
  };
908
908
  outputFormat: "json";
909
- status: 400;
909
+ status: 502;
910
910
  input: {
911
911
  header: {
912
912
  'idempotency-key': string;
@@ -926,14 +926,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
926
926
  } | {
927
927
  output: {
928
928
  error: {
929
- code: "api_key_invalid" | "api_key_missing";
929
+ code: "api_key_malformed";
930
930
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
931
931
  message: string;
932
932
  };
933
933
  requestId: string;
934
934
  };
935
935
  outputFormat: "json";
936
- status: 401;
936
+ status: 400;
937
937
  input: {
938
938
  header: {
939
939
  'idempotency-key': string;
@@ -953,14 +953,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
953
953
  } | {
954
954
  output: {
955
955
  error: {
956
- code: "api_key_forbidden" | "api_key_ip_forbidden";
956
+ code: "api_key_invalid" | "api_key_missing";
957
957
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
958
958
  message: string;
959
959
  };
960
960
  requestId: string;
961
961
  };
962
962
  outputFormat: "json";
963
- status: 403;
963
+ status: 401;
964
964
  input: {
965
965
  header: {
966
966
  'idempotency-key': string;
@@ -980,14 +980,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
980
980
  } | {
981
981
  output: {
982
982
  error: {
983
- code: "payment_required" | "rate_limit_exceeded";
983
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
984
984
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
985
985
  message: string;
986
986
  };
987
987
  requestId: string;
988
988
  };
989
989
  outputFormat: "json";
990
- status: 429;
990
+ status: 403;
991
991
  input: {
992
992
  header: {
993
993
  'idempotency-key': string;
@@ -1007,14 +1007,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1007
1007
  } | {
1008
1008
  output: {
1009
1009
  error: {
1010
- code: "upstream_error";
1010
+ code: "payment_required" | "rate_limit_exceeded";
1011
1011
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1012
1012
  message: string;
1013
1013
  };
1014
1014
  requestId: string;
1015
1015
  };
1016
1016
  outputFormat: "json";
1017
- status: 502;
1017
+ status: 429;
1018
1018
  input: {
1019
1019
  header: {
1020
1020
  'idempotency-key': string;
@@ -1693,14 +1693,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1693
1693
  $post: {
1694
1694
  output: {
1695
1695
  error: {
1696
- code: "api_key_malformed";
1696
+ code: "upstream_error";
1697
1697
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1698
1698
  message: string;
1699
1699
  };
1700
1700
  requestId: string;
1701
1701
  };
1702
1702
  outputFormat: "json";
1703
- status: 400;
1703
+ status: 502;
1704
1704
  input: {
1705
1705
  header: {
1706
1706
  'idempotency-key': string;
@@ -1719,14 +1719,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1719
1719
  } | {
1720
1720
  output: {
1721
1721
  error: {
1722
- code: "api_key_invalid" | "api_key_missing";
1722
+ code: "api_key_malformed";
1723
1723
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1724
1724
  message: string;
1725
1725
  };
1726
1726
  requestId: string;
1727
1727
  };
1728
1728
  outputFormat: "json";
1729
- status: 401;
1729
+ status: 400;
1730
1730
  input: {
1731
1731
  header: {
1732
1732
  'idempotency-key': string;
@@ -1745,14 +1745,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1745
1745
  } | {
1746
1746
  output: {
1747
1747
  error: {
1748
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1748
+ code: "api_key_invalid" | "api_key_missing";
1749
1749
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1750
1750
  message: string;
1751
1751
  };
1752
1752
  requestId: string;
1753
1753
  };
1754
1754
  outputFormat: "json";
1755
- status: 403;
1755
+ status: 401;
1756
1756
  input: {
1757
1757
  header: {
1758
1758
  'idempotency-key': string;
@@ -1771,14 +1771,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1771
1771
  } | {
1772
1772
  output: {
1773
1773
  error: {
1774
- code: "payment_required" | "rate_limit_exceeded";
1774
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1775
1775
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1776
1776
  message: string;
1777
1777
  };
1778
1778
  requestId: string;
1779
1779
  };
1780
1780
  outputFormat: "json";
1781
- status: 429;
1781
+ status: 403;
1782
1782
  input: {
1783
1783
  header: {
1784
1784
  'idempotency-key': string;
@@ -1797,14 +1797,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1797
1797
  } | {
1798
1798
  output: {
1799
1799
  error: {
1800
- code: "upstream_error";
1800
+ code: "payment_required" | "rate_limit_exceeded";
1801
1801
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1802
1802
  message: string;
1803
1803
  };
1804
1804
  requestId: string;
1805
1805
  };
1806
1806
  outputFormat: "json";
1807
- status: 502;
1807
+ status: 429;
1808
1808
  input: {
1809
1809
  header: {
1810
1810
  'idempotency-key': string;
@@ -2108,14 +2108,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2108
2108
  $get: {
2109
2109
  output: {
2110
2110
  error: {
2111
- code: "api_key_malformed";
2111
+ code: "upstream_error";
2112
2112
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2113
2113
  message: string;
2114
2114
  };
2115
2115
  requestId: string;
2116
2116
  };
2117
2117
  outputFormat: "json";
2118
- status: 400;
2118
+ status: 502;
2119
2119
  input: {
2120
2120
  param: {
2121
2121
  id: string;
@@ -2124,14 +2124,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2124
2124
  } | {
2125
2125
  output: {
2126
2126
  error: {
2127
- code: "api_key_invalid" | "api_key_missing";
2127
+ code: "api_key_malformed";
2128
2128
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2129
2129
  message: string;
2130
2130
  };
2131
2131
  requestId: string;
2132
2132
  };
2133
2133
  outputFormat: "json";
2134
- status: 401;
2134
+ status: 400;
2135
2135
  input: {
2136
2136
  param: {
2137
2137
  id: string;
@@ -2140,14 +2140,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2140
2140
  } | {
2141
2141
  output: {
2142
2142
  error: {
2143
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2143
+ code: "api_key_invalid" | "api_key_missing";
2144
2144
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2145
2145
  message: string;
2146
2146
  };
2147
2147
  requestId: string;
2148
2148
  };
2149
2149
  outputFormat: "json";
2150
- status: 403;
2150
+ status: 401;
2151
2151
  input: {
2152
2152
  param: {
2153
2153
  id: string;
@@ -2156,14 +2156,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2156
2156
  } | {
2157
2157
  output: {
2158
2158
  error: {
2159
- code: "payment_required" | "rate_limit_exceeded";
2159
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2160
2160
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2161
2161
  message: string;
2162
2162
  };
2163
2163
  requestId: string;
2164
2164
  };
2165
2165
  outputFormat: "json";
2166
- status: 429;
2166
+ status: 403;
2167
2167
  input: {
2168
2168
  param: {
2169
2169
  id: string;
@@ -2172,14 +2172,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2172
2172
  } | {
2173
2173
  output: {
2174
2174
  error: {
2175
- code: "upstream_error";
2175
+ code: "payment_required" | "rate_limit_exceeded";
2176
2176
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2177
2177
  message: string;
2178
2178
  };
2179
2179
  requestId: string;
2180
2180
  };
2181
2181
  outputFormat: "json";
2182
- status: 502;
2182
+ status: 429;
2183
2183
  input: {
2184
2184
  param: {
2185
2185
  id: string;
@@ -2303,14 +2303,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2303
2303
  } | {
2304
2304
  output: {
2305
2305
  error: {
2306
- code: "api_key_malformed";
2306
+ code: "upstream_error";
2307
2307
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2308
2308
  message: string;
2309
2309
  };
2310
2310
  requestId: string;
2311
2311
  };
2312
2312
  outputFormat: "json";
2313
- status: 400;
2313
+ status: 502;
2314
2314
  input: {
2315
2315
  param: {
2316
2316
  id: string;
@@ -2319,14 +2319,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2319
2319
  } | {
2320
2320
  output: {
2321
2321
  error: {
2322
- code: "api_key_invalid" | "api_key_missing";
2322
+ code: "api_key_malformed";
2323
2323
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2324
2324
  message: string;
2325
2325
  };
2326
2326
  requestId: string;
2327
2327
  };
2328
2328
  outputFormat: "json";
2329
- status: 401;
2329
+ status: 400;
2330
2330
  input: {
2331
2331
  param: {
2332
2332
  id: string;
@@ -2335,14 +2335,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2335
2335
  } | {
2336
2336
  output: {
2337
2337
  error: {
2338
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2338
+ code: "api_key_invalid" | "api_key_missing";
2339
2339
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2340
2340
  message: string;
2341
2341
  };
2342
2342
  requestId: string;
2343
2343
  };
2344
2344
  outputFormat: "json";
2345
- status: 403;
2345
+ status: 401;
2346
2346
  input: {
2347
2347
  param: {
2348
2348
  id: string;
@@ -2351,14 +2351,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2351
2351
  } | {
2352
2352
  output: {
2353
2353
  error: {
2354
- code: "payment_required" | "rate_limit_exceeded";
2354
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2355
2355
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2356
2356
  message: string;
2357
2357
  };
2358
2358
  requestId: string;
2359
2359
  };
2360
2360
  outputFormat: "json";
2361
- status: 429;
2361
+ status: 403;
2362
2362
  input: {
2363
2363
  param: {
2364
2364
  id: string;
@@ -2367,14 +2367,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2367
2367
  } | {
2368
2368
  output: {
2369
2369
  error: {
2370
- code: "upstream_error";
2370
+ code: "payment_required" | "rate_limit_exceeded";
2371
2371
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2372
2372
  message: string;
2373
2373
  };
2374
2374
  requestId: string;
2375
2375
  };
2376
2376
  outputFormat: "json";
2377
- status: 502;
2377
+ status: 429;
2378
2378
  input: {
2379
2379
  param: {
2380
2380
  id: string;
@@ -2467,14 +2467,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2467
2467
  $get: {
2468
2468
  output: {
2469
2469
  error: {
2470
- code: "api_key_malformed";
2470
+ code: "upstream_error";
2471
2471
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2472
2472
  message: string;
2473
2473
  };
2474
2474
  requestId: string;
2475
2475
  };
2476
2476
  outputFormat: "json";
2477
- status: 400;
2477
+ status: 502;
2478
2478
  input: {
2479
2479
  query?: {
2480
2480
  depositAddress?: string | string[];
@@ -2486,14 +2486,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2486
2486
  } | {
2487
2487
  output: {
2488
2488
  error: {
2489
- code: "api_key_invalid" | "api_key_missing";
2489
+ code: "api_key_malformed";
2490
2490
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2491
2491
  message: string;
2492
2492
  };
2493
2493
  requestId: string;
2494
2494
  };
2495
2495
  outputFormat: "json";
2496
- status: 401;
2496
+ status: 400;
2497
2497
  input: {
2498
2498
  query?: {
2499
2499
  depositAddress?: string | string[];
@@ -2505,14 +2505,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2505
2505
  } | {
2506
2506
  output: {
2507
2507
  error: {
2508
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2508
+ code: "api_key_invalid" | "api_key_missing";
2509
2509
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2510
2510
  message: string;
2511
2511
  };
2512
2512
  requestId: string;
2513
2513
  };
2514
2514
  outputFormat: "json";
2515
- status: 403;
2515
+ status: 401;
2516
2516
  input: {
2517
2517
  query?: {
2518
2518
  depositAddress?: string | string[];
@@ -2524,14 +2524,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2524
2524
  } | {
2525
2525
  output: {
2526
2526
  error: {
2527
- code: "payment_required" | "rate_limit_exceeded";
2527
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2528
2528
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2529
2529
  message: string;
2530
2530
  };
2531
2531
  requestId: string;
2532
2532
  };
2533
2533
  outputFormat: "json";
2534
- status: 429;
2534
+ status: 403;
2535
2535
  input: {
2536
2536
  query?: {
2537
2537
  depositAddress?: string | string[];
@@ -2543,14 +2543,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2543
2543
  } | {
2544
2544
  output: {
2545
2545
  error: {
2546
- code: "query_invalid";
2546
+ code: "payment_required" | "rate_limit_exceeded";
2547
2547
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2548
2548
  message: string;
2549
2549
  };
2550
2550
  requestId: string;
2551
2551
  };
2552
2552
  outputFormat: "json";
2553
- status: 400;
2553
+ status: 429;
2554
2554
  input: {
2555
2555
  query?: {
2556
2556
  depositAddress?: string | string[];
@@ -2562,14 +2562,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2562
2562
  } | {
2563
2563
  output: {
2564
2564
  error: {
2565
- code: "upstream_error";
2565
+ code: "query_invalid";
2566
2566
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2567
2567
  message: string;
2568
2568
  };
2569
2569
  requestId: string;
2570
2570
  };
2571
2571
  outputFormat: "json";
2572
- status: 502;
2572
+ status: 400;
2573
2573
  input: {
2574
2574
  query?: {
2575
2575
  depositAddress?: string | string[];
@@ -2697,14 +2697,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2697
2697
  $get: {
2698
2698
  output: {
2699
2699
  error: {
2700
- code: "api_key_malformed";
2700
+ code: "upstream_error";
2701
2701
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2702
2702
  message: string;
2703
2703
  };
2704
2704
  requestId: string;
2705
2705
  };
2706
2706
  outputFormat: "json";
2707
- status: 400;
2707
+ status: 502;
2708
2708
  input: {
2709
2709
  param: {
2710
2710
  id: string;
@@ -2713,14 +2713,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2713
2713
  } | {
2714
2714
  output: {
2715
2715
  error: {
2716
- code: "api_key_invalid" | "api_key_missing";
2716
+ code: "api_key_malformed";
2717
2717
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2718
2718
  message: string;
2719
2719
  };
2720
2720
  requestId: string;
2721
2721
  };
2722
2722
  outputFormat: "json";
2723
- status: 401;
2723
+ status: 400;
2724
2724
  input: {
2725
2725
  param: {
2726
2726
  id: string;
@@ -2729,14 +2729,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2729
2729
  } | {
2730
2730
  output: {
2731
2731
  error: {
2732
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2732
+ code: "api_key_invalid" | "api_key_missing";
2733
2733
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2734
2734
  message: string;
2735
2735
  };
2736
2736
  requestId: string;
2737
2737
  };
2738
2738
  outputFormat: "json";
2739
- status: 403;
2739
+ status: 401;
2740
2740
  input: {
2741
2741
  param: {
2742
2742
  id: string;
@@ -2745,14 +2745,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2745
2745
  } | {
2746
2746
  output: {
2747
2747
  error: {
2748
- code: "payment_required" | "rate_limit_exceeded";
2748
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2749
2749
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2750
2750
  message: string;
2751
2751
  };
2752
2752
  requestId: string;
2753
2753
  };
2754
2754
  outputFormat: "json";
2755
- status: 429;
2755
+ status: 403;
2756
2756
  input: {
2757
2757
  param: {
2758
2758
  id: string;
@@ -2761,14 +2761,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2761
2761
  } | {
2762
2762
  output: {
2763
2763
  error: {
2764
- code: "upstream_error";
2764
+ code: "payment_required" | "rate_limit_exceeded";
2765
2765
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2766
2766
  message: string;
2767
2767
  };
2768
2768
  requestId: string;
2769
2769
  };
2770
2770
  outputFormat: "json";
2771
- status: 502;
2771
+ status: 429;
2772
2772
  input: {
2773
2773
  param: {
2774
2774
  id: string;