tapimo 0.10.1 → 0.11.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 (225) hide show
  1. package/dist/App.d.ts +5249 -3572
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js.map +1 -1
  4. package/dist/Webhooks.d.ts +1 -76
  5. package/dist/Webhooks.d.ts.map +1 -1
  6. package/dist/Webhooks.js +2 -144
  7. package/dist/Webhooks.js.map +1 -1
  8. package/dist/admin/App.d.ts +74 -74
  9. package/dist/admin/apps/earn-vaults.d.ts +1 -1
  10. package/dist/admin/apps/organizations.d.ts +3 -3
  11. package/dist/admin/apps/verified-tokens.d.ts +74 -74
  12. package/dist/analytics/Analytics.d.ts.map +1 -1
  13. package/dist/analytics/Analytics.js +206 -0
  14. package/dist/analytics/Analytics.js.map +1 -1
  15. package/dist/analytics/tables/requestEvents.d.ts +4 -0
  16. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  17. package/dist/analytics/tables/requestEvents.js +2 -0
  18. package/dist/analytics/tables/requestEvents.js.map +1 -1
  19. package/dist/apps/data/App.d.ts +3618 -2954
  20. package/dist/apps/data/App.d.ts.map +1 -1
  21. package/dist/apps/data/App.js +7 -2
  22. package/dist/apps/data/App.js.map +1 -1
  23. package/dist/apps/data/routes/activities.d.ts +1 -1
  24. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  25. package/dist/apps/data/routes/activities.js +55 -27
  26. package/dist/apps/data/routes/activities.js.map +1 -1
  27. package/dist/apps/data/routes/balances.d.ts +11 -11
  28. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  29. package/dist/apps/data/routes/balances.js +2 -6
  30. package/dist/apps/data/routes/balances.js.map +1 -1
  31. package/dist/apps/data/routes/blocks.d.ts +5 -5
  32. package/dist/apps/data/routes/earn.d.ts +4 -4
  33. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  34. package/dist/apps/data/routes/earn.js +63 -34
  35. package/dist/apps/data/routes/earn.js.map +1 -1
  36. package/dist/apps/data/routes/exchanges.d.ts +8 -4
  37. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  38. package/dist/apps/data/routes/exchanges.js +115 -77
  39. package/dist/apps/data/routes/exchanges.js.map +1 -1
  40. package/dist/apps/data/routes/fee-amm.d.ts +26 -26
  41. package/dist/apps/data/routes/receipts.d.ts +240 -239
  42. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  43. package/dist/apps/data/routes/receipts.js +15 -14
  44. package/dist/apps/data/routes/receipts.js.map +1 -1
  45. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  46. package/dist/apps/data/routes/tokens.d.ts +4 -4
  47. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  48. package/dist/apps/data/routes/tokens.js +4 -3
  49. package/dist/apps/data/routes/tokens.js.map +1 -1
  50. package/dist/apps/data/routes/transactions.d.ts +282 -282
  51. package/dist/apps/data/routes/transfers.d.ts +13 -13
  52. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  53. package/dist/apps/data/routes/transfers.js +25 -7
  54. package/dist/apps/data/routes/transfers.js.map +1 -1
  55. package/dist/apps/data/routes/valuation.d.ts +21 -21
  56. package/dist/apps/data/routes/verified-tokens.d.ts +5 -5
  57. package/dist/apps/data/routes/webhooks.d.ts +1519 -643
  58. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  59. package/dist/apps/data/routes/webhooks.js +134 -740
  60. package/dist/apps/data/routes/webhooks.js.map +1 -1
  61. package/dist/apps/data/routes/zones.d.ts +3 -3
  62. package/dist/apps/funding/App.d.ts +233 -0
  63. package/dist/apps/funding/App.d.ts.map +1 -1
  64. package/dist/apps/funding/routes/deposit-addresses.d.ts +331 -1
  65. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  66. package/dist/apps/funding/routes/deposit-addresses.js +207 -11
  67. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  68. package/dist/apps/funding/routes/transfers.d.ts +33 -33
  69. package/dist/apps/management/App.d.ts +793 -16
  70. package/dist/apps/management/App.d.ts.map +1 -1
  71. package/dist/apps/management/routes/api-keys.d.ts +50 -50
  72. package/dist/apps/management/routes/faucet.d.ts +2 -2
  73. package/dist/apps/management/routes/invite-links.d.ts +42 -42
  74. package/dist/apps/management/routes/members.d.ts +2 -2
  75. package/dist/apps/management/routes/projects.d.ts +40 -40
  76. package/dist/apps/management/routes/webhooks.d.ts +1031 -59
  77. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  78. package/dist/apps/management/routes/webhooks.js +27 -4
  79. package/dist/apps/management/routes/webhooks.js.map +1 -1
  80. package/dist/db/Db.d.ts.map +1 -1
  81. package/dist/db/Db.js +53 -0
  82. package/dist/db/Db.js.map +1 -1
  83. package/dist/db/Schema.d.ts +7 -1
  84. package/dist/db/Schema.d.ts.map +1 -1
  85. package/dist/db/Schema.js +9 -0
  86. package/dist/db/Schema.js.map +1 -1
  87. package/dist/db/tables/fundingDepositAddresses.d.ts +20 -0
  88. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
  89. package/dist/db/tables/fundingDepositAddresses.js +17 -0
  90. package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
  91. package/dist/db/tables/fundingDeposits.d.ts +41 -0
  92. package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
  93. package/dist/db/tables/fundingDeposits.js +69 -0
  94. package/dist/db/tables/fundingDeposits.js.map +1 -1
  95. package/dist/db/tables/webhookQueueEvents.d.ts +3 -1
  96. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
  97. package/dist/db/tables/webhookQueueEvents.js +4 -0
  98. package/dist/db/tables/webhookQueueEvents.js.map +1 -1
  99. package/dist/db/tables/webhookSubscriptions.d.ts +33 -69
  100. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  101. package/dist/db/tables/webhookSubscriptions.js +63 -100
  102. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  103. package/dist/internal/Auth.d.ts +0 -26
  104. package/dist/internal/Auth.d.ts.map +1 -1
  105. package/dist/internal/Auth.js +0 -33
  106. package/dist/internal/Auth.js.map +1 -1
  107. package/dist/internal/Credential.d.ts +27 -0
  108. package/dist/internal/Credential.d.ts.map +1 -0
  109. package/dist/internal/Credential.js +34 -0
  110. package/dist/internal/Credential.js.map +1 -0
  111. package/dist/internal/EarnRates.js +11 -7
  112. package/dist/internal/EarnRates.js.map +1 -1
  113. package/dist/internal/Log.d.ts +8 -0
  114. package/dist/internal/Log.d.ts.map +1 -1
  115. package/dist/internal/Log.js +4 -0
  116. package/dist/internal/Log.js.map +1 -1
  117. package/dist/internal/MetricSink.d.ts +50 -116
  118. package/dist/internal/MetricSink.d.ts.map +1 -1
  119. package/dist/internal/MetricSink.js +60 -106
  120. package/dist/internal/MetricSink.js.map +1 -1
  121. package/dist/internal/Schema.d.ts +3 -1
  122. package/dist/internal/Schema.d.ts.map +1 -1
  123. package/dist/internal/Schema.js +4 -2
  124. package/dist/internal/Schema.js.map +1 -1
  125. package/dist/internal/Tidx.d.ts +4 -3
  126. package/dist/internal/Tidx.d.ts.map +1 -1
  127. package/dist/internal/Tidx.js +2 -2
  128. package/dist/internal/Tidx.js.map +1 -1
  129. package/dist/internal/Viem.d.ts +4 -3
  130. package/dist/internal/Viem.d.ts.map +1 -1
  131. package/dist/internal/Viem.js +3 -2
  132. package/dist/internal/Viem.js.map +1 -1
  133. package/dist/internal/WebhookTransfer.d.ts +1 -55
  134. package/dist/internal/WebhookTransfer.d.ts.map +1 -1
  135. package/dist/internal/WebhookTransfer.js +1 -239
  136. package/dist/internal/WebhookTransfer.js.map +1 -1
  137. package/dist/internal/Webhooks.d.ts +85 -44
  138. package/dist/internal/Webhooks.d.ts.map +1 -1
  139. package/dist/internal/Webhooks.js +94 -73
  140. package/dist/internal/Webhooks.js.map +1 -1
  141. package/dist/internal/funding/DepositWebhook.d.ts +25 -0
  142. package/dist/internal/funding/DepositWebhook.d.ts.map +1 -0
  143. package/dist/internal/funding/DepositWebhook.js +74 -0
  144. package/dist/internal/funding/DepositWebhook.js.map +1 -0
  145. package/dist/internal/funding/Reconciliation.d.ts +6 -0
  146. package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
  147. package/dist/internal/funding/Reconciliation.js +42 -10
  148. package/dist/internal/funding/Reconciliation.js.map +1 -1
  149. package/dist/internal/funding/index.d.ts +1 -0
  150. package/dist/internal/funding/index.d.ts.map +1 -1
  151. package/dist/internal/funding/index.js +1 -0
  152. package/dist/internal/funding/index.js.map +1 -1
  153. package/dist/internal/index.d.ts +1 -0
  154. package/dist/internal/index.d.ts.map +1 -1
  155. package/dist/internal/index.js +1 -0
  156. package/dist/internal/index.js.map +1 -1
  157. package/dist/internal/webhookDestinations/slack.d.ts.map +1 -1
  158. package/dist/internal/webhookDestinations/slack.js +16 -0
  159. package/dist/internal/webhookDestinations/slack.js.map +1 -1
  160. package/package.json +1 -1
  161. package/src/App.test.ts +30 -0
  162. package/src/App.ts +3 -0
  163. package/src/Client.test-d.ts +55 -2
  164. package/src/Webhooks.ts +2 -221
  165. package/src/analytics/Analytics.test.ts +34 -0
  166. package/src/analytics/Analytics.ts +206 -0
  167. package/src/analytics/tables/requestEvents.ts +6 -0
  168. package/src/apps/composition.test.ts +1 -0
  169. package/src/apps/data/App.ts +10 -2
  170. package/src/apps/data/routes/activities.test.ts +107 -11
  171. package/src/apps/data/routes/activities.ts +64 -32
  172. package/src/apps/data/routes/balances.ts +2 -6
  173. package/src/apps/data/routes/earn.ts +64 -34
  174. package/src/apps/data/routes/exchanges.test.ts +8 -3
  175. package/src/apps/data/routes/exchanges.ts +134 -82
  176. package/src/apps/data/routes/receipts.ts +16 -14
  177. package/src/apps/data/routes/tokens.ts +3 -2
  178. package/src/apps/data/routes/transactions.bench.ts +8 -0
  179. package/src/apps/data/routes/transfers.ts +36 -10
  180. package/src/apps/data/routes/webhooks.test.ts +179 -1497
  181. package/src/apps/data/routes/webhooks.ts +172 -975
  182. package/src/apps/funding/routes/deposit-addresses.test.ts +216 -2
  183. package/src/apps/funding/routes/deposit-addresses.ts +254 -18
  184. package/src/apps/funding/routes/transfers.test.ts +17 -2
  185. package/src/apps/management/routes/webhooks.test.ts +79 -1
  186. package/src/apps/management/routes/webhooks.ts +40 -4
  187. package/src/db/Db.test.ts +1 -5
  188. package/src/db/Db.ts +59 -0
  189. package/src/db/Schema.ts +13 -0
  190. package/src/db/tables/fundingDepositAddresses.test.ts +28 -0
  191. package/src/db/tables/fundingDepositAddresses.ts +39 -0
  192. package/src/db/tables/fundingDeposits.test.ts +82 -0
  193. package/src/db/tables/fundingDeposits.ts +130 -0
  194. package/src/db/tables/organizations.test.ts +5 -2
  195. package/src/db/tables/webhookQueueEvents.ts +7 -1
  196. package/src/db/tables/webhookSubscriptions.ts +89 -138
  197. package/src/internal/Auth.test.ts +0 -48
  198. package/src/internal/Auth.ts +0 -59
  199. package/src/internal/Credential.test.ts +51 -0
  200. package/src/internal/Credential.ts +58 -0
  201. package/src/internal/EarnRates.ts +13 -7
  202. package/src/internal/Log.test.ts +3 -1
  203. package/src/internal/Log.ts +14 -0
  204. package/src/internal/MetricSink.test.ts +75 -358
  205. package/src/internal/MetricSink.ts +117 -246
  206. package/src/internal/Schema.test.ts +18 -0
  207. package/src/internal/Schema.ts +13 -2
  208. package/src/internal/Tidx.ts +5 -4
  209. package/src/internal/Viem.test.ts +4 -0
  210. package/src/internal/Viem.ts +6 -4
  211. package/src/internal/WebhookTransfer.ts +1 -351
  212. package/src/internal/Webhooks.test.ts +111 -139
  213. package/src/internal/Webhooks.ts +181 -105
  214. package/src/internal/funding/DepositWebhook.test.ts +131 -0
  215. package/src/internal/funding/DepositWebhook.ts +101 -0
  216. package/src/internal/funding/Reconciliation.test.ts +14 -0
  217. package/src/internal/funding/Reconciliation.ts +161 -86
  218. package/src/internal/funding/index.test.ts +1 -0
  219. package/src/internal/funding/index.ts +1 -0
  220. package/src/internal/index.test.ts +1 -0
  221. package/src/internal/index.ts +1 -0
  222. package/src/internal/webhookDestinations/slack.ts +15 -0
  223. package/src/Webhooks.bench.ts +0 -714
  224. package/src/Webhooks.memory.bench.ts +0 -250
  225. package/src/Webhooks.test.ts +0 -146
@@ -1,8 +1,6 @@
1
1
  import { type RpcLog } from 'viem';
2
2
  import * as z from 'zod/mini';
3
3
  import type * as App from '../../../App.js';
4
- import * as Db from '../../../db/Db.js';
5
- import type * as MetricSink from '../../../internal/MetricSink.js';
6
4
  import * as Response from '../../../internal/Response.js';
7
5
  import * as Store from '../../../internal/Store.js';
8
6
  import type * as Viem from '../../../internal/Viem.js';
@@ -12,7 +10,7 @@ import * as Webhooks from '../../../internal/Webhooks.js';
12
10
  * truth for the event-type *set*: the {@link EventType} union and the route zod
13
11
  * enum ({@link schema.EventType}) both derive from this.
14
12
  */
15
- export declare const eventTypes: readonly ['block:created', 'log:emitted', 'token:transfer', 'transaction:included'];
13
+ export declare const eventTypes: readonly ['block:created', 'funding:deposit.updated', 'log:emitted', 'token:transfer', 'transaction:included'];
16
14
  /** Event types a subscription can listen to. Derived from {@link eventTypes}. */
17
15
  export type EventType = (typeof eventTypes)[number];
18
16
  /** Zod schemas owned by the webhooks resource. */
@@ -20,6 +18,7 @@ export declare namespace schema {
20
18
  /** Subscribable event type. */
21
19
  const EventType: z.ZodMiniEnum<{
22
20
  "block:created": "block:created";
21
+ "funding:deposit.updated": "funding:deposit.updated";
23
22
  "log:emitted": "log:emitted";
24
23
  "token:transfer": "token:transfer";
25
24
  "transaction:included": "transaction:included";
@@ -334,6 +333,20 @@ export declare namespace schema {
334
333
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
335
334
  }, z.core.$strict>]>>;
336
335
  }, z.core.$strict>;
