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
@@ -14,8 +14,9 @@ export declare namespace schema {
14
14
  }>>;
15
15
  eventType: z.ZodMiniEnum<{
16
16
  "block:created": "block:created";
17
- "funding:deposit.updated": "funding:deposit.updated";
18
17
  "log:emitted": "log:emitted";
18
+ "routes:deposit.updated": "routes:deposit.updated";
19
+ "routes:transfer.updated": "routes:transfer.updated";
19
20
  "token:transfer": "token:transfer";
20
21
  "transaction:included": "transaction:included";
21
22
  }>;
@@ -54,7 +55,7 @@ export declare namespace schema {
54
55
  error: z.ZodMiniOptional<z.ZodMiniString<string>>;
55
56
  eventId: z.ZodMiniString<string>;
56
57
  id: z.ZodMiniString<string>;
57
- requestUrl: z.ZodMiniString<string>;
58
+ requestUrl: z.ZodMiniURL;
58
59
  responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
59
60
  responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
60
61
  status: z.ZodMiniEnum<{
@@ -67,11 +68,7 @@ export declare namespace schema {
67
68
  /** Schemas for creating an organization webhook. */
68
69
  namespace createWebhook {
69
70
  /** Organization webhook creation requires an explicit network. */
70
- const Body: z.ZodMiniIntersection<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
71
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
72
- mainnet: "mainnet";
73
- testnet: "testnet";
74
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
71
+ const Body: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
75
72
  context: z.ZodMiniOptional<z.ZodMiniObject<{
76
73
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
77
74
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -95,11 +92,12 @@ export declare namespace schema {
95
92
  sender: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
96
93
  token: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
97
94
  }, z.core.$strip>>;
95
+ chainId: z.ZodMiniNumber<number>;
96
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
97
+ production: "production";
98
+ sandbox: "sandbox";
99
+ }>>;
98
100
  }, z.core.$strip>, z.ZodMiniObject<{
99
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
100
- mainnet: "mainnet";
101
- testnet: "testnet";
102
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
103
101
  context: z.ZodMiniOptional<z.ZodMiniObject<{
104
102
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
105
103
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -255,11 +253,12 @@ export declare namespace schema {
255
253
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
256
254
  }, z.core.$strict>]>>;
257
255
  }, z.core.$strict>>;
256
+ chainId: z.ZodMiniNumber<number>;
257
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
258
+ production: "production";
259
+ sandbox: "sandbox";
260
+ }>>;
258
261
  }, z.core.$strip>, z.ZodMiniObject<{
259
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
260
- mainnet: "mainnet";
261
- testnet: "testnet";
262
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
263
262
  context: z.ZodMiniOptional<z.ZodMiniObject<{
264
263
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
265
264
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -323,11 +322,12 @@ export declare namespace schema {
323
322
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
324
323
  }, z.core.$strict>]>>;
325
324
  }, z.core.$strict>;
325
+ chainId: z.ZodMiniNumber<number>;
326
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
327
+ production: "production";
328
+ sandbox: "sandbox";
329
+ }>>;
326
330
  }, z.core.$strip>, z.ZodMiniObject<{
327
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
328
- mainnet: "mainnet";
329
- testnet: "testnet";
330
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
331
331
  context: z.ZodMiniOptional<z.ZodMiniObject<{
332
332
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
333
333
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -389,11 +389,12 @@ export declare namespace schema {
389
389
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
390
390
  }, z.core.$strict>]>>;
391
391
  }, z.core.$strict>>;
392
+ chainId: z.ZodMiniNumber<number>;
393
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
394
+ production: "production";
395
+ sandbox: "sandbox";
396
+ }>>;
392
397
  }, z.core.$strip>, z.ZodMiniObject<{
393
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
394
- mainnet: "mainnet";
395
- testnet: "testnet";
396
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
397
398
  context: z.ZodMiniOptional<z.ZodMiniObject<{
398
399
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
399
400
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -410,7 +411,7 @@ export declare namespace schema {
410
411
  type: z.ZodMiniLiteral<"betterstack">;
411
412
  url: z.ZodMiniURL;
412
413
  }, z.core.$strip>], "type">;
413
- eventType: z.ZodMiniLiteral<"funding:deposit.updated">;
414
+ eventType: z.ZodMiniLiteral<"routes:deposit.updated">;
414
415
  filters: z.ZodMiniOptional<z.ZodMiniObject<{
415
416
  depositAddressId: z.ZodMiniOptional<z.ZodMiniString<string>>;
416
417
  recipient: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
@@ -424,13 +425,47 @@ export declare namespace schema {
424
425
  settling: "settling";
425
426
  }>>;
426
427
  }, z.core.$strict>>;
427
- }, z.core.$strip>], "eventType">, z.ZodMiniObject<{
428
428
  chainId: z.ZodMiniNumber<number>;
429
- environment: z.ZodMiniOptional<z.ZodMiniEnum<{
429
+ environment: z.ZodMiniEnum<{
430
430
  production: "production";
431
431
  sandbox: "sandbox";
432
- }>>;
433
- }, z.core.$strip>>;
432
+ }>;
433
+ }, z.core.$strip>, z.ZodMiniObject<{
434
+ context: z.ZodMiniOptional<z.ZodMiniObject<{
435
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
436
+ metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
437
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
438
+ }, z.core.$strip>>;
439
+ destination: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
440
+ type: z.ZodMiniLiteral<"url">;
441
+ url: z.ZodMiniURL;
442
+ }, z.core.$strip>, z.ZodMiniObject<{
443
+ type: z.ZodMiniLiteral<"slack">;
444
+ url: z.ZodMiniURL;
445
+ }, z.core.$strip>, z.ZodMiniObject<{
446
+ token: z.ZodMiniString<string>;
447
+ type: z.ZodMiniLiteral<"betterstack">;
448
+ url: z.ZodMiniURL;
449
+ }, z.core.$strip>], "type">;
450
+ eventType: z.ZodMiniLiteral<"routes:transfer.updated">;
451
+ filters: z.ZodMiniOptional<z.ZodMiniObject<{
452
+ id: z.ZodMiniOptional<z.ZodMiniString<string>>;
453
+ status: z.ZodMiniOptional<z.ZodMiniEnum<{
454
+ "action-required": "action-required";
455
+ "awaiting-source": "awaiting-source";
456
+ completed: "completed";
457
+ expired: "expired";
458
+ processing: "processing";
459
+ refunded: "refunded";
460
+ refunding: "refunding";
461
+ }>>;
462
+ }, z.core.$strict>>;
463
+ chainId: z.ZodMiniNumber<number>;
464
+ environment: z.ZodMiniEnum<{
465
+ production: "production";
466
+ sandbox: "sandbox";
467
+ }>;
468
+ }, z.core.$strip>], "eventType">;
434
469
  /** Created webhook with transport credentials redacted. */
435
470
  const Response: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
436
471
  chainId: z.ZodMiniNumber<number>;
@@ -441,8 +476,9 @@ export declare namespace schema {
441
476
  }>>;
442
477
  eventType: z.ZodMiniEnum<{
443
478
  "block:created": "block:created";
444
- "funding:deposit.updated": "funding:deposit.updated";
445
479
  "log:emitted": "log:emitted";
480
+ "routes:deposit.updated": "routes:deposit.updated";
481
+ "routes:transfer.updated": "routes:transfer.updated";
446
482
  "token:transfer": "token:transfer";
447
483
  "transaction:included": "transaction:included";
448
484
  }>;
@@ -476,8 +512,9 @@ export declare namespace schema {
476
512
  }>>;
477
513
  eventType: z.ZodMiniEnum<{
478
514
  "block:created": "block:created";
479
- "funding:deposit.updated": "funding:deposit.updated";
480
515
  "log:emitted": "log:emitted";
516
+ "routes:deposit.updated": "routes:deposit.updated";
517
+ "routes:transfer.updated": "routes:transfer.updated";
481
518
  "token:transfer": "token:transfer";
482
519
  "transaction:included": "transaction:included";
483
520
  }>;
@@ -510,8 +547,9 @@ export declare namespace schema {
510
547
  }>>;
511
548
  eventType: z.ZodMiniEnum<{
512
549
  "block:created": "block:created";
513
- "funding:deposit.updated": "funding:deposit.updated";
514
550
  "log:emitted": "log:emitted";
551
+ "routes:deposit.updated": "routes:deposit.updated";
552
+ "routes:transfer.updated": "routes:transfer.updated";
515
553
  "token:transfer": "token:transfer";
516
554
  "transaction:included": "transaction:included";
517
555
  }>;
