@keboola/api-client 45.0.0 → 47.0.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 (480) hide show
  1. package/AGENTS.md +86 -21
  2. package/API-SURFACE.md +49 -29
  3. package/CHANGELOG.md +69 -0
  4. package/README.md +47 -37
  5. package/dist/ManagementSessionMintError-4Pkn5Oob.js +36 -0
  6. package/dist/ManagementSessionMintError-4Pkn5Oob.js.map +1 -0
  7. package/dist/ManagementSessionMintError-Cu9beG7j.cjs +47 -0
  8. package/dist/ManagementSessionMintError-Cu9beG7j.cjs.map +1 -0
  9. package/dist/QueryJobError-ZZZ043Nm.js +22 -0
  10. package/dist/QueryJobError-ZZZ043Nm.js.map +1 -0
  11. package/dist/{QueryJobTimeoutError-CVNPdCWX.cjs → QueryJobError-irGiP5zh.cjs} +1 -29
  12. package/dist/QueryJobError-irGiP5zh.cjs.map +1 -0
  13. package/dist/QueueJobError-6qSEizWo.cjs +30 -0
  14. package/dist/QueueJobError-6qSEizWo.cjs.map +1 -0
  15. package/dist/QueueJobError-8bThS_Mc.js +19 -0
  16. package/dist/QueueJobError-8bThS_Mc.js.map +1 -0
  17. package/dist/adminRoles-B40yBcmq.js.map +1 -1
  18. package/dist/adminRoles-CO7J5qAy.cjs.map +1 -1
  19. package/dist/{adminRoles-C696kD_U.d.cts → adminRoles-CvdIUkiC.d.ts} +4 -2
  20. package/dist/{adminRoles-C696kD_U.d.ts → adminRoles-DGM8SuuF.d.cts} +4 -2
  21. package/dist/ai/index.cjs +2 -2
  22. package/dist/ai/index.d.cts +2 -2
  23. package/dist/ai/index.d.ts +2 -2
  24. package/dist/ai/index.js +2 -2
  25. package/dist/ai/types.d.cts +1 -1
  26. package/dist/ai/types.d.ts +1 -1
  27. package/dist/{appLogs-BG9ueGxA.cjs → appLogs-Cix2KWra.cjs} +2 -2
  28. package/dist/{appLogs-BG9ueGxA.cjs.map → appLogs-Cix2KWra.cjs.map} +1 -1
  29. package/dist/{appLogs-C9YlJ2g8.d.cts → appLogs-Cxhm2Rkn.d.cts} +2 -2
  30. package/dist/{appLogs-CEKz68bE.js → appLogs-KslK7qHr.js} +2 -2
  31. package/dist/{appLogs-CEKz68bE.js.map → appLogs-KslK7qHr.js.map} +1 -1
  32. package/dist/{appLogs-BS6ViVGR.d.ts → appLogs-xW0-JQXg.d.ts} +2 -2
  33. package/dist/apps/index.cjs +3 -3
  34. package/dist/apps/index.d.cts +3 -3
  35. package/dist/apps/index.d.ts +3 -3
  36. package/dist/apps/index.js +3 -3
  37. package/dist/apps/types.d.cts +2 -2
  38. package/dist/apps/types.d.ts +2 -2
  39. package/dist/assets/index.cjs +1 -1
  40. package/dist/assets/index.d.cts +1 -1
  41. package/dist/assets/index.d.ts +1 -1
  42. package/dist/assets/index.js +1 -1
  43. package/dist/auth/index.cjs +1 -1
  44. package/dist/auth/index.d.cts +1 -1
  45. package/dist/auth/index.d.ts +1 -1
  46. package/dist/auth/index.js +1 -1
  47. package/dist/auth/types.d.cts +2 -2
  48. package/dist/auth/types.d.ts +2 -2
  49. package/dist/{auth-C6cHWIWx.js → auth-4coY1uwo.js} +2 -2
  50. package/dist/{auth-C6cHWIWx.js.map → auth-4coY1uwo.js.map} +1 -1
  51. package/dist/{auth-C9o_0bft.cjs → auth-C8Pjl0Mu.cjs} +2 -2
  52. package/dist/{auth-C9o_0bft.cjs.map → auth-C8Pjl0Mu.cjs.map} +1 -1
  53. package/dist/{authClient-CACOwVt0.js → authClient-2e8ZmzSP.js} +71 -7
  54. package/dist/authClient-2e8ZmzSP.js.map +1 -0
  55. package/dist/{authClient-CBVAT3v9.d.cts → authClient-Bso5UaXS.d.ts} +45 -33
  56. package/dist/{authClient-DZcAR-eW.cjs → authClient-DfkKlc-2.cjs} +82 -6
  57. package/dist/authClient-DfkKlc-2.cjs.map +1 -0
  58. package/dist/{authClient-CRumc934.d.ts → authClient-aud2dUZd.d.cts} +45 -33
  59. package/dist/billing/index.cjs +2 -2
  60. package/dist/billing/index.d.cts +1 -1
  61. package/dist/billing/index.d.ts +1 -1
  62. package/dist/billing/index.js +2 -2
  63. package/dist/billing/types.d.cts +1 -1
  64. package/dist/billing/types.d.ts +1 -1
  65. package/dist/chat/index.cjs +3 -3
  66. package/dist/chat/index.d.cts +2 -2
  67. package/dist/chat/index.d.ts +2 -2
  68. package/dist/chat/index.js +3 -3
  69. package/dist/chat/types.d.cts +1 -1
  70. package/dist/chat/types.d.ts +1 -1
  71. package/dist/{collect-97WhfEpt.js → collectByOffset-2XzJqmvr.js} +6 -6
  72. package/dist/collectByOffset-2XzJqmvr.js.map +1 -0
  73. package/dist/{collect-B5TCNiT1.cjs → collectByOffset-DQsqtmJg.cjs} +7 -7
  74. package/dist/collectByOffset-DQsqtmJg.cjs.map +1 -0
  75. package/dist/componentsMcp/index.cjs +3 -0
  76. package/dist/componentsMcp/index.d.cts +2 -0
  77. package/dist/componentsMcp/index.d.ts +2 -0
  78. package/dist/componentsMcp/index.js +2 -0
  79. package/dist/componentsMcp/types.cjs +0 -0
  80. package/dist/componentsMcp/types.d.cts +2 -0
  81. package/dist/componentsMcp/types.d.ts +2 -0
  82. package/dist/componentsMcp/types.js +1 -0
  83. package/dist/componentsMcp-CHobIsuU.js +57 -0
  84. package/dist/componentsMcp-CHobIsuU.js.map +1 -0
  85. package/dist/componentsMcp-pG-PcQrg.cjs +62 -0
  86. package/dist/componentsMcp-pG-PcQrg.cjs.map +1 -0
  87. package/dist/configurations-BTRHVSRq.cjs.map +1 -1
  88. package/dist/configurations-Chg_JwJ1.js.map +1 -1
  89. package/dist/constants/index.cjs +1 -1
  90. package/dist/constants/index.d.cts +2 -3
  91. package/dist/constants/index.d.ts +2 -3
  92. package/dist/constants/index.js +1 -1
  93. package/dist/{constants-Cifrqsls.js → constants-CA4UN2Xv.js} +11 -10
  94. package/dist/constants-CA4UN2Xv.js.map +1 -0
  95. package/dist/{constants-BDGRQqij.cjs → constants-a0jswUeK.cjs} +10 -9
  96. package/dist/constants-a0jswUeK.cjs.map +1 -0
  97. package/dist/{createFetchClient-DITkTV2k.js → createFetchClient-CkHdS_IG.js} +5 -5
  98. package/dist/createFetchClient-CkHdS_IG.js.map +1 -0
  99. package/dist/{createFetchClient-ClWD4ua3.cjs → createFetchClient-lZ_93Yrb.cjs} +5 -5
  100. package/dist/createFetchClient-lZ_93Yrb.cjs.map +1 -0
  101. package/dist/{createGenericFetchClient-KqiJhw8G.js → createGenericFetchClient-CQdNcPC3.js} +2 -2
  102. package/dist/{createGenericFetchClient-KqiJhw8G.js.map → createGenericFetchClient-CQdNcPC3.js.map} +1 -1
  103. package/dist/{createGenericFetchClient-B81Iezpb.cjs → createGenericFetchClient-MOx97wi-.cjs} +2 -2
  104. package/dist/{createGenericFetchClient-B81Iezpb.cjs.map → createGenericFetchClient-MOx97wi-.cjs.map} +1 -1
  105. package/dist/{createOpenapiFetchClient-CioTX11-.cjs → createOpenapiFetchClient-DHYo_k3t.cjs} +2 -2
  106. package/dist/{createOpenapiFetchClient-CioTX11-.cjs.map → createOpenapiFetchClient-DHYo_k3t.cjs.map} +1 -1
  107. package/dist/{createOpenapiFetchClient-wq8iGLZM.js → createOpenapiFetchClient-DXiMv9WL.js} +2 -2
  108. package/dist/{createOpenapiFetchClient-wq8iGLZM.js.map → createOpenapiFetchClient-DXiMv9WL.js.map} +1 -1
  109. package/dist/dataScience/index.cjs +2 -2
  110. package/dist/dataScience/index.d.cts +2 -2
  111. package/dist/dataScience/index.d.ts +2 -2
  112. package/dist/dataScience/index.js +2 -2
  113. package/dist/dataScience/types.d.cts +2 -2
  114. package/dist/dataScience/types.d.ts +2 -2
  115. package/dist/{dataScience-BwHmDoQb.js → dataScience-AwPMeGfz.js} +5 -5
  116. package/dist/{dataScience-BwHmDoQb.js.map → dataScience-AwPMeGfz.js.map} +1 -1
  117. package/dist/{dataScience-Hhoqoql_.cjs → dataScience-BjS1p8WO.cjs} +5 -5
  118. package/dist/{dataScience-Hhoqoql_.cjs.map → dataScience-BjS1p8WO.cjs.map} +1 -1
  119. package/dist/developerPortal/index.cjs +1 -1
  120. package/dist/developerPortal/index.d.cts +2 -2
  121. package/dist/developerPortal/index.d.ts +2 -2
  122. package/dist/developerPortal/index.js +1 -1
  123. package/dist/developerPortal/types.d.cts +1 -1
  124. package/dist/developerPortal/types.d.ts +1 -1
  125. package/dist/{developerPortalClient-loKq7X_U.js → developerPortalClient-Bb2suezr.js} +13 -5
  126. package/dist/{developerPortalClient-loKq7X_U.js.map → developerPortalClient-Bb2suezr.js.map} +1 -1
  127. package/dist/{developerPortalClient-COm7wJxS.cjs → developerPortalClient-DUerKw-7.cjs} +13 -5
  128. package/dist/{developerPortalClient-COm7wJxS.cjs.map → developerPortalClient-DUerKw-7.cjs.map} +1 -1
  129. package/dist/domain/permissions/index.cjs +1 -1
  130. package/dist/domain/permissions/index.d.cts +1 -2
  131. package/dist/domain/permissions/index.d.ts +1 -2
  132. package/dist/domain/permissions/index.js +1 -1
  133. package/dist/editor/index.cjs +2 -2
  134. package/dist/editor/index.d.cts +2 -2
  135. package/dist/editor/index.d.ts +2 -2
  136. package/dist/editor/index.js +2 -2
  137. package/dist/editor/types.d.cts +1 -1
  138. package/dist/editor/types.d.ts +1 -1
  139. package/dist/encryption/index.cjs +1 -1
  140. package/dist/encryption/index.d.cts +1 -1
  141. package/dist/encryption/index.d.ts +1 -1
  142. package/dist/encryption/index.js +1 -1
  143. package/dist/encryption/types.d.cts +1 -1
  144. package/dist/encryption/types.d.ts +1 -1
  145. package/dist/import/index.cjs +1 -1
  146. package/dist/import/index.d.cts +3 -3
  147. package/dist/import/index.d.ts +3 -3
  148. package/dist/import/index.js +1 -1
  149. package/dist/{import-B5DcJGMI.cjs → import-BahNYv91.cjs} +3 -3
  150. package/dist/{import-B5DcJGMI.cjs.map → import-BahNYv91.cjs.map} +1 -1
  151. package/dist/{import-JlH_QaDd.js → import-FWy_wQZ1.js} +3 -3
  152. package/dist/{import-JlH_QaDd.js.map → import-FWy_wQZ1.js.map} +1 -1
  153. package/dist/{index-DeQDdut6.d.ts → index-8ZjY7YD8.d.cts} +34 -2
  154. package/dist/{index-CA6QxbhZ.d.ts → index-BGEuaZqI.d.cts} +238 -252
  155. package/dist/{index-R-w0Zncz.d.ts → index-BIP0PoMW.d.ts} +4 -4
  156. package/dist/index-B_MzjCeE.d.ts +46 -0
  157. package/dist/{index-CGCXR_6Q.d.ts → index-BeOd45XE.d.ts} +4 -4
  158. package/dist/{index-DeQDdut6.d.cts → index-BnPmXDVP.d.ts} +34 -2
  159. package/dist/{index-Cvkrjh--.d.cts → index-C2OAOK0s.d.ts} +30 -4
  160. package/dist/{index-Bl2EloC0.d.ts → index-CAWy1qjR.d.ts} +22482 -17133
  161. package/dist/{index-CGFGd3tF.d.cts → index-CkwZ5x7E.d.cts} +22482 -17133
  162. package/dist/{index-D9UsQOuT.d.cts → index-DTysQ_yn.d.cts} +5 -5
  163. package/dist/{index-CX8GAP2g.d.ts → index-DUB0BwQv.d.cts} +30 -4
  164. package/dist/{index-zyxZVJnd.d.ts → index-DloFSSj3.d.ts} +3 -3
  165. package/dist/{index-DtuwWYDR.d.ts → index-Dp-a2DdI.d.ts} +4 -4
  166. package/dist/{index-BHWTa4YN.d.cts → index-Ds0tViQS.d.cts} +3 -3
  167. package/dist/{index-BCgmwncs.d.ts → index-HSkjm3QW.d.ts} +5 -5
  168. package/dist/index-URgNfi5L.d.cts +46 -0
  169. package/dist/{index-04pgr-EO.d.cts → index-XG5cO-4H.d.cts} +4 -4
  170. package/dist/{types-BhEx9iRx.d.ts → index-XaPb6unB.d.cts} +4813 -1757
  171. package/dist/{index-DINB7vsV.d.cts → index-ZYvgoqgW.d.cts} +4 -4
  172. package/dist/{index-DkvrbR2i.d.cts → index-_Va9wynk.d.ts} +238 -252
  173. package/dist/{types-sV9OaqTI.d.cts → index-r6YSe8B-.d.ts} +4813 -1757
  174. package/dist/{index-BKOFRmTB.d.cts → index-x_kS_5x_.d.cts} +4 -4
  175. package/dist/index.cjs +171 -163
  176. package/dist/index.cjs.map +1 -1
  177. package/dist/index.d.cts +7 -7
  178. package/dist/index.d.ts +7 -7
  179. package/dist/index.js +100 -97
  180. package/dist/index.js.map +1 -1
  181. package/dist/{isLoginPageRedirect-CsyRa3_v.js → isLoginPageRedirect-B4QKSiSa.js} +2 -2
  182. package/dist/{isLoginPageRedirect-CsyRa3_v.js.map → isLoginPageRedirect-B4QKSiSa.js.map} +1 -1
  183. package/dist/{isLoginPageRedirect-iNbwl3iz.cjs → isLoginPageRedirect-r0Opgc1n.cjs} +2 -2
  184. package/dist/{isLoginPageRedirect-iNbwl3iz.cjs.map → isLoginPageRedirect-r0Opgc1n.cjs.map} +1 -1
  185. package/dist/kaiAgent/index.cjs +1 -1
  186. package/dist/kaiAgent/index.d.cts +2 -2
  187. package/dist/kaiAgent/index.d.ts +2 -2
  188. package/dist/kaiAgent/index.js +1 -1
  189. package/dist/kaiAgent/types.d.cts +1 -1
  190. package/dist/kaiAgent/types.d.ts +1 -1
  191. package/dist/{kaiAgent-BhcUsBDk.cjs → kaiAgent-BmfUG8bB.cjs} +5 -5
  192. package/dist/{kaiAgent-BhcUsBDk.cjs.map → kaiAgent-BmfUG8bB.cjs.map} +1 -1
  193. package/dist/{kaiAgent-CUeT53-K.js → kaiAgent-CBPbMwBh.js} +5 -5
  194. package/dist/{kaiAgent-CUeT53-K.js.map → kaiAgent-CBPbMwBh.js.map} +1 -1
  195. package/dist/{kaiMemory-DaOh0zVn.js → kaiMemory-C9di17bd.js} +2 -2
  196. package/dist/{kaiMemory-DaOh0zVn.js.map → kaiMemory-C9di17bd.js.map} +1 -1
  197. package/dist/{kaiMemory-Cf81ghNd.cjs → kaiMemory-Qch09f-m.cjs} +2 -2
  198. package/dist/{kaiMemory-Cf81ghNd.cjs.map → kaiMemory-Qch09f-m.cjs.map} +1 -1
  199. package/dist/management/index.cjs +2 -1
  200. package/dist/management/index.d.cts +2 -2
  201. package/dist/management/index.d.ts +2 -2
  202. package/dist/management/index.js +2 -2
  203. package/dist/management/types.d.cts +2 -2
  204. package/dist/management/types.d.ts +2 -2
  205. package/dist/{management-C5lf9nsU.cjs → management-BUGPJ1Bu.cjs} +46 -10
  206. package/dist/management-BUGPJ1Bu.cjs.map +1 -0
  207. package/dist/{management-WAtKH6Tu.js → management-DAg2obYt.js} +39 -9
  208. package/dist/management-DAg2obYt.js.map +1 -0
  209. package/dist/metastore/index.cjs +1 -1
  210. package/dist/metastore/index.d.cts +1 -1
  211. package/dist/metastore/index.d.ts +1 -1
  212. package/dist/metastore/index.js +1 -1
  213. package/dist/metastore/types.d.cts +1 -1
  214. package/dist/metastore/types.d.ts +1 -1
  215. package/dist/{metastore-YPHUK3jJ.cjs → metastore-BXHg33ku.cjs} +4 -4
  216. package/dist/{metastore-YPHUK3jJ.cjs.map → metastore-BXHg33ku.cjs.map} +1 -1
  217. package/dist/{metastore-D0C6uaPX.js → metastore-Ywq08DBz.js} +4 -4
  218. package/dist/{metastore-D0C6uaPX.js.map → metastore-Ywq08DBz.js.map} +1 -1
  219. package/dist/microsoftGraph/index.cjs +2 -2
  220. package/dist/microsoftGraph/index.d.cts +3 -3
  221. package/dist/microsoftGraph/index.d.ts +3 -3
  222. package/dist/microsoftGraph/index.js +2 -2
  223. package/dist/microsoftGraph/types.d.cts +2 -2
  224. package/dist/microsoftGraph/types.d.ts +2 -2
  225. package/dist/{middleware-DmR6OhTY.js → middleware-CWaLMlG1.js} +2 -2
  226. package/dist/{middleware-DmR6OhTY.js.map → middleware-CWaLMlG1.js.map} +1 -1
  227. package/dist/{middleware-D_p5TctO.cjs → middleware-DU_5pFDW.cjs} +2 -2
  228. package/dist/{middleware-D_p5TctO.cjs.map → middleware-DU_5pFDW.cjs.map} +1 -1
  229. package/dist/notifications/index.cjs +3 -3
  230. package/dist/notifications/index.d.cts +2 -2
  231. package/dist/notifications/index.d.ts +2 -2
  232. package/dist/notifications/index.js +3 -3
  233. package/dist/notifications/types.d.cts +1 -1
  234. package/dist/notifications/types.d.ts +1 -1
  235. package/dist/oauth/index.cjs +1 -1
  236. package/dist/oauth/index.d.cts +6 -2
  237. package/dist/oauth/index.d.ts +6 -2
  238. package/dist/oauth/index.js +1 -1
  239. package/dist/oauth/types.d.cts +2 -2
  240. package/dist/oauth/types.d.ts +2 -2
  241. package/dist/{oauth-DyUwTqHJ.cjs → oauth-DKZPuUlt.cjs} +17 -6
  242. package/dist/{oauth-DyUwTqHJ.cjs.map → oauth-DKZPuUlt.cjs.map} +1 -1
  243. package/dist/{oauth-Ck_Fe14o.js → oauth-GXmZ9agP.js} +17 -6
  244. package/dist/{oauth-Ck_Fe14o.js.map → oauth-GXmZ9agP.js.map} +1 -1
  245. package/dist/omnisearch/index.cjs +2 -2
  246. package/dist/omnisearch/index.d.cts +2 -2
  247. package/dist/omnisearch/index.d.ts +2 -2
  248. package/dist/omnisearch/index.js +2 -2
  249. package/dist/omnisearch/types.d.cts +1 -1
  250. package/dist/omnisearch/types.d.ts +1 -1
  251. package/dist/project-BMmfPhXg.d.ts +74 -0
  252. package/dist/{project-DWwZv66D.js → project-BXLFrWJ6.js} +7 -1
  253. package/dist/project-BXLFrWJ6.js.map +1 -0
  254. package/dist/{project-BvFi19K_.cjs → project-CpgplgCr.cjs} +7 -1
  255. package/dist/project-CpgplgCr.cjs.map +1 -0
  256. package/dist/project-dxCJbFay.d.cts +74 -0
  257. package/dist/queryService/index.cjs +1 -1
  258. package/dist/queryService/index.d.cts +1 -1
  259. package/dist/queryService/index.d.ts +1 -1
  260. package/dist/queryService/index.js +1 -1
  261. package/dist/queryService/types.d.cts +2 -2
  262. package/dist/queryService/types.d.ts +2 -2
  263. package/dist/{queryService-Blfz59Ms.js → queryService-C-pZha5p.js} +36 -27
  264. package/dist/queryService-C-pZha5p.js.map +1 -0
  265. package/dist/{queryService-RlNYw7LG.cjs → queryService-CzK53q94.cjs} +36 -27
  266. package/dist/queryService-CzK53q94.cjs.map +1 -0
  267. package/dist/queue/index.cjs +1 -1
  268. package/dist/queue/index.d.cts +75 -7
  269. package/dist/queue/index.d.ts +75 -7
  270. package/dist/queue/index.js +1 -1
  271. package/dist/queue/types.d.cts +1 -1
  272. package/dist/queue/types.d.ts +1 -1
  273. package/dist/{queue-BrgRdtOr.cjs → queue-BJvDWriM.cjs} +35 -25
  274. package/dist/queue-BJvDWriM.cjs.map +1 -0
  275. package/dist/{queue-CNvR-M23.js → queue-D6-x4OGF.js} +35 -25
  276. package/dist/queue-D6-x4OGF.js.map +1 -0
  277. package/dist/scheduler/index.cjs +3 -3
  278. package/dist/scheduler/index.d.cts +2 -2
  279. package/dist/scheduler/index.d.ts +2 -2
  280. package/dist/scheduler/index.js +3 -3
  281. package/dist/scheduler/types.d.cts +1 -1
  282. package/dist/scheduler/types.d.ts +1 -1
  283. package/dist/{schema-DJa9WBjR.d.cts → schema-BUyMwQnM.d.cts} +7 -1
  284. package/dist/{schema-DJa9WBjR.d.ts → schema-BUyMwQnM.d.ts} +7 -1
  285. package/dist/sdk/configurations/index.d.cts +2 -4
  286. package/dist/sdk/configurations/index.d.ts +2 -4
  287. package/dist/sdk/developerPortal/index.cjs +3 -3
  288. package/dist/sdk/developerPortal/index.d.cts +29 -3
  289. package/dist/sdk/developerPortal/index.d.ts +29 -3
  290. package/dist/sdk/developerPortal/index.js +3 -3
  291. package/dist/sdk/kaiMemory/index.cjs +1 -1
  292. package/dist/sdk/kaiMemory/index.d.cts +1 -1
  293. package/dist/sdk/kaiMemory/index.d.ts +1 -1
  294. package/dist/sdk/kaiMemory/index.js +1 -1
  295. package/dist/sdk/kaiMemory/types.d.cts +1 -1
  296. package/dist/sdk/kaiMemory/types.d.ts +1 -1
  297. package/dist/sdk/queryService/index.cjs +34 -55
  298. package/dist/sdk/queryService/index.cjs.map +1 -1
  299. package/dist/sdk/queryService/index.d.cts +2 -2
  300. package/dist/sdk/queryService/index.d.ts +2 -2
  301. package/dist/sdk/queryService/index.js +34 -55
  302. package/dist/sdk/queryService/index.js.map +1 -1
  303. package/dist/sdk/semanticLayer/index.d.cts +1 -1
  304. package/dist/sdk/semanticLayer/index.d.ts +1 -1
  305. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  306. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  307. package/dist/sdk/storage/index.cjs +0 -119
  308. package/dist/sdk/storage/index.cjs.map +1 -1
  309. package/dist/sdk/storage/index.d.cts +103 -2
  310. package/dist/sdk/storage/index.d.ts +103 -2
  311. package/dist/sdk/storage/index.js +1 -119
  312. package/dist/sdk/storage/index.js.map +1 -1
  313. package/dist/sdk/tag/index.d.cts +2 -2
  314. package/dist/sdk/tag/index.d.ts +2 -2
  315. package/dist/sdk/tag/types.d.cts +1 -1
  316. package/dist/sdk/tag/types.d.ts +1 -1
  317. package/dist/sdk/vault/index.d.cts +1 -1
  318. package/dist/sdk/vault/index.d.ts +1 -1
  319. package/dist/status/index.cjs +1 -1
  320. package/dist/status/index.d.cts +1 -1
  321. package/dist/status/index.d.ts +1 -1
  322. package/dist/status/index.js +1 -1
  323. package/dist/storage/index.cjs +15 -10
  324. package/dist/storage/index.d.cts +3 -3
  325. package/dist/storage/index.d.ts +3 -3
  326. package/dist/storage/index.js +7 -6
  327. package/dist/storage/types.d.cts +6 -5
  328. package/dist/storage/types.d.ts +6 -5
  329. package/dist/{storage-RkNaOFJ-.js → storage-DyR7hDdv.js} +347 -168
  330. package/dist/storage-DyR7hDdv.js.map +1 -0
  331. package/dist/{storage-76Sf_z_H.cjs → storage-yovv11k6.cjs} +366 -169
  332. package/dist/storage-yovv11k6.cjs.map +1 -0
  333. package/dist/stream/index.cjs +3 -3
  334. package/dist/stream/index.d.cts +2 -2
  335. package/dist/stream/index.d.ts +2 -2
  336. package/dist/stream/index.js +3 -3
  337. package/dist/stream/types.d.cts +1 -1
  338. package/dist/stream/types.d.ts +1 -1
  339. package/dist/syncActions/index.cjs +1 -1
  340. package/dist/syncActions/index.d.cts +2 -2
  341. package/dist/syncActions/index.d.ts +2 -2
  342. package/dist/syncActions/index.js +1 -1
  343. package/dist/syncActions/types.d.cts +1 -1
  344. package/dist/syncActions/types.d.ts +1 -1
  345. package/dist/{syncActions-DlNPhZY4.cjs → syncActions-C1rE4R3f.cjs} +5 -5
  346. package/dist/{syncActions-DlNPhZY4.cjs.map → syncActions-C1rE4R3f.cjs.map} +1 -1
  347. package/dist/{syncActions-BvFUa9xV.js → syncActions-DM8vP7p3.js} +5 -5
  348. package/dist/{syncActions-BvFUa9xV.js.map → syncActions-DM8vP7p3.js.map} +1 -1
  349. package/dist/telemetry/index.cjs +3 -6
  350. package/dist/telemetry/index.cjs.map +1 -1
  351. package/dist/telemetry/index.d.cts +2 -5
  352. package/dist/telemetry/index.d.ts +2 -5
  353. package/dist/telemetry/index.js +3 -6
  354. package/dist/telemetry/index.js.map +1 -1
  355. package/dist/telemetry/types.d.cts +1 -1
  356. package/dist/telemetry/types.d.ts +1 -1
  357. package/dist/{jobStatus-BJdbZ72V.js → transientRetries-B4iusp69.js} +79 -37
  358. package/dist/transientRetries-B4iusp69.js.map +1 -0
  359. package/dist/{jobStatus-B0E-MZ9I.cjs → transientRetries-DdJfH9QK.cjs} +82 -40
  360. package/dist/transientRetries-DdJfH9QK.cjs.map +1 -0
  361. package/dist/{types-tgU8XvPs.d.cts → types--qQPfxWt.d.cts} +2 -2
  362. package/dist/types-4CjbcUdD.d.cts +1536 -0
  363. package/dist/{types-DaMmgW-O.d.ts → types-4HmtNuJf.d.ts} +2 -2
  364. package/dist/types-4bSZLxq3.d.cts +1973 -0
  365. package/dist/{types-BaSlU0uo.d.ts → types-7DBpH7Rf.d.ts} +2 -2
  366. package/dist/types-B2ZLjagf.d.ts +1536 -0
  367. package/dist/{types-DgPt4LY_.d.cts → types-B6ozaDkl.d.cts} +192 -78
  368. package/dist/{types-YHUEArkR.d.cts → types-BBbzWczQ.d.cts} +2 -2
  369. package/dist/{types-CgBzm1YR.d.cts → types-BG0oWq8u.d.cts} +2 -2
  370. package/dist/types-BIDKSQdc.d.ts +1973 -0
  371. package/dist/{types-ByLH46Dt.d.cts → types-BKIcow3B.d.cts} +2 -2
  372. package/dist/{types-CfwqVkEA.d.ts → types-BNPvFLgC.d.ts} +2 -2
  373. package/dist/{types-DlQw6FCi.d.ts → types-BXgINefw.d.ts} +2 -2
  374. package/dist/{types-CalDJHCX.d.cts → types-BZBU3mwz.d.cts} +3 -3
  375. package/dist/{types-Bydx6ga_.d.cts → types-B_1plf0y.d.cts} +2 -2
  376. package/dist/{types-Ccd9O6ca.d.cts → types-B_3zoXA1.d.cts} +3 -3
  377. package/dist/{types-BBUZ9EHs.d.ts → types-BcQ3j8xK.d.ts} +8 -2
  378. package/dist/{types-B8N_k79M.d.cts → types-BdF6NDvo.d.cts} +2 -2
  379. package/dist/{types-CABWhTa9.d.ts → types-BiBBKcin.d.ts} +3 -3
  380. package/dist/{types-DVt0qlzI.d.cts → types-BiTn_JVW.d.cts} +736 -289
  381. package/dist/{types-CN6huo55.d.ts → types-BjEiUOL6.d.ts} +192 -78
  382. package/dist/{types-z82gSTx8.d.ts → types-BoH7NFCh.d.ts} +3 -3
  383. package/dist/{types-CcYxlqtB.d.cts → types-BwsE-pFo.d.cts} +2 -2
  384. package/dist/{types-DrvKfXXd.d.cts → types-Bx0TSdwF.d.cts} +2 -2
  385. package/dist/{types-DazRtukc.d.ts → types-C2JMisvL.d.ts} +736 -289
  386. package/dist/{types-DVZpKGBJ.d.ts → types-C2j6Jsie.d.ts} +3 -3
  387. package/dist/{types-BZDV8DZk.d.ts → types-C3IQu1gV.d.ts} +11 -6
  388. package/dist/{types-WZBztugL.d.ts → types-C7t_6FLh.d.ts} +2 -2
  389. package/dist/{types-Fs4a3mVs.d.ts → types-CBrNIgEy.d.ts} +64 -5
  390. package/dist/{types-CZJlLCbA.d.ts → types-CEw2IzWk.d.ts} +2 -2
  391. package/dist/{types-DdsYv2WG.d.cts → types-CMKIdreQ.d.cts} +3 -3
  392. package/dist/{types-AYX7VtS6.d.ts → types-COQOzyac.d.ts} +212 -2
  393. package/dist/{types-BiEh5c_t.d.cts → types-CZCPdPqv.d.cts} +132 -5
  394. package/dist/{types-B2w2TtSA.d.ts → types-Cw9UISvM.d.ts} +2 -2
  395. package/dist/{types-D9axmt5o.d.cts → types-D51g4h9w.d.cts} +8 -2
  396. package/dist/{types-CBPKpLTf.d.cts → types-D8w9lyb8.d.cts} +212 -2
  397. package/dist/{types-Dd31Lw4S.d.cts → types-DBJ8c3hN.d.cts} +2 -2
  398. package/dist/{types-DzV6LaZq.d.ts → types-DHlXKVEM.d.ts} +132 -5
  399. package/dist/{types-c_bsDkV6.d.cts → types-DPDq8C4q.d.cts} +16 -4
  400. package/dist/{types-D3wcs4tp.d.ts → types-DWJVbskE.d.ts} +2 -2
  401. package/dist/{types-CAp1VexS.d.ts → types-Dg8a7m7f.d.ts} +16 -4
  402. package/dist/{types-CoJVrRAD.d.ts → types-DgIzXY-Y.d.ts} +2 -2
  403. package/dist/{types-pvQzbgNE.d.cts → types-L50Y6ATu.d.cts} +11 -6
  404. package/dist/{types-DoZtE9tz.d.cts → types-OkQWmonU.d.cts} +2 -2
  405. package/dist/{types-BPy5Ozee.d.cts → types-TRJiPqJr.d.cts} +2 -2
  406. package/dist/{types-B-5ya_L5.d.ts → types-ij6BpTzR.d.ts} +2 -2
  407. package/dist/{types-DicSaNwq.d.ts → types-ituiCs8g.d.ts} +2 -2
  408. package/dist/{types-CGm2fQKK.d.cts → types-kbyIaA7p.d.cts} +64 -5
  409. package/dist/{validateConnectionStatus-DR-0h35y.cjs → validateConnectionStatus-BalWEyRk.cjs} +3 -3
  410. package/dist/{validateConnectionStatus-DR-0h35y.cjs.map → validateConnectionStatus-BalWEyRk.cjs.map} +1 -1
  411. package/dist/{validateConnectionStatus-CdTV3gsP.js → validateConnectionStatus-DyrYpn0G.js} +3 -3
  412. package/dist/{validateConnectionStatus-CdTV3gsP.js.map → validateConnectionStatus-DyrYpn0G.js.map} +1 -1
  413. package/dist/vault/index.cjs +6 -6
  414. package/dist/vault/index.cjs.map +1 -1
  415. package/dist/vault/index.d.cts +1 -1
  416. package/dist/vault/index.d.ts +1 -1
  417. package/dist/vault/index.js +6 -6
  418. package/dist/vault/index.js.map +1 -1
  419. package/dist/vault/types.d.cts +1 -1
  420. package/dist/vault/types.d.ts +1 -1
  421. package/package.json +27 -1
  422. package/surface/apps.md +5 -5
  423. package/surface/auth.md +21 -19
  424. package/surface/chat.md +2 -2
  425. package/surface/componentsMcp.md +9 -0
  426. package/surface/dataScience.md +2 -2
  427. package/surface/kaiAgent.md +2 -2
  428. package/surface/management.md +43 -41
  429. package/surface/oauth.md +1 -0
  430. package/surface/queryService.md +4 -4
  431. package/surface/queue.md +2 -2
  432. package/surface/sdk.md +0 -24
  433. package/surface/storage.md +101 -71
  434. package/dist/ManagementClientAuthError-BcPYxAWZ.js +0 -16
  435. package/dist/ManagementClientAuthError-BcPYxAWZ.js.map +0 -1
  436. package/dist/ManagementClientAuthError-DHuykEPF.cjs +0 -21
  437. package/dist/ManagementClientAuthError-DHuykEPF.cjs.map +0 -1
  438. package/dist/QueryJobTimeoutError-C7JbNGOM.js +0 -38
  439. package/dist/QueryJobTimeoutError-C7JbNGOM.js.map +0 -1
  440. package/dist/QueryJobTimeoutError-CVNPdCWX.cjs.map +0 -1
  441. package/dist/authClient-CACOwVt0.js.map +0 -1
  442. package/dist/authClient-DZcAR-eW.cjs.map +0 -1
  443. package/dist/collect-97WhfEpt.js.map +0 -1
  444. package/dist/collect-B5TCNiT1.cjs.map +0 -1
  445. package/dist/constants-BDGRQqij.cjs.map +0 -1
  446. package/dist/constants-Cifrqsls.js.map +0 -1
  447. package/dist/createFetchClient-ClWD4ua3.cjs.map +0 -1
  448. package/dist/createFetchClient-DITkTV2k.js.map +0 -1
  449. package/dist/index-BVhHt5lx.d.cts +0 -241
  450. package/dist/index-Bf8dr2KQ.d.ts +0 -16
  451. package/dist/index-BgR5zcjJ.d.ts +0 -241
  452. package/dist/index-CWPi7lBF.d.ts +0 -77
  453. package/dist/index-Dd40ojPr.d.cts +0 -77
  454. package/dist/index-DkCXaYsn.d.cts +0 -16
  455. package/dist/jobStatus-B0E-MZ9I.cjs.map +0 -1
  456. package/dist/jobStatus-BJdbZ72V.js.map +0 -1
  457. package/dist/management-C5lf9nsU.cjs.map +0 -1
  458. package/dist/management-WAtKH6Tu.js.map +0 -1
  459. package/dist/project-B8wtlstY.d.cts +0 -18
  460. package/dist/project-BCc3mpAy.d.ts +0 -18
  461. package/dist/project-BvFi19K_.cjs.map +0 -1
  462. package/dist/project-DWwZv66D.js.map +0 -1
  463. package/dist/queryService-Blfz59Ms.js.map +0 -1
  464. package/dist/queryService-RlNYw7LG.cjs.map +0 -1
  465. package/dist/queue-BrgRdtOr.cjs.map +0 -1
  466. package/dist/queue-CNvR-M23.js.map +0 -1
  467. package/dist/serviceIds-DRcoTnSd.d.cts +0 -32
  468. package/dist/serviceIds-DRcoTnSd.d.ts +0 -32
  469. package/dist/storage-76Sf_z_H.cjs.map +0 -1
  470. package/dist/storage-RkNaOFJ-.js.map +0 -1
  471. package/dist/types-9SEE4icc.d.ts +0 -1298
  472. package/dist/types-BhOUS9j1.d.cts +0 -749
  473. package/dist/types-BjR8Yodc.d.cts +0 -1298
  474. package/dist/types-CLHaZv9f.d.cts +0 -1868
  475. package/dist/types-CaOtNjSZ.d.ts +0 -957
  476. package/dist/types-D1A4mAG0.d.cts +0 -66
  477. package/dist/types-D8pGSkRe.d.ts +0 -1868
  478. package/dist/types-DxN2siRW.d.ts +0 -66
  479. package/dist/types-ePSqbXRr.d.cts +0 -957
  480. package/dist/types-gcAb6olM.d.ts +0 -749
