tapimo 0.2.0 → 0.4.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 (362) hide show
  1. package/README.md +36 -8
  2. package/dist/ApiKey.d.ts +1 -0
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +5 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +28 -1
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +34 -1
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +7532 -4850
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +11 -3
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +11 -2
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +14 -3
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/admin/App.d.ts +63 -53
  19. package/dist/admin/App.d.ts.map +1 -1
  20. package/dist/admin/apps/api-keys.d.ts +7 -0
  21. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  22. package/dist/admin/apps/scopes.d.ts +8 -0
  23. package/dist/admin/apps/scopes.d.ts.map +1 -1
  24. package/dist/admin/apps/scopes.js +3 -0
  25. package/dist/admin/apps/scopes.js.map +1 -1
  26. package/dist/admin/apps/verified-tokens.d.ts +57 -57
  27. package/dist/admin/ui.generated.d.ts +1 -1
  28. package/dist/admin/ui.generated.js +13 -13
  29. package/dist/admin/ui.generated.js.map +1 -1
  30. package/dist/analytics/Analytics.d.ts +151 -0
  31. package/dist/analytics/Analytics.d.ts.map +1 -0
  32. package/dist/analytics/Analytics.js +212 -0
  33. package/dist/analytics/Analytics.js.map +1 -0
  34. package/dist/analytics/tables/requestEvents.d.ts +215 -0
  35. package/dist/analytics/tables/requestEvents.d.ts.map +1 -0
  36. package/dist/analytics/tables/requestEvents.js +264 -0
  37. package/dist/analytics/tables/requestEvents.js.map +1 -0
  38. package/dist/apps/data/App.d.ts +1049 -624
  39. package/dist/apps/data/App.d.ts.map +1 -1
  40. package/dist/apps/data/App.js +36 -0
  41. package/dist/apps/data/App.js.map +1 -1
  42. package/dist/apps/data/FundingRouteProviders.d.ts +54 -0
  43. package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -0
  44. package/dist/apps/data/FundingRouteProviders.js +355 -0
  45. package/dist/apps/data/FundingRouteProviders.js.map +1 -0
  46. package/dist/apps/data/index.d.ts +1 -0
  47. package/dist/apps/data/index.d.ts.map +1 -1
  48. package/dist/apps/data/index.js +1 -0
  49. package/dist/apps/data/index.js.map +1 -1
  50. package/dist/apps/data/routes/balances.d.ts +45 -45
  51. package/dist/apps/data/routes/coingecko.d.ts +176 -176
  52. package/dist/apps/data/routes/exchanges.d.ts +455 -455
  53. package/dist/apps/data/routes/fee-amm.d.ts +101 -101
  54. package/dist/apps/data/routes/funding.d.ts +843 -0
  55. package/dist/apps/data/routes/funding.d.ts.map +1 -0
  56. package/dist/apps/data/routes/funding.js +443 -0
  57. package/dist/apps/data/routes/funding.js.map +1 -0
  58. package/dist/apps/data/routes/indexer.d.ts +5 -5
  59. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  60. package/dist/apps/data/routes/receipts.js +2 -8
  61. package/dist/apps/data/routes/receipts.js.map +1 -1
  62. package/dist/apps/data/routes/rpc.d.ts +29 -36
  63. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  64. package/dist/apps/data/routes/rpc.js +29 -1
  65. package/dist/apps/data/routes/rpc.js.map +1 -1
  66. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  67. package/dist/apps/data/routes/transfers.d.ts +56 -56
  68. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  69. package/dist/apps/data/routes/webhooks.d.ts +45 -45
  70. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  71. package/dist/apps/data/routes/webhooks.js +8 -8
  72. package/dist/apps/data/routes/webhooks.js.map +1 -1
  73. package/dist/apps/docs/App.d.ts +5 -3
  74. package/dist/apps/docs/App.d.ts.map +1 -1
  75. package/dist/apps/docs/App.js +28 -96
  76. package/dist/apps/docs/App.js.map +1 -1
  77. package/dist/apps/docs/reference.d.ts +21 -0
  78. package/dist/apps/docs/reference.d.ts.map +1 -0
  79. package/dist/apps/docs/reference.js +112 -0
  80. package/dist/apps/docs/reference.js.map +1 -0
  81. package/dist/apps/index.d.ts +3 -2
  82. package/dist/apps/index.d.ts.map +1 -1
  83. package/dist/apps/index.js +3 -2
  84. package/dist/apps/index.js.map +1 -1
  85. package/dist/apps/{platform → management}/App.d.ts +3015 -738
  86. package/dist/apps/management/App.d.ts.map +1 -0
  87. package/dist/apps/{platform → management}/App.js +20 -10
  88. package/dist/apps/management/App.js.map +1 -0
  89. package/dist/apps/management/Billing.d.ts +279 -0
  90. package/dist/apps/management/Billing.d.ts.map +1 -0
  91. package/dist/apps/management/Billing.js +477 -0
  92. package/dist/apps/management/Billing.js.map +1 -0
  93. package/dist/apps/management/index.d.ts +3 -0
  94. package/dist/apps/management/index.d.ts.map +1 -0
  95. package/dist/apps/management/index.js +3 -0
  96. package/dist/apps/management/index.js.map +1 -0
  97. package/dist/apps/{platform → management}/routes/api-keys.d.ts +341 -49
  98. package/dist/apps/management/routes/api-keys.d.ts.map +1 -0
  99. package/dist/apps/{platform → management}/routes/api-keys.js +116 -14
  100. package/dist/apps/management/routes/api-keys.js.map +1 -0
  101. package/dist/apps/management/routes/billing.d.ts +1520 -0
  102. package/dist/apps/management/routes/billing.d.ts.map +1 -0
  103. package/dist/apps/management/routes/billing.js +795 -0
  104. package/dist/apps/management/routes/billing.js.map +1 -0
  105. package/dist/apps/{platform → management}/routes/invitations.d.ts +202 -84
  106. package/dist/apps/management/routes/invitations.d.ts.map +1 -0
  107. package/dist/apps/{platform → management}/routes/invitations.js +59 -1
  108. package/dist/apps/management/routes/invitations.js.map +1 -0
  109. package/dist/apps/{platform → management}/routes/me.d.ts +17 -17
  110. package/dist/apps/management/routes/me.d.ts.map +1 -0
  111. package/dist/apps/management/routes/me.js.map +1 -0
  112. package/dist/apps/management/routes/members.d.ts.map +1 -0
  113. package/dist/apps/management/routes/members.js.map +1 -0
  114. package/dist/apps/{platform → management}/routes/orgs.d.ts +50 -36
  115. package/dist/apps/management/routes/orgs.d.ts.map +1 -0
  116. package/dist/apps/{platform → management}/routes/orgs.js +14 -3
  117. package/dist/apps/management/routes/orgs.js.map +1 -0
  118. package/dist/apps/{platform → management}/routes/projects.d.ts +97 -97
  119. package/dist/apps/{platform → management}/routes/projects.d.ts.map +1 -1
  120. package/dist/apps/management/routes/projects.js.map +1 -0
  121. package/dist/apps/management/routes/scopes.d.ts +107 -0
  122. package/dist/apps/management/routes/scopes.d.ts.map +1 -0
  123. package/dist/apps/management/routes/scopes.js +66 -0
  124. package/dist/apps/management/routes/scopes.js.map +1 -0
  125. package/dist/apps/management/routes/usage.d.ts +588 -0
  126. package/dist/apps/management/routes/usage.d.ts.map +1 -0
  127. package/dist/apps/management/routes/usage.js +391 -0
  128. package/dist/apps/management/routes/usage.js.map +1 -0
  129. package/dist/apps/mcp.d.ts +76 -0
  130. package/dist/apps/mcp.d.ts.map +1 -0
  131. package/dist/apps/mcp.js +188 -0
  132. package/dist/apps/mcp.js.map +1 -0
  133. package/dist/apps/relay/App.d.ts +4 -1
  134. package/dist/apps/relay/App.d.ts.map +1 -1
  135. package/dist/apps/relay/App.js +118 -10
  136. package/dist/apps/relay/App.js.map +1 -1
  137. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  138. package/dist/apps/relay/Sponsorships.js +2 -1
  139. package/dist/apps/relay/Sponsorships.js.map +1 -1
  140. package/dist/cli/Cli.d.ts +8 -1
  141. package/dist/cli/Cli.d.ts.map +1 -1
  142. package/dist/cli/Cli.js +11 -3
  143. package/dist/cli/Cli.js.map +1 -1
  144. package/dist/cli/commands/admin.d.ts +4 -0
  145. package/dist/cli/commands/admin.d.ts.map +1 -1
  146. package/dist/cli/commands/admin.js +80 -1
  147. package/dist/cli/commands/admin.js.map +1 -1
  148. package/dist/db/Db.d.ts +7 -0
  149. package/dist/db/Db.d.ts.map +1 -1
  150. package/dist/db/Db.js +126 -0
  151. package/dist/db/Db.js.map +1 -1
  152. package/dist/db/Schema.d.ts +79 -0
  153. package/dist/db/Schema.d.ts.map +1 -1
  154. package/dist/db/Schema.js +88 -2
  155. package/dist/db/Schema.js.map +1 -1
  156. package/dist/db/tables/billingSettings.d.ts +55 -0
  157. package/dist/db/tables/billingSettings.d.ts.map +1 -0
  158. package/dist/db/tables/billingSettings.js +70 -0
  159. package/dist/db/tables/billingSettings.js.map +1 -0
  160. package/dist/db/tables/invitations.js +2 -2
  161. package/dist/db/tables/invitations.js.map +1 -1
  162. package/dist/db/tables/organizations.d.ts +6 -2
  163. package/dist/db/tables/organizations.d.ts.map +1 -1
  164. package/dist/db/tables/organizations.js +10 -4
  165. package/dist/db/tables/organizations.js.map +1 -1
  166. package/dist/db/tables/projects.js +2 -2
  167. package/dist/db/tables/projects.js.map +1 -1
  168. package/dist/db/tables/requestUsage.d.ts +121 -0
  169. package/dist/db/tables/requestUsage.d.ts.map +1 -0
  170. package/dist/db/tables/requestUsage.js +150 -0
  171. package/dist/db/tables/requestUsage.js.map +1 -0
  172. package/dist/db/tables/sponsoredTransactions.d.ts +119 -0
  173. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  174. package/dist/db/tables/sponsoredTransactions.js +155 -2
  175. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  176. package/dist/db/tables/stripeCustomers.d.ts +81 -0
  177. package/dist/db/tables/stripeCustomers.d.ts.map +1 -0
  178. package/dist/db/tables/stripeCustomers.js +120 -0
  179. package/dist/db/tables/stripeCustomers.js.map +1 -0
  180. package/dist/db/tables/users.js +2 -2
  181. package/dist/db/tables/users.js.map +1 -1
  182. package/dist/handlers/internal/sponsorship.d.ts +5 -2
  183. package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
  184. package/dist/handlers/internal/sponsorship.js +19 -5
  185. package/dist/handlers/internal/sponsorship.js.map +1 -1
  186. package/dist/handlers/internal/utils.d.ts +10 -3
  187. package/dist/handlers/internal/utils.d.ts.map +1 -1
  188. package/dist/handlers/internal/utils.js +14 -6
  189. package/dist/handlers/internal/utils.js.map +1 -1
  190. package/dist/index.d.ts +1 -0
  191. package/dist/index.d.ts.map +1 -1
  192. package/dist/index.js +1 -0
  193. package/dist/index.js.map +1 -1
  194. package/dist/internal/Auth.d.ts +18 -4
  195. package/dist/internal/Auth.d.ts.map +1 -1
  196. package/dist/internal/Auth.js +149 -77
  197. package/dist/internal/Auth.js.map +1 -1
  198. package/dist/internal/Cache.d.ts.map +1 -1
  199. package/dist/internal/Cache.js +4 -1
  200. package/dist/internal/Cache.js.map +1 -1
  201. package/dist/internal/EdgeCache.d.ts +10 -0
  202. package/dist/internal/EdgeCache.d.ts.map +1 -1
  203. package/dist/internal/EdgeCache.js +39 -8
  204. package/dist/internal/EdgeCache.js.map +1 -1
  205. package/dist/internal/Fees.d.ts +27 -0
  206. package/dist/internal/Fees.d.ts.map +1 -0
  207. package/dist/internal/Fees.js +48 -0
  208. package/dist/internal/Fees.js.map +1 -0
  209. package/dist/internal/FundingRoutes.d.ts +915 -0
  210. package/dist/internal/FundingRoutes.d.ts.map +1 -0
  211. package/dist/internal/FundingRoutes.js +625 -0
  212. package/dist/internal/FundingRoutes.js.map +1 -0
  213. package/dist/internal/Id.d.ts +15 -0
  214. package/dist/internal/Id.d.ts.map +1 -0
  215. package/dist/internal/Id.js +22 -0
  216. package/dist/internal/Id.js.map +1 -0
  217. package/dist/internal/Log.d.ts +2 -0
  218. package/dist/internal/Log.d.ts.map +1 -1
  219. package/dist/internal/Log.js +3 -0
  220. package/dist/internal/Log.js.map +1 -1
  221. package/dist/internal/OpenApi.d.ts +10 -1
  222. package/dist/internal/OpenApi.d.ts.map +1 -1
  223. package/dist/internal/OpenApi.js +8 -1
  224. package/dist/internal/OpenApi.js.map +1 -1
  225. package/dist/internal/RateLimit.d.ts +25 -0
  226. package/dist/internal/RateLimit.d.ts.map +1 -1
  227. package/dist/internal/RateLimit.js +51 -0
  228. package/dist/internal/RateLimit.js.map +1 -1
  229. package/dist/internal/Response.d.ts +1 -1
  230. package/dist/internal/Response.d.ts.map +1 -1
  231. package/dist/internal/Schema.d.ts +8 -0
  232. package/dist/internal/Schema.d.ts.map +1 -1
  233. package/dist/internal/Schema.js +7 -0
  234. package/dist/internal/Schema.js.map +1 -1
  235. package/dist/internal/Webhooks.d.ts.map +1 -1
  236. package/dist/internal/Webhooks.js +3 -3
  237. package/dist/internal/Webhooks.js.map +1 -1
  238. package/package.json +8 -7
  239. package/src/ApiKey.ts +9 -2
  240. package/src/ApiKeys.test.ts +51 -0
  241. package/src/ApiKeys.ts +50 -1
  242. package/src/App.test.ts +33 -86718
  243. package/src/App.ts +26 -8
  244. package/src/Client.test-d.ts +353 -2
  245. package/src/Scope.ts +16 -3
  246. package/src/admin/apps/scopes.test.ts +6 -0
  247. package/src/admin/apps/scopes.ts +3 -0
  248. package/src/admin/ui/src/components/Page.tsx +2 -3
  249. package/src/admin/ui/src/routes/__root.tsx +2 -2
  250. package/src/admin/ui/src/routes/api-keys.tsx +2 -2
  251. package/src/admin/ui.generated.ts +13 -13
  252. package/src/analytics/Analytics.test.ts +527 -0
  253. package/src/analytics/Analytics.ts +318 -0
  254. package/src/analytics/tables/requestEvents.ts +523 -0
  255. package/src/apps/composition.test.ts +26 -13
  256. package/src/apps/data/App.test.ts +72 -0
  257. package/src/apps/data/App.ts +37 -0
  258. package/src/apps/data/FundingRouteProviders.test.ts +281 -0
  259. package/src/apps/data/FundingRouteProviders.ts +459 -0
  260. package/src/apps/data/index.ts +1 -0
  261. package/src/apps/data/routes/funding.test.ts +314 -0
  262. package/src/apps/data/routes/funding.ts +698 -0
  263. package/src/apps/data/routes/receipts.ts +2 -9
  264. package/src/apps/data/routes/rpc.test.ts +78 -2
  265. package/src/apps/data/routes/rpc.ts +31 -1
  266. package/src/apps/data/routes/webhooks.test.ts +1 -1
  267. package/src/apps/data/routes/webhooks.ts +11 -8
  268. package/src/apps/docs/App.ts +30 -101
  269. package/src/apps/docs/reference.ts +132 -0
  270. package/src/apps/index.ts +3 -2
  271. package/src/apps/{platform → management}/App.ts +56 -17
  272. package/src/apps/management/Billing.test.ts +530 -0
  273. package/src/apps/management/Billing.ts +682 -0
  274. package/src/apps/management/index.ts +2 -0
  275. package/src/apps/{platform → management}/routes/api-keys.test.ts +172 -9
  276. package/src/apps/{platform → management}/routes/api-keys.ts +137 -21
  277. package/src/apps/management/routes/billing.test.ts +1100 -0
  278. package/src/apps/management/routes/billing.ts +966 -0
  279. package/src/apps/{platform → management}/routes/invitations.test.ts +55 -7
  280. package/src/apps/{platform → management}/routes/invitations.ts +69 -1
  281. package/src/apps/management/routes/me.test.ts +351 -0
  282. package/src/apps/{platform → management}/routes/orgs.ts +26 -4
  283. package/src/apps/management/routes/scopes.test.ts +29 -0
  284. package/src/apps/management/routes/scopes.ts +85 -0
  285. package/src/apps/management/routes/usage.test.ts +422 -0
  286. package/src/apps/management/routes/usage.ts +527 -0
  287. package/src/apps/mcp.test.ts +206 -0
  288. package/src/apps/mcp.ts +250 -0
  289. package/src/apps/relay/App.test.ts +457 -8
  290. package/src/apps/relay/App.ts +120 -12
  291. package/src/apps/relay/Sponsorships.test.ts +1 -1
  292. package/src/apps/relay/Sponsorships.ts +2 -1
  293. package/src/cli/Cli.test.ts +25 -2
  294. package/src/cli/Cli.ts +17 -2
  295. package/src/cli/commands/admin.test.ts +83 -0
  296. package/src/cli/commands/admin.ts +89 -1
  297. package/src/db/Db.ts +137 -0
  298. package/src/db/Schema.ts +104 -2
  299. package/src/db/tables/billingSettings.test.ts +87 -0
  300. package/src/db/tables/billingSettings.ts +108 -0
  301. package/src/db/tables/invitations.ts +2 -2
  302. package/src/db/tables/organizations.test.ts +1 -1
  303. package/src/db/tables/organizations.ts +15 -5
  304. package/src/db/tables/projects.ts +2 -2
  305. package/src/db/tables/requestUsage.ts +231 -0
  306. package/src/db/tables/sponsoredTransactions.test.ts +108 -1
  307. package/src/db/tables/sponsoredTransactions.ts +230 -2
  308. package/src/db/tables/stripeCustomers.test.ts +109 -0
  309. package/src/db/tables/stripeCustomers.ts +162 -0
  310. package/src/db/tables/users.ts +2 -2
  311. package/src/handlers/internal/sponsorship.ts +34 -7
  312. package/src/handlers/internal/utils.ts +19 -7
  313. package/src/index.ts +1 -0
  314. package/src/internal/Auth.test.ts +175 -25
  315. package/src/internal/Auth.ts +176 -87
  316. package/src/internal/Cache.ts +5 -1
  317. package/src/internal/EdgeCache.test.ts +27 -4
  318. package/src/internal/EdgeCache.ts +47 -9
  319. package/src/internal/Fees.test.ts +32 -0
  320. package/src/internal/Fees.ts +51 -0
  321. package/src/internal/FundingRoutes.test.ts +213 -0
  322. package/src/internal/FundingRoutes.ts +898 -0
  323. package/src/internal/Id.test.ts +17 -0
  324. package/src/internal/Id.ts +24 -0
  325. package/src/internal/Log.test.ts +1 -0
  326. package/src/internal/Log.ts +5 -0
  327. package/src/internal/OpenApi.ts +12 -1
  328. package/src/internal/RateLimit.test.ts +84 -0
  329. package/src/internal/RateLimit.ts +70 -0
  330. package/src/internal/Response.ts +1 -1
  331. package/src/internal/Schema.ts +8 -0
  332. package/src/internal/Webhooks.test.ts +3 -3
  333. package/src/internal/Webhooks.ts +3 -3
  334. package/dist/apps/platform/App.d.ts.map +0 -1
  335. package/dist/apps/platform/App.js.map +0 -1
  336. package/dist/apps/platform/index.d.ts +0 -2
  337. package/dist/apps/platform/index.d.ts.map +0 -1
  338. package/dist/apps/platform/index.js +0 -2
  339. package/dist/apps/platform/index.js.map +0 -1
  340. package/dist/apps/platform/routes/api-keys.d.ts.map +0 -1
  341. package/dist/apps/platform/routes/api-keys.js.map +0 -1
  342. package/dist/apps/platform/routes/invitations.d.ts.map +0 -1
  343. package/dist/apps/platform/routes/invitations.js.map +0 -1
  344. package/dist/apps/platform/routes/me.d.ts.map +0 -1
  345. package/dist/apps/platform/routes/me.js.map +0 -1
  346. package/dist/apps/platform/routes/members.d.ts.map +0 -1
  347. package/dist/apps/platform/routes/members.js.map +0 -1
  348. package/dist/apps/platform/routes/orgs.d.ts.map +0 -1
  349. package/dist/apps/platform/routes/orgs.js.map +0 -1
  350. package/dist/apps/platform/routes/projects.js.map +0 -1
  351. package/src/apps/platform/index.ts +0 -1
  352. package/src/apps/platform/routes/me.test.ts +0 -121
  353. /package/dist/apps/{platform → management}/routes/me.js +0 -0
  354. /package/dist/apps/{platform → management}/routes/members.d.ts +0 -0
  355. /package/dist/apps/{platform → management}/routes/members.js +0 -0
  356. /package/dist/apps/{platform → management}/routes/projects.js +0 -0
  357. /package/src/apps/{platform → management}/routes/me.ts +0 -0
  358. /package/src/apps/{platform → management}/routes/members.test.ts +0 -0
  359. /package/src/apps/{platform → management}/routes/members.ts +0 -0
  360. /package/src/apps/{platform → management}/routes/orgs.test.ts +0 -0
  361. /package/src/apps/{platform → management}/routes/projects.test.ts +0 -0
  362. /package/src/apps/{platform → management}/routes/projects.ts +0 -0
