tapimo 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/README.md +13 -5
  2. package/dist/ApiKey.d.ts +2 -2
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +2 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +85 -11
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +218 -56
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +12543 -13912
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +4 -5
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +12 -20
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +20 -36
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/admin/App.d.ts +871 -828
  19. package/dist/admin/App.d.ts.map +1 -1
  20. package/dist/admin/App.js +14 -26
  21. package/dist/admin/App.js.map +1 -1
  22. package/dist/admin/apps/api-keys.d.ts +93 -186
  23. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.js +3 -5
  25. package/dist/admin/apps/api-keys.js.map +1 -1
  26. package/dist/admin/apps/audit-logs.d.ts +18 -18
  27. package/dist/admin/apps/audit-logs.js +1 -1
  28. package/dist/admin/apps/audit-logs.js.map +1 -1
  29. package/dist/admin/apps/earn-vaults.d.ts +27 -27
  30. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  31. package/dist/admin/apps/earn-vaults.js +11 -5
  32. package/dist/admin/apps/earn-vaults.js.map +1 -1
  33. package/dist/admin/apps/organizations.d.ts +17 -17
  34. package/dist/admin/apps/prop-amms.d.ts +4 -4
  35. package/dist/admin/apps/routes-support.js +1 -38
  36. package/dist/admin/apps/routes-support.js.map +1 -1
  37. package/dist/admin/apps/routes.d.ts +153 -153
  38. package/dist/admin/apps/sentinel.d.ts +4 -4
  39. package/dist/admin/apps/verified-tokens.d.ts +24 -24
  40. package/dist/admin/apps/zone-delegation-requests.d.ts +332 -0
  41. package/dist/admin/apps/zone-delegation-requests.d.ts.map +1 -0
  42. package/dist/admin/apps/zone-delegation-requests.js +200 -0
  43. package/dist/admin/apps/zone-delegation-requests.js.map +1 -0
  44. package/dist/admin/apps/zone-delegations.d.ts +512 -52
  45. package/dist/admin/apps/zone-delegations.d.ts.map +1 -1
  46. package/dist/admin/apps/zone-delegations.js +134 -44
  47. package/dist/admin/apps/zone-delegations.js.map +1 -1
  48. package/dist/admin/index.d.ts +1 -1
  49. package/dist/admin/index.d.ts.map +1 -1
  50. package/dist/admin/index.js +1 -1
  51. package/dist/admin/index.js.map +1 -1
  52. package/dist/admin/ui.generated.d.ts +1 -1
  53. package/dist/admin/ui.generated.d.ts.map +1 -1
  54. package/dist/admin/ui.generated.js +341 -397
  55. package/dist/admin/ui.generated.js.map +1 -1
  56. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  57. package/dist/analytics/tables/requestEvents.js +4 -2
  58. package/dist/analytics/tables/requestEvents.js.map +1 -1
  59. package/dist/apps/data/App.d.ts +11932 -13214
  60. package/dist/apps/data/App.d.ts.map +1 -1
  61. package/dist/apps/data/App.js +32 -13
  62. package/dist/apps/data/App.js.map +1 -1
  63. package/dist/apps/data/ZoneSelection.d.ts +1 -1
  64. package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
  65. package/dist/apps/data/ZoneSelection.js +2 -2
  66. package/dist/apps/data/ZoneSelection.js.map +1 -1
  67. package/dist/apps/data/routes/activities.d.ts +60 -27
  68. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  69. package/dist/apps/data/routes/activities.js +91 -16
  70. package/dist/apps/data/routes/activities.js.map +1 -1
  71. package/dist/apps/data/routes/addresses.d.ts +893 -875
  72. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  73. package/dist/apps/data/routes/balances.d.ts +36 -36
  74. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  75. package/dist/apps/data/routes/balances.js +3 -1
  76. package/dist/apps/data/routes/balances.js.map +1 -1
  77. package/dist/apps/data/routes/blocks.d.ts +40 -40
  78. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  79. package/dist/apps/data/routes/blocks.js +3 -7
  80. package/dist/apps/data/routes/blocks.js.map +1 -1
  81. package/dist/apps/data/routes/coingecko.d.ts +236 -236
  82. package/dist/apps/data/routes/earn-transactions.d.ts +14 -14
  83. package/dist/apps/data/routes/earn.d.ts +261 -1445
  84. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  85. package/dist/apps/data/routes/earn.js +64 -490
  86. package/dist/apps/data/routes/earn.js.map +1 -1
  87. package/dist/apps/data/routes/exchanges.d.ts +144 -144
  88. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  89. package/dist/apps/data/routes/exchanges.js +5 -15
  90. package/dist/apps/data/routes/exchanges.js.map +1 -1
  91. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  92. package/dist/apps/data/routes/fee-amm.js +3 -9
  93. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  94. package/dist/apps/data/routes/indexer.d.ts +13 -13
  95. package/dist/apps/data/routes/receipts.d.ts +53 -53
  96. package/dist/apps/data/routes/receipts.js +1 -1
  97. package/dist/apps/data/routes/receipts.js.map +1 -1
  98. package/dist/apps/data/routes/rpc.d.ts +52 -0
  99. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  100. package/dist/apps/data/routes/rpc.js +19 -18
  101. package/dist/apps/data/routes/rpc.js.map +1 -1
  102. package/dist/apps/data/routes/tokenlist.d.ts +14 -14
  103. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  104. package/dist/apps/data/routes/tokenlist.js +1 -3
  105. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  106. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  107. package/dist/apps/data/routes/tokens.js +7 -5
  108. package/dist/apps/data/routes/tokens.js.map +1 -1
  109. package/dist/apps/data/routes/transactions.d.ts +281 -281
  110. package/dist/apps/data/routes/transactions.js +3 -3
  111. package/dist/apps/data/routes/transactions.js.map +1 -1
  112. package/dist/apps/data/routes/transfers.d.ts +12 -12
  113. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  114. package/dist/apps/data/routes/transfers.js +1 -3
  115. package/dist/apps/data/routes/transfers.js.map +1 -1
  116. package/dist/apps/data/routes/valuation.d.ts +30 -30
  117. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  118. package/dist/apps/data/routes/valuation.js +1 -3
  119. package/dist/apps/data/routes/valuation.js.map +1 -1
  120. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  121. package/dist/apps/data/routes/webhooks.d.ts +102 -102
  122. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  123. package/dist/apps/data/routes/webhooks.js +9 -23
  124. package/dist/apps/data/routes/webhooks.js.map +1 -1
  125. package/dist/apps/data/routes/zone-deposits.d.ts +16 -16
  126. package/dist/apps/data/routes/zone-withdrawals.d.ts +31 -31
  127. package/dist/apps/data/routes/zones.d.ts +28 -28
  128. package/dist/apps/management/App.d.ts +18 -102
  129. package/dist/apps/management/App.d.ts.map +1 -1
  130. package/dist/apps/management/App.js +1 -1
  131. package/dist/apps/management/App.js.map +1 -1
  132. package/dist/apps/management/routes/api-keys.d.ts +253 -339
  133. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  134. package/dist/apps/management/routes/api-keys.js +25 -11
  135. package/dist/apps/management/routes/api-keys.js.map +1 -1
  136. package/dist/apps/management/routes/billing.d.ts +92 -92
  137. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  138. package/dist/apps/management/routes/billing.js +5 -13
  139. package/dist/apps/management/routes/billing.js.map +1 -1
  140. package/dist/apps/management/routes/cli.d.ts.map +1 -1
  141. package/dist/apps/management/routes/cli.js +3 -9
  142. package/dist/apps/management/routes/cli.js.map +1 -1
  143. package/dist/apps/management/routes/faucet.d.ts +16 -16
  144. package/dist/apps/management/routes/fee-payer-usage.d.ts +38 -38
  145. package/dist/apps/management/routes/fee-payer-usage.d.ts.map +1 -1
  146. package/dist/apps/management/routes/fee-payer-usage.js +2 -4
  147. package/dist/apps/management/routes/fee-payer-usage.js.map +1 -1
  148. package/dist/apps/management/routes/invitations.d.ts +52 -52
  149. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  150. package/dist/apps/management/routes/invitations.js +4 -12
  151. package/dist/apps/management/routes/invitations.js.map +1 -1
  152. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  153. package/dist/apps/management/routes/invite-links.js +6 -14
  154. package/dist/apps/management/routes/invite-links.js.map +1 -1
  155. package/dist/apps/management/routes/me.d.ts +6 -6
  156. package/dist/apps/management/routes/me.d.ts.map +1 -1
  157. package/dist/apps/management/routes/me.js +3 -7
  158. package/dist/apps/management/routes/me.js.map +1 -1
  159. package/dist/apps/management/routes/members.d.ts +84 -84
  160. package/dist/apps/management/routes/members.d.ts.map +1 -1
  161. package/dist/apps/management/routes/members.js +2 -4
  162. package/dist/apps/management/routes/members.js.map +1 -1
  163. package/dist/apps/management/routes/orgs.d.ts +44 -44
  164. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  165. package/dist/apps/management/routes/orgs.js +2 -6
  166. package/dist/apps/management/routes/orgs.js.map +1 -1
  167. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  168. package/dist/apps/management/routes/projects.js +2 -6
  169. package/dist/apps/management/routes/projects.js.map +1 -1
  170. package/dist/apps/management/routes/route-usage.d.ts +34 -34
  171. package/dist/apps/management/routes/route-usage.d.ts.map +1 -1
  172. package/dist/apps/management/routes/route-usage.js +2 -4
  173. package/dist/apps/management/routes/route-usage.js.map +1 -1
  174. package/dist/apps/management/routes/routes-access-requests.d.ts +120 -91
  175. package/dist/apps/management/routes/routes-access-requests.d.ts.map +1 -1
  176. package/dist/apps/management/routes/routes-access-requests.js +49 -9
  177. package/dist/apps/management/routes/routes-access-requests.js.map +1 -1
  178. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  179. package/dist/apps/management/routes/usage.js +8 -16
  180. package/dist/apps/management/routes/usage.js.map +1 -1
  181. package/dist/apps/management/routes/verified-token-requests.d.ts +39 -39
  182. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
  183. package/dist/apps/management/routes/verified-token-requests.js +3 -7
  184. package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
  185. package/dist/apps/management/routes/webhooks.d.ts +2089 -2089
  186. package/dist/apps/management/routes/zone-delegations.d.ts +14 -17
  187. package/dist/apps/management/routes/zone-delegations.d.ts.map +1 -1
  188. package/dist/apps/management/routes/zone-delegations.js +1 -6
  189. package/dist/apps/management/routes/zone-delegations.js.map +1 -1
  190. package/dist/apps/mpp/App.d.ts +44 -44
  191. package/dist/apps/mpp/App.js +3 -3
  192. package/dist/apps/mpp/App.js.map +1 -1
  193. package/dist/apps/mpp/internal/Adapter.js +1 -1
  194. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  195. package/dist/apps/mpp/internal/Error.d.ts.map +1 -1
  196. package/dist/apps/mpp/internal/Error.js +1 -0
  197. package/dist/apps/mpp/internal/Error.js.map +1 -1
  198. package/dist/apps/mpp/internal/Policy.d.ts +5 -1
  199. package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
  200. package/dist/apps/mpp/internal/Policy.js +35 -13
  201. package/dist/apps/mpp/internal/Policy.js.map +1 -1
  202. package/dist/apps/relay/App.d.ts +2 -2
  203. package/dist/apps/relay/App.d.ts.map +1 -1
  204. package/dist/apps/relay/App.js +25 -16
  205. package/dist/apps/relay/App.js.map +1 -1
  206. package/dist/apps/routes/App.d.ts +311 -311
  207. package/dist/apps/routes/routes/deposit-addresses.d.ts +1099 -1099
  208. package/dist/apps/routes/routes/list.d.ts +74 -74
  209. package/dist/apps/routes/routes/transfers.d.ts +94 -94
  210. package/dist/cli/ApiKeys.d.ts +19 -26
  211. package/dist/cli/ApiKeys.d.ts.map +1 -1
  212. package/dist/db/Db.d.ts +3 -3
  213. package/dist/db/Db.d.ts.map +1 -1
  214. package/dist/db/Db.js +27 -0
  215. package/dist/db/Db.js.map +1 -1
  216. package/dist/db/Schema.d.ts +28 -62
  217. package/dist/db/Schema.d.ts.map +1 -1
  218. package/dist/db/Schema.js +18 -18
  219. package/dist/db/Schema.js.map +1 -1
  220. package/dist/db/tables/rewardRuns.d.ts +21 -0
  221. package/dist/db/tables/rewardRuns.d.ts.map +1 -1
  222. package/dist/db/tables/rewardRuns.js +19 -0
  223. package/dist/db/tables/rewardRuns.js.map +1 -1
  224. package/dist/db/tables/routesAccessRequests.d.ts +13 -0
  225. package/dist/db/tables/routesAccessRequests.d.ts.map +1 -1
  226. package/dist/db/tables/routesAccessRequests.js +12 -0
  227. package/dist/db/tables/routesAccessRequests.js.map +1 -1
  228. package/dist/db/tables/zoneDelegationRequests.d.ts +165 -0
  229. package/dist/db/tables/zoneDelegationRequests.d.ts.map +1 -0
  230. package/dist/db/tables/{zoneKeyRequests.js → zoneDelegationRequests.js} +43 -42
  231. package/dist/db/tables/zoneDelegationRequests.js.map +1 -0
  232. package/dist/db/tables/zoneDelegations.d.ts +11 -5
  233. package/dist/db/tables/zoneDelegations.d.ts.map +1 -1
  234. package/dist/db/tables/zoneDelegations.js +21 -3
  235. package/dist/db/tables/zoneDelegations.js.map +1 -1
  236. package/dist/handlers/internal/accounts.d.ts +7 -0
  237. package/dist/handlers/internal/accounts.d.ts.map +1 -0
  238. package/dist/handlers/internal/{multisig.js → accounts.js} +10 -10
  239. package/dist/handlers/internal/{multisig.js.map → accounts.js.map} +1 -1
  240. package/dist/handlers/internal/sponsorship.js +17 -17
  241. package/dist/handlers/internal/sponsorship.js.map +1 -1
  242. package/dist/handlers/relay.d.ts +6 -6
  243. package/dist/handlers/relay.d.ts.map +1 -1
  244. package/dist/handlers/relay.js +15 -15
  245. package/dist/handlers/relay.js.map +1 -1
  246. package/dist/internal/Auth.d.ts.map +1 -1
  247. package/dist/internal/Auth.js +4 -8
  248. package/dist/internal/Auth.js.map +1 -1
  249. package/dist/internal/EarnRates.d.ts.map +1 -1
  250. package/dist/internal/EarnRates.js +1 -3
  251. package/dist/internal/EarnRates.js.map +1 -1
  252. package/dist/internal/EarnVaults.js +2 -2
  253. package/dist/internal/Log.d.ts +2 -4
  254. package/dist/internal/Log.d.ts.map +1 -1
  255. package/dist/internal/Log.js +0 -3
  256. package/dist/internal/Log.js.map +1 -1
  257. package/dist/internal/Response.d.ts +1 -1
  258. package/dist/internal/Response.d.ts.map +1 -1
  259. package/dist/internal/Response.js +0 -3
  260. package/dist/internal/Response.js.map +1 -1
  261. package/dist/internal/Schema.d.ts +11 -0
  262. package/dist/internal/Schema.d.ts.map +1 -1
  263. package/dist/internal/Schema.js +24 -1
  264. package/dist/internal/Schema.js.map +1 -1
  265. package/dist/internal/ZoneAccess.d.ts +70 -35
  266. package/dist/internal/ZoneAccess.d.ts.map +1 -1
  267. package/dist/internal/ZoneAccess.js +312 -131
  268. package/dist/internal/ZoneAccess.js.map +1 -1
  269. package/dist/internal/ZoneDelegation.d.ts +7 -19
  270. package/dist/internal/ZoneDelegation.d.ts.map +1 -1
  271. package/dist/internal/ZoneDelegation.js +8 -29
  272. package/dist/internal/ZoneDelegation.js.map +1 -1
  273. package/dist/internal/{ZoneKeyApproval.d.ts → ZoneDelegationApproval.d.ts} +3 -5
  274. package/dist/internal/ZoneDelegationApproval.d.ts.map +1 -0
  275. package/dist/internal/ZoneDelegationApproval.js +16 -0
  276. package/dist/internal/ZoneDelegationApproval.js.map +1 -0
  277. package/dist/internal/ZoneKeyRewrite.d.ts +98 -0
  278. package/dist/internal/ZoneKeyRewrite.d.ts.map +1 -0
  279. package/dist/internal/ZoneKeyRewrite.js +151 -0
  280. package/dist/internal/ZoneKeyRewrite.js.map +1 -0
  281. package/dist/internal/rewards/Campaigns.d.ts +2 -0
  282. package/dist/internal/rewards/Campaigns.d.ts.map +1 -1
  283. package/dist/internal/rewards/Campaigns.js.map +1 -1
  284. package/dist/internal/rewards/Distributions.d.ts.map +1 -1
  285. package/dist/internal/rewards/Distributions.js +2 -6
  286. package/dist/internal/rewards/Distributions.js.map +1 -1
  287. package/dist/internal/rewards/Monitor.d.ts +4 -1
  288. package/dist/internal/rewards/Monitor.d.ts.map +1 -1
  289. package/dist/internal/rewards/Monitor.js +19 -2
  290. package/dist/internal/rewards/Monitor.js.map +1 -1
  291. package/dist/internal/rewards/Runner.d.ts.map +1 -1
  292. package/dist/internal/rewards/Runner.js +9 -1
  293. package/dist/internal/rewards/Runner.js.map +1 -1
  294. package/dist/internal/routes/Action.d.ts.map +1 -1
  295. package/dist/internal/routes/Action.js +2 -3
  296. package/dist/internal/routes/Action.js.map +1 -1
  297. package/dist/internal/routes/Deposit.d.ts.map +1 -1
  298. package/dist/internal/routes/Deposit.js +2 -6
  299. package/dist/internal/routes/Deposit.js.map +1 -1
  300. package/dist/internal/routes/DepositAddress.d.ts.map +1 -1
  301. package/dist/internal/routes/DepositAddress.js +4 -10
  302. package/dist/internal/routes/DepositAddress.js.map +1 -1
  303. package/dist/internal/routes/Policy.d.ts.map +1 -1
  304. package/dist/internal/routes/Policy.js +2 -1
  305. package/dist/internal/routes/Policy.js.map +1 -1
  306. package/dist/internal/routes/Provider.js +8 -8
  307. package/dist/internal/routes/Provider.js.map +1 -1
  308. package/dist/internal/routes/Reconciliation.d.ts.map +1 -1
  309. package/dist/internal/routes/Reconciliation.js +3 -2
  310. package/dist/internal/routes/Reconciliation.js.map +1 -1
  311. package/dist/internal/routes/Transfer.d.ts.map +1 -1
  312. package/dist/internal/routes/Transfer.js +4 -12
  313. package/dist/internal/routes/Transfer.js.map +1 -1
  314. package/dist/internal/routes/UniversalDepositAddress.d.ts.map +1 -1
  315. package/dist/internal/routes/UniversalDepositAddress.js +3 -6
  316. package/dist/internal/routes/UniversalDepositAddress.js.map +1 -1
  317. package/dist/internal/routes/providers/SquidOrder.d.ts.map +1 -1
  318. package/dist/internal/routes/providers/SquidOrder.js +3 -2
  319. package/dist/internal/routes/providers/SquidOrder.js.map +1 -1
  320. package/dist/internal/routes/providers/relay.d.ts.map +1 -1
  321. package/dist/internal/routes/providers/relay.js +4 -3
  322. package/dist/internal/routes/providers/relay.js.map +1 -1
  323. package/package.json +20 -5
  324. package/src/ApiKey.ts +2 -2
  325. package/src/ApiKeys.test.ts +284 -51
  326. package/src/ApiKeys.ts +297 -64
  327. package/src/App.ts +4 -5
  328. package/src/Client.test-d.ts +33 -126
  329. package/src/Scope.test.ts +26 -45
  330. package/src/Scope.ts +24 -37
  331. package/src/admin/App.test.ts +51 -4
  332. package/src/admin/App.ts +25 -33
  333. package/src/admin/Mcp.test.ts +2 -1
  334. package/src/admin/apps/api-keys.test.ts +90 -20
  335. package/src/admin/apps/api-keys.ts +5 -8
  336. package/src/admin/apps/audit-logs.ts +1 -1
  337. package/src/admin/apps/earn-vaults.test.ts +19 -19
  338. package/src/admin/apps/earn-vaults.ts +11 -5
  339. package/src/admin/apps/routes-support.test.ts +254 -3
  340. package/src/admin/apps/routes-support.ts +1 -44
  341. package/src/admin/apps/scopes.test.ts +3 -3
  342. package/src/admin/apps/zone-delegation-requests.test.ts +246 -0
  343. package/src/admin/apps/zone-delegation-requests.ts +240 -0
  344. package/src/admin/apps/zone-delegations.test.ts +218 -58
  345. package/src/admin/apps/zone-delegations.ts +146 -46
  346. package/src/admin/index.ts +1 -1
  347. package/src/admin/ui/src/components/ApiKeyForm.tsx +4 -3
  348. package/src/admin/ui/src/lib/config.ts +3 -3
  349. package/src/admin/ui/src/lib/query-client.ts +1 -1
  350. package/src/admin/ui/src/lib/review-queues.ts +10 -10
  351. package/src/admin/ui/src/lib/routes-setup.test.ts +1 -2
  352. package/src/admin/ui/src/lib/routes-setup.ts +3 -5
  353. package/src/admin/ui/src/lib/scopes.test.ts +3 -6
  354. package/src/admin/ui/src/lib/scopes.ts +2 -9
  355. package/src/admin/ui/src/lib/{zone-key-requests.ts → zone-delegation-requests.ts} +27 -31
  356. package/src/admin/ui/src/routeTree.gen.ts +17 -17
  357. package/src/admin/ui/src/routes/__root.tsx +1 -1
  358. package/src/admin/ui/src/routes/api-keys.tsx +2 -15
  359. package/src/admin/ui/src/routes/audit-logs.tsx +2 -2
  360. package/src/admin/ui/src/routes/index.tsx +11 -11
  361. package/src/admin/ui/src/routes/organizations.tsx +3 -1
  362. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +3 -1
  363. package/src/admin/ui/src/routes/organizations_.$orgId_.setup.tsx +1 -3
  364. package/src/admin/ui/src/routes/{zone-key-requests.tsx → zone-delegation-requests.tsx} +228 -172
  365. package/src/admin/ui/vite.config.ts +14 -1
  366. package/src/admin/ui.generated.ts +412 -583
  367. package/src/analytics/tables/requestEvents.test.ts +13 -3
  368. package/src/analytics/tables/requestEvents.ts +4 -3
  369. package/src/apps/data/App.test.ts +72 -35
  370. package/src/apps/data/App.ts +29 -13
  371. package/src/apps/data/ZoneSelection.test.ts +53 -70
  372. package/src/apps/data/ZoneSelection.ts +2 -2
  373. package/src/apps/data/routes/activities.test.ts +140 -6
  374. package/src/apps/data/routes/activities.ts +124 -18
  375. package/src/apps/data/routes/balances.ts +5 -1
  376. package/src/apps/data/routes/blocks.ts +9 -13
  377. package/src/apps/data/routes/earn-transactions.local.test.ts +6 -1
  378. package/src/apps/data/routes/earn-transactions.test.ts +7 -3
  379. package/src/apps/data/routes/earn.bench.ts +0 -14
  380. package/src/apps/data/routes/earn.discovery.test.ts +4 -39
  381. package/src/apps/data/routes/earn.local.test.ts +27 -34
  382. package/src/apps/data/routes/earn.test.ts +172 -490
  383. package/src/apps/data/routes/earn.ts +103 -652
  384. package/src/apps/data/routes/exchanges.ts +20 -30
  385. package/src/apps/data/routes/fee-amm.ts +12 -18
  386. package/src/apps/data/routes/indexer.test.ts +14 -12
  387. package/src/apps/data/routes/receipts.ts +1 -1
  388. package/src/apps/data/routes/rpc.test.ts +23 -18
  389. package/src/apps/data/routes/rpc.ts +21 -21
  390. package/src/apps/data/routes/rpc.zone.test.ts +60 -6
  391. package/src/apps/data/routes/tokenlist.ts +4 -6
  392. package/src/apps/data/routes/tokens.test.ts +20 -0
  393. package/src/apps/data/routes/tokens.ts +10 -5
  394. package/src/apps/data/routes/transactions.ts +3 -3
  395. package/src/apps/data/routes/transfers.ts +4 -6
  396. package/src/apps/data/routes/valuation.test.ts +2 -4
  397. package/src/apps/data/routes/valuation.ts +4 -6
  398. package/src/apps/data/routes/webhooks.test.ts +1 -5
  399. package/src/apps/data/routes/webhooks.ts +30 -44
  400. package/src/apps/data/routes/zones.test.ts +35 -19
  401. package/src/apps/management/App.ts +3 -1
  402. package/src/apps/management/routes/api-keys.test.ts +112 -22
  403. package/src/apps/management/routes/api-keys.ts +30 -15
  404. package/src/apps/management/routes/billing.ts +17 -25
  405. package/src/apps/management/routes/cli.ts +12 -18
  406. package/src/apps/management/routes/fee-payer-usage.ts +5 -4
  407. package/src/apps/management/routes/invitations.ts +16 -21
  408. package/src/apps/management/routes/invite-links.ts +18 -26
  409. package/src/apps/management/routes/me.ts +9 -13
  410. package/src/apps/management/routes/members.ts +5 -7
  411. package/src/apps/management/routes/orgs.ts +8 -12
  412. package/src/apps/management/routes/projects.ts +8 -12
  413. package/src/apps/management/routes/route-usage.ts +5 -4
  414. package/src/apps/management/routes/routes-access-requests.test.ts +64 -2
  415. package/src/apps/management/routes/routes-access-requests.ts +99 -15
  416. package/src/apps/management/routes/scopes.test.ts +3 -3
  417. package/src/apps/management/routes/usage.ts +20 -28
  418. package/src/apps/management/routes/verified-token-requests.ts +9 -13
  419. package/src/apps/management/routes/zone-delegations.test.ts +3 -5
  420. package/src/apps/management/routes/zone-delegations.ts +4 -9
  421. package/src/apps/mpp/App.ts +3 -3
  422. package/src/apps/mpp/Mpp.zone.test.ts +49 -18
  423. package/src/apps/mpp/internal/Adapter.ts +1 -1
  424. package/src/apps/mpp/internal/Error.test.ts +3 -0
  425. package/src/apps/mpp/internal/Error.ts +1 -0
  426. package/src/apps/mpp/internal/Policy.test.ts +9 -8
  427. package/src/apps/mpp/internal/Policy.ts +37 -14
  428. package/src/apps/relay/App.sandbox.test.ts +15 -14
  429. package/src/apps/relay/App.test.ts +120 -61
  430. package/src/apps/relay/App.ts +28 -18
  431. package/src/apps/relay/App.zone-billing.test.ts +9 -4
  432. package/src/apps/routes/App.test.ts +21 -22
  433. package/src/db/Db.ts +34 -3
  434. package/src/db/Schema.ts +26 -26
  435. package/src/db/tables/rewardRuns.ts +39 -0
  436. package/src/db/tables/routesAccessRequests.test.ts +65 -0
  437. package/src/db/tables/routesAccessRequests.ts +25 -0
  438. package/src/db/tables/{zoneKeyRequests.test.ts → zoneDelegationRequests.test.ts} +36 -77
  439. package/src/db/tables/{zoneKeyRequests.ts → zoneDelegationRequests.ts} +69 -52
  440. package/src/db/tables/zoneDelegations.test.ts +5 -6
  441. package/src/db/tables/zoneDelegations.ts +25 -8
  442. package/src/handlers/internal/{multisig.store.test.ts → accounts.store.test.ts} +16 -16
  443. package/src/handlers/internal/{multisig.test.ts → accounts.test.ts} +85 -82
  444. package/src/handlers/internal/{multisig.ts → accounts.ts} +9 -9
  445. package/src/handlers/internal/sponsorship.ts +20 -20
  446. package/src/handlers/relay.test.ts +48 -46
  447. package/src/handlers/relay.ts +26 -26
  448. package/src/internal/Auth.test.ts +6 -2
  449. package/src/internal/Auth.ts +4 -10
  450. package/src/internal/EarnRates.ts +4 -6
  451. package/src/internal/EarnVaults.ts +2 -2
  452. package/src/internal/Log.test-d.ts +1 -0
  453. package/src/internal/Log.test.ts +4 -6
  454. package/src/internal/Log.ts +2 -6
  455. package/src/internal/Response.ts +0 -3
  456. package/src/internal/Schema.test.ts +42 -0
  457. package/src/internal/Schema.ts +36 -1
  458. package/src/internal/ZoneAccess.test.ts +515 -312
  459. package/src/internal/ZoneAccess.ts +410 -158
  460. package/src/internal/ZoneDelegation.test.ts +1 -41
  461. package/src/internal/ZoneDelegation.ts +10 -48
  462. package/src/internal/ZoneDelegationApproval.test.ts +22 -0
  463. package/src/internal/{ZoneKeyApproval.ts → ZoneDelegationApproval.ts} +4 -11
  464. package/src/internal/ZoneKeyRewrite.ts +231 -0
  465. package/src/internal/rewards/Campaigns.ts +2 -0
  466. package/src/internal/rewards/Distributions.ts +8 -12
  467. package/src/internal/rewards/Monitor.test.ts +64 -0
  468. package/src/internal/rewards/Monitor.ts +27 -4
  469. package/src/internal/rewards/Runner.ts +9 -1
  470. package/src/internal/routes/Action.ts +5 -6
  471. package/src/internal/routes/Deposit.ts +8 -12
  472. package/src/internal/routes/DepositAddress.ts +13 -19
  473. package/src/internal/routes/Policy.ts +2 -1
  474. package/src/internal/routes/Provider.ts +8 -8
  475. package/src/internal/routes/Reconciliation.ts +3 -2
  476. package/src/internal/routes/Transfer.ts +16 -24
  477. package/src/internal/routes/UniversalDepositAddress.ts +9 -12
  478. package/src/internal/routes/providers/SquidOrder.ts +3 -2
  479. package/src/internal/routes/providers/relay.ts +4 -3
  480. package/dist/admin/apps/zone-key-requests.d.ts +0 -406
  481. package/dist/admin/apps/zone-key-requests.d.ts.map +0 -1
  482. package/dist/admin/apps/zone-key-requests.js +0 -183
  483. package/dist/admin/apps/zone-key-requests.js.map +0 -1
  484. package/dist/db/tables/zoneKeyRequests.d.ts +0 -289
  485. package/dist/db/tables/zoneKeyRequests.d.ts.map +0 -1
  486. package/dist/db/tables/zoneKeyRequests.js.map +0 -1
  487. package/dist/handlers/internal/multisig.d.ts +0 -7
  488. package/dist/handlers/internal/multisig.d.ts.map +0 -1
  489. package/dist/internal/ZoneKeyApproval.d.ts.map +0 -1
  490. package/dist/internal/ZoneKeyApproval.js +0 -21
  491. package/dist/internal/ZoneKeyApproval.js.map +0 -1
  492. package/src/admin/apps/zone-key-requests.test.ts +0 -272
  493. package/src/admin/apps/zone-key-requests.ts +0 -231
  494. package/src/internal/ZoneKeyApproval.test.ts +0 -46