@@ -568,7 +606,7 @@ export declare namespace schema {
568
606
  error: z.ZodMiniOptional<z.ZodMiniString<string>>;
569
607
  eventId: z.ZodMiniString<string>;
570
608
  id: z.ZodMiniString<string>;
571
- requestUrl: z.ZodMiniString<string>;
609
+ requestUrl: z.ZodMiniURL;
572
610
  responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
573
611
  responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
574
612
  status: z.ZodMiniEnum<{
@@ -598,7 +636,7 @@ export declare namespace schema {
598
636
  error: z.ZodMiniOptional<z.ZodMiniString<string>>;
599
637
  eventId: z.ZodMiniString<string>;
600
638
  id: z.ZodMiniString<string>;
601
- requestUrl: z.ZodMiniString<string>;
639
+ requestUrl: z.ZodMiniURL;
602
640
  responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
603
641
  responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
604
642
  status: z.ZodMiniEnum<{
@@ -913,10 +951,14 @@ export declare namespace schema {
913
951
  }>;
914
952
  statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
915
953
  code: z.ZodMiniEnum<{
954
+ billing_past_due: "billing_past_due";
955
+ billing_required: "billing_required";
916
956
  delivery_failed: "delivery_failed";
917
957
  delivery_liquidity_unavailable: "delivery_liquidity_unavailable";
918
958
  manual_recovery_required: "manual_recovery_required";
919
959
  refund_failed: "refund_failed";
960
+ routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
961
+ routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
920
962
  source_amount_not_supported: "source_amount_not_supported";
921
963
  source_token_mismatch: "source_token_mismatch";
922
964
  subsidy_balance_unavailable: "subsidy_balance_unavailable";
@@ -926,7 +968,187 @@ export declare namespace schema {
926
968
  }, z.core.$strip>>;
927
969
  updatedAt: z.ZodMiniISODateTime;
928
970
  }, z.core.$strip>;
929
- type: z.ZodMiniLiteral<"funding:deposit.updated">;
971
+ type: z.ZodMiniLiteral<"routes:deposit.updated">;
972
+ }, z.core.$strip>, z.ZodMiniObject<{
973
+ chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
974
+ mainnet: "mainnet";
975
+ testnet: "testnet";
976
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
977
+ context: z.ZodMiniOptional<z.ZodMiniObject<{
978
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
979
+ metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
980
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
981
+ }, z.core.$strip>>;
982
+ createdAt: z.ZodMiniISODateTime;
983
+ id: z.ZodMiniString<string>;
984
+ subscriptionId: z.ZodMiniString<string>;
985
+ data: z.ZodMiniObject<{
986
+ createdAt: z.ZodMiniISODateTime;
987
+ destinationAmount: z.ZodMiniOptional<z.ZodMiniObject<{
988
+ baseUnits: z.ZodMiniString<string>;
989
+ currency: z.ZodMiniString<string>;
990
+ decimals: z.ZodMiniNumber<number>;
991
+ formatted: z.ZodMiniString<string>;
992
+ }, z.core.$strip>>;
993
+ destinationAmountMin: z.ZodMiniOptional<z.ZodMiniObject<{
994
+ baseUnits: z.ZodMiniString<string>;
995
+ currency: z.ZodMiniString<string>;
996
+ decimals: z.ZodMiniNumber<number>;
997
+ formatted: z.ZodMiniString<string>;
998
+ }, z.core.$strip>>;
999
+ destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
1000
+ baseUnits: z.ZodMiniString<string>;
1001
+ currency: z.ZodMiniString<string>;
1002
+ decimals: z.ZodMiniNumber<number>;
1003
+ formatted: z.ZodMiniString<string>;
1004
+ }, z.core.$strip>>;
1005
+ destinationChain: z.ZodMiniObject<{
1006
+ addressFormat: z.ZodMiniEnum<{
1007
+ base58: "base58";
1008
+ base58check: "base58check";
1009
+ hex: "hex";
1010
+ }>;
1011
+ id: z.ZodMiniString<string>;
1012
+ kind: z.ZodMiniEnum<{
1013
+ evm: "evm";
1014
+ solana: "solana";
1015
+ tron: "tron";
1016
+ }>;
1017
+ name: z.ZodMiniString<string>;
1018
+ }, z.core.$strip>;
1019
+ destinationToken: z.ZodMiniObject<{
1020
+ address: z.ZodMiniString<string>;
1021
+ currency: z.ZodMiniString<string>;
1022
+ decimals: z.ZodMiniNumber<number>;
1023
+ name: z.ZodMiniString<string>;
1024
+ standard: z.ZodMiniString<string>;
1025
+ symbol: z.ZodMiniString<string>;
1026
+ tokenKey: z.ZodMiniString<string>;
1027
+ verified: z.ZodMiniBoolean<boolean>;
1028
+ }, z.core.$strip>;
1029
+ destinationTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
1030
+ fees: z.ZodMiniArray<z.ZodMiniObject<{
1031
+ amount: z.ZodMiniObject<{
1032
+ baseUnits: z.ZodMiniString<string>;
1033
+ currency: z.ZodMiniString<string>;
1034
+ decimals: z.ZodMiniNumber<number>;
1035
+ formatted: z.ZodMiniString<string>;
1036
+ }, z.core.$strip>;
1037
+ side: z.ZodMiniEnum<{
1038
+ destination: "destination";
1039
+ source: "source";
1040
+ }>;
1041
+ token: z.ZodMiniObject<{
1042
+ address: z.ZodMiniString<string>;
1043
+ currency: z.ZodMiniString<string>;
1044
+ decimals: z.ZodMiniNumber<number>;
1045
+ name: z.ZodMiniString<string>;
1046
+ standard: z.ZodMiniString<string>;
1047
+ symbol: z.ZodMiniString<string>;
1048
+ tokenKey: z.ZodMiniString<string>;
1049
+ verified: z.ZodMiniBoolean<boolean>;
1050
+ }, z.core.$strip>;
1051
+ type: z.ZodMiniEnum<{
1052
+ provider: "provider";
1053
+ }>;
1054
+ }, z.core.$strip>>;
1055
+ id: z.ZodMiniString<string>;
1056
+ method: z.ZodMiniEnum<{
1057
+ depositAddress: "depositAddress";
1058
+ transaction: "transaction";
1059
+ }>;
1060
+ mode: z.ZodMiniEnum<{
1061
+ exactDestination: "exactDestination";
1062
+ exactSource: "exactSource";
1063
+ }>;
1064
+ provider: z.ZodMiniObject<{
1065
+ id: z.ZodMiniString<string>;
1066
+ name: z.ZodMiniString<string>;
1067
+ }, z.core.$strip>;
1068
+ quote: z.ZodMiniObject<{
1069
+ expiresAt: z.ZodMiniISODateTime;
1070
+ sampledAt: z.ZodMiniISODateTime;
1071
+ }, z.core.$strip>;
1072
+ recipient: z.ZodMiniString<string>;
1073
+ refundAddress: z.ZodMiniOptional<z.ZodMiniString<string>>;
1074
+ refundAmount: z.ZodMiniOptional<z.ZodMiniObject<{
1075
+ baseUnits: z.ZodMiniString<string>;
1076
+ currency: z.ZodMiniString<string>;
1077
+ decimals: z.ZodMiniNumber<number>;
1078
+ formatted: z.ZodMiniString<string>;
1079
+ }, z.core.$strip>>;
1080
+ refundTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
1081
+ sender: z.ZodMiniOptional<z.ZodMiniString<string>>;
1082
+ sourceAmount: z.ZodMiniObject<{
1083
+ baseUnits: z.ZodMiniString<string>;
1084
+ currency: z.ZodMiniString<string>;
1085
+ decimals: z.ZodMiniNumber<number>;
1086
+ formatted: z.ZodMiniString<string>;
1087
+ }, z.core.$strip>;
1088
+ sourceAmountMax: z.ZodMiniOptional<z.ZodMiniObject<{
1089
+ baseUnits: z.ZodMiniString<string>;
1090
+ currency: z.ZodMiniString<string>;
1091
+ decimals: z.ZodMiniNumber<number>;
1092
+ formatted: z.ZodMiniString<string>;
1093
+ }, z.core.$strip>>;
1094
+ sourceChain: z.ZodMiniObject<{
1095
+ addressFormat: z.ZodMiniEnum<{
1096
+ base58: "base58";
1097
+ base58check: "base58check";
1098
+ hex: "hex";
1099
+ }>;
1100
+ id: z.ZodMiniString<string>;
1101
+ kind: z.ZodMiniEnum<{
1102
+ evm: "evm";
1103
+ solana: "solana";
1104
+ tron: "tron";
1105
+ }>;
1106
+ name: z.ZodMiniString<string>;
1107
+ }, z.core.$strip>;
1108
+ sourceToken: z.ZodMiniObject<{
1109
+ address: z.ZodMiniString<string>;
1110
+ currency: z.ZodMiniString<string>;
1111
+ decimals: z.ZodMiniNumber<number>;
1112
+ name: z.ZodMiniString<string>;
1113
+ standard: z.ZodMiniString<string>;
1114
+ symbol: z.ZodMiniString<string>;
1115
+ tokenKey: z.ZodMiniString<string>;
1116
+ verified: z.ZodMiniBoolean<boolean>;
1117
+ }, z.core.$strip>;
1118
+ sourceTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
1119
+ subsidize: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
1120
+ status: z.ZodMiniEnum<{
1121
+ "action-required": "action-required";
1122
+ "awaiting-source": "awaiting-source";
1123
+ completed: "completed";
1124
+ expired: "expired";
1125
+ processing: "processing";
1126
+ refunded: "refunded";
1127
+ refunding: "refunding";
1128
+ }>;
1129
+ statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
1130
+ code: z.ZodMiniEnum<{
1131
+ billing_past_due: "billing_past_due";
1132
+ billing_required: "billing_required";
1133
+ destination_amount_below_minimum: "destination_amount_below_minimum";
1134
+ destination_recovered: "destination_recovered";
1135
+ manual_recovery_required: "manual_recovery_required";
1136
+ refund_failed: "refund_failed";
1137
+ routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
1138
+ routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
1139
+ source_amount_above_maximum: "source_amount_above_maximum";
1140
+ source_amount_below_minimum: "source_amount_below_minimum";
1141
+ source_chain_mismatch: "source_chain_mismatch";
1142
+ source_token_mismatch: "source_token_mismatch";
1143
+ subsidy_balance_unavailable: "subsidy_balance_unavailable";
1144
+ subsidy_failed: "subsidy_failed";
1145
+ }>;
1146
+ message: z.ZodMiniString<string>;
1147
+ }, z.core.$strip>>;
1148
+ updatedAt: z.ZodMiniISODateTime;
1149
+ version: z.ZodMiniNumber<number>;
1150
+ }, z.core.$strip>;
1151
+ type: z.ZodMiniLiteral<"routes:transfer.updated">;
930
1152
  }, z.core.$strip>, z.ZodMiniObject<{
931
1153
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
932
1154
  mainnet: "mainnet";
@@ -973,8 +1195,9 @@ export declare namespace schema {
973
1195
  }>>;
974
1196
  eventType: z.ZodMiniEnum<{
975
1197
  "block:created": "block:created";
976
- "funding:deposit.updated": "funding:deposit.updated";
977
1198
  "log:emitted": "log:emitted";
1199
+ "routes:deposit.updated": "routes:deposit.updated";
1200
+ "routes:transfer.updated": "routes:transfer.updated";
978
1201
  "token:transfer": "token:transfer";
979
1202
  "transaction:included": "transaction:included";
980
1203
  }>;
@@ -1026,7 +1249,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1026
1249
  $post: {
1027
1250
  output: {
1028
1251
  error: {
1029
- code: "chain_id_unsupported";
1252
+ code: "api_key_malformed";
1030
1253
  details?: readonly Response.error.Detail[] | undefined;
1031
1254
  message: string;
1032
1255
  };
@@ -1039,8 +1262,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1039
1262
  orgId: string;
1040
1263
  };
1041
1264
  } & {
1042
- json: ({
1043
- chainId?: unknown;
1265
+ json: {
1044
1266
  context?: {
1045
1267
  description?: string | undefined;
1046
1268
  metadata?: Record<string, string> | undefined;
@@ -1064,8 +1286,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1064
1286
  sender?: `0x${string}` | undefined;
1065
1287
  token?: `0x${string}` | undefined;
1066
1288
  } | undefined;
1289
+ chainId: number;
1290
+ environment?: "production" | "sandbox" | undefined;
1067
1291
  } | {
1068
- chainId?: unknown;
1069
1292
  context?: {
1070
1293
  description?: string | undefined;
1071
1294
  metadata?: Record<string, string> | undefined;
@@ -1221,8 +1444,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1221
1444
  lte?: `0x${string}` | undefined;
1222
1445
  } | `0x${string}` | undefined;
1223
1446
  } | undefined;
1447
+ chainId: number;
1448
+ environment?: "production" | "sandbox" | undefined;
1224
1449
  } | {
1225
- chainId?: unknown;
1226
1450
  context?: {
1227
1451
  description?: string | undefined;
1228
1452
  metadata?: Record<string, string> | undefined;
@@ -1286,8 +1510,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1286
1510
  lte?: `0x${string}` | undefined;
1287
1511
  } | `0x${string}` | undefined;
1288
1512
  };
1513
+ chainId: number;
1514
+ environment?: "production" | "sandbox" | undefined;
1289
1515
  } | {
1290
- chainId?: unknown;
1291
1516
  context?: {
1292
1517
  description?: string | undefined;
1293
1518
  metadata?: Record<string, string> | undefined;
@@ -1349,8 +1574,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1349
1574
  lte?: `0x${string}` | undefined;
1350
1575
  } | `0x${string}` | undefined;
1351
1576
  } | undefined;
1577
+ chainId: number;
1578
+ environment?: "production" | "sandbox" | undefined;
1352
1579
  } | {
1353
- chainId?: unknown;
1354
1580
  context?: {
1355
1581
  description?: string | undefined;
1356
1582
  metadata?: Record<string, string> | undefined;
@@ -1367,35 +1593,57 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1367
1593
  type: "betterstack";
1368
1594
  url: string;
1369
1595
  };
1370
- eventType: "funding:deposit.updated";
1596
+ eventType: "routes:deposit.updated";
1371
1597
  filters?: {
1372
1598
  depositAddressId?: string | undefined;
1373
1599
  recipient?: `0x${string}` | undefined;
1374
1600
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
1375
1601
  } | undefined;
1376
- }) & {
1377
1602
  chainId: number;
1378
- environment?: "production" | "sandbox" | undefined;
1603
+ environment: "production" | "sandbox";
1604
+ } | {
1605
+ context?: {
1606
+ description?: string | undefined;
1607
+ metadata?: Record<string, string> | undefined;
1608
+ title?: string | undefined;
1609
+ } | undefined;
1610
+ destination: {
1611
+ type: "url";
1612
+ url: string;
1613
+ } | {
1614
+ type: "slack";
1615
+ url: string;
1616
+ } | {
1617
+ token: string;
1618
+ type: "betterstack";
1619
+ url: string;
1620
+ };
1621
+ eventType: "routes:transfer.updated";
1622
+ filters?: {
1623
+ id?: string | undefined;
1624
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
1625
+ } | undefined;
1626
+ chainId: number;
1627
+ environment: "production" | "sandbox";
1379
1628
  };
1380
1629
  };
