tapimo 0.15.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (709) hide show
  1. package/README.md +137 -0
  2. package/dist/ApiKey.d.ts +1 -0
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +4 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +37 -11
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +163 -10
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +13085 -11974
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +46 -15
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +1 -1
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +1 -1
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/admin/App.d.ts +893 -191
  19. package/dist/admin/App.d.ts.map +1 -1
  20. package/dist/admin/App.js +5 -1
  21. package/dist/admin/App.js.map +1 -1
  22. package/dist/admin/apps/api-keys.d.ts +70 -70
  23. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.js +8 -3
  25. package/dist/admin/apps/api-keys.js.map +1 -1
  26. package/dist/admin/apps/earn-vaults.d.ts +66 -27
  27. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  28. package/dist/admin/apps/earn-vaults.js +36 -7
  29. package/dist/admin/apps/earn-vaults.js.map +1 -1
  30. package/dist/admin/apps/organizations.d.ts +25 -25
  31. package/dist/admin/apps/organizations.d.ts.map +1 -1
  32. package/dist/admin/apps/organizations.js +5 -4
  33. package/dist/admin/apps/organizations.js.map +1 -1
  34. package/dist/admin/apps/route-policies.d.ts +632 -0
  35. package/dist/admin/apps/route-policies.d.ts.map +1 -0
  36. package/dist/admin/apps/route-policies.js +257 -0
  37. package/dist/admin/apps/route-policies.js.map +1 -0
  38. package/dist/admin/apps/routes-support.js +39 -3
  39. package/dist/admin/apps/routes-support.js.map +1 -1
  40. package/dist/admin/apps/routes.d.ts +529 -76
  41. package/dist/admin/apps/routes.d.ts.map +1 -1
  42. package/dist/admin/apps/routes.js +82 -1
  43. package/dist/admin/apps/routes.js.map +1 -1
  44. package/dist/admin/apps/verified-tokens.d.ts +157 -157
  45. package/dist/admin/index.d.ts +0 -1
  46. package/dist/admin/index.d.ts.map +1 -1
  47. package/dist/admin/index.js +0 -1
  48. package/dist/admin/index.js.map +1 -1
  49. package/dist/admin/ui.generated.d.ts +1 -1
  50. package/dist/admin/ui.generated.d.ts.map +1 -1
  51. package/dist/admin/ui.generated.js +205 -201
  52. package/dist/admin/ui.generated.js.map +1 -1
  53. package/dist/analytics/Analytics.d.ts.map +1 -1
  54. package/dist/analytics/Analytics.js +65 -1
  55. package/dist/analytics/Analytics.js.map +1 -1
  56. package/dist/analytics/tables/requestEvents.d.ts +1 -1
  57. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  58. package/dist/analytics/tables/requestEvents.js +58 -59
  59. package/dist/analytics/tables/requestEvents.js.map +1 -1
  60. package/dist/apps/data/App.d.ts +2709 -2670
  61. package/dist/apps/data/App.d.ts.map +1 -1
  62. package/dist/apps/data/routes/activities.d.ts +357 -357
  63. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  64. package/dist/apps/data/routes/activities.js +50 -0
  65. package/dist/apps/data/routes/activities.js.map +1 -1
  66. package/dist/apps/data/routes/addresses.d.ts +248 -248
  67. package/dist/apps/data/routes/balances.d.ts +22 -22
  68. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  69. package/dist/apps/data/routes/balances.js +5 -7
  70. package/dist/apps/data/routes/balances.js.map +1 -1
  71. package/dist/apps/data/routes/blocks.d.ts +125 -125
  72. package/dist/apps/data/routes/coingecko.d.ts +54 -54
  73. package/dist/apps/data/routes/earn.d.ts +103 -12
  74. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  75. package/dist/apps/data/routes/earn.js +456 -220
  76. package/dist/apps/data/routes/earn.js.map +1 -1
  77. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  78. package/dist/apps/data/routes/exchanges.js +267 -97
  79. package/dist/apps/data/routes/exchanges.js.map +1 -1
  80. package/dist/apps/data/routes/fee-amm.d.ts +109 -127
  81. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  82. package/dist/apps/data/routes/fee-amm.js +83 -54
  83. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  84. package/dist/apps/data/routes/indexer.d.ts +43 -43
  85. package/dist/apps/data/routes/receipts.d.ts +235 -235
  86. package/dist/apps/data/routes/rpc.d.ts +30 -30
  87. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  88. package/dist/apps/data/routes/tokens.js +11 -6
  89. package/dist/apps/data/routes/tokens.js.map +1 -1
  90. package/dist/apps/data/routes/transactions.d.ts +2 -0
  91. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  92. package/dist/apps/data/routes/transactions.js +30 -22
  93. package/dist/apps/data/routes/transactions.js.map +1 -1
  94. package/dist/apps/data/routes/transfers.d.ts +77 -77
  95. package/dist/apps/data/routes/valuation.d.ts +32 -32
  96. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  97. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  98. package/dist/apps/data/routes/webhooks.js +1 -1
  99. package/dist/apps/data/routes/webhooks.js.map +1 -1
  100. package/dist/apps/data/routes/zones.d.ts +31 -31
  101. package/dist/apps/management/App.d.ts +2909 -2064
  102. package/dist/apps/management/App.d.ts.map +1 -1
  103. package/dist/apps/management/App.js +2 -0
  104. package/dist/apps/management/App.js.map +1 -1
  105. package/dist/apps/management/Billing.d.ts +2 -4
  106. package/dist/apps/management/Billing.d.ts.map +1 -1
  107. package/dist/apps/management/Billing.js +65 -26
  108. package/dist/apps/management/Billing.js.map +1 -1
  109. package/dist/apps/management/routes/api-keys.d.ts +257 -245
  110. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  111. package/dist/apps/management/routes/api-keys.js +70 -11
  112. package/dist/apps/management/routes/api-keys.js.map +1 -1
  113. package/dist/apps/management/routes/billing.d.ts +84 -84
  114. package/dist/apps/management/routes/cli.d.ts +912 -0
  115. package/dist/apps/management/routes/cli.d.ts.map +1 -0
  116. package/dist/apps/management/routes/cli.js +416 -0
  117. package/dist/apps/management/routes/cli.js.map +1 -0
  118. package/dist/apps/management/routes/faucet.d.ts +8 -8
  119. package/dist/apps/management/routes/invitations.d.ts +138 -138
  120. package/dist/apps/management/routes/invite-links.d.ts +172 -172
  121. package/dist/apps/management/routes/members.d.ts +16 -16
  122. package/dist/apps/management/routes/orgs.d.ts +104 -104
  123. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  124. package/dist/apps/management/routes/orgs.js +8 -2
  125. package/dist/apps/management/routes/orgs.js.map +1 -1
  126. package/dist/apps/management/routes/projects.d.ts +125 -125
  127. package/dist/apps/management/routes/usage.d.ts +8 -8
  128. package/dist/apps/management/routes/verified-token-requests.d.ts +86 -86
  129. package/dist/apps/management/routes/webhooks.d.ts +485 -485
  130. package/dist/apps/mpp/App.d.ts +44 -44
  131. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
  132. package/dist/apps/mpp/internal/Policy.js +4 -2
  133. package/dist/apps/mpp/internal/Policy.js.map +1 -1
  134. package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -1
  135. package/dist/apps/mpp/internal/Sponsorship.js +6 -4
  136. package/dist/apps/mpp/internal/Sponsorship.js.map +1 -1
  137. package/dist/apps/relay/App.d.ts +8 -0
  138. package/dist/apps/relay/App.d.ts.map +1 -1
  139. package/dist/apps/relay/App.js +16 -4
  140. package/dist/apps/relay/App.js.map +1 -1
  141. package/dist/apps/relay/Sponsorships.d.ts +4 -6
  142. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  143. package/dist/apps/relay/Sponsorships.js +71 -60
  144. package/dist/apps/relay/Sponsorships.js.map +1 -1
  145. package/dist/apps/routes/Access.d.ts +53 -0
  146. package/dist/apps/routes/Access.d.ts.map +1 -1
  147. package/dist/apps/routes/Access.js +121 -0
  148. package/dist/apps/routes/Access.js.map +1 -1
  149. package/dist/apps/routes/App.d.ts +397 -158
  150. package/dist/apps/routes/App.d.ts.map +1 -1
  151. package/dist/apps/routes/App.js.map +1 -1
  152. package/dist/apps/routes/routes/chains.d.ts +25 -25
  153. package/dist/apps/routes/routes/deposit-addresses.d.ts +169 -61
  154. package/dist/apps/routes/routes/deposit-addresses.d.ts.map +1 -1
  155. package/dist/apps/routes/routes/deposit-addresses.js +217 -32
  156. package/dist/apps/routes/routes/deposit-addresses.js.map +1 -1
  157. package/dist/apps/routes/routes/quotes.d.ts +171 -81
  158. package/dist/apps/routes/routes/quotes.d.ts.map +1 -1
  159. package/dist/apps/routes/routes/quotes.js +101 -27
  160. package/dist/apps/routes/routes/quotes.js.map +1 -1
  161. package/dist/apps/routes/routes/transfers.d.ts +532 -480
  162. package/dist/apps/routes/routes/transfers.d.ts.map +1 -1
  163. package/dist/apps/routes/routes/transfers.js +182 -37
  164. package/dist/apps/routes/routes/transfers.js.map +1 -1
  165. package/dist/cli/ApiKeys.d.ts +120 -0
  166. package/dist/cli/ApiKeys.d.ts.map +1 -0
  167. package/dist/cli/ApiKeys.js +138 -0
  168. package/dist/cli/ApiKeys.js.map +1 -0
  169. package/dist/cli/Cli.d.ts +92 -34
  170. package/dist/cli/Cli.d.ts.map +1 -1
  171. package/dist/cli/Cli.js +188 -11
  172. package/dist/cli/Cli.js.map +1 -1
  173. package/dist/cli/Credentials.d.ts +95 -0
  174. package/dist/cli/Credentials.d.ts.map +1 -0
  175. package/dist/cli/Credentials.js +110 -0
  176. package/dist/cli/Credentials.js.map +1 -0
  177. package/dist/cli/Spec.d.ts +59 -0
  178. package/dist/cli/Spec.d.ts.map +1 -0
  179. package/dist/cli/Spec.js +77 -0
  180. package/dist/cli/Spec.js.map +1 -0
  181. package/dist/cli/bin.js +5 -1
  182. package/dist/cli/bin.js.map +1 -1
  183. package/dist/cli/commands/admin.d.ts +5 -5
  184. package/dist/cli/commands/admin.d.ts.map +1 -1
  185. package/dist/cli/commands/auth.d.ts +73 -0
  186. package/dist/cli/commands/auth.d.ts.map +1 -0
  187. package/dist/cli/commands/auth.js +204 -0
  188. package/dist/cli/commands/auth.js.map +1 -0
  189. package/dist/cli/commands/keys.d.ts +17 -0
  190. package/dist/cli/commands/keys.d.ts.map +1 -0
  191. package/dist/cli/commands/keys.js +109 -0
  192. package/dist/cli/commands/keys.js.map +1 -0
  193. package/dist/cloudflare.d.ts +27 -2
  194. package/dist/cloudflare.d.ts.map +1 -1
  195. package/dist/cloudflare.js +144 -17
  196. package/dist/cloudflare.js.map +1 -1
  197. package/dist/db/Db.d.ts +23 -0
  198. package/dist/db/Db.d.ts.map +1 -1
  199. package/dist/db/Db.js +413 -1
  200. package/dist/db/Db.js.map +1 -1
  201. package/dist/db/Schema.d.ts +44 -1
  202. package/dist/db/Schema.d.ts.map +1 -1
  203. package/dist/db/Schema.js +56 -3
  204. package/dist/db/Schema.js.map +1 -1
  205. package/dist/db/tables/apiKeyAdmissions.d.ts +28 -2
  206. package/dist/db/tables/apiKeyAdmissions.d.ts.map +1 -1
  207. package/dist/db/tables/apiKeyAdmissions.js +65 -9
  208. package/dist/db/tables/apiKeyAdmissions.js.map +1 -1
  209. package/dist/db/tables/apiKeyOwnerTombstones.d.ts +2 -0
  210. package/dist/db/tables/apiKeyOwnerTombstones.d.ts.map +1 -1
  211. package/dist/db/tables/apiKeyOwnerTombstones.js +2 -2
  212. package/dist/db/tables/apiKeyOwnerTombstones.js.map +1 -1
  213. package/dist/db/tables/authAccounts.d.ts.map +1 -1
  214. package/dist/db/tables/authAccounts.js +1 -0
  215. package/dist/db/tables/authAccounts.js.map +1 -1
  216. package/dist/db/tables/earnVaults.d.ts +5 -1
  217. package/dist/db/tables/earnVaults.d.ts.map +1 -1
  218. package/dist/db/tables/earnVaults.js +12 -1
  219. package/dist/db/tables/earnVaults.js.map +1 -1
  220. package/dist/db/tables/organizations.d.ts +4 -2
  221. package/dist/db/tables/organizations.d.ts.map +1 -1
  222. package/dist/db/tables/organizations.js +8 -34
  223. package/dist/db/tables/organizations.js.map +1 -1
  224. package/dist/db/tables/requestUsage.d.ts +5 -1
  225. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  226. package/dist/db/tables/requestUsage.js +10 -2
  227. package/dist/db/tables/requestUsage.js.map +1 -1
  228. package/dist/db/tables/rewardEligibilityAssociations.d.ts +13 -0
  229. package/dist/db/tables/rewardEligibilityAssociations.d.ts.map +1 -1
  230. package/dist/db/tables/rewardEligibilityAssociations.js +11 -0
  231. package/dist/db/tables/rewardEligibilityAssociations.js.map +1 -1
  232. package/dist/db/tables/rewardRuns.d.ts.map +1 -1
  233. package/dist/db/tables/rewardRuns.js +4 -0
  234. package/dist/db/tables/rewardRuns.js.map +1 -1
  235. package/dist/db/tables/rewardTransactionAttempts.d.ts.map +1 -1
  236. package/dist/db/tables/rewardTransactionAttempts.js +2 -0
  237. package/dist/db/tables/rewardTransactionAttempts.js.map +1 -1
  238. package/dist/db/tables/routesDepositAddresses.d.ts +29 -0
  239. package/dist/db/tables/routesDepositAddresses.d.ts.map +1 -1
  240. package/dist/db/tables/routesDepositAddresses.js +84 -31
  241. package/dist/db/tables/routesDepositAddresses.js.map +1 -1
  242. package/dist/db/tables/routesDeposits.d.ts.map +1 -1
  243. package/dist/db/tables/routesDeposits.js +31 -21
  244. package/dist/db/tables/routesDeposits.js.map +1 -1
  245. package/dist/db/tables/routesIdempotency.d.ts.map +1 -1
  246. package/dist/db/tables/routesIdempotency.js +2 -0
  247. package/dist/db/tables/routesIdempotency.js.map +1 -1
  248. package/dist/db/tables/routesPolicies.d.ts +58 -0
  249. package/dist/db/tables/routesPolicies.d.ts.map +1 -0
  250. package/dist/db/tables/routesPolicies.js +198 -0
  251. package/dist/db/tables/routesPolicies.js.map +1 -0
  252. package/dist/db/tables/routesTransferSubsidies.d.ts +22 -0
  253. package/dist/db/tables/routesTransferSubsidies.d.ts.map +1 -1
  254. package/dist/db/tables/routesTransferSubsidies.js +41 -0
  255. package/dist/db/tables/routesTransferSubsidies.js.map +1 -1
  256. package/dist/db/tables/routesTransferSubsidyNonces.d.ts.map +1 -1
  257. package/dist/db/tables/routesTransferSubsidyNonces.js +12 -4
  258. package/dist/db/tables/routesTransferSubsidyNonces.js.map +1 -1
  259. package/dist/db/tables/routesTransfers.d.ts +26 -1
  260. package/dist/db/tables/routesTransfers.d.ts.map +1 -1
  261. package/dist/db/tables/routesTransfers.js +36 -6
  262. package/dist/db/tables/routesTransfers.js.map +1 -1
  263. package/dist/db/tables/sponsoredTransactions.d.ts +45 -13
  264. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  265. package/dist/db/tables/sponsoredTransactions.js +144 -33
  266. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  267. package/dist/db/tables/users.d.ts +2 -0
  268. package/dist/db/tables/users.d.ts.map +1 -1
  269. package/dist/db/tables/users.js +11 -0
  270. package/dist/db/tables/users.js.map +1 -1
  271. package/dist/handlers/internal/multisig.d.ts +1 -1
  272. package/dist/handlers/internal/multisig.d.ts.map +1 -1
  273. package/dist/handlers/internal/multisig.js +3 -2
  274. package/dist/handlers/internal/multisig.js.map +1 -1
  275. package/dist/handlers/relay.d.ts +2 -0
  276. package/dist/handlers/relay.d.ts.map +1 -1
  277. package/dist/handlers/relay.js +34 -15
  278. package/dist/handlers/relay.js.map +1 -1
  279. package/dist/internal/Auth.d.ts +57 -6
  280. package/dist/internal/Auth.d.ts.map +1 -1
  281. package/dist/internal/Auth.js +182 -78
  282. package/dist/internal/Auth.js.map +1 -1
  283. package/dist/internal/BetterAuth.d.ts +22 -0
  284. package/dist/internal/BetterAuth.d.ts.map +1 -1
  285. package/dist/internal/BetterAuth.js +17 -14
  286. package/dist/internal/BetterAuth.js.map +1 -1
  287. package/dist/internal/Cache.d.ts +5 -0
  288. package/dist/internal/Cache.d.ts.map +1 -1
  289. package/dist/internal/Cache.js +3 -1
  290. package/dist/internal/Cache.js.map +1 -1
  291. package/dist/internal/CliAuth.d.ts +243 -0
  292. package/dist/internal/CliAuth.d.ts.map +1 -0
  293. package/dist/internal/CliAuth.js +249 -0
  294. package/dist/internal/CliAuth.js.map +1 -0
  295. package/dist/internal/EarnSharePrices.d.ts +1 -1
  296. package/dist/internal/EarnSharePrices.d.ts.map +1 -1
  297. package/dist/internal/EarnSharePrices.js +7 -3
  298. package/dist/internal/EarnSharePrices.js.map +1 -1
  299. package/dist/internal/EarnVaults.d.ts +47 -0
  300. package/dist/internal/EarnVaults.d.ts.map +1 -1
  301. package/dist/internal/EarnVaults.js +188 -4
  302. package/dist/internal/EarnVaults.js.map +1 -1
  303. package/dist/internal/EarnWithdrawals.d.ts +73 -0
  304. package/dist/internal/EarnWithdrawals.d.ts.map +1 -0
  305. package/dist/internal/EarnWithdrawals.js +189 -0
  306. package/dist/internal/EarnWithdrawals.js.map +1 -0
  307. package/dist/internal/ExecutionContext.d.ts +21 -0
  308. package/dist/internal/ExecutionContext.d.ts.map +1 -0
  309. package/dist/internal/ExecutionContext.js +16 -0
  310. package/dist/internal/ExecutionContext.js.map +1 -0
  311. package/dist/internal/Log.d.ts +7 -3
  312. package/dist/internal/Log.d.ts.map +1 -1
  313. package/dist/internal/Log.js +163 -130
  314. package/dist/internal/Log.js.map +1 -1
  315. package/dist/internal/MetricSink.d.ts.map +1 -1
  316. package/dist/internal/MetricSink.js +26 -1
  317. package/dist/internal/MetricSink.js.map +1 -1
  318. package/dist/internal/RateLimit.d.ts +67 -0
  319. package/dist/internal/RateLimit.d.ts.map +1 -1
  320. package/dist/internal/RateLimit.js +174 -27
  321. package/dist/internal/RateLimit.js.map +1 -1
  322. package/dist/internal/Store.d.ts +6 -0
  323. package/dist/internal/Store.d.ts.map +1 -1
  324. package/dist/internal/Store.js +4 -5
  325. package/dist/internal/Store.js.map +1 -1
  326. package/dist/internal/Timing.d.ts +6 -0
  327. package/dist/internal/Timing.d.ts.map +1 -1
  328. package/dist/internal/Timing.js +21 -1
  329. package/dist/internal/Timing.js.map +1 -1
  330. package/dist/internal/Tron.d.ts +124 -0
  331. package/dist/internal/Tron.d.ts.map +1 -0
  332. package/dist/internal/Tron.js +202 -0
  333. package/dist/internal/Tron.js.map +1 -0
  334. package/dist/internal/Viem.d.ts +4 -0
  335. package/dist/internal/Viem.d.ts.map +1 -1
  336. package/dist/internal/Viem.js +25 -6
  337. package/dist/internal/Viem.js.map +1 -1
  338. package/dist/internal/rewards/Read.d.ts +2 -2
  339. package/dist/internal/rewards/Read.d.ts.map +1 -1
  340. package/dist/internal/rewards/Read.js +11 -2
  341. package/dist/internal/rewards/Read.js.map +1 -1
  342. package/dist/internal/routes/Action.d.ts +27 -0
  343. package/dist/internal/routes/Action.d.ts.map +1 -1
  344. package/dist/internal/routes/Action.js +49 -1
  345. package/dist/internal/routes/Action.js.map +1 -1
  346. package/dist/internal/routes/Chain.d.ts +2 -0
  347. package/dist/internal/routes/Chain.d.ts.map +1 -1
  348. package/dist/internal/routes/Chain.js +4 -0
  349. package/dist/internal/routes/Chain.js.map +1 -1
  350. package/dist/internal/routes/DepositAddress.d.ts.map +1 -1
  351. package/dist/internal/routes/DepositAddress.js +5 -0
  352. package/dist/internal/routes/DepositAddress.js.map +1 -1
  353. package/dist/internal/routes/Evidence.d.ts.map +1 -1
  354. package/dist/internal/routes/Evidence.js +6 -2
  355. package/dist/internal/routes/Evidence.js.map +1 -1
  356. package/dist/internal/routes/EvmTransferSettlement.d.ts +17 -0
  357. package/dist/internal/routes/EvmTransferSettlement.d.ts.map +1 -0
  358. package/dist/internal/routes/EvmTransferSettlement.js +196 -0
  359. package/dist/internal/routes/EvmTransferSettlement.js.map +1 -0
  360. package/dist/internal/routes/Policy.d.ts +161 -0
  361. package/dist/internal/routes/Policy.d.ts.map +1 -0
  362. package/dist/internal/routes/Policy.js +249 -0
  363. package/dist/internal/routes/Policy.js.map +1 -0
  364. package/dist/internal/routes/Provider.d.ts +66 -3
  365. package/dist/internal/routes/Provider.d.ts.map +1 -1
  366. package/dist/internal/routes/Provider.js +106 -27
  367. package/dist/internal/routes/Provider.js.map +1 -1
  368. package/dist/internal/routes/Quota.d.ts +57 -0
  369. package/dist/internal/routes/Quota.d.ts.map +1 -0
  370. package/dist/internal/routes/Quota.js +144 -0
  371. package/dist/internal/routes/Quota.js.map +1 -0
  372. package/dist/internal/routes/Reconciliation.d.ts.map +1 -1
  373. package/dist/internal/routes/Reconciliation.js +163 -47
  374. package/dist/internal/routes/Reconciliation.js.map +1 -1
  375. package/dist/internal/routes/SolanaTransferSettlement.d.ts +12 -0
  376. package/dist/internal/routes/SolanaTransferSettlement.d.ts.map +1 -0
  377. package/dist/internal/routes/SolanaTransferSettlement.js +220 -0
  378. package/dist/internal/routes/SolanaTransferSettlement.js.map +1 -0
  379. package/dist/internal/routes/SolanaTransferSubsidy.d.ts +172 -0
  380. package/dist/internal/routes/SolanaTransferSubsidy.d.ts.map +1 -0
  381. package/dist/internal/routes/SolanaTransferSubsidy.js +564 -0
  382. package/dist/internal/routes/SolanaTransferSubsidy.js.map +1 -0
  383. package/dist/internal/routes/Subsidy.d.ts +2 -2
  384. package/dist/internal/routes/Subsidy.d.ts.map +1 -1
  385. package/dist/internal/routes/Subsidy.js +2 -2
  386. package/dist/internal/routes/Subsidy.js.map +1 -1
  387. package/dist/internal/routes/Transfer.d.ts +229 -1
  388. package/dist/internal/routes/Transfer.d.ts.map +1 -1
  389. package/dist/internal/routes/Transfer.js +644 -7
  390. package/dist/internal/routes/Transfer.js.map +1 -1
  391. package/dist/internal/routes/TransferReconciliation.d.ts +6 -0
  392. package/dist/internal/routes/TransferReconciliation.d.ts.map +1 -1
  393. package/dist/internal/routes/TransferReconciliation.js +83 -159
  394. package/dist/internal/routes/TransferReconciliation.js.map +1 -1
  395. package/dist/internal/routes/TransferSettlement.d.ts +45 -0
  396. package/dist/internal/routes/TransferSettlement.d.ts.map +1 -0
  397. package/dist/internal/routes/TransferSettlement.js +2 -0
  398. package/dist/internal/routes/TransferSettlement.js.map +1 -0
  399. package/dist/internal/routes/TransferSubsidy.d.ts +23 -8
  400. package/dist/internal/routes/TransferSubsidy.d.ts.map +1 -1
  401. package/dist/internal/routes/TransferSubsidy.js +64 -5
  402. package/dist/internal/routes/TransferSubsidy.js.map +1 -1
  403. package/dist/internal/routes/TronTransferSettlement.d.ts +12 -0
  404. package/dist/internal/routes/TronTransferSettlement.d.ts.map +1 -0
  405. package/dist/internal/routes/TronTransferSettlement.js +201 -0
  406. package/dist/internal/routes/TronTransferSettlement.js.map +1 -0
  407. package/dist/internal/routes/TronTransferSubsidy.d.ts +174 -0
  408. package/dist/internal/routes/TronTransferSubsidy.d.ts.map +1 -0
  409. package/dist/internal/routes/TronTransferSubsidy.js +439 -0
  410. package/dist/internal/routes/TronTransferSubsidy.js.map +1 -0
  411. package/dist/internal/routes/index.d.ts +3 -0
  412. package/dist/internal/routes/index.d.ts.map +1 -1
  413. package/dist/internal/routes/index.js +3 -0
  414. package/dist/internal/routes/index.js.map +1 -1
  415. package/dist/internal/routes/providers/across.d.ts +3 -0
  416. package/dist/internal/routes/providers/across.d.ts.map +1 -1
  417. package/dist/internal/routes/providers/across.js +11 -0
  418. package/dist/internal/routes/providers/across.js.map +1 -1
  419. package/dist/internal/routes/providers/legacyMesh.d.ts +29 -0
  420. package/dist/internal/routes/providers/legacyMesh.d.ts.map +1 -0
  421. package/dist/internal/routes/providers/legacyMesh.js +474 -0
  422. package/dist/internal/routes/providers/legacyMesh.js.map +1 -0
  423. package/dist/internal/routes/providers/legacyMeshDelivery.d.ts +59 -0
  424. package/dist/internal/routes/providers/legacyMeshDelivery.d.ts.map +1 -0
  425. package/dist/internal/routes/providers/legacyMeshDelivery.js +229 -0
  426. package/dist/internal/routes/providers/legacyMeshDelivery.js.map +1 -0
  427. package/dist/internal/routes/providers/legacyMeshOutbound.d.ts +19 -0
  428. package/dist/internal/routes/providers/legacyMeshOutbound.d.ts.map +1 -0
  429. package/dist/internal/routes/providers/legacyMeshOutbound.js +457 -0
  430. package/dist/internal/routes/providers/legacyMeshOutbound.js.map +1 -0
  431. package/dist/internal/routes/providers/legacyMeshOutboundDelivery.d.ts +123 -0
  432. package/dist/internal/routes/providers/legacyMeshOutboundDelivery.d.ts.map +1 -0
  433. package/dist/internal/routes/providers/legacyMeshOutboundDelivery.js +333 -0
  434. package/dist/internal/routes/providers/legacyMeshOutboundDelivery.js.map +1 -0
  435. package/dist/internal/routes/providers/propAmm.d.ts +70 -0
  436. package/dist/internal/routes/providers/propAmm.d.ts.map +1 -0
  437. package/dist/internal/routes/providers/propAmm.js +524 -0
  438. package/dist/internal/routes/providers/propAmm.js.map +1 -0
  439. package/dist/internal/routes/providers/relay.d.ts +3 -0
  440. package/dist/internal/routes/providers/relay.d.ts.map +1 -1
  441. package/dist/internal/routes/providers/relay.js +352 -41
  442. package/dist/internal/routes/providers/relay.js.map +1 -1
  443. package/dist/internal/routes/providers/rhino.d.ts +3 -0
  444. package/dist/internal/routes/providers/rhino.d.ts.map +1 -1
  445. package/dist/internal/routes/providers/rhino.js +11 -0
  446. package/dist/internal/routes/providers/rhino.js.map +1 -1
  447. package/dist/internal/routes/providers/squid.d.ts +3 -0
  448. package/dist/internal/routes/providers/squid.d.ts.map +1 -1
  449. package/dist/internal/routes/providers/squid.js +19 -0
  450. package/dist/internal/routes/providers/squid.js.map +1 -1
  451. package/dist/internal/routes/providers/stargate.d.ts.map +1 -1
  452. package/dist/internal/routes/providers/stargate.js +22 -9
  453. package/dist/internal/routes/providers/stargate.js.map +1 -1
  454. package/dist/internal/routes/providers/symbiosis.d.ts.map +1 -1
  455. package/dist/internal/routes/providers/symbiosis.js +13 -17
  456. package/dist/internal/routes/providers/symbiosis.js.map +1 -1
  457. package/dist/providers/index.d.ts +14 -0
  458. package/dist/providers/index.d.ts.map +1 -1
  459. package/dist/providers/index.js +6 -0
  460. package/dist/providers/index.js.map +1 -1
  461. package/package.json +16 -6
  462. package/src/ApiKey.ts +7 -3
  463. package/src/ApiKeys.test.ts +652 -8
  464. package/src/ApiKeys.ts +191 -11
  465. package/src/App.test.ts +405 -18
  466. package/src/App.ts +51 -15
  467. package/src/Client.test-d.ts +157 -10
  468. package/src/Client.test.ts +4 -4
  469. package/src/Scope.ts +1 -2
  470. package/src/admin/App.ts +11 -5
  471. package/src/admin/apps/api-keys.test.ts +98 -2
  472. package/src/admin/apps/api-keys.ts +21 -12
  473. package/src/admin/apps/earn-vaults.test.ts +76 -7
  474. package/src/admin/apps/earn-vaults.ts +47 -8
  475. package/src/admin/apps/organizations.test.ts +147 -31
  476. package/src/admin/apps/organizations.ts +5 -4
  477. package/src/admin/apps/route-policies.test.ts +220 -0
  478. package/src/admin/apps/route-policies.ts +322 -0
  479. package/src/admin/apps/routes-support.test.ts +107 -2
  480. package/src/admin/apps/routes-support.ts +43 -3
  481. package/src/admin/apps/routes.test.ts +150 -0
  482. package/src/admin/apps/routes.ts +97 -1
  483. package/src/admin/apps/scopes.test.ts +1 -1
  484. package/src/admin/index.ts +0 -1
  485. package/src/admin/ui/plugin.ts +2 -1
  486. package/src/admin/ui/src/components/Dialog.tsx +1 -1
  487. package/src/admin/ui/src/components/EarnVaultForm.tsx +45 -0
  488. package/src/admin/ui/src/components/RoutePicker.tsx +79 -0
  489. package/src/admin/ui/src/lib/earn-vaults.ts +1 -1
  490. package/src/admin/ui/src/lib/route-policies.test.ts +452 -0
  491. package/src/admin/ui/src/lib/route-policies.ts +232 -0
  492. package/src/admin/ui/src/lib/routes.ts +34 -0
  493. package/src/admin/ui/src/routeTree.gen.ts +21 -0
  494. package/src/admin/ui/src/routes/api-keys.tsx +21 -2
  495. package/src/admin/ui/src/routes/early-access.tsx +1 -0
  496. package/src/admin/ui/src/routes/earn.vaults.tsx +1 -0
  497. package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +22 -0
  498. package/src/admin/ui/src/routes/earn.vaults_.new.tsx +10 -0
  499. package/src/admin/ui/src/routes/organizations.tsx +1 -0
  500. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +18 -3
  501. package/src/admin/ui/src/routes/route-policies.tsx +678 -0
  502. package/src/admin/ui/src/routes/routes.tsx +85 -2
  503. package/src/admin/ui/src/routes/routes_.support.tsx +6 -22
  504. package/src/admin/ui/src/routes/subsidies.tsx +1 -0
  505. package/src/admin/ui/src/routes/verified-tokens.tsx +1 -0
  506. package/src/admin/ui.generated.ts +258 -202
  507. package/src/analytics/Analytics.test.ts +4 -50
  508. package/src/analytics/Analytics.ts +65 -1
  509. package/src/analytics/tables/requestEvents.test.ts +402 -1
  510. package/src/analytics/tables/requestEvents.ts +62 -93
  511. package/src/apps/data/routes/activities.test.ts +315 -14
  512. package/src/apps/data/routes/activities.ts +60 -0
  513. package/src/apps/data/routes/balances.ts +5 -7
  514. package/src/apps/data/routes/earn.bench.ts +18 -0
  515. package/src/apps/data/routes/earn.local.test.ts +507 -0
  516. package/src/apps/data/routes/earn.test.ts +405 -127
  517. package/src/apps/data/routes/earn.ts +660 -270
  518. package/src/apps/data/routes/exchanges.bench.ts +3 -1
  519. package/src/apps/data/routes/exchanges.test.ts +166 -2
  520. package/src/apps/data/routes/exchanges.ts +308 -101
  521. package/src/apps/data/routes/fee-amm.test.ts +134 -2
  522. package/src/apps/data/routes/fee-amm.ts +122 -60
  523. package/src/apps/data/routes/receipts.test.ts +21 -18
  524. package/src/apps/data/routes/rpc.test.ts +2 -2
  525. package/src/apps/data/routes/tokens.provenance.test.ts +157 -0
  526. package/src/apps/data/routes/tokens.test.ts +4 -4
  527. package/src/apps/data/routes/tokens.ts +11 -6
  528. package/src/apps/data/routes/transactions.test.ts +29 -0
  529. package/src/apps/data/routes/transactions.ts +33 -22
  530. package/src/apps/data/routes/webhooks.test.ts +12 -3
  531. package/src/apps/data/routes/webhooks.ts +2 -1
  532. package/src/apps/management/App.ts +4 -0
  533. package/src/apps/management/Billing.test.ts +253 -27
  534. package/src/apps/management/Billing.ts +83 -29
  535. package/src/apps/management/routes/api-keys.test.ts +1 -1
  536. package/src/apps/management/routes/api-keys.ts +85 -11
  537. package/src/apps/management/routes/billing.test.ts +68 -4
  538. package/src/apps/management/routes/cli.test.ts +370 -0
  539. package/src/apps/management/routes/cli.ts +533 -0
  540. package/src/apps/management/routes/me.test.ts +14 -4
  541. package/src/apps/management/routes/orgs.test.ts +108 -4
  542. package/src/apps/management/routes/orgs.ts +7 -2
  543. package/src/apps/management/routes/usage.test.ts +2 -2
  544. package/src/apps/mpp/internal/Policy.test.ts +51 -4
  545. package/src/apps/mpp/internal/Policy.ts +6 -2
  546. package/src/apps/mpp/internal/Sponsorship.test.ts +29 -0
  547. package/src/apps/mpp/internal/Sponsorship.ts +6 -4
  548. package/src/apps/relay/App.test.ts +85 -1
  549. package/src/apps/relay/App.ts +28 -4
  550. package/src/apps/relay/Sponsorships.test.ts +97 -1
  551. package/src/apps/relay/Sponsorships.ts +77 -66
  552. package/src/apps/routes/Access.test.ts +319 -0
  553. package/src/apps/routes/Access.ts +147 -0
  554. package/src/apps/routes/App.ts +10 -0
  555. package/src/apps/routes/routes/chains.test.ts +3 -2
  556. package/src/apps/routes/routes/deposit-addresses.test.ts +978 -34
  557. package/src/apps/routes/routes/deposit-addresses.ts +243 -32
  558. package/src/apps/routes/routes/propAmm.local.test.ts +951 -0
  559. package/src/apps/routes/routes/quotes.test.ts +81 -8
  560. package/src/apps/routes/routes/quotes.ts +109 -27
  561. package/src/apps/routes/routes/transfers.test.ts +252 -15
  562. package/src/apps/routes/routes/transfers.ts +212 -33
  563. package/src/cli/ApiKeys.test.ts +265 -0
  564. package/src/cli/ApiKeys.ts +189 -0
  565. package/src/cli/Cli.test.ts +188 -0
  566. package/src/cli/Cli.ts +280 -12
  567. package/src/cli/Credentials.test.ts +122 -0
  568. package/src/cli/Credentials.ts +144 -0
  569. package/src/cli/Spec.test.ts +133 -0
  570. package/src/cli/Spec.ts +132 -0
  571. package/src/cli/bin.test.ts +49 -0
  572. package/src/cli/bin.ts +5 -1
  573. package/src/cli/commands/auth.test.ts +138 -0
  574. package/src/cli/commands/auth.ts +254 -0
  575. package/src/cli/commands/keys.test.ts +68 -0
  576. package/src/cli/commands/keys.ts +125 -0
  577. package/src/cloudflare.ts +184 -36
  578. package/src/db/Db.test.ts +877 -0
  579. package/src/db/Db.ts +498 -1
  580. package/src/db/Schema.ts +75 -4
  581. package/src/db/tables/apiKeyAdmissions.test.ts +57 -0
  582. package/src/db/tables/apiKeyAdmissions.ts +101 -11
  583. package/src/db/tables/apiKeyOwnerTombstones.ts +2 -2
  584. package/src/db/tables/authAccounts.test.ts +30 -0
  585. package/src/db/tables/authAccounts.ts +1 -0
  586. package/src/db/tables/earnVaults.test.ts +34 -0
  587. package/src/db/tables/earnVaults.ts +17 -2
  588. package/src/db/tables/organizations.test.ts +148 -84
  589. package/src/db/tables/organizations.ts +11 -43
  590. package/src/db/tables/requestUsage.ts +13 -2
  591. package/src/db/tables/rewardCampaigns.test.ts +163 -0
  592. package/src/db/tables/rewardEligibilityAssociations.test.ts +14 -0
  593. package/src/db/tables/rewardEligibilityAssociations.ts +24 -0
  594. package/src/db/tables/rewardRuns.ts +4 -0
  595. package/src/db/tables/rewardTransactionAttempts.ts +2 -0
  596. package/src/db/tables/routesDepositAddresses.test.ts +263 -0
  597. package/src/db/tables/routesDepositAddresses.ts +118 -34
  598. package/src/db/tables/routesDeposits.test.ts +66 -5
  599. package/src/db/tables/routesDeposits.ts +47 -26
  600. package/src/db/tables/routesIdempotency.test.ts +80 -0
  601. package/src/db/tables/routesIdempotency.ts +2 -0
  602. package/src/db/tables/routesPolicies.test.ts +143 -0
  603. package/src/db/tables/routesPolicies.ts +251 -0
  604. package/src/db/tables/routesTransferSubsidies.ts +64 -0
  605. package/src/db/tables/routesTransferSubsidyNonces.ts +16 -4
  606. package/src/db/tables/routesTransfers.test.ts +183 -2
  607. package/src/db/tables/routesTransfers.ts +65 -6
  608. package/src/db/tables/sponsoredTransactions.test.ts +351 -76
  609. package/src/db/tables/sponsoredTransactions.ts +182 -38
  610. package/src/db/tables/users.test.ts +51 -0
  611. package/src/db/tables/users.ts +12 -0
  612. package/src/handlers/internal/multisig.store.test.ts +120 -0
  613. package/src/handlers/internal/multisig.test.ts +389 -0
  614. package/src/handlers/internal/multisig.ts +13 -10
  615. package/src/handlers/relay.test.ts +259 -83
  616. package/src/handlers/relay.ts +36 -17
  617. package/src/internal/Auth.test.ts +291 -8
  618. package/src/internal/Auth.ts +227 -96
  619. package/src/internal/BetterAuth.test.ts +58 -22
  620. package/src/internal/BetterAuth.ts +23 -17
  621. package/src/internal/Cache.ts +3 -1
  622. package/src/internal/CliAuth.test.ts +279 -0
  623. package/src/internal/CliAuth.ts +319 -0
  624. package/src/internal/EarnSharePrices.test.ts +25 -0
  625. package/src/internal/EarnSharePrices.ts +9 -2
  626. package/src/internal/EarnVaults.test.ts +67 -0
  627. package/src/internal/EarnVaults.ts +299 -4
  628. package/src/internal/EarnWithdrawals.test.ts +315 -0
  629. package/src/internal/EarnWithdrawals.ts +266 -0
  630. package/src/internal/ExecutionContext.ts +31 -0
  631. package/src/internal/Log.test.ts +210 -0
  632. package/src/internal/Log.ts +180 -142
  633. package/src/internal/MetricSink.test.ts +190 -15
  634. package/src/internal/MetricSink.ts +27 -1
  635. package/src/internal/RateLimit.test.ts +144 -8
  636. package/src/internal/RateLimit.ts +254 -26
  637. package/src/internal/Store.ts +4 -5
  638. package/src/internal/Timing.test.ts +32 -0
  639. package/src/internal/Timing.ts +20 -1
  640. package/src/internal/Tron.test-d.ts +22 -0
  641. package/src/internal/Tron.test.ts +94 -0
  642. package/src/internal/Tron.ts +289 -0
  643. package/src/internal/Viem.rpc.test.ts +76 -0
  644. package/src/internal/Viem.ts +29 -6
  645. package/src/internal/rewards/Read.test.ts +109 -0
  646. package/src/internal/rewards/Read.ts +13 -4
  647. package/src/internal/routes/Action.test.ts +70 -0
  648. package/src/internal/routes/Action.ts +76 -1
  649. package/src/internal/routes/Chain.test.ts +18 -0
  650. package/src/internal/routes/Chain.ts +5 -0
  651. package/src/internal/routes/DepositAddress.ts +5 -0
  652. package/src/internal/routes/Evidence.test.ts +64 -0
  653. package/src/internal/routes/Evidence.ts +11 -3
  654. package/src/internal/routes/EvmTransferSettlement.ts +213 -0
  655. package/src/internal/routes/Policy.test.ts +316 -0
  656. package/src/internal/routes/Policy.ts +399 -0
  657. package/src/internal/routes/Provider.test.ts +103 -2
  658. package/src/internal/routes/Provider.ts +149 -27
  659. package/src/internal/routes/Quota.test.ts +149 -0
  660. package/src/internal/routes/Quota.ts +226 -0
  661. package/src/internal/routes/Reconciliation.local.test.ts +285 -0
  662. package/src/internal/routes/Reconciliation.test.ts +371 -13
  663. package/src/internal/routes/Reconciliation.ts +193 -42
  664. package/src/internal/routes/SolanaTransferSettlement.ts +232 -0
  665. package/src/internal/routes/SolanaTransferSubsidy.test.ts +471 -0
  666. package/src/internal/routes/SolanaTransferSubsidy.ts +760 -0
  667. package/src/internal/routes/SourceObservation.test.ts +221 -0
  668. package/src/internal/routes/Subsidy.local.test.ts +46 -0
  669. package/src/internal/routes/Subsidy.ts +4 -2
  670. package/src/internal/routes/Transfer.solana.test.ts +389 -0
  671. package/src/internal/routes/Transfer.test.ts +130 -1
  672. package/src/internal/routes/Transfer.tron.test.ts +172 -0
  673. package/src/internal/routes/Transfer.ts +866 -8
  674. package/src/internal/routes/TransferReconciliation.test.ts +26 -4
  675. package/src/internal/routes/TransferReconciliation.ts +91 -166
  676. package/src/internal/routes/TransferSettlement.ts +48 -0
  677. package/src/internal/routes/TransferSubsidy.local.test.ts +143 -0
  678. package/src/internal/routes/TransferSubsidy.test.ts +34 -4
  679. package/src/internal/routes/TransferSubsidy.ts +87 -12
  680. package/src/internal/routes/TronTransferSettlement.ts +212 -0
  681. package/src/internal/routes/TronTransferSubsidy.test.ts +109 -0
  682. package/src/internal/routes/TronTransferSubsidy.ts +619 -0
  683. package/src/internal/routes/index.test.ts +3 -0
  684. package/src/internal/routes/index.ts +3 -0
  685. package/src/internal/routes/providers/across.ts +13 -0
  686. package/src/internal/routes/providers/index.test.ts +141 -0
  687. package/src/internal/routes/providers/legacyMesh.test.ts +484 -0
  688. package/src/internal/routes/providers/legacyMesh.ts +633 -0
  689. package/src/internal/routes/providers/legacyMeshDelivery.test.ts +306 -0
  690. package/src/internal/routes/providers/legacyMeshDelivery.ts +320 -0
  691. package/src/internal/routes/providers/legacyMeshOutbound.test.ts +401 -0
  692. package/src/internal/routes/providers/legacyMeshOutbound.ts +566 -0
  693. package/src/internal/routes/providers/legacyMeshOutboundDelivery.ts +473 -0
  694. package/src/internal/routes/providers/propAmm.ts +640 -0
  695. package/src/internal/routes/providers/relay.test.ts +1263 -41
  696. package/src/internal/routes/providers/relay.ts +423 -38
  697. package/src/internal/routes/providers/rhino.ts +14 -1
  698. package/src/internal/routes/providers/squid.ts +21 -0
  699. package/src/internal/routes/providers/stargate.test.ts +105 -1
  700. package/src/internal/routes/providers/stargate.ts +22 -9
  701. package/src/internal/routes/providers/symbiosis.ts +13 -47
  702. package/src/providers/index.test.ts +2 -0
  703. package/src/providers/index.ts +18 -0
  704. package/dist/admin/Access.d.ts +0 -39
  705. package/dist/admin/Access.d.ts.map +0 -1
  706. package/dist/admin/Access.js +0 -73
  707. package/dist/admin/Access.js.map +0 -1
  708. package/src/admin/Access.test.ts +0 -130
  709. package/src/admin/Access.ts +0 -85
