tapimo 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. package/dist/App.d.ts +6396 -4575
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +39 -4
  4. package/dist/App.js.map +1 -1
  5. package/dist/Assets.d.ts +15 -0
  6. package/dist/Assets.d.ts.map +1 -1
  7. package/dist/Assets.js +7 -0
  8. package/dist/Assets.js.map +1 -1
  9. package/dist/Scope.d.ts +2 -0
  10. package/dist/Scope.d.ts.map +1 -1
  11. package/dist/Scope.js +17 -0
  12. package/dist/Scope.js.map +1 -1
  13. package/dist/admin/App.d.ts +176 -78
  14. package/dist/admin/App.d.ts.map +1 -1
  15. package/dist/admin/apps/api-keys.d.ts +84 -4
  16. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  17. package/dist/admin/apps/api-keys.js +54 -0
  18. package/dist/admin/apps/api-keys.js.map +1 -1
  19. package/dist/admin/apps/earn-vaults.d.ts +123 -9
  20. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  21. package/dist/admin/apps/earn-vaults.js +60 -7
  22. package/dist/admin/apps/earn-vaults.js.map +1 -1
  23. package/dist/admin/apps/organizations.d.ts.map +1 -1
  24. package/dist/admin/apps/organizations.js +4 -2
  25. package/dist/admin/apps/organizations.js.map +1 -1
  26. package/dist/admin/apps/verified-tokens.d.ts +90 -90
  27. package/dist/admin/ui.generated.d.ts +1 -1
  28. package/dist/admin/ui.generated.js +71 -71
  29. package/dist/admin/ui.generated.js.map +1 -1
  30. package/dist/apps/Zones.d.ts +16 -16
  31. package/dist/apps/Zones.js +4 -4
  32. package/dist/apps/data/App.d.ts +1699 -749
  33. package/dist/apps/data/App.d.ts.map +1 -1
  34. package/dist/apps/data/App.js +58 -9
  35. package/dist/apps/data/App.js.map +1 -1
  36. package/dist/apps/data/ZoneSelection.d.ts +62 -0
  37. package/dist/apps/data/ZoneSelection.d.ts.map +1 -0
  38. package/dist/apps/data/ZoneSelection.js +44 -0
  39. package/dist/apps/data/ZoneSelection.js.map +1 -0
  40. package/dist/apps/data/routes/activities.d.ts +2417 -50
  41. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  42. package/dist/apps/data/routes/activities.js +1896 -1293
  43. package/dist/apps/data/routes/activities.js.map +1 -1
  44. package/dist/apps/data/routes/addresses.d.ts +471 -340
  45. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  46. package/dist/apps/data/routes/balances.d.ts +12 -12
  47. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  48. package/dist/apps/data/routes/balances.js +44 -17
  49. package/dist/apps/data/routes/balances.js.map +1 -1
  50. package/dist/apps/data/routes/blocks.d.ts +42 -42
  51. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  52. package/dist/apps/data/routes/blocks.js +22 -12
  53. package/dist/apps/data/routes/blocks.js.map +1 -1
  54. package/dist/apps/data/routes/coingecko.d.ts +179 -179
  55. package/dist/apps/data/routes/earn.d.ts +144 -19
  56. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  57. package/dist/apps/data/routes/earn.js +160 -28
  58. package/dist/apps/data/routes/earn.js.map +1 -1
  59. package/dist/apps/data/routes/exchanges.d.ts +719 -13
  60. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  61. package/dist/apps/data/routes/exchanges.js +16 -13
  62. package/dist/apps/data/routes/exchanges.js.map +1 -1
  63. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  64. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  65. package/dist/apps/data/routes/fee-amm.js +9 -11
  66. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  67. package/dist/apps/data/routes/indexer.d.ts +34 -34
  68. package/dist/apps/data/routes/receipts.d.ts +363 -263
  69. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  70. package/dist/apps/data/routes/receipts.js +29 -11
  71. package/dist/apps/data/routes/receipts.js.map +1 -1
  72. package/dist/apps/data/routes/rpc.js +24 -10
  73. package/dist/apps/data/routes/rpc.js.map +1 -1
  74. package/dist/apps/data/routes/tokenlist.d.ts +13 -13
  75. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
  76. package/dist/apps/data/routes/tokenlist.js +16 -15
  77. package/dist/apps/data/routes/tokenlist.js.map +1 -1
  78. package/dist/apps/data/routes/tokens.d.ts +112 -98
  79. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  80. package/dist/apps/data/routes/tokens.js +85 -35
  81. package/dist/apps/data/routes/tokens.js.map +1 -1
  82. package/dist/apps/data/routes/transactions.d.ts +7 -2
  83. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  84. package/dist/apps/data/routes/transactions.js +38 -18
  85. package/dist/apps/data/routes/transactions.js.map +1 -1
  86. package/dist/apps/data/routes/transfers.d.ts +1 -1
  87. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  88. package/dist/apps/data/routes/transfers.js +25 -21
  89. package/dist/apps/data/routes/transfers.js.map +1 -1
  90. package/dist/apps/data/routes/valuation.d.ts +1 -1
  91. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  92. package/dist/apps/data/routes/valuation.js +12 -7
  93. package/dist/apps/data/routes/valuation.js.map +1 -1
  94. package/dist/apps/data/routes/verified-tokens.d.ts +3 -3
  95. package/dist/apps/data/routes/webhooks.d.ts +15 -15
  96. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  97. package/dist/apps/data/routes/webhooks.js +2 -2
  98. package/dist/apps/data/routes/webhooks.js.map +1 -1
  99. package/dist/apps/data/routes/zones.d.ts +32 -32
  100. package/dist/apps/data/routes/zones.js +1 -1
  101. package/dist/apps/funding/App.d.ts +38 -27
  102. package/dist/apps/funding/App.d.ts.map +1 -1
  103. package/dist/apps/funding/routes/chains.d.ts.map +1 -1
  104. package/dist/apps/funding/routes/chains.js +5 -4
  105. package/dist/apps/funding/routes/chains.js.map +1 -1
  106. package/dist/apps/funding/routes/deposit-addresses.d.ts +16 -16
  107. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  108. package/dist/apps/funding/routes/deposit-addresses.js +24 -19
  109. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  110. package/dist/apps/funding/routes/providers.d.ts +13 -13
  111. package/dist/apps/funding/routes/providers.d.ts.map +1 -1
  112. package/dist/apps/funding/routes/providers.js +3 -2
  113. package/dist/apps/funding/routes/providers.js.map +1 -1
  114. package/dist/apps/funding/routes/quotes.d.ts.map +1 -1
  115. package/dist/apps/funding/routes/quotes.js +2 -2
  116. package/dist/apps/funding/routes/quotes.js.map +1 -1
  117. package/dist/apps/funding/routes/transfers.d.ts +60 -48
  118. package/dist/apps/funding/routes/transfers.d.ts.map +1 -1
  119. package/dist/apps/funding/routes/transfers.js +27 -19
  120. package/dist/apps/funding/routes/transfers.js.map +1 -1
  121. package/dist/apps/management/App.d.ts +4558 -3700
  122. package/dist/apps/management/App.d.ts.map +1 -1
  123. package/dist/apps/management/Billing.d.ts.map +1 -1
  124. package/dist/apps/management/Billing.js +19 -6
  125. package/dist/apps/management/Billing.js.map +1 -1
  126. package/dist/apps/management/routes/api-keys.d.ts +786 -175
  127. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  128. package/dist/apps/management/routes/api-keys.js +312 -34
  129. package/dist/apps/management/routes/api-keys.js.map +1 -1
  130. package/dist/apps/management/routes/billing.d.ts +103 -30
  131. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  132. package/dist/apps/management/routes/billing.js +91 -32
  133. package/dist/apps/management/routes/billing.js.map +1 -1
  134. package/dist/apps/management/routes/faucet.d.ts +35 -35
  135. package/dist/apps/management/routes/faucet.d.ts.map +1 -1
  136. package/dist/apps/management/routes/faucet.js +23 -12
  137. package/dist/apps/management/routes/faucet.js.map +1 -1
  138. package/dist/apps/management/routes/invitations.d.ts +46 -13
  139. package/dist/apps/management/routes/invitations.d.ts.map +1 -1
  140. package/dist/apps/management/routes/invitations.js +79 -29
  141. package/dist/apps/management/routes/invitations.js.map +1 -1
  142. package/dist/apps/management/routes/invite-links.d.ts +120 -75
  143. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  144. package/dist/apps/management/routes/invite-links.js +100 -41
  145. package/dist/apps/management/routes/invite-links.js.map +1 -1
  146. package/dist/apps/management/routes/me.d.ts +5 -5
  147. package/dist/apps/management/routes/me.d.ts.map +1 -1
  148. package/dist/apps/management/routes/me.js +14 -10
  149. package/dist/apps/management/routes/me.js.map +1 -1
  150. package/dist/apps/management/routes/members.d.ts +99 -78
  151. package/dist/apps/management/routes/members.d.ts.map +1 -1
  152. package/dist/apps/management/routes/members.js +37 -18
  153. package/dist/apps/management/routes/members.js.map +1 -1
  154. package/dist/apps/management/routes/orgs.d.ts +48 -8
  155. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  156. package/dist/apps/management/routes/orgs.js +48 -19
  157. package/dist/apps/management/routes/orgs.js.map +1 -1
  158. package/dist/apps/management/routes/projects.d.ts +108 -46
  159. package/dist/apps/management/routes/projects.d.ts.map +1 -1
  160. package/dist/apps/management/routes/projects.js +72 -21
  161. package/dist/apps/management/routes/projects.js.map +1 -1
  162. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  163. package/dist/apps/management/routes/scopes.js +8 -5
  164. package/dist/apps/management/routes/scopes.js.map +1 -1
  165. package/dist/apps/management/routes/usage.d.ts +82 -82
  166. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  167. package/dist/apps/management/routes/usage.js +41 -31
  168. package/dist/apps/management/routes/usage.js.map +1 -1
  169. package/dist/apps/management/routes/verified-token-requests.d.ts +35 -7
  170. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
  171. package/dist/apps/management/routes/verified-token-requests.js +36 -17
  172. package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
  173. package/dist/apps/management/routes/webhooks.d.ts +200 -183
  174. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  175. package/dist/apps/management/routes/webhooks.js +80 -35
  176. package/dist/apps/management/routes/webhooks.js.map +1 -1
  177. package/dist/apps/mpp/internal/Adapter.d.ts +1 -1
  178. package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
  179. package/dist/apps/mpp/internal/Adapter.js +12 -0
  180. package/dist/apps/mpp/internal/Adapter.js.map +1 -1
  181. package/dist/db/Db.d.ts +2 -0
  182. package/dist/db/Db.d.ts.map +1 -1
  183. package/dist/db/Db.js +52 -1
  184. package/dist/db/Db.js.map +1 -1
  185. package/dist/db/Schema.d.ts +26 -3
  186. package/dist/db/Schema.d.ts.map +1 -1
  187. package/dist/db/Schema.js +24 -5
  188. package/dist/db/Schema.js.map +1 -1
  189. package/dist/db/tables/earnVaults.d.ts +5 -1
  190. package/dist/db/tables/earnVaults.d.ts.map +1 -1
  191. package/dist/db/tables/earnVaults.js +5 -0
  192. package/dist/db/tables/earnVaults.js.map +1 -1
  193. package/dist/db/tables/fundingCatalog.d.ts +4 -2
  194. package/dist/db/tables/fundingCatalog.d.ts.map +1 -1
  195. package/dist/db/tables/fundingCatalog.js +5 -1
  196. package/dist/db/tables/fundingCatalog.js.map +1 -1
  197. package/dist/db/tables/webhookDeliveries.d.ts.map +1 -1
  198. package/dist/db/tables/webhookDeliveries.js +10 -0
  199. package/dist/db/tables/webhookDeliveries.js.map +1 -1
  200. package/dist/db/tables/webhookQueueCompletions.d.ts +15 -0
  201. package/dist/db/tables/webhookQueueCompletions.d.ts.map +1 -0
  202. package/dist/db/tables/webhookQueueCompletions.js +32 -0
  203. package/dist/db/tables/webhookQueueCompletions.js.map +1 -0
  204. package/dist/db/tables/webhookQueueEvents.d.ts +14 -20
  205. package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
  206. package/dist/db/tables/webhookQueueEvents.js +68 -47
  207. package/dist/db/tables/webhookQueueEvents.js.map +1 -1
  208. package/dist/db/tables/webhookSubscriptions.d.ts +16 -5
  209. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  210. package/dist/db/tables/webhookSubscriptions.js +29 -5
  211. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  212. package/dist/handlers/internal/utils.d.ts.map +1 -1
  213. package/dist/handlers/internal/utils.js +9 -0
  214. package/dist/handlers/internal/utils.js.map +1 -1
  215. package/dist/internal/Auth.d.ts +11 -2
  216. package/dist/internal/Auth.d.ts.map +1 -1
  217. package/dist/internal/Auth.js +19 -6
  218. package/dist/internal/Auth.js.map +1 -1
  219. package/dist/internal/Cache.d.ts.map +1 -1
  220. package/dist/internal/Cache.js +11 -7
  221. package/dist/internal/Cache.js.map +1 -1
  222. package/dist/internal/EarnVaults.d.ts +43 -4
  223. package/dist/internal/EarnVaults.d.ts.map +1 -1
  224. package/dist/internal/EarnVaults.js +167 -0
  225. package/dist/internal/EarnVaults.js.map +1 -1
  226. package/dist/internal/Fetch.d.ts +23 -0
  227. package/dist/internal/Fetch.d.ts.map +1 -0
  228. package/dist/internal/Fetch.js +26 -0
  229. package/dist/internal/Fetch.js.map +1 -0
  230. package/dist/internal/Log.d.ts +3 -1
  231. package/dist/internal/Log.d.ts.map +1 -1
  232. package/dist/internal/Log.js +16 -3
  233. package/dist/internal/Log.js.map +1 -1
  234. package/dist/internal/OpenApi.d.ts +30 -24
  235. package/dist/internal/OpenApi.d.ts.map +1 -1
  236. package/dist/internal/OpenApi.js +140 -41
  237. package/dist/internal/OpenApi.js.map +1 -1
  238. package/dist/internal/Response.d.ts +14 -9
  239. package/dist/internal/Response.d.ts.map +1 -1
  240. package/dist/internal/Response.js +16 -5
  241. package/dist/internal/Response.js.map +1 -1
  242. package/dist/internal/Schema.d.ts +11 -10
  243. package/dist/internal/Schema.d.ts.map +1 -1
  244. package/dist/internal/Schema.js +14 -9
  245. package/dist/internal/Schema.js.map +1 -1
  246. package/dist/internal/Store.d.ts +28 -6
  247. package/dist/internal/Store.d.ts.map +1 -1
  248. package/dist/internal/Store.js +121 -25
  249. package/dist/internal/Store.js.map +1 -1
  250. package/dist/internal/Tidx.d.ts +2 -0
  251. package/dist/internal/Tidx.d.ts.map +1 -1
  252. package/dist/internal/Tidx.js +23 -6
  253. package/dist/internal/Tidx.js.map +1 -1
  254. package/dist/internal/Timeout.d.ts +36 -0
  255. package/dist/internal/Timeout.d.ts.map +1 -0
  256. package/dist/internal/Timeout.js +37 -0
  257. package/dist/internal/Timeout.js.map +1 -0
  258. package/dist/internal/Timing.d.ts +9 -0
  259. package/dist/internal/Timing.d.ts.map +1 -1
  260. package/dist/internal/Timing.js +7 -0
  261. package/dist/internal/Timing.js.map +1 -1
  262. package/dist/internal/WebhookDestination.d.ts.map +1 -1
  263. package/dist/internal/WebhookDestination.js +3 -0
  264. package/dist/internal/WebhookDestination.js.map +1 -1
  265. package/dist/internal/Webhooks.d.ts +29 -12
  266. package/dist/internal/Webhooks.d.ts.map +1 -1
  267. package/dist/internal/Webhooks.js +37 -20
  268. package/dist/internal/Webhooks.js.map +1 -1
  269. package/dist/internal/funding/Action.d.ts +9 -0
  270. package/dist/internal/funding/Action.d.ts.map +1 -1
  271. package/dist/internal/funding/Action.js +16 -8
  272. package/dist/internal/funding/Action.js.map +1 -1
  273. package/dist/internal/funding/Catalog.d.ts +9 -2
  274. package/dist/internal/funding/Catalog.d.ts.map +1 -1
  275. package/dist/internal/funding/Catalog.js +19 -8
  276. package/dist/internal/funding/Catalog.js.map +1 -1
  277. package/dist/internal/funding/Deposit.d.ts +2 -2
  278. package/dist/internal/funding/Deposit.d.ts.map +1 -1
  279. package/dist/internal/funding/Deposit.js +9 -8
  280. package/dist/internal/funding/Deposit.js.map +1 -1
  281. package/dist/internal/funding/DepositAddress.d.ts +4 -4
  282. package/dist/internal/funding/DepositAddress.d.ts.map +1 -1
  283. package/dist/internal/funding/DepositAddress.js +9 -8
  284. package/dist/internal/funding/DepositAddress.js.map +1 -1
  285. package/dist/internal/funding/Provider.d.ts +68 -13
  286. package/dist/internal/funding/Provider.d.ts.map +1 -1
  287. package/dist/internal/funding/Provider.js +42 -20
  288. package/dist/internal/funding/Provider.js.map +1 -1
  289. package/dist/internal/funding/Transfer.d.ts +13 -12
  290. package/dist/internal/funding/Transfer.d.ts.map +1 -1
  291. package/dist/internal/funding/Transfer.js +23 -21
  292. package/dist/internal/funding/Transfer.js.map +1 -1
  293. package/dist/internal/funding/providers/stargate.d.ts +38 -0
  294. package/dist/internal/funding/providers/stargate.d.ts.map +1 -0
  295. package/dist/internal/funding/providers/stargate.js +277 -0
  296. package/dist/internal/funding/providers/stargate.js.map +1 -0
  297. package/dist/internal/index.d.ts +1 -0
  298. package/dist/internal/index.d.ts.map +1 -1
  299. package/dist/internal/index.js +1 -0
  300. package/dist/internal/index.js.map +1 -1
  301. package/dist/providers/index.d.ts +7 -0
  302. package/dist/providers/index.d.ts.map +1 -1
  303. package/dist/providers/index.js +3 -0
  304. package/dist/providers/index.js.map +1 -1
  305. package/package.json +3 -3
  306. package/src/App.test.ts +148 -0
  307. package/src/App.ts +45 -4
  308. package/src/Assets.test.ts +18 -0
  309. package/src/Assets.ts +22 -0
  310. package/src/Client.test-d.ts +311 -16
  311. package/src/Scope.test.ts +20 -0
  312. package/src/Scope.ts +16 -0
  313. package/src/admin/apps/api-keys.test.ts +75 -0
  314. package/src/admin/apps/api-keys.ts +64 -0
  315. package/src/admin/apps/earn-vaults.test.ts +143 -0
  316. package/src/admin/apps/earn-vaults.ts +84 -7
  317. package/src/admin/apps/organizations.ts +6 -2
  318. package/src/admin/ui/src/lib/api-keys.ts +19 -0
  319. package/src/admin/ui/src/routes/api-keys.tsx +125 -2
  320. package/src/admin/ui.generated.ts +71 -71
  321. package/src/apps/Zones.test.ts +4 -4
  322. package/src/apps/Zones.ts +4 -4
  323. package/src/apps/composition.test.ts +1 -1
  324. package/src/apps/data/App.test.ts +72 -0
  325. package/src/apps/data/App.ts +58 -10
  326. package/src/apps/data/ZoneSelection.test.ts +196 -0
  327. package/src/apps/data/ZoneSelection.ts +108 -0
  328. package/src/apps/data/routes/activities.test.ts +1843 -2
  329. package/src/apps/data/routes/activities.ts +2211 -1388
  330. package/src/apps/data/routes/balances.ts +134 -98
  331. package/src/apps/data/routes/blocks.test.ts +533 -0
  332. package/src/apps/data/routes/blocks.ts +36 -17
  333. package/src/apps/data/routes/earn.test.ts +187 -25
  334. package/src/apps/data/routes/earn.ts +228 -32
  335. package/src/apps/data/routes/earn.zone-access.test.ts +46 -0
  336. package/src/apps/data/routes/exchanges.test.ts +31 -1
  337. package/src/apps/data/routes/exchanges.ts +19 -15
  338. package/src/apps/data/routes/fee-amm.ts +18 -11
  339. package/src/apps/data/routes/receipts.ts +48 -17
  340. package/src/apps/data/routes/rpc.test.ts +75 -0
  341. package/src/apps/data/routes/rpc.ts +23 -9
  342. package/src/apps/data/routes/tokenlist.ts +21 -18
  343. package/src/apps/data/routes/tokens.test.ts +607 -0
  344. package/src/apps/data/routes/tokens.ts +312 -231
  345. package/src/apps/data/routes/transactions.ts +69 -30
  346. package/src/apps/data/routes/transfers.test.ts +424 -3
  347. package/src/apps/data/routes/transfers.ts +57 -36
  348. package/src/apps/data/routes/valuation.ts +94 -78
  349. package/src/apps/data/routes/webhooks.ts +6 -2
  350. package/src/apps/data/routes/zones.test.ts +21 -15
  351. package/src/apps/data/routes/zones.ts +1 -1
  352. package/src/apps/funding/routes/chains.test.ts +211 -7
  353. package/src/apps/funding/routes/chains.ts +19 -12
  354. package/src/apps/funding/routes/deposit-addresses.test.ts +416 -0
  355. package/src/apps/funding/routes/deposit-addresses.ts +101 -84
  356. package/src/apps/funding/routes/providers.ts +9 -5
  357. package/src/apps/funding/routes/quotes.test.ts +42 -0
  358. package/src/apps/funding/routes/quotes.ts +8 -5
  359. package/src/apps/funding/routes/transfers.test.ts +430 -40
  360. package/src/apps/funding/routes/transfers.ts +76 -59
  361. package/src/apps/management/Billing.test.ts +26 -0
  362. package/src/apps/management/Billing.ts +24 -7
  363. package/src/apps/management/routes/api-keys.test.ts +398 -0
  364. package/src/apps/management/routes/api-keys.ts +481 -145
  365. package/src/apps/management/routes/billing.test.ts +209 -0
  366. package/src/apps/management/routes/billing.ts +254 -177
  367. package/src/apps/management/routes/faucet.test.ts +39 -0
  368. package/src/apps/management/routes/faucet.ts +75 -41
  369. package/src/apps/management/routes/invitations.test.ts +216 -0
  370. package/src/apps/management/routes/invitations.ts +186 -109
  371. package/src/apps/management/routes/invite-links.test.ts +263 -1
  372. package/src/apps/management/routes/invite-links.ts +295 -214
  373. package/src/apps/management/routes/me.test.ts +49 -0
  374. package/src/apps/management/routes/me.ts +42 -32
  375. package/src/apps/management/routes/members.test.ts +124 -1
  376. package/src/apps/management/routes/members.ts +81 -51
  377. package/src/apps/management/routes/orgs.test.ts +176 -0
  378. package/src/apps/management/routes/orgs.ts +101 -59
  379. package/src/apps/management/routes/projects.test.ts +183 -0
  380. package/src/apps/management/routes/projects.ts +124 -60
  381. package/src/apps/management/routes/scopes.test.ts +44 -0
  382. package/src/apps/management/routes/scopes.ts +37 -28
  383. package/src/apps/management/routes/usage.test.ts +92 -0
  384. package/src/apps/management/routes/usage.ts +186 -151
  385. package/src/apps/management/routes/verified-token-requests.test.ts +114 -0
  386. package/src/apps/management/routes/verified-token-requests.ts +166 -133
  387. package/src/apps/management/routes/webhooks.test.ts +234 -0
  388. package/src/apps/management/routes/webhooks.ts +191 -78
  389. package/src/apps/mpp/internal/Adapter.ts +13 -1
  390. package/src/db/Db.test.ts +41 -0
  391. package/src/db/Db.ts +75 -1
  392. package/src/db/Schema.ts +33 -5
  393. package/src/db/tables/earnVaults.test.ts +22 -0
  394. package/src/db/tables/earnVaults.ts +11 -1
  395. package/src/db/tables/fundingCatalog.test.ts +16 -2
  396. package/src/db/tables/fundingCatalog.ts +9 -3
  397. package/src/db/tables/webhookDeliveries.ts +13 -0
  398. package/src/db/tables/webhookQueueCompletions.ts +55 -0
  399. package/src/db/tables/webhookQueueEvents.ts +95 -61
  400. package/src/db/tables/webhookSubscriptions.ts +45 -6
  401. package/src/handlers/internal/utils.test.ts +53 -0
  402. package/src/handlers/internal/utils.ts +15 -0
  403. package/src/internal/Auth.ts +35 -9
  404. package/src/internal/Cache.ts +14 -7
  405. package/src/internal/EarnVaults.capabilities.test.ts +33 -0
  406. package/src/internal/EarnVaults.test.ts +79 -0
  407. package/src/internal/EarnVaults.ts +277 -0
  408. package/src/internal/Fetch.test.ts +46 -0
  409. package/src/internal/Fetch.ts +56 -0
  410. package/src/internal/Log.test.ts +21 -0
  411. package/src/internal/Log.ts +20 -5
  412. package/src/internal/OpenApi.ts +177 -51
  413. package/src/internal/Response.test.ts +95 -0
  414. package/src/internal/Response.ts +41 -3
  415. package/src/internal/Schema.test.ts +18 -0
  416. package/src/internal/Schema.ts +19 -9
  417. package/src/internal/Store.test.ts +364 -0
  418. package/src/internal/Store.ts +153 -27
  419. package/src/internal/Tidx.test.ts +21 -1
  420. package/src/internal/Tidx.ts +23 -6
  421. package/src/internal/Timeout.test.ts +35 -0
  422. package/src/internal/Timeout.ts +73 -0
  423. package/src/internal/Timing.ts +16 -0
  424. package/src/internal/WebhookDestination.ts +3 -0
  425. package/src/internal/Webhooks.test.ts +122 -8
  426. package/src/internal/Webhooks.ts +59 -29
  427. package/src/internal/funding/Action.test.ts +41 -1
  428. package/src/internal/funding/Action.ts +69 -41
  429. package/src/internal/funding/Catalog.test.ts +34 -0
  430. package/src/internal/funding/Catalog.ts +28 -11
  431. package/src/internal/funding/Deposit.ts +71 -64
  432. package/src/internal/funding/DepositAddress.ts +50 -43
  433. package/src/internal/funding/Provider.test.ts +73 -0
  434. package/src/internal/funding/Provider.ts +246 -170
  435. package/src/internal/funding/Transfer.ts +133 -110
  436. package/src/internal/funding/providers/index.test.ts +22 -0
  437. package/src/internal/funding/providers/relay.test.ts +2 -2
  438. package/src/internal/funding/providers/stargate.test.ts +163 -0
  439. package/src/internal/funding/providers/stargate.ts +409 -0
  440. package/src/internal/index.test.ts +1 -0
  441. package/src/internal/index.ts +1 -0
  442. package/src/providers/index.test.ts +1 -0
  443. package/src/providers/index.ts +9 -0