1381
1630
  } | {
1382
1631
  output: {
1383
1632
  error: {
1384
- code: "upstream_error";
1633
+ code: "api_key_invalid" | "api_key_missing";
1385
1634
  details?: readonly Response.error.Detail[] | undefined;
1386
1635
  message: string;
1387
1636
  };
1388
1637
  requestId: string;
1389
1638
  };
1390
1639
  outputFormat: "json";
1391
- status: 502;
1640
+ status: 401;
1392
1641
  input: {
1393
1642
  param: {
1394
1643
  orgId: string;
1395
1644
  };
1396
1645
  } & {
1397
- json: ({
1398
- chainId?: unknown;
1646
+ json: {
1399
1647
  context?: {
1400
1648
  description?: string | undefined;
1401
1649
  metadata?: Record<string, string> | undefined;
@@ -1419,8 +1667,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1419
1667
  sender?: `0x${string}` | undefined;
1420
1668
  token?: `0x${string}` | undefined;
1421
1669
  } | undefined;
1670
+ chainId: number;
1671
+ environment?: "production" | "sandbox" | undefined;
1422
1672
  } | {
1423
- chainId?: unknown;
1424
1673
  context?: {
1425
1674
  description?: string | undefined;
1426
1675
  metadata?: Record<string, string> | undefined;
@@ -1576,8 +1825,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1576
1825
  lte?: `0x${string}` | undefined;
1577
1826
  } | `0x${string}` | undefined;
1578
1827
  } | undefined;
1828
+ chainId: number;
1829
+ environment?: "production" | "sandbox" | undefined;
1579
1830
  } | {
1580
- chainId?: unknown;
1581
1831
  context?: {
1582
1832
  description?: string | undefined;
1583
1833
  metadata?: Record<string, string> | undefined;
@@ -1641,8 +1891,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1641
1891
  lte?: `0x${string}` | undefined;
1642
1892
  } | `0x${string}` | undefined;
1643
1893
  };
1894
+ chainId: number;
1895
+ environment?: "production" | "sandbox" | undefined;
1644
1896
  } | {
1645
- chainId?: unknown;
1646
1897
  context?: {
1647
1898
  description?: string | undefined;
1648
1899
  metadata?: Record<string, string> | undefined;
@@ -1704,8 +1955,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1704
1955
  lte?: `0x${string}` | undefined;
1705
1956
  } | `0x${string}` | undefined;
1706
1957
  } | undefined;
1958
+ chainId: number;
1959
+ environment?: "production" | "sandbox" | undefined;
1707
1960
  } | {
1708
- chainId?: unknown;
1709
1961
  context?: {
1710
1962
  description?: string | undefined;
1711
1963
  metadata?: Record<string, string> | undefined;
@@ -1722,35 +1974,57 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1722
1974
  type: "betterstack";
1723
1975
  url: string;
1724
1976
  };
1725
- eventType: "funding:deposit.updated";
1977
+ eventType: "routes:deposit.updated";
1726
1978
  filters?: {
1727
1979
  depositAddressId?: string | undefined;
1728
1980
  recipient?: `0x${string}` | undefined;
1729
1981
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
1730
1982
  } | undefined;
1731
- }) & {
1732
1983
  chainId: number;
1733
- environment?: "production" | "sandbox" | undefined;
1984
+ environment: "production" | "sandbox";
1985
+ } | {
1986
+ context?: {
1987
+ description?: string | undefined;
1988
+ metadata?: Record<string, string> | undefined;
1989
+ title?: string | undefined;
1990
+ } | undefined;
1991
+ destination: {
1992
+ type: "url";
1993
+ url: string;
1994
+ } | {
1995
+ type: "slack";
1996
+ url: string;
1997
+ } | {
1998
+ token: string;
1999
+ type: "betterstack";
2000
+ url: string;
2001
+ };
2002
+ eventType: "routes:transfer.updated";
2003
+ filters?: {
2004
+ id?: string | undefined;
2005
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
2006
+ } | undefined;
2007
+ chainId: number;
2008
+ environment: "production" | "sandbox";
1734
2009
  };
1735
2010
  };
1736
2011
  } | {
1737
2012
  output: {
1738
2013
  error: {
1739
- code: "api_key_malformed";
2014
+ code: "upstream_error";
1740
2015
  details?: readonly Response.error.Detail[] | undefined;
1741
2016
  message: string;
1742
2017
  };
1743
2018
  requestId: string;
1744
2019
  };
1745
2020
  outputFormat: "json";
1746
- status: 400;
2021
+ status: 502;
1747
2022
  input: {
1748
2023
  param: {
1749
2024
  orgId: string;
1750
2025
  };
1751
2026
  } & {
1752
- json: ({
1753
- chainId?: unknown;
2027
+ json: {
1754
2028
  context?: {
1755
2029
  description?: string | undefined;
1756
2030
  metadata?: Record<string, string> | undefined;
@@ -1774,8 +2048,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1774
2048
  sender?: `0x${string}` | undefined;
1775
2049
  token?: `0x${string}` | undefined;
1776
2050
  } | undefined;
2051
+ chainId: number;
2052
+ environment?: "production" | "sandbox" | undefined;
1777
2053
  } | {
1778
- chainId?: unknown;
1779
2054
  context?: {
1780
2055
  description?: string | undefined;
1781
2056
  metadata?: Record<string, string> | undefined;
@@ -1931,8 +2206,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1931
2206
  lte?: `0x${string}` | undefined;
1932
2207
  } | `0x${string}` | undefined;
1933
2208
  } | undefined;
2209
+ chainId: number;
2210
+ environment?: "production" | "sandbox" | undefined;
1934
2211
  } | {
1935
- chainId?: unknown;
1936
2212
  context?: {
1937
2213
  description?: string | undefined;
1938
2214
  metadata?: Record<string, string> | undefined;
@@ -1996,8 +2272,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1996
2272
  lte?: `0x${string}` | undefined;
1997
2273
  } | `0x${string}` | undefined;
1998
2274
  };
2275
+ chainId: number;
2276
+ environment?: "production" | "sandbox" | undefined;
1999
2277
  } | {
2000
- chainId?: unknown;
2001
2278
  context?: {
2002
2279
  description?: string | undefined;
2003
2280
  metadata?: Record<string, string> | undefined;
@@ -2059,8 +2336,34 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2059
2336
  lte?: `0x${string}` | undefined;
2060
2337
  } | `0x${string}` | undefined;
2061
2338
  } | undefined;
2339
+ chainId: number;
2340
+ environment?: "production" | "sandbox" | undefined;
2341
+ } | {
2342
+ context?: {
2343
+ description?: string | undefined;
2344
+ metadata?: Record<string, string> | undefined;
2345
+ title?: string | undefined;
2346
+ } | undefined;
2347
+ destination: {
2348
+ type: "url";
2349
+ url: string;
2350
+ } | {
2351
+ type: "slack";
2352
+ url: string;
2353
+ } | {
2354
+ token: string;
2355
+ type: "betterstack";
2356
+ url: string;
2357
+ };
2358
+ eventType: "routes:deposit.updated";
2359
+ filters?: {
2360
+ depositAddressId?: string | undefined;
2361
+ recipient?: `0x${string}` | undefined;
2362
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2363
+ } | undefined;
2364
+ chainId: number;
2365
+ environment: "production" | "sandbox";
2062
2366
  } | {
2063
- chainId?: unknown;
2064
2367
  context?: {
2065
2368
  description?: string | undefined;
2066
2369
  metadata?: Record<string, string> | undefined;
@@ -2077,35 +2380,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2077
2380
  type: "betterstack";
2078
2381
  url: string;
2079
2382
  };
2080
- eventType: "funding:deposit.updated";
2383
+ eventType: "routes:transfer.updated";
2081
2384
  filters?: {
2082
- depositAddressId?: string | undefined;
2083
- recipient?: `0x${string}` | undefined;
2084
- status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2385
+ id?: string | undefined;
2386
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
2085
2387
  } | undefined;
2086
- }) & {
2087
2388
  chainId: number;
2088
- environment?: "production" | "sandbox" | undefined;
2389
+ environment: "production" | "sandbox";
2089
2390
  };
2090
2391
  };