@@ -2691,14 +2691,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
2691
2691
  $post: {
2692
2692
  output: {
2693
2693
  error: {
2694
- code: "body_invalid";
2694
+ code: "payload_too_large";
2695
2695
  details?: readonly Response.error.Detail[] | undefined;
2696
2696
  message: string;
2697
2697
  };
2698
2698
  requestId: string;
2699
2699
  };
2700
2700
  outputFormat: "json";
2701
- status: 400;
2701
+ status: 413;
2702
2702
  input: {
2703
2703
  json: {
2704
2704
  chainId?: unknown;
@@ -3076,14 +3076,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3076
3076
  } | {
3077
3077
  output: {
3078
3078
  error: {
3079
- code: "upstream_error";
3079
+ code: "api_key_malformed";
3080
3080
  details?: readonly Response.error.Detail[] | undefined;
3081
3081
  message: string;
3082
3082
  };
3083
3083
  requestId: string;
3084
3084
  };
3085
3085
  outputFormat: "json";
3086
- status: 502;
3086
+ status: 400;
3087
3087
  input: {
3088
3088
  json: {
3089
3089
  chainId?: unknown;
@@ -3461,14 +3461,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3461
3461
  } | {
3462
3462
  output: {
3463
3463
  error: {
3464
- code: "chain_id_unsupported";
3464
+ code: "api_key_invalid" | "api_key_missing";
3465
3465
  details?: readonly Response.error.Detail[] | undefined;
3466
3466
  message: string;
3467
3467
  };
3468
3468
  requestId: string;
3469
3469
  };
3470
3470
  outputFormat: "json";
3471
- status: 400;
3471
+ status: 401;
3472
3472
  input: {
3473
3473
  json: {
3474
3474
  chainId?: unknown;
@@ -3846,14 +3846,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
3846
3846
  } | {
3847
3847
  output: {
3848
3848
  error: {
3849
- code: "payload_too_large";
3849
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
3850
3850
  details?: readonly Response.error.Detail[] | undefined;
3851
3851
  message: string;
3852
3852
  };
3853
3853
  requestId: string;
3854
3854
  };
3855
3855
  outputFormat: "json";
3856
- status: 413;
3856
+ status: 403;
3857
3857
  input: {
3858
3858
  json: {
3859
3859
  chainId?: unknown;
@@ -4231,14 +4231,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4231
4231
  } | {
4232
4232
  output: {
4233
4233
  error: {
4234
- code: "api_key_malformed";
4234
+ code: "payment_required" | "rate_limit_exceeded";
4235
4235
  details?: readonly Response.error.Detail[] | undefined;
4236
4236
  message: string;
4237
4237
  };
4238
4238
  requestId: string;
4239
4239
  };
4240
4240
  outputFormat: "json";
4241
- status: 400;
4241
+ status: 429;
4242
4242
  input: {
4243
4243
  json: {
4244
4244
  chainId?: unknown;
@@ -4616,14 +4616,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
4616
4616
  } | {
4617
4617
  output: {
4618
4618
  error: {
4619
- code: "api_key_invalid" | "api_key_missing";
4619
+ code: "upstream_error";
4620
4620
  details?: readonly Response.error.Detail[] | undefined;
4621
4621
  message: string;
4622
4622
  };
4623
4623
  requestId: string;
4624
4624
  };
4625
4625
  outputFormat: "json";
4626
- status: 401;
4626
+ status: 502;
4627
4627
  input: {
4628
4628
  json: {
4629
4629
  chainId?: unknown;
@@ -5001,14 +5001,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5001
5001
  } | {
5002
5002
  output: {
5003
5003
  error: {
5004
- code: "api_key_forbidden" | "api_key_ip_forbidden";
5004
+ code: "webhooks_not_enabled";
5005
5005
  details?: readonly Response.error.Detail[] | undefined;
5006
5006
  message: string;
5007
5007
  };
5008
5008
  requestId: string;
5009
5009
  };
5010
5010
  outputFormat: "json";
5011
- status: 403;
5011
+ status: 404;
5012
5012
  input: {
5013
5013
  json: {
5014
5014
  chainId?: unknown;
@@ -5386,14 +5386,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5386
5386
  } | {
5387
5387
  output: {
5388
5388
  error: {
5389
- code: "payment_required" | "rate_limit_exceeded";
5389
+ code: "body_invalid";
5390
5390
  details?: readonly Response.error.Detail[] | undefined;
5391
5391
  message: string;
5392
5392
  };
5393
5393
  requestId: string;
5394
5394
  };
5395
5395
  outputFormat: "json";
5396
- status: 429;
5396
+ status: 400;
5397
5397
  input: {
5398
5398
  json: {
5399
5399
  chainId?: unknown;
@@ -5771,14 +5771,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
5771
5771
  } | {
5772
5772
  output: {
5773
5773
  error: {
5774
- code: "webhooks_not_enabled";
5774
+ code: "unauthorized";
5775
5775
  details?: readonly Response.error.Detail[] | undefined;
5776
5776
  message: string;
5777
5777
  };
5778
5778
  requestId: string;
5779
5779
  };
5780
5780
  outputFormat: "json";
5781
- status: 404;
5781
+ status: 401;
5782
5782
  input: {
5783
5783
  json: {
5784
5784
  chainId?: unknown;
@@ -6156,14 +6156,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6156
6156
  } | {
6157
6157
  output: {
6158
6158
  error: {
6159
- code: "unauthorized";
6159
+ code: "event_type_unsupported";
6160
6160
  details?: readonly Response.error.Detail[] | undefined;
6161
6161
  message: string;
6162
6162
  };
6163
6163
  requestId: string;
6164
6164
  };
6165
6165
  outputFormat: "json";
6166
- status: 401;
6166
+ status: 400;
6167
6167
  input: {
6168
6168
  json: {
6169
6169
  chainId?: unknown;
@@ -6541,7 +6541,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6541
6541
  } | {
6542
6542
  output: {
6543
6543
  error: {
6544
- code: "event_type_unsupported";
6544
+ code: "chain_id_invalid";
6545
6545
  details?: readonly Response.error.Detail[] | undefined;
6546
6546
  message: string;
6547
6547
  };
@@ -6926,7 +6926,7 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
6926
6926
  } | {
6927
6927
  output: {
6928
6928
  error: {
6929
- code: "chain_id_invalid";
6929
+ code: "chain_id_unsupported";
6930
6930
  details?: readonly Response.error.Detail[] | undefined;
6931
6931
  message: string;
6932
6932
  };
@@ -9266,14 +9266,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9266
9266
  $get: {
9267
9267
  output: {
9268
9268
  error: {
9269
- code: "upstream_error";
9269
+ code: "api_key_malformed";
9270
9270
  details?: readonly Response.error.Detail[] | undefined;
9271
9271
  message: string;
9272
9272
  };
9273
9273
  requestId: string;
9274
9274
  };
9275
9275
  outputFormat: "json";
9276
- status: 502;
9276
+ status: 400;
9277
9277
  input: {
9278
9278
  query?: {
9279
9279
  cursor?: string | string[];
@@ -9285,14 +9285,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9285
9285
  } | {
9286
9286
  output: {
9287
9287
  error: {
9288
- code: "query_invalid";
9288
+ code: "api_key_invalid" | "api_key_missing";
9289
9289
  details?: readonly Response.error.Detail[] | undefined;
9290
9290
  message: string;
9291
9291
  };
9292
9292
  requestId: string;
9293
9293
  };
9294
9294
  outputFormat: "json";
9295
- status: 400;
9295
+ status: 401;
9296
9296
  input: {
9297
9297
  query?: {
9298
9298
  cursor?: string | string[];
@@ -9304,14 +9304,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9304
9304
  } | {
9305
9305
  output: {
9306
9306
  error: {
9307
- code: "api_key_malformed";
9307
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
9308
9308
  details?: readonly Response.error.Detail[] | undefined;
9309
9309
  message: string;
9310
9310
  };
9311
9311
  requestId: string;
9312
9312
  };
9313
9313
  outputFormat: "json";
9314
- status: 400;
9314
+ status: 403;
9315
9315
  input: {
9316
9316
  query?: {
9317
9317
  cursor?: string | string[];
@@ -9323,14 +9323,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9323
9323
  } | {
9324
9324
  output: {
9325
9325
  error: {
9326
- code: "api_key_invalid" | "api_key_missing";
9326
+ code: "payment_required" | "rate_limit_exceeded";
9327
9327
  details?: readonly Response.error.Detail[] | undefined;
9328
9328
  message: string;
9329
9329
  };
9330
9330
  requestId: string;
9331
9331
  };
9332
9332
  outputFormat: "json";
9333
- status: 401;
9333
+ status: 429;
9334
9334
  input: {
9335
9335
  query?: {
9336
9336
  cursor?: string | string[];
@@ -9342,14 +9342,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9342
9342
  } | {
9343
9343
  output: {
9344
9344
  error: {
9345
- code: "api_key_forbidden" | "api_key_ip_forbidden";
9345
+ code: "query_invalid";
9346
9346
  details?: readonly Response.error.Detail[] | undefined;
9347
9347
  message: string;
9348
9348
  };
9349
9349
  requestId: string;
9350
9350
  };
9351
9351
  outputFormat: "json";
9352
- status: 403;
9352
+ status: 400;
9353
9353
  input: {
9354
9354
  query?: {
9355
9355
  cursor?: string | string[];
@@ -9361,14 +9361,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9361
9361
  } | {
9362
9362
  output: {
9363
9363
  error: {
9364
- code: "payment_required" | "rate_limit_exceeded";
9364
+ code: "upstream_error";
9365
9365
  details?: readonly Response.error.Detail[] | undefined;
9366
9366
  message: string;
9367
9367
  };
9368
9368
  requestId: string;
9369
9369
  };
9370
9370
  outputFormat: "json";
9371
- status: 429;
9371
+ status: 502;
9372
9372
  input: {
9373
9373
  query?: {
9374
9374
  cursor?: string | string[];
@@ -9473,14 +9473,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9473
9473
  $get: {
9474
9474
  output: {
9475
9475
  error: {
9476
- code: "upstream_error";
9476
+ code: "api_key_malformed";
9477
9477
  details?: readonly Response.error.Detail[] | undefined;
9478
9478
  message: string;
9479
9479
  };
9480
9480
  requestId: string;
9481
9481
  };
9482
9482
  outputFormat: "json";
9483
- status: 502;
9483
+ status: 400;
9484
9484
  input: {
9485
9485
  param: {
9486
9486
  id: string;
@@ -9489,14 +9489,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9489
9489
  } | {
9490
9490
  output: {
9491
9491
  error: {
9492
- code: "api_key_malformed";
9492
+ code: "api_key_invalid" | "api_key_missing";
9493
9493
  details?: readonly Response.error.Detail[] | undefined;
9494
9494
  message: string;
9495
9495
  };
9496
9496
  requestId: string;
9497
9497
  };
9498
9498
  outputFormat: "json";
9499
- status: 400;
9499
+ status: 401;
9500
9500
  input: {
9501
9501
  param: {
9502
9502
  id: string;
@@ -9505,14 +9505,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9505
9505
  } | {
9506
9506
  output: {
9507
9507
  error: {
9508
- code: "api_key_invalid" | "api_key_missing";
9508
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
9509
9509
  details?: readonly Response.error.Detail[] | undefined;
9510
9510
  message: string;
9511
9511
  };
9512
9512
  requestId: string;
9513
9513
  };
9514
9514
  outputFormat: "json";
9515
- status: 401;
9515
+ status: 403;
9516
9516
  input: {
9517
9517
  param: {
9518
9518
  id: string;
@@ -9521,14 +9521,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9521
9521
  } | {
9522
9522
  output: {
9523
9523
  error: {
9524
- code: "api_key_forbidden" | "api_key_ip_forbidden";
9524
+ code: "payment_required" | "rate_limit_exceeded";
9525
9525
  details?: readonly Response.error.Detail[] | undefined;
9526
9526
  message: string;
9527
9527
  };
9528
9528
  requestId: string;
9529
9529
  };
9530
9530
  outputFormat: "json";
9531
- status: 403;
9531
+ status: 429;
9532
9532
  input: {
9533
9533
  param: {
9534
9534
  id: string;
@@ -9537,14 +9537,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9537
9537
  } | {
9538
9538
  output: {
9539
9539
  error: {
9540
- code: "payment_required" | "rate_limit_exceeded";
9540
+ code: "upstream_error";
9541
9541
  details?: readonly Response.error.Detail[] | undefined;
9542
9542
  message: string;
9543
9543
  };
9544
9544
  requestId: string;
9545
9545
  };
9546
9546
  outputFormat: "json";
9547
- status: 429;
9547
+ status: 502;
9548
9548
  input: {
9549
9549
  param: {
9550
9550
  id: string;
@@ -9662,14 +9662,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9662
9662
  $get: {
9663
9663
  output: {
9664
9664
  error: {
9665
- code: "upstream_error";
9665
+ code: "api_key_malformed";
9666
9666
  details?: readonly Response.error.Detail[] | undefined;
9667
9667
  message: string;
9668
9668
  };
9669
9669
  requestId: string;
9670
9670
  };
9671
9671
  outputFormat: "json";
9672
- status: 502;
9672
+ status: 400;
9673
9673
  input: {
9674
9674
  param: {
9675
9675
  id: string;
@@ -9685,14 +9685,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9685
9685
  } | {
9686
9686
  output: {
9687
9687
  error: {
9688
- code: "query_invalid";
9688
+ code: "api_key_invalid" | "api_key_missing";
9689
9689
  details?: readonly Response.error.Detail[] | undefined;
9690
9690
  message: string;
9691
9691
  };
9692
9692
  requestId: string;
9693
9693
  };
9694
9694
  outputFormat: "json";
9695
- status: 400;
9695
+ status: 401;
9696
9696
  input: {
9697
9697
  param: {
9698
9698
  id: string;
@@ -9708,14 +9708,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9708
9708
  } | {
9709
9709
  output: {
9710
9710
  error: {
9711
- code: "api_key_malformed";
9711
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
9712
9712
  details?: readonly Response.error.Detail[] | undefined;
9713
9713
  message: string;
9714
9714
  };
9715
9715
  requestId: string;
9716
9716
  };
9717
9717
  outputFormat: "json";
9718
- status: 400;
9718
+ status: 403;
9719
9719
  input: {
9720
9720
  param: {
9721
9721
  id: string;
@@ -9731,14 +9731,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9731
9731
  } | {
9732
9732
  output: {
9733
9733
  error: {
9734
- code: "api_key_invalid" | "api_key_missing";
9734
+ code: "payment_required" | "rate_limit_exceeded";
9735
9735
  details?: readonly Response.error.Detail[] | undefined;
9736
9736
  message: string;
9737
9737
  };
9738
9738
  requestId: string;
9739
9739
  };
9740
9740
  outputFormat: "json";
9741
- status: 401;
9741
+ status: 429;
9742
9742
  input: {
9743
9743
  param: {
9744
9744
  id: string;
@@ -9754,14 +9754,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9754
9754
  } | {
9755
9755
  output: {
9756
9756
  error: {
9757
- code: "api_key_forbidden" | "api_key_ip_forbidden";
9757
+ code: "query_invalid";
9758
9758
  details?: readonly Response.error.Detail[] | undefined;
9759
9759
  message: string;
9760
9760
  };
9761
9761
  requestId: string;
9762
9762
  };
9763
9763
  outputFormat: "json";
9764
- status: 403;
9764
+ status: 400;
9765
9765
  input: {
9766
9766
  param: {
9767
9767
  id: string;
@@ -9777,14 +9777,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9777
9777
  } | {
9778
9778
  output: {
9779
9779
  error: {
9780
- code: "payment_required" | "rate_limit_exceeded";
9780
+ code: "upstream_error";
9781
9781
  details?: readonly Response.error.Detail[] | undefined;
9782
9782
  message: string;
9783
9783
  };
9784
9784
  requestId: string;
9785
9785
  };
9786
9786
  outputFormat: "json";
9787
- status: 429;
9787
+ status: 502;
9788
9788
  input: {
9789
9789
  param: {
9790
9790
  id: string;
@@ -9930,14 +9930,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9930
9930
  $post: {
9931
9931
  output: {
9932
9932
  error: {
9933
- code: "upstream_error";
9933
+ code: "api_key_malformed";
9934
9934
  details?: readonly Response.error.Detail[] | undefined;
9935
9935
  message: string;
9936
9936
  };
9937
9937
  requestId: string;
9938
9938
  };
9939
9939
  outputFormat: "json";
9940
- status: 502;
9940
+ status: 400;
9941
9941
  input: {
9942
9942
  param: {
9943
9943
  id: string;
@@ -9946,14 +9946,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9946
9946
  } | {
9947
9947
  output: {
9948
9948
  error: {
9949
- code: "api_key_malformed";
9949
+ code: "api_key_invalid" | "api_key_missing";
9950
9950
  details?: readonly Response.error.Detail[] | undefined;
9951
9951
  message: string;
9952
9952
  };
9953
9953
  requestId: string;
9954
9954
  };
9955
9955
  outputFormat: "json";
9956
- status: 400;
9956
+ status: 401;
9957
9957
  input: {
9958
9958
  param: {
9959
9959
  id: string;
@@ -9962,14 +9962,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9962
9962
  } | {
9963
9963
  output: {
9964
9964
  error: {
9965
- code: "api_key_invalid" | "api_key_missing";
9965
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
9966
9966
  details?: readonly Response.error.Detail[] | undefined;
9967
9967
  message: string;
9968
9968
  };
9969
9969
  requestId: string;
9970
9970
  };
9971
9971
  outputFormat: "json";
9972
- status: 401;
9972
+ status: 403;
9973
9973
  input: {
9974
9974
  param: {
9975
9975
  id: string;
@@ -9978,14 +9978,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9978
9978
  } | {
9979
9979
  output: {
9980
9980
  error: {
9981
- code: "api_key_forbidden" | "api_key_ip_forbidden";
9981
+ code: "payment_required" | "rate_limit_exceeded";
9982
9982
  details?: readonly Response.error.Detail[] | undefined;
9983
9983
  message: string;
9984
9984
  };
9985
9985
  requestId: string;
9986
9986
  };
9987
9987
  outputFormat: "json";
9988
- status: 403;
9988
+ status: 429;
9989
9989
  input: {
9990
9990
  param: {
9991
9991
  id: string;
@@ -9994,14 +9994,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
9994
9994
  } | {
9995
9995
  output: {
9996
9996
  error: {
9997
- code: "payment_required" | "rate_limit_exceeded";
9997
+ code: "upstream_error";
9998
9998
  details?: readonly Response.error.Detail[] | undefined;
9999
9999
  message: string;
10000
10000
  };
10001
10001
  requestId: string;
10002
10002
  };
10003
10003
  outputFormat: "json";
10004
- status: 429;
10004
+ status: 502;
10005
10005
  input: {
10006
10006
  param: {
10007
10007
  id: string;
@@ -10093,14 +10093,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10093
10093
  $post: {
10094
10094
  output: {
10095
10095
  error: {
10096
- code: "upstream_error";
10096
+ code: "api_key_malformed";
10097
10097
  details?: readonly Response.error.Detail[] | undefined;
10098
10098
  message: string;
10099
10099
  };
10100
10100
  requestId: string;
10101
10101
  };
10102
10102
  outputFormat: "json";
10103
- status: 502;
10103
+ status: 400;
10104
10104
  input: {
10105
10105
  param: {
10106
10106
  deliveryId: string;
@@ -10110,14 +10110,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10110
10110
  } | {
10111
10111
  output: {
10112
10112
  error: {
10113
- code: "api_key_malformed";
10113
+ code: "api_key_invalid" | "api_key_missing";
10114
10114
  details?: readonly Response.error.Detail[] | undefined;
10115
10115
  message: string;
10116
10116
  };
10117
10117
  requestId: string;
10118
10118
  };
10119
10119
  outputFormat: "json";
10120
- status: 400;
10120
+ status: 401;
10121
10121
  input: {
10122
10122
  param: {
10123
10123
  deliveryId: string;
@@ -10127,14 +10127,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10127
10127
  } | {
10128
10128
  output: {
10129
10129
  error: {
10130
- code: "api_key_invalid" | "api_key_missing";
10130
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
10131
10131
  details?: readonly Response.error.Detail[] | undefined;
10132
10132
  message: string;
10133
10133
  };
10134
10134
  requestId: string;
10135
10135
  };
10136
10136
  outputFormat: "json";
10137
- status: 401;
10137
+ status: 403;
10138
10138
  input: {
10139
10139
  param: {
10140
10140
  deliveryId: string;
@@ -10144,14 +10144,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10144
10144
  } | {
10145
10145
  output: {
10146
10146
  error: {
10147
- code: "api_key_forbidden" | "api_key_ip_forbidden";
10147
+ code: "payment_required" | "rate_limit_exceeded";
10148
10148
  details?: readonly Response.error.Detail[] | undefined;
10149
10149
  message: string;
10150
10150
  };
10151
10151
  requestId: string;
10152
10152
  };
10153
10153
  outputFormat: "json";
10154
- status: 403;
10154
+ status: 429;
10155
10155
  input: {
10156
10156
  param: {
10157
10157
  deliveryId: string;
@@ -10161,14 +10161,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10161
10161
  } | {
10162
10162
  output: {
10163
10163
  error: {
10164
- code: "payment_required" | "rate_limit_exceeded";
10164
+ code: "upstream_error";
10165
10165
  details?: readonly Response.error.Detail[] | undefined;
10166
10166
  message: string;
10167
10167
  };
10168
10168
  requestId: string;
10169
10169
  };
10170
10170
  outputFormat: "json";
10171
- status: 429;
10171
+ status: 502;
10172
10172
  input: {
10173
10173
  param: {
10174
10174
  deliveryId: string;
@@ -10283,14 +10283,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10283
10283
  $patch: {
10284
10284
  output: {
10285
10285
  error: {
10286
- code: "body_invalid";
10286
+ code: "payload_too_large";
10287
10287
  details?: readonly Response.error.Detail[] | undefined;
10288
10288
  message: string;
10289
10289
  };
10290
10290
  requestId: string;
10291
10291
  };
10292
10292
  outputFormat: "json";
10293
- status: 400;
10293
+ status: 413;
10294
10294
  input: {
10295
10295
  param: {
10296
10296
  id: string;
@@ -10320,14 +10320,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10320
10320
  } | {
10321
10321
  output: {
10322
10322
  error: {
10323
- code: "upstream_error";
10323
+ code: "api_key_malformed";
10324
10324
  details?: readonly Response.error.Detail[] | undefined;
10325
10325
  message: string;
10326
10326
  };
10327
10327
  requestId: string;
10328
10328
  };
10329
10329
  outputFormat: "json";
10330
- status: 502;
10330
+ status: 400;
10331
10331
  input: {
10332
10332
  param: {
10333
10333
  id: string;
@@ -10357,14 +10357,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10357
10357
  } | {
10358
10358
  output: {
10359
10359
  error: {
10360
- code: "payload_too_large";
10360
+ code: "api_key_invalid" | "api_key_missing";
10361
10361
  details?: readonly Response.error.Detail[] | undefined;
10362
10362
  message: string;
10363
10363
  };
10364
10364
  requestId: string;
10365
10365
  };
10366
10366
  outputFormat: "json";
10367
- status: 413;
10367
+ status: 401;
10368
10368
  input: {
10369
10369
  param: {
10370
10370
  id: string;
@@ -10394,14 +10394,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10394
10394
  } | {
10395
10395
  output: {
10396
10396
  error: {
10397
- code: "api_key_malformed";
10397
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
10398
10398
  details?: readonly Response.error.Detail[] | undefined;
10399
10399
  message: string;
10400
10400
  };
10401
10401
  requestId: string;
10402
10402
  };
10403
10403
  outputFormat: "json";
10404
- status: 400;
10404
+ status: 403;
10405
10405
  input: {
10406
10406
  param: {
10407
10407
  id: string;
@@ -10431,14 +10431,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10431
10431
  } | {
10432
10432
  output: {
10433
10433
  error: {
10434
- code: "api_key_invalid" | "api_key_missing";
10434
+ code: "payment_required" | "rate_limit_exceeded";
10435
10435
  details?: readonly Response.error.Detail[] | undefined;
10436
10436
  message: string;
10437
10437
  };
10438
10438
  requestId: string;
10439
10439
  };
10440
10440
  outputFormat: "json";
10441
- status: 401;
10441
+ status: 429;
10442
10442
  input: {
10443
10443
  param: {
10444
10444
  id: string;
@@ -10468,14 +10468,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10468
10468
  } | {
10469
10469
  output: {
10470
10470
  error: {
10471
- code: "api_key_forbidden" | "api_key_ip_forbidden";
10471
+ code: "upstream_error";
10472
10472
  details?: readonly Response.error.Detail[] | undefined;
10473
10473
  message: string;
10474
10474
  };
10475
10475
  requestId: string;
10476
10476
  };
10477
10477
  outputFormat: "json";
10478
- status: 403;
10478
+ status: 502;
10479
10479
  input: {
10480
10480
  param: {
10481
10481
  id: string;
@@ -10505,14 +10505,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10505
10505
  } | {
10506
10506
  output: {
10507
10507
  error: {
10508
- code: "payment_required" | "rate_limit_exceeded";
10508
+ code: "webhooks_not_enabled";
10509
10509
  details?: readonly Response.error.Detail[] | undefined;
10510
10510
  message: string;
10511
10511
  };
10512
10512
  requestId: string;
10513
10513
  };
10514
10514
  outputFormat: "json";
10515
- status: 429;
10515
+ status: 404;
10516
10516
  input: {
10517
10517
  param: {
10518
10518
  id: string;
@@ -10542,14 +10542,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10542
10542
  } | {
10543
10543
  output: {
10544
10544
  error: {
10545
- code: "webhooks_not_enabled";
10545
+ code: "body_invalid";
10546
10546
  details?: readonly Response.error.Detail[] | undefined;
10547
10547
  message: string;
10548
10548
  };
10549
10549
  requestId: string;
10550
10550
  };
10551
10551
  outputFormat: "json";
10552
- status: 404;
10552
+ status: 400;
10553
10553
  input: {
10554
10554
  param: {
10555
10555
  id: string;
@@ -10867,14 +10867,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10867
10867
  $delete: {
10868
10868
  output: {
10869
10869
  error: {
10870
- code: "upstream_error";
10870
+ code: "api_key_malformed";
10871
10871
  details?: readonly Response.error.Detail[] | undefined;
10872
10872
  message: string;
10873
10873
  };
10874
10874
  requestId: string;
10875
10875
  };
10876
10876
  outputFormat: "json";
10877
- status: 502;
10877
+ status: 400;
10878
10878
  input: {
10879
10879
  param: {
10880
10880
  id: string;
@@ -10883,14 +10883,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10883
10883
  } | {
10884
10884
  output: {
10885
10885
  error: {
10886
- code: "api_key_malformed";
10886
+ code: "api_key_invalid" | "api_key_missing";
10887
10887
  details?: readonly Response.error.Detail[] | undefined;
10888
10888
  message: string;
10889
10889
  };
10890
10890
  requestId: string;
10891
10891
  };
10892
10892
  outputFormat: "json";
10893
- status: 400;
10893
+ status: 401;
10894
10894
  input: {
10895
10895
  param: {
10896
10896
  id: string;
@@ -10899,14 +10899,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10899
10899
  } | {
10900
10900
  output: {
10901
10901
  error: {
10902
- code: "api_key_invalid" | "api_key_missing";
10902
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
10903
10903
  details?: readonly Response.error.Detail[] | undefined;
10904
10904
  message: string;
10905
10905
  };
10906
10906
  requestId: string;
10907
10907
  };
10908
10908
  outputFormat: "json";
10909
- status: 401;
10909
+ status: 403;
10910
10910
  input: {
10911
10911
  param: {
10912
10912
  id: string;
@@ -10915,14 +10915,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10915
10915
  } | {
10916
10916
  output: {
10917
10917
  error: {
10918
- code: "api_key_forbidden" | "api_key_ip_forbidden";
10918
+ code: "payment_required" | "rate_limit_exceeded";
10919
10919
  details?: readonly Response.error.Detail[] | undefined;
10920
10920
  message: string;
10921
10921
  };
10922
10922
  requestId: string;
10923
10923
  };
10924
10924
  outputFormat: "json";
10925
- status: 403;
10925
+ status: 429;
10926
10926
  input: {
10927
10927
  param: {
10928
10928
  id: string;
@@ -10931,14 +10931,14 @@ export declare function webhooks(options?: webhooks.Options): import("hono/hono-
10931
10931
  } | {
10932
10932
  output: {
10933
10933
  error: {
10934
- code: "payment_required" | "rate_limit_exceeded";
10934
+ code: "upstream_error";
10935
10935
  details?: readonly Response.error.Detail[] | undefined;
10936
10936
  message: string;
10937
10937
  };
10938
10938
  requestId: string;
10939
10939
  };
10940
10940
  outputFormat: "json";
10941
- status: 429;
10941
+ status: 502;
10942
10942
  input: {
10943
10943
  param: {
10944
10944
  id: string;