tapimo 0.10.2 → 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 (135) hide show
  1. package/dist/App.d.ts +3412 -1968
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js.map +1 -1
  4. package/dist/Webhooks.d.ts +0 -75
  5. package/dist/Webhooks.d.ts.map +1 -1
  6. package/dist/Webhooks.js +1 -143
  7. package/dist/Webhooks.js.map +1 -1
  8. package/dist/admin/App.d.ts +74 -74
  9. package/dist/admin/apps/api-keys.d.ts +4 -4
  10. package/dist/admin/apps/earn-vaults.d.ts +1 -1
  11. package/dist/admin/apps/organizations.d.ts +3 -3
  12. package/dist/admin/apps/verified-tokens.d.ts +74 -74
  13. package/dist/apps/data/App.d.ts +3618 -2954
  14. package/dist/apps/data/App.d.ts.map +1 -1
  15. package/dist/apps/data/App.js +5 -2
  16. package/dist/apps/data/App.js.map +1 -1
  17. package/dist/apps/data/routes/activities.d.ts +1 -1
  18. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  19. package/dist/apps/data/routes/activities.js +55 -27
  20. package/dist/apps/data/routes/activities.js.map +1 -1
  21. package/dist/apps/data/routes/addresses.d.ts +343 -343
  22. package/dist/apps/data/routes/balances.d.ts +11 -11
  23. package/dist/apps/data/routes/blocks.d.ts +5 -5
  24. package/dist/apps/data/routes/coingecko.d.ts +176 -176
  25. package/dist/apps/data/routes/earn.d.ts +4 -4
  26. package/dist/apps/data/routes/exchanges.d.ts +4 -4
  27. package/dist/apps/data/routes/fee-amm.d.ts +26 -26
  28. package/dist/apps/data/routes/indexer.d.ts +34 -34
  29. package/dist/apps/data/routes/receipts.d.ts +236 -236
  30. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  31. package/dist/apps/data/routes/tokens.d.ts +3 -3
  32. package/dist/apps/data/routes/transactions.d.ts +1 -1
  33. package/dist/apps/data/routes/transfers.d.ts +13 -13
  34. package/dist/apps/data/routes/valuation.d.ts +21 -21
  35. package/dist/apps/data/routes/verified-tokens.d.ts +5 -5
  36. package/dist/apps/data/routes/webhooks.d.ts +1011 -151
  37. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  38. package/dist/apps/data/routes/webhooks.js +124 -737
  39. package/dist/apps/data/routes/webhooks.js.map +1 -1
  40. package/dist/apps/data/routes/zones.d.ts +31 -31
  41. package/dist/apps/funding/routes/deposit-addresses.d.ts +2 -2
  42. package/dist/apps/funding/routes/providers.d.ts +13 -13
  43. package/dist/apps/funding/routes/transfers.d.ts +33 -33
  44. package/dist/apps/management/App.d.ts +793 -16
  45. package/dist/apps/management/App.d.ts.map +1 -1
  46. package/dist/apps/management/routes/api-keys.d.ts +50 -50
  47. package/dist/apps/management/routes/faucet.d.ts +31 -31
  48. package/dist/apps/management/routes/invite-links.d.ts +42 -42
  49. package/dist/apps/management/routes/members.d.ts +79 -79
  50. package/dist/apps/management/routes/projects.d.ts +40 -40
  51. package/dist/apps/management/routes/usage.d.ts +80 -80
  52. package/dist/apps/management/routes/webhooks.d.ts +1031 -59
  53. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  54. package/dist/apps/management/routes/webhooks.js +27 -4
  55. package/dist/apps/management/routes/webhooks.js.map +1 -1
  56. package/dist/db/Db.d.ts.map +1 -1
  57. package/dist/db/Db.js +21 -0
  58. package/dist/db/Db.js.map +1 -1
  59. package/dist/db/Schema.d.ts +7 -1
  60. package/dist/db/Schema.d.ts.map +1 -1
  61. package/dist/db/Schema.js +9 -0
  62. package/dist/db/Schema.js.map +1 -1
  63. package/dist/db/tables/webhookQueueEvents.d.ts +3 -1
  64. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
  65. package/dist/db/tables/webhookQueueEvents.js +4 -0
  66. package/dist/db/tables/webhookQueueEvents.js.map +1 -1
  67. package/dist/db/tables/webhookSubscriptions.d.ts +33 -69
  68. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  69. package/dist/db/tables/webhookSubscriptions.js +63 -100
  70. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  71. package/dist/internal/MetricSink.d.ts +35 -125
  72. package/dist/internal/MetricSink.d.ts.map +1 -1
  73. package/dist/internal/MetricSink.js +50 -121
  74. package/dist/internal/MetricSink.js.map +1 -1
  75. package/dist/internal/Schema.d.ts +3 -1
  76. package/dist/internal/Schema.d.ts.map +1 -1
  77. package/dist/internal/Schema.js +4 -2
  78. package/dist/internal/Schema.js.map +1 -1
  79. package/dist/internal/WebhookTransfer.d.ts +1 -55
  80. package/dist/internal/WebhookTransfer.d.ts.map +1 -1
  81. package/dist/internal/WebhookTransfer.js +1 -239
  82. package/dist/internal/WebhookTransfer.js.map +1 -1
  83. package/dist/internal/Webhooks.d.ts +83 -44
  84. package/dist/internal/Webhooks.d.ts.map +1 -1
  85. package/dist/internal/Webhooks.js +87 -73
  86. package/dist/internal/Webhooks.js.map +1 -1
  87. package/dist/internal/funding/DepositWebhook.d.ts +25 -0
  88. package/dist/internal/funding/DepositWebhook.d.ts.map +1 -0
  89. package/dist/internal/funding/DepositWebhook.js +74 -0
  90. package/dist/internal/funding/DepositWebhook.js.map +1 -0
  91. package/dist/internal/funding/Reconciliation.d.ts +6 -0
  92. package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
  93. package/dist/internal/funding/Reconciliation.js +42 -10
  94. package/dist/internal/funding/Reconciliation.js.map +1 -1
  95. package/dist/internal/funding/index.d.ts +1 -0
  96. package/dist/internal/funding/index.d.ts.map +1 -1
  97. package/dist/internal/funding/index.js +1 -0
  98. package/dist/internal/funding/index.js.map +1 -1
  99. package/dist/internal/webhookDestinations/slack.d.ts.map +1 -1
  100. package/dist/internal/webhookDestinations/slack.js +16 -0
  101. package/dist/internal/webhookDestinations/slack.js.map +1 -1
  102. package/package.json +1 -1
  103. package/src/App.ts +3 -0
  104. package/src/Client.test-d.ts +22 -1
  105. package/src/Webhooks.ts +1 -220
  106. package/src/apps/data/App.ts +8 -2
  107. package/src/apps/data/routes/activities.test.ts +107 -11
  108. package/src/apps/data/routes/activities.ts +64 -32
  109. package/src/apps/data/routes/webhooks.test.ts +179 -1497
  110. package/src/apps/data/routes/webhooks.ts +150 -974
  111. package/src/apps/management/routes/webhooks.test.ts +79 -1
  112. package/src/apps/management/routes/webhooks.ts +40 -4
  113. package/src/db/Db.test.ts +1 -5
  114. package/src/db/Db.ts +23 -0
  115. package/src/db/Schema.ts +13 -0
  116. package/src/db/tables/organizations.test.ts +5 -2
  117. package/src/db/tables/webhookQueueEvents.ts +7 -1
  118. package/src/db/tables/webhookSubscriptions.ts +89 -138
  119. package/src/internal/MetricSink.test.ts +41 -373
  120. package/src/internal/MetricSink.ts +92 -273
  121. package/src/internal/Schema.test.ts +18 -0
  122. package/src/internal/Schema.ts +13 -2
  123. package/src/internal/WebhookTransfer.ts +1 -351
  124. package/src/internal/Webhooks.test.ts +102 -139
  125. package/src/internal/Webhooks.ts +175 -106
  126. package/src/internal/funding/DepositWebhook.test.ts +131 -0
  127. package/src/internal/funding/DepositWebhook.ts +101 -0
  128. package/src/internal/funding/Reconciliation.test.ts +14 -0
  129. package/src/internal/funding/Reconciliation.ts +161 -86
  130. package/src/internal/funding/index.test.ts +1 -0
  131. package/src/internal/funding/index.ts +1 -0
  132. package/src/internal/webhookDestinations/slack.ts +15 -0
  133. package/src/Webhooks.bench.ts +0 -714
  134. package/src/Webhooks.memory.bench.ts +0 -250
  135. package/src/Webhooks.test.ts +0 -146