336
+ /** `funding:deposit.updated` subscription filters. All are optional and AND-combined. */
337
+ const FundingDepositFilters: z.ZodMiniObject<{
338
+ depositAddressId: z.ZodMiniOptional<z.ZodMiniString<string>>;
339
+ recipient: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
340
+ status: z.ZodMiniOptional<z.ZodMiniEnum<{
341
+ "action-required": "action-required";
342
+ bridging: "bridging";
343
+ completed: "completed";
344
+ detected: "detected";
345
+ refunded: "refunded";
346
+ refunding: "refunding";
347
+ settling: "settling";
348
+ }>>;
349
+ }, z.core.$strict>;
337
350
  /**
338
351
  * Optional human context describing what a subscription is for. Surfaced by
339
352
  * destinations (Slack header + description, Better Stack log fields) and echoed
@@ -367,8 +380,13 @@ export declare namespace schema {
367
380
  type: z.ZodMiniLiteral<"betterstack">;
368
381
  url: z.ZodMiniURL;
369
382
  }, z.core.$strip>], "type">;
383
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
384
+ production: "production";
385
+ sandbox: "sandbox";
386
+ }>>;
370
387
  eventType: z.ZodMiniEnum<{
371
388
  "block:created": "block:created";
389
+ "funding:deposit.updated": "funding:deposit.updated";
372
390
  "log:emitted": "log:emitted";
373
391
  "token:transfer": "token:transfer";
374
392
  "transaction:included": "transaction:included";
@@ -558,6 +576,124 @@ export declare namespace schema {
558
576
  transactionCount: z.ZodMiniNumber<number>;
559
577
  timestamp: z.ZodMiniISODateTime;
560
578
  }, z.core.$strip>;
579
+ /** Public funding deposit after a committed material change. */
580
+ const FundingDepositEvent: z.ZodMiniObject<{
581
+ createdAt: z.ZodMiniString<string>;
582
+ depositAddressId: z.ZodMiniString<string>;
583
+ detectionTrigger: z.ZodMiniOptional<z.ZodMiniEnum<{
584
+ chain: "chain";
585
+ manual: "manual";
586
+ poll: "poll";
587
+ webhook: "webhook";
588
+ }>>;
589
+ destinationAmount: z.ZodMiniOptional<z.ZodMiniObject<{
590
+ baseUnits: z.ZodMiniString<string>;
591
+ currency: z.ZodMiniString<string>;
592
+ decimals: z.ZodMiniNumber<number>;
593
+ formatted: z.ZodMiniString<string>;
594
+ }, z.core.$strip>>;
595
+ destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
596
+ baseUnits: z.ZodMiniString<string>;
597
+ currency: z.ZodMiniString<string>;
598
+ decimals: z.ZodMiniNumber<number>;
599
+ formatted: z.ZodMiniString<string>;
600
+ }, z.core.$strip>>;
601
+ destinationChain: z.ZodMiniObject<{
602
+ addressFormat: z.ZodMiniEnum<{
603
+ base58: "base58";
604
+ base58check: "base58check";
605
+ hex: "hex";
606
+ }>;
607
+ id: z.ZodMiniString<string>;
608
+ kind: z.ZodMiniEnum<{
609
+ evm: "evm";
610
+ solana: "solana";
611
+ tron: "tron";
612
+ }>;
613
+ name: z.ZodMiniString<string>;
614
+ }, z.core.$strip>;
615
+ destinationToken: z.ZodMiniObject<{
616
+ address: z.ZodMiniString<string>;
617
+ currency: z.ZodMiniString<string>;
618
+ decimals: z.ZodMiniNumber<number>;
619
+ name: z.ZodMiniString<string>;
620
+ standard: z.ZodMiniString<string>;
621
+ symbol: z.ZodMiniString<string>;
622
+ tokenKey: z.ZodMiniString<string>;
623
+ verified: z.ZodMiniBoolean<boolean>;
624
+ }, z.core.$strip>;
625
+ destinationTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
626
+ id: z.ZodMiniString<string>;
627
+ provider: z.ZodMiniObject<{
628
+ id: z.ZodMiniString<string>;
629
+ name: z.ZodMiniString<string>;
630
+ }, z.core.$strip>;
631
+ recipient: z.ZodMiniString<string>;
632
+ refundAddress: z.ZodMiniString<string>;
633
+ refundAmount: z.ZodMiniOptional<z.ZodMiniObject<{
634
+ baseUnits: z.ZodMiniString<string>;
635
+ currency: z.ZodMiniString<string>;
636
+ decimals: z.ZodMiniNumber<number>;
637
+ formatted: z.ZodMiniString<string>;
638
+ }, z.core.$strip>>;
639
+ refundTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
640
+ sender: z.ZodMiniOptional<z.ZodMiniString<string>>;
641
+ sourceAmount: z.ZodMiniOptional<z.ZodMiniObject<{
642
+ baseUnits: z.ZodMiniString<string>;
643
+ currency: z.ZodMiniString<string>;
644
+ decimals: z.ZodMiniNumber<number>;
645
+ formatted: z.ZodMiniString<string>;
646
+ }, z.core.$strip>>;
647
+ sourceChain: z.ZodMiniObject<{
648
+ addressFormat: z.ZodMiniEnum<{
649
+ base58: "base58";
650
+ base58check: "base58check";
651
+ hex: "hex";
652
+ }>;
653
+ id: z.ZodMiniString<string>;
654
+ kind: z.ZodMiniEnum<{
655
+ evm: "evm";
656
+ solana: "solana";
657
+ tron: "tron";
658
+ }>;
659
+ name: z.ZodMiniString<string>;
660
+ }, z.core.$strip>;
661
+ sourceToken: z.ZodMiniObject<{
662
+ address: z.ZodMiniString<string>;
663
+ currency: z.ZodMiniString<string>;
664
+ decimals: z.ZodMiniNumber<number>;
665
+ name: z.ZodMiniString<string>;
666
+ standard: z.ZodMiniString<string>;
667
+ symbol: z.ZodMiniString<string>;
668
+ tokenKey: z.ZodMiniString<string>;
669
+ verified: z.ZodMiniBoolean<boolean>;
670
+ }, z.core.$strip>;
671
+ sourceTransactionHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
672
+ sourceTransferIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
673
+ status: z.ZodMiniEnum<{
674
+ "action-required": "action-required";
675
+ bridging: "bridging";
676
+ completed: "completed";
677
+ detected: "detected";
678
+ refunded: "refunded";
679
+ refunding: "refunding";
680
+ settling: "settling";
681
+ }>;
682
+ statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
683
+ code: z.ZodMiniEnum<{
684
+ delivery_failed: "delivery_failed";
685
+ delivery_liquidity_unavailable: "delivery_liquidity_unavailable";
686
+ manual_recovery_required: "manual_recovery_required";
687
+ refund_failed: "refund_failed";
688
+ source_amount_not_supported: "source_amount_not_supported";
689
+ source_token_mismatch: "source_token_mismatch";
690
+ subsidy_balance_unavailable: "subsidy_balance_unavailable";
691
+ subsidy_failed: "subsidy_failed";
692
+ }>;
693
+ message: z.ZodMiniString<string>;
694
+ }, z.core.$strip>>;
695
+ updatedAt: z.ZodMiniString<string>;
696
+ }, z.core.$strip>;
561
697
  /** A `ping` (synthetic test-delivery) payload, sent by `POST /webhooks/:id/ping`. */
562
698
  const PingEvent: z.ZodMiniObject<{
563
699
  ping: z.ZodMiniLiteral<true>;
@@ -760,6 +896,137 @@ export declare namespace schema {
760
896
  timestamp: z.ZodMiniISODateTime;
761
897
  }, z.core.$strip>;
762
898
  type: z.ZodMiniLiteral<"block:created">;
899
+ }, z.core.$strip>, z.ZodMiniObject<{
900
+ chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
901
+ mainnet: "mainnet";
902
+ testnet: "testnet";
903
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
904
+ context: z.ZodMiniOptional<z.ZodMiniObject<{
905
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
906
+ metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
907
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
908
+ }, z.core.$strip>>;
909
+ createdAt: z.ZodMiniISODateTime;
910
+ id: z.ZodMiniString<string>;
911
+ subscriptionId: z.ZodMiniString<string>;
912
+ data: z.ZodMiniObject<{
913
+ createdAt: z.ZodMiniString<string>;
914
+ depositAddressId: z.ZodMiniString<string>;
915
+ detectionTrigger: z.ZodMiniOptional<z.ZodMiniEnum<{
916
+ chain: "chain";
917
+ manual: "manual";
918
+ poll: "poll";
919
+ webhook: "webhook";
920
+ }>>;
921
+ destinationAmount: z.ZodMiniOptional<z.ZodMiniObject<{
922
+ baseUnits: z.ZodMiniString<string>;
923
+ currency: z.ZodMiniString<string>;
924
+ decimals: z.ZodMiniNumber<number>;
925
+ formatted: z.ZodMiniString<string>;
926
+ }, z.core.$strip>>;
927
+ destinationAmountRequired: z.ZodMiniOptional<z.ZodMiniObject<{
928
+ baseUnits: z.ZodMiniString<string>;
929
+ currency: z.ZodMiniString<string>;
930
+ decimals: z.ZodMiniNumber<number>;
931
+ formatted: z.ZodMiniString<string>;
932
+ }, z.core.$strip>>;
933
+ destinationChain: z.ZodMiniObject<{
934
+ addressFormat: z.ZodMiniEnum<{
935
+ base58: "base58";
936
+ base58check: "base58check";
937
+ hex: "hex";
938
+ }>;
939
+ id: z.ZodMiniString<string>;
940
+ kind: z.ZodMiniEnum<{
941
+ evm: "evm";
942
+ solana: "solana";
943
+ tron: "tron";
944
+ }>;
945
+ name: z.ZodMiniString<string>;
946
+ }, z.core.$strip>;
947
+ destinationToken: z.ZodMiniObject<{
948
+ address: z.ZodMiniString<string>;
949
+ currency: z.ZodMiniString<string>;
950
+ decimals: z.ZodMiniNumber<number>;
951
+ name: z.ZodMiniString<string>;
952
+ standard: z.ZodMiniString<string>;
953
+ symbol: z.ZodMiniString<string>;
954
+ tokenKey: z.ZodMiniString<string>;
955
+ verified: z.ZodMiniBoolean<boolean>;
956
+ }, z.core.$strip>;
957
+ destinationTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
958
+ id: z.ZodMiniString<string>;
959
+ provider: z.ZodMiniObject<{
960
+ id: z.ZodMiniString<string>;
961
+ name: z.ZodMiniString<string>;
962
+ }, z.core.$strip>;
963
+ recipient: z.ZodMiniString<string>;
964
+ refundAddress: z.ZodMiniString<string>;
965
+ refundAmount: z.ZodMiniOptional<z.ZodMiniObject<{
966
+ baseUnits: z.ZodMiniString<string>;
967
+ currency: z.ZodMiniString<string>;
968
+ decimals: z.ZodMiniNumber<number>;
969
+ formatted: z.ZodMiniString<string>;
970
+ }, z.core.$strip>>;
971
+ refundTransactionHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
972
+ sender: z.ZodMiniOptional<z.ZodMiniString<string>>;
973
+ sourceAmount: z.ZodMiniOptional<z.ZodMiniObject<{
974
+ baseUnits: z.ZodMiniString<string>;
975
+ currency: z.ZodMiniString<string>;
976
+ decimals: z.ZodMiniNumber<number>;
977
+ formatted: z.ZodMiniString<string>;
978
+ }, z.core.$strip>>;
979
+ sourceChain: z.ZodMiniObject<{
980
+ addressFormat: z.ZodMiniEnum<{
981
+ base58: "base58";
982
+ base58check: "base58check";
983
+ hex: "hex";
984
+ }>;
985
+ id: z.ZodMiniString<string>;
986
+ kind: z.ZodMiniEnum<{
987
+ evm: "evm";
988
+ solana: "solana";
989
+ tron: "tron";
990
+ }>;
991
+ name: z.ZodMiniString<string>;
992
+ }, z.core.$strip>;
993
+ sourceToken: z.ZodMiniObject<{
994
+ address: z.ZodMiniString<string>;
995
+ currency: z.ZodMiniString<string>;
996
+ decimals: z.ZodMiniNumber<number>;
997
+ name: z.ZodMiniString<string>;
998
+ standard: z.ZodMiniString<string>;
999
+ symbol: z.ZodMiniString<string>;
1000
+ tokenKey: z.ZodMiniString<string>;
1001
+ verified: z.ZodMiniBoolean<boolean>;
1002
+ }, z.core.$strip>;
1003
+ sourceTransactionHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
1004
+ sourceTransferIndex: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
1005
+ status: z.ZodMiniEnum<{
1006
+ "action-required": "action-required";
1007
+ bridging: "bridging";
1008
+ completed: "completed";
1009
+ detected: "detected";
1010
+ refunded: "refunded";
1011
+ refunding: "refunding";
1012
+ settling: "settling";
1013
+ }>;
1014
+ statusReason: z.ZodMiniOptional<z.ZodMiniObject<{
1015
+ code: z.ZodMiniEnum<{
1016
+ delivery_failed: "delivery_failed";
1017
+ delivery_liquidity_unavailable: "delivery_liquidity_unavailable";
1018
+ manual_recovery_required: "manual_recovery_required";
1019
+ refund_failed: "refund_failed";
1020
+ source_amount_not_supported: "source_amount_not_supported";
1021
+ source_token_mismatch: "source_token_mismatch";
1022
+ subsidy_balance_unavailable: "subsidy_balance_unavailable";
1023
+ subsidy_failed: "subsidy_failed";
1024
+ }>;
1025
+ message: z.ZodMiniString<string>;
1026
+ }, z.core.$strip>>;
1027
+ updatedAt: z.ZodMiniString<string>;
1028
+ }, z.core.$strip>;
1029
+ type: z.ZodMiniLiteral<"funding:deposit.updated">;
763
1030
  }, z.core.$strip>, z.ZodMiniObject<{
764
1031
  chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
765
1032
  mainnet: "mainnet";
@@ -785,6 +1052,7 @@ export declare namespace schema {
785
1052
  description: z.ZodMiniString<string>;
786
1053
  type: z.ZodMiniEnum<{
787
1054
  "block:created": "block:created";
1055
+ "funding:deposit.updated": "funding:deposit.updated";
788
1056
  "log:emitted": "log:emitted";
789
1057
  "token:transfer": "token:transfer";
790
1058
  "transaction:included": "transaction:included";
@@ -1122,6 +1390,41 @@ export declare namespace schema {
1122
1390
  lte: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
1123
1391
  }, z.core.$strict>]>>;
1124
1392
  }, z.core.$strict>>;
1393
+ }, z.core.$strip>, z.ZodMiniObject<{
1394
+ chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
1395
+ mainnet: "mainnet";
1396
+ testnet: "testnet";
1397
+ }>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
1398
+ context: z.ZodMiniOptional<z.ZodMiniObject<{
1399
+ description: z.ZodMiniOptional<z.ZodMiniString<string>>;
1400
+ metadata: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
1401
+ title: z.ZodMiniOptional<z.ZodMiniString<string>>;
1402
+ }, z.core.$strip>>;
1403
+ destination: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
1404
+ type: z.ZodMiniLiteral<"url">;
1405
+ url: z.ZodMiniURL;
1406
+ }, z.core.$strip>, z.ZodMiniObject<{
1407
+ type: z.ZodMiniLiteral<"slack">;
1408
+ url: z.ZodMiniURL;
1409
+ }, z.core.$strip>, z.ZodMiniObject<{
1410
+ token: z.ZodMiniString<string>;
1411
+ type: z.ZodMiniLiteral<"betterstack">;
1412
+ url: z.ZodMiniURL;
1413
+ }, z.core.$strip>], "type">;
1414
+ eventType: z.ZodMiniLiteral<"funding:deposit.updated">;
1415
+ filters: z.ZodMiniOptional<z.ZodMiniObject<{
1416
+ depositAddressId: z.ZodMiniOptional<z.ZodMiniString<string>>;
1417
+ recipient: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
1418
+ status: z.ZodMiniOptional<z.ZodMiniEnum<{
1419
+ "action-required": "action-required";
1420
+ bridging: "bridging";
1421
+ completed: "completed";
1422
+ detected: "detected";
1423
+ refunded: "refunded";
1424
+ refunding: "refunding";
1425
+ settling: "settling";
1426
+ }>>;
1427
+ }, z.core.$strict>>;
1125
1428
  }, z.core.$strip>], "eventType">;
1126
1429
  const Response: z.ZodMiniObject<{
1127
1430
  chainId: z.ZodMiniNumber<number>;
@@ -1131,8 +1434,13 @@ export declare namespace schema {
1131
1434
  title: z.ZodMiniOptional<z.ZodMiniString<string>>;
1132
1435
  }, z.core.$strip>>;
1133
1436
  createdAt: z.ZodMiniISODateTime;
1437
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
1438
+ production: "production";
1439
+ sandbox: "sandbox";
1440
+ }>>;
1134
1441
  eventType: z.ZodMiniEnum<{
1135
1442
  "block:created": "block:created";
1443
+ "funding:deposit.updated": "funding:deposit.updated";
1136
1444
  "log:emitted": "log:emitted";
1137
1445
  "token:transfer": "token:transfer";
1138
1446
  "transaction:included": "transaction:included";
@@ -1169,7 +1477,7 @@ export declare namespace schema {
1169
1477
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
1170
1478
  totalCount: "totalCount";
1171
1479
  }>>>;
1172
- limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
1480
+ limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
1173
1481
  page: z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
1174
1482
  }, z.core.$strip>;
