tapimo 0.14.0 → 0.15.1

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 (1160) 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 +12466 -10374
  9. package/dist/App.d.ts.map +1 -1
  10. package/dist/App.js +300 -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 +1 -1
  24. package/dist/Webhooks.js.map +1 -1
  25. package/dist/admin/App.d.ts +3057 -546
  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 +179 -27
  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 +1398 -0
  34. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  35. package/dist/admin/apps/earn-vaults.js +463 -7
  36. package/dist/admin/apps/earn-vaults.js.map +1 -1
  37. package/dist/admin/apps/organizations.d.ts +267 -15
  38. package/dist/admin/apps/organizations.d.ts.map +1 -1
  39. package/dist/admin/apps/organizations.js +241 -25
  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 +166 -160
  54. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  55. package/dist/admin/apps/verified-tokens.js +27 -7
  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 +201 -149
  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 +37 -5
  76. package/dist/apps/Zones.js.map +1 -1
  77. package/dist/apps/data/App.d.ts +3971 -2595
  78. package/dist/apps/data/App.d.ts.map +1 -1
  79. package/dist/apps/data/App.js +76 -21
  80. package/dist/apps/data/App.js.map +1 -1
  81. package/dist/apps/data/routes/activities.d.ts +629 -299
  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 +72 -0
  86. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  87. package/dist/apps/data/routes/blocks.d.ts +116 -116
  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 +1450 -337
  92. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  93. package/dist/apps/data/routes/earn.js +1226 -144
  94. package/dist/apps/data/routes/earn.js.map +1 -1
  95. package/dist/apps/data/routes/fee-amm.d.ts +113 -108
  96. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  97. package/dist/apps/data/routes/fee-amm.js +41 -21
  98. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  99. package/dist/apps/data/routes/indexer.d.ts +142 -17
  100. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  101. package/dist/apps/data/routes/indexer.js +83 -27
  102. package/dist/apps/data/routes/indexer.js.map +1 -1
  103. package/dist/apps/data/routes/receipts.d.ts +235 -235
  104. package/dist/apps/data/routes/rpc.d.ts +507 -33
  105. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  106. package/dist/apps/data/routes/rpc.js +309 -165
  107. package/dist/apps/data/routes/rpc.js.map +1 -1
  108. package/dist/apps/data/routes/tokenlist.d.ts +47 -15
  109. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  110. package/dist/apps/data/routes/tokenlist.js +68 -11
  111. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  112. package/dist/apps/data/routes/tokens.d.ts +2 -0
  113. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  114. package/dist/apps/data/routes/tokens.js +26 -14
  115. package/dist/apps/data/routes/tokens.js.map +1 -1
  116. package/dist/apps/data/routes/transfers.d.ts +93 -77
  117. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  118. package/dist/apps/data/routes/transfers.js +9 -7
  119. package/dist/apps/data/routes/transfers.js.map +1 -1
  120. package/dist/apps/data/routes/valuation.d.ts +32 -32
  121. package/dist/apps/data/routes/verified-tokens.d.ts +88 -88
  122. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
  123. package/dist/apps/data/routes/verified-tokens.js +64 -20
  124. package/dist/apps/data/routes/verified-tokens.js.map +1 -1
  125. package/dist/apps/data/routes/webhooks.d.ts +614 -177
  126. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  127. package/dist/apps/data/routes/webhooks.js +308 -205
  128. package/dist/apps/data/routes/webhooks.js.map +1 -1
  129. package/dist/apps/data/routes/zones.d.ts +31 -31
  130. package/dist/apps/data/routes/zones.d.ts.map +1 -1
  131. package/dist/apps/data/routes/zones.js +20 -12
  132. package/dist/apps/data/routes/zones.js.map +1 -1
  133. package/dist/apps/docs/reference.js +2 -2
  134. package/dist/apps/docs/reference.js.map +1 -1
  135. package/dist/apps/index.d.ts +1 -1
  136. package/dist/apps/index.d.ts.map +1 -1
  137. package/dist/apps/index.js +1 -1
  138. package/dist/apps/index.js.map +1 -1
  139. package/dist/apps/management/App.d.ts +3780 -3402
  140. package/dist/apps/management/App.d.ts.map +1 -1
  141. package/dist/apps/management/App.js +5 -14
  142. package/dist/apps/management/App.js.map +1 -1
  143. package/dist/apps/management/Billing.d.ts +48 -7
  144. package/dist/apps/management/Billing.d.ts.map +1 -1
  145. package/dist/apps/management/Billing.js +204 -25
  146. package/dist/apps/management/Billing.js.map +1 -1
  147. package/dist/apps/management/routes/api-keys.d.ts +317 -215
  148. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  149. package/dist/apps/management/routes/api-keys.js +43 -15
  150. package/dist/apps/management/routes/api-keys.js.map +1 -1
  151. package/dist/apps/management/routes/billing.d.ts +290 -4
  152. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  153. package/dist/apps/management/routes/billing.js +274 -49
  154. package/dist/apps/management/routes/billing.js.map +1 -1
  155. package/dist/apps/management/routes/faucet.d.ts +6 -6
  156. package/dist/apps/management/routes/faucet.js +1 -1
  157. package/dist/apps/management/routes/faucet.js.map +1 -1
  158. package/dist/apps/management/routes/invitations.d.ts +213 -138
  159. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  160. package/dist/apps/management/routes/invitations.js +117 -13
  161. package/dist/apps/management/routes/invitations.js.map +1 -1
  162. package/dist/apps/management/routes/invite-links.d.ts +166 -166
  163. package/dist/apps/management/routes/me.d.ts.map +1 -1
  164. package/dist/apps/management/routes/me.js +6 -2
  165. package/dist/apps/management/routes/me.js.map +1 -1
  166. package/dist/apps/management/routes/members.d.ts +30 -30
  167. package/dist/apps/management/routes/orgs.d.ts +103 -87
  168. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  169. package/dist/apps/management/routes/orgs.js +52 -12
  170. package/dist/apps/management/routes/orgs.js.map +1 -1
  171. package/dist/apps/management/routes/projects.d.ts +125 -125
  172. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  173. package/dist/apps/management/routes/projects.js +6 -1
  174. package/dist/apps/management/routes/projects.js.map +1 -1
  175. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  176. package/dist/apps/management/routes/scopes.js +4 -1
  177. package/dist/apps/management/routes/scopes.js.map +1 -1
  178. package/dist/apps/management/routes/usage.d.ts +24 -24
  179. package/dist/apps/management/routes/usage.js +21 -4
  180. package/dist/apps/management/routes/usage.js.map +1 -1
  181. package/dist/apps/management/routes/verified-token-requests.d.ts +95 -95
  182. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
  183. package/dist/apps/management/routes/verified-token-requests.js +7 -9
  184. package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
  185. package/dist/apps/management/routes/webhooks.d.ts +682 -616
  186. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  187. package/dist/apps/management/routes/webhooks.js +58 -12
  188. package/dist/apps/management/routes/webhooks.js.map +1 -1
  189. package/dist/apps/mcp.d.ts +1 -1
  190. package/dist/apps/mcp.d.ts.map +1 -1
  191. package/dist/apps/mcp.js +23 -10
  192. package/dist/apps/mcp.js.map +1 -1
  193. package/dist/apps/mpp/App.d.ts +44 -44
  194. package/dist/apps/mpp/App.d.ts.map +1 -1
  195. package/dist/apps/mpp/App.js +35 -7
  196. package/dist/apps/mpp/App.js.map +1 -1
  197. package/dist/apps/mpp/internal/Adapter.d.ts +2 -0
  198. package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
  199. package/dist/apps/mpp/internal/Adapter.js +30 -1
  200. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  201. package/dist/apps/mpp/internal/Policy.d.ts +22 -4
  202. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
  203. package/dist/apps/mpp/internal/Policy.js +24 -6
  204. package/dist/apps/mpp/internal/Policy.js.map +1 -1
  205. package/dist/apps/mpp/internal/Sponsorship.d.ts +3 -0
  206. package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -1
  207. package/dist/apps/mpp/internal/Sponsorship.js +6 -3
  208. package/dist/apps/mpp/internal/Sponsorship.js.map +1 -1
  209. package/dist/apps/relay/App.d.ts +2 -0
  210. package/dist/apps/relay/App.d.ts.map +1 -1
  211. package/dist/apps/relay/App.js +134 -75
  212. package/dist/apps/relay/App.js.map +1 -1
  213. package/dist/apps/relay/Sponsorships.d.ts +5 -3
  214. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  215. package/dist/apps/relay/Sponsorships.js +209 -28
  216. package/dist/apps/relay/Sponsorships.js.map +1 -1
  217. package/dist/apps/{funding → routes}/Access.d.ts +4 -4
  218. package/dist/apps/routes/Access.d.ts.map +1 -0
  219. package/dist/apps/{funding → routes}/Access.js +4 -4
  220. package/dist/apps/routes/Access.js.map +1 -0
  221. package/dist/apps/{funding → routes}/App.d.ts +418 -124
  222. package/dist/apps/{funding → routes}/App.d.ts.map +1 -1
  223. package/dist/apps/{funding → routes}/App.js +16 -16
  224. package/dist/apps/routes/App.js.map +1 -0
  225. package/dist/apps/routes/Inventory.d.ts.map +1 -0
  226. package/dist/apps/{funding → routes}/Inventory.js +2 -2
  227. package/dist/apps/routes/Inventory.js.map +1 -0
  228. package/dist/apps/routes/index.d.ts +2 -0
  229. package/dist/apps/routes/index.d.ts.map +1 -0
  230. package/dist/apps/routes/index.js +2 -0
  231. package/dist/apps/routes/index.js.map +1 -0
  232. package/dist/apps/{funding → routes}/routes/chains.d.ts +32 -32
  233. package/dist/apps/routes/routes/chains.d.ts.map +1 -0
  234. package/dist/apps/{funding → routes}/routes/chains.js +25 -25
  235. package/dist/apps/routes/routes/chains.js.map +1 -0
  236. package/dist/apps/{funding → routes}/routes/deposit-addresses.d.ts +107 -43
  237. package/dist/apps/routes/routes/deposit-addresses.d.ts.map +1 -0
  238. package/dist/apps/{funding → routes}/routes/deposit-addresses.js +497 -222
  239. package/dist/apps/routes/routes/deposit-addresses.js.map +1 -0
  240. package/dist/apps/{funding → routes}/routes/providers.d.ts +8 -8
  241. package/dist/apps/routes/routes/providers.d.ts.map +1 -0
  242. package/dist/apps/routes/routes/providers.js +57 -0
  243. package/dist/apps/routes/routes/providers.js.map +1 -0
  244. package/dist/apps/{funding → routes}/routes/quotes.d.ts +106 -103
  245. package/dist/apps/routes/routes/quotes.d.ts.map +1 -0
  246. package/dist/apps/{funding → routes}/routes/quotes.js +55 -38
  247. package/dist/apps/routes/routes/quotes.js.map +1 -0
  248. package/dist/apps/{funding → routes}/routes/transfers.d.ts +733 -428
  249. package/dist/apps/routes/routes/transfers.d.ts.map +1 -0
  250. package/dist/apps/routes/routes/transfers.js +1140 -0
  251. package/dist/apps/routes/routes/transfers.js.map +1 -0
  252. package/dist/cli/Cli.d.ts +30 -0
  253. package/dist/cli/Cli.d.ts.map +1 -1
  254. package/dist/cli/commands/admin.d.ts +36 -0
  255. package/dist/cli/commands/admin.d.ts.map +1 -1
  256. package/dist/cli/commands/admin.js +273 -0
  257. package/dist/cli/commands/admin.js.map +1 -1
  258. package/dist/cloudflare.d.ts +16 -14
  259. package/dist/cloudflare.d.ts.map +1 -1
  260. package/dist/cloudflare.js +26 -21
  261. package/dist/cloudflare.js.map +1 -1
  262. package/dist/db/Db.d.ts +63 -21
  263. package/dist/db/Db.d.ts.map +1 -1
  264. package/dist/db/Db.js +1035 -15
  265. package/dist/db/Db.js.map +1 -1
  266. package/dist/db/Schema.d.ts +780 -133
  267. package/dist/db/Schema.d.ts.map +1 -1
  268. package/dist/db/Schema.js +575 -162
  269. package/dist/db/Schema.js.map +1 -1
  270. package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts +4 -0
  271. package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts.map +1 -0
  272. package/dist/db/tables/apiKeyAdmissionBootstraps.js +2 -0
  273. package/dist/db/tables/apiKeyAdmissionBootstraps.js.map +1 -0
  274. package/dist/db/tables/apiKeyAdmissions.d.ts +73 -0
  275. package/dist/db/tables/apiKeyAdmissions.d.ts.map +1 -0
  276. package/dist/db/tables/apiKeyAdmissions.js +142 -0
  277. package/dist/db/tables/apiKeyAdmissions.js.map +1 -0
  278. package/dist/db/tables/apiKeyOwnerAdmissions.d.ts +4 -0
  279. package/dist/db/tables/apiKeyOwnerAdmissions.d.ts.map +1 -0
  280. package/dist/db/tables/apiKeyOwnerAdmissions.js +2 -0
  281. package/dist/db/tables/apiKeyOwnerAdmissions.js.map +1 -0
  282. package/dist/db/tables/apiKeyOwnerTombstones.d.ts +20 -0
  283. package/dist/db/tables/apiKeyOwnerTombstones.d.ts.map +1 -0
  284. package/dist/db/tables/apiKeyOwnerTombstones.js +57 -0
  285. package/dist/db/tables/apiKeyOwnerTombstones.js.map +1 -0
  286. package/dist/db/tables/apiKeyRevocations.d.ts +21 -0
  287. package/dist/db/tables/apiKeyRevocations.d.ts.map +1 -0
  288. package/dist/db/tables/apiKeyRevocations.js +98 -0
  289. package/dist/db/tables/apiKeyRevocations.js.map +1 -0
  290. package/dist/db/tables/authAccounts.d.ts +47 -0
  291. package/dist/db/tables/authAccounts.d.ts.map +1 -0
  292. package/dist/db/tables/authAccounts.js +72 -0
  293. package/dist/db/tables/authAccounts.js.map +1 -0
  294. package/dist/db/tables/authSessions.d.ts +12 -0
  295. package/dist/db/tables/authSessions.d.ts.map +1 -0
  296. package/dist/db/tables/authSessions.js +2 -0
  297. package/dist/db/tables/authSessions.js.map +1 -0
  298. package/dist/db/tables/authVerifications.d.ts +12 -0
  299. package/dist/db/tables/authVerifications.d.ts.map +1 -0
  300. package/dist/db/tables/authVerifications.js +2 -0
  301. package/dist/db/tables/authVerifications.js.map +1 -0
  302. package/dist/db/tables/invitations.d.ts +17 -1
  303. package/dist/db/tables/invitations.d.ts.map +1 -1
  304. package/dist/db/tables/invitations.js +123 -43
  305. package/dist/db/tables/invitations.js.map +1 -1
  306. package/dist/db/tables/memberships.d.ts +8 -0
  307. package/dist/db/tables/memberships.d.ts.map +1 -1
  308. package/dist/db/tables/memberships.js +51 -2
  309. package/dist/db/tables/memberships.js.map +1 -1
  310. package/dist/db/tables/organizations.d.ts +32 -10
  311. package/dist/db/tables/organizations.d.ts.map +1 -1
  312. package/dist/db/tables/organizations.js +110 -49
  313. package/dist/db/tables/organizations.js.map +1 -1
  314. package/dist/db/tables/projects.d.ts +2 -0
  315. package/dist/db/tables/projects.d.ts.map +1 -1
  316. package/dist/db/tables/projects.js +12 -3
  317. package/dist/db/tables/projects.js.map +1 -1
  318. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  319. package/dist/db/tables/requestUsage.js.map +1 -1
  320. package/dist/db/tables/rewardAccounts.d.ts +86 -0
  321. package/dist/db/tables/rewardAccounts.d.ts.map +1 -0
  322. package/dist/db/tables/rewardAccounts.js +88 -0
  323. package/dist/db/tables/rewardAccounts.js.map +1 -0
  324. package/dist/db/tables/rewardCampaignDistributors.d.ts +36 -0
  325. package/dist/db/tables/rewardCampaignDistributors.d.ts.map +1 -0
  326. package/dist/db/tables/rewardCampaignDistributors.js +30 -0
  327. package/dist/db/tables/rewardCampaignDistributors.js.map +1 -0
  328. package/dist/db/tables/rewardCampaigns.d.ts +171 -0
  329. package/dist/db/tables/rewardCampaigns.d.ts.map +1 -0
  330. package/dist/db/tables/rewardCampaigns.js +392 -0
  331. package/dist/db/tables/rewardCampaigns.js.map +1 -0
  332. package/dist/db/tables/rewardCredits.d.ts +53 -0
  333. package/dist/db/tables/rewardCredits.d.ts.map +1 -0
  334. package/dist/db/tables/rewardCredits.js +63 -0
  335. package/dist/db/tables/rewardCredits.js.map +1 -0
  336. package/dist/db/tables/rewardEligibilityAssociations.d.ts +61 -0
  337. package/dist/db/tables/rewardEligibilityAssociations.d.ts.map +1 -0
  338. package/dist/db/tables/rewardEligibilityAssociations.js +103 -0
  339. package/dist/db/tables/rewardEligibilityAssociations.js.map +1 -0
  340. package/dist/db/tables/rewardRuns.d.ts +188 -0
  341. package/dist/db/tables/rewardRuns.d.ts.map +1 -0
  342. package/dist/db/tables/rewardRuns.js +278 -0
  343. package/dist/db/tables/rewardRuns.js.map +1 -0
  344. package/dist/db/tables/rewardTransactionAttempts.d.ts +100 -0
  345. package/dist/db/tables/rewardTransactionAttempts.d.ts.map +1 -0
  346. package/dist/db/tables/rewardTransactionAttempts.js +163 -0
  347. package/dist/db/tables/rewardTransactionAttempts.js.map +1 -0
  348. package/dist/db/tables/routesCatalog.d.ts +58 -0
  349. package/dist/db/tables/routesCatalog.d.ts.map +1 -0
  350. package/dist/db/tables/{fundingCatalog.js → routesCatalog.js} +19 -19
  351. package/dist/db/tables/routesCatalog.js.map +1 -0
  352. package/dist/db/tables/routesDepositAddresses.d.ts +476 -0
  353. package/dist/db/tables/routesDepositAddresses.d.ts.map +1 -0
  354. package/dist/db/tables/routesDepositAddresses.js +587 -0
  355. package/dist/db/tables/routesDepositAddresses.js.map +1 -0
  356. package/dist/db/tables/{fundingDepositRequestObservations.d.ts → routesDepositRequestObservations.d.ts} +6 -6
  357. package/dist/db/tables/routesDepositRequestObservations.d.ts.map +1 -0
  358. package/dist/db/tables/{fundingDepositRequestObservations.js → routesDepositRequestObservations.js} +6 -6
  359. package/dist/db/tables/routesDepositRequestObservations.js.map +1 -0
  360. package/dist/db/tables/{fundingDeposits.d.ts → routesDeposits.d.ts} +210 -22
  361. package/dist/db/tables/routesDeposits.d.ts.map +1 -0
  362. package/dist/db/tables/routesDeposits.js +576 -0
  363. package/dist/db/tables/routesDeposits.js.map +1 -0
  364. package/dist/db/tables/routesIdempotency.d.ts +166 -0
  365. package/dist/db/tables/routesIdempotency.d.ts.map +1 -0
  366. package/dist/db/tables/routesIdempotency.js +330 -0
  367. package/dist/db/tables/routesIdempotency.js.map +1 -0
  368. package/dist/db/tables/routesSubsidies.d.ts +27 -0
  369. package/dist/db/tables/routesSubsidies.d.ts.map +1 -0
  370. package/dist/db/tables/routesSubsidies.js +45 -0
  371. package/dist/db/tables/routesSubsidies.js.map +1 -0
  372. package/dist/db/tables/{fundingTransferEvents.d.ts → routesTransferEvents.d.ts} +3 -3
  373. package/dist/db/tables/routesTransferEvents.d.ts.map +1 -0
  374. package/dist/db/tables/{fundingTransferEvents.js → routesTransferEvents.js} +3 -3
  375. package/dist/db/tables/routesTransferEvents.js.map +1 -0
  376. package/dist/db/tables/routesTransferSubsidies.d.ts +19 -0
  377. package/dist/db/tables/routesTransferSubsidies.d.ts.map +1 -0
  378. package/dist/db/tables/routesTransferSubsidies.js +17 -0
  379. package/dist/db/tables/routesTransferSubsidies.js.map +1 -0
  380. package/dist/db/tables/routesTransferSubsidyNonces.d.ts +51 -0
  381. package/dist/db/tables/routesTransferSubsidyNonces.d.ts.map +1 -0
  382. package/dist/db/tables/routesTransferSubsidyNonces.js +82 -0
  383. package/dist/db/tables/routesTransferSubsidyNonces.js.map +1 -0
  384. package/dist/db/tables/routesTransferTransactions.d.ts +77 -0
  385. package/dist/db/tables/routesTransferTransactions.d.ts.map +1 -0
  386. package/dist/db/tables/{fundingTransferTransactions.js → routesTransferTransactions.js} +31 -13
  387. package/dist/db/tables/routesTransferTransactions.js.map +1 -0
  388. package/dist/db/tables/routesTransfers.d.ts +319 -0
  389. package/dist/db/tables/routesTransfers.d.ts.map +1 -0
  390. package/dist/db/tables/routesTransfers.js +372 -0
  391. package/dist/db/tables/routesTransfers.js.map +1 -0
  392. package/dist/db/tables/sponsoredTransactions.d.ts +75 -20
  393. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  394. package/dist/db/tables/sponsoredTransactions.js +124 -54
  395. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  396. package/dist/db/tables/sponsorshipAttributions.d.ts +69 -0
  397. package/dist/db/tables/sponsorshipAttributions.d.ts.map +1 -0
  398. package/dist/db/tables/sponsorshipAttributions.js +77 -0
  399. package/dist/db/tables/sponsorshipAttributions.js.map +1 -0
  400. package/dist/db/tables/sponsorshipReconciliationCursors.d.ts +22 -0
  401. package/dist/db/tables/sponsorshipReconciliationCursors.d.ts.map +1 -0
  402. package/dist/db/tables/sponsorshipReconciliationCursors.js +45 -0
  403. package/dist/db/tables/sponsorshipReconciliationCursors.js.map +1 -0
  404. package/dist/db/tables/stripeCustomers.d.ts +11 -0
  405. package/dist/db/tables/stripeCustomers.d.ts.map +1 -1
  406. package/dist/db/tables/stripeCustomers.js +13 -0
  407. package/dist/db/tables/stripeCustomers.js.map +1 -1
  408. package/dist/db/tables/users.d.ts +17 -1
  409. package/dist/db/tables/users.d.ts.map +1 -1
  410. package/dist/db/tables/users.js +47 -2
  411. package/dist/db/tables/users.js.map +1 -1
  412. package/dist/db/tables/verifiedTokenRequests.d.ts +21 -4
  413. package/dist/db/tables/verifiedTokenRequests.d.ts.map +1 -1
  414. package/dist/db/tables/verifiedTokenRequests.js +65 -44
  415. package/dist/db/tables/verifiedTokenRequests.js.map +1 -1
  416. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
  417. package/dist/db/tables/webhookQueueEvents.js +5 -1
  418. package/dist/db/tables/webhookQueueEvents.js.map +1 -1
  419. package/dist/db/tables/webhookSubscriptions.d.ts +19 -11
  420. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  421. package/dist/db/tables/webhookSubscriptions.js +45 -13
  422. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  423. package/dist/handlers/internal/executionError.d.ts +2 -2
  424. package/dist/handlers/internal/executionError.d.ts.map +1 -1
  425. package/dist/handlers/internal/executionError.js +1 -2
  426. package/dist/handlers/internal/executionError.js.map +1 -1
  427. package/dist/handlers/internal/multisig.d.ts +4 -232
  428. package/dist/handlers/internal/multisig.d.ts.map +1 -1
  429. package/dist/handlers/internal/multisig.js +11 -537
  430. package/dist/handlers/internal/multisig.js.map +1 -1
  431. package/dist/handlers/internal/sponsorship.d.ts +19 -8
  432. package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
  433. package/dist/handlers/internal/sponsorship.js +13 -9
  434. package/dist/handlers/internal/sponsorship.js.map +1 -1
  435. package/dist/handlers/relay.d.ts +9 -12
  436. package/dist/handlers/relay.d.ts.map +1 -1
  437. package/dist/handlers/relay.js +81 -85
  438. package/dist/handlers/relay.js.map +1 -1
  439. package/dist/index.d.ts +0 -17
  440. package/dist/index.d.ts.map +1 -1
  441. package/dist/index.js +0 -17
  442. package/dist/index.js.map +1 -1
  443. package/dist/internal/AssetResponse.d.ts +12 -0
  444. package/dist/internal/AssetResponse.d.ts.map +1 -0
  445. package/dist/internal/AssetResponse.js +21 -0
  446. package/dist/internal/AssetResponse.js.map +1 -0
  447. package/dist/internal/Auth.d.ts +64 -12
  448. package/dist/internal/Auth.d.ts.map +1 -1
  449. package/dist/internal/Auth.js +631 -180
  450. package/dist/internal/Auth.js.map +1 -1
  451. package/dist/internal/BetterAuth.d.ts +1488 -0
  452. package/dist/internal/BetterAuth.d.ts.map +1 -0
  453. package/dist/internal/BetterAuth.js +253 -0
  454. package/dist/internal/BetterAuth.js.map +1 -0
  455. package/dist/internal/Cache.d.ts +2 -0
  456. package/dist/internal/Cache.d.ts.map +1 -1
  457. package/dist/internal/Cache.js +2 -0
  458. package/dist/internal/Cache.js.map +1 -1
  459. package/dist/internal/EarnRates.d.ts +26 -3
  460. package/dist/internal/EarnRates.d.ts.map +1 -1
  461. package/dist/internal/EarnRates.js +84 -19
  462. package/dist/internal/EarnRates.js.map +1 -1
  463. package/dist/internal/EarnSharePrices.d.ts +120 -0
  464. package/dist/internal/EarnSharePrices.d.ts.map +1 -0
  465. package/dist/internal/EarnSharePrices.js +179 -0
  466. package/dist/internal/EarnSharePrices.js.map +1 -0
  467. package/dist/internal/EarnVaults.d.ts +4 -0
  468. package/dist/internal/EarnVaults.d.ts.map +1 -1
  469. package/dist/internal/EarnVaults.js +27 -10
  470. package/dist/internal/EarnVaults.js.map +1 -1
  471. package/dist/internal/Email.d.ts +37 -0
  472. package/dist/internal/Email.d.ts.map +1 -0
  473. package/dist/internal/Email.js +16 -0
  474. package/dist/internal/Email.js.map +1 -0
  475. package/dist/internal/Log.d.ts +32 -28
  476. package/dist/internal/Log.d.ts.map +1 -1
  477. package/dist/internal/Log.js +18 -11
  478. package/dist/internal/Log.js.map +1 -1
  479. package/dist/internal/MetricSink.d.ts +3 -0
  480. package/dist/internal/MetricSink.d.ts.map +1 -1
  481. package/dist/internal/MetricSink.js +67 -8
  482. package/dist/internal/MetricSink.js.map +1 -1
  483. package/dist/internal/Mpp.d.ts.map +1 -1
  484. package/dist/internal/Mpp.js +20 -25
  485. package/dist/internal/Mpp.js.map +1 -1
  486. package/dist/internal/OpenApi.d.ts +26 -3
  487. package/dist/internal/OpenApi.d.ts.map +1 -1
  488. package/dist/internal/OpenApi.js +25 -10
  489. package/dist/internal/OpenApi.js.map +1 -1
  490. package/dist/internal/Provider.d.ts +1 -1
  491. package/dist/internal/Provider.d.ts.map +1 -1
  492. package/dist/internal/RateLimit.d.ts.map +1 -1
  493. package/dist/internal/RateLimit.js +13 -1
  494. package/dist/internal/RateLimit.js.map +1 -1
  495. package/dist/internal/Store.d.ts +16 -0
  496. package/dist/internal/Store.d.ts.map +1 -1
  497. package/dist/internal/Store.js +59 -8
  498. package/dist/internal/Store.js.map +1 -1
  499. package/dist/internal/Tidx.d.ts +9 -2
  500. package/dist/internal/Tidx.d.ts.map +1 -1
  501. package/dist/internal/Tidx.js +78 -11
  502. package/dist/internal/Tidx.js.map +1 -1
  503. package/dist/internal/Timing.d.ts +26 -0
  504. package/dist/internal/Timing.d.ts.map +1 -1
  505. package/dist/internal/Timing.js +63 -5
  506. package/dist/internal/Timing.js.map +1 -1
  507. package/dist/internal/VercelOidc.d.ts +94 -0
  508. package/dist/internal/VercelOidc.d.ts.map +1 -0
  509. package/dist/internal/VercelOidc.js +128 -0
  510. package/dist/internal/VercelOidc.js.map +1 -0
  511. package/dist/internal/VerifiedTokens.d.ts +2 -8
  512. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  513. package/dist/internal/VerifiedTokens.js +24 -24
  514. package/dist/internal/VerifiedTokens.js.map +1 -1
  515. package/dist/internal/Viem.d.ts +30 -2067
  516. package/dist/internal/Viem.d.ts.map +1 -1
  517. package/dist/internal/Viem.js +167 -17
  518. package/dist/internal/Viem.js.map +1 -1
  519. package/dist/internal/Webhooks.d.ts +12 -4
  520. package/dist/internal/Webhooks.d.ts.map +1 -1
  521. package/dist/internal/Webhooks.js +9 -3
  522. package/dist/internal/Webhooks.js.map +1 -1
  523. package/dist/internal/ZoneRpc.d.ts +7 -0
  524. package/dist/internal/ZoneRpc.d.ts.map +1 -0
  525. package/dist/internal/ZoneRpc.js +49 -0
  526. package/dist/internal/ZoneRpc.js.map +1 -0
  527. package/dist/internal/index.d.ts +3 -1
  528. package/dist/internal/index.d.ts.map +1 -1
  529. package/dist/internal/index.js +3 -1
  530. package/dist/internal/index.js.map +1 -1
  531. package/dist/internal/rewards/Audit.d.ts +88 -0
  532. package/dist/internal/rewards/Audit.d.ts.map +1 -0
  533. package/dist/internal/rewards/Audit.js +134 -0
  534. package/dist/internal/rewards/Audit.js.map +1 -0
  535. package/dist/internal/rewards/Campaigns.d.ts +572 -0
  536. package/dist/internal/rewards/Campaigns.d.ts.map +1 -0
  537. package/dist/internal/rewards/Campaigns.js +531 -0
  538. package/dist/internal/rewards/Campaigns.js.map +1 -0
  539. package/dist/internal/rewards/Credits.d.ts +76 -0
  540. package/dist/internal/rewards/Credits.d.ts.map +1 -0
  541. package/dist/internal/rewards/Credits.js +95 -0
  542. package/dist/internal/rewards/Credits.js.map +1 -0
  543. package/dist/internal/rewards/Events.d.ts +100 -0
  544. package/dist/internal/rewards/Events.d.ts.map +1 -0
  545. package/dist/internal/rewards/Events.js +340 -0
  546. package/dist/internal/rewards/Events.js.map +1 -0
  547. package/dist/internal/rewards/Projection.d.ts +237 -0
  548. package/dist/internal/rewards/Projection.d.ts.map +1 -0
  549. package/dist/internal/rewards/Projection.js +616 -0
  550. package/dist/internal/rewards/Projection.js.map +1 -0
  551. package/dist/internal/rewards/Rates.d.ts +44 -0
  552. package/dist/internal/rewards/Rates.d.ts.map +1 -0
  553. package/dist/internal/rewards/Rates.js +60 -0
  554. package/dist/internal/rewards/Rates.js.map +1 -0
  555. package/dist/internal/rewards/Read.d.ts +158 -0
  556. package/dist/internal/rewards/Read.d.ts.map +1 -0
  557. package/dist/internal/rewards/Read.js +292 -0
  558. package/dist/internal/rewards/Read.js.map +1 -0
  559. package/dist/internal/rewards/Runner.d.ts +164 -0
  560. package/dist/internal/rewards/Runner.d.ts.map +1 -0
  561. package/dist/internal/rewards/Runner.js +1778 -0
  562. package/dist/internal/rewards/Runner.js.map +1 -0
  563. package/dist/internal/rewards/Signer.d.ts +224 -0
  564. package/dist/internal/rewards/Signer.d.ts.map +1 -0
  565. package/dist/internal/rewards/Signer.js +135 -0
  566. package/dist/internal/rewards/Signer.js.map +1 -0
  567. package/dist/internal/rewards/index.d.ts +15 -0
  568. package/dist/internal/rewards/index.d.ts.map +1 -0
  569. package/dist/internal/rewards/index.js +15 -0
  570. package/dist/internal/rewards/index.js.map +1 -0
  571. package/dist/internal/{funding → routes}/Action.d.ts +12 -1
  572. package/dist/internal/routes/Action.d.ts.map +1 -0
  573. package/dist/internal/{funding → routes}/Action.js +17 -9
  574. package/dist/internal/routes/Action.js.map +1 -0
  575. package/dist/internal/{funding → routes}/Catalog.d.ts +20 -20
  576. package/dist/internal/routes/Catalog.d.ts.map +1 -0
  577. package/dist/internal/{funding → routes}/Catalog.js +29 -29
  578. package/dist/internal/routes/Catalog.js.map +1 -0
  579. package/dist/internal/{funding → routes}/Chain.d.ts +10 -10
  580. package/dist/internal/routes/Chain.d.ts.map +1 -0
  581. package/dist/internal/{funding → routes}/Chain.js +3 -3
  582. package/dist/internal/routes/Chain.js.map +1 -0
  583. package/dist/internal/{funding → routes}/Deposit.d.ts +45 -23
  584. package/dist/internal/routes/Deposit.d.ts.map +1 -0
  585. package/dist/internal/{funding → routes}/Deposit.js +60 -27
  586. package/dist/internal/routes/Deposit.js.map +1 -0
  587. package/dist/internal/{funding → routes}/DepositAddress.d.ts +56 -27
  588. package/dist/internal/routes/DepositAddress.d.ts.map +1 -0
  589. package/dist/internal/{funding → routes}/DepositAddress.js +95 -33
  590. package/dist/internal/routes/DepositAddress.js.map +1 -0
  591. package/dist/internal/{funding → routes}/DepositWebhook.d.ts +4 -4
  592. package/dist/internal/routes/DepositWebhook.d.ts.map +1 -0
  593. package/dist/internal/{funding → routes}/DepositWebhook.js +4 -4
  594. package/dist/internal/routes/DepositWebhook.js.map +1 -0
  595. package/dist/internal/routes/Economics.d.ts +25 -0
  596. package/dist/internal/routes/Economics.d.ts.map +1 -0
  597. package/dist/internal/routes/Economics.js +28 -0
  598. package/dist/internal/routes/Economics.js.map +1 -0
  599. package/dist/internal/{funding → routes}/Evidence.d.ts +3 -3
  600. package/dist/internal/routes/Evidence.d.ts.map +1 -0
  601. package/dist/internal/{funding → routes}/Evidence.js +7 -7
  602. package/dist/internal/routes/Evidence.js.map +1 -0
  603. package/dist/internal/routes/Observability.d.ts +154 -0
  604. package/dist/internal/routes/Observability.d.ts.map +1 -0
  605. package/dist/internal/routes/Observability.js +389 -0
  606. package/dist/internal/routes/Observability.js.map +1 -0
  607. package/dist/internal/{funding → routes}/Provider.d.ts +311 -105
  608. package/dist/internal/routes/Provider.d.ts.map +1 -0
  609. package/dist/internal/{funding → routes}/Provider.js +229 -98
  610. package/dist/internal/routes/Provider.js.map +1 -0
  611. package/dist/internal/{funding → routes}/Reconciliation.d.ts +11 -6
  612. package/dist/internal/routes/Reconciliation.d.ts.map +1 -0
  613. package/dist/internal/{funding → routes}/Reconciliation.js +408 -158
  614. package/dist/internal/routes/Reconciliation.js.map +1 -0
  615. package/dist/internal/routes/Route.d.ts +21 -0
  616. package/dist/internal/routes/Route.d.ts.map +1 -0
  617. package/dist/internal/{funding → routes}/Route.js +1 -1
  618. package/dist/internal/routes/Route.js.map +1 -0
  619. package/dist/internal/{funding → routes}/SourceObservation.d.ts +6 -6
  620. package/dist/internal/routes/SourceObservation.d.ts.map +1 -0
  621. package/dist/internal/{funding → routes}/SourceObservation.js +8 -8
  622. package/dist/internal/routes/SourceObservation.js.map +1 -0
  623. package/dist/internal/{funding → routes}/Subsidy.d.ts +48 -3
  624. package/dist/internal/routes/Subsidy.d.ts.map +1 -0
  625. package/dist/internal/{funding → routes}/Subsidy.js +43 -3
  626. package/dist/internal/routes/Subsidy.js.map +1 -0
  627. package/dist/internal/{funding → routes}/Token.d.ts +4 -4
  628. package/dist/internal/routes/Token.d.ts.map +1 -0
  629. package/dist/internal/{funding → routes}/Token.js +3 -3
  630. package/dist/internal/routes/Token.js.map +1 -0
  631. package/dist/internal/{funding → routes}/Transfer.d.ts +241 -46
  632. package/dist/internal/routes/Transfer.d.ts.map +1 -0
  633. package/dist/internal/routes/Transfer.js +728 -0
  634. package/dist/internal/routes/Transfer.js.map +1 -0
  635. package/dist/internal/{funding → routes}/TransferReconciliation.d.ts +13 -10
  636. package/dist/internal/routes/TransferReconciliation.d.ts.map +1 -0
  637. package/dist/internal/routes/TransferReconciliation.js +422 -0
  638. package/dist/internal/routes/TransferReconciliation.js.map +1 -0
  639. package/dist/internal/routes/TransferSubsidy.d.ts +201 -0
  640. package/dist/internal/routes/TransferSubsidy.d.ts.map +1 -0
  641. package/dist/internal/routes/TransferSubsidy.js +256 -0
  642. package/dist/internal/routes/TransferSubsidy.js.map +1 -0
  643. package/dist/internal/{funding → routes}/TransferWebhook.d.ts +5 -5
  644. package/dist/internal/routes/TransferWebhook.d.ts.map +1 -0
  645. package/dist/internal/{funding → routes}/TransferWebhook.js +3 -3
  646. package/dist/internal/routes/TransferWebhook.js.map +1 -0
  647. package/dist/internal/{funding → routes}/index.d.ts +2 -0
  648. package/dist/internal/routes/index.d.ts.map +1 -0
  649. package/dist/internal/{funding → routes}/index.js +2 -0
  650. package/dist/internal/routes/index.js.map +1 -0
  651. package/dist/internal/{funding → routes}/providers/across.d.ts +4 -4
  652. package/dist/internal/routes/providers/across.d.ts.map +1 -0
  653. package/dist/internal/{funding → routes}/providers/across.js +13 -13
  654. package/dist/internal/routes/providers/across.js.map +1 -0
  655. package/dist/internal/{funding → routes}/providers/relay.d.ts +21 -12
  656. package/dist/internal/routes/providers/relay.d.ts.map +1 -0
  657. package/dist/internal/{funding → routes}/providers/relay.js +194 -110
  658. package/dist/internal/routes/providers/relay.js.map +1 -0
  659. package/dist/internal/{funding → routes}/providers/rhino.d.ts +4 -4
  660. package/dist/internal/routes/providers/rhino.d.ts.map +1 -0
  661. package/dist/internal/{funding → routes}/providers/rhino.js +10 -10
  662. package/dist/internal/routes/providers/rhino.js.map +1 -0
  663. package/dist/internal/{funding → routes}/providers/squid.d.ts +4 -4
  664. package/dist/internal/routes/providers/squid.d.ts.map +1 -0
  665. package/dist/internal/{funding → routes}/providers/squid.js +14 -14
  666. package/dist/internal/routes/providers/squid.js.map +1 -0
  667. package/dist/internal/{funding → routes}/providers/stargate.d.ts +46 -18
  668. package/dist/internal/routes/providers/stargate.d.ts.map +1 -0
  669. package/dist/internal/routes/providers/stargate.js +898 -0
  670. package/dist/internal/routes/providers/stargate.js.map +1 -0
  671. package/dist/internal/{funding → routes}/providers/symbiosis.d.ts +4 -4
  672. package/dist/internal/routes/providers/symbiosis.d.ts.map +1 -0
  673. package/dist/internal/{funding → routes}/providers/symbiosis.js +30 -20
  674. package/dist/internal/routes/providers/symbiosis.js.map +1 -0
  675. package/dist/internal/webhookDestinations/slack.js +12 -12
  676. package/dist/internal/webhookDestinations/slack.js.map +1 -1
  677. package/dist/providers/index.d.ts +12 -12
  678. package/dist/providers/index.d.ts.map +1 -1
  679. package/dist/providers/index.js +12 -12
  680. package/dist/providers/index.js.map +1 -1
  681. package/dist/server.d.ts +19 -0
  682. package/dist/server.d.ts.map +1 -0
  683. package/dist/server.js +19 -0
  684. package/dist/server.js.map +1 -0
  685. package/package.json +15 -4
  686. package/src/ApiKey.ts +1 -1
  687. package/src/ApiKeys.test.ts +1033 -3
  688. package/src/ApiKeys.ts +489 -48
  689. package/src/App.test-d.ts +1 -1
  690. package/src/App.test.ts +216 -25
  691. package/src/App.ts +334 -31
  692. package/src/Assets.test.ts +2 -2
  693. package/src/Assets.ts +3 -1
  694. package/src/Auth.test-d.ts +1 -1
  695. package/src/Client.test-d.ts +539 -110
  696. package/src/Handler.ts +0 -1
  697. package/src/OpenApi.contract.test.ts +195 -0
  698. package/src/Scope.ts +17 -5
  699. package/src/Webhooks.ts +1 -1
  700. package/src/admin/App.test.ts +30 -2
  701. package/src/admin/App.ts +42 -6
  702. package/src/admin/apps/api-keys.test.ts +267 -5
  703. package/src/admin/apps/api-keys.ts +100 -50
  704. package/src/admin/apps/earn-vaults.test.ts +158 -0
  705. package/src/admin/apps/earn-vaults.ts +679 -6
  706. package/src/admin/apps/organizations.test.ts +306 -17
  707. package/src/admin/apps/organizations.ts +299 -24
  708. package/src/admin/apps/routes-support.test.ts +200 -0
  709. package/src/admin/apps/routes-support.ts +201 -0
  710. package/src/admin/apps/routes.test.ts +450 -0
  711. package/src/admin/apps/routes.ts +896 -0
  712. package/src/admin/apps/scopes.test.ts +15 -5
  713. package/src/admin/apps/subsidies.test.ts +306 -0
  714. package/src/admin/apps/subsidies.ts +457 -0
  715. package/src/admin/apps/verified-tokens.test.ts +40 -3
  716. package/src/admin/apps/verified-tokens.ts +33 -7
  717. package/src/admin/ui/plugin.ts +1 -2
  718. package/src/admin/ui/src/components/RewardCampaignForm.tsx +1009 -0
  719. package/src/admin/ui/src/lib/config.ts +11 -2
  720. package/src/admin/ui/src/lib/earn-vaults.ts +2 -2
  721. package/src/admin/ui/src/lib/organizations.test.ts +83 -50
  722. package/src/admin/ui/src/lib/organizations.ts +106 -25
  723. package/src/admin/ui/src/lib/query-client.ts +1 -1
  724. package/src/admin/ui/src/lib/reward-campaigns.ts +136 -0
  725. package/src/admin/ui/src/lib/routes.test.ts +88 -0
  726. package/src/admin/ui/src/lib/routes.ts +304 -0
  727. package/src/admin/ui/src/lib/subsidies.ts +75 -0
  728. package/src/admin/ui/src/lib/verified-tokens.ts +24 -9
  729. package/src/admin/ui/src/routeTree.gen.ts +63 -0
  730. package/src/admin/ui/src/routes/__root.tsx +13 -2
  731. package/src/admin/ui/src/routes/api-keys.tsx +196 -84
  732. package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +105 -70
  733. package/src/admin/ui/src/routes/organizations.tsx +34 -4
  734. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +239 -23
  735. package/src/admin/ui/src/routes/routes.tsx +1615 -0
  736. package/src/admin/ui/src/routes/routes_.support.tsx +248 -0
  737. package/src/admin/ui/src/routes/subsidies.tsx +799 -0
  738. package/src/admin/ui/src/routes/verified-tokens.tsx +64 -20
  739. package/src/admin/ui.generated.ts +202 -188
  740. package/src/analytics/Analytics.test.ts +108 -18
  741. package/src/analytics/Analytics.ts +38 -6
  742. package/src/analytics/tables/requestEvents.test.ts +100 -0
  743. package/src/analytics/tables/requestEvents.ts +10 -1
  744. package/src/analytics/tables/routesLifecycleIntervals.ts +140 -0
  745. package/src/apps/Zones.test.ts +15 -0
  746. package/src/apps/Zones.ts +52 -5
  747. package/src/apps/composition.test.ts +68 -60
  748. package/src/apps/data/App.test.ts +180 -2
  749. package/src/apps/data/App.ts +88 -28
  750. package/src/apps/data/routes/activities.test.ts +419 -7
  751. package/src/apps/data/routes/activities.ts +683 -216
  752. package/src/apps/data/routes/balances.test.ts +2 -2
  753. package/src/apps/data/routes/blocks.test.ts +46 -1
  754. package/src/apps/data/routes/coingecko.test.ts +419 -1
  755. package/src/apps/data/routes/coingecko.ts +309 -253
  756. package/src/apps/data/routes/earn.discovery.test.ts +274 -0
  757. package/src/apps/data/routes/earn.test.ts +1294 -17
  758. package/src/apps/data/routes/earn.ts +1838 -321
  759. package/src/apps/data/routes/exchanges.test.ts +12 -15
  760. package/src/apps/data/routes/fee-amm.test.ts +243 -0
  761. package/src/apps/data/routes/fee-amm.ts +201 -162
  762. package/src/apps/data/routes/indexer.test.ts +389 -0
  763. package/src/apps/data/routes/indexer.ts +165 -69
  764. package/src/apps/data/routes/receipts.test.ts +1 -1
  765. package/src/apps/data/routes/rpc.test.ts +384 -8
  766. package/src/apps/data/routes/rpc.ts +452 -227
  767. package/src/apps/data/routes/rpc.zone.test.ts +340 -0
  768. package/src/apps/data/routes/tokenlist.test.ts +285 -0
  769. package/src/apps/data/routes/tokenlist.ts +173 -88
  770. package/src/apps/data/routes/tokens.test.ts +93 -3
  771. package/src/apps/data/routes/tokens.ts +39 -23
  772. package/src/apps/data/routes/transactions.test.ts +1 -1
  773. package/src/apps/data/routes/transfers.test.ts +56 -24
  774. package/src/apps/data/routes/transfers.ts +19 -8
  775. package/src/apps/data/routes/valuation.test.ts +1 -1
  776. package/src/apps/data/routes/verified-tokens.test.ts +345 -0
  777. package/src/apps/data/routes/verified-tokens.ts +99 -29
  778. package/src/apps/data/routes/webhooks.scan.test.ts +29 -0
  779. package/src/apps/data/routes/webhooks.test.ts +651 -83
  780. package/src/apps/data/routes/webhooks.ts +1113 -868
  781. package/src/apps/data/routes/zones.test.ts +148 -71
  782. package/src/apps/data/routes/zones.ts +71 -55
  783. package/src/apps/docs/reference.ts +2 -2
  784. package/src/apps/index.ts +1 -1
  785. package/src/apps/management/App.ts +9 -51
  786. package/src/apps/management/Billing.test.ts +375 -14
  787. package/src/apps/management/Billing.ts +265 -29
  788. package/src/apps/management/routes/api-keys.test.ts +269 -7
  789. package/src/apps/management/routes/api-keys.ts +61 -20
  790. package/src/apps/management/routes/billing.test.ts +477 -15
  791. package/src/apps/management/routes/billing.ts +377 -50
  792. package/src/apps/management/routes/faucet.test.ts +1 -1
  793. package/src/apps/management/routes/faucet.ts +1 -1
  794. package/src/apps/management/routes/invitations.test.ts +270 -3
  795. package/src/apps/management/routes/invitations.ts +185 -15
  796. package/src/apps/management/routes/invoicePreview.test.ts +549 -0
  797. package/src/apps/management/routes/me.test.ts +246 -5
  798. package/src/apps/management/routes/me.ts +7 -2
  799. package/src/apps/management/routes/members.test.ts +108 -0
  800. package/src/apps/management/routes/orgs.test.ts +191 -3
  801. package/src/apps/management/routes/orgs.ts +58 -11
  802. package/src/apps/management/routes/projects.test.ts +33 -3
  803. package/src/apps/management/routes/projects.ts +6 -1
  804. package/src/apps/management/routes/scopes.test.ts +30 -2
  805. package/src/apps/management/routes/scopes.ts +4 -1
  806. package/src/apps/management/routes/usage.test.ts +32 -0
  807. package/src/apps/management/routes/usage.ts +22 -4
  808. package/src/apps/management/routes/verified-token-requests.test.ts +16 -2
  809. package/src/apps/management/routes/verified-token-requests.ts +7 -10
  810. package/src/apps/management/routes/webhooks.test.ts +49 -26
  811. package/src/apps/management/routes/webhooks.ts +78 -22
  812. package/src/apps/mcp.test.ts +113 -30
  813. package/src/apps/mcp.ts +22 -10
  814. package/src/apps/mpp/App.ts +37 -7
  815. package/src/apps/mpp/Mpp.test.ts +49 -8
  816. package/src/apps/mpp/Mpp.zone.test.ts +219 -0
  817. package/src/apps/mpp/internal/Adapter.ts +34 -0
  818. package/src/apps/mpp/internal/Policy.test.ts +86 -31
  819. package/src/apps/mpp/internal/Policy.ts +49 -7
  820. package/src/apps/mpp/internal/Sponsorship.test.ts +207 -0
  821. package/src/apps/mpp/internal/Sponsorship.ts +9 -3
  822. package/src/apps/relay/App.test.ts +839 -64
  823. package/src/apps/relay/App.ts +148 -81
  824. package/src/apps/relay/App.zone-billing.test.ts +257 -0
  825. package/src/apps/relay/Sponsorships.test.ts +67 -4
  826. package/src/apps/relay/Sponsorships.ts +233 -32
  827. package/src/apps/relay/Sponsorships.zone.test.ts +102 -0
  828. package/src/apps/{funding → routes}/Access.ts +6 -6
  829. package/src/apps/routes/App.test.ts +165 -0
  830. package/src/apps/routes/App.ts +96 -0
  831. package/src/apps/{funding → routes}/Inventory.ts +2 -2
  832. package/src/apps/routes/index.ts +1 -0
  833. package/src/apps/{funding → routes}/routes/chains.test.ts +66 -66
  834. package/src/apps/{funding → routes}/routes/chains.ts +23 -23
  835. package/src/apps/{funding → routes}/routes/deposit-addresses.test.ts +1358 -458
  836. package/src/apps/{funding → routes}/routes/deposit-addresses.ts +566 -246
  837. package/src/apps/{funding → routes}/routes/providers.test.ts +27 -33
  838. package/src/apps/{funding → routes}/routes/providers.ts +23 -23
  839. package/src/apps/{funding → routes}/routes/quotes.test.ts +298 -41
  840. package/src/apps/{funding → routes}/routes/quotes.ts +57 -40
  841. package/src/apps/{funding → routes}/routes/transfers.test.ts +1100 -353
  842. package/src/apps/routes/routes/transfers.ts +1332 -0
  843. package/src/cli/Cli.test.ts +1 -1
  844. package/src/cli/commands/admin.test.ts +748 -1
  845. package/src/cli/commands/admin.ts +278 -0
  846. package/src/cloudflare.ts +52 -47
  847. package/src/db/Db.test.ts +245 -2
  848. package/src/db/Db.ts +1485 -34
  849. package/src/db/Schema.ts +729 -228
  850. package/src/db/tables/apiKeyAdmissionBootstraps.ts +4 -0
  851. package/src/db/tables/apiKeyAdmissions.ts +218 -0
  852. package/src/db/tables/apiKeyOwnerAdmissions.ts +4 -0
  853. package/src/db/tables/apiKeyOwnerTombstones.ts +81 -0
  854. package/src/db/tables/apiKeyRevocations.test.ts +74 -0
  855. package/src/db/tables/apiKeyRevocations.ts +121 -0
  856. package/src/db/tables/authAccounts.ts +105 -0
  857. package/src/db/tables/authSessions.ts +13 -0
  858. package/src/db/tables/authVerifications.ts +13 -0
  859. package/src/db/tables/invitations.ts +142 -45
  860. package/src/db/tables/memberships.ts +79 -3
  861. package/src/db/tables/organizations.test.ts +690 -13
  862. package/src/db/tables/organizations.ts +139 -55
  863. package/src/db/tables/projects.test.ts +16 -0
  864. package/src/db/tables/projects.ts +13 -3
  865. package/src/db/tables/requestUsage.ts +4 -1
  866. package/src/db/tables/rewardAccounts.ts +178 -0
  867. package/src/db/tables/rewardCampaignDistributors.ts +68 -0
  868. package/src/db/tables/rewardCampaigns.test.ts +1388 -0
  869. package/src/db/tables/rewardCampaigns.ts +647 -0
  870. package/src/db/tables/rewardCredits.ts +110 -0
  871. package/src/db/tables/rewardEligibilityAssociations.test.ts +271 -0
  872. package/src/db/tables/rewardEligibilityAssociations.ts +184 -0
  873. package/src/db/tables/rewardRuns.ts +514 -0
  874. package/src/db/tables/rewardTransactionAttempts.ts +272 -0
  875. package/src/db/tables/routesCatalog.test.ts +185 -0
  876. package/src/db/tables/routesCatalog.ts +163 -0
  877. package/src/db/tables/routesDepositAddresses.test.ts +1048 -0
  878. package/src/db/tables/routesDepositAddresses.ts +1008 -0
  879. package/src/db/tables/{fundingDepositRequestObservations.test.ts → routesDepositRequestObservations.test.ts} +13 -14
  880. package/src/db/tables/{fundingDepositRequestObservations.ts → routesDepositRequestObservations.ts} +10 -10
  881. package/src/db/tables/{fundingDeposits.test.ts → routesDeposits.test.ts} +388 -46
  882. package/src/db/tables/routesDeposits.ts +1062 -0
  883. package/src/db/tables/routesIdempotency.test.ts +796 -0
  884. package/src/db/tables/routesIdempotency.ts +496 -0
  885. package/src/db/tables/routesSubsidies.test.ts +120 -0
  886. package/src/db/tables/routesSubsidies.ts +71 -0
  887. package/src/db/tables/{fundingTransferEvents.ts → routesTransferEvents.ts} +4 -4
  888. package/src/db/tables/routesTransferSubsidies.ts +38 -0
  889. package/src/db/tables/routesTransferSubsidyNonces.ts +124 -0
  890. package/src/db/tables/routesTransferTransactions.test.ts +195 -0
  891. package/src/db/tables/{fundingTransferTransactions.ts → routesTransferTransactions.ts} +63 -18
  892. package/src/db/tables/routesTransfers.test.ts +338 -0
  893. package/src/db/tables/routesTransfers.ts +662 -0
  894. package/src/db/tables/sponsoredTransactions.test.ts +269 -45
  895. package/src/db/tables/sponsoredTransactions.ts +225 -65
  896. package/src/db/tables/sponsorshipAttributions.test.ts +160 -0
  897. package/src/db/tables/sponsorshipAttributions.ts +168 -0
  898. package/src/db/tables/sponsorshipReconciliationCursors.test.ts +115 -0
  899. package/src/db/tables/sponsorshipReconciliationCursors.ts +67 -0
  900. package/src/db/tables/stripeCustomers.test.ts +85 -0
  901. package/src/db/tables/stripeCustomers.ts +24 -0
  902. package/src/db/tables/users.test.ts +129 -0
  903. package/src/db/tables/users.ts +49 -3
  904. package/src/db/tables/verifiedTokenRequests.test.ts +39 -20
  905. package/src/db/tables/verifiedTokenRequests.ts +80 -44
  906. package/src/db/tables/webhookQueueEvents.ts +8 -1
  907. package/src/db/tables/webhookSubscriptions.ts +95 -20
  908. package/src/handlers/internal/executionError.ts +3 -4
  909. package/src/handlers/internal/multisig.ts +13 -816
  910. package/src/handlers/internal/sponsorship.ts +26 -10
  911. package/src/handlers/relay.test-d.ts +9 -1
  912. package/src/handlers/relay.test.ts +823 -3
  913. package/src/handlers/relay.ts +127 -107
  914. package/src/index.test-d.ts +7 -0
  915. package/src/index.ts +0 -17
  916. package/src/internal/AssetResponse.ts +26 -0
  917. package/src/internal/Auth.test.ts +1656 -9
  918. package/src/internal/Auth.ts +880 -244
  919. package/src/internal/BetterAuth.test.ts +242 -0
  920. package/src/internal/BetterAuth.ts +349 -0
  921. package/src/internal/Cache.ts +2 -0
  922. package/src/internal/EarnRates.test.ts +17 -0
  923. package/src/internal/EarnRates.ts +124 -31
  924. package/src/internal/EarnSharePrices.test.ts +182 -0
  925. package/src/internal/EarnSharePrices.ts +313 -0
  926. package/src/internal/EarnVaults.test.ts +21 -0
  927. package/src/internal/EarnVaults.ts +33 -11
  928. package/src/internal/Email.ts +54 -0
  929. package/src/internal/Idempotency.test.ts +2 -2
  930. package/src/internal/Log.test-d.ts +8 -7
  931. package/src/internal/Log.test.ts +114 -16
  932. package/src/internal/Log.ts +53 -40
  933. package/src/internal/MetricSink.test.ts +313 -26
  934. package/src/internal/MetricSink.ts +73 -8
  935. package/src/internal/Mpp.test.ts +31 -0
  936. package/src/internal/Mpp.ts +21 -24
  937. package/src/internal/OpenApi.ts +45 -12
  938. package/src/internal/Provider.test.ts +1 -1
  939. package/src/internal/Provider.ts +1 -1
  940. package/src/internal/RateLimit.test.ts +21 -3
  941. package/src/internal/RateLimit.ts +12 -1
  942. package/src/internal/Store.test-d.ts +1 -1
  943. package/src/internal/Store.test.ts +151 -8
  944. package/src/internal/Store.ts +76 -9
  945. package/src/internal/Tidx.test.ts +59 -8
  946. package/src/internal/Tidx.ts +86 -14
  947. package/src/internal/Timing.test.ts +77 -0
  948. package/src/internal/Timing.ts +83 -6
  949. package/src/internal/VercelOidc.test.ts +188 -0
  950. package/src/internal/VercelOidc.ts +193 -0
  951. package/src/internal/VerifiedTokens.test.ts +60 -6
  952. package/src/internal/VerifiedTokens.ts +21 -24
  953. package/src/internal/Viem.batch.test.ts +80 -0
  954. package/src/internal/Viem.test.ts +201 -2
  955. package/src/internal/Viem.ts +221 -25
  956. package/src/internal/Webhooks.test.ts +85 -6
  957. package/src/internal/Webhooks.ts +22 -4
  958. package/src/internal/ZoneRpc.ts +50 -0
  959. package/src/internal/exchange/Provider.test.ts +2 -2
  960. package/src/internal/index.test.ts +3 -1
  961. package/src/internal/index.ts +3 -1
  962. package/src/internal/rewards/Audit.ts +231 -0
  963. package/src/internal/rewards/Campaigns.test.ts +1234 -0
  964. package/src/internal/rewards/Campaigns.ts +1205 -0
  965. package/src/internal/rewards/Credits.ts +165 -0
  966. package/src/internal/rewards/Events.local.test.ts +113 -0
  967. package/src/internal/rewards/Events.test.ts +152 -0
  968. package/src/internal/rewards/Events.ts +468 -0
  969. package/src/internal/rewards/Projection.test.ts +681 -0
  970. package/src/internal/rewards/Projection.ts +987 -0
  971. package/src/internal/rewards/Rates.test.ts +171 -0
  972. package/src/internal/rewards/Rates.ts +110 -0
  973. package/src/internal/rewards/Read.test.ts +501 -0
  974. package/src/internal/rewards/Read.ts +476 -0
  975. package/src/internal/rewards/Runner.checkpoint.test.ts +80 -0
  976. package/src/internal/rewards/Runner.states.test.ts +188 -0
  977. package/src/internal/rewards/Runner.test.ts +90 -0
  978. package/src/internal/rewards/Runner.ts +2229 -0
  979. package/src/internal/rewards/Signer.test.ts +79 -0
  980. package/src/internal/rewards/Signer.ts +180 -0
  981. package/src/internal/rewards/index.ts +14 -0
  982. package/src/internal/{funding → routes}/Action.test.ts +63 -14
  983. package/src/internal/{funding → routes}/Action.ts +35 -8
  984. package/src/internal/{funding → routes}/Catalog.test.ts +3 -3
  985. package/src/internal/{funding → routes}/Catalog.ts +39 -39
  986. package/src/internal/{funding → routes}/Chain.test.ts +1 -1
  987. package/src/internal/{funding → routes}/Chain.ts +11 -11
  988. package/src/internal/{funding → routes}/Deposit.test.ts +1 -1
  989. package/src/internal/{funding → routes}/Deposit.ts +93 -45
  990. package/src/internal/{funding → routes}/DepositAddress.test.ts +11 -3
  991. package/src/internal/{funding → routes}/DepositAddress.ts +132 -53
  992. package/src/internal/{funding → routes}/DepositWebhook.test.ts +61 -18
  993. package/src/internal/{funding → routes}/DepositWebhook.ts +9 -9
  994. package/src/internal/routes/Economics.test.ts +42 -0
  995. package/src/internal/routes/Economics.ts +47 -0
  996. package/src/internal/{funding → routes}/Evidence.test.ts +6 -6
  997. package/src/internal/{funding → routes}/Evidence.ts +9 -9
  998. package/src/internal/routes/Observability.test.ts +636 -0
  999. package/src/internal/routes/Observability.ts +668 -0
  1000. package/src/internal/{funding → routes}/Provider.test.ts +489 -153
  1001. package/src/internal/{funding → routes}/Provider.ts +489 -186
  1002. package/src/internal/{funding → routes}/Reconciliation.local.test.ts +84 -12
  1003. package/src/internal/{funding → routes}/Reconciliation.test.ts +1213 -279
  1004. package/src/internal/{funding → routes}/Reconciliation.ts +501 -203
  1005. package/src/internal/routes/Reconciliation.unattributed.test.ts +250 -0
  1006. package/src/internal/{funding → routes}/Route.ts +7 -7
  1007. package/src/internal/{funding → routes}/SourceObservation.test.ts +13 -14
  1008. package/src/internal/{funding → routes}/SourceObservation.ts +13 -13
  1009. package/src/internal/{funding → routes}/Subsidy.local.test.ts +7 -7
  1010. package/src/internal/routes/Subsidy.test.ts +169 -0
  1011. package/src/internal/{funding → routes}/Subsidy.ts +86 -6
  1012. package/src/internal/{funding → routes}/Token.test.ts +1 -1
  1013. package/src/internal/{funding → routes}/Token.ts +5 -5
  1014. package/src/internal/routes/Transfer.test.ts +1199 -0
  1015. package/src/internal/routes/Transfer.ts +1206 -0
  1016. package/src/internal/routes/TransferReconciliation.test.ts +731 -0
  1017. package/src/internal/routes/TransferReconciliation.ts +527 -0
  1018. package/src/internal/routes/TransferSubsidy.test.ts +172 -0
  1019. package/src/internal/routes/TransferSubsidy.ts +447 -0
  1020. package/src/internal/{funding → routes}/TransferWebhook.test.ts +13 -13
  1021. package/src/internal/{funding → routes}/TransferWebhook.ts +7 -7
  1022. package/src/internal/{funding → routes}/index.test.ts +5 -3
  1023. package/src/internal/{funding → routes}/index.ts +2 -0
  1024. package/src/internal/{funding → routes}/providers/across.ts +16 -16
  1025. package/src/internal/{funding → routes}/providers/index.test.ts +157 -44
  1026. package/src/internal/{funding → routes}/providers/relay.test.ts +224 -32
  1027. package/src/internal/{funding → routes}/providers/relay.ts +228 -121
  1028. package/src/internal/{funding → routes}/providers/rhino.ts +16 -16
  1029. package/src/internal/{funding → routes}/providers/squid.ts +17 -17
  1030. package/src/internal/routes/providers/stargate.test.ts +728 -0
  1031. package/src/internal/routes/providers/stargate.ts +1276 -0
  1032. package/src/internal/{funding → routes}/providers/symbiosis.ts +64 -24
  1033. package/src/internal/webhookDestinations/slack.ts +10 -10
  1034. package/src/providers/index.ts +13 -13
  1035. package/src/server.ts +18 -0
  1036. package/dist/apps/funding/Access.d.ts.map +0 -1
  1037. package/dist/apps/funding/Access.js.map +0 -1
  1038. package/dist/apps/funding/App.js.map +0 -1
  1039. package/dist/apps/funding/Inventory.d.ts.map +0 -1
  1040. package/dist/apps/funding/Inventory.js.map +0 -1
  1041. package/dist/apps/funding/ProviderAttempts.d.ts +0 -5
  1042. package/dist/apps/funding/ProviderAttempts.d.ts.map +0 -1
  1043. package/dist/apps/funding/ProviderAttempts.js +0 -24
  1044. package/dist/apps/funding/ProviderAttempts.js.map +0 -1
  1045. package/dist/apps/funding/index.d.ts +0 -2
  1046. package/dist/apps/funding/index.d.ts.map +0 -1
  1047. package/dist/apps/funding/index.js +0 -2
  1048. package/dist/apps/funding/index.js.map +0 -1
  1049. package/dist/apps/funding/routes/chains.d.ts.map +0 -1
  1050. package/dist/apps/funding/routes/chains.js.map +0 -1
  1051. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +0 -1
  1052. package/dist/apps/funding/routes/deposit-addresses.js.map +0 -1
  1053. package/dist/apps/funding/routes/providers.d.ts.map +0 -1
  1054. package/dist/apps/funding/routes/providers.js +0 -57
  1055. package/dist/apps/funding/routes/providers.js.map +0 -1
  1056. package/dist/apps/funding/routes/quotes.d.ts.map +0 -1
  1057. package/dist/apps/funding/routes/quotes.js.map +0 -1
  1058. package/dist/apps/funding/routes/transfers.d.ts.map +0 -1
  1059. package/dist/apps/funding/routes/transfers.js +0 -828
  1060. package/dist/apps/funding/routes/transfers.js.map +0 -1
  1061. package/dist/db/tables/fundingCatalog.d.ts +0 -58
  1062. package/dist/db/tables/fundingCatalog.d.ts.map +0 -1
  1063. package/dist/db/tables/fundingCatalog.js.map +0 -1
  1064. package/dist/db/tables/fundingDepositAddresses.d.ts +0 -192
  1065. package/dist/db/tables/fundingDepositAddresses.d.ts.map +0 -1
  1066. package/dist/db/tables/fundingDepositAddresses.js +0 -235
  1067. package/dist/db/tables/fundingDepositAddresses.js.map +0 -1
  1068. package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +0 -1
  1069. package/dist/db/tables/fundingDepositRequestObservations.js.map +0 -1
  1070. package/dist/db/tables/fundingDeposits.d.ts.map +0 -1
  1071. package/dist/db/tables/fundingDeposits.js +0 -295
  1072. package/dist/db/tables/fundingDeposits.js.map +0 -1
  1073. package/dist/db/tables/fundingIdempotency.d.ts +0 -91
  1074. package/dist/db/tables/fundingIdempotency.d.ts.map +0 -1
  1075. package/dist/db/tables/fundingIdempotency.js +0 -103
  1076. package/dist/db/tables/fundingIdempotency.js.map +0 -1
  1077. package/dist/db/tables/fundingTransferEvents.d.ts.map +0 -1
  1078. package/dist/db/tables/fundingTransferEvents.js.map +0 -1
  1079. package/dist/db/tables/fundingTransferTransactions.d.ts +0 -53
  1080. package/dist/db/tables/fundingTransferTransactions.d.ts.map +0 -1
  1081. package/dist/db/tables/fundingTransferTransactions.js.map +0 -1
  1082. package/dist/db/tables/fundingTransfers.d.ts +0 -99
  1083. package/dist/db/tables/fundingTransfers.d.ts.map +0 -1
  1084. package/dist/db/tables/fundingTransfers.js +0 -110
  1085. package/dist/db/tables/fundingTransfers.js.map +0 -1
  1086. package/dist/internal/funding/Action.d.ts.map +0 -1
  1087. package/dist/internal/funding/Action.js.map +0 -1
  1088. package/dist/internal/funding/Catalog.d.ts.map +0 -1
  1089. package/dist/internal/funding/Catalog.js.map +0 -1
  1090. package/dist/internal/funding/Chain.d.ts.map +0 -1
  1091. package/dist/internal/funding/Chain.js.map +0 -1
  1092. package/dist/internal/funding/Deposit.d.ts.map +0 -1
  1093. package/dist/internal/funding/Deposit.js.map +0 -1
  1094. package/dist/internal/funding/DepositAddress.d.ts.map +0 -1
  1095. package/dist/internal/funding/DepositAddress.js.map +0 -1
  1096. package/dist/internal/funding/DepositWebhook.d.ts.map +0 -1
  1097. package/dist/internal/funding/DepositWebhook.js.map +0 -1
  1098. package/dist/internal/funding/Evidence.d.ts.map +0 -1
  1099. package/dist/internal/funding/Evidence.js.map +0 -1
  1100. package/dist/internal/funding/Provider.d.ts.map +0 -1
  1101. package/dist/internal/funding/Provider.js.map +0 -1
  1102. package/dist/internal/funding/Reconciliation.d.ts.map +0 -1
  1103. package/dist/internal/funding/Reconciliation.js.map +0 -1
  1104. package/dist/internal/funding/Route.d.ts +0 -21
  1105. package/dist/internal/funding/Route.d.ts.map +0 -1
  1106. package/dist/internal/funding/Route.js.map +0 -1
  1107. package/dist/internal/funding/SourceObservation.d.ts.map +0 -1
  1108. package/dist/internal/funding/SourceObservation.js.map +0 -1
  1109. package/dist/internal/funding/Subsidy.d.ts.map +0 -1
  1110. package/dist/internal/funding/Subsidy.js.map +0 -1
  1111. package/dist/internal/funding/Token.d.ts.map +0 -1
  1112. package/dist/internal/funding/Token.js.map +0 -1
  1113. package/dist/internal/funding/Transfer.d.ts.map +0 -1
  1114. package/dist/internal/funding/Transfer.js +0 -462
  1115. package/dist/internal/funding/Transfer.js.map +0 -1
  1116. package/dist/internal/funding/TransferReconciliation.d.ts.map +0 -1
  1117. package/dist/internal/funding/TransferReconciliation.js +0 -192
  1118. package/dist/internal/funding/TransferReconciliation.js.map +0 -1
  1119. package/dist/internal/funding/TransferWebhook.d.ts.map +0 -1
  1120. package/dist/internal/funding/TransferWebhook.js.map +0 -1
  1121. package/dist/internal/funding/index.d.ts.map +0 -1
  1122. package/dist/internal/funding/index.js.map +0 -1
  1123. package/dist/internal/funding/providers/across.d.ts.map +0 -1
  1124. package/dist/internal/funding/providers/across.js.map +0 -1
  1125. package/dist/internal/funding/providers/relay.d.ts.map +0 -1
  1126. package/dist/internal/funding/providers/relay.js.map +0 -1
  1127. package/dist/internal/funding/providers/rhino.d.ts.map +0 -1
  1128. package/dist/internal/funding/providers/rhino.js.map +0 -1
  1129. package/dist/internal/funding/providers/squid.d.ts.map +0 -1
  1130. package/dist/internal/funding/providers/squid.js.map +0 -1
  1131. package/dist/internal/funding/providers/stargate.d.ts.map +0 -1
  1132. package/dist/internal/funding/providers/stargate.js +0 -579
  1133. package/dist/internal/funding/providers/stargate.js.map +0 -1
  1134. package/dist/internal/funding/providers/symbiosis.d.ts.map +0 -1
  1135. package/dist/internal/funding/providers/symbiosis.js.map +0 -1
  1136. package/src/apps/funding/App.test.ts +0 -78
  1137. package/src/apps/funding/App.ts +0 -88
  1138. package/src/apps/funding/ProviderAttempts.ts +0 -26
  1139. package/src/apps/funding/index.ts +0 -1
  1140. package/src/apps/funding/routes/transfers.ts +0 -987
  1141. package/src/db/tables/fundingCatalog.test.ts +0 -122
  1142. package/src/db/tables/fundingCatalog.ts +0 -163
  1143. package/src/db/tables/fundingDepositAddresses.test.ts +0 -608
  1144. package/src/db/tables/fundingDepositAddresses.ts +0 -443
  1145. package/src/db/tables/fundingDeposits.ts +0 -572
  1146. package/src/db/tables/fundingIdempotency.test.ts +0 -182
  1147. package/src/db/tables/fundingIdempotency.ts +0 -180
  1148. package/src/db/tables/fundingTransferTransactions.test.ts +0 -112
  1149. package/src/db/tables/fundingTransfers.test.ts +0 -115
  1150. package/src/db/tables/fundingTransfers.ts +0 -189
  1151. package/src/handlers/internal/multisig.test.ts +0 -818
  1152. package/src/internal/funding/Subsidy.test.ts +0 -75
  1153. package/src/internal/funding/Transfer.test.ts +0 -524
  1154. package/src/internal/funding/Transfer.ts +0 -762
  1155. package/src/internal/funding/TransferReconciliation.test.ts +0 -147
  1156. package/src/internal/funding/TransferReconciliation.ts +0 -264
  1157. package/src/internal/funding/providers/stargate.test.ts +0 -328
  1158. package/src/internal/funding/providers/stargate.ts +0 -856
  1159. /package/dist/apps/{funding → routes}/Inventory.d.ts +0 -0
  1160. /package/src/internal/{funding → routes}/Route.test.ts +0 -0
