@keboola/api-client 39.0.0 → 41.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 (522) hide show
  1. package/AGENTS.md +121 -100
  2. package/API-SURFACE.md +27 -2
  3. package/CHANGELOG.md +129 -0
  4. package/README.md +3 -3
  5. package/dist/{ManagementClientAuthError-FcfMJNhr.cjs → ManagementClientAuthError-DE7lNGZQ.cjs} +2 -2
  6. package/dist/{ManagementClientAuthError-FcfMJNhr.cjs.map → ManagementClientAuthError-DE7lNGZQ.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-Cr9IOsnJ.js → ManagementClientAuthError-H30lti_Q.js} +2 -2
  8. package/dist/{ManagementClientAuthError-Cr9IOsnJ.js.map → ManagementClientAuthError-H30lti_Q.js.map} +1 -1
  9. package/dist/{ValidationError-CLVJCCwH.cjs → ValidationError-D65QU0uq.cjs} +10 -16
  10. package/dist/ValidationError-D65QU0uq.cjs.map +1 -0
  11. package/dist/ValidationError-DjhtNMfZ.js +42 -0
  12. package/dist/ValidationError-DjhtNMfZ.js.map +1 -0
  13. package/dist/ai/index.cjs +2 -2
  14. package/dist/ai/index.d.cts +2 -2
  15. package/dist/ai/index.d.ts +2 -2
  16. package/dist/ai/index.js +2 -2
  17. package/dist/ai/types.d.cts +1 -1
  18. package/dist/ai/types.d.ts +1 -1
  19. package/dist/{appLogs-C_zP0lpv.cjs → appLogs-B9zFJIuy.cjs} +2 -2
  20. package/dist/{appLogs-C_zP0lpv.cjs.map → appLogs-B9zFJIuy.cjs.map} +1 -1
  21. package/dist/{appLogs-Cl7Q_MR9.js → appLogs-BBkkUOW1.js} +2 -2
  22. package/dist/{appLogs-Cl7Q_MR9.js.map → appLogs-BBkkUOW1.js.map} +1 -1
  23. package/dist/{appLogs-Ch7DYpzx.d.ts → appLogs-BS6ViVGR.d.ts} +2 -2
  24. package/dist/{appLogs-D5A13Y0y.d.cts → appLogs-C9YlJ2g8.d.cts} +2 -2
  25. package/dist/apps/index.cjs +30 -56
  26. package/dist/apps/index.cjs.map +1 -1
  27. package/dist/apps/index.d.cts +8 -13
  28. package/dist/apps/index.d.ts +8 -13
  29. package/dist/apps/index.js +30 -56
  30. package/dist/apps/index.js.map +1 -1
  31. package/dist/apps/types.d.cts +2 -2
  32. package/dist/apps/types.d.ts +2 -2
  33. package/dist/assets/index.cjs +1 -1
  34. package/dist/assets/index.d.cts +1 -1
  35. package/dist/assets/index.d.ts +1 -1
  36. package/dist/assets/index.js +1 -1
  37. package/dist/auth/index.cjs +8 -4
  38. package/dist/auth/index.d.cts +2 -2
  39. package/dist/auth/index.d.ts +2 -2
  40. package/dist/auth/index.js +2 -2
  41. package/dist/auth/types.d.cts +2 -2
  42. package/dist/auth/types.d.ts +2 -2
  43. package/dist/{auth-DLWnl18b.cjs → auth-Dm0F2rOh.cjs} +2 -2
  44. package/dist/{auth-DLWnl18b.cjs.map → auth-Dm0F2rOh.cjs.map} +1 -1
  45. package/dist/{auth-BjmkFOgd.js → auth-DworfoPy.js} +2 -2
  46. package/dist/{auth-BjmkFOgd.js.map → auth-DworfoPy.js.map} +1 -1
  47. package/dist/{authClient-8yU1last.cjs → authClient-BmuUo0J4.cjs} +141 -48
  48. package/dist/authClient-BmuUo0J4.cjs.map +1 -0
  49. package/dist/{authClient-CTHNs6Tq.d.cts → authClient-CHXWJ9x3.d.ts} +109 -76
  50. package/dist/{authClient-BTo4Afm6.js → authClient-CgcDGd30.js} +108 -39
  51. package/dist/authClient-CgcDGd30.js.map +1 -0
  52. package/dist/{authClient-D8i3JTM-.d.ts → authClient-vEt_7_uk.d.cts} +109 -76
  53. package/dist/billing/index.cjs +2 -2
  54. package/dist/billing/index.d.cts +1 -1
  55. package/dist/billing/index.d.ts +1 -1
  56. package/dist/billing/index.js +2 -2
  57. package/dist/billing/types.d.cts +1 -1
  58. package/dist/billing/types.d.ts +1 -1
  59. package/dist/businessWorkspaceApi/index.cjs +1 -1
  60. package/dist/businessWorkspaceApi/index.d.cts +1 -1
  61. package/dist/businessWorkspaceApi/index.d.ts +1 -1
  62. package/dist/businessWorkspaceApi/index.js +1 -1
  63. package/dist/businessWorkspaceApi/types.d.cts +1 -1
  64. package/dist/businessWorkspaceApi/types.d.ts +1 -1
  65. package/dist/{businessWorkspaceApi-wyBdbpIJ.cjs → businessWorkspaceApi-6tCDdpnY.cjs} +3 -3
  66. package/dist/{businessWorkspaceApi-wyBdbpIJ.cjs.map → businessWorkspaceApi-6tCDdpnY.cjs.map} +1 -1
  67. package/dist/{businessWorkspaceApi-BD-iUj07.js → businessWorkspaceApi-BLUdefRF.js} +3 -3
  68. package/dist/{businessWorkspaceApi-BD-iUj07.js.map → businessWorkspaceApi-BLUdefRF.js.map} +1 -1
  69. package/dist/{businessWorkspaceApiClient-CRM1U8b-.d.cts → businessWorkspaceApiClient-BHDJlHFo.d.cts} +3 -3
  70. package/dist/{businessWorkspaceApiClient-C2WyWN3b.d.ts → businessWorkspaceApiClient-DI-z1VIH.d.ts} +3 -3
  71. package/dist/chat/index.cjs +7 -3
  72. package/dist/chat/index.cjs.map +1 -1
  73. package/dist/chat/index.d.cts +2 -2
  74. package/dist/chat/index.d.ts +2 -2
  75. package/dist/chat/index.js +7 -3
  76. package/dist/chat/index.js.map +1 -1
  77. package/dist/chat/types.cjs +1 -3
  78. package/dist/chat/types.cjs.map +1 -1
  79. package/dist/chat/types.d.cts +2 -2
  80. package/dist/chat/types.d.ts +2 -2
  81. package/dist/chat/types.js +1 -3
  82. package/dist/chat/types.js.map +1 -1
  83. package/dist/{componentId-vJz-kWs6.js → componentId-BJLfnaGc.js} +6 -2
  84. package/dist/componentId-BJLfnaGc.js.map +1 -0
  85. package/dist/{componentId-DkyQ8PM0.cjs → componentId-_IKXxICq.cjs} +6 -2
  86. package/dist/componentId-_IKXxICq.cjs.map +1 -0
  87. package/dist/{concurrent-CH9fbNr3.js → concurrent-BacWxPwi.js} +5 -7
  88. package/dist/concurrent-BacWxPwi.js.map +1 -0
  89. package/dist/{concurrent-tbiIa0UL.cjs → concurrent-CdVfR1N5.cjs} +5 -7
  90. package/dist/concurrent-CdVfR1N5.cjs.map +1 -0
  91. package/dist/{configurations-CyFF9Dtu.cjs → configurations-BTRHVSRq.cjs} +20 -53
  92. package/dist/configurations-BTRHVSRq.cjs.map +1 -0
  93. package/dist/{configurations-VtNE0nrT.js → configurations-CF3xz7RB.js} +14 -22
  94. package/dist/configurations-CF3xz7RB.js.map +1 -0
  95. package/dist/{configurations-BVvcimzo.js → configurations-Chg_JwJ1.js} +20 -53
  96. package/dist/configurations-Chg_JwJ1.js.map +1 -0
  97. package/dist/{configurations-zkNjr73Q.cjs → configurations-VlfQ_37Y.cjs} +14 -22
  98. package/dist/configurations-VlfQ_37Y.cjs.map +1 -0
  99. package/dist/constants/index.cjs +1 -1
  100. package/dist/constants/index.d.cts +1 -1
  101. package/dist/constants/index.d.ts +1 -1
  102. package/dist/constants/index.js +1 -1
  103. package/dist/{createFetchClient-BlgPbjFj.cjs → createFetchClient-Cwp8max9.cjs} +11 -4
  104. package/dist/createFetchClient-Cwp8max9.cjs.map +1 -0
  105. package/dist/{createFetchClient-C-cadpBx.js → createFetchClient-DXHQK63w.js} +11 -4
  106. package/dist/createFetchClient-DXHQK63w.js.map +1 -0
  107. package/dist/{createGenericFetchClient-Bnf1QK9W.js → createGenericFetchClient-Dg1rgzmG.js} +2 -2
  108. package/dist/{createGenericFetchClient-Bnf1QK9W.js.map → createGenericFetchClient-Dg1rgzmG.js.map} +1 -1
  109. package/dist/{createGenericFetchClient-lcozzwk2.cjs → createGenericFetchClient-Dl9cqTvR.cjs} +2 -2
  110. package/dist/{createGenericFetchClient-lcozzwk2.cjs.map → createGenericFetchClient-Dl9cqTvR.cjs.map} +1 -1
  111. package/dist/{createOpenapiFetchClient-C3UmDXpe.cjs → createOpenapiFetchClient-BYqW-9tm.cjs} +2 -2
  112. package/dist/{createOpenapiFetchClient-C3UmDXpe.cjs.map → createOpenapiFetchClient-BYqW-9tm.cjs.map} +1 -1
  113. package/dist/{createOpenapiFetchClient-COaPeeQ0.js → createOpenapiFetchClient-DZUOVupy.js} +2 -2
  114. package/dist/{createOpenapiFetchClient-COaPeeQ0.js.map → createOpenapiFetchClient-DZUOVupy.js.map} +1 -1
  115. package/dist/dataScience/index.cjs +2 -2
  116. package/dist/dataScience/index.d.cts +2 -2
  117. package/dist/dataScience/index.d.ts +2 -2
  118. package/dist/dataScience/index.js +2 -2
  119. package/dist/dataScience/types.d.cts +2 -2
  120. package/dist/dataScience/types.d.ts +2 -2
  121. package/dist/{dataScience-D-hyc4GY.cjs → dataScience-B5QxZnvW.cjs} +5 -5
  122. package/dist/{dataScience-D-hyc4GY.cjs.map → dataScience-B5QxZnvW.cjs.map} +1 -1
  123. package/dist/{dataScience-B_BmnB1m.js → dataScience-OXcwdk1p.js} +5 -5
  124. package/dist/{dataScience-B_BmnB1m.js.map → dataScience-OXcwdk1p.js.map} +1 -1
  125. package/dist/dedupe-Cky1gSUu.js +21 -0
  126. package/dist/dedupe-Cky1gSUu.js.map +1 -0
  127. package/dist/dedupe-OSnnst2u.cjs +26 -0
  128. package/dist/dedupe-OSnnst2u.cjs.map +1 -0
  129. package/dist/developerPortal/index.cjs +1 -1
  130. package/dist/developerPortal/index.d.cts +2 -2
  131. package/dist/developerPortal/index.d.ts +2 -2
  132. package/dist/developerPortal/index.js +1 -1
  133. package/dist/developerPortal/types.d.cts +1 -1
  134. package/dist/developerPortal/types.d.ts +1 -1
  135. package/dist/{developerPortalClient-yHFTkKPb.js → developerPortalClient-B1QZ1rYi.js} +6 -8
  136. package/dist/{developerPortalClient-yHFTkKPb.js.map → developerPortalClient-B1QZ1rYi.js.map} +1 -1
  137. package/dist/{developerPortalClient-CutPqoAa.cjs → developerPortalClient-CLPpBksD.cjs} +6 -8
  138. package/dist/{developerPortalClient-CutPqoAa.cjs.map → developerPortalClient-CLPpBksD.cjs.map} +1 -1
  139. package/dist/domain/permissions/index.cjs +9 -30
  140. package/dist/domain/permissions/index.cjs.map +1 -1
  141. package/dist/domain/permissions/index.d.cts +29 -102
  142. package/dist/domain/permissions/index.d.ts +29 -102
  143. package/dist/domain/permissions/index.js +9 -30
  144. package/dist/domain/permissions/index.js.map +1 -1
  145. package/dist/domain/storageTable/index.d.cts +1 -1
  146. package/dist/domain/storageTable/index.d.ts +1 -1
  147. package/dist/editor/index.cjs +2 -2
  148. package/dist/editor/index.cjs.map +1 -1
  149. package/dist/editor/index.d.cts +2 -2
  150. package/dist/editor/index.d.ts +2 -2
  151. package/dist/editor/index.js +2 -2
  152. package/dist/editor/index.js.map +1 -1
  153. package/dist/editor/types.d.cts +1 -1
  154. package/dist/editor/types.d.ts +1 -1
  155. package/dist/encryption/index.cjs +2 -22
  156. package/dist/encryption/index.cjs.map +1 -1
  157. package/dist/encryption/index.d.cts +1 -1
  158. package/dist/encryption/index.d.ts +1 -1
  159. package/dist/encryption/index.js +2 -22
  160. package/dist/encryption/index.js.map +1 -1
  161. package/dist/encryption/types.d.cts +1 -1
  162. package/dist/encryption/types.d.ts +1 -1
  163. package/dist/import/index.cjs +1 -1
  164. package/dist/import/index.d.cts +3 -3
  165. package/dist/import/index.d.ts +3 -3
  166. package/dist/import/index.js +1 -1
  167. package/dist/{import-7YyyD_U_.cjs → import-CNk89mqy.cjs} +3 -3
  168. package/dist/{import-7YyyD_U_.cjs.map → import-CNk89mqy.cjs.map} +1 -1
  169. package/dist/{import-xliONVib.js → import-DiMQCzLa.js} +3 -3
  170. package/dist/{import-xliONVib.js.map → import-DiMQCzLa.js.map} +1 -1
  171. package/dist/{index-1r_CskjU.d.ts → index--ZpnE3YT.d.cts} +3 -3
  172. package/dist/{index-DBklbaTp.d.cts → index-B5w7WlaU.d.cts} +5 -1
  173. package/dist/{index-DBklbaTp.d.ts → index-B5w7WlaU.d.ts} +5 -1
  174. package/dist/{index-C77vTm2K.d.ts → index-BDZvaRud.d.ts} +6 -6
  175. package/dist/{index-KuQ79Mnz.d.ts → index-BVhHt5lx.d.cts} +18 -26
  176. package/dist/{index-NC1dXRTD.d.ts → index-BfqkgPGI.d.cts} +7 -13
  177. package/dist/{index-NC1dXRTD.d.cts → index-BfqkgPGI.d.ts} +7 -13
  178. package/dist/{index-V7XKUQm9.d.cts → index-BgR5zcjJ.d.ts} +18 -26
  179. package/dist/{index-BK-qHT39.d.ts → index-ByRpNVcs.d.cts} +83 -17
  180. package/dist/{index-pXN4LWUX.d.ts → index-C11JSxBY.d.ts} +8 -11
  181. package/dist/{index-GjcJTCbz.d.cts → index-C4TNAA8-.d.cts} +8 -11
  182. package/dist/{index-BMqLPS6S.d.ts → index-CXcWpZQ2.d.cts} +4 -12
  183. package/dist/{index-BMqLPS6S.d.cts → index-CXcWpZQ2.d.ts} +4 -12
  184. package/dist/{index-GfKzh267.d.ts → index-CaaTOANF.d.ts} +395 -297
  185. package/dist/{index-Dx52hNLP.d.cts → index-CcMHJcuP.d.cts} +3 -3
  186. package/dist/{index-DVw4Av4b.d.cts → index-Cvbjp3jx.d.cts} +6 -6
  187. package/dist/{index-DppA4k3b.d.cts → index-Cz0MXhzs.d.cts} +5 -5
  188. package/dist/{index-6Xe81qN3.d.ts → index-D-VMgpGc.d.ts} +5 -5
  189. package/dist/{index-DWf6FXOr.d.cts → index-D7-o-oGa.d.ts} +3 -3
  190. package/dist/{index-CWoEnDJ_.d.cts → index-DCRKjihs.d.ts} +83 -17
  191. package/dist/{kaiAgentClient-CHpULyeG.d.cts → index-DNThyEej.d.cts} +14 -5
  192. package/dist/{index-DXSmFkol.d.cts → index-DOAZmWvh.d.cts} +6 -6
  193. package/dist/{index-BuegqrS1.d.ts → index-D_-4uQF8.d.ts} +3 -3
  194. package/dist/index-DbLFwXgb.d.cts +116 -0
  195. package/dist/{index-De5qUWhp.d.ts → index-DnQTuc6t.d.ts} +6 -6
  196. package/dist/{kaiAgentClient-B5L4gbQ1.d.ts → index-Qb7X6-ph.d.ts} +14 -5
  197. package/dist/{index-CHXnJQ9s.d.cts → index-cWp_V6K5.d.cts} +395 -297
  198. package/dist/index-rwK7GcB2.d.ts +116 -0
  199. package/dist/index.cjs +1498 -901
  200. package/dist/index.cjs.map +1 -1
  201. package/dist/index.d.cts +7 -7
  202. package/dist/index.d.ts +7 -7
  203. package/dist/index.js +1497 -902
  204. package/dist/index.js.map +1 -1
  205. package/dist/isLoginPageRedirect-XPwAOKK3.js +14 -0
  206. package/dist/isLoginPageRedirect-XPwAOKK3.js.map +1 -0
  207. package/dist/isLoginPageRedirect-jQHiLrG7.cjs +19 -0
  208. package/dist/isLoginPageRedirect-jQHiLrG7.cjs.map +1 -0
  209. package/dist/{jobStatus-0_Y3Sr4i.cjs → jobStatus-BMlsyXWI.cjs} +19 -45
  210. package/dist/jobStatus-BMlsyXWI.cjs.map +1 -0
  211. package/dist/{jobStatus-PSZJMTiA.js → jobStatus-CfRtsIpv.js} +19 -45
  212. package/dist/jobStatus-CfRtsIpv.js.map +1 -0
  213. package/dist/kaiAgent/index.cjs +1 -1
  214. package/dist/kaiAgent/index.d.cts +3 -2
  215. package/dist/kaiAgent/index.d.ts +3 -2
  216. package/dist/kaiAgent/index.js +1 -1
  217. package/dist/kaiAgent/types.d.cts +2 -2
  218. package/dist/kaiAgent/types.d.ts +2 -2
  219. package/dist/{kaiAgent-CcT2oNip.js → kaiAgent-Dp20HLTh.js} +32 -11
  220. package/dist/kaiAgent-Dp20HLTh.js.map +1 -0
  221. package/dist/{kaiAgent-DaB6UCsh.cjs → kaiAgent-QNoeVKPs.cjs} +32 -11
  222. package/dist/kaiAgent-QNoeVKPs.cjs.map +1 -0
  223. package/dist/kaiMemory-CClSPInt.cjs +289 -0
  224. package/dist/kaiMemory-CClSPInt.cjs.map +1 -0
  225. package/dist/kaiMemory-D0Y_16U4.js +260 -0
  226. package/dist/kaiMemory-D0Y_16U4.js.map +1 -0
  227. package/dist/management/index.cjs +1 -1
  228. package/dist/management/index.d.cts +1 -1
  229. package/dist/management/index.d.ts +1 -1
  230. package/dist/management/index.js +1 -1
  231. package/dist/management/types.d.cts +2 -2
  232. package/dist/management/types.d.ts +2 -2
  233. package/dist/{management-DeZiQSlw.cjs → management-CCY0IYnq.cjs} +59 -24
  234. package/dist/management-CCY0IYnq.cjs.map +1 -0
  235. package/dist/{management-ckdnu1dA.js → management-DvmPiG64.js} +59 -24
  236. package/dist/management-DvmPiG64.js.map +1 -0
  237. package/dist/metastore/index.cjs +1 -1
  238. package/dist/metastore/index.d.cts +1 -1
  239. package/dist/metastore/index.d.ts +1 -1
  240. package/dist/metastore/index.js +1 -1
  241. package/dist/metastore/types.d.cts +2 -2
  242. package/dist/metastore/types.d.ts +2 -2
  243. package/dist/{metastore-B0PolCjQ.js → metastore-BycJxe7A.js} +14 -8
  244. package/dist/metastore-BycJxe7A.js.map +1 -0
  245. package/dist/{metastore-9AGrwjmN.cjs → metastore-XtWciCZT.cjs} +14 -8
  246. package/dist/metastore-XtWciCZT.cjs.map +1 -0
  247. package/dist/microsoftGraph/index.cjs +2 -2
  248. package/dist/microsoftGraph/index.d.cts +2 -2
  249. package/dist/microsoftGraph/index.d.ts +2 -2
  250. package/dist/microsoftGraph/index.js +2 -2
  251. package/dist/microsoftGraph/types.d.cts +1 -1
  252. package/dist/microsoftGraph/types.d.ts +1 -1
  253. package/dist/middleware-CBwrtgQd.js +34 -0
  254. package/dist/middleware-CBwrtgQd.js.map +1 -0
  255. package/dist/middleware-IjYx3d5u.cjs +45 -0
  256. package/dist/middleware-IjYx3d5u.cjs.map +1 -0
  257. package/dist/notifications/index.cjs +4 -4
  258. package/dist/notifications/index.d.cts +2 -2
  259. package/dist/notifications/index.d.ts +2 -2
  260. package/dist/notifications/index.js +4 -4
  261. package/dist/notifications/types.d.cts +1 -1
  262. package/dist/notifications/types.d.ts +1 -1
  263. package/dist/oauth/index.cjs +1 -1
  264. package/dist/oauth/index.d.cts +2 -2
  265. package/dist/oauth/index.d.ts +2 -2
  266. package/dist/oauth/index.js +1 -1
  267. package/dist/oauth/types.d.cts +1 -1
  268. package/dist/oauth/types.d.ts +1 -1
  269. package/dist/{oauth-DNtv4Ihb.cjs → oauth--2p8jkJf.cjs} +5 -5
  270. package/dist/{oauth-DNtv4Ihb.cjs.map → oauth--2p8jkJf.cjs.map} +1 -1
  271. package/dist/{oauth-BnHVf4cB.js → oauth-l5zE39cD.js} +5 -5
  272. package/dist/{oauth-BnHVf4cB.js.map → oauth-l5zE39cD.js.map} +1 -1
  273. package/dist/omnisearch/index.cjs +6 -14
  274. package/dist/omnisearch/index.cjs.map +1 -1
  275. package/dist/omnisearch/index.d.cts +6 -14
  276. package/dist/omnisearch/index.d.ts +6 -14
  277. package/dist/omnisearch/index.js +6 -14
  278. package/dist/omnisearch/index.js.map +1 -1
  279. package/dist/omnisearch/types.d.cts +1 -1
  280. package/dist/omnisearch/types.d.ts +1 -1
  281. package/dist/{project-DCHOxRWd.d.ts → project-B15gStbM.d.ts} +2 -2
  282. package/dist/{project-BRpzv3yE.d.cts → project-cHKuGvqJ.d.cts} +2 -2
  283. package/dist/queryService/index.cjs +1 -1
  284. package/dist/queryService/index.d.cts +1 -1
  285. package/dist/queryService/index.d.ts +1 -1
  286. package/dist/queryService/index.js +1 -1
  287. package/dist/queryService/types.d.cts +1 -1
  288. package/dist/queryService/types.d.ts +1 -1
  289. package/dist/{queryService-j3XZ2mX6.js → queryService-CCOYbRbw.js} +6 -6
  290. package/dist/{queryService-j3XZ2mX6.js.map → queryService-CCOYbRbw.js.map} +1 -1
  291. package/dist/{queryService-BVwD6Vmc.cjs → queryService-CQzclHdL.cjs} +6 -6
  292. package/dist/{queryService-BVwD6Vmc.cjs.map → queryService-CQzclHdL.cjs.map} +1 -1
  293. package/dist/queue/index.cjs +1 -1
  294. package/dist/queue/index.d.cts +3 -3
  295. package/dist/queue/index.d.ts +3 -3
  296. package/dist/queue/index.js +1 -1
  297. package/dist/queue/types.d.cts +1 -1
  298. package/dist/queue/types.d.ts +1 -1
  299. package/dist/{queue-Dagl0sdP.js → queue-Cowbg6bR.js} +8 -11
  300. package/dist/queue-Cowbg6bR.js.map +1 -0
  301. package/dist/{queue-e3rMWbmK.cjs → queue-UG_BWKIC.cjs} +8 -11
  302. package/dist/queue-UG_BWKIC.cjs.map +1 -0
  303. package/dist/scheduler/index.cjs +4 -4
  304. package/dist/scheduler/index.d.cts +2 -2
  305. package/dist/scheduler/index.d.ts +2 -2
  306. package/dist/scheduler/index.js +4 -4
  307. package/dist/scheduler/types.d.cts +1 -1
  308. package/dist/scheduler/types.d.ts +1 -1
  309. package/dist/sdk/configurations/index.cjs +1 -1
  310. package/dist/sdk/configurations/index.d.cts +11 -11
  311. package/dist/sdk/configurations/index.d.ts +11 -11
  312. package/dist/sdk/configurations/index.js +1 -1
  313. package/dist/sdk/developerPortal/index.cjs +10 -18
  314. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  315. package/dist/sdk/developerPortal/index.d.cts +7 -15
  316. package/dist/sdk/developerPortal/index.d.ts +7 -15
  317. package/dist/sdk/developerPortal/index.js +7 -15
  318. package/dist/sdk/developerPortal/index.js.map +1 -1
  319. package/dist/sdk/kaiMemory/index.cjs +7 -0
  320. package/dist/sdk/kaiMemory/index.d.cts +41 -0
  321. package/dist/sdk/kaiMemory/index.d.ts +41 -0
  322. package/dist/sdk/kaiMemory/index.js +2 -0
  323. package/dist/sdk/kaiMemory/types.cjs +0 -0
  324. package/dist/sdk/kaiMemory/types.d.cts +2 -0
  325. package/dist/sdk/kaiMemory/types.d.ts +2 -0
  326. package/dist/sdk/kaiMemory/types.js +1 -0
  327. package/dist/sdk/queryService/index.cjs +2 -2
  328. package/dist/sdk/queryService/index.d.cts +1 -1
  329. package/dist/sdk/queryService/index.d.ts +1 -1
  330. package/dist/sdk/queryService/index.js +2 -2
  331. package/dist/sdk/semanticLayer/index.cjs +1 -1
  332. package/dist/sdk/semanticLayer/index.d.cts +16 -40
  333. package/dist/sdk/semanticLayer/index.d.ts +16 -40
  334. package/dist/sdk/semanticLayer/index.js +1 -1
  335. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  336. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  337. package/dist/sdk/storage/index.cjs +0 -5
  338. package/dist/sdk/storage/index.cjs.map +1 -1
  339. package/dist/sdk/storage/index.d.cts +2 -2
  340. package/dist/sdk/storage/index.d.ts +2 -2
  341. package/dist/sdk/storage/index.js +1 -5
  342. package/dist/sdk/storage/index.js.map +1 -1
  343. package/dist/sdk/tag/index.cjs +1 -1
  344. package/dist/sdk/tag/index.d.cts +3 -3
  345. package/dist/sdk/tag/index.d.ts +3 -3
  346. package/dist/sdk/tag/index.js +1 -1
  347. package/dist/sdk/tag/types.d.cts +1 -1
  348. package/dist/sdk/tag/types.d.ts +1 -1
  349. package/dist/sdk/vault/index.cjs +1 -1
  350. package/dist/sdk/vault/index.d.cts +1 -1
  351. package/dist/sdk/vault/index.d.ts +1 -1
  352. package/dist/sdk/vault/index.js +1 -1
  353. package/dist/{semanticLayer-9uTaU7UT.cjs → semanticLayer-CKDVkU56.cjs} +62 -183
  354. package/dist/semanticLayer-CKDVkU56.cjs.map +1 -0
  355. package/dist/{semanticLayer-6_gtFxDu.js → semanticLayer-pYy082Ju.js} +62 -183
  356. package/dist/semanticLayer-pYy082Ju.js.map +1 -0
  357. package/dist/status/index.cjs +1 -1
  358. package/dist/status/index.d.cts +1 -1
  359. package/dist/status/index.d.ts +1 -1
  360. package/dist/status/index.js +1 -1
  361. package/dist/storage/index.cjs +5 -5
  362. package/dist/storage/index.d.cts +2 -2
  363. package/dist/storage/index.d.ts +2 -2
  364. package/dist/storage/index.js +5 -5
  365. package/dist/storage/types.d.cts +2 -2
  366. package/dist/storage/types.d.ts +2 -2
  367. package/dist/{storage-Ob1LUIDq.js → storage-CZQHZcXG.js} +109 -302
  368. package/dist/storage-CZQHZcXG.js.map +1 -0
  369. package/dist/{storage-HFUdEy7P.cjs → storage-JinL1y1s.cjs} +109 -302
  370. package/dist/storage-JinL1y1s.cjs.map +1 -0
  371. package/dist/stream/index.cjs +3 -3
  372. package/dist/stream/index.d.cts +2 -2
  373. package/dist/stream/index.d.ts +2 -2
  374. package/dist/stream/index.js +3 -3
  375. package/dist/stream/types.d.cts +1 -1
  376. package/dist/stream/types.d.ts +1 -1
  377. package/dist/syncActions/index.cjs +1 -1
  378. package/dist/syncActions/index.d.cts +1 -1
  379. package/dist/syncActions/index.d.ts +1 -1
  380. package/dist/syncActions/index.js +1 -1
  381. package/dist/syncActions/types.d.cts +2 -2
  382. package/dist/syncActions/types.d.ts +2 -2
  383. package/dist/{syncActions-B3NS5a0g.js → syncActions-ChNWuhYA.js} +260 -111
  384. package/dist/syncActions-ChNWuhYA.js.map +1 -0
  385. package/dist/{syncActions-D2DhY6pP.cjs → syncActions-mFlF16cl.cjs} +260 -111
  386. package/dist/syncActions-mFlF16cl.cjs.map +1 -0
  387. package/dist/{tag-CsoOZWB_.cjs → tag-DHS_soa7.cjs} +2 -2
  388. package/dist/{tag-CsoOZWB_.cjs.map → tag-DHS_soa7.cjs.map} +1 -1
  389. package/dist/{tag-DCsoewjL.js → tag-hh-1nhNr.js} +2 -2
  390. package/dist/{tag-DCsoewjL.js.map → tag-hh-1nhNr.js.map} +1 -1
  391. package/dist/telemetry/index.cjs +7 -11
  392. package/dist/telemetry/index.cjs.map +1 -1
  393. package/dist/telemetry/index.d.cts +5 -9
  394. package/dist/telemetry/index.d.ts +5 -9
  395. package/dist/telemetry/index.js +7 -11
  396. package/dist/telemetry/index.js.map +1 -1
  397. package/dist/telemetry/types.d.cts +1 -1
  398. package/dist/telemetry/types.d.ts +1 -1
  399. package/dist/{types-DqxIx9Pi.d.cts → types-6kuMW4JW.d.cts} +2 -2
  400. package/dist/{types-Ct0YPy2w.d.ts → types-B2w2TtSA.d.ts} +3 -3
  401. package/dist/{types-M46WuBSm.d.cts → types-B61aCifg.d.cts} +2 -2
  402. package/dist/{types-COL1kVEB.d.cts → types-B8N_k79M.d.cts} +2 -2
  403. package/dist/{types-Jw10xuOW.d.cts → types-BIECJYun.d.ts} +171 -44
  404. package/dist/{types-DZk3XHiN.d.cts → types-BLNB882w.d.cts} +3 -3
  405. package/dist/{types-BEe50G2r.d.cts → types-BPy5Ozee.d.cts} +2 -2
  406. package/dist/{types-gi4Eay19.d.ts → types-BS4jwuMi.d.ts} +7 -15
  407. package/dist/{types-BrYkBQo4.d.ts → types-BTK7Bv3n.d.cts} +171 -44
  408. package/dist/{types-D6UmMa6E.d.ts → types-BZDV8DZk.d.ts} +3 -3
  409. package/dist/{types-Cz83RiVu.d.cts → types-B_iLJlp4.d.ts} +255 -12
  410. package/dist/{types-CmF3pR2n.d.cts → types-BiMahEK8.d.cts} +91 -237
  411. package/dist/{types-BH5LLeJy.d.ts → types-Bl03Cg2n.d.cts} +255 -12
  412. package/dist/{types-bGQb4Jtl.d.cts → types-ByLH46Dt.d.cts} +13 -8
  413. package/dist/{types-g3vU7hcg.d.cts → types-Bydx6ga_.d.cts} +2 -2
  414. package/dist/{types-B95uNQ9o.d.ts → types-CKmTZSPG.d.ts} +91 -237
  415. package/dist/{types-D_j2Uq5X.d.cts → types-CMzQSHAQ.d.cts} +3 -3
  416. package/dist/{types-N3EChotg.d.cts → types-CP_LBmw3.d.cts} +2 -2
  417. package/dist/{types-CW6lCqrC.d.cts → types-CQFOCQzk.d.ts} +230 -43
  418. package/dist/{types-zZBxJ0P-.d.ts → types-CWyXTMwy.d.ts} +2 -2
  419. package/dist/{types-CPB-eF82.d.ts → types-CZJlLCbA.d.ts} +2 -2
  420. package/dist/{types-l9o4gFsI.d.ts → types-CZXPu3gn.d.ts} +2 -2
  421. package/dist/{types-BztF4HeB.d.ts → types-CaOtNjSZ.d.ts} +6 -13
  422. package/dist/{types-BTWIPEiU.d.ts → types-CfwqVkEA.d.ts} +2 -2
  423. package/dist/types-Cg14ncdV.d.ts +63 -0
  424. package/dist/{types-BsxLGDoC.d.cts → types-CoJVrRAD.d.ts} +2 -2
  425. package/dist/{types-DYzJ6K2e.d.ts → types-CqwHP7mN.d.cts} +230 -43
  426. package/dist/{types-CKiW3n6v.d.ts → types-D3wcs4tp.d.ts} +2 -2
  427. package/dist/{types-DOyNe7oe.d.cts → types-DDOa07rU.d.cts} +7 -15
  428. package/dist/{types-BW2BXUB4.d.cts → types-DE9hgr7i.d.cts} +2 -2
  429. package/dist/{types-BOqD3Hqy.d.cts → types-DEzW1CfI.d.cts} +3 -3
  430. package/dist/{types-OaD-cbbl.d.ts → types-DIiOMV-t.d.ts} +3 -3
  431. package/dist/{types-B-P4vQe0.d.cts → types-DKc1gmd9.d.ts} +857 -131
  432. package/dist/{types-BrPlv-NS.d.ts → types-DRCMBt89.d.ts} +3 -3
  433. package/dist/{types-BQvv4RaI.d.cts → types-DUMal2E-.d.cts} +5 -8
  434. package/dist/types-DWiLcrxt.d.cts +63 -0
  435. package/dist/{types-DNxOHnZI.d.cts → types-Dd31Lw4S.d.cts} +2 -2
  436. package/dist/{types-Dmu-8g4O.d.ts → types-DekYAlA-.d.ts} +3 -3
  437. package/dist/{types-B2U9cFcx.d.ts → types-DgJeO9Nd.d.ts} +2 -2
  438. package/dist/{types-nrviNdzZ.d.ts → types-DicSaNwq.d.ts} +2 -2
  439. package/dist/{types-Crhy0c9m.d.cts → types-DinIJ1D_.d.cts} +40 -11
  440. package/dist/{types-DhDNS-5B.d.ts → types-DlQw6FCi.d.ts} +13 -8
  441. package/dist/{types-_RhBCj4_.d.cts → types-DoZtE9tz.d.cts} +3 -3
  442. package/dist/{types-Bxhh2SJr.d.ts → types-DrvKfXXd.d.cts} +2 -2
  443. package/dist/{types-DPl8pZsY.d.ts → types-Dtuvhm3K.d.cts} +857 -131
  444. package/dist/{types-CcrvrAJX.d.ts → types-DwVSj-Da.d.ts} +5 -8
  445. package/dist/{types-C2vefB4D.d.ts → types-FwRmjsNN.d.ts} +10 -34
  446. package/dist/{types-C0_2KZ-A.d.ts → types-RbrfiY8T.d.ts} +2 -2
  447. package/dist/{types-DfvdbRPL.d.ts → types-WZBztugL.d.ts} +2 -2
  448. package/dist/{types-52irAt99.d.cts → types-YHUEArkR.d.cts} +2 -2
  449. package/dist/{types-fX4gbxfV.d.cts → types-bc-4z_gc.d.cts} +10 -34
  450. package/dist/{types-3eUgOA7I.d.cts → types-ePSqbXRr.d.cts} +6 -13
  451. package/dist/{types-DrqKICcK.d.ts → types-n4PTnLii.d.ts} +40 -11
  452. package/dist/{types-DXskkNp8.d.cts → types-pvQzbgNE.d.cts} +3 -3
  453. package/dist/{types-DajzGOKB.d.ts → types-q-1r_9d1.d.ts} +2 -2
  454. package/dist/{types-D8Rrz51O.d.cts → types-tKkeLa2B.d.cts} +2 -2
  455. package/dist/{validateConnectionStatus-828HV8WL.js → validateConnectionStatus-BEGu8wXT.js} +6 -10
  456. package/dist/validateConnectionStatus-BEGu8wXT.js.map +1 -0
  457. package/dist/{validateConnectionStatus-CvBKyeDO.cjs → validateConnectionStatus-BEYkQpu9.cjs} +6 -10
  458. package/dist/validateConnectionStatus-BEYkQpu9.cjs.map +1 -0
  459. package/dist/vault/index.cjs +4 -4
  460. package/dist/vault/index.d.cts +1 -1
  461. package/dist/vault/index.d.ts +1 -1
  462. package/dist/vault/index.js +4 -4
  463. package/dist/vault/types.d.cts +1 -1
  464. package/dist/vault/types.d.ts +1 -1
  465. package/package.json +32 -4
  466. package/surface/apps.md +3 -3
  467. package/surface/auth.md +13 -6
  468. package/surface/chat.md +6 -6
  469. package/surface/kaiAgent.md +9 -8
  470. package/surface/management.md +14 -5
  471. package/surface/metastore.md +2 -2
  472. package/surface/queue.md +3 -3
  473. package/surface/sdk.md +13 -3
  474. package/surface/storage.md +6 -6
  475. package/surface/syncActions.md +16 -0
  476. package/dist/ValidationError-BekhphAq.js +0 -48
  477. package/dist/ValidationError-BekhphAq.js.map +0 -1
  478. package/dist/ValidationError-CLVJCCwH.cjs.map +0 -1
  479. package/dist/authClient-8yU1last.cjs.map +0 -1
  480. package/dist/authClient-BTo4Afm6.js.map +0 -1
  481. package/dist/componentId-DkyQ8PM0.cjs.map +0 -1
  482. package/dist/componentId-vJz-kWs6.js.map +0 -1
  483. package/dist/concurrent-CH9fbNr3.js.map +0 -1
  484. package/dist/concurrent-tbiIa0UL.cjs.map +0 -1
  485. package/dist/configurations-BVvcimzo.js.map +0 -1
  486. package/dist/configurations-CyFF9Dtu.cjs.map +0 -1
  487. package/dist/configurations-VtNE0nrT.js.map +0 -1
  488. package/dist/configurations-zkNjr73Q.cjs.map +0 -1
  489. package/dist/createFetchClient-BlgPbjFj.cjs.map +0 -1
  490. package/dist/createFetchClient-C-cadpBx.js.map +0 -1
  491. package/dist/credential-CAulvfZ-.cjs +0 -47
  492. package/dist/credential-CAulvfZ-.cjs.map +0 -1
  493. package/dist/credential-DWXbo4IX.js +0 -36
  494. package/dist/credential-DWXbo4IX.js.map +0 -1
  495. package/dist/dedupe-CiskLkGR.cjs +0 -30
  496. package/dist/dedupe-CiskLkGR.cjs.map +0 -1
  497. package/dist/dedupe-DYIHgZoG.js +0 -25
  498. package/dist/dedupe-DYIHgZoG.js.map +0 -1
  499. package/dist/index-3LUk2rpD.d.ts +0 -65
  500. package/dist/index-CW3Pj7DY.d.cts +0 -65
  501. package/dist/isLoginPageRedirect-Cm6Pn8Pj.cjs +0 -25
  502. package/dist/isLoginPageRedirect-Cm6Pn8Pj.cjs.map +0 -1
  503. package/dist/isLoginPageRedirect-hyPqyWNX.js +0 -20
  504. package/dist/isLoginPageRedirect-hyPqyWNX.js.map +0 -1
  505. package/dist/jobStatus-0_Y3Sr4i.cjs.map +0 -1
  506. package/dist/jobStatus-PSZJMTiA.js.map +0 -1
  507. package/dist/kaiAgent-CcT2oNip.js.map +0 -1
  508. package/dist/kaiAgent-DaB6UCsh.cjs.map +0 -1
  509. package/dist/management-DeZiQSlw.cjs.map +0 -1
  510. package/dist/management-ckdnu1dA.js.map +0 -1
  511. package/dist/metastore-9AGrwjmN.cjs.map +0 -1
  512. package/dist/metastore-B0PolCjQ.js.map +0 -1
  513. package/dist/queue-Dagl0sdP.js.map +0 -1
  514. package/dist/queue-e3rMWbmK.cjs.map +0 -1
  515. package/dist/semanticLayer-6_gtFxDu.js.map +0 -1
  516. package/dist/semanticLayer-9uTaU7UT.cjs.map +0 -1
  517. package/dist/storage-HFUdEy7P.cjs.map +0 -1
  518. package/dist/storage-Ob1LUIDq.js.map +0 -1
  519. package/dist/syncActions-B3NS5a0g.js.map +0 -1
  520. package/dist/syncActions-D2DhY6pP.cjs.map +0 -1
  521. package/dist/validateConnectionStatus-828HV8WL.js.map +0 -1
  522. package/dist/validateConnectionStatus-CvBKyeDO.cjs.map +0 -1
