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
@@ -122,14 +122,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
122
122
  $post: {
123
123
  output: {
124
124
  error: {
125
- code: "upstream_error";
125
+ code: "api_key_malformed";
126
126
  details?: readonly Response.error.Detail[] | undefined;
127
127
  message: string;
128
128
  };
129
129
  requestId: string;
130
130
  };
131
131
  outputFormat: "json";
132
- status: 502;
132
+ status: 400;
133
133
  input: {
134
134
  param: {
135
135
  orgId: string;
@@ -146,14 +146,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
146
146
  } | {
147
147
  output: {
148
148
  error: {
149
- code: "api_key_malformed";
149
+ code: "api_key_invalid" | "api_key_missing";
150
150
  details?: readonly Response.error.Detail[] | undefined;
151
151
  message: string;
152
152
  };
153
153
  requestId: string;
154
154
  };
155
155
  outputFormat: "json";
156
- status: 400;
156
+ status: 401;
157
157
  input: {
158
158
  param: {
159
159
  orgId: string;
@@ -170,14 +170,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
170
170
  } | {
171
171
  output: {
172
172
  error: {
173
- code: "api_key_invalid" | "api_key_missing";
173
+ code: "upstream_error";
174
174
  details?: readonly Response.error.Detail[] | undefined;
175
175
  message: string;
176
176
  };
177
177
  requestId: string;
178
178
  };
179
179
  outputFormat: "json";
180
- status: 401;
180
+ status: 502;
181
181
  input: {
182
182
  param: {
183
183
  orgId: string;
@@ -303,14 +303,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
303
303
  $get: {
304
304
  output: {
305
305
  error: {
306
- code: "upstream_error";
306
+ code: "api_key_malformed";
307
307
  details?: readonly Response.error.Detail[] | undefined;
308
308
  message: string;
309
309
  };
310
310
  requestId: string;
311
311
  };
312
312
  outputFormat: "json";
313
- status: 502;
313
+ status: 400;
314
314
  input: {
315
315
  param: {
316
316
  orgId: string;
@@ -319,14 +319,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
319
319
  } | {
320
320
  output: {
321
321
  error: {
322
- code: "api_key_malformed";
322
+ code: "api_key_invalid" | "api_key_missing";
323
323
  details?: readonly Response.error.Detail[] | undefined;
324
324
  message: string;
325
325
  };
326
326
  requestId: string;
327
327
  };
328
328
  outputFormat: "json";
329
- status: 400;
329
+ status: 401;
330
330
  input: {
331
331
  param: {
332
332
  orgId: string;
@@ -335,14 +335,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
335
335
  } | {
336
336
  output: {
337
337
  error: {
338
- code: "api_key_invalid" | "api_key_missing";
338
+ code: "upstream_error";
339
339
  details?: readonly Response.error.Detail[] | undefined;
340
340
  message: string;
341
341
  };
342
342
  requestId: string;
343
343
  };
344
344
  outputFormat: "json";
345
- status: 401;
345
+ status: 502;
346
346
  input: {
347
347
  param: {
348
348
  orgId: string;
@@ -430,14 +430,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
430
430
  $patch: {
431
431
  output: {
432
432
  error: {
433
- code: "upstream_error";
433
+ code: "api_key_malformed";
434
434
  details?: readonly Response.error.Detail[] | undefined;
435
435
  message: string;
436
436
  };
437
437
  requestId: string;
438
438
  };
439
439
  outputFormat: "json";
440
- status: 502;
440
+ status: 400;
441
441
  input: {
442
442
  param: {
443
443
  inviteLinkId: string;
@@ -451,14 +451,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
451
451
  } | {
452
452
  output: {
453
453
  error: {
454
- code: "api_key_malformed";
454
+ code: "api_key_invalid" | "api_key_missing";
455
455
  details?: readonly Response.error.Detail[] | undefined;
456
456
  message: string;
457
457
  };
458
458
  requestId: string;
459
459
  };
460
460
  outputFormat: "json";
461
- status: 400;
461
+ status: 401;
462
462
  input: {
463
463
  param: {
464
464
  inviteLinkId: string;
@@ -472,14 +472,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
472
472
  } | {
473
473
  output: {
474
474
  error: {
475
- code: "api_key_invalid" | "api_key_missing";
475
+ code: "upstream_error";
476
476
  details?: readonly Response.error.Detail[] | undefined;
477
477
  message: string;
478
478
  };
479
479
  requestId: string;
480
480
  };
481
481
  outputFormat: "json";
482
- status: 401;
482
+ status: 502;
483
483
  input: {
484
484
  param: {
485
485
  inviteLinkId: string;
@@ -611,14 +611,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
611
611
  $delete: {
612
612
  output: {
613
613
  error: {
614
- code: "upstream_error";
614
+ code: "api_key_malformed";
615
615
  details?: readonly Response.error.Detail[] | undefined;
616
616
  message: string;
617
617
  };
618
618
  requestId: string;
619
619
  };
620
620
  outputFormat: "json";
621
- status: 502;
621
+ status: 400;
622
622
  input: {
623
623
  param: {
624
624
  inviteLinkId: string;
@@ -628,14 +628,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
628
628
  } | {
629
629
  output: {
630
630
  error: {
631
- code: "api_key_malformed";
631
+ code: "api_key_invalid" | "api_key_missing";
632
632
  details?: readonly Response.error.Detail[] | undefined;
633
633
  message: string;
634
634
  };
635
635
  requestId: string;
636
636
  };
637
637
  outputFormat: "json";
638
- status: 400;
638
+ status: 401;
639
639
  input: {
640
640
  param: {
641
641
  inviteLinkId: string;
@@ -645,14 +645,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
645
645
  } | {
646
646
  output: {
647
647
  error: {
648
- code: "api_key_invalid" | "api_key_missing";
648
+ code: "upstream_error";
649
649
  details?: readonly Response.error.Detail[] | undefined;
650
650
  message: string;
651
651
  };
652
652
  requestId: string;
653
653
  };
654
654
  outputFormat: "json";
655
- status: 401;
655
+ status: 502;
656
656
  input: {
657
657
  param: {
658
658
  inviteLinkId: string;
@@ -746,14 +746,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
746
746
  $get: {
747
747
  output: {
748
748
  error: {
749
- code: "upstream_error";
749
+ code: "api_key_malformed";
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: 502;
756
+ status: 400;
757
757
  input: {
758
758
  param: {
759
759
  inviteLinkId: string;
@@ -763,14 +763,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
763
763
  } | {
764
764
  output: {
765
765
  error: {
766
- code: "api_key_malformed";
766
+ code: "api_key_invalid" | "api_key_missing";
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: 400;
773
+ status: 401;
774
774
  input: {
775
775
  param: {
776
776
  inviteLinkId: string;
@@ -780,14 +780,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
780
780
  } | {
781
781
  output: {
782
782
  error: {
783
- code: "api_key_invalid" | "api_key_missing";
783
+ code: "upstream_error";
784
784
  details?: readonly Response.error.Detail[] | undefined;
785
785
  message: string;
786
786
  };
787
787
  requestId: string;
788
788
  };
789
789
  outputFormat: "json";
790
- status: 401;
790
+ status: 502;
791
791
  input: {
792
792
  param: {
793
793
  inviteLinkId: string;
@@ -889,14 +889,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
889
889
  $post: {
890
890
  output: {
891
891
  error: {
892
- code: "upstream_error";
892
+ code: "api_key_malformed";
893
893
  details?: readonly Response.error.Detail[] | undefined;
894
894
  message: string;
895
895
  };
896
896
  requestId: string;
897
897
  };
898
898
  outputFormat: "json";
899
- status: 502;
899
+ status: 400;
900
900
  input: {
901
901
  json: {
902
902
  token: string;
@@ -905,14 +905,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
905
905
  } | {
906
906
  output: {
907
907
  error: {
908
- code: "api_key_malformed";
908
+ code: "api_key_invalid" | "api_key_missing";
909
909
  details?: readonly Response.error.Detail[] | undefined;
910
910
  message: string;
911
911
  };
912
912
  requestId: string;
913
913
  };
914
914
  outputFormat: "json";
915
- status: 400;
915
+ status: 401;
916
916
  input: {
917
917
  json: {
918
918
  token: string;
@@ -921,14 +921,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
921
921
  } | {
922
922
  output: {
923
923
  error: {
924
- code: "api_key_invalid" | "api_key_missing";
924
+ code: "upstream_error";
925
925
  details?: readonly Response.error.Detail[] | undefined;
926
926
  message: string;
927
927
  };
928
928
  requestId: string;
929
929
  };
930
930
  outputFormat: "json";
931
- status: 401;
931
+ status: 502;
932
932
  input: {
933
933
  json: {
934
934
  token: string;
@@ -1001,14 +1001,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
1001
1001
  $post: {
1002
1002
  output: {
1003
1003
  error: {
1004
- code: "upstream_error";
1004
+ code: "api_key_malformed";
1005
1005
  details?: readonly Response.error.Detail[] | undefined;
1006
1006
  message: string;
1007
1007
  };
1008
1008
  requestId: string;
1009
1009
  };
1010
1010
  outputFormat: "json";
1011
- status: 502;
1011
+ status: 400;
1012
1012
  input: {
1013
1013
  json: {
1014
1014
  token: string;
@@ -1017,14 +1017,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
1017
1017
  } | {
1018
1018
  output: {
1019
1019
  error: {
1020
- code: "api_key_malformed";
1020
+ code: "api_key_invalid" | "api_key_missing";
1021
1021
  details?: readonly Response.error.Detail[] | undefined;
1022
1022
  message: string;
1023
1023
  };
1024
1024
  requestId: string;
1025
1025
  };
1026
1026
  outputFormat: "json";
1027
- status: 400;
1027
+ status: 401;
1028
1028
  input: {
1029
1029
  json: {
1030
1030
  token: string;
@@ -1033,14 +1033,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
1033
1033
  } | {
1034
1034
  output: {
1035
1035
  error: {
1036
- code: "api_key_invalid" | "api_key_missing";
1036
+ code: "upstream_error";
1037
1037
  details?: readonly Response.error.Detail[] | undefined;
1038
1038
  message: string;
1039
1039
  };
1040
1040
  requestId: string;
1041
1041
  };
1042
1042
  outputFormat: "json";
1043
- status: 401;
1043
+ status: 502;
1044
1044
  input: {
1045
1045
  json: {
1046
1046
  token: string;