@@ -14,9 +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
- "funding:transfer.updated": "funding:transfer.updated";
19
17
  "log:emitted": "log:emitted";
18
+ "routes:deposit.updated": "routes:deposit.updated";
19
+ "routes:transfer.updated": "routes:transfer.updated";
20
20
  "token:transfer": "token:transfer";
21
21
  "transaction:included": "transaction:included";
22
22
  }>;
@@ -55,7 +55,7 @@ export declare namespace schema {
55
55
  error: z.ZodMiniOptional<z.ZodMiniString<string>>;
56
56
  eventId: z.ZodMiniString<string>;
57
57
  id: z.ZodMiniString<string>;
58
- requestUrl: z.ZodMiniString<string>;
58
+ requestUrl: z.ZodMiniURL;
59
59
  responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
60
60
  responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
61
61
  status: z.ZodMiniEnum<{
@@ -68,11 +68,7 @@ export declare namespace schema {
68
68
  /** Schemas for creating an organization webhook. */
69
69
  namespace createWebhook {
70
70
  /** Organization webhook creation requires an explicit network. */
71
- const Body: z.ZodMiniIntersection<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
72
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
73
- mainnet: "mainnet";
74
- testnet: "testnet";
75
- }>, 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<{
76
72
  context: z.ZodMiniOptional<z.ZodMiniObject<{
77
73
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
78
74
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -96,11 +92,12 @@ export declare namespace schema {
96
92
  sender: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
97
93
  token: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
98
94
  }, z.core.$strip>>;
95
+ chainId: z.ZodMiniNumber<number>;
96
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
97
+ production: "production";
98
+ sandbox: "sandbox";
99
+ }>>;
99
100
  }, z.core.$strip>, z.ZodMiniObject<{
100
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
101
- mainnet: "mainnet";
102
- testnet: "testnet";
103
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
104
101
  context: z.ZodMiniOptional<z.ZodMiniObject<{
105
102
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
106
103
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -256,11 +253,12 @@ export declare namespace schema {
256
253
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
257
254
  }, z.core.$strict>]>>;
258
255
  }, z.core.$strict>>;
256
+ chainId: z.ZodMiniNumber<number>;
257
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
258
+ production: "production";
259
+ sandbox: "sandbox";
260
+ }>>;
259
261
  }, z.core.$strip>, z.ZodMiniObject<{
260
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
261
- mainnet: "mainnet";
262
- testnet: "testnet";
263
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
264
262
  context: z.ZodMiniOptional<z.ZodMiniObject<{
265
263
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
266
264
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -324,11 +322,12 @@ export declare namespace schema {
324
322
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
325
323
  }, z.core.$strict>]>>;
326
324
  }, z.core.$strict>;
325
+ chainId: z.ZodMiniNumber<number>;
326
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
327
+ production: "production";
328
+ sandbox: "sandbox";
329
+ }>>;
327
330
  }, z.core.$strip>, z.ZodMiniObject<{
328
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
329
- mainnet: "mainnet";
330
- testnet: "testnet";
331
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
332
331
  context: z.ZodMiniOptional<z.ZodMiniObject<{
333
332
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
334
333
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -390,11 +389,12 @@ export declare namespace schema {
390
389
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
391
390
  }, z.core.$strict>]>>;
392
391
  }, z.core.$strict>>;
