tapimo 0.15.1 → 0.18.1

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 (709) hide show
  1. package/README.md +137 -0
  2. package/dist/ApiKey.d.ts +1 -0
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +4 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +37 -11
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +163 -10
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +13085 -11974
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +46 -15
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +1 -1
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +1 -1
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/admin/App.d.ts +893 -191
  19. package/dist/admin/App.d.ts.map +1 -1
  20. package/dist/admin/App.js +5 -1
  21. package/dist/admin/App.js.map +1 -1
  22. package/dist/admin/apps/api-keys.d.ts +70 -70
  23. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.js +8 -3
  25. package/dist/admin/apps/api-keys.js.map +1 -1
  26. package/dist/admin/apps/earn-vaults.d.ts +66 -27
  27. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  28. package/dist/admin/apps/earn-vaults.js +36 -7
  29. package/dist/admin/apps/earn-vaults.js.map +1 -1
  30. package/dist/admin/apps/organizations.d.ts +25 -25
  31. package/dist/admin/apps/organizations.d.ts.map +1 -1
  32. package/dist/admin/apps/organizations.js +5 -4
  33. package/dist/admin/apps/organizations.js.map +1 -1
  34. package/dist/admin/apps/route-policies.d.ts +632 -0
  35. package/dist/admin/apps/route-policies.d.ts.map +1 -0
  36. package/dist/admin/apps/route-policies.js +257 -0
  37. package/dist/admin/apps/route-policies.js.map +1 -0
  38. package/dist/admin/apps/routes-support.js +39 -3
  39. package/dist/admin/apps/routes-support.js.map +1 -1
  40. package/dist/admin/apps/routes.d.ts +529 -76
  41. package/dist/admin/apps/routes.d.ts.map +1 -1
  42. package/dist/admin/apps/routes.js +82 -1
  43. package/dist/admin/apps/routes.js.map +1 -1
  44. package/dist/admin/apps/verified-tokens.d.ts +157 -157
  45. package/dist/admin/index.d.ts +0 -1
  46. package/dist/admin/index.d.ts.map +1 -1
  47. package/dist/admin/index.js +0 -1
  48. package/dist/admin/index.js.map +1 -1
  49. package/dist/admin/ui.generated.d.ts +1 -1
  50. package/dist/admin/ui.generated.d.ts.map +1 -1
  51. package/dist/admin/ui.generated.js +205 -201
  52. package/dist/admin/ui.generated.js.map +1 -1
  53. package/dist/analytics/Analytics.d.ts.map +1 -1
  54. package/dist/analytics/Analytics.js +65 -1
  55. package/dist/analytics/Analytics.js.map +1 -1
  56. package/dist/analytics/tables/requestEvents.d.ts +1 -1
  57. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  58. package/dist/analytics/tables/requestEvents.js +58 -59
  59. package/dist/analytics/tables/requestEvents.js.map +1 -1
  60. package/dist/apps/data/App.d.ts +2709 -2670
  61. package/dist/apps/data/App.d.ts.map +1 -1
  62. package/dist/apps/data/routes/activities.d.ts +357 -357
  63. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  64. package/dist/apps/data/routes/activities.js +50 -0
  65. package/dist/apps/data/routes/activities.js.map +1 -1
  66. package/dist/apps/data/routes/addresses.d.ts +248 -248
  67. package/dist/apps/data/routes/balances.d.ts +22 -22
  68. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  69. package/dist/apps/data/routes/balances.js +5 -7
  70. package/dist/apps/data/routes/balances.js.map +1 -1
  71. package/dist/apps/data/routes/blocks.d.ts +125 -125
  72. package/dist/apps/data/routes/coingecko.d.ts +54 -54
  73. package/dist/apps/data/routes/earn.d.ts +103 -12
  74. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  75. package/dist/apps/data/routes/earn.js +456 -220
  76. package/dist/apps/data/routes/earn.js.map +1 -1
  77. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  78. package/dist/apps/data/routes/exchanges.js +267 -97
  79. package/dist/apps/data/routes/exchanges.js.map +1 -1
  80. package/dist/apps/data/routes/fee-amm.d.ts +109 -127
  81. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  82. package/dist/apps/data/routes/fee-amm.js +83 -54
  83. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  84. package/dist/apps/data/routes/indexer.d.ts +43 -43
  85. package/dist/apps/data/routes/receipts.d.ts +235 -235
  86. package/dist/apps/data/routes/rpc.d.ts +30 -30
  87. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  88. package/dist/apps/data/routes/tokens.js +11 -6
  89. package/dist/apps/data/routes/tokens.js.map +1 -1
  90. package/dist/apps/data/routes/transactions.d.ts +2 -0
  91. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  92. package/dist/apps/data/routes/transactions.js +30 -22
  93. package/dist/apps/data/routes/transactions.js.map +1 -1
  94. package/dist/apps/data/routes/transfers.d.ts +77 -77
  95. package/dist/apps/data/routes/valuation.d.ts +32 -32
  96. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  97. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  98. package/dist/apps/data/routes/webhooks.js +1 -1
  99. package/dist/apps/data/routes/webhooks.js.map +1 -1
  100. package/dist/apps/data/routes/zones.d.ts +31 -31
  101. package/dist/apps/management/App.d.ts +2909 -2064
  102. package/dist/apps/management/App.d.ts.map +1 -1
  103. package/dist/apps/management/App.js +2 -0
  104. package/dist/apps/management/App.js.map +1 -1
  105. package/dist/apps/management/Billing.d.ts +2 -4
  106. package/dist/apps/management/Billing.d.ts.map +1 -1
  107. package/dist/apps/management/Billing.js +65 -26
  108. package/dist/apps/management/Billing.js.map +1 -1
  109. package/dist/apps/management/routes/api-keys.d.ts +257 -245
  110. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  111. package/dist/apps/management/routes/api-keys.js +70 -11
  112. package/dist/apps/management/routes/api-keys.js.map +1 -1
  113. package/dist/apps/management/routes/billing.d.ts +84 -84
  114. package/dist/apps/management/routes/cli.d.ts +912 -0
  115. package/dist/apps/management/routes/cli.d.ts.map +1 -0
  116. package/dist/apps/management/routes/cli.js +416 -0
  117. package/dist/apps/management/routes/cli.js.map +1 -0
  118. package/dist/apps/management/routes/faucet.d.ts +8 -8
  119. package/dist/apps/management/routes/invitations.d.ts +138 -138
  120. package/dist/apps/management/routes/invite-links.d.ts +172 -172
  121. package/dist/apps/management/routes/members.d.ts +16 -16
  122. package/dist/apps/management/routes/orgs.d.ts +104 -104
  123. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  124. package/dist/apps/management/routes/orgs.js +8 -2
  125. package/dist/apps/management/routes/orgs.js.map +1 -1
  126. package/dist/apps/management/routes/projects.d.ts +125 -125
  127. package/dist/apps/management/routes/usage.d.ts +8 -8
  128. package/dist/apps/management/routes/verified-token-requests.d.ts +86 -86
  129. package/dist/apps/management/routes/webhooks.d.ts +485 -485
  130. package/dist/apps/mpp/App.d.ts +44 -44
  131. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
  132. package/dist/apps/mpp/internal/Policy.js +4 -2
  133. package/dist/apps/mpp/internal/Policy.js.map +1 -1
  134. package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -1
  135. package/dist/apps/mpp/internal/Sponsorship.js +6 -4
  136. package/dist/apps/mpp/internal/Sponsorship.js.map +1 -1
  137. package/dist/apps/relay/App.d.ts +8 -0
  138. package/dist/apps/relay/App.d.ts.map +1 -1
  139. package/dist/apps/relay/App.js +16 -4
  140. package/dist/apps/relay/App.js.map +1 -1
  141. package/dist/apps/relay/Sponsorships.d.ts +4 -6
  142. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  143. package/dist/apps/relay/Sponsorships.js +71 -60
  144. package/dist/apps/relay/Sponsorships.js.map +1 -1
  145. package/dist/apps/routes/Access.d.ts +53 -0
  146. package/dist/apps/routes/Access.d.ts.map +1 -1
  147. package/dist/apps/routes/Access.js +121 -0
  148. package/dist/apps/routes/Access.js.map +1 -1
  149. package/dist/apps/routes/App.d.ts +397 -158
  150. package/dist/apps/routes/App.d.ts.map +1 -1
  151. package/dist/apps/routes/App.js.map +1 -1
  152. package/dist/apps/routes/routes/chains.d.ts +25 -25
  153. package/dist/apps/routes/routes/deposit-addresses.d.ts +169 -61
  154. package/dist/apps/routes/routes/deposit-addresses.d.ts.map +1 -1
  155. package/dist/apps/routes/routes/deposit-addresses.js +217 -32
  156. package/dist/apps/routes/routes/deposit-addresses.js.map +1 -1
  157. package/dist/apps/routes/routes/quotes.d.ts +171 -81
  158. package/dist/apps/routes/routes/quotes.d.ts.map +1 -1
  159. package/dist/apps/routes/routes/quotes.js +101 -27
  160. package/dist/apps/routes/routes/quotes.js.map +1 -1
  161. package/dist/apps/routes/routes/transfers.d.ts +532 -480
  162. package/dist/apps/routes/routes/transfers.d.ts.map +1 -1
  163. package/dist/apps/routes/routes/transfers.js +182 -37
  164. package/dist/apps/routes/routes/transfers.js.map +1 -1
  165. package/dist/cli/ApiKeys.d.ts +120 -0
  166. package/dist/cli/ApiKeys.d.ts.map +1 -0
  167. package/dist/cli/ApiKeys.js +138 -0
  168. package/dist/cli/ApiKeys.js.map +1 -0
  169. package/dist/cli/Cli.d.ts +92 -34
  170. package/dist/cli/Cli.d.ts.map +1 -1
  171. package/dist/cli/Cli.js +188 -11
  172. package/dist/cli/Cli.js.map +1 -1
  173. package/dist/cli/Credentials.d.ts +95 -0
  174. package/dist/cli/Credentials.d.ts.map +1 -0
  175. package/dist/cli/Credentials.js +110 -0
  176. package/dist/cli/Credentials.js.map +1 -0
  177. package/dist/cli/Spec.d.ts +59 -0
  178. package/dist/cli/Spec.d.ts.map +1 -0
  179. package/dist/cli/Spec.js +77 -0
  180. package/dist/cli/Spec.js.map +1 -0
  181. package/dist/cli/bin.js +5 -1
  182. package/dist/cli/bin.js.map +1 -1
  183. package/dist/cli/commands/admin.d.ts +5 -5
  184. package/dist/cli/commands/admin.d.ts.map +1 -1
  185. package/dist/cli/commands/auth.d.ts +73 -0
  186. package/dist/cli/commands/auth.d.ts.map +1 -0
  187. package/dist/cli/commands/auth.js +204 -0
  188. package/dist/cli/commands/auth.js.map +1 -0
  189. package/dist/cli/commands/keys.d.ts +17 -0
  190. package/dist/cli/commands/keys.d.ts.map +1 -0
  191. package/dist/cli/commands/keys.js +109 -0
  192. package/dist/cli/commands/keys.js.map +1 -0
  193. package/dist/cloudflare.d.ts +27 -2
  194. package/dist/cloudflare.d.ts.map +1 -1
  195. package/dist/cloudflare.js +144 -17
  196. package/dist/cloudflare.js.map +1 -1
  197. package/dist/db/Db.d.ts +23 -0
  198. package/dist/db/Db.d.ts.map +1 -1
  199. package/dist/db/Db.js +413 -1
  200. package/dist/db/Db.js.map +1 -1
  201. package/dist/db/Schema.d.ts +44 -1
  202. package/dist/db/Schema.d.ts.map +1 -1
  203. package/dist/db/Schema.js +56 -3
  204. package/dist/db/Schema.js.map +1 -1
  205. package/dist/db/tables/apiKeyAdmissions.d.ts +28 -2
  206. package/dist/db/tables/apiKeyAdmissions.d.ts.map +1 -1
  207. package/dist/db/tables/apiKeyAdmissions.js +65 -9
  208. package/dist/db/tables/apiKeyAdmissions.js.map +1 -1
  209. package/dist/db/tables/apiKeyOwnerTombstones.d.ts +2 -0
  210. package/dist/db/tables/apiKeyOwnerTombstones.d.ts.map +1 -1
  211. package/dist/db/tables/apiKeyOwnerTombstones.js +2 -2
  212. package/dist/db/tables/apiKeyOwnerTombstones.js.map +1 -1
  213. package/dist/db/tables/authAccounts.d.ts.map +1 -1
  214. package/dist/db/tables/authAccounts.js +1 -0
  215. package/dist/db/tables/authAccounts.js.map +1 -1
  216. package/dist/db/tables/earnVaults.d.ts +5 -1
  217. package/dist/db/tables/earnVaults.d.ts.map +1 -1
  218. package/dist/db/tables/earnVaults.js +12 -1
  219. package/dist/db/tables/earnVaults.js.map +1 -1
  220. package/dist/db/tables/organizations.d.ts +4 -2
  221. package/dist/db/tables/organizations.d.ts.map +1 -1
  222. package/dist/db/tables/organizations.js +8 -34
  223. package/dist/db/tables/organizations.js.map +1 -1
  224. package/dist/db/tables/requestUsage.d.ts +5 -1
  225. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  226. package/dist/db/tables/requestUsage.js +10 -2
  227. package/dist/db/tables/requestUsage.js.map +1 -1
  228. package/dist/db/tables/rewardEligibilityAssociations.d.ts +13 -0
  229. package/dist/db/tables/rewardEligibilityAssociations.d.ts.map +1 -1
  230. package/dist/db/tables/rewardEligibilityAssociations.js +11 -0
  231. package/dist/db/tables/rewardEligibilityAssociations.js.map +1 -1
  232. package/dist/db/tables/rewardRuns.d.ts.map +1 -1
  233. package/dist/db/tables/rewardRuns.js +4 -0
  234. package/dist/db/tables/rewardRuns.js.map +1 -1
  235. package/dist/db/tables/rewardTransactionAttempts.d.ts.map +1 -1
  236. package/dist/db/tables/rewardTransactionAttempts.js +2 -0
  237. package/dist/db/tables/rewardTransactionAttempts.js.map +1 -1
  238. package/dist/db/tables/routesDepositAddresses.d.ts +29 -0
  239. package/dist/db/tables/routesDepositAddresses.d.ts.map +1 -1
  240. package/dist/db/tables/routesDepositAddresses.js +84 -31
  241. package/dist/db/tables/routesDepositAddresses.js.map +1 -1
  242. package/dist/db/tables/routesDeposits.d.ts.map +1 -1
  243. package/dist/db/tables/routesDeposits.js +31 -21
  244. package/dist/db/tables/routesDeposits.js.map +1 -1
  245. package/dist/db/tables/routesIdempotency.d.ts.map +1 -1
  246. package/dist/db/tables/routesIdempotency.js +2 -0
  247. package/dist/db/tables/routesIdempotency.js.map +1 -1
  248. package/dist/db/tables/routesPolicies.d.ts +58 -0
  249. package/dist/db/tables/routesPolicies.d.ts.map +1 -0
  250. package/dist/db/tables/routesPolicies.js +198 -0
  251. package/dist/db/tables/routesPolicies.js.map +1 -0
  252. package/dist/db/tables/routesTransferSubsidies.d.ts +22 -0
  253. package/dist/db/tables/routesTransferSubsidies.d.ts.map +1 -1
  254. package/dist/db/tables/routesTransferSubsidies.js +41 -0
  255. package/dist/db/tables/routesTransferSubsidies.js.map +1 -1
  256. package/dist/db/tables/routesTransferSubsidyNonces.d.ts.map +1 -1
  257. package/dist/db/tables/routesTransferSubsidyNonces.js +12 -4
  258. package/dist/db/tables/routesTransferSubsidyNonces.js.map +1 -1
  259. package/dist/db/tables/routesTransfers.d.ts +26 -1
  260. package/dist/db/tables/routesTransfers.d.ts.map +1 -1
  261. package/dist/db/tables/routesTransfers.js +36 -6
  262. package/dist/db/tables/routesTransfers.js.map +1 -1
  263. package/dist/db/tables/sponsoredTransactions.d.ts +45 -13
  264. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  265. package/dist/db/tables/sponsoredTransactions.js +144 -33
  266. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  267. package/dist/db/tables/users.d.ts +2 -0
  268. package/dist/db/tables/users.d.ts.map +1 -1
  269. package/dist/db/tables/users.js +11 -0
  270. package/dist/db/tables/users.js.map +1 -1
  271. package/dist/handlers/internal/multisig.d.ts +1 -1
  272. package/dist/handlers/internal/multisig.d.ts.map +1 -1
  273. package/dist/handlers/internal/multisig.js +3 -2
  274. package/dist/handlers/internal/multisig.js.map +1 -1
  275. package/dist/handlers/relay.d.ts +2 -0
  276. package/dist/handlers/relay.d.ts.map +1 -1
  277. package/dist/handlers/relay.js +34 -15
  278. package/dist/handlers/relay.js.map +1 -1
  279. package/dist/internal/Auth.d.ts +57 -6
  280. package/dist/internal/Auth.d.ts.map +1 -1
  281. package/dist/internal/Auth.js +182 -78
  282. package/dist/internal/Auth.js.map +1 -1
  283. package/dist/internal/BetterAuth.d.ts +22 -0
  284. package/dist/internal/BetterAuth.d.ts.map +1 -1
  285. package/dist/internal/BetterAuth.js +17 -14
  286. package/dist/internal/BetterAuth.js.map +1 -1
  287. package/dist/internal/Cache.d.ts +5 -0
  288. package/dist/internal/Cache.d.ts.map +1 -1
  289. package/dist/internal/Cache.js +3 -1
  290. package/dist/internal/Cache.js.map +1 -1
  291. package/dist/internal/CliAuth.d.ts +243 -0
  292. package/dist/internal/CliAuth.d.ts.map +1 -0
  293. package/dist/internal/CliAuth.js +249 -0
  294. package/dist/internal/CliAuth.js.map +1 -0
  295. package/dist/internal/EarnSharePrices.d.ts +1 -1
  296. package/dist/internal/EarnSharePrices.d.ts.map +1 -1
  297. package/dist/internal/EarnSharePrices.js +7 -3
  298. package/dist/internal/EarnSharePrices.js.map +1 -1
  299. package/dist/internal/EarnVaults.d.ts +47 -0
  300. package/dist/internal/EarnVaults.d.ts.map +1 -1
  301. package/dist/internal/EarnVaults.js +188 -4
  302. package/dist/internal/EarnVaults.js.map +1 -1
  303. package/dist/internal/EarnWithdrawals.d.ts +73 -0
  304. package/dist/internal/EarnWithdrawals.d.ts.map +1 -0
  305. package/dist/internal/EarnWithdrawals.js +189 -0
  306. package/dist/internal/EarnWithdrawals.js.map +1 -0
  307. package/dist/internal/ExecutionContext.d.ts +21 -0
  308. package/dist/internal/ExecutionContext.d.ts.map +1 -0
  309. package/dist/internal/ExecutionContext.js +16 -0
  310. package/dist/internal/ExecutionContext.js.map +1 -0
  311. package/dist/internal/Log.d.ts +7 -3
  312. package/dist/internal/Log.d.ts.map +1 -1
  313. package/dist/internal/Log.js +163 -130
  314. package/dist/internal/Log.js.map +1 -1
  315. package/dist/internal/MetricSink.d.ts.map +1 -1
  316. package/dist/internal/MetricSink.js +26 -1
  317. package/dist/internal/MetricSink.js.map +1 -1
  318. package/dist/internal/RateLimit.d.ts +67 -0
  319. package/dist/internal/RateLimit.d.ts.map +1 -1
  320. package/dist/internal/RateLimit.js +174 -27
  321. package/dist/internal/RateLimit.js.map +1 -1
  322. package/dist/internal/Store.d.ts +6 -0
  323. package/dist/internal/Store.d.ts.map +1 -1
  324. package/dist/internal/Store.js +4 -5
  325. package/dist/internal/Store.js.map +1 -1
  326. package/dist/internal/Timing.d.ts +6 -0
  327. package/dist/internal/Timing.d.ts.map +1 -1
  328. package/dist/internal/Timing.js +21 -1
  329. package/dist/internal/Timing.js.map +1 -1
  330. package/dist/internal/Tron.d.ts +124 -0
  331. package/dist/internal/Tron.d.ts.map +1 -0
  332. package/dist/internal/Tron.js +202 -0
  333. package/dist/internal/Tron.js.map +1 -0
  334. package/dist/internal/Viem.d.ts +4 -0
  335. package/dist/internal/Viem.d.ts.map +1 -1
  336. package/dist/internal/Viem.js +25 -6
  337. package/dist/internal/Viem.js.map +1 -1
  338. package/dist/internal/rewards/Read.d.ts +2 -2
  339. package/dist/internal/rewards/Read.d.ts.map +1 -1
  340. package/dist/internal/rewards/Read.js +11 -2
  341. package/dist/internal/rewards/Read.js.map +1 -1
  342. package/dist/internal/routes/Action.d.ts +27 -0
  343. package/dist/internal/routes/Action.d.ts.map +1 -1
  344. package/dist/internal/routes/Action.js +49 -1
  345. package/dist/internal/routes/Action.js.map +1 -1
  346. package/dist/internal/routes/Chain.d.ts +2 -0
  347. package/dist/internal/routes/Chain.d.ts.map +1 -1
  348. package/dist/internal/routes/Chain.js +4 -0
  349. package/dist/internal/routes/Chain.js.map +1 -1
  350. package/dist/internal/routes/DepositAddress.d.ts.map +1 -1
  351. package/dist/internal/routes/DepositAddress.js +5 -0
  352. package/dist/internal/routes/DepositAddress.js.map +1 -1
  353. package/dist/internal/routes/Evidence.d.ts.map +1 -1
  354. package/dist/internal/routes/Evidence.js +6 -2
  355. package/dist/internal/routes/Evidence.js.map +1 -1
  356. package/dist/internal/routes/EvmTransferSettlement.d.ts +17 -0
  357. package/dist/internal/routes/EvmTransferSettlement.d.ts.map +1 -0
  358. package/dist/internal/routes/EvmTransferSettlement.js +196 -0
  359. package/dist/internal/routes/EvmTransferSettlement.js.map +1 -0
  360. package/dist/internal/routes/Policy.d.ts +161 -0
  361. package/dist/internal/routes/Policy.d.ts.map +1 -0
  362. package/dist/internal/routes/Policy.js +249 -0
  363. package/dist/internal/routes/Policy.js.map +1 -0
  364. package/dist/internal/routes/Provider.d.ts +66 -3
  365. package/dist/internal/routes/Provider.d.ts.map +1 -1
  366. package/dist/internal/routes/Provider.js +106 -27
  367. package/dist/internal/routes/Provider.js.map +1 -1
  368. package/dist/internal/routes/Quota.d.ts +57 -0
  369. package/dist/internal/routes/Quota.d.ts.map +1 -0
  370. package/dist/internal/routes/Quota.js +144 -0
  371. package/dist/internal/routes/Quota.js.map +1 -0
  372. package/dist/internal/routes/Reconciliation.d.ts.map +1 -1
  373. package/dist/internal/routes/Reconciliation.js +163 -47
  374. package/dist/internal/routes/Reconciliation.js.map +1 -1
  375. package/dist/internal/routes/SolanaTransferSettlement.d.ts +12 -0
  376. package/dist/internal/routes/SolanaTransferSettlement.d.ts.map +1 -0
  377. package/dist/internal/routes/SolanaTransferSettlement.js +220 -0
  378. package/dist/internal/routes/SolanaTransferSettlement.js.map +1 -0
  379. package/dist/internal/routes/SolanaTransferSubsidy.d.ts +172 -0
  380. package/dist/internal/routes/SolanaTransferSubsidy.d.ts.map +1 -0
  381. package/dist/internal/routes/SolanaTransferSubsidy.js +564 -0
  382. package/dist/internal/routes/SolanaTransferSubsidy.js.map +1 -0
  383. package/dist/internal/routes/Subsidy.d.ts +2 -2
  384. package/dist/internal/routes/Subsidy.d.ts.map +1 -1
  385. package/dist/internal/routes/Subsidy.js +2 -2
  386. package/dist/internal/routes/Subsidy.js.map +1 -1
  387. package/dist/internal/routes/Transfer.d.ts +229 -1
  388. package/dist/internal/routes/Transfer.d.ts.map +1 -1
  389. package/dist/internal/routes/Transfer.js +644 -7
  390. package/dist/internal/routes/Transfer.js.map +1 -1
  391. package/dist/internal/routes/TransferReconciliation.d.ts +6 -0
  392. package/dist/internal/routes/TransferReconciliation.d.ts.map +1 -1
  393. package/dist/internal/routes/TransferReconciliation.js +83 -159
  394. package/dist/internal/routes/TransferReconciliation.js.map +1 -1
  395. package/dist/internal/routes/TransferSettlement.d.ts +45 -0
  396. package/dist/internal/routes/TransferSettlement.d.ts.map +1 -0
  397. package/dist/internal/routes/TransferSettlement.js +2 -0
  398. package/dist/internal/routes/TransferSettlement.js.map +1 -0
  399. package/dist/internal/routes/TransferSubsidy.d.ts +23 -8
  400. package/dist/internal/routes/TransferSubsidy.d.ts.map +1 -1
  401. package/dist/internal/routes/TransferSubsidy.js +64 -5
  402. package/dist/internal/routes/TransferSubsidy.js.map +1 -1
  403. package/dist/internal/routes/TronTransferSettlement.d.ts +12 -0
  404. package/dist/internal/routes/TronTransferSettlement.d.ts.map +1 -0
  405. package/dist/internal/routes/TronTransferSettlement.js +201 -0
  406. package/dist/internal/routes/TronTransferSettlement.js.map +1 -0
  407. package/dist/internal/routes/TronTransferSubsidy.d.ts +174 -0
  408. package/dist/internal/routes/TronTransferSubsidy.d.ts.map +1 -0
  409. package/dist/internal/routes/TronTransferSubsidy.js +439 -0
  410. package/dist/internal/routes/TronTransferSubsidy.js.map +1 -0
  411. package/dist/internal/routes/index.d.ts +3 -0
  412. package/dist/internal/routes/index.d.ts.map +1 -1
  413. package/dist/internal/routes/index.js +3 -0
  414. package/dist/internal/routes/index.js.map +1 -1
  415. package/dist/internal/routes/providers/across.d.ts +3 -0
  416. package/dist/internal/routes/providers/across.d.ts.map +1 -1
  417. package/dist/internal/routes/providers/across.js +11 -0
  418. package/dist/internal/routes/providers/across.js.map +1 -1
  419. package/dist/internal/routes/providers/legacyMesh.d.ts +29 -0
  420. package/dist/internal/routes/providers/legacyMesh.d.ts.map +1 -0
  421. package/dist/internal/routes/providers/legacyMesh.js +474 -0
  422. package/dist/internal/routes/providers/legacyMesh.js.map +1 -0
  423. package/dist/internal/routes/providers/legacyMeshDelivery.d.ts +59 -0
  424. package/dist/internal/routes/providers/legacyMeshDelivery.d.ts.map +1 -0
  425. package/dist/internal/routes/providers/legacyMeshDelivery.js +229 -0
  426. package/dist/internal/routes/providers/legacyMeshDelivery.js.map +1 -0
  427. package/dist/internal/routes/providers/legacyMeshOutbound.d.ts +19 -0
  428. package/dist/internal/routes/providers/legacyMeshOutbound.d.ts.map +1 -0
  429. package/dist/internal/routes/providers/legacyMeshOutbound.js +457 -0
  430. package/dist/internal/routes/providers/legacyMeshOutbound.js.map +1 -0
  431. package/dist/internal/routes/providers/legacyMeshOutboundDelivery.d.ts +123 -0
  432. package/dist/internal/routes/providers/legacyMeshOutboundDelivery.d.ts.map +1 -0
  433. package/dist/internal/routes/providers/legacyMeshOutboundDelivery.js +333 -0
  434. package/dist/internal/routes/providers/legacyMeshOutboundDelivery.js.map +1 -0
  435. package/dist/internal/routes/providers/propAmm.d.ts +70 -0
  436. package/dist/internal/routes/providers/propAmm.d.ts.map +1 -0
  437. package/dist/internal/routes/providers/propAmm.js +524 -0
  438. package/dist/internal/routes/providers/propAmm.js.map +1 -0
  439. package/dist/internal/routes/providers/relay.d.ts +3 -0
  440. package/dist/internal/routes/providers/relay.d.ts.map +1 -1
  441. package/dist/internal/routes/providers/relay.js +352 -41
  442. package/dist/internal/routes/providers/relay.js.map +1 -1
  443. package/dist/internal/routes/providers/rhino.d.ts +3 -0
  444. package/dist/internal/routes/providers/rhino.d.ts.map +1 -1
  445. package/dist/internal/routes/providers/rhino.js +11 -0
  446. package/dist/internal/routes/providers/rhino.js.map +1 -1
  447. package/dist/internal/routes/providers/squid.d.ts +3 -0
  448. package/dist/internal/routes/providers/squid.d.ts.map +1 -1
  449. package/dist/internal/routes/providers/squid.js +19 -0
  450. package/dist/internal/routes/providers/squid.js.map +1 -1
  451. package/dist/internal/routes/providers/stargate.d.ts.map +1 -1
  452. package/dist/internal/routes/providers/stargate.js +22 -9
  453. package/dist/internal/routes/providers/stargate.js.map +1 -1
  454. package/dist/internal/routes/providers/symbiosis.d.ts.map +1 -1
  455. package/dist/internal/routes/providers/symbiosis.js +13 -17
  456. package/dist/internal/routes/providers/symbiosis.js.map +1 -1
  457. package/dist/providers/index.d.ts +14 -0
  458. package/dist/providers/index.d.ts.map +1 -1
  459. package/dist/providers/index.js +6 -0
  460. package/dist/providers/index.js.map +1 -1
  461. package/package.json +16 -6
  462. package/src/ApiKey.ts +7 -3
  463. package/src/ApiKeys.test.ts +652 -8
  464. package/src/ApiKeys.ts +191 -11
  465. package/src/App.test.ts +405 -18
  466. package/src/App.ts +51 -15
  467. package/src/Client.test-d.ts +157 -10
  468. package/src/Client.test.ts +4 -4
  469. package/src/Scope.ts +1 -2
  470. package/src/admin/App.ts +11 -5
  471. package/src/admin/apps/api-keys.test.ts +98 -2
  472. package/src/admin/apps/api-keys.ts +21 -12
  473. package/src/admin/apps/earn-vaults.test.ts +76 -7
  474. package/src/admin/apps/earn-vaults.ts +47 -8
  475. package/src/admin/apps/organizations.test.ts +147 -31
  476. package/src/admin/apps/organizations.ts +5 -4
  477. package/src/admin/apps/route-policies.test.ts +220 -0
  478. package/src/admin/apps/route-policies.ts +322 -0
  479. package/src/admin/apps/routes-support.test.ts +107 -2
  480. package/src/admin/apps/routes-support.ts +43 -3
  481. package/src/admin/apps/routes.test.ts +150 -0
  482. package/src/admin/apps/routes.ts +97 -1
  483. package/src/admin/apps/scopes.test.ts +1 -1
  484. package/src/admin/index.ts +0 -1
  485. package/src/admin/ui/plugin.ts +2 -1
  486. package/src/admin/ui/src/components/Dialog.tsx +1 -1
  487. package/src/admin/ui/src/components/EarnVaultForm.tsx +45 -0
  488. package/src/admin/ui/src/components/RoutePicker.tsx +79 -0
  489. package/src/admin/ui/src/lib/earn-vaults.ts +1 -1
  490. package/src/admin/ui/src/lib/route-policies.test.ts +452 -0
  491. package/src/admin/ui/src/lib/route-policies.ts +232 -0
  492. package/src/admin/ui/src/lib/routes.ts +34 -0
  493. package/src/admin/ui/src/routeTree.gen.ts +21 -0
  494. package/src/admin/ui/src/routes/api-keys.tsx +21 -2
  495. package/src/admin/ui/src/routes/early-access.tsx +1 -0
  496. package/src/admin/ui/src/routes/earn.vaults.tsx +1 -0
  497. package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +22 -0
  498. package/src/admin/ui/src/routes/earn.vaults_.new.tsx +10 -0
  499. package/src/admin/ui/src/routes/organizations.tsx +1 -0
  500. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +18 -3
  501. package/src/admin/ui/src/routes/route-policies.tsx +678 -0
  502. package/src/admin/ui/src/routes/routes.tsx +85 -2
  503. package/src/admin/ui/src/routes/routes_.support.tsx +6 -22
  504. package/src/admin/ui/src/routes/subsidies.tsx +1 -0
  505. package/src/admin/ui/src/routes/verified-tokens.tsx +1 -0
  506. package/src/admin/ui.generated.ts +258 -202
  507. package/src/analytics/Analytics.test.ts +4 -50
  508. package/src/analytics/Analytics.ts +65 -1
  509. package/src/analytics/tables/requestEvents.test.ts +402 -1
  510. package/src/analytics/tables/requestEvents.ts +62 -93
  511. package/src/apps/data/routes/activities.test.ts +315 -14
  512. package/src/apps/data/routes/activities.ts +60 -0
  513. package/src/apps/data/routes/balances.ts +5 -7
  514. package/src/apps/data/routes/earn.bench.ts +18 -0
  515. package/src/apps/data/routes/earn.local.test.ts +507 -0
  516. package/src/apps/data/routes/earn.test.ts +405 -127
  517. package/src/apps/data/routes/earn.ts +660 -270
  518. package/src/apps/data/routes/exchanges.bench.ts +3 -1
  519. package/src/apps/data/routes/exchanges.test.ts +166 -2
  520. package/src/apps/data/routes/exchanges.ts +308 -101
  521. package/src/apps/data/routes/fee-amm.test.ts +134 -2
  522. package/src/apps/data/routes/fee-amm.ts +122 -60
  523. package/src/apps/data/routes/receipts.test.ts +21 -18
  524. package/src/apps/data/routes/rpc.test.ts +2 -2
  525. package/src/apps/data/routes/tokens.provenance.test.ts +157 -0
  526. package/src/apps/data/routes/tokens.test.ts +4 -4
  527. package/src/apps/data/routes/tokens.ts +11 -6
  528. package/src/apps/data/routes/transactions.test.ts +29 -0
  529. package/src/apps/data/routes/transactions.ts +33 -22
  530. package/src/apps/data/routes/webhooks.test.ts +12 -3
  531. package/src/apps/data/routes/webhooks.ts +2 -1
  532. package/src/apps/management/App.ts +4 -0
  533. package/src/apps/management/Billing.test.ts +253 -27
  534. package/src/apps/management/Billing.ts +83 -29
  535. package/src/apps/management/routes/api-keys.test.ts +1 -1
  536. package/src/apps/management/routes/api-keys.ts +85 -11
  537. package/src/apps/management/routes/billing.test.ts +68 -4
  538. package/src/apps/management/routes/cli.test.ts +370 -0
  539. package/src/apps/management/routes/cli.ts +533 -0
  540. package/src/apps/management/routes/me.test.ts +14 -4
  541. package/src/apps/management/routes/orgs.test.ts +108 -4
  542. package/src/apps/management/routes/orgs.ts +7 -2
  543. package/src/apps/management/routes/usage.test.ts +2 -2
  544. package/src/apps/mpp/internal/Policy.test.ts +51 -4
  545. package/src/apps/mpp/internal/Policy.ts +6 -2
  546. package/src/apps/mpp/internal/Sponsorship.test.ts +29 -0
  547. package/src/apps/mpp/internal/Sponsorship.ts +6 -4
  548. package/src/apps/relay/App.test.ts +85 -1
  549. package/src/apps/relay/App.ts +28 -4
  550. package/src/apps/relay/Sponsorships.test.ts +97 -1
  551. package/src/apps/relay/Sponsorships.ts +77 -66
  552. package/src/apps/routes/Access.test.ts +319 -0
  553. package/src/apps/routes/Access.ts +147 -0
  554. package/src/apps/routes/App.ts +10 -0
  555. package/src/apps/routes/routes/chains.test.ts +3 -2
  556. package/src/apps/routes/routes/deposit-addresses.test.ts +978 -34
  557. package/src/apps/routes/routes/deposit-addresses.ts +243 -32
  558. package/src/apps/routes/routes/propAmm.local.test.ts +951 -0
  559. package/src/apps/routes/routes/quotes.test.ts +81 -8
  560. package/src/apps/routes/routes/quotes.ts +109 -27
  561. package/src/apps/routes/routes/transfers.test.ts +252 -15
  562. package/src/apps/routes/routes/transfers.ts +212 -33
  563. package/src/cli/ApiKeys.test.ts +265 -0
  564. package/src/cli/ApiKeys.ts +189 -0
  565. package/src/cli/Cli.test.ts +188 -0
  566. package/src/cli/Cli.ts +280 -12
  567. package/src/cli/Credentials.test.ts +122 -0
  568. package/src/cli/Credentials.ts +144 -0
  569. package/src/cli/Spec.test.ts +133 -0
  570. package/src/cli/Spec.ts +132 -0
  571. package/src/cli/bin.test.ts +49 -0
  572. package/src/cli/bin.ts +5 -1
  573. package/src/cli/commands/auth.test.ts +138 -0
  574. package/src/cli/commands/auth.ts +254 -0
  575. package/src/cli/commands/keys.test.ts +68 -0
  576. package/src/cli/commands/keys.ts +125 -0
  577. package/src/cloudflare.ts +184 -36
  578. package/src/db/Db.test.ts +877 -0
  579. package/src/db/Db.ts +498 -1
  580. package/src/db/Schema.ts +75 -4
  581. package/src/db/tables/apiKeyAdmissions.test.ts +57 -0
  582. package/src/db/tables/apiKeyAdmissions.ts +101 -11
  583. package/src/db/tables/apiKeyOwnerTombstones.ts +2 -2
  584. package/src/db/tables/authAccounts.test.ts +30 -0
  585. package/src/db/tables/authAccounts.ts +1 -0
  586. package/src/db/tables/earnVaults.test.ts +34 -0
  587. package/src/db/tables/earnVaults.ts +17 -2
  588. package/src/db/tables/organizations.test.ts +148 -84
  589. package/src/db/tables/organizations.ts +11 -43
  590. package/src/db/tables/requestUsage.ts +13 -2
  591. package/src/db/tables/rewardCampaigns.test.ts +163 -0
  592. package/src/db/tables/rewardEligibilityAssociations.test.ts +14 -0
  593. package/src/db/tables/rewardEligibilityAssociations.ts +24 -0
  594. package/src/db/tables/rewardRuns.ts +4 -0
  595. package/src/db/tables/rewardTransactionAttempts.ts +2 -0
  596. package/src/db/tables/routesDepositAddresses.test.ts +263 -0
  597. package/src/db/tables/routesDepositAddresses.ts +118 -34
  598. package/src/db/tables/routesDeposits.test.ts +66 -5
  599. package/src/db/tables/routesDeposits.ts +47 -26
  600. package/src/db/tables/routesIdempotency.test.ts +80 -0
  601. package/src/db/tables/routesIdempotency.ts +2 -0
  602. package/src/db/tables/routesPolicies.test.ts +143 -0
  603. package/src/db/tables/routesPolicies.ts +251 -0
  604. package/src/db/tables/routesTransferSubsidies.ts +64 -0
  605. package/src/db/tables/routesTransferSubsidyNonces.ts +16 -4
  606. package/src/db/tables/routesTransfers.test.ts +183 -2
  607. package/src/db/tables/routesTransfers.ts +65 -6
  608. package/src/db/tables/sponsoredTransactions.test.ts +351 -76
  609. package/src/db/tables/sponsoredTransactions.ts +182 -38
  610. package/src/db/tables/users.test.ts +51 -0
  611. package/src/db/tables/users.ts +12 -0
  612. package/src/handlers/internal/multisig.store.test.ts +120 -0
  613. package/src/handlers/internal/multisig.test.ts +389 -0
  614. package/src/handlers/internal/multisig.ts +13 -10
  615. package/src/handlers/relay.test.ts +259 -83
  616. package/src/handlers/relay.ts +36 -17
  617. package/src/internal/Auth.test.ts +291 -8
  618. package/src/internal/Auth.ts +227 -96
  619. package/src/internal/BetterAuth.test.ts +58 -22
  620. package/src/internal/BetterAuth.ts +23 -17
  621. package/src/internal/Cache.ts +3 -1
  622. package/src/internal/CliAuth.test.ts +279 -0
  623. package/src/internal/CliAuth.ts +319 -0
  624. package/src/internal/EarnSharePrices.test.ts +25 -0
  625. package/src/internal/EarnSharePrices.ts +9 -2
  626. package/src/internal/EarnVaults.test.ts +67 -0
  627. package/src/internal/EarnVaults.ts +299 -4
  628. package/src/internal/EarnWithdrawals.test.ts +315 -0
  629. package/src/internal/EarnWithdrawals.ts +266 -0
  630. package/src/internal/ExecutionContext.ts +31 -0
  631. package/src/internal/Log.test.ts +210 -0
  632. package/src/internal/Log.ts +180 -142
  633. package/src/internal/MetricSink.test.ts +190 -15
  634. package/src/internal/MetricSink.ts +27 -1
  635. package/src/internal/RateLimit.test.ts +144 -8
  636. package/src/internal/RateLimit.ts +254 -26
  637. package/src/internal/Store.ts +4 -5
  638. package/src/internal/Timing.test.ts +32 -0
  639. package/src/internal/Timing.ts +20 -1
  640. package/src/internal/Tron.test-d.ts +22 -0
  641. package/src/internal/Tron.test.ts +94 -0
  642. package/src/internal/Tron.ts +289 -0
  643. package/src/internal/Viem.rpc.test.ts +76 -0
  644. package/src/internal/Viem.ts +29 -6
  645. package/src/internal/rewards/Read.test.ts +109 -0
  646. package/src/internal/rewards/Read.ts +13 -4
  647. package/src/internal/routes/Action.test.ts +70 -0
  648. package/src/internal/routes/Action.ts +76 -1
  649. package/src/internal/routes/Chain.test.ts +18 -0
  650. package/src/internal/routes/Chain.ts +5 -0
  651. package/src/internal/routes/DepositAddress.ts +5 -0
  652. package/src/internal/routes/Evidence.test.ts +64 -0
  653. package/src/internal/routes/Evidence.ts +11 -3
  654. package/src/internal/routes/EvmTransferSettlement.ts +213 -0
  655. package/src/internal/routes/Policy.test.ts +316 -0
  656. package/src/internal/routes/Policy.ts +399 -0
  657. package/src/internal/routes/Provider.test.ts +103 -2
  658. package/src/internal/routes/Provider.ts +149 -27
  659. package/src/internal/routes/Quota.test.ts +149 -0
  660. package/src/internal/routes/Quota.ts +226 -0
  661. package/src/internal/routes/Reconciliation.local.test.ts +285 -0
  662. package/src/internal/routes/Reconciliation.test.ts +371 -13
  663. package/src/internal/routes/Reconciliation.ts +193 -42
  664. package/src/internal/routes/SolanaTransferSettlement.ts +232 -0
  665. package/src/internal/routes/SolanaTransferSubsidy.test.ts +471 -0
  666. package/src/internal/routes/SolanaTransferSubsidy.ts +760 -0
  667. package/src/internal/routes/SourceObservation.test.ts +221 -0
  668. package/src/internal/routes/Subsidy.local.test.ts +46 -0
  669. package/src/internal/routes/Subsidy.ts +4 -2
  670. package/src/internal/routes/Transfer.solana.test.ts +389 -0
  671. package/src/internal/routes/Transfer.test.ts +130 -1
  672. package/src/internal/routes/Transfer.tron.test.ts +172 -0
  673. package/src/internal/routes/Transfer.ts +866 -8
  674. package/src/internal/routes/TransferReconciliation.test.ts +26 -4
  675. package/src/internal/routes/TransferReconciliation.ts +91 -166
  676. package/src/internal/routes/TransferSettlement.ts +48 -0
  677. package/src/internal/routes/TransferSubsidy.local.test.ts +143 -0
  678. package/src/internal/routes/TransferSubsidy.test.ts +34 -4
  679. package/src/internal/routes/TransferSubsidy.ts +87 -12
  680. package/src/internal/routes/TronTransferSettlement.ts +212 -0
  681. package/src/internal/routes/TronTransferSubsidy.test.ts +109 -0
  682. package/src/internal/routes/TronTransferSubsidy.ts +619 -0
  683. package/src/internal/routes/index.test.ts +3 -0
  684. package/src/internal/routes/index.ts +3 -0
  685. package/src/internal/routes/providers/across.ts +13 -0
  686. package/src/internal/routes/providers/index.test.ts +141 -0
  687. package/src/internal/routes/providers/legacyMesh.test.ts +484 -0
  688. package/src/internal/routes/providers/legacyMesh.ts +633 -0
  689. package/src/internal/routes/providers/legacyMeshDelivery.test.ts +306 -0
  690. package/src/internal/routes/providers/legacyMeshDelivery.ts +320 -0
  691. package/src/internal/routes/providers/legacyMeshOutbound.test.ts +401 -0
  692. package/src/internal/routes/providers/legacyMeshOutbound.ts +566 -0
  693. package/src/internal/routes/providers/legacyMeshOutboundDelivery.ts +473 -0
  694. package/src/internal/routes/providers/propAmm.ts +640 -0
  695. package/src/internal/routes/providers/relay.test.ts +1263 -41
  696. package/src/internal/routes/providers/relay.ts +423 -38
  697. package/src/internal/routes/providers/rhino.ts +14 -1
  698. package/src/internal/routes/providers/squid.ts +21 -0
  699. package/src/internal/routes/providers/stargate.test.ts +105 -1
  700. package/src/internal/routes/providers/stargate.ts +22 -9
  701. package/src/internal/routes/providers/symbiosis.ts +13 -47
  702. package/src/providers/index.test.ts +2 -0
  703. package/src/providers/index.ts +18 -0
  704. package/dist/admin/Access.d.ts +0 -39
  705. package/dist/admin/Access.d.ts.map +0 -1
  706. package/dist/admin/Access.js +0 -73
  707. package/dist/admin/Access.js.map +0 -1
  708. package/src/admin/Access.test.ts +0 -130
  709. package/src/admin/Access.ts +0 -85