2091
2392
  } | {
2092
2393
  output: {
2093
2394
  error: {
2094
- code: "api_key_invalid" | "api_key_missing";
2395
+ code: "chain_id_unsupported";
2095
2396
  details?: readonly Response.error.Detail[] | undefined;
2096
2397
  message: string;
2097
2398
  };
2098
2399
  requestId: string;
2099
2400
  };
2100
2401
  outputFormat: "json";
2101
- status: 401;
2402
+ status: 400;
2102
2403
  input: {
2103
2404
  param: {
2104
2405
  orgId: string;
2105
2406
  };
2106
2407
  } & {
2107
- json: ({
2108
- chainId?: unknown;
2408
+ json: {
2109
2409
  context?: {
2110
2410
  description?: string | undefined;
2111
2411
  metadata?: Record<string, string> | undefined;
@@ -2129,8 +2429,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2129
2429
  sender?: `0x${string}` | undefined;
2130
2430
  token?: `0x${string}` | undefined;
2131
2431
  } | undefined;
2432
+ chainId: number;
2433
+ environment?: "production" | "sandbox" | undefined;
2132
2434
  } | {
2133
- chainId?: unknown;
2134
2435
  context?: {
2135
2436
  description?: string | undefined;
2136
2437
  metadata?: Record<string, string> | undefined;
@@ -2286,8 +2587,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2286
2587
  lte?: `0x${string}` | undefined;
2287
2588
  } | `0x${string}` | undefined;
2288
2589
  } | undefined;
2590
+ chainId: number;
2591
+ environment?: "production" | "sandbox" | undefined;
2289
2592
  } | {
2290
- chainId?: unknown;
2291
2593
  context?: {
2292
2594
  description?: string | undefined;
2293
2595
  metadata?: Record<string, string> | undefined;
@@ -2351,8 +2653,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2351
2653
  lte?: `0x${string}` | undefined;
2352
2654
  } | `0x${string}` | undefined;
2353
2655
  };
2656
+ chainId: number;
2657
+ environment?: "production" | "sandbox" | undefined;
2354
2658
  } | {
2355
- chainId?: unknown;
2356
2659
  context?: {
2357
2660
  description?: string | undefined;
2358
2661
  metadata?: Record<string, string> | undefined;
@@ -2414,8 +2717,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2414
2717
  lte?: `0x${string}` | undefined;
2415
2718
  } | `0x${string}` | undefined;
2416
2719
  } | undefined;
2720
+ chainId: number;
2721
+ environment?: "production" | "sandbox" | undefined;
2417
2722
  } | {
2418
- chainId?: unknown;
2419
2723
  context?: {
2420
2724
  description?: string | undefined;
2421
2725
  metadata?: Record<string, string> | undefined;
@@ -2432,15 +2736,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2432
2736
  type: "betterstack";
2433
2737
  url: string;
2434
2738
  };
2435
- eventType: "funding:deposit.updated";
2739
+ eventType: "routes:deposit.updated";
2436
2740
  filters?: {
2437
2741
  depositAddressId?: string | undefined;
2438
2742
  recipient?: `0x${string}` | undefined;
2439
2743
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2440
2744
  } | undefined;
2441
- }) & {
2442
2745
  chainId: number;
2443
- environment?: "production" | "sandbox" | undefined;
2746
+ environment: "production" | "sandbox";
2747
+ } | {
2748
+ context?: {
2749
+ description?: string | undefined;
2750
+ metadata?: Record<string, string> | undefined;
2751
+ title?: string | undefined;
2752
+ } | undefined;
2753
+ destination: {
2754
+ type: "url";
2755
+ url: string;
2756
+ } | {
2757
+ type: "slack";
2758
+ url: string;
2759
+ } | {
2760
+ token: string;
2761
+ type: "betterstack";
2762
+ url: string;
2763
+ };
2764
+ eventType: "routes:transfer.updated";
2765
+ filters?: {
2766
+ id?: string | undefined;
2767
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
2768
+ } | undefined;
2769
+ chainId: number;
2770
+ environment: "production" | "sandbox";
2444
2771
  };
2445
2772
  };
2446
2773
  } | {
@@ -2459,8 +2786,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2459
2786
  orgId: string;
2460
2787
  };
2461
2788
  } & {
2462
- json: ({
2463
- chainId?: unknown;
2789
+ json: {
2464
2790
  context?: {
2465
2791
  description?: string | undefined;
2466
2792
  metadata?: Record<string, string> | undefined;
@@ -2484,8 +2810,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2484
2810
  sender?: `0x${string}` | undefined;
2485
2811
  token?: `0x${string}` | undefined;
2486
2812
  } | undefined;
2813
+ chainId: number;
2814
+ environment?: "production" | "sandbox" | undefined;
2487
2815
  } | {
2488
- chainId?: unknown;
2489
2816
  context?: {
2490
2817
  description?: string | undefined;
2491
2818
  metadata?: Record<string, string> | undefined;
@@ -2641,8 +2968,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2641
2968
  lte?: `0x${string}` | undefined;
2642
2969
  } | `0x${string}` | undefined;
2643
2970
  } | undefined;
2971
+ chainId: number;
2972
+ environment?: "production" | "sandbox" | undefined;
2644
2973
  } | {
2645
- chainId?: unknown;
2646
2974
  context?: {
2647
2975
  description?: string | undefined;
2648
2976
  metadata?: Record<string, string> | undefined;
@@ -2706,8 +3034,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2706
3034
  lte?: `0x${string}` | undefined;
2707
3035
  } | `0x${string}` | undefined;
2708
3036
  };
3037
+ chainId: number;
3038
+ environment?: "production" | "sandbox" | undefined;
2709
3039
  } | {
2710
- chainId?: unknown;
2711
3040
  context?: {
2712
3041
  description?: string | undefined;
2713
3042
  metadata?: Record<string, string> | undefined;
@@ -2769,8 +3098,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2769
3098
  lte?: `0x${string}` | undefined;
2770
3099
  } | `0x${string}` | undefined;
2771
3100
  } | undefined;
3101
+ chainId: number;
3102
+ environment?: "production" | "sandbox" | undefined;
2772
3103
  } | {
2773
- chainId?: unknown;
2774
3104
  context?: {
2775
3105
  description?: string | undefined;
2776
3106
  metadata?: Record<string, string> | undefined;
@@ -2787,15 +3117,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2787
3117
  type: "betterstack";
2788
3118
  url: string;
2789
3119
  };
2790
- eventType: "funding:deposit.updated";
3120
+ eventType: "routes:deposit.updated";
2791
3121
  filters?: {
2792
3122
  depositAddressId?: string | undefined;
2793
3123
  recipient?: `0x${string}` | undefined;
2794
3124
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2795
3125
  } | undefined;
2796
- }) & {
2797
3126
  chainId: number;
2798
- environment?: "production" | "sandbox" | undefined;
3127
+ environment: "production" | "sandbox";
3128
+ } | {
3129
+ context?: {
3130
+ description?: string | undefined;
3131
+ metadata?: Record<string, string> | undefined;
3132
+ title?: string | undefined;
3133
+ } | undefined;
3134
+ destination: {
3135
+ type: "url";
3136
+ url: string;
3137
+ } | {
3138
+ type: "slack";
3139
+ url: string;
3140
+ } | {
3141
+ token: string;
3142
+ type: "betterstack";
3143
+ url: string;
3144
+ };
3145
+ eventType: "routes:transfer.updated";
3146
+ filters?: {
3147
+ id?: string | undefined;
3148
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
3149
+ } | undefined;
3150
+ chainId: number;
3151
+ environment: "production" | "sandbox";
2799
3152
  };
2800
3153
  };
2801
3154
  } | {
@@ -2814,8 +3167,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2814
3167
  orgId: string;
2815
3168
  };
2816
3169
  } & {
2817
- json: ({
2818
- chainId?: unknown;
3170
+ json: {
2819
3171
  context?: {
2820
3172
  description?: string | undefined;
2821
3173
  metadata?: Record<string, string> | undefined;
@@ -2839,8 +3191,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2839
3191
  sender?: `0x${string}` | undefined;
2840
3192
  token?: `0x${string}` | undefined;
2841
3193
  } | undefined;
3194
+ chainId: number;
3195
+ environment?: "production" | "sandbox" | undefined;
2842
3196
  } | {
2843
- chainId?: unknown;
2844
3197
  context?: {
2845
3198
  description?: string | undefined;
2846
3199
  metadata?: Record<string, string> | undefined;
@@ -2996,8 +3349,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2996
3349
  lte?: `0x${string}` | undefined;
2997
3350
  } | `0x${string}` | undefined;
2998
3351
  } | undefined;
3352
+ chainId: number;
3353
+ environment?: "production" | "sandbox" | undefined;
2999
3354
  } | {
3000
- chainId?: unknown;
3001
3355
  context?: {
3002
3356
  description?: string | undefined;
3003
3357
  metadata?: Record<string, string> | undefined;
@@ -3061,8 +3415,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3061
3415
  lte?: `0x${string}` | undefined;
3062
3416
  } | `0x${string}` | undefined;
3063
3417
  };
3418
+ chainId: number;
3419
+ environment?: "production" | "sandbox" | undefined;
3064
3420
  } | {
3065
- chainId?: unknown;
3066
3421
  context?: {
3067
3422
  description?: string | undefined;
3068
3423
  metadata?: Record<string, string> | undefined;
@@ -3124,8 +3479,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3124
3479
  lte?: `0x${string}` | undefined;
3125
3480
  } | `0x${string}` | undefined;
3126
3481
  } | undefined;
3482
+ chainId: number;
3483
+ environment?: "production" | "sandbox" | undefined;
3127
3484
  } | {
3128
- chainId?: unknown;
3129
3485
  context?: {
3130
3486
  description?: string | undefined;
3131
3487
  metadata?: Record<string, string> | undefined;
@@ -3142,15 +3498,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3142
3498
  type: "betterstack";
3143
3499
  url: string;
3144
3500
  };
3145
- eventType: "funding:deposit.updated";
3501
+ eventType: "routes:deposit.updated";
3146
3502
  filters?: {
3147
3503
  depositAddressId?: string | undefined;
3148
3504
  recipient?: `0x${string}` | undefined;
3149
3505
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3150
3506
  } | undefined;
3151
- }) & {
3152
3507
  chainId: number;
3153
- environment?: "production" | "sandbox" | undefined;
3508
+ environment: "production" | "sandbox";
3509
+ } | {
3510
+ context?: {
3511
+ description?: string | undefined;
3512
+ metadata?: Record<string, string> | undefined;
3513
+ title?: string | undefined;
3514
+ } | undefined;
3515
+ destination: {
3516
+ type: "url";
3517
+ url: string;
3518
+ } | {
3519
+ type: "slack";
3520
+ url: string;
3521
+ } | {
3522
+ token: string;
3523
+ type: "betterstack";
3524
+ url: string;
3525
+ };
3526
+ eventType: "routes:transfer.updated";
3527
+ filters?: {
3528
+ id?: string | undefined;
3529
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
3530
+ } | undefined;
3531
+ chainId: number;
3532
+ environment: "production" | "sandbox";
3154
3533
  };
3155
3534
  };
3156
3535
  } | {
@@ -3169,8 +3548,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3169
3548
  orgId: string;
3170
3549
  };