392
+ chainId: z.ZodMiniNumber<number>;
393
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
394
+ production: "production";
395
+ sandbox: "sandbox";
396
+ }>>;
393
397
  }, z.core.$strip>, z.ZodMiniObject<{
394
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
395
- mainnet: "mainnet";
396
- testnet: "testnet";
397
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
398
398
  context: z.ZodMiniOptional<z.ZodMiniObject<{
399
399
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
400
400
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -411,7 +411,7 @@ export declare namespace schema {
411
411
  type: z.ZodMiniLiteral<"betterstack">;
412
412
  url: z.ZodMiniURL;
413
413
  }, z.core.$strip>], "type">;
414
- eventType: z.ZodMiniLiteral<"funding:deposit.updated">;
414
+ eventType: z.ZodMiniLiteral<"routes:deposit.updated">;
415
415
  filters: z.ZodMiniOptional<z.ZodMiniObject<{
416
416
  depositAddressId: z.ZodMiniOptional<z.ZodMiniString<string>>;
417
417
  recipient: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
@@ -425,11 +425,12 @@ export declare namespace schema {
425
425
  settling: "settling";
426
426
  }>>;
427
427
  }, z.core.$strict>>;
428
+ chainId: z.ZodMiniNumber<number>;
429
+ environment: z.ZodMiniEnum<{
430
+ production: "production";
431
+ sandbox: "sandbox";
432
+ }>;
428
433
  }, z.core.$strip>, z.ZodMiniObject<{
429
- chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
430
- mainnet: "mainnet";
431
- testnet: "testnet";
432
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
433
434
  context: z.ZodMiniOptional<z.ZodMiniObject<{
434
435
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
435
436
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -446,7 +447,7 @@ export declare namespace schema {
446
447
  type: z.ZodMiniLiteral<"betterstack">;
447
448
  url: z.ZodMiniURL;
448
449
  }, z.core.$strip>], "type">;
449
- eventType: z.ZodMiniLiteral<"funding:transfer.updated">;
450
+ eventType: z.ZodMiniLiteral<"routes:transfer.updated">;
450
451
  filters: z.ZodMiniOptional<z.ZodMiniObject<{
451
452
  id: z.ZodMiniOptional<z.ZodMiniString<string>>;
452
453
  status: z.ZodMiniOptional<z.ZodMiniEnum<{
@@ -459,13 +460,12 @@ export declare namespace schema {
459
460
  refunding: "refunding";
460
461
  }>>;
461
462
  }, z.core.$strict>>;
462
- }, z.core.$strip>], "eventType">, z.ZodMiniObject<{
463
463
  chainId: z.ZodMiniNumber<number>;
464
- environment: z.ZodMiniOptional<z.ZodMiniEnum<{
464
+ environment: z.ZodMiniEnum<{
465
465
  production: "production";
466
466
  sandbox: "sandbox";
467
- }>>;
468
- }, z.core.$strip>>;
467
+ }>;
468
+ }, z.core.$strip>], "eventType">;
469
469
  /** Created webhook with transport credentials redacted. */
