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
@@ -16,207 +16,6 @@ import * as Valuation from './valuation.js';
16
16
  export declare function addresses(options?: addresses.Options): import("hono/hono-base").HonoBase<App.Environment, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
17
17
  "/v1/addresses/:address/activities": {
18
18
  $get: {
19
- output: null;
20
- outputFormat: "body";
21
- status: 402;
22
- input: {
23
- param: {
24
- address: `0x${string}`;
25
- };
26
- } & {
27
- query?: {
28
- chainId?: string | string[];
29
- cursor?: string | string[];
30
- group?: string | string[];
31
- include?: string | string[];
32
- limit?: string | string[];
33
- logs?: string | string[];
34
- 'valuation.currency'?: string | string[];
35
- } | undefined;
36
- };
37
- } | {
38
- output: {
39
- error: {
40
- code: "api_key_malformed";
41
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
42
- message: string;
43
- };
44
- requestId: string;
45
- };
46
- outputFormat: "json";
47
- status: 400;
48
- input: {
49
- param: {
50
- address: `0x${string}`;
51
- };
52
- } & {
53
- query?: {
54
- chainId?: string | string[];
55
- cursor?: string | string[];
56
- group?: string | string[];
57
- include?: string | string[];
58
- limit?: string | string[];
59
- logs?: string | string[];
60
- 'valuation.currency'?: string | string[];
61
- } | undefined;
62
- };
63
- } | {
64
- output: {
65
- error: {
66
- code: "api_key_invalid" | "api_key_missing";
67
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
68
- message: string;
69
- };
70
- requestId: string;
71
- };
72
- outputFormat: "json";
73
- status: 401;
74
- input: {
75
- param: {
76
- address: `0x${string}`;
77
- };
78
- } & {
79
- query?: {
80
- chainId?: string | string[];
81
- cursor?: string | string[];
82
- group?: string | string[];
83
- include?: string | string[];
84
- limit?: string | string[];
85
- logs?: string | string[];
86
- 'valuation.currency'?: string | string[];
87
- } | undefined;
88
- };
89
- } | {
90
- output: {
91
- error: {
92
- code: "api_key_forbidden" | "api_key_ip_forbidden";
93
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
94
- message: string;
95
- };
96
- requestId: string;
97
- };
98
- outputFormat: "json";
99
- status: 403;
100
- input: {
101
- param: {
102
- address: `0x${string}`;
103
- };
104
- } & {
105
- query?: {
106
- chainId?: string | string[];
107
- cursor?: string | string[];
108
- group?: string | string[];
109
- include?: string | string[];
110
- limit?: string | string[];
111
- logs?: string | string[];
112
- 'valuation.currency'?: string | string[];
113
- } | undefined;
114
- };
115
- } | {
116
- output: {
117
- error: {
118
- code: "payment_required" | "rate_limit_exceeded";
119
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
120
- message: string;
121
- };
122
- requestId: string;
123
- };
124
- outputFormat: "json";
125
- status: 429;
126
- input: {
127
- param: {
128
- address: `0x${string}`;
129
- };
130
- } & {
131
- query?: {
132
- chainId?: string | string[];
133
- cursor?: string | string[];
134
- group?: string | string[];
135
- include?: string | string[];
136
- limit?: string | string[];
137
- logs?: string | string[];
138
- 'valuation.currency'?: string | string[];
139
- } | undefined;
140
- };
141
- } | {
142
- output: {
143
- error: {
144
- code: "query_invalid";
145
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
146
- message: string;
147
- };
148
- requestId: string;
149
- };
150
- outputFormat: "json";
151
- status: 400;
152
- input: {
153
- param: {
154
- address: `0x${string}`;
155
- };
156
- } & {
157
- query?: {
158
- chainId?: string | string[];
159
- cursor?: string | string[];
160
- group?: string | string[];
161
- include?: string | string[];
162
- limit?: string | string[];
163
- logs?: string | string[];
164
- 'valuation.currency'?: string | string[];
165
- } | undefined;
166
- };
167
- } | {
168
- output: {
169
- error: {
170
- code: "upstream_error";
171
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
172
- message: string;
173
- };
174
- requestId: string;
175
- };
176
- outputFormat: "json";
177
- status: 502;
178
- input: {
179
- param: {
180
- address: `0x${string}`;
181
- };
182
- } & {
183
- query?: {
184
- chainId?: string | string[];
185
- cursor?: string | string[];
186
- group?: string | string[];
187
- include?: string | string[];
188
- limit?: string | string[];
189
- logs?: string | string[];
190
- 'valuation.currency'?: string | string[];
191
- } | undefined;
192
- };
193
- } | {
194
- output: {
195
- error: {
196
- code: "address_invalid";
197
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
198
- message: string;
199
- };
200
- requestId: string;
201
- };
202
- outputFormat: "json";
203
- status: 400;
204
- input: {
205
- param: {
206
- address: `0x${string}`;
207
- };
208
- } & {
209
- query?: {
210
- chainId?: string | string[];
211
- cursor?: string | string[];
212
- group?: string | string[];
213
- include?: string | string[];
214
- limit?: string | string[];
215
- logs?: string | string[];
216
- 'valuation.currency'?: string | string[];
217
- } | undefined;
218
- };
219
- } | {
220
19
  output: {
221
20
  data: ({
222
21
  perspective: "incoming" | "outgoing";
@@ -4319,24 +4118,6 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4319
4118
  'valuation.currency'?: string | string[];
4320
4119
  } | undefined;
4321
4120
  };
4322
- };
4323
- };
4324
- }, "/"> | import("hono/types").MergeSchemaPath<{
4325
- "/v1/addresses/:address/valuation": {
4326
- $get: {
4327
- output: null;
4328
- outputFormat: "body";
4329
- status: 402;
4330
- input: {
4331
- param: {
4332
- address: `0x${string}`;
4333
- };
4334
- } & {
4335
- query?: {
4336
- chainId?: string | string[];
4337
- currency?: string | string[];
4338
- } | undefined;
4339
- };
4340
4121
  } | {
4341
4122
  output: {
4342
4123
  error: {
@@ -4355,20 +4136,25 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4355
4136
  } & {
4356
4137
  query?: {
4357
4138
  chainId?: string | string[];
4358
- currency?: string | string[];
4139
+ cursor?: string | string[];
4140
+ group?: string | string[];
4141
+ include?: string | string[];
4142
+ limit?: string | string[];
4143
+ logs?: string | string[];
4144
+ 'valuation.currency'?: string | string[];
4359
4145
  } | undefined;
4360
4146
  };
4361
4147
  } | {
4362
4148
  output: {
4363
4149
  error: {
4364
- code: "api_key_invalid" | "api_key_missing";
4150
+ code: "query_invalid";
4365
4151
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4366
4152
  message: string;
4367
4153
  };
4368
4154
  requestId: string;
4369
4155
  };
4370
4156
  outputFormat: "json";
4371
- status: 401;
4157
+ status: 400;
4372
4158
  input: {
4373
4159
  param: {
4374
4160
  address: `0x${string}`;
@@ -4376,20 +4162,25 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4376
4162
  } & {
4377
4163
  query?: {
4378
4164
  chainId?: string | string[];
4379
- currency?: string | string[];
4165
+ cursor?: string | string[];
4166
+ group?: string | string[];
4167
+ include?: string | string[];
4168
+ limit?: string | string[];
4169
+ logs?: string | string[];
4170
+ 'valuation.currency'?: string | string[];
4380
4171
  } | undefined;
4381
4172
  };
4382
4173
  } | {
4383
4174
  output: {
4384
4175
  error: {
4385
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4176
+ code: "address_invalid";
4386
4177
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4387
4178
  message: string;
4388
4179
  };
4389
4180
  requestId: string;
4390
4181
  };
4391
4182
  outputFormat: "json";
4392
- status: 403;
4183
+ status: 400;
4393
4184
  input: {
4394
4185
  param: {
4395
4186
  address: `0x${string}`;
@@ -4397,20 +4188,25 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4397
4188
  } & {
4398
4189
  query?: {
4399
4190
  chainId?: string | string[];
4400
- currency?: string | string[];
4191
+ cursor?: string | string[];
4192
+ group?: string | string[];
4193
+ include?: string | string[];
4194
+ limit?: string | string[];
4195
+ logs?: string | string[];
4196
+ 'valuation.currency'?: string | string[];
4401
4197
  } | undefined;
4402
4198
  };
4403
4199
  } | {
4404
4200
  output: {
4405
4201
  error: {
4406
- code: "payment_required" | "rate_limit_exceeded";
4202
+ code: "api_key_invalid" | "api_key_missing";
4407
4203
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4408
4204
  message: string;
4409
4205
  };
4410
4206
  requestId: string;
4411
4207
  };
4412
4208
  outputFormat: "json";
4413
- status: 429;
4209
+ status: 401;
4414
4210
  input: {
4415
4211
  param: {
4416
4212
  address: `0x${string}`;
@@ -4418,20 +4214,44 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4418
4214
  } & {
4419
4215
  query?: {
4420
4216
  chainId?: string | string[];
4421
- currency?: string | string[];
4422
- } | undefined;
4423
- };
4424
- } | {
4217
+ cursor?: string | string[];
4218
+ group?: string | string[];
4219
+ include?: string | string[];
4220
+ limit?: string | string[];
4221
+ logs?: string | string[];
4222
+ 'valuation.currency'?: string | string[];
4223
+ } | undefined;
4224
+ };
4225
+ } | {
4226
+ output: null;
4227
+ outputFormat: "body";
4228
+ status: 402;
4229
+ input: {
4230
+ param: {
4231
+ address: `0x${string}`;
4232
+ };
4233
+ } & {
4234
+ query?: {
4235
+ chainId?: string | string[];
4236
+ cursor?: string | string[];
4237
+ group?: string | string[];
4238
+ include?: string | string[];
4239
+ limit?: string | string[];
4240
+ logs?: string | string[];
4241
+ 'valuation.currency'?: string | string[];
4242
+ } | undefined;
4243
+ };
4244
+ } | {
4425
4245
  output: {
4426
4246
  error: {
4427
- code: "query_invalid";
4247
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4428
4248
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4429
4249
  message: string;
4430
4250
  };
4431
4251
  requestId: string;
4432
4252
  };
4433
4253
  outputFormat: "json";
4434
- status: 400;
4254
+ status: 403;
4435
4255
  input: {
4436
4256
  param: {
4437
4257
  address: `0x${string}`;
@@ -4439,20 +4259,25 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4439
4259
  } & {
4440
4260
  query?: {
4441
4261
  chainId?: string | string[];
4442
- currency?: string | string[];
4262
+ cursor?: string | string[];
4263
+ group?: string | string[];
4264
+ include?: string | string[];
4265
+ limit?: string | string[];
4266
+ logs?: string | string[];
4267
+ 'valuation.currency'?: string | string[];
4443
4268
  } | undefined;
4444
4269
  };
4445
4270
  } | {
4446
4271
  output: {
4447
4272
  error: {
4448
- code: "upstream_error";
4273
+ code: "payment_required" | "rate_limit_exceeded";
4449
4274
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4450
4275
  message: string;
4451
4276
  };
4452
4277
  requestId: string;
4453
4278
  };
4454
4279
  outputFormat: "json";
4455
- status: 502;
4280
+ status: 429;
4456
4281
  input: {
4457
4282
  param: {
4458
4283
  address: `0x${string}`;
@@ -4460,20 +4285,25 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4460
4285
  } & {
4461
4286
  query?: {
4462
4287
  chainId?: string | string[];
4463
- currency?: string | string[];
4288
+ cursor?: string | string[];
4289
+ group?: string | string[];
4290
+ include?: string | string[];
4291
+ limit?: string | string[];
4292
+ logs?: string | string[];
4293
+ 'valuation.currency'?: string | string[];
4464
4294
  } | undefined;
4465
4295
  };
4466
4296
  } | {
4467
4297
  output: {
4468
4298
  error: {
4469
- code: "address_invalid";
4299
+ code: "upstream_error";
4470
4300
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4471
4301
  message: string;
4472
4302
  };
4473
4303
  requestId: string;
4474
4304
  };
4475
4305
  outputFormat: "json";
4476
- status: 400;
4306
+ status: 502;
4477
4307
  input: {
4478
4308
  param: {
4479
4309
  address: `0x${string}`;
@@ -4481,10 +4311,19 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4481
4311
  } & {
4482
4312
  query?: {
4483
4313
  chainId?: string | string[];
4484
- currency?: string | string[];
4314
+ cursor?: string | string[];
4315
+ group?: string | string[];
4316
+ include?: string | string[];
4317
+ limit?: string | string[];
4318
+ logs?: string | string[];
4319
+ 'valuation.currency'?: string | string[];
4485
4320
  } | undefined;
4486
4321
  };
4487
- } | {
4322
+ };
4323
+ };
4324
+ }, "/"> | import("hono/types").MergeSchemaPath<{
4325
+ "/v1/addresses/:address/valuation": {
4326
+ $get: {
4488
4327
  output: {
4489
4328
  address: `0x${string}`;
4490
4329
  amount: string;
@@ -4509,14 +4348,208 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4509
4348
  currency?: string | string[];
4510
4349
  } | undefined;
4511
4350
  };
4351
+ } | {
4352
+ output: {
4353
+ error: {
4354
+ code: "api_key_malformed";
4355
+ details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4356
+ message: string;
4357
+ };
4358
+ requestId: string;
4359
+ };
4360
+ outputFormat: "json";
4361
+ status: 400;
4362
+ input: {
4363
+ param: {
4364
+ address: `0x${string}`;
4365
+ };
4366
+ } & {
4367
+ query?: {
4368
+ chainId?: string | string[];
4369
+ currency?: string | string[];
4370
+ } | undefined;
4371
+ };
4372
+ } | {
4373
+ output: {
4374
+ error: {
4375
+ code: "query_invalid";
4376
+ details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4377
+ message: string;
4378
+ };
4379
+ requestId: string;
4380
+ };
4381
+ outputFormat: "json";
4382
+ status: 400;
4383
+ input: {
4384
+ param: {
4385
+ address: `0x${string}`;
4386
+ };
4387
+ } & {
4388
+ query?: {
4389
+ chainId?: string | string[];
4390
+ currency?: string | string[];
4391
+ } | undefined;
4392
+ };
4393
+ } | {
4394
+ output: {
4395
+ error: {
4396
+ code: "address_invalid";
4397
+ details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4398
+ message: string;
4399
+ };
4400
+ requestId: string;
4401
+ };
4402
+ outputFormat: "json";
4403
+ status: 400;
4404
+ input: {
4405
+ param: {
4406
+ address: `0x${string}`;
4407
+ };
4408
+ } & {
4409
+ query?: {
4410
+ chainId?: string | string[];
4411
+ currency?: string | string[];
4412
+ } | undefined;
4413
+ };
4414
+ } | {
4415
+ output: {
4416
+ error: {
4417
+ code: "api_key_invalid" | "api_key_missing";
4418
+ details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4419
+ message: string;
4420
+ };
4421
+ requestId: string;
4422
+ };
4423
+ outputFormat: "json";
4424
+ status: 401;
4425
+ input: {
4426
+ param: {
4427
+ address: `0x${string}`;
4428
+ };
4429
+ } & {
4430
+ query?: {
4431
+ chainId?: string | string[];
4432
+ currency?: string | string[];
4433
+ } | undefined;
4434
+ };
4435
+ } | {
4436
+ output: null;
4437
+ outputFormat: "body";
4438
+ status: 402;
4439
+ input: {
4440
+ param: {
4441
+ address: `0x${string}`;
4442
+ };
4443
+ } & {
4444
+ query?: {
4445
+ chainId?: string | string[];
4446
+ currency?: string | string[];
4447
+ } | undefined;
4448
+ };
4449
+ } | {
4450
+ output: {
4451
+ error: {
4452
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4453
+ details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4454
+ message: string;
4455
+ };
4456
+ requestId: string;
4457
+ };
4458
+ outputFormat: "json";
4459
+ status: 403;
4460
+ input: {
4461
+ param: {
4462
+ address: `0x${string}`;
4463
+ };
4464
+ } & {
4465
+ query?: {
4466
+ chainId?: string | string[];
4467
+ currency?: string | string[];
4468
+ } | undefined;
4469
+ };
4470
+ } | {
4471
+ output: {
4472
+ error: {
4473
+ code: "payment_required" | "rate_limit_exceeded";
4474
+ details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4475
+ message: string;
4476
+ };
4477
+ requestId: string;
4478
+ };
4479
+ outputFormat: "json";
4480
+ status: 429;
4481
+ input: {
4482
+ param: {
4483
+ address: `0x${string}`;
4484
+ };
4485
+ } & {
4486
+ query?: {
4487
+ chainId?: string | string[];
4488
+ currency?: string | string[];
4489
+ } | undefined;
4490
+ };
4491
+ } | {
4492
+ output: {
4493
+ error: {
4494
+ code: "upstream_error";
4495
+ details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4496
+ message: string;
4497
+ };
4498
+ requestId: string;
4499
+ };
4500
+ outputFormat: "json";
4501
+ status: 502;
4502
+ input: {
4503
+ param: {
4504
+ address: `0x${string}`;
4505
+ };
4506
+ } & {
4507
+ query?: {
4508
+ chainId?: string | string[];
4509
+ currency?: string | string[];
4510
+ } | undefined;
4511
+ };
4512
4512
  };
4513
4513
  };
4514
4514
  }, "/"> | import("hono/types").MergeSchemaPath<{
4515
4515
  "/v1/addresses/:address/balances": {
4516
4516
  $get: {
4517
- output: null;
4518
- outputFormat: "body";
4519
- status: 402;
4517
+ output: {
4518
+ data: {
4519
+ amount: string;
4520
+ currency: string;
4521
+ decimals: number;
4522
+ feeEligible?: boolean | undefined;
4523
+ formatted: string;
4524
+ id: string;
4525
+ token: {
4526
+ address: `0x${string}`;
4527
+ currency: string;
4528
+ decimals: number;
4529
+ id: string;
4530
+ logoUri?: string | undefined;
4531
+ name: string;
4532
+ symbol: string;
4533
+ verified: boolean;
4534
+ };
4535
+ valuation?: {
4536
+ amount: string;
4537
+ currency: string;
4538
+ } | null | undefined;
4539
+ }[];
4540
+ meta?: {
4541
+ valuation?: {
4542
+ asOf: string;
4543
+ basis: "nominal";
4544
+ source: string;
4545
+ } | undefined;
4546
+ totalCount?: number | undefined;
4547
+ totalCountCapped?: boolean | undefined;
4548
+ } | undefined;
4549
+ nextCursor: string | null;
4550
+ };
4551
+ outputFormat: "json";
4552
+ status: 200;
4520
4553
  input: {
4521
4554
  param: {
4522
4555
  address: `0x${string}`;
@@ -4565,14 +4598,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4565
4598
  } | {
4566
4599
  output: {
4567
4600
  error: {
4568
- code: "api_key_invalid" | "api_key_missing";
4601
+ code: "query_invalid";
4569
4602
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4570
4603
  message: string;
4571
4604
  };
4572
4605
  requestId: string;
4573
4606
  };
4574
4607
  outputFormat: "json";
4575
- status: 401;
4608
+ status: 400;
4576
4609
  input: {
4577
4610
  param: {
4578
4611
  address: `0x${string}`;
@@ -4593,14 +4626,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4593
4626
  } | {
4594
4627
  output: {
4595
4628
  error: {
4596
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4629
+ code: "address_invalid";
4597
4630
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4598
4631
  message: string;
4599
4632
  };
4600
4633
  requestId: string;
4601
4634
  };
4602
4635
  outputFormat: "json";
4603
- status: 403;
4636
+ status: 400;
4604
4637
  input: {
4605
4638
  param: {
4606
4639
  address: `0x${string}`;
@@ -4621,14 +4654,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4621
4654
  } | {
4622
4655
  output: {
4623
4656
  error: {
4624
- code: "payment_required" | "rate_limit_exceeded";
4657
+ code: "api_key_invalid" | "api_key_missing";
4625
4658
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4626
4659
  message: string;
4627
4660
  };
4628
4661
  requestId: string;
4629
4662
  };
4630
4663
  outputFormat: "json";
4631
- status: 429;
4664
+ status: 401;
4632
4665
  input: {
4633
4666
  param: {
4634
4667
  address: `0x${string}`;
@@ -4647,16 +4680,9 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4647
4680
  } | undefined;
4648
4681
  };
4649
4682
  } | {
4650
- output: {
4651
- error: {
4652
- code: "query_invalid";
4653
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4654
- message: string;
4655
- };
4656
- requestId: string;
4657
- };
4658
- outputFormat: "json";
4659
- status: 400;
4683
+ output: null;
4684
+ outputFormat: "body";
4685
+ status: 402;
4660
4686
  input: {
4661
4687
  param: {
4662
4688
  address: `0x${string}`;
@@ -4677,14 +4703,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4677
4703
  } | {
4678
4704
  output: {
4679
4705
  error: {
4680
- code: "upstream_error";
4706
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4681
4707
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4682
4708
  message: string;
4683
4709
  };
4684
4710
  requestId: string;
4685
4711
  };
4686
4712
  outputFormat: "json";
4687
- status: 502;
4713
+ status: 403;
4688
4714
  input: {
4689
4715
  param: {
4690
4716
  address: `0x${string}`;
@@ -4705,14 +4731,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4705
4731
  } | {
4706
4732
  output: {
4707
4733
  error: {
4708
- code: "address_invalid";
4734
+ code: "payment_required" | "rate_limit_exceeded";
4709
4735
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4710
4736
  message: string;
4711
4737
  };
4712
4738
  requestId: string;
4713
4739
  };
4714
4740
  outputFormat: "json";
4715
- status: 400;
4741
+ status: 429;
4716
4742
  input: {
4717
4743
  param: {
4718
4744
  address: `0x${string}`;
@@ -4732,41 +4758,15 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4732
4758
  };
4733
4759
  } | {
4734
4760
  output: {
4735
- data: {
4736
- amount: string;
4737
- currency: string;
4738
- decimals: number;
4739
- feeEligible?: boolean | undefined;
4740
- formatted: string;
4741
- id: string;
4742
- token: {
4743
- address: `0x${string}`;
4744
- currency: string;
4745
- decimals: number;
4746
- id: string;
4747
- logoUri?: string | undefined;
4748
- name: string;
4749
- symbol: string;
4750
- verified: boolean;
4751
- };
4752
- valuation?: {
4753
- amount: string;
4754
- currency: string;
4755
- } | null | undefined;
4756
- }[];
4757
- meta?: {
4758
- valuation?: {
4759
- asOf: string;
4760
- basis: "nominal";
4761
- source: string;
4762
- } | undefined;
4763
- totalCount?: number | undefined;
4764
- totalCountCapped?: boolean | undefined;
4765
- } | undefined;
4766
- nextCursor: string | null;
4761
+ error: {
4762
+ code: "upstream_error";
4763
+ details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4764
+ message: string;
4765
+ };
4766
+ requestId: string;
4767
4767
  };
4768
4768
  outputFormat: "json";
4769
- status: 200;
4769
+ status: 502;
4770
4770
  input: {
4771
4771
  param: {
4772
4772
  address: `0x${string}`;
@@ -4789,9 +4789,30 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4789
4789
  } & {
4790
4790
  "/v1/addresses/:address/balances/:token": {
4791
4791
  $get: {
4792
- output: null;
4793
- outputFormat: "body";
4794
- status: 402;
4792
+ output: {
4793
+ amount: string;
4794
+ currency: string;
4795
+ decimals: number;
4796
+ feeEligible?: boolean | undefined;
4797
+ formatted: string;
4798
+ id: string;
4799
+ token: {
4800
+ address: `0x${string}`;
4801
+ currency: string;
4802
+ decimals: number;
4803
+ id: string;
4804
+ logoUri?: string | undefined;
4805
+ name: string;
4806
+ symbol: string;
4807
+ verified: boolean;
4808
+ };
4809
+ valuation?: {
4810
+ amount: string;
4811
+ currency: string;
4812
+ } | null | undefined;
4813
+ };
4814
+ outputFormat: "json";
4815
+ status: 200;
4795
4816
  input: {
4796
4817
  param: {
4797
4818
  address: `0x${string}`;
@@ -4828,14 +4849,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4828
4849
  } | {
4829
4850
  output: {
4830
4851
  error: {
4831
- code: "api_key_invalid" | "api_key_missing";
4852
+ code: "query_invalid";
4832
4853
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4833
4854
  message: string;
4834
4855
  };
4835
4856
  requestId: string;
4836
4857
  };
4837
4858
  outputFormat: "json";
4838
- status: 401;
4859
+ status: 400;
4839
4860
  input: {
4840
4861
  param: {
4841
4862
  address: `0x${string}`;
@@ -4850,14 +4871,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4850
4871
  } | {
4851
4872
  output: {
4852
4873
  error: {
4853
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4874
+ code: "address_invalid";
4854
4875
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4855
4876
  message: string;
4856
4877
  };
4857
4878
  requestId: string;
4858
4879
  };
4859
4880
  outputFormat: "json";
4860
- status: 403;
4881
+ status: 400;
4861
4882
  input: {
4862
4883
  param: {
4863
4884
  address: `0x${string}`;
@@ -4872,14 +4893,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4872
4893
  } | {
4873
4894
  output: {
4874
4895
  error: {
4875
- code: "payment_required" | "rate_limit_exceeded";
4896
+ code: "api_key_invalid" | "api_key_missing";
4876
4897
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4877
4898
  message: string;
4878
4899
  };
4879
4900
  requestId: string;
4880
4901
  };
4881
4902
  outputFormat: "json";
4882
- status: 429;
4903
+ status: 401;
4883
4904
  input: {
4884
4905
  param: {
4885
4906
  address: `0x${string}`;
@@ -4892,16 +4913,9 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4892
4913
  } | undefined;
4893
4914
  };
4894
4915
  } | {
4895
- output: {
4896
- error: {
4897
- code: "query_invalid";
4898
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4899
- message: string;
4900
- };
4901
- requestId: string;
4902
- };
4903
- outputFormat: "json";
4904
- status: 400;
4916
+ output: null;
4917
+ outputFormat: "body";
4918
+ status: 402;
4905
4919
  input: {
4906
4920
  param: {
4907
4921
  address: `0x${string}`;
@@ -4916,14 +4930,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4916
4930
  } | {
4917
4931
  output: {
4918
4932
  error: {
4919
- code: "upstream_error";
4933
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4920
4934
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4921
4935
  message: string;
4922
4936
  };
4923
4937
  requestId: string;
4924
4938
  };
4925
4939
  outputFormat: "json";
4926
- status: 502;
4940
+ status: 403;
4927
4941
  input: {
4928
4942
  param: {
4929
4943
  address: `0x${string}`;
@@ -4938,14 +4952,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4938
4952
  } | {
4939
4953
  output: {
4940
4954
  error: {
4941
- code: "address_invalid";
4955
+ code: "token_not_found";
4942
4956
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4943
4957
  message: string;
4944
4958
  };
4945
4959
  requestId: string;
4946
4960
  };
4947
4961
  outputFormat: "json";
4948
- status: 400;
4962
+ status: 404;
4949
4963
  input: {
4950
4964
  param: {
4951
4965
  address: `0x${string}`;
@@ -4959,29 +4973,15 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4959
4973
  };
4960
4974
  } | {
4961
4975
  output: {
4962
- amount: string;
4963
- currency: string;
4964
- decimals: number;
4965
- feeEligible?: boolean | undefined;
4966
- formatted: string;
4967
- id: string;
4968
- token: {
4969
- address: `0x${string}`;
4970
- currency: string;
4971
- decimals: number;
4972
- id: string;
4973
- logoUri?: string | undefined;
4974
- name: string;
4975
- symbol: string;
4976
- verified: boolean;
4976
+ error: {
4977
+ code: "payment_required" | "rate_limit_exceeded";
4978
+ details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4979
+ message: string;
4977
4980
  };
4978
- valuation?: {
4979
- amount: string;
4980
- currency: string;
4981
- } | null | undefined;
4981
+ requestId: string;
4982
4982
  };
4983
4983
  outputFormat: "json";
4984
- status: 200;
4984
+ status: 429;
4985
4985
  input: {
4986
4986
  param: {
4987
4987
  address: `0x${string}`;
@@ -4996,14 +4996,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4996
4996
  } | {
4997
4997
  output: {
4998
4998
  error: {
4999
- code: "token_not_found";
4999
+ code: "upstream_error";
5000
5000
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
5001
5001
  message: string;
5002
5002
  };
5003
5003
  requestId: string;
5004
5004
  };
5005
5005
  outputFormat: "json";
5006
- status: 404;
5006
+ status: 502;
5007
5007
  input: {
5008
5008
  param: {
5009
5009
  address: `0x${string}`;