tapimo 0.1.0 → 0.3.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 (520) hide show
  1. package/README.md +57 -16
  2. package/dist/ApiKey.d.ts +4 -1
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +6 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +98 -3
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +150 -1
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +7917 -2315
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +141 -329
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +20 -4
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +23 -4
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/Webhooks.d.ts +2 -2
  19. package/dist/Webhooks.d.ts.map +1 -1
  20. package/dist/Webhooks.js +2 -2
  21. package/dist/Webhooks.js.map +1 -1
  22. package/dist/admin/App.d.ts +203 -120
  23. package/dist/admin/App.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.d.ts +111 -6
  25. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  26. package/dist/admin/apps/api-keys.js +67 -0
  27. package/dist/admin/apps/api-keys.js.map +1 -1
  28. package/dist/admin/apps/scopes.d.ts +12 -1
  29. package/dist/admin/apps/scopes.d.ts.map +1 -1
  30. package/dist/admin/apps/scopes.js +3 -0
  31. package/dist/admin/apps/scopes.js.map +1 -1
  32. package/dist/admin/apps/verified-tokens.d.ts +116 -116
  33. package/dist/admin/apps/verified-tokens.js +1 -1
  34. package/dist/admin/apps/verified-tokens.js.map +1 -1
  35. package/dist/admin/ui.generated.d.ts +1 -1
  36. package/dist/admin/ui.generated.js +13 -13
  37. package/dist/admin/ui.generated.js.map +1 -1
  38. package/dist/analytics/Analytics.d.ts +151 -0
  39. package/dist/analytics/Analytics.d.ts.map +1 -0
  40. package/dist/analytics/Analytics.js +212 -0
  41. package/dist/analytics/Analytics.js.map +1 -0
  42. package/dist/analytics/tables/requestEvents.d.ts +215 -0
  43. package/dist/analytics/tables/requestEvents.d.ts.map +1 -0
  44. package/dist/analytics/tables/requestEvents.js +264 -0
  45. package/dist/analytics/tables/requestEvents.js.map +1 -0
  46. package/dist/apps/data/App.d.ts +19576 -0
  47. package/dist/apps/data/App.d.ts.map +1 -0
  48. package/dist/apps/data/App.js +272 -0
  49. package/dist/apps/data/App.js.map +1 -0
  50. package/dist/apps/data/index.d.ts +3 -0
  51. package/dist/apps/data/index.d.ts.map +1 -0
  52. package/dist/apps/data/index.js +3 -0
  53. package/dist/apps/data/index.js.map +1 -0
  54. package/dist/apps/{activities.d.ts → data/routes/activities.d.ts} +32 -32
  55. package/dist/apps/{activities.d.ts.map → data/routes/activities.d.ts.map} +1 -1
  56. package/dist/apps/{activities.js → data/routes/activities.js} +13 -13
  57. package/dist/apps/data/routes/activities.js.map +1 -0
  58. package/dist/apps/{addresses.d.ts → data/routes/addresses.d.ts} +22 -22
  59. package/dist/apps/{addresses.d.ts.map → data/routes/addresses.d.ts.map} +1 -1
  60. package/dist/apps/{addresses.js → data/routes/addresses.js} +5 -5
  61. package/dist/apps/data/routes/addresses.js.map +1 -0
  62. package/dist/apps/{balances.d.ts → data/routes/balances.d.ts} +4 -4
  63. package/dist/apps/data/routes/balances.d.ts.map +1 -0
  64. package/dist/apps/{balances.js → data/routes/balances.js} +42 -11
  65. package/dist/apps/data/routes/balances.js.map +1 -0
  66. package/dist/apps/{blocks.d.ts → data/routes/blocks.d.ts} +47 -47
  67. package/dist/apps/data/routes/blocks.d.ts.map +1 -0
  68. package/dist/apps/{blocks.js → data/routes/blocks.js} +13 -13
  69. package/dist/apps/data/routes/blocks.js.map +1 -0
  70. package/dist/apps/{coingecko.d.ts → data/routes/coingecko.d.ts} +8 -8
  71. package/dist/apps/data/routes/coingecko.d.ts.map +1 -0
  72. package/dist/apps/{coingecko.js → data/routes/coingecko.js} +13 -13
  73. package/dist/apps/data/routes/coingecko.js.map +1 -0
  74. package/dist/apps/{exchanges.d.ts → data/routes/exchanges.d.ts} +108 -108
  75. package/dist/apps/data/routes/exchanges.d.ts.map +1 -0
  76. package/dist/apps/{exchanges.js → data/routes/exchanges.js} +19 -19
  77. package/dist/apps/data/routes/exchanges.js.map +1 -0
  78. package/dist/apps/{fee-amm.d.ts → data/routes/fee-amm.d.ts} +39 -39
  79. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -0
  80. package/dist/apps/{fee-amm.js → data/routes/fee-amm.js} +17 -17
  81. package/dist/apps/data/routes/fee-amm.js.map +1 -0
  82. package/dist/apps/data/routes/funding.d.ts +765 -0
  83. package/dist/apps/data/routes/funding.d.ts.map +1 -0
  84. package/dist/apps/data/routes/funding.js +383 -0
  85. package/dist/apps/data/routes/funding.js.map +1 -0
  86. package/dist/apps/{indexer.d.ts → data/routes/indexer.d.ts} +4 -4
  87. package/dist/apps/data/routes/indexer.d.ts.map +1 -0
  88. package/dist/apps/{indexer.js → data/routes/indexer.js} +13 -9
  89. package/dist/apps/data/routes/indexer.js.map +1 -0
  90. package/dist/apps/{receipts.d.ts → data/routes/receipts.d.ts} +49 -49
  91. package/dist/apps/data/routes/receipts.d.ts.map +1 -0
  92. package/dist/apps/{receipts.js → data/routes/receipts.js} +14 -20
  93. package/dist/apps/data/routes/receipts.js.map +1 -0
  94. package/dist/apps/{rpc.d.ts → data/routes/rpc.d.ts} +33 -40
  95. package/dist/apps/data/routes/rpc.d.ts.map +1 -0
  96. package/dist/apps/{rpc.js → data/routes/rpc.js} +35 -7
  97. package/dist/apps/data/routes/rpc.js.map +1 -0
  98. package/dist/apps/{tokenlist.d.ts → data/routes/tokenlist.d.ts} +40 -40
  99. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -0
  100. package/dist/apps/{tokenlist.js → data/routes/tokenlist.js} +8 -8
  101. package/dist/apps/data/routes/tokenlist.js.map +1 -0
  102. package/dist/apps/{tokens.d.ts → data/routes/tokens.d.ts} +468 -468
  103. package/dist/apps/data/routes/tokens.d.ts.map +1 -0
  104. package/dist/apps/{tokens.js → data/routes/tokens.js} +19 -19
  105. package/dist/apps/data/routes/tokens.js.map +1 -0
  106. package/dist/apps/{transactions.d.ts → data/routes/transactions.d.ts} +304 -304
  107. package/dist/apps/data/routes/transactions.d.ts.map +1 -0
  108. package/dist/apps/{transactions.js → data/routes/transactions.js} +13 -13
  109. package/dist/apps/data/routes/transactions.js.map +1 -0
  110. package/dist/apps/{transfers.d.ts → data/routes/transfers.d.ts} +62 -62
  111. package/dist/apps/data/routes/transfers.d.ts.map +1 -0
  112. package/dist/apps/{transfers.js → data/routes/transfers.js} +13 -13
  113. package/dist/apps/data/routes/transfers.js.map +1 -0
  114. package/dist/apps/{verified-tokens.d.ts → data/routes/verified-tokens.d.ts} +6 -6
  115. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -0
  116. package/dist/apps/{verified-tokens.js → data/routes/verified-tokens.js} +9 -9
  117. package/dist/apps/data/routes/verified-tokens.js.map +1 -0
  118. package/dist/apps/{webhooks.d.ts → data/routes/webhooks.d.ts} +17 -17
  119. package/dist/apps/{webhooks.d.ts.map → data/routes/webhooks.d.ts.map} +1 -1
  120. package/dist/apps/{webhooks.js → data/routes/webhooks.js} +38 -34
  121. package/dist/apps/data/routes/webhooks.js.map +1 -0
  122. package/dist/apps/docs/App.d.ts +29 -0
  123. package/dist/apps/docs/App.d.ts.map +1 -0
  124. package/dist/apps/docs/App.js +54 -0
  125. package/dist/apps/docs/App.js.map +1 -0
  126. package/dist/{internal/OpenApi.fonts.d.ts → apps/docs/fonts.d.ts} +1 -1
  127. package/dist/apps/docs/fonts.d.ts.map +1 -0
  128. package/dist/{internal/OpenApi.fonts.js → apps/docs/fonts.js} +1 -1
  129. package/dist/apps/docs/fonts.js.map +1 -0
  130. package/dist/apps/docs/index.d.ts +2 -0
  131. package/dist/apps/docs/index.d.ts.map +1 -0
  132. package/dist/apps/docs/index.js +2 -0
  133. package/dist/apps/docs/index.js.map +1 -0
  134. package/dist/{internal/OpenApi.logo.d.ts → apps/docs/logo.d.ts} +1 -1
  135. package/dist/apps/docs/logo.d.ts.map +1 -0
  136. package/dist/{internal/OpenApi.logo.js → apps/docs/logo.js} +1 -1
  137. package/dist/apps/docs/logo.js.map +1 -0
  138. package/dist/apps/docs/reference.d.ts +21 -0
  139. package/dist/apps/docs/reference.d.ts.map +1 -0
  140. package/dist/apps/docs/reference.js +112 -0
  141. package/dist/apps/docs/reference.js.map +1 -0
  142. package/dist/apps/index.d.ts +5 -0
  143. package/dist/apps/index.d.ts.map +1 -0
  144. package/dist/apps/index.js +5 -0
  145. package/dist/apps/index.js.map +1 -0
  146. package/dist/apps/mcp.d.ts +76 -0
  147. package/dist/apps/mcp.d.ts.map +1 -0
  148. package/dist/apps/mcp.js +188 -0
  149. package/dist/apps/mcp.js.map +1 -0
  150. package/dist/apps/metadata.d.ts +7 -0
  151. package/dist/apps/metadata.d.ts.map +1 -0
  152. package/dist/apps/metadata.js +15 -0
  153. package/dist/apps/metadata.js.map +1 -0
  154. package/dist/apps/platform/App.d.ts +5262 -0
  155. package/dist/apps/platform/App.d.ts.map +1 -0
  156. package/dist/apps/platform/App.js +84 -0
  157. package/dist/apps/platform/App.js.map +1 -0
  158. package/dist/apps/platform/Billing.d.ts +279 -0
  159. package/dist/apps/platform/Billing.d.ts.map +1 -0
  160. package/dist/apps/platform/Billing.js +477 -0
  161. package/dist/apps/platform/Billing.js.map +1 -0
  162. package/dist/apps/platform/index.d.ts +3 -0
  163. package/dist/apps/platform/index.d.ts.map +1 -0
  164. package/dist/apps/platform/index.js +3 -0
  165. package/dist/apps/platform/index.js.map +1 -0
  166. package/dist/apps/platform/routes/api-keys.d.ts +973 -0
  167. package/dist/apps/platform/routes/api-keys.d.ts.map +1 -0
  168. package/dist/apps/platform/routes/api-keys.js +430 -0
  169. package/dist/apps/platform/routes/api-keys.js.map +1 -0
  170. package/dist/apps/platform/routes/billing.d.ts +1520 -0
  171. package/dist/apps/platform/routes/billing.d.ts.map +1 -0
  172. package/dist/apps/platform/routes/billing.js +795 -0
  173. package/dist/apps/platform/routes/billing.js.map +1 -0
  174. package/dist/apps/platform/routes/invitations.d.ts +851 -0
  175. package/dist/apps/platform/routes/invitations.d.ts.map +1 -0
  176. package/dist/apps/platform/routes/invitations.js +471 -0
  177. package/dist/apps/platform/routes/invitations.js.map +1 -0
  178. package/dist/apps/platform/routes/me.d.ts +95 -0
  179. package/dist/apps/platform/routes/me.d.ts.map +1 -0
  180. package/dist/apps/platform/routes/me.js +81 -0
  181. package/dist/apps/platform/routes/me.js.map +1 -0
  182. package/dist/apps/platform/routes/members.d.ts +554 -0
  183. package/dist/apps/platform/routes/members.d.ts.map +1 -0
  184. package/dist/apps/platform/routes/members.js +251 -0
  185. package/dist/apps/platform/routes/members.js.map +1 -0
  186. package/dist/apps/platform/routes/orgs.d.ts +596 -0
  187. package/dist/apps/platform/routes/orgs.d.ts.map +1 -0
  188. package/dist/apps/platform/routes/orgs.js +276 -0
  189. package/dist/apps/platform/routes/orgs.js.map +1 -0
  190. package/dist/apps/platform/routes/projects.d.ts +740 -0
  191. package/dist/apps/platform/routes/projects.d.ts.map +1 -0
  192. package/dist/apps/platform/routes/projects.js +286 -0
  193. package/dist/apps/platform/routes/projects.js.map +1 -0
  194. package/dist/apps/platform/routes/scopes.d.ts +107 -0
  195. package/dist/apps/platform/routes/scopes.d.ts.map +1 -0
  196. package/dist/apps/platform/routes/scopes.js +66 -0
  197. package/dist/apps/platform/routes/scopes.js.map +1 -0
  198. package/dist/apps/platform/routes/usage.d.ts +588 -0
  199. package/dist/apps/platform/routes/usage.d.ts.map +1 -0
  200. package/dist/apps/platform/routes/usage.js +391 -0
  201. package/dist/apps/platform/routes/usage.js.map +1 -0
  202. package/dist/apps/relay/App.d.ts +44 -0
  203. package/dist/apps/relay/App.d.ts.map +1 -0
  204. package/dist/apps/relay/App.js +211 -0
  205. package/dist/apps/relay/App.js.map +1 -0
  206. package/dist/apps/relay/Sponsorships.d.ts +107 -0
  207. package/dist/apps/relay/Sponsorships.d.ts.map +1 -0
  208. package/dist/apps/relay/Sponsorships.js +194 -0
  209. package/dist/apps/relay/Sponsorships.js.map +1 -0
  210. package/dist/apps/relay/index.d.ts +3 -0
  211. package/dist/apps/relay/index.d.ts.map +1 -0
  212. package/dist/apps/relay/index.js +3 -0
  213. package/dist/apps/relay/index.js.map +1 -0
  214. package/dist/cli/Cli.d.ts +9 -2
  215. package/dist/cli/Cli.d.ts.map +1 -1
  216. package/dist/cli/Cli.js +12 -4
  217. package/dist/cli/Cli.js.map +1 -1
  218. package/dist/cli/commands/admin.d.ts +5 -1
  219. package/dist/cli/commands/admin.d.ts.map +1 -1
  220. package/dist/cli/commands/admin.js +82 -3
  221. package/dist/cli/commands/admin.js.map +1 -1
  222. package/dist/db/Db.d.ts +17 -0
  223. package/dist/db/Db.d.ts.map +1 -1
  224. package/dist/db/Db.js +254 -0
  225. package/dist/db/Db.js.map +1 -1
  226. package/dist/db/Schema.d.ts +159 -0
  227. package/dist/db/Schema.d.ts.map +1 -1
  228. package/dist/db/Schema.js +187 -2
  229. package/dist/db/Schema.js.map +1 -1
  230. package/dist/db/tables/billingSettings.d.ts +55 -0
  231. package/dist/db/tables/billingSettings.d.ts.map +1 -0
  232. package/dist/db/tables/billingSettings.js +70 -0
  233. package/dist/db/tables/billingSettings.js.map +1 -0
  234. package/dist/db/tables/invitations.d.ts +84 -0
  235. package/dist/db/tables/invitations.d.ts.map +1 -0
  236. package/dist/db/tables/invitations.js +165 -0
  237. package/dist/db/tables/invitations.js.map +1 -0
  238. package/dist/db/tables/memberships.d.ts +108 -0
  239. package/dist/db/tables/memberships.d.ts.map +1 -0
  240. package/dist/db/tables/memberships.js +153 -0
  241. package/dist/db/tables/memberships.js.map +1 -0
  242. package/dist/db/tables/organizations.d.ts +48 -0
  243. package/dist/db/tables/organizations.d.ts.map +1 -1
  244. package/dist/db/tables/organizations.js +97 -2
  245. package/dist/db/tables/organizations.js.map +1 -1
  246. package/dist/db/tables/projects.d.ts +65 -0
  247. package/dist/db/tables/projects.d.ts.map +1 -0
  248. package/dist/db/tables/projects.js +75 -0
  249. package/dist/db/tables/projects.js.map +1 -0
  250. package/dist/db/tables/requestUsage.d.ts +121 -0
  251. package/dist/db/tables/requestUsage.d.ts.map +1 -0
  252. package/dist/db/tables/requestUsage.js +150 -0
  253. package/dist/db/tables/requestUsage.js.map +1 -0
  254. package/dist/db/tables/sponsoredTransactions.d.ts +239 -0
  255. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -0
  256. package/dist/db/tables/sponsoredTransactions.js +314 -0
  257. package/dist/db/tables/sponsoredTransactions.js.map +1 -0
  258. package/dist/db/tables/stripeCustomers.d.ts +81 -0
  259. package/dist/db/tables/stripeCustomers.d.ts.map +1 -0
  260. package/dist/db/tables/stripeCustomers.js +120 -0
  261. package/dist/db/tables/stripeCustomers.js.map +1 -0
  262. package/dist/db/tables/users.d.ts +48 -0
  263. package/dist/db/tables/users.d.ts.map +1 -0
  264. package/dist/db/tables/users.js +65 -0
  265. package/dist/db/tables/users.js.map +1 -0
  266. package/dist/handlers/internal/executionError.d.ts.map +1 -1
  267. package/dist/handlers/internal/executionError.js +2 -0
  268. package/dist/handlers/internal/executionError.js.map +1 -1
  269. package/dist/handlers/internal/multisig.d.ts +2 -6
  270. package/dist/handlers/internal/multisig.d.ts.map +1 -1
  271. package/dist/handlers/internal/multisig.js +11 -36
  272. package/dist/handlers/internal/multisig.js.map +1 -1
  273. package/dist/handlers/internal/sponsorship.d.ts +35 -2
  274. package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
  275. package/dist/handlers/internal/sponsorship.js +53 -14
  276. package/dist/handlers/internal/sponsorship.js.map +1 -1
  277. package/dist/handlers/internal/utils.d.ts +10 -3
  278. package/dist/handlers/internal/utils.d.ts.map +1 -1
  279. package/dist/handlers/internal/utils.js +14 -6
  280. package/dist/handlers/internal/utils.js.map +1 -1
  281. package/dist/handlers/relay.d.ts +6 -2
  282. package/dist/handlers/relay.d.ts.map +1 -1
  283. package/dist/handlers/relay.js +16 -2
  284. package/dist/handlers/relay.js.map +1 -1
  285. package/dist/index.d.ts +1 -0
  286. package/dist/index.d.ts.map +1 -1
  287. package/dist/index.js +1 -0
  288. package/dist/index.js.map +1 -1
  289. package/dist/internal/Auth.d.ts +222 -6
  290. package/dist/internal/Auth.d.ts.map +1 -1
  291. package/dist/internal/Auth.js +625 -74
  292. package/dist/internal/Auth.js.map +1 -1
  293. package/dist/internal/Cache.d.ts.map +1 -1
  294. package/dist/internal/Cache.js +4 -1
  295. package/dist/internal/Cache.js.map +1 -1
  296. package/dist/internal/EdgeCache.d.ts +10 -0
  297. package/dist/internal/EdgeCache.d.ts.map +1 -1
  298. package/dist/internal/EdgeCache.js +39 -8
  299. package/dist/internal/EdgeCache.js.map +1 -1
  300. package/dist/internal/Fees.d.ts +27 -0
  301. package/dist/internal/Fees.d.ts.map +1 -0
  302. package/dist/internal/Fees.js +48 -0
  303. package/dist/internal/Fees.js.map +1 -0
  304. package/dist/internal/FundingRoutes.d.ts +183 -0
  305. package/dist/internal/FundingRoutes.d.ts.map +1 -0
  306. package/dist/internal/FundingRoutes.js +490 -0
  307. package/dist/internal/FundingRoutes.js.map +1 -0
  308. package/dist/internal/Id.d.ts +15 -0
  309. package/dist/internal/Id.d.ts.map +1 -0
  310. package/dist/internal/Id.js +22 -0
  311. package/dist/internal/Id.js.map +1 -0
  312. package/dist/internal/Log.d.ts +9 -3
  313. package/dist/internal/Log.d.ts.map +1 -1
  314. package/dist/internal/Log.js +7 -0
  315. package/dist/internal/Log.js.map +1 -1
  316. package/dist/internal/OpenApi.d.ts +10 -20
  317. package/dist/internal/OpenApi.d.ts.map +1 -1
  318. package/dist/internal/OpenApi.js +8 -58
  319. package/dist/internal/OpenApi.js.map +1 -1
  320. package/dist/internal/RateLimit.d.ts +25 -0
  321. package/dist/internal/RateLimit.d.ts.map +1 -1
  322. package/dist/internal/RateLimit.js +51 -0
  323. package/dist/internal/RateLimit.js.map +1 -1
  324. package/dist/internal/Response.d.ts +1 -1
  325. package/dist/internal/Response.d.ts.map +1 -1
  326. package/dist/internal/Schema.d.ts +8 -0
  327. package/dist/internal/Schema.d.ts.map +1 -1
  328. package/dist/internal/Schema.js +7 -0
  329. package/dist/internal/Schema.js.map +1 -1
  330. package/dist/internal/Store.d.ts +7 -1
  331. package/dist/internal/Store.d.ts.map +1 -1
  332. package/dist/internal/Store.js +16 -2
  333. package/dist/internal/Store.js.map +1 -1
  334. package/dist/internal/Viem.d.ts +84 -0
  335. package/dist/internal/Viem.d.ts.map +1 -1
  336. package/dist/internal/Webhooks.d.ts +1 -1
  337. package/dist/internal/Webhooks.d.ts.map +1 -1
  338. package/dist/internal/Webhooks.js +3 -3
  339. package/dist/internal/Webhooks.js.map +1 -1
  340. package/package.json +33 -6
  341. package/src/ApiKey.ts +10 -2
  342. package/src/ApiKeys.test.ts +155 -1
  343. package/src/ApiKeys.ts +203 -1
  344. package/src/App.test.ts +64 -75741
  345. package/src/App.ts +218 -420
  346. package/src/Client.test-d.ts +657 -15
  347. package/src/Scope.ts +26 -4
  348. package/src/Webhooks.ts +2 -2
  349. package/src/admin/apps/api-keys.test.ts +51 -0
  350. package/src/admin/apps/api-keys.ts +84 -0
  351. package/src/admin/apps/scopes.test.ts +11 -1
  352. package/src/admin/apps/scopes.ts +3 -0
  353. package/src/admin/apps/verified-tokens.ts +1 -1
  354. package/src/admin/ui/src/components/Page.tsx +2 -3
  355. package/src/admin/ui/src/routes/__root.tsx +2 -2
  356. package/src/admin/ui/src/routes/api-keys.tsx +2 -2
  357. package/src/admin/ui.generated.ts +13 -13
  358. package/src/analytics/Analytics.test.ts +527 -0
  359. package/src/analytics/Analytics.ts +318 -0
  360. package/src/analytics/tables/requestEvents.ts +523 -0
  361. package/src/apps/composition.test.ts +66 -0
  362. package/src/apps/data/App.test.ts +72 -0
  363. package/src/apps/data/App.ts +330 -0
  364. package/src/apps/data/index.ts +2 -0
  365. package/src/apps/{activities.test.ts → data/routes/activities.test.ts} +3 -3
  366. package/src/apps/{activities.ts → data/routes/activities.ts} +15 -15
  367. package/src/apps/{addresses.ts → data/routes/addresses.ts} +6 -6
  368. package/src/apps/{balances.test.ts → data/routes/balances.test.ts} +2 -2
  369. package/src/apps/{balances.ts → data/routes/balances.ts} +46 -12
  370. package/src/apps/{blocks.test.ts → data/routes/blocks.test.ts} +3 -3
  371. package/src/apps/{blocks.ts → data/routes/blocks.ts} +14 -14
  372. package/src/apps/{coingecko.test.ts → data/routes/coingecko.test.ts} +2 -2
  373. package/src/apps/{coingecko.ts → data/routes/coingecko.ts} +14 -14
  374. package/src/apps/{exchanges.test.ts → data/routes/exchanges.test.ts} +1 -1
  375. package/src/apps/{exchanges.ts → data/routes/exchanges.ts} +20 -20
  376. package/src/apps/{fee-amm.test.ts → data/routes/fee-amm.test.ts} +3 -3
  377. package/src/apps/{fee-amm.ts → data/routes/fee-amm.ts} +18 -18
  378. package/src/apps/data/routes/funding.test.ts +214 -0
  379. package/src/apps/data/routes/funding.ts +584 -0
  380. package/src/apps/{indexer.test.ts → data/routes/indexer.test.ts} +26 -5
  381. package/src/apps/{indexer.ts → data/routes/indexer.ts} +13 -10
  382. package/src/apps/{receipts.test.ts → data/routes/receipts.test.ts} +3 -3
  383. package/src/apps/{receipts.ts → data/routes/receipts.ts} +15 -22
  384. package/src/apps/{rpc.test.ts → data/routes/rpc.test.ts} +122 -7
  385. package/src/apps/{rpc.ts → data/routes/rpc.ts} +38 -8
  386. package/src/apps/{tokenlist.test.ts → data/routes/tokenlist.test.ts} +3 -3
  387. package/src/apps/{tokenlist.ts → data/routes/tokenlist.ts} +9 -9
  388. package/src/apps/{tokens.test.ts → data/routes/tokens.test.ts} +2 -2
  389. package/src/apps/{tokens.ts → data/routes/tokens.ts} +20 -20
  390. package/src/apps/{transactions.test.ts → data/routes/transactions.test.ts} +3 -3
  391. package/src/apps/{transactions.ts → data/routes/transactions.ts} +15 -15
  392. package/src/apps/{transfers.test.ts → data/routes/transfers.test.ts} +2 -2
  393. package/src/apps/{transfers.ts → data/routes/transfers.ts} +15 -15
  394. package/src/apps/{verified-tokens.test.ts → data/routes/verified-tokens.test.ts} +3 -3
  395. package/src/apps/{verified-tokens.ts → data/routes/verified-tokens.ts} +10 -10
  396. package/src/apps/{webhooks.test.ts → data/routes/webhooks.test.ts} +7 -7
  397. package/src/apps/{webhooks.ts → data/routes/webhooks.ts} +50 -43
  398. package/src/apps/docs/App.ts +65 -0
  399. package/src/apps/docs/index.ts +1 -0
  400. package/src/apps/docs/reference.ts +132 -0
  401. package/src/apps/index.ts +4 -0
  402. package/src/apps/mcp.test.ts +206 -0
  403. package/src/apps/mcp.ts +250 -0
  404. package/src/apps/metadata.ts +23 -0
  405. package/src/apps/platform/App.ts +169 -0
  406. package/src/apps/platform/Billing.test.ts +530 -0
  407. package/src/apps/platform/Billing.ts +682 -0
  408. package/src/apps/platform/index.ts +2 -0
  409. package/src/apps/platform/routes/api-keys.test.ts +493 -0
  410. package/src/apps/platform/routes/api-keys.ts +543 -0
  411. package/src/apps/platform/routes/billing.test.ts +1100 -0
  412. package/src/apps/platform/routes/billing.ts +966 -0
  413. package/src/apps/platform/routes/invitations.test.ts +409 -0
  414. package/src/apps/platform/routes/invitations.ts +587 -0
  415. package/src/apps/platform/routes/me.test.ts +351 -0
  416. package/src/apps/platform/routes/me.ts +106 -0
  417. package/src/apps/platform/routes/members.test.ts +195 -0
  418. package/src/apps/platform/routes/members.ts +313 -0
  419. package/src/apps/platform/routes/orgs.test.ts +313 -0
  420. package/src/apps/platform/routes/orgs.ts +365 -0
  421. package/src/apps/platform/routes/projects.test.ts +181 -0
  422. package/src/apps/platform/routes/projects.ts +367 -0
  423. package/src/apps/platform/routes/scopes.test.ts +29 -0
  424. package/src/apps/platform/routes/scopes.ts +85 -0
  425. package/src/apps/platform/routes/usage.test.ts +422 -0
  426. package/src/apps/platform/routes/usage.ts +527 -0
  427. package/src/apps/relay/App.test.ts +933 -0
  428. package/src/apps/relay/App.ts +236 -0
  429. package/src/apps/relay/Sponsorships.test.ts +375 -0
  430. package/src/apps/relay/Sponsorships.ts +306 -0
  431. package/src/apps/relay/index.ts +2 -0
  432. package/src/cli/Cli.test.ts +25 -2
  433. package/src/cli/Cli.ts +18 -3
  434. package/src/cli/commands/admin.test.ts +83 -0
  435. package/src/cli/commands/admin.ts +91 -3
  436. package/src/db/Db.ts +296 -0
  437. package/src/db/Schema.ts +241 -2
  438. package/src/db/tables/billingSettings.test.ts +87 -0
  439. package/src/db/tables/billingSettings.ts +108 -0
  440. package/src/db/tables/invitations.ts +198 -0
  441. package/src/db/tables/memberships.ts +208 -0
  442. package/src/db/tables/organizations.test.ts +38 -2
  443. package/src/db/tables/organizations.ts +117 -2
  444. package/src/db/tables/projects.ts +107 -0
  445. package/src/db/tables/requestUsage.ts +231 -0
  446. package/src/db/tables/sponsoredTransactions.test.ts +325 -0
  447. package/src/db/tables/sponsoredTransactions.ts +464 -0
  448. package/src/db/tables/stripeCustomers.test.ts +109 -0
  449. package/src/db/tables/stripeCustomers.ts +162 -0
  450. package/src/db/tables/users.ts +85 -0
  451. package/src/handlers/internal/executionError.ts +2 -0
  452. package/src/handlers/internal/multisig.test.ts +84 -10
  453. package/src/handlers/internal/multisig.ts +15 -50
  454. package/src/handlers/internal/sponsorship.ts +106 -20
  455. package/src/handlers/internal/utils.ts +19 -7
  456. package/src/handlers/{internal/relay.localnet.test.ts → relay.test.ts} +2 -2
  457. package/src/handlers/relay.ts +23 -5
  458. package/src/index.ts +1 -0
  459. package/src/internal/Auth.test.ts +491 -25
  460. package/src/internal/Auth.ts +839 -84
  461. package/src/internal/Cache.ts +5 -1
  462. package/src/internal/Cursor.test.ts +3 -2
  463. package/src/internal/EdgeCache.test.ts +27 -4
  464. package/src/internal/EdgeCache.ts +47 -9
  465. package/src/internal/Fees.test.ts +32 -0
  466. package/src/internal/Fees.ts +51 -0
  467. package/src/internal/FundingRoutes.ts +583 -0
  468. package/src/internal/Id.test.ts +17 -0
  469. package/src/internal/Id.ts +24 -0
  470. package/src/internal/Log.test.ts +2 -1
  471. package/src/internal/Log.ts +16 -3
  472. package/src/internal/MetricSink.ts +1 -1
  473. package/src/internal/OpenApi.ts +12 -60
  474. package/src/internal/RateLimit.test.ts +84 -0
  475. package/src/internal/RateLimit.ts +70 -0
  476. package/src/internal/Response.ts +1 -1
  477. package/src/internal/Schema.ts +8 -0
  478. package/src/internal/Store.test.ts +52 -0
  479. package/src/internal/Store.ts +24 -5
  480. package/src/internal/Tidx.local.test.ts +1 -1
  481. package/src/internal/VerifiedTokens.test.ts +1 -1
  482. package/src/internal/WebhookDestination.test.ts +1 -1
  483. package/src/internal/Webhooks.test.ts +7 -7
  484. package/src/internal/Webhooks.ts +4 -4
  485. package/dist/apps/activities.js.map +0 -1
  486. package/dist/apps/addresses.js.map +0 -1
  487. package/dist/apps/balances.d.ts.map +0 -1
  488. package/dist/apps/balances.js.map +0 -1
  489. package/dist/apps/blocks.d.ts.map +0 -1
  490. package/dist/apps/blocks.js.map +0 -1
  491. package/dist/apps/coingecko.d.ts.map +0 -1
  492. package/dist/apps/coingecko.js.map +0 -1
  493. package/dist/apps/exchanges.d.ts.map +0 -1
  494. package/dist/apps/exchanges.js.map +0 -1
  495. package/dist/apps/fee-amm.d.ts.map +0 -1
  496. package/dist/apps/fee-amm.js.map +0 -1
  497. package/dist/apps/indexer.d.ts.map +0 -1
  498. package/dist/apps/indexer.js.map +0 -1
  499. package/dist/apps/receipts.d.ts.map +0 -1
  500. package/dist/apps/receipts.js.map +0 -1
  501. package/dist/apps/rpc.d.ts.map +0 -1
  502. package/dist/apps/rpc.js.map +0 -1
  503. package/dist/apps/tokenlist.d.ts.map +0 -1
  504. package/dist/apps/tokenlist.js.map +0 -1
  505. package/dist/apps/tokens.d.ts.map +0 -1
  506. package/dist/apps/tokens.js.map +0 -1
  507. package/dist/apps/transactions.d.ts.map +0 -1
  508. package/dist/apps/transactions.js.map +0 -1
  509. package/dist/apps/transfers.d.ts.map +0 -1
  510. package/dist/apps/transfers.js.map +0 -1
  511. package/dist/apps/verified-tokens.d.ts.map +0 -1
  512. package/dist/apps/verified-tokens.js.map +0 -1
  513. package/dist/apps/webhooks.js.map +0 -1
  514. package/dist/internal/OpenApi.fonts.d.ts.map +0 -1
  515. package/dist/internal/OpenApi.fonts.js.map +0 -1
  516. package/dist/internal/OpenApi.logo.d.ts.map +0 -1
  517. package/dist/internal/OpenApi.logo.js.map +0 -1
  518. package/src/handlers/internal/multisig.localnet.test.ts +0 -146
  519. /package/src/{internal/OpenApi.fonts.ts → apps/docs/fonts.ts} +0 -0
  520. /package/src/{internal/OpenApi.logo.ts → apps/docs/logo.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { type Context } from 'hono';
2
2
  import * as z from 'zod/mini';
3
- import type * as App from '../App.js';
4
- import * as Response from '../internal/Response.js';
5
- import * as Schema from '../internal/Schema.js';
3
+ import type * as App from '../../../App.js';
4
+ import * as Response from '../../../internal/Response.js';
5
+ import * as Schema from '../../../internal/Schema.js';
6
6
  /** Zod schemas owned by the exchange handlers. */
7
7
  export declare namespace schema {
8
8
  /**
@@ -973,7 +973,7 @@ export declare namespace schema {
973
973
  * DEX-escrow balance is zero are excluded from the liquidity ranking.
974
974
  */
975
975
  export declare function exchanges(): import("hono/hono-base").HonoBase<App.Environment, {
976
- "/swaps": {
976
+ "/v1/exchange/swaps": {
977
977
  $get: {
978
978
  output: null;
979
979
  outputFormat: "body";
@@ -998,14 +998,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
998
998
  } | {
999
999
  output: {
1000
1000
  error: {
1001
- code: "upstream_error";
1001
+ code: "api_key_malformed";
1002
1002
  details?: readonly Response.error.Detail[] | undefined;
1003
1003
  message: string;
1004
1004
  };
1005
1005
  requestId: string;
1006
1006
  };
1007
1007
  outputFormat: "json";
1008
- status: 502;
1008
+ status: 400;
1009
1009
  input: {
1010
1010
  query?: {
1011
1011
  'blockNumber.from'?: string | string[];
@@ -1026,14 +1026,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1026
1026
  } | {
1027
1027
  output: {
1028
1028
  error: {
1029
- code: "api_key_malformed";
1029
+ code: "api_key_invalid" | "api_key_missing";
1030
1030
  details?: readonly Response.error.Detail[] | undefined;
1031
1031
  message: string;
1032
1032
  };
1033
1033
  requestId: string;
1034
1034
  };
1035
1035
  outputFormat: "json";
1036
- status: 400;
1036
+ status: 401;
1037
1037
  input: {
1038
1038
  query?: {
1039
1039
  'blockNumber.from'?: string | string[];
@@ -1054,14 +1054,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1054
1054
  } | {
1055
1055
  output: {
1056
1056
  error: {
1057
- code: "api_key_invalid" | "api_key_missing";
1057
+ code: "api_key_forbidden";
1058
1058
  details?: readonly Response.error.Detail[] | undefined;
1059
1059
  message: string;
1060
1060
  };
1061
1061
  requestId: string;
1062
1062
  };
1063
1063
  outputFormat: "json";
1064
- status: 401;
1064
+ status: 403;
1065
1065
  input: {
1066
1066
  query?: {
1067
1067
  'blockNumber.from'?: string | string[];
@@ -1082,14 +1082,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1082
1082
  } | {
1083
1083
  output: {
1084
1084
  error: {
1085
- code: "api_key_forbidden";
1085
+ code: "payment_required" | "rate_limit_exceeded";
1086
1086
  details?: readonly Response.error.Detail[] | undefined;
1087
1087
  message: string;
1088
1088
  };
1089
1089
  requestId: string;
1090
1090
  };
1091
1091
  outputFormat: "json";
1092
- status: 403;
1092
+ status: 429;
1093
1093
  input: {
1094
1094
  query?: {
1095
1095
  'blockNumber.from'?: string | string[];
@@ -1110,14 +1110,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1110
1110
  } | {
1111
1111
  output: {
1112
1112
  error: {
1113
- code: "payment_required" | "rate_limit_exceeded";
1113
+ code: "query_invalid";
1114
1114
  details?: readonly Response.error.Detail[] | undefined;
1115
1115
  message: string;
1116
1116
  };
1117
1117
  requestId: string;
1118
1118
  };
1119
1119
  outputFormat: "json";
1120
- status: 429;
1120
+ status: 400;
1121
1121
  input: {
1122
1122
  query?: {
1123
1123
  'blockNumber.from'?: string | string[];
@@ -1138,14 +1138,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1138
1138
  } | {
1139
1139
  output: {
1140
1140
  error: {
1141
- code: "query_invalid";
1141
+ code: "upstream_error";
1142
1142
  details?: readonly Response.error.Detail[] | undefined;
1143
1143
  message: string;
1144
1144
  };
1145
1145
  requestId: string;
1146
1146
  };
1147
1147
  outputFormat: "json";
1148
- status: 400;
1148
+ status: 502;
1149
1149
  input: {
1150
1150
  query?: {
1151
1151
  'blockNumber.from'?: string | string[];
@@ -1247,7 +1247,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1247
1247
  };
1248
1248
  };
1249
1249
  } & {
1250
- "/pairs": {
1250
+ "/v1/exchange/pairs": {
1251
1251
  $get: {
1252
1252
  output: null;
1253
1253
  outputFormat: "body";
@@ -1266,14 +1266,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1266
1266
  } | {
1267
1267
  output: {
1268
1268
  error: {
1269
- code: "upstream_error";
1269
+ code: "api_key_malformed";
1270
1270
  details?: readonly Response.error.Detail[] | undefined;
1271
1271
  message: string;
1272
1272
  };
1273
1273
  requestId: string;
1274
1274
  };
1275
1275
  outputFormat: "json";
1276
- status: 502;
1276
+ status: 400;
1277
1277
  input: {
1278
1278
  query?: {
1279
1279
  chainId?: string | string[];
@@ -1288,14 +1288,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1288
1288
  } | {
1289
1289
  output: {
1290
1290
  error: {
1291
- code: "api_key_malformed";
1291
+ code: "api_key_invalid" | "api_key_missing";
1292
1292
  details?: readonly Response.error.Detail[] | undefined;
1293
1293
  message: string;
1294
1294
  };
1295
1295
  requestId: string;
1296
1296
  };
1297
1297
  outputFormat: "json";
1298
- status: 400;
1298
+ status: 401;
1299
1299
  input: {
1300
1300
  query?: {
1301
1301
  chainId?: string | string[];
@@ -1310,14 +1310,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1310
1310
  } | {
1311
1311
  output: {
1312
1312
  error: {
1313
- code: "api_key_invalid" | "api_key_missing";
1313
+ code: "api_key_forbidden";
1314
1314
  details?: readonly Response.error.Detail[] | undefined;
1315
1315
  message: string;
1316
1316
  };
1317
1317
  requestId: string;
1318
1318
  };
1319
1319
  outputFormat: "json";
1320
- status: 401;
1320
+ status: 403;
1321
1321
  input: {
1322
1322
  query?: {
1323
1323
  chainId?: string | string[];
@@ -1332,14 +1332,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1332
1332
  } | {
1333
1333
  output: {
1334
1334
  error: {
1335
- code: "api_key_forbidden";
1335
+ code: "payment_required" | "rate_limit_exceeded";
1336
1336
  details?: readonly Response.error.Detail[] | undefined;
1337
1337
  message: string;
1338
1338
  };
1339
1339
  requestId: string;
1340
1340
  };
1341
1341
  outputFormat: "json";
1342
- status: 403;
1342
+ status: 429;
1343
1343
  input: {
1344
1344
  query?: {
1345
1345
  chainId?: string | string[];
@@ -1354,14 +1354,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1354
1354
  } | {
1355
1355
  output: {
1356
1356
  error: {
1357
- code: "payment_required" | "rate_limit_exceeded";
1357
+ code: "query_invalid";
1358
1358
  details?: readonly Response.error.Detail[] | undefined;
1359
1359
  message: string;
1360
1360
  };
1361
1361
  requestId: string;
1362
1362
  };
1363
1363
  outputFormat: "json";
1364
- status: 429;
1364
+ status: 400;
1365
1365
  input: {
1366
1366
  query?: {
1367
1367
  chainId?: string | string[];
@@ -1376,14 +1376,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1376
1376
  } | {
1377
1377
  output: {
1378
1378
  error: {
1379
- code: "query_invalid";
1379
+ code: "upstream_error";
1380
1380
  details?: readonly Response.error.Detail[] | undefined;
1381
1381
  message: string;
1382
1382
  };
1383
1383
  requestId: string;
1384
1384
  };
1385
1385
  outputFormat: "json";
1386
- status: 400;
1386
+ status: 502;
1387
1387
  input: {
1388
1388
  query?: {
1389
1389
  chainId?: string | string[];
@@ -1445,7 +1445,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1445
1445
  };
1446
1446
  };
1447
1447
  } & {
1448
- "/pairs/:base": {
1448
+ "/v1/exchange/pairs/:base": {
1449
1449
  $get: {
1450
1450
  output: null;
1451
1451
  outputFormat: "body";
@@ -1463,14 +1463,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1463
1463
  } | {
1464
1464
  output: {
1465
1465
  error: {
1466
- code: "upstream_error";
1466
+ code: "api_key_malformed";
1467
1467
  details?: readonly Response.error.Detail[] | undefined;
1468
1468
  message: string;
1469
1469
  };
1470
1470
  requestId: string;
1471
1471
  };
1472
1472
  outputFormat: "json";
1473
- status: 502;
1473
+ status: 400;
1474
1474
  input: {
1475
1475
  param: {
1476
1476
  base: `0x${string}`;
@@ -1484,14 +1484,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1484
1484
  } | {
1485
1485
  output: {
1486
1486
  error: {
1487
- code: "api_key_malformed";
1487
+ code: "api_key_invalid" | "api_key_missing";
1488
1488
  details?: readonly Response.error.Detail[] | undefined;
1489
1489
  message: string;
1490
1490
  };
1491
1491
  requestId: string;
1492
1492
  };
1493
1493
  outputFormat: "json";
1494
- status: 400;
1494
+ status: 401;
1495
1495
  input: {
1496
1496
  param: {
1497
1497
  base: `0x${string}`;
@@ -1505,14 +1505,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1505
1505
  } | {
1506
1506
  output: {
1507
1507
  error: {
1508
- code: "api_key_invalid" | "api_key_missing";
1508
+ code: "api_key_forbidden";
1509
1509
  details?: readonly Response.error.Detail[] | undefined;
1510
1510
  message: string;
1511
1511
  };
1512
1512
  requestId: string;
1513
1513
  };
1514
1514
  outputFormat: "json";
1515
- status: 401;
1515
+ status: 403;
1516
1516
  input: {
1517
1517
  param: {
1518
1518
  base: `0x${string}`;
@@ -1526,14 +1526,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1526
1526
  } | {
1527
1527
  output: {
1528
1528
  error: {
1529
- code: "api_key_forbidden";
1529
+ code: "payment_required" | "rate_limit_exceeded";
1530
1530
  details?: readonly Response.error.Detail[] | undefined;
1531
1531
  message: string;
1532
1532
  };
1533
1533
  requestId: string;
1534
1534
  };
1535
1535
  outputFormat: "json";
1536
- status: 403;
1536
+ status: 429;
1537
1537
  input: {
1538
1538
  param: {
1539
1539
  base: `0x${string}`;
@@ -1547,14 +1547,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1547
1547
  } | {
1548
1548
  output: {
1549
1549
  error: {
1550
- code: "payment_required" | "rate_limit_exceeded";
1550
+ code: "query_invalid";
1551
1551
  details?: readonly Response.error.Detail[] | undefined;
1552
1552
  message: string;
1553
1553
  };
1554
1554
  requestId: string;
1555
1555
  };
1556
1556
  outputFormat: "json";
1557
- status: 429;
1557
+ status: 400;
1558
1558
  input: {
1559
1559
  param: {
1560
1560
  base: `0x${string}`;
@@ -1568,14 +1568,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1568
1568
  } | {
1569
1569
  output: {
1570
1570
  error: {
1571
- code: "query_invalid";
1571
+ code: "upstream_error";
1572
1572
  details?: readonly Response.error.Detail[] | undefined;
1573
1573
  message: string;
1574
1574
  };
1575
1575
  requestId: string;
1576
1576
  };
1577
1577
  outputFormat: "json";
1578
- status: 400;
1578
+ status: 502;
1579
1579
  input: {
1580
1580
  param: {
1581
1581
  base: `0x${string}`;
@@ -1670,7 +1670,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1670
1670
  };
1671
1671
  };
1672
1672
  } & {
1673
- "/orders": {
1673
+ "/v1/exchange/orders": {
1674
1674
  $get: {
1675
1675
  output: null;
1676
1676
  outputFormat: "body";
@@ -1692,14 +1692,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1692
1692
  } | {
1693
1693
  output: {
1694
1694
  error: {
1695
- code: "upstream_error";
1695
+ code: "api_key_malformed";
1696
1696
  details?: readonly Response.error.Detail[] | undefined;
1697
1697
  message: string;
1698
1698
  };
1699
1699
  requestId: string;
1700
1700
  };
1701
1701
  outputFormat: "json";
1702
- status: 502;
1702
+ status: 400;
1703
1703
  input: {
1704
1704
  query?: {
1705
1705
  base?: string | string[];
@@ -1717,14 +1717,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1717
1717
  } | {
1718
1718
  output: {
1719
1719
  error: {
1720
- code: "api_key_malformed";
1720
+ code: "api_key_invalid" | "api_key_missing";
1721
1721
  details?: readonly Response.error.Detail[] | undefined;
1722
1722
  message: string;
1723
1723
  };
1724
1724
  requestId: string;
1725
1725
  };
1726
1726
  outputFormat: "json";
1727
- status: 400;
1727
+ status: 401;
1728
1728
  input: {
1729
1729
  query?: {
1730
1730
  base?: string | string[];
@@ -1742,14 +1742,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1742
1742
  } | {
1743
1743
  output: {
1744
1744
  error: {
1745
- code: "api_key_invalid" | "api_key_missing";
1745
+ code: "api_key_forbidden";
1746
1746
  details?: readonly Response.error.Detail[] | undefined;
1747
1747
  message: string;
1748
1748
  };
1749
1749
  requestId: string;
1750
1750
  };
1751
1751
  outputFormat: "json";
1752
- status: 401;
1752
+ status: 403;
1753
1753
  input: {
1754
1754
  query?: {
1755
1755
  base?: string | string[];
@@ -1767,14 +1767,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1767
1767
  } | {
1768
1768
  output: {
1769
1769
  error: {
1770
- code: "api_key_forbidden";
1770
+ code: "payment_required" | "rate_limit_exceeded";
1771
1771
  details?: readonly Response.error.Detail[] | undefined;
1772
1772
  message: string;
1773
1773
  };
1774
1774
  requestId: string;
1775
1775
  };
1776
1776
  outputFormat: "json";
1777
- status: 403;
1777
+ status: 429;
1778
1778
  input: {
1779
1779
  query?: {
1780
1780
  base?: string | string[];
@@ -1792,14 +1792,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1792
1792
  } | {
1793
1793
  output: {
1794
1794
  error: {
1795
- code: "payment_required" | "rate_limit_exceeded";
1795
+ code: "query_invalid";
1796
1796
  details?: readonly Response.error.Detail[] | undefined;
1797
1797
  message: string;
1798
1798
  };
1799
1799
  requestId: string;
1800
1800
  };
1801
1801
  outputFormat: "json";
1802
- status: 429;
1802
+ status: 400;
1803
1803
  input: {
1804
1804
  query?: {
1805
1805
  base?: string | string[];
@@ -1817,14 +1817,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1817
1817
  } | {
1818
1818
  output: {
1819
1819
  error: {
1820
- code: "query_invalid";
1820
+ code: "upstream_error";
1821
1821
  details?: readonly Response.error.Detail[] | undefined;
1822
1822
  message: string;
1823
1823
  };
1824
1824
  requestId: string;
1825
1825
  };
1826
1826
  outputFormat: "json";
1827
- status: 400;
1827
+ status: 502;
1828
1828
  input: {
1829
1829
  query?: {
1830
1830
  base?: string | string[];
@@ -1928,7 +1928,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1928
1928
  };
1929
1929
  };
1930
1930
  } & {
1931
- "/orders/:orderId": {
1931
+ "/v1/exchange/orders/:orderId": {
1932
1932
  $get: {
1933
1933
  output: null;
1934
1934
  outputFormat: "body";
@@ -1946,14 +1946,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1946
1946
  } | {
1947
1947
  output: {
1948
1948
  error: {
1949
- code: "upstream_error";
1949
+ code: "api_key_malformed";
1950
1950
  details?: readonly Response.error.Detail[] | undefined;
1951
1951
  message: string;
1952
1952
  };
1953
1953
  requestId: string;
1954
1954
  };
1955
1955
  outputFormat: "json";
1956
- status: 502;
1956
+ status: 400;
1957
1957
  input: {
1958
1958
  param: {
1959
1959
  orderId: string;
@@ -1967,14 +1967,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1967
1967
  } | {
1968
1968
  output: {
1969
1969
  error: {
1970
- code: "api_key_malformed";
1970
+ code: "api_key_invalid" | "api_key_missing";
1971
1971
  details?: readonly Response.error.Detail[] | undefined;
1972
1972
  message: string;
1973
1973
  };
1974
1974
  requestId: string;
1975
1975
  };
1976
1976
  outputFormat: "json";
1977
- status: 400;
1977
+ status: 401;
1978
1978
  input: {
1979
1979
  param: {
1980
1980
  orderId: string;
@@ -1988,14 +1988,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
1988
1988
  } | {
1989
1989
  output: {
1990
1990
  error: {
1991
- code: "api_key_invalid" | "api_key_missing";
1991
+ code: "api_key_forbidden";
1992
1992
  details?: readonly Response.error.Detail[] | undefined;
1993
1993
  message: string;
1994
1994
  };
1995
1995
  requestId: string;
1996
1996
  };
1997
1997
  outputFormat: "json";
1998
- status: 401;
1998
+ status: 403;
1999
1999
  input: {
2000
2000
  param: {
2001
2001
  orderId: string;
@@ -2009,14 +2009,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2009
2009
  } | {
2010
2010
  output: {
2011
2011
  error: {
2012
- code: "api_key_forbidden";
2012
+ code: "payment_required" | "rate_limit_exceeded";
2013
2013
  details?: readonly Response.error.Detail[] | undefined;
2014
2014
  message: string;
2015
2015
  };
2016
2016
  requestId: string;
2017
2017
  };
2018
2018
  outputFormat: "json";
2019
- status: 403;
2019
+ status: 429;
2020
2020
  input: {
2021
2021
  param: {
2022
2022
  orderId: string;
@@ -2030,14 +2030,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2030
2030
  } | {
2031
2031
  output: {
2032
2032
  error: {
2033
- code: "payment_required" | "rate_limit_exceeded";
2033
+ code: "query_invalid";
2034
2034
  details?: readonly Response.error.Detail[] | undefined;
2035
2035
  message: string;
2036
2036
  };
2037
2037
  requestId: string;
2038
2038
  };
2039
2039
  outputFormat: "json";
2040
- status: 429;
2040
+ status: 400;
2041
2041
  input: {
2042
2042
  param: {
2043
2043
  orderId: string;
@@ -2051,14 +2051,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2051
2051
  } | {
2052
2052
  output: {
2053
2053
  error: {
2054
- code: "query_invalid";
2054
+ code: "upstream_error";
2055
2055
  details?: readonly Response.error.Detail[] | undefined;
2056
2056
  message: string;
2057
2057
  };
2058
2058
  requestId: string;
2059
2059
  };
2060
2060
  outputFormat: "json";
2061
- status: 400;
2061
+ status: 502;
2062
2062
  input: {
2063
2063
  param: {
2064
2064
  orderId: string;
@@ -2162,7 +2162,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2162
2162
  };
2163
2163
  };
2164
2164
  } & {
2165
- "/orders/:orderId/fills": {
2165
+ "/v1/exchange/orders/:orderId/fills": {
2166
2166
  $get: {
2167
2167
  output: null;
2168
2168
  outputFormat: "body";
@@ -2184,14 +2184,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2184
2184
  } | {
2185
2185
  output: {
2186
2186
  error: {
2187
- code: "upstream_error";
2187
+ code: "api_key_malformed";
2188
2188
  details?: readonly Response.error.Detail[] | undefined;
2189
2189
  message: string;
2190
2190
  };
2191
2191
  requestId: string;
2192
2192
  };
2193
2193
  outputFormat: "json";
2194
- status: 502;
2194
+ status: 400;
2195
2195
  input: {
2196
2196
  param: {
2197
2197
  orderId: string;
@@ -2209,14 +2209,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2209
2209
  } | {
2210
2210
  output: {
2211
2211
  error: {
2212
- code: "api_key_malformed";
2212
+ code: "api_key_invalid" | "api_key_missing";
2213
2213
  details?: readonly Response.error.Detail[] | undefined;
2214
2214
  message: string;
2215
2215
  };
2216
2216
  requestId: string;
2217
2217
  };
2218
2218
  outputFormat: "json";
2219
- status: 400;
2219
+ status: 401;
2220
2220
  input: {
2221
2221
  param: {
2222
2222
  orderId: string;
@@ -2234,14 +2234,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2234
2234
  } | {
2235
2235
  output: {
2236
2236
  error: {
2237
- code: "api_key_invalid" | "api_key_missing";
2237
+ code: "api_key_forbidden";
2238
2238
  details?: readonly Response.error.Detail[] | undefined;
2239
2239
  message: string;
2240
2240
  };
2241
2241
  requestId: string;
2242
2242
  };
2243
2243
  outputFormat: "json";
2244
- status: 401;
2244
+ status: 403;
2245
2245
  input: {
2246
2246
  param: {
2247
2247
  orderId: string;
@@ -2259,14 +2259,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2259
2259
  } | {
2260
2260
  output: {
2261
2261
  error: {
2262
- code: "api_key_forbidden";
2262
+ code: "payment_required" | "rate_limit_exceeded";
2263
2263
  details?: readonly Response.error.Detail[] | undefined;
2264
2264
  message: string;
2265
2265
  };
2266
2266
  requestId: string;
2267
2267
  };
2268
2268
  outputFormat: "json";
2269
- status: 403;
2269
+ status: 429;
2270
2270
  input: {
2271
2271
  param: {
2272
2272
  orderId: string;
@@ -2284,14 +2284,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2284
2284
  } | {
2285
2285
  output: {
2286
2286
  error: {
2287
- code: "payment_required" | "rate_limit_exceeded";
2287
+ code: "query_invalid";
2288
2288
  details?: readonly Response.error.Detail[] | undefined;
2289
2289
  message: string;
2290
2290
  };
2291
2291
  requestId: string;
2292
2292
  };
2293
2293
  outputFormat: "json";
2294
- status: 429;
2294
+ status: 400;
2295
2295
  input: {
2296
2296
  param: {
2297
2297
  orderId: string;
@@ -2309,14 +2309,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2309
2309
  } | {
2310
2310
  output: {
2311
2311
  error: {
2312
- code: "query_invalid";
2312
+ code: "upstream_error";
2313
2313
  details?: readonly Response.error.Detail[] | undefined;
2314
2314
  message: string;
2315
2315
  };
2316
2316
  requestId: string;
2317
2317
  };
2318
2318
  outputFormat: "json";
2319
- status: 400;
2319
+ status: 502;
2320
2320
  input: {
2321
2321
  param: {
2322
2322
  orderId: string;
@@ -2394,7 +2394,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2394
2394
  };
2395
2395
  };
2396
2396
  } & {
2397
- "/pairs/:base/ohlc": {
2397
+ "/v1/exchange/pairs/:base/ohlc": {
2398
2398
  $get: {
2399
2399
  output: null;
2400
2400
  outputFormat: "body";
@@ -2414,14 +2414,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2414
2414
  } | {
2415
2415
  output: {
2416
2416
  error: {
2417
- code: "upstream_error";
2417
+ code: "api_key_malformed";
2418
2418
  details?: readonly Response.error.Detail[] | undefined;
2419
2419
  message: string;
2420
2420
  };
2421
2421
  requestId: string;
2422
2422
  };
2423
2423
  outputFormat: "json";
2424
- status: 502;
2424
+ status: 400;
2425
2425
  input: {
2426
2426
  param: {
2427
2427
  base: `0x${string}`;
@@ -2437,14 +2437,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2437
2437
  } | {
2438
2438
  output: {
2439
2439
  error: {
2440
- code: "api_key_malformed";
2440
+ code: "api_key_invalid" | "api_key_missing";
2441
2441
  details?: readonly Response.error.Detail[] | undefined;
2442
2442
  message: string;
2443
2443
  };
2444
2444
  requestId: string;
2445
2445
  };
2446
2446
  outputFormat: "json";
2447
- status: 400;
2447
+ status: 401;
2448
2448
  input: {
2449
2449
  param: {
2450
2450
  base: `0x${string}`;
@@ -2460,14 +2460,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2460
2460
  } | {
2461
2461
  output: {
2462
2462
  error: {
2463
- code: "api_key_invalid" | "api_key_missing";
2463
+ code: "api_key_forbidden";
2464
2464
  details?: readonly Response.error.Detail[] | undefined;
2465
2465
  message: string;
2466
2466
  };
2467
2467
  requestId: string;
2468
2468
  };
2469
2469
  outputFormat: "json";
2470
- status: 401;
2470
+ status: 403;
2471
2471
  input: {
2472
2472
  param: {
2473
2473
  base: `0x${string}`;
@@ -2483,14 +2483,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2483
2483
  } | {
2484
2484
  output: {
2485
2485
  error: {
2486
- code: "api_key_forbidden";
2486
+ code: "payment_required" | "rate_limit_exceeded";
2487
2487
  details?: readonly Response.error.Detail[] | undefined;
2488
2488
  message: string;
2489
2489
  };
2490
2490
  requestId: string;
2491
2491
  };
2492
2492
  outputFormat: "json";
2493
- status: 403;
2493
+ status: 429;
2494
2494
  input: {
2495
2495
  param: {
2496
2496
  base: `0x${string}`;
@@ -2506,14 +2506,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2506
2506
  } | {
2507
2507
  output: {
2508
2508
  error: {
2509
- code: "payment_required" | "rate_limit_exceeded";
2509
+ code: "query_invalid";
2510
2510
  details?: readonly Response.error.Detail[] | undefined;
2511
2511
  message: string;
2512
2512
  };
2513
2513
  requestId: string;
2514
2514
  };
2515
2515
  outputFormat: "json";
2516
- status: 429;
2516
+ status: 400;
2517
2517
  input: {
2518
2518
  param: {
2519
2519
  base: `0x${string}`;
@@ -2529,14 +2529,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2529
2529
  } | {
2530
2530
  output: {
2531
2531
  error: {
2532
- code: "query_invalid";
2532
+ code: "upstream_error";
2533
2533
  details?: readonly Response.error.Detail[] | undefined;
2534
2534
  message: string;
2535
2535
  };
2536
2536
  requestId: string;
2537
2537
  };
2538
2538
  outputFormat: "json";
2539
- status: 400;
2539
+ status: 502;
2540
2540
  input: {
2541
2541
  param: {
2542
2542
  base: `0x${string}`;
@@ -2649,7 +2649,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2649
2649
  };
2650
2650
  };
2651
2651
  } & {
2652
- "/pairs/:base/depth": {
2652
+ "/v1/exchange/pairs/:base/depth": {
2653
2653
  $get: {
2654
2654
  output: null;
2655
2655
  outputFormat: "body";
@@ -2668,14 +2668,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2668
2668
  } | {
2669
2669
  output: {
2670
2670
  error: {
2671
- code: "upstream_error";
2671
+ code: "api_key_malformed";
2672
2672
  details?: readonly Response.error.Detail[] | undefined;
2673
2673
  message: string;
2674
2674
  };
2675
2675
  requestId: string;
2676
2676
  };
2677
2677
  outputFormat: "json";
2678
- status: 502;
2678
+ status: 400;
2679
2679
  input: {
2680
2680
  param: {
2681
2681
  base: `0x${string}`;
@@ -2690,14 +2690,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2690
2690
  } | {
2691
2691
  output: {
2692
2692
  error: {
2693
- code: "api_key_malformed";
2693
+ code: "api_key_invalid" | "api_key_missing";
2694
2694
  details?: readonly Response.error.Detail[] | undefined;
2695
2695
  message: string;
2696
2696
  };
2697
2697
  requestId: string;
2698
2698
  };
2699
2699
  outputFormat: "json";
2700
- status: 400;
2700
+ status: 401;
2701
2701
  input: {
2702
2702
  param: {
2703
2703
  base: `0x${string}`;
@@ -2712,14 +2712,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2712
2712
  } | {
2713
2713
  output: {
2714
2714
  error: {
2715
- code: "api_key_invalid" | "api_key_missing";
2715
+ code: "api_key_forbidden";
2716
2716
  details?: readonly Response.error.Detail[] | undefined;
2717
2717
  message: string;
2718
2718
  };
2719
2719
  requestId: string;
2720
2720
  };
2721
2721
  outputFormat: "json";
2722
- status: 401;
2722
+ status: 403;
2723
2723
  input: {
2724
2724
  param: {
2725
2725
  base: `0x${string}`;
@@ -2734,14 +2734,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2734
2734
  } | {
2735
2735
  output: {
2736
2736
  error: {
2737
- code: "api_key_forbidden";
2737
+ code: "payment_required" | "rate_limit_exceeded";
2738
2738
  details?: readonly Response.error.Detail[] | undefined;
2739
2739
  message: string;
2740
2740
  };
2741
2741
  requestId: string;
2742
2742
  };
2743
2743
  outputFormat: "json";
2744
- status: 403;
2744
+ status: 429;
2745
2745
  input: {
2746
2746
  param: {
2747
2747
  base: `0x${string}`;
@@ -2756,14 +2756,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2756
2756
  } | {
2757
2757
  output: {
2758
2758
  error: {
2759
- code: "payment_required" | "rate_limit_exceeded";
2759
+ code: "query_invalid";
2760
2760
  details?: readonly Response.error.Detail[] | undefined;
2761
2761
  message: string;
2762
2762
  };
2763
2763
  requestId: string;
2764
2764
  };
2765
2765
  outputFormat: "json";
2766
- status: 429;
2766
+ status: 400;
2767
2767
  input: {
2768
2768
  param: {
2769
2769
  base: `0x${string}`;
@@ -2778,14 +2778,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2778
2778
  } | {
2779
2779
  output: {
2780
2780
  error: {
2781
- code: "query_invalid";
2781
+ code: "upstream_error";
2782
2782
  details?: readonly Response.error.Detail[] | undefined;
2783
2783
  message: string;
2784
2784
  };
2785
2785
  requestId: string;
2786
2786
  };
2787
2787
  outputFormat: "json";
2788
- status: 400;
2788
+ status: 502;
2789
2789
  input: {
2790
2790
  param: {
2791
2791
  base: `0x${string}`;
@@ -2891,7 +2891,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
2891
2891
  };
2892
2892
  };
2893
2893
  };
2894
- }, "/", "/pairs/:base/depth">;
2894
+ }, "/", "/v1/exchange/pairs/:base/depth">;
2895
2895
  /**
2896
2896
  * Resolves the point-in-time order-state streams for a set of `orderId`s
2897
2897
  * from the raw `OrderPlaced`/`OrderFlipped` logs.