@keboola/api-client 29.0.0 → 32.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 (396) hide show
  1. package/AGENTS.md +11 -5
  2. package/API-SURFACE.md +7 -2
  3. package/CHANGELOG.md +1890 -0
  4. package/README.md +45 -19
  5. package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs → ManagementClientAuthError-B-tyPlyG.cjs} +2 -2
  6. package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs.map → ManagementClientAuthError-B-tyPlyG.cjs.map} +1 -1
  7. package/dist/{ManagementClientAuthError-B97OtOQ7.js → ManagementClientAuthError-BAFNvOdf.js} +2 -2
  8. package/dist/{ManagementClientAuthError-B97OtOQ7.js.map → ManagementClientAuthError-BAFNvOdf.js.map} +1 -1
  9. package/dist/ai/index.cjs +2 -2
  10. package/dist/ai/index.d.cts +2 -2
  11. package/dist/ai/index.d.ts +2 -2
  12. package/dist/ai/index.js +2 -2
  13. package/dist/ai/types.d.cts +1 -1
  14. package/dist/ai/types.d.ts +1 -1
  15. package/dist/{appLogs-Dl5BcCSD.d.cts → appLogs-BAaaGYKg.d.cts} +2 -2
  16. package/dist/{appLogs-enL9XR9r.js → appLogs-DTLE6HTy.js} +2 -2
  17. package/dist/{appLogs-enL9XR9r.js.map → appLogs-DTLE6HTy.js.map} +1 -1
  18. package/dist/{appLogs-VdgP08aX.d.ts → appLogs-DX_WTBCa.d.ts} +2 -2
  19. package/dist/{appLogs-CNG3yby-.cjs → appLogs-NIEDTDHf.cjs} +2 -2
  20. package/dist/{appLogs-CNG3yby-.cjs.map → appLogs-NIEDTDHf.cjs.map} +1 -1
  21. package/dist/apps/index.cjs +3 -3
  22. package/dist/apps/index.d.cts +3 -3
  23. package/dist/apps/index.d.ts +3 -3
  24. package/dist/apps/index.js +3 -3
  25. package/dist/apps/types.d.cts +2 -2
  26. package/dist/apps/types.d.ts +2 -2
  27. package/dist/assets/index.cjs +1 -1
  28. package/dist/assets/index.d.cts +1 -1
  29. package/dist/assets/index.d.ts +1 -1
  30. package/dist/assets/index.js +1 -1
  31. package/dist/auth/index.cjs +2 -1
  32. package/dist/auth/index.d.cts +2 -2
  33. package/dist/auth/index.d.ts +2 -2
  34. package/dist/auth/index.js +2 -2
  35. package/dist/auth/types.d.cts +2 -2
  36. package/dist/auth/types.d.ts +2 -2
  37. package/dist/{auth-5HCvCsZO.cjs → auth-DP-6TFiM.cjs} +2 -2
  38. package/dist/{auth-5HCvCsZO.cjs.map → auth-DP-6TFiM.cjs.map} +1 -1
  39. package/dist/{auth-D2jfNlpX.js → auth-DtbQaeDj.js} +2 -2
  40. package/dist/{auth-D2jfNlpX.js.map → auth-DtbQaeDj.js.map} +1 -1
  41. package/dist/{authClient-DOk6VKdV.js → authClient--BtZgjIc.js} +76 -11
  42. package/dist/authClient--BtZgjIc.js.map +1 -0
  43. package/dist/{authClient-Dsd7W99W.d.ts → authClient-CtfyVHRD.d.ts} +52 -5
  44. package/dist/{authClient-Bgj2Ay7h.d.cts → authClient-DhfzOUaa.d.cts} +52 -5
  45. package/dist/{authClient-Z8Eg8rlN.cjs → authClient-b7uec7sw.cjs} +81 -10
  46. package/dist/authClient-b7uec7sw.cjs.map +1 -0
  47. package/dist/chat/index.cjs +3 -3
  48. package/dist/chat/index.d.cts +2 -7
  49. package/dist/chat/index.d.ts +2 -7
  50. package/dist/chat/index.js +3 -3
  51. package/dist/chat/types.d.cts +1 -1
  52. package/dist/chat/types.d.ts +1 -1
  53. package/dist/{configurations-CujCwDcB.cjs → configurations-Ck-mNB_E.cjs} +2 -2
  54. package/dist/{configurations-CujCwDcB.cjs.map → configurations-Ck-mNB_E.cjs.map} +1 -1
  55. package/dist/{configurations-DCOJONZZ.cjs → configurations-CqwAxiQL.cjs} +5 -1
  56. package/dist/configurations-CqwAxiQL.cjs.map +1 -0
  57. package/dist/{configurations-Byt59bIa.js → configurations-ZwBXilW-.js} +2 -2
  58. package/dist/{configurations-Byt59bIa.js.map → configurations-ZwBXilW-.js.map} +1 -1
  59. package/dist/{configurations-iCbhe0tb.js → configurations-d7SZmw69.js} +5 -1
  60. package/dist/configurations-d7SZmw69.js.map +1 -0
  61. package/dist/constants/index.cjs +4 -1
  62. package/dist/constants/index.d.cts +3 -2
  63. package/dist/constants/index.d.ts +3 -2
  64. package/dist/constants/index.js +2 -2
  65. package/dist/{constants-CqyyBkXW.cjs → constants-ByEwVtGf.js} +48 -25
  66. package/dist/constants-ByEwVtGf.js.map +1 -0
  67. package/dist/{constants-_HhqKvBg.js → constants-lIfSdTzS.cjs} +89 -2
  68. package/dist/constants-lIfSdTzS.cjs.map +1 -0
  69. package/dist/{createFetchClient-BsG719K1.cjs → createFetchClient-BRfTjBLV.cjs} +29 -10
  70. package/dist/createFetchClient-BRfTjBLV.cjs.map +1 -0
  71. package/dist/{createFetchClient-BK0TZK-U.js → createFetchClient-BbG46bL0.js} +24 -11
  72. package/dist/createFetchClient-BbG46bL0.js.map +1 -0
  73. package/dist/{createGenericFetchClient-CVZYekDk.js → createGenericFetchClient-BHYQLZhe.js} +2 -2
  74. package/dist/{createGenericFetchClient-CVZYekDk.js.map → createGenericFetchClient-BHYQLZhe.js.map} +1 -1
  75. package/dist/{createGenericFetchClient-DLbjX0eM.cjs → createGenericFetchClient-DHs-i7_O.cjs} +2 -2
  76. package/dist/{createGenericFetchClient-DLbjX0eM.cjs.map → createGenericFetchClient-DHs-i7_O.cjs.map} +1 -1
  77. package/dist/{createOpenapiFetchClient-B5U1fCHS.js → createOpenapiFetchClient-Bn6_Pn0H.js} +2 -2
  78. package/dist/{createOpenapiFetchClient-B5U1fCHS.js.map → createOpenapiFetchClient-Bn6_Pn0H.js.map} +1 -1
  79. package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs → createOpenapiFetchClient-CyDUFxHB.cjs} +2 -2
  80. package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs.map → createOpenapiFetchClient-CyDUFxHB.cjs.map} +1 -1
  81. package/dist/{credential-0c6yFwtp.cjs → credential-DOXH7XRS.cjs} +2 -2
  82. package/dist/{credential-0c6yFwtp.cjs.map → credential-DOXH7XRS.cjs.map} +1 -1
  83. package/dist/{credential-kEGLnVez.js → credential-d2RDcXRB.js} +2 -2
  84. package/dist/{credential-kEGLnVez.js.map → credential-d2RDcXRB.js.map} +1 -1
  85. package/dist/dataScience/index.cjs +2 -2
  86. package/dist/dataScience/index.d.cts +2 -2
  87. package/dist/dataScience/index.d.ts +2 -2
  88. package/dist/dataScience/index.js +2 -2
  89. package/dist/dataScience/types.d.cts +2 -2
  90. package/dist/dataScience/types.d.ts +2 -2
  91. package/dist/{dataScience-CE0pSWbl.js → dataScience-Sm8iONhP.js} +5 -5
  92. package/dist/{dataScience-CE0pSWbl.js.map → dataScience-Sm8iONhP.js.map} +1 -1
  93. package/dist/{dataScience-C-JrA0Uk.cjs → dataScience-wexHEIue.cjs} +5 -5
  94. package/dist/{dataScience-C-JrA0Uk.cjs.map → dataScience-wexHEIue.cjs.map} +1 -1
  95. package/dist/developerPortal/index.cjs +1 -1
  96. package/dist/developerPortal/index.d.cts +2 -2
  97. package/dist/developerPortal/index.d.ts +2 -2
  98. package/dist/developerPortal/index.js +1 -1
  99. package/dist/developerPortal/types.d.cts +1 -1
  100. package/dist/developerPortal/types.d.ts +1 -1
  101. package/dist/{developerPortalClient-C8oq48xW.cjs → developerPortalClient-CgTSzLoG.cjs} +3 -3
  102. package/dist/{developerPortalClient-C8oq48xW.cjs.map → developerPortalClient-CgTSzLoG.cjs.map} +1 -1
  103. package/dist/{developerPortalClient-BPPEAdJW.js → developerPortalClient-DywKpDlW.js} +3 -3
  104. package/dist/{developerPortalClient-BPPEAdJW.js.map → developerPortalClient-DywKpDlW.js.map} +1 -1
  105. package/dist/domain/permissions/index.cjs +63 -1
  106. package/dist/domain/permissions/index.cjs.map +1 -0
  107. package/dist/domain/permissions/index.d.cts +52 -3
  108. package/dist/domain/permissions/index.d.ts +52 -3
  109. package/dist/domain/permissions/index.js +59 -2
  110. package/dist/domain/permissions/index.js.map +1 -0
  111. package/dist/editor/index.cjs +2 -2
  112. package/dist/editor/index.d.cts +2 -2
  113. package/dist/editor/index.d.ts +2 -2
  114. package/dist/editor/index.js +2 -2
  115. package/dist/editor/types.d.cts +1 -1
  116. package/dist/editor/types.d.ts +1 -1
  117. package/dist/encryption/index.cjs +1 -1
  118. package/dist/encryption/index.d.cts +1 -1
  119. package/dist/encryption/index.d.ts +1 -1
  120. package/dist/encryption/index.js +1 -1
  121. package/dist/encryption/types.d.cts +1 -1
  122. package/dist/encryption/types.d.ts +1 -1
  123. package/dist/import/index.cjs +1 -1
  124. package/dist/import/index.d.cts +3 -3
  125. package/dist/import/index.d.ts +3 -3
  126. package/dist/import/index.js +1 -1
  127. package/dist/{import-KLH1uRtx.cjs → import-C0-y1GQK.cjs} +3 -3
  128. package/dist/{import-KLH1uRtx.cjs.map → import-C0-y1GQK.cjs.map} +1 -1
  129. package/dist/{import-Cf0W-7YD.js → import-SQuurg1G.js} +3 -3
  130. package/dist/{import-Cf0W-7YD.js.map → import-SQuurg1G.js.map} +1 -1
  131. package/dist/{index-BEKaJ7Cc.d.cts → index-BKh0prif.d.cts} +4 -4
  132. package/dist/{index-KKJkrxjx.d.ts → index-Bc_hXWae.d.ts} +3 -3
  133. package/dist/{index-DYQt4zxC.d.ts → index-Bg1P6Bb2.d.ts} +6 -6
  134. package/dist/{index-DplMbm9E.d.cts → index-Bjk-tCpG.d.cts} +548 -3073
  135. package/dist/{index-eEBVG5s3.d.cts → index-C7e3wBt9.d.cts} +3 -3
  136. package/dist/{index-8pN6Emos.d.ts → index-CQrKS7PV.d.cts} +24 -4
  137. package/dist/{index-DVsnxZap.d.cts → index-CXtdQ7be.d.cts} +4 -4
  138. package/dist/{index-CLPrlyIz.d.cts → index-CeJOmN-P.d.ts} +24 -4
  139. package/dist/{index-BmjeNd9u.d.ts → index-Ctqkm3Fx.d.ts} +4 -4
  140. package/dist/{index-WQkVzx5e.d.cts → index-D_7yCRKy.d.cts} +4 -4
  141. package/dist/{index-DNlX-H1V.d.ts → index-Dbzjvy5h.d.ts} +5 -5
  142. package/dist/{index-BWBScAYc.d.cts → index-DeKPpYQy.d.ts} +3 -3
  143. package/dist/{index-DXi6wsr5.d.cts → index-DiHHyMEo.d.cts} +6 -6
  144. package/dist/{index-IN0qzs52.d.cts → index-DqOAjqxN.d.cts} +5 -5
  145. package/dist/{index-Dwp8tF6O.d.ts → index-FhKX7Cv1.d.ts} +548 -3073
  146. package/dist/{index-BthgbVdd.d.ts → index-GDdFZCXp.d.ts} +4 -4
  147. package/dist/{index-CXQRvZ-f.d.cts → index-Gn1H63Hk.d.cts} +4 -4
  148. package/dist/{index-vb9Rfqca.d.ts → index-NaYLwG_h.d.cts} +155 -4
  149. package/dist/{index-vb9Rfqca.d.cts → index-NaYLwG_h.d.ts} +155 -4
  150. package/dist/{index-DIM8KZly.d.ts → index-eAlN694c.d.cts} +3 -3
  151. package/dist/{index-Cfrl7sd5.d.ts → index-fHfc_VqS.d.ts} +4 -4
  152. package/dist/{index-CeistZnj.d.ts → index-tKsiUarj.d.ts} +4 -4
  153. package/dist/index.cjs +46 -225
  154. package/dist/index.cjs.map +1 -1
  155. package/dist/index.d.cts +6 -6
  156. package/dist/index.d.ts +6 -6
  157. package/dist/index.js +44 -226
  158. package/dist/index.js.map +1 -1
  159. package/dist/kaiAgent/index.cjs +3 -0
  160. package/dist/kaiAgent/index.d.cts +210 -0
  161. package/dist/kaiAgent/index.d.ts +210 -0
  162. package/dist/kaiAgent/index.js +2 -0
  163. package/dist/kaiAgent/types.cjs +0 -0
  164. package/dist/kaiAgent/types.d.cts +2 -0
  165. package/dist/kaiAgent/types.d.ts +2 -0
  166. package/dist/kaiAgent/types.js +1 -0
  167. package/dist/kaiAgent-4OiIK1C2.cjs +222 -0
  168. package/dist/kaiAgent-4OiIK1C2.cjs.map +1 -0
  169. package/dist/kaiAgent-HDaFS9BR.js +217 -0
  170. package/dist/kaiAgent-HDaFS9BR.js.map +1 -0
  171. package/dist/management/index.cjs +1 -1
  172. package/dist/management/index.d.cts +1 -1
  173. package/dist/management/index.d.ts +1 -1
  174. package/dist/management/index.js +1 -1
  175. package/dist/management/types.d.cts +1 -1
  176. package/dist/management/types.d.ts +1 -1
  177. package/dist/{management-DqwQcDCx.js → management-CIFhu1Nm.js} +6 -7
  178. package/dist/management-CIFhu1Nm.js.map +1 -0
  179. package/dist/{management-WOmlBt6H.cjs → management-DfjwQo7z.cjs} +6 -7
  180. package/dist/management-DfjwQo7z.cjs.map +1 -0
  181. package/dist/metastore/index.cjs +1 -1
  182. package/dist/metastore/index.d.cts +1 -1
  183. package/dist/metastore/index.d.ts +1 -1
  184. package/dist/metastore/index.js +1 -1
  185. package/dist/metastore/types.d.cts +1 -1
  186. package/dist/metastore/types.d.ts +1 -1
  187. package/dist/{metastore-CNEhL66f.js → metastore-CrXkKufo.js} +4 -4
  188. package/dist/{metastore-CNEhL66f.js.map → metastore-CrXkKufo.js.map} +1 -1
  189. package/dist/{metastore-CkQluyX1.cjs → metastore-Dq2NS6jb.cjs} +4 -4
  190. package/dist/{metastore-CkQluyX1.cjs.map → metastore-Dq2NS6jb.cjs.map} +1 -1
  191. package/dist/microsoftGraph/index.cjs +92 -0
  192. package/dist/microsoftGraph/index.cjs.map +1 -0
  193. package/dist/microsoftGraph/index.d.cts +305 -0
  194. package/dist/microsoftGraph/index.d.ts +305 -0
  195. package/dist/microsoftGraph/index.js +90 -0
  196. package/dist/microsoftGraph/index.js.map +1 -0
  197. package/dist/microsoftGraph/types.cjs +0 -0
  198. package/dist/microsoftGraph/types.d.cts +10 -0
  199. package/dist/microsoftGraph/types.d.ts +10 -0
  200. package/dist/microsoftGraph/types.js +1 -0
  201. package/dist/notifications/index.cjs +3 -3
  202. package/dist/notifications/index.d.cts +2 -2
  203. package/dist/notifications/index.d.ts +2 -2
  204. package/dist/notifications/index.js +3 -3
  205. package/dist/notifications/types.d.cts +1 -1
  206. package/dist/notifications/types.d.ts +1 -1
  207. package/dist/oauth/index.cjs +1 -1
  208. package/dist/oauth/index.d.cts +2 -2
  209. package/dist/oauth/index.d.ts +2 -2
  210. package/dist/oauth/index.js +1 -1
  211. package/dist/oauth/types.d.cts +1 -1
  212. package/dist/oauth/types.d.ts +1 -1
  213. package/dist/{oauth-DYDObUX9.js → oauth-CFwSNz37.js} +5 -5
  214. package/dist/{oauth-DYDObUX9.js.map → oauth-CFwSNz37.js.map} +1 -1
  215. package/dist/{oauth-DTvrqe6P.cjs → oauth-CkW5gln-.cjs} +5 -5
  216. package/dist/{oauth-DTvrqe6P.cjs.map → oauth-CkW5gln-.cjs.map} +1 -1
  217. package/dist/omnisearch/index.cjs +2 -2
  218. package/dist/omnisearch/index.d.cts +2 -2
  219. package/dist/omnisearch/index.d.ts +2 -2
  220. package/dist/omnisearch/index.js +2 -2
  221. package/dist/omnisearch/types.d.cts +1 -1
  222. package/dist/omnisearch/types.d.ts +1 -1
  223. package/dist/{project-io1pY-hW.d.ts → project-BOGaVs-q.d.ts} +2 -2
  224. package/dist/{project-CcGxXIW_.d.cts → project-BnQkL8cb.d.cts} +2 -2
  225. package/dist/queryService/index.cjs +1 -1
  226. package/dist/queryService/index.d.cts +1 -1
  227. package/dist/queryService/index.d.ts +1 -1
  228. package/dist/queryService/index.js +1 -1
  229. package/dist/queryService/types.d.cts +1 -1
  230. package/dist/queryService/types.d.ts +1 -1
  231. package/dist/{queryService-CvqDqigW.cjs → queryService-BLaGbpm-.cjs} +5 -5
  232. package/dist/{queryService-CvqDqigW.cjs.map → queryService-BLaGbpm-.cjs.map} +1 -1
  233. package/dist/{queryService-BHV_OZI2.js → queryService-DK-jUnET.js} +5 -5
  234. package/dist/{queryService-BHV_OZI2.js.map → queryService-DK-jUnET.js.map} +1 -1
  235. package/dist/queue/index.cjs +1 -1
  236. package/dist/queue/index.d.cts +3 -3
  237. package/dist/queue/index.d.ts +3 -3
  238. package/dist/queue/index.js +1 -1
  239. package/dist/queue/types.d.cts +1 -1
  240. package/dist/queue/types.d.ts +1 -1
  241. package/dist/{queue-CUHKupTA.cjs → queue-B7TY4JLf.cjs} +4 -4
  242. package/dist/{queue-CUHKupTA.cjs.map → queue-B7TY4JLf.cjs.map} +1 -1
  243. package/dist/{queue-uofE4Eu6.js → queue-DViSQ-eq.js} +4 -4
  244. package/dist/{queue-uofE4Eu6.js.map → queue-DViSQ-eq.js.map} +1 -1
  245. package/dist/scheduler/index.cjs +3 -3
  246. package/dist/scheduler/index.d.cts +2 -2
  247. package/dist/scheduler/index.d.ts +2 -2
  248. package/dist/scheduler/index.js +3 -3
  249. package/dist/scheduler/types.d.cts +1 -1
  250. package/dist/scheduler/types.d.ts +1 -1
  251. package/dist/schema-D1oxyn1O.d.cts +8760 -0
  252. package/dist/schema-D1oxyn1O.d.ts +8760 -0
  253. package/dist/sdk/configurations/index.cjs +1 -1
  254. package/dist/sdk/configurations/index.d.cts +4 -4
  255. package/dist/sdk/configurations/index.d.ts +4 -4
  256. package/dist/sdk/configurations/index.js +1 -1
  257. package/dist/sdk/developerPortal/index.cjs +3 -3
  258. package/dist/sdk/developerPortal/index.d.cts +3 -3
  259. package/dist/sdk/developerPortal/index.d.ts +3 -3
  260. package/dist/sdk/developerPortal/index.js +3 -3
  261. package/dist/sdk/queryService/index.d.cts +1 -1
  262. package/dist/sdk/queryService/index.d.ts +1 -1
  263. package/dist/sdk/semanticLayer/index.d.cts +1 -1
  264. package/dist/sdk/semanticLayer/index.d.ts +1 -1
  265. package/dist/sdk/semanticLayer/types.d.cts +1 -1
  266. package/dist/sdk/semanticLayer/types.d.ts +1 -1
  267. package/dist/sdk/storage/index.d.cts +1 -1
  268. package/dist/sdk/storage/index.d.ts +1 -1
  269. package/dist/sdk/tag/index.d.cts +2 -2
  270. package/dist/sdk/tag/index.d.ts +2 -2
  271. package/dist/sdk/tag/types.d.cts +1 -1
  272. package/dist/sdk/tag/types.d.ts +1 -1
  273. package/dist/sdk/vault/index.d.cts +1 -1
  274. package/dist/sdk/vault/index.d.ts +1 -1
  275. package/dist/serviceIds-fHLDwOg9.d.cts +31 -0
  276. package/dist/serviceIds-fHLDwOg9.d.ts +31 -0
  277. package/dist/status/index.cjs +1 -1
  278. package/dist/status/index.d.cts +1 -1
  279. package/dist/status/index.d.ts +1 -1
  280. package/dist/status/index.js +1 -1
  281. package/dist/storage/index.cjs +6 -3
  282. package/dist/storage/index.d.cts +3 -3
  283. package/dist/storage/index.d.ts +3 -3
  284. package/dist/storage/index.js +5 -4
  285. package/dist/storage/types.d.cts +4 -3
  286. package/dist/storage/types.d.ts +4 -3
  287. package/dist/{storage-DbyNnkIJ.cjs → storage-CihHwZ7z.cjs} +153 -161
  288. package/dist/storage-CihHwZ7z.cjs.map +1 -0
  289. package/dist/{storage-luq7YBZF.js → storage-kgxscFEg.js} +153 -161
  290. package/dist/storage-kgxscFEg.js.map +1 -0
  291. package/dist/stream/index.cjs +3 -3
  292. package/dist/stream/index.d.cts +2 -2
  293. package/dist/stream/index.d.ts +2 -2
  294. package/dist/stream/index.js +3 -3
  295. package/dist/stream/types.d.cts +1 -1
  296. package/dist/stream/types.d.ts +1 -1
  297. package/dist/syncActions/index.cjs +1 -1
  298. package/dist/syncActions/index.d.cts +1 -1
  299. package/dist/syncActions/index.d.ts +1 -1
  300. package/dist/syncActions/index.js +1 -1
  301. package/dist/syncActions/types.d.cts +1 -1
  302. package/dist/syncActions/types.d.ts +1 -1
  303. package/dist/{syncActions-ssWWVN_4.js → syncActions-B75t0NwP.js} +5 -5
  304. package/dist/{syncActions-ssWWVN_4.js.map → syncActions-B75t0NwP.js.map} +1 -1
  305. package/dist/{syncActions-DKWeJ8GH.cjs → syncActions-CevF_TEb.cjs} +5 -5
  306. package/dist/{syncActions-DKWeJ8GH.cjs.map → syncActions-CevF_TEb.cjs.map} +1 -1
  307. package/dist/telemetry/index.cjs +1 -1
  308. package/dist/telemetry/index.d.cts +2 -2
  309. package/dist/telemetry/index.d.ts +2 -2
  310. package/dist/telemetry/index.js +1 -1
  311. package/dist/{telemetry-2IrE8HaZ.cjs → telemetry-DwlSLVAU.cjs} +3 -3
  312. package/dist/{telemetry-2IrE8HaZ.cjs.map → telemetry-DwlSLVAU.cjs.map} +1 -1
  313. package/dist/{telemetry-yQfQxBBI.js → telemetry-FXpodtJN.js} +3 -3
  314. package/dist/{telemetry-yQfQxBBI.js.map → telemetry-FXpodtJN.js.map} +1 -1
  315. package/dist/{types-DEKF5pbg.d.cts → types-Av2egS_l.d.ts} +408 -24
  316. package/dist/{types-DBOEA7l0.d.cts → types-B2vmg_UF.d.cts} +3 -3
  317. package/dist/{types-DMvU4kZ2.d.cts → types-B4jdPHoL.d.cts} +2 -2
  318. package/dist/{types-CAOvDtMC.d.cts → types-BH9ljNmj.d.cts} +2 -2
  319. package/dist/{types-QOIQ-dZU.d.cts → types-BI2jI-3-.d.cts} +3 -3
  320. package/dist/types-BMQW-2Yw.d.ts +2804 -0
  321. package/dist/{types-C8XiTXxi.d.cts → types-BREGN3qo.d.cts} +2 -2
  322. package/dist/{types-B1S2H7q1.d.ts → types-BTbczawY.d.ts} +2 -2
  323. package/dist/{types-CwvOcTOm.d.cts → types-BV2BDccJ.d.cts} +247 -430
  324. package/dist/{types-BREBK0xX.d.ts → types-BZBdLUpH.d.ts} +2 -2
  325. package/dist/{types-Z-vUwgym.d.ts → types-BlCoTm7n.d.ts} +2 -2
  326. package/dist/{types-CSmttcZ_.d.ts → types-BnaAo7xn.d.ts} +2 -2
  327. package/dist/{types-V8rC5if7.d.cts → types-BoV9M5Xg.d.cts} +2 -2
  328. package/dist/{types-BCt0EMiO.d.ts → types-Bpnpa2Wt.d.ts} +3 -3
  329. package/dist/{types-BhBvnvqe.d.ts → types-BptQ7jpP.d.cts} +408 -24
  330. package/dist/{types-x4xPlrr0.d.ts → types-ByWD2oeV.d.ts} +2 -2
  331. package/dist/{types-BefwoXik.d.cts → types-C1vhYcic.d.cts} +2 -2
  332. package/dist/{types-DwX1uxp_.d.ts → types-C2CLlR4i.d.ts} +2 -2
  333. package/dist/{types-BO-mTxKb.d.cts → types-CGH_lfxS.d.cts} +2 -16
  334. package/dist/{types-CyRK5z-E.d.cts → types-CJHi0zdD.d.cts} +2 -2
  335. package/dist/{types-DeApSCzx.d.cts → types-COIsNoTQ.d.cts} +2 -2
  336. package/dist/{types-DkbfBOBr.d.cts → types-COc-nind.d.cts} +2 -2
  337. package/dist/{types-DvsGS8By.d.cts → types-CPanB0p7.d.cts} +3 -3
  338. package/dist/{types-BmFyDKe6.d.ts → types-CXTqFYah.d.ts} +28 -7
  339. package/dist/{types-DS8uFAeq.d.cts → types-CcuG9cid.d.cts} +2 -2
  340. package/dist/{types-2mHlPakp.d.cts → types-Cj4bLPp5.d.cts} +28 -7
  341. package/dist/{types-SGuvOEV8.d.ts → types-CkcMoXRk.d.ts} +3 -3
  342. package/dist/{types-D2n3h1gp.d.ts → types-CpALS017.d.ts} +2 -16
  343. package/dist/{types-DCBKso0t.d.cts → types-CvkqEvhv.d.cts} +2 -2
  344. package/dist/{types-B1glyy_Q.d.ts → types-CyHZ1ZQe.d.ts} +2 -2
  345. package/dist/{types-B06L4-WE.d.cts → types-CyiRYRVq.d.cts} +3 -3
  346. package/dist/{types-CvADp-x-.d.ts → types-Cz1dj_TM.d.ts} +2 -2
  347. package/dist/{types-CjAia48k.d.ts → types-D-qI9ne4.d.ts} +2 -2
  348. package/dist/{types-CtdyAkzI.d.cts → types-D1uloiuY.d.cts} +2 -2
  349. package/dist/{types-CC0wymfG.d.ts → types-D6jKxUv_.d.ts} +247 -430
  350. package/dist/{types-CexuN7Mw.d.cts → types-DNXC_-fA.d.cts} +7 -5
  351. package/dist/{types-BpWqpMkL.d.ts → types-DeSd3gqW.d.ts} +3 -3
  352. package/dist/{types-BD6czYPH.d.ts → types-De_DA2ga.d.ts} +7 -5
  353. package/dist/{types-h9TTimS_.d.ts → types-Dfc58bPE.d.ts} +2 -2
  354. package/dist/{types-n4FFKqa4.d.ts → types-Di8VIZwQ.d.ts} +2 -2
  355. package/dist/{types--T-vBqdd.d.cts → types-DlbiVsVo.d.cts} +2 -2
  356. package/dist/types-DuiUN0h8.d.ts +33557 -0
  357. package/dist/{types-7H6Dnz0Y.d.ts → types-DwpRt3e9.d.ts} +2 -2
  358. package/dist/{types-CI1mW2lA.d.ts → types-EJEoI3ZK.d.ts} +2 -2
  359. package/dist/types-GuWtMCMn.d.cts +33557 -0
  360. package/dist/{types-BRQAKEC1.d.cts → types-MbcIiKDI.d.cts} +3 -3
  361. package/dist/{types-DebL68-g.d.ts → types-RfaldD4P.d.ts} +3 -3
  362. package/dist/{types-CbZ8aMKW.d.cts → types-cDU_J45_.d.cts} +2 -2
  363. package/dist/{types-bws2RtKq.d.ts → types-dybUhlU2.d.ts} +2 -2
  364. package/dist/types-iNlsdRkx.d.cts +2804 -0
  365. package/dist/{types-BXK6Ebtm.d.ts → types-sVYo0o9_.d.ts} +3 -3
  366. package/dist/{types-DgaYUtu_.d.cts → types-zA3H84SM.d.cts} +2 -2
  367. package/dist/validateConnectionStatus-BrLXkoSI.js +38 -0
  368. package/dist/validateConnectionStatus-BrLXkoSI.js.map +1 -0
  369. package/dist/validateConnectionStatus-V9q6Nl6u.cjs +55 -0
  370. package/dist/validateConnectionStatus-V9q6Nl6u.cjs.map +1 -0
  371. package/dist/vault/index.cjs +4 -4
  372. package/dist/vault/index.d.cts +1 -1
  373. package/dist/vault/index.d.ts +1 -1
  374. package/dist/vault/index.js +4 -4
  375. package/dist/vault/types.d.cts +1 -1
  376. package/dist/vault/types.d.ts +1 -1
  377. package/package.json +57 -4
  378. package/surface/auth.md +9 -2
  379. package/surface/chat.md +1 -1
  380. package/surface/kaiAgent.md +1 -0
  381. package/surface/sdk.md +4 -4
  382. package/surface/storage.md +44 -44
  383. package/dist/authClient-DOk6VKdV.js.map +0 -1
  384. package/dist/authClient-Z8Eg8rlN.cjs.map +0 -1
  385. package/dist/configurations-DCOJONZZ.cjs.map +0 -1
  386. package/dist/configurations-iCbhe0tb.js.map +0 -1
  387. package/dist/constants-CqyyBkXW.cjs.map +0 -1
  388. package/dist/constants-_HhqKvBg.js.map +0 -1
  389. package/dist/createFetchClient-BK0TZK-U.js.map +0 -1
  390. package/dist/createFetchClient-BsG719K1.cjs.map +0 -1
  391. package/dist/management-DqwQcDCx.js.map +0 -1
  392. package/dist/management-WOmlBt6H.cjs.map +0 -1
  393. package/dist/storage-DbyNnkIJ.cjs.map +0 -1
  394. package/dist/storage-luq7YBZF.js.map +0 -1
  395. package/dist/types-CRYtdj5w.d.ts +0 -18784
  396. package/dist/types-ISUNM_BR.d.cts +0 -18784
