tapimo 0.12.0 → 0.14.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 (398) hide show
  1. package/dist/App.d.ts +11333 -9563
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +39 -3
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +2 -0
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +17 -0
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/Webhooks.js +2 -2
  10. package/dist/Webhooks.js.map +1 -1
  11. package/dist/admin/App.d.ts +1064 -924
  12. package/dist/admin/App.d.ts.map +1 -1
  13. package/dist/admin/apps/api-keys.d.ts +80 -0
  14. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  15. package/dist/admin/apps/api-keys.js +54 -0
  16. package/dist/admin/apps/api-keys.js.map +1 -1
  17. package/dist/admin/apps/earn-vaults.d.ts +63 -15
  18. package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
  19. package/dist/admin/apps/earn-vaults.js +2 -1
  20. package/dist/admin/apps/earn-vaults.js.map +1 -1
  21. package/dist/admin/apps/organizations.d.ts +92 -3
  22. package/dist/admin/apps/organizations.d.ts.map +1 -1
  23. package/dist/admin/apps/organizations.js +69 -7
  24. package/dist/admin/apps/organizations.js.map +1 -1
  25. package/dist/admin/apps/verified-tokens.d.ts +7 -7
  26. package/dist/admin/ui.generated.d.ts +1 -1
  27. package/dist/admin/ui.generated.d.ts.map +1 -1
  28. package/dist/admin/ui.generated.js +151 -151
  29. package/dist/admin/ui.generated.js.map +1 -1
  30. package/dist/apps/Zones.d.ts +28 -28
  31. package/dist/apps/Zones.js +7 -7
  32. package/dist/apps/data/App.d.ts +2909 -2523
  33. package/dist/apps/data/App.d.ts.map +1 -1
  34. package/dist/apps/data/App.js +26 -21
  35. package/dist/apps/data/App.js.map +1 -1
  36. package/dist/apps/data/ZoneSelection.d.ts +8 -8
  37. package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
  38. package/dist/apps/data/ZoneSelection.js +1 -1
  39. package/dist/apps/data/ZoneSelection.js.map +1 -1
  40. package/dist/apps/data/routes/activities.d.ts +588 -584
  41. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  42. package/dist/apps/data/routes/activities.js +1561 -1239
  43. package/dist/apps/data/routes/activities.js.map +1 -1
  44. package/dist/apps/data/routes/addresses.d.ts +22 -22
  45. package/dist/apps/data/routes/balances.d.ts +26 -26
  46. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  47. package/dist/apps/data/routes/balances.js +43 -16
  48. package/dist/apps/data/routes/balances.js.map +1 -1
  49. package/dist/apps/data/routes/blocks.d.ts +44 -44
  50. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  51. package/dist/apps/data/routes/blocks.js +21 -11
  52. package/dist/apps/data/routes/blocks.js.map +1 -1
  53. package/dist/apps/data/routes/coingecko.d.ts +3 -3
  54. package/dist/apps/data/routes/earn.d.ts +201 -25
  55. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  56. package/dist/apps/data/routes/earn.js +434 -75
  57. package/dist/apps/data/routes/earn.js.map +1 -1
  58. package/dist/apps/data/routes/exchanges.d.ts +160 -145
  59. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  60. package/dist/apps/data/routes/exchanges.js +180 -114
  61. package/dist/apps/data/routes/exchanges.js.map +1 -1
  62. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  63. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  64. package/dist/apps/data/routes/fee-amm.js +18 -19
  65. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  66. package/dist/apps/data/routes/receipts.d.ts +155 -55
  67. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  68. package/dist/apps/data/routes/receipts.js +28 -10
  69. package/dist/apps/data/routes/receipts.js.map +1 -1
  70. package/dist/apps/data/routes/tokenlist.d.ts +13 -13
  71. package/dist/apps/data/routes/tokens.d.ts +5 -5
  72. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  73. package/dist/apps/data/routes/tokens.js +51 -20
  74. package/dist/apps/data/routes/tokens.js.map +1 -1
  75. package/dist/apps/data/routes/transactions.d.ts +7 -2
  76. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  77. package/dist/apps/data/routes/transactions.js +37 -17
  78. package/dist/apps/data/routes/transactions.js.map +1 -1
  79. package/dist/apps/data/routes/transfers.d.ts +13 -13
  80. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  81. package/dist/apps/data/routes/transfers.js +18 -12
  82. package/dist/apps/data/routes/transfers.js.map +1 -1
  83. package/dist/apps/data/routes/valuation.d.ts +31 -31
  84. package/dist/apps/data/routes/valuation.d.ts.map +1 -1
  85. package/dist/apps/data/routes/valuation.js +12 -7
  86. package/dist/apps/data/routes/valuation.js.map +1 -1
  87. package/dist/apps/data/routes/verified-tokens.d.ts +8 -8
  88. package/dist/apps/data/routes/webhooks.d.ts +816 -113
  89. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  90. package/dist/apps/data/routes/webhooks.js +47 -5
  91. package/dist/apps/data/routes/webhooks.js.map +1 -1
  92. package/dist/apps/data/routes/zones.d.ts +14 -14
  93. package/dist/apps/data/routes/zones.js +1 -1
  94. package/dist/apps/funding/App.d.ts +466 -44
  95. package/dist/apps/funding/App.d.ts.map +1 -1
  96. package/dist/apps/funding/App.js +1 -1
  97. package/dist/apps/funding/App.js.map +1 -1
  98. package/dist/apps/funding/routes/deposit-addresses.d.ts +17 -17
  99. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
  100. package/dist/apps/funding/routes/deposit-addresses.js +17 -12
  101. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
  102. package/dist/apps/funding/routes/transfers.d.ts +650 -57
  103. package/dist/apps/funding/routes/transfers.d.ts.map +1 -1
  104. package/dist/apps/funding/routes/transfers.js +238 -24
  105. package/dist/apps/funding/routes/transfers.js.map +1 -1
  106. package/dist/apps/management/App.d.ts +5120 -4152
  107. package/dist/apps/management/App.d.ts.map +1 -1
  108. package/dist/apps/management/Billing.d.ts +1 -1
  109. package/dist/apps/management/Billing.d.ts.map +1 -1
  110. package/dist/apps/management/Billing.js +17 -1
  111. package/dist/apps/management/Billing.js.map +1 -1
  112. package/dist/apps/management/routes/api-keys.d.ts +632 -81
  113. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  114. package/dist/apps/management/routes/api-keys.js +236 -4
  115. package/dist/apps/management/routes/api-keys.js.map +1 -1
  116. package/dist/apps/management/routes/billing.d.ts +76 -76
  117. package/dist/apps/management/routes/faucet.d.ts +6 -6
  118. package/dist/apps/management/routes/invitations.d.ts +24 -24
  119. package/dist/apps/management/routes/invite-links.d.ts +4 -4
  120. package/dist/apps/management/routes/members.d.ts +16 -16
  121. package/dist/apps/management/routes/orgs.d.ts +20 -20
  122. package/dist/apps/management/routes/projects.d.ts +4 -4
  123. package/dist/apps/management/routes/usage.d.ts +8 -8
  124. package/dist/apps/management/routes/verified-token-requests.d.ts +17 -17
  125. package/dist/apps/management/routes/webhooks.d.ts +675 -25
  126. package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
  127. package/dist/apps/management/routes/webhooks.js +21 -21
  128. package/dist/apps/management/routes/webhooks.js.map +1 -1
  129. package/dist/apps/relay/App.d.ts.map +1 -1
  130. package/dist/apps/relay/App.js +115 -23
  131. package/dist/apps/relay/App.js.map +1 -1
  132. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  133. package/dist/apps/relay/Sponsorships.js +27 -1
  134. package/dist/apps/relay/Sponsorships.js.map +1 -1
  135. package/dist/db/Db.d.ts.map +1 -1
  136. package/dist/db/Db.js +34 -1
  137. package/dist/db/Db.js.map +1 -1
  138. package/dist/db/Schema.d.ts +11 -5
  139. package/dist/db/Schema.d.ts.map +1 -1
  140. package/dist/db/Schema.js +21 -3
  141. package/dist/db/Schema.js.map +1 -1
  142. package/dist/db/tables/fundingCatalog.d.ts +4 -2
  143. package/dist/db/tables/fundingCatalog.d.ts.map +1 -1
  144. package/dist/db/tables/fundingCatalog.js +5 -1
  145. package/dist/db/tables/fundingCatalog.js.map +1 -1
  146. package/dist/db/tables/fundingTransferTransactions.d.ts +38 -0
  147. package/dist/db/tables/fundingTransferTransactions.d.ts.map +1 -1
  148. package/dist/db/tables/fundingTransferTransactions.js +44 -3
  149. package/dist/db/tables/fundingTransferTransactions.js.map +1 -1
  150. package/dist/db/tables/fundingTransfers.d.ts +17 -0
  151. package/dist/db/tables/fundingTransfers.d.ts.map +1 -1
  152. package/dist/db/tables/fundingTransfers.js +21 -0
  153. package/dist/db/tables/fundingTransfers.js.map +1 -1
  154. package/dist/db/tables/organizations.d.ts +24 -0
  155. package/dist/db/tables/organizations.d.ts.map +1 -1
  156. package/dist/db/tables/organizations.js +27 -0
  157. package/dist/db/tables/organizations.js.map +1 -1
  158. package/dist/db/tables/projects.d.ts +25 -1
  159. package/dist/db/tables/projects.d.ts.map +1 -1
  160. package/dist/db/tables/projects.js +26 -0
  161. package/dist/db/tables/projects.js.map +1 -1
  162. package/dist/db/tables/sponsoredTransactions.d.ts +44 -0
  163. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  164. package/dist/db/tables/sponsoredTransactions.js +146 -13
  165. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  166. package/dist/db/tables/webhookSubscriptions.d.ts +10 -6
  167. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  168. package/dist/db/tables/webhookSubscriptions.js +9 -6
  169. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  170. package/dist/handlers/internal/utils.d.ts.map +1 -1
  171. package/dist/handlers/internal/utils.js +9 -0
  172. package/dist/handlers/internal/utils.js.map +1 -1
  173. package/dist/internal/Auth.d.ts +3 -1
  174. package/dist/internal/Auth.d.ts.map +1 -1
  175. package/dist/internal/Auth.js +6 -3
  176. package/dist/internal/Auth.js.map +1 -1
  177. package/dist/internal/EarnVaults.d.ts +3 -3
  178. package/dist/internal/EarnVaults.js +5 -5
  179. package/dist/internal/EarnVaults.js.map +1 -1
  180. package/dist/internal/Fetch.d.ts +23 -0
  181. package/dist/internal/Fetch.d.ts.map +1 -0
  182. package/dist/internal/Fetch.js +26 -0
  183. package/dist/internal/Fetch.js.map +1 -0
  184. package/dist/internal/Log.d.ts +4 -2
  185. package/dist/internal/Log.d.ts.map +1 -1
  186. package/dist/internal/Log.js +16 -3
  187. package/dist/internal/Log.js.map +1 -1
  188. package/dist/internal/OpenApi.d.ts +5 -3
  189. package/dist/internal/OpenApi.d.ts.map +1 -1
  190. package/dist/internal/OpenApi.js +13 -3
  191. package/dist/internal/OpenApi.js.map +1 -1
  192. package/dist/internal/Response.d.ts +1 -1
  193. package/dist/internal/Response.d.ts.map +1 -1
  194. package/dist/internal/Schema.d.ts +6 -3
  195. package/dist/internal/Schema.d.ts.map +1 -1
  196. package/dist/internal/Schema.js +8 -2
  197. package/dist/internal/Schema.js.map +1 -1
  198. package/dist/internal/Store.d.ts +16 -3
  199. package/dist/internal/Store.d.ts.map +1 -1
  200. package/dist/internal/Store.js +82 -16
  201. package/dist/internal/Store.js.map +1 -1
  202. package/dist/internal/Tidx.d.ts.map +1 -1
  203. package/dist/internal/Tidx.js +7 -2
  204. package/dist/internal/Tidx.js.map +1 -1
  205. package/dist/internal/Timeout.d.ts +36 -0
  206. package/dist/internal/Timeout.d.ts.map +1 -0
  207. package/dist/internal/Timeout.js +37 -0
  208. package/dist/internal/Timeout.js.map +1 -0
  209. package/dist/internal/Timing.d.ts +9 -0
  210. package/dist/internal/Timing.d.ts.map +1 -1
  211. package/dist/internal/Timing.js +7 -0
  212. package/dist/internal/Timing.js.map +1 -1
  213. package/dist/internal/Viem.d.ts +16 -1
  214. package/dist/internal/Viem.d.ts.map +1 -1
  215. package/dist/internal/Viem.js +12 -2
  216. package/dist/internal/Viem.js.map +1 -1
  217. package/dist/internal/WebhookDestination.d.ts.map +1 -1
  218. package/dist/internal/WebhookDestination.js +3 -0
  219. package/dist/internal/WebhookDestination.js.map +1 -1
  220. package/dist/internal/funding/Action.d.ts +9 -0
  221. package/dist/internal/funding/Action.d.ts.map +1 -1
  222. package/dist/internal/funding/Action.js +16 -8
  223. package/dist/internal/funding/Action.js.map +1 -1
  224. package/dist/internal/funding/Catalog.d.ts +9 -2
  225. package/dist/internal/funding/Catalog.d.ts.map +1 -1
  226. package/dist/internal/funding/Catalog.js +19 -8
  227. package/dist/internal/funding/Catalog.js.map +1 -1
  228. package/dist/internal/funding/DepositWebhook.d.ts.map +1 -1
  229. package/dist/internal/funding/DepositWebhook.js +2 -1
  230. package/dist/internal/funding/DepositWebhook.js.map +1 -1
  231. package/dist/internal/funding/Evidence.d.ts.map +1 -1
  232. package/dist/internal/funding/Evidence.js +2 -10
  233. package/dist/internal/funding/Evidence.js.map +1 -1
  234. package/dist/internal/funding/Provider.d.ts +108 -13
  235. package/dist/internal/funding/Provider.d.ts.map +1 -1
  236. package/dist/internal/funding/Provider.js +34 -8
  237. package/dist/internal/funding/Provider.js.map +1 -1
  238. package/dist/internal/funding/SourceObservation.d.ts.map +1 -1
  239. package/dist/internal/funding/SourceObservation.js +5 -7
  240. package/dist/internal/funding/SourceObservation.js.map +1 -1
  241. package/dist/internal/funding/Transfer.d.ts +114 -18
  242. package/dist/internal/funding/Transfer.d.ts.map +1 -1
  243. package/dist/internal/funding/Transfer.js +185 -55
  244. package/dist/internal/funding/Transfer.js.map +1 -1
  245. package/dist/internal/funding/TransferReconciliation.d.ts +52 -0
  246. package/dist/internal/funding/TransferReconciliation.d.ts.map +1 -0
  247. package/dist/internal/funding/TransferReconciliation.js +192 -0
  248. package/dist/internal/funding/TransferReconciliation.js.map +1 -0
  249. package/dist/internal/funding/TransferWebhook.d.ts +21 -0
  250. package/dist/internal/funding/TransferWebhook.d.ts.map +1 -0
  251. package/dist/internal/funding/TransferWebhook.js +43 -0
  252. package/dist/internal/funding/TransferWebhook.js.map +1 -0
  253. package/dist/internal/funding/index.d.ts +1 -0
  254. package/dist/internal/funding/index.d.ts.map +1 -1
  255. package/dist/internal/funding/index.js +1 -0
  256. package/dist/internal/funding/index.js.map +1 -1
  257. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  258. package/dist/internal/funding/providers/relay.js +3 -12
  259. package/dist/internal/funding/providers/relay.js.map +1 -1
  260. package/dist/internal/funding/providers/stargate.d.ts +127 -9
  261. package/dist/internal/funding/providers/stargate.d.ts.map +1 -1
  262. package/dist/internal/funding/providers/stargate.js +548 -112
  263. package/dist/internal/funding/providers/stargate.js.map +1 -1
  264. package/dist/internal/index.d.ts +1 -0
  265. package/dist/internal/index.d.ts.map +1 -1
  266. package/dist/internal/index.js +1 -0
  267. package/dist/internal/index.js.map +1 -1
  268. package/dist/internal/webhookDestinations/slack.d.ts.map +1 -1
  269. package/dist/internal/webhookDestinations/slack.js +16 -0
  270. package/dist/internal/webhookDestinations/slack.js.map +1 -1
  271. package/package.json +2 -2
  272. package/src/App.test.ts +100 -0
  273. package/src/App.ts +43 -3
  274. package/src/Client.test-d.ts +129 -2
  275. package/src/Scope.test.ts +20 -0
  276. package/src/Scope.ts +16 -0
  277. package/src/Webhooks.ts +2 -2
  278. package/src/admin/apps/api-keys.test.ts +75 -0
  279. package/src/admin/apps/api-keys.ts +64 -0
  280. package/src/admin/apps/earn-vaults.test.ts +1 -1
  281. package/src/admin/apps/earn-vaults.ts +2 -1
  282. package/src/admin/apps/organizations.test.ts +53 -1
  283. package/src/admin/apps/organizations.ts +90 -5
  284. package/src/admin/ui/src/lib/api-keys.ts +19 -0
  285. package/src/admin/ui/src/lib/organizations.test.ts +112 -1
  286. package/src/admin/ui/src/lib/organizations.ts +55 -0
  287. package/src/admin/ui/src/routes/api-keys.tsx +89 -2
  288. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +116 -0
  289. package/src/admin/ui.generated.ts +189 -151
  290. package/src/apps/Zones.test.ts +7 -7
  291. package/src/apps/Zones.ts +7 -7
  292. package/src/apps/composition.test.ts +2 -1
  293. package/src/apps/data/App.test.ts +41 -0
  294. package/src/apps/data/App.ts +30 -21
  295. package/src/apps/data/ZoneSelection.test.ts +2 -2
  296. package/src/apps/data/ZoneSelection.ts +8 -8
  297. package/src/apps/data/routes/activities.test.ts +1526 -12
  298. package/src/apps/data/routes/activities.ts +1774 -1356
  299. package/src/apps/data/routes/balances.ts +133 -97
  300. package/src/apps/data/routes/blocks.test.ts +533 -0
  301. package/src/apps/data/routes/blocks.ts +35 -16
  302. package/src/apps/data/routes/earn.test.ts +373 -16
  303. package/src/apps/data/routes/earn.ts +548 -79
  304. package/src/apps/data/routes/earn.zone-access.test.ts +6 -6
  305. package/src/apps/data/routes/exchanges.test.ts +740 -15
  306. package/src/apps/data/routes/exchanges.ts +954 -753
  307. package/src/apps/data/routes/fee-amm.ts +17 -18
  308. package/src/apps/data/routes/receipts.ts +47 -16
  309. package/src/apps/data/routes/tokens.test.ts +578 -0
  310. package/src/apps/data/routes/tokens.ts +283 -225
  311. package/src/apps/data/routes/transactions.ts +68 -29
  312. package/src/apps/data/routes/transfers.test.ts +421 -0
  313. package/src/apps/data/routes/transfers.ts +45 -27
  314. package/src/apps/data/routes/valuation.ts +94 -78
  315. package/src/apps/data/routes/webhooks.test.ts +21 -5
  316. package/src/apps/data/routes/webhooks.ts +63 -8
  317. package/src/apps/data/routes/zones.test.ts +2 -2
  318. package/src/apps/data/routes/zones.ts +1 -1
  319. package/src/apps/funding/App.ts +12 -2
  320. package/src/apps/funding/routes/deposit-addresses.test.ts +29 -7
  321. package/src/apps/funding/routes/deposit-addresses.ts +19 -14
  322. package/src/apps/funding/routes/quotes.test.ts +5 -9
  323. package/src/apps/funding/routes/transfers.test.ts +901 -23
  324. package/src/apps/funding/routes/transfers.ts +347 -64
  325. package/src/apps/management/Billing.ts +18 -5
  326. package/src/apps/management/routes/api-keys.test.ts +220 -0
  327. package/src/apps/management/routes/api-keys.ts +280 -3
  328. package/src/apps/management/routes/webhooks.test.ts +3 -3
  329. package/src/apps/management/routes/webhooks.ts +24 -25
  330. package/src/apps/relay/App.test.ts +212 -1
  331. package/src/apps/relay/App.ts +158 -29
  332. package/src/apps/relay/Sponsorships.ts +24 -1
  333. package/src/db/Db.ts +48 -1
  334. package/src/db/Schema.ts +22 -4
  335. package/src/db/tables/earnVaults.test.ts +9 -9
  336. package/src/db/tables/fundingCatalog.test.ts +16 -2
  337. package/src/db/tables/fundingCatalog.ts +9 -3
  338. package/src/db/tables/fundingTransferTransactions.test.ts +43 -0
  339. package/src/db/tables/fundingTransferTransactions.ts +79 -3
  340. package/src/db/tables/fundingTransfers.test.ts +26 -0
  341. package/src/db/tables/fundingTransfers.ts +36 -0
  342. package/src/db/tables/organizations.test.ts +41 -0
  343. package/src/db/tables/organizations.ts +49 -0
  344. package/src/db/tables/projects.test.ts +55 -0
  345. package/src/db/tables/projects.ts +46 -1
  346. package/src/db/tables/sponsoredTransactions.test.ts +338 -0
  347. package/src/db/tables/sponsoredTransactions.ts +197 -13
  348. package/src/db/tables/webhookSubscriptions.ts +18 -11
  349. package/src/handlers/internal/utils.test.ts +53 -0
  350. package/src/handlers/internal/utils.ts +15 -0
  351. package/src/internal/Auth.ts +12 -4
  352. package/src/internal/EarnVaults.capabilities.test.ts +2 -2
  353. package/src/internal/EarnVaults.test.ts +1 -1
  354. package/src/internal/EarnVaults.ts +5 -5
  355. package/src/internal/Fetch.test.ts +46 -0
  356. package/src/internal/Fetch.ts +56 -0
  357. package/src/internal/Log.test-d.ts +2 -0
  358. package/src/internal/Log.test.ts +21 -0
  359. package/src/internal/Log.ts +22 -5
  360. package/src/internal/OpenApi.ts +14 -4
  361. package/src/internal/Response.ts +1 -1
  362. package/src/internal/Schema.test.ts +2 -0
  363. package/src/internal/Schema.ts +12 -2
  364. package/src/internal/Store.test.ts +178 -0
  365. package/src/internal/Store.ts +104 -18
  366. package/src/internal/Tidx.test.ts +2 -1
  367. package/src/internal/Tidx.ts +7 -2
  368. package/src/internal/Timeout.test.ts +35 -0
  369. package/src/internal/Timeout.ts +73 -0
  370. package/src/internal/Timing.ts +16 -0
  371. package/src/internal/Viem.ts +39 -3
  372. package/src/internal/WebhookDestination.ts +3 -0
  373. package/src/internal/Webhooks.test.ts +45 -0
  374. package/src/internal/funding/Action.test.ts +41 -1
  375. package/src/internal/funding/Action.ts +69 -41
  376. package/src/internal/funding/Catalog.test.ts +34 -0
  377. package/src/internal/funding/Catalog.ts +28 -11
  378. package/src/internal/funding/DepositWebhook.ts +2 -1
  379. package/src/internal/funding/Evidence.ts +2 -13
  380. package/src/internal/funding/Provider.test.ts +73 -0
  381. package/src/internal/funding/Provider.ts +125 -28
  382. package/src/internal/funding/SourceObservation.ts +5 -9
  383. package/src/internal/funding/Transfer.test.ts +155 -0
  384. package/src/internal/funding/Transfer.ts +387 -147
  385. package/src/internal/funding/TransferReconciliation.test.ts +147 -0
  386. package/src/internal/funding/TransferReconciliation.ts +264 -0
  387. package/src/internal/funding/TransferWebhook.test.ts +128 -0
  388. package/src/internal/funding/TransferWebhook.ts +67 -0
  389. package/src/internal/funding/index.test.ts +1 -0
  390. package/src/internal/funding/index.ts +1 -0
  391. package/src/internal/funding/providers/index.test.ts +4 -167
  392. package/src/internal/funding/providers/relay.test.ts +2 -2
  393. package/src/internal/funding/providers/relay.ts +3 -15
  394. package/src/internal/funding/providers/stargate.test.ts +328 -0
  395. package/src/internal/funding/providers/stargate.ts +807 -135
  396. package/src/internal/index.test.ts +1 -0
  397. package/src/internal/index.ts +1 -0
  398. package/src/internal/webhookDestinations/slack.ts +15 -0
