tapimo 0.7.1 → 0.8.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 (786) hide show
  1. package/README.md +10 -7
  2. package/dist/ApiKey.d.ts +3 -0
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +10 -0
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +29 -8
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +24 -5
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +20680 -15487
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +250 -129
  13. package/dist/App.js.map +1 -1
  14. package/dist/Assets.d.ts +10 -0
  15. package/dist/Assets.d.ts.map +1 -1
  16. package/dist/Assets.js +17 -4
  17. package/dist/Assets.js.map +1 -1
  18. package/dist/Scope.d.ts +19 -8
  19. package/dist/Scope.d.ts.map +1 -1
  20. package/dist/Scope.js +25 -9
  21. package/dist/Scope.js.map +1 -1
  22. package/dist/Webhooks.d.ts +1 -1
  23. package/dist/admin/App.d.ts +667 -76
  24. package/dist/admin/App.d.ts.map +1 -1
  25. package/dist/admin/App.js +12 -2
  26. package/dist/admin/App.js.map +1 -1
  27. package/dist/admin/apps/api-keys.d.ts +107 -11
  28. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  29. package/dist/admin/apps/api-keys.js +145 -32
  30. package/dist/admin/apps/api-keys.js.map +1 -1
  31. package/dist/admin/apps/earn-vaults.d.ts +1069 -0
  32. package/dist/admin/apps/earn-vaults.d.ts.map +1 -0
  33. package/dist/admin/apps/earn-vaults.js +409 -0
  34. package/dist/admin/apps/earn-vaults.js.map +1 -0
  35. package/dist/admin/apps/organizations.d.ts +2 -0
  36. package/dist/admin/apps/organizations.d.ts.map +1 -1
  37. package/dist/admin/apps/verified-tokens.d.ts +74 -74
  38. package/dist/admin/ui.generated.d.ts +1 -1
  39. package/dist/admin/ui.generated.d.ts.map +1 -1
  40. package/dist/admin/ui.generated.js +99 -43
  41. package/dist/admin/ui.generated.js.map +1 -1
  42. package/dist/analytics/Analytics.d.ts +4 -0
  43. package/dist/analytics/Analytics.d.ts.map +1 -1
  44. package/dist/analytics/Analytics.js +21 -2
  45. package/dist/analytics/Analytics.js.map +1 -1
  46. package/dist/analytics/tables/requestEvents.d.ts +22 -1
  47. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  48. package/dist/analytics/tables/requestEvents.js +59 -39
  49. package/dist/analytics/tables/requestEvents.js.map +1 -1
  50. package/dist/apps/Zones.d.ts +8335 -0
  51. package/dist/apps/Zones.d.ts.map +1 -0
  52. package/dist/apps/Zones.js +38 -0
  53. package/dist/apps/Zones.js.map +1 -0
  54. package/dist/apps/data/App.d.ts +5666 -3934
  55. package/dist/apps/data/App.d.ts.map +1 -1
  56. package/dist/apps/data/App.js +90 -22
  57. package/dist/apps/data/App.js.map +1 -1
  58. package/dist/apps/data/FxOracle.d.ts +1 -1
  59. package/dist/apps/data/FxOracle.d.ts.map +1 -1
  60. package/dist/apps/data/index.d.ts +0 -1
  61. package/dist/apps/data/index.d.ts.map +1 -1
  62. package/dist/apps/data/index.js +0 -1
  63. package/dist/apps/data/index.js.map +1 -1
  64. package/dist/apps/data/routes/activities.d.ts +56 -56
  65. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  66. package/dist/apps/data/routes/activities.js +130 -65
  67. package/dist/apps/data/routes/activities.js.map +1 -1
  68. package/dist/apps/data/routes/addresses.d.ts +65 -65
  69. package/dist/apps/data/routes/balances.d.ts +14 -14
  70. package/dist/apps/data/routes/balances.js +5 -5
  71. package/dist/apps/data/routes/balances.js.map +1 -1
  72. package/dist/apps/data/routes/blocks.d.ts +39 -39
  73. package/dist/apps/data/routes/coingecko.d.ts +54 -54
  74. package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
  75. package/dist/apps/data/routes/coingecko.js +62 -35
  76. package/dist/apps/data/routes/coingecko.js.map +1 -1
  77. package/dist/apps/data/routes/earn.d.ts +2574 -0
  78. package/dist/apps/data/routes/earn.d.ts.map +1 -0
  79. package/dist/apps/data/routes/earn.js +1574 -0
  80. package/dist/apps/data/routes/earn.js.map +1 -0
  81. package/dist/apps/data/routes/exchanges.d.ts +1626 -719
  82. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  83. package/dist/apps/data/routes/exchanges.js +656 -193
  84. package/dist/apps/data/routes/exchanges.js.map +1 -1
  85. package/dist/apps/data/routes/fee-amm.d.ts +108 -108
  86. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  87. package/dist/apps/data/routes/fee-amm.js +59 -8
  88. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  89. package/dist/apps/data/routes/indexer.d.ts +35 -35
  90. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  91. package/dist/apps/data/routes/indexer.js +23 -3
  92. package/dist/apps/data/routes/indexer.js.map +1 -1
  93. package/dist/apps/data/routes/receipts.d.ts +33 -33
  94. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  95. package/dist/apps/data/routes/receipts.js +11 -11
  96. package/dist/apps/data/routes/receipts.js.map +1 -1
  97. package/dist/apps/data/routes/rpc.d.ts +6 -6
  98. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  99. package/dist/apps/data/routes/rpc.js +214 -22
  100. package/dist/apps/data/routes/rpc.js.map +1 -1
  101. package/dist/apps/data/routes/tokenlist.d.ts +1 -1
  102. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  103. package/dist/apps/data/routes/tokenlist.js +39 -8
  104. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  105. package/dist/apps/data/routes/tokens.d.ts +115 -87
  106. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  107. package/dist/apps/data/routes/tokens.js +194 -91
  108. package/dist/apps/data/routes/tokens.js.map +1 -1
  109. package/dist/apps/data/routes/transactions.d.ts +54 -54
  110. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  111. package/dist/apps/data/routes/transactions.js +78 -39
  112. package/dist/apps/data/routes/transactions.js.map +1 -1
  113. package/dist/apps/data/routes/transfers.d.ts +76 -27
  114. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  115. package/dist/apps/data/routes/transfers.js +165 -67
  116. package/dist/apps/data/routes/transfers.js.map +1 -1
  117. package/dist/apps/data/routes/valuation.d.ts +42 -42
  118. package/dist/apps/data/routes/valuation.js +2 -2
  119. package/dist/apps/data/routes/valuation.js.map +1 -1
  120. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  121. package/dist/apps/data/routes/webhooks.d.ts +370 -368
  122. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  123. package/dist/apps/data/routes/webhooks.js +161 -59
  124. package/dist/apps/data/routes/webhooks.js.map +1 -1
  125. package/dist/apps/data/routes/zones.d.ts +281 -0
  126. package/dist/apps/data/routes/zones.d.ts.map +1 -0
  127. package/dist/apps/data/routes/zones.js +252 -0
  128. package/dist/apps/data/routes/zones.js.map +1 -0
  129. package/dist/apps/docs/reference.js +6 -5
  130. package/dist/apps/docs/reference.js.map +1 -1
  131. package/dist/apps/funding/Access.d.ts +16 -0
  132. package/dist/apps/funding/Access.d.ts.map +1 -0
  133. package/dist/apps/funding/Access.js +22 -0
  134. package/dist/apps/funding/Access.js.map +1 -0
  135. package/dist/apps/funding/App.d.ts +3183 -0
  136. package/dist/apps/funding/App.d.ts.map +1 -0
  137. package/dist/apps/funding/App.js +46 -0
  138. package/dist/apps/funding/App.js.map +1 -0
  139. package/dist/apps/funding/Inventory.d.ts +5 -0
  140. package/dist/apps/funding/Inventory.d.ts.map +1 -0
  141. package/dist/apps/funding/Inventory.js +25 -0
  142. package/dist/apps/funding/Inventory.js.map +1 -0
  143. package/dist/apps/funding/ProviderAttempts.d.ts +5 -0
  144. package/dist/apps/funding/ProviderAttempts.d.ts.map +1 -0
  145. package/dist/apps/funding/ProviderAttempts.js +24 -0
  146. package/dist/apps/funding/ProviderAttempts.js.map +1 -0
  147. package/dist/apps/funding/index.d.ts +2 -0
  148. package/dist/apps/funding/index.d.ts.map +1 -0
  149. package/dist/apps/funding/index.js +2 -0
  150. package/dist/apps/funding/index.js.map +1 -0
  151. package/dist/apps/funding/routes/chains.d.ts +169 -0
  152. package/dist/apps/funding/routes/chains.d.ts.map +1 -0
  153. package/dist/apps/funding/routes/chains.js +80 -0
  154. package/dist/apps/funding/routes/chains.js.map +1 -0
  155. package/dist/apps/funding/routes/deposit-addresses.d.ts +2388 -0
  156. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -0
  157. package/dist/apps/funding/routes/deposit-addresses.js +860 -0
  158. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -0
  159. package/dist/apps/funding/routes/providers.d.ts +91 -0
  160. package/dist/apps/funding/routes/providers.d.ts.map +1 -0
  161. package/dist/apps/funding/routes/providers.js +56 -0
  162. package/dist/apps/funding/routes/providers.js.map +1 -0
  163. package/dist/apps/{data/routes/funding.d.ts → funding/routes/quotes.d.ts} +26 -396
  164. package/dist/apps/funding/routes/quotes.d.ts.map +1 -0
  165. package/dist/apps/funding/routes/quotes.js +188 -0
  166. package/dist/apps/funding/routes/quotes.js.map +1 -0
  167. package/dist/apps/funding/routes/transfers.d.ts +1999 -0
  168. package/dist/apps/funding/routes/transfers.d.ts.map +1 -0
  169. package/dist/apps/funding/routes/transfers.js +614 -0
  170. package/dist/apps/funding/routes/transfers.js.map +1 -0
  171. package/dist/apps/index.d.ts +3 -1
  172. package/dist/apps/index.d.ts.map +1 -1
  173. package/dist/apps/index.js +3 -1
  174. package/dist/apps/index.js.map +1 -1
  175. package/dist/apps/management/App.d.ts +839 -574
  176. package/dist/apps/management/App.d.ts.map +1 -1
  177. package/dist/apps/management/Billing.d.ts +8 -0
  178. package/dist/apps/management/Billing.d.ts.map +1 -1
  179. package/dist/apps/management/Billing.js +12 -0
  180. package/dist/apps/management/Billing.js.map +1 -1
  181. package/dist/apps/management/Error.d.ts +12 -0
  182. package/dist/apps/management/Error.d.ts.map +1 -0
  183. package/dist/apps/management/Error.js +10 -0
  184. package/dist/apps/management/Error.js.map +1 -0
  185. package/dist/apps/management/routes/api-keys.d.ts +296 -19
  186. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  187. package/dist/apps/management/routes/api-keys.js +77 -9
  188. package/dist/apps/management/routes/api-keys.js.map +1 -1
  189. package/dist/apps/management/routes/billing.d.ts +119 -119
  190. package/dist/apps/management/routes/faucet.d.ts +35 -35
  191. package/dist/apps/management/routes/invitations.d.ts +17 -17
  192. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  193. package/dist/apps/management/routes/invitations.js +4 -10
  194. package/dist/apps/management/routes/invitations.js.map +1 -1
  195. package/dist/apps/management/routes/invite-links.d.ts +38 -38
  196. package/dist/apps/management/routes/me.d.ts +6 -6
  197. package/dist/apps/management/routes/members.d.ts +69 -69
  198. package/dist/apps/management/routes/orgs.d.ts +16 -16
  199. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  200. package/dist/apps/management/routes/orgs.js +2 -8
  201. package/dist/apps/management/routes/orgs.js.map +1 -1
  202. package/dist/apps/management/routes/projects.d.ts +19 -19
  203. package/dist/apps/management/routes/scopes.d.ts +1 -1
  204. package/dist/apps/management/routes/scopes.js +2 -2
  205. package/dist/apps/management/routes/scopes.js.map +1 -1
  206. package/dist/apps/management/routes/usage.d.ts +72 -72
  207. package/dist/apps/management/routes/verified-token-requests.d.ts +18 -18
  208. package/dist/apps/management/routes/webhooks.d.ts +122 -122
  209. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  210. package/dist/apps/management/routes/webhooks.js +15 -3
  211. package/dist/apps/management/routes/webhooks.js.map +1 -1
  212. package/dist/apps/mcp.d.ts +2 -3
  213. package/dist/apps/mcp.d.ts.map +1 -1
  214. package/dist/apps/mcp.js +16 -14
  215. package/dist/apps/mcp.js.map +1 -1
  216. package/dist/apps/metadata.d.ts +4 -0
  217. package/dist/apps/metadata.d.ts.map +1 -1
  218. package/dist/apps/metadata.js +10 -0
  219. package/dist/apps/metadata.js.map +1 -1
  220. package/dist/apps/mpp/App.d.ts +57 -58
  221. package/dist/apps/mpp/App.d.ts.map +1 -1
  222. package/dist/apps/mpp/App.js +192 -27
  223. package/dist/apps/mpp/App.js.map +1 -1
  224. package/dist/apps/mpp/Mpp.d.ts +0 -20
  225. package/dist/apps/mpp/Mpp.d.ts.map +1 -1
  226. package/dist/apps/mpp/Mpp.js +0 -24
  227. package/dist/apps/mpp/Mpp.js.map +1 -1
  228. package/dist/apps/mpp/internal/Adapter.d.ts +40 -0
  229. package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -0
  230. package/dist/apps/mpp/internal/Adapter.js +66 -0
  231. package/dist/apps/mpp/internal/Adapter.js.map +1 -0
  232. package/dist/apps/mpp/internal/Error.d.ts +4 -0
  233. package/dist/apps/mpp/internal/Error.d.ts.map +1 -0
  234. package/dist/apps/mpp/internal/Error.js +41 -0
  235. package/dist/apps/mpp/internal/Error.js.map +1 -0
  236. package/dist/apps/mpp/internal/Idempotency.d.ts +33 -0
  237. package/dist/apps/mpp/internal/Idempotency.d.ts.map +1 -0
  238. package/dist/apps/mpp/internal/Idempotency.js +28 -0
  239. package/dist/apps/mpp/internal/Idempotency.js.map +1 -0
  240. package/dist/apps/mpp/internal/Policy.d.ts +46 -0
  241. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -0
  242. package/dist/apps/mpp/internal/Policy.js +57 -0
  243. package/dist/apps/mpp/internal/Policy.js.map +1 -0
  244. package/dist/apps/mpp/internal/ScreenManager.d.ts +27 -0
  245. package/dist/apps/mpp/internal/ScreenManager.d.ts.map +1 -0
  246. package/dist/apps/mpp/internal/ScreenManager.js +18 -0
  247. package/dist/apps/mpp/internal/ScreenManager.js.map +1 -0
  248. package/dist/apps/mpp/internal/Screening.d.ts +35 -0
  249. package/dist/apps/mpp/internal/Screening.d.ts.map +1 -0
  250. package/dist/apps/mpp/internal/Screening.js +20 -0
  251. package/dist/apps/mpp/internal/Screening.js.map +1 -0
  252. package/dist/apps/mpp/internal/Sponsorship.d.ts +36 -0
  253. package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -0
  254. package/dist/apps/mpp/internal/Sponsorship.js +103 -0
  255. package/dist/apps/mpp/internal/Sponsorship.js.map +1 -0
  256. package/dist/apps/mpp/internal/Utils.d.ts +7 -0
  257. package/dist/apps/mpp/internal/Utils.d.ts.map +1 -0
  258. package/dist/apps/mpp/internal/Utils.js +24 -0
  259. package/dist/apps/mpp/internal/Utils.js.map +1 -0
  260. package/dist/apps/relay/App.js +183 -23
  261. package/dist/apps/relay/App.js.map +1 -1
  262. package/dist/apps/relay/Sponsorships.d.ts +4 -0
  263. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  264. package/dist/apps/relay/Sponsorships.js +15 -6
  265. package/dist/apps/relay/Sponsorships.js.map +1 -1
  266. package/dist/cloudflare.d.ts +50 -0
  267. package/dist/cloudflare.d.ts.map +1 -1
  268. package/dist/cloudflare.js +178 -0
  269. package/dist/cloudflare.js.map +1 -1
  270. package/dist/db/Db.d.ts +22 -0
  271. package/dist/db/Db.d.ts.map +1 -1
  272. package/dist/db/Db.js +379 -0
  273. package/dist/db/Db.js.map +1 -1
  274. package/dist/db/Schema.d.ts +933 -1
  275. package/dist/db/Schema.d.ts.map +1 -1
  276. package/dist/db/Schema.js +289 -1
  277. package/dist/db/Schema.js.map +1 -1
  278. package/dist/db/tables/earnVaults.d.ts +68 -0
  279. package/dist/db/tables/earnVaults.d.ts.map +1 -0
  280. package/dist/db/tables/earnVaults.js +72 -0
  281. package/dist/db/tables/earnVaults.js.map +1 -0
  282. package/dist/db/tables/fundingCatalog.d.ts +56 -0
  283. package/dist/db/tables/fundingCatalog.d.ts.map +1 -0
  284. package/dist/db/tables/fundingCatalog.js +85 -0
  285. package/dist/db/tables/fundingCatalog.js.map +1 -0
  286. package/dist/db/tables/fundingDepositAddresses.d.ts +172 -0
  287. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -0
  288. package/dist/db/tables/fundingDepositAddresses.js +218 -0
  289. package/dist/db/tables/fundingDepositAddresses.js.map +1 -0
  290. package/dist/db/tables/fundingDepositRequestObservations.d.ts +45 -0
  291. package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +1 -0
  292. package/dist/db/tables/fundingDepositRequestObservations.js +46 -0
  293. package/dist/db/tables/fundingDepositRequestObservations.js.map +1 -0
  294. package/dist/db/tables/fundingDeposits.d.ts +171 -0
  295. package/dist/db/tables/fundingDeposits.d.ts.map +1 -0
  296. package/dist/db/tables/fundingDeposits.js +182 -0
  297. package/dist/db/tables/fundingDeposits.js.map +1 -0
  298. package/dist/db/tables/fundingIdempotency.d.ts +91 -0
  299. package/dist/db/tables/fundingIdempotency.d.ts.map +1 -0
  300. package/dist/db/tables/fundingIdempotency.js +103 -0
  301. package/dist/db/tables/fundingIdempotency.js.map +1 -0
  302. package/dist/db/tables/fundingTransferEvents.d.ts +12 -0
  303. package/dist/db/tables/fundingTransferEvents.d.ts.map +1 -0
  304. package/dist/db/tables/fundingTransferEvents.js +18 -0
  305. package/dist/db/tables/fundingTransferEvents.js.map +1 -0
  306. package/dist/db/tables/fundingTransferTransactions.d.ts +15 -0
  307. package/dist/db/tables/fundingTransferTransactions.d.ts.map +1 -0
  308. package/dist/db/tables/fundingTransferTransactions.js +27 -0
  309. package/dist/db/tables/fundingTransferTransactions.js.map +1 -0
  310. package/dist/db/tables/fundingTransfers.d.ts +82 -0
  311. package/dist/db/tables/fundingTransfers.d.ts.map +1 -0
  312. package/dist/db/tables/fundingTransfers.js +89 -0
  313. package/dist/db/tables/fundingTransfers.js.map +1 -0
  314. package/dist/db/tables/organizations.d.ts +8 -0
  315. package/dist/db/tables/organizations.d.ts.map +1 -1
  316. package/dist/db/tables/organizations.js +16 -0
  317. package/dist/db/tables/organizations.js.map +1 -1
  318. package/dist/db/tables/projects.d.ts +8 -0
  319. package/dist/db/tables/projects.d.ts.map +1 -1
  320. package/dist/db/tables/projects.js +16 -0
  321. package/dist/db/tables/projects.js.map +1 -1
  322. package/dist/db/tables/requestUsage.d.ts +13 -0
  323. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  324. package/dist/db/tables/requestUsage.js +16 -0
  325. package/dist/db/tables/requestUsage.js.map +1 -1
  326. package/dist/db/tables/sponsoredTransactions.d.ts +2 -2
  327. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  328. package/dist/db/tables/sponsoredTransactions.js +1 -1
  329. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  330. package/dist/db/tables/users.d.ts +8 -0
  331. package/dist/db/tables/users.d.ts.map +1 -1
  332. package/dist/db/tables/users.js +16 -0
  333. package/dist/db/tables/users.js.map +1 -1
  334. package/dist/db/tables/verifiedTokens.d.ts +14 -7
  335. package/dist/db/tables/verifiedTokens.d.ts.map +1 -1
  336. package/dist/db/tables/verifiedTokens.js +9 -7
  337. package/dist/db/tables/verifiedTokens.js.map +1 -1
  338. package/dist/db/tables/webhookSubscriptions.d.ts +31 -1
  339. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  340. package/dist/db/tables/webhookSubscriptions.js +24 -3
  341. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  342. package/dist/handlers/relay.js +108 -108
  343. package/dist/handlers/relay.js.map +1 -1
  344. package/dist/internal/Auth.d.ts +37 -11
  345. package/dist/internal/Auth.d.ts.map +1 -1
  346. package/dist/internal/Auth.js +75 -16
  347. package/dist/internal/Auth.js.map +1 -1
  348. package/dist/internal/Cache.d.ts.map +1 -1
  349. package/dist/internal/Cache.js +17 -11
  350. package/dist/internal/Cache.js.map +1 -1
  351. package/dist/internal/Cursor.js +1 -1
  352. package/dist/internal/Cursor.js.map +1 -1
  353. package/dist/internal/EarnRates.d.ts +89 -0
  354. package/dist/internal/EarnRates.d.ts.map +1 -0
  355. package/dist/internal/EarnRates.js +266 -0
  356. package/dist/internal/EarnRates.js.map +1 -0
  357. package/dist/internal/EarnVaults.d.ts +171 -0
  358. package/dist/internal/EarnVaults.d.ts.map +1 -0
  359. package/dist/internal/EarnVaults.js +547 -0
  360. package/dist/internal/EarnVaults.js.map +1 -0
  361. package/dist/internal/EdgeCache.d.ts +10 -3
  362. package/dist/internal/EdgeCache.d.ts.map +1 -1
  363. package/dist/internal/EdgeCache.js +43 -11
  364. package/dist/internal/EdgeCache.js.map +1 -1
  365. package/dist/internal/Id.d.ts +11 -0
  366. package/dist/internal/Id.d.ts.map +1 -1
  367. package/dist/internal/Id.js +13 -0
  368. package/dist/internal/Id.js.map +1 -1
  369. package/dist/internal/Idempotency.d.ts +83 -0
  370. package/dist/internal/Idempotency.d.ts.map +1 -0
  371. package/dist/internal/Idempotency.js +113 -0
  372. package/dist/internal/Idempotency.js.map +1 -0
  373. package/dist/internal/IpAllowlist.d.ts +15 -0
  374. package/dist/internal/IpAllowlist.d.ts.map +1 -0
  375. package/dist/internal/IpAllowlist.js +27 -0
  376. package/dist/internal/IpAllowlist.js.map +1 -0
  377. package/dist/internal/Log.d.ts +64 -9
  378. package/dist/internal/Log.d.ts.map +1 -1
  379. package/dist/internal/Log.js +29 -7
  380. package/dist/internal/Log.js.map +1 -1
  381. package/dist/internal/MetricSink.d.ts.map +1 -1
  382. package/dist/internal/MetricSink.js +47 -1
  383. package/dist/internal/MetricSink.js.map +1 -1
  384. package/dist/internal/OpenApi.d.ts +2 -2
  385. package/dist/internal/OpenApi.d.ts.map +1 -1
  386. package/dist/internal/OpenApi.js +4 -1
  387. package/dist/internal/OpenApi.js.map +1 -1
  388. package/dist/internal/Provider.d.ts +14 -0
  389. package/dist/internal/Provider.d.ts.map +1 -0
  390. package/dist/internal/Provider.js +5 -0
  391. package/dist/internal/Provider.js.map +1 -0
  392. package/dist/internal/Schema.d.ts +6 -1
  393. package/dist/internal/Schema.d.ts.map +1 -1
  394. package/dist/internal/Schema.js +20 -11
  395. package/dist/internal/Schema.js.map +1 -1
  396. package/dist/internal/Store.d.ts +6 -0
  397. package/dist/internal/Store.d.ts.map +1 -1
  398. package/dist/internal/Store.js +35 -0
  399. package/dist/internal/Store.js.map +1 -1
  400. package/dist/internal/Tidx.d.ts +49 -24
  401. package/dist/internal/Tidx.d.ts.map +1 -1
  402. package/dist/internal/Tidx.js +90 -12
  403. package/dist/internal/Tidx.js.map +1 -1
  404. package/dist/internal/Viem.d.ts +90 -65
  405. package/dist/internal/Viem.d.ts.map +1 -1
  406. package/dist/internal/Viem.js +90 -12
  407. package/dist/internal/Viem.js.map +1 -1
  408. package/dist/internal/WebhookDestination.d.ts.map +1 -1
  409. package/dist/internal/WebhookDestination.js +34 -28
  410. package/dist/internal/WebhookDestination.js.map +1 -1
  411. package/dist/internal/Webhooks.d.ts +9 -0
  412. package/dist/internal/Webhooks.d.ts.map +1 -1
  413. package/dist/internal/Webhooks.js +15 -10
  414. package/dist/internal/Webhooks.js.map +1 -1
  415. package/dist/internal/exchange/Provider.d.ts +219 -0
  416. package/dist/internal/exchange/Provider.d.ts.map +1 -0
  417. package/dist/internal/exchange/Provider.js +117 -0
  418. package/dist/internal/exchange/Provider.js.map +1 -0
  419. package/dist/internal/exchange/index.d.ts +2 -0
  420. package/dist/internal/exchange/index.d.ts.map +1 -0
  421. package/dist/internal/exchange/index.js +2 -0
  422. package/dist/internal/exchange/index.js.map +1 -0
  423. package/dist/internal/exchange/providers/uniswap.d.ts +57 -0
  424. package/dist/internal/exchange/providers/uniswap.d.ts.map +1 -0
  425. package/dist/internal/exchange/providers/uniswap.js +553 -0
  426. package/dist/internal/exchange/providers/uniswap.js.map +1 -0
  427. package/dist/internal/funding/Action.d.ts +55 -0
  428. package/dist/internal/funding/Action.d.ts.map +1 -0
  429. package/dist/internal/funding/Action.js +74 -0
  430. package/dist/internal/funding/Action.js.map +1 -0
  431. package/dist/internal/funding/Catalog.d.ts +107 -0
  432. package/dist/internal/funding/Catalog.d.ts.map +1 -0
  433. package/dist/internal/funding/Catalog.js +270 -0
  434. package/dist/internal/funding/Catalog.js.map +1 -0
  435. package/dist/internal/funding/Chain.d.ts +76 -0
  436. package/dist/internal/funding/Chain.d.ts.map +1 -0
  437. package/dist/internal/funding/Chain.js +38 -0
  438. package/dist/internal/funding/Chain.js.map +1 -0
  439. package/dist/internal/funding/Deposit.d.ts +408 -0
  440. package/dist/internal/funding/Deposit.d.ts.map +1 -0
  441. package/dist/internal/funding/Deposit.js +318 -0
  442. package/dist/internal/funding/Deposit.js.map +1 -0
  443. package/dist/internal/funding/DepositAddress.d.ts +345 -0
  444. package/dist/internal/funding/DepositAddress.d.ts.map +1 -0
  445. package/dist/internal/funding/DepositAddress.js +189 -0
  446. package/dist/internal/funding/DepositAddress.js.map +1 -0
  447. package/dist/internal/funding/Evidence.d.ts +48 -0
  448. package/dist/internal/funding/Evidence.d.ts.map +1 -0
  449. package/dist/internal/funding/Evidence.js +315 -0
  450. package/dist/internal/funding/Evidence.js.map +1 -0
  451. package/dist/internal/funding/Provider.d.ts +1288 -0
  452. package/dist/internal/funding/Provider.d.ts.map +1 -0
  453. package/dist/internal/funding/Provider.js +1086 -0
  454. package/dist/internal/funding/Provider.js.map +1 -0
  455. package/dist/internal/funding/Reconciliation.d.ts +127 -0
  456. package/dist/internal/funding/Reconciliation.d.ts.map +1 -0
  457. package/dist/internal/funding/Reconciliation.js +885 -0
  458. package/dist/internal/funding/Reconciliation.js.map +1 -0
  459. package/dist/internal/funding/Route.d.ts +21 -0
  460. package/dist/internal/funding/Route.d.ts.map +1 -0
  461. package/dist/internal/funding/Route.js +5 -0
  462. package/dist/internal/funding/Route.js.map +1 -0
  463. package/dist/internal/funding/SourceObservation.d.ts +108 -0
  464. package/dist/internal/funding/SourceObservation.d.ts.map +1 -0
  465. package/dist/internal/funding/SourceObservation.js +143 -0
  466. package/dist/internal/funding/SourceObservation.js.map +1 -0
  467. package/dist/internal/funding/Subsidy.d.ts +113 -0
  468. package/dist/internal/funding/Subsidy.d.ts.map +1 -0
  469. package/dist/internal/funding/Subsidy.js +138 -0
  470. package/dist/internal/funding/Subsidy.js.map +1 -0
  471. package/dist/internal/funding/Token.d.ts +41 -0
  472. package/dist/internal/funding/Token.d.ts.map +1 -0
  473. package/dist/internal/funding/Token.js +22 -0
  474. package/dist/internal/funding/Token.js.map +1 -0
  475. package/dist/internal/funding/Transfer.d.ts +643 -0
  476. package/dist/internal/funding/Transfer.d.ts.map +1 -0
  477. package/dist/internal/funding/Transfer.js +332 -0
  478. package/dist/internal/funding/Transfer.js.map +1 -0
  479. package/dist/internal/funding/index.d.ts +14 -0
  480. package/dist/internal/funding/index.d.ts.map +1 -0
  481. package/dist/internal/funding/index.js +14 -0
  482. package/dist/internal/funding/index.js.map +1 -0
  483. package/dist/internal/funding/providers/across.d.ts +21 -0
  484. package/dist/internal/funding/providers/across.d.ts.map +1 -0
  485. package/dist/internal/funding/providers/across.js +117 -0
  486. package/dist/internal/funding/providers/across.js.map +1 -0
  487. package/dist/internal/funding/providers/relay.d.ts +88 -0
  488. package/dist/internal/funding/providers/relay.d.ts.map +1 -0
  489. package/dist/internal/funding/providers/relay.js +871 -0
  490. package/dist/internal/funding/providers/relay.js.map +1 -0
  491. package/dist/internal/funding/providers/rhino.d.ts +15 -0
  492. package/dist/internal/funding/providers/rhino.d.ts.map +1 -0
  493. package/dist/internal/funding/providers/rhino.js +116 -0
  494. package/dist/internal/funding/providers/rhino.js.map +1 -0
  495. package/dist/internal/funding/providers/squid.d.ts +19 -0
  496. package/dist/internal/funding/providers/squid.d.ts.map +1 -0
  497. package/dist/internal/funding/providers/squid.js +120 -0
  498. package/dist/internal/funding/providers/squid.js.map +1 -0
  499. package/dist/internal/funding/providers/symbiosis.d.ts +20 -0
  500. package/dist/internal/funding/providers/symbiosis.d.ts.map +1 -0
  501. package/dist/internal/funding/providers/symbiosis.js +176 -0
  502. package/dist/internal/funding/providers/symbiosis.js.map +1 -0
  503. package/dist/internal/index.d.ts +5 -1
  504. package/dist/internal/index.d.ts.map +1 -1
  505. package/dist/internal/index.js +5 -1
  506. package/dist/internal/index.js.map +1 -1
  507. package/dist/internal/webhookDestinations/url.js +61 -57
  508. package/dist/internal/webhookDestinations/url.js.map +1 -1
  509. package/dist/providers/index.d.ts +43 -0
  510. package/dist/providers/index.d.ts.map +1 -0
  511. package/dist/providers/index.js +19 -0
  512. package/dist/providers/index.js.map +1 -0
  513. package/package.json +10 -5
  514. package/src/ApiKey.test.ts +35 -0
  515. package/src/ApiKey.ts +27 -0
  516. package/src/ApiKeys.test.ts +40 -7
  517. package/src/ApiKeys.ts +46 -10
  518. package/src/App.test.ts +108 -15
  519. package/src/App.ts +296 -138
  520. package/src/Assets.ts +29 -4
  521. package/src/Client.test-d.ts +809 -37
  522. package/src/Scope.test.ts +19 -0
  523. package/src/Scope.ts +28 -11
  524. package/src/Webhooks.test.ts +25 -0
  525. package/src/Webhooks.ts +1 -1
  526. package/src/admin/App.test.ts +9 -2
  527. package/src/admin/App.ts +32 -9
  528. package/src/admin/apps/api-keys.test.ts +190 -22
  529. package/src/admin/apps/api-keys.ts +170 -28
  530. package/src/admin/apps/earn-vaults.test.ts +338 -0
  531. package/src/admin/apps/earn-vaults.ts +572 -0
  532. package/src/admin/apps/scopes.test.ts +16 -1
  533. package/src/admin/ui/plugin.ts +2 -2
  534. package/src/admin/ui/src/components/EarnVaultForm.tsx +137 -0
  535. package/src/admin/ui/src/components/MobileProfile.tsx +2 -2
  536. package/src/admin/ui/src/components/Page.tsx +1 -1
  537. package/src/admin/ui/src/components/ThemeToggle.tsx +1 -1
  538. package/src/admin/ui/src/lib/api-keys.ts +37 -7
  539. package/src/admin/ui/src/lib/client.ts +1 -1
  540. package/src/admin/ui/src/lib/config.ts +1 -1
  541. package/src/admin/ui/src/lib/early-access.ts +8 -9
  542. package/src/admin/ui/src/lib/earn-vaults.ts +207 -0
  543. package/src/admin/ui/src/lib/format.ts +13 -0
  544. package/src/admin/ui/src/lib/organizations.test.ts +14 -4
  545. package/src/admin/ui/src/lib/organizations.ts +7 -1
  546. package/src/admin/ui/src/lib/response.ts +22 -0
  547. package/src/admin/ui/src/lib/scopes.test.ts +19 -11
  548. package/src/admin/ui/src/lib/scopes.ts +28 -7
  549. package/src/admin/ui/src/lib/verified-tokens.ts +10 -9
  550. package/src/admin/ui/src/routeTree.gen.ts +70 -7
  551. package/src/admin/ui/src/router.tsx +2 -2
  552. package/src/admin/ui/src/routes/__root.tsx +9 -8
  553. package/src/admin/ui/src/routes/api-keys.tsx +475 -64
  554. package/src/admin/ui/src/routes/early-access.tsx +5 -12
  555. package/src/admin/ui/src/routes/earn.vaults.tsx +348 -0
  556. package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +154 -0
  557. package/src/admin/ui/src/routes/earn.vaults_.new.tsx +190 -0
  558. package/src/admin/ui/src/routes/organizations.tsx +4 -7
  559. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +56 -54
  560. package/src/admin/ui/src/routes/verified-tokens.tsx +4 -4
  561. package/src/admin/ui/vite.config.ts +4 -1
  562. package/src/admin/ui.generated.ts +113 -43
  563. package/src/analytics/Analytics.test.ts +69 -10
  564. package/src/analytics/Analytics.ts +24 -1
  565. package/src/analytics/tables/requestEvents.ts +79 -37
  566. package/src/apps/Zones.test.ts +33 -0
  567. package/src/apps/Zones.ts +40 -0
  568. package/src/apps/composition.test.ts +184 -3
  569. package/src/apps/data/App.test.ts +28 -23
  570. package/src/apps/data/App.ts +95 -36
  571. package/src/apps/data/FxOracle.ts +1 -1
  572. package/src/apps/data/index.ts +0 -1
  573. package/src/apps/data/routes/activities.test.ts +82 -6
  574. package/src/apps/data/routes/activities.ts +131 -71
  575. package/src/apps/data/routes/balances.test.ts +50 -37
  576. package/src/apps/data/routes/balances.ts +5 -5
  577. package/src/apps/data/routes/blocks.test.ts +2 -0
  578. package/src/apps/data/routes/coingecko.test.ts +22 -0
  579. package/src/apps/data/routes/coingecko.ts +84 -48
  580. package/src/apps/data/routes/earn.test.ts +1391 -0
  581. package/src/apps/data/routes/earn.ts +2188 -0
  582. package/src/apps/data/routes/exchanges.test.ts +82 -33
  583. package/src/apps/data/routes/exchanges.ts +842 -227
  584. package/src/apps/data/routes/fee-amm.test.ts +4 -6
  585. package/src/apps/data/routes/fee-amm.ts +69 -12
  586. package/src/apps/data/routes/indexer.test.ts +43 -34
  587. package/src/apps/data/routes/indexer.ts +21 -3
  588. package/src/apps/data/routes/receipts.test.ts +5 -3
  589. package/src/apps/data/routes/receipts.ts +13 -11
  590. package/src/apps/data/routes/rpc.test.ts +446 -28
  591. package/src/apps/data/routes/rpc.ts +245 -25
  592. package/src/apps/data/routes/tokenlist.ts +72 -19
  593. package/src/apps/data/routes/tokens.test.ts +6 -8
  594. package/src/apps/data/routes/tokens.ts +258 -86
  595. package/src/apps/data/routes/transactions.test.ts +2 -0
  596. package/src/apps/data/routes/transactions.ts +77 -42
  597. package/src/apps/data/routes/transfers.test.ts +166 -4
  598. package/src/apps/data/routes/transfers.ts +216 -78
  599. package/src/apps/data/routes/valuation.test.ts +62 -9
  600. package/src/apps/data/routes/valuation.ts +2 -2
  601. package/src/apps/data/routes/webhooks.test.ts +386 -43
  602. package/src/apps/data/routes/webhooks.ts +172 -71
  603. package/src/apps/data/routes/zones.test.ts +473 -0
  604. package/src/apps/data/routes/zones.ts +338 -0
  605. package/src/apps/docs/reference.ts +8 -6
  606. package/src/apps/funding/Access.ts +26 -0
  607. package/src/apps/funding/App.test.ts +78 -0
  608. package/src/apps/funding/App.ts +63 -0
  609. package/src/apps/funding/Inventory.ts +30 -0
  610. package/src/apps/funding/ProviderAttempts.ts +26 -0
  611. package/src/apps/funding/index.ts +1 -0
  612. package/src/apps/funding/routes/chains.test.ts +78 -0
  613. package/src/apps/funding/routes/chains.ts +101 -0
  614. package/src/apps/funding/routes/deposit-addresses.test.ts +1628 -0
  615. package/src/apps/funding/routes/deposit-addresses.ts +1015 -0
  616. package/src/apps/funding/routes/providers.test.ts +165 -0
  617. package/src/apps/funding/routes/providers.ts +73 -0
  618. package/src/apps/funding/routes/quotes.test.ts +511 -0
  619. package/src/apps/funding/routes/quotes.ts +205 -0
  620. package/src/apps/funding/routes/transfers.test.ts +1255 -0
  621. package/src/apps/funding/routes/transfers.ts +704 -0
  622. package/src/apps/index.ts +3 -1
  623. package/src/apps/management/Billing.test.ts +29 -0
  624. package/src/apps/management/Billing.ts +23 -0
  625. package/src/apps/management/Error.ts +12 -0
  626. package/src/apps/management/routes/api-keys.test.ts +103 -3
  627. package/src/apps/management/routes/api-keys.ts +98 -10
  628. package/src/apps/management/routes/invitations.ts +4 -11
  629. package/src/apps/management/routes/orgs.ts +2 -9
  630. package/src/apps/management/routes/scopes.test.ts +7 -2
  631. package/src/apps/management/routes/scopes.ts +2 -2
  632. package/src/apps/management/routes/webhooks.test.ts +6 -1
  633. package/src/apps/management/routes/webhooks.ts +15 -3
  634. package/src/apps/mcp.test.ts +17 -2
  635. package/src/apps/mcp.ts +18 -13
  636. package/src/apps/metadata.ts +12 -0
  637. package/src/apps/mpp/App.ts +276 -29
  638. package/src/apps/mpp/Mpp.test.ts +631 -26
  639. package/src/apps/mpp/Mpp.ts +0 -42
  640. package/src/apps/mpp/internal/Adapter.ts +108 -3
  641. package/src/apps/mpp/internal/Error.test.ts +33 -0
  642. package/src/apps/mpp/internal/Error.ts +44 -6
  643. package/src/apps/mpp/internal/Idempotency.test.ts +213 -0
  644. package/src/apps/mpp/internal/Idempotency.ts +59 -5
  645. package/src/apps/mpp/internal/Policy.test.ts +128 -0
  646. package/src/apps/mpp/internal/Policy.ts +98 -0
  647. package/src/apps/mpp/internal/ScreenManager.test.ts +68 -0
  648. package/src/apps/mpp/internal/ScreenManager.ts +41 -0
  649. package/src/apps/mpp/internal/Screening.ts +40 -3
  650. package/src/apps/mpp/internal/Sponsorship.ts +144 -0
  651. package/src/apps/mpp/internal/Utils.ts +30 -0
  652. package/src/apps/relay/App.test.ts +493 -62
  653. package/src/apps/relay/App.ts +233 -23
  654. package/src/apps/relay/Sponsorships.test.ts +49 -0
  655. package/src/apps/relay/Sponsorships.ts +18 -6
  656. package/src/cloudflare.ts +279 -0
  657. package/src/db/Db.ts +501 -0
  658. package/src/db/Schema.ts +349 -2
  659. package/src/db/tables/earnVaults.test.ts +185 -0
  660. package/src/db/tables/earnVaults.ts +151 -0
  661. package/src/db/tables/fundingCatalog.test.ts +108 -0
  662. package/src/db/tables/fundingCatalog.ts +157 -0
  663. package/src/db/tables/fundingDepositAddresses.test.ts +580 -0
  664. package/src/db/tables/fundingDepositAddresses.ts +404 -0
  665. package/src/db/tables/fundingDepositRequestObservations.test.ts +106 -0
  666. package/src/db/tables/fundingDepositRequestObservations.ts +99 -0
  667. package/src/db/tables/fundingDeposits.test.ts +399 -0
  668. package/src/db/tables/fundingDeposits.ts +373 -0
  669. package/src/db/tables/fundingIdempotency.test.ts +182 -0
  670. package/src/db/tables/fundingIdempotency.ts +180 -0
  671. package/src/db/tables/fundingTransferEvents.ts +28 -0
  672. package/src/db/tables/fundingTransferTransactions.test.ts +69 -0
  673. package/src/db/tables/fundingTransferTransactions.ts +37 -0
  674. package/src/db/tables/fundingTransfers.test.ts +89 -0
  675. package/src/db/tables/fundingTransfers.ts +153 -0
  676. package/src/db/tables/organizations.ts +16 -0
  677. package/src/db/tables/projects.ts +16 -0
  678. package/src/db/tables/requestUsage.ts +23 -0
  679. package/src/db/tables/sponsoredTransactions.test.ts +11 -0
  680. package/src/db/tables/sponsoredTransactions.ts +3 -3
  681. package/src/db/tables/users.ts +16 -0
  682. package/src/db/tables/verifiedTokens.ts +19 -14
  683. package/src/db/tables/webhookSubscriptions.ts +58 -3
  684. package/src/handlers/relay.test.ts +2 -0
  685. package/src/handlers/relay.ts +95 -99
  686. package/src/internal/Auth.test.ts +225 -5
  687. package/src/internal/Auth.ts +109 -20
  688. package/src/internal/Cache.test.ts +37 -3
  689. package/src/internal/Cache.ts +14 -10
  690. package/src/internal/Cursor.test.ts +2 -2
  691. package/src/internal/Cursor.ts +1 -1
  692. package/src/internal/EarnRates.test.ts +125 -0
  693. package/src/internal/EarnRates.ts +409 -0
  694. package/src/internal/EarnVaults.test.ts +195 -0
  695. package/src/internal/EarnVaults.ts +876 -0
  696. package/src/internal/EdgeCache.test.ts +26 -7
  697. package/src/internal/EdgeCache.ts +48 -9
  698. package/src/internal/Id.ts +14 -0
  699. package/src/internal/Idempotency.test.ts +109 -0
  700. package/src/internal/Idempotency.ts +237 -0
  701. package/src/internal/IpAllowlist.test.ts +52 -0
  702. package/src/internal/IpAllowlist.ts +39 -0
  703. package/src/internal/Log.test-d.ts +41 -8
  704. package/src/internal/Log.test.ts +196 -9
  705. package/src/internal/Log.ts +124 -17
  706. package/src/internal/MetricSink.test.ts +244 -4
  707. package/src/internal/MetricSink.ts +51 -1
  708. package/src/internal/OpenApi.ts +4 -1
  709. package/src/internal/Provider.test.ts +17 -0
  710. package/src/internal/Provider.ts +17 -0
  711. package/src/internal/Schema.ts +27 -17
  712. package/src/internal/Store.test.ts +25 -0
  713. package/src/internal/Store.ts +46 -0
  714. package/src/internal/Tidx.local.test.ts +78 -3
  715. package/src/internal/Tidx.test.ts +240 -18
  716. package/src/internal/Tidx.ts +129 -33
  717. package/src/internal/VerifiedTokens.test.ts +15 -0
  718. package/src/internal/Viem.test.ts +198 -17
  719. package/src/internal/Viem.ts +127 -28
  720. package/src/internal/WebhookDestination.ts +25 -23
  721. package/src/internal/Webhooks.test.ts +59 -0
  722. package/src/internal/Webhooks.ts +34 -10
  723. package/src/internal/exchange/Provider.test.ts +216 -0
  724. package/src/internal/exchange/Provider.ts +326 -0
  725. package/src/internal/exchange/index.test.ts +6 -0
  726. package/src/internal/exchange/index.ts +1 -0
  727. package/src/internal/exchange/providers/uniswap.test.ts +122 -0
  728. package/src/internal/exchange/providers/uniswap.ts +682 -0
  729. package/src/internal/funding/Action.test.ts +138 -0
  730. package/src/internal/funding/Action.ts +117 -0
  731. package/src/internal/funding/Catalog.test.ts +311 -0
  732. package/src/internal/funding/Catalog.ts +347 -0
  733. package/src/internal/funding/Chain.test.ts +79 -0
  734. package/src/internal/funding/Chain.ts +120 -0
  735. package/src/internal/funding/Deposit.test.ts +26 -0
  736. package/src/internal/funding/Deposit.ts +522 -0
  737. package/src/internal/funding/DepositAddress.test.ts +18 -0
  738. package/src/internal/funding/DepositAddress.ts +312 -0
  739. package/src/internal/funding/Evidence.test.ts +297 -0
  740. package/src/internal/funding/Evidence.ts +425 -0
  741. package/src/internal/funding/Provider.test.ts +1328 -0
  742. package/src/internal/funding/Provider.ts +1911 -0
  743. package/src/internal/funding/Reconciliation.local.test.ts +511 -0
  744. package/src/internal/funding/Reconciliation.test.ts +3037 -0
  745. package/src/internal/funding/Reconciliation.ts +1202 -0
  746. package/src/internal/funding/Route.test.ts +66 -0
  747. package/src/internal/funding/Route.ts +29 -0
  748. package/src/internal/funding/SourceObservation.test.ts +301 -0
  749. package/src/internal/funding/SourceObservation.ts +267 -0
  750. package/src/internal/funding/Subsidy.local.test.ts +152 -0
  751. package/src/internal/funding/Subsidy.test.ts +75 -0
  752. package/src/internal/funding/Subsidy.ts +260 -0
  753. package/src/internal/funding/Token.test.ts +47 -0
  754. package/src/internal/funding/Token.ts +59 -0
  755. package/src/internal/funding/Transfer.test.ts +369 -0
  756. package/src/internal/funding/Transfer.ts +522 -0
  757. package/src/internal/funding/index.test.ts +21 -0
  758. package/src/internal/funding/index.ts +13 -0
  759. package/src/internal/funding/providers/across.ts +149 -0
  760. package/src/{apps/data/FundingQuoteProviders.test.ts → internal/funding/providers/index.test.ts} +178 -157
  761. package/src/internal/funding/providers/relay.test.ts +564 -0
  762. package/src/internal/funding/providers/relay.ts +1060 -0
  763. package/src/internal/funding/providers/rhino.ts +139 -0
  764. package/src/internal/funding/providers/squid.ts +151 -0
  765. package/src/internal/funding/providers/symbiosis.ts +221 -0
  766. package/src/internal/index.test.ts +5 -1
  767. package/src/internal/index.ts +5 -1
  768. package/src/internal/webhookDestinations/url.ts +49 -45
  769. package/src/providers/index.test.ts +14 -0
  770. package/src/providers/index.ts +54 -0
  771. package/dist/apps/data/FundingQuoteProviders.d.ts +0 -174
  772. package/dist/apps/data/FundingQuoteProviders.d.ts.map +0 -1
  773. package/dist/apps/data/FundingQuoteProviders.js +0 -775
  774. package/dist/apps/data/FundingQuoteProviders.js.map +0 -1
  775. package/dist/apps/data/routes/funding.d.ts.map +0 -1
  776. package/dist/apps/data/routes/funding.js +0 -410
  777. package/dist/apps/data/routes/funding.js.map +0 -1
  778. package/dist/internal/FundingQuotes.d.ts +0 -864
  779. package/dist/internal/FundingQuotes.d.ts.map +0 -1
  780. package/dist/internal/FundingQuotes.js +0 -672
  781. package/dist/internal/FundingQuotes.js.map +0 -1
  782. package/src/apps/data/FundingQuoteProviders.ts +0 -1043
  783. package/src/apps/data/routes/funding.test.ts +0 -503
  784. package/src/apps/data/routes/funding.ts +0 -604
  785. package/src/internal/FundingQuotes.test.ts +0 -456
  786. package/src/internal/FundingQuotes.ts +0 -944
