tapimo 0.5.0 → 0.5.1

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 +4879 -4870
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +20 -2
  4. package/dist/App.js.map +1 -1
  5. package/dist/Assets.js +3 -3
  6. package/dist/Assets.js.map +1 -1
  7. package/dist/Scope.d.ts.map +1 -1
  8. package/dist/Scope.js +1 -2
  9. package/dist/Scope.js.map +1 -1
  10. package/dist/Webhooks.d.ts +1 -1
  11. package/dist/Webhooks.d.ts.map +1 -1
  12. package/dist/Webhooks.js +5 -10
  13. package/dist/Webhooks.js.map +1 -1
  14. package/dist/admin/App.d.ts +6 -34
  15. package/dist/admin/App.d.ts.map +1 -1
  16. package/dist/admin/apps/api-keys.d.ts +3 -3
  17. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  18. package/dist/admin/apps/api-keys.js +4 -1
  19. package/dist/admin/apps/api-keys.js.map +1 -1
  20. package/dist/admin/apps/scopes.d.ts +6 -34
  21. package/dist/admin/apps/scopes.d.ts.map +1 -1
  22. package/dist/admin/apps/scopes.js +2 -2
  23. package/dist/admin/apps/scopes.js.map +1 -1
  24. package/dist/admin/apps/verified-tokens.d.ts +116 -116
  25. package/dist/admin/ui.generated.d.ts +1 -1
  26. package/dist/admin/ui.generated.js +33 -33
  27. package/dist/admin/ui.generated.js.map +1 -1
  28. package/dist/apps/data/App.d.ts +3199 -3206
  29. package/dist/apps/data/App.d.ts.map +1 -1
  30. package/dist/apps/data/App.js +25 -38
  31. package/dist/apps/data/App.js.map +1 -1
  32. package/dist/apps/data/FundingQuoteProviders.d.ts +76 -3
  33. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
  34. package/dist/apps/data/FundingQuoteProviders.js +276 -2
  35. package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
  36. package/dist/apps/data/routes/activities.d.ts +245 -245
  37. package/dist/apps/data/routes/addresses.d.ts +206 -206
  38. package/dist/apps/data/routes/balances.d.ts +46 -46
  39. package/dist/apps/data/routes/blocks.d.ts +123 -123
  40. package/dist/apps/data/routes/coingecko.d.ts +169 -169
  41. package/dist/apps/data/routes/funding.d.ts +230 -146
  42. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  43. package/dist/apps/data/routes/funding.js +23 -12
  44. package/dist/apps/data/routes/funding.js.map +1 -1
  45. package/dist/apps/data/routes/indexer.d.ts +34 -34
  46. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  47. package/dist/apps/data/routes/indexer.js +9 -2
  48. package/dist/apps/data/routes/indexer.js.map +1 -1
  49. package/dist/apps/data/routes/receipts.d.ts +228 -228
  50. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  51. package/dist/apps/data/routes/transactions.d.ts +281 -281
  52. package/dist/apps/data/routes/transfers.d.ts +58 -58
  53. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  54. package/dist/apps/management/App.d.ts +1042 -1042
  55. package/dist/apps/management/routes/api-keys.d.ts +120 -120
  56. package/dist/apps/management/routes/billing.d.ts +211 -211
  57. package/dist/apps/management/routes/invitations.d.ts +132 -132
  58. package/dist/apps/management/routes/invite-links.d.ts +62 -62
  59. package/dist/apps/management/routes/me.d.ts +17 -17
  60. package/dist/apps/management/routes/members.d.ts +80 -80
  61. package/dist/apps/management/routes/orgs.d.ts +96 -96
  62. package/dist/apps/management/routes/projects.d.ts +61 -61
  63. package/dist/apps/management/routes/scopes.d.ts +11 -11
  64. package/dist/apps/management/routes/usage.d.ts +79 -79
  65. package/dist/apps/mcp.js +2 -2
  66. package/dist/apps/mcp.js.map +1 -1
  67. package/dist/apps/relay/App.d.ts +2 -2
  68. package/dist/apps/relay/App.js +2 -2
  69. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  70. package/dist/db/tables/sponsoredTransactions.js +6 -2
  71. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  72. package/dist/internal/Auth.d.ts.map +1 -1
  73. package/dist/internal/Auth.js +8 -0
  74. package/dist/internal/Auth.js.map +1 -1
  75. package/dist/internal/FundingQuotes.d.ts +170 -56
  76. package/dist/internal/FundingQuotes.d.ts.map +1 -1
  77. package/dist/internal/FundingQuotes.js +91 -5
  78. package/dist/internal/FundingQuotes.js.map +1 -1
  79. package/dist/internal/Log.d.ts +18 -12
  80. package/dist/internal/Log.d.ts.map +1 -1
  81. package/dist/internal/Log.js +2 -0
  82. package/dist/internal/Log.js.map +1 -1
  83. package/dist/internal/Tidx.d.ts +9 -3
  84. package/dist/internal/Tidx.d.ts.map +1 -1
  85. package/dist/internal/Tidx.js +13 -7
  86. package/dist/internal/Tidx.js.map +1 -1
  87. package/dist/internal/Viem.d.ts +14 -1
  88. package/dist/internal/Viem.d.ts.map +1 -1
  89. package/dist/internal/Viem.js +19 -1
  90. package/dist/internal/Viem.js.map +1 -1
  91. package/package.json +2 -2
  92. package/src/ApiKeys.test.ts +2 -0
  93. package/src/App.test.ts +13 -2
  94. package/src/App.ts +31 -5
  95. package/src/Assets.ts +3 -3
  96. package/src/Client.test-d.ts +3 -2
  97. package/src/Scope.ts +4 -2
  98. package/src/Webhooks.ts +5 -10
  99. package/src/admin/apps/api-keys.test.ts +27 -0
  100. package/src/admin/apps/api-keys.ts +8 -1
  101. package/src/admin/apps/scopes.test.ts +7 -2
  102. package/src/admin/apps/scopes.ts +2 -2
  103. package/src/admin/ui/src/components/Dialog.tsx +8 -2
  104. package/src/admin/ui/src/lib/scopes.test.ts +19 -0
  105. package/src/admin/ui/src/lib/scopes.ts +12 -0
  106. package/src/admin/ui/src/routes/api-keys.tsx +128 -27
  107. package/src/admin/ui.generated.ts +33 -33
  108. package/src/apps/composition.test.ts +77 -0
  109. package/src/apps/data/App.ts +25 -45
  110. package/src/apps/data/FundingQuoteProviders.test.ts +431 -5
  111. package/src/apps/data/FundingQuoteProviders.ts +386 -4
  112. package/src/apps/data/routes/funding.test.ts +174 -7
  113. package/src/apps/data/routes/funding.ts +27 -12
  114. package/src/apps/data/routes/indexer.test.ts +82 -20
  115. package/src/apps/data/routes/indexer.ts +8 -2
  116. package/src/apps/management/Billing.test.ts +2 -2
  117. package/src/apps/mcp.test.ts +18 -0
  118. package/src/apps/mcp.ts +2 -2
  119. package/src/apps/relay/App.test.ts +6 -5
  120. package/src/apps/relay/App.ts +2 -2
  121. package/src/apps/relay/Sponsorships.test.ts +2 -2
  122. package/src/db/Db.test.ts +5 -5
  123. package/src/db/tables/billingSettings.test.ts +2 -2
  124. package/src/db/tables/organizations.test.ts +2 -2
  125. package/src/db/tables/sponsoredTransactions.test.ts +19 -2
  126. package/src/db/tables/sponsoredTransactions.ts +21 -14
  127. package/src/db/tables/stripeCustomers.test.ts +2 -2
  128. package/src/internal/Auth.ts +10 -0
  129. package/src/internal/FundingQuotes.test.ts +97 -3
  130. package/src/internal/FundingQuotes.ts +104 -6
  131. package/src/internal/Log.ts +21 -14
  132. package/src/internal/Tidx.test.ts +48 -0
  133. package/src/internal/Tidx.ts +21 -7
  134. package/src/internal/Viem.test.ts +46 -0
  135. package/src/internal/Viem.ts +34 -1