@@ -8199,8 +8199,33 @@ export declare function management(options?: management.Options): import("hono/h
8199
8199
  lte?: `0x${string}` | undefined;
8200
8200
  } | `0x${string}` | undefined;
8201
8201
  } | undefined;
8202
+ } | {
8203
+ chainId?: unknown;
8204
+ context?: {
8205
+ description?: string | undefined;
8206
+ metadata?: Record<string, string> | undefined;
8207
+ title?: string | undefined;
8208
+ } | undefined;
8209
+ destination: {
8210
+ type: "url";
8211
+ url: string;
8212
+ } | {
8213
+ type: "slack";
8214
+ url: string;
8215
+ } | {
8216
+ token: string;
8217
+ type: "betterstack";
8218
+ url: string;
8219
+ };
8220
+ eventType: "funding:deposit.updated";
8221
+ filters?: {
8222
+ depositAddressId?: string | undefined;
8223
+ recipient?: `0x${string}` | undefined;
8224
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
8225
+ } | undefined;
8202
8226
  }) & {
8203
8227
  chainId: number;
8228
+ environment?: "production" | "sandbox" | undefined;
8204
8229
  };
8205
8230
  };
8206
8231
  } | {
@@ -8529,8 +8554,33 @@ export declare function management(options?: management.Options): import("hono/h
8529
8554
  lte?: `0x${string}` | undefined;
8530
8555
  } | `0x${string}` | undefined;
8531
8556
  } | undefined;
8557
+ } | {
8558
+ chainId?: unknown;
8559
+ context?: {
8560
+ description?: string | undefined;
8561
+ metadata?: Record<string, string> | undefined;
8562
+ title?: string | undefined;
8563
+ } | undefined;
8564
+ destination: {
8565
+ type: "url";
8566
+ url: string;
8567
+ } | {
8568
+ type: "slack";
8569
+ url: string;
8570
+ } | {
8571
+ token: string;
8572
+ type: "betterstack";
8573
+ url: string;
8574
+ };
8575
+ eventType: "funding:deposit.updated";
8576
+ filters?: {
8577
+ depositAddressId?: string | undefined;
8578
+ recipient?: `0x${string}` | undefined;
8579
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
8580
+ } | undefined;
8532
8581
  }) & {
8533
8582
  chainId: number;
8583
+ environment?: "production" | "sandbox" | undefined;
8534
8584
  };
8535
8585
  };