@@ -1,3 +1,4 @@
1
+ import { type Context } from 'hono';
1
2
  import { type RequestIdVariables } from 'hono/request-id';
2
3
  import type { Address, Chain } from 'viem';
3
4
  import type * as Assets from '../Assets.js';
@@ -106,6 +107,444 @@ export declare function create(options: create.Options): import("hono/hono-base"
106
107
  };
107
108
  };
108
109
  }, "/routes/support"> | import("hono/types").MergeSchemaPath<{
110
+ "/": {
111
+ $get: {
112
+ output: {
113
+ error: {
114
+ code: "policy_scope_not_found";
115
+ details?: readonly Response.error.Detail[] | undefined;
116
+ message: string;
117
+ };
118
+ requestId: string;
119
+ };
120
+ outputFormat: "json";
121
+ status: 404;
122
+ input: {
123
+ query: {
124
+ apiKeyId?: string | string[];
125
+ environment: string | string[];
126
+ orgId: string | string[];
127
+ projectId?: string | string[];
128
+ };
129
+ };
130
+ } | {
131
+ output: {
132
+ name: string | null;
133
+ layers: {
134
+ policy: {
135
+ access?: {
136
+ destinationChainId: string;
137
+ destinationTokenId: string;
138
+ providerId?: string | undefined;
139
+ sourceChainId: string;
140
+ sourceTokenId: string;
141
+ }[] | null | undefined;
142
+ maxAmount?: string | undefined;
143
+ subsidyEnabled?: boolean | undefined;
144
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
145
+ subsidyRoutes?: {
146
+ destinationChainId: string;
147
+ destinationTokenId: string;
148
+ providerId?: string | undefined;
149
+ sourceChainId: string;
150
+ sourceTokenId: string;
151
+ }[] | null | undefined;
152
+ suspended?: boolean | undefined;
153
+ terms?: {
154
+ destinationChainId: string;
155
+ destinationTokenId: string;
156
+ providerId?: string | undefined;
157
+ sourceChainId: string;
158
+ sourceTokenId: string;
159
+ maxAmount?: string | undefined;
160
+ subsidyEligible?: boolean | undefined;
161
+ subsidyEnabled?: boolean | undefined;
162
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
163
+ }[] | undefined;
164
+ };
165
+ scope: {
166
+ apiKeyId?: string | undefined;
167
+ environment: "production" | "sandbox";
168
+ orgId: string;
169
+ projectId?: string | undefined;
170
+ };
171
+ version: number;
172
+ }[];
173
+ legacy: {
174
+ maxAmount: string;
175
+ subsidyEnabled: boolean;
176
+ subsidyPayer: "enterprise";
177
+ };
178
+ policy: {
179
+ access?: {
180
+ destinationChainId: string;
181
+ destinationTokenId: string;
182
+ providerId?: string | undefined;
183
+ sourceChainId: string;
184
+ sourceTokenId: string;
185
+ }[] | null | undefined;
186
+ maxAmount?: string | undefined;
187
+ subsidyEnabled?: boolean | undefined;
188
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
189
+ subsidyRoutes?: {
190
+ destinationChainId: string;
191
+ destinationTokenId: string;
192
+ providerId?: string | undefined;
193
+ sourceChainId: string;
194
+ sourceTokenId: string;
195
+ }[] | null | undefined;
196
+ suspended?: boolean | undefined;
197
+ terms?: {
198
+ destinationChainId: string;
199
+ destinationTokenId: string;
200
+ providerId?: string | undefined;
201
+ sourceChainId: string;
202
+ sourceTokenId: string;
203
+ maxAmount?: string | undefined;
204
+ subsidyEligible?: boolean | undefined;
205
+ subsidyEnabled?: boolean | undefined;
206
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
207
+ }[] | undefined;
208
+ };
209
+ routes: {
210
+ destinationChainId: string;
211
+ destinationTokenId: string;
212
+ providerId?: string | undefined;
213
+ sourceChainId: string;
214
+ sourceTokenId: string;
215
+ destinationChainName: string;
216
+ destinationTokenSymbol: string;
217
+ label: string;
218
+ sourceChainName: string;
219
+ sourceTokenSymbol: string;
220
+ }[];
221
+ scope: {
222
+ apiKeyId?: string | undefined;
223
+ environment: "production" | "sandbox";
224
+ orgId: string;
225
+ projectId?: string | undefined;
226
+ };
227
+ version: number;
228
+ };
229
+ outputFormat: "json";
230
+ status: import("hono/utils/http-status").ContentfulStatusCode;
231
+ input: {
232
+ query: {
233
+ apiKeyId?: string | string[];
234
+ environment: string | string[];
235
+ orgId: string | string[];
236
+ projectId?: string | string[];
237
+ };
238
+ };
239
+ };
240
+ };
241
+ } & {
242
+ "/": {
243
+ $put: {
244
+ output: {
245
+ error: {
246
+ code: "version_conflict";
247
+ details?: readonly Response.error.Detail[] | undefined;
248
+ message: string;
249
+ };
250
+ requestId: string;
251
+ };
252
+ outputFormat: "json";
253
+ status: 409;
254
+ input: {
255
+ json: {
256
+ policy: {
257
+ access?: {
258
+ destinationChainId: string;
259
+ destinationTokenId: string;
260
+ providerId?: string | undefined;
261
+ sourceChainId: string;
262
+ sourceTokenId: string;
263
+ }[] | null | undefined;
264
+ maxAmount?: string | undefined;
265
+ subsidyEnabled?: boolean | undefined;
266
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
267
+ subsidyRoutes?: {
268
+ destinationChainId: string;
269
+ destinationTokenId: string;
270
+ providerId?: string | undefined;
271
+ sourceChainId: string;
272
+ sourceTokenId: string;
273
+ }[] | null | undefined;
274
+ suspended?: boolean | undefined;
275
+ terms?: {
276
+ destinationChainId: string;
277
+ destinationTokenId: string;
278
+ providerId?: string | undefined;
279
+ sourceChainId: string;
280
+ sourceTokenId: string;
281
+ maxAmount?: string | undefined;
282
+ subsidyEligible?: boolean | undefined;
283
+ subsidyEnabled?: boolean | undefined;
284
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
285
+ }[] | undefined;
286
+ };
287
+ scope: {
288
+ apiKeyId?: string | undefined;
289
+ environment: "production" | "sandbox";
290
+ orgId: string;
291
+ projectId?: string | undefined;
292
+ };
293
+ version: number;
294
+ };
295
+ };
296
+ } | {
297
+ output: {
298
+ error: {
299
+ code: "policy_scope_not_found";
300
+ details?: readonly Response.error.Detail[] | undefined;
301
+ message: string;
302
+ };
303
+ requestId: string;
304
+ };
305
+ outputFormat: "json";
306
+ status: 404;
307
+ input: {
308
+ json: {
309
+ policy: {
310
+ access?: {
311
+ destinationChainId: string;
312
+ destinationTokenId: string;
313
+ providerId?: string | undefined;
314
+ sourceChainId: string;
315
+ sourceTokenId: string;
316
+ }[] | null | undefined;
317
+ maxAmount?: string | undefined;
318
+ subsidyEnabled?: boolean | undefined;
319
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
320
+ subsidyRoutes?: {
321
+ destinationChainId: string;
322
+ destinationTokenId: string;
323
+ providerId?: string | undefined;
324
+ sourceChainId: string;
325
+ sourceTokenId: string;
326
+ }[] | null | undefined;
327
+ suspended?: boolean | undefined;
328
+ terms?: {
329
+ destinationChainId: string;
330
+ destinationTokenId: string;
331
+ providerId?: string | undefined;
332
+ sourceChainId: string;
333
+ sourceTokenId: string;
334
+ maxAmount?: string | undefined;
335
+ subsidyEligible?: boolean | undefined;
336
+ subsidyEnabled?: boolean | undefined;
337
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
338
+ }[] | undefined;
339
+ };
340
+ scope: {
341
+ apiKeyId?: string | undefined;
342
+ environment: "production" | "sandbox";
343
+ orgId: string;
344
+ projectId?: string | undefined;
345
+ };
346
+ version: number;
347
+ };
348
+ };
349
+ } | {
350
+ output: {
351
+ name: string | null;
352
+ layers: {
353
+ policy: {
354
+ access?: {
355
+ destinationChainId: string;
356
+ destinationTokenId: string;
357
+ providerId?: string | undefined;
358
+ sourceChainId: string;
359
+ sourceTokenId: string;
360
+ }[] | null | undefined;
361
+ maxAmount?: string | undefined;
362
+ subsidyEnabled?: boolean | undefined;
363
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
364
+ subsidyRoutes?: {
365
+ destinationChainId: string;
366
+ destinationTokenId: string;
367
+ providerId?: string | undefined;
368
+ sourceChainId: string;
369
+ sourceTokenId: string;
370
+ }[] | null | undefined;
371
+ suspended?: boolean | undefined;
372
+ terms?: {
373
+ destinationChainId: string;
374
+ destinationTokenId: string;
375
+ providerId?: string | undefined;
376
+ sourceChainId: string;
377
+ sourceTokenId: string;
378
+ maxAmount?: string | undefined;
379
+ subsidyEligible?: boolean | undefined;
380
+ subsidyEnabled?: boolean | undefined;
381
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
382
+ }[] | undefined;
383
+ };
384
+ scope: {
385
+ apiKeyId?: string | undefined;
386
+ environment: "production" | "sandbox";
387
+ orgId: string;
388
+ projectId?: string | undefined;
389
+ };
390
+ version: number;
391
+ }[];
392
+ legacy: {
393
+ maxAmount: string;
394
+ subsidyEnabled: boolean;
395
+ subsidyPayer: "enterprise";
396
+ };
397
+ policy: {
398
+ access?: {
399
+ destinationChainId: string;
400
+ destinationTokenId: string;
401
+ providerId?: string | undefined;
402
+ sourceChainId: string;
403
+ sourceTokenId: string;
404
+ }[] | null | undefined;
405
+ maxAmount?: string | undefined;
406
+ subsidyEnabled?: boolean | undefined;
407
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
408
+ subsidyRoutes?: {
409
+ destinationChainId: string;
410
+ destinationTokenId: string;
411
+ providerId?: string | undefined;
412
+ sourceChainId: string;
413
+ sourceTokenId: string;
414
+ }[] | null | undefined;
415
+ suspended?: boolean | undefined;
416
+ terms?: {
417
+ destinationChainId: string;
418
+ destinationTokenId: string;
419
+ providerId?: string | undefined;
420
+ sourceChainId: string;
421
+ sourceTokenId: string;
422
+ maxAmount?: string | undefined;
423
+ subsidyEligible?: boolean | undefined;
424
+ subsidyEnabled?: boolean | undefined;
425
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
426
+ }[] | undefined;
427
+ };
428
+ routes: {
429
+ destinationChainId: string;
430
+ destinationTokenId: string;
431
+ providerId?: string | undefined;
432
+ sourceChainId: string;
433
+ sourceTokenId: string;
434
+ destinationChainName: string;
435
+ destinationTokenSymbol: string;
436
+ label: string;
437
+ sourceChainName: string;
438
+ sourceTokenSymbol: string;
439
+ }[];
440
+ scope: {
441
+ apiKeyId?: string | undefined;
442
+ environment: "production" | "sandbox";
443
+ orgId: string;
444
+ projectId?: string | undefined;
445
+ };
446
+ version: number;
447
+ };
448
+ outputFormat: "json";
449
+ status: import("hono/utils/http-status").ContentfulStatusCode;
450
+ input: {
451
+ json: {
452
+ policy: {
453
+ access?: {
454
+ destinationChainId: string;
455
+ destinationTokenId: string;
456
+ providerId?: string | undefined;
457
+ sourceChainId: string;
458
+ sourceTokenId: string;
459
+ }[] | null | undefined;
460
+ maxAmount?: string | undefined;
461
+ subsidyEnabled?: boolean | undefined;
462
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
463
+ subsidyRoutes?: {
464
+ destinationChainId: string;
465
+ destinationTokenId: string;
466
+ providerId?: string | undefined;
467
+ sourceChainId: string;
468
+ sourceTokenId: string;
469
+ }[] | null | undefined;
470
+ suspended?: boolean | undefined;
471
+ terms?: {
472
+ destinationChainId: string;
473
+ destinationTokenId: string;
474
+ providerId?: string | undefined;
475
+ sourceChainId: string;
476
+ sourceTokenId: string;
477
+ maxAmount?: string | undefined;
478
+ subsidyEligible?: boolean | undefined;
479
+ subsidyEnabled?: boolean | undefined;
480
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
481
+ }[] | undefined;
482
+ };
483
+ scope: {
484
+ apiKeyId?: string | undefined;
485
+ environment: "production" | "sandbox";
486
+ orgId: string;
487
+ projectId?: string | undefined;
488
+ };
489
+ version: number;
490
+ };
491
+ };
492
+ } | {
493
+ output: {
494
+ error: {
495
+ code: "policy_rules_invalid";
496
+ details?: readonly Response.error.Detail[] | undefined;
497
+ message: string;
498
+ };
499
+ requestId: string;
500
+ };
501
+ outputFormat: "json";
502
+ status: 400;
503
+ input: {
504
+ json: {
505
+ policy: {
506
+ access?: {
507
+ destinationChainId: string;
508
+ destinationTokenId: string;
509
+ providerId?: string | undefined;
510
+ sourceChainId: string;
511
+ sourceTokenId: string;
512
+ }[] | null | undefined;
513
+ maxAmount?: string | undefined;
514
+ subsidyEnabled?: boolean | undefined;
515
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
516
+ subsidyRoutes?: {
517
+ destinationChainId: string;
518
+ destinationTokenId: string;
519
+ providerId?: string | undefined;
520
+ sourceChainId: string;
521
+ sourceTokenId: string;
522
+ }[] | null | undefined;
523
+ suspended?: boolean | undefined;
524
+ terms?: {
525
+ destinationChainId: string;
526
+ destinationTokenId: string;
527
+ providerId?: string | undefined;
528
+ sourceChainId: string;
529
+ sourceTokenId: string;
530
+ maxAmount?: string | undefined;
531
+ subsidyEligible?: boolean | undefined;
532
+ subsidyEnabled?: boolean | undefined;
533
+ subsidyPayer?: "enterprise" | "tempo" | undefined;
534
+ }[] | undefined;
535
+ };
536
+ scope: {
537
+ apiKeyId?: string | undefined;
538
+ environment: "production" | "sandbox";
539
+ orgId: string;
540
+ projectId?: string | undefined;
541
+ };
542
+ version: number;
543
+ };
544
+ };
545
+ };
546
+ };
547
+ }, "/route-policies"> | import("hono/types").MergeSchemaPath<{
109
548
  "/transactions": {
110
549
  $get: {
111
550
  output: {
@@ -362,6 +801,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
362
801
  status: 502;
363
802
  input: {
364
803
  json: {
804
+ orgId?: string | undefined;
365
805
  allowedIps?: readonly string[] | undefined;
366
806
  billingActive?: boolean | undefined;
367
807
  environment?: "production" | "sandbox" | undefined;
@@ -370,7 +810,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
370
810
  limit: number;
371
811
  period: "minute" | "second";
372
812
  }> | undefined;
373
- orgId?: string | undefined;
374
813
  expiresAt?: string | undefined;
375
814
  name: string;
376
815
  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:${number}:read` | `zone:${number}:write`)[];
@@ -389,6 +828,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
389
828
  status: 404;
390
829
  input: {
391
830
  json: {
831
+ orgId?: string | undefined;
392
832
  allowedIps?: readonly string[] | undefined;
393
833
  billingActive?: boolean | undefined;
394
834
  environment?: "production" | "sandbox" | undefined;
@@ -397,7 +837,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
397
837
  limit: number;
398
838
  period: "minute" | "second";
399
839
  }> | undefined;
400
- orgId?: string | undefined;
401
840
  expiresAt?: string | undefined;
402
841
  name: string;
403
842
  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:${number}:read` | `zone:${number}:write`)[];
@@ -405,30 +844,18 @@ export declare function create(options: create.Options): import("hono/hono-base"
405
844
  };
406
845
  } | {
407
846
  output: {
408
- allowedIps: readonly string[];
409
- billingActive?: boolean | undefined;
410
- environment: "production" | "sandbox";
411
- id: string;
412
- name?: string | undefined;
413
- orgId: string;
414
- projectId?: string | undefined;
415
- rateLimits?: {
416
- [x: string]: {
417
- limit: number;
418
- period: "minute" | "second";
419
- };
420
- } | undefined;
421
- scopes: readonly string[];
422
- createdAt: string;
423
- createdBy?: string | undefined;
424
- expiresAt?: string | undefined;
425
- tokenLast4: string;
426
- token: string;
847
+ error: {
848
+ code: "api_key_limit_reached";
849
+ details?: readonly Response.error.Detail[] | undefined;
850
+ message: string;
851
+ };
852
+ requestId: string;
427
853
  };
428
854
  outputFormat: "json";
429
- status: import("hono/utils/http-status").ContentfulStatusCode;
855
+ status: 409;
430
856
  input: {
431
857
  json: {
858
+ orgId?: string | undefined;
432
859
  allowedIps?: readonly string[] | undefined;
433
860
  billingActive?: boolean | undefined;
434
861
  environment?: "production" | "sandbox" | undefined;
@@ -437,7 +864,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
437
864
  limit: number;
438
865
  period: "minute" | "second";
439
866
  }> | undefined;
440
- orgId?: string | undefined;
441
867
  expiresAt?: string | undefined;
442
868
  name: string;
443
869
  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:${number}:read` | `zone:${number}:write`)[];
@@ -445,17 +871,31 @@ export declare function create(options: create.Options): import("hono/hono-base"
445
871
  };
446
872
  } | {
447
873
  output: {
448
- error: {
449
- code: "api_key_limit_reached";
450
- details?: readonly Response.error.Detail[] | undefined;
451
- message: string;
452
- };
453
- requestId: string;
874
+ createdAt: string;
875
+ createdBy?: string | undefined;
876
+ expiresAt?: string | undefined;
877
+ tokenLast4: string;
878
+ allowedIps: readonly string[];
879
+ billingActive?: boolean | undefined;
880
+ environment: "production" | "sandbox";
881
+ id: string;
882
+ name?: string | undefined;
883
+ orgId: string;
884
+ projectId?: string | undefined;
885
+ rateLimits?: {
886
+ [x: string]: {
887
+ limit: number;
888
+ period: "minute" | "second";
889
+ };
890
+ } | undefined;
891
+ scopes: readonly string[];
892
+ token: string;
454
893
  };
455
894
  outputFormat: "json";
456
- status: 409;
895
+ status: import("hono/utils/http-status").ContentfulStatusCode;
457
896
  input: {
458
897
  json: {
898
+ orgId?: string | undefined;
459
899
  allowedIps?: readonly string[] | undefined;
460
900
  billingActive?: boolean | undefined;
461
901
  environment?: "production" | "sandbox" | undefined;
@@ -464,7 +904,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
464
904
  limit: number;
465
905
  period: "minute" | "second";
466
906
  }> | undefined;
467
- orgId?: string | undefined;
468
907
  expiresAt?: string | undefined;
469
908
  name: string;
470
909
  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:${number}:read` | `zone:${number}:write`)[];
@@ -477,6 +916,10 @@ export declare function create(options: create.Options): import("hono/hono-base"
477
916
  $get: {
478
917
  output: {
479
918
  data: {
919
+ createdAt: string;
920
+ createdBy?: string | undefined;
921
+ expiresAt?: string | undefined;
922
+ tokenLast4: string;
480
923
  allowedIps: readonly string[];
481
924
  billingActive?: boolean | undefined;
482
925
  environment: "production" | "sandbox";
@@ -491,10 +934,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
491
934
  };
492
935
  } | undefined;
493
936
  scopes: readonly string[];
494
- createdAt: string;
495
- createdBy?: string | undefined;
496
- expiresAt?: string | undefined;
497
- tokenLast4: string;
498
937
  createdByLabel: string | null;
499
938
  organizationName: string | null;
500
939
  projectName: string | null;
@@ -576,6 +1015,26 @@ export declare function create(options: create.Options): import("hono/hono-base"
576
1015
  };
577
1016
  } | {
578
1017
  output: {
1018
+ error: {
1019
+ code: "api_key_limit_reached";
1020
+ details?: readonly Response.error.Detail[] | undefined;
1021
+ message: string;
1022
+ };
1023
+ requestId: string;
1024
+ };
1025
+ outputFormat: "json";
1026
+ status: 409;
1027
+ input: {
1028
+ param: {
1029
+ id: string;
1030
+ };
1031
+ };
1032
+ } | {
1033
+ output: {
1034
+ createdAt: string;
1035
+ createdBy?: string | undefined;
1036
+ expiresAt?: string | undefined;
1037
+ tokenLast4: string;
579
1038
  allowedIps: readonly string[];
580
1039
  billingActive?: boolean | undefined;
581
1040
  environment: "production" | "sandbox";
@@ -590,10 +1049,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
590
1049
  };
591
1050
  } | undefined;
592
1051
  scopes: readonly string[];
593
- createdAt: string;
594
- createdBy?: string | undefined;
595
- expiresAt?: string | undefined;
596
- tokenLast4: string;
597
1052
  token: string;
598
1053
  };
599
1054
  outputFormat: "json";
@@ -603,22 +1058,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
603
1058
  id: string;
604
1059
  };
605
1060
  };
606
- } | {
607
- output: {
608
- error: {
609
- code: "api_key_limit_reached";
610
- details?: readonly Response.error.Detail[] | undefined;
611
- message: string;
612
- };
613
- requestId: string;
614
- };
615
- outputFormat: "json";
616
- status: 409;
617
- input: {
618
- param: {
619
- id: string;
620
- };
621
- };
622
1061
  };
623
1062
  };