@@ -1,9 +1,11 @@
1
1
  import { type RequestIdVariables } from 'hono/request-id';
2
+ import type { Chain } from 'viem';
2
3
  import type * as Assets from '../Assets.js';
3
4
  import type * as Analytics from '../analytics/Analytics.js';
4
5
  import * as Db from '../db/Db.js';
5
6
  import type * as Store from '../internal/Store.js';
6
7
  import * as Response from '../internal/Response.js';
8
+ import * as Viem from '../internal/Viem.js';
7
9
  /** A verified admin identity, as returned by {@link create.Options.identify}. */
8
10
  export type Identity = {
9
11
  /** The admin's verified email, recorded as `createdBy` on every minted key. */
@@ -16,14 +18,20 @@ export type Environment = {
16
18
  analytics: Analytics.Source;
17
19
  /** Static-asset writer (e.g. the R2 icon bucket), when configured. */
18
20
  assets: create.Assets | undefined;
21
+ /** Path where the admin app is mounted. */
22
+ basePath: string;
19
23
  /** Authoritative Postgres store, or a per-request factory. Resolve at the leaf with `Db.get`. */
20
24
  db: Db.Source;
25
+ /** Gets a Tempo RPC client for a chain id. */
26
+ getClient: Viem.GetClient;
27
+ /** The admin identity, or `null` when unauthenticated (gated routes reject). */
28
+ identity: Identity | null;
21
29
  /** KV state store backing API-key records (mint/list/revoke). */
22
30
  kv: {
23
31
  store: Store.State;
24
32
  };
25
- /** The admin identity, or `null` when unauthenticated (gated routes reject). */
26
- identity: Identity | null;
33
+ /** Zone chains available to admin routes. */
34
+ zones: readonly Chain[];
27
35
  };
28
36
  };