470
470
  const Response: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
471
471
  chainId: z.ZodMiniNumber<number>;
@@ -476,9 +476,9 @@ export declare namespace schema {
476
476
  }>>;
477
477
  eventType: z.ZodMiniEnum<{
478
478
  "block:created": "block:created";
479
- "funding:deposit.updated": "funding:deposit.updated";
480
- "funding:transfer.updated": "funding:transfer.updated";
481
479
  "log:emitted": "log:emitted";
480
+ "routes:deposit.updated": "routes:deposit.updated";
481
+ "routes:transfer.updated": "routes:transfer.updated";
482
482
  "token:transfer": "token:transfer";
483
483
  "transaction:included": "transaction:included";
484
484
  }>;
@@ -512,9 +512,9 @@ export declare namespace schema {
512
512
  }>>;
513
513
  eventType: z.ZodMiniEnum<{
514
514
  "block:created": "block:created";
515
- "funding:deposit.updated": "funding:deposit.updated";
516
- "funding:transfer.updated": "funding:transfer.updated";
517
515
  "log:emitted": "log:emitted";
516
+ "routes:deposit.updated": "routes:deposit.updated";
517
+ "routes:transfer.updated": "routes:transfer.updated";
518
518
  "token:transfer": "token:transfer";
519
519
  "transaction:included": "transaction:included";
520
520
  }>;
@@ -547,9 +547,9 @@ export declare namespace schema {
547
547
  }>>;
548
548
  eventType: z.ZodMiniEnum<{
549
549
  "block:created": "block:created";
550
- "funding:deposit.updated": "funding:deposit.updated";
551
- "funding:transfer.updated": "funding:transfer.updated";
552
550
  "log:emitted": "log:emitted";
551
+ "routes:deposit.updated": "routes:deposit.updated";
552
+ "routes:transfer.updated": "routes:transfer.updated";
553
553
  "token:transfer": "token:transfer";
554
554
  "transaction:included": "transaction:included";
555
555
  }>;
