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
@@ -50,6 +50,7 @@ export declare namespace schema {
50
50
  }>>;
51
51
  name: z.ZodMiniOptional<z.ZodMiniString<string>>;
52
52
  scopes: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniString<string>>>;
53
+ sourceKeyId: z.ZodMiniOptional<z.ZodMiniString<string>>;
53
54
  }, z.core.$strip>;
54
55
  /** Schemas for the createApiKey operation. */
55
56
  namespace createApiKey {
@@ -203,22 +204,15 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
203
204
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
204
205
  $post: {
205
206
  output: {
206
- allowedIps: readonly string[];
207
- createdAt: string;
208
- createdBy?: string | undefined;
209
- environment: "production" | "sandbox";
210
- expiresAt?: string | undefined;
211
- id: string;
212
- lastUsedAt?: string | undefined;
213
- name?: string | undefined;
214
- orgId: string;
215
- projectId?: string | undefined;
216
- scopes: string[];
217
- tokenLast4: string;
218
- token: string;
207
+ error: {
208
+ code: "api_key_malformed";
209
+ details?: readonly Response.error.Detail[] | undefined;
210
+ message: string;
211
+ };
212
+ requestId: string;
219
213
  };
220
214
  outputFormat: "json";
221
- status: 200;
215
+ status: 400;
222
216
  input: {
223
217
  param: {
224
218
  orgId: string;
@@ -230,19 +224,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
230
224
  environment?: "production" | "sandbox" | undefined;
231
225
  name?: string | undefined;
232
226
  scopes?: string[] | undefined;
227
+ sourceKeyId?: string | undefined;
233
228
  };
234
229
  };
235
230
  } | {
236
231
  output: {
237
232
  error: {
238
- code: "api_key_malformed";
233
+ code: "api_key_invalid" | "api_key_missing";
239
234
  details?: readonly Response.error.Detail[] | undefined;
240
235
  message: string;
241
236
  };
242
237
  requestId: string;
243
238
  };
244
239
  outputFormat: "json";
245
- status: 400;
240
+ status: 401;
246
241
  input: {
247
242
  param: {
248
243
  orgId: string;
@@ -254,19 +249,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
254
249
  environment?: "production" | "sandbox" | undefined;
255
250
  name?: string | undefined;
256
251
  scopes?: string[] | undefined;
252
+ sourceKeyId?: string | undefined;
257
253
  };
258
254
  };
259
255
  } | {
260
256
  output: {
261
257
  error: {
262
- code: "param_invalid";
258
+ code: "upstream_error";
263
259
  details?: readonly Response.error.Detail[] | undefined;
264
260
  message: string;
265
261
  };
266
262
  requestId: string;
267
263
  };
268
264
  outputFormat: "json";
269
- status: 400;
265
+ status: 502;
270
266
  input: {
271
267
  param: {
272
268
  orgId: string;
@@ -278,6 +274,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
278
274
  environment?: "production" | "sandbox" | undefined;
279
275
  name?: string | undefined;
280
276
  scopes?: string[] | undefined;
277
+ sourceKeyId?: string | undefined;
281
278
  };
282
279
  };
283
280
  } | {
@@ -302,19 +299,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
302
299
  environment?: "production" | "sandbox" | undefined;
303
300
  name?: string | undefined;
304
301
  scopes?: string[] | undefined;
302
+ sourceKeyId?: string | undefined;
305
303
  };
306
304
  };
307
305
  } | {
308
306
  output: {
309
307
  error: {
310
- code: "api_key_invalid" | "api_key_missing";
308
+ code: "param_invalid";
311
309
  details?: readonly Response.error.Detail[] | undefined;
312
310
  message: string;
313
311
  };
314
312
  requestId: string;
315
313
  };
316
314
  outputFormat: "json";
317
- status: 401;
315
+ status: 400;
318
316
  input: {
319
317
  param: {
320
318
  orgId: string;
@@ -326,6 +324,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
326
324
  environment?: "production" | "sandbox" | undefined;
327
325
  name?: string | undefined;
328
326
  scopes?: string[] | undefined;
327
+ sourceKeyId?: string | undefined;
329
328
  };
330
329
  };
331
330
  } | {
@@ -350,19 +349,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
350
349
  environment?: "production" | "sandbox" | undefined;
351
350
  name?: string | undefined;
352
351
  scopes?: string[] | undefined;
352
+ sourceKeyId?: string | undefined;
353
353
  };
354
354
  };
355
355
  } | {
356
356
  output: {
357
357
  error: {
358
- code: "scope_not_issuable";
358
+ code: "organization_not_found" | "project_not_found";
359
359
  details?: readonly Response.error.Detail[] | undefined;
360
360
  message: string;
361
361
  };
362
362
  requestId: string;
363
363
  };
364
364
  outputFormat: "json";
365
- status: 403;
365
+ status: 404;
366
366
  input: {
367
367
  param: {
368
368
  orgId: string;
@@ -374,12 +374,13 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
374
374
  environment?: "production" | "sandbox" | undefined;
375
375
  name?: string | undefined;
376
376
  scopes?: string[] | undefined;
377
+ sourceKeyId?: string | undefined;
377
378
  };
378
379
  };
379
380
  } | {
380
381
  output: {
381
382
  error: {
382
- code: "organization_not_found" | "project_not_found";
383
+ code: "api_keys_not_enabled";
383
384
  details?: readonly Response.error.Detail[] | undefined;
384
385
  message: string;
385
386
  };
@@ -398,19 +399,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
398
399
  environment?: "production" | "sandbox" | undefined;
399
400
  name?: string | undefined;
400
401
  scopes?: string[] | undefined;
402
+ sourceKeyId?: string | undefined;
401
403
  };
402
404
  };
