tapimo 0.19.0 → 0.20.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 (494) hide show
  1. package/README.md +13 -5
  2. package/dist/ApiKey.d.ts +2 -2
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +2 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +85 -11
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +218 -56
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +12543 -13912
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +4 -5
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +12 -20
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +20 -36
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/admin/App.d.ts +871 -828
  19. package/dist/admin/App.d.ts.map +1 -1
  20. package/dist/admin/App.js +14 -26
  21. package/dist/admin/App.js.map +1 -1
  22. package/dist/admin/apps/api-keys.d.ts +93 -186
  23. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.js +3 -5
  25. package/dist/admin/apps/api-keys.js.map +1 -1
  26. package/dist/admin/apps/audit-logs.d.ts +18 -18
  27. package/dist/admin/apps/audit-logs.js +1 -1
  28. package/dist/admin/apps/audit-logs.js.map +1 -1
  29. package/dist/admin/apps/earn-vaults.d.ts +27 -27
  30. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  31. package/dist/admin/apps/earn-vaults.js +11 -5
  32. package/dist/admin/apps/earn-vaults.js.map +1 -1
  33. package/dist/admin/apps/organizations.d.ts +17 -17
  34. package/dist/admin/apps/prop-amms.d.ts +4 -4
  35. package/dist/admin/apps/routes-support.js +1 -38
  36. package/dist/admin/apps/routes-support.js.map +1 -1
  37. package/dist/admin/apps/routes.d.ts +153 -153
  38. package/dist/admin/apps/sentinel.d.ts +4 -4
  39. package/dist/admin/apps/verified-tokens.d.ts +24 -24
  40. package/dist/admin/apps/zone-delegation-requests.d.ts +332 -0
  41. package/dist/admin/apps/zone-delegation-requests.d.ts.map +1 -0
  42. package/dist/admin/apps/zone-delegation-requests.js +200 -0
  43. package/dist/admin/apps/zone-delegation-requests.js.map +1 -0
  44. package/dist/admin/apps/zone-delegations.d.ts +512 -52
  45. package/dist/admin/apps/zone-delegations.d.ts.map +1 -1
  46. package/dist/admin/apps/zone-delegations.js +134 -44
  47. package/dist/admin/apps/zone-delegations.js.map +1 -1
  48. package/dist/admin/index.d.ts +1 -1
  49. package/dist/admin/index.d.ts.map +1 -1
  50. package/dist/admin/index.js +1 -1
  51. package/dist/admin/index.js.map +1 -1
  52. package/dist/admin/ui.generated.d.ts +1 -1
  53. package/dist/admin/ui.generated.d.ts.map +1 -1
  54. package/dist/admin/ui.generated.js +341 -397
  55. package/dist/admin/ui.generated.js.map +1 -1
  56. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  57. package/dist/analytics/tables/requestEvents.js +4 -2
  58. package/dist/analytics/tables/requestEvents.js.map +1 -1
  59. package/dist/apps/data/App.d.ts +11932 -13214
  60. package/dist/apps/data/App.d.ts.map +1 -1
  61. package/dist/apps/data/App.js +32 -13
  62. package/dist/apps/data/App.js.map +1 -1
  63. package/dist/apps/data/ZoneSelection.d.ts +1 -1
  64. package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
  65. package/dist/apps/data/ZoneSelection.js +2 -2
  66. package/dist/apps/data/ZoneSelection.js.map +1 -1
  67. package/dist/apps/data/routes/activities.d.ts +60 -27
  68. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  69. package/dist/apps/data/routes/activities.js +91 -16
  70. package/dist/apps/data/routes/activities.js.map +1 -1
  71. package/dist/apps/data/routes/addresses.d.ts +893 -875
  72. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  73. package/dist/apps/data/routes/balances.d.ts +36 -36
  74. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  75. package/dist/apps/data/routes/balances.js +3 -1
  76. package/dist/apps/data/routes/balances.js.map +1 -1
  77. package/dist/apps/data/routes/blocks.d.ts +40 -40
  78. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  79. package/dist/apps/data/routes/blocks.js +3 -7
  80. package/dist/apps/data/routes/blocks.js.map +1 -1
  81. package/dist/apps/data/routes/coingecko.d.ts +236 -236
  82. package/dist/apps/data/routes/earn-transactions.d.ts +14 -14
  83. package/dist/apps/data/routes/earn.d.ts +261 -1445
  84. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  85. package/dist/apps/data/routes/earn.js +64 -490
  86. package/dist/apps/data/routes/earn.js.map +1 -1
  87. package/dist/apps/data/routes/exchanges.d.ts +144 -144
  88. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  89. package/dist/apps/data/routes/exchanges.js +5 -15
  90. package/dist/apps/data/routes/exchanges.js.map +1 -1
  91. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  92. package/dist/apps/data/routes/fee-amm.js +3 -9
  93. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  94. package/dist/apps/data/routes/indexer.d.ts +13 -13
  95. package/dist/apps/data/routes/receipts.d.ts +53 -53
  96. package/dist/apps/data/routes/receipts.js +1 -1
  97. package/dist/apps/data/routes/receipts.js.map +1 -1
  98. package/dist/apps/data/routes/rpc.d.ts +52 -0
  99. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  100. package/dist/apps/data/routes/rpc.js +19 -18
  101. package/dist/apps/data/routes/rpc.js.map +1 -1
  102. package/dist/apps/data/routes/tokenlist.d.ts +14 -14
  103. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  104. package/dist/apps/data/routes/tokenlist.js +1 -3
  105. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  106. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  107. package/dist/apps/data/routes/tokens.js +7 -5
  108. package/dist/apps/data/routes/tokens.js.map +1 -1
  109. package/dist/apps/data/routes/transactions.d.ts +281 -281
  110. package/dist/apps/data/routes/transactions.js +3 -3
  111. package/dist/apps/data/routes/transactions.js.map +1 -1
  112. package/dist/apps/data/routes/transfers.d.ts +12 -12
  113. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  114. package/dist/apps/data/routes/transfers.js +1 -3
  115. package/dist/apps/data/routes/transfers.js.map +1 -1
  116. package/dist/apps/data/routes/valuation.d.ts +30 -30
  117. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  118. package/dist/apps/data/routes/valuation.js +1 -3
  119. package/dist/apps/data/routes/valuation.js.map +1 -1
  120. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  121. package/dist/apps/data/routes/webhooks.d.ts +102 -102
  122. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  123. package/dist/apps/data/routes/webhooks.js +9 -23
  124. package/dist/apps/data/routes/webhooks.js.map +1 -1
  125. package/dist/apps/data/routes/zone-deposits.d.ts +16 -16
  126. package/dist/apps/data/routes/zone-withdrawals.d.ts +31 -31
  127. package/dist/apps/data/routes/zones.d.ts +28 -28
  128. package/dist/apps/management/App.d.ts +18 -102
  129. package/dist/apps/management/App.d.ts.map +1 -1
  130. package/dist/apps/management/App.js +1 -1
  131. package/dist/apps/management/App.js.map +1 -1
  132. package/dist/apps/management/routes/api-keys.d.ts +253 -339
  133. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  134. package/dist/apps/management/routes/api-keys.js +25 -11
  135. package/dist/apps/management/routes/api-keys.js.map +1 -1
  136. package/dist/apps/management/routes/billing.d.ts +92 -92
  137. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  138. package/dist/apps/management/routes/billing.js +5 -13
  139. package/dist/apps/management/routes/billing.js.map +1 -1
  140. package/dist/apps/management/routes/cli.d.ts.map +1 -1
  141. package/dist/apps/management/routes/cli.js +3 -9
  142. package/dist/apps/management/routes/cli.js.map +1 -1
  143. package/dist/apps/management/routes/faucet.d.ts +16 -16
  144. package/dist/apps/management/routes/fee-payer-usage.d.ts +38 -38
  145. package/dist/apps/management/routes/fee-payer-usage.d.ts.map +1 -1
  146. package/dist/apps/management/routes/fee-payer-usage.js +2 -4
  147. package/dist/apps/management/routes/fee-payer-usage.js.map +1 -1
  148. package/dist/apps/management/routes/invitations.d.ts +52 -52
  149. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  150. package/dist/apps/management/routes/invitations.js +4 -12
  151. package/dist/apps/management/routes/invitations.js.map +1 -1
  152. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  153. package/dist/apps/management/routes/invite-links.js +6 -14
  154. package/dist/apps/management/routes/invite-links.js.map +1 -1
  155. package/dist/apps/management/routes/me.d.ts +6 -6
  156. package/dist/apps/management/routes/me.d.ts.map +1 -1
  157. package/dist/apps/management/routes/me.js +3 -7
  158. package/dist/apps/management/routes/me.js.map +1 -1
  159. package/dist/apps/management/routes/members.d.ts +84 -84
  160. package/dist/apps/management/routes/members.d.ts.map +1 -1
  161. package/dist/apps/management/routes/members.js +2 -4
  162. package/dist/apps/management/routes/members.js.map +1 -1
  163. package/dist/apps/management/routes/orgs.d.ts +44 -44
  164. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  165. package/dist/apps/management/routes/orgs.js +2 -6
  166. package/dist/apps/management/routes/orgs.js.map +1 -1
  167. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  168. package/dist/apps/management/routes/projects.js +2 -6
  169. package/dist/apps/management/routes/projects.js.map +1 -1
  170. package/dist/apps/management/routes/route-usage.d.ts +34 -34
  171. package/dist/apps/management/routes/route-usage.d.ts.map +1 -1
  172. package/dist/apps/management/routes/route-usage.js +2 -4
  173. package/dist/apps/management/routes/route-usage.js.map +1 -1
  174. package/dist/apps/management/routes/routes-access-requests.d.ts +120 -91
  175. package/dist/apps/management/routes/routes-access-requests.d.ts.map +1 -1
  176. package/dist/apps/management/routes/routes-access-requests.js +49 -9
  177. package/dist/apps/management/routes/routes-access-requests.js.map +1 -1
  178. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  179. package/dist/apps/management/routes/usage.js +8 -16
  180. package/dist/apps/management/routes/usage.js.map +1 -1
  181. package/dist/apps/management/routes/verified-token-requests.d.ts +39 -39
  182. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
  183. package/dist/apps/management/routes/verified-token-requests.js +3 -7
  184. package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
  185. package/dist/apps/management/routes/webhooks.d.ts +2089 -2089
  186. package/dist/apps/management/routes/zone-delegations.d.ts +14 -17
  187. package/dist/apps/management/routes/zone-delegations.d.ts.map +1 -1
  188. package/dist/apps/management/routes/zone-delegations.js +1 -6
  189. package/dist/apps/management/routes/zone-delegations.js.map +1 -1
  190. package/dist/apps/mpp/App.d.ts +44 -44
  191. package/dist/apps/mpp/App.js +3 -3
  192. package/dist/apps/mpp/App.js.map +1 -1
  193. package/dist/apps/mpp/internal/Adapter.js +1 -1
  194. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  195. package/dist/apps/mpp/internal/Error.d.ts.map +1 -1
  196. package/dist/apps/mpp/internal/Error.js +1 -0
  197. package/dist/apps/mpp/internal/Error.js.map +1 -1
  198. package/dist/apps/mpp/internal/Policy.d.ts +5 -1
  199. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
  200. package/dist/apps/mpp/internal/Policy.js +35 -13
  201. package/dist/apps/mpp/internal/Policy.js.map +1 -1
  202. package/dist/apps/relay/App.d.ts +2 -2
  203. package/dist/apps/relay/App.d.ts.map +1 -1
  204. package/dist/apps/relay/App.js +25 -16
  205. package/dist/apps/relay/App.js.map +1 -1
  206. package/dist/apps/routes/App.d.ts +311 -311
  207. package/dist/apps/routes/routes/deposit-addresses.d.ts +1099 -1099
  208. package/dist/apps/routes/routes/list.d.ts +74 -74
  209. package/dist/apps/routes/routes/transfers.d.ts +94 -94
  210. package/dist/cli/ApiKeys.d.ts +19 -26
  211. package/dist/cli/ApiKeys.d.ts.map +1 -1
  212. package/dist/db/Db.d.ts +3 -3
  213. package/dist/db/Db.d.ts.map +1 -1
  214. package/dist/db/Db.js +27 -0
  215. package/dist/db/Db.js.map +1 -1
  216. package/dist/db/Schema.d.ts +28 -62
  217. package/dist/db/Schema.d.ts.map +1 -1
  218. package/dist/db/Schema.js +18 -18
  219. package/dist/db/Schema.js.map +1 -1
  220. package/dist/db/tables/rewardRuns.d.ts +21 -0
  221. package/dist/db/tables/rewardRuns.d.ts.map +1 -1
  222. package/dist/db/tables/rewardRuns.js +19 -0
  223. package/dist/db/tables/rewardRuns.js.map +1 -1
  224. package/dist/db/tables/routesAccessRequests.d.ts +13 -0
  225. package/dist/db/tables/routesAccessRequests.d.ts.map +1 -1
  226. package/dist/db/tables/routesAccessRequests.js +12 -0
  227. package/dist/db/tables/routesAccessRequests.js.map +1 -1
  228. package/dist/db/tables/zoneDelegationRequests.d.ts +165 -0
  229. package/dist/db/tables/zoneDelegationRequests.d.ts.map +1 -0
  230. package/dist/db/tables/{zoneKeyRequests.js → zoneDelegationRequests.js} +43 -42
  231. package/dist/db/tables/zoneDelegationRequests.js.map +1 -0
  232. package/dist/db/tables/zoneDelegations.d.ts +11 -5
  233. package/dist/db/tables/zoneDelegations.d.ts.map +1 -1
  234. package/dist/db/tables/zoneDelegations.js +21 -3
  235. package/dist/db/tables/zoneDelegations.js.map +1 -1
  236. package/dist/handlers/internal/accounts.d.ts +7 -0
  237. package/dist/handlers/internal/accounts.d.ts.map +1 -0
  238. package/dist/handlers/internal/{multisig.js → accounts.js} +10 -10
  239. package/dist/handlers/internal/{multisig.js.map → accounts.js.map} +1 -1
  240. package/dist/handlers/internal/sponsorship.js +17 -17
  241. package/dist/handlers/internal/sponsorship.js.map +1 -1
  242. package/dist/handlers/relay.d.ts +6 -6
  243. package/dist/handlers/relay.d.ts.map +1 -1
  244. package/dist/handlers/relay.js +15 -15
  245. package/dist/handlers/relay.js.map +1 -1
  246. package/dist/internal/Auth.d.ts.map +1 -1
  247. package/dist/internal/Auth.js +4 -8
  248. package/dist/internal/Auth.js.map +1 -1
  249. package/dist/internal/EarnRates.d.ts.map +1 -1
  250. package/dist/internal/EarnRates.js +1 -3
  251. package/dist/internal/EarnRates.js.map +1 -1
  252. package/dist/internal/EarnVaults.js +2 -2
  253. package/dist/internal/Log.d.ts +2 -4
  254. package/dist/internal/Log.d.ts.map +1 -1
  255. package/dist/internal/Log.js +0 -3
  256. package/dist/internal/Log.js.map +1 -1
  257. package/dist/internal/Response.d.ts +1 -1
  258. package/dist/internal/Response.d.ts.map +1 -1
  259. package/dist/internal/Response.js +0 -3
  260. package/dist/internal/Response.js.map +1 -1
  261. package/dist/internal/Schema.d.ts +11 -0
  262. package/dist/internal/Schema.d.ts.map +1 -1
  263. package/dist/internal/Schema.js +24 -1
  264. package/dist/internal/Schema.js.map +1 -1
  265. package/dist/internal/ZoneAccess.d.ts +70 -35
  266. package/dist/internal/ZoneAccess.d.ts.map +1 -1
  267. package/dist/internal/ZoneAccess.js +312 -131
  268. package/dist/internal/ZoneAccess.js.map +1 -1
  269. package/dist/internal/ZoneDelegation.d.ts +7 -19
  270. package/dist/internal/ZoneDelegation.d.ts.map +1 -1
  271. package/dist/internal/ZoneDelegation.js +8 -29
  272. package/dist/internal/ZoneDelegation.js.map +1 -1
  273. package/dist/internal/{ZoneKeyApproval.d.ts → ZoneDelegationApproval.d.ts} +3 -5
  274. package/dist/internal/ZoneDelegationApproval.d.ts.map +1 -0
  275. package/dist/internal/ZoneDelegationApproval.js +16 -0
  276. package/dist/internal/ZoneDelegationApproval.js.map +1 -0
  277. package/dist/internal/ZoneKeyRewrite.d.ts +98 -0
  278. package/dist/internal/ZoneKeyRewrite.d.ts.map +1 -0
  279. package/dist/internal/ZoneKeyRewrite.js +151 -0
  280. package/dist/internal/ZoneKeyRewrite.js.map +1 -0
  281. package/dist/internal/rewards/Campaigns.d.ts +2 -0
  282. package/dist/internal/rewards/Campaigns.d.ts.map +1 -1
  283. package/dist/internal/rewards/Campaigns.js.map +1 -1
  284. package/dist/internal/rewards/Distributions.d.ts.map +1 -1
  285. package/dist/internal/rewards/Distributions.js +2 -6
  286. package/dist/internal/rewards/Distributions.js.map +1 -1
  287. package/dist/internal/rewards/Monitor.d.ts +4 -1
  288. package/dist/internal/rewards/Monitor.d.ts.map +1 -1
  289. package/dist/internal/rewards/Monitor.js +19 -2
  290. package/dist/internal/rewards/Monitor.js.map +1 -1
  291. package/dist/internal/rewards/Runner.d.ts.map +1 -1
  292. package/dist/internal/rewards/Runner.js +9 -1
  293. package/dist/internal/rewards/Runner.js.map +1 -1
  294. package/dist/internal/routes/Action.d.ts.map +1 -1
  295. package/dist/internal/routes/Action.js +2 -3
  296. package/dist/internal/routes/Action.js.map +1 -1
  297. package/dist/internal/routes/Deposit.d.ts.map +1 -1
  298. package/dist/internal/routes/Deposit.js +2 -6
  299. package/dist/internal/routes/Deposit.js.map +1 -1
  300. package/dist/internal/routes/DepositAddress.d.ts.map +1 -1
  301. package/dist/internal/routes/DepositAddress.js +4 -10
  302. package/dist/internal/routes/DepositAddress.js.map +1 -1
  303. package/dist/internal/routes/Policy.d.ts.map +1 -1
  304. package/dist/internal/routes/Policy.js +2 -1
  305. package/dist/internal/routes/Policy.js.map +1 -1
  306. package/dist/internal/routes/Provider.js +8 -8
  307. package/dist/internal/routes/Provider.js.map +1 -1
  308. package/dist/internal/routes/Reconciliation.d.ts.map +1 -1
  309. package/dist/internal/routes/Reconciliation.js +3 -2
  310. package/dist/internal/routes/Reconciliation.js.map +1 -1
  311. package/dist/internal/routes/Transfer.d.ts.map +1 -1
  312. package/dist/internal/routes/Transfer.js +4 -12
  313. package/dist/internal/routes/Transfer.js.map +1 -1
  314. package/dist/internal/routes/UniversalDepositAddress.d.ts.map +1 -1
  315. package/dist/internal/routes/UniversalDepositAddress.js +3 -6
  316. package/dist/internal/routes/UniversalDepositAddress.js.map +1 -1
  317. package/dist/internal/routes/providers/SquidOrder.d.ts.map +1 -1
  318. package/dist/internal/routes/providers/SquidOrder.js +3 -2
  319. package/dist/internal/routes/providers/SquidOrder.js.map +1 -1
  320. package/dist/internal/routes/providers/relay.d.ts.map +1 -1
  321. package/dist/internal/routes/providers/relay.js +4 -3
  322. package/dist/internal/routes/providers/relay.js.map +1 -1
  323. package/package.json +20 -5
  324. package/src/ApiKey.ts +2 -2
  325. package/src/ApiKeys.test.ts +284 -51
  326. package/src/ApiKeys.ts +297 -64
  327. package/src/App.ts +4 -5
  328. package/src/Client.test-d.ts +33 -126
  329. package/src/Scope.test.ts +26 -45
  330. package/src/Scope.ts +24 -37
  331. package/src/admin/App.test.ts +51 -4
  332. package/src/admin/App.ts +25 -33
  333. package/src/admin/Mcp.test.ts +2 -1
  334. package/src/admin/apps/api-keys.test.ts +90 -20
  335. package/src/admin/apps/api-keys.ts +5 -8
  336. package/src/admin/apps/audit-logs.ts +1 -1
  337. package/src/admin/apps/earn-vaults.test.ts +19 -19
  338. package/src/admin/apps/earn-vaults.ts +11 -5
  339. package/src/admin/apps/routes-support.test.ts +254 -3
  340. package/src/admin/apps/routes-support.ts +1 -44
  341. package/src/admin/apps/scopes.test.ts +3 -3
  342. package/src/admin/apps/zone-delegation-requests.test.ts +246 -0
  343. package/src/admin/apps/zone-delegation-requests.ts +240 -0
  344. package/src/admin/apps/zone-delegations.test.ts +218 -58
  345. package/src/admin/apps/zone-delegations.ts +146 -46
  346. package/src/admin/index.ts +1 -1
  347. package/src/admin/ui/src/components/ApiKeyForm.tsx +4 -3
  348. package/src/admin/ui/src/lib/config.ts +3 -3
  349. package/src/admin/ui/src/lib/query-client.ts +1 -1
  350. package/src/admin/ui/src/lib/review-queues.ts +10 -10
  351. package/src/admin/ui/src/lib/routes-setup.test.ts +1 -2
  352. package/src/admin/ui/src/lib/routes-setup.ts +3 -5
  353. package/src/admin/ui/src/lib/scopes.test.ts +3 -6
  354. package/src/admin/ui/src/lib/scopes.ts +2 -9
  355. package/src/admin/ui/src/lib/{zone-key-requests.ts → zone-delegation-requests.ts} +27 -31
  356. package/src/admin/ui/src/routeTree.gen.ts +17 -17
  357. package/src/admin/ui/src/routes/__root.tsx +1 -1
  358. package/src/admin/ui/src/routes/api-keys.tsx +2 -15
  359. package/src/admin/ui/src/routes/audit-logs.tsx +2 -2
  360. package/src/admin/ui/src/routes/index.tsx +11 -11
  361. package/src/admin/ui/src/routes/organizations.tsx +3 -1
  362. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +3 -1
  363. package/src/admin/ui/src/routes/organizations_.$orgId_.setup.tsx +1 -3
  364. package/src/admin/ui/src/routes/{zone-key-requests.tsx → zone-delegation-requests.tsx} +228 -172
  365. package/src/admin/ui/vite.config.ts +14 -1
  366. package/src/admin/ui.generated.ts +412 -583
  367. package/src/analytics/tables/requestEvents.test.ts +13 -3
  368. package/src/analytics/tables/requestEvents.ts +4 -3
  369. package/src/apps/data/App.test.ts +72 -35
  370. package/src/apps/data/App.ts +29 -13
  371. package/src/apps/data/ZoneSelection.test.ts +53 -70
  372. package/src/apps/data/ZoneSelection.ts +2 -2
  373. package/src/apps/data/routes/activities.test.ts +140 -6
  374. package/src/apps/data/routes/activities.ts +124 -18
  375. package/src/apps/data/routes/balances.ts +5 -1
  376. package/src/apps/data/routes/blocks.ts +9 -13
  377. package/src/apps/data/routes/earn-transactions.local.test.ts +6 -1
  378. package/src/apps/data/routes/earn-transactions.test.ts +7 -3
  379. package/src/apps/data/routes/earn.bench.ts +0 -14
  380. package/src/apps/data/routes/earn.discovery.test.ts +4 -39
  381. package/src/apps/data/routes/earn.local.test.ts +27 -34
  382. package/src/apps/data/routes/earn.test.ts +172 -490
  383. package/src/apps/data/routes/earn.ts +103 -652
  384. package/src/apps/data/routes/exchanges.ts +20 -30
  385. package/src/apps/data/routes/fee-amm.ts +12 -18
  386. package/src/apps/data/routes/indexer.test.ts +14 -12
  387. package/src/apps/data/routes/receipts.ts +1 -1
  388. package/src/apps/data/routes/rpc.test.ts +23 -18
  389. package/src/apps/data/routes/rpc.ts +21 -21
  390. package/src/apps/data/routes/rpc.zone.test.ts +60 -6
  391. package/src/apps/data/routes/tokenlist.ts +4 -6
  392. package/src/apps/data/routes/tokens.test.ts +20 -0
  393. package/src/apps/data/routes/tokens.ts +10 -5
  394. package/src/apps/data/routes/transactions.ts +3 -3
  395. package/src/apps/data/routes/transfers.ts +4 -6
  396. package/src/apps/data/routes/valuation.test.ts +2 -4
  397. package/src/apps/data/routes/valuation.ts +4 -6
  398. package/src/apps/data/routes/webhooks.test.ts +1 -5
  399. package/src/apps/data/routes/webhooks.ts +30 -44
  400. package/src/apps/data/routes/zones.test.ts +35 -19
  401. package/src/apps/management/App.ts +3 -1
  402. package/src/apps/management/routes/api-keys.test.ts +112 -22
  403. package/src/apps/management/routes/api-keys.ts +30 -15
  404. package/src/apps/management/routes/billing.ts +17 -25
  405. package/src/apps/management/routes/cli.ts +12 -18
  406. package/src/apps/management/routes/fee-payer-usage.ts +5 -4
  407. package/src/apps/management/routes/invitations.ts +16 -21
  408. package/src/apps/management/routes/invite-links.ts +18 -26
  409. package/src/apps/management/routes/me.ts +9 -13
  410. package/src/apps/management/routes/members.ts +5 -7
  411. package/src/apps/management/routes/orgs.ts +8 -12
  412. package/src/apps/management/routes/projects.ts +8 -12
  413. package/src/apps/management/routes/route-usage.ts +5 -4
  414. package/src/apps/management/routes/routes-access-requests.test.ts +64 -2
  415. package/src/apps/management/routes/routes-access-requests.ts +99 -15
  416. package/src/apps/management/routes/scopes.test.ts +3 -3
  417. package/src/apps/management/routes/usage.ts +20 -28
  418. package/src/apps/management/routes/verified-token-requests.ts +9 -13
  419. package/src/apps/management/routes/zone-delegations.test.ts +3 -5
  420. package/src/apps/management/routes/zone-delegations.ts +4 -9
  421. package/src/apps/mpp/App.ts +3 -3
  422. package/src/apps/mpp/Mpp.zone.test.ts +49 -18
  423. package/src/apps/mpp/internal/Adapter.ts +1 -1
  424. package/src/apps/mpp/internal/Error.test.ts +3 -0
  425. package/src/apps/mpp/internal/Error.ts +1 -0
  426. package/src/apps/mpp/internal/Policy.test.ts +9 -8
  427. package/src/apps/mpp/internal/Policy.ts +37 -14
  428. package/src/apps/relay/App.sandbox.test.ts +15 -14
  429. package/src/apps/relay/App.test.ts +120 -61
  430. package/src/apps/relay/App.ts +28 -18
  431. package/src/apps/relay/App.zone-billing.test.ts +9 -4
  432. package/src/apps/routes/App.test.ts +21 -22
  433. package/src/db/Db.ts +34 -3
  434. package/src/db/Schema.ts +26 -26
  435. package/src/db/tables/rewardRuns.ts +39 -0
  436. package/src/db/tables/routesAccessRequests.test.ts +65 -0
  437. package/src/db/tables/routesAccessRequests.ts +25 -0
  438. package/src/db/tables/{zoneKeyRequests.test.ts → zoneDelegationRequests.test.ts} +36 -77
  439. package/src/db/tables/{zoneKeyRequests.ts → zoneDelegationRequests.ts} +69 -52
  440. package/src/db/tables/zoneDelegations.test.ts +5 -6
  441. package/src/db/tables/zoneDelegations.ts +25 -8
  442. package/src/handlers/internal/{multisig.store.test.ts → accounts.store.test.ts} +16 -16
  443. package/src/handlers/internal/{multisig.test.ts → accounts.test.ts} +85 -82
  444. package/src/handlers/internal/{multisig.ts → accounts.ts} +9 -9
  445. package/src/handlers/internal/sponsorship.ts +20 -20
  446. package/src/handlers/relay.test.ts +48 -46
  447. package/src/handlers/relay.ts +26 -26
  448. package/src/internal/Auth.test.ts +6 -2
  449. package/src/internal/Auth.ts +4 -10
  450. package/src/internal/EarnRates.ts +4 -6
  451. package/src/internal/EarnVaults.ts +2 -2
  452. package/src/internal/Log.test-d.ts +1 -0
  453. package/src/internal/Log.test.ts +4 -6
  454. package/src/internal/Log.ts +2 -6
  455. package/src/internal/Response.ts +0 -3
  456. package/src/internal/Schema.test.ts +42 -0
  457. package/src/internal/Schema.ts +36 -1
  458. package/src/internal/ZoneAccess.test.ts +515 -312
  459. package/src/internal/ZoneAccess.ts +410 -158
  460. package/src/internal/ZoneDelegation.test.ts +1 -41
  461. package/src/internal/ZoneDelegation.ts +10 -48
  462. package/src/internal/ZoneDelegationApproval.test.ts +22 -0
  463. package/src/internal/{ZoneKeyApproval.ts → ZoneDelegationApproval.ts} +4 -11
  464. package/src/internal/ZoneKeyRewrite.ts +231 -0
  465. package/src/internal/rewards/Campaigns.ts +2 -0
  466. package/src/internal/rewards/Distributions.ts +8 -12
  467. package/src/internal/rewards/Monitor.test.ts +64 -0
  468. package/src/internal/rewards/Monitor.ts +27 -4
  469. package/src/internal/rewards/Runner.ts +9 -1
  470. package/src/internal/routes/Action.ts +5 -6
  471. package/src/internal/routes/Deposit.ts +8 -12
  472. package/src/internal/routes/DepositAddress.ts +13 -19
  473. package/src/internal/routes/Policy.ts +2 -1
  474. package/src/internal/routes/Provider.ts +8 -8
  475. package/src/internal/routes/Reconciliation.ts +3 -2
  476. package/src/internal/routes/Transfer.ts +16 -24
  477. package/src/internal/routes/UniversalDepositAddress.ts +9 -12
  478. package/src/internal/routes/providers/SquidOrder.ts +3 -2
  479. package/src/internal/routes/providers/relay.ts +4 -3
  480. package/dist/admin/apps/zone-key-requests.d.ts +0 -406
  481. package/dist/admin/apps/zone-key-requests.d.ts.map +0 -1
  482. package/dist/admin/apps/zone-key-requests.js +0 -183
  483. package/dist/admin/apps/zone-key-requests.js.map +0 -1
  484. package/dist/db/tables/zoneKeyRequests.d.ts +0 -289
  485. package/dist/db/tables/zoneKeyRequests.d.ts.map +0 -1
  486. package/dist/db/tables/zoneKeyRequests.js.map +0 -1
  487. package/dist/handlers/internal/multisig.d.ts +0 -7
  488. package/dist/handlers/internal/multisig.d.ts.map +0 -1
  489. package/dist/internal/ZoneKeyApproval.d.ts.map +0 -1
  490. package/dist/internal/ZoneKeyApproval.js +0 -21
  491. package/dist/internal/ZoneKeyApproval.js.map +0 -1
  492. package/src/admin/apps/zone-key-requests.test.ts +0 -272
  493. package/src/admin/apps/zone-key-requests.ts +0 -231
  494. package/src/internal/ZoneKeyApproval.test.ts +0 -46