@@ -0,0 +1,1536 @@
1
+ import { l as OpenapiReturnType, r as OpenapiBodyType, s as OpenapiPathType } from "./index-XaPb6unB.cjs";
2
+ //#region src/clients/oauth/utils.d.ts
3
+ /**
4
+ * Which credentials to list:
5
+ *
6
+ * - `all` — the whole project: branch-scoped and branchless alike.
7
+ * - `branchless` — only what is tied to no branch at all, not even the default one.
8
+ * - `branched` — only the branch whose id it carries.
9
+ *
10
+ * Discriminated on `scope`, not on `branchId` being present: a `string | 'all' | 'branchless'` union
11
+ * collapses to `string`, so a mistyped scope would silently become a branch-id filter.
12
+ */
13
+ type GetCredentialsInput = {
14
+ scope: 'all';
15
+ componentId?: string;
16
+ } | {
17
+ scope: 'branchless';
18
+ componentId?: string;
19
+ } | {
20
+ scope: 'branched';
21
+ branchId: string;
22
+ componentId?: string;
23
+ };
24
+ //#endregion
25
+ //#region src/clients/oauth/__generated__/schema.d.ts
26
+ /**
27
+ * This file was auto-generated by openapi-typescript.
28
+ * Do not make direct changes to the file.
29
+ */
30
+ type paths = {
31
+ '/authorize/{componentId}': {
32
+ parameters: {
33
+ query?: never;
34
+ header?: never;
35
+ path?: never;
36
+ cookie?: never;
37
+ };
38
+ get?: never;
39
+ put?: never;
40
+ /**
41
+ * Authorization init
42
+ * @description Call the endpoint to initiate the authorization process. It starts the authorization sessions and redirects
43
+ * client to the OAuth provider.
44
+ */
45
+ post: operations['authorizeInit'];
46
+ delete?: never;
47
+ options?: never;
48
+ head?: never;
49
+ patch?: never;
50
+ trace?: never;
51
+ };
52
+ '/authorize/{componentId}/callback': {
53
+ parameters: {
54
+ query?: never;
55
+ header?: never;
56
+ path?: never;
57
+ cookie?: never;
58
+ };
59
+ /**
60
+ * Authorization callback
61
+ * @description The endpoint is called by OAuth provider after the authorization process is finished. It uses parameters passed
62
+ * in query to retrieve the access token and stores the authorization. Finally it redirects the client back to the
63
+ * return URL.
64
+ */
65
+ get: operations['authorizeCallback'];
66
+ put?: never;
67
+ post?: never;
68
+ delete?: never;
69
+ options?: never;
70
+ head?: never;
71
+ patch?: never;
72
+ trace?: never;
73
+ };
74
+ '/credentials': {
75
+ parameters: {
76
+ query?: never;
77
+ header?: never;
78
+ path?: never;
79
+ cookie?: never;
80
+ };
81
+ /**
82
+ * Credentials list
83
+ * @description Returns list of component credentials.
84
+ */
85
+ get: operations['credentialsList'];
86
+ put?: never;
87
+ post?: never;
88
+ delete?: never;
89
+ options?: never;
90
+ head?: never;
91
+ patch?: never;
92
+ trace?: never;
93
+ };
94
+ '/credentials/{componentId}': {
95
+ parameters: {
96
+ query?: never;
97
+ header?: never;
98
+ path?: never;
99
+ cookie?: never;
100
+ };
101
+ /**
102
+ * Component credentials list
103
+ * @description Returns list of component credentials.
104
+ */
105
+ get: operations['componentCredentialsList'];
106
+ put?: never;
107
+ /**
108
+ * Create credentials
109
+ * @description Call the endpoint to create new credentials for given component.
110
+ */
111
+ post: operations['componentCredentialsCreate'];
112
+ delete?: never;
113
+ options?: never;
114
+ head?: never;
115
+ patch?: never;
116
+ trace?: never;
117
+ };
118
+ '/credentials/{componentId}/{name}': {
119
+ parameters: {
120
+ query?: never;
121
+ header?: never;
122
+ path?: never;
123
+ cookie?: never;
124
+ };
125
+ /**
126
+ * Credentials detail
127
+ * @description Returns the credentials detail.
128
+ */
129
+ get: operations['credentialsDetail'];
130
+ put?: never;
131
+ post?: never;
132
+ /**
133
+ * Delete credentials
134
+ * @description Delete existing credentials.
135
+ */
136
+ delete: operations['credentialsDelete'];
137
+ options?: never;
138
+ head?: never;
139
+ patch?: never;
140
+ trace?: never;
141
+ };
142
+ '/manage': {
143
+ parameters: {
144
+ query?: never;
145
+ header?: never;
146
+ path?: never;
147
+ cookie?: never;
148
+ };
149
+ /**
150
+ * List consumers
151
+ * @description Returns list of all registered consumers.
152
+ */
153
+ get: operations['consumersList'];
154
+ put?: never;
155
+ /**
156
+ * Create consumer
157
+ * @description Register a new OAuth consumer (component).
158
+ */
159
+ post: operations['consumerCreate'];
160
+ delete?: never;
161
+ options?: never;
162
+ head?: never;
163
+ patch?: never;
164
+ trace?: never;
165
+ };
166
+ '/manage/{componentId}': {
167
+ parameters: {
168
+ query?: never;
169
+ header?: never;
170
+ path?: never;
171
+ cookie?: never;
172
+ };
173
+ /**
174
+ * Consumer detail
175
+ * @description Returns the consumer detail for given component.
176
+ */
177
+ get: operations['consumerDetail'];
178
+ put?: never;
179
+ post?: never;
180
+ /**
181
+ * Delete consumer
182
+ * @description Delete an existing consumer.
183
+ */
184
+ delete: operations['consumerDelete'];
185
+ options?: never;
186
+ head?: never;
187
+ /**
188
+ * Update consumer
189
+ * @description Update an existing consumer. All fields are optional.
190
+ */
191
+ patch: operations['consumerUpdate'];
192
+ trace?: never;
193
+ };
194
+ '/platform-consumers': {
195
+ parameters: {
196
+ query?: never;
197
+ header?: never;
198
+ path?: never;
199
+ cookie?: never;
200
+ };
201
+ get?: never;
202
+ put?: never;
203
+ /**
204
+ * Register a platform application
205
+ * @description Registers a platform-level external application, currently a GitHub App. Done once per
206
+ * stack **and per GitHub deployment** by an operator. Requires the
207
+ * `oauth:platform-consumers-manage` scope.
208
+ *
209
+ * The private key and the client secret are stored encrypted and are never returned by any
210
+ * endpoint.
211
+ *
212
+ * **GitHub App prerequisites** (a human must do these in GitHub Developer Settings before the
213
+ * registration is usable):
214
+ *
215
+ * * Repository permissions: Contents → Read-only; Organization permissions: Members →
216
+ * Read-only (the install callback needs it to confirm the installer owns the GitHub
217
+ * organization).
218
+ * * "Where can this GitHub App be installed?" → Any account.
219
+ * * **"Request user authorization (OAuth) during installation" must be enabled**, and the
220
+ * App's Callback URL set to this service's
221
+ * `/platform-consumers/github-app/callback`. Without it GitHub sends no `code` with the
222
+ * install redirect, the callback cannot prove the installer owns the installation they
223
+ * returned with, and every connection attempt fails there.
224
+ * * `clientId` / `clientSecret` come from the same App's page ("Client ID", "Generate a new
225
+ * client secret") — they are not the App ID and private key.
226
+ *
227
+ * `apiBaseUrl` / `webBaseUrl` default to the stack's `GITHUB_API_URL` / `GITHUB_WEB_URL`.
228
+ * Register a GitHub Enterprise App by stating them: `https://api.acme.ghe.com` +
229
+ * `https://acme.ghe.com` for GitHub Enterprise Cloud, or
230
+ * `https://github.acme.internal/api/v3` + `https://github.acme.internal` for a self-hosted
231
+ * GitHub Enterprise Server.
232
+ */
233
+ post: operations['platformConsumerCreate'];
234
+ delete?: never;
235
+ options?: never;
236
+ head?: never;
237
+ patch?: never;
238
+ trace?: never;
239
+ };
240
+ '/platform-consumers/{id}': {
241
+ parameters: {
242
+ query?: never;
243
+ header?: never;
244
+ path?: never;
245
+ cookie?: never;
246
+ };
247
+ /** Platform consumer detail */
248
+ get: operations['platformConsumerDetail'];
249
+ put?: never;
250
+ post?: never;
251
+ /**
252
+ * Delete a platform consumer
253
+ * @description Refused while any organization is still connected through this registration. There is no
254
+ * force flag: cascading would silently disconnect every organization on the stack, and the
255
+ * operator cannot tell from here whose connections those are.
256
+ */
257
+ delete: operations['platformConsumerDelete'];
258
+ options?: never;
259
+ head?: never;
260
+ patch?: never;
261
+ trace?: never;
262
+ };
263
+ '/platform-consumers/github-app/callback': {
264
+ parameters: {
265
+ query?: never;
266
+ header?: never;
267
+ path?: never;
268
+ cookie?: never;
269
+ };
270
+ /**
271
+ * GitHub App install callback
272
+ * @description Invoked by GitHub, not by API consumers. This is the App's Callback URL, configured once on
273
+ * the GitHub side and identical for every install, which is why it carries no organization
274
+ * segment — the organization is recovered from the install session that `state` resolves to.
275
+ *
276
+ * It is the only endpoint that records an installation, and it requires no Keboola credential.
277
+ * Three things authorise it, all of them necessary:
278
+ *
279
+ * 1. `state` must match the `__Host-orgInstallSession` cookie set when the flow started (the
280
+ * legacy `oauthSessionId` cookie is ignored here);
281
+ * 2. `state` must resolve to an unexpired install session;
282
+ * 3. the installing user must own the account the installation belongs to. GitHub, asked as
283
+ * the App, says which account that is (`GET /app/installations/{id}`); asked with the
284
+ * user-to-server token obtained from `code`, it says whether the installer is an active
285
+ * owner of that organization (`GET /user/memberships/orgs/{login}` → `role: admin`,
286
+ * `state: active`) or, for a personal account, that very user (`GET /user`). Being a
287
+ * collaborator or an ordinary member is not enough.
288
+ *
289
+ * Point 3 is why the App needs "Request user authorization (OAuth) during installation" and
290
+ * the "Organization members: read" permission. Installation ids are small sequential
291
+ * integers, so without that confirmation anyone able to start an install for an organization
292
+ * they do administer could bind a stranger's installation and mint read tokens on that
293
+ * stranger's private repositories.
294
+ *
295
+ * When the installer is not a GitHub organization owner, GitHub returns
296
+ * `setup_action=request` with no installation id: the installation is pending an owner's
297
+ * approval and nothing is recorded.
298
+ *
299
+ * An organization holds at most one connection per GitHub account and registration. When the
300
+ * account is already connected under a *different* installation id — the App was
301
+ * uninstalled and installed again — the stale connection is replaced by the new one.
302
+ * Connecting the very same installation twice is a `409`.
303
+ */
304
+ get: operations['platformConsumerInstallCallback'];
305
+ put?: never;
306
+ post?: never;
307
+ delete?: never;
308
+ options?: never;
309
+ head?: never;
310
+ patch?: never;
311
+ trace?: never;
312
+ };
313
+ '/authorize/organizations/{organizationId}': {
314
+ parameters: {
315
+ query?: never;
316
+ header?: never;
317
+ path?: never;
318
+ cookie?: never;
319
+ };
320
+ get?: never;
321
+ put?: never;
322
+ /**
323
+ * Connect a GitHub organization
324
+ * @description Starts the GitHub App install flow and redirects to GitHub.
325
+ *
326
+ * Submitted by the browser as a form — a top-level navigation — exactly like
327
+ * `POST /authorize/{componentId}`, with the caller's Storage API token in the `token` form
328
+ * field, verified with Storage API by this service. The token may belong to any project the
329
+ * caller can reach: it establishes only *who* the caller is. A token without an admin
330
+ * (component or legacy token) is refused with `403`.
331
+ *
332
+ * The organization is taken from the URL and the caller must be an administrator of it — `GET /manage/organizations/{id}/users` is
333
+ * Connection's organization administrators listing, so appearing in it is the admin check.
334
+ * Deriving the organization from the token instead would be unsafe — users belong to projects
335
+ * across several organizations and the project-to-organization link is invisible in the UI.
336
+ *
337
+ * The credentials row is created incomplete and only becomes usable once the install
338
+ * callback records the installation. Starting again under the name of an incomplete row (an
339
+ * abandoned tab, or an install that became an owner-approval request) replaces that row and
340
+ * its session; otherwise the `app:expire-auth-sessions` cron sweeps it after an hour. A name
341
+ * already taken by a completed connection is a `409`.
342
+ *
343
+ * The response sets the session cookie `__Host-orgInstallSession` (Secure, HttpOnly,
344
+ * `Path=/`, no `Domain`, `SameSite=Lax`) and redirects to GitHub. The browser must be
345
+ * able to send the cookie back to the callback, so the install has to be started as a
346
+ * top-level navigation (a form POST cannot carry a token header, and `fetch()` fails on the
347
+ * cross-origin redirect and does not store the cookie). There is no header-authenticated
348
+ * variant: a non-browser client could not complete the install anyway.
349
+ *
350
+ * Login-CSRF guard: the request must carry an `Origin` header exactly equal to an allowed
351
+ * origin — `ORGANIZATION_INSTALL_ALLOWED_ORIGINS`, by default the stack's own UI
352
+ * `https://connection.<HOSTNAME_SUFFIX>`. A missing, `null` or other origin is a `403`, with
353
+ * nothing verified or written.
354
+ */
355
+ post: operations['organizationCredentialsInit'];
356
+ delete?: never;
357
+ options?: never;
358
+ head?: never;
359
+ patch?: never;
360
+ trace?: never;
361
+ };
362
+ '/organizations/{organizationId}/credentials': {
363
+ parameters: {
364
+ query?: never;
365
+ header?: never;
366
+ path?: never;
367
+ cookie?: never;
368
+ };
369
+ /**
370
+ * List connected GitHub organizations
371
+ * @description Lists the GitHub accounts this Keboola organization has connected. Connections whose
372
+ * install never completed are omitted.
373
+ */
374
+ get: operations['organizationCredentialsList'];
375
+ put?: never;
376
+ post?: never;
377
+ delete?: never;
378
+ options?: never;
379
+ head?: never;
380
+ patch?: never;
381
+ trace?: never;
382
+ };
383
+ '/organization-credentials/connections': {
384
+ parameters: {
385
+ query?: never;
386
+ header?: never;
387
+ path?: never;
388
+ cookie?: never;
389
+ };
390
+ /**
391
+ * List the GitHub connections of the token's organization
392
+ * @description Tells any member of a project which GitHub accounts the project's Keboola organization has
393
+ * connected, so the UI can offer `authType: organization` only where it makes sense to try.
394
+ * Any Storage API token of the project is accepted; no organization administrator is needed.
395
+ *
396
+ * A listed connection does not mean that a particular repository will work: the repository
397
+ * must still be one the GitHub App installation covers (it has to be selected in the
398
+ * installation on GitHub), and the account and host must match. Only an actual attempt,
399
+ * e.g. loading the repository's branches, tells for sure.
400
+ *
401
+ * The organization is the one the token's project belongs to, never one from the request.
402
+ * Only completed connections are listed, each reduced to its account login and host — no
403
+ * ids, names, creator or timestamps; those are in the administrator listing
404
+ * `GET /organizations/{organizationId}/credentials`. An organization without connections,
405
+ * or a token whose detail names no organization, gets an empty list.
406
+ */
407
+ get: operations['organizationCredentialsConnections'];
408
+ put?: never;
409
+ post?: never;
410
+ delete?: never;
411
+ options?: never;
412
+ head?: never;
413
+ patch?: never;
414
+ trace?: never;
415
+ };
416
+ '/organizations/{organizationId}/credentials/{id}': {
417
+ parameters: {
418
+ query?: never;
419
+ header?: never;
420
+ path?: never;
421
+ cookie?: never;
422
+ };
423
+ get?: never;
424
+ put?: never;
425
+ post?: never;
426
+ /**
427
+ * Disconnect a GitHub organization
428
+ * @description Removes the connection on the Keboola side. The App stays installed on GitHub until an
429
+ * owner removes it there.
430
+ */
431
+ delete: operations['organizationCredentialsDelete'];
432
+ options?: never;
433
+ head?: never;
434
+ patch?: never;
435
+ trace?: never;
436
+ };
437
+ '/organization-credentials/token': {
438
+ parameters: {
439
+ query?: never;
440
+ header?: never;
441
+ path?: never;
442
+ cookie?: never;
443
+ };
444
+ get?: never;
445
+ put?: never;
446
+ /**
447
+ * Mint a repository-scoped GitHub token
448
+ * @description Issues a short-lived GitHub token for a single repository, read-only, using the
449
+ * organization's GitHub App installation. Requires the `oauth:mint` scope.
450
+ *
451
+ * Application token only. A project Storage API token is present inside every data app
452
+ * container, so accepting one here would let application code mint tokens for any
453
+ * repository the installation covers.
454
+ *
455
+ * Keyed by repository, not by credential ID: the caller supplies the organization and the
456
+ * repository URL, and the owner is resolved to a connected installation here. A caller
457
+ * therefore cannot name a credential, nor reach one belonging to another organization. The
458
+ * repository URL's host also selects which GitHub App registration is used, so github.com and
459
+ * a GitHub Enterprise host can both be served by one stack.
460
+ *
461
+ * `projectId` must belong to `organizationId`; both come from the payload, so neither is
462
+ * trusted alone.
463
+ *
464
+ * The returned `#token` is encrypted for the supplied `projectId` and `componentId`; it is
465
+ * never returned in plaintext. It is a project-scoped ciphertext with no branch type, so it
466
+ * decrypts in every branch of that project. The token is always scoped to the single supplied
467
+ * repository with `contents: read`, whatever else the installation covers.
468
+ *
469
+ * The token lives about an hour. Every call mints a fresh one; keboola-operator calls again
470
+ * before the previous token expires, so a long-running app keeps a valid token.
471
+ *
472
+ * `403` means only that the caller's own application token was refused (e.g. it lacks the
473
+ * `oauth:mint` scope). Problems with the requested project or repository are `404`/`412`/
474
+ * `422`; upstream trouble is `429`/`502`/`503`. keboola-operator treats `400`/`404`/`412`/
475
+ * `422` as terminal (it stops the app) and retries `401`/`403`/`408`/`409`/`429`/`5xx`.
476
+ */
477
+ post: operations['organizationCredentialsMintToken'];
478
+ delete?: never;
479
+ options?: never;
480
+ head?: never;
481
+ patch?: never;
482
+ trace?: never;
483
+ };
484
+ '/health-check': {
485
+ parameters: {
486
+ query?: never;
487
+ header?: never;
488
+ path?: never;
489
+ cookie?: never;
490
+ };
491
+ /**
492
+ * Health-check endpoint
493
+ * @description Checks the service is up & running.
494
+ */
495
+ get: operations['healthCheck'];
496
+ put?: never;
497
+ post?: never;
498
+ delete?: never;
499
+ options?: never;
500
+ head?: never;
501
+ patch?: never;
502
+ trace?: never;
503
+ };
504
+ };
505
+ type components = {
506
+ schemas: {
507
+ PlatformConsumerCreateRequest: {
508
+ /** @enum {string} */
509
+ type: 'githubApp';
510
+ /**
511
+ * @description GitHub App ID (numeric, as shown in the App's settings).
512
+ * @example 123456
513
+ */
514
+ appId: string;
515
+ /**
516
+ * @description GitHub App slug, used to build the install URL `{webBaseUrl}/apps/{slug}/installations/new`.
517
+ * @example keboola-data-apps
518
+ */
519
+ slug: string;
520
+ /** @description PEM private key generated for the App. Stored encrypted and never returned. */
521
+ privateKey: string;
522
+ /**
523
+ * @description OAuth client ID of the same App. Used only by the install callback, to exchange the install `code` for a user-to-server token and verify installation ownership.
524
+ * @example Iv1.0123456789abcdef
525
+ */
526
+ clientId: string;
527
+ /** @description OAuth client secret of the same App. Stored encrypted and never returned. */
528
+ clientSecret: string;
529
+ /**
530
+ * Format: url
531
+ * @description REST API root. Defaults to the stack's `GITHUB_API_URL`. GitHub Enterprise Server needs the `/api/v3` suffix.
532
+ * @example https://api.github.com
533
+ */
534
+ apiBaseUrl?: string | null;
535
+ /**
536
+ * Format: url
537
+ * @description Web root. Defaults to the stack's `GITHUB_WEB_URL`. Its host is the only host repository URLs may name for this registration, and only one registration per type may exist for a given host.
538
+ * @example https://github.com
539
+ */
540
+ webBaseUrl?: string | null;
541
+ };
542
+ PlatformConsumer: {
543
+ /** Format: uuid */
544
+ id?: string;
545
+ /** @enum {string} */
546
+ type?: 'githubApp';
547
+ appId?: string;
548
+ slug?: string;
549
+ clientId?: string;
550
+ /** Format: url */
551
+ apiBaseUrl?: string;
552
+ /** Format: url */
553
+ webBaseUrl?: string;
554
+ /**
555
+ * @description Lower-cased host of `webBaseUrl`; unique per type.
556
+ * @example github.com
557
+ */
558
+ webHost?: string;
559
+ };
560
+ OrganizationCredentialsInitRequest: {
561
+ /** @description Storage API token of the caller; identifies who they are */
562
+ token: string;
563
+ /**
564
+ * @description Unique within the organization.
565
+ * @example acme-github
566
+ */
567
+ name: string;
568
+ /**
569
+ * Format: url
570
+ * @description Where GitHub returns the user after the install completes. Must be https.
571
+ */
572
+ returnUrl: string;
573
+ description?: string | null;
574
+ /**
575
+ * @description Which registered GitHub deployment to connect, as a bare host. Omitted means the stack's default (`GITHUB_WEB_URL`).
576
+ * @example acme.ghe.com
577
+ */
578
+ host?: string | null;
579
+ };
580
+ OrganizationCredentials: {
581
+ /** Format: uuid */
582
+ id?: string;
583
+ name?: string;
584
+ description?: string | null;
585
+ /**
586
+ * @description The GitHub account the App is installed on.
587
+ * @example acme
588
+ */
589
+ accountLogin?: string;
590
+ /**
591
+ * @description GitHub deployment this connection lives on.
592
+ * @example github.com
593
+ */
594
+ host?: string;
595
+ creator?: {
596
+ id?: string;
597
+ description?: string | null;
598
+ };
599
+ /** Format: date-time */
600
+ created?: string;
601
+ };
602
+ OrganizationConnections: {
603
+ connections: {
604
+ /**
605
+ * @description The GitHub account the App is installed on.
606
+ * @example acme
607
+ */
608
+ accountLogin: string;
609
+ /**
610
+ * @description GitHub deployment this connection lives on.
611
+ * @example github.com
612
+ */
613
+ host: string;
614
+ }[];
615
+ };
616
+ MintTokenRequest: {
617
+ organizationId: string;
618
+ /** @description Project the returned token is encrypted for. Must belong to `organizationId`. */
619
+ projectId: string;
620
+ /**
621
+ * @description Component the returned token is encrypted for.
622
+ * @example keboola.data-apps
623
+ */
624
+ componentId: string;
625
+ /**
626
+ * Format: url
627
+ * @description Repository the token is scoped to, as `https://{host}/{owner}/{repo}`. The host must be a registered GitHub deployment and the owner a GitHub account this organization has connected on it.
628
+ * @example https://github.com/acme/app
629
+ */
630
+ repository: string;
631
+ };
632
+ MintedToken: {
633
+ /** @description GitHub token, encrypted for the supplied project and component. Scoped to the single requested repository with read-only contents. */
634
+ '#token'?: string;
635
+ /** Format: date-time */
636
+ expiresAt?: string;
637
+ };
638
+ Error: {
639
+ error: string;
640
+ code: number;
641
+ exceptionId: string;
642
+ /** @enum {unknown} */
643
+ status: 'error';
644
+ context?: Record<string, never>;
645
+ };
646
+ /** @description Returned when a request payload fails validation. The top-level `error` stays a short human-readable string; `context` lists every failing field exactly once. */
647
+ ValidationError: {
648
+ /** @example Request contents is not valid */
649
+ error: string;
650
+ /** @example 422 */
651
+ code: number;
652
+ exceptionId: string;
653
+ /** @enum {unknown} */
654
+ status: 'error';
655
+ /** @description One entry per payload field that failed mapping or validation, keyed by index ("0", "1", …). Each failing field appears exactly once. */
656
+ context: {
657
+ [key: string]: {
658
+ /**
659
+ * @description Name of the payload field that failed, as sent by the client — encrypted fields are reported under their `#`-prefixed key (e.g. `#data`).
660
+ * @example authorizedFor
661
+ */
662
+ path: string;
663
+ /** @example Value '' is not a valid non-empty string. */
664
+ message: string;
665
+ };
666
+ };
667
+ };
668
+ Consumer: {
669
+ componentId: string;
670
+ friendlyName: string;
671
+ oauthVersion: string;
672
+ authUrl: string;
673
+ tokenUrl: string;
674
+ requestTokenUrl: string | null;
675
+ appKey: string;
676
+ appSecret: string;
677
+ appSecretDocker: string;
678
+ allowedEndpointHosts: string[];
679
+ };
680
+ Credentials: {
681
+ id: string;
682
+ branchId: string | null;
683
+ authorizedFor: string;
684
+ creator: {
685
+ id: string;
686
+ description: string | null;
687
+ };
688
+ /** Format: date-time */
689
+ created: string;
690
+ oauthVersion: string;
691
+ appKey: string;
692
+ '#appSecret': string;
693
+ '#data': string;
694
+ };
695
+ };
696
+ responses: {
697
+ /** @description Bad request */
698
+ '400_BadRequest': {
699
+ headers: {
700
+ [name: string]: unknown;
701
+ };
702
+ content: {
703
+ 'application/json': components['schemas']['Error'];
704
+ };
705
+ };
706
+ /** @description Validation failed - see `context` for the list of failing fields */
707
+ '422_UnprocessableEntity': {
708
+ headers: {
709
+ [name: string]: unknown;
710
+ };
711
+ content: {
712
+ 'application/json': components['schemas']['ValidationError'];
713
+ };
714
+ };
715
+ /** @description Unauthorized */
716
+ '401_Unauthorized': {
717
+ headers: {
718
+ [name: string]: unknown;
719
+ };
720
+ content: {
721
+ 'application/json': components['schemas']['Error'];
722
+ };
723
+ };
724
+ /** @description Forbidden */
725
+ '403_Forbidden': {
726
+ headers: {
727
+ [name: string]: unknown;
728
+ };
729
+ content: {
730
+ 'application/json': components['schemas']['Error'];
731
+ };
732
+ };
733
+ /** @description Forbidden */
734
+ '404_NotFound': {
735
+ headers: {
736
+ [name: string]: unknown;
737
+ };
738
+ content: {
739
+ 'application/json': components['schemas']['Error'];
740
+ };
741
+ };
742
+ /** @description Keboola Manage API is temporarily unavailable; retryable */
743
+ '503_ServiceUnavailable': {
744
+ headers: {
745
+ [name: string]: unknown;
746
+ };
747
+ content: {
748
+ 'application/json': components['schemas']['Error'];
749
+ };
750
+ };
751
+ /** @description GitHub is rate limiting this service; retry after the number of seconds in `Retry-After` */
752
+ '429_TooManyRequests': {
753
+ headers: {
754
+ /** @description Seconds to wait before retrying */
755
+ 'Retry-After'?: number;
756
+ [name: string]: unknown;
757
+ };
758
+ content: {
759
+ 'application/json': components['schemas']['Error'];
760
+ };
761
+ };
762
+ /** @description GitHub failed or could not be reached; retryable */
763
+ '502_BadGateway': {
764
+ headers: {
765
+ [name: string]: unknown;
766
+ };
767
+ content: {
768
+ 'application/json': components['schemas']['Error'];
769
+ };
770
+ };
771
+ };
772
+ parameters: {
773
+ /** @description Platform consumer ID. */
774
+ PlatformConsumerId: string;
775
+ /** @description Numeric Keboola organization ID. Always explicit — it is never derived from the token, because a user typically belongs to projects across several organizations. */
776
+ OrganizationId: string;
777
+ };
778
+ requestBodies: never;
779
+ headers: never;
780
+ pathItems: never;
781
+ };
782
+ interface operations {
783
+ authorizeInit: {
784
+ parameters: {
785
+ query?: never;
786
+ header?: never;
787
+ path: {
788
+ /** @description Component ID */
789
+ componentId: string;
790
+ };
791
+ cookie?: never;
792
+ };
793
+ requestBody: {
794
+ content: {
795
+ 'application/x-www-form-urlencoded': {
796
+ /** @description Authorization ID */
797
+ id: string;
798
+ /** @description Authorization description */
799
+ authorizedFor: string;
800
+ /** @description Storage token of the requester */
801
+ token: string;
802
+ /** @description URL where to redirect the client after authorization */
803
+ returnUrl: string;
804
+ /** @description Custom application key */
805
+ appKey?: string | null;
806
+ /** @description Custom application secret */
807
+ appSecret?: string | null;
808
+ /** @description Custom authorization URL */
809
+ authUrl?: string | null;
810
+ /** @description Custom token URL */
811
+ tokenUrl?: string | null;
812
+ /**
813
+ * @description ID of the branch where the credentials should live. If not specified, the credentials will be
814
+ * considered as project-wide.
815
+ *
816
+ * The property is not required for now, to keep compatibility with existing clients. But it will be
817
+ * required in the future (but still nullable), to ensure the client has considered if they want to
818
+ * create project-wide or branch-specific credentials.
819
+ */
820
+ branchId?: string | null;
821
+ };
822
+ };
823
+ };
824
+ responses: {
825
+ /** @description Redirect to OAuth provider */
826
+ 302: {
827
+ headers: {
828
+ /** @description URL to follow to authorize the component */
829
+ Location?: string;
830
+ [name: string]: unknown;
831
+ };
832
+ content?: never;
833
+ };
834
+ 400: components['responses']['400_BadRequest'];
835
+ 422: components['responses']['422_UnprocessableEntity'];
836
+ };
837
+ };
838
+ authorizeCallback: {
839
+ parameters: {
840
+ query?: never;
841
+ header?: never;
842
+ path: {
843
+ /** @description Component ID */
844
+ componentId: string;
845
+ };
846
+ cookie?: never;
847
+ };
848
+ requestBody?: never;
849
+ responses: {
850
+ /** @description Redirect client back to Keboola */
851
+ 302: {
852
+ headers: {
853
+ Location?: string;
854
+ [name: string]: unknown;
855
+ };
856
+ content?: never;
857
+ };
858
+ 400: components['responses']['400_BadRequest'];
859
+ };
860
+ };
861
+ credentialsList: {
862
+ parameters: {
863
+ query?: {
864
+ /** @description Component ID */
865
+ componentId?: string;
866
+ /**
867
+ * @description Branch ID
868
+ *
869
+ * Use value `null` to get credentials without branchId.
870
+ */
871
+ branchId?: string;
872
+ };
873
+ header?: never;
874
+ path?: never;
875
+ cookie?: never;
876
+ };
877
+ requestBody?: never;
878
+ responses: {
879
+ /** @description OK */
880
+ 200: {
881
+ headers: {
882
+ [name: string]: unknown;
883
+ };
884
+ content: {
885
+ 'application/json': components['schemas']['Credentials'][];
886
+ };
887
+ };
888
+ 400: components['responses']['400_BadRequest'];
889
+ 401: components['responses']['401_Unauthorized'];
890
+ 403: components['responses']['403_Forbidden'];
891
+ };
892
+ };
893
+ componentCredentialsList: {
894
+ parameters: {
895
+ query?: never;
896
+ header?: never;
897
+ path: {
898
+ /** @description Component ID */
899
+ componentId: string;
900
+ };
901
+ cookie?: never;
902
+ };
903
+ requestBody?: never;
904
+ responses: {
905
+ /** @description OK */
906
+ 200: {
907
+ headers: {
908
+ [name: string]: unknown;
909
+ };
910
+ content: {
911
+ 'application/json': components['schemas']['Credentials'][];
912
+ };
913
+ };
914
+ 401: components['responses']['401_Unauthorized'];
915
+ 403: components['responses']['403_Forbidden'];
916
+ };
917
+ };
918
+ componentCredentialsCreate: {
919
+ parameters: {
920
+ query?: never;
921
+ header?: never;
922
+ path: {
923
+ /** @description Component ID */
924
+ componentId: string;
925
+ };
926
+ cookie?: never;
927
+ };
928
+ requestBody: {
929
+ content: {
930
+ 'application/x-www-form-urlencoded': {
931
+ /** @description Credentials ID */
932
+ id: string;
933
+ /** @description Authorization description */
934
+ authorizedFor: string;
935
+ /** @description Encrypted data, e.g. OAuth token */
936
+ '#data': string;
937
+ /**
938
+ * @description ID of the branch where the credentials should live. If not specified, the credentials will be
939
+ * considered as project-wide.
940
+ *
941
+ * The property is not required for now, to keep compatibility with existing clients. But it will be
942
+ * required in the future (but still nullable), to ensure the client has considered if they want to
943
+ * create project-wide or branch-specific credentials.
944
+ */
945
+ branchId?: string | null;
946
+ };
947
+ };
948
+ };
949
+ responses: {
950
+ /** @description Credentials created */
951
+ 201: {
952
+ headers: {
953
+ [name: string]: unknown;
954
+ };
955
+ content: {
956
+ 'application/json': components['schemas']['Credentials'];
957
+ };
958
+ };
959
+ 400: components['responses']['400_BadRequest'];
960
+ 404: components['responses']['404_NotFound'];
961
+ 422: components['responses']['422_UnprocessableEntity'];
962
+ };
963
+ };
964
+ credentialsDetail: {
965
+ parameters: {
966
+ query?: never;
967
+ header?: never;
968
+ path: {
969
+ /** @description Component ID */
970
+ componentId: string;
971
+ /** @description Credentials name (authorization ID) */
972
+ name: string;
973
+ };
974
+ cookie?: never;
975
+ };
976
+ requestBody?: never;
977
+ responses: {
978
+ /** @description OK */
979
+ 200: {
980
+ headers: {
981
+ [name: string]: unknown;
982
+ };
983
+ content: {
984
+ 'application/json': components['schemas']['Credentials'];
985
+ };
986
+ };
987
+ 401: components['responses']['401_Unauthorized'];
988
+ 403: components['responses']['403_Forbidden'];
989
+ };
990
+ };
991
+ credentialsDelete: {
992
+ parameters: {
993
+ query?: never;
994
+ header?: never;
995
+ path: {
996
+ /** @description Component ID */
997
+ componentId: string;
998
+ /** @description Credentials name (authorization ID) */
999
+ name: string;
1000
+ };
1001
+ cookie?: never;
1002
+ };
1003
+ requestBody?: never;
1004
+ responses: {
1005
+ /** @description Credentials deleted */
1006
+ 204: {
1007
+ headers: {
1008
+ [name: string]: unknown;
1009
+ };
1010
+ content?: never;
1011
+ };
1012
+ 401: components['responses']['401_Unauthorized'];
1013
+ 404: components['responses']['404_NotFound'];
1014
+ };
1015
+ };
1016
+ consumersList: {
1017
+ parameters: {
1018
+ query?: never;
1019
+ header?: never;
1020
+ path?: never;
1021
+ cookie?: never;
1022
+ };
1023
+ requestBody?: never;
1024
+ responses: {
1025
+ /** @description OK */
1026
+ 200: {
1027
+ headers: {
1028
+ [name: string]: unknown;
1029
+ };
1030
+ content: {
1031
+ 'application/json': components['schemas']['Consumer'][];
1032
+ };
1033
+ };
1034
+ 401: components['responses']['401_Unauthorized'];
1035
+ };
1036
+ };
1037
+ consumerCreate: {
1038
+ parameters: {
1039
+ query?: never;
1040
+ header?: never;
1041
+ path?: never;
1042
+ cookie?: never;
1043
+ };
1044
+ requestBody: {
1045
+ content: {
1046
+ 'application/json': {
1047
+ componentId: string;
1048
+ friendlyName: string;
1049
+ oauthVersion: string;
1050
+ authUrl: string;
1051
+ tokenUrl: string;
1052
+ requestTokenUrl?: string | null;
1053
+ appKey: string;
1054
+ appSecret: string;
1055
+ allowedEndpointHosts?: string[];
1056
+ };
1057
+ };
1058
+ };
1059
+ responses: {
1060
+ /** @description Consumer created */
1061
+ 201: {
1062
+ headers: {
1063
+ [name: string]: unknown;
1064
+ };
1065
+ content: {
1066
+ 'application/json': components['schemas']['Consumer'];
1067
+ };
1068
+ };
1069
+ 401: components['responses']['401_Unauthorized'];
1070
+ 422: components['responses']['422_UnprocessableEntity'];
1071
+ };
1072
+ };
1073
+ consumerDetail: {
1074
+ parameters: {
1075
+ query?: never;
1076
+ header?: never;
1077
+ path: {
1078
+ /** @description Component ID */
1079
+ componentId: string;
1080
+ };
1081
+ cookie?: never;
1082
+ };
1083
+ requestBody?: never;
1084
+ responses: {
1085
+ /** @description OK */
1086
+ 200: {
1087
+ headers: {
1088
+ [name: string]: unknown;
1089
+ };
1090
+ content: {
1091
+ 'application/json': components['schemas']['Consumer'];
1092
+ };
1093
+ };
1094
+ 401: components['responses']['401_Unauthorized'];
1095
+ 404: components['responses']['404_NotFound'];
1096
+ };
1097
+ };
1098
+ consumerDelete: {
1099
+ parameters: {
1100
+ query?: never;
1101
+ header?: never;
1102
+ path: {
1103
+ /** @description Component ID */
1104
+ componentId: string;
1105
+ };
1106
+ cookie?: never;
1107
+ };
1108
+ requestBody?: never;
1109
+ responses: {
1110
+ /** @description Consumer deleted */
1111
+ 204: {
1112
+ headers: {
1113
+ [name: string]: unknown;
1114
+ };
1115
+ content?: never;
1116
+ };
1117
+ 401: components['responses']['401_Unauthorized'];
1118
+ 404: components['responses']['404_NotFound'];
1119
+ };
1120
+ };
1121
+ consumerUpdate: {
1122
+ parameters: {
1123
+ query?: never;
1124
+ header?: never;
1125
+ path: {
1126
+ /** @description Component ID */
1127
+ componentId: string;
1128
+ };
1129
+ cookie?: never;
1130
+ };
1131
+ requestBody: {
1132
+ content: {
1133
+ 'application/json': {
1134
+ friendlyName?: string | null;
1135
+ authUrl?: string | null;
1136
+ tokenUrl?: string | null;
1137
+ requestTokenUrl?: string | null;
1138
+ appKey?: string | null;
1139
+ appSecret?: string | null;
1140
+ allowedEndpointHosts?: string[] | null;
1141
+ };
1142
+ };
1143
+ };
1144
+ responses: {
1145
+ /** @description Consumer updated */
1146
+ 200: {
1147
+ headers: {
1148
+ [name: string]: unknown;
1149
+ };
1150
+ content: {
1151
+ 'application/json': components['schemas']['Consumer'];
1152
+ };
1153
+ };
1154
+ 401: components['responses']['401_Unauthorized'];
1155
+ 404: components['responses']['404_NotFound'];
1156
+ 422: components['responses']['422_UnprocessableEntity'];
1157
+ };
1158
+ };
1159
+ platformConsumerCreate: {
1160
+ parameters: {
1161
+ query?: never;
1162
+ header?: never;
1163
+ path?: never;
1164
+ cookie?: never;
1165
+ };
1166
+ requestBody: {
1167
+ content: {
1168
+ 'application/json': components['schemas']['PlatformConsumerCreateRequest'];
1169
+ };
1170
+ };
1171
+ responses: {
1172
+ /** @description Platform consumer registered */
1173
+ 201: {
1174
+ headers: {
1175
+ [name: string]: unknown;
1176
+ };
1177
+ content: {
1178
+ 'application/json': components['schemas']['PlatformConsumer'];
1179
+ };
1180
+ };
1181
+ 401: components['responses']['401_Unauthorized'];
1182
+ /** @description A registration of this type already exists for that GitHub host */
1183
+ 409: {
1184
+ headers: {
1185
+ [name: string]: unknown;
1186
+ };
1187
+ content: {
1188
+ 'application/json': components['schemas']['Error'];
1189
+ };
1190
+ };
1191
+ 422: components['responses']['422_UnprocessableEntity'];
1192
+ };
1193
+ };
1194
+ platformConsumerDetail: {
1195
+ parameters: {
1196
+ query?: never;
1197
+ header?: never;
1198
+ path: {
1199
+ /** @description Platform consumer ID. */
1200
+ id: components['parameters']['PlatformConsumerId'];
1201
+ };
1202
+ cookie?: never;
1203
+ };
1204
+ requestBody?: never;
1205
+ responses: {
1206
+ /** @description Platform consumer detail */
1207
+ 200: {
1208
+ headers: {
1209
+ [name: string]: unknown;
1210
+ };
1211
+ content: {
1212
+ 'application/json': components['schemas']['PlatformConsumer'];
1213
+ };
1214
+ };
1215
+ 401: components['responses']['401_Unauthorized'];
1216
+ 404: components['responses']['404_NotFound'];
1217
+ };
1218
+ };
1219
+ platformConsumerDelete: {
1220
+ parameters: {
1221
+ query?: never;
1222
+ header?: never;
1223
+ path: {
1224
+ /** @description Platform consumer ID. */
1225
+ id: components['parameters']['PlatformConsumerId'];
1226
+ };
1227
+ cookie?: never;
1228
+ };
1229
+ requestBody?: never;
1230
+ responses: {
1231
+ /** @description Platform consumer deleted */
1232
+ 204: {
1233
+ headers: {
1234
+ [name: string]: unknown;
1235
+ };
1236
+ content?: never;
1237
+ };
1238
+ 401: components['responses']['401_Unauthorized'];
1239
+ 404: components['responses']['404_NotFound'];
1240
+ /** @description Organizations are still connected through this registration */
1241
+ 409: {
1242
+ headers: {
1243
+ [name: string]: unknown;
1244
+ };
1245
+ content: {
1246
+ 'application/json': components['schemas']['Error'];
1247
+ };
1248
+ };
1249
+ };
1250
+ };
1251
+ platformConsumerInstallCallback: {
1252
+ parameters: {
1253
+ query: {
1254
+ /** @description GitHub installation ID. */
1255
+ installation_id?: string;
1256
+ /** @description Temporary user authorization code. Present only when the App has "Request user authorization (OAuth) during installation" enabled; the callback exchanges it for a user-to-server token and verifies installation ownership with it. */
1257
+ code?: string;
1258
+ /** @description What GitHub did. `request` means an owner still has to approve. */
1259
+ setup_action?: 'install' | 'request' | 'update';
1260
+ /** @description Opaque install-session ID issued when the flow started. */
1261
+ state: string;
1262
+ };
1263
+ header?: never;
1264
+ path?: never;
1265
+ cookie?: never;
1266
+ };
1267
+ requestBody?: never;
1268
+ responses: {
1269
+ /** @description Redirect back to the `returnUrl` supplied when the flow started */
1270
+ 302: {
1271
+ headers: {
1272
+ [name: string]: unknown;
1273
+ };
1274
+ content?: never;
1275
+ };
1276
+ 400: components['responses']['400_BadRequest'];
1277
+ /** @description The installer is not an active owner of the GitHub organization (or not the personal account) the installation belongs to, or the App lacks "Organization members: read" */
1278
+ 403: {
1279
+ headers: {
1280
+ [name: string]: unknown;
1281
+ };
1282
+ content: {
1283
+ 'application/json': components['schemas']['Error'];
1284
+ };
1285
+ };
1286
+ /** @description This installation is already connected to the organization (under the name the message states), the install session was already completed, or this attempt was superseded by a newer start under the same name while the callback ran (nothing is written; finish the newer attempt) */
1287
+ 409: {
1288
+ headers: {
1289
+ [name: string]: unknown;
1290
+ };
1291
+ content: {
1292
+ 'application/json': components['schemas']['Error'];
1293
+ };
1294
+ };
1295
+ };
1296
+ };
1297
+ organizationCredentialsInit: {
1298
+ parameters: {
1299
+ query?: never;
1300
+ header?: never;
1301
+ path: {
1302
+ /** @description Numeric Keboola organization ID. Always explicit — it is never derived from the token, because a user typically belongs to projects across several organizations. */
1303
+ organizationId: components['parameters']['OrganizationId'];
1304
+ };
1305
+ cookie?: never;
1306
+ };
1307
+ requestBody: {
1308
+ content: {
1309
+ 'application/x-www-form-urlencoded': components['schemas']['OrganizationCredentialsInitRequest'];
1310
+ };
1311
+ };
1312
+ responses: {
1313
+ /** @description Redirect to GitHub to install the App */
1314
+ 302: {
1315
+ headers: {
1316
+ [name: string]: unknown;
1317
+ };
1318
+ content?: never;
1319
+ };
1320
+ 400: components['responses']['400_BadRequest'];
1321
+ 403: components['responses']['403_Forbidden'];
1322
+ /** @description A completed connection with this name already exists in the organization */
1323
+ 409: {
1324
+ headers: {
1325
+ [name: string]: unknown;
1326
+ };
1327
+ content: {
1328
+ 'application/json': components['schemas']['Error'];
1329
+ };
1330
+ };
1331
+ /** @description No GitHub App is registered for that host on this stack */
1332
+ 412: {
1333
+ headers: {
1334
+ [name: string]: unknown;
1335
+ };
1336
+ content: {
1337
+ 'application/json': components['schemas']['Error'];
1338
+ };
1339
+ };
1340
+ 422: components['responses']['422_UnprocessableEntity'];
1341
+ 503: components['responses']['503_ServiceUnavailable'];
1342
+ };
1343
+ };
1344
+ organizationCredentialsList: {
1345
+ parameters: {
1346
+ query?: never;
1347
+ header?: never;
1348
+ path: {
1349
+ /** @description Numeric Keboola organization ID. Always explicit — it is never derived from the token, because a user typically belongs to projects across several organizations. */
1350
+ organizationId: components['parameters']['OrganizationId'];
1351
+ };
1352
+ cookie?: never;
1353
+ };
1354
+ requestBody?: never;
1355
+ responses: {
1356
+ /** @description Connected GitHub organizations */
1357
+ 200: {
1358
+ headers: {
1359
+ [name: string]: unknown;
1360
+ };
1361
+ content: {
1362
+ 'application/json': components['schemas']['OrganizationCredentials'][];
1363
+ };
1364
+ };
1365
+ 401: components['responses']['401_Unauthorized'];
1366
+ 403: components['responses']['403_Forbidden'];
1367
+ 503: components['responses']['503_ServiceUnavailable'];
1368
+ };
1369
+ };
1370
+ organizationCredentialsConnections: {
1371
+ parameters: {
1372
+ query?: never;
1373
+ header?: never;
1374
+ path?: never;
1375
+ cookie?: never;
1376
+ };
1377
+ requestBody?: never;
1378
+ responses: {
1379
+ /** @description Completed GitHub connections of the token's organization */
1380
+ 200: {
1381
+ headers: {
1382
+ [name: string]: unknown;
1383
+ };
1384
+ content: {
1385
+ 'application/json': components['schemas']['OrganizationConnections'];
1386
+ };
1387
+ };
1388
+ 401: components['responses']['401_Unauthorized'];
1389
+ };
1390
+ };
1391
+ organizationCredentialsDelete: {
1392
+ parameters: {
1393
+ query?: never;
1394
+ header?: never;
1395
+ path: {
1396
+ /** @description Numeric Keboola organization ID. Always explicit — it is never derived from the token, because a user typically belongs to projects across several organizations. */
1397
+ organizationId: components['parameters']['OrganizationId'];
1398
+ /** @description Organization credentials ID. */
1399
+ id: string;
1400
+ };
1401
+ cookie?: never;
1402
+ };
1403
+ requestBody?: never;
1404
+ responses: {
1405
+ /** @description Connection removed */
1406
+ 204: {
1407
+ headers: {
1408
+ [name: string]: unknown;
1409
+ };
1410
+ content?: never;
1411
+ };
1412
+ 401: components['responses']['401_Unauthorized'];
1413
+ 403: components['responses']['403_Forbidden'];
1414
+ 404: components['responses']['404_NotFound'];
1415
+ 503: components['responses']['503_ServiceUnavailable'];
1416
+ };
1417
+ };
1418
+ organizationCredentialsMintToken: {
1419
+ parameters: {
1420
+ query?: never;
1421
+ header?: never;
1422
+ path?: never;
1423
+ cookie?: never;
1424
+ };
1425
+ requestBody: {
1426
+ content: {
1427
+ 'application/json': components['schemas']['MintTokenRequest'];
1428
+ };
1429
+ };
1430
+ responses: {
1431
+ /** @description Minted token */
1432
+ 200: {
1433
+ headers: {
1434
+ [name: string]: unknown;
1435
+ };
1436
+ content: {
1437
+ 'application/json': components['schemas']['MintedToken'];
1438
+ };
1439
+ };
1440
+ 401: components['responses']['401_Unauthorized'];
1441
+ /** @description The application token is valid but not authorized for this endpoint (it lacks the `oauth:mint` scope). Never returned for a problem with the requested project or repository. */
1442
+ 403: {
1443
+ headers: {
1444
+ [name: string]: unknown;
1445
+ };
1446
+ content: {
1447
+ 'application/json': components['schemas']['Error'];
1448
+ };
1449
+ };
1450
+ /** @description The project was not found in the organization (it does not exist or belongs to another organization), no completed GitHub connection covers the repository's owner in that organization (the connected account login is fixed at install time, so after a GitHub organization rename this holds until the connection is reinstalled), or the GitHub installation was removed on GitHub */
1451
+ 404: {
1452
+ headers: {
1453
+ [name: string]: unknown;
1454
+ };
1455
+ content: {
1456
+ 'application/json': components['schemas']['Error'];
1457
+ };
1458
+ };
1459
+ /** @description No GitHub App is registered for that repository's host */
1460
+ 412: {
1461
+ headers: {
1462
+ [name: string]: unknown;
1463
+ };
1464
+ content: {
1465
+ 'application/json': components['schemas']['Error'];
1466
+ };
1467
+ };
1468
+ /** @description The repository is not covered by the organization's GitHub installation (GitHub answered `422`), or the request failed validation (see `context` for the failing fields) */
1469
+ 422: {
1470
+ headers: {
1471
+ [name: string]: unknown;
1472
+ };
1473
+ content: {
1474
+ 'application/json': components['schemas']['Error'] | components['schemas']['ValidationError'];
1475
+ };
1476
+ };
1477
+ 429: components['responses']['429_TooManyRequests'];
1478
+ /** @description GitHub failed (5xx, unreachable, malformed answer), rejected the App's own credentials, or refused to issue a token for the installation at all — a plain `403` from GitHub that is not rate limiting, i.e. the installation is suspended or lacks a permission. Retryable. */
1479
+ 502: {
1480
+ headers: {
1481
+ [name: string]: unknown;
1482
+ };
1483
+ content: {
1484
+ 'application/json': components['schemas']['Error'];
1485
+ };
1486
+ };
1487
+ 503: components['responses']['503_ServiceUnavailable'];
1488
+ };
1489
+ };
1490
+ healthCheck: {
1491
+ parameters: {
1492
+ query?: never;
1493
+ header?: never;
1494
+ path?: never;
1495
+ cookie?: never;
1496
+ };
1497
+ requestBody?: never;
1498
+ responses: {
1499
+ /** @description OK */
1500
+ 200: {
1501
+ headers: {
1502
+ [name: string]: unknown;
1503
+ };
1504
+ content: {
1505
+ 'application/json': {
1506
+ api?: string;
1507
+ /** Format: url */
1508
+ documentation?: string;
1509
+ };
1510
+ };
1511
+ };
1512
+ };
1513
+ };
1514
+ }
1515
+ //#endregion
1516
+ //#region src/clients/oauth/types.d.ts
1517
+ type Credential = OpenapiReturnType<paths['/credentials/{componentId}/{name}']['get']>;
1518
+ type OrganizationConnection = OpenapiReturnType<paths['/organization-credentials/connections']['get']>['connections'][number];
1519
+ type CreateCredentialBody = OpenapiBodyType<paths['/credentials/{componentId}']['post']>;
1520
+ type CredentialPath = OpenapiPathType<paths['/credentials/{componentId}/{name}']['get']>;
1521
+ type ComponentPath = OpenapiPathType<paths['/credentials/{componentId}']['post']>;
1522
+ /** Addresses one credential. The spec calls the second segment `name`; every caller calls it `id`. */
1523
+ type CredentialInput = ComponentPath & {
1524
+ id: CredentialPath['name'];
1525
+ };
1526
+ /**
1527
+ * `data` is the pre-`#data` create shape, accepted only by OAuth services predating this spec, so it
1528
+ * has no schema to generate from. The client takes the plain object either way and picks the wire
1529
+ * shape the stack accepts.
1530
+ */
1531
+ type CreateCredentialInput = ComponentPath & Omit<CreateCredentialBody, '#data'> & {
1532
+ data: Record<string, unknown>;
1533
+ };
1534
+ //#endregion
1535
+ export { CredentialInput as a, GetCredentialsInput as c, Credential as i, CreateCredentialBody as n, CredentialPath as o, CreateCredentialInput as r, OrganizationConnection as s, ComponentPath as t };
1536
+ //# sourceMappingURL=types-4CjbcUdD.d.cts.map