@@ -606,7 +606,7 @@ export declare namespace schema {
606
606
  error: z.ZodMiniOptional<z.ZodMiniString<string>>;
607
607
  eventId: z.ZodMiniString<string>;
608
608
  id: z.ZodMiniString<string>;
609
- requestUrl: z.ZodMiniString<string>;
609
+ requestUrl: z.ZodMiniURL;
610
610
  responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
611
611
  responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
612
612
  status: z.ZodMiniEnum<{
@@ -636,7 +636,7 @@ export declare namespace schema {
636
636
  error: z.ZodMiniOptional<z.ZodMiniString<string>>;
637
637
  eventId: z.ZodMiniString<string>;
638
638
  id: z.ZodMiniString<string>;
639
- requestUrl: z.ZodMiniString<string>;
639
+ requestUrl: z.ZodMiniURL;
640
640
  responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
641
641
  responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
642
642
  status: z.ZodMiniEnum<{
@@ -951,10 +951,14 @@ export declare namespace schema {
951
951
  }>;
952
952
  statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
953
953
  code: z.ZodMiniEnum<{
954
+ billing_past_due: "billing_past_due";
955
+ billing_required: "billing_required";
954
956
  delivery_failed: "delivery_failed";
955
957
  delivery_liquidity_unavailable: "delivery_liquidity_unavailable";
956
958
  manual_recovery_required: "manual_recovery_required";
957
959
  refund_failed: "refund_failed";
960
+ routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
961
+ routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
958
962
  source_amount_not_supported: "source_amount_not_supported";
959
963
  source_token_mismatch: "source_token_mismatch";
960
964
  subsidy_balance_unavailable: "subsidy_balance_unavailable";
@@ -964,7 +968,7 @@ export declare namespace schema {
964
968
  }, z.core.$strip>>;
965
969
  updatedAt: z.ZodMiniISODateTime;
966
970
  }, z.core.$strip>;
967
- type: z.ZodMiniLiteral<"funding:deposit.updated">;
971
+ type: z.ZodMiniLiteral<"routes:deposit.updated">;
968
972
  }, z.core.$strip>, z.ZodMiniObject<{
969
973
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
970
974
  mainnet: "mainnet";
@@ -992,6 +996,12 @@ export declare namespace schema {
992
996
  decimals: z.ZodMiniNumber<number>;
993
997
  formatted: z.ZodMiniString<string>;
994
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>>;
995
1005
  destinationChain: z.ZodMiniObject<{
996
1006
  addressFormat: z.ZodMiniEnum<{
997
1007
  base58: "base58";
@@ -1106,6 +1116,7 @@ export declare namespace schema {
1106
1116
  verified: z.ZodMiniBoolean<boolean>;
1107
1117
  }, z.core.$strip>;
1108
1118
  sourceTransactionHashes: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
1119
+ subsidize: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
1109
1120
  status: z.ZodMiniEnum<{
1110
1121
  "action-required": "action-required";
1111
1122
  "awaiting-source": "awaiting-source";
@@ -1117,21 +1128,27 @@ export declare namespace schema {
1117
1128
  }>;
1118
1129
  statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
1119
1130
  code: z.ZodMiniEnum<{
1131
+ billing_past_due: "billing_past_due";
1132
+ billing_required: "billing_required";
1120
1133
  destination_amount_below_minimum: "destination_amount_below_minimum";
1121
1134
  destination_recovered: "destination_recovered";
1122
1135
  manual_recovery_required: "manual_recovery_required";
1123
1136
  refund_failed: "refund_failed";
1137
+ routes_subsidy_limit_exceeded: "routes_subsidy_limit_exceeded";
1138
+ routes_subsidy_not_enabled: "routes_subsidy_not_enabled";
1124
1139
  source_amount_above_maximum: "source_amount_above_maximum";
1125
1140
  source_amount_below_minimum: "source_amount_below_minimum";
1126
1141
  source_chain_mismatch: "source_chain_mismatch";
1127
1142
  source_token_mismatch: "source_token_mismatch";
1143
+ subsidy_balance_unavailable: "subsidy_balance_unavailable";
1144
+ subsidy_failed: "subsidy_failed";
1128
1145
  }>;
1129
1146
  message: z.ZodMiniString<string>;
1130
1147
  }, z.core.$strip>>;
1131
1148
  updatedAt: z.ZodMiniISODateTime;
1132
1149
  version: z.ZodMiniNumber<number>;
1133
1150
  }, z.core.$strip>;
1134
- type: z.ZodMiniLiteral<"funding:transfer.updated">;
1151
+ type: z.ZodMiniLiteral<"routes:transfer.updated">;
1135
1152
  }, z.core.$strip>, z.ZodMiniObject<{
1136
1153
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
1137
1154
  mainnet: "mainnet";
@@ -1178,9 +1195,9 @@ export declare namespace schema {
1178
1195
  }>>;
1179
1196
  eventType: z.ZodMiniEnum<{
1180
1197
  "block:created": "block:created";
1181
- "funding:deposit.updated": "funding:deposit.updated";
1182
- "funding:transfer.updated": "funding:transfer.updated";
1183
1198
  "log:emitted": "log:emitted";
1199
+ "routes:deposit.updated": "routes:deposit.updated";
1200
+ "routes:transfer.updated": "routes:transfer.updated";
1184
1201
  "token:transfer": "token:transfer";
1185
1202
  "transaction:included": "transaction:included";
1186
1203
  }>;
@@ -1231,22 +1248,91 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1231
1248
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks": {
1232
1249
  $post: {
1233
1250
  output: {
1234
- error: {
1235
- code: "api_key_malformed";
1236
- details?: readonly Response.error.Detail[] | undefined;
1237
- message: string;
1251
+ chainId: number;
1252
+ createdAt: string;
1253
+ environment?: "production" | "sandbox" | undefined;
1254
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
1255
+ expiresAt?: string | undefined;
1256
+ failureCount: number;
1257
+ filters: {
1258
+ [x: string]: import("hono/utils/types").JSONValue;
1259
+ };
1260
+ id: string;
1261
+ lastDeliveryAt?: string | undefined;
1262
+ status: "active" | "disabled" | "paused";
1263
+ updatedAt: string;
1264
+ context?: {
1265
+ description?: string | undefined;
1266
+ metadata?: {
1267
+ [x: string]: string;
1268
+ } | undefined;
1269
+ title?: string | undefined;
1270
+ } | undefined;
1271
+ destination: {
1272
+ type: "url";
1273
+ url: string;
1274
+ };
1275
+ secret: string;
1276
+ } | {
1277
+ chainId: number;
1278
+ createdAt: string;
1279
+ environment?: "production" | "sandbox" | undefined;
1280
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
1281
+ expiresAt?: string | undefined;
1282
+ failureCount: number;
1283
+ filters: {
1284
+ [x: string]: import("hono/utils/types").JSONValue;
1285
+ };
1286
+ id: string;
1287
+ lastDeliveryAt?: string | undefined;
1288
+ status: "active" | "disabled" | "paused";
1289
+ updatedAt: string;
1290
+ context?: {
1291
+ description?: string | undefined;
1292
+ metadata?: {
1293
+ [x: string]: string;
1294
+ } | undefined;
1295
+ title?: string | undefined;
1296
+ } | undefined;
1297
+ destination: {
1298
+ type: "slack";
1299
+ url: "https://hooks.slack.com/…";
1300
+ };
1301
+ } | {
1302
+ chainId: number;
1303
+ createdAt: string;
1304
+ environment?: "production" | "sandbox" | undefined;
1305
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
1306
+ expiresAt?: string | undefined;
1307
+ failureCount: number;
1308
+ filters: {
1309
+ [x: string]: import("hono/utils/types").JSONValue;
1310
+ };
1311
+ id: string;
1312
+ lastDeliveryAt?: string | undefined;
1313
+ status: "active" | "disabled" | "paused";
1314
+ updatedAt: string;
1315
+ context?: {
1316
+ description?: string | undefined;
1317
+ metadata?: {
1318
+ [x: string]: string;
1319
+ } | undefined;
1320
+ title?: string | undefined;
1321
+ } | undefined;
1322
+ destination: {
1323
+ token: "[redacted]";
1324
+ type: "betterstack";
1325
+ url: string;
1238
1326
  };
1239
- requestId: string;
1240
1327
  };
1241
1328
  outputFormat: "json";
1242
- status: 400;
1329
+ status: 200;
1243
1330
  input: {
1244
1331
  param: {
1245
1332
  orgId: string;
1246
1333
  };
1247
1334
  } & {
1248
- json: ({
1249
- chainId?: unknown;
1335
+ json: {
1250
1336
  context?: {
1251
1337
  description?: string | undefined;
1252
1338
  metadata?: Record<string, string> | undefined;
@@ -1270,8 +1356,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1270
1356
  sender?: `0x${string}` | undefined;
1271
1357
  token?: `0x${string}` | undefined;
1272
1358
  } | undefined;
1359
+ chainId: number;
1360
+ environment?: "production" | "sandbox" | undefined;
1273
1361
  } | {
1274
- chainId?: unknown;
1275
1362
  context?: {
1276
1363
  description?: string | undefined;
1277
1364
  metadata?: Record<string, string> | undefined;
@@ -1427,8 +1514,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1427
1514
  lte?: `0x${string}` | undefined;
1428
1515
  } | `0x${string}` | undefined;
1429
1516
  } | undefined;
1517
+ chainId: number;
1518
+ environment?: "production" | "sandbox" | undefined;
1430
1519
  } | {
1431
- chainId?: unknown;
1432
1520
  context?: {
1433
1521
  description?: string | undefined;
1434
1522
  metadata?: Record<string, string> | undefined;
@@ -1492,8 +1580,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1492
1580
  lte?: `0x${string}` | undefined;
1493
1581
  } | `0x${string}` | undefined;
1494
1582
  };
1583
+ chainId: number;
1584
+ environment?: "production" | "sandbox" | undefined;
1495
1585
  } | {
1496
- chainId?: unknown;
1497
1586
  context?: {
1498
1587
  description?: string | undefined;
1499
1588
  metadata?: Record<string, string> | undefined;
@@ -1555,8 +1644,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1555
1644
  lte?: `0x${string}` | undefined;
1556
1645
  } | `0x${string}` | undefined;
1557
1646
  } | undefined;
1647
+ chainId: number;
1648
+ environment?: "production" | "sandbox" | undefined;
1558
1649
  } | {
1559
- chainId?: unknown;
1560
1650
  context?: {
1561
1651
  description?: string | undefined;
1562
1652
  metadata?: Record<string, string> | undefined;
@@ -1573,14 +1663,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1573
1663
  type: "betterstack";
1574
1664
  url: string;
1575
1665
  };
1576
- eventType: "funding:deposit.updated";
1666
+ eventType: "routes:deposit.updated";
1577
1667
  filters?: {
1578
1668
  depositAddressId?: string | undefined;
1579
1669
  recipient?: `0x${string}` | undefined;
1580
1670
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
1581
1671
  } | undefined;
1672
+ chainId: number;
1673
+ environment: "production" | "sandbox";
1582
1674
  } | {
1583
- chainId?: unknown;
1584
1675
  context?: {
1585
1676
  description?: string | undefined;
1586
1677
  metadata?: Record<string, string> | undefined;
@@ -1597,34 +1688,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1597
1688
  type: "betterstack";
1598
1689
  url: string;
1599
1690
  };
1600
- eventType: "funding:transfer.updated";
1691
+ eventType: "routes:transfer.updated";
1601
1692
  filters?: {
1602
1693
  id?: string | undefined;
1603
1694
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
1604
1695
  } | undefined;
1605
- }) & {
1606
1696
  chainId: number;
1607
- environment?: "production" | "sandbox" | undefined;
1697
+ environment: "production" | "sandbox";
1608
1698
  };
1609
1699
  };
1610
1700
  } | {
1611
1701
  output: {
1612
1702
  error: {
1613
- code: "api_key_invalid" | "api_key_missing";
1703
+ code: "api_key_malformed";
1614
1704
  details?: readonly Response.error.Detail[] | undefined;
1615
1705
  message: string;
1616
1706
  };
1617
1707
  requestId: string;
1618
1708
  };
1619
1709
  outputFormat: "json";
1620
- status: 401;
1710
+ status: 400;
1621
1711
  input: {
1622
1712
  param: {
1623
1713
  orgId: string;
1624
1714
  };
1625
1715
  } & {
1626
- json: ({
1627
- chainId?: unknown;
1716
+ json: {
1628
1717
  context?: {
1629
1718
  description?: string | undefined;
1630
1719
  metadata?: Record<string, string> | undefined;
@@ -1648,8 +1737,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1648
1737
  sender?: `0x${string}` | undefined;
1649
1738
  token?: `0x${string}` | undefined;
1650
1739
  } | undefined;
1740
+ chainId: number;
1741
+ environment?: "production" | "sandbox" | undefined;
1651
1742
  } | {
1652
- chainId?: unknown;
1653
1743
  context?: {
1654
1744
  description?: string | undefined;
1655
1745
  metadata?: Record<string, string> | undefined;
@@ -1805,8 +1895,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1805
1895
  lte?: `0x${string}` | undefined;
1806
1896
  } | `0x${string}` | undefined;
1807
1897
  } | undefined;
1898
+ chainId: number;
1899
+ environment?: "production" | "sandbox" | undefined;
1808
1900
  } | {
1809
- chainId?: unknown;
1810
1901
  context?: {
1811
1902
  description?: string | undefined;
1812
1903
  metadata?: Record<string, string> | undefined;
@@ -1870,8 +1961,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1870
1961
  lte?: `0x${string}` | undefined;
1871
1962
  } | `0x${string}` | undefined;
1872
1963
  };
1964
+ chainId: number;
1965
+ environment?: "production" | "sandbox" | undefined;
1873
1966
  } | {
1874
- chainId?: unknown;
1875
1967
  context?: {
1876
1968
  description?: string | undefined;
1877
1969
  metadata?: Record<string, string> | undefined;
@@ -1933,8 +2025,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1933
2025
  lte?: `0x${string}` | undefined;
1934
2026
  } | `0x${string}` | undefined;
1935
2027
  } | undefined;
2028
+ chainId: number;
2029
+ environment?: "production" | "sandbox" | undefined;
1936
2030
  } | {
1937
- chainId?: unknown;
1938
2031
  context?: {
1939
2032
  description?: string | undefined;
1940
2033
  metadata?: Record<string, string> | undefined;
@@ -1951,14 +2044,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1951
2044
  type: "betterstack";
1952
2045
  url: string;
1953
2046
  };
1954
- eventType: "funding:deposit.updated";
2047
+ eventType: "routes:deposit.updated";
1955
2048
  filters?: {
1956
2049
  depositAddressId?: string | undefined;
1957
2050
  recipient?: `0x${string}` | undefined;
1958
2051
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
1959
2052
  } | undefined;
2053
+ chainId: number;
2054
+ environment: "production" | "sandbox";
1960
2055
  } | {
1961
- chainId?: unknown;
1962
2056
  context?: {
1963
2057
  description?: string | undefined;
1964
2058
  metadata?: Record<string, string> | undefined;
@@ -1975,34 +2069,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1975
2069
  type: "betterstack";
1976
2070
  url: string;
1977
2071
  };
1978
- eventType: "funding:transfer.updated";
2072
+ eventType: "routes:transfer.updated";
1979
2073
  filters?: {
1980
2074
  id?: string | undefined;
1981
2075
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
1982
2076
  } | undefined;
1983
- }) & {
1984
2077
  chainId: number;
1985
- environment?: "production" | "sandbox" | undefined;
2078
+ environment: "production" | "sandbox";
1986
2079
  };
1987
2080
  };
1988
2081
  } | {
1989
2082
  output: {
1990
2083
  error: {
1991
- code: "upstream_error";
2084
+ code: "chain_id_unsupported";
1992
2085
  details?: readonly Response.error.Detail[] | undefined;
1993
2086
  message: string;
1994
2087
  };
1995
2088
  requestId: string;
1996
2089
  };
1997
2090
  outputFormat: "json";
1998
- status: 502;
2091
+ status: 400;
1999
2092
  input: {
2000
2093
  param: {
2001
2094
  orgId: string;
2002
2095
  };
2003
2096
  } & {
2004
- json: ({
2005
- chainId?: unknown;
2097
+ json: {
2006
2098
  context?: {
2007
2099
  description?: string | undefined;
2008
2100
  metadata?: Record<string, string> | undefined;
@@ -2026,8 +2118,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2026
2118
  sender?: `0x${string}` | undefined;
2027
2119
  token?: `0x${string}` | undefined;
2028
2120
  } | undefined;
2121
+ chainId: number;
2122
+ environment?: "production" | "sandbox" | undefined;
2029
2123
  } | {
2030
- chainId?: unknown;
2031
2124
  context?: {
2032
2125
  description?: string | undefined;
2033
2126
  metadata?: Record<string, string> | undefined;
@@ -2183,8 +2276,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2183
2276
  lte?: `0x${string}` | undefined;
2184
2277
  } | `0x${string}` | undefined;
2185
2278
  } | undefined;
2279
+ chainId: number;
2280
+ environment?: "production" | "sandbox" | undefined;
2186
2281
  } | {
2187
- chainId?: unknown;
2188
2282
  context?: {
2189
2283
  description?: string | undefined;
2190
2284
  metadata?: Record<string, string> | undefined;
@@ -2248,8 +2342,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2248
2342
  lte?: `0x${string}` | undefined;
2249
2343
  } | `0x${string}` | undefined;
2250
2344
  };
2345
+ chainId: number;
2346
+ environment?: "production" | "sandbox" | undefined;
2251
2347
  } | {
2252
- chainId?: unknown;
2253
2348
  context?: {
2254
2349
  description?: string | undefined;
2255
2350
  metadata?: Record<string, string> | undefined;
@@ -2311,8 +2406,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2311
2406
  lte?: `0x${string}` | undefined;
2312
2407
  } | `0x${string}` | undefined;
2313
2408
  } | undefined;
2409
+ chainId: number;
2410
+ environment?: "production" | "sandbox" | undefined;
2314
2411
  } | {
2315
- chainId?: unknown;
2316
2412
  context?: {
2317
2413
  description?: string | undefined;
2318
2414
  metadata?: Record<string, string> | undefined;
@@ -2329,14 +2425,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2329
2425
  type: "betterstack";
2330
2426
  url: string;
2331
2427
  };
2332
- eventType: "funding:deposit.updated";
2428
+ eventType: "routes:deposit.updated";
2333
2429
  filters?: {
2334
2430
  depositAddressId?: string | undefined;
2335
2431
  recipient?: `0x${string}` | undefined;
2336
2432
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2337
2433
  } | undefined;
2434
+ chainId: number;
2435
+ environment: "production" | "sandbox";
2338
2436
  } | {
2339
- chainId?: unknown;
2340
2437
  context?: {
2341
2438
  description?: string | undefined;
2342
2439
  metadata?: Record<string, string> | undefined;
@@ -2353,20 +2450,19 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2353
2450
  type: "betterstack";
2354
2451
  url: string;
2355
2452
  };
2356
- eventType: "funding:transfer.updated";
2453
+ eventType: "routes:transfer.updated";
2357
2454
  filters?: {
2358
2455
  id?: string | undefined;
2359
2456
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
2360
2457
  } | undefined;
2361
- }) & {
2362
2458
  chainId: number;
2363
- environment?: "production" | "sandbox" | undefined;
2459
+ environment: "production" | "sandbox";
2364
2460
  };
2365
2461
  };
2366
2462
  } | {
2367
2463
  output: {
2368
2464
  error: {
2369
- code: "body_invalid";
2465
+ code: "param_invalid";
2370
2466
  details?: readonly Response.error.Detail[] | undefined;
2371
2467
  message: string;
2372
2468
  };
@@ -2379,8 +2475,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2379
2475
  orgId: string;
2380
2476
  };
2381
2477
  } & {
2382
- json: ({
2383
- chainId?: unknown;
2478
+ json: {
2384
2479
  context?: {
2385
2480
  description?: string | undefined;
2386
2481
  metadata?: Record<string, string> | undefined;
@@ -2404,8 +2499,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2404
2499
  sender?: `0x${string}` | undefined;
2405
2500
  token?: `0x${string}` | undefined;
2406
2501
  } | undefined;
2502
+ chainId: number;
2503
+ environment?: "production" | "sandbox" | undefined;
2407
2504
  } | {
2408
- chainId?: unknown;
2409
2505
  context?: {
2410
2506
  description?: string | undefined;
2411
2507
  metadata?: Record<string, string> | undefined;
@@ -2561,8 +2657,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2561
2657
  lte?: `0x${string}` | undefined;
2562
2658
  } | `0x${string}` | undefined;
2563
2659
  } | undefined;
2660
+ chainId: number;
2661
+ environment?: "production" | "sandbox" | undefined;
2564
2662
  } | {
2565
- chainId?: unknown;
2566
2663
  context?: {
2567
2664
  description?: string | undefined;
2568
2665
  metadata?: Record<string, string> | undefined;
@@ -2626,8 +2723,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2626
2723
  lte?: `0x${string}` | undefined;
2627
2724
  } | `0x${string}` | undefined;
2628
2725
  };
2726
+ chainId: number;
2727
+ environment?: "production" | "sandbox" | undefined;
2629
2728
  } | {
2630
- chainId?: unknown;
2631
2729
  context?: {
2632
2730
  description?: string | undefined;
2633
2731
  metadata?: Record<string, string> | undefined;
@@ -2689,8 +2787,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2689
2787
  lte?: `0x${string}` | undefined;
2690
2788
  } | `0x${string}` | undefined;
2691
2789
  } | undefined;
2790
+ chainId: number;
2791
+ environment?: "production" | "sandbox" | undefined;
2692
2792
  } | {
2693
- chainId?: unknown;
2694
2793
  context?: {
2695
2794
  description?: string | undefined;
2696
2795
  metadata?: Record<string, string> | undefined;
@@ -2707,14 +2806,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2707
2806
  type: "betterstack";
2708
2807
  url: string;
2709
2808
  };
2710
- eventType: "funding:deposit.updated";
2809
+ eventType: "routes:deposit.updated";
2711
2810
  filters?: {
2712
2811
  depositAddressId?: string | undefined;
2713
2812
  recipient?: `0x${string}` | undefined;
2714
2813
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2715
2814
  } | undefined;
2815
+ chainId: number;
2816
+ environment: "production" | "sandbox";
2716
2817
  } | {
2717
- chainId?: unknown;
2718
2818
  context?: {
2719
2819
  description?: string | undefined;
2720
2820
  metadata?: Record<string, string> | undefined;
@@ -2731,20 +2831,19 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2731
2831
  type: "betterstack";
2732
2832
  url: string;
2733
2833
  };
2734
- eventType: "funding:transfer.updated";
2834
+ eventType: "routes:transfer.updated";
2735
2835
  filters?: {
2736
2836
  id?: string | undefined;
2737
2837
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
2738
2838
  } | undefined;
2739
- }) & {
2740
2839
  chainId: number;
2741
- environment?: "production" | "sandbox" | undefined;
2840
+ environment: "production" | "sandbox";
2742
2841
  };
2743
2842
  };
2744
2843
  } | {
2745
2844
  output: {
2746
2845
  error: {
2747
- code: "chain_id_unsupported";
2846
+ code: "body_invalid";
2748
2847
  details?: readonly Response.error.Detail[] | undefined;
2749
2848
  message: string;
2750
2849
  };
@@ -2757,8 +2856,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2757
2856
  orgId: string;
2758
2857
  };
2759
2858
  } & {
2760
- json: ({
2761
- chainId?: unknown;
2859
+ json: {
2762
2860
  context?: {
2763
2861
  description?: string | undefined;
2764
2862
  metadata?: Record<string, string> | undefined;
@@ -2782,8 +2880,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2782
2880
  sender?: `0x${string}` | undefined;
2783
2881
  token?: `0x${string}` | undefined;
2784
2882
  } | undefined;
2883
+ chainId: number;
2884
+ environment?: "production" | "sandbox" | undefined;
2785
2885
  } | {
2786
- chainId?: unknown;
2787
2886
  context?: {
2788
2887
  description?: string | undefined;
2789
2888
  metadata?: Record<string, string> | undefined;
@@ -2939,8 +3038,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2939
3038
  lte?: `0x${string}` | undefined;
2940
3039
  } | `0x${string}` | undefined;
2941
3040
  } | undefined;
3041
+ chainId: number;
3042
+ environment?: "production" | "sandbox" | undefined;
2942
3043
  } | {
2943
- chainId?: unknown;
2944
3044
  context?: {
2945
3045
  description?: string | undefined;
2946
3046
  metadata?: Record<string, string> | undefined;
@@ -3004,8 +3104,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3004
3104
  lte?: `0x${string}` | undefined;
3005
3105
  } | `0x${string}` | undefined;
3006
3106
  };
3107
+ chainId: number;
3108
+ environment?: "production" | "sandbox" | undefined;
3007
3109
  } | {
3008
- chainId?: unknown;
3009
3110
  context?: {
3010
3111
  description?: string | undefined;
3011
3112
  metadata?: Record<string, string> | undefined;
@@ -3067,8 +3168,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3067
3168
  lte?: `0x${string}` | undefined;
3068
3169
  } | `0x${string}` | undefined;
3069
3170
  } | undefined;
3171
+ chainId: number;
3172
+ environment?: "production" | "sandbox" | undefined;
3070
3173
  } | {
3071
- chainId?: unknown;
3072
3174
  context?: {
3073
3175
  description?: string | undefined;
3074
3176
  metadata?: Record<string, string> | undefined;
@@ -3085,14 +3187,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3085
3187
  type: "betterstack";
3086
3188
  url: string;
3087
3189
  };
3088
- eventType: "funding:deposit.updated";
3190
+ eventType: "routes:deposit.updated";
3089
3191
  filters?: {
3090
3192
  depositAddressId?: string | undefined;
3091
3193
  recipient?: `0x${string}` | undefined;
3092
3194
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3093
3195
  } | undefined;
3196
+ chainId: number;
3197
+ environment: "production" | "sandbox";
3094
3198
  } | {
3095
- chainId?: unknown;
3096
3199
  context?: {
3097
3200
  description?: string | undefined;
3098
3201
  metadata?: Record<string, string> | undefined;
@@ -3109,20 +3212,19 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3109
3212
  type: "betterstack";
3110
3213
  url: string;
3111
3214
  };
3112
- eventType: "funding:transfer.updated";
3215
+ eventType: "routes:transfer.updated";
3113
3216
  filters?: {
3114
3217
  id?: string | undefined;
3115
3218
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
3116
3219
  } | undefined;
3117
- }) & {
3118
3220
  chainId: number;
3119
- environment?: "production" | "sandbox" | undefined;
3221
+ environment: "production" | "sandbox";
3120
3222
  };
