@keboola/api-client 31.0.0 → 33.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +91 -7
- package/API-SURFACE.md +5 -2
- package/CHANGELOG.md +327 -0
- package/README.md +45 -19
- package/dist/{ManagementClientAuthError-DFhi5yxe.cjs → ManagementClientAuthError-DqeXL8nv.cjs} +2 -2
- package/dist/{ManagementClientAuthError-DFhi5yxe.cjs.map → ManagementClientAuthError-DqeXL8nv.cjs.map} +1 -1
- package/dist/{ManagementClientAuthError-90pvsej0.js → ManagementClientAuthError-iKbBugKC.js} +2 -2
- package/dist/{ManagementClientAuthError-90pvsej0.js.map → ManagementClientAuthError-iKbBugKC.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-CLHhkQJn.js → appLogs-D72eD8vP.js} +2 -2
- package/dist/{appLogs-CLHhkQJn.js.map → appLogs-D72eD8vP.js.map} +1 -1
- package/dist/{appLogs-BCCi02w6.cjs → appLogs-D8K0VeNM.cjs} +2 -2
- package/dist/{appLogs-BCCi02w6.cjs.map → appLogs-D8K0VeNM.cjs.map} +1 -1
- package/dist/{appLogs-hQdKt_8J.d.cts → appLogs-Q4A7A_Fc.d.cts} +2 -2
- package/dist/{appLogs-BdMG6Cvn.d.ts → appLogs-u0XMZLjS.d.ts} +2 -2
- 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 +1 -1
- package/dist/auth/index.d.cts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/types.d.cts +2 -2
- package/dist/auth/types.d.ts +2 -2
- package/dist/{auth-DmgTH0uY.cjs → auth-C2_JLisH.cjs} +2 -2
- package/dist/{auth-DmgTH0uY.cjs.map → auth-C2_JLisH.cjs.map} +1 -1
- package/dist/{auth-CE6Hlc9W.js → auth-CE9rQV3-.js} +2 -2
- package/dist/{auth-CE6Hlc9W.js.map → auth-CE9rQV3-.js.map} +1 -1
- package/dist/{authClient-XBAUz9g-.js → authClient-DEyqR7GW.js} +43 -9
- package/dist/authClient-DEyqR7GW.js.map +1 -0
- package/dist/{authClient-BL6h78Q1.d.cts → authClient-DZ_8lvdJ.d.cts} +6 -6
- package/dist/{authClient-Bc_bDisO.d.ts → authClient-DwT6xdg5.d.ts} +6 -6
- package/dist/{authClient-Cixa8_L1.cjs → authClient-IwQ9Ti0J.cjs} +43 -9
- package/dist/authClient-IwQ9Ti0J.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 +2 -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-qeWGfk_7.js → constants-ByEwVtGf.js} +38 -2
- package/dist/constants-ByEwVtGf.js.map +1 -0
- package/dist/{constants-CkAVvuUq.cjs → constants-lIfSdTzS.cjs} +43 -1
- package/dist/constants-lIfSdTzS.cjs.map +1 -0
- package/dist/{createFetchClient-B1h3-p65.js → createFetchClient-DdyZMhxO.js} +17 -11
- package/dist/createFetchClient-DdyZMhxO.js.map +1 -0
- package/dist/{createFetchClient-B9Cv0W9f.cjs → createFetchClient-DvZvD31l.cjs} +22 -10
- package/dist/createFetchClient-DvZvD31l.cjs.map +1 -0
- package/dist/{createGenericFetchClient-DhpvUSlX.js → createGenericFetchClient-MQeLRiNW.js} +2 -2
- package/dist/{createGenericFetchClient-DhpvUSlX.js.map → createGenericFetchClient-MQeLRiNW.js.map} +1 -1
- package/dist/{createGenericFetchClient-BWoSkTki.cjs → createGenericFetchClient-qfCZlCTv.cjs} +2 -2
- package/dist/{createGenericFetchClient-BWoSkTki.cjs.map → createGenericFetchClient-qfCZlCTv.cjs.map} +1 -1
- package/dist/{createOpenapiFetchClient-yirrW6Tg.cjs → createOpenapiFetchClient-C57Ljzi6.cjs} +2 -2
- package/dist/{createOpenapiFetchClient-yirrW6Tg.cjs.map → createOpenapiFetchClient-C57Ljzi6.cjs.map} +1 -1
- package/dist/{createOpenapiFetchClient-0_oqhdPv.js → createOpenapiFetchClient-E7OIVkYv.js} +2 -2
- package/dist/{createOpenapiFetchClient-0_oqhdPv.js.map → createOpenapiFetchClient-E7OIVkYv.js.map} +1 -1
- package/dist/{credential-dKxArMic.js → credential-Bxv7yxOZ.js} +7 -4
- package/dist/credential-Bxv7yxOZ.js.map +1 -0
- package/dist/{credential-D-tX9gP4.cjs → credential-D-X5QQrM.cjs} +7 -4
- package/dist/credential-D-X5QQrM.cjs.map +1 -0
- 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-BqNWX-Gr.cjs → dataScience-BPW993AG.cjs} +5 -5
- package/dist/{dataScience-BqNWX-Gr.cjs.map → dataScience-BPW993AG.cjs.map} +1 -1
- package/dist/{dataScience-jdbSSPYF.js → dataScience-B_TA7wCB.js} +5 -5
- package/dist/{dataScience-jdbSSPYF.js.map → dataScience-B_TA7wCB.js.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-B7lNR5q0.cjs → developerPortalClient-Db2XVB_o.cjs} +3 -3
- package/dist/{developerPortalClient-B7lNR5q0.cjs.map → developerPortalClient-Db2XVB_o.cjs.map} +1 -1
- package/dist/{developerPortalClient-5ABcxz1U.js → developerPortalClient-jk46sjwP.js} +3 -3
- package/dist/{developerPortalClient-5ABcxz1U.js.map → developerPortalClient-jk46sjwP.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/emitter-dLF1Fyfg.d.cts +11 -0
- package/dist/emitter-dLF1Fyfg.d.ts +11 -0
- 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-CExRbskw.js → import-2nqxQ9Rt.js} +3 -3
- package/dist/{import-CExRbskw.js.map → import-2nqxQ9Rt.js.map} +1 -1
- package/dist/{import-CXHppAxd.cjs → import-DJilJ6tq.cjs} +3 -3
- package/dist/{import-CXHppAxd.cjs.map → import-DJilJ6tq.cjs.map} +1 -1
- package/dist/{index-BR2Fu-Wo.d.ts → index-B0V1pJAa.d.ts} +618 -3103
- package/dist/{index-7RvXnXmd.d.ts → index-B2OGaUap.d.ts} +6 -6
- package/dist/{index-J1I2HlSm.d.ts → index-BjKjp3Rf.d.ts} +5 -5
- package/dist/{index-NicJZIzu.d.ts → index-C7gxKoDF.d.cts} +3 -3
- package/dist/{index-B6q7HxKJ.d.cts → index-CTd4YY8e.d.cts} +4 -4
- package/dist/{index-C9mAoXF6.d.cts → index-CUXEFQ7i.d.cts} +6 -6
- package/dist/{index-D_TnbEtp.d.cts → index-CVqk63at.d.ts} +3 -3
- package/dist/{index-CMb0ygwb.d.ts → index-C_cxKL1V.d.ts} +3 -3
- package/dist/{index-CYMAwD3E.d.ts → index-ChMtULt4.d.ts} +4 -4
- package/dist/{index-Cpjh05sx.d.cts → index-DCN2lH0v.d.cts} +4 -4
- package/dist/{index-cu8THqZV.d.cts → index-DIVvL54G.d.cts} +618 -3103
- package/dist/{index-CwJE18PJ.d.cts → index-DLYAvSWZ.d.cts} +3 -3
- package/dist/{index-CW4VC9oN.d.ts → index-DQef014j.d.ts} +4 -4
- package/dist/{index-Ds8e0l7-.d.ts → index-DVhTNwvu.d.ts} +7 -3
- package/dist/{index-B-frWtGW.d.cts → index-DhVFuQDv.d.cts} +7 -3
- package/dist/{index-DeMDxHTz.d.ts → index-GNKwr7EQ.d.ts} +4 -4
- package/dist/{index--pxLseaw.d.cts → index-NaYLwG_h.d.cts} +143 -2
- package/dist/{index--pxLseaw.d.ts → index-NaYLwG_h.d.ts} +143 -2
- package/dist/{index-Daks5CeX.d.ts → index-bB6wvw1f.d.ts} +4 -4
- package/dist/{index-BfVv8isU.d.cts → index-exNi3I2Q.d.cts} +4 -4
- package/dist/{index-CR9LsDaG.d.cts → index-qOK5FtAH.d.cts} +4 -4
- package/dist/{index-BSjfVDTr.d.cts → index-t-a7kYnx.d.cts} +5 -5
- package/dist/index.cjs +325 -257
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +306 -240
- package/dist/index.js.map +1 -1
- package/dist/{jobStatus-kQ9JqF8t.cjs → jobStatus-0_Y3Sr4i.cjs} +37 -20
- package/dist/jobStatus-0_Y3Sr4i.cjs.map +1 -0
- package/dist/{jobStatus-DbMupQEK.js → jobStatus-PSZJMTiA.js} +35 -18
- package/dist/jobStatus-PSZJMTiA.js.map +1 -0
- package/dist/kaiAgent/index.cjs +3 -0
- package/dist/kaiAgent/index.d.cts +2 -0
- package/dist/kaiAgent/index.d.ts +2 -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-CMVub6Sc.cjs +266 -0
- package/dist/kaiAgent-CMVub6Sc.cjs.map +1 -0
- package/dist/kaiAgent-CYYn0QJW.js +261 -0
- package/dist/kaiAgent-CYYn0QJW.js.map +1 -0
- package/dist/kaiAgentClient-B2O0DF4d.d.ts +249 -0
- package/dist/kaiAgentClient-iCFR2tRU.d.cts +249 -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-DlVdxzPw.cjs → management-DGfgKsaA.cjs} +5 -5
- package/dist/{management-DlVdxzPw.cjs.map → management-DGfgKsaA.cjs.map} +1 -1
- package/dist/{management-Cc8mKfnf.js → management-DNEKhR6a.js} +5 -5
- package/dist/{management-Cc8mKfnf.js.map → management-DNEKhR6a.js.map} +1 -1
- 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-CNf1412Z.js → metastore-CjwktHvw.js} +4 -4
- package/dist/{metastore-CNf1412Z.js.map → metastore-CjwktHvw.js.map} +1 -1
- package/dist/{metastore-DbsxqjhS.cjs → metastore-DksEte8P.cjs} +4 -4
- package/dist/{metastore-DbsxqjhS.cjs.map → metastore-DksEte8P.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-ClksaYRY.js → oauth-Bg5zro5S.js} +5 -5
- package/dist/{oauth-ClksaYRY.js.map → oauth-Bg5zro5S.js.map} +1 -1
- package/dist/{oauth-DsZgmtPj.cjs → oauth-DFsI1TE5.cjs} +5 -5
- package/dist/{oauth-DsZgmtPj.cjs.map → oauth-DFsI1TE5.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-5SLw86eZ.d.ts → project-Bh954iOA.d.ts} +2 -2
- package/dist/{project-CRrsxSAK.d.cts → project-D25GH8zK.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-DxUUkTcy.cjs → queryService--t_W9PSJ.cjs} +6 -6
- package/dist/{queryService-DxUUkTcy.cjs.map → queryService--t_W9PSJ.cjs.map} +1 -1
- package/dist/{queryService-BlyAcBxP.js → queryService-DX6zeAs_.js} +6 -6
- package/dist/{queryService-BlyAcBxP.js.map → queryService-DX6zeAs_.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-CpcqeMPz.cjs → queue-D1_TCe0z.cjs} +5 -5
- package/dist/{queue-CpcqeMPz.cjs.map → queue-D1_TCe0z.cjs.map} +1 -1
- package/dist/{queue-DpZTm7U7.js → queue-DrLUbk98.js} +5 -5
- package/dist/{queue-DpZTm7U7.js.map → queue-DrLUbk98.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 +5 -5
- package/dist/sdk/developerPortal/index.cjs.map +1 -1
- package/dist/sdk/developerPortal/index.d.cts +5 -4
- package/dist/sdk/developerPortal/index.d.ts +5 -4
- package/dist/sdk/developerPortal/index.js +4 -4
- package/dist/sdk/queryService/index.cjs +1 -1
- package/dist/sdk/queryService/index.d.cts +1 -1
- package/dist/sdk/queryService/index.d.ts +1 -1
- package/dist/sdk/queryService/index.js +1 -1
- package/dist/sdk/semanticLayer/index.cjs +163 -74
- package/dist/sdk/semanticLayer/index.cjs.map +1 -1
- package/dist/sdk/semanticLayer/index.d.cts +16 -13
- package/dist/sdk/semanticLayer/index.d.ts +16 -13
- package/dist/sdk/semanticLayer/index.js +158 -75
- package/dist/sdk/semanticLayer/index.js.map +1 -1
- package/dist/sdk/semanticLayer/types.d.cts +2 -2
- package/dist/sdk/semanticLayer/types.d.ts +2 -2
- 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 +4 -4
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +4 -4
- package/dist/storage/types.d.cts +4 -3
- package/dist/storage/types.d.ts +4 -3
- package/dist/{storage-CQxu0EY3.js → storage--cVaecFq.js} +150 -161
- package/dist/storage--cVaecFq.js.map +1 -0
- package/dist/{storage-vnH64B_Q.cjs → storage-DexWot8H.cjs} +150 -161
- package/dist/storage-DexWot8H.cjs.map +1 -0
- package/dist/store-C9FQCHGe.js +74 -0
- package/dist/store-C9FQCHGe.js.map +1 -0
- package/dist/store-xS-Cu_VS.cjs +85 -0
- package/dist/store-xS-Cu_VS.cjs.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-AgFiMjRS.js → syncActions-CkMHM-jB.js} +5 -5
- package/dist/{syncActions-AgFiMjRS.js.map → syncActions-CkMHM-jB.js.map} +1 -1
- package/dist/{syncActions-DPcAPYgJ.cjs → syncActions-DQq_A9v6.cjs} +5 -5
- package/dist/{syncActions-DPcAPYgJ.cjs.map → syncActions-DQq_A9v6.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-BLgaYEvi.cjs → telemetry-CAu1Qt7B.cjs} +3 -3
- package/dist/{telemetry-BLgaYEvi.cjs.map → telemetry-CAu1Qt7B.cjs.map} +1 -1
- package/dist/{telemetry-CPiGWpLi.js → telemetry-Ca6j0i9w.js} +3 -3
- package/dist/{telemetry-CPiGWpLi.js.map → telemetry-Ca6j0i9w.js.map} +1 -1
- package/dist/{types-eP06LqcE.d.cts → types-0xa_7cgo.d.cts} +2 -16
- package/dist/{types-DLazCdFR.d.cts → types-3p0adMdd.d.cts} +3 -3
- package/dist/{types-DWUd__fe.d.ts → types-6ThDkaJw.d.ts} +2 -2
- package/dist/{types-Culr5v8R.d.ts → types-6hh_3SZs.d.ts} +3 -3
- package/dist/{types-DN7RWWBw.d.ts → types-6ku2LeX6.d.ts} +2 -2
- package/dist/{types-DSBNqF1J.d.cts → types-B42HhyB0.d.cts} +2 -2
- package/dist/{types-C2p7JYQ3.d.cts → types-B4_MM5Wf.d.cts} +2 -2
- package/dist/{types-B2El99VY.d.cts → types-B6JJCta-.d.cts} +2 -2
- package/dist/{types-BHCigZFc.d.ts → types-B6lOyHY_.d.ts} +3 -3
- package/dist/{types-Bc3-a3DT.d.cts → types-B7O5koJb.d.cts} +2 -2
- package/dist/{types-D5VvEdOv.d.ts → types-BHI8Lin9.d.ts} +2 -2
- package/dist/{types-DnOGCb-p.d.cts → types-BO3sCD0a.d.cts} +41 -10
- package/dist/{types-Bv5vw2dc.d.cts → types-BOnf68s5.d.cts} +2 -2
- package/dist/{types-CIybfUJ9.d.cts → types-BS5M67xm.d.cts} +3 -3
- package/dist/{types-C0bGZqFI.d.cts → types-BT46XIgn.d.cts} +2 -2
- package/dist/types-BUYqdN7B.d.ts +205 -0
- package/dist/{types-DdeZK3BO.d.ts → types-BYKHr5bR.d.ts} +2 -2
- package/dist/{types-BIAP4CYp.d.cts → types-Be3Wgn1U.d.cts} +2 -2
- package/dist/{types-B1S60aS2.d.ts → types-BgVKG4vg.d.ts} +2 -2
- package/dist/{types-BJLRgXw0.d.ts → types-C2gzqtjf.d.ts} +2 -2
- package/dist/{types-DQOOWgLt.d.cts → types-C35GWNmq.d.ts} +408 -24
- package/dist/{types-DMMMQuNt.d.ts → types-C4mr0lop.d.ts} +279 -430
- package/dist/{types-CFhAduFK.d.cts → types-CCr1-9Q6.d.cts} +3 -3
- package/dist/{types-Dirp9mni.d.ts → types-CHCM9oNk.d.ts} +3 -3
- package/dist/types-CNQdtffE.d.ts +3454 -0
- package/dist/{types-mXM8MrYS.d.cts → types-CPaluTW7.d.cts} +3 -3
- package/dist/{types-RmbvQimP.d.ts → types-CSc8NQCY.d.ts} +41 -10
- package/dist/{types-CgF9R0Na.d.ts → types-C_ilZZkQ.d.ts} +2 -2
- package/dist/{types-lVXf05pr.d.ts → types-CaMfshWX.d.ts} +2 -2
- package/dist/{types-BXnUqdBB.d.cts → types-Ccgbipp4.d.cts} +2 -2
- package/dist/types-Cpjk0-ta.d.ts +33557 -0
- package/dist/types-CrH4H8M4.d.cts +33557 -0
- package/dist/{types-CQd9PuKY.d.cts → types-Cu-0LT4f.d.cts} +2 -2
- package/dist/{types-D7YGPUsm.d.ts → types-CxmV36rp.d.cts} +408 -24
- package/dist/{types-SX78XZZ0.d.ts → types-D-98DirB.d.ts} +2 -2
- package/dist/{types-DG_FlLJt.d.cts → types-D6ocCyGh.d.cts} +279 -430
- package/dist/{types-DkoyCUqv.d.ts → types-D7Wgcp0u.d.ts} +2 -2
- package/dist/{types-COFrOmuO.d.ts → types-DAzmGzlb.d.ts} +2 -2
- package/dist/{types-BdKtW2Ml.d.cts → types-DHI0g51U.d.cts} +2 -2
- package/dist/{types-BMsK6T5k.d.ts → types-DHqIJKwx.d.ts} +2 -2
- package/dist/types-DONxb2-c.d.cts +205 -0
- package/dist/{types-DyIKgbGB.d.ts → types-DTTC70Ac.d.ts} +2 -2
- package/dist/{types-B2Al1BNh.d.ts → types-DlvZeert.d.ts} +2 -2
- package/dist/{types-uP64XthM.d.cts → types-DqniGeDJ.d.cts} +2 -2
- package/dist/types-E3VT-zYz.d.cts +3454 -0
- package/dist/{types-CuAoZH8w.d.cts → types-Jt0ipbSm.d.cts} +2 -2
- package/dist/{types-Co8WobOo.d.ts → types-Ur37iOqb.d.ts} +3 -3
- package/dist/{types-Drk7PEhk.d.ts → types-ZGAWRIBW.d.ts} +2 -2
- package/dist/{types-056giLrn.d.cts → types-bY6K3y0O.d.cts} +2 -2
- package/dist/{types-BvXODdf5.d.ts → types-k4R8gQ4U.d.ts} +2 -16
- package/dist/{types-sTH4KiPc.d.cts → types-sO52qIAA.d.cts} +2 -2
- package/dist/{types-By47HWwB.d.cts → types-sp1rJY9E.d.cts} +2 -2
- package/dist/{validateConnectionStatus-DVHXGTdi.cjs → validateConnectionStatus-24zqIQ0p.cjs} +2 -2
- package/dist/{validateConnectionStatus-DVHXGTdi.cjs.map → validateConnectionStatus-24zqIQ0p.cjs.map} +1 -1
- package/dist/{validateConnectionStatus-CBhXmvWC.js → validateConnectionStatus-DhkWg6Eq.js} +2 -2
- package/dist/{validateConnectionStatus-CBhXmvWC.js.map → validateConnectionStatus-DhkWg6Eq.js.map} +1 -1
- 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 +55 -3
- package/surface/auth.md +2 -2
- package/surface/chat.md +1 -1
- package/surface/kaiAgent.md +5 -2
- package/surface/sdk.md +4 -4
- package/surface/storage.md +44 -44
- package/dist/authClient-Cixa8_L1.cjs.map +0 -1
- package/dist/authClient-XBAUz9g-.js.map +0 -1
- package/dist/configurations-DCOJONZZ.cjs.map +0 -1
- package/dist/configurations-iCbhe0tb.js.map +0 -1
- package/dist/constants-CkAVvuUq.cjs.map +0 -1
- package/dist/constants-qeWGfk_7.js.map +0 -1
- package/dist/createFetchClient-B1h3-p65.js.map +0 -1
- package/dist/createFetchClient-B9Cv0W9f.cjs.map +0 -1
- package/dist/createStore-BNiCRQXa.js +0 -148
- package/dist/createStore-BNiCRQXa.js.map +0 -1
- package/dist/createStore-MQbboXcB.cjs +0 -177
- package/dist/createStore-MQbboXcB.cjs.map +0 -1
- package/dist/credential-D-tX9gP4.cjs.map +0 -1
- package/dist/credential-dKxArMic.js.map +0 -1
- package/dist/jobStatus-DbMupQEK.js.map +0 -1
- package/dist/jobStatus-kQ9JqF8t.cjs.map +0 -1
- package/dist/storage-CQxu0EY3.js.map +0 -1
- package/dist/storage-vnH64B_Q.cjs.map +0 -1
- package/dist/types-BV74LS5r.d.ts +0 -148
- package/dist/types-CIJAtX8q.d.cts +0 -18784
- package/dist/types-X-gQF8F8.d.ts +0 -18784
- package/dist/types-ca-YNg1r.d.cts +0 -148
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { E as MiddlewareFn } from "../index-DVhTNwvu.js";
|
|
2
|
+
import { n as ClientInitOptions } from "../types-D-98DirB.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 { s as HttpHeader } from "../createFetchClient-DdyZMhxO.js";
|
|
2
|
+
import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-E7OIVkYv.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-DhVFuQDv.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-DVhTNwvu.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-qfCZlCTv.cjs");
|
|
4
|
+
const require_createOpenapiFetchClient = require("../createOpenapiFetchClient-C57Ljzi6.cjs");
|
|
5
|
+
const require_auth = require("../auth-C2_JLisH.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-DHI0g51U.cjs";
|
|
2
|
+
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-DqniGeDJ.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-D-98DirB.js";
|
|
2
|
+
import { a as SubscriptionId, n as ListSubscriptionsQuery, s as components, t as CreateSubscriptionBody } from "../types-C_ilZZkQ.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-MQeLRiNW.js";
|
|
3
|
+
import { t as createOpenapiFetchClient } from "../createOpenapiFetchClient-E7OIVkYv.js";
|
|
4
|
+
import { t as createAuthHeaders } from "../auth-CE9rQV3-.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-DqniGeDJ.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-C_ilZZkQ.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-DHI0g51U.cjs";
|
|
2
|
+
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-BOnf68s5.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-D-98DirB.js";
|
|
2
|
+
import { a as CredentialInput, r as CreateCredentialInput, s as GetCredentialsInput } from "../types-C2gzqtjf.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-Bg5zro5S.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-BOnf68s5.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-C2gzqtjf.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 { p as HttpStatus, r as isApiError } from "./createFetchClient-DdyZMhxO.js";
|
|
2
|
+
import { t as createGenericFetchClient } from "./createGenericFetchClient-MQeLRiNW.js";
|
|
3
|
+
import { t as createOpenapiFetchClient } from "./createOpenapiFetchClient-E7OIVkYv.js";
|
|
4
|
+
import { t as createAuthHeaders } from "./auth-CE9rQV3-.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-Bg5zro5S.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-
|
|
1
|
+
{"version":3,"file":"oauth-Bg5zro5S.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-DvZvD31l.cjs");
|
|
2
|
+
const require_createGenericFetchClient = require("./createGenericFetchClient-qfCZlCTv.cjs");
|
|
3
|
+
const require_createOpenapiFetchClient = require("./createOpenapiFetchClient-C57Ljzi6.cjs");
|
|
4
|
+
const require_auth = require("./auth-C2_JLisH.cjs");
|
|
5
5
|
//#region src/clients/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-DFsI1TE5.cjs.map
|