tapimo 0.13.0 → 0.15.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 (1143) hide show
  1. package/README.md +7 -4
  2. package/dist/ApiKey.js +1 -1
  3. package/dist/ApiKey.js.map +1 -1
  4. package/dist/ApiKeys.d.ts +95 -14
  5. package/dist/ApiKeys.d.ts.map +1 -1
  6. package/dist/ApiKeys.js +360 -49
  7. package/dist/ApiKeys.js.map +1 -1
  8. package/dist/App.d.ts +21383 -18056
  9. package/dist/App.d.ts.map +1 -1
  10. package/dist/App.js +301 -22
  11. package/dist/App.js.map +1 -1
  12. package/dist/Assets.d.ts.map +1 -1
  13. package/dist/Assets.js +2 -1
  14. package/dist/Assets.js.map +1 -1
  15. package/dist/Handler.d.ts +0 -1
  16. package/dist/Handler.d.ts.map +1 -1
  17. package/dist/Handler.js +0 -1
  18. package/dist/Handler.js.map +1 -1
  19. package/dist/Scope.d.ts +13 -5
  20. package/dist/Scope.d.ts.map +1 -1
  21. package/dist/Scope.js +16 -5
  22. package/dist/Scope.js.map +1 -1
  23. package/dist/Webhooks.js +2 -2
  24. package/dist/Webhooks.js.map +1 -1
  25. package/dist/admin/App.d.ts +3936 -1337
  26. package/dist/admin/App.d.ts.map +1 -1
  27. package/dist/admin/App.js +26 -5
  28. package/dist/admin/App.js.map +1 -1
  29. package/dist/admin/apps/api-keys.d.ts +159 -7
  30. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  31. package/dist/admin/apps/api-keys.js +95 -43
  32. package/dist/admin/apps/api-keys.js.map +1 -1
  33. package/dist/admin/apps/earn-vaults.d.ts +1446 -0
  34. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  35. package/dist/admin/apps/earn-vaults.js +465 -8
  36. package/dist/admin/apps/earn-vaults.js.map +1 -1
  37. package/dist/admin/apps/organizations.d.ts +344 -3
  38. package/dist/admin/apps/organizations.d.ts.map +1 -1
  39. package/dist/admin/apps/organizations.js +288 -10
  40. package/dist/admin/apps/organizations.js.map +1 -1
  41. package/dist/admin/apps/routes-support.d.ts +95 -0
  42. package/dist/admin/apps/routes-support.d.ts.map +1 -0
  43. package/dist/admin/apps/routes-support.js +151 -0
  44. package/dist/admin/apps/routes-support.js.map +1 -0
  45. package/dist/admin/apps/routes.d.ts +2764 -0
  46. package/dist/admin/apps/routes.d.ts.map +1 -0
  47. package/dist/admin/apps/routes.js +728 -0
  48. package/dist/admin/apps/routes.js.map +1 -0
  49. package/dist/admin/apps/subsidies.d.ts +501 -0
  50. package/dist/admin/apps/subsidies.d.ts.map +1 -0
  51. package/dist/admin/apps/subsidies.js +384 -0
  52. package/dist/admin/apps/subsidies.js.map +1 -0
  53. package/dist/admin/apps/verified-tokens.d.ts +16 -16
  54. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  55. package/dist/admin/apps/verified-tokens.js +3 -3
  56. package/dist/admin/apps/verified-tokens.js.map +1 -1
  57. package/dist/admin/ui.generated.d.ts +1 -1
  58. package/dist/admin/ui.generated.d.ts.map +1 -1
  59. package/dist/admin/ui.generated.js +129 -69
  60. package/dist/admin/ui.generated.js.map +1 -1
  61. package/dist/analytics/Analytics.d.ts +5 -2
  62. package/dist/analytics/Analytics.d.ts.map +1 -1
  63. package/dist/analytics/Analytics.js +31 -1
  64. package/dist/analytics/Analytics.js.map +1 -1
  65. package/dist/analytics/tables/requestEvents.d.ts +2 -1
  66. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  67. package/dist/analytics/tables/requestEvents.js +10 -1
  68. package/dist/analytics/tables/requestEvents.js.map +1 -1
  69. package/dist/analytics/tables/routesLifecycleIntervals.d.ts +72 -0
  70. package/dist/analytics/tables/routesLifecycleIntervals.d.ts.map +1 -0
  71. package/dist/analytics/tables/routesLifecycleIntervals.js +56 -0
  72. package/dist/analytics/tables/routesLifecycleIntervals.js.map +1 -0
  73. package/dist/apps/Zones.d.ts +21 -12526
  74. package/dist/apps/Zones.d.ts.map +1 -1
  75. package/dist/apps/Zones.js +40 -8
  76. package/dist/apps/Zones.js.map +1 -1
  77. package/dist/apps/data/App.d.ts +4310 -2548
  78. package/dist/apps/data/App.d.ts.map +1 -1
  79. package/dist/apps/data/App.js +86 -26
  80. package/dist/apps/data/App.js.map +1 -1
  81. package/dist/apps/data/routes/activities.d.ts +364 -34
  82. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  83. package/dist/apps/data/routes/activities.js +495 -190
  84. package/dist/apps/data/routes/activities.js.map +1 -1
  85. package/dist/apps/data/routes/addresses.d.ts +94 -22
  86. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  87. package/dist/apps/data/routes/blocks.d.ts +37 -37
  88. package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
  89. package/dist/apps/data/routes/coingecko.js +47 -21
  90. package/dist/apps/data/routes/coingecko.js.map +1 -1
  91. package/dist/apps/data/routes/earn.d.ts +1641 -352
  92. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  93. package/dist/apps/data/routes/earn.js +1561 -120
  94. package/dist/apps/data/routes/earn.js.map +1 -1
  95. package/dist/apps/data/routes/exchanges.d.ts +15 -0
  96. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  97. package/dist/apps/data/routes/exchanges.js +180 -114
  98. package/dist/apps/data/routes/exchanges.js.map +1 -1
  99. package/dist/apps/data/routes/fee-amm.d.ts +5 -0
  100. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  101. package/dist/apps/data/routes/fee-amm.js +49 -38
  102. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  103. package/dist/apps/data/routes/indexer.d.ts +125 -0
  104. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  105. package/dist/apps/data/routes/indexer.js +83 -27
  106. package/dist/apps/data/routes/indexer.js.map +1 -1
  107. package/dist/apps/data/routes/rpc.d.ts +507 -33
  108. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  109. package/dist/apps/data/routes/rpc.js +266 -156
  110. package/dist/apps/data/routes/rpc.js.map +1 -1
  111. package/dist/apps/data/routes/tokenlist.d.ts +47 -15
  112. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  113. package/dist/apps/data/routes/tokenlist.js +68 -11
  114. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  115. package/dist/apps/data/routes/tokens.d.ts +95 -93
  116. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  117. package/dist/apps/data/routes/tokens.js +26 -14
  118. package/dist/apps/data/routes/tokens.js.map +1 -1
  119. package/dist/apps/data/routes/transfers.d.ts +16 -0
  120. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  121. package/dist/apps/data/routes/transfers.js +9 -7
  122. package/dist/apps/data/routes/transfers.js.map +1 -1
  123. package/dist/apps/data/routes/verified-tokens.d.ts +4 -4
  124. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
  125. package/dist/apps/data/routes/verified-tokens.js +64 -20
  126. package/dist/apps/data/routes/verified-tokens.js.map +1 -1
  127. package/dist/apps/data/routes/webhooks.d.ts +1210 -70
  128. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  129. package/dist/apps/data/routes/webhooks.js +301 -163
  130. package/dist/apps/data/routes/webhooks.js.map +1 -1
  131. package/dist/apps/data/routes/zones.d.ts.map +1 -1
  132. package/dist/apps/data/routes/zones.js +20 -12
  133. package/dist/apps/data/routes/zones.js.map +1 -1
  134. package/dist/apps/docs/reference.js +2 -2
  135. package/dist/apps/docs/reference.js.map +1 -1
  136. package/dist/apps/index.d.ts +1 -1
  137. package/dist/apps/index.d.ts.map +1 -1
  138. package/dist/apps/index.js +1 -1
  139. package/dist/apps/index.js.map +1 -1
  140. package/dist/apps/management/App.d.ts +4119 -3297
  141. package/dist/apps/management/App.d.ts.map +1 -1
  142. package/dist/apps/management/App.js +5 -14
  143. package/dist/apps/management/App.js.map +1 -1
  144. package/dist/apps/management/Billing.d.ts +49 -8
  145. package/dist/apps/management/Billing.d.ts.map +1 -1
  146. package/dist/apps/management/Billing.js +221 -26
  147. package/dist/apps/management/Billing.js.map +1 -1
  148. package/dist/apps/management/routes/api-keys.d.ts +174 -72
  149. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  150. package/dist/apps/management/routes/api-keys.js +43 -15
  151. package/dist/apps/management/routes/api-keys.js.map +1 -1
  152. package/dist/apps/management/routes/billing.d.ts +364 -78
  153. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  154. package/dist/apps/management/routes/billing.js +274 -49
  155. package/dist/apps/management/routes/billing.js.map +1 -1
  156. package/dist/apps/management/routes/faucet.d.ts +6 -6
  157. package/dist/apps/management/routes/faucet.js +1 -1
  158. package/dist/apps/management/routes/faucet.js.map +1 -1
  159. package/dist/apps/management/routes/invitations.d.ts +99 -24
  160. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  161. package/dist/apps/management/routes/invitations.js +117 -13
  162. package/dist/apps/management/routes/invitations.js.map +1 -1
  163. package/dist/apps/management/routes/invite-links.d.ts +42 -42
  164. package/dist/apps/management/routes/me.d.ts.map +1 -1
  165. package/dist/apps/management/routes/me.js +6 -2
  166. package/dist/apps/management/routes/me.js.map +1 -1
  167. package/dist/apps/management/routes/members.d.ts +16 -16
  168. package/dist/apps/management/routes/orgs.d.ts +36 -20
  169. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  170. package/dist/apps/management/routes/orgs.js +52 -12
  171. package/dist/apps/management/routes/orgs.js.map +1 -1
  172. package/dist/apps/management/routes/projects.d.ts +40 -40
  173. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  174. package/dist/apps/management/routes/projects.js +6 -1
  175. package/dist/apps/management/routes/projects.js.map +1 -1
  176. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  177. package/dist/apps/management/routes/scopes.js +4 -1
  178. package/dist/apps/management/routes/scopes.js.map +1 -1
  179. package/dist/apps/management/routes/usage.d.ts +8 -8
  180. package/dist/apps/management/routes/usage.js +21 -4
  181. package/dist/apps/management/routes/usage.js.map +1 -1
  182. package/dist/apps/management/routes/verified-token-requests.d.ts +16 -16
  183. package/dist/apps/management/routes/webhooks.d.ts +931 -215
  184. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  185. package/dist/apps/management/routes/webhooks.js +71 -25
  186. package/dist/apps/management/routes/webhooks.js.map +1 -1
  187. package/dist/apps/mcp.d.ts +1 -1
  188. package/dist/apps/mcp.js +7 -7
  189. package/dist/apps/mcp.js.map +1 -1
  190. package/dist/apps/mpp/App.d.ts.map +1 -1
  191. package/dist/apps/mpp/App.js +35 -7
  192. package/dist/apps/mpp/App.js.map +1 -1
  193. package/dist/apps/mpp/internal/Adapter.d.ts +2 -0
  194. package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
  195. package/dist/apps/mpp/internal/Adapter.js +30 -1
  196. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  197. package/dist/apps/mpp/internal/Policy.d.ts +22 -4
  198. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
  199. package/dist/apps/mpp/internal/Policy.js +24 -6
  200. package/dist/apps/mpp/internal/Policy.js.map +1 -1
  201. package/dist/apps/mpp/internal/Sponsorship.d.ts +3 -0
  202. package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -1
  203. package/dist/apps/mpp/internal/Sponsorship.js +6 -3
  204. package/dist/apps/mpp/internal/Sponsorship.js.map +1 -1
  205. package/dist/apps/relay/App.d.ts +2 -0
  206. package/dist/apps/relay/App.d.ts.map +1 -1
  207. package/dist/apps/relay/App.js +177 -26
  208. package/dist/apps/relay/App.js.map +1 -1
  209. package/dist/apps/relay/Sponsorships.d.ts +5 -3
  210. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  211. package/dist/apps/relay/Sponsorships.js +232 -25
  212. package/dist/apps/relay/Sponsorships.js.map +1 -1
  213. package/dist/apps/{funding → routes}/Access.d.ts +4 -4
  214. package/dist/apps/routes/Access.d.ts.map +1 -0
  215. package/dist/apps/{funding → routes}/Access.js +4 -4
  216. package/dist/apps/routes/Access.js.map +1 -0
  217. package/dist/apps/{funding → routes}/App.d.ts +841 -136
  218. package/dist/apps/{funding → routes}/App.d.ts.map +1 -1
  219. package/dist/apps/{funding → routes}/App.js +17 -17
  220. package/dist/apps/routes/App.js.map +1 -0
  221. package/dist/apps/routes/Inventory.d.ts.map +1 -0
  222. package/dist/apps/{funding → routes}/Inventory.js +2 -2
  223. package/dist/apps/routes/Inventory.js.map +1 -0
  224. package/dist/apps/routes/index.d.ts +2 -0
  225. package/dist/apps/routes/index.d.ts.map +1 -0
  226. package/dist/apps/routes/index.js +2 -0
  227. package/dist/apps/routes/index.js.map +1 -0
  228. package/dist/apps/{funding → routes}/routes/chains.d.ts +7 -7
  229. package/dist/apps/routes/routes/chains.d.ts.map +1 -0
  230. package/dist/apps/{funding → routes}/routes/chains.js +25 -25
  231. package/dist/apps/routes/routes/chains.js.map +1 -0
  232. package/dist/apps/{funding → routes}/routes/deposit-addresses.d.ts +123 -59
  233. package/dist/apps/routes/routes/deposit-addresses.d.ts.map +1 -0
  234. package/dist/apps/{funding → routes}/routes/deposit-addresses.js +498 -223
  235. package/dist/apps/routes/routes/deposit-addresses.js.map +1 -0
  236. package/dist/apps/{funding → routes}/routes/providers.d.ts +8 -8
  237. package/dist/apps/routes/routes/providers.d.ts.map +1 -0
  238. package/dist/apps/routes/routes/providers.js +57 -0
  239. package/dist/apps/routes/routes/providers.js.map +1 -0
  240. package/dist/apps/{funding → routes}/routes/quotes.d.ts +19 -16
  241. package/dist/apps/routes/routes/quotes.d.ts.map +1 -0
  242. package/dist/apps/{funding → routes}/routes/quotes.js +55 -38
  243. package/dist/apps/routes/routes/quotes.js.map +1 -0
  244. package/dist/apps/{funding → routes}/routes/transfers.d.ts +957 -71
  245. package/dist/apps/routes/routes/transfers.d.ts.map +1 -0
  246. package/dist/apps/routes/routes/transfers.js +1140 -0
  247. package/dist/apps/routes/routes/transfers.js.map +1 -0
  248. package/dist/cli/Cli.d.ts +30 -0
  249. package/dist/cli/Cli.d.ts.map +1 -1
  250. package/dist/cli/commands/admin.d.ts +36 -0
  251. package/dist/cli/commands/admin.d.ts.map +1 -1
  252. package/dist/cli/commands/admin.js +273 -0
  253. package/dist/cli/commands/admin.js.map +1 -1
  254. package/dist/cloudflare.d.ts +16 -14
  255. package/dist/cloudflare.d.ts.map +1 -1
  256. package/dist/cloudflare.js +26 -21
  257. package/dist/cloudflare.js.map +1 -1
  258. package/dist/db/Db.d.ts +63 -21
  259. package/dist/db/Db.d.ts.map +1 -1
  260. package/dist/db/Db.js +1052 -15
  261. package/dist/db/Db.js.map +1 -1
  262. package/dist/db/Schema.d.ts +785 -133
  263. package/dist/db/Schema.d.ts.map +1 -1
  264. package/dist/db/Schema.js +590 -162
  265. package/dist/db/Schema.js.map +1 -1
  266. package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts +4 -0
  267. package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts.map +1 -0
  268. package/dist/db/tables/apiKeyAdmissionBootstraps.js +2 -0
  269. package/dist/db/tables/apiKeyAdmissionBootstraps.js.map +1 -0
  270. package/dist/db/tables/apiKeyAdmissions.d.ts +73 -0
  271. package/dist/db/tables/apiKeyAdmissions.d.ts.map +1 -0
  272. package/dist/db/tables/apiKeyAdmissions.js +142 -0
  273. package/dist/db/tables/apiKeyAdmissions.js.map +1 -0
  274. package/dist/db/tables/apiKeyOwnerAdmissions.d.ts +4 -0
  275. package/dist/db/tables/apiKeyOwnerAdmissions.d.ts.map +1 -0
  276. package/dist/db/tables/apiKeyOwnerAdmissions.js +2 -0
  277. package/dist/db/tables/apiKeyOwnerAdmissions.js.map +1 -0
  278. package/dist/db/tables/apiKeyOwnerTombstones.d.ts +20 -0
  279. package/dist/db/tables/apiKeyOwnerTombstones.d.ts.map +1 -0
  280. package/dist/db/tables/apiKeyOwnerTombstones.js +57 -0
  281. package/dist/db/tables/apiKeyOwnerTombstones.js.map +1 -0
  282. package/dist/db/tables/apiKeyRevocations.d.ts +21 -0
  283. package/dist/db/tables/apiKeyRevocations.d.ts.map +1 -0
  284. package/dist/db/tables/apiKeyRevocations.js +98 -0
  285. package/dist/db/tables/apiKeyRevocations.js.map +1 -0
  286. package/dist/db/tables/authAccounts.d.ts +47 -0
  287. package/dist/db/tables/authAccounts.d.ts.map +1 -0
  288. package/dist/db/tables/authAccounts.js +72 -0
  289. package/dist/db/tables/authAccounts.js.map +1 -0
  290. package/dist/db/tables/authSessions.d.ts +12 -0
  291. package/dist/db/tables/authSessions.d.ts.map +1 -0
  292. package/dist/db/tables/authSessions.js +2 -0
  293. package/dist/db/tables/authSessions.js.map +1 -0
  294. package/dist/db/tables/authVerifications.d.ts +12 -0
  295. package/dist/db/tables/authVerifications.d.ts.map +1 -0
  296. package/dist/db/tables/authVerifications.js +2 -0
  297. package/dist/db/tables/authVerifications.js.map +1 -0
  298. package/dist/db/tables/invitations.d.ts +17 -1
  299. package/dist/db/tables/invitations.d.ts.map +1 -1
  300. package/dist/db/tables/invitations.js +123 -43
  301. package/dist/db/tables/invitations.js.map +1 -1
  302. package/dist/db/tables/memberships.d.ts +8 -0
  303. package/dist/db/tables/memberships.d.ts.map +1 -1
  304. package/dist/db/tables/memberships.js +51 -2
  305. package/dist/db/tables/memberships.js.map +1 -1
  306. package/dist/db/tables/organizations.d.ts +51 -5
  307. package/dist/db/tables/organizations.d.ts.map +1 -1
  308. package/dist/db/tables/organizations.js +135 -47
  309. package/dist/db/tables/organizations.js.map +1 -1
  310. package/dist/db/tables/projects.d.ts +27 -1
  311. package/dist/db/tables/projects.d.ts.map +1 -1
  312. package/dist/db/tables/projects.js +38 -3
  313. package/dist/db/tables/projects.js.map +1 -1
  314. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  315. package/dist/db/tables/requestUsage.js.map +1 -1
  316. package/dist/db/tables/rewardAccounts.d.ts +86 -0
  317. package/dist/db/tables/rewardAccounts.d.ts.map +1 -0
  318. package/dist/db/tables/rewardAccounts.js +88 -0
  319. package/dist/db/tables/rewardAccounts.js.map +1 -0
  320. package/dist/db/tables/rewardCampaignDistributors.d.ts +36 -0
  321. package/dist/db/tables/rewardCampaignDistributors.d.ts.map +1 -0
  322. package/dist/db/tables/rewardCampaignDistributors.js +30 -0
  323. package/dist/db/tables/rewardCampaignDistributors.js.map +1 -0
  324. package/dist/db/tables/rewardCampaigns.d.ts +171 -0
  325. package/dist/db/tables/rewardCampaigns.d.ts.map +1 -0
  326. package/dist/db/tables/rewardCampaigns.js +392 -0
  327. package/dist/db/tables/rewardCampaigns.js.map +1 -0
  328. package/dist/db/tables/rewardCredits.d.ts +53 -0
  329. package/dist/db/tables/rewardCredits.d.ts.map +1 -0
  330. package/dist/db/tables/rewardCredits.js +63 -0
  331. package/dist/db/tables/rewardCredits.js.map +1 -0
  332. package/dist/db/tables/rewardEligibilityAssociations.d.ts +61 -0
  333. package/dist/db/tables/rewardEligibilityAssociations.d.ts.map +1 -0
  334. package/dist/db/tables/rewardEligibilityAssociations.js +103 -0
  335. package/dist/db/tables/rewardEligibilityAssociations.js.map +1 -0
  336. package/dist/db/tables/rewardRuns.d.ts +188 -0
  337. package/dist/db/tables/rewardRuns.d.ts.map +1 -0
  338. package/dist/db/tables/rewardRuns.js +278 -0
  339. package/dist/db/tables/rewardRuns.js.map +1 -0
  340. package/dist/db/tables/rewardTransactionAttempts.d.ts +100 -0
  341. package/dist/db/tables/rewardTransactionAttempts.d.ts.map +1 -0
  342. package/dist/db/tables/rewardTransactionAttempts.js +163 -0
  343. package/dist/db/tables/rewardTransactionAttempts.js.map +1 -0
  344. package/dist/db/tables/routesCatalog.d.ts +58 -0
  345. package/dist/db/tables/routesCatalog.d.ts.map +1 -0
  346. package/dist/db/tables/{fundingCatalog.js → routesCatalog.js} +19 -19
  347. package/dist/db/tables/routesCatalog.js.map +1 -0
  348. package/dist/db/tables/routesDepositAddresses.d.ts +476 -0
  349. package/dist/db/tables/routesDepositAddresses.d.ts.map +1 -0
  350. package/dist/db/tables/routesDepositAddresses.js +587 -0
  351. package/dist/db/tables/routesDepositAddresses.js.map +1 -0
  352. package/dist/db/tables/{fundingDepositRequestObservations.d.ts → routesDepositRequestObservations.d.ts} +6 -6
  353. package/dist/db/tables/routesDepositRequestObservations.d.ts.map +1 -0
  354. package/dist/db/tables/{fundingDepositRequestObservations.js → routesDepositRequestObservations.js} +6 -6
  355. package/dist/db/tables/routesDepositRequestObservations.js.map +1 -0
  356. package/dist/db/tables/{fundingDeposits.d.ts → routesDeposits.d.ts} +210 -22
  357. package/dist/db/tables/routesDeposits.d.ts.map +1 -0
  358. package/dist/db/tables/routesDeposits.js +576 -0
  359. package/dist/db/tables/routesDeposits.js.map +1 -0
  360. package/dist/db/tables/routesIdempotency.d.ts +166 -0
  361. package/dist/db/tables/routesIdempotency.d.ts.map +1 -0
  362. package/dist/db/tables/routesIdempotency.js +330 -0
  363. package/dist/db/tables/routesIdempotency.js.map +1 -0
  364. package/dist/db/tables/routesSubsidies.d.ts +27 -0
  365. package/dist/db/tables/routesSubsidies.d.ts.map +1 -0
  366. package/dist/db/tables/routesSubsidies.js +45 -0
  367. package/dist/db/tables/routesSubsidies.js.map +1 -0
  368. package/dist/db/tables/{fundingTransferEvents.d.ts → routesTransferEvents.d.ts} +3 -3
  369. package/dist/db/tables/routesTransferEvents.d.ts.map +1 -0
  370. package/dist/db/tables/{fundingTransferEvents.js → routesTransferEvents.js} +3 -3
  371. package/dist/db/tables/routesTransferEvents.js.map +1 -0
  372. package/dist/db/tables/routesTransferSubsidies.d.ts +19 -0
  373. package/dist/db/tables/routesTransferSubsidies.d.ts.map +1 -0
  374. package/dist/db/tables/routesTransferSubsidies.js +17 -0
  375. package/dist/db/tables/routesTransferSubsidies.js.map +1 -0
  376. package/dist/db/tables/routesTransferSubsidyNonces.d.ts +51 -0
  377. package/dist/db/tables/routesTransferSubsidyNonces.d.ts.map +1 -0
  378. package/dist/db/tables/routesTransferSubsidyNonces.js +82 -0
  379. package/dist/db/tables/routesTransferSubsidyNonces.js.map +1 -0
  380. package/dist/db/tables/routesTransferTransactions.d.ts +77 -0
  381. package/dist/db/tables/routesTransferTransactions.d.ts.map +1 -0
  382. package/dist/db/tables/routesTransferTransactions.js +86 -0
  383. package/dist/db/tables/routesTransferTransactions.js.map +1 -0
  384. package/dist/db/tables/routesTransfers.d.ts +319 -0
  385. package/dist/db/tables/routesTransfers.d.ts.map +1 -0
  386. package/dist/db/tables/routesTransfers.js +372 -0
  387. package/dist/db/tables/routesTransfers.js.map +1 -0
  388. package/dist/db/tables/sponsoredTransactions.d.ts +112 -13
  389. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  390. package/dist/db/tables/sponsoredTransactions.js +241 -38
  391. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  392. package/dist/db/tables/sponsorshipAttributions.d.ts +69 -0
  393. package/dist/db/tables/sponsorshipAttributions.d.ts.map +1 -0
  394. package/dist/db/tables/sponsorshipAttributions.js +77 -0
  395. package/dist/db/tables/sponsorshipAttributions.js.map +1 -0
  396. package/dist/db/tables/sponsorshipReconciliationCursors.d.ts +22 -0
  397. package/dist/db/tables/sponsorshipReconciliationCursors.d.ts.map +1 -0
  398. package/dist/db/tables/sponsorshipReconciliationCursors.js +45 -0
  399. package/dist/db/tables/sponsorshipReconciliationCursors.js.map +1 -0
  400. package/dist/db/tables/stripeCustomers.d.ts +11 -0
  401. package/dist/db/tables/stripeCustomers.d.ts.map +1 -1
  402. package/dist/db/tables/stripeCustomers.js +13 -0
  403. package/dist/db/tables/stripeCustomers.js.map +1 -1
  404. package/dist/db/tables/users.d.ts +17 -1
  405. package/dist/db/tables/users.d.ts.map +1 -1
  406. package/dist/db/tables/users.js +47 -2
  407. package/dist/db/tables/users.js.map +1 -1
  408. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
  409. package/dist/db/tables/webhookQueueEvents.js +5 -1
  410. package/dist/db/tables/webhookQueueEvents.js.map +1 -1
  411. package/dist/db/tables/webhookSubscriptions.d.ts +22 -10
  412. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  413. package/dist/db/tables/webhookSubscriptions.js +50 -15
  414. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  415. package/dist/handlers/internal/executionError.d.ts +2 -2
  416. package/dist/handlers/internal/executionError.d.ts.map +1 -1
  417. package/dist/handlers/internal/executionError.js +1 -2
  418. package/dist/handlers/internal/executionError.js.map +1 -1
  419. package/dist/handlers/internal/multisig.d.ts +4 -232
  420. package/dist/handlers/internal/multisig.d.ts.map +1 -1
  421. package/dist/handlers/internal/multisig.js +11 -537
  422. package/dist/handlers/internal/multisig.js.map +1 -1
  423. package/dist/handlers/internal/sponsorship.d.ts +19 -8
  424. package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
  425. package/dist/handlers/internal/sponsorship.js +13 -9
  426. package/dist/handlers/internal/sponsorship.js.map +1 -1
  427. package/dist/handlers/relay.d.ts +9 -12
  428. package/dist/handlers/relay.d.ts.map +1 -1
  429. package/dist/handlers/relay.js +81 -85
  430. package/dist/handlers/relay.js.map +1 -1
  431. package/dist/index.d.ts +0 -17
  432. package/dist/index.d.ts.map +1 -1
  433. package/dist/index.js +0 -17
  434. package/dist/index.js.map +1 -1
  435. package/dist/internal/AssetResponse.d.ts +12 -0
  436. package/dist/internal/AssetResponse.d.ts.map +1 -0
  437. package/dist/internal/AssetResponse.js +21 -0
  438. package/dist/internal/AssetResponse.js.map +1 -0
  439. package/dist/internal/Auth.d.ts +48 -12
  440. package/dist/internal/Auth.d.ts.map +1 -1
  441. package/dist/internal/Auth.js +603 -175
  442. package/dist/internal/Auth.js.map +1 -1
  443. package/dist/internal/BetterAuth.d.ts +1488 -0
  444. package/dist/internal/BetterAuth.d.ts.map +1 -0
  445. package/dist/internal/BetterAuth.js +253 -0
  446. package/dist/internal/BetterAuth.js.map +1 -0
  447. package/dist/internal/Cache.d.ts +2 -0
  448. package/dist/internal/Cache.d.ts.map +1 -1
  449. package/dist/internal/Cache.js +2 -0
  450. package/dist/internal/Cache.js.map +1 -1
  451. package/dist/internal/EarnRates.d.ts +26 -3
  452. package/dist/internal/EarnRates.d.ts.map +1 -1
  453. package/dist/internal/EarnRates.js +84 -19
  454. package/dist/internal/EarnRates.js.map +1 -1
  455. package/dist/internal/EarnSharePrices.d.ts +120 -0
  456. package/dist/internal/EarnSharePrices.d.ts.map +1 -0
  457. package/dist/internal/EarnSharePrices.js +179 -0
  458. package/dist/internal/EarnSharePrices.js.map +1 -0
  459. package/dist/internal/EarnVaults.d.ts +4 -0
  460. package/dist/internal/EarnVaults.d.ts.map +1 -1
  461. package/dist/internal/EarnVaults.js +31 -14
  462. package/dist/internal/EarnVaults.js.map +1 -1
  463. package/dist/internal/Email.d.ts +37 -0
  464. package/dist/internal/Email.d.ts.map +1 -0
  465. package/dist/internal/Email.js +16 -0
  466. package/dist/internal/Email.js.map +1 -0
  467. package/dist/internal/Log.d.ts +32 -28
  468. package/dist/internal/Log.d.ts.map +1 -1
  469. package/dist/internal/Log.js +18 -11
  470. package/dist/internal/Log.js.map +1 -1
  471. package/dist/internal/MetricSink.d.ts +3 -0
  472. package/dist/internal/MetricSink.d.ts.map +1 -1
  473. package/dist/internal/MetricSink.js +67 -8
  474. package/dist/internal/MetricSink.js.map +1 -1
  475. package/dist/internal/Mpp.d.ts.map +1 -1
  476. package/dist/internal/Mpp.js +20 -25
  477. package/dist/internal/Mpp.js.map +1 -1
  478. package/dist/internal/OpenApi.d.ts +26 -3
  479. package/dist/internal/OpenApi.d.ts.map +1 -1
  480. package/dist/internal/OpenApi.js +25 -10
  481. package/dist/internal/OpenApi.js.map +1 -1
  482. package/dist/internal/Provider.d.ts +1 -1
  483. package/dist/internal/Provider.d.ts.map +1 -1
  484. package/dist/internal/RateLimit.d.ts.map +1 -1
  485. package/dist/internal/RateLimit.js +13 -1
  486. package/dist/internal/RateLimit.js.map +1 -1
  487. package/dist/internal/Store.d.ts +16 -0
  488. package/dist/internal/Store.d.ts.map +1 -1
  489. package/dist/internal/Store.js +59 -8
  490. package/dist/internal/Store.js.map +1 -1
  491. package/dist/internal/Tidx.d.ts +9 -2
  492. package/dist/internal/Tidx.d.ts.map +1 -1
  493. package/dist/internal/Tidx.js +78 -11
  494. package/dist/internal/Tidx.js.map +1 -1
  495. package/dist/internal/Timing.d.ts +26 -0
  496. package/dist/internal/Timing.d.ts.map +1 -1
  497. package/dist/internal/Timing.js +63 -5
  498. package/dist/internal/Timing.js.map +1 -1
  499. package/dist/internal/VercelOidc.d.ts +94 -0
  500. package/dist/internal/VercelOidc.d.ts.map +1 -0
  501. package/dist/internal/VercelOidc.js +128 -0
  502. package/dist/internal/VercelOidc.js.map +1 -0
  503. package/dist/internal/VerifiedTokens.d.ts +2 -8
  504. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  505. package/dist/internal/VerifiedTokens.js +24 -24
  506. package/dist/internal/VerifiedTokens.js.map +1 -1
  507. package/dist/internal/Viem.d.ts +46 -2068
  508. package/dist/internal/Viem.d.ts.map +1 -1
  509. package/dist/internal/Viem.js +171 -11
  510. package/dist/internal/Viem.js.map +1 -1
  511. package/dist/internal/Webhooks.d.ts +12 -4
  512. package/dist/internal/Webhooks.d.ts.map +1 -1
  513. package/dist/internal/Webhooks.js +9 -3
  514. package/dist/internal/Webhooks.js.map +1 -1
  515. package/dist/internal/ZoneRpc.d.ts +7 -0
  516. package/dist/internal/ZoneRpc.d.ts.map +1 -0
  517. package/dist/internal/ZoneRpc.js +49 -0
  518. package/dist/internal/ZoneRpc.js.map +1 -0
  519. package/dist/internal/index.d.ts +3 -1
  520. package/dist/internal/index.d.ts.map +1 -1
  521. package/dist/internal/index.js +3 -1
  522. package/dist/internal/index.js.map +1 -1
  523. package/dist/internal/rewards/Audit.d.ts +88 -0
  524. package/dist/internal/rewards/Audit.d.ts.map +1 -0
  525. package/dist/internal/rewards/Audit.js +134 -0
  526. package/dist/internal/rewards/Audit.js.map +1 -0
  527. package/dist/internal/rewards/Campaigns.d.ts +572 -0
  528. package/dist/internal/rewards/Campaigns.d.ts.map +1 -0
  529. package/dist/internal/rewards/Campaigns.js +531 -0
  530. package/dist/internal/rewards/Campaigns.js.map +1 -0
  531. package/dist/internal/rewards/Credits.d.ts +76 -0
  532. package/dist/internal/rewards/Credits.d.ts.map +1 -0
  533. package/dist/internal/rewards/Credits.js +95 -0
  534. package/dist/internal/rewards/Credits.js.map +1 -0
  535. package/dist/internal/rewards/Events.d.ts +100 -0
  536. package/dist/internal/rewards/Events.d.ts.map +1 -0
  537. package/dist/internal/rewards/Events.js +340 -0
  538. package/dist/internal/rewards/Events.js.map +1 -0
  539. package/dist/internal/rewards/Projection.d.ts +237 -0
  540. package/dist/internal/rewards/Projection.d.ts.map +1 -0
  541. package/dist/internal/rewards/Projection.js +616 -0
  542. package/dist/internal/rewards/Projection.js.map +1 -0
  543. package/dist/internal/rewards/Rates.d.ts +44 -0
  544. package/dist/internal/rewards/Rates.d.ts.map +1 -0
  545. package/dist/internal/rewards/Rates.js +60 -0
  546. package/dist/internal/rewards/Rates.js.map +1 -0
  547. package/dist/internal/rewards/Read.d.ts +158 -0
  548. package/dist/internal/rewards/Read.d.ts.map +1 -0
  549. package/dist/internal/rewards/Read.js +292 -0
  550. package/dist/internal/rewards/Read.js.map +1 -0
  551. package/dist/internal/rewards/Runner.d.ts +164 -0
  552. package/dist/internal/rewards/Runner.d.ts.map +1 -0
  553. package/dist/internal/rewards/Runner.js +1778 -0
  554. package/dist/internal/rewards/Runner.js.map +1 -0
  555. package/dist/internal/rewards/Signer.d.ts +224 -0
  556. package/dist/internal/rewards/Signer.d.ts.map +1 -0
  557. package/dist/internal/rewards/Signer.js +135 -0
  558. package/dist/internal/rewards/Signer.js.map +1 -0
  559. package/dist/internal/rewards/index.d.ts +15 -0
  560. package/dist/internal/rewards/index.d.ts.map +1 -0
  561. package/dist/internal/rewards/index.js +15 -0
  562. package/dist/internal/rewards/index.js.map +1 -0
  563. package/dist/internal/{funding → routes}/Action.d.ts +12 -1
  564. package/dist/internal/routes/Action.d.ts.map +1 -0
  565. package/dist/internal/{funding → routes}/Action.js +17 -9
  566. package/dist/internal/routes/Action.js.map +1 -0
  567. package/dist/internal/{funding → routes}/Catalog.d.ts +20 -20
  568. package/dist/internal/routes/Catalog.d.ts.map +1 -0
  569. package/dist/internal/{funding → routes}/Catalog.js +29 -29
  570. package/dist/internal/routes/Catalog.js.map +1 -0
  571. package/dist/internal/{funding → routes}/Chain.d.ts +10 -10
  572. package/dist/internal/routes/Chain.d.ts.map +1 -0
  573. package/dist/internal/{funding → routes}/Chain.js +3 -3
  574. package/dist/internal/routes/Chain.js.map +1 -0
  575. package/dist/internal/{funding → routes}/Deposit.d.ts +45 -23
  576. package/dist/internal/routes/Deposit.d.ts.map +1 -0
  577. package/dist/internal/{funding → routes}/Deposit.js +60 -27
  578. package/dist/internal/routes/Deposit.js.map +1 -0
  579. package/dist/internal/{funding → routes}/DepositAddress.d.ts +56 -27
  580. package/dist/internal/routes/DepositAddress.d.ts.map +1 -0
  581. package/dist/internal/{funding → routes}/DepositAddress.js +95 -33
  582. package/dist/internal/routes/DepositAddress.js.map +1 -0
  583. package/dist/internal/{funding → routes}/DepositWebhook.d.ts +4 -4
  584. package/dist/internal/routes/DepositWebhook.d.ts.map +1 -0
  585. package/dist/internal/{funding → routes}/DepositWebhook.js +4 -3
  586. package/dist/internal/routes/DepositWebhook.js.map +1 -0
  587. package/dist/internal/routes/Economics.d.ts +25 -0
  588. package/dist/internal/routes/Economics.d.ts.map +1 -0
  589. package/dist/internal/routes/Economics.js +28 -0
  590. package/dist/internal/routes/Economics.js.map +1 -0
  591. package/dist/internal/{funding → routes}/Evidence.d.ts +3 -3
  592. package/dist/internal/routes/Evidence.d.ts.map +1 -0
  593. package/dist/internal/{funding → routes}/Evidence.js +9 -17
  594. package/dist/internal/routes/Evidence.js.map +1 -0
  595. package/dist/internal/routes/Observability.d.ts +154 -0
  596. package/dist/internal/routes/Observability.d.ts.map +1 -0
  597. package/dist/internal/routes/Observability.js +389 -0
  598. package/dist/internal/routes/Observability.js.map +1 -0
  599. package/dist/internal/{funding → routes}/Provider.d.ts +350 -104
  600. package/dist/internal/routes/Provider.d.ts.map +1 -0
  601. package/dist/internal/{funding → routes}/Provider.js +233 -97
  602. package/dist/internal/routes/Provider.js.map +1 -0
  603. package/dist/internal/{funding → routes}/Reconciliation.d.ts +11 -6
  604. package/dist/internal/routes/Reconciliation.d.ts.map +1 -0
  605. package/dist/internal/{funding → routes}/Reconciliation.js +408 -158
  606. package/dist/internal/routes/Reconciliation.js.map +1 -0
  607. package/dist/internal/routes/Route.d.ts +21 -0
  608. package/dist/internal/routes/Route.d.ts.map +1 -0
  609. package/dist/internal/{funding → routes}/Route.js +1 -1
  610. package/dist/internal/routes/Route.js.map +1 -0
  611. package/dist/internal/{funding → routes}/SourceObservation.d.ts +6 -6
  612. package/dist/internal/routes/SourceObservation.d.ts.map +1 -0
  613. package/dist/internal/{funding → routes}/SourceObservation.js +13 -15
  614. package/dist/internal/routes/SourceObservation.js.map +1 -0
  615. package/dist/internal/{funding → routes}/Subsidy.d.ts +48 -3
  616. package/dist/internal/routes/Subsidy.d.ts.map +1 -0
  617. package/dist/internal/{funding → routes}/Subsidy.js +43 -3
  618. package/dist/internal/routes/Subsidy.js.map +1 -0
  619. package/dist/internal/{funding → routes}/Token.d.ts +4 -4
  620. package/dist/internal/routes/Token.d.ts.map +1 -0
  621. package/dist/internal/{funding → routes}/Token.js +3 -3
  622. package/dist/internal/routes/Token.js.map +1 -0
  623. package/dist/internal/{funding → routes}/Transfer.d.ts +324 -34
  624. package/dist/internal/routes/Transfer.d.ts.map +1 -0
  625. package/dist/internal/routes/Transfer.js +728 -0
  626. package/dist/internal/routes/Transfer.js.map +1 -0
  627. package/dist/internal/routes/TransferReconciliation.d.ts +55 -0
  628. package/dist/internal/routes/TransferReconciliation.d.ts.map +1 -0
  629. package/dist/internal/routes/TransferReconciliation.js +422 -0
  630. package/dist/internal/routes/TransferReconciliation.js.map +1 -0
  631. package/dist/internal/routes/TransferSubsidy.d.ts +201 -0
  632. package/dist/internal/routes/TransferSubsidy.d.ts.map +1 -0
  633. package/dist/internal/routes/TransferSubsidy.js +256 -0
  634. package/dist/internal/routes/TransferSubsidy.js.map +1 -0
  635. package/dist/internal/routes/TransferWebhook.d.ts +21 -0
  636. package/dist/internal/routes/TransferWebhook.d.ts.map +1 -0
  637. package/dist/internal/routes/TransferWebhook.js +43 -0
  638. package/dist/internal/routes/TransferWebhook.js.map +1 -0
  639. package/dist/internal/{funding → routes}/index.d.ts +3 -0
  640. package/dist/internal/routes/index.d.ts.map +1 -0
  641. package/dist/internal/{funding → routes}/index.js +3 -0
  642. package/dist/internal/routes/index.js.map +1 -0
  643. package/dist/internal/{funding → routes}/providers/across.d.ts +4 -4
  644. package/dist/internal/routes/providers/across.d.ts.map +1 -0
  645. package/dist/internal/{funding → routes}/providers/across.js +13 -13
  646. package/dist/internal/routes/providers/across.js.map +1 -0
  647. package/dist/internal/{funding → routes}/providers/relay.d.ts +21 -12
  648. package/dist/internal/routes/providers/relay.d.ts.map +1 -0
  649. package/dist/internal/{funding → routes}/providers/relay.js +197 -122
  650. package/dist/internal/routes/providers/relay.js.map +1 -0
  651. package/dist/internal/{funding → routes}/providers/rhino.d.ts +4 -4
  652. package/dist/internal/routes/providers/rhino.d.ts.map +1 -0
  653. package/dist/internal/{funding → routes}/providers/rhino.js +10 -10
  654. package/dist/internal/routes/providers/rhino.js.map +1 -0
  655. package/dist/internal/{funding → routes}/providers/squid.d.ts +4 -4
  656. package/dist/internal/routes/providers/squid.d.ts.map +1 -0
  657. package/dist/internal/{funding → routes}/providers/squid.js +14 -14
  658. package/dist/internal/routes/providers/squid.js.map +1 -0
  659. package/dist/internal/routes/providers/stargate.d.ts +165 -0
  660. package/dist/internal/routes/providers/stargate.d.ts.map +1 -0
  661. package/dist/internal/routes/providers/stargate.js +898 -0
  662. package/dist/internal/routes/providers/stargate.js.map +1 -0
  663. package/dist/internal/{funding → routes}/providers/symbiosis.d.ts +4 -4
  664. package/dist/internal/routes/providers/symbiosis.d.ts.map +1 -0
  665. package/dist/internal/{funding → routes}/providers/symbiosis.js +30 -20
  666. package/dist/internal/routes/providers/symbiosis.js.map +1 -0
  667. package/dist/internal/webhookDestinations/slack.d.ts.map +1 -1
  668. package/dist/internal/webhookDestinations/slack.js +22 -6
  669. package/dist/internal/webhookDestinations/slack.js.map +1 -1
  670. package/dist/providers/index.d.ts +12 -12
  671. package/dist/providers/index.d.ts.map +1 -1
  672. package/dist/providers/index.js +12 -12
  673. package/dist/providers/index.js.map +1 -1
  674. package/dist/server.d.ts +19 -0
  675. package/dist/server.d.ts.map +1 -0
  676. package/dist/server.js +19 -0
  677. package/dist/server.js.map +1 -0
  678. package/package.json +15 -4
  679. package/src/ApiKey.ts +1 -1
  680. package/src/ApiKeys.test.ts +1033 -3
  681. package/src/ApiKeys.ts +489 -48
  682. package/src/App.test-d.ts +1 -1
  683. package/src/App.test.ts +216 -25
  684. package/src/App.ts +335 -31
  685. package/src/Assets.test.ts +2 -2
  686. package/src/Assets.ts +3 -1
  687. package/src/Auth.test-d.ts +1 -1
  688. package/src/Client.test-d.ts +611 -101
  689. package/src/Handler.ts +0 -1
  690. package/src/OpenApi.contract.test.ts +195 -0
  691. package/src/Scope.ts +17 -5
  692. package/src/Webhooks.ts +2 -2
  693. package/src/admin/App.test.ts +30 -2
  694. package/src/admin/App.ts +42 -6
  695. package/src/admin/apps/api-keys.test.ts +267 -5
  696. package/src/admin/apps/api-keys.ts +100 -50
  697. package/src/admin/apps/earn-vaults.test.ts +158 -0
  698. package/src/admin/apps/earn-vaults.ts +681 -7
  699. package/src/admin/apps/organizations.test.ts +342 -1
  700. package/src/admin/apps/organizations.ts +368 -8
  701. package/src/admin/apps/routes-support.test.ts +200 -0
  702. package/src/admin/apps/routes-support.ts +201 -0
  703. package/src/admin/apps/routes.test.ts +450 -0
  704. package/src/admin/apps/routes.ts +896 -0
  705. package/src/admin/apps/scopes.test.ts +15 -5
  706. package/src/admin/apps/subsidies.test.ts +306 -0
  707. package/src/admin/apps/subsidies.ts +457 -0
  708. package/src/admin/apps/verified-tokens.test.ts +8 -3
  709. package/src/admin/apps/verified-tokens.ts +3 -3
  710. package/src/admin/ui/plugin.ts +1 -2
  711. package/src/admin/ui/src/components/RewardCampaignForm.tsx +1009 -0
  712. package/src/admin/ui/src/lib/config.ts +11 -2
  713. package/src/admin/ui/src/lib/earn-vaults.ts +2 -2
  714. package/src/admin/ui/src/lib/organizations.test.ts +147 -3
  715. package/src/admin/ui/src/lib/organizations.ts +136 -0
  716. package/src/admin/ui/src/lib/query-client.ts +1 -1
  717. package/src/admin/ui/src/lib/reward-campaigns.ts +136 -0
  718. package/src/admin/ui/src/lib/routes.test.ts +88 -0
  719. package/src/admin/ui/src/lib/routes.ts +304 -0
  720. package/src/admin/ui/src/lib/subsidies.ts +75 -0
  721. package/src/admin/ui/src/routeTree.gen.ts +63 -0
  722. package/src/admin/ui/src/routes/__root.tsx +12 -1
  723. package/src/admin/ui/src/routes/api-keys.tsx +196 -84
  724. package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +105 -70
  725. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +334 -2
  726. package/src/admin/ui/src/routes/routes.tsx +1615 -0
  727. package/src/admin/ui/src/routes/routes_.support.tsx +248 -0
  728. package/src/admin/ui/src/routes/subsidies.tsx +799 -0
  729. package/src/admin/ui.generated.ts +144 -69
  730. package/src/analytics/Analytics.test.ts +108 -18
  731. package/src/analytics/Analytics.ts +38 -6
  732. package/src/analytics/tables/requestEvents.test.ts +100 -0
  733. package/src/analytics/tables/requestEvents.ts +10 -1
  734. package/src/analytics/tables/routesLifecycleIntervals.ts +140 -0
  735. package/src/apps/Zones.test.ts +18 -3
  736. package/src/apps/Zones.ts +55 -8
  737. package/src/apps/composition.test.ts +68 -59
  738. package/src/apps/data/App.test.ts +154 -2
  739. package/src/apps/data/App.ts +102 -33
  740. package/src/apps/data/routes/activities.test.ts +419 -7
  741. package/src/apps/data/routes/activities.ts +683 -216
  742. package/src/apps/data/routes/balances.test.ts +2 -2
  743. package/src/apps/data/routes/blocks.test.ts +46 -1
  744. package/src/apps/data/routes/coingecko.test.ts +419 -1
  745. package/src/apps/data/routes/coingecko.ts +309 -253
  746. package/src/apps/data/routes/earn.discovery.test.ts +274 -0
  747. package/src/apps/data/routes/earn.test.ts +1661 -29
  748. package/src/apps/data/routes/earn.ts +2314 -328
  749. package/src/apps/data/routes/exchanges.test.ts +752 -30
  750. package/src/apps/data/routes/exchanges.ts +954 -753
  751. package/src/apps/data/routes/fee-amm.test.ts +224 -0
  752. package/src/apps/data/routes/fee-amm.ts +208 -178
  753. package/src/apps/data/routes/indexer.test.ts +389 -0
  754. package/src/apps/data/routes/indexer.ts +165 -69
  755. package/src/apps/data/routes/receipts.test.ts +1 -1
  756. package/src/apps/data/routes/rpc.test.ts +352 -8
  757. package/src/apps/data/routes/rpc.ts +407 -219
  758. package/src/apps/data/routes/rpc.zone.test.ts +340 -0
  759. package/src/apps/data/routes/tokenlist.test.ts +285 -0
  760. package/src/apps/data/routes/tokenlist.ts +173 -88
  761. package/src/apps/data/routes/tokens.test.ts +93 -3
  762. package/src/apps/data/routes/tokens.ts +39 -23
  763. package/src/apps/data/routes/transactions.test.ts +1 -1
  764. package/src/apps/data/routes/transfers.test.ts +56 -24
  765. package/src/apps/data/routes/transfers.ts +19 -8
  766. package/src/apps/data/routes/valuation.test.ts +1 -1
  767. package/src/apps/data/routes/verified-tokens.test.ts +345 -0
  768. package/src/apps/data/routes/verified-tokens.ts +99 -29
  769. package/src/apps/data/routes/webhooks.test.ts +659 -81
  770. package/src/apps/data/routes/webhooks.ts +1104 -817
  771. package/src/apps/data/routes/zones.test.ts +148 -71
  772. package/src/apps/data/routes/zones.ts +71 -55
  773. package/src/apps/docs/reference.ts +2 -2
  774. package/src/apps/index.ts +1 -1
  775. package/src/apps/management/App.ts +9 -51
  776. package/src/apps/management/Billing.test.ts +375 -14
  777. package/src/apps/management/Billing.ts +283 -34
  778. package/src/apps/management/routes/api-keys.test.ts +269 -7
  779. package/src/apps/management/routes/api-keys.ts +61 -20
  780. package/src/apps/management/routes/billing.test.ts +477 -15
  781. package/src/apps/management/routes/billing.ts +377 -50
  782. package/src/apps/management/routes/faucet.test.ts +1 -1
  783. package/src/apps/management/routes/faucet.ts +1 -1
  784. package/src/apps/management/routes/invitations.test.ts +270 -3
  785. package/src/apps/management/routes/invitations.ts +185 -15
  786. package/src/apps/management/routes/invoicePreview.test.ts +549 -0
  787. package/src/apps/management/routes/me.test.ts +246 -5
  788. package/src/apps/management/routes/me.ts +7 -2
  789. package/src/apps/management/routes/members.test.ts +108 -0
  790. package/src/apps/management/routes/orgs.test.ts +191 -3
  791. package/src/apps/management/routes/orgs.ts +58 -11
  792. package/src/apps/management/routes/projects.test.ts +33 -3
  793. package/src/apps/management/routes/projects.ts +6 -1
  794. package/src/apps/management/routes/scopes.test.ts +30 -2
  795. package/src/apps/management/routes/scopes.ts +4 -1
  796. package/src/apps/management/routes/usage.test.ts +32 -0
  797. package/src/apps/management/routes/usage.ts +22 -4
  798. package/src/apps/management/routes/webhooks.test.ts +49 -26
  799. package/src/apps/management/routes/webhooks.ts +93 -38
  800. package/src/apps/mcp.test.ts +6 -6
  801. package/src/apps/mcp.ts +7 -7
  802. package/src/apps/mpp/App.ts +37 -7
  803. package/src/apps/mpp/Mpp.test.ts +49 -8
  804. package/src/apps/mpp/Mpp.zone.test.ts +219 -0
  805. package/src/apps/mpp/internal/Adapter.ts +34 -0
  806. package/src/apps/mpp/internal/Policy.test.ts +86 -31
  807. package/src/apps/mpp/internal/Policy.ts +49 -7
  808. package/src/apps/mpp/internal/Sponsorship.test.ts +207 -0
  809. package/src/apps/mpp/internal/Sponsorship.ts +9 -3
  810. package/src/apps/relay/App.test.ts +1024 -38
  811. package/src/apps/relay/App.ts +228 -32
  812. package/src/apps/relay/App.zone-billing.test.ts +257 -0
  813. package/src/apps/relay/Sponsorships.test.ts +67 -4
  814. package/src/apps/relay/Sponsorships.ts +253 -29
  815. package/src/apps/relay/Sponsorships.zone.test.ts +102 -0
  816. package/src/apps/{funding → routes}/Access.ts +6 -6
  817. package/src/apps/routes/App.test.ts +165 -0
  818. package/src/apps/routes/App.ts +96 -0
  819. package/src/apps/{funding → routes}/Inventory.ts +2 -2
  820. package/src/apps/routes/index.ts +1 -0
  821. package/src/apps/{funding → routes}/routes/chains.test.ts +66 -66
  822. package/src/apps/{funding → routes}/routes/chains.ts +23 -23
  823. package/src/apps/{funding → routes}/routes/deposit-addresses.test.ts +1362 -462
  824. package/src/apps/{funding → routes}/routes/deposit-addresses.ts +568 -248
  825. package/src/apps/{funding → routes}/routes/providers.test.ts +27 -33
  826. package/src/apps/{funding → routes}/routes/providers.ts +23 -23
  827. package/src/apps/{funding → routes}/routes/quotes.test.ts +298 -41
  828. package/src/apps/{funding → routes}/routes/quotes.ts +57 -40
  829. package/src/apps/routes/routes/transfers.test.ts +2876 -0
  830. package/src/apps/routes/routes/transfers.ts +1332 -0
  831. package/src/cli/Cli.test.ts +1 -1
  832. package/src/cli/commands/admin.test.ts +748 -1
  833. package/src/cli/commands/admin.ts +278 -0
  834. package/src/cloudflare.ts +52 -47
  835. package/src/db/Db.test.ts +245 -2
  836. package/src/db/Db.ts +1511 -34
  837. package/src/db/Schema.ts +744 -228
  838. package/src/db/tables/apiKeyAdmissionBootstraps.ts +4 -0
  839. package/src/db/tables/apiKeyAdmissions.ts +218 -0
  840. package/src/db/tables/apiKeyOwnerAdmissions.ts +4 -0
  841. package/src/db/tables/apiKeyOwnerTombstones.ts +81 -0
  842. package/src/db/tables/apiKeyRevocations.test.ts +74 -0
  843. package/src/db/tables/apiKeyRevocations.ts +121 -0
  844. package/src/db/tables/authAccounts.ts +105 -0
  845. package/src/db/tables/authSessions.ts +13 -0
  846. package/src/db/tables/authVerifications.ts +13 -0
  847. package/src/db/tables/invitations.ts +142 -45
  848. package/src/db/tables/memberships.ts +79 -3
  849. package/src/db/tables/organizations.test.ts +725 -7
  850. package/src/db/tables/organizations.ts +182 -49
  851. package/src/db/tables/projects.test.ts +71 -0
  852. package/src/db/tables/projects.ts +59 -4
  853. package/src/db/tables/requestUsage.ts +4 -1
  854. package/src/db/tables/rewardAccounts.ts +178 -0
  855. package/src/db/tables/rewardCampaignDistributors.ts +68 -0
  856. package/src/db/tables/rewardCampaigns.test.ts +1388 -0
  857. package/src/db/tables/rewardCampaigns.ts +647 -0
  858. package/src/db/tables/rewardCredits.ts +110 -0
  859. package/src/db/tables/rewardEligibilityAssociations.test.ts +271 -0
  860. package/src/db/tables/rewardEligibilityAssociations.ts +184 -0
  861. package/src/db/tables/rewardRuns.ts +514 -0
  862. package/src/db/tables/rewardTransactionAttempts.ts +272 -0
  863. package/src/db/tables/routesCatalog.test.ts +185 -0
  864. package/src/db/tables/routesCatalog.ts +163 -0
  865. package/src/db/tables/routesDepositAddresses.test.ts +1048 -0
  866. package/src/db/tables/routesDepositAddresses.ts +1008 -0
  867. package/src/db/tables/{fundingDepositRequestObservations.test.ts → routesDepositRequestObservations.test.ts} +13 -14
  868. package/src/db/tables/{fundingDepositRequestObservations.ts → routesDepositRequestObservations.ts} +10 -10
  869. package/src/db/tables/{fundingDeposits.test.ts → routesDeposits.test.ts} +316 -46
  870. package/src/db/tables/routesDeposits.ts +1062 -0
  871. package/src/db/tables/routesIdempotency.test.ts +796 -0
  872. package/src/db/tables/routesIdempotency.ts +496 -0
  873. package/src/db/tables/routesSubsidies.test.ts +120 -0
  874. package/src/db/tables/routesSubsidies.ts +71 -0
  875. package/src/db/tables/{fundingTransferEvents.ts → routesTransferEvents.ts} +4 -4
  876. package/src/db/tables/routesTransferSubsidies.ts +38 -0
  877. package/src/db/tables/routesTransferSubsidyNonces.ts +124 -0
  878. package/src/db/tables/routesTransferTransactions.test.ts +195 -0
  879. package/src/db/tables/routesTransferTransactions.ts +158 -0
  880. package/src/db/tables/routesTransfers.test.ts +338 -0
  881. package/src/db/tables/routesTransfers.ts +662 -0
  882. package/src/db/tables/sponsoredTransactions.test.ts +563 -1
  883. package/src/db/tables/sponsoredTransactions.ts +386 -42
  884. package/src/db/tables/sponsorshipAttributions.test.ts +160 -0
  885. package/src/db/tables/sponsorshipAttributions.ts +168 -0
  886. package/src/db/tables/sponsorshipReconciliationCursors.test.ts +115 -0
  887. package/src/db/tables/sponsorshipReconciliationCursors.ts +67 -0
  888. package/src/db/tables/stripeCustomers.test.ts +85 -0
  889. package/src/db/tables/stripeCustomers.ts +24 -0
  890. package/src/db/tables/users.test.ts +129 -0
  891. package/src/db/tables/users.ts +49 -3
  892. package/src/db/tables/webhookQueueEvents.ts +8 -1
  893. package/src/db/tables/webhookSubscriptions.ts +103 -21
  894. package/src/handlers/internal/executionError.ts +3 -4
  895. package/src/handlers/internal/multisig.ts +13 -816
  896. package/src/handlers/internal/sponsorship.ts +26 -10
  897. package/src/handlers/relay.test-d.ts +9 -1
  898. package/src/handlers/relay.test.ts +823 -3
  899. package/src/handlers/relay.ts +127 -107
  900. package/src/index.test-d.ts +7 -0
  901. package/src/index.ts +0 -17
  902. package/src/internal/AssetResponse.ts +26 -0
  903. package/src/internal/Auth.test.ts +1564 -9
  904. package/src/internal/Auth.ts +833 -239
  905. package/src/internal/BetterAuth.test.ts +242 -0
  906. package/src/internal/BetterAuth.ts +349 -0
  907. package/src/internal/Cache.ts +2 -0
  908. package/src/internal/EarnRates.test.ts +17 -0
  909. package/src/internal/EarnRates.ts +124 -31
  910. package/src/internal/EarnSharePrices.test.ts +182 -0
  911. package/src/internal/EarnSharePrices.ts +313 -0
  912. package/src/internal/EarnVaults.test.ts +21 -0
  913. package/src/internal/EarnVaults.ts +37 -15
  914. package/src/internal/Email.ts +54 -0
  915. package/src/internal/Idempotency.test.ts +2 -2
  916. package/src/internal/Log.test-d.ts +10 -7
  917. package/src/internal/Log.test.ts +114 -16
  918. package/src/internal/Log.ts +55 -40
  919. package/src/internal/MetricSink.test.ts +313 -26
  920. package/src/internal/MetricSink.ts +73 -8
  921. package/src/internal/Mpp.test.ts +31 -0
  922. package/src/internal/Mpp.ts +21 -24
  923. package/src/internal/OpenApi.ts +45 -12
  924. package/src/internal/Provider.test.ts +1 -1
  925. package/src/internal/Provider.ts +1 -1
  926. package/src/internal/RateLimit.test.ts +21 -3
  927. package/src/internal/RateLimit.ts +12 -1
  928. package/src/internal/Store.test-d.ts +1 -1
  929. package/src/internal/Store.test.ts +151 -8
  930. package/src/internal/Store.ts +76 -9
  931. package/src/internal/Tidx.test.ts +59 -8
  932. package/src/internal/Tidx.ts +86 -14
  933. package/src/internal/Timing.test.ts +77 -0
  934. package/src/internal/Timing.ts +83 -6
  935. package/src/internal/VercelOidc.test.ts +188 -0
  936. package/src/internal/VercelOidc.ts +193 -0
  937. package/src/internal/VerifiedTokens.test.ts +60 -6
  938. package/src/internal/VerifiedTokens.ts +21 -24
  939. package/src/internal/Viem.batch.test.ts +80 -0
  940. package/src/internal/Viem.test.ts +201 -2
  941. package/src/internal/Viem.ts +249 -17
  942. package/src/internal/Webhooks.test.ts +125 -1
  943. package/src/internal/Webhooks.ts +22 -4
  944. package/src/internal/ZoneRpc.ts +50 -0
  945. package/src/internal/exchange/Provider.test.ts +2 -2
  946. package/src/internal/index.test.ts +3 -1
  947. package/src/internal/index.ts +3 -1
  948. package/src/internal/rewards/Audit.ts +231 -0
  949. package/src/internal/rewards/Campaigns.test.ts +1234 -0
  950. package/src/internal/rewards/Campaigns.ts +1205 -0
  951. package/src/internal/rewards/Credits.ts +165 -0
  952. package/src/internal/rewards/Events.local.test.ts +113 -0
  953. package/src/internal/rewards/Events.test.ts +152 -0
  954. package/src/internal/rewards/Events.ts +468 -0
  955. package/src/internal/rewards/Projection.test.ts +681 -0
  956. package/src/internal/rewards/Projection.ts +987 -0
  957. package/src/internal/rewards/Rates.test.ts +171 -0
  958. package/src/internal/rewards/Rates.ts +110 -0
  959. package/src/internal/rewards/Read.test.ts +501 -0
  960. package/src/internal/rewards/Read.ts +476 -0
  961. package/src/internal/rewards/Runner.checkpoint.test.ts +80 -0
  962. package/src/internal/rewards/Runner.states.test.ts +188 -0
  963. package/src/internal/rewards/Runner.test.ts +90 -0
  964. package/src/internal/rewards/Runner.ts +2229 -0
  965. package/src/internal/rewards/Signer.test.ts +79 -0
  966. package/src/internal/rewards/Signer.ts +180 -0
  967. package/src/internal/rewards/index.ts +14 -0
  968. package/src/internal/{funding → routes}/Action.test.ts +63 -14
  969. package/src/internal/{funding → routes}/Action.ts +35 -8
  970. package/src/internal/{funding → routes}/Catalog.test.ts +3 -3
  971. package/src/internal/{funding → routes}/Catalog.ts +39 -39
  972. package/src/internal/{funding → routes}/Chain.test.ts +1 -1
  973. package/src/internal/{funding → routes}/Chain.ts +11 -11
  974. package/src/internal/{funding → routes}/Deposit.test.ts +1 -1
  975. package/src/internal/{funding → routes}/Deposit.ts +93 -45
  976. package/src/internal/{funding → routes}/DepositAddress.test.ts +11 -3
  977. package/src/internal/{funding → routes}/DepositAddress.ts +132 -53
  978. package/src/internal/{funding → routes}/DepositWebhook.test.ts +61 -18
  979. package/src/internal/{funding → routes}/DepositWebhook.ts +9 -8
  980. package/src/internal/routes/Economics.test.ts +42 -0
  981. package/src/internal/routes/Economics.ts +47 -0
  982. package/src/internal/{funding → routes}/Evidence.test.ts +6 -6
  983. package/src/internal/{funding → routes}/Evidence.ts +11 -22
  984. package/src/internal/routes/Observability.test.ts +636 -0
  985. package/src/internal/routes/Observability.ts +668 -0
  986. package/src/internal/{funding → routes}/Provider.test.ts +489 -153
  987. package/src/internal/{funding → routes}/Provider.ts +531 -185
  988. package/src/internal/{funding → routes}/Reconciliation.local.test.ts +84 -12
  989. package/src/internal/{funding → routes}/Reconciliation.test.ts +1213 -279
  990. package/src/internal/{funding → routes}/Reconciliation.ts +501 -203
  991. package/src/internal/routes/Reconciliation.unattributed.test.ts +250 -0
  992. package/src/internal/{funding → routes}/Route.ts +7 -7
  993. package/src/internal/{funding → routes}/SourceObservation.test.ts +13 -14
  994. package/src/internal/{funding → routes}/SourceObservation.ts +18 -22
  995. package/src/internal/{funding → routes}/Subsidy.local.test.ts +7 -7
  996. package/src/internal/routes/Subsidy.test.ts +169 -0
  997. package/src/internal/{funding → routes}/Subsidy.ts +86 -6
  998. package/src/internal/{funding → routes}/Token.test.ts +1 -1
  999. package/src/internal/{funding → routes}/Token.ts +5 -5
  1000. package/src/internal/routes/Transfer.test.ts +1199 -0
  1001. package/src/internal/routes/Transfer.ts +1206 -0
  1002. package/src/internal/routes/TransferReconciliation.test.ts +731 -0
  1003. package/src/internal/routes/TransferReconciliation.ts +527 -0
  1004. package/src/internal/routes/TransferSubsidy.test.ts +172 -0
  1005. package/src/internal/routes/TransferSubsidy.ts +447 -0
  1006. package/src/internal/routes/TransferWebhook.test.ts +128 -0
  1007. package/src/internal/routes/TransferWebhook.ts +67 -0
  1008. package/src/internal/{funding → routes}/index.test.ts +6 -3
  1009. package/src/internal/{funding → routes}/index.ts +3 -0
  1010. package/src/internal/{funding → routes}/providers/across.ts +16 -16
  1011. package/src/internal/{funding → routes}/providers/index.test.ts +157 -44
  1012. package/src/internal/{funding → routes}/providers/relay.test.ts +165 -32
  1013. package/src/internal/{funding → routes}/providers/relay.ts +231 -136
  1014. package/src/internal/{funding → routes}/providers/rhino.ts +16 -16
  1015. package/src/internal/{funding → routes}/providers/squid.ts +17 -17
  1016. package/src/internal/routes/providers/stargate.test.ts +728 -0
  1017. package/src/internal/routes/providers/stargate.ts +1276 -0
  1018. package/src/internal/{funding → routes}/providers/symbiosis.ts +64 -24
  1019. package/src/internal/webhookDestinations/slack.ts +20 -5
  1020. package/src/providers/index.ts +13 -13
  1021. package/src/server.ts +18 -0
  1022. package/dist/apps/funding/Access.d.ts.map +0 -1
  1023. package/dist/apps/funding/Access.js.map +0 -1
  1024. package/dist/apps/funding/App.js.map +0 -1
  1025. package/dist/apps/funding/Inventory.d.ts.map +0 -1
  1026. package/dist/apps/funding/Inventory.js.map +0 -1
  1027. package/dist/apps/funding/ProviderAttempts.d.ts +0 -5
  1028. package/dist/apps/funding/ProviderAttempts.d.ts.map +0 -1
  1029. package/dist/apps/funding/ProviderAttempts.js +0 -24
  1030. package/dist/apps/funding/ProviderAttempts.js.map +0 -1
  1031. package/dist/apps/funding/index.d.ts +0 -2
  1032. package/dist/apps/funding/index.d.ts.map +0 -1
  1033. package/dist/apps/funding/index.js +0 -2
  1034. package/dist/apps/funding/index.js.map +0 -1
  1035. package/dist/apps/funding/routes/chains.d.ts.map +0 -1
  1036. package/dist/apps/funding/routes/chains.js.map +0 -1
  1037. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +0 -1
  1038. package/dist/apps/funding/routes/deposit-addresses.js.map +0 -1
  1039. package/dist/apps/funding/routes/providers.d.ts.map +0 -1
  1040. package/dist/apps/funding/routes/providers.js +0 -57
  1041. package/dist/apps/funding/routes/providers.js.map +0 -1
  1042. package/dist/apps/funding/routes/quotes.d.ts.map +0 -1
  1043. package/dist/apps/funding/routes/quotes.js.map +0 -1
  1044. package/dist/apps/funding/routes/transfers.d.ts.map +0 -1
  1045. package/dist/apps/funding/routes/transfers.js +0 -622
  1046. package/dist/apps/funding/routes/transfers.js.map +0 -1
  1047. package/dist/db/tables/fundingCatalog.d.ts +0 -58
  1048. package/dist/db/tables/fundingCatalog.d.ts.map +0 -1
  1049. package/dist/db/tables/fundingCatalog.js.map +0 -1
  1050. package/dist/db/tables/fundingDepositAddresses.d.ts +0 -192
  1051. package/dist/db/tables/fundingDepositAddresses.d.ts.map +0 -1
  1052. package/dist/db/tables/fundingDepositAddresses.js +0 -235
  1053. package/dist/db/tables/fundingDepositAddresses.js.map +0 -1
  1054. package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +0 -1
  1055. package/dist/db/tables/fundingDepositRequestObservations.js.map +0 -1
  1056. package/dist/db/tables/fundingDeposits.d.ts.map +0 -1
  1057. package/dist/db/tables/fundingDeposits.js +0 -295
  1058. package/dist/db/tables/fundingDeposits.js.map +0 -1
  1059. package/dist/db/tables/fundingIdempotency.d.ts +0 -91
  1060. package/dist/db/tables/fundingIdempotency.d.ts.map +0 -1
  1061. package/dist/db/tables/fundingIdempotency.js +0 -103
  1062. package/dist/db/tables/fundingIdempotency.js.map +0 -1
  1063. package/dist/db/tables/fundingTransferEvents.d.ts.map +0 -1
  1064. package/dist/db/tables/fundingTransferEvents.js.map +0 -1
  1065. package/dist/db/tables/fundingTransferTransactions.d.ts +0 -15
  1066. package/dist/db/tables/fundingTransferTransactions.d.ts.map +0 -1
  1067. package/dist/db/tables/fundingTransferTransactions.js +0 -27
  1068. package/dist/db/tables/fundingTransferTransactions.js.map +0 -1
  1069. package/dist/db/tables/fundingTransfers.d.ts +0 -82
  1070. package/dist/db/tables/fundingTransfers.d.ts.map +0 -1
  1071. package/dist/db/tables/fundingTransfers.js +0 -89
  1072. package/dist/db/tables/fundingTransfers.js.map +0 -1
  1073. package/dist/internal/funding/Action.d.ts.map +0 -1
  1074. package/dist/internal/funding/Action.js.map +0 -1
  1075. package/dist/internal/funding/Catalog.d.ts.map +0 -1
  1076. package/dist/internal/funding/Catalog.js.map +0 -1
  1077. package/dist/internal/funding/Chain.d.ts.map +0 -1
  1078. package/dist/internal/funding/Chain.js.map +0 -1
  1079. package/dist/internal/funding/Deposit.d.ts.map +0 -1
  1080. package/dist/internal/funding/Deposit.js.map +0 -1
  1081. package/dist/internal/funding/DepositAddress.d.ts.map +0 -1
  1082. package/dist/internal/funding/DepositAddress.js.map +0 -1
  1083. package/dist/internal/funding/DepositWebhook.d.ts.map +0 -1
  1084. package/dist/internal/funding/DepositWebhook.js.map +0 -1
  1085. package/dist/internal/funding/Evidence.d.ts.map +0 -1
  1086. package/dist/internal/funding/Evidence.js.map +0 -1
  1087. package/dist/internal/funding/Provider.d.ts.map +0 -1
  1088. package/dist/internal/funding/Provider.js.map +0 -1
  1089. package/dist/internal/funding/Reconciliation.d.ts.map +0 -1
  1090. package/dist/internal/funding/Reconciliation.js.map +0 -1
  1091. package/dist/internal/funding/Route.d.ts +0 -21
  1092. package/dist/internal/funding/Route.d.ts.map +0 -1
  1093. package/dist/internal/funding/Route.js.map +0 -1
  1094. package/dist/internal/funding/SourceObservation.d.ts.map +0 -1
  1095. package/dist/internal/funding/SourceObservation.js.map +0 -1
  1096. package/dist/internal/funding/Subsidy.d.ts.map +0 -1
  1097. package/dist/internal/funding/Subsidy.js.map +0 -1
  1098. package/dist/internal/funding/Token.d.ts.map +0 -1
  1099. package/dist/internal/funding/Token.js.map +0 -1
  1100. package/dist/internal/funding/Transfer.d.ts.map +0 -1
  1101. package/dist/internal/funding/Transfer.js +0 -334
  1102. package/dist/internal/funding/Transfer.js.map +0 -1
  1103. package/dist/internal/funding/index.d.ts.map +0 -1
  1104. package/dist/internal/funding/index.js.map +0 -1
  1105. package/dist/internal/funding/providers/across.d.ts.map +0 -1
  1106. package/dist/internal/funding/providers/across.js.map +0 -1
  1107. package/dist/internal/funding/providers/relay.d.ts.map +0 -1
  1108. package/dist/internal/funding/providers/relay.js.map +0 -1
  1109. package/dist/internal/funding/providers/rhino.d.ts.map +0 -1
  1110. package/dist/internal/funding/providers/rhino.js.map +0 -1
  1111. package/dist/internal/funding/providers/squid.d.ts.map +0 -1
  1112. package/dist/internal/funding/providers/squid.js.map +0 -1
  1113. package/dist/internal/funding/providers/stargate.d.ts +0 -38
  1114. package/dist/internal/funding/providers/stargate.d.ts.map +0 -1
  1115. package/dist/internal/funding/providers/stargate.js +0 -277
  1116. package/dist/internal/funding/providers/stargate.js.map +0 -1
  1117. package/dist/internal/funding/providers/symbiosis.d.ts.map +0 -1
  1118. package/dist/internal/funding/providers/symbiosis.js.map +0 -1
  1119. package/src/apps/funding/App.test.ts +0 -78
  1120. package/src/apps/funding/App.ts +0 -78
  1121. package/src/apps/funding/ProviderAttempts.ts +0 -26
  1122. package/src/apps/funding/index.ts +0 -1
  1123. package/src/apps/funding/routes/transfers.test.ts +0 -1638
  1124. package/src/apps/funding/routes/transfers.ts +0 -721
  1125. package/src/db/tables/fundingCatalog.test.ts +0 -122
  1126. package/src/db/tables/fundingCatalog.ts +0 -163
  1127. package/src/db/tables/fundingDepositAddresses.test.ts +0 -608
  1128. package/src/db/tables/fundingDepositAddresses.ts +0 -443
  1129. package/src/db/tables/fundingDeposits.ts +0 -572
  1130. package/src/db/tables/fundingIdempotency.test.ts +0 -182
  1131. package/src/db/tables/fundingIdempotency.ts +0 -180
  1132. package/src/db/tables/fundingTransferTransactions.test.ts +0 -69
  1133. package/src/db/tables/fundingTransferTransactions.ts +0 -37
  1134. package/src/db/tables/fundingTransfers.test.ts +0 -89
  1135. package/src/db/tables/fundingTransfers.ts +0 -153
  1136. package/src/handlers/internal/multisig.test.ts +0 -818
  1137. package/src/internal/funding/Subsidy.test.ts +0 -75
  1138. package/src/internal/funding/Transfer.test.ts +0 -369
  1139. package/src/internal/funding/Transfer.ts +0 -545
  1140. package/src/internal/funding/providers/stargate.test.ts +0 -163
  1141. package/src/internal/funding/providers/stargate.ts +0 -409
  1142. /package/dist/apps/{funding → routes}/Inventory.d.ts +0 -0
  1143. /package/src/internal/{funding → routes}/Route.test.ts +0 -0