3121
3223
  };
3122
3224
  } | {
3123
3225
  output: {
3124
3226
  error: {
3125
- code: "param_invalid";
3227
+ code: "event_type_unsupported";
3126
3228
  details?: readonly Response.error.Detail[] | undefined;
3127
3229
  message: string;
3128
3230
  };
@@ -3135,8 +3237,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3135
3237
  orgId: string;
3136
3238
  };
3137
3239
  } & {
3138
- json: ({
3139
- chainId?: unknown;
3240
+ json: {
3140
3241
  context?: {
3141
3242
  description?: string | undefined;
3142
3243
  metadata?: Record<string, string> | undefined;
@@ -3160,8 +3261,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3160
3261
  sender?: `0x${string}` | undefined;
3161
3262
  token?: `0x${string}` | undefined;
3162
3263
  } | undefined;
3264
+ chainId: number;
3265
+ environment?: "production" | "sandbox" | undefined;
3163
3266
  } | {
3164
- chainId?: unknown;
3165
3267
  context?: {
3166
3268
  description?: string | undefined;
3167
3269
  metadata?: Record<string, string> | undefined;
@@ -3317,8 +3419,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3317
3419
  lte?: `0x${string}` | undefined;
3318
3420
  } | `0x${string}` | undefined;
3319
3421
  } | undefined;
3422
+ chainId: number;
3423
+ environment?: "production" | "sandbox" | undefined;
3320
3424
  } | {
3321
- chainId?: unknown;
3322
3425
  context?: {
3323
3426
  description?: string | undefined;
3324
3427
  metadata?: Record<string, string> | undefined;
@@ -3382,8 +3485,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3382
3485
  lte?: `0x${string}` | undefined;
3383
3486
  } | `0x${string}` | undefined;
3384
3487
  };
3488
+ chainId: number;
3489
+ environment?: "production" | "sandbox" | undefined;
3385
3490
  } | {
3386
- chainId?: unknown;
3387
3491
  context?: {
3388
3492
  description?: string | undefined;
3389
3493
  metadata?: Record<string, string> | undefined;
@@ -3445,8 +3549,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3445
3549
  lte?: `0x${string}` | undefined;
3446
3550
  } | `0x${string}` | undefined;
3447
3551
  } | undefined;
3552
+ chainId: number;
3553
+ environment?: "production" | "sandbox" | undefined;
3448
3554
  } | {
3449
- chainId?: unknown;
3450
3555
  context?: {
3451
3556
  description?: string | undefined;
3452
3557
  metadata?: Record<string, string> | undefined;
@@ -3463,14 +3568,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3463
3568
  type: "betterstack";
3464
3569
  url: string;
3465
3570
  };
3466
- eventType: "funding:deposit.updated";
3571
+ eventType: "routes:deposit.updated";
3467
3572
  filters?: {
3468
3573
  depositAddressId?: string | undefined;
3469
3574
  recipient?: `0x${string}` | undefined;
3470
3575
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3471
3576
  } | undefined;
3577
+ chainId: number;
3578
+ environment: "production" | "sandbox";
3472
3579
  } | {
3473
- chainId?: unknown;
3474
3580
  context?: {
3475
3581
  description?: string | undefined;
3476
3582
  metadata?: Record<string, string> | undefined;
@@ -3487,34 +3593,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3487
3593
  type: "betterstack";
3488
3594
  url: string;
3489
3595
  };
3490
- eventType: "funding:transfer.updated";
3596
+ eventType: "routes:transfer.updated";
3491
3597
  filters?: {
3492
3598
  id?: string | undefined;
3493
3599
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
3494
3600
  } | undefined;
3495
- }) & {
3496
3601
  chainId: number;
3497
- environment?: "production" | "sandbox" | undefined;
3602
+ environment: "production" | "sandbox";
3498
3603
  };
3499
3604
  };
3500
3605
  } | {
3501
3606
  output: {
3502
3607
  error: {
3503
- code: "forbidden";
3608
+ code: "url_invalid";
3504
3609
  details?: readonly Response.error.Detail[] | undefined;
3505
3610
  message: string;
3506
3611
  };
3507
3612
  requestId: string;
3508
3613
  };
3509
3614
  outputFormat: "json";
3510
- status: 403;
3615
+ status: 400;
3511
3616
  input: {
3512
3617
  param: {
3513
3618
  orgId: string;
3514
3619
  };
3515
3620
  } & {
3516
- json: ({
3517
- chainId?: unknown;
3621
+ json: {
3518
3622
  context?: {
3519
3623
  description?: string | undefined;
3520
3624
  metadata?: Record<string, string> | undefined;
@@ -3538,8 +3642,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3538
3642
  sender?: `0x${string}` | undefined;
3539
3643
  token?: `0x${string}` | undefined;
3540
3644
  } | undefined;
3645
+ chainId: number;
3646
+ environment?: "production" | "sandbox" | undefined;
3541
3647
  } | {
3542
- chainId?: unknown;
3543
3648
  context?: {
3544
3649
  description?: string | undefined;
3545
3650
  metadata?: Record<string, string> | undefined;
@@ -3695,8 +3800,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3695
3800
  lte?: `0x${string}` | undefined;
3696
3801
  } | `0x${string}` | undefined;
3697
3802
  } | undefined;
3803
+ chainId: number;
3804
+ environment?: "production" | "sandbox" | undefined;
3698
3805
  } | {
3699
- chainId?: unknown;
3700
3806
  context?: {
3701
3807
  description?: string | undefined;
3702
3808
  metadata?: Record<string, string> | undefined;
@@ -3760,8 +3866,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3760
3866
  lte?: `0x${string}` | undefined;
3761
3867
  } | `0x${string}` | undefined;
3762
3868
  };
3869
+ chainId: number;
3870
+ environment?: "production" | "sandbox" | undefined;
3763
3871
  } | {
3764
- chainId?: unknown;
3765
3872
  context?: {
3766
3873
  description?: string | undefined;
3767
3874
  metadata?: Record<string, string> | undefined;
@@ -3823,8 +3930,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3823
3930
  lte?: `0x${string}` | undefined;
3824
3931
  } | `0x${string}` | undefined;
3825
3932
  } | undefined;
3933
+ chainId: number;
3934
+ environment?: "production" | "sandbox" | undefined;
3826
3935
  } | {
3827
- chainId?: unknown;
3828
3936
  context?: {
3829
3937
  description?: string | undefined;
3830
3938
  metadata?: Record<string, string> | undefined;
@@ -3841,14 +3949,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3841
3949
  type: "betterstack";
3842
3950
  url: string;
3843
3951
  };
3844
- eventType: "funding:deposit.updated";
3952
+ eventType: "routes:deposit.updated";
3845
3953
  filters?: {
3846
3954
  depositAddressId?: string | undefined;
3847
3955
  recipient?: `0x${string}` | undefined;
3848
3956
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3849
3957
  } | undefined;
3958
+ chainId: number;
3959
+ environment: "production" | "sandbox";
3850
3960
  } | {
3851
- chainId?: unknown;
3852
3961
  context?: {
3853
3962
  description?: string | undefined;
3854
3963
  metadata?: Record<string, string> | undefined;
@@ -3865,34 +3974,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3865
3974
  type: "betterstack";
3866
3975
  url: string;
3867
3976
  };
3868
- eventType: "funding:transfer.updated";
3977
+ eventType: "routes:transfer.updated";
3869
3978
  filters?: {
3870
3979
  id?: string | undefined;
3871
3980
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
3872
3981
  } | undefined;
3873
- }) & {
3874
3982
  chainId: number;
3875
- environment?: "production" | "sandbox" | undefined;
3983
+ environment: "production" | "sandbox";
3876
3984
  };
3877
3985
  };
3878
3986
  } | {
3879
3987
  output: {
3880
3988
  error: {
3881
- code: "organization_not_found";
3989
+ code: "filters_invalid";
3882
3990
  details?: readonly Response.error.Detail[] | undefined;
3883
3991
  message: string;
3884
3992
  };
3885
3993
  requestId: string;
3886
3994
  };
3887
3995
  outputFormat: "json";
3888
- status: 404;
3996
+ status: 400;
3889
3997
  input: {
3890
3998
  param: {
3891
3999
  orgId: string;
3892
4000
  };
3893
4001
  } & {
3894
- json: ({
3895
- chainId?: unknown;
4002
+ json: {
3896
4003
  context?: {
3897
4004
  description?: string | undefined;
3898
4005
  metadata?: Record<string, string> | undefined;
@@ -3916,8 +4023,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3916
4023
  sender?: `0x${string}` | undefined;
3917
4024
  token?: `0x${string}` | undefined;
3918
4025
  } | undefined;
4026
+ chainId: number;
4027
+ environment?: "production" | "sandbox" | undefined;
3919
4028
  } | {
3920
- chainId?: unknown;
3921
4029
  context?: {
3922
4030
  description?: string | undefined;
3923
4031
  metadata?: Record<string, string> | undefined;
@@ -4073,8 +4181,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4073
4181
  lte?: `0x${string}` | undefined;
4074
4182
  } | `0x${string}` | undefined;
4075
4183
  } | undefined;
4184
+ chainId: number;
4185
+ environment?: "production" | "sandbox" | undefined;
4076
4186
  } | {
4077
- chainId?: unknown;
4078
4187
  context?: {
4079
4188
  description?: string | undefined;
4080
4189
  metadata?: Record<string, string> | undefined;
@@ -4138,8 +4247,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4138
4247
  lte?: `0x${string}` | undefined;
4139
4248
  } | `0x${string}` | undefined;
4140
4249
  };
4250
+ chainId: number;
4251
+ environment?: "production" | "sandbox" | undefined;
4141
4252
  } | {
4142
- chainId?: unknown;
4143
4253
  context?: {
4144
4254
  description?: string | undefined;
4145
4255
  metadata?: Record<string, string> | undefined;
@@ -4201,8 +4311,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4201
4311
  lte?: `0x${string}` | undefined;
4202
4312
  } | `0x${string}` | undefined;
4203
4313
  } | undefined;
4314
+ chainId: number;
4315
+ environment?: "production" | "sandbox" | undefined;
4204
4316
  } | {
4205
- chainId?: unknown;
4206
4317
  context?: {
4207
4318
  description?: string | undefined;
4208
4319
  metadata?: Record<string, string> | undefined;
@@ -4219,14 +4330,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4219
4330
  type: "betterstack";
4220
4331
  url: string;
4221
4332
  };
4222
- eventType: "funding:deposit.updated";
4333
+ eventType: "routes:deposit.updated";
4223
4334
  filters?: {
4224
4335
  depositAddressId?: string | undefined;
4225
4336
  recipient?: `0x${string}` | undefined;
4226
4337
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4227
4338
  } | undefined;
4339
+ chainId: number;
4340
+ environment: "production" | "sandbox";
4228
4341
  } | {
4229
- chainId?: unknown;
4230
4342
  context?: {
4231
4343
  description?: string | undefined;
4232
4344
  metadata?: Record<string, string> | undefined;
@@ -4243,34 +4355,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4243
4355
  type: "betterstack";
4244
4356
  url: string;
4245
4357
  };
4246
- eventType: "funding:transfer.updated";
4358
+ eventType: "routes:transfer.updated";
4247
4359
  filters?: {
4248
4360
  id?: string | undefined;
4249
4361
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
4250
4362
  } | undefined;
4251
- }) & {
4252
4363
  chainId: number;
4253
- environment?: "production" | "sandbox" | undefined;
4364
+ environment: "production" | "sandbox";
4254
4365
  };
4255
4366
  };
4256
4367
  } | {
4257
4368
  output: {
4258
4369
  error: {
4259
- code: "webhooks_not_enabled";
4370
+ code: "api_key_invalid" | "api_key_missing";
4260
4371
  details?: readonly Response.error.Detail[] | undefined;
4261
4372
  message: string;
4262
4373
  };
4263
4374
  requestId: string;
4264
4375
  };
4265
4376
  outputFormat: "json";
4266
- status: 404;
4377
+ status: 401;
4267
4378
  input: {
4268
4379
  param: {
4269
4380
  orgId: string;
4270
4381
  };
4271
4382
  } & {
4272
- json: ({
4273
- chainId?: unknown;
4383
+ json: {
4274
4384
  context?: {
4275
4385
  description?: string | undefined;
4276
4386
  metadata?: Record<string, string> | undefined;
@@ -4294,8 +4404,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4294
4404
  sender?: `0x${string}` | undefined;
4295
4405
  token?: `0x${string}` | undefined;
4296
4406
  } | undefined;
4407
+ chainId: number;
4408
+ environment?: "production" | "sandbox" | undefined;
4297
4409
  } | {
4298
- chainId?: unknown;
4299
4410
  context?: {
4300
4411
  description?: string | undefined;
4301
4412
  metadata?: Record<string, string> | undefined;
@@ -4451,8 +4562,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4451
4562
  lte?: `0x${string}` | undefined;
4452
4563
  } | `0x${string}` | undefined;
4453
4564
  } | undefined;
4565
+ chainId: number;
4566
+ environment?: "production" | "sandbox" | undefined;
4454
4567
  } | {
4455
- chainId?: unknown;
4456
4568
  context?: {
4457
4569
  description?: string | undefined;
4458
4570
  metadata?: Record<string, string> | undefined;
@@ -4516,8 +4628,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4516
4628
  lte?: `0x${string}` | undefined;
4517
4629
  } | `0x${string}` | undefined;
4518
4630
  };
4631
+ chainId: number;
4632
+ environment?: "production" | "sandbox" | undefined;
4519
4633
  } | {
4520
- chainId?: unknown;
4521
4634
  context?: {
4522
4635
  description?: string | undefined;
4523
4636
  metadata?: Record<string, string> | undefined;
@@ -4579,8 +4692,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4579
4692
  lte?: `0x${string}` | undefined;
4580
4693
  } | `0x${string}` | undefined;
4581
4694
  } | undefined;
4695
+ chainId: number;
4696
+ environment?: "production" | "sandbox" | undefined;
4582
4697
  } | {
4583
- chainId?: unknown;
4584
4698
  context?: {
4585
4699
  description?: string | undefined;
4586
4700
  metadata?: Record<string, string> | undefined;
@@ -4597,14 +4711,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4597
4711
  type: "betterstack";
4598
4712
  url: string;
4599
4713
  };
4600
- eventType: "funding:deposit.updated";
4714
+ eventType: "routes:deposit.updated";
4601
4715
  filters?: {
4602
4716
  depositAddressId?: string | undefined;
4603
4717
  recipient?: `0x${string}` | undefined;
4604
4718
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4605
4719
  } | undefined;
4720
+ chainId: number;
4721
+ environment: "production" | "sandbox";
4606
4722
  } | {
4607
- chainId?: unknown;
4608
4723
  context?: {
4609
4724
  description?: string | undefined;
4610
4725
  metadata?: Record<string, string> | undefined;
@@ -4621,34 +4736,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4621
4736
  type: "betterstack";
4622
4737
  url: string;
4623
4738
  };
4624
- eventType: "funding:transfer.updated";
4739
+ eventType: "routes:transfer.updated";
4625
4740
  filters?: {
4626
4741
  id?: string | undefined;
4627
4742
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
4628
4743
  } | undefined;
4629
- }) & {
4630
4744
  chainId: number;
4631
- environment?: "production" | "sandbox" | undefined;
4745
+ environment: "production" | "sandbox";
4632
4746
  };
4633
4747
  };
4634
4748
  } | {
4635
4749
  output: {
4636
4750
  error: {
4637
- code: "event_type_unsupported";
4751
+ code: "forbidden";
4638
4752
  details?: readonly Response.error.Detail[] | undefined;
4639
4753
  message: string;
4640
4754
  };
4641
4755
  requestId: string;
4642
4756
  };
4643
4757
  outputFormat: "json";
4644
- status: 400;
4758
+ status: 403;
4645
4759
  input: {
4646
4760
  param: {
4647
4761
  orgId: string;
4648
4762
  };
4649
4763
  } & {
4650
- json: ({
4651
- chainId?: unknown;
4764
+ json: {
4652
4765
  context?: {
4653
4766
  description?: string | undefined;
4654
4767
  metadata?: Record<string, string> | undefined;
@@ -4672,8 +4785,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4672
4785
  sender?: `0x${string}` | undefined;
4673
4786
  token?: `0x${string}` | undefined;
4674
4787
  } | undefined;
4788
+ chainId: number;
4789
+ environment?: "production" | "sandbox" | undefined;
4675
4790
  } | {
4676
- chainId?: unknown;
4677
4791
  context?: {
4678
4792
  description?: string | undefined;
4679
4793
  metadata?: Record<string, string> | undefined;
@@ -4829,8 +4943,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4829
4943
  lte?: `0x${string}` | undefined;
4830
4944
  } | `0x${string}` | undefined;
4831
4945
  } | undefined;
4946
+ chainId: number;
4947
+ environment?: "production" | "sandbox" | undefined;
4832
4948
  } | {
4833
- chainId?: unknown;
4834
4949
  context?: {
4835
4950
  description?: string | undefined;
4836
4951
  metadata?: Record<string, string> | undefined;
@@ -4894,8 +5009,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4894
5009
  lte?: `0x${string}` | undefined;
4895
5010
  } | `0x${string}` | undefined;
4896
5011
  };
5012
+ chainId: number;
5013
+ environment?: "production" | "sandbox" | undefined;
4897
5014
  } | {
4898
- chainId?: unknown;
4899
5015
  context?: {
4900
5016
  description?: string | undefined;
4901
5017
  metadata?: Record<string, string> | undefined;
@@ -4957,8 +5073,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4957
5073
  lte?: `0x${string}` | undefined;
4958
5074
  } | `0x${string}` | undefined;
4959
5075
  } | undefined;
5076
+ chainId: number;
5077
+ environment?: "production" | "sandbox" | undefined;
4960
5078
  } | {
4961
- chainId?: unknown;
4962
5079
  context?: {
4963
5080
  description?: string | undefined;
4964
5081
  metadata?: Record<string, string> | undefined;
@@ -4975,14 +5092,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4975
5092
  type: "betterstack";
4976
5093
  url: string;
4977
5094
  };
4978
- eventType: "funding:deposit.updated";
5095
+ eventType: "routes:deposit.updated";
4979
5096
  filters?: {
4980
5097
  depositAddressId?: string | undefined;
4981
5098
  recipient?: `0x${string}` | undefined;
4982
5099
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4983
5100
  } | undefined;
5101
+ chainId: number;
5102
+ environment: "production" | "sandbox";
4984
5103
  } | {
4985
- chainId?: unknown;
4986
5104
  context?: {
4987
5105
  description?: string | undefined;
4988
5106
  metadata?: Record<string, string> | undefined;
@@ -4999,34 +5117,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4999
5117
  type: "betterstack";
5000
5118
  url: string;
5001
5119
  };
5002
- eventType: "funding:transfer.updated";
5120
+ eventType: "routes:transfer.updated";
5003
5121
  filters?: {
5004
5122
  id?: string | undefined;
5005
5123
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
5006
5124
  } | undefined;
5007
- }) & {
5008
5125
  chainId: number;
5009
- environment?: "production" | "sandbox" | undefined;
5126
+ environment: "production" | "sandbox";
5010
5127
  };
5011
5128
  };
5012
5129
  } | {
5013
5130
  output: {
5014
5131
  error: {
5015
- code: "url_invalid";
5132
+ code: "limit_exceeded";
5016
5133
  details?: readonly Response.error.Detail[] | undefined;
5017
5134
  message: string;
5018
5135
  };
5019
5136
  requestId: string;
5020
5137
  };
5021
5138
  outputFormat: "json";
5022
- status: 400;
5139
+ status: 403;
5023
5140
  input: {
5024
5141
  param: {
5025
5142
  orgId: string;
5026
5143
  };
5027
5144
  } & {
5028
- json: ({
5029
- chainId?: unknown;
5145
+ json: {
5030
5146
  context?: {
5031
5147
  description?: string | undefined;
5032
5148
  metadata?: Record<string, string> | undefined;
@@ -5050,8 +5166,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5050
5166
  sender?: `0x${string}` | undefined;
5051
5167
  token?: `0x${string}` | undefined;
5052
5168
  } | undefined;
5169
+ chainId: number;
5170
+ environment?: "production" | "sandbox" | undefined;
5053
5171
  } | {
5054
- chainId?: unknown;
5055
5172
  context?: {
5056
5173
  description?: string | undefined;
5057
5174
  metadata?: Record<string, string> | undefined;
@@ -5207,8 +5324,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5207
5324
  lte?: `0x${string}` | undefined;
5208
5325
  } | `0x${string}` | undefined;
5209
5326
  } | undefined;
5327
+ chainId: number;
5328
+ environment?: "production" | "sandbox" | undefined;
5210
5329
  } | {
5211
- chainId?: unknown;
5212
5330
  context?: {
5213
5331
  description?: string | undefined;
5214
5332
  metadata?: Record<string, string> | undefined;
@@ -5272,8 +5390,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5272
5390
  lte?: `0x${string}` | undefined;
5273
5391
  } | `0x${string}` | undefined;
5274
5392
  };
5393
+ chainId: number;
5394
+ environment?: "production" | "sandbox" | undefined;
5275
5395
  } | {
5276
- chainId?: unknown;
5277
5396
  context?: {
5278
5397
  description?: string | undefined;
5279
5398
  metadata?: Record<string, string> | undefined;
@@ -5335,8 +5454,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5335
5454
  lte?: `0x${string}` | undefined;
5336
5455
  } | `0x${string}` | undefined;
5337
5456
  } | undefined;
5457
+ chainId: number;
5458
+ environment?: "production" | "sandbox" | undefined;
5338
5459
  } | {
5339
- chainId?: unknown;
5340
5460
  context?: {
5341
5461
  description?: string | undefined;
5342
5462
  metadata?: Record<string, string> | undefined;
@@ -5353,14 +5473,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5353
5473
  type: "betterstack";
5354
5474
  url: string;
5355
5475
  };
5356
- eventType: "funding:deposit.updated";
5476
+ eventType: "routes:deposit.updated";
5357
5477
  filters?: {
5358
5478
  depositAddressId?: string | undefined;
5359
5479
  recipient?: `0x${string}` | undefined;
5360
5480
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
5361
5481
  } | undefined;
5482
+ chainId: number;
5483
+ environment: "production" | "sandbox";
5362
5484
  } | {
5363
- chainId?: unknown;
5364
5485
  context?: {
5365
5486
  description?: string | undefined;
5366
5487
  metadata?: Record<string, string> | undefined;
@@ -5377,34 +5498,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5377
5498
  type: "betterstack";
5378
5499
  url: string;
5379
5500
  };
5380
- eventType: "funding:transfer.updated";
5501
+ eventType: "routes:transfer.updated";
5381
5502
  filters?: {
5382
5503
  id?: string | undefined;
5383
5504
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
5384
5505
  } | undefined;
5385
- }) & {
5386
5506
  chainId: number;
5387
- environment?: "production" | "sandbox" | undefined;
5507
+ environment: "production" | "sandbox";
5388
5508
  };