1175
1483
  const Response: z.ZodMiniObject<{
@@ -1192,8 +1500,13 @@ export declare namespace schema {
1192
1500
  type: z.ZodMiniLiteral<"betterstack">;
1193
1501
  url: z.ZodMiniURL;
1194
1502
  }, z.core.$strip>], "type">;
1503
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
1504
+ production: "production";
1505
+ sandbox: "sandbox";
1506
+ }>>;
1195
1507
  eventType: z.ZodMiniEnum<{
1196
1508
  "block:created": "block:created";
1509
+ "funding:deposit.updated": "funding:deposit.updated";
1197
1510
  "log:emitted": "log:emitted";
1198
1511
  "token:transfer": "token:transfer";
1199
1512
  "transaction:included": "transaction:included";
@@ -1241,8 +1554,13 @@ export declare namespace schema {
1241
1554
  type: z.ZodMiniLiteral<"betterstack">;
1242
1555
  url: z.ZodMiniURL;
1243
1556
  }, z.core.$strip>], "type">;
1557
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
1558
+ production: "production";
1559
+ sandbox: "sandbox";
1560
+ }>>;
1244
1561
  eventType: z.ZodMiniEnum<{
1245
1562
  "block:created": "block:created";
1563
+ "funding:deposit.updated": "funding:deposit.updated";
1246
1564
  "log:emitted": "log:emitted";
1247
1565
  "token:transfer": "token:transfer";
1248
1566
  "transaction:included": "transaction:included";
@@ -1270,7 +1588,7 @@ export declare namespace schema {
1270
1588
  include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
1271
1589
  totalCount: "totalCount";
1272
1590
  }>>>;
1273
- limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
1591
+ limit: z.ZodMiniDefault<z.ZodMiniPipe<z.ZodMiniNumber<unknown>, z.ZodMiniTransform<number, number>>>;
1274
1592
  page: z.ZodMiniOptional<z.ZodMiniNumber<unknown>>;
1275
1593
  }, z.core.$strip>;
1276
1594
  const Response: z.ZodMiniObject<{
@@ -1372,8 +1690,13 @@ export declare namespace schema {
1372
1690
  type: z.ZodMiniLiteral<"betterstack">;
1373
1691
  url: z.ZodMiniURL;
1374
1692
  }, z.core.$strip>], "type">;
1693
+ environment: z.ZodMiniOptional<z.ZodMiniEnum<{
1694
+ production: "production";
1695
+ sandbox: "sandbox";
1696
+ }>>;
1375
1697
  eventType: z.ZodMiniEnum<{
1376
1698
  "block:created": "block:created";
1699
+ "funding:deposit.updated": "funding:deposit.updated";
1377
1700
  "log:emitted": "log:emitted";
1378
1701
  "token:transfer": "token:transfer";
1379
1702
  "transaction:included": "transaction:included";
@@ -1411,14 +1734,9 @@ export declare namespace schema {
1411
1734
  export declare function webhooks(options?: webhooks.Options): import("hono/hono-base").HonoBase<App.Environment, {
1412
1735
  "/v1/webhooks/event-types": {
1413
1736
  $get: {
1414
- output: {
1415
- data: {
1416
- description: string;
1417
- type: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
1418
- }[];
1419
- };
1420
- outputFormat: "json";
1421
- status: 200;
1737
+ output: null;
1738
+ outputFormat: "body";
1739
+ status: 402;
1422
1740
  input: {};
1423
1741
  } | {
1424
1742
  output: {
@@ -1444,11 +1762,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1444
1762
  outputFormat: "json";
1445
1763
  status: 401;
1446
1764
  input: {};
1447
- } | {
1448
- output: null;
1449
- outputFormat: "body";
1450
- status: 402;
1451
- input: {};
1452
1765
  } | {
1453
1766
  output: {
1454
1767
  error: {
@@ -1464,26 +1777,36 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1464
1777
  } | {
1465
1778
  output: {
1466
1779
  error: {
1467
- code: "webhooks_not_enabled";
1780
+ code: "payment_required" | "rate_limit_exceeded";
1468
1781
  details?: readonly Response.error.Detail[] | undefined;
1469
1782
  message: string;
1470
1783
  };
1471
1784
  requestId: string;
1472
1785
  };
1473
1786
  outputFormat: "json";
1474
- status: 404;
1787
+ status: 429;
1475
1788
  input: {};
1476
1789
  } | {
1477
1790
  output: {
1478
1791
  error: {
1479
- code: "payment_required" | "rate_limit_exceeded";
1792
+ code: "webhooks_not_enabled";
1480
1793
  details?: readonly Response.error.Detail[] | undefined;
1481
1794
  message: string;
1482
1795
  };
1483
1796
  requestId: string;
1484
1797
  };
1485
1798
  outputFormat: "json";
1486
- status: 429;
1799
+ status: 404;
1800
+ input: {};
1801
+ } | {
1802
+ output: {
1803
+ data: {
1804
+ description: string;
1805
+ type: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
1806
+ }[];
1807
+ };
1808
+ outputFormat: "json";
1809
+ status: 200;
1487
1810
  input: {};
1488
1811
  };
1489
1812
  };
@@ -1491,40 +1814,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1491
1814
  "/v1/webhooks": {
1492
1815
  $post: {
1493
1816
  output: {
1494
- chainId: number;
1495
- context?: {
1496
- description?: string | undefined;
1497
- metadata?: {
1498
- [x: string]: string;
1499
- } | undefined;
1500
- title?: string | undefined;
1501
- } | undefined;
1502
- createdAt: string;
1503
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
1504
- expiresAt?: string | undefined;
1505
- failureCount: number;
1506
- filters: {
1507
- [x: string]: import("hono/utils/types").JSONValue;
1508
- };
1509
- id: string;
1510
- lastDeliveryAt?: string | undefined;
1511
- status: "active" | "disabled" | "paused";
1512
- updatedAt: string;
1513
- destination: {
1514
- type: "url";
1515
- url: string;
1516
- } | {
1517
- type: "slack";
1518
- url: string;
1519
- } | {
1520
- token: string;
1521
- type: "betterstack";
1522
- url: string;
1817
+ error: {
1818
+ code: "api_key_malformed";
1819
+ details?: readonly Response.error.Detail[] | undefined;
1820
+ message: string;
1523
1821
  };
1524
- secret: string;
1822
+ requestId: string;
1525
1823
  };
1526
1824
  outputFormat: "json";
1527
- status: 200;
1825
+ status: 400;
1528
1826
  input: {
1529
1827
  json: {
1530
1828
  chainId?: unknown;
@@ -1836,19 +2134,43 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
1836
2134
  lte?: `0x${string}` | undefined;
1837
2135
  } | `0x${string}` | undefined;
1838
2136
  } | undefined;
2137
+ } | {
2138
+ chainId?: unknown;
2139
+ context?: {
2140
+ description?: string | undefined;
2141
+ metadata?: Record<string, string> | undefined;
2142
+ title?: string | undefined;
2143
+ } | undefined;
2144
+ destination: {
2145
+ type: "url";
2146
+ url: string;
2147
+ } | {
2148
+ type: "slack";
2149
+ url: string;
2150
+ } | {
2151
+ token: string;
2152
+ type: "betterstack";
2153
+ url: string;
2154
+ };
2155
+ eventType: "funding:deposit.updated";
2156
+ filters?: {
2157
+ depositAddressId?: string | undefined;
2158
+ recipient?: `0x${string}` | undefined;
2159
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2160
+ } | undefined;
1839
2161
  };
1840
2162
  };
1841
2163
  } | {
1842
2164
  output: {
1843
2165
  error: {
1844
- code: "api_key_malformed";
2166
+ code: "api_key_invalid" | "api_key_missing";
1845
2167
  details?: readonly Response.error.Detail[] | undefined;
1846
2168
  message: string;
1847
2169
  };
1848
2170
  requestId: string;
1849
2171
  };
1850
2172
  outputFormat: "json";
1851
- status: 400;
2173
+ status: 401;
1852
2174
  input: {
1853
2175
  json: {
1854
2176
  chainId?: unknown;
@@ -2160,19 +2482,43 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2160
2482
  lte?: `0x${string}` | undefined;
2161
2483
  } | `0x${string}` | undefined;
2162
2484
  } | undefined;
2485
+ } | {
2486
+ chainId?: unknown;
2487
+ context?: {
2488
+ description?: string | undefined;
2489
+ metadata?: Record<string, string> | undefined;
2490
+ title?: string | undefined;
2491
+ } | undefined;
2492
+ destination: {
2493
+ type: "url";
2494
+ url: string;
2495
+ } | {
2496
+ type: "slack";
2497
+ url: string;
2498
+ } | {
2499
+ token: string;
2500
+ type: "betterstack";
2501
+ url: string;
2502
+ };
2503
+ eventType: "funding:deposit.updated";
2504
+ filters?: {
2505
+ depositAddressId?: string | undefined;
2506
+ recipient?: `0x${string}` | undefined;
2507
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2508
+ } | undefined;
2163
2509
  };
2164
2510
  };
2165
2511
  } | {
2166
2512
  output: {
2167
2513
  error: {
2168
- code: "body_invalid";
2514
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2169
2515
  details?: readonly Response.error.Detail[] | undefined;
2170
2516
  message: string;
2171
2517
  };
2172
2518
  requestId: string;
2173
2519
  };
2174
2520
  outputFormat: "json";
2175
- status: 400;
2521
+ status: 403;
2176
2522
  input: {
2177
2523
  json: {
2178
2524
  chainId?: unknown;
@@ -2484,19 +2830,43 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2484
2830
  lte?: `0x${string}` | undefined;
2485
2831
  } | `0x${string}` | undefined;
2486
2832
  } | undefined;
2487
- };
2488
- };
2489
- } | {
2490
- output: {
2491
- error: {
2492
- code: "chain_id_unsupported";
2493
- details?: readonly Response.error.Detail[] | undefined;
2494
- message: string;
2495
- };
2496
- requestId: string;
2497
- };
2498
- outputFormat: "json";
2499
- status: 400;
2833
+ } | {
2834
+ chainId?: unknown;
2835
+ context?: {
2836
+ description?: string | undefined;
2837
+ metadata?: Record<string, string> | undefined;
2838
+ title?: string | undefined;
2839
+ } | undefined;
2840
+ destination: {
2841
+ type: "url";
2842
+ url: string;
2843
+ } | {
2844
+ type: "slack";
2845
+ url: string;
2846
+ } | {
2847
+ token: string;
2848
+ type: "betterstack";
2849
+ url: string;
2850
+ };
2851
+ eventType: "funding:deposit.updated";
2852
+ filters?: {
2853
+ depositAddressId?: string | undefined;
2854
+ recipient?: `0x${string}` | undefined;
2855
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
2856
+ } | undefined;
2857
+ };
2858
+ };
2859
+ } | {
2860
+ output: {
2861
+ error: {
2862
+ code: "payment_required" | "rate_limit_exceeded";
2863
+ details?: readonly Response.error.Detail[] | undefined;
2864
+ message: string;
2865
+ };
2866
+ requestId: string;
2867
+ };
2868
+ outputFormat: "json";
2869
+ status: 429;
2500
2870
  input: {
2501
2871
  json: {
2502
2872
  chainId?: unknown;
@@ -2808,19 +3178,43 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2808
3178
  lte?: `0x${string}` | undefined;
2809
3179
  } | `0x${string}` | undefined;
2810
3180
  } | undefined;
3181
+ } | {
3182
+ chainId?: unknown;
3183
+ context?: {
3184
+ description?: string | undefined;
3185
+ metadata?: Record<string, string> | undefined;
3186
+ title?: string | undefined;
3187
+ } | undefined;
3188
+ destination: {
3189
+ type: "url";
3190
+ url: string;
3191
+ } | {
3192
+ type: "slack";
3193
+ url: string;
3194
+ } | {
3195
+ token: string;
3196
+ type: "betterstack";
3197
+ url: string;
3198
+ };
3199
+ eventType: "funding:deposit.updated";
3200
+ filters?: {
3201
+ depositAddressId?: string | undefined;
3202
+ recipient?: `0x${string}` | undefined;
3203
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3204
+ } | undefined;
2811
3205
  };
2812
3206
  };
2813
3207
  } | {
2814
3208
  output: {
2815
3209
  error: {
2816
- code: "url_invalid";
3210
+ code: "upstream_error";
2817
3211
  details?: readonly Response.error.Detail[] | undefined;
2818
3212
  message: string;
2819
3213
  };
2820
3214
  requestId: string;
2821
3215
  };
2822
3216
  outputFormat: "json";
2823
- status: 400;
3217
+ status: 502;
2824
3218
  input: {
2825
3219
  json: {
2826
3220
  chainId?: unknown;
@@ -3132,19 +3526,43 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3132
3526
  lte?: `0x${string}` | undefined;
3133
3527
  } | `0x${string}` | undefined;
3134
3528
  } | undefined;
3529
+ } | {
3530
+ chainId?: unknown;
3531
+ context?: {
3532
+ description?: string | undefined;
3533
+ metadata?: Record<string, string> | undefined;
3534
+ title?: string | undefined;
3535
+ } | undefined;
3536
+ destination: {
3537
+ type: "url";
3538
+ url: string;
3539
+ } | {
3540
+ type: "slack";
3541
+ url: string;
3542
+ } | {
3543
+ token: string;
3544
+ type: "betterstack";
3545
+ url: string;
3546
+ };
3547
+ eventType: "funding:deposit.updated";
3548
+ filters?: {
3549
+ depositAddressId?: string | undefined;
3550
+ recipient?: `0x${string}` | undefined;
3551
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3552
+ } | undefined;
3135
3553
  };
3136
3554
  };
3137
3555
  } | {
3138
3556
  output: {
3139
3557
  error: {
3140
- code: "filters_invalid";
3558
+ code: "webhooks_not_enabled";
3141
3559
  details?: readonly Response.error.Detail[] | undefined;
3142
3560
  message: string;
3143
3561
  };
3144
3562
  requestId: string;
3145
3563
  };
3146
3564
  outputFormat: "json";
3147
- status: 400;
3565
+ status: 404;
3148
3566
  input: {
3149
3567
  json: {
3150
3568
  chainId?: unknown;
@@ -3456,19 +3874,43 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3456
3874
  lte?: `0x${string}` | undefined;
3457
3875
  } | `0x${string}` | undefined;
3458
3876
  } | undefined;
3877
+ } | {
3878
+ chainId?: unknown;
3879
+ context?: {
3880
+ description?: string | undefined;
3881
+ metadata?: Record<string, string> | undefined;
3882
+ title?: string | undefined;
3883
+ } | undefined;
3884
+ destination: {
3885
+ type: "url";
3886
+ url: string;
3887
+ } | {
3888
+ type: "slack";
3889
+ url: string;
3890
+ } | {
3891
+ token: string;
3892
+ type: "betterstack";
3893
+ url: string;
3894
+ };
3895
+ eventType: "funding:deposit.updated";
3896
+ filters?: {
3897
+ depositAddressId?: string | undefined;
3898
+ recipient?: `0x${string}` | undefined;
3899
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
3900
+ } | undefined;
3459
3901
  };
3460
3902
  };
3461
3903
  } | {
3462
3904
  output: {
3463
3905
  error: {
3464
- code: "api_key_invalid" | "api_key_missing";
3906
+ code: "body_invalid";
3465
3907
  details?: readonly Response.error.Detail[] | undefined;
3466
3908
  message: string;
3467
3909
  };
3468
3910
  requestId: string;
3469
3911
  };
3470
3912
  outputFormat: "json";
3471
- status: 401;
3913
+ status: 400;
3472
3914
  input: {
3473
3915
  json: {
3474
3916
  chainId?: unknown;
@@ -3780,6 +4222,30 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3780
4222
  lte?: `0x${string}` | undefined;
3781
4223
  } | `0x${string}` | undefined;
3782
4224
  } | undefined;
4225
+ } | {
4226
+ chainId?: unknown;
4227
+ context?: {
4228
+ description?: string | undefined;
4229
+ metadata?: Record<string, string> | undefined;
4230
+ title?: string | undefined;
4231
+ } | undefined;
4232
+ destination: {
4233
+ type: "url";
4234
+ url: string;
4235
+ } | {
4236
+ type: "slack";
4237
+ url: string;
4238
+ } | {
4239
+ token: string;
4240
+ type: "betterstack";
4241
+ url: string;
4242
+ };
4243
+ eventType: "funding:deposit.updated";
4244
+ filters?: {
4245
+ depositAddressId?: string | undefined;
4246
+ recipient?: `0x${string}` | undefined;
4247
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4248
+ } | undefined;
3783
4249
  };