29
37
  /** The admin portal Hono app. Inferred from {@link create}. */
@@ -130,6 +138,498 @@ export declare function create(options: create.Options): import("hono/hono-base"
130
138
  };
131
139
  };
132
140
  }, "/early-access"> | import("hono/types").MergeSchemaPath<{
141
+ "/": {
142
+ $get: {
143
+ output: {
144
+ error: {
145
+ code: "upstream_error";
146
+ details?: readonly Response.error.Detail[] | undefined;
147
+ message: string;
148
+ };
149
+ requestId: string;
150
+ };
151
+ outputFormat: "json";
152
+ status: 502;
153
+ input: {
154
+ query?: {
155
+ asset?: string | string[];
156
+ capability?: string | string[];
157
+ chainId?: string | string[];
158
+ cursor?: string | string[];
159
+ 'engine.type'?: string | string[];
160
+ limit?: string | string[];
161
+ include?: string | string[];
162
+ } | undefined;
163
+ };
164
+ } | {
165
+ output: {
166
+ data: {
167
+ access?: {
168
+ status: "allowlisted" | "open";
169
+ } | undefined;
170
+ apy?: {
171
+ asOf: string;
172
+ methodology: "share-price-growth-annualized:v1";
173
+ net: string;
174
+ window: "1d" | "1h" | "30d" | "7d";
175
+ } | null | undefined;
176
+ assetToken: {
177
+ address: `0x${string}`;
178
+ currency: string;
179
+ decimals: number;
180
+ id: string;
181
+ logoUri?: string | undefined;
182
+ name: string;
183
+ symbol: string;
184
+ verified: boolean;
185
+ };
186
+ capabilities?: {
187
+ asyncRedeem: boolean;
188
+ boundedRedeem: boolean;
189
+ deposit: boolean;
190
+ exactWithdraw: boolean;
191
+ inKindDeposit: boolean;
192
+ privateRouting: boolean;
193
+ redeem: boolean;
194
+ routerSwaps: boolean;
195
+ } | undefined;
196
+ description: string | null;
197
+ id: `0x${string}`;
198
+ instantLiquidity: string | null;
199
+ label: string;
200
+ sharePrice: {
201
+ amount: string;
202
+ currency: string;
203
+ decimals: number;
204
+ formatted: string;
205
+ } | null;
206
+ shareToken: {
207
+ address: `0x${string}`;
208
+ currency: string;
209
+ decimals: number;
210
+ id: string;
211
+ logoUri?: string | undefined;
212
+ name: string;
213
+ symbol: string;
214
+ verified: boolean;
215
+ };
216
+ state: {
217
+ depositsPaused: boolean;
218
+ engineShares: string;
219
+ feesActive: boolean;
220
+ isAccountingAligned: boolean;
221
+ openRedeemRequestCount: number;
222
+ totalAssets: string;
223
+ totalEarnShares: string;
224
+ };
225
+ tvl?: {
226
+ amount: string;
227
+ currency: string;
228
+ decimals: number;
229
+ formatted: string;
230
+ } | null | undefined;
231
+ vaultAddress: `0x${string}`;
232
+ zone?: {
233
+ chainId: number;
234
+ inputTokens: `0x${string}`[];
235
+ name: string;
236
+ outputTokens: `0x${string}`[];
237
+ } | null | undefined;
238
+ engine: {
239
+ address: `0x${string}`;
240
+ venue: `0x${string}` | null;
241
+ type: "erc4626" | "veda";
242
+ };
243
+ slug: string;
244
+ verified: true;
245
+ }[];
246
+ meta?: {
247
+ valuation?: {
248
+ asOf: string;
249
+ basis: "nominal";
250
+ source: string;
251
+ } | undefined;
252
+ } | undefined;
253
+ nextCursor: string | null;
254
+ };
255
+ outputFormat: "json";
256
+ status: 200;
257
+ input: {
258
+ query?: {
259
+ asset?: string | string[];
260
+ capability?: string | string[];
261
+ chainId?: string | string[];
262
+ cursor?: string | string[];
263
+ 'engine.type'?: string | string[];
264
+ limit?: string | string[];
265
+ include?: string | string[];
266
+ } | undefined;
267
+ };
268
+ };
269
+ };
270
+ } & {
271
+ "/:vaultId": {
272
+ $get: {
273
+ output: {
274
+ error: {
275
+ code: "upstream_error";
276
+ details?: readonly Response.error.Detail[] | undefined;
277
+ message: string;
278
+ };
279
+ requestId: string;
280
+ };
281
+ outputFormat: "json";
282
+ status: 502;
283
+ input: {
284
+ param: {
285
+ vaultId: `0x${string}`;
286
+ };
287
+ } & {
288
+ query?: {
289
+ chainId?: string | string[];
290
+ include?: string | string[];
291
+ } | undefined;
292
+ };
293
+ } | {
294
+ output: {
295
+ error: {
296
+ code: "earn_vault_not_found";
297
+ details?: readonly Response.error.Detail[] | undefined;
298
+ message: string;
299
+ };
300
+ requestId: string;
301
+ };
302
+ outputFormat: "json";
303
+ status: 404;
304
+ input: {
305
+ param: {
306
+ vaultId: `0x${string}`;
307
+ };
308
+ } & {
309
+ query?: {
310
+ chainId?: string | string[];
311
+ include?: string | string[];
312
+ } | undefined;
313
+ };
314
+ } | {
315
+ output: {
316
+ access?: {
317
+ status: "allowlisted" | "open";
318
+ } | undefined;
319
+ apy?: {
320
+ asOf: string;
321
+ methodology: "share-price-growth-annualized:v1";
322
+ net: string;
323
+ window: "1d" | "1h" | "30d" | "7d";
324
+ } | null | undefined;
325
+ assetToken: {
326
+ address: `0x${string}`;
327
+ currency: string;
328
+ decimals: number;
329
+ id: string;
330
+ logoUri?: string | undefined;
331
+ name: string;
332
+ symbol: string;
333
+ verified: boolean;
334
+ };
335
+ capabilities?: {
336
+ asyncRedeem: boolean;
337
+ boundedRedeem: boolean;
338
+ deposit: boolean;
339
+ exactWithdraw: boolean;
340
+ inKindDeposit: boolean;
341
+ privateRouting: boolean;
342
+ redeem: boolean;
343
+ routerSwaps: boolean;
344
+ } | undefined;
345
+ description: string | null;
346
+ engine: {
347
+ address: `0x${string}`;
348
+ type: "erc4626" | "veda" | null;
349
+ venue: `0x${string}` | null;
350
+ };
351
+ id: `0x${string}`;
352
+ instantLiquidity: string | null;
353
+ label: string;
354
+ sharePrice: {
355
+ amount: string;
356
+ currency: string;
357
+ decimals: number;
358
+ formatted: string;
359
+ } | null;
360
+ shareToken: {
361
+ address: `0x${string}`;
362
+ currency: string;
363
+ decimals: number;
364
+ id: string;
365
+ logoUri?: string | undefined;
366
+ name: string;
367
+ symbol: string;
368
+ verified: boolean;
369
+ };
370
+ slug: string | null;
371
+ state: {
372
+ depositsPaused: boolean;
373
+ engineShares: string;
374
+ feesActive: boolean;
375
+ isAccountingAligned: boolean;
376
+ openRedeemRequestCount: number;
377
+ totalAssets: string;
378
+ totalEarnShares: string;
379
+ };
380
+ tvl?: {
381
+ amount: string;
382
+ currency: string;
383
+ decimals: number;
384
+ formatted: string;
385
+ } | null | undefined;
386
+ vaultAddress: `0x${string}`;
387
+ verified: boolean;
388
+ zone?: {
389
+ chainId: number;
390
+ inputTokens: `0x${string}`[];
391
+ name: string;
392
+ outputTokens: `0x${string}`[];
393
+ } | null | undefined;
394
+ };
395
+ outputFormat: "json";
396
+ status: 200;
397
+ input: {
398
+ param: {
399
+ vaultId: `0x${string}`;
400
+ };
401
+ } & {
402
+ query?: {
403
+ chainId?: string | string[];
404
+ include?: string | string[];
405
+ } | undefined;
406
+ };
407
+ };
408
+ };
409
+ } & {
410
+ "/": {
411
+ $put: {
412
+ output: {
413
+ error: {
414
+ code: "upstream_error";
415
+ details?: readonly Response.error.Detail[] | undefined;
416
+ message: string;
417
+ };
418
+ requestId: string;
419
+ };
420
+ outputFormat: "json";
421
+ status: 502;
422
+ input: {
423
+ json: {
424
+ chainId: unknown;
425
+ description?: string | null | undefined;
426
+ label?: string | undefined;
427
+ privateInputTokens?: `0x${string}`[] | undefined;
428
+ privateOutputTokens?: `0x${string}`[] | undefined;
429
+ slug?: string | undefined;
430
+ vaultAddress: `0x${string}`;
431
+ };
432
+ };
433
+ } | {
434
+ output: {
435
+ error: {
436
+ code: "body_invalid";
437
+ details?: readonly Response.error.Detail[] | undefined;
438
+ message: string;
439
+ };
440
+ requestId: string;
441
+ };
442
+ outputFormat: "json";
443
+ status: 400;
444
+ input: {
445
+ json: {
446
+ chainId: unknown;
447
+ description?: string | null | undefined;
448
+ label?: string | undefined;
449
+ privateInputTokens?: `0x${string}`[] | undefined;
450
+ privateOutputTokens?: `0x${string}`[] | undefined;
451
+ slug?: string | undefined;
452
+ vaultAddress: `0x${string}`;
453
+ };
454
+ };
455
+ } | {
456
+ output: {
457
+ error: {
458
+ code: "earn_vault_not_found";
459
+ details?: readonly Response.error.Detail[] | undefined;
460
+ message: string;
461
+ };
462
+ requestId: string;
463
+ };
464
+ outputFormat: "json";
465
+ status: 404;
466
+ input: {
467
+ json: {
468
+ chainId: unknown;
469
+ description?: string | null | undefined;
470
+ label?: string | undefined;
471
+ privateInputTokens?: `0x${string}`[] | undefined;
472
+ privateOutputTokens?: `0x${string}`[] | undefined;
473
+ slug?: string | undefined;
474
+ vaultAddress: `0x${string}`;
475
+ };
476
+ };
477
+ } | {
478
+ output: {
479
+ error: {
480
+ code: "earn_vault_verification_failed";
481
+ details?: readonly Response.error.Detail[] | undefined;
482
+ message: string;
483
+ };
484
+ requestId: string;
485
+ };
486
+ outputFormat: "json";
487
+ status: 409;
488
+ input: {
489
+ json: {
490
+ chainId: unknown;
491
+ description?: string | null | undefined;
492
+ label?: string | undefined;
493
+ privateInputTokens?: `0x${string}`[] | undefined;
494
+ privateOutputTokens?: `0x${string}`[] | undefined;
495
+ slug?: string | undefined;
496
+ vaultAddress: `0x${string}`;
497
+ };
498
+ };
499
+ } | {
500
+ output: {
501
+ access?: {
502
+ status: "allowlisted" | "open";
503
+ } | undefined;
504
+ apy?: {
505
+ asOf: string;
506
+ methodology: "share-price-growth-annualized:v1";
507
+ net: string;
508
+ window: "1d" | "1h" | "30d" | "7d";
509
+ } | null | undefined;
510
+ assetToken: {
511
+ address: `0x${string}`;
512
+ currency: string;
513
+ decimals: number;
514
+ id: string;
515
+ logoUri?: string | undefined;
516
+ name: string;
517
+ symbol: string;
518
+ verified: boolean;
519
+ };
520
+ capabilities?: {
521
+ asyncRedeem: boolean;
522
+ boundedRedeem: boolean;
523
+ deposit: boolean;
524
+ exactWithdraw: boolean;
525
+ inKindDeposit: boolean;
526
+ privateRouting: boolean;
527
+ redeem: boolean;
528
+ routerSwaps: boolean;
529
+ } | undefined;
530
+ description: string | null;
531
+ id: `0x${string}`;
532
+ instantLiquidity: string | null;
533
+ label: string;
534
+ sharePrice: {
535
+ amount: string;
536
+ currency: string;
537
+ decimals: number;
538
+ formatted: string;
539
+ } | null;
540
+ shareToken: {
541
+ address: `0x${string}`;
542
+ currency: string;
543
+ decimals: number;
544
+ id: string;
545
+ logoUri?: string | undefined;
546
+ name: string;
547
+ symbol: string;
548
+ verified: boolean;
549
+ };
550
+ state: {
551
+ depositsPaused: boolean;
552
+ engineShares: string;
553
+ feesActive: boolean;
554
+ isAccountingAligned: boolean;
555
+ openRedeemRequestCount: number;
556
+ totalAssets: string;
557
+ totalEarnShares: string;
558
+ };
559
+ tvl?: {
560
+ amount: string;
561
+ currency: string;
562
+ decimals: number;
563
+ formatted: string;
564
+ } | null | undefined;
565
+ vaultAddress: `0x${string}`;
566
+ zone?: {
567
+ chainId: number;
568
+ inputTokens: `0x${string}`[];
569
+ name: string;
570
+ outputTokens: `0x${string}`[];
571
+ } | null | undefined;
572
+ engine: {
573
+ address: `0x${string}`;
574
+ venue: `0x${string}` | null;
575
+ type: "erc4626" | "veda";
576
+ };
577
+ slug: string;
578
+ verified: true;
579
+ };
580
+ outputFormat: "json";
581
+ status: 200;
582
+ input: {
583
+ json: {
584
+ chainId: unknown;
585
+ description?: string | null | undefined;
586
+ label?: string | undefined;
587
+ privateInputTokens?: `0x${string}`[] | undefined;
588
+ privateOutputTokens?: `0x${string}`[] | undefined;
589
+ slug?: string | undefined;
590
+ vaultAddress: `0x${string}`;
591
+ };
592
+ };
593
+ };
594
+ };
595
+ } & {
596
+ "/:vaultId": {
597
+ $delete: {
598
+ output: null;
599
+ outputFormat: "body";
600
+ status: 204;
601
+ input: {
602
+ param: {
603
+ vaultId: `0x${string}`;
604
+ };
605
+ } & {
606
+ query: {
607
+ chainId: string | string[];
608
+ };
609
+ };
610
+ } | {
611
+ output: {
612
+ error: {
613
+ code: "earn_vault_not_found";
614
+ details?: readonly Response.error.Detail[] | undefined;
615
+ message: string;
616
+ };
617
+ requestId: string;
618
+ };
619
+ outputFormat: "json";
620
+ status: 404;
621
+ input: {
622
+ param: {
623
+ vaultId: `0x${string}`;
624
+ };
625
+ } & {
626
+ query: {
627
+ chainId: string | string[];
628
+ };
629
+ };
630
+ };
631
+ };
632
+ }, "/earn/verified-vaults"> | import("hono/types").MergeSchemaPath<{
133
633
  "/backfill": {
134
634
  $post: {
135
635
  output: {
@@ -145,6 +645,59 @@ export declare function create(options: create.Options): import("hono/hono-base"
145
645
  "/": {
146
646
  $post: {
147
647
  output: {
648
+ error: {
649
+ code: "upstream_error";
650
+ details?: readonly Response.error.Detail[] | undefined;
651
+ message: string;
652
+ };
653
+ requestId: string;
654
+ };
655
+ outputFormat: "json";
656
+ status: 502;
657
+ input: {
658
+ json: {
659
+ allowedIps?: readonly string[] | undefined;
660
+ billingActive?: boolean | undefined;
661
+ environment?: "production" | "sandbox" | undefined;
662
+ projectId?: string | undefined;
663
+ rateLimits?: Record<string, {
664
+ perMinute: number;
665
+ }> | undefined;
666
+ expiresAt?: string | undefined;
667
+ orgId?: string | undefined;
668
+ name: string;
669
+ scopes: readonly ("*" | "data:read" | "funding:read" | "funding:write" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | `zone:${number}:read` | `zone:${number}:write`)[];
670
+ };
671
+ };
672
+ } | {
673
+ output: {
674
+ error: {
675
+ code: "not_found";
676
+ details?: readonly Response.error.Detail[] | undefined;
677
+ message: string;
678
+ };
679
+ requestId: string;
680
+ };
681
+ outputFormat: "json";
682
+ status: 404;
683
+ input: {
684
+ json: {
685
+ allowedIps?: readonly string[] | undefined;
686
+ billingActive?: boolean | undefined;
687
+ environment?: "production" | "sandbox" | undefined;
688
+ projectId?: string | undefined;
689
+ rateLimits?: Record<string, {
690
+ perMinute: number;
691
+ }> | undefined;
692
+ expiresAt?: string | undefined;
693
+ orgId?: string | undefined;
694
+ name: string;
695
+ scopes: readonly ("*" | "data:read" | "funding:read" | "funding:write" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | `zone:${number}:read` | `zone:${number}:write`)[];
696
+ };
697
+ };
698
+ } | {
699
+ output: {
700
+ allowedIps: readonly string[];
148
701
  billingActive?: boolean | undefined;
149
702
  environment: "production" | "sandbox";
150
703
  id: string;
@@ -167,16 +720,17 @@ export declare function create(options: create.Options): import("hono/hono-base"
167
720
  status: import("hono/utils/http-status").ContentfulStatusCode;
168
721
  input: {
169
722
  json: {
723
+ allowedIps?: readonly string[] | undefined;
170
724
  billingActive?: boolean | undefined;
171
725
  environment?: "production" | "sandbox" | undefined;
172
- name?: string | undefined;
173
726
  projectId?: string | undefined;
174
727
  rateLimits?: Record<string, {
175
728
  perMinute: number;
176
729
  }> | undefined;
177
730
  expiresAt?: string | undefined;
178
731
  orgId?: string | undefined;
179
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | `zone:${number}:read`)[];
732
+ name: string;
733
+ scopes: readonly ("*" | "data:read" | "funding:read" | "funding:write" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | `zone:${number}:read` | `zone:${number}:write`)[];
180
734
  };
181
735
  };
182
736
  };
@@ -186,6 +740,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
186
740
  $get: {
187
741
  output: {
188
742
  data: {
743
+ allowedIps: readonly string[];
189
744
  billingActive?: boolean | undefined;
190
745
  environment: "production" | "sandbox";
191
746
  id: string;
@@ -202,6 +757,9 @@ export declare function create(options: create.Options): import("hono/hono-base"
202
757
  createdBy?: string | undefined;
203
758
  expiresAt?: string | undefined;
204
759
  tokenLast4: string;
760
+ createdByLabel: string | null;
761
+ organizationName: string | null;
762
+ projectName: string | null;
205
763
  }[];
206
764
  };
207
765
  outputFormat: "json";
@@ -263,12 +821,38 @@ export declare function create(options: create.Options): import("hono/hono-base"
263
821
  };
264
822
  } & {
265
823
  json: {
824
+ allowedIps?: readonly string[] | undefined;
825
+ name?: string | undefined;
266
826
  orgId?: string | undefined;
267
827
  projectId?: string | undefined;
268
828
  };
269
829
  };
270
830
  } | {
271
831
  output: {
832
+ error: {
833
+ code: "organization_already_assigned";
834
+ details?: readonly Response.error.Detail[] | undefined;
835
+ message: string;
836
+ };
837
+ requestId: string;
838
+ };
839
+ outputFormat: "json";
840
+ status: 409;
841
+ input: {
842
+ param: {
843
+ id: string;
844
+ };
845
+ } & {
846
+ json: {
847
+ allowedIps?: readonly string[] | undefined;
848
+ name?: string | undefined;
849
+ orgId?: string | undefined;
850
+ projectId?: string | undefined;
851
+ };
852
+ };
853
+ } | {
854
+ output: {
855
+ allowedIps: readonly string[];
272
856
  billingActive?: boolean | undefined;
273
857
  environment: "production" | "sandbox";
274
858
  id: string;
@@ -294,6 +878,8 @@ export declare function create(options: create.Options): import("hono/hono-base"
294
878
  };
295
879
  } & {
296
880
  json: {
881
+ allowedIps?: readonly string[] | undefined;
882
+ name?: string | undefined;
297
883
  orgId?: string | undefined;
298
884
  projectId?: string | undefined;
299
885
  };
@@ -705,6 +1291,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
705
1291
  } | {
706
1292
  output: {
707
1293
  data: {
1294
+ allowedIps: readonly string[];
708
1295
  billingActive?: boolean | undefined;
709
1296
  environment: "production" | "sandbox";
710
1297
  id: string;
@@ -968,14 +1555,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
968
1555
  $post: {
969
1556
  output: {
970
1557
  error: {
971
- code: string;
1558
+ code: "upstream_error";
972
1559
  details?: readonly Response.error.Detail[] | undefined;
973
1560
  message: string;
974
1561
  };
975
1562
  requestId: string;
976
1563
  };
977
1564
  outputFormat: "json";
978
- status: 400 | 413 | 415;
1565
+ status: 502;
979
1566
  input: {
980
1567
  json: {
981
1568
  address: `0x${string}`;
@@ -991,14 +1578,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
991
1578
  } | {
992
1579
  output: {
993
1580
  error: {
994
- code: "upstream_error";
1581
+ code: "verified_token_not_found";
995
1582
  details?: readonly Response.error.Detail[] | undefined;
996
1583
  message: string;
997
1584
  };
998
1585
  requestId: string;
999
1586
  };
1000
1587
  outputFormat: "json";
1001
- status: 502;
1588
+ status: 404;
1002
1589
  input: {
1003
1590
  json: {
1004
1591
  address: `0x${string}`;
@@ -1014,7 +1601,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
1014
1601
  } | {
1015
1602
  output: {
1016
1603
  error: {
1017
- code: "verified_token_not_found";
1604
+ code: "assets_not_enabled";
1018
1605
  details?: readonly Response.error.Detail[] | undefined;
1019
1606
  message: string;
1020
1607
  };
@@ -1036,15 +1623,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
1036
1623
  };
1037
1624
  } | {
1038
1625
  output: {
1039
- error: {
1040
- code: "assets_not_enabled";
1041
- details?: readonly Response.error.Detail[] | undefined;
1042
- message: string;
1626
+ data: {
1627
+ address: `0x${string}`;
1628
+ currency: string;
1629
+ decimals: number;
1630
+ logoUri?: string | undefined;
1631
+ name: string;
1632
+ symbol: string;
1633
+ id: string;
1043
1634
  };
1044
- requestId: string;
1635
+ version: string;
1045
1636
  };
1046
1637
  outputFormat: "json";
1047
- status: 404;
1638
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1048
1639
  input: {
1049
1640
  json: {
1050
1641
  address: `0x${string}`;
@@ -1059,19 +1650,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
1059
1650
  };
1060
1651
  } | {
1061
1652
  output: {
1062
- data: {
1063
- address: `0x${string}`;
1064
- currency: string;
1065
- decimals: number;
1066
- logoUri?: string | undefined;
1067
- name: string;
1068
- symbol: string;
1069
- id: string;
1653
+ error: {
1654
+ code: string;
1655
+ details?: readonly Response.error.Detail[] | undefined;
1656
+ message: string;
1070
1657
  };
1071
- version: string;
1658
+ requestId: string;
1072
1659
  };
1073
1660
  outputFormat: "json";
1074
- status: import("hono/utils/http-status").ContentfulStatusCode;
1661
+ status: 400 | 413 | 415;
1075
1662
  input: {
1076
1663
  json: {
1077
1664
  address: `0x${string}`;
@@ -1160,14 +1747,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1160
1747
  $put: {
1161
1748
  output: {
1162
1749
  error: {
1163
- code: string;
1750
+ code: "upstream_error";
1164
1751
  details?: readonly Response.error.Detail[] | undefined;
1165
1752
  message: string;
1166
1753
  };
1167
1754
  requestId: string;
1168
1755
  };
1169
1756
  outputFormat: "json";
1170
- status: 400 | 413 | 415;
1757
+ status: 502;
1171
1758
  input: {
1172
1759
  query: {
1173
1760
  chainId: string | string[];
@@ -1187,14 +1774,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1187
1774
  } | {
1188
1775
  output: {
1189
1776
  error: {
1190
- code: "upstream_error";
1777
+ code: "verified_token_not_found";
1191
1778
  details?: readonly Response.error.Detail[] | undefined;
1192
1779
  message: string;
1193
1780
  };
1194
1781
  requestId: string;
1195
1782
  };
1196
1783
  outputFormat: "json";
1197
- status: 502;
1784
+ status: 404;
1198
1785
  input: {
1199
1786
  query: {
1200
1787
  chainId: string | string[];
@@ -1214,14 +1801,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1214
1801
  } | {
1215
1802
  output: {
1216
1803
  error: {
1217
- code: "verified_token_not_found";
1804
+ code: string;
1218
1805
  details?: readonly Response.error.Detail[] | undefined;
1219
1806
  message: string;
1220
1807
  };
1221
1808
  requestId: string;
1222
1809
  };
1223
1810
  outputFormat: "json";
1224
- status: 404;
1811
+ status: 400 | 413 | 415;
1225
1812
  input: {
1226
1813
  query: {
1227
1814
  chainId: string | string[];
@@ -1357,14 +1944,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1357
1944
  $patch: {
1358
1945
  output: {
1359
1946
  error: {
1360
- code: string;
1947
+ code: "upstream_error";
1361
1948
  details?: readonly Response.error.Detail[] | undefined;
1362
1949
  message: string;
1363
1950
  };
1364
1951
  requestId: string;
1365
1952
  };
1366
1953
  outputFormat: "json";
1367
- status: 400 | 413 | 415;
1954
+ status: 502;
1368
1955
  input: {
1369
1956
  param: {
1370
1957
  address: `0x${string}`;
@@ -1385,14 +1972,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1385
1972
  } | {
1386
1973
  output: {
1387
1974
  error: {
1388
- code: "upstream_error";
1975
+ code: "verified_token_not_found";
1389
1976
  details?: readonly Response.error.Detail[] | undefined;
1390
1977
  message: string;
1391
1978
  };
1392
1979
  requestId: string;
1393
1980
  };
1394
1981
  outputFormat: "json";
1395
- status: 502;
1982
+ status: 404;
1396
1983
  input: {
1397
1984
  param: {
1398
1985
  address: `0x${string}`;
@@ -1412,15 +1999,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
1412
1999
  };
1413
2000
  } | {
1414
2001
  output: {
1415
- error: {
1416
- code: "verified_token_not_found";
1417
- details?: readonly Response.error.Detail[] | undefined;
1418
- message: string;
2002
+ data: {
2003
+ address: `0x${string}`;
2004
+ currency: string;
2005
+ decimals: number;
2006
+ logoUri?: string | undefined;
2007
+ name: string;
2008
+ symbol: string;
2009
+ id: string;
1419
2010
  };
1420
- requestId: string;
2011
+ version: string;
1421
2012
  };
1422
2013
  outputFormat: "json";
1423
- status: 404;
2014
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1424
2015
  input: {
1425
2016
  param: {
1426
2017
  address: `0x${string}`;
@@ -1440,19 +2031,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
1440
2031
  };
1441
2032
  } | {
1442
2033
  output: {
1443
- data: {
1444
- address: `0x${string}`;
1445
- currency: string;
1446
- decimals: number;
1447
- logoUri?: string | undefined;
1448
- name: string;
1449
- symbol: string;
1450
- id: string;
2034
+ error: {
2035
+ code: string;
2036
+ details?: readonly Response.error.Detail[] | undefined;
2037
+ message: string;
1451
2038
  };
1452
- version: string;
2039
+ requestId: string;
1453
2040
  };
1454
2041
  outputFormat: "json";
1455
- status: import("hono/utils/http-status").ContentfulStatusCode;
2042
+ status: 400 | 413 | 415;
1456
2043
  input: {
1457
2044
  param: {
1458
2045
  address: `0x${string}`;
@@ -1561,14 +2148,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1561
2148
  $delete: {
1562
2149
  output: {
1563
2150
  error: {
1564
- code: string;
2151
+ code: "upstream_error";
1565
2152
  details?: readonly Response.error.Detail[] | undefined;
1566
2153
  message: string;
1567
2154
  };
1568
2155
  requestId: string;
1569
2156
  };
1570
2157
  outputFormat: "json";
1571
- status: 400 | 413 | 415;
2158
+ status: 502;
1572
2159
  input: {
1573
2160
  param: {
1574
2161
  address: `0x${string}`;
@@ -1581,14 +2168,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1581
2168
  } | {
1582
2169
  output: {
1583
2170
  error: {
1584
- code: "upstream_error";
2171
+ code: "verified_token_not_found";
1585
2172
  details?: readonly Response.error.Detail[] | undefined;
1586
2173
  message: string;
1587
2174
  };
1588
2175
  requestId: string;
1589
2176
  };
1590
2177
  outputFormat: "json";
1591
- status: 502;
2178
+ status: 404;
1592
2179
  input: {
1593
2180
  param: {
1594
2181
  address: `0x${string}`;
@@ -1601,14 +2188,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1601
2188
  } | {
1602
2189
  output: {
1603
2190
  error: {
1604
- code: "verified_token_not_found";
2191
+ code: string;
1605
2192
  details?: readonly Response.error.Detail[] | undefined;
1606
2193
  message: string;
1607
2194
  };
1608
2195
  requestId: string;
1609
2196
  };
1610
2197
  outputFormat: "json";
1611
- status: 404;
2198
+ status: 400 | 413 | 415;
1612
2199
  input: {
1613
2200
  param: {
1614
2201
  address: `0x${string}`;
@@ -1872,14 +2459,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1872
2459
  $post: {
1873
2460
  output: {
1874
2461
  error: {
1875
- code: string;
2462
+ code: "upstream_error";
1876
2463
  details?: readonly Response.error.Detail[] | undefined;
1877
2464
  message: string;
1878
2465
  };
1879
2466
  requestId: string;
1880
2467
  };
1881
2468
  outputFormat: "json";
1882
- status: 400 | 413 | 415;
2469
+ status: 502;
1883
2470
  input: {
1884
2471
  param: {
1885
2472
  requestId: string;
@@ -1888,14 +2475,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1888
2475
  } | {
1889
2476
  output: {
1890
2477
  error: {
1891
- code: "upstream_error";
2478
+ code: "verified_token_not_found";
1892
2479
  details?: readonly Response.error.Detail[] | undefined;
1893
2480
  message: string;
1894
2481
  };
1895
2482
  requestId: string;
1896
2483
  };
1897
2484
  outputFormat: "json";
1898
- status: 502;
2485
+ status: 404;
1899
2486
  input: {
1900
2487
  param: {
1901
2488
  requestId: string;
@@ -1936,7 +2523,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
1936
2523
  } | {
1937
2524
  output: {
1938
2525
  error: {
1939
- code: "verified_token_not_found";
2526
+ code: "assets_not_enabled";
1940
2527
  details?: readonly Response.error.Detail[] | undefined;
1941
2528
  message: string;
1942
2529
  };
@@ -1952,14 +2539,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1952
2539
  } | {
1953
2540
  output: {
1954
2541
  error: {
1955
- code: "assets_not_enabled";
2542
+ code: string;
1956
2543
  details?: readonly Response.error.Detail[] | undefined;
1957
2544
  message: string;
1958
2545
  };
1959
2546
  requestId: string;
1960
2547
  };
1961
2548
  outputFormat: "json";
1962
- status: 404;
2549
+ status: 400 | 413 | 415;
1963
2550
  input: {
1964
2551
  param: {
1965
2552
  requestId: string;
@@ -2051,14 +2638,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2051
2638
  $post: {
2052
2639
  output: {
2053
2640
  error: {
2054
- code: string;
2641
+ code: "upstream_error";
2055
2642
  details?: readonly Response.error.Detail[] | undefined;
2056
2643
  message: string;
2057
2644
  };
2058
2645
  requestId: string;
2059
2646
  };
2060
2647
  outputFormat: "json";
2061
- status: 400 | 413 | 415;
2648
+ status: 502;
2062
2649
  input: {
2063
2650
  param: {
2064
2651
  requestId: string;
@@ -2071,14 +2658,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2071
2658
  } | {
2072
2659
  output: {
2073
2660
  error: {
2074
- code: "upstream_error";
2661
+ code: "verified_token_not_found";
2075
2662
  details?: readonly Response.error.Detail[] | undefined;
2076
2663
  message: string;
2077
2664
  };
2078
2665
  requestId: string;
2079
2666
  };
2080
2667
  outputFormat: "json";
2081
- status: 502;
2668
+ status: 404;
2082
2669
  input: {
2083
2670
  param: {
2084
2671
  requestId: string;
@@ -2131,14 +2718,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2131
2718
  } | {
2132
2719
  output: {
2133
2720
  error: {
2134
- code: "verified_token_not_found";
2721
+ code: string;
2135
2722
  details?: readonly Response.error.Detail[] | undefined;
2136
2723
  message: string;
2137
2724
  };
2138
2725
  requestId: string;
2139
2726
  };
2140
2727
  outputFormat: "json";
2141
- status: 404;
2728
+ status: 400 | 413 | 415;
2142
2729
  input: {
2143
2730
  param: {
2144
2731
  requestId: string;
@@ -2285,6 +2872,12 @@ export declare namespace create {
2285
2872
  * (`() => Db.postgres(...)`) on Workers.
2286
2873
  */
2287
2874
  db: Db.Source;
2875
+ /**
2876
+ * Extracts the verified admin identity from a request, or `null` to deny.
2877
+ * Must only return an identity for an already-authenticated request (a
2878
+ * verified Access JWT, or a header set by a trusted proxy).
2879
+ */
2880
+ identify: (request: Request) => Identity | null | Promise<Identity | null>;
2288
2881
  /**
2289
2882
  * KV state store backing API-key records (shared with the main API's
2290
2883
  * `kv` option), provisioned against by the `/api-keys` routes.
@@ -2292,17 +2885,15 @@ export declare namespace create {
2292
2885
  kv: {
2293
2886
  store: Store.State;
2294
2887
  };
2295
- /**
2296
- * Extracts the verified admin identity from a request, or `null` to deny.
2297
- * Must only return an identity for an already-authenticated request (a
2298
- * verified Access JWT, or a header set by a trusted proxy).
2299
- */
2300
- identify: (request: Request) => Identity | null | Promise<Identity | null>;
2888
+ /** Tempo RPC options used by onchain verification. */
2889
+ rpc?: Viem.getClient.Rpc | undefined;
2301
2890
  /**
2302
2891
  * Admin UI options, or `false` to disable the bundled UI (JSON API only).
2303
2892
  * `loginUrl`/`logoutUrl` are surfaced in `GET /config.json`.
2304
2893
  */
2305
2894
  ui?: Ui | false | undefined;
2895
+ /** Zone chains available to admin routes. Pass true to use the hosted Zone list. */
2896
+ zones?: true | readonly Chain[] | undefined;
2306
2897
  };
2307
2898
  /** Admin UI options surfaced to the SPA via `GET /config.json`. */
2308
2899
  type Ui = {