8536
8586
  } | {
@@ -8859,8 +8909,33 @@ export declare function management(options?: management.Options): import("hono/h
8859
8909
  lte?: `0x${string}` | undefined;
8860
8910
  } | `0x${string}` | undefined;
8861
8911
  } | undefined;
8912
+ } | {
8913
+ chainId?: unknown;
8914
+ context?: {
8915
+ description?: string | undefined;
8916
+ metadata?: Record<string, string> | undefined;
8917
+ title?: string | undefined;
8918
+ } | undefined;
8919
+ destination: {
8920
+ type: "url";
8921
+ url: string;
8922
+ } | {
8923
+ type: "slack";
8924
+ url: string;
8925
+ } | {
8926
+ token: string;
8927
+ type: "betterstack";
8928
+ url: string;
8929
+ };
8930
+ eventType: "funding:deposit.updated";
8931
+ filters?: {
8932
+ depositAddressId?: string | undefined;
8933
+ recipient?: `0x${string}` | undefined;
8934
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
8935
+ } | undefined;
8862
8936
  }) & {
8863
8937
  chainId: number;
8938
+ environment?: "production" | "sandbox" | undefined;
8864
8939
  };
8865
8940
  };
8866
8941
  } | {
@@ -9189,8 +9264,33 @@ export declare function management(options?: management.Options): import("hono/h
9189
9264
  lte?: `0x${string}` | undefined;
9190
9265
  } | `0x${string}` | undefined;
9191
9266
  } | undefined;
9267
+ } | {
9268
+ chainId?: unknown;
9269
+ context?: {
9270
+ description?: string | undefined;
9271
+ metadata?: Record<string, string> | undefined;
9272
+ title?: string | undefined;
9273
+ } | undefined;
9274
+ destination: {
9275
+ type: "url";
9276
+ url: string;
9277
+ } | {
9278
+ type: "slack";
9279
+ url: string;
9280
+ } | {
9281
+ token: string;
9282
+ type: "betterstack";
9283
+ url: string;
9284
+ };
9285
+ eventType: "funding:deposit.updated";
9286
+ filters?: {
9287
+ depositAddressId?: string | undefined;
9288
+ recipient?: `0x${string}` | undefined;
9289
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
9290
+ } | undefined;
9192
9291
  }) & {
9193
9292
  chainId: number;
9293
+ environment?: "production" | "sandbox" | undefined;
9194
9294
  };
9195
9295
  };
9196
9296
  } | {
@@ -9519,8 +9619,33 @@ export declare function management(options?: management.Options): import("hono/h
9519
9619
  lte?: `0x${string}` | undefined;
9520
9620
  } | `0x${string}` | undefined;
9521
9621
  } | undefined;
9622
+ } | {
9623
+ chainId?: unknown;
9624
+ context?: {
9625
+ description?: string | undefined;
9626
+ metadata?: Record<string, string> | undefined;
9627
+ title?: string | undefined;
9628
+ } | undefined;
9629
+ destination: {
9630
+ type: "url";
9631
+ url: string;
9632
+ } | {
9633
+ type: "slack";
9634
+ url: string;
9635
+ } | {
9636
+ token: string;
9637
+ type: "betterstack";
9638
+ url: string;
9639
+ };
9640
+ eventType: "funding:deposit.updated";
9641
+ filters?: {
9642
+ depositAddressId?: string | undefined;
9643
+ recipient?: `0x${string}` | undefined;
9644
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
9645
+ } | undefined;
9522
9646
  }) & {
9523
9647
  chainId: number;
9648
+ environment?: "production" | "sandbox" | undefined;
9524
9649
  };
9525
9650
  };
9526
9651
  } | {
@@ -9849,8 +9974,33 @@ export declare function management(options?: management.Options): import("hono/h
9849
9974
  lte?: `0x${string}` | undefined;
9850
9975
  } | `0x${string}` | undefined;
9851
9976
  } | undefined;
9977
+ } | {
9978
+ chainId?: unknown;
9979
+ context?: {
9980
+ description?: string | undefined;
9981
+ metadata?: Record<string, string> | undefined;
9982
+ title?: string | undefined;
9983
+ } | undefined;
9984
+ destination: {
9985
+ type: "url";
9986
+ url: string;
9987
+ } | {
9988
+ type: "slack";
9989
+ url: string;
9990
+ } | {
9991
+ token: string;
9992
+ type: "betterstack";
9993
+ url: string;
9994
+ };
9995
+ eventType: "funding:deposit.updated";
9996
+ filters?: {
9997
+ depositAddressId?: string | undefined;
9998
+ recipient?: `0x${string}` | undefined;
9999
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
10000
+ } | undefined;
9852
10001
  }) & {
9853
10002
  chainId: number;
10003
+ environment?: "production" | "sandbox" | undefined;
9854
10004
  };
9855
10005
  };
9856
10006
  } | {
@@ -10179,8 +10329,33 @@ export declare function management(options?: management.Options): import("hono/h
10179
10329
  lte?: `0x${string}` | undefined;
10180
10330
  } | `0x${string}` | undefined;
10181
10331
  } | undefined;
10332
+ } | {
10333
+ chainId?: unknown;
10334
+ context?: {
10335
+ description?: string | undefined;
10336
+ metadata?: Record<string, string> | undefined;
10337
+ title?: string | undefined;
10338
+ } | undefined;
10339
+ destination: {
10340
+ type: "url";
10341
+ url: string;
10342
+ } | {
10343
+ type: "slack";
10344
+ url: string;
10345
+ } | {
10346
+ token: string;
10347
+ type: "betterstack";
10348
+ url: string;
10349
+ };
10350
+ eventType: "funding:deposit.updated";
10351
+ filters?: {
10352
+ depositAddressId?: string | undefined;
10353
+ recipient?: `0x${string}` | undefined;
10354
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
10355
+ } | undefined;
10182
10356
  }) & {
10183
10357
  chainId: number;
10358
+ environment?: "production" | "sandbox" | undefined;
10184
10359
  };