3171
3550
  } & {
3172
- json: ({
3173
- chainId?: unknown;
3551
+ json: {
3174
3552
  context?: {
3175
3553
  description?: string | undefined;
3176
3554
  metadata?: Record<string, string> | undefined;
@@ -3194,8 +3572,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3194
3572
  sender?: `0x${string}` | undefined;
3195
3573
  token?: `0x${string}` | undefined;
3196
3574
  } | undefined;
3575
+ chainId: number;
3576
+ environment?: "production" | "sandbox" | undefined;
3197
3577
  } | {
3198
- chainId?: unknown;
3199
3578
  context?: {
3200
3579
  description?: string | undefined;
3201
3580
  metadata?: Record<string, string> | undefined;
@@ -3351,8 +3730,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3351
3730
  lte?: `0x${string}` | undefined;
3352
3731
  } | `0x${string}` | undefined;
3353
3732
  } | undefined;
3733
+ chainId: number;
3734
+ environment?: "production" | "sandbox" | undefined;
3354
3735
  } | {
3355
- chainId?: unknown;
3356
3736
  context?: {
3357
3737
  description?: string | undefined;
3358
3738
  metadata?: Record<string, string> | undefined;
@@ -3416,8 +3796,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3416
3796
  lte?: `0x${string}` | undefined;
3417
3797
  } | `0x${string}` | undefined;
3418
3798
  };
3799
+ chainId: number;
3800
+ environment?: "production" | "sandbox" | undefined;
3419
3801
  } | {
3420
- chainId?: unknown;
3421
3802
  context?: {
3422
3803
  description?: string | undefined;
3423
3804
  metadata?: Record<string, string> | undefined;
@@ -3479,8 +3860,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3479
3860
  lte?: `0x${string}` | undefined;
3480
3861
  } | `0x${string}` | undefined;
3481
3862
  } | undefined;
3863
+ chainId: number;
3864
+ environment?: "production" | "sandbox" | undefined;
3482
3865
  } | {
3483
- chainId?: unknown;
3484
3866
  context?: {
3485
3867
  description?: string | undefined;
3486
3868
  metadata?: Record<string, string> | undefined;
@@ -3497,15 +3879,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3497
3879
  type: "betterstack";
3498
3880
  url: string;
3499
3881
  };
3500
- eventType: "funding:deposit.updated";
3882
+ eventType: "routes:deposit.updated";
3501
3883
  filters?: {
3502
3884
  depositAddressId?: string | undefined;
3503
3885
  recipient?: `0x${string}` | undefined;
3504
3886
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3505
3887
  } | undefined;
3506
- }) & {
3507
3888
  chainId: number;
3508
- environment?: "production" | "sandbox" | undefined;
3889
+ environment: "production" | "sandbox";
3890
+ } | {
3891
+ context?: {
3892
+ description?: string | undefined;
3893
+ metadata?: Record<string, string> | undefined;
3894
+ title?: string | undefined;
3895
+ } | undefined;
3896
+ destination: {
3897
+ type: "url";
3898
+ url: string;
3899
+ } | {
3900
+ type: "slack";
3901
+ url: string;
3902
+ } | {
3903
+ token: string;
3904
+ type: "betterstack";
3905
+ url: string;
3906
+ };
3907
+ eventType: "routes:transfer.updated";
3908
+ filters?: {
3909
+ id?: string | undefined;
3910
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
3911
+ } | undefined;
3912
+ chainId: number;
3913
+ environment: "production" | "sandbox";
3509
3914
  };
3510
3915
  };
3511
3916
  } | {
@@ -3524,8 +3929,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3524
3929
  orgId: string;
3525
3930
  };
3526
3931
  } & {
3527
- json: ({
3528
- chainId?: unknown;
3932
+ json: {
3529
3933
  context?: {
3530
3934
  description?: string | undefined;
3531
3935
  metadata?: Record<string, string> | undefined;
@@ -3549,8 +3953,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3549
3953
  sender?: `0x${string}` | undefined;
3550
3954
  token?: `0x${string}` | undefined;
3551
3955
  } | undefined;
3956
+ chainId: number;
3957
+ environment?: "production" | "sandbox" | undefined;
3552
3958
  } | {
3553
- chainId?: unknown;
3554
3959
  context?: {
3555
3960
  description?: string | undefined;
3556
3961
  metadata?: Record<string, string> | undefined;
@@ -3706,8 +4111,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3706
4111
  lte?: `0x${string}` | undefined;
3707
4112
  } | `0x${string}` | undefined;
3708
4113
  } | undefined;
4114
+ chainId: number;
4115
+ environment?: "production" | "sandbox" | undefined;
3709
4116
  } | {
3710
- chainId?: unknown;
3711
4117
  context?: {
3712
4118
  description?: string | undefined;
3713
4119
  metadata?: Record<string, string> | undefined;
@@ -3771,8 +4177,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3771
4177
  lte?: `0x${string}` | undefined;
3772
4178
  } | `0x${string}` | undefined;
3773
4179
  };
4180
+ chainId: number;
4181
+ environment?: "production" | "sandbox" | undefined;
3774
4182
  } | {
3775
- chainId?: unknown;
3776
4183
  context?: {
3777
4184
  description?: string | undefined;
3778
4185
  metadata?: Record<string, string> | undefined;
@@ -3834,8 +4241,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3834
4241
  lte?: `0x${string}` | undefined;
3835
4242
  } | `0x${string}` | undefined;
3836
4243
  } | undefined;
4244
+ chainId: number;
4245
+ environment?: "production" | "sandbox" | undefined;
3837
4246
  } | {
3838
- chainId?: unknown;
3839
4247
  context?: {
3840
4248
  description?: string | undefined;
3841
4249
  metadata?: Record<string, string> | undefined;
@@ -3852,15 +4260,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3852
4260
  type: "betterstack";
3853
4261
  url: string;
3854
4262
  };
3855
- eventType: "funding:deposit.updated";
4263
+ eventType: "routes:deposit.updated";
3856
4264
  filters?: {
3857
4265
  depositAddressId?: string | undefined;
3858
4266
  recipient?: `0x${string}` | undefined;
3859
4267
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3860
4268
  } | undefined;
3861
- }) & {
3862
4269
  chainId: number;
3863
- environment?: "production" | "sandbox" | undefined;
4270
+ environment: "production" | "sandbox";
4271
+ } | {
4272
+ context?: {
4273
+ description?: string | undefined;
4274
+ metadata?: Record<string, string> | undefined;
4275
+ title?: string | undefined;
4276
+ } | undefined;
4277
+ destination: {
4278
+ type: "url";
4279
+ url: string;
4280
+ } | {
4281
+ type: "slack";
4282
+ url: string;
4283
+ } | {
4284
+ token: string;
4285
+ type: "betterstack";
4286
+ url: string;
4287
+ };
4288
+ eventType: "routes:transfer.updated";
4289
+ filters?: {
4290
+ id?: string | undefined;
4291
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
4292
+ } | undefined;
4293
+ chainId: number;
4294
+ environment: "production" | "sandbox";
3864
4295
  };
3865
4296
  };
3866
4297
  } | {
@@ -3879,8 +4310,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3879
4310
  orgId: string;
3880
4311
  };
3881
4312
  } & {
3882
- json: ({
3883
- chainId?: unknown;
4313
+ json: {
3884
4314
  context?: {
3885
4315
  description?: string | undefined;
3886
4316
  metadata?: Record<string, string> | undefined;
@@ -3904,8 +4334,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3904
4334
  sender?: `0x${string}` | undefined;
3905
4335
  token?: `0x${string}` | undefined;
3906
4336
  } | undefined;
4337
+ chainId: number;
4338
+ environment?: "production" | "sandbox" | undefined;
3907
4339
  } | {
3908
- chainId?: unknown;
3909
4340
  context?: {
3910
4341
  description?: string | undefined;
3911
4342
  metadata?: Record<string, string> | undefined;
@@ -4061,8 +4492,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4061
4492
  lte?: `0x${string}` | undefined;
4062
4493
  } | `0x${string}` | undefined;
4063
4494
  } | undefined;
4495
+ chainId: number;
4496
+ environment?: "production" | "sandbox" | undefined;
4064
4497
  } | {
4065
- chainId?: unknown;
4066
4498
  context?: {
4067
4499
  description?: string | undefined;
4068
4500
  metadata?: Record<string, string> | undefined;
@@ -4126,8 +4558,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4126
4558
  lte?: `0x${string}` | undefined;
4127
4559
  } | `0x${string}` | undefined;
4128
4560
  };
4561
+ chainId: number;
4562
+ environment?: "production" | "sandbox" | undefined;
4129
4563
  } | {
4130
- chainId?: unknown;
4131
4564
  context?: {
4132
4565
  description?: string | undefined;
4133
4566
  metadata?: Record<string, string> | undefined;
@@ -4189,8 +4622,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4189
4622
  lte?: `0x${string}` | undefined;
4190
4623
  } | `0x${string}` | undefined;
4191
4624
  } | undefined;
4625
+ chainId: number;
4626
+ environment?: "production" | "sandbox" | undefined;
4192
4627
  } | {
4193
- chainId?: unknown;
4194
4628
  context?: {
4195
4629
  description?: string | undefined;
4196
4630
  metadata?: Record<string, string> | undefined;
@@ -4207,15 +4641,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4207
4641
  type: "betterstack";
4208
4642
  url: string;
4209
4643
  };
4210
- eventType: "funding:deposit.updated";
4644
+ eventType: "routes:deposit.updated";
4211
4645
  filters?: {
4212
4646
  depositAddressId?: string | undefined;
4213
4647
  recipient?: `0x${string}` | undefined;
4214
4648
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4215
4649
  } | undefined;
4216
- }) & {
4217
4650
  chainId: number;
4218
- environment?: "production" | "sandbox" | undefined;
4651
+ environment: "production" | "sandbox";
4652
+ } | {
4653
+ context?: {
4654
+ description?: string | undefined;
4655
+ metadata?: Record<string, string> | undefined;
4656
+ title?: string | undefined;
4657
+ } | undefined;
4658
+ destination: {
4659
+ type: "url";
4660
+ url: string;
4661
+ } | {
4662
+ type: "slack";
4663
+ url: string;
4664
+ } | {
4665
+ token: string;
4666
+ type: "betterstack";
4667
+ url: string;
4668
+ };
4669
+ eventType: "routes:transfer.updated";
4670
+ filters?: {
4671
+ id?: string | undefined;
4672
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
4673
+ } | undefined;
4674
+ chainId: number;
4675
+ environment: "production" | "sandbox";
4219
4676
  };
4220
4677
  };
4221
4678
  } | {
@@ -4234,8 +4691,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4234
4691
  orgId: string;
4235
4692
  };