@@ -9,9 +9,9 @@ import type * as Metrics from '../Metrics.js';
9
9
  import * as RateLimit from '../internal/RateLimit.js';
10
10
  import type * as Store from '../internal/Store.js';
11
11
  import * as Response from '../internal/Response.js';
12
+ import * as ZoneDelegationApproval from '../internal/ZoneDelegationApproval.js';
12
13
  import * as Viem from '../internal/Viem.js';
13
14
  import * as Tidx from '../internal/Tidx.js';
14
- import * as ZoneKeyApproval from '../internal/ZoneKeyApproval.js';
15
15
  /** A verified admin identity, as returned by {@link create.Options.identify}. */
16
16
  export type Identity = {
17
17
  /** The admin's verified email, recorded as `createdBy` on every minted key. */
@@ -46,10 +46,10 @@ export type Environment = {
46
46
  metrics: Metrics.Metrics | undefined;
47
47
  /** Zone chains available to admin routes. */
48
48
  zones: readonly Chain[];
49
- /** Configured authoritative approval flow, absent until provisioned. */
50
- zoneKeyApproval: create.Options['zoneKeyApproval'];
51
- /** Verified session used only by the Zone-key approval routes. */
52
- zoneKeyMember: ZoneKeyApproval.Member;
49
+ /** Configured approval flow for Zone delegations, absent until provisioned. */
50
+ delegationApproval: create.Options['delegationApproval'];
51
+ /** Verified session used only by the delegation-request routes. */
52
+ approver: ZoneDelegationApproval.Member;
53
53
  };
54
54
  };
