@keboola/api-client 32.0.0 → 33.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 (377) hide show
  1. package/AGENTS.md +80 -2
  2. package/API-SURFACE.md +4 -1
  3. package/CHANGELOG.md +222 -0
  4. package/dist/{ManagementClientAuthError-B-tyPlyG.cjs → ManagementClientAuthError-DqeXL8nv.cjs} +2 -2
  5. package/dist/{ManagementClientAuthError-B-tyPlyG.cjs.map → ManagementClientAuthError-DqeXL8nv.cjs.map} +1 -1
  6. package/dist/{ManagementClientAuthError-BAFNvOdf.js → ManagementClientAuthError-iKbBugKC.js} +2 -2
  7. package/dist/{ManagementClientAuthError-BAFNvOdf.js.map → ManagementClientAuthError-iKbBugKC.js.map} +1 -1
  8. package/dist/ai/index.cjs +2 -2
  9. package/dist/ai/index.d.cts +2 -2
  10. package/dist/ai/index.d.ts +2 -2
  11. package/dist/ai/index.js +2 -2
  12. package/dist/ai/types.d.cts +1 -1
  13. package/dist/ai/types.d.ts +1 -1
  14. package/dist/{appLogs-DTLE6HTy.js → appLogs-D72eD8vP.js} +2 -2
  15. package/dist/{appLogs-DTLE6HTy.js.map → appLogs-D72eD8vP.js.map} +1 -1
  16. package/dist/{appLogs-NIEDTDHf.cjs → appLogs-D8K0VeNM.cjs} +2 -2
  17. package/dist/{appLogs-NIEDTDHf.cjs.map → appLogs-D8K0VeNM.cjs.map} +1 -1
  18. package/dist/{appLogs-BAaaGYKg.d.cts → appLogs-Q4A7A_Fc.d.cts} +2 -2
  19. package/dist/{appLogs-DX_WTBCa.d.ts → appLogs-u0XMZLjS.d.ts} +2 -2
  20. package/dist/apps/index.cjs +3 -3
  21. package/dist/apps/index.d.cts +3 -3
  22. package/dist/apps/index.d.ts +3 -3
  23. package/dist/apps/index.js +3 -3
  24. package/dist/apps/types.d.cts +2 -2
  25. package/dist/apps/types.d.ts +2 -2
  26. package/dist/assets/index.cjs +1 -1
  27. package/dist/assets/index.d.cts +1 -1
  28. package/dist/assets/index.d.ts +1 -1
  29. package/dist/assets/index.js +1 -1
  30. package/dist/auth/index.cjs +1 -1
  31. package/dist/auth/index.d.cts +1 -1
  32. package/dist/auth/index.d.ts +1 -1
  33. package/dist/auth/index.js +1 -1
  34. package/dist/auth/types.d.cts +2 -2
  35. package/dist/auth/types.d.ts +2 -2
  36. package/dist/{auth-DP-6TFiM.cjs → auth-C2_JLisH.cjs} +2 -2
  37. package/dist/{auth-DP-6TFiM.cjs.map → auth-C2_JLisH.cjs.map} +1 -1
  38. package/dist/{auth-DtbQaeDj.js → auth-CE9rQV3-.js} +2 -2
  39. package/dist/{auth-DtbQaeDj.js.map → auth-CE9rQV3-.js.map} +1 -1
  40. package/dist/{authClient--BtZgjIc.js → authClient-DEyqR7GW.js} +43 -9
  41. package/dist/authClient-DEyqR7GW.js.map +1 -0
  42. package/dist/{authClient-DhfzOUaa.d.cts → authClient-DZ_8lvdJ.d.cts} +6 -6
  43. package/dist/{authClient-CtfyVHRD.d.ts → authClient-DwT6xdg5.d.ts} +6 -6
  44. package/dist/{authClient-b7uec7sw.cjs → authClient-IwQ9Ti0J.cjs} +43 -9
  45. package/dist/authClient-IwQ9Ti0J.cjs.map +1 -0
  46. package/dist/chat/index.cjs +3 -3
  47. package/dist/chat/index.d.cts +2 -2
  48. package/dist/chat/index.d.ts +2 -2
  49. package/dist/chat/index.js +3 -3
  50. package/dist/chat/types.d.cts +1 -1
  51. package/dist/chat/types.d.ts +1 -1
  52. package/dist/{createFetchClient-BbG46bL0.js → createFetchClient-DdyZMhxO.js} +3 -2
  53. package/dist/{createFetchClient-BbG46bL0.js.map → createFetchClient-DdyZMhxO.js.map} +1 -1
  54. package/dist/{createFetchClient-BRfTjBLV.cjs → createFetchClient-DvZvD31l.cjs} +8 -1
  55. package/dist/{createFetchClient-BRfTjBLV.cjs.map → createFetchClient-DvZvD31l.cjs.map} +1 -1
  56. package/dist/{createGenericFetchClient-BHYQLZhe.js → createGenericFetchClient-MQeLRiNW.js} +2 -2
  57. package/dist/{createGenericFetchClient-BHYQLZhe.js.map → createGenericFetchClient-MQeLRiNW.js.map} +1 -1
  58. package/dist/{createGenericFetchClient-DHs-i7_O.cjs → createGenericFetchClient-qfCZlCTv.cjs} +2 -2
  59. package/dist/{createGenericFetchClient-DHs-i7_O.cjs.map → createGenericFetchClient-qfCZlCTv.cjs.map} +1 -1
  60. package/dist/{createOpenapiFetchClient-CyDUFxHB.cjs → createOpenapiFetchClient-C57Ljzi6.cjs} +2 -2
  61. package/dist/{createOpenapiFetchClient-CyDUFxHB.cjs.map → createOpenapiFetchClient-C57Ljzi6.cjs.map} +1 -1
  62. package/dist/{createOpenapiFetchClient-Bn6_Pn0H.js → createOpenapiFetchClient-E7OIVkYv.js} +2 -2
  63. package/dist/{createOpenapiFetchClient-Bn6_Pn0H.js.map → createOpenapiFetchClient-E7OIVkYv.js.map} +1 -1
  64. package/dist/{credential-d2RDcXRB.js → credential-Bxv7yxOZ.js} +7 -4
  65. package/dist/credential-Bxv7yxOZ.js.map +1 -0
  66. package/dist/{credential-DOXH7XRS.cjs → credential-D-X5QQrM.cjs} +7 -4
  67. package/dist/credential-D-X5QQrM.cjs.map +1 -0
  68. package/dist/dataScience/index.cjs +2 -2
  69. package/dist/dataScience/index.d.cts +2 -2
  70. package/dist/dataScience/index.d.ts +2 -2
  71. package/dist/dataScience/index.js +2 -2
  72. package/dist/dataScience/types.d.cts +2 -2
  73. package/dist/dataScience/types.d.ts +2 -2
  74. package/dist/{dataScience-wexHEIue.cjs → dataScience-BPW993AG.cjs} +5 -5
  75. package/dist/{dataScience-wexHEIue.cjs.map → dataScience-BPW993AG.cjs.map} +1 -1
  76. package/dist/{dataScience-Sm8iONhP.js → dataScience-B_TA7wCB.js} +5 -5
  77. package/dist/{dataScience-Sm8iONhP.js.map → dataScience-B_TA7wCB.js.map} +1 -1
  78. package/dist/developerPortal/index.cjs +1 -1
  79. package/dist/developerPortal/index.d.cts +2 -2
  80. package/dist/developerPortal/index.d.ts +2 -2
  81. package/dist/developerPortal/index.js +1 -1
  82. package/dist/developerPortal/types.d.cts +1 -1
  83. package/dist/developerPortal/types.d.ts +1 -1
  84. package/dist/{developerPortalClient-CgTSzLoG.cjs → developerPortalClient-Db2XVB_o.cjs} +3 -3
  85. package/dist/{developerPortalClient-CgTSzLoG.cjs.map → developerPortalClient-Db2XVB_o.cjs.map} +1 -1
  86. package/dist/{developerPortalClient-DywKpDlW.js → developerPortalClient-jk46sjwP.js} +3 -3
  87. package/dist/{developerPortalClient-DywKpDlW.js.map → developerPortalClient-jk46sjwP.js.map} +1 -1
  88. package/dist/domain/permissions/index.d.cts +2 -2
  89. package/dist/domain/permissions/index.d.ts +2 -2
  90. package/dist/editor/index.cjs +2 -2
  91. package/dist/editor/index.d.cts +2 -2
  92. package/dist/editor/index.d.ts +2 -2
  93. package/dist/editor/index.js +2 -2
  94. package/dist/editor/types.d.cts +1 -1
  95. package/dist/editor/types.d.ts +1 -1
  96. package/dist/emitter-dLF1Fyfg.d.cts +11 -0
  97. package/dist/emitter-dLF1Fyfg.d.ts +11 -0
  98. package/dist/encryption/index.cjs +1 -1
  99. package/dist/encryption/index.d.cts +1 -1
  100. package/dist/encryption/index.d.ts +1 -1
  101. package/dist/encryption/index.js +1 -1
  102. package/dist/encryption/types.d.cts +1 -1
  103. package/dist/encryption/types.d.ts +1 -1
  104. package/dist/import/index.cjs +1 -1
  105. package/dist/import/index.d.cts +3 -3
  106. package/dist/import/index.d.ts +3 -3
  107. package/dist/import/index.js +1 -1
  108. package/dist/{import-SQuurg1G.js → import-2nqxQ9Rt.js} +3 -3
  109. package/dist/{import-SQuurg1G.js.map → import-2nqxQ9Rt.js.map} +1 -1
  110. package/dist/{import-C0-y1GQK.cjs → import-DJilJ6tq.cjs} +3 -3
  111. package/dist/{import-C0-y1GQK.cjs.map → import-DJilJ6tq.cjs.map} +1 -1
  112. package/dist/{index-FhKX7Cv1.d.ts → index-B0V1pJAa.d.ts} +241 -200
  113. package/dist/{index-Bg1P6Bb2.d.ts → index-B2OGaUap.d.ts} +6 -6
  114. package/dist/{index-Dbzjvy5h.d.ts → index-BjKjp3Rf.d.ts} +5 -5
  115. package/dist/{index-DeKPpYQy.d.ts → index-C7gxKoDF.d.cts} +3 -3
  116. package/dist/{index-D_7yCRKy.d.cts → index-CTd4YY8e.d.cts} +4 -4
  117. package/dist/{index-DiHHyMEo.d.cts → index-CUXEFQ7i.d.cts} +6 -6
  118. package/dist/{index-eAlN694c.d.cts → index-CVqk63at.d.ts} +3 -3
  119. package/dist/{index-Bc_hXWae.d.ts → index-C_cxKL1V.d.ts} +3 -3
  120. package/dist/{index-tKsiUarj.d.ts → index-ChMtULt4.d.ts} +4 -4
  121. package/dist/{index-Gn1H63Hk.d.cts → index-DCN2lH0v.d.cts} +4 -4
  122. package/dist/{index-Bjk-tCpG.d.cts → index-DIVvL54G.d.cts} +241 -200
  123. package/dist/{index-C7e3wBt9.d.cts → index-DLYAvSWZ.d.cts} +3 -3
  124. package/dist/{index-fHfc_VqS.d.ts → index-DQef014j.d.ts} +4 -4
  125. package/dist/{index-CeJOmN-P.d.ts → index-DVhTNwvu.d.ts} +3 -2
  126. package/dist/{index-CQrKS7PV.d.cts → index-DhVFuQDv.d.cts} +3 -2
  127. package/dist/{index-Ctqkm3Fx.d.ts → index-GNKwr7EQ.d.ts} +4 -4
  128. package/dist/{index-GDdFZCXp.d.ts → index-bB6wvw1f.d.ts} +4 -4
  129. package/dist/{index-BKh0prif.d.cts → index-exNi3I2Q.d.cts} +4 -4
  130. package/dist/{index-CXtdQ7be.d.cts → index-qOK5FtAH.d.cts} +4 -4
  131. package/dist/{index-DqOAjqxN.d.cts → index-t-a7kYnx.d.cts} +5 -5
  132. package/dist/index.cjs +303 -47
  133. package/dist/index.cjs.map +1 -1
  134. package/dist/index.d.cts +7 -6
  135. package/dist/index.d.ts +7 -6
  136. package/dist/index.js +285 -30
  137. package/dist/index.js.map +1 -1
  138. package/dist/{jobStatus-kQ9JqF8t.cjs → jobStatus-0_Y3Sr4i.cjs} +37 -20
  139. package/dist/jobStatus-0_Y3Sr4i.cjs.map +1 -0
  140. package/dist/{jobStatus-DbMupQEK.js → jobStatus-PSZJMTiA.js} +35 -18
  141. package/dist/jobStatus-PSZJMTiA.js.map +1 -0
  142. package/dist/kaiAgent/index.cjs +1 -1
  143. package/dist/kaiAgent/index.d.cts +2 -210
  144. package/dist/kaiAgent/index.d.ts +2 -210
  145. package/dist/kaiAgent/index.js +1 -1
  146. package/dist/kaiAgent/types.d.cts +1 -1
  147. package/dist/kaiAgent/types.d.ts +1 -1
  148. package/dist/{kaiAgent-4OiIK1C2.cjs → kaiAgent-CMVub6Sc.cjs} +48 -4
  149. package/dist/kaiAgent-CMVub6Sc.cjs.map +1 -0
  150. package/dist/{kaiAgent-HDaFS9BR.js → kaiAgent-CYYn0QJW.js} +48 -4
  151. package/dist/kaiAgent-CYYn0QJW.js.map +1 -0
  152. package/dist/kaiAgentClient-B2O0DF4d.d.ts +249 -0
  153. package/dist/kaiAgentClient-iCFR2tRU.d.cts +249 -0
  154. package/dist/management/index.cjs +1 -1
  155. package/dist/management/index.d.cts +1 -1
  156. package/dist/management/index.d.ts +1 -1
  157. package/dist/management/index.js +1 -1
  158. package/dist/management/types.d.cts +1 -1
  159. package/dist/management/types.d.ts +1 -1
  160. package/dist/{management-DfjwQo7z.cjs → management-DGfgKsaA.cjs} +5 -5
  161. package/dist/{management-DfjwQo7z.cjs.map → management-DGfgKsaA.cjs.map} +1 -1
  162. package/dist/{management-CIFhu1Nm.js → management-DNEKhR6a.js} +5 -5
  163. package/dist/{management-CIFhu1Nm.js.map → management-DNEKhR6a.js.map} +1 -1
  164. package/dist/metastore/index.cjs +1 -1
  165. package/dist/metastore/index.d.cts +1 -1
  166. package/dist/metastore/index.d.ts +1 -1
  167. package/dist/metastore/index.js +1 -1
  168. package/dist/metastore/types.d.cts +1 -1
  169. package/dist/metastore/types.d.ts +1 -1
  170. package/dist/{metastore-CrXkKufo.js → metastore-CjwktHvw.js} +4 -4
  171. package/dist/{metastore-CrXkKufo.js.map → metastore-CjwktHvw.js.map} +1 -1
  172. package/dist/{metastore-Dq2NS6jb.cjs → metastore-DksEte8P.cjs} +4 -4
  173. package/dist/{metastore-Dq2NS6jb.cjs.map → metastore-DksEte8P.cjs.map} +1 -1
  174. package/dist/microsoftGraph/index.cjs +2 -2
  175. package/dist/microsoftGraph/index.d.cts +2 -2
  176. package/dist/microsoftGraph/index.d.ts +2 -2
  177. package/dist/microsoftGraph/index.js +2 -2
  178. package/dist/microsoftGraph/types.d.cts +1 -1
  179. package/dist/microsoftGraph/types.d.ts +1 -1
  180. package/dist/notifications/index.cjs +3 -3
  181. package/dist/notifications/index.d.cts +2 -2
  182. package/dist/notifications/index.d.ts +2 -2
  183. package/dist/notifications/index.js +3 -3
  184. package/dist/notifications/types.d.cts +1 -1
  185. package/dist/notifications/types.d.ts +1 -1
  186. package/dist/oauth/index.cjs +1 -1
  187. package/dist/oauth/index.d.cts +2 -2
  188. package/dist/oauth/index.d.ts +2 -2
  189. package/dist/oauth/index.js +1 -1
  190. package/dist/oauth/types.d.cts +1 -1
  191. package/dist/oauth/types.d.ts +1 -1
  192. package/dist/{oauth-CFwSNz37.js → oauth-Bg5zro5S.js} +5 -5
  193. package/dist/{oauth-CFwSNz37.js.map → oauth-Bg5zro5S.js.map} +1 -1
  194. package/dist/{oauth-CkW5gln-.cjs → oauth-DFsI1TE5.cjs} +5 -5
  195. package/dist/{oauth-CkW5gln-.cjs.map → oauth-DFsI1TE5.cjs.map} +1 -1
  196. package/dist/omnisearch/index.cjs +2 -2
  197. package/dist/omnisearch/index.d.cts +2 -2
  198. package/dist/omnisearch/index.d.ts +2 -2
  199. package/dist/omnisearch/index.js +2 -2
  200. package/dist/omnisearch/types.d.cts +1 -1
  201. package/dist/omnisearch/types.d.ts +1 -1
  202. package/dist/{project-BOGaVs-q.d.ts → project-Bh954iOA.d.ts} +2 -2
  203. package/dist/{project-BnQkL8cb.d.cts → project-D25GH8zK.d.cts} +2 -2
  204. package/dist/queryService/index.cjs +1 -1
  205. package/dist/queryService/index.d.cts +1 -1
  206. package/dist/queryService/index.d.ts +1 -1
  207. package/dist/queryService/index.js +1 -1
  208. package/dist/queryService/types.d.cts +1 -1
  209. package/dist/queryService/types.d.ts +1 -1
  210. package/dist/{queryService-BLaGbpm-.cjs → queryService--t_W9PSJ.cjs} +6 -6
  211. package/dist/{queryService-BLaGbpm-.cjs.map → queryService--t_W9PSJ.cjs.map} +1 -1
  212. package/dist/{queryService-DK-jUnET.js → queryService-DX6zeAs_.js} +6 -6
  213. package/dist/{queryService-DK-jUnET.js.map → queryService-DX6zeAs_.js.map} +1 -1
  214. package/dist/queue/index.cjs +1 -1
  215. package/dist/queue/index.d.cts +3 -3
  216. package/dist/queue/index.d.ts +3 -3
  217. package/dist/queue/index.js +1 -1
  218. package/dist/queue/types.d.cts +1 -1
  219. package/dist/queue/types.d.ts +1 -1
  220. package/dist/{queue-B7TY4JLf.cjs → queue-D1_TCe0z.cjs} +5 -5
  221. package/dist/{queue-B7TY4JLf.cjs.map → queue-D1_TCe0z.cjs.map} +1 -1
  222. package/dist/{queue-DViSQ-eq.js → queue-DrLUbk98.js} +5 -5
  223. package/dist/{queue-DViSQ-eq.js.map → queue-DrLUbk98.js.map} +1 -1
  224. package/dist/scheduler/index.cjs +3 -3
  225. package/dist/scheduler/index.d.cts +2 -2
  226. package/dist/scheduler/index.d.ts +2 -2
  227. package/dist/scheduler/index.js +3 -3
  228. package/dist/scheduler/types.d.cts +1 -1
  229. package/dist/scheduler/types.d.ts +1 -1
  230. package/dist/sdk/configurations/index.d.cts +4 -4
  231. package/dist/sdk/configurations/index.d.ts +4 -4
  232. package/dist/sdk/developerPortal/index.cjs +5 -5
  233. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  234. package/dist/sdk/developerPortal/index.d.cts +5 -4
  235. package/dist/sdk/developerPortal/index.d.ts +5 -4
  236. package/dist/sdk/developerPortal/index.js +4 -4
  237. package/dist/sdk/queryService/index.cjs +1 -1
  238. package/dist/sdk/queryService/index.d.cts +1 -1
  239. package/dist/sdk/queryService/index.d.ts +1 -1
  240. package/dist/sdk/queryService/index.js +1 -1
  241. package/dist/sdk/semanticLayer/index.cjs +163 -74
  242. package/dist/sdk/semanticLayer/index.cjs.map +1 -1
  243. package/dist/sdk/semanticLayer/index.d.cts +16 -13
  244. package/dist/sdk/semanticLayer/index.d.ts +16 -13
  245. package/dist/sdk/semanticLayer/index.js +158 -75
  246. package/dist/sdk/semanticLayer/index.js.map +1 -1
  247. package/dist/sdk/semanticLayer/types.d.cts +2 -2
  248. package/dist/sdk/semanticLayer/types.d.ts +2 -2
  249. package/dist/sdk/storage/index.d.cts +1 -1
  250. package/dist/sdk/storage/index.d.ts +1 -1
  251. package/dist/sdk/tag/index.d.cts +2 -2
  252. package/dist/sdk/tag/index.d.ts +2 -2
  253. package/dist/sdk/tag/types.d.cts +1 -1
  254. package/dist/sdk/tag/types.d.ts +1 -1
  255. package/dist/sdk/vault/index.d.cts +1 -1
  256. package/dist/sdk/vault/index.d.ts +1 -1
  257. package/dist/status/index.cjs +1 -1
  258. package/dist/status/index.d.cts +1 -1
  259. package/dist/status/index.d.ts +1 -1
  260. package/dist/status/index.js +1 -1
  261. package/dist/storage/index.cjs +4 -4
  262. package/dist/storage/index.d.cts +2 -2
  263. package/dist/storage/index.d.ts +2 -2
  264. package/dist/storage/index.js +4 -4
  265. package/dist/storage/types.d.cts +2 -2
  266. package/dist/storage/types.d.ts +2 -2
  267. package/dist/{storage-kgxscFEg.js → storage--cVaecFq.js} +7 -7
  268. package/dist/{storage-kgxscFEg.js.map → storage--cVaecFq.js.map} +1 -1
  269. package/dist/{storage-CihHwZ7z.cjs → storage-DexWot8H.cjs} +7 -7
  270. package/dist/{storage-CihHwZ7z.cjs.map → storage-DexWot8H.cjs.map} +1 -1
  271. package/dist/store-C9FQCHGe.js +74 -0
  272. package/dist/store-C9FQCHGe.js.map +1 -0
  273. package/dist/store-xS-Cu_VS.cjs +85 -0
  274. package/dist/store-xS-Cu_VS.cjs.map +1 -0
  275. package/dist/stream/index.cjs +3 -3
  276. package/dist/stream/index.d.cts +2 -2
  277. package/dist/stream/index.d.ts +2 -2
  278. package/dist/stream/index.js +3 -3
  279. package/dist/stream/types.d.cts +1 -1
  280. package/dist/stream/types.d.ts +1 -1
  281. package/dist/syncActions/index.cjs +1 -1
  282. package/dist/syncActions/index.d.cts +1 -1
  283. package/dist/syncActions/index.d.ts +1 -1
  284. package/dist/syncActions/index.js +1 -1
  285. package/dist/syncActions/types.d.cts +1 -1
  286. package/dist/syncActions/types.d.ts +1 -1
  287. package/dist/{syncActions-B75t0NwP.js → syncActions-CkMHM-jB.js} +5 -5
  288. package/dist/{syncActions-B75t0NwP.js.map → syncActions-CkMHM-jB.js.map} +1 -1
  289. package/dist/{syncActions-CevF_TEb.cjs → syncActions-DQq_A9v6.cjs} +5 -5
  290. package/dist/{syncActions-CevF_TEb.cjs.map → syncActions-DQq_A9v6.cjs.map} +1 -1
  291. package/dist/telemetry/index.cjs +1 -1
  292. package/dist/telemetry/index.d.cts +2 -2
  293. package/dist/telemetry/index.d.ts +2 -2
  294. package/dist/telemetry/index.js +1 -1
  295. package/dist/{telemetry-DwlSLVAU.cjs → telemetry-CAu1Qt7B.cjs} +3 -3
  296. package/dist/{telemetry-DwlSLVAU.cjs.map → telemetry-CAu1Qt7B.cjs.map} +1 -1
  297. package/dist/{telemetry-FXpodtJN.js → telemetry-Ca6j0i9w.js} +3 -3
  298. package/dist/{telemetry-FXpodtJN.js.map → telemetry-Ca6j0i9w.js.map} +1 -1
  299. package/dist/{types-CGH_lfxS.d.cts → types-0xa_7cgo.d.cts} +2 -2
  300. package/dist/{types-CyiRYRVq.d.cts → types-3p0adMdd.d.cts} +3 -3
  301. package/dist/{types-BlCoTm7n.d.ts → types-6ThDkaJw.d.ts} +2 -2
  302. package/dist/{types-CkcMoXRk.d.ts → types-6hh_3SZs.d.ts} +3 -3
  303. package/dist/{types-dybUhlU2.d.ts → types-6ku2LeX6.d.ts} +2 -2
  304. package/dist/{types-BH9ljNmj.d.cts → types-B42HhyB0.d.cts} +2 -2
  305. package/dist/{types-C1vhYcic.d.cts → types-B4_MM5Wf.d.cts} +2 -2
  306. package/dist/{types-DlbiVsVo.d.cts → types-B6JJCta-.d.cts} +2 -2
  307. package/dist/{types-sVYo0o9_.d.ts → types-B6lOyHY_.d.ts} +3 -3
  308. package/dist/{types-BZBdLUpH.d.ts → types-B7O5koJb.d.cts} +2 -2
  309. package/dist/{types-De_DA2ga.d.ts → types-BHI8Lin9.d.ts} +2 -2
  310. package/dist/{types-Cj4bLPp5.d.cts → types-BO3sCD0a.d.cts} +37 -6
  311. package/dist/{types-zA3H84SM.d.cts → types-BOnf68s5.d.cts} +2 -2
  312. package/dist/{types-CPanB0p7.d.cts → types-BS5M67xm.d.cts} +3 -3
  313. package/dist/{types-COIsNoTQ.d.cts → types-BT46XIgn.d.cts} +2 -2
  314. package/dist/types-BUYqdN7B.d.ts +205 -0
  315. package/dist/{types-D-qI9ne4.d.ts → types-BYKHr5bR.d.ts} +2 -2
  316. package/dist/{types-D1uloiuY.d.cts → types-Be3Wgn1U.d.cts} +2 -2
  317. package/dist/{types-BTbczawY.d.ts → types-BgVKG4vg.d.ts} +2 -2
  318. package/dist/{types-CyHZ1ZQe.d.ts → types-C2gzqtjf.d.ts} +2 -2
  319. package/dist/{types-Av2egS_l.d.ts → types-C35GWNmq.d.ts} +2 -2
  320. package/dist/{types-D6jKxUv_.d.ts → types-C4mr0lop.d.ts} +35 -3
  321. package/dist/{types-BI2jI-3-.d.cts → types-CCr1-9Q6.d.cts} +3 -3
  322. package/dist/{types-DeSd3gqW.d.ts → types-CHCM9oNk.d.ts} +3 -3
  323. package/dist/{types-BMQW-2Yw.d.ts → types-CNQdtffE.d.ts} +729 -79
  324. package/dist/{types-MbcIiKDI.d.cts → types-CPaluTW7.d.cts} +3 -3
  325. package/dist/{types-CXTqFYah.d.ts → types-CSc8NQCY.d.ts} +37 -6
  326. package/dist/{types-Cz1dj_TM.d.ts → types-C_ilZZkQ.d.ts} +2 -2
  327. package/dist/{types-EJEoI3ZK.d.ts → types-CaMfshWX.d.ts} +2 -2
  328. package/dist/{types-BoV9M5Xg.d.cts → types-Ccgbipp4.d.cts} +2 -2
  329. package/dist/{types-DuiUN0h8.d.ts → types-Cpjk0-ta.d.ts} +2 -2
  330. package/dist/{types-GuWtMCMn.d.cts → types-CrH4H8M4.d.cts} +2 -2
  331. package/dist/{types-DNXC_-fA.d.cts → types-Cu-0LT4f.d.cts} +2 -2
  332. package/dist/{types-BptQ7jpP.d.cts → types-CxmV36rp.d.cts} +2 -2
  333. package/dist/{types-DwpRt3e9.d.ts → types-D-98DirB.d.ts} +2 -2
  334. package/dist/{types-BV2BDccJ.d.cts → types-D6ocCyGh.d.cts} +35 -3
  335. package/dist/{types-COc-nind.d.cts → types-D7Wgcp0u.d.ts} +2 -2
  336. package/dist/{types-ByWD2oeV.d.ts → types-DAzmGzlb.d.ts} +2 -2
  337. package/dist/{types-BREGN3qo.d.cts → types-DHI0g51U.d.cts} +2 -2
  338. package/dist/{types-Dfc58bPE.d.ts → types-DHqIJKwx.d.ts} +2 -2
  339. package/dist/types-DONxb2-c.d.cts +205 -0
  340. package/dist/{types-Di8VIZwQ.d.ts → types-DTTC70Ac.d.ts} +2 -2
  341. package/dist/{types-C2CLlR4i.d.ts → types-DlvZeert.d.ts} +2 -2
  342. package/dist/{types-cDU_J45_.d.cts → types-DqniGeDJ.d.cts} +2 -2
  343. package/dist/{types-iNlsdRkx.d.cts → types-E3VT-zYz.d.cts} +729 -79
  344. package/dist/{types-B4jdPHoL.d.cts → types-Jt0ipbSm.d.cts} +2 -2
  345. package/dist/{types-Bpnpa2Wt.d.ts → types-Ur37iOqb.d.ts} +3 -3
  346. package/dist/{types-BnaAo7xn.d.ts → types-ZGAWRIBW.d.ts} +2 -2
  347. package/dist/{types-CvkqEvhv.d.cts → types-bY6K3y0O.d.cts} +2 -2
  348. package/dist/{types-CpALS017.d.ts → types-k4R8gQ4U.d.ts} +2 -2
  349. package/dist/{types-CcuG9cid.d.cts → types-sO52qIAA.d.cts} +2 -2
  350. package/dist/{types-CJHi0zdD.d.cts → types-sp1rJY9E.d.cts} +2 -2
  351. package/dist/{validateConnectionStatus-V9q6Nl6u.cjs → validateConnectionStatus-24zqIQ0p.cjs} +2 -2
  352. package/dist/{validateConnectionStatus-V9q6Nl6u.cjs.map → validateConnectionStatus-24zqIQ0p.cjs.map} +1 -1
  353. package/dist/{validateConnectionStatus-BrLXkoSI.js → validateConnectionStatus-DhkWg6Eq.js} +2 -2
  354. package/dist/{validateConnectionStatus-BrLXkoSI.js.map → validateConnectionStatus-DhkWg6Eq.js.map} +1 -1
  355. package/dist/vault/index.cjs +4 -4
  356. package/dist/vault/index.d.cts +1 -1
  357. package/dist/vault/index.d.ts +1 -1
  358. package/dist/vault/index.js +4 -4
  359. package/dist/vault/types.d.cts +1 -1
  360. package/dist/vault/types.d.ts +1 -1
  361. package/package.json +2 -2
  362. package/surface/auth.md +2 -2
  363. package/surface/kaiAgent.md +5 -2
  364. package/dist/authClient--BtZgjIc.js.map +0 -1
  365. package/dist/authClient-b7uec7sw.cjs.map +0 -1
  366. package/dist/createStore-BNiCRQXa.js +0 -148
  367. package/dist/createStore-BNiCRQXa.js.map +0 -1
  368. package/dist/createStore-MQbboXcB.cjs +0 -177
  369. package/dist/createStore-MQbboXcB.cjs.map +0 -1
  370. package/dist/credential-DOXH7XRS.cjs.map +0 -1
  371. package/dist/credential-d2RDcXRB.js.map +0 -1
  372. package/dist/jobStatus-DbMupQEK.js.map +0 -1
  373. package/dist/jobStatus-kQ9JqF8t.cjs.map +0 -1
  374. package/dist/kaiAgent-4OiIK1C2.cjs.map +0 -1
  375. package/dist/kaiAgent-HDaFS9BR.js.map +0 -1
  376. package/dist/types-B2vmg_UF.d.cts +0 -148
  377. package/dist/types-RfaldD4P.d.ts +0 -148