10185
10360
  };
10186
10361
  } | {
@@ -10509,8 +10684,33 @@ export declare function management(options?: management.Options): import("hono/h
10509
10684
  lte?: `0x${string}` | undefined;
10510
10685
  } | `0x${string}` | undefined;
10511
10686
  } | undefined;
10687
+ } | {
10688
+ chainId?: unknown;
10689
+ context?: {
10690
+ description?: string | undefined;
10691
+ metadata?: Record<string, string> | undefined;
10692
+ title?: string | undefined;
10693
+ } | undefined;
10694
+ destination: {
10695
+ type: "url";
10696
+ url: string;
10697
+ } | {
10698
+ type: "slack";
10699
+ url: string;
10700
+ } | {
10701
+ token: string;
10702
+ type: "betterstack";
10703
+ url: string;
10704
+ };
10705
+ eventType: "funding:deposit.updated";
10706
+ filters?: {
10707
+ depositAddressId?: string | undefined;
10708
+ recipient?: `0x${string}` | undefined;
10709
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
10710
+ } | undefined;
10512
10711
  }) & {
10513
10712
  chainId: number;
10713
+ environment?: "production" | "sandbox" | undefined;
10514
10714
  };
10515
10715
  };
10516
10716
  } | {
@@ -10839,14 +11039,39 @@ export declare function management(options?: management.Options): import("hono/h
10839
11039
  lte?: `0x${string}` | undefined;
10840
11040
  } | `0x${string}` | undefined;
10841
11041
  } | undefined;
11042
+ } | {
11043
+ chainId?: unknown;
11044
+ context?: {
11045
+ description?: string | undefined;
11046
+ metadata?: Record<string, string> | undefined;
11047
+ title?: string | undefined;
11048
+ } | undefined;
11049
+ destination: {
11050
+ type: "url";
11051
+ url: string;
11052
+ } | {
11053
+ type: "slack";
11054
+ url: string;
11055
+ } | {
11056
+ token: string;
11057
+ type: "betterstack";
11058
+ url: string;
11059
+ };
11060
+ eventType: "funding:deposit.updated";
11061
+ filters?: {
11062
+ depositAddressId?: string | undefined;
11063
+ recipient?: `0x${string}` | undefined;
11064
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
11065
+ } | undefined;
10842
11066
  }) & {
10843
11067
  chainId: number;
11068
+ environment?: "production" | "sandbox" | undefined;
10844
11069
  };
10845
11070
  };
10846
11071
  } | {
10847
11072
  output: {
10848
11073
  error: {
10849
- code: "url_invalid";
11074
+ code: "event_type_unsupported";
10850
11075
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
10851
11076
  message: string;
10852
11077
  };
@@ -11169,14 +11394,39 @@ export declare function management(options?: management.Options): import("hono/h
11169
11394
  lte?: `0x${string}` | undefined;
11170
11395
  } | `0x${string}` | undefined;
11171
11396
  } | undefined;
11397
+ } | {
11398
+ chainId?: unknown;
11399
+ context?: {
11400
+ description?: string | undefined;
11401
+ metadata?: Record<string, string> | undefined;
11402
+ title?: string | undefined;
11403
+ } | undefined;
11404
+ destination: {
11405
+ type: "url";
11406
+ url: string;
11407
+ } | {
11408
+ type: "slack";
11409
+ url: string;
11410
+ } | {
11411
+ token: string;
11412
+ type: "betterstack";
11413
+ url: string;
11414
+ };
11415
+ eventType: "funding:deposit.updated";
11416
+ filters?: {
11417
+ depositAddressId?: string | undefined;
11418
+ recipient?: `0x${string}` | undefined;
11419
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
11420
+ } | undefined;
11172
11421
  }) & {
11173
11422
  chainId: number;
11423
+ environment?: "production" | "sandbox" | undefined;
11174
11424
  };
11175
11425
  };
11176
11426
  } | {
11177
11427
  output: {
11178
11428
  error: {
11179
- code: "filters_invalid";
11429
+ code: "url_invalid";
11180
11430
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
11181
11431
  message: string;
11182
11432
  };
@@ -11499,21 +11749,46 @@ export declare function management(options?: management.Options): import("hono/h
11499
11749
  lte?: `0x${string}` | undefined;
11500
11750
  } | `0x${string}` | undefined;
11501
11751
  } | undefined;
11752
+ } | {
11753
+ chainId?: unknown;
11754
+ context?: {
11755
+ description?: string | undefined;
11756
+ metadata?: Record<string, string> | undefined;
11757
+ title?: string | undefined;
11758
+ } | undefined;
11759
+ destination: {
11760
+ type: "url";
11761
+ url: string;
11762
+ } | {
11763
+ type: "slack";
11764
+ url: string;
11765
+ } | {
11766
+ token: string;
11767
+ type: "betterstack";
11768
+ url: string;
11769
+ };
11770
+ eventType: "funding:deposit.updated";
11771
+ filters?: {
11772
+ depositAddressId?: string | undefined;
11773
+ recipient?: `0x${string}` | undefined;
11774
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
11775
+ } | undefined;
11502
11776
  }) & {
11503
11777
  chainId: number;
11778
+ environment?: "production" | "sandbox" | undefined;
11504
11779
  };