403
405
  } | {
404
406
  output: {
405
407
  error: {
406
- code: "api_keys_not_enabled";
408
+ code: "scope_not_issuable";
407
409
  details?: readonly Response.error.Detail[] | undefined;
408
410
  message: string;
409
411
  };
410
412
  requestId: string;
411
413
  };
412
414
  outputFormat: "json";
413
- status: 404;
415
+ status: 403;
414
416
  input: {
415
417
  param: {
416
418
  orgId: string;
@@ -422,19 +424,27 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
422
424
  environment?: "production" | "sandbox" | undefined;
423
425
  name?: string | undefined;
424
426
  scopes?: string[] | undefined;
427
+ sourceKeyId?: string | undefined;
425
428
  };
426
429
  };
427
430
  } | {
428
431
  output: {
429
- error: {
430
- code: "api_key_limit_reached";
431
- details?: readonly Response.error.Detail[] | undefined;
432
- message: string;
433
- };
434
- requestId: string;
432
+ allowedIps: readonly string[];
433
+ createdAt: string;
434
+ createdBy?: string | undefined;
435
+ environment: "production" | "sandbox";
436
+ expiresAt?: string | undefined;
437
+ id: string;
438
+ lastUsedAt?: string | undefined;
439
+ name?: string | undefined;
440
+ orgId: string;
441
+ projectId?: string | undefined;
442
+ scopes: string[];
443
+ tokenLast4: string;
444
+ token: string;
435
445
  };
436
446
  outputFormat: "json";
437
- status: 409;
447
+ status: 200;
438
448
  input: {
439
449
  param: {
440
450
  orgId: string;
@@ -446,19 +456,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
446
456
  environment?: "production" | "sandbox" | undefined;
447
457
  name?: string | undefined;
448
458
  scopes?: string[] | undefined;
459
+ sourceKeyId?: string | undefined;
449
460
  };
450
461
  };
451
462
  } | {
452
463
  output: {
453
464
  error: {
454
- code: "upstream_error";
465
+ code: "api_key_limit_reached";
455
466
  details?: readonly Response.error.Detail[] | undefined;
456
467
  message: string;
457
468
  };
458
469
  requestId: string;
459
470
  };
460
471
  outputFormat: "json";
461
- status: 502;
472
+ status: 409;
462
473
  input: {
463
474
  param: {
464
475
  orgId: string;
@@ -470,6 +481,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
470
481
  environment?: "production" | "sandbox" | undefined;
471
482
  name?: string | undefined;
472
483
  scopes?: string[] | undefined;
484
+ sourceKeyId?: string | undefined;
473
485
  };
474
486
  };
475
487
  };