4236
4693
  } & {
4237
- json: ({
4238
- chainId?: unknown;
4694
+ json: {
4239
4695
  context?: {
4240
4696
  description?: string | undefined;
4241
4697
  metadata?: Record<string, string> | undefined;
@@ -4259,8 +4715,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4259
4715
  sender?: `0x${string}` | undefined;
4260
4716
  token?: `0x${string}` | undefined;
4261
4717
  } | undefined;
4718
+ chainId: number;
4719
+ environment?: "production" | "sandbox" | undefined;
4262
4720
  } | {
4263
- chainId?: unknown;
4264
4721
  context?: {
4265
4722
  description?: string | undefined;
4266
4723
  metadata?: Record<string, string> | undefined;
@@ -4416,8 +4873,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4416
4873
  lte?: `0x${string}` | undefined;
4417
4874
  } | `0x${string}` | undefined;
4418
4875
  } | undefined;
4876
+ chainId: number;
4877
+ environment?: "production" | "sandbox" | undefined;
4419
4878
  } | {
4420
- chainId?: unknown;
4421
4879
  context?: {
4422
4880
  description?: string | undefined;
4423
4881
  metadata?: Record<string, string> | undefined;
@@ -4481,8 +4939,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4481
4939
  lte?: `0x${string}` | undefined;
4482
4940
  } | `0x${string}` | undefined;
4483
4941
  };
4942
+ chainId: number;
4943
+ environment?: "production" | "sandbox" | undefined;
4484
4944
  } | {
4485
- chainId?: unknown;
4486
4945
  context?: {
4487
4946
  description?: string | undefined;
4488
4947
  metadata?: Record<string, string> | undefined;
@@ -4544,8 +5003,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4544
5003
  lte?: `0x${string}` | undefined;
4545
5004
  } | `0x${string}` | undefined;
4546
5005
  } | undefined;
5006
+ chainId: number;
5007
+ environment?: "production" | "sandbox" | undefined;
4547
5008
  } | {
4548
- chainId?: unknown;
4549
5009
  context?: {
4550
5010
  description?: string | undefined;
4551
5011
  metadata?: Record<string, string> | undefined;
@@ -4562,15 +5022,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4562
5022
  type: "betterstack";
4563
5023
  url: string;
4564
5024
  };
4565
- eventType: "funding:deposit.updated";
5025
+ eventType: "routes:deposit.updated";
4566
5026
  filters?: {
4567
5027
  depositAddressId?: string | undefined;
4568
5028
  recipient?: `0x${string}` | undefined;
4569
5029
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4570
5030
  } | undefined;
4571
- }) & {
4572
5031
  chainId: number;
4573
- environment?: "production" | "sandbox" | undefined;
5032
+ environment: "production" | "sandbox";
5033
+ } | {
5034
+ context?: {
5035
+ description?: string | undefined;
5036
+ metadata?: Record<string, string> | undefined;
5037
+ title?: string | undefined;
5038
+ } | undefined;
5039
+ destination: {
5040
+ type: "url";
5041
+ url: string;
5042
+ } | {
5043
+ type: "slack";
5044
+ url: string;
5045
+ } | {
5046
+ token: string;
5047
+ type: "betterstack";
5048
+ url: string;
5049
+ };
5050
+ eventType: "routes:transfer.updated";
5051
+ filters?: {
5052
+ id?: string | undefined;
5053
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
5054
+ } | undefined;
5055
+ chainId: number;
5056
+ environment: "production" | "sandbox";
4574
5057
  };
4575
5058
  };
4576
5059
  } | {
@@ -4589,8 +5072,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4589
5072
  orgId: string;
4590
5073
  };
4591
5074
  } & {
4592
- json: ({
4593
- chainId?: unknown;
5075
+ json: {
4594
5076
  context?: {
4595
5077
  description?: string | undefined;
4596
5078
  metadata?: Record<string, string> | undefined;
@@ -4614,8 +5096,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4614
5096
  sender?: `0x${string}` | undefined;
4615
5097
  token?: `0x${string}` | undefined;
4616
5098
  } | undefined;
5099
+ chainId: number;
5100
+ environment?: "production" | "sandbox" | undefined;
4617
5101
  } | {
4618
- chainId?: unknown;
4619
5102
  context?: {
4620
5103
  description?: string | undefined;
4621
5104
  metadata?: Record<string, string> | undefined;
@@ -4771,8 +5254,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4771
5254
  lte?: `0x${string}` | undefined;
4772
5255
  } | `0x${string}` | undefined;
4773
5256
  } | undefined;
5257
+ chainId: number;
5258
+ environment?: "production" | "sandbox" | undefined;
4774
5259
  } | {
4775
- chainId?: unknown;
4776
5260
  context?: {
4777
5261
  description?: string | undefined;
4778
5262
  metadata?: Record<string, string> | undefined;
@@ -4836,8 +5320,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4836
5320
  lte?: `0x${string}` | undefined;
4837
5321
  } | `0x${string}` | undefined;
4838
5322
  };
5323
+ chainId: number;
5324
+ environment?: "production" | "sandbox" | undefined;
4839
5325
  } | {
4840
- chainId?: unknown;
4841
5326
  context?: {
4842
5327
  description?: string | undefined;
4843
5328
  metadata?: Record<string, string> | undefined;
@@ -4899,8 +5384,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4899
5384
  lte?: `0x${string}` | undefined;
4900
5385
  } | `0x${string}` | undefined;
4901
5386
  } | undefined;
5387
+ chainId: number;
5388
+ environment?: "production" | "sandbox" | undefined;
4902
5389
  } | {
4903
- chainId?: unknown;
4904
5390
  context?: {
4905
5391
  description?: string | undefined;
4906
5392
  metadata?: Record<string, string> | undefined;
@@ -4917,15 +5403,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4917
5403
  type: "betterstack";
4918
5404
  url: string;
4919
5405
  };
4920
- eventType: "funding:deposit.updated";
5406
+ eventType: "routes:deposit.updated";
4921
5407
  filters?: {
4922
5408
  depositAddressId?: string | undefined;
4923
5409
  recipient?: `0x${string}` | undefined;
4924
5410
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4925
5411
  } | undefined;
4926
- }) & {
4927
5412
  chainId: number;
4928
- environment?: "production" | "sandbox" | undefined;
5413
+ environment: "production" | "sandbox";
5414
+ } | {
5415
+ context?: {
5416
+ description?: string | undefined;
5417
+ metadata?: Record<string, string> | undefined;
5418
+ title?: string | undefined;
5419
+ } | undefined;
5420
+ destination: {
5421
+ type: "url";
5422
+ url: string;
5423
+ } | {
5424
+ type: "slack";
5425
+ url: string;
5426
+ } | {
5427
+ token: string;
5428
+ type: "betterstack";
5429
+ url: string;
5430
+ };
5431
+ eventType: "routes:transfer.updated";
5432
+ filters?: {
5433
+ id?: string | undefined;
5434
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
5435
+ } | undefined;
5436
+ chainId: number;
5437
+ environment: "production" | "sandbox";
4929
5438
  };
4930
5439
  };
4931
5440
  } | {
@@ -4944,8 +5453,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4944
5453
  orgId: string;
4945
5454
  };
4946
5455
  } & {
4947
- json: ({
4948
- chainId?: unknown;
5456
+ json: {
4949
5457
  context?: {
4950
5458
  description?: string | undefined;
4951
5459
  metadata?: Record<string, string> | undefined;
@@ -4969,8 +5477,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4969
5477
  sender?: `0x${string}` | undefined;
4970
5478
  token?: `0x${string}` | undefined;
4971
5479
  } | undefined;
5480
+ chainId: number;
5481
+ environment?: "production" | "sandbox" | undefined;
4972
5482
  } | {
4973
- chainId?: unknown;
4974
5483
  context?: {
4975
5484
  description?: string | undefined;
4976
5485
  metadata?: Record<string, string> | undefined;
@@ -5126,8 +5635,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5126
5635
  lte?: `0x${string}` | undefined;
5127
5636
  } | `0x${string}` | undefined;
5128
5637
  } | undefined;
5638
+ chainId: number;
5639
+ environment?: "production" | "sandbox" | undefined;
5129
5640
  } | {
5130
- chainId?: unknown;
5131
5641
  context?: {
5132
5642
  description?: string | undefined;
5133
5643
  metadata?: Record<string, string> | undefined;
@@ -5191,8 +5701,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5191
5701
  lte?: `0x${string}` | undefined;
5192
5702
  } | `0x${string}` | undefined;
5193
5703
  };
5704
+ chainId: number;
5705
+ environment?: "production" | "sandbox" | undefined;
5194
5706
  } | {
5195
- chainId?: unknown;
5196
5707
  context?: {
5197
5708
  description?: string | undefined;
5198
5709
  metadata?: Record<string, string> | undefined;
@@ -5254,8 +5765,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5254
5765
  lte?: `0x${string}` | undefined;
5255
5766
  } | `0x${string}` | undefined;
5256
5767
  } | undefined;
5768
+ chainId: number;
5769
+ environment?: "production" | "sandbox" | undefined;
5257
5770
  } | {
5258
- chainId?: unknown;
5259
5771
  context?: {
5260
5772
  description?: string | undefined;
5261
5773
  metadata?: Record<string, string> | undefined;
@@ -5272,15 +5784,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5272
5784
  type: "betterstack";
5273
5785
  url: string;
5274
5786
  };
5275
- eventType: "funding:deposit.updated";
5787
+ eventType: "routes:deposit.updated";
5276
5788
  filters?: {
5277
5789
  depositAddressId?: string | undefined;
5278
5790
  recipient?: `0x${string}` | undefined;
5279
5791
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
5280
5792
  } | undefined;
5281
- }) & {
5282
5793
  chainId: number;
5283
- environment?: "production" | "sandbox" | undefined;
5794
+ environment: "production" | "sandbox";
5795
+ } | {
5796
+ context?: {
5797
+ description?: string | undefined;
5798
+ metadata?: Record<string, string> | undefined;
5799
+ title?: string | undefined;
5800
+ } | undefined;
5801
+ destination: {
5802
+ type: "url";
5803
+ url: string;
5804
+ } | {
5805
+ type: "slack";
5806
+ url: string;
5807
+ } | {
5808
+ token: string;
5809
+ type: "betterstack";
5810
+ url: string;
5811
+ };
5812
+ eventType: "routes:transfer.updated";
5813
+ filters?: {
5814
+ id?: string | undefined;
5815
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
5816
+ } | undefined;
5817
+ chainId: number;
5818
+ environment: "production" | "sandbox";
5284
5819
  };
5285
5820
  };
5286
5821
  } | {
@@ -5299,8 +5834,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5299
5834
  orgId: string;
5300
5835
  };
