@keboola/api-client 49.0.0 → 50.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 (562) hide show
  1. package/AGENTS.md +109 -95
  2. package/API-SURFACE.md +12 -31
  3. package/CHANGELOG.md +44 -0
  4. package/README.md +33 -29
  5. package/dist/{ManagementSessionMintError-Cu9beG7j.cjs → ManagementSessionMintError-ByOulHQH.cjs} +4 -6
  6. package/dist/{ManagementSessionMintError-Cu9beG7j.cjs.map → ManagementSessionMintError-ByOulHQH.cjs.map} +1 -1
  7. package/dist/{ManagementSessionMintError-4Pkn5Oob.js → ManagementSessionMintError-DNMbYauw.js} +4 -6
  8. package/dist/{ManagementSessionMintError-4Pkn5Oob.js.map → ManagementSessionMintError-DNMbYauw.js.map} +1 -1
  9. package/dist/{QueryJobError-ZZZ043Nm.js → QueryJobError-Iq9O90Uh.js} +2 -3
  10. package/dist/{QueryJobError-ZZZ043Nm.js.map → QueryJobError-Iq9O90Uh.js.map} +1 -1
  11. package/dist/{QueryJobError-irGiP5zh.cjs → QueryJobError-Oy0fl4aw.cjs} +2 -3
  12. package/dist/{QueryJobError-irGiP5zh.cjs.map → QueryJobError-Oy0fl4aw.cjs.map} +1 -1
  13. package/dist/{QueueJobError-8bThS_Mc.js → QueueJobError-BJNUINXW.js} +2 -3
  14. package/dist/{QueueJobError-8bThS_Mc.js.map → QueueJobError-BJNUINXW.js.map} +1 -1
  15. package/dist/{QueueJobError-6qSEizWo.cjs → QueueJobError-DruZK3tc.cjs} +2 -3
  16. package/dist/{QueueJobError-6qSEizWo.cjs.map → QueueJobError-DruZK3tc.cjs.map} +1 -1
  17. package/dist/{SyncActionError-CoZFsdUk.js → SyncActionError-DuGcDbkd.js} +2 -3
  18. package/dist/{SyncActionError-CoZFsdUk.js.map → SyncActionError-DuGcDbkd.js.map} +1 -1
  19. package/dist/{SyncActionError-BG0zwchi.cjs → SyncActionError-mbpVg63X.cjs} +2 -3
  20. package/dist/{SyncActionError-BG0zwchi.cjs.map → SyncActionError-mbpVg63X.cjs.map} +1 -1
  21. package/dist/{UserError-By_Zckmc.js → UserError-BxoOJJ_u.js} +2 -3
  22. package/dist/{UserError-By_Zckmc.js.map → UserError-BxoOJJ_u.js.map} +1 -1
  23. package/dist/{UserError-CSGO1qII.cjs → UserError-D4P9Tbhf.cjs} +2 -3
  24. package/dist/{UserError-CSGO1qII.cjs.map → UserError-D4P9Tbhf.cjs.map} +1 -1
  25. package/dist/{ValidationError-D65QU0uq.cjs → ValidationError-BXcFX4nD.cjs} +2 -3
  26. package/dist/{ValidationError-D65QU0uq.cjs.map → ValidationError-BXcFX4nD.cjs.map} +1 -1
  27. package/dist/{ValidationError-DjhtNMfZ.js → ValidationError-BsdFDGY2.js} +2 -3
  28. package/dist/{ValidationError-DjhtNMfZ.js.map → ValidationError-BsdFDGY2.js.map} +1 -1
  29. package/dist/{configurations-CL0ouUMa.js → admin-CbMOsfgs.js} +5 -53
  30. package/dist/admin-CbMOsfgs.js.map +1 -0
  31. package/dist/{configurations-D9J3jh3g.cjs → admin-Di-MmGFP.cjs} +4 -124
  32. package/dist/admin-Di-MmGFP.cjs.map +1 -0
  33. package/dist/{adminRoles-BX1gk3At.d.ts → adminRoles-DAwl657q.d.ts} +2 -4
  34. package/dist/{adminRoles-CO7J5qAy.cjs → adminRoles-DnFpO_2W.cjs} +2 -3
  35. package/dist/{adminRoles-CO7J5qAy.cjs.map → adminRoles-DnFpO_2W.cjs.map} +1 -1
  36. package/dist/{adminRoles-BbxFgfX-.d.cts → adminRoles-FFyl7Dyx.d.cts} +2 -4
  37. package/dist/{adminRoles-B40yBcmq.js → adminRoles-asa-MhDD.js} +2 -3
  38. package/dist/{adminRoles-B40yBcmq.js.map → adminRoles-asa-MhDD.js.map} +1 -1
  39. package/dist/ai/index.cjs +3 -4
  40. package/dist/ai/index.d.cts +2 -4
  41. package/dist/ai/index.d.ts +2 -4
  42. package/dist/ai/index.js +3 -4
  43. package/dist/ai/types.d.cts +1 -1
  44. package/dist/ai/types.d.ts +1 -1
  45. package/dist/{appLogs-DI2Y4imY.d.ts → appLogs-CTvZAihm.d.ts} +2 -4
  46. package/dist/{appLogs-IhRA3xyv.d.cts → appLogs-CnLNMH7M.d.cts} +2 -4
  47. package/dist/{appLogs-Cix2KWra.cjs → appLogs-CoAWQGxs.cjs} +5 -6
  48. package/dist/{appLogs-Cix2KWra.cjs.map → appLogs-CoAWQGxs.cjs.map} +1 -1
  49. package/dist/{appLogs-KslK7qHr.js → appLogs-DFcPwVk8.js} +4 -5
  50. package/dist/{appLogs-KslK7qHr.js.map → appLogs-DFcPwVk8.js.map} +1 -1
  51. package/dist/apps/index.cjs +28 -5
  52. package/dist/apps/index.cjs.map +1 -1
  53. package/dist/apps/index.d.cts +13 -5
  54. package/dist/apps/index.d.ts +13 -5
  55. package/dist/apps/index.js +28 -5
  56. package/dist/apps/index.js.map +1 -1
  57. package/dist/apps/types.d.cts +3 -3
  58. package/dist/apps/types.d.ts +3 -3
  59. package/dist/assets/index.cjs +2 -3
  60. package/dist/assets/index.d.cts +1 -3
  61. package/dist/assets/index.d.ts +1 -3
  62. package/dist/assets/index.js +2 -3
  63. package/dist/assets/schema.cjs +2 -3
  64. package/dist/assets/schema.d.cts +0 -2
  65. package/dist/assets/schema.d.ts +0 -2
  66. package/dist/assets/schema.js +1 -2
  67. package/dist/auth/index.cjs +1 -1
  68. package/dist/auth/index.d.cts +1 -1
  69. package/dist/auth/index.d.ts +1 -1
  70. package/dist/auth/index.js +1 -2
  71. package/dist/auth/types.d.cts +1 -1
  72. package/dist/auth/types.d.ts +1 -1
  73. package/dist/{auth-C8Pjl0Mu.cjs → auth-CvB4MukT.cjs} +3 -4
  74. package/dist/{auth-C8Pjl0Mu.cjs.map → auth-CvB4MukT.cjs.map} +1 -1
  75. package/dist/{auth-4coY1uwo.js → auth-DYfQMQCs.js} +3 -4
  76. package/dist/{auth-4coY1uwo.js.map → auth-DYfQMQCs.js.map} +1 -1
  77. package/dist/{authClient-DfkKlc-2.cjs → authClient-DcKBpMcU.cjs} +66 -85
  78. package/dist/{authClient-DfkKlc-2.cjs.map → authClient-DcKBpMcU.cjs.map} +1 -1
  79. package/dist/{authClient-6Aau_4Zt.d.ts → authClient-Df3U4q_6.d.cts} +4 -16
  80. package/dist/{authClient-B3P6WtWW.d.cts → authClient-JtMVJWXY.d.ts} +4 -16
  81. package/dist/{authClient-2e8ZmzSP.js → authClient-oB5ydxWp.js} +66 -85
  82. package/dist/{authClient-2e8ZmzSP.js.map → authClient-oB5ydxWp.js.map} +1 -1
  83. package/dist/{backends-DKBz5OxE.d.ts → backends-BHotIdL0.d.cts} +1 -3
  84. package/dist/{backends-DKBz5OxE.d.cts → backends-BHotIdL0.d.ts} +1 -3
  85. package/dist/billing/index.cjs +3 -4
  86. package/dist/billing/index.d.cts +1 -3
  87. package/dist/billing/index.d.ts +1 -3
  88. package/dist/billing/index.js +3 -4
  89. package/dist/billing/types.d.cts +1 -5
  90. package/dist/billing/types.d.ts +1 -5
  91. package/dist/chat/index.cjs +4 -5
  92. package/dist/chat/index.d.cts +3 -5
  93. package/dist/chat/index.d.ts +3 -5
  94. package/dist/chat/index.js +4 -5
  95. package/dist/chat/suggestions.cjs +1 -2
  96. package/dist/chat/suggestions.d.cts +1 -1
  97. package/dist/chat/suggestions.d.ts +1 -1
  98. package/dist/chat/suggestions.js +1 -2
  99. package/dist/chat/types.cjs +1 -2
  100. package/dist/chat/types.d.cts +1 -1
  101. package/dist/chat/types.d.ts +1 -1
  102. package/dist/chat/types.js +1 -2
  103. package/dist/{collectByOffset-DQsqtmJg.cjs → collectByOffset-DgxJ3zT9.cjs} +3 -4
  104. package/dist/{collectByOffset-DQsqtmJg.cjs.map → collectByOffset-DgxJ3zT9.cjs.map} +1 -1
  105. package/dist/{collectByOffset-2XzJqmvr.js → collectByOffset-i8Tdoze7.js} +3 -4
  106. package/dist/{collectByOffset-2XzJqmvr.js.map → collectByOffset-i8Tdoze7.js.map} +1 -1
  107. package/dist/{componentId-D4jp6a13.cjs → componentId-C8ZTXXDo.cjs} +2 -3
  108. package/dist/{componentId-D4jp6a13.cjs.map → componentId-C8ZTXXDo.cjs.map} +1 -1
  109. package/dist/{componentId-DmHwHG5V.js → componentId-b_qBbJEM.js} +2 -3
  110. package/dist/{componentId-DmHwHG5V.js.map → componentId-b_qBbJEM.js.map} +1 -1
  111. package/dist/componentsMcp/index.cjs +1 -1
  112. package/dist/componentsMcp/index.d.cts +1 -1
  113. package/dist/componentsMcp/index.d.ts +1 -1
  114. package/dist/componentsMcp/index.js +1 -2
  115. package/dist/componentsMcp/types.d.cts +1 -1
  116. package/dist/componentsMcp/types.d.ts +1 -1
  117. package/dist/{componentsMcp-pG-PcQrg.cjs → componentsMcp-BaHy5iLr.cjs} +5 -7
  118. package/dist/{componentsMcp-pG-PcQrg.cjs.map → componentsMcp-BaHy5iLr.cjs.map} +1 -1
  119. package/dist/{componentsMcp-CHobIsuU.js → componentsMcp-BrB4js6b.js} +5 -7
  120. package/dist/{componentsMcp-CHobIsuU.js.map → componentsMcp-BrB4js6b.js.map} +1 -1
  121. package/dist/{concurrent-BacWxPwi.js → concurrent-BtsT10Xe.js} +2 -3
  122. package/dist/{concurrent-BacWxPwi.js.map → concurrent-BtsT10Xe.js.map} +1 -1
  123. package/dist/{concurrent-CdVfR1N5.cjs → concurrent-DnTV_ppY.cjs} +2 -3
  124. package/dist/{concurrent-CdVfR1N5.cjs.map → concurrent-DnTV_ppY.cjs.map} +1 -1
  125. package/dist/configurations-Cd6Nsox-.js +49 -0
  126. package/dist/configurations-Cd6Nsox-.js.map +1 -0
  127. package/dist/configurations-WI8H4zLk.cjs +120 -0
  128. package/dist/configurations-WI8H4zLk.cjs.map +1 -0
  129. package/dist/constants/index.cjs +3 -3
  130. package/dist/constants/index.d.cts +4 -4
  131. package/dist/constants/index.d.ts +4 -4
  132. package/dist/constants/index.js +3 -3
  133. package/dist/{constants-VpSwBtCb.js → constants-BMSHGwOR.js} +46 -52
  134. package/dist/constants-BMSHGwOR.js.map +1 -0
  135. package/dist/{constants-DErcRkWl.cjs → constants-DhFQWQgy.cjs} +45 -51
  136. package/dist/constants-DhFQWQgy.cjs.map +1 -0
  137. package/dist/{createAbortError-RendOpo7.cjs → createAbortError-Dzc9yObN.cjs} +2 -3
  138. package/dist/{createAbortError-RendOpo7.cjs.map → createAbortError-Dzc9yObN.cjs.map} +1 -1
  139. package/dist/{createAbortError-BxupOt-6.js → createAbortError-c6ekCpRy.js} +2 -3
  140. package/dist/{createAbortError-BxupOt-6.js.map → createAbortError-c6ekCpRy.js.map} +1 -1
  141. package/dist/{createFetchClient-lZ_93Yrb.cjs → createFetchClient-DEkUH662.cjs} +6 -10
  142. package/dist/{createFetchClient-lZ_93Yrb.cjs.map → createFetchClient-DEkUH662.cjs.map} +1 -1
  143. package/dist/{createFetchClient-CkHdS_IG.js → createFetchClient-DlGCbltR.js} +5 -9
  144. package/dist/{createFetchClient-CkHdS_IG.js.map → createFetchClient-DlGCbltR.js.map} +1 -1
  145. package/dist/{createGenericFetchClient-MOx97wi-.cjs → createGenericFetchClient-2oU-PXVo.cjs} +3 -4
  146. package/dist/{createGenericFetchClient-MOx97wi-.cjs.map → createGenericFetchClient-2oU-PXVo.cjs.map} +1 -1
  147. package/dist/createGenericFetchClient-wGxemBwR.js +6 -0
  148. package/dist/{createGenericFetchClient-CQdNcPC3.js.map → createGenericFetchClient-wGxemBwR.js.map} +1 -1
  149. package/dist/createOpenapiFetchClient-Bhz62MUE.js +6 -0
  150. package/dist/{createOpenapiFetchClient-DXiMv9WL.js.map → createOpenapiFetchClient-Bhz62MUE.js.map} +1 -1
  151. package/dist/{createOpenapiFetchClient-DHYo_k3t.cjs → createOpenapiFetchClient-DL9w7vU-.cjs} +3 -4
  152. package/dist/{createOpenapiFetchClient-DHYo_k3t.cjs.map → createOpenapiFetchClient-DL9w7vU-.cjs.map} +1 -1
  153. package/dist/dataScience/index.cjs +2 -2
  154. package/dist/dataScience/index.d.cts +2 -2
  155. package/dist/dataScience/index.d.ts +2 -2
  156. package/dist/dataScience/index.js +2 -2
  157. package/dist/dataScience/types.d.cts +2 -2
  158. package/dist/dataScience/types.d.ts +2 -2
  159. package/dist/{dataScience-AwPMeGfz.js → dataScience-CXmkEOAi.js} +7 -9
  160. package/dist/{dataScience-AwPMeGfz.js.map → dataScience-CXmkEOAi.js.map} +1 -1
  161. package/dist/{dataScience-BjS1p8WO.cjs → dataScience-CufjHPSd.cjs} +7 -9
  162. package/dist/{dataScience-BjS1p8WO.cjs.map → dataScience-CufjHPSd.cjs.map} +1 -1
  163. package/dist/{dedupe-OSnnst2u.cjs → dedupe-Bf0gl9TJ.cjs} +2 -3
  164. package/dist/{dedupe-OSnnst2u.cjs.map → dedupe-Bf0gl9TJ.cjs.map} +1 -1
  165. package/dist/{dedupe-Cky1gSUu.js → dedupe-Bu0d2i_w.js} +2 -3
  166. package/dist/{dedupe-Cky1gSUu.js.map → dedupe-Bu0d2i_w.js.map} +1 -1
  167. package/dist/developerPortal/index.cjs +1 -1
  168. package/dist/developerPortal/index.d.cts +2 -2
  169. package/dist/developerPortal/index.d.ts +2 -2
  170. package/dist/developerPortal/index.js +1 -2
  171. package/dist/developerPortal/types.d.cts +1 -1
  172. package/dist/developerPortal/types.d.ts +1 -1
  173. package/dist/{developerPortalClient-DUerKw-7.cjs → developerPortalClient-BfRxYrWj.cjs} +9 -15
  174. package/dist/{developerPortalClient-DUerKw-7.cjs.map → developerPortalClient-BfRxYrWj.cjs.map} +1 -1
  175. package/dist/{developerPortalClient-Bb2suezr.js → developerPortalClient-D9XOYwWF.js} +9 -15
  176. package/dist/{developerPortalClient-Bb2suezr.js.map → developerPortalClient-D9XOYwWF.js.map} +1 -1
  177. package/dist/domain/permissions/index.cjs +18 -17
  178. package/dist/domain/permissions/index.d.cts +1 -11
  179. package/dist/domain/permissions/index.d.ts +1 -11
  180. package/dist/domain/permissions/index.js +3 -2
  181. package/dist/domain/storageTable/index.cjs +403 -9
  182. package/dist/domain/storageTable/index.cjs.map +1 -0
  183. package/dist/domain/storageTable/index.d.cts +189 -2
  184. package/dist/domain/storageTable/index.d.ts +189 -2
  185. package/dist/domain/storageTable/index.js +395 -1
  186. package/dist/domain/storageTable/index.js.map +1 -0
  187. package/dist/editor/index.cjs +3 -4
  188. package/dist/editor/index.d.cts +2 -4
  189. package/dist/editor/index.d.ts +2 -4
  190. package/dist/editor/index.js +3 -4
  191. package/dist/editor/types.d.cts +1 -1
  192. package/dist/editor/types.d.ts +1 -1
  193. package/dist/{emitter-dLF1Fyfg.d.ts → emitter-raKkIqRp.d.cts} +1 -3
  194. package/dist/{emitter-dLF1Fyfg.d.cts → emitter-raKkIqRp.d.ts} +1 -3
  195. package/dist/encryption/index.cjs +2 -3
  196. package/dist/encryption/index.d.cts +1 -1
  197. package/dist/encryption/index.d.ts +1 -1
  198. package/dist/encryption/index.js +2 -3
  199. package/dist/encryption/types.d.cts +1 -1
  200. package/dist/encryption/types.d.ts +1 -1
  201. package/dist/generateUUID-DE9sNyJF.js +5 -0
  202. package/dist/{generateUUID-Dr8l-aoc.js.map → generateUUID-DE9sNyJF.js.map} +1 -1
  203. package/dist/{generateUUID-C6qKBPIv.cjs → generateUUID-DbSTmvVP.cjs} +2 -3
  204. package/dist/{generateUUID-C6qKBPIv.cjs.map → generateUUID-DbSTmvVP.cjs.map} +1 -1
  205. package/dist/import/index.cjs +1 -1
  206. package/dist/import/index.d.cts +3 -5
  207. package/dist/import/index.d.ts +3 -5
  208. package/dist/import/index.js +1 -2
  209. package/dist/{import-BahNYv91.cjs → import-CABlFMQX.cjs} +6 -9
  210. package/dist/{import-BahNYv91.cjs.map → import-CABlFMQX.cjs.map} +1 -1
  211. package/dist/{import-FWy_wQZ1.js → import-CT1Ce5Rp.js} +6 -9
  212. package/dist/{import-FWy_wQZ1.js.map → import-CT1Ce5Rp.js.map} +1 -1
  213. package/dist/index-24GpnYhn.d.cts +150 -0
  214. package/dist/{index-BT88-GpA.d.ts → index-AA3MRfRn.d.cts} +4 -16
  215. package/dist/{index-C6oPUTWZ.d.ts → index-BDPxm9qu.d.ts} +3 -7
  216. package/dist/index-BUZ-vTRt.d.ts +150 -0
  217. package/dist/{index-XcnkRVb0.d.ts → index-BZDxWvZW.d.ts} +5 -7
  218. package/dist/index-C9iNazAc.d.ts +15103 -0
  219. package/dist/{index-D6JMbJ9b.d.ts → index-CCcdySOC.d.cts} +5 -7
  220. package/dist/{index-CrrHvDiX.d.cts → index-CN0--VsY.d.ts} +5 -7
  221. package/dist/index-CTMnmISl.d.cts +15103 -0
  222. package/dist/{index-BiZR9BjN.d.ts → index-CbSh3KFw.d.cts} +4 -12
  223. package/dist/{index-BM_fXKq5.d.cts → index-ClIV2Lch.d.cts} +5 -7
  224. package/dist/{index-DReKz9Zt.d.ts → index-CuI8OI9E.d.ts} +4 -13
  225. package/dist/{index-BPMr8PQJ.d.ts → index-D1mduJne.d.cts} +2 -52
  226. package/dist/{index-CL4iKFic.d.cts → index-D1mduJne.d.ts} +1 -51
  227. package/dist/{index-DorowSay.d.ts → index-DIPMzH--.d.ts} +5 -9
  228. package/dist/{index-CbZQCDkD.d.cts → index-DQagqTVa.d.cts} +3 -7
  229. package/dist/{index-dgu6udMy.d.ts → index-DVBQgFg0.d.ts} +4 -6
  230. package/dist/index-DXoN8VwV.d.cts +10 -0
  231. package/dist/{index-Dkb8CynB.d.cts → index-Db266tLz.d.cts} +5 -9
  232. package/dist/{index-BVjhAkXW.d.cts → index-DgGpQsAT.d.cts} +4 -6
  233. package/dist/{index-PqJGDHHl.d.cts → index-DjSthn8d.d.ts} +4 -16
  234. package/dist/index-Xpu7qIZk.d.ts +10 -0
  235. package/dist/{index-DhZTIejy.d.ts → index-lTrNMlj6.d.ts} +3 -5
  236. package/dist/{index-DYNVbgm8.d.cts → index-m9-mN8Gg.d.ts} +4 -12
  237. package/dist/{index-CtQl-Iqw.d.cts → index-xX8-Stoq.d.cts} +4 -13
  238. package/dist/{index-DGKCTQkb.d.cts → index-z-2okomN.d.cts} +3 -5
  239. package/dist/index.cjs +431 -1054
  240. package/dist/index.cjs.map +1 -1
  241. package/dist/index.d.cts +9 -8
  242. package/dist/index.d.ts +9 -8
  243. package/dist/index.js +427 -1051
  244. package/dist/index.js.map +1 -1
  245. package/dist/{isLoginPageRedirect-r0Opgc1n.cjs → isLoginPageRedirect-CoUxJi2x.cjs} +3 -4
  246. package/dist/{isLoginPageRedirect-r0Opgc1n.cjs.map → isLoginPageRedirect-CoUxJi2x.cjs.map} +1 -1
  247. package/dist/{isLoginPageRedirect-B4QKSiSa.js → isLoginPageRedirect-D-lqF_kZ.js} +3 -4
  248. package/dist/{isLoginPageRedirect-B4QKSiSa.js.map → isLoginPageRedirect-D-lqF_kZ.js.map} +1 -1
  249. package/dist/{isPlainObject-LYW-03uB.js → isPlainObject-BxsT8_t2.js} +2 -3
  250. package/dist/{isPlainObject-LYW-03uB.js.map → isPlainObject-BxsT8_t2.js.map} +1 -1
  251. package/dist/{isPlainObject-BB3iy87C.cjs → isPlainObject-CcvQt0qB.cjs} +2 -3
  252. package/dist/{isPlainObject-BB3iy87C.cjs.map → isPlainObject-CcvQt0qB.cjs.map} +1 -1
  253. package/dist/kaiAgent/index.cjs +1 -1
  254. package/dist/kaiAgent/index.d.cts +2 -2
  255. package/dist/kaiAgent/index.d.ts +2 -2
  256. package/dist/kaiAgent/index.js +1 -2
  257. package/dist/kaiAgent/types.d.cts +1 -1
  258. package/dist/kaiAgent/types.d.ts +1 -1
  259. package/dist/{kaiAgent-CYvrS8oZ.js → kaiAgent-D2TiMDjW.js} +6 -7
  260. package/dist/{kaiAgent-CYvrS8oZ.js.map → kaiAgent-D2TiMDjW.js.map} +1 -1
  261. package/dist/{kaiAgent-N2qbUFZm.cjs → kaiAgent-gaA7dqki.cjs} +6 -7
  262. package/dist/{kaiAgent-N2qbUFZm.cjs.map → kaiAgent-gaA7dqki.cjs.map} +1 -1
  263. package/dist/{kaiMemory-Qch09f-m.cjs → kaiMemory-CkLQfJXD.cjs} +6 -9
  264. package/dist/{kaiMemory-Qch09f-m.cjs.map → kaiMemory-CkLQfJXD.cjs.map} +1 -1
  265. package/dist/{kaiMemory-C9di17bd.js → kaiMemory-oir_qCo_.js} +6 -9
  266. package/dist/{kaiMemory-C9di17bd.js.map → kaiMemory-oir_qCo_.js.map} +1 -1
  267. package/dist/management/index.cjs +1 -1
  268. package/dist/management/index.d.cts +1 -1
  269. package/dist/management/index.d.ts +1 -1
  270. package/dist/management/index.js +1 -2
  271. package/dist/management/types.cjs +1 -2
  272. package/dist/management/types.d.cts +2 -2
  273. package/dist/management/types.d.ts +2 -2
  274. package/dist/management/types.js +1 -2
  275. package/dist/{management-B1o6RpKF.cjs → management-BEGOEQxM.cjs} +26 -45
  276. package/dist/management-BEGOEQxM.cjs.map +1 -0
  277. package/dist/{management-C9w3DNhs.js → management-BcGHyxAP.js} +26 -45
  278. package/dist/management-BcGHyxAP.js.map +1 -0
  279. package/dist/metastore/index.cjs +1 -1
  280. package/dist/metastore/index.d.cts +1 -1
  281. package/dist/metastore/index.d.ts +1 -1
  282. package/dist/metastore/index.js +1 -2
  283. package/dist/metastore/types.d.cts +1 -1
  284. package/dist/metastore/types.d.ts +1 -1
  285. package/dist/{metastore-Ywq08DBz.js → metastore-CGsgxjng.js} +7 -10
  286. package/dist/{metastore-Ywq08DBz.js.map → metastore-CGsgxjng.js.map} +1 -1
  287. package/dist/{metastore-BXHg33ku.cjs → metastore-DeRQ2VIv.cjs} +7 -10
  288. package/dist/{metastore-BXHg33ku.cjs.map → metastore-DeRQ2VIv.cjs.map} +1 -1
  289. package/dist/microsoftGraph/index.cjs +5 -8
  290. package/dist/microsoftGraph/index.cjs.map +1 -1
  291. package/dist/microsoftGraph/index.d.cts +3 -7
  292. package/dist/microsoftGraph/index.d.ts +3 -7
  293. package/dist/microsoftGraph/index.js +5 -8
  294. package/dist/microsoftGraph/index.js.map +1 -1
  295. package/dist/microsoftGraph/types.d.cts +2 -4
  296. package/dist/microsoftGraph/types.d.ts +2 -4
  297. package/dist/{middleware-GOfx8Apu.js → middleware-8zaJWcyU.js} +3 -5
  298. package/dist/middleware-8zaJWcyU.js.map +1 -0
  299. package/dist/{middleware-CEP6uu_D.cjs → middleware-B9RNuLfD.cjs} +3 -5
  300. package/dist/middleware-B9RNuLfD.cjs.map +1 -0
  301. package/dist/notifications/index.cjs +5 -6
  302. package/dist/notifications/index.d.cts +2 -4
  303. package/dist/notifications/index.d.ts +2 -4
  304. package/dist/notifications/index.js +5 -6
  305. package/dist/notifications/types.d.cts +1 -1
  306. package/dist/notifications/types.d.ts +1 -1
  307. package/dist/oauth/index.cjs +1 -1
  308. package/dist/oauth/index.d.cts +2 -4
  309. package/dist/oauth/index.d.ts +2 -4
  310. package/dist/oauth/index.js +1 -2
  311. package/dist/oauth/types.d.cts +1 -1
  312. package/dist/oauth/types.d.ts +1 -1
  313. package/dist/{oauth-DKZPuUlt.cjs → oauth-B5Biqz21.cjs} +7 -9
  314. package/dist/{oauth-DKZPuUlt.cjs.map → oauth-B5Biqz21.cjs.map} +1 -1
  315. package/dist/{oauth-GXmZ9agP.js → oauth-ByCdISsV.js} +7 -9
  316. package/dist/{oauth-GXmZ9agP.js.map → oauth-ByCdISsV.js.map} +1 -1
  317. package/dist/omnisearch/index.cjs +3 -4
  318. package/dist/omnisearch/index.d.cts +2 -4
  319. package/dist/omnisearch/index.d.ts +2 -4
  320. package/dist/omnisearch/index.js +3 -4
  321. package/dist/omnisearch/types.d.cts +1 -1
  322. package/dist/omnisearch/types.d.ts +1 -1
  323. package/dist/{project-ClH22nzH.js → project-DmuC0bMK.js} +6 -9
  324. package/dist/{project-ClH22nzH.js.map → project-DmuC0bMK.js.map} +1 -1
  325. package/dist/{project-Rh4nXiWh.cjs → project-Onf-IcPW.cjs} +9 -12
  326. package/dist/{project-Rh4nXiWh.cjs.map → project-Onf-IcPW.cjs.map} +1 -1
  327. package/dist/{project-DTfBtIJs.d.ts → project-UHZGFmmG.d.cts} +5 -9
  328. package/dist/{project-vOnvjo80.d.cts → project-iBm4cIIR.d.ts} +5 -9
  329. package/dist/queryService/index.cjs +1 -1
  330. package/dist/queryService/index.d.cts +1 -1
  331. package/dist/queryService/index.d.ts +1 -1
  332. package/dist/queryService/index.js +1 -2
  333. package/dist/queryService/types.d.cts +1 -1
  334. package/dist/queryService/types.d.ts +1 -1
  335. package/dist/{queryService-CzK53q94.cjs → queryService-Cg-eMysa.cjs} +9 -11
  336. package/dist/{queryService-CzK53q94.cjs.map → queryService-Cg-eMysa.cjs.map} +1 -1
  337. package/dist/{queryService-C-pZha5p.js → queryService-x8kq8Z2-.js} +9 -11
  338. package/dist/{queryService-C-pZha5p.js.map → queryService-x8kq8Z2-.js.map} +1 -1
  339. package/dist/queue/index.cjs +1 -1
  340. package/dist/queue/index.d.cts +4 -5
  341. package/dist/queue/index.d.ts +4 -5
  342. package/dist/queue/index.js +1 -2
  343. package/dist/queue/types.d.cts +1 -1
  344. package/dist/queue/types.d.ts +1 -1
  345. package/dist/{queue-D6-x4OGF.js → queue-BiIs9fX4.js} +9 -11
  346. package/dist/{queue-D6-x4OGF.js.map → queue-BiIs9fX4.js.map} +1 -1
  347. package/dist/{queue-BJvDWriM.cjs → queue-CBi9Q8vp.cjs} +9 -11
  348. package/dist/{queue-BJvDWriM.cjs.map → queue-CBi9Q8vp.cjs.map} +1 -1
  349. package/dist/{rolldown-runtime-VH7oDXx4.cjs → rolldown-runtime-CmQyd0Gu.cjs} +1 -2
  350. package/dist/scheduler/index.cjs +5 -6
  351. package/dist/scheduler/index.d.cts +2 -4
  352. package/dist/scheduler/index.d.ts +2 -4
  353. package/dist/scheduler/index.js +5 -6
  354. package/dist/scheduler/types.d.cts +1 -1
  355. package/dist/scheduler/types.d.ts +1 -1
  356. package/dist/{schema-BUyMwQnM.d.cts → schema-DLmBEgPM.d.cts} +1 -3
  357. package/dist/{schema-BUyMwQnM.d.ts → schema-DLmBEgPM.d.ts} +1 -3
  358. package/dist/schemaGuidedMerge-C8CqrNGe.cjs +55 -0
  359. package/dist/schemaGuidedMerge-C8CqrNGe.cjs.map +1 -0
  360. package/dist/schemaGuidedMerge-DFNqj9Nz.js +44 -0
  361. package/dist/schemaGuidedMerge-DFNqj9Nz.js.map +1 -0
  362. package/dist/sdk/configurations/index.cjs +634 -2
  363. package/dist/sdk/configurations/index.cjs.map +1 -0
  364. package/dist/sdk/configurations/index.d.cts +1030 -4
  365. package/dist/sdk/configurations/index.d.ts +1030 -4
  366. package/dist/sdk/configurations/index.js +633 -1
  367. package/dist/sdk/configurations/index.js.map +1 -0
  368. package/dist/sdk/developerPortal/index.cjs +9 -13
  369. package/dist/sdk/developerPortal/index.cjs.map +1 -1
  370. package/dist/sdk/developerPortal/index.d.cts +4 -6
  371. package/dist/sdk/developerPortal/index.d.ts +4 -6
  372. package/dist/sdk/developerPortal/index.js +9 -13
  373. package/dist/sdk/developerPortal/index.js.map +1 -1
  374. package/dist/sdk/kaiMemory/index.cjs +1 -1
  375. package/dist/sdk/kaiMemory/index.d.cts +1 -3
  376. package/dist/sdk/kaiMemory/index.d.ts +1 -3
  377. package/dist/sdk/kaiMemory/index.js +1 -2
  378. package/dist/sdk/kaiMemory/types.d.cts +1 -1
  379. package/dist/sdk/kaiMemory/types.d.ts +1 -1
  380. package/dist/sdk/queryService/index.cjs +3 -4
  381. package/dist/sdk/queryService/index.d.cts +1 -1
  382. package/dist/sdk/queryService/index.d.ts +1 -1
  383. package/dist/sdk/queryService/index.js +3 -4
  384. package/dist/sdk/semanticLayer/index.cjs +1 -1
  385. package/dist/sdk/semanticLayer/index.d.cts +1 -7
  386. package/dist/sdk/semanticLayer/index.d.ts +1 -7
  387. package/dist/sdk/semanticLayer/index.js +1 -2
  388. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  389. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  390. package/dist/sdk/storage/index.cjs +3 -6
  391. package/dist/sdk/storage/index.cjs.map +1 -1
  392. package/dist/sdk/storage/index.d.cts +0 -6
  393. package/dist/sdk/storage/index.d.ts +0 -6
  394. package/dist/sdk/storage/index.js +3 -6
  395. package/dist/sdk/storage/index.js.map +1 -1
  396. package/dist/sdk/tag/index.cjs +1 -1
  397. package/dist/sdk/tag/index.d.cts +3 -5
  398. package/dist/sdk/tag/index.d.ts +3 -5
  399. package/dist/sdk/tag/index.js +1 -2
  400. package/dist/sdk/tag/types.d.cts +1 -1
  401. package/dist/sdk/tag/types.d.ts +1 -1
  402. package/dist/sdk/vault/index.cjs +3 -5
  403. package/dist/sdk/vault/index.cjs.map +1 -1
  404. package/dist/sdk/vault/index.d.cts +1 -1
  405. package/dist/sdk/vault/index.d.ts +1 -1
  406. package/dist/sdk/vault/index.js +3 -5
  407. package/dist/sdk/vault/index.js.map +1 -1
  408. package/dist/{semanticLayer-DvjS_nzo.js → semanticLayer-BdPW_wLo.js} +9 -14
  409. package/dist/{semanticLayer-DvjS_nzo.js.map → semanticLayer-BdPW_wLo.js.map} +1 -1
  410. package/dist/{semanticLayer-7BejcMj_.cjs → semanticLayer-djom-J78.cjs} +9 -14
  411. package/dist/{semanticLayer-7BejcMj_.cjs.map → semanticLayer-djom-J78.cjs.map} +1 -1
  412. package/dist/status/index.cjs +2 -3
  413. package/dist/status/index.d.cts +1 -3
  414. package/dist/status/index.d.ts +1 -3
  415. package/dist/status/index.js +2 -3
  416. package/dist/status/types.d.cts +0 -2
  417. package/dist/status/types.d.ts +0 -2
  418. package/dist/storage/index.cjs +9 -9
  419. package/dist/storage/index.d.cts +3 -2
  420. package/dist/storage/index.d.ts +3 -2
  421. package/dist/storage/index.js +9 -9
  422. package/dist/storage/types.d.cts +6 -6
  423. package/dist/storage/types.d.ts +6 -6
  424. package/dist/{storage-CChfKlrb.js → storage-BpOLWT6h.js} +54 -89
  425. package/dist/{storage-CChfKlrb.js.map → storage-BpOLWT6h.js.map} +1 -1
  426. package/dist/{storage-Ci9gXgcw.cjs → storage-KJ5Ki_ma.cjs} +53 -88
  427. package/dist/{storage-Ci9gXgcw.cjs.map → storage-KJ5Ki_ma.cjs.map} +1 -1
  428. package/dist/{store-xS-Cu_VS.cjs → store-2OyH1XOP.cjs} +3 -5
  429. package/dist/{store-xS-Cu_VS.cjs.map → store-2OyH1XOP.cjs.map} +1 -1
  430. package/dist/{store-C9FQCHGe.js → store-HP0zRcLz.js} +3 -5
  431. package/dist/{store-C9FQCHGe.js.map → store-HP0zRcLz.js.map} +1 -1
  432. package/dist/stream/index.cjs +4 -5
  433. package/dist/stream/index.d.cts +2 -4
  434. package/dist/stream/index.d.ts +2 -4
  435. package/dist/stream/index.js +4 -5
  436. package/dist/stream/types.d.cts +1 -1
  437. package/dist/stream/types.d.ts +1 -1
  438. package/dist/{suggestions-BH3x7xU7.d.ts → suggestions-xhIjrlvi.d.cts} +1 -3
  439. package/dist/{suggestions-BH3x7xU7.d.cts → suggestions-xhIjrlvi.d.ts} +1 -3
  440. package/dist/syncActions/index.cjs +1 -1
  441. package/dist/syncActions/index.d.cts +2 -2
  442. package/dist/syncActions/index.d.ts +2 -2
  443. package/dist/syncActions/index.js +1 -2
  444. package/dist/syncActions/types.d.cts +2 -2
  445. package/dist/syncActions/types.d.ts +2 -2
  446. package/dist/{syncActions-C1rE4R3f.cjs → syncActions-BcX3jm2E.cjs} +74 -187
  447. package/dist/syncActions-BcX3jm2E.cjs.map +1 -0
  448. package/dist/{syncActions-DM8vP7p3.js → syncActions-giPLTfje.js} +73 -186
  449. package/dist/syncActions-giPLTfje.js.map +1 -0
  450. package/dist/{tag-DHS_soa7.cjs → tag-A5z4tJn1.cjs} +5 -7
  451. package/dist/{tag-DHS_soa7.cjs.map → tag-A5z4tJn1.cjs.map} +1 -1
  452. package/dist/{tag-hh-1nhNr.js → tag-BwjbG3tT.js} +5 -7
  453. package/dist/{tag-hh-1nhNr.js.map → tag-BwjbG3tT.js.map} +1 -1
  454. package/dist/telemetry/index.cjs +4 -5
  455. package/dist/telemetry/index.d.cts +2 -4
  456. package/dist/telemetry/index.d.ts +2 -4
  457. package/dist/telemetry/index.js +4 -5
  458. package/dist/telemetry/types.d.cts +1 -1
  459. package/dist/telemetry/types.d.ts +1 -1
  460. package/dist/{transientRetries-B4iusp69.js → transientRetries-BKqmb85B.js} +13 -22
  461. package/dist/{transientRetries-B4iusp69.js.map → transientRetries-BKqmb85B.js.map} +1 -1
  462. package/dist/{transientRetries-DdJfH9QK.cjs → transientRetries-CM7rAEXQ.cjs} +13 -22
  463. package/dist/{transientRetries-DdJfH9QK.cjs.map → transientRetries-CM7rAEXQ.cjs.map} +1 -1
  464. package/dist/{types-DODAZKEm.d.ts → types--Rp5wvaz.d.ts} +2 -6
  465. package/dist/{types-JZ0Bdlpk.d.cts → types-1IBnjBVJ.d.cts} +2 -6
  466. package/dist/{types-BZ--6pIt.d.ts → types-37vwxse4.d.cts} +2 -6
  467. package/dist/{types-RogkWzOu.d.ts → types-6T04_qUf.d.ts} +2 -6
  468. package/dist/{types-TmrPVMhy.d.cts → types-B0e-no6u.d.ts} +18 -38
  469. package/dist/{types-ptynVnkv.d.cts → types-B1qe1etN.d.cts} +3 -7
  470. package/dist/{types-BXybSjn-.d.ts → types-B3ri-iiC.d.ts} +2 -26
  471. package/dist/{types-dn6MHur3.d.cts → types-BB49alHP.d.cts} +243 -9
  472. package/dist/{types-Duurgaqk.d.cts → types-BCGrKW1K.d.cts} +6 -10
  473. package/dist/{types-BOT6TgOS.d.ts → types-BE8abIig.d.cts} +2 -6
  474. package/dist/{types-BrpIEj_N.d.ts → types-BWMOK6eL.d.cts} +2 -6
  475. package/dist/{types-D53zBV25.d.ts → types-Bat0SIZA.d.cts} +16 -97
  476. package/dist/{types-Dy6EdWPG.d.ts → types-Bdl7EFMc.d.ts} +2 -6
  477. package/dist/{types-CfXqFz2e.d.ts → types-BfB-XXLF.d.ts} +243 -9
  478. package/dist/{types-_zKX6JmD.d.ts → types-BiDdBXSm.d.ts} +2 -8
  479. package/dist/{types-BnmsuDfH.d.cts → types-BuclMPeY.d.cts} +2 -26
  480. package/dist/{types-302-NBaU.d.ts → types-C9okze_R.d.ts} +3 -7
  481. package/dist/{types-BT5e9TSQ.d.ts → types-CPWjRdnj.d.cts} +18 -38
  482. package/dist/{types-C614wC5h.d.cts → types-CRubbBcU.d.cts} +2 -6
  483. package/dist/{types-DlhNay1n.d.ts → types-CWcdaq-K.d.ts} +2 -6
  484. package/dist/{types-D9ZKJYZk.d.ts → types-CcGp6O3B.d.cts} +3 -7
  485. package/dist/{types-45O2dU2w.d.ts → types-Cr5lyI99.d.ts} +2 -6
  486. package/dist/{types-CY8X39qv.d.cts → types-CxEJ77m3.d.cts} +3 -7
  487. package/dist/{types-DmzSFOhK.d.cts → types-D-tJt0hQ.d.cts} +2 -6
  488. package/dist/{types-BjwbzqJd.d.ts → types-D6lre27s.d.ts} +2 -8
  489. package/dist/{types-0R9-osUJ.d.ts → types-DHMxPJZq.d.cts} +2 -6
  490. package/dist/{types-jN2KmMet.d.cts → types-DJzTVMu1.d.ts} +2 -6
  491. package/dist/{types-CpJhWBmH.d.cts → types-DNgazFnF.d.cts} +2 -8
  492. package/dist/{types-DjadPty5.d.ts → types-DRCttnIN.d.ts} +2 -6
  493. package/dist/{types-CeqZuOEC.d.ts → types-DUpVIuk7.d.ts} +2 -6
  494. package/dist/{types-DqOxIujY.d.ts → types-DeyXJzWz.d.cts} +2 -6
  495. package/dist/{types-O6XM48J8.d.cts → types-Dryq2GGE.d.cts} +2 -6
  496. package/dist/{types-CjNl7O7f.d.cts → types-DschSZHf.d.cts} +3 -5
  497. package/dist/{types-BUirSne-.d.ts → types-DtOfhDzz.d.ts} +3 -5
  498. package/dist/{types-CkJxMoTk.d.cts → types-Du5o-tud.d.ts} +16 -97
  499. package/dist/{types-ChLWY8aU.d.cts → types-DwbTiyhZ.d.cts} +2 -6
  500. package/dist/{types-tdIo5FpR.d.ts → types-Dz9vyloX.d.ts} +6 -10
  501. package/dist/{types-HmK8iKp5.d.cts → types-E8tzafsk.d.cts} +3 -7
  502. package/dist/{types-DpbrGDRf.d.cts → types-LconaX98.d.cts} +2 -6
  503. package/dist/{types-CTS2NSIb.d.cts → types-YpOm4yXE.d.cts} +2 -8
  504. package/dist/{types-DbXV0g8U.d.cts → types-ZZwdKCBl.d.ts} +2 -6
  505. package/dist/{types-jfPoUlO8.d.cts → types-eFi8xJIM.d.cts} +2 -6
  506. package/dist/{types-DV7K07oX.d.cts → types-inG9y3dP.d.ts} +2 -6
  507. package/dist/{types-BM6rri7-.d.ts → types-ir7T2a9a.d.ts} +3 -7
  508. package/dist/{types-BAsYMltG.d.cts → types-jjOulnni.d.ts} +2 -6
  509. package/dist/{types-vvw_H7wp.d.cts → types-wYrC2boT.d.ts} +3 -7
  510. package/dist/{types-BWzt1ju_.d.ts → types-xzt_2H63.d.ts} +3 -7
  511. package/dist/{types-D2Pb_4FA.d.cts → types-zPY-XGnM.d.ts} +2 -6
  512. package/dist/{validateConnectionStatus-BalWEyRk.cjs → validateConnectionStatus-BjemGI1e.cjs} +5 -7
  513. package/dist/{validateConnectionStatus-BalWEyRk.cjs.map → validateConnectionStatus-BjemGI1e.cjs.map} +1 -1
  514. package/dist/{validateConnectionStatus-DyrYpn0G.js → validateConnectionStatus-DYwWeWVo.js} +5 -7
  515. package/dist/{validateConnectionStatus-DyrYpn0G.js.map → validateConnectionStatus-DYwWeWVo.js.map} +1 -1
  516. package/dist/vault/index.cjs +7 -8
  517. package/dist/vault/index.d.cts +1 -1
  518. package/dist/vault/index.d.ts +1 -1
  519. package/dist/vault/index.js +7 -8
  520. package/dist/vault/types.d.cts +1 -1
  521. package/dist/vault/types.d.ts +1 -1
  522. package/package.json +7 -7
  523. package/surface/apps.md +12 -10
  524. package/surface/chat.md +1 -1
  525. package/surface/dataScience.md +1 -1
  526. package/surface/editor.md +5 -5
  527. package/surface/kaiAgent.md +4 -4
  528. package/surface/management.md +1 -1
  529. package/surface/queue.md +3 -3
  530. package/surface/sdk.md +0 -6
  531. package/surface/stack.md +11 -0
  532. package/surface/storage.md +2 -2
  533. package/surface/stream.md +6 -6
  534. package/surface/syncActions.md +1 -2
  535. package/dist/configurations-B44z6BSO.js +0 -718
  536. package/dist/configurations-B44z6BSO.js.map +0 -1
  537. package/dist/configurations-CL0ouUMa.js.map +0 -1
  538. package/dist/configurations-D9J3jh3g.cjs.map +0 -1
  539. package/dist/configurations-Dkxsa3Uf.cjs +0 -735
  540. package/dist/configurations-Dkxsa3Uf.cjs.map +0 -1
  541. package/dist/constants-DErcRkWl.cjs.map +0 -1
  542. package/dist/constants-VpSwBtCb.js.map +0 -1
  543. package/dist/createGenericFetchClient-CQdNcPC3.js +0 -7
  544. package/dist/createOpenapiFetchClient-DXiMv9WL.js +0 -7
  545. package/dist/generateUUID-Dr8l-aoc.js +0 -6
  546. package/dist/index-Be2dNJ_N.d.cts +0 -23582
  547. package/dist/index-BfqkgPGI.d.cts +0 -34
  548. package/dist/index-BfqkgPGI.d.ts +0 -34
  549. package/dist/index-fMoM8SeH.d.cts +0 -199
  550. package/dist/index-fMoM8SeH.d.ts +0 -199
  551. package/dist/index-uGRdAORl.d.ts +0 -23582
  552. package/dist/management-B1o6RpKF.cjs.map +0 -1
  553. package/dist/management-C9w3DNhs.js.map +0 -1
  554. package/dist/middleware-CEP6uu_D.cjs.map +0 -1
  555. package/dist/middleware-GOfx8Apu.js.map +0 -1
  556. package/dist/storageTable-BNOR2FCh.cjs +0 -442
  557. package/dist/storageTable-BNOR2FCh.cjs.map +0 -1
  558. package/dist/storageTable-BldTNyEk.js +0 -395
  559. package/dist/storageTable-BldTNyEk.js.map +0 -1
  560. package/dist/syncActions-C1rE4R3f.cjs.map +0 -1
  561. package/dist/syncActions-DM8vP7p3.js.map +0 -1
  562. package/surface/context.md +0 -40