55
55
  /** The admin portal Hono app. Inferred from {@link create}. */
@@ -195,6 +195,117 @@ export declare function create(options: create.Options): import("hono/hono-base"
195
195
  };
196
196
  };
197
197
  }, "/scopes"> | import("hono/types").MergeSchemaPath<{
198
+ "/": {
199
+ $get: {
200
+ output: {
201
+ bucketSeconds: number;
202
+ data: {
203
+ actionRequired: number;
204
+ completed: number;
205
+ count: number;
206
+ inProgress: number;
207
+ series: {
208
+ at: string;
209
+ count: number;
210
+ volume: string;
211
+ }[];
212
+ subsidy: string;
213
+ volume: string;
214
+ destinationChain: {
215
+ id: string;
216
+ name: string;
217
+ };
218
+ destinationToken: {
219
+ key: string;
220
+ symbol: string;
221
+ };
222
+ id: string;
223
+ lastActivityAt: string;
224
+ providers: {
225
+ actionRequired: number;
226
+ completed: number;
227
+ count: number;
228
+ inProgress: number;
229
+ series: {
230
+ at: string;
231
+ count: number;
232
+ volume: string;
233
+ }[];
234
+ subsidy: string;
235
+ volume: string;
236
+ deposits: number;
237
+ id: string;
238
+ name: string;
239
+ transfers: number;
240
+ }[];
241
+ recent: {
242
+ amount: {
243
+ baseUnits: string;
244
+ currency: string;
245
+ decimals: number;
246
+ formatted: string;
247
+ } | null;
248
+ createdAt: string;
249
+ id: string;
250
+ organization: {
251
+ id: string;
252
+ name: string | null;
253
+ };
254
+ providerId: string;
255
+ resource: "deposit" | "transfer";
256
+ status: string;
257
+ subsidy: string;
258
+ }[];
259
+ sourceChain: {
260
+ id: string;
261
+ name: string;
262
+ };
263
+ sourceToken: {
264
+ key: string;
265
+ symbol: string;
266
+ };
267
+ }[];
268
+ since: string;
269
+ until: string;
270
+ };
271
+ outputFormat: "json";
272
+ status: 200;
273
+ input: {
274
+ query?: {
275
+ environment?: string | string[];
276
+ window?: string | string[];
277
+ } | undefined;
278
+ };
279
+ };
280
+ };
281
+ } & {
282
+ "/organizations": {
283
+ $get: {
284
+ output: {
285
+ data: {
286
+ actionRequired: number;
287
+ completed: number;
288
+ count: number;
289
+ id: string;
290
+ lastActivityAt: string;
291
+ name: string | null;
292
+ subsidy: string;
293
+ volume: string;
294
+ }[];
295
+ since: string;
296
+ until: string;
297
+ };
298
+ outputFormat: "json";
299
+ status: 200;
300
+ input: {
301
+ query?: {
302
+ environment?: string | string[];
303
+ window?: string | string[];
304
+ } | undefined;
305
+ };
306
+ };
307
+ };
308
+ }, "/routes/activity"> | import("hono/types").MergeSchemaPath<{
198
309
  "/": {
199
310
  $get: {
200
311
  output: {
@@ -391,6 +502,62 @@ export declare function create(options: create.Options): import("hono/hono-base"
391
502
  version: number;
392
503
  };
393
504
  };
505
+ } | {
506
+ output: {
507
+ error: {
508
+ code: "version_conflict";
509
+ details?: readonly Response.error.Detail[] | undefined;
510
+ message: string;
511
+ };
512
+ requestId: string;
513
+ };
514
+ outputFormat: "json";
515
+ status: 409;
516
+ input: {
517
+ json: {
518
+ policy: {
519
+ access?: {
520
+ destinationChainId: string;
521
+ destinationTokenId: string;
522
+ providerId?: string | undefined;
523
+ sourceChainId: string;
524
+ sourceTokenId: string;
525
+ }[] | null | undefined;
526
+ maxAmount?: string | undefined;
527
+ maxPendingAmount?: string | undefined;
528
+ subsidyBudget?: string | undefined;
529
+ subsidyEnabled?: boolean | undefined;
530
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
531
+ subsidyEndsAt?: string | undefined;
532
+ subsidyRoutes?: {
533
+ destinationChainId: string;
534
+ destinationTokenId: string;
535
+ providerId?: string | undefined;
536
+ sourceChainId: string;
537
+ sourceTokenId: string;
538
+ }[] | null | undefined;
539
+ suspended?: boolean | undefined;
540
+ terms?: {
541
+ destinationChainId: string;
542
+ destinationTokenId: string;
543
+ providerId?: string | undefined;
544
+ sourceChainId: string;
545
+ sourceTokenId: string;
546
+ maxAmount?: string | undefined;
547
+ subsidyEligible?: boolean | undefined;
548
+ subsidyEnabled?: boolean | undefined;
549
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
550
+ }[] | undefined;
551
+ };
552
+ scope: {
553
+ apiKeyId?: string | undefined;
554
+ environment: "production" | "sandbox";
555
+ orgId: string;
556
+ projectId?: string | undefined;
557
+ };
558
+ version: number;
559
+ };
560
+ };
394
561
  } | {
395
562
  output: {
396
563
  error: {
@@ -656,62 +823,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
656
823
  version: number;
657
824
  };
658
825
  };
659
- } | {
660
- output: {
661
- error: {
662
- code: "version_conflict";
663
- details?: readonly Response.error.Detail[] | undefined;
664
- message: string;
665
- };
666
- requestId: string;
667
- };
668
- outputFormat: "json";
669
- status: 409;
670
- input: {
671
- json: {
672
- policy: {
673
- access?: {
674
- destinationChainId: string;
675
- destinationTokenId: string;
676
- providerId?: string | undefined;
677
- sourceChainId: string;
678
- sourceTokenId: string;
679
- }[] | null | undefined;
680
- maxAmount?: string | undefined;
681
- maxPendingAmount?: string | undefined;
682
- subsidyBudget?: string | undefined;
683
- subsidyEnabled?: boolean | undefined;
684
- subsidyPayer?: "enterprise" | "tempo" | undefined;
685
- subsidyEndsAt?: string | undefined;
686
- subsidyRoutes?: {
687
- destinationChainId: string;
688
- destinationTokenId: string;
689
- providerId?: string | undefined;
690
- sourceChainId: string;
691
- sourceTokenId: string;
692
- }[] | null | undefined;
693
- suspended?: boolean | undefined;
694
- terms?: {
695
- destinationChainId: string;
696
- destinationTokenId: string;
697
- providerId?: string | undefined;
698
- sourceChainId: string;
699
- sourceTokenId: string;
700
- maxAmount?: string | undefined;
701
- subsidyEligible?: boolean | undefined;
702
- subsidyEnabled?: boolean | undefined;
703
- subsidyPayer?: "enterprise" | "tempo" | undefined;
704
- }[] | undefined;
705
- };
706
- scope: {
707
- apiKeyId?: string | undefined;
708
- environment: "production" | "sandbox";
709
- orgId: string;
710
- projectId?: string | undefined;
711
- };
712
- version: number;
713
- };
714
- };
715
826
  };
716
827
  };
717
828
  }, "/route-policies"> | import("hono/types").MergeSchemaPath<{
@@ -876,117 +987,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
876
987
  };
877
988
  };