@@ -1,11 +1,11 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
2
- const require_createFetchClient = require("./createFetchClient-BlgPbjFj.cjs");
2
+ const require_createFetchClient = require("./createFetchClient-Cwp8max9.cjs");
3
3
  const require_SyncActionError = require("./SyncActionError-BG0zwchi.cjs");
4
- const require_ValidationError = require("./ValidationError-CLVJCCwH.cjs");
5
- const require_createGenericFetchClient = require("./createGenericFetchClient-lcozzwk2.cjs");
6
- const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-C3UmDXpe.cjs");
7
- const require_auth = require("./auth-DLWnl18b.cjs");
8
- const require_componentId = require("./componentId-DkyQ8PM0.cjs");
4
+ const require_ValidationError = require("./ValidationError-D65QU0uq.cjs");
5
+ const require_createGenericFetchClient = require("./createGenericFetchClient-Dl9cqTvR.cjs");
6
+ const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-BYqW-9tm.cjs");
7
+ const require_auth = require("./auth-Dm0F2rOh.cjs");
8
+ const require_componentId = require("./componentId-_IKXxICq.cjs");
9
9
  let zod = require("zod");
10
10
  zod = require_rolldown_runtime.__toESM(zod, 1);
11
11
  //#region src/clients/syncActions/utils/response.ts