3784
4250
  };
3785
4251
  } | {
@@ -4104,19 +4570,43 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4104
4570
  lte?: `0x${string}` | undefined;
4105
4571
  } | `0x${string}` | undefined;
4106
4572
  } | undefined;
4573
+ } | {
4574
+ chainId?: unknown;
4575
+ context?: {
4576
+ description?: string | undefined;
4577
+ metadata?: Record<string, string> | undefined;
4578
+ title?: string | undefined;
4579
+ } | undefined;
4580
+ destination: {
4581
+ type: "url";
4582
+ url: string;
4583
+ } | {
4584
+ type: "slack";
4585
+ url: string;
4586
+ } | {
4587
+ token: string;
4588
+ type: "betterstack";
4589
+ url: string;
4590
+ };
4591
+ eventType: "funding:deposit.updated";
4592
+ filters?: {
4593
+ depositAddressId?: string | undefined;
4594
+ recipient?: `0x${string}` | undefined;
4595
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4596
+ } | undefined;
4107
4597
  };
4108
4598
  };
4109
4599
  } | {
4110
4600
  output: {
4111
4601
  error: {
4112
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4602
+ code: "event_type_unsupported";
4113
4603
  details?: readonly Response.error.Detail[] | undefined;
4114
4604
  message: string;
4115
4605
  };
4116
4606
  requestId: string;
4117
4607
  };
4118
4608
  outputFormat: "json";
4119
- status: 403;
4609
+ status: 400;
4120
4610
  input: {
4121
4611
  json: {
4122
4612
  chainId?: unknown;
@@ -4428,19 +4918,43 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4428
4918
  lte?: `0x${string}` | undefined;
4429
4919
  } | `0x${string}` | undefined;
4430
4920
  } | undefined;
4921
+ } | {
4922
+ chainId?: unknown;
4923
+ context?: {
4924
+ description?: string | undefined;
4925
+ metadata?: Record<string, string> | undefined;
4926
+ title?: string | undefined;
4927
+ } | undefined;
4928
+ destination: {
4929
+ type: "url";
4930
+ url: string;
4931
+ } | {
4932
+ type: "slack";
4933
+ url: string;
4934
+ } | {
4935
+ token: string;
4936
+ type: "betterstack";
4937
+ url: string;
4938
+ };
4939
+ eventType: "funding:deposit.updated";
4940
+ filters?: {
4941
+ depositAddressId?: string | undefined;
4942
+ recipient?: `0x${string}` | undefined;
4943
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
4944
+ } | undefined;
4431
4945
  };
4432
4946
  };
4433
4947
  } | {
4434
4948
  output: {
4435
4949
  error: {
4436
- code: "limit_exceeded";
4950
+ code: "chain_id_unsupported";
4437
4951
  details?: readonly Response.error.Detail[] | undefined;
4438
4952
  message: string;
4439
4953
  };
4440
4954
  requestId: string;
4441
4955
  };
4442
4956
  outputFormat: "json";
4443
- status: 403;
4957
+ status: 400;
4444
4958
  input: {
4445
4959
  json: {
4446
4960
  chainId?: unknown;
@@ -4752,19 +5266,69 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4752
5266
  lte?: `0x${string}` | undefined;
4753
5267
  } | `0x${string}` | undefined;
4754
5268
  } | undefined;
5269
+ } | {
5270
+ chainId?: unknown;
5271
+ context?: {
5272
+ description?: string | undefined;
5273
+ metadata?: Record<string, string> | undefined;
5274
+ title?: string | undefined;
5275
+ } | undefined;
5276
+ destination: {
5277
+ type: "url";
5278
+ url: string;
5279
+ } | {
5280
+ type: "slack";
5281
+ url: string;
5282
+ } | {
5283
+ token: string;
5284
+ type: "betterstack";
5285
+ url: string;
5286
+ };
5287
+ eventType: "funding:deposit.updated";
5288
+ filters?: {
5289
+ depositAddressId?: string | undefined;
5290
+ recipient?: `0x${string}` | undefined;
5291
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
5292
+ } | undefined;
4755
5293
  };
4756
5294
  };
4757
5295
  } | {
4758
5296
  output: {
4759
- error: {
4760
- code: "webhooks_not_enabled";
4761
- details?: readonly Response.error.Detail[] | undefined;
4762
- message: string;
5297
+ chainId: number;
5298
+ context?: {
5299
+ description?: string | undefined;
5300
+ metadata?: {
5301
+ [x: string]: string;
5302
+ } | undefined;
5303
+ title?: string | undefined;
5304
+ } | undefined;
5305
+ createdAt: string;
5306
+ environment?: "production" | "sandbox" | undefined;
5307
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
5308
+ expiresAt?: string | undefined;
5309
+ failureCount: number;
5310
+ filters: {
5311
+ [x: string]: import("hono/utils/types").JSONValue;
4763
5312
  };
4764
- requestId: string;
5313
+ id: string;
5314
+ lastDeliveryAt?: string | undefined;
5315
+ status: "active" | "disabled" | "paused";
5316
+ updatedAt: string;
5317
+ destination: {
5318
+ type: "url";
5319
+ url: string;
5320
+ } | {
5321
+ type: "slack";
5322
+ url: string;
5323
+ } | {
5324
+ token: string;
5325
+ type: "betterstack";
5326
+ url: string;
5327
+ };
5328
+ secret: string;
4765
5329
  };
4766
5330
  outputFormat: "json";
4767
- status: 404;
5331
+ status: 200;
4768
5332
  input: {
4769
5333
  json: {
4770
5334
  chainId?: unknown;
@@ -5076,21 +5640,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5076
5640
  lte?: `0x${string}` | undefined;
5077
5641
  } | `0x${string}` | undefined;
5078
5642
  } | undefined;
5079
- };
5080
- };
5081
- } | {
5082
- output: {
5083
- error: {
5084
- code: "payment_required" | "rate_limit_exceeded";
5085
- details?: readonly Response.error.Detail[] | undefined;
5086
- message: string;
5087
- };
5088
- requestId: string;
5089
- };
5090
- outputFormat: "json";
5091
- status: 429;
5092
- input: {
5093
- json: {
5643
+ } | {
5094
5644
  chainId?: unknown;
5095
5645
  context?: {
5096
5646
  description?: string | undefined;
@@ -5108,11 +5658,49 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5108
5658
  type: "betterstack";
5109
5659
  url: string;
5110
5660
  };
5111
- eventType: "token:transfer";
5661
+ eventType: "funding:deposit.updated";
5112
5662
  filters?: {
5113
- address?: `0x${string}` | undefined;
5663
+ depositAddressId?: string | undefined;
5114
5664
  recipient?: `0x${string}` | undefined;
5115
- sender?: `0x${string}` | undefined;
5665
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
5666
+ } | undefined;
5667
+ };
5668
+ };
5669
+ } | {
5670
+ output: {
5671
+ error: {
5672
+ code: "url_invalid";
5673
+ details?: readonly Response.error.Detail[] | undefined;
5674
+ message: string;
5675
+ };
5676
+ requestId: string;
5677
+ };
5678
+ outputFormat: "json";
5679
+ status: 400;
5680
+ input: {
5681
+ json: {
5682
+ chainId?: unknown;
5683
+ context?: {
5684
+ description?: string | undefined;
5685
+ metadata?: Record<string, string> | undefined;
5686
+ title?: string | undefined;
5687
+ } | undefined;
5688
+ destination: {
5689
+ type: "url";
5690
+ url: string;
5691
+ } | {
5692
+ type: "slack";
5693
+ url: string;
5694
+ } | {
5695
+ token: string;
5696
+ type: "betterstack";
5697
+ url: string;
5698
+ };
5699
+ eventType: "token:transfer";
5700
+ filters?: {
5701
+ address?: `0x${string}` | undefined;
5702
+ recipient?: `0x${string}` | undefined;
5703
+ sender?: `0x${string}` | undefined;
5116
5704
  token?: `0x${string}` | undefined;
5117
5705
  } | undefined;
5118
5706
  } | {
@@ -5400,19 +5988,43 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5400
5988
  lte?: `0x${string}` | undefined;
5401
5989
  } | `0x${string}` | undefined;
5402
5990
  } | undefined;
5991
+ } | {
5992
+ chainId?: unknown;
5993
+ context?: {
5994
+ description?: string | undefined;
5995
+ metadata?: Record<string, string> | undefined;
5996
+ title?: string | undefined;
5997
+ } | undefined;
5998
+ destination: {
5999
+ type: "url";
6000
+ url: string;
6001
+ } | {
6002
+ type: "slack";
6003
+ url: string;
6004
+ } | {
6005
+ token: string;
6006
+ type: "betterstack";
6007
+ url: string;
6008
+ };
6009
+ eventType: "funding:deposit.updated";
6010
+ filters?: {
6011
+ depositAddressId?: string | undefined;
6012
+ recipient?: `0x${string}` | undefined;
6013
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
6014
+ } | undefined;
5403
6015
  };
5404
6016
  };