5301
5836
  } & {
5302
- json: ({
5303
- chainId?: unknown;
5837
+ json: {
5304
5838
  context?: {
5305
5839
  description?: string | undefined;
5306
5840
  metadata?: Record<string, string> | undefined;
@@ -5324,8 +5858,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5324
5858
  sender?: `0x${string}` | undefined;
5325
5859
  token?: `0x${string}` | undefined;
5326
5860
  } | undefined;
5861
+ chainId: number;
5862
+ environment?: "production" | "sandbox" | undefined;
5327
5863
  } | {
5328
- chainId?: unknown;
5329
5864
  context?: {
5330
5865
  description?: string | undefined;
5331
5866
  metadata?: Record<string, string> | undefined;
@@ -5481,8 +6016,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5481
6016
  lte?: `0x${string}` | undefined;
5482
6017
  } | `0x${string}` | undefined;
5483
6018
  } | undefined;
6019
+ chainId: number;
6020
+ environment?: "production" | "sandbox" | undefined;
5484
6021
  } | {
5485
- chainId?: unknown;
5486
6022
  context?: {
5487
6023
  description?: string | undefined;
5488
6024
  metadata?: Record<string, string> | undefined;
@@ -5546,8 +6082,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5546
6082
  lte?: `0x${string}` | undefined;
5547
6083
  } | `0x${string}` | undefined;
5548
6084
  };
6085
+ chainId: number;
6086
+ environment?: "production" | "sandbox" | undefined;
5549
6087
  } | {
5550
- chainId?: unknown;
5551
6088
  context?: {
5552
6089
  description?: string | undefined;
5553
6090
  metadata?: Record<string, string> | undefined;
@@ -5609,8 +6146,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5609
6146
  lte?: `0x${string}` | undefined;
5610
6147
  } | `0x${string}` | undefined;
5611
6148
  } | undefined;
6149
+ chainId: number;
6150
+ environment?: "production" | "sandbox" | undefined;
5612
6151
  } | {
5613
- chainId?: unknown;
5614
6152
  context?: {
5615
6153
  description?: string | undefined;
5616
6154
  metadata?: Record<string, string> | undefined;
@@ -5627,15 +6165,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5627
6165
  type: "betterstack";
5628
6166
  url: string;
5629
6167
  };
5630
- eventType: "funding:deposit.updated";
6168
+ eventType: "routes:deposit.updated";
5631
6169
  filters?: {
5632
6170
  depositAddressId?: string | undefined;
5633
6171
  recipient?: `0x${string}` | undefined;
5634
6172
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
5635
6173
  } | undefined;
5636
- }) & {
5637
6174
  chainId: number;
5638
- environment?: "production" | "sandbox" | undefined;
6175
+ environment: "production" | "sandbox";
6176
+ } | {
6177
+ context?: {
6178
+ description?: string | undefined;
6179
+ metadata?: Record<string, string> | undefined;
6180
+ title?: string | undefined;
6181
+ } | undefined;
6182
+ destination: {
6183
+ type: "url";
6184
+ url: string;
6185
+ } | {
6186
+ type: "slack";
6187
+ url: string;
6188
+ } | {
6189
+ token: string;
6190
+ type: "betterstack";
6191
+ url: string;
6192
+ };
6193
+ eventType: "routes:transfer.updated";
6194
+ filters?: {
6195
+ id?: string | undefined;
6196
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
6197
+ } | undefined;
6198
+ chainId: number;
6199
+ environment: "production" | "sandbox";
5639
6200
  };
5640
6201
  };
5641
6202
  } | {
@@ -5643,7 +6204,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5643
6204
  chainId: number;
5644
6205
  createdAt: string;
5645
6206
  environment?: "production" | "sandbox" | undefined;
5646
- eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6207
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
5647
6208
  expiresAt?: string | undefined;
5648
6209
  failureCount: number;
5649
6210
  filters: {
@@ -5669,7 +6230,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5669
6230
  chainId: number;
5670
6231
  createdAt: string;
5671
6232
  environment?: "production" | "sandbox" | undefined;
5672
- eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6233
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
5673
6234
  expiresAt?: string | undefined;
5674
6235
  failureCount: number;
5675
6236
  filters: {
@@ -5694,7 +6255,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5694
6255
  chainId: number;
5695
6256
  createdAt: string;
5696
6257
  environment?: "production" | "sandbox" | undefined;
5697
- eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6258
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
5698
6259
  expiresAt?: string | undefined;
5699
6260
  failureCount: number;
5700
6261
  filters: {
@@ -5724,8 +6285,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5724
6285
  orgId: string;
5725
6286
  };
5726
6287
  } & {
5727
- json: ({
5728
- chainId?: unknown;
6288
+ json: {
5729
6289
  context?: {
5730
6290
  description?: string | undefined;
5731
6291
  metadata?: Record<string, string> | undefined;
@@ -5749,8 +6309,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5749
6309
  sender?: `0x${string}` | undefined;
5750
6310
  token?: `0x${string}` | undefined;
5751
6311
  } | undefined;
6312
+ chainId: number;
6313
+ environment?: "production" | "sandbox" | undefined;
5752
6314
  } | {
5753
- chainId?: unknown;
5754
6315
  context?: {
5755
6316
  description?: string | undefined;
5756
6317
  metadata?: Record<string, string> | undefined;
@@ -5906,8 +6467,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5906
6467
  lte?: `0x${string}` | undefined;
5907
6468
  } | `0x${string}` | undefined;
5908
6469
  } | undefined;
6470
+ chainId: number;
6471
+ environment?: "production" | "sandbox" | undefined;
5909
6472
  } | {
5910
- chainId?: unknown;
5911
6473
  context?: {
5912
6474
  description?: string | undefined;
5913
6475
  metadata?: Record<string, string> | undefined;
@@ -5971,8 +6533,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5971
6533
  lte?: `0x${string}` | undefined;
5972
6534
  } | `0x${string}` | undefined;
5973
6535
  };
6536
+ chainId: number;
6537
+ environment?: "production" | "sandbox" | undefined;
5974
6538
  } | {
5975
- chainId?: unknown;
5976
6539
  context?: {
5977
6540
  description?: string | undefined;
5978
6541
  metadata?: Record<string, string> | undefined;
@@ -6034,8 +6597,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6034
6597
  lte?: `0x${string}` | undefined;
6035
6598
  } | `0x${string}` | undefined;
6036
6599
  } | undefined;
6600
+ chainId: number;
6601
+ environment?: "production" | "sandbox" | undefined;
6037
6602
  } | {
6038
- chainId?: unknown;
6039
6603
  context?: {
6040
6604
  description?: string | undefined;
6041
6605
  metadata?: Record<string, string> | undefined;
@@ -6052,15 +6616,38 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6052
6616
  type: "betterstack";
6053
6617
  url: string;
6054
6618
  };
6055
- eventType: "funding:deposit.updated";
6619
+ eventType: "routes:deposit.updated";
6056
6620
  filters?: {
6057
6621
  depositAddressId?: string | undefined;
6058
6622
  recipient?: `0x${string}` | undefined;
6059
6623
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
6060
6624
  } | undefined;
6061
- }) & {
6062
6625
  chainId: number;
6063
- environment?: "production" | "sandbox" | undefined;
6626
+ environment: "production" | "sandbox";
6627
+ } | {
6628
+ context?: {
6629
+ description?: string | undefined;
6630
+ metadata?: Record<string, string> | undefined;
6631
+ title?: string | undefined;
6632
+ } | undefined;
6633
+ destination: {
6634
+ type: "url";
6635
+ url: string;
6636
+ } | {
6637
+ type: "slack";
6638
+ url: string;
6639
+ } | {
6640
+ token: string;
6641
+ type: "betterstack";
6642
+ url: string;
6643
+ };
6644
+ eventType: "routes:transfer.updated";
6645
+ filters?: {
6646
+ id?: string | undefined;
6647
+ status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
6648
+ } | undefined;
6649
+ chainId: number;
6650
+ environment: "production" | "sandbox";
6064
6651
  };
6065
6652
  };
6066
6653
  };
