tapimo 0.11.0 → 0.13.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 (443) hide show
  1. package/dist/App.d.ts +6396 -4575
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +39 -4
  4. package/dist/App.js.map +1 -1
  5. package/dist/Assets.d.ts +15 -0
  6. package/dist/Assets.d.ts.map +1 -1
  7. package/dist/Assets.js +7 -0
  8. package/dist/Assets.js.map +1 -1
  9. package/dist/Scope.d.ts +2 -0
  10. package/dist/Scope.d.ts.map +1 -1
  11. package/dist/Scope.js +17 -0
  12. package/dist/Scope.js.map +1 -1
  13. package/dist/admin/App.d.ts +176 -78
  14. package/dist/admin/App.d.ts.map +1 -1
  15. package/dist/admin/apps/api-keys.d.ts +84 -4
  16. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  17. package/dist/admin/apps/api-keys.js +54 -0
  18. package/dist/admin/apps/api-keys.js.map +1 -1
  19. package/dist/admin/apps/earn-vaults.d.ts +123 -9
  20. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  21. package/dist/admin/apps/earn-vaults.js +60 -7
  22. package/dist/admin/apps/earn-vaults.js.map +1 -1
  23. package/dist/admin/apps/organizations.d.ts.map +1 -1
  24. package/dist/admin/apps/organizations.js +4 -2
  25. package/dist/admin/apps/organizations.js.map +1 -1
  26. package/dist/admin/apps/verified-tokens.d.ts +90 -90
  27. package/dist/admin/ui.generated.d.ts +1 -1
  28. package/dist/admin/ui.generated.js +71 -71
  29. package/dist/admin/ui.generated.js.map +1 -1
  30. package/dist/apps/Zones.d.ts +16 -16
  31. package/dist/apps/Zones.js +4 -4
  32. package/dist/apps/data/App.d.ts +1699 -749
  33. package/dist/apps/data/App.d.ts.map +1 -1
  34. package/dist/apps/data/App.js +58 -9
  35. package/dist/apps/data/App.js.map +1 -1
  36. package/dist/apps/data/ZoneSelection.d.ts +62 -0
  37. package/dist/apps/data/ZoneSelection.d.ts.map +1 -0
  38. package/dist/apps/data/ZoneSelection.js +44 -0
  39. package/dist/apps/data/ZoneSelection.js.map +1 -0
  40. package/dist/apps/data/routes/activities.d.ts +2417 -50
  41. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  42. package/dist/apps/data/routes/activities.js +1896 -1293
  43. package/dist/apps/data/routes/activities.js.map +1 -1
  44. package/dist/apps/data/routes/addresses.d.ts +471 -340
  45. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  46. package/dist/apps/data/routes/balances.d.ts +12 -12
  47. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  48. package/dist/apps/data/routes/balances.js +44 -17
  49. package/dist/apps/data/routes/balances.js.map +1 -1
  50. package/dist/apps/data/routes/blocks.d.ts +42 -42
  51. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  52. package/dist/apps/data/routes/blocks.js +22 -12
  53. package/dist/apps/data/routes/blocks.js.map +1 -1
  54. package/dist/apps/data/routes/coingecko.d.ts +179 -179
  55. package/dist/apps/data/routes/earn.d.ts +144 -19
  56. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  57. package/dist/apps/data/routes/earn.js +160 -28
  58. package/dist/apps/data/routes/earn.js.map +1 -1
  59. package/dist/apps/data/routes/exchanges.d.ts +719 -13
  60. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  61. package/dist/apps/data/routes/exchanges.js +16 -13
  62. package/dist/apps/data/routes/exchanges.js.map +1 -1
  63. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  64. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  65. package/dist/apps/data/routes/fee-amm.js +9 -11
  66. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  67. package/dist/apps/data/routes/indexer.d.ts +34 -34
  68. package/dist/apps/data/routes/receipts.d.ts +363 -263
  69. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  70. package/dist/apps/data/routes/receipts.js +29 -11
  71. package/dist/apps/data/routes/receipts.js.map +1 -1
  72. package/dist/apps/data/routes/rpc.js +24 -10
  73. package/dist/apps/data/routes/rpc.js.map +1 -1
  74. package/dist/apps/data/routes/tokenlist.d.ts +13 -13
  75. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  76. package/dist/apps/data/routes/tokenlist.js +16 -15
  77. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  78. package/dist/apps/data/routes/tokens.d.ts +112 -98
  79. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  80. package/dist/apps/data/routes/tokens.js +85 -35
  81. package/dist/apps/data/routes/tokens.js.map +1 -1
  82. package/dist/apps/data/routes/transactions.d.ts +7 -2
  83. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  84. package/dist/apps/data/routes/transactions.js +38 -18
  85. package/dist/apps/data/routes/transactions.js.map +1 -1
  86. package/dist/apps/data/routes/transfers.d.ts +1 -1
  87. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  88. package/dist/apps/data/routes/transfers.js +25 -21
  89. package/dist/apps/data/routes/transfers.js.map +1 -1
  90. package/dist/apps/data/routes/valuation.d.ts +1 -1
  91. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  92. package/dist/apps/data/routes/valuation.js +12 -7
  93. package/dist/apps/data/routes/valuation.js.map +1 -1
  94. package/dist/apps/data/routes/verified-tokens.d.ts +3 -3
  95. package/dist/apps/data/routes/webhooks.d.ts +15 -15
  96. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  97. package/dist/apps/data/routes/webhooks.js +2 -2
  98. package/dist/apps/data/routes/webhooks.js.map +1 -1
  99. package/dist/apps/data/routes/zones.d.ts +32 -32
  100. package/dist/apps/data/routes/zones.js +1 -1
  101. package/dist/apps/funding/App.d.ts +38 -27
  102. package/dist/apps/funding/App.d.ts.map +1 -1
  103. package/dist/apps/funding/routes/chains.d.ts.map +1 -1
  104. package/dist/apps/funding/routes/chains.js +5 -4
  105. package/dist/apps/funding/routes/chains.js.map +1 -1
  106. package/dist/apps/funding/routes/deposit-addresses.d.ts +16 -16
  107. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  108. package/dist/apps/funding/routes/deposit-addresses.js +24 -19
  109. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  110. package/dist/apps/funding/routes/providers.d.ts +13 -13
  111. package/dist/apps/funding/routes/providers.d.ts.map +1 -1
  112. package/dist/apps/funding/routes/providers.js +3 -2
  113. package/dist/apps/funding/routes/providers.js.map +1 -1
  114. package/dist/apps/funding/routes/quotes.d.ts.map +1 -1
  115. package/dist/apps/funding/routes/quotes.js +2 -2
  116. package/dist/apps/funding/routes/quotes.js.map +1 -1
  117. package/dist/apps/funding/routes/transfers.d.ts +60 -48
  118. package/dist/apps/funding/routes/transfers.d.ts.map +1 -1
  119. package/dist/apps/funding/routes/transfers.js +27 -19
  120. package/dist/apps/funding/routes/transfers.js.map +1 -1
  121. package/dist/apps/management/App.d.ts +4558 -3700
  122. package/dist/apps/management/App.d.ts.map +1 -1
  123. package/dist/apps/management/Billing.d.ts.map +1 -1
  124. package/dist/apps/management/Billing.js +19 -6
  125. package/dist/apps/management/Billing.js.map +1 -1
  126. package/dist/apps/management/routes/api-keys.d.ts +786 -175
  127. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  128. package/dist/apps/management/routes/api-keys.js +312 -34
  129. package/dist/apps/management/routes/api-keys.js.map +1 -1
  130. package/dist/apps/management/routes/billing.d.ts +103 -30
  131. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  132. package/dist/apps/management/routes/billing.js +91 -32
  133. package/dist/apps/management/routes/billing.js.map +1 -1
  134. package/dist/apps/management/routes/faucet.d.ts +35 -35
  135. package/dist/apps/management/routes/faucet.d.ts.map +1 -1
  136. package/dist/apps/management/routes/faucet.js +23 -12
  137. package/dist/apps/management/routes/faucet.js.map +1 -1
  138. package/dist/apps/management/routes/invitations.d.ts +46 -13
  139. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  140. package/dist/apps/management/routes/invitations.js +79 -29
  141. package/dist/apps/management/routes/invitations.js.map +1 -1
  142. package/dist/apps/management/routes/invite-links.d.ts +120 -75
  143. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  144. package/dist/apps/management/routes/invite-links.js +100 -41
  145. package/dist/apps/management/routes/invite-links.js.map +1 -1
  146. package/dist/apps/management/routes/me.d.ts +5 -5
  147. package/dist/apps/management/routes/me.d.ts.map +1 -1
  148. package/dist/apps/management/routes/me.js +14 -10
  149. package/dist/apps/management/routes/me.js.map +1 -1
  150. package/dist/apps/management/routes/members.d.ts +99 -78
  151. package/dist/apps/management/routes/members.d.ts.map +1 -1
  152. package/dist/apps/management/routes/members.js +37 -18
  153. package/dist/apps/management/routes/members.js.map +1 -1
  154. package/dist/apps/management/routes/orgs.d.ts +48 -8
  155. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  156. package/dist/apps/management/routes/orgs.js +48 -19
  157. package/dist/apps/management/routes/orgs.js.map +1 -1
  158. package/dist/apps/management/routes/projects.d.ts +108 -46
  159. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  160. package/dist/apps/management/routes/projects.js +72 -21
  161. package/dist/apps/management/routes/projects.js.map +1 -1
  162. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  163. package/dist/apps/management/routes/scopes.js +8 -5
  164. package/dist/apps/management/routes/scopes.js.map +1 -1
  165. package/dist/apps/management/routes/usage.d.ts +82 -82
  166. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  167. package/dist/apps/management/routes/usage.js +41 -31
  168. package/dist/apps/management/routes/usage.js.map +1 -1
  169. package/dist/apps/management/routes/verified-token-requests.d.ts +35 -7
  170. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
  171. package/dist/apps/management/routes/verified-token-requests.js +36 -17
  172. package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
  173. package/dist/apps/management/routes/webhooks.d.ts +200 -183
  174. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  175. package/dist/apps/management/routes/webhooks.js +80 -35
  176. package/dist/apps/management/routes/webhooks.js.map +1 -1
  177. package/dist/apps/mpp/internal/Adapter.d.ts +1 -1
  178. package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
  179. package/dist/apps/mpp/internal/Adapter.js +12 -0
  180. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  181. package/dist/db/Db.d.ts +2 -0
  182. package/dist/db/Db.d.ts.map +1 -1
  183. package/dist/db/Db.js +52 -1
  184. package/dist/db/Db.js.map +1 -1
  185. package/dist/db/Schema.d.ts +26 -3
  186. package/dist/db/Schema.d.ts.map +1 -1
  187. package/dist/db/Schema.js +24 -5
  188. package/dist/db/Schema.js.map +1 -1
  189. package/dist/db/tables/earnVaults.d.ts +5 -1
  190. package/dist/db/tables/earnVaults.d.ts.map +1 -1
  191. package/dist/db/tables/earnVaults.js +5 -0
  192. package/dist/db/tables/earnVaults.js.map +1 -1
  193. package/dist/db/tables/fundingCatalog.d.ts +4 -2
  194. package/dist/db/tables/fundingCatalog.d.ts.map +1 -1
  195. package/dist/db/tables/fundingCatalog.js +5 -1
  196. package/dist/db/tables/fundingCatalog.js.map +1 -1
  197. package/dist/db/tables/webhookDeliveries.d.ts.map +1 -1
  198. package/dist/db/tables/webhookDeliveries.js +10 -0
  199. package/dist/db/tables/webhookDeliveries.js.map +1 -1
  200. package/dist/db/tables/webhookQueueCompletions.d.ts +15 -0
  201. package/dist/db/tables/webhookQueueCompletions.d.ts.map +1 -0
  202. package/dist/db/tables/webhookQueueCompletions.js +32 -0
  203. package/dist/db/tables/webhookQueueCompletions.js.map +1 -0
  204. package/dist/db/tables/webhookQueueEvents.d.ts +14 -20
  205. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
  206. package/dist/db/tables/webhookQueueEvents.js +68 -47
  207. package/dist/db/tables/webhookQueueEvents.js.map +1 -1
  208. package/dist/db/tables/webhookSubscriptions.d.ts +16 -5
  209. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  210. package/dist/db/tables/webhookSubscriptions.js +29 -5
  211. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  212. package/dist/handlers/internal/utils.d.ts.map +1 -1
  213. package/dist/handlers/internal/utils.js +9 -0
  214. package/dist/handlers/internal/utils.js.map +1 -1
  215. package/dist/internal/Auth.d.ts +11 -2
  216. package/dist/internal/Auth.d.ts.map +1 -1
  217. package/dist/internal/Auth.js +19 -6
  218. package/dist/internal/Auth.js.map +1 -1
  219. package/dist/internal/Cache.d.ts.map +1 -1
  220. package/dist/internal/Cache.js +11 -7
  221. package/dist/internal/Cache.js.map +1 -1
  222. package/dist/internal/EarnVaults.d.ts +43 -4
  223. package/dist/internal/EarnVaults.d.ts.map +1 -1
  224. package/dist/internal/EarnVaults.js +167 -0
  225. package/dist/internal/EarnVaults.js.map +1 -1
  226. package/dist/internal/Fetch.d.ts +23 -0
  227. package/dist/internal/Fetch.d.ts.map +1 -0
  228. package/dist/internal/Fetch.js +26 -0
  229. package/dist/internal/Fetch.js.map +1 -0
  230. package/dist/internal/Log.d.ts +3 -1
  231. package/dist/internal/Log.d.ts.map +1 -1
  232. package/dist/internal/Log.js +16 -3
  233. package/dist/internal/Log.js.map +1 -1
  234. package/dist/internal/OpenApi.d.ts +30 -24
  235. package/dist/internal/OpenApi.d.ts.map +1 -1
  236. package/dist/internal/OpenApi.js +140 -41
  237. package/dist/internal/OpenApi.js.map +1 -1
  238. package/dist/internal/Response.d.ts +14 -9
  239. package/dist/internal/Response.d.ts.map +1 -1
  240. package/dist/internal/Response.js +16 -5
  241. package/dist/internal/Response.js.map +1 -1
  242. package/dist/internal/Schema.d.ts +11 -10
  243. package/dist/internal/Schema.d.ts.map +1 -1
  244. package/dist/internal/Schema.js +14 -9
  245. package/dist/internal/Schema.js.map +1 -1
  246. package/dist/internal/Store.d.ts +28 -6
  247. package/dist/internal/Store.d.ts.map +1 -1
  248. package/dist/internal/Store.js +121 -25
  249. package/dist/internal/Store.js.map +1 -1
  250. package/dist/internal/Tidx.d.ts +2 -0
  251. package/dist/internal/Tidx.d.ts.map +1 -1
  252. package/dist/internal/Tidx.js +23 -6
  253. package/dist/internal/Tidx.js.map +1 -1
  254. package/dist/internal/Timeout.d.ts +36 -0
  255. package/dist/internal/Timeout.d.ts.map +1 -0
  256. package/dist/internal/Timeout.js +37 -0
  257. package/dist/internal/Timeout.js.map +1 -0
  258. package/dist/internal/Timing.d.ts +9 -0
  259. package/dist/internal/Timing.d.ts.map +1 -1
  260. package/dist/internal/Timing.js +7 -0
  261. package/dist/internal/Timing.js.map +1 -1
  262. package/dist/internal/WebhookDestination.d.ts.map +1 -1
  263. package/dist/internal/WebhookDestination.js +3 -0
  264. package/dist/internal/WebhookDestination.js.map +1 -1
  265. package/dist/internal/Webhooks.d.ts +29 -12
  266. package/dist/internal/Webhooks.d.ts.map +1 -1
  267. package/dist/internal/Webhooks.js +37 -20
  268. package/dist/internal/Webhooks.js.map +1 -1
  269. package/dist/internal/funding/Action.d.ts +9 -0
  270. package/dist/internal/funding/Action.d.ts.map +1 -1
  271. package/dist/internal/funding/Action.js +16 -8
  272. package/dist/internal/funding/Action.js.map +1 -1
  273. package/dist/internal/funding/Catalog.d.ts +9 -2
  274. package/dist/internal/funding/Catalog.d.ts.map +1 -1
  275. package/dist/internal/funding/Catalog.js +19 -8
  276. package/dist/internal/funding/Catalog.js.map +1 -1
  277. package/dist/internal/funding/Deposit.d.ts +2 -2
  278. package/dist/internal/funding/Deposit.d.ts.map +1 -1
  279. package/dist/internal/funding/Deposit.js +9 -8
  280. package/dist/internal/funding/Deposit.js.map +1 -1
  281. package/dist/internal/funding/DepositAddress.d.ts +4 -4
  282. package/dist/internal/funding/DepositAddress.d.ts.map +1 -1
  283. package/dist/internal/funding/DepositAddress.js +9 -8
  284. package/dist/internal/funding/DepositAddress.js.map +1 -1
  285. package/dist/internal/funding/Provider.d.ts +68 -13
  286. package/dist/internal/funding/Provider.d.ts.map +1 -1
  287. package/dist/internal/funding/Provider.js +42 -20
  288. package/dist/internal/funding/Provider.js.map +1 -1
  289. package/dist/internal/funding/Transfer.d.ts +13 -12
  290. package/dist/internal/funding/Transfer.d.ts.map +1 -1
  291. package/dist/internal/funding/Transfer.js +23 -21
  292. package/dist/internal/funding/Transfer.js.map +1 -1
  293. package/dist/internal/funding/providers/stargate.d.ts +38 -0
  294. package/dist/internal/funding/providers/stargate.d.ts.map +1 -0
  295. package/dist/internal/funding/providers/stargate.js +277 -0
  296. package/dist/internal/funding/providers/stargate.js.map +1 -0
  297. package/dist/internal/index.d.ts +1 -0
  298. package/dist/internal/index.d.ts.map +1 -1
  299. package/dist/internal/index.js +1 -0
  300. package/dist/internal/index.js.map +1 -1
  301. package/dist/providers/index.d.ts +7 -0
  302. package/dist/providers/index.d.ts.map +1 -1
  303. package/dist/providers/index.js +3 -0
  304. package/dist/providers/index.js.map +1 -1
  305. package/package.json +3 -3
  306. package/src/App.test.ts +148 -0
  307. package/src/App.ts +45 -4
  308. package/src/Assets.test.ts +18 -0
  309. package/src/Assets.ts +22 -0
  310. package/src/Client.test-d.ts +311 -16
  311. package/src/Scope.test.ts +20 -0
  312. package/src/Scope.ts +16 -0
  313. package/src/admin/apps/api-keys.test.ts +75 -0
  314. package/src/admin/apps/api-keys.ts +64 -0
  315. package/src/admin/apps/earn-vaults.test.ts +143 -0
  316. package/src/admin/apps/earn-vaults.ts +84 -7
  317. package/src/admin/apps/organizations.ts +6 -2
  318. package/src/admin/ui/src/lib/api-keys.ts +19 -0
  319. package/src/admin/ui/src/routes/api-keys.tsx +125 -2
  320. package/src/admin/ui.generated.ts +71 -71
  321. package/src/apps/Zones.test.ts +4 -4
  322. package/src/apps/Zones.ts +4 -4
  323. package/src/apps/composition.test.ts +1 -1
  324. package/src/apps/data/App.test.ts +72 -0
  325. package/src/apps/data/App.ts +58 -10
  326. package/src/apps/data/ZoneSelection.test.ts +196 -0
  327. package/src/apps/data/ZoneSelection.ts +108 -0
  328. package/src/apps/data/routes/activities.test.ts +1843 -2
  329. package/src/apps/data/routes/activities.ts +2211 -1388
  330. package/src/apps/data/routes/balances.ts +134 -98
  331. package/src/apps/data/routes/blocks.test.ts +533 -0
  332. package/src/apps/data/routes/blocks.ts +36 -17
  333. package/src/apps/data/routes/earn.test.ts +187 -25
  334. package/src/apps/data/routes/earn.ts +228 -32
  335. package/src/apps/data/routes/earn.zone-access.test.ts +46 -0
  336. package/src/apps/data/routes/exchanges.test.ts +31 -1
  337. package/src/apps/data/routes/exchanges.ts +19 -15
  338. package/src/apps/data/routes/fee-amm.ts +18 -11
  339. package/src/apps/data/routes/receipts.ts +48 -17
  340. package/src/apps/data/routes/rpc.test.ts +75 -0
  341. package/src/apps/data/routes/rpc.ts +23 -9
  342. package/src/apps/data/routes/tokenlist.ts +21 -18
  343. package/src/apps/data/routes/tokens.test.ts +607 -0
  344. package/src/apps/data/routes/tokens.ts +312 -231
  345. package/src/apps/data/routes/transactions.ts +69 -30
  346. package/src/apps/data/routes/transfers.test.ts +424 -3
  347. package/src/apps/data/routes/transfers.ts +57 -36
  348. package/src/apps/data/routes/valuation.ts +94 -78
  349. package/src/apps/data/routes/webhooks.ts +6 -2
  350. package/src/apps/data/routes/zones.test.ts +21 -15
  351. package/src/apps/data/routes/zones.ts +1 -1
  352. package/src/apps/funding/routes/chains.test.ts +211 -7
  353. package/src/apps/funding/routes/chains.ts +19 -12
  354. package/src/apps/funding/routes/deposit-addresses.test.ts +416 -0
  355. package/src/apps/funding/routes/deposit-addresses.ts +101 -84
  356. package/src/apps/funding/routes/providers.ts +9 -5
  357. package/src/apps/funding/routes/quotes.test.ts +42 -0
  358. package/src/apps/funding/routes/quotes.ts +8 -5
  359. package/src/apps/funding/routes/transfers.test.ts +430 -40
  360. package/src/apps/funding/routes/transfers.ts +76 -59
  361. package/src/apps/management/Billing.test.ts +26 -0
  362. package/src/apps/management/Billing.ts +24 -7
  363. package/src/apps/management/routes/api-keys.test.ts +398 -0
  364. package/src/apps/management/routes/api-keys.ts +481 -145
  365. package/src/apps/management/routes/billing.test.ts +209 -0
  366. package/src/apps/management/routes/billing.ts +254 -177
  367. package/src/apps/management/routes/faucet.test.ts +39 -0
  368. package/src/apps/management/routes/faucet.ts +75 -41
  369. package/src/apps/management/routes/invitations.test.ts +216 -0
  370. package/src/apps/management/routes/invitations.ts +186 -109
  371. package/src/apps/management/routes/invite-links.test.ts +263 -1
  372. package/src/apps/management/routes/invite-links.ts +295 -214
  373. package/src/apps/management/routes/me.test.ts +49 -0
  374. package/src/apps/management/routes/me.ts +42 -32
  375. package/src/apps/management/routes/members.test.ts +124 -1
  376. package/src/apps/management/routes/members.ts +81 -51
  377. package/src/apps/management/routes/orgs.test.ts +176 -0
  378. package/src/apps/management/routes/orgs.ts +101 -59
  379. package/src/apps/management/routes/projects.test.ts +183 -0
  380. package/src/apps/management/routes/projects.ts +124 -60
  381. package/src/apps/management/routes/scopes.test.ts +44 -0
  382. package/src/apps/management/routes/scopes.ts +37 -28
  383. package/src/apps/management/routes/usage.test.ts +92 -0
  384. package/src/apps/management/routes/usage.ts +186 -151
  385. package/src/apps/management/routes/verified-token-requests.test.ts +114 -0
  386. package/src/apps/management/routes/verified-token-requests.ts +166 -133
  387. package/src/apps/management/routes/webhooks.test.ts +234 -0
  388. package/src/apps/management/routes/webhooks.ts +191 -78
  389. package/src/apps/mpp/internal/Adapter.ts +13 -1
  390. package/src/db/Db.test.ts +41 -0
  391. package/src/db/Db.ts +75 -1
  392. package/src/db/Schema.ts +33 -5
  393. package/src/db/tables/earnVaults.test.ts +22 -0
  394. package/src/db/tables/earnVaults.ts +11 -1
  395. package/src/db/tables/fundingCatalog.test.ts +16 -2
  396. package/src/db/tables/fundingCatalog.ts +9 -3
  397. package/src/db/tables/webhookDeliveries.ts +13 -0
  398. package/src/db/tables/webhookQueueCompletions.ts +55 -0
  399. package/src/db/tables/webhookQueueEvents.ts +95 -61
  400. package/src/db/tables/webhookSubscriptions.ts +45 -6
  401. package/src/handlers/internal/utils.test.ts +53 -0
  402. package/src/handlers/internal/utils.ts +15 -0
  403. package/src/internal/Auth.ts +35 -9
  404. package/src/internal/Cache.ts +14 -7
  405. package/src/internal/EarnVaults.capabilities.test.ts +33 -0
  406. package/src/internal/EarnVaults.test.ts +79 -0
  407. package/src/internal/EarnVaults.ts +277 -0
  408. package/src/internal/Fetch.test.ts +46 -0
  409. package/src/internal/Fetch.ts +56 -0
  410. package/src/internal/Log.test.ts +21 -0
  411. package/src/internal/Log.ts +20 -5
  412. package/src/internal/OpenApi.ts +177 -51
  413. package/src/internal/Response.test.ts +95 -0
  414. package/src/internal/Response.ts +41 -3
  415. package/src/internal/Schema.test.ts +18 -0
  416. package/src/internal/Schema.ts +19 -9
  417. package/src/internal/Store.test.ts +364 -0
  418. package/src/internal/Store.ts +153 -27
  419. package/src/internal/Tidx.test.ts +21 -1
  420. package/src/internal/Tidx.ts +23 -6
  421. package/src/internal/Timeout.test.ts +35 -0
  422. package/src/internal/Timeout.ts +73 -0
  423. package/src/internal/Timing.ts +16 -0
  424. package/src/internal/WebhookDestination.ts +3 -0
  425. package/src/internal/Webhooks.test.ts +122 -8
  426. package/src/internal/Webhooks.ts +59 -29
  427. package/src/internal/funding/Action.test.ts +41 -1
  428. package/src/internal/funding/Action.ts +69 -41
  429. package/src/internal/funding/Catalog.test.ts +34 -0
  430. package/src/internal/funding/Catalog.ts +28 -11
  431. package/src/internal/funding/Deposit.ts +71 -64
  432. package/src/internal/funding/DepositAddress.ts +50 -43
  433. package/src/internal/funding/Provider.test.ts +73 -0
  434. package/src/internal/funding/Provider.ts +246 -170
  435. package/src/internal/funding/Transfer.ts +133 -110
  436. package/src/internal/funding/providers/index.test.ts +22 -0
  437. package/src/internal/funding/providers/relay.test.ts +2 -2
  438. package/src/internal/funding/providers/stargate.test.ts +163 -0
  439. package/src/internal/funding/providers/stargate.ts +409 -0
  440. package/src/internal/index.test.ts +1 -0
  441. package/src/internal/index.ts +1 -0
  442. package/src/providers/index.test.ts +1 -0
  443. package/src/providers/index.ts +9 -0
