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
@@ -61,14 +61,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
61
61
  $get: {
62
62
  output: {
63
63
  error: {
64
- code: "upstream_error";
64
+ code: "api_key_malformed";
65
65
  details?: readonly Response.error.Detail[] | undefined;
66
66
  message: string;
67
67
  };
68
68
  requestId: string;
69
69
  };
70
70
  outputFormat: "json";
71
- status: 502;
71
+ status: 400;
72
72
  input: {
73
73
  param: {
74
74
  orgId: string;
@@ -77,14 +77,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
77
77
  } | {
78
78
  output: {
79
79
  error: {
80
- code: "api_key_malformed";
80
+ code: "api_key_invalid" | "api_key_missing";
81
81
  details?: readonly Response.error.Detail[] | undefined;
82
82
  message: string;
83
83
  };
84
84
  requestId: string;
85
85
  };
86
86
  outputFormat: "json";
87
- status: 400;
87
+ status: 401;
88
88
  input: {
89
89
  param: {
90
90
  orgId: string;
@@ -93,14 +93,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
93
93
  } | {
94
94
  output: {
95
95
  error: {
96
- code: "api_key_invalid" | "api_key_missing";
96
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
97
97
  details?: readonly Response.error.Detail[] | undefined;
98
98
  message: string;
99
99
  };
100
100
  requestId: string;
101
101
  };
102
102
  outputFormat: "json";
103
- status: 401;
103
+ status: 403;
104
104
  input: {
105
105
  param: {
106
106
  orgId: string;
@@ -109,14 +109,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
109
109
  } | {
110
110
  output: {
111
111
  error: {
112
- code: "api_key_forbidden" | "api_key_ip_forbidden";
112
+ code: "payment_required" | "rate_limit_exceeded";
113
113
  details?: readonly Response.error.Detail[] | undefined;
114
114
  message: string;
115
115
  };
116
116
  requestId: string;
117
117
  };
118
118
  outputFormat: "json";
119
- status: 403;
119
+ status: 429;
120
120
  input: {
121
121
  param: {
122
122
  orgId: string;
@@ -125,14 +125,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
125
125
  } | {
126
126
  output: {
127
127
  error: {
128
- code: "payment_required" | "rate_limit_exceeded";
128
+ code: "upstream_error";
129
129
  details?: readonly Response.error.Detail[] | undefined;
130
130
  message: string;
131
131
  };
132
132
  requestId: string;
133
133
  };
134
134
  outputFormat: "json";
135
- status: 429;
135
+ status: 502;
136
136
  input: {
137
137
  param: {
138
138
  orgId: string;
@@ -195,14 +195,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
195
195
  $post: {
196
196
  output: {
197
197
  error: {
198
- code: "upstream_error";
198
+ code: "api_key_malformed";
199
199
  details?: readonly Response.error.Detail[] | undefined;
200
200
  message: string;
201
201
  };
202
202
  requestId: string;
203
203
  };
204
204
  outputFormat: "json";
205
- status: 502;
205
+ status: 400;
206
206
  input: {
207
207
  param: {
208
208
  orgId: string;
@@ -215,14 +215,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
215
215
  } | {
216
216
  output: {
217
217
  error: {
218
- code: "api_key_malformed";
218
+ code: "api_key_invalid" | "api_key_missing";
219
219
  details?: readonly Response.error.Detail[] | undefined;
220
220
  message: string;
221
221
  };
222
222
  requestId: string;
223
223
  };
224
224
  outputFormat: "json";
225
- status: 400;
225
+ status: 401;
226
226
  input: {
227
227
  param: {
228
228
  orgId: string;
@@ -235,14 +235,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
235
235
  } | {
236
236
  output: {
237
237
  error: {
238
- code: "api_key_invalid" | "api_key_missing";
238
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
239
239
  details?: readonly Response.error.Detail[] | undefined;
240
240
  message: string;
241
241
  };
242
242
  requestId: string;
243
243
  };
244
244
  outputFormat: "json";
245
- status: 401;
245
+ status: 403;
246
246
  input: {
247
247
  param: {
248
248
  orgId: string;
@@ -255,14 +255,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
255
255
  } | {
256
256
  output: {
257
257
  error: {
258
- code: "api_key_forbidden" | "api_key_ip_forbidden";
258
+ code: "payment_required" | "rate_limit_exceeded";
259
259
  details?: readonly Response.error.Detail[] | undefined;
260
260
  message: string;
261
261
  };
262
262
  requestId: string;
263
263
  };
264
264
  outputFormat: "json";
265
- status: 403;
265
+ status: 429;
266
266
  input: {
267
267
  param: {
268
268
  orgId: string;
@@ -275,14 +275,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
275
275
  } | {
276
276
  output: {
277
277
  error: {
278
- code: "payment_required" | "rate_limit_exceeded";
278
+ code: "upstream_error";
279
279
  details?: readonly Response.error.Detail[] | undefined;
280
280
  message: string;
281
281
  };
282
282
  requestId: string;
283
283
  };
284
284
  outputFormat: "json";
285
- status: 429;
285
+ status: 502;
286
286
  input: {
287
287
  param: {
288
288
  orgId: string;
@@ -502,14 +502,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
502
502
  $patch: {
503
503
  output: {
504
504
  error: {
505
- code: "upstream_error";
505
+ code: "api_key_malformed";
506
506
  details?: readonly Response.error.Detail[] | undefined;
507
507
  message: string;
508
508
  };
509
509
  requestId: string;
510
510
  };
511
511
  outputFormat: "json";
512
- status: 502;
512
+ status: 400;
513
513
  input: {
514
514
  param: {
515
515
  orgId: string;
@@ -523,14 +523,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
523
523
  } | {
524
524
  output: {
525
525
  error: {
526
- code: "api_key_malformed";
526
+ code: "api_key_invalid" | "api_key_missing";
527
527
  details?: readonly Response.error.Detail[] | undefined;
528
528
  message: string;
529
529
  };
530
530
  requestId: string;
531
531
  };
532
532
  outputFormat: "json";
533
- status: 400;
533
+ status: 401;
534
534
  input: {
535
535
  param: {
536
536
  orgId: string;
@@ -544,14 +544,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
544
544
  } | {
545
545
  output: {
546
546
  error: {
547
- code: "api_key_invalid" | "api_key_missing";
547
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
548
548
  details?: readonly Response.error.Detail[] | undefined;
549
549
  message: string;
550
550
  };
551
551
  requestId: string;
552
552
  };
553
553
  outputFormat: "json";
554
- status: 401;
554
+ status: 403;
555
555
  input: {
556
556
  param: {
557
557
  orgId: string;
@@ -565,14 +565,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
565
565
  } | {
566
566
  output: {
567
567
  error: {
568
- code: "api_key_forbidden" | "api_key_ip_forbidden";
568
+ code: "payment_required" | "rate_limit_exceeded";
569
569
  details?: readonly Response.error.Detail[] | undefined;
570
570
  message: string;
571
571
  };
572
572
  requestId: string;
573
573
  };
574
574
  outputFormat: "json";
575
- status: 403;
575
+ status: 429;
576
576
  input: {
577
577
  param: {
578
578
  orgId: string;
@@ -586,14 +586,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
586
586
  } | {
587
587
  output: {
588
588
  error: {
589
- code: "payment_required" | "rate_limit_exceeded";
589
+ code: "upstream_error";
590
590
  details?: readonly Response.error.Detail[] | undefined;
591
591
  message: string;
592
592
  };
593
593
  requestId: string;
594
594
  };
595
595
  outputFormat: "json";
596
- status: 429;
596
+ status: 502;
597
597
  input: {
598
598
  param: {
599
599
  orgId: string;
@@ -695,14 +695,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
695
695
  $delete: {
696
696
  output: {
697
697
  error: {
698
- code: "upstream_error";
698
+ code: "api_key_malformed";
699
699
  details?: readonly Response.error.Detail[] | undefined;
700
700
  message: string;
701
701
  };
702
702
  requestId: string;
703
703
  };
704
704
  outputFormat: "json";
705
- status: 502;
705
+ status: 400;
706
706
  input: {
707
707
  param: {
708
708
  orgId: string;
@@ -712,14 +712,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
712
712
  } | {
713
713
  output: {
714
714
  error: {
715
- code: "api_key_malformed";
715
+ code: "api_key_invalid" | "api_key_missing";
716
716
  details?: readonly Response.error.Detail[] | undefined;
717
717
  message: string;
718
718
  };
719
719
  requestId: string;
720
720
  };
721
721
  outputFormat: "json";
722
- status: 400;
722
+ status: 401;
723
723
  input: {
724
724
  param: {
725
725
  orgId: string;
@@ -729,14 +729,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
729
729
  } | {
730
730
  output: {
731
731
  error: {
732
- code: "api_key_invalid" | "api_key_missing";
732
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
733
733
  details?: readonly Response.error.Detail[] | undefined;
734
734
  message: string;
735
735
  };
736
736
  requestId: string;
737
737
  };
738
738
  outputFormat: "json";
739
- status: 401;
739
+ status: 403;
740
740
  input: {
741
741
  param: {
742
742
  orgId: string;
@@ -746,14 +746,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
746
746
  } | {
747
747
  output: {
748
748
  error: {
749
- code: "api_key_forbidden" | "api_key_ip_forbidden";
749
+ code: "payment_required" | "rate_limit_exceeded";
750
750
  details?: readonly Response.error.Detail[] | undefined;
751
751
  message: string;
752
752
  };
753
753
  requestId: string;
754
754
  };
755
755
  outputFormat: "json";
756
- status: 403;
756
+ status: 429;
757
757
  input: {
758
758
  param: {
759
759
  orgId: string;
@@ -763,14 +763,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
763
763
  } | {
764
764
  output: {
765
765
  error: {
766
- code: "payment_required" | "rate_limit_exceeded";
766
+ code: "upstream_error";
767
767
  details?: readonly Response.error.Detail[] | undefined;
768
768
  message: string;
769
769
  };
770
770
  requestId: string;
771
771
  };
772
772
  outputFormat: "json";
773
- status: 429;
773
+ status: 502;
774
774
  input: {
775
775
  param: {
776
776
  orgId: string;