@@ -6070,14 +6657,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6070
6657
  $get: {
6071
6658
  output: {
6072
6659
  error: {
6073
- code: "upstream_error";
6660
+ code: "api_key_malformed";
6074
6661
  details?: readonly Response.error.Detail[] | undefined;
6075
6662
  message: string;
6076
6663
  };
6077
6664
  requestId: string;
6078
6665
  };
6079
6666
  outputFormat: "json";
6080
- status: 502;
6667
+ status: 400;
6081
6668
  input: {
6082
6669
  param: {
6083
6670
  orgId: string;
@@ -6086,14 +6673,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6086
6673
  } | {
6087
6674
  output: {
6088
6675
  error: {
6089
- code: "api_key_malformed";
6676
+ code: "api_key_invalid" | "api_key_missing";
6090
6677
  details?: readonly Response.error.Detail[] | undefined;
6091
6678
  message: string;
6092
6679
  };
6093
6680
  requestId: string;
6094
6681
  };
6095
6682
  outputFormat: "json";
6096
- status: 400;
6683
+ status: 401;
6097
6684
  input: {
6098
6685
  param: {
6099
6686
  orgId: string;
@@ -6102,14 +6689,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6102
6689
  } | {
6103
6690
  output: {
6104
6691
  error: {
6105
- code: "api_key_invalid" | "api_key_missing";
6692
+ code: "upstream_error";
6106
6693
  details?: readonly Response.error.Detail[] | undefined;
6107
6694
  message: string;
6108
6695
  };
6109
6696
  requestId: string;
6110
6697
  };
6111
6698
  outputFormat: "json";
6112
- status: 401;
6699
+ status: 502;
6113
6700
  input: {
6114
6701
  param: {
6115
6702
  orgId: string;
@@ -6185,7 +6772,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6185
6772
  chainId: number;
6186
6773
  createdAt: string;
6187
6774
  environment?: "production" | "sandbox" | undefined;
6188
- eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6775
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6189
6776
  expiresAt?: string | undefined;
6190
6777
  failureCount: number;
6191
6778
  filters: {
@@ -6229,14 +6816,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6229
6816
  $get: {
6230
6817
  output: {
6231
6818
  error: {
6232
- code: "upstream_error";
6819
+ code: "api_key_malformed";
6233
6820
  details?: readonly Response.error.Detail[] | undefined;
6234
6821
  message: string;
6235
6822
  };
6236
6823
  requestId: string;
6237
6824
  };
6238
6825
  outputFormat: "json";
6239
- status: 502;
6826
+ status: 400;
6240
6827
  input: {
6241
6828
  param: {
6242
6829
  id: string;
@@ -6253,14 +6840,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6253
6840
  } | {
6254
6841
  output: {
6255
6842
  error: {
6256
- code: "query_invalid";
6843
+ code: "api_key_invalid" | "api_key_missing";
6257
6844
  details?: readonly Response.error.Detail[] | undefined;
6258
6845
  message: string;
6259
6846
  };
6260
6847
  requestId: string;
6261
6848
  };
6262
6849
  outputFormat: "json";
6263
- status: 400;
6850
+ status: 401;
6264
6851
  input: {
6265
6852
  param: {
6266
6853
  id: string;
@@ -6277,7 +6864,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6277
6864
  } | {
6278
6865
  output: {
6279
6866
  error: {
6280
- code: "api_key_malformed";
6867
+ code: "query_invalid";
6281
6868
  details?: readonly Response.error.Detail[] | undefined;
6282
6869
  message: string;
6283
6870
  };
@@ -6301,14 +6888,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6301
6888
  } | {
6302
6889
  output: {
6303
6890
  error: {
6304
- code: "api_key_invalid" | "api_key_missing";
6891
+ code: "upstream_error";
6305
6892
  details?: readonly Response.error.Detail[] | undefined;
6306
6893
  message: string;
6307
6894
  };
6308
6895
  requestId: string;
6309
6896
  };
6310
6897
  outputFormat: "json";
6311
- status: 401;
6898
+ status: 502;
6312
6899
  input: {
6313
6900
  param: {
6314
6901
  id: string;
@@ -6484,14 +7071,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6484
7071
  $get: {
6485
7072
  output: {
6486
7073
  error: {
6487
- code: "upstream_error";
7074
+ code: "api_key_malformed";
6488
7075
  details?: readonly Response.error.Detail[] | undefined;
6489
7076
  message: string;
6490
7077
  };
6491
7078
  requestId: string;
6492
7079
  };
6493
7080
  outputFormat: "json";
6494
- status: 502;
7081
+ status: 400;
6495
7082
  input: {
6496
7083
  param: {
6497
7084
  deliveryId: string;
@@ -6502,14 +7089,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6502
7089
  } | {
6503
7090
  output: {
6504
7091
  error: {
6505
- code: "api_key_malformed";
7092
+ code: "api_key_invalid" | "api_key_missing";
6506
7093
  details?: readonly Response.error.Detail[] | undefined;
6507
7094
  message: string;
6508
7095
  };
6509
7096
  requestId: string;
6510
7097
  };
6511
7098
  outputFormat: "json";
6512
- status: 400;
7099
+ status: 401;
6513
7100
  input: {
6514
7101
  param: {
6515
7102
  deliveryId: string;
@@ -6520,14 +7107,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6520
7107
  } | {
6521
7108
  output: {
6522
7109
  error: {
6523
- code: "api_key_invalid" | "api_key_missing";
7110
+ code: "upstream_error";
6524
7111
  details?: readonly Response.error.Detail[] | undefined;
6525
7112
  message: string;
6526
7113
  };
6527
7114
  requestId: string;
6528
7115
  };
6529
7116
  outputFormat: "json";
6530
- status: 401;
7117
+ status: 502;
6531
7118
  input: {
6532
7119
  param: {
6533
7120
  deliveryId: string;
@@ -6931,12 +7518,141 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6931
7518
  sourceTransferIndex?: number | undefined;
6932
7519
  status: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling";
6933
7520
  statusReason?: {
6934
- code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
7521
+ 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";
7522
+ message: string;
7523
+ } | undefined;
7524
+ updatedAt: string;
7525
+ };
7526
+ type: "routes:deposit.updated";
7527
+ } | {
7528
+ chainId: number;
7529
+ context?: {
7530
+ description?: string | undefined;
7531
+ metadata?: {
7532
+ [x: string]: string;
7533
+ } | undefined;
7534
+ title?: string | undefined;
7535
+ } | undefined;
7536
+ createdAt: string;
7537
+ id: string;
7538
+ subscriptionId: string;
7539
+ data: {
7540
+ createdAt: string;
7541
+ destinationAmount?: {
7542
+ baseUnits: string;
7543
+ currency: string;
7544
+ decimals: number;
7545
+ formatted: string;
7546
+ } | undefined;
7547
+ destinationAmountMin?: {
7548
+ baseUnits: string;
7549
+ currency: string;
7550
+ decimals: number;
7551
+ formatted: string;
7552
+ } | undefined;
7553
+ destinationAmountRequired?: {
7554
+ baseUnits: string;
7555
+ currency: string;
7556
+ decimals: number;
7557
+ formatted: string;
7558
+ } | undefined;
7559
+ destinationChain: {
7560
+ addressFormat: "base58" | "base58check" | "hex";
7561
+ id: string;
7562
+ kind: "evm" | "solana" | "tron";
7563
+ name: string;
7564
+ };
7565
+ destinationToken: {
7566
+ address: string;
7567
+ currency: string;
7568
+ decimals: number;
7569
+ name: string;
7570
+ standard: string;
7571
+ symbol: string;
7572
+ tokenKey: string;
7573
+ verified: boolean;
7574
+ };
7575
+ destinationTransactionHashes?: string[] | undefined;
7576
+ fees: {
7577
+ amount: {
7578
+ baseUnits: string;
7579
+ currency: string;
7580
+ decimals: number;
7581
+ formatted: string;
7582
+ };
7583
+ side: "destination" | "source";
7584
+ token: {
7585
+ address: string;
7586
+ currency: string;
7587
+ decimals: number;
7588
+ name: string;
7589
+ standard: string;
7590
+ symbol: string;
7591
+ tokenKey: string;
7592
+ verified: boolean;
7593
+ };
7594
+ type: "provider";
7595
+ }[];
7596
+ id: string;
7597
+ method: "depositAddress" | "transaction";
7598
+ mode: "exactDestination" | "exactSource";
7599
+ provider: {
7600
+ id: string;
7601
+ name: string;
7602
+ };
7603
+ quote: {
7604
+ expiresAt: string;
7605
+ sampledAt: string;
7606
+ };
7607
+ recipient: string;
7608
+ refundAddress?: string | undefined;
7609
+ refundAmount?: {
7610
+ baseUnits: string;
7611
+ currency: string;
7612
+ decimals: number;
7613
+ formatted: string;
7614
+ } | undefined;
7615
+ refundTransactionHashes?: string[] | undefined;
7616
+ sender?: string | undefined;
7617
+ sourceAmount: {
7618
+ baseUnits: string;
7619
+ currency: string;
7620
+ decimals: number;
7621
+ formatted: string;
7622
+ };
7623
+ sourceAmountMax?: {
7624
+ baseUnits: string;
7625
+ currency: string;
7626
+ decimals: number;
7627
+ formatted: string;
7628
+ } | undefined;
7629
+ sourceChain: {
7630
+ addressFormat: "base58" | "base58check" | "hex";
7631
+ id: string;
7632
+ kind: "evm" | "solana" | "tron";
7633
+ name: string;
7634
+ };
7635
+ sourceToken: {
7636
+ address: string;
7637
+ currency: string;
7638
+ decimals: number;
7639
+ name: string;
7640
+ standard: string;
7641
+ symbol: string;
7642
+ tokenKey: string;
7643
+ verified: boolean;
7644
+ };
7645
+ sourceTransactionHashes?: string[] | undefined;
7646
+ subsidize: boolean;
7647
+ status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
7648
+ statusReason?: {
7649
+ 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";
6935
7650
  message: string;
6936
7651
  } | undefined;
6937
7652
  updatedAt: string;
7653
+ version: number;
6938
7654
  };
6939
- type: "funding:deposit.updated";
7655
+ type: "routes:transfer.updated";
6940
7656
  } | {
6941
7657
  chainId: number;
6942
7658
  context?: {
@@ -6971,14 +7687,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6971
7687
  $post: {
6972
7688
  output: {
6973
7689
  error: {
6974
- code: "upstream_error";
7690
+ code: "api_key_malformed";
6975
7691
  details?: readonly Response.error.Detail[] | undefined;
6976
7692
  message: string;
6977
7693
  };
6978
7694
  requestId: string;
6979
7695
  };
6980
7696
  outputFormat: "json";
6981
- status: 502;
7697
+ status: 400;
6982
7698
  input: {
6983
7699
  param: {
6984
7700
  deliveryId: string;
@@ -6989,14 +7705,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6989
7705
  } | {
6990
7706
  output: {
6991
7707
  error: {
6992
- code: "api_key_malformed";
7708
+ code: "api_key_invalid" | "api_key_missing";
6993
7709
  details?: readonly Response.error.Detail[] | undefined;
6994
7710
  message: string;
6995
7711
  };
6996
7712
  requestId: string;
6997
7713
  };
6998
7714
  outputFormat: "json";
6999
- status: 400;
7715
+ status: 401;
7000
7716
  input: {
7001
7717
  param: {
7002
7718
  deliveryId: string;
@@ -7007,14 +7723,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7007
7723
  } | {
7008
7724
  output: {
7009
7725
  error: {
7010
- code: "api_key_invalid" | "api_key_missing";
7726
+ code: "upstream_error";
7011
7727
  details?: readonly Response.error.Detail[] | undefined;
7012
7728
  message: string;
7013
7729
  };
7014
7730
  requestId: string;
7015
7731
  };
7016
7732
  outputFormat: "json";
7017
- status: 401;
7733
+ status: 502;
7018
7734
  input: {
7019
7735
  param: {
7020
7736
  deliveryId: string;
@@ -7154,14 +7870,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7154
7870
  $patch: {
7155
7871
  output: {
7156
7872
  error: {
7157
- code: "upstream_error";
7873
+ code: "api_key_malformed";
7158
7874
  details?: readonly Response.error.Detail[] | undefined;
7159
7875
  message: string;
7160
7876
  };
7161
7877
  requestId: string;
7162
7878
  };
7163
7879
  outputFormat: "json";
7164
- status: 502;
7880
+ status: 400;
7165
7881
  input: {
7166
7882
  param: {
7167
7883
  id: string;
@@ -7175,14 +7891,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7175
7891
  } | {
7176
7892
  output: {
7177
7893
  error: {
7178
- code: "api_key_malformed";
7894
+ code: "api_key_invalid" | "api_key_missing";
7179
7895
  details?: readonly Response.error.Detail[] | undefined;
7180
7896
  message: string;
7181
7897
  };
7182
7898
  requestId: string;
7183
7899
  };
7184
7900
  outputFormat: "json";
7185
- status: 400;
7901
+ status: 401;
7186
7902
  input: {
7187
7903
  param: {
7188
7904
  id: string;
@@ -7196,14 +7912,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7196
7912
  } | {
7197
7913
  output: {
7198
7914
  error: {
7199
- code: "api_key_invalid" | "api_key_missing";
7915
+ code: "upstream_error";
7200
7916
  details?: readonly Response.error.Detail[] | undefined;
7201
7917
  message: string;
7202
7918
  };
7203
7919
  requestId: string;
7204
7920
  };
7205
7921
  outputFormat: "json";
7206
- status: 401;
7922
+ status: 502;
7207
7923
  input: {
7208
7924
  param: {
7209
7925
  id: string;
@@ -7345,7 +8061,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7345
8061
  chainId: number;
7346
8062
  createdAt: string;
7347
8063
  environment?: "production" | "sandbox" | undefined;
7348
- eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
8064
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
7349
8065
  expiresAt?: string | undefined;
7350
8066
  failureCount: number;
7351
8067
  filters: {
@@ -7393,14 +8109,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7393
8109
  $delete: {
7394
8110
  output: {
7395
8111
  error: {
7396
- code: "upstream_error";
8112
+ code: "api_key_malformed";
7397
8113
  details?: readonly Response.error.Detail[] | undefined;
7398
8114
  message: string;
7399
8115
  };
7400
8116
  requestId: string;
7401
8117
  };
7402
8118
  outputFormat: "json";
7403
- status: 502;
8119
+ status: 400;
7404
8120
  input: {
7405
8121
  param: {
7406
8122
  id: string;
@@ -7410,14 +8126,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7410
8126
  } | {
7411
8127
  output: {
7412
8128
  error: {
7413
- code: "api_key_malformed";
8129
+ code: "api_key_invalid" | "api_key_missing";
7414
8130
  details?: readonly Response.error.Detail[] | undefined;
7415
8131
  message: string;
7416
8132
  };
7417
8133
  requestId: string;
7418
8134
  };
7419
8135
  outputFormat: "json";
7420
- status: 400;
8136
+ status: 401;
7421
8137
  input: {
7422
8138
  param: {
7423
8139
  id: string;
@@ -7427,14 +8143,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7427
8143
  } | {
7428
8144
  output: {
7429
8145
  error: {
7430
- code: "api_key_invalid" | "api_key_missing";
8146
+ code: "upstream_error";
7431
8147
  details?: readonly Response.error.Detail[] | undefined;
7432
8148
  message: string;
7433
8149
  };
7434
8150
  requestId: string;
7435
8151
  };
7436
8152
  outputFormat: "json";
7437
- status: 401;
8153
+ status: 502;
7438
8154
  input: {
7439
8155
  param: {
7440
8156
  id: string;