tapimo 0.5.3 → 0.7.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 (376) hide show
  1. package/dist/App.d.ts +15830 -7220
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +9 -1
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +4 -0
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +5 -0
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/admin/App.d.ts +1011 -412
  10. package/dist/admin/App.d.ts.map +1 -1
  11. package/dist/admin/App.js +4 -0
  12. package/dist/admin/App.js.map +1 -1
  13. package/dist/admin/apps/api-keys.d.ts +2 -1
  14. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  15. package/dist/admin/apps/early-access.d.ts +148 -0
  16. package/dist/admin/apps/early-access.d.ts.map +1 -0
  17. package/dist/admin/apps/early-access.js +133 -0
  18. package/dist/admin/apps/early-access.js.map +1 -0
  19. package/dist/admin/apps/organizations.d.ts +124 -1
  20. package/dist/admin/apps/organizations.d.ts.map +1 -1
  21. package/dist/admin/apps/organizations.js +97 -6
  22. package/dist/admin/apps/organizations.js.map +1 -1
  23. package/dist/admin/apps/verified-tokens.d.ts +526 -1
  24. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  25. package/dist/admin/apps/verified-tokens.js +214 -1
  26. package/dist/admin/apps/verified-tokens.js.map +1 -1
  27. package/dist/admin/ui.generated.d.ts +1 -1
  28. package/dist/admin/ui.generated.d.ts.map +1 -1
  29. package/dist/admin/ui.generated.js +95 -75
  30. package/dist/admin/ui.generated.js.map +1 -1
  31. package/dist/analytics/Analytics.d.ts.map +1 -1
  32. package/dist/analytics/Analytics.js +20 -0
  33. package/dist/analytics/Analytics.js.map +1 -1
  34. package/dist/analytics/tables/requestEvents.d.ts +18 -0
  35. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  36. package/dist/analytics/tables/requestEvents.js +36 -7
  37. package/dist/analytics/tables/requestEvents.js.map +1 -1
  38. package/dist/apps/data/App.d.ts +6260 -4924
  39. package/dist/apps/data/App.d.ts.map +1 -1
  40. package/dist/apps/data/App.js +11 -6
  41. package/dist/apps/data/App.js.map +1 -1
  42. package/dist/apps/data/FundingQuoteProviders.d.ts +34 -1
  43. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
  44. package/dist/apps/data/FundingQuoteProviders.js +194 -16
  45. package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
  46. package/dist/apps/data/FxOracle.d.ts +71 -0
  47. package/dist/apps/data/FxOracle.d.ts.map +1 -0
  48. package/dist/apps/data/FxOracle.js +97 -0
  49. package/dist/apps/data/FxOracle.js.map +1 -0
  50. package/dist/apps/data/index.d.ts +1 -0
  51. package/dist/apps/data/index.d.ts.map +1 -1
  52. package/dist/apps/data/index.js +1 -0
  53. package/dist/apps/data/index.js.map +1 -1
  54. package/dist/apps/data/routes/activities.d.ts +3599 -1382
  55. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  56. package/dist/apps/data/routes/activities.js +250 -88
  57. package/dist/apps/data/routes/activities.js.map +1 -1
  58. package/dist/apps/data/routes/addresses.d.ts +872 -251
  59. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  60. package/dist/apps/data/routes/addresses.js +11 -9
  61. package/dist/apps/data/routes/addresses.js.map +1 -1
  62. package/dist/apps/data/routes/balances.d.ts +77 -26
  63. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  64. package/dist/apps/data/routes/balances.js +88 -45
  65. package/dist/apps/data/routes/balances.js.map +1 -1
  66. package/dist/apps/data/routes/blocks.d.ts +39 -39
  67. package/dist/apps/data/routes/coingecko.d.ts +54 -54
  68. package/dist/apps/data/routes/exchanges.d.ts +856 -105
  69. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  70. package/dist/apps/data/routes/exchanges.js +518 -76
  71. package/dist/apps/data/routes/exchanges.js.map +1 -1
  72. package/dist/apps/data/routes/fee-amm.d.ts +81 -67
  73. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  74. package/dist/apps/data/routes/fee-amm.js +76 -91
  75. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  76. package/dist/apps/data/routes/funding.d.ts +80 -36
  77. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  78. package/dist/apps/data/routes/funding.js +65 -31
  79. package/dist/apps/data/routes/funding.js.map +1 -1
  80. package/dist/apps/data/routes/receipts.d.ts +392 -315
  81. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  82. package/dist/apps/data/routes/receipts.js +152 -77
  83. package/dist/apps/data/routes/receipts.js.map +1 -1
  84. package/dist/apps/data/routes/tokens.d.ts +167 -174
  85. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  86. package/dist/apps/data/routes/tokens.js +15 -13
  87. package/dist/apps/data/routes/tokens.js.map +1 -1
  88. package/dist/apps/data/routes/transactions.d.ts +277 -536
  89. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  90. package/dist/apps/data/routes/transactions.js +96 -77
  91. package/dist/apps/data/routes/transactions.js.map +1 -1
  92. package/dist/apps/data/routes/transfers.d.ts +157 -81
  93. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  94. package/dist/apps/data/routes/transfers.js +272 -130
  95. package/dist/apps/data/routes/transfers.js.map +1 -1
  96. package/dist/apps/data/routes/valuation.d.ts +307 -0
  97. package/dist/apps/data/routes/valuation.d.ts.map +1 -0
  98. package/dist/apps/data/routes/valuation.js +292 -0
  99. package/dist/apps/data/routes/valuation.js.map +1 -0
  100. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  101. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
  102. package/dist/apps/data/routes/verified-tokens.js +7 -5
  103. package/dist/apps/data/routes/verified-tokens.js.map +1 -1
  104. package/dist/apps/data/routes/webhooks.d.ts +103 -123
  105. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  106. package/dist/apps/data/routes/webhooks.js +124 -25
  107. package/dist/apps/data/routes/webhooks.js.map +1 -1
  108. package/dist/apps/index.d.ts +2 -1
  109. package/dist/apps/index.d.ts.map +1 -1
  110. package/dist/apps/index.js +2 -1
  111. package/dist/apps/index.js.map +1 -1
  112. package/dist/apps/management/App.d.ts +8554 -1692
  113. package/dist/apps/management/App.d.ts.map +1 -1
  114. package/dist/apps/management/App.js +12 -1
  115. package/dist/apps/management/App.js.map +1 -1
  116. package/dist/apps/management/routes/api-keys.d.ts +7 -0
  117. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  118. package/dist/apps/management/routes/api-keys.js +17 -3
  119. package/dist/apps/management/routes/api-keys.js.map +1 -1
  120. package/dist/apps/management/routes/billing.d.ts +157 -162
  121. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  122. package/dist/apps/management/routes/billing.js +31 -23
  123. package/dist/apps/management/routes/billing.js.map +1 -1
  124. package/dist/apps/management/routes/faucet.d.ts +232 -0
  125. package/dist/apps/management/routes/faucet.d.ts.map +1 -0
  126. package/dist/apps/management/routes/faucet.js +154 -0
  127. package/dist/apps/management/routes/faucet.js.map +1 -0
  128. package/dist/apps/management/routes/invitations.d.ts +60 -60
  129. package/dist/apps/management/routes/invite-links.d.ts +49 -20
  130. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  131. package/dist/apps/management/routes/invite-links.js +26 -1
  132. package/dist/apps/management/routes/invite-links.js.map +1 -1
  133. package/dist/apps/management/routes/me.d.ts +6 -6
  134. package/dist/apps/management/routes/members.d.ts +6 -6
  135. package/dist/apps/management/routes/orgs.d.ts +42 -42
  136. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  137. package/dist/apps/management/routes/orgs.js +5 -0
  138. package/dist/apps/management/routes/orgs.js.map +1 -1
  139. package/dist/apps/management/routes/projects.d.ts +44 -44
  140. package/dist/apps/management/routes/usage.d.ts +3 -0
  141. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  142. package/dist/apps/management/routes/usage.js +4 -0
  143. package/dist/apps/management/routes/usage.js.map +1 -1
  144. package/dist/apps/management/routes/verified-token-requests.d.ts +697 -0
  145. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -0
  146. package/dist/apps/management/routes/verified-token-requests.js +271 -0
  147. package/dist/apps/management/routes/verified-token-requests.js.map +1 -0
  148. package/dist/apps/management/routes/webhooks.d.ts +6977 -0
  149. package/dist/apps/management/routes/webhooks.d.ts.map +1 -0
  150. package/dist/apps/management/routes/webhooks.js +573 -0
  151. package/dist/apps/management/routes/webhooks.js.map +1 -0
  152. package/dist/apps/mpp/App.d.ts +363 -0
  153. package/dist/apps/mpp/App.d.ts.map +1 -0
  154. package/dist/apps/mpp/App.js +72 -0
  155. package/dist/apps/mpp/App.js.map +1 -0
  156. package/dist/apps/mpp/Mpp.d.ts +178 -0
  157. package/dist/apps/mpp/Mpp.d.ts.map +1 -0
  158. package/dist/apps/mpp/Mpp.js +183 -0
  159. package/dist/apps/mpp/Mpp.js.map +1 -0
  160. package/dist/apps/mpp/index.d.ts +3 -0
  161. package/dist/apps/mpp/index.d.ts.map +1 -0
  162. package/dist/apps/mpp/index.js +3 -0
  163. package/dist/apps/mpp/index.js.map +1 -0
  164. package/dist/apps/relay/App.d.ts.map +1 -1
  165. package/dist/apps/relay/App.js +56 -9
  166. package/dist/apps/relay/App.js.map +1 -1
  167. package/dist/db/Db.d.ts +6 -0
  168. package/dist/db/Db.d.ts.map +1 -1
  169. package/dist/db/Db.js +110 -0
  170. package/dist/db/Db.js.map +1 -1
  171. package/dist/db/Schema.d.ts +53 -0
  172. package/dist/db/Schema.d.ts.map +1 -1
  173. package/dist/db/Schema.js +56 -0
  174. package/dist/db/Schema.js.map +1 -1
  175. package/dist/db/tables/earlyAccess.d.ts +50 -0
  176. package/dist/db/tables/earlyAccess.d.ts.map +1 -0
  177. package/dist/db/tables/earlyAccess.js +63 -0
  178. package/dist/db/tables/earlyAccess.js.map +1 -0
  179. package/dist/db/tables/enabledBillingSources.d.ts +73 -0
  180. package/dist/db/tables/enabledBillingSources.d.ts.map +1 -0
  181. package/dist/db/tables/enabledBillingSources.js +69 -0
  182. package/dist/db/tables/enabledBillingSources.js.map +1 -0
  183. package/dist/db/tables/invitations.d.ts.map +1 -1
  184. package/dist/db/tables/invitations.js +3 -0
  185. package/dist/db/tables/invitations.js.map +1 -1
  186. package/dist/db/tables/inviteLinks.d.ts +10 -2
  187. package/dist/db/tables/inviteLinks.d.ts.map +1 -1
  188. package/dist/db/tables/inviteLinks.js +10 -1
  189. package/dist/db/tables/inviteLinks.js.map +1 -1
  190. package/dist/db/tables/organizations.d.ts +5 -2
  191. package/dist/db/tables/organizations.d.ts.map +1 -1
  192. package/dist/db/tables/organizations.js +13 -2
  193. package/dist/db/tables/organizations.js.map +1 -1
  194. package/dist/db/tables/sponsoredTransactions.d.ts +2 -0
  195. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  196. package/dist/db/tables/sponsoredTransactions.js +2 -0
  197. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  198. package/dist/db/tables/verifiedTokenRequests.d.ts +94 -0
  199. package/dist/db/tables/verifiedTokenRequests.d.ts.map +1 -0
  200. package/dist/db/tables/verifiedTokenRequests.js +120 -0
  201. package/dist/db/tables/verifiedTokenRequests.js.map +1 -0
  202. package/dist/db/tables/webhookSubscriptions.d.ts +14 -0
  203. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  204. package/dist/db/tables/webhookSubscriptions.js +16 -0
  205. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  206. package/dist/handlers/internal/utils.d.ts +1 -16
  207. package/dist/handlers/internal/utils.d.ts.map +1 -1
  208. package/dist/handlers/internal/utils.js +17 -6
  209. package/dist/handlers/internal/utils.js.map +1 -1
  210. package/dist/handlers/relay.d.ts.map +1 -1
  211. package/dist/handlers/relay.js +37 -5
  212. package/dist/handlers/relay.js.map +1 -1
  213. package/dist/internal/Auth.d.ts +11 -2
  214. package/dist/internal/Auth.d.ts.map +1 -1
  215. package/dist/internal/Auth.js +14 -47
  216. package/dist/internal/Auth.js.map +1 -1
  217. package/dist/internal/FundingQuotes.d.ts +147 -47
  218. package/dist/internal/FundingQuotes.d.ts.map +1 -1
  219. package/dist/internal/FundingQuotes.js +119 -33
  220. package/dist/internal/FundingQuotes.js.map +1 -1
  221. package/dist/internal/Log.d.ts +37 -5
  222. package/dist/internal/Log.d.ts.map +1 -1
  223. package/dist/internal/Log.js +52 -3
  224. package/dist/internal/Log.js.map +1 -1
  225. package/dist/internal/MetricSink.d.ts.map +1 -1
  226. package/dist/internal/MetricSink.js +24 -0
  227. package/dist/internal/MetricSink.js.map +1 -1
  228. package/dist/internal/OpenApi.d.ts +2 -2
  229. package/dist/internal/OpenApi.d.ts.map +1 -1
  230. package/dist/internal/OpenApi.js +3 -0
  231. package/dist/internal/OpenApi.js.map +1 -1
  232. package/dist/internal/Response.d.ts +2 -2
  233. package/dist/internal/Response.d.ts.map +1 -1
  234. package/dist/internal/Response.js +12 -4
  235. package/dist/internal/Response.js.map +1 -1
  236. package/dist/internal/Schema.d.ts +14 -5
  237. package/dist/internal/Schema.d.ts.map +1 -1
  238. package/dist/internal/Schema.js +23 -5
  239. package/dist/internal/Schema.js.map +1 -1
  240. package/dist/internal/Value.d.ts +18 -0
  241. package/dist/internal/Value.d.ts.map +1 -1
  242. package/dist/internal/Value.js +11 -1
  243. package/dist/internal/Value.js.map +1 -1
  244. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  245. package/dist/internal/VerifiedTokens.js +10 -1
  246. package/dist/internal/VerifiedTokens.js.map +1 -1
  247. package/dist/internal/Webhooks.d.ts +24 -3
  248. package/dist/internal/Webhooks.d.ts.map +1 -1
  249. package/dist/internal/Webhooks.js +34 -8
  250. package/dist/internal/Webhooks.js.map +1 -1
  251. package/package.json +7 -2
  252. package/src/App.test.ts +9 -4
  253. package/src/App.ts +23 -3
  254. package/src/Client.test-d.ts +733 -20
  255. package/src/Scope.ts +5 -0
  256. package/src/admin/App.test.ts +4 -0
  257. package/src/admin/App.ts +4 -0
  258. package/src/admin/apps/early-access.test.ts +125 -0
  259. package/src/admin/apps/early-access.ts +176 -0
  260. package/src/admin/apps/organizations.test.ts +86 -2
  261. package/src/admin/apps/organizations.ts +155 -31
  262. package/src/admin/apps/scopes.test.ts +5 -0
  263. package/src/admin/apps/verified-tokens.test.ts +201 -0
  264. package/src/admin/apps/verified-tokens.ts +532 -286
  265. package/src/admin/ui/plugin.ts +2 -1
  266. package/src/admin/ui/src/lib/early-access.ts +63 -0
  267. package/src/admin/ui/src/lib/organizations.test.ts +81 -1
  268. package/src/admin/ui/src/lib/organizations.ts +92 -0
  269. package/src/admin/ui/src/lib/verified-tokens.ts +79 -0
  270. package/src/admin/ui/src/routeTree.gen.ts +33 -2
  271. package/src/admin/ui/src/routes/__root.tsx +2 -1
  272. package/src/admin/ui/src/routes/api-keys.tsx +1 -1
  273. package/src/admin/ui/src/routes/early-access.tsx +162 -0
  274. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +103 -0
  275. package/src/admin/ui/src/routes/verified-tokens.tsx +230 -19
  276. package/src/admin/ui.generated.ts +95 -94
  277. package/src/analytics/Analytics.test.ts +83 -0
  278. package/src/analytics/Analytics.ts +20 -0
  279. package/src/analytics/tables/requestEvents.ts +60 -7
  280. package/src/apps/composition.test.ts +11 -2
  281. package/src/apps/data/App.test.ts +1 -1
  282. package/src/apps/data/App.ts +22 -14
  283. package/src/apps/data/FundingQuoteProviders.test.ts +297 -4
  284. package/src/apps/data/FundingQuoteProviders.ts +255 -29
  285. package/src/apps/data/FxOracle.test.ts +118 -0
  286. package/src/apps/data/FxOracle.ts +153 -0
  287. package/src/apps/data/index.ts +1 -0
  288. package/src/apps/data/routes/activities.test.ts +177 -3
  289. package/src/apps/data/routes/activities.ts +441 -132
  290. package/src/apps/data/routes/addresses.ts +19 -9
  291. package/src/apps/data/routes/balances.test.ts +148 -11
  292. package/src/apps/data/routes/balances.ts +140 -51
  293. package/src/apps/data/routes/exchanges.test.ts +544 -9
  294. package/src/apps/data/routes/exchanges.ts +690 -103
  295. package/src/apps/data/routes/fee-amm.test.ts +47 -23
  296. package/src/apps/data/routes/fee-amm.ts +98 -119
  297. package/src/apps/data/routes/funding.test.ts +113 -8
  298. package/src/apps/data/routes/funding.ts +77 -51
  299. package/src/apps/data/routes/receipts.test.ts +129 -23
  300. package/src/apps/data/routes/receipts.ts +205 -100
  301. package/src/apps/data/routes/tokens.test.ts +43 -0
  302. package/src/apps/data/routes/tokens.ts +28 -13
  303. package/src/apps/data/routes/transactions.test.ts +72 -19
  304. package/src/apps/data/routes/transactions.ts +162 -92
  305. package/src/apps/data/routes/transfers.test.ts +341 -31
  306. package/src/apps/data/routes/transfers.ts +358 -158
  307. package/src/apps/data/routes/valuation.test.ts +437 -0
  308. package/src/apps/data/routes/valuation.ts +423 -0
  309. package/src/apps/data/routes/verified-tokens.ts +14 -2
  310. package/src/apps/data/routes/webhooks.test.ts +56 -8
  311. package/src/apps/data/routes/webhooks.ts +144 -27
  312. package/src/apps/index.ts +2 -1
  313. package/src/apps/management/App.ts +13 -0
  314. package/src/apps/management/routes/api-keys.test.ts +14 -0
  315. package/src/apps/management/routes/api-keys.ts +27 -3
  316. package/src/apps/management/routes/billing.test.ts +152 -20
  317. package/src/apps/management/routes/billing.ts +34 -18
  318. package/src/apps/management/routes/faucet.test.ts +87 -0
  319. package/src/apps/management/routes/faucet.ts +201 -0
  320. package/src/apps/management/routes/invite-links.test.ts +117 -0
  321. package/src/apps/management/routes/invite-links.ts +43 -1
  322. package/src/apps/management/routes/me.test.ts +9 -99
  323. package/src/apps/management/routes/orgs.test.ts +45 -2
  324. package/src/apps/management/routes/orgs.ts +6 -0
  325. package/src/apps/management/routes/scopes.test.ts +1 -0
  326. package/src/apps/management/routes/usage.test.ts +6 -0
  327. package/src/apps/management/routes/usage.ts +7 -0
  328. package/src/apps/management/routes/verified-token-requests.test.ts +377 -0
  329. package/src/apps/management/routes/verified-token-requests.ts +397 -0
  330. package/src/apps/management/routes/webhooks.test.ts +426 -0
  331. package/src/apps/management/routes/webhooks.ts +672 -0
  332. package/src/apps/mpp/App.ts +86 -0
  333. package/src/apps/mpp/Mpp.test.ts +193 -0
  334. package/src/apps/mpp/Mpp.ts +353 -0
  335. package/src/apps/mpp/index.ts +2 -0
  336. package/src/apps/mpp/internal/Adapter.ts +11 -0
  337. package/src/apps/mpp/internal/Error.ts +9 -0
  338. package/src/apps/mpp/internal/Idempotency.ts +7 -0
  339. package/src/apps/mpp/internal/Screening.ts +10 -0
  340. package/src/apps/relay/App.test.ts +88 -6
  341. package/src/apps/relay/App.ts +61 -9
  342. package/src/db/Db.test.ts +19 -0
  343. package/src/db/Db.ts +125 -0
  344. package/src/db/Schema.ts +68 -0
  345. package/src/db/tables/earlyAccess.ts +86 -0
  346. package/src/db/tables/enabledBillingSources.test.ts +303 -0
  347. package/src/db/tables/enabledBillingSources.ts +118 -0
  348. package/src/db/tables/invitations.ts +3 -0
  349. package/src/db/tables/inviteLinks.ts +22 -3
  350. package/src/db/tables/organizations.test.ts +103 -0
  351. package/src/db/tables/organizations.ts +18 -2
  352. package/src/db/tables/sponsoredTransactions.ts +4 -0
  353. package/src/db/tables/verifiedTokenRequests.test.ts +200 -0
  354. package/src/db/tables/verifiedTokenRequests.ts +182 -0
  355. package/src/db/tables/webhookSubscriptions.ts +31 -0
  356. package/src/handlers/internal/utils.ts +22 -6
  357. package/src/handlers/relay.errors.test.ts +153 -0
  358. package/src/handlers/relay.ts +42 -7
  359. package/src/internal/Auth.test.ts +3 -3
  360. package/src/internal/Auth.ts +15 -47
  361. package/src/internal/FundingQuotes.test.ts +161 -6
  362. package/src/internal/FundingQuotes.ts +141 -39
  363. package/src/internal/Log.test-d.ts +21 -0
  364. package/src/internal/Log.test.ts +141 -0
  365. package/src/internal/Log.ts +93 -6
  366. package/src/internal/MetricSink.test.ts +215 -0
  367. package/src/internal/MetricSink.ts +24 -0
  368. package/src/internal/OpenApi.ts +3 -0
  369. package/src/internal/Response.test.ts +28 -0
  370. package/src/internal/Response.ts +12 -4
  371. package/src/internal/Schema.ts +50 -5
  372. package/src/internal/Value.test.ts +20 -0
  373. package/src/internal/Value.ts +24 -1
  374. package/src/internal/VerifiedTokens.ts +9 -1
  375. package/src/internal/Webhooks.test.ts +140 -0
  376. package/src/internal/Webhooks.ts +53 -9
