tapimo 0.0.2 → 0.2.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 (517) hide show
  1. package/README.md +38 -16
  2. package/dist/ApiKey.d.ts +14 -11
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +11 -12
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +207 -0
  7. package/dist/ApiKeys.d.ts.map +1 -0
  8. package/dist/ApiKeys.js +282 -0
  9. package/dist/ApiKeys.js.map +1 -0
  10. package/dist/App.d.ts +6771 -3819
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +145 -317
  13. package/dist/App.js.map +1 -1
  14. package/dist/Handler.d.ts +86 -0
  15. package/dist/Handler.d.ts.map +1 -0
  16. package/dist/Handler.js +83 -0
  17. package/dist/Handler.js.map +1 -0
  18. package/dist/Scope.d.ts +14 -4
  19. package/dist/Scope.d.ts.map +1 -1
  20. package/dist/Scope.js +16 -4
  21. package/dist/Scope.js.map +1 -1
  22. package/dist/Webhooks.d.ts +5 -7
  23. package/dist/Webhooks.d.ts.map +1 -1
  24. package/dist/Webhooks.js +11 -4
  25. package/dist/Webhooks.js.map +1 -1
  26. package/dist/admin/Access.d.ts +1 -3
  27. package/dist/admin/Access.d.ts.map +1 -1
  28. package/dist/admin/Access.js +1 -3
  29. package/dist/admin/Access.js.map +1 -1
  30. package/dist/admin/App.d.ts +167 -205
  31. package/dist/admin/App.d.ts.map +1 -1
  32. package/dist/admin/App.js +2 -4
  33. package/dist/admin/App.js.map +1 -1
  34. package/dist/admin/apps/api-keys.d.ts +105 -5
  35. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  36. package/dist/admin/apps/api-keys.js +75 -9
  37. package/dist/admin/apps/api-keys.js.map +1 -1
  38. package/dist/admin/apps/scopes.d.ts +6 -0
  39. package/dist/admin/apps/scopes.d.ts.map +1 -1
  40. package/dist/admin/apps/verified-tokens.d.ts +35 -149
  41. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  42. package/dist/admin/apps/verified-tokens.js +18 -39
  43. package/dist/admin/apps/verified-tokens.js.map +1 -1
  44. package/dist/admin/ui.generated.d.ts +1 -1
  45. package/dist/admin/ui.generated.js +1 -1
  46. package/dist/apps/data/App.d.ts +19176 -0
  47. package/dist/apps/data/App.d.ts.map +1 -0
  48. package/dist/apps/data/App.js +236 -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} +49 -49
  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} +183 -183
  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} +460 -460
  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} +94 -94
  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/{indexer.d.ts → data/routes/indexer.d.ts} +4 -4
  83. package/dist/apps/data/routes/indexer.d.ts.map +1 -0
  84. package/dist/apps/{indexer.js → data/routes/indexer.js} +13 -9
  85. package/dist/apps/data/routes/indexer.js.map +1 -0
  86. package/dist/apps/{receipts.d.ts → data/routes/receipts.d.ts} +6 -6
  87. package/dist/apps/data/routes/receipts.d.ts.map +1 -0
  88. package/dist/apps/{receipts.js → data/routes/receipts.js} +12 -12
  89. package/dist/apps/data/routes/receipts.js.map +1 -0
  90. package/dist/apps/{rpc.d.ts → data/routes/rpc.d.ts} +4 -4
  91. package/dist/apps/data/routes/rpc.d.ts.map +1 -0
  92. package/dist/apps/{rpc.js → data/routes/rpc.js} +6 -6
  93. package/dist/apps/data/routes/rpc.js.map +1 -0
  94. package/dist/apps/{tokenlist.d.ts → data/routes/tokenlist.d.ts} +4 -4
  95. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -0
  96. package/dist/apps/{tokenlist.js → data/routes/tokenlist.js} +8 -8
  97. package/dist/apps/data/routes/tokenlist.js.map +1 -0
  98. package/dist/apps/{tokens.d.ts → data/routes/tokens.d.ts} +11 -11
  99. package/dist/apps/data/routes/tokens.d.ts.map +1 -0
  100. package/dist/apps/{tokens.js → data/routes/tokens.js} +19 -19
  101. package/dist/apps/data/routes/tokens.js.map +1 -0
  102. package/dist/apps/{transactions.d.ts → data/routes/transactions.d.ts} +288 -288
  103. package/dist/apps/data/routes/transactions.d.ts.map +1 -0
  104. package/dist/apps/{transactions.js → data/routes/transactions.js} +13 -13
  105. package/dist/apps/data/routes/transactions.js.map +1 -0
  106. package/dist/apps/{transfers.d.ts → data/routes/transfers.d.ts} +35 -35
  107. package/dist/apps/data/routes/transfers.d.ts.map +1 -0
  108. package/dist/apps/{transfers.js → data/routes/transfers.js} +13 -13
  109. package/dist/apps/data/routes/transfers.js.map +1 -0
  110. package/dist/apps/{verified-tokens.d.ts → data/routes/verified-tokens.d.ts} +42 -42
  111. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -0
  112. package/dist/apps/{verified-tokens.js → data/routes/verified-tokens.js} +9 -9
  113. package/dist/apps/data/routes/verified-tokens.js.map +1 -0
  114. package/dist/apps/{webhooks.d.ts → data/routes/webhooks.d.ts} +66 -63
  115. package/dist/apps/{webhooks.d.ts.map → data/routes/webhooks.d.ts.map} +1 -1
  116. package/dist/apps/{webhooks.js → data/routes/webhooks.js} +67 -59
  117. package/dist/apps/data/routes/webhooks.js.map +1 -0
  118. package/dist/apps/docs/App.d.ts +27 -0
  119. package/dist/apps/docs/App.d.ts.map +1 -0
  120. package/dist/apps/docs/App.js +122 -0
  121. package/dist/apps/docs/App.js.map +1 -0
  122. package/dist/{internal/OpenApi.fonts.d.ts → apps/docs/fonts.d.ts} +1 -1
  123. package/dist/apps/docs/fonts.d.ts.map +1 -0
  124. package/dist/{internal/OpenApi.fonts.js → apps/docs/fonts.js} +1 -1
  125. package/dist/apps/docs/fonts.js.map +1 -0
  126. package/dist/apps/docs/index.d.ts +2 -0
  127. package/dist/apps/docs/index.d.ts.map +1 -0
  128. package/dist/apps/docs/index.js +2 -0
  129. package/dist/apps/docs/index.js.map +1 -0
  130. package/dist/{internal/OpenApi.logo.d.ts → apps/docs/logo.d.ts} +1 -1
  131. package/dist/apps/docs/logo.d.ts.map +1 -0
  132. package/dist/{internal/OpenApi.logo.js → apps/docs/logo.js} +1 -1
  133. package/dist/apps/docs/logo.js.map +1 -0
  134. package/dist/apps/index.d.ts +4 -0
  135. package/dist/apps/index.d.ts.map +1 -0
  136. package/dist/apps/index.js +4 -0
  137. package/dist/apps/index.js.map +1 -0
  138. package/dist/apps/metadata.d.ts +7 -0
  139. package/dist/apps/metadata.d.ts.map +1 -0
  140. package/dist/apps/metadata.js +15 -0
  141. package/dist/apps/metadata.js.map +1 -0
  142. package/dist/apps/platform/App.d.ts +2985 -0
  143. package/dist/apps/platform/App.d.ts.map +1 -0
  144. package/dist/apps/platform/App.js +74 -0
  145. package/dist/apps/platform/App.js.map +1 -0
  146. package/dist/apps/platform/index.d.ts +2 -0
  147. package/dist/apps/platform/index.d.ts.map +1 -0
  148. package/dist/apps/platform/index.js +2 -0
  149. package/dist/apps/platform/index.js.map +1 -0
  150. package/dist/apps/platform/routes/api-keys.d.ts +681 -0
  151. package/dist/apps/platform/routes/api-keys.d.ts.map +1 -0
  152. package/dist/apps/platform/routes/api-keys.js +328 -0
  153. package/dist/apps/platform/routes/api-keys.js.map +1 -0
  154. package/dist/apps/platform/routes/invitations.d.ts +733 -0
  155. package/dist/apps/platform/routes/invitations.d.ts.map +1 -0
  156. package/dist/apps/platform/routes/invitations.js +413 -0
  157. package/dist/apps/platform/routes/invitations.js.map +1 -0
  158. package/dist/apps/platform/routes/me.d.ts +95 -0
  159. package/dist/apps/platform/routes/me.d.ts.map +1 -0
  160. package/dist/apps/platform/routes/me.js +81 -0
  161. package/dist/apps/platform/routes/me.js.map +1 -0
  162. package/dist/apps/platform/routes/members.d.ts +554 -0
  163. package/dist/apps/platform/routes/members.d.ts.map +1 -0
  164. package/dist/apps/platform/routes/members.js +251 -0
  165. package/dist/apps/platform/routes/members.js.map +1 -0
  166. package/dist/apps/platform/routes/orgs.d.ts +582 -0
  167. package/dist/apps/platform/routes/orgs.d.ts.map +1 -0
  168. package/dist/apps/platform/routes/orgs.js +265 -0
  169. package/dist/apps/platform/routes/orgs.js.map +1 -0
  170. package/dist/apps/platform/routes/projects.d.ts +740 -0
  171. package/dist/apps/platform/routes/projects.d.ts.map +1 -0
  172. package/dist/apps/platform/routes/projects.js +286 -0
  173. package/dist/apps/platform/routes/projects.js.map +1 -0
  174. package/dist/apps/relay/App.d.ts +41 -0
  175. package/dist/apps/relay/App.d.ts.map +1 -0
  176. package/dist/apps/relay/App.js +103 -0
  177. package/dist/apps/relay/App.js.map +1 -0
  178. package/dist/apps/relay/Sponsorships.d.ts +107 -0
  179. package/dist/apps/relay/Sponsorships.d.ts.map +1 -0
  180. package/dist/apps/relay/Sponsorships.js +193 -0
  181. package/dist/apps/relay/Sponsorships.js.map +1 -0
  182. package/dist/apps/relay/index.d.ts +3 -0
  183. package/dist/apps/relay/index.d.ts.map +1 -0
  184. package/dist/apps/relay/index.js +3 -0
  185. package/dist/apps/relay/index.js.map +1 -0
  186. package/dist/{Cli.d.ts → cli/Cli.d.ts} +13 -2
  187. package/dist/cli/Cli.d.ts.map +1 -0
  188. package/dist/cli/Cli.js +19 -0
  189. package/dist/cli/Cli.js.map +1 -0
  190. package/dist/cli/bin.d.ts +3 -0
  191. package/dist/cli/bin.d.ts.map +1 -0
  192. package/dist/cli/bin.js +4 -0
  193. package/dist/cli/bin.js.map +1 -0
  194. package/dist/cli/commands/admin.d.ts +15 -0
  195. package/dist/cli/commands/admin.d.ts.map +1 -0
  196. package/dist/cli/commands/admin.js +60 -0
  197. package/dist/cli/commands/admin.js.map +1 -0
  198. package/dist/cloudflare.d.ts +7 -0
  199. package/dist/cloudflare.d.ts.map +1 -1
  200. package/dist/cloudflare.js +9 -0
  201. package/dist/cloudflare.js.map +1 -1
  202. package/dist/db/Db.d.ts +113 -0
  203. package/dist/db/Db.d.ts.map +1 -0
  204. package/dist/db/Db.js +402 -0
  205. package/dist/db/Db.js.map +1 -0
  206. package/dist/db/Schema.d.ts +168 -0
  207. package/dist/db/Schema.d.ts.map +1 -0
  208. package/dist/db/Schema.js +229 -0
  209. package/dist/db/Schema.js.map +1 -0
  210. package/dist/db/tables/invitations.d.ts +84 -0
  211. package/dist/db/tables/invitations.d.ts.map +1 -0
  212. package/dist/db/tables/invitations.js +165 -0
  213. package/dist/db/tables/invitations.js.map +1 -0
  214. package/dist/db/tables/memberships.d.ts +108 -0
  215. package/dist/db/tables/memberships.d.ts.map +1 -0
  216. package/dist/db/tables/memberships.js +153 -0
  217. package/dist/db/tables/memberships.js.map +1 -0
  218. package/dist/db/tables/organizations.d.ts +123 -0
  219. package/dist/db/tables/organizations.d.ts.map +1 -0
  220. package/dist/db/tables/organizations.js +170 -0
  221. package/dist/db/tables/organizations.js.map +1 -0
  222. package/dist/db/tables/projects.d.ts +65 -0
  223. package/dist/db/tables/projects.d.ts.map +1 -0
  224. package/dist/db/tables/projects.js +75 -0
  225. package/dist/db/tables/projects.js.map +1 -0
  226. package/dist/db/tables/sponsoredTransactions.d.ts +120 -0
  227. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -0
  228. package/dist/db/tables/sponsoredTransactions.js +161 -0
  229. package/dist/db/tables/sponsoredTransactions.js.map +1 -0
  230. package/dist/db/tables/users.d.ts +48 -0
  231. package/dist/db/tables/users.d.ts.map +1 -0
  232. package/dist/db/tables/users.js +65 -0
  233. package/dist/db/tables/users.js.map +1 -0
  234. package/dist/db/tables/verifiedTokens.d.ts +53 -0
  235. package/dist/db/tables/verifiedTokens.d.ts.map +1 -0
  236. package/dist/db/tables/verifiedTokens.js +74 -0
  237. package/dist/db/tables/verifiedTokens.js.map +1 -0
  238. package/dist/db/tables/webhookDeliveries.d.ts +71 -0
  239. package/dist/db/tables/webhookDeliveries.d.ts.map +1 -0
  240. package/dist/db/tables/webhookDeliveries.js +119 -0
  241. package/dist/db/tables/webhookDeliveries.js.map +1 -0
  242. package/dist/db/tables/webhookSubscriptions.d.ts +158 -0
  243. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -0
  244. package/dist/db/tables/webhookSubscriptions.js +272 -0
  245. package/dist/db/tables/webhookSubscriptions.js.map +1 -0
  246. package/dist/handlers/internal/executionError.d.ts +25 -0
  247. package/dist/handlers/internal/executionError.d.ts.map +1 -0
  248. package/dist/handlers/internal/executionError.js +186 -0
  249. package/dist/handlers/internal/executionError.js.map +1 -0
  250. package/dist/handlers/internal/multisig.d.ts +233 -0
  251. package/dist/handlers/internal/multisig.d.ts.map +1 -0
  252. package/dist/handlers/internal/multisig.js +542 -0
  253. package/dist/handlers/internal/multisig.js.map +1 -0
  254. package/dist/handlers/internal/requestListener.d.ts +124 -0
  255. package/dist/handlers/internal/requestListener.d.ts.map +1 -0
  256. package/dist/handlers/internal/requestListener.js +173 -0
  257. package/dist/handlers/internal/requestListener.js.map +1 -0
  258. package/dist/handlers/internal/sponsorship.d.ts +113 -0
  259. package/dist/handlers/internal/sponsorship.d.ts.map +1 -0
  260. package/dist/handlers/internal/sponsorship.js +128 -0
  261. package/dist/handlers/internal/sponsorship.js.map +1 -0
  262. package/dist/handlers/internal/types.d.ts +284 -0
  263. package/dist/handlers/internal/types.d.ts.map +1 -0
  264. package/dist/handlers/internal/types.js +2 -0
  265. package/dist/handlers/internal/types.js.map +1 -0
  266. package/dist/handlers/internal/utils.d.ts +34 -0
  267. package/dist/handlers/internal/utils.d.ts.map +1 -0
  268. package/dist/handlers/internal/utils.js +131 -0
  269. package/dist/handlers/internal/utils.js.map +1 -0
  270. package/dist/handlers/relay.d.ts +123 -0
  271. package/dist/handlers/relay.d.ts.map +1 -0
  272. package/dist/handlers/relay.js +1278 -0
  273. package/dist/handlers/relay.js.map +1 -0
  274. package/dist/index.d.ts +4 -2
  275. package/dist/index.d.ts.map +1 -1
  276. package/dist/index.js +4 -2
  277. package/dist/index.js.map +1 -1
  278. package/dist/internal/Auth.d.ts +224 -16
  279. package/dist/internal/Auth.d.ts.map +1 -1
  280. package/dist/internal/Auth.js +572 -33
  281. package/dist/internal/Auth.js.map +1 -1
  282. package/dist/internal/Log.d.ts +7 -3
  283. package/dist/internal/Log.d.ts.map +1 -1
  284. package/dist/internal/Log.js +4 -0
  285. package/dist/internal/Log.js.map +1 -1
  286. package/dist/internal/OpenApi.d.ts +0 -19
  287. package/dist/internal/OpenApi.d.ts.map +1 -1
  288. package/dist/internal/OpenApi.js +0 -57
  289. package/dist/internal/OpenApi.js.map +1 -1
  290. package/dist/internal/RpcSchema.d.ts +10 -0
  291. package/dist/internal/RpcSchema.d.ts.map +1 -0
  292. package/dist/internal/RpcSchema.js +2 -0
  293. package/dist/internal/RpcSchema.js.map +1 -0
  294. package/dist/internal/Store.d.ts +49 -4
  295. package/dist/internal/Store.d.ts.map +1 -1
  296. package/dist/internal/Store.js +81 -5
  297. package/dist/internal/Store.js.map +1 -1
  298. package/dist/internal/VerifiedTokens.d.ts +15 -34
  299. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  300. package/dist/internal/VerifiedTokens.js +115 -159
  301. package/dist/internal/VerifiedTokens.js.map +1 -1
  302. package/dist/internal/Viem.d.ts +84 -0
  303. package/dist/internal/Viem.d.ts.map +1 -1
  304. package/dist/internal/Webhooks.d.ts +50 -36
  305. package/dist/internal/Webhooks.d.ts.map +1 -1
  306. package/dist/internal/Webhooks.js +92 -205
  307. package/dist/internal/Webhooks.js.map +1 -1
  308. package/package.json +37 -6
  309. package/src/ApiKey.test.ts +3 -3
  310. package/src/ApiKey.ts +11 -12
  311. package/src/ApiKeys.test.ts +278 -0
  312. package/src/ApiKeys.ts +358 -0
  313. package/src/App.test-d.ts +1 -1
  314. package/src/App.test.ts +40508 -19083
  315. package/src/App.ts +239 -416
  316. package/src/Client.test-d.ts +307 -16
  317. package/src/Handler.ts +154 -0
  318. package/src/Scope.ts +17 -4
  319. package/src/Webhooks.test.ts +8 -7
  320. package/src/Webhooks.ts +13 -7
  321. package/src/admin/Access.ts +1 -3
  322. package/src/admin/App.ts +19 -24
  323. package/src/admin/apps/api-keys.test.ts +70 -18
  324. package/src/admin/apps/api-keys.ts +92 -9
  325. package/src/admin/apps/scopes.test.ts +8 -0
  326. package/src/admin/apps/verified-tokens.test.ts +3 -30
  327. package/src/admin/apps/verified-tokens.ts +18 -37
  328. package/src/admin/ui.generated.ts +1 -1
  329. package/src/apps/composition.test.ts +66 -0
  330. package/src/apps/data/App.ts +295 -0
  331. package/src/apps/data/index.ts +2 -0
  332. package/src/apps/{activities.test.ts → data/routes/activities.test.ts} +3 -3
  333. package/src/apps/{activities.ts → data/routes/activities.ts} +15 -15
  334. package/src/apps/{addresses.ts → data/routes/addresses.ts} +6 -6
  335. package/src/apps/{balances.test.ts → data/routes/balances.test.ts} +6 -5
  336. package/src/apps/{balances.ts → data/routes/balances.ts} +46 -12
  337. package/src/apps/{blocks.test.ts → data/routes/blocks.test.ts} +4 -4
  338. package/src/apps/{blocks.ts → data/routes/blocks.ts} +14 -14
  339. package/src/apps/{coingecko.test.ts → data/routes/coingecko.test.ts} +2 -2
  340. package/src/apps/{coingecko.ts → data/routes/coingecko.ts} +14 -14
  341. package/src/apps/{exchanges.test.ts → data/routes/exchanges.test.ts} +2 -2
  342. package/src/apps/{exchanges.ts → data/routes/exchanges.ts} +20 -20
  343. package/src/apps/{fee-amm.test.ts → data/routes/fee-amm.test.ts} +3 -3
  344. package/src/apps/{fee-amm.ts → data/routes/fee-amm.ts} +18 -18
  345. package/src/apps/{indexer.test.ts → data/routes/indexer.test.ts} +27 -6
  346. package/src/apps/{indexer.ts → data/routes/indexer.ts} +13 -10
  347. package/src/apps/{receipts.test.ts → data/routes/receipts.test.ts} +4 -4
  348. package/src/apps/{receipts.ts → data/routes/receipts.ts} +13 -13
  349. package/src/apps/{rpc.test.ts → data/routes/rpc.test.ts} +142 -13
  350. package/src/apps/{rpc.ts → data/routes/rpc.ts} +7 -7
  351. package/src/apps/{tokenlist.test.ts → data/routes/tokenlist.test.ts} +8 -10
  352. package/src/apps/{tokenlist.ts → data/routes/tokenlist.ts} +9 -9
  353. package/src/apps/{tokens.test.ts → data/routes/tokens.test.ts} +6 -5
  354. package/src/apps/{tokens.ts → data/routes/tokens.ts} +20 -20
  355. package/src/apps/{transactions.test.ts → data/routes/transactions.test.ts} +4 -4
  356. package/src/apps/{transactions.ts → data/routes/transactions.ts} +15 -15
  357. package/src/apps/{transfers.test.ts → data/routes/transfers.test.ts} +3 -3
  358. package/src/apps/{transfers.ts → data/routes/transfers.ts} +15 -15
  359. package/src/apps/{verified-tokens.test.ts → data/routes/verified-tokens.test.ts} +27 -15
  360. package/src/apps/{verified-tokens.ts → data/routes/verified-tokens.ts} +10 -10
  361. package/src/apps/{webhooks.test.ts → data/routes/webhooks.test.ts} +137 -150
  362. package/src/apps/{webhooks.ts → data/routes/webhooks.ts} +83 -81
  363. package/src/apps/docs/App.ts +136 -0
  364. package/src/apps/docs/index.ts +1 -0
  365. package/src/apps/index.ts +3 -0
  366. package/src/apps/metadata.ts +23 -0
  367. package/src/apps/platform/App.ts +130 -0
  368. package/src/apps/platform/index.ts +1 -0
  369. package/src/apps/platform/routes/api-keys.test.ts +330 -0
  370. package/src/apps/platform/routes/api-keys.ts +427 -0
  371. package/src/apps/platform/routes/invitations.test.ts +361 -0
  372. package/src/apps/platform/routes/invitations.ts +519 -0
  373. package/src/apps/platform/routes/me.test.ts +121 -0
  374. package/src/apps/platform/routes/me.ts +106 -0
  375. package/src/apps/platform/routes/members.test.ts +195 -0
  376. package/src/apps/platform/routes/members.ts +313 -0
  377. package/src/apps/platform/routes/orgs.test.ts +313 -0
  378. package/src/apps/platform/routes/orgs.ts +343 -0
  379. package/src/apps/platform/routes/projects.test.ts +181 -0
  380. package/src/apps/platform/routes/projects.ts +367 -0
  381. package/src/apps/relay/App.test.ts +484 -0
  382. package/src/apps/relay/App.ts +128 -0
  383. package/src/apps/relay/Sponsorships.test.ts +375 -0
  384. package/src/apps/relay/Sponsorships.ts +305 -0
  385. package/src/apps/relay/index.ts +2 -0
  386. package/src/{Cli.test.ts → cli/Cli.test.ts} +10 -9
  387. package/src/{Cli.ts → cli/Cli.ts} +16 -9
  388. package/src/cli/bin.ts +4 -0
  389. package/src/cli/commands/admin.test.ts +71 -0
  390. package/src/cli/commands/admin.ts +60 -0
  391. package/src/cloudflare.ts +10 -0
  392. package/src/db/Db.test.ts +84 -0
  393. package/src/db/Db.ts +542 -0
  394. package/src/db/Schema.ts +301 -0
  395. package/src/db/tables/invitations.ts +198 -0
  396. package/src/db/tables/memberships.ts +208 -0
  397. package/src/db/tables/organizations.test.ts +160 -0
  398. package/src/db/tables/organizations.ts +232 -0
  399. package/src/db/tables/projects.ts +107 -0
  400. package/src/db/tables/sponsoredTransactions.test.ts +218 -0
  401. package/src/db/tables/sponsoredTransactions.ts +236 -0
  402. package/src/db/tables/users.ts +85 -0
  403. package/src/db/tables/verifiedTokens.ts +111 -0
  404. package/src/db/tables/webhookDeliveries.ts +159 -0
  405. package/src/db/tables/webhookSubscriptions.ts +358 -0
  406. package/src/handlers/internal/executionError.ts +207 -0
  407. package/src/handlers/internal/multisig.test.ts +818 -0
  408. package/src/handlers/internal/multisig.ts +823 -0
  409. package/src/handlers/internal/requestListener.ts +273 -0
  410. package/src/handlers/internal/sponsorship.ts +245 -0
  411. package/src/handlers/internal/types.ts +378 -0
  412. package/src/handlers/internal/utils.ts +153 -0
  413. package/src/handlers/relay.test.ts +2035 -0
  414. package/src/handlers/relay.ts +1623 -0
  415. package/src/index.ts +4 -2
  416. package/src/internal/Auth.test.ts +337 -21
  417. package/src/internal/Auth.ts +783 -44
  418. package/src/internal/Cursor.test.ts +3 -2
  419. package/src/internal/Log.test.ts +1 -1
  420. package/src/internal/Log.ts +11 -3
  421. package/src/internal/MetricSink.ts +1 -1
  422. package/src/internal/OpenApi.ts +0 -59
  423. package/src/internal/RateLimit.test.ts +1 -1
  424. package/src/internal/RpcSchema.ts +10 -0
  425. package/src/internal/Store.test.ts +150 -10
  426. package/src/internal/Store.ts +136 -11
  427. package/src/internal/Tidx.local.test.ts +1 -1
  428. package/src/internal/VerifiedTokens.test.ts +99 -115
  429. package/src/internal/VerifiedTokens.ts +123 -175
  430. package/src/internal/WebhookDestination.test.ts +1 -1
  431. package/src/internal/Webhooks.test.ts +111 -111
  432. package/src/internal/Webhooks.ts +103 -221
  433. package/dist/ApiKeySource.d.ts +0 -166
  434. package/dist/ApiKeySource.d.ts.map +0 -1
  435. package/dist/ApiKeySource.js +0 -234
  436. package/dist/ApiKeySource.js.map +0 -1
  437. package/dist/Cli.d.ts.map +0 -1
  438. package/dist/Cli.js +0 -13
  439. package/dist/Cli.js.map +0 -1
  440. package/dist/apps/activities.js.map +0 -1
  441. package/dist/apps/addresses.js.map +0 -1
  442. package/dist/apps/balances.d.ts.map +0 -1
  443. package/dist/apps/balances.js.map +0 -1
  444. package/dist/apps/blocks.d.ts.map +0 -1
  445. package/dist/apps/blocks.js.map +0 -1
  446. package/dist/apps/coingecko.d.ts.map +0 -1
  447. package/dist/apps/coingecko.js.map +0 -1
  448. package/dist/apps/exchanges.d.ts.map +0 -1
  449. package/dist/apps/exchanges.js.map +0 -1
  450. package/dist/apps/fee-amm.d.ts.map +0 -1
  451. package/dist/apps/fee-amm.js.map +0 -1
  452. package/dist/apps/indexer.d.ts.map +0 -1
  453. package/dist/apps/indexer.js.map +0 -1
  454. package/dist/apps/receipts.d.ts.map +0 -1
  455. package/dist/apps/receipts.js.map +0 -1
  456. package/dist/apps/rpc.d.ts.map +0 -1
  457. package/dist/apps/rpc.js.map +0 -1
  458. package/dist/apps/tokenlist.d.ts.map +0 -1
  459. package/dist/apps/tokenlist.js.map +0 -1
  460. package/dist/apps/tokens.d.ts.map +0 -1
  461. package/dist/apps/tokens.js.map +0 -1
  462. package/dist/apps/transactions.d.ts.map +0 -1
  463. package/dist/apps/transactions.js.map +0 -1
  464. package/dist/apps/transfers.d.ts.map +0 -1
  465. package/dist/apps/transfers.js.map +0 -1
  466. package/dist/apps/verified-tokens.d.ts.map +0 -1
  467. package/dist/apps/verified-tokens.js.map +0 -1
  468. package/dist/apps/webhooks.js.map +0 -1
  469. package/dist/internal/OpenApi.fonts.d.ts.map +0 -1
  470. package/dist/internal/OpenApi.fonts.js.map +0 -1
  471. package/dist/internal/OpenApi.logo.d.ts.map +0 -1
  472. package/dist/internal/OpenApi.logo.js.map +0 -1
  473. package/seeds/31318/icons/0x20c0000000000000000000000000000000000000.svg +0 -1
  474. package/seeds/31318/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
  475. package/seeds/31318/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
  476. package/seeds/31318/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
  477. package/seeds/31318/verified-tokens.json +0 -30
  478. package/seeds/4217/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
  479. package/seeds/4217/icons/0x20c000000000000000000000048c8f36df1c9a4a.svg +0 -1
  480. package/seeds/4217/icons/0x20c0000000000000000000000520792dcccccccc.svg +0 -1
  481. package/seeds/4217/icons/0x20c0000000000000000000000a6da882d075a4c3.svg +0 -4
  482. package/seeds/4217/icons/0x20c000000000000000000000111111111e910f0f.svg +0 -30
  483. package/seeds/4217/icons/0x20c00000000000000000000014f22ca97301eb73.svg +0 -1
  484. package/seeds/4217/icons/0x20c0000000000000000000001621e21f71cf12fb.svg +0 -1
  485. package/seeds/4217/icons/0x20c0000000000000000000002f52d5cc21a3207b.svg +0 -1
  486. package/seeds/4217/icons/0x20c0000000000000000000003158081efd85bfc2.svg +0 -11
  487. package/seeds/4217/icons/0x20c0000000000000000000003554d28269e0f3c2.svg +0 -1
  488. package/seeds/4217/icons/0x20c000000000000000000000383a23bacb546ab9.svg +0 -1
  489. package/seeds/4217/icons/0x20c00000000000000000000042109aef2f8b28e1.png +0 -0
  490. package/seeds/4217/icons/0x20c0000000000000000000005c0bac7cef389a11.svg +0 -1
  491. package/seeds/4217/icons/0x20c0000000000000000000006fd9a167923ba194.png +0 -0
  492. package/seeds/4217/icons/0x20c0000000000000000000007f7ba549dd0251b9.svg +0 -1
  493. package/seeds/4217/icons/0x20c0000000000000000000008191667423f70e67.svg +0 -5
  494. package/seeds/4217/icons/0x20c0000000000000000000008ee4fcff88888888.svg +0 -1
  495. package/seeds/4217/icons/0x20c0000000000000000000009a4a4b17e0dc6651.svg +0 -1
  496. package/seeds/4217/icons/0x20c000000000000000000000ab02d39df30bd17e.svg +0 -1
  497. package/seeds/4217/icons/0x20c000000000000000000000ae247a1130450f09.svg +0 -1
  498. package/seeds/4217/icons/0x20c000000000000000000000aeed2ec36a54d0e5.svg +0 -1
  499. package/seeds/4217/icons/0x20c000000000000000000000b9537d11c60e8b50.svg +0 -1
  500. package/seeds/4217/icons/0x20c000000000000000000000bd95bfb69fbe6ce3.svg +0 -1
  501. package/seeds/4217/icons/0x20c000000000000000000000c412ec89d0c08be5.svg +0 -1
  502. package/seeds/4217/icons/0x20c000000000000000000000f047dd7018e50367.png +0 -0
  503. package/seeds/4217/verified-tokens.json +0 -177
  504. package/seeds/42431/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
  505. package/seeds/42431/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
  506. package/seeds/42431/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
  507. package/seeds/42431/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
  508. package/seeds/42431/icons/0x20c0000000000000000000009e8d7eb59b783726.svg +0 -1
  509. package/seeds/42431/icons/0x20c000000000000000000000d72572838bbee59c.svg +0 -1
  510. package/seeds/42431/verified-tokens.json +0 -44
  511. package/seeds/openrpc/README.md +0 -27
  512. package/seeds/openrpc/execution-apis.json +0 -8989
  513. package/src/ApiKeySource.test-d.ts +0 -11
  514. package/src/ApiKeySource.test.ts +0 -295
  515. package/src/ApiKeySource.ts +0 -303
  516. /package/src/{internal/OpenApi.fonts.ts → apps/docs/fonts.ts} +0 -0
  517. /package/src/{internal/OpenApi.logo.ts → apps/docs/logo.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { type RequestIdVariables } from 'hono/request-id';
2
- import * as ApiKeySource from '../ApiKeySource.js';
3
2
  import type * as Assets from '../Assets.js';
4
- import * as Response from '../internal/Response.js';
3
+ import type * as Db from '../db/Db.js';
5
4
  import type * as Store from '../internal/Store.js';
5
+ import * as Response from '../internal/Response.js';
6
6
  /** A verified admin identity, as returned by {@link create.Options.identify}. */
7
7
  export type Identity = {
8
8
  /** The admin's verified email, recorded as `createdBy` on every minted key. */
@@ -13,14 +13,14 @@ export type Environment = {
13
13
  Variables: RequestIdVariables & {
14
14
  /** Static-asset writer (e.g. the R2 icon bucket), when configured. */
15
15
  assets: create.Assets | undefined;
16
+ /** Authoritative Postgres store, or a per-request factory. Resolve at the leaf with `Db.get`. */
17
+ db: Db.Source;
18
+ /** KV state store backing API-key records (mint/list/revoke). */
19
+ kv: {
20
+ store: Store.State;
21
+ };
16
22
  /** The admin identity, or `null` when unauthenticated (gated routes reject). */
17
23
  identity: Identity | null;
18
- /** The API-key source provisioned against (mint/list/revoke). */
19
- source: ApiKeySource.Source;
20
- /** Verified-token state store, when management is enabled. */
21
- verifiedTokens: {
22
- store: Store.State;
23
- } | undefined;
24
24
  };
25
25
  };
26
26
  /** The admin portal Hono app. Inferred from {@link create}. */
@@ -36,6 +36,12 @@ export declare function create(options: create.Options): import("hono/hono-base"
36
36
  }, {
37
37
  readonly description: 'Run ad-hoc queries against the raw indexer passthrough.';
38
38
  readonly scope: 'indexer:query';
39
+ }, {
40
+ readonly description: 'Fill and submit transactions through the relay.';
41
+ readonly scope: 'rpc-relay:read';
42
+ }, {
43
+ readonly description: 'Sponsor transaction fees through the relay as the managed fee payer.';
44
+ readonly scope: 'rpc-relay:sponsor';
39
45
  }, {
40
46
  readonly description: 'Read webhook subscriptions.';
41
47
  readonly scope: 'webhooks:read';
@@ -50,6 +56,18 @@ export declare function create(options: create.Options): import("hono/hono-base"
50
56
  };
51
57
  };
52
58
  }, "/scopes"> | import("hono/types").MergeSchemaPath<{
59
+ "/backfill": {
60
+ $post: {
61
+ output: {
62
+ indexed: number;
63
+ scanned: number;
64
+ };
65
+ outputFormat: "json";
66
+ status: import("hono/utils/http-status").ContentfulStatusCode;
67
+ input: {};
68
+ };
69
+ };
70
+ } & {
53
71
  "/": {
54
72
  $post: {
55
73
  output: {
@@ -57,12 +75,13 @@ export declare function create(options: create.Options): import("hono/hono-base"
57
75
  id: string;
58
76
  name?: string | undefined;
59
77
  orgId: string;
78
+ projectId?: string | undefined;
60
79
  rateLimits?: {
61
80
  [x: string]: {
62
81
  perMinute: number;
63
82
  };
64
83
  } | undefined;
65
- scopes: readonly ("*" | "data:read" | "indexer:query" | "webhooks:read" | "webhooks:write")[];
84
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
66
85
  createdAt: string;
67
86
  createdBy?: string | undefined;
68
87
  expiresAt?: string | undefined;
@@ -75,10 +94,11 @@ export declare function create(options: create.Options): import("hono/hono-base"
75
94
  json: {
76
95
  environment?: "production" | "sandbox" | undefined;
77
96
  name?: string | undefined;
97
+ projectId?: string | undefined;
78
98
  rateLimits?: Record<string, {
79
99
  perMinute: number;
80
100
  }> | undefined;
81
- scopes: readonly ("*" | "data:read" | "indexer:query" | "webhooks:read" | "webhooks:write")[];
101
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
82
102
  expiresAt?: string | undefined;
83
103
  orgId?: string | undefined;
84
104
  };
@@ -94,12 +114,13 @@ export declare function create(options: create.Options): import("hono/hono-base"
94
114
  id: string;
95
115
  name?: string | undefined;
96
116
  orgId: string;
117
+ projectId?: string | undefined;
97
118
  rateLimits?: {
98
119
  [x: string]: {
99
120
  perMinute: number;
100
121
  };
101
122
  } | undefined;
102
- scopes: readonly ("*" | "data:read" | "indexer:query" | "webhooks:read" | "webhooks:write")[];
123
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
103
124
  createdAt: string;
104
125
  createdBy?: string | undefined;
105
126
  expiresAt?: string | undefined;
@@ -146,12 +167,12 @@ export declare function create(options: create.Options): import("hono/hono-base"
146
167
  };
147
168
  };
148
169
  };
149
- }, "/api-keys"> | import("hono/types").MergeSchemaPath<{
150
- "/": {
151
- $get: {
170
+ } & {
171
+ "/:id": {
172
+ $patch: {
152
173
  output: {
153
174
  error: {
154
- code: "verified_tokens_not_enabled";
175
+ code: "not_found";
155
176
  details?: readonly Response.error.Detail[] | undefined;
156
177
  message: string;
157
178
  };
@@ -160,11 +181,50 @@ export declare function create(options: create.Options): import("hono/hono-base"
160
181
  outputFormat: "json";
161
182
  status: 404;
162
183
  input: {
163
- query: {
164
- chainId: string | string[];
184
+ param: {
185
+ id: string;
186
+ };
187
+ } & {
188
+ json: {
189
+ orgId?: string | undefined;
190
+ projectId?: string | undefined;
165
191
  };
166
192
  };
167
193
  } | {
194
+ output: {
195
+ environment: "production" | "sandbox";
196
+ id: string;
197
+ name?: string | undefined;
198
+ orgId: string;
199
+ projectId?: string | undefined;
200
+ rateLimits?: {
201
+ [x: string]: {
202
+ perMinute: number;
203
+ };
204
+ } | undefined;
205
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
206
+ createdAt: string;
207
+ createdBy?: string | undefined;
208
+ expiresAt?: string | undefined;
209
+ tokenLast4: string;
210
+ };
211
+ outputFormat: "json";
212
+ status: import("hono/utils/http-status").ContentfulStatusCode;
213
+ input: {
214
+ param: {
215
+ id: string;
216
+ };
217
+ } & {
218
+ json: {
219
+ orgId?: string | undefined;
220
+ projectId?: string | undefined;
221
+ };
222
+ };
223
+ };
224
+ };
225
+ }, "/api-keys"> | import("hono/types").MergeSchemaPath<{
226
+ "/": {
227
+ $get: {
168
228
  output: {
169
229
  data: {
170
230
  address: `0x${string}`;
@@ -191,14 +251,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
191
251
  $post: {
192
252
  output: {
193
253
  error: {
194
- code: "verified_tokens_not_enabled";
254
+ code: string;
195
255
  details?: readonly Response.error.Detail[] | undefined;
196
256
  message: string;
197
257
  };
198
258
  requestId: string;
199
259
  };
200
260
  outputFormat: "json";
201
- status: 404;
261
+ status: 400 | 413 | 415;
202
262
  input: {
203
263
  json: {
204
264
  address: `0x${string}`;
@@ -214,14 +274,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
214
274
  } | {
215
275
  output: {
216
276
  error: {
217
- code: "assets_not_enabled";
277
+ code: "upstream_error";
218
278
  details?: readonly Response.error.Detail[] | undefined;
219
279
  message: string;
220
280
  };
221
281
  requestId: string;
222
282
  };
223
283
  outputFormat: "json";
224
- status: 404;
284
+ status: 502;
225
285
  input: {
226
286
  json: {
227
287
  address: `0x${string}`;
@@ -260,14 +320,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
260
320
  } | {
261
321
  output: {
262
322
  error: {
263
- code: "duplicate_address";
323
+ code: "assets_not_enabled";
264
324
  details?: readonly Response.error.Detail[] | undefined;
265
325
  message: string;
266
326
  };
267
327
  requestId: string;
268
328
  };
269
329
  outputFormat: "json";
270
- status: 409;
330
+ status: 404;
271
331
  input: {
272
332
  json: {
273
333
  address: `0x${string}`;
@@ -282,38 +342,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
282
342
  };
283
343
  } | {
284
344
  output: {
285
- error: {
286
- code: "duplicate_symbol";
287
- details?: readonly Response.error.Detail[] | undefined;
288
- message: string;
289
- };
290
- requestId: string;
291
- };
292
- outputFormat: "json";
293
- status: 409;
294
- input: {
295
- json: {
345
+ data: {
296
346
  address: `0x${string}`;
297
347
  currency: string;
298
348
  decimals: number;
299
349
  logoUri?: string | undefined;
300
350
  name: string;
301
351
  symbol: string;
302
- chainId: unknown;
303
- logo?: string | undefined;
304
- };
305
- };
306
- } | {
307
- output: {
308
- error: {
309
- code: "version_mismatch";
310
- details?: readonly Response.error.Detail[] | undefined;
311
- message: string;
352
+ id: string;
312
353
  };
313
- requestId: string;
354
+ version: string;
314
355
  };
315
356
  outputFormat: "json";
316
- status: 412;
357
+ status: import("hono/utils/http-status").ContentfulStatusCode;
317
358
  input: {
318
359
  json: {
319
360
  address: `0x${string}`;
@@ -329,14 +370,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
329
370
  } | {
330
371
  output: {
331
372
  error: {
332
- code: "upstream_error";
373
+ code: "duplicate_address";
333
374
  details?: readonly Response.error.Detail[] | undefined;
334
375
  message: string;
335
376
  };
336
377
  requestId: string;
337
378
  };
338
379
  outputFormat: "json";
339
- status: 502;
380
+ status: 409;
340
381
  input: {
341
382
  json: {
342
383
  address: `0x${string}`;
@@ -351,19 +392,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
351
392
  };
352
393
  } | {
353
394
  output: {
354
- data: {
355
- address: `0x${string}`;
356
- currency: string;
357
- decimals: number;
358
- logoUri?: string | undefined;
359
- name: string;
360
- symbol: string;
361
- id: string;
395
+ error: {
396
+ code: "duplicate_symbol";
397
+ details?: readonly Response.error.Detail[] | undefined;
398
+ message: string;
362
399
  };
363
- version: string;
400
+ requestId: string;
364
401
  };
365
402
  outputFormat: "json";
366
- status: import("hono/utils/http-status").ContentfulStatusCode;
403
+ status: 409;
367
404
  input: {
368
405
  json: {
369
406
  address: `0x${string}`;
@@ -379,14 +416,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
379
416
  } | {
380
417
  output: {
381
418
  error: {
382
- code: string;
419
+ code: "version_mismatch";
383
420
  details?: readonly Response.error.Detail[] | undefined;
384
421
  message: string;
385
422
  };
386
423
  requestId: string;
387
424
  };
388
425
  outputFormat: "json";
389
- status: 400 | 413 | 415;
426
+ status: 412;
390
427
  input: {
391
428
  json: {
392
429
  address: `0x${string}`;
@@ -406,14 +443,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
406
443
  $put: {
407
444
  output: {
408
445
  error: {
409
- code: "verified_tokens_not_enabled";
446
+ code: string;
410
447
  details?: readonly Response.error.Detail[] | undefined;
411
448
  message: string;
412
449
  };
413
450
  requestId: string;
414
451
  };
415
452
  outputFormat: "json";
416
- status: 404;
453
+ status: 400 | 413 | 415;
417
454
  input: {
418
455
  query: {
419
456
  chainId: string | string[];
@@ -433,14 +470,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
433
470
  } | {
434
471
  output: {
435
472
  error: {
436
- code: "verified_token_not_found";
473
+ code: "upstream_error";
437
474
  details?: readonly Response.error.Detail[] | undefined;
438
475
  message: string;
439
476
  };
440
477
  requestId: string;
441
478
  };
442
479
  outputFormat: "json";
443
- status: 404;
480
+ status: 502;
444
481
  input: {
445
482
  query: {
446
483
  chainId: string | string[];
@@ -460,14 +497,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
460
497
  } | {
461
498
  output: {
462
499
  error: {
463
- code: "duplicate_address";
500
+ code: "verified_token_not_found";
464
501
  details?: readonly Response.error.Detail[] | undefined;
465
502
  message: string;
466
503
  };
467
504
  requestId: string;
468
505
  };
469
506
  outputFormat: "json";
470
- status: 409;
507
+ status: 404;
471
508
  input: {
472
509
  query: {
473
510
  chainId: string | string[];
@@ -487,7 +524,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
487
524
  } | {
488
525
  output: {
489
526
  error: {
490
- code: "duplicate_symbol";
527
+ code: "duplicate_address";
491
528
  details?: readonly Response.error.Detail[] | undefined;
492
529
  message: string;
493
530
  };
@@ -514,14 +551,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
514
551
  } | {
515
552
  output: {
516
553
  error: {
517
- code: "version_mismatch";
554
+ code: "duplicate_symbol";
518
555
  details?: readonly Response.error.Detail[] | undefined;
519
556
  message: string;
520
557
  };
521
558
  requestId: string;
522
559
  };
523
560
  outputFormat: "json";
524
- status: 412;
561
+ status: 409;
525
562
  input: {
526
563
  query: {
527
564
  chainId: string | string[];
@@ -541,14 +578,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
541
578
  } | {
542
579
  output: {
543
580
  error: {
544
- code: "upstream_error";
581
+ code: "version_mismatch";
545
582
  details?: readonly Response.error.Detail[] | undefined;
546
583
  message: string;
547
584
  };
548
585
  requestId: string;
549
586
  };
550
587
  outputFormat: "json";
551
- status: 502;
588
+ status: 412;
552
589
  input: {
553
590
  query: {
554
591
  chainId: string | string[];
@@ -596,33 +633,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
596
633
  }[];
597
634
  };
598
635
  };
599
- } | {
600
- output: {
601
- error: {
602
- code: string;
603
- details?: readonly Response.error.Detail[] | undefined;
604
- message: string;
605
- };
606
- requestId: string;
607
- };
608
- outputFormat: "json";
609
- status: 400 | 413 | 415;
610
- input: {
611
- query: {
612
- chainId: string | string[];
613
- };
614
- } & {
615
- json: {
616
- tokens: {
617
- address: `0x${string}`;
618
- currency: string;
619
- decimals: number;
620
- logoUri?: string | undefined;
621
- name: string;
622
- symbol: string;
623
- }[];
624
- };
625
- };
626
636
  };
627
637
  };
628
638
  } & {
@@ -630,14 +640,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
630
640
  $patch: {
631
641
  output: {
632
642
  error: {
633
- code: "verified_tokens_not_enabled";
643
+ code: string;
634
644
  details?: readonly Response.error.Detail[] | undefined;
635
645
  message: string;
636
646
  };
637
647
  requestId: string;
638
648
  };
639
649
  outputFormat: "json";
640
- status: 404;
650
+ status: 400 | 413 | 415;
641
651
  input: {
642
652
  param: {
643
653
  address: `0x${string}`;
@@ -658,14 +668,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
658
668
  } | {
659
669
  output: {
660
670
  error: {
661
- code: "verified_token_not_found";
671
+ code: "upstream_error";
662
672
  details?: readonly Response.error.Detail[] | undefined;
663
673
  message: string;
664
674
  };
665
675
  requestId: string;
666
676
  };
667
677
  outputFormat: "json";
668
- status: 404;
678
+ status: 502;
669
679
  input: {
670
680
  param: {
671
681
  address: `0x${string}`;
@@ -686,14 +696,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
686
696
  } | {
687
697
  output: {
688
698
  error: {
689
- code: "duplicate_address";
699
+ code: "verified_token_not_found";
690
700
  details?: readonly Response.error.Detail[] | undefined;
691
701
  message: string;
692
702
  };
693
703
  requestId: string;
694
704
  };
695
705
  outputFormat: "json";
696
- status: 409;
706
+ status: 404;
697
707
  input: {
698
708
  param: {
699
709
  address: `0x${string}`;
@@ -713,15 +723,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
713
723
  };
714
724
  } | {
715
725
  output: {
716
- error: {
717
- code: "duplicate_symbol";
718
- details?: readonly Response.error.Detail[] | undefined;
719
- message: string;
726
+ data: {
727
+ address: `0x${string}`;
728
+ currency: string;
729
+ decimals: number;
730
+ logoUri?: string | undefined;
731
+ name: string;
732
+ symbol: string;
733
+ id: string;
720
734
  };
721
- requestId: string;
735
+ version: string;
722
736
  };
723
737
  outputFormat: "json";
724
- status: 409;
738
+ status: import("hono/utils/http-status").ContentfulStatusCode;
725
739
  input: {
726
740
  param: {
727
741
  address: `0x${string}`;
@@ -742,14 +756,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
742
756
  } | {
743
757
  output: {
744
758
  error: {
745
- code: "version_mismatch";
759
+ code: "duplicate_address";
746
760
  details?: readonly Response.error.Detail[] | undefined;
747
761
  message: string;
748
762
  };
749
763
  requestId: string;
750
764
  };
751
765
  outputFormat: "json";
752
- status: 412;
766
+ status: 409;
753
767
  input: {
754
768
  param: {
755
769
  address: `0x${string}`;
@@ -770,46 +784,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
770
784
  } | {
771
785
  output: {
772
786
  error: {
773
- code: "upstream_error";
787
+ code: "duplicate_symbol";
774
788
  details?: readonly Response.error.Detail[] | undefined;
775
789
  message: string;
776
790
  };
777
791
  requestId: string;
778
792
  };
779
793
  outputFormat: "json";
780
- status: 502;
781
- input: {
782
- param: {
783
- address: `0x${string}`;
784
- };
785
- } & {
786
- query: {
787
- chainId: string | string[];
788
- };
789
- } & {
790
- json: {
791
- currency?: string | undefined;
792
- decimals?: number | undefined;
793
- logoUri?: string | undefined;
794
- name?: string | undefined;
795
- symbol?: string | undefined;
796
- };
797
- };
798
- } | {
799
- output: {
800
- data: {
801
- address: `0x${string}`;
802
- currency: string;
803
- decimals: number;
804
- logoUri?: string | undefined;
805
- name: string;
806
- symbol: string;
807
- id: string;
808
- };
809
- version: string;
810
- };
811
- outputFormat: "json";
812
- status: import("hono/utils/http-status").ContentfulStatusCode;
794
+ status: 409;
813
795
  input: {
814
796
  param: {
815
797
  address: `0x${string}`;
@@ -830,14 +812,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
830
812
  } | {
831
813
  output: {
832
814
  error: {
833
- code: string;
815
+ code: "version_mismatch";
834
816
  details?: readonly Response.error.Detail[] | undefined;
835
817
  message: string;
836
818
  };
837
819
  requestId: string;
838
820
  };
839
821
  outputFormat: "json";
840
- status: 400 | 413 | 415;
822
+ status: 412;
841
823
  input: {
842
824
  param: {
843
825
  address: `0x${string}`;
@@ -862,14 +844,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
862
844
  $delete: {
863
845
  output: {
864
846
  error: {
865
- code: "verified_tokens_not_enabled";
847
+ code: string;
866
848
  details?: readonly Response.error.Detail[] | undefined;
867
849
  message: string;
868
850
  };
869
851
  requestId: string;
870
852
  };
871
853
  outputFormat: "json";
872
- status: 404;
854
+ status: 400 | 413 | 415;
873
855
  input: {
874
856
  param: {
875
857
  address: `0x${string}`;
@@ -882,14 +864,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
882
864
  } | {
883
865
  output: {
884
866
  error: {
885
- code: "verified_token_not_found";
867
+ code: "upstream_error";
886
868
  details?: readonly Response.error.Detail[] | undefined;
887
869
  message: string;
888
870
  };
889
871
  requestId: string;
890
872
  };
891
873
  outputFormat: "json";
892
- status: 404;
874
+ status: 502;
893
875
  input: {
894
876
  param: {
895
877
  address: `0x${string}`;
@@ -902,14 +884,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
902
884
  } | {
903
885
  output: {
904
886
  error: {
905
- code: "duplicate_address";
887
+ code: "verified_token_not_found";
906
888
  details?: readonly Response.error.Detail[] | undefined;
907
889
  message: string;
908
890
  };
909
891
  requestId: string;
910
892
  };
911
893
  outputFormat: "json";
912
- status: 409;
894
+ status: 404;
913
895
  input: {
914
896
  param: {
915
897
  address: `0x${string}`;
@@ -922,7 +904,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
922
904
  } | {
923
905
  output: {
924
906
  error: {
925
- code: "duplicate_symbol";
907
+ code: "duplicate_address";
926
908
  details?: readonly Response.error.Detail[] | undefined;
927
909
  message: string;
928
910
  };
@@ -942,14 +924,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
942
924
  } | {
943
925
  output: {
944
926
  error: {
945
- code: "version_mismatch";
927
+ code: "duplicate_symbol";
946
928
  details?: readonly Response.error.Detail[] | undefined;
947
929
  message: string;
948
930
  };
949
931
  requestId: string;
950
932
  };
951
933
  outputFormat: "json";
952
- status: 412;
934
+ status: 409;
953
935
  input: {
954
936
  param: {
955
937
  address: `0x${string}`;
@@ -962,14 +944,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
962
944
  } | {
963
945
  output: {
964
946
  error: {
965
- code: "upstream_error";
947
+ code: "version_mismatch";
966
948
  details?: readonly Response.error.Detail[] | undefined;
967
949
  message: string;
968
950
  };
969
951
  requestId: string;
970
952
  };
971
953
  outputFormat: "json";
972
- status: 502;
954
+ status: 412;
973
955
  input: {
974
956
  param: {
975
957
  address: `0x${string}`;
@@ -994,17 +976,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
994
976
  chainId: string | string[];
995
977
  };
996
978
  };
997
- } | {
998
- output: {
999
- error: {
1000
- code: string;
1001
- details?: readonly Response.error.Detail[] | undefined;
1002
- message: string;
1003
- };
1004
- requestId: string;
1005
- };
1006
- outputFormat: "json";
1007
- status: 400 | 413 | 415;
979
+ };
980
+ };
981
+ } & {
982
+ "/:address/logo": {
983
+ $get: {
984
+ output: ArrayBuffer;
985
+ outputFormat: "body";
986
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1008
987
  input: {
1009
988
  param: {
1010
989
  address: `0x${string}`;
@@ -1014,11 +993,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
1014
993
  chainId: string | string[];
1015
994
  };
1016
995
  };
1017
- };
1018
- };
1019
- } & {
1020
- "/:address/logo": {
1021
- $get: {
996
+ } | {
1022
997
  output: {
1023
998
  error: {
1024
999
  code: "logo_not_found";
@@ -1038,19 +1013,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
1038
1013
  chainId: string | string[];
1039
1014
  };
1040
1015
  };
1041
- } | {
1042
- output: ArrayBuffer;
1043
- outputFormat: "body";
1044
- status: import("hono/utils/http-status").ContentfulStatusCode;
1045
- input: {
1046
- param: {
1047
- address: `0x${string}`;
1048
- };
1049
- } & {
1050
- query: {
1051
- chainId: string | string[];
1052
- };
1053
- };
1054
1016
  };
1055
1017
  };
1056
1018
  } & {
@@ -1098,14 +1060,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1098
1060
  } | {
1099
1061
  output: {
1100
1062
  error: {
1101
- code: "payload_too_large";
1063
+ code: "unsupported_media_type";
1102
1064
  details?: readonly Response.error.Detail[] | undefined;
1103
1065
  message: string;
1104
1066
  };
1105
1067
  requestId: string;
1106
1068
  };
1107
1069
  outputFormat: "json";
1108
- status: 413;
1070
+ status: 415;
1109
1071
  input: {
1110
1072
  param: {
1111
1073
  address: `0x${string}`;
@@ -1118,14 +1080,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1118
1080
  } | {
1119
1081
  output: {
1120
1082
  error: {
1121
- code: "unsupported_media_type";
1083
+ code: "payload_too_large";
1122
1084
  details?: readonly Response.error.Detail[] | undefined;
1123
1085
  message: string;
1124
1086
  };
1125
1087
  requestId: string;
1126
1088
  };
1127
1089
  outputFormat: "json";
1128
- status: 415;
1090
+ status: 413;
1129
1091
  input: {
1130
1092
  param: {
1131
1093
  address: `0x${string}`;
@@ -1180,16 +1142,24 @@ export declare namespace create {
1180
1142
  type Assets = Assets.Assets;
1181
1143
  /** Options for {@link create}. */
1182
1144
  type Options = {
1183
- /** API-key provisioning config (mirrors the API app's `apiKey` option). */
1184
- apiKey: {
1185
- /** Source to provision against (mint/list/revoke). */
1186
- source: ApiKeySource.Source;
1187
- };
1188
1145
  /**
1189
1146
  * Static-asset writer for logo uploads (shared with the main API's `assets`
1190
1147
  * loader) to enable `PUT /verified-tokens/:address/logo`; omit for `404`.
1191
1148
  */
1192
1149
  assets?: Assets | undefined;
1150
+ /**
1151
+ * Authoritative Postgres store shared with the main API (verified
1152
+ * tokens). Pass a long-lived `Db.postgres(...)` singleton on Node, or a
1153
+ * factory (`() => Db.postgres(...)`) on Workers.
1154
+ */
1155
+ db: Db.Source;
1156
+ /**
1157
+ * KV state store backing API-key records (shared with the main API's
1158
+ * `kv` option), provisioned against by the `/api-keys` routes.
1159
+ */
1160
+ kv: {
1161
+ store: Store.State;
1162
+ };
1193
1163
  /**
1194
1164
  * Extracts the verified admin identity from a request, or `null` to deny.
1195
1165
  * Must only return an identity for an already-authenticated request (a
@@ -1201,14 +1171,6 @@ export declare namespace create {
1201
1171
  * `loginUrl`/`logoutUrl` are surfaced in `GET /config.json`.
1202
1172
  */
1203
1173
  ui?: Ui | false | undefined;
1204
- /**
1205
- * Verified-token management config (store shared with the main API's reads)
1206
- * to enable the `/verified-tokens` routes; omit to serve them as `404`.
1207
- */
1208
- verifiedTokens?: {
1209
- /** Verified-token state store (shared with the main API's reads). */
1210
- store: Store.State;
1211
- } | undefined;
1212
1174
  };
1213
1175
  /** Admin UI options surfaced to the SPA via `GET /config.json`. */
1214
1176
  type Ui = {