@keboola/api-client 42.0.0 → 44.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 (318) hide show
  1. package/AGENTS.md +4 -2
  2. package/API-SURFACE.md +5 -10
  3. package/CHANGELOG.md +48 -0
  4. package/README.md +17 -19
  5. package/dist/{ManagementClientAuthError-DUbXlry2.js → ManagementClientAuthError-BcPYxAWZ.js} +2 -2
  6. package/dist/{ManagementClientAuthError-DUbXlry2.js.map → ManagementClientAuthError-BcPYxAWZ.js.map} +1 -1
  7. package/dist/{ManagementClientAuthError-BFZOtLgj.cjs → ManagementClientAuthError-DHuykEPF.cjs} +2 -2
  8. package/dist/{ManagementClientAuthError-BFZOtLgj.cjs.map → ManagementClientAuthError-DHuykEPF.cjs.map} +1 -1
  9. package/dist/ai/index.cjs +2 -2
  10. package/dist/ai/index.js +2 -2
  11. package/dist/{appLogs-oZvt59mk.cjs → appLogs-BG9ueGxA.cjs} +2 -2
  12. package/dist/{appLogs-oZvt59mk.cjs.map → appLogs-BG9ueGxA.cjs.map} +1 -1
  13. package/dist/{appLogs-DfkItQCO.js → appLogs-CEKz68bE.js} +2 -2
  14. package/dist/{appLogs-DfkItQCO.js.map → appLogs-CEKz68bE.js.map} +1 -1
  15. package/dist/apps/index.cjs +3 -3
  16. package/dist/apps/index.js +3 -3
  17. package/dist/assets/index.cjs +1 -1
  18. package/dist/assets/index.js +1 -1
  19. package/dist/auth/index.cjs +1 -1
  20. package/dist/auth/index.js +1 -1
  21. package/dist/{auth-DUHTJTwS.js → auth-C6cHWIWx.js} +2 -2
  22. package/dist/{auth-DUHTJTwS.js.map → auth-C6cHWIWx.js.map} +1 -1
  23. package/dist/{auth-zfI04oj7.cjs → auth-C9o_0bft.cjs} +2 -2
  24. package/dist/{auth-zfI04oj7.cjs.map → auth-C9o_0bft.cjs.map} +1 -1
  25. package/dist/{authClient-CX4buUMc.js → authClient-CACOwVt0.js} +5 -5
  26. package/dist/{authClient-CX4buUMc.js.map → authClient-CACOwVt0.js.map} +1 -1
  27. package/dist/{authClient-BxqRGR5c.cjs → authClient-DZcAR-eW.cjs} +5 -5
  28. package/dist/{authClient-BxqRGR5c.cjs.map → authClient-DZcAR-eW.cjs.map} +1 -1
  29. package/dist/billing/index.cjs +2 -2
  30. package/dist/billing/index.js +2 -2
  31. package/dist/chat/index.cjs +3 -3
  32. package/dist/chat/index.js +3 -3
  33. package/dist/collect-97WhfEpt.js +30 -0
  34. package/dist/collect-97WhfEpt.js.map +1 -0
  35. package/dist/collect-B5TCNiT1.cjs +35 -0
  36. package/dist/collect-B5TCNiT1.cjs.map +1 -0
  37. package/dist/constants/index.cjs +1 -1
  38. package/dist/constants/index.d.cts +1 -1
  39. package/dist/constants/index.d.ts +1 -1
  40. package/dist/constants/index.js +1 -1
  41. package/dist/{constants-C6xku_Vx.cjs → constants-BDGRQqij.cjs} +1 -2
  42. package/dist/constants-BDGRQqij.cjs.map +1 -0
  43. package/dist/{constants-C2tYAJSj.js → constants-Cifrqsls.js} +1 -2
  44. package/dist/constants-Cifrqsls.js.map +1 -0
  45. package/dist/createAbortError-BxupOt-6.js +6 -0
  46. package/dist/createAbortError-BxupOt-6.js.map +1 -0
  47. package/dist/createAbortError-RendOpo7.cjs +11 -0
  48. package/dist/createAbortError-RendOpo7.cjs.map +1 -0
  49. package/dist/{createFetchClient-BgihytBn.cjs → createFetchClient-ClWD4ua3.cjs} +71 -25
  50. package/dist/createFetchClient-ClWD4ua3.cjs.map +1 -0
  51. package/dist/{createFetchClient-cgWkwgAQ.js → createFetchClient-DITkTV2k.js} +54 -26
  52. package/dist/createFetchClient-DITkTV2k.js.map +1 -0
  53. package/dist/{createGenericFetchClient-C7Y0YVfc.cjs → createGenericFetchClient-B81Iezpb.cjs} +2 -2
  54. package/dist/{createGenericFetchClient-C7Y0YVfc.cjs.map → createGenericFetchClient-B81Iezpb.cjs.map} +1 -1
  55. package/dist/{createGenericFetchClient-CX9Hn3Aq.js → createGenericFetchClient-KqiJhw8G.js} +2 -2
  56. package/dist/{createGenericFetchClient-CX9Hn3Aq.js.map → createGenericFetchClient-KqiJhw8G.js.map} +1 -1
  57. package/dist/{createOpenapiFetchClient-DY5s-aH6.cjs → createOpenapiFetchClient-CioTX11-.cjs} +2 -2
  58. package/dist/{createOpenapiFetchClient-DY5s-aH6.cjs.map → createOpenapiFetchClient-CioTX11-.cjs.map} +1 -1
  59. package/dist/{createOpenapiFetchClient-BxcLLU_N.js → createOpenapiFetchClient-wq8iGLZM.js} +2 -2
  60. package/dist/{createOpenapiFetchClient-BxcLLU_N.js.map → createOpenapiFetchClient-wq8iGLZM.js.map} +1 -1
  61. package/dist/dataScience/index.cjs +2 -2
  62. package/dist/dataScience/index.d.cts +1 -1
  63. package/dist/dataScience/index.d.ts +1 -1
  64. package/dist/dataScience/index.js +2 -2
  65. package/dist/dataScience/types.d.cts +2 -2
  66. package/dist/dataScience/types.d.ts +2 -2
  67. package/dist/{dataScience-BxRoGfnG.js → dataScience-BwHmDoQb.js} +16 -5
  68. package/dist/dataScience-BwHmDoQb.js.map +1 -0
  69. package/dist/{dataScience-BoS8Xfvx.cjs → dataScience-Hhoqoql_.cjs} +16 -5
  70. package/dist/dataScience-Hhoqoql_.cjs.map +1 -0
  71. package/dist/developerPortal/index.cjs +1 -1
  72. package/dist/developerPortal/index.d.cts +2 -2
  73. package/dist/developerPortal/index.d.ts +2 -2
  74. package/dist/developerPortal/index.js +1 -1
  75. package/dist/developerPortal/types.d.cts +1 -1
  76. package/dist/developerPortal/types.d.ts +1 -1
  77. package/dist/{developerPortalClient-DFHEsrlt.cjs → developerPortalClient-COm7wJxS.cjs} +3 -3
  78. package/dist/{developerPortalClient-DFHEsrlt.cjs.map → developerPortalClient-COm7wJxS.cjs.map} +1 -1
  79. package/dist/{developerPortalClient-C7s0kpjK.js → developerPortalClient-loKq7X_U.js} +3 -3
  80. package/dist/{developerPortalClient-C7s0kpjK.js.map → developerPortalClient-loKq7X_U.js.map} +1 -1
  81. package/dist/editor/index.cjs +2 -2
  82. package/dist/editor/index.js +2 -2
  83. package/dist/encryption/index.cjs +1 -1
  84. package/dist/encryption/index.d.cts +1 -1
  85. package/dist/encryption/index.d.ts +1 -1
  86. package/dist/encryption/index.js +1 -1
  87. package/dist/encryption/types.d.cts +1 -1
  88. package/dist/encryption/types.d.ts +1 -1
  89. package/dist/import/index.cjs +1 -1
  90. package/dist/import/index.js +1 -1
  91. package/dist/{import-BSYvG3Uy.cjs → import-B5DcJGMI.cjs} +3 -3
  92. package/dist/{import-BSYvG3Uy.cjs.map → import-B5DcJGMI.cjs.map} +1 -1
  93. package/dist/{import-CXBcFVbk.js → import-JlH_QaDd.js} +3 -3
  94. package/dist/{import-CXBcFVbk.js.map → import-JlH_QaDd.js.map} +1 -1
  95. package/dist/{index-VnJCp8IL.d.cts → index-04pgr-EO.d.cts} +3 -2
  96. package/dist/{index-D-VMgpGc.d.ts → index-BCgmwncs.d.ts} +10 -2
  97. package/dist/{index-CcMHJcuP.d.cts → index-BHWTa4YN.d.cts} +3 -2
  98. package/dist/{index-CBWfpd-0.d.ts → index-Bf8dr2KQ.d.ts} +2 -2
  99. package/dist/{index-B03vhWSX.d.ts → index-CA6QxbhZ.d.ts} +4 -2
  100. package/dist/{index-Cw-d6vV3.d.ts → index-CWPi7lBF.d.ts} +5 -5
  101. package/dist/{index-C11JSxBY.d.ts → index-CX8GAP2g.d.ts} +13 -8
  102. package/dist/{index-C4TNAA8-.d.cts → index-Cvkrjh--.d.cts} +13 -8
  103. package/dist/{index-Cz0MXhzs.d.cts → index-D9UsQOuT.d.cts} +10 -2
  104. package/dist/{index-B2-7WJ-E.d.cts → index-DZcQUZaO.d.cts} +52 -84
  105. package/dist/{index-CKENwClW.d.cts → index-Dd40ojPr.d.cts} +5 -5
  106. package/dist/{index-BUsLHNOA.d.cts → index-DkCXaYsn.d.cts} +2 -2
  107. package/dist/{index-D3HFMfJJ.d.cts → index-DkvrbR2i.d.cts} +4 -2
  108. package/dist/{index-CpE_NWuq.d.ts → index-DzGmgUvQ.d.ts} +52 -84
  109. package/dist/{index-DwM1EpnZ.d.ts → index-R-w0Zncz.d.ts} +3 -2
  110. package/dist/{index-D_-4uQF8.d.ts → index-zyxZVJnd.d.ts} +3 -2
  111. package/dist/index.cjs +53 -60
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.d.cts +2 -2
  114. package/dist/index.d.ts +2 -2
  115. package/dist/index.js +49 -56
  116. package/dist/index.js.map +1 -1
  117. package/dist/{isLoginPageRedirect-CsjF95_P.js → isLoginPageRedirect-CsyRa3_v.js} +2 -2
  118. package/dist/{isLoginPageRedirect-CsjF95_P.js.map → isLoginPageRedirect-CsyRa3_v.js.map} +1 -1
  119. package/dist/{isLoginPageRedirect-c451CoWW.cjs → isLoginPageRedirect-iNbwl3iz.cjs} +2 -2
  120. package/dist/{isLoginPageRedirect-c451CoWW.cjs.map → isLoginPageRedirect-iNbwl3iz.cjs.map} +1 -1
  121. package/dist/{jobStatus-CfRtsIpv.js → jobStatus-CDp4r5JQ.js} +3 -5
  122. package/dist/jobStatus-CDp4r5JQ.js.map +1 -0
  123. package/dist/{jobStatus-BMlsyXWI.cjs → jobStatus-CcNlIy5R.cjs} +5 -13
  124. package/dist/{jobStatus-CfRtsIpv.js.map → jobStatus-CcNlIy5R.cjs.map} +1 -1
  125. package/dist/kaiAgent/index.cjs +1 -1
  126. package/dist/kaiAgent/index.d.cts +1 -1
  127. package/dist/kaiAgent/index.d.ts +1 -1
  128. package/dist/kaiAgent/index.js +1 -1
  129. package/dist/kaiAgent/types.d.cts +1 -1
  130. package/dist/kaiAgent/types.d.ts +1 -1
  131. package/dist/{kaiAgent-ph4DRKlT.cjs → kaiAgent-BhcUsBDk.cjs} +5 -5
  132. package/dist/{kaiAgent-ph4DRKlT.cjs.map → kaiAgent-BhcUsBDk.cjs.map} +1 -1
  133. package/dist/{kaiAgent-xBpUwLeQ.js → kaiAgent-CUeT53-K.js} +5 -5
  134. package/dist/{kaiAgent-xBpUwLeQ.js.map → kaiAgent-CUeT53-K.js.map} +1 -1
  135. package/dist/{kaiMemory-U0DG-CpY.cjs → kaiMemory-Cf81ghNd.cjs} +2 -2
  136. package/dist/{kaiMemory-U0DG-CpY.cjs.map → kaiMemory-Cf81ghNd.cjs.map} +1 -1
  137. package/dist/{kaiMemory-BAniZZAN.js → kaiMemory-DaOh0zVn.js} +2 -2
  138. package/dist/{kaiMemory-BAniZZAN.js.map → kaiMemory-DaOh0zVn.js.map} +1 -1
  139. package/dist/management/index.cjs +1 -1
  140. package/dist/management/index.d.cts +1 -1
  141. package/dist/management/index.d.ts +1 -1
  142. package/dist/management/index.js +1 -1
  143. package/dist/management/types.d.cts +2 -2
  144. package/dist/management/types.d.ts +2 -2
  145. package/dist/{management-5597SiC7.cjs → management-C5lf9nsU.cjs} +31 -6
  146. package/dist/management-C5lf9nsU.cjs.map +1 -0
  147. package/dist/{management-D46KlXts.js → management-WAtKH6Tu.js} +31 -6
  148. package/dist/management-WAtKH6Tu.js.map +1 -0
  149. package/dist/metastore/index.cjs +1 -1
  150. package/dist/metastore/index.js +1 -1
  151. package/dist/{metastore-_OskcLGz.js → metastore-D0C6uaPX.js} +4 -4
  152. package/dist/{metastore-_OskcLGz.js.map → metastore-D0C6uaPX.js.map} +1 -1
  153. package/dist/{metastore-DwMFlP2d.cjs → metastore-YPHUK3jJ.cjs} +4 -4
  154. package/dist/{metastore-DwMFlP2d.cjs.map → metastore-YPHUK3jJ.cjs.map} +1 -1
  155. package/dist/microsoftGraph/index.cjs +2 -2
  156. package/dist/microsoftGraph/index.d.cts +2 -1
  157. package/dist/microsoftGraph/index.d.ts +2 -1
  158. package/dist/microsoftGraph/index.js +2 -2
  159. package/dist/microsoftGraph/types.d.cts +1 -1
  160. package/dist/microsoftGraph/types.d.ts +1 -1
  161. package/dist/{middleware-xhg2r2fE.cjs → middleware-D_p5TctO.cjs} +2 -2
  162. package/dist/{middleware-xhg2r2fE.cjs.map → middleware-D_p5TctO.cjs.map} +1 -1
  163. package/dist/{middleware-Drbo_UIZ.js → middleware-DmR6OhTY.js} +2 -2
  164. package/dist/{middleware-Drbo_UIZ.js.map → middleware-DmR6OhTY.js.map} +1 -1
  165. package/dist/notifications/index.cjs +3 -3
  166. package/dist/notifications/index.js +3 -3
  167. package/dist/oauth/index.cjs +1 -1
  168. package/dist/oauth/index.d.cts +1 -1
  169. package/dist/oauth/index.d.ts +1 -1
  170. package/dist/oauth/index.js +1 -1
  171. package/dist/oauth/types.d.cts +1 -1
  172. package/dist/oauth/types.d.ts +1 -1
  173. package/dist/{oauth-TWwAv-va.js → oauth-Ck_Fe14o.js} +5 -5
  174. package/dist/{oauth-TWwAv-va.js.map → oauth-Ck_Fe14o.js.map} +1 -1
  175. package/dist/{oauth-L0Uic3YA.cjs → oauth-DyUwTqHJ.cjs} +5 -5
  176. package/dist/{oauth-L0Uic3YA.cjs.map → oauth-DyUwTqHJ.cjs.map} +1 -1
  177. package/dist/omnisearch/index.cjs +2 -2
  178. package/dist/omnisearch/index.d.cts +1 -1
  179. package/dist/omnisearch/index.d.ts +1 -1
  180. package/dist/omnisearch/index.js +2 -2
  181. package/dist/omnisearch/types.d.cts +1 -1
  182. package/dist/omnisearch/types.d.ts +1 -1
  183. package/dist/queryService/index.cjs +1 -1
  184. package/dist/queryService/index.d.cts +1 -1
  185. package/dist/queryService/index.d.ts +1 -1
  186. package/dist/queryService/index.js +1 -1
  187. package/dist/{queryService-CdtogGr7.js → queryService-OgdbrBjA.js} +6 -6
  188. package/dist/{queryService-CdtogGr7.js.map → queryService-OgdbrBjA.js.map} +1 -1
  189. package/dist/{queryService-Dx6AdxOl.cjs → queryService-e2ql5eev.cjs} +6 -6
  190. package/dist/{queryService-Dx6AdxOl.cjs.map → queryService-e2ql5eev.cjs.map} +1 -1
  191. package/dist/queue/index.cjs +1 -1
  192. package/dist/queue/index.d.cts +1 -1
  193. package/dist/queue/index.d.ts +1 -1
  194. package/dist/queue/index.js +1 -1
  195. package/dist/{queue-f2xsjy0o.js → queue-BZwZuZZx.js} +7 -32
  196. package/dist/queue-BZwZuZZx.js.map +1 -0
  197. package/dist/{queue-wIdnMtaZ.cjs → queue-DGoMbK1X.cjs} +7 -38
  198. package/dist/{queue-f2xsjy0o.js.map → queue-DGoMbK1X.cjs.map} +1 -1
  199. package/dist/scheduler/index.cjs +3 -3
  200. package/dist/scheduler/index.d.cts +13 -1
  201. package/dist/scheduler/index.d.ts +13 -1
  202. package/dist/scheduler/index.js +3 -3
  203. package/dist/scheduler/types.d.cts +1 -1
  204. package/dist/scheduler/types.d.ts +1 -1
  205. package/dist/{schema-D1oxyn1O.d.cts → schema-DJa9WBjR.d.cts} +28 -1
  206. package/dist/{schema-D1oxyn1O.d.ts → schema-DJa9WBjR.d.ts} +28 -1
  207. package/dist/sdk/configurations/index.d.cts +3 -3
  208. package/dist/sdk/configurations/index.d.ts +3 -3
  209. package/dist/sdk/developerPortal/index.cjs +3 -3
  210. package/dist/sdk/developerPortal/index.d.cts +13 -8
  211. package/dist/sdk/developerPortal/index.d.ts +13 -8
  212. package/dist/sdk/developerPortal/index.js +3 -3
  213. package/dist/sdk/kaiMemory/index.cjs +1 -1
  214. package/dist/sdk/kaiMemory/index.js +1 -1
  215. package/dist/sdk/queryService/index.cjs +1 -1
  216. package/dist/sdk/queryService/index.d.cts +1 -1
  217. package/dist/sdk/queryService/index.d.ts +1 -1
  218. package/dist/sdk/queryService/index.js +1 -1
  219. package/dist/sdk/semanticLayer/index.cjs +1 -1
  220. package/dist/sdk/semanticLayer/index.js +1 -1
  221. package/dist/sdk/storage/index.d.cts +1 -1
  222. package/dist/sdk/storage/index.d.ts +1 -1
  223. package/dist/sdk/vault/index.d.cts +1 -1
  224. package/dist/sdk/vault/index.d.ts +1 -1
  225. package/dist/{semanticLayer-D3NDh_QH.cjs → semanticLayer-Cz22bIjd.cjs} +2 -2
  226. package/dist/{semanticLayer-D3NDh_QH.cjs.map → semanticLayer-Cz22bIjd.cjs.map} +1 -1
  227. package/dist/{semanticLayer-Ddg0LSnt.js → semanticLayer-JSE51K68.js} +2 -2
  228. package/dist/{semanticLayer-Ddg0LSnt.js.map → semanticLayer-JSE51K68.js.map} +1 -1
  229. package/dist/{serviceIds-DC-H6ZD9.d.ts → serviceIds-DRcoTnSd.d.cts} +1 -2
  230. package/dist/{serviceIds-DC-H6ZD9.d.cts → serviceIds-DRcoTnSd.d.ts} +1 -2
  231. package/dist/status/index.cjs +1 -1
  232. package/dist/status/index.js +1 -1
  233. package/dist/storage/index.cjs +4 -4
  234. package/dist/storage/index.d.cts +1 -1
  235. package/dist/storage/index.d.ts +1 -1
  236. package/dist/storage/index.js +4 -4
  237. package/dist/storage/types.d.cts +3 -3
  238. package/dist/storage/types.d.ts +3 -3
  239. package/dist/{storage-CXQTTVXl.cjs → storage-B4AnXas_.cjs} +35 -24
  240. package/dist/storage-B4AnXas_.cjs.map +1 -0
  241. package/dist/{storage-BkdjgtCU.js → storage-CsdA47AL.js} +35 -24
  242. package/dist/storage-CsdA47AL.js.map +1 -0
  243. package/dist/stream/index.cjs +3 -3
  244. package/dist/stream/index.js +3 -3
  245. package/dist/syncActions/index.cjs +1 -1
  246. package/dist/syncActions/index.js +1 -1
  247. package/dist/{syncActions-BQ8kMgL6.js → syncActions-BvFUa9xV.js} +5 -5
  248. package/dist/{syncActions-BQ8kMgL6.js.map → syncActions-BvFUa9xV.js.map} +1 -1
  249. package/dist/{syncActions-DyxNmbUR.cjs → syncActions-DlNPhZY4.cjs} +5 -5
  250. package/dist/{syncActions-DyxNmbUR.cjs.map → syncActions-DlNPhZY4.cjs.map} +1 -1
  251. package/dist/telemetry/index.cjs +3 -3
  252. package/dist/telemetry/index.js +3 -3
  253. package/dist/{types-n4PTnLii.d.ts → types-AYX7VtS6.d.ts} +179 -2
  254. package/dist/{types-CZXPu3gn.d.ts → types-BBUZ9EHs.d.ts} +4 -1
  255. package/dist/{types-CP_LBmw3.d.cts → types-BhOUS9j1.d.cts} +26 -3
  256. package/dist/{types-tKkeLa2B.d.cts → types-BiEh5c_t.d.cts} +60 -8
  257. package/dist/{types-RbrfiY8T.d.ts → types-CAp1VexS.d.ts} +3 -3
  258. package/dist/{types-DinIJ1D_.d.cts → types-CBPKpLTf.d.cts} +179 -2
  259. package/dist/{types-BLNB882w.d.cts → types-CGm2fQKK.d.cts} +187 -5
  260. package/dist/{types-BgVt8SUY.d.cts → types-CLHaZv9f.d.cts} +17 -13
  261. package/dist/{types-DE9hgr7i.d.cts → types-CgBzm1YR.d.cts} +106 -1
  262. package/dist/{types-BzPuxmaR.d.cts → types-D1A4mAG0.d.cts} +2 -2
  263. package/dist/{types-C0rVtqz2.d.ts → types-D8pGSkRe.d.ts} +17 -13
  264. package/dist/{types-B61aCifg.d.cts → types-D9axmt5o.d.cts} +4 -1
  265. package/dist/{types-BWmLo73i.d.cts → types-DVt0qlzI.d.cts} +14 -3
  266. package/dist/{types-CWyXTMwy.d.ts → types-DaMmgW-O.d.ts} +106 -1
  267. package/dist/{types-R3AFJD6r.d.ts → types-DazRtukc.d.ts} +14 -3
  268. package/dist/{types-2Do0DZ60.d.ts → types-DxN2siRW.d.ts} +2 -2
  269. package/dist/{types-q-1r_9d1.d.ts → types-DzV6LaZq.d.ts} +60 -8
  270. package/dist/{types-DIiOMV-t.d.ts → types-Fs4a3mVs.d.ts} +187 -5
  271. package/dist/{types-6kuMW4JW.d.cts → types-c_bsDkV6.d.cts} +3 -3
  272. package/dist/{types-DgJeO9Nd.d.ts → types-gcAb6olM.d.ts} +26 -3
  273. package/dist/{validateConnectionStatus-gFsBi5FV.js → validateConnectionStatus-CdTV3gsP.js} +3 -3
  274. package/dist/{validateConnectionStatus-gFsBi5FV.js.map → validateConnectionStatus-CdTV3gsP.js.map} +1 -1
  275. package/dist/{validateConnectionStatus-Ca1uEizv.cjs → validateConnectionStatus-DR-0h35y.cjs} +3 -3
  276. package/dist/{validateConnectionStatus-Ca1uEizv.cjs.map → validateConnectionStatus-DR-0h35y.cjs.map} +1 -1
  277. package/dist/vault/index.cjs +31 -6
  278. package/dist/vault/index.cjs.map +1 -1
  279. package/dist/vault/index.d.cts +1 -1
  280. package/dist/vault/index.d.ts +1 -1
  281. package/dist/vault/index.js +31 -6
  282. package/dist/vault/index.js.map +1 -1
  283. package/dist/vault/types.d.cts +1 -1
  284. package/dist/vault/types.d.ts +1 -1
  285. package/package.json +1 -27
  286. package/surface/dataScience.md +3 -2
  287. package/surface/kaiAgent.md +1 -1
  288. package/surface/management.md +2 -0
  289. package/surface/scheduler.md +3 -3
  290. package/surface/storage.md +7 -7
  291. package/surface/vault.md +1 -0
  292. package/dist/businessWorkspaceApi/index.cjs +0 -3
  293. package/dist/businessWorkspaceApi/index.d.cts +0 -2
  294. package/dist/businessWorkspaceApi/index.d.ts +0 -2
  295. package/dist/businessWorkspaceApi/index.js +0 -2
  296. package/dist/businessWorkspaceApi/types.cjs +0 -0
  297. package/dist/businessWorkspaceApi/types.d.cts +0 -2
  298. package/dist/businessWorkspaceApi/types.d.ts +0 -2
  299. package/dist/businessWorkspaceApi/types.js +0 -1
  300. package/dist/businessWorkspaceApi-DFky1k61.js +0 -61
  301. package/dist/businessWorkspaceApi-DFky1k61.js.map +0 -1
  302. package/dist/businessWorkspaceApi-Uzqu0PJM.cjs +0 -66
  303. package/dist/businessWorkspaceApi-Uzqu0PJM.cjs.map +0 -1
  304. package/dist/businessWorkspaceApiClient-BHDJlHFo.d.cts +0 -529
  305. package/dist/businessWorkspaceApiClient-DI-z1VIH.d.ts +0 -529
  306. package/dist/constants-C2tYAJSj.js.map +0 -1
  307. package/dist/constants-C6xku_Vx.cjs.map +0 -1
  308. package/dist/createFetchClient-BgihytBn.cjs.map +0 -1
  309. package/dist/createFetchClient-cgWkwgAQ.js.map +0 -1
  310. package/dist/dataScience-BoS8Xfvx.cjs.map +0 -1
  311. package/dist/dataScience-BxRoGfnG.js.map +0 -1
  312. package/dist/jobStatus-BMlsyXWI.cjs.map +0 -1
  313. package/dist/management-5597SiC7.cjs.map +0 -1
  314. package/dist/management-D46KlXts.js.map +0 -1
  315. package/dist/queue-wIdnMtaZ.cjs.map +0 -1
  316. package/dist/storage-BkdjgtCU.js.map +0 -1
  317. package/dist/storage-CXQTTVXl.cjs.map +0 -1
  318. package/surface/businessWorkspaceApi.md +0 -12