@@ -45,6 +45,91 @@ export declare function create(options: create.Options): import("hono/hono-base"
45
45
  };
46
46
  };
47
47
  }, "/scopes"> | import("hono/types").MergeSchemaPath<{
48
+ "/": {
49
+ $get: {
50
+ output: {
51
+ data: {
52
+ createdAt: string;
53
+ createdBy: string;
54
+ entry: string;
55
+ }[];
56
+ };
57
+ outputFormat: "json";
58
+ status: import("hono/utils/http-status").ContentfulStatusCode;
59
+ input: {};
60
+ };
61
+ };
62
+ } & {
63
+ "/": {
64
+ $post: {
65
+ output: {
66
+ error: {
67
+ code: "entry_exists";
68
+ details?: readonly Response.error.Detail[] | undefined;
69
+ message: string;
70
+ };
71
+ requestId: string;
72
+ };
73
+ outputFormat: "json";
74
+ status: 409;
75
+ input: {
76
+ json: {
77
+ entry: string;
78
+ };
79
+ };
80
+ } | {
81
+ output: {
82
+ data: {
83
+ createdAt: string;
84
+ createdBy: string;
85
+ entry: string;
86
+ };
87
+ };
88
+ outputFormat: "json";
89
+ status: import("hono/utils/http-status").ContentfulStatusCode;
90
+ input: {
91
+ json: {
92
+ entry: string;
93
+ };
94
+ };
95
+ };
96
+ };
97
+ } & {
98
+ "/": {
99
+ $delete: {
100
+ output: {
101
+ error: {
102
+ code: "entry_not_found";
103
+ details?: readonly Response.error.Detail[] | undefined;
104
+ message: string;
105
+ };
106
+ requestId: string;
107
+ };
108
+ outputFormat: "json";
109
+ status: 404;
110
+ input: {
111
+ json: {
112
+ entry: string;
113
+ };
114
+ };
115
+ } | {
116
+ output: {
117
+ data: {
118
+ createdAt: string;
119
+ createdBy: string;
120
+ entry: string;
121
+ };
122
+ };
123
+ outputFormat: "json";
124
+ status: import("hono/utils/http-status").ContentfulStatusCode;
125
+ input: {
126
+ json: {
127
+ entry: string;
128
+ };
129
+ };
130
+ };
131
+ };
132
+ }, "/early-access"> | import("hono/types").MergeSchemaPath<{
48
133
  "/backfill": {
49
134
  $post: {
50
135
  output: {
@@ -91,7 +176,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
91
176
  }> | undefined;
92
177
  expiresAt?: string | undefined;
93
178
  orgId?: string | undefined;
94
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | `zone:${number}:read`)[];
179
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | `zone:${number}:read`)[];
95
180
  };
