@keboola/api-client 27.0.0 → 31.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 (844) hide show
  1. package/AGENTS.md +145 -11
  2. package/API-SURFACE.md +13 -1
  3. package/CHANGELOG.md +1785 -0
  4. package/README.md +53 -18
  5. package/dist/ManagementClientAuthError-90pvsej0.js +15 -0
  6. package/dist/ManagementClientAuthError-90pvsej0.js.map +1 -0
  7. package/dist/ManagementClientAuthError-DFhi5yxe.cjs +20 -0
  8. package/dist/ManagementClientAuthError-DFhi5yxe.cjs.map +1 -0
  9. package/dist/QueryJobTimeoutError-C7JbNGOM.js +38 -0
  10. package/dist/QueryJobTimeoutError-C7JbNGOM.js.map +1 -0
  11. package/dist/QueryJobTimeoutError-CVNPdCWX.cjs +61 -0
  12. package/dist/QueryJobTimeoutError-CVNPdCWX.cjs.map +1 -0
  13. package/dist/SyncActionError-BG0zwchi.cjs +35 -0
  14. package/dist/SyncActionError-BG0zwchi.cjs.map +1 -0
  15. package/dist/SyncActionError-CoZFsdUk.js +24 -0
  16. package/dist/SyncActionError-CoZFsdUk.js.map +1 -0
  17. package/dist/UserError-By_Zckmc.js +10 -0
  18. package/dist/UserError-By_Zckmc.js.map +1 -0
  19. package/dist/UserError-CSGO1qII.cjs +15 -0
  20. package/dist/UserError-CSGO1qII.cjs.map +1 -0
  21. package/dist/ValidationError-CzPWydEb.js +44 -0
  22. package/dist/ValidationError-CzPWydEb.js.map +1 -0
  23. package/dist/ValidationError-h5qvwahi.cjs +61 -0
  24. package/dist/ValidationError-h5qvwahi.cjs.map +1 -0
  25. package/dist/adminRoles-B40yBcmq.js +14 -0
  26. package/dist/adminRoles-B40yBcmq.js.map +1 -0
  27. package/dist/adminRoles-C696kD_U.d.cts +14 -0
  28. package/dist/adminRoles-C696kD_U.d.ts +14 -0
  29. package/dist/adminRoles-CO7J5qAy.cjs +19 -0
  30. package/dist/adminRoles-CO7J5qAy.cjs.map +1 -0
  31. package/dist/ai/index.cjs +62 -12
  32. package/dist/ai/index.cjs.map +1 -1
  33. package/dist/ai/index.d.cts +52 -53
  34. package/dist/ai/index.d.ts +52 -53
  35. package/dist/ai/index.js +62 -4
  36. package/dist/ai/index.js.map +1 -1
  37. package/dist/ai/types.cjs +0 -4
  38. package/dist/ai/types.d.cts +2 -2
  39. package/dist/ai/types.d.ts +2 -2
  40. package/dist/ai/types.js +1 -3
  41. package/dist/appLogs-BCCi02w6.cjs +153 -0
  42. package/dist/appLogs-BCCi02w6.cjs.map +1 -0
  43. package/dist/appLogs-BdMG6Cvn.d.ts +10 -0
  44. package/dist/appLogs-CLHhkQJn.js +132 -0
  45. package/dist/appLogs-CLHhkQJn.js.map +1 -0
  46. package/dist/appLogs-hQdKt_8J.d.cts +10 -0
  47. package/dist/apps/index.cjs +229 -14
  48. package/dist/apps/index.cjs.map +1 -1
  49. package/dist/apps/index.d.cts +219 -220
  50. package/dist/apps/index.d.ts +219 -220
  51. package/dist/apps/index.js +229 -6
  52. package/dist/apps/index.js.map +1 -1
  53. package/dist/apps/types.cjs +0 -4
  54. package/dist/apps/types.d.cts +3 -3
  55. package/dist/apps/types.d.ts +3 -3
  56. package/dist/apps/types.js +1 -3
  57. package/dist/assets/index.cjs +33 -38
  58. package/dist/assets/index.cjs.map +1 -1
  59. package/dist/assets/index.d.cts +22 -22
  60. package/dist/assets/index.d.ts +22 -22
  61. package/dist/assets/index.js +32 -36
  62. package/dist/assets/index.js.map +1 -1
  63. package/dist/assets/schema.cjs +23 -13
  64. package/dist/assets/schema.cjs.map +1 -1
  65. package/dist/assets/schema.d.cts +29 -28
  66. package/dist/assets/schema.d.ts +29 -28
  67. package/dist/assets/schema.js +21 -2
  68. package/dist/assets/schema.js.map +1 -1
  69. package/dist/auth/index.cjs +15 -57
  70. package/dist/auth/index.d.cts +2 -318
  71. package/dist/auth/index.d.ts +2 -318
  72. package/dist/auth/index.js +2 -4
  73. package/dist/auth/types.cjs +0 -4
  74. package/dist/auth/types.d.cts +2 -7
  75. package/dist/auth/types.d.ts +2 -7
  76. package/dist/auth/types.js +1 -3
  77. package/dist/auth-CE6Hlc9W.js +13 -0
  78. package/dist/{chunk-5A3AQIXR.js.map → auth-CE6Hlc9W.js.map} +1 -1
  79. package/dist/auth-DmgTH0uY.cjs +18 -0
  80. package/dist/auth-DmgTH0uY.cjs.map +1 -0
  81. package/dist/authClient-BL6h78Q1.d.cts +367 -0
  82. package/dist/authClient-Bc_bDisO.d.ts +367 -0
  83. package/dist/authClient-Cixa8_L1.cjs +476 -0
  84. package/dist/authClient-Cixa8_L1.cjs.map +1 -0
  85. package/dist/authClient-XBAUz9g-.js +397 -0
  86. package/dist/authClient-XBAUz9g-.js.map +1 -0
  87. package/dist/backends-DKBz5OxE.d.cts +9 -0
  88. package/dist/backends-DKBz5OxE.d.ts +9 -0
  89. package/dist/chat/index.cjs +134 -13
  90. package/dist/chat/index.cjs.map +1 -1
  91. package/dist/chat/index.d.cts +49 -51
  92. package/dist/chat/index.d.ts +49 -51
  93. package/dist/chat/index.js +134 -5
  94. package/dist/chat/index.js.map +1 -1
  95. package/dist/chat/suggestions.cjs +152 -74
  96. package/dist/chat/suggestions.cjs.map +1 -1
  97. package/dist/chat/suggestions.d.cts +2 -437
  98. package/dist/chat/suggestions.d.ts +2 -437
  99. package/dist/chat/suggestions.js +136 -2
  100. package/dist/chat/suggestions.js.map +1 -1
  101. package/dist/chat/types.cjs +6 -8
  102. package/dist/chat/types.cjs.map +1 -1
  103. package/dist/chat/types.d.cts +2 -3
  104. package/dist/chat/types.d.ts +2 -3
  105. package/dist/chat/types.js +5 -6
  106. package/dist/chat/types.js.map +1 -1
  107. package/dist/componentId-DkyQ8PM0.cjs +73 -0
  108. package/dist/componentId-DkyQ8PM0.cjs.map +1 -0
  109. package/dist/componentId-vJz-kWs6.js +68 -0
  110. package/dist/componentId-vJz-kWs6.js.map +1 -0
  111. package/dist/concurrent-CH9fbNr3.js +34 -0
  112. package/dist/concurrent-CH9fbNr3.js.map +1 -0
  113. package/dist/concurrent-tbiIa0UL.cjs +39 -0
  114. package/dist/concurrent-tbiIa0UL.cjs.map +1 -0
  115. package/dist/configurations-Byt59bIa.js +726 -0
  116. package/dist/configurations-Byt59bIa.js.map +1 -0
  117. package/dist/configurations-CujCwDcB.cjs +743 -0
  118. package/dist/configurations-CujCwDcB.cjs.map +1 -0
  119. package/dist/configurations-DCOJONZZ.cjs +313 -0
  120. package/dist/configurations-DCOJONZZ.cjs.map +1 -0
  121. package/dist/configurations-iCbhe0tb.js +158 -0
  122. package/dist/configurations-iCbhe0tb.js.map +1 -0
  123. package/dist/constants/index.cjs +12 -34
  124. package/dist/constants/index.d.cts +4 -104
  125. package/dist/constants/index.d.ts +4 -104
  126. package/dist/constants/index.js +4 -5
  127. package/dist/constants-CkAVvuUq.cjs +219 -0
  128. package/dist/constants-CkAVvuUq.cjs.map +1 -0
  129. package/dist/constants-qeWGfk_7.js +184 -0
  130. package/dist/constants-qeWGfk_7.js.map +1 -0
  131. package/dist/createFetchClient-B1h3-p65.js +192 -0
  132. package/dist/createFetchClient-B1h3-p65.js.map +1 -0
  133. package/dist/createFetchClient-B9Cv0W9f.cjs +277 -0
  134. package/dist/createFetchClient-B9Cv0W9f.cjs.map +1 -0
  135. package/dist/createGenericFetchClient-BWoSkTki.cjs +12 -0
  136. package/dist/createGenericFetchClient-BWoSkTki.cjs.map +1 -0
  137. package/dist/createGenericFetchClient-DhpvUSlX.js +7 -0
  138. package/dist/createGenericFetchClient-DhpvUSlX.js.map +1 -0
  139. package/dist/createOpenapiFetchClient-0_oqhdPv.js +7 -0
  140. package/dist/createOpenapiFetchClient-0_oqhdPv.js.map +1 -0
  141. package/dist/createOpenapiFetchClient-yirrW6Tg.cjs +12 -0
  142. package/dist/createOpenapiFetchClient-yirrW6Tg.cjs.map +1 -0
  143. package/dist/createStore-BNiCRQXa.js +148 -0
  144. package/dist/createStore-BNiCRQXa.js.map +1 -0
  145. package/dist/createStore-MQbboXcB.cjs +177 -0
  146. package/dist/createStore-MQbboXcB.cjs.map +1 -0
  147. package/dist/credential-D-tX9gP4.cjs +44 -0
  148. package/dist/credential-D-tX9gP4.cjs.map +1 -0
  149. package/dist/credential-dKxArMic.js +33 -0
  150. package/dist/credential-dKxArMic.js.map +1 -0
  151. package/dist/dataScience/index.cjs +5 -20
  152. package/dist/dataScience/index.d.cts +3 -209
  153. package/dist/dataScience/index.d.ts +3 -209
  154. package/dist/dataScience/index.js +3 -7
  155. package/dist/dataScience/types.cjs +0 -4
  156. package/dist/dataScience/types.d.cts +3 -2172
  157. package/dist/dataScience/types.d.ts +3 -2172
  158. package/dist/dataScience/types.js +1 -3
  159. package/dist/dataScience-BqNWX-Gr.cjs +114 -0
  160. package/dist/dataScience-BqNWX-Gr.cjs.map +1 -0
  161. package/dist/dataScience-jdbSSPYF.js +109 -0
  162. package/dist/dataScience-jdbSSPYF.js.map +1 -0
  163. package/dist/dedupe-CiskLkGR.cjs +30 -0
  164. package/dist/dedupe-CiskLkGR.cjs.map +1 -0
  165. package/dist/dedupe-DYIHgZoG.js +25 -0
  166. package/dist/dedupe-DYIHgZoG.js.map +1 -0
  167. package/dist/developerPortal/index.cjs +6 -0
  168. package/dist/developerPortal/index.d.cts +3 -0
  169. package/dist/developerPortal/index.d.ts +3 -0
  170. package/dist/developerPortal/index.js +2 -0
  171. package/dist/developerPortal/types.cjs +0 -0
  172. package/dist/developerPortal/types.d.cts +2 -0
  173. package/dist/developerPortal/types.d.ts +2 -0
  174. package/dist/developerPortal/types.js +1 -0
  175. package/dist/developerPortalClient-5ABcxz1U.js +485 -0
  176. package/dist/developerPortalClient-5ABcxz1U.js.map +1 -0
  177. package/dist/developerPortalClient-B7lNR5q0.cjs +508 -0
  178. package/dist/developerPortalClient-B7lNR5q0.cjs.map +1 -0
  179. package/dist/domain/permissions/index.cjs +31 -122
  180. package/dist/domain/permissions/index.d.cts +19 -52
  181. package/dist/domain/permissions/index.d.ts +19 -52
  182. package/dist/domain/permissions/index.js +3 -5
  183. package/dist/domain/storageTable/index.cjs +4 -16
  184. package/dist/domain/storageTable/index.d.cts +2 -131
  185. package/dist/domain/storageTable/index.d.ts +2 -131
  186. package/dist/domain/storageTable/index.js +2 -3
  187. package/dist/editor/index.cjs +96 -12
  188. package/dist/editor/index.cjs.map +1 -1
  189. package/dist/editor/index.d.cts +163 -164
  190. package/dist/editor/index.d.ts +163 -164
  191. package/dist/editor/index.js +96 -4
  192. package/dist/editor/index.js.map +1 -1
  193. package/dist/editor/types.cjs +0 -4
  194. package/dist/editor/types.d.cts +2 -2
  195. package/dist/editor/types.d.ts +2 -2
  196. package/dist/editor/types.js +1 -3
  197. package/dist/encryption/index.cjs +58 -11
  198. package/dist/encryption/index.cjs.map +1 -1
  199. package/dist/encryption/index.d.cts +2 -20
  200. package/dist/encryption/index.d.ts +2 -20
  201. package/dist/encryption/index.js +58 -3
  202. package/dist/encryption/index.js.map +1 -1
  203. package/dist/encryption/types.cjs +0 -4
  204. package/dist/encryption/types.d.cts +2 -69
  205. package/dist/encryption/types.d.ts +2 -69
  206. package/dist/encryption/types.js +1 -3
  207. package/dist/generateUUID-C6qKBPIv.cjs +11 -0
  208. package/dist/generateUUID-C6qKBPIv.cjs.map +1 -0
  209. package/dist/generateUUID-Dr8l-aoc.js +6 -0
  210. package/dist/generateUUID-Dr8l-aoc.js.map +1 -0
  211. package/dist/import/index.cjs +3 -14
  212. package/dist/import/index.d.cts +41 -41
  213. package/dist/import/index.d.ts +41 -41
  214. package/dist/import/index.js +2 -5
  215. package/dist/import-CExRbskw.js +116 -0
  216. package/dist/import-CExRbskw.js.map +1 -0
  217. package/dist/import-CXHppAxd.cjs +121 -0
  218. package/dist/import-CXHppAxd.cjs.map +1 -0
  219. package/dist/index--pxLseaw.d.cts +125 -0
  220. package/dist/index--pxLseaw.d.ts +125 -0
  221. package/dist/index-7RvXnXmd.d.ts +77 -0
  222. package/dist/index-B-frWtGW.d.cts +235 -0
  223. package/dist/index-B6q7HxKJ.d.cts +1075 -0
  224. package/dist/index-BMqLPS6S.d.cts +135 -0
  225. package/dist/index-BMqLPS6S.d.ts +135 -0
  226. package/dist/index-BR2Fu-Wo.d.ts +19883 -0
  227. package/dist/index-BSjfVDTr.d.cts +208 -0
  228. package/dist/index-BfVv8isU.d.cts +1388 -0
  229. package/dist/index-C9mAoXF6.d.cts +77 -0
  230. package/dist/index-CMb0ygwb.d.ts +26 -0
  231. package/dist/index-CR9LsDaG.d.cts +65 -0
  232. package/dist/index-CW4VC9oN.d.ts +65 -0
  233. package/dist/index-CYMAwD3E.d.ts +1388 -0
  234. package/dist/index-Cpjh05sx.d.cts +31 -0
  235. package/dist/index-CwJE18PJ.d.cts +26 -0
  236. package/dist/index-D_TnbEtp.d.cts +16 -0
  237. package/dist/index-Daks5CeX.d.ts +31 -0
  238. package/dist/index-DeMDxHTz.d.ts +1075 -0
  239. package/dist/index-Ds8e0l7-.d.ts +235 -0
  240. package/dist/index-J1I2HlSm.d.ts +208 -0
  241. package/dist/index-NC1dXRTD.d.cts +40 -0
  242. package/dist/index-NC1dXRTD.d.ts +40 -0
  243. package/dist/index-NicJZIzu.d.ts +16 -0
  244. package/dist/index-cu8THqZV.d.cts +19883 -0
  245. package/dist/index.cjs +1735 -1884
  246. package/dist/index.cjs.map +1 -1
  247. package/dist/index.d.cts +7 -15778
  248. package/dist/index.d.ts +7 -15778
  249. package/dist/index.js +1683 -1724
  250. package/dist/index.js.map +1 -1
  251. package/dist/isPlainObject-BB3iy87C.cjs +16 -0
  252. package/dist/isPlainObject-BB3iy87C.cjs.map +1 -0
  253. package/dist/isPlainObject-LYW-03uB.js +11 -0
  254. package/dist/isPlainObject-LYW-03uB.js.map +1 -0
  255. package/dist/jobStatus-DbMupQEK.js +423 -0
  256. package/dist/jobStatus-DbMupQEK.js.map +1 -0
  257. package/dist/jobStatus-kQ9JqF8t.cjs +494 -0
  258. package/dist/jobStatus-kQ9JqF8t.cjs.map +1 -0
  259. package/dist/management/index.cjs +4 -18
  260. package/dist/management/index.d.cts +2 -1076
  261. package/dist/management/index.d.ts +2 -1076
  262. package/dist/management/index.js +2 -5
  263. package/dist/management/types.cjs +0 -4
  264. package/dist/management/types.d.cts +2 -12
  265. package/dist/management/types.d.ts +2 -12
  266. package/dist/management/types.js +1 -3
  267. package/dist/management-Cc8mKfnf.js +1064 -0
  268. package/dist/management-Cc8mKfnf.js.map +1 -0
  269. package/dist/management-DlVdxzPw.cjs +1075 -0
  270. package/dist/management-DlVdxzPw.cjs.map +1 -0
  271. package/dist/metastore/index.cjs +3 -14
  272. package/dist/metastore/index.d.cts +2 -32
  273. package/dist/metastore/index.d.ts +2 -32
  274. package/dist/metastore/index.js +2 -5
  275. package/dist/metastore/types.cjs +0 -4
  276. package/dist/metastore/types.d.cts +2 -2
  277. package/dist/metastore/types.d.ts +2 -2
  278. package/dist/metastore/types.js +1 -3
  279. package/dist/metastore-CNf1412Z.js +134 -0
  280. package/dist/metastore-CNf1412Z.js.map +1 -0
  281. package/dist/metastore-DbsxqjhS.cjs +139 -0
  282. package/dist/metastore-DbsxqjhS.cjs.map +1 -0
  283. package/dist/notifications/index.cjs +67 -13
  284. package/dist/notifications/index.cjs.map +1 -1
  285. package/dist/notifications/index.d.cts +56 -57
  286. package/dist/notifications/index.d.ts +56 -57
  287. package/dist/notifications/index.js +67 -5
  288. package/dist/notifications/index.js.map +1 -1
  289. package/dist/notifications/types.cjs +0 -4
  290. package/dist/notifications/types.d.cts +2 -2
  291. package/dist/notifications/types.d.ts +2 -2
  292. package/dist/notifications/types.js +1 -3
  293. package/dist/oauth/index.cjs +3 -14
  294. package/dist/oauth/index.d.cts +49 -50
  295. package/dist/oauth/index.d.ts +49 -50
  296. package/dist/oauth/index.js +2 -5
  297. package/dist/oauth/types.cjs +0 -4
  298. package/dist/oauth/types.d.cts +2 -725
  299. package/dist/oauth/types.d.ts +2 -725
  300. package/dist/oauth/types.js +1 -3
  301. package/dist/oauth-ClksaYRY.js +83 -0
  302. package/dist/oauth-ClksaYRY.js.map +1 -0
  303. package/dist/oauth-DsZgmtPj.cjs +88 -0
  304. package/dist/oauth-DsZgmtPj.cjs.map +1 -0
  305. package/dist/omnisearch/index.cjs +47 -12
  306. package/dist/omnisearch/index.cjs.map +1 -1
  307. package/dist/omnisearch/index.d.cts +12 -14
  308. package/dist/omnisearch/index.d.ts +12 -14
  309. package/dist/omnisearch/index.js +47 -4
  310. package/dist/omnisearch/index.js.map +1 -1
  311. package/dist/omnisearch/types.cjs +0 -4
  312. package/dist/omnisearch/types.d.cts +2 -3
  313. package/dist/omnisearch/types.d.ts +2 -3
  314. package/dist/omnisearch/types.js +1 -3
  315. package/dist/project-5SLw86eZ.d.ts +18 -0
  316. package/dist/project-BvFi19K_.cjs +56 -0
  317. package/dist/project-BvFi19K_.cjs.map +1 -0
  318. package/dist/project-CRrsxSAK.d.cts +18 -0
  319. package/dist/project-DWwZv66D.js +39 -0
  320. package/dist/project-DWwZv66D.js.map +1 -0
  321. package/dist/queryService/index.cjs +3 -14
  322. package/dist/queryService/index.d.cts +2 -40
  323. package/dist/queryService/index.d.ts +2 -40
  324. package/dist/queryService/index.js +2 -5
  325. package/dist/queryService/types.cjs +0 -4
  326. package/dist/queryService/types.d.cts +2 -2
  327. package/dist/queryService/types.d.ts +2 -2
  328. package/dist/queryService/types.js +1 -3
  329. package/dist/queryService-BlyAcBxP.js +114 -0
  330. package/dist/queryService-BlyAcBxP.js.map +1 -0
  331. package/dist/queryService-DxUUkTcy.cjs +119 -0
  332. package/dist/queryService-DxUUkTcy.cjs.map +1 -0
  333. package/dist/queue/index.cjs +3 -15
  334. package/dist/queue/index.d.cts +411 -340
  335. package/dist/queue/index.d.ts +411 -340
  336. package/dist/queue/index.js +2 -6
  337. package/dist/queue/types.cjs +0 -4
  338. package/dist/queue/types.d.cts +2 -2
  339. package/dist/queue/types.d.ts +2 -2
  340. package/dist/queue/types.js +1 -3
  341. package/dist/queue-CpcqeMPz.cjs +137 -0
  342. package/dist/queue-CpcqeMPz.cjs.map +1 -0
  343. package/dist/queue-DpZTm7U7.js +126 -0
  344. package/dist/queue-DpZTm7U7.js.map +1 -0
  345. package/dist/rolldown-runtime-VH7oDXx4.cjs +28 -0
  346. package/dist/scheduler/index.cjs +61 -13
  347. package/dist/scheduler/index.cjs.map +1 -1
  348. package/dist/scheduler/index.d.cts +73 -74
  349. package/dist/scheduler/index.d.ts +73 -74
  350. package/dist/scheduler/index.js +61 -5
  351. package/dist/scheduler/index.js.map +1 -1
  352. package/dist/scheduler/types.cjs +0 -4
  353. package/dist/scheduler/types.d.cts +2 -372
  354. package/dist/scheduler/types.d.ts +2 -372
  355. package/dist/scheduler/types.js +1 -3
  356. package/dist/sdk/configurations/index.cjs +3 -16
  357. package/dist/sdk/configurations/index.d.cts +3066 -3078
  358. package/dist/sdk/configurations/index.d.ts +3066 -3078
  359. package/dist/sdk/configurations/index.js +2 -7
  360. package/dist/sdk/developerPortal/index.cjs +203 -0
  361. package/dist/sdk/developerPortal/index.cjs.map +1 -0
  362. package/dist/sdk/developerPortal/index.d.cts +1371 -0
  363. package/dist/sdk/developerPortal/index.d.ts +1371 -0
  364. package/dist/sdk/developerPortal/index.js +202 -0
  365. package/dist/sdk/developerPortal/index.js.map +1 -0
  366. package/dist/sdk/queryService/index.cjs +91 -14
  367. package/dist/sdk/queryService/index.cjs.map +1 -1
  368. package/dist/sdk/queryService/index.d.cts +2 -35
  369. package/dist/sdk/queryService/index.d.ts +2 -35
  370. package/dist/sdk/queryService/index.js +91 -6
  371. package/dist/sdk/queryService/index.js.map +1 -1
  372. package/dist/sdk/semanticLayer/index.cjs +352 -54
  373. package/dist/sdk/semanticLayer/index.cjs.map +1 -1
  374. package/dist/sdk/semanticLayer/index.d.cts +95 -99
  375. package/dist/sdk/semanticLayer/index.d.ts +95 -99
  376. package/dist/sdk/semanticLayer/index.js +346 -4
  377. package/dist/sdk/semanticLayer/index.js.map +1 -1
  378. package/dist/sdk/semanticLayer/types.cjs +0 -4
  379. package/dist/sdk/semanticLayer/types.d.cts +2 -152
  380. package/dist/sdk/semanticLayer/types.d.ts +2 -152
  381. package/dist/sdk/semanticLayer/types.js +1 -3
  382. package/dist/sdk/storage/index.cjs +267 -48
  383. package/dist/sdk/storage/index.cjs.map +1 -1
  384. package/dist/sdk/storage/index.d.cts +2 -120
  385. package/dist/sdk/storage/index.d.ts +2 -120
  386. package/dist/sdk/storage/index.js +258 -4
  387. package/dist/sdk/storage/index.js.map +1 -1
  388. package/dist/sdk/tag/index.cjs +3 -14
  389. package/dist/sdk/tag/index.d.cts +16 -20
  390. package/dist/sdk/tag/index.d.ts +16 -20
  391. package/dist/sdk/tag/index.js +2 -5
  392. package/dist/sdk/tag/types.cjs +0 -4
  393. package/dist/sdk/tag/types.d.cts +2 -36
  394. package/dist/sdk/tag/types.d.ts +2 -36
  395. package/dist/sdk/tag/types.js +1 -3
  396. package/dist/sdk/vault/index.cjs +93 -31
  397. package/dist/sdk/vault/index.cjs.map +1 -1
  398. package/dist/sdk/vault/index.d.cts +2 -73
  399. package/dist/sdk/vault/index.d.ts +2 -73
  400. package/dist/sdk/vault/index.js +88 -3
  401. package/dist/sdk/vault/index.js.map +1 -1
  402. package/dist/status/index.cjs +16 -20
  403. package/dist/status/index.cjs.map +1 -1
  404. package/dist/status/index.d.cts +8 -9
  405. package/dist/status/index.d.ts +8 -9
  406. package/dist/status/index.js +15 -18
  407. package/dist/status/index.js.map +1 -1
  408. package/dist/status/types.cjs +0 -6
  409. package/dist/status/types.d.cts +17 -15
  410. package/dist/status/types.d.ts +17 -15
  411. package/dist/status/types.js +1 -3
  412. package/dist/storage/index.cjs +30 -92
  413. package/dist/storage/index.d.cts +3 -24
  414. package/dist/storage/index.d.ts +3 -24
  415. package/dist/storage/index.js +9 -11
  416. package/dist/storage/types.cjs +0 -4
  417. package/dist/storage/types.d.cts +5 -1949
  418. package/dist/storage/types.d.ts +5 -1949
  419. package/dist/storage/types.js +1 -3
  420. package/dist/storage-CQxu0EY3.js +2432 -0
  421. package/dist/storage-CQxu0EY3.js.map +1 -0
  422. package/dist/storage-vnH64B_Q.cjs +2461 -0
  423. package/dist/storage-vnH64B_Q.cjs.map +1 -0
  424. package/dist/storageTable-C9crh4Ef.cjs +310 -0
  425. package/dist/storageTable-C9crh4Ef.cjs.map +1 -0
  426. package/dist/storageTable-DslXtqNL.js +299 -0
  427. package/dist/storageTable-DslXtqNL.js.map +1 -0
  428. package/dist/stream/index.cjs +363 -12
  429. package/dist/stream/index.cjs.map +1 -1
  430. package/dist/stream/index.d.cts +345 -346
  431. package/dist/stream/index.d.ts +345 -346
  432. package/dist/stream/index.js +363 -4
  433. package/dist/stream/index.js.map +1 -1
  434. package/dist/stream/types.cjs +0 -4
  435. package/dist/stream/types.d.cts +2 -2
  436. package/dist/stream/types.d.ts +2 -2
  437. package/dist/stream/types.js +1 -3
  438. package/dist/suggestions-BH3x7xU7.d.cts +438 -0
  439. package/dist/suggestions-BH3x7xU7.d.ts +438 -0
  440. package/dist/syncActions/index.cjs +3 -19
  441. package/dist/syncActions/index.d.cts +2 -67
  442. package/dist/syncActions/index.d.ts +2 -67
  443. package/dist/syncActions/index.js +2 -10
  444. package/dist/syncActions/types.cjs +0 -4
  445. package/dist/syncActions/types.d.cts +2 -614
  446. package/dist/syncActions/types.d.ts +2 -614
  447. package/dist/syncActions/types.js +1 -3
  448. package/dist/syncActions-AgFiMjRS.js +497 -0
  449. package/dist/syncActions-AgFiMjRS.js.map +1 -0
  450. package/dist/syncActions-DPcAPYgJ.cjs +504 -0
  451. package/dist/syncActions-DPcAPYgJ.cjs.map +1 -0
  452. package/dist/tag-CsoOZWB_.cjs +175 -0
  453. package/dist/tag-CsoOZWB_.cjs.map +1 -0
  454. package/dist/tag-DCsoewjL.js +164 -0
  455. package/dist/{chunk-WUFODWZV.js.map → tag-DCsoewjL.js.map} +1 -1
  456. package/dist/telemetry/index.cjs +3 -14
  457. package/dist/telemetry/index.d.cts +10 -10
  458. package/dist/telemetry/index.d.ts +10 -10
  459. package/dist/telemetry/index.js +2 -5
  460. package/dist/telemetry/types.cjs +0 -4
  461. package/dist/telemetry/types.d.cts +2 -12
  462. package/dist/telemetry/types.d.ts +2 -12
  463. package/dist/telemetry/types.js +1 -3
  464. package/dist/telemetry-BLgaYEvi.cjs +29 -0
  465. package/dist/telemetry-BLgaYEvi.cjs.map +1 -0
  466. package/dist/telemetry-CPiGWpLi.js +24 -0
  467. package/dist/telemetry-CPiGWpLi.js.map +1 -0
  468. package/dist/{types-DM1glEQI.d.ts → types-056giLrn.d.cts} +8 -10
  469. package/dist/types-B1S60aS2.d.ts +373 -0
  470. package/dist/{types-Dpwb4dD0.d.ts → types-B2Al1BNh.d.ts} +8 -13
  471. package/dist/types-B2El99VY.d.cts +2835 -0
  472. package/dist/types-BHCigZFc.d.ts +32 -0
  473. package/dist/{types-ebolWqn1.d.ts → types-BIAP4CYp.d.cts} +27 -16
  474. package/dist/types-BJLRgXw0.d.ts +726 -0
  475. package/dist/types-BMsK6T5k.d.ts +2835 -0
  476. package/dist/types-BV74LS5r.d.ts +148 -0
  477. package/dist/types-BXnUqdBB.d.cts +621 -0
  478. package/dist/{types-nt7I4XNc.d.cts → types-Bc3-a3DT.d.cts} +7 -6
  479. package/dist/types-BdKtW2Ml.d.cts +23 -0
  480. package/dist/types-Bv5vw2dc.d.cts +726 -0
  481. package/dist/{types-BALUbGA5.d.ts → types-BvXODdf5.d.ts} +48 -80
  482. package/dist/types-By47HWwB.d.cts +386 -0
  483. package/dist/{types-DOc5_aYZ.d.ts → types-C0bGZqFI.d.cts} +16 -21
  484. package/dist/types-C2p7JYQ3.d.cts +373 -0
  485. package/dist/types-CFhAduFK.d.cts +2162 -0
  486. package/dist/{types-EZBBpiFU.d.ts → types-CIJAtX8q.d.cts} +238 -349
  487. package/dist/types-CIybfUJ9.d.cts +66 -0
  488. package/dist/{types-CFeOCzzg.d.cts → types-COFrOmuO.d.ts} +27 -16
  489. package/dist/{types-D2qGShlS.d.ts → types-CQd9PuKY.d.cts} +31 -106
  490. package/dist/{types-COti0FGo.d.ts → types-CgF9R0Na.d.ts} +9 -12
  491. package/dist/types-Co8WobOo.d.ts +2162 -0
  492. package/dist/{types-D6dnnju2.d.ts → types-CuAoZH8w.d.cts} +32 -30
  493. package/dist/{types-BsejtGjZ.d.ts → types-Culr5v8R.d.ts} +9 -15
  494. package/dist/{types-Y1ynT2PH.d.cts → types-D5VvEdOv.d.ts} +31 -106
  495. package/dist/{types-BuEkMmKT.d.ts → types-D7YGPUsm.d.ts} +219 -234
  496. package/dist/types-DG_FlLJt.d.cts +2088 -0
  497. package/dist/{types-BcaALDYY.d.cts → types-DLazCdFR.d.cts} +9 -15
  498. package/dist/types-DMMMQuNt.d.ts +2088 -0
  499. package/dist/{types-Bp8d9PJf.d.cts → types-DN7RWWBw.d.ts} +16 -21
  500. package/dist/{types-DNyZ0z3L.d.cts → types-DQOOWgLt.d.cts} +219 -234
  501. package/dist/{types-DrGnvgkB.d.ts → types-DSBNqF1J.d.cts} +9 -14
  502. package/dist/{types-BCBF_5cU.d.cts → types-DWUd__fe.d.ts} +32 -30
  503. package/dist/types-DdeZK3BO.d.ts +386 -0
  504. package/dist/types-Dirp9mni.d.ts +66 -0
  505. package/dist/{types-CfzHhZVG.d.ts → types-DkoyCUqv.d.ts} +7 -6
  506. package/dist/{types-Cffam0Nw.d.ts → types-DnOGCb-p.d.cts} +105 -80
  507. package/dist/{types-CniF_D1P.d.cts → types-Drk7PEhk.d.ts} +8 -10
  508. package/dist/types-DyIKgbGB.d.ts +621 -0
  509. package/dist/{types-qvle4Ydu.d.cts → types-RmbvQimP.d.ts} +105 -80
  510. package/dist/types-SX78XZZ0.d.ts +23 -0
  511. package/dist/{types-cxk-0ftN.d.cts → types-X-gQF8F8.d.ts} +238 -349
  512. package/dist/types-ca-YNg1r.d.cts +148 -0
  513. package/dist/{types-CwAYn1EJ.d.cts → types-eP06LqcE.d.cts} +48 -80
  514. package/dist/types-lFsTSkhe.d.cts +14 -0
  515. package/dist/types-lFsTSkhe.d.ts +14 -0
  516. package/dist/{types-Bom93Zx2.d.cts → types-lVXf05pr.d.ts} +9 -14
  517. package/dist/types-mXM8MrYS.d.cts +32 -0
  518. package/dist/{types-BPKQRahf.d.cts → types-sTH4KiPc.d.cts} +8 -13
  519. package/dist/{types-CxAH36ip.d.cts → types-uP64XthM.d.cts} +9 -12
  520. package/dist/validateConnectionStatus-CBhXmvWC.js +38 -0
  521. package/dist/validateConnectionStatus-CBhXmvWC.js.map +1 -0
  522. package/dist/validateConnectionStatus-DVHXGTdi.cjs +55 -0
  523. package/dist/validateConnectionStatus-DVHXGTdi.cjs.map +1 -0
  524. package/dist/vault/index.cjs +49 -13
  525. package/dist/vault/index.cjs.map +1 -1
  526. package/dist/vault/index.d.cts +2 -27
  527. package/dist/vault/index.d.ts +2 -27
  528. package/dist/vault/index.js +49 -5
  529. package/dist/vault/index.js.map +1 -1
  530. package/dist/vault/types.cjs +0 -4
  531. package/dist/vault/types.d.cts +2 -385
  532. package/dist/vault/types.d.ts +2 -385
  533. package/dist/vault/types.js +1 -3
  534. package/package.json +46 -7
  535. package/surface/apps.md +2 -2
  536. package/surface/auth.md +9 -2
  537. package/surface/chat.md +2 -2
  538. package/surface/dataScience.md +2 -2
  539. package/surface/kaiAgent.md +2 -1
  540. package/surface/queryService.md +4 -3
  541. package/surface/queue.md +2 -1
  542. package/surface/sdk.md +8 -8
  543. package/surface/storage.md +40 -35
  544. package/surface/syncActions.md +2 -2
  545. package/dist/ManagementClientAuthError-4J0S5tV-.d.ts +0 -9
  546. package/dist/ManagementClientAuthError-CyDpa4NS.d.cts +0 -9
  547. package/dist/adminRoles-BSUPLfNf.d.cts +0 -12
  548. package/dist/adminRoles-BSUPLfNf.d.ts +0 -12
  549. package/dist/ai/types.cjs.map +0 -1
  550. package/dist/ai/types.js.map +0 -1
  551. package/dist/appLogs-BbgAJ5I8.d.cts +0 -7
  552. package/dist/appLogs-BbgAJ5I8.d.ts +0 -7
  553. package/dist/apps/types.cjs.map +0 -1
  554. package/dist/apps/types.js.map +0 -1
  555. package/dist/auth/index.cjs.map +0 -1
  556. package/dist/auth/index.js.map +0 -1
  557. package/dist/auth/types.cjs.map +0 -1
  558. package/dist/auth/types.js.map +0 -1
  559. package/dist/backends-UNp_e5y9.d.cts +0 -7
  560. package/dist/backends-UNp_e5y9.d.ts +0 -7
  561. package/dist/chunk-22E6IGXR.js +0 -6
  562. package/dist/chunk-22E6IGXR.js.map +0 -1
  563. package/dist/chunk-24YVNNAG.js +0 -83
  564. package/dist/chunk-24YVNNAG.js.map +0 -1
  565. package/dist/chunk-255CHZ3U.js +0 -200
  566. package/dist/chunk-255CHZ3U.js.map +0 -1
  567. package/dist/chunk-2BCH2U57.js +0 -67
  568. package/dist/chunk-2BCH2U57.js.map +0 -1
  569. package/dist/chunk-2BQBKU6E.js +0 -270
  570. package/dist/chunk-2BQBKU6E.js.map +0 -1
  571. package/dist/chunk-2JKTV7UG.cjs +0 -35
  572. package/dist/chunk-2JKTV7UG.cjs.map +0 -1
  573. package/dist/chunk-3UBGQFBU.js +0 -29
  574. package/dist/chunk-3UBGQFBU.js.map +0 -1
  575. package/dist/chunk-4RC5E3SL.js +0 -140
  576. package/dist/chunk-4RC5E3SL.js.map +0 -1
  577. package/dist/chunk-552FC4ZV.js +0 -14
  578. package/dist/chunk-552FC4ZV.js.map +0 -1
  579. package/dist/chunk-57Q4CY4H.js +0 -190
  580. package/dist/chunk-57Q4CY4H.js.map +0 -1
  581. package/dist/chunk-5A3AQIXR.js +0 -14
  582. package/dist/chunk-5HEIR4DC.js +0 -39
  583. package/dist/chunk-5HEIR4DC.js.map +0 -1
  584. package/dist/chunk-5SR2L35Y.cjs +0 -1828
  585. package/dist/chunk-5SR2L35Y.cjs.map +0 -1
  586. package/dist/chunk-62LG5KPI.js +0 -285
  587. package/dist/chunk-62LG5KPI.js.map +0 -1
  588. package/dist/chunk-67P5UI6H.js +0 -58
  589. package/dist/chunk-67P5UI6H.js.map +0 -1
  590. package/dist/chunk-6PVEHUJL.cjs +0 -1308
  591. package/dist/chunk-6PVEHUJL.cjs.map +0 -1
  592. package/dist/chunk-6XFXU5N4.js +0 -119
  593. package/dist/chunk-6XFXU5N4.js.map +0 -1
  594. package/dist/chunk-6YZQIMML.cjs +0 -163
  595. package/dist/chunk-6YZQIMML.cjs.map +0 -1
  596. package/dist/chunk-6ZQBFK2Y.js +0 -24
  597. package/dist/chunk-6ZQBFK2Y.js.map +0 -1
  598. package/dist/chunk-7J2R6XHB.js +0 -3
  599. package/dist/chunk-7J2R6XHB.js.map +0 -1
  600. package/dist/chunk-AJ3SCWUB.cjs +0 -69
  601. package/dist/chunk-AJ3SCWUB.cjs.map +0 -1
  602. package/dist/chunk-AXYNFDUI.cjs +0 -43
  603. package/dist/chunk-AXYNFDUI.cjs.map +0 -1
  604. package/dist/chunk-B45B4AYG.js +0 -272
  605. package/dist/chunk-B45B4AYG.js.map +0 -1
  606. package/dist/chunk-B4T4QCLB.js +0 -116
  607. package/dist/chunk-B4T4QCLB.js.map +0 -1
  608. package/dist/chunk-BCZPCMGL.cjs +0 -49
  609. package/dist/chunk-BCZPCMGL.cjs.map +0 -1
  610. package/dist/chunk-BGJWHTBJ.js +0 -66
  611. package/dist/chunk-BGJWHTBJ.js.map +0 -1
  612. package/dist/chunk-BVRPZKRE.cjs +0 -147
  613. package/dist/chunk-BVRPZKRE.cjs.map +0 -1
  614. package/dist/chunk-BZB4UVQA.cjs +0 -192
  615. package/dist/chunk-BZB4UVQA.cjs.map +0 -1
  616. package/dist/chunk-CHRBWCL7.cjs +0 -472
  617. package/dist/chunk-CHRBWCL7.cjs.map +0 -1
  618. package/dist/chunk-CPZME73I.js +0 -16
  619. package/dist/chunk-CPZME73I.js.map +0 -1
  620. package/dist/chunk-DVV35AIS.js +0 -468
  621. package/dist/chunk-DVV35AIS.js.map +0 -1
  622. package/dist/chunk-E7GGDLAH.cjs +0 -202
  623. package/dist/chunk-E7GGDLAH.cjs.map +0 -1
  624. package/dist/chunk-EQPBR3BE.cjs +0 -85
  625. package/dist/chunk-EQPBR3BE.cjs.map +0 -1
  626. package/dist/chunk-ERZEQ5JR.js +0 -40
  627. package/dist/chunk-ERZEQ5JR.js.map +0 -1
  628. package/dist/chunk-ES3ADC2G.cjs +0 -18
  629. package/dist/chunk-ES3ADC2G.cjs.map +0 -1
  630. package/dist/chunk-EWMXK3EI.cjs +0 -8
  631. package/dist/chunk-EWMXK3EI.cjs.map +0 -1
  632. package/dist/chunk-FEAE6L3K.cjs +0 -60
  633. package/dist/chunk-FEAE6L3K.cjs.map +0 -1
  634. package/dist/chunk-FPB6OGTV.js +0 -26
  635. package/dist/chunk-FPB6OGTV.js.map +0 -1
  636. package/dist/chunk-FVU7WU2H.cjs +0 -66
  637. package/dist/chunk-FVU7WU2H.cjs.map +0 -1
  638. package/dist/chunk-FW5GBBKL.js +0 -67
  639. package/dist/chunk-FW5GBBKL.js.map +0 -1
  640. package/dist/chunk-G2SWCC3X.js +0 -90
  641. package/dist/chunk-G2SWCC3X.js.map +0 -1
  642. package/dist/chunk-G3JHVIDZ.cjs +0 -286
  643. package/dist/chunk-G3JHVIDZ.cjs.map +0 -1
  644. package/dist/chunk-G3N5KDEY.js +0 -10
  645. package/dist/chunk-G3N5KDEY.js.map +0 -1
  646. package/dist/chunk-HGKDXF35.js +0 -301
  647. package/dist/chunk-HGKDXF35.js.map +0 -1
  648. package/dist/chunk-HITKHHWN.cjs +0 -174
  649. package/dist/chunk-HITKHHWN.cjs.map +0 -1
  650. package/dist/chunk-HQO572JW.cjs +0 -34
  651. package/dist/chunk-HQO572JW.cjs.map +0 -1
  652. package/dist/chunk-HUQ5ATIL.cjs +0 -290
  653. package/dist/chunk-HUQ5ATIL.cjs.map +0 -1
  654. package/dist/chunk-HZDVMHU6.js +0 -344
  655. package/dist/chunk-HZDVMHU6.js.map +0 -1
  656. package/dist/chunk-ICWUR5WA.cjs +0 -68
  657. package/dist/chunk-ICWUR5WA.cjs.map +0 -1
  658. package/dist/chunk-IQFNHQWP.cjs +0 -47
  659. package/dist/chunk-IQFNHQWP.cjs.map +0 -1
  660. package/dist/chunk-IZ4QM7O4.js +0 -1304
  661. package/dist/chunk-IZ4QM7O4.js.map +0 -1
  662. package/dist/chunk-J5JCXSAS.cjs +0 -117
  663. package/dist/chunk-J5JCXSAS.cjs.map +0 -1
  664. package/dist/chunk-JI7HLIDL.cjs +0 -119
  665. package/dist/chunk-JI7HLIDL.cjs.map +0 -1
  666. package/dist/chunk-JWISA775.cjs +0 -92
  667. package/dist/chunk-JWISA775.cjs.map +0 -1
  668. package/dist/chunk-K3BLXPLA.cjs +0 -16
  669. package/dist/chunk-K3BLXPLA.cjs.map +0 -1
  670. package/dist/chunk-KATUDT3E.js +0 -45
  671. package/dist/chunk-KATUDT3E.js.map +0 -1
  672. package/dist/chunk-KGBWWS6I.js +0 -32
  673. package/dist/chunk-KGBWWS6I.js.map +0 -1
  674. package/dist/chunk-KQENBXPS.cjs +0 -34
  675. package/dist/chunk-KQENBXPS.cjs.map +0 -1
  676. package/dist/chunk-KTKJD4DM.js +0 -60
  677. package/dist/chunk-KTKJD4DM.js.map +0 -1
  678. package/dist/chunk-LNZP2O4P.js +0 -169
  679. package/dist/chunk-LNZP2O4P.js.map +0 -1
  680. package/dist/chunk-LWQP7OWA.js +0 -75
  681. package/dist/chunk-LWQP7OWA.js.map +0 -1
  682. package/dist/chunk-MRHQJNWF.cjs +0 -8
  683. package/dist/chunk-MRHQJNWF.cjs.map +0 -1
  684. package/dist/chunk-MSI6FVGG.js +0 -6
  685. package/dist/chunk-MSI6FVGG.js.map +0 -1
  686. package/dist/chunk-N4COL54U.cjs +0 -22
  687. package/dist/chunk-N4COL54U.cjs.map +0 -1
  688. package/dist/chunk-NFJKJGXR.js +0 -397
  689. package/dist/chunk-NFJKJGXR.js.map +0 -1
  690. package/dist/chunk-NH2TQGRL.cjs +0 -28
  691. package/dist/chunk-NH2TQGRL.cjs.map +0 -1
  692. package/dist/chunk-NHYL5QPM.js +0 -74
  693. package/dist/chunk-NHYL5QPM.js.map +0 -1
  694. package/dist/chunk-ON4ILCHP.js +0 -1822
  695. package/dist/chunk-ON4ILCHP.js.map +0 -1
  696. package/dist/chunk-PLF4JX5B.cjs +0 -155
  697. package/dist/chunk-PLF4JX5B.cjs.map +0 -1
  698. package/dist/chunk-PSR3N4NC.js +0 -136
  699. package/dist/chunk-PSR3N4NC.js.map +0 -1
  700. package/dist/chunk-QHD4LPAQ.cjs +0 -8
  701. package/dist/chunk-QHD4LPAQ.cjs.map +0 -1
  702. package/dist/chunk-QNF3L4B7.js +0 -115
  703. package/dist/chunk-QNF3L4B7.js.map +0 -1
  704. package/dist/chunk-RBN3ITTM.js +0 -153
  705. package/dist/chunk-RBN3ITTM.js.map +0 -1
  706. package/dist/chunk-RRC5RKF7.cjs +0 -12
  707. package/dist/chunk-RRC5RKF7.cjs.map +0 -1
  708. package/dist/chunk-RXYT7EMN.cjs +0 -318
  709. package/dist/chunk-RXYT7EMN.cjs.map +0 -1
  710. package/dist/chunk-S46FMY4G.cjs +0 -64
  711. package/dist/chunk-S46FMY4G.cjs.map +0 -1
  712. package/dist/chunk-S6BWQKHJ.cjs +0 -116
  713. package/dist/chunk-S6BWQKHJ.cjs.map +0 -1
  714. package/dist/chunk-SFTI6QFB.cjs +0 -85
  715. package/dist/chunk-SFTI6QFB.cjs.map +0 -1
  716. package/dist/chunk-SNP577FA.cjs +0 -346
  717. package/dist/chunk-SNP577FA.cjs.map +0 -1
  718. package/dist/chunk-SUVM3S2T.cjs +0 -69
  719. package/dist/chunk-SUVM3S2T.cjs.map +0 -1
  720. package/dist/chunk-SYZ5OFNT.js +0 -114
  721. package/dist/chunk-SYZ5OFNT.js.map +0 -1
  722. package/dist/chunk-SZBW4EE2.cjs +0 -180
  723. package/dist/chunk-SZBW4EE2.cjs.map +0 -1
  724. package/dist/chunk-T526LPBK.js +0 -6
  725. package/dist/chunk-T526LPBK.js.map +0 -1
  726. package/dist/chunk-TBHJQCAE.js +0 -64
  727. package/dist/chunk-TBHJQCAE.js.map +0 -1
  728. package/dist/chunk-U3E5YMLO.cjs +0 -82
  729. package/dist/chunk-U3E5YMLO.cjs.map +0 -1
  730. package/dist/chunk-U5SE6W5M.cjs +0 -158
  731. package/dist/chunk-U5SE6W5M.cjs.map +0 -1
  732. package/dist/chunk-UUY6LQT6.cjs +0 -267
  733. package/dist/chunk-UUY6LQT6.cjs.map +0 -1
  734. package/dist/chunk-UVX733BX.js +0 -83
  735. package/dist/chunk-UVX733BX.js.map +0 -1
  736. package/dist/chunk-V6FT3RTU.cjs +0 -42
  737. package/dist/chunk-V6FT3RTU.cjs.map +0 -1
  738. package/dist/chunk-VB56OVFM.cjs +0 -312
  739. package/dist/chunk-VB56OVFM.cjs.map +0 -1
  740. package/dist/chunk-WQ7NNIJ3.js +0 -33
  741. package/dist/chunk-WQ7NNIJ3.js.map +0 -1
  742. package/dist/chunk-WUFODWZV.js +0 -177
  743. package/dist/chunk-WUJ53PP7.cjs +0 -76
  744. package/dist/chunk-WUJ53PP7.cjs.map +0 -1
  745. package/dist/chunk-XPDEQND7.cjs +0 -4
  746. package/dist/chunk-XPDEQND7.cjs.map +0 -1
  747. package/dist/chunk-YDOSWWE4.cjs +0 -419
  748. package/dist/chunk-YDOSWWE4.cjs.map +0 -1
  749. package/dist/chunk-YGEJDWGG.js +0 -19
  750. package/dist/chunk-YGEJDWGG.js.map +0 -1
  751. package/dist/chunk-YXGBD4WP.cjs +0 -16
  752. package/dist/chunk-YXGBD4WP.cjs.map +0 -1
  753. package/dist/chunk-ZOREOLGE.js +0 -264
  754. package/dist/chunk-ZOREOLGE.js.map +0 -1
  755. package/dist/constants/index.cjs.map +0 -1
  756. package/dist/constants/index.js.map +0 -1
  757. package/dist/createFetchClient-BHAsPDgF.d.cts +0 -86
  758. package/dist/createFetchClient-CFIwc6Lh.d.ts +0 -86
  759. package/dist/createGenericFetchClient-JcbIIqwF.d.cts +0 -18
  760. package/dist/createGenericFetchClient-ZGG5wbAC.d.ts +0 -18
  761. package/dist/createOpenapiFetchClient-CduEua6F.d.cts +0 -24
  762. package/dist/createOpenapiFetchClient-wLlVgp3k.d.ts +0 -24
  763. package/dist/dataScience/index.cjs.map +0 -1
  764. package/dist/dataScience/index.js.map +0 -1
  765. package/dist/dataScience/types.cjs.map +0 -1
  766. package/dist/dataScience/types.js.map +0 -1
  767. package/dist/domain/permissions/index.cjs.map +0 -1
  768. package/dist/domain/permissions/index.js.map +0 -1
  769. package/dist/domain/storageTable/index.cjs.map +0 -1
  770. package/dist/domain/storageTable/index.js.map +0 -1
  771. package/dist/editor/types.cjs.map +0 -1
  772. package/dist/editor/types.js.map +0 -1
  773. package/dist/encryption/types.cjs.map +0 -1
  774. package/dist/encryption/types.js.map +0 -1
  775. package/dist/import/index.cjs.map +0 -1
  776. package/dist/import/index.js.map +0 -1
  777. package/dist/keboolaUID-D1DGSbge.d.cts +0 -19
  778. package/dist/keboolaUID-D1DGSbge.d.ts +0 -19
  779. package/dist/management/index.cjs.map +0 -1
  780. package/dist/management/index.js.map +0 -1
  781. package/dist/management/types.cjs.map +0 -1
  782. package/dist/management/types.js.map +0 -1
  783. package/dist/metastore/index.cjs.map +0 -1
  784. package/dist/metastore/index.js.map +0 -1
  785. package/dist/metastore/types.cjs.map +0 -1
  786. package/dist/metastore/types.js.map +0 -1
  787. package/dist/notifications/types.cjs.map +0 -1
  788. package/dist/notifications/types.js.map +0 -1
  789. package/dist/oauth/index.cjs.map +0 -1
  790. package/dist/oauth/index.js.map +0 -1
  791. package/dist/oauth/types.cjs.map +0 -1
  792. package/dist/oauth/types.js.map +0 -1
  793. package/dist/omnisearch/types.cjs.map +0 -1
  794. package/dist/omnisearch/types.js.map +0 -1
  795. package/dist/project-Dmr-zrQG.d.ts +0 -17
  796. package/dist/project-DstzWVMN.d.cts +0 -17
  797. package/dist/queryService/index.cjs.map +0 -1
  798. package/dist/queryService/index.js.map +0 -1
  799. package/dist/queryService/types.cjs.map +0 -1
  800. package/dist/queryService/types.js.map +0 -1
  801. package/dist/queue/index.cjs.map +0 -1
  802. package/dist/queue/index.js.map +0 -1
  803. package/dist/queue/types.cjs.map +0 -1
  804. package/dist/queue/types.js.map +0 -1
  805. package/dist/registry-CcKlB-yY.d.ts +0 -1046
  806. package/dist/registry-Cg0Yng1z.d.cts +0 -1046
  807. package/dist/scheduler/types.cjs.map +0 -1
  808. package/dist/scheduler/types.js.map +0 -1
  809. package/dist/sdk/configurations/index.cjs.map +0 -1
  810. package/dist/sdk/configurations/index.js.map +0 -1
  811. package/dist/sdk/semanticLayer/types.cjs.map +0 -1
  812. package/dist/sdk/semanticLayer/types.js.map +0 -1
  813. package/dist/sdk/tag/index.cjs.map +0 -1
  814. package/dist/sdk/tag/index.js.map +0 -1
  815. package/dist/sdk/tag/types.cjs.map +0 -1
  816. package/dist/sdk/tag/types.js.map +0 -1
  817. package/dist/status/types.cjs.map +0 -1
  818. package/dist/status/types.js.map +0 -1
  819. package/dist/storage/index.cjs.map +0 -1
  820. package/dist/storage/index.js.map +0 -1
  821. package/dist/storage/types.cjs.map +0 -1
  822. package/dist/storage/types.js.map +0 -1
  823. package/dist/storageClient-BAid0vi2.d.cts +0 -1750
  824. package/dist/storageClient-BX50Attd.d.ts +0 -1750
  825. package/dist/storageSdk-BS5982c_.d.cts +0 -753
  826. package/dist/storageSdk-BeJcnEIO.d.ts +0 -753
  827. package/dist/stream/types.cjs.map +0 -1
  828. package/dist/stream/types.js.map +0 -1
  829. package/dist/syncActions/index.cjs.map +0 -1
  830. package/dist/syncActions/index.js.map +0 -1
  831. package/dist/syncActions/types.cjs.map +0 -1
  832. package/dist/syncActions/types.js.map +0 -1
  833. package/dist/telemetry/index.cjs.map +0 -1
  834. package/dist/telemetry/index.js.map +0 -1
  835. package/dist/telemetry/types.cjs.map +0 -1
  836. package/dist/telemetry/types.js.map +0 -1
  837. package/dist/types-C5DdOzx8.d.cts +0 -12
  838. package/dist/types-C_jxWM7A.d.ts +0 -12
  839. package/dist/types-UwuKN9Kx.d.cts +0 -60
  840. package/dist/types-UwuKN9Kx.d.ts +0 -60
  841. package/dist/types-f8dUjMX4.d.cts +0 -90
  842. package/dist/types-f8dUjMX4.d.ts +0 -90
  843. package/dist/vault/types.cjs.map +0 -1
  844. package/dist/vault/types.js.map +0 -1