@@ -1,101 +1,27 @@
1
1
  import type * as App from '../../App.js';
2
- import type * as FundingDepositAddress from '../../internal/funding/DepositAddress.js';
3
- import type * as FundingProvider from '../../internal/funding/Provider.js';
2
+ import type * as RoutesDepositAddress from '../../internal/routes/DepositAddress.js';
3
+ import type * as RoutesObservability from '../../internal/routes/Observability.js';
4
+ import type * as RoutesProvider from '../../internal/routes/Provider.js';
5
+ import type * as RoutesTransferReconciliation from '../../internal/routes/TransferReconciliation.js';
6
+ import type * as RoutesTransferSubsidy from '../../internal/routes/TransferSubsidy.js';
7
+ import type * as Webhooks from '../../internal/Webhooks.js';
4
8
  /**
5
- * Mounts the Funding & Bridge API, including quotes, inventory, reusable
9
+ * Mounts the Routes API, including quotes, inventory, reusable
6
10
  * deposit addresses, detected deposits, and transfers.
7
11
  *
8
12
  * ```ts
9
- * App.create(options).route('/', data()).route('/', funding())
13
+ * App.create(options).route('/', data()).route('/', routes())
10
14
  * ```
11
15
  */
12
- export declare function funding(options?: funding.Options): import("hono/hono-base").HonoBase<App.Environment, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
13
- "/v1/funding/chains": {
14
- $get: {
15
- output: null;
16
- outputFormat: "body";
17
- status: 402;
18
- input: {};
19
- } | {
20
- output: {
21
- error: {
22
- code: "api_key_malformed";
23
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
24
- message: string;
25
- };
26
- requestId: string;
27
- };
28
- outputFormat: "json";
29
- status: 400;
30
- input: {};
31
- } | {
32
- output: {
33
- error: {
34
- code: "api_key_invalid" | "api_key_missing";
35
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
36
- message: string;
37
- };
38
- requestId: string;
39
- };
40
- outputFormat: "json";
41
- status: 401;
42
- input: {};
43
- } | {
44
- output: {
45
- error: {
46
- code: "api_key_forbidden" | "api_key_ip_forbidden";
47
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
48
- message: string;
49
- };
50
- requestId: string;
51
- };
52
- outputFormat: "json";
53
- status: 403;
54
- input: {};
55
- } | {
56
- output: {
57
- error: {
58
- code: "payment_required" | "rate_limit_exceeded";
59
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
60
- message: string;
61
- };
62
- requestId: string;
63
- };
64
- outputFormat: "json";
65
- status: 429;
66
- input: {};
67
- } | {
68
- output: {
69
- data: {
70
- addressFormat: "base58" | "base58check" | "hex";
71
- id: string;
72
- kind: "evm" | "solana" | "tron";
73
- name: string;
74
- tokens: {
75
- address: string;
76
- currency: string;
77
- decimals: number;
78
- name: string;
79
- standard: string;
80
- symbol: string;
81
- tokenKey: string;
82
- verified: boolean;
83
- }[];
84
- }[];
85
- };
86
- outputFormat: "json";
87
- status: 200;
88
- input: {};
89
- };
90
- };
91
- }, "/"> | import("hono/types").MergeSchemaPath<{
92
- "/v1/funding/quotes": {
16
+ export declare function routes(options?: routes.Options): import("hono/hono-base").HonoBase<App.Environment, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
17
+ "/v1/routes/quotes": {
93
18
  $get: {
94
19
  output: null;
95
20
  outputFormat: "body";
96
21
  status: 402;
97
22
  input: {
98
23
  query: {
24
+ destinationChain?: string | string[];
99
25
  destinationToken?: string | string[];
100
26
  provider?: string | string[];
101
27
  sourceAmount: string | string[];
@@ -117,6 +43,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
117
43
  status: 400;
118
44
  input: {
119
45
  query: {
46
+ destinationChain?: string | string[];
120
47
  destinationToken?: string | string[];
121
48
  provider?: string | string[];
122
49
  sourceAmount: string | string[];
@@ -138,6 +65,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
138
65
  status: 401;
139
66
  input: {
140
67
  query: {
68
+ destinationChain?: string | string[];
141
69
  destinationToken?: string | string[];
142
70
  provider?: string | string[];
143
71
  sourceAmount: string | string[];
@@ -159,6 +87,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
159
87
  status: 403;
160
88
  input: {
161
89
  query: {
90
+ destinationChain?: string | string[];
162
91
  destinationToken?: string | string[];
163
92
  provider?: string | string[];
164
93
  sourceAmount: string | string[];
@@ -180,6 +109,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
180
109
  status: 429;
181
110
  input: {
182
111
  query: {
112
+ destinationChain?: string | string[];
183
113
  destinationToken?: string | string[];
184
114
  provider?: string | string[];
185
115
  sourceAmount: string | string[];
@@ -201,6 +131,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
201
131
  status: 400;
202
132
  input: {
203
133
  query: {
134
+ destinationChain?: string | string[];
204
135
  destinationToken?: string | string[];
205
136
  provider?: string | string[];
206
137
  sourceAmount: string | string[];
@@ -222,6 +153,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
222
153
  status: 502;
223
154
  input: {
224
155
  query: {
156
+ destinationChain?: string | string[];
225
157
  destinationToken?: string | string[];
226
158
  provider?: string | string[];
227
159
  sourceAmount: string | string[];
@@ -268,8 +200,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
268
200
  };
269
201
  quality: {
270
202
  estimatedSeconds?: number | undefined;
271
- liquiditySource: string;
272
- sourceDetail?: string | undefined;
273
203
  tier: "liquid" | "thin";
274
204
  };
275
205
  quote: {
@@ -304,6 +234,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
304
234
  status: 200;
305
235
  input: {
306
236
  query: {
237
+ destinationChain?: string | string[];
307
238
  destinationToken?: string | string[];
308
239
  provider?: string | string[];
309
240
  sourceAmount: string | string[];
@@ -315,7 +246,86 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
315
246
  };
316
247
  };
317
248
  }, "/"> | import("hono/types").MergeSchemaPath<{
318
- "/v1/funding/providers": {
249
+ "/v1/routes/chains": {
250
+ $get: {
251
+ output: null;
252
+ outputFormat: "body";
253
+ status: 402;
254
+ input: {};
255
+ } | {
256
+ output: {
257
+ error: {
258
+ code: "api_key_malformed";
259
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
260
+ message: string;
261
+ };
262
+ requestId: string;
263
+ };
264
+ outputFormat: "json";
265
+ status: 400;
266
+ input: {};
267
+ } | {
268
+ output: {
269
+ error: {
270
+ code: "api_key_invalid" | "api_key_missing";
271
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
272
+ message: string;
273
+ };
274
+ requestId: string;
275
+ };
276
+ outputFormat: "json";
277
+ status: 401;
278
+ input: {};
279
+ } | {
280
+ output: {
281
+ error: {
282
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
283
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
284
+ message: string;
285
+ };
286
+ requestId: string;
287
+ };
288
+ outputFormat: "json";
289
+ status: 403;
290
+ input: {};
291
+ } | {
292
+ output: {
293
+ error: {
294
+ code: "payment_required" | "rate_limit_exceeded";
295
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
296
+ message: string;
297
+ };
298
+ requestId: string;
299
+ };
300
+ outputFormat: "json";
301
+ status: 429;
302
+ input: {};
303
+ } | {
304
+ output: {
305
+ data: {
306
+ addressFormat: "base58" | "base58check" | "hex";
307
+ id: string;
308
+ kind: "evm" | "solana" | "tron";
309
+ name: string;
310
+ tokens: {
311
+ address: string;
312
+ currency: string;
313
+ decimals: number;
314
+ name: string;
315
+ standard: string;
316
+ symbol: string;
317
+ tokenKey: string;
318
+ verified: boolean;
319
+ }[];
320
+ }[];
321
+ };
322
+ outputFormat: "json";
323
+ status: 200;
324
+ input: {};
325
+ };
326
+ };
327
+ }, "/"> | import("hono/types").MergeSchemaPath<{
328
+ "/v1/routes/providers": {
319
329
  $get: {
320
330
  output: null;
321
331
  outputFormat: "body";
@@ -382,7 +392,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
382
392
  };
383
393
  };
384
394
  }, "/"> | import("hono/types").MergeSchemaPath<{
385
- "/v1/funding/transfers": {
395
+ "/v1/routes/transfers": {
386
396
  $get: {
387
397
  output: {
388
398
  error: {
@@ -532,6 +542,12 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
532
542
  decimals: number;
533
543
  formatted: string;
534
544
  } | undefined;
545
+ destinationAmountRequired?: {
546
+ baseUnits: string;
547
+ currency: string;
548
+ decimals: number;
549
+ formatted: string;
550
+ } | undefined;
535
551
  destinationChain: {
536
552
  addressFormat: "base58" | "base58check" | "hex";
537
553
  id: string;
@@ -619,9 +635,10 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
619
635
  verified: boolean;
620
636
  };
621
637
  sourceTransactionHashes?: string[] | undefined;
638
+ subsidize: boolean;
622
639
  status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
623
640
  statusReason?: {
624
- code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
641
+ code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
625
642
  message: string;
626
643
  } | undefined;
627
644
  updatedAt: string;
@@ -646,7 +663,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
646
663
  };
647
664
  };
648
665
  } & {
649
- "/v1/funding/transfers/:id{ftr_[A-Za-z0-9_-]+}": {
666
+ "/v1/routes/transfers/:id{rtr_[A-Za-z0-9_-]+}": {
650
667
  $get: {
651
668
  output: {
652
669
  error: {
@@ -762,7 +779,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
762
779
  } | {
763
780
  output: {
764
781
  error: {
765
- code: "funding_transfer_not_found";
782
+ code: "routes_transfer_not_found";
766
783
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
767
784
  message: string;
768
785
  };
@@ -790,6 +807,12 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
790
807
  decimals: number;
791
808
  formatted: string;
792
809
  } | undefined;
810
+ destinationAmountRequired?: {
811
+ baseUnits: string;
812
+ currency: string;
813
+ decimals: number;
814
+ formatted: string;
815
+ } | undefined;
793
816
  destinationChain: {
794
817
  addressFormat: "base58" | "base58check" | "hex";
795
818
  id: string;
@@ -877,25 +900,468 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
877
900
  verified: boolean;
878
901
  };
879
902
  sourceTransactionHashes?: string[] | undefined;
903
+ subsidize: boolean;
880
904
  status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
881
905
  statusReason?: {
882
- code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
906
+ code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
907
+ message: string;
908
+ } | undefined;
909
+ updatedAt: string;
910
+ version: number;
911
+ };
912
+ outputFormat: "json";
913
+ status: 200;
914
+ input: {
915
+ param: {
916
+ id: string;
917
+ };
918
+ };
919
+ };
920
+ };
921
+ } & {
922
+ "/v1/routes/transfers/:id{rtr_[A-Za-z0-9_-]+}/source-transactions": {
923
+ $post: {
924
+ output: {
925
+ error: {
926
+ code: "api_key_malformed";
927
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
928
+ message: string;
929
+ };
930
+ requestId: string;
931
+ };
932
+ outputFormat: "json";
933
+ status: 400;
934
+ input: {
935
+ param: {
936
+ id: string;
937
+ };
938
+ } & {
939
+ json: {
940
+ transactionHash: `0x${string}`;
941
+ } | {
942
+ transactionHashes: `0x${string}`[];
943
+ };
944
+ };
945
+ } | {
946
+ output: {
947
+ error: {
948
+ code: "api_key_invalid" | "api_key_missing";
949
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
950
+ message: string;
951
+ };
952
+ requestId: string;
953
+ };
954
+ outputFormat: "json";
955
+ status: 401;
956
+ input: {
957
+ param: {
958
+ id: string;
959
+ };
960
+ } & {
961
+ json: {
962
+ transactionHash: `0x${string}`;
963
+ } | {
964
+ transactionHashes: `0x${string}`[];
965
+ };
966
+ };
967
+ } | {
968
+ output: {
969
+ error: {
970
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
971
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
972
+ message: string;
973
+ };
974
+ requestId: string;
975
+ };
976
+ outputFormat: "json";
977
+ status: 403;
978
+ input: {
979
+ param: {
980
+ id: string;
981
+ };
982
+ } & {
983
+ json: {
984
+ transactionHash: `0x${string}`;
985
+ } | {
986
+ transactionHashes: `0x${string}`[];
987
+ };
988
+ };
989
+ } | {
990
+ output: {
991
+ error: {
992
+ code: "payment_required" | "rate_limit_exceeded";
993
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
994
+ message: string;
995
+ };
996
+ requestId: string;
997
+ };
998
+ outputFormat: "json";
999
+ status: 429;
1000
+ input: {
1001
+ param: {
1002
+ id: string;
1003
+ };
1004
+ } & {
1005
+ json: {
1006
+ transactionHash: `0x${string}`;
1007
+ } | {
1008
+ transactionHashes: `0x${string}`[];
1009
+ };
1010
+ };
1011
+ } | {
1012
+ output: {
1013
+ error: {
1014
+ code: "upstream_error";
1015
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1016
+ message: string;
1017
+ };
1018
+ requestId: string;
1019
+ };
1020
+ outputFormat: "json";
1021
+ status: 502;
1022
+ input: {
1023
+ param: {
1024
+ id: string;
1025
+ };
1026
+ } & {
1027
+ json: {
1028
+ transactionHash: `0x${string}`;
1029
+ } | {
1030
+ transactionHashes: `0x${string}`[];
1031
+ };
1032
+ };
1033
+ } | {
1034
+ output: {
1035
+ error: {
1036
+ code: "body_invalid";
1037
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1038
+ message: string;
1039
+ };
1040
+ requestId: string;
1041
+ };
1042
+ outputFormat: "json";
1043
+ status: 400;
1044
+ input: {
1045
+ param: {
1046
+ id: string;
1047
+ };
1048
+ } & {
1049
+ json: {
1050
+ transactionHash: `0x${string}`;
1051
+ } | {
1052
+ transactionHashes: `0x${string}`[];
1053
+ };
1054
+ };
1055
+ } | {
1056
+ output: {
1057
+ error: {
1058
+ code: "unauthorized";
1059
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1060
+ message: string;
1061
+ };
1062
+ requestId: string;
1063
+ };
1064
+ outputFormat: "json";
1065
+ status: 401;
1066
+ input: {
1067
+ param: {
1068
+ id: string;
1069
+ };
1070
+ } & {
1071
+ json: {
1072
+ transactionHash: `0x${string}`;
1073
+ } | {
1074
+ transactionHashes: `0x${string}`[];
1075
+ };
1076
+ };
1077
+ } | {
1078
+ output: {
1079
+ error: {
1080
+ code: "param_invalid";
1081
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1082
+ message: string;
1083
+ };
1084
+ requestId: string;
1085
+ };
1086
+ outputFormat: "json";
1087
+ status: 400;
1088
+ input: {
1089
+ param: {
1090
+ id: string;
1091
+ };
1092
+ } & {
1093
+ json: {
1094
+ transactionHash: `0x${string}`;
1095
+ } | {
1096
+ transactionHashes: `0x${string}`[];
1097
+ };
1098
+ };
1099
+ } | {
1100
+ output: {
1101
+ error: {
1102
+ code: "not_implemented";
1103
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1104
+ message: string;
1105
+ };
1106
+ requestId: string;
1107
+ };
1108
+ outputFormat: "json";
1109
+ status: 501;
1110
+ input: {
1111
+ param: {
1112
+ id: string;
1113
+ };
1114
+ } & {
1115
+ json: {
1116
+ transactionHash: `0x${string}`;
1117
+ } | {
1118
+ transactionHashes: `0x${string}`[];
1119
+ };
1120
+ };
1121
+ } | {
1122
+ output: {
1123
+ error: {
1124
+ code: "routes_transfer_not_found";
1125
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1126
+ message: string;
1127
+ };
1128
+ requestId: string;
1129
+ };
1130
+ outputFormat: "json";
1131
+ status: 404;
1132
+ input: {
1133
+ param: {
1134
+ id: string;
1135
+ };
1136
+ } & {
1137
+ json: {
1138
+ transactionHash: `0x${string}`;
1139
+ } | {
1140
+ transactionHashes: `0x${string}`[];
1141
+ };
1142
+ };
1143
+ } | {
1144
+ output: {
1145
+ createdAt: string;
1146
+ destinationAmount?: {
1147
+ baseUnits: string;
1148
+ currency: string;
1149
+ decimals: number;
1150
+ formatted: string;
1151
+ } | undefined;
1152
+ destinationAmountMin?: {
1153
+ baseUnits: string;
1154
+ currency: string;
1155
+ decimals: number;
1156
+ formatted: string;
1157
+ } | undefined;
1158
+ destinationAmountRequired?: {
1159
+ baseUnits: string;
1160
+ currency: string;
1161
+ decimals: number;
1162
+ formatted: string;
1163
+ } | undefined;
1164
+ destinationChain: {
1165
+ addressFormat: "base58" | "base58check" | "hex";
1166
+ id: string;
1167
+ kind: "evm" | "solana" | "tron";
1168
+ name: string;
1169
+ };
1170
+ destinationToken: {
1171
+ address: string;
1172
+ currency: string;
1173
+ decimals: number;
1174
+ name: string;
1175
+ standard: string;
1176
+ symbol: string;
1177
+ tokenKey: string;
1178
+ verified: boolean;
1179
+ };
1180
+ destinationTransactionHashes?: string[] | undefined;
1181
+ fees: {
1182
+ amount: {
1183
+ baseUnits: string;
1184
+ currency: string;
1185
+ decimals: number;
1186
+ formatted: string;
1187
+ };
1188
+ side: "destination" | "source";
1189
+ token: {
1190
+ address: string;
1191
+ currency: string;
1192
+ decimals: number;
1193
+ name: string;
1194
+ standard: string;
1195
+ symbol: string;
1196
+ tokenKey: string;
1197
+ verified: boolean;
1198
+ };
1199
+ type: "provider";
1200
+ }[];
1201
+ id: string;
1202
+ method: "depositAddress" | "transaction";
1203
+ mode: "exactDestination" | "exactSource";
1204
+ provider: {
1205
+ id: string;
1206
+ name: string;
1207
+ };
1208
+ quote: {
1209
+ expiresAt: string;
1210
+ sampledAt: string;
1211
+ };
1212
+ recipient: string;
1213
+ refundAddress?: string | undefined;
1214
+ refundAmount?: {
1215
+ baseUnits: string;
1216
+ currency: string;
1217
+ decimals: number;
1218
+ formatted: string;
1219
+ } | undefined;
1220
+ refundTransactionHashes?: string[] | undefined;
1221
+ sender?: string | undefined;
1222
+ sourceAmount: {
1223
+ baseUnits: string;
1224
+ currency: string;
1225
+ decimals: number;
1226
+ formatted: string;
1227
+ };
1228
+ sourceAmountMax?: {
1229
+ baseUnits: string;
1230
+ currency: string;
1231
+ decimals: number;
1232
+ formatted: string;
1233
+ } | undefined;
1234
+ sourceChain: {
1235
+ addressFormat: "base58" | "base58check" | "hex";
1236
+ id: string;
1237
+ kind: "evm" | "solana" | "tron";
1238
+ name: string;
1239
+ };
1240
+ sourceToken: {
1241
+ address: string;
1242
+ currency: string;
1243
+ decimals: number;
1244
+ name: string;
1245
+ standard: string;
1246
+ symbol: string;
1247
+ tokenKey: string;
1248
+ verified: boolean;
1249
+ };
1250
+ sourceTransactionHashes?: string[] | undefined;
1251
+ subsidize: boolean;
1252
+ status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
1253
+ statusReason?: {
1254
+ code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
1255
+ message: string;
1256
+ } | undefined;
1257
+ updatedAt: string;
1258
+ version: number;
1259
+ };
1260
+ outputFormat: "json";
1261
+ status: 200;
1262
+ input: {
1263
+ param: {
1264
+ id: string;
1265
+ };
1266
+ } & {
1267
+ json: {
1268
+ transactionHash: `0x${string}`;
1269
+ } | {
1270
+ transactionHashes: `0x${string}`[];
1271
+ };
1272
+ };
1273
+ } | {
1274
+ output: {
1275
+ error: {
1276
+ code: "routes_transfer_not_awaiting_source";
1277
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1278
+ message: string;
1279
+ };
1280
+ requestId: string;
1281
+ };
1282
+ outputFormat: "json";
1283
+ status: 409;
1284
+ input: {
1285
+ param: {
1286
+ id: string;
1287
+ };
1288
+ } & {
1289
+ json: {
1290
+ transactionHash: `0x${string}`;
1291
+ } | {
1292
+ transactionHashes: `0x${string}`[];
1293
+ };
1294
+ };
1295
+ } | {
1296
+ output: {
1297
+ error: {
1298
+ code: "source_transaction_invalid";
1299
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1300
+ message: string;
1301
+ };
1302
+ requestId: string;
1303
+ };
1304
+ outputFormat: "json";
1305
+ status: 400;
1306
+ input: {
1307
+ param: {
1308
+ id: string;
1309
+ };
1310
+ } & {
1311
+ json: {
1312
+ transactionHash: `0x${string}`;
1313
+ } | {
1314
+ transactionHashes: `0x${string}`[];
1315
+ };
1316
+ };
1317
+ } | {
1318
+ output: {
1319
+ error: {
1320
+ code: "source_transaction_pending";
1321
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1322
+ message: string;
1323
+ };
1324
+ requestId: string;
1325
+ };
1326
+ outputFormat: "json";
1327
+ status: 409;
1328
+ input: {
1329
+ param: {
1330
+ id: string;
1331
+ };
1332
+ } & {
1333
+ json: {
1334
+ transactionHash: `0x${string}`;
1335
+ } | {
1336
+ transactionHashes: `0x${string}`[];
1337
+ };
1338
+ };
1339
+ } | {
1340
+ output: {
1341
+ error: {
1342
+ code: "source_transaction_conflict";
1343
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
883
1344
  message: string;
884
- } | undefined;
885
- updatedAt: string;
886
- version: number;
1345
+ };
1346
+ requestId: string;
887
1347
  };
888
1348
  outputFormat: "json";
889
- status: 200;
1349
+ status: 409;
890
1350
  input: {
891
1351
  param: {
892
1352
  id: string;
893
1353
  };
1354
+ } & {
1355
+ json: {
1356
+ transactionHash: `0x${string}`;
1357
+ } | {
1358
+ transactionHashes: `0x${string}`[];
1359
+ };
894
1360
  };
895
1361
  };
896
1362
  };
897
1363
  } & {
898
- "/v1/funding/transfers": {
1364
+ "/v1/routes/transfers": {
899
1365
  $post: {
900
1366
  output: {
901
1367
  error: {
@@ -914,6 +1380,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
914
1380
  } & {
915
1381
  json: {
916
1382
  amount: string;
1383
+ destinationChain?: string | undefined;
917
1384
  destinationToken: string;
918
1385
  mode: "exactDestination" | "exactSource";
919
1386
  provider?: string | undefined;
@@ -922,6 +1389,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
922
1389
  slippageBps?: number | undefined;
923
1390
  sourceChain: string;
924
1391
  sourceToken: string;
1392
+ subsidize?: boolean | undefined;
925
1393
  };
926
1394
  };
927
1395
  } | {
@@ -942,6 +1410,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
942
1410
  } & {
943
1411
  json: {
944
1412
  amount: string;
1413
+ destinationChain?: string | undefined;
945
1414
  destinationToken: string;
946
1415
  mode: "exactDestination" | "exactSource";
947
1416
  provider?: string | undefined;
@@ -950,6 +1419,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
950
1419
  slippageBps?: number | undefined;
951
1420
  sourceChain: string;
952
1421
  sourceToken: string;
1422
+ subsidize?: boolean | undefined;
953
1423
  };
954
1424
  };
955
1425
  } | {
@@ -970,6 +1440,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
970
1440
  } & {
971
1441
  json: {
972
1442
  amount: string;
1443
+ destinationChain?: string | undefined;
973
1444
  destinationToken: string;
974
1445
  mode: "exactDestination" | "exactSource";
975
1446
  provider?: string | undefined;
@@ -978,6 +1449,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
978
1449
  slippageBps?: number | undefined;
979
1450
  sourceChain: string;
980
1451
  sourceToken: string;
1452
+ subsidize?: boolean | undefined;
981
1453
  };
982
1454
  };
983
1455
  } | {
@@ -998,6 +1470,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
998
1470
  } & {
999
1471
  json: {
1000
1472
  amount: string;
1473
+ destinationChain?: string | undefined;
1001
1474
  destinationToken: string;
1002
1475
  mode: "exactDestination" | "exactSource";
1003
1476
  provider?: string | undefined;
@@ -1006,6 +1479,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1006
1479
  slippageBps?: number | undefined;
1007
1480
  sourceChain: string;
1008
1481
  sourceToken: string;
1482
+ subsidize?: boolean | undefined;
1009
1483
  };
1010
1484
  };
1011
1485
  } | {
@@ -1026,6 +1500,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1026
1500
  } & {
1027
1501
  json: {
1028
1502
  amount: string;
1503
+ destinationChain?: string | undefined;
1029
1504
  destinationToken: string;
1030
1505
  mode: "exactDestination" | "exactSource";
1031
1506
  provider?: string | undefined;
@@ -1034,6 +1509,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1034
1509
  slippageBps?: number | undefined;
1035
1510
  sourceChain: string;
1036
1511
  sourceToken: string;
1512
+ subsidize?: boolean | undefined;
1037
1513
  };
1038
1514
  };
1039
1515
  } | {
@@ -1054,6 +1530,37 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1054
1530
  } & {
1055
1531
  json: {
1056
1532
  amount: string;
1533
+ destinationChain?: string | undefined;
1534
+ destinationToken: string;
1535
+ mode: "exactDestination" | "exactSource";
1536
+ provider?: string | undefined;
1537
+ recipient: string;
1538
+ sender: string;
1539
+ slippageBps?: number | undefined;
1540
+ sourceChain: string;
1541
+ sourceToken: string;
1542
+ subsidize?: boolean | undefined;
1543
+ };
1544
+ };
1545
+ } | {
1546
+ output: {
1547
+ error: {
1548
+ code: "quote_not_available";
1549
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1550
+ message: string;
1551
+ };
1552
+ requestId: string;
1553
+ };
1554
+ outputFormat: "json";
1555
+ status: 404;
1556
+ input: {
1557
+ header: {
1558
+ 'idempotency-key': string;
1559
+ };
1560
+ } & {
1561
+ json: {
1562
+ amount: string;
1563
+ destinationChain?: string | undefined;
1057
1564
  destinationToken: string;
1058
1565
  mode: "exactDestination" | "exactSource";
1059
1566
  provider?: string | undefined;
@@ -1062,6 +1569,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1062
1569
  slippageBps?: number | undefined;
1063
1570
  sourceChain: string;
1064
1571
  sourceToken: string;
1572
+ subsidize?: boolean | undefined;
1065
1573
  };
1066
1574
  };
1067
1575
  } | {
@@ -1082,6 +1590,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1082
1590
  } & {
1083
1591
  json: {
1084
1592
  amount: string;
1593
+ destinationChain?: string | undefined;
1085
1594
  destinationToken: string;
1086
1595
  mode: "exactDestination" | "exactSource";
1087
1596
  provider?: string | undefined;
@@ -1090,6 +1599,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1090
1599
  slippageBps?: number | undefined;
1091
1600
  sourceChain: string;
1092
1601
  sourceToken: string;
1602
+ subsidize?: boolean | undefined;
1093
1603
  };
1094
1604
  };
1095
1605
  } | {
@@ -1110,6 +1620,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1110
1620
  } & {
1111
1621
  json: {
1112
1622
  amount: string;
1623
+ destinationChain?: string | undefined;
1113
1624
  destinationToken: string;
1114
1625
  mode: "exactDestination" | "exactSource";
1115
1626
  provider?: string | undefined;
@@ -1118,6 +1629,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1118
1629
  slippageBps?: number | undefined;
1119
1630
  sourceChain: string;
1120
1631
  sourceToken: string;
1632
+ subsidize?: boolean | undefined;
1121
1633
  };
1122
1634
  };
1123
1635
  } | {
@@ -1138,6 +1650,67 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1138
1650
  } & {
1139
1651
  json: {
1140
1652
  amount: string;
1653
+ destinationChain?: string | undefined;
1654
+ destinationToken: string;
1655
+ mode: "exactDestination" | "exactSource";
1656
+ provider?: string | undefined;
1657
+ recipient: string;
1658
+ sender: string;
1659
+ slippageBps?: number | undefined;
1660
+ sourceChain: string;
1661
+ sourceToken: string;
1662
+ subsidize?: boolean | undefined;
1663
+ };
1664
+ };
1665
+ } | {
1666
+ output: {
1667
+ error: {
1668
+ code: "billing_past_due" | "billing_required" | "routes_subsidy_not_enabled";
1669
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1670
+ message: string;
1671
+ };
1672
+ requestId: string;
1673
+ };
1674
+ outputFormat: "json";
1675
+ status: 403;
1676
+ input: {
1677
+ header: {
1678
+ 'idempotency-key': string;
1679
+ };
1680
+ } & {
1681
+ json: {
1682
+ amount: string;
1683
+ destinationChain?: string | undefined;
1684
+ destinationToken: string;
1685
+ mode: "exactDestination" | "exactSource";
1686
+ provider?: string | undefined;
1687
+ recipient: string;
1688
+ sender: string;
1689
+ slippageBps?: number | undefined;
1690
+ sourceChain: string;
1691
+ sourceToken: string;
1692
+ subsidize?: boolean | undefined;
1693
+ };
1694
+ };
1695
+ } | {
1696
+ output: {
1697
+ error: {
1698
+ code: "not_implemented";
1699
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1700
+ message: string;
1701
+ };
1702
+ requestId: string;
1703
+ };
1704
+ outputFormat: "json";
1705
+ status: 501;
1706
+ input: {
1707
+ header: {
1708
+ 'idempotency-key': string;
1709
+ };
1710
+ } & {
1711
+ json: {
1712
+ amount: string;
1713
+ destinationChain?: string | undefined;
1141
1714
  destinationToken: string;
1142
1715
  mode: "exactDestination" | "exactSource";
1143
1716
  provider?: string | undefined;
@@ -1146,6 +1719,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1146
1719
  slippageBps?: number | undefined;
1147
1720
  sourceChain: string;
1148
1721
  sourceToken: string;
1722
+ subsidize?: boolean | undefined;
1149
1723
  };
1150
1724
  };
1151
1725
  } | {
@@ -1163,6 +1737,12 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1163
1737
  decimals: number;
1164
1738
  formatted: string;
1165
1739
  } | undefined;
1740
+ destinationAmountRequired?: {
1741
+ baseUnits: string;
1742
+ currency: string;
1743
+ decimals: number;
1744
+ formatted: string;
1745
+ } | undefined;
1166
1746
  destinationChain: {
1167
1747
  addressFormat: "base58" | "base58check" | "hex";
1168
1748
  id: string;
@@ -1250,9 +1830,10 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1250
1830
  verified: boolean;
1251
1831
  };
1252
1832
  sourceTransactionHashes?: string[] | undefined;
1833
+ subsidize: boolean;
1253
1834
  status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
1254
1835
  statusReason?: {
1255
- code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
1836
+ code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
1256
1837
  message: string;
1257
1838
  } | undefined;
1258
1839
  updatedAt: string;
@@ -1275,6 +1856,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1275
1856
  } & {
1276
1857
  json: {
1277
1858
  amount: string;
1859
+ destinationChain?: string | undefined;
1278
1860
  destinationToken: string;
1279
1861
  mode: "exactDestination" | "exactSource";
1280
1862
  provider?: string | undefined;
@@ -1283,19 +1865,80 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1283
1865
  slippageBps?: number | undefined;
1284
1866
  sourceChain: string;
1285
1867
  sourceToken: string;
1868
+ subsidize?: boolean | undefined;
1286
1869
  };
1287
1870
  };
1288
1871
  } | {
1289
1872
  output: {
1290
1873
  error: {
1291
- code: "quote_not_available";
1874
+ code: "routes_subsidy_limit_exceeded";
1292
1875
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1293
1876
  message: string;
1294
1877
  };
1295
1878
  requestId: string;
1296
1879
  };
1297
1880
  outputFormat: "json";
1298
- status: 404;
1881
+ status: 403;
1882
+ input: {
1883
+ header: {
1884
+ 'idempotency-key': string;
1885
+ };
1886
+ } & {
1887
+ json: {
1888
+ amount: string;
1889
+ destinationChain?: string | undefined;
1890
+ destinationToken: string;
1891
+ mode: "exactDestination" | "exactSource";
1892
+ provider?: string | undefined;
1893
+ recipient: string;
1894
+ sender: string;
1895
+ slippageBps?: number | undefined;
1896
+ sourceChain: string;
1897
+ sourceToken: string;
1898
+ subsidize?: boolean | undefined;
1899
+ };
1900
+ };
1901
+ } | {
1902
+ output: {
1903
+ error: {
1904
+ code: "subsidy_inventory_unavailable";
1905
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1906
+ message: string;
1907
+ };
1908
+ requestId: string;
1909
+ };
1910
+ outputFormat: "json";
1911
+ status: 503;
1912
+ input: {
1913
+ header: {
1914
+ 'idempotency-key': string;
1915
+ };
1916
+ } & {
1917
+ json: {
1918
+ amount: string;
1919
+ destinationChain?: string | undefined;
1920
+ destinationToken: string;
1921
+ mode: "exactDestination" | "exactSource";
1922
+ provider?: string | undefined;
1923
+ recipient: string;
1924
+ sender: string;
1925
+ slippageBps?: number | undefined;
1926
+ sourceChain: string;
1927
+ sourceToken: string;
1928
+ subsidize?: boolean | undefined;
1929
+ };
1930
+ };
1931
+ } | {
1932
+ output: {
1933
+ error: {
1934
+ code: "subsidy_signer_unavailable";
1935
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1936
+ message: string;
1937
+ };
1938
+ requestId: string;
1939
+ };
1940
+ outputFormat: "json";
1941
+ status: 503;
1299
1942
  input: {
1300
1943
  header: {
1301
1944
  'idempotency-key': string;
@@ -1303,6 +1946,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1303
1946
  } & {
1304
1947
  json: {
1305
1948
  amount: string;
1949
+ destinationChain?: string | undefined;
1306
1950
  destinationToken: string;
1307
1951
  mode: "exactDestination" | "exactSource";
1308
1952
  provider?: string | undefined;
@@ -1311,12 +1955,13 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1311
1955
  slippageBps?: number | undefined;
1312
1956
  sourceChain: string;
1313
1957
  sourceToken: string;
1958
+ subsidize?: boolean | undefined;
1314
1959
  };
1315
1960
  };
1316
1961
  };
1317
1962
  };
1318
1963
  } & {
1319
- "/v1/funding/transfers/vault": {
1964
+ "/v1/routes/transfers/vault": {
1320
1965
  $post: {
1321
1966
  output: {
1322
1967
  error: {
@@ -1482,7 +2127,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1482
2127
  };
1483
2128
  };
1484
2129
  } & {
1485
- "/v1/funding/transfers/zone": {
2130
+ "/v1/routes/transfers/zone": {
1486
2131
  $post: {
1487
2132
  output: {
1488
2133
  error: {
@@ -1660,7 +2305,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1660
2305
  };
1661
2306
  };
1662
2307
  }, "/"> | import("hono/types").MergeSchemaPath<{
1663
- "/webhooks/funding/:providerId": {
2308
+ "/webhooks/routes/:providerId": {
1664
2309
  $post: {
1665
2310
  output: null;
1666
2311
  outputFormat: "body";
@@ -1700,7 +2345,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1700
2345
  };
1701
2346
  };
1702
2347
  } & {
1703
- "/v1/funding/deposit-addresses": {
2348
+ "/v1/routes/deposit-addresses": {
1704
2349
  $post: {
1705
2350
  output: {
1706
2351
  error: {
@@ -1935,6 +2580,32 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1935
2580
  subsidize?: boolean | undefined;
1936
2581
  };
1937
2582
  };
2583
+ } | {
2584
+ output: {
2585
+ error: {
2586
+ code: "billing_past_due" | "billing_required" | "routes_subsidy_not_enabled";
2587
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2588
+ message: string;
2589
+ };
2590
+ requestId: string;
2591
+ };
2592
+ outputFormat: "json";
2593
+ status: 403;
2594
+ input: {
2595
+ header: {
2596
+ 'idempotency-key': string;
2597
+ };
2598
+ } & {
2599
+ json: {
2600
+ amount: string;
2601
+ destinationToken: string;
2602
+ recipient: string;
2603
+ refundAddress: string;
2604
+ sourceChain: string;
2605
+ sourceToken: string;
2606
+ subsidize?: boolean | undefined;
2607
+ };
2608
+ };
1938
2609
  } | {
1939
2610
  output: {
1940
2611
  error: {
@@ -1961,6 +2632,32 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1961
2632
  subsidize?: boolean | undefined;
1962
2633
  };
1963
2634
  };
2635
+ } | {
2636
+ output: {
2637
+ error: {
2638
+ code: "routes_deposit_address_limit_exceeded";
2639
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2640
+ message: string;
2641
+ };
2642
+ requestId: string;
2643
+ };
2644
+ outputFormat: "json";
2645
+ status: 403;
2646
+ input: {
2647
+ header: {
2648
+ 'idempotency-key': string;
2649
+ };
2650
+ } & {
2651
+ json: {
2652
+ amount: string;
2653
+ destinationToken: string;
2654
+ recipient: string;
2655
+ refundAddress: string;
2656
+ sourceChain: string;
2657
+ sourceToken: string;
2658
+ subsidize?: boolean | undefined;
2659
+ };
2660
+ };
1964
2661
  } | {
1965
2662
  output: {
1966
2663
  address: string;
@@ -2115,7 +2812,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2115
2812
  };
2116
2813
  };
2117
2814
  } & {
2118
- "/v1/funding/deposit-addresses": {
2815
+ "/v1/routes/deposit-addresses": {
2119
2816
  $get: {
2120
2817
  output: {
2121
2818
  error: {
@@ -2296,7 +2993,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2296
2993
  };
2297
2994
  };
2298
2995
  } & {
2299
- "/v1/funding/deposit-addresses/:id{fda_[A-Za-z0-9_-]+}": {
2996
+ "/v1/routes/deposit-addresses/:id{rda_[A-Za-z0-9_-]+}": {
2300
2997
  $get: {
2301
2998
  output: {
2302
2999
  error: {
@@ -2393,6 +3090,22 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2393
3090
  id: string;
2394
3091
  };
2395
3092
  };
3093
+ } | {
3094
+ output: {
3095
+ error: {
3096
+ code: "param_invalid";
3097
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3098
+ message: string;
3099
+ };
3100
+ requestId: string;
3101
+ };
3102
+ outputFormat: "json";
3103
+ status: 400;
3104
+ input: {
3105
+ param: {
3106
+ id: string;
3107
+ };
3108
+ };
2396
3109
  } | {
2397
3110
  output: {
2398
3111
  address: string;
@@ -2450,23 +3163,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2450
3163
  } | {
2451
3164
  output: {
2452
3165
  error: {
2453
- code: "param_invalid";
2454
- details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2455
- message: string;
2456
- };
2457
- requestId: string;
2458
- };
2459
- outputFormat: "json";
2460
- status: 400;
2461
- input: {
2462
- param: {
2463
- id: string;
2464
- };
2465
- };
2466
- } | {
2467
- output: {
2468
- error: {
2469
- code: "funding_deposit_address_not_found";
3166
+ code: "routes_deposit_address_not_found";
2470
3167
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2471
3168
  message: string;
2472
3169
  };
@@ -2482,7 +3179,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2482
3179
  };
2483
3180
  };
2484
3181
  } & {
2485
- "/v1/funding/deposit-addresses/:id{fda_[A-Za-z0-9_-]+}/reconcile": {
3182
+ "/v1/routes/deposit-addresses/:id{rda_[A-Za-z0-9_-]+}/reconcile": {
2486
3183
  $post: {
2487
3184
  output: null;
2488
3185
  outputFormat: "body";
@@ -2607,7 +3304,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2607
3304
  } | {
2608
3305
  output: {
2609
3306
  error: {
2610
- code: "funding_deposit_address_not_found";
3307
+ code: "routes_deposit_address_not_found";
2611
3308
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2612
3309
  message: string;
2613
3310
  };
@@ -2623,7 +3320,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2623
3320
  } | {
2624
3321
  output: {
2625
3322
  error: {
2626
- code: "funding_deposit_address_not_active";
3323
+ code: "routes_deposit_address_not_active";
2627
3324
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2628
3325
  message: string;
2629
3326
  };
@@ -2655,7 +3352,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2655
3352
  };
2656
3353
  };
2657
3354
  } & {
2658
- "/v1/funding/deposits": {
3355
+ "/v1/routes/deposits": {
2659
3356
  $get: {
2660
3357
  output: {
2661
3358
  error: {
@@ -2907,7 +3604,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2907
3604
  sourceTransferIndex?: number | undefined;
2908
3605
  status: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling";
2909
3606
  statusReason?: {
2910
- code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
3607
+ code: "billing_past_due" | "billing_required" | "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
2911
3608
  message: string;
2912
3609
  } | undefined;
2913
3610
  updatedAt: string;
@@ -2937,7 +3634,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
2937
3634
  };
2938
3635
  };
2939
3636
  } & {
2940
- "/v1/funding/deposits/:id{fdp_[A-Za-z0-9_-]+}": {
3637
+ "/v1/routes/deposits/:id{rdp_[A-Za-z0-9_-]+}": {
2941
3638
  $get: {
2942
3639
  output: {
2943
3640
  error: {
@@ -3053,7 +3750,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
3053
3750
  } | {
3054
3751
  output: {
3055
3752
  error: {
3056
- code: "funding_deposit_not_found";
3753
+ code: "routes_deposit_not_found";
3057
3754
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
3058
3755
  message: string;
3059
3756
  };
@@ -3141,7 +3838,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
3141
3838
  sourceTransferIndex?: number | undefined;
3142
3839
  status: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling";
3143
3840
  statusReason?: {
3144
- code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
3841
+ code: "billing_past_due" | "billing_required" | "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
3145
3842
  message: string;
3146
3843
  } | undefined;
3147
3844
  updatedAt: string;
@@ -3156,13 +3853,21 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
3156
3853
  };
3157
3854
  };
3158
3855
  }, "/">, "/", "/">;
3159
- export declare namespace funding {
3160
- /** Inbound funding route configuration. */
3856
+ export declare namespace routes {
3857
+ /** Routes group configuration. */
3161
3858
  type Options = {
3162
3859
  /** Enqueues one deposit address for asynchronous reconciliation. */
3163
- dispatchReconciliation?: ((message: FundingProvider.Webhook.receive.Dispatchable) => Promise<void>) | undefined;
3860
+ dispatchDepositReconciliation?: ((message: RoutesProvider.Webhook.receive.Dispatchable) => Promise<void>) | undefined;
3861
+ /** Enqueues one registered transfer for destination reconciliation. */
3862
+ dispatchTransferReconciliation?: ((message: RoutesTransferReconciliation.Message) => Promise<void>) | undefined;
3863
+ /** Enqueues webhook updates staged with transfer mutations. */
3864
+ dispatchTransferUpdates?: ((references: readonly Webhooks.QueueReference[]) => Promise<number>) | undefined;
3865
+ /** Records completed route lifecycle intervals. */
3866
+ recordLifecycleInterval?: ((interval: RoutesObservability.LifecycleInterval) => Promise<void>) | undefined;
3867
+ /** Read-only destination subsidy inventory, when settlement is configured. */
3868
+ transferSubsidy?: RoutesTransferSubsidy.Inventory | undefined;
3164
3869
  /** Registers a created address with a source-chain observer. */
3165
- registerDepositAddress?: ((address: FundingDepositAddress.Public) => Promise<void>) | undefined;
3870
+ registerDepositAddress?: ((address: RoutesDepositAddress.Public) => Promise<void>) | undefined;
3166
3871
  };
3167
3872
  }
3168
3873
  //# sourceMappingURL=App.d.ts.map