@@ -216,9 +216,14 @@ export declare namespace schema {
216
216
  export declare function coingecko(): import("hono/hono-base").HonoBase<App.Environment, {
217
217
  "/gecko/:chainId/latest-block": {
218
218
  $get: {
219
- output: null;
220
- outputFormat: "body";
221
- status: 402;
219
+ output: {
220
+ block: {
221
+ blockNumber: number;
222
+ blockTimestamp: number;
223
+ };
224
+ };
225
+ outputFormat: "json";
226
+ status: 200;
222
227
  input: {
223
228
  param: {
224
229
  chainId: string;
@@ -243,14 +248,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
243
248
  } | {
244
249
  output: {
245
250
  error: {
246
- code: "api_key_invalid" | "api_key_missing";
251
+ code: "chain_id_invalid";
247
252
  details?: readonly Response.error.Detail[] | undefined;
248
253
  message: string;
249
254
  };
250
255
  requestId: string;
251
256
  };
252
257
  outputFormat: "json";
253
- status: 401;
258
+ status: 400;
254
259
  input: {
255
260
  param: {
256
261
  chainId: string;
@@ -259,30 +264,23 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
259
264
  } | {
260
265
  output: {
261
266
  error: {
262
- code: "api_key_forbidden";
267
+ code: "api_key_invalid" | "api_key_missing";
263
268
  details?: readonly Response.error.Detail[] | undefined;
264
269
  message: string;
265
270
  };
266
271
  requestId: string;
267
272
  };
268
273
  outputFormat: "json";
269
- status: 403;
274
+ status: 401;
270
275
  input: {
271
276
  param: {
272
277
  chainId: string;
273
278
  };
274
279
  };
275
280
  } | {
276
- output: {
277
- error: {
278
- code: "payment_required" | "rate_limit_exceeded";
279
- details?: readonly Response.error.Detail[] | undefined;
280
- message: string;
281
- };
282
- requestId: string;
283
- };
284
- outputFormat: "json";
285
- status: 429;
281
+ output: null;
282
+ outputFormat: "body";
283
+ status: 402;
286
284
  input: {
287
285
  param: {
288
286
  chainId: string;
@@ -291,14 +289,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
291
289
  } | {
292
290
  output: {
293
291
  error: {
294
- code: "upstream_error";
292
+ code: "api_key_forbidden";
295
293
  details?: readonly Response.error.Detail[] | undefined;
296
294
  message: string;
297
295
  };
298
296
  requestId: string;
299
297
  };
300
298
  outputFormat: "json";
301
- status: 502;
299
+ status: 403;
302
300
  input: {
303
301
  param: {
304
302
  chainId: string;
@@ -307,14 +305,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
307
305
  } | {
308
306
  output: {
309
307
  error: {
310
- code: "chain_id_invalid";
308
+ code: "not_found";
311
309
  details?: readonly Response.error.Detail[] | undefined;
312
310
  message: string;
313
311
  };
314
312
  requestId: string;
315
313
  };
316
314
  outputFormat: "json";
317
- status: 400;
315
+ status: 404;
318
316
  input: {
319
317
  param: {
320
318
  chainId: string;
@@ -323,14 +321,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
323
321
  } | {
324
322
  output: {
325
323
  error: {
326
- code: "not_found";
324
+ code: "payment_required" | "rate_limit_exceeded";
327
325
  details?: readonly Response.error.Detail[] | undefined;
328
326
  message: string;
329
327
  };
330
328
  requestId: string;
331
329
  };
332
330
  outputFormat: "json";
333
- status: 404;
331
+ status: 429;
334
332
  input: {
335
333
  param: {
336
334
  chainId: string;
@@ -338,13 +336,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
338
336
  };
339
337
  } | {
340
338
  output: {
341
- block: {
342
- blockNumber: number;
343
- blockTimestamp: number;
339
+ error: {
340
+ code: "upstream_error";
341
+ details?: readonly Response.error.Detail[] | undefined;
342
+ message: string;
344
343
  };
344
+ requestId: string;
345
345
  };
346
346
  outputFormat: "json";
347
- status: 200;
347
+ status: 502;
348
348
  input: {
349
349
  param: {
350
350
  chainId: string;
@@ -355,9 +355,17 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
355
355
  } & {
356
356
  "/gecko/:chainId/assets/:address": {
357
357
  $get: {
358
- output: null;
359
- outputFormat: "body";
360
- status: 402;
358
+ output: {
359
+ asset: {
360
+ id: string;
361
+ name: string;
362
+ symbol: string;
363
+ decimals: number;
364
+ totalSupply: string;
365
+ };
366
+ };
367
+ outputFormat: "json";
368
+ status: 200;
361
369
  input: {
362
370
  param: {
363
371
  chainId: string;
@@ -384,14 +392,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
384
392
  } | {
385
393
  output: {
386
394
  error: {
387
- code: "api_key_invalid" | "api_key_missing";
395
+ code: "address_invalid";
388
396
  details?: readonly Response.error.Detail[] | undefined;
389
397
  message: string;
390
398
  };
391
399
  requestId: string;
392
400
  };
393
401
  outputFormat: "json";
394
- status: 401;
402
+ status: 400;
395
403
  input: {
396
404
  param: {
397
405
  chainId: string;
@@ -401,14 +409,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
401
409
  } | {
402
410
  output: {
403
411
  error: {
404
- code: "api_key_forbidden";
412
+ code: "api_key_invalid" | "api_key_missing";
405
413
  details?: readonly Response.error.Detail[] | undefined;
406
414
  message: string;
407
415
  };
408
416
  requestId: string;
409
417
  };
410
418
  outputFormat: "json";
411
- status: 403;
419
+ status: 401;
412
420
  input: {
413
421
  param: {
414
422
  chainId: string;
@@ -416,16 +424,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
416
424
  };
417
425
  };
418
426
  } | {
419
- output: {
420
- error: {
421
- code: "payment_required" | "rate_limit_exceeded";
422
- details?: readonly Response.error.Detail[] | undefined;
423
- message: string;
424
- };
425
- requestId: string;
426
- };
427
- outputFormat: "json";
428
- status: 429;
427
+ output: null;
428
+ outputFormat: "body";
429
+ status: 402;
429
430
  input: {
430
431
  param: {
431
432
  chainId: string;
@@ -435,14 +436,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
435
436
  } | {
436
437
  output: {
437
438
  error: {
438
- code: "upstream_error";
439
+ code: "api_key_forbidden";
439
440
  details?: readonly Response.error.Detail[] | undefined;
440
441
  message: string;
441
442
  };
442
443
  requestId: string;
443
444
  };
444
445
  outputFormat: "json";
445
- status: 502;
446
+ status: 403;
446
447
  input: {
447
448
  param: {
448
449
  chainId: string;
@@ -452,14 +453,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
452
453
  } | {
453
454
  output: {
454
455
  error: {
455
- code: "address_invalid";
456
+ code: "not_found";
456
457
  details?: readonly Response.error.Detail[] | undefined;
457
458
  message: string;
458
459
  };
459
460
  requestId: string;
460
461
  };
461
462
  outputFormat: "json";
462
- status: 400;
463
+ status: 404;
463
464
  input: {
464
465
  param: {
465
466
  chainId: string;
@@ -469,14 +470,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
469
470
  } | {
470
471
  output: {
471
472
  error: {
472
- code: "not_found";
473
+ code: "payment_required" | "rate_limit_exceeded";
473
474
  details?: readonly Response.error.Detail[] | undefined;
474
475
  message: string;
475
476
  };
476
477
  requestId: string;
477
478
  };
478
479
  outputFormat: "json";
479
- status: 404;
480
+ status: 429;
480
481
  input: {
481
482
  param: {
482
483
  chainId: string;
@@ -485,16 +486,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
485
486
  };
486
487
  } | {
487
488
  output: {
488
- asset: {
489
- id: string;
490
- name: string;
491
- symbol: string;
492
- decimals: number;
493
- totalSupply: string;
489
+ error: {
490
+ code: "upstream_error";
491
+ details?: readonly Response.error.Detail[] | undefined;
492
+ message: string;
494
493
  };
494
+ requestId: string;
495
495
  };
496
496
  outputFormat: "json";
497
- status: 200;
497
+ status: 502;
498
498
  input: {
499
499
  param: {
500
500
  chainId: string;
@@ -506,9 +506,35 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
506
506
  } & {
507
507
  "/gecko/:chainId/pairs": {
508
508
  $get: {
509
- output: null;
510
- outputFormat: "body";
511
- status: 402;
509
+ output: {
510
+ pairs: {
511
+ id: `0x${string}`;
512
+ dexKey: string;
513
+ asset0Id: string;
514
+ asset1Id: string;
515
+ token0: {
516
+ address: string;
517
+ name: string;
518
+ symbol: string;
519
+ decimals: number;
520
+ totalSupply: string;
521
+ };
522
+ token1: {
523
+ address: string;
524
+ name: string;
525
+ symbol: string;
526
+ decimals: number;
527
+ totalSupply: string;
528
+ };
529
+ reserve0: string;
530
+ reserve1: string;
531
+ createdAtBlockNumber?: number | undefined;
532
+ createdAtBlockTimestamp?: number | undefined;
533
+ createdAtTxnId?: string | undefined;
534
+ }[];
535
+ };
536
+ outputFormat: "json";
537
+ status: 200;
512
538
  input: {
513
539
  param: {
514
540
  chainId: string;
@@ -541,14 +567,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
541
567
  } | {
542
568
  output: {
543
569
  error: {
544
- code: "api_key_invalid" | "api_key_missing";
570
+ code: "query_invalid";
545
571
  details?: readonly Response.error.Detail[] | undefined;
546
572
  message: string;
547
573
  };
548
574
  requestId: string;
549
575
  };
550
576
  outputFormat: "json";
551
- status: 401;
577
+ status: 400;
552
578
  input: {
553
579
  param: {
554
580
  chainId: string;
@@ -561,14 +587,27 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
561
587
  } | {
562
588
  output: {
563
589
  error: {
564
- code: "api_key_forbidden";
590
+ code: "api_key_invalid" | "api_key_missing";
565
591
  details?: readonly Response.error.Detail[] | undefined;
566
592
  message: string;
567
593
  };
568
594
  requestId: string;
569
595
  };
570
596
  outputFormat: "json";
571
- status: 403;
597
+ status: 401;
598
+ input: {
599
+ param: {
600
+ chainId: string;
601
+ };
602
+ } & {
603
+ query?: {
604
+ limit?: string | string[];
605
+ } | undefined;
606
+ };
607
+ } | {
608
+ output: null;
609
+ outputFormat: "body";
610
+ status: 402;
572
611
  input: {
573
612
  param: {
574
613
  chainId: string;
@@ -581,14 +620,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
581
620
  } | {
582
621
  output: {
583
622
  error: {
584
- code: "payment_required" | "rate_limit_exceeded";
623
+ code: "api_key_forbidden";
585
624
  details?: readonly Response.error.Detail[] | undefined;
586
625
  message: string;
587
626
  };
588
627
  requestId: string;
589
628
  };
590
629
  outputFormat: "json";
591
- status: 429;
630
+ status: 403;
592
631
  input: {
593
632
  param: {
594
633
  chainId: string;
@@ -601,14 +640,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
601
640
  } | {
602
641
  output: {
603
642
  error: {
604
- code: "query_invalid";
643
+ code: "payment_required" | "rate_limit_exceeded";
605
644
  details?: readonly Response.error.Detail[] | undefined;
606
645
  message: string;
607
646
  };
608
647
  requestId: string;
609
648
  };
610
649
  outputFormat: "json";
611
- status: 400;
650
+ status: 429;
612
651
  input: {
613
652
  param: {
614
653
  chainId: string;
@@ -638,9 +677,13 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
638
677
  limit?: string | string[];
639
678
  } | undefined;
640
679
  };
641
- } | {
680
+ };
681
+ };
682
+ } & {
683
+ "/gecko/:chainId/pairs/:pairId": {
684
+ $get: {
642
685
  output: {
643
- pairs: {
686
+ pair: {
644
687
  id: `0x${string}`;
645
688
  dexKey: string;
646
689
  asset0Id: string;
@@ -664,27 +707,10 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
664
707
  createdAtBlockNumber?: number | undefined;
665
708
  createdAtBlockTimestamp?: number | undefined;
666
709
  createdAtTxnId?: string | undefined;
667
- }[];
710
+ };
668
711
  };
669
712
  outputFormat: "json";
670
713
  status: 200;
671
- input: {
672
- param: {
673
- chainId: string;
674
- };
675
- } & {
676
- query?: {
677
- limit?: string | string[];
678
- } | undefined;
679
- };
680
- };
681
- };
682
- } & {
683
- "/gecko/:chainId/pairs/:pairId": {
684
- $get: {
685
- output: null;
686
- outputFormat: "body";
687
- status: 402;
688
714
  input: {
689
715
  param: {
690
716
  chainId: string;
@@ -711,14 +737,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
711
737
  } | {
712
738
  output: {
713
739
  error: {
714
- code: "api_key_invalid" | "api_key_missing";
740
+ code: "pair_id_invalid";
715
741
  details?: readonly Response.error.Detail[] | undefined;
716
742
  message: string;
717
743
  };
718
744
  requestId: string;
719
745
  };
720
746
  outputFormat: "json";
721
- status: 401;
747
+ status: 400;
722
748
  input: {
723
749
  param: {
724
750
  chainId: string;
@@ -728,14 +754,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
728
754
  } | {
729
755
  output: {
730
756
  error: {
731
- code: "api_key_forbidden";
757
+ code: "api_key_invalid" | "api_key_missing";
732
758
  details?: readonly Response.error.Detail[] | undefined;
733
759
  message: string;
734
760
  };
735
761
  requestId: string;
736
762
  };
737
763
  outputFormat: "json";
738
- status: 403;
764
+ status: 401;
739
765
  input: {
740
766
  param: {
741
767
  chainId: string;
@@ -743,16 +769,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
743
769
  };
744
770
  };
745
771
  } | {
746
- output: {
747
- error: {
748
- code: "payment_required" | "rate_limit_exceeded";
749
- details?: readonly Response.error.Detail[] | undefined;
750
- message: string;
751
- };
752
- requestId: string;
753
- };
754
- outputFormat: "json";
755
- status: 429;
772
+ output: null;
773
+ outputFormat: "body";
774
+ status: 402;
756
775
  input: {
757
776
  param: {
758
777
  chainId: string;
@@ -762,14 +781,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
762
781
  } | {
763
782
  output: {
764
783
  error: {
765
- code: "upstream_error";
784
+ code: "api_key_forbidden";
766
785
  details?: readonly Response.error.Detail[] | undefined;
767
786
  message: string;
768
787
  };
769
788
  requestId: string;
770
789
  };
771
790
  outputFormat: "json";
772
- status: 502;
791
+ status: 403;
773
792
  input: {
774
793
  param: {
775
794
  chainId: string;
@@ -796,14 +815,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
796
815
  } | {
797
816
  output: {
798
817
  error: {
799
- code: "pair_id_invalid";
818
+ code: "payment_required" | "rate_limit_exceeded";
800
819
  details?: readonly Response.error.Detail[] | undefined;
801
820
  message: string;
802
821
  };
803
822
  requestId: string;
804
823
  };
805
824
  outputFormat: "json";
806
- status: 400;
825
+ status: 429;
807
826
  input: {
808
827
  param: {
809
828
  chainId: string;
@@ -812,34 +831,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
812
831
  };
813
832
  } | {
814
833
  output: {
815
- pair: {
816
- id: `0x${string}`;
817
- dexKey: string;
818
- asset0Id: string;
819
- asset1Id: string;
820
- token0: {
821
- address: string;
822
- name: string;
823
- symbol: string;
824
- decimals: number;
825
- totalSupply: string;
826
- };
827
- token1: {
828
- address: string;
829
- name: string;
830
- symbol: string;
831
- decimals: number;
832
- totalSupply: string;
833
- };
834
- reserve0: string;
835
- reserve1: string;
836
- createdAtBlockNumber?: number | undefined;
837
- createdAtBlockTimestamp?: number | undefined;
838
- createdAtTxnId?: string | undefined;
834
+ error: {
835
+ code: "upstream_error";
836
+ details?: readonly Response.error.Detail[] | undefined;
837
+ message: string;
839
838
  };
839
+ requestId: string;
840
840
  };
841
841
  outputFormat: "json";
842
- status: 200;
842
+ status: 502;
843
843
  input: {
844
844
  param: {
845
845
  chainId: string;
@@ -851,9 +851,31 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
851
851
  } & {
852
852
  "/gecko/:chainId/events": {
853
853
  $get: {
854
- output: null;
855
- outputFormat: "body";
856
- status: 402;
854
+ output: {
855
+ events: {
856
+ block: {
857
+ blockNumber: number;
858
+ blockTimestamp: number;
859
+ };
860
+ eventType: "swap";
861
+ txnId: string;
862
+ txnIndex: number;
863
+ eventIndex: number;
864
+ maker: string;
865
+ pairId: `0x${string}`;
866
+ asset0In?: string | undefined;
867
+ asset1In?: string | undefined;
868
+ asset0Out?: string | undefined;
869
+ asset1Out?: string | undefined;
870
+ priceNative: string;
871
+ reserves: {
872
+ asset0: string;
873
+ asset1: string;
874
+ };
875
+ }[];
876
+ };
877
+ outputFormat: "json";
878
+ status: 200;
857
879
  input: {
858
880
  param: {
859
881
  chainId: string;
@@ -888,14 +910,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
888
910
  } | {
889
911
  output: {
890
912
  error: {
891
- code: "api_key_invalid" | "api_key_missing";
913
+ code: "query_invalid";
892
914
  details?: readonly Response.error.Detail[] | undefined;
893
915
  message: string;
894
916
  };
895
917
  requestId: string;
896
918
  };
897
919
  outputFormat: "json";
898
- status: 401;
920
+ status: 400;
899
921
  input: {
900
922
  param: {
901
923
  chainId: string;
@@ -909,14 +931,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
909
931
  } | {
910
932
  output: {
911
933
  error: {
912
- code: "api_key_forbidden";
934
+ code: "api_key_invalid" | "api_key_missing";
913
935
  details?: readonly Response.error.Detail[] | undefined;
914
936
  message: string;
915
937
  };
916
938
  requestId: string;
917
939
  };
918
940
  outputFormat: "json";
919
- status: 403;
941
+ status: 401;
920
942
  input: {
921
943
  param: {
922
944
  chainId: string;
@@ -928,16 +950,9 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
928
950
  } | undefined;
929
951
  };
930
952
  } | {
931
- output: {
932
- error: {
933
- code: "payment_required" | "rate_limit_exceeded";
934
- details?: readonly Response.error.Detail[] | undefined;
935
- message: string;
936
- };
937
- requestId: string;
938
- };
939
- outputFormat: "json";
940
- status: 429;
953
+ output: null;
954
+ outputFormat: "body";
955
+ status: 402;
941
956
  input: {
942
957
  param: {
943
958
  chainId: string;
@@ -951,14 +966,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
951
966
  } | {
952
967
  output: {
953
968
  error: {
954
- code: "query_invalid";
969
+ code: "api_key_forbidden";
955
970
  details?: readonly Response.error.Detail[] | undefined;
956
971
  message: string;
957
972
  };
958
973
  requestId: string;
959
974
  };
960
975
  outputFormat: "json";
961
- status: 400;
976
+ status: 403;
962
977
  input: {
963
978
  param: {
964
979
  chainId: string;
@@ -972,14 +987,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
972
987
  } | {
973
988
  output: {
974
989
  error: {
975
- code: "upstream_error";
990
+ code: "not_found";
976
991
  details?: readonly Response.error.Detail[] | undefined;
977
992
  message: string;
978
993
  };
979
994
  requestId: string;
980
995
  };
981
996
  outputFormat: "json";
982
- status: 502;
997
+ status: 404;
983
998
  input: {
984
999
  param: {
985
1000
  chainId: string;
@@ -993,14 +1008,14 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
993
1008
  } | {
994
1009
  output: {
995
1010
  error: {
996
- code: "not_found";
1011
+ code: "payment_required" | "rate_limit_exceeded";
997
1012
  details?: readonly Response.error.Detail[] | undefined;
998
1013
  message: string;
999
1014
  };
1000
1015
  requestId: string;
1001
1016
  };
1002
1017
  outputFormat: "json";
1003
- status: 404;
1018
+ status: 429;
1004
1019
  input: {
1005
1020
  param: {
1006
1021
  chainId: string;
@@ -1013,30 +1028,15 @@ export declare function coingecko(): import("hono/hono-base").HonoBase<App.Envir
1013
1028
  };
1014
1029
  } | {
1015
1030
  output: {
1016
- events: {
1017
- block: {
1018
- blockNumber: number;
1019
- blockTimestamp: number;
1020
- };
1021
- eventType: "swap";
1022
- txnId: string;
1023
- txnIndex: number;
1024
- eventIndex: number;
1025
- maker: string;
1026
- pairId: `0x${string}`;
1027
- asset0In?: string | undefined;
1028
- asset1In?: string | undefined;
1029
- asset0Out?: string | undefined;
1030
- asset1Out?: string | undefined;
1031
- priceNative: string;
1032
- reserves: {
1033
- asset0: string;
1034
- asset1: string;
1035
- };
1036
- }[];
1031
+ error: {
1032
+ code: "upstream_error";
1033
+ details?: readonly Response.error.Detail[] | undefined;
1034
+ message: string;
1035
+ };
1036
+ requestId: string;
1037
1037
  };
1038
1038
  outputFormat: "json";
1039
- status: 200;
1039
+ status: 502;
1040
1040
  input: {
1041
1041
  param: {
1042
1042
  chainId: string;