@@ -0,0 +1,497 @@
1
+ import { s as defaultValidateStatus } from "./createFetchClient-B1h3-p65.js";
2
+ import { t as SyncActionError } from "./SyncActionError-CoZFsdUk.js";
3
+ import { r as parseOrThrow } from "./ValidationError-CzPWydEb.js";
4
+ import { t as createGenericFetchClient } from "./createGenericFetchClient-DhpvUSlX.js";
5
+ import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-0_oqhdPv.js";
6
+ import { t as createAuthHeaders } from "./auth-CE6Hlc9W.js";
7
+ import { t as ComponentId } from "./componentId-vJz-kWs6.js";
8
+ import * as z$1 from "zod";
9
+ //#region src/clients/syncActions/utils/response.ts
10
+ const asErrorBody = (data) => typeof data === "object" && data !== null ? data : null;
11
+ const asString = (value) => typeof value === "string" && value ? value : void 0;
12
+ const asNumber = (value) => typeof value === "number" ? value : void 0;
13
+ /**
14
+ * A component reports failure two ways: a non-2xx response, and a **2xx** whose body carries
15
+ * `status: 'error'` (the component ran, and said no). Both are recognised here so every sync action
16
+ * fails as one `SyncActionError` — `validateStatus` is the only hook that sees the parsed body of a
17
+ * successful response, which is what the second case needs.
18
+ *
19
+ * Throwing rather than returning the error is deliberate. `coreFetch` only rethrows a returned value
20
+ * that is an `ApiError`, and `SyncActionError` is a peer of `ApiError`, not a subclass: a component
21
+ * answering `status: 'error'` on a **200** gave a business answer, not a transport failure, so it
22
+ * must not satisfy `isApiError` / `isFetchClientError` — those drive retry and "network problem"
23
+ * handling, and `err.response.status` would read 200 and mislead every status-based branch.
24
+ */
25
+ const syncActionValidateStatus = (apiResponse) => {
26
+ const body = asErrorBody(apiResponse.data);
27
+ if (body?.status === "error") throw new SyncActionError(asString(body.message) ?? asString(body.error) ?? apiResponse.response.statusText, {
28
+ exceptionId: asString(body.exceptionId),
29
+ code: asNumber(body.code),
30
+ data: apiResponse.data
31
+ });
32
+ return defaultValidateStatus(apiResponse);
33
+ };
34
+ //#endregion
35
+ //#region src/clients/syncActions/constants.ts
36
+ const SyncAction = {
37
+ DATA_APP_GIT_REPOSITORY: "git-repository",
38
+ DATA_APP_ENTRYPOINTS: "data-app-entrypoints",
39
+ DBT_COMPILE: "dbtCompile",
40
+ DBT_RUN_RESULTS: "dbtRunResults",
41
+ GIT_REPOSITORY: "gitRepository",
42
+ ENROLL_MFA: "enrollMFA",
43
+ LIST_ACTORS: "listActors",
44
+ LIST_TASKS: "listTasks",
45
+ TEST_LOOKER_CREDENTIALS: "testLookerCredentials"
46
+ };
47
+ //#endregion
48
+ //#region src/clients/syncActions/schemas.ts
49
+ /**
50
+ * The Keboola-side context every sync action carries, whichever action it is. Namespaces extend it
51
+ * with the fields their own action needs, so a caller never assembles the rest of the body.
52
+ */
53
+ const syncActionContextSchema = z$1.object({
54
+ /**
55
+ * Required, because omitting it changes nothing: the service normalises a missing, empty or
56
+ * `null` value to `"default"` and resolves that to the default branch's numeric id — the same id,
57
+ * branch type and downstream context an explicit value resolves to, with no extra lookup either
58
+ * way. Requiring it keeps every request self-describing. Both a numeric id and the literal
59
+ * `"default"` are accepted (`keboola/runner-sync-api`: `ExecuteActionRequestProcessor` →
60
+ * `BranchTypeResolver`).
61
+ */
62
+ branchId: z$1.string().min(1, "Required"),
63
+ /**
64
+ * Leave undefined. The service then runs the component's registered tag from the Developer
65
+ * Portal / Storage component definition — the currently published version, not Docker's
66
+ * `latest`. Set it only to deliberately pin a specific or branch build.
67
+ */
68
+ tag: z$1.string().optional(),
69
+ mode: z$1.enum(["run", "debug"]).optional()
70
+ });
71
+ /**
72
+ * The `/actions` request body. `configData` is whatever the component's action expects, so it is
73
+ * only asserted to be an object here — each namespace validates the shape its own action needs
74
+ * before handing it over.
75
+ */
76
+ const syncActionBodySchema = syncActionContextSchema.extend({
77
+ componentId: z$1.string().min(1, "Required"),
78
+ action: z$1.string().min(1, "Required"),
79
+ configData: z$1.record(z$1.string(), z$1.unknown())
80
+ });
81
+ //#endregion
82
+ //#region src/clients/syncActions/apify/schemas.ts
83
+ const apifyObjectsInputSchema = syncActionContextSchema.extend({ "#token": z$1.string().min(1, "Required") });
84
+ const apifyObjectsSchema = z$1.array(z$1.object({
85
+ id: z$1.string(),
86
+ name: z$1.string()
87
+ }));
88
+ //#endregion
89
+ //#region src/clients/syncActions/apify/utils.ts
90
+ /**
91
+ * A slow Apify account makes the component answer `{ timeout: true }` on a 200 instead of the list —
92
+ * a failure only this action knows how to spot, so it is checked before deferring to the shared
93
+ * validation.
94
+ */
95
+ const apifyValidateStatus = (apiResponse) => {
96
+ const data = apiResponse.data;
97
+ if (typeof data === "object" && data !== null && "timeout" in data && data.timeout) throw new SyncActionError("Timed out while loading data from Apify.", { data });
98
+ return syncActionValidateStatus(apiResponse);
99
+ };
100
+ //#endregion
101
+ //#region src/clients/syncActions/apify/apify.ts
102
+ const createApify = (sendSyncAction) => {
103
+ const _getObjects = async (action, input, signal) => {
104
+ const { "#token": token, ...context } = parseOrThrow(apifyObjectsInputSchema, input);
105
+ const data = await sendSyncAction({
106
+ ...context,
107
+ action,
108
+ componentId: ComponentId.APIFY,
109
+ configData: { parameters: { "#token": token } }
110
+ }, {
111
+ signal,
112
+ validateStatus: apifyValidateStatus
113
+ });
114
+ return parseOrThrow(apifyObjectsSchema, data);
115
+ };
116
+ const getActors = (input, signal) => {
117
+ return _getObjects(SyncAction.LIST_ACTORS, input, signal);
118
+ };
119
+ const getTasks = (input, signal) => {
120
+ return _getObjects(SyncAction.LIST_TASKS, input, signal);
121
+ };
122
+ return {
123
+ getActors,
124
+ getTasks
125
+ };
126
+ };
127
+ //#endregion
128
+ //#region src/clients/syncActions/dbt/schemas.ts
129
+ /**
130
+ * `componentId` is a plain string here, unlike the git actions' closed enum. Every dbt transformation
131
+ * answers `dbtCompile` and `dbtRunResults` under the same action name and the same payload, so the id
132
+ * selects nothing — it only names the component to run, and rejecting an unlisted one would cost the
133
+ * caller a cast for no guarantee. The component itself refuses an action it does not serve.
134
+ */
135
+ const dbtActionInputSchema = syncActionContextSchema.extend({
136
+ componentId: z$1.string().min(1, "Required"),
137
+ configId: z$1.string().min(1, "Required"),
138
+ artifacts: z$1.record(z$1.string(), z$1.unknown()).optional()
139
+ });
140
+ /**
141
+ * `compiled` maps a model's file name (`orders.sql`) to its compiled SQL. Key order is the
142
+ * component's own and is preserved, so the caller can render the models in it.
143
+ *
144
+ * A configuration that has never run does **not** answer with an empty payload — the component
145
+ * raises a user exception telling you to run it first, which arrives as a `SyncActionError` carrying
146
+ * that sentence. The empty default here is only for a payload that omits the key anyway: rendering
147
+ * "nothing to show" beats failing on a validation error no caller can act on. A key that is
148
+ * *present* with the wrong shape still fails — that is a contract change, and reading it as "no
149
+ * models" would hide it.
150
+ */
151
+ const dbtCompiledSchema = z$1.object({ compiled: z$1.record(z$1.string(), z$1.string()).default({}) }).transform(({ compiled }) => compiled);
152
+ /**
153
+ * dbt reports the worker as `"Thread-1"`; the number alone is what a consumer positions a row by, so
154
+ * the prefix is stripped here rather than in every consumer. An unparseable value falls back to `0`
155
+ * — one odd worker label must not cost the caller the whole timeline.
156
+ */
157
+ const dbtThreadSchema = z$1.string().transform((thread) => Number.parseInt(thread.replace(/^Thread-/, ""), 10)).pipe(z$1.number().int().nonnegative()).catch(0);
158
+ /** Each entry also carries `status` and `dependsOn`, dropped here until a consumer needs them. */
159
+ const dbtModelTimingSchema = z$1.object({
160
+ id: z$1.string(),
161
+ name: z$1.string(),
162
+ thread: dbtThreadSchema,
163
+ /** ISO timestamps, left as strings — the consumer decides what to parse them into. */
164
+ timeStarted: z$1.string(),
165
+ timeCompleted: z$1.string()
166
+ });
167
+ /** Defaults to empty for the same reason as `compiled` above — and with the same caveat. */
168
+ const dbtRunResultsSchema = z$1.object({ modelTiming: z$1.array(dbtModelTimingSchema).default([]) }).transform(({ modelTiming }) => modelTiming);
169
+ //#endregion
170
+ //#region src/clients/syncActions/dbt/utils.ts
171
+ /**
172
+ * Both dbt artifact actions read the *stored* configuration — `configId` is what they resolve it by,
173
+ * so the payload carries no settings of its own. `artifacts` is the configuration's own artifacts
174
+ * section, passed through untouched: it selects which run's artifacts the component picks up, and
175
+ * omitting it leaves the component on its default (the latest run).
176
+ */
177
+ const buildDbtActionConfigData = ({ configId, artifacts }) => ({
178
+ parameters: { configId },
179
+ ...artifacts && { artifacts }
180
+ });
181
+ //#endregion
182
+ //#region src/clients/syncActions/dbt/dbt.ts
183
+ /** The dbt transformations' artifact actions — both read what the *last run* left behind. */
184
+ const createDbt = (sendSyncAction) => {
185
+ const sendDbtAction = (action, input, signal) => {
186
+ const { componentId, configId, artifacts, ...context } = parseOrThrow(dbtActionInputSchema, input);
187
+ return sendSyncAction({
188
+ ...context,
189
+ componentId,
190
+ action,
191
+ configData: buildDbtActionConfigData({
192
+ configId,
193
+ artifacts
194
+ })
195
+ }, { signal });
196
+ };
197
+ /** The compiled SQL of every model in the configuration. */
198
+ const compile = async (input, signal) => {
199
+ const data = await sendDbtAction(SyncAction.DBT_COMPILE, input, signal);
200
+ return parseOrThrow(dbtCompiledSchema, data);
201
+ };
202
+ /** When each model of the last run started and finished, and on which worker. */
203
+ const runResults = async (input, signal) => {
204
+ const data = await sendDbtAction(SyncAction.DBT_RUN_RESULTS, input, signal);
205
+ return parseOrThrow(dbtRunResultsSchema, data);
206
+ };
207
+ return {
208
+ compile,
209
+ runResults
210
+ };
211
+ };
212
+ //#endregion
213
+ //#region src/clients/syncActions/git/constants.ts
214
+ /**
215
+ * Components whose git repository lives under `parameters.dataApp.git.repository` and that answer to
216
+ * the `git-repository` action. They are the only ones serving `data-app-entrypoints`, and the only
217
+ * ones accepting an SSH key.
218
+ */
219
+ const DATA_APP_FAMILY = [ComponentId.DATA_APPS, ComponentId.SANDBOXES];
220
+ /**
221
+ * Components whose git repository lives under `parameters.git.repo` and that answer to the
222
+ * `gitRepository` action. They authenticate over HTTPS with a username and password only.
223
+ *
224
+ * Deliberately a list rather than "everything else": `listBranches` / `list_branches` /
225
+ * `checkBranches` also exist on unrelated third-party components (`kds-team.app-custom-python`,
226
+ * `keboola.app-transformation-migration`, `kds-team.app-sox-migration-checker`) under a different
227
+ * contract. Those stay on the generic `sendSyncAction` escape hatch.
228
+ */
229
+ const DBT_FAMILY = [
230
+ ComponentId.DBT_TEST_CORE_KEY_PAIR,
231
+ ComponentId.DBT_TEST_REMOTE_SNOWFLAKE,
232
+ ComponentId.DBT_TRANSFORMATION,
233
+ ComponentId.DBT_TRANSFORMATION_LOCAL_BIGQUERY,
234
+ ComponentId.DBT_TRANSFORMATION_REMOTE_BIGQUERY,
235
+ ComponentId.DBT_TRANSFORMATION_REMOTE_MSSQL,
236
+ ComponentId.DBT_TRANSFORMATION_REMOTE_POSTGRESQL,
237
+ ComponentId.DBT_TRANSFORMATION_REMOTE_REDSHIFT,
238
+ ComponentId.DBT_TRANSFORMATION_REMOTE_SNOWFLAKE
239
+ ];
240
+ const GIT_FAMILY = [...DATA_APP_FAMILY, ...DBT_FAMILY];
241
+ const dataAppIds = new Set(DATA_APP_FAMILY);
242
+ const isDataAppFamily = (componentId) => dataAppIds.has(componentId);
243
+ //#endregion
244
+ //#region src/clients/syncActions/git/schemas.ts
245
+ const gitAuthSchema = z$1.discriminatedUnion("type", [
246
+ z$1.object({ type: z$1.literal("public") }),
247
+ z$1.object({
248
+ type: z$1.literal("password"),
249
+ username: z$1.string().min(1, "Required"),
250
+ "#password": z$1.string().min(1, "Required")
251
+ }),
252
+ z$1.object({
253
+ type: z$1.literal("sshKey"),
254
+ /**
255
+ * Optional, unlike the password variant's — the key is the whole credential.
256
+ *
257
+ * - The component rewrites the URL to `git@host:path` and clones over SSH, where the user is
258
+ * always `git` (`keboola/sandboxes`: `GitRepository::resolveRepositoryUrl`).
259
+ * - It never reads `username` on that path, so a deploy key has none to be stored with.
260
+ * - Accept one when the caller has it anyway; it reaches the component and is ignored there.
261
+ */
262
+ username: z$1.string().min(1, "Required").optional(),
263
+ "#sshKey": z$1.string().min(1, "Required")
264
+ })
265
+ ]);
266
+ const gitInputSchema = syncActionContextSchema.extend({
267
+ repositoryUrl: z$1.string().min(1, "Required"),
268
+ auth: gitAuthSchema.default({ type: "public" })
269
+ });
270
+ /**
271
+ * Accepts only the components that serve a git repository action — the action name and the
272
+ * `configData` path are resolved from the id, so one from neither family has nowhere to go. The
273
+ * enum rejects an unsupported id when parsing, before any request is sent.
274
+ *
275
+ * **Takes no `branch`, deliberately — do not add one.** It is a run-config field the component
276
+ * feeds to `git clone -b <branch>`, so a stale or renamed value fails the clone and breaks the very
277
+ * call you make to find out which branches exist. Accepting it optionally would let a caller
278
+ * reintroduce that by spreading in an existing config; zod strips it instead.
279
+ */
280
+ const getBranchesInputSchema = gitInputSchema.extend({ componentId: z$1.enum(GIT_FAMILY) }).check((ctx) => {
281
+ const { componentId, auth } = ctx.value;
282
+ if (auth.type !== "sshKey" || isDataAppFamily(componentId)) return;
283
+ ctx.issues.push({
284
+ code: "custom",
285
+ input: auth,
286
+ path: ["auth"],
287
+ message: `Component "${componentId}" authenticates with a password, not an SSH key.`
288
+ });
289
+ });
290
+ /** Only the data-app family serves `data-app-entrypoints`; the enum rejects anything else. */
291
+ const getEntrypointsInputSchema = gitInputSchema.extend({
292
+ componentId: z$1.enum(DATA_APP_FAMILY),
293
+ /**
294
+ * Unlike `getBranches`, the branch is a real input here — it selects whose revision's files get
295
+ * enumerated. The *git* branch, not the dev branch (`branchId`) every sync action carries.
296
+ * Omit it for the repository's default branch; don't resolve one client-side.
297
+ *
298
+ * An empty string normalises to omitted rather than being rejected: a config written outside the
299
+ * UI can carry `branch: ""`, and the form this replaces deleted a falsy branch before sending, so
300
+ * refusing it would fail a call that has always meant "the default branch".
301
+ */
302
+ branch: z$1.string().optional().transform((branch) => branch || void 0)
303
+ });
304
+ /**
305
+ * Only `branch` is load-bearing — it is the value the caller selects and stores. The rest is
306
+ * decoration the UI renders beside it, so each field falls back to an empty string rather than
307
+ * failing: one commit with no message must not cost the caller the whole branch list. They stay
308
+ * `string` rather than becoming optional, so a consumer needs no new undefined handling.
309
+ */
310
+ const gitBranchSchema = z$1.object({
311
+ branch: z$1.string(),
312
+ sha: z$1.string().catch(""),
313
+ date: z$1.string().catch(""),
314
+ comment: z$1.string().catch(""),
315
+ author: z$1.object({
316
+ name: z$1.string().catch(""),
317
+ email: z$1.string().catch("")
318
+ }).catch({
319
+ name: "",
320
+ email: ""
321
+ })
322
+ });
323
+ /**
324
+ * Only `repository.branches` is confirmed — it is what the UI read before these actions were typed.
325
+ * The top-level position is accepted too because the schema this replaces declared it there, and
326
+ * nothing ever exercised that schema to settle which is right; the two families are separate
327
+ * implementations, so both may well be real.
328
+ *
329
+ * A list in neither position is a different thing from an empty one, though, and is rejected rather
330
+ * than read as none: an empty array is a real answer (a repository with no branches yet), while an
331
+ * envelope carrying no list at all is one we do not understand, and rendering that as "no branches"
332
+ * would hide the failure behind an ordinary empty state.
333
+ */
334
+ /**
335
+ * Either a JSON array or an object keyed by stringified indices, gaps included:
336
+ * `{ "0": …, "1": …, "3": … }`. The component filters the list server-side, and a PHP array whose
337
+ * integer keys are no longer contiguous serializes as an object. `Object.values` reads those keys
338
+ * back in ascending numeric order, so the branch order survives either shape.
339
+ */
340
+ const gitBranchListSchema = z$1.union([z$1.array(gitBranchSchema), z$1.record(z$1.string(), gitBranchSchema)]).transform((branches) => Array.isArray(branches) ? branches : Object.values(branches));
341
+ const gitBranchesSchema = z$1.object({
342
+ repository: z$1.object({ branches: gitBranchListSchema.optional() }).optional(),
343
+ branches: gitBranchListSchema.optional()
344
+ }).check((ctx) => {
345
+ if (ctx.value.branches ?? ctx.value.repository?.branches) return;
346
+ ctx.issues.push({
347
+ code: "custom",
348
+ input: ctx.value,
349
+ message: "The response carried no branch list."
350
+ });
351
+ }).transform(({ repository, branches }) => branches ?? repository?.branches ?? []);
352
+ const gitEntrypointsSchema = z$1.object({ entrypoints: z$1.array(z$1.string()) });
353
+ //#endregion
354
+ //#region src/clients/syncActions/git/utils.ts
355
+ /** Every variant is already the shape the components read, minus the discriminator. */
356
+ const toCredentials = (auth) => {
357
+ const { type: _type, ...credentials } = auth;
358
+ return credentials;
359
+ };
360
+ /** The default is the absence of a branch — the component's own `git clone` decides it. */
361
+ const toRevision = (rev) => rev.revision === "branch" ? { branch: rev.branch } : {};
362
+ /** Data apps nest their repository a level deeper, and call the URL `repository`. */
363
+ const buildDataAppConfigData = ({ repositoryUrl, auth, ...rev }) => ({ parameters: { dataApp: { git: {
364
+ repository: repositoryUrl,
365
+ ...toCredentials(auth),
366
+ ...toRevision(rev)
367
+ } } } });
368
+ /** dbt transformations keep the same settings at the top of `parameters`, under `repo`. */
369
+ const buildDbtConfigData = ({ repositoryUrl, auth, ...rev }) => ({ parameters: { git: {
370
+ repo: repositoryUrl,
371
+ ...toCredentials(auth),
372
+ ...toRevision(rev)
373
+ } } });
374
+ //#endregion
375
+ //#region src/clients/syncActions/git/git.ts
376
+ /**
377
+ * Git repository actions, across both component families that serve them — the data apps
378
+ * (`git-repository`) and the dbt transformations (`gitRepository`). Which action name and which
379
+ * `configData` shape a call uses is resolved from `componentId`; see `./constants`.
380
+ */
381
+ const createGit = (sendSyncAction) => {
382
+ const getBranches = async (input, signal) => {
383
+ const { componentId, repositoryUrl, auth, ...context } = parseOrThrow(getBranchesInputSchema, input);
384
+ const isDataApp = isDataAppFamily(componentId);
385
+ const action = isDataApp ? SyncAction.DATA_APP_GIT_REPOSITORY : SyncAction.GIT_REPOSITORY;
386
+ const buildConfigData = isDataApp ? buildDataAppConfigData : buildDbtConfigData;
387
+ const data = await sendSyncAction({
388
+ ...context,
389
+ componentId,
390
+ action,
391
+ configData: buildConfigData({
392
+ repositoryUrl,
393
+ auth,
394
+ revision: "default"
395
+ })
396
+ }, { signal });
397
+ return parseOrThrow(gitBranchesSchema, data);
398
+ };
399
+ const getEntrypoints = async (input, signal) => {
400
+ const { componentId, repositoryUrl, auth, branch, ...context } = parseOrThrow(getEntrypointsInputSchema, input);
401
+ const data = await sendSyncAction({
402
+ ...context,
403
+ componentId,
404
+ action: SyncAction.DATA_APP_ENTRYPOINTS,
405
+ configData: buildDataAppConfigData({
406
+ repositoryUrl,
407
+ auth,
408
+ ...branch ? {
409
+ revision: "branch",
410
+ branch
411
+ } : { revision: "default" }
412
+ })
413
+ }, { signal });
414
+ return parseOrThrow(gitEntrypointsSchema, data);
415
+ };
416
+ return {
417
+ getBranches,
418
+ getEntrypoints
419
+ };
420
+ };
421
+ //#endregion
422
+ //#region src/clients/syncActions/looker/schemas.ts
423
+ const testLookerCredentialsInputSchema = syncActionContextSchema.extend({
424
+ credentialsId: z$1.string().min(1, "Required"),
425
+ "#token": z$1.string().min(1, "Required"),
426
+ host: z$1.string().min(1, "Required")
427
+ });
428
+ /** The component answers with a status envelope only — there is no payload to model. */
429
+ const lookerCredentialsResultSchema = z$1.object({
430
+ status: z$1.string().optional(),
431
+ message: z$1.string().optional()
432
+ });
433
+ //#endregion
434
+ //#region src/clients/syncActions/looker/looker.ts
435
+ const createLooker = (sendSyncAction) => {
436
+ /** Registers the project's Looker credentials; throws `SyncActionError` when Looker rejects them. */
437
+ const testCredentials = async (input, signal) => {
438
+ const { credentialsId, "#token": token, host, ...context } = parseOrThrow(testLookerCredentialsInputSchema, input);
439
+ const data = await sendSyncAction({
440
+ ...context,
441
+ action: SyncAction.TEST_LOOKER_CREDENTIALS,
442
+ componentId: ComponentId.WR_LOOKER_V2,
443
+ configData: { parameters: { looker: {
444
+ credentialsId,
445
+ "#token": token,
446
+ host
447
+ } } }
448
+ }, { signal });
449
+ return parseOrThrow(lookerCredentialsResultSchema, data);
450
+ };
451
+ return { testCredentials };
452
+ };
453
+ //#endregion
454
+ //#region src/clients/syncActions/syncActionsClient.ts
455
+ const createSendSyncAction = (client) => {
456
+ return async (body, options = {}) => {
457
+ const { data } = await client.post("/actions", { body: parseOrThrow(syncActionBodySchema, body) }, options);
458
+ return data;
459
+ };
460
+ };
461
+ const createSyncActionsClient = ({ baseUrl, middlewares, auth }) => {
462
+ const client = createOpenapiFetchClient({
463
+ baseUrl,
464
+ middlewares,
465
+ headers: createAuthHeaders(auth),
466
+ validateStatus: syncActionValidateStatus
467
+ });
468
+ const genericClient = createGenericFetchClient({
469
+ baseUrl,
470
+ middlewares
471
+ });
472
+ const sendSyncAction = createSendSyncAction(client);
473
+ const enrollMFA = ({ email, ...rest }, signal) => {
474
+ return sendSyncAction({
475
+ ...rest,
476
+ action: SyncAction.ENROLL_MFA,
477
+ configData: { parameters: { user: { email } } }
478
+ }, { signal });
479
+ };
480
+ const healthCheck = async (signal) => {
481
+ const { data } = await genericClient.get("/health-check", {}, { signal });
482
+ return data;
483
+ };
484
+ return {
485
+ healthCheck,
486
+ sendSyncAction,
487
+ enrollMFA,
488
+ apify: createApify(sendSyncAction),
489
+ dbt: createDbt(sendSyncAction),
490
+ git: createGit(sendSyncAction),
491
+ looker: createLooker(sendSyncAction)
492
+ };
493
+ };
494
+ //#endregion
495
+ export { createSyncActionsClient as t };
496
+
497
+ //# sourceMappingURL=syncActions-AgFiMjRS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syncActions-AgFiMjRS.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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