tapimo 0.12.0 → 0.13.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 (257) hide show
  1. package/dist/App.d.ts +5561 -5026
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +38 -3
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +2 -0
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +17 -0
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/admin/App.d.ts +123 -74
  10. package/dist/admin/App.d.ts.map +1 -1
  11. package/dist/admin/apps/api-keys.d.ts +80 -0
  12. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  13. package/dist/admin/apps/api-keys.js +54 -0
  14. package/dist/admin/apps/api-keys.js.map +1 -1
  15. package/dist/admin/apps/earn-vaults.d.ts +15 -15
  16. package/dist/admin/apps/earn-vaults.js +1 -1
  17. package/dist/admin/apps/verified-tokens.d.ts +81 -81
  18. package/dist/admin/ui.generated.d.ts +1 -1
  19. package/dist/admin/ui.generated.d.ts.map +1 -1
  20. package/dist/admin/ui.generated.js +151 -151
  21. package/dist/admin/ui.generated.js.map +1 -1
  22. package/dist/apps/Zones.d.ts +16 -16
  23. package/dist/apps/Zones.js +4 -4
  24. package/dist/apps/data/App.js +18 -18
  25. package/dist/apps/data/App.js.map +1 -1
  26. package/dist/apps/data/ZoneSelection.d.ts +8 -8
  27. package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
  28. package/dist/apps/data/ZoneSelection.js +1 -1
  29. package/dist/apps/data/ZoneSelection.js.map +1 -1
  30. package/dist/apps/data/routes/activities.d.ts +588 -584
  31. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  32. package/dist/apps/data/routes/activities.js +1561 -1239
  33. package/dist/apps/data/routes/activities.js.map +1 -1
  34. package/dist/apps/data/routes/balances.d.ts +26 -26
  35. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  36. package/dist/apps/data/routes/balances.js +43 -16
  37. package/dist/apps/data/routes/balances.js.map +1 -1
  38. package/dist/apps/data/routes/blocks.d.ts +44 -44
  39. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  40. package/dist/apps/data/routes/blocks.js +21 -11
  41. package/dist/apps/data/routes/blocks.js.map +1 -1
  42. package/dist/apps/data/routes/coingecko.d.ts +3 -3
  43. package/dist/apps/data/routes/earn.d.ts +18 -18
  44. package/dist/apps/data/routes/earn.js +13 -13
  45. package/dist/apps/data/routes/exchanges.d.ts +145 -145
  46. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  47. package/dist/apps/data/routes/receipts.d.ts +155 -55
  48. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  49. package/dist/apps/data/routes/receipts.js +28 -10
  50. package/dist/apps/data/routes/receipts.js.map +1 -1
  51. package/dist/apps/data/routes/tokenlist.d.ts +13 -13
  52. package/dist/apps/data/routes/tokens.d.ts +98 -98
  53. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  54. package/dist/apps/data/routes/tokens.js +51 -20
  55. package/dist/apps/data/routes/tokens.js.map +1 -1
  56. package/dist/apps/data/routes/transactions.d.ts +7 -2
  57. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  58. package/dist/apps/data/routes/transactions.js +37 -17
  59. package/dist/apps/data/routes/transactions.js.map +1 -1
  60. package/dist/apps/data/routes/transfers.d.ts +1 -1
  61. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  62. package/dist/apps/data/routes/transfers.js +18 -12
  63. package/dist/apps/data/routes/transfers.js.map +1 -1
  64. package/dist/apps/data/routes/valuation.d.ts +1 -1
  65. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  66. package/dist/apps/data/routes/valuation.js +12 -7
  67. package/dist/apps/data/routes/valuation.js.map +1 -1
  68. package/dist/apps/data/routes/verified-tokens.d.ts +3 -3
  69. package/dist/apps/data/routes/webhooks.d.ts +11 -11
  70. package/dist/apps/data/routes/zones.d.ts +14 -14
  71. package/dist/apps/data/routes/zones.js +1 -1
  72. package/dist/apps/funding/App.d.ts +11 -0
  73. package/dist/apps/funding/App.d.ts.map +1 -1
  74. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  75. package/dist/apps/funding/routes/deposit-addresses.js +16 -11
  76. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  77. package/dist/apps/funding/routes/transfers.d.ts +60 -48
  78. package/dist/apps/funding/routes/transfers.d.ts.map +1 -1
  79. package/dist/apps/funding/routes/transfers.js +27 -19
  80. package/dist/apps/funding/routes/transfers.js.map +1 -1
  81. package/dist/apps/management/App.d.ts +4487 -3963
  82. package/dist/apps/management/App.d.ts.map +1 -1
  83. package/dist/apps/management/routes/api-keys.d.ts +710 -159
  84. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  85. package/dist/apps/management/routes/api-keys.js +236 -4
  86. package/dist/apps/management/routes/api-keys.js.map +1 -1
  87. package/dist/apps/management/routes/faucet.d.ts +6 -6
  88. package/dist/apps/management/routes/invite-links.d.ts +42 -42
  89. package/dist/apps/management/routes/members.d.ts +30 -30
  90. package/dist/apps/management/routes/projects.d.ts +40 -40
  91. package/dist/apps/management/routes/usage.d.ts +24 -24
  92. package/dist/apps/management/routes/verified-token-requests.d.ts +1 -1
  93. package/dist/apps/management/routes/webhooks.d.ts +55 -55
  94. package/dist/db/Db.d.ts.map +1 -1
  95. package/dist/db/Db.js +12 -1
  96. package/dist/db/Db.js.map +1 -1
  97. package/dist/db/Schema.d.ts +3 -2
  98. package/dist/db/Schema.d.ts.map +1 -1
  99. package/dist/db/Schema.js +5 -2
  100. package/dist/db/Schema.js.map +1 -1
  101. package/dist/db/tables/fundingCatalog.d.ts +4 -2
  102. package/dist/db/tables/fundingCatalog.d.ts.map +1 -1
  103. package/dist/db/tables/fundingCatalog.js +5 -1
  104. package/dist/db/tables/fundingCatalog.js.map +1 -1
  105. package/dist/handlers/internal/utils.d.ts.map +1 -1
  106. package/dist/handlers/internal/utils.js +9 -0
  107. package/dist/handlers/internal/utils.js.map +1 -1
  108. package/dist/internal/Auth.d.ts +3 -1
  109. package/dist/internal/Auth.d.ts.map +1 -1
  110. package/dist/internal/Auth.js +6 -3
  111. package/dist/internal/Auth.js.map +1 -1
  112. package/dist/internal/EarnVaults.d.ts +3 -3
  113. package/dist/internal/EarnVaults.js +3 -3
  114. package/dist/internal/Fetch.d.ts +23 -0
  115. package/dist/internal/Fetch.d.ts.map +1 -0
  116. package/dist/internal/Fetch.js +26 -0
  117. package/dist/internal/Fetch.js.map +1 -0
  118. package/dist/internal/Log.d.ts +3 -1
  119. package/dist/internal/Log.d.ts.map +1 -1
  120. package/dist/internal/Log.js +16 -3
  121. package/dist/internal/Log.js.map +1 -1
  122. package/dist/internal/OpenApi.d.ts +5 -3
  123. package/dist/internal/OpenApi.d.ts.map +1 -1
  124. package/dist/internal/OpenApi.js +13 -3
  125. package/dist/internal/OpenApi.js.map +1 -1
  126. package/dist/internal/Response.d.ts +1 -1
  127. package/dist/internal/Response.d.ts.map +1 -1
  128. package/dist/internal/Schema.d.ts +6 -3
  129. package/dist/internal/Schema.d.ts.map +1 -1
  130. package/dist/internal/Schema.js +8 -2
  131. package/dist/internal/Schema.js.map +1 -1
  132. package/dist/internal/Store.d.ts +16 -3
  133. package/dist/internal/Store.d.ts.map +1 -1
  134. package/dist/internal/Store.js +82 -16
  135. package/dist/internal/Store.js.map +1 -1
  136. package/dist/internal/Tidx.d.ts.map +1 -1
  137. package/dist/internal/Tidx.js +7 -2
  138. package/dist/internal/Tidx.js.map +1 -1
  139. package/dist/internal/Timeout.d.ts +36 -0
  140. package/dist/internal/Timeout.d.ts.map +1 -0
  141. package/dist/internal/Timeout.js +37 -0
  142. package/dist/internal/Timeout.js.map +1 -0
  143. package/dist/internal/Timing.d.ts +9 -0
  144. package/dist/internal/Timing.d.ts.map +1 -1
  145. package/dist/internal/Timing.js +7 -0
  146. package/dist/internal/Timing.js.map +1 -1
  147. package/dist/internal/WebhookDestination.d.ts.map +1 -1
  148. package/dist/internal/WebhookDestination.js +3 -0
  149. package/dist/internal/WebhookDestination.js.map +1 -1
  150. package/dist/internal/funding/Action.d.ts +9 -0
  151. package/dist/internal/funding/Action.d.ts.map +1 -1
  152. package/dist/internal/funding/Action.js +16 -8
  153. package/dist/internal/funding/Action.js.map +1 -1
  154. package/dist/internal/funding/Catalog.d.ts +9 -2
  155. package/dist/internal/funding/Catalog.d.ts.map +1 -1
  156. package/dist/internal/funding/Catalog.js +19 -8
  157. package/dist/internal/funding/Catalog.js.map +1 -1
  158. package/dist/internal/funding/Provider.d.ts +68 -13
  159. package/dist/internal/funding/Provider.d.ts.map +1 -1
  160. package/dist/internal/funding/Provider.js +29 -8
  161. package/dist/internal/funding/Provider.js.map +1 -1
  162. package/dist/internal/funding/Transfer.d.ts +13 -12
  163. package/dist/internal/funding/Transfer.d.ts.map +1 -1
  164. package/dist/internal/funding/Transfer.js +23 -21
  165. package/dist/internal/funding/Transfer.js.map +1 -1
  166. package/dist/internal/funding/providers/stargate.d.ts +28 -9
  167. package/dist/internal/funding/providers/stargate.d.ts.map +1 -1
  168. package/dist/internal/funding/providers/stargate.js +251 -117
  169. package/dist/internal/funding/providers/stargate.js.map +1 -1
  170. package/dist/internal/index.d.ts +1 -0
  171. package/dist/internal/index.d.ts.map +1 -1
  172. package/dist/internal/index.js +1 -0
  173. package/dist/internal/index.js.map +1 -1
  174. package/package.json +2 -2
  175. package/src/App.test.ts +100 -0
  176. package/src/App.ts +42 -3
  177. package/src/Client.test-d.ts +46 -0
  178. package/src/Scope.test.ts +20 -0
  179. package/src/Scope.ts +16 -0
  180. package/src/admin/apps/api-keys.test.ts +75 -0
  181. package/src/admin/apps/api-keys.ts +64 -0
  182. package/src/admin/apps/earn-vaults.test.ts +1 -1
  183. package/src/admin/apps/earn-vaults.ts +1 -1
  184. package/src/admin/ui/src/lib/api-keys.ts +19 -0
  185. package/src/admin/ui/src/routes/api-keys.tsx +89 -2
  186. package/src/admin/ui.generated.ts +189 -151
  187. package/src/apps/Zones.test.ts +4 -4
  188. package/src/apps/Zones.ts +4 -4
  189. package/src/apps/composition.test.ts +1 -1
  190. package/src/apps/data/App.test.ts +41 -0
  191. package/src/apps/data/App.ts +18 -18
  192. package/src/apps/data/ZoneSelection.test.ts +2 -2
  193. package/src/apps/data/ZoneSelection.ts +8 -8
  194. package/src/apps/data/routes/activities.test.ts +1526 -12
  195. package/src/apps/data/routes/activities.ts +1774 -1356
  196. package/src/apps/data/routes/balances.ts +133 -97
  197. package/src/apps/data/routes/blocks.test.ts +533 -0
  198. package/src/apps/data/routes/blocks.ts +35 -16
  199. package/src/apps/data/routes/earn.test.ts +4 -2
  200. package/src/apps/data/routes/earn.ts +13 -13
  201. package/src/apps/data/routes/earn.zone-access.test.ts +6 -6
  202. package/src/apps/data/routes/receipts.ts +47 -16
  203. package/src/apps/data/routes/tokens.test.ts +578 -0
  204. package/src/apps/data/routes/tokens.ts +283 -225
  205. package/src/apps/data/routes/transactions.ts +68 -29
  206. package/src/apps/data/routes/transfers.test.ts +421 -0
  207. package/src/apps/data/routes/transfers.ts +45 -27
  208. package/src/apps/data/routes/valuation.ts +94 -78
  209. package/src/apps/data/routes/zones.test.ts +2 -2
  210. package/src/apps/data/routes/zones.ts +1 -1
  211. package/src/apps/funding/routes/deposit-addresses.test.ts +25 -3
  212. package/src/apps/funding/routes/deposit-addresses.ts +17 -12
  213. package/src/apps/funding/routes/quotes.test.ts +5 -9
  214. package/src/apps/funding/routes/transfers.test.ts +395 -8
  215. package/src/apps/funding/routes/transfers.ts +76 -59
  216. package/src/apps/management/routes/api-keys.test.ts +220 -0
  217. package/src/apps/management/routes/api-keys.ts +280 -3
  218. package/src/db/Db.ts +13 -1
  219. package/src/db/Schema.ts +5 -2
  220. package/src/db/tables/earnVaults.test.ts +9 -9
  221. package/src/db/tables/fundingCatalog.test.ts +16 -2
  222. package/src/db/tables/fundingCatalog.ts +9 -3
  223. package/src/handlers/internal/utils.test.ts +53 -0
  224. package/src/handlers/internal/utils.ts +15 -0
  225. package/src/internal/Auth.ts +12 -4
  226. package/src/internal/EarnVaults.capabilities.test.ts +2 -2
  227. package/src/internal/EarnVaults.test.ts +1 -1
  228. package/src/internal/EarnVaults.ts +3 -3
  229. package/src/internal/Fetch.test.ts +46 -0
  230. package/src/internal/Fetch.ts +56 -0
  231. package/src/internal/Log.test.ts +21 -0
  232. package/src/internal/Log.ts +20 -5
  233. package/src/internal/OpenApi.ts +14 -4
  234. package/src/internal/Response.ts +1 -1
  235. package/src/internal/Schema.test.ts +2 -0
  236. package/src/internal/Schema.ts +12 -2
  237. package/src/internal/Store.test.ts +178 -0
  238. package/src/internal/Store.ts +104 -18
  239. package/src/internal/Tidx.test.ts +2 -1
  240. package/src/internal/Tidx.ts +7 -2
  241. package/src/internal/Timeout.test.ts +35 -0
  242. package/src/internal/Timeout.ts +73 -0
  243. package/src/internal/Timing.ts +16 -0
  244. package/src/internal/WebhookDestination.ts +3 -0
  245. package/src/internal/funding/Action.test.ts +41 -1
  246. package/src/internal/funding/Action.ts +69 -41
  247. package/src/internal/funding/Catalog.test.ts +34 -0
  248. package/src/internal/funding/Catalog.ts +28 -11
  249. package/src/internal/funding/Provider.test.ts +73 -0
  250. package/src/internal/funding/Provider.ts +82 -28
  251. package/src/internal/funding/Transfer.ts +133 -110
  252. package/src/internal/funding/providers/index.test.ts +4 -167
  253. package/src/internal/funding/providers/relay.test.ts +2 -2
  254. package/src/internal/funding/providers/stargate.test.ts +163 -0
  255. package/src/internal/funding/providers/stargate.ts +359 -134
  256. package/src/internal/index.test.ts +1 -0
  257. package/src/internal/index.ts +1 -0