@@ -0,0 +1,74 @@
1
+ //#region src/utils/store/emitter.ts
2
+ const createEmitter = () => {
3
+ const listeners = /* @__PURE__ */ new Set();
4
+ const queue = [];
5
+ let draining = false;
6
+ const drain = (event) => {
7
+ [...listeners].forEach((listener) => {
8
+ if (!listeners.has(listener)) return;
9
+ try {
10
+ listener(event);
11
+ } catch (error) {
12
+ console.error("A subscriber threw while handling an event", error);
13
+ }
14
+ });
15
+ };
16
+ const emit = (event) => {
17
+ queue.push(event);
18
+ if (draining) return;
19
+ draining = true;
20
+ try {
21
+ for (const queued of queue) drain(queued);
22
+ } finally {
23
+ queue.length = 0;
24
+ draining = false;
25
+ }
26
+ };
27
+ const subscribe = (listener) => {
28
+ listeners.add(listener);
29
+ return () => {
30
+ listeners.delete(listener);
31
+ };
32
+ };
33
+ const clear = () => {
34
+ listeners.clear();
35
+ queue.length = 0;
36
+ };
37
+ return {
38
+ emit,
39
+ subscribe,
40
+ clear
41
+ };
42
+ };
43
+ //#endregion
44
+ //#region src/utils/store/store.ts
45
+ const createStore = (initial) => {
46
+ const changes = createEmitter();
47
+ let value = initial;
48
+ const get = () => value;
49
+ const subscribe = changes.subscribe;
50
+ const dispose = () => {
51
+ value = initial;
52
+ changes.clear();
53
+ };
54
+ const readable = {
55
+ get,
56
+ subscribe,
57
+ dispose
58
+ };
59
+ const set = (next) => {
60
+ if (Object.is(next, value)) return;
61
+ value = next;
62
+ changes.emit(value);
63
+ };
64
+ const asReadable = () => readable;
65
+ return {
66
+ ...readable,
67
+ set,
68
+ asReadable
69
+ };
70
+ };
71
+ //#endregion
72
+ export { createEmitter as n, createStore as t };
73
+
74
+ //# sourceMappingURL=store-C9FQCHGe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-C9FQCHGe.js","names":[],"sources":["../src/utils/store/emitter.ts","../src/utils/store/store.ts"],"sourcesContent":["export type Listener<T> = (value: T) => void;\n\nexport type Emitter<T> = {\n emit: (event: T) => void;\n subscribe: (listener: Listener<T>) => () => void;\n clear: () => void;\n};\n\nexport const createEmitter = <T>(): Emitter<T> => {\n const listeners = new Set<Listener<T>>();\n const queue: T[] = [];\n let draining = false;\n\n const drain = (event: T) => {\n // `emitter.subscribe(() => emitter.subscribe(late))` — `late` hears the next event, not current.\n const snapshot = [...listeners];\n\n snapshot.forEach((listener) => {\n // `store.subscribe(() => store.dispose())` — a mid-pass `clear()` stops the ones behind it.\n if (!listeners.has(listener)) return;\n\n try {\n listener(event);\n } catch (error) {\n console.error('A subscriber threw while handling an event', error);\n }\n });\n };\n\n const emit = (event: T) => {\n queue.push(event);\n if (draining) return;\n\n draining = true;\n try {\n for (const queued of queue) drain(queued);\n } finally {\n queue.length = 0;\n draining = false;\n }\n };\n\n const subscribe = (listener: Listener<T>) => {\n listeners.add(listener);\n\n return () => {\n listeners.delete(listener);\n };\n };\n\n const clear = () => {\n listeners.clear();\n queue.length = 0;\n };\n\n return { emit, subscribe, clear };\n};\n","import { createEmitter, type Listener } from './emitter';\n\nexport type ReadableStore<T> = {\n get: () => T;\n subscribe: (listener: Listener<T>) => () => void;\n dispose: () => void;\n};\n\nexport type Store<T> = ReadableStore<T> & {\n set: (value: T) => void;\n asReadable: () => ReadableStore<T>;\n};\n\nexport const createStore = <T>(initial: T): Store<T> => {\n const changes = createEmitter<T>();\n let value = initial;\n\n const get = () => value;\n\n const subscribe = changes.subscribe;\n\n const dispose = () => {\n value = initial;\n changes.clear();\n };\n\n const readable: ReadableStore<T> = { get, subscribe, dispose };\n\n const set = (next: T) => {\n if (Object.is(next, value)) return;\n value = next;\n changes.emit(value);\n };\n\n const asReadable = () => readable;\n\n return { ...readable, set, asReadable };\n};\n"],"mappings":";AAQA,MAAa,sBAAqC;CAChD,MAAM,4BAAY,IAAI,IAAiB;CACvC,MAAM,QAAa,CAAC;CACpB,IAAI,WAAW;CAEf,MAAM,SAAS,UAAa;EAI1B,CAFkB,GAAG,SAEd,CAAC,CAAC,SAAS,aAAa;GAE7B,IAAI,CAAC,UAAU,IAAI,QAAQ,GAAG;GAE9B,IAAI;IACF,SAAS,KAAK;GAChB,SAAS,OAAO;IACd,QAAQ,MAAM,8CAA8C,KAAK;GACnE;EACF,CAAC;CACH;CAEA,MAAM,QAAQ,UAAa;EACzB,MAAM,KAAK,KAAK;EAChB,IAAI,UAAU;EAEd,WAAW;EACX,IAAI;GACF,KAAK,MAAM,UAAU,OAAO,MAAM,MAAM;EAC1C,UAAU;GACR,MAAM,SAAS;GACf,WAAW;EACb;CACF;CAEA,MAAM,aAAa,aAA0B;EAC3C,UAAU,IAAI,QAAQ;EAEtB,aAAa;GACX,UAAU,OAAO,QAAQ;EAC3B;CACF;CAEA,MAAM,cAAc;EAClB,UAAU,MAAM;EAChB,MAAM,SAAS;CACjB;CAEA,OAAO;EAAE;EAAM;EAAW;CAAM;AAClC;;;AC3CA,MAAa,eAAkB,YAAyB;CACtD,MAAM,UAAU,cAAiB;CACjC,IAAI,QAAQ;CAEZ,MAAM,YAAY;CAElB,MAAM,YAAY,QAAQ;CAE1B,MAAM,gBAAgB;EACpB,QAAQ;EACR,QAAQ,MAAM;CAChB;CAEA,MAAM,WAA6B;EAAE;EAAK;EAAW;CAAQ;CAE7D,MAAM,OAAO,SAAY;EACvB,IAAI,OAAO,GAAG,MAAM,KAAK,GAAG;EAC5B,QAAQ;EACR,QAAQ,KAAK,KAAK;CACpB;CAEA,MAAM,mBAAmB;CAEzB,OAAO;EAAE,GAAG;EAAU;EAAK;CAAW;AACxC"}
@@ -0,0 +1,85 @@
1
+ //#region src/utils/store/emitter.ts
2
+ const createEmitter = () => {
3
+ const listeners = /* @__PURE__ */ new Set();
4
+ const queue = [];
5
+ let draining = false;
6
+ const drain = (event) => {
7
+ [...listeners].forEach((listener) => {
8
+ if (!listeners.has(listener)) return;
9
+ try {
10
+ listener(event);
11
+ } catch (error) {
12
+ console.error("A subscriber threw while handling an event", error);
13
+ }
14
+ });
15
+ };
16
+ const emit = (event) => {
17
+ queue.push(event);
18
+ if (draining) return;
19
+ draining = true;
20
+ try {
21
+ for (const queued of queue) drain(queued);
22
+ } finally {
23
+ queue.length = 0;
24
+ draining = false;
25
+ }
26
+ };
27
+ const subscribe = (listener) => {
28
+ listeners.add(listener);
29
+ return () => {
30
+ listeners.delete(listener);
31
+ };
32
+ };
33
+ const clear = () => {
34
+ listeners.clear();
35
+ queue.length = 0;
36
+ };
37
+ return {
38
+ emit,
39
+ subscribe,
40
+ clear
41
+ };
42
+ };
43
+ //#endregion
44
+ //#region src/utils/store/store.ts
45
+ const createStore = (initial) => {
46
+ const changes = createEmitter();
47
+ let value = initial;
48
+ const get = () => value;
49
+ const subscribe = changes.subscribe;
50
+ const dispose = () => {
51
+ value = initial;
52
+ changes.clear();
53
+ };
54
+ const readable = {
55
+ get,
56
+ subscribe,
57
+ dispose
58
+ };
59
+ const set = (next) => {
60
+ if (Object.is(next, value)) return;
61
+ value = next;
62
+ changes.emit(value);
63
+ };
64
+ const asReadable = () => readable;
65
+ return {
66
+ ...readable,
67
+ set,
68
+ asReadable
69
+ };
70
+ };
71
+ //#endregion
72
+ Object.defineProperty(exports, "createEmitter", {
73
+ enumerable: true,
74
+ get: function() {
75
+ return createEmitter;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "createStore", {
79
+ enumerable: true,
80
+ get: function() {
81
+ return createStore;
82
+ }
83
+ });
84
+
85
+ //# sourceMappingURL=store-xS-Cu_VS.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-xS-Cu_VS.cjs","names":[],"sources":["../src/utils/store/emitter.ts","../src/utils/store/store.ts"],"sourcesContent":["export type Listener<T> = (value: T) => void;\n\nexport type Emitter<T> = {\n emit: (event: T) => void;\n subscribe: (listener: Listener<T>) => () => void;\n clear: () => void;\n};\n\nexport const createEmitter = <T>(): Emitter<T> => {\n const listeners = new Set<Listener<T>>();\n const queue: T[] = [];\n let draining = false;\n\n const drain = (event: T) => {\n // `emitter.subscribe(() => emitter.subscribe(late))` — `late` hears the next event, not current.\n const snapshot = [...listeners];\n\n snapshot.forEach((listener) => {\n // `store.subscribe(() => store.dispose())` — a mid-pass `clear()` stops the ones behind it.\n if (!listeners.has(listener)) return;\n\n try {\n listener(event);\n } catch (error) {\n console.error('A subscriber threw while handling an event', error);\n }\n });\n };\n\n const emit = (event: T) => {\n queue.push(event);\n if (draining) return;\n\n draining = true;\n try {\n for (const queued of queue) drain(queued);\n } finally {\n queue.length = 0;\n draining = false;\n }\n };\n\n const subscribe = (listener: Listener<T>) => {\n listeners.add(listener);\n\n return () => {\n listeners.delete(listener);\n };\n };\n\n const clear = () => {\n listeners.clear();\n queue.length = 0;\n };\n\n return { emit, subscribe, clear };\n};\n","import { createEmitter, type Listener } from './emitter';\n\nexport type ReadableStore<T> = {\n get: () => T;\n subscribe: (listener: Listener<T>) => () => void;\n dispose: () => void;\n};\n\nexport type Store<T> = ReadableStore<T> & {\n set: (value: T) => void;\n asReadable: () => ReadableStore<T>;\n};\n\nexport const createStore = <T>(initial: T): Store<T> => {\n const changes = createEmitter<T>();\n let value = initial;\n\n const get = () => value;\n\n const subscribe = changes.subscribe;\n\n const dispose = () => {\n value = initial;\n changes.clear();\n };\n\n const readable: ReadableStore<T> = { get, subscribe, dispose };\n\n const set = (next: T) => {\n if (Object.is(next, value)) return;\n value = next;\n changes.emit(value);\n };\n\n const asReadable = () => readable;\n\n return { ...readable, set, asReadable };\n};\n"],"mappings":";AAQA,MAAa,sBAAqC;CAChD,MAAM,4BAAY,IAAI,IAAiB;CACvC,MAAM,QAAa,CAAC;CACpB,IAAI,WAAW;CAEf,MAAM,SAAS,UAAa;EAI1B,CAFkB,GAAG,SAEd,CAAC,CAAC,SAAS,aAAa;GAE7B,IAAI,CAAC,UAAU,IAAI,QAAQ,GAAG;GAE9B,IAAI;IACF,SAAS,KAAK;GAChB,SAAS,OAAO;IACd,QAAQ,MAAM,8CAA8C,KAAK;GACnE;EACF,CAAC;CACH;CAEA,MAAM,QAAQ,UAAa;EACzB,MAAM,KAAK,KAAK;EAChB,IAAI,UAAU;EAEd,WAAW;EACX,IAAI;GACF,KAAK,MAAM,UAAU,OAAO,MAAM,MAAM;EAC1C,UAAU;GACR,MAAM,SAAS;GACf,WAAW;EACb;CACF;CAEA,MAAM,aAAa,aAA0B;EAC3C,UAAU,IAAI,QAAQ;EAEtB,aAAa;GACX,UAAU,OAAO,QAAQ;EAC3B;CACF;CAEA,MAAM,cAAc;EAClB,UAAU,MAAM;EAChB,MAAM,SAAS;CACjB;CAEA,OAAO;EAAE;EAAM;EAAW;CAAM;AAClC;;;AC3CA,MAAa,eAAkB,YAAyB;CACtD,MAAM,UAAU,cAAiB;CACjC,IAAI,QAAQ;CAEZ,MAAM,YAAY;CAElB,MAAM,YAAY,QAAQ;CAE1B,MAAM,gBAAgB;EACpB,QAAQ;EACR,QAAQ,MAAM;CAChB;CAEA,MAAM,WAA6B;EAAE;EAAK;EAAW;CAAQ;CAE7D,MAAM,OAAO,SAAY;EACvB,IAAI,OAAO,GAAG,MAAM,KAAK,GAAG;EAC5B,QAAQ;EACR,QAAQ,KAAK,KAAK;CACpB;CAEA,MAAM,mBAAmB;CAEzB,OAAO;EAAE,GAAG;EAAU;EAAK;CAAW;AACxC"}
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_createGenericFetchClient = require("../createGenericFetchClient-DHs-i7_O.cjs");
3
- const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-CyDUFxHB.cjs");
4
- const require_auth = require("../auth-DP-6TFiM.cjs");
2
+ const require_createGenericFetchClient = require("../createGenericFetchClient-qfCZlCTv.cjs");
3
+ const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-C57Ljzi6.cjs");
4
+ const require_auth = require("../auth-C2_JLisH.cjs");
5
5
  //#region src/clients/stream/streamClient.ts
6
6
  const createStreamClient = ({ baseUrl, middlewares, auth }) => {
7
7
  const client = require_createOpenapiFetchClient.createOpenapiFetchClient({
@@ -1,5 +1,5 @@
1
- import { n as ClientInitOptions } from "../types-BREGN3qo.cjs";
2
- import { C as UpdateSinkSettingsRequestBody, E as components, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "../types-COc-nind.cjs";
1
+ import { n as ClientInitOptions } from "../types-DHI0g51U.cjs";
2
+ import { C as UpdateSinkSettingsRequestBody, E as components, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "../types-B7O5koJb.cjs";
3
3
  //#region src/clients/stream/streamClient.d.ts
4
4
  declare const createStreamClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
5
5
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
@@ -1,5 +1,5 @@
1
- import { n as ClientInitOptions } from "../types-DwpRt3e9.js";
2
- import { C as UpdateSinkSettingsRequestBody, E as components, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "../types-BZBdLUpH.js";
1
+ import { n as ClientInitOptions } from "../types-D-98DirB.js";
2
+ import { C as UpdateSinkSettingsRequestBody, E as components, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, d as SinkStatisticsFilesQuery, n as CreateSourceRequestBody, o as PaginationQuery, r as DeleteSourceQuery, t as CreateSinkRequestBody, w as UpdateSourceRequestBody, x as TestSourceQuery } from "../types-D7Wgcp0u.js";
3
3
  //#region src/clients/stream/streamClient.d.ts
4
4
  declare const createStreamClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
5
5
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
@@ -1,6 +1,6 @@
1
- import { t as createGenericFetchClient } from "../createGenericFetchClient-BHYQLZhe.js";
2
- import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-Bn6_Pn0H.js";
3
- import { t as createAuthHeaders } from "../auth-DtbQaeDj.js";
1
+ import { t as createGenericFetchClient } from "../createGenericFetchClient-MQeLRiNW.js";
2
+ import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-E7OIVkYv.js";
3
+ import { t as createAuthHeaders } from "../auth-CE9rQV3-.js";
4
4
  //#region src/clients/stream/streamClient.ts
5
5
  const createStreamClient = ({ baseUrl, middlewares, auth }) => {
6
6
  const client = createOpenapiFetchClient({
@@ -1,2 +1,2 @@
1
- import { C as UpdateSinkSettingsRequestBody, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, _ as TableColumn, a as OTLPSource, b as TestResult, c as SettingsResult, d as SinkStatisticsFilesQuery, f as SinkStatisticsFilesResult, g as SourcesList, h as Source, i as OTLPSignal, l as Sink, m as SinksList, n as CreateSourceRequestBody, o as PaginationQuery, p as SinkStatisticsTotalResult, r as DeleteSourceQuery, s as SettingResult, t as CreateSinkRequestBody, u as SinkFile, v as TableSinkCreate, w as UpdateSourceRequestBody, x as TestSourceQuery, y as Task } from "../types-COc-nind.cjs";
1
+ import { C as UpdateSinkSettingsRequestBody, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, _ as TableColumn, a as OTLPSource, b as TestResult, c as SettingsResult, d as SinkStatisticsFilesQuery, f as SinkStatisticsFilesResult, g as SourcesList, h as Source, i as OTLPSignal, l as Sink, m as SinksList, n as CreateSourceRequestBody, o as PaginationQuery, p as SinkStatisticsTotalResult, r as DeleteSourceQuery, s as SettingResult, t as CreateSinkRequestBody, u as SinkFile, v as TableSinkCreate, w as UpdateSourceRequestBody, x as TestSourceQuery, y as Task } from "../types-B7O5koJb.cjs";
2
2
  export { CreateSinkRequestBody, CreateSourceRequestBody, DeleteSourceQuery, OTLPSignal, OTLPSource, PaginationQuery, SettingResult, SettingsResult, Sink, SinkFile, SinkStatisticsFilesQuery, SinkStatisticsFilesResult, SinkStatisticsTotalResult, SinksList, Source, SourcesList, TableColumn, TableSinkCreate, Task, TestResult, TestSourceQuery, UpdateSinkRequestBody, UpdateSinkSettingsRequestBody, UpdateSourceRequestBody, UpdateSourceSettingsRequestBody };
@@ -1,2 +1,2 @@
1
- import { C as UpdateSinkSettingsRequestBody, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, _ as TableColumn, a as OTLPSource, b as TestResult, c as SettingsResult, d as SinkStatisticsFilesQuery, f as SinkStatisticsFilesResult, g as SourcesList, h as Source, i as OTLPSignal, l as Sink, m as SinksList, n as CreateSourceRequestBody, o as PaginationQuery, p as SinkStatisticsTotalResult, r as DeleteSourceQuery, s as SettingResult, t as CreateSinkRequestBody, u as SinkFile, v as TableSinkCreate, w as UpdateSourceRequestBody, x as TestSourceQuery, y as Task } from "../types-BZBdLUpH.js";
1
+ import { C as UpdateSinkSettingsRequestBody, S as UpdateSinkRequestBody, T as UpdateSourceSettingsRequestBody, _ as TableColumn, a as OTLPSource, b as TestResult, c as SettingsResult, d as SinkStatisticsFilesQuery, f as SinkStatisticsFilesResult, g as SourcesList, h as Source, i as OTLPSignal, l as Sink, m as SinksList, n as CreateSourceRequestBody, o as PaginationQuery, p as SinkStatisticsTotalResult, r as DeleteSourceQuery, s as SettingResult, t as CreateSinkRequestBody, u as SinkFile, v as TableSinkCreate, w as UpdateSourceRequestBody, x as TestSourceQuery, y as Task } from "../types-D7Wgcp0u.js";
2
2
  export { CreateSinkRequestBody, CreateSourceRequestBody, DeleteSourceQuery, OTLPSignal, OTLPSource, PaginationQuery, SettingResult, SettingsResult, Sink, SinkFile, SinkStatisticsFilesQuery, SinkStatisticsFilesResult, SinkStatisticsTotalResult, SinksList, Source, SourcesList, TableColumn, TableSinkCreate, Task, TestResult, TestSourceQuery, UpdateSinkRequestBody, UpdateSinkSettingsRequestBody, UpdateSourceRequestBody, UpdateSourceSettingsRequestBody };
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_syncActions = require("../syncActions-CevF_TEb.cjs");
2
+ const require_syncActions = require("../syncActions-DQq_A9v6.cjs");
3
3
  exports.createSyncActionsClient = require_syncActions.createSyncActionsClient;
@@ -1,2 +1,2 @@
1
- import { n as SendSyncActionOptions, r as createSyncActionsClient, t as SendSyncAction } from "../index-CXtdQ7be.cjs";
1
+ import { n as SendSyncActionOptions, r as createSyncActionsClient, t as SendSyncAction } from "../index-qOK5FtAH.cjs";
2
2
  export { SendSyncAction, SendSyncActionOptions, createSyncActionsClient };
@@ -1,2 +1,2 @@
1
- import { n as SendSyncActionOptions, r as createSyncActionsClient, t as SendSyncAction } from "../index-fHfc_VqS.js";
1
+ import { n as SendSyncActionOptions, r as createSyncActionsClient, t as SendSyncAction } from "../index-DQef014j.js";
2
2
  export { SendSyncAction, SendSyncActionOptions, createSyncActionsClient };
@@ -1,2 +1,2 @@
1
- import { t as createSyncActionsClient } from "../syncActions-B75t0NwP.js";
1
+ import { t as createSyncActionsClient } from "../syncActions-CkMHM-jB.js";
2
2
  export { createSyncActionsClient };
@@ -1,2 +1,2 @@
1
- import { A as ApifyObjectsInput, C as DbtCompiled, D as dbtModelTimingSchema, E as dbtCompiledSchema, F as SyncActionContext, I as syncActionBodySchema, L as syncActionContextSchema, M as apifyObjectsSchema, O as dbtRunResultsSchema, P as SyncActionBody, S as DbtActionInput, T as dbtActionInputSchema, _ as DATA_APP_FAMILY, a as lookerCredentialsResultSchema, b as GitComponentId, c as GetEntrypointsInput, d as GitEntrypoints, f as getBranchesInputSchema, g as gitEntrypointsSchema, h as gitBranchesSchema, i as TestLookerCredentialsInput, j as apifyObjectsInputSchema, k as ApifyObject, l as GitAuth, m as gitAuthSchema, n as PostActionsBodyRaw, o as testLookerCredentialsInputSchema, p as getEntrypointsInputSchema, r as LookerCredentialsResult, s as GetBranchesInput, t as EnrollMFAInput, u as GitBranch, v as DataAppComponentId, w as DbtModelTiming, x as isDataAppFamily, y as GIT_FAMILY } from "../types-BoV9M5Xg.cjs";
1
+ import { A as ApifyObjectsInput, C as DbtCompiled, D as dbtModelTimingSchema, E as dbtCompiledSchema, F as SyncActionContext, I as syncActionBodySchema, L as syncActionContextSchema, M as apifyObjectsSchema, O as dbtRunResultsSchema, P as SyncActionBody, S as DbtActionInput, T as dbtActionInputSchema, _ as DATA_APP_FAMILY, a as lookerCredentialsResultSchema, b as GitComponentId, c as GetEntrypointsInput, d as GitEntrypoints, f as getBranchesInputSchema, g as gitEntrypointsSchema, h as gitBranchesSchema, i as TestLookerCredentialsInput, j as apifyObjectsInputSchema, k as ApifyObject, l as GitAuth, m as gitAuthSchema, n as PostActionsBodyRaw, o as testLookerCredentialsInputSchema, p as getEntrypointsInputSchema, r as LookerCredentialsResult, s as GetBranchesInput, t as EnrollMFAInput, u as GitBranch, v as DataAppComponentId, w as DbtModelTiming, x as isDataAppFamily, y as GIT_FAMILY } from "../types-Ccgbipp4.cjs";
2
2
  export { type ApifyObject, type ApifyObjectsInput, type DATA_APP_FAMILY, type DataAppComponentId, type DbtActionInput, type DbtCompiled, type DbtModelTiming, EnrollMFAInput, type GIT_FAMILY, type GetBranchesInput, type GetEntrypointsInput, type GitAuth, type GitBranch, type GitComponentId, type GitEntrypoints, type LookerCredentialsResult, PostActionsBodyRaw, type SyncActionBody, type SyncActionContext, type TestLookerCredentialsInput, type apifyObjectsInputSchema, type apifyObjectsSchema, type dbtActionInputSchema, type dbtCompiledSchema, type dbtModelTimingSchema, type dbtRunResultsSchema, type getBranchesInputSchema, type getEntrypointsInputSchema, type gitAuthSchema, type gitBranchesSchema, type gitEntrypointsSchema, type isDataAppFamily, type lookerCredentialsResultSchema, type syncActionBodySchema, type syncActionContextSchema, type testLookerCredentialsInputSchema };
@@ -1,2 +1,2 @@
1
- import { A as ApifyObjectsInput, C as DbtCompiled, D as dbtModelTimingSchema, E as dbtCompiledSchema, F as SyncActionContext, I as syncActionBodySchema, L as syncActionContextSchema, M as apifyObjectsSchema, O as dbtRunResultsSchema, P as SyncActionBody, S as DbtActionInput, T as dbtActionInputSchema, _ as DATA_APP_FAMILY, a as lookerCredentialsResultSchema, b as GitComponentId, c as GetEntrypointsInput, d as GitEntrypoints, f as getBranchesInputSchema, g as gitEntrypointsSchema, h as gitBranchesSchema, i as TestLookerCredentialsInput, j as apifyObjectsInputSchema, k as ApifyObject, l as GitAuth, m as gitAuthSchema, n as PostActionsBodyRaw, o as testLookerCredentialsInputSchema, p as getEntrypointsInputSchema, r as LookerCredentialsResult, s as GetBranchesInput, t as EnrollMFAInput, u as GitBranch, v as DataAppComponentId, w as DbtModelTiming, x as isDataAppFamily, y as GIT_FAMILY } from "../types-Di8VIZwQ.js";
1
+ import { A as ApifyObjectsInput, C as DbtCompiled, D as dbtModelTimingSchema, E as dbtCompiledSchema, F as SyncActionContext, I as syncActionBodySchema, L as syncActionContextSchema, M as apifyObjectsSchema, O as dbtRunResultsSchema, P as SyncActionBody, S as DbtActionInput, T as dbtActionInputSchema, _ as DATA_APP_FAMILY, a as lookerCredentialsResultSchema, b as GitComponentId, c as GetEntrypointsInput, d as GitEntrypoints, f as getBranchesInputSchema, g as gitEntrypointsSchema, h as gitBranchesSchema, i as TestLookerCredentialsInput, j as apifyObjectsInputSchema, k as ApifyObject, l as GitAuth, m as gitAuthSchema, n as PostActionsBodyRaw, o as testLookerCredentialsInputSchema, p as getEntrypointsInputSchema, r as LookerCredentialsResult, s as GetBranchesInput, t as EnrollMFAInput, u as GitBranch, v as DataAppComponentId, w as DbtModelTiming, x as isDataAppFamily, y as GIT_FAMILY } from "../types-DTTC70Ac.js";
2
2
  export { type ApifyObject, type ApifyObjectsInput, type DATA_APP_FAMILY, type DataAppComponentId, type DbtActionInput, type DbtCompiled, type DbtModelTiming, EnrollMFAInput, type GIT_FAMILY, type GetBranchesInput, type GetEntrypointsInput, type GitAuth, type GitBranch, type GitComponentId, type GitEntrypoints, type LookerCredentialsResult, PostActionsBodyRaw, type SyncActionBody, type SyncActionContext, type TestLookerCredentialsInput, type apifyObjectsInputSchema, type apifyObjectsSchema, type dbtActionInputSchema, type dbtCompiledSchema, type dbtModelTimingSchema, type dbtRunResultsSchema, type getBranchesInputSchema, type getEntrypointsInputSchema, type gitAuthSchema, type gitBranchesSchema, type gitEntrypointsSchema, type isDataAppFamily, type lookerCredentialsResultSchema, type syncActionBodySchema, type syncActionContextSchema, type testLookerCredentialsInputSchema };
@@ -1,9 +1,9 @@
1
- import { s as defaultValidateStatus } from "./createFetchClient-BbG46bL0.js";
1
+ import { c as defaultValidateStatus } from "./createFetchClient-DdyZMhxO.js";
2
2
  import { t as SyncActionError } from "./SyncActionError-CoZFsdUk.js";
3
3
  import { r as parseOrThrow } from "./ValidationError-CzPWydEb.js";
4
- import { t as createGenericFetchClient } from "./createGenericFetchClient-BHYQLZhe.js";
5
- import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-Bn6_Pn0H.js";
6
- import { t as createAuthHeaders } from "./auth-DtbQaeDj.js";
4
+ import { t as createGenericFetchClient } from "./createGenericFetchClient-MQeLRiNW.js";
5
+ import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-E7OIVkYv.js";
6
+ import { t as createAuthHeaders } from "./auth-CE9rQV3-.js";
7
7
  import { t as ComponentId } from "./componentId-vJz-kWs6.js";
8
8
  import * as z$1 from "zod";
9
9
  //#region src/clients/syncActions/utils/response.ts
@@ -494,4 +494,4 @@ const createSyncActionsClient = ({ baseUrl, middlewares, auth }) => {
494
494
  //#endregion
495
495
  export { createSyncActionsClient as t };
496
496
 
497
- //# sourceMappingURL=syncActions-B75t0NwP.js.map
497
+ //# sourceMappingURL=syncActions-CkMHM-jB.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"syncActions-B75t0NwP.js","names":["z","z","z","z","z"],"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/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/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 * A component reports failure two ways: a non-2xx response, and a **2xx** whose body carries\n * `status: 'error'` (the component ran, and said no). Both are recognised here so every sync action\n * fails as one `SyncActionError` — `validateStatus` is the only hook that sees the parsed body of a\n * successful response, which is what the second case needs.\n *\n * Throwing rather than returning the error is deliberate. `coreFetch` only rethrows a returned value\n * that is an `ApiError`, and `SyncActionError` is a peer of `ApiError`, not a subclass: a component\n * answering `status: 'error'` on a **200** gave a business answer, not a transport failure, so it\n * must not satisfy `isApiError` / `isFetchClientError` — those drive retry and \"network problem\"\n * handling, and `err.response.status` would read 200 and mislead every status-based branch.\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 LIST_ACTORS: 'listActors',\n LIST_TASKS: 'listTasks',\n TEST_LOOKER_CREDENTIALS: 'testLookerCredentials',\n};\n","import * as z from 'zod';\n\n/**\n * The Keboola-side context every sync action carries, whichever action it is. Namespaces extend it\n * with the fields their own action needs, so a caller never assembles the rest of the body.\n */\nexport const syncActionContextSchema = z.object({\n /**\n * Required, because omitting it changes nothing: the service normalises a missing, empty or\n * `null` value to `\"default\"` and resolves that to the default branch's numeric id — the same id,\n * branch type and downstream context an explicit value resolves to, with no extra lookup either\n * way. Requiring it keeps every request self-describing. Both a numeric id and the literal\n * `\"default\"` are accepted (`keboola/runner-sync-api`: `ExecuteActionRequestProcessor` →\n * `BranchTypeResolver`).\n */\n branchId: z.string().min(1, 'Required'),\n /**\n * Leave undefined. The service then runs the component's registered tag from the Developer\n * Portal / Storage component definition — the currently published version, not Docker's\n * `latest`. Set it only to deliberately pin a specific or branch build.\n */\n tag: z.string().optional(),\n mode: z.enum(['run', 'debug']).optional(),\n});\n\n/**\n * The `/actions` request body. `configData` is whatever the component's action expects, so it is\n * only asserted to be an object here — each namespace validates the shape its own action needs\n * before handing it over.\n */\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/**\n * `componentId` is a plain string here, unlike the git actions' closed enum. Every dbt transformation\n * answers `dbtCompile` and `dbtRunResults` under the same action name and the same payload, so the id\n * selects nothing — it only names the component to run, and rejecting an unlisted one would cost the\n * caller a cast for no guarantee. The component itself refuses an action it does not serve.\n */\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 * `compiled` maps a model's file name (`orders.sql`) to its compiled SQL. Key order is the\n * component's own and is preserved, so the caller can render the models in it.\n *\n * A configuration that has never run does **not** answer with an empty payload — the component\n * raises a user exception telling you to run it first, which arrives as a `SyncActionError` carrying\n * that sentence. The empty default here is only for a payload that omits the key anyway: rendering\n * \"nothing to show\" beats failing on a validation error no caller can act on. A key that is\n * *present* with the wrong shape still fails — that is a contract change, and reading it as \"no\n * models\" would hide it.\n */\nexport const dbtCompiledSchema = z\n .object({ compiled: z.record(z.string(), z.string()).default({}) })\n .transform(({ compiled }) => compiled);\n\n/**\n * dbt reports the worker as `\"Thread-1\"`; the number alone is what a consumer positions a row by, so\n * the prefix is stripped here rather than in every consumer. An unparseable value falls back to `0`\n * — one odd worker label must not cost the caller the whole timeline.\n */\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/** Each entry also carries `status` and `dependsOn`, dropped here until a consumer needs them. */\nexport const dbtModelTimingSchema = z.object({\n id: z.string(),\n name: z.string(),\n thread: dbtThreadSchema,\n /** ISO timestamps, left as strings — the consumer decides what to parse them into. */\n timeStarted: z.string(),\n timeCompleted: z.string(),\n});\n\n/** Defaults to empty for the same reason as `compiled` above — and with the same caveat. */\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 { 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 /**\n * Optional, unlike the password variant's — the key is the whole credential.\n *\n * - The component rewrites the URL to `git@host:path` and clones over SSH, where the user is\n * always `git` (`keboola/sandboxes`: `GitRepository::resolveRepositoryUrl`).\n * - It never reads `username` on that path, so a deploy key has none to be stored with.\n * - Accept one when the caller has it anyway; it reaches the component and is ignored there.\n */\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 * Accepts only the components that serve a git repository action — the action name and the\n * `configData` path are resolved from the id, so one from neither family has nowhere to go. The\n * enum rejects an unsupported id when parsing, before any request is sent.\n *\n * **Takes no `branch`, deliberately — do not add one.** It is a run-config field the component\n * feeds to `git clone -b <branch>`, so a stale or renamed value fails the clone and breaks the very\n * call you make to find out which branches exist. Accepting it optionally would let a caller\n * reintroduce that by spreading in an existing config; zod strips it instead.\n */\nexport const getBranchesInputSchema = gitInputSchema\n .extend({ componentId: z.enum(GIT_FAMILY) })\n .check((ctx) => {\n const { componentId, auth } = ctx.value;\n\n // The one rule the types can't carry: a single method taking either family can't also vary its\n // auth by family. dbt clones over HTTPS with a username and password, and has no SSH key field.\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`; the enum rejects anything else. */\nexport const getEntrypointsInputSchema = gitInputSchema.extend({\n componentId: z.enum(DATA_APP_FAMILY),\n /**\n * Unlike `getBranches`, the branch is a real input here — it selects whose revision's files get\n * enumerated. The *git* branch, not the dev branch (`branchId`) every sync action carries.\n * Omit it for the repository's default branch; don't resolve one client-side.\n *\n * An empty string normalises to omitted rather than being rejected: a config written outside the\n * UI can carry `branch: \"\"`, and the form this replaces deleted a falsy branch before sending, so\n * refusing it would fail a call that has always meant \"the default branch\".\n */\n branch: z\n .string()\n .optional()\n .transform((branch) => branch || undefined),\n});\n\n/**\n * Only `branch` is load-bearing — it is the value the caller selects and stores. The rest is\n * decoration the UI renders beside it, so each field falls back to an empty string rather than\n * failing: one commit with no message must not cost the caller the whole branch list. They stay\n * `string` rather than becoming optional, so a consumer needs no new undefined handling.\n */\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/**\n * Only `repository.branches` is confirmed — it is what the UI read before these actions were typed.\n * The top-level position is accepted too because the schema this replaces declared it there, and\n * nothing ever exercised that schema to settle which is right; the two families are separate\n * implementations, so both may well be real.\n *\n * A list in neither position is a different thing from an empty one, though, and is rejected rather\n * than read as none: an empty array is a real answer (a repository with no branches yet), while an\n * envelope carrying no list at all is one we do not understand, and rendering that as \"no branches\"\n * would hide the failure behind an ordinary empty state.\n */\n/**\n * Either a JSON array or an object keyed by stringified indices, gaps included:\n * `{ \"0\": …, \"1\": …, \"3\": … }`. The component filters the list server-side, and a PHP array whose\n * integer keys are no longer contiguous serializes as an object. `Object.values` reads those keys\n * back in ascending numeric order, so the branch order survives either shape.\n */\nconst gitBranchListSchema = z\n .union([z.array(gitBranchSchema), z.record(z.string(), gitBranchSchema)])\n .transform((branches) => (Array.isArray(branches) ? branches : Object.values(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 before it answers:\n *\n * - `default` — no `-b` flag, so the clone lands on the repository's own default branch. Branch\n * listing must use this: it clones purely to enumerate the remote branches, so pinning one that\n * is stale or renamed fails the very call made to discover the valid ones.\n * `getBranchesInputSchema` accepts no `branch`, so that path has nothing to pin with.\n * - `branch` — pins the clone with `git clone -b <branch>`, deciding whose revision the action\n * reads. Entrypoint listing uses it once the user has picked a branch.\n */\ntype GitRevision = { revision: 'default' } | { revision: 'branch'; branch: string };\n\n/** The default is the absence of a branch — the component's own `git clone` decides it. */\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 { 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 { createGit } from './git';\nimport { createLooker } from './looker';\nimport { type SyncActionBody, syncActionBodySchema } from './schemas';\nimport type { EnrollMFAInput, PostActionsBodyRaw } from './types';\n\nexport type SendSyncActionOptions = {\n signal?: AbortSignal;\n /**\n * Replaces the client's `syncActionValidateStatus` for this one request. Use it where a component\n * signals failure in a way only its own action knows about — delegate to the shared one for\n * everything else.\n */\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 // The generated body type has `configData: Record<string, never>`, which nothing can satisfy;\n // `syncActionBodySchema` is the real contract and is what the request is validated against.\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 git: createGit(sendSyncAction),\n looker: createLooker(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;;;;;;;;;;;;;AAc1E,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a,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,KAAK,UAAU,cAAc;EAC7B,QAAQ,aAAa,cAAc;CACrC;AACF"}
1
+ {"version":3,"file":"syncActions-CkMHM-jB.js","names":["z","z","z","z","z"],"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/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/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 * A component reports failure two ways: a non-2xx response, and a **2xx** whose body carries\n * `status: 'error'` (the component ran, and said no). Both are recognised here so every sync action\n * fails as one `SyncActionError` — `validateStatus` is the only hook that sees the parsed body of a\n * successful response, which is what the second case needs.\n *\n * Throwing rather than returning the error is deliberate. `coreFetch` only rethrows a returned value\n * that is an `ApiError`, and `SyncActionError` is a peer of `ApiError`, not a subclass: a component\n * answering `status: 'error'` on a **200** gave a business answer, not a transport failure, so it\n * must not satisfy `isApiError` / `isFetchClientError` — those drive retry and \"network problem\"\n * handling, and `err.response.status` would read 200 and mislead every status-based branch.\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 LIST_ACTORS: 'listActors',\n LIST_TASKS: 'listTasks',\n TEST_LOOKER_CREDENTIALS: 'testLookerCredentials',\n};\n","import * as z from 'zod';\n\n/**\n * The Keboola-side context every sync action carries, whichever action it is. Namespaces extend it\n * with the fields their own action needs, so a caller never assembles the rest of the body.\n */\nexport const syncActionContextSchema = z.object({\n /**\n * Required, because omitting it changes nothing: the service normalises a missing, empty or\n * `null` value to `\"default\"` and resolves that to the default branch's numeric id — the same id,\n * branch type and downstream context an explicit value resolves to, with no extra lookup either\n * way. Requiring it keeps every request self-describing. Both a numeric id and the literal\n * `\"default\"` are accepted (`keboola/runner-sync-api`: `ExecuteActionRequestProcessor` →\n * `BranchTypeResolver`).\n */\n branchId: z.string().min(1, 'Required'),\n /**\n * Leave undefined. The service then runs the component's registered tag from the Developer\n * Portal / Storage component definition — the currently published version, not Docker's\n * `latest`. Set it only to deliberately pin a specific or branch build.\n */\n tag: z.string().optional(),\n mode: z.enum(['run', 'debug']).optional(),\n});\n\n/**\n * The `/actions` request body. `configData` is whatever the component's action expects, so it is\n * only asserted to be an object here — each namespace validates the shape its own action needs\n * before handing it over.\n */\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/**\n * `componentId` is a plain string here, unlike the git actions' closed enum. Every dbt transformation\n * answers `dbtCompile` and `dbtRunResults` under the same action name and the same payload, so the id\n * selects nothing — it only names the component to run, and rejecting an unlisted one would cost the\n * caller a cast for no guarantee. The component itself refuses an action it does not serve.\n */\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 * `compiled` maps a model's file name (`orders.sql`) to its compiled SQL. Key order is the\n * component's own and is preserved, so the caller can render the models in it.\n *\n * A configuration that has never run does **not** answer with an empty payload — the component\n * raises a user exception telling you to run it first, which arrives as a `SyncActionError` carrying\n * that sentence. The empty default here is only for a payload that omits the key anyway: rendering\n * \"nothing to show\" beats failing on a validation error no caller can act on. A key that is\n * *present* with the wrong shape still fails — that is a contract change, and reading it as \"no\n * models\" would hide it.\n */\nexport const dbtCompiledSchema = z\n .object({ compiled: z.record(z.string(), z.string()).default({}) })\n .transform(({ compiled }) => compiled);\n\n/**\n * dbt reports the worker as `\"Thread-1\"`; the number alone is what a consumer positions a row by, so\n * the prefix is stripped here rather than in every consumer. An unparseable value falls back to `0`\n * — one odd worker label must not cost the caller the whole timeline.\n */\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/** Each entry also carries `status` and `dependsOn`, dropped here until a consumer needs them. */\nexport const dbtModelTimingSchema = z.object({\n id: z.string(),\n name: z.string(),\n thread: dbtThreadSchema,\n /** ISO timestamps, left as strings — the consumer decides what to parse them into. */\n timeStarted: z.string(),\n timeCompleted: z.string(),\n});\n\n/** Defaults to empty for the same reason as `compiled` above — and with the same caveat. */\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 { 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 /**\n * Optional, unlike the password variant's — the key is the whole credential.\n *\n * - The component rewrites the URL to `git@host:path` and clones over SSH, where the user is\n * always `git` (`keboola/sandboxes`: `GitRepository::resolveRepositoryUrl`).\n * - It never reads `username` on that path, so a deploy key has none to be stored with.\n * - Accept one when the caller has it anyway; it reaches the component and is ignored there.\n */\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 * Accepts only the components that serve a git repository action — the action name and the\n * `configData` path are resolved from the id, so one from neither family has nowhere to go. The\n * enum rejects an unsupported id when parsing, before any request is sent.\n *\n * **Takes no `branch`, deliberately — do not add one.** It is a run-config field the component\n * feeds to `git clone -b <branch>`, so a stale or renamed value fails the clone and breaks the very\n * call you make to find out which branches exist. Accepting it optionally would let a caller\n * reintroduce that by spreading in an existing config; zod strips it instead.\n */\nexport const getBranchesInputSchema = gitInputSchema\n .extend({ componentId: z.enum(GIT_FAMILY) })\n .check((ctx) => {\n const { componentId, auth } = ctx.value;\n\n // The one rule the types can't carry: a single method taking either family can't also vary its\n // auth by family. dbt clones over HTTPS with a username and password, and has no SSH key field.\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`; the enum rejects anything else. */\nexport const getEntrypointsInputSchema = gitInputSchema.extend({\n componentId: z.enum(DATA_APP_FAMILY),\n /**\n * Unlike `getBranches`, the branch is a real input here — it selects whose revision's files get\n * enumerated. The *git* branch, not the dev branch (`branchId`) every sync action carries.\n * Omit it for the repository's default branch; don't resolve one client-side.\n *\n * An empty string normalises to omitted rather than being rejected: a config written outside the\n * UI can carry `branch: \"\"`, and the form this replaces deleted a falsy branch before sending, so\n * refusing it would fail a call that has always meant \"the default branch\".\n */\n branch: z\n .string()\n .optional()\n .transform((branch) => branch || undefined),\n});\n\n/**\n * Only `branch` is load-bearing — it is the value the caller selects and stores. The rest is\n * decoration the UI renders beside it, so each field falls back to an empty string rather than\n * failing: one commit with no message must not cost the caller the whole branch list. They stay\n * `string` rather than becoming optional, so a consumer needs no new undefined handling.\n */\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/**\n * Only `repository.branches` is confirmed — it is what the UI read before these actions were typed.\n * The top-level position is accepted too because the schema this replaces declared it there, and\n * nothing ever exercised that schema to settle which is right; the two families are separate\n * implementations, so both may well be real.\n *\n * A list in neither position is a different thing from an empty one, though, and is rejected rather\n * than read as none: an empty array is a real answer (a repository with no branches yet), while an\n * envelope carrying no list at all is one we do not understand, and rendering that as \"no branches\"\n * would hide the failure behind an ordinary empty state.\n */\n/**\n * Either a JSON array or an object keyed by stringified indices, gaps included:\n * `{ \"0\": …, \"1\": …, \"3\": … }`. The component filters the list server-side, and a PHP array whose\n * integer keys are no longer contiguous serializes as an object. `Object.values` reads those keys\n * back in ascending numeric order, so the branch order survives either shape.\n */\nconst gitBranchListSchema = z\n .union([z.array(gitBranchSchema), z.record(z.string(), gitBranchSchema)])\n .transform((branches) => (Array.isArray(branches) ? branches : Object.values(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 before it answers:\n *\n * - `default` — no `-b` flag, so the clone lands on the repository's own default branch. Branch\n * listing must use this: it clones purely to enumerate the remote branches, so pinning one that\n * is stale or renamed fails the very call made to discover the valid ones.\n * `getBranchesInputSchema` accepts no `branch`, so that path has nothing to pin with.\n * - `branch` — pins the clone with `git clone -b <branch>`, deciding whose revision the action\n * reads. Entrypoint listing uses it once the user has picked a branch.\n */\ntype GitRevision = { revision: 'default' } | { revision: 'branch'; branch: string };\n\n/** The default is the absence of a branch — the component's own `git clone` decides it. */\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 { 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 { createGit } from './git';\nimport { createLooker } from './looker';\nimport { type SyncActionBody, syncActionBodySchema } from './schemas';\nimport type { EnrollMFAInput, PostActionsBodyRaw } from './types';\n\nexport type SendSyncActionOptions = {\n signal?: AbortSignal;\n /**\n * Replaces the client's `syncActionValidateStatus` for this one request. Use it where a component\n * signals failure in a way only its own action knows about — delegate to the shared one for\n * everything else.\n */\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 // The generated body type has `configData: Record<string, never>`, which nothing can satisfy;\n // `syncActionBodySchema` is the real contract and is what the request is validated against.\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 git: createGit(sendSyncAction),\n looker: createLooker(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;;;;;;;;;;;;;AAc1E,MAAa,4BAA8C,gBAAgB;CACzE,MAAM,OAAO,YAAY,YAAY,IAAI;CAEzC,IAAI,MAAM,WAAW,SACnB,MAAM,IAAI,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,OAAO,sBAAsB,WAAW;AAC1C;;;AC7CA,MAAa,aAAa;CACxB,yBAAyB;CACzB,sBAAsB;CACtB,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,YAAY;CACZ,aAAa;CACb,YAAY;CACZ,yBAAyB;AAC3B;;;;;;;ACJA,MAAa,0BAA0BA,IAAE,OAAO;;;;;;;;;CAS9C,UAAUA,IAAE,OAAO,CAAC,CAAC,IAAI,GAAG,UAAU;;;;;;CAMtC,KAAKA,IAAE,OAAO,CAAC,CAAC,SAAS;CACzB,MAAMA,IAAE,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,SAAS;AAC1C,CAAC;;;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AE,EAAE;EACjF,GACA,EAAE,OAAO,CACX;EAEA,OAAO,aAAa,+BAA+B,IAAI;CACzD;CAEA,OAAO,EAAE,gBAAgB;AAC3B;;;ACTA,MAAM,wBAAwB,WAA6B;CACzD,OAAO,OAAO,MAAsB,UAAiC,CAAC,MAAM;EAC1E,MAAM,EAAE,SAAS,MAAM,OAAO,KAC5B,YAGA,EAAE,MAAM,aAAa,sBAAsB,IAAI,EAAmC,GAClF,OACF;EAEA,OAAO;CACT;AACF;AAKA,MAAa,2BAA2B,EAAE,SAAS,aAAa,WAA8B;CAC5F,MAAM,SAAS,yBAAgC;EAC7C;EACA;EACA,SAAS,kBAAkB,IAAI;EAC/B,gBAAgB;CAClB,CAAC;CACD,MAAM,gBAAgB,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,KAAK,UAAU,cAAc;EAC7B,QAAQ,aAAa,cAAc;CACrC;AACF"}
@@ -1,10 +1,10 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
2
- const require_createFetchClient = require("./createFetchClient-BRfTjBLV.cjs");
2
+ const require_createFetchClient = require("./createFetchClient-DvZvD31l.cjs");
3
3
  const require_SyncActionError = require("./SyncActionError-BG0zwchi.cjs");
4
4
  const require_ValidationError = require("./ValidationError-h5qvwahi.cjs");
5
- const require_createGenericFetchClient = require("./createGenericFetchClient-DHs-i7_O.cjs");
6
- const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-CyDUFxHB.cjs");
7
- const require_auth = require("./auth-DP-6TFiM.cjs");
5
+ const require_createGenericFetchClient = require("./createGenericFetchClient-qfCZlCTv.cjs");
6
+ const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-C57Ljzi6.cjs");
7
+ const require_auth = require("./auth-C2_JLisH.cjs");
8
8
  const require_componentId = require("./componentId-DkyQ8PM0.cjs");
9
9
  let zod = require("zod");
10
10
  zod = require_rolldown_runtime.__toESM(zod, 1);
@@ -501,4 +501,4 @@ Object.defineProperty(exports, "createSyncActionsClient", {
501
501
  }
502
502
  });
503
503
 
504
- //# sourceMappingURL=syncActions-CevF_TEb.cjs.map
504
+ //# sourceMappingURL=syncActions-DQq_A9v6.cjs.map