@@ -13,16 +13,10 @@ const asErrorBody = (data) => typeof data === "object" && data !== null ? data :
13
13
  const asString = (value) => typeof value === "string" && value ? value : void 0;
14
14
  const asNumber = (value) => typeof value === "number" ? value : void 0;
15
15
  /**
16
- * A component reports failure two ways: a non-2xx response, and a **2xx** whose body carries
17
- * `status: 'error'` (the component ran, and said no). Both are recognised here so every sync action
18
- * fails as one `SyncActionError` — `validateStatus` is the only hook that sees the parsed body of a
19
- * successful response, which is what the second case needs.
16
+ * Fails a sync action on a non-2xx, or on a 2xx whose body has `status: 'error'`.
20
17
  *
21
- * Throwing rather than returning the error is deliberate. `coreFetch` only rethrows a returned value
22
- * that is an `ApiError`, and `SyncActionError` is a peer of `ApiError`, not a subclass: a component
23
- * answering `status: 'error'` on a **200** gave a business answer, not a transport failure, so it
24
- * must not satisfy `isApiError` / `isFetchClientError` — those drive retry and "network problem"
25
- * handling, and `err.response.status` would read 200 and mislead every status-based branch.
18
+ * - Throws: `coreFetch` only rethrows a returned `ApiError`.
19
+ * - `SyncActionError` is not an `ApiError`, so retry / network-error handling skips it.
26
20
  */