878
989
  }, "/sentinel"> | import("hono/types").MergeSchemaPath<{
879
- "/": {
880
- $get: {
881
- output: {
882
- bucketSeconds: number;
883
- data: {
884
- actionRequired: number;
885
- completed: number;
886
- count: number;
887
- inProgress: number;
888
- series: {
889
- at: string;
890
- count: number;
891
- volume: string;
892
- }[];
893
- subsidy: string;
894
- volume: string;
895
- destinationChain: {
896
- id: string;
897
- name: string;
898
- };
899
- destinationToken: {
900
- key: string;
901
- symbol: string;
902
- };
903
- id: string;
904
- lastActivityAt: string;
905
- providers: {
906
- actionRequired: number;
907
- completed: number;
908
- count: number;
909
- inProgress: number;
910
- series: {
911
- at: string;
912
- count: number;
913
- volume: string;
914
- }[];
915
- subsidy: string;
916
- volume: string;
917
- deposits: number;
918
- id: string;
919
- name: string;
920
- transfers: number;
921
- }[];
922
- recent: {
923
- amount: {
924
- baseUnits: string;
925
- currency: string;
926
- decimals: number;
927
- formatted: string;
928
- } | null;
929
- createdAt: string;
930
- id: string;
931
- organization: {
932
- id: string;
933
- name: string | null;
934
- };
935
- providerId: string;
936
- resource: "deposit" | "transfer";
937
- status: string;
938
- subsidy: string;
939
- }[];
940
- sourceChain: {
941
- id: string;
942
- name: string;
943
- };
944
- sourceToken: {
945
- key: string;
946
- symbol: string;
947
- };
948
- }[];
949
- since: string;
950
- until: string;
951
- };
952
- outputFormat: "json";
953
- status: 200;
954
- input: {
955
- query?: {
956
- environment?: string | string[];
957
- window?: string | string[];
958
- } | undefined;
959
- };
960
- };
961
- };
962
- } & {
963
- "/organizations": {
964
- $get: {
965
- output: {
966
- data: {
967
- actionRequired: number;
968
- completed: number;
969
- count: number;
970
- id: string;
971
- lastActivityAt: string;
972
- name: string | null;
973
- subsidy: string;
974
- volume: string;
975
- }[];
976
- since: string;
977
- until: string;
978
- };
979
- outputFormat: "json";
980
- status: 200;
981
- input: {
982
- query?: {
983
- environment?: string | string[];
984
- window?: string | string[];
985
- } | undefined;
986
- };
987
- };
988
- };
989
- }, "/routes/activity"> | import("hono/types").MergeSchemaPath<{
990
990
  "/": {
991
991
  $get: {
992
992
  output: {
@@ -1104,199 +1104,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
1104
1104
  };
1105
1105
  };
1106
1106
  }, "/early-access"> | import("hono/types").MergeSchemaPath<{
1107
- "/vaults/:chainId/:vaultId": {
1108
- $get: {
1109
- output: {
1110
- error: {
1111
- code: "upstream_error";
1112
- details?: readonly Response.error.Detail[] | undefined;
1113
- message: string;
1114
- };
1115
- requestId: string;
1116
- };
1117
- outputFormat: "json";
1118
- status: 502;
1119
- input: {
1120
- param: {
1121
- chainId: string;
1122
- vaultId: string;
1123
- };
1124
- };
1125
- } | {
1126
- output: {
1127
- error: {
1128
- code: "params_invalid";
1129
- details?: readonly Response.error.Detail[] | undefined;
1130
- message: string;
1131
- };
1132
- requestId: string;
1133
- };
1134
- outputFormat: "json";
1135
- status: 400;
1136
- input: {
1137
- param: {
1138
- chainId: string;
1139
- vaultId: string;
1140
- };
1141
- };
1142
- } | {
1143
- output: {
1144
- data: {
1145
- id: `0x${string}`;
1146
- marketMaker: string | null;
1147
- name: string | null;
1148
- }[];
1149
- };
1150
- outputFormat: "json";
1151
- status: 200;
1152
- input: {
1153
- param: {
1154
- chainId: string;
1155
- vaultId: string;
1156
- };
1157
- };
1158
- };
1159
- };
1160
- } & {
1161
- "/:chainId/:poolId": {
1162
- $get: {
1163
- output: {
1164
- error: {
1165
- code: "params_invalid";
1166
- details?: readonly Response.error.Detail[] | undefined;
1167
- message: string;
1168
- };
1169
- requestId: string;
1170
- };
1171
- outputFormat: "json";
1172
- status: 400;
1173
- input: {
1174
- param: {
1175
- chainId: string;
1176
- poolId: string;
1177
- };
1178
- };
1179
- } | {
1180
- output: {
1181
- baseToken: {
1182
- address: `0x${string}`;
1183
- balance: string | null;
1184
- decimals: number | null;
1185
- symbol: string | null;
1186
- } | null;
1187
- quoteToken: {
1188
- address: `0x${string}`;
1189
- balance: string | null;
1190
- decimals: number | null;
1191
- symbol: string | null;
1192
- } | null;
1193
- oracle: `0x${string}` | null;
1194
- blockNumber: string | null;
1195
- checkedAt: string;
1196
- };
1197
- outputFormat: "json";
1198
- status: 200;
1199
- input: {
1200
- param: {
1201
- chainId: string;
1202
- poolId: string;
1203
- };
1204
- };
1205
- };
1206
- };
1207
- } & {
1208
- "/": {
1209
- $get: {
1210
- output: {
1211
- data: {
1212
- chain: {
1213
- id: string;
1214
- name: string;
1215
- };
1216
- directions: {
1217
- destination: {
1218
- address: `0x${string}`;
1219
- symbol: string;
1220
- };
1221
- source: {
1222
- address: `0x${string}`;
1223
- symbol: string;
1224
- };
1225
- }[];
1226
- id: `0x${string}`;
1227
- marketMaker: string | null;
1228
- name: string | null;
1229
- registered: boolean;
1230
- routeEnabled: boolean;
1231
- status: "active" | "paused" | "unavailable";
1232
- }[];
1233
- updatedAt: string;
1234
- };
1235
- outputFormat: "json";
1236
- status: 200;
1237
- input: {};
1238
- };
1239
- };
1240
- } & {
1241
- "/": {
1242
- $put: {
1243
- output: {
1244
- error: {
1245
- code: "payload_too_large";
1246
- details?: readonly Response.error.Detail[] | undefined;
1247
- message: string;
1248
- };
1249
- requestId: string;
1250
- };
1251
- outputFormat: "json";
1252
- status: 413;
1253
- input: {
1254
- json: {
1255
- chainId: unknown;
1256
- marketMaker: string;
1257
- name: string;
1258
- poolAddress: `0x${string}`;
1259
- };
1260
- };
1261
- } | {
1262
- output: {
1263
- error: {
1264
- code: "body_invalid";
1265
- details?: readonly Response.error.Detail[] | undefined;
1266
- message: string;
1267
- };
1268
- requestId: string;
1269
- };
1270
- outputFormat: "json";
1271
- status: 400;
1272
- input: {
1273
- json: {
1274
- chainId: unknown;
1275
- marketMaker: string;
1276
- name: string;
1277
- poolAddress: `0x${string}`;
1278
- };
1279
- };
1280
- } | {
1281
- output: {
1282
- chainId: number;
1283
- marketMaker: string;
1284
- name: string;
1285
- poolAddress: `0x${string}`;
1286
- };
1287
- outputFormat: "json";
1288
- status: 200;
1289
- input: {
1290
- json: {
1291
- chainId: unknown;
1292
- marketMaker: string;
1293
- name: string;
1294
- poolAddress: `0x${string}`;
1295
- };
1296
- };
1297
- };
1298
- };
1299
- }, "/prop-amms/pools"> | import("hono/types").MergeSchemaPath<{
1300
1107
  "/": {
1301
1108
  $get: {
1302
1109
  output: {
@@ -1625,6 +1432,199 @@ export declare function create(options: create.Options): import("hono/hono-base"
1625
1432
  };
1626
1433
  };
1627
1434
  }, "/routes/access-requests"> | import("hono/types").MergeSchemaPath<{
1435
+ "/vaults/:chainId/:vaultId": {
1436
+ $get: {
1437
+ output: {
1438
+ error: {
1439
+ code: "upstream_error";
1440
+ details?: readonly Response.error.Detail[] | undefined;
1441
+ message: string;
1442
+ };
1443
+ requestId: string;
1444
+ };
1445
+ outputFormat: "json";
1446
+ status: 502;
1447
+ input: {
1448
+ param: {
1449
+ chainId: string;
1450
+ vaultId: string;
1451
+ };
1452
+ };
1453
+ } | {
1454
+ output: {
1455
+ error: {
1456
+ code: "params_invalid";
1457
+ details?: readonly Response.error.Detail[] | undefined;
1458
+ message: string;
1459
+ };
1460
+ requestId: string;
1461
+ };
1462
+ outputFormat: "json";
1463
+ status: 400;
1464
+ input: {
1465
+ param: {
1466
+ chainId: string;
1467
+ vaultId: string;
1468
+ };
1469
+ };
1470
+ } | {
1471
+ output: {
1472
+ data: {
1473
+ id: `0x${string}`;
1474
+ marketMaker: string | null;
1475
+ name: string | null;
1476
+ }[];
1477
+ };
1478
+ outputFormat: "json";
1479
+ status: 200;
1480
+ input: {
1481
+ param: {
1482
+ chainId: string;
1483
+ vaultId: string;
1484
+ };
1485
+ };
1486
+ };
1487
+ };
1488
+ } & {
1489
+ "/:chainId/:poolId": {
1490
+ $get: {
1491
+ output: {
1492
+ error: {
1493
+ code: "params_invalid";
1494
+ details?: readonly Response.error.Detail[] | undefined;
1495
+ message: string;
1496
+ };
1497
+ requestId: string;
1498
+ };
1499
+ outputFormat: "json";
1500
+ status: 400;
1501
+ input: {
1502
+ param: {
1503
+ chainId: string;
1504
+ poolId: string;
1505
+ };
1506
+ };
1507
+ } | {
1508
+ output: {
1509
+ baseToken: {
1510
+ address: `0x${string}`;
1511
+ balance: string | null;
1512
+ decimals: number | null;
1513
+ symbol: string | null;
1514
+ } | null;
1515
+ quoteToken: {
1516
+ address: `0x${string}`;
1517
+ balance: string | null;
1518
+ decimals: number | null;
1519
+ symbol: string | null;
1520
+ } | null;
1521
+ oracle: `0x${string}` | null;
1522
+ blockNumber: string | null;
1523
+ checkedAt: string;
1524
+ };
1525
+ outputFormat: "json";
1526
+ status: 200;
1527
+ input: {
1528
+ param: {
1529
+ chainId: string;
1530
+ poolId: string;
1531
+ };
1532
+ };
1533
+ };
1534
+ };
1535
+ } & {
1536
+ "/": {
1537
+ $get: {
1538
+ output: {
1539
+ data: {
1540
+ chain: {
1541
+ id: string;
1542
+ name: string;
1543
+ };
1544
+ directions: {
1545
+ destination: {
1546
+ address: `0x${string}`;
1547
+ symbol: string;
1548
+ };
1549
+ source: {
1550
+ address: `0x${string}`;
1551
+ symbol: string;
1552
+ };
1553
+ }[];
1554
+ id: `0x${string}`;
1555
+ marketMaker: string | null;
1556
+ name: string | null;
1557
+ registered: boolean;
1558
+ routeEnabled: boolean;
1559
+ status: "active" | "paused" | "unavailable";
1560
+ }[];
1561
+ updatedAt: string;
1562
+ };
1563
+ outputFormat: "json";
1564
+ status: 200;
1565
+ input: {};
1566
+ };
1567
+ };
1568
+ } & {
1569
+ "/": {
1570
+ $put: {
1571
+ output: {
1572
+ error: {
1573
+ code: "payload_too_large";
1574
+ details?: readonly Response.error.Detail[] | undefined;
1575
+ message: string;
1576
+ };
1577
+ requestId: string;
1578
+ };
1579
+ outputFormat: "json";
1580
+ status: 413;
1581
+ input: {
1582
+ json: {
1583
+ chainId: unknown;
1584
+ marketMaker: string;
1585
+ name: string;
1586
+ poolAddress: `0x${string}`;
1587
+ };
1588
+ };
1589
+ } | {
1590
+ output: {
1591
+ error: {
1592
+ code: "body_invalid";
1593
+ details?: readonly Response.error.Detail[] | undefined;
1594
+ message: string;
1595
+ };
1596
+ requestId: string;
1597
+ };
1598
+ outputFormat: "json";
1599
+ status: 400;
1600
+ input: {
1601
+ json: {
1602
+ chainId: unknown;
1603
+ marketMaker: string;
1604
+ name: string;
1605
+ poolAddress: `0x${string}`;
1606
+ };
1607
+ };
1608
+ } | {
1609
+ output: {
1610
+ chainId: number;
1611
+ marketMaker: string;
1612
+ name: string;
1613
+ poolAddress: `0x${string}`;
1614
+ };
1615
+ outputFormat: "json";
1616
+ status: 200;
1617
+ input: {
1618
+ json: {
1619
+ chainId: unknown;
1620
+ marketMaker: string;
1621
+ name: string;
1622
+ poolAddress: `0x${string}`;
1623
+ };
1624
+ };
1625
+ };
1626
+ };
1627
+ }, "/prop-amms/pools"> | import("hono/types").MergeSchemaPath<{
1628
1628
  "/transactions": {
1629
1629
  $get: {
1630
1630
  output: {
@@ -1931,23 +1931,17 @@ export declare function create(options: create.Options): import("hono/hono-base"
1931
1931
  };
1932
1932
  requestId: string;
1933
1933
  };
1934
- outputFormat: "json";
1935
- status: 413;
1936
- input: {
1937
- json: {
1938
- allowedIps?: readonly string[] | undefined;
1939
- billingActive?: boolean | undefined;
1940
- environment?: "production" | "sandbox" | undefined;
1941
- projectId?: string | undefined;
1942
- rateLimits?: Record<string, {
1943
- limit: number;
1944
- period: "minute" | "second";
1945
- }> | undefined;
1946
- zoneTags?: readonly number[] | undefined;
1947
- expiresAt?: string | undefined;
1948
- name: string;
1949
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
1934
+ outputFormat: "json";
1935
+ status: 413;
1936
+ input: {
1937
+ json: {
1938
+ accounts?: `0x${string}`[] | undefined;
1939
+ accountsAll: boolean;
1940
+ chainId: unknown;
1941
+ environment: "production" | "sandbox";
1950
1942
  orgId: string;
1943
+ tokens?: `0x${string}`[] | undefined;
1944
+ tokensAll: boolean;
1951
1945
  };
1952
1946
  };
1953
1947
  } | {
@@ -1963,67 +1957,46 @@ export declare function create(options: create.Options): import("hono/hono-base"
1963
1957
  status: 404;
1964
1958
  input: {
1965
1959
  json: {
1966
- allowedIps?: readonly string[] | undefined;
1967
- billingActive?: boolean | undefined;
1968
- environment?: "production" | "sandbox" | undefined;
1969
- projectId?: string | undefined;
1970
- rateLimits?: Record<string, {
1971
- limit: number;
1972
- period: "minute" | "second";
1973
- }> | undefined;
1974
- zoneTags?: readonly number[] | undefined;
1975
- expiresAt?: string | undefined;
1976
- name: string;
1977
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
1960
+ accounts?: `0x${string}`[] | undefined;
1961
+ accountsAll: boolean;
1962
+ chainId: unknown;
1963
+ environment: "production" | "sandbox";
1978
1964
  orgId: string;
1965
+ tokens?: `0x${string}`[] | undefined;
1966
+ tokensAll: boolean;
1979
1967
  };
1980
1968
  };
1981
1969
  } | {
1982
1970
  output: {
1983
1971
  createdAt: string;
1972
+ delegationId: string | null;
1984
1973
  expiresAt: string;
1985
1974
  groupId: string;
1986
1975
  id: string;
1987
1976
  input: {
1988
- allowedIps?: readonly string[] | undefined;
1989
- billingActive?: boolean | undefined;
1990
- environment?: "production" | "sandbox" | undefined;
1991
- name?: string | undefined;
1992
- projectId?: string | undefined;
1993
- rateLimits?: {
1994
- [x: string]: {
1995
- limit: number;
1996
- period: "minute" | "second";
1997
- };
1998
- } | undefined;
1999
- zoneTags?: readonly number[] | undefined;
2000
- createdBy?: string | undefined;
2001
- expiresAt?: string | undefined;
1977
+ accounts?: readonly string[] | undefined;
1978
+ tokens?: readonly string[] | undefined;
1979
+ accountsAll: boolean;
1980
+ chainId: number;
1981
+ environment: "production" | "sandbox";
2002
1982
  orgId: string;
2003
- scopes: readonly string[];
1983
+ tokensAll: boolean;
2004
1984
  };
2005
- keyId: string | null;
2006
1985
  requesterEmail: string;
2007
1986
  requesterId: string;
2008
- status: "cancelled" | "failed" | "issued" | "issuing" | "pending";
1987
+ status: "applied" | "applying" | "cancelled" | "failed" | "pending";
2009
1988
  };
2010
1989
  outputFormat: "json";
2011
1990
  status: 201;
2012
1991
  input: {
2013
1992
  json: {
2014
- allowedIps?: readonly string[] | undefined;
2015
- billingActive?: boolean | undefined;
2016
- environment?: "production" | "sandbox" | undefined;
2017
- projectId?: string | undefined;
2018
- rateLimits?: Record<string, {
2019
- limit: number;
2020
- period: "minute" | "second";
2021
- }> | undefined;
2022
- zoneTags?: readonly number[] | undefined;
2023
- expiresAt?: string | undefined;
2024
- name: string;
2025
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
1993
+ accounts?: `0x${string}`[] | undefined;
1994
+ accountsAll: boolean;
1995
+ chainId: unknown;
1996
+ environment: "production" | "sandbox";
2026
1997
  orgId: string;
1998
+ tokens?: `0x${string}`[] | undefined;
1999
+ tokensAll: boolean;
2027
2000
  };
2028
2001
  };
2029
2002
  };
@@ -2034,31 +2007,22 @@ export declare function create(options: create.Options): import("hono/hono-base"
2034
2007
  output: {
2035
2008
  data: {
2036
2009
  createdAt: string;
2010
+ delegationId: string | null;
2037
2011
  expiresAt: string;
2038
2012
  groupId: string;
2039
2013
  id: string;
2040
2014
  input: {
2041
- allowedIps?: readonly string[] | undefined;
2042
- billingActive?: boolean | undefined;
2043
- environment?: "production" | "sandbox" | undefined;
2044
- name?: string | undefined;
2045
- projectId?: string | undefined;
2046
- rateLimits?: {
2047
- [x: string]: {
2048
- limit: number;
2049
- period: "minute" | "second";
2050
- };
2051
- } | undefined;
2052
- zoneTags?: readonly number[] | undefined;
2053
- createdBy?: string | undefined;
2054
- expiresAt?: string | undefined;
2015
+ accounts?: readonly string[] | undefined;
2016
+ tokens?: readonly string[] | undefined;
2017
+ accountsAll: boolean;
2018
+ chainId: number;
2019
+ environment: "production" | "sandbox";
2055
2020
  orgId: string;
2056
- scopes: readonly string[];
2021
+ tokensAll: boolean;
2057
2022
  };
2058
- keyId: string | null;
2059
2023
  requesterEmail: string;
2060
2024
  requesterId: string;
2061
- status: "cancelled" | "failed" | "issued" | "issuing" | "pending";
2025
+ status: "applied" | "applying" | "cancelled" | "failed" | "pending";
2062
2026
  }[];
2063
2027
  nextCursor: string | null;
2064
2028
  };
@@ -2096,59 +2060,41 @@ export declare function create(options: create.Options): import("hono/hono-base"
2096
2060
  approverEmail: string;
2097
2061
  approverId: string;
2098
2062
  createdAt: string;
2063
+ delegationId: string | null;
2099
2064
  expiresAt: string;
2100
2065
  groupId: string;
2101
2066
  id: string;
2102
2067
  input: {
2103
- allowedIps?: readonly string[] | undefined;
2104
- billingActive?: boolean | undefined;
2105
- environment?: "production" | "sandbox" | undefined;
2106
- name?: string | undefined;
2107
- projectId?: string | undefined;
2108
- rateLimits?: {
2109
- [x: string]: {
2110
- limit: number;
2111
- period: "minute" | "second";
2112
- };
2113
- } | undefined;
2114
- zoneTags?: readonly number[] | undefined;
2115
- createdBy?: string | undefined;
2116
- expiresAt?: string | undefined;
2068
+ accounts?: readonly string[] | undefined;
2069
+ tokens?: readonly string[] | undefined;
2070
+ accountsAll: boolean;
2071
+ chainId: number;
2072
+ environment: "production" | "sandbox";
2117
2073
  orgId: string;
2118
- scopes: readonly string[];
2074
+ tokensAll: boolean;
2119
2075
  };
2120
- keyId: string | null;
2121
2076
  requestId: string;
2122
2077
  requesterEmail: string;
2123
2078
  requesterId: string;
2124
- status: "cancelled" | "failed" | "issued" | "issuing" | "pending";
2079
+ status: "applied" | "applying" | "cancelled" | "failed" | "pending";
2125
2080
  }[];
2126
2081
  createdAt: string;
2082
+ delegationId: string | null;
2127
2083
  expiresAt: string;
2128
2084
  groupId: string;
2129
2085
  id: string;
2130
2086
  input: {
2131
- allowedIps?: readonly string[] | undefined;
2132
- billingActive?: boolean | undefined;
2133
- environment?: "production" | "sandbox" | undefined;
2134
- name?: string | undefined;
2135
- projectId?: string | undefined;
2136
- rateLimits?: {
2137
- [x: string]: {
2138
- limit: number;
2139
- period: "minute" | "second";
2140
- };
2141
- } | undefined;
2142
- zoneTags?: readonly number[] | undefined;
2143
- createdBy?: string | undefined;
2144
- expiresAt?: string | undefined;
2087
+ accounts?: readonly string[] | undefined;
2088
+ tokens?: readonly string[] | undefined;
2089
+ accountsAll: boolean;
2090
+ chainId: number;
2091
+ environment: "production" | "sandbox";
2145
2092
  orgId: string;
2146
- scopes: readonly string[];
2093
+ tokensAll: boolean;
2147
2094
  };
2148
- keyId: string | null;
2149
2095
  requesterEmail: string;
2150
2096
  requesterId: string;
2151
- status: "cancelled" | "failed" | "issued" | "issuing" | "pending";
2097
+ status: "applied" | "applying" | "cancelled" | "failed" | "pending";
2152
2098
  };
2153
2099
  outputFormat: "json";
2154
2100
  status: 200;
@@ -2168,59 +2114,41 @@ export declare function create(options: create.Options): import("hono/hono-base"
2168
2114
  approverEmail: string;
2169
2115
  approverId: string;
2170
2116
  createdAt: string;
2117
+ delegationId: string | null;
2171
2118
  expiresAt: string;
2172
2119
  groupId: string;
2173
2120
  id: string;
2174
2121
  input: {
2175
- allowedIps?: readonly string[] | undefined;
2176
- billingActive?: boolean | undefined;
2177
- environment?: "production" | "sandbox" | undefined;
2178
- name?: string | undefined;
2179
- projectId?: string | undefined;
2180
- rateLimits?: {
2181
- [x: string]: {
2182
- limit: number;
2183
- period: "minute" | "second";
2184
- };
2185
- } | undefined;
2186
- zoneTags?: readonly number[] | undefined;
2187
- createdBy?: string | undefined;
2188
- expiresAt?: string | undefined;
2122
+ accounts?: readonly string[] | undefined;
2123
+ tokens?: readonly string[] | undefined;
2124
+ accountsAll: boolean;
2125
+ chainId: number;
2126
+ environment: "production" | "sandbox";
2189
2127
  orgId: string;
2190
- scopes: readonly string[];
2128
+ tokensAll: boolean;
2191
2129
  };
2192
- keyId: string | null;
2193
2130
  requestId: string;
2194
2131
  requesterEmail: string;
2195
2132
  requesterId: string;
2196
- status: "cancelled" | "failed" | "issued" | "issuing" | "pending";
2133
+ status: "applied" | "applying" | "cancelled" | "failed" | "pending";
2197
2134
  }[];
2198
2135
  createdAt: string;
2136
+ delegationId: string | null;
2199
2137
  expiresAt: string;
2200
2138
  groupId: string;
2201
2139
  id: string;
2202
2140
  input: {
2203
- allowedIps?: readonly string[] | undefined;
2204
- billingActive?: boolean | undefined;
2205
- environment?: "production" | "sandbox" | undefined;
2206
- name?: string | undefined;
2207
- projectId?: string | undefined;
2208
- rateLimits?: {
2209
- [x: string]: {
2210
- limit: number;
2211
- period: "minute" | "second";
2212
- };
2213
- } | undefined;
2214
- zoneTags?: readonly number[] | undefined;
2215
- createdBy?: string | undefined;
2216
- expiresAt?: string | undefined;
2141
+ accounts?: readonly string[] | undefined;
2142
+ tokens?: readonly string[] | undefined;
2143
+ accountsAll: boolean;
2144
+ chainId: number;
2145
+ environment: "production" | "sandbox";
2217
2146
  orgId: string;
2218
- scopes: readonly string[];
2147
+ tokensAll: boolean;
2219
2148
  };
2220
- keyId: string | null;
2221
2149
  requesterEmail: string;
2222
2150
  requesterId: string;
2223
- status: "cancelled" | "failed" | "issued" | "issuing" | "pending";
2151
+ status: "applied" | "applying" | "cancelled" | "failed" | "pending";
2224
2152
  } | null;
2225
2153
  outputFormat: "json";
2226
2154
  status: 200;
@@ -2232,29 +2160,20 @@ export declare function create(options: create.Options): import("hono/hono-base"
2232
2160
  };
2233
2161
  };
2234
2162
  } & {
2235
- "/:id/issue": {
2163
+ "/:id/apply": {
2236
2164
  $post: {
2237
2165
  output: {
2238
- allowedIps: readonly string[];
2239
- billingActive?: boolean | undefined;
2240
- environment: "production" | "sandbox";
2241
- id: string;
2242
- name?: string | undefined;
2243
- orgId: string;
2244
- projectId?: string | undefined;
2245
- rateLimits?: {
2246
- [x: string]: {
2247
- limit: number;
2248
- period: "minute" | "second";
2249
- };
2250
- } | undefined;
2251
- scopes: readonly string[];
2252
- zoneTags?: readonly number[] | undefined;
2253
- createdAt: string;
2254
- createdBy?: string | undefined;
2255
- expiresAt?: string | undefined;
2256
- tokenLast4: string;
2257
- token: string;
2166
+ data: {
2167
+ accountsAll: boolean;
2168
+ chainId: number;
2169
+ createdAt: string;
2170
+ environment: "production" | "sandbox";
2171
+ id: string;
2172
+ orgId: string;
2173
+ revokedAt?: string | undefined;
2174
+ tokensAll: boolean;
2175
+ updatedAt: string;
2176
+ };
2258
2177
  };
2259
2178
  outputFormat: "json";
2260
2179
  status: 200;
@@ -2263,6 +2182,22 @@ export declare function create(options: create.Options): import("hono/hono-base"
2263
2182
  id: string;
2264
2183
  };
2265
2184
  };
2185
+ } | {
2186
+ output: {
2187
+ error: {
2188
+ code: "zone_delegation_exists";
2189
+ details?: readonly Response.error.Detail[] | undefined;
2190
+ message: string;
2191
+ };
2192
+ requestId: string;
2193
+ };
2194
+ outputFormat: "json";
2195
+ status: 409;
2196
+ input: {
2197
+ param: {
2198
+ id: string;
2199
+ };
2200
+ };
2266
2201
  };
2267
2202
  };
2268
2203
  } & {
@@ -2286,31 +2221,22 @@ export declare function create(options: create.Options): import("hono/hono-base"
2286
2221
  } | {
2287
2222
  output: {
2288
2223
  createdAt: string;
2224
+ delegationId: string | null;
2289
2225
  expiresAt: string;
2290
2226
  groupId: string;
2291
2227
  id: string;
2292
2228
  input: {
2293
- allowedIps?: readonly string[] | undefined;
2294
- billingActive?: boolean | undefined;
2295
- environment?: "production" | "sandbox" | undefined;
2296
- name?: string | undefined;
2297
- projectId?: string | undefined;
2298
- rateLimits?: {
2299
- [x: string]: {
2300
- limit: number;
2301
- period: "minute" | "second";
2302
- };
2303
- } | undefined;
2304
- zoneTags?: readonly number[] | undefined;
2305
- createdBy?: string | undefined;
2306
- expiresAt?: string | undefined;
2229
+ accounts?: readonly string[] | undefined;
2230
+ tokens?: readonly string[] | undefined;
2231
+ accountsAll: boolean;
2232
+ chainId: number;
2233
+ environment: "production" | "sandbox";
2307
2234
  orgId: string;
2308
- scopes: readonly string[];
2235
+ tokensAll: boolean;
2309
2236
  };
2310
- keyId: string | null;
2311
2237
  requesterEmail: string;
2312
2238
  requesterId: string;
2313
- status: "cancelled" | "failed" | "issued" | "issuing" | "pending";
2239
+ status: "applied" | "applying" | "cancelled" | "failed" | "pending";
2314
2240
  };
2315
2241
  outputFormat: "json";
2316
2242
  status: 200;
@@ -2321,7 +2247,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2321
2247
  };
2322
2248
  };
2323
2249
  };
2324
- }, "/zone-key-requests"> | import("hono/types").MergeSchemaPath<{
2250
+ }, "/zone-delegation-requests"> | import("hono/types").MergeSchemaPath<{
2325
2251
  "/backfill": {
2326
2252
  $post: {
2327
2253
  output: {
@@ -2360,7 +2286,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2360
2286
  orgId?: string | undefined;
2361
2287
  expiresAt?: string | undefined;
2362
2288
  name: string;
2363
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
2289
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[];
2364
2290
  };
2365
2291
  };
2366
2292
  } | {
@@ -2388,7 +2314,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2388
2314
  orgId?: string | undefined;
2389
2315
  expiresAt?: string | undefined;
2390
2316
  name: string;
2391
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
2317
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[];
2392
2318
  };
2393
2319
  };
2394
2320
  } | {
@@ -2416,7 +2342,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2416
2342
  orgId?: string | undefined;
2417
2343
  expiresAt?: string | undefined;
2418
2344
  name: string;
2419
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
2345
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[];
2420
2346
  };
2421
2347
  };
2422
2348
  } | {
@@ -2444,7 +2370,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2444
2370
  orgId?: string | undefined;
2445
2371
  expiresAt?: string | undefined;
2446
2372
  name: string;
2447
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
2373
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[];
2448
2374
  };
