tapimo 0.19.0 → 0.20.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 (494) hide show
  1. package/README.md +13 -5
  2. package/dist/ApiKey.d.ts +2 -2
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +2 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +85 -11
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +218 -56
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +12543 -13912
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +4 -5
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +12 -20
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +20 -36
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/admin/App.d.ts +871 -828
  19. package/dist/admin/App.d.ts.map +1 -1
  20. package/dist/admin/App.js +14 -26
  21. package/dist/admin/App.js.map +1 -1
  22. package/dist/admin/apps/api-keys.d.ts +93 -186
  23. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.js +3 -5
  25. package/dist/admin/apps/api-keys.js.map +1 -1
  26. package/dist/admin/apps/audit-logs.d.ts +18 -18
  27. package/dist/admin/apps/audit-logs.js +1 -1
  28. package/dist/admin/apps/audit-logs.js.map +1 -1
  29. package/dist/admin/apps/earn-vaults.d.ts +27 -27
  30. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  31. package/dist/admin/apps/earn-vaults.js +11 -5
  32. package/dist/admin/apps/earn-vaults.js.map +1 -1
  33. package/dist/admin/apps/organizations.d.ts +17 -17
  34. package/dist/admin/apps/prop-amms.d.ts +4 -4
  35. package/dist/admin/apps/routes-support.js +1 -38
  36. package/dist/admin/apps/routes-support.js.map +1 -1
  37. package/dist/admin/apps/routes.d.ts +153 -153
  38. package/dist/admin/apps/sentinel.d.ts +4 -4
  39. package/dist/admin/apps/verified-tokens.d.ts +24 -24
  40. package/dist/admin/apps/zone-delegation-requests.d.ts +332 -0
  41. package/dist/admin/apps/zone-delegation-requests.d.ts.map +1 -0
  42. package/dist/admin/apps/zone-delegation-requests.js +200 -0
  43. package/dist/admin/apps/zone-delegation-requests.js.map +1 -0
  44. package/dist/admin/apps/zone-delegations.d.ts +512 -52
  45. package/dist/admin/apps/zone-delegations.d.ts.map +1 -1
  46. package/dist/admin/apps/zone-delegations.js +134 -44
  47. package/dist/admin/apps/zone-delegations.js.map +1 -1
  48. package/dist/admin/index.d.ts +1 -1
  49. package/dist/admin/index.d.ts.map +1 -1
  50. package/dist/admin/index.js +1 -1
  51. package/dist/admin/index.js.map +1 -1
  52. package/dist/admin/ui.generated.d.ts +1 -1
  53. package/dist/admin/ui.generated.d.ts.map +1 -1
  54. package/dist/admin/ui.generated.js +341 -397
  55. package/dist/admin/ui.generated.js.map +1 -1
  56. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  57. package/dist/analytics/tables/requestEvents.js +4 -2
  58. package/dist/analytics/tables/requestEvents.js.map +1 -1
  59. package/dist/apps/data/App.d.ts +11932 -13214
  60. package/dist/apps/data/App.d.ts.map +1 -1
  61. package/dist/apps/data/App.js +32 -13
  62. package/dist/apps/data/App.js.map +1 -1
  63. package/dist/apps/data/ZoneSelection.d.ts +1 -1
  64. package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
  65. package/dist/apps/data/ZoneSelection.js +2 -2
  66. package/dist/apps/data/ZoneSelection.js.map +1 -1
  67. package/dist/apps/data/routes/activities.d.ts +60 -27
  68. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  69. package/dist/apps/data/routes/activities.js +91 -16
  70. package/dist/apps/data/routes/activities.js.map +1 -1
  71. package/dist/apps/data/routes/addresses.d.ts +893 -875
  72. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  73. package/dist/apps/data/routes/balances.d.ts +36 -36
  74. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  75. package/dist/apps/data/routes/balances.js +3 -1
  76. package/dist/apps/data/routes/balances.js.map +1 -1
  77. package/dist/apps/data/routes/blocks.d.ts +40 -40
  78. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  79. package/dist/apps/data/routes/blocks.js +3 -7
  80. package/dist/apps/data/routes/blocks.js.map +1 -1
  81. package/dist/apps/data/routes/coingecko.d.ts +236 -236
  82. package/dist/apps/data/routes/earn-transactions.d.ts +14 -14
  83. package/dist/apps/data/routes/earn.d.ts +261 -1445
  84. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  85. package/dist/apps/data/routes/earn.js +64 -490
  86. package/dist/apps/data/routes/earn.js.map +1 -1
  87. package/dist/apps/data/routes/exchanges.d.ts +144 -144
  88. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  89. package/dist/apps/data/routes/exchanges.js +5 -15
  90. package/dist/apps/data/routes/exchanges.js.map +1 -1
  91. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  92. package/dist/apps/data/routes/fee-amm.js +3 -9
  93. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  94. package/dist/apps/data/routes/indexer.d.ts +13 -13
  95. package/dist/apps/data/routes/receipts.d.ts +53 -53
  96. package/dist/apps/data/routes/receipts.js +1 -1
  97. package/dist/apps/data/routes/receipts.js.map +1 -1
  98. package/dist/apps/data/routes/rpc.d.ts +52 -0
  99. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  100. package/dist/apps/data/routes/rpc.js +19 -18
  101. package/dist/apps/data/routes/rpc.js.map +1 -1
  102. package/dist/apps/data/routes/tokenlist.d.ts +14 -14
  103. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  104. package/dist/apps/data/routes/tokenlist.js +1 -3
  105. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  106. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  107. package/dist/apps/data/routes/tokens.js +7 -5
  108. package/dist/apps/data/routes/tokens.js.map +1 -1
  109. package/dist/apps/data/routes/transactions.d.ts +281 -281
  110. package/dist/apps/data/routes/transactions.js +3 -3
  111. package/dist/apps/data/routes/transactions.js.map +1 -1
  112. package/dist/apps/data/routes/transfers.d.ts +12 -12
  113. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  114. package/dist/apps/data/routes/transfers.js +1 -3
  115. package/dist/apps/data/routes/transfers.js.map +1 -1
  116. package/dist/apps/data/routes/valuation.d.ts +30 -30
  117. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  118. package/dist/apps/data/routes/valuation.js +1 -3
  119. package/dist/apps/data/routes/valuation.js.map +1 -1
  120. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  121. package/dist/apps/data/routes/webhooks.d.ts +102 -102
  122. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  123. package/dist/apps/data/routes/webhooks.js +9 -23
  124. package/dist/apps/data/routes/webhooks.js.map +1 -1
  125. package/dist/apps/data/routes/zone-deposits.d.ts +16 -16
  126. package/dist/apps/data/routes/zone-withdrawals.d.ts +31 -31
  127. package/dist/apps/data/routes/zones.d.ts +28 -28
  128. package/dist/apps/management/App.d.ts +18 -102
  129. package/dist/apps/management/App.d.ts.map +1 -1
  130. package/dist/apps/management/App.js +1 -1
  131. package/dist/apps/management/App.js.map +1 -1
  132. package/dist/apps/management/routes/api-keys.d.ts +253 -339
  133. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  134. package/dist/apps/management/routes/api-keys.js +25 -11
  135. package/dist/apps/management/routes/api-keys.js.map +1 -1
  136. package/dist/apps/management/routes/billing.d.ts +92 -92
  137. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  138. package/dist/apps/management/routes/billing.js +5 -13
  139. package/dist/apps/management/routes/billing.js.map +1 -1
  140. package/dist/apps/management/routes/cli.d.ts.map +1 -1
  141. package/dist/apps/management/routes/cli.js +3 -9
  142. package/dist/apps/management/routes/cli.js.map +1 -1
  143. package/dist/apps/management/routes/faucet.d.ts +16 -16
  144. package/dist/apps/management/routes/fee-payer-usage.d.ts +38 -38
  145. package/dist/apps/management/routes/fee-payer-usage.d.ts.map +1 -1
  146. package/dist/apps/management/routes/fee-payer-usage.js +2 -4
  147. package/dist/apps/management/routes/fee-payer-usage.js.map +1 -1
  148. package/dist/apps/management/routes/invitations.d.ts +52 -52
  149. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  150. package/dist/apps/management/routes/invitations.js +4 -12
  151. package/dist/apps/management/routes/invitations.js.map +1 -1
  152. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  153. package/dist/apps/management/routes/invite-links.js +6 -14
  154. package/dist/apps/management/routes/invite-links.js.map +1 -1
  155. package/dist/apps/management/routes/me.d.ts +6 -6
  156. package/dist/apps/management/routes/me.d.ts.map +1 -1
  157. package/dist/apps/management/routes/me.js +3 -7
  158. package/dist/apps/management/routes/me.js.map +1 -1
  159. package/dist/apps/management/routes/members.d.ts +84 -84
  160. package/dist/apps/management/routes/members.d.ts.map +1 -1
  161. package/dist/apps/management/routes/members.js +2 -4
  162. package/dist/apps/management/routes/members.js.map +1 -1
  163. package/dist/apps/management/routes/orgs.d.ts +44 -44
  164. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  165. package/dist/apps/management/routes/orgs.js +2 -6
  166. package/dist/apps/management/routes/orgs.js.map +1 -1
  167. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  168. package/dist/apps/management/routes/projects.js +2 -6
  169. package/dist/apps/management/routes/projects.js.map +1 -1
  170. package/dist/apps/management/routes/route-usage.d.ts +34 -34
  171. package/dist/apps/management/routes/route-usage.d.ts.map +1 -1
  172. package/dist/apps/management/routes/route-usage.js +2 -4
  173. package/dist/apps/management/routes/route-usage.js.map +1 -1
  174. package/dist/apps/management/routes/routes-access-requests.d.ts +120 -91
  175. package/dist/apps/management/routes/routes-access-requests.d.ts.map +1 -1
  176. package/dist/apps/management/routes/routes-access-requests.js +49 -9
  177. package/dist/apps/management/routes/routes-access-requests.js.map +1 -1
  178. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  179. package/dist/apps/management/routes/usage.js +8 -16
  180. package/dist/apps/management/routes/usage.js.map +1 -1
  181. package/dist/apps/management/routes/verified-token-requests.d.ts +39 -39
  182. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
  183. package/dist/apps/management/routes/verified-token-requests.js +3 -7
  184. package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
  185. package/dist/apps/management/routes/webhooks.d.ts +2089 -2089
  186. package/dist/apps/management/routes/zone-delegations.d.ts +14 -17
  187. package/dist/apps/management/routes/zone-delegations.d.ts.map +1 -1
  188. package/dist/apps/management/routes/zone-delegations.js +1 -6
  189. package/dist/apps/management/routes/zone-delegations.js.map +1 -1
  190. package/dist/apps/mpp/App.d.ts +44 -44
  191. package/dist/apps/mpp/App.js +3 -3
  192. package/dist/apps/mpp/App.js.map +1 -1
  193. package/dist/apps/mpp/internal/Adapter.js +1 -1
  194. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  195. package/dist/apps/mpp/internal/Error.d.ts.map +1 -1
  196. package/dist/apps/mpp/internal/Error.js +1 -0
  197. package/dist/apps/mpp/internal/Error.js.map +1 -1
  198. package/dist/apps/mpp/internal/Policy.d.ts +5 -1
  199. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
  200. package/dist/apps/mpp/internal/Policy.js +35 -13
  201. package/dist/apps/mpp/internal/Policy.js.map +1 -1
  202. package/dist/apps/relay/App.d.ts +2 -2
  203. package/dist/apps/relay/App.d.ts.map +1 -1
  204. package/dist/apps/relay/App.js +25 -16
  205. package/dist/apps/relay/App.js.map +1 -1
  206. package/dist/apps/routes/App.d.ts +311 -311
  207. package/dist/apps/routes/routes/deposit-addresses.d.ts +1099 -1099
  208. package/dist/apps/routes/routes/list.d.ts +74 -74
  209. package/dist/apps/routes/routes/transfers.d.ts +94 -94
  210. package/dist/cli/ApiKeys.d.ts +19 -26
  211. package/dist/cli/ApiKeys.d.ts.map +1 -1
  212. package/dist/db/Db.d.ts +3 -3
  213. package/dist/db/Db.d.ts.map +1 -1
  214. package/dist/db/Db.js +27 -0
  215. package/dist/db/Db.js.map +1 -1
  216. package/dist/db/Schema.d.ts +28 -62
  217. package/dist/db/Schema.d.ts.map +1 -1
  218. package/dist/db/Schema.js +18 -18
  219. package/dist/db/Schema.js.map +1 -1
  220. package/dist/db/tables/rewardRuns.d.ts +21 -0
  221. package/dist/db/tables/rewardRuns.d.ts.map +1 -1
  222. package/dist/db/tables/rewardRuns.js +19 -0
  223. package/dist/db/tables/rewardRuns.js.map +1 -1
  224. package/dist/db/tables/routesAccessRequests.d.ts +13 -0
  225. package/dist/db/tables/routesAccessRequests.d.ts.map +1 -1
  226. package/dist/db/tables/routesAccessRequests.js +12 -0
  227. package/dist/db/tables/routesAccessRequests.js.map +1 -1
  228. package/dist/db/tables/zoneDelegationRequests.d.ts +165 -0
  229. package/dist/db/tables/zoneDelegationRequests.d.ts.map +1 -0
  230. package/dist/db/tables/{zoneKeyRequests.js → zoneDelegationRequests.js} +43 -42
  231. package/dist/db/tables/zoneDelegationRequests.js.map +1 -0
  232. package/dist/db/tables/zoneDelegations.d.ts +11 -5
  233. package/dist/db/tables/zoneDelegations.d.ts.map +1 -1
  234. package/dist/db/tables/zoneDelegations.js +21 -3
  235. package/dist/db/tables/zoneDelegations.js.map +1 -1
  236. package/dist/handlers/internal/accounts.d.ts +7 -0
  237. package/dist/handlers/internal/accounts.d.ts.map +1 -0
  238. package/dist/handlers/internal/{multisig.js → accounts.js} +10 -10
  239. package/dist/handlers/internal/{multisig.js.map → accounts.js.map} +1 -1
  240. package/dist/handlers/internal/sponsorship.js +17 -17
  241. package/dist/handlers/internal/sponsorship.js.map +1 -1
  242. package/dist/handlers/relay.d.ts +6 -6
  243. package/dist/handlers/relay.d.ts.map +1 -1
  244. package/dist/handlers/relay.js +15 -15
  245. package/dist/handlers/relay.js.map +1 -1
  246. package/dist/internal/Auth.d.ts.map +1 -1
  247. package/dist/internal/Auth.js +4 -8
  248. package/dist/internal/Auth.js.map +1 -1
  249. package/dist/internal/EarnRates.d.ts.map +1 -1
  250. package/dist/internal/EarnRates.js +1 -3
  251. package/dist/internal/EarnRates.js.map +1 -1
  252. package/dist/internal/EarnVaults.js +2 -2
  253. package/dist/internal/Log.d.ts +2 -4
  254. package/dist/internal/Log.d.ts.map +1 -1
  255. package/dist/internal/Log.js +0 -3
  256. package/dist/internal/Log.js.map +1 -1
  257. package/dist/internal/Response.d.ts +1 -1
  258. package/dist/internal/Response.d.ts.map +1 -1
  259. package/dist/internal/Response.js +0 -3
  260. package/dist/internal/Response.js.map +1 -1
  261. package/dist/internal/Schema.d.ts +11 -0
  262. package/dist/internal/Schema.d.ts.map +1 -1
  263. package/dist/internal/Schema.js +24 -1
  264. package/dist/internal/Schema.js.map +1 -1
  265. package/dist/internal/ZoneAccess.d.ts +70 -35
  266. package/dist/internal/ZoneAccess.d.ts.map +1 -1
  267. package/dist/internal/ZoneAccess.js +312 -131
  268. package/dist/internal/ZoneAccess.js.map +1 -1
  269. package/dist/internal/ZoneDelegation.d.ts +7 -19
  270. package/dist/internal/ZoneDelegation.d.ts.map +1 -1
  271. package/dist/internal/ZoneDelegation.js +8 -29
  272. package/dist/internal/ZoneDelegation.js.map +1 -1
  273. package/dist/internal/{ZoneKeyApproval.d.ts → ZoneDelegationApproval.d.ts} +3 -5
  274. package/dist/internal/ZoneDelegationApproval.d.ts.map +1 -0
  275. package/dist/internal/ZoneDelegationApproval.js +16 -0
  276. package/dist/internal/ZoneDelegationApproval.js.map +1 -0
  277. package/dist/internal/ZoneKeyRewrite.d.ts +98 -0
  278. package/dist/internal/ZoneKeyRewrite.d.ts.map +1 -0
  279. package/dist/internal/ZoneKeyRewrite.js +151 -0
  280. package/dist/internal/ZoneKeyRewrite.js.map +1 -0
  281. package/dist/internal/rewards/Campaigns.d.ts +2 -0
  282. package/dist/internal/rewards/Campaigns.d.ts.map +1 -1
  283. package/dist/internal/rewards/Campaigns.js.map +1 -1
  284. package/dist/internal/rewards/Distributions.d.ts.map +1 -1
  285. package/dist/internal/rewards/Distributions.js +2 -6
  286. package/dist/internal/rewards/Distributions.js.map +1 -1
  287. package/dist/internal/rewards/Monitor.d.ts +4 -1
  288. package/dist/internal/rewards/Monitor.d.ts.map +1 -1
  289. package/dist/internal/rewards/Monitor.js +19 -2
  290. package/dist/internal/rewards/Monitor.js.map +1 -1
  291. package/dist/internal/rewards/Runner.d.ts.map +1 -1
  292. package/dist/internal/rewards/Runner.js +9 -1
  293. package/dist/internal/rewards/Runner.js.map +1 -1
  294. package/dist/internal/routes/Action.d.ts.map +1 -1
  295. package/dist/internal/routes/Action.js +2 -3
  296. package/dist/internal/routes/Action.js.map +1 -1
  297. package/dist/internal/routes/Deposit.d.ts.map +1 -1
  298. package/dist/internal/routes/Deposit.js +2 -6
  299. package/dist/internal/routes/Deposit.js.map +1 -1
  300. package/dist/internal/routes/DepositAddress.d.ts.map +1 -1
  301. package/dist/internal/routes/DepositAddress.js +4 -10
  302. package/dist/internal/routes/DepositAddress.js.map +1 -1
  303. package/dist/internal/routes/Policy.d.ts.map +1 -1
  304. package/dist/internal/routes/Policy.js +2 -1
  305. package/dist/internal/routes/Policy.js.map +1 -1
  306. package/dist/internal/routes/Provider.js +8 -8
  307. package/dist/internal/routes/Provider.js.map +1 -1
  308. package/dist/internal/routes/Reconciliation.d.ts.map +1 -1
  309. package/dist/internal/routes/Reconciliation.js +3 -2
  310. package/dist/internal/routes/Reconciliation.js.map +1 -1
  311. package/dist/internal/routes/Transfer.d.ts.map +1 -1
  312. package/dist/internal/routes/Transfer.js +4 -12
  313. package/dist/internal/routes/Transfer.js.map +1 -1
  314. package/dist/internal/routes/UniversalDepositAddress.d.ts.map +1 -1
  315. package/dist/internal/routes/UniversalDepositAddress.js +3 -6
  316. package/dist/internal/routes/UniversalDepositAddress.js.map +1 -1
  317. package/dist/internal/routes/providers/SquidOrder.d.ts.map +1 -1
  318. package/dist/internal/routes/providers/SquidOrder.js +3 -2
  319. package/dist/internal/routes/providers/SquidOrder.js.map +1 -1
  320. package/dist/internal/routes/providers/relay.d.ts.map +1 -1
  321. package/dist/internal/routes/providers/relay.js +4 -3
  322. package/dist/internal/routes/providers/relay.js.map +1 -1
  323. package/package.json +20 -5
  324. package/src/ApiKey.ts +2 -2
  325. package/src/ApiKeys.test.ts +284 -51
  326. package/src/ApiKeys.ts +297 -64
  327. package/src/App.ts +4 -5
  328. package/src/Client.test-d.ts +33 -126
  329. package/src/Scope.test.ts +26 -45
  330. package/src/Scope.ts +24 -37
  331. package/src/admin/App.test.ts +51 -4
  332. package/src/admin/App.ts +25 -33
  333. package/src/admin/Mcp.test.ts +2 -1
  334. package/src/admin/apps/api-keys.test.ts +90 -20
  335. package/src/admin/apps/api-keys.ts +5 -8
  336. package/src/admin/apps/audit-logs.ts +1 -1
  337. package/src/admin/apps/earn-vaults.test.ts +19 -19
  338. package/src/admin/apps/earn-vaults.ts +11 -5
  339. package/src/admin/apps/routes-support.test.ts +254 -3
  340. package/src/admin/apps/routes-support.ts +1 -44
  341. package/src/admin/apps/scopes.test.ts +3 -3
  342. package/src/admin/apps/zone-delegation-requests.test.ts +246 -0
  343. package/src/admin/apps/zone-delegation-requests.ts +240 -0
  344. package/src/admin/apps/zone-delegations.test.ts +218 -58
  345. package/src/admin/apps/zone-delegations.ts +146 -46
  346. package/src/admin/index.ts +1 -1
  347. package/src/admin/ui/src/components/ApiKeyForm.tsx +4 -3
  348. package/src/admin/ui/src/lib/config.ts +3 -3
  349. package/src/admin/ui/src/lib/query-client.ts +1 -1
  350. package/src/admin/ui/src/lib/review-queues.ts +10 -10
  351. package/src/admin/ui/src/lib/routes-setup.test.ts +1 -2
  352. package/src/admin/ui/src/lib/routes-setup.ts +3 -5
  353. package/src/admin/ui/src/lib/scopes.test.ts +3 -6
  354. package/src/admin/ui/src/lib/scopes.ts +2 -9
  355. package/src/admin/ui/src/lib/{zone-key-requests.ts → zone-delegation-requests.ts} +27 -31
  356. package/src/admin/ui/src/routeTree.gen.ts +17 -17
  357. package/src/admin/ui/src/routes/__root.tsx +1 -1
  358. package/src/admin/ui/src/routes/api-keys.tsx +2 -15
  359. package/src/admin/ui/src/routes/audit-logs.tsx +2 -2
  360. package/src/admin/ui/src/routes/index.tsx +11 -11
  361. package/src/admin/ui/src/routes/organizations.tsx +3 -1
  362. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +3 -1
  363. package/src/admin/ui/src/routes/organizations_.$orgId_.setup.tsx +1 -3
  364. package/src/admin/ui/src/routes/{zone-key-requests.tsx → zone-delegation-requests.tsx} +228 -172
  365. package/src/admin/ui/vite.config.ts +14 -1
  366. package/src/admin/ui.generated.ts +412 -583
  367. package/src/analytics/tables/requestEvents.test.ts +13 -3
  368. package/src/analytics/tables/requestEvents.ts +4 -3
  369. package/src/apps/data/App.test.ts +72 -35
  370. package/src/apps/data/App.ts +29 -13
  371. package/src/apps/data/ZoneSelection.test.ts +53 -70
  372. package/src/apps/data/ZoneSelection.ts +2 -2
  373. package/src/apps/data/routes/activities.test.ts +140 -6
  374. package/src/apps/data/routes/activities.ts +124 -18
  375. package/src/apps/data/routes/balances.ts +5 -1
  376. package/src/apps/data/routes/blocks.ts +9 -13
  377. package/src/apps/data/routes/earn-transactions.local.test.ts +6 -1
  378. package/src/apps/data/routes/earn-transactions.test.ts +7 -3
  379. package/src/apps/data/routes/earn.bench.ts +0 -14
  380. package/src/apps/data/routes/earn.discovery.test.ts +4 -39
  381. package/src/apps/data/routes/earn.local.test.ts +27 -34
  382. package/src/apps/data/routes/earn.test.ts +172 -490
  383. package/src/apps/data/routes/earn.ts +103 -652
  384. package/src/apps/data/routes/exchanges.ts +20 -30
  385. package/src/apps/data/routes/fee-amm.ts +12 -18
  386. package/src/apps/data/routes/indexer.test.ts +14 -12
  387. package/src/apps/data/routes/receipts.ts +1 -1
  388. package/src/apps/data/routes/rpc.test.ts +23 -18
  389. package/src/apps/data/routes/rpc.ts +21 -21
  390. package/src/apps/data/routes/rpc.zone.test.ts +60 -6
  391. package/src/apps/data/routes/tokenlist.ts +4 -6
  392. package/src/apps/data/routes/tokens.test.ts +20 -0
  393. package/src/apps/data/routes/tokens.ts +10 -5
  394. package/src/apps/data/routes/transactions.ts +3 -3
  395. package/src/apps/data/routes/transfers.ts +4 -6
  396. package/src/apps/data/routes/valuation.test.ts +2 -4
  397. package/src/apps/data/routes/valuation.ts +4 -6
  398. package/src/apps/data/routes/webhooks.test.ts +1 -5
  399. package/src/apps/data/routes/webhooks.ts +30 -44
  400. package/src/apps/data/routes/zones.test.ts +35 -19
  401. package/src/apps/management/App.ts +3 -1
  402. package/src/apps/management/routes/api-keys.test.ts +112 -22
  403. package/src/apps/management/routes/api-keys.ts +30 -15
  404. package/src/apps/management/routes/billing.ts +17 -25
  405. package/src/apps/management/routes/cli.ts +12 -18
  406. package/src/apps/management/routes/fee-payer-usage.ts +5 -4
  407. package/src/apps/management/routes/invitations.ts +16 -21
  408. package/src/apps/management/routes/invite-links.ts +18 -26
  409. package/src/apps/management/routes/me.ts +9 -13
  410. package/src/apps/management/routes/members.ts +5 -7
  411. package/src/apps/management/routes/orgs.ts +8 -12
  412. package/src/apps/management/routes/projects.ts +8 -12
  413. package/src/apps/management/routes/route-usage.ts +5 -4
  414. package/src/apps/management/routes/routes-access-requests.test.ts +64 -2
  415. package/src/apps/management/routes/routes-access-requests.ts +99 -15
  416. package/src/apps/management/routes/scopes.test.ts +3 -3
  417. package/src/apps/management/routes/usage.ts +20 -28
  418. package/src/apps/management/routes/verified-token-requests.ts +9 -13
  419. package/src/apps/management/routes/zone-delegations.test.ts +3 -5
  420. package/src/apps/management/routes/zone-delegations.ts +4 -9
  421. package/src/apps/mpp/App.ts +3 -3
  422. package/src/apps/mpp/Mpp.zone.test.ts +49 -18
  423. package/src/apps/mpp/internal/Adapter.ts +1 -1
  424. package/src/apps/mpp/internal/Error.test.ts +3 -0
  425. package/src/apps/mpp/internal/Error.ts +1 -0
  426. package/src/apps/mpp/internal/Policy.test.ts +9 -8
  427. package/src/apps/mpp/internal/Policy.ts +37 -14
  428. package/src/apps/relay/App.sandbox.test.ts +15 -14
  429. package/src/apps/relay/App.test.ts +120 -61
  430. package/src/apps/relay/App.ts +28 -18
  431. package/src/apps/relay/App.zone-billing.test.ts +9 -4
  432. package/src/apps/routes/App.test.ts +21 -22
  433. package/src/db/Db.ts +34 -3
  434. package/src/db/Schema.ts +26 -26
  435. package/src/db/tables/rewardRuns.ts +39 -0
  436. package/src/db/tables/routesAccessRequests.test.ts +65 -0
  437. package/src/db/tables/routesAccessRequests.ts +25 -0
  438. package/src/db/tables/{zoneKeyRequests.test.ts → zoneDelegationRequests.test.ts} +36 -77
  439. package/src/db/tables/{zoneKeyRequests.ts → zoneDelegationRequests.ts} +69 -52
  440. package/src/db/tables/zoneDelegations.test.ts +5 -6
  441. package/src/db/tables/zoneDelegations.ts +25 -8
  442. package/src/handlers/internal/{multisig.store.test.ts → accounts.store.test.ts} +16 -16
  443. package/src/handlers/internal/{multisig.test.ts → accounts.test.ts} +85 -82
  444. package/src/handlers/internal/{multisig.ts → accounts.ts} +9 -9
  445. package/src/handlers/internal/sponsorship.ts +20 -20
  446. package/src/handlers/relay.test.ts +48 -46
  447. package/src/handlers/relay.ts +26 -26
  448. package/src/internal/Auth.test.ts +6 -2
  449. package/src/internal/Auth.ts +4 -10
  450. package/src/internal/EarnRates.ts +4 -6
  451. package/src/internal/EarnVaults.ts +2 -2
  452. package/src/internal/Log.test-d.ts +1 -0
  453. package/src/internal/Log.test.ts +4 -6
  454. package/src/internal/Log.ts +2 -6
  455. package/src/internal/Response.ts +0 -3
  456. package/src/internal/Schema.test.ts +42 -0
  457. package/src/internal/Schema.ts +36 -1
  458. package/src/internal/ZoneAccess.test.ts +515 -312
  459. package/src/internal/ZoneAccess.ts +410 -158
  460. package/src/internal/ZoneDelegation.test.ts +1 -41
  461. package/src/internal/ZoneDelegation.ts +10 -48
  462. package/src/internal/ZoneDelegationApproval.test.ts +22 -0
  463. package/src/internal/{ZoneKeyApproval.ts → ZoneDelegationApproval.ts} +4 -11
  464. package/src/internal/ZoneKeyRewrite.ts +231 -0
  465. package/src/internal/rewards/Campaigns.ts +2 -0
  466. package/src/internal/rewards/Distributions.ts +8 -12
  467. package/src/internal/rewards/Monitor.test.ts +64 -0
  468. package/src/internal/rewards/Monitor.ts +27 -4
  469. package/src/internal/rewards/Runner.ts +9 -1
  470. package/src/internal/routes/Action.ts +5 -6
  471. package/src/internal/routes/Deposit.ts +8 -12
  472. package/src/internal/routes/DepositAddress.ts +13 -19
  473. package/src/internal/routes/Policy.ts +2 -1
  474. package/src/internal/routes/Provider.ts +8 -8
  475. package/src/internal/routes/Reconciliation.ts +3 -2
  476. package/src/internal/routes/Transfer.ts +16 -24
  477. package/src/internal/routes/UniversalDepositAddress.ts +9 -12
  478. package/src/internal/routes/providers/SquidOrder.ts +3 -2
  479. package/src/internal/routes/providers/relay.ts +4 -3
  480. package/dist/admin/apps/zone-key-requests.d.ts +0 -406
  481. package/dist/admin/apps/zone-key-requests.d.ts.map +0 -1
  482. package/dist/admin/apps/zone-key-requests.js +0 -183
  483. package/dist/admin/apps/zone-key-requests.js.map +0 -1
  484. package/dist/db/tables/zoneKeyRequests.d.ts +0 -289
  485. package/dist/db/tables/zoneKeyRequests.d.ts.map +0 -1
  486. package/dist/db/tables/zoneKeyRequests.js.map +0 -1
  487. package/dist/handlers/internal/multisig.d.ts +0 -7
  488. package/dist/handlers/internal/multisig.d.ts.map +0 -1
  489. package/dist/internal/ZoneKeyApproval.d.ts.map +0 -1
  490. package/dist/internal/ZoneKeyApproval.js +0 -21
  491. package/dist/internal/ZoneKeyApproval.js.map +0 -1
  492. package/src/admin/apps/zone-key-requests.test.ts +0 -272
  493. package/src/admin/apps/zone-key-requests.ts +0 -231
  494. package/src/internal/ZoneKeyApproval.test.ts +0 -46
