tapimo 0.12.0 → 0.14.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 (398) hide show
  1. package/dist/App.d.ts +11333 -9563
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +39 -3
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +2 -0
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +17 -0
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/Webhooks.js +2 -2
  10. package/dist/Webhooks.js.map +1 -1
  11. package/dist/admin/App.d.ts +1064 -924
  12. package/dist/admin/App.d.ts.map +1 -1
  13. package/dist/admin/apps/api-keys.d.ts +80 -0
  14. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  15. package/dist/admin/apps/api-keys.js +54 -0
  16. package/dist/admin/apps/api-keys.js.map +1 -1
  17. package/dist/admin/apps/earn-vaults.d.ts +63 -15
  18. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  19. package/dist/admin/apps/earn-vaults.js +2 -1
  20. package/dist/admin/apps/earn-vaults.js.map +1 -1
  21. package/dist/admin/apps/organizations.d.ts +92 -3
  22. package/dist/admin/apps/organizations.d.ts.map +1 -1
  23. package/dist/admin/apps/organizations.js +69 -7
  24. package/dist/admin/apps/organizations.js.map +1 -1
  25. package/dist/admin/apps/verified-tokens.d.ts +7 -7
  26. package/dist/admin/ui.generated.d.ts +1 -1
  27. package/dist/admin/ui.generated.d.ts.map +1 -1
  28. package/dist/admin/ui.generated.js +151 -151
  29. package/dist/admin/ui.generated.js.map +1 -1
  30. package/dist/apps/Zones.d.ts +28 -28
  31. package/dist/apps/Zones.js +7 -7
  32. package/dist/apps/data/App.d.ts +2909 -2523
  33. package/dist/apps/data/App.d.ts.map +1 -1
  34. package/dist/apps/data/App.js +26 -21
  35. package/dist/apps/data/App.js.map +1 -1
  36. package/dist/apps/data/ZoneSelection.d.ts +8 -8
  37. package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
  38. package/dist/apps/data/ZoneSelection.js +1 -1
  39. package/dist/apps/data/ZoneSelection.js.map +1 -1
  40. package/dist/apps/data/routes/activities.d.ts +588 -584
  41. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  42. package/dist/apps/data/routes/activities.js +1561 -1239
  43. package/dist/apps/data/routes/activities.js.map +1 -1
  44. package/dist/apps/data/routes/addresses.d.ts +22 -22
  45. package/dist/apps/data/routes/balances.d.ts +26 -26
  46. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  47. package/dist/apps/data/routes/balances.js +43 -16
  48. package/dist/apps/data/routes/balances.js.map +1 -1
  49. package/dist/apps/data/routes/blocks.d.ts +44 -44
  50. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  51. package/dist/apps/data/routes/blocks.js +21 -11
  52. package/dist/apps/data/routes/blocks.js.map +1 -1
  53. package/dist/apps/data/routes/coingecko.d.ts +3 -3
  54. package/dist/apps/data/routes/earn.d.ts +201 -25
  55. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  56. package/dist/apps/data/routes/earn.js +434 -75
  57. package/dist/apps/data/routes/earn.js.map +1 -1
  58. package/dist/apps/data/routes/exchanges.d.ts +160 -145
  59. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  60. package/dist/apps/data/routes/exchanges.js +180 -114
  61. package/dist/apps/data/routes/exchanges.js.map +1 -1
  62. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  63. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  64. package/dist/apps/data/routes/fee-amm.js +18 -19
  65. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  66. package/dist/apps/data/routes/receipts.d.ts +155 -55
  67. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  68. package/dist/apps/data/routes/receipts.js +28 -10
  69. package/dist/apps/data/routes/receipts.js.map +1 -1
  70. package/dist/apps/data/routes/tokenlist.d.ts +13 -13
  71. package/dist/apps/data/routes/tokens.d.ts +5 -5
  72. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  73. package/dist/apps/data/routes/tokens.js +51 -20
  74. package/dist/apps/data/routes/tokens.js.map +1 -1
  75. package/dist/apps/data/routes/transactions.d.ts +7 -2
  76. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  77. package/dist/apps/data/routes/transactions.js +37 -17
  78. package/dist/apps/data/routes/transactions.js.map +1 -1
  79. package/dist/apps/data/routes/transfers.d.ts +13 -13
  80. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  81. package/dist/apps/data/routes/transfers.js +18 -12
  82. package/dist/apps/data/routes/transfers.js.map +1 -1
  83. package/dist/apps/data/routes/valuation.d.ts +31 -31
  84. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  85. package/dist/apps/data/routes/valuation.js +12 -7
  86. package/dist/apps/data/routes/valuation.js.map +1 -1
  87. package/dist/apps/data/routes/verified-tokens.d.ts +8 -8
  88. package/dist/apps/data/routes/webhooks.d.ts +816 -113
  89. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  90. package/dist/apps/data/routes/webhooks.js +47 -5
  91. package/dist/apps/data/routes/webhooks.js.map +1 -1
  92. package/dist/apps/data/routes/zones.d.ts +14 -14
  93. package/dist/apps/data/routes/zones.js +1 -1
  94. package/dist/apps/funding/App.d.ts +466 -44
  95. package/dist/apps/funding/App.d.ts.map +1 -1
  96. package/dist/apps/funding/App.js +1 -1
  97. package/dist/apps/funding/App.js.map +1 -1
  98. package/dist/apps/funding/routes/deposit-addresses.d.ts +17 -17
  99. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  100. package/dist/apps/funding/routes/deposit-addresses.js +17 -12
  101. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  102. package/dist/apps/funding/routes/transfers.d.ts +650 -57
  103. package/dist/apps/funding/routes/transfers.d.ts.map +1 -1
  104. package/dist/apps/funding/routes/transfers.js +238 -24
  105. package/dist/apps/funding/routes/transfers.js.map +1 -1
  106. package/dist/apps/management/App.d.ts +5120 -4152
  107. package/dist/apps/management/App.d.ts.map +1 -1
  108. package/dist/apps/management/Billing.d.ts +1 -1
  109. package/dist/apps/management/Billing.d.ts.map +1 -1
  110. package/dist/apps/management/Billing.js +17 -1
  111. package/dist/apps/management/Billing.js.map +1 -1
  112. package/dist/apps/management/routes/api-keys.d.ts +632 -81
  113. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  114. package/dist/apps/management/routes/api-keys.js +236 -4
  115. package/dist/apps/management/routes/api-keys.js.map +1 -1
  116. package/dist/apps/management/routes/billing.d.ts +76 -76
  117. package/dist/apps/management/routes/faucet.d.ts +6 -6
  118. package/dist/apps/management/routes/invitations.d.ts +24 -24
  119. package/dist/apps/management/routes/invite-links.d.ts +4 -4
  120. package/dist/apps/management/routes/members.d.ts +16 -16
  121. package/dist/apps/management/routes/orgs.d.ts +20 -20
  122. package/dist/apps/management/routes/projects.d.ts +4 -4
  123. package/dist/apps/management/routes/usage.d.ts +8 -8
  124. package/dist/apps/management/routes/verified-token-requests.d.ts +17 -17
  125. package/dist/apps/management/routes/webhooks.d.ts +675 -25
  126. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  127. package/dist/apps/management/routes/webhooks.js +21 -21
  128. package/dist/apps/management/routes/webhooks.js.map +1 -1
  129. package/dist/apps/relay/App.d.ts.map +1 -1
  130. package/dist/apps/relay/App.js +115 -23
  131. package/dist/apps/relay/App.js.map +1 -1
  132. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  133. package/dist/apps/relay/Sponsorships.js +27 -1
  134. package/dist/apps/relay/Sponsorships.js.map +1 -1
  135. package/dist/db/Db.d.ts.map +1 -1
  136. package/dist/db/Db.js +34 -1
  137. package/dist/db/Db.js.map +1 -1
  138. package/dist/db/Schema.d.ts +11 -5
  139. package/dist/db/Schema.d.ts.map +1 -1
  140. package/dist/db/Schema.js +21 -3
  141. package/dist/db/Schema.js.map +1 -1
  142. package/dist/db/tables/fundingCatalog.d.ts +4 -2
  143. package/dist/db/tables/fundingCatalog.d.ts.map +1 -1
  144. package/dist/db/tables/fundingCatalog.js +5 -1
  145. package/dist/db/tables/fundingCatalog.js.map +1 -1
  146. package/dist/db/tables/fundingTransferTransactions.d.ts +38 -0
  147. package/dist/db/tables/fundingTransferTransactions.d.ts.map +1 -1
  148. package/dist/db/tables/fundingTransferTransactions.js +44 -3
  149. package/dist/db/tables/fundingTransferTransactions.js.map +1 -1
  150. package/dist/db/tables/fundingTransfers.d.ts +17 -0
  151. package/dist/db/tables/fundingTransfers.d.ts.map +1 -1
  152. package/dist/db/tables/fundingTransfers.js +21 -0
  153. package/dist/db/tables/fundingTransfers.js.map +1 -1
  154. package/dist/db/tables/organizations.d.ts +24 -0
  155. package/dist/db/tables/organizations.d.ts.map +1 -1
  156. package/dist/db/tables/organizations.js +27 -0
  157. package/dist/db/tables/organizations.js.map +1 -1
  158. package/dist/db/tables/projects.d.ts +25 -1
  159. package/dist/db/tables/projects.d.ts.map +1 -1
  160. package/dist/db/tables/projects.js +26 -0
  161. package/dist/db/tables/projects.js.map +1 -1
  162. package/dist/db/tables/sponsoredTransactions.d.ts +44 -0
  163. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  164. package/dist/db/tables/sponsoredTransactions.js +146 -13
  165. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  166. package/dist/db/tables/webhookSubscriptions.d.ts +10 -6
  167. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  168. package/dist/db/tables/webhookSubscriptions.js +9 -6
  169. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  170. package/dist/handlers/internal/utils.d.ts.map +1 -1
  171. package/dist/handlers/internal/utils.js +9 -0
  172. package/dist/handlers/internal/utils.js.map +1 -1
  173. package/dist/internal/Auth.d.ts +3 -1
  174. package/dist/internal/Auth.d.ts.map +1 -1
  175. package/dist/internal/Auth.js +6 -3
  176. package/dist/internal/Auth.js.map +1 -1
  177. package/dist/internal/EarnVaults.d.ts +3 -3
  178. package/dist/internal/EarnVaults.js +5 -5
  179. package/dist/internal/EarnVaults.js.map +1 -1
  180. package/dist/internal/Fetch.d.ts +23 -0
  181. package/dist/internal/Fetch.d.ts.map +1 -0
  182. package/dist/internal/Fetch.js +26 -0
  183. package/dist/internal/Fetch.js.map +1 -0
  184. package/dist/internal/Log.d.ts +4 -2
  185. package/dist/internal/Log.d.ts.map +1 -1
  186. package/dist/internal/Log.js +16 -3
  187. package/dist/internal/Log.js.map +1 -1
  188. package/dist/internal/OpenApi.d.ts +5 -3
  189. package/dist/internal/OpenApi.d.ts.map +1 -1
  190. package/dist/internal/OpenApi.js +13 -3
  191. package/dist/internal/OpenApi.js.map +1 -1
  192. package/dist/internal/Response.d.ts +1 -1
  193. package/dist/internal/Response.d.ts.map +1 -1
  194. package/dist/internal/Schema.d.ts +6 -3
  195. package/dist/internal/Schema.d.ts.map +1 -1
  196. package/dist/internal/Schema.js +8 -2
  197. package/dist/internal/Schema.js.map +1 -1
  198. package/dist/internal/Store.d.ts +16 -3
  199. package/dist/internal/Store.d.ts.map +1 -1
  200. package/dist/internal/Store.js +82 -16
  201. package/dist/internal/Store.js.map +1 -1
  202. package/dist/internal/Tidx.d.ts.map +1 -1
  203. package/dist/internal/Tidx.js +7 -2
  204. package/dist/internal/Tidx.js.map +1 -1
  205. package/dist/internal/Timeout.d.ts +36 -0
  206. package/dist/internal/Timeout.d.ts.map +1 -0
  207. package/dist/internal/Timeout.js +37 -0
  208. package/dist/internal/Timeout.js.map +1 -0
  209. package/dist/internal/Timing.d.ts +9 -0
  210. package/dist/internal/Timing.d.ts.map +1 -1
  211. package/dist/internal/Timing.js +7 -0
  212. package/dist/internal/Timing.js.map +1 -1
  213. package/dist/internal/Viem.d.ts +16 -1
  214. package/dist/internal/Viem.d.ts.map +1 -1
  215. package/dist/internal/Viem.js +12 -2
  216. package/dist/internal/Viem.js.map +1 -1
  217. package/dist/internal/WebhookDestination.d.ts.map +1 -1
  218. package/dist/internal/WebhookDestination.js +3 -0
  219. package/dist/internal/WebhookDestination.js.map +1 -1
  220. package/dist/internal/funding/Action.d.ts +9 -0
  221. package/dist/internal/funding/Action.d.ts.map +1 -1
  222. package/dist/internal/funding/Action.js +16 -8
  223. package/dist/internal/funding/Action.js.map +1 -1
  224. package/dist/internal/funding/Catalog.d.ts +9 -2
  225. package/dist/internal/funding/Catalog.d.ts.map +1 -1
  226. package/dist/internal/funding/Catalog.js +19 -8
  227. package/dist/internal/funding/Catalog.js.map +1 -1
  228. package/dist/internal/funding/DepositWebhook.d.ts.map +1 -1
  229. package/dist/internal/funding/DepositWebhook.js +2 -1
  230. package/dist/internal/funding/DepositWebhook.js.map +1 -1
  231. package/dist/internal/funding/Evidence.d.ts.map +1 -1
  232. package/dist/internal/funding/Evidence.js +2 -10
  233. package/dist/internal/funding/Evidence.js.map +1 -1
  234. package/dist/internal/funding/Provider.d.ts +108 -13
  235. package/dist/internal/funding/Provider.d.ts.map +1 -1
  236. package/dist/internal/funding/Provider.js +34 -8
  237. package/dist/internal/funding/Provider.js.map +1 -1
  238. package/dist/internal/funding/SourceObservation.d.ts.map +1 -1
  239. package/dist/internal/funding/SourceObservation.js +5 -7
  240. package/dist/internal/funding/SourceObservation.js.map +1 -1
  241. package/dist/internal/funding/Transfer.d.ts +114 -18
  242. package/dist/internal/funding/Transfer.d.ts.map +1 -1
  243. package/dist/internal/funding/Transfer.js +185 -55
  244. package/dist/internal/funding/Transfer.js.map +1 -1
  245. package/dist/internal/funding/TransferReconciliation.d.ts +52 -0
  246. package/dist/internal/funding/TransferReconciliation.d.ts.map +1 -0
  247. package/dist/internal/funding/TransferReconciliation.js +192 -0
  248. package/dist/internal/funding/TransferReconciliation.js.map +1 -0
  249. package/dist/internal/funding/TransferWebhook.d.ts +21 -0
  250. package/dist/internal/funding/TransferWebhook.d.ts.map +1 -0
  251. package/dist/internal/funding/TransferWebhook.js +43 -0
  252. package/dist/internal/funding/TransferWebhook.js.map +1 -0
  253. package/dist/internal/funding/index.d.ts +1 -0
  254. package/dist/internal/funding/index.d.ts.map +1 -1
  255. package/dist/internal/funding/index.js +1 -0
  256. package/dist/internal/funding/index.js.map +1 -1
  257. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  258. package/dist/internal/funding/providers/relay.js +3 -12
  259. package/dist/internal/funding/providers/relay.js.map +1 -1
  260. package/dist/internal/funding/providers/stargate.d.ts +127 -9
  261. package/dist/internal/funding/providers/stargate.d.ts.map +1 -1
  262. package/dist/internal/funding/providers/stargate.js +548 -112
  263. package/dist/internal/funding/providers/stargate.js.map +1 -1
  264. package/dist/internal/index.d.ts +1 -0
  265. package/dist/internal/index.d.ts.map +1 -1
  266. package/dist/internal/index.js +1 -0
  267. package/dist/internal/index.js.map +1 -1
  268. package/dist/internal/webhookDestinations/slack.d.ts.map +1 -1
  269. package/dist/internal/webhookDestinations/slack.js +16 -0
  270. package/dist/internal/webhookDestinations/slack.js.map +1 -1
  271. package/package.json +2 -2
  272. package/src/App.test.ts +100 -0
  273. package/src/App.ts +43 -3
  274. package/src/Client.test-d.ts +129 -2
  275. package/src/Scope.test.ts +20 -0
  276. package/src/Scope.ts +16 -0
  277. package/src/Webhooks.ts +2 -2
  278. package/src/admin/apps/api-keys.test.ts +75 -0
  279. package/src/admin/apps/api-keys.ts +64 -0
  280. package/src/admin/apps/earn-vaults.test.ts +1 -1
  281. package/src/admin/apps/earn-vaults.ts +2 -1
  282. package/src/admin/apps/organizations.test.ts +53 -1
  283. package/src/admin/apps/organizations.ts +90 -5
  284. package/src/admin/ui/src/lib/api-keys.ts +19 -0
  285. package/src/admin/ui/src/lib/organizations.test.ts +112 -1
  286. package/src/admin/ui/src/lib/organizations.ts +55 -0
  287. package/src/admin/ui/src/routes/api-keys.tsx +89 -2
  288. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +116 -0
  289. package/src/admin/ui.generated.ts +189 -151
  290. package/src/apps/Zones.test.ts +7 -7
  291. package/src/apps/Zones.ts +7 -7
  292. package/src/apps/composition.test.ts +2 -1
  293. package/src/apps/data/App.test.ts +41 -0
  294. package/src/apps/data/App.ts +30 -21
  295. package/src/apps/data/ZoneSelection.test.ts +2 -2
  296. package/src/apps/data/ZoneSelection.ts +8 -8
  297. package/src/apps/data/routes/activities.test.ts +1526 -12
  298. package/src/apps/data/routes/activities.ts +1774 -1356
  299. package/src/apps/data/routes/balances.ts +133 -97
  300. package/src/apps/data/routes/blocks.test.ts +533 -0
  301. package/src/apps/data/routes/blocks.ts +35 -16
  302. package/src/apps/data/routes/earn.test.ts +373 -16
  303. package/src/apps/data/routes/earn.ts +548 -79
  304. package/src/apps/data/routes/earn.zone-access.test.ts +6 -6
  305. package/src/apps/data/routes/exchanges.test.ts +740 -15
  306. package/src/apps/data/routes/exchanges.ts +954 -753
  307. package/src/apps/data/routes/fee-amm.ts +17 -18
  308. package/src/apps/data/routes/receipts.ts +47 -16
  309. package/src/apps/data/routes/tokens.test.ts +578 -0
  310. package/src/apps/data/routes/tokens.ts +283 -225
  311. package/src/apps/data/routes/transactions.ts +68 -29
  312. package/src/apps/data/routes/transfers.test.ts +421 -0
  313. package/src/apps/data/routes/transfers.ts +45 -27
  314. package/src/apps/data/routes/valuation.ts +94 -78
  315. package/src/apps/data/routes/webhooks.test.ts +21 -5
  316. package/src/apps/data/routes/webhooks.ts +63 -8
  317. package/src/apps/data/routes/zones.test.ts +2 -2
  318. package/src/apps/data/routes/zones.ts +1 -1
  319. package/src/apps/funding/App.ts +12 -2
  320. package/src/apps/funding/routes/deposit-addresses.test.ts +29 -7
  321. package/src/apps/funding/routes/deposit-addresses.ts +19 -14
  322. package/src/apps/funding/routes/quotes.test.ts +5 -9
  323. package/src/apps/funding/routes/transfers.test.ts +901 -23
  324. package/src/apps/funding/routes/transfers.ts +347 -64
  325. package/src/apps/management/Billing.ts +18 -5
  326. package/src/apps/management/routes/api-keys.test.ts +220 -0
  327. package/src/apps/management/routes/api-keys.ts +280 -3
  328. package/src/apps/management/routes/webhooks.test.ts +3 -3
  329. package/src/apps/management/routes/webhooks.ts +24 -25
  330. package/src/apps/relay/App.test.ts +212 -1
  331. package/src/apps/relay/App.ts +158 -29
  332. package/src/apps/relay/Sponsorships.ts +24 -1
  333. package/src/db/Db.ts +48 -1
  334. package/src/db/Schema.ts +22 -4
  335. package/src/db/tables/earnVaults.test.ts +9 -9
  336. package/src/db/tables/fundingCatalog.test.ts +16 -2
  337. package/src/db/tables/fundingCatalog.ts +9 -3
  338. package/src/db/tables/fundingTransferTransactions.test.ts +43 -0
  339. package/src/db/tables/fundingTransferTransactions.ts +79 -3
  340. package/src/db/tables/fundingTransfers.test.ts +26 -0
  341. package/src/db/tables/fundingTransfers.ts +36 -0
  342. package/src/db/tables/organizations.test.ts +41 -0
  343. package/src/db/tables/organizations.ts +49 -0
  344. package/src/db/tables/projects.test.ts +55 -0
  345. package/src/db/tables/projects.ts +46 -1
  346. package/src/db/tables/sponsoredTransactions.test.ts +338 -0
  347. package/src/db/tables/sponsoredTransactions.ts +197 -13
  348. package/src/db/tables/webhookSubscriptions.ts +18 -11
  349. package/src/handlers/internal/utils.test.ts +53 -0
  350. package/src/handlers/internal/utils.ts +15 -0
  351. package/src/internal/Auth.ts +12 -4
  352. package/src/internal/EarnVaults.capabilities.test.ts +2 -2
  353. package/src/internal/EarnVaults.test.ts +1 -1
  354. package/src/internal/EarnVaults.ts +5 -5
  355. package/src/internal/Fetch.test.ts +46 -0
  356. package/src/internal/Fetch.ts +56 -0
  357. package/src/internal/Log.test-d.ts +2 -0
  358. package/src/internal/Log.test.ts +21 -0
  359. package/src/internal/Log.ts +22 -5
  360. package/src/internal/OpenApi.ts +14 -4
  361. package/src/internal/Response.ts +1 -1
  362. package/src/internal/Schema.test.ts +2 -0
  363. package/src/internal/Schema.ts +12 -2
  364. package/src/internal/Store.test.ts +178 -0
  365. package/src/internal/Store.ts +104 -18
  366. package/src/internal/Tidx.test.ts +2 -1
  367. package/src/internal/Tidx.ts +7 -2
  368. package/src/internal/Timeout.test.ts +35 -0
  369. package/src/internal/Timeout.ts +73 -0
  370. package/src/internal/Timing.ts +16 -0
  371. package/src/internal/Viem.ts +39 -3
  372. package/src/internal/WebhookDestination.ts +3 -0
  373. package/src/internal/Webhooks.test.ts +45 -0
  374. package/src/internal/funding/Action.test.ts +41 -1
  375. package/src/internal/funding/Action.ts +69 -41
  376. package/src/internal/funding/Catalog.test.ts +34 -0
  377. package/src/internal/funding/Catalog.ts +28 -11
  378. package/src/internal/funding/DepositWebhook.ts +2 -1
  379. package/src/internal/funding/Evidence.ts +2 -13
  380. package/src/internal/funding/Provider.test.ts +73 -0
  381. package/src/internal/funding/Provider.ts +125 -28
  382. package/src/internal/funding/SourceObservation.ts +5 -9
  383. package/src/internal/funding/Transfer.test.ts +155 -0
  384. package/src/internal/funding/Transfer.ts +387 -147
  385. package/src/internal/funding/TransferReconciliation.test.ts +147 -0
  386. package/src/internal/funding/TransferReconciliation.ts +264 -0
  387. package/src/internal/funding/TransferWebhook.test.ts +128 -0
  388. package/src/internal/funding/TransferWebhook.ts +67 -0
  389. package/src/internal/funding/index.test.ts +1 -0
  390. package/src/internal/funding/index.ts +1 -0
  391. package/src/internal/funding/providers/index.test.ts +4 -167
  392. package/src/internal/funding/providers/relay.test.ts +2 -2
  393. package/src/internal/funding/providers/relay.ts +3 -15
  394. package/src/internal/funding/providers/stargate.test.ts +328 -0
  395. package/src/internal/funding/providers/stargate.ts +807 -135
  396. package/src/internal/index.test.ts +1 -0
  397. package/src/internal/index.ts +1 -0
  398. package/src/internal/webhookDestinations/slack.ts +15 -0