@@ -7,23 +7,7 @@ export declare namespace schema {
7
7
  /** Public webhook subscription representation. */
8
8
  const Subscription: z.ZodMiniObject<{
9
9
  chainId: z.ZodMiniNumber<number>;
10
- context: z.ZodMiniOptional<z.ZodMiniObject<{
11
- description: z.ZodMiniOptional<z.ZodMiniString<string>>;
12
- metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
13
- title: z.ZodMiniOptional<z.ZodMiniString<string>>;
14
- }, z.core.$strip>>;
15
10
  createdAt: z.ZodMiniISODateTime;
16
- destination: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
17
- type: z.ZodMiniLiteral<"url">;
18
- url: z.ZodMiniURL;
19
- }, z.core.$strip>, z.ZodMiniObject<{
20
- type: z.ZodMiniLiteral<"slack">;
21
- url: z.ZodMiniLiteral<"https://hooks.slack.com/…">;
22
- }, z.core.$strip>, z.ZodMiniObject<{
23
- token: z.ZodMiniLiteral<"[redacted]">;
24
- type: z.ZodMiniLiteral<"betterstack">;
25
- url: z.ZodMiniURL;
26
- }, z.core.$strip>], "type">;
27
11
  environment: z.ZodMiniOptional<z.ZodMiniEnum<{
28
12
  production: "production";
29
13
  sandbox: "sandbox";
@@ -46,6 +30,39 @@ export declare namespace schema {
46
30
  paused: "paused";
47
31
  }>;
48
32
  updatedAt: z.ZodMiniISODateTime;
33
+ context: z.ZodMiniOptional<z.ZodMiniObject<{
34
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
35
+ metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
36
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
37
+ }, z.core.$strip>>;
38
+ destination: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
39
+ type: z.ZodMiniLiteral<"url">;
40
+ url: z.ZodMiniURL;
41
+ }, z.core.$strip>, z.ZodMiniObject<{
42
+ type: z.ZodMiniLiteral<"slack">;
43
+ url: z.ZodMiniLiteral<"https://hooks.slack.com/…">;
44
+ }, z.core.$strip>, z.ZodMiniObject<{
45
+ token: z.ZodMiniLiteral<"[redacted]">;
46
+ type: z.ZodMiniLiteral<"betterstack">;
47
+ url: z.ZodMiniURL;
48
+ }, z.core.$strip>], "type">;
49
+ }, z.core.$strip>;
50
+ /** Webhook delivery data returned in collection rows. */
51
+ const Delivery: z.ZodMiniObject<{
52
+ attempt: z.ZodMiniNumber<number>;
53
+ createdAt: z.ZodMiniISODateTime;
54
+ error: z.ZodMiniOptional<z.ZodMiniString<string>>;
55
+ eventId: z.ZodMiniString<string>;
56
+ id: z.ZodMiniString<string>;
57
+ requestUrl: z.ZodMiniString<string>;
58
+ responseMs: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
59
+ responseStatus: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
60
+ status: z.ZodMiniEnum<{
61
+ failed: "failed";
62
+ pending: "pending";
63
+ succeeded: "succeeded";
64
+ }>;
65
+ subscriptionId: z.ZodMiniString<string>;
49
66
  }, z.core.$strip>;