@@ -1248,85 +1248,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1248
1248
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks": {
1249
1249
  $post: {
1250
1250
  output: {
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;
1251
+ error: {
1252
+ code: "chain_id_unsupported";
1253
+ details?: readonly Response.error.Detail[] | undefined;
1254
+ message: string;
1326
1255
  };
1256
+ requestId: string;
1327
1257
  };
1328
1258
  outputFormat: "json";
1329
- status: 200;
1259
+ status: 400;
1330
1260
  input: {
1331
1261
  param: {
1332
1262
  orgId: string;
@@ -1700,14 +1630,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1700
1630
  } | {
1701
1631
  output: {
1702
1632
  error: {
1703
- code: "api_key_malformed";
1633
+ code: "upstream_error";
1704
1634
  details?: readonly Response.error.Detail[] | undefined;
1705
1635
  message: string;
1706
1636
  };
1707
1637
  requestId: string;
1708
1638
  };
1709
1639
  outputFormat: "json";
1710
- status: 400;
1640
+ status: 502;
1711
1641
  input: {
1712
1642
  param: {
1713
1643
  orgId: string;
@@ -2081,7 +2011,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2081
2011
  } | {
2082
2012
  output: {
2083
2013
  error: {
2084
- code: "chain_id_unsupported";
2014
+ code: "api_key_malformed";
2085
2015
  details?: readonly Response.error.Detail[] | undefined;
2086
2016
  message: string;
2087
2017
  };
@@ -2462,14 +2392,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2462
2392
  } | {
2463
2393
  output: {
2464
2394
  error: {
2465
- code: "param_invalid";
2395
+ code: "api_key_invalid" | "api_key_missing";
2466
2396
  details?: readonly Response.error.Detail[] | undefined;
2467
2397
  message: string;
2468
2398
  };
2469
2399
  requestId: string;
2470
2400
  };
2471
2401
  outputFormat: "json";
2472
- status: 400;
2402
+ status: 401;
2473
2403
  input: {
2474
2404
  param: {
2475
2405
  orgId: string;
@@ -3224,14 +3154,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3224
3154
  } | {
3225
3155
  output: {
3226
3156
  error: {
3227
- code: "event_type_unsupported";
3157
+ code: "webhooks_not_enabled";
3228
3158
  details?: readonly Response.error.Detail[] | undefined;
3229
3159
  message: string;
3230
3160
  };
3231
3161
  requestId: string;
3232
3162
  };
3233
3163
  outputFormat: "json";
3234
- status: 400;
3164
+ status: 404;
3235
3165
  input: {
3236
3166
  param: {
3237
3167
  orgId: string;
@@ -3605,7 +3535,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3605
3535
  } | {
3606
3536
  output: {
3607
3537
  error: {
3608
- code: "url_invalid";
3538
+ code: "event_type_unsupported";
3609
3539
  details?: readonly Response.error.Detail[] | undefined;
3610
3540
  message: string;
3611
3541
  };
@@ -3986,7 +3916,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3986
3916
  } | {
3987
3917
  output: {
3988
3918
  error: {
3989
- code: "filters_invalid";
3919
+ code: "url_invalid";
3990
3920
  details?: readonly Response.error.Detail[] | undefined;
3991
3921
  message: string;
3992
3922
  };
@@ -4367,14 +4297,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4367
4297
  } | {
4368
4298
  output: {
4369
4299
  error: {
4370
- code: "api_key_invalid" | "api_key_missing";
4300
+ code: "filters_invalid";
4371
4301
  details?: readonly Response.error.Detail[] | undefined;
4372
4302
  message: string;
4373
4303
  };
4374
4304
  requestId: string;
4375
4305
  };
4376
4306
  outputFormat: "json";
4377
- status: 401;
4307
+ status: 400;
4378
4308
  input: {
4379
4309
  param: {
4380
4310
  orgId: string;
@@ -4748,7 +4678,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4748
4678
  } | {
4749
4679
  output: {
4750
4680
  error: {
4751
- code: "forbidden";
4681
+ code: "limit_exceeded";
4752
4682
  details?: readonly Response.error.Detail[] | undefined;
4753
4683
  message: string;
4754
4684
  };
@@ -5129,14 +5059,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5129
5059
  } | {
5130
5060
  output: {
5131
5061
  error: {
5132
- code: "limit_exceeded";
5062
+ code: "param_invalid";
5133
5063
  details?: readonly Response.error.Detail[] | undefined;
5134
5064
  message: string;
5135
5065
  };
5136
5066
  requestId: string;
5137
5067
  };
5138
5068
  outputFormat: "json";
5139
- status: 403;
5069
+ status: 400;
5140
5070
  input: {
5141
5071
  param: {
5142
5072
  orgId: string;
@@ -5891,14 +5821,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5891
5821
  } | {
5892
5822
  output: {
5893
5823
  error: {
5894
- code: "webhooks_not_enabled";
5824
+ code: "forbidden";
5895
5825
  details?: readonly Response.error.Detail[] | undefined;
5896
5826
  message: string;
5897
5827
  };
5898
5828
  requestId: string;
5899
5829
  };
5900
5830
  outputFormat: "json";
5901
- status: 404;
5831
+ status: 403;
5902
5832
  input: {
5903
5833
  param: {
5904
5834
  orgId: string;
@@ -6271,15 +6201,85 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6271
6201
  };
6272
6202
  } | {
6273
6203
  output: {
6274
- error: {
6275
- code: "upstream_error";
6276
- details?: readonly Response.error.Detail[] | undefined;
6277
- message: string;
6204
+ chainId: number;
6205
+ createdAt: string;
6206
+ environment?: "production" | "sandbox" | undefined;
6207
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6208
+ expiresAt?: string | undefined;
6209
+ failureCount: number;
6210
+ filters: {
6211
+ [x: string]: import("hono/utils/types").JSONValue;
6212
+ };
6213
+ id: string;
6214
+ lastDeliveryAt?: string | undefined;
6215
+ status: "active" | "disabled" | "paused";
6216
+ updatedAt: string;
6217
+ context?: {
6218
+ description?: string | undefined;
6219
+ metadata?: {
6220
+ [x: string]: string;
6221
+ } | undefined;
6222
+ title?: string | undefined;
6223
+ } | undefined;
6224
+ destination: {
6225
+ type: "url";
6226
+ url: string;
6227
+ };
6228
+ secret: string;
6229
+ } | {
6230
+ chainId: number;
6231
+ createdAt: string;
6232
+ environment?: "production" | "sandbox" | undefined;
6233
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6234
+ expiresAt?: string | undefined;
6235
+ failureCount: number;
6236
+ filters: {
6237
+ [x: string]: import("hono/utils/types").JSONValue;
6238
+ };
6239
+ id: string;
6240
+ lastDeliveryAt?: string | undefined;
6241
+ status: "active" | "disabled" | "paused";
6242
+ updatedAt: string;
6243
+ context?: {
6244
+ description?: string | undefined;
6245
+ metadata?: {
6246
+ [x: string]: string;
6247
+ } | undefined;
6248
+ title?: string | undefined;
6249
+ } | undefined;
6250
+ destination: {
6251
+ type: "slack";
6252
+ url: "https://hooks.slack.com/…";
6253
+ };
6254
+ } | {
6255
+ chainId: number;
6256
+ createdAt: string;
6257
+ environment?: "production" | "sandbox" | undefined;
6258
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6259
+ expiresAt?: string | undefined;
6260
+ failureCount: number;
6261
+ filters: {
6262
+ [x: string]: import("hono/utils/types").JSONValue;
6263
+ };
6264
+ id: string;
6265
+ lastDeliveryAt?: string | undefined;
6266
+ status: "active" | "disabled" | "paused";
6267
+ updatedAt: string;
6268
+ context?: {
6269
+ description?: string | undefined;
6270
+ metadata?: {
6271
+ [x: string]: string;
6272
+ } | undefined;
6273
+ title?: string | undefined;
6274
+ } | undefined;
6275
+ destination: {
6276
+ token: "[redacted]";
6277
+ type: "betterstack";
6278
+ url: string;
6278
6279
  };
6279
- requestId: string;
6280
6280
  };
6281
6281
  outputFormat: "json";
6282
- status: 502;
6282
+ status: 200;
6283
6283
  input: {
6284
6284
  param: {
6285
6285
  orgId: string;
@@ -6656,42 +6656,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6656
6656
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks": {
6657
6657
  $get: {
6658
6658
  output: {
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
- }[];
6659
+ error: {
6660
+ code: "upstream_error";
6661
+ details?: readonly Response.error.Detail[] | undefined;
6662
+ message: string;
6663
+ };
6664
+ requestId: string;
6692
6665
  };
6693
6666
  outputFormat: "json";
6694
- status: 200;
6667
+ status: 502;
6695
6668
  input: {
6696
6669
  param: {
6697
6670
  orgId: string;
@@ -6716,14 +6689,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6716
6689
  } | {
6717
6690
  output: {
6718
6691
  error: {
6719
- code: "param_invalid";
6692
+ code: "api_key_invalid" | "api_key_missing";
6720
6693
  details?: readonly Response.error.Detail[] | undefined;
6721
6694
  message: string;
6722
6695
  };
6723
6696
  requestId: string;
6724
6697
  };
6725
6698
  outputFormat: "json";
6726
- status: 400;
6699
+ status: 401;
6727
6700
  input: {
6728
6701
  param: {
6729
6702
  orgId: string;
@@ -6732,14 +6705,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6732
6705
  } | {
6733
6706
  output: {
6734
6707
  error: {
6735
- code: "api_key_invalid" | "api_key_missing";
6708
+ code: "webhooks_not_enabled";
6736
6709
  details?: readonly Response.error.Detail[] | undefined;
6737
6710
  message: string;
6738
6711
  };
6739
6712
  requestId: string;
6740
6713
  };
6741
6714
  outputFormat: "json";
6742
- status: 401;
6715
+ status: 404;
6743
6716
  input: {
6744
6717
  param: {
6745
6718
  orgId: string;
@@ -6748,14 +6721,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6748
6721
  } | {
6749
6722
  output: {
6750
6723
  error: {
6751
- code: "forbidden";
6724
+ code: "param_invalid";
6752
6725
  details?: readonly Response.error.Detail[] | undefined;
6753
6726
  message: string;
6754
6727
  };
6755
6728
  requestId: string;
6756
6729
  };
6757
6730
  outputFormat: "json";
6758
- status: 403;
6731
+ status: 400;
6759
6732
  input: {
6760
6733
  param: {
6761
6734
  orgId: string;
@@ -6780,14 +6753,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6780
6753
  } | {
6781
6754
  output: {
6782
6755
  error: {
6783
- code: "webhooks_not_enabled";
6756
+ code: "forbidden";
6784
6757
  details?: readonly Response.error.Detail[] | undefined;
6785
6758
  message: string;
6786
6759
  };
6787
6760
  requestId: string;
6788
6761
  };
6789
6762
  outputFormat: "json";
6790
- status: 404;
6763
+ status: 403;
6791
6764
  input: {
6792
6765
  param: {
6793
6766
  orgId: string;
@@ -6795,15 +6768,42 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6795
6768
  };
6796
6769
  } | {
6797
6770
  output: {
6798
- error: {
6799
- code: "upstream_error";
6800
- details?: readonly Response.error.Detail[] | undefined;
6801
- message: string;
6802
- };
6803
- requestId: string;
6771
+ data: {
6772
+ chainId: number;
6773
+ createdAt: string;
6774
+ environment?: "production" | "sandbox" | undefined;
6775
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
6776
+ expiresAt?: string | undefined;
6777
+ failureCount: number;
6778
+ filters: {
6779
+ [x: string]: import("hono/utils/types").JSONValue;
6780
+ };
6781
+ id: string;
6782
+ lastDeliveryAt?: string | undefined;
6783
+ status: "active" | "disabled" | "paused";
6784
+ updatedAt: string;
6785
+ context?: {
6786
+ description?: string | undefined;
6787
+ metadata?: {
6788
+ [x: string]: string;
6789
+ } | undefined;
6790
+ title?: string | undefined;
6791
+ } | undefined;
6792
+ destination: {
6793
+ type: "url";
6794
+ url: string;
6795
+ } | {
6796
+ type: "slack";
6797
+ url: "https://hooks.slack.com/…";
6798
+ } | {
6799
+ token: "[redacted]";
6800
+ type: "betterstack";
6801
+ url: string;
6802
+ };
6803
+ }[];
6804
6804
  };
6805
6805
  outputFormat: "json";
6806
- status: 502;
6806
+ status: 200;
6807
6807
  input: {
6808
6808
  param: {
6809
6809
  orgId: string;
@@ -6815,26 +6815,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6815
6815
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
6816
6816
  $get: {
6817
6817
  output: {
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;
6818
+ error: {
6819
+ code: "upstream_error";
6820
+ details?: readonly Response.error.Detail[] | undefined;
6821
+ message: string;
6822
+ };
6823
+ requestId: string;
6835
6824
  };
6836
6825
  outputFormat: "json";
6837
- status: 200;
6826
+ status: 502;
6838
6827
  input: {
6839
6828
  param: {
6840
6829
  id: string;
@@ -6851,7 +6840,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6851
6840
  } | {
6852
6841
  output: {
6853
6842
  error: {
6854
- code: "api_key_malformed";
6843
+ code: "query_invalid";
6855
6844
  details?: readonly Response.error.Detail[] | undefined;
6856
6845
  message: string;
6857
6846
  };
@@ -6875,7 +6864,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6875
6864
  } | {
6876
6865
  output: {
6877
6866
  error: {
6878
- code: "query_invalid";
6867
+ code: "api_key_malformed";
6879
6868
  details?: readonly Response.error.Detail[] | undefined;
6880
6869
  message: string;
6881
6870
  };
@@ -6899,14 +6888,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6899
6888
  } | {
6900
6889
  output: {
6901
6890
  error: {
6902
- code: "param_invalid";
6891
+ code: "api_key_invalid" | "api_key_missing";
6903
6892
  details?: readonly Response.error.Detail[] | undefined;
6904
6893
  message: string;
6905
6894
  };
6906
6895
  requestId: string;
6907
6896
  };
6908
6897
  outputFormat: "json";
6909
- status: 400;
6898
+ status: 401;
6910
6899
  input: {
6911
6900
  param: {
6912
6901
  id: string;
@@ -6923,14 +6912,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6923
6912
  } | {
6924
6913
  output: {
6925
6914
  error: {
6926
- code: "api_key_invalid" | "api_key_missing";
6915
+ code: "webhooks_not_enabled";
6927
6916
  details?: readonly Response.error.Detail[] | undefined;
6928
6917
  message: string;
6929
6918
  };
6930
6919
  requestId: string;
6931
6920
  };
6932
6921
  outputFormat: "json";
6933
- status: 401;
6922
+ status: 404;
6934
6923
  input: {
6935
6924
  param: {
6936
6925
  id: string;
@@ -6947,14 +6936,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6947
6936
  } | {
6948
6937
  output: {
6949
6938
  error: {
6950
- code: "forbidden";
6939
+ code: "param_invalid";
6951
6940
  details?: readonly Response.error.Detail[] | undefined;
6952
6941
  message: string;
6953
6942
  };
6954
6943
  requestId: string;
6955
6944
  };
6956
6945
  outputFormat: "json";
6957
- status: 403;
6946
+ status: 400;
6958
6947
  input: {
6959
6948
  param: {
6960
6949
  id: string;
@@ -6971,7 +6960,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6971
6960
  } | {
6972
6961
  output: {
6973
6962
  error: {
6974
- code: "organization_not_found";
6963
+ code: "webhook_not_found";
6975
6964
  details?: readonly Response.error.Detail[] | undefined;
6976
6965
  message: string;
6977
6966
  };
@@ -6995,7 +6984,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6995
6984
  } | {
6996
6985
  output: {
6997
6986
  error: {
6998
- code: "webhooks_not_enabled";
6987
+ code: "organization_not_found";
6999
6988
  details?: readonly Response.error.Detail[] | undefined;
7000
6989
  message: string;
7001
6990
  };
@@ -7019,14 +7008,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7019
7008
  } | {
7020
7009
  output: {
7021
7010
  error: {
7022
- code: "webhook_not_found";
7011
+ code: "forbidden";
7023
7012
  details?: readonly Response.error.Detail[] | undefined;
7024
7013
  message: string;
7025
7014
  };
7026
7015
  requestId: string;
7027
7016
  };
7028
7017
  outputFormat: "json";
7029
- status: 404;
7018
+ status: 403;
7030
7019
  input: {
7031
7020
  param: {
7032
7021
  id: string;
@@ -7042,15 +7031,26 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7042
7031
  };
7043
7032
  } | {
7044
7033
  output: {
7045
- error: {
7046
- code: "upstream_error";
7047
- details?: readonly Response.error.Detail[] | undefined;
7048
- message: string;
7049
- };
7050
- requestId: string;
7034
+ data: {
7035
+ attempt: number;
7036
+ createdAt: string;
7037
+ error?: string | undefined;
7038
+ eventId: string;
7039
+ id: string;
7040
+ requestUrl: string;
7041
+ responseMs?: number | undefined;
7042
+ responseStatus?: number | undefined;
7043
+ status: "failed" | "pending" | "succeeded";
7044
+ subscriptionId: string;
7045
+ }[];
7046
+ meta?: {
7047
+ totalCountCapped: boolean;
7048
+ totalCount: number;
7049
+ } | undefined;
7050
+ nextCursor: string | null;
7051
7051
  };
7052
7052
  outputFormat: "json";
7053
- status: 502;
7053
+ status: 200;
7054
7054
  input: {
7055
7055
  param: {
7056
7056
  id: string;
@@ -7069,6 +7069,168 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7069
7069
  } & {
7070
7070
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId": {
7071
7071
  $get: {
7072
+ output: {
7073
+ error: {
7074
+ code: "upstream_error";
7075
+ details?: readonly Response.error.Detail[] | undefined;
7076
+ message: string;
7077
+ };
7078
+ requestId: string;
7079
+ };
7080
+ outputFormat: "json";
7081
+ status: 502;
7082
+ input: {
7083
+ param: {
7084
+ deliveryId: string;
7085
+ id: string;
7086
+ orgId: string;
7087
+ };
7088
+ };
7089
+ } | {
7090
+ output: {
7091
+ error: {
7092
+ code: "api_key_malformed";
7093
+ details?: readonly Response.error.Detail[] | undefined;
7094
+ message: string;
7095
+ };
7096
+ requestId: string;
7097
+ };
7098
+ outputFormat: "json";
7099
+ status: 400;
7100
+ input: {
7101
+ param: {
7102
+ deliveryId: string;
7103
+ id: string;
7104
+ orgId: string;
7105
+ };
7106
+ };
7107
+ } | {
7108
+ output: {
7109
+ error: {
7110
+ code: "api_key_invalid" | "api_key_missing";
7111
+ details?: readonly Response.error.Detail[] | undefined;
7112
+ message: string;
7113
+ };
7114
+ requestId: string;
7115
+ };
7116
+ outputFormat: "json";
7117
+ status: 401;
7118
+ input: {
7119
+ param: {
7120
+ deliveryId: string;
7121
+ id: string;
7122
+ orgId: string;
7123
+ };
7124
+ };
7125
+ } | {
7126
+ output: {
7127
+ error: {
7128
+ code: "webhooks_not_enabled";
7129
+ details?: readonly Response.error.Detail[] | undefined;
7130
+ message: string;
7131
+ };
7132
+ requestId: string;
7133
+ };
7134
+ outputFormat: "json";
7135
+ status: 404;
7136
+ input: {
7137
+ param: {
7138
+ deliveryId: string;
7139
+ id: string;
7140
+ orgId: string;
7141
+ };
7142
+ };
7143
+ } | {
7144
+ output: {
7145
+ error: {
7146
+ code: "param_invalid";
7147
+ details?: readonly Response.error.Detail[] | undefined;
7148
+ message: string;
7149
+ };
7150
+ requestId: string;
7151
+ };
7152
+ outputFormat: "json";
7153
+ status: 400;
7154
+ input: {
7155
+ param: {
7156
+ deliveryId: string;
7157
+ id: string;
7158
+ orgId: string;
7159
+ };
7160
+ };
7161
+ } | {
7162
+ output: {
7163
+ error: {
7164
+ code: "webhook_not_found";
7165
+ details?: readonly Response.error.Detail[] | undefined;
7166
+ message: string;
7167
+ };
7168
+ requestId: string;
7169
+ };
7170
+ outputFormat: "json";
7171
+ status: 404;
7172
+ input: {
7173
+ param: {
7174
+ deliveryId: string;
7175
+ id: string;
7176
+ orgId: string;
7177
+ };
7178
+ };
7179
+ } | {
7180
+ output: {
7181
+ error: {
7182
+ code: "delivery_not_found";
7183
+ details?: readonly Response.error.Detail[] | undefined;
7184
+ message: string;
7185
+ };
7186
+ requestId: string;
7187
+ };
7188
+ outputFormat: "json";
7189
+ status: 404;
7190
+ input: {
7191
+ param: {
7192
+ deliveryId: string;
7193
+ id: string;
7194
+ orgId: string;
7195
+ };
7196
+ };
7197
+ } | {
7198
+ output: {
7199
+ error: {
7200
+ code: "organization_not_found";
7201
+ details?: readonly Response.error.Detail[] | undefined;
7202
+ message: string;
7203
+ };
7204
+ requestId: string;
7205
+ };
7206
+ outputFormat: "json";
7207
+ status: 404;
7208
+ input: {
7209
+ param: {
7210
+ deliveryId: string;
7211
+ id: string;
7212
+ orgId: string;
7213
+ };
7214
+ };
7215
+ } | {
7216
+ output: {
7217
+ error: {
7218
+ code: "forbidden";
7219
+ details?: readonly Response.error.Detail[] | undefined;
7220
+ message: string;
7221
+ };
7222
+ requestId: string;
7223
+ };
7224
+ outputFormat: "json";
7225
+ status: 403;
7226
+ input: {
7227
+ param: {
7228
+ deliveryId: string;
7229
+ id: string;
7230
+ orgId: string;
7231
+ };
7232
+ };
7233
+ } | {
7072
7234
  output: {
7073
7235
  attempt: number;
7074
7236
  createdAt: string;
@@ -7456,205 +7618,61 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7456
7618
  baseUnits: string;
7457
7619
  currency: string;
7458
7620
  decimals: number;
7459
- formatted: string;
7460
- };
7461
- sourceAmountMax?: {
7462
- baseUnits: string;
7463
- currency: string;
7464
- decimals: number;
7465
- formatted: string;
7466
- } | undefined;
7467
- sourceChain: {
7468
- addressFormat: "base58" | "base58check" | "hex";
7469
- id: string;
7470
- kind: "evm" | "solana" | "tron";
7471
- name: string;
7472
- };
7473
- sourceToken: {
7474
- address: string;
7475
- currency: string;
7476
- decimals: number;
7477
- name: string;
7478
- standard: string;
7479
- symbol: string;
7480
- tokenKey: string;
7481
- verified: boolean;
7482
- };
7483
- sourceTransactionHashes?: string[] | undefined;
7484
- subsidize: boolean;
7485
- status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
7486
- statusReason?: {
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";
7488
- message: string;
7489
- } | undefined;
7490
- updatedAt: string;
7491
- version: number;
7492
- };
7493
- type: "routes:transfer.updated";
7494
- } | {
7495
- chainId: number;
7496
- context?: {
7497
- description?: string | undefined;
7498
- metadata?: {
7499
- [x: string]: string;
7500
- } | undefined;
7501
- title?: string | undefined;
7502
- } | undefined;
7503
- createdAt: string;
7504
- id: string;
7505
- subscriptionId: string;
7506
- data: {
7507
- ping: true;
7508
- };
7509
- type: "ping";
7510
- };
7511
- };
7512
- outputFormat: "json";
7513
- status: 200;
7514
- input: {
7515
- param: {
7516
- deliveryId: string;
7517
- id: string;
7518
- orgId: string;
7519
- };
7520
- };
7521
- } | {
7522
- output: {
7523
- error: {
7524
- code: "api_key_malformed";
7525
- details?: readonly Response.error.Detail[] | undefined;
7526
- message: string;
7527
- };
7528
- requestId: string;
7529
- };
7530
- outputFormat: "json";
7531
- status: 400;
7532
- input: {
7533
- param: {
7534
- deliveryId: string;
7535
- id: string;
7536
- orgId: string;
7537
- };
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
- };
7557
- } | {
7558
- output: {
7559
- error: {
7560
- code: "api_key_invalid" | "api_key_missing";
7561
- details?: readonly Response.error.Detail[] | undefined;
7562
- message: string;
7563
- };
7564
- requestId: string;
7565
- };
7566
- outputFormat: "json";
7567
- status: 401;
7568
- input: {
7569
- param: {
7570
- deliveryId: string;
7571
- id: string;
7572
- orgId: string;
7573
- };
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;
7621
+ formatted: string;
7622
+ };
7623
+ sourceAmountMax?: {
7624
+ baseUnits: string;
7625
+ currency: string;
7626
+ decimals: number;
7627
+ formatted: string;
7628
+ } | undefined;
7629
+ sourceChain: {
7630
+ addressFormat: "base58" | "base58check" | "hex";
7631
+ id: string;
7632
+ kind: "evm" | "solana" | "tron";
7633
+ name: string;
7634
+ };
7635
+ sourceToken: {
7636
+ address: string;
7637
+ currency: string;
7638
+ decimals: number;
7639
+ name: string;
7640
+ standard: string;
7641
+ symbol: string;
7642
+ tokenKey: string;
7643
+ verified: boolean;
7644
+ };
7645
+ sourceTransactionHashes?: string[] | undefined;
7646
+ subsidize: boolean;
7647
+ status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
7648
+ statusReason?: {
7649
+ code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
7650
+ message: string;
7651
+ } | undefined;
7652
+ updatedAt: string;
7653
+ version: number;
7654
+ };
7655
+ type: "routes:transfer.updated";
7656
+ } | {
7657
+ chainId: number;
7658
+ context?: {
7659
+ description?: string | undefined;
7660
+ metadata?: {
7661
+ [x: string]: string;
7662
+ } | undefined;
7663
+ title?: string | undefined;
7664
+ } | undefined;
7665
+ createdAt: string;
7643
7666
  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;
7667
+ subscriptionId: string;
7668
+ data: {
7669
+ ping: true;
7670
+ };
7671
+ type: "ping";
7653
7672
  };
7654
- requestId: string;
7655
7673
  };
7656
7674
  outputFormat: "json";
7657
- status: 404;
7675
+ status: 200;
7658
7676
  input: {
7659
7677
  param: {
7660
7678
  deliveryId: string;
@@ -7662,7 +7680,11 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7662
7680
  orgId: string;
7663
7681
  };
7664
7682
  };
7665
- } | {
7683
+ };
7684
+ };
7685
+ } & {
7686
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
7687
+ $post: {
7666
7688
  output: {
7667
7689
  error: {
7668
7690
  code: "upstream_error";
@@ -7680,27 +7702,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7680
7702
  orgId: string;
7681
7703
  };
7682
7704
  };
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
  } | {
7705
7706
  output: {
7706
7707
  error: {
@@ -7722,14 +7723,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7722
7723
  } | {
7723
7724
  output: {
7724
7725
  error: {
7725
- code: "param_invalid";
7726
+ code: "api_key_invalid" | "api_key_missing";
7726
7727
  details?: readonly Response.error.Detail[] | undefined;
7727
7728
  message: string;
7728
7729
  };
7729
7730
  requestId: string;
7730
7731
  };
7731
7732
  outputFormat: "json";
7732
- status: 400;
7733
+ status: 401;
7733
7734
  input: {
7734
7735
  param: {
7735
7736
  deliveryId: string;
@@ -7740,14 +7741,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7740
7741
  } | {
7741
7742
  output: {
7742
7743
  error: {
7743
- code: "api_key_invalid" | "api_key_missing";
7744
+ code: "webhooks_not_enabled";
7744
7745
  details?: readonly Response.error.Detail[] | undefined;
7745
7746
  message: string;
7746
7747
  };
7747
7748
  requestId: string;
7748
7749
  };
7749
7750
  outputFormat: "json";
7750
- status: 401;
7751
+ status: 404;
7751
7752
  input: {
7752
7753
  param: {
7753
7754
  deliveryId: string;
@@ -7758,14 +7759,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7758
7759
  } | {
7759
7760
  output: {
7760
7761
  error: {
7761
- code: "forbidden";
7762
+ code: "param_invalid";
7762
7763
  details?: readonly Response.error.Detail[] | undefined;
7763
7764
  message: string;
7764
7765
  };
7765
7766
  requestId: string;
7766
7767
  };
7767
7768
  outputFormat: "json";
7768
- status: 403;
7769
+ status: 400;
7769
7770
  input: {
7770
7771
  param: {
7771
7772
  deliveryId: string;
@@ -7776,7 +7777,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7776
7777
  } | {
7777
7778
  output: {
7778
7779
  error: {
7779
- code: "organization_not_found";
7780
+ code: "webhook_not_found";
7780
7781
  details?: readonly Response.error.Detail[] | undefined;
7781
7782
  message: string;
7782
7783
  };
@@ -7793,15 +7794,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7793
7794
  };
7794
7795
  } | {
7795
7796
  output: {
7796
- error: {
7797
- code: "webhooks_not_enabled";
7798
- details?: readonly Response.error.Detail[] | undefined;
7799
- message: string;
7800
- };
7801
- requestId: string;
7797
+ delivered: boolean;
7798
+ error?: string | undefined;
7799
+ eventId: string;
7800
+ responseMs?: number | undefined;
7801
+ responseStatus?: number | undefined;
7802
7802
  };
7803
7803
  outputFormat: "json";
7804
- status: 404;
7804
+ status: 200;
7805
7805
  input: {
7806
7806
  param: {
7807
7807
  deliveryId: string;
@@ -7812,7 +7812,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7812
7812
  } | {
7813
7813
  output: {
7814
7814
  error: {
7815
- code: "webhook_not_found";
7815
+ code: "delivery_not_found";
7816
7816
  details?: readonly Response.error.Detail[] | undefined;
7817
7817
  message: string;
7818
7818
  };
@@ -7830,7 +7830,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7830
7830
  } | {
7831
7831
  output: {
7832
7832
  error: {
7833
- code: "delivery_not_found";
7833
+ code: "organization_not_found";
7834
7834
  details?: readonly Response.error.Detail[] | undefined;
7835
7835
  message: string;
7836
7836
  };
@@ -7848,14 +7848,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7848
7848
  } | {
7849
7849
  output: {
7850
7850
  error: {
7851
- code: "upstream_error";
7851
+ code: "forbidden";
7852
7852
  details?: readonly Response.error.Detail[] | undefined;
7853
7853
  message: string;
7854
7854
  };
7855
7855
  requestId: string;
7856
7856
  };
7857
7857
  outputFormat: "json";
7858
- status: 502;
7858
+ status: 403;
7859
7859
  input: {
7860
7860
  param: {
7861
7861
  deliveryId: string;
@@ -7869,40 +7869,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7869
7869
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
7870
7870
  $patch: {
7871
7871
  output: {
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;
7872
+ error: {
7873
+ code: "upstream_error";
7874
+ details?: readonly Response.error.Detail[] | undefined;
7875
+ message: string;
7902
7876
  };
7877
+ requestId: string;
7903
7878
  };
7904
7879
  outputFormat: "json";
7905
- status: 200;
7880
+ status: 502;
7906
7881
  input: {
7907
7882
  param: {
7908
7883
  id: string;
@@ -7937,14 +7912,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7937
7912
  } | {
7938
7913
  output: {
7939
7914
  error: {
7940
- code: "param_invalid";
7915
+ code: "api_key_invalid" | "api_key_missing";
7941
7916
  details?: readonly Response.error.Detail[] | undefined;
7942
7917
  message: string;
7943
7918
  };
7944
7919
  requestId: string;
7945
7920
  };
7946
7921
  outputFormat: "json";
7947
- status: 400;
7922
+ status: 401;
7948
7923
  input: {
7949
7924
  param: {
7950
7925
  id: string;
@@ -7979,14 +7954,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7979
7954
  } | {
7980
7955
  output: {
7981
7956
  error: {
7982
- code: "api_key_invalid" | "api_key_missing";
7957
+ code: "webhooks_not_enabled";
7983
7958
  details?: readonly Response.error.Detail[] | undefined;
7984
7959
  message: string;
7985
7960
  };
7986
7961
  requestId: string;
7987
7962
  };
7988
7963
  outputFormat: "json";
7989
- status: 401;
7964
+ status: 404;
7990
7965
  input: {
7991
7966
  param: {
7992
7967
  id: string;
@@ -8000,14 +7975,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8000
7975
  } | {
8001
7976
  output: {
8002
7977
  error: {
8003
- code: "forbidden";
7978
+ code: "param_invalid";
8004
7979
  details?: readonly Response.error.Detail[] | undefined;
8005
7980
  message: string;
8006
7981
  };
8007
7982
  requestId: string;
8008
7983
  };
8009
7984
  outputFormat: "json";
8010
- status: 403;
7985
+ status: 400;
8011
7986
  input: {
8012
7987
  param: {
8013
7988
  id: string;
@@ -8021,7 +7996,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8021
7996
  } | {
8022
7997
  output: {
8023
7998
  error: {
8024
- code: "organization_not_found";
7999
+ code: "webhook_not_found";
8025
8000
  details?: readonly Response.error.Detail[] | undefined;
8026
8001
  message: string;
8027
8002
  };
@@ -8042,7 +8017,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8042
8017
  } | {
8043
8018
  output: {
8044
8019
  error: {
8045
- code: "webhooks_not_enabled";
8020
+ code: "organization_not_found";
8046
8021
  details?: readonly Response.error.Detail[] | undefined;
8047
8022
  message: string;
8048
8023
  };
@@ -8063,14 +8038,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8063
8038
  } | {
8064
8039
  output: {
8065
8040
  error: {
8066
- code: "webhook_not_found";
8041
+ code: "forbidden";
8067
8042
  details?: readonly Response.error.Detail[] | undefined;
8068
8043
  message: string;
8069
8044
  };
8070
8045
  requestId: string;
8071
8046
  };
8072
8047
  outputFormat: "json";
8073
- status: 404;
8048
+ status: 403;
8074
8049
  input: {
8075
8050
  param: {
8076
8051
  id: string;
@@ -8083,15 +8058,40 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8083
8058
  };
8084
8059
  } | {
8085
8060
  output: {
8086
- error: {
8087
- code: "upstream_error";
8088
- details?: readonly Response.error.Detail[] | undefined;
8089
- message: string;
8061
+ chainId: number;
8062
+ createdAt: string;
8063
+ environment?: "production" | "sandbox" | undefined;
8064
+ eventType: "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included";
8065
+ expiresAt?: string | undefined;
8066
+ failureCount: number;
8067
+ filters: {
8068
+ [x: string]: import("hono/utils/types").JSONValue;
8069
+ };
8070
+ id: string;
8071
+ lastDeliveryAt?: string | undefined;
8072
+ status: "active" | "disabled" | "paused";
8073
+ updatedAt: string;
8074
+ context?: {
8075
+ description?: string | undefined;
8076
+ metadata?: {
8077
+ [x: string]: string;
8078
+ } | undefined;
8079
+ title?: string | undefined;
8080
+ } | undefined;
8081
+ destination: {
8082
+ type: "url";
8083
+ url: string;
8084
+ } | {
8085
+ type: "slack";
8086
+ url: "https://hooks.slack.com/…";
8087
+ } | {
8088
+ token: "[redacted]";
8089
+ type: "betterstack";
8090
+ url: string;
8090
8091
  };
8091
- requestId: string;
8092
8092
  };
8093
8093
  outputFormat: "json";
8094
- status: 502;
8094
+ status: 200;
8095
8095
  input: {
8096
8096
  param: {
8097
8097
  id: string;
@@ -8108,10 +8108,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8108
8108
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
8109
8109
  $delete: {
8110
8110
  output: {
8111
- id: string;
8111
+ error: {
8112
+ code: "upstream_error";
8113
+ details?: readonly Response.error.Detail[] | undefined;
8114
+ message: string;
8115
+ };
8116
+ requestId: string;
8112
8117
  };
8113
8118
  outputFormat: "json";
8114
- status: 200;
8119
+ status: 502;
8115
8120
  input: {
8116
8121
  param: {
8117
8122
  id: string;
@@ -8138,14 +8143,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8138
8143
  } | {
8139
8144
  output: {
8140
8145
  error: {
8141
- code: "param_invalid";
8146
+ code: "api_key_invalid" | "api_key_missing";
8142
8147
  details?: readonly Response.error.Detail[] | undefined;
8143
8148
  message: string;
8144
8149
  };
8145
8150
  requestId: string;
8146
8151
  };
8147
8152
  outputFormat: "json";
8148
- status: 400;
8153
+ status: 401;
8149
8154
  input: {
8150
8155
  param: {
8151
8156
  id: string;
@@ -8155,14 +8160,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8155
8160
  } | {
8156
8161
  output: {
8157
8162
  error: {
8158
- code: "api_key_invalid" | "api_key_missing";
8163
+ code: "webhooks_not_enabled";
8159
8164
  details?: readonly Response.error.Detail[] | undefined;
8160
8165
  message: string;
8161
8166
  };
8162
8167
  requestId: string;
8163
8168
  };
8164
8169
  outputFormat: "json";
8165
- status: 401;
8170
+ status: 404;
8166
8171
  input: {
8167
8172
  param: {
8168
8173
  id: string;
@@ -8172,14 +8177,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8172
8177
  } | {
8173
8178
  output: {
8174
8179
  error: {
8175
- code: "forbidden";
8180
+ code: "param_invalid";
8176
8181
  details?: readonly Response.error.Detail[] | undefined;
8177
8182
  message: string;
8178
8183
  };
8179
8184
  requestId: string;
8180
8185
  };
8181
8186
  outputFormat: "json";
8182
- status: 403;
8187
+ status: 400;
8183
8188
  input: {
8184
8189
  param: {
8185
8190
  id: string;
@@ -8189,7 +8194,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8189
8194
  } | {
8190
8195
  output: {
8191
8196
  error: {
8192
- code: "organization_not_found";
8197
+ code: "webhook_not_found";
8193
8198
  details?: readonly Response.error.Detail[] | undefined;
8194
8199
  message: string;
8195
8200
  };
@@ -8206,7 +8211,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8206
8211
  } | {
8207
8212
  output: {
8208
8213
  error: {
8209
- code: "webhooks_not_enabled";
8214
+ code: "organization_not_found";
8210
8215
  details?: readonly Response.error.Detail[] | undefined;
8211
8216
  message: string;
8212
8217
  };
@@ -8223,14 +8228,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8223
8228
  } | {
8224
8229
  output: {
8225
8230
  error: {
8226
- code: "webhook_not_found";
8231
+ code: "forbidden";
8227
8232
  details?: readonly Response.error.Detail[] | undefined;
8228
8233
  message: string;
8229
8234
  };
8230
8235
  requestId: string;
8231
8236
  };
8232
8237
  outputFormat: "json";
8233
- status: 404;
8238
+ status: 403;
8234
8239
  input: {
8235
8240
  param: {
8236
8241
  id: string;
@@ -8239,15 +8244,10 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
8239
8244
  };
8240
8245
  } | {
8241
8246
  output: {
8242
- error: {
8243
- code: "upstream_error";
8244
- details?: readonly Response.error.Detail[] | undefined;
8245
- message: string;
8246
- };
8247
- requestId: string;
8247
+ id: string;
8248
8248
  };
8249
8249
  outputFormat: "json";
8250
- status: 502;
8250
+ status: 200;
8251
8251
  input: {
8252
8252
  param: {
8253
8253
  id: string;