27
21
  const syncActionValidateStatus = (apiResponse) => {
28
22
  const body = asErrorBody(apiResponse.data);
@@ -42,39 +36,28 @@ const SyncAction = {
42
36
  DBT_RUN_RESULTS: "dbtRunResults",
43
37
  GIT_REPOSITORY: "gitRepository",
44
38
  ENROLL_MFA: "enrollMFA",
39
+ FLOW_MIGRATION_PREVIEW: "preview",
40
+ FLOW_MIGRATION_VALIDATE: "validate",
45
41
  LIST_ACTORS: "listActors",
46
42
  LIST_TASKS: "listTasks",
47
- TEST_LOOKER_CREDENTIALS: "testLookerCredentials"
43
+ TEST_LOOKER_CREDENTIALS: "testLookerCredentials",
44
+ SSH_KEYS_GENERATE: "generate",
45
+ ONEDRIVE_SEARCH: "search",
46
+ ONEDRIVE_GET_WORKSHEETS: "getWorksheets",
47
+ ONEDRIVE_CREATE_WORKBOOK: "createWorkbook",
48
+ ONEDRIVE_CREATE_WORKSHEET: "createWorksheet"
48
49
  };
49
50
  //#endregion
50
51
  //#region src/clients/syncActions/schemas.ts
51
- /**
52
- * The Keboola-side context every sync action carries, whichever action it is. Namespaces extend it
53
- * with the fields their own action needs, so a caller never assembles the rest of the body.
54
- */
52
+ /** The Keboola-side context every sync action carries; namespaces extend it with their own fields. */
55
53
  const syncActionContextSchema = zod.object({
56
- /**
57
- * Required, because omitting it changes nothing: the service normalises a missing, empty or
58
- * `null` value to `"default"` and resolves that to the default branch's numeric id — the same id,
59
- * branch type and downstream context an explicit value resolves to, with no extra lookup either
60
- * way. Requiring it keeps every request self-describing. Both a numeric id and the literal
61
- * `"default"` are accepted (`keboola/runner-sync-api`: `ExecuteActionRequestProcessor` →
62
- * `BranchTypeResolver`).
63
- */
54
+ /** A numeric id or `"default"`; required so requests are self-describing. */
64
55
  branchId: zod.string().min(1, "Required"),
65
- /**
66
- * Leave undefined. The service then runs the component's registered tag from the Developer
67
- * Portal / Storage component definition — the currently published version, not Docker's
68
- * `latest`. Set it only to deliberately pin a specific or branch build.
69
- */
56
+ /** Leave undefined to run the published version (not Docker `latest`); set only to pin a build. */
70
57
  tag: zod.string().optional(),
71
58
  mode: zod.enum(["run", "debug"]).optional()
72
59
  });
73
- /**
74
- * The `/actions` request body. `configData` is whatever the component's action expects, so it is
75
- * only asserted to be an object here — each namespace validates the shape its own action needs
76
- * before handing it over.
77
- */
60
+ /** The `/actions` body; each namespace validates its own `configData` shape. */
78
61
  const syncActionBodySchema = syncActionContextSchema.extend({
79
62
  componentId: zod.string().min(1, "Required"),
80
63
  action: zod.string().min(1, "Required"),
@@ -128,45 +111,31 @@ const createApify = (sendSyncAction) => {
128
111
  };
129
112
  //#endregion
130
113
  //#region src/clients/syncActions/dbt/schemas.ts
131
- /**
132
- * `componentId` is a plain string here, unlike the git actions' closed enum. Every dbt transformation
133
- * answers `dbtCompile` and `dbtRunResults` under the same action name and the same payload, so the id
134
- * selects nothing — it only names the component to run, and rejecting an unlisted one would cost the
135
- * caller a cast for no guarantee. The component itself refuses an action it does not serve.
136
- */
114
+ /** `componentId` is a plain string: every dbt transformation serves the same actions, so it selects nothing. */
137
115
  const dbtActionInputSchema = syncActionContextSchema.extend({
138
116
  componentId: zod.string().min(1, "Required"),
139
117
  configId: zod.string().min(1, "Required"),
140
118
  artifacts: zod.record(zod.string(), zod.unknown()).optional()
141
119
  });
142
120
  /**
143
- * `compiled` maps a model's file name (`orders.sql`) to its compiled SQL. Key order is the
144
- * component's own and is preserved, so the caller can render the models in it.
121
+ * Model file name (`orders.sql`) → compiled SQL, in the component's key order.
145
122
  *
146
- * A configuration that has never run does **not** answer with an empty payload — the component
147
- * raises a user exception telling you to run it first, which arrives as a `SyncActionError` carrying
148
- * that sentence. The empty default here is only for a payload that omits the key anyway: rendering
149
- * "nothing to show" beats failing on a validation error no caller can act on. A key that is
150
- * *present* with the wrong shape still fails — that is a contract change, and reading it as "no
151
- * models" would hide it.
123
+ * - A never-run configuration fails with a `SyncActionError`, not an empty payload.
124
+ * - A missing key defaults to empty; a present key of the wrong shape still fails.
152
125
  */
153
126
  const dbtCompiledSchema = zod.object({ compiled: zod.record(zod.string(), zod.string()).default({}) }).transform(({ compiled }) => compiled);
154
- /**
155
- * dbt reports the worker as `"Thread-1"`; the number alone is what a consumer positions a row by, so
156
- * the prefix is stripped here rather than in every consumer. An unparseable value falls back to `0`
157
- * — one odd worker label must not cost the caller the whole timeline.
158
- */
127
+ /** `"Thread-1"` → `1`; an unparseable value falls back to `0` rather than failing the timeline. */
159
128
  const dbtThreadSchema = zod.string().transform((thread) => Number.parseInt(thread.replace(/^Thread-/, ""), 10)).pipe(zod.number().int().nonnegative()).catch(0);
160
- /** Each entry also carries `status` and `dependsOn`, dropped here until a consumer needs them. */
129
+ /** Omits `status` and `dependsOn`. */
161
130
  const dbtModelTimingSchema = zod.object({
162
131
  id: zod.string(),
163
132
  name: zod.string(),
164
133
  thread: dbtThreadSchema,
165
- /** ISO timestamps, left as strings — the consumer decides what to parse them into. */
134
+ /** ISO timestamps, left unparsed. */
166
135
  timeStarted: zod.string(),
167
136
  timeCompleted: zod.string()
168
137
  });
169
- /** Defaults to empty for the same reason as `compiled` above — and with the same caveat. */
138
+ /** A missing key defaults to empty, as in `dbtCompiledSchema`. */
170
139
  const dbtRunResultsSchema = zod.object({ modelTiming: zod.array(dbtModelTimingSchema).default([]) }).transform(({ modelTiming }) => modelTiming);
171
140
  //#endregion
172
141
  //#region src/clients/syncActions/dbt/utils.ts
@@ -212,6 +181,75 @@ const createDbt = (sendSyncAction) => {
212
181
  };
213
182
  };
214
183
  //#endregion
184
+ //#region src/clients/syncActions/flowMigration/schemas.ts
185
+ const flowMigrationInputSchema = syncActionContextSchema.extend({ orchestrationIds: zod.array(zod.string().min(1, "Required")) });
186
+ const flowMigrationValidationResultSchema = zod.object({
187
+ orchestrationId: zod.string(),
188
+ orchestrationName: zod.string(),
189
+ valid: zod.boolean(),
190
+ issues: zod.array(zod.string())
191
+ });
192
+ /** The orchestration's configuration as the flow it would become; extra keys pass through. */
193
+ const flowMigrationMigratedConfigurationSchema = zod.looseObject({
194
+ phases: zod.array(zod.unknown()).optional(),
195
+ tasks: zod.array(zod.unknown()).optional(),
196
+ parameters: zod.unknown().optional()
197
+ });
198
+ /**
199
+ * One orchestration's dry-run outcome.
200
+ *
201
+ * - `skipped`: it failed validation; `issues` says why.
202
+ * - `failed`: building the flow threw; `error` carries the message.
203
+ */
204
+ const flowMigrationPreviewResultSchema = zod.object({
205
+ orchestrationId: zod.string(),
206
+ orchestrationName: zod.string(),
207
+ status: zod.enum([
208
+ "dry-run",
209
+ "skipped",
210
+ "failed"
211
+ ]),
212
+ issues: zod.array(zod.string()),
213
+ changes: zod.array(zod.string()),
214
+ error: zod.string().optional(),
215
+ migratedConfiguration: flowMigrationMigratedConfigurationSchema.optional()
216
+ });
217
+ const flowMigrationValidationResultsSchema = zod.array(flowMigrationValidationResultSchema);
218
+ const flowMigrationPreviewResultsSchema = zod.array(flowMigrationPreviewResultSchema);
219
+ //#endregion
220
+ //#region src/clients/syncActions/flowMigration/flowMigration.ts
221
+ /** Orchestration → flow migration checks; one result per requested orchestration. */
222
+ const createFlowMigration = (sendSyncAction) => {
223
+ const validate = async (input, signal) => {
224
+ const { orchestrationIds, ...context } = require_ValidationError.parseOrThrow(flowMigrationInputSchema, input);
225
+ const data = await sendSyncAction({
226
+ ...context,
227
+ action: SyncAction.FLOW_MIGRATION_VALIDATE,
228
+ componentId: require_componentId.ComponentId.FLOW_MIGRATION_TOOL,
229
+ configData: { parameters: { orchestrationIds } }
230
+ }, { signal });
231
+ return require_ValidationError.parseOrThrow(flowMigrationValidationResultsSchema, data);
232
+ };
233
+ /** A dry run: nothing is written, and invalid orchestrations come back `skipped`. */
234
+ const preview = async (input, signal) => {
235
+ const { orchestrationIds, ...context } = require_ValidationError.parseOrThrow(flowMigrationInputSchema, input);
236
+ const data = await sendSyncAction({
237
+ ...context,
238
+ action: SyncAction.FLOW_MIGRATION_PREVIEW,
239
+ componentId: require_componentId.ComponentId.FLOW_MIGRATION_TOOL,
240
+ configData: { parameters: {
241
+ mode: "config",
242
+ orchestrationIds
243
+ } }
244
+ }, { signal });
245
+ return require_ValidationError.parseOrThrow(flowMigrationPreviewResultsSchema, data);
246
+ };
247
+ return {
248
+ validate,
249
+ preview
250
+ };
251
+ };
252
+ //#endregion
215
253
  //#region src/clients/syncActions/git/constants.ts
216
254
  /**
217
255
  * Components whose git repository lives under `parameters.dataApp.git.repository` and that answer to
@@ -253,14 +291,7 @@ const gitAuthSchema = zod.discriminatedUnion("type", [
253
291
  }),
254
292
  zod.object({
255
293
  type: zod.literal("sshKey"),
256
- /**
257
- * Optional, unlike the password variant's — the key is the whole credential.
258
- *
259
- * - The component rewrites the URL to `git@host:path` and clones over SSH, where the user is
260
- * always `git` (`keboola/sandboxes`: `GitRepository::resolveRepositoryUrl`).
261
- * - It never reads `username` on that path, so a deploy key has none to be stored with.
262
- * - Accept one when the caller has it anyway; it reaches the component and is ignored there.
263
- */
294
+ /** Ignored by the component: over SSH the user is always `git`. */
264
295
  username: zod.string().min(1, "Required").optional(),
265
296
  "#sshKey": zod.string().min(1, "Required")
266
297
  })