@@ -1116,7 +1116,29 @@ type paths = {
1116
1116
  put?: never;
1117
1117
  /**
1118
1118
  * Create app
1119
- * @description Create a new app under the vendor. After creation, the app id is prefixed by the vendor id (e.g. `keboola.ex-adwords`).
1119
+ * @description Create a new app under the vendor. After creation, the app id is
1120
+ * prefixed by the vendor id (e.g. `keboola.ex-adwords`).
1121
+ *
1122
+ * The body is open on purpose: alongside the properties below it takes every
1123
+ * other writable app field — the same set `PATCH /vendors/{vendor}/apps/{app}`
1124
+ * takes, with `id` additionally required — so an app can be registered fully
1125
+ * configured in one request. The properties below are the ones a registration
1126
+ * typically sets, not the limit.
1127
+ *
1128
+ * Two things the open schema cannot express:
1129
+ *
1130
+ * - These keys are **rejected with `422`**, not merely ignored — sending one
1131
+ * fails the whole request. Set by the service itself: `version`,
1132
+ * `isPublished`, `createdOn`, `createdBy`, `updatedOn`, `updatedBy`,
1133
+ * `icon32`, `icon64`, `icon128`, `publishRequestOn`, `publishRequestBy`,
1134
+ * `publishRequestRejectionReason`. Reserved to an admin, over
1135
+ * `PATCH /admin/apps/{id}`: `vendor`, `isPublic`, `legacyUri`,
1136
+ * `repository.digest`, `category`, `categories`, `complexity`, `features`,
1137
+ * `forwardToken`, `forwardTokenDetails`, `injectEnvironment`,
1138
+ * `processTimeout`, `requiredMemory`.
1139
+ *
1140
+ * - Any other unrecognised key is **accepted and then dropped** — validation
1141
+ * lets it through, the insert filters it out, so it is never stored.
1120
1142
  */
1121
1143
  post: {
1122
1144
  parameters: {
@@ -1133,7 +1155,16 @@ type paths = {
1133
1155
  * @example {
1134
1156
  * "id": "ex-adwords",
1135
1157
  * "name": "AdWords Reports",
1136
- * "shortDescription": "Reads reports defined by awql queries"
1158
+ * "type": "extractor",
1159
+ * "shortDescription": "Reads reports defined by awql queries",
1160
+ * "uiOptions": [
1161
+ * "genericDockerUI"
1162
+ * ],
1163
+ * "defaultBucket": true,
1164
+ * "defaultBucketStage": "in",
1165
+ * "repository": {
1166
+ * "type": "ecr"
1167
+ * }
1137
1168
  * }
1138
1169
  */
1139
1170
  'application/json': {
@@ -1144,6 +1175,13 @@ type paths = {
1144
1175
  type: 'extractor' | 'application' | 'writer' | 'processor' | 'code-pattern' | 'other' | 'transformation' | 'data-app';
1145
1176
  shortDescription?: string;
1146
1177
  longDescription?: string;
1178
+ /** @description Null clears the list, and reads back as `[]`. */
1179
+ uiOptions?: string[] | null;
1180
+ /** @description Null clears the list, and reads back as `[]`. */
1181
+ actions?: string[] | null;
1182
+ defaultBucket?: boolean;
1183
+ /** @enum {string} */
1184
+ defaultBucketStage?: 'in' | 'out';
1147
1185
  repository?: {
1148
1186
  /** @enum {string} */
1149
1187
  type?: 'dockerhub' | 'quay' | 'builder' | 'ecr';
@@ -1152,6 +1190,8 @@ type paths = {
1152
1190
  } & {
1153
1191
  [key: string]: unknown;
1154
1192
  };
1193
+ } & {
1194
+ [key: string]: unknown;
1155
1195
  };
1156
1196
  };
1157
1197
  };
@@ -2283,13 +2323,25 @@ type paths = {
2283
2323
  };
2284
2324
  content: {
2285
2325
  'application/json': ({
2286
- id?: string;
2326
+ /** @description The app id the change belongs to. */
2327
+ id: string;
2287
2328
  /** Format: date-time */
2288
- createdOn?: string;
2289
- createdBy?: string;
2290
- changes?: {
2329
+ createdOn: string;
2330
+ /** @description Who made the change. Null for a version stored without an author. */
2331
+ createdBy: string | null;
2332
+ /** @description One entry per attribute that differs from the previous version. Empty for a write that changed nothing — a save with no edits still produces a version. */
2333
+ changes: ({
2334
+ /** @description The `App` property that changed. */
2335
+ attribute: string;
2336
+ /** @description The value in the previous version, of whatever type that property has. Null when the attribute was added. */
2337
+ oldValue: unknown;
2338
+ /** @description The value in this version. Null when the attribute was deleted. */
2339
+ newValue: unknown;
2340
+ /** @description A ready-to-render sentence — `Attribute <name> added/changed/deleted`, or `App <id> created` for the synthetic first-version entry. */
2341
+ description: string;
2342
+ } & {
2291
2343
  [key: string]: unknown;
2292
- }[];
2344
+ })[];
2293
2345
  } & {
2294
2346
  [key: string]: unknown;
2295
2347
  })[];
@@ -2832,4 +2884,4 @@ type RefreshTokensResult = OpenapiReturnType<paths['/auth/token']['get']>;
2832
2884
  type MfaSetupResult = OpenapiReturnType<paths['/auth/mfa']['post']>;
2833
2885
  //#endregion
2834
2886
  export { ResetPasswordConfirmInput as A, UserRequest as B, MfaConfirmInput as C, Profile as D, PaginationQuery as E, UpdateAppAsAdminInput as F, paths as G, VendorListItem as H, UpdateAppInput as I, UpdateVendorAsAdminInput as L, ServiceIndex as M, SignUpInput as N, RefreshTokensResult as O, Stack as P, UpdateVendorInput as R, LoginSuccess as S, MfaSetupResult as T, Version as U, Vendor as V, components as W, GetVendorUsersQuery as _, AppRepository as a, LoginInput as b, ConfirmAccountInput as c, CreateVendorAsAdminInput as d, CreateVendorInput as f, GetChangesQuery as g, GetAppsQuery as h, AppChange as i, ServiceAccount as j, RejectAppInput as k, CreateAppInput as l, DeveloperPortalError as m, AdminVendor as n, AppVendor as o, DeprecateAppInput as p, App as r, ApproveVendorInput as s, AdminPaginationQuery as t, CreateServiceAccountInput as u, IconUploadLink as v, MfaSetupInput as w, LoginResult as x, LoginChallenge as y, User as z };
2835
- //# sourceMappingURL=types-q-1r_9d1.d.ts.map
2887
+ //# sourceMappingURL=types-DzV6LaZq.d.ts.map
@@ -47,6 +47,28 @@ type paths = {
47
47
  patch?: never;
48
48
  trace?: never;
49
49
  };
50
+ '/.well-known/jwks.json': {
51
+ parameters: {
52
+ query?: never;
53
+ header?: never;
54
+ path?: never;
55
+ cookie?: never;
56
+ };
57
+ /**
58
+ * App preview link signing keys
59
+ * @description Public keys (JWKS, RFC 7517) that verify app preview link tokens. Lists every configured
60
+ * key, active and inactive. Returns an empty set when preview links are not configured.
61
+ * No authentication required.
62
+ */
63
+ get: operations['getJwks'];
64
+ put?: never;
65
+ post?: never;
66
+ delete?: never;
67
+ options?: never;
68
+ head?: never;
69
+ patch?: never;
70
+ trace?: never;
71
+ };
50
72
  '/git/repository': {
51
73
  parameters: {
52
74
  query?: never;
@@ -201,6 +223,28 @@ type paths = {
201
223
  patch?: never;
202
224
  trace?: never;
203
225
  };
226
+ '/apps/{appId}/preview-link': {
227
+ parameters: {
228
+ query?: never;
229
+ header?: never;
230
+ path?: never;
231
+ cookie?: never;
232
+ };
233
+ get?: never;
234
+ put?: never;
235
+ /**
236
+ * Create an app preview link
237
+ * @description Mints a short-lived link that opens a dev-mode app in a browser without the app's own
238
+ * authentication. The token is in the URL fragment and is valid for 60 seconds; opening the
239
+ * link starts a preview session on the app host. Only apps in `dev` mode are supported.
240
+ */
241
+ post: operations['createAppPreviewLink'];
242
+ delete?: never;
243
+ options?: never;
244
+ head?: never;
245
+ patch?: never;
246
+ trace?: never;
247
+ };
204
248
  '/apps/{appId}/git-repo': {
205
249
  parameters: {
206
250
  query?: never;
@@ -752,8 +796,12 @@ type components = {
752
796
  startupLogs?: string | null;
753
797
  /** @description Runtime size used for this app run (e.g., small, medium, large) */
754
798
  runtimeSize?: string | null;
799
+ /** @description Backend type the app run executed on */
800
+ runtimeBackendType?: string | null;
755
801
  /** @description Configuration version used for this app run */
756
802
  configVersion?: string | null;
803
+ /** @description Version of the image the app run executed */
804
+ imageVersion?: string | null;
757
805
  /** @description User-facing cause of a failed run. Set only when state is "failed". */
758
806
  failureReason?: {
759
807
  /** @description Short, stable, machine-readable identifier (UI i18n key) */
@@ -832,6 +880,59 @@ interface operations {
832
880
  };
833
881
  };
834
882
  };
883
+ getJwks: {
884
+ parameters: {
885
+ query?: never;
886
+ header?: never;
887
+ path?: never;
888
+ cookie?: never;
889
+ };
890
+ requestBody?: never;
891
+ responses: {
892
+ /** @description JSON Web Key Set */
893
+ 200: {
894
+ headers: {
895
+ /** @example max-age=300, public */
896
+ 'Cache-Control'?: string;
897
+ [name: string]: unknown;
898
+ };
899
+ content: {
900
+ /**
901
+ * @example {
902
+ * "keys": [
903
+ * {
904
+ * "kty": "EC",
905
+ * "crv": "P-256",
906
+ * "use": "sig",
907
+ * "alg": "ES256",
908
+ * "kid": "2026-09",
909
+ * "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
910
+ * "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0"
911
+ * }
912
+ * ]
913
+ * }
914
+ */
915
+ 'application/json': {
916
+ keys: {
917
+ /** @enum {string} */
918
+ kty: 'EC';
919
+ /** @enum {string} */
920
+ crv: 'P-256';
921
+ /** @enum {string} */
922
+ use: 'sig';
923
+ /** @enum {string} */
924
+ alg: 'ES256';
925
+ kid: string;
926
+ /** @description base64url P-256 x coordinate */
927
+ x: string;
928
+ /** @description base64url P-256 y coordinate */
929
+ y: string;
930
+ }[];
931
+ };
932
+ };
933
+ };
934
+ };
935
+ };
835
936
  gitRepository: {
836
937
  parameters: {
837
938
  query?: never;
@@ -1396,6 +1497,82 @@ interface operations {
1396
1497
  };
1397
1498
  };
1398
1499
  };
1500
+ createAppPreviewLink: {
1501
+ parameters: {
1502
+ query?: never;
1503
+ header?: never;
1504
+ path: {
1505
+ appId: string;
1506
+ };
1507
+ cookie?: never;
1508
+ };
1509
+ requestBody?: never;
1510
+ responses: {
1511
+ /** @description OK */
1512
+ 200: {
1513
+ headers: {
1514
+ /** @example no-store, private */
1515
+ 'Cache-Control'?: string;
1516
+ [name: string]: unknown;
1517
+ };
1518
+ content: {
1519
+ /**
1520
+ * @example {
1521
+ * "url": "https://my-app-123.hub.keboola.com/_proxy/preview#t=eyJhbGciOiJFUzI1NiIs...",
1522
+ * "linkExpiresAt": "2026-09-27T10:01:00+00:00"
1523
+ * }
1524
+ */
1525
+ 'application/json': {
1526
+ /**
1527
+ * Format: url
1528
+ * @description App origin + `/_proxy/preview#t=<token>`.
1529
+ */
1530
+ url: string;
1531
+ /** Format: date-time */
1532
+ linkExpiresAt: string;
1533
+ };
1534
+ };
1535
+ };
1536
+ /**
1537
+ * @description Token of another project (400 today; 403 in a future release), app not in dev mode (`App "<id>" is not in dev mode.`),
1538
+ * or app without a public URL (`App "<id>" has no URL yet.`).
1539
+ */
1540
+ 400: {
1541
+ headers: {
1542
+ [name: string]: unknown;
1543
+ };
1544
+ content?: never;
1545
+ };
1546
+ /** @description Unauthorized */
1547
+ 401: {
1548
+ headers: {
1549
+ [name: string]: unknown;
1550
+ };
1551
+ content?: never;
1552
+ };
1553
+ /** @description Reserved for a future release; a token of another project returns 400 today. */
1554
+ 403: {
1555
+ headers: {
1556
+ [name: string]: unknown;
1557
+ };
1558
+ content?: never;
1559
+ };
1560
+ /** @description Not Found */
1561
+ 404: {
1562
+ headers: {
1563
+ [name: string]: unknown;
1564
+ };
1565
+ content?: never;
1566
+ };
1567
+ /** @description Preview links are not configured on this stack (`App preview links are not configured.`). */
1568
+ 503: {
1569
+ headers: {
1570
+ [name: string]: unknown;
1571
+ };
1572
+ content?: never;
1573
+ };
1574
+ };
1575
+ };
1399
1576
  getAppGitRepo: {
1400
1577
  parameters: {
1401
1578
  query?: never;
@@ -1832,8 +2009,11 @@ interface operations {
1832
2009
  requestBody: {
1833
2010
  content: {
1834
2011
  'application/json': {
1835
- /** @description Keboola component ID (e.g. keboola.sandboxes) */
1836
- componentId: string;
2012
+ /**
2013
+ * @description Keboola component ID. The `streamlit` and `python-js` types require `keboola.data-apps`. Any other combination is rejected with 422.
2014
+ * @enum {string}
2015
+ */
2016
+ componentId: 'keboola.sandboxes' | 'keboola.data-apps';
1837
2017
  /** @description Keboola configuration ID */
1838
2018
  configurationId: string;
1839
2019
  /** @description Configuration version to use. If omitted, the latest version is resolved automatically. */
@@ -1888,7 +2068,7 @@ interface operations {
1888
2068
  };
1889
2069
  content?: never;
1890
2070
  };
1891
- /** @description Unprocessable Entity */
2071
+ /** @description Unprocessable Entity. Returned also when the componentId is not `keboola.sandboxes` or `keboola.data-apps`, or when a `streamlit` or `python-js` sandbox is requested with a componentId other than `keboola.data-apps`. */
1892
2072
  422: {
1893
2073
  headers: {
1894
2074
  [name: string]: unknown;
@@ -2133,6 +2313,8 @@ type GetDataAppPath = OpenapiPathType<paths['/apps/{appId}']['get']>;
2133
2313
  type DeleteDataAppPath = OpenapiPathType<paths['/apps/{appId}']['delete']>;
2134
2314
  type GetDataAppPasswordPath = OpenapiPathType<paths['/apps/{appId}/password']['get']>;
2135
2315
  type ResetDataAppPasswordPath = OpenapiPathType<paths['/apps/{appId}/reset-password']['post']>;
2316
+ type CreateDataAppPreviewLinkPath = OpenapiPathType<paths['/apps/{appId}/preview-link']['post']>;
2317
+ type DataAppPreviewLink = OpenapiReturnType<paths['/apps/{appId}/preview-link']['post']>;
2136
2318
  type GetDataAppRunsPath = OpenapiPathType<paths['/apps/{appId}/runs']['get']>;
2137
2319
  type GetDataAppRunsQuery = OpenapiQueryType<paths['/apps/{appId}/runs']['get']>;
2138
2320
  type GetDataAppRunPath = OpenapiPathType<paths['/apps/{appId}/runs/{runId}']['get']>;
@@ -2158,5 +2340,5 @@ type PatchDataAppBodyStopped = {
2158
2340
  };
2159
2341
  type PatchDataAppBody = PatchDataAppBodyRunning | PatchDataAppBodyStopped;
2160
2342
  //#endregion
2161
- export { Sandbox as S, PatchDataAppPath as _, DeleteSandboxPath as a, Runtime as b, GetDataAppLogsTailPath as c, GetDataAppPath as d, GetDataAppRunPath as f, PatchDataAppBody as g, GetSandboxPath as h, DeleteDataAppPath as i, GetDataAppLogsTailQuery as l, GetDataAppRunsQuery as m, DataApp as n, GetAppsQuery as o, GetDataAppRunsPath as p, DataAppRun as r, GetDataAppLogsDownloadPath as s, CreateDataAppBody as t, GetDataAppPasswordPath as u, RawAppRun as v, RuntimeImageKey as x, ResetDataAppPasswordPath as y };
2162
- //# sourceMappingURL=types-DIiOMV-t.d.ts.map
2343
+ export { RuntimeImageKey as C, Runtime as S, GetSandboxPath as _, DataAppRun as a, RawAppRun as b, GetAppsQuery as c, GetDataAppLogsTailQuery as d, GetDataAppPasswordPath as f, GetDataAppRunsQuery as g, GetDataAppRunsPath as h, DataAppPreviewLink as i, GetDataAppLogsDownloadPath as l, GetDataAppRunPath as m, CreateDataAppPreviewLinkPath as n, DeleteDataAppPath as o, GetDataAppPath as p, DataApp as r, DeleteSandboxPath as s, CreateDataAppBody as t, GetDataAppLogsTailPath as u, PatchDataAppBody as v, Sandbox as w, ResetDataAppPasswordPath as x, PatchDataAppPath as y };
2344
+ //# sourceMappingURL=types-Fs4a3mVs.d.ts.map
@@ -389,7 +389,7 @@ type components = {
389
389
  headers: never;
390
390
  pathItems: never;
391
391
  };
392
- type operations = {
392
+ interface operations {
393
393
  _get_root_get: {
394
394
  parameters: {
395
395
  query?: never;
@@ -558,7 +558,7 @@ type operations = {
558
558
  };
559
559
  };
560
560
  };
561
- };
561
+ }
562
562
  //#endregion
563
563
  //#region src/clients/omnisearch/types.d.ts
564
564
  type GetProjectsLineageQuery = OpenapiQueryType<paths['/v1/lineage/projects']['get']>;
@@ -599,4 +599,4 @@ type LineageTable = components['schemas']['TableNode'] & {
599
599
  };
600
600
  //#endregion
601
601
  export { LineageMetadata as a, LineageTable as c, ProjectsLineageResponse as d, TableLineageRelation as f, components as h, LineageConfiguration as i, ProjectLineageRelation as l, TablesLineageResponse as m, GetTablesLineageQuery as n, LineageProject as o, TablesLineage as p, LineageBucket as r, LineageSource as s, GetProjectsLineageQuery as t, ProjectsLineage as u };
602
- //# sourceMappingURL=types-6kuMW4JW.d.cts.map
602
+ //# sourceMappingURL=types-c_bsDkV6.d.cts.map
@@ -199,6 +199,28 @@ type components = {
199
199
  status: 'error';
200
200
  context?: Record<string, never>;
201
201
  };
202
+ /** @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. */
203
+ ValidationError: {
204
+ /** @example Request contents is not valid */
205
+ error: string;
206
+ /** @example 422 */
207
+ code: number;
208
+ exceptionId: string;
209
+ /** @enum {unknown} */
210
+ status: 'error';
211
+ /** @description One entry per payload field that failed mapping or validation, keyed by index ("0", "1", …). Each failing field appears exactly once. */
212
+ context: {
213
+ [key: string]: {
214
+ /**
215
+ * @description Name of the payload field that failed, as sent by the client — encrypted fields are reported under their `#`-prefixed key (e.g. `#data`).
216
+ * @example authorizedFor
217
+ */
218
+ path: string;
219
+ /** @example Value '' is not a valid non-empty string. */
220
+ message: string;
221
+ };
222
+ };
223
+ };
202
224
  Consumer: {
203
225
  componentId: string;
204
226
  friendlyName: string;
@@ -237,13 +259,13 @@ type components = {
237
259
  'application/json': components['schemas']['Error'];
238
260
  };
239
261
  };
240
- /** @description Unprocessable entity */
262
+ /** @description Validation failed - see `context` for the list of failing fields */
241
263
  '422_UnprocessableEntity': {
242
264
  headers: {
243
265
  [name: string]: unknown;
244
266
  };
245
267
  content: {
246
- 'application/json': components['schemas']['Error'];
268
+ 'application/json': components['schemas']['ValidationError'];
247
269
  };
248
270
  };
249
271
  /** @description Unauthorized */
@@ -385,6 +407,7 @@ interface operations {
385
407
  'application/json': components['schemas']['Credentials'][];
386
408
  };
387
409
  };
410
+ 400: components['responses']['400_BadRequest'];
388
411
  401: components['responses']['401_Unauthorized'];
389
412
  403: components['responses']['403_Forbidden'];
390
413
  };
@@ -723,4 +746,4 @@ type CreateCredentialInput = ComponentPath & Omit<CreateCredentialBody, '#data'>
723
746
  };
724
747
  //#endregion
725
748
  export { CredentialInput as a, Credential as i, CreateCredentialBody as n, CredentialPath as o, CreateCredentialInput as r, GetCredentialsInput as s, ComponentPath as t };
726
- //# sourceMappingURL=types-DgJeO9Nd.d.ts.map
749
+ //# sourceMappingURL=types-gcAb6olM.d.ts.map
@@ -1,5 +1,5 @@
1
- import { c as defaultValidateStatus, g as ApiError } from "./createFetchClient-cgWkwgAQ.js";
2
- import { t as isLoginPageRedirect } from "./isLoginPageRedirect-CsjF95_P.js";
1
+ import { c as defaultValidateStatus, p as ApiError } from "./createFetchClient-DITkTV2k.js";
2
+ import { t as isLoginPageRedirect } from "./isLoginPageRedirect-CsyRa3_v.js";
3
3
  //#region src/errors/HtmlResponseError.ts
4
4
  /**
5
5
  * A successful response that carried an HTML page instead of the endpoint's payload.
@@ -33,4 +33,4 @@ const validateConnectionStatus = (apiResponse) => {
33
33
  //#endregion
34
34
  export { HtmlResponseError as n, isHtmlResponseError as r, validateConnectionStatus as t };
35
35
 
36
- //# sourceMappingURL=validateConnectionStatus-gFsBi5FV.js.map
36
+ //# sourceMappingURL=validateConnectionStatus-CdTV3gsP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateConnectionStatus-gFsBi5FV.js","names":[],"sources":["../src/errors/HtmlResponseError.ts","../src/clients/validateConnectionStatus.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\n/**\n * A successful response that carried an HTML page instead of the endpoint's payload.\n *\n * - An expired session 302s to the login page; `fetch` follows it to `200 text/html`.\n * - Constant message so Sentry groups it; `request`/`response` carry the detail.\n * - Opt-in per client: some APIs serve HTML from a 200 on purpose.\n */\nexport class HtmlResponseError extends ApiError {\n constructor(res: ApiResponse) {\n super(res);\n this.name = 'HtmlResponseError';\n this.message = 'Expected data, got an HTML page. The session has most likely expired.';\n }\n}\n\nexport const isHtmlResponseError = (error: unknown): error is HtmlResponseError =>\n error instanceof HtmlResponseError;\n","import { HtmlResponseError } from '../errors';\nimport { defaultValidateStatus, type ValidateStatusFn } from '../fetchClient';\n\nimport { isLoginPageRedirect } from './isLoginPageRedirect';\n\n/**\n * Status validation for the APIs Connection serves off its own host — storage and auth.\n *\n * - Rejects a successful login page; `HtmlResponseError` says why.\n * - HTML on a *failed* response is a real error page and stays an `ApiError`.\n * - Management answers the same condition with its own session-expiry error instead.\n */\nexport const validateConnectionStatus: ValidateStatusFn = (apiResponse) => {\n const isValid = defaultValidateStatus(apiResponse);\n\n if (isValid && isLoginPageRedirect(apiResponse)) {\n return new HtmlResponseError(apiResponse);\n }\n\n return isValid;\n};\n"],"mappings":";;;;;;;;;;AAWA,IAAa,oBAAb,cAAuC,SAAS;CAC9C,YAAY,KAAkB;EAC5B,MAAM,GAAG;EACT,KAAK,OAAO;EACZ,KAAK,UAAU;CACjB;AACF;AAEA,MAAa,uBAAuB,UAClC,iBAAiB;;;;;;;;;;ACRnB,MAAa,4BAA8C,gBAAgB;CACzE,MAAM,UAAU,sBAAsB,WAAW;CAEjD,IAAI,WAAW,oBAAoB,WAAW,GAC5C,OAAO,IAAI,kBAAkB,WAAW;CAG1C,OAAO;AACT"}
1
+ {"version":3,"file":"validateConnectionStatus-CdTV3gsP.js","names":[],"sources":["../src/errors/HtmlResponseError.ts","../src/clients/validateConnectionStatus.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\n/**\n * A successful response that carried an HTML page instead of the endpoint's payload.\n *\n * - An expired session 302s to the login page; `fetch` follows it to `200 text/html`.\n * - Constant message so Sentry groups it; `request`/`response` carry the detail.\n * - Opt-in per client: some APIs serve HTML from a 200 on purpose.\n */\nexport class HtmlResponseError extends ApiError {\n constructor(res: ApiResponse) {\n super(res);\n this.name = 'HtmlResponseError';\n this.message = 'Expected data, got an HTML page. The session has most likely expired.';\n }\n}\n\nexport const isHtmlResponseError = (error: unknown): error is HtmlResponseError =>\n error instanceof HtmlResponseError;\n","import { HtmlResponseError } from '../errors';\nimport { defaultValidateStatus, type ValidateStatusFn } from '../fetchClient';\n\nimport { isLoginPageRedirect } from './isLoginPageRedirect';\n\n/**\n * Status validation for the APIs Connection serves off its own host — storage and auth.\n *\n * - Rejects a successful login page; `HtmlResponseError` says why.\n * - HTML on a *failed* response is a real error page and stays an `ApiError`.\n * - Management answers the same condition with its own session-expiry error instead.\n */\nexport const validateConnectionStatus: ValidateStatusFn = (apiResponse) => {\n const isValid = defaultValidateStatus(apiResponse);\n\n if (isValid && isLoginPageRedirect(apiResponse)) {\n return new HtmlResponseError(apiResponse);\n }\n\n return isValid;\n};\n"],"mappings":";;;;;;;;;;AAWA,IAAa,oBAAb,cAAuC,SAAS;CAC9C,YAAY,KAAkB;EAC5B,MAAM,GAAG;EACT,KAAK,OAAO;EACZ,KAAK,UAAU;CACjB;AACF;AAEA,MAAa,uBAAuB,UAClC,iBAAiB;;;;;;;;;;ACRnB,MAAa,4BAA8C,gBAAgB;CACzE,MAAM,UAAU,sBAAsB,WAAW;CAEjD,IAAI,WAAW,oBAAoB,WAAW,GAC5C,OAAO,IAAI,kBAAkB,WAAW;CAG1C,OAAO;AACT"}
@@ -1,5 +1,5 @@
1
- const require_createFetchClient = require("./createFetchClient-BgihytBn.cjs");
2
- const require_isLoginPageRedirect = require("./isLoginPageRedirect-c451CoWW.cjs");
1
+ const require_createFetchClient = require("./createFetchClient-ClWD4ua3.cjs");
2
+ const require_isLoginPageRedirect = require("./isLoginPageRedirect-iNbwl3iz.cjs");
3
3
  //#region src/errors/HtmlResponseError.ts
4
4
  /**
5
5
  * A successful response that carried an HTML page instead of the endpoint's payload.
@@ -50,4 +50,4 @@ Object.defineProperty(exports, "validateConnectionStatus", {
50
50
  }
51
51
  });
52
52
 
53
- //# sourceMappingURL=validateConnectionStatus-Ca1uEizv.cjs.map
53
+ //# sourceMappingURL=validateConnectionStatus-DR-0h35y.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateConnectionStatus-Ca1uEizv.cjs","names":["ApiError","defaultValidateStatus","isLoginPageRedirect"],"sources":["../src/errors/HtmlResponseError.ts","../src/clients/validateConnectionStatus.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\n/**\n * A successful response that carried an HTML page instead of the endpoint's payload.\n *\n * - An expired session 302s to the login page; `fetch` follows it to `200 text/html`.\n * - Constant message so Sentry groups it; `request`/`response` carry the detail.\n * - Opt-in per client: some APIs serve HTML from a 200 on purpose.\n */\nexport class HtmlResponseError extends ApiError {\n constructor(res: ApiResponse) {\n super(res);\n this.name = 'HtmlResponseError';\n this.message = 'Expected data, got an HTML page. The session has most likely expired.';\n }\n}\n\nexport const isHtmlResponseError = (error: unknown): error is HtmlResponseError =>\n error instanceof HtmlResponseError;\n","import { HtmlResponseError } from '../errors';\nimport { defaultValidateStatus, type ValidateStatusFn } from '../fetchClient';\n\nimport { isLoginPageRedirect } from './isLoginPageRedirect';\n\n/**\n * Status validation for the APIs Connection serves off its own host — storage and auth.\n *\n * - Rejects a successful login page; `HtmlResponseError` says why.\n * - HTML on a *failed* response is a real error page and stays an `ApiError`.\n * - Management answers the same condition with its own session-expiry error instead.\n */\nexport const validateConnectionStatus: ValidateStatusFn = (apiResponse) => {\n const isValid = defaultValidateStatus(apiResponse);\n\n if (isValid && isLoginPageRedirect(apiResponse)) {\n return new HtmlResponseError(apiResponse);\n }\n\n return isValid;\n};\n"],"mappings":";;;;;;;;;;AAWA,IAAa,oBAAb,cAAuCA,0BAAAA,SAAS;CAC9C,YAAY,KAAkB;EAC5B,MAAM,GAAG;EACT,KAAK,OAAO;EACZ,KAAK,UAAU;CACjB;AACF;AAEA,MAAa,uBAAuB,UAClC,iBAAiB;;;;;;;;;;ACRnB,MAAa,4BAA8C,gBAAgB;CACzE,MAAM,UAAUC,0BAAAA,sBAAsB,WAAW;CAEjD,IAAI,WAAWC,4BAAAA,oBAAoB,WAAW,GAC5C,OAAO,IAAI,kBAAkB,WAAW;CAG1C,OAAO;AACT"}
1
+ {"version":3,"file":"validateConnectionStatus-DR-0h35y.cjs","names":["ApiError","defaultValidateStatus","isLoginPageRedirect"],"sources":["../src/errors/HtmlResponseError.ts","../src/clients/validateConnectionStatus.ts"],"sourcesContent":["import type { ApiResponse } from '../fetchClient/createFetchClient/types';\n\nimport { ApiError } from './ApiError';\n\n/**\n * A successful response that carried an HTML page instead of the endpoint's payload.\n *\n * - An expired session 302s to the login page; `fetch` follows it to `200 text/html`.\n * - Constant message so Sentry groups it; `request`/`response` carry the detail.\n * - Opt-in per client: some APIs serve HTML from a 200 on purpose.\n */\nexport class HtmlResponseError extends ApiError {\n constructor(res: ApiResponse) {\n super(res);\n this.name = 'HtmlResponseError';\n this.message = 'Expected data, got an HTML page. The session has most likely expired.';\n }\n}\n\nexport const isHtmlResponseError = (error: unknown): error is HtmlResponseError =>\n error instanceof HtmlResponseError;\n","import { HtmlResponseError } from '../errors';\nimport { defaultValidateStatus, type ValidateStatusFn } from '../fetchClient';\n\nimport { isLoginPageRedirect } from './isLoginPageRedirect';\n\n/**\n * Status validation for the APIs Connection serves off its own host — storage and auth.\n *\n * - Rejects a successful login page; `HtmlResponseError` says why.\n * - HTML on a *failed* response is a real error page and stays an `ApiError`.\n * - Management answers the same condition with its own session-expiry error instead.\n */\nexport const validateConnectionStatus: ValidateStatusFn = (apiResponse) => {\n const isValid = defaultValidateStatus(apiResponse);\n\n if (isValid && isLoginPageRedirect(apiResponse)) {\n return new HtmlResponseError(apiResponse);\n }\n\n return isValid;\n};\n"],"mappings":";;;;;;;;;;AAWA,IAAa,oBAAb,cAAuCA,0BAAAA,SAAS;CAC9C,YAAY,KAAkB;EAC5B,MAAM,GAAG;EACT,KAAK,OAAO;EACZ,KAAK,UAAU;CACjB;AACF;AAEA,MAAa,uBAAuB,UAClC,iBAAiB;;;;;;;;;;ACRnB,MAAa,4BAA8C,gBAAgB;CACzE,MAAM,UAAUC,0BAAAA,sBAAsB,WAAW;CAEjD,IAAI,WAAWC,4BAAAA,oBAAoB,WAAW,GAC5C,OAAO,IAAI,kBAAkB,WAAW;CAG1C,OAAO;AACT"}
@@ -1,10 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_collect = require("../collect-B5TCNiT1.cjs");
2
3
  const require_UserError = require("../UserError-CSGO1qII.cjs");
3
- require("../createFetchClient-BgihytBn.cjs");
4
- const require_createGenericFetchClient = require("../createGenericFetchClient-C7Y0YVfc.cjs");
5
- const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-DY5s-aH6.cjs");
6
- const require_auth = require("../auth-zfI04oj7.cjs");
4
+ require("../createFetchClient-ClWD4ua3.cjs");
5
+ const require_createGenericFetchClient = require("../createGenericFetchClient-B81Iezpb.cjs");
6
+ const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-CioTX11-.cjs");
7
+ const require_auth = require("../auth-C9o_0bft.cjs");
7
8
  //#region src/clients/vault/vaultClient.ts
9
+ /** The vault's maximum `limit` on `GET /variables`. */
10
+ const VARIABLES_PAGE_SIZE = 100;
8
11
  const createVaultClient = ({ baseUrl, middlewares, auth }) => {
9
12
  const client = require_createOpenapiFetchClient.createOpenapiFetchClient({
10
13
  baseUrl,
@@ -27,11 +30,32 @@ const createVaultClient = ({ baseUrl, middlewares, auth }) => {
27
30
  const { data } = await client.post("/variables", { body }, { signal });
28
31
  return data;
29
32
  };
33
+ /**
34
+ * Every variable of exactly one scope, across all pages.
35
+ *
36
+ * - `null` is the project-wide scope: variables with no `branchId`.
37
+ * - A branch id returns that branch's variables only — project-wide ones are not merged in.
38
+ */
39
+ const getVariablesInScope = (branchId, signal) => require_collect.collect({
40
+ pageSize: VARIABLES_PAGE_SIZE,
41
+ signal,
42
+ fetchFrom: (offset, limit, pageSignal) => getVariables({
43
+ attributes: { branchId: branchId ?? "" },
44
+ offset,
45
+ limit
46
+ }, pageSignal)
47
+ });
48
+ /**
49
+ * What `vault.<key>` resolves to in a branch: its variables plus the project-wide ones.
50
+ *
51
+ * - One variable per key — a branch variable hides a project-wide one with the same key.
52
+ * - Unpaginated: the vault returns at most 100 of each half.
53
+ */
30
54
  const getVariablesByBranchId = async (branchId, signal) => {
31
55
  const { data } = await client.get("/variables/scoped/branch/{branchId}", { path: { branchId } }, { signal });
32
56
  return data;
33
57
  };
34
- const getProjectWideVariables = (signal) => getVariablesByBranchId("null", signal);
58
+ const getProjectWideVariables = (signal) => getVariablesInScope(null, signal);
35
59
  const healthCheck = async (signal) => {
36
60
  const { data } = await genericClient.get("/health-check", {}, { signal });
37
61
  return data;
@@ -42,7 +66,8 @@ const createVaultClient = ({ baseUrl, middlewares, auth }) => {
42
66
  deleteVariable,
43
67
  getProjectWideVariables,
44
68
  getVariables,
45
- getVariablesByBranchId
69
+ getVariablesByBranchId,
70
+ getVariablesInScope
46
71
  };
47
72
  };
48
73
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["createOpenapiFetchClient","createAuthHeaders","createGenericFetchClient","UserError"],"sources":["../../src/clients/vault/vaultClient.ts"],"sourcesContent":["import { UserError } from '../../errors';\nimport { createGenericFetchClient, createOpenapiFetchClient } from '../../fetchClient';\nimport { ENCRYPTED_VALUE_PREFIX } from '../../internal';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type {\n CreateVariableBody,\n DeleteVariablePath,\n GetVariablesByBranchId,\n GetVariablesQuery,\n VariableWithHash,\n} from './types';\n\nexport const createVaultClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n const getVariables = async (query: GetVariablesQuery, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/variables',\n { query },\n {\n signal,\n },\n );\n\n return data as VariableWithHash[];\n };\n\n const deleteVariable = async (hash: DeleteVariablePath['hash'], signal?: AbortSignal) => {\n await client.delete(\n '/variables/{hash}',\n {\n path: { hash },\n },\n { signal },\n );\n };\n\n const createVariable = async (body: CreateVariableBody, signal?: AbortSignal) => {\n if (body.flags.includes('encrypted') && !body.value.startsWith(ENCRYPTED_VALUE_PREFIX)) {\n throw new UserError('Encryption of a value failed. Please contact our support.');\n }\n const { data } = await client.post('/variables', { body }, { signal });\n return data;\n };\n\n const getVariablesByBranchId = async (\n branchId: GetVariablesByBranchId['branchId'],\n signal?: AbortSignal,\n ) => {\n const { data } = await client.get(\n '/variables/scoped/branch/{branchId}',\n {\n path: { branchId },\n },\n { signal },\n );\n return data as VariableWithHash[];\n };\n\n const getProjectWideVariables = (signal?: AbortSignal) => getVariablesByBranchId('null', signal);\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health-check', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n createVariable,\n deleteVariable,\n getProjectWideVariables,\n getVariables,\n getVariablesByBranchId,\n };\n};\n"],"mappings":";;;;;;;AAeA,MAAa,qBAAqB,EAAE,SAAS,aAAa,WAA8B;CACtF,MAAM,SAASA,iCAAAA,yBAAgC;EAC7C;EACA;EACA,SAASC,aAAAA,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,gBAAgBC,iCAAAA,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,eAAe,OAAO,OAA0B,WAAyB;EAC7E,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,cACA,EAAE,MAAM,GACR,EACE,OACF,CACF;EAEA,OAAO;CACT;CAEA,MAAM,iBAAiB,OAAO,MAAkC,WAAyB;EACvF,MAAM,OAAO,OACX,qBACA,EACE,MAAM,EAAE,KAAK,EACf,GACA,EAAE,OAAO,CACX;CACF;CAEA,MAAM,iBAAiB,OAAO,MAA0B,WAAyB;EAC/E,IAAI,KAAK,MAAM,SAAS,WAAW,KAAK,CAAC,KAAK,MAAM,WAAA,OAAiC,GACnF,MAAM,IAAIC,kBAAAA,UAAU,2DAA2D;EAEjF,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,cAAc,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;EACrE,OAAO;CACT;CAEA,MAAM,yBAAyB,OAC7B,UACA,WACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,uCACA,EACE,MAAM,EAAE,SAAS,EACnB,GACA,EAAE,OAAO,CACX;EACA,OAAO;CACT;CAEA,MAAM,2BAA2B,WAAyB,uBAAuB,QAAQ,MAAM;CAE/F,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAExE,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"index.cjs","names":["createOpenapiFetchClient","createAuthHeaders","createGenericFetchClient","UserError","collect"],"sources":["../../src/clients/vault/vaultClient.ts"],"sourcesContent":["import { UserError } from '../../errors';\nimport { createGenericFetchClient, createOpenapiFetchClient } from '../../fetchClient';\nimport { ENCRYPTED_VALUE_PREFIX } from '../../internal';\nimport { collect } from '../../utils';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type {\n CreateVariableBody,\n DeleteVariablePath,\n GetVariablesByBranchId,\n GetVariablesQuery,\n VariableWithHash,\n} from './types';\n\n/** The vault's maximum `limit` on `GET /variables`. */\nconst VARIABLES_PAGE_SIZE = 100;\n\nexport const createVaultClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n const getVariables = async (query: GetVariablesQuery, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/variables',\n { query },\n {\n signal,\n },\n );\n\n return data as VariableWithHash[];\n };\n\n const deleteVariable = async (hash: DeleteVariablePath['hash'], signal?: AbortSignal) => {\n await client.delete(\n '/variables/{hash}',\n {\n path: { hash },\n },\n { signal },\n );\n };\n\n const createVariable = async (body: CreateVariableBody, signal?: AbortSignal) => {\n if (body.flags.includes('encrypted') && !body.value.startsWith(ENCRYPTED_VALUE_PREFIX)) {\n throw new UserError('Encryption of a value failed. Please contact our support.');\n }\n const { data } = await client.post('/variables', { body }, { signal });\n return data;\n };\n\n /**\n * Every variable of exactly one scope, across all pages.\n *\n * - `null` is the project-wide scope: variables with no `branchId`.\n * - A branch id returns that branch's variables only — project-wide ones are not merged in.\n */\n const getVariablesInScope = (branchId: string | null, signal?: AbortSignal) =>\n collect({\n pageSize: VARIABLES_PAGE_SIZE,\n signal,\n fetchFrom: (offset, limit, pageSignal) =>\n getVariables({ attributes: { branchId: branchId ?? '' }, offset, limit }, pageSignal),\n });\n\n /**\n * What `vault.<key>` resolves to in a branch: its variables plus the project-wide ones.\n *\n * - One variable per key — a branch variable hides a project-wide one with the same key.\n * - Unpaginated: the vault returns at most 100 of each half.\n */\n const getVariablesByBranchId = async (\n branchId: GetVariablesByBranchId['branchId'],\n signal?: AbortSignal,\n ) => {\n const { data } = await client.get(\n '/variables/scoped/branch/{branchId}',\n {\n path: { branchId },\n },\n { signal },\n );\n return data as VariableWithHash[];\n };\n\n const getProjectWideVariables = (signal?: AbortSignal) => getVariablesInScope(null, signal);\n\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health-check', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n createVariable,\n deleteVariable,\n getProjectWideVariables,\n getVariables,\n getVariablesByBranchId,\n getVariablesInScope,\n };\n};\n"],"mappings":";;;;;;;;;AAiBA,MAAM,sBAAsB;AAE5B,MAAa,qBAAqB,EAAE,SAAS,aAAa,WAA8B;CACtF,MAAM,SAASA,iCAAAA,yBAAgC;EAC7C;EACA;EACA,SAASC,aAAAA,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,gBAAgBC,iCAAAA,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,eAAe,OAAO,OAA0B,WAAyB;EAC7E,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,cACA,EAAE,MAAM,GACR,EACE,OACF,CACF;EAEA,OAAO;CACT;CAEA,MAAM,iBAAiB,OAAO,MAAkC,WAAyB;EACvF,MAAM,OAAO,OACX,qBACA,EACE,MAAM,EAAE,KAAK,EACf,GACA,EAAE,OAAO,CACX;CACF;CAEA,MAAM,iBAAiB,OAAO,MAA0B,WAAyB;EAC/E,IAAI,KAAK,MAAM,SAAS,WAAW,KAAK,CAAC,KAAK,MAAM,WAAA,OAAiC,GACnF,MAAM,IAAIC,kBAAAA,UAAU,2DAA2D;EAEjF,MAAM,EAAE,SAAS,MAAM,OAAO,KAAK,cAAc,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC;EACrE,OAAO;CACT;;;;;;;CAQA,MAAM,uBAAuB,UAAyB,WACpDC,gBAAAA,QAAQ;EACN,UAAU;EACV;EACA,YAAY,QAAQ,OAAO,eACzB,aAAa;GAAE,YAAY,EAAE,UAAU,YAAY,GAAG;GAAG;GAAQ;EAAM,GAAG,UAAU;CACxF,CAAC;;;;;;;CAQH,MAAM,yBAAyB,OAC7B,UACA,WACG;EACH,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,uCACA,EACE,MAAM,EAAE,SAAS,EACnB,GACA,EAAE,OAAO,CACX;EACA,OAAO;CACT;CAEA,MAAM,2BAA2B,WAAyB,oBAAoB,MAAM,MAAM;CAE1F,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAExE,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
@@ -1,2 +1,2 @@
1
- import { t as createVaultClient } from "../index-CcMHJcuP.cjs";
1
+ import { t as createVaultClient } from "../index-BHWTa4YN.cjs";
2
2
  export { createVaultClient };
@@ -1,2 +1,2 @@
1
- import { t as createVaultClient } from "../index-D_-4uQF8.js";
1
+ import { t as createVaultClient } from "../index-zyxZVJnd.js";
2
2
  export { createVaultClient };
@@ -1,9 +1,12 @@
1
+ import { t as collect } from "../collect-97WhfEpt.js";
1
2
  import { t as UserError } from "../UserError-By_Zckmc.js";
2
- import "../createFetchClient-cgWkwgAQ.js";
3
- import { t as createGenericFetchClient } from "../createGenericFetchClient-CX9Hn3Aq.js";
4
- import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-BxcLLU_N.js";
5
- import { t as createAuthHeaders } from "../auth-DUHTJTwS.js";
3
+ import "../createFetchClient-DITkTV2k.js";
4
+ import { t as createGenericFetchClient } from "../createGenericFetchClient-KqiJhw8G.js";
5
+ import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-wq8iGLZM.js";
6
+ import { t as createAuthHeaders } from "../auth-C6cHWIWx.js";
6
7
  //#region src/clients/vault/vaultClient.ts
8
+ /** The vault's maximum `limit` on `GET /variables`. */
9
+ const VARIABLES_PAGE_SIZE = 100;
7
10
  const createVaultClient = ({ baseUrl, middlewares, auth }) => {
8
11
  const client = createOpenapiFetchClient({
9
12
  baseUrl,
@@ -26,11 +29,32 @@ const createVaultClient = ({ baseUrl, middlewares, auth }) => {
26
29
  const { data } = await client.post("/variables", { body }, { signal });
27
30
  return data;
28
31
  };
32
+ /**
33
+ * Every variable of exactly one scope, across all pages.
34
+ *
35
+ * - `null` is the project-wide scope: variables with no `branchId`.
36
+ * - A branch id returns that branch's variables only — project-wide ones are not merged in.
37
+ */
38
+ const getVariablesInScope = (branchId, signal) => collect({
39
+ pageSize: VARIABLES_PAGE_SIZE,
40
+ signal,
41
+ fetchFrom: (offset, limit, pageSignal) => getVariables({
42
+ attributes: { branchId: branchId ?? "" },
43
+ offset,
44
+ limit
45
+ }, pageSignal)
46
+ });
47
+ /**
48
+ * What `vault.<key>` resolves to in a branch: its variables plus the project-wide ones.
49
+ *
50
+ * - One variable per key — a branch variable hides a project-wide one with the same key.
51
+ * - Unpaginated: the vault returns at most 100 of each half.
52
+ */
29
53
  const getVariablesByBranchId = async (branchId, signal) => {
30
54
  const { data } = await client.get("/variables/scoped/branch/{branchId}", { path: { branchId } }, { signal });
31
55
  return data;
32
56
  };
33
- const getProjectWideVariables = (signal) => getVariablesByBranchId("null", signal);
57
+ const getProjectWideVariables = (signal) => getVariablesInScope(null, signal);
34
58
  const healthCheck = async (signal) => {
35
59
  const { data } = await genericClient.get("/health-check", {}, { signal });
36
60
  return data;
@@ -41,7 +65,8 @@ const createVaultClient = ({ baseUrl, middlewares, auth }) => {
41
65
  deleteVariable,
42
66
  getProjectWideVariables,
43
67
  getVariables,
44
- getVariablesByBranchId
68
+ getVariablesByBranchId,
69
+ getVariablesInScope
45
70
  };
46
71
  };
47
72
  //#endregion