5389
5509
  };
5390
5510
  } | {
5391
5511
  output: {
5392
5512
  error: {
5393
- code: "filters_invalid";
5513
+ code: "organization_not_found";
5394
5514
  details?: readonly Response.error.Detail[] | undefined;
5395
5515
  message: string;
5396
5516
  };
5397
5517
  requestId: string;
5398
5518
  };
5399
5519
  outputFormat: "json";
5400
- status: 400;
5520
+ status: 404;
5401
5521
  input: {
5402
5522
  param: {
5403
5523
  orgId: string;
5404
5524
  };
5405
5525
  } & {
5406
- json: ({
5407
- chainId?: unknown;
5526
+ json: {
5408
5527
  context?: {
5409
5528
  description?: string | undefined;
5410
5529
  metadata?: Record<string, string> | undefined;
@@ -5428,8 +5547,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5428
5547
  sender?: `0x${string}` | undefined;
5429
5548
  token?: `0x${string}` | undefined;
5430
5549
  } | undefined;
5550
+ chainId: number;
5551
+ environment?: "production" | "sandbox" | undefined;
5431
5552
  } | {
5432
- chainId?: unknown;
5433
5553
  context?: {
5434
5554
  description?: string | undefined;
5435
5555
  metadata?: Record<string, string> | undefined;
@@ -5585,8 +5705,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5585
5705
  lte?: `0x${string}` | undefined;
5586
5706
  } | `0x${string}` | undefined;
5587
5707
  } | undefined;
5708
+ chainId: number;
5709
+ environment?: "production" | "sandbox" | undefined;
5588
5710
  } | {
5589
- chainId?: unknown;
5590
5711
  context?: {
5591
5712
  description?: string | undefined;
5592
5713
  metadata?: Record<string, string> | undefined;
@@ -5650,8 +5771,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5650
5771
  lte?: `0x${string}` | undefined;
5651
5772
  } | `0x${string}` | undefined;
5652
5773
  };
5774
+ chainId: number;
5775
+ environment?: "production" | "sandbox" | undefined;
5653
5776
  } | {
5654
- chainId?: unknown;
5655
5777
  context?: {
5656
5778
  description?: string | undefined;
5657
5779
  metadata?: Record<string, string> | undefined;
@@ -5713,8 +5835,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5713
5835
  lte?: `0x${string}` | undefined;
5714
5836
  } | `0x${string}` | undefined;
5715
5837
  } | undefined;
5838
+ chainId: number;
5839
+ environment?: "production" | "sandbox" | undefined;
5716
5840
  } | {
5717
- chainId?: unknown;
5718
5841
  context?: {
5719
5842
  description?: string | undefined;
5720
5843
  metadata?: Record<string, string> | undefined;
@@ -5731,14 +5854,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5731
5854
  type: "betterstack";
5732
5855
  url: string;
5733
5856
  };
5734
- eventType: "funding:deposit.updated";
5857
+ eventType: "routes:deposit.updated";
5735
5858
  filters?: {
5736
5859
  depositAddressId?: string | undefined;
5737
5860
  recipient?: `0x${string}` | undefined;
5738
5861
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
5739
5862
  } | undefined;
5863
+ chainId: number;
5864
+ environment: "production" | "sandbox";
5740
5865
  } | {
5741
- chainId?: unknown;
5742
5866
  context?: {
5743
5867
  description?: string | undefined;
5744
5868
  metadata?: Record<string, string> | undefined;
@@ -5755,34 +5879,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5755
5879
  type: "betterstack";
5756
5880
  url: string;
5757
5881
  };
5758
- eventType: "funding:transfer.updated";
5882
+ eventType: "routes:transfer.updated";
5759
5883
  filters?: {
5760
5884
  id?: string | undefined;
5761
5885
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
5762
5886
  } | undefined;
5763
- }) & {
5764
5887
  chainId: number;
5765
- environment?: "production" | "sandbox" | undefined;
5888
+ environment: "production" | "sandbox";
5766
5889
  };
5767
5890
  };
5768
5891
  } | {
5769
5892
  output: {
5770
5893
  error: {
5771
- code: "limit_exceeded";
5894
+ code: "webhooks_not_enabled";
5772
5895
  details?: readonly Response.error.Detail[] | undefined;
5773
5896
  message: string;
5774
5897
  };
5775
5898
  requestId: string;
5776
5899
  };
5777
5900
  outputFormat: "json";
5778
- status: 403;
5901
+ status: 404;
5779
5902
  input: {
5780
5903
  param: {
5781
5904
  orgId: string;
5782
5905
  };
5783
5906
  } & {
5784
- json: ({
5785
- chainId?: unknown;
5907
+ json: {
5786
5908
  context?: {
5787
5909
  description?: string | undefined;
5788
5910
  metadata?: Record<string, string> | undefined;
@@ -5806,8 +5928,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5806
5928
  sender?: `0x${string}` | undefined;
5807
5929
  token?: `0x${string}` | undefined;
5808
5930
  } | undefined;
5931
+ chainId: number;
5932
+ environment?: "production" | "sandbox" | undefined;
5809
5933
  } | {
5810
- chainId?: unknown;
5811
5934
  context?: {
5812
5935
  description?: string | undefined;
5813
5936
  metadata?: Record<string, string> | undefined;
@@ -5963,8 +6086,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5963
6086
  lte?: `0x${string}` | undefined;
5964
6087
  } | `0x${string}` | undefined;
5965
6088
  } | undefined;
6089
+ chainId: number;
6090
+ environment?: "production" | "sandbox" | undefined;
5966
6091
  } | {
5967
- chainId?: unknown;
5968
6092
  context?: {
5969
6093
  description?: string | undefined;
5970
6094
  metadata?: Record<string, string> | undefined;
@@ -6028,8 +6152,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6028
6152
  lte?: `0x${string}` | undefined;
6029
6153
  } | `0x${string}` | undefined;
6030
6154
  };
6155
+ chainId: number;
6156
+ environment?: "production" | "sandbox" | undefined;
6031
6157
  } | {
6032
- chainId?: unknown;
6033
6158
  context?: {
6034
6159
  description?: string | undefined;
6035
6160
  metadata?: Record<string, string> | undefined;
@@ -6091,8 +6216,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6091
6216
  lte?: `0x${string}` | undefined;
6092
6217
  } | `0x${string}` | undefined;
6093
6218
  } | undefined;
6219
+ chainId: number;
6220
+ environment?: "production" | "sandbox" | undefined;
6094
6221
  } | {
6095
- chainId?: unknown;
6096
6222
  context?: {
6097
6223
  description?: string | undefined;
6098
6224
  metadata?: Record<string, string> | undefined;
@@ -6109,14 +6235,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6109
6235
  type: "betterstack";
6110
6236
  url: string;
6111
6237
  };
6112
- eventType: "funding:deposit.updated";
6238
+ eventType: "routes:deposit.updated";
6113
6239
  filters?: {
6114
6240
  depositAddressId?: string | undefined;
6115
6241
  recipient?: `0x${string}` | undefined;
6116
6242
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
6117
6243
  } | undefined;
6244
+ chainId: number;
6245
+ environment: "production" | "sandbox";
6118
6246
  } | {
6119
- chainId?: unknown;
6120
6247
  context?: {
6121
6248
  description?: string | undefined;
6122
6249
  metadata?: Record<string, string> | undefined;
@@ -6133,104 +6260,32 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6133
6260
  type: "betterstack";
6134
6261
  url: string;
6135
6262
  };
6136
- eventType: "funding:transfer.updated";
6263
+ eventType: "routes:transfer.updated";
6137
6264
  filters?: {
6138
6265
  id?: string | undefined;
6139
6266
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
6140
6267
  } | undefined;
6141
- }) & {
6142
6268
  chainId: number;
6143
- environment?: "production" | "sandbox" | undefined;
6269
+ environment: "production" | "sandbox";
6144
6270
  };
6145
6271
  };
6146
6272
  } | {
6147
6273
  output: {
6148
- chainId: number;
6149
- createdAt: string;
6150
- environment?: "production" | "sandbox" | undefined;
6151
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6152
- expiresAt?: string | undefined;
6153
- failureCount: number;
6154
- filters: {
6155
- [x: string]: import("hono/utils/types").JSONValue;
6156
- };
6157
- id: string;
6158
- lastDeliveryAt?: string | undefined;
6159
- status: "active" | "disabled" | "paused";
6160
- updatedAt: string;
6161
- context?: {
6162
- description?: string | undefined;
6163
- metadata?: {
6164
- [x: string]: string;
6165
- } | undefined;
6166
- title?: string | undefined;
6167
- } | undefined;
6168
- destination: {
6169
- type: "url";
6170
- url: string;
6171
- };
6172
- secret: string;
6173
- } | {
6174
- chainId: number;
6175
- createdAt: string;
6176
- environment?: "production" | "sandbox" | undefined;
6177
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6178
- expiresAt?: string | undefined;
6179
- failureCount: number;
6180
- filters: {
6181
- [x: string]: import("hono/utils/types").JSONValue;
6182
- };
6183
- id: string;
6184
- lastDeliveryAt?: string | undefined;
6185
- status: "active" | "disabled" | "paused";
6186
- updatedAt: string;
6187
- context?: {
6188
- description?: string | undefined;
6189
- metadata?: {
6190
- [x: string]: string;
6191
- } | undefined;
6192
- title?: string | undefined;
6193
- } | undefined;
6194
- destination: {
6195
- type: "slack";
6196
- url: "https://hooks.slack.com/…";
6197
- };
6198
- } | {
6199
- chainId: number;
6200
- createdAt: string;
6201
- environment?: "production" | "sandbox" | undefined;
6202
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6203
- expiresAt?: string | undefined;
6204
- failureCount: number;
6205
- filters: {
6206
- [x: string]: import("hono/utils/types").JSONValue;
6207
- };
6208
- id: string;
6209
- lastDeliveryAt?: string | undefined;
6210
- status: "active" | "disabled" | "paused";
6211
- updatedAt: string;
6212
- context?: {
6213
- description?: string | undefined;
6214
- metadata?: {
6215
- [x: string]: string;
6216
- } | undefined;
6217
- title?: string | undefined;
6218
- } | undefined;
6219
- destination: {
6220
- token: "[redacted]";
6221
- type: "betterstack";
6222
- url: string;
6274
+ error: {
6275
+ code: "upstream_error";
6276
+ details?: readonly Response.error.Detail[] | undefined;
6277
+ message: string;
6223
6278
  };
6279
+ requestId: string;
6224
6280
  };
6225
6281
  outputFormat: "json";
6226
- status: 200;
6282
+ status: 502;
6227
6283
  input: {
6228
6284
  param: {
6229
6285
  orgId: string;
6230
6286
  };
6231
6287
  } & {
6232
- json: ({
6233
- chainId?: unknown;
6288
+ json: {
6234
6289
  context?: {
6235
6290
  description?: string | undefined;
6236
6291
  metadata?: Record<string, string> | undefined;
@@ -6254,8 +6309,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6254
6309
  sender?: `0x${string}` | undefined;
6255
6310
  token?: `0x${string}` | undefined;
6256
6311
  } | undefined;
6312
+ chainId: number;
6313
+ environment?: "production" | "sandbox" | undefined;
6257
6314
  } | {
6258
- chainId?: unknown;
6259
6315
  context?: {
6260
6316
  description?: string | undefined;
6261
6317
  metadata?: Record<string, string> | undefined;
@@ -6411,8 +6467,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6411
6467
  lte?: `0x${string}` | undefined;
6412
6468
  } | `0x${string}` | undefined;
6413
6469
  } | undefined;
6470
+ chainId: number;
6471
+ environment?: "production" | "sandbox" | undefined;
6414
6472
  } | {
6415
- chainId?: unknown;
6416
6473
  context?: {
6417
6474
  description?: string | undefined;
6418
6475
  metadata?: Record<string, string> | undefined;
@@ -6476,8 +6533,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6476
6533
  lte?: `0x${string}` | undefined;
6477
6534
  } | `0x${string}` | undefined;
6478
6535
  };
6536
+ chainId: number;
6537
+ environment?: "production" | "sandbox" | undefined;
6479
6538
  } | {
6480
- chainId?: unknown;
6481
6539
  context?: {
6482
6540
  description?: string | undefined;
6483
6541
  metadata?: Record<string, string> | undefined;
@@ -6539,8 +6597,9 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6539
6597
  lte?: `0x${string}` | undefined;
6540
6598
  } | `0x${string}` | undefined;
6541
6599
  } | undefined;
6600
+ chainId: number;
6601
+ environment?: "production" | "sandbox" | undefined;
6542
6602
  } | {
6543
- chainId?: unknown;
6544
6603
  context?: {
6545
6604
  description?: string | undefined;
6546
6605
  metadata?: Record<string, string> | undefined;
@@ -6557,14 +6616,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6557
6616
  type: "betterstack";
6558
6617
  url: string;
6559
6618
  };
6560
- eventType: "funding:deposit.updated";
6619
+ eventType: "routes:deposit.updated";
6561
6620
  filters?: {
6562
6621
  depositAddressId?: string | undefined;
6563
6622
  recipient?: `0x${string}` | undefined;
6564
6623
  status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
6565
6624
  } | undefined;
6625
+ chainId: number;
6626
+ environment: "production" | "sandbox";
6566
6627
  } | {
6567
- chainId?: unknown;
6568
6628
  context?: {
6569
6629
  description?: string | undefined;
6570
6630
  metadata?: Record<string, string> | undefined;
@@ -6581,14 +6641,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6581
6641
  type: "betterstack";
6582
6642
  url: string;
6583
6643
  };
6584
- eventType: "funding:transfer.updated";
6644
+ eventType: "routes:transfer.updated";
6585
6645
  filters?: {
6586
6646
  id?: string | undefined;
6587
6647
  status?: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding" | undefined;
6588
6648
  } | undefined;
6589
- }) & {
6590
6649
  chainId: number;
6591
- environment?: "production" | "sandbox" | undefined;
6650
+ environment: "production" | "sandbox";
6592
6651
  };
6593
6652
  };
6594
6653
  };