@@ -270,14 +301,8 @@ const gitInputSchema = syncActionContextSchema.extend({
270
301
  auth: gitAuthSchema.default({ type: "public" })
271
302
  });
272
303
  /**
273
- * Accepts only the components that serve a git repository action — the action name and the
274
- * `configData` path are resolved from the id, so one from neither family has nowhere to go. The
275
- * enum rejects an unsupported id when parsing, before any request is sent.
276
- *
277
- * **Takes no `branch`, deliberately — do not add one.** It is a run-config field the component
278
- * feeds to `git clone -b <branch>`, so a stale or renamed value fails the clone and breaks the very
279
- * call you make to find out which branches exist. Accepting it optionally would let a caller
280
- * reintroduce that by spreading in an existing config; zod strips it instead.
304
+ * **Takes no `branch` — do not add one.** The component clones with `-b <branch>`, so a stale one
305
+ * would fail the branch listing. Zod strips it.
281
306
  */
282
307
  const getBranchesInputSchema = gitInputSchema.extend({ componentId: zod.enum(GIT_FAMILY) }).check((ctx) => {
283
308
  const { componentId, auth } = ctx.value;
@@ -289,26 +314,13 @@ const getBranchesInputSchema = gitInputSchema.extend({ componentId: zod.enum(GIT
289
314
  message: `Component "${componentId}" authenticates with a password, not an SSH key.`
290
315
  });
291
316
  });
292
- /** Only the data-app family serves `data-app-entrypoints`; the enum rejects anything else. */
317
+ /** Only the data-app family serves `data-app-entrypoints`. */
293
318
  const getEntrypointsInputSchema = gitInputSchema.extend({
294
319
  componentId: zod.enum(DATA_APP_FAMILY),
295
- /**
296
- * Unlike `getBranches`, the branch is a real input here — it selects whose revision's files get
297
- * enumerated. The *git* branch, not the dev branch (`branchId`) every sync action carries.
298
- * Omit it for the repository's default branch; don't resolve one client-side.
299
- *
300
- * An empty string normalises to omitted rather than being rejected: a config written outside the
301
- * UI can carry `branch: ""`, and the form this replaces deleted a falsy branch before sending, so
302
- * refusing it would fail a call that has always meant "the default branch".
303
- */
320
+ /** The *git* branch (not `branchId`); omit for the repository default. `""` normalises to omitted. */
304
321
  branch: zod.string().optional().transform((branch) => branch || void 0)
305
322
  });
306
- /**
307
- * Only `branch` is load-bearing — it is the value the caller selects and stores. The rest is
308
- * decoration the UI renders beside it, so each field falls back to an empty string rather than
309
- * failing: one commit with no message must not cost the caller the whole branch list. They stay
310
- * `string` rather than becoming optional, so a consumer needs no new undefined handling.
311
- */
323
+ /** Only `branch` is load-bearing; the rest falls back to `''` so one bad field can't fail the list. */
312
324
  const gitBranchSchema = zod.object({
313
325
  branch: zod.string(),
314
326
  sha: zod.string().catch(""),
@@ -322,24 +334,12 @@ const gitBranchSchema = zod.object({
322
334
  email: ""
323
335
  })
324
336
  });
337
+ /** An array, or an index-keyed object with gaps (a server-filtered PHP array). */
338
+ const gitBranchListSchema = zod.union([zod.array(gitBranchSchema), zod.record(zod.string(), gitBranchSchema)]).transform((branches) => Array.isArray(branches) ? branches : Object.values(branches));
325
339
  /**
326
- * Only `repository.branches` is confirmed — it is what the UI read before these actions were typed.
327
- * The top-level position is accepted too because the schema this replaces declared it there, and
328
- * nothing ever exercised that schema to settle which is right; the two families are separate
329
- * implementations, so both may well be real.
330
- *
331
- * A list in neither position is a different thing from an empty one, though, and is rejected rather
332
- * than read as none: an empty array is a real answer (a repository with no branches yet), while an
333
- * envelope carrying no list at all is one we do not understand, and rendering that as "no branches"
334
- * would hide the failure behind an ordinary empty state.
335
- */
336
- /**
337
- * Either a JSON array or an object keyed by stringified indices, gaps included:
338
- * `{ "0": …, "1": …, "3": … }`. The component filters the list server-side, and a PHP array whose
339
- * integer keys are no longer contiguous serializes as an object. `Object.values` reads those keys
340
- * back in ascending numeric order, so the branch order survives either shape.
340
+ * - `repository.branches` is confirmed; the top-level position is accepted but unverified.
341
+ * - A response with neither list is rejected, not read as no branches.
341
342
  */
342
- const gitBranchListSchema = zod.union([zod.array(gitBranchSchema), zod.record(zod.string(), gitBranchSchema)]).transform((branches) => Array.isArray(branches) ? branches : Object.values(branches));
343
343
  const gitBranchesSchema = zod.object({
344
344
  repository: zod.object({ branches: gitBranchListSchema.optional() }).optional(),
345
345
  branches: gitBranchListSchema.optional()
@@ -359,7 +359,6 @@ const toCredentials = (auth) => {
359
359
  const { type: _type, ...credentials } = auth;
360
360
  return credentials;
361
361
  };
362
- /** The default is the absence of a branch — the component's own `git clone` decides it. */
363
362
  const toRevision = (rev) => rev.revision === "branch" ? { branch: rev.branch } : {};
364
363
  /** Data apps nest their repository a level deeper, and call the URL `repository`. */
365
364
  const buildDataAppConfigData = ({ repositoryUrl, auth, ...rev }) => ({ parameters: { dataApp: { git: {
@@ -453,6 +452,153 @@ const createLooker = (sendSyncAction) => {
453
452
  return { testCredentials };
454
453
  };
455
454
  //#endregion
455
+ //#region src/clients/syncActions/utils/oauth.ts
456
+ /** The OAuth broker's credentials for one configuration, under the keys the components read. */
457
+ const oauthCredentialsSchema = zod.object({
458
+ appKey: zod.string().min(1, "Required"),
459
+ "#data": zod.string().min(1, "Required"),
460
+ "#appSecret": zod.string().min(1, "Required")
461
+ });
462
+ /** The `configData.authorization` block every OAuth-backed component expects. */
463
+ const buildOauthAuthorization = (credentials) => ({ oauth_api: { credentials } });
464
+ //#endregion
465
+ //#region src/clients/syncActions/oneDrive/schemas.ts
466
+ const oneDriveInputSchema = syncActionContextSchema.extend({ credentials: oauthCredentialsSchema });
467
+ const oneDriveSearchFilesInputSchema = oneDriveInputSchema.extend({ search: zod.string().min(1, "Required") });
468
+ const oneDriveGetWorksheetsInputSchema = oneDriveInputSchema.extend({
469
+ componentId: zod.enum([require_componentId.ComponentId.EX_ONEDRIVE, require_componentId.ComponentId.WR_ONEDRIVE]),
470
+ driveId: zod.string().min(1, "Required"),
471
+ fileId: zod.string().min(1, "Required")
472
+ });
473
+ const oneDriveCreateWorkbookInputSchema = oneDriveInputSchema.extend({ path: zod.string().min(1, "Required") });
474
+ const oneDriveCreateWorksheetInputSchema = oneDriveInputSchema.extend({
475
+ driveId: zod.string().min(1, "Required"),
476
+ fileId: zod.string().min(1, "Required"),
477
+ name: zod.string().min(1, "Required")
478
+ });
479
+ const oneDriveFileSchema = zod.object({
480
+ driveId: zod.string(),
481
+ fileId: zod.string(),
482
+ name: zod.string(),
483
+ /** `null` when the component resolved no folder for the file. */
484
+ path: zod.string().nullable()
485
+ });
486
+ const oneDriveWorksheetSchema = zod.object({
487
+ driveId: zod.string(),
488
+ fileId: zod.string(),
489
+ worksheetId: zod.string(),
490
+ name: zod.string(),
491
+ /** `name`, suffixed with ` (hidden)` for a hidden worksheet. */
492
+ title: zod.string(),
493
+ position: zod.number(),
494
+ visible: zod.boolean()
495
+ });
496
+ const oneDriveSearchFilesResultSchema = zod.object({ files: zod.array(oneDriveFileSchema) });
497
+ const oneDriveGetWorksheetsResultSchema = zod.object({ worksheets: zod.array(oneDriveWorksheetSchema) });
498
+ const oneDriveCreateWorkbookResultSchema = zod.object({ file: zod.object({
499
+ driveId: zod.string(),
500
+ fileId: zod.string()
501
+ }) });
502
+ const oneDriveCreateWorksheetResultSchema = zod.object({ worksheet: zod.object({
503
+ driveId: zod.string(),
504
+ fileId: zod.string(),
505
+ worksheetId: zod.string()
506
+ }) });
507
+ //#endregion
508
+ //#region src/clients/syncActions/oneDrive/oneDrive.ts
509
+ const createOneDrive = (sendSyncAction) => {
510
+ const searchFiles = async (input, signal) => {
511
+ const { credentials, search, ...context } = require_ValidationError.parseOrThrow(oneDriveSearchFilesInputSchema, input);
512
+ const data = await sendSyncAction({
513
+ ...context,
514
+ action: SyncAction.ONEDRIVE_SEARCH,
515
+ componentId: require_componentId.ComponentId.EX_ONEDRIVE,
516
+ configData: {
517
+ parameters: { workbook: { search } },
518
+ authorization: buildOauthAuthorization(credentials)
519
+ }
520
+ }, { signal });
521
+ return require_ValidationError.parseOrThrow(oneDriveSearchFilesResultSchema, data).files;
522
+ };
523
+ const getWorksheets = async (input, signal) => {
524
+ const { credentials, driveId, fileId, ...context } = require_ValidationError.parseOrThrow(oneDriveGetWorksheetsInputSchema, input);
525
+ const data = await sendSyncAction({
526
+ ...context,
527
+ action: SyncAction.ONEDRIVE_GET_WORKSHEETS,
528
+ configData: {
529
+ parameters: { workbook: {
530
+ driveId,
531
+ fileId
532
+ } },
533
+ authorization: buildOauthAuthorization(credentials)
534
+ }
535
+ }, { signal });
536
+ return require_ValidationError.parseOrThrow(oneDriveGetWorksheetsResultSchema, data).worksheets;
537
+ };
538
+ /** Throws `SyncActionError` when a workbook already exists at `path`. */
539
+ const createWorkbook = async (input, signal) => {
540
+ const { credentials, path, ...context } = require_ValidationError.parseOrThrow(oneDriveCreateWorkbookInputSchema, input);
541
+ const data = await sendSyncAction({
542
+ ...context,
543
+ action: SyncAction.ONEDRIVE_CREATE_WORKBOOK,
544
+ componentId: require_componentId.ComponentId.WR_ONEDRIVE,
545
+ configData: {
546
+ parameters: { workbook: { path } },
547
+ authorization: buildOauthAuthorization(credentials)
548
+ }
549
+ }, { signal });
550
+ return require_ValidationError.parseOrThrow(oneDriveCreateWorkbookResultSchema, data).file;
551
+ };
552
+ /** Throws `SyncActionError` when the workbook already has a worksheet called `name`. */
553
+ const createWorksheet = async (input, signal) => {
554
+ const { credentials, driveId, fileId, name, ...context } = require_ValidationError.parseOrThrow(oneDriveCreateWorksheetInputSchema, input);
555
+ const data = await sendSyncAction({
556
+ ...context,
557
+ action: SyncAction.ONEDRIVE_CREATE_WORKSHEET,
558
+ componentId: require_componentId.ComponentId.WR_ONEDRIVE,
559
+ configData: {
560
+ parameters: {
561
+ workbook: {
562
+ driveId,
563
+ fileId
564
+ },
565
+ worksheet: { name }
566
+ },
567
+ authorization: buildOauthAuthorization(credentials)
568
+ }
569
+ }, { signal });
570
+ return require_ValidationError.parseOrThrow(oneDriveCreateWorksheetResultSchema, data).worksheet;
571
+ };
572
+ return {
573
+ searchFiles,
574
+ getWorksheets,
575
+ createWorkbook,
576
+ createWorksheet
577
+ };
578
+ };
579
+ //#endregion
580
+ //#region src/clients/syncActions/sshKeys/schemas.ts
581
+ const sshKeyPairSchema = zod.object({
582
+ status: zod.literal("success"),
583
+ public: zod.string(),
584
+ private: zod.string()
585
+ });
586
+ //#endregion
587
+ //#region src/clients/syncActions/sshKeys/sshKeys.ts
588
+ const createSshKeys = (sendSyncAction) => {
589
+ /** Generates a new 4096-bit RSA key pair; the component keeps no copy. */
590
+ const generate = async (input, signal) => {
591
+ const data = await sendSyncAction({
592
+ ...require_ValidationError.parseOrThrow(syncActionContextSchema, input),
593
+ action: SyncAction.SSH_KEYS_GENERATE,
594
+ componentId: require_componentId.ComponentId.SSH_KEYGEN_V2,
595
+ configData: {}
596
+ }, { signal });
597
+ return require_ValidationError.parseOrThrow(sshKeyPairSchema, data);
598
+ };
599
+ return { generate };
600
+ };
601
+ //#endregion
456
602
  //#region src/clients/syncActions/syncActionsClient.ts
457
603
  const createSendSyncAction = (client) => {
458
604
  return async (body, options = {}) => {
@@ -489,8 +635,11 @@ const createSyncActionsClient = ({ baseUrl, middlewares, auth }) => {
489
635
  enrollMFA,
490
636
  apify: createApify(sendSyncAction),
491
637
  dbt: createDbt(sendSyncAction),
638
+ flowMigration: createFlowMigration(sendSyncAction),
492
639
  git: createGit(sendSyncAction),
493
- looker: createLooker(sendSyncAction)
640
+ looker: createLooker(sendSyncAction),
641
+ oneDrive: createOneDrive(sendSyncAction),
642
+ sshKeys: createSshKeys(sendSyncAction)
494
643
  };
495
644
  };
496
645
  //#endregion
@@ -501,4 +650,4 @@ Object.defineProperty(exports, "createSyncActionsClient", {
501
650
  }
502
651
  });
503
652
 
504
- //# sourceMappingURL=syncActions-D2DhY6pP.cjs.map
653
+ //# sourceMappingURL=syncActions-mFlF16cl.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syncActions-mFlF16cl.cjs","names":["SyncActionError","defaultValidateStatus","z","z","SyncActionError","parseOrThrow","ComponentId","z","parseOrThrow","z","parseOrThrow","ComponentId","ComponentId","z","parseOrThrow","z","parseOrThrow","ComponentId","z","z","ComponentId","parseOrThrow","ComponentId","z","parseOrThrow","ComponentId","parseOrThrow","createOpenapiFetchClient","createAuthHeaders","createGenericFetchClient"],"sources":["../src/clients/syncActions/utils/response.ts","../src/clients/syncActions/constants.ts","../src/clients/syncActions/schemas.ts","../src/clients/syncActions/apify/schemas.ts","../src/clients/syncActions/apify/utils.ts","../src/clients/syncActions/apify/apify.ts","../src/clients/syncActions/dbt/schemas.ts","../src/clients/syncActions/dbt/utils.ts","../src/clients/syncActions/dbt/dbt.ts","../src/clients/syncActions/flowMigration/schemas.ts","../src/clients/syncActions/flowMigration/flowMigration.ts","../src/clients/syncActions/git/constants.ts","../src/clients/syncActions/git/schemas.ts","../src/clients/syncActions/git/utils.ts","../src/clients/syncActions/git/git.ts","../src/clients/syncActions/looker/schemas.ts","../src/clients/syncActions/looker/looker.ts","../src/clients/syncActions/utils/oauth.ts","../src/clients/syncActions/oneDrive/schemas.ts","../src/clients/syncActions/oneDrive/oneDrive.ts","../src/clients/syncActions/sshKeys/schemas.ts","../src/clients/syncActions/sshKeys/sshKeys.ts","../src/clients/syncActions/syncActionsClient.ts"],"sourcesContent":["import { SyncActionError } from '../../../errors';\nimport type { ValidateStatusFn } from '../../../fetchClient';\nimport { defaultValidateStatus } from '../../../fetchClient';\n\ntype SyncActionErrorBody = {\n status?: unknown;\n message?: unknown;\n error?: unknown;\n exceptionId?: unknown;\n code?: unknown;\n};\n\nconst asErrorBody = (data: unknown): SyncActionErrorBody | null =>\n typeof data === 'object' && data !== null ? (data as SyncActionErrorBody) : null;\n\nconst asString = (value: unknown) => (typeof value === 'string' && value ? value : undefined);\nconst asNumber = (value: unknown) => (typeof value === 'number' ? value : undefined);\n\n/**\n * Fails a sync action on a non-2xx, or on a 2xx whose body has `status: 'error'`.\n *\n * - Throws: `coreFetch` only rethrows a returned `ApiError`.\n * - `SyncActionError` is not an `ApiError`, so retry / network-error handling skips it.\n */\nexport const syncActionValidateStatus: ValidateStatusFn = (apiResponse) => {\n const body = asErrorBody(apiResponse.data);\n\n if (body?.status === 'error') {\n throw new SyncActionError(\n asString(body.message) ?? asString(body.error) ?? apiResponse.response.statusText,\n {\n exceptionId: asString(body.exceptionId),\n code: asNumber(body.code),\n data: apiResponse.data,\n },\n );\n }\n\n return defaultValidateStatus(apiResponse);\n};\n","export const SyncAction = {\n DATA_APP_GIT_REPOSITORY: 'git-repository',\n DATA_APP_ENTRYPOINTS: 'data-app-entrypoints',\n DBT_COMPILE: 'dbtCompile',\n DBT_RUN_RESULTS: 'dbtRunResults',\n GIT_REPOSITORY: 'gitRepository',\n ENROLL_MFA: 'enrollMFA',\n FLOW_MIGRATION_PREVIEW: 'preview',\n FLOW_MIGRATION_VALIDATE: 'validate',\n LIST_ACTORS: 'listActors',\n LIST_TASKS: 'listTasks',\n TEST_LOOKER_CREDENTIALS: 'testLookerCredentials',\n SSH_KEYS_GENERATE: 'generate',\n ONEDRIVE_SEARCH: 'search',\n ONEDRIVE_GET_WORKSHEETS: 'getWorksheets',\n ONEDRIVE_CREATE_WORKBOOK: 'createWorkbook',\n ONEDRIVE_CREATE_WORKSHEET: 'createWorksheet',\n};\n","import * as z from 'zod';\n\n/** The Keboola-side context every sync action carries; namespaces extend it with their own fields. */\nexport const syncActionContextSchema = z.object({\n /** A numeric id or `\"default\"`; required so requests are self-describing. */\n branchId: z.string().min(1, 'Required'),\n /** Leave undefined to run the published version (not Docker `latest`); set only to pin a build. */\n tag: z.string().optional(),\n mode: z.enum(['run', 'debug']).optional(),\n});\n\n/** The `/actions` body; each namespace validates its own `configData` shape. */\nexport const syncActionBodySchema = syncActionContextSchema.extend({\n componentId: z.string().min(1, 'Required'),\n action: z.string().min(1, 'Required'),\n configData: z.record(z.string(), z.unknown()),\n});\n\nexport type SyncActionContext = z.infer<typeof syncActionContextSchema>;\nexport type SyncActionBody = z.infer<typeof syncActionBodySchema>;\n","import * as z from 'zod';\n\nimport { syncActionContextSchema } from '../schemas';\n\nexport const apifyObjectsInputSchema = syncActionContextSchema.extend({\n '#token': z.string().min(1, 'Required'),\n});\n\nexport const apifyObjectsSchema = z.array(\n z.object({\n id: z.string(),\n name: z.string(),\n }),\n);\n\nexport type ApifyObjectsInput = z.infer<typeof apifyObjectsInputSchema>;\n\nexport type ApifyObject = z.infer<typeof apifyObjectsSchema>[number];\n","import { SyncActionError } from '../../../errors';\nimport type { ValidateStatusFn } from '../../../fetchClient';\nimport { syncActionValidateStatus } from '../utils/response';\n\n/**\n * A slow Apify account makes the component answer `{ timeout: true }` on a 200 instead of the list —\n * a failure only this action knows how to spot, so it is checked before deferring to the shared\n * validation.\n */\nexport const apifyValidateStatus: ValidateStatusFn = (apiResponse) => {\n const data = apiResponse.data;\n\n if (typeof data === 'object' && data !== null && 'timeout' in data && data.timeout)\n throw new SyncActionError('Timed out while loading data from Apify.', { data });\n\n return syncActionValidateStatus(apiResponse);\n};\n","import { ComponentId } from '../../../constants';\nimport { parseOrThrow } from '../../../errors';\nimport { SyncAction } from '../constants';\nimport type { SendSyncAction } from '../syncActionsClient';\n\nimport { type ApifyObjectsInput, apifyObjectsInputSchema, apifyObjectsSchema } from './schemas';\nimport { apifyValidateStatus } from './utils';\n\nexport const createApify = (sendSyncAction: SendSyncAction) => {\n const _getObjects = async (action: string, input: ApifyObjectsInput, signal?: AbortSignal) => {\n const { '#token': token, ...context } = parseOrThrow(apifyObjectsInputSchema, input);\n\n const data = await sendSyncAction(\n {\n ...context,\n action,\n componentId: ComponentId.APIFY,\n configData: { parameters: { '#token': token } },\n },\n { signal, validateStatus: apifyValidateStatus },\n );\n\n return parseOrThrow(apifyObjectsSchema, data);\n };\n\n const getActors = (input: ApifyObjectsInput, signal?: AbortSignal) => {\n return _getObjects(SyncAction.LIST_ACTORS, input, signal);\n };\n\n const getTasks = (input: ApifyObjectsInput, signal?: AbortSignal) => {\n return _getObjects(SyncAction.LIST_TASKS, input, signal);\n };\n\n return { getActors, getTasks };\n};\n","import * as z from 'zod';\n\nimport { syncActionContextSchema } from '../schemas';\n\n/** `componentId` is a plain string: every dbt transformation serves the same actions, so it selects nothing. */\nexport const dbtActionInputSchema = syncActionContextSchema.extend({\n componentId: z.string().min(1, 'Required'),\n configId: z.string().min(1, 'Required'),\n artifacts: z.record(z.string(), z.unknown()).optional(),\n});\n\n/**\n * Model file name (`orders.sql`) → compiled SQL, in the component's key order.\n *\n * - A never-run configuration fails with a `SyncActionError`, not an empty payload.\n * - A missing key defaults to empty; a present key of the wrong shape still fails.\n */\nexport const dbtCompiledSchema = z\n .object({ compiled: z.record(z.string(), z.string()).default({}) })\n .transform(({ compiled }) => compiled);\n\n/** `\"Thread-1\"` → `1`; an unparseable value falls back to `0` rather than failing the timeline. */\nconst dbtThreadSchema = z\n .string()\n .transform((thread) => Number.parseInt(thread.replace(/^Thread-/, ''), 10))\n .pipe(z.number().int().nonnegative())\n .catch(0);\n\n/** Omits `status` and `dependsOn`. */\nexport const dbtModelTimingSchema = z.object({\n id: z.string(),\n name: z.string(),\n thread: dbtThreadSchema,\n /** ISO timestamps, left unparsed. */\n timeStarted: z.string(),\n timeCompleted: z.string(),\n});\n\n/** A missing key defaults to empty, as in `dbtCompiledSchema`. */\nexport const dbtRunResultsSchema = z\n .object({ modelTiming: z.array(dbtModelTimingSchema).default([]) })\n .transform(({ modelTiming }) => modelTiming);\n\nexport type DbtActionInput = z.infer<typeof dbtActionInputSchema>;\nexport type DbtCompiled = z.infer<typeof dbtCompiledSchema>;\nexport type DbtModelTiming = z.infer<typeof dbtModelTimingSchema>;\n","export type DbtActionConfigDataInput = {\n configId: string;\n artifacts?: Record<string, unknown>;\n};\n\n/**\n * Both dbt artifact actions read the *stored* configuration — `configId` is what they resolve it by,\n * so the payload carries no settings of its own. `artifacts` is the configuration's own artifacts\n * section, passed through untouched: it selects which run's artifacts the component picks up, and\n * omitting it leaves the component on its default (the latest run).\n */\nexport const buildDbtActionConfigData = ({ configId, artifacts }: DbtActionConfigDataInput) => ({\n parameters: { configId },\n ...(artifacts && { artifacts }),\n});\n","import { parseOrThrow } from '../../../errors';\nimport { SyncAction } from '../constants';\nimport type { SendSyncAction } from '../syncActionsClient';\n\nimport {\n type DbtActionInput,\n dbtActionInputSchema,\n dbtCompiledSchema,\n dbtRunResultsSchema,\n} from './schemas';\nimport { buildDbtActionConfigData } from './utils';\n\n/** The dbt transformations' artifact actions — both read what the *last run* left behind. */\nexport const createDbt = (sendSyncAction: SendSyncAction) => {\n const sendDbtAction = (action: string, input: DbtActionInput, signal?: AbortSignal) => {\n const { componentId, configId, artifacts, ...context } = parseOrThrow(\n dbtActionInputSchema,\n input,\n );\n\n return sendSyncAction(\n {\n ...context,\n componentId,\n action,\n configData: buildDbtActionConfigData({ configId, artifacts }),\n },\n { signal },\n );\n };\n\n /** The compiled SQL of every model in the configuration. */\n const compile = async (input: DbtActionInput, signal?: AbortSignal) => {\n const data = await sendDbtAction(SyncAction.DBT_COMPILE, input, signal);\n\n return parseOrThrow(dbtCompiledSchema, data);\n };\n\n /** When each model of the last run started and finished, and on which worker. */\n const runResults = async (input: DbtActionInput, signal?: AbortSignal) => {\n const data = await sendDbtAction(SyncAction.DBT_RUN_RESULTS, input, signal);\n\n return parseOrThrow(dbtRunResultsSchema, data);\n };\n\n return { compile, runResults };\n};\n","import * as z from 'zod';\n\nimport { syncActionContextSchema } from '../schemas';\n\nexport const flowMigrationInputSchema = syncActionContextSchema.extend({\n orchestrationIds: z.array(z.string().min(1, 'Required')),\n});\n\nexport const flowMigrationValidationResultSchema = z.object({\n orchestrationId: z.string(),\n orchestrationName: z.string(),\n valid: z.boolean(),\n issues: z.array(z.string()),\n});\n\n/** The orchestration's configuration as the flow it would become; extra keys pass through. */\nconst flowMigrationMigratedConfigurationSchema = z.looseObject({\n phases: z.array(z.unknown()).optional(),\n tasks: z.array(z.unknown()).optional(),\n parameters: z.unknown().optional(),\n});\n\n/**\n * One orchestration's dry-run outcome.\n *\n * - `skipped`: it failed validation; `issues` says why.\n * - `failed`: building the flow threw; `error` carries the message.\n */\nexport const flowMigrationPreviewResultSchema = z.object({\n orchestrationId: z.string(),\n orchestrationName: z.string(),\n status: z.enum(['dry-run', 'skipped', 'failed']),\n issues: z.array(z.string()),\n changes: z.array(z.string()),\n error: z.string().optional(),\n migratedConfiguration: flowMigrationMigratedConfigurationSchema.optional(),\n});\n\nexport const flowMigrationValidationResultsSchema = z.array(flowMigrationValidationResultSchema);\nexport const flowMigrationPreviewResultsSchema = z.array(flowMigrationPreviewResultSchema);\n\nexport type FlowMigrationInput = z.infer<typeof flowMigrationInputSchema>;\nexport type FlowMigrationValidationResult = z.infer<typeof flowMigrationValidationResultSchema>;\nexport type FlowMigrationPreviewResult = z.infer<typeof flowMigrationPreviewResultSchema>;\n","import { ComponentId } from '../../../constants';\nimport { parseOrThrow } from '../../../errors';\nimport { SyncAction } from '../constants';\nimport type { SendSyncAction } from '../syncActionsClient';\n\nimport {\n type FlowMigrationInput,\n flowMigrationInputSchema,\n flowMigrationPreviewResultsSchema,\n flowMigrationValidationResultsSchema,\n} from './schemas';\n\n/** Orchestration → flow migration checks; one result per requested orchestration. */\nexport const createFlowMigration = (sendSyncAction: SendSyncAction) => {\n const validate = async (input: FlowMigrationInput, signal?: AbortSignal) => {\n const { orchestrationIds, ...context } = parseOrThrow(flowMigrationInputSchema, input);\n\n const data = await sendSyncAction(\n {\n ...context,\n action: SyncAction.FLOW_MIGRATION_VALIDATE,\n componentId: ComponentId.FLOW_MIGRATION_TOOL,\n configData: { parameters: { orchestrationIds } },\n },\n { signal },\n );\n\n return parseOrThrow(flowMigrationValidationResultsSchema, data);\n };\n\n /** A dry run: nothing is written, and invalid orchestrations come back `skipped`. */\n const preview = async (input: FlowMigrationInput, signal?: AbortSignal) => {\n const { orchestrationIds, ...context } = parseOrThrow(flowMigrationInputSchema, input);\n\n const data = await sendSyncAction(\n {\n ...context,\n action: SyncAction.FLOW_MIGRATION_PREVIEW,\n componentId: ComponentId.FLOW_MIGRATION_TOOL,\n configData: { parameters: { mode: 'config', orchestrationIds } },\n },\n { signal },\n );\n\n return parseOrThrow(flowMigrationPreviewResultsSchema, data);\n };\n\n return { validate, preview };\n};\n","import { ComponentId } from '../../../constants';\n\n/**\n * Components whose git repository lives under `parameters.dataApp.git.repository` and that answer to\n * the `git-repository` action. They are the only ones serving `data-app-entrypoints`, and the only\n * ones accepting an SSH key.\n */\nexport const DATA_APP_FAMILY = [ComponentId.DATA_APPS, ComponentId.SANDBOXES] as const;\n\n/**\n * Components whose git repository lives under `parameters.git.repo` and that answer to the\n * `gitRepository` action. They authenticate over HTTPS with a username and password only.\n *\n * Deliberately a list rather than \"everything else\": `listBranches` / `list_branches` /\n * `checkBranches` also exist on unrelated third-party components (`kds-team.app-custom-python`,\n * `keboola.app-transformation-migration`, `kds-team.app-sox-migration-checker`) under a different\n * contract. Those stay on the generic `sendSyncAction` escape hatch.\n */\nconst DBT_FAMILY = [\n ComponentId.DBT_TEST_CORE_KEY_PAIR,\n ComponentId.DBT_TEST_REMOTE_SNOWFLAKE,\n ComponentId.DBT_TRANSFORMATION,\n ComponentId.DBT_TRANSFORMATION_LOCAL_BIGQUERY,\n ComponentId.DBT_TRANSFORMATION_REMOTE_BIGQUERY,\n ComponentId.DBT_TRANSFORMATION_REMOTE_MSSQL,\n ComponentId.DBT_TRANSFORMATION_REMOTE_POSTGRESQL,\n ComponentId.DBT_TRANSFORMATION_REMOTE_REDSHIFT,\n ComponentId.DBT_TRANSFORMATION_REMOTE_SNOWFLAKE,\n] as const;\n\nexport const GIT_FAMILY = [...DATA_APP_FAMILY, ...DBT_FAMILY] as const;\n\n/** The ids the git actions accept — anything else has no action name or payload path to resolve. */\nexport type GitComponentId = (typeof GIT_FAMILY)[number];\nexport type DataAppComponentId = (typeof DATA_APP_FAMILY)[number];\n\nconst dataAppIds: ReadonlySet<string> = new Set(DATA_APP_FAMILY);\n\nexport const isDataAppFamily = (componentId: string): componentId is DataAppComponentId =>\n dataAppIds.has(componentId);\n","import * as z from 'zod';\n\nimport { syncActionContextSchema } from '../schemas';\n\nimport { DATA_APP_FAMILY, GIT_FAMILY, isDataAppFamily } from './constants';\n\nexport const gitAuthSchema = z.discriminatedUnion('type', [\n z.object({ type: z.literal('public') }),\n z.object({\n type: z.literal('password'),\n username: z.string().min(1, 'Required'),\n '#password': z.string().min(1, 'Required'),\n }),\n z.object({\n type: z.literal('sshKey'),\n /** Ignored by the component: over SSH the user is always `git`. */\n username: z.string().min(1, 'Required').optional(),\n '#sshKey': z.string().min(1, 'Required'),\n }),\n]);\n\nconst gitInputSchema = syncActionContextSchema.extend({\n repositoryUrl: z.string().min(1, 'Required'),\n auth: gitAuthSchema.default({ type: 'public' }),\n});\n\n/**\n * **Takes no `branch` — do not add one.** The component clones with `-b <branch>`, so a stale one\n * would fail the branch listing. Zod strips it.\n */\nexport const getBranchesInputSchema = gitInputSchema\n .extend({ componentId: z.enum(GIT_FAMILY) })\n .check((ctx) => {\n const { componentId, auth } = ctx.value;\n\n // The types can't vary auth by family: dbt clones over HTTPS with a password, no SSH key.\n if (auth.type !== 'sshKey' || isDataAppFamily(componentId)) return;\n\n ctx.issues.push({\n code: 'custom',\n input: auth,\n path: ['auth'],\n message: `Component \"${componentId}\" authenticates with a password, not an SSH key.`,\n });\n });\n\n/** Only the data-app family serves `data-app-entrypoints`. */\nexport const getEntrypointsInputSchema = gitInputSchema.extend({\n componentId: z.enum(DATA_APP_FAMILY),\n /** The *git* branch (not `branchId`); omit for the repository default. `\"\"` normalises to omitted. */\n branch: z\n .string()\n .optional()\n .transform((branch) => branch || undefined),\n});\n\n/** Only `branch` is load-bearing; the rest falls back to `''` so one bad field can't fail the list. */\nconst gitBranchSchema = z.object({\n branch: z.string(),\n sha: z.string().catch(''),\n date: z.string().catch(''),\n comment: z.string().catch(''),\n author: z\n .object({\n name: z.string().catch(''),\n email: z.string().catch(''),\n })\n .catch({ name: '', email: '' }),\n});\n\n/** An array, or an index-keyed object with gaps (a server-filtered PHP array). */\nconst gitBranchListSchema = z\n .union([z.array(gitBranchSchema), z.record(z.string(), gitBranchSchema)])\n .transform((branches) => (Array.isArray(branches) ? branches : Object.values(branches)));\n\n/**\n * - `repository.branches` is confirmed; the top-level position is accepted but unverified.\n * - A response with neither list is rejected, not read as no branches.\n */\nexport const gitBranchesSchema = z\n .object({\n repository: z.object({ branches: gitBranchListSchema.optional() }).optional(),\n branches: gitBranchListSchema.optional(),\n })\n .check((ctx) => {\n if (ctx.value.branches ?? ctx.value.repository?.branches) return;\n\n ctx.issues.push({\n code: 'custom',\n input: ctx.value,\n message: 'The response carried no branch list.',\n });\n })\n .transform(({ repository, branches }) => branches ?? repository?.branches ?? []);\n\nexport const gitEntrypointsSchema = z.object({\n entrypoints: z.array(z.string()),\n});\n\nexport type GitAuth = z.infer<typeof gitAuthSchema>;\nexport type GetBranchesInput = z.input<typeof getBranchesInputSchema>;\nexport type GetEntrypointsInput = z.input<typeof getEntrypointsInputSchema>;\nexport type GitBranch = z.infer<typeof gitBranchSchema>;\nexport type GitEntrypoints = z.infer<typeof gitEntrypointsSchema>;\n","import type { GitAuth } from './schemas';\n\n/** Every variant is already the shape the components read, minus the discriminator. */\nconst toCredentials = (auth: GitAuth) => {\n const { type: _type, ...credentials } = auth;\n\n return credentials;\n};\n\n/**\n * Which revision the component clones.\n *\n * - `default` — no `-b`; branch listing must use it, as a stale pinned branch fails the listing.\n * - `branch` — `git clone -b <branch>`.\n */\ntype GitRevision = { revision: 'default' } | { revision: 'branch'; branch: string };\n\nconst toRevision = (rev: GitRevision) => (rev.revision === 'branch' ? { branch: rev.branch } : {});\n\nexport type GitConfigDataInput = {\n repositoryUrl: string;\n auth: GitAuth;\n} & GitRevision;\n\n/** Data apps nest their repository a level deeper, and call the URL `repository`. */\nexport const buildDataAppConfigData = ({ repositoryUrl, auth, ...rev }: GitConfigDataInput) => ({\n parameters: {\n dataApp: {\n git: {\n repository: repositoryUrl,\n ...toCredentials(auth),\n ...toRevision(rev),\n },\n },\n },\n});\n\n/** dbt transformations keep the same settings at the top of `parameters`, under `repo`. */\nexport const buildDbtConfigData = ({ repositoryUrl, auth, ...rev }: GitConfigDataInput) => ({\n parameters: {\n git: {\n repo: repositoryUrl,\n ...toCredentials(auth),\n ...toRevision(rev),\n },\n },\n});\n","import { parseOrThrow } from '../../../errors';\nimport { SyncAction } from '../constants';\nimport type { SendSyncAction } from '../syncActionsClient';\n\nimport { isDataAppFamily } from './constants';\nimport {\n type GetBranchesInput,\n getBranchesInputSchema,\n type GetEntrypointsInput,\n getEntrypointsInputSchema,\n gitBranchesSchema,\n gitEntrypointsSchema,\n} from './schemas';\nimport { buildDataAppConfigData, buildDbtConfigData } from './utils';\n\n/**\n * Git repository actions, across both component families that serve them — the data apps\n * (`git-repository`) and the dbt transformations (`gitRepository`). Which action name and which\n * `configData` shape a call uses is resolved from `componentId`; see `./constants`.\n */\nexport const createGit = (sendSyncAction: SendSyncAction) => {\n const getBranches = async (input: GetBranchesInput, signal?: AbortSignal) => {\n const { componentId, repositoryUrl, auth, ...context } = parseOrThrow(\n getBranchesInputSchema,\n input,\n );\n const isDataApp = isDataAppFamily(componentId);\n const action = isDataApp ? SyncAction.DATA_APP_GIT_REPOSITORY : SyncAction.GIT_REPOSITORY;\n const buildConfigData = isDataApp ? buildDataAppConfigData : buildDbtConfigData;\n\n const data = await sendSyncAction(\n {\n ...context,\n componentId,\n action,\n configData: buildConfigData({ repositoryUrl, auth, revision: 'default' }),\n },\n { signal },\n );\n\n return parseOrThrow(gitBranchesSchema, data);\n };\n\n const getEntrypoints = async (input: GetEntrypointsInput, signal?: AbortSignal) => {\n const { componentId, repositoryUrl, auth, branch, ...context } = parseOrThrow(\n getEntrypointsInputSchema,\n input,\n );\n\n const data = await sendSyncAction(\n {\n ...context,\n componentId,\n action: SyncAction.DATA_APP_ENTRYPOINTS,\n // Data-app only — the input schema rejects every other component, so no family branch here.\n configData: buildDataAppConfigData({\n repositoryUrl,\n auth,\n ...(branch ? { revision: 'branch', branch } : { revision: 'default' }),\n }),\n },\n { signal },\n );\n\n return parseOrThrow(gitEntrypointsSchema, data);\n };\n\n return { getBranches, getEntrypoints };\n};\n","import * as z from 'zod';\n\nimport { syncActionContextSchema } from '../schemas';\n\nexport const testLookerCredentialsInputSchema = syncActionContextSchema.extend({\n credentialsId: z.string().min(1, 'Required'),\n '#token': z.string().min(1, 'Required'),\n host: z.string().min(1, 'Required'),\n});\n\n/** The component answers with a status envelope only — there is no payload to model. */\nexport const lookerCredentialsResultSchema = z.object({\n status: z.string().optional(),\n message: z.string().optional(),\n});\n\nexport type TestLookerCredentialsInput = z.infer<typeof testLookerCredentialsInputSchema>;\nexport type LookerCredentialsResult = z.infer<typeof lookerCredentialsResultSchema>;\n","import { ComponentId } from '../../../constants';\nimport { parseOrThrow } from '../../../errors';\nimport { SyncAction } from '../constants';\nimport type { SendSyncAction } from '../syncActionsClient';\n\nimport {\n lookerCredentialsResultSchema,\n type TestLookerCredentialsInput,\n testLookerCredentialsInputSchema,\n} from './schemas';\n\nexport const createLooker = (sendSyncAction: SendSyncAction) => {\n /** Registers the project's Looker credentials; throws `SyncActionError` when Looker rejects them. */\n const testCredentials = async (input: TestLookerCredentialsInput, signal?: AbortSignal) => {\n const {\n credentialsId,\n '#token': token,\n host,\n ...context\n } = parseOrThrow(testLookerCredentialsInputSchema, input);\n\n const data = await sendSyncAction(\n {\n ...context,\n action: SyncAction.TEST_LOOKER_CREDENTIALS,\n componentId: ComponentId.WR_LOOKER_V2,\n configData: { parameters: { looker: { credentialsId, '#token': token, host } } },\n },\n { signal },\n );\n\n return parseOrThrow(lookerCredentialsResultSchema, data);\n };\n\n return { testCredentials };\n};\n","import * as z from 'zod';\n\n/** The OAuth broker's credentials for one configuration, under the keys the components read. */\nexport const oauthCredentialsSchema = z.object({\n appKey: z.string().min(1, 'Required'),\n '#data': z.string().min(1, 'Required'),\n '#appSecret': z.string().min(1, 'Required'),\n});\n\nexport type OauthCredentials = z.infer<typeof oauthCredentialsSchema>;\n\n/** The `configData.authorization` block every OAuth-backed component expects. */\nexport const buildOauthAuthorization = (credentials: OauthCredentials) => ({\n oauth_api: { credentials },\n});\n","import * as z from 'zod';\n\nimport { ComponentId } from '../../../constants';\nimport { syncActionContextSchema } from '../schemas';\nimport { oauthCredentialsSchema } from '../utils/oauth';\n\nconst oneDriveInputSchema = syncActionContextSchema.extend({\n credentials: oauthCredentialsSchema,\n});\n\nexport const oneDriveSearchFilesInputSchema = oneDriveInputSchema.extend({\n search: z.string().min(1, 'Required'),\n});\n\nexport const oneDriveGetWorksheetsInputSchema = oneDriveInputSchema.extend({\n componentId: z.enum([ComponentId.EX_ONEDRIVE, ComponentId.WR_ONEDRIVE]),\n driveId: z.string().min(1, 'Required'),\n fileId: z.string().min(1, 'Required'),\n});\n\nexport const oneDriveCreateWorkbookInputSchema = oneDriveInputSchema.extend({\n path: z.string().min(1, 'Required'),\n});\n\nexport const oneDriveCreateWorksheetInputSchema = oneDriveInputSchema.extend({\n driveId: z.string().min(1, 'Required'),\n fileId: z.string().min(1, 'Required'),\n name: z.string().min(1, 'Required'),\n});\n\nconst oneDriveFileSchema = z.object({\n driveId: z.string(),\n fileId: z.string(),\n name: z.string(),\n /** `null` when the component resolved no folder for the file. */\n path: z.string().nullable(),\n});\n\nconst oneDriveWorksheetSchema = z.object({\n driveId: z.string(),\n fileId: z.string(),\n worksheetId: z.string(),\n name: z.string(),\n /** `name`, suffixed with ` (hidden)` for a hidden worksheet. */\n title: z.string(),\n position: z.number(),\n visible: z.boolean(),\n});\n\nexport const oneDriveSearchFilesResultSchema = z.object({\n files: z.array(oneDriveFileSchema),\n});\n\nexport const oneDriveGetWorksheetsResultSchema = z.object({\n worksheets: z.array(oneDriveWorksheetSchema),\n});\n\nexport const oneDriveCreateWorkbookResultSchema = z.object({\n file: z.object({\n driveId: z.string(),\n fileId: z.string(),\n }),\n});\n\nexport const oneDriveCreateWorksheetResultSchema = z.object({\n worksheet: z.object({\n driveId: z.string(),\n fileId: z.string(),\n worksheetId: z.string(),\n }),\n});\n\nexport type OneDriveSearchFilesInput = z.infer<typeof oneDriveSearchFilesInputSchema>;\nexport type OneDriveGetWorksheetsInput = z.infer<typeof oneDriveGetWorksheetsInputSchema>;\nexport type OneDriveCreateWorkbookInput = z.infer<typeof oneDriveCreateWorkbookInputSchema>;\nexport type OneDriveCreateWorksheetInput = z.infer<typeof oneDriveCreateWorksheetInputSchema>;\nexport type OneDriveFile = z.infer<typeof oneDriveFileSchema>;\nexport type OneDriveWorksheet = z.infer<typeof oneDriveWorksheetSchema>;\n","import { ComponentId } from '../../../constants';\nimport { parseOrThrow } from '../../../errors';\nimport { SyncAction } from '../constants';\nimport type { SendSyncAction } from '../syncActionsClient';\nimport { buildOauthAuthorization } from '../utils/oauth';\n\nimport {\n type OneDriveCreateWorkbookInput,\n oneDriveCreateWorkbookInputSchema,\n oneDriveCreateWorkbookResultSchema,\n type OneDriveCreateWorksheetInput,\n oneDriveCreateWorksheetInputSchema,\n oneDriveCreateWorksheetResultSchema,\n type OneDriveGetWorksheetsInput,\n oneDriveGetWorksheetsInputSchema,\n oneDriveGetWorksheetsResultSchema,\n type OneDriveSearchFilesInput,\n oneDriveSearchFilesInputSchema,\n oneDriveSearchFilesResultSchema,\n} from './schemas';\n\nexport const createOneDrive = (sendSyncAction: SendSyncAction) => {\n const searchFiles = async (input: OneDriveSearchFilesInput, signal?: AbortSignal) => {\n const { credentials, search, ...context } = parseOrThrow(oneDriveSearchFilesInputSchema, input);\n\n const data = await sendSyncAction(\n {\n ...context,\n action: SyncAction.ONEDRIVE_SEARCH,\n componentId: ComponentId.EX_ONEDRIVE,\n configData: {\n parameters: { workbook: { search } },\n authorization: buildOauthAuthorization(credentials),\n },\n },\n { signal },\n );\n\n return parseOrThrow(oneDriveSearchFilesResultSchema, data).files;\n };\n\n const getWorksheets = async (input: OneDriveGetWorksheetsInput, signal?: AbortSignal) => {\n const { credentials, driveId, fileId, ...context } = parseOrThrow(\n oneDriveGetWorksheetsInputSchema,\n input,\n );\n\n const data = await sendSyncAction(\n {\n ...context,\n action: SyncAction.ONEDRIVE_GET_WORKSHEETS,\n configData: {\n parameters: { workbook: { driveId, fileId } },\n authorization: buildOauthAuthorization(credentials),\n },\n },\n { signal },\n );\n\n return parseOrThrow(oneDriveGetWorksheetsResultSchema, data).worksheets;\n };\n\n /** Throws `SyncActionError` when a workbook already exists at `path`. */\n const createWorkbook = async (input: OneDriveCreateWorkbookInput, signal?: AbortSignal) => {\n const { credentials, path, ...context } = parseOrThrow(\n oneDriveCreateWorkbookInputSchema,\n input,\n );\n\n const data = await sendSyncAction(\n {\n ...context,\n action: SyncAction.ONEDRIVE_CREATE_WORKBOOK,\n componentId: ComponentId.WR_ONEDRIVE,\n configData: {\n parameters: { workbook: { path } },\n authorization: buildOauthAuthorization(credentials),\n },\n },\n { signal },\n );\n\n return parseOrThrow(oneDriveCreateWorkbookResultSchema, data).file;\n };\n\n /** Throws `SyncActionError` when the workbook already has a worksheet called `name`. */\n const createWorksheet = async (input: OneDriveCreateWorksheetInput, signal?: AbortSignal) => {\n const { credentials, driveId, fileId, name, ...context } = parseOrThrow(\n oneDriveCreateWorksheetInputSchema,\n input,\n );\n\n const data = await sendSyncAction(\n {\n ...context,\n action: SyncAction.ONEDRIVE_CREATE_WORKSHEET,\n componentId: ComponentId.WR_ONEDRIVE,\n configData: {\n parameters: { workbook: { driveId, fileId }, worksheet: { name } },\n authorization: buildOauthAuthorization(credentials),\n },\n },\n { signal },\n );\n\n return parseOrThrow(oneDriveCreateWorksheetResultSchema, data).worksheet;\n };\n\n return { searchFiles, getWorksheets, createWorkbook, createWorksheet };\n};\n","import * as z from 'zod';\n\nexport const sshKeyPairSchema = z.object({\n status: z.literal('success'),\n public: z.string(),\n private: z.string(),\n});\n\nexport type SshKeyPair = z.infer<typeof sshKeyPairSchema>;\n","import { ComponentId } from '../../../constants';\nimport { parseOrThrow } from '../../../errors';\nimport { SyncAction } from '../constants';\nimport { type SyncActionContext, syncActionContextSchema } from '../schemas';\nimport type { SendSyncAction } from '../syncActionsClient';\n\nimport { sshKeyPairSchema } from './schemas';\n\nexport const createSshKeys = (sendSyncAction: SendSyncAction) => {\n /** Generates a new 4096-bit RSA key pair; the component keeps no copy. */\n const generate = async (input: SyncActionContext, signal?: AbortSignal) => {\n const context = parseOrThrow(syncActionContextSchema, input);\n\n const data = await sendSyncAction(\n {\n ...context,\n action: SyncAction.SSH_KEYS_GENERATE,\n componentId: ComponentId.SSH_KEYGEN_V2,\n configData: {},\n },\n { signal },\n );\n\n return parseOrThrow(sshKeyPairSchema, data);\n };\n\n return { generate };\n};\n","import { parseOrThrow } from '../../errors';\nimport type { ValidateStatusFn } from '../../fetchClient';\nimport { createGenericFetchClient, createOpenapiFetchClient } from '../../fetchClient';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { syncActionValidateStatus } from './utils/response';\nimport { createApify } from './apify';\nimport { SyncAction } from './constants';\nimport { createDbt } from './dbt';\nimport { createFlowMigration } from './flowMigration';\nimport { createGit } from './git';\nimport { createLooker } from './looker';\nimport { createOneDrive } from './oneDrive';\nimport { type SyncActionBody, syncActionBodySchema } from './schemas';\nimport { createSshKeys } from './sshKeys';\nimport type { EnrollMFAInput, PostActionsBodyRaw } from './types';\n\nexport type SendSyncActionOptions = {\n signal?: AbortSignal;\n /** Replaces `syncActionValidateStatus` for this request; delegate to it for anything else. */\n validateStatus?: ValidateStatusFn;\n};\n\nconst createSendSyncAction = (client: SyncActionClient) => {\n return async (body: SyncActionBody, options: SendSyncActionOptions = {}) => {\n const { data } = await client.post(\n '/actions',\n // Generated `configData: Record<string, never>` is unsatisfiable; the schema is the contract.\n { body: parseOrThrow(syncActionBodySchema, body) as unknown as PostActionsBodyRaw },\n options,\n );\n\n return data;\n };\n};\n\nexport type SendSyncAction = ReturnType<typeof createSendSyncAction>;\ntype SyncActionClient = ReturnType<typeof createOpenapiFetchClient<paths>>;\n\nexport const createSyncActionsClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n validateStatus: syncActionValidateStatus,\n });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n const sendSyncAction = createSendSyncAction(client);\n\n const enrollMFA = ({ email, ...rest }: EnrollMFAInput, signal?: AbortSignal) => {\n return sendSyncAction(\n {\n ...rest,\n action: SyncAction.ENROLL_MFA,\n configData: {\n parameters: {\n user: {\n email,\n },\n },\n },\n },\n { signal },\n );\n };\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 sendSyncAction,\n enrollMFA,\n apify: createApify(sendSyncAction),\n dbt: createDbt(sendSyncAction),\n flowMigration: createFlowMigration(sendSyncAction),\n git: createGit(sendSyncAction),\n looker: createLooker(sendSyncAction),\n oneDrive: createOneDrive(sendSyncAction),\n sshKeys: createSshKeys(sendSyncAction),\n };\n};\n"],"mappings":";;;;;;;;;;;AAYA,MAAM,eAAe,SACnB,OAAO,SAAS,YAAY,SAAS,OAAQ,OAA+B;AAE9E,MAAM,YAAY,UAAoB,OAAO,UAAU,YAAY,QAAQ,QAAQ,KAAA;AACnF,MAAM,YAAY,UAAoB,OAAO,UAAU,WAAW,QAAQ,KAAA;;;;;;;AAQ1E,MAAa,4BAA8C,gBAAgB;CACzE,MAAM,OAAO,YAAY,YAAY,IAAI;CAEzC,IAAI,MAAM,WAAW,SACnB,MAAM,IAAIA,wBAAAA,gBACR,SAAS,KAAK,OAAO,KAAK,SAAS,KAAK,KAAK,KAAK,YAAY,SAAS,YACvE;EACE,aAAa,SAAS,KAAK,WAAW;EACtC,MAAM,SAAS,KAAK,IAAI;EACxB,MAAM,YAAY;CACpB,CACF;CAGF,OAAOC,0BAAAA,sBAAsB,WAAW;AAC1C;;;ACvCA,MAAa,aAAa;CACxB,yBAAyB;CACzB,sBAAsB;CACtB,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,YAAY;CACZ,wBAAwB;CACxB,yBAAyB;CACzB,aAAa;CACb,YAAY;CACZ,yBAAyB;CACzB,mBAAmB;CACnB,iBAAiB;CACjB,yBAAyB;CACzB,0BAA0B;CAC1B,2BAA2B;AAC7B;;;;ACdA,MAAa,0BAA0BC,IAAE,OAAO;;CAE9C,UAAUA,IAAE,OAAO,CAAC,CAAC,IAAI,GAAG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aAAa,WAA8B;CAC5F,MAAM,SAASC,iCAAAA,yBAAgC;EAC7C;EACA;EACA,SAASC,aAAAA,kBAAkB,IAAI;EAC/B,gBAAgB;CAClB,CAAC;CACD,MAAM,gBAAgBC,iCAAAA,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,iBAAiB,qBAAqB,MAAM;CAElD,MAAM,aAAa,EAAE,OAAO,GAAG,QAAwB,WAAyB;EAC9E,OAAO,eACL;GACE,GAAG;GACH,QAAQ,WAAW;GACnB,YAAY,EACV,YAAY,EACV,MAAM,EACJ,MACF,EACF,EACF;EACF,GACA,EAAE,OAAO,CACX;CACF;CAEA,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,OAAO,YAAY,cAAc;EACjC,KAAK,UAAU,cAAc;EAC7B,eAAe,oBAAoB,cAAc;EACjD,KAAK,UAAU,cAAc;EAC7B,QAAQ,aAAa,cAAc;EACnC,UAAU,eAAe,cAAc;EACvC,SAAS,cAAc,cAAc;CACvC;AACF"}
@@ -1,4 +1,4 @@
1
- const require_concurrent = require("./concurrent-tbiIa0UL.cjs");
1
+ const require_concurrent = require("./concurrent-CdVfR1N5.cjs");
2
2
  const require_generateUUID = require("./generateUUID-C6qKBPIv.cjs");
3
3
  //#region src/utils/keboolaUID.ts
4
4
  const KEBOOLA_OBJECT_ID_DELIMITER = "--";
@@ -172,4 +172,4 @@ Object.defineProperty(exports, "keboolaUID", {
172
172
  }
173
173
  });
174
174
 
175
- //# sourceMappingURL=tag-CsoOZWB_.cjs.map
175
+ //# sourceMappingURL=tag-DHS_soa7.cjs.map