@@ -1622,14 +1622,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1622
1622
  } | {
1623
1623
  output: {
1624
1624
  error: {
1625
- code: "body_invalid";
1625
+ code: "payload_too_large";
1626
1626
  details?: readonly Response.error.Detail[] | undefined;
1627
1627
  message: string;
1628
1628
  };
1629
1629
  requestId: string;
1630
1630
  };
1631
1631
  outputFormat: "json";
1632
- status: 400;
1632
+ status: 413;
1633
1633
  input: {
1634
1634
  query?: {
1635
1635
  chainId?: string | string[];
@@ -1649,14 +1649,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1649
1649
  } | {
1650
1650
  output: {
1651
1651
  error: {
1652
- code: "upstream_error";
1652
+ code: "api_key_malformed";
1653
1653
  details?: readonly Response.error.Detail[] | undefined;
1654
1654
  message: string;
1655
1655
  };
1656
1656
  requestId: string;
1657
1657
  };
1658
1658
  outputFormat: "json";
1659
- status: 502;
1659
+ status: 400;
1660
1660
  input: {
1661
1661
  query?: {
1662
1662
  chainId?: string | string[];
@@ -1676,14 +1676,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1676
1676
  } | {
1677
1677
  output: {
1678
1678
  error: {
1679
- code: "query_invalid";
1679
+ code: "api_key_invalid" | "api_key_missing";
1680
1680
  details?: readonly Response.error.Detail[] | undefined;
1681
1681
  message: string;
1682
1682
  };
1683
1683
  requestId: string;
1684
1684
  };
1685
1685
  outputFormat: "json";
1686
- status: 400;
1686
+ status: 401;
1687
1687
  input: {
1688
1688
  query?: {
1689
1689
  chainId?: string | string[];
@@ -1703,14 +1703,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1703
1703
  } | {
1704
1704
  output: {
1705
1705
  error: {
1706
- code: "payload_too_large";
1706
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1707
1707
  details?: readonly Response.error.Detail[] | undefined;
1708
1708
  message: string;
1709
1709
  };
1710
1710
  requestId: string;
1711
1711
  };
1712
1712
  outputFormat: "json";
1713
- status: 413;
1713
+ status: 403;
1714
1714
  input: {
1715
1715
  query?: {
1716
1716
  chainId?: string | string[];
@@ -1730,14 +1730,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1730
1730
  } | {
1731
1731
  output: {
1732
1732
  error: {
1733
- code: "api_key_malformed";
1733
+ code: "payment_required" | "rate_limit_exceeded";
1734
1734
  details?: readonly Response.error.Detail[] | undefined;
1735
1735
  message: string;
1736
1736
  };
1737
1737
  requestId: string;
1738
1738
  };
1739
1739
  outputFormat: "json";
1740
- status: 400;
1740
+ status: 429;
1741
1741
  input: {
1742
1742
  query?: {
1743
1743
  chainId?: string | string[];
@@ -1757,14 +1757,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1757
1757
  } | {
1758
1758
  output: {
1759
1759
  error: {
1760
- code: "api_key_invalid" | "api_key_missing";
1760
+ code: "query_invalid";
1761
1761
  details?: readonly Response.error.Detail[] | undefined;
1762
1762
  message: string;
1763
1763
  };
1764
1764
  requestId: string;
1765
1765
  };
1766
1766
  outputFormat: "json";
1767
- status: 401;
1767
+ status: 400;
1768
1768
  input: {
1769
1769
  query?: {
1770
1770
  chainId?: string | string[];
@@ -1784,14 +1784,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1784
1784
  } | {
1785
1785
  output: {
1786
1786
  error: {
1787
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1787
+ code: "upstream_error";
1788
1788
  details?: readonly Response.error.Detail[] | undefined;
1789
1789
  message: string;
1790
1790
  };
1791
1791
  requestId: string;
1792
1792
  };
1793
1793
  outputFormat: "json";
1794
- status: 403;
1794
+ status: 502;
1795
1795
  input: {
1796
1796
  query?: {
1797
1797
  chainId?: string | string[];
@@ -1811,14 +1811,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
1811
1811
  } | {
1812
1812
  output: {
1813
1813
  error: {
1814
- code: "payment_required" | "rate_limit_exceeded";
1814
+ code: "body_invalid";
1815
1815
  details?: readonly Response.error.Detail[] | undefined;
1816
1816
  message: string;
1817
1817
  };
1818
1818
  requestId: string;
1819
1819
  };
1820
1820
  outputFormat: "json";
1821
- status: 429;
1821
+ status: 400;
1822
1822
  input: {
1823
1823
  query?: {
1824
1824
  chainId?: string | string[];
@@ -2355,14 +2355,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2355
2355
  } | {
2356
2356
  output: {
2357
2357
  error: {
2358
- code: "body_invalid";
2358
+ code: "payload_too_large";
2359
2359
  details?: readonly Response.error.Detail[] | undefined;
2360
2360
  message: string;
2361
2361
  };
2362
2362
  requestId: string;
2363
2363
  };
2364
2364
  outputFormat: "json";
2365
- status: 400;
2365
+ status: 413;
2366
2366
  input: {
2367
2367
  query?: {
2368
2368
  chainId?: string | string[];
@@ -2382,14 +2382,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2382
2382
  } | {
2383
2383
  output: {
2384
2384
  error: {
2385
- code: "upstream_error";
2385
+ code: "api_key_malformed";
2386
2386
  details?: readonly Response.error.Detail[] | undefined;
2387
2387
  message: string;
2388
2388
  };
2389
2389
  requestId: string;
2390
2390
  };
2391
2391
  outputFormat: "json";
2392
- status: 502;
2392
+ status: 400;
2393
2393
  input: {
2394
2394
  query?: {
2395
2395
  chainId?: string | string[];
@@ -2409,14 +2409,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2409
2409
  } | {
2410
2410
  output: {
2411
2411
  error: {
2412
- code: "query_invalid";
2412
+ code: "api_key_invalid" | "api_key_missing";
2413
2413
  details?: readonly Response.error.Detail[] | undefined;
2414
2414
  message: string;
2415
2415
  };
2416
2416
  requestId: string;
2417
2417
  };
2418
2418
  outputFormat: "json";
2419
- status: 400;
2419
+ status: 401;
2420
2420
  input: {
2421
2421
  query?: {
2422
2422
  chainId?: string | string[];
@@ -2436,14 +2436,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2436
2436
  } | {
2437
2437
  output: {
2438
2438
  error: {
2439
- code: "payload_too_large";
2439
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2440
2440
  details?: readonly Response.error.Detail[] | undefined;
2441
2441
  message: string;
2442
2442
  };
2443
2443
  requestId: string;
2444
2444
  };
2445
2445
  outputFormat: "json";
2446
- status: 413;
2446
+ status: 403;
2447
2447
  input: {
2448
2448
  query?: {
2449
2449
  chainId?: string | string[];
@@ -2463,14 +2463,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2463
2463
  } | {
2464
2464
  output: {
2465
2465
  error: {
2466
- code: "api_key_malformed";
2466
+ code: "payment_required" | "rate_limit_exceeded";
2467
2467
  details?: readonly Response.error.Detail[] | undefined;
2468
2468
  message: string;
2469
2469
  };
2470
2470
  requestId: string;
2471
2471
  };
2472
2472
  outputFormat: "json";
2473
- status: 400;
2473
+ status: 429;
2474
2474
  input: {
2475
2475
  query?: {
2476
2476
  chainId?: string | string[];
@@ -2490,14 +2490,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2490
2490
  } | {
2491
2491
  output: {
2492
2492
  error: {
2493
- code: "api_key_invalid" | "api_key_missing";
2493
+ code: "query_invalid";
2494
2494
  details?: readonly Response.error.Detail[] | undefined;
2495
2495
  message: string;
2496
2496
  };
2497
2497
  requestId: string;
2498
2498
  };
2499
2499
  outputFormat: "json";
2500
- status: 401;
2500
+ status: 400;
2501
2501
  input: {
2502
2502
  query?: {
2503
2503
  chainId?: string | string[];
@@ -2517,14 +2517,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2517
2517
  } | {
2518
2518
  output: {
2519
2519
  error: {
2520
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2520
+ code: "upstream_error";
2521
2521
  details?: readonly Response.error.Detail[] | undefined;
2522
2522
  message: string;
2523
2523
  };
2524
2524
  requestId: string;
2525
2525
  };
2526
2526
  outputFormat: "json";
2527
- status: 403;
2527
+ status: 502;
2528
2528
  input: {
2529
2529
  query?: {
2530
2530
  chainId?: string | string[];
@@ -2544,14 +2544,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
2544
2544
  } | {
2545
2545
  output: {
2546
2546
  error: {
2547
- code: "payment_required" | "rate_limit_exceeded";
2547
+ code: "body_invalid";
2548
2548
  details?: readonly Response.error.Detail[] | undefined;
2549
2549
  message: string;
2550
2550
  };
2551
2551
  requestId: string;
2552
2552
  };
2553
2553
  outputFormat: "json";
2554
- status: 429;
2554
+ status: 400;
2555
2555
  input: {
2556
2556
  query?: {
2557
2557
  chainId?: string | string[];
@@ -3089,14 +3089,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3089
3089
  } | {
3090
3090
  output: {
3091
3091
  error: {
3092
- code: "body_invalid";
3092
+ code: "payload_too_large";
3093
3093
  details?: readonly Response.error.Detail[] | undefined;
3094
3094
  message: string;
3095
3095
  };
3096
3096
  requestId: string;
3097
3097
  };
3098
3098
  outputFormat: "json";
3099
- status: 400;
3099
+ status: 413;
3100
3100
  input: {
3101
3101
  query?: {
3102
3102
  chainId?: string | string[];
@@ -3114,14 +3114,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3114
3114
  } | {
3115
3115
  output: {
3116
3116
  error: {
3117
- code: "upstream_error";
3117
+ code: "api_key_malformed";
3118
3118
  details?: readonly Response.error.Detail[] | undefined;
3119
3119
  message: string;
3120
3120
  };
3121
3121
  requestId: string;
3122
3122
  };
3123
3123
  outputFormat: "json";
3124
- status: 502;
3124
+ status: 400;
3125
3125
  input: {
3126
3126
  query?: {
3127
3127
  chainId?: string | string[];
@@ -3139,14 +3139,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3139
3139
  } | {
3140
3140
  output: {
3141
3141
  error: {
3142
- code: "query_invalid";
3142
+ code: "api_key_invalid" | "api_key_missing";
3143
3143
  details?: readonly Response.error.Detail[] | undefined;
3144
3144
  message: string;
3145
3145
  };
3146
3146
  requestId: string;
3147
3147
  };
3148
3148
  outputFormat: "json";
3149
- status: 400;
3149
+ status: 401;
3150
3150
  input: {
3151
3151
  query?: {
3152
3152
  chainId?: string | string[];
@@ -3164,14 +3164,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3164
3164
  } | {
3165
3165
  output: {
3166
3166
  error: {
3167
- code: "payload_too_large";
3167
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3168
3168
  details?: readonly Response.error.Detail[] | undefined;
3169
3169
  message: string;
3170
3170
  };
3171
3171
  requestId: string;
3172
3172
  };
3173
3173
  outputFormat: "json";
3174
- status: 413;
3174
+ status: 403;
3175
3175
  input: {
3176
3176
  query?: {
3177
3177
  chainId?: string | string[];
@@ -3189,14 +3189,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3189
3189
  } | {
3190
3190
  output: {
3191
3191
  error: {
3192
- code: "api_key_malformed";
3192
+ code: "payment_required" | "rate_limit_exceeded";
3193
3193
  details?: readonly Response.error.Detail[] | undefined;
3194
3194
  message: string;
3195
3195
  };
3196
3196
  requestId: string;
3197
3197
  };
3198
3198
  outputFormat: "json";
3199
- status: 400;
3199
+ status: 429;
3200
3200
  input: {
3201
3201
  query?: {
3202
3202
  chainId?: string | string[];
@@ -3214,14 +3214,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3214
3214
  } | {
3215
3215
  output: {
3216
3216
  error: {
3217
- code: "api_key_invalid" | "api_key_missing";
3217
+ code: "query_invalid";
3218
3218
  details?: readonly Response.error.Detail[] | undefined;
3219
3219
  message: string;
3220
3220
  };
3221
3221
  requestId: string;
3222
3222
  };
3223
3223
  outputFormat: "json";
3224
- status: 401;
3224
+ status: 400;
3225
3225
  input: {
3226
3226
  query?: {
3227
3227
  chainId?: string | string[];
@@ -3239,14 +3239,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3239
3239
  } | {
3240
3240
  output: {
3241
3241
  error: {
3242
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3242
+ code: "upstream_error";
3243
3243
  details?: readonly Response.error.Detail[] | undefined;
3244
3244
  message: string;
3245
3245
  };
3246
3246
  requestId: string;
3247
3247
  };
3248
3248
  outputFormat: "json";
3249
- status: 403;
3249
+ status: 502;
3250
3250
  input: {
3251
3251
  query?: {
3252
3252
  chainId?: string | string[];
@@ -3264,14 +3264,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3264
3264
  } | {
3265
3265
  output: {
3266
3266
  error: {
3267
- code: "payment_required" | "rate_limit_exceeded";
3267
+ code: "body_invalid";
3268
3268
  details?: readonly Response.error.Detail[] | undefined;
3269
3269
  message: string;
3270
3270
  };
3271
3271
  requestId: string;
3272
3272
  };
3273
3273
  outputFormat: "json";
3274
- status: 429;
3274
+ status: 400;
3275
3275
  input: {
3276
3276
  query?: {
3277
3277
  chainId?: string | string[];
@@ -3393,14 +3393,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3393
3393
  } | {
3394
3394
  output: {
3395
3395
  error: {
3396
- code: "upstream_error";
3396
+ code: "api_key_malformed";
3397
3397
  details?: readonly Response.error.Detail[] | undefined;
3398
3398
  message: string;
3399
3399
  };
3400
3400
  requestId: string;
3401
3401
  };
3402
3402
  outputFormat: "json";
3403
- status: 502;
3403
+ status: 400;
3404
3404
  input: {
3405
3405
  query?: {
3406
3406
  'blockNumber.from'?: string | string[];
@@ -3422,14 +3422,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3422
3422
  } | {
3423
3423
  output: {
3424
3424
  error: {
3425
- code: "query_invalid";
3425
+ code: "api_key_invalid" | "api_key_missing";
3426
3426
  details?: readonly Response.error.Detail[] | undefined;
3427
3427
  message: string;
3428
3428
  };
3429
3429
  requestId: string;
3430
3430
  };
3431
3431
  outputFormat: "json";
3432
- status: 400;
3432
+ status: 401;
3433
3433
  input: {
3434
3434
  query?: {
3435
3435
  'blockNumber.from'?: string | string[];
@@ -3451,14 +3451,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3451
3451
  } | {
3452
3452
  output: {
3453
3453
  error: {
3454
- code: "api_key_malformed";
3454
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3455
3455
  details?: readonly Response.error.Detail[] | undefined;
3456
3456
  message: string;
3457
3457
  };
3458
3458
  requestId: string;
3459
3459
  };
3460
3460
  outputFormat: "json";
3461
- status: 400;
3461
+ status: 403;
3462
3462
  input: {
3463
3463
  query?: {
3464
3464
  'blockNumber.from'?: string | string[];
@@ -3480,14 +3480,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3480
3480
  } | {
3481
3481
  output: {
3482
3482
  error: {
3483
- code: "api_key_invalid" | "api_key_missing";
3483
+ code: "payment_required" | "rate_limit_exceeded";
3484
3484
  details?: readonly Response.error.Detail[] | undefined;
3485
3485
  message: string;
3486
3486
  };
3487
3487
  requestId: string;
3488
3488
  };
3489
3489
  outputFormat: "json";
3490
- status: 401;
3490
+ status: 429;
3491
3491
  input: {
3492
3492
  query?: {
3493
3493
  'blockNumber.from'?: string | string[];
@@ -3509,14 +3509,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3509
3509
  } | {
3510
3510
  output: {
3511
3511
  error: {
3512
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3512
+ code: "query_invalid";
3513
3513
  details?: readonly Response.error.Detail[] | undefined;
3514
3514
  message: string;
3515
3515
  };
3516
3516
  requestId: string;
3517
3517
  };
3518
3518
  outputFormat: "json";
3519
- status: 403;
3519
+ status: 400;
3520
3520
  input: {
3521
3521
  query?: {
3522
3522
  'blockNumber.from'?: string | string[];
@@ -3538,14 +3538,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3538
3538
  } | {
3539
3539
  output: {
3540
3540
  error: {
3541
- code: "payment_required" | "rate_limit_exceeded";
3541
+ code: "upstream_error";
3542
3542
  details?: readonly Response.error.Detail[] | undefined;
3543
3543
  message: string;
3544
3544
  };
3545
3545
  requestId: string;
3546
3546
  };
3547
3547
  outputFormat: "json";
3548
- status: 429;
3548
+ status: 502;
3549
3549
  input: {
3550
3550
  query?: {
3551
3551
  'blockNumber.from'?: string | string[];
@@ -3711,14 +3711,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3711
3711
  } | {
3712
3712
  output: {
3713
3713
  error: {
3714
- code: "upstream_error";
3714
+ code: "api_key_malformed";
3715
3715
  details?: readonly Response.error.Detail[] | undefined;
3716
3716
  message: string;
3717
3717
  };
3718
3718
  requestId: string;
3719
3719
  };
3720
3720
  outputFormat: "json";
3721
- status: 502;
3721
+ status: 400;
3722
3722
  input: {
3723
3723
  query?: {
3724
3724
  chainId?: string | string[];
@@ -3733,14 +3733,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3733
3733
  } | {
3734
3734
  output: {
3735
3735
  error: {
3736
- code: "query_invalid";
3736
+ code: "api_key_invalid" | "api_key_missing";
3737
3737
  details?: readonly Response.error.Detail[] | undefined;
3738
3738
  message: string;
3739
3739
  };
3740
3740
  requestId: string;
3741
3741
  };
3742
3742
  outputFormat: "json";
3743
- status: 400;
3743
+ status: 401;
3744
3744
  input: {
3745
3745
  query?: {
3746
3746
  chainId?: string | string[];
@@ -3755,14 +3755,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3755
3755
  } | {
3756
3756
  output: {
3757
3757
  error: {
3758
- code: "api_key_malformed";
3758
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3759
3759
  details?: readonly Response.error.Detail[] | undefined;
3760
3760
  message: string;
3761
3761
  };
3762
3762
  requestId: string;
3763
3763
  };
3764
3764
  outputFormat: "json";
3765
- status: 400;
3765
+ status: 403;
3766
3766
  input: {
3767
3767
  query?: {
3768
3768
  chainId?: string | string[];
@@ -3777,14 +3777,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3777
3777
  } | {
3778
3778
  output: {
3779
3779
  error: {
3780
- code: "api_key_invalid" | "api_key_missing";
3780
+ code: "payment_required" | "rate_limit_exceeded";
3781
3781
  details?: readonly Response.error.Detail[] | undefined;
3782
3782
  message: string;
3783
3783
  };
3784
3784
  requestId: string;
3785
3785
  };
3786
3786
  outputFormat: "json";
3787
- status: 401;
3787
+ status: 429;
3788
3788
  input: {
3789
3789
  query?: {
3790
3790
  chainId?: string | string[];
@@ -3799,14 +3799,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3799
3799
  } | {
3800
3800
  output: {
3801
3801
  error: {
3802
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3802
+ code: "query_invalid";
3803
3803
  details?: readonly Response.error.Detail[] | undefined;
3804
3804
  message: string;
3805
3805
  };
3806
3806
  requestId: string;
3807
3807
  };
3808
3808
  outputFormat: "json";
3809
- status: 403;
3809
+ status: 400;
3810
3810
  input: {
3811
3811
  query?: {
3812
3812
  chainId?: string | string[];
@@ -3821,14 +3821,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3821
3821
  } | {
3822
3822
  output: {
3823
3823
  error: {
3824
- code: "payment_required" | "rate_limit_exceeded";
3824
+ code: "upstream_error";
3825
3825
  details?: readonly Response.error.Detail[] | undefined;
3826
3826
  message: string;
3827
3827
  };
3828
3828
  requestId: string;
3829
3829
  };
3830
3830
  outputFormat: "json";
3831
- status: 429;
3831
+ status: 502;
3832
3832
  input: {
3833
3833
  query?: {
3834
3834
  chainId?: string | string[];
@@ -3908,14 +3908,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3908
3908
  } | {
3909
3909
  output: {
3910
3910
  error: {
3911
- code: "upstream_error";
3911
+ code: "api_key_malformed";
3912
3912
  details?: readonly Response.error.Detail[] | undefined;
3913
3913
  message: string;
3914
3914
  };
3915
3915
  requestId: string;
3916
3916
  };
3917
3917
  outputFormat: "json";
3918
- status: 502;
3918
+ status: 400;
3919
3919
  input: {
3920
3920
  param: {
3921
3921
  base: `0x${string}`;
@@ -3929,14 +3929,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3929
3929
  } | {
3930
3930
  output: {
3931
3931
  error: {
3932
- code: "query_invalid";
3932
+ code: "api_key_invalid" | "api_key_missing";
3933
3933
  details?: readonly Response.error.Detail[] | undefined;
3934
3934
  message: string;
3935
3935
  };
3936
3936
  requestId: string;
3937
3937
  };
3938
3938
  outputFormat: "json";
3939
- status: 400;
3939
+ status: 401;
3940
3940
  input: {
3941
3941
  param: {
3942
3942
  base: `0x${string}`;
@@ -3950,14 +3950,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3950
3950
  } | {
3951
3951
  output: {
3952
3952
  error: {
3953
- code: "api_key_malformed";
3953
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3954
3954
  details?: readonly Response.error.Detail[] | undefined;
3955
3955
  message: string;
3956
3956
  };
3957
3957
  requestId: string;
3958
3958
  };
3959
3959
  outputFormat: "json";
3960
- status: 400;
3960
+ status: 403;
3961
3961
  input: {
3962
3962
  param: {
3963
3963
  base: `0x${string}`;
@@ -3971,14 +3971,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3971
3971
  } | {
3972
3972
  output: {
3973
3973
  error: {
3974
- code: "api_key_invalid" | "api_key_missing";
3974
+ code: "payment_required" | "rate_limit_exceeded";
3975
3975
  details?: readonly Response.error.Detail[] | undefined;
3976
3976
  message: string;
3977
3977
  };
3978
3978
  requestId: string;
3979
3979
  };
3980
3980
  outputFormat: "json";
3981
- status: 401;
3981
+ status: 429;
3982
3982
  input: {
3983
3983
  param: {
3984
3984
  base: `0x${string}`;
@@ -3992,14 +3992,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
3992
3992
  } | {
3993
3993
  output: {
3994
3994
  error: {
3995
- code: "api_key_forbidden" | "api_key_ip_forbidden";
3995
+ code: "query_invalid";
3996
3996
  details?: readonly Response.error.Detail[] | undefined;
3997
3997
  message: string;
3998
3998
  };
3999
3999
  requestId: string;
4000
4000
  };
4001
4001
  outputFormat: "json";
4002
- status: 403;
4002
+ status: 400;
4003
4003
  input: {
4004
4004
  param: {
4005
4005
  base: `0x${string}`;
@@ -4013,14 +4013,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4013
4013
  } | {
4014
4014
  output: {
4015
4015
  error: {
4016
- code: "payment_required" | "rate_limit_exceeded";
4016
+ code: "upstream_error";
4017
4017
  details?: readonly Response.error.Detail[] | undefined;
4018
4018
  message: string;
4019
4019
  };
4020
4020
  requestId: string;
4021
4021
  };
4022
4022
  outputFormat: "json";
4023
- status: 429;
4023
+ status: 502;
4024
4024
  input: {
4025
4025
  param: {
4026
4026
  base: `0x${string}`;
@@ -4137,14 +4137,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4137
4137
  } | {
4138
4138
  output: {
4139
4139
  error: {
4140
- code: "upstream_error";
4140
+ code: "api_key_malformed";
4141
4141
  details?: readonly Response.error.Detail[] | undefined;
4142
4142
  message: string;
4143
4143
  };
4144
4144
  requestId: string;
4145
4145
  };
4146
4146
  outputFormat: "json";
4147
- status: 502;
4147
+ status: 400;
4148
4148
  input: {
4149
4149
  query?: {
4150
4150
  base?: string | string[];
@@ -4162,14 +4162,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4162
4162
  } | {
4163
4163
  output: {
4164
4164
  error: {
4165
- code: "query_invalid";
4165
+ code: "api_key_invalid" | "api_key_missing";
4166
4166
  details?: readonly Response.error.Detail[] | undefined;
4167
4167
  message: string;
4168
4168
  };
4169
4169
  requestId: string;
4170
4170
  };
4171
4171
  outputFormat: "json";
4172
- status: 400;
4172
+ status: 401;
4173
4173
  input: {
4174
4174
  query?: {
4175
4175
  base?: string | string[];
@@ -4187,14 +4187,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4187
4187
  } | {
4188
4188
  output: {
4189
4189
  error: {
4190
- code: "api_key_malformed";
4190
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4191
4191
  details?: readonly Response.error.Detail[] | undefined;
4192
4192
  message: string;
4193
4193
  };
4194
4194
  requestId: string;
4195
4195
  };
4196
4196
  outputFormat: "json";
4197
- status: 400;
4197
+ status: 403;
4198
4198
  input: {
4199
4199
  query?: {
4200
4200
  base?: string | string[];
@@ -4212,14 +4212,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4212
4212
  } | {
4213
4213
  output: {
4214
4214
  error: {
4215
- code: "api_key_invalid" | "api_key_missing";
4215
+ code: "payment_required" | "rate_limit_exceeded";
4216
4216
  details?: readonly Response.error.Detail[] | undefined;
4217
4217
  message: string;
4218
4218
  };
4219
4219
  requestId: string;
4220
4220
  };
4221
4221
  outputFormat: "json";
4222
- status: 401;
4222
+ status: 429;
4223
4223
  input: {
4224
4224
  query?: {
4225
4225
  base?: string | string[];
@@ -4237,14 +4237,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4237
4237
  } | {
4238
4238
  output: {
4239
4239
  error: {
4240
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4240
+ code: "query_invalid";
4241
4241
  details?: readonly Response.error.Detail[] | undefined;
4242
4242
  message: string;
4243
4243
  };
4244
4244
  requestId: string;
4245
4245
  };
4246
4246
  outputFormat: "json";
4247
- status: 403;
4247
+ status: 400;
4248
4248
  input: {
4249
4249
  query?: {
4250
4250
  base?: string | string[];
@@ -4262,14 +4262,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4262
4262
  } | {
4263
4263
  output: {
4264
4264
  error: {
4265
- code: "payment_required" | "rate_limit_exceeded";
4265
+ code: "upstream_error";
4266
4266
  details?: readonly Response.error.Detail[] | undefined;
4267
4267
  message: string;
4268
4268
  };
4269
4269
  requestId: string;
4270
4270
  };
4271
4271
  outputFormat: "json";
4272
- status: 429;
4272
+ status: 502;
4273
4273
  input: {
4274
4274
  query?: {
4275
4275
  base?: string | string[];
@@ -4391,14 +4391,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4391
4391
  } | {
4392
4392
  output: {
4393
4393
  error: {
4394
- code: "upstream_error";
4394
+ code: "api_key_malformed";
4395
4395
  details?: readonly Response.error.Detail[] | undefined;
4396
4396
  message: string;
4397
4397
  };
4398
4398
  requestId: string;
4399
4399
  };
4400
4400
  outputFormat: "json";
4401
- status: 502;
4401
+ status: 400;
4402
4402
  input: {
4403
4403
  param: {
4404
4404
  orderId: string;
@@ -4412,14 +4412,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4412
4412
  } | {
4413
4413
  output: {
4414
4414
  error: {
4415
- code: "query_invalid";
4415
+ code: "api_key_invalid" | "api_key_missing";
4416
4416
  details?: readonly Response.error.Detail[] | undefined;
4417
4417
  message: string;
4418
4418
  };
4419
4419
  requestId: string;
4420
4420
  };
4421
4421
  outputFormat: "json";
4422
- status: 400;
4422
+ status: 401;
4423
4423
  input: {
4424
4424
  param: {
4425
4425
  orderId: string;
@@ -4433,14 +4433,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4433
4433
  } | {
4434
4434
  output: {
4435
4435
  error: {
4436
- code: "api_key_malformed";
4436
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4437
4437
  details?: readonly Response.error.Detail[] | undefined;
4438
4438
  message: string;
4439
4439
  };
4440
4440
  requestId: string;
4441
4441
  };
4442
4442
  outputFormat: "json";
4443
- status: 400;
4443
+ status: 403;
4444
4444
  input: {
4445
4445
  param: {
4446
4446
  orderId: string;
@@ -4454,14 +4454,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4454
4454
  } | {
4455
4455
  output: {
4456
4456
  error: {
4457
- code: "api_key_invalid" | "api_key_missing";
4457
+ code: "payment_required" | "rate_limit_exceeded";
4458
4458
  details?: readonly Response.error.Detail[] | undefined;
4459
4459
  message: string;
4460
4460
  };
4461
4461
  requestId: string;
4462
4462
  };
4463
4463
  outputFormat: "json";
4464
- status: 401;
4464
+ status: 429;
4465
4465
  input: {
4466
4466
  param: {
4467
4467
  orderId: string;
@@ -4475,14 +4475,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4475
4475
  } | {
4476
4476
  output: {
4477
4477
  error: {
4478
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4478
+ code: "query_invalid";
4479
4479
  details?: readonly Response.error.Detail[] | undefined;
4480
4480
  message: string;
4481
4481
  };
4482
4482
  requestId: string;
4483
4483
  };
4484
4484
  outputFormat: "json";
4485
- status: 403;
4485
+ status: 400;
4486
4486
  input: {
4487
4487
  param: {
4488
4488
  orderId: string;
@@ -4496,14 +4496,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4496
4496
  } | {
4497
4497
  output: {
4498
4498
  error: {
4499
- code: "payment_required" | "rate_limit_exceeded";
4499
+ code: "upstream_error";
4500
4500
  details?: readonly Response.error.Detail[] | undefined;
4501
4501
  message: string;
4502
4502
  };
4503
4503
  requestId: string;
4504
4504
  };
4505
4505
  outputFormat: "json";
4506
- status: 429;
4506
+ status: 502;
4507
4507
  input: {
4508
4508
  param: {
4509
4509
  orderId: string;
@@ -4629,14 +4629,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4629
4629
  } | {
4630
4630
  output: {
4631
4631
  error: {
4632
- code: "upstream_error";
4632
+ code: "api_key_malformed";
4633
4633
  details?: readonly Response.error.Detail[] | undefined;
4634
4634
  message: string;
4635
4635
  };
4636
4636
  requestId: string;
4637
4637
  };
4638
4638
  outputFormat: "json";
4639
- status: 502;
4639
+ status: 400;
4640
4640
  input: {
4641
4641
  param: {
4642
4642
  orderId: string;
@@ -4654,14 +4654,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4654
4654
  } | {
4655
4655
  output: {
4656
4656
  error: {
4657
- code: "query_invalid";
4657
+ code: "api_key_invalid" | "api_key_missing";
4658
4658
  details?: readonly Response.error.Detail[] | undefined;
4659
4659
  message: string;
4660
4660
  };
4661
4661
  requestId: string;
4662
4662
  };
4663
4663
  outputFormat: "json";
4664
- status: 400;
4664
+ status: 401;
4665
4665
  input: {
4666
4666
  param: {
4667
4667
  orderId: string;
@@ -4679,14 +4679,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4679
4679
  } | {
4680
4680
  output: {
4681
4681
  error: {
4682
- code: "api_key_malformed";
4682
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4683
4683
  details?: readonly Response.error.Detail[] | undefined;
4684
4684
  message: string;
4685
4685
  };
4686
4686
  requestId: string;
4687
4687
  };
4688
4688
  outputFormat: "json";
4689
- status: 400;
4689
+ status: 403;
4690
4690
  input: {
4691
4691
  param: {
4692
4692
  orderId: string;
@@ -4704,14 +4704,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4704
4704
  } | {
4705
4705
  output: {
4706
4706
  error: {
4707
- code: "api_key_invalid" | "api_key_missing";
4707
+ code: "payment_required" | "rate_limit_exceeded";
4708
4708
  details?: readonly Response.error.Detail[] | undefined;
4709
4709
  message: string;
4710
4710
  };
4711
4711
  requestId: string;
4712
4712
  };
4713
4713
  outputFormat: "json";
4714
- status: 401;
4714
+ status: 429;
4715
4715
  input: {
4716
4716
  param: {
4717
4717
  orderId: string;
@@ -4729,14 +4729,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4729
4729
  } | {
4730
4730
  output: {
4731
4731
  error: {
4732
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4732
+ code: "query_invalid";
4733
4733
  details?: readonly Response.error.Detail[] | undefined;
4734
4734
  message: string;
4735
4735
  };
4736
4736
  requestId: string;
4737
4737
  };
4738
4738
  outputFormat: "json";
4739
- status: 403;
4739
+ status: 400;
4740
4740
  input: {
4741
4741
  param: {
4742
4742
  orderId: string;
@@ -4754,14 +4754,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4754
4754
  } | {
4755
4755
  output: {
4756
4756
  error: {
4757
- code: "payment_required" | "rate_limit_exceeded";
4757
+ code: "upstream_error";
4758
4758
  details?: readonly Response.error.Detail[] | undefined;
4759
4759
  message: string;
4760
4760
  };
4761
4761
  requestId: string;
4762
4762
  };
4763
4763
  outputFormat: "json";
4764
- status: 429;
4764
+ status: 502;
4765
4765
  input: {
4766
4766
  param: {
4767
4767
  orderId: string;
@@ -4859,14 +4859,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4859
4859
  } | {
4860
4860
  output: {
4861
4861
  error: {
4862
- code: "upstream_error";
4862
+ code: "api_key_malformed";
4863
4863
  details?: readonly Response.error.Detail[] | undefined;
4864
4864
  message: string;
4865
4865
  };
4866
4866
  requestId: string;
4867
4867
  };
4868
4868
  outputFormat: "json";
4869
- status: 502;
4869
+ status: 400;
4870
4870
  input: {
4871
4871
  param: {
4872
4872
  base: `0x${string}`;
@@ -4882,14 +4882,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4882
4882
  } | {
4883
4883
  output: {
4884
4884
  error: {
4885
- code: "query_invalid";
4885
+ code: "api_key_invalid" | "api_key_missing";
4886
4886
  details?: readonly Response.error.Detail[] | undefined;
4887
4887
  message: string;
4888
4888
  };
4889
4889
  requestId: string;
4890
4890
  };
4891
4891
  outputFormat: "json";
4892
- status: 400;
4892
+ status: 401;
4893
4893
  input: {
4894
4894
  param: {
4895
4895
  base: `0x${string}`;
@@ -4905,14 +4905,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4905
4905
  } | {
4906
4906
  output: {
4907
4907
  error: {
4908
- code: "api_key_malformed";
4908
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4909
4909
  details?: readonly Response.error.Detail[] | undefined;
4910
4910
  message: string;
4911
4911
  };
4912
4912
  requestId: string;
4913
4913
  };
4914
4914
  outputFormat: "json";
4915
- status: 400;
4915
+ status: 403;
4916
4916
  input: {
4917
4917
  param: {
4918
4918
  base: `0x${string}`;
@@ -4928,14 +4928,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4928
4928
  } | {
4929
4929
  output: {
4930
4930
  error: {
4931
- code: "api_key_invalid" | "api_key_missing";
4931
+ code: "payment_required" | "rate_limit_exceeded";
4932
4932
  details?: readonly Response.error.Detail[] | undefined;
4933
4933
  message: string;
4934
4934
  };
4935
4935
  requestId: string;
4936
4936
  };
4937
4937
  outputFormat: "json";
4938
- status: 401;
4938
+ status: 429;
4939
4939
  input: {
4940
4940
  param: {
4941
4941
  base: `0x${string}`;
@@ -4951,14 +4951,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4951
4951
  } | {
4952
4952
  output: {
4953
4953
  error: {
4954
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4954
+ code: "query_invalid";
4955
4955
  details?: readonly Response.error.Detail[] | undefined;
4956
4956
  message: string;
4957
4957
  };
4958
4958
  requestId: string;
4959
4959
  };
4960
4960
  outputFormat: "json";
4961
- status: 403;
4961
+ status: 400;
4962
4962
  input: {
4963
4963
  param: {
4964
4964
  base: `0x${string}`;
@@ -4974,14 +4974,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
4974
4974
  } | {
4975
4975
  output: {
4976
4976
  error: {
4977
- code: "payment_required" | "rate_limit_exceeded";
4977
+ code: "upstream_error";
4978
4978
  details?: readonly Response.error.Detail[] | undefined;
4979
4979
  message: string;
4980
4980
  };
4981
4981
  requestId: string;
4982
4982
  };
4983
4983
  outputFormat: "json";
4984
- status: 429;
4984
+ status: 502;
4985
4985
  input: {
4986
4986
  param: {
4987
4987
  base: `0x${string}`;
@@ -5113,14 +5113,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5113
5113
  } | {
5114
5114
  output: {
5115
5115
  error: {
5116
- code: "upstream_error";
5116
+ code: "api_key_malformed";
5117
5117
  details?: readonly Response.error.Detail[] | undefined;
5118
5118
  message: string;
5119
5119
  };
5120
5120
  requestId: string;
5121
5121
  };
5122
5122
  outputFormat: "json";
5123
- status: 502;
5123
+ status: 400;
5124
5124
  input: {
5125
5125
  param: {
5126
5126
  base: `0x${string}`;
@@ -5135,14 +5135,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5135
5135
  } | {
5136
5136
  output: {
5137
5137
  error: {
5138
- code: "query_invalid";
5138
+ code: "api_key_invalid" | "api_key_missing";
5139
5139
  details?: readonly Response.error.Detail[] | undefined;
5140
5140
  message: string;
5141
5141
  };
5142
5142
  requestId: string;
5143
5143
  };
5144
5144
  outputFormat: "json";
5145
- status: 400;
5145
+ status: 401;
5146
5146
  input: {
5147
5147
  param: {
5148
5148
  base: `0x${string}`;
@@ -5157,14 +5157,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5157
5157
  } | {
5158
5158
  output: {
5159
5159
  error: {
5160
- code: "api_key_malformed";
5160
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
5161
5161
  details?: readonly Response.error.Detail[] | undefined;
5162
5162
  message: string;
5163
5163
  };
5164
5164
  requestId: string;
5165
5165
  };
5166
5166
  outputFormat: "json";
5167
- status: 400;
5167
+ status: 403;
5168
5168
  input: {
5169
5169
  param: {
5170
5170
  base: `0x${string}`;
@@ -5179,14 +5179,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5179
5179
  } | {
5180
5180
  output: {
5181
5181
  error: {
5182
- code: "api_key_invalid" | "api_key_missing";
5182
+ code: "payment_required" | "rate_limit_exceeded";
5183
5183
  details?: readonly Response.error.Detail[] | undefined;
5184
5184
  message: string;
5185
5185
  };
5186
5186
  requestId: string;
5187
5187
  };
5188
5188
  outputFormat: "json";
5189
- status: 401;
5189
+ status: 429;
5190
5190
  input: {
5191
5191
  param: {
5192
5192
  base: `0x${string}`;
@@ -5201,14 +5201,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5201
5201
  } | {
5202
5202
  output: {
5203
5203
  error: {
5204
- code: "api_key_forbidden" | "api_key_ip_forbidden";
5204
+ code: "query_invalid";
5205
5205
  details?: readonly Response.error.Detail[] | undefined;
5206
5206
  message: string;
5207
5207
  };
5208
5208
  requestId: string;
5209
5209
  };
5210
5210
  outputFormat: "json";
5211
- status: 403;
5211
+ status: 400;
5212
5212
  input: {
5213
5213
  param: {
5214
5214
  base: `0x${string}`;
@@ -5223,14 +5223,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
5223
5223
  } | {
5224
5224
  output: {
5225
5225
  error: {
5226
- code: "payment_required" | "rate_limit_exceeded";
5226
+ code: "upstream_error";
5227
5227
  details?: readonly Response.error.Detail[] | undefined;
5228
5228
  message: string;
5229
5229
  };
5230
5230
  requestId: string;
5231
5231
  };
5232
5232
  outputFormat: "json";
5233
- status: 429;
5233
+ status: 502;
5234
5234
  input: {
5235
5235
  param: {
5236
5236
  base: `0x${string}`;