@@ -6597,15 +6656,42 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6597
6656
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks": {
6598
6657
  $get: {
6599
6658
  output: {
6600
- error: {
6601
- code: "api_key_malformed";
6602
- details?: readonly Response.error.Detail[] | undefined;
6603
- message: string;
6604
- };
6605
- requestId: string;
6659
+ data: {
6660
+ chainId: number;
6661
+ createdAt: string;
6662
+ environment?: "production" | "sandbox" | undefined;
6663
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6664
+ expiresAt?: string | undefined;
6665
+ failureCount: number;
6666
+ filters: {
6667
+ [x: string]: import("hono/utils/types").JSONValue;
6668
+ };
6669
+ id: string;
6670
+ lastDeliveryAt?: string | undefined;
6671
+ status: "active" | "disabled" | "paused";
6672
+ updatedAt: string;
6673
+ context?: {
6674
+ description?: string | undefined;
6675
+ metadata?: {
6676
+ [x: string]: string;
6677
+ } | undefined;
6678
+ title?: string | undefined;
6679
+ } | undefined;
6680
+ destination: {
6681
+ type: "url";
6682
+ url: string;
6683
+ } | {
6684
+ type: "slack";
6685
+ url: "https://hooks.slack.com/…";
6686
+ } | {
6687
+ token: "[redacted]";
6688
+ type: "betterstack";
6689
+ url: string;
6690
+ };
6691
+ }[];
6606
6692
  };
6607
6693
  outputFormat: "json";
6608
- status: 400;
6694
+ status: 200;
6609
6695
  input: {
6610
6696
  param: {
6611
6697
  orgId: string;
@@ -6614,14 +6700,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6614
6700
  } | {
6615
6701
  output: {
6616
6702
  error: {
6617
- code: "api_key_invalid" | "api_key_missing";
6703
+ code: "api_key_malformed";
6618
6704
  details?: readonly Response.error.Detail[] | undefined;
6619
6705
  message: string;
6620
6706
  };
6621
6707
  requestId: string;
6622
6708
  };
6623
6709
  outputFormat: "json";
6624
- status: 401;
6710
+ status: 400;
6625
6711
  input: {
6626
6712
  param: {
6627
6713
  orgId: string;
@@ -6630,14 +6716,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6630
6716
  } | {
6631
6717
  output: {
6632
6718
  error: {
6633
- code: "upstream_error";
6719
+ code: "param_invalid";
6634
6720
  details?: readonly Response.error.Detail[] | undefined;
6635
6721
  message: string;
6636
6722
  };
6637
6723
  requestId: string;
6638
6724
  };
6639
6725
  outputFormat: "json";
6640
- status: 502;
6726
+ status: 400;
6641
6727
  input: {
6642
6728
  param: {
6643
6729
  orgId: string;
@@ -6646,14 +6732,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6646
6732
  } | {
6647
6733
  output: {
6648
6734
  error: {
6649
- code: "param_invalid";
6735
+ code: "api_key_invalid" | "api_key_missing";
6650
6736
  details?: readonly Response.error.Detail[] | undefined;
6651
6737
  message: string;
6652
6738
  };
6653
6739
  requestId: string;
6654
6740
  };
6655
6741
  outputFormat: "json";
6656
- status: 400;
6742
+ status: 401;
6657
6743
  input: {
6658
6744
  param: {
6659
6745
  orgId: string;
@@ -6709,42 +6795,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6709
6795
  };
6710
6796
  } | {
6711
6797
  output: {
6712
- data: {
6713
- chainId: number;
6714
- createdAt: string;
6715
- environment?: "production" | "sandbox" | undefined;
6716
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6717
- expiresAt?: string | undefined;
6718
- failureCount: number;
6719
- filters: {
6720
- [x: string]: import("hono/utils/types").JSONValue;
6721
- };
6722
- id: string;
6723
- lastDeliveryAt?: string | undefined;
6724
- status: "active" | "disabled" | "paused";
6725
- updatedAt: string;
6726
- context?: {
6727
- description?: string | undefined;
6728
- metadata?: {
6729
- [x: string]: string;
6730
- } | undefined;
6731
- title?: string | undefined;
6732
- } | undefined;
6733
- destination: {
6734
- type: "url";
6735
- url: string;
6736
- } | {
6737
- type: "slack";
6738
- url: "https://hooks.slack.com/…";
6739
- } | {
6740
- token: "[redacted]";
6741
- type: "betterstack";
6742
- url: string;
6743
- };
6744
- }[];
6798
+ error: {
6799
+ code: "upstream_error";
6800
+ details?: readonly Response.error.Detail[] | undefined;
6801
+ message: string;
6802
+ };
6803
+ requestId: string;
6745
6804
  };
6746
6805
  outputFormat: "json";
6747
- status: 200;
6806
+ status: 502;
6748
6807
  input: {
6749
6808
  param: {
6750
6809
  orgId: string;
@@ -6756,15 +6815,26 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6756
6815
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
6757
6816
  $get: {
6758
6817
  output: {
6759
- error: {
6760
- code: "api_key_malformed";
6761
- details?: readonly Response.error.Detail[] | undefined;
6762
- message: string;
6763
- };
6764
- requestId: string;
6818
+ data: {
6819
+ attempt: number;
6820
+ createdAt: string;
6821
+ error?: string | undefined;
6822
+ eventId: string;
6823
+ id: string;
6824
+ requestUrl: string;
6825
+ responseMs?: number | undefined;
6826
+ responseStatus?: number | undefined;
6827
+ status: "failed" | "pending" | "succeeded";
6828
+ subscriptionId: string;
6829
+ }[];
6830
+ meta?: {
6831
+ totalCountCapped: boolean;
6832
+ totalCount: number;
6833
+ } | undefined;
6834
+ nextCursor: string | null;
6765
6835
  };
6766
6836
  outputFormat: "json";
6767
- status: 400;
6837
+ status: 200;
6768
6838
  input: {
6769
6839
  param: {
6770
6840
  id: string;
@@ -6781,14 +6851,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6781
6851
  } | {
6782
6852
  output: {
6783
6853
  error: {
6784
- code: "api_key_invalid" | "api_key_missing";
6854
+ code: "api_key_malformed";
6785
6855
  details?: readonly Response.error.Detail[] | undefined;
6786
6856
  message: string;
6787
6857
  };
6788
6858
  requestId: string;
6789
6859
  };
6790
6860
  outputFormat: "json";
6791
- status: 401;
6861
+ status: 400;
6792
6862
  input: {
6793
6863
  param: {
6794
6864
  id: string;
@@ -6829,14 +6899,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6829
6899
  } | {
6830
6900
  output: {
6831
6901
  error: {
6832
- code: "upstream_error";
6902
+ code: "param_invalid";
6833
6903
  details?: readonly Response.error.Detail[] | undefined;
6834
6904
  message: string;
6835
6905
  };
6836
6906
  requestId: string;
6837
6907
  };
6838
6908
  outputFormat: "json";
6839
- status: 502;
6909
+ status: 400;
6840
6910
  input: {
6841
6911
  param: {
6842
6912
  id: string;
@@ -6853,14 +6923,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6853
6923
  } | {
6854
6924
  output: {
6855
6925
  error: {
6856
- code: "param_invalid";
6926
+ code: "api_key_invalid" | "api_key_missing";
6857
6927
  details?: readonly Response.error.Detail[] | undefined;
6858
6928
  message: string;
6859
6929
  };
6860
6930
  requestId: string;
6861
6931
  };
6862
6932
  outputFormat: "json";
6863
- status: 400;
6933
+ status: 401;
6864
6934
  input: {
6865
6935
  param: {
6866
6936
  id: string;
@@ -6972,26 +7042,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6972
7042
  };
6973
7043
  } | {
6974
7044
  output: {
6975
- data: {
6976
- attempt: number;
6977
- createdAt: string;
6978
- error?: string | undefined;
6979
- eventId: string;
6980
- id: string;
6981
- requestUrl: string;
6982
- responseMs?: number | undefined;
6983
- responseStatus?: number | undefined;
6984
- status: "failed" | "pending" | "succeeded";
6985
- subscriptionId: string;
6986
- }[];
6987
- meta?: {
6988
- totalCountCapped: boolean;
6989
- totalCount: number;
6990
- } | undefined;
6991
- nextCursor: string | null;
7045
+ error: {
7046
+ code: "upstream_error";
7047
+ details?: readonly Response.error.Detail[] | undefined;
7048
+ message: string;
7049
+ };
7050
+ requestId: string;
6992
7051
  };
6993
7052
  outputFormat: "json";
6994
- status: 200;
7053
+ status: 502;
6995
7054
  input: {
6996
7055
  param: {
6997
7056
  id: string;
@@ -7010,168 +7069,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7010
7069
  } & {
7011
7070
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId": {
7012
7071
  $get: {
7013
- output: {
7014
- error: {
7015
- code: "api_key_malformed";
7016
- details?: readonly Response.error.Detail[] | undefined;
7017
- message: string;
7018
- };
7019
- requestId: string;
7020
- };
7021
- outputFormat: "json";
7022
- status: 400;
7023
- input: {
7024
- param: {
7025
- deliveryId: string;
7026
- id: string;
7027
- orgId: string;
7028
- };
7029
- };
7030
- } | {
7031
- output: {
7032
- error: {
7033
- code: "api_key_invalid" | "api_key_missing";
7034
- details?: readonly Response.error.Detail[] | undefined;
7035
- message: string;
7036
- };
7037
- requestId: string;
7038
- };
7039
- outputFormat: "json";
7040
- status: 401;
7041
- input: {
7042
- param: {
7043
- deliveryId: string;
7044
- id: string;
7045
- orgId: string;
7046
- };
7047
- };
7048
- } | {
7049
- output: {
7050
- error: {
7051
- code: "upstream_error";
7052
- details?: readonly Response.error.Detail[] | undefined;
7053
- message: string;
7054
- };
7055
- requestId: string;
7056
- };
7057
- outputFormat: "json";
7058
- status: 502;
7059
- input: {
7060
- param: {
7061
- deliveryId: string;
7062
- id: string;
7063
- orgId: string;
7064
- };
7065
- };
7066
- } | {
7067
- output: {
7068
- error: {
7069
- code: "param_invalid";
7070
- details?: readonly Response.error.Detail[] | undefined;
7071
- message: string;
7072
- };
7073
- requestId: string;
7074
- };
7075
- outputFormat: "json";
7076
- status: 400;
7077
- input: {
7078
- param: {
7079
- deliveryId: string;
7080
- id: string;
7081
- orgId: string;
7082
- };
7083
- };
7084
- } | {
7085
- output: {
7086
- error: {
7087
- code: "forbidden";
7088
- details?: readonly Response.error.Detail[] | undefined;
7089
- message: string;
7090
- };
7091
- requestId: string;
7092
- };
7093
- outputFormat: "json";
7094
- status: 403;
7095
- input: {
7096
- param: {
7097
- deliveryId: string;
7098
- id: string;
7099
- orgId: string;
7100
- };
7101
- };
7102
- } | {
7103
- output: {
7104
- error: {
7105
- code: "organization_not_found";
7106
- details?: readonly Response.error.Detail[] | undefined;
7107
- message: string;
7108
- };
7109
- requestId: string;
7110
- };
7111
- outputFormat: "json";
7112
- status: 404;
7113
- input: {
7114
- param: {
7115
- deliveryId: string;
7116
- id: string;
7117
- orgId: string;
7118
- };
7119
- };
7120
- } | {
7121
- output: {
7122
- error: {
7123
- code: "webhooks_not_enabled";
7124
- details?: readonly Response.error.Detail[] | undefined;
7125
- message: string;
7126
- };
7127
- requestId: string;
7128
- };
7129
- outputFormat: "json";
7130
- status: 404;
7131
- input: {
7132
- param: {
7133
- deliveryId: string;
7134
- id: string;
7135
- orgId: string;
7136
- };
7137
- };
7138
- } | {
7139
- output: {
7140
- error: {
7141
- code: "webhook_not_found";
7142
- details?: readonly Response.error.Detail[] | undefined;
7143
- message: string;
7144
- };
7145
- requestId: string;
7146
- };
7147
- outputFormat: "json";
7148
- status: 404;
7149
- input: {
7150
- param: {
7151
- deliveryId: string;
7152
- id: string;
7153
- orgId: string;
7154
- };
7155
- };
7156
- } | {
7157
- output: {
7158
- error: {
7159
- code: "delivery_not_found";
7160
- details?: readonly Response.error.Detail[] | undefined;
7161
- message: string;
7162
- };
7163
- requestId: string;
7164
- };
7165
- outputFormat: "json";
7166
- status: 404;
7167
- input: {
7168
- param: {
7169
- deliveryId: string;
7170
- id: string;
7171
- orgId: string;
7172
- };
7173
- };
7174
- } | {
7175
7072
  output: {
7176
7073
  attempt: number;
7177
7074
  createdAt: string;
@@ -7459,12 +7356,12 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7459
7356
  sourceTransferIndex?: number | undefined;
7460
7357
  status: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling";
7461
7358
  statusReason?: {
7462
- code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
7359
+ 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";
7463
7360
  message: string;
7464
7361
  } | undefined;
7465
7362
  updatedAt: string;
7466
7363
  };
7467
- type: "funding:deposit.updated";
7364
+ type: "routes:deposit.updated";
7468
7365
  } | {
7469
7366
  chainId: number;
7470
7367
  context?: {
@@ -7491,6 +7388,12 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7491
7388
  decimals: number;
7492
7389
  formatted: string;
7493
7390
  } | undefined;
7391
+ destinationAmountRequired?: {
7392
+ baseUnits: string;
7393
+ currency: string;
7394
+ decimals: number;
7395
+ formatted: string;
7396
+ } | undefined;
7494
7397
  destinationChain: {
7495
7398
  addressFormat: "base58" | "base58check" | "hex";
7496
7399
  id: string;
@@ -7578,15 +7481,16 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7578
7481
  verified: boolean;
7579
7482
  };
7580
7483
  sourceTransactionHashes?: string[] | undefined;
7484
+ subsidize: boolean;
7581
7485
  status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
7582
7486
  statusReason?: {
7583
- code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
7487
+ 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";
7584
7488
  message: string;
7585
7489
  } | undefined;
7586
7490
  updatedAt: string;
7587
7491
  version: number;
7588
7492
  };
7589
- type: "funding:transfer.updated";
7493
+ type: "routes:transfer.updated";
7590
7494
  } | {
7591
7495
  chainId: number;
7592
7496
  context?: {
@@ -7614,11 +7518,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7614
7518
  orgId: string;
7615
7519
  };
7616
7520
  };
7617
- };
7618
- };
7619
- } & {
7620
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
7621
- $post: {
7521
+ } | {
7622
7522
  output: {
7623
7523
  error: {
7624
7524
  code: "api_key_malformed";
@@ -7636,6 +7536,24 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7636
7536
  orgId: string;
7637
7537
  };
7638
7538
  };
7539
+ } | {
7540
+ output: {
7541
+ error: {
7542
+ code: "param_invalid";
7543
+ details?: readonly Response.error.Detail[] | undefined;
7544
+ message: string;
7545
+ };
7546
+ requestId: string;
7547
+ };
7548
+ outputFormat: "json";
7549
+ status: 400;
7550
+ input: {
7551
+ param: {
7552
+ deliveryId: string;
7553
+ id: string;
7554
+ orgId: string;
7555
+ };
7556
+ };
7639
7557
  } | {
7640
7558
  output: {
7641
7559
  error: {
@@ -7654,6 +7572,96 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7654
7572
  orgId: string;
7655
7573
  };
7656
7574
  };
7575
+ } | {
7576
+ output: {
7577
+ error: {
7578
+ code: "forbidden";
7579
+ details?: readonly Response.error.Detail[] | undefined;
7580
+ message: string;
7581
+ };
7582
+ requestId: string;
7583
+ };
7584
+ outputFormat: "json";
7585
+ status: 403;
7586
+ input: {
7587
+ param: {
7588
+ deliveryId: string;
7589
+ id: string;
7590
+ orgId: string;
7591
+ };
7592
+ };
7593
+ } | {
7594
+ output: {
7595
+ error: {
7596
+ code: "organization_not_found";
7597
+ details?: readonly Response.error.Detail[] | undefined;
7598
+ message: string;
7599
+ };
7600
+ requestId: string;
7601
+ };
7602
+ outputFormat: "json";
7603
+ status: 404;
7604
+ input: {
7605
+ param: {
7606
+ deliveryId: string;
7607
+ id: string;
7608
+ orgId: string;
7609
+ };
7610
+ };
7611
+ } | {
7612
+ output: {
7613
+ error: {
7614
+ code: "webhooks_not_enabled";
7615
+ details?: readonly Response.error.Detail[] | undefined;
7616
+ message: string;
7617
+ };
7618
+ requestId: string;
7619
+ };
7620
+ outputFormat: "json";
7621
+ status: 404;
7622
+ input: {
7623
+ param: {
7624
+ deliveryId: string;
7625
+ id: string;
7626
+ orgId: string;
7627
+ };
7628
+ };
7629
+ } | {
7630
+ output: {
7631
+ error: {
7632
+ code: "webhook_not_found";
7633
+ details?: readonly Response.error.Detail[] | undefined;
7634
+ message: string;
7635
+ };
7636
+ requestId: string;
7637
+ };
7638
+ outputFormat: "json";
7639
+ status: 404;
7640
+ input: {
7641
+ param: {
7642
+ deliveryId: string;
7643
+ id: string;
7644
+ orgId: string;
7645
+ };
7646
+ };
7647
+ } | {
7648
+ output: {
7649
+ error: {
7650
+ code: "delivery_not_found";
7651
+ details?: readonly Response.error.Detail[] | undefined;
7652
+ message: string;
7653
+ };
7654
+ requestId: string;
7655
+ };
7656
+ outputFormat: "json";
7657
+ status: 404;
7658
+ input: {
7659
+ param: {
7660
+ deliveryId: string;
7661
+ id: string;
7662
+ orgId: string;
7663
+ };
7664
+ };
7657
7665
  } | {
7658
7666
  output: {
7659
7667
  error: {
@@ -7672,6 +7680,45 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7672
7680
  orgId: string;
7673
7681
  };
7674
7682
  };
7683
+ };
7684
+ };
7685
+ } & {
7686
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
7687
+ $post: {
7688
+ output: {
7689
+ delivered: boolean;
7690
+ error?: string | undefined;
7691
+ eventId: string;
7692
+ responseMs?: number | undefined;
7693
+ responseStatus?: number | undefined;
7694
+ };
7695
+ outputFormat: "json";
7696
+ status: 200;
7697
+ input: {
7698
+ param: {
7699
+ deliveryId: string;
7700
+ id: string;
7701
+ orgId: string;
7702
+ };
7703
+ };
7704
+ } | {
7705
+ output: {
7706
+ error: {
7707
+ code: "api_key_malformed";
7708
+ details?: readonly Response.error.Detail[] | undefined;
7709
+ message: string;
7710
+ };
7711
+ requestId: string;
7712
+ };
7713
+ outputFormat: "json";
7714
+ status: 400;
7715
+ input: {
7716
+ param: {
7717
+ deliveryId: string;
7718
+ id: string;
7719
+ orgId: string;
7720
+ };
7721
+ };
7675
7722
  } | {
7676
7723
  output: {
7677
7724
  error: {
@@ -7690,6 +7737,24 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7690
7737
  orgId: string;
7691
7738
  };
7692
7739
  };
7740
+ } | {
7741
+ output: {
7742
+ error: {
7743
+ code: "api_key_invalid" | "api_key_missing";
7744
+ details?: readonly Response.error.Detail[] | undefined;
7745
+ message: string;
7746
+ };
7747
+ requestId: string;
7748
+ };
7749
+ outputFormat: "json";
7750
+ status: 401;
7751
+ input: {
7752
+ param: {
7753
+ deliveryId: string;
7754
+ id: string;
7755
+ orgId: string;
7756
+ };
7757
+ };
7693
7758
  } | {
7694
7759
  output: {
7695
7760
  error: {
@@ -7782,14 +7847,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7782
7847
  };
7783
7848
  } | {
7784
7849
  output: {
7785
- delivered: boolean;
7786
- error?: string | undefined;
7787
- eventId: string;
7788
- responseMs?: number | undefined;
7789
- responseStatus?: number | undefined;
7850
+ error: {
7851
+ code: "upstream_error";
7852
+ details?: readonly Response.error.Detail[] | undefined;
7853
+ message: string;
7854
+ };
7855
+ requestId: string;
7790
7856
  };
7791
7857
  outputFormat: "json";
7792
- status: 200;
7858
+ status: 502;
7793
7859
  input: {
7794
7860
  param: {
7795
7861
  deliveryId: string;
@@ -7803,15 +7869,40 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7803
7869
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
7804
7870
  $patch: {
7805
7871
  output: {
7806
- error: {
7807
- code: "api_key_malformed";
7808
- details?: readonly Response.error.Detail[] | undefined;
7809
- message: string;
7872
+ chainId: number;
7873
+ createdAt: string;
7874
+ environment?: "production" | "sandbox" | undefined;
7875
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
7876
+ expiresAt?: string | undefined;
7877
+ failureCount: number;
7878
+ filters: {
7879
+ [x: string]: import("hono/utils/types").JSONValue;
7880
+ };
7881
+ id: string;
7882
+ lastDeliveryAt?: string | undefined;
7883
+ status: "active" | "disabled" | "paused";
7884
+ updatedAt: string;
7885
+ context?: {
7886
+ description?: string | undefined;
7887
+ metadata?: {
7888
+ [x: string]: string;
7889
+ } | undefined;
7890
+ title?: string | undefined;
7891
+ } | undefined;
7892
+ destination: {
7893
+ type: "url";
7894
+ url: string;
7895
+ } | {
7896
+ type: "slack";
7897
+ url: "https://hooks.slack.com/…";
7898
+ } | {
7899
+ token: "[redacted]";
7900
+ type: "betterstack";
7901
+ url: string;
7810
7902
  };
7811
- requestId: string;
7812
7903
  };
7813
7904
  outputFormat: "json";
7814
- status: 400;
7905
+ status: 200;
7815
7906
  input: {
7816
7907
  param: {
7817
7908
  id: string;
@@ -7825,14 +7916,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7825
7916
  } | {
7826
7917
  output: {
7827
7918
  error: {
7828
- code: "api_key_invalid" | "api_key_missing";
7919
+ code: "api_key_malformed";
7829
7920
  details?: readonly Response.error.Detail[] | undefined;
7830
7921
  message: string;
7831
7922
  };
7832
7923
  requestId: string;
7833
7924
  };
7834
7925
  outputFormat: "json";
7835
- status: 401;
7926
+ status: 400;
7836
7927
  input: {
7837
7928
  param: {
7838
7929
  id: string;
@@ -7846,14 +7937,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7846
7937
  } | {
7847
7938
  output: {
7848
7939
  error: {
7849
- code: "upstream_error";
7940
+ code: "param_invalid";
7850
7941
  details?: readonly Response.error.Detail[] | undefined;
7851
7942
  message: string;
7852
7943
  };
7853
7944
  requestId: string;
7854
7945
  };
7855
7946
  outputFormat: "json";
7856
- status: 502;
7947
+ status: 400;
7857
7948
  input: {
7858
7949
  param: {
7859
7950
  id: string;
@@ -7888,14 +7979,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7888
7979
  } | {
7889
7980
  output: {
7890
7981
  error: {
7891
- code: "param_invalid";
7982
+ code: "api_key_invalid" | "api_key_missing";
7892
7983
  details?: readonly Response.error.Detail[] | undefined;
7893
7984
  message: string;
7894
7985
  };
7895
7986
  requestId: string;
7896
7987
  };
7897
7988
  outputFormat: "json";
7898
- status: 400;
7989
+ status: 401;
7899
7990
  input: {
7900
7991
  param: {
7901
7992
  id: string;
@@ -7992,40 +8083,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7992
8083
  };
7993
8084
  } | {
7994
8085
  output: {
7995
- chainId: number;
7996
- createdAt: string;
7997
- environment?: "production" | "sandbox" | undefined;
7998
- eventType: "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included";
7999
- expiresAt?: string | undefined;
8000
- failureCount: number;
8001
- filters: {
8002
- [x: string]: import("hono/utils/types").JSONValue;
8003
- };
8004
- id: string;
8005
- lastDeliveryAt?: string | undefined;
8006
- status: "active" | "disabled" | "paused";
8007
- updatedAt: string;
8008
- context?: {
8009
- description?: string | undefined;
8010
- metadata?: {
8011
- [x: string]: string;
8012
- } | undefined;
8013
- title?: string | undefined;
8014
- } | undefined;
8015
- destination: {
8016
- type: "url";
8017
- url: string;
8018
- } | {
8019
- type: "slack";
8020
- url: "https://hooks.slack.com/…";
8021
- } | {
8022
- token: "[redacted]";
8023
- type: "betterstack";
8024
- url: string;
8086
+ error: {
8087
+ code: "upstream_error";
8088
+ details?: readonly Response.error.Detail[] | undefined;
8089
+ message: string;
8025
8090
  };
8091
+ requestId: string;
8026
8092
  };
8027
8093
  outputFormat: "json";
8028
- status: 200;
8094
+ status: 502;
8029
8095
  input: {
8030
8096
  param: {
8031
8097
  id: string;
@@ -8042,15 +8108,10 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8042
8108
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
8043
8109
  $delete: {
8044
8110
  output: {
8045
- error: {
8046
- code: "api_key_malformed";
8047
- details?: readonly Response.error.Detail[] | undefined;
8048
- message: string;
8049
- };
8050
- requestId: string;
8111
+ id: string;
8051
8112
  };
8052
8113
  outputFormat: "json";
8053
- status: 400;
8114
+ status: 200;
8054
8115
  input: {
8055
8116
  param: {
8056
8117
  id: string;
@@ -8060,14 +8121,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8060
8121
  } | {
8061
8122
  output: {
8062
8123
  error: {
8063
- code: "api_key_invalid" | "api_key_missing";
8124
+ code: "api_key_malformed";
8064
8125
  details?: readonly Response.error.Detail[] | undefined;
8065
8126
  message: string;
8066
8127
  };
8067
8128
  requestId: string;
8068
8129
  };
8069
8130
  outputFormat: "json";
8070
- status: 401;
8131
+ status: 400;
8071
8132
  input: {
8072
8133
  param: {
8073
8134
  id: string;
@@ -8077,14 +8138,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8077
8138
  } | {
8078
8139
  output: {
8079
8140
  error: {
8080
- code: "upstream_error";
8141
+ code: "param_invalid";
8081
8142
  details?: readonly Response.error.Detail[] | undefined;
8082
8143
  message: string;
8083
8144
  };
8084
8145
  requestId: string;
8085
8146
  };
8086
8147
  outputFormat: "json";
8087
- status: 502;
8148
+ status: 400;
8088
8149
  input: {
8089
8150
  param: {
8090
8151
  id: string;
@@ -8094,14 +8155,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8094
8155
  } | {
8095
8156
  output: {
8096
8157
  error: {
8097
- code: "param_invalid";
8158
+ code: "api_key_invalid" | "api_key_missing";
8098
8159
  details?: readonly Response.error.Detail[] | undefined;
8099
8160
  message: string;
8100
8161
  };
8101
8162
  requestId: string;
8102
8163
  };
8103
8164
  outputFormat: "json";
8104
- status: 400;
8165
+ status: 401;
8105
8166
  input: {
8106
8167
  param: {
8107
8168
  id: string;
@@ -8178,10 +8239,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8178
8239
  };
8179
8240
  } | {
8180
8241
  output: {
8181
- id: string;
8242
+ error: {
8243
+ code: "upstream_error";
8244
+ details?: readonly Response.error.Detail[] | undefined;
8245
+ message: string;
8246
+ };
8247
+ requestId: string;
8182
8248
  };
8183
8249
  outputFormat: "json";
8184
- status: 200;
8250
+ status: 502;
8185
8251
  input: {
8186
8252
  param: {
8187
8253
  id: string;