tapimo 0.10.0 → 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 (295) hide show
  1. package/dist/ApiKey.d.ts +2 -1
  2. package/dist/ApiKey.d.ts.map +1 -1
  3. package/dist/ApiKeys.d.ts +4 -2
  4. package/dist/ApiKeys.d.ts.map +1 -1
  5. package/dist/ApiKeys.js +26 -1
  6. package/dist/ApiKeys.js.map +1 -1
  7. package/dist/App.d.ts +6007 -5003
  8. package/dist/App.d.ts.map +1 -1
  9. package/dist/App.js +1 -0
  10. package/dist/App.js.map +1 -1
  11. package/dist/Webhooks.d.ts +1 -1
  12. package/dist/Webhooks.d.ts.map +1 -1
  13. package/dist/Webhooks.js +6 -6
  14. package/dist/Webhooks.js.map +1 -1
  15. package/dist/admin/App.d.ts +91 -84
  16. package/dist/admin/App.d.ts.map +1 -1
  17. package/dist/admin/apps/api-keys.d.ts +22 -13
  18. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  19. package/dist/admin/apps/api-keys.js +6 -0
  20. package/dist/admin/apps/api-keys.js.map +1 -1
  21. package/dist/admin/apps/organizations.d.ts +4 -2
  22. package/dist/admin/apps/organizations.d.ts.map +1 -1
  23. package/dist/admin/ui.generated.d.ts +1 -1
  24. package/dist/admin/ui.generated.js +69 -69
  25. package/dist/admin/ui.generated.js.map +1 -1
  26. package/dist/analytics/Analytics.d.ts.map +1 -1
  27. package/dist/analytics/Analytics.js +232 -0
  28. package/dist/analytics/Analytics.js.map +1 -1
  29. package/dist/analytics/tables/requestEvents.d.ts +4 -0
  30. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  31. package/dist/analytics/tables/requestEvents.js +2 -0
  32. package/dist/analytics/tables/requestEvents.js.map +1 -1
  33. package/dist/apps/Zones.d.ts +4266 -82
  34. package/dist/apps/Zones.d.ts.map +1 -1
  35. package/dist/apps/Zones.js +27 -8
  36. package/dist/apps/Zones.js.map +1 -1
  37. package/dist/apps/data/App.d.ts +3467 -2696
  38. package/dist/apps/data/App.d.ts.map +1 -1
  39. package/dist/apps/data/App.js +2 -0
  40. package/dist/apps/data/App.js.map +1 -1
  41. package/dist/apps/data/routes/activities.d.ts +2999 -100
  42. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  43. package/dist/apps/data/routes/activities.js +340 -2
  44. package/dist/apps/data/routes/activities.js.map +1 -1
  45. package/dist/apps/data/routes/addresses.d.ts +514 -0
  46. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  47. package/dist/apps/data/routes/balances.d.ts +26 -26
  48. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  49. package/dist/apps/data/routes/balances.js +7 -3
  50. package/dist/apps/data/routes/balances.js.map +1 -1
  51. package/dist/apps/data/routes/blocks.d.ts +4 -4
  52. package/dist/apps/data/routes/earn.d.ts +75 -75
  53. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  54. package/dist/apps/data/routes/earn.js +65 -36
  55. package/dist/apps/data/routes/earn.js.map +1 -1
  56. package/dist/apps/data/routes/exchanges.d.ts +124 -120
  57. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  58. package/dist/apps/data/routes/exchanges.js +115 -77
  59. package/dist/apps/data/routes/exchanges.js.map +1 -1
  60. package/dist/apps/data/routes/fee-amm.d.ts +24 -24
  61. package/dist/apps/data/routes/indexer.d.ts +2 -1
  62. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  63. package/dist/apps/data/routes/indexer.js +3 -2
  64. package/dist/apps/data/routes/indexer.js.map +1 -1
  65. package/dist/apps/data/routes/receipts.d.ts +4 -3
  66. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  67. package/dist/apps/data/routes/receipts.js +15 -14
  68. package/dist/apps/data/routes/receipts.js.map +1 -1
  69. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  70. package/dist/apps/data/routes/rpc.js +5 -1
  71. package/dist/apps/data/routes/rpc.js.map +1 -1
  72. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  73. package/dist/apps/data/routes/tokens.d.ts +1 -1
  74. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  75. package/dist/apps/data/routes/tokens.js +4 -3
  76. package/dist/apps/data/routes/tokens.js.map +1 -1
  77. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  78. package/dist/apps/data/routes/transfers.js +25 -7
  79. package/dist/apps/data/routes/transfers.js.map +1 -1
  80. package/dist/apps/data/routes/verified-tokens.d.ts +37 -37
  81. package/dist/apps/data/routes/webhooks.d.ts +71 -1
  82. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  83. package/dist/apps/data/routes/webhooks.js +177 -23
  84. package/dist/apps/data/routes/webhooks.js.map +1 -1
  85. package/dist/apps/data/routes/zones.js +1 -1
  86. package/dist/apps/data/routes/zones.js.map +1 -1
  87. package/dist/apps/funding/App.d.ts +322 -89
  88. package/dist/apps/funding/App.d.ts.map +1 -1
  89. package/dist/apps/funding/routes/deposit-addresses.d.ts +375 -45
  90. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  91. package/dist/apps/funding/routes/deposit-addresses.js +208 -12
  92. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  93. package/dist/apps/funding/routes/transfers.d.ts +32 -32
  94. package/dist/apps/funding/routes/transfers.js +1 -1
  95. package/dist/apps/funding/routes/transfers.js.map +1 -1
  96. package/dist/apps/management/App.d.ts +418 -418
  97. package/dist/apps/management/routes/api-keys.d.ts +50 -50
  98. package/dist/apps/management/routes/billing.d.ts +72 -72
  99. package/dist/apps/management/routes/billing.js +1 -1
  100. package/dist/apps/management/routes/billing.js.map +1 -1
  101. package/dist/apps/management/routes/faucet.d.ts +8 -8
  102. package/dist/apps/management/routes/faucet.js +2 -2
  103. package/dist/apps/management/routes/faucet.js.map +1 -1
  104. package/dist/apps/management/routes/invite-links.d.ts +42 -42
  105. package/dist/apps/management/routes/me.d.ts +6 -6
  106. package/dist/apps/management/routes/members.d.ts +14 -14
  107. package/dist/apps/management/routes/projects.d.ts +40 -40
  108. package/dist/apps/management/routes/usage.d.ts +8 -8
  109. package/dist/apps/management/routes/webhooks.d.ts +49 -49
  110. package/dist/apps/mcp.d.ts.map +1 -1
  111. package/dist/apps/mcp.js +4 -1
  112. package/dist/apps/mcp.js.map +1 -1
  113. package/dist/db/Db.d.ts +2 -0
  114. package/dist/db/Db.d.ts.map +1 -1
  115. package/dist/db/Db.js +90 -0
  116. package/dist/db/Db.js.map +1 -1
  117. package/dist/db/Schema.d.ts +19 -0
  118. package/dist/db/Schema.d.ts.map +1 -1
  119. package/dist/db/Schema.js +24 -0
  120. package/dist/db/Schema.js.map +1 -1
  121. package/dist/db/tables/fundingDepositAddresses.d.ts +20 -0
  122. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
  123. package/dist/db/tables/fundingDepositAddresses.js +17 -0
  124. package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
  125. package/dist/db/tables/fundingDeposits.d.ts +41 -0
  126. package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
  127. package/dist/db/tables/fundingDeposits.js +69 -0
  128. package/dist/db/tables/fundingDeposits.js.map +1 -1
  129. package/dist/db/tables/webhookQueueEvents.d.ts +122 -0
  130. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -0
  131. package/dist/db/tables/webhookQueueEvents.js +160 -0
  132. package/dist/db/tables/webhookQueueEvents.js.map +1 -0
  133. package/dist/db/tables/webhookSubscriptions.d.ts +2 -0
  134. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  135. package/dist/db/tables/webhookSubscriptions.js +10 -0
  136. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  137. package/dist/internal/Auth.d.ts +3 -26
  138. package/dist/internal/Auth.d.ts.map +1 -1
  139. package/dist/internal/Auth.js +6 -37
  140. package/dist/internal/Auth.js.map +1 -1
  141. package/dist/internal/Credential.d.ts +27 -0
  142. package/dist/internal/Credential.d.ts.map +1 -0
  143. package/dist/internal/Credential.js +34 -0
  144. package/dist/internal/Credential.js.map +1 -0
  145. package/dist/internal/EarnRates.js +11 -7
  146. package/dist/internal/EarnRates.js.map +1 -1
  147. package/dist/internal/Log.d.ts +8 -0
  148. package/dist/internal/Log.d.ts.map +1 -1
  149. package/dist/internal/Log.js +4 -0
  150. package/dist/internal/Log.js.map +1 -1
  151. package/dist/internal/MetricSink.d.ts +51 -0
  152. package/dist/internal/MetricSink.d.ts.map +1 -1
  153. package/dist/internal/MetricSink.js +54 -2
  154. package/dist/internal/MetricSink.js.map +1 -1
  155. package/dist/internal/RateLimit.d.ts +4 -6
  156. package/dist/internal/RateLimit.d.ts.map +1 -1
  157. package/dist/internal/RateLimit.js +15 -14
  158. package/dist/internal/RateLimit.js.map +1 -1
  159. package/dist/internal/Store.d.ts +2 -1
  160. package/dist/internal/Store.d.ts.map +1 -1
  161. package/dist/internal/Store.js +57 -18
  162. package/dist/internal/Store.js.map +1 -1
  163. package/dist/internal/Tidx.d.ts +4 -3
  164. package/dist/internal/Tidx.d.ts.map +1 -1
  165. package/dist/internal/Tidx.js +2 -2
  166. package/dist/internal/Tidx.js.map +1 -1
  167. package/dist/internal/Value.d.ts +2 -0
  168. package/dist/internal/Value.d.ts.map +1 -1
  169. package/dist/internal/Value.js +25 -0
  170. package/dist/internal/Value.js.map +1 -1
  171. package/dist/internal/Viem.d.ts +4 -3
  172. package/dist/internal/Viem.d.ts.map +1 -1
  173. package/dist/internal/Viem.js +3 -2
  174. package/dist/internal/Viem.js.map +1 -1
  175. package/dist/internal/WebhookTransfer.d.ts +20 -0
  176. package/dist/internal/WebhookTransfer.d.ts.map +1 -1
  177. package/dist/internal/WebhookTransfer.js +7 -4
  178. package/dist/internal/WebhookTransfer.js.map +1 -1
  179. package/dist/internal/Webhooks.d.ts +141 -0
  180. package/dist/internal/Webhooks.d.ts.map +1 -1
  181. package/dist/internal/Webhooks.js +139 -10
  182. package/dist/internal/Webhooks.js.map +1 -1
  183. package/dist/internal/funding/providers/relay.d.ts +3 -4
  184. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  185. package/dist/internal/funding/providers/relay.js +59 -8
  186. package/dist/internal/funding/providers/relay.js.map +1 -1
  187. package/dist/internal/index.d.ts +1 -0
  188. package/dist/internal/index.d.ts.map +1 -1
  189. package/dist/internal/index.js +1 -0
  190. package/dist/internal/index.js.map +1 -1
  191. package/package.json +3 -3
  192. package/src/ApiKeys.test.ts +20 -0
  193. package/src/ApiKeys.ts +28 -1
  194. package/src/App.test.ts +40 -8
  195. package/src/App.ts +1 -0
  196. package/src/Client.test-d.ts +34 -1
  197. package/src/Webhooks.ts +20 -18
  198. package/src/admin/apps/api-keys.test.ts +9 -0
  199. package/src/admin/apps/api-keys.ts +15 -0
  200. package/src/admin/ui/src/lib/query-client.ts +3 -2
  201. package/src/admin/ui/src/routes/api-keys.tsx +31 -9
  202. package/src/admin/ui.generated.ts +69 -69
  203. package/src/analytics/Analytics.test.ts +42 -0
  204. package/src/analytics/Analytics.ts +232 -0
  205. package/src/analytics/tables/requestEvents.ts +6 -0
  206. package/src/apps/Zones.test.ts +20 -3
  207. package/src/apps/Zones.ts +28 -8
  208. package/src/apps/composition.test.ts +2 -0
  209. package/src/apps/data/App.test.ts +2 -2
  210. package/src/apps/data/App.ts +2 -0
  211. package/src/apps/data/routes/activities.bench.ts +41 -0
  212. package/src/apps/data/routes/activities.test.ts +103 -2
  213. package/src/apps/data/routes/activities.ts +401 -2
  214. package/src/apps/data/routes/balances.bench.ts +21 -0
  215. package/src/apps/data/routes/balances.ts +7 -3
  216. package/src/apps/data/routes/blocks.bench.ts +34 -0
  217. package/src/apps/data/routes/coingecko.bench.ts +53 -0
  218. package/src/apps/data/routes/earn.bench.ts +71 -0
  219. package/src/apps/data/routes/earn.ts +66 -36
  220. package/src/apps/data/routes/exchanges.bench.ts +85 -0
  221. package/src/apps/data/routes/exchanges.test.ts +8 -3
  222. package/src/apps/data/routes/exchanges.ts +134 -82
  223. package/src/apps/data/routes/fee-amm.bench.ts +13 -0
  224. package/src/apps/data/routes/indexer.bench.ts +8 -0
  225. package/src/apps/data/routes/indexer.test.ts +2 -1
  226. package/src/apps/data/routes/indexer.ts +3 -2
  227. package/src/apps/data/routes/receipts.bench.ts +39 -0
  228. package/src/apps/data/routes/receipts.ts +16 -14
  229. package/src/apps/data/routes/rpc.bench.ts +14 -0
  230. package/src/apps/data/routes/rpc.test.ts +27 -0
  231. package/src/apps/data/routes/rpc.ts +5 -1
  232. package/src/apps/data/routes/tokenlist.bench.ts +3 -0
  233. package/src/apps/data/routes/tokens.bench.ts +76 -0
  234. package/src/apps/data/routes/tokens.ts +3 -2
  235. package/src/apps/data/routes/transactions.bench.ts +48 -0
  236. package/src/apps/data/routes/transfers.bench.ts +28 -0
  237. package/src/apps/data/routes/transfers.ts +36 -10
  238. package/src/apps/data/routes/valuation.bench.ts +14 -0
  239. package/src/apps/data/routes/verified-tokens.bench.ts +8 -0
  240. package/src/apps/data/routes/webhooks.bench.ts +26 -0
  241. package/src/apps/data/routes/webhooks.scan.test.ts +326 -0
  242. package/src/apps/data/routes/webhooks.test.ts +53 -6
  243. package/src/apps/data/routes/webhooks.ts +252 -24
  244. package/src/apps/data/routes/zones.bench.ts +32 -0
  245. package/src/apps/data/routes/zones.test.ts +1 -1
  246. package/src/apps/data/routes/zones.ts +1 -1
  247. package/src/apps/funding/routes/chains.test.ts +1 -1
  248. package/src/apps/funding/routes/deposit-addresses.test.ts +217 -3
  249. package/src/apps/funding/routes/deposit-addresses.ts +255 -19
  250. package/src/apps/funding/routes/providers.test.ts +1 -1
  251. package/src/apps/funding/routes/quotes.test.ts +1 -1
  252. package/src/apps/funding/routes/transfers.test.ts +20 -8
  253. package/src/apps/funding/routes/transfers.ts +1 -1
  254. package/src/apps/management/routes/billing.ts +1 -1
  255. package/src/apps/management/routes/faucet.ts +2 -2
  256. package/src/apps/management/routes/me.test.ts +31 -0
  257. package/src/apps/mcp.ts +4 -1
  258. package/src/db/Db.ts +117 -0
  259. package/src/db/Schema.ts +32 -0
  260. package/src/db/tables/fundingDepositAddresses.test.ts +28 -0
  261. package/src/db/tables/fundingDepositAddresses.ts +39 -0
  262. package/src/db/tables/fundingDeposits.test.ts +82 -0
  263. package/src/db/tables/fundingDeposits.ts +130 -0
  264. package/src/db/tables/webhookQueueEvents.ts +285 -0
  265. package/src/db/tables/webhookSubscriptions.ts +15 -0
  266. package/src/internal/Auth.test.ts +61 -98
  267. package/src/internal/Auth.ts +9 -63
  268. package/src/internal/Credential.test.ts +51 -0
  269. package/src/internal/Credential.ts +58 -0
  270. package/src/internal/EarnRates.ts +13 -7
  271. package/src/internal/EarnVaults.test.ts +2 -2
  272. package/src/internal/Log.test.ts +3 -1
  273. package/src/internal/Log.ts +14 -0
  274. package/src/internal/MetricSink.test.ts +108 -2
  275. package/src/internal/MetricSink.ts +112 -2
  276. package/src/internal/RateLimit.test.ts +23 -18
  277. package/src/internal/RateLimit.ts +23 -15
  278. package/src/internal/Store.test.ts +99 -13
  279. package/src/internal/Store.ts +52 -17
  280. package/src/internal/Tidx.test.ts +4 -4
  281. package/src/internal/Tidx.ts +5 -4
  282. package/src/internal/Value.test.ts +25 -0
  283. package/src/internal/Value.ts +29 -0
  284. package/src/internal/Viem.test.ts +4 -0
  285. package/src/internal/Viem.ts +6 -4
  286. package/src/internal/WebhookTransfer.test.ts +89 -0
  287. package/src/internal/WebhookTransfer.ts +11 -7
  288. package/src/internal/Webhooks.test.ts +488 -0
  289. package/src/internal/Webhooks.ts +291 -10
  290. package/src/internal/funding/Provider.test.ts +1 -1
  291. package/src/internal/funding/providers/index.test.ts +73 -3
  292. package/src/internal/funding/providers/relay.test.ts +1 -5
  293. package/src/internal/funding/providers/relay.ts +56 -12
  294. package/src/internal/index.test.ts +1 -0
  295. package/src/internal/index.ts +1 -0