@@ -477,36 +489,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
477
489
  } & {
478
490
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
479
491
  $get: {
480
- output: {
481
- data: {
482
- allowedIps: readonly string[];
483
- createdAt: string;
484
- createdBy?: string | undefined;
485
- environment: "production" | "sandbox";
486
- expiresAt?: string | undefined;
487
- id: string;
488
- lastUsedAt?: string | undefined;
489
- name?: string | undefined;
490
- orgId: string;
491
- projectId?: string | undefined;
492
- scopes: string[];
493
- tokenLast4: string;
494
- }[];
495
- };
496
- outputFormat: "json";
497
- status: 200;
498
- input: {
499
- param: {
500
- orgId: string;
501
- projectId: string;
502
- };
503
- } & {
504
- query?: {
505
- environment?: string | string[];
506
- include?: string | string[];
507
- } | undefined;
508
- };
509
- } | {
510
492
  output: {
511
493
  error: {
512
494
  code: "api_key_malformed";
@@ -531,14 +513,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
531
513
  } | {
532
514
  output: {
533
515
  error: {
534
- code: "query_invalid";
516
+ code: "api_key_invalid" | "api_key_missing";
535
517
  details?: readonly Response.error.Detail[] | undefined;
536
518
  message: string;
537
519
  };
538
520
  requestId: string;
539
521
  };
540
522
  outputFormat: "json";
541
- status: 400;
523
+ status: 401;
542
524
  input: {
543
525
  param: {
544
526
  orgId: string;
@@ -553,14 +535,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
553
535
  } | {
554
536
  output: {
555
537
  error: {
556
- code: "param_invalid";
538
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
557
539
  details?: readonly Response.error.Detail[] | undefined;
558
540
  message: string;
559
541
  };
560
542
  requestId: string;
561
543
  };
562
544
  outputFormat: "json";
563
- status: 400;
545
+ status: 403;
564
546
  input: {
565
547
  param: {
566
548
  orgId: string;
@@ -575,14 +557,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
575
557
  } | {
576
558
  output: {
577
559
  error: {
578
- code: "api_key_invalid" | "api_key_missing";
560
+ code: "payment_required" | "rate_limit_exceeded";
579
561
  details?: readonly Response.error.Detail[] | undefined;
580
562
  message: string;
581
563
  };
582
564
  requestId: string;
583
565
  };
584
566
  outputFormat: "json";
585
- status: 401;
567
+ status: 429;
586
568
  input: {
587
569
  param: {
588
570
  orgId: string;
@@ -597,14 +579,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
597
579
  } | {
598
580
  output: {
599
581
  error: {
600
- code: "api_key_forbidden" | "api_key_ip_forbidden";
582
+ code: "query_invalid";
601
583
  details?: readonly Response.error.Detail[] | undefined;
602
584
  message: string;
603
585
  };
604
586
  requestId: string;
605
587
  };
606
588
  outputFormat: "json";
607
- status: 403;
589
+ status: 400;
608
590
  input: {
609
591
  param: {
610
592
  orgId: string;
@@ -619,14 +601,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
619
601
  } | {
620
602
  output: {
621
603
  error: {
622
- code: "organization_not_found" | "project_not_found";
604
+ code: "upstream_error";
623
605
  details?: readonly Response.error.Detail[] | undefined;
624
606
  message: string;
625
607
  };
626
608
  requestId: string;
627
609
  };
628
610
  outputFormat: "json";
629
- status: 404;
611
+ status: 502;
630
612
  input: {
631
613
  param: {
632
614
  orgId: string;
@@ -641,14 +623,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
641
623
  } | {
642
624
  output: {
643
625
  error: {
644
- code: "api_keys_not_enabled";
626
+ code: "param_invalid";
645
627
  details?: readonly Response.error.Detail[] | undefined;
646
628
  message: string;
647
629
  };
648
630
  requestId: string;
649
631
  };
650
632
  outputFormat: "json";
651
- status: 404;
633
+ status: 400;
652
634
  input: {
653
635
  param: {
654
636
  orgId: string;
@@ -663,14 +645,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
663
645
  } | {
664
646
  output: {
665
647
  error: {
666
- code: "payment_required" | "rate_limit_exceeded";
648
+ code: "organization_not_found" | "project_not_found";
667
649
  details?: readonly Response.error.Detail[] | undefined;
668
650
  message: string;
669
651
  };
670
652
  requestId: string;
671
653
  };
672
654
  outputFormat: "json";
673
- status: 429;
655
+ status: 404;
674
656
  input: {
675
657
  param: {
676
658
  orgId: string;
@@ -685,14 +667,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
685
667
  } | {
686
668
  output: {
687
669
  error: {
688
- code: "upstream_error";
670
+ code: "api_keys_not_enabled";
689
671
  details?: readonly Response.error.Detail[] | undefined;
690
672
  message: string;
691
673
  };
692
674
  requestId: string;
693
675
  };
694
676
  outputFormat: "json";
695
- status: 502;
677
+ status: 404;
696
678
  input: {
697
679
  param: {
698
680
  orgId: string;
@@ -704,11 +686,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
704
686
  include?: string | string[];
705
687
  } | undefined;
706
688
  };
707
- };
708
- };
709
- } & {
710
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
711
- $get: {
689
+ } | {
712
690
  output: {
713
691
  data: {
714
692
  allowedIps: readonly string[];
@@ -730,6 +708,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
730
708
  input: {
731
709
  param: {
732
710
  orgId: string;
711
+ projectId: string;
733
712
  };
734
713
  } & {
735
714
  query?: {
@@ -737,7 +716,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
737
716
  include?: string | string[];
738
717
  } | undefined;
739
718
  };
740
- } | {
719
+ };
720
+ };
721
+ } & {
722
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
723
+ $get: {
741
724
  output: {
742
725
  error: {
743
726
  code: "api_key_malformed";
@@ -761,14 +744,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
761
744
  } | {
762
745
  output: {
763
746
  error: {
764
- code: "query_invalid";
747
+ code: "api_key_invalid" | "api_key_missing";
765
748
  details?: readonly Response.error.Detail[] | undefined;
766
749
  message: string;
767
750
  };
768
751
  requestId: string;
769
752
  };
770
753
  outputFormat: "json";
771
- status: 400;
754
+ status: 401;
772
755
  input: {
773
756
  param: {
774
757
  orgId: string;
@@ -782,14 +765,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
782
765
  } | {
783
766
  output: {
784
767
  error: {
785
- code: "param_invalid";
768
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
786
769
  details?: readonly Response.error.Detail[] | undefined;
787
770
  message: string;
788
771
  };
789
772
  requestId: string;
790
773
  };
791
774
  outputFormat: "json";
792
- status: 400;
775
+ status: 403;
793
776
  input: {
794
777
  param: {
795
778
  orgId: string;
@@ -803,14 +786,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
803
786
  } | {
804
787
  output: {
805
788
  error: {
806
- code: "api_key_invalid" | "api_key_missing";
789
+ code: "payment_required" | "rate_limit_exceeded";
807
790
  details?: readonly Response.error.Detail[] | undefined;
808
791
  message: string;
809
792
  };
810
793
  requestId: string;
811
794
  };
812
795
  outputFormat: "json";
813
- status: 401;
796
+ status: 429;
814
797
  input: {
815
798
  param: {
816
799
  orgId: string;
@@ -824,14 +807,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
824
807
  } | {
825
808
  output: {
826
809
  error: {
827
- code: "api_key_forbidden" | "api_key_ip_forbidden";
810
+ code: "query_invalid";
828
811
  details?: readonly Response.error.Detail[] | undefined;
829
812
  message: string;
830
813
  };
831
814
  requestId: string;
832
815
  };
833
816
  outputFormat: "json";
834
- status: 403;
817
+ status: 400;
835
818
  input: {
836
819
  param: {
837
820
  orgId: string;
@@ -845,14 +828,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
845
828
  } | {
846
829
  output: {
847
830
  error: {
848
- code: "api_keys_not_enabled";
831
+ code: "upstream_error";
849
832
  details?: readonly Response.error.Detail[] | undefined;
850
833
  message: string;
851
834
  };
852
835
  requestId: string;
853
836
  };
854
837
  outputFormat: "json";
855
- status: 404;
838
+ status: 502;
856
839
  input: {
857
840
  param: {
858
841
  orgId: string;
@@ -866,14 +849,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
866
849
  } | {
867
850
  output: {
868
851
  error: {
869
- code: "organization_not_found";
852
+ code: "param_invalid";
870
853
  details?: readonly Response.error.Detail[] | undefined;
871
854
  message: string;
872
855
  };
873
856
  requestId: string;
874
857
  };
875
858
  outputFormat: "json";
876
- status: 404;
859
+ status: 400;
877
860
  input: {
878
861
  param: {
879
862
  orgId: string;
@@ -887,14 +870,43 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
887
870
  } | {
888
871
  output: {
889
872
  error: {
890
- code: "payment_required" | "rate_limit_exceeded";
873
+ code: "api_keys_not_enabled";
891
874
  details?: readonly Response.error.Detail[] | undefined;
892
875
  message: string;
893
876
  };
894
877
  requestId: string;
895
878
  };
896
879
  outputFormat: "json";
897
- status: 429;
880
+ status: 404;
881
+ input: {
882
+ param: {
883
+ orgId: string;
884
+ };
885
+ } & {
886
+ query?: {
887
+ environment?: string | string[];
888
+ include?: string | string[];
889
+ } | undefined;
890
+ };
891
+ } | {
892
+ output: {
893
+ data: {
894
+ allowedIps: readonly string[];
895
+ createdAt: string;
896
+ createdBy?: string | undefined;
897
+ environment: "production" | "sandbox";
898
+ expiresAt?: string | undefined;
899
+ id: string;
900
+ lastUsedAt?: string | undefined;
901
+ name?: string | undefined;
902
+ orgId: string;
903
+ projectId?: string | undefined;
904
+ scopes: string[];
905
+ tokenLast4: string;
906
+ }[];
907
+ };
908
+ outputFormat: "json";
909
+ status: 200;
898
910
  input: {
899
911
  param: {
900
912
  orgId: string;
@@ -908,14 +920,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
908
920
  } | {
909
921
  output: {
910
922
  error: {
911
- code: "upstream_error";
923
+ code: "organization_not_found";
912
924
  details?: readonly Response.error.Detail[] | undefined;
913
925
  message: string;
914
926
  };
915
927
  requestId: string;
916
928
  };
917
929
  outputFormat: "json";
918
- status: 502;
930
+ status: 404;
919
931
  input: {
920
932
  param: {
921
933
  orgId: string;
@@ -931,30 +943,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
931
943
  } & {
932
944
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
933
945
  $post: {
934
- output: {
935
- allowedIps: readonly string[];
936
- createdAt: string;
937
- createdBy?: string | undefined;
938
- environment: "production" | "sandbox";
939
- expiresAt?: string | undefined;
940
- id: string;
941
- lastUsedAt?: string | undefined;
942
- name?: string | undefined;
943
- orgId: string;
944
- projectId?: string | undefined;
945
- scopes: string[];
946
- tokenLast4: string;
947
- token: string;
948
- };
949
- outputFormat: "json";
950
- status: 200;
951
- input: {
952
- param: {
953
- keyId: string;
954
- orgId: string;
955
- };
956
- };
957
- } | {
958
946
  output: {
959
947
  error: {
960
948
  code: "api_key_malformed";
@@ -974,14 +962,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
974
962
  } | {
975
963
  output: {
976
964
  error: {
977
- code: "param_invalid";
965
+ code: "api_key_invalid" | "api_key_missing";
978
966
  details?: readonly Response.error.Detail[] | undefined;
979
967
  message: string;
980
968
  };
981
969
  requestId: string;
982
970
  };
983
971
  outputFormat: "json";
984
- status: 400;
972
+ status: 401;
985
973
  input: {
986
974
  param: {
987
975
  keyId: string;
@@ -991,14 +979,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
991
979
  } | {
992
980
  output: {
993
981
  error: {
994
- code: "api_key_invalid" | "api_key_missing";
982
+ code: "upstream_error";
995
983
  details?: readonly Response.error.Detail[] | undefined;
996
984
  message: string;
997
985
  };
998
986
  requestId: string;
999
987
  };
1000
988
  outputFormat: "json";
1001
- status: 401;
989
+ status: 502;
1002
990
  input: {
1003
991
  param: {
1004
992
  keyId: string;
@@ -1008,14 +996,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1008
996
  } | {
1009
997
  output: {
1010
998
  error: {
1011
- code: "forbidden";
999
+ code: "param_invalid";
1012
1000
  details?: readonly Response.error.Detail[] | undefined;
1013
1001
  message: string;
1014
1002
  };
1015
1003
  requestId: string;
1016
1004
  };
1017
1005
  outputFormat: "json";
1018
- status: 403;
1006
+ status: 400;
1019
1007
  input: {
1020
1008
  param: {
1021
1009
  keyId: string;
@@ -1025,7 +1013,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1025
1013
  } | {
1026
1014
  output: {
1027
1015
  error: {
1028
- code: "scope_not_issuable";
1016
+ code: "forbidden";
1029
1017
  details?: readonly Response.error.Detail[] | undefined;
1030
1018
  message: string;
1031
1019
  };
@@ -1059,14 +1047,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1059
1047
  } | {
1060
1048
  output: {
1061
1049
  error: {
1062
- code: "organization_not_found";
1050
+ code: "scope_not_issuable";
1063
1051
  details?: readonly Response.error.Detail[] | undefined;
1064
1052
  message: string;
1065
1053
  };
1066
1054
  requestId: string;
1067
1055
  };
1068
1056
  outputFormat: "json";
1069
- status: 404;
1057
+ status: 403;
1070
1058
  input: {
1071
1059
  param: {
1072
1060
  keyId: string;
@@ -1076,14 +1064,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1076
1064
  } | {
1077
1065
  output: {
1078
1066
  error: {
1079
- code: "api_key_not_found";
1067
+ code: "api_key_limit_reached";
1080
1068
  details?: readonly Response.error.Detail[] | undefined;
1081
1069
  message: string;
1082
1070
  };
1083
1071
  requestId: string;
1084
1072
  };
1085
1073
  outputFormat: "json";
1086
- status: 404;
1074
+ status: 409;
1087
1075
  input: {
1088
1076
  param: {
1089
1077
  keyId: string;
@@ -1093,14 +1081,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1093
1081
  } | {
1094
1082
  output: {
1095
1083
  error: {
1096
- code: "api_key_limit_reached";
1084
+ code: "organization_not_found";
1097
1085
  details?: readonly Response.error.Detail[] | undefined;
1098
1086
  message: string;
1099
1087
  };
1100
1088
  requestId: string;
1101
1089
  };
1102
1090
  outputFormat: "json";
1103
- status: 409;
1091
+ status: 404;
1104
1092
  input: {
1105
1093
  param: {
1106
1094
  keyId: string;
@@ -1110,27 +1098,35 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1110
1098
  } | {
1111
1099
  output: {
1112
1100
  error: {
1113
- code: "upstream_error";
1101
+ code: "api_key_not_found";
1114
1102
  details?: readonly Response.error.Detail[] | undefined;
1115
1103
  message: string;
1116
1104
  };
1117
1105
  requestId: string;
1118
1106
  };
1119
1107
  outputFormat: "json";
1120
- status: 502;
1108
+ status: 404;
1121
1109
  input: {
1122
1110
  param: {
1123
1111
  keyId: string;
1124
1112
  orgId: string;
1125
1113
  };
1126
1114
  };
1127
- };
1128
- };
1129
- } & {
1130
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1131
- $delete: {
1115
+ } | {
1132
1116
  output: {
1117
+ allowedIps: readonly string[];
1118
+ createdAt: string;
1119
+ createdBy?: string | undefined;
1120
+ environment: "production" | "sandbox";
1121
+ expiresAt?: string | undefined;
1133
1122
  id: string;
1123
+ lastUsedAt?: string | undefined;
1124
+ name?: string | undefined;
1125
+ orgId: string;
1126
+ projectId?: string | undefined;
1127
+ scopes: string[];
1128
+ tokenLast4: string;
1129
+ token: string;
1134
1130
  };
1135
1131
  outputFormat: "json";
1136
1132
  status: 200;
@@ -1140,7 +1136,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1140
1136
  orgId: string;
1141
1137
  };
1142
1138
  };
1143
- } | {
1139
+ };
1140
+ };
1141
+ } & {
1142
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1143
+ $delete: {
1144
1144
  output: {
1145
1145
  error: {
1146
1146
  code: "api_key_malformed";
@@ -1160,14 +1160,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1160
1160
  } | {
1161
1161
  output: {
1162
1162
  error: {
1163
- code: "param_invalid";
1163
+ code: "api_key_invalid" | "api_key_missing";
1164
1164
  details?: readonly Response.error.Detail[] | undefined;
1165
1165
  message: string;
1166
1166
  };
1167
1167
  requestId: string;
1168
1168
  };
1169
1169
  outputFormat: "json";
1170
- status: 400;
1170
+ status: 401;
1171
1171
  input: {
1172
1172
  param: {
1173
1173
  keyId: string;
@@ -1177,14 +1177,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1177
1177
  } | {
1178
1178
  output: {
1179
1179
  error: {
1180
- code: "api_key_invalid" | "api_key_missing";
1180
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1181
1181
  details?: readonly Response.error.Detail[] | undefined;
1182
1182
  message: string;
1183
1183
  };
1184
1184
  requestId: string;
1185
1185
  };
1186
1186
  outputFormat: "json";
1187
- status: 401;
1187
+ status: 403;
1188
1188
  input: {
1189
1189
  param: {
1190
1190
  keyId: string;
@@ -1194,14 +1194,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1194
1194
  } | {
1195
1195
  output: {
1196
1196
  error: {
1197
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1197
+ code: "payment_required" | "rate_limit_exceeded";
1198
1198
  details?: readonly Response.error.Detail[] | undefined;
1199
1199
  message: string;
1200
1200
  };
1201
1201
  requestId: string;
1202
1202
  };
1203
1203
  outputFormat: "json";
1204
- status: 403;
1204
+ status: 429;
1205
1205
  input: {
1206
1206
  param: {
1207
1207
  keyId: string;
@@ -1211,14 +1211,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1211
1211
  } | {
1212
1212
  output: {
1213
1213
  error: {
1214
- code: "forbidden";
1214
+ code: "upstream_error";
1215
1215
  details?: readonly Response.error.Detail[] | undefined;
1216
1216
  message: string;
1217
1217
  };
1218
1218
  requestId: string;
1219
1219
  };
1220
1220
  outputFormat: "json";
1221
- status: 403;
1221
+ status: 502;
1222
1222
  input: {
1223
1223
  param: {
1224
1224
  keyId: string;
@@ -1228,14 +1228,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1228
1228
  } | {
1229
1229
  output: {
1230
1230
  error: {
1231
- code: "api_keys_not_enabled";
1231
+ code: "param_invalid";
1232
1232
  details?: readonly Response.error.Detail[] | undefined;
1233
1233
  message: string;
1234
1234
  };
1235
1235
  requestId: string;
1236
1236
  };
1237
1237
  outputFormat: "json";
1238
- status: 404;
1238
+ status: 400;
1239
1239
  input: {
1240
1240
  param: {
1241
1241
  keyId: string;
@@ -1245,14 +1245,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1245
1245
  } | {
1246
1246
  output: {
1247
1247
  error: {
1248
- code: "api_key_not_found";
1248
+ code: "forbidden";
1249
1249
  details?: readonly Response.error.Detail[] | undefined;
1250
1250
  message: string;
1251
1251
  };
1252
1252
  requestId: string;
1253
1253
  };
1254
1254
  outputFormat: "json";
1255
- status: 404;
1255
+ status: 403;
1256
1256
  input: {
1257
1257
  param: {
1258
1258
  keyId: string;
@@ -1262,14 +1262,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1262
1262
  } | {
1263
1263
  output: {
1264
1264
  error: {
1265
- code: "payment_required" | "rate_limit_exceeded";
1265
+ code: "api_keys_not_enabled";
1266
1266
  details?: readonly Response.error.Detail[] | undefined;
1267
1267
  message: string;
1268
1268
  };
1269
1269
  requestId: string;
1270
1270
  };
1271
1271
  outputFormat: "json";
1272
- status: 429;
1272
+ status: 404;
1273
1273
  input: {
1274
1274
  param: {
1275
1275
  keyId: string;
@@ -1279,38 +1279,23 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1279
1279
  } | {
1280
1280
  output: {
1281
1281
  error: {
1282
- code: "upstream_error";
1282
+ code: "api_key_not_found";
1283
1283
  details?: readonly Response.error.Detail[] | undefined;
1284
1284
  message: string;
1285
1285
  };
1286
1286
  requestId: string;
1287
1287
  };
1288
1288
  outputFormat: "json";
1289
- status: 502;
1289
+ status: 404;
1290
1290
  input: {
1291
1291
  param: {
1292
1292
  keyId: string;
1293
1293
  orgId: string;
1294
1294
  };
1295
1295
  };
1296
- };
1297
- };
1298
- } & {
1299
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1300
- $patch: {
1296
+ } | {
1301
1297
  output: {
1302
- allowedIps: readonly string[];
1303
- createdAt: string;
1304
- createdBy?: string | undefined;
1305
- environment: "production" | "sandbox";
1306
- expiresAt?: string | undefined;
1307
1298
  id: string;
1308
- lastUsedAt?: string | undefined;
1309
- name?: string | undefined;
1310
- orgId: string;
1311
- projectId?: string | undefined;
1312
- scopes: string[];
1313
- tokenLast4: string;
1314
1299
  };
1315
1300
  outputFormat: "json";
1316
1301
  status: 200;
@@ -1318,14 +1303,13 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1318
1303
  param: {
1319
1304
  keyId: string;
1320
1305
  orgId: string;
1321
- projectId: string;
1322
- };
1323
- } & {
1324
- json: {
1325
- allowedIps: readonly string[];
1326
1306
  };
1327
1307
  };
1328
- } | {
1308
+ };
1309
+ };
1310
+ } & {
1311
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1312
+ $patch: {
1329
1313
  output: {
1330
1314
  error: {
1331
1315
  code: "api_key_malformed";
@@ -1350,14 +1334,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1350
1334
  } | {
1351
1335
  output: {
1352
1336
  error: {
1353
- code: "param_invalid";
1337
+ code: "api_key_invalid" | "api_key_missing";
1354
1338
  details?: readonly Response.error.Detail[] | undefined;
1355
1339
  message: string;
1356
1340
  };
1357
1341
  requestId: string;
1358
1342
  };
1359
1343
  outputFormat: "json";
1360
- status: 400;
1344
+ status: 401;
1361
1345
  input: {
1362
1346
  param: {
1363
1347
  keyId: string;
@@ -1372,14 +1356,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1372
1356
  } | {
1373
1357
  output: {
1374
1358
  error: {
1375
- code: "body_invalid";
1359
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1376
1360
  details?: readonly Response.error.Detail[] | undefined;
1377
1361
  message: string;
1378
1362
  };
1379
1363
  requestId: string;
1380
1364
  };
1381
1365
  outputFormat: "json";
1382
- status: 400;
1366
+ status: 403;
1383
1367
  input: {
1384
1368
  param: {
1385
1369
  keyId: string;
@@ -1394,14 +1378,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1394
1378
  } | {
1395
1379
  output: {
1396
1380
  error: {
1397
- code: "api_key_invalid" | "api_key_missing";
1381
+ code: "payment_required" | "rate_limit_exceeded";
1398
1382
  details?: readonly Response.error.Detail[] | undefined;
1399
1383
  message: string;
1400
1384
  };
1401
1385
  requestId: string;
1402
1386
  };
1403
1387
  outputFormat: "json";
1404
- status: 401;
1388
+ status: 429;
1405
1389
  input: {
1406
1390
  param: {
1407
1391
  keyId: string;
@@ -1416,14 +1400,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1416
1400
  } | {
1417
1401
  output: {
1418
1402
  error: {
1419
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1403
+ code: "upstream_error";
1420
1404
  details?: readonly Response.error.Detail[] | undefined;
1421
1405
  message: string;
1422
1406
  };
1423
1407
  requestId: string;
1424
1408
  };
1425
1409
  outputFormat: "json";
1426
- status: 403;
1410
+ status: 502;
1427
1411
  input: {
1428
1412
  param: {
1429
1413
  keyId: string;
@@ -1438,14 +1422,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1438
1422
  } | {
1439
1423
  output: {
1440
1424
  error: {
1441
- code: "forbidden";
1425
+ code: "body_invalid";
1442
1426
  details?: readonly Response.error.Detail[] | undefined;
1443
1427
  message: string;
1444
1428
  };
1445
1429
  requestId: string;
1446
1430
  };
1447
1431
  outputFormat: "json";
1448
- status: 403;
1432
+ status: 400;
1449
1433
  input: {
1450
1434
  param: {
1451
1435
  keyId: string;
@@ -1460,14 +1444,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1460
1444
  } | {
1461
1445
  output: {
1462
1446
  error: {
1463
- code: "organization_not_found" | "project_not_found";
1447
+ code: "param_invalid";
1464
1448
  details?: readonly Response.error.Detail[] | undefined;
1465
1449
  message: string;
1466
1450
  };
1467
1451
  requestId: string;
1468
1452
  };
1469
1453
  outputFormat: "json";
1470
- status: 404;
1454
+ status: 400;
1471
1455
  input: {
1472
1456
  param: {
1473
1457
  keyId: string;
@@ -1482,14 +1466,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1482
1466
  } | {
1483
1467
  output: {
1484
1468
  error: {
1485
- code: "api_keys_not_enabled";
1469
+ code: "forbidden";
1486
1470
  details?: readonly Response.error.Detail[] | undefined;
1487
1471
  message: string;
1488
1472
  };
1489
1473
  requestId: string;
1490
1474
  };
1491
1475
  outputFormat: "json";
1492
- status: 404;
1476
+ status: 403;
1493
1477
  input: {
1494
1478
  param: {
1495
1479
  keyId: string;
@@ -1504,7 +1488,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1504
1488
  } | {
1505
1489
  output: {
1506
1490
  error: {
1507
- code: "api_key_not_found";
1491
+ code: "organization_not_found" | "project_not_found";
1508
1492
  details?: readonly Response.error.Detail[] | undefined;
1509
1493
  message: string;
1510
1494
  };
@@ -1526,14 +1510,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1526
1510
  } | {
1527
1511
  output: {
1528
1512
  error: {
1529
- code: "payment_required" | "rate_limit_exceeded";
1513
+ code: "api_keys_not_enabled";
1530
1514
  details?: readonly Response.error.Detail[] | undefined;
1531
1515
  message: string;
1532
1516
  };
1533
1517
  requestId: string;
1534
1518
  };
1535
1519
  outputFormat: "json";
1536
- status: 429;
1520
+ status: 404;
1537
1521
  input: {
1538
1522
  param: {
1539
1523
  keyId: string;
@@ -1548,14 +1532,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1548
1532
  } | {
1549
1533
  output: {
1550
1534
  error: {
1551
- code: "upstream_error";
1535
+ code: "api_key_not_found";
1552
1536
  details?: readonly Response.error.Detail[] | undefined;
1553
1537
  message: string;
1554
1538
  };
1555
1539
  requestId: string;
1556
1540
  };
1557
1541
  outputFormat: "json";
1558
- status: 502;
1542
+ status: 404;
1559
1543
  input: {
1560
1544
  param: {
1561
1545
  keyId: string;
@@ -1567,11 +1551,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1567
1551
  allowedIps: readonly string[];
1568
1552
  };
1569
1553
  };
1570
- };
1571
- };
1572
- } & {
1573
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
1574
- $post: {
1554
+ } | {
1575
1555
  output: {
1576
1556
  allowedIps: readonly string[];
1577
1557
  createdAt: string;
@@ -1585,7 +1565,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1585
1565
  projectId?: string | undefined;
1586
1566
  scopes: string[];
1587
1567
  tokenLast4: string;
1588
- token: string;
1589
1568
  };
1590
1569
  outputFormat: "json";
1591
1570
  status: 200;
@@ -1595,8 +1574,16 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1595
1574
  orgId: string;
1596
1575
  projectId: string;
1597
1576
  };
1577
+ } & {
1578
+ json: {
1579
+ allowedIps: readonly string[];
1580
+ };
1598
1581
  };
1599
- } | {
1582
+ };
1583
+ };
1584
+ } & {
1585
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
1586
+ $post: {
1600
1587
  output: {
1601
1588
  error: {
1602
1589
  code: "api_key_malformed";
@@ -1617,14 +1604,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1617
1604
  } | {
1618
1605
  output: {
1619
1606
  error: {
1620
- code: "param_invalid";
1607
+ code: "api_key_invalid" | "api_key_missing";
1621
1608
  details?: readonly Response.error.Detail[] | undefined;
1622
1609
  message: string;
1623
1610
  };
1624
1611
  requestId: string;
1625
1612
  };
1626
1613
  outputFormat: "json";
1627
- status: 400;
1614
+ status: 401;
1628
1615
  input: {
1629
1616
  param: {
1630
1617
  keyId: string;
@@ -1635,14 +1622,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1635
1622
  } | {
1636
1623
  output: {
1637
1624
  error: {
1638
- code: "api_key_invalid" | "api_key_missing";
1625
+ code: "upstream_error";
1639
1626
  details?: readonly Response.error.Detail[] | undefined;
1640
1627
  message: string;
1641
1628
  };
1642
1629
  requestId: string;
1643
1630
  };
1644
1631
  outputFormat: "json";
1645
- status: 401;
1632
+ status: 502;
1646
1633
  input: {
1647
1634
  param: {
1648
1635
  keyId: string;
@@ -1653,14 +1640,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1653
1640
  } | {
1654
1641
  output: {
1655
1642
  error: {
1656
- code: "forbidden";
1643
+ code: "param_invalid";
1657
1644
  details?: readonly Response.error.Detail[] | undefined;
1658
1645
  message: string;
1659
1646
  };
1660
1647
  requestId: string;
1661
1648
  };
1662
1649
  outputFormat: "json";
1663
- status: 403;
1650
+ status: 400;
1664
1651
  input: {
1665
1652
  param: {
1666
1653
  keyId: string;
@@ -1671,7 +1658,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1671
1658
  } | {
1672
1659
  output: {
1673
1660
  error: {
1674
- code: "scope_not_issuable";
1661
+ code: "forbidden";
1675
1662
  details?: readonly Response.error.Detail[] | undefined;
1676
1663
  message: string;
1677
1664
  };
@@ -1725,14 +1712,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1725
1712
  } | {
1726
1713
  output: {
1727
1714
  error: {
1728
- code: "api_key_not_found";
1715
+ code: "scope_not_issuable";
1729
1716
  details?: readonly Response.error.Detail[] | undefined;
1730
1717
  message: string;
1731
1718
  };
1732
1719
  requestId: string;
1733
1720
  };
1734
1721
  outputFormat: "json";
1735
- status: 404;
1722
+ status: 403;
1736
1723
  input: {
1737
1724
  param: {
1738
1725
  keyId: string;
@@ -1761,14 +1748,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1761
1748
  } | {
1762
1749
  output: {
1763
1750
  error: {
1764
- code: "upstream_error";
1751
+ code: "api_key_not_found";
1765
1752
  details?: readonly Response.error.Detail[] | undefined;
1766
1753
  message: string;
1767
1754
  };
1768
1755
  requestId: string;
1769
1756
  };
1770
1757
  outputFormat: "json";
1771
- status: 502;
1758
+ status: 404;
1772
1759
  input: {
1773
1760
  param: {
1774
1761
  keyId: string;
@@ -1776,13 +1763,21 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1776
1763
  projectId: string;
1777
1764
  };
1778
1765
  };
1779
- };
1780
- };
1781
- } & {
1782
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1783
- $delete: {
1766
+ } | {
1784
1767
  output: {
1768
+ allowedIps: readonly string[];
1769
+ createdAt: string;
1770
+ createdBy?: string | undefined;
1771
+ environment: "production" | "sandbox";
1772
+ expiresAt?: string | undefined;
1785
1773
  id: string;
1774
+ lastUsedAt?: string | undefined;
1775
+ name?: string | undefined;
1776
+ orgId: string;
1777
+ projectId?: string | undefined;
1778
+ scopes: string[];
1779
+ tokenLast4: string;
1780
+ token: string;
1786
1781
  };
1787
1782
  outputFormat: "json";
1788
1783
  status: 200;
@@ -1793,7 +1788,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1793
1788
  projectId: string;
1794
1789
  };
1795
1790
  };
1796
- } | {
1791
+ };
1792
+ };
1793
+ } & {
1794
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1795
+ $delete: {
1797
1796
  output: {
1798
1797
  error: {
1799
1798
  code: "api_key_malformed";
@@ -1814,14 +1813,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1814
1813
  } | {
1815
1814
  output: {
1816
1815
  error: {
1817
- code: "param_invalid";
1816
+ code: "api_key_invalid" | "api_key_missing";
1818
1817
  details?: readonly Response.error.Detail[] | undefined;
1819
1818
  message: string;
1820
1819
  };
1821
1820
  requestId: string;
1822
1821
  };
1823
1822
  outputFormat: "json";
1824
- status: 400;
1823
+ status: 401;
1825
1824
  input: {
1826
1825
  param: {
1827
1826
  keyId: string;
@@ -1832,14 +1831,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1832
1831
  } | {
1833
1832
  output: {
1834
1833
  error: {
1835
- code: "api_key_invalid" | "api_key_missing";
1834
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1836
1835
  details?: readonly Response.error.Detail[] | undefined;
1837
1836
  message: string;
1838
1837
  };
1839
1838
  requestId: string;
1840
1839
  };
1841
1840
  outputFormat: "json";
1842
- status: 401;
1841
+ status: 403;
1843
1842
  input: {
1844
1843
  param: {
1845
1844
  keyId: string;
@@ -1850,14 +1849,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1850
1849
  } | {
1851
1850
  output: {
1852
1851
  error: {
1853
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1852
+ code: "payment_required" | "rate_limit_exceeded";
1854
1853
  details?: readonly Response.error.Detail[] | undefined;
1855
1854
  message: string;
1856
1855
  };
1857
1856
  requestId: string;
1858
1857
  };
1859
1858
  outputFormat: "json";
1860
- status: 403;
1859
+ status: 429;
1861
1860
  input: {
1862
1861
  param: {
1863
1862
  keyId: string;
@@ -1868,14 +1867,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1868
1867
  } | {
1869
1868
  output: {
1870
1869
  error: {
1871
- code: "forbidden";
1870
+ code: "upstream_error";
1872
1871
  details?: readonly Response.error.Detail[] | undefined;
1873
1872
  message: string;
1874
1873
  };
1875
1874
  requestId: string;
1876
1875
  };
1877
1876
  outputFormat: "json";
1878
- status: 403;
1877
+ status: 502;
1879
1878
  input: {
1880
1879
  param: {
1881
1880
  keyId: string;
@@ -1886,14 +1885,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1886
1885
  } | {
1887
1886
  output: {
1888
1887
  error: {
1889
- code: "organization_not_found" | "project_not_found";
1888
+ code: "param_invalid";
1890
1889
  details?: readonly Response.error.Detail[] | undefined;
1891
1890
  message: string;
1892
1891
  };
1893
1892
  requestId: string;
1894
1893
  };
1895
1894
  outputFormat: "json";
1896
- status: 404;
1895
+ status: 400;
1897
1896
  input: {
1898
1897
  param: {
1899
1898
  keyId: string;
@@ -1904,14 +1903,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1904
1903
  } | {
1905
1904
  output: {
1906
1905
  error: {
1907
- code: "api_keys_not_enabled";
1906
+ code: "forbidden";
1908
1907
  details?: readonly Response.error.Detail[] | undefined;
1909
1908
  message: string;
1910
1909
  };
1911
1910
  requestId: string;
1912
1911
  };
1913
1912
  outputFormat: "json";
1914
- status: 404;
1913
+ status: 403;
1915
1914
  input: {
1916
1915
  param: {
1917
1916
  keyId: string;
@@ -1922,7 +1921,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1922
1921
  } | {
1923
1922
  output: {
1924
1923
  error: {
1925
- code: "api_key_not_found";
1924
+ code: "organization_not_found" | "project_not_found";
1926
1925
  details?: readonly Response.error.Detail[] | undefined;
1927
1926
  message: string;
1928
1927
  };
@@ -1940,14 +1939,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1940
1939
  } | {
1941
1940
  output: {
1942
1941
  error: {
1943
- code: "payment_required" | "rate_limit_exceeded";
1942
+ code: "api_keys_not_enabled";
1944
1943
  details?: readonly Response.error.Detail[] | undefined;
1945
1944
  message: string;
1946
1945
  };
1947
1946
  requestId: string;
1948
1947
  };
1949
1948
  outputFormat: "json";
1950
- status: 429;
1949
+ status: 404;
1951
1950
  input: {
1952
1951
  param: {
1953
1952
  keyId: string;
@@ -1958,14 +1957,27 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1958
1957
  } | {
1959
1958
  output: {
1960
1959
  error: {
1961
- code: "upstream_error";
1960
+ code: "api_key_not_found";
1962
1961
  details?: readonly Response.error.Detail[] | undefined;
1963
1962
  message: string;
1964
1963
  };
1965
1964
  requestId: string;
1966
1965
  };
1967
1966
  outputFormat: "json";
1968
- status: 502;
1967
+ status: 404;
1968
+ input: {
1969
+ param: {
1970
+ keyId: string;
1971
+ orgId: string;
1972
+ projectId: string;
1973
+ };
1974
+ };
1975
+ } | {
1976
+ output: {
1977
+ id: string;
1978
+ };
1979
+ outputFormat: "json";
1980
+ status: 200;
1969
1981
  input: {
1970
1982
  param: {
1971
1983
  keyId: string;