@@ -0,0 +1,305 @@
1
+ import { T as MiddlewareFn } from "../index-CeJOmN-P.js";
2
+ import { n as ClientInitOptions } from "../types-DwpRt3e9.js";
3
+ import { t as components } from "../schema-D1oxyn1O.js";
4
+ //#region src/clients/microsoftGraph/microsoftGraphClient.d.ts
5
+ /**
6
+ * Auth arrives as a middleware, never as a token: a client here holds no credential. Pair it with
7
+ * `createMicrosoftGraphAuthMiddleware`, which the consumer builds from the token its OAuth flow
8
+ * just minted — Graph tokens are per user interaction and scoped to one account, so a client is
9
+ * built per interaction rather than shared.
10
+ */
11
+ type MicrosoftGraphClientOptions = Partial<Omit<ClientInitOptions, 'auth'>>;
12
+ declare const createMicrosoftGraphClient: ({ baseUrl, middlewares }?: MicrosoftGraphClientOptions) => {
13
+ getMySite: (signal?: AbortSignal) => Promise<{
14
+ id?: string;
15
+ '@odata.type': string;
16
+ } & {
17
+ deletedDateTime?: string | null;
18
+ '@odata.type': string;
19
+ } & {
20
+ aboutMe?: string | null;
21
+ accountEnabled?: boolean | null;
22
+ ageGroup?: string | null;
23
+ assignedLicenses?: components['schemas']['microsoft.graph.assignedLicense'][];
24
+ assignedPlans?: components['schemas']['microsoft.graph.assignedPlan'][];
25
+ authorizationInfo?: components['schemas']['microsoft.graph.authorizationInfo'] | (Record<string, never> | null);
26
+ birthday?: string;
27
+ businessPhones?: string[];
28
+ city?: string | null;
29
+ companyName?: string | null;
30
+ consentProvidedForMinor?: string | null;
31
+ country?: string | null;
32
+ createdDateTime?: string | null;
33
+ creationType?: string | null;
34
+ customSecurityAttributes?: components['schemas']['microsoft.graph.customSecurityAttributeValue'] | (Record<string, never> | null);
35
+ department?: string | null;
36
+ deviceEnrollmentLimit?: number;
37
+ displayName?: string | null;
38
+ employeeHireDate?: string | null;
39
+ employeeId?: string | null;
40
+ employeeLeaveDateTime?: string | null;
41
+ employeeOrgData?: components['schemas']['microsoft.graph.employeeOrgData'] | (Record<string, never> | null);
42
+ employeeType?: string | null;
43
+ externalUserState?: string | null;
44
+ externalUserStateChangeDateTime?: string | null;
45
+ faxNumber?: string | null;
46
+ givenName?: string | null;
47
+ hireDate?: string;
48
+ identities?: components['schemas']['microsoft.graph.objectIdentity'][];
49
+ identityParentId?: string | null;
50
+ imAddresses?: (string | null)[];
51
+ interests?: (string | null)[];
52
+ isManagementRestricted?: boolean | null;
53
+ isResourceAccount?: boolean | null;
54
+ jobTitle?: string | null;
55
+ lastPasswordChangeDateTime?: string | null;
56
+ legalAgeGroupClassification?: string | null;
57
+ licenseAssignmentStates?: components['schemas']['microsoft.graph.licenseAssignmentState'][];
58
+ mail?: string | null;
59
+ mailboxSettings?: components['schemas']['microsoft.graph.mailboxSettings'] | (Record<string, never> | null);
60
+ mailNickname?: string | null;
61
+ mobilePhone?: string | null;
62
+ mySite?: string | null;
63
+ officeLocation?: string | null;
64
+ onPremisesDistinguishedName?: string | null;
65
+ onPremisesDomainName?: string | null;
66
+ onPremisesExtensionAttributes?: components['schemas']['microsoft.graph.onPremisesExtensionAttributes'] | (Record<string, never> | null);
67
+ onPremisesImmutableId?: string | null;
68
+ onPremisesLastSyncDateTime?: string | null;
69
+ onPremisesProvisioningErrors?: components['schemas']['microsoft.graph.onPremisesProvisioningError'][];
70
+ onPremisesSamAccountName?: string | null;
71
+ onPremisesSecurityIdentifier?: string | null;
72
+ onPremisesSyncEnabled?: boolean | null;
73
+ onPremisesUserPrincipalName?: string | null;
74
+ otherMails?: string[];
75
+ passwordPolicies?: string | null;
76
+ passwordProfile?: components['schemas']['microsoft.graph.passwordProfile'] | (Record<string, never> | null);
77
+ pastProjects?: (string | null)[];
78
+ postalCode?: string | null;
79
+ preferredDataLocation?: string | null;
80
+ preferredLanguage?: string | null;
81
+ preferredName?: string | null;
82
+ print?: components['schemas']['microsoft.graph.userPrint'] | (Record<string, never> | null);
83
+ provisionedPlans?: components['schemas']['microsoft.graph.provisionedPlan'][];
84
+ proxyAddresses?: string[];
85
+ responsibilities?: (string | null)[];
86
+ schools?: (string | null)[];
87
+ securityIdentifier?: string | null;
88
+ serviceProvisioningErrors?: components['schemas']['microsoft.graph.serviceProvisioningError'][];
89
+ showInAddressList?: boolean | null;
90
+ signInActivity?: components['schemas']['microsoft.graph.signInActivity'] | (Record<string, never> | null);
91
+ signInSessionsValidFromDateTime?: string | null;
92
+ skills?: (string | null)[];
93
+ state?: string | null;
94
+ streetAddress?: string | null;
95
+ surname?: string | null;
96
+ usageLocation?: string | null;
97
+ userPrincipalName?: string | null;
98
+ userType?: string | null;
99
+ activities?: components['schemas']['microsoft.graph.userActivity'][];
100
+ adhocCalls?: components['schemas']['microsoft.graph.adhocCall'][];
101
+ agreementAcceptances?: components['schemas']['microsoft.graph.agreementAcceptance'][];
102
+ appRoleAssignments?: components['schemas']['microsoft.graph.appRoleAssignment'][];
103
+ authentication?: components['schemas']['microsoft.graph.authentication'] | (Record<string, never> | null);
104
+ calendar?: components['schemas']['microsoft.graph.calendar'] | (Record<string, never> | null);
105
+ calendarGroups?: components['schemas']['microsoft.graph.calendarGroup'][];
106
+ calendars?: components['schemas']['microsoft.graph.calendar'][];
107
+ calendarView?: components['schemas']['microsoft.graph.event'][];
108
+ chats?: components['schemas']['microsoft.graph.chat'][];
109
+ cloudClipboard?: components['schemas']['microsoft.graph.cloudClipboardRoot'] | (Record<string, never> | null);
110
+ cloudPCs?: components['schemas']['microsoft.graph.cloudPC'][];
111
+ contactFolders?: components['schemas']['microsoft.graph.contactFolder'][];
112
+ contacts?: components['schemas']['microsoft.graph.contact'][];
113
+ createdObjects?: components['schemas']['microsoft.graph.directoryObject'][];
114
+ dataSecurityAndGovernance?: components['schemas']['microsoft.graph.userDataSecurityAndGovernance'] | (Record<string, never> | null);
115
+ deviceManagementTroubleshootingEvents?: components['schemas']['microsoft.graph.deviceManagementTroubleshootingEvent'][];
116
+ directReports?: components['schemas']['microsoft.graph.directoryObject'][];
117
+ drive?: components['schemas']['microsoft.graph.drive'] | (Record<string, never> | null);
118
+ drives?: components['schemas']['microsoft.graph.drive'][];
119
+ employeeExperience?: components['schemas']['microsoft.graph.employeeExperienceUser'] | (Record<string, never> | null);
120
+ events?: components['schemas']['microsoft.graph.event'][];
121
+ extensions?: components['schemas']['microsoft.graph.extension'][];
122
+ followedSites?: components['schemas']['microsoft.graph.site'][];
123
+ inferenceClassification?: components['schemas']['microsoft.graph.inferenceClassification'] | (Record<string, never> | null);
124
+ insights?: components['schemas']['microsoft.graph.itemInsights'] | (Record<string, never> | null);
125
+ joinedTeams?: components['schemas']['microsoft.graph.team'][];
126
+ licenseDetails?: components['schemas']['microsoft.graph.licenseDetails'][];
127
+ mailFolders?: components['schemas']['microsoft.graph.mailFolder'][];
128
+ managedAppRegistrations?: components['schemas']['microsoft.graph.managedAppRegistration'][];
129
+ managedDevices?: components['schemas']['microsoft.graph.managedDevice'][];
130
+ manager?: components['schemas']['microsoft.graph.directoryObject'] | (Record<string, never> | null);
131
+ memberOf?: components['schemas']['microsoft.graph.directoryObject'][];
132
+ messages?: components['schemas']['microsoft.graph.message'][];
133
+ oauth2PermissionGrants?: components['schemas']['microsoft.graph.oAuth2PermissionGrant'][];
134
+ onenote?: components['schemas']['microsoft.graph.onenote'] | (Record<string, never> | null);
135
+ onlineMeetings?: components['schemas']['microsoft.graph.onlineMeeting'][];
136
+ onPremisesSyncBehavior?: components['schemas']['microsoft.graph.onPremisesSyncBehavior'] | (Record<string, never> | null);
137
+ outlook?: components['schemas']['microsoft.graph.outlookUser'] | (Record<string, never> | null);
138
+ ownedDevices?: components['schemas']['microsoft.graph.directoryObject'][];
139
+ ownedObjects?: components['schemas']['microsoft.graph.directoryObject'][];
140
+ people?: components['schemas']['microsoft.graph.person'][];
141
+ permissionGrants?: components['schemas']['microsoft.graph.resourceSpecificPermissionGrant'][];
142
+ photo?: components['schemas']['microsoft.graph.profilePhoto'] | (Record<string, never> | null);
143
+ photos?: components['schemas']['microsoft.graph.profilePhoto'][];
144
+ planner?: components['schemas']['microsoft.graph.plannerUser'] | (Record<string, never> | null);
145
+ presence?: components['schemas']['microsoft.graph.presence'] | (Record<string, never> | null);
146
+ registeredDevices?: components['schemas']['microsoft.graph.directoryObject'][];
147
+ scopedRoleMemberOf?: components['schemas']['microsoft.graph.scopedRoleMembership'][];
148
+ settings?: components['schemas']['microsoft.graph.userSettings'] | (Record<string, never> | null);
149
+ solutions?: components['schemas']['microsoft.graph.userSolutionRoot'] | (Record<string, never> | null);
150
+ sponsorOf?: components['schemas']['microsoft.graph.directoryObject'][];
151
+ sponsors?: components['schemas']['microsoft.graph.directoryObject'][];
152
+ teamwork?: components['schemas']['microsoft.graph.userTeamwork'] | (Record<string, never> | null);
153
+ todo?: components['schemas']['microsoft.graph.todo'] | (Record<string, never> | null);
154
+ transitiveMemberOf?: components['schemas']['microsoft.graph.directoryObject'][];
155
+ '@odata.type': string;
156
+ }>;
157
+ getMyDrive: (signal?: AbortSignal) => Promise<{
158
+ id?: string;
159
+ '@odata.type': string;
160
+ } & {
161
+ createdBy?: components['schemas']['microsoft.graph.identitySet'] | (Record<string, never> | null);
162
+ createdDateTime?: string;
163
+ description?: string | null;
164
+ eTag?: string | null;
165
+ lastModifiedBy?: components['schemas']['microsoft.graph.identitySet'] | (Record<string, never> | null);
166
+ lastModifiedDateTime?: string;
167
+ name?: string | null;
168
+ parentReference?: components['schemas']['microsoft.graph.itemReference'] | (Record<string, never> | null);
169
+ webUrl?: string | null;
170
+ createdByUser?: components['schemas']['microsoft.graph.user'] | (Record<string, never> | null);
171
+ lastModifiedByUser?: components['schemas']['microsoft.graph.user'] | (Record<string, never> | null);
172
+ '@odata.type': string;
173
+ } & {
174
+ driveType?: string | null;
175
+ owner?: components['schemas']['microsoft.graph.identitySet'] | (Record<string, never> | null);
176
+ quota?: components['schemas']['microsoft.graph.quota'] | (Record<string, never> | null);
177
+ sharePointIds?: components['schemas']['microsoft.graph.sharepointIds'] | (Record<string, never> | null);
178
+ system?: components['schemas']['microsoft.graph.systemFacet'] | (Record<string, never> | null);
179
+ bundles?: components['schemas']['microsoft.graph.driveItem'][];
180
+ following?: components['schemas']['microsoft.graph.driveItem'][];
181
+ items?: components['schemas']['microsoft.graph.driveItem'][];
182
+ list?: components['schemas']['microsoft.graph.list'] | (Record<string, never> | null);
183
+ root?: components['schemas']['microsoft.graph.driveItem'] | (Record<string, never> | null);
184
+ special?: components['schemas']['microsoft.graph.driveItem'][];
185
+ '@odata.type': string;
186
+ }>;
187
+ getFile: (driveId: string, fileId: string, signal?: AbortSignal) => Promise<{
188
+ id?: string;
189
+ '@odata.type': string;
190
+ } & {
191
+ createdBy?: components['schemas']['microsoft.graph.identitySet'] | (Record<string, never> | null);
192
+ createdDateTime?: string;
193
+ description?: string | null;
194
+ eTag?: string | null;
195
+ lastModifiedBy?: components['schemas']['microsoft.graph.identitySet'] | (Record<string, never> | null);
196
+ lastModifiedDateTime?: string;
197
+ name?: string | null;
198
+ parentReference?: components['schemas']['microsoft.graph.itemReference'] | (Record<string, never> | null);
199
+ webUrl?: string | null;
200
+ createdByUser?: components['schemas']['microsoft.graph.user'] | (Record<string, never> | null);
201
+ lastModifiedByUser?: components['schemas']['microsoft.graph.user'] | (Record<string, never> | null);
202
+ '@odata.type': string;
203
+ } & {
204
+ audio?: components['schemas']['microsoft.graph.audio'] | (Record<string, never> | null);
205
+ bundle?: components['schemas']['microsoft.graph.bundle'] | (Record<string, never> | null);
206
+ content?: string | null;
207
+ cTag?: string | null;
208
+ deleted?: components['schemas']['microsoft.graph.deleted'] | (Record<string, never> | null);
209
+ file?: components['schemas']['microsoft.graph.file'] | (Record<string, never> | null);
210
+ fileSystemInfo?: components['schemas']['microsoft.graph.fileSystemInfo'] | (Record<string, never> | null);
211
+ folder?: components['schemas']['microsoft.graph.folder'] | (Record<string, never> | null);
212
+ image?: components['schemas']['microsoft.graph.image'] | (Record<string, never> | null);
213
+ location?: components['schemas']['microsoft.graph.geoCoordinates'] | (Record<string, never> | null);
214
+ malware?: components['schemas']['microsoft.graph.malware'] | (Record<string, never> | null);
215
+ package?: components['schemas']['microsoft.graph.package'] | (Record<string, never> | null);
216
+ pendingOperations?: components['schemas']['microsoft.graph.pendingOperations'] | (Record<string, never> | null);
217
+ photo?: components['schemas']['microsoft.graph.photo'] | (Record<string, never> | null);
218
+ publication?: components['schemas']['microsoft.graph.publicationFacet'] | (Record<string, never> | null);
219
+ remoteItem?: components['schemas']['microsoft.graph.remoteItem'] | (Record<string, never> | null);
220
+ root?: components['schemas']['microsoft.graph.root'] | (Record<string, never> | null);
221
+ searchResult?: components['schemas']['microsoft.graph.searchResult'] | (Record<string, never> | null);
222
+ shared?: components['schemas']['microsoft.graph.shared'] | (Record<string, never> | null);
223
+ sharepointIds?: components['schemas']['microsoft.graph.sharepointIds'] | (Record<string, never> | null);
224
+ size?: number | null;
225
+ specialFolder?: components['schemas']['microsoft.graph.specialFolder'] | (Record<string, never> | null);
226
+ video?: components['schemas']['microsoft.graph.video'] | (Record<string, never> | null);
227
+ webDavUrl?: string | null;
228
+ analytics?: components['schemas']['microsoft.graph.itemAnalytics'] | (Record<string, never> | null);
229
+ children?: components['schemas']['microsoft.graph.driveItem'][];
230
+ listItem?: components['schemas']['microsoft.graph.listItem'] | (Record<string, never> | null);
231
+ permissions?: components['schemas']['microsoft.graph.permission'][];
232
+ retentionLabel?: components['schemas']['microsoft.graph.itemRetentionLabel'] | (Record<string, never> | null);
233
+ subscriptions?: components['schemas']['microsoft.graph.subscription'][];
234
+ thumbnails?: components['schemas']['microsoft.graph.thumbnailSet'][];
235
+ versions?: components['schemas']['microsoft.graph.driveItemVersion'][];
236
+ workbook?: components['schemas']['microsoft.graph.workbook'] | (Record<string, never> | null);
237
+ '@odata.type': string;
238
+ }>;
239
+ getDriveItemBySharingUrl: (sharingUrl: string, signal?: AbortSignal) => Promise<{
240
+ id?: string;
241
+ '@odata.type': string;
242
+ } & {
243
+ createdBy?: components['schemas']['microsoft.graph.identitySet'] | (Record<string, never> | null);
244
+ createdDateTime?: string;
245
+ description?: string | null;
246
+ eTag?: string | null;
247
+ lastModifiedBy?: components['schemas']['microsoft.graph.identitySet'] | (Record<string, never> | null);
248
+ lastModifiedDateTime?: string;
249
+ name?: string | null;
250
+ parentReference?: components['schemas']['microsoft.graph.itemReference'] | (Record<string, never> | null);
251
+ webUrl?: string | null;
252
+ createdByUser?: components['schemas']['microsoft.graph.user'] | (Record<string, never> | null);
253
+ lastModifiedByUser?: components['schemas']['microsoft.graph.user'] | (Record<string, never> | null);
254
+ '@odata.type': string;
255
+ } & {
256
+ audio?: components['schemas']['microsoft.graph.audio'] | (Record<string, never> | null);
257
+ bundle?: components['schemas']['microsoft.graph.bundle'] | (Record<string, never> | null);
258
+ content?: string | null;
259
+ cTag?: string | null;
260
+ deleted?: components['schemas']['microsoft.graph.deleted'] | (Record<string, never> | null);
261
+ file?: components['schemas']['microsoft.graph.file'] | (Record<string, never> | null);
262
+ fileSystemInfo?: components['schemas']['microsoft.graph.fileSystemInfo'] | (Record<string, never> | null);
263
+ folder?: components['schemas']['microsoft.graph.folder'] | (Record<string, never> | null);
264
+ image?: components['schemas']['microsoft.graph.image'] | (Record<string, never> | null);
265
+ location?: components['schemas']['microsoft.graph.geoCoordinates'] | (Record<string, never> | null);
266
+ malware?: components['schemas']['microsoft.graph.malware'] | (Record<string, never> | null);
267
+ package?: components['schemas']['microsoft.graph.package'] | (Record<string, never> | null);
268
+ pendingOperations?: components['schemas']['microsoft.graph.pendingOperations'] | (Record<string, never> | null);
269
+ photo?: components['schemas']['microsoft.graph.photo'] | (Record<string, never> | null);
270
+ publication?: components['schemas']['microsoft.graph.publicationFacet'] | (Record<string, never> | null);
271
+ remoteItem?: components['schemas']['microsoft.graph.remoteItem'] | (Record<string, never> | null);
272
+ root?: components['schemas']['microsoft.graph.root'] | (Record<string, never> | null);
273
+ searchResult?: components['schemas']['microsoft.graph.searchResult'] | (Record<string, never> | null);
274
+ shared?: components['schemas']['microsoft.graph.shared'] | (Record<string, never> | null);
275
+ sharepointIds?: components['schemas']['microsoft.graph.sharepointIds'] | (Record<string, never> | null);
276
+ size?: number | null;
277
+ specialFolder?: components['schemas']['microsoft.graph.specialFolder'] | (Record<string, never> | null);
278
+ video?: components['schemas']['microsoft.graph.video'] | (Record<string, never> | null);
279
+ webDavUrl?: string | null;
280
+ analytics?: components['schemas']['microsoft.graph.itemAnalytics'] | (Record<string, never> | null);
281
+ children?: components['schemas']['microsoft.graph.driveItem'][];
282
+ listItem?: components['schemas']['microsoft.graph.listItem'] | (Record<string, never> | null);
283
+ permissions?: components['schemas']['microsoft.graph.permission'][];
284
+ retentionLabel?: components['schemas']['microsoft.graph.itemRetentionLabel'] | (Record<string, never> | null);
285
+ subscriptions?: components['schemas']['microsoft.graph.subscription'][];
286
+ thumbnails?: components['schemas']['microsoft.graph.thumbnailSet'][];
287
+ versions?: components['schemas']['microsoft.graph.driveItemVersion'][];
288
+ workbook?: components['schemas']['microsoft.graph.workbook'] | (Record<string, never> | null);
289
+ '@odata.type': string;
290
+ }>;
291
+ };
292
+ //#endregion
293
+ //#region src/clients/microsoftGraph/middleware.d.ts
294
+ /**
295
+ * Stamps a Graph access token as `Authorization: Bearer …`.
296
+ *
297
+ * There is deliberately no refresh-and-replay here, and no `sdks/microsoftGraph/` to own one: the
298
+ * consumer's OAuth library (MSAL in the browser) mints and refreshes these tokens per user
299
+ * interaction, so this package holds no token state to manage. It exists so the client can take a
300
+ * `MiddlewareFn` rather than a credential, without every consumer restating the header.
301
+ */
302
+ declare const createMicrosoftGraphAuthMiddleware: (accessToken: string) => MiddlewareFn;
303
+ //#endregion
304
+ export { createMicrosoftGraphAuthMiddleware, createMicrosoftGraphClient };
305
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,90 @@
1
+ import { o as HttpHeader } from "../createFetchClient-BbG46bL0.js";
2
+ import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-Bn6_Pn0H.js";
3
+ //#region src/clients/microsoftGraph/utils.ts
4
+ const encodeSharingUrl = (sharingUrl) => {
5
+ const binary = String.fromCharCode(...new TextEncoder().encode(sharingUrl));
6
+ return `u!${btoa(binary).replace(/=+$/, "").replace(/\//g, "_").replace(/\+/g, "-")}`;
7
+ };
8
+ //#endregion
9
+ //#region src/clients/microsoftGraph/microsoftGraphClient.ts
10
+ const MICROSOFT_GRAPH_BASE_URL = "https://graph.microsoft.com/v1.0";
11
+ const DRIVE_ITEM_SELECT = [
12
+ "id",
13
+ "name",
14
+ "parentReference"
15
+ ];
16
+ const ODATA_QUERY = { queryArrayFormat: "comma" };
17
+ const createMicrosoftGraphClient = ({ baseUrl = MICROSOFT_GRAPH_BASE_URL, middlewares = [] } = {}) => {
18
+ const client = createOpenapiFetchClient({
19
+ baseUrl,
20
+ middlewares
21
+ });
22
+ const getMySite = async (signal) => {
23
+ const { data } = await client.get("/me", { query: { $select: ["mySite"] } }, {
24
+ signal,
25
+ ...ODATA_QUERY
26
+ });
27
+ return data;
28
+ };
29
+ const getMyDrive = async (signal) => {
30
+ const { data } = await client.get("/me/drive", { query: { $select: ["webUrl"] } }, {
31
+ signal,
32
+ ...ODATA_QUERY
33
+ });
34
+ return data;
35
+ };
36
+ const getFile = async (driveId, fileId, signal) => {
37
+ const { data } = await client.get("/drives/{drive-id}/items/{driveItem-id}", {
38
+ path: {
39
+ "drive-id": driveId,
40
+ "driveItem-id": fileId
41
+ },
42
+ query: { $select: DRIVE_ITEM_SELECT }
43
+ }, {
44
+ signal,
45
+ ...ODATA_QUERY
46
+ });
47
+ return data;
48
+ };
49
+ /**
50
+ * Resolves the real DriveItem (id + parentReference.driveId) for a shared item a file picker
51
+ * returned with empty ids (e.g. "Shared with me" SharePoint files).
52
+ */
53
+ const getDriveItemBySharingUrl = async (sharingUrl, signal) => {
54
+ const { data } = await client.get("/shares/{sharedDriveItem-id}/driveItem", {
55
+ path: { "sharedDriveItem-id": encodeSharingUrl(sharingUrl) },
56
+ query: { $select: DRIVE_ITEM_SELECT }
57
+ }, {
58
+ signal,
59
+ ...ODATA_QUERY,
60
+ headers: { Prefer: "redeemSharingLinkIfNecessary" }
61
+ });
62
+ return data;
63
+ };
64
+ return {
65
+ getMySite,
66
+ getMyDrive,
67
+ getFile,
68
+ getDriveItemBySharingUrl
69
+ };
70
+ };
71
+ //#endregion
72
+ //#region src/clients/microsoftGraph/middleware.ts
73
+ /**
74
+ * Stamps a Graph access token as `Authorization: Bearer …`.
75
+ *
76
+ * There is deliberately no refresh-and-replay here, and no `sdks/microsoftGraph/` to own one: the
77
+ * consumer's OAuth library (MSAL in the browser) mints and refreshes these tokens per user
78
+ * interaction, so this package holds no token state to manage. It exists so the client can take a
79
+ * `MiddlewareFn` rather than a credential, without every consumer restating the header.
80
+ */
81
+ const createMicrosoftGraphAuthMiddleware = (accessToken) => {
82
+ return (next) => async (request) => {
83
+ request.request.headers.set(HttpHeader.AUTHORIZATION, `Bearer ${accessToken}`);
84
+ return next(request);
85
+ };
86
+ };
87
+ //#endregion
88
+ export { createMicrosoftGraphAuthMiddleware, createMicrosoftGraphClient };
89
+
90
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/clients/microsoftGraph/utils.ts","../../src/clients/microsoftGraph/microsoftGraphClient.ts","../../src/clients/microsoftGraph/middleware.ts"],"sourcesContent":["// Encode a sharing URL into a Graph sharing token: base64 of the UTF-8 bytes, converted to\n// unpadded base64url, prefixed with `u!`. TextEncoder keeps non-ASCII file names (e.g. ä, č) valid.\n// https://learn.microsoft.com/en-us/graph/api/shares-get#encoding-sharing-urls\nexport const encodeSharingUrl = (sharingUrl: string) => {\n const binary = String.fromCharCode(...new TextEncoder().encode(sharingUrl));\n const base64 = btoa(binary).replace(/=+$/, '').replace(/\\//g, '_').replace(/\\+/g, '-');\n return `u!${base64}`;\n};\n","import { createOpenapiFetchClient } from '../../fetchClient';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport { encodeSharingUrl } from './utils';\n\n// Microsoft Graph is not a Keboola service, so unlike a stack client this base URL is not\n// discovered — the version prefix is part of Graph's own API contract. Overridable for tests.\nconst MICROSOFT_GRAPH_BASE_URL = 'https://graph.microsoft.com/v1.0';\n\nconst DRIVE_ITEM_SELECT = ['id', 'name', 'parentReference'];\n\n// OData wants `$select=id,name` — the default array format would send `$select[0]=id`.\nconst ODATA_QUERY = { queryArrayFormat: 'comma' } as const;\n\n/**\n * Auth arrives as a middleware, never as a token: a client here holds no credential. Pair it with\n * `createMicrosoftGraphAuthMiddleware`, which the consumer builds from the token its OAuth flow\n * just minted — Graph tokens are per user interaction and scoped to one account, so a client is\n * built per interaction rather than shared.\n */\ntype MicrosoftGraphClientOptions = Partial<Omit<ClientInitOptions, 'auth'>>;\n\nexport const createMicrosoftGraphClient = ({\n baseUrl = MICROSOFT_GRAPH_BASE_URL,\n middlewares = [],\n}: MicrosoftGraphClientOptions = {}) => {\n const client = createOpenapiFetchClient<paths>({ baseUrl, middlewares });\n\n const getMySite = async (signal?: AbortSignal) => {\n const { data } = await client.get(\n '/me',\n { query: { $select: ['mySite'] } },\n { signal, ...ODATA_QUERY },\n );\n\n return data;\n };\n\n const getMyDrive = async (signal?: AbortSignal) => {\n const { data } = await client.get(\n '/me/drive',\n { query: { $select: ['webUrl'] } },\n { signal, ...ODATA_QUERY },\n );\n\n return data;\n };\n\n const getFile = async (driveId: string, fileId: string, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/drives/{drive-id}/items/{driveItem-id}',\n {\n path: { 'drive-id': driveId, 'driveItem-id': fileId },\n query: { $select: DRIVE_ITEM_SELECT },\n },\n { signal, ...ODATA_QUERY },\n );\n\n return data;\n };\n\n /**\n * Resolves the real DriveItem (id + parentReference.driveId) for a shared item a file picker\n * returned with empty ids (e.g. \"Shared with me\" SharePoint files).\n */\n const getDriveItemBySharingUrl = async (sharingUrl: string, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/shares/{sharedDriveItem-id}/driveItem',\n {\n path: { 'sharedDriveItem-id': encodeSharingUrl(sharingUrl) },\n query: { $select: DRIVE_ITEM_SELECT },\n },\n // Graph only redeems a sharing link into a DriveItem when asked to.\n { signal, ...ODATA_QUERY, headers: { Prefer: 'redeemSharingLinkIfNecessary' } },\n );\n\n return data;\n };\n\n return {\n getMySite,\n getMyDrive,\n getFile,\n getDriveItemBySharingUrl,\n };\n};\n","import { HttpHeader, type MiddlewareFn } from '../../fetchClient';\n\n/**\n * Stamps a Graph access token as `Authorization: Bearer …`.\n *\n * There is deliberately no refresh-and-replay here, and no `sdks/microsoftGraph/` to own one: the\n * consumer's OAuth library (MSAL in the browser) mints and refreshes these tokens per user\n * interaction, so this package holds no token state to manage. It exists so the client can take a\n * `MiddlewareFn` rather than a credential, without every consumer restating the header.\n */\nexport const createMicrosoftGraphAuthMiddleware = (accessToken: string): MiddlewareFn => {\n return (next) => async (request) => {\n request.request.headers.set(HttpHeader.AUTHORIZATION, `Bearer ${accessToken}`);\n return next(request);\n };\n};\n"],"mappings":";;;AAGA,MAAa,oBAAoB,eAAuB;CACtD,MAAM,SAAS,OAAO,aAAa,GAAG,IAAI,YAAY,CAAC,CAAC,OAAO,UAAU,CAAC;CAE1E,OAAO,KADQ,KAAK,MAAM,CAAC,CAAC,QAAQ,OAAO,EAAE,CAAC,CAAC,QAAQ,OAAO,GAAG,CAAC,CAAC,QAAQ,OAAO,GACjE;AACnB;;;ACCA,MAAM,2BAA2B;AAEjC,MAAM,oBAAoB;CAAC;CAAM;CAAQ;AAAiB;AAG1D,MAAM,cAAc,EAAE,kBAAkB,QAAQ;AAUhD,MAAa,8BAA8B,EACzC,UAAU,0BACV,cAAc,CAAC,MACgB,CAAC,MAAM;CACtC,MAAM,SAAS,yBAAgC;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,YAAY,OAAO,WAAyB;EAChD,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,OACA,EAAE,OAAO,EAAE,SAAS,CAAC,QAAQ,EAAE,EAAE,GACjC;GAAE;GAAQ,GAAG;EAAY,CAC3B;EAEA,OAAO;CACT;CAEA,MAAM,aAAa,OAAO,WAAyB;EACjD,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,aACA,EAAE,OAAO,EAAE,SAAS,CAAC,QAAQ,EAAE,EAAE,GACjC;GAAE;GAAQ,GAAG;EAAY,CAC3B;EAEA,OAAO;CACT;CAEA,MAAM,UAAU,OAAO,SAAiB,QAAgB,WAAyB;EAC/E,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,2CACA;GACE,MAAM;IAAE,YAAY;IAAS,gBAAgB;GAAO;GACpD,OAAO,EAAE,SAAS,kBAAkB;EACtC,GACA;GAAE;GAAQ,GAAG;EAAY,CAC3B;EAEA,OAAO;CACT;;;;;CAMA,MAAM,2BAA2B,OAAO,YAAoB,WAAyB;EACnF,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,0CACA;GACE,MAAM,EAAE,sBAAsB,iBAAiB,UAAU,EAAE;GAC3D,OAAO,EAAE,SAAS,kBAAkB;EACtC,GAEA;GAAE;GAAQ,GAAG;GAAa,SAAS,EAAE,QAAQ,+BAA+B;EAAE,CAChF;EAEA,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;CACF;AACF;;;;;;;;;;;AC5EA,MAAa,sCAAsC,gBAAsC;CACvF,QAAQ,SAAS,OAAO,YAAY;EAClC,QAAQ,QAAQ,QAAQ,IAAI,WAAW,eAAe,UAAU,aAAa;EAC7E,OAAO,KAAK,OAAO;CACrB;AACF"}
File without changes
@@ -0,0 +1,10 @@
1
+ import { c as OpenapiReturnType } from "../index-CQrKS7PV.cjs";
2
+ import { n as paths } from "../schema-D1oxyn1O.cjs";
3
+ //#region src/clients/microsoftGraph/types.d.ts
4
+ type User = OpenapiReturnType<paths['/me']['get']>;
5
+ type Drive = OpenapiReturnType<paths['/me/drive']['get']>;
6
+ type DriveItem = OpenapiReturnType<paths['/drives/{drive-id}/items/{driveItem-id}']['get']>;
7
+ type SharedDriveItem = OpenapiReturnType<paths['/shares/{sharedDriveItem-id}/driveItem']['get']>;
8
+ //#endregion
9
+ export { Drive, DriveItem, SharedDriveItem, User };
10
+ //# sourceMappingURL=types.d.cts.map
@@ -0,0 +1,10 @@
1
+ import { c as OpenapiReturnType } from "../index-CeJOmN-P.js";
2
+ import { n as paths } from "../schema-D1oxyn1O.js";
3
+ //#region src/clients/microsoftGraph/types.d.ts
4
+ type User = OpenapiReturnType<paths['/me']['get']>;
5
+ type Drive = OpenapiReturnType<paths['/me/drive']['get']>;
6
+ type DriveItem = OpenapiReturnType<paths['/drives/{drive-id}/items/{driveItem-id}']['get']>;
7
+ type SharedDriveItem = OpenapiReturnType<paths['/shares/{sharedDriveItem-id}/driveItem']['get']>;
8
+ //#endregion
9
+ export { Drive, DriveItem, SharedDriveItem, User };
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_concurrent = require("../concurrent-tbiIa0UL.cjs");
3
- const require_createGenericFetchClient = require("../createGenericFetchClient-DLbjX0eM.cjs");
4
- const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-Cr90VXY4.cjs");
5
- const require_auth = require("../auth-5HCvCsZO.cjs");
3
+ const require_createGenericFetchClient = require("../createGenericFetchClient-DHs-i7_O.cjs");
4
+ const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-CyDUFxHB.cjs");
5
+ const require_auth = require("../auth-DP-6TFiM.cjs");
6
6
  //#region src/clients/notifications/notificationsClient.ts