96
181
  };
97
182
  };
@@ -218,30 +303,51 @@ export declare function create(options: create.Options): import("hono/hono-base"
218
303
  }, "/api-keys"> | import("hono/types").MergeSchemaPath<{
219
304
  "/": {
220
305
  $get: {
306
+ output: {
307
+ error: {
308
+ code: "upstream_error";
309
+ details?: readonly Response.error.Detail[] | undefined;
310
+ message: string;
311
+ };
312
+ requestId: string;
313
+ };
314
+ outputFormat: "json";
315
+ status: 502;
316
+ input: {
317
+ query?: {
318
+ cursor?: string | string[];
319
+ limit?: string | string[];
320
+ query?: string | string[];
321
+ } | undefined;
322
+ };
323
+ } | {
221
324
  output: {
222
325
  data: {
223
- address: `0x${string}`;
224
- currency: string;
225
- decimals: number;
226
- logoUri?: string | undefined;
227
- name: string;
228
- symbol: string;
326
+ createdAt: string;
327
+ createdBy: string | null;
229
328
  id: string;
329
+ name: string;
330
+ updatedAt: string;
331
+ userId: string | null;
332
+ memberCount: number;
333
+ projectCount: number;
230
334
  }[];
231
- version: string | null;
335
+ nextCursor: string | null;
232
336
  };
233
337
  outputFormat: "json";
234
- status: import("hono/utils/http-status").ContentfulStatusCode;
338
+ status: 200;
235
339
  input: {
236
- query: {
237
- chainId: string | string[];
238
- };
340
+ query?: {
341
+ cursor?: string | string[];
342
+ limit?: string | string[];
343
+ query?: string | string[];
344
+ } | undefined;
239
345
  };
240
346
  };
241
347
  };
242
348
  } & {
243
- "/": {
244
- $post: {
349
+ "/:orgId": {
350
+ $get: {
245
351
  output: {
246
352
  error: {
247
353
  code: "upstream_error";
@@ -253,21 +359,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
253
359
  outputFormat: "json";
254
360
  status: 502;
255
361
  input: {
256
- json: {
257
- address: `0x${string}`;
258
- currency: string;
259
- decimals: number;
260
- logoUri?: string | undefined;
261
- name: string;
262
- symbol: string;
263
- chainId: unknown;
264
- logo?: string | undefined;
362
+ param: {
363
+ orgId: string;
265
364
  };
266
365
  };
267
366
  } | {
268
367
  output: {
269
368
  error: {
270
- code: "verified_token_not_found";
369
+ code: "not_found";
271
370
  details?: readonly Response.error.Detail[] | undefined;
272
371
  message: string;
273
372
  };
@@ -276,105 +375,730 @@ export declare function create(options: create.Options): import("hono/hono-base"
276
375
  outputFormat: "json";
277
376
  status: 404;
278
377
  input: {
279
- json: {
280
- address: `0x${string}`;
281
- currency: string;
282
- decimals: number;
283
- logoUri?: string | undefined;
284
- name: string;
285
- symbol: string;
286
- chainId: unknown;
287
- logo?: string | undefined;
378
+ param: {
379
+ orgId: string;
288
380
  };
289
381
  };
290
382
  } | {
291
383
  output: {
292
- error: {
293
- code: "assets_not_enabled";
294
- details?: readonly Response.error.Detail[] | undefined;
295
- message: string;
384
+ createdAt: string;
385
+ createdBy: string | null;
386
+ id: string;
387
+ name: string;
388
+ updatedAt: string;
389
+ userId: string | null;
390
+ memberCount: number;
391
+ projectCount: number;
392
+ billing: {
393
+ enabledSources: ("stripe" | "tempo")[];
394
+ production: {
395
+ settings: {
396
+ currency: "usd";
397
+ period: "month";
398
+ spendLimit: string | null;
399
+ txFeeLimit: string | null;
400
+ updatedAt: string;
401
+ } | null;
402
+ source: {
403
+ status: "active" | "canceled" | "none" | "past_due";
404
+ stripeCustomerId: string;
405
+ updatedAt: string;
406
+ } | null;
407
+ };
408
+ sandbox: {
409
+ settings: {
410
+ currency: "usd";
411
+ period: "month";
412
+ spendLimit: string | null;
413
+ txFeeLimit: string | null;
414
+ updatedAt: string;
415
+ } | null;
416
+ source: {
417
+ status: "active" | "canceled" | "none" | "past_due";
418
+ stripeCustomerId: string;
419
+ updatedAt: string;
420
+ } | null;
421
+ };
296
422
  };
297
- requestId: string;
298
423
  };
299
424
  outputFormat: "json";
300
- status: 404;
425
+ status: 200;
301
426
  input: {
302
- json: {
303
- address: `0x${string}`;
304
- currency: string;
305
- decimals: number;
306
- logoUri?: string | undefined;
307
- name: string;
308
- symbol: string;
309
- chainId: unknown;
310
- logo?: string | undefined;
427
+ param: {
428
+ orgId: string;
311
429
  };
312
430
  };
313
- } | {
431
+ };
432
+ };
433
+ } & {
434
+ "/:orgId/billing-sources/:source": {
435
+ $put: {
314
436
  output: {
315
- data: {
316
- address: `0x${string}`;
317
- currency: string;
318
- decimals: number;
319
- logoUri?: string | undefined;
320
- name: string;
321
- symbol: string;
322
- id: string;
437
+ error: {
438
+ code: "upstream_error";
439
+ details?: readonly Response.error.Detail[] | undefined;
440
+ message: string;
323
441
  };
324
- version: string;
442
+ requestId: string;
325
443
  };
326
444
  outputFormat: "json";
327
- status: import("hono/utils/http-status").ContentfulStatusCode;
445
+ status: 502;
328
446
  input: {
329
- json: {
330
- address: `0x${string}`;
331
- currency: string;
332
- decimals: number;
333
- logoUri?: string | undefined;
334
- name: string;
335
- symbol: string;
336
- chainId: unknown;
337
- logo?: string | undefined;
447
+ param: {
448
+ orgId: string;
449
+ source: "stripe" | "tempo";
338
450
  };
339
451
  };
340
452
  } | {
341
453
  output: {
342
454
  error: {
343
- code: string;
455
+ code: "not_found";
344
456
  details?: readonly Response.error.Detail[] | undefined;
345
457
  message: string;
346
458
  };
347
459
  requestId: string;
348
460
  };
349
461
  outputFormat: "json";
350
- status: 400 | 413 | 415;
462
+ status: 404;
351
463
  input: {
352
- json: {
353
- address: `0x${string}`;
354
- currency: string;
355
- decimals: number;
356
- logoUri?: string | undefined;
357
- name: string;
358
- symbol: string;
359
- chainId: unknown;
360
- logo?: string | undefined;
464
+ param: {
465
+ orgId: string;
466
+ source: "stripe" | "tempo";
361
467
  };
362
468
  };
363
469
  } | {
364
470
  output: {
365
- error: {
366
- code: "duplicate_address";
367
- details?: readonly Response.error.Detail[] | undefined;
368
- message: string;
369
- };
370
- requestId: string;
471
+ data: ("stripe" | "tempo")[];
371
472
  };
372
473
  outputFormat: "json";
373
- status: 409;
474
+ status: 200;
374
475
  input: {
375
- json: {
376
- address: `0x${string}`;
377
- currency: string;
476
+ param: {
477
+ orgId: string;
478
+ source: "stripe" | "tempo";
479
+ };
480
+ };
481
+ };
482
+ };
483
+ } & {
484
+ "/:orgId/billing-sources/:source": {
485
+ $delete: {
486
+ output: {
487
+ error: {
488
+ code: "upstream_error";
489
+ details?: readonly Response.error.Detail[] | undefined;
490
+ message: string;
491
+ };
492
+ requestId: string;
493
+ };
494
+ outputFormat: "json";
495
+ status: 502;
496
+ input: {
497
+ param: {
498
+ orgId: string;
499
+ source: "stripe" | "tempo";
500
+ };
501
+ };
502
+ } | {
503
+ output: {
504
+ error: {
505
+ code: "not_found";
506
+ details?: readonly Response.error.Detail[] | undefined;
507
+ message: string;
508
+ };
509
+ requestId: string;
510
+ };
511
+ outputFormat: "json";
512
+ status: 404;
513
+ input: {
514
+ param: {
515
+ orgId: string;
516
+ source: "stripe" | "tempo";
517
+ };
518
+ };
519
+ } | {
520
+ output: {
521
+ data: ("stripe" | "tempo")[];
522
+ };
523
+ outputFormat: "json";
524
+ status: 200;
525
+ input: {
526
+ param: {
527
+ orgId: string;
528
+ source: "stripe" | "tempo";
529
+ };
530
+ };
531
+ };
532
+ };
533
+ } & {
534
+ "/:orgId/members": {
535
+ $get: {
536
+ output: {
537
+ error: {
538
+ code: "upstream_error";
539
+ details?: readonly Response.error.Detail[] | undefined;
540
+ message: string;
541
+ };
542
+ requestId: string;
543
+ };
544
+ outputFormat: "json";
545
+ status: 502;
546
+ input: {
547
+ param: {
548
+ orgId: string;
549
+ };
550
+ } & {
551
+ query?: {
552
+ cursor?: string | string[];
553
+ limit?: string | string[];
554
+ } | undefined;
555
+ };
556
+ } | {
557
+ output: {
558
+ error: {
559
+ code: "not_found";
560
+ details?: readonly Response.error.Detail[] | undefined;
561
+ message: string;
562
+ };
563
+ requestId: string;
564
+ };
565
+ outputFormat: "json";
566
+ status: 404;
567
+ input: {
568
+ param: {
569
+ orgId: string;
570
+ };
571
+ } & {
572
+ query?: {
573
+ cursor?: string | string[];
574
+ limit?: string | string[];
575
+ } | undefined;
576
+ };
577
+ } | {
578
+ output: {
579
+ data: {
580
+ address: string | null;
581
+ createdAt: string;
582
+ email: string | null;
583
+ role: "admin" | "member" | "owner";
584
+ updatedAt: string;
585
+ userId: string;
586
+ }[];
587
+ nextCursor: string | null;
588
+ };
589
+ outputFormat: "json";
590
+ status: 200;
591
+ input: {
592
+ param: {
593
+ orgId: string;
594
+ };
595
+ } & {
596
+ query?: {
597
+ cursor?: string | string[];
598
+ limit?: string | string[];
599
+ } | undefined;
600
+ };
601
+ };
602
+ };
603
+ } & {
604
+ "/:orgId/projects": {
605
+ $get: {
606
+ output: {
607
+ error: {
608
+ code: "upstream_error";
609
+ details?: readonly Response.error.Detail[] | undefined;
610
+ message: string;
611
+ };
612
+ requestId: string;
613
+ };
614
+ outputFormat: "json";
615
+ status: 502;
616
+ input: {
617
+ param: {
618
+ orgId: string;
619
+ };
620
+ } & {
621
+ query?: {
622
+ cursor?: string | string[];
623
+ limit?: string | string[];
624
+ } | undefined;
625
+ };
626
+ } | {
627
+ output: {
628
+ error: {
629
+ code: "not_found";
630
+ details?: readonly Response.error.Detail[] | undefined;
631
+ message: string;
632
+ };
633
+ requestId: string;
634
+ };
635
+ outputFormat: "json";
636
+ status: 404;
637
+ input: {
638
+ param: {
639
+ orgId: string;
640
+ };
641
+ } & {
642
+ query?: {
643
+ cursor?: string | string[];
644
+ limit?: string | string[];
645
+ } | undefined;
646
+ };
647
+ } | {
648
+ output: {
649
+ data: {
650
+ createdAt: string;
651
+ id: string;
652
+ name: string;
653
+ updatedAt: string;
654
+ }[];
655
+ nextCursor: string | null;
656
+ };
657
+ outputFormat: "json";
658
+ status: 200;
659
+ input: {
660
+ param: {
661
+ orgId: string;
662
+ };
663
+ } & {
664
+ query?: {
665
+ cursor?: string | string[];
666
+ limit?: string | string[];
667
+ } | undefined;
668
+ };
669
+ };
670
+ };
671
+ } & {
672
+ "/:orgId/api-keys": {
673
+ $get: {
674
+ output: {
675
+ error: {
676
+ code: "upstream_error";
677
+ details?: readonly Response.error.Detail[] | undefined;
678
+ message: string;
679
+ };
680
+ requestId: string;
681
+ };
682
+ outputFormat: "json";
683
+ status: 502;
684
+ input: {
685
+ param: {
686
+ orgId: string;
687
+ };
688
+ };
689
+ } | {
690
+ output: {
691
+ error: {
692
+ code: "not_found";
693
+ details?: readonly Response.error.Detail[] | undefined;
694
+ message: string;
695
+ };
696
+ requestId: string;
697
+ };
698
+ outputFormat: "json";
699
+ status: 404;
700
+ input: {
701
+ param: {
702
+ orgId: string;
703
+ };
704
+ };
705
+ } | {
706
+ output: {
707
+ data: {
708
+ billingActive?: boolean | undefined;
709
+ environment: "production" | "sandbox";
710
+ id: string;
711
+ name?: string | undefined;
712
+ orgId: string;
713
+ projectId?: string | undefined;
714
+ rateLimits?: {
715
+ [x: string]: {
716
+ perMinute: number;
717
+ };
718
+ } | undefined;
719
+ scopes: readonly string[];
720
+ createdAt: string;
721
+ createdBy?: string | undefined;
722
+ expiresAt?: string | undefined;
723
+ tokenLast4: string;
724
+ }[];
725
+ };
726
+ outputFormat: "json";
727
+ status: 200;
728
+ input: {
729
+ param: {
730
+ orgId: string;
731
+ };
732
+ };
733
+ };
734
+ };
735
+ } & {
736
+ "/:orgId/usage": {
737
+ $get: {
738
+ output: {
739
+ error: {
740
+ code: "upstream_error";
741
+ details?: readonly Response.error.Detail[] | undefined;
742
+ message: string;
743
+ };
744
+ requestId: string;
745
+ };
746
+ outputFormat: "json";
747
+ status: 502;
748
+ input: {
749
+ param: {
750
+ orgId: string;
751
+ };
752
+ } & {
753
+ query?: {
754
+ period?: string | string[];
755
+ } | undefined;
756
+ };
757
+ } | {
758
+ output: {
759
+ error: {
760
+ code: "not_found";
761
+ details?: readonly Response.error.Detail[] | undefined;
762
+ message: string;
763
+ };
764
+ requestId: string;
765
+ };
766
+ outputFormat: "json";
767
+ status: 404;
768
+ input: {
769
+ param: {
770
+ orgId: string;
771
+ };
772
+ } & {
773
+ query?: {
774
+ period?: string | string[];
775
+ } | undefined;
776
+ };
777
+ } | {
778
+ output: {
779
+ byError: {
780
+ code: string;
781
+ requests: number;
782
+ }[];
783
+ byRoute: {
784
+ errors: number;
785
+ requests: number;
786
+ averageDurationMs: number;
787
+ route: string;
788
+ }[];
789
+ byStatus: {
790
+ requests: number;
791
+ status: number;
792
+ }[];
793
+ from: string;
794
+ period: "24h" | "30d" | "7d";
795
+ to: string;
796
+ totals: {
797
+ errors: number;
798
+ requests: number;
799
+ averageDurationMs: number;
800
+ };
801
+ };
802
+ outputFormat: "json";
803
+ status: 200;
804
+ input: {
805
+ param: {
806
+ orgId: string;
807
+ };
808
+ } & {
809
+ query?: {
810
+ period?: string | string[];
811
+ } | undefined;
812
+ };
813
+ };
814
+ };
815
+ } & {
816
+ "/:orgId/sponsorship": {
817
+ $get: {
818
+ output: {
819
+ error: {
820
+ code: "upstream_error";
821
+ details?: readonly Response.error.Detail[] | undefined;
822
+ message: string;
823
+ };
824
+ requestId: string;
825
+ };
826
+ outputFormat: "json";
827
+ status: 502;
828
+ input: {
829
+ param: {
830
+ orgId: string;
831
+ };
832
+ };
833
+ } | {
834
+ output: {
835
+ error: {
836
+ code: "not_found";
837
+ details?: readonly Response.error.Detail[] | undefined;
838
+ message: string;
839
+ };
840
+ requestId: string;
841
+ };
842
+ outputFormat: "json";
843
+ status: 404;
844
+ input: {
845
+ param: {
846
+ orgId: string;
847
+ };
848
+ };
849
+ } | {
850
+ output: {
851
+ production: {
852
+ committedSpend: string;
853
+ currency: "usd";
854
+ from: string;
855
+ period: "month";
856
+ };
857
+ sandbox: {
858
+ committedSpend: string;
859
+ currency: "usd";
860
+ from: string;
861
+ period: "month";
862
+ };
863
+ to: string;
864
+ };
865
+ outputFormat: "json";
866
+ status: 200;
867
+ input: {
868
+ param: {
869
+ orgId: string;
870
+ };
871
+ };
872
+ };
873
+ };
874
+ } & {
875
+ "/:orgId/webhooks": {
876
+ $get: {
877
+ output: {
878
+ error: {
879
+ code: "upstream_error";
880
+ details?: readonly Response.error.Detail[] | undefined;
881
+ message: string;
882
+ };
883
+ requestId: string;
884
+ };
885
+ outputFormat: "json";
886
+ status: 502;
887
+ input: {
888
+ param: {
889
+ orgId: string;
890
+ };
891
+ };
892
+ } | {
893
+ output: {
894
+ error: {
895
+ code: "not_found";
896
+ details?: readonly Response.error.Detail[] | undefined;
897
+ message: string;
898
+ };
899
+ requestId: string;
900
+ };
901
+ outputFormat: "json";
902
+ status: 404;
903
+ input: {
904
+ param: {
905
+ orgId: string;
906
+ };
907
+ };
908
+ } | {
909
+ output: {
910
+ failureCount: number;
911
+ failures: {
912
+ attempt: number;
913
+ createdAt: string;
914
+ error: string | null;
915
+ id: string;
916
+ responseStatus: number | null;
917
+ subscriptionId: string;
918
+ }[];
919
+ failuresTruncated: boolean;
920
+ from: string;
921
+ subscriptions: {
922
+ chainId: number;
923
+ createdAt: string;
924
+ destination: string;
925
+ eventType: string;
926
+ failureCount: number;
927
+ id: string;
928
+ lastDeliveryAt: string | null;
929
+ status: "active" | "disabled" | "paused";
930
+ }[];
931
+ to: string;
932
+ };
933
+ outputFormat: "json";
934
+ status: 200;
935
+ input: {
936
+ param: {
937
+ orgId: string;
938
+ };
939
+ };
940
+ };
941
+ };
942
+ }, "/organizations"> | import("hono/types").MergeSchemaPath<{
943
+ "/": {
944
+ $get: {
945
+ output: {
946
+ data: {
947
+ address: `0x${string}`;
948
+ currency: string;
949
+ decimals: number;
950
+ logoUri?: string | undefined;
951
+ name: string;
952
+ symbol: string;
953
+ id: string;
954
+ }[];
955
+ version: string | null;
956
+ };
957
+ outputFormat: "json";
958
+ status: import("hono/utils/http-status").ContentfulStatusCode;
959
+ input: {
960
+ query: {
961
+ chainId: string | string[];
962
+ };
963
+ };
964
+ };
965
+ };
966
+ } & {
967
+ "/": {
968
+ $post: {
969
+ output: {
970
+ error: {
971
+ code: string;
972
+ details?: readonly Response.error.Detail[] | undefined;
973
+ message: string;
974
+ };
975
+ requestId: string;
976
+ };
977
+ outputFormat: "json";
978
+ status: 400 | 413 | 415;
979
+ input: {
980
+ json: {
981
+ address: `0x${string}`;
982
+ currency: string;
983
+ decimals: number;
984
+ logoUri?: string | undefined;
985
+ name: string;
986
+ symbol: string;
987
+ chainId: unknown;
988
+ logo?: string | undefined;
989
+ };
990
+ };
991
+ } | {
992
+ output: {
993
+ error: {
994
+ code: "upstream_error";
995
+ details?: readonly Response.error.Detail[] | undefined;
996
+ message: string;
997
+ };
998
+ requestId: string;
999
+ };
1000
+ outputFormat: "json";
1001
+ status: 502;
1002
+ input: {
1003
+ json: {
1004
+ address: `0x${string}`;
1005
+ currency: string;
1006
+ decimals: number;
1007
+ logoUri?: string | undefined;
1008
+ name: string;
1009
+ symbol: string;
1010
+ chainId: unknown;
1011
+ logo?: string | undefined;
1012
+ };
1013
+ };
1014
+ } | {
1015
+ output: {
1016
+ error: {
1017
+ code: "verified_token_not_found";
1018
+ details?: readonly Response.error.Detail[] | undefined;
1019
+ message: string;
1020
+ };
1021
+ requestId: string;
1022
+ };
1023
+ outputFormat: "json";
1024
+ status: 404;
1025
+ input: {
1026
+ json: {
1027
+ address: `0x${string}`;
1028
+ currency: string;
1029
+ decimals: number;
1030
+ logoUri?: string | undefined;
1031
+ name: string;
1032
+ symbol: string;
1033
+ chainId: unknown;
1034
+ logo?: string | undefined;
1035
+ };
1036
+ };
1037
+ } | {
1038
+ output: {
1039
+ error: {
1040
+ code: "assets_not_enabled";
1041
+ details?: readonly Response.error.Detail[] | undefined;
1042
+ message: string;
1043
+ };
1044
+ requestId: string;
1045
+ };
1046
+ outputFormat: "json";
1047
+ status: 404;
1048
+ input: {
1049
+ json: {
1050
+ address: `0x${string}`;
1051
+ currency: string;
1052
+ decimals: number;
1053
+ logoUri?: string | undefined;
1054
+ name: string;
1055
+ symbol: string;
1056
+ chainId: unknown;
1057
+ logo?: string | undefined;
1058
+ };
1059
+ };
1060
+ } | {
1061
+ output: {
1062
+ data: {
1063
+ address: `0x${string}`;
1064
+ currency: string;
1065
+ decimals: number;
1066
+ logoUri?: string | undefined;
1067
+ name: string;
1068
+ symbol: string;
1069
+ id: string;
1070
+ };
1071
+ version: string;
1072
+ };
1073
+ outputFormat: "json";
1074
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1075
+ input: {
1076
+ json: {
1077
+ address: `0x${string}`;
1078
+ currency: string;
1079
+ decimals: number;
1080
+ logoUri?: string | undefined;
1081
+ name: string;
1082
+ symbol: string;
1083
+ chainId: unknown;
1084
+ logo?: string | undefined;
1085
+ };
1086
+ };
1087
+ } | {
1088
+ output: {
1089
+ error: {
1090
+ code: "duplicate_address";
1091
+ details?: readonly Response.error.Detail[] | undefined;
1092
+ message: string;
1093
+ };
1094
+ requestId: string;
1095
+ };
1096
+ outputFormat: "json";
1097
+ status: 409;
1098
+ input: {
1099
+ json: {
1100
+ address: `0x${string}`;
1101
+ currency: string;
378
1102
  decimals: number;
379
1103
  logoUri?: string | undefined;
380
1104
  name: string;
@@ -436,14 +1160,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
436
1160
  $put: {
437
1161
  output: {
438
1162
  error: {
439
- code: "upstream_error";
1163
+ code: string;
440
1164
  details?: readonly Response.error.Detail[] | undefined;
441
1165
  message: string;
442
1166
  };
443
1167
  requestId: string;
444
1168
  };
445
1169
  outputFormat: "json";
446
- status: 502;
1170
+ status: 400 | 413 | 415;
447
1171
  input: {
448
1172
  query: {
449
1173
  chainId: string | string[];
@@ -463,14 +1187,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
463
1187
  } | {
464
1188
  output: {
465
1189
  error: {
466
- code: "verified_token_not_found";
1190
+ code: "upstream_error";
467
1191
  details?: readonly Response.error.Detail[] | undefined;
468
1192
  message: string;
469
1193
  };
470
1194
  requestId: string;
471
1195
  };
472
1196
  outputFormat: "json";
473
- status: 404;
1197
+ status: 502;
474
1198
  input: {
475
1199
  query: {
476
1200
  chainId: string | string[];
@@ -490,14 +1214,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
490
1214
  } | {
491
1215
  output: {
492
1216
  error: {
493
- code: string;
1217
+ code: "verified_token_not_found";
494
1218
  details?: readonly Response.error.Detail[] | undefined;
495
1219
  message: string;
496
1220
  };
497
1221
  requestId: string;
498
1222
  };
499
1223
  outputFormat: "json";
500
- status: 400 | 413 | 415;
1224
+ status: 404;
501
1225
  input: {
502
1226
  query: {
503
1227
  chainId: string | string[];
@@ -633,14 +1357,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
633
1357
  $patch: {
634
1358
  output: {
635
1359
  error: {
636
- code: "upstream_error";
1360
+ code: string;
637
1361
  details?: readonly Response.error.Detail[] | undefined;
638
1362
  message: string;
639
1363
  };
640
1364
  requestId: string;
641
1365
  };
642
1366
  outputFormat: "json";
643
- status: 502;
1367
+ status: 400 | 413 | 415;
644
1368
  input: {
645
1369
  param: {
646
1370
  address: `0x${string}`;
@@ -661,14 +1385,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
661
1385
  } | {
662
1386
  output: {
663
1387
  error: {
664
- code: "verified_token_not_found";
1388
+ code: "upstream_error";
665
1389
  details?: readonly Response.error.Detail[] | undefined;
666
1390
  message: string;
667
1391
  };
668
1392
  requestId: string;
669
1393
  };
670
1394
  outputFormat: "json";
671
- status: 404;
1395
+ status: 502;
672
1396
  input: {
673
1397
  param: {
674
1398
  address: `0x${string}`;
@@ -688,19 +1412,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
688
1412
  };
689
1413
  } | {
690
1414
  output: {
691
- data: {
692
- address: `0x${string}`;
693
- currency: string;
694
- decimals: number;
695
- logoUri?: string | undefined;
696
- name: string;
697
- symbol: string;
698
- id: string;
1415
+ error: {
1416
+ code: "verified_token_not_found";
1417
+ details?: readonly Response.error.Detail[] | undefined;
1418
+ message: string;
699
1419
  };
700
- version: string;
1420
+ requestId: string;
701
1421
  };
702
1422
  outputFormat: "json";
703
- status: import("hono/utils/http-status").ContentfulStatusCode;
1423
+ status: 404;
704
1424
  input: {
705
1425
  param: {
706
1426
  address: `0x${string}`;
@@ -720,15 +1440,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
720
1440
  };
721
1441
  } | {
722
1442
  output: {
723
- error: {
724
- code: string;
725
- details?: readonly Response.error.Detail[] | undefined;
726
- message: string;
1443
+ data: {
1444
+ address: `0x${string}`;
1445
+ currency: string;
1446
+ decimals: number;
1447
+ logoUri?: string | undefined;
1448
+ name: string;
1449
+ symbol: string;
1450
+ id: string;
727
1451
  };
728
- requestId: string;
1452
+ version: string;
729
1453
  };
730
1454
  outputFormat: "json";
731
- status: 400 | 413 | 415;
1455
+ status: import("hono/utils/http-status").ContentfulStatusCode;
732
1456
  input: {
733
1457
  param: {
734
1458
  address: `0x${string}`;
@@ -837,14 +1561,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
837
1561
  $delete: {
838
1562
  output: {
839
1563
  error: {
840
- code: "upstream_error";
1564
+ code: string;
841
1565
  details?: readonly Response.error.Detail[] | undefined;
842
1566
  message: string;
843
1567
  };
844
1568
  requestId: string;
845
1569
  };
846
1570
  outputFormat: "json";
847
- status: 502;
1571
+ status: 400 | 413 | 415;
848
1572
  input: {
849
1573
  param: {
850
1574
  address: `0x${string}`;
@@ -857,14 +1581,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
857
1581
  } | {
858
1582
  output: {
859
1583
  error: {
860
- code: "verified_token_not_found";
1584
+ code: "upstream_error";
861
1585
  details?: readonly Response.error.Detail[] | undefined;
862
1586
  message: string;
863
1587
  };
864
1588
  requestId: string;
865
1589
  };
866
1590
  outputFormat: "json";
867
- status: 404;
1591
+ status: 502;
868
1592
  input: {
869
1593
  param: {
870
1594
  address: `0x${string}`;
@@ -877,14 +1601,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
877
1601
  } | {
878
1602
  output: {
879
1603
  error: {
880
- code: string;
1604
+ code: "verified_token_not_found";
881
1605
  details?: readonly Response.error.Detail[] | undefined;
882
1606
  message: string;
883
1607
  };
884
1608
  requestId: string;
885
1609
  };
886
1610
  outputFormat: "json";
887
- status: 400 | 413 | 415;
1611
+ status: 404;
888
1612
  input: {
889
1613
  param: {
890
1614
  address: `0x${string}`;
@@ -1108,232 +1832,127 @@ export declare function create(options: create.Options): import("hono/hono-base"
1108
1832
  };
1109
1833
  };
1110
1834
  };
1111
- }, "/verified-tokens"> | import("hono/types").MergeSchemaPath<{
1112
- "/": {
1835
+ } & {
1836
+ "/requests": {
1113
1837
  $get: {
1114
- output: {
1115
- error: {
1116
- code: "upstream_error";
1117
- details?: readonly Response.error.Detail[] | undefined;
1118
- message: string;
1119
- };
1120
- requestId: string;
1121
- };
1122
- outputFormat: "json";
1123
- status: 502;
1124
- input: {
1125
- query?: {
1126
- cursor?: string | string[];
1127
- limit?: string | string[];
1128
- query?: string | string[];
1129
- } | undefined;
1130
- };
1131
- } | {
1132
1838
  output: {
1133
1839
  data: {
1840
+ address: `0x${string}`;
1841
+ currency: string;
1842
+ decimals: number;
1843
+ logoUri?: string | undefined;
1844
+ name: string;
1845
+ symbol: string;
1846
+ chainId: number;
1134
1847
  createdAt: string;
1135
- createdBy: string | null;
1136
1848
  id: string;
1137
- name: string;
1849
+ logo?: string | undefined;
1850
+ note: string | null;
1851
+ orgId: string;
1852
+ requestedBy: string;
1853
+ reviewNote: string | null;
1854
+ reviewedAt: string | null;
1855
+ status: "approved" | "denied" | "pending";
1138
1856
  updatedAt: string;
1139
- userId: string | null;
1140
- memberCount: number;
1141
- projectCount: number;
1857
+ orgName: string | null;
1858
+ reviewedBy: string | null;
1142
1859
  }[];
1143
- nextCursor: string | null;
1144
1860
  };
1145
1861
  outputFormat: "json";
1146
- status: 200;
1862
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1147
1863
  input: {
1148
1864
  query?: {
1149
- cursor?: string | string[];
1150
- limit?: string | string[];
1151
- query?: string | string[];
1865
+ status?: string | string[];
1152
1866
  } | undefined;
1153
1867
  };
1154
1868
  };
1155
1869
  };
1156
1870
  } & {
1157
- "/:orgId": {
1158
- $get: {
1871
+ "/requests/:requestId/approve": {
1872
+ $post: {
1159
1873
  output: {
1160
1874
  error: {
1161
- code: "upstream_error";
1875
+ code: string;
1162
1876
  details?: readonly Response.error.Detail[] | undefined;
1163
1877
  message: string;
1164
1878
  };
1165
1879
  requestId: string;
1166
1880
  };
1167
1881
  outputFormat: "json";
1168
- status: 502;
1882
+ status: 400 | 413 | 415;
1169
1883
  input: {
1170
1884
  param: {
1171
- orgId: string;
1885
+ requestId: string;
1172
1886
  };
1173
1887
  };
1174
1888
  } | {
1175
1889
  output: {
1176
1890
  error: {
1177
- code: "not_found";
1891
+ code: "upstream_error";
1178
1892
  details?: readonly Response.error.Detail[] | undefined;
1179
1893
  message: string;
1180
1894
  };
1181
1895
  requestId: string;
1182
1896
  };
1183
1897
  outputFormat: "json";
1184
- status: 404;
1898
+ status: 502;
1185
1899
  input: {
1186
1900
  param: {
1187
- orgId: string;
1901
+ requestId: string;
1188
1902
  };
1189
1903
  };
1190
1904
  } | {
1191
- output: {
1192
- createdAt: string;
1193
- createdBy: string | null;
1194
- id: string;
1195
- name: string;
1196
- updatedAt: string;
1197
- userId: string | null;
1198
- memberCount: number;
1199
- projectCount: number;
1200
- billing: {
1201
- production: {
1202
- settings: {
1203
- currency: "usd";
1204
- period: "month";
1205
- spendLimit: string | null;
1206
- txFeeLimit: string | null;
1207
- updatedAt: string;
1208
- } | null;
1209
- source: {
1210
- status: "active" | "canceled" | "none" | "past_due";
1211
- stripeCustomerId: string;
1212
- updatedAt: string;
1213
- } | null;
1214
- };
1215
- sandbox: {
1216
- settings: {
1217
- currency: "usd";
1218
- period: "month";
1219
- spendLimit: string | null;
1220
- txFeeLimit: string | null;
1221
- updatedAt: string;
1222
- } | null;
1223
- source: {
1224
- status: "active" | "canceled" | "none" | "past_due";
1225
- stripeCustomerId: string;
1226
- updatedAt: string;
1227
- } | null;
1228
- };
1229
- };
1230
- };
1231
- outputFormat: "json";
1232
- status: 200;
1233
- input: {
1234
- param: {
1235
- orgId: string;
1236
- };
1237
- };
1238
- };
1239
- };
1240
- } & {
1241
- "/:orgId/members": {
1242
- $get: {
1243
1905
  output: {
1244
1906
  error: {
1245
- code: "upstream_error";
1907
+ code: "request_not_pending";
1246
1908
  details?: readonly Response.error.Detail[] | undefined;
1247
1909
  message: string;
1248
1910
  };
1249
1911
  requestId: string;
1250
1912
  };
1251
1913
  outputFormat: "json";
1252
- status: 502;
1914
+ status: 409;
1253
1915
  input: {
1254
1916
  param: {
1255
- orgId: string;
1917
+ requestId: string;
1256
1918
  };
1257
- } & {
1258
- query?: {
1259
- cursor?: string | string[];
1260
- limit?: string | string[];
1261
- } | undefined;
1262
1919
  };
1263
1920
  } | {
1264
1921
  output: {
1265
1922
  error: {
1266
- code: "not_found";
1923
+ code: "verified_token_request_not_found";
1267
1924
  details?: readonly Response.error.Detail[] | undefined;
1268
1925
  message: string;
1269
- };
1270
- requestId: string;
1271
- };
1272
- outputFormat: "json";
1273
- status: 404;
1274
- input: {
1275
- param: {
1276
- orgId: string;
1277
- };
1278
- } & {
1279
- query?: {
1280
- cursor?: string | string[];
1281
- limit?: string | string[];
1282
- } | undefined;
1283
- };
1284
- } | {
1285
- output: {
1286
- data: {
1287
- address: string | null;
1288
- createdAt: string;
1289
- email: string | null;
1290
- role: "admin" | "member" | "owner";
1291
- updatedAt: string;
1292
- userId: string;
1293
- }[];
1294
- nextCursor: string | null;
1926
+ };
1927
+ requestId: string;
1295
1928
  };
1296
1929
  outputFormat: "json";
1297
- status: 200;
1930
+ status: 404;
1298
1931
  input: {
1299
1932
  param: {
1300
- orgId: string;
1933
+ requestId: string;
1301
1934
  };
1302
- } & {
1303
- query?: {
1304
- cursor?: string | string[];
1305
- limit?: string | string[];
1306
- } | undefined;
1307
1935
  };
1308
- };
1309
- };
1310
- } & {
1311
- "/:orgId/projects": {
1312
- $get: {
1936
+ } | {
1313
1937
  output: {
1314
1938
  error: {
1315
- code: "upstream_error";
1939
+ code: "verified_token_not_found";
1316
1940
  details?: readonly Response.error.Detail[] | undefined;
1317
1941
  message: string;
1318
1942
  };
1319
1943
  requestId: string;
1320
1944
  };
1321
1945
  outputFormat: "json";
1322
- status: 502;
1946
+ status: 404;
1323
1947
  input: {
1324
1948
  param: {
1325
- orgId: string;
1949
+ requestId: string;
1326
1950
  };
1327
- } & {
1328
- query?: {
1329
- cursor?: string | string[];
1330
- limit?: string | string[];
1331
- } | undefined;
1332
1951
  };
1333
1952
  } | {
1334
1953
  output: {
1335
1954
  error: {
1336
- code: "not_found";
1955
+ code: "assets_not_enabled";
1337
1956
  details?: readonly Response.error.Detail[] | undefined;
1338
1957
  message: string;
1339
1958
  };
@@ -1343,204 +1962,176 @@ export declare function create(options: create.Options): import("hono/hono-base"
1343
1962
  status: 404;
1344
1963
  input: {
1345
1964
  param: {
1346
- orgId: string;
1965
+ requestId: string;
1347
1966
  };
1348
- } & {
1349
- query?: {
1350
- cursor?: string | string[];
1351
- limit?: string | string[];
1352
- } | undefined;
1353
1967
  };
1354
1968
  } | {
1355
1969
  output: {
1356
- data: {
1357
- createdAt: string;
1358
- id: string;
1359
- name: string;
1360
- updatedAt: string;
1361
- }[];
1362
- nextCursor: string | null;
1970
+ error: {
1971
+ code: "duplicate_address";
1972
+ details?: readonly Response.error.Detail[] | undefined;
1973
+ message: string;
1974
+ };
1975
+ requestId: string;
1363
1976
  };
1364
1977
  outputFormat: "json";
1365
- status: 200;
1978
+ status: 409;
1366
1979
  input: {
1367
1980
  param: {
1368
- orgId: string;
1981
+ requestId: string;
1369
1982
  };
1370
- } & {
1371
- query?: {
1372
- cursor?: string | string[];
1373
- limit?: string | string[];
1374
- } | undefined;
1375
1983
  };
1376
- };
1377
- };
1378
- } & {
1379
- "/:orgId/api-keys": {
1380
- $get: {
1984
+ } | {
1381
1985
  output: {
1382
1986
  error: {
1383
- code: "upstream_error";
1987
+ code: "duplicate_symbol";
1384
1988
  details?: readonly Response.error.Detail[] | undefined;
1385
1989
  message: string;
1386
1990
  };
1387
1991
  requestId: string;
1388
1992
  };
1389
1993
  outputFormat: "json";
1390
- status: 502;
1994
+ status: 409;
1391
1995
  input: {
1392
1996
  param: {
1393
- orgId: string;
1997
+ requestId: string;
1394
1998
  };
1395
1999
  };
1396
2000
  } | {
1397
2001
  output: {
1398
2002
  error: {
1399
- code: "not_found";
2003
+ code: "version_mismatch";
1400
2004
  details?: readonly Response.error.Detail[] | undefined;
1401
2005
  message: string;
1402
2006
  };
1403
2007
  requestId: string;
1404
2008
  };
1405
2009
  outputFormat: "json";
1406
- status: 404;
2010
+ status: 412;
1407
2011
  input: {
1408
2012
  param: {
1409
- orgId: string;
2013
+ requestId: string;
1410
2014
  };
1411
2015
  };
1412
2016
  } | {
1413
2017
  output: {
1414
2018
  data: {
1415
- billingActive?: boolean | undefined;
1416
- environment: "production" | "sandbox";
2019
+ address: `0x${string}`;
2020
+ currency: string;
2021
+ decimals: number;
2022
+ logoUri?: string | undefined;
2023
+ name: string;
2024
+ symbol: string;
2025
+ chainId: number;
2026
+ createdAt: string;
1417
2027
  id: string;
1418
- name?: string | undefined;
2028
+ logo?: string | undefined;
2029
+ note: string | null;
1419
2030
  orgId: string;
1420
- projectId?: string | undefined;
1421
- rateLimits?: {
1422
- [x: string]: {
1423
- perMinute: number;
1424
- };
1425
- } | undefined;
1426
- scopes: readonly string[];
1427
- createdAt: string;
1428
- createdBy?: string | undefined;
1429
- expiresAt?: string | undefined;
1430
- tokenLast4: string;
1431
- }[];
2031
+ requestedBy: string;
2032
+ reviewNote: string | null;
2033
+ reviewedAt: string | null;
2034
+ status: "approved" | "denied" | "pending";
2035
+ updatedAt: string;
2036
+ orgName: string | null;
2037
+ reviewedBy: string | null;
2038
+ };
1432
2039
  };
1433
2040
  outputFormat: "json";
1434
- status: 200;
2041
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1435
2042
  input: {
1436
2043
  param: {
1437
- orgId: string;
2044
+ requestId: string;
1438
2045
  };
1439
2046
  };
1440
2047
  };
1441
2048
  };
1442
2049
  } & {
1443
- "/:orgId/usage": {
1444
- $get: {
2050
+ "/requests/:requestId/deny": {
2051
+ $post: {
1445
2052
  output: {
1446
2053
  error: {
1447
- code: "upstream_error";
2054
+ code: string;
1448
2055
  details?: readonly Response.error.Detail[] | undefined;
1449
2056
  message: string;
1450
2057
  };
1451
2058
  requestId: string;
1452
2059
  };
1453
2060
  outputFormat: "json";
1454
- status: 502;
2061
+ status: 400 | 413 | 415;
1455
2062
  input: {
1456
2063
  param: {
1457
- orgId: string;
2064
+ requestId: string;
1458
2065
  };
1459
2066
  } & {
1460
- query?: {
1461
- period?: string | string[];
1462
- } | undefined;
2067
+ json: {
2068
+ reviewNote?: string | undefined;
2069
+ };
1463
2070
  };
1464
2071
  } | {
1465
2072
  output: {
1466
2073
  error: {
1467
- code: "not_found";
2074
+ code: "upstream_error";
1468
2075
  details?: readonly Response.error.Detail[] | undefined;
1469
2076
  message: string;
1470
2077
  };
1471
2078
  requestId: string;
1472
2079
  };
1473
2080
  outputFormat: "json";
1474
- status: 404;
2081
+ status: 502;
1475
2082
  input: {
1476
2083
  param: {
1477
- orgId: string;
2084
+ requestId: string;
1478
2085
  };
1479
2086
  } & {
1480
- query?: {
1481
- period?: string | string[];
1482
- } | undefined;
2087
+ json: {
2088
+ reviewNote?: string | undefined;
2089
+ };
1483
2090
  };
1484
2091
  } | {
1485
2092
  output: {
1486
- byError: {
1487
- code: string;
1488
- requests: number;
1489
- }[];
1490
- byRoute: {
1491
- errors: number;
1492
- requests: number;
1493
- averageDurationMs: number;
1494
- route: string;
1495
- }[];
1496
- byStatus: {
1497
- requests: number;
1498
- status: number;
1499
- }[];
1500
- from: string;
1501
- period: "24h" | "30d" | "7d";
1502
- to: string;
1503
- totals: {
1504
- errors: number;
1505
- requests: number;
1506
- averageDurationMs: number;
2093
+ error: {
2094
+ code: "request_not_pending";
2095
+ details?: readonly Response.error.Detail[] | undefined;
2096
+ message: string;
1507
2097
  };
2098
+ requestId: string;
1508
2099
  };
1509
2100
  outputFormat: "json";
1510
- status: 200;
2101
+ status: 409;
1511
2102
  input: {
1512
2103
  param: {
1513
- orgId: string;
2104
+ requestId: string;
1514
2105
  };
1515
2106
  } & {
1516
- query?: {
1517
- period?: string | string[];
1518
- } | undefined;
2107
+ json: {
2108
+ reviewNote?: string | undefined;
2109
+ };
1519
2110
  };
1520
- };
1521
- };
1522
- } & {
1523
- "/:orgId/sponsorship": {
1524
- $get: {
2111
+ } | {
1525
2112
  output: {
1526
2113
  error: {
1527
- code: "upstream_error";
2114
+ code: "verified_token_request_not_found";
1528
2115
  details?: readonly Response.error.Detail[] | undefined;
1529
2116
  message: string;
1530
2117
  };
1531
2118
  requestId: string;
1532
2119
  };
1533
2120
  outputFormat: "json";
1534
- status: 502;
2121
+ status: 404;
1535
2122
  input: {
1536
2123
  param: {
1537
- orgId: string;
2124
+ requestId: string;
2125
+ };
2126
+ } & {
2127
+ json: {
2128
+ reviewNote?: string | undefined;
1538
2129
  };
1539
2130
  };
1540
2131
  } | {
1541
2132
  output: {
1542
2133
  error: {
1543
- code: "not_found";
2134
+ code: "verified_token_not_found";
1544
2135
  details?: readonly Response.error.Detail[] | undefined;
1545
2136
  message: string;
1546
2137
  };
@@ -1550,103 +2141,111 @@ export declare function create(options: create.Options): import("hono/hono-base"
1550
2141
  status: 404;
1551
2142
  input: {
1552
2143
  param: {
1553
- orgId: string;
2144
+ requestId: string;
2145
+ };
2146
+ } & {
2147
+ json: {
2148
+ reviewNote?: string | undefined;
1554
2149
  };
1555
2150
  };
1556
2151
  } | {
1557
2152
  output: {
1558
- production: {
1559
- committedSpend: string;
1560
- currency: "usd";
1561
- from: string;
1562
- period: "month";
1563
- };
1564
- sandbox: {
1565
- committedSpend: string;
1566
- currency: "usd";
1567
- from: string;
1568
- period: "month";
2153
+ error: {
2154
+ code: "duplicate_address";
2155
+ details?: readonly Response.error.Detail[] | undefined;
2156
+ message: string;
1569
2157
  };
1570
- to: string;
2158
+ requestId: string;
1571
2159
  };
1572
2160
  outputFormat: "json";
1573
- status: 200;
2161
+ status: 409;
1574
2162
  input: {
1575
2163
  param: {
1576
- orgId: string;
2164
+ requestId: string;
2165
+ };
2166
+ } & {
2167
+ json: {
2168
+ reviewNote?: string | undefined;
1577
2169
  };
1578
2170
  };
1579
- };
1580
- };
1581
- } & {
1582
- "/:orgId/webhooks": {
1583
- $get: {
2171
+ } | {
1584
2172
  output: {
1585
2173
  error: {
1586
- code: "upstream_error";
2174
+ code: "duplicate_symbol";
1587
2175
  details?: readonly Response.error.Detail[] | undefined;
1588
2176
  message: string;
1589
2177
  };
1590
2178
  requestId: string;
1591
2179
  };
1592
2180
  outputFormat: "json";
1593
- status: 502;
2181
+ status: 409;
1594
2182
  input: {
1595
2183
  param: {
1596
- orgId: string;
2184
+ requestId: string;
2185
+ };
2186
+ } & {
2187
+ json: {
2188
+ reviewNote?: string | undefined;
1597
2189
  };
1598
2190
  };
1599
2191
  } | {
1600
2192
  output: {
1601
2193
  error: {
1602
- code: "not_found";
2194
+ code: "version_mismatch";
1603
2195
  details?: readonly Response.error.Detail[] | undefined;
1604
2196
  message: string;
1605
2197
  };
1606
2198
  requestId: string;
1607
2199
  };
1608
2200
  outputFormat: "json";
1609
- status: 404;
2201
+ status: 412;
1610
2202
  input: {
1611
2203
  param: {
1612
- orgId: string;
2204
+ requestId: string;
2205
+ };
2206
+ } & {
2207
+ json: {
2208
+ reviewNote?: string | undefined;
1613
2209
  };
1614
2210
  };
1615
2211
  } | {
1616
2212
  output: {
1617
- failureCount: number;
1618
- failures: {
1619
- attempt: number;
1620
- createdAt: string;
1621
- error: string | null;
1622
- id: string;
1623
- responseStatus: number | null;
1624
- subscriptionId: string;
1625
- }[];
1626
- failuresTruncated: boolean;
1627
- from: string;
1628
- subscriptions: {
2213
+ data: {
2214
+ address: `0x${string}`;
2215
+ currency: string;
2216
+ decimals: number;
2217
+ logoUri?: string | undefined;
2218
+ name: string;
2219
+ symbol: string;
1629
2220
  chainId: number;
1630
2221
  createdAt: string;
1631
- destination: string;
1632
- eventType: string;
1633
- failureCount: number;
1634
2222
  id: string;
1635
- lastDeliveryAt: string | null;
1636
- status: "active" | "disabled" | "paused";
1637
- }[];
1638
- to: string;
2223
+ logo?: string | undefined;
2224
+ note: string | null;
2225
+ orgId: string;
2226
+ requestedBy: string;
2227
+ reviewNote: string | null;
2228
+ reviewedAt: string | null;
2229
+ status: "approved" | "denied" | "pending";
2230
+ updatedAt: string;
2231
+ orgName: string | null;
2232
+ reviewedBy: string | null;
2233
+ };
1639
2234
  };
1640
2235
  outputFormat: "json";
1641
- status: 200;
2236
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1642
2237
  input: {
1643
2238
  param: {
1644
- orgId: string;
2239
+ requestId: string;
2240
+ };
2241
+ } & {
2242
+ json: {
2243
+ reviewNote?: string | undefined;
1645
2244
  };
1646
2245
  };
1647
2246
  };
1648
2247
  };
1649
- }, "/organizations"> | {
2248
+ }, "/verified-tokens"> | {
1650
2249
  "/config.json": {
1651
2250
  $get: {
1652
2251
  output: {