2449
2375
  };
2450
2376
  } | {
@@ -2472,35 +2398,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2472
2398
  orgId?: string | undefined;
2473
2399
  expiresAt?: string | undefined;
2474
2400
  name: string;
2475
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
2476
- };
2477
- };
2478
- } | {
2479
- output: {
2480
- error: {
2481
- code: "zone_key_approval_required";
2482
- details?: readonly Response.error.Detail[] | undefined;
2483
- message: string;
2484
- };
2485
- requestId: string;
2486
- };
2487
- outputFormat: "json";
2488
- status: 403;
2489
- input: {
2490
- json: {
2491
- allowedIps?: readonly string[] | undefined;
2492
- billingActive?: boolean | undefined;
2493
- environment?: "production" | "sandbox" | undefined;
2494
- projectId?: string | undefined;
2495
- rateLimits?: Record<string, {
2496
- limit: number;
2497
- period: "minute" | "second";
2498
- }> | undefined;
2499
- zoneTags?: readonly number[] | undefined;
2500
- orgId?: string | undefined;
2501
- expiresAt?: string | undefined;
2502
- name: string;
2503
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
2401
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[];
2504
2402
  };
2505
2403
  };
2506
2404
  } | {
@@ -2542,7 +2440,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2542
2440
  orgId?: string | undefined;
2543
2441
  expiresAt?: string | undefined;
2544
2442
  name: string;
2545
- scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[];
2443
+ scopes: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[];
2546
2444
  };
2547
2445
  };
2548
2446
  };
@@ -2682,22 +2580,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
2682
2580
  id: string;
2683
2581
  };
2684
2582
  };