11505
11780
  };
11506
11781
  } | {
11507
11782
  output: {
11508
11783
  error: {
11509
- code: "limit_exceeded";
11784
+ code: "filters_invalid";
11510
11785
  details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
11511
11786
  message: string;
11512
11787
  };
11513
11788
  requestId: string;
11514
11789
  };
11515
11790
  outputFormat: "json";
11516
- status: 403;
11791
+ status: 400;
11517
11792
  input: {
11518
11793
  param: {
11519
11794
  orgId: string;
@@ -11829,13 +12104,393 @@ export declare function management(options?: management.Options): import("hono/h
11829
12104
  lte?: `0x${string}` | undefined;
11830
12105
  } | `0x${string}` | undefined;
11831
12106
  } | undefined;
11832
- }) & {
11833
- chainId: number;
11834
- };
11835
- };
11836
- } | {
11837
- output: {
11838
- chainId: number;
12107
+ } | {
12108
+ chainId?: unknown;
12109
+ context?: {
12110
+ description?: string | undefined;
12111
+ metadata?: Record<string, string> | undefined;
12112
+ title?: string | undefined;
12113
+ } | undefined;
12114
+ destination: {
12115
+ type: "url";
12116
+ url: string;
12117
+ } | {
12118
+ type: "slack";
12119
+ url: string;
12120
+ } | {
12121
+ token: string;
12122
+ type: "betterstack";
12123
+ url: string;
12124
+ };
12125
+ eventType: "funding:deposit.updated";
12126
+ filters?: {
12127
+ depositAddressId?: string | undefined;
12128
+ recipient?: `0x${string}` | undefined;
12129
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
12130
+ } | undefined;
12131
+ }) & {
12132
+ chainId: number;
12133
+ environment?: "production" | "sandbox" | undefined;
12134
+ };
12135
+ };
12136
+ } | {
12137
+ output: {
12138
+ error: {
12139
+ code: "limit_exceeded";
12140
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
12141
+ message: string;
12142
+ };
12143
+ requestId: string;
12144
+ };
12145
+ outputFormat: "json";
12146
+ status: 403;
12147
+ input: {
12148
+ param: {
12149
+ orgId: string;
12150
+ };
12151
+ } & {
12152
+ json: ({
12153
+ chainId?: unknown;
12154
+ context?: {
12155
+ description?: string | undefined;
12156
+ metadata?: Record<string, string> | undefined;
12157
+ title?: string | undefined;
12158
+ } | undefined;
12159
+ destination: {
12160
+ type: "url";
12161
+ url: string;
12162
+ } | {
12163
+ type: "slack";
12164
+ url: string;
12165
+ } | {
12166
+ token: string;
12167
+ type: "betterstack";
12168
+ url: string;
12169
+ };
12170
+ eventType: "token:transfer";
12171
+ filters?: {
12172
+ address?: `0x${string}` | undefined;
12173
+ recipient?: `0x${string}` | undefined;
12174
+ sender?: `0x${string}` | undefined;
12175
+ token?: `0x${string}` | undefined;
12176
+ } | undefined;
12177
+ } | {
12178
+ chainId?: unknown;
12179
+ context?: {
12180
+ description?: string | undefined;
12181
+ metadata?: Record<string, string> | undefined;
12182
+ title?: string | undefined;
12183
+ } | undefined;
12184
+ destination: {
12185
+ type: "url";
12186
+ url: string;
12187
+ } | {
12188
+ type: "slack";
12189
+ url: string;
12190
+ } | {
12191
+ token: string;
12192
+ type: "betterstack";
12193
+ url: string;
12194
+ };
12195
+ eventType: "transaction:included";
12196
+ filters?: {
12197
+ hash?: {
12198
+ eq: `0x${string}`;
12199
+ } | {
12200
+ in: `0x${string}`[];
12201
+ } | {
12202
+ not: `0x${string}`;
12203
+ } | `0x${string}` | undefined;
12204
+ address?: {
12205
+ eq: `0x${string}`;
12206
+ } | {
12207
+ in: `0x${string}`[];
12208
+ } | {
12209
+ not: `0x${string}`;
12210
+ } | `0x${string}` | undefined;
12211
+ from?: {
12212
+ eq: `0x${string}`;
12213
+ } | {
12214
+ in: `0x${string}`[];
12215
+ } | {
12216
+ not: `0x${string}`;
12217
+ } | `0x${string}` | undefined;
12218
+ to?: {
12219
+ eq: `0x${string}`;
12220
+ } | {
12221
+ in: `0x${string}`[];
12222
+ } | {
12223
+ not: `0x${string}`;
12224
+ } | `0x${string}` | undefined;
12225
+ includeCalls?: boolean | undefined;
12226
+ value?: {
12227
+ eq?: `0x${string}` | undefined;
12228
+ gt?: `0x${string}` | undefined;
12229
+ gte?: `0x${string}` | undefined;
12230
+ lt?: `0x${string}` | undefined;
12231
+ lte?: `0x${string}` | undefined;
12232
+ } | `0x${string}` | undefined;
12233
+ input?: {
12234
+ selector: string;
12235
+ } | {
12236
+ startsWith: string;
12237
+ } | {
12238
+ eq: string;
12239
+ } | undefined;
12240
+ calls?: {
12241
+ to: {
12242
+ eq: `0x${string}`;
12243
+ } | {
12244
+ in: `0x${string}`[];
12245
+ } | {
12246
+ not: `0x${string}`;
12247
+ } | `0x${string}`;
12248
+ } | undefined;
12249
+ callCount?: {
12250
+ eq?: `0x${string}` | undefined;
12251
+ gt?: `0x${string}` | undefined;
12252
+ gte?: `0x${string}` | undefined;
12253
+ lt?: `0x${string}` | undefined;
12254
+ lte?: `0x${string}` | undefined;
12255
+ } | `0x${string}` | undefined;
12256
+ txType?: string | {
12257
+ eq: string;
12258
+ } | {
12259
+ in: string[];
12260
+ } | {
12261
+ not: string;
12262
+ } | undefined;
12263
+ feeToken?: {
12264
+ eq: `0x${string}`;
12265
+ } | {
12266
+ in: `0x${string}`[];
12267
+ } | {
12268
+ not: `0x${string}`;
12269
+ } | `0x${string}` | undefined;
12270
+ gasLimit?: {
12271
+ eq?: `0x${string}` | undefined;
12272
+ gt?: `0x${string}` | undefined;
12273
+ gte?: `0x${string}` | undefined;
12274
+ lt?: `0x${string}` | undefined;
12275
+ lte?: `0x${string}` | undefined;
12276
+ } | `0x${string}` | undefined;
12277
+ maxFeePerGas?: {
12278
+ eq?: `0x${string}` | undefined;
12279
+ gt?: `0x${string}` | undefined;
12280
+ gte?: `0x${string}` | undefined;
12281
+ lt?: `0x${string}` | undefined;
12282
+ lte?: `0x${string}` | undefined;
12283
+ } | `0x${string}` | undefined;
12284
+ maxPriorityFeePerGas?: {
12285
+ eq?: `0x${string}` | undefined;
12286
+ gt?: `0x${string}` | undefined;
12287
+ gte?: `0x${string}` | undefined;
12288
+ lt?: `0x${string}` | undefined;
12289
+ lte?: `0x${string}` | undefined;
12290
+ } | `0x${string}` | undefined;
12291
+ nonce?: {
12292
+ eq?: `0x${string}` | undefined;
12293
+ gt?: `0x${string}` | undefined;
12294
+ gte?: `0x${string}` | undefined;
12295
+ lt?: `0x${string}` | undefined;
12296
+ lte?: `0x${string}` | undefined;
12297
+ } | `0x${string}` | undefined;
12298
+ nonceKey?: string | {
12299
+ eq: string;
12300
+ } | {
12301
+ in: string[];
12302
+ } | {
12303
+ not: string;
12304
+ } | undefined;
12305
+ validBefore?: {
12306
+ eq?: `0x${string}` | undefined;
12307
+ gt?: `0x${string}` | undefined;
12308
+ gte?: `0x${string}` | undefined;
12309
+ lt?: `0x${string}` | undefined;
12310
+ lte?: `0x${string}` | undefined;
12311
+ } | `0x${string}` | undefined;
12312
+ validAfter?: {
12313
+ eq?: `0x${string}` | undefined;
12314
+ gt?: `0x${string}` | undefined;
12315
+ gte?: `0x${string}` | undefined;
12316
+ lt?: `0x${string}` | undefined;
12317
+ lte?: `0x${string}` | undefined;
12318
+ } | `0x${string}` | undefined;
12319
+ blockNumber?: {
12320
+ eq?: `0x${string}` | undefined;
12321
+ gt?: `0x${string}` | undefined;
12322
+ gte?: `0x${string}` | undefined;
12323
+ lt?: `0x${string}` | undefined;
12324
+ lte?: `0x${string}` | undefined;
12325
+ } | `0x${string}` | undefined;
12326
+ timestamp?: {
12327
+ eq?: `0x${string}` | undefined;
12328
+ gt?: `0x${string}` | undefined;
12329
+ gte?: `0x${string}` | undefined;
12330
+ lt?: `0x${string}` | undefined;
12331
+ lte?: `0x${string}` | undefined;
12332
+ } | `0x${string}` | undefined;
12333
+ } | undefined;
12334
+ } | {
12335
+ chainId?: unknown;
12336
+ context?: {
12337
+ description?: string | undefined;
12338
+ metadata?: Record<string, string> | undefined;
12339
+ title?: string | undefined;
12340
+ } | undefined;
12341
+ destination: {
12342
+ type: "url";
12343
+ url: string;
12344
+ } | {
12345
+ type: "slack";
12346
+ url: string;
12347
+ } | {
12348
+ token: string;
12349
+ type: "betterstack";
12350
+ url: string;
12351
+ };
12352
+ eventType: "log:emitted";
12353
+ filters: {
12354
+ address?: {
12355
+ eq: `0x${string}`;
12356
+ } | {
12357
+ in: `0x${string}`[];
12358
+ } | {
12359
+ not: `0x${string}`;
12360
+ } | `0x${string}` | undefined;
12361
+ signature?: string | undefined;
12362
+ topic0?: {
12363
+ eq: `0x${string}`;
12364
+ } | {
12365
+ in: `0x${string}`[];
12366
+ } | {
12367
+ not: `0x${string}`;
12368
+ } | `0x${string}` | undefined;
12369
+ topic1?: {
12370
+ eq: `0x${string}`;
12371
+ } | {
12372
+ in: `0x${string}`[];
12373
+ } | {
12374
+ not: `0x${string}`;
12375
+ } | `0x${string}` | undefined;
12376
+ topic2?: {
12377
+ eq: `0x${string}`;
12378
+ } | {
12379
+ in: `0x${string}`[];
12380
+ } | {
12381
+ not: `0x${string}`;
12382
+ } | `0x${string}` | undefined;
12383
+ topic3?: {
12384
+ eq: `0x${string}`;
12385
+ } | {
12386
+ in: `0x${string}`[];
12387
+ } | {
12388
+ not: `0x${string}`;
12389
+ } | `0x${string}` | undefined;
12390
+ args?: Record<string, unknown> | undefined;
12391
+ blockNumber?: {
12392
+ eq?: `0x${string}` | undefined;
12393
+ gt?: `0x${string}` | undefined;
12394
+ gte?: `0x${string}` | undefined;
12395
+ lt?: `0x${string}` | undefined;
12396
+ lte?: `0x${string}` | undefined;
12397
+ } | `0x${string}` | undefined;
12398
+ };
12399
+ } | {
12400
+ chainId?: unknown;
12401
+ context?: {
12402
+ description?: string | undefined;
12403
+ metadata?: Record<string, string> | undefined;
12404
+ title?: string | undefined;
12405
+ } | undefined;
12406
+ destination: {
12407
+ type: "url";
12408
+ url: string;
12409
+ } | {
12410
+ type: "slack";
12411
+ url: string;
12412
+ } | {
12413
+ token: string;
12414
+ type: "betterstack";
12415
+ url: string;
12416
+ };
12417
+ eventType: "block:created";
12418
+ filters?: {
12419
+ number?: {
12420
+ eq?: `0x${string}` | undefined;
12421
+ gt?: `0x${string}` | undefined;
12422
+ gte?: `0x${string}` | undefined;
12423
+ lt?: `0x${string}` | undefined;
12424
+ lte?: `0x${string}` | undefined;
12425
+ } | `0x${string}` | undefined;
12426
+ miner?: {
12427
+ eq: `0x${string}`;
12428
+ } | {
12429
+ in: `0x${string}`[];
12430
+ } | {
12431
+ not: `0x${string}`;
12432
+ } | `0x${string}` | undefined;
12433
+ proposer?: {
12434
+ eq: `0x${string}`;
12435
+ } | {
12436
+ in: `0x${string}`[];
12437
+ } | {
12438
+ not: `0x${string}`;
12439
+ } | `0x${string}` | undefined;
12440
+ gasUsed?: {
12441
+ eq?: `0x${string}` | undefined;
12442
+ gt?: `0x${string}` | undefined;
12443
+ gte?: `0x${string}` | undefined;
12444
+ lt?: `0x${string}` | undefined;
12445
+ lte?: `0x${string}` | undefined;
12446
+ } | `0x${string}` | undefined;
12447
+ gasLimit?: {
12448
+ eq?: `0x${string}` | undefined;
12449
+ gt?: `0x${string}` | undefined;
12450
+ gte?: `0x${string}` | undefined;
12451
+ lt?: `0x${string}` | undefined;
12452
+ lte?: `0x${string}` | undefined;
12453
+ } | `0x${string}` | undefined;
12454
+ timestamp?: {
12455
+ eq?: `0x${string}` | undefined;
12456
+ gt?: `0x${string}` | undefined;
12457
+ gte?: `0x${string}` | undefined;
12458
+ lt?: `0x${string}` | undefined;
12459
+ lte?: `0x${string}` | undefined;
12460
+ } | `0x${string}` | undefined;
12461
+ } | undefined;
12462
+ } | {
12463
+ chainId?: unknown;
12464
+ context?: {
12465
+ description?: string | undefined;
12466
+ metadata?: Record<string, string> | undefined;
12467
+ title?: string | undefined;
12468
+ } | undefined;
12469
+ destination: {
12470
+ type: "url";
12471
+ url: string;
12472
+ } | {
12473
+ type: "slack";
12474
+ url: string;
12475
+ } | {
12476
+ token: string;
12477
+ type: "betterstack";
12478
+ url: string;
12479
+ };
12480
+ eventType: "funding:deposit.updated";
12481
+ filters?: {
12482
+ depositAddressId?: string | undefined;
12483
+ recipient?: `0x${string}` | undefined;
12484
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
12485
+ } | undefined;
12486
+ }) & {
12487
+ chainId: number;
12488
+ environment?: "production" | "sandbox" | undefined;
12489
+ };
12490
+ };
12491
+ } | {
12492
+ output: {
12493
+ chainId: number;
11839
12494
  context?: {
11840
12495
  description?: string | undefined;
11841
12496
  metadata?: {
@@ -11844,7 +12499,8 @@ export declare function management(options?: management.Options): import("hono/h
11844
12499
  title?: string | undefined;
11845
12500
  } | undefined;
11846
12501
  createdAt: string;
11847
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
12502
+ environment?: "production" | "sandbox" | undefined;
12503
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
11848
12504
  expiresAt?: string | undefined;
11849
12505
  failureCount: number;
11850
12506
  filters: {
@@ -11869,7 +12525,8 @@ export declare function management(options?: management.Options): import("hono/h
11869
12525
  title?: string | undefined;
11870
12526
  } | undefined;
11871
12527
  createdAt: string;
11872
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
12528
+ environment?: "production" | "sandbox" | undefined;
12529
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
11873
12530
  expiresAt?: string | undefined;
11874
12531
  failureCount: number;
11875
12532
  filters: {
@@ -11893,7 +12550,8 @@ export declare function management(options?: management.Options): import("hono/h
11893
12550
  title?: string | undefined;
11894
12551
  } | undefined;
11895
12552
  createdAt: string;
11896
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
12553
+ environment?: "production" | "sandbox" | undefined;
12554
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
11897
12555
  expiresAt?: string | undefined;
11898
12556
  failureCount: number;
11899
12557
  filters: {
@@ -12226,8 +12884,33 @@ export declare function management(options?: management.Options): import("hono/h
12226
12884
  lte?: `0x${string}` | undefined;
12227
12885
  } | `0x${string}` | undefined;
12228
12886
  } | undefined;
12887
+ } | {
12888
+ chainId?: unknown;
12889
+ context?: {
12890
+ description?: string | undefined;
12891
+ metadata?: Record<string, string> | undefined;
12892
+ title?: string | undefined;
12893
+ } | undefined;
12894
+ destination: {
12895
+ type: "url";
12896
+ url: string;
12897
+ } | {
12898
+ type: "slack";
12899
+ url: string;
12900
+ } | {
12901
+ token: string;
12902
+ type: "betterstack";
12903
+ url: string;
12904
+ };
12905
+ eventType: "funding:deposit.updated";
12906
+ filters?: {
12907
+ depositAddressId?: string | undefined;
12908
+ recipient?: `0x${string}` | undefined;
12909
+ status?: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling" | undefined;
12910
+ } | undefined;
12229
12911
  }) & {
12230
12912
  chainId: number;
12913
+ environment?: "production" | "sandbox" | undefined;
12231
12914
  };
12232
12915
  };
12233
12916
  };
@@ -12369,7 +13052,8 @@ export declare function management(options?: management.Options): import("hono/h
12369
13052
  type: "betterstack";
12370
13053
  url: string;
12371
13054
  };
12372
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
13055
+ environment?: "production" | "sandbox" | undefined;
13056
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
12373
13057
  expiresAt?: string | undefined;
12374
13058
  failureCount: number;
12375
13059
  filters: {
@@ -13011,6 +13695,98 @@ export declare function management(options?: management.Options): import("hono/h
13011
13695
  timestamp: string;
13012
13696
  };
13013
13697
  type: "block:created";
13698
+ } | {
13699
+ chainId: number;
13700
+ context?: {
13701
+ description?: string | undefined;
13702
+ metadata?: {
13703
+ [x: string]: string;
13704
+ } | undefined;
13705
+ title?: string | undefined;
13706
+ } | undefined;
13707
+ createdAt: string;
13708
+ id: string;
13709
+ subscriptionId: string;
13710
+ data: {
13711
+ createdAt: string;
13712
+ depositAddressId: string;
13713
+ detectionTrigger?: "chain" | "manual" | "poll" | "webhook" | undefined;
13714
+ destinationAmount?: {
13715
+ baseUnits: string;
13716
+ currency: string;
13717
+ decimals: number;
13718
+ formatted: string;
13719
+ } | undefined;
13720
+ destinationAmountRequired?: {
13721
+ baseUnits: string;
13722
+ currency: string;
13723
+ decimals: number;
13724
+ formatted: string;
13725
+ } | undefined;
13726
+ destinationChain: {
13727
+ addressFormat: "base58" | "base58check" | "hex";
13728
+ id: string;
13729
+ kind: "evm" | "solana" | "tron";
13730
+ name: string;
13731
+ };
13732
+ destinationToken: {
13733
+ address: string;
13734
+ currency: string;
13735
+ decimals: number;
13736
+ name: string;
13737
+ standard: string;
13738
+ symbol: string;
13739
+ tokenKey: string;
13740
+ verified: boolean;
13741
+ };
13742
+ destinationTransactionHashes?: readonly string[] | undefined;
13743
+ id: string;
13744
+ provider: {
13745
+ id: string;
13746
+ name: string;
13747
+ };
13748
+ recipient: string;
13749
+ refundAddress: string;
13750
+ refundAmount?: {
13751
+ baseUnits: string;
13752
+ currency: string;
13753
+ decimals: number;
13754
+ formatted: string;
13755
+ } | undefined;
13756
+ refundTransactionHashes?: readonly string[] | undefined;
13757
+ sender?: string | undefined;
13758
+ sourceAmount?: {
13759
+ baseUnits: string;
13760
+ currency: string;
13761
+ decimals: number;
13762
+ formatted: string;
13763
+ } | undefined;
13764
+ sourceChain: {
13765
+ addressFormat: "base58" | "base58check" | "hex";
13766
+ id: string;
13767
+ kind: "evm" | "solana" | "tron";
13768
+ name: string;
13769
+ };
13770
+ sourceToken: {
13771
+ address: string;
13772
+ currency: string;
13773
+ decimals: number;
13774
+ name: string;
13775
+ standard: string;
13776
+ symbol: string;
13777
+ tokenKey: string;
13778
+ verified: boolean;
13779
+ };
13780
+ sourceTransactionHashes: readonly string[];
13781
+ sourceTransferIndex?: number | undefined;
13782
+ status: "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling";
13783
+ statusReason?: {
13784
+ code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
13785
+ message: string;
13786
+ } | undefined;
13787
+ updatedAt: string;
13788
+ };
13789
+ type: "funding:deposit.updated";
13014
13790
  } | {
13015
13791
  chainId: number;
13016
13792
  context?: {
@@ -13436,7 +14212,8 @@ export declare function management(options?: management.Options): import("hono/h
13436
14212
  type: "betterstack";
13437
14213
  url: string;
13438
14214
  };
13439
- eventType: "block:created" | "log:emitted" | "token:transfer" | "transaction:included";
14215
+ environment?: "production" | "sandbox" | undefined;
14216
+ eventType: "block:created" | "funding:deposit.updated" | "log:emitted" | "token:transfer" | "transaction:included";
13440
14217
  expiresAt?: string | undefined;
13441
14218
  failureCount: number;
13442
14219
  filters: {