50
67
  /** Schemas for creating an organization webhook. */
51
68
  namespace createWebhook {
@@ -54,7 +71,7 @@ export declare namespace schema {
54
71
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
55
72
  mainnet: "mainnet";
56
73
  testnet: "testnet";
57
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
74
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
58
75
  context: z.ZodMiniOptional<z.ZodMiniObject<{
59
76
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
60
77
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -82,7 +99,7 @@ export declare namespace schema {
82
99
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
83
100
  mainnet: "mainnet";
84
101
  testnet: "testnet";
85
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
102
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
86
103
  context: z.ZodMiniOptional<z.ZodMiniObject<{
87
104
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
88
105
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -242,7 +259,7 @@ export declare namespace schema {
242
259
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
243
260
  mainnet: "mainnet";
244
261
  testnet: "testnet";
245
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
262
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
246
263
  context: z.ZodMiniOptional<z.ZodMiniObject<{
247
264
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
248
265
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -310,7 +327,7 @@ export declare namespace schema {
310
327
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
311
328
  mainnet: "mainnet";
312
329
  testnet: "testnet";
313
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
330
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
314
331
  context: z.ZodMiniOptional<z.ZodMiniObject<{
315
332
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
316
333
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -376,7 +393,7 @@ export declare namespace schema {
376
393
  chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
377
394
  mainnet: "mainnet";
378
395
  testnet: "testnet";
379
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
396
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>>;
380
397
  context: z.ZodMiniOptional<z.ZodMiniObject<{
381
398
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
382
399
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -417,11 +434,6 @@ export declare namespace schema {
417
434
  /** Created webhook with transport credentials redacted. */
418
435
  const Response: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
419
436
  chainId: z.ZodMiniNumber<number>;
420
- context: z.ZodMiniOptional<z.ZodMiniObject<{
421
- description: z.ZodMiniOptional<z.ZodMiniString<string>>;
422
- metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
423
- title: z.ZodMiniOptional<z.ZodMiniString<string>>;
424
- }, z.core.$strip>>;
425
437
  createdAt: z.ZodMiniISODateTime;
426
438
  environment: z.ZodMiniOptional<z.ZodMiniEnum<{
427
439
  production: "production";
@@ -445,6 +457,11 @@ export declare namespace schema {
445
457
  paused: "paused";
446
458
  }>;
447
459
  updatedAt: z.ZodMiniISODateTime;
460
+ context: z.ZodMiniOptional<z.ZodMiniObject<{
461
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
462
+ metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
463
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
464
+ }, z.core.$strip>>;
448
465
  destination: z.ZodMiniObject<{
449
466
  type: z.ZodMiniLiteral<"url">;
450
467
  url: z.ZodMiniURL;
@@ -452,11 +469,6 @@ export declare namespace schema {
452
469
  secret: z.ZodMiniString<string>;
453
470
  }, z.core.$strip>, z.ZodMiniObject<{
454
471
  chainId: z.ZodMiniNumber<number>;
455
- context: z.ZodMiniOptional<z.ZodMiniObject<{
456
- description: z.ZodMiniOptional<z.ZodMiniString<string>>;
457
- metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
458
- title: z.ZodMiniOptional<z.ZodMiniString<string>>;
459
- }, z.core.$strip>>;
460
472
  createdAt: z.ZodMiniISODateTime;
461
473
  environment: z.ZodMiniOptional<z.ZodMiniEnum<{
462
474
  production: "production";
@@ -480,17 +492,17 @@ export declare namespace schema {
480
492
  paused: "paused";
481
493
  }>;
482
494
  updatedAt: z.ZodMiniISODateTime;
495
+ context: z.ZodMiniOptional<z.ZodMiniObject<{
496
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
497
+ metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
498
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
499
+ }, z.core.$strip>>;
483
500
  destination: z.ZodMiniObject<{
484
501
  type: z.ZodMiniLiteral<"slack">;
485
502
  url: z.ZodMiniLiteral<"https://hooks.slack.com/…">;
486
503
  }, z.core.$strip>;
487
504
  }, z.core.$strip>, z.ZodMiniObject<{
488
505
  chainId: z.ZodMiniNumber<number>;
489
- context: z.ZodMiniOptional<z.ZodMiniObject<{
490
- description: z.ZodMiniOptional<z.ZodMiniString<string>>;
491
- metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
492
- title: z.ZodMiniOptional<z.ZodMiniString<string>>;
493
- }, z.core.$strip>>;
494
506
  createdAt: z.ZodMiniISODateTime;
495
507
  environment: z.ZodMiniOptional<z.ZodMiniEnum<{
496
508
  production: "production";
@@ -514,6 +526,11 @@ export declare namespace schema {
514
526
  paused: "paused";
515
527
  }>;
516
528
  updatedAt: z.ZodMiniISODateTime;
529
+ context: z.ZodMiniOptional<z.ZodMiniObject<{
530
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
531
+ metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
532
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
533
+ }, z.core.$strip>>;
517
534
  destination: z.ZodMiniObject<{
518
535
  token: z.ZodMiniLiteral<"[redacted]">;
519
536
  type: z.ZodMiniLiteral<"betterstack">;
@@ -594,7 +611,7 @@ export declare namespace schema {
594
611
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
595
612
  mainnet: "mainnet";
596
613
  testnet: "testnet";
597
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
614
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
598
615
  context: z.ZodMiniOptional<z.ZodMiniObject<{
599
616
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
600
617
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -621,7 +638,7 @@ export declare namespace schema {
621
638
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
622
639
  mainnet: "mainnet";
623
640
  testnet: "testnet";
624
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
641
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
625
642
  context: z.ZodMiniOptional<z.ZodMiniObject<{
626
643
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
627
644
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -728,7 +745,7 @@ export declare namespace schema {
728
745
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
729
746
  mainnet: "mainnet";
730
747
  testnet: "testnet";
731
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
748
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
732
749
  context: z.ZodMiniOptional<z.ZodMiniObject<{
733
750
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
734
751
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -758,7 +775,7 @@ export declare namespace schema {
758
775
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
759
776
  mainnet: "mainnet";
760
777
  testnet: "testnet";
761
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
778
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
762
779
  context: z.ZodMiniOptional<z.ZodMiniObject<{
763
780
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
764
781
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -783,7 +800,7 @@ export declare namespace schema {
783
800
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
784
801
  mainnet: "mainnet";
785
802
  testnet: "testnet";
786
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
803
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
787
804
  context: z.ZodMiniOptional<z.ZodMiniObject<{
788
805
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
789
806
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -793,7 +810,7 @@ export declare namespace schema {
793
810
  id: z.ZodMiniString<string>;
794
811
  subscriptionId: z.ZodMiniString<string>;
795
812
  data: z.ZodMiniObject<{
796
- createdAt: z.ZodMiniString<string>;
813
+ createdAt: z.ZodMiniISODateTime;
797
814
  depositAddressId: z.ZodMiniString<string>;
798
815
  detectionTrigger: z.ZodMiniOptional<z.ZodMiniEnum<{
799
816
  chain: "chain";
@@ -907,14 +924,14 @@ export declare namespace schema {
907
924
  }>;
908
925
  message: z.ZodMiniString<string>;
909
926
  }, z.core.$strip>>;
910
- updatedAt: z.ZodMiniString<string>;
927
+ updatedAt: z.ZodMiniISODateTime;
911
928
  }, z.core.$strip>;
912
929
  type: z.ZodMiniLiteral<"funding:deposit.updated">;
913
930
  }, z.core.$strip>, z.ZodMiniObject<{
914
931
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
915
932
  mainnet: "mainnet";
916
933
  testnet: "testnet";
917
- }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
934
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>]>, z.ZodMiniNumber<number>>;
918
935
  context: z.ZodMiniOptional<z.ZodMiniObject<{
919
936
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
920
937
  metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
@@ -949,23 +966,7 @@ export declare namespace schema {
949
966
  const ListResponse: z.ZodMiniObject<{
950
967
  data: z.ZodMiniArray<z.ZodMiniObject<{
951
968
  chainId: z.ZodMiniNumber<number>;
952
- context: z.ZodMiniOptional<z.ZodMiniObject<{
953
- description: z.ZodMiniOptional<z.ZodMiniString<string>>;
954
- metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
955
- title: z.ZodMiniOptional<z.ZodMiniString<string>>;
956
- }, z.core.$strip>>;
957
969
  createdAt: z.ZodMiniISODateTime;
958
- destination: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
959
- type: z.ZodMiniLiteral<"url">;
960
- url: z.ZodMiniURL;
961
- }, z.core.$strip>, z.ZodMiniObject<{
962
- type: z.ZodMiniLiteral<"slack">;
963
- url: z.ZodMiniLiteral<"https://hooks.slack.com/…">;
964
- }, z.core.$strip>, z.ZodMiniObject<{
965
- token: z.ZodMiniLiteral<"[redacted]">;
966
- type: z.ZodMiniLiteral<"betterstack">;
967
- url: z.ZodMiniURL;
968
- }, z.core.$strip>], "type">;
969
970
  environment: z.ZodMiniOptional<z.ZodMiniEnum<{
970
971
  production: "production";
971
972
  sandbox: "sandbox";
@@ -988,6 +989,22 @@ export declare namespace schema {
988
989
  paused: "paused";
989
990
  }>;
990
991
  updatedAt: z.ZodMiniISODateTime;
992
+ context: z.ZodMiniOptional<z.ZodMiniObject<{
993
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
994
+ metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
995
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
996
+ }, z.core.$strip>>;
997
+ destination: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
998
+ type: z.ZodMiniLiteral<"url">;
999
+ url: z.ZodMiniURL;
1000
+ }, z.core.$strip>, z.ZodMiniObject<{
1001
+ type: z.ZodMiniLiteral<"slack">;
1002
+ url: z.ZodMiniLiteral<"https://hooks.slack.com/…">;
1003
+ }, z.core.$strip>, z.ZodMiniObject<{
1004
+ token: z.ZodMiniLiteral<"[redacted]">;
1005
+ type: z.ZodMiniLiteral<"betterstack">;
1006
+ url: z.ZodMiniURL;
1007
+ }, z.core.$strip>], "type">;
991
1008
  }, z.core.$strip>>;
992
1009
  }, z.core.$strip>;
993
1010
  /** Lifecycle state editable from the console. */
@@ -1009,7 +1026,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1009
1026
  $post: {
1010
1027
  output: {
1011
1028
  error: {
1012
- code: "api_key_malformed";
1029
+ code: "chain_id_unsupported";
1013
1030
  details?: readonly Response.error.Detail[] | undefined;
1014
1031
  message: string;
1015
1032
  };
@@ -1364,14 +1381,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1364
1381
  } | {
1365
1382
  output: {
1366
1383
  error: {
1367
- code: "api_key_invalid" | "api_key_missing";
1384
+ code: "upstream_error";
1368
1385
  details?: readonly Response.error.Detail[] | undefined;
1369
1386
  message: string;
1370
1387
  };
1371
1388
  requestId: string;
1372
1389
  };
1373
1390
  outputFormat: "json";
1374
- status: 401;
1391
+ status: 502;
1375
1392
  input: {
1376
1393
  param: {
1377
1394
  orgId: string;
@@ -1719,14 +1736,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1719
1736
  } | {
1720
1737
  output: {
1721
1738
  error: {
1722
- code: "upstream_error";
1739
+ code: "api_key_malformed";
1723
1740
  details?: readonly Response.error.Detail[] | undefined;
1724
1741
  message: string;
1725
1742
  };
1726
1743
  requestId: string;
1727
1744
  };
1728
1745
  outputFormat: "json";
1729
- status: 502;
1746
+ status: 400;
1730
1747
  input: {
1731
1748
  param: {
1732
1749
  orgId: string;
@@ -2074,14 +2091,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2074
2091
  } | {
2075
2092
  output: {
2076
2093
  error: {
2077
- code: "organization_not_found";
2094
+ code: "api_key_invalid" | "api_key_missing";
2078
2095
  details?: readonly Response.error.Detail[] | undefined;
2079
2096
  message: string;
2080
2097
  };
2081
2098
  requestId: string;
2082
2099
  };
2083
2100
  outputFormat: "json";
2084
- status: 404;
2101
+ status: 401;
2085
2102
  input: {
2086
2103
  param: {
2087
2104
  orgId: string;
@@ -2429,14 +2446,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2429
2446
  } | {
2430
2447
  output: {
2431
2448
  error: {
2432
- code: "forbidden";
2449
+ code: "param_invalid";
2433
2450
  details?: readonly Response.error.Detail[] | undefined;
2434
2451
  message: string;
2435
2452
  };
2436
2453
  requestId: string;
2437
2454
  };
2438
2455
  outputFormat: "json";
2439
- status: 403;
2456
+ status: 400;
2440
2457
  input: {
2441
2458
  param: {
2442
2459
  orgId: string;
@@ -2784,7 +2801,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2784
2801
  } | {
2785
2802
  output: {
2786
2803
  error: {
2787
- code: "chain_id_unsupported";
2804
+ code: "body_invalid";
2788
2805
  details?: readonly Response.error.Detail[] | undefined;
2789
2806
  message: string;
2790
2807
  };
@@ -3139,14 +3156,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3139
3156
  } | {
3140
3157
  output: {
3141
3158
  error: {
3142
- code: "param_invalid";
3159
+ code: "forbidden";
3143
3160
  details?: readonly Response.error.Detail[] | undefined;
3144
3161
  message: string;
3145
3162
  };
3146
3163
  requestId: string;
3147
3164
  };
3148
3165
  outputFormat: "json";
3149
- status: 400;
3166
+ status: 403;
3150
3167
  input: {
3151
3168
  param: {
3152
3169
  orgId: string;
@@ -3494,14 +3511,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3494
3511
  } | {
3495
3512
  output: {
3496
3513
  error: {
3497
- code: "body_invalid";
3514
+ code: "organization_not_found";
3498
3515
  details?: readonly Response.error.Detail[] | undefined;
3499
3516
  message: string;
3500
3517
  };
3501
3518
  requestId: string;
3502
3519
  };
3503
3520
  outputFormat: "json";
3504
- status: 400;
3521
+ status: 404;
3505
3522
  input: {
3506
3523
  param: {
3507
3524
  orgId: string;
@@ -5624,13 +5641,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5624
5641
  } | {
5625
5642
  output: {
5626
5643
  chainId: number;
5627
- context?: {
5628
- description?: string | undefined;
5629
- metadata?: {
5630
- [x: string]: string;
5631
- } | undefined;
5632
- title?: string | undefined;
5633
- } | undefined;
5634
5644
  createdAt: string;
5635
5645
  environment?: "production" | "sandbox" | undefined;
5636
5646
  eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
@@ -5643,13 +5653,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5643
5653
  lastDeliveryAt?: string | undefined;
5644
5654
  status: "active" | "disabled" | "paused";
5645
5655
  updatedAt: string;
5646
- destination: {
5647
- type: "url";
5648
- url: string;
5649
- };
5650
- secret: string;
5651
- } | {
5652
- chainId: number;
5653
5656
  context?: {
5654
5657
  description?: string | undefined;
5655
5658
  metadata?: {
@@ -5657,6 +5660,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5657
5660
  } | undefined;
5658
5661
  title?: string | undefined;
5659
5662
  } | undefined;
5663
+ destination: {
5664
+ type: "url";
5665
+ url: string;
5666
+ };
5667
+ secret: string;
5668
+ } | {
5669
+ chainId: number;
5660
5670
  createdAt: string;
5661
5671
  environment?: "production" | "sandbox" | undefined;
5662
5672
  eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
@@ -5669,12 +5679,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5669
5679
  lastDeliveryAt?: string | undefined;
5670
5680
  status: "active" | "disabled" | "paused";
5671
5681
  updatedAt: string;
5672
- destination: {
5673
- type: "slack";
5674
- url: "https://hooks.slack.com/…";
5675
- };
5676
- } | {
5677
- chainId: number;
5678
5682
  context?: {
5679
5683
  description?: string | undefined;
5680
5684
  metadata?: {
@@ -5682,6 +5686,12 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5682
5686
  } | undefined;
5683
5687
  title?: string | undefined;
5684
5688
  } | undefined;
5689
+ destination: {
5690
+ type: "slack";
5691
+ url: "https://hooks.slack.com/…";
5692
+ };
5693
+ } | {
5694
+ chainId: number;
5685
5695
  createdAt: string;
5686
5696
  environment?: "production" | "sandbox" | undefined;
5687
5697
  eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
@@ -5694,6 +5704,13 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5694
5704
  lastDeliveryAt?: string | undefined;
5695
5705
  status: "active" | "disabled" | "paused";
5696
5706
  updatedAt: string;
5707
+ context?: {
5708
+ description?: string | undefined;
5709
+ metadata?: {
5710
+ [x: string]: string;
5711
+ } | undefined;
5712
+ title?: string | undefined;
5713
+ } | undefined;
5697
5714
  destination: {
5698
5715
  token: "[redacted]";
5699
5716
  type: "betterstack";
@@ -6053,14 +6070,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6053
6070
  $get: {
6054
6071
  output: {
6055
6072
  error: {
6056
- code: "api_key_malformed";
6073
+ code: "upstream_error";
6057
6074
  details?: readonly Response.error.Detail[] | undefined;
6058
6075
  message: string;
6059
6076
  };
6060
6077
  requestId: string;
6061
6078
  };
6062
6079
  outputFormat: "json";
6063
- status: 400;
6080
+ status: 502;
6064
6081
  input: {
6065
6082
  param: {
6066
6083
  orgId: string;
@@ -6069,14 +6086,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6069
6086
  } | {
6070
6087
  output: {
6071
6088
  error: {
6072
- code: "api_key_invalid" | "api_key_missing";
6089
+ code: "api_key_malformed";
6073
6090
  details?: readonly Response.error.Detail[] | undefined;
6074
6091
  message: string;
6075
6092
  };
6076
6093
  requestId: string;
6077
6094
  };
6078
6095
  outputFormat: "json";
6079
- status: 401;
6096
+ status: 400;
6080
6097
  input: {
6081
6098
  param: {
6082
6099
  orgId: string;
@@ -6085,14 +6102,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6085
6102
  } | {
6086
6103
  output: {
6087
6104
  error: {
6088
- code: "upstream_error";
6105
+ code: "api_key_invalid" | "api_key_missing";
6089
6106
  details?: readonly Response.error.Detail[] | undefined;
6090
6107
  message: string;
6091
6108
  };
6092
6109
  requestId: string;
6093
6110
  };
6094
6111
  outputFormat: "json";
6095
- status: 502;
6112
+ status: 401;
6096
6113
  input: {
6097
6114
  param: {
6098
6115
  orgId: string;
@@ -6101,14 +6118,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6101
6118
  } | {
6102
6119
  output: {
6103
6120
  error: {
6104
- code: "organization_not_found";
6121
+ code: "param_invalid";
6105
6122
  details?: readonly Response.error.Detail[] | undefined;
6106
6123
  message: string;
6107
6124
  };
6108
6125
  requestId: string;
6109
6126
  };
6110
6127
  outputFormat: "json";
6111
- status: 404;
6128
+ status: 400;
6112
6129
  input: {
6113
6130
  param: {
6114
6131
  orgId: string;
@@ -6133,14 +6150,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6133
6150
  } | {
6134
6151
  output: {
6135
6152
  error: {
6136
- code: "param_invalid";
6153
+ code: "organization_not_found";
6137
6154
  details?: readonly Response.error.Detail[] | undefined;
6138
6155
  message: string;
6139
6156
  };
6140
6157
  requestId: string;
6141
6158
  };
6142
6159
  outputFormat: "json";
6143
- status: 400;
6160
+ status: 404;
6144
6161
  input: {
6145
6162
  param: {
6146
6163
  orgId: string;
@@ -6166,6 +6183,18 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6166
6183
  output: {
6167
6184
  data: {
6168
6185
  chainId: number;
6186
+ createdAt: string;
6187
+ environment?: "production" | "sandbox" | undefined;
6188
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6189
+ expiresAt?: string | undefined;
6190
+ failureCount: number;
6191
+ filters: {
6192
+ [x: string]: import("hono/utils/types").JSONValue;
6193
+ };
6194
+ id: string;
6195
+ lastDeliveryAt?: string | undefined;
6196
+ status: "active" | "disabled" | "paused";
6197
+ updatedAt: string;
6169
6198
  context?: {
6170
6199
  description?: string | undefined;
6171
6200
  metadata?: {
@@ -6173,7 +6202,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6173
6202
  } | undefined;
6174
6203
  title?: string | undefined;
6175
6204
  } | undefined;
6176
- createdAt: string;
6177
6205
  destination: {
6178
6206
  type: "url";
6179
6207
  url: string;
@@ -6185,17 +6213,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6185
6213
  type: "betterstack";
6186
6214
  url: string;
6187
6215
  };
6188
- environment?: "production" | "sandbox" | undefined;
6189
- eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6190
- expiresAt?: string | undefined;
6191
- failureCount: number;
6192
- filters: {
6193
- [x: string]: import("hono/utils/types").JSONValue;
6194
- };
6195
- id: string;
6196
- lastDeliveryAt?: string | undefined;
6197
- status: "active" | "disabled" | "paused";
6198
- updatedAt: string;
6199
6216
  }[];
6200
6217
  };
6201
6218
  outputFormat: "json";
@@ -6212,14 +6229,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6212
6229
  $get: {
6213
6230
  output: {
6214
6231
  error: {
6215
- code: "api_key_malformed";
6232
+ code: "upstream_error";
6216
6233
  details?: readonly Response.error.Detail[] | undefined;
6217
6234
  message: string;
6218
6235
  };
6219
6236
  requestId: string;
6220
6237
  };
6221
6238
  outputFormat: "json";
6222
- status: 400;
6239
+ status: 502;
6223
6240
  input: {
6224
6241
  param: {
6225
6242
  id: string;
@@ -6236,14 +6253,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6236
6253
  } | {
6237
6254
  output: {
6238
6255
  error: {
6239
- code: "api_key_invalid" | "api_key_missing";
6256
+ code: "query_invalid";
6240
6257
  details?: readonly Response.error.Detail[] | undefined;
6241
6258
  message: string;
6242
6259
  };
6243
6260
  requestId: string;
6244
6261
  };
6245
6262
  outputFormat: "json";
6246
- status: 401;
6263
+ status: 400;
6247
6264
  input: {
6248
6265
  param: {
6249
6266
  id: string;
@@ -6260,7 +6277,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6260
6277
  } | {
6261
6278
  output: {
6262
6279
  error: {
6263
- code: "query_invalid";
6280
+ code: "api_key_malformed";
6264
6281
  details?: readonly Response.error.Detail[] | undefined;
6265
6282
  message: string;
6266
6283
  };
@@ -6284,14 +6301,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6284
6301
  } | {
6285
6302
  output: {
6286
6303
  error: {
6287
- code: "upstream_error";
6304
+ code: "api_key_invalid" | "api_key_missing";
6288
6305
  details?: readonly Response.error.Detail[] | undefined;
6289
6306
  message: string;
6290
6307
  };
6291
6308
  requestId: string;
6292
6309
  };
6293
6310
  outputFormat: "json";
6294
- status: 502;
6311
+ status: 401;
6295
6312
  input: {
6296
6313
  param: {
6297
6314
  id: string;
@@ -6308,14 +6325,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6308
6325
  } | {
6309
6326
  output: {
6310
6327
  error: {
6311
- code: "organization_not_found";
6328
+ code: "param_invalid";
6312
6329
  details?: readonly Response.error.Detail[] | undefined;
6313
6330
  message: string;
6314
6331
  };
6315
6332
  requestId: string;
6316
6333
  };
6317
6334
  outputFormat: "json";
6318
- status: 404;
6335
+ status: 400;
6319
6336
  input: {
6320
6337
  param: {
6321
6338
  id: string;
@@ -6356,14 +6373,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6356
6373
  } | {
6357
6374
  output: {
6358
6375
  error: {
6359
- code: "param_invalid";
6376
+ code: "organization_not_found";
6360
6377
  details?: readonly Response.error.Detail[] | undefined;
6361
6378
  message: string;
6362
6379
  };
6363
6380
  requestId: string;
6364
6381
  };
6365
6382
  outputFormat: "json";
6366
- status: 400;
6383
+ status: 404;
6367
6384
  input: {
6368
6385
  param: {
6369
6386
  id: string;
@@ -6467,14 +6484,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6467
6484
  $get: {
6468
6485
  output: {
6469
6486
  error: {
6470
- code: "api_key_malformed";
6487
+ code: "upstream_error";
6471
6488
  details?: readonly Response.error.Detail[] | undefined;
6472
6489
  message: string;
6473
6490
  };
6474
6491
  requestId: string;
6475
6492
  };
6476
6493
  outputFormat: "json";
6477
- status: 400;
6494
+ status: 502;
6478
6495
  input: {
6479
6496
  param: {
6480
6497
  deliveryId: string;
@@ -6485,14 +6502,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6485
6502
  } | {
6486
6503
  output: {
6487
6504
  error: {
6488
- code: "api_key_invalid" | "api_key_missing";
6505
+ code: "api_key_malformed";
6489
6506
  details?: readonly Response.error.Detail[] | undefined;
6490
6507
  message: string;
6491
6508
  };
6492
6509
  requestId: string;
6493
6510
  };
6494
6511
  outputFormat: "json";
6495
- status: 401;
6512
+ status: 400;
6496
6513
  input: {
6497
6514
  param: {
6498
6515
  deliveryId: string;
@@ -6503,14 +6520,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6503
6520
  } | {
6504
6521
  output: {
6505
6522
  error: {
6506
- code: "upstream_error";
6523
+ code: "api_key_invalid" | "api_key_missing";
6507
6524
  details?: readonly Response.error.Detail[] | undefined;
6508
6525
  message: string;
6509
6526
  };
6510
6527
  requestId: string;
6511
6528
  };
6512
6529
  outputFormat: "json";
6513
- status: 502;
6530
+ status: 401;
6514
6531
  input: {
6515
6532
  param: {
6516
6533
  deliveryId: string;
@@ -6521,14 +6538,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6521
6538
  } | {
6522
6539
  output: {
6523
6540
  error: {
6524
- code: "organization_not_found";
6541
+ code: "param_invalid";
6525
6542
  details?: readonly Response.error.Detail[] | undefined;
6526
6543
  message: string;
6527
6544
  };
6528
6545
  requestId: string;
6529
6546
  };
6530
6547
  outputFormat: "json";
6531
- status: 404;
6548
+ status: 400;
6532
6549
  input: {
6533
6550
  param: {
6534
6551
  deliveryId: string;
@@ -6557,14 +6574,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6557
6574
  } | {
6558
6575
  output: {
6559
6576
  error: {
6560
- code: "param_invalid";
6577
+ code: "organization_not_found";
6561
6578
  details?: readonly Response.error.Detail[] | undefined;
6562
6579
  message: string;
6563
6580
  };
6564
6581
  requestId: string;
6565
6582
  };
6566
6583
  outputFormat: "json";
6567
- status: 400;
6584
+ status: 404;
6568
6585
  input: {
6569
6586
  param: {
6570
6587
  deliveryId: string;
@@ -6954,14 +6971,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6954
6971
  $post: {
6955
6972
  output: {
6956
6973
  error: {
6957
- code: "api_key_malformed";
6974
+ code: "upstream_error";
6958
6975
  details?: readonly Response.error.Detail[] | undefined;
6959
6976
  message: string;
6960
6977
  };
6961
6978
  requestId: string;
6962
6979
  };
6963
6980
  outputFormat: "json";
6964
- status: 400;
6981
+ status: 502;
6965
6982
  input: {
6966
6983
  param: {
6967
6984
  deliveryId: string;
@@ -6972,14 +6989,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6972
6989
  } | {
6973
6990
  output: {
6974
6991
  error: {
6975
- code: "api_key_invalid" | "api_key_missing";
6992
+ code: "api_key_malformed";
6976
6993
  details?: readonly Response.error.Detail[] | undefined;
6977
6994
  message: string;
6978
6995
  };
6979
6996
  requestId: string;
6980
6997
  };
6981
6998
  outputFormat: "json";
6982
- status: 401;
6999
+ status: 400;
6983
7000
  input: {
6984
7001
  param: {
6985
7002
  deliveryId: string;
@@ -6990,14 +7007,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6990
7007
  } | {
6991
7008
  output: {
6992
7009
  error: {
6993
- code: "upstream_error";
7010
+ code: "api_key_invalid" | "api_key_missing";
6994
7011
  details?: readonly Response.error.Detail[] | undefined;
6995
7012
  message: string;
6996
7013
  };
6997
7014
  requestId: string;
6998
7015
  };
6999
7016
  outputFormat: "json";
7000
- status: 502;
7017
+ status: 401;
7001
7018
  input: {
7002
7019
  param: {
7003
7020
  deliveryId: string;
@@ -7008,14 +7025,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7008
7025
  } | {
7009
7026
  output: {
7010
7027
  error: {
7011
- code: "organization_not_found";
7028
+ code: "param_invalid";
7012
7029
  details?: readonly Response.error.Detail[] | undefined;
7013
7030
  message: string;
7014
7031
  };
7015
7032
  requestId: string;
7016
7033
  };
7017
7034
  outputFormat: "json";
7018
- status: 404;
7035
+ status: 400;
7019
7036
  input: {
7020
7037
  param: {
7021
7038
  deliveryId: string;
@@ -7044,14 +7061,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7044
7061
  } | {
7045
7062
  output: {
7046
7063
  error: {
7047
- code: "param_invalid";
7064
+ code: "organization_not_found";
7048
7065
  details?: readonly Response.error.Detail[] | undefined;
7049
7066
  message: string;
7050
7067
  };
7051
7068
  requestId: string;
7052
7069
  };
7053
7070
  outputFormat: "json";
7054
- status: 400;
7071
+ status: 404;
7055
7072
  input: {
7056
7073
  param: {
7057
7074
  deliveryId: string;
@@ -7137,14 +7154,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7137
7154
  $patch: {
7138
7155
  output: {
7139
7156
  error: {
7140
- code: "api_key_malformed";
7157
+ code: "upstream_error";
7141
7158
  details?: readonly Response.error.Detail[] | undefined;
7142
7159
  message: string;
7143
7160
  };
7144
7161
  requestId: string;
7145
7162
  };
7146
7163
  outputFormat: "json";
7147
- status: 400;
7164
+ status: 502;
7148
7165
  input: {
7149
7166
  param: {
7150
7167
  id: string;
@@ -7158,14 +7175,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7158
7175
  } | {
7159
7176
  output: {
7160
7177
  error: {
7161
- code: "api_key_invalid" | "api_key_missing";
7178
+ code: "api_key_malformed";
7162
7179
  details?: readonly Response.error.Detail[] | undefined;
7163
7180
  message: string;
7164
7181
  };
7165
7182
  requestId: string;
7166
7183
  };
7167
7184
  outputFormat: "json";
7168
- status: 401;
7185
+ status: 400;
7169
7186
  input: {
7170
7187
  param: {
7171
7188
  id: string;
@@ -7179,14 +7196,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7179
7196
  } | {
7180
7197
  output: {
7181
7198
  error: {
7182
- code: "upstream_error";
7199
+ code: "api_key_invalid" | "api_key_missing";
7183
7200
  details?: readonly Response.error.Detail[] | undefined;
7184
7201
  message: string;
7185
7202
  };
7186
7203
  requestId: string;
7187
7204
  };
7188
7205
  outputFormat: "json";
7189
- status: 502;
7206
+ status: 401;
7190
7207
  input: {
7191
7208
  param: {
7192
7209
  id: string;
@@ -7200,14 +7217,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7200
7217
  } | {
7201
7218
  output: {
7202
7219
  error: {
7203
- code: "organization_not_found";
7220
+ code: "param_invalid";
7204
7221
  details?: readonly Response.error.Detail[] | undefined;
7205
7222
  message: string;
7206
7223
  };
7207
7224
  requestId: string;
7208
7225
  };
7209
7226
  outputFormat: "json";
7210
- status: 404;
7227
+ status: 400;
7211
7228
  input: {
7212
7229
  param: {
7213
7230
  id: string;
@@ -7221,14 +7238,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7221
7238
  } | {
7222
7239
  output: {
7223
7240
  error: {
7224
- code: "forbidden";
7241
+ code: "body_invalid";
7225
7242
  details?: readonly Response.error.Detail[] | undefined;
7226
7243
  message: string;
7227
7244
  };
7228
7245
  requestId: string;
7229
7246
  };
7230
7247
  outputFormat: "json";
7231
- status: 403;
7248
+ status: 400;
7232
7249
  input: {
7233
7250
  param: {
7234
7251
  id: string;
@@ -7242,14 +7259,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7242
7259
  } | {
7243
7260
  output: {
7244
7261
  error: {
7245
- code: "param_invalid";
7262
+ code: "forbidden";
7246
7263
  details?: readonly Response.error.Detail[] | undefined;
7247
7264
  message: string;
7248
7265
  };
7249
7266
  requestId: string;
7250
7267
  };
7251
7268
  outputFormat: "json";
7252
- status: 400;
7269
+ status: 403;
7253
7270
  input: {
7254
7271
  param: {
7255
7272
  id: string;
@@ -7263,14 +7280,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7263
7280
  } | {
7264
7281
  output: {
7265
7282
  error: {
7266
- code: "body_invalid";
7283
+ code: "organization_not_found";
7267
7284
  details?: readonly Response.error.Detail[] | undefined;
7268
7285
  message: string;
7269
7286
  };
7270
7287
  requestId: string;
7271
7288
  };
7272
7289
  outputFormat: "json";
7273
- status: 400;
7290
+ status: 404;
7274
7291
  input: {
7275
7292
  param: {
7276
7293
  id: string;
@@ -7326,6 +7343,18 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7326
7343
  } | {
7327
7344
  output: {
7328
7345
  chainId: number;
7346
+ createdAt: string;
7347
+ environment?: "production" | "sandbox" | undefined;
7348
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
7349
+ expiresAt?: string | undefined;
7350
+ failureCount: number;
7351
+ filters: {
7352
+ [x: string]: import("hono/utils/types").JSONValue;
7353
+ };
7354
+ id: string;
7355
+ lastDeliveryAt?: string | undefined;
7356
+ status: "active" | "disabled" | "paused";
7357
+ updatedAt: string;
7329
7358
  context?: {
7330
7359
  description?: string | undefined;
7331
7360
  metadata?: {
@@ -7333,7 +7362,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7333
7362
  } | undefined;
7334
7363
  title?: string | undefined;
7335
7364
  } | undefined;
7336
- createdAt: string;
7337
7365
  destination: {
7338
7366
  type: "url";
7339
7367
  url: string;
@@ -7345,17 +7373,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7345
7373
  type: "betterstack";
7346
7374
  url: string;
7347
7375
  };
7348
- environment?: "production" | "sandbox" | undefined;
7349
- eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
7350
- expiresAt?: string | undefined;
7351
- failureCount: number;
7352
- filters: {
7353
- [x: string]: import("hono/utils/types").JSONValue;
7354
- };
7355
- id: string;
7356
- lastDeliveryAt?: string | undefined;
7357
- status: "active" | "disabled" | "paused";
7358
- updatedAt: string;
7359
7376
  };
7360
7377
  outputFormat: "json";
7361
7378
  status: 200;
@@ -7376,14 +7393,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7376
7393
  $delete: {
7377
7394
  output: {
7378
7395
  error: {
7379
- code: "api_key_malformed";
7396
+ code: "upstream_error";
7380
7397
  details?: readonly Response.error.Detail[] | undefined;
7381
7398
  message: string;
7382
7399
  };
7383
7400
  requestId: string;
7384
7401
  };
7385
7402
  outputFormat: "json";
7386
- status: 400;
7403
+ status: 502;
7387
7404
  input: {
7388
7405
  param: {
7389
7406
  id: string;
@@ -7393,14 +7410,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7393
7410
  } | {
7394
7411
  output: {
7395
7412
  error: {
7396
- code: "api_key_invalid" | "api_key_missing";
7413
+ code: "api_key_malformed";
7397
7414
  details?: readonly Response.error.Detail[] | undefined;
7398
7415
  message: string;
7399
7416
  };
7400
7417
  requestId: string;
7401
7418
  };
7402
7419
  outputFormat: "json";
7403
- status: 401;
7420
+ status: 400;
7404
7421
  input: {
7405
7422
  param: {
7406
7423
  id: string;
@@ -7410,14 +7427,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7410
7427
  } | {
7411
7428
  output: {
7412
7429
  error: {
7413
- code: "upstream_error";
7430
+ code: "api_key_invalid" | "api_key_missing";
7414
7431
  details?: readonly Response.error.Detail[] | undefined;
7415
7432
  message: string;
7416
7433
  };
7417
7434
  requestId: string;
7418
7435
  };
7419
7436
  outputFormat: "json";
7420
- status: 502;
7437
+ status: 401;
7421
7438
  input: {
7422
7439
  param: {
7423
7440
  id: string;
@@ -7427,14 +7444,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7427
7444
  } | {
7428
7445
  output: {
7429
7446
  error: {
7430
- code: "organization_not_found";
7447
+ code: "param_invalid";
7431
7448
  details?: readonly Response.error.Detail[] | undefined;
7432
7449
  message: string;
7433
7450
  };
7434
7451
  requestId: string;
7435
7452
  };
7436
7453
  outputFormat: "json";
7437
- status: 404;
7454
+ status: 400;
7438
7455
  input: {
7439
7456
  param: {
7440
7457
  id: string;
@@ -7461,14 +7478,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7461
7478
  } | {
7462
7479
  output: {
7463
7480
  error: {
7464
- code: "param_invalid";
7481
+ code: "organization_not_found";
7465
7482
  details?: readonly Response.error.Detail[] | undefined;
7466
7483
  message: string;
7467
7484
  };
7468
7485
  requestId: string;
7469
7486
  };
7470
7487
  outputFormat: "json";
7471
- status: 400;
7488
+ status: 404;
7472
7489
  input: {
7473
7490
  param: {
7474
7491
  id: string;