2685
- } | {
2686
- output: {
2687
- error: {
2688
- code: "zone_key_approval_required";
2689
- details?: readonly Response.error.Detail[] | undefined;
2690
- message: string;
2691
- };
2692
- requestId: string;
2693
- };
2694
- outputFormat: "json";
2695
- status: 403;
2696
- input: {
2697
- param: {
2698
- id: string;
2699
- };
2700
- };
2701
2583
  } | {
2702
2584
  output: {
2703
2585
  allowedIps: readonly string[];
@@ -2728,51 +2610,21 @@ export declare function create(options: create.Options): import("hono/hono-base"
2728
2610
  id: string;
2729
2611
  };
2730
2612
  };
2731
- };
2732
- };
2733
- } & {
2734
- "/:id": {
2735
- $patch: {
2736
- output: {
2737
- error: {
2738
- code: "payload_too_large";
2739
- details?: readonly Response.error.Detail[] | undefined;
2740
- message: string;
2741
- };
2742
- requestId: string;
2743
- };
2744
- outputFormat: "json";
2745
- status: 413;
2746
- input: {
2747
- param: {
2748
- id: string;
2749
- };
2750
- } & {
2751
- json: {
2752
- allowedIps?: readonly string[] | undefined;
2753
- expiresAt?: string | null | undefined;
2754
- name?: string | undefined;
2755
- orgId?: string | undefined;
2756
- projectId?: string | undefined;
2757
- rateLimits?: Record<string, {
2758
- limit: number;
2759
- period: "minute" | "second";
2760
- }> | undefined;
2761
- scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2762
- zoneTags?: readonly number[] | null | undefined;
2763
- };
2764
- };
2765
- } | {
2613
+ };
2614
+ };
2615
+ } & {
2616
+ "/:id": {
2617
+ $patch: {
2766
2618
  output: {
2767
2619
  error: {
2768
- code: "upstream_error";
2620
+ code: "payload_too_large";
2769
2621
  details?: readonly Response.error.Detail[] | undefined;
2770
2622
  message: string;
2771
2623
  };
2772
2624
  requestId: string;
2773
2625
  };
2774
2626
  outputFormat: "json";
2775
- status: 502;
2627
+ status: 413;
2776
2628
  input: {
2777
2629
  param: {
2778
2630
  id: string;
@@ -2788,21 +2640,21 @@ export declare function create(options: create.Options): import("hono/hono-base"
2788
2640
  limit: number;
2789
2641
  period: "minute" | "second";
2790
2642
  }> | undefined;
2791
- scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2643
+ scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2792
2644
  zoneTags?: readonly number[] | null | undefined;
2793
2645
  };
2794
2646
  };
2795
2647
  } | {
2796
2648
  output: {
2797
2649
  error: {
2798
- code: "body_invalid";
2650
+ code: "upstream_error";
2799
2651
  details?: readonly Response.error.Detail[] | undefined;
2800
2652
  message: string;
2801
2653
  };
2802
2654
  requestId: string;
2803
2655
  };
2804
2656
  outputFormat: "json";
2805
- status: 400;
2657
+ status: 502;
2806
2658
  input: {
2807
2659
  param: {
2808
2660
  id: string;
@@ -2818,21 +2670,21 @@ export declare function create(options: create.Options): import("hono/hono-base"
2818
2670
  limit: number;
2819
2671
  period: "minute" | "second";
2820
2672
  }> | undefined;
2821
- scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2673
+ scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2822
2674
  zoneTags?: readonly number[] | null | undefined;
2823
2675
  };
2824
2676
  };
2825
2677
  } | {
2826
2678
  output: {
2827
2679
  error: {
2828
- code: "not_found";
2680
+ code: "body_invalid";
2829
2681
  details?: readonly Response.error.Detail[] | undefined;
2830
2682
  message: string;
2831
2683
  };
2832
2684
  requestId: string;
2833
2685
  };
2834
2686
  outputFormat: "json";
2835
- status: 404;
2687
+ status: 400;
2836
2688
  input: {
2837
2689
  param: {
2838
2690
  id: string;
@@ -2848,21 +2700,21 @@ export declare function create(options: create.Options): import("hono/hono-base"
2848
2700
  limit: number;
2849
2701
  period: "minute" | "second";
2850
2702
  }> | undefined;
2851
- scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2703
+ scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2852
2704
  zoneTags?: readonly number[] | null | undefined;
2853
2705
  };
2854
2706
  };
2855
2707
  } | {
2856
2708
  output: {
2857
2709
  error: {
2858
- code: "api_key_limit_reached";
2710
+ code: "not_found";
2859
2711
  details?: readonly Response.error.Detail[] | undefined;
2860
2712
  message: string;
2861
2713
  };
2862
2714
  requestId: string;
2863
2715
  };
2864
2716
  outputFormat: "json";
2865
- status: 409;
2717
+ status: 404;
2866
2718
  input: {
2867
2719
  param: {
2868
2720
  id: string;
@@ -2878,21 +2730,21 @@ export declare function create(options: create.Options): import("hono/hono-base"
2878
2730
  limit: number;
2879
2731
  period: "minute" | "second";
2880
2732
  }> | undefined;
2881
- scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2733
+ scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2882
2734
  zoneTags?: readonly number[] | null | undefined;
2883
2735
  };
2884
2736
  };
2885
2737
  } | {
2886
2738
  output: {
2887
2739
  error: {
2888
- code: "zone_key_approval_required";
2740
+ code: "api_key_limit_reached";
2889
2741
  details?: readonly Response.error.Detail[] | undefined;
2890
2742
  message: string;
2891
2743
  };
2892
2744
  requestId: string;
2893
2745
  };
2894
2746
  outputFormat: "json";
2895
- status: 403;
2747
+ status: 409;
2896
2748
  input: {
2897
2749
  param: {
2898
2750
  id: string;
@@ -2908,7 +2760,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2908
2760
  limit: number;
2909
2761
  period: "minute" | "second";
2910
2762
  }> | undefined;
2911
- scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2763
+ scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2912
2764
  zoneTags?: readonly number[] | null | undefined;
2913
2765
  };
2914
2766
  };
@@ -2938,7 +2790,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2938
2790
  limit: number;
2939
2791
  period: "minute" | "second";
2940
2792
  }> | undefined;
2941
- scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2793
+ scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2942
2794
  zoneTags?: readonly number[] | null | undefined;
2943
2795
  };
2944
2796
  };
@@ -2981,7 +2833,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
2981
2833
  limit: number;
2982
2834
  period: "minute" | "second";
2983
2835
  }> | undefined;
2984
- scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2836
+ scopes?: readonly ("*" | "data:read" | "indexer:query" | "management:read" | "management:write" | "mpp:write" | "rewards:read" | "rewards:write" | "routes:read" | "routes:write" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write" | "zone:read" | "zone:write" | `zone:${number}:read` | `zone:${number}:write`)[] | undefined;
2985
2837
  zoneTags?: readonly number[] | null | undefined;
2986
2838
  };
2987
2839
  };
@@ -3094,27 +2946,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
3094
2946
  projectId?: string | undefined;
3095
2947
  };
3096
2948
  };
