@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.
- package/AGENTS.md +11 -5
- package/API-SURFACE.md +7 -2
- package/CHANGELOG.md +1890 -0
- package/README.md +45 -19
- package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs → ManagementClientAuthError-B-tyPlyG.cjs} +2 -2
- package/dist/{ManagementClientAuthError-ZJ2-RoKT.cjs.map → ManagementClientAuthError-B-tyPlyG.cjs.map} +1 -1
- package/dist/{ManagementClientAuthError-B97OtOQ7.js → ManagementClientAuthError-BAFNvOdf.js} +2 -2
- package/dist/{ManagementClientAuthError-B97OtOQ7.js.map → ManagementClientAuthError-BAFNvOdf.js.map} +1 -1
- package/dist/ai/index.cjs +2 -2
- package/dist/ai/index.d.cts +2 -2
- package/dist/ai/index.d.ts +2 -2
- package/dist/ai/index.js +2 -2
- package/dist/ai/types.d.cts +1 -1
- package/dist/ai/types.d.ts +1 -1
- package/dist/{appLogs-Dl5BcCSD.d.cts → appLogs-BAaaGYKg.d.cts} +2 -2
- package/dist/{appLogs-enL9XR9r.js → appLogs-DTLE6HTy.js} +2 -2
- package/dist/{appLogs-enL9XR9r.js.map → appLogs-DTLE6HTy.js.map} +1 -1
- package/dist/{appLogs-VdgP08aX.d.ts → appLogs-DX_WTBCa.d.ts} +2 -2
- package/dist/{appLogs-CNG3yby-.cjs → appLogs-NIEDTDHf.cjs} +2 -2
- package/dist/{appLogs-CNG3yby-.cjs.map → appLogs-NIEDTDHf.cjs.map} +1 -1
- package/dist/apps/index.cjs +3 -3
- package/dist/apps/index.d.cts +3 -3
- package/dist/apps/index.d.ts +3 -3
- package/dist/apps/index.js +3 -3
- package/dist/apps/types.d.cts +2 -2
- package/dist/apps/types.d.ts +2 -2
- package/dist/assets/index.cjs +1 -1
- package/dist/assets/index.d.cts +1 -1
- package/dist/assets/index.d.ts +1 -1
- package/dist/assets/index.js +1 -1
- package/dist/auth/index.cjs +2 -1
- package/dist/auth/index.d.cts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +2 -2
- package/dist/auth/types.d.cts +2 -2
- package/dist/auth/types.d.ts +2 -2
- package/dist/{auth-5HCvCsZO.cjs → auth-DP-6TFiM.cjs} +2 -2
- package/dist/{auth-5HCvCsZO.cjs.map → auth-DP-6TFiM.cjs.map} +1 -1
- package/dist/{auth-D2jfNlpX.js → auth-DtbQaeDj.js} +2 -2
- package/dist/{auth-D2jfNlpX.js.map → auth-DtbQaeDj.js.map} +1 -1
- package/dist/{authClient-DOk6VKdV.js → authClient--BtZgjIc.js} +76 -11
- package/dist/authClient--BtZgjIc.js.map +1 -0
- package/dist/{authClient-Dsd7W99W.d.ts → authClient-CtfyVHRD.d.ts} +52 -5
- package/dist/{authClient-Bgj2Ay7h.d.cts → authClient-DhfzOUaa.d.cts} +52 -5
- package/dist/{authClient-Z8Eg8rlN.cjs → authClient-b7uec7sw.cjs} +81 -10
- package/dist/authClient-b7uec7sw.cjs.map +1 -0
- package/dist/chat/index.cjs +3 -3
- package/dist/chat/index.d.cts +2 -7
- package/dist/chat/index.d.ts +2 -7
- package/dist/chat/index.js +3 -3
- package/dist/chat/types.d.cts +1 -1
- package/dist/chat/types.d.ts +1 -1
- package/dist/{configurations-CujCwDcB.cjs → configurations-Ck-mNB_E.cjs} +2 -2
- package/dist/{configurations-CujCwDcB.cjs.map → configurations-Ck-mNB_E.cjs.map} +1 -1
- package/dist/{configurations-DCOJONZZ.cjs → configurations-CqwAxiQL.cjs} +5 -1
- package/dist/configurations-CqwAxiQL.cjs.map +1 -0
- package/dist/{configurations-Byt59bIa.js → configurations-ZwBXilW-.js} +2 -2
- package/dist/{configurations-Byt59bIa.js.map → configurations-ZwBXilW-.js.map} +1 -1
- package/dist/{configurations-iCbhe0tb.js → configurations-d7SZmw69.js} +5 -1
- package/dist/configurations-d7SZmw69.js.map +1 -0
- package/dist/constants/index.cjs +4 -1
- package/dist/constants/index.d.cts +3 -2
- package/dist/constants/index.d.ts +3 -2
- package/dist/constants/index.js +2 -2
- package/dist/{constants-CqyyBkXW.cjs → constants-ByEwVtGf.js} +48 -25
- package/dist/constants-ByEwVtGf.js.map +1 -0
- package/dist/{constants-_HhqKvBg.js → constants-lIfSdTzS.cjs} +89 -2
- package/dist/constants-lIfSdTzS.cjs.map +1 -0
- package/dist/{createFetchClient-BsG719K1.cjs → createFetchClient-BRfTjBLV.cjs} +29 -10
- package/dist/createFetchClient-BRfTjBLV.cjs.map +1 -0
- package/dist/{createFetchClient-BK0TZK-U.js → createFetchClient-BbG46bL0.js} +24 -11
- package/dist/createFetchClient-BbG46bL0.js.map +1 -0
- package/dist/{createGenericFetchClient-CVZYekDk.js → createGenericFetchClient-BHYQLZhe.js} +2 -2
- package/dist/{createGenericFetchClient-CVZYekDk.js.map → createGenericFetchClient-BHYQLZhe.js.map} +1 -1
- package/dist/{createGenericFetchClient-DLbjX0eM.cjs → createGenericFetchClient-DHs-i7_O.cjs} +2 -2
- package/dist/{createGenericFetchClient-DLbjX0eM.cjs.map → createGenericFetchClient-DHs-i7_O.cjs.map} +1 -1
- package/dist/{createOpenapiFetchClient-B5U1fCHS.js → createOpenapiFetchClient-Bn6_Pn0H.js} +2 -2
- package/dist/{createOpenapiFetchClient-B5U1fCHS.js.map → createOpenapiFetchClient-Bn6_Pn0H.js.map} +1 -1
- package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs → createOpenapiFetchClient-CyDUFxHB.cjs} +2 -2
- package/dist/{createOpenapiFetchClient-Cr90VXY4.cjs.map → createOpenapiFetchClient-CyDUFxHB.cjs.map} +1 -1
- package/dist/{credential-0c6yFwtp.cjs → credential-DOXH7XRS.cjs} +2 -2
- package/dist/{credential-0c6yFwtp.cjs.map → credential-DOXH7XRS.cjs.map} +1 -1
- package/dist/{credential-kEGLnVez.js → credential-d2RDcXRB.js} +2 -2
- package/dist/{credential-kEGLnVez.js.map → credential-d2RDcXRB.js.map} +1 -1
- package/dist/dataScience/index.cjs +2 -2
- package/dist/dataScience/index.d.cts +2 -2
- package/dist/dataScience/index.d.ts +2 -2
- package/dist/dataScience/index.js +2 -2
- package/dist/dataScience/types.d.cts +2 -2
- package/dist/dataScience/types.d.ts +2 -2
- package/dist/{dataScience-CE0pSWbl.js → dataScience-Sm8iONhP.js} +5 -5
- package/dist/{dataScience-CE0pSWbl.js.map → dataScience-Sm8iONhP.js.map} +1 -1
- package/dist/{dataScience-C-JrA0Uk.cjs → dataScience-wexHEIue.cjs} +5 -5
- package/dist/{dataScience-C-JrA0Uk.cjs.map → dataScience-wexHEIue.cjs.map} +1 -1
- package/dist/developerPortal/index.cjs +1 -1
- package/dist/developerPortal/index.d.cts +2 -2
- package/dist/developerPortal/index.d.ts +2 -2
- package/dist/developerPortal/index.js +1 -1
- package/dist/developerPortal/types.d.cts +1 -1
- package/dist/developerPortal/types.d.ts +1 -1
- package/dist/{developerPortalClient-C8oq48xW.cjs → developerPortalClient-CgTSzLoG.cjs} +3 -3
- package/dist/{developerPortalClient-C8oq48xW.cjs.map → developerPortalClient-CgTSzLoG.cjs.map} +1 -1
- package/dist/{developerPortalClient-BPPEAdJW.js → developerPortalClient-DywKpDlW.js} +3 -3
- package/dist/{developerPortalClient-BPPEAdJW.js.map → developerPortalClient-DywKpDlW.js.map} +1 -1
- package/dist/domain/permissions/index.cjs +63 -1
- package/dist/domain/permissions/index.cjs.map +1 -0
- package/dist/domain/permissions/index.d.cts +52 -3
- package/dist/domain/permissions/index.d.ts +52 -3
- package/dist/domain/permissions/index.js +59 -2
- package/dist/domain/permissions/index.js.map +1 -0
- package/dist/editor/index.cjs +2 -2
- package/dist/editor/index.d.cts +2 -2
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/index.js +2 -2
- package/dist/editor/types.d.cts +1 -1
- package/dist/editor/types.d.ts +1 -1
- package/dist/encryption/index.cjs +1 -1
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/index.js +1 -1
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/import/index.cjs +1 -1
- package/dist/import/index.d.cts +3 -3
- package/dist/import/index.d.ts +3 -3
- package/dist/import/index.js +1 -1
- package/dist/{import-KLH1uRtx.cjs → import-C0-y1GQK.cjs} +3 -3
- package/dist/{import-KLH1uRtx.cjs.map → import-C0-y1GQK.cjs.map} +1 -1
- package/dist/{import-Cf0W-7YD.js → import-SQuurg1G.js} +3 -3
- package/dist/{import-Cf0W-7YD.js.map → import-SQuurg1G.js.map} +1 -1
- package/dist/{index-BEKaJ7Cc.d.cts → index-BKh0prif.d.cts} +4 -4
- package/dist/{index-KKJkrxjx.d.ts → index-Bc_hXWae.d.ts} +3 -3
- package/dist/{index-DYQt4zxC.d.ts → index-Bg1P6Bb2.d.ts} +6 -6
- package/dist/{index-DplMbm9E.d.cts → index-Bjk-tCpG.d.cts} +548 -3073
- package/dist/{index-eEBVG5s3.d.cts → index-C7e3wBt9.d.cts} +3 -3
- package/dist/{index-8pN6Emos.d.ts → index-CQrKS7PV.d.cts} +24 -4
- package/dist/{index-DVsnxZap.d.cts → index-CXtdQ7be.d.cts} +4 -4
- package/dist/{index-CLPrlyIz.d.cts → index-CeJOmN-P.d.ts} +24 -4
- package/dist/{index-BmjeNd9u.d.ts → index-Ctqkm3Fx.d.ts} +4 -4
- package/dist/{index-WQkVzx5e.d.cts → index-D_7yCRKy.d.cts} +4 -4
- package/dist/{index-DNlX-H1V.d.ts → index-Dbzjvy5h.d.ts} +5 -5
- package/dist/{index-BWBScAYc.d.cts → index-DeKPpYQy.d.ts} +3 -3
- package/dist/{index-DXi6wsr5.d.cts → index-DiHHyMEo.d.cts} +6 -6
- package/dist/{index-IN0qzs52.d.cts → index-DqOAjqxN.d.cts} +5 -5
- package/dist/{index-Dwp8tF6O.d.ts → index-FhKX7Cv1.d.ts} +548 -3073
- package/dist/{index-BthgbVdd.d.ts → index-GDdFZCXp.d.ts} +4 -4
- package/dist/{index-CXQRvZ-f.d.cts → index-Gn1H63Hk.d.cts} +4 -4
- package/dist/{index-vb9Rfqca.d.ts → index-NaYLwG_h.d.cts} +155 -4
- package/dist/{index-vb9Rfqca.d.cts → index-NaYLwG_h.d.ts} +155 -4
- package/dist/{index-DIM8KZly.d.ts → index-eAlN694c.d.cts} +3 -3
- package/dist/{index-Cfrl7sd5.d.ts → index-fHfc_VqS.d.ts} +4 -4
- package/dist/{index-CeistZnj.d.ts → index-tKsiUarj.d.ts} +4 -4
- package/dist/index.cjs +46 -225
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +44 -226
- package/dist/index.js.map +1 -1
- package/dist/kaiAgent/index.cjs +3 -0
- package/dist/kaiAgent/index.d.cts +210 -0
- package/dist/kaiAgent/index.d.ts +210 -0
- package/dist/kaiAgent/index.js +2 -0
- package/dist/kaiAgent/types.cjs +0 -0
- package/dist/kaiAgent/types.d.cts +2 -0
- package/dist/kaiAgent/types.d.ts +2 -0
- package/dist/kaiAgent/types.js +1 -0
- package/dist/kaiAgent-4OiIK1C2.cjs +222 -0
- package/dist/kaiAgent-4OiIK1C2.cjs.map +1 -0
- package/dist/kaiAgent-HDaFS9BR.js +217 -0
- package/dist/kaiAgent-HDaFS9BR.js.map +1 -0
- package/dist/management/index.cjs +1 -1
- package/dist/management/index.d.cts +1 -1
- package/dist/management/index.d.ts +1 -1
- package/dist/management/index.js +1 -1
- package/dist/management/types.d.cts +1 -1
- package/dist/management/types.d.ts +1 -1
- package/dist/{management-DqwQcDCx.js → management-CIFhu1Nm.js} +6 -7
- package/dist/management-CIFhu1Nm.js.map +1 -0
- package/dist/{management-WOmlBt6H.cjs → management-DfjwQo7z.cjs} +6 -7
- package/dist/management-DfjwQo7z.cjs.map +1 -0
- package/dist/metastore/index.cjs +1 -1
- package/dist/metastore/index.d.cts +1 -1
- package/dist/metastore/index.d.ts +1 -1
- package/dist/metastore/index.js +1 -1
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/{metastore-CNEhL66f.js → metastore-CrXkKufo.js} +4 -4
- package/dist/{metastore-CNEhL66f.js.map → metastore-CrXkKufo.js.map} +1 -1
- package/dist/{metastore-CkQluyX1.cjs → metastore-Dq2NS6jb.cjs} +4 -4
- package/dist/{metastore-CkQluyX1.cjs.map → metastore-Dq2NS6jb.cjs.map} +1 -1
- package/dist/microsoftGraph/index.cjs +92 -0
- package/dist/microsoftGraph/index.cjs.map +1 -0
- package/dist/microsoftGraph/index.d.cts +305 -0
- package/dist/microsoftGraph/index.d.ts +305 -0
- package/dist/microsoftGraph/index.js +90 -0
- package/dist/microsoftGraph/index.js.map +1 -0
- package/dist/microsoftGraph/types.cjs +0 -0
- package/dist/microsoftGraph/types.d.cts +10 -0
- package/dist/microsoftGraph/types.d.ts +10 -0
- package/dist/microsoftGraph/types.js +1 -0
- package/dist/notifications/index.cjs +3 -3
- package/dist/notifications/index.d.cts +2 -2
- package/dist/notifications/index.d.ts +2 -2
- package/dist/notifications/index.js +3 -3
- package/dist/notifications/types.d.cts +1 -1
- package/dist/notifications/types.d.ts +1 -1
- package/dist/oauth/index.cjs +1 -1
- package/dist/oauth/index.d.cts +2 -2
- package/dist/oauth/index.d.ts +2 -2
- package/dist/oauth/index.js +1 -1
- package/dist/oauth/types.d.cts +1 -1
- package/dist/oauth/types.d.ts +1 -1
- package/dist/{oauth-DYDObUX9.js → oauth-CFwSNz37.js} +5 -5
- package/dist/{oauth-DYDObUX9.js.map → oauth-CFwSNz37.js.map} +1 -1
- package/dist/{oauth-DTvrqe6P.cjs → oauth-CkW5gln-.cjs} +5 -5
- package/dist/{oauth-DTvrqe6P.cjs.map → oauth-CkW5gln-.cjs.map} +1 -1
- package/dist/omnisearch/index.cjs +2 -2
- package/dist/omnisearch/index.d.cts +2 -2
- package/dist/omnisearch/index.d.ts +2 -2
- package/dist/omnisearch/index.js +2 -2
- package/dist/omnisearch/types.d.cts +1 -1
- package/dist/omnisearch/types.d.ts +1 -1
- package/dist/{project-io1pY-hW.d.ts → project-BOGaVs-q.d.ts} +2 -2
- package/dist/{project-CcGxXIW_.d.cts → project-BnQkL8cb.d.cts} +2 -2
- package/dist/queryService/index.cjs +1 -1
- package/dist/queryService/index.d.cts +1 -1
- package/dist/queryService/index.d.ts +1 -1
- package/dist/queryService/index.js +1 -1
- package/dist/queryService/types.d.cts +1 -1
- package/dist/queryService/types.d.ts +1 -1
- package/dist/{queryService-CvqDqigW.cjs → queryService-BLaGbpm-.cjs} +5 -5
- package/dist/{queryService-CvqDqigW.cjs.map → queryService-BLaGbpm-.cjs.map} +1 -1
- package/dist/{queryService-BHV_OZI2.js → queryService-DK-jUnET.js} +5 -5
- package/dist/{queryService-BHV_OZI2.js.map → queryService-DK-jUnET.js.map} +1 -1
- package/dist/queue/index.cjs +1 -1
- package/dist/queue/index.d.cts +3 -3
- package/dist/queue/index.d.ts +3 -3
- package/dist/queue/index.js +1 -1
- package/dist/queue/types.d.cts +1 -1
- package/dist/queue/types.d.ts +1 -1
- package/dist/{queue-CUHKupTA.cjs → queue-B7TY4JLf.cjs} +4 -4
- package/dist/{queue-CUHKupTA.cjs.map → queue-B7TY4JLf.cjs.map} +1 -1
- package/dist/{queue-uofE4Eu6.js → queue-DViSQ-eq.js} +4 -4
- package/dist/{queue-uofE4Eu6.js.map → queue-DViSQ-eq.js.map} +1 -1
- package/dist/scheduler/index.cjs +3 -3
- package/dist/scheduler/index.d.cts +2 -2
- package/dist/scheduler/index.d.ts +2 -2
- package/dist/scheduler/index.js +3 -3
- package/dist/scheduler/types.d.cts +1 -1
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/schema-D1oxyn1O.d.cts +8760 -0
- package/dist/schema-D1oxyn1O.d.ts +8760 -0
- package/dist/sdk/configurations/index.cjs +1 -1
- package/dist/sdk/configurations/index.d.cts +4 -4
- package/dist/sdk/configurations/index.d.ts +4 -4
- package/dist/sdk/configurations/index.js +1 -1
- package/dist/sdk/developerPortal/index.cjs +3 -3
- package/dist/sdk/developerPortal/index.d.cts +3 -3
- package/dist/sdk/developerPortal/index.d.ts +3 -3
- package/dist/sdk/developerPortal/index.js +3 -3
- package/dist/sdk/queryService/index.d.cts +1 -1
- package/dist/sdk/queryService/index.d.ts +1 -1
- package/dist/sdk/semanticLayer/index.d.cts +1 -1
- package/dist/sdk/semanticLayer/index.d.ts +1 -1
- package/dist/sdk/semanticLayer/types.d.cts +1 -1
- package/dist/sdk/semanticLayer/types.d.ts +1 -1
- package/dist/sdk/storage/index.d.cts +1 -1
- package/dist/sdk/storage/index.d.ts +1 -1
- package/dist/sdk/tag/index.d.cts +2 -2
- package/dist/sdk/tag/index.d.ts +2 -2
- package/dist/sdk/tag/types.d.cts +1 -1
- package/dist/sdk/tag/types.d.ts +1 -1
- package/dist/sdk/vault/index.d.cts +1 -1
- package/dist/sdk/vault/index.d.ts +1 -1
- package/dist/serviceIds-fHLDwOg9.d.cts +31 -0
- package/dist/serviceIds-fHLDwOg9.d.ts +31 -0
- package/dist/status/index.cjs +1 -1
- package/dist/status/index.d.cts +1 -1
- package/dist/status/index.d.ts +1 -1
- package/dist/status/index.js +1 -1
- package/dist/storage/index.cjs +6 -3
- package/dist/storage/index.d.cts +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +5 -4
- package/dist/storage/types.d.cts +4 -3
- package/dist/storage/types.d.ts +4 -3
- package/dist/{storage-DbyNnkIJ.cjs → storage-CihHwZ7z.cjs} +153 -161
- package/dist/storage-CihHwZ7z.cjs.map +1 -0
- package/dist/{storage-luq7YBZF.js → storage-kgxscFEg.js} +153 -161
- package/dist/storage-kgxscFEg.js.map +1 -0
- package/dist/stream/index.cjs +3 -3
- package/dist/stream/index.d.cts +2 -2
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.js +3 -3
- package/dist/stream/types.d.cts +1 -1
- package/dist/stream/types.d.ts +1 -1
- package/dist/syncActions/index.cjs +1 -1
- package/dist/syncActions/index.d.cts +1 -1
- package/dist/syncActions/index.d.ts +1 -1
- package/dist/syncActions/index.js +1 -1
- package/dist/syncActions/types.d.cts +1 -1
- package/dist/syncActions/types.d.ts +1 -1
- package/dist/{syncActions-ssWWVN_4.js → syncActions-B75t0NwP.js} +5 -5
- package/dist/{syncActions-ssWWVN_4.js.map → syncActions-B75t0NwP.js.map} +1 -1
- package/dist/{syncActions-DKWeJ8GH.cjs → syncActions-CevF_TEb.cjs} +5 -5
- package/dist/{syncActions-DKWeJ8GH.cjs.map → syncActions-CevF_TEb.cjs.map} +1 -1
- package/dist/telemetry/index.cjs +1 -1
- package/dist/telemetry/index.d.cts +2 -2
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/index.js +1 -1
- package/dist/{telemetry-2IrE8HaZ.cjs → telemetry-DwlSLVAU.cjs} +3 -3
- package/dist/{telemetry-2IrE8HaZ.cjs.map → telemetry-DwlSLVAU.cjs.map} +1 -1
- package/dist/{telemetry-yQfQxBBI.js → telemetry-FXpodtJN.js} +3 -3
- package/dist/{telemetry-yQfQxBBI.js.map → telemetry-FXpodtJN.js.map} +1 -1
- package/dist/{types-DEKF5pbg.d.cts → types-Av2egS_l.d.ts} +408 -24
- package/dist/{types-DBOEA7l0.d.cts → types-B2vmg_UF.d.cts} +3 -3
- package/dist/{types-DMvU4kZ2.d.cts → types-B4jdPHoL.d.cts} +2 -2
- package/dist/{types-CAOvDtMC.d.cts → types-BH9ljNmj.d.cts} +2 -2
- package/dist/{types-QOIQ-dZU.d.cts → types-BI2jI-3-.d.cts} +3 -3
- package/dist/types-BMQW-2Yw.d.ts +2804 -0
- package/dist/{types-C8XiTXxi.d.cts → types-BREGN3qo.d.cts} +2 -2
- package/dist/{types-B1S2H7q1.d.ts → types-BTbczawY.d.ts} +2 -2
- package/dist/{types-CwvOcTOm.d.cts → types-BV2BDccJ.d.cts} +247 -430
- package/dist/{types-BREBK0xX.d.ts → types-BZBdLUpH.d.ts} +2 -2
- package/dist/{types-Z-vUwgym.d.ts → types-BlCoTm7n.d.ts} +2 -2
- package/dist/{types-CSmttcZ_.d.ts → types-BnaAo7xn.d.ts} +2 -2
- package/dist/{types-V8rC5if7.d.cts → types-BoV9M5Xg.d.cts} +2 -2
- package/dist/{types-BCt0EMiO.d.ts → types-Bpnpa2Wt.d.ts} +3 -3
- package/dist/{types-BhBvnvqe.d.ts → types-BptQ7jpP.d.cts} +408 -24
- package/dist/{types-x4xPlrr0.d.ts → types-ByWD2oeV.d.ts} +2 -2
- package/dist/{types-BefwoXik.d.cts → types-C1vhYcic.d.cts} +2 -2
- package/dist/{types-DwX1uxp_.d.ts → types-C2CLlR4i.d.ts} +2 -2
- package/dist/{types-BO-mTxKb.d.cts → types-CGH_lfxS.d.cts} +2 -16
- package/dist/{types-CyRK5z-E.d.cts → types-CJHi0zdD.d.cts} +2 -2
- package/dist/{types-DeApSCzx.d.cts → types-COIsNoTQ.d.cts} +2 -2
- package/dist/{types-DkbfBOBr.d.cts → types-COc-nind.d.cts} +2 -2
- package/dist/{types-DvsGS8By.d.cts → types-CPanB0p7.d.cts} +3 -3
- package/dist/{types-BmFyDKe6.d.ts → types-CXTqFYah.d.ts} +28 -7
- package/dist/{types-DS8uFAeq.d.cts → types-CcuG9cid.d.cts} +2 -2
- package/dist/{types-2mHlPakp.d.cts → types-Cj4bLPp5.d.cts} +28 -7
- package/dist/{types-SGuvOEV8.d.ts → types-CkcMoXRk.d.ts} +3 -3
- package/dist/{types-D2n3h1gp.d.ts → types-CpALS017.d.ts} +2 -16
- package/dist/{types-DCBKso0t.d.cts → types-CvkqEvhv.d.cts} +2 -2
- package/dist/{types-B1glyy_Q.d.ts → types-CyHZ1ZQe.d.ts} +2 -2
- package/dist/{types-B06L4-WE.d.cts → types-CyiRYRVq.d.cts} +3 -3
- package/dist/{types-CvADp-x-.d.ts → types-Cz1dj_TM.d.ts} +2 -2
- package/dist/{types-CjAia48k.d.ts → types-D-qI9ne4.d.ts} +2 -2
- package/dist/{types-CtdyAkzI.d.cts → types-D1uloiuY.d.cts} +2 -2
- package/dist/{types-CC0wymfG.d.ts → types-D6jKxUv_.d.ts} +247 -430
- package/dist/{types-CexuN7Mw.d.cts → types-DNXC_-fA.d.cts} +7 -5
- package/dist/{types-BpWqpMkL.d.ts → types-DeSd3gqW.d.ts} +3 -3
- package/dist/{types-BD6czYPH.d.ts → types-De_DA2ga.d.ts} +7 -5
- package/dist/{types-h9TTimS_.d.ts → types-Dfc58bPE.d.ts} +2 -2
- package/dist/{types-n4FFKqa4.d.ts → types-Di8VIZwQ.d.ts} +2 -2
- package/dist/{types--T-vBqdd.d.cts → types-DlbiVsVo.d.cts} +2 -2
- package/dist/types-DuiUN0h8.d.ts +33557 -0
- package/dist/{types-7H6Dnz0Y.d.ts → types-DwpRt3e9.d.ts} +2 -2
- package/dist/{types-CI1mW2lA.d.ts → types-EJEoI3ZK.d.ts} +2 -2
- package/dist/types-GuWtMCMn.d.cts +33557 -0
- package/dist/{types-BRQAKEC1.d.cts → types-MbcIiKDI.d.cts} +3 -3
- package/dist/{types-DebL68-g.d.ts → types-RfaldD4P.d.ts} +3 -3
- package/dist/{types-CbZ8aMKW.d.cts → types-cDU_J45_.d.cts} +2 -2
- package/dist/{types-bws2RtKq.d.ts → types-dybUhlU2.d.ts} +2 -2
- package/dist/types-iNlsdRkx.d.cts +2804 -0
- package/dist/{types-BXK6Ebtm.d.ts → types-sVYo0o9_.d.ts} +3 -3
- package/dist/{types-DgaYUtu_.d.cts → types-zA3H84SM.d.cts} +2 -2
- package/dist/validateConnectionStatus-BrLXkoSI.js +38 -0
- package/dist/validateConnectionStatus-BrLXkoSI.js.map +1 -0
- package/dist/validateConnectionStatus-V9q6Nl6u.cjs +55 -0
- package/dist/validateConnectionStatus-V9q6Nl6u.cjs.map +1 -0
- package/dist/vault/index.cjs +4 -4
- package/dist/vault/index.d.cts +1 -1
- package/dist/vault/index.d.ts +1 -1
- package/dist/vault/index.js +4 -4
- package/dist/vault/types.d.cts +1 -1
- package/dist/vault/types.d.ts +1 -1
- package/package.json +57 -4
- package/surface/auth.md +9 -2
- package/surface/chat.md +1 -1
- package/surface/kaiAgent.md +1 -0
- package/surface/sdk.md +4 -4
- package/surface/storage.md +44 -44
- package/dist/authClient-DOk6VKdV.js.map +0 -1
- package/dist/authClient-Z8Eg8rlN.cjs.map +0 -1
- package/dist/configurations-DCOJONZZ.cjs.map +0 -1
- package/dist/configurations-iCbhe0tb.js.map +0 -1
- package/dist/constants-CqyyBkXW.cjs.map +0 -1
- package/dist/constants-_HhqKvBg.js.map +0 -1
- package/dist/createFetchClient-BK0TZK-U.js.map +0 -1
- package/dist/createFetchClient-BsG719K1.cjs.map +0 -1
- package/dist/management-DqwQcDCx.js.map +0 -1
- package/dist/management-WOmlBt6H.cjs.map +0 -1
- package/dist/storage-DbyNnkIJ.cjs.map +0 -1
- package/dist/storage-luq7YBZF.js.map +0 -1
- package/dist/types-CRYtdj5w.d.ts +0 -18784
- 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-
|
|
4
|
-
const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-
|
|
5
|
-
const require_auth = require("../auth-
|
|
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-
|
|
2
|
-
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-
|
|
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-
|
|
2
|
-
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-
|
|
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-
|
|
3
|
-
import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-
|
|
4
|
-
import { t as createAuthHeaders } from "../auth-
|
|
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-
|
|
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-
|
|
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 };
|
package/dist/oauth/index.cjs
CHANGED
package/dist/oauth/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ClientInitOptions } from "../types-
|
|
2
|
-
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-
|
|
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>;
|
package/dist/oauth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ClientInitOptions } from "../types-
|
|
2
|
-
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-
|
|
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>;
|
package/dist/oauth/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createOauthClient } from "../oauth-
|
|
1
|
+
import { t as createOauthClient } from "../oauth-CFwSNz37.js";
|
|
2
2
|
export { createOauthClient };
|
package/dist/oauth/types.d.cts
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/oauth/types.d.ts
CHANGED
|
@@ -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-
|
|
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 {
|
|
2
|
-
import { t as createGenericFetchClient } from "./createGenericFetchClient-
|
|
3
|
-
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-
|
|
4
|
-
import { t as createAuthHeaders } from "./auth-
|
|
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-
|
|
83
|
+
//# sourceMappingURL=oauth-CFwSNz37.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-
|
|
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-
|
|
2
|
-
const require_createGenericFetchClient = require("./createGenericFetchClient-
|
|
3
|
-
const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-
|
|
4
|
-
const require_auth = require("./auth-
|
|
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-
|
|
88
|
+
//# sourceMappingURL=oauth-CkW5gln-.cjs.map
|