@@ -1,2 +1,634 @@
1
- import { t as createConfigurationSdk } from "../../configurations-B44z6BSO.js";
1
+ import { n as isEmptyDeep, t as schemaGuidedMerge } from "../../schemaGuidedMerge-DFNqj9Nz.js";
2
+ import { t as ComponentId } from "../../componentId-b_qBbJEM.js";
3
+ import { o as assertCanUpdateConfiguration, r as assertCanCreateConfiguration } from "../../configurations-Cd6Nsox-.js";
4
+ import { z } from "zod";
5
+ // src/sdks/configurations/schemas/appDataGatewaySchema.ts
6
+ /**
7
+ * `keboola.app-data-gateway` — the Data Gateway provisions and manages its own Snowflake
8
+ * workspace, so the config carries no credentials: just the id of the workspace it runs
9
+ * against, stored at `parameters.db.workspaceId`.
10
+ */
11
+ const appDataGatewaySchema = z.object({ parameters: z.object({ db: z.object({ workspaceId: z.number() }) }) });
12
+ // src/sdks/configurations/schemas/common/dbConfig.ts
13
+ /** Wrap a `parameters.db` credential schema into the full component config shape. */
14
+ const dbConfig = (db) => z.object({ parameters: z.object({ db }) });
15
+ // src/sdks/configurations/schemas/common/dbConnection.ts
16
+ /**
17
+ * The credential fields shared by virtually every DB writer, stored at `parameters.db`.
18
+ * Components extend this with driver-specific fields (`schema`, `warehouse`, `ssh`, …) and
19
+ * override where they differ (e.g. Snowflake makes `#password` optional). Secret leaves use
20
+ * the `#` prefix the encryption service recognizes.
21
+ */
22
+ const dbConnectionSchema = z.object({
23
+ host: z.string().describe("Hostname"),
24
+ port: z.number().describe("Port"),
25
+ user: z.string().describe("Username"),
26
+ "#password": z.string().describe("Password"),
27
+ database: z.string().describe("Database Name")
28
+ });
29
+ // src/sdks/configurations/schemas/common/forbidden.ts
30
+ /**
31
+ * Marks a field as "must be absent" in one arm of a mutually-exclusive union: `z.undefined()`
32
+ * rejects any value while `.optional()` lets the key be omitted entirely. Pairing it with a
33
+ * required field in the sibling arm (e.g. `#password` XOR `#privateKey`) is what makes an
34
+ * "exactly one of" union reject configs that set both keys — or neither — at runtime and in
35
+ * the inferred type. Without it the arms would be open objects that silently strip the extra key.
36
+ */
37
+ const forbidden = z.undefined().optional();
38
+ // src/sdks/configurations/schemas/common/oauthAuthorization.ts
39
+ /**
40
+ * The OAuth credential reference components store under a top-level `authorization` key. `id`
41
+ * points at the vault-stored credential; `version` is the OAuth-API version (3 on modern stacks).
42
+ * Shared by every OAuth-backed component (Google family, Facebook, …).
43
+ */
44
+ const oauthAuthorizationSchema = z.object({ oauth_api: z.object({
45
+ id: z.string(),
46
+ version: z.number().optional()
47
+ }) });
48
+ // src/sdks/configurations/schemas/common/sshTunnelSchema.ts
49
+ const sshTunnelSchema = z.object({
50
+ enabled: z.boolean(),
51
+ sshHost: z.string().optional(),
52
+ user: z.string().optional(),
53
+ sshPort: z.number().optional(),
54
+ /** FTP passive-mode port range (e.g. `10000:10005`); only relevant to FTP extractors. */
55
+ passivePortRange: z.string().optional(),
56
+ keys: z.object({
57
+ public: z.string().optional(),
58
+ "#private": z.string().optional()
59
+ }).optional()
60
+ });
61
+ // src/sdks/configurations/schemas/common/sslSchema.ts
62
+ /** SSL options nested at `parameters.db.ssl` (drivers that support it, e.g. MySQL, Hive). */
63
+ const sslSchema = z.object({
64
+ enabled: z.boolean(),
65
+ cert: z.string().optional(),
66
+ "#key": z.string().optional(),
67
+ ca: z.string().optional(),
68
+ cipher: z.string().optional(),
69
+ verifyServerCert: z.boolean().optional()
70
+ });
71
+ // src/sdks/configurations/schemas/appSnowflakeDwhManagerSchema.ts
72
+ /**
73
+ * `keboola.app-snowflake-dwh-manager` — master Snowflake connection. Auth is a password OR a
74
+ * key-pair (exactly one). The common fields are shared; each variant requires its own secret and
75
+ * *forbids the other* (`forbidden`), so a config carrying both — or neither — is rejected at
76
+ * runtime and at the type level, matching the `wr-db-snowflake` XOR pattern.
77
+ */
78
+ const dwhMasterBase = z.object({
79
+ master_host: z.string(),
80
+ master_user: z.string(),
81
+ master_database: z.string(),
82
+ warehouse: z.string()
83
+ });
84
+ const appSnowflakeDwhManagerSchema = z.object({ parameters: z.union([dwhMasterBase.extend({
85
+ "#master_password": z.string(),
86
+ "#master_private_key": forbidden
87
+ }), dwhMasterBase.extend({
88
+ "#master_private_key": z.string(),
89
+ "#master_password": forbidden
90
+ })]) });
91
+ // src/sdks/configurations/schemas/ex/exAwsS3Schema.ts
92
+ /** Access-key credentials — forbids the IAM-role fields so the variants stay exclusive. */
93
+ const awsCredentialsAuth = z.object({
94
+ loginType: z.literal("credentials"),
95
+ accessKeyId: z.string(),
96
+ "#secretAccessKey": z.string(),
97
+ accountId: forbidden,
98
+ roleName: forbidden
99
+ }).loose();
100
+ /** IAM-role auth — forbids the access-key fields so the variants stay exclusive. */
101
+ const awsRoleAuth = z.object({
102
+ loginType: z.literal("role"),
103
+ accountId: z.string(),
104
+ roleName: z.string(),
105
+ accessKeyId: forbidden,
106
+ "#secretAccessKey": forbidden
107
+ }).loose();
108
+ /**
109
+ * `keboola.ex-aws-s3` — access-key credentials OR IAM-role auth (exactly one). `loginType` is the
110
+ * discriminant, and each arm *forbids the other* variant's fields (`z.undefined()`) so a config
111
+ * mixing both — e.g. credentials + a stale `roleName` — is rejected rather than silently stripped.
112
+ * The outer object is `.loose()` so top-level component-managed keys (`storage`, `processors`)
113
+ * pass through.
114
+ */
115
+ const exAwsS3Schema = z.object({ parameters: z.union([awsCredentialsAuth, awsRoleAuth]) }).loose();
116
+ // src/sdks/configurations/schemas/ex/exAzureBlobStorageSchema.ts
117
+ /**
118
+ * `kds-team.ex-azure-blob-storage-v2` — account name + key + container. Both levels are `.loose()`:
119
+ * the connection block is validated, but component-managed `parameters` and top-level keys
120
+ * (`storage`, `processors`) pass through rather than being stripped on create/update.
121
+ */
122
+ const exAzureBlobSchema = z.object({ parameters: z.object({
123
+ account_name: z.string(),
124
+ "#account_key": z.string(),
125
+ container_name: z.string()
126
+ }).loose() }).loose();
127
+ // src/sdks/configurations/schemas/ex/exAzureDataLakeSchema.ts
128
+ /**
129
+ * `kds-team.ex-azure-data-lake-gen2` — like Blob, but a `file_system` instead of a container. Both
130
+ * levels are `.loose()`: the connection block is validated, but component-managed `parameters` and
131
+ * top-level keys (`storage`, `processors`) pass through rather than being stripped on create/update.
132
+ */
133
+ const exAzureDataLakeSchema = z.object({ parameters: z.object({
134
+ account_name: z.string(),
135
+ "#account_key": z.string(),
136
+ file_system: z.string()
137
+ }).loose() }).loose();
138
+ // src/sdks/configurations/schemas/ex/exFtpSchema.ts
139
+ /** Connection fields shared by both auth variants. */
140
+ const ftpConnection = z.object({
141
+ host: z.string(),
142
+ port: z.number(),
143
+ connectionType: z.enum([
144
+ "FTP",
145
+ "FTPS",
146
+ "SFTP"
147
+ ]),
148
+ username: z.string(),
149
+ ignorePassiveAddress: z.boolean().optional(),
150
+ ssh: sshTunnelSchema.optional(),
151
+ path: z.string().optional(),
152
+ onlyNewFiles: z.boolean().optional()
153
+ });
154
+ /** Password auth — forbids the private key so the variants stay exclusive. */
155
+ const ftpPasswordAuth = ftpConnection.extend({
156
+ "#password": z.string(),
157
+ "#privateKey": forbidden
158
+ }).loose();
159
+ /** Private-key auth — forbids the password so the variants stay exclusive. */
160
+ const ftpPrivateKeyAuth = ftpConnection.extend({
161
+ "#privateKey": z.string(),
162
+ "#password": forbidden
163
+ }).loose();
164
+ /**
165
+ * `keboola.ex-ftp` / `keboola.ex-ftp-csas` — FTP/FTPS/SFTP server connection. Auth is a password
166
+ * OR a private key (exactly one): each variant requires its secret and *forbids the other*
167
+ * (`z.undefined()`), so a config with both — or neither — is rejected, and switching variants via
168
+ * an update drops the abandoned secret (the whole `parameters` union subtree is replaced wholesale
169
+ * by `schemaGuidedMerge`, so a partial patch must carry the complete connection block). The outer
170
+ * object is `.loose()` so top-level component-managed keys (`storage`, `processors`) pass through.
171
+ */
172
+ const exFtpSchema = z.object({ parameters: z.union([ftpPasswordAuth, ftpPrivateKeyAuth]) }).loose();
173
+ // src/sdks/configurations/schemas/ex/exHttpSchema.ts
174
+ /**
175
+ * `keboola.ex-http` — only the connection block is stable here. The request/job definitions are
176
+ * component-managed and left unvalidated, so both levels are `.loose()`: extra `parameters` keys
177
+ * and top-level keys (`storage`, `processors`) pass through `schema`/`inputSchema` unchanged rather
178
+ * than being stripped on create/update.
179
+ */
180
+ const exHttpSchema = z.object({ parameters: z.object({
181
+ baseUrl: z.string(),
182
+ maxRedirects: z.number().optional()
183
+ }).loose() }).loose();
184
+ // src/sdks/configurations/schemas/exDb/exDbDefaultSchema.ts
185
+ /**
186
+ * Default extractor credentials with an optional SSH tunnel, for the generic SSH-only drivers.
187
+ *
188
+ * - Keep in sync with kbc-ui's `hasSshTunnel` / `hasSsl` (`ex-db-generic/helpers.ts`).
189
+ * - SSL-capable, tunnel-less and extra-field drivers get their own schema.
190
+ */
191
+ const exDbDefaultSchema = dbConfig(dbConnectionSchema.extend({ ssh: sshTunnelSchema.optional() }));
192
+ // src/sdks/configurations/schemas/exDb/exDbPgsqlSchema.ts
193
+ /** `keboola.ex-db-pgsql` — generic credentials that also accept SSL. */
194
+ const exDbPgsqlSchema = dbConfig(dbConnectionSchema.extend({
195
+ ssh: sshTunnelSchema.optional(),
196
+ ssl: sslSchema.optional()
197
+ }));
198
+ // src/sdks/configurations/schemas/exDb/exDbProgressSchema.ts
199
+ /** `kds-team.ex-progress-db` — generic credentials, no SSH tunnel or SSL. */
200
+ const exDbProgressSchema = dbConfig(dbConnectionSchema);
201
+ // src/sdks/configurations/schemas/exDb/exDbMysqlSchema.ts
202
+ /** `keboola.ex-db-mysql` — `database` optional + transaction-isolation / network-compression. */
203
+ const exDbMysqlSchema = dbConfig(dbConnectionSchema.extend({
204
+ database: z.string().optional(),
205
+ transactionIsolationLevel: z.enum([
206
+ "REPEATABLE READ",
207
+ "READ COMMITTED",
208
+ "READ UNCOMMITTED",
209
+ "SERIALIZABLE"
210
+ ]).optional(),
211
+ networkCompression: z.boolean().optional(),
212
+ ssh: sshTunnelSchema.optional(),
213
+ ssl: sslSchema.optional()
214
+ }));
215
+ // src/sdks/configurations/schemas/exDb/exDbMssqlSchema.ts
216
+ /** `keboola.ex-db-mssql` — `port` optional, otherwise the shared base. */
217
+ const exDbMssqlSchema = dbConfig(dbConnectionSchema.extend({
218
+ port: z.number().optional(),
219
+ ssh: sshTunnelSchema.optional(),
220
+ ssl: sslSchema.optional()
221
+ }));
222
+ // src/sdks/configurations/schemas/exDb/exDbOracleSchema.ts
223
+ /** `keboola.ex-db-oracle` — host/port/database all optional (tnsnames is the alternative). */
224
+ const exDbOracleSchema = dbConfig(dbConnectionSchema.omit({
225
+ host: true,
226
+ port: true,
227
+ database: true
228
+ }).extend({
229
+ host: z.string().optional(),
230
+ port: z.number().optional(),
231
+ database: z.string().optional(),
232
+ tnsnames: z.string().optional(),
233
+ connectThrough: z.boolean().optional(),
234
+ ssh: sshTunnelSchema.optional()
235
+ }));
236
+ // src/sdks/configurations/schemas/exDb/exDbFirebirdSchema.ts
237
+ /** `keboola.ex-db-firebird` — `dbname` + user/#password only (no host/port/database fields). */
238
+ const exDbFirebirdSchema = dbConfig(z.object({
239
+ dbname: z.string(),
240
+ user: z.string(),
241
+ "#password": z.string()
242
+ }));
243
+ // src/sdks/configurations/schemas/exDb/exTeradataSchema.ts
244
+ /** `keboola.ex-teradata` — shared base with optional `database`. */
245
+ const exTeradataSchema = dbConfig(dbConnectionSchema.extend({ database: z.string().optional() }));
246
+ // src/sdks/configurations/schemas/exDb/exDbInformixSchema.ts
247
+ /** `keboola.ex-db-informix` — Informix server name + protocol + optional locale. */
248
+ const exDbInformixSchema = dbConfig(dbConnectionSchema.extend({
249
+ serverName: z.string(),
250
+ protocol: z.enum(["onsoctcp", "onsocssl"]),
251
+ dbLocale: z.string().optional()
252
+ }));
253
+ // src/sdks/configurations/schemas/exDb/exDbSnowflakeSchema.ts
254
+ /**
255
+ * `keboola.ex-db-snowflake` — auth is a union: password OR key-pair (exactly one). The common
256
+ * fields (host/port/user/database + optional schema/warehouse) are shared; each variant requires
257
+ * its own secret and forbids the other, so a config carrying both — or neither — is rejected at
258
+ * runtime and at the type level.
259
+ */
260
+ const snowflakeCommon$1 = dbConnectionSchema.omit({ "#password": true }).extend({
261
+ schema: z.string().optional(),
262
+ warehouse: z.string().optional()
263
+ });
264
+ const exDbSnowflakeSchema = dbConfig(z.union([snowflakeCommon$1.extend({
265
+ "#password": z.string(),
266
+ "#privateKey": forbidden
267
+ }), snowflakeCommon$1.extend({
268
+ "#privateKey": z.string(),
269
+ "#password": forbidden
270
+ })]));
271
+ // src/sdks/configurations/schemas/exDb/exDbNetsuiteSchema.ts
272
+ /** `keboola.ex-db-netsuite` — SuiteAnalytics account/role + user/#password (no host/port/db). */
273
+ const exDbNetsuiteSchema = dbConfig(z.object({
274
+ accountId: z.string(),
275
+ roleId: z.string(),
276
+ user: z.string(),
277
+ "#password": z.string()
278
+ }));
279
+ /** `kds-team.ex-netsuite` — Connect host/port + server data source + account/role. */
280
+ const exKdsNetsuiteSchema = dbConfig(z.object({
281
+ host: z.string(),
282
+ port: z.number(),
283
+ server_data_source: z.enum(["NetSuite.com", "NetSuite2.com"]),
284
+ account_id: z.string(),
285
+ role_id: z.string(),
286
+ user: z.string(),
287
+ "#password": z.string()
288
+ }));
289
+ // src/sdks/configurations/schemas/gooddataWriterSchema.ts
290
+ /**
291
+ * A single exported column. `type` is always present and drives which of the other fields the
292
+ * UI shows (and persists): `dataType`/`dataTypeSize` for the base types + LABEL, `reference` for
293
+ * LABEL/HYPERLINK, `schemaReference` for REFERENCE, `format`/`dateDimension` for DATE, and
294
+ * `sortLabel`/`sortOrder` + the `identifier*` fields for ATTRIBUTE. They're optional here since a
295
+ * given column only carries the subset relevant to its type. Mirrors the kbc-ui column adapter
296
+ * (`apps/kbc-ui/src/scripts/modules/gooddata-writer-v3/helpers/makeColumnDefinition.ts`).
297
+ */
298
+ const gooddataColumn = z.object({
299
+ type: z.enum([
300
+ "ATTRIBUTE",
301
+ "CONNECTION_POINT",
302
+ "DATE",
303
+ "FACT",
304
+ "HYPERLINK",
305
+ "LABEL",
306
+ "REFERENCE",
307
+ "IGNORE"
308
+ ]),
309
+ id: z.string().optional(),
310
+ title: z.string().optional(),
311
+ dataType: z.enum([
312
+ "BIGINT",
313
+ "DATE",
314
+ "DECIMAL",
315
+ "INT",
316
+ "VARCHAR"
317
+ ]).optional(),
318
+ dataTypeSize: z.string().optional(),
319
+ reference: z.string().optional(),
320
+ schemaReference: z.string().optional(),
321
+ sortLabel: z.string().optional(),
322
+ sortOrder: z.enum(["ASC", "DESC"]).optional(),
323
+ format: z.string().optional(),
324
+ dateDimension: z.string().optional(),
325
+ identifier: z.string().optional(),
326
+ identifierLabel: z.string().optional(),
327
+ identifierSortLabel: z.string().optional()
328
+ });
329
+ /** One exported table: a GoodData `title`, its `columns` keyed by source column name, and an
330
+ * optional `disabled` flag toggled when export is switched off. */
331
+ const gooddataTable = z.object({
332
+ title: z.string(),
333
+ disabled: z.boolean().optional(),
334
+ identifier: z.string().optional(),
335
+ columns: z.record(z.string(), gooddataColumn)
336
+ });
337
+ /** One date dimension; `template` selects the date-dimension template (`gooddata` / `keboola` /
338
+ * a custom template id). */
339
+ const gooddataDimension = z.object({
340
+ template: z.string(),
341
+ includeTime: z.boolean().optional(),
342
+ identifier: z.string().optional()
343
+ });
344
+ /**
345
+ * `keboola.gooddata-writer` — GoodData project + login credentials plus the exported model:
346
+ * `tables` (keyed by source table id) and `dimensions` (keyed by dimension name). Both are
347
+ * optional — a fresh config has credentials before any table/dimension is mapped — and must be
348
+ * declared: the registry validates create/update input with a deep-partial that strips keys
349
+ * absent from this shape, so an undeclared `tables`/`dimensions` payload would be dropped before
350
+ * it's stored.
351
+ */
352
+ const gooddataWriterSchema = z.object({ parameters: z.object({
353
+ project: z.object({
354
+ pid: z.string(),
355
+ backendUrl: z.string().optional()
356
+ }),
357
+ user: z.object({
358
+ login: z.string(),
359
+ "#password": z.string()
360
+ }),
361
+ loadOnly: z.boolean().optional(),
362
+ multiLoad: z.boolean().optional(),
363
+ tables: z.record(z.string(), gooddataTable).optional(),
364
+ dimensions: z.record(z.string(), gooddataDimension).optional()
365
+ }) });
366
+ // src/sdks/configurations/schemas/googleAdsSchema.ts
367
+ /** `keboola.ex-google-ads` — OAuth credential reference + account selection. */
368
+ const exGoogleAdsSchema = z.object({
369
+ authorization: oauthAuthorizationSchema,
370
+ parameters: z.object({
371
+ customerId: z.array(z.string()),
372
+ onlyEnabledCustomers: z.boolean().optional(),
373
+ continueOnFailure: z.boolean().optional(),
374
+ getAccountChildren: z.boolean().optional()
375
+ })
376
+ });
377
+ // src/sdks/configurations/schemas/schedulerSchema.ts
378
+ /**
379
+ * `keboola.scheduler` — drives a target component config on a cron schedule. Unlike the
380
+ * writer configs, scheduler state lives at the top level (no `parameters` wrapper):
381
+ * `schedule` holds the cron expression + timezone + enabled/disabled state, `target`
382
+ * identifies which component configuration to run.
383
+ */
384
+ const schedulerSchema = z.object({
385
+ schedule: z.object({
386
+ cronTab: z.string(),
387
+ timezone: z.string().optional(),
388
+ state: z.enum(["enabled", "disabled"])
389
+ }),
390
+ target: z.object({
391
+ componentId: z.string(),
392
+ configurationId: z.string(),
393
+ mode: z.literal("run")
394
+ })
395
+ });
396
+ // src/sdks/configurations/schemas/wrDb/wrDbDefaultSchema.ts
397
+ /**
398
+ * Default writer credentials — host/port/user/#password/database + optional SSH and SSL tunnels.
399
+ * Shared by the writers that add no extra fields (`keboola.wr-db-mysql`, `keboola.wr-db-hive`);
400
+ * writers that add or rename fields get their own schema.
401
+ */
402
+ const wrDbDefaultSchema = dbConfig(dbConnectionSchema.extend({
403
+ ssh: sshTunnelSchema.optional(),
404
+ ssl: sslSchema.optional()
405
+ }));
406
+ // src/sdks/configurations/schemas/wrDb/wrDbPgsqlSchema.ts
407
+ /** `keboola.wr-db-pgsql` — adds a required `schema`, optional SSH. */
408
+ const wrDbPgsqlSchema = dbConfig(dbConnectionSchema.extend({
409
+ schema: z.string(),
410
+ ssh: sshTunnelSchema.optional()
411
+ }));
412
+ // src/sdks/configurations/schemas/wrDb/wrDbOracleSchema.ts
413
+ /** `keboola.wr-db-oracle` — optional `schema`, optional SSH. */
414
+ const wrDbOracleSchema = dbConfig(dbConnectionSchema.extend({
415
+ schema: z.string().optional(),
416
+ ssh: sshTunnelSchema.optional()
417
+ }));
418
+ // src/sdks/configurations/schemas/wrDb/wrSynapseSchema.ts
419
+ /** `keboola.wr-synapse` — optional `schema` (defaults to `dbo` in the UI). */
420
+ const wrSynapseSchema = dbConfig(dbConnectionSchema.extend({ schema: z.string().optional() }));
421
+ // src/sdks/configurations/schemas/wrDb/wrRedshiftSchema.ts
422
+ /** `keboola.wr-redshift-v2` — required `schema`, optional SSH. */
423
+ const wrRedshiftSchema = dbConfig(dbConnectionSchema.extend({
424
+ schema: z.string(),
425
+ ssh: sshTunnelSchema.optional()
426
+ }));
427
+ // src/sdks/configurations/schemas/wrDb/wrDbMssqlSchema.ts
428
+ /** `keboola.wr-db-mssql-v2` — optional `instance`, required `tdsVersion`, optional SSH. */
429
+ const wrDbMssqlSchema = dbConfig(dbConnectionSchema.extend({
430
+ instance: z.string().optional(),
431
+ tdsVersion: z.enum([
432
+ "7.0",
433
+ "7.1",
434
+ "7.2",
435
+ "7.3",
436
+ "7.4"
437
+ ]),
438
+ ssh: sshTunnelSchema.optional()
439
+ }));
440
+ // src/sdks/configurations/schemas/wrDb/wrDbImpalaSchema.ts
441
+ /** `keboola.wr-db-impala` — adds `auth_mech`, optional SSH. */
442
+ const wrDbImpalaSchema = dbConfig(dbConnectionSchema.extend({
443
+ auth_mech: z.number(),
444
+ ssh: sshTunnelSchema.optional()
445
+ }));
446
+ // src/sdks/configurations/schemas/wrDb/wrExasolSchema.ts
447
+ /**
448
+ * `kds-team.wr-exasol` — no `database`; auth is password OR SaaS personal-access-token
449
+ * (`#refresh_token`), at least one required (both may coexist). Mirrors kbc-ui's
450
+ * `apps/kbc-ui/src/scripts/modules/wr-db/templates/hasValidCredentials.ts`, which drops the
451
+ * `#password` requirement once a `#refresh_token` is present.
452
+ */
453
+ const exasolBase = z.object({
454
+ host: z.string(),
455
+ port: z.number(),
456
+ user: z.string(),
457
+ schema: z.string()
458
+ });
459
+ const wrExasolSchema = dbConfig(z.union([exasolBase.extend({
460
+ "#password": z.string(),
461
+ "#refresh_token": z.string().optional()
462
+ }), exasolBase.extend({
463
+ "#refresh_token": z.string(),
464
+ "#password": z.string().optional()
465
+ })]));
466
+ // src/sdks/configurations/schemas/wrDb/wrFireboltSchema.ts
467
+ /** `kds-team.wr-firebolt` — no host/port; engine + AWS staging credentials. */
468
+ const wrFireboltSchema = dbConfig(z.object({
469
+ user: z.string(),
470
+ "#password": z.string(),
471
+ database: z.string(),
472
+ aws_api_key_id: z.string(),
473
+ "#aws_api_key_secret": z.string(),
474
+ staging_bucket: z.string(),
475
+ engine_name: z.string().optional()
476
+ }));
477
+ // src/sdks/configurations/schemas/wrDb/wrHiveCsasSchema.ts
478
+ /** `kds-team.wr-hive-csas` — Hive base + Kerberos auth. */
479
+ const wrHiveCsasSchema = dbConfig(dbConnectionSchema.extend({
480
+ kinitPrincipal: z.string(),
481
+ servicePrincipal: z.string(),
482
+ config: z.string(),
483
+ "#keytab": z.string(),
484
+ ssh: sshTunnelSchema.optional()
485
+ }));
486
+ // src/sdks/configurations/schemas/wrDb/wrThoughtspotSchema.ts
487
+ /** `keboola.wr-thoughtspot` — SSH tunnel creds carried as top-level fields, not nested. */
488
+ const wrThoughtspotSchema = dbConfig(dbConnectionSchema.extend({
489
+ schema: z.string().optional(),
490
+ sshUser: z.string(),
491
+ "#sshPassword": z.string()
492
+ }));
493
+ // src/sdks/configurations/schemas/wrDb/wrSisenseSchema.ts
494
+ /** `keboola.wr-sisense` — uses `username` (not `user`). */
495
+ const wrSisenseSchema = dbConfig(z.object({
496
+ host: z.string(),
497
+ port: z.number(),
498
+ username: z.string(),
499
+ "#password": z.string(),
500
+ database: z.string()
501
+ }));
502
+ // src/sdks/configurations/schemas/wrDb/wrDbSnowflakeSchema.ts
503
+ /**
504
+ * `keboola.wr-db-snowflake` — auth is a union: password OR key-pair (exactly one). The common
505
+ * fields (host/port/user/database/schema/warehouse) are shared; each variant requires its own
506
+ * secret and *forbids the other* (`z.undefined()`), so a config carrying both — or neither —
507
+ * is rejected at runtime and at the type level. Without the `forbidden` half, the variants
508
+ * would be open objects: the extra key is excess (TS allows it) and stripped (Zod accepts it).
509
+ */
510
+ const snowflakeCommon = dbConnectionSchema.omit({ "#password": true }).extend({
511
+ schema: z.string(),
512
+ warehouse: z.string().optional()
513
+ });
514
+ const wrDbSnowflakeSchema = dbConfig(z.union([snowflakeCommon.extend({
515
+ "#password": z.string(),
516
+ "#privateKey": forbidden
517
+ }), snowflakeCommon.extend({
518
+ "#privateKey": z.string(),
519
+ "#password": forbidden
520
+ })]));
521
+ // src/sdks/configurations/createRegistry/createRegistry.ts
522
+ /** Deep-partial any schema: objects → keys optional (recursing), unions → each member
523
+ * deep-partialed, anything else left as-is. Lets a union schema (e.g. Snowflake's
524
+ * password | key-pair auth) still produce a partial input schema. */
525
+ const partialize = (schema) => {
526
+ if (schema instanceof z.ZodObject) return deepPartial(schema);
527
+ if (schema instanceof z.ZodUnion) {
528
+ const options = schema.options.map(partialize);
529
+ return z.union(options);
530
+ }
531
+ return schema;
532
+ };
533
+ const deepPartial = (schema) => {
534
+ const shape = {};
535
+ for (const [key, value] of Object.entries(schema.shape)) {
536
+ const field = value;
537
+ const inner = field instanceof z.ZodOptional ? field.unwrap() : field;
538
+ shape[key] = partialize(inner);
539
+ }
540
+ const partial = z.object(shape).partial();
541
+ return schema.def.catchall ? partial.catchall(schema.def.catchall) : partial;
542
+ };
543
+ const createRegistry = () => {
544
+ const map = /* @__PURE__ */ new Map();
545
+ const registry = {
546
+ add(componentId, schema) {
547
+ map.set(componentId, schema);
548
+ return registry;
549
+ },
550
+ get(componentId) {
551
+ const schema = map.get(componentId);
552
+ if (!schema) throw new Error(`No configuration registered for component "${componentId}".`);
553
+ return {
554
+ schema,
555
+ inputSchema: deepPartial(schema)
556
+ };
557
+ },
558
+ has: (componentId) => map.has(componentId)
559
+ };
560
+ return registry;
561
+ };
562
+ // src/sdks/configurations/registry.ts
563
+ const registry = createRegistry().add(ComponentId.WR_DB_MYSQL, wrDbDefaultSchema).add(ComponentId.WR_DB_PGSQL, wrDbPgsqlSchema).add(ComponentId.WR_PAIRITY, wrDbPgsqlSchema).add(ComponentId.WR_DB_ORACLE, wrDbOracleSchema).add(ComponentId.WR_DB_SNOWFLAKE, wrDbSnowflakeSchema).add(ComponentId.WR_DB_SNOWFLAKE_GCS, wrDbSnowflakeSchema).add(ComponentId.WR_DB_SNOWFLAKE_GCS_S3, wrDbSnowflakeSchema).add(ComponentId.WR_SNOWFLAKE_BLOB_STORAGE, wrDbSnowflakeSchema).add(ComponentId.WR_LOOKER_V2, wrDbSnowflakeSchema).add(ComponentId.WR_SYNAPSE, wrSynapseSchema).add(ComponentId.WR_REDSHIFT, wrRedshiftSchema).add(ComponentId.WR_DB_MSSQL, wrDbMssqlSchema).add(ComponentId.WR_DB_HIVE, wrDbDefaultSchema).add(ComponentId.WR_DB_IMPALA, wrDbImpalaSchema).add(ComponentId.WR_HIVE_CSAS, wrHiveCsasSchema).add(ComponentId.WR_THOUGHTSPOT, wrThoughtspotSchema).add(ComponentId.WR_EXASOL, wrExasolSchema).add(ComponentId.WR_FIREBOLT, wrFireboltSchema).add(ComponentId.WR_SISENSE, wrSisenseSchema).add(ComponentId.APP_DATA_GATEWAY, appDataGatewaySchema).add(ComponentId.SCHEDULER, schedulerSchema).add(ComponentId.APP_SNOWFLAKE_DWH_MANAGER, appSnowflakeDwhManagerSchema).add(ComponentId.GOODDATA_WRITER, gooddataWriterSchema).add(ComponentId.EX_DB_REDSHIFT, exDbDefaultSchema).add(ComponentId.EX_DB_DB2, exDbDefaultSchema).add(ComponentId.EX_DB_DB2_BATA, exDbDefaultSchema).add(ComponentId.EX_DB_MSSQL_CDATA, exDbDefaultSchema).add(ComponentId.EX_DB_IMPALA, exDbDefaultSchema).add(ComponentId.EX_DB_HIVE, exDbDefaultSchema).add(ComponentId.EX_DB_HIVE_CSAS, exDbDefaultSchema).add(ComponentId.EX_DB_HIVE_CSAS_TEST, exDbDefaultSchema).add(ComponentId.EX_DB_PGSQL, exDbPgsqlSchema).add(ComponentId.EX_DB_MYSQL, exDbMysqlSchema).add(ComponentId.EX_DB_MSSQL, exDbMssqlSchema).add(ComponentId.EX_DB_ORACLE, exDbOracleSchema).add(ComponentId.EX_DB_SNOWFLAKE, exDbSnowflakeSchema).add(ComponentId.EX_DB_FIREBIRD, exDbFirebirdSchema).add(ComponentId.EX_DB_NETSUITE, exDbNetsuiteSchema).add(ComponentId.EX_DB_INFORMIX, exDbInformixSchema).add(ComponentId.EX_TERADATA, exTeradataSchema).add(ComponentId.KDS_EX_NETSUITE, exKdsNetsuiteSchema).add(ComponentId.KDS_EX_PROGRESS_DB, exDbProgressSchema).add(ComponentId.EX_GOOGLE_ADS, exGoogleAdsSchema).add(ComponentId.EX_HTTP, exHttpSchema).add(ComponentId.EX_FTP, exFtpSchema).add(ComponentId.EX_FTP_CSAS, exFtpSchema).add(ComponentId.EX_AWS_S3, exAwsS3Schema).add(ComponentId.KDS_EX_AZURE_BLOB_STORAGE_V2, exAzureBlobSchema).add(ComponentId.KDS_EX_AZURE_DATA_LAKE_GEN2, exAzureDataLakeSchema);
564
+ // src/sdks/configurations/configurationsSdk.ts
565
+ const toConfigResult = (data, schema) => {
566
+ const result = schema.safeParse(data.configuration);
567
+ return {
568
+ data,
569
+ runnable: result.success,
570
+ error: result.error
571
+ };
572
+ };
573
+ const createConfigurationSdk = ({ storageClient, encryptionClient, context }) => {
574
+ const _encrypt = async (componentId, data) => {
575
+ if (isEmptyDeep(data)) return data;
576
+ return encryptionClient.encryptScopedSecrets({
577
+ scope: "ProjectSecure",
578
+ componentId,
579
+ projectId: context.project.sapiToken.owner.id,
580
+ data
581
+ });
582
+ };
583
+ const getConfiguration = async (path) => {
584
+ const data = await storageClient.configurations.getConfiguration(path);
585
+ const def = registry.get(path.componentId);
586
+ return toConfigResult(data, def.schema);
587
+ };
588
+ const createConfiguration = async (input) => {
589
+ const { componentId, branchId, configuration, ...rest } = input;
590
+ assertCanCreateConfiguration(context.project.sapiToken, { isDevModeActive: context.defaultBranch.isDev(branchId) });
591
+ const def = registry.get(componentId);
592
+ const validated = def.inputSchema.parse(configuration);
593
+ const encrypted = await _encrypt(componentId, validated);
594
+ const data = await storageClient.configurations.createConfiguration({
595
+ ...rest,
596
+ branchId,
597
+ componentId,
598
+ configuration: encrypted
599
+ });
600
+ return toConfigResult(data, def.schema);
601
+ };
602
+ const updateConfiguration = async (input) => {
603
+ const { componentId, branchId, configId, configuration, mode = "merge", ...rest } = input;
604
+ assertCanUpdateConfiguration(context.project.sapiToken, { isDevModeActive: context.defaultBranch.isDev(branchId) });
605
+ const def = registry.get(componentId);
606
+ const validated = def.inputSchema.parse(configuration);
607
+ const encrypted = await _encrypt(componentId, validated);
608
+ let newConfiguration = encrypted;
609
+ if (mode === "merge") {
610
+ const original = await storageClient.configurations.getConfiguration({
611
+ componentId,
612
+ branchId,
613
+ configId
614
+ });
615
+ newConfiguration = schemaGuidedMerge(def.schema, original.configuration ?? {}, encrypted);
616
+ }
617
+ const { configuration: data } = await storageClient.configurations.updateConfiguration({
618
+ ...rest,
619
+ branchId,
620
+ componentId,
621
+ configId,
622
+ configuration: newConfiguration
623
+ });
624
+ return toConfigResult(data, def.schema);
625
+ };
626
+ return {
627
+ getConfiguration,
628
+ createConfiguration,
629
+ updateConfiguration
630
+ };
631
+ };
2
632
  export { createConfigurationSdk };
633
+
634
+ //# sourceMappingURL=index.js.map