@@ -36,6 +36,11 @@ 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
45
  const CreateApiKeyRequest: z.ZodMiniObject<{
41
46
  allowedIps: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
@@ -155,6 +160,28 @@ export declare namespace schema {
155
160
  id: z.ZodMiniString<string>;
156
161
  }, z.core.$strip>;
157
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
+ }
158
185
  /** Schemas for the updateApiKey operation. */
159
186
  namespace updateApiKey {
160
187
  /** Request body replacing or clearing a key's IP allowlist. */
@@ -243,7 +270,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
243
270
  } | {
244
271
  output: {
245
272
  error: {
246
- code: "param_invalid";
273
+ code: "body_invalid";
247
274
  details?: readonly Response.error.Detail[] | undefined;
248
275
  message: string;
249
276
  };
@@ -267,7 +294,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
267
294
  } | {
268
295
  output: {
269
296
  error: {
270
- code: "body_invalid";
297
+ code: "param_invalid";
271
298
  details?: readonly Response.error.Detail[] | undefined;
272
299
  message: string;
273
300
  };
@@ -852,8 +879,8 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
852
879
  };
853
880
  };
854
881
  } & {
855
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
856
- $patch: {
882
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
883
+ $post: {
857
884
  output: {
858
885
  error: {
859
886
  code: "api_key_malformed";
@@ -868,11 +895,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
868
895
  param: {
869
896
  keyId: string;
870
897
  orgId: string;
871
- projectId: string;
872
- };
873
- } & {
874
- json: {
875
- allowedIps: readonly string[];
876
898
  };
877
899
  };
878
900
  } | {
@@ -890,105 +912,142 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
890
912
  param: {
891
913
  keyId: string;
892
914
  orgId: string;
893
- projectId: string;
894
- };
895
- } & {
896
- json: {
897
- allowedIps: readonly string[];
898
915
  };
899
916
  };
900
917
  } | {
901
918
  output: {
902
919
  error: {
903
- code: "api_key_forbidden" | "api_key_ip_forbidden";
920
+ code: "upstream_error";
904
921
  details?: readonly Response.error.Detail[] | undefined;
905
922
  message: string;
906
923
  };
907
924
  requestId: string;
908
925
  };
909
926
  outputFormat: "json";
910
- status: 403;
927
+ status: 502;
911
928
  input: {
912
929
  param: {
913
930
  keyId: string;
914
931
  orgId: string;
915
- projectId: string;
916
- };
917
- } & {
918
- json: {
919
- allowedIps: readonly string[];
920
932
  };
921
933
  };
922
934
  } | {
923
935
  output: {
924
936
  error: {
925
- code: "payment_required" | "rate_limit_exceeded";
937
+ code: "param_invalid";
926
938
  details?: readonly Response.error.Detail[] | undefined;
927
939
  message: string;
928
940
  };
929
941
  requestId: string;
930
942
  };
931
943
  outputFormat: "json";
932
- status: 429;
944
+ status: 400;
933
945
  input: {
934
946
  param: {
935
947
  keyId: string;
936
948
  orgId: string;
937
- projectId: string;
938
- };
939
- } & {
940
- json: {
941
- allowedIps: readonly string[];
942
949
  };
943
950
  };
944
951
  } | {
945
952
  output: {
946
953
  error: {
947
- code: "upstream_error";
954
+ code: "forbidden";
948
955
  details?: readonly Response.error.Detail[] | undefined;
949
956
  message: string;
950
957
  };
951
958
  requestId: string;
952
959
  };
953
960
  outputFormat: "json";
954
- status: 502;
961
+ status: 403;
955
962
  input: {
956
963
  param: {
957
964
  keyId: string;
958
965
  orgId: string;
959
- projectId: string;
960
966
  };
961
- } & {
962
- json: {
963
- allowedIps: readonly string[];
967
+ };
968
+ } | {
969
+ output: {
970
+ error: {
971
+ code: "api_keys_not_enabled";
972
+ details?: readonly Response.error.Detail[] | undefined;
973
+ message: string;
974
+ };
975
+ requestId: string;
976
+ };
977
+ outputFormat: "json";
978
+ status: 404;
979
+ input: {
980
+ param: {
981
+ keyId: string;
982
+ orgId: string;
964
983
  };
965
984
  };
966
985
  } | {
967
986
  output: {
968
987
  error: {
969
- code: "param_invalid";
988
+ code: "scope_not_issuable";
970
989
  details?: readonly Response.error.Detail[] | undefined;
971
990
  message: string;
972
991
  };
973
992
  requestId: string;
974
993
  };
975
994
  outputFormat: "json";
976
- status: 400;
995
+ status: 403;
977
996
  input: {
978
997
  param: {
979
998
  keyId: string;
980
999
  orgId: string;
981
- projectId: string;
982
1000
  };
983
- } & {
984
- json: {
985
- allowedIps: readonly string[];
1001
+ };
1002
+ } | {
1003
+ output: {
1004
+ error: {
1005
+ code: "api_key_not_found";
1006
+ details?: readonly Response.error.Detail[] | undefined;
1007
+ message: string;
1008
+ };
1009
+ requestId: string;
1010
+ };
1011
+ outputFormat: "json";
1012
+ status: 404;
1013
+ input: {
1014
+ param: {
1015
+ keyId: string;
1016
+ orgId: string;
986
1017
  };
987
1018
  };
988
1019
  } | {
1020
+ output: {
1021
+ allowedIps: readonly string[];
1022
+ createdAt: string;
1023
+ createdBy?: string | undefined;
1024
+ environment: "production" | "sandbox";
1025
+ expiresAt?: string | undefined;
1026
+ id: string;
1027
+ lastUsedAt?: string | undefined;
1028
+ name?: string | undefined;
1029
+ orgId: string;
1030
+ projectId?: string | undefined;
1031
+ scopes: string[];
1032
+ tokenLast4: string;
1033
+ token: string;
1034
+ };
1035
+ outputFormat: "json";
1036
+ status: 200;
1037
+ input: {
1038
+ param: {
1039
+ keyId: string;
1040
+ orgId: string;
1041
+ };
1042
+ };
1043
+ };
1044
+ };
1045
+ } & {
1046
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
1047
+ $delete: {
989
1048
  output: {
990
1049
  error: {
991
- code: "body_invalid";
1050
+ code: "api_key_malformed";
992
1051
  details?: readonly Response.error.Detail[] | undefined;
993
1052
  message: string;
994
1053
  };
@@ -1000,17 +1059,29 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1000
1059
  param: {
1001
1060
  keyId: string;
1002
1061
  orgId: string;
1003
- projectId: string;
1004
1062
  };
1005
- } & {
1006
- json: {
1007
- allowedIps: readonly string[];
1063
+ };
1064
+ } | {
1065
+ output: {
1066
+ error: {
1067
+ code: "api_key_invalid" | "api_key_missing";
1068
+ details?: readonly Response.error.Detail[] | undefined;
1069
+ message: string;
1070
+ };
1071
+ requestId: string;
1072
+ };
1073
+ outputFormat: "json";
1074
+ status: 401;
1075
+ input: {
1076
+ param: {
1077
+ keyId: string;
1078
+ orgId: string;
1008
1079
  };
1009
1080
  };
1010
1081
  } | {
1011
1082
  output: {
1012
1083
  error: {
1013
- code: "forbidden";
1084
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
1014
1085
  details?: readonly Response.error.Detail[] | undefined;
1015
1086
  message: string;
1016
1087
  };
@@ -1022,33 +1093,74 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1022
1093
  param: {
1023
1094
  keyId: string;
1024
1095
  orgId: string;
1025
- projectId: string;
1026
1096
  };
1027
- } & {
1028
- json: {
1029
- allowedIps: readonly string[];
1097
+ };
1098
+ } | {
1099
+ output: {
1100
+ error: {
1101
+ code: "payment_required" | "rate_limit_exceeded";
1102
+ details?: readonly Response.error.Detail[] | undefined;
1103
+ message: string;
1104
+ };
1105
+ requestId: string;
1106
+ };
1107
+ outputFormat: "json";
1108
+ status: 429;
1109
+ input: {
1110
+ param: {
1111
+ keyId: string;
1112
+ orgId: string;
1030
1113
  };
1031
1114
  };
1032
1115
  } | {
1033
1116
  output: {
1034
1117
  error: {
1035
- code: "organization_not_found" | "project_not_found";
1118
+ code: "upstream_error";
1036
1119
  details?: readonly Response.error.Detail[] | undefined;
1037
1120
  message: string;
1038
1121
  };
1039
1122
  requestId: string;
1040
1123
  };
1041
1124
  outputFormat: "json";
1042
- status: 404;
1125
+ status: 502;
1043
1126
  input: {
1044
1127
  param: {
1045
1128
  keyId: string;
1046
1129
  orgId: string;
1047
- projectId: string;
1048
1130
  };
1049
- } & {
1050
- json: {
1051
- allowedIps: readonly string[];
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;
1052
1164
  };
1053
1165
  };
1054
1166
  } | {
@@ -1066,11 +1178,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1066
1178
  param: {
1067
1179
  keyId: string;
1068
1180
  orgId: string;
1069
- projectId: string;
1070
- };
1071
- } & {
1072
- json: {
1073
- allowedIps: readonly string[];
1074
1181
  };
1075
1182
  };
1076
1183
  } | {
@@ -1088,27 +1195,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1088
1195
  param: {
1089
1196
  keyId: string;
1090
1197
  orgId: string;
1091
- projectId: string;
1092
- };
1093
- } & {
1094
- json: {
1095
- allowedIps: readonly string[];
1096
1198
  };
1097
1199
  };
1098
1200
  } | {
1099
1201
  output: {
1100
- allowedIps: readonly string[];
1101
- createdAt: string;
1102
- createdBy?: string | undefined;
1103
- environment: "production" | "sandbox";
1104
- expiresAt?: string | undefined;
1105
1202
  id: string;
1106
- lastUsedAt?: string | undefined;
1107
- name?: string | undefined;
1108
- orgId: string;
1109
- projectId?: string | undefined;
1110
- scopes: string[];
1111
- tokenLast4: string;
1112
1203
  };
1113
1204
  outputFormat: "json";
1114
1205
  status: 200;
@@ -1116,11 +1207,471 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
1116
1207
  param: {
1117
1208
  keyId: string;
1118
1209
  orgId: string;
1119
- projectId: string;
1120
1210
  };
1121
- } & {
1122
- json: {
1123
- allowedIps: readonly string[];
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: "api_key_malformed";
1220
+ details?: readonly Response.error.Detail[] | undefined;
1221
+ message: string;
1222
+ };
1223
+ requestId: string;
1224
+ };
1225
+ outputFormat: "json";
1226
+ status: 400;
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_invalid" | "api_key_missing";
1242
+ details?: readonly Response.error.Detail[] | undefined;
1243
+ message: string;
1244
+ };
1245
+ requestId: string;
1246
+ };
1247
+ outputFormat: "json";
1248
+ status: 401;
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_forbidden" | "api_key_ip_forbidden";
1264
+ details?: readonly Response.error.Detail[] | undefined;
1265
+ message: string;
1266
+ };
1267
+ requestId: string;
1268
+ };
1269
+ outputFormat: "json";
1270
+ status: 403;
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: "payment_required" | "rate_limit_exceeded";
1286
+ details?: readonly Response.error.Detail[] | undefined;
1287
+ message: string;
1288
+ };
1289
+ requestId: string;
1290
+ };
1291
+ outputFormat: "json";
1292
+ status: 429;
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: "upstream_error";
1308
+ details?: readonly Response.error.Detail[] | undefined;
1309
+ message: string;
1310
+ };
1311
+ requestId: string;
1312
+ };
1313
+ outputFormat: "json";
1314
+ status: 502;
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: "body_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: "param_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: "api_key_malformed";
1494
+ details?: readonly Response.error.Detail[] | undefined;
1495
+ message: string;
1496
+ };
1497
+ requestId: string;
1498
+ };
1499
+ outputFormat: "json";
1500
+ status: 400;
1501
+ input: {
1502
+ param: {
1503
+ keyId: string;
1504
+ orgId: string;
1505
+ projectId: string;
1506
+ };
1507
+ };
1508
+ } | {
1509
+ output: {
1510
+ error: {
1511
+ code: "api_key_invalid" | "api_key_missing";
1512
+ details?: readonly Response.error.Detail[] | undefined;
1513
+ message: string;
1514
+ };
1515
+ requestId: string;
1516
+ };
1517
+ outputFormat: "json";
1518
+ status: 401;
1519
+ input: {
1520
+ param: {
1521
+ keyId: string;
1522
+ orgId: string;
1523
+ projectId: string;
1524
+ };
1525
+ };
1526
+ } | {
1527
+ output: {
1528
+ error: {
1529
+ code: "upstream_error";
1530
+ details?: readonly Response.error.Detail[] | undefined;
1531
+ message: string;
1532
+ };
1533
+ requestId: string;
1534
+ };
1535
+ outputFormat: "json";
1536
+ status: 502;
1537
+ input: {
1538
+ param: {
1539
+ keyId: string;
1540
+ orgId: string;
1541
+ projectId: string;
1542
+ };
1543
+ };
1544
+ } | {
1545
+ output: {
1546
+ error: {
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";
1566
+ details?: readonly Response.error.Detail[] | undefined;
1567
+ message: string;
1568
+ };
1569
+ requestId: string;
1570
+ };
1571
+ outputFormat: "json";
1572
+ status: 403;
1573
+ input: {
1574
+ param: {
1575
+ keyId: string;
1576
+ orgId: string;
1577
+ projectId: string;
1578
+ };
1579
+ };
1580
+ } | {
1581
+ output: {
1582
+ error: {
1583
+ code: "organization_not_found" | "project_not_found";
1584
+ details?: readonly Response.error.Detail[] | undefined;
1585
+ message: string;
1586
+ };
1587
+ requestId: string;
1588
+ };
1589
+ outputFormat: "json";
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;
1645
+ input: {
1646
+ param: {
1647
+ keyId: string;
1648
+ orgId: string;
1649
+ projectId: string;
1650
+ };
1651
+ };
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;
1124
1675
  };
1125
1676
  };
1126
1677
  };