@@ -856,6 +856,55 @@ export declare function create(options: create.Options): import("hono/hono-base"
856
856
  };
857
857
  };
858
858
  };
859
+ } & {
860
+ "/:id/rotate": {
861
+ $post: {
862
+ output: {
863
+ error: {
864
+ code: "not_found";
865
+ details?: readonly Response.error.Detail[] | undefined;
866
+ message: string;
867
+ };
868
+ requestId: string;
869
+ };
870
+ outputFormat: "json";
871
+ status: 404;
872
+ input: {
873
+ param: {
874
+ id: string;
875
+ };
876
+ };
877
+ } | {
878
+ output: {
879
+ allowedIps: readonly string[];
880
+ billingActive?: boolean | undefined;
881
+ environment: "production" | "sandbox";
882
+ id: string;
883
+ name?: string | undefined;
884
+ orgId: string;
885
+ projectId?: string | undefined;
886
+ rateLimits?: {
887
+ [x: string]: {
888
+ limit: number;
889
+ period: "minute" | "second";
890
+ };
891
+ } | undefined;
892
+ scopes: readonly string[];
893
+ createdAt: string;
894
+ createdBy?: string | undefined;
895
+ expiresAt?: string | undefined;
896
+ tokenLast4: string;
897
+ token: string;
898
+ };
899
+ outputFormat: "json";
900
+ status: 200;
901
+ input: {
902
+ param: {
903
+ id: string;
904
+ };
905
+ };
906
+ };
907
+ };
859
908
  } & {
860
909
  "/:id": {
861
910
  $patch: {
@@ -1611,14 +1660,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1611
1660
  $post: {
1612
1661
  output: {
1613
1662
  error: {
1614
- code: "upstream_error";
1663
+ code: string;
1615
1664
  details?: readonly Response.error.Detail[] | undefined;
1616
1665
  message: string;
1617
1666
  };
1618
1667
  requestId: string;
1619
1668
  };
1620
1669
  outputFormat: "json";
1621
- status: 502;
1670
+ status: 400 | 413 | 415;
1622
1671
  input: {
1623
1672
  json: {
1624
1673
  address: `0x${string}`;
@@ -1634,14 +1683,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1634
1683
  } | {
1635
1684
  output: {
1636
1685
  error: {
1637
- code: "verified_token_not_found";
1686
+ code: "upstream_error";
1638
1687
  details?: readonly Response.error.Detail[] | undefined;
1639
1688
  message: string;
1640
1689
  };
1641
1690
  requestId: string;
1642
1691
  };
1643
1692
  outputFormat: "json";
1644
- status: 404;
1693
+ status: 502;
1645
1694
  input: {
1646
1695
  json: {
1647
1696
  address: `0x${string}`;
@@ -1657,7 +1706,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
1657
1706
  } | {
1658
1707
  output: {
1659
1708
  error: {
1660
- code: "assets_not_enabled";
1709
+ code: "verified_token_not_found";
1661
1710
  details?: readonly Response.error.Detail[] | undefined;
1662
1711
  message: string;
1663
1712
  };
@@ -1679,19 +1728,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
1679
1728
  };
1680
1729
  } | {
1681
1730
  output: {
1682
- data: {
1683
- address: `0x${string}`;
1684
- currency: string;
1685
- decimals: number;
1686
- logoUri?: string | undefined;
1687
- name: string;
1688
- symbol: string;
1689
- id: string;
1731
+ error: {
1732
+ code: "assets_not_enabled";
1733
+ details?: readonly Response.error.Detail[] | undefined;
1734
+ message: string;
1690
1735
  };
1691
- version: string;
1736
+ requestId: string;
1692
1737
  };
1693
1738
  outputFormat: "json";
1694
- status: import("hono/utils/http-status").ContentfulStatusCode;
1739
+ status: 404;
1695
1740
  input: {
1696
1741
  json: {
1697
1742
  address: `0x${string}`;
@@ -1706,15 +1751,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
1706
1751
  };
1707
1752
  } | {
1708
1753
  output: {
1709
- error: {
1710
- code: string;
1711
- details?: readonly Response.error.Detail[] | undefined;
1712
- message: string;
1754
+ data: {
1755
+ address: `0x${string}`;
1756
+ currency: string;
1757
+ decimals: number;
1758
+ logoUri?: string | undefined;
1759
+ name: string;
1760
+ symbol: string;
1761
+ id: string;
1713
1762
  };
1714
- requestId: string;
1763
+ version: string;
1715
1764
  };
1716
1765
  outputFormat: "json";
1717
- status: 400 | 413 | 415;
1766
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1718
1767
  input: {
1719
1768
  json: {
1720
1769
  address: `0x${string}`;
@@ -1803,14 +1852,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1803
1852
  $put: {
1804
1853
  output: {
1805
1854
  error: {
1806
- code: "upstream_error";
1855
+ code: string;
1807
1856
  details?: readonly Response.error.Detail[] | undefined;
1808
1857
  message: string;
1809
1858
  };
1810
1859
  requestId: string;
1811
1860
  };
1812
1861
  outputFormat: "json";
1813
- status: 502;
1862
+ status: 400 | 413 | 415;
1814
1863
  input: {
1815
1864
  query: {
1816
1865
  chainId: string | string[];
@@ -1830,14 +1879,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1830
1879
  } | {
1831
1880
  output: {
1832
1881
  error: {
1833
- code: "verified_token_not_found";
1882
+ code: "upstream_error";
1834
1883
  details?: readonly Response.error.Detail[] | undefined;
1835
1884
  message: string;
1836
1885
  };
1837
1886
  requestId: string;
1838
1887
  };
1839
1888
  outputFormat: "json";
1840
- status: 404;
1889
+ status: 502;
1841
1890
  input: {
1842
1891
  query: {
1843
1892
  chainId: string | string[];
@@ -1857,14 +1906,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
1857
1906
  } | {
1858
1907
  output: {
1859
1908
  error: {
1860
- code: string;
1909
+ code: "verified_token_not_found";
1861
1910
  details?: readonly Response.error.Detail[] | undefined;
1862
1911
  message: string;
1863
1912
  };
1864
1913
  requestId: string;
1865
1914
  };
1866
1915
  outputFormat: "json";
1867
- status: 400 | 413 | 415;
1916
+ status: 404;
1868
1917
  input: {
1869
1918
  query: {
1870
1919
  chainId: string | string[];
@@ -2000,14 +2049,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2000
2049
  $patch: {
2001
2050
  output: {
2002
2051
  error: {
2003
- code: "upstream_error";
2052
+ code: string;
2004
2053
  details?: readonly Response.error.Detail[] | undefined;
2005
2054
  message: string;
2006
2055
  };
2007
2056
  requestId: string;
2008
2057
  };
2009
2058
  outputFormat: "json";
2010
- status: 502;
2059
+ status: 400 | 413 | 415;
2011
2060
  input: {
2012
2061
  param: {
2013
2062
  address: `0x${string}`;
@@ -2028,14 +2077,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2028
2077
  } | {
2029
2078
  output: {
2030
2079
  error: {
2031
- code: "verified_token_not_found";
2080
+ code: "upstream_error";
2032
2081
  details?: readonly Response.error.Detail[] | undefined;
2033
2082
  message: string;
2034
2083
  };
2035
2084
  requestId: string;
2036
2085
  };
2037
2086
  outputFormat: "json";
2038
- status: 404;
2087
+ status: 502;
2039
2088
  input: {
2040
2089
  param: {
2041
2090
  address: `0x${string}`;
@@ -2055,19 +2104,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
2055
2104
  };
2056
2105
  } | {
2057
2106
  output: {
2058
- data: {
2059
- address: `0x${string}`;
2060
- currency: string;
2061
- decimals: number;
2062
- logoUri?: string | undefined;
2063
- name: string;
2064
- symbol: string;
2065
- id: string;
2107
+ error: {
2108
+ code: "verified_token_not_found";
2109
+ details?: readonly Response.error.Detail[] | undefined;
2110
+ message: string;
2066
2111
  };
2067
- version: string;
2112
+ requestId: string;
2068
2113
  };
2069
2114
  outputFormat: "json";
2070
- status: import("hono/utils/http-status").ContentfulStatusCode;
2115
+ status: 404;
2071
2116
  input: {
2072
2117
  param: {
2073
2118
  address: `0x${string}`;
@@ -2087,15 +2132,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
2087
2132
  };
2088
2133
  } | {
2089
2134
  output: {
2090
- error: {
2091
- code: string;
2092
- details?: readonly Response.error.Detail[] | undefined;
2093
- message: string;
2135
+ data: {
2136
+ address: `0x${string}`;
2137
+ currency: string;
2138
+ decimals: number;
2139
+ logoUri?: string | undefined;
2140
+ name: string;
2141
+ symbol: string;
2142
+ id: string;
2094
2143
  };
2095
- requestId: string;
2144
+ version: string;
2096
2145
  };
2097
2146
  outputFormat: "json";
2098
- status: 400 | 413 | 415;
2147
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2099
2148
  input: {
2100
2149
  param: {
2101
2150
  address: `0x${string}`;
@@ -2204,14 +2253,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2204
2253
  $delete: {
2205
2254
  output: {
2206
2255
  error: {
2207
- code: "upstream_error";
2256
+ code: string;
2208
2257
  details?: readonly Response.error.Detail[] | undefined;
2209
2258
  message: string;
2210
2259
  };
2211
2260
  requestId: string;
2212
2261
  };
2213
2262
  outputFormat: "json";
2214
- status: 502;
2263
+ status: 400 | 413 | 415;
2215
2264
  input: {
2216
2265
  param: {
2217
2266
  address: `0x${string}`;
@@ -2224,14 +2273,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2224
2273
  } | {
2225
2274
  output: {
2226
2275
  error: {
2227
- code: "verified_token_not_found";
2276
+ code: "upstream_error";
2228
2277
  details?: readonly Response.error.Detail[] | undefined;
2229
2278
  message: string;
2230
2279
  };
2231
2280
  requestId: string;
2232
2281
  };
2233
2282
  outputFormat: "json";
2234
- status: 404;
2283
+ status: 502;
2235
2284
  input: {
2236
2285
  param: {
2237
2286
  address: `0x${string}`;
@@ -2244,14 +2293,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2244
2293
  } | {
2245
2294
  output: {
2246
2295
  error: {
2247
- code: string;
2296
+ code: "verified_token_not_found";
2248
2297
  details?: readonly Response.error.Detail[] | undefined;
2249
2298
  message: string;
2250
2299
  };
2251
2300
  requestId: string;
2252
2301
  };
2253
2302
  outputFormat: "json";
2254
- status: 400 | 413 | 415;
2303
+ status: 404;
2255
2304
  input: {
2256
2305
  param: {
2257
2306
  address: `0x${string}`;
@@ -2515,14 +2564,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2515
2564
  $post: {
2516
2565
  output: {
2517
2566
  error: {
2518
- code: "upstream_error";
2567
+ code: string;
2519
2568
  details?: readonly Response.error.Detail[] | undefined;
2520
2569
  message: string;
2521
2570
  };
2522
2571
  requestId: string;
2523
2572
  };
2524
2573
  outputFormat: "json";
2525
- status: 502;
2574
+ status: 400 | 413 | 415;
2526
2575
  input: {
2527
2576
  param: {
2528
2577
  requestId: string;
@@ -2531,14 +2580,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2531
2580
  } | {
2532
2581
  output: {
2533
2582
  error: {
2534
- code: "verified_token_not_found";
2583
+ code: "upstream_error";
2535
2584
  details?: readonly Response.error.Detail[] | undefined;
2536
2585
  message: string;
2537
2586
  };
2538
2587
  requestId: string;
2539
2588
  };
2540
2589
  outputFormat: "json";
2541
- status: 404;
2590
+ status: 502;
2542
2591
  input: {
2543
2592
  param: {
2544
2593
  requestId: string;
@@ -2547,14 +2596,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2547
2596
  } | {
2548
2597
  output: {
2549
2598
  error: {
2550
- code: "request_not_pending";
2599
+ code: "verified_token_not_found";
2551
2600
  details?: readonly Response.error.Detail[] | undefined;
2552
2601
  message: string;
2553
2602
  };
2554
2603
  requestId: string;
2555
2604
  };
2556
2605
  outputFormat: "json";
2557
- status: 409;
2606
+ status: 404;
2558
2607
  input: {
2559
2608
  param: {
2560
2609
  requestId: string;
@@ -2563,14 +2612,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2563
2612
  } | {
2564
2613
  output: {
2565
2614
  error: {
2566
- code: "verified_token_request_not_found";
2615
+ code: "request_not_pending";
2567
2616
  details?: readonly Response.error.Detail[] | undefined;
2568
2617
  message: string;
2569
2618
  };
2570
2619
  requestId: string;
2571
2620
  };
2572
2621
  outputFormat: "json";
2573
- status: 404;
2622
+ status: 409;
2574
2623
  input: {
2575
2624
  param: {
2576
2625
  requestId: string;
@@ -2579,7 +2628,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2579
2628
  } | {
2580
2629
  output: {
2581
2630
  error: {
2582
- code: "assets_not_enabled";
2631
+ code: "verified_token_request_not_found";
2583
2632
  details?: readonly Response.error.Detail[] | undefined;
2584
2633
  message: string;
2585
2634
  };
@@ -2595,14 +2644,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2595
2644
  } | {
2596
2645
  output: {
2597
2646
  error: {
2598
- code: string;
2647
+ code: "assets_not_enabled";
2599
2648
  details?: readonly Response.error.Detail[] | undefined;
2600
2649
  message: string;
2601
2650
  };
2602
2651
  requestId: string;
2603
2652
  };
2604
2653
  outputFormat: "json";
2605
- status: 400 | 413 | 415;
2654
+ status: 404;
2606
2655
  input: {
2607
2656
  param: {
2608
2657
  requestId: string;
@@ -2694,14 +2743,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2694
2743
  $post: {
2695
2744
  output: {
2696
2745
  error: {
2697
- code: "upstream_error";
2746
+ code: string;
2698
2747
  details?: readonly Response.error.Detail[] | undefined;
2699
2748
  message: string;
2700
2749
  };
2701
2750
  requestId: string;
2702
2751
  };
2703
2752
  outputFormat: "json";
2704
- status: 502;
2753
+ status: 400 | 413 | 415;
2705
2754
  input: {
2706
2755
  param: {
2707
2756
  requestId: string;
@@ -2714,14 +2763,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2714
2763
  } | {
2715
2764
  output: {
2716
2765
  error: {
2717
- code: "verified_token_not_found";
2766
+ code: "upstream_error";
2718
2767
  details?: readonly Response.error.Detail[] | undefined;
2719
2768
  message: string;
2720
2769
  };
2721
2770
  requestId: string;
2722
2771
  };
2723
2772
  outputFormat: "json";
2724
- status: 404;
2773
+ status: 502;
2725
2774
  input: {
2726
2775
  param: {
2727
2776
  requestId: string;
@@ -2734,14 +2783,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2734
2783
  } | {
2735
2784
  output: {
2736
2785
  error: {
2737
- code: "request_not_pending";
2786
+ code: "verified_token_not_found";
2738
2787
  details?: readonly Response.error.Detail[] | undefined;
2739
2788
  message: string;
2740
2789
  };
2741
2790
  requestId: string;
2742
2791
  };
2743
2792
  outputFormat: "json";
2744
- status: 409;
2793
+ status: 404;
2745
2794
  input: {
2746
2795
  param: {
2747
2796
  requestId: string;
@@ -2754,14 +2803,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2754
2803
  } | {
2755
2804
  output: {
2756
2805
  error: {
2757
- code: "verified_token_request_not_found";
2806
+ code: "request_not_pending";
2758
2807
  details?: readonly Response.error.Detail[] | undefined;
2759
2808
  message: string;
2760
2809
  };
2761
2810
  requestId: string;
2762
2811
  };
2763
2812
  outputFormat: "json";
2764
- status: 404;
2813
+ status: 409;
2765
2814
  input: {
2766
2815
  param: {
2767
2816
  requestId: string;
@@ -2774,14 +2823,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
2774
2823
  } | {
2775
2824
  output: {
2776
2825
  error: {
2777
- code: string;
2826
+ code: "verified_token_request_not_found";
2778
2827
  details?: readonly Response.error.Detail[] | undefined;
2779
2828
  message: string;
2780
2829
  };
2781
2830
  requestId: string;
2782
2831
  };
2783
2832
  outputFormat: "json";
2784
- status: 400 | 413 | 415;
2833
+ status: 404;
2785
2834
  input: {
2786
2835
  param: {
2787
2836
  requestId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/admin/App.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAA;AAGjC,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,KAAK,SAAS,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,aAAa,CAAA;AAEjC,OAAO,KAAK,KAAK,KAAK,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAA;AACnD,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAA;AAW3C,iFAAiF;AACjF,MAAM,MAAM,QAAQ,GAAG;IACrB,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,kBAAkB,GAAG;QAC9B,mEAAmE;QACnE,SAAS,EAAE,SAAS,CAAC,MAAM,CAAA;QAC3B,sEAAsE;QACtE,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,SAAS,CAAA;QACjC,2CAA2C;QAC3C,QAAQ,EAAE,MAAM,CAAA;QAChB,iGAAiG;QACjG,EAAE,EAAE,EAAE,CAAC,MAAM,CAAA;QACb,8CAA8C;QAC9C,SAAS,EAAE,IAAI,CAAC,SAAS,CAAA;QACzB,gFAAgF;QAChF,QAAQ,EAAE,QA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QAC3B;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC3B;;;;WAIG;QACH,EAAE,EAAE,EAAE,CAAC,MAAM,CAAA;QACb;;;;WAIG;QACH,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,QAAQ,GAAG,IAAI,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAA;QAC1E;;;WAGG;QACH,EAAE,EAAE;YAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAA;SAAE,CAAA;QAC1B,sDAAsD;QACtD,GAAG,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,SAAS,CAAA;QACpC;;;WAGG;QACH,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,GAAG,SAAS,CAAA;QAC3B,oFAAoF;QACpF,KAAK,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,EAAE,GAAG,SAAS,CAAA;KAC5C,CAAA;IAED,mEAAmE;IACnE,KAAK,EAAE,GAAG;QACR,2EAA2E;QAC3E,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC7B,0EAA0E;QAC1E,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAC/B,CAAA;CACF"}
@@ -130,6 +130,36 @@ export declare namespace schema {
130
130
  id: z.ZodMiniString<string>;
131
131
  }, z.core.$strip>;
132
132
  }
133
+ /** Schemas for the rotateApiKey operation. */
134
+ namespace rotateApiKey {
135
+ /** Path parameters for rotating a key. */
136
+ const Params: z.ZodMiniObject<{
137
+ id: z.ZodMiniString<string>;
138
+ }, z.core.$strip>;
139
+ /** Response: the replacement record plus its one-time plaintext token. */
140
+ const Response: z.ZodMiniObject<{
141
+ allowedIps: z.ZodMiniDefault<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
142
+ billingActive: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
143
+ environment: z.ZodMiniDefault<z.ZodMiniEnum<{
144
+ production: "production";
145
+ sandbox: "sandbox";
146
+ }>>;
147
+ id: z.ZodMiniString<string>;
148
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
149
+ orgId: z.ZodMiniString<string>;
150
+ projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
151
+ rateLimits: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
152
+ limit: z.ZodMiniNumber<number>;
153
+ period: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"minute">, z.ZodMiniLiteral<"second">]>;
154
+ }, z.core.$strip>>>;
155
+ scopes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
156
+ createdAt: z.ZodMiniString<string>;
157
+ createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
158
+ expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
159
+ tokenLast4: z.ZodMiniString<string>;
160
+ token: z.ZodMiniString<string>;
161
+ }, z.core.$strip>;
162
+ }
133
163
  }
134
164
  /**
135
165
  * Provisioning routes for API keys, backed by the app's KV state store:
@@ -139,6 +169,7 @@ export declare namespace schema {
139
169
  * - `GET /` lists key records (metadata only), optionally filtered by `orgId`.
140
170
  * - `DELETE /:id` revokes a key by id (`404` if absent).
141
171
  * - `PATCH /:id` updates a key's allowlist, name, or project, or assigns its first organization.
172
+ * - `POST /:id/rotate` mints a replacement with the source key's access and attribution.
142
173
  * - `POST /backfill` rebuilds the id and org index entries for every record.
143
174
  */
144
175
  export declare function apiKeys(): import("hono/hono-base").HonoBase<App.Environment, {
@@ -319,6 +350,55 @@ export declare function apiKeys(): import("hono/hono-base").HonoBase<App.Environ
319
350
  };
320
351
  };
321
352
  };
353
+ } & {
354
+ "/:id/rotate": {
355
+ $post: {
356
+ output: {
357
+ error: {
358
+ code: "not_found";
359
+ details?: readonly Response.error.Detail[] | undefined;
360
+ message: string;
361
+ };
362
+ requestId: string;
363
+ };
364
+ outputFormat: "json";
365
+ status: 404;
366
+ input: {
367
+ param: {
368
+ id: string;
369
+ };
370
+ };
371
+ } | {
372
+ output: {
373
+ allowedIps: readonly string[];
374
+ billingActive?: boolean | undefined;
375
+ environment: "production" | "sandbox";
376
+ id: string;
377
+ name?: string | undefined;
378
+ orgId: string;
379
+ projectId?: string | undefined;
380
+ rateLimits?: {
381
+ [x: string]: {
382
+ limit: number;
383
+ period: "minute" | "second";
384
+ };
385
+ } | undefined;
386
+ scopes: readonly string[];
387
+ createdAt: string;
388
+ createdBy?: string | undefined;
389
+ expiresAt?: string | undefined;
390
+ tokenLast4: string;
391
+ token: string;
392
+ };
393
+ outputFormat: "json";
394
+ status: 200;
395
+ input: {
396
+ param: {
397
+ id: string;
398
+ };
399
+ };
400
+ };
401
+ };
322
402
  } & {
323
403
  "/:id": {
324
404
  $patch: {
@@ -1 +1 @@
1
- {"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../../../src/admin/apps/api-keys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAS7B,OAAO,KAAK,QAAQ,MAAM,4BAA4B,CAAA;AAGtD,OAAO,KAAK,KAAK,GAAG,MAAM,WAAW,CAAA;AAErC,uDAAuD;AACvD,yBAAiB,MAAM,CAAC;IAmDtB,8CAA8C;IAC9C,UAAiB,YAAY,CAAC;QAC5B;;;WAGG;QACI,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAgBhB,CAAA;QAED,8DAA8D;QACvD,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;yBAOpB,CAAA;KACF;IAED,6CAA6C;IAC7C,UAAiB,WAAW,CAAC;QAC3B,yCAAyC;QAClC,MAAM,KAAK;;yBAM4C,CAAA;QAE9D,2EAA2E;QACpE,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;yBAOpB,CAAA;KACF;IAED,8CAA8C;IAC9C,UAAiB,YAAY,CAAC;QAC5B,oEAAoE;QAC7D,MAAM,IAAI;;;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