624
1063
  } & {
@@ -737,6 +1176,10 @@ export declare function create(options: create.Options): import("hono/hono-base"
737
1176
  };
738
1177
  } | {
739
1178
  output: {
1179
+ createdAt: string;
1180
+ createdBy?: string | undefined;
1181
+ expiresAt?: string | undefined;
1182
+ tokenLast4: string;
740
1183
  allowedIps: readonly string[];
741
1184
  billingActive?: boolean | undefined;
742
1185
  environment: "production" | "sandbox";
@@ -751,10 +1194,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
751
1194
  };
752
1195
  } | undefined;
753
1196
  scopes: readonly string[];
754
- createdAt: string;
755
- createdBy?: string | undefined;
756
- expiresAt?: string | undefined;
757
- tokenLast4: string;
758
1197
  };
759
1198
  outputFormat: "json";
760
1199
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -985,25 +1424,278 @@ export declare function create(options: create.Options): import("hono/hono-base"
985
1424
  status?: string | string[];
986
1425
  } | undefined;
987
1426
  };
988
- };
989
- };
990
- } & {
991
- "/transfers/:id": {
992
- $get: {
1427
+ };
1428
+ };
1429
+ } & {
1430
+ "/transfers/:id": {
1431
+ $get: {
1432
+ output: {
1433
+ error: {
1434
+ code: "routes_transfer_not_found";
1435
+ details?: readonly Response.error.Detail[] | undefined;
1436
+ message: string;
1437
+ };
1438
+ requestId: string;
1439
+ };
1440
+ outputFormat: "json";
1441
+ status: 404;
1442
+ input: {
1443
+ param: {
1444
+ id: string;
1445
+ };
1446
+ };
1447
+ } | {
1448
+ output: {
1449
+ createdAt: string;
1450
+ destinationAmount?: {
1451
+ baseUnits: string;
1452
+ currency: string;
1453
+ decimals: number;
1454
+ formatted: string;
1455
+ } | undefined;
1456
+ destinationAmountMin?: {
1457
+ baseUnits: string;
1458
+ currency: string;
1459
+ decimals: number;
1460
+ formatted: string;
1461
+ } | undefined;
1462
+ destinationAmountRequired?: {
1463
+ baseUnits: string;
1464
+ currency: string;
1465
+ decimals: number;
1466
+ formatted: string;
1467
+ } | undefined;
1468
+ destinationChain: {
1469
+ addressFormat: "base58" | "base58check" | "hex";
1470
+ id: string;
1471
+ kind: "evm" | "solana" | "tron";
1472
+ name: string;
1473
+ };
1474
+ destinationToken: {
1475
+ address: string;
1476
+ currency: string;
1477
+ decimals: number;
1478
+ name: string;
1479
+ standard: string;
1480
+ symbol: string;
1481
+ tokenKey: string;
1482
+ verified: boolean;
1483
+ };
1484
+ destinationTransactionHashes?: string[] | undefined;
1485
+ fees: {
1486
+ amount: {
1487
+ baseUnits: string;
1488
+ currency: string;
1489
+ decimals: number;
1490
+ formatted: string;
1491
+ };
1492
+ side: "destination" | "source";
1493
+ token: {
1494
+ address: string;
1495
+ currency: string;
1496
+ decimals: number;
1497
+ name: string;
1498
+ standard: string;
1499
+ symbol: string;
1500
+ tokenKey: string;
1501
+ verified: boolean;
1502
+ };
1503
+ type: "provider";
1504
+ }[];
1505
+ id: string;
1506
+ method: "depositAddress" | "transaction";
1507
+ mode: "exactDestination" | "exactSource";
1508
+ provider: {
1509
+ id: string;
1510
+ name: string;
1511
+ };
1512
+ quote: {
1513
+ expiresAt: string;
1514
+ sampledAt: string;
1515
+ };
1516
+ recipient: string;
1517
+ refundAddress?: string | undefined;
1518
+ refundAmount?: {
1519
+ baseUnits: string;
1520
+ currency: string;
1521
+ decimals: number;
1522
+ formatted: string;
1523
+ } | undefined;
1524
+ refundTransactionHashes?: string[] | undefined;
1525
+ sender?: string | undefined;
1526
+ sourceAmount: {
1527
+ baseUnits: string;
1528
+ currency: string;
1529
+ decimals: number;
1530
+ formatted: string;
1531
+ };
1532
+ sourceAmountMax?: {
1533
+ baseUnits: string;
1534
+ currency: string;
1535
+ decimals: number;
1536
+ formatted: string;
1537
+ } | undefined;
1538
+ sourceChain: {
1539
+ addressFormat: "base58" | "base58check" | "hex";
1540
+ id: string;
1541
+ kind: "evm" | "solana" | "tron";
1542
+ name: string;
1543
+ };
1544
+ sourceToken: {
1545
+ address: string;
1546
+ currency: string;
1547
+ decimals: number;
1548
+ name: string;
1549
+ standard: string;
1550
+ symbol: string;
1551
+ tokenKey: string;
1552
+ verified: boolean;
1553
+ };
1554
+ sourceTransactionHashes?: string[] | undefined;
1555
+ subsidize: boolean;
1556
+ status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
1557
+ statusReason?: {
1558
+ code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
1559
+ message: string;
1560
+ } | undefined;
1561
+ updatedAt: string;
1562
+ version: number;
1563
+ environment: "production" | "sandbox";
1564
+ organization: {
1565
+ id: string;
1566
+ name: string | null;
1567
+ };
1568
+ project: {
1569
+ id: string;
1570
+ name: string | null;
1571
+ } | null;
1572
+ statusUpdatedAt: string | null;
1573
+ subsidies: readonly {
1574
+ amount: {
1575
+ baseUnits: string;
1576
+ currency: string;
1577
+ decimals: number;
1578
+ formatted: string;
1579
+ };
1580
+ provider: string;
1581
+ token: {
1582
+ address: string;
1583
+ currency: string;
1584
+ decimals: number;
1585
+ name: string;
1586
+ standard: string;
1587
+ symbol: string;
1588
+ tokenKey: string;
1589
+ verified: boolean;
1590
+ };
1591
+ }[];
1592
+ events: {
1593
+ createdAt: string;
1594
+ status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
1595
+ statusReason?: {
1596
+ code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
1597
+ message: string;
1598
+ } | undefined;
1599
+ version: number;
1600
+ }[];
1601
+ providerRequestIds: readonly string[];
1602
+ transactions: {
1603
+ chainId: string;
1604
+ createdAt: string;
1605
+ role: "destination" | "refund" | "source";
1606
+ transactionRef: string;
1607
+ }[];
1608
+ };
1609
+ outputFormat: "json";
1610
+ status: 200;
1611
+ input: {
1612
+ param: {
1613
+ id: string;
1614
+ };
1615
+ };
1616
+ };
1617
+ };
1618
+ } & {
1619
+ "/transfers/:id/retry": {
1620
+ $post: {
1621
+ output: {
1622
+ error: {
1623
+ code: "routes_transfer_not_found";
1624
+ details?: readonly Response.error.Detail[] | undefined;
1625
+ message: string;
1626
+ };
1627
+ requestId: string;
1628
+ };
1629
+ outputFormat: "json";
1630
+ status: 404;
1631
+ input: {
1632
+ param: {
1633
+ id: string;
1634
+ };
1635
+ } & {
1636
+ json: {
1637
+ version: number;
1638
+ };
1639
+ };
1640
+ } | {
1641
+ output: {
1642
+ error: {
1643
+ code: "version_conflict";
1644
+ details?: readonly Response.error.Detail[] | undefined;
1645
+ message: string;
1646
+ };
1647
+ requestId: string;
1648
+ };
1649
+ outputFormat: "json";
1650
+ status: 409;
1651
+ input: {
1652
+ param: {
1653
+ id: string;
1654
+ };
1655
+ } & {
1656
+ json: {
1657
+ version: number;
1658
+ };
1659
+ };
1660
+ } | {
1661
+ output: {
1662
+ error: {
1663
+ code: "routes_transfer_not_retryable";
1664
+ details?: readonly Response.error.Detail[] | undefined;
1665
+ message: string;
1666
+ };
1667
+ requestId: string;
1668
+ };
1669
+ outputFormat: "json";
1670
+ status: 409;
1671
+ input: {
1672
+ param: {
1673
+ id: string;
1674
+ };
1675
+ } & {
1676
+ json: {
1677
+ version: number;
1678
+ };
1679
+ };
1680
+ } | {
993
1681
  output: {
994
1682
  error: {
995
- code: "routes_transfer_not_found";
1683
+ code: "routes_transfer_subsidy_pending";
996
1684
  details?: readonly Response.error.Detail[] | undefined;
997
1685
  message: string;
998
1686
  };
999
1687
  requestId: string;
1000
1688
  };
1001
1689
  outputFormat: "json";
1002
- status: 404;
1690
+ status: 409;
1003
1691
  input: {
1004
1692
  param: {
1005
1693
  id: string;
1006
1694
  };
1695
+ } & {
1696
+ json: {
1697
+ version: number;
1698
+ };
1007
1699
  };
1008
1700
  } | {
1009
1701
  output: {
@@ -1150,21 +1842,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
1150
1842
  verified: boolean;
1151
1843
  };
1152
1844
  }[];
1153
- events: {
1154
- createdAt: string;
1155
- status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
1156
- statusReason?: {
1157
- code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
1158
- message: string;
1159
- } | undefined;
1160
- version: number;
1161
- }[];
1162
- transactions: {
1163
- chainId: string;
1164
- createdAt: string;
1165
- role: "destination" | "refund" | "source";
1166
- transactionRef: string;
1167
- }[];
1168
1845
  };
1169
1846
  outputFormat: "json";
1170
1847
  status: 200;
@@ -1172,6 +1849,10 @@ export declare function create(options: create.Options): import("hono/hono-base"
1172
1849
  param: {
1173
1850
  id: string;
1174
1851
  };
1852
+ } & {
1853
+ json: {
1854
+ version: number;
1855
+ };
1175
1856
  };
1176
1857
  };
