tapimo 0.10.1 → 0.10.2

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 (144) hide show
  1. package/dist/App.d.ts +1776 -1543
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/Webhooks.d.ts +1 -1
  4. package/dist/Webhooks.d.ts.map +1 -1
  5. package/dist/Webhooks.js +1 -1
  6. package/dist/Webhooks.js.map +1 -1
  7. package/dist/admin/apps/api-keys.d.ts +4 -4
  8. package/dist/analytics/Analytics.d.ts.map +1 -1
  9. package/dist/analytics/Analytics.js +206 -0
  10. package/dist/analytics/Analytics.js.map +1 -1
  11. package/dist/analytics/tables/requestEvents.d.ts +4 -0
  12. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  13. package/dist/analytics/tables/requestEvents.js +2 -0
  14. package/dist/analytics/tables/requestEvents.js.map +1 -1
  15. package/dist/apps/data/App.d.ts.map +1 -1
  16. package/dist/apps/data/App.js +2 -0
  17. package/dist/apps/data/App.js.map +1 -1
  18. package/dist/apps/data/routes/addresses.d.ts +340 -340
  19. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  20. package/dist/apps/data/routes/balances.js +2 -6
  21. package/dist/apps/data/routes/balances.js.map +1 -1
  22. package/dist/apps/data/routes/coingecko.d.ts +176 -176
  23. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  24. package/dist/apps/data/routes/earn.js +63 -34
  25. package/dist/apps/data/routes/earn.js.map +1 -1
  26. package/dist/apps/data/routes/exchanges.d.ts +4 -0
  27. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  28. package/dist/apps/data/routes/exchanges.js +115 -77
  29. package/dist/apps/data/routes/exchanges.js.map +1 -1
  30. package/dist/apps/data/routes/indexer.d.ts +34 -34
  31. package/dist/apps/data/routes/receipts.d.ts +4 -3
  32. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  33. package/dist/apps/data/routes/receipts.js +15 -14
  34. package/dist/apps/data/routes/receipts.js.map +1 -1
  35. package/dist/apps/data/routes/tokens.d.ts +1 -1
  36. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  37. package/dist/apps/data/routes/tokens.js +4 -3
  38. package/dist/apps/data/routes/tokens.js.map +1 -1
  39. package/dist/apps/data/routes/transactions.d.ts +281 -281
  40. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  41. package/dist/apps/data/routes/transfers.js +25 -7
  42. package/dist/apps/data/routes/transfers.js.map +1 -1
  43. package/dist/apps/data/routes/webhooks.d.ts +380 -364
  44. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  45. package/dist/apps/data/routes/webhooks.js +16 -9
  46. package/dist/apps/data/routes/webhooks.js.map +1 -1
  47. package/dist/apps/data/routes/zones.d.ts +31 -31
  48. package/dist/apps/funding/App.d.ts +233 -0
  49. package/dist/apps/funding/App.d.ts.map +1 -1
  50. package/dist/apps/funding/routes/deposit-addresses.d.ts +330 -0
  51. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  52. package/dist/apps/funding/routes/deposit-addresses.js +207 -11
  53. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  54. package/dist/apps/funding/routes/providers.d.ts +13 -13
  55. package/dist/apps/management/routes/faucet.d.ts +32 -32
  56. package/dist/apps/management/routes/members.d.ts +79 -79
  57. package/dist/apps/management/routes/usage.d.ts +80 -80
  58. package/dist/db/Db.d.ts.map +1 -1
  59. package/dist/db/Db.js +32 -0
  60. package/dist/db/Db.js.map +1 -1
  61. package/dist/db/tables/fundingDepositAddresses.d.ts +20 -0
  62. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
  63. package/dist/db/tables/fundingDepositAddresses.js +17 -0
  64. package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
  65. package/dist/db/tables/fundingDeposits.d.ts +41 -0
  66. package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
  67. package/dist/db/tables/fundingDeposits.js +69 -0
  68. package/dist/db/tables/fundingDeposits.js.map +1 -1
  69. package/dist/internal/Auth.d.ts +0 -26
  70. package/dist/internal/Auth.d.ts.map +1 -1
  71. package/dist/internal/Auth.js +0 -33
  72. package/dist/internal/Auth.js.map +1 -1
  73. package/dist/internal/Credential.d.ts +27 -0
  74. package/dist/internal/Credential.d.ts.map +1 -0
  75. package/dist/internal/Credential.js +34 -0
  76. package/dist/internal/Credential.js.map +1 -0
  77. package/dist/internal/EarnRates.js +11 -7
  78. package/dist/internal/EarnRates.js.map +1 -1
  79. package/dist/internal/Log.d.ts +8 -0
  80. package/dist/internal/Log.d.ts.map +1 -1
  81. package/dist/internal/Log.js +4 -0
  82. package/dist/internal/Log.js.map +1 -1
  83. package/dist/internal/MetricSink.d.ts +24 -0
  84. package/dist/internal/MetricSink.d.ts.map +1 -1
  85. package/dist/internal/MetricSink.js +25 -0
  86. package/dist/internal/MetricSink.js.map +1 -1
  87. package/dist/internal/Tidx.d.ts +4 -3
  88. package/dist/internal/Tidx.d.ts.map +1 -1
  89. package/dist/internal/Tidx.js +2 -2
  90. package/dist/internal/Tidx.js.map +1 -1
  91. package/dist/internal/Viem.d.ts +4 -3
  92. package/dist/internal/Viem.d.ts.map +1 -1
  93. package/dist/internal/Viem.js +3 -2
  94. package/dist/internal/Viem.js.map +1 -1
  95. package/dist/internal/Webhooks.d.ts +2 -0
  96. package/dist/internal/Webhooks.d.ts.map +1 -1
  97. package/dist/internal/Webhooks.js +10 -3
  98. package/dist/internal/Webhooks.js.map +1 -1
  99. package/dist/internal/index.d.ts +1 -0
  100. package/dist/internal/index.d.ts.map +1 -1
  101. package/dist/internal/index.js +1 -0
  102. package/dist/internal/index.js.map +1 -1
  103. package/package.json +1 -1
  104. package/src/App.test.ts +30 -0
  105. package/src/Client.test-d.ts +33 -1
  106. package/src/Webhooks.ts +1 -1
  107. package/src/analytics/Analytics.test.ts +34 -0
  108. package/src/analytics/Analytics.ts +206 -0
  109. package/src/analytics/tables/requestEvents.ts +6 -0
  110. package/src/apps/composition.test.ts +1 -0
  111. package/src/apps/data/App.ts +2 -0
  112. package/src/apps/data/routes/balances.ts +2 -6
  113. package/src/apps/data/routes/earn.ts +64 -34
  114. package/src/apps/data/routes/exchanges.test.ts +8 -3
  115. package/src/apps/data/routes/exchanges.ts +134 -82
  116. package/src/apps/data/routes/receipts.ts +16 -14
  117. package/src/apps/data/routes/tokens.ts +3 -2
  118. package/src/apps/data/routes/transactions.bench.ts +8 -0
  119. package/src/apps/data/routes/transfers.ts +36 -10
  120. package/src/apps/data/routes/webhooks.ts +31 -10
  121. package/src/apps/funding/routes/deposit-addresses.test.ts +216 -2
  122. package/src/apps/funding/routes/deposit-addresses.ts +254 -18
  123. package/src/apps/funding/routes/transfers.test.ts +17 -2
  124. package/src/db/Db.ts +36 -0
  125. package/src/db/tables/fundingDepositAddresses.test.ts +28 -0
  126. package/src/db/tables/fundingDepositAddresses.ts +39 -0
  127. package/src/db/tables/fundingDeposits.test.ts +82 -0
  128. package/src/db/tables/fundingDeposits.ts +130 -0
  129. package/src/internal/Auth.test.ts +0 -48
  130. package/src/internal/Auth.ts +0 -59
  131. package/src/internal/Credential.test.ts +51 -0
  132. package/src/internal/Credential.ts +58 -0
  133. package/src/internal/EarnRates.ts +13 -7
  134. package/src/internal/Log.test.ts +3 -1
  135. package/src/internal/Log.ts +14 -0
  136. package/src/internal/MetricSink.test.ts +50 -1
  137. package/src/internal/MetricSink.ts +52 -0
  138. package/src/internal/Tidx.ts +5 -4
  139. package/src/internal/Viem.test.ts +4 -0
  140. package/src/internal/Viem.ts +6 -4
  141. package/src/internal/Webhooks.test.ts +9 -0
  142. package/src/internal/Webhooks.ts +10 -3
  143. package/src/internal/index.test.ts +1 -0
  144. package/src/internal/index.ts +1 -0