7
7
  const createNotificationsClient = ({ baseUrl, middlewares, auth }) => {
8
8
  const client = require_createOpenapiFetchClient.createOpenapiFetchClient({
@@ -1,5 +1,5 @@
1
- import { n as ClientInitOptions } from "../types-C8XiTXxi.cjs";
2
- import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-CbZ8aMKW.cjs";
1
+ import { n as ClientInitOptions } from "../types-BREGN3qo.cjs";
2
+ import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-cDU_J45_.cjs";
3
3
  //#region src/clients/notifications/notificationsClient.d.ts
4
4
  declare const createNotificationsClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
5
5
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
@@ -1,5 +1,5 @@
1
- import { n as ClientInitOptions } from "../types-7H6Dnz0Y.js";
2
- import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-CvADp-x-.js";
1
+ import { n as ClientInitOptions } from "../types-DwpRt3e9.js";
2
+ import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-Cz1dj_TM.js";
3
3
  //#region src/clients/notifications/notificationsClient.d.ts
4
4
  declare const createNotificationsClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
5
5
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
@@ -1,7 +1,7 @@
1
1
  import { t as concurrent } from "../concurrent-CH9fbNr3.js";
2
- import { t as createGenericFetchClient } from "../createGenericFetchClient-CVZYekDk.js";
3
- import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-B5U1fCHS.js";
4
- import { t as createAuthHeaders } from "../auth-D2jfNlpX.js";
2
+ import { t as createGenericFetchClient } from "../createGenericFetchClient-BHYQLZhe.js";
3
+ import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-Bn6_Pn0H.js";
4
+ import { t as createAuthHeaders } from "../auth-DtbQaeDj.js";
5
5
  //#region src/clients/notifications/notificationsClient.ts
6
6
  const createNotificationsClient = ({ baseUrl, middlewares, auth }) => {
7
7
  const client = createOpenapiFetchClient({
@@ -1,2 +1,2 @@
1
- import { a as SubscriptionId, i as SubscriptionFilter, n as ListSubscriptionsQuery, o as SubscriptionRecipient, r as ProjectSubscription, t as CreateSubscriptionBody } from "../types-CbZ8aMKW.cjs";
1
+ import { a as SubscriptionId, i as SubscriptionFilter, n as ListSubscriptionsQuery, o as SubscriptionRecipient, r as ProjectSubscription, t as CreateSubscriptionBody } from "../types-cDU_J45_.cjs";
2
2
  export { CreateSubscriptionBody, ListSubscriptionsQuery, ProjectSubscription, SubscriptionFilter, SubscriptionId, SubscriptionRecipient };
@@ -1,2 +1,2 @@
1
- import { a as SubscriptionId, i as SubscriptionFilter, n as ListSubscriptionsQuery, o as SubscriptionRecipient, r as ProjectSubscription, t as CreateSubscriptionBody } from "../types-CvADp-x-.js";
1
+ import { a as SubscriptionId, i as SubscriptionFilter, n as ListSubscriptionsQuery, o as SubscriptionRecipient, r as ProjectSubscription, t as CreateSubscriptionBody } from "../types-Cz1dj_TM.js";
2
2
  export { CreateSubscriptionBody, ListSubscriptionsQuery, ProjectSubscription, SubscriptionFilter, SubscriptionId, SubscriptionRecipient };
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_oauth = require("../oauth-DTvrqe6P.cjs");
2
+ const require_oauth = require("../oauth-CkW5gln-.cjs");
3
3
  exports.createOauthClient = require_oauth.createOauthClient;
@@ -1,5 +1,5 @@
1
- import { n as ClientInitOptions } from "../types-C8XiTXxi.cjs";
2
- import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-DgaYUtu_.cjs";
1
+ import { n as ClientInitOptions } from "../types-BREGN3qo.cjs";
2
+ import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-zA3H84SM.cjs";
3
3
  //#region src/clients/oauth/oauthClient.d.ts
4
4
  declare const createOauthClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
5
5
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
@@ -1,5 +1,5 @@
1
- import { n as ClientInitOptions } from "../types-7H6Dnz0Y.js";
2
- import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-B1glyy_Q.js";
1
+ import { n as ClientInitOptions } from "../types-DwpRt3e9.js";
2
+ import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-CyHZ1ZQe.js";
3
3
  //#region src/clients/oauth/oauthClient.d.ts
4
4
  declare const createOauthClient: ({ baseUrl, middlewares, auth }: ClientInitOptions) => {
5
5
  healthCheck: (signal?: AbortSignal) => Promise<unknown>;
@@ -1,2 +1,2 @@
1
- import { t as createOauthClient } from "../oauth-DYDObUX9.js";
1
+ import { t as createOauthClient } from "../oauth-CFwSNz37.js";
2
2
  export { createOauthClient };
@@ -1,2 +1,2 @@
1
- import { a as CredentialInput, i as Credential, n as CreateCredentialBody, o as CredentialPath, r as CreateCredentialInput, s as GetCredentialsInput, t as ComponentPath } from "../types-DgaYUtu_.cjs";
1
+ import { a as CredentialInput, i as Credential, n as CreateCredentialBody, o as CredentialPath, r as CreateCredentialInput, s as GetCredentialsInput, t as ComponentPath } from "../types-zA3H84SM.cjs";
2
2
  export { ComponentPath, CreateCredentialBody, CreateCredentialInput, Credential, CredentialInput, CredentialPath, type GetCredentialsInput };
@@ -1,2 +1,2 @@
1
- import { a as CredentialInput, i as Credential, n as CreateCredentialBody, o as CredentialPath, r as CreateCredentialInput, s as GetCredentialsInput, t as ComponentPath } from "../types-B1glyy_Q.js";
1
+ import { a as CredentialInput, i as Credential, n as CreateCredentialBody, o as CredentialPath, r as CreateCredentialInput, s as GetCredentialsInput, t as ComponentPath } from "../types-CyHZ1ZQe.js";
2
2
  export { ComponentPath, CreateCredentialBody, CreateCredentialInput, Credential, CredentialInput, CredentialPath, type GetCredentialsInput };
@@ -1,7 +1,7 @@
1
- import { d as HttpStatus, r as isApiError } from "./createFetchClient-BK0TZK-U.js";
2
- import { t as createGenericFetchClient } from "./createGenericFetchClient-CVZYekDk.js";
3
- import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-B5U1fCHS.js";
4
- import { t as createAuthHeaders } from "./auth-D2jfNlpX.js";
1
+ import { f as HttpStatus, r as isApiError } from "./createFetchClient-BbG46bL0.js";
2
+ import { t as createGenericFetchClient } from "./createGenericFetchClient-BHYQLZhe.js";
3
+ import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-Bn6_Pn0H.js";
4
+ import { t as createAuthHeaders } from "./auth-DtbQaeDj.js";
5
5
  //#region src/clients/oauth/utils.ts
6
6
  /**
7
7
  * The credentials payload rides one of two fields, and only one of them is in the current spec:
@@ -80,4 +80,4 @@ const createOauthClient = ({ baseUrl, middlewares, auth }) => {
80
80
  //#endregion
81
81
  export { createOauthClient as t };
82
82
 
83
- //# sourceMappingURL=oauth-DYDObUX9.js.map
83
+ //# sourceMappingURL=oauth-CFwSNz37.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-DYDObUX9.js","names":[],"sources":["../src/clients/oauth/utils.ts","../src/clients/oauth/oauthClient.ts"],"sourcesContent":["/**\n * Which credentials to list:\n *\n * - `all` — the whole project: branch-scoped and branchless alike.\n * - `branchless` — only what is tied to no branch at all, not even the default one.\n * - `branched` — only the branch whose id it carries.\n *\n * Discriminated on `scope`, not on `branchId` being present: a `string | 'all' | 'branchless'` union\n * collapses to `string`, so a mistyped scope would silently become a branch-id filter.\n */\nexport type GetCredentialsInput =\n | { scope: 'all'; componentId?: string }\n | { scope: 'branchless'; componentId?: string }\n | { scope: 'branched'; branchId: string; componentId?: string };\n\n/**\n * All three scopes ride the one `branchId` query parameter:\n *\n * - `all` → omitted, which the service reads as no filter.\n * - `branchless` → the literal string `'null'`, which it reads as `branchId IS NULL`.\n * - `branched` → the branch id itself.\n */\nexport type CredentialsDataFormat = 'encrypted' | 'plain';\n\n/**\n * The credentials payload rides one of two fields, and only one of them is in the current spec:\n *\n * - `encrypted` — `#data`, the payload serialized to a string. The `#` marks it for the service to\n * encrypt at rest.\n * - `plain` — `data`, the payload as an object. Only services predating the spec accept it.\n */\nexport const encodeCredentialsData = (\n data: Record<string, unknown>,\n format: CredentialsDataFormat,\n) => (format === 'encrypted' ? { '#data': JSON.stringify(data) } : { data });\n\nexport const getScopedBranchId = (scope: GetCredentialsInput) => {\n switch (scope.scope) {\n case 'all':\n return undefined;\n case 'branchless':\n return 'null';\n case 'branched':\n return scope.branchId;\n }\n};\n","import { createGenericFetchClient, createOpenapiFetchClient, isApiError } from '../../fetchClient';\nimport { HttpStatus } from '../../internal';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type { CreateCredentialInput, CredentialInput } from './types';\nimport type { CredentialsDataFormat, GetCredentialsInput } from './utils';\nimport { encodeCredentialsData, getScopedBranchId } from './utils';\n\nexport const createOauthClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n const getCredentials = async (scope: GetCredentialsInput, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/credentials',\n { query: { branchId: getScopedBranchId(scope), componentId: scope.componentId } },\n { signal },\n );\n return data;\n };\n\n const getCredential = async ({ componentId, id }: CredentialInput, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/credentials/{componentId}/{name}',\n { path: { componentId, name: id } },\n { signal },\n );\n return data;\n };\n\n const createCredential = async (\n { componentId, data, ...rest }: CreateCredentialInput,\n signal?: AbortSignal,\n ) => {\n const post = (format: CredentialsDataFormat) =>\n client\n .post(\n '/credentials/{componentId}',\n {\n path: { componentId },\n // The plain shape predates the spec, so no schema can describe it. It borrows the\n // encrypted field's type to get past the generated body — the one assertion here.\n body: { ...rest, ...(encodeCredentialsData(data, format) as { '#data': string }) },\n },\n { signal },\n )\n .then((response) => response.data);\n\n try {\n return await post('plain');\n } catch (error) {\n if (isApiError(error) && error.response.status === HttpStatus.UNPROCESSABLE_ENTITY) {\n return post('encrypted');\n }\n throw error;\n }\n };\n\n const deleteCredential = async ({ componentId, id }: CredentialInput, signal?: AbortSignal) => {\n await client.delete(\n '/credentials/{componentId}/{name}',\n { path: { componentId, name: id } },\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 getCredentials,\n getCredential,\n createCredential,\n deleteCredential,\n };\n};\n"],"mappings":";;;;;;;;;;;;AA+BA,MAAa,yBACX,MACA,WACI,WAAW,cAAc,EAAE,SAAS,KAAK,UAAU,IAAI,EAAE,IAAI,EAAE,KAAK;AAE1E,MAAa,qBAAqB,UAA+B;CAC/D,QAAQ,MAAM,OAAd;EACE,KAAK,OACH;EACF,KAAK,cACH,OAAO;EACT,KAAK,YACH,OAAO,MAAM;CACjB;AACF;;;ACnCA,MAAa,qBAAqB,EAAE,SAAS,aAAa,WAA8B;CACtF,MAAM,SAAS,yBAAgC;EAC7C;EACA;EACA,SAAS,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,gBAAgB,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,iBAAiB,OAAO,OAA4B,WAAyB;EACjF,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,gBACA,EAAE,OAAO;GAAE,UAAU,kBAAkB,KAAK;GAAG,aAAa,MAAM;EAAY,EAAE,GAChF,EAAE,OAAO,CACX;EACA,OAAO;CACT;CAEA,MAAM,gBAAgB,OAAO,EAAE,aAAa,MAAuB,WAAyB;EAC1F,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,qCACA,EAAE,MAAM;GAAE;GAAa,MAAM;EAAG,EAAE,GAClC,EAAE,OAAO,CACX;EACA,OAAO;CACT;CAEA,MAAM,mBAAmB,OACvB,EAAE,aAAa,MAAM,GAAG,QACxB,WACG;EACH,MAAM,QAAQ,WACZ,OACG,KACC,8BACA;GACE,MAAM,EAAE,YAAY;GAGpB,MAAM;IAAE,GAAG;IAAM,GAAI,sBAAsB,MAAM,MAAM;GAA0B;EACnF,GACA,EAAE,OAAO,CACX,CAAC,CACA,MAAM,aAAa,SAAS,IAAI;EAErC,IAAI;GACF,OAAO,MAAM,KAAK,OAAO;EAC3B,SAAS,OAAO;GACd,IAAI,WAAW,KAAK,KAAK,MAAM,SAAS,WAAW,WAAW,sBAC5D,OAAO,KAAK,WAAW;GAEzB,MAAM;EACR;CACF;CAEA,MAAM,mBAAmB,OAAO,EAAE,aAAa,MAAuB,WAAyB;EAC7F,MAAM,OAAO,OACX,qCACA,EAAE,MAAM;GAAE;GAAa,MAAM;EAAG,EAAE,GAClC,EAAE,OAAO,CACX;CACF;CAEA,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAExE,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;CACF;AACF"}
1
+ {"version":3,"file":"oauth-CFwSNz37.js","names":[],"sources":["../src/clients/oauth/utils.ts","../src/clients/oauth/oauthClient.ts"],"sourcesContent":["/**\n * Which credentials to list:\n *\n * - `all` — the whole project: branch-scoped and branchless alike.\n * - `branchless` — only what is tied to no branch at all, not even the default one.\n * - `branched` — only the branch whose id it carries.\n *\n * Discriminated on `scope`, not on `branchId` being present: a `string | 'all' | 'branchless'` union\n * collapses to `string`, so a mistyped scope would silently become a branch-id filter.\n */\nexport type GetCredentialsInput =\n | { scope: 'all'; componentId?: string }\n | { scope: 'branchless'; componentId?: string }\n | { scope: 'branched'; branchId: string; componentId?: string };\n\n/**\n * All three scopes ride the one `branchId` query parameter:\n *\n * - `all` → omitted, which the service reads as no filter.\n * - `branchless` → the literal string `'null'`, which it reads as `branchId IS NULL`.\n * - `branched` → the branch id itself.\n */\nexport type CredentialsDataFormat = 'encrypted' | 'plain';\n\n/**\n * The credentials payload rides one of two fields, and only one of them is in the current spec:\n *\n * - `encrypted` — `#data`, the payload serialized to a string. The `#` marks it for the service to\n * encrypt at rest.\n * - `plain` — `data`, the payload as an object. Only services predating the spec accept it.\n */\nexport const encodeCredentialsData = (\n data: Record<string, unknown>,\n format: CredentialsDataFormat,\n) => (format === 'encrypted' ? { '#data': JSON.stringify(data) } : { data });\n\nexport const getScopedBranchId = (scope: GetCredentialsInput) => {\n switch (scope.scope) {\n case 'all':\n return undefined;\n case 'branchless':\n return 'null';\n case 'branched':\n return scope.branchId;\n }\n};\n","import { createGenericFetchClient, createOpenapiFetchClient, isApiError } from '../../fetchClient';\nimport { HttpStatus } from '../../internal';\nimport { createAuthHeaders } from '../auth';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type { CreateCredentialInput, CredentialInput } from './types';\nimport type { CredentialsDataFormat, GetCredentialsInput } from './utils';\nimport { encodeCredentialsData, getScopedBranchId } from './utils';\n\nexport const createOauthClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const client = createOpenapiFetchClient<paths>({\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n });\n const genericClient = createGenericFetchClient({ baseUrl, middlewares });\n\n const getCredentials = async (scope: GetCredentialsInput, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/credentials',\n { query: { branchId: getScopedBranchId(scope), componentId: scope.componentId } },\n { signal },\n );\n return data;\n };\n\n const getCredential = async ({ componentId, id }: CredentialInput, signal?: AbortSignal) => {\n const { data } = await client.get(\n '/credentials/{componentId}/{name}',\n { path: { componentId, name: id } },\n { signal },\n );\n return data;\n };\n\n const createCredential = async (\n { componentId, data, ...rest }: CreateCredentialInput,\n signal?: AbortSignal,\n ) => {\n const post = (format: CredentialsDataFormat) =>\n client\n .post(\n '/credentials/{componentId}',\n {\n path: { componentId },\n // The plain shape predates the spec, so no schema can describe it. It borrows the\n // encrypted field's type to get past the generated body — the one assertion here.\n body: { ...rest, ...(encodeCredentialsData(data, format) as { '#data': string }) },\n },\n { signal },\n )\n .then((response) => response.data);\n\n try {\n return await post('plain');\n } catch (error) {\n if (isApiError(error) && error.response.status === HttpStatus.UNPROCESSABLE_ENTITY) {\n return post('encrypted');\n }\n throw error;\n }\n };\n\n const deleteCredential = async ({ componentId, id }: CredentialInput, signal?: AbortSignal) => {\n await client.delete(\n '/credentials/{componentId}/{name}',\n { path: { componentId, name: id } },\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 getCredentials,\n getCredential,\n createCredential,\n deleteCredential,\n };\n};\n"],"mappings":";;;;;;;;;;;;AA+BA,MAAa,yBACX,MACA,WACI,WAAW,cAAc,EAAE,SAAS,KAAK,UAAU,IAAI,EAAE,IAAI,EAAE,KAAK;AAE1E,MAAa,qBAAqB,UAA+B;CAC/D,QAAQ,MAAM,OAAd;EACE,KAAK,OACH;EACF,KAAK,cACH,OAAO;EACT,KAAK,YACH,OAAO,MAAM;CACjB;AACF;;;ACnCA,MAAa,qBAAqB,EAAE,SAAS,aAAa,WAA8B;CACtF,MAAM,SAAS,yBAAgC;EAC7C;EACA;EACA,SAAS,kBAAkB,IAAI;CACjC,CAAC;CACD,MAAM,gBAAgB,yBAAyB;EAAE;EAAS;CAAY,CAAC;CAEvE,MAAM,iBAAiB,OAAO,OAA4B,WAAyB;EACjF,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,gBACA,EAAE,OAAO;GAAE,UAAU,kBAAkB,KAAK;GAAG,aAAa,MAAM;EAAY,EAAE,GAChF,EAAE,OAAO,CACX;EACA,OAAO;CACT;CAEA,MAAM,gBAAgB,OAAO,EAAE,aAAa,MAAuB,WAAyB;EAC1F,MAAM,EAAE,SAAS,MAAM,OAAO,IAC5B,qCACA,EAAE,MAAM;GAAE;GAAa,MAAM;EAAG,EAAE,GAClC,EAAE,OAAO,CACX;EACA,OAAO;CACT;CAEA,MAAM,mBAAmB,OACvB,EAAE,aAAa,MAAM,GAAG,QACxB,WACG;EACH,MAAM,QAAQ,WACZ,OACG,KACC,8BACA;GACE,MAAM,EAAE,YAAY;GAGpB,MAAM;IAAE,GAAG;IAAM,GAAI,sBAAsB,MAAM,MAAM;GAA0B;EACnF,GACA,EAAE,OAAO,CACX,CAAC,CACA,MAAM,aAAa,SAAS,IAAI;EAErC,IAAI;GACF,OAAO,MAAM,KAAK,OAAO;EAC3B,SAAS,OAAO;GACd,IAAI,WAAW,KAAK,KAAK,MAAM,SAAS,WAAW,WAAW,sBAC5D,OAAO,KAAK,WAAW;GAEzB,MAAM;EACR;CACF;CAEA,MAAM,mBAAmB,OAAO,EAAE,aAAa,MAAuB,WAAyB;EAC7F,MAAM,OAAO,OACX,qCACA,EAAE,MAAM;GAAE;GAAa,MAAM;EAAG,EAAE,GAClC,EAAE,OAAO,CACX;CACF;CAEA,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC;EAExE,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;CACF;AACF"}
@@ -1,7 +1,7 @@
1
- const require_createFetchClient = require("./createFetchClient-BsG719K1.cjs");
2
- const require_createGenericFetchClient = require("./createGenericFetchClient-DLbjX0eM.cjs");
3
- const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-Cr90VXY4.cjs");
4
- const require_auth = require("./auth-5HCvCsZO.cjs");
1
+ const require_createFetchClient = require("./createFetchClient-BRfTjBLV.cjs");
2
+ const require_createGenericFetchClient = require("./createGenericFetchClient-DHs-i7_O.cjs");
3
+ const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-CyDUFxHB.cjs");
4
+ const require_auth = require("./auth-DP-6TFiM.cjs");
5
5
  //#region src/clients/oauth/utils.ts
6
6
  /**
7
7
  * The credentials payload rides one of two fields, and only one of them is in the current spec:
@@ -85,4 +85,4 @@ Object.defineProperty(exports, "createOauthClient", {
85
85
  }
86
86
  });
87
87
 
88
- //# sourceMappingURL=oauth-DTvrqe6P.cjs.map
88
+ //# sourceMappingURL=oauth-CkW5gln-.cjs.map