@@ -6,15 +6,15 @@ export declare namespace schema {
6
6
  /** One API key: metadata only — the token appears once, at mint. */
7
7
  const Key: z.ZodMiniObject<{
8
8
  allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
9
- createdAt: z.ZodMiniString<string>;
9
+ createdAt: z.ZodMiniISODateTime;
10
10
  createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
11
11
  environment: z.ZodMiniEnum<{
12
12
  production: "production";
13
13
  sandbox: "sandbox";
14
14
  }>;
15
- expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
15
+ expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
16
16
  id: z.ZodMiniString<string>;
17
- lastUsedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
17
+ lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
18
18
  name: z.ZodMiniOptional<z.ZodMiniString<string>>;
19
19
  orgId: z.ZodMiniString<string>;
20
20
  projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
@@ -36,8 +36,13 @@ export declare namespace schema {
36
36
  orgId: z.ZodMiniString<string>;
37
37
  projectId: z.ZodMiniString<string>;
38
38
  }, z.core.$strip>;
39
+ /** Path parameters addressing one organization-level API key. */
40
+ const OrgKeyParams: z.ZodMiniObject<{
41
+ keyId: z.ZodMiniString<string>;
42
+ orgId: z.ZodMiniString<string>;
43
+ }, z.core.$strip>;
39
44
  /** Request body minting a key. The wildcard scope is not issuable here. */
40
- const KeyBody: z.ZodMiniObject<{
45
+ const CreateApiKeyRequest: z.ZodMiniObject<{
41
46
  allowedIps: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
42
47
  environment: z.ZodMiniDefault<z.ZodMiniEnum<{
43
48
  production: "production";
@@ -51,15 +56,15 @@ export declare namespace schema {
51
56
  /** The minted key plus its one-time token. */
52
57
  const Response: z.ZodMiniObject<{
53
58
  allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
54
- createdAt: z.ZodMiniString<string>;
59
+ createdAt: z.ZodMiniISODateTime;
55
60
  createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
56
61
  environment: z.ZodMiniEnum<{
57
62
  production: "production";
58
63
  sandbox: "sandbox";
59
64
  }>;
60
- expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
65
+ expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
61
66
  id: z.ZodMiniString<string>;
62
- lastUsedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
67
+ lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
63
68
  name: z.ZodMiniOptional<z.ZodMiniString<string>>;
64
69
  orgId: z.ZodMiniString<string>;
65
70
  projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
@@ -68,6 +73,26 @@ export declare namespace schema {
68
73
  token: z.ZodMiniString<string>;
69
74
  }, z.core.$strip>;
70
75
  }
76
+ /** Non-paginated list of API key metadata. */
77
+ const ApiKeyList: z.ZodMiniObject<{
78
+ data: z.ZodMiniArray<z.ZodMiniObject<{
79
+ allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
80
+ createdAt: z.ZodMiniISODateTime;
81
+ createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
82
+ environment: z.ZodMiniEnum<{
83
+ production: "production";
84
+ sandbox: "sandbox";
85
+ }>;
86
+ expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
87
+ id: z.ZodMiniString<string>;
88
+ lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
89
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
90
+ orgId: z.ZodMiniString<string>;
91
+ projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
92
+ scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
93
+ tokenLast4: z.ZodMiniString<string>;
94
+ }, z.core.$strip>>;
95
+ }, z.core.$strip>;
71
96
  /** Schemas for the listApiKeys operation. */
72
97
  namespace listApiKeys {
73
98
  /** Query parameters filtering a project's keys. */
@@ -81,15 +106,15 @@ export declare namespace schema {
81
106
  const Response: z.ZodMiniObject<{
82
107
  data: z.ZodMiniArray<z.ZodMiniObject<{
83
108
  allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
84
- createdAt: z.ZodMiniString<string>;
109
+ createdAt: z.ZodMiniISODateTime;
85
110
  createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
86
111
  environment: z.ZodMiniEnum<{
87
112
  production: "production";
88
113
  sandbox: "sandbox";
89
114
  }>;
90
- expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
115
+ expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
91
116
  id: z.ZodMiniString<string>;
92
- lastUsedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
117
+ lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
93
118
  name: z.ZodMiniOptional<z.ZodMiniString<string>>;
94
119
  orgId: z.ZodMiniString<string>;
95
120
  projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
@@ -111,15 +136,15 @@ export declare namespace schema {
111
136
  const Response: z.ZodMiniObject<{
112
137
  data: z.ZodMiniArray<z.ZodMiniObject<{
113
138
  allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
114
- createdAt: z.ZodMiniString<string>;
139
+ createdAt: z.ZodMiniISODateTime;
115
140
  createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
116
141
  environment: z.ZodMiniEnum<{
117
142
  production: "production";
118
143
  sandbox: "sandbox";
119
144
  }>;
120
- expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
145
+ expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
121
146
  id: z.ZodMiniString<string>;
122
- lastUsedAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
147
+ lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
123
148
  name: z.ZodMiniOptional<z.ZodMiniString<string>>;
124
149
  orgId: z.ZodMiniString<string>;
125
150
  projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
@@ -135,6 +160,28 @@ export declare namespace schema {
135
160
  id: z.ZodMiniString<string>;
136
161
  }, z.core.$strip>;
137
162
  }
163
+ /** Schemas for the rotateApiKey operation. */
164
+ namespace rotateApiKey {
165
+ /** The replacement key plus its one-time token. */
166
+ const Response: z.ZodMiniObject<{
167
+ allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
168
+ createdAt: z.ZodMiniISODateTime;
169
+ createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
170
+ environment: z.ZodMiniEnum<{
171
+ production: "production";
172
+ sandbox: "sandbox";
173
+ }>;
174
+ expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
175
+ id: z.ZodMiniString<string>;
176
+ lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
177
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
178
+ orgId: z.ZodMiniString<string>;
179
+ projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
180
+ scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
181
+ tokenLast4: z.ZodMiniString<string>;
182
+ token: z.ZodMiniString<string>;
183
+ }, z.core.$strip>;
184
+ }
138
185
  /** Schemas for the updateApiKey operation. */
139
186
  namespace updateApiKey {
140
187
  /** Request body replacing or clearing a key's IP allowlist. */
@@ -151,14 +198,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
151
198
  $post: {
152
199
  output: {
153
200
  error: {
154
- code: "api_key_malformed";
201
+ code: "upstream_error";
155
202
  details?: readonly Response.error.Detail[] | undefined;
156
203
  message: string;
157
204
  };
158
205
  requestId: string;
159
206
  };
160
207
  outputFormat: "json";
161
- status: 400;
208
+ status: 502;
162
209
  input: {
163
210
  param: {
164
211
  orgId: string;
@@ -175,14 +222,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
175
222
  } | {
176
223
  output: {
177
224
  error: {
178
- code: "api_key_invalid" | "api_key_missing";
225
+ code: "api_key_malformed";
179
226
  details?: readonly Response.error.Detail[] | undefined;
180
227
  message: string;
181
228
  };
182
229
  requestId: string;
183
230
  };
184
231
  outputFormat: "json";
185
- status: 401;
232
+ status: 400;
186
233
  input: {
187
234
  param: {
188
235
  orgId: string;
@@ -199,14 +246,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
199
246
  } | {
200
247
  output: {
201
248
  error: {
202
- code: "upstream_error";
249
+ code: "api_key_invalid" | "api_key_missing";
203
250
  details?: readonly Response.error.Detail[] | undefined;
204
251
  message: string;
205
252
  };
206
253
  requestId: string;
207
254
  };
208
255
  outputFormat: "json";
209
- status: 502;
256
+ status: 401;
210
257
  input: {
211
258
  param: {
212
259
  orgId: string;
@@ -223,14 +270,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
223
270
  } | {
224
271
  output: {
225
272
  error: {
226
- code: "forbidden";
273
+ code: "param_invalid";
227
274
  details?: readonly Response.error.Detail[] | undefined;
228
275
  message: string;
229
276
  };
230
277
  requestId: string;
231
278
  };
232
279
  outputFormat: "json";
233
- status: 403;
280
+ status: 400;
234
281
  input: {
235
282
  param: {
236
283
  orgId: string;
@@ -247,14 +294,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
247
294
  } | {
248
295
  output: {
249
296
  error: {
250
- code: "organization_not_found" | "project_not_found";
297
+ code: "body_invalid";
251
298
  details?: readonly Response.error.Detail[] | undefined;
252
299
  message: string;
253
300
  };
254
301
  requestId: string;
255
302
  };
256
303
  outputFormat: "json";
257
- status: 404;
304
+ status: 400;
258
305
  input: {
259
306
  param: {
260
307
  orgId: string;
@@ -271,14 +318,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
271
318
  } | {
272
319
  output: {
273
320
  error: {
274
- code: "param_invalid";
321
+ code: "forbidden";
275
322
  details?: readonly Response.error.Detail[] | undefined;
276
323
  message: string;
277
324
  };
278
325
  requestId: string;
279
326
  };
280
327
  outputFormat: "json";
281
- status: 400;
328
+ status: 403;
282
329
  input: {
283
330
  param: {
284
331
  orgId: string;
@@ -295,14 +342,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
295
342
  } | {
296
343
  output: {
297
344
  error: {
298
- code: "body_invalid";
345
+ code: "organization_not_found" | "project_not_found";
299
346
  details?: readonly Response.error.Detail[] | undefined;
300
347
  message: string;
301
348
  };
302
349
  requestId: string;
303
350
  };
304
351
  outputFormat: "json";
305
- status: 400;
352
+ status: 404;
306
353
  input: {
307
354
  param: {
308
355
  orgId: string;
@@ -402,14 +449,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
402
449
  $get: {
403
450
  output: {
404
451
  error: {
405
- code: "api_key_malformed";
452
+ code: "upstream_error";
406
453
  details?: readonly Response.error.Detail[] | undefined;
407
454
  message: string;
408
455
  };
409
456
  requestId: string;
410
457
  };
411
458
  outputFormat: "json";
412
- status: 400;
459
+ status: 502;
413
460
  input: {
414
461
  param: {
415
462
  orgId: string;
@@ -423,14 +470,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
423
470
  } | {
424
471
  output: {
425
472
  error: {
426
- code: "api_key_invalid" | "api_key_missing";
473
+ code: "query_invalid";
427
474
  details?: readonly Response.error.Detail[] | undefined;
428
475
  message: string;
429
476
  };
430
477
  requestId: string;
431
478
  };
432
479
  outputFormat: "json";
433
- status: 401;
480
+ status: 400;
434
481
  input: {
435
482
  param: {
436
483
  orgId: string;
@@ -444,14 +491,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
444
491
  } | {
445
492
  output: {
446
493
  error: {
447
- code: "api_key_forbidden" | "api_key_ip_forbidden";
494
+ code: "api_key_malformed";
448
495
  details?: readonly Response.error.Detail[] | undefined;
449
496
  message: string;
450
497
  };
451
498
  requestId: string;
452
499
  };
453
500
  outputFormat: "json";
454
- status: 403;
501
+ status: 400;
455
502
  input: {
456
503
  param: {
457
504
  orgId: string;
@@ -465,14 +512,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
465
512
  } | {
466
513
  output: {
467
514
  error: {
468
- code: "payment_required" | "rate_limit_exceeded";
515
+ code: "api_key_invalid" | "api_key_missing";
469
516
  details?: readonly Response.error.Detail[] | undefined;
470
517
  message: string;
471
518
  };
472
519
  requestId: string;
473
520
  };
474
521
  outputFormat: "json";
475
- status: 429;
522
+ status: 401;
476
523
  input: {
477
524
  param: {
478
525
  orgId: string;
@@ -486,14 +533,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
486
533
  } | {
487
534
  output: {
488
535
  error: {
489
- code: "query_invalid";
536
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
490
537
  details?: readonly Response.error.Detail[] | undefined;
491
538
  message: string;
492
539
  };
493
540
  requestId: string;
494
541
  };
495
542
  outputFormat: "json";
496
- status: 400;
543
+ status: 403;
497
544
  input: {
498
545
  param: {
499
546
  orgId: string;
@@ -507,14 +554,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
507
554
  } | {
508
555
  output: {
509
556
  error: {
510
- code: "upstream_error";
557
+ code: "payment_required" | "rate_limit_exceeded";
511
558
  details?: readonly Response.error.Detail[] | undefined;
512
559
  message: string;
513
560
  };
514
561
  requestId: string;
515
562
  };
516
563
  outputFormat: "json";
517
- status: 502;
564
+ status: 429;
518
565
  input: {
519
566
  param: {
520
567
  orgId: string;
@@ -528,14 +575,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
528
575
  } | {
529
576
  output: {
530
577
  error: {
531
- code: "organization_not_found" | "project_not_found";
578
+ code: "param_invalid";
532
579
  details?: readonly Response.error.Detail[] | undefined;
533
580
  message: string;
534
581
  };
535
582
  requestId: string;
536
583
  };
537
584
  outputFormat: "json";
538
- status: 404;
585
+ status: 400;
539
586
  input: {
540
587
  param: {
541
588
  orgId: string;
@@ -549,14 +596,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
549
596
  } | {
550
597
  output: {
551
598
  error: {
552
- code: "param_invalid";
599
+ code: "organization_not_found" | "project_not_found";
553
600
  details?: readonly Response.error.Detail[] | undefined;
554
601
  message: string;
555
602
  };
556
603
  requestId: string;
557
604
  };
558
605
  outputFormat: "json";
559
- status: 400;
606
+ status: 404;
560
607
  input: {
561
608
  param: {
562
609
  orgId: string;
@@ -624,34 +671,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
624
671
  $get: {
625
672
  output: {
626
673
  error: {
627
- code: "api_key_malformed";
628
- details?: readonly Response.error.Detail[] | undefined;
629
- message: string;
630
- };
631
- requestId: string;
632
- };
633
- outputFormat: "json";
634
- status: 400;
635
- input: {
636
- param: {
637
- orgId: string;
638
- };
639
- } & {
640
- query?: {
641
- environment?: string | string[];
642
- } | undefined;
643
- };
644
- } | {
645
- output: {
646
- error: {
647
- code: "api_key_invalid" | "api_key_missing";
674
+ code: "upstream_error";
648
675
  details?: readonly Response.error.Detail[] | undefined;
649
676
  message: string;
650
677
  };
651
678
  requestId: string;
652
679
  };
653
680
  outputFormat: "json";
654
- status: 401;
681
+ status: 502;
655
682
  input: {
656
683
  param: {
657
684
  orgId: string;
@@ -664,14 +691,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
664
691
  } | {
665
692
  output: {
666
693
  error: {
667
- code: "api_key_forbidden" | "api_key_ip_forbidden";
694
+ code: "query_invalid";
668
695
  details?: readonly Response.error.Detail[] | undefined;
669
696
  message: string;
670
697
  };
671
698
  requestId: string;
672
699
  };
673
700
  outputFormat: "json";
674
- status: 403;
701
+ status: 400;
675
702
  input: {
676
703
  param: {
677
704
  orgId: string;
@@ -684,14 +711,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
684
711
  } | {
685
712
  output: {
686
713
  error: {
687
- code: "payment_required" | "rate_limit_exceeded";
714
+ code: "api_key_malformed";
688
715
  details?: readonly Response.error.Detail[] | undefined;
689
716
  message: string;
690
717
  };
691
718
  requestId: string;
692
719
  };
693
720
  outputFormat: "json";
694
- status: 429;
721
+ status: 400;
695
722
  input: {
696
723
  param: {
697
724
  orgId: string;
@@ -704,14 +731,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
704
731
  } | {
705
732
  output: {
706
733
  error: {
707
- code: "query_invalid";
734
+ code: "api_key_invalid" | "api_key_missing";
708
735
  details?: readonly Response.error.Detail[] | undefined;
709
736
  message: string;
710
737
  };
711
738
  requestId: string;
712
739
  };
713
740
  outputFormat: "json";
714
- status: 400;
741
+ status: 401;
715
742
  input: {
716
743
  param: {
717
744
  orgId: string;
@@ -724,14 +751,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
724
751
  } | {
725
752
  output: {
726
753
  error: {
727
- code: "upstream_error";
754
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
728
755
  details?: readonly Response.error.Detail[] | undefined;
729
756
  message: string;
730
757
  };
731
758
  requestId: string;
732
759
  };
733
760
  outputFormat: "json";
734
- status: 502;
761
+ status: 403;
735
762
  input: {
736
763
  param: {
737
764
  orgId: string;
@@ -744,14 +771,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
744
771
  } | {
745
772
  output: {
746
773
  error: {
747
- code: "organization_not_found";
774
+ code: "payment_required" | "rate_limit_exceeded";
748
775
  details?: readonly Response.error.Detail[] | undefined;
749
776
  message: string;
750
777
  };
751
778
  requestId: string;
752
779
  };
753
780
  outputFormat: "json";
754
- status: 404;
781
+ status: 429;
755
782
  input: {
756
783
  param: {
757
784
  orgId: string;
@@ -829,206 +856,147 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
829
856
  environment?: string | string[];
830
857
  } | undefined;
831
858
  };
832
- };
833
- };
834
- } & {
835
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
836
- $patch: {
837
- output: {
838
- error: {
839
- code: "api_key_malformed";
840
- details?: readonly Response.error.Detail[] | undefined;
841
- message: string;
842
- };
843
- requestId: string;
844
- };
845
- outputFormat: "json";
846
- status: 400;
847
- input: {
848
- param: {
849
- keyId: string;
850
- orgId: string;
851
- projectId: string;
852
- };
853
- } & {
854
- json: {
855
- allowedIps: readonly string[];
856
- };
857
- };
858
859
  } | {
859
860
  output: {
860
861
  error: {
861
- code: "api_key_invalid" | "api_key_missing";
862
+ code: "organization_not_found";
862
863
  details?: readonly Response.error.Detail[] | undefined;
863
864
  message: string;
864
865
  };
865
866
  requestId: string;
866
867
  };
867
868
  outputFormat: "json";
868
- status: 401;
869
+ status: 404;
869
870
  input: {
870
871
  param: {
871
- keyId: string;
872
872
  orgId: string;
873
- projectId: string;
874
873
  };
875
874
  } & {
876
- json: {
877
- allowedIps: readonly string[];
878
- };
875
+ query?: {
876
+ environment?: string | string[];
877
+ } | undefined;
879
878
  };
880
- } | {
879
+ };
880
+ };
881
+ } & {
882
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
883
+ $post: {
881
884
  output: {
882
885
  error: {
883
- code: "api_key_forbidden" | "api_key_ip_forbidden";
886
+ code: "upstream_error";
884
887
  details?: readonly Response.error.Detail[] | undefined;
885
888
  message: string;
886
889
  };
887
890
  requestId: string;
888
891
  };
889
892
  outputFormat: "json";
890
- status: 403;
893
+ status: 502;
891
894
  input: {
892
895
  param: {
893
896
  keyId: string;
894
897
  orgId: string;
895
- projectId: string;
896
- };
897
- } & {
898
- json: {
899
- allowedIps: readonly string[];
900
898
  };
901
899
  };
902
900
  } | {
903
901
  output: {
904
902
  error: {
905
- code: "payment_required" | "rate_limit_exceeded";
903
+ code: "api_key_malformed";
906
904
  details?: readonly Response.error.Detail[] | undefined;
907
905
  message: string;
908
906
  };
909
907
  requestId: string;
910
908
  };
911
909
  outputFormat: "json";
912
- status: 429;
910
+ status: 400;
913
911
  input: {
914
912
  param: {
915
913
  keyId: string;
916
914
  orgId: string;
917
- projectId: string;
918
- };
919
- } & {
920
- json: {
921
- allowedIps: readonly string[];
922
915
  };
923
916
  };
924
917
  } | {
925
918
  output: {
926
919
  error: {
927
- code: "upstream_error";
920
+ code: "api_key_invalid" | "api_key_missing";
928
921
  details?: readonly Response.error.Detail[] | undefined;
929
922
  message: string;
930
923
  };
931
924
  requestId: string;
932
925
  };
933
926
  outputFormat: "json";
934
- status: 502;
927
+ status: 401;
935
928
  input: {
936
929
  param: {
937
930
  keyId: string;
938
931
  orgId: string;
939
- projectId: string;
940
- };
941
- } & {
942
- json: {
943
- allowedIps: readonly string[];
944
932
  };
945
933
  };
946
934
  } | {
947
935
  output: {
948
936
  error: {
949
- code: "organization_not_found" | "project_not_found";
937
+ code: "param_invalid";
950
938
  details?: readonly Response.error.Detail[] | undefined;
951
939
  message: string;
952
940
  };
953
941
  requestId: string;
954
942
  };
955
943
  outputFormat: "json";
956
- status: 404;
944
+ status: 400;
957
945
  input: {
958
946
  param: {
959
947
  keyId: string;
960
948
  orgId: string;
961
- projectId: string;
962
- };
963
- } & {
964
- json: {
965
- allowedIps: readonly string[];
966
949
  };
967
950
  };
968
951
  } | {
969
952
  output: {
970
953
  error: {
971
- code: "param_invalid";
954
+ code: "forbidden";
972
955
  details?: readonly Response.error.Detail[] | undefined;
973
956
  message: string;
974
957
  };
975
958
  requestId: string;
976
959
  };
977
960
  outputFormat: "json";
978
- status: 400;
961
+ status: 403;
979
962
  input: {
980
963
  param: {
981
964
  keyId: string;
982
965
  orgId: string;
983
- projectId: string;
984
- };
985
- } & {
986
- json: {
987
- allowedIps: readonly string[];
988
966
  };
989
967
  };
990
968
  } | {
991
969
  output: {
992
970
  error: {
993
- code: "body_invalid";
971
+ code: "api_keys_not_enabled";
994
972
  details?: readonly Response.error.Detail[] | undefined;
995
973
  message: string;
996
974
  };
997
975
  requestId: string;
998
976
  };
999
977
  outputFormat: "json";
1000
- status: 400;
978
+ status: 404;
1001
979
  input: {
1002
980
  param: {
1003
981
  keyId: string;
1004
982
  orgId: string;
1005
- projectId: string;
1006
- };
1007
- } & {
1008
- json: {
1009
- allowedIps: readonly string[];
1010
983
  };
1011
984
  };
1012
985
  } | {
1013
986
  output: {
1014
987
  error: {
1015
- code: "api_keys_not_enabled";
988
+ code: "scope_not_issuable";
1016
989
  details?: readonly Response.error.Detail[] | undefined;
1017
990
  message: string;
1018
991
  };
1019
992
  requestId: string;
1020
993
  };
1021
994
  outputFormat: "json";
1022
- status: 404;
995
+ status: 403;
1023
996
  input: {
1024
997
  param: {
1025
998
  keyId: string;
1026
999
  orgId: string;
1027
- projectId: string;
1028
- };
1029
- } & {
1030
- json: {
1031
- allowedIps: readonly string[];
1032
1000
  };
1033
1001
  };
1034
1002
  } | {
@@ -1046,11 +1014,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1046
1014
  param: {
1047
1015
  keyId: string;
1048
1016
  orgId: string;
1049
- projectId: string;
1050
- };
1051
- } & {
1052
- json: {
1053
- allowedIps: readonly string[];
1054
1017
  };
1055
1018
  };
1056
1019
  } | {
@@ -1067,6 +1030,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1067
1030
  projectId?: string | undefined;
1068
1031
  scopes: string[];
1069
1032
  tokenLast4: string;
1033
+ token: string;
1070
1034
  };
1071
1035
  outputFormat: "json";
1072
1036
  status: 200;
@@ -1074,21 +1038,477 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1074
1038
  param: {
1075
1039
  keyId: string;
1076
1040
  orgId: string;
1077
- projectId: string;
1078
- };
1079
- } & {
1080
- json: {
1081
- allowedIps: readonly string[];
1082
1041
  };
1083
1042
  };
1084
1043
  };
1085
1044
  };
1086
1045
  } & {
1087
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1046
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1088
1047
  $delete: {
1089
1048
  output: {
1090
1049
  error: {
1091
- code: "api_key_malformed";
1050
+ code: "upstream_error";
1051
+ details?: readonly Response.error.Detail[] | undefined;
1052
+ message: string;
1053
+ };
1054
+ requestId: string;
1055
+ };
1056
+ outputFormat: "json";
1057
+ status: 502;
1058
+ input: {
1059
+ param: {
1060
+ keyId: string;
1061
+ orgId: string;
1062
+ };
1063
+ };
1064
+ } | {
1065
+ output: {
1066
+ error: {
1067
+ code: "api_key_malformed";
1068
+ details?: readonly Response.error.Detail[] | undefined;
1069
+ message: string;
1070
+ };
1071
+ requestId: string;
1072
+ };
1073
+ outputFormat: "json";
1074
+ status: 400;
1075
+ input: {
1076
+ param: {
1077
+ keyId: string;
1078
+ orgId: string;
1079
+ };
1080
+ };
1081
+ } | {
1082
+ output: {
1083
+ error: {
1084
+ code: "api_key_invalid" | "api_key_missing";
1085
+ details?: readonly Response.error.Detail[] | undefined;
1086
+ message: string;
1087
+ };
1088
+ requestId: string;
1089
+ };
1090
+ outputFormat: "json";
1091
+ status: 401;
1092
+ input: {
1093
+ param: {
1094
+ keyId: string;
1095
+ orgId: string;
1096
+ };
1097
+ };
1098
+ } | {
1099
+ output: {
1100
+ error: {
1101
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1102
+ details?: readonly Response.error.Detail[] | undefined;
1103
+ message: string;
1104
+ };
1105
+ requestId: string;
1106
+ };
1107
+ outputFormat: "json";
1108
+ status: 403;
1109
+ input: {
1110
+ param: {
1111
+ keyId: string;
1112
+ orgId: string;
1113
+ };
1114
+ };
1115
+ } | {
1116
+ output: {
1117
+ error: {
1118
+ code: "payment_required" | "rate_limit_exceeded";
1119
+ details?: readonly Response.error.Detail[] | undefined;
1120
+ message: string;
1121
+ };
1122
+ requestId: string;
1123
+ };
1124
+ outputFormat: "json";
1125
+ status: 429;
1126
+ input: {
1127
+ param: {
1128
+ keyId: string;
1129
+ orgId: string;
1130
+ };
1131
+ };
1132
+ } | {
1133
+ output: {
1134
+ error: {
1135
+ code: "param_invalid";
1136
+ details?: readonly Response.error.Detail[] | undefined;
1137
+ message: string;
1138
+ };
1139
+ requestId: string;
1140
+ };
1141
+ outputFormat: "json";
1142
+ status: 400;
1143
+ input: {
1144
+ param: {
1145
+ keyId: string;
1146
+ orgId: string;
1147
+ };
1148
+ };
1149
+ } | {
1150
+ output: {
1151
+ error: {
1152
+ code: "forbidden";
1153
+ details?: readonly Response.error.Detail[] | undefined;
1154
+ message: string;
1155
+ };
1156
+ requestId: string;
1157
+ };
1158
+ outputFormat: "json";
1159
+ status: 403;
1160
+ input: {
1161
+ param: {
1162
+ keyId: string;
1163
+ orgId: string;
1164
+ };
1165
+ };
1166
+ } | {
1167
+ output: {
1168
+ error: {
1169
+ code: "api_keys_not_enabled";
1170
+ details?: readonly Response.error.Detail[] | undefined;
1171
+ message: string;
1172
+ };
1173
+ requestId: string;
1174
+ };
1175
+ outputFormat: "json";
1176
+ status: 404;
1177
+ input: {
1178
+ param: {
1179
+ keyId: string;
1180
+ orgId: string;
1181
+ };
1182
+ };
1183
+ } | {
1184
+ output: {
1185
+ error: {
1186
+ code: "api_key_not_found";
1187
+ details?: readonly Response.error.Detail[] | undefined;
1188
+ message: string;
1189
+ };
1190
+ requestId: string;
1191
+ };
1192
+ outputFormat: "json";
1193
+ status: 404;
1194
+ input: {
1195
+ param: {
1196
+ keyId: string;
1197
+ orgId: string;
1198
+ };
1199
+ };
1200
+ } | {
1201
+ output: {
1202
+ id: string;
1203
+ };
1204
+ outputFormat: "json";
1205
+ status: 200;
1206
+ input: {
1207
+ param: {
1208
+ keyId: string;
1209
+ orgId: string;
1210
+ };
1211
+ };
1212
+ };
1213
+ };
1214
+ } & {
1215
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1216
+ $patch: {
1217
+ output: {
1218
+ error: {
1219
+ code: "upstream_error";
1220
+ details?: readonly Response.error.Detail[] | undefined;
1221
+ message: string;
1222
+ };
1223
+ requestId: string;
1224
+ };
1225
+ outputFormat: "json";
1226
+ status: 502;
1227
+ input: {
1228
+ param: {
1229
+ keyId: string;
1230
+ orgId: string;
1231
+ projectId: string;
1232
+ };
1233
+ } & {
1234
+ json: {
1235
+ allowedIps: readonly string[];
1236
+ };
1237
+ };
1238
+ } | {
1239
+ output: {
1240
+ error: {
1241
+ code: "api_key_malformed";
1242
+ details?: readonly Response.error.Detail[] | undefined;
1243
+ message: string;
1244
+ };
1245
+ requestId: string;
1246
+ };
1247
+ outputFormat: "json";
1248
+ status: 400;
1249
+ input: {
1250
+ param: {
1251
+ keyId: string;
1252
+ orgId: string;
1253
+ projectId: string;
1254
+ };
1255
+ } & {
1256
+ json: {
1257
+ allowedIps: readonly string[];
1258
+ };
1259
+ };
1260
+ } | {
1261
+ output: {
1262
+ error: {
1263
+ code: "api_key_invalid" | "api_key_missing";
1264
+ details?: readonly Response.error.Detail[] | undefined;
1265
+ message: string;
1266
+ };
1267
+ requestId: string;
1268
+ };
1269
+ outputFormat: "json";
1270
+ status: 401;
1271
+ input: {
1272
+ param: {
1273
+ keyId: string;
1274
+ orgId: string;
1275
+ projectId: string;
1276
+ };
1277
+ } & {
1278
+ json: {
1279
+ allowedIps: readonly string[];
1280
+ };
1281
+ };
1282
+ } | {
1283
+ output: {
1284
+ error: {
1285
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1286
+ details?: readonly Response.error.Detail[] | undefined;
1287
+ message: string;
1288
+ };
1289
+ requestId: string;
1290
+ };
1291
+ outputFormat: "json";
1292
+ status: 403;
1293
+ input: {
1294
+ param: {
1295
+ keyId: string;
1296
+ orgId: string;
1297
+ projectId: string;
1298
+ };
1299
+ } & {
1300
+ json: {
1301
+ allowedIps: readonly string[];
1302
+ };
1303
+ };
1304
+ } | {
1305
+ output: {
1306
+ error: {
1307
+ code: "payment_required" | "rate_limit_exceeded";
1308
+ details?: readonly Response.error.Detail[] | undefined;
1309
+ message: string;
1310
+ };
1311
+ requestId: string;
1312
+ };
1313
+ outputFormat: "json";
1314
+ status: 429;
1315
+ input: {
1316
+ param: {
1317
+ keyId: string;
1318
+ orgId: string;
1319
+ projectId: string;
1320
+ };
1321
+ } & {
1322
+ json: {
1323
+ allowedIps: readonly string[];
1324
+ };
1325
+ };
1326
+ } | {
1327
+ output: {
1328
+ error: {
1329
+ code: "param_invalid";
1330
+ details?: readonly Response.error.Detail[] | undefined;
1331
+ message: string;
1332
+ };
1333
+ requestId: string;
1334
+ };
1335
+ outputFormat: "json";
1336
+ status: 400;
1337
+ input: {
1338
+ param: {
1339
+ keyId: string;
1340
+ orgId: string;
1341
+ projectId: string;
1342
+ };
1343
+ } & {
1344
+ json: {
1345
+ allowedIps: readonly string[];
1346
+ };
1347
+ };
1348
+ } | {
1349
+ output: {
1350
+ error: {
1351
+ code: "body_invalid";
1352
+ details?: readonly Response.error.Detail[] | undefined;
1353
+ message: string;
1354
+ };
1355
+ requestId: string;
1356
+ };
1357
+ outputFormat: "json";
1358
+ status: 400;
1359
+ input: {
1360
+ param: {
1361
+ keyId: string;
1362
+ orgId: string;
1363
+ projectId: string;
1364
+ };
1365
+ } & {
1366
+ json: {
1367
+ allowedIps: readonly string[];
1368
+ };
1369
+ };
1370
+ } | {
1371
+ output: {
1372
+ error: {
1373
+ code: "forbidden";
1374
+ details?: readonly Response.error.Detail[] | undefined;
1375
+ message: string;
1376
+ };
1377
+ requestId: string;
1378
+ };
1379
+ outputFormat: "json";
1380
+ status: 403;
1381
+ input: {
1382
+ param: {
1383
+ keyId: string;
1384
+ orgId: string;
1385
+ projectId: string;
1386
+ };
1387
+ } & {
1388
+ json: {
1389
+ allowedIps: readonly string[];
1390
+ };
1391
+ };
1392
+ } | {
1393
+ output: {
1394
+ error: {
1395
+ code: "organization_not_found" | "project_not_found";
1396
+ details?: readonly Response.error.Detail[] | undefined;
1397
+ message: string;
1398
+ };
1399
+ requestId: string;
1400
+ };
1401
+ outputFormat: "json";
1402
+ status: 404;
1403
+ input: {
1404
+ param: {
1405
+ keyId: string;
1406
+ orgId: string;
1407
+ projectId: string;
1408
+ };
1409
+ } & {
1410
+ json: {
1411
+ allowedIps: readonly string[];
1412
+ };
1413
+ };
1414
+ } | {
1415
+ output: {
1416
+ error: {
1417
+ code: "api_keys_not_enabled";
1418
+ details?: readonly Response.error.Detail[] | undefined;
1419
+ message: string;
1420
+ };
1421
+ requestId: string;
1422
+ };
1423
+ outputFormat: "json";
1424
+ status: 404;
1425
+ input: {
1426
+ param: {
1427
+ keyId: string;
1428
+ orgId: string;
1429
+ projectId: string;
1430
+ };
1431
+ } & {
1432
+ json: {
1433
+ allowedIps: readonly string[];
1434
+ };
1435
+ };
1436
+ } | {
1437
+ output: {
1438
+ error: {
1439
+ code: "api_key_not_found";
1440
+ details?: readonly Response.error.Detail[] | undefined;
1441
+ message: string;
1442
+ };
1443
+ requestId: string;
1444
+ };
1445
+ outputFormat: "json";
1446
+ status: 404;
1447
+ input: {
1448
+ param: {
1449
+ keyId: string;
1450
+ orgId: string;
1451
+ projectId: string;
1452
+ };
1453
+ } & {
1454
+ json: {
1455
+ allowedIps: readonly string[];
1456
+ };
1457
+ };
1458
+ } | {
1459
+ output: {
1460
+ allowedIps: readonly string[];
1461
+ createdAt: string;
1462
+ createdBy?: string | undefined;
1463
+ environment: "production" | "sandbox";
1464
+ expiresAt?: string | undefined;
1465
+ id: string;
1466
+ lastUsedAt?: string | undefined;
1467
+ name?: string | undefined;
1468
+ orgId: string;
1469
+ projectId?: string | undefined;
1470
+ scopes: string[];
1471
+ tokenLast4: string;
1472
+ };
1473
+ outputFormat: "json";
1474
+ status: 200;
1475
+ input: {
1476
+ param: {
1477
+ keyId: string;
1478
+ orgId: string;
1479
+ projectId: string;
1480
+ };
1481
+ } & {
1482
+ json: {
1483
+ allowedIps: readonly string[];
1484
+ };
1485
+ };
1486
+ };
1487
+ };
1488
+ } & {
1489
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
1490
+ $post: {
1491
+ output: {
1492
+ error: {
1493
+ code: "upstream_error";
1494
+ details?: readonly Response.error.Detail[] | undefined;
1495
+ message: string;
1496
+ };
1497
+ requestId: string;
1498
+ };
1499
+ outputFormat: "json";
1500
+ status: 502;
1501
+ input: {
1502
+ param: {
1503
+ keyId: string;
1504
+ orgId: string;
1505
+ projectId: string;
1506
+ };
1507
+ };
1508
+ } | {
1509
+ output: {
1510
+ error: {
1511
+ code: "api_key_malformed";
1092
1512
  details?: readonly Response.error.Detail[] | undefined;
1093
1513
  message: string;
1094
1514
  };
@@ -1124,7 +1544,25 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1124
1544
  } | {
1125
1545
  output: {
1126
1546
  error: {
1127
- code: "api_key_forbidden" | "api_key_ip_forbidden";
1547
+ code: "param_invalid";
1548
+ details?: readonly Response.error.Detail[] | undefined;
1549
+ message: string;
1550
+ };
1551
+ requestId: string;
1552
+ };
1553
+ outputFormat: "json";
1554
+ status: 400;
1555
+ input: {
1556
+ param: {
1557
+ keyId: string;
1558
+ orgId: string;
1559
+ projectId: string;
1560
+ };
1561
+ };
1562
+ } | {
1563
+ output: {
1564
+ error: {
1565
+ code: "forbidden";
1128
1566
  details?: readonly Response.error.Detail[] | undefined;
1129
1567
  message: string;
1130
1568
  };
@@ -1142,14 +1580,68 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1142
1580
  } | {
1143
1581
  output: {
1144
1582
  error: {
1145
- code: "payment_required" | "rate_limit_exceeded";
1583
+ code: "organization_not_found" | "project_not_found";
1146
1584
  details?: readonly Response.error.Detail[] | undefined;
1147
1585
  message: string;
1148
1586
  };
1149
1587
  requestId: string;
1150
1588
  };
1151
1589
  outputFormat: "json";
1152
- status: 429;
1590
+ status: 404;
1591
+ input: {
1592
+ param: {
1593
+ keyId: string;
1594
+ orgId: string;
1595
+ projectId: string;
1596
+ };
1597
+ };
1598
+ } | {
1599
+ output: {
1600
+ error: {
1601
+ code: "api_keys_not_enabled";
1602
+ details?: readonly Response.error.Detail[] | undefined;
1603
+ message: string;
1604
+ };
1605
+ requestId: string;
1606
+ };
1607
+ outputFormat: "json";
1608
+ status: 404;
1609
+ input: {
1610
+ param: {
1611
+ keyId: string;
1612
+ orgId: string;
1613
+ projectId: string;
1614
+ };
1615
+ };
1616
+ } | {
1617
+ output: {
1618
+ error: {
1619
+ code: "scope_not_issuable";
1620
+ details?: readonly Response.error.Detail[] | undefined;
1621
+ message: string;
1622
+ };
1623
+ requestId: string;
1624
+ };
1625
+ outputFormat: "json";
1626
+ status: 403;
1627
+ input: {
1628
+ param: {
1629
+ keyId: string;
1630
+ orgId: string;
1631
+ projectId: string;
1632
+ };
1633
+ };
1634
+ } | {
1635
+ output: {
1636
+ error: {
1637
+ code: "api_key_not_found";
1638
+ details?: readonly Response.error.Detail[] | undefined;
1639
+ message: string;
1640
+ };
1641
+ requestId: string;
1642
+ };
1643
+ outputFormat: "json";
1644
+ status: 404;
1153
1645
  input: {
1154
1646
  param: {
1155
1647
  keyId: string;
@@ -1158,6 +1650,35 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1158
1650
  };
1159
1651
  };
1160
1652
  } | {
1653
+ output: {
1654
+ allowedIps: readonly string[];
1655
+ createdAt: string;
1656
+ createdBy?: string | undefined;
1657
+ environment: "production" | "sandbox";
1658
+ expiresAt?: string | undefined;
1659
+ id: string;
1660
+ lastUsedAt?: string | undefined;
1661
+ name?: string | undefined;
1662
+ orgId: string;
1663
+ projectId?: string | undefined;
1664
+ scopes: string[];
1665
+ tokenLast4: string;
1666
+ token: string;
1667
+ };
1668
+ outputFormat: "json";
1669
+ status: 200;
1670
+ input: {
1671
+ param: {
1672
+ keyId: string;
1673
+ orgId: string;
1674
+ projectId: string;
1675
+ };
1676
+ };
1677
+ };
1678
+ };
1679
+ } & {
1680
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1681
+ $delete: {
1161
1682
  output: {
1162
1683
  error: {
1163
1684
  code: "upstream_error";
@@ -1178,14 +1699,68 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1178
1699
  } | {
1179
1700
  output: {
1180
1701
  error: {
1181
- code: "organization_not_found" | "project_not_found";
1702
+ code: "api_key_malformed";
1182
1703
  details?: readonly Response.error.Detail[] | undefined;
1183
1704
  message: string;
1184
1705
  };
1185
1706
  requestId: string;
1186
1707
  };
1187
1708
  outputFormat: "json";
1188
- status: 404;
1709
+ status: 400;
1710
+ input: {
1711
+ param: {
1712
+ keyId: string;
1713
+ orgId: string;
1714
+ projectId: string;
1715
+ };
1716
+ };
1717
+ } | {
1718
+ output: {
1719
+ error: {
1720
+ code: "api_key_invalid" | "api_key_missing";
1721
+ details?: readonly Response.error.Detail[] | undefined;
1722
+ message: string;
1723
+ };
1724
+ requestId: string;
1725
+ };
1726
+ outputFormat: "json";
1727
+ status: 401;
1728
+ input: {
1729
+ param: {
1730
+ keyId: string;
1731
+ orgId: string;
1732
+ projectId: string;
1733
+ };
1734
+ };
1735
+ } | {
1736
+ output: {
1737
+ error: {
1738
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1739
+ details?: readonly Response.error.Detail[] | undefined;
1740
+ message: string;
1741
+ };
1742
+ requestId: string;
1743
+ };
1744
+ outputFormat: "json";
1745
+ status: 403;
1746
+ input: {
1747
+ param: {
1748
+ keyId: string;
1749
+ orgId: string;
1750
+ projectId: string;
1751
+ };
1752
+ };
1753
+ } | {
1754
+ output: {
1755
+ error: {
1756
+ code: "payment_required" | "rate_limit_exceeded";
1757
+ details?: readonly Response.error.Detail[] | undefined;
1758
+ message: string;
1759
+ };
1760
+ requestId: string;
1761
+ };
1762
+ outputFormat: "json";
1763
+ status: 429;
1189
1764
  input: {
1190
1765
  param: {
1191
1766
  keyId: string;
@@ -1211,6 +1786,42 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1211
1786
  projectId: string;
1212
1787
  };
1213
1788
  };
1789
+ } | {
1790
+ output: {
1791
+ error: {
1792
+ code: "forbidden";
1793
+ details?: readonly Response.error.Detail[] | undefined;
1794
+ message: string;
1795
+ };
1796
+ requestId: string;
1797
+ };
1798
+ outputFormat: "json";
1799
+ status: 403;
1800
+ input: {
1801
+ param: {
1802
+ keyId: string;
1803
+ orgId: string;
1804
+ projectId: string;
1805
+ };
1806
+ };
1807
+ } | {
1808
+ output: {
1809
+ error: {
1810
+ code: "organization_not_found" | "project_not_found";
1811
+ details?: readonly Response.error.Detail[] | undefined;
1812
+ message: string;
1813
+ };
1814
+ requestId: string;
1815
+ };
1816
+ outputFormat: "json";
1817
+ status: 404;
1818
+ input: {
1819
+ param: {
1820
+ keyId: string;
1821
+ orgId: string;
1822
+ projectId: string;
1823
+ };
1824
+ };
1214
1825
  } | {
1215
1826
  output: {
1216
1827
  error: {