@@ -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";
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";
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";
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";
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;
@@ -444,23 +444,6 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
444
444
  projectId: string;
445
445
  };
446
446
  };
447
- } | {
448
- output: {
449
- error: {
450
- code: "organization_not_found" | "project_not_found";
451
- details?: readonly Response.error.Detail[] | undefined;
452
- message: string;
453
- };
454
- requestId: string;
455
- };
456
- outputFormat: "json";
457
- status: 404;
458
- input: {
459
- param: {
460
- orgId: string;
461
- projectId: string;
462
- };
463
- };
464
447
  } | {
465
448
  output: {
466
449
  error: {
@@ -495,32 +478,28 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
495
478
  projectId: string;
496
479
  };
497
480
  };
498
- };
499
- };
500
- } & {
501
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
502
- $patch: {
481
+ } | {
503
482
  output: {
504
483
  error: {
505
- code: "upstream_error";
484
+ code: "organization_not_found" | "project_not_found";
506
485
  details?: readonly Response.error.Detail[] | undefined;
507
486
  message: string;
508
487
  };
509
488
  requestId: string;
510
489
  };
511
490
  outputFormat: "json";
512
- status: 502;
491
+ status: 404;
513
492
  input: {
514
493
  param: {
515
494
  orgId: string;
516
495
  projectId: string;
517
496
  };
518
- } & {
519
- json: {
520
- name: string;
521
- };
522
497
  };
523
- } | {
498
+ };
499
+ };
500
+ } & {
501
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
502
+ $patch: {
524
503
  output: {
525
504
  error: {
526
505
  code: "api_key_malformed";
@@ -607,14 +586,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
607
586
  } | {
608
587
  output: {
609
588
  error: {
610
- code: "organization_not_found" | "project_not_found";
589
+ code: "upstream_error";
611
590
  details?: readonly Response.error.Detail[] | undefined;
612
591
  message: string;
613
592
  };
614
593
  requestId: string;
615
594
  };
616
595
  outputFormat: "json";
617
- status: 404;
596
+ status: 502;
618
597
  input: {
619
598
  param: {
620
599
  orgId: string;
@@ -688,28 +667,32 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
688
667
  name: string;
689
668
  };
690
669
  };
691
- };
692
- };
693
- } & {
694
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
695
- $delete: {
670
+ } | {
696
671
  output: {
697
672
  error: {
698
- code: "upstream_error";
673
+ code: "organization_not_found" | "project_not_found";
699
674
  details?: readonly Response.error.Detail[] | undefined;
700
675
  message: string;
701
676
  };
702
677
  requestId: string;
703
678
  };
704
679
  outputFormat: "json";
705
- status: 502;
680
+ status: 404;
706
681
  input: {
707
682
  param: {
708
683
  orgId: string;
709
684
  projectId: string;
710
685
  };
686
+ } & {
687
+ json: {
688
+ name: string;
689
+ };
711
690
  };
712
- } | {
691
+ };
692
+ };
693
+ } & {
694
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
695
+ $delete: {
713
696
  output: {
714
697
  error: {
715
698
  code: "api_key_malformed";
@@ -780,14 +763,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
780
763
  } | {
781
764
  output: {
782
765
  error: {
783
- code: "organization_not_found" | "project_not_found";
766
+ code: "upstream_error";
784
767
  details?: readonly Response.error.Detail[] | undefined;
785
768
  message: string;
786
769
  };
787
770
  requestId: string;
788
771
  };
789
772
  outputFormat: "json";
790
- status: 404;
773
+ status: 502;
791
774
  input: {
792
775
  param: {
793
776
  orgId: string;
@@ -811,6 +794,23 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
811
794
  projectId: string;
812
795
  };
813
796
  };
797
+ } | {
798
+ output: {
799
+ error: {
800
+ code: "organization_not_found" | "project_not_found";
801
+ details?: readonly Response.error.Detail[] | undefined;
802
+ message: string;
803
+ };
804
+ requestId: string;
805
+ };
806
+ outputFormat: "json";
807
+ status: 404;
808
+ input: {
809
+ param: {
810
+ orgId: string;
811
+ projectId: string;
812
+ };
813
+ };
814
814
  } | {
815
815
  output: {
816
816
  id: string;
@@ -29,17 +29,6 @@ export declare namespace schema {
29
29
  export declare function scopes(): import("hono/hono-base").HonoBase<App.Environment, {
30
30
  "/v1/scopes": {
31
31
  $get: {
32
- output: {
33
- data: {
34
- description: string;
35
- scope: string;
36
- selfServe: boolean;
37
- }[];
38
- };
39
- outputFormat: "json";
40
- status: 200;
41
- input: {};
42
- } | {
43
32
  output: {
44
33
  error: {
45
34
  code: "api_key_malformed";
@@ -87,6 +76,17 @@ export declare function scopes(): import("hono/hono-base").HonoBase<App.Environm
87
76
  outputFormat: "json";
88
77
  status: 429;
89
78
  input: {};
79
+ } | {
80
+ output: {
81
+ data: {
82
+ description: string;
83
+ scope: string;
84
+ selfServe: boolean;
85
+ }[];
86
+ };
87
+ outputFormat: "json";
88
+ status: 200;
89
+ input: {};
90
90
  };
91
91
  };
92
92
  }, "/", "/v1/scopes">;