@@ -881,14 +881,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
881
881
  } | {
882
882
  output: {
883
883
  error: {
884
- code: "upstream_error";
884
+ code: "api_key_malformed";
885
885
  details?: readonly Response.error.Detail[] | undefined;
886
886
  message: string;
887
887
  };
888
888
  requestId: string;
889
889
  };
890
890
  outputFormat: "json";
891
- status: 502;
891
+ status: 400;
892
892
  input: {
893
893
  query?: {
894
894
  asset?: string | string[];
@@ -904,14 +904,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
904
904
  } | {
905
905
  output: {
906
906
  error: {
907
- code: "api_key_malformed";
907
+ code: "api_key_invalid" | "api_key_missing";
908
908
  details?: readonly Response.error.Detail[] | undefined;
909
909
  message: string;
910
910
  };
911
911
  requestId: string;
912
912
  };
913
913
  outputFormat: "json";
914
- status: 400;
914
+ status: 401;
915
915
  input: {
916
916
  query?: {
917
917
  asset?: string | string[];
@@ -927,14 +927,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
927
927
  } | {
928
928
  output: {
929
929
  error: {
930
- code: "api_key_invalid" | "api_key_missing";
930
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
931
931
  details?: readonly Response.error.Detail[] | undefined;
932
932
  message: string;
933
933
  };
934
934
  requestId: string;
935
935
  };
936
936
  outputFormat: "json";
937
- status: 401;
937
+ status: 403;
938
938
  input: {
939
939
  query?: {
940
940
  asset?: string | string[];
@@ -950,14 +950,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
950
950
  } | {
951
951
  output: {
952
952
  error: {
953
- code: "api_key_forbidden" | "api_key_ip_forbidden";
953
+ code: "payment_required" | "rate_limit_exceeded";
954
954
  details?: readonly Response.error.Detail[] | undefined;
955
955
  message: string;
956
956
  };
957
957
  requestId: string;
958
958
  };
959
959
  outputFormat: "json";
960
- status: 403;
960
+ status: 429;
961
961
  input: {
962
962
  query?: {
963
963
  asset?: string | string[];
@@ -973,14 +973,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
973
973
  } | {
974
974
  output: {
975
975
  error: {
976
- code: "payment_required" | "rate_limit_exceeded";
976
+ code: "query_invalid";
977
977
  details?: readonly Response.error.Detail[] | undefined;
978
978
  message: string;
979
979
  };
980
980
  requestId: string;
981
981
  };
982
982
  outputFormat: "json";
983
- status: 429;
983
+ status: 400;
984
984
  input: {
985
985
  query?: {
986
986
  asset?: string | string[];
@@ -996,14 +996,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
996
996
  } | {
997
997
  output: {
998
998
  error: {
999
- code: "query_invalid";
999
+ code: "upstream_error";
1000
1000
  details?: readonly Response.error.Detail[] | undefined;
1001
1001
  message: string;
1002
1002
  };
1003
1003
  requestId: string;
1004
1004
  };
1005
1005
  outputFormat: "json";
1006
- status: 400;
1006
+ status: 502;
1007
1007
  input: {
1008
1008
  query?: {
1009
1009
  asset?: string | string[];
@@ -1144,14 +1144,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1144
1144
  } | {
1145
1145
  output: {
1146
1146
  error: {
1147
- code: "upstream_error";
1147
+ code: "api_key_malformed";
1148
1148
  details?: readonly Response.error.Detail[] | undefined;
1149
1149
  message: string;
1150
1150
  };
1151
1151
  requestId: string;
1152
1152
  };
1153
1153
  outputFormat: "json";
1154
- status: 502;
1154
+ status: 400;
1155
1155
  input: {
1156
1156
  query?: {
1157
1157
  asset?: string | string[];
@@ -1167,14 +1167,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1167
1167
  } | {
1168
1168
  output: {
1169
1169
  error: {
1170
- code: "api_key_malformed";
1170
+ code: "api_key_invalid" | "api_key_missing";
1171
1171
  details?: readonly Response.error.Detail[] | undefined;
1172
1172
  message: string;
1173
1173
  };
1174
1174
  requestId: string;
1175
1175
  };
1176
1176
  outputFormat: "json";
1177
- status: 400;
1177
+ status: 401;
1178
1178
  input: {
1179
1179
  query?: {
1180
1180
  asset?: string | string[];
@@ -1190,14 +1190,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1190
1190
  } | {
1191
1191
  output: {
1192
1192
  error: {
1193
- code: "api_key_invalid" | "api_key_missing";
1193
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1194
1194
  details?: readonly Response.error.Detail[] | undefined;
1195
1195
  message: string;
1196
1196
  };
1197
1197
  requestId: string;
1198
1198
  };
1199
1199
  outputFormat: "json";
1200
- status: 401;
1200
+ status: 403;
1201
1201
  input: {
1202
1202
  query?: {
1203
1203
  asset?: string | string[];
@@ -1213,14 +1213,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1213
1213
  } | {
1214
1214
  output: {
1215
1215
  error: {
1216
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1216
+ code: "payment_required" | "rate_limit_exceeded";
1217
1217
  details?: readonly Response.error.Detail[] | undefined;
1218
1218
  message: string;
1219
1219
  };
1220
1220
  requestId: string;
1221
1221
  };
1222
1222
  outputFormat: "json";
1223
- status: 403;
1223
+ status: 429;
1224
1224
  input: {
1225
1225
  query?: {
1226
1226
  asset?: string | string[];
@@ -1236,14 +1236,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1236
1236
  } | {
1237
1237
  output: {
1238
1238
  error: {
1239
- code: "payment_required" | "rate_limit_exceeded";
1239
+ code: "query_invalid";
1240
1240
  details?: readonly Response.error.Detail[] | undefined;
1241
1241
  message: string;
1242
1242
  };
1243
1243
  requestId: string;
1244
1244
  };
1245
1245
  outputFormat: "json";
1246
- status: 429;
1246
+ status: 400;
1247
1247
  input: {
1248
1248
  query?: {
1249
1249
  asset?: string | string[];
@@ -1259,14 +1259,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1259
1259
  } | {
1260
1260
  output: {
1261
1261
  error: {
1262
- code: "query_invalid";
1262
+ code: "upstream_error";
1263
1263
  details?: readonly Response.error.Detail[] | undefined;
1264
1264
  message: string;
1265
1265
  };
1266
1266
  requestId: string;
1267
1267
  };
1268
1268
  outputFormat: "json";
1269
- status: 400;
1269
+ status: 502;
1270
1270
  input: {
1271
1271
  query?: {
1272
1272
  asset?: string | string[];
@@ -1408,7 +1408,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1408
1408
  } | {
1409
1409
  output: {
1410
1410
  error: {
1411
- code: "chain_id_unsupported";
1411
+ code: "api_key_malformed";
1412
1412
  details?: readonly Response.error.Detail[] | undefined;
1413
1413
  message: string;
1414
1414
  };
@@ -1432,14 +1432,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1432
1432
  } | {
1433
1433
  output: {
1434
1434
  error: {
1435
- code: "upstream_error";
1435
+ code: "api_key_invalid" | "api_key_missing";
1436
1436
  details?: readonly Response.error.Detail[] | undefined;
1437
1437
  message: string;
1438
1438
  };
1439
1439
  requestId: string;
1440
1440
  };
1441
1441
  outputFormat: "json";
1442
- status: 502;
1442
+ status: 401;
1443
1443
  input: {
1444
1444
  param: {
1445
1445
  address: `0x${string}`;
@@ -1456,14 +1456,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1456
1456
  } | {
1457
1457
  output: {
1458
1458
  error: {
1459
- code: "api_key_malformed";
1459
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1460
1460
  details?: readonly Response.error.Detail[] | undefined;
1461
1461
  message: string;
1462
1462
  };
1463
1463
  requestId: string;
1464
1464
  };
1465
1465
  outputFormat: "json";
1466
- status: 400;
1466
+ status: 403;
1467
1467
  input: {
1468
1468
  param: {
1469
1469
  address: `0x${string}`;
@@ -1480,14 +1480,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1480
1480
  } | {
1481
1481
  output: {
1482
1482
  error: {
1483
- code: "api_key_invalid" | "api_key_missing";
1483
+ code: "payment_required" | "rate_limit_exceeded";
1484
1484
  details?: readonly Response.error.Detail[] | undefined;
1485
1485
  message: string;
1486
1486
  };
1487
1487
  requestId: string;
1488
1488
  };
1489
1489
  outputFormat: "json";
1490
- status: 401;
1490
+ status: 429;
1491
1491
  input: {
1492
1492
  param: {
1493
1493
  address: `0x${string}`;
@@ -1504,14 +1504,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1504
1504
  } | {
1505
1505
  output: {
1506
1506
  error: {
1507
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1507
+ code: "query_invalid";
1508
1508
  details?: readonly Response.error.Detail[] | undefined;
1509
1509
  message: string;
1510
1510
  };
1511
1511
  requestId: string;
1512
1512
  };
1513
1513
  outputFormat: "json";
1514
- status: 403;
1514
+ status: 400;
1515
1515
  input: {
1516
1516
  param: {
1517
1517
  address: `0x${string}`;
@@ -1528,14 +1528,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1528
1528
  } | {
1529
1529
  output: {
1530
1530
  error: {
1531
- code: "payment_required" | "rate_limit_exceeded";
1531
+ code: "upstream_error";
1532
1532
  details?: readonly Response.error.Detail[] | undefined;
1533
1533
  message: string;
1534
1534
  };
1535
1535
  requestId: string;
1536
1536
  };
1537
1537
  outputFormat: "json";
1538
- status: 429;
1538
+ status: 502;
1539
1539
  input: {
1540
1540
  param: {
1541
1541
  address: `0x${string}`;
@@ -1552,7 +1552,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1552
1552
  } | {
1553
1553
  output: {
1554
1554
  error: {
1555
- code: "query_invalid";
1555
+ code: "chain_id_invalid";
1556
1556
  details?: readonly Response.error.Detail[] | undefined;
1557
1557
  message: string;
1558
1558
  };
@@ -1576,7 +1576,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1576
1576
  } | {
1577
1577
  output: {
1578
1578
  error: {
1579
- code: "chain_id_invalid";
1579
+ code: "chain_id_unsupported";
1580
1580
  details?: readonly Response.error.Detail[] | undefined;
1581
1581
  message: string;
1582
1582
  };
@@ -1709,7 +1709,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1709
1709
  } | {
1710
1710
  output: {
1711
1711
  error: {
1712
- code: "chain_id_unsupported";
1712
+ code: "api_key_malformed";
1713
1713
  details?: readonly Response.error.Detail[] | undefined;
1714
1714
  message: string;
1715
1715
  };
@@ -1730,14 +1730,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1730
1730
  } | {
1731
1731
  output: {
1732
1732
  error: {
1733
- code: "upstream_error";
1733
+ code: "api_key_invalid" | "api_key_missing";
1734
1734
  details?: readonly Response.error.Detail[] | undefined;
1735
1735
  message: string;
1736
1736
  };
1737
1737
  requestId: string;
1738
1738
  };
1739
1739
  outputFormat: "json";
1740
- status: 502;
1740
+ status: 401;
1741
1741
  input: {
1742
1742
  param: {
1743
1743
  address: `0x${string}`;
@@ -1751,14 +1751,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1751
1751
  } | {
1752
1752
  output: {
1753
1753
  error: {
1754
- code: "api_key_malformed";
1754
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1755
1755
  details?: readonly Response.error.Detail[] | undefined;
1756
1756
  message: string;
1757
1757
  };
1758
1758
  requestId: string;
1759
1759
  };
1760
1760
  outputFormat: "json";
1761
- status: 400;
1761
+ status: 403;
1762
1762
  input: {
1763
1763
  param: {
1764
1764
  address: `0x${string}`;
@@ -1772,14 +1772,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1772
1772
  } | {
1773
1773
  output: {
1774
1774
  error: {
1775
- code: "api_key_invalid" | "api_key_missing";
1775
+ code: "payment_required" | "rate_limit_exceeded";
1776
1776
  details?: readonly Response.error.Detail[] | undefined;
1777
1777
  message: string;
1778
1778
  };
1779
1779
  requestId: string;
1780
1780
  };
1781
1781
  outputFormat: "json";
1782
- status: 401;
1782
+ status: 429;
1783
1783
  input: {
1784
1784
  param: {
1785
1785
  address: `0x${string}`;
@@ -1793,14 +1793,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1793
1793
  } | {
1794
1794
  output: {
1795
1795
  error: {
1796
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1796
+ code: "query_invalid";
1797
1797
  details?: readonly Response.error.Detail[] | undefined;
1798
1798
  message: string;
1799
1799
  };
1800
1800
  requestId: string;
1801
1801
  };
1802
1802
  outputFormat: "json";
1803
- status: 403;
1803
+ status: 400;
1804
1804
  input: {
1805
1805
  param: {
1806
1806
  address: `0x${string}`;
@@ -1814,14 +1814,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1814
1814
  } | {
1815
1815
  output: {
1816
1816
  error: {
1817
- code: "payment_required" | "rate_limit_exceeded";
1817
+ code: "upstream_error";
1818
1818
  details?: readonly Response.error.Detail[] | undefined;
1819
1819
  message: string;
1820
1820
  };
1821
1821
  requestId: string;
1822
1822
  };
1823
1823
  outputFormat: "json";
1824
- status: 429;
1824
+ status: 502;
1825
1825
  input: {
1826
1826
  param: {
1827
1827
  address: `0x${string}`;
@@ -1835,7 +1835,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1835
1835
  } | {
1836
1836
  output: {
1837
1837
  error: {
1838
- code: "query_invalid";
1838
+ code: "chain_id_invalid";
1839
1839
  details?: readonly Response.error.Detail[] | undefined;
1840
1840
  message: string;
1841
1841
  };
@@ -1856,7 +1856,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1856
1856
  } | {
1857
1857
  output: {
1858
1858
  error: {
1859
- code: "chain_id_invalid";
1859
+ code: "chain_id_unsupported";
1860
1860
  details?: readonly Response.error.Detail[] | undefined;
1861
1861
  message: string;
1862
1862
  };
@@ -1962,7 +1962,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1962
1962
  } | {
1963
1963
  output: {
1964
1964
  error: {
1965
- code: "chain_id_unsupported";
1965
+ code: "api_key_malformed";
1966
1966
  details?: readonly Response.error.Detail[] | undefined;
1967
1967
  message: string;
1968
1968
  };
@@ -1984,14 +1984,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
1984
1984
  } | {
1985
1985
  output: {
1986
1986
  error: {
1987
- code: "upstream_error";
1987
+ code: "api_key_invalid" | "api_key_missing";
1988
1988
  details?: readonly Response.error.Detail[] | undefined;
1989
1989
  message: string;
1990
1990
  };
1991
1991
  requestId: string;
1992
1992
  };
1993
1993
  outputFormat: "json";
1994
- status: 502;
1994
+ status: 401;
1995
1995
  input: {
1996
1996
  param: {
1997
1997
  address: `0x${string}`;
@@ -2006,14 +2006,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2006
2006
  } | {
2007
2007
  output: {
2008
2008
  error: {
2009
- code: "api_key_malformed";
2009
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2010
2010
  details?: readonly Response.error.Detail[] | undefined;
2011
2011
  message: string;
2012
2012
  };
2013
2013
  requestId: string;
2014
2014
  };
2015
2015
  outputFormat: "json";
2016
- status: 400;
2016
+ status: 403;
2017
2017
  input: {
2018
2018
  param: {
2019
2019
  address: `0x${string}`;
@@ -2028,14 +2028,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2028
2028
  } | {
2029
2029
  output: {
2030
2030
  error: {
2031
- code: "api_key_invalid" | "api_key_missing";
2031
+ code: "payment_required" | "rate_limit_exceeded";
2032
2032
  details?: readonly Response.error.Detail[] | undefined;
2033
2033
  message: string;
2034
2034
  };
2035
2035
  requestId: string;
2036
2036
  };
2037
2037
  outputFormat: "json";
2038
- status: 401;
2038
+ status: 429;
2039
2039
  input: {
2040
2040
  param: {
2041
2041
  address: `0x${string}`;
@@ -2050,14 +2050,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2050
2050
  } | {
2051
2051
  output: {
2052
2052
  error: {
2053
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2053
+ code: "query_invalid";
2054
2054
  details?: readonly Response.error.Detail[] | undefined;
2055
2055
  message: string;
2056
2056
  };
2057
2057
  requestId: string;
2058
2058
  };
2059
2059
  outputFormat: "json";
2060
- status: 403;
2060
+ status: 400;
2061
2061
  input: {
2062
2062
  param: {
2063
2063
  address: `0x${string}`;
@@ -2072,14 +2072,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2072
2072
  } | {
2073
2073
  output: {
2074
2074
  error: {
2075
- code: "payment_required" | "rate_limit_exceeded";
2075
+ code: "upstream_error";
2076
2076
  details?: readonly Response.error.Detail[] | undefined;
2077
2077
  message: string;
2078
2078
  };
2079
2079
  requestId: string;
2080
2080
  };
2081
2081
  outputFormat: "json";
2082
- status: 429;
2082
+ status: 502;
2083
2083
  input: {
2084
2084
  param: {
2085
2085
  address: `0x${string}`;
@@ -2094,7 +2094,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2094
2094
  } | {
2095
2095
  output: {
2096
2096
  error: {
2097
- code: "query_invalid";
2097
+ code: "chain_id_invalid";
2098
2098
  details?: readonly Response.error.Detail[] | undefined;
2099
2099
  message: string;
2100
2100
  };
@@ -2116,7 +2116,7 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2116
2116
  } | {
2117
2117
  output: {
2118
2118
  error: {
2119
- code: "chain_id_invalid";
2119
+ code: "chain_id_unsupported";
2120
2120
  details?: readonly Response.error.Detail[] | undefined;
2121
2121
  message: string;
2122
2122
  };
@@ -2254,14 +2254,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2254
2254
  } | {
2255
2255
  output: {
2256
2256
  error: {
2257
- code: "upstream_error";
2257
+ code: "api_key_malformed";
2258
2258
  details?: readonly Response.error.Detail[] | undefined;
2259
2259
  message: string;
2260
2260
  };
2261
2261
  requestId: string;
2262
2262
  };
2263
2263
  outputFormat: "json";
2264
- status: 502;
2264
+ status: 400;
2265
2265
  input: {
2266
2266
  param: {
2267
2267
  vaultId: `0x${string}`;
@@ -2276,14 +2276,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2276
2276
  } | {
2277
2277
  output: {
2278
2278
  error: {
2279
- code: "api_key_malformed";
2279
+ code: "api_key_invalid" | "api_key_missing";
2280
2280
  details?: readonly Response.error.Detail[] | undefined;
2281
2281
  message: string;
2282
2282
  };
2283
2283
  requestId: string;
2284
2284
  };
2285
2285
  outputFormat: "json";
2286
- status: 400;
2286
+ status: 401;
2287
2287
  input: {
2288
2288
  param: {
2289
2289
  vaultId: `0x${string}`;
@@ -2298,14 +2298,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2298
2298
  } | {
2299
2299
  output: {
2300
2300
  error: {
2301
- code: "api_key_invalid" | "api_key_missing";
2301
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
2302
2302
  details?: readonly Response.error.Detail[] | undefined;
2303
2303
  message: string;
2304
2304
  };
2305
2305
  requestId: string;
2306
2306
  };
2307
2307
  outputFormat: "json";
2308
- status: 401;
2308
+ status: 403;
2309
2309
  input: {
2310
2310
  param: {
2311
2311
  vaultId: `0x${string}`;
@@ -2320,14 +2320,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2320
2320
  } | {
2321
2321
  output: {
2322
2322
  error: {
2323
- code: "api_key_forbidden" | "api_key_ip_forbidden";
2323
+ code: "payment_required" | "rate_limit_exceeded";
2324
2324
  details?: readonly Response.error.Detail[] | undefined;
2325
2325
  message: string;
2326
2326
  };
2327
2327
  requestId: string;
2328
2328
  };
2329
2329
  outputFormat: "json";
2330
- status: 403;
2330
+ status: 429;
2331
2331
  input: {
2332
2332
  param: {
2333
2333
  vaultId: `0x${string}`;
@@ -2342,14 +2342,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2342
2342
  } | {
2343
2343
  output: {
2344
2344
  error: {
2345
- code: "payment_required" | "rate_limit_exceeded";
2345
+ code: "query_invalid";
2346
2346
  details?: readonly Response.error.Detail[] | undefined;
2347
2347
  message: string;
2348
2348
  };
2349
2349
  requestId: string;
2350
2350
  };
2351
2351
  outputFormat: "json";
2352
- status: 429;
2352
+ status: 400;
2353
2353
  input: {
2354
2354
  param: {
2355
2355
  vaultId: `0x${string}`;
@@ -2364,14 +2364,14 @@ export declare function earn(options?: earn.Options): import("hono/hono-base").H
2364
2364
  } | {
2365
2365
  output: {
2366
2366
  error: {
2367
- code: "query_invalid";
2367
+ code: "upstream_error";
2368
2368
  details?: readonly Response.error.Detail[] | undefined;
2369
2369
  message: string;
2370
2370
  };
2371
2371
  requestId: string;
2372
2372
  };
2373
2373
  outputFormat: "json";
2374
- status: 400;
2374
+ status: 502;
2375
2375
  input: {
2376
2376
  param: {
2377
2377
  vaultId: `0x${string}`;