@@ -16,6 +16,207 @@ 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
+ } | {
19
220
  output: {
20
221
  data: ({
21
222
  perspective: "incoming" | "outgoing";
@@ -4118,6 +4319,24 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4118
4319
  'valuation.currency'?: string | string[];
4119
4320
  } | undefined;
4120
4321
  };
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
+ };
4121
4340
  } | {
4122
4341
  output: {
4123
4342
  error: {
@@ -4136,25 +4355,20 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4136
4355
  } & {
4137
4356
  query?: {
4138
4357
  chainId?: 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[];
4358
+ currency?: string | string[];
4145
4359
  } | undefined;
4146
4360
  };
4147
4361
  } | {
4148
4362
  output: {
4149
4363
  error: {
4150
- code: "query_invalid";
4364
+ code: "api_key_invalid" | "api_key_missing";
4151
4365
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4152
4366
  message: string;
4153
4367
  };
4154
4368
  requestId: string;
4155
4369
  };
4156
4370
  outputFormat: "json";
4157
- status: 400;
4371
+ status: 401;
4158
4372
  input: {
4159
4373
  param: {
4160
4374
  address: `0x${string}`;
@@ -4162,25 +4376,20 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4162
4376
  } & {
4163
4377
  query?: {
4164
4378
  chainId?: 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[];
4379
+ currency?: string | string[];
4171
4380
  } | undefined;
4172
4381
  };
4173
4382
  } | {
4174
4383
  output: {
4175
4384
  error: {
4176
- code: "address_invalid";
4385
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4177
4386
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4178
4387
  message: string;
4179
4388
  };
4180
4389
  requestId: string;
4181
4390
  };
4182
4391
  outputFormat: "json";
4183
- status: 400;
4392
+ status: 403;
4184
4393
  input: {
4185
4394
  param: {
4186
4395
  address: `0x${string}`;
@@ -4188,25 +4397,20 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4188
4397
  } & {
4189
4398
  query?: {
4190
4399
  chainId?: 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[];
4400
+ currency?: string | string[];
4197
4401
  } | undefined;
4198
4402
  };
4199
4403
  } | {
4200
4404
  output: {
4201
4405
  error: {
4202
- code: "api_key_invalid" | "api_key_missing";
4406
+ code: "payment_required" | "rate_limit_exceeded";
4203
4407
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4204
4408
  message: string;
4205
4409
  };
4206
4410
  requestId: string;
4207
4411
  };
4208
4412
  outputFormat: "json";
4209
- status: 401;
4413
+ status: 429;
4210
4414
  input: {
4211
4415
  param: {
4212
4416
  address: `0x${string}`;
@@ -4214,44 +4418,20 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4214
4418
  } & {
4215
4419
  query?: {
4216
4420
  chainId?: string | string[];
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[];
4421
+ currency?: string | string[];
4242
4422
  } | undefined;
4243
4423
  };
4244
4424
  } | {
4245
4425
  output: {
4246
4426
  error: {
4247
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4427
+ code: "query_invalid";
4248
4428
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4249
4429
  message: string;
4250
4430
  };
4251
4431
  requestId: string;
4252
4432
  };
4253
4433
  outputFormat: "json";
4254
- status: 403;
4434
+ status: 400;
4255
4435
  input: {
4256
4436
  param: {
4257
4437
  address: `0x${string}`;
@@ -4259,25 +4439,20 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4259
4439
  } & {
4260
4440
  query?: {
4261
4441
  chainId?: 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[];
4442
+ currency?: string | string[];
4268
4443
  } | undefined;
4269
4444
  };
4270
4445
  } | {
4271
4446
  output: {
4272
4447
  error: {
4273
- code: "payment_required" | "rate_limit_exceeded";
4448
+ code: "upstream_error";
4274
4449
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4275
4450
  message: string;
4276
4451
  };
4277
4452
  requestId: string;
4278
4453
  };
4279
4454
  outputFormat: "json";
4280
- status: 429;
4455
+ status: 502;
4281
4456
  input: {
4282
4457
  param: {
4283
4458
  address: `0x${string}`;
@@ -4285,25 +4460,20 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4285
4460
  } & {
4286
4461
  query?: {
4287
4462
  chainId?: 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[];
4463
+ currency?: string | string[];
4294
4464
  } | undefined;
4295
4465
  };
4296
4466
  } | {
4297
4467
  output: {
4298
4468
  error: {
4299
- code: "upstream_error";
4469
+ code: "address_invalid";
4300
4470
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4301
4471
  message: string;
4302
4472
  };
4303
4473
  requestId: string;
4304
4474
  };
4305
4475
  outputFormat: "json";
4306
- status: 502;
4476
+ status: 400;
4307
4477
  input: {
4308
4478
  param: {
4309
4479
  address: `0x${string}`;
@@ -4311,19 +4481,10 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4311
4481
  } & {
4312
4482
  query?: {
4313
4483
  chainId?: 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[];
4484
+ currency?: string | string[];
4320
4485
  } | undefined;
4321
4486
  };
4322
- };
4323
- };
4324
- }, "/"> | import("hono/types").MergeSchemaPath<{
4325
- "/v1/addresses/:address/valuation": {
4326
- $get: {
4487
+ } | {
4327
4488
  output: {
4328
4489
  address: `0x${string}`;
4329
4490
  amount: string;
@@ -4348,208 +4509,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4348
4509
  currency?: string | string[];
4349
4510
  } | undefined;
4350
4511
  };
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: {
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;
4517
+ output: null;
4518
+ outputFormat: "body";
4519
+ status: 402;
4553
4520
  input: {
4554
4521
  param: {
4555
4522
  address: `0x${string}`;
@@ -4598,14 +4565,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4598
4565
  } | {
4599
4566
  output: {
4600
4567
  error: {
4601
- code: "query_invalid";
4568
+ code: "api_key_invalid" | "api_key_missing";
4602
4569
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4603
4570
  message: string;
4604
4571
  };
4605
4572
  requestId: string;
4606
4573
  };
4607
4574
  outputFormat: "json";
4608
- status: 400;
4575
+ status: 401;
4609
4576
  input: {
4610
4577
  param: {
4611
4578
  address: `0x${string}`;
@@ -4626,14 +4593,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4626
4593
  } | {
4627
4594
  output: {
4628
4595
  error: {
4629
- code: "address_invalid";
4596
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4630
4597
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4631
4598
  message: string;
4632
4599
  };
4633
4600
  requestId: string;
4634
4601
  };
4635
4602
  outputFormat: "json";
4636
- status: 400;
4603
+ status: 403;
4637
4604
  input: {
4638
4605
  param: {
4639
4606
  address: `0x${string}`;
@@ -4654,14 +4621,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4654
4621
  } | {
4655
4622
  output: {
4656
4623
  error: {
4657
- code: "api_key_invalid" | "api_key_missing";
4624
+ code: "payment_required" | "rate_limit_exceeded";
4658
4625
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4659
4626
  message: string;
4660
4627
  };
4661
4628
  requestId: string;
4662
4629
  };
4663
4630
  outputFormat: "json";
4664
- status: 401;
4631
+ status: 429;
4665
4632
  input: {
4666
4633
  param: {
4667
4634
  address: `0x${string}`;
@@ -4680,9 +4647,16 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4680
4647
  } | undefined;
4681
4648
  };
4682
4649
  } | {
4683
- output: null;
4684
- outputFormat: "body";
4685
- status: 402;
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;
4686
4660
  input: {
4687
4661
  param: {
4688
4662
  address: `0x${string}`;
@@ -4703,14 +4677,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4703
4677
  } | {
4704
4678
  output: {
4705
4679
  error: {
4706
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4680
+ code: "upstream_error";
4707
4681
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4708
4682
  message: string;
4709
4683
  };
4710
4684
  requestId: string;
4711
4685
  };
4712
4686
  outputFormat: "json";
4713
- status: 403;
4687
+ status: 502;
4714
4688
  input: {
4715
4689
  param: {
4716
4690
  address: `0x${string}`;
@@ -4731,14 +4705,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4731
4705
  } | {
4732
4706
  output: {
4733
4707
  error: {
4734
- code: "payment_required" | "rate_limit_exceeded";
4708
+ code: "address_invalid";
4735
4709
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4736
4710
  message: string;
4737
4711
  };
4738
4712
  requestId: string;
4739
4713
  };
4740
4714
  outputFormat: "json";
4741
- status: 429;
4715
+ status: 400;
4742
4716
  input: {
4743
4717
  param: {
4744
4718
  address: `0x${string}`;
@@ -4758,15 +4732,41 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4758
4732
  };
4759
4733
  } | {
4760
4734
  output: {
4761
- error: {
4762
- code: "upstream_error";
4763
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4764
- message: string;
4765
- };
4766
- requestId: string;
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;
4767
4767
  };
4768
4768
  outputFormat: "json";
4769
- status: 502;
4769
+ status: 200;
4770
4770
  input: {
4771
4771
  param: {
4772
4772
  address: `0x${string}`;
@@ -4789,30 +4789,9 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4789
4789
  } & {
4790
4790
  "/v1/addresses/:address/balances/:token": {
4791
4791
  $get: {
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;
4792
+ output: null;
4793
+ outputFormat: "body";
4794
+ status: 402;
4816
4795
  input: {
4817
4796
  param: {
4818
4797
  address: `0x${string}`;
@@ -4849,14 +4828,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4849
4828
  } | {
4850
4829
  output: {
4851
4830
  error: {
4852
- code: "query_invalid";
4831
+ code: "api_key_invalid" | "api_key_missing";
4853
4832
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4854
4833
  message: string;
4855
4834
  };
4856
4835
  requestId: string;
4857
4836
  };
4858
4837
  outputFormat: "json";
4859
- status: 400;
4838
+ status: 401;
4860
4839
  input: {
4861
4840
  param: {
4862
4841
  address: `0x${string}`;
@@ -4871,14 +4850,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4871
4850
  } | {
4872
4851
  output: {
4873
4852
  error: {
4874
- code: "address_invalid";
4853
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
4875
4854
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4876
4855
  message: string;
4877
4856
  };
4878
4857
  requestId: string;
4879
4858
  };
4880
4859
  outputFormat: "json";
4881
- status: 400;
4860
+ status: 403;
4882
4861
  input: {
4883
4862
  param: {
4884
4863
  address: `0x${string}`;
@@ -4893,14 +4872,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4893
4872
  } | {
4894
4873
  output: {
4895
4874
  error: {
4896
- code: "api_key_invalid" | "api_key_missing";
4875
+ code: "payment_required" | "rate_limit_exceeded";
4897
4876
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4898
4877
  message: string;
4899
4878
  };
4900
4879
  requestId: string;
4901
4880
  };
4902
4881
  outputFormat: "json";
4903
- status: 401;
4882
+ status: 429;
4904
4883
  input: {
4905
4884
  param: {
4906
4885
  address: `0x${string}`;
@@ -4913,9 +4892,16 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4913
4892
  } | undefined;
4914
4893
  };
4915
4894
  } | {
4916
- output: null;
4917
- outputFormat: "body";
4918
- status: 402;
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;
4919
4905
  input: {
4920
4906
  param: {
4921
4907
  address: `0x${string}`;
@@ -4930,14 +4916,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4930
4916
  } | {
4931
4917
  output: {
4932
4918
  error: {
4933
- code: "api_key_forbidden" | "api_key_ip_forbidden";
4919
+ code: "upstream_error";
4934
4920
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4935
4921
  message: string;
4936
4922
  };
4937
4923
  requestId: string;
4938
4924
  };
4939
4925
  outputFormat: "json";
4940
- status: 403;
4926
+ status: 502;
4941
4927
  input: {
4942
4928
  param: {
4943
4929
  address: `0x${string}`;
@@ -4952,14 +4938,14 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4952
4938
  } | {
4953
4939
  output: {
4954
4940
  error: {
4955
- code: "token_not_found";
4941
+ code: "address_invalid";
4956
4942
  details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4957
4943
  message: string;
4958
4944
  };
4959
4945
  requestId: string;
4960
4946
  };
4961
4947
  outputFormat: "json";
4962
- status: 404;
4948
+ status: 400;
4963
4949
  input: {
4964
4950
  param: {
4965
4951
  address: `0x${string}`;
@@ -4973,15 +4959,29 @@ export declare function addresses(options?: addresses.Options): import("hono/hon
4973
4959
  };
4974
4960
  } | {
4975
4961
  output: {
4976
- error: {
4977
- code: "payment_required" | "rate_limit_exceeded";
4978
- details?: readonly import("../../../internal/Response.js").error.Detail[] | undefined;
4979
- message: string;
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;
4980
4977
  };
4981
- requestId: string;
4978
+ valuation?: {
4979
+ amount: string;
4980
+ currency: string;
4981
+ } | null | undefined;
4982
4982
  };
4983
4983
  outputFormat: "json";
4984
- status: 429;
4984
+ status: 200;
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: "upstream_error";
4999
+ code: "token_not_found";
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: 502;
5006
+ status: 404;
5007
5007
  input: {
5008
5008
  param: {
5009
5009
  address: `0x${string}`;