1177
1858
  };
@@ -1916,14 +2597,10 @@ export declare function create(options: create.Options): import("hono/hono-base"
1916
2597
  };
1917
2598
  slug: string;
1918
2599
  verified: true;
2600
+ earnings: {
2601
+ rewardDistributors: `0x${string}`[];
2602
+ } | null;
1919
2603
  }[];
1920
- meta?: {
1921
- valuation?: {
1922
- asOf: string;
1923
- basis: "nominal";
1924
- source: string;
1925
- } | undefined;
1926
- } | undefined;
1927
2604
  nextCursor: string | null;
1928
2605
  };
1929
2606
  outputFormat: "json";
@@ -2093,6 +2770,9 @@ export declare function create(options: create.Options): import("hono/hono-base"
2093
2770
  name: string;
2094
2771
  outputTokens: `0x${string}`[];
2095
2772
  }[] | undefined;
2773
+ earnings: {
2774
+ rewardDistributors: `0x${string}`[];
2775
+ } | null;
2096
2776
  };
2097
2777
  outputFormat: "json";
2098
2778
  status: 200;
@@ -3009,11 +3689,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
3009
3689
  json: {
3010
3690
  chainId: unknown;
3011
3691
  description?: string | null | undefined;
3692
+ earnings?: {
3693
+ rewardDistributors: `0x${string}`[];
3694
+ } | null | undefined;
3012
3695
  label?: string | undefined;
3013
3696
  privateInputTokens?: `0x${string}`[] | undefined;
3014
3697
  privateOutputTokens?: `0x${string}`[] | undefined;
3015
3698
  slug?: string | undefined;
3016
3699
  vaultAddress: `0x${string}`;
3700
+ zoneRouter?: `0x${string}` | undefined;
3017
3701
  zones?: {
3018
3702
  chainId: unknown;
3019
3703
  deploymentBlock: number;
@@ -3036,11 +3720,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
3036
3720
  json: {
3037
3721
  chainId: unknown;
3038
3722
  description?: string | null | undefined;
3723
+ earnings?: {
3724
+ rewardDistributors: `0x${string}`[];
3725
+ } | null | undefined;
3039
3726
  label?: string | undefined;
3040
3727
  privateInputTokens?: `0x${string}`[] | undefined;
3041
3728
  privateOutputTokens?: `0x${string}`[] | undefined;
3042
3729
  slug?: string | undefined;
3043
3730
  vaultAddress: `0x${string}`;
3731
+ zoneRouter?: `0x${string}` | undefined;
3044
3732
  zones?: {
3045
3733
  chainId: unknown;
3046
3734
  deploymentBlock: number;
@@ -3063,11 +3751,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
3063
3751
  json: {
3064
3752
  chainId: unknown;
3065
3753
  description?: string | null | undefined;
3754
+ earnings?: {
3755
+ rewardDistributors: `0x${string}`[];
3756
+ } | null | undefined;
3066
3757
  label?: string | undefined;
3067
3758
  privateInputTokens?: `0x${string}`[] | undefined;
3068
3759
  privateOutputTokens?: `0x${string}`[] | undefined;
3069
3760
  slug?: string | undefined;
3070
3761
  vaultAddress: `0x${string}`;
3762
+ zoneRouter?: `0x${string}` | undefined;
3071
3763
  zones?: {
3072
3764
  chainId: unknown;
3073
3765
  deploymentBlock: number;
@@ -3090,11 +3782,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
3090
3782
  json: {
3091
3783
  chainId: unknown;
3092
3784
  description?: string | null | undefined;
3785
+ earnings?: {
3786
+ rewardDistributors: `0x${string}`[];
3787
+ } | null | undefined;
3093
3788
  label?: string | undefined;
3094
3789
  privateInputTokens?: `0x${string}`[] | undefined;
3095
3790
  privateOutputTokens?: `0x${string}`[] | undefined;
3096
3791
  slug?: string | undefined;
3097
3792
  vaultAddress: `0x${string}`;
3793
+ zoneRouter?: `0x${string}` | undefined;
3098
3794
  zones?: {
3099
3795
  chainId: unknown;
3100
3796
  deploymentBlock: number;
@@ -3210,6 +3906,9 @@ export declare function create(options: create.Options): import("hono/hono-base"
3210
3906
  };
3211
3907
  slug: string;
3212
3908
  verified: true;
3909
+ earnings: {
3910
+ rewardDistributors: `0x${string}`[];
3911
+ } | null;
3213
3912
  };
3214
3913
  outputFormat: "json";
3215
3914
  status: 200;
@@ -3217,11 +3916,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
3217
3916
  json: {
3218
3917
  chainId: unknown;
3219
3918
  description?: string | null | undefined;
3919
+ earnings?: {
3920
+ rewardDistributors: `0x${string}`[];
3921
+ } | null | undefined;
3220
3922
  label?: string | undefined;
3221
3923
  privateInputTokens?: `0x${string}`[] | undefined;
3222
3924
  privateOutputTokens?: `0x${string}`[] | undefined;
3223
3925
  slug?: string | undefined;
3224
3926
  vaultAddress: `0x${string}`;
3927
+ zoneRouter?: `0x${string}` | undefined;
3225
3928
  zones?: {
3226
3929
  chainId: unknown;
3227
3930
  deploymentBlock: number;
@@ -3340,7 +4043,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
3340
4043
  } | {
3341
4044
  output: {
3342
4045
  error: {
3343
- code: "assets_not_enabled";
4046
+ code: "verified_token_not_found";
3344
4047
  details?: readonly Response.error.Detail[] | undefined;
3345
4048
  message: string;
3346
4049
  };
@@ -3362,19 +4065,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
3362
4065
  };
3363
4066
  } | {
3364
4067
  output: {
3365
- data: {
3366
- address: `0x${string}`;
3367
- currency: string;
3368
- decimals: number;
3369
- logoUri?: string | undefined;
3370
- name: string;
3371
- symbol: string;
3372
- id: `0x${string}`;
4068
+ error: {
4069
+ code: "assets_not_enabled";
4070
+ details?: readonly Response.error.Detail[] | undefined;
4071
+ message: string;
3373
4072
  };
3374
- version: string;
4073
+ requestId: string;
3375
4074
  };
3376
4075
  outputFormat: "json";
3377
- status: import("hono/utils/http-status").ContentfulStatusCode;
4076
+ status: 404;
3378
4077
  input: {
3379
4078
  json: {
3380
4079
  address: `0x${string}`;
@@ -3389,15 +4088,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
3389
4088
  };
3390
4089
  } | {
3391
4090
  output: {
3392
- error: {
3393
- code: string;
3394
- details?: readonly Response.error.Detail[] | undefined;
3395
- message: string;
4091
+ data: {
4092
+ address: `0x${string}`;
4093
+ currency: string;
4094
+ decimals: number;
4095
+ logoUri?: string | undefined;
4096
+ name: string;
4097
+ symbol: string;
4098
+ id: `0x${string}`;
3396
4099
  };
3397
- requestId: string;
4100
+ version: string;
3398
4101
  };
3399
4102
  outputFormat: "json";
3400
- status: 400 | 413 | 415;
4103
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3401
4104
  input: {
3402
4105
  json: {
3403
4106
  address: `0x${string}`;
@@ -3413,14 +4116,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3413
4116
  } | {
3414
4117
  output: {
3415
4118
  error: {
3416
- code: "duplicate_address";
4119
+ code: string;
3417
4120
  details?: readonly Response.error.Detail[] | undefined;
3418
4121
  message: string;
3419
4122
  };
3420
4123
  requestId: string;
3421
4124
  };
3422
4125
  outputFormat: "json";
3423
- status: 409;
4126
+ status: 400 | 413 | 415;
3424
4127
  input: {
3425
4128
  json: {
3426
4129
  address: `0x${string}`;
@@ -3436,7 +4139,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
3436
4139
  } | {
3437
4140
  output: {
3438
4141
  error: {
3439
- code: "duplicate_symbol";
4142
+ code: "duplicate_address";
3440
4143
  details?: readonly Response.error.Detail[] | undefined;
3441
4144
  message: string;
3442
4145
  };
@@ -3459,14 +4162,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3459
4162
  } | {
3460
4163
  output: {
3461
4164
  error: {
3462
- code: "verified_token_not_found";
4165
+ code: "duplicate_symbol";
3463
4166
  details?: readonly Response.error.Detail[] | undefined;
3464
4167
  message: string;
3465
4168
  };
3466
4169
  requestId: string;
3467
4170
  };
3468
4171
  outputFormat: "json";
3469
- status: 404;
4172
+ status: 409;
3470
4173
  input: {
3471
4174
  json: {
3472
4175
  address: `0x${string}`;
@@ -3536,14 +4239,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3536
4239
  } | {
3537
4240
  output: {
3538
4241
  error: {
3539
- code: string;
4242
+ code: "verified_token_not_found";
3540
4243
  details?: readonly Response.error.Detail[] | undefined;
3541
4244
  message: string;
3542
4245
  };
3543
4246
  requestId: string;
3544
4247
  };
3545
4248
  outputFormat: "json";
3546
- status: 400 | 413 | 415;
4249
+ status: 404;
3547
4250
  input: {
3548
4251
  query: {
3549
4252
  chainId: string | string[];
@@ -3563,14 +4266,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3563
4266
  } | {
3564
4267
  output: {
3565
4268
  error: {
3566
- code: "duplicate_address";
4269
+ code: string;
3567
4270
  details?: readonly Response.error.Detail[] | undefined;
3568
4271
  message: string;
3569
4272
  };
3570
4273
  requestId: string;
3571
4274
  };
3572
4275
  outputFormat: "json";
3573
- status: 409;
4276
+ status: 400 | 413 | 415;
3574
4277
  input: {
3575
4278
  query: {
3576
4279
  chainId: string | string[];
@@ -3590,7 +4293,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
3590
4293
  } | {
3591
4294
  output: {
3592
4295
  error: {
3593
- code: "duplicate_symbol";
4296
+ code: "duplicate_address";
3594
4297
  details?: readonly Response.error.Detail[] | undefined;
3595
4298
  message: string;
3596
4299
  };
@@ -3617,14 +4320,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3617
4320
  } | {
3618
4321
  output: {
3619
4322
  error: {
3620
- code: "verified_token_not_found";
4323
+ code: "duplicate_symbol";
3621
4324
  details?: readonly Response.error.Detail[] | undefined;
3622
4325
  message: string;
3623
4326
  };
3624
4327
  requestId: string;
3625
4328
  };
3626
4329
  outputFormat: "json";
3627
- status: 404;
4330
+ status: 409;
3628
4331
  input: {
3629
4332
  query: {
3630
4333
  chainId: string | string[];
@@ -3733,19 +4436,15 @@ export declare function create(options: create.Options): import("hono/hono-base"
3733
4436
  };
3734
4437
  } | {
3735
4438
  output: {
3736
- data: {
3737
- address: `0x${string}`;
3738
- currency: string;
3739
- decimals: number;
3740
- logoUri?: string | undefined;
3741
- name: string;
3742
- symbol: string;
3743
- id: `0x${string}`;
4439
+ error: {
4440
+ code: "verified_token_not_found";
4441
+ details?: readonly Response.error.Detail[] | undefined;
4442
+ message: string;
3744
4443
  };
3745
- version: string;
4444
+ requestId: string;
3746
4445
  };
3747
4446
  outputFormat: "json";
3748
- status: import("hono/utils/http-status").ContentfulStatusCode;
4447
+ status: 404;
3749
4448
  input: {
3750
4449
  param: {
3751
4450
  address: `0x${string}`;
@@ -3765,15 +4464,19 @@ export declare function create(options: create.Options): import("hono/hono-base"
3765
4464
  };
3766
4465
  } | {
3767
4466
  output: {
3768
- error: {
3769
- code: string;
3770
- details?: readonly Response.error.Detail[] | undefined;
3771
- message: string;
4467
+ data: {
4468
+ address: `0x${string}`;
4469
+ currency: string;
4470
+ decimals: number;
4471
+ logoUri?: string | undefined;
4472
+ name: string;
4473
+ symbol: string;
4474
+ id: `0x${string}`;
3772
4475
  };
3773
- requestId: string;
4476
+ version: string;
3774
4477
  };
3775
4478
  outputFormat: "json";
3776
- status: 400 | 413 | 415;
4479
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3777
4480
  input: {
3778
4481
  param: {
3779
4482
  address: `0x${string}`;
@@ -3794,14 +4497,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3794
4497
  } | {
3795
4498
  output: {
3796
4499
  error: {
3797
- code: "duplicate_address";
4500
+ code: string;
3798
4501
  details?: readonly Response.error.Detail[] | undefined;
3799
4502
  message: string;
3800
4503
  };
3801
4504
  requestId: string;
3802
4505
  };
3803
4506
  outputFormat: "json";
3804
- status: 409;
4507
+ status: 400 | 413 | 415;
3805
4508
  input: {
3806
4509
  param: {
3807
4510
  address: `0x${string}`;
@@ -3822,7 +4525,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
3822
4525
  } | {
3823
4526
  output: {
3824
4527
  error: {
3825
- code: "duplicate_symbol";
4528
+ code: "duplicate_address";
3826
4529
  details?: readonly Response.error.Detail[] | undefined;
3827
4530
  message: string;
3828
4531
  };
@@ -3850,14 +4553,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3850
4553
  } | {
3851
4554
  output: {
3852
4555
  error: {
3853
- code: "verified_token_not_found";
4556
+ code: "duplicate_symbol";
3854
4557
  details?: readonly Response.error.Detail[] | undefined;
3855
4558
  message: string;
3856
4559
  };
3857
4560
  requestId: string;
3858
4561
  };
3859
4562
  outputFormat: "json";
3860
- status: 404;
4563
+ status: 409;
3861
4564
  input: {
3862
4565
  param: {
3863
4566
  address: `0x${string}`;
@@ -3930,14 +4633,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3930
4633
  } | {
3931
4634
  output: {
3932
4635
  error: {
3933
- code: string;
4636
+ code: "verified_token_not_found";
3934
4637
  details?: readonly Response.error.Detail[] | undefined;
3935
4638
  message: string;
3936
4639
  };
3937
4640
  requestId: string;
3938
4641
  };
3939
4642
  outputFormat: "json";
3940
- status: 400 | 413 | 415;
4643
+ status: 404;
3941
4644
  input: {
3942
4645
  param: {
3943
4646
  address: `0x${string}`;
@@ -3950,14 +4653,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3950
4653
  } | {
3951
4654
  output: {
3952
4655
  error: {
3953
- code: "duplicate_address";
4656
+ code: string;
3954
4657
  details?: readonly Response.error.Detail[] | undefined;
3955
4658
  message: string;
3956
4659
  };
3957
4660
  requestId: string;
3958
4661
  };
3959
4662
  outputFormat: "json";
3960
- status: 409;
4663
+ status: 400 | 413 | 415;
3961
4664
  input: {
3962
4665
  param: {
3963
4666
  address: `0x${string}`;
@@ -3970,7 +4673,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
3970
4673
  } | {
3971
4674
  output: {
3972
4675
  error: {
3973
- code: "duplicate_symbol";
4676
+ code: "duplicate_address";
3974
4677
  details?: readonly Response.error.Detail[] | undefined;
3975
4678
  message: string;
3976
4679
  };
@@ -3990,14 +4693,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
3990
4693
  } | {
3991
4694
  output: {
3992
4695
  error: {
3993
- code: "verified_token_not_found";
4696
+ code: "duplicate_symbol";
3994
4697
  details?: readonly Response.error.Detail[] | undefined;
3995
4698
  message: string;
3996
4699
  };
3997
4700
  requestId: string;
3998
4701
  };
3999
4702
  outputFormat: "json";
4000
- status: 404;
4703
+ status: 409;
4001
4704
  input: {
4002
4705
  param: {
4003
4706
  address: `0x${string}`;
@@ -4106,14 +4809,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4106
4809
  } | {
4107
4810
  output: {
4108
4811
  error: {
4109
- code: "assets_not_enabled";
4812
+ code: "payload_too_large";
4110
4813
  details?: readonly Response.error.Detail[] | undefined;
4111
4814
  message: string;
4112
4815
  };
4113
4816
  requestId: string;
4114
4817
  };
4115
4818
  outputFormat: "json";
4116
- status: 404;
4819
+ status: 413;
4117
4820
  input: {
4118
4821
  param: {
4119
4822
  address: `0x${string}`;
@@ -4126,14 +4829,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4126
4829
  } | {
4127
4830
  output: {
4128
4831
  error: {
4129
- code: "unsupported_media_type";
4832
+ code: "assets_not_enabled";
4130
4833
  details?: readonly Response.error.Detail[] | undefined;
4131
4834
  message: string;
4132
4835
  };
4133
4836
  requestId: string;
4134
4837
  };
4135
4838
  outputFormat: "json";
4136
- status: 415;
4839
+ status: 404;
4137
4840
  input: {
4138
4841
  param: {
4139
4842
  address: `0x${string}`;
@@ -4146,14 +4849,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4146
4849
  } | {
4147
4850
  output: {
4148
4851
  error: {
4149
- code: "payload_too_large";
4852
+ code: "unsupported_media_type";
4150
4853
  details?: readonly Response.error.Detail[] | undefined;
4151
4854
  message: string;
4152
4855
  };
4153
4856
  requestId: string;
4154
4857
  };
4155
4858
  outputFormat: "json";
4156
- status: 413;
4859
+ status: 415;
4157
4860
  input: {
4158
4861
  param: {
4159
4862
  address: `0x${string}`;
@@ -4240,7 +4943,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
4240
4943
  } | {
4241
4944
  output: {
4242
4945
  error: {
4243
- code: "assets_not_enabled";
4946
+ code: "verified_token_not_found";
4244
4947
  details?: readonly Response.error.Detail[] | undefined;
4245
4948
  message: string;
4246
4949
  };
@@ -4256,14 +4959,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4256
4959
  } | {
4257
4960
  output: {
4258
4961
  error: {
4259
- code: string;
4962
+ code: "request_not_pending";
4260
4963
  details?: readonly Response.error.Detail[] | undefined;
4261
4964
  message: string;
4262
4965
  };
4263
4966
  requestId: string;
4264
4967
  };
4265
4968
  outputFormat: "json";
4266
- status: 400 | 413 | 415;
4969
+ status: 409;
4267
4970
  input: {
4268
4971
  param: {
4269
4972
  requestId: string;
@@ -4272,14 +4975,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4272
4975
  } | {
4273
4976
  output: {
4274
4977
  error: {
4275
- code: "duplicate_address";
4978
+ code: "verified_token_request_not_found";
4276
4979
  details?: readonly Response.error.Detail[] | undefined;
4277
4980
  message: string;
4278
4981
  };
4279
4982
  requestId: string;
4280
4983
  };
4281
4984
  outputFormat: "json";
4282
- status: 409;
4985
+ status: 404;
4283
4986
  input: {
4284
4987
  param: {
4285
4988
  requestId: string;
@@ -4288,14 +4991,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4288
4991
  } | {
4289
4992
  output: {
4290
4993
  error: {
4291
- code: "duplicate_symbol";
4994
+ code: "assets_not_enabled";
4292
4995
  details?: readonly Response.error.Detail[] | undefined;
4293
4996
  message: string;
4294
4997
  };
4295
4998
  requestId: string;
4296
4999
  };
4297
5000
  outputFormat: "json";
4298
- status: 409;
5001
+ status: 404;
4299
5002
  input: {
4300
5003
  param: {
4301
5004
  requestId: string;
@@ -4304,14 +5007,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4304
5007
  } | {
4305
5008
  output: {
4306
5009
  error: {
4307
- code: "verified_token_not_found";
5010
+ code: string;
4308
5011
  details?: readonly Response.error.Detail[] | undefined;
4309
5012
  message: string;
4310
5013
  };
4311
5014
  requestId: string;
4312
5015
  };
4313
5016
  outputFormat: "json";
4314
- status: 404;
5017
+ status: 400 | 413 | 415;
4315
5018
  input: {
4316
5019
  param: {
4317
5020
  requestId: string;
@@ -4320,14 +5023,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4320
5023
  } | {
4321
5024
  output: {
4322
5025
  error: {
4323
- code: "version_mismatch";
5026
+ code: "duplicate_address";
4324
5027
  details?: readonly Response.error.Detail[] | undefined;
4325
5028
  message: string;
4326
5029
  };
4327
5030
  requestId: string;
4328
5031
  };
4329
5032
  outputFormat: "json";
4330
- status: 412;
5033
+ status: 409;
4331
5034
  input: {
4332
5035
  param: {
4333
5036
  requestId: string;
@@ -4336,14 +5039,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4336
5039
  } | {
4337
5040
  output: {
4338
5041
  error: {
4339
- code: "verified_token_request_not_found";
5042
+ code: "duplicate_symbol";
4340
5043
  details?: readonly Response.error.Detail[] | undefined;
4341
5044
  message: string;
4342
5045
  };
4343
5046
  requestId: string;
4344
5047
  };
4345
5048
  outputFormat: "json";
4346
- status: 404;
5049
+ status: 409;
4347
5050
  input: {
4348
5051
  param: {
4349
5052
  requestId: string;
@@ -4352,14 +5055,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4352
5055
  } | {
4353
5056
  output: {
4354
5057
  error: {
4355
- code: "request_not_pending";
5058
+ code: "version_mismatch";
4356
5059
  details?: readonly Response.error.Detail[] | undefined;
4357
5060
  message: string;
4358
5061
  };
4359
5062
  requestId: string;
4360
5063
  };
4361
5064
  outputFormat: "json";
4362
- status: 409;
5065
+ status: 412;
4363
5066
  input: {
4364
5067
  param: {
4365
5068
  requestId: string;
@@ -4423,14 +5126,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4423
5126
  } | {
4424
5127
  output: {
4425
5128
  error: {
4426
- code: string;
5129
+ code: "verified_token_not_found";
4427
5130
  details?: readonly Response.error.Detail[] | undefined;
4428
5131
  message: string;
4429
5132
  };
4430
5133
  requestId: string;
4431
5134
  };
4432
5135
  outputFormat: "json";
4433
- status: 400 | 413 | 415;
5136
+ status: 404;
4434
5137
  input: {
4435
5138
  param: {
4436
5139
  requestId: string;
@@ -4443,7 +5146,7 @@ export declare function create(options: create.Options): import("hono/hono-base"
4443
5146
  } | {
4444
5147
  output: {
4445
5148
  error: {
4446
- code: "duplicate_address";
5149
+ code: "request_not_pending";
4447
5150
  details?: readonly Response.error.Detail[] | undefined;
4448
5151
  message: string;
4449
5152
  };
@@ -4463,14 +5166,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4463
5166
  } | {
4464
5167
  output: {
4465
5168
  error: {
4466
- code: "duplicate_symbol";
5169
+ code: "verified_token_request_not_found";
4467
5170
  details?: readonly Response.error.Detail[] | undefined;
4468
5171
  message: string;
4469
5172
  };
4470
5173
  requestId: string;
4471
5174
  };
4472
5175
  outputFormat: "json";
4473
- status: 409;
5176
+ status: 404;
4474
5177
  input: {
4475
5178
  param: {
4476
5179
  requestId: string;
@@ -4483,14 +5186,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4483
5186
  } | {
4484
5187
  output: {
4485
5188
  error: {
4486
- code: "verified_token_not_found";
5189
+ code: string;
4487
5190
  details?: readonly Response.error.Detail[] | undefined;
4488
5191
  message: string;
4489
5192
  };
4490
5193
  requestId: string;
4491
5194
  };
4492
5195
  outputFormat: "json";
4493
- status: 404;
5196
+ status: 400 | 413 | 415;
4494
5197
  input: {
4495
5198
  param: {
4496
5199
  requestId: string;
@@ -4503,14 +5206,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4503
5206
  } | {
4504
5207
  output: {
4505
5208
  error: {
4506
- code: "version_mismatch";
5209
+ code: "duplicate_address";
4507
5210
  details?: readonly Response.error.Detail[] | undefined;
4508
5211
  message: string;
4509
5212
  };
4510
5213
  requestId: string;
4511
5214
  };
4512
5215
  outputFormat: "json";
4513
- status: 412;
5216
+ status: 409;
4514
5217
  input: {
4515
5218
  param: {
4516
5219
  requestId: string;
@@ -4523,14 +5226,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4523
5226
  } | {
4524
5227
  output: {
4525
5228
  error: {
4526
- code: "verified_token_request_not_found";
5229
+ code: "duplicate_symbol";
4527
5230
  details?: readonly Response.error.Detail[] | undefined;
4528
5231
  message: string;
4529
5232
  };
4530
5233
  requestId: string;
4531
5234
  };
4532
5235
  outputFormat: "json";
4533
- status: 404;
5236
+ status: 409;
4534
5237
  input: {
4535
5238
  param: {
4536
5239
  requestId: string;
@@ -4543,14 +5246,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
4543
5246
  } | {
4544
5247
  output: {
4545
5248
  error: {
4546
- code: "request_not_pending";
5249
+ code: "version_mismatch";
4547
5250
  details?: readonly Response.error.Detail[] | undefined;
4548
5251
  message: string;
4549
5252
  };
4550
5253
  requestId: string;
4551
5254
  };
4552
5255
  outputFormat: "json";
4553
- status: 409;
5256
+ status: 412;
4554
5257
  input: {
4555
5258
  param: {
4556
5259
  requestId: string;
@@ -5124,14 +5827,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5124
5827
  } | {
5125
5828
  output: {
5126
5829
  error: {
5127
- code: "not_found";
5830
+ code: "rate_limit_exceeded";
5128
5831
  details?: readonly Response.error.Detail[] | undefined;
5129
5832
  message: string;
5130
5833
  };
5131
5834
  requestId: string;
5132
5835
  };
5133
5836
  outputFormat: "json";
5134
- status: 404;
5837
+ status: 429;
5135
5838
  input: {
5136
5839
  param: {
5137
5840
  orgId: string;
@@ -5145,14 +5848,14 @@ export declare function create(options: create.Options): import("hono/hono-base"
5145
5848
  } | {
5146
5849
  output: {
5147
5850
  error: {
5148
- code: "rate_limit_exceeded";
5851
+ code: "not_found";
5149
5852
  details?: readonly Response.error.Detail[] | undefined;
5150
5853
  message: string;
5151
5854
  };
5152
5855
  requestId: string;
5153
5856
  };
5154
5857
  outputFormat: "json";
5155
- status: 429;
5858
+ status: 404;
5156
5859
  input: {
5157
5860
  param: {
5158
5861
  orgId: string;
@@ -5292,6 +5995,10 @@ export declare function create(options: create.Options): import("hono/hono-base"
5292
5995
  } | {
5293
5996
  output: {
5294
5997
  data: {
5998
+ createdAt: string;
5999
+ createdBy?: string | undefined;
6000
+ expiresAt?: string | undefined;
6001
+ tokenLast4: string;
5295
6002
  allowedIps: readonly string[];
5296
6003
  billingActive?: boolean | undefined;
5297
6004
  environment: "production" | "sandbox";
@@ -5306,10 +6013,6 @@ export declare function create(options: create.Options): import("hono/hono-base"
5306
6013
  };
5307
6014
  } | undefined;
5308
6015
  scopes: readonly string[];
5309
- createdAt: string;
5310
- createdBy?: string | undefined;
5311
- expiresAt?: string | undefined;
5312
- tokenLast4: string;
5313
6016
  }[];
5314
6017
  };
5315
6018
  outputFormat: "json";
@@ -5574,11 +6277,10 @@ export declare namespace create {
5574
6277
  /** Transactional email sender used for organization invitations. */
5575
6278
  email?: Email.Sender | undefined;
5576
6279
  /**
5577
- * Extracts the verified admin identity from a request, or `null` to deny.
5578
- * Must only return an identity for an already-authenticated request (a
5579
- * verified Access JWT, or a header set by a trusted proxy).
6280
+ * Extracts an already-verified admin identity from the request or middleware
6281
+ * context, or `null` to deny. Authentication middleware must run before this app.
5580
6282
  */
5581
- identify: (request: Request) => Identity | null | Promise<Identity | null>;
6283
+ identify: (request: Request, context: Context<Environment>) => Identity | null | Promise<Identity | null>;
5582
6284
  /**
5583
6285
  * KV state store backing API-key records (shared with the main API's
5584
6286
  * `kv` option), provisioned against by the `/api-keys` routes.