5405
6017
  } | {
5406
6018
  output: {
5407
6019
  error: {
5408
- code: "upstream_error";
6020
+ code: "filters_invalid";
5409
6021
  details?: readonly Response.error.Detail[] | undefined;
5410
6022
  message: string;
5411
6023
  };
5412
6024
  requestId: string;
5413
6025
  };
5414
6026
  outputFormat: "json";
5415
- status: 502;
6027
+ status: 400;
5416
6028
  input: {
5417
6029
  json: {
5418
6030
  chainId?: unknown;
@@ -5724,142 +6336,36 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5724
6336
  lte?: `0x${string}` | undefined;
5725
6337
  } | `0x${string}` | undefined;
5726
6338
  } | undefined;
5727
- };
5728
- };
5729
- };
5730
- };
5731
- } & {
5732
- "/v1/webhooks": {
5733
- $get: {
5734
- output: {
5735
- data: {
5736
- chainId: number;
6339
+ } | {
6340
+ chainId?: unknown;
5737
6341
  context?: {
5738
6342
  description?: string | undefined;
5739
- metadata?: {
5740
- [x: string]: string;
5741
- } | undefined;
6343
+ metadata?: Record<string, string> | undefined;
5742
6344
  title?: string | undefined;
5743
6345
  } | undefined;
5744
- createdAt: string;
5745
6346
  destination: {
5746
6347
  type: "url";
5747
6348
  url: string;
5748
6349
  } | {
5749
6350
  type: "slack";
5750
- url: "https://hooks.slack.com/…";
6351
+ url: string;
5751
6352
  } | {
5752
- token: "[redacted]";
6353
+ token: string;
5753
6354
  type: "betterstack";
5754
6355
  url: string;
5755
6356
  };
5756
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
5757
- expiresAt?: string | undefined;
5758
- failureCount: number;
5759
- filters: {
5760
- [x: string]: import("hono/utils/types").JSONValue;
5761
- };
5762
- id: string;
5763
- lastDeliveryAt?: string | undefined;
5764
- status: "active" | "disabled" | "paused";
5765
- updatedAt: string;
5766
- }[];
5767
- meta?: {
5768
- totalCountCapped: boolean;
5769
- totalCount: number;
5770
- } | undefined;
5771
- nextCursor: string | null;
5772
- };
5773
- outputFormat: "json";
5774
- status: 200;
5775
- input: {
5776
- query?: {
5777
- cursor?: string | string[];
5778
- include?: string | string[];
5779
- limit?: string | string[];
5780
- page?: string | string[];
5781
- } | undefined;
5782
- };
5783
- } | {
5784
- output: {
5785
- error: {
5786
- code: "api_key_malformed";
5787
- details?: readonly Response.error.Detail[] | undefined;
5788
- message: string;
5789
- };
5790
- requestId: string;
5791
- };
5792
- outputFormat: "json";
5793
- status: 400;
5794
- input: {
5795
- query?: {
5796
- cursor?: string | string[];
5797
- include?: string | string[];
5798
- limit?: string | string[];
5799
- page?: string | string[];
5800
- } | undefined;
5801
- };
5802
- } | {
5803
- output: {
5804
- error: {
5805
- code: "query_invalid";
5806
- details?: readonly Response.error.Detail[] | undefined;
5807
- message: string;
5808
- };
5809
- requestId: string;
5810
- };
5811
- outputFormat: "json";
5812
- status: 400;
5813
- input: {
5814
- query?: {
5815
- cursor?: string | string[];
5816
- include?: string | string[];
5817
- limit?: string | string[];
5818
- page?: string | string[];
5819
- } | undefined;
5820
- };
5821
- } | {
5822
- output: {
5823
- error: {
5824
- code: "api_key_invalid" | "api_key_missing";
5825
- details?: readonly Response.error.Detail[] | undefined;
5826
- message: string;
5827
- };
5828
- requestId: string;
5829
- };
5830
- outputFormat: "json";
5831
- status: 401;
5832
- input: {
5833
- query?: {
5834
- cursor?: string | string[];
5835
- include?: string | string[];
5836
- limit?: string | string[];
5837
- page?: string | string[];
5838
- } | undefined;
5839
- };
5840
- } | {
5841
- output: {
5842
- error: {
5843
- code: "unauthorized";
5844
- details?: readonly Response.error.Detail[] | undefined;
5845
- message: string;
6357
+ eventType: "funding:deposit.updated";
6358
+ filters?: {
6359
+ depositAddressId?: string | undefined;
6360
+ recipient?: `0x${string}` | undefined;
6361
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
6362
+ } | undefined;
5846
6363
  };
5847
- requestId: string;
5848
- };
5849
- outputFormat: "json";
5850
- status: 401;
5851
- input: {
5852
- query?: {
5853
- cursor?: string | string[];
5854
- include?: string | string[];
5855
- limit?: string | string[];
5856
- page?: string | string[];
5857
- } | undefined;
5858
6364
  };
5859
6365
  } | {
5860
6366
  output: {
5861
6367
  error: {
5862
- code: "api_key_forbidden" | "api_key_ip_forbidden";
6368
+ code: "limit_exceeded";
5863
6369
  details?: readonly Response.error.Detail[] | undefined;
5864
6370
  message: string;
5865
6371
  };
@@ -5868,115 +6374,554 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5868
6374
  outputFormat: "json";
5869
6375
  status: 403;
5870
6376
  input: {
5871
- query?: {
5872
- cursor?: string | string[];
5873
- include?: string | string[];
5874
- limit?: string | string[];
5875
- page?: string | string[];
5876
- } | undefined;
5877
- };
5878
- } | {
5879
- output: {
5880
- error: {
5881
- code: "webhooks_not_enabled";
5882
- details?: readonly Response.error.Detail[] | undefined;
5883
- message: string;
5884
- };
5885
- requestId: string;
5886
- };
5887
- outputFormat: "json";
5888
- status: 404;
5889
- input: {
5890
- query?: {
5891
- cursor?: string | string[];
5892
- include?: string | string[];
5893
- limit?: string | string[];
5894
- page?: string | string[];
5895
- } | undefined;
5896
- };
5897
- } | {
5898
- output: {
5899
- error: {
5900
- code: "payment_required" | "rate_limit_exceeded";
5901
- details?: readonly Response.error.Detail[] | undefined;
5902
- message: string;
5903
- };
5904
- requestId: string;
5905
- };
5906
- outputFormat: "json";
5907
- status: 429;
5908
- input: {
5909
- query?: {
5910
- cursor?: string | string[];
5911
- include?: string | string[];
5912
- limit?: string | string[];
5913
- page?: string | string[];
5914
- } | undefined;
5915
- };
5916
- } | {
5917
- output: {
5918
- error: {
5919
- code: "upstream_error";
5920
- details?: readonly Response.error.Detail[] | undefined;
5921
- message: string;
5922
- };
5923
- requestId: string;
5924
- };
5925
- outputFormat: "json";
5926
- status: 502;
5927
- input: {
5928
- query?: {
5929
- cursor?: string | string[];
5930
- include?: string | string[];
5931
- limit?: string | string[];
5932
- page?: string | string[];
5933
- } | undefined;
5934
- };
5935
- };
5936
- };
5937
- } & {
5938
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
6377
+ json: {
6378
+ chainId?: unknown;
6379
+ context?: {
6380
+ description?: string | undefined;
6381
+ metadata?: Record<string, string> | undefined;
6382
+ title?: string | undefined;
6383
+ } | undefined;
6384
+ destination: {
6385
+ type: "url";
6386
+ url: string;
6387
+ } | {
6388
+ type: "slack";
6389
+ url: string;
6390
+ } | {
6391
+ token: string;
6392
+ type: "betterstack";
6393
+ url: string;
6394
+ };
6395
+ eventType: "token:transfer";
6396
+ filters?: {
6397
+ address?: `0x${string}` | undefined;
6398
+ recipient?: `0x${string}` | undefined;
6399
+ sender?: `0x${string}` | undefined;
6400
+ token?: `0x${string}` | undefined;
6401
+ } | undefined;
6402
+ } | {
6403
+ chainId?: unknown;
6404
+ context?: {
6405
+ description?: string | undefined;
6406
+ metadata?: Record<string, string> | undefined;
6407
+ title?: string | undefined;
6408
+ } | undefined;
6409
+ destination: {
6410
+ type: "url";
6411
+ url: string;
6412
+ } | {
6413
+ type: "slack";
6414
+ url: string;
6415
+ } | {
6416
+ token: string;
6417
+ type: "betterstack";
6418
+ url: string;
6419
+ };
6420
+ eventType: "transaction:included";
6421
+ filters?: {
6422
+ hash?: {
6423
+ eq: `0x${string}`;
6424
+ } | {
6425
+ in: `0x${string}`[];
6426
+ } | {
6427
+ not: `0x${string}`;
6428
+ } | `0x${string}` | undefined;
6429
+ address?: {
6430
+ eq: `0x${string}`;
6431
+ } | {
6432
+ in: `0x${string}`[];
6433
+ } | {
6434
+ not: `0x${string}`;
6435
+ } | `0x${string}` | undefined;
6436
+ from?: {
6437
+ eq: `0x${string}`;
6438
+ } | {
6439
+ in: `0x${string}`[];
6440
+ } | {
6441
+ not: `0x${string}`;
6442
+ } | `0x${string}` | undefined;
6443
+ to?: {
6444
+ eq: `0x${string}`;
6445
+ } | {
6446
+ in: `0x${string}`[];
6447
+ } | {
6448
+ not: `0x${string}`;
6449
+ } | `0x${string}` | undefined;
6450
+ includeCalls?: boolean | undefined;
6451
+ value?: {
6452
+ eq?: `0x${string}` | undefined;
6453
+ gt?: `0x${string}` | undefined;
6454
+ gte?: `0x${string}` | undefined;
6455
+ lt?: `0x${string}` | undefined;
6456
+ lte?: `0x${string}` | undefined;
6457
+ } | `0x${string}` | undefined;
6458
+ input?: {
6459
+ selector: string;
6460
+ } | {
6461
+ startsWith: string;
6462
+ } | {
6463
+ eq: string;
6464
+ } | undefined;
6465
+ calls?: {
6466
+ to: {
6467
+ eq: `0x${string}`;
6468
+ } | {
6469
+ in: `0x${string}`[];
6470
+ } | {
6471
+ not: `0x${string}`;
6472
+ } | `0x${string}`;
6473
+ } | undefined;
6474
+ callCount?: {
6475
+ eq?: `0x${string}` | undefined;
6476
+ gt?: `0x${string}` | undefined;
6477
+ gte?: `0x${string}` | undefined;
6478
+ lt?: `0x${string}` | undefined;
6479
+ lte?: `0x${string}` | undefined;
6480
+ } | `0x${string}` | undefined;
6481
+ txType?: string | {
6482
+ eq: string;
6483
+ } | {
6484
+ in: string[];
6485
+ } | {
6486
+ not: string;
6487
+ } | undefined;
6488
+ feeToken?: {
6489
+ eq: `0x${string}`;
6490
+ } | {
6491
+ in: `0x${string}`[];
6492
+ } | {
6493
+ not: `0x${string}`;
6494
+ } | `0x${string}` | undefined;
6495
+ gasLimit?: {
6496
+ eq?: `0x${string}` | undefined;
6497
+ gt?: `0x${string}` | undefined;
6498
+ gte?: `0x${string}` | undefined;
6499
+ lt?: `0x${string}` | undefined;
6500
+ lte?: `0x${string}` | undefined;
6501
+ } | `0x${string}` | undefined;
6502
+ maxFeePerGas?: {
6503
+ eq?: `0x${string}` | undefined;
6504
+ gt?: `0x${string}` | undefined;
6505
+ gte?: `0x${string}` | undefined;
6506
+ lt?: `0x${string}` | undefined;
6507
+ lte?: `0x${string}` | undefined;
6508
+ } | `0x${string}` | undefined;
6509
+ maxPriorityFeePerGas?: {
6510
+ eq?: `0x${string}` | undefined;
6511
+ gt?: `0x${string}` | undefined;
6512
+ gte?: `0x${string}` | undefined;
6513
+ lt?: `0x${string}` | undefined;
6514
+ lte?: `0x${string}` | undefined;
6515
+ } | `0x${string}` | undefined;
6516
+ nonce?: {
6517
+ eq?: `0x${string}` | undefined;
6518
+ gt?: `0x${string}` | undefined;
6519
+ gte?: `0x${string}` | undefined;
6520
+ lt?: `0x${string}` | undefined;
6521
+ lte?: `0x${string}` | undefined;
6522
+ } | `0x${string}` | undefined;
6523
+ nonceKey?: string | {
6524
+ eq: string;
6525
+ } | {
6526
+ in: string[];
6527
+ } | {
6528
+ not: string;
6529
+ } | undefined;
6530
+ validBefore?: {
6531
+ eq?: `0x${string}` | undefined;
6532
+ gt?: `0x${string}` | undefined;
6533
+ gte?: `0x${string}` | undefined;
6534
+ lt?: `0x${string}` | undefined;
6535
+ lte?: `0x${string}` | undefined;
6536
+ } | `0x${string}` | undefined;
6537
+ validAfter?: {
6538
+ eq?: `0x${string}` | undefined;
6539
+ gt?: `0x${string}` | undefined;
6540
+ gte?: `0x${string}` | undefined;
6541
+ lt?: `0x${string}` | undefined;
6542
+ lte?: `0x${string}` | undefined;
6543
+ } | `0x${string}` | undefined;
6544
+ blockNumber?: {
6545
+ eq?: `0x${string}` | undefined;
6546
+ gt?: `0x${string}` | undefined;
6547
+ gte?: `0x${string}` | undefined;
6548
+ lt?: `0x${string}` | undefined;
6549
+ lte?: `0x${string}` | undefined;
6550
+ } | `0x${string}` | undefined;
6551
+ timestamp?: {
6552
+ eq?: `0x${string}` | undefined;
6553
+ gt?: `0x${string}` | undefined;
6554
+ gte?: `0x${string}` | undefined;
6555
+ lt?: `0x${string}` | undefined;
6556
+ lte?: `0x${string}` | undefined;
6557
+ } | `0x${string}` | undefined;
6558
+ } | undefined;
6559
+ } | {
6560
+ chainId?: unknown;
6561
+ context?: {
6562
+ description?: string | undefined;
6563
+ metadata?: Record<string, string> | undefined;
6564
+ title?: string | undefined;
6565
+ } | undefined;
6566
+ destination: {
6567
+ type: "url";
6568
+ url: string;
6569
+ } | {
6570
+ type: "slack";
6571
+ url: string;
6572
+ } | {
6573
+ token: string;
6574
+ type: "betterstack";
6575
+ url: string;
6576
+ };
6577
+ eventType: "log:emitted";
6578
+ filters: {
6579
+ address?: {
6580
+ eq: `0x${string}`;
6581
+ } | {
6582
+ in: `0x${string}`[];
6583
+ } | {
6584
+ not: `0x${string}`;
6585
+ } | `0x${string}` | undefined;
6586
+ signature?: string | undefined;
6587
+ topic0?: {
6588
+ eq: `0x${string}`;
6589
+ } | {
6590
+ in: `0x${string}`[];
6591
+ } | {
6592
+ not: `0x${string}`;
6593
+ } | `0x${string}` | undefined;
6594
+ topic1?: {
6595
+ eq: `0x${string}`;
6596
+ } | {
6597
+ in: `0x${string}`[];
6598
+ } | {
6599
+ not: `0x${string}`;
6600
+ } | `0x${string}` | undefined;
6601
+ topic2?: {
6602
+ eq: `0x${string}`;
6603
+ } | {
6604
+ in: `0x${string}`[];
6605
+ } | {
6606
+ not: `0x${string}`;
6607
+ } | `0x${string}` | undefined;
6608
+ topic3?: {
6609
+ eq: `0x${string}`;
6610
+ } | {
6611
+ in: `0x${string}`[];
6612
+ } | {
6613
+ not: `0x${string}`;
6614
+ } | `0x${string}` | undefined;
6615
+ args?: Record<string, unknown> | undefined;
6616
+ blockNumber?: {
6617
+ eq?: `0x${string}` | undefined;
6618
+ gt?: `0x${string}` | undefined;
6619
+ gte?: `0x${string}` | undefined;
6620
+ lt?: `0x${string}` | undefined;
6621
+ lte?: `0x${string}` | undefined;
6622
+ } | `0x${string}` | undefined;
6623
+ };
6624
+ } | {
6625
+ chainId?: unknown;
6626
+ context?: {
6627
+ description?: string | undefined;
6628
+ metadata?: Record<string, string> | undefined;
6629
+ title?: string | undefined;
6630
+ } | undefined;
6631
+ destination: {
6632
+ type: "url";
6633
+ url: string;
6634
+ } | {
6635
+ type: "slack";
6636
+ url: string;
6637
+ } | {
6638
+ token: string;
6639
+ type: "betterstack";
6640
+ url: string;
6641
+ };
6642
+ eventType: "block:created";
6643
+ filters?: {
6644
+ number?: {
6645
+ eq?: `0x${string}` | undefined;
6646
+ gt?: `0x${string}` | undefined;
6647
+ gte?: `0x${string}` | undefined;
6648
+ lt?: `0x${string}` | undefined;
6649
+ lte?: `0x${string}` | undefined;
6650
+ } | `0x${string}` | undefined;
6651
+ miner?: {
6652
+ eq: `0x${string}`;
6653
+ } | {
6654
+ in: `0x${string}`[];
6655
+ } | {
6656
+ not: `0x${string}`;
6657
+ } | `0x${string}` | undefined;
6658
+ proposer?: {
6659
+ eq: `0x${string}`;
6660
+ } | {
6661
+ in: `0x${string}`[];
6662
+ } | {
6663
+ not: `0x${string}`;
6664
+ } | `0x${string}` | undefined;
6665
+ gasUsed?: {
6666
+ eq?: `0x${string}` | undefined;
6667
+ gt?: `0x${string}` | undefined;
6668
+ gte?: `0x${string}` | undefined;
6669
+ lt?: `0x${string}` | undefined;
6670
+ lte?: `0x${string}` | undefined;
6671
+ } | `0x${string}` | undefined;
6672
+ gasLimit?: {
6673
+ eq?: `0x${string}` | undefined;
6674
+ gt?: `0x${string}` | undefined;
6675
+ gte?: `0x${string}` | undefined;
6676
+ lt?: `0x${string}` | undefined;
6677
+ lte?: `0x${string}` | undefined;
6678
+ } | `0x${string}` | undefined;
6679
+ timestamp?: {
6680
+ eq?: `0x${string}` | undefined;
6681
+ gt?: `0x${string}` | undefined;
6682
+ gte?: `0x${string}` | undefined;
6683
+ lt?: `0x${string}` | undefined;
6684
+ lte?: `0x${string}` | undefined;
6685
+ } | `0x${string}` | undefined;
6686
+ } | undefined;
6687
+ } | {
6688
+ chainId?: unknown;
6689
+ context?: {
6690
+ description?: string | undefined;
6691
+ metadata?: Record<string, string> | undefined;
6692
+ title?: string | undefined;
6693
+ } | undefined;
6694
+ destination: {
6695
+ type: "url";
6696
+ url: string;
6697
+ } | {
6698
+ type: "slack";
6699
+ url: string;
6700
+ } | {
6701
+ token: string;
6702
+ type: "betterstack";
6703
+ url: string;
6704
+ };
6705
+ eventType: "funding:deposit.updated";
6706
+ filters?: {
6707
+ depositAddressId?: string | undefined;
6708
+ recipient?: `0x${string}` | undefined;
6709
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
6710
+ } | undefined;
6711
+ };
6712
+ };
6713
+ };
6714
+ };
6715
+ } & {
6716
+ "/v1/webhooks": {
5939
6717
  $get: {
5940
6718
  output: {
5941
- chainId: number;
5942
- context?: {
5943
- description?: string | undefined;
5944
- metadata?: {
5945
- [x: string]: string;
6719
+ error: {
6720
+ code: "api_key_malformed";
6721
+ details?: readonly Response.error.Detail[] | undefined;
6722
+ message: string;
6723
+ };
6724
+ requestId: string;
6725
+ };
6726
+ outputFormat: "json";
6727
+ status: 400;
6728
+ input: {
6729
+ query?: {
6730
+ cursor?: string | string[];
6731
+ include?: string | string[];
6732
+ limit?: string | string[];
6733
+ page?: string | string[];
6734
+ } | undefined;
6735
+ };
6736
+ } | {
6737
+ output: {
6738
+ error: {
6739
+ code: "api_key_invalid" | "api_key_missing";
6740
+ details?: readonly Response.error.Detail[] | undefined;
6741
+ message: string;
6742
+ };
6743
+ requestId: string;
6744
+ };
6745
+ outputFormat: "json";
6746
+ status: 401;
6747
+ input: {
6748
+ query?: {
6749
+ cursor?: string | string[];
6750
+ include?: string | string[];
6751
+ limit?: string | string[];
6752
+ page?: string | string[];
6753
+ } | undefined;
6754
+ };
6755
+ } | {
6756
+ output: {
6757
+ error: {
6758
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6759
+ details?: readonly Response.error.Detail[] | undefined;
6760
+ message: string;
6761
+ };
6762
+ requestId: string;
6763
+ };
6764
+ outputFormat: "json";
6765
+ status: 403;
6766
+ input: {
6767
+ query?: {
6768
+ cursor?: string | string[];
6769
+ include?: string | string[];
6770
+ limit?: string | string[];
6771
+ page?: string | string[];
6772
+ } | undefined;
6773
+ };
6774
+ } | {
6775
+ output: {
6776
+ error: {
6777
+ code: "payment_required" | "rate_limit_exceeded";
6778
+ details?: readonly Response.error.Detail[] | undefined;
6779
+ message: string;
6780
+ };
6781
+ requestId: string;
6782
+ };
6783
+ outputFormat: "json";
6784
+ status: 429;
6785
+ input: {
6786
+ query?: {
6787
+ cursor?: string | string[];
6788
+ include?: string | string[];
6789
+ limit?: string | string[];
6790
+ page?: string | string[];
6791
+ } | undefined;
6792
+ };
6793
+ } | {
6794
+ output: {
6795
+ error: {
6796
+ code: "query_invalid";
6797
+ details?: readonly Response.error.Detail[] | undefined;
6798
+ message: string;
6799
+ };
6800
+ requestId: string;
6801
+ };
6802
+ outputFormat: "json";
6803
+ status: 400;
6804
+ input: {
6805
+ query?: {
6806
+ cursor?: string | string[];
6807
+ include?: string | string[];
6808
+ limit?: string | string[];
6809
+ page?: string | string[];
6810
+ } | undefined;
6811
+ };
6812
+ } | {
6813
+ output: {
6814
+ error: {
6815
+ code: "upstream_error";
6816
+ details?: readonly Response.error.Detail[] | undefined;
6817
+ message: string;
6818
+ };
6819
+ requestId: string;
6820
+ };
6821
+ outputFormat: "json";
6822
+ status: 502;
6823
+ input: {
6824
+ query?: {
6825
+ cursor?: string | string[];
6826
+ include?: string | string[];
6827
+ limit?: string | string[];
6828
+ page?: string | string[];
6829
+ } | undefined;
6830
+ };
6831
+ } | {
6832
+ output: {
6833
+ error: {
6834
+ code: "webhooks_not_enabled";
6835
+ details?: readonly Response.error.Detail[] | undefined;
6836
+ message: string;
6837
+ };
6838
+ requestId: string;
6839
+ };
6840
+ outputFormat: "json";
6841
+ status: 404;
6842
+ input: {
6843
+ query?: {
6844
+ cursor?: string | string[];
6845
+ include?: string | string[];
6846
+ limit?: string | string[];
6847
+ page?: string | string[];
6848
+ } | undefined;
6849
+ };
6850
+ } | {
6851
+ output: {
6852
+ error: {
6853
+ code: "unauthorized";
6854
+ details?: readonly Response.error.Detail[] | undefined;
6855
+ message: string;
6856
+ };
6857
+ requestId: string;
6858
+ };
6859
+ outputFormat: "json";
6860
+ status: 401;
6861
+ input: {
6862
+ query?: {
6863
+ cursor?: string | string[];
6864
+ include?: string | string[];
6865
+ limit?: string | string[];
6866
+ page?: string | string[];
6867
+ } | undefined;
6868
+ };
6869
+ } | {
6870
+ output: {
6871
+ data: {
6872
+ chainId: number;
6873
+ context?: {
6874
+ description?: string | undefined;
6875
+ metadata?: {
6876
+ [x: string]: string;
6877
+ } | undefined;
6878
+ title?: string | undefined;
5946
6879
  } | undefined;
5947
- title?: string | undefined;
6880
+ createdAt: string;
6881
+ destination: {
6882
+ type: "url";
6883
+ url: string;
6884
+ } | {
6885
+ type: "slack";
6886
+ url: "https://hooks.slack.com/…";
6887
+ } | {
6888
+ token: "[redacted]";
6889
+ type: "betterstack";
6890
+ url: string;
6891
+ };
6892
+ environment?: "production" | "sandbox" | undefined;
6893
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
6894
+ expiresAt?: string | undefined;
6895
+ failureCount: number;
6896
+ filters: {
6897
+ [x: string]: import("hono/utils/types").JSONValue;
6898
+ };
6899
+ id: string;
6900
+ lastDeliveryAt?: string | undefined;
6901
+ status: "active" | "disabled" | "paused";
6902
+ updatedAt: string;
6903
+ }[];
6904
+ meta?: {
6905
+ totalCountCapped: boolean;
6906
+ totalCount: number;
5948
6907
  } | undefined;
5949
- createdAt: string;
5950
- destination: {
5951
- type: "url";
5952
- url: string;
5953
- } | {
5954
- type: "slack";
5955
- url: "https://hooks.slack.com/…";
5956
- } | {
5957
- token: "[redacted]";
5958
- type: "betterstack";
5959
- url: string;
5960
- };
5961
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
5962
- expiresAt?: string | undefined;
5963
- failureCount: number;
5964
- filters: {
5965
- [x: string]: import("hono/utils/types").JSONValue;
5966
- };
5967
- id: string;
5968
- lastDeliveryAt?: string | undefined;
5969
- status: "active" | "disabled" | "paused";
5970
- updatedAt: string;
6908
+ nextCursor: string | null;
5971
6909
  };
5972
6910
  outputFormat: "json";
5973
6911
  status: 200;
5974
6912
  input: {
5975
- param: {
5976
- id: string;
5977
- };
6913
+ query?: {
6914
+ cursor?: string | string[];
6915
+ include?: string | string[];
6916
+ limit?: string | string[];
6917
+ page?: string | string[];
6918
+ } | undefined;
5978
6919
  };
5979
- } | {
6920
+ };
6921
+ };
6922
+ } & {
6923
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
6924
+ $get: {
5980
6925
  output: {
5981
6926
  error: {
5982
6927
  code: "api_key_malformed";
@@ -5995,14 +6940,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5995
6940
  } | {
5996
6941
  output: {
5997
6942
  error: {
5998
- code: "param_invalid";
6943
+ code: "api_key_invalid" | "api_key_missing";
5999
6944
  details?: readonly Response.error.Detail[] | undefined;
6000
6945
  message: string;
6001
6946
  };
6002
6947
  requestId: string;
6003
6948
  };
6004
6949
  outputFormat: "json";
6005
- status: 400;
6950
+ status: 401;
6006
6951
  input: {
6007
6952
  param: {
6008
6953
  id: string;
@@ -6011,14 +6956,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6011
6956
  } | {
6012
6957
  output: {
6013
6958
  error: {
6014
- code: "api_key_invalid" | "api_key_missing";
6959
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6015
6960
  details?: readonly Response.error.Detail[] | undefined;
6016
6961
  message: string;
6017
6962
  };
6018
6963
  requestId: string;
6019
6964
  };
6020
6965
  outputFormat: "json";
6021
- status: 401;
6966
+ status: 403;
6022
6967
  input: {
6023
6968
  param: {
6024
6969
  id: string;
@@ -6027,14 +6972,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6027
6972
  } | {
6028
6973
  output: {
6029
6974
  error: {
6030
- code: "unauthorized";
6975
+ code: "payment_required" | "rate_limit_exceeded";
6031
6976
  details?: readonly Response.error.Detail[] | undefined;
6032
6977
  message: string;
6033
6978
  };
6034
6979
  requestId: string;
6035
6980
  };
6036
6981
  outputFormat: "json";
6037
- status: 401;
6982
+ status: 429;
6038
6983
  input: {
6039
6984
  param: {
6040
6985
  id: string;
@@ -6043,14 +6988,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6043
6988
  } | {
6044
6989
  output: {
6045
6990
  error: {
6046
- code: "api_key_forbidden" | "api_key_ip_forbidden";
6991
+ code: "upstream_error";
6047
6992
  details?: readonly Response.error.Detail[] | undefined;
6048
6993
  message: string;
6049
6994
  };
6050
6995
  requestId: string;
6051
6996
  };
6052
6997
  outputFormat: "json";
6053
- status: 403;
6998
+ status: 502;
6054
6999
  input: {
6055
7000
  param: {
6056
7001
  id: string;
@@ -6075,14 +7020,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6075
7020
  } | {
6076
7021
  output: {
6077
7022
  error: {
6078
- code: "webhook_not_found";
7023
+ code: "unauthorized";
6079
7024
  details?: readonly Response.error.Detail[] | undefined;
6080
7025
  message: string;
6081
7026
  };
6082
7027
  requestId: string;
6083
7028
  };
6084
7029
  outputFormat: "json";
6085
- status: 404;
7030
+ status: 401;
6086
7031
  input: {
6087
7032
  param: {
6088
7033
  id: string;
@@ -6091,14 +7036,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6091
7036
  } | {
6092
7037
  output: {
6093
7038
  error: {
6094
- code: "payment_required" | "rate_limit_exceeded";
7039
+ code: "param_invalid";
6095
7040
  details?: readonly Response.error.Detail[] | undefined;
6096
7041
  message: string;
6097
7042
  };
6098
7043
  requestId: string;
6099
7044
  };
6100
7045
  outputFormat: "json";
6101
- status: 429;
7046
+ status: 400;
6102
7047
  input: {
6103
7048
  param: {
6104
7049
  id: string;
@@ -6107,42 +7052,52 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6107
7052
  } | {
6108
7053
  output: {
6109
7054
  error: {
6110
- code: "upstream_error";
7055
+ code: "webhook_not_found";
6111
7056
  details?: readonly Response.error.Detail[] | undefined;
6112
7057
  message: string;
6113
7058
  };
6114
7059
  requestId: string;
6115
7060
  };
6116
7061
  outputFormat: "json";
6117
- status: 502;
7062
+ status: 404;
6118
7063
  input: {
6119
7064
  param: {
6120
7065
  id: string;
6121
7066
  };
6122
7067
  };
6123
- };
6124
- };
6125
- } & {
6126
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
6127
- $get: {
7068
+ } | {
6128
7069
  output: {
6129
- data: {
6130
- attempt: number;
6131
- createdAt: string;
6132
- error?: string | undefined;
6133
- eventId: string;
6134
- id: string;
6135
- requestUrl: string;
6136
- responseMs?: number | undefined;
6137
- responseStatus?: number | undefined;
6138
- status: "failed" | "pending" | "succeeded";
6139
- subscriptionId: string;
6140
- }[];
6141
- meta?: {
6142
- totalCountCapped: boolean;
6143
- totalCount: number;
7070
+ chainId: number;
7071
+ context?: {
7072
+ description?: string | undefined;
7073
+ metadata?: {
7074
+ [x: string]: string;
7075
+ } | undefined;
7076
+ title?: string | undefined;
6144
7077
  } | undefined;
6145
- nextCursor: string | null;
7078
+ createdAt: string;
7079
+ destination: {
7080
+ type: "url";
7081
+ url: string;
7082
+ } | {
7083
+ type: "slack";
7084
+ url: "https://hooks.slack.com/…";
7085
+ } | {
7086
+ token: "[redacted]";
7087
+ type: "betterstack";
7088
+ url: string;
7089
+ };
7090
+ environment?: "production" | "sandbox" | undefined;
7091
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
7092
+ expiresAt?: string | undefined;
7093
+ failureCount: number;
7094
+ filters: {
7095
+ [x: string]: import("hono/utils/types").JSONValue;
7096
+ };
7097
+ id: string;
7098
+ lastDeliveryAt?: string | undefined;
7099
+ status: "active" | "disabled" | "paused";
7100
+ updatedAt: string;
6146
7101
  };
6147
7102
  outputFormat: "json";
6148
7103
  status: 200;
@@ -6150,15 +7105,12 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6150
7105
  param: {
6151
7106
  id: string;
6152
7107
  };
6153
- } & {
6154
- query?: {
6155
- cursor?: string | string[];
6156
- include?: string | string[];
6157
- limit?: string | string[];
6158
- page?: string | string[];
6159
- } | undefined;
6160
7108
  };
6161
- } | {
7109
+ };
7110
+ };
7111
+ } & {
7112
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries": {
7113
+ $get: {
6162
7114
  output: {
6163
7115
  error: {
6164
7116
  code: "api_key_malformed";
@@ -6184,14 +7136,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6184
7136
  } | {
6185
7137
  output: {
6186
7138
  error: {
6187
- code: "query_invalid";
7139
+ code: "api_key_invalid" | "api_key_missing";
6188
7140
  details?: readonly Response.error.Detail[] | undefined;
6189
7141
  message: string;
6190
7142
  };
6191
7143
  requestId: string;
6192
7144
  };
6193
7145
  outputFormat: "json";
6194
- status: 400;
7146
+ status: 401;
6195
7147
  input: {
6196
7148
  param: {
6197
7149
  id: string;
@@ -6207,14 +7159,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6207
7159
  } | {
6208
7160
  output: {
6209
7161
  error: {
6210
- code: "param_invalid";
7162
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6211
7163
  details?: readonly Response.error.Detail[] | undefined;
6212
7164
  message: string;
6213
7165
  };
6214
7166
  requestId: string;
6215
7167
  };
6216
7168
  outputFormat: "json";
6217
- status: 400;
7169
+ status: 403;
6218
7170
  input: {
6219
7171
  param: {
6220
7172
  id: string;
@@ -6230,14 +7182,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6230
7182
  } | {
6231
7183
  output: {
6232
7184
  error: {
6233
- code: "api_key_invalid" | "api_key_missing";
7185
+ code: "payment_required" | "rate_limit_exceeded";
6234
7186
  details?: readonly Response.error.Detail[] | undefined;
6235
7187
  message: string;
6236
7188
  };
6237
7189
  requestId: string;
6238
7190
  };
6239
7191
  outputFormat: "json";
6240
- status: 401;
7192
+ status: 429;
6241
7193
  input: {
6242
7194
  param: {
6243
7195
  id: string;
@@ -6253,14 +7205,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6253
7205
  } | {
6254
7206
  output: {
6255
7207
  error: {
6256
- code: "unauthorized";
7208
+ code: "query_invalid";
6257
7209
  details?: readonly Response.error.Detail[] | undefined;
6258
7210
  message: string;
6259
7211
  };
6260
7212
  requestId: string;
6261
7213
  };
6262
7214
  outputFormat: "json";
6263
- status: 401;
7215
+ status: 400;
6264
7216
  input: {
6265
7217
  param: {
6266
7218
  id: string;
@@ -6276,14 +7228,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6276
7228
  } | {
6277
7229
  output: {
6278
7230
  error: {
6279
- code: "api_key_forbidden" | "api_key_ip_forbidden";
7231
+ code: "upstream_error";
6280
7232
  details?: readonly Response.error.Detail[] | undefined;
6281
7233
  message: string;
6282
7234
  };
6283
7235
  requestId: string;
6284
7236
  };
6285
7237
  outputFormat: "json";
6286
- status: 403;
7238
+ status: 502;
6287
7239
  input: {
6288
7240
  param: {
6289
7241
  id: string;
@@ -6322,14 +7274,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6322
7274
  } | {
6323
7275
  output: {
6324
7276
  error: {
6325
- code: "webhook_not_found";
7277
+ code: "unauthorized";
6326
7278
  details?: readonly Response.error.Detail[] | undefined;
6327
7279
  message: string;
6328
7280
  };
6329
7281
  requestId: string;
6330
7282
  };
6331
7283
  outputFormat: "json";
6332
- status: 404;
7284
+ status: 401;
6333
7285
  input: {
6334
7286
  param: {
6335
7287
  id: string;
@@ -6345,14 +7297,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6345
7297
  } | {
6346
7298
  output: {
6347
7299
  error: {
6348
- code: "payment_required" | "rate_limit_exceeded";
7300
+ code: "param_invalid";
6349
7301
  details?: readonly Response.error.Detail[] | undefined;
6350
7302
  message: string;
6351
7303
  };
6352
7304
  requestId: string;
6353
7305
  };
6354
7306
  outputFormat: "json";
6355
- status: 429;
7307
+ status: 400;
6356
7308
  input: {
6357
7309
  param: {
6358
7310
  id: string;
@@ -6368,14 +7320,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6368
7320
  } | {
6369
7321
  output: {
6370
7322
  error: {
6371
- code: "upstream_error";
7323
+ code: "webhook_not_found";
6372
7324
  details?: readonly Response.error.Detail[] | undefined;
6373
7325
  message: string;
6374
7326
  };
6375
7327
  requestId: string;
6376
7328
  };
6377
7329
  outputFormat: "json";
6378
- status: 502;
7330
+ status: 404;
6379
7331
  input: {
6380
7332
  param: {
6381
7333
  id: string;
@@ -6388,17 +7340,25 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6388
7340
  page?: string | string[];
6389
7341
  } | undefined;
6390
7342
  };
6391
- };
6392
- };
6393
- } & {
6394
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/ping": {
6395
- $post: {
7343
+ } | {
6396
7344
  output: {
6397
- delivered: boolean;
6398
- error?: string | undefined;
6399
- eventId: string;
6400
- responseMs?: number | undefined;
6401
- responseStatus?: number | undefined;
7345
+ data: {
7346
+ attempt: number;
7347
+ createdAt: string;
7348
+ error?: string | undefined;
7349
+ eventId: string;
7350
+ id: string;
7351
+ requestUrl: string;
7352
+ responseMs?: number | undefined;
7353
+ responseStatus?: number | undefined;
7354
+ status: "failed" | "pending" | "succeeded";
7355
+ subscriptionId: string;
7356
+ }[];
7357
+ meta?: {
7358
+ totalCountCapped: boolean;
7359
+ totalCount: number;
7360
+ } | undefined;
7361
+ nextCursor: string | null;
6402
7362
  };
6403
7363
  outputFormat: "json";
6404
7364
  status: 200;
@@ -6406,8 +7366,19 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6406
7366
  param: {
6407
7367
  id: string;
6408
7368
  };
7369
+ } & {
7370
+ query?: {
7371
+ cursor?: string | string[];
7372
+ include?: string | string[];
7373
+ limit?: string | string[];
7374
+ page?: string | string[];
7375
+ } | undefined;
6409
7376
  };
6410
- } | {
7377
+ };
7378
+ };
7379
+ } & {
7380
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/ping": {
7381
+ $post: {
6411
7382
  output: {
6412
7383
  error: {
6413
7384
  code: "api_key_malformed";
@@ -6426,14 +7397,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6426
7397
  } | {
6427
7398
  output: {
6428
7399
  error: {
6429
- code: "param_invalid";
7400
+ code: "api_key_invalid" | "api_key_missing";
6430
7401
  details?: readonly Response.error.Detail[] | undefined;
6431
7402
  message: string;
6432
7403
  };
6433
7404
  requestId: string;
6434
7405
  };
6435
7406
  outputFormat: "json";
6436
- status: 400;
7407
+ status: 401;
6437
7408
  input: {
6438
7409
  param: {
6439
7410
  id: string;
@@ -6442,14 +7413,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6442
7413
  } | {
6443
7414
  output: {
6444
7415
  error: {
6445
- code: "api_key_invalid" | "api_key_missing";
7416
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6446
7417
  details?: readonly Response.error.Detail[] | undefined;
6447
7418
  message: string;
6448
7419
  };
6449
7420
  requestId: string;
6450
7421
  };
6451
7422
  outputFormat: "json";
6452
- status: 401;
7423
+ status: 403;
6453
7424
  input: {
6454
7425
  param: {
6455
7426
  id: string;
@@ -6458,14 +7429,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6458
7429
  } | {
6459
7430
  output: {
6460
7431
  error: {
6461
- code: "unauthorized";
7432
+ code: "payment_required" | "rate_limit_exceeded";
6462
7433
  details?: readonly Response.error.Detail[] | undefined;
6463
7434
  message: string;
6464
7435
  };
6465
7436
  requestId: string;
6466
7437
  };
6467
7438
  outputFormat: "json";
6468
- status: 401;
7439
+ status: 429;
6469
7440
  input: {
6470
7441
  param: {
6471
7442
  id: string;
@@ -6474,14 +7445,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6474
7445
  } | {
6475
7446
  output: {
6476
7447
  error: {
6477
- code: "api_key_forbidden" | "api_key_ip_forbidden";
7448
+ code: "upstream_error";
6478
7449
  details?: readonly Response.error.Detail[] | undefined;
6479
7450
  message: string;
6480
7451
  };
6481
7452
  requestId: string;
6482
7453
  };
6483
7454
  outputFormat: "json";
6484
- status: 403;
7455
+ status: 502;
6485
7456
  input: {
6486
7457
  param: {
6487
7458
  id: string;
@@ -6506,14 +7477,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6506
7477
  } | {
6507
7478
  output: {
6508
7479
  error: {
6509
- code: "webhook_not_found";
7480
+ code: "unauthorized";
6510
7481
  details?: readonly Response.error.Detail[] | undefined;
6511
7482
  message: string;
6512
7483
  };
6513
7484
  requestId: string;
6514
7485
  };
6515
7486
  outputFormat: "json";
6516
- status: 404;
7487
+ status: 401;
6517
7488
  input: {
6518
7489
  param: {
6519
7490
  id: string;
@@ -6522,14 +7493,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6522
7493
  } | {
6523
7494
  output: {
6524
7495
  error: {
6525
- code: "payment_required" | "rate_limit_exceeded";
7496
+ code: "param_invalid";
6526
7497
  details?: readonly Response.error.Detail[] | undefined;
6527
7498
  message: string;
6528
7499
  };
6529
7500
  requestId: string;
6530
7501
  };
6531
7502
  outputFormat: "json";
6532
- status: 429;
7503
+ status: 400;
6533
7504
  input: {
6534
7505
  param: {
6535
7506
  id: string;
@@ -6538,24 +7509,20 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6538
7509
  } | {
6539
7510
  output: {
6540
7511
  error: {
6541
- code: "upstream_error";
7512
+ code: "webhook_not_found";
6542
7513
  details?: readonly Response.error.Detail[] | undefined;
6543
7514
  message: string;
6544
7515
  };
6545
7516
  requestId: string;
6546
7517
  };
6547
7518
  outputFormat: "json";
6548
- status: 502;
7519
+ status: 404;
6549
7520
  input: {
6550
7521
  param: {
6551
7522
  id: string;
6552
7523
  };
6553
7524
  };
6554
- };
6555
- };
6556
- } & {
6557
- "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
6558
- $post: {
7525
+ } | {
6559
7526
  output: {
6560
7527
  delivered: boolean;
6561
7528
  error?: string | undefined;
@@ -6567,11 +7534,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6567
7534
  status: 200;
6568
7535
  input: {
6569
7536
  param: {
6570
- deliveryId: string;
6571
7537
  id: string;
6572
7538
  };
6573
7539
  };
6574
- } | {
7540
+ };
7541
+ };
7542
+ } & {
7543
+ "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}/deliveries/:deliveryId/retry": {
7544
+ $post: {
6575
7545
  output: {
6576
7546
  error: {
6577
7547
  code: "api_key_malformed";
@@ -6591,14 +7561,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6591
7561
  } | {
6592
7562
  output: {
6593
7563
  error: {
6594
- code: "param_invalid";
7564
+ code: "api_key_invalid" | "api_key_missing";
6595
7565
  details?: readonly Response.error.Detail[] | undefined;
6596
7566
  message: string;
6597
7567
  };
6598
7568
  requestId: string;
6599
7569
  };
6600
7570
  outputFormat: "json";
6601
- status: 400;
7571
+ status: 401;
6602
7572
  input: {
6603
7573
  param: {
6604
7574
  deliveryId: string;
@@ -6608,14 +7578,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6608
7578
  } | {
6609
7579
  output: {
6610
7580
  error: {
6611
- code: "api_key_invalid" | "api_key_missing";
7581
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6612
7582
  details?: readonly Response.error.Detail[] | undefined;
6613
7583
  message: string;
6614
7584
  };
6615
7585
  requestId: string;
6616
7586
  };
6617
7587
  outputFormat: "json";
6618
- status: 401;
7588
+ status: 403;
6619
7589
  input: {
6620
7590
  param: {
6621
7591
  deliveryId: string;
@@ -6625,14 +7595,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6625
7595
  } | {
6626
7596
  output: {
6627
7597
  error: {
6628
- code: "unauthorized";
7598
+ code: "payment_required" | "rate_limit_exceeded";
6629
7599
  details?: readonly Response.error.Detail[] | undefined;
6630
7600
  message: string;
6631
7601
  };
6632
7602
  requestId: string;
6633
7603
  };
6634
7604
  outputFormat: "json";
6635
- status: 401;
7605
+ status: 429;
6636
7606
  input: {
6637
7607
  param: {
6638
7608
  deliveryId: string;
@@ -6642,14 +7612,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6642
7612
  } | {
6643
7613
  output: {
6644
7614
  error: {
6645
- code: "api_key_forbidden" | "api_key_ip_forbidden";
7615
+ code: "upstream_error";
6646
7616
  details?: readonly Response.error.Detail[] | undefined;
6647
7617
  message: string;
6648
7618
  };
6649
7619
  requestId: string;
6650
7620
  };
6651
7621
  outputFormat: "json";
6652
- status: 403;
7622
+ status: 502;
6653
7623
  input: {
6654
7624
  param: {
6655
7625
  deliveryId: string;
@@ -6676,14 +7646,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6676
7646
  } | {
6677
7647
  output: {
6678
7648
  error: {
6679
- code: "webhook_not_found";
7649
+ code: "unauthorized";
6680
7650
  details?: readonly Response.error.Detail[] | undefined;
6681
7651
  message: string;
6682
7652
  };
6683
7653
  requestId: string;
6684
7654
  };
6685
7655
  outputFormat: "json";
6686
- status: 404;
7656
+ status: 401;
6687
7657
  input: {
6688
7658
  param: {
6689
7659
  deliveryId: string;
@@ -6693,14 +7663,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6693
7663
  } | {
6694
7664
  output: {
6695
7665
  error: {
6696
- code: "delivery_not_found";
7666
+ code: "param_invalid";
6697
7667
  details?: readonly Response.error.Detail[] | undefined;
6698
7668
  message: string;
6699
7669
  };
6700
7670
  requestId: string;
6701
7671
  };
6702
7672
  outputFormat: "json";
6703
- status: 404;
7673
+ status: 400;
6704
7674
  input: {
6705
7675
  param: {
6706
7676
  deliveryId: string;
@@ -6710,14 +7680,30 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6710
7680
  } | {
6711
7681
  output: {
6712
7682
  error: {
6713
- code: "payment_required" | "rate_limit_exceeded";
7683
+ code: "webhook_not_found";
6714
7684
  details?: readonly Response.error.Detail[] | undefined;
6715
7685
  message: string;
6716
7686
  };
6717
7687
  requestId: string;
6718
7688
  };
6719
7689
  outputFormat: "json";
6720
- status: 429;
7690
+ status: 404;
7691
+ input: {
7692
+ param: {
7693
+ deliveryId: string;
7694
+ id: string;
7695
+ };
7696
+ };
7697
+ } | {
7698
+ output: {
7699
+ delivered: boolean;
7700
+ error?: string | undefined;
7701
+ eventId: string;
7702
+ responseMs?: number | undefined;
7703
+ responseStatus?: number | undefined;
7704
+ };
7705
+ outputFormat: "json";
7706
+ status: 200;
6721
7707
  input: {
6722
7708
  param: {
6723
7709
  deliveryId: string;
@@ -6727,14 +7713,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6727
7713
  } | {
6728
7714
  output: {
6729
7715
  error: {
6730
- code: "upstream_error";
7716
+ code: "delivery_not_found";
6731
7717
  details?: readonly Response.error.Detail[] | undefined;
6732
7718
  message: string;
6733
7719
  };
6734
7720
  requestId: string;
6735
7721
  };
6736
7722
  outputFormat: "json";
6737
- status: 502;
7723
+ status: 404;
6738
7724
  input: {
6739
7725
  param: {
6740
7726
  deliveryId: string;
@@ -6747,39 +7733,15 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6747
7733
  "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
6748
7734
  $patch: {
6749
7735
  output: {
6750
- chainId: number;
6751
- context?: {
6752
- description?: string | undefined;
6753
- metadata?: {
6754
- [x: string]: string;
6755
- } | undefined;
6756
- title?: string | undefined;
6757
- } | undefined;
6758
- createdAt: string;
6759
- destination: {
6760
- type: "url";
6761
- url: string;
6762
- } | {
6763
- type: "slack";
6764
- url: "https://hooks.slack.com/…";
6765
- } | {
6766
- token: "[redacted]";
6767
- type: "betterstack";
6768
- url: string;
6769
- };
6770
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
6771
- expiresAt?: string | undefined;
6772
- failureCount: number;
6773
- filters: {
6774
- [x: string]: import("hono/utils/types").JSONValue;
7736
+ error: {
7737
+ code: "api_key_malformed";
7738
+ details?: readonly Response.error.Detail[] | undefined;
7739
+ message: string;
6775
7740
  };
6776
- id: string;
6777
- lastDeliveryAt?: string | undefined;
6778
- status: "active" | "disabled" | "paused";
6779
- updatedAt: string;
7741
+ requestId: string;
6780
7742
  };
6781
7743
  outputFormat: "json";
6782
- status: 200;
7744
+ status: 400;
6783
7745
  input: {
6784
7746
  param: {
6785
7747
  id: string;
@@ -6809,14 +7771,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6809
7771
  } | {
6810
7772
  output: {
6811
7773
  error: {
6812
- code: "api_key_malformed";
7774
+ code: "api_key_invalid" | "api_key_missing";
6813
7775
  details?: readonly Response.error.Detail[] | undefined;
6814
7776
  message: string;
6815
7777
  };
6816
7778
  requestId: string;
6817
7779
  };
6818
7780
  outputFormat: "json";
6819
- status: 400;
7781
+ status: 401;
6820
7782
  input: {
6821
7783
  param: {
6822
7784
  id: string;
@@ -6846,14 +7808,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6846
7808
  } | {
6847
7809
  output: {
6848
7810
  error: {
6849
- code: "body_invalid";
7811
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
6850
7812
  details?: readonly Response.error.Detail[] | undefined;
6851
7813
  message: string;
6852
7814
  };
6853
7815
  requestId: string;
6854
7816
  };
6855
7817
  outputFormat: "json";
6856
- status: 400;
7818
+ status: 403;
6857
7819
  input: {
6858
7820
  param: {
6859
7821
  id: string;
@@ -6883,14 +7845,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6883
7845
  } | {
6884
7846
  output: {
6885
7847
  error: {
6886
- code: "url_invalid";
7848
+ code: "payment_required" | "rate_limit_exceeded";
6887
7849
  details?: readonly Response.error.Detail[] | undefined;
6888
7850
  message: string;
6889
7851
  };
6890
7852
  requestId: string;
6891
7853
  };
6892
7854
  outputFormat: "json";
6893
- status: 400;
7855
+ status: 429;
6894
7856
  input: {
6895
7857
  param: {
6896
7858
  id: string;
@@ -6920,14 +7882,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6920
7882
  } | {
6921
7883
  output: {
6922
7884
  error: {
6923
- code: "filters_invalid";
7885
+ code: "upstream_error";
6924
7886
  details?: readonly Response.error.Detail[] | undefined;
6925
7887
  message: string;
6926
7888
  };
6927
7889
  requestId: string;
6928
7890
  };
6929
7891
  outputFormat: "json";
6930
- status: 400;
7892
+ status: 502;
6931
7893
  input: {
6932
7894
  param: {
6933
7895
  id: string;
@@ -6957,14 +7919,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6957
7919
  } | {
6958
7920
  output: {
6959
7921
  error: {
6960
- code: "param_invalid";
7922
+ code: "webhooks_not_enabled";
6961
7923
  details?: readonly Response.error.Detail[] | undefined;
6962
7924
  message: string;
6963
7925
  };
6964
7926
  requestId: string;
6965
7927
  };
6966
7928
  outputFormat: "json";
6967
- status: 400;
7929
+ status: 404;
6968
7930
  input: {
6969
7931
  param: {
6970
7932
  id: string;
@@ -6994,7 +7956,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6994
7956
  } | {
6995
7957
  output: {
6996
7958
  error: {
6997
- code: "destination_transition_invalid";
7959
+ code: "body_invalid";
6998
7960
  details?: readonly Response.error.Detail[] | undefined;
6999
7961
  message: string;
7000
7962
  };
@@ -7031,7 +7993,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7031
7993
  } | {
7032
7994
  output: {
7033
7995
  error: {
7034
- code: "api_key_invalid" | "api_key_missing";
7996
+ code: "unauthorized";
7035
7997
  details?: readonly Response.error.Detail[] | undefined;
7036
7998
  message: string;
7037
7999
  };
@@ -7068,14 +8030,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7068
8030
  } | {
7069
8031
  output: {
7070
8032
  error: {
7071
- code: "unauthorized";
8033
+ code: "url_invalid";
7072
8034
  details?: readonly Response.error.Detail[] | undefined;
7073
8035
  message: string;
7074
8036
  };
7075
8037
  requestId: string;
7076
8038
  };
7077
8039
  outputFormat: "json";
7078
- status: 401;
8040
+ status: 400;
7079
8041
  input: {
7080
8042
  param: {
7081
8043
  id: string;
@@ -7105,14 +8067,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7105
8067
  } | {
7106
8068
  output: {
7107
8069
  error: {
7108
- code: "api_key_forbidden" | "api_key_ip_forbidden";
8070
+ code: "filters_invalid";
7109
8071
  details?: readonly Response.error.Detail[] | undefined;
7110
8072
  message: string;
7111
8073
  };
7112
8074
  requestId: string;
7113
8075
  };
7114
8076
  outputFormat: "json";
7115
- status: 403;
8077
+ status: 400;
7116
8078
  input: {
7117
8079
  param: {
7118
8080
  id: string;
@@ -7142,14 +8104,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7142
8104
  } | {
7143
8105
  output: {
7144
8106
  error: {
7145
- code: "webhooks_not_enabled";
8107
+ code: "param_invalid";
7146
8108
  details?: readonly Response.error.Detail[] | undefined;
7147
8109
  message: string;
7148
8110
  };
7149
8111
  requestId: string;
7150
8112
  };
7151
8113
  outputFormat: "json";
7152
- status: 404;
8114
+ status: 400;
7153
8115
  input: {
7154
8116
  param: {
7155
8117
  id: string;
@@ -7215,15 +8177,40 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7215
8177
  };
7216
8178
  } | {
7217
8179
  output: {
7218
- error: {
7219
- code: "payment_required" | "rate_limit_exceeded";
7220
- details?: readonly Response.error.Detail[] | undefined;
7221
- message: string;
8180
+ chainId: number;
8181
+ context?: {
8182
+ description?: string | undefined;
8183
+ metadata?: {
8184
+ [x: string]: string;
8185
+ } | undefined;
8186
+ title?: string | undefined;
8187
+ } | undefined;
8188
+ createdAt: string;
8189
+ destination: {
8190
+ type: "url";
8191
+ url: string;
8192
+ } | {
8193
+ type: "slack";
8194
+ url: "https://hooks.slack.com/…";
8195
+ } | {
8196
+ token: "[redacted]";
8197
+ type: "betterstack";
8198
+ url: string;
7222
8199
  };
7223
- requestId: string;
8200
+ environment?: "production" | "sandbox" | undefined;
8201
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
8202
+ expiresAt?: string | undefined;
8203
+ failureCount: number;
8204
+ filters: {
8205
+ [x: string]: import("hono/utils/types").JSONValue;
8206
+ };
8207
+ id: string;
8208
+ lastDeliveryAt?: string | undefined;
8209
+ status: "active" | "disabled" | "paused";
8210
+ updatedAt: string;
7224
8211
  };
7225
8212
  outputFormat: "json";
7226
- status: 429;
8213
+ status: 200;
7227
8214
  input: {
7228
8215
  param: {
7229
8216
  id: string;
@@ -7253,14 +8240,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7253
8240
  } | {
7254
8241
  output: {
7255
8242
  error: {
7256
- code: "upstream_error";
8243
+ code: "destination_transition_invalid";
7257
8244
  details?: readonly Response.error.Detail[] | undefined;
7258
8245
  message: string;
7259
8246
  };
7260
8247
  requestId: string;
7261
8248
  };
7262
8249
  outputFormat: "json";
7263
- status: 502;
8250
+ status: 400;
7264
8251
  input: {
7265
8252
  param: {
7266
8253
  id: string;
@@ -7292,17 +8279,6 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7292
8279
  } & {
7293
8280
  "/v1/webhooks/:id{wh_[A-Za-z0-9_-]+}": {
7294
8281
  $delete: {
7295
- output: {
7296
- id: string;
7297
- };
7298
- outputFormat: "json";
7299
- status: 200;
7300
- input: {
7301
- param: {
7302
- id: string;
7303
- };
7304
- };
7305
- } | {
7306
8282
  output: {
7307
8283
  error: {
7308
8284
  code: "api_key_malformed";
@@ -7321,14 +8297,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7321
8297
  } | {
7322
8298
  output: {
7323
8299
  error: {
7324
- code: "param_invalid";
8300
+ code: "api_key_invalid" | "api_key_missing";
7325
8301
  details?: readonly Response.error.Detail[] | undefined;
7326
8302
  message: string;
7327
8303
  };
7328
8304
  requestId: string;
7329
8305
  };
7330
8306
  outputFormat: "json";
7331
- status: 400;
8307
+ status: 401;
7332
8308
  input: {
7333
8309
  param: {
7334
8310
  id: string;
@@ -7337,14 +8313,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7337
8313
  } | {
7338
8314
  output: {
7339
8315
  error: {
7340
- code: "api_key_invalid" | "api_key_missing";
8316
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
7341
8317
  details?: readonly Response.error.Detail[] | undefined;
7342
8318
  message: string;
7343
8319
  };
7344
8320
  requestId: string;
7345
8321
  };
7346
8322
  outputFormat: "json";
7347
- status: 401;
8323
+ status: 403;
7348
8324
  input: {
7349
8325
  param: {
7350
8326
  id: string;
@@ -7353,14 +8329,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7353
8329
  } | {
7354
8330
  output: {
7355
8331
  error: {
7356
- code: "unauthorized";
8332
+ code: "payment_required" | "rate_limit_exceeded";
7357
8333
  details?: readonly Response.error.Detail[] | undefined;
7358
8334
  message: string;
7359
8335
  };
7360
8336
  requestId: string;
7361
8337
  };
7362
8338
  outputFormat: "json";
7363
- status: 401;
8339
+ status: 429;
7364
8340
  input: {
7365
8341
  param: {
7366
8342
  id: string;
@@ -7369,14 +8345,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7369
8345
  } | {
7370
8346
  output: {
7371
8347
  error: {
7372
- code: "api_key_forbidden" | "api_key_ip_forbidden";
8348
+ code: "upstream_error";
7373
8349
  details?: readonly Response.error.Detail[] | undefined;
7374
8350
  message: string;
7375
8351
  };
7376
8352
  requestId: string;
7377
8353
  };
7378
8354
  outputFormat: "json";
7379
- status: 403;
8355
+ status: 502;
7380
8356
  input: {
7381
8357
  param: {
7382
8358
  id: string;
@@ -7401,14 +8377,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7401
8377
  } | {
7402
8378
  output: {
7403
8379
  error: {
7404
- code: "webhook_not_found";
8380
+ code: "unauthorized";
7405
8381
  details?: readonly Response.error.Detail[] | undefined;
7406
8382
  message: string;
7407
8383
  };
7408
8384
  requestId: string;
7409
8385
  };
7410
8386
  outputFormat: "json";
7411
- status: 404;
8387
+ status: 401;
7412
8388
  input: {
7413
8389
  param: {
7414
8390
  id: string;
@@ -7417,14 +8393,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7417
8393
  } | {
7418
8394
  output: {
7419
8395
  error: {
7420
- code: "payment_required" | "rate_limit_exceeded";
8396
+ code: "param_invalid";
7421
8397
  details?: readonly Response.error.Detail[] | undefined;
7422
8398
  message: string;
7423
8399
  };
7424
8400
  requestId: string;
7425
8401
  };
7426
8402
  outputFormat: "json";
7427
- status: 429;
8403
+ status: 400;
7428
8404
  input: {
7429
8405
  param: {
7430
8406
  id: string;
@@ -7433,14 +8409,25 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7433
8409
  } | {
7434
8410
  output: {
7435
8411
  error: {
7436
- code: "upstream_error";
8412
+ code: "webhook_not_found";
7437
8413
  details?: readonly Response.error.Detail[] | undefined;
7438
8414
  message: string;
7439
8415
  };
7440
8416
  requestId: string;
7441
8417
  };
7442
8418
  outputFormat: "json";
7443
- status: 502;
8419
+ status: 404;
8420
+ input: {
8421
+ param: {
8422
+ id: string;
8423
+ };
8424
+ };
8425
+ } | {
8426
+ output: {
8427
+ id: string;
8428
+ };
8429
+ outputFormat: "json";
8430
+ status: 200;
7444
8431
  input: {
7445
8432
  param: {
7446
8433
  id: string;
@@ -7452,145 +8439,18 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
7452
8439
  export declare namespace webhooks {
7453
8440
  /** Options for creating webhook routes. */
7454
8441
  type Options = {
8442
+ /** Application events produced by this deployment outside the per-block chain scan. */
8443
+ applicationEventTypes?: readonly Webhooks.EventType[] | undefined;
7455
8444
  /** Whether webhook state is configured and routes should appear in OpenAPI. */
7456
8445
  enabled?: boolean | undefined;
7457
8446
  };
7458
8447
  }
7459
- /**
7460
- * Polls the chain over RPC for new events and dispatches a signed envelope per
7461
- * matching row, advancing each active subscription's `(block, index)` keyset
7462
- * cursor.
7463
- *
7464
- * Every event type scans a **narrow confirmed window** `[cursor, head -
7465
- * confirmations]` directly over JSON-RPC (`eth_getLogs`,
7466
- * `eth_getBlockByNumber`) so webhook delivery does not wait for an indexer.
7467
- *
7468
- * The chain head is injectable (tests pin a fixed historical window); only
7469
- * blocks at least `confirmations` behind head are emitted, giving at-least-once,
7470
- * finalized-ish semantics (re-delivery overlap is harmless because the receiver
7471
- * dedupes on the stable `event.id`).
7472
- *
7473
- * Cursor advances only past successfully dispatched rows, so a dispatch failure
7474
- * pauses that subscription at the last good position and the next tick resumes.
7475
- * Scan failures leave that subscription unchanged; the first error is rethrown
7476
- * after the remaining subscriptions run.
7477
- */
7478
- export declare function poll(options: poll.Options): Promise<poll.Result>;
7479
- export declare namespace poll {
7480
- /** A row to dispatch, paired with its owning subscription. */
7481
- type Dispatchable = {
7482
- /** The signed-on-dispatch delivery envelope. */
7483
- envelope: Webhooks.Envelope;
7484
- /** The subscription the event matched. */
7485
- subscription: Webhooks.Subscription;
7486
- };
7487
- /** Options for {@link poll}. */
7488
- type Options = {
7489
- /** Max matching rows scanned per subscription per tick (default 200). */
7490
- batchSize?: number | undefined;
7491
- /** Cache store for the token-metadata memoize (defaults to a fresh in-memory store; pass a persistent one to share lookups across ticks). */
7492
- cache?: Store.Store | undefined;
7493
- /** Chain to poll. Callers loop over chains. */
7494
- chainId: number;
7495
- /** viem RPC client for the chain. */
7496
- client: Viem.getClient.ReturnType;
7497
- /** Reorg-safety window: only emit blocks this far behind head (default 1). */
7498
- confirmations?: number | undefined;
7499
- /** Database holding subscriptions + cursors. */
7500
- db: Db.Db;
7501
- /**
7502
- * Delivery transport. Defaults to inline {@link Webhooks.deliverAndRecord} (self-host);
7503
- * on Cloudflare pass a Queue producer so retry/backoff/DLQ are native.
7504
- */
7505
- dispatch?: ((input: Dispatchable) => Promise<Webhooks.Result>) | undefined;
7506
- /** Batch delivery transport. A successful result confirms every row in the input. */
7507
- dispatchBatch?: ((input: readonly Dispatchable[], context: DispatchContext) => Promise<Webhooks.Result>) | undefined;
7508
- /** Event types to poll (default all). */
7509
- eventTypes?: readonly EventType[] | undefined;
7510
- /** Current chain head; the poller emits up to `head - confirmations`. */
7511
- headBlockNumber?: bigint | number | undefined;
7512
- /** Backfill cap: most blocks an RPC scanner inspects per tick (default 1000). */
7513
- maxBlocks?: number | undefined;
7514
- /** Records the worst confirmed-head distance without changing the poll result. */
7515
- onCursorLag?: ((blocks: number) => void) | undefined;
7516
- /** Records bounded scan inputs before allocation and outcomes after completion. */
7517
- onScanCheckpoint?: ((checkpoint: ScanCheckpoint) => void) | undefined;
7518
- /** Records bounded, per-tick poll-stage timings without subscription identities. */
7519
- onStage?: ((stage: Stage) => void) | undefined;
7520
- /** Records subscriptions eligible for this poll before any scan runs. */
7521
- onSubscriptions?: ((count: number) => void) | undefined;
7522
- /** Clock for envelope timestamps; injectable for tests. */
7523
- now?: (() => Date) | undefined;
7524
- /** Stops scanning and dispatch when the caller loses its execution lease. */
7525
- signal?: AbortSignal | undefined;
7526
- };
7527
- /** Runtime context shared with a batch delivery transport. */
7528
- type DispatchContext = {
7529
- /** Database instance already resolved for this poll. */
7530
- db: Db.Db;
7531
- };
7532
- /** Summary counters for one poll tick. */
7533
- type Result = {
7534
- /** Chain that was polled. */
7535
- chainId: number;
7536
- /** Rows successfully dispatched. */
7537
- dispatched: number;
7538
- /** Rows whose dispatch failed (pausing that subscription). */
7539
- failed: number;
7540
- /** True when a bounded scan left committed work behind the same head. */
7541
- hasMore?: boolean | undefined;
7542
- /** Highest confirmed block emitted this tick (`head - confirmations`). */
7543
- safeBlock: number;
7544
- /** Total rows scanned across all subscriptions. */
7545
- scanned: number;
7546
- /** Active subscriptions visited. */
7547
- subscriptions: number;
7548
- };
7549
- /** One scan boundary used to correlate production memory failures with workload shape. */
7550
- type ScanCheckpoint = {
7551
- /** Shared upper bound for concurrent upstream scans across event types. */
7552
- concurrency: number;
7553
- /** Scan duration, present only after completion. */
7554
- durationMs?: number | undefined;
7555
- /** Subscription event type scanned by this batch. */
7556
- eventType: EventType;
7557
- /** Subscriptions whose scan rejected, present only after completion. */
7558
- failedSubscriptions?: number | undefined;
7559
- /** Matching rows retained by completed pages, present only after completion. */
7560
- matchedItems?: number | undefined;
7561
- /** Largest block window requested by one subscription. */
7562
- maxWindowBlocks: number;
7563
- /** Whether the checkpoint precedes allocation or follows scan completion. */
7564
- phase: 'complete' | 'start';
7565
- /** Outcome of the completed RPC-backed scan. */
7566
- outcome?: 'empty' | 'error' | 'missing' | 'ok' | undefined;
7567
- /** JSON-RPC method used by this event type's scanner. */
7568
- rpcMethod: 'eth_getBlockByNumber' | 'eth_getLogs';
7569
- /** Subscriptions retained in this scan batch. */
7570
- subscriptionCount: number;
7571
- /** Maximum subscriptions retained by this event-type batch. */
7572
- subscriptionLimit: number;
7573
- /** Sum of subscription block windows in this scan batch. */
7574
- totalWindowBlocks: number;
7575
- };
7576
- /** One bounded poll-stage timing observation. */
7577
- type Stage = {
7578
- /** Stage duration in milliseconds. */
7579
- durationMs: number;
7580
- /** Event type being processed, omitted for the shared RPC-head stage. */
7581
- eventType?: EventType | undefined;
7582
- /** Whether the stage completed. */
7583
- outcome: 'error' | 'ok';
7584
- /** Bounded stage name. */
7585
- stage: MetricSink.PollStage;
7586
- };
7587
- }
7588
8448
  /** Returns the live RPC head block number for the chain. */
7589
8449
  export declare function getRpcHead(client: Viem.getClient.ReturnType): Promise<number>;
7590
8450
  /**
7591
8451
  * Validates `filters` against the schema for `eventType`, **failing closed**: an
7592
8452
  * invalid filter throws {@link Webhooks.InvalidFilterError} instead of degrading
7593
- * to `{}` (a firehose). Used at create/patch time and by the scanners so a stored
8453
+ * to `{}` (a firehose). Used at create/patch time and by {@link scanBlock} so a stored
7594
8454
  * bad filter can never silently widen the match set.
7595
8455
  */
7596
8456
  export declare function parseFilters(eventType: EventType, filters: Record<string, unknown> | undefined): Record<string, unknown>;
@@ -7598,7 +8458,7 @@ export declare function parseFilters(eventType: EventType, filters: Record<strin
7598
8458
  * The JS counterpart of the old SQL `applyOperator`: evaluates one parsed filter
7599
8459
  * operator (from {@link schema.eq}/{@link schema.compare}/{@link schema.bytes})
7600
8460
  * against a single `0x`-hex field value pulled from an RPC object. The one place
7601
- * operator semantics live, shared by every RPC scanner. Returns `false` for a
8461
+ * operator semantics live, shared by every event matcher. Returns `false` for a
7602
8462
  * missing field so an absent value never matches (fail-closed).
7603
8463
  *
7604
8464
  * - bare value / `{ eq }` → equality
@@ -7609,6 +8469,22 @@ export declare function parseFilters(eventType: EventType, filters: Record<strin
7609
8469
  * - `{ startsWith }` → hex prefix
7610
8470
  */
7611
8471
  export declare function matchesOperator(value: string | undefined, op: unknown, kind?: 'number' | 'string'): boolean;
8472
+ /**
8473
+ * Attaches best-effort token metadata to one matched row before delivery.
8474
+ * Transfers gain display metadata; transactions resolve their fee token.
8475
+ */
8476
+ export declare function enrichEventData(eventType: EventType, data: unknown, options: enrichEventData.Options): Promise<unknown>;
8477
+ export declare namespace enrichEventData {
8478
+ /** Metadata lookup dependencies. */
8479
+ type Options = {
8480
+ /** Memoization store for token metadata (5 minute TTL). */
8481
+ cache: Store.Store;
8482
+ /** Chain the row was produced on. */
8483
+ chainId: number;
8484
+ /** Client for `token.getMetadata` reads. */
8485
+ client: Viem.getClient.ReturnType;
8486
+ };
8487
+ }
7612
8488
  /**
7613
8489
  * Matches one fetched block against a subscription set, producing the rows
7614
8490
  * each event type delivers. Invalid stored filters fail closed into `invalid`.