@@ -196,6 +196,12 @@ export declare function create(options: create.Options): import("hono/hono-base"
196
196
  description: string | null;
197
197
  id: `0x${string}`;
198
198
  instantLiquidity: string | null;
199
+ instantLiquidityValue?: {
200
+ amount: string;
201
+ currency: string;
202
+ decimals: number;
203
+ formatted: string;
204
+ } | null | undefined;
199
205
  label: string;
200
206
  sharePrice: {
201
207
  amount: string;
@@ -358,6 +364,12 @@ export declare function create(options: create.Options): import("hono/hono-base"
358
364
  };
359
365
  id: `0x${string}`;
360
366
  instantLiquidity: string | null;
367
+ instantLiquidityValue?: {
368
+ amount: string;
369
+ currency: string;
370
+ decimals: number;
371
+ formatted: string;
372
+ } | null | undefined;
361
373
  label: string;
362
374
  sharePrice: {
363
375
  amount: string;
@@ -566,6 +578,12 @@ export declare function create(options: create.Options): import("hono/hono-base"
566
578
  description: string | null;
567
579
  id: `0x${string}`;
568
580
  instantLiquidity: string | null;
581
+ instantLiquidityValue?: {
582
+ amount: string;
583
+ currency: string;
584
+ decimals: number;
585
+ formatted: string;
586
+ } | null | undefined;
569
587
  label: string;
570
588
  sharePrice: {
571
589
  amount: string;
@@ -856,6 +874,55 @@ export declare function create(options: create.Options): import("hono/hono-base"
856
874
  };
857
875
  };
858
876
  };
877
+ } & {
878
+ "/:id/rotate": {
879
+ $post: {
880
+ output: {
881
+ error: {
882
+ code: "not_found";
883
+ details?: readonly Response.error.Detail[] | undefined;
884
+ message: string;
885
+ };
886
+ requestId: string;
887
+ };
888
+ outputFormat: "json";
889
+ status: 404;
890
+ input: {
891
+ param: {
892
+ id: string;
893
+ };
894
+ };
895
+ } | {
896
+ output: {
897
+ allowedIps: readonly string[];
898
+ billingActive?: boolean | undefined;
899
+ environment: "production" | "sandbox";
900
+ id: string;
901
+ name?: string | undefined;
902
+ orgId: string;
903
+ projectId?: string | undefined;
904
+ rateLimits?: {
905
+ [x: string]: {
906
+ limit: number;
907
+ period: "minute" | "second";
908
+ };
909
+ } | undefined;
910
+ scopes: readonly string[];
911
+ createdAt: string;
912
+ createdBy?: string | undefined;
913
+ expiresAt?: string | undefined;
914
+ tokenLast4: string;
915
+ token: string;
916
+ };
917
+ outputFormat: "json";
918
+ status: 200;
919
+ input: {
920
+ param: {
921
+ id: string;
922
+ };
923
+ };
924
+ };
925
+ };
859
926
  } & {
860
927
  "/:id": {
861
928
  $patch: {
@@ -944,51 +1011,30 @@ export declare function create(options: create.Options): import("hono/hono-base"
944
1011
  }, "/api-keys"> | import("hono/types").MergeSchemaPath<{
945
1012
  "/": {
946
1013
  $get: {
947
- output: {
948
- error: {
949
- code: "upstream_error";
950
- details?: readonly Response.error.Detail[] | undefined;
951
- message: string;
952
- };
953
- requestId: string;
954
- };
955
- outputFormat: "json";
956
- status: 502;
957
- input: {
958
- query?: {
959
- cursor?: string | string[];
960
- limit?: string | string[];
961
- query?: string | string[];
962
- } | undefined;
963
- };
964
- } | {
965
1014
  output: {
966
1015
  data: {
967
- createdAt: string;
968
- createdBy: string | null;
969
- id: string;
1016
+ address: `0x${string}`;
1017
+ currency: string;
1018
+ decimals: number;
1019
+ logoUri?: string | undefined;
970
1020
  name: string;
971
- updatedAt: string;
972
- userId: string | null;
973
- memberCount: number;
974
- projectCount: number;
1021
+ symbol: string;
1022
+ id: string;
975
1023
  }[];
976
- nextCursor: string | null;
1024
+ version: string | null;
977
1025
  };
978
1026
  outputFormat: "json";
979
- status: 200;
1027
+ status: import("hono/utils/http-status").ContentfulStatusCode;
980
1028
  input: {
981
- query?: {
982
- cursor?: string | string[];
983
- limit?: string | string[];
984
- query?: string | string[];
985
- } | undefined;
1029
+ query: {
1030
+ chainId: string | string[];
1031
+ };
986
1032
  };
987
1033
  };
988
1034
  };
989
1035
  } & {
990
- "/:orgId": {
991
- $get: {
1036
+ "/": {
1037
+ $post: {
992
1038
  output: {
993
1039
  error: {
994
1040
  code: "upstream_error";
@@ -1000,14 +1046,21 @@ export declare function create(options: create.Options): import("hono/hono-base"
1000
1046
  outputFormat: "json";
1001
1047
  status: 502;
1002
1048
  input: {
1003
- param: {
1004
- orgId: string;
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;
1005
1058
  };
1006
1059
  };
1007
1060
  } | {
1008
1061
  output: {
1009
1062
  error: {
1010
- code: "not_found";
1063
+ code: "verified_token_not_found";
1011
1064
  details?: readonly Response.error.Detail[] | undefined;
1012
1065
  message: string;
1013
1066
  };
@@ -1016,114 +1069,164 @@ export declare function create(options: create.Options): import("hono/hono-base"
1016
1069
  outputFormat: "json";
1017
1070
  status: 404;
1018
1071
  input: {
1019
- param: {
1020
- orgId: string;
1072
+ json: {
1073
+ address: `0x${string}`;
1074
+ currency: string;
1075
+ decimals: number;
1076
+ logoUri?: string | undefined;
1077
+ name: string;
1078
+ symbol: string;
1079
+ chainId: unknown;
1080
+ logo?: string | undefined;
1021
1081
  };
1022
1082
  };
1023
1083
  } | {
1024
1084
  output: {
1025
- createdAt: string;
1026
- createdBy: string | null;
1027
- id: string;
1028
- name: string;
1029
- updatedAt: string;
1030
- userId: string | null;
1031
- memberCount: number;
1032
- projectCount: number;
1033
- billing: {
1034
- enabledSources: ("stripe" | "tempo")[];
1035
- production: {
1036
- settings: {
1037
- currency: "usd";
1038
- period: "month";
1039
- spendLimit: string | null;
1040
- txFeeLimit: string | null;
1041
- updatedAt: string;
1042
- } | null;
1043
- source: {
1044
- status: "active" | "canceled" | "none" | "past_due";
1045
- stripeCustomerId: string;
1046
- updatedAt: string;
1047
- } | null;
1048
- };
1049
- sandbox: {
1050
- settings: {
1051
- currency: "usd";
1052
- period: "month";
1053
- spendLimit: string | null;
1054
- txFeeLimit: string | null;
1055
- updatedAt: string;
1056
- } | null;
1057
- source: {
1058
- status: "active" | "canceled" | "none" | "past_due";
1059
- stripeCustomerId: string;
1060
- updatedAt: string;
1061
- } | null;
1062
- };
1085
+ error: {
1086
+ code: "assets_not_enabled";
1087
+ details?: readonly Response.error.Detail[] | undefined;
1088
+ message: string;
1063
1089
  };
1090
+ requestId: string;
1064
1091
  };
1065
1092
  outputFormat: "json";
1066
- status: 200;
1093
+ status: 404;
1067
1094
  input: {
1068
- param: {
1069
- orgId: string;
1095
+ json: {
1096
+ address: `0x${string}`;
1097
+ currency: string;
1098
+ decimals: number;
1099
+ logoUri?: string | undefined;
1100
+ name: string;
1101
+ symbol: string;
1102
+ chainId: unknown;
1103
+ logo?: string | undefined;
1070
1104
  };
1071
1105
  };
1072
- };
1073
- };
1074
- } & {
1075
- "/:orgId/billing-sources/:source": {
1076
- $put: {
1106
+ } | {
1107
+ output: {
1108
+ data: {
1109
+ address: `0x${string}`;
1110
+ currency: string;
1111
+ decimals: number;
1112
+ logoUri?: string | undefined;
1113
+ name: string;
1114
+ symbol: string;
1115
+ id: string;
1116
+ };
1117
+ version: string;
1118
+ };
1119
+ outputFormat: "json";
1120
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1121
+ input: {
1122
+ json: {
1123
+ address: `0x${string}`;
1124
+ currency: string;
1125
+ decimals: number;
1126
+ logoUri?: string | undefined;
1127
+ name: string;
1128
+ symbol: string;
1129
+ chainId: unknown;
1130
+ logo?: string | undefined;
1131
+ };
1132
+ };
1133
+ } | {
1077
1134
  output: {
1078
1135
  error: {
1079
- code: "upstream_error";
1136
+ code: string;
1080
1137
  details?: readonly Response.error.Detail[] | undefined;
1081
1138
  message: string;
1082
1139
  };
1083
1140
  requestId: string;
1084
1141
  };
1085
1142
  outputFormat: "json";
1086
- status: 502;
1143
+ status: 400 | 413 | 415;
1087
1144
  input: {
1088
- param: {
1089
- orgId: string;
1090
- source: "stripe" | "tempo";
1145
+ json: {
1146
+ address: `0x${string}`;
1147
+ currency: string;
1148
+ decimals: number;
1149
+ logoUri?: string | undefined;
1150
+ name: string;
1151
+ symbol: string;
1152
+ chainId: unknown;
1153
+ logo?: string | undefined;
1091
1154
  };
1092
1155
  };
1093
1156
  } | {
1094
1157
  output: {
1095
1158
  error: {
1096
- code: "not_found";
1159
+ code: "duplicate_address";
1097
1160
  details?: readonly Response.error.Detail[] | undefined;
1098
1161
  message: string;
1099
1162
  };
1100
1163
  requestId: string;
1101
1164
  };
1102
1165
  outputFormat: "json";
1103
- status: 404;
1166
+ status: 409;
1104
1167
  input: {
1105
- param: {
1106
- orgId: string;
1107
- source: "stripe" | "tempo";
1168
+ json: {
1169
+ address: `0x${string}`;
1170
+ currency: string;
1171
+ decimals: number;
1172
+ logoUri?: string | undefined;
1173
+ name: string;
1174
+ symbol: string;
1175
+ chainId: unknown;
1176
+ logo?: string | undefined;
1108
1177
  };
1109
1178
  };
1110
1179
  } | {
1111
1180
  output: {
1112
- data: ("stripe" | "tempo")[];
1181
+ error: {
1182
+ code: "duplicate_symbol";
1183
+ details?: readonly Response.error.Detail[] | undefined;
1184
+ message: string;
1185
+ };
1186
+ requestId: string;
1113
1187
  };
1114
1188
  outputFormat: "json";
1115
- status: 200;
1189
+ status: 409;
1116
1190
  input: {
1117
- param: {
1118
- orgId: string;
1119
- source: "stripe" | "tempo";
1191
+ json: {
1192
+ address: `0x${string}`;
1193
+ currency: string;
1194
+ decimals: number;
1195
+ logoUri?: string | undefined;
1196
+ name: string;
1197
+ symbol: string;
1198
+ chainId: unknown;
1199
+ logo?: string | undefined;
1200
+ };
1201
+ };
1202
+ } | {
1203
+ output: {
1204
+ error: {
1205
+ code: "version_mismatch";
1206
+ details?: readonly Response.error.Detail[] | undefined;
1207
+ message: string;
1208
+ };
1209
+ requestId: string;
1210
+ };
1211
+ outputFormat: "json";
1212
+ status: 412;
1213
+ input: {
1214
+ json: {
1215
+ address: `0x${string}`;
1216
+ currency: string;
1217
+ decimals: number;
1218
+ logoUri?: string | undefined;
1219
+ name: string;
1220
+ symbol: string;
1221
+ chainId: unknown;
1222
+ logo?: string | undefined;
1120
1223
  };
1121
1224
  };
1122
1225
  };
1123
1226
  };
1124
1227
  } & {
1125
- "/:orgId/billing-sources/:source": {
1126
- $delete: {
1228
+ "/": {
1229
+ $put: {
1127
1230
  output: {
1128
1231
  error: {
1129
1232
  code: "upstream_error";
@@ -1135,15 +1238,25 @@ export declare function create(options: create.Options): import("hono/hono-base"
1135
1238
  outputFormat: "json";
1136
1239
  status: 502;
1137
1240
  input: {
1138
- param: {
1139
- orgId: string;
1140
- source: "stripe" | "tempo";
1241
+ query: {
1242
+ chainId: string | string[];
1243
+ };
1244
+ } & {
1245
+ json: {
1246
+ tokens: {
1247
+ address: `0x${string}`;
1248
+ currency: string;
1249
+ decimals: number;
1250
+ logoUri?: string | undefined;
1251
+ name: string;
1252
+ symbol: string;
1253
+ }[];
1141
1254
  };
1142
1255
  };
1143
1256
  } | {
1144
1257
  output: {
1145
1258
  error: {
1146
- code: "not_found";
1259
+ code: "verified_token_not_found";
1147
1260
  details?: readonly Response.error.Detail[] | undefined;
1148
1261
  message: string;
1149
1262
  };
@@ -1152,98 +1265,165 @@ export declare function create(options: create.Options): import("hono/hono-base"
1152
1265
  outputFormat: "json";
1153
1266
  status: 404;
1154
1267
  input: {
1155
- param: {
1156
- orgId: string;
1157
- source: "stripe" | "tempo";
1268
+ query: {
1269
+ chainId: string | string[];
1270
+ };
1271
+ } & {
1272
+ json: {
1273
+ tokens: {
1274
+ address: `0x${string}`;
1275
+ currency: string;
1276
+ decimals: number;
1277
+ logoUri?: string | undefined;
1278
+ name: string;
1279
+ symbol: string;
1280
+ }[];
1158
1281
  };
1159
1282
  };
1160
1283
  } | {
1161
1284
  output: {
1162
- data: ("stripe" | "tempo")[];
1285
+ error: {
1286
+ code: string;
1287
+ details?: readonly Response.error.Detail[] | undefined;
1288
+ message: string;
1289
+ };
1290
+ requestId: string;
1163
1291
  };
1164
1292
  outputFormat: "json";
1165
- status: 200;
1293
+ status: 400 | 413 | 415;
1166
1294
  input: {
1167
- param: {
1168
- orgId: string;
1169
- source: "stripe" | "tempo";
1295
+ query: {
1296
+ chainId: string | string[];
1297
+ };
1298
+ } & {
1299
+ json: {
1300
+ tokens: {
1301
+ address: `0x${string}`;
1302
+ currency: string;
1303
+ decimals: number;
1304
+ logoUri?: string | undefined;
1305
+ name: string;
1306
+ symbol: string;
1307
+ }[];
1170
1308
  };
1171
1309
  };
1172
- };
1173
- };
1174
- } & {
1175
- "/:orgId/members": {
1176
- $get: {
1310
+ } | {
1177
1311
  output: {
1178
1312
  error: {
1179
- code: "upstream_error";
1313
+ code: "duplicate_address";
1180
1314
  details?: readonly Response.error.Detail[] | undefined;
1181
1315
  message: string;
1182
1316
  };
1183
1317
  requestId: string;
1184
1318
  };
1185
1319
  outputFormat: "json";
1186
- status: 502;
1320
+ status: 409;
1187
1321
  input: {
1188
- param: {
1189
- orgId: string;
1322
+ query: {
1323
+ chainId: string | string[];
1190
1324
  };
1191
1325
  } & {
1192
- query?: {
1193
- cursor?: string | string[];
1194
- limit?: string | string[];
1195
- } | undefined;
1326
+ json: {
1327
+ tokens: {
1328
+ address: `0x${string}`;
1329
+ currency: string;
1330
+ decimals: number;
1331
+ logoUri?: string | undefined;
1332
+ name: string;
1333
+ symbol: string;
1334
+ }[];
1335
+ };
1196
1336
  };
1197
1337
  } | {
1198
1338
  output: {
1199
1339
  error: {
1200
- code: "not_found";
1340
+ code: "duplicate_symbol";
1201
1341
  details?: readonly Response.error.Detail[] | undefined;
1202
1342
  message: string;
1203
1343
  };
1204
1344
  requestId: string;
1205
1345
  };
1206
1346
  outputFormat: "json";
1207
- status: 404;
1347
+ status: 409;
1208
1348
  input: {
1209
- param: {
1210
- orgId: string;
1349
+ query: {
1350
+ chainId: string | string[];
1211
1351
  };
1212
1352
  } & {
1213
- query?: {
1214
- cursor?: string | string[];
1215
- limit?: string | string[];
1216
- } | undefined;
1353
+ json: {
1354
+ tokens: {
1355
+ address: `0x${string}`;
1356
+ currency: string;
1357
+ decimals: number;
1358
+ logoUri?: string | undefined;
1359
+ name: string;
1360
+ symbol: string;
1361
+ }[];
1362
+ };
1363
+ };
1364
+ } | {
1365
+ output: {
1366
+ error: {
1367
+ code: "version_mismatch";
1368
+ details?: readonly Response.error.Detail[] | undefined;
1369
+ message: string;
1370
+ };
1371
+ requestId: string;
1372
+ };
1373
+ outputFormat: "json";
1374
+ status: 412;
1375
+ input: {
1376
+ query: {
1377
+ chainId: string | string[];
1378
+ };
1379
+ } & {
1380
+ json: {
1381
+ tokens: {
1382
+ address: `0x${string}`;
1383
+ currency: string;
1384
+ decimals: number;
1385
+ logoUri?: string | undefined;
1386
+ name: string;
1387
+ symbol: string;
1388
+ }[];
1389
+ };
1217
1390
  };
1218
1391
  } | {
1219
1392
  output: {
1220
1393
  data: {
1221
- address: string | null;
1222
- createdAt: string;
1223
- email: string | null;
1224
- role: "admin" | "member" | "owner";
1225
- updatedAt: string;
1226
- userId: string;
1394
+ address: `0x${string}`;
1395
+ currency: string;
1396
+ decimals: number;
1397
+ logoUri?: string | undefined;
1398
+ name: string;
1399
+ symbol: string;
1400
+ id: string;
1227
1401
  }[];
1228
- nextCursor: string | null;
1402
+ version: string;
1229
1403
  };
1230
1404
  outputFormat: "json";
1231
- status: 200;
1405
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1232
1406
  input: {
1233
- param: {
1234
- orgId: string;
1407
+ query: {
1408
+ chainId: string | string[];
1235
1409
  };
1236
1410
  } & {
1237
- query?: {
1238
- cursor?: string | string[];
1239
- limit?: string | string[];
1240
- } | undefined;
1411
+ json: {
1412
+ tokens: {
1413
+ address: `0x${string}`;
1414
+ currency: string;
1415
+ decimals: number;
1416
+ logoUri?: string | undefined;
1417
+ name: string;
1418
+ symbol: string;
1419
+ }[];
1420
+ };
1241
1421
  };
1242
1422
  };
1243
1423
  };
1244
1424
  } & {
1245
- "/:orgId/projects": {
1246
- $get: {
1425
+ "/:address": {
1426
+ $patch: {
1247
1427
  output: {
1248
1428
  error: {
1249
1429
  code: "upstream_error";
@@ -1256,18 +1436,25 @@ export declare function create(options: create.Options): import("hono/hono-base"
1256
1436
  status: 502;
1257
1437
  input: {
1258
1438
  param: {
1259
- orgId: string;
1439
+ address: `0x${string}`;
1260
1440
  };
1261
1441
  } & {
1262
- query?: {
1263
- cursor?: string | string[];
1264
- limit?: string | string[];
1265
- } | undefined;
1442
+ query: {
1443
+ chainId: string | string[];
1444
+ };
1445
+ } & {
1446
+ json: {
1447
+ currency?: string | undefined;
1448
+ decimals?: number | undefined;
1449
+ logoUri?: string | undefined;
1450
+ name?: string | undefined;
1451
+ symbol?: string | undefined;
1452
+ };
1266
1453
  };
1267
1454
  } | {
1268
1455
  output: {
1269
1456
  error: {
1270
- code: "not_found";
1457
+ code: "verified_token_not_found";
1271
1458
  details?: readonly Response.error.Detail[] | undefined;
1272
1459
  message: string;
1273
1460
  };
@@ -1277,187 +1464,170 @@ export declare function create(options: create.Options): import("hono/hono-base"
1277
1464
  status: 404;
1278
1465
  input: {
1279
1466
  param: {
1280
- orgId: string;
1467
+ address: `0x${string}`;
1281
1468
  };
1282
1469
  } & {
1283
- query?: {
1284
- cursor?: string | string[];
1285
- limit?: string | string[];
1286
- } | undefined;
1470
+ query: {
1471
+ chainId: string | string[];
1472
+ };
1473
+ } & {
1474
+ json: {
1475
+ currency?: string | undefined;
1476
+ decimals?: number | undefined;
1477
+ logoUri?: string | undefined;
1478
+ name?: string | undefined;
1479
+ symbol?: string | undefined;
1480
+ };
1287
1481
  };
1288
1482
  } | {
1289
1483
  output: {
1290
1484
  data: {
1291
- createdAt: string;
1292
- id: string;
1485
+ address: `0x${string}`;
1486
+ currency: string;
1487
+ decimals: number;
1488
+ logoUri?: string | undefined;
1293
1489
  name: string;
1294
- updatedAt: string;
1295
- }[];
1296
- nextCursor: string | null;
1490
+ symbol: string;
1491
+ id: string;
1492
+ };
1493
+ version: string;
1297
1494
  };
1298
1495
  outputFormat: "json";
1299
- status: 200;
1496
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1300
1497
  input: {
1301
1498
  param: {
1302
- orgId: string;
1499
+ address: `0x${string}`;
1303
1500
  };
1304
1501
  } & {
1305
- query?: {
1306
- cursor?: string | string[];
1307
- limit?: string | string[];
1308
- } | undefined;
1502
+ query: {
1503
+ chainId: string | string[];
1504
+ };
1505
+ } & {
1506
+ json: {
1507
+ currency?: string | undefined;
1508
+ decimals?: number | undefined;
1509
+ logoUri?: string | undefined;
1510
+ name?: string | undefined;
1511
+ symbol?: string | undefined;
1512
+ };
1309
1513
  };
1310
- };
1311
- };
1312
- } & {
1313
- "/:orgId/api-keys": {
1314
- $get: {
1514
+ } | {
1315
1515
  output: {
1316
1516
  error: {
1317
- code: "upstream_error";
1517
+ code: string;
1318
1518
  details?: readonly Response.error.Detail[] | undefined;
1319
1519
  message: string;
1320
1520
  };
1321
1521
  requestId: string;
1322
1522
  };
1323
1523
  outputFormat: "json";
1324
- status: 502;
1524
+ status: 400 | 413 | 415;
1325
1525
  input: {
1326
1526
  param: {
1327
- orgId: string;
1527
+ address: `0x${string}`;
1528
+ };
1529
+ } & {
1530
+ query: {
1531
+ chainId: string | string[];
1532
+ };
1533
+ } & {
1534
+ json: {
1535
+ currency?: string | undefined;
1536
+ decimals?: number | undefined;
1537
+ logoUri?: string | undefined;
1538
+ name?: string | undefined;
1539
+ symbol?: string | undefined;
1328
1540
  };
1329
1541
  };
1330
1542
  } | {
1331
1543
  output: {
1332
1544
  error: {
1333
- code: "not_found";
1545
+ code: "duplicate_address";
1334
1546
  details?: readonly Response.error.Detail[] | undefined;
1335
1547
  message: string;
1336
1548
  };
1337
1549
  requestId: string;
1338
1550
  };
1339
1551
  outputFormat: "json";
1340
- status: 404;
1552
+ status: 409;
1341
1553
  input: {
1342
1554
  param: {
1343
- orgId: string;
1555
+ address: `0x${string}`;
1344
1556
  };
1345
- };
1346
- } | {
1347
- output: {
1348
- data: {
1349
- allowedIps: readonly string[];
1350
- billingActive?: boolean | undefined;
1351
- environment: "production" | "sandbox";
1352
- id: string;
1557
+ } & {
1558
+ query: {
1559
+ chainId: string | string[];
1560
+ };
1561
+ } & {
1562
+ json: {
1563
+ currency?: string | undefined;
1564
+ decimals?: number | undefined;
1565
+ logoUri?: string | undefined;
1353
1566
  name?: string | undefined;
1354
- orgId: string;
1355
- projectId?: string | undefined;
1356
- rateLimits?: {
1357
- [x: string]: {
1358
- limit: number;
1359
- period: "minute" | "second";
1360
- };
1361
- } | undefined;
1362
- scopes: readonly string[];
1363
- createdAt: string;
1364
- createdBy?: string | undefined;
1365
- expiresAt?: string | undefined;
1366
- tokenLast4: string;
1367
- }[];
1368
- };
1369
- outputFormat: "json";
1370
- status: 200;
1371
- input: {
1372
- param: {
1373
- orgId: string;
1567
+ symbol?: string | undefined;
1374
1568
  };
1375
1569
  };
1376
- };
1377
- };
1378
- } & {
1379
- "/:orgId/usage": {
1380
- $get: {
1570
+ } | {
1381
1571
  output: {
1382
1572
  error: {
1383
- code: "upstream_error";
1573
+ code: "duplicate_symbol";
1384
1574
  details?: readonly Response.error.Detail[] | undefined;
1385
1575
  message: string;
1386
1576
  };
1387
1577
  requestId: string;
1388
1578
  };
1389
1579
  outputFormat: "json";
1390
- status: 502;
1580
+ status: 409;
1391
1581
  input: {
1392
1582
  param: {
1393
- orgId: string;
1583
+ address: `0x${string}`;
1394
1584
  };
1395
1585
  } & {
1396
- query?: {
1397
- period?: string | string[];
1398
- } | undefined;
1586
+ query: {
1587
+ chainId: string | string[];
1588
+ };
1589
+ } & {
1590
+ json: {
1591
+ currency?: string | undefined;
1592
+ decimals?: number | undefined;
1593
+ logoUri?: string | undefined;
1594
+ name?: string | undefined;
1595
+ symbol?: string | undefined;
1596
+ };
1399
1597
  };
1400
1598
  } | {
1401
1599
  output: {
1402
1600
  error: {
1403
- code: "not_found";
1601
+ code: "version_mismatch";
1404
1602
  details?: readonly Response.error.Detail[] | undefined;
1405
1603
  message: string;
1406
1604
  };
1407
1605
  requestId: string;
1408
1606
  };
1409
1607
  outputFormat: "json";
1410
- status: 404;
1608
+ status: 412;
1411
1609
  input: {
1412
1610
  param: {
1413
- orgId: string;
1611
+ address: `0x${string}`;
1414
1612
  };
1415
1613
  } & {
1416
- query?: {
1417
- period?: string | string[];
1418
- } | undefined;
1419
- };
1420
- } | {
1421
- output: {
1422
- byError: {
1423
- code: string;
1424
- requests: number;
1425
- }[];
1426
- byRoute: {
1427
- errors: number;
1428
- requests: number;
1429
- averageDurationMs: number;
1430
- route: string;
1431
- }[];
1432
- byStatus: {
1433
- requests: number;
1434
- status: number;
1435
- }[];
1436
- from: string;
1437
- period: "24h" | "30d" | "7d";
1438
- to: string;
1439
- totals: {
1440
- errors: number;
1441
- requests: number;
1442
- averageDurationMs: number;
1614
+ query: {
1615
+ chainId: string | string[];
1443
1616
  };
1444
- };
1445
- outputFormat: "json";
1446
- status: 200;
1447
- input: {
1448
- param: {
1449
- orgId: string;
1617
+ } & {
1618
+ json: {
1619
+ currency?: string | undefined;
1620
+ decimals?: number | undefined;
1621
+ logoUri?: string | undefined;
1622
+ name?: string | undefined;
1623
+ symbol?: string | undefined;
1450
1624
  };
1451
- } & {
1452
- query?: {
1453
- period?: string | string[];
1454
- } | undefined;
1455
1625
  };
1456
1626
  };
1457
1627
  };
1458
1628
  } & {
1459
- "/:orgId/sponsorship": {
1460
- $get: {
1629
+ "/:address": {
1630
+ $delete: {
1461
1631
  output: {
1462
1632
  error: {
1463
1633
  code: "upstream_error";
@@ -1470,13 +1640,17 @@ export declare function create(options: create.Options): import("hono/hono-base"
1470
1640
  status: 502;
1471
1641
  input: {
1472
1642
  param: {
1473
- orgId: string;
1643
+ address: `0x${string}`;
1644
+ };
1645
+ } & {
1646
+ query: {
1647
+ chainId: string | string[];
1474
1648
  };
1475
1649
  };
1476
1650
  } | {
1477
1651
  output: {
1478
1652
  error: {
1479
- code: "not_found";
1653
+ code: "verified_token_not_found";
1480
1654
  details?: readonly Response.error.Detail[] | undefined;
1481
1655
  message: string;
1482
1656
  };
@@ -1486,120 +1660,141 @@ export declare function create(options: create.Options): import("hono/hono-base"
1486
1660
  status: 404;
1487
1661
  input: {
1488
1662
  param: {
1489
- orgId: string;
1663
+ address: `0x${string}`;
1664
+ };
1665
+ } & {
1666
+ query: {
1667
+ chainId: string | string[];
1490
1668
  };
1491
1669
  };
1492
1670
  } | {
1493
1671
  output: {
1494
- production: {
1495
- committedSpend: string;
1496
- currency: "usd";
1497
- from: string;
1498
- period: "month";
1672
+ error: {
1673
+ code: string;
1674
+ details?: readonly Response.error.Detail[] | undefined;
1675
+ message: string;
1499
1676
  };
1500
- sandbox: {
1501
- committedSpend: string;
1502
- currency: "usd";
1503
- from: string;
1504
- period: "month";
1677
+ requestId: string;
1678
+ };
1679
+ outputFormat: "json";
1680
+ status: 400 | 413 | 415;
1681
+ input: {
1682
+ param: {
1683
+ address: `0x${string}`;
1505
1684
  };
1506
- to: string;
1685
+ } & {
1686
+ query: {
1687
+ chainId: string | string[];
1688
+ };
1689
+ };
1690
+ } | {
1691
+ output: {
1692
+ error: {
1693
+ code: "duplicate_address";
1694
+ details?: readonly Response.error.Detail[] | undefined;
1695
+ message: string;
1696
+ };
1697
+ requestId: string;
1507
1698
  };
1508
1699
  outputFormat: "json";
1509
- status: 200;
1700
+ status: 409;
1510
1701
  input: {
1511
1702
  param: {
1512
- orgId: string;
1703
+ address: `0x${string}`;
1704
+ };
1705
+ } & {
1706
+ query: {
1707
+ chainId: string | string[];
1513
1708
  };
1514
1709
  };
1515
- };
1516
- };
1517
- } & {
1518
- "/:orgId/webhooks": {
1519
- $get: {
1710
+ } | {
1520
1711
  output: {
1521
1712
  error: {
1522
- code: "upstream_error";
1713
+ code: "duplicate_symbol";
1523
1714
  details?: readonly Response.error.Detail[] | undefined;
1524
1715
  message: string;
1525
1716
  };
1526
1717
  requestId: string;
1527
1718
  };
1528
1719
  outputFormat: "json";
1529
- status: 502;
1720
+ status: 409;
1530
1721
  input: {
1531
1722
  param: {
1532
- orgId: string;
1723
+ address: `0x${string}`;
1724
+ };
1725
+ } & {
1726
+ query: {
1727
+ chainId: string | string[];
1533
1728
  };
1534
1729
  };
1535
1730
  } | {
1536
1731
  output: {
1537
1732
  error: {
1538
- code: "not_found";
1733
+ code: "version_mismatch";
1539
1734
  details?: readonly Response.error.Detail[] | undefined;
1540
1735
  message: string;
1541
1736
  };
1542
1737
  requestId: string;
1543
1738
  };
1544
1739
  outputFormat: "json";
1545
- status: 404;
1740
+ status: 412;
1546
1741
  input: {
1547
1742
  param: {
1548
- orgId: string;
1743
+ address: `0x${string}`;
1744
+ };
1745
+ } & {
1746
+ query: {
1747
+ chainId: string | string[];
1549
1748
  };
1550
1749
  };
1551
1750
  } | {
1552
1751
  output: {
1553
- failureCount: number;
1554
- failures: {
1555
- attempt: number;
1556
- createdAt: string;
1557
- error: string | null;
1558
- id: string;
1559
- responseStatus: number | null;
1560
- subscriptionId: string;
1561
- }[];
1562
- failuresTruncated: boolean;
1563
- from: string;
1564
- subscriptions: {
1565
- chainId: number;
1566
- createdAt: string;
1567
- destination: string;
1568
- eventType: string;
1569
- failureCount: number;
1570
- id: string;
1571
- lastDeliveryAt: string | null;
1572
- status: "active" | "disabled" | "paused";
1573
- }[];
1574
- to: string;
1752
+ version: string;
1575
1753
  };
1576
1754
  outputFormat: "json";
1577
- status: 200;
1755
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1578
1756
  input: {
1579
1757
  param: {
1580
- orgId: string;
1758
+ address: `0x${string}`;
1759
+ };
1760
+ } & {
1761
+ query: {
1762
+ chainId: string | string[];
1581
1763
  };
1582
1764
  };
1583
1765
  };
1584
1766
  };
1585
- }, "/organizations"> | import("hono/types").MergeSchemaPath<{
1586
- "/": {
1767
+ } & {
1768
+ "/:address/logo": {
1587
1769
  $get: {
1588
- output: {
1589
- data: {
1770
+ output: ArrayBuffer;
1771
+ outputFormat: "body";
1772
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1773
+ input: {
1774
+ param: {
1590
1775
  address: `0x${string}`;
1591
- currency: string;
1592
- decimals: number;
1593
- logoUri?: string | undefined;
1594
- name: string;
1595
- symbol: string;
1596
- id: string;
1597
- }[];
1598
- version: string | null;
1776
+ };
1777
+ } & {
1778
+ query: {
1779
+ chainId: string | string[];
1780
+ };
1781
+ };
1782
+ } | {
1783
+ output: {
1784
+ error: {
1785
+ code: "logo_not_found";
1786
+ details?: readonly Response.error.Detail[] | undefined;
1787
+ message: string;
1788
+ };
1789
+ requestId: string;
1599
1790
  };
1600
1791
  outputFormat: "json";
1601
- status: import("hono/utils/http-status").ContentfulStatusCode;
1792
+ status: 404;
1602
1793
  input: {
1794
+ param: {
1795
+ address: `0x${string}`;
1796
+ };
1797
+ } & {
1603
1798
  query: {
1604
1799
  chainId: string | string[];
1605
1800
  };
@@ -1607,34 +1802,31 @@ export declare function create(options: create.Options): import("hono/hono-base"
1607
1802
  };
1608
1803
  };
1609
1804
  } & {
1610
- "/": {
1611
- $post: {
1805
+ "/:address/logo": {
1806
+ $put: {
1612
1807
  output: {
1613
1808
  error: {
1614
- code: "upstream_error";
1809
+ code: "body_invalid";
1615
1810
  details?: readonly Response.error.Detail[] | undefined;
1616
1811
  message: string;
1617
1812
  };
1618
1813
  requestId: string;
1619
1814
  };
1620
1815
  outputFormat: "json";
1621
- status: 502;
1816
+ status: 400;
1622
1817
  input: {
1623
- json: {
1818
+ param: {
1624
1819
  address: `0x${string}`;
1625
- currency: string;
1626
- decimals: number;
1627
- logoUri?: string | undefined;
1628
- name: string;
1629
- symbol: string;
1630
- chainId: unknown;
1631
- logo?: string | undefined;
1820
+ };
1821
+ } & {
1822
+ query: {
1823
+ chainId: string | string[];
1632
1824
  };
1633
1825
  };
1634
1826
  } | {
1635
1827
  output: {
1636
1828
  error: {
1637
- code: "verified_token_not_found";
1829
+ code: "assets_not_enabled";
1638
1830
  details?: readonly Response.error.Detail[] | undefined;
1639
1831
  message: string;
1640
1832
  };
@@ -1643,41 +1835,75 @@ export declare function create(options: create.Options): import("hono/hono-base"
1643
1835
  outputFormat: "json";
1644
1836
  status: 404;
1645
1837
  input: {
1646
- json: {
1838
+ param: {
1647
1839
  address: `0x${string}`;
1648
- currency: string;
1649
- decimals: number;
1650
- logoUri?: string | undefined;
1651
- name: string;
1652
- symbol: string;
1653
- chainId: unknown;
1654
- logo?: string | undefined;
1840
+ };
1841
+ } & {
1842
+ query: {
1843
+ chainId: string | string[];
1655
1844
  };
1656
1845
  };
1657
1846
  } | {
1658
1847
  output: {
1659
1848
  error: {
1660
- code: "assets_not_enabled";
1849
+ code: "unsupported_media_type";
1661
1850
  details?: readonly Response.error.Detail[] | undefined;
1662
1851
  message: string;
1663
1852
  };
1664
1853
  requestId: string;
1665
1854
  };
1666
1855
  outputFormat: "json";
1667
- status: 404;
1856
+ status: 415;
1668
1857
  input: {
1669
- json: {
1858
+ param: {
1670
1859
  address: `0x${string}`;
1671
- currency: string;
1672
- decimals: number;
1673
- logoUri?: string | undefined;
1674
- name: string;
1675
- symbol: string;
1676
- chainId: unknown;
1677
- logo?: string | undefined;
1860
+ };
1861
+ } & {
1862
+ query: {
1863
+ chainId: string | string[];
1864
+ };
1865
+ };
1866
+ } | {
1867
+ output: {
1868
+ error: {
1869
+ code: "payload_too_large";
1870
+ details?: readonly Response.error.Detail[] | undefined;
1871
+ message: string;
1872
+ };
1873
+ requestId: string;
1874
+ };
1875
+ outputFormat: "json";
1876
+ status: 413;
1877
+ input: {
1878
+ param: {
1879
+ address: `0x${string}`;
1880
+ };
1881
+ } & {
1882
+ query: {
1883
+ chainId: string | string[];
1678
1884
  };
1679
1885
  };
1680
1886
  } | {
1887
+ output: {
1888
+ key: string;
1889
+ path: string;
1890
+ };
1891
+ outputFormat: "json";
1892
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1893
+ input: {
1894
+ param: {
1895
+ address: `0x${string}`;
1896
+ };
1897
+ } & {
1898
+ query: {
1899
+ chainId: string | string[];
1900
+ };
1901
+ };
1902
+ };
1903
+ };
1904
+ } & {
1905
+ "/requests": {
1906
+ $get: {
1681
1907
  output: {
1682
1908
  data: {
1683
1909
  address: `0x${string}`;
@@ -1686,74 +1912,68 @@ export declare function create(options: create.Options): import("hono/hono-base"
1686
1912
  logoUri?: string | undefined;
1687
1913
  name: string;
1688
1914
  symbol: string;
1915
+ chainId: number;
1916
+ createdAt: string;
1689
1917
  id: string;
1690
- };
1691
- version: string;
1918
+ logo?: string | undefined;
1919
+ note: string | null;
1920
+ orgId: string;
1921
+ requestedBy: string;
1922
+ reviewNote: string | null;
1923
+ reviewedAt: string | null;
1924
+ status: "approved" | "denied" | "pending";
1925
+ updatedAt: string;
1926
+ orgName: string | null;
1927
+ reviewedBy: string | null;
1928
+ }[];
1692
1929
  };
1693
1930
  outputFormat: "json";
1694
1931
  status: import("hono/utils/http-status").ContentfulStatusCode;
1695
1932
  input: {
1696
- json: {
1697
- address: `0x${string}`;
1698
- currency: string;
1699
- decimals: number;
1700
- logoUri?: string | undefined;
1701
- name: string;
1702
- symbol: string;
1703
- chainId: unknown;
1704
- logo?: string | undefined;
1705
- };
1933
+ query?: {
1934
+ status?: string | string[];
1935
+ } | undefined;
1706
1936
  };
1707
- } | {
1937
+ };
1938
+ };
1939
+ } & {
1940
+ "/requests/:requestId/approve": {
1941
+ $post: {
1708
1942
  output: {
1709
1943
  error: {
1710
- code: string;
1944
+ code: "upstream_error";
1711
1945
  details?: readonly Response.error.Detail[] | undefined;
1712
1946
  message: string;
1713
1947
  };
1714
1948
  requestId: string;
1715
1949
  };
1716
1950
  outputFormat: "json";
1717
- status: 400 | 413 | 415;
1951
+ status: 502;
1718
1952
  input: {
1719
- json: {
1720
- address: `0x${string}`;
1721
- currency: string;
1722
- decimals: number;
1723
- logoUri?: string | undefined;
1724
- name: string;
1725
- symbol: string;
1726
- chainId: unknown;
1727
- logo?: string | undefined;
1953
+ param: {
1954
+ requestId: string;
1728
1955
  };
1729
1956
  };
1730
1957
  } | {
1731
1958
  output: {
1732
1959
  error: {
1733
- code: "duplicate_address";
1960
+ code: "verified_token_not_found";
1734
1961
  details?: readonly Response.error.Detail[] | undefined;
1735
1962
  message: string;
1736
1963
  };
1737
1964
  requestId: string;
1738
1965
  };
1739
1966
  outputFormat: "json";
1740
- status: 409;
1967
+ status: 404;
1741
1968
  input: {
1742
- json: {
1743
- address: `0x${string}`;
1744
- currency: string;
1745
- decimals: number;
1746
- logoUri?: string | undefined;
1747
- name: string;
1748
- symbol: string;
1749
- chainId: unknown;
1750
- logo?: string | undefined;
1969
+ param: {
1970
+ requestId: string;
1751
1971
  };
1752
1972
  };
1753
1973
  } | {
1754
1974
  output: {
1755
1975
  error: {
1756
- code: "duplicate_symbol";
1976
+ code: "request_not_pending";
1757
1977
  details?: readonly Response.error.Detail[] | undefined;
1758
1978
  message: string;
1759
1979
  };
@@ -1762,75 +1982,30 @@ export declare function create(options: create.Options): import("hono/hono-base"
1762
1982
  outputFormat: "json";
1763
1983
  status: 409;
1764
1984
  input: {
1765
- json: {
1766
- address: `0x${string}`;
1767
- currency: string;
1768
- decimals: number;
1769
- logoUri?: string | undefined;
1770
- name: string;
1771
- symbol: string;
1772
- chainId: unknown;
1773
- logo?: string | undefined;
1985
+ param: {
1986
+ requestId: string;
1774
1987
  };
1775
1988
  };
1776
1989
  } | {
1777
1990
  output: {
1778
1991
  error: {
1779
- code: "version_mismatch";
1780
- details?: readonly Response.error.Detail[] | undefined;
1781
- message: string;
1782
- };
1783
- requestId: string;
1784
- };
1785
- outputFormat: "json";
1786
- status: 412;
1787
- input: {
1788
- json: {
1789
- address: `0x${string}`;
1790
- currency: string;
1791
- decimals: number;
1792
- logoUri?: string | undefined;
1793
- name: string;
1794
- symbol: string;
1795
- chainId: unknown;
1796
- logo?: string | undefined;
1797
- };
1798
- };
1799
- };
1800
- };
1801
- } & {
1802
- "/": {
1803
- $put: {
1804
- output: {
1805
- error: {
1806
- code: "upstream_error";
1992
+ code: "verified_token_request_not_found";
1807
1993
  details?: readonly Response.error.Detail[] | undefined;
1808
1994
  message: string;
1809
1995
  };
1810
1996
  requestId: string;
1811
1997
  };
1812
1998
  outputFormat: "json";
1813
- status: 502;
1999
+ status: 404;
1814
2000
  input: {
1815
- query: {
1816
- chainId: string | string[];
1817
- };
1818
- } & {
1819
- json: {
1820
- tokens: {
1821
- address: `0x${string}`;
1822
- currency: string;
1823
- decimals: number;
1824
- logoUri?: string | undefined;
1825
- name: string;
1826
- symbol: string;
1827
- }[];
2001
+ param: {
2002
+ requestId: string;
1828
2003
  };
1829
2004
  };
1830
2005
  } | {
1831
2006
  output: {
1832
2007
  error: {
1833
- code: "verified_token_not_found";
2008
+ code: "assets_not_enabled";
1834
2009
  details?: readonly Response.error.Detail[] | undefined;
1835
2010
  message: string;
1836
2011
  };
@@ -1839,19 +2014,8 @@ export declare function create(options: create.Options): import("hono/hono-base"
1839
2014
  outputFormat: "json";
1840
2015
  status: 404;
1841
2016
  input: {
1842
- query: {
1843
- chainId: string | string[];
1844
- };
1845
- } & {
1846
- json: {
1847
- tokens: {
1848
- address: `0x${string}`;
1849
- currency: string;
1850
- decimals: number;
1851
- logoUri?: string | undefined;
1852
- name: string;
1853
- symbol: string;
1854
- }[];
2017
+ param: {
2018
+ requestId: string;
1855
2019
  };
1856
2020
  };
1857
2021
  } | {
@@ -1866,19 +2030,8 @@ export declare function create(options: create.Options): import("hono/hono-base"
1866
2030
  outputFormat: "json";
1867
2031
  status: 400 | 413 | 415;
1868
2032
  input: {
1869
- query: {
1870
- chainId: string | string[];
1871
- };
1872
- } & {
1873
- json: {
1874
- tokens: {
1875
- address: `0x${string}`;
1876
- currency: string;
1877
- decimals: number;
1878
- logoUri?: string | undefined;
1879
- name: string;
1880
- symbol: string;
1881
- }[];
2033
+ param: {
2034
+ requestId: string;
1882
2035
  };
1883
2036
  };
1884
2037
  } | {
@@ -1893,19 +2046,8 @@ export declare function create(options: create.Options): import("hono/hono-base"
1893
2046
  outputFormat: "json";
1894
2047
  status: 409;
1895
2048
  input: {
1896
- query: {
1897
- chainId: string | string[];
1898
- };
1899
- } & {
1900
- json: {
1901
- tokens: {
1902
- address: `0x${string}`;
1903
- currency: string;
1904
- decimals: number;
1905
- logoUri?: string | undefined;
1906
- name: string;
1907
- symbol: string;
1908
- }[];
2049
+ param: {
2050
+ requestId: string;
1909
2051
  };
1910
2052
  };
1911
2053
  } | {
@@ -1920,19 +2062,8 @@ export declare function create(options: create.Options): import("hono/hono-base"
1920
2062
  outputFormat: "json";
1921
2063
  status: 409;
1922
2064
  input: {
1923
- query: {
1924
- chainId: string | string[];
1925
- };
1926
- } & {
1927
- json: {
1928
- tokens: {
1929
- address: `0x${string}`;
1930
- currency: string;
1931
- decimals: number;
1932
- logoUri?: string | undefined;
1933
- name: string;
1934
- symbol: string;
1935
- }[];
2065
+ param: {
2066
+ requestId: string;
1936
2067
  };
1937
2068
  };
1938
2069
  } | {
@@ -1947,19 +2078,8 @@ export declare function create(options: create.Options): import("hono/hono-base"
1947
2078
  outputFormat: "json";
1948
2079
  status: 412;
1949
2080
  input: {
1950
- query: {
1951
- chainId: string | string[];
1952
- };
1953
- } & {
1954
- json: {
1955
- tokens: {
1956
- address: `0x${string}`;
1957
- currency: string;
1958
- decimals: number;
1959
- logoUri?: string | undefined;
1960
- name: string;
1961
- symbol: string;
1962
- }[];
2081
+ param: {
2082
+ requestId: string;
1963
2083
  };
1964
2084
  };
1965
2085
  } | {
@@ -1971,33 +2091,33 @@ export declare function create(options: create.Options): import("hono/hono-base"
1971
2091
  logoUri?: string | undefined;
1972
2092
  name: string;
1973
2093
  symbol: string;
2094
+ chainId: number;
2095
+ createdAt: string;
1974
2096
  id: string;
1975
- }[];
1976
- version: string;
2097
+ logo?: string | undefined;
2098
+ note: string | null;
2099
+ orgId: string;
2100
+ requestedBy: string;
2101
+ reviewNote: string | null;
2102
+ reviewedAt: string | null;
2103
+ status: "approved" | "denied" | "pending";
2104
+ updatedAt: string;
2105
+ orgName: string | null;
2106
+ reviewedBy: string | null;
2107
+ };
1977
2108
  };
1978
2109
  outputFormat: "json";
1979
2110
  status: import("hono/utils/http-status").ContentfulStatusCode;
1980
2111
  input: {
1981
- query: {
1982
- chainId: string | string[];
1983
- };
1984
- } & {
1985
- json: {
1986
- tokens: {
1987
- address: `0x${string}`;
1988
- currency: string;
1989
- decimals: number;
1990
- logoUri?: string | undefined;
1991
- name: string;
1992
- symbol: string;
1993
- }[];
2112
+ param: {
2113
+ requestId: string;
1994
2114
  };
1995
2115
  };
1996
2116
  };
1997
2117
  };
1998
2118
  } & {
1999
- "/:address": {
2000
- $patch: {
2119
+ "/requests/:requestId/deny": {
2120
+ $post: {
2001
2121
  output: {
2002
2122
  error: {
2003
2123
  code: "upstream_error";
@@ -2010,79 +2130,71 @@ export declare function create(options: create.Options): import("hono/hono-base"
2010
2130
  status: 502;
2011
2131
  input: {
2012
2132
  param: {
2013
- address: `0x${string}`;
2014
- };
2015
- } & {
2016
- query: {
2017
- chainId: string | string[];
2133
+ requestId: string;
2134
+ };
2135
+ } & {
2136
+ json: {
2137
+ reviewNote?: string | undefined;
2138
+ };
2139
+ };
2140
+ } | {
2141
+ output: {
2142
+ error: {
2143
+ code: "verified_token_not_found";
2144
+ details?: readonly Response.error.Detail[] | undefined;
2145
+ message: string;
2146
+ };
2147
+ requestId: string;
2148
+ };
2149
+ outputFormat: "json";
2150
+ status: 404;
2151
+ input: {
2152
+ param: {
2153
+ requestId: string;
2018
2154
  };
2019
2155
  } & {
2020
2156
  json: {
2021
- currency?: string | undefined;
2022
- decimals?: number | undefined;
2023
- logoUri?: string | undefined;
2024
- name?: string | undefined;
2025
- symbol?: string | undefined;
2157
+ reviewNote?: string | undefined;
2026
2158
  };
2027
2159
  };
2028
2160
  } | {
2029
2161
  output: {
2030
2162
  error: {
2031
- code: "verified_token_not_found";
2163
+ code: "request_not_pending";
2032
2164
  details?: readonly Response.error.Detail[] | undefined;
2033
2165
  message: string;
2034
2166
  };
2035
2167
  requestId: string;
2036
2168
  };
2037
2169
  outputFormat: "json";
2038
- status: 404;
2170
+ status: 409;
2039
2171
  input: {
2040
2172
  param: {
2041
- address: `0x${string}`;
2042
- };
2043
- } & {
2044
- query: {
2045
- chainId: string | string[];
2173
+ requestId: string;
2046
2174
  };
2047
2175
  } & {
2048
2176
  json: {
2049
- currency?: string | undefined;
2050
- decimals?: number | undefined;
2051
- logoUri?: string | undefined;
2052
- name?: string | undefined;
2053
- symbol?: string | undefined;
2177
+ reviewNote?: string | undefined;
2054
2178
  };
2055
2179
  };
2056
2180
  } | {
2057
2181
  output: {
2058
- data: {
2059
- address: `0x${string}`;
2060
- currency: string;
2061
- decimals: number;
2062
- logoUri?: string | undefined;
2063
- name: string;
2064
- symbol: string;
2065
- id: string;
2182
+ error: {
2183
+ code: "verified_token_request_not_found";
2184
+ details?: readonly Response.error.Detail[] | undefined;
2185
+ message: string;
2066
2186
  };
2067
- version: string;
2187
+ requestId: string;
2068
2188
  };
2069
2189
  outputFormat: "json";
2070
- status: import("hono/utils/http-status").ContentfulStatusCode;
2190
+ status: 404;
2071
2191
  input: {
2072
2192
  param: {
2073
- address: `0x${string}`;
2074
- };
2075
- } & {
2076
- query: {
2077
- chainId: string | string[];
2193
+ requestId: string;
2078
2194
  };
2079
2195
  } & {
2080
2196
  json: {
2081
- currency?: string | undefined;
2082
- decimals?: number | undefined;
2083
- logoUri?: string | undefined;
2084
- name?: string | undefined;
2085
- symbol?: string | undefined;
2197
+ reviewNote?: string | undefined;
2086
2198
  };
2087
2199
  };
2088
2200
  } | {
@@ -2098,19 +2210,11 @@ export declare function create(options: create.Options): import("hono/hono-base"
2098
2210
  status: 400 | 413 | 415;
2099
2211
  input: {
2100
2212
  param: {
2101
- address: `0x${string}`;
2102
- };
2103
- } & {
2104
- query: {
2105
- chainId: string | string[];
2213
+ requestId: string;
2106
2214
  };
2107
2215
  } & {
2108
2216
  json: {
2109
- currency?: string | undefined;
2110
- decimals?: number | undefined;
2111
- logoUri?: string | undefined;
2112
- name?: string | undefined;
2113
- symbol?: string | undefined;
2217
+ reviewNote?: string | undefined;
2114
2218
  };
2115
2219
  };
2116
2220
  } | {
@@ -2126,19 +2230,11 @@ export declare function create(options: create.Options): import("hono/hono-base"
2126
2230
  status: 409;
2127
2231
  input: {
2128
2232
  param: {
2129
- address: `0x${string}`;
2130
- };
2131
- } & {
2132
- query: {
2133
- chainId: string | string[];
2233
+ requestId: string;
2134
2234
  };
2135
2235
  } & {
2136
2236
  json: {
2137
- currency?: string | undefined;
2138
- decimals?: number | undefined;
2139
- logoUri?: string | undefined;
2140
- name?: string | undefined;
2141
- symbol?: string | undefined;
2237
+ reviewNote?: string | undefined;
2142
2238
  };
2143
2239
  };
2144
2240
  } | {
@@ -2154,19 +2250,11 @@ export declare function create(options: create.Options): import("hono/hono-base"
2154
2250
  status: 409;
2155
2251
  input: {
2156
2252
  param: {
2157
- address: `0x${string}`;
2158
- };
2159
- } & {
2160
- query: {
2161
- chainId: string | string[];
2253
+ requestId: string;
2162
2254
  };
2163
2255
  } & {
2164
2256
  json: {
2165
- currency?: string | undefined;
2166
- decimals?: number | undefined;
2167
- logoUri?: string | undefined;
2168
- name?: string | undefined;
2169
- symbol?: string | undefined;
2257
+ reviewNote?: string | undefined;
2170
2258
  };
2171
2259
  };
2172
2260
  } | {
@@ -2182,26 +2270,53 @@ export declare function create(options: create.Options): import("hono/hono-base"
2182
2270
  status: 412;
2183
2271
  input: {
2184
2272
  param: {
2185
- address: `0x${string}`;
2273
+ requestId: string;
2186
2274
  };
2187
2275
  } & {
2188
- query: {
2189
- chainId: string | string[];
2276
+ json: {
2277
+ reviewNote?: string | undefined;
2278
+ };
2279
+ };
2280
+ } | {
2281
+ output: {
2282
+ data: {
2283
+ address: `0x${string}`;
2284
+ currency: string;
2285
+ decimals: number;
2286
+ logoUri?: string | undefined;
2287
+ name: string;
2288
+ symbol: string;
2289
+ chainId: number;
2290
+ createdAt: string;
2291
+ id: string;
2292
+ logo?: string | undefined;
2293
+ note: string | null;
2294
+ orgId: string;
2295
+ requestedBy: string;
2296
+ reviewNote: string | null;
2297
+ reviewedAt: string | null;
2298
+ status: "approved" | "denied" | "pending";
2299
+ updatedAt: string;
2300
+ orgName: string | null;
2301
+ reviewedBy: string | null;
2302
+ };
2303
+ };
2304
+ outputFormat: "json";
2305
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2306
+ input: {
2307
+ param: {
2308
+ requestId: string;
2190
2309
  };
2191
2310
  } & {
2192
2311
  json: {
2193
- currency?: string | undefined;
2194
- decimals?: number | undefined;
2195
- logoUri?: string | undefined;
2196
- name?: string | undefined;
2197
- symbol?: string | undefined;
2312
+ reviewNote?: string | undefined;
2198
2313
  };
2199
2314
  };
2200
2315
  };
2201
2316
  };
2202
- } & {
2203
- "/:address": {
2204
- $delete: {
2317
+ }, "/verified-tokens"> | import("hono/types").MergeSchemaPath<{
2318
+ "/": {
2319
+ $get: {
2205
2320
  output: {
2206
2321
  error: {
2207
2322
  code: "upstream_error";
@@ -2213,306 +2328,298 @@ export declare function create(options: create.Options): import("hono/hono-base"
2213
2328
  outputFormat: "json";
2214
2329
  status: 502;
2215
2330
  input: {
2216
- param: {
2217
- address: `0x${string}`;
2218
- };
2219
- } & {
2220
- query: {
2221
- chainId: string | string[];
2222
- };
2331
+ query?: {
2332
+ cursor?: string | string[];
2333
+ limit?: string | string[];
2334
+ query?: string | string[];
2335
+ } | undefined;
2223
2336
  };
2224
2337
  } | {
2338
+ output: {
2339
+ data: {
2340
+ createdAt: string;
2341
+ createdBy: string | null;
2342
+ id: string;
2343
+ name: string;
2344
+ updatedAt: string;
2345
+ userId: string | null;
2346
+ memberCount: number;
2347
+ projectCount: number;
2348
+ }[];
2349
+ nextCursor: string | null;
2350
+ };
2351
+ outputFormat: "json";
2352
+ status: 200;
2353
+ input: {
2354
+ query?: {
2355
+ cursor?: string | string[];
2356
+ limit?: string | string[];
2357
+ query?: string | string[];
2358
+ } | undefined;
2359
+ };
2360
+ };
2361
+ };
2362
+ } & {
2363
+ "/:orgId": {
2364
+ $get: {
2225
2365
  output: {
2226
2366
  error: {
2227
- code: "verified_token_not_found";
2367
+ code: "upstream_error";
2228
2368
  details?: readonly Response.error.Detail[] | undefined;
2229
2369
  message: string;
2230
2370
  };
2231
2371
  requestId: string;
2232
2372
  };
2233
2373
  outputFormat: "json";
2234
- status: 404;
2374
+ status: 502;
2235
2375
  input: {
2236
2376
  param: {
2237
- address: `0x${string}`;
2238
- };
2239
- } & {
2240
- query: {
2241
- chainId: string | string[];
2377
+ orgId: string;
2242
2378
  };
2243
2379
  };
2244
2380
  } | {
2245
2381
  output: {
2246
2382
  error: {
2247
- code: string;
2383
+ code: "not_found";
2248
2384
  details?: readonly Response.error.Detail[] | undefined;
2249
2385
  message: string;
2250
2386
  };
2251
2387
  requestId: string;
2252
2388
  };
2253
2389
  outputFormat: "json";
2254
- status: 400 | 413 | 415;
2390
+ status: 404;
2255
2391
  input: {
2256
2392
  param: {
2257
- address: `0x${string}`;
2258
- };
2259
- } & {
2260
- query: {
2261
- chainId: string | string[];
2393
+ orgId: string;
2262
2394
  };
2263
2395
  };
2264
2396
  } | {
2265
2397
  output: {
2266
- error: {
2267
- code: "duplicate_address";
2268
- details?: readonly Response.error.Detail[] | undefined;
2269
- message: string;
2398
+ createdAt: string;
2399
+ createdBy: string | null;
2400
+ id: string;
2401
+ name: string;
2402
+ updatedAt: string;
2403
+ userId: string | null;
2404
+ memberCount: number;
2405
+ projectCount: number;
2406
+ billing: {
2407
+ enabledSources: ("stripe" | "tempo")[];
2408
+ production: {
2409
+ settings: {
2410
+ currency: "usd";
2411
+ period: "month";
2412
+ spendLimit: string | null;
2413
+ txFeeLimit: string | null;
2414
+ updatedAt: string;
2415
+ } | null;
2416
+ source: {
2417
+ status: "active" | "canceled" | "none" | "past_due";
2418
+ stripeCustomerId: string;
2419
+ updatedAt: string;
2420
+ } | null;
2421
+ };
2422
+ sandbox: {
2423
+ settings: {
2424
+ currency: "usd";
2425
+ period: "month";
2426
+ spendLimit: string | null;
2427
+ txFeeLimit: string | null;
2428
+ updatedAt: string;
2429
+ } | null;
2430
+ source: {
2431
+ status: "active" | "canceled" | "none" | "past_due";
2432
+ stripeCustomerId: string;
2433
+ updatedAt: string;
2434
+ } | null;
2435
+ };
2436
+ };
2437
+ sponsorshipSubsidy: {
2438
+ durationDays: 90 | null;
2439
+ projectSpendLimit: string | null;
2270
2440
  };
2271
- requestId: string;
2272
2441
  };
2273
2442
  outputFormat: "json";
2274
- status: 409;
2443
+ status: 200;
2275
2444
  input: {
2276
2445
  param: {
2277
- address: `0x${string}`;
2278
- };
2279
- } & {
2280
- query: {
2281
- chainId: string | string[];
2446
+ orgId: string;
2282
2447
  };
2283
2448
  };
2284
- } | {
2449
+ };
2450
+ };
2451
+ } & {
2452
+ "/:orgId/sponsorship": {
2453
+ $put: {
2285
2454
  output: {
2286
2455
  error: {
2287
- code: "duplicate_symbol";
2456
+ code: "upstream_error";
2288
2457
  details?: readonly Response.error.Detail[] | undefined;
2289
2458
  message: string;
2290
2459
  };
2291
2460
  requestId: string;
2292
2461
  };
2293
2462
  outputFormat: "json";
2294
- status: 409;
2463
+ status: 502;
2295
2464
  input: {
2296
2465
  param: {
2297
- address: `0x${string}`;
2466
+ orgId: string;
2298
2467
  };
2299
2468
  } & {
2300
- query: {
2301
- chainId: string | string[];
2469
+ json: {
2470
+ enabled: true;
2471
+ projectSpendLimit?: string | undefined;
2472
+ } | {
2473
+ enabled: false;
2302
2474
  };
2303
2475
  };
2304
2476
  } | {
2305
2477
  output: {
2306
2478
  error: {
2307
- code: "version_mismatch";
2479
+ code: "not_found";
2308
2480
  details?: readonly Response.error.Detail[] | undefined;
2309
2481
  message: string;
2310
2482
  };
2311
2483
  requestId: string;
2312
2484
  };
2313
2485
  outputFormat: "json";
2314
- status: 412;
2486
+ status: 404;
2315
2487
  input: {
2316
2488
  param: {
2317
- address: `0x${string}`;
2489
+ orgId: string;
2318
2490
  };
2319
2491
  } & {
2320
- query: {
2321
- chainId: string | string[];
2492
+ json: {
2493
+ enabled: true;
2494
+ projectSpendLimit?: string | undefined;
2495
+ } | {
2496
+ enabled: false;
2322
2497
  };
2323
2498
  };
2324
2499
  } | {
2325
2500
  output: {
2326
- version: string;
2501
+ durationDays: 90 | null;
2502
+ projectSpendLimit: string | null;
2327
2503
  };
2328
2504
  outputFormat: "json";
2329
- status: import("hono/utils/http-status").ContentfulStatusCode;
2505
+ status: 200;
2330
2506
  input: {
2331
2507
  param: {
2332
- address: `0x${string}`;
2508
+ orgId: string;
2333
2509
  };
2334
2510
  } & {
2335
- query: {
2336
- chainId: string | string[];
2511
+ json: {
2512
+ enabled: true;
2513
+ projectSpendLimit?: string | undefined;
2514
+ } | {
2515
+ enabled: false;
2337
2516
  };
2338
2517
  };
2339
2518
  };
2340
2519
  };
2341
2520
  } & {
2342
- "/:address/logo": {
2343
- $get: {
2344
- output: ArrayBuffer;
2345
- outputFormat: "body";
2346
- status: import("hono/utils/http-status").ContentfulStatusCode;
2347
- input: {
2348
- param: {
2349
- address: `0x${string}`;
2350
- };
2351
- } & {
2352
- query: {
2353
- chainId: string | string[];
2354
- };
2355
- };
2356
- } | {
2521
+ "/:orgId/billing-sources/:source": {
2522
+ $put: {
2357
2523
  output: {
2358
2524
  error: {
2359
- code: "logo_not_found";
2525
+ code: "upstream_error";
2360
2526
  details?: readonly Response.error.Detail[] | undefined;
2361
2527
  message: string;
2362
2528
  };
2363
2529
  requestId: string;
2364
2530
  };
2365
2531
  outputFormat: "json";
2366
- status: 404;
2532
+ status: 502;
2367
2533
  input: {
2368
2534
  param: {
2369
- address: `0x${string}`;
2370
- };
2371
- } & {
2372
- query: {
2373
- chainId: string | string[];
2535
+ orgId: string;
2536
+ source: "stripe" | "tempo";
2374
2537
  };
2375
2538
  };
2376
- };
2377
- };
2378
- } & {
2379
- "/:address/logo": {
2380
- $put: {
2539
+ } | {
2381
2540
  output: {
2382
2541
  error: {
2383
- code: "body_invalid";
2542
+ code: "not_found";
2384
2543
  details?: readonly Response.error.Detail[] | undefined;
2385
2544
  message: string;
2386
2545
  };
2387
2546
  requestId: string;
2388
2547
  };
2389
2548
  outputFormat: "json";
2390
- status: 400;
2549
+ status: 404;
2391
2550
  input: {
2392
2551
  param: {
2393
- address: `0x${string}`;
2394
- };
2395
- } & {
2396
- query: {
2397
- chainId: string | string[];
2552
+ orgId: string;
2553
+ source: "stripe" | "tempo";
2398
2554
  };
2399
2555
  };
2400
2556
  } | {
2401
2557
  output: {
2402
- error: {
2403
- code: "assets_not_enabled";
2404
- details?: readonly Response.error.Detail[] | undefined;
2405
- message: string;
2406
- };
2407
- requestId: string;
2558
+ data: ("stripe" | "tempo")[];
2408
2559
  };
2409
2560
  outputFormat: "json";
2410
- status: 404;
2561
+ status: 200;
2411
2562
  input: {
2412
2563
  param: {
2413
- address: `0x${string}`;
2414
- };
2415
- } & {
2416
- query: {
2417
- chainId: string | string[];
2564
+ orgId: string;
2565
+ source: "stripe" | "tempo";
2418
2566
  };
2419
2567
  };
2420
- } | {
2568
+ };
2569
+ };
2570
+ } & {
2571
+ "/:orgId/billing-sources/:source": {
2572
+ $delete: {
2421
2573
  output: {
2422
2574
  error: {
2423
- code: "unsupported_media_type";
2575
+ code: "upstream_error";
2424
2576
  details?: readonly Response.error.Detail[] | undefined;
2425
2577
  message: string;
2426
2578
  };
2427
2579
  requestId: string;
2428
2580
  };
2429
2581
  outputFormat: "json";
2430
- status: 415;
2582
+ status: 502;
2431
2583
  input: {
2432
2584
  param: {
2433
- address: `0x${string}`;
2434
- };
2435
- } & {
2436
- query: {
2437
- chainId: string | string[];
2585
+ orgId: string;
2586
+ source: "stripe" | "tempo";
2438
2587
  };
2439
2588
  };
2440
2589
  } | {
2441
2590
  output: {
2442
2591
  error: {
2443
- code: "payload_too_large";
2592
+ code: "not_found";
2444
2593
  details?: readonly Response.error.Detail[] | undefined;
2445
2594
  message: string;
2446
2595
  };
2447
2596
  requestId: string;
2448
2597
  };
2449
2598
  outputFormat: "json";
2450
- status: 413;
2599
+ status: 404;
2451
2600
  input: {
2452
2601
  param: {
2453
- address: `0x${string}`;
2454
- };
2455
- } & {
2456
- query: {
2457
- chainId: string | string[];
2602
+ orgId: string;
2603
+ source: "stripe" | "tempo";
2458
2604
  };
2459
2605
  };
2460
2606
  } | {
2461
2607
  output: {
2462
- key: string;
2463
- path: string;
2608
+ data: ("stripe" | "tempo")[];
2464
2609
  };
2465
2610
  outputFormat: "json";
2466
- status: import("hono/utils/http-status").ContentfulStatusCode;
2611
+ status: 200;
2467
2612
  input: {
2468
2613
  param: {
2469
- address: `0x${string}`;
2470
- };
2471
- } & {
2472
- query: {
2473
- chainId: string | string[];
2614
+ orgId: string;
2615
+ source: "stripe" | "tempo";
2474
2616
  };
2475
2617
  };
2476
2618
  };
2477
2619
  };
2478
2620
  } & {
2479
- "/requests": {
2621
+ "/:orgId/members": {
2480
2622
  $get: {
2481
- output: {
2482
- data: {
2483
- address: `0x${string}`;
2484
- currency: string;
2485
- decimals: number;
2486
- logoUri?: string | undefined;
2487
- name: string;
2488
- symbol: string;
2489
- chainId: number;
2490
- createdAt: string;
2491
- id: string;
2492
- logo?: string | undefined;
2493
- note: string | null;
2494
- orgId: string;
2495
- requestedBy: string;
2496
- reviewNote: string | null;
2497
- reviewedAt: string | null;
2498
- status: "approved" | "denied" | "pending";
2499
- updatedAt: string;
2500
- orgName: string | null;
2501
- reviewedBy: string | null;
2502
- }[];
2503
- };
2504
- outputFormat: "json";
2505
- status: import("hono/utils/http-status").ContentfulStatusCode;
2506
- input: {
2507
- query?: {
2508
- status?: string | string[];
2509
- } | undefined;
2510
- };
2511
- };
2512
- };
2513
- } & {
2514
- "/requests/:requestId/approve": {
2515
- $post: {
2516
2623
  output: {
2517
2624
  error: {
2518
2625
  code: "upstream_error";
@@ -2525,13 +2632,18 @@ export declare function create(options: create.Options): import("hono/hono-base"
2525
2632
  status: 502;
2526
2633
  input: {
2527
2634
  param: {
2528
- requestId: string;
2635
+ orgId: string;
2529
2636
  };
2637
+ } & {
2638
+ query?: {
2639
+ cursor?: string | string[];
2640
+ limit?: string | string[];
2641
+ } | undefined;
2530
2642
  };
2531
2643
  } | {
2532
2644
  output: {
2533
2645
  error: {
2534
- code: "verified_token_not_found";
2646
+ code: "not_found";
2535
2647
  details?: readonly Response.error.Detail[] | undefined;
2536
2648
  message: string;
2537
2649
  };
@@ -2541,45 +2653,67 @@ export declare function create(options: create.Options): import("hono/hono-base"
2541
2653
  status: 404;
2542
2654
  input: {
2543
2655
  param: {
2544
- requestId: string;
2656
+ orgId: string;
2545
2657
  };
2658
+ } & {
2659
+ query?: {
2660
+ cursor?: string | string[];
2661
+ limit?: string | string[];
2662
+ } | undefined;
2546
2663
  };
2547
2664
  } | {
2548
2665
  output: {
2549
- error: {
2550
- code: "request_not_pending";
2551
- details?: readonly Response.error.Detail[] | undefined;
2552
- message: string;
2553
- };
2554
- requestId: string;
2666
+ data: {
2667
+ address: string | null;
2668
+ createdAt: string;
2669
+ email: string | null;
2670
+ role: "admin" | "member" | "owner";
2671
+ updatedAt: string;
2672
+ userId: string;
2673
+ }[];
2674
+ nextCursor: string | null;
2555
2675
  };
2556
2676
  outputFormat: "json";
2557
- status: 409;
2677
+ status: 200;
2558
2678
  input: {
2559
2679
  param: {
2560
- requestId: string;
2680
+ orgId: string;
2561
2681
  };
2682
+ } & {
2683
+ query?: {
2684
+ cursor?: string | string[];
2685
+ limit?: string | string[];
2686
+ } | undefined;
2562
2687
  };
2563
- } | {
2688
+ };
2689
+ };
2690
+ } & {
2691
+ "/:orgId/projects": {
2692
+ $get: {
2564
2693
  output: {
2565
2694
  error: {
2566
- code: "verified_token_request_not_found";
2695
+ code: "upstream_error";
2567
2696
  details?: readonly Response.error.Detail[] | undefined;
2568
2697
  message: string;
2569
2698
  };
2570
2699
  requestId: string;
2571
2700
  };
2572
2701
  outputFormat: "json";
2573
- status: 404;
2702
+ status: 502;
2574
2703
  input: {
2575
2704
  param: {
2576
- requestId: string;
2705
+ orgId: string;
2577
2706
  };
2707
+ } & {
2708
+ query?: {
2709
+ cursor?: string | string[];
2710
+ limit?: string | string[];
2711
+ } | undefined;
2578
2712
  };
2579
2713
  } | {
2580
2714
  output: {
2581
2715
  error: {
2582
- code: "assets_not_enabled";
2716
+ code: "not_found";
2583
2717
  details?: readonly Response.error.Detail[] | undefined;
2584
2718
  message: string;
2585
2719
  };
@@ -2589,109 +2723,107 @@ export declare function create(options: create.Options): import("hono/hono-base"
2589
2723
  status: 404;
2590
2724
  input: {
2591
2725
  param: {
2592
- requestId: string;
2593
- };
2594
- };
2595
- } | {
2596
- output: {
2597
- error: {
2598
- code: string;
2599
- details?: readonly Response.error.Detail[] | undefined;
2600
- message: string;
2601
- };
2602
- requestId: string;
2603
- };
2604
- outputFormat: "json";
2605
- status: 400 | 413 | 415;
2606
- input: {
2607
- param: {
2608
- requestId: string;
2609
- };
2610
- };
2611
- } | {
2612
- output: {
2613
- error: {
2614
- code: "duplicate_address";
2615
- details?: readonly Response.error.Detail[] | undefined;
2616
- message: string;
2726
+ orgId: string;
2617
2727
  };
2618
- requestId: string;
2728
+ } & {
2729
+ query?: {
2730
+ cursor?: string | string[];
2731
+ limit?: string | string[];
2732
+ } | undefined;
2733
+ };
2734
+ } | {
2735
+ output: {
2736
+ data: {
2737
+ createdAt: string;
2738
+ id: string;
2739
+ name: string;
2740
+ updatedAt: string;
2741
+ }[];
2742
+ nextCursor: string | null;
2619
2743
  };
2620
2744
  outputFormat: "json";
2621
- status: 409;
2745
+ status: 200;
2622
2746
  input: {
2623
2747
  param: {
2624
- requestId: string;
2748
+ orgId: string;
2625
2749
  };
2750
+ } & {
2751
+ query?: {
2752
+ cursor?: string | string[];
2753
+ limit?: string | string[];
2754
+ } | undefined;
2626
2755
  };
2627
- } | {
2756
+ };
2757
+ };
2758
+ } & {
2759
+ "/:orgId/api-keys": {
2760
+ $get: {
2628
2761
  output: {
2629
2762
  error: {
2630
- code: "duplicate_symbol";
2763
+ code: "upstream_error";
2631
2764
  details?: readonly Response.error.Detail[] | undefined;
2632
2765
  message: string;
2633
2766
  };
2634
2767
  requestId: string;
2635
2768
  };
2636
2769
  outputFormat: "json";
2637
- status: 409;
2770
+ status: 502;
2638
2771
  input: {
2639
2772
  param: {
2640
- requestId: string;
2773
+ orgId: string;
2641
2774
  };
2642
2775
  };
2643
2776
  } | {
2644
2777
  output: {
2645
2778
  error: {
2646
- code: "version_mismatch";
2779
+ code: "not_found";
2647
2780
  details?: readonly Response.error.Detail[] | undefined;
2648
2781
  message: string;
2649
2782
  };
2650
2783
  requestId: string;
2651
2784
  };
2652
2785
  outputFormat: "json";
2653
- status: 412;
2786
+ status: 404;
2654
2787
  input: {
2655
2788
  param: {
2656
- requestId: string;
2789
+ orgId: string;
2657
2790
  };
2658
2791
  };
2659
2792
  } | {
2660
2793
  output: {
2661
2794
  data: {
2662
- address: `0x${string}`;
2663
- currency: string;
2664
- decimals: number;
2665
- logoUri?: string | undefined;
2666
- name: string;
2667
- symbol: string;
2668
- chainId: number;
2669
- createdAt: string;
2795
+ allowedIps: readonly string[];
2796
+ billingActive?: boolean | undefined;
2797
+ environment: "production" | "sandbox";
2670
2798
  id: string;
2671
- logo?: string | undefined;
2672
- note: string | null;
2799
+ name?: string | undefined;
2673
2800
  orgId: string;
2674
- requestedBy: string;
2675
- reviewNote: string | null;
2676
- reviewedAt: string | null;
2677
- status: "approved" | "denied" | "pending";
2678
- updatedAt: string;
2679
- orgName: string | null;
2680
- reviewedBy: string | null;
2681
- };
2801
+ projectId?: string | undefined;
2802
+ rateLimits?: {
2803
+ [x: string]: {
2804
+ limit: number;
2805
+ period: "minute" | "second";
2806
+ };
2807
+ } | undefined;
2808
+ scopes: readonly string[];
2809
+ createdAt: string;
2810
+ createdBy?: string | undefined;
2811
+ expiresAt?: string | undefined;
2812
+ tokenLast4: string;
2813
+ }[];
2682
2814
  };
2683
2815
  outputFormat: "json";
2684
- status: import("hono/utils/http-status").ContentfulStatusCode;
2816
+ status: 200;
2685
2817
  input: {
2686
2818
  param: {
2687
- requestId: string;
2819
+ orgId: string;
2688
2820
  };
2689
2821
  };
2690
2822
  };
2691
2823
  };
2692
2824
  } & {
2693
- "/requests/:requestId/deny": {
2694
- $post: {
2825
+ "/:orgId/usage": {
2826
+ $get: {
2695
2827
  output: {
2696
2828
  error: {
2697
2829
  code: "upstream_error";
@@ -2704,17 +2836,17 @@ export declare function create(options: create.Options): import("hono/hono-base"
2704
2836
  status: 502;
2705
2837
  input: {
2706
2838
  param: {
2707
- requestId: string;
2839
+ orgId: string;
2708
2840
  };
2709
2841
  } & {
2710
- json: {
2711
- reviewNote?: string | undefined;
2712
- };
2842
+ query?: {
2843
+ period?: string | string[];
2844
+ } | undefined;
2713
2845
  };
2714
2846
  } | {
2715
2847
  output: {
2716
2848
  error: {
2717
- code: "verified_token_not_found";
2849
+ code: "not_found";
2718
2850
  details?: readonly Response.error.Detail[] | undefined;
2719
2851
  message: string;
2720
2852
  };
@@ -2724,171 +2856,179 @@ export declare function create(options: create.Options): import("hono/hono-base"
2724
2856
  status: 404;
2725
2857
  input: {
2726
2858
  param: {
2727
- requestId: string;
2859
+ orgId: string;
2728
2860
  };
2729
2861
  } & {
2730
- json: {
2731
- reviewNote?: string | undefined;
2732
- };
2862
+ query?: {
2863
+ period?: string | string[];
2864
+ } | undefined;
2733
2865
  };
2734
2866
  } | {
2735
2867
  output: {
2736
- error: {
2737
- code: "request_not_pending";
2738
- details?: readonly Response.error.Detail[] | undefined;
2739
- message: string;
2868
+ byError: {
2869
+ code: string;
2870
+ requests: number;
2871
+ }[];
2872
+ byRoute: {
2873
+ errors: number;
2874
+ requests: number;
2875
+ averageDurationMs: number;
2876
+ route: string;
2877
+ }[];
2878
+ byStatus: {
2879
+ requests: number;
2880
+ status: number;
2881
+ }[];
2882
+ from: string;
2883
+ period: "24h" | "30d" | "7d";
2884
+ to: string;
2885
+ totals: {
2886
+ errors: number;
2887
+ requests: number;
2888
+ averageDurationMs: number;
2740
2889
  };
2741
- requestId: string;
2742
2890
  };
2743
2891
  outputFormat: "json";
2744
- status: 409;
2892
+ status: 200;
2745
2893
  input: {
2746
2894
  param: {
2747
- requestId: string;
2895
+ orgId: string;
2748
2896
  };
2749
2897
  } & {
2750
- json: {
2751
- reviewNote?: string | undefined;
2752
- };
2898
+ query?: {
2899
+ period?: string | string[];
2900
+ } | undefined;
2753
2901
  };
2754
- } | {
2902
+ };
2903
+ };
2904
+ } & {
2905
+ "/:orgId/sponsorship": {
2906
+ $get: {
2755
2907
  output: {
2756
2908
  error: {
2757
- code: "verified_token_request_not_found";
2909
+ code: "upstream_error";
2758
2910
  details?: readonly Response.error.Detail[] | undefined;
2759
2911
  message: string;
2760
2912
  };
2761
2913
  requestId: string;
2762
2914
  };
2763
2915
  outputFormat: "json";
2764
- status: 404;
2916
+ status: 502;
2765
2917
  input: {
2766
2918
  param: {
2767
- requestId: string;
2768
- };
2769
- } & {
2770
- json: {
2771
- reviewNote?: string | undefined;
2919
+ orgId: string;
2772
2920
  };
2773
2921
  };
2774
2922
  } | {
2775
2923
  output: {
2776
2924
  error: {
2777
- code: string;
2925
+ code: "not_found";
2778
2926
  details?: readonly Response.error.Detail[] | undefined;
2779
2927
  message: string;
2780
2928
  };
2781
2929
  requestId: string;
2782
2930
  };
2783
2931
  outputFormat: "json";
2784
- status: 400 | 413 | 415;
2932
+ status: 404;
2785
2933
  input: {
2786
2934
  param: {
2787
- requestId: string;
2788
- };
2789
- } & {
2790
- json: {
2791
- reviewNote?: string | undefined;
2935
+ orgId: string;
2792
2936
  };
2793
2937
  };
2794
2938
  } | {
2795
2939
  output: {
2796
- error: {
2797
- code: "duplicate_address";
2798
- details?: readonly Response.error.Detail[] | undefined;
2799
- message: string;
2940
+ production: {
2941
+ committedSpend: string;
2942
+ currency: "usd";
2943
+ from: string;
2944
+ period: "month";
2800
2945
  };
2801
- requestId: string;
2946
+ sandbox: {
2947
+ committedSpend: string;
2948
+ currency: "usd";
2949
+ from: string;
2950
+ period: "month";
2951
+ };
2952
+ to: string;
2802
2953
  };
2803
2954
  outputFormat: "json";
2804
- status: 409;
2955
+ status: 200;
2805
2956
  input: {
2806
2957
  param: {
2807
- requestId: string;
2808
- };
2809
- } & {
2810
- json: {
2811
- reviewNote?: string | undefined;
2958
+ orgId: string;
2812
2959
  };
2813
2960
  };
2814
- } | {
2961
+ };
2962
+ };
2963
+ } & {
2964
+ "/:orgId/webhooks": {
2965
+ $get: {
2815
2966
  output: {
2816
2967
  error: {
2817
- code: "duplicate_symbol";
2968
+ code: "upstream_error";
2818
2969
  details?: readonly Response.error.Detail[] | undefined;
2819
2970
  message: string;
2820
2971
  };
2821
2972
  requestId: string;
2822
2973
  };
2823
2974
  outputFormat: "json";
2824
- status: 409;
2975
+ status: 502;
2825
2976
  input: {
2826
2977
  param: {
2827
- requestId: string;
2828
- };
2829
- } & {
2830
- json: {
2831
- reviewNote?: string | undefined;
2978
+ orgId: string;
2832
2979
  };
2833
2980
  };
2834
2981
  } | {
2835
2982
  output: {
2836
2983
  error: {
2837
- code: "version_mismatch";
2984
+ code: "not_found";
2838
2985
  details?: readonly Response.error.Detail[] | undefined;
2839
2986
  message: string;
2840
2987
  };
2841
2988
  requestId: string;
2842
2989
  };
2843
2990
  outputFormat: "json";
2844
- status: 412;
2991
+ status: 404;
2845
2992
  input: {
2846
2993
  param: {
2847
- requestId: string;
2848
- };
2849
- } & {
2850
- json: {
2851
- reviewNote?: string | undefined;
2994
+ orgId: string;
2852
2995
  };
2853
2996
  };
2854
2997
  } | {
2855
2998
  output: {
2856
- data: {
2857
- address: `0x${string}`;
2858
- currency: string;
2859
- decimals: number;
2860
- logoUri?: string | undefined;
2861
- name: string;
2862
- symbol: string;
2999
+ failureCount: number;
3000
+ failures: {
3001
+ attempt: number;
3002
+ createdAt: string;
3003
+ error: string | null;
3004
+ id: string;
3005
+ responseStatus: number | null;
3006
+ subscriptionId: string;
3007
+ }[];
3008
+ failuresTruncated: boolean;
3009
+ from: string;
3010
+ subscriptions: {
2863
3011
  chainId: number;
2864
3012
  createdAt: string;
3013
+ destination: string;
3014
+ eventType: string;
3015
+ failureCount: number;
2865
3016
  id: string;
2866
- logo?: string | undefined;
2867
- note: string | null;
2868
- orgId: string;
2869
- requestedBy: string;
2870
- reviewNote: string | null;
2871
- reviewedAt: string | null;
2872
- status: "approved" | "denied" | "pending";
2873
- updatedAt: string;
2874
- orgName: string | null;
2875
- reviewedBy: string | null;
2876
- };
3017
+ lastDeliveryAt: string | null;
3018
+ status: "active" | "disabled" | "paused";
3019
+ }[];
3020
+ to: string;
2877
3021
  };
2878
3022
  outputFormat: "json";
2879
- status: import("hono/utils/http-status").ContentfulStatusCode;
3023
+ status: 200;
2880
3024
  input: {
2881
3025
  param: {
2882
- requestId: string;
2883
- };
2884
- } & {
2885
- json: {
2886
- reviewNote?: string | undefined;
3026
+ orgId: string;
2887
3027
  };
2888
3028
  };
2889
3029
  };
2890
3030
  };
2891
- }, "/verified-tokens"> | {
3031
+ }, "/organizations"> | {
2892
3032
  "/config.json": {
2893
3033
  $get: {
2894
3034
  output: {