3097
- } | {
3098
- output: {
3099
- error: {
3100
- code: "zone_key_approval_required";
3101
- details?: readonly Response.error.Detail[] | undefined;
3102
- message: string;
3103
- };
3104
- requestId: string;
3105
- };
3106
- outputFormat: "json";
3107
- status: 403;
3108
- input: {
3109
- param: {
3110
- id: string;
3111
- };
3112
- } & {
3113
- json: {
3114
- orgId: string;
3115
- projectId?: string | undefined;
3116
- };
3117
- };
3118
2949
  } | {
3119
2950
  output: {
3120
2951
  error: {
@@ -4510,14 +4341,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4510
4341
  } | {
4511
4342
  output: {
4512
4343
  error: {
4513
- code: "upstream_error";
4344
+ code: string;
4514
4345
  details?: readonly Response.error.Detail[] | undefined;
4515
4346
  message: string;
4516
4347
  };
4517
4348
  requestId: string;
4518
4349
  };
4519
4350
  outputFormat: "json";
4520
- status: 502;
4351
+ status: 400 | 413 | 415;
4521
4352
  input: {
4522
4353
  json: {
4523
4354
  address: `0x${string}`;
@@ -4533,14 +4364,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4533
4364
  } | {
4534
4365
  output: {
4535
4366
  error: {
4536
- code: "verified_token_not_found";
4367
+ code: "upstream_error";
4537
4368
  details?: readonly Response.error.Detail[] | undefined;
4538
4369
  message: string;
4539
4370
  };
4540
4371
  requestId: string;
4541
4372
  };
4542
4373
  outputFormat: "json";
4543
- status: 404;
4374
+ status: 502;
4544
4375
  input: {
4545
4376
  json: {
4546
4377
  address: `0x${string}`;
@@ -4556,7 +4387,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
4556
4387
  } | {
4557
4388
  output: {
4558
4389
  error: {
4559
- code: "assets_not_enabled";
4390
+ code: "verified_token_not_found";
4560
4391
  details?: readonly Response.error.Detail[] | undefined;
4561
4392
  message: string;
4562
4393
  };
@@ -4578,19 +4409,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
4578
4409
  };
4579
4410
  } | {
4580
4411
  output: {
4581
- data: {
4582
- address: `0x${string}`;
4583
- currency: string;
4584
- decimals: number;
4585
- logoUri?: string | undefined;
4586
- name: string;
4587
- symbol: string;
4588
- id: `0x${string}`;
4412
+ error: {
4413
+ code: "assets_not_enabled";
4414
+ details?: readonly Response.error.Detail[] | undefined;
4415
+ message: string;
4589
4416
  };
4590
- version: string;
4417
+ requestId: string;
4591
4418
  };
4592
4419
  outputFormat: "json";
4593
- status: import("hono/utils/http-status").ContentfulStatusCode;
4420
+ status: 404;
4594
4421
  input: {
4595
4422
  json: {
4596
4423
  address: `0x${string}`;
@@ -4605,15 +4432,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
4605
4432
  };
4606
4433
  } | {
4607
4434
  output: {
4608
- error: {
4609
- code: string;
4610
- details?: readonly Response.error.Detail[] | undefined;
4611
- message: string;
4435
+ data: {
4436
+ address: `0x${string}`;
4437
+ currency: string;
4438
+ decimals: number;
4439
+ logoUri?: string | undefined;
4440
+ name: string;
4441
+ symbol: string;
4442
+ id: `0x${string}`;
4612
4443
  };
4613
- requestId: string;
4444
+ version: string;
4614
4445
  };
4615
4446
  outputFormat: "json";
4616
- status: 400 | 413 | 415;
4447
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4617
4448
  input: {
4618
4449
  json: {
4619
4450
  address: `0x${string}`;
@@ -4729,14 +4560,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4729
4560
  } | {
4730
4561
  output: {
4731
4562
  error: {
4732
- code: "upstream_error";
4563
+ code: string;
4733
4564
  details?: readonly Response.error.Detail[] | undefined;
4734
4565
  message: string;
4735
4566
  };
4736
4567
  requestId: string;
4737
4568
  };
4738
4569
  outputFormat: "json";
4739
- status: 502;
4570
+ status: 400 | 413 | 415;
4740
4571
  input: {
4741
4572
  query: {
4742
4573
  chainId: string | string[];
@@ -4756,14 +4587,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4756
4587
  } | {
4757
4588
  output: {
4758
4589
  error: {
4759
- code: "verified_token_not_found";
4590
+ code: "upstream_error";
4760
4591
  details?: readonly Response.error.Detail[] | undefined;
4761
4592
  message: string;
4762
4593
  };
4763
4594
  requestId: string;
4764
4595
  };
4765
4596
  outputFormat: "json";
4766
- status: 404;
4597
+ status: 502;
4767
4598
  input: {
4768
4599
  query: {
4769
4600
  chainId: string | string[];
@@ -4783,14 +4614,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4783
4614
  } | {
4784
4615
  output: {
4785
4616
  error: {
4786
- code: string;
4617
+ code: "verified_token_not_found";
4787
4618
  details?: readonly Response.error.Detail[] | undefined;
4788
4619
  message: string;
4789
4620
  };
4790
4621
  requestId: string;
4791
4622
  };
4792
4623
  outputFormat: "json";
4793
- status: 400 | 413 | 415;
4624
+ status: 404;
4794
4625
  input: {
4795
4626
  query: {
4796
4627
  chainId: string | string[];
@@ -4954,14 +4785,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4954
4785
  } | {
4955
4786
  output: {
4956
4787
  error: {
4957
- code: "upstream_error";
4788
+ code: string;
4958
4789
  details?: readonly Response.error.Detail[] | undefined;
4959
4790
  message: string;
4960
4791
  };
4961
4792
  requestId: string;
4962
4793
  };
4963
4794
  outputFormat: "json";
4964
- status: 502;
4795
+ status: 400 | 413 | 415;
4965
4796
  input: {
4966
4797
  param: {
4967
4798
  address: `0x${string}`;
@@ -4982,14 +4813,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4982
4813
  } | {
4983
4814
  output: {
4984
4815
  error: {
4985
- code: "verified_token_not_found";
4816
+ code: "upstream_error";
4986
4817
  details?: readonly Response.error.Detail[] | undefined;
4987
4818
  message: string;
4988
4819
  };
4989
4820
  requestId: string;
4990
4821
  };
4991
4822
  outputFormat: "json";
4992
- status: 404;
4823
+ status: 502;
4993
4824
  input: {
4994
4825
  param: {
4995
4826
  address: `0x${string}`;
@@ -5009,19 +4840,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
5009
4840
  };
5010
4841
  } | {
5011
4842
  output: {
5012
- data: {
5013
- address: `0x${string}`;
5014
- currency: string;
5015
- decimals: number;
5016
- logoUri?: string | undefined;
5017
- name: string;
5018
- symbol: string;
5019
- id: `0x${string}`;
4843
+ error: {
4844
+ code: "verified_token_not_found";
4845
+ details?: readonly Response.error.Detail[] | undefined;
4846
+ message: string;
5020
4847
  };
5021
- version: string;
4848
+ requestId: string;
5022
4849
  };
5023
4850
  outputFormat: "json";
5024
- status: import("hono/utils/http-status").ContentfulStatusCode;
4851
+ status: 404;
5025
4852
  input: {
5026
4853
  param: {
5027
4854
  address: `0x${string}`;
@@ -5041,15 +4868,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
5041
4868
  };
5042
4869
  } | {
5043
4870
  output: {
5044
- error: {
5045
- code: string;
5046
- details?: readonly Response.error.Detail[] | undefined;
5047
- message: string;
4871
+ data: {
4872
+ address: `0x${string}`;
4873
+ currency: string;
4874
+ decimals: number;
4875
+ logoUri?: string | undefined;
4876
+ name: string;
4877
+ symbol: string;
4878
+ id: `0x${string}`;
5048
4879
  };
5049
- requestId: string;
4880
+ version: string;
5050
4881
  };
5051
4882
  outputFormat: "json";
5052
- status: 400 | 413 | 415;
4883
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5053
4884
  input: {
5054
4885
  param: {
5055
4886
  address: `0x${string}`;
@@ -5158,14 +4989,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5158
4989
  $delete: {
5159
4990
  output: {
5160
4991
  error: {
5161
- code: "upstream_error";
4992
+ code: string;
5162
4993
  details?: readonly Response.error.Detail[] | undefined;
5163
4994
  message: string;
5164
4995
  };
5165
4996
  requestId: string;
5166
4997
  };
5167
4998
  outputFormat: "json";
5168
- status: 502;
4999
+ status: 400 | 413 | 415;
5169
5000
  input: {
5170
5001
  param: {
5171
5002
  address: `0x${string}`;
@@ -5178,14 +5009,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5178
5009
  } | {
5179
5010
  output: {
5180
5011
  error: {
5181
- code: "verified_token_not_found";
5012
+ code: "upstream_error";
5182
5013
  details?: readonly Response.error.Detail[] | undefined;
5183
5014
  message: string;
5184
5015
  };
5185
5016
  requestId: string;
5186
5017
  };
5187
5018
  outputFormat: "json";
5188
- status: 404;
5019
+ status: 502;
5189
5020
  input: {
5190
5021
  param: {
5191
5022
  address: `0x${string}`;
@@ -5198,14 +5029,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5198
5029
  } | {
5199
5030
  output: {
5200
5031
  error: {
5201
- code: string;
5032
+ code: "verified_token_not_found";
5202
5033
  details?: readonly Response.error.Detail[] | undefined;
5203
5034
  message: string;
5204
5035
  };
5205
5036
  requestId: string;
5206
5037
  };
5207
5038
  outputFormat: "json";
5208
- status: 400 | 413 | 415;
5039
+ status: 404;
5209
5040
  input: {
5210
5041
  param: {
5211
5042
  address: `0x${string}`;
@@ -5374,14 +5205,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5374
5205
  } | {
5375
5206
  output: {
5376
5207
  error: {
5377
- code: "token_not_found";
5208
+ code: "address_invalid";
5378
5209
  details?: readonly Response.error.Detail[] | undefined;
5379
5210
  message: string;
5380
5211
  };
5381
5212
  requestId: string;
5382
5213
  };
5383
5214
  outputFormat: "json";
5384
- status: 404;
5215
+ status: 400;
5385
5216
  input: {
5386
5217
  param: {
5387
5218
  address: `0x${string}`;
@@ -5394,14 +5225,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5394
5225
  } | {
5395
5226
  output: {
5396
5227
  error: {
5397
- code: "address_invalid";
5228
+ code: "token_not_found";
5398
5229
  details?: readonly Response.error.Detail[] | undefined;
5399
5230
  message: string;
5400
5231
  };
5401
5232
  requestId: string;
5402
5233
  };
5403
5234
  outputFormat: "json";
5404
- status: 400;
5235
+ status: 404;
5405
5236
  input: {
5406
5237
  param: {
5407
5238
  address: `0x${string}`;
@@ -5577,14 +5408,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5577
5408
  $post: {
5578
5409
  output: {
5579
5410
  error: {
5580
- code: "upstream_error";
5411
+ code: string;
5581
5412
  details?: readonly Response.error.Detail[] | undefined;
5582
5413
  message: string;
5583
5414
  };
5584
5415
  requestId: string;
5585
5416
  };
5586
5417
  outputFormat: "json";
5587
- status: 502;
5418
+ status: 400 | 413 | 415;
5588
5419
  input: {
5589
5420
  param: {
5590
5421
  requestId: string;
@@ -5593,14 +5424,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5593
5424
  } | {
5594
5425
  output: {
5595
5426
  error: {
5596
- code: "token_not_found";
5427
+ code: "upstream_error";
5597
5428
  details?: readonly Response.error.Detail[] | undefined;
5598
5429
  message: string;
5599
5430
  };
5600
5431
  requestId: string;
5601
5432
  };
5602
5433
  outputFormat: "json";
5603
- status: 409;
5434
+ status: 502;
5604
5435
  input: {
5605
5436
  param: {
5606
5437
  requestId: string;
@@ -5609,14 +5440,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5609
5440
  } | {
5610
5441
  output: {
5611
5442
  error: {
5612
- code: "verified_token_not_found";
5443
+ code: "token_not_found";
5613
5444
  details?: readonly Response.error.Detail[] | undefined;
5614
5445
  message: string;
5615
5446
  };
5616
5447
  requestId: string;
5617
5448
  };
5618
5449
  outputFormat: "json";
5619
- status: 404;
5450
+ status: 409;
5620
5451
  input: {
5621
5452
  param: {
5622
5453
  requestId: string;
@@ -5625,14 +5456,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5625
5456
  } | {
5626
5457
  output: {
5627
5458
  error: {
5628
- code: "request_not_pending";
5459
+ code: "verified_token_not_found";
5629
5460
  details?: readonly Response.error.Detail[] | undefined;
5630
5461
  message: string;
5631
5462
  };
5632
5463
  requestId: string;
5633
5464
  };
5634
5465
  outputFormat: "json";
5635
- status: 409;
5466
+ status: 404;
5636
5467
  input: {
5637
5468
  param: {
5638
5469
  requestId: string;
@@ -5641,7 +5472,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
5641
5472
  } | {
5642
5473
  output: {
5643
5474
  error: {
5644
- code: "token_metadata_mismatch";
5475
+ code: "request_not_pending";
5645
5476
  details?: readonly Response.error.Detail[] | undefined;
5646
5477
  message: string;
5647
5478
  };
@@ -5657,14 +5488,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5657
5488
  } | {
5658
5489
  output: {
5659
5490
  error: {
5660
- code: "verified_token_request_not_found";
5491
+ code: "token_metadata_mismatch";
5661
5492
  details?: readonly Response.error.Detail[] | undefined;
5662
5493
  message: string;
5663
5494
  };
5664
5495
  requestId: string;
5665
5496
  };
5666
5497
  outputFormat: "json";
5667
- status: 404;
5498
+ status: 409;
5668
5499
  input: {
5669
5500
  param: {
5670
5501
  requestId: string;
@@ -5673,7 +5504,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
5673
5504
  } | {
5674
5505
  output: {
5675
5506
  error: {
5676
- code: "assets_not_enabled";
5507
+ code: "verified_token_request_not_found";
5677
5508
  details?: readonly Response.error.Detail[] | undefined;
5678
5509
  message: string;
5679
5510
  };
@@ -5689,14 +5520,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5689
5520
  } | {
5690
5521
  output: {
5691
5522
  error: {
5692
- code: string;
5523
+ code: "assets_not_enabled";
5693
5524
  details?: readonly Response.error.Detail[] | undefined;
5694
5525
  message: string;
5695
5526
  };
5696
5527
  requestId: string;
5697
5528
  };
5698
5529
  outputFormat: "json";
5699
- status: 400 | 413 | 415;
5530
+ status: 404;
5700
5531
  input: {
5701
5532
  param: {
5702
5533
  requestId: string;
@@ -5808,14 +5639,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5808
5639
  } | {
5809
5640
  output: {
5810
5641
  error: {
5811
- code: "upstream_error";
5642
+ code: string;
5812
5643
  details?: readonly Response.error.Detail[] | undefined;
5813
5644
  message: string;
5814
5645
  };
5815
5646
  requestId: string;
5816
5647
  };
5817
5648
  outputFormat: "json";
5818
- status: 502;
5649
+ status: 400 | 413 | 415;
5819
5650
  input: {
5820
5651
  param: {
5821
5652
  requestId: string;
@@ -5828,14 +5659,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5828
5659
  } | {
5829
5660
  output: {
5830
5661
  error: {
5831
- code: "verified_token_not_found";
5662
+ code: "upstream_error";
5832
5663
  details?: readonly Response.error.Detail[] | undefined;
5833
5664
  message: string;
5834
5665
  };
5835
5666
  requestId: string;
5836
5667
  };
5837
5668
  outputFormat: "json";
5838
- status: 404;
5669
+ status: 502;
5839
5670
  input: {
5840
5671
  param: {
5841
5672
  requestId: string;
@@ -5848,14 +5679,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5848
5679
  } | {
5849
5680
  output: {
5850
5681
  error: {
5851
- code: "request_not_pending";
5682
+ code: "verified_token_not_found";
5852
5683
  details?: readonly Response.error.Detail[] | undefined;
5853
5684
  message: string;
5854
5685
  };
5855
5686
  requestId: string;
5856
5687
  };
5857
5688
  outputFormat: "json";
5858
- status: 409;
5689
+ status: 404;
5859
5690
  input: {
5860
5691
  param: {
5861
5692
  requestId: string;
@@ -5868,14 +5699,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5868
5699
  } | {
5869
5700
  output: {
5870
5701
  error: {
5871
- code: "verified_token_request_not_found";
5702
+ code: "request_not_pending";
5872
5703
  details?: readonly Response.error.Detail[] | undefined;
5873
5704
  message: string;
5874
5705
  };
5875
5706
  requestId: string;
5876
5707
  };
5877
5708
  outputFormat: "json";
5878
- status: 404;
5709
+ status: 409;
5879
5710
  input: {
5880
5711
  param: {
5881
5712
  requestId: string;
@@ -5888,14 +5719,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5888
5719
  } | {
5889
5720
  output: {
5890
5721
  error: {
5891
- code: string;
5722
+ code: "verified_token_request_not_found";
5892
5723
  details?: readonly Response.error.Detail[] | undefined;
5893
5724
  message: string;
5894
5725
  };
5895
5726
  requestId: string;
5896
5727
  };
5897
5728
  outputFormat: "json";
5898
- status: 400 | 413 | 415;
5729
+ status: 404;
5899
5730
  input: {
5900
5731
  param: {
5901
5732
  requestId: string;
@@ -6072,7 +5903,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
6072
5903
  redeem: boolean;
6073
5904
  routerSwaps: boolean;
6074
5905
  } | undefined;
6075
- description: string | null;
6076
5906
  id: `0x${string}`;
6077
5907
  instantLiquidity: string | null;
6078
5908
  instantLiquidityValue?: {
@@ -6081,7 +5911,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
6081
5911
  decimals: number;
6082
5912
  formatted: string;
6083
5913
  } | null | undefined;
6084
- label: string;
6085
5914
  sharePrice: {
6086
5915
  amount: string;
6087
5916
  currency: string;
@@ -6128,6 +5957,8 @@ export declare function create(options: create.Options): import("hono/hono-base"
6128
5957
  name: string;
6129
5958
  outputTokens: `0x${string}`[];
6130
5959
  }[] | undefined;
5960
+ description: string | null;
5961
+ label: string;
6131
5962
  engine: {
6132
5963
  address: `0x${string}`;
6133
5964
  venue: `0x${string}` | null;
@@ -6245,7 +6076,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
6245
6076
  redeem: boolean;
6246
6077
  routerSwaps: boolean;
6247
6078
  } | undefined;
6248
- description: string | null;
6249
6079
  engine: {
6250
6080
  address: `0x${string}`;
6251
6081
  type: "erc4626" | "veda" | null;
@@ -6259,7 +6089,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
6259
6089
  decimals: number;
6260
6090
  formatted: string;
6261
6091
  } | null | undefined;
6262
- label: string;
6263
6092
  sharePrice: {
6264
6093
  amount: string;
6265
6094
  currency: string;
@@ -6276,7 +6105,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
6276
6105
  symbol: string;
6277
6106
  verified: boolean;
6278
6107
  };
6279
- slug: string | null;
6280
6108
  state: {
6281
6109
  depositsPaused: boolean;
6282
6110
  engineShares: string;
@@ -6308,6 +6136,9 @@ export declare function create(options: create.Options): import("hono/hono-base"
6308
6136
  name: string;
6309
6137
  outputTokens: `0x${string}`[];
6310
6138
  }[] | undefined;
6139
+ description: string | null;
6140
+ label: string;
6141
+ slug: string | null;
6311
6142
  earnings: {
6312
6143
  rewardDistributors: `0x${string}`[];
6313
6144
  } | null;
@@ -8019,7 +7850,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
8019
7850
  redeem: boolean;
8020
7851
  routerSwaps: boolean;
8021
7852
  } | undefined;
8022
- description: string | null;
8023
7853
  id: `0x${string}`;
8024
7854
  instantLiquidity: string | null;
8025
7855
  instantLiquidityValue?: {
@@ -8028,7 +7858,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
8028
7858
  decimals: number;
8029
7859
  formatted: string;
8030
7860
  } | null | undefined;
8031
- label: string;
8032
7861
  sharePrice: {
8033
7862
  amount: string;
8034
7863
  currency: string;
@@ -8075,6 +7904,8 @@ export declare function create(options: create.Options): import("hono/hono-base"
8075
7904
  name: string;
8076
7905
  outputTokens: `0x${string}`[];
8077
7906
  }[] | undefined;
7907
+ description: string | null;
7908
+ label: string;
8078
7909
  engine: {
8079
7910
  address: `0x${string}`;
8080
7911
  venue: `0x${string}` | null;
@@ -8447,14 +8278,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
8447
8278
  } | {
8448
8279
  output: {
8449
8280
  error: {
8450
- code: "routes_deposit_addresses_active";
8281
+ code: "not_found";
8451
8282
  details?: readonly Response.error.Detail[] | undefined;
8452
8283
  message: string;
8453
8284
  };
8454
8285
  requestId: string;
8455
8286
  };
8456
8287
  outputFormat: "json";
8457
- status: 409;
8288
+ status: 404;
8458
8289
  input: {
8459
8290
  param: {
8460
8291
  orgId: string;
@@ -8463,7 +8294,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
8463
8294
  } | {
8464
8295
  output: {
8465
8296
  error: {
8466
- code: "sponsorships_unreported";
8297
+ code: "routes_deposit_addresses_active";
8467
8298
  details?: readonly Response.error.Detail[] | undefined;
8468
8299
  message: string;
8469
8300
  };
@@ -8479,14 +8310,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
8479
8310
  } | {
8480
8311
  output: {
8481
8312
  error: {
8482
- code: "not_found";
8313
+ code: "sponsorships_unreported";
8483
8314
  details?: readonly Response.error.Detail[] | undefined;
8484
8315
  message: string;
8485
8316
  };
8486
8317
  requestId: string;
8487
8318
  };
8488
8319
  outputFormat: "json";
8489
- status: 404;
8320
+ status: 409;
8490
8321
  input: {
8491
8322
  param: {
8492
8323
  orgId: string;
@@ -8970,14 +8801,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
8970
8801
  } | {
8971
8802
  output: {
8972
8803
  error: {
8973
- code: "rate_limit_exceeded";
8804
+ code: "not_found";
8974
8805
  details?: readonly Response.error.Detail[] | undefined;
8975
8806
  message: string;
8976
8807
  };
8977
8808
  requestId: string;
8978
8809
  };
8979
8810
  outputFormat: "json";
8980
- status: 429;
8811
+ status: 404;
8981
8812
  input: {
8982
8813
  param: {
8983
8814
  orgId: string;
@@ -8990,16 +8821,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
8990
8821
  };
8991
8822
  } | {
8992
8823
  output: {
8993
- createdAt: string;
8994
- email: string;
8995
- expiresAt: string;
8996
- id: string;
8997
- invitedBy: string;
8998
- orgId: string;
8999
- role: "admin" | "member" | "owner";
8824
+ error: {
8825
+ code: "rate_limit_exceeded";
8826
+ details?: readonly Response.error.Detail[] | undefined;
8827
+ message: string;
8828
+ };
8829
+ requestId: string;
9000
8830
  };
9001
8831
  outputFormat: "json";
9002
- status: 200;
8832
+ status: 429;
9003
8833
  input: {
9004
8834
  param: {
9005
8835
  orgId: string;
@@ -9012,15 +8842,16 @@ export declare function create(options: create.Options): import("hono/hono-base"
9012
8842
  };
9013
8843
  } | {
9014
8844
  output: {
9015
- error: {
9016
- code: "not_found";
9017
- details?: readonly Response.error.Detail[] | undefined;
9018
- message: string;
9019
- };
9020
- requestId: string;
8845
+ createdAt: string;
8846
+ email: string;
8847
+ expiresAt: string;
8848
+ id: string;
8849
+ invitedBy: string;
8850
+ orgId: string;
8851
+ role: "admin" | "member" | "owner";
9021
8852
  };
9022
8853
  outputFormat: "json";
9023
- status: 404;
8854
+ status: 200;
9024
8855
  input: {
9025
8856
  param: {
9026
8857
  orgId: string;
@@ -9380,12 +9211,12 @@ export declare function create(options: create.Options): import("hono/hono-base"
9380
9211
  $get: {
9381
9212
  output: {
9382
9213
  auth: {
9214
+ delegationApprover: boolean | null;
9383
9215
  identity: {
9384
9216
  email: string;
9385
9217
  } | null;
9386
9218
  loginUrl?: string | undefined;
9387
9219
  logoutUrl?: string | undefined;
9388
- zoneKeyApprover: boolean | null;
9389
9220
  };
9390
9221
  rewards: {
9391
9222
  chainId: number;
@@ -9483,6 +9314,26 @@ export declare function create(options: create.Options): import("hono/hono-base"
9483
9314
  addresses: `0x${string}`[];
9484
9315
  };
9485
9316
  };
9317
+ } | {
9318
+ output: {
9319
+ error: {
9320
+ code: "zone_delegation_approval_required";
9321
+ details?: readonly Response.error.Detail[] | undefined;
9322
+ message: string;
9323
+ };
9324
+ requestId: string;
9325
+ };
9326
+ outputFormat: "json";
9327
+ status: 403;
9328
+ input: {
9329
+ param: {
9330
+ id: string;
9331
+ };
9332
+ } & {
9333
+ json: {
9334
+ addresses: `0x${string}`[];
9335
+ };
9336
+ };
9486
9337
  } | {
9487
9338
  output: {
9488
9339
  error: {
@@ -9690,6 +9541,26 @@ export declare function create(options: create.Options): import("hono/hono-base"
9690
9541
  addresses: `0x${string}`[];
9691
9542
  };
9692
9543
  };
9544
+ } | {
9545
+ output: {
9546
+ error: {
9547
+ code: "zone_delegation_approval_required";
9548
+ details?: readonly Response.error.Detail[] | undefined;
9549
+ message: string;
9550
+ };
9551
+ requestId: string;
9552
+ };
9553
+ outputFormat: "json";
9554
+ status: 403;
9555
+ input: {
9556
+ param: {
9557
+ id: string;
9558
+ };
9559
+ } & {
9560
+ json: {
9561
+ addresses: `0x${string}`[];
9562
+ };
9563
+ };
9693
9564
  } | {
9694
9565
  output: {
9695
9566
  error: {
@@ -9822,7 +9693,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
9822
9693
  environment: "production" | "sandbox";
9823
9694
  id: string;
9824
9695
  orgId: string;
9825
- projects: "all" | string[];
9826
9696
  revokedAt?: string | undefined;
9827
9697
  tokensAll: boolean;
9828
9698
  updatedAt: string;
@@ -9859,7 +9729,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
9859
9729
  chainId: unknown;
9860
9730
  environment: "production" | "sandbox";
9861
9731
  orgId: string;
9862
- projects: "all" | string[];
9863
9732
  tokens?: `0x${string}`[] | undefined;
9864
9733
  tokensAll: boolean;
9865
9734
  };
@@ -9882,36 +9751,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
9882
9751
  chainId: unknown;
9883
9752
  environment: "production" | "sandbox";
9884
9753
  orgId: string;
9885
- projects: "all" | string[];
9886
- tokens?: `0x${string}`[] | undefined;
9887
- tokensAll: boolean;
9888
- };
9889
- };
9890
- } | {
9891
- output: {
9892
- data: {
9893
- accountsAll: boolean;
9894
- chainId: number;
9895
- createdAt: string;
9896
- environment: "production" | "sandbox";
9897
- id: string;
9898
- orgId: string;
9899
- projects: "all" | string[];
9900
- revokedAt?: string | undefined;
9901
- tokensAll: boolean;
9902
- updatedAt: string;
9903
- };
9904
- };
9905
- outputFormat: "json";
9906
- status: 200;
9907
- input: {
9908
- json: {
9909
- accounts?: `0x${string}`[] | undefined;
9910
- accountsAll: boolean;
9911
- chainId: unknown;
9912
- environment: "production" | "sandbox";
9913
- orgId: string;
9914
- projects: "all" | string[];
9915
9754
  tokens?: `0x${string}`[] | undefined;
9916
9755
  tokensAll: boolean;
9917
9756
  };
@@ -9919,14 +9758,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
9919
9758
  } | {
9920
9759
  output: {
9921
9760
  error: {
9922
- code: "zone_delegation_exists";
9761
+ code: "zone_delegation_approval_required";
9923
9762
  details?: readonly Response.error.Detail[] | undefined;
9924
9763
  message: string;
9925
9764
  };
9926
9765
  requestId: string;
9927
9766
  };
9928
9767
  outputFormat: "json";
9929
- status: 409;
9768
+ status: 403;
9930
9769
  input: {
9931
9770
  json: {
9932
9771
  accounts?: `0x${string}`[] | undefined;
@@ -9934,7 +9773,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
9934
9773
  chainId: unknown;
9935
9774
  environment: "production" | "sandbox";
9936
9775
  orgId: string;
9937
- projects: "all" | string[];
9938
9776
  tokens?: `0x${string}`[] | undefined;
9939
9777
  tokensAll: boolean;
9940
9778
  };
@@ -9950,7 +9788,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
9950
9788
  chainId: number;
9951
9789
  environment: "production" | "sandbox";
9952
9790
  orgId: string;
9953
- projects: "all" | string[];
9954
9791
  tokensAll: true;
9955
9792
  }[];
9956
9793
  keys: number;
@@ -9977,7 +9814,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
9977
9814
  chainId: number;
9978
9815
  environment: "production" | "sandbox";
9979
9816
  orgId: string;
9980
- projects: "all" | string[];
9981
9817
  tokensAll: true;
9982
9818
  }[];
9983
9819
  keys: number;
@@ -9997,6 +9833,199 @@ export declare function create(options: create.Options): import("hono/hono-base"
9997
9833
  input: {};
9998
9834
  };
9999
9835
  };
9836
+ } & {
9837
+ "/rewrite-keys": {
9838
+ $get: {
9839
+ output: {
9840
+ changes: {
9841
+ environment: "production" | "sandbox";
9842
+ id: string;
9843
+ name?: string | undefined;
9844
+ orgId: string;
9845
+ projectId?: string | undefined;
9846
+ complete: boolean;
9847
+ revoked: number[];
9848
+ scopes: string[];
9849
+ undelegated: number[];
9850
+ zoneTags: number[];
9851
+ }[];
9852
+ expiring: {
9853
+ environment: "production" | "sandbox";
9854
+ id: string;
9855
+ name?: string | undefined;
9856
+ orgId: string;
9857
+ projectId?: string | undefined;
9858
+ }[];
9859
+ invalid: {
9860
+ environment: "production" | "sandbox";
9861
+ id: string;
9862
+ name?: string | undefined;
9863
+ orgId: string;
9864
+ projectId?: string | undefined;
9865
+ }[];
9866
+ keys: number;
9867
+ mixed: {
9868
+ environment: "production" | "sandbox";
9869
+ id: string;
9870
+ name?: string | undefined;
9871
+ orgId: string;
9872
+ projectId?: string | undefined;
9873
+ }[];
9874
+ narrow: {
9875
+ accountsAll: boolean;
9876
+ chainId: number;
9877
+ createdAt: string;
9878
+ environment: "production" | "sandbox";
9879
+ id: string;
9880
+ orgId: string;
9881
+ revokedAt?: string | undefined;
9882
+ tokensAll: boolean;
9883
+ updatedAt: string;
9884
+ }[];
9885
+ orgless: {
9886
+ environment: "production" | "sandbox";
9887
+ id: string;
9888
+ name?: string | undefined;
9889
+ orgId: string;
9890
+ projectId?: string | undefined;
9891
+ }[];
9892
+ revoked: {
9893
+ accountsAll: boolean;
9894
+ chainId: number;
9895
+ createdAt: string;
9896
+ environment: "production" | "sandbox";
9897
+ id: string;
9898
+ orgId: string;
9899
+ revokedAt?: string | undefined;
9900
+ tokensAll: boolean;
9901
+ updatedAt: string;
9902
+ }[];
9903
+ tagless: {
9904
+ environment: "production" | "sandbox";
9905
+ id: string;
9906
+ name?: string | undefined;
9907
+ orgId: string;
9908
+ projectId?: string | undefined;
9909
+ }[];
9910
+ unconfigured: number[];
9911
+ unreadableRecords: number;
9912
+ wildcard: {
9913
+ environment: "production" | "sandbox";
9914
+ id: string;
9915
+ name?: string | undefined;
9916
+ orgId: string;
9917
+ projectId?: string | undefined;
9918
+ }[];
9919
+ };
9920
+ outputFormat: "json";
9921
+ status: 200;
9922
+ input: {};
9923
+ };
9924
+ };
9925
+ } & {
9926
+ "/rewrite-keys": {
9927
+ $post: {
9928
+ output: {
9929
+ changes: {
9930
+ environment: "production" | "sandbox";
9931
+ id: string;
9932
+ name?: string | undefined;
9933
+ orgId: string;
9934
+ projectId?: string | undefined;
9935
+ complete: boolean;
9936
+ revoked: number[];
9937
+ scopes: string[];
9938
+ undelegated: number[];
9939
+ zoneTags: number[];
9940
+ }[];
9941
+ expiring: {
9942
+ environment: "production" | "sandbox";
9943
+ id: string;
9944
+ name?: string | undefined;
9945
+ orgId: string;
9946
+ projectId?: string | undefined;
9947
+ }[];
9948
+ invalid: {
9949
+ environment: "production" | "sandbox";
9950
+ id: string;
9951
+ name?: string | undefined;
9952
+ orgId: string;
9953
+ projectId?: string | undefined;
9954
+ }[];
9955
+ keys: number;
9956
+ mixed: {
9957
+ environment: "production" | "sandbox";
9958
+ id: string;
9959
+ name?: string | undefined;
9960
+ orgId: string;
9961
+ projectId?: string | undefined;
9962
+ }[];
9963
+ narrow: {
9964
+ accountsAll: boolean;
9965
+ chainId: number;
9966
+ createdAt: string;
9967
+ environment: "production" | "sandbox";
9968
+ id: string;
9969
+ orgId: string;
9970
+ revokedAt?: string | undefined;
9971
+ tokensAll: boolean;
9972
+ updatedAt: string;
9973
+ }[];
9974
+ orgless: {
9975
+ environment: "production" | "sandbox";
9976
+ id: string;
9977
+ name?: string | undefined;
9978
+ orgId: string;
9979
+ projectId?: string | undefined;
9980
+ }[];
9981
+ revoked: {
9982
+ accountsAll: boolean;
9983
+ chainId: number;
9984
+ createdAt: string;
9985
+ environment: "production" | "sandbox";
9986
+ id: string;
9987
+ orgId: string;
9988
+ revokedAt?: string | undefined;
9989
+ tokensAll: boolean;
9990
+ updatedAt: string;
9991
+ }[];
9992
+ tagless: {
9993
+ environment: "production" | "sandbox";
9994
+ id: string;
9995
+ name?: string | undefined;
9996
+ orgId: string;
9997
+ projectId?: string | undefined;
9998
+ }[];
9999
+ unconfigured: number[];
10000
+ unreadableRecords: number;
10001
+ wildcard: {
10002
+ environment: "production" | "sandbox";
10003
+ id: string;
10004
+ name?: string | undefined;
10005
+ orgId: string;
10006
+ projectId?: string | undefined;
10007
+ }[];
10008
+ createdDelegations: number;
10009
+ revokedDelegations: number;
10010
+ rewritten: number;
10011
+ };
10012
+ outputFormat: "json";
10013
+ status: 200;
10014
+ input: {};
10015
+ } | {
10016
+ output: {
10017
+ error: {
10018
+ code: "zone_delegations_narrow";
10019
+ details?: readonly Response.error.Detail[] | undefined;
10020
+ message: string;
10021
+ };
10022
+ requestId: string;
10023
+ };
10024
+ outputFormat: "json";
10025
+ status: 400;
10026
+ input: {};
10027
+ };
10028
+ };
10000
10029
  } & {
10001
10030
  "/:id": {
10002
10031
  $get: {
@@ -10024,7 +10053,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
10024
10053
  environment: "production" | "sandbox";
10025
10054
  id: string;
10026
10055
  orgId: string;
10027
- projects: "all" | string[];
10028
10056
  revokedAt?: string | undefined;
10029
10057
  tokensAll: boolean;
10030
10058
  updatedAt: string;
@@ -10059,7 +10087,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
10059
10087
  } & {
10060
10088
  json: {
10061
10089
  accountsAll?: boolean | undefined;
10062
- projects?: "all" | string[] | undefined;
10063
10090
  tokensAll?: boolean | undefined;
10064
10091
  };
10065
10092
  };
@@ -10081,7 +10108,27 @@ export declare function create(options: create.Options): import("hono/hono-base"
10081
10108
  } & {
10082
10109
  json: {
10083
10110
  accountsAll?: boolean | undefined;
10084
- projects?: "all" | string[] | undefined;
10111
+ tokensAll?: boolean | undefined;
10112
+ };
10113
+ };
10114
+ } | {
10115
+ output: {
10116
+ error: {
10117
+ code: "zone_delegation_approval_required";
10118
+ details?: readonly Response.error.Detail[] | undefined;
10119
+ message: string;
10120
+ };
10121
+ requestId: string;
10122
+ };
10123
+ outputFormat: "json";
10124
+ status: 403;
10125
+ input: {
10126
+ param: {
10127
+ id: string;
10128
+ };
10129
+ } & {
10130
+ json: {
10131
+ accountsAll?: boolean | undefined;
10085
10132
  tokensAll?: boolean | undefined;
10086
10133
  };
10087
10134
  };
@@ -10094,7 +10141,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
10094
10141
  environment: "production" | "sandbox";
10095
10142
  id: string;
10096
10143
  orgId: string;
10097
- projects: "all" | string[];
10098
10144
  revokedAt?: string | undefined;
10099
10145
  tokensAll: boolean;
10100
10146
  updatedAt: string;
@@ -10109,7 +10155,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
10109
10155
  } & {
10110
10156
  json: {
10111
10157
  accountsAll?: boolean | undefined;
10112
- projects?: "all" | string[] | undefined;
10113
10158
  tokensAll?: boolean | undefined;
10114
10159
  };
10115
10160
  };
@@ -10131,7 +10176,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
10131
10176
  } & {
10132
10177
  json: {
10133
10178
  accountsAll?: boolean | undefined;
10134
- projects?: "all" | string[] | undefined;
10135
10179
  tokensAll?: boolean | undefined;
10136
10180
  };
10137
10181
  };
@@ -10164,7 +10208,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
10164
10208
  environment: "production" | "sandbox";
10165
10209
  id: string;
10166
10210
  orgId: string;
10167
- projects: "all" | string[];
10168
10211
  revokedAt?: string | undefined;
10169
10212
  tokensAll: boolean;
10170
10213
  updatedAt: string;
@@ -10189,14 +10232,14 @@ export declare namespace create {
10189
10232
  type Assets = Assets.Assets;
10190
10233
  /** Options for {@link create}. */
10191
10234
  type Options = {
10192
- /** Verified identity integration for the Zone key quorum workflow. */
10193
- zoneKeyApproval?: {
10235
+ /** Verified identity integration for the Zone delegation quorum workflow. */
10236
+ delegationApproval?: {
10194
10237
  /** Exact internal identity group required for approvals. */
10195
10238
  groupId: string;
10196
10239
  /** Returns the verified session identity; never trust caller-supplied identity fields. */
10197
- identify: (request: Request, context: Context<Environment>) => ZoneKeyApproval.Member | null | Promise<ZoneKeyApproval.Member | null>;
10240
+ identify: (request: Request, context: Context<Environment>) => ZoneDelegationApproval.Member | null | Promise<ZoneDelegationApproval.Member | null>;
10198
10241
  /** Fetches fresh account/group status using the current request; failures must throw. */
10199
- lookup: (request: Request, ids: readonly string[]) => ReturnType<ZoneKeyApproval.Lookup>;
10242
+ lookup: (request: Request, ids: readonly string[]) => ReturnType<ZoneDelegationApproval.Lookup>;
10200
10243
  } | undefined;
10201
10244
  /** ClickHouse analytics source used by operational usage reads. */
10202
10245
  analytics: Analytics.Source;