@microsoft/teams.client 0.2.12 → 0.2.13
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/README.md +37 -37
- package/dist/app.d.mts +25 -4
- package/dist/app.d.ts +25 -4
- package/dist/app.js +44 -7
- package/dist/app.js.map +1 -1
- package/dist/app.mjs +44 -7
- package/dist/app.mjs.map +1 -1
- package/dist/graph-utils.d.mts +10 -0
- package/dist/graph-utils.d.ts +10 -0
- package/dist/graph-utils.js +50 -0
- package/dist/graph-utils.js.map +1 -0
- package/dist/graph-utils.mjs +27 -0
- package/dist/graph-utils.mjs.map +1 -0
- package/dist/index.d.mts +3 -53
- package/dist/index.d.ts +3 -53
- package/dist/index.js +3 -34
- package/dist/index.mjs +1 -4
- package/dist/msal-utils.d.mts +11 -1
- package/dist/msal-utils.d.ts +11 -1
- package/dist/msal-utils.js +14 -0
- package/dist/msal-utils.js.map +1 -1
- package/dist/msal-utils.mjs +14 -1
- package/dist/msal-utils.mjs.map +1 -1
- package/package.json +4 -2
- package/dist/context/app-host.d.mts +0 -25
- package/dist/context/app-host.d.ts +0 -25
- package/dist/context/app-host.js +0 -4
- package/dist/context/app-host.js.map +0 -1
- package/dist/context/app-host.mjs +0 -3
- package/dist/context/app-host.mjs.map +0 -1
- package/dist/context/app.d.mts +0 -69
- package/dist/context/app.d.ts +0 -69
- package/dist/context/app.js +0 -4
- package/dist/context/app.js.map +0 -1
- package/dist/context/app.mjs +0 -3
- package/dist/context/app.mjs.map +0 -1
- package/dist/context/channel.d.mts +0 -37
- package/dist/context/channel.d.ts +0 -37
- package/dist/context/channel.js +0 -4
- package/dist/context/channel.js.map +0 -1
- package/dist/context/channel.mjs +0 -3
- package/dist/context/channel.mjs.map +0 -1
- package/dist/context/chat.d.mts +0 -11
- package/dist/context/chat.d.ts +0 -11
- package/dist/context/chat.js +0 -4
- package/dist/context/chat.js.map +0 -1
- package/dist/context/chat.mjs +0 -3
- package/dist/context/chat.mjs.map +0 -1
- package/dist/context/index.d.mts +0 -74
- package/dist/context/index.d.ts +0 -74
- package/dist/context/index.js +0 -108
- package/dist/context/index.js.map +0 -1
- package/dist/context/index.mjs +0 -86
- package/dist/context/index.mjs.map +0 -1
- package/dist/context/meeting.d.mts +0 -11
- package/dist/context/meeting.d.ts +0 -11
- package/dist/context/meeting.js +0 -4
- package/dist/context/meeting.js.map +0 -1
- package/dist/context/meeting.mjs +0 -3
- package/dist/context/meeting.mjs.map +0 -1
- package/dist/context/page.d.mts +0 -40
- package/dist/context/page.d.ts +0 -40
- package/dist/context/page.js +0 -4
- package/dist/context/page.js.map +0 -1
- package/dist/context/page.mjs +0 -3
- package/dist/context/page.mjs.map +0 -1
- package/dist/context/share-point-site.d.mts +0 -31
- package/dist/context/share-point-site.d.ts +0 -31
- package/dist/context/share-point-site.js +0 -4
- package/dist/context/share-point-site.js.map +0 -1
- package/dist/context/share-point-site.mjs +0 -3
- package/dist/context/share-point-site.mjs.map +0 -1
- package/dist/context/team.d.mts +0 -42
- package/dist/context/team.d.ts +0 -42
- package/dist/context/team.js +0 -4
- package/dist/context/team.js.map +0 -1
- package/dist/context/team.mjs +0 -3
- package/dist/context/team.mjs.map +0 -1
- package/dist/context/tenant.d.mts +0 -20
- package/dist/context/tenant.d.ts +0 -20
- package/dist/context/tenant.js +0 -4
- package/dist/context/tenant.js.map +0 -1
- package/dist/context/tenant.mjs +0 -3
- package/dist/context/tenant.mjs.map +0 -1
- package/dist/context/user.d.mts +0 -63
- package/dist/context/user.d.ts +0 -63
- package/dist/context/user.js +0 -4
- package/dist/context/user.js.map +0 -1
- package/dist/context/user.mjs +0 -3
- package/dist/context/user.mjs.map +0 -1
- package/dist/index-5Ok-M8A0.d.ts +0 -13
- package/dist/index-7hUkxLxx.d.mts +0 -17
- package/dist/index-8IcDrPMv.d.ts +0 -70
- package/dist/index-D6kqtGPa.d.mts +0 -13
- package/dist/index-DJal_Cxb.d.mts +0 -70
- package/dist/index-DrTQ_GLN.d.mts +0 -21
- package/dist/index-DtE-Eb9L.d.ts +0 -17
- package/dist/index-_Hc8oq9_.d.ts +0 -21
- package/dist/window/client-error.d.mts +0 -10
- package/dist/window/client-error.d.ts +0 -10
- package/dist/window/client-error.js +0 -4
- package/dist/window/client-error.js.map +0 -1
- package/dist/window/client-error.mjs +0 -3
- package/dist/window/client-error.mjs.map +0 -1
- package/dist/window/clients/app-entity.d.mts +0 -12
- package/dist/window/clients/app-entity.d.ts +0 -12
- package/dist/window/clients/app-entity.js +0 -15
- package/dist/window/clients/app-entity.js.map +0 -1
- package/dist/window/clients/app-entity.mjs +0 -13
- package/dist/window/clients/app-entity.mjs.map +0 -1
- package/dist/window/clients/app-initialization.d.mts +0 -50
- package/dist/window/clients/app-initialization.d.ts +0 -50
- package/dist/window/clients/app-initialization.js +0 -24
- package/dist/window/clients/app-initialization.js.map +0 -1
- package/dist/window/clients/app-initialization.mjs +0 -22
- package/dist/window/clients/app-initialization.mjs.map +0 -1
- package/dist/window/clients/app-install-dialog.d.mts +0 -21
- package/dist/window/clients/app-install-dialog.d.ts +0 -21
- package/dist/window/clients/app-install-dialog.js +0 -22
- package/dist/window/clients/app-install-dialog.js.map +0 -1
- package/dist/window/clients/app-install-dialog.mjs +0 -20
- package/dist/window/clients/app-install-dialog.mjs.map +0 -1
- package/dist/window/clients/authentication.d.mts +0 -66
- package/dist/window/clients/authentication.d.ts +0 -66
- package/dist/window/clients/authentication.js +0 -47
- package/dist/window/clients/authentication.js.map +0 -1
- package/dist/window/clients/authentication.mjs +0 -45
- package/dist/window/clients/authentication.mjs.map +0 -1
- package/dist/window/clients/bar-code.d.mts +0 -13
- package/dist/window/clients/bar-code.d.ts +0 -13
- package/dist/window/clients/bar-code.js +0 -20
- package/dist/window/clients/bar-code.js.map +0 -1
- package/dist/window/clients/bar-code.mjs +0 -18
- package/dist/window/clients/bar-code.mjs.map +0 -1
- package/dist/window/clients/calendar.d.mts +0 -47
- package/dist/window/clients/calendar.d.ts +0 -47
- package/dist/window/clients/calendar.js +0 -18
- package/dist/window/clients/calendar.js.map +0 -1
- package/dist/window/clients/calendar.mjs +0 -16
- package/dist/window/clients/calendar.mjs.map +0 -1
- package/dist/window/clients/call.d.mts +0 -32
- package/dist/window/clients/call.d.ts +0 -32
- package/dist/window/clients/call.js +0 -16
- package/dist/window/clients/call.js.map +0 -1
- package/dist/window/clients/call.mjs +0 -14
- package/dist/window/clients/call.mjs.map +0 -1
- package/dist/window/clients/clipboard.d.mts +0 -26
- package/dist/window/clients/clipboard.d.ts +0 -26
- package/dist/window/clients/clipboard.js +0 -19
- package/dist/window/clients/clipboard.js.map +0 -1
- package/dist/window/clients/clipboard.mjs +0 -17
- package/dist/window/clients/clipboard.mjs.map +0 -1
- package/dist/window/clients/conversation.d.mts +0 -53
- package/dist/window/clients/conversation.d.ts +0 -53
- package/dist/window/clients/conversation.js +0 -25
- package/dist/window/clients/conversation.js.map +0 -1
- package/dist/window/clients/conversation.mjs +0 -23
- package/dist/window/clients/conversation.mjs.map +0 -1
- package/dist/window/clients/dialog.d.mts +0 -81
- package/dist/window/clients/dialog.d.ts +0 -81
- package/dist/window/clients/dialog.js +0 -37
- package/dist/window/clients/dialog.js.map +0 -1
- package/dist/window/clients/dialog.mjs +0 -35
- package/dist/window/clients/dialog.mjs.map +0 -1
- package/dist/window/clients/index.d.mts +0 -84
- package/dist/window/clients/index.d.ts +0 -84
- package/dist/window/clients/index.js +0 -159
- package/dist/window/clients/index.js.map +0 -1
- package/dist/window/clients/index.mjs +0 -87
- package/dist/window/clients/index.mjs.map +0 -1
- package/dist/window/clients/location.d.mts +0 -14
- package/dist/window/clients/location.d.ts +0 -14
- package/dist/window/clients/location.js +0 -22
- package/dist/window/clients/location.js.map +0 -1
- package/dist/window/clients/location.mjs +0 -20
- package/dist/window/clients/location.mjs.map +0 -1
- package/dist/window/clients/media.d.mts +0 -190
- package/dist/window/clients/media.d.ts +0 -190
- package/dist/window/clients/media.js +0 -75
- package/dist/window/clients/media.js.map +0 -1
- package/dist/window/clients/media.mjs +0 -68
- package/dist/window/clients/media.mjs.map +0 -1
- package/dist/window/clients/notification.d.mts +0 -17
- package/dist/window/clients/notification.d.ts +0 -17
- package/dist/window/clients/notification.js +0 -15
- package/dist/window/clients/notification.js.map +0 -1
- package/dist/window/clients/notification.mjs +0 -13
- package/dist/window/clients/notification.mjs.map +0 -1
- package/dist/window/clients/permission.d.mts +0 -14
- package/dist/window/clients/permission.d.ts +0 -14
- package/dist/window/clients/permission.js +0 -20
- package/dist/window/clients/permission.js.map +0 -1
- package/dist/window/clients/permission.mjs +0 -18
- package/dist/window/clients/permission.mjs.map +0 -1
- package/dist/window/index.d.mts +0 -59
- package/dist/window/index.d.ts +0 -59
- package/dist/window/index.js +0 -35
- package/dist/window/index.js.map +0 -1
- package/dist/window/index.mjs +0 -6
- package/dist/window/index.mjs.map +0 -1
- package/dist/window/message.d.mts +0 -24
- package/dist/window/message.d.ts +0 -24
- package/dist/window/message.js +0 -4
- package/dist/window/message.js.map +0 -1
- package/dist/window/message.mjs +0 -3
- package/dist/window/message.mjs.map +0 -1
- package/dist/window/runtime.d.mts +0 -96
- package/dist/window/runtime.d.ts +0 -96
- package/dist/window/runtime.js +0 -4
- package/dist/window/runtime.js.map +0 -1
- package/dist/window/runtime.mjs +0 -3
- package/dist/window/runtime.mjs.map +0 -1
- package/dist/window/types/action-open-url-type.d.mts +0 -15
- package/dist/window/types/action-open-url-type.d.ts +0 -15
- package/dist/window/types/action-open-url-type.js +0 -13
- package/dist/window/types/action-open-url-type.js.map +0 -1
- package/dist/window/types/action-open-url-type.mjs +0 -11
- package/dist/window/types/action-open-url-type.mjs.map +0 -1
- package/dist/window/types/app-eligibility-info.d.mts +0 -48
- package/dist/window/types/app-eligibility-info.d.ts +0 -48
- package/dist/window/types/app-eligibility-info.js +0 -4
- package/dist/window/types/app-eligibility-info.js.map +0 -1
- package/dist/window/types/app-eligibility-info.mjs +0 -3
- package/dist/window/types/app-eligibility-info.mjs.map +0 -1
- package/dist/window/types/bar-code-config.d.mts +0 -13
- package/dist/window/types/bar-code-config.d.ts +0 -13
- package/dist/window/types/bar-code-config.js +0 -4
- package/dist/window/types/bar-code-config.js.map +0 -1
- package/dist/window/types/bar-code-config.mjs +0 -3
- package/dist/window/types/bar-code-config.mjs.map +0 -1
- package/dist/window/types/call-modality.d.mts +0 -21
- package/dist/window/types/call-modality.d.ts +0 -21
- package/dist/window/types/call-modality.js +0 -14
- package/dist/window/types/call-modality.js.map +0 -1
- package/dist/window/types/call-modality.mjs +0 -12
- package/dist/window/types/call-modality.mjs.map +0 -1
- package/dist/window/types/channel-type.d.mts +0 -17
- package/dist/window/types/channel-type.d.ts +0 -17
- package/dist/window/types/channel-type.js +0 -12
- package/dist/window/types/channel-type.js.map +0 -1
- package/dist/window/types/channel-type.mjs +0 -10
- package/dist/window/types/channel-type.mjs.map +0 -1
- package/dist/window/types/context.d.mts +0 -275
- package/dist/window/types/context.d.ts +0 -275
- package/dist/window/types/context.js +0 -4
- package/dist/window/types/context.js.map +0 -1
- package/dist/window/types/context.mjs +0 -3
- package/dist/window/types/context.mjs.map +0 -1
- package/dist/window/types/data-residency.d.mts +0 -6
- package/dist/window/types/data-residency.d.ts +0 -6
- package/dist/window/types/data-residency.js +0 -4
- package/dist/window/types/data-residency.js.map +0 -1
- package/dist/window/types/data-residency.mjs +0 -3
- package/dist/window/types/data-residency.mjs.map +0 -1
- package/dist/window/types/dialog/dialog-dimension.d.mts +0 -17
- package/dist/window/types/dialog/dialog-dimension.d.ts +0 -17
- package/dist/window/types/dialog/dialog-dimension.js +0 -12
- package/dist/window/types/dialog/dialog-dimension.js.map +0 -1
- package/dist/window/types/dialog/dialog-dimension.mjs +0 -10
- package/dist/window/types/dialog/dialog-dimension.mjs.map +0 -1
- package/dist/window/types/dialog/dialog-info.d.mts +0 -43
- package/dist/window/types/dialog/dialog-info.d.ts +0 -43
- package/dist/window/types/dialog/dialog-info.js +0 -4
- package/dist/window/types/dialog/dialog-info.js.map +0 -1
- package/dist/window/types/dialog/dialog-info.mjs +0 -3
- package/dist/window/types/dialog/dialog-info.mjs.map +0 -1
- package/dist/window/types/dialog/dialog-size.d.mts +0 -14
- package/dist/window/types/dialog/dialog-size.d.ts +0 -14
- package/dist/window/types/dialog/dialog-size.js +0 -4
- package/dist/window/types/dialog/dialog-size.js.map +0 -1
- package/dist/window/types/dialog/dialog-size.mjs +0 -3
- package/dist/window/types/dialog/dialog-size.mjs.map +0 -1
- package/dist/window/types/dialog/index.d.mts +0 -3
- package/dist/window/types/dialog/index.d.ts +0 -3
- package/dist/window/types/dialog/index.js +0 -28
- package/dist/window/types/dialog/index.js.map +0 -1
- package/dist/window/types/dialog/index.mjs +0 -5
- package/dist/window/types/dialog/index.mjs.map +0 -1
- package/dist/window/types/file-open-preference.d.mts +0 -17
- package/dist/window/types/file-open-preference.d.ts +0 -17
- package/dist/window/types/file-open-preference.js +0 -12
- package/dist/window/types/file-open-preference.js.map +0 -1
- package/dist/window/types/file-open-preference.mjs +0 -10
- package/dist/window/types/file-open-preference.mjs.map +0 -1
- package/dist/window/types/file.d.mts +0 -42
- package/dist/window/types/file.d.ts +0 -42
- package/dist/window/types/file.js +0 -11
- package/dist/window/types/file.js.map +0 -1
- package/dist/window/types/file.mjs +0 -9
- package/dist/window/types/file.mjs.map +0 -1
- package/dist/window/types/frame-context.d.mts +0 -44
- package/dist/window/types/frame-context.d.ts +0 -44
- package/dist/window/types/frame-context.js +0 -17
- package/dist/window/types/frame-context.js.map +0 -1
- package/dist/window/types/frame-context.mjs +0 -15
- package/dist/window/types/frame-context.mjs.map +0 -1
- package/dist/window/types/host.d.mts +0 -73
- package/dist/window/types/host.d.ts +0 -73
- package/dist/window/types/host.js +0 -32
- package/dist/window/types/host.js.map +0 -1
- package/dist/window/types/host.mjs +0 -29
- package/dist/window/types/host.mjs.map +0 -1
- package/dist/window/types/index.d.mts +0 -39
- package/dist/window/types/index.d.ts +0 -39
- package/dist/window/types/index.js +0 -189
- package/dist/window/types/index.js.map +0 -1
- package/dist/window/types/index.mjs +0 -30
- package/dist/window/types/index.mjs.map +0 -1
- package/dist/window/types/legal-age-group-classification.d.mts +0 -34
- package/dist/window/types/legal-age-group-classification.d.ts +0 -34
- package/dist/window/types/legal-age-group-classification.js +0 -14
- package/dist/window/types/legal-age-group-classification.js.map +0 -1
- package/dist/window/types/legal-age-group-classification.mjs +0 -12
- package/dist/window/types/legal-age-group-classification.mjs.map +0 -1
- package/dist/window/types/liveshare/client.d.mts +0 -23
- package/dist/window/types/liveshare/client.d.ts +0 -23
- package/dist/window/types/liveshare/client.js +0 -4
- package/dist/window/types/liveshare/client.js.map +0 -1
- package/dist/window/types/liveshare/client.mjs +0 -3
- package/dist/window/types/liveshare/client.mjs.map +0 -1
- package/dist/window/types/liveshare/container-state.d.mts +0 -33
- package/dist/window/types/liveshare/container-state.d.ts +0 -33
- package/dist/window/types/liveshare/container-state.js +0 -13
- package/dist/window/types/liveshare/container-state.js.map +0 -1
- package/dist/window/types/liveshare/container-state.mjs +0 -11
- package/dist/window/types/liveshare/container-state.mjs.map +0 -1
- package/dist/window/types/liveshare/fluid-container.d.mts +0 -28
- package/dist/window/types/liveshare/fluid-container.d.ts +0 -28
- package/dist/window/types/liveshare/fluid-container.js +0 -4
- package/dist/window/types/liveshare/fluid-container.js.map +0 -1
- package/dist/window/types/liveshare/fluid-container.mjs +0 -3
- package/dist/window/types/liveshare/fluid-container.mjs.map +0 -1
- package/dist/window/types/liveshare/fluid-tenant.d.mts +0 -16
- package/dist/window/types/liveshare/fluid-tenant.d.ts +0 -16
- package/dist/window/types/liveshare/fluid-tenant.js +0 -4
- package/dist/window/types/liveshare/fluid-tenant.js.map +0 -1
- package/dist/window/types/liveshare/fluid-tenant.mjs +0 -3
- package/dist/window/types/liveshare/fluid-tenant.mjs.map +0 -1
- package/dist/window/types/liveshare/index.d.mts +0 -6
- package/dist/window/types/liveshare/index.d.ts +0 -6
- package/dist/window/types/liveshare/index.js +0 -42
- package/dist/window/types/liveshare/index.js.map +0 -1
- package/dist/window/types/liveshare/index.mjs +0 -7
- package/dist/window/types/liveshare/index.mjs.map +0 -1
- package/dist/window/types/liveshare/ntp-time.d.mts +0 -16
- package/dist/window/types/liveshare/ntp-time.d.ts +0 -16
- package/dist/window/types/liveshare/ntp-time.js +0 -4
- package/dist/window/types/liveshare/ntp-time.js.map +0 -1
- package/dist/window/types/liveshare/ntp-time.mjs +0 -3
- package/dist/window/types/liveshare/ntp-time.mjs.map +0 -1
- package/dist/window/types/locale.d.mts +0 -38
- package/dist/window/types/locale.d.ts +0 -38
- package/dist/window/types/locale.js +0 -4
- package/dist/window/types/locale.js.map +0 -1
- package/dist/window/types/locale.mjs +0 -3
- package/dist/window/types/locale.mjs.map +0 -1
- package/dist/window/types/location.d.mts +0 -25
- package/dist/window/types/location.d.ts +0 -25
- package/dist/window/types/location.js +0 -4
- package/dist/window/types/location.js.map +0 -1
- package/dist/window/types/location.mjs +0 -3
- package/dist/window/types/location.mjs.map +0 -1
- package/dist/window/types/marketplace/cart-info.d.mts +0 -47
- package/dist/window/types/marketplace/cart-info.d.ts +0 -47
- package/dist/window/types/marketplace/cart-info.js +0 -4
- package/dist/window/types/marketplace/cart-info.js.map +0 -1
- package/dist/window/types/marketplace/cart-info.mjs +0 -3
- package/dist/window/types/marketplace/cart-info.mjs.map +0 -1
- package/dist/window/types/marketplace/cart-item.d.mts +0 -40
- package/dist/window/types/marketplace/cart-item.d.ts +0 -40
- package/dist/window/types/marketplace/cart-item.js +0 -4
- package/dist/window/types/marketplace/cart-item.js.map +0 -1
- package/dist/window/types/marketplace/cart-item.mjs +0 -3
- package/dist/window/types/marketplace/cart-item.mjs.map +0 -1
- package/dist/window/types/marketplace/cart-status.d.mts +0 -33
- package/dist/window/types/marketplace/cart-status.d.ts +0 -33
- package/dist/window/types/marketplace/cart-status.js +0 -14
- package/dist/window/types/marketplace/cart-status.js.map +0 -1
- package/dist/window/types/marketplace/cart-status.mjs +0 -12
- package/dist/window/types/marketplace/cart-status.mjs.map +0 -1
- package/dist/window/types/marketplace/cart-version.d.mts +0 -17
- package/dist/window/types/marketplace/cart-version.d.ts +0 -17
- package/dist/window/types/marketplace/cart-version.js +0 -4
- package/dist/window/types/marketplace/cart-version.js.map +0 -1
- package/dist/window/types/marketplace/cart-version.mjs +0 -3
- package/dist/window/types/marketplace/cart-version.mjs.map +0 -1
- package/dist/window/types/marketplace/cart.d.mts +0 -29
- package/dist/window/types/marketplace/cart.d.ts +0 -29
- package/dist/window/types/marketplace/cart.js +0 -4
- package/dist/window/types/marketplace/cart.js.map +0 -1
- package/dist/window/types/marketplace/cart.mjs +0 -3
- package/dist/window/types/marketplace/cart.mjs.map +0 -1
- package/dist/window/types/marketplace/index.d.mts +0 -6
- package/dist/window/types/marketplace/index.d.ts +0 -6
- package/dist/window/types/marketplace/index.js +0 -49
- package/dist/window/types/marketplace/index.js.map +0 -1
- package/dist/window/types/marketplace/index.mjs +0 -8
- package/dist/window/types/marketplace/index.mjs.map +0 -1
- package/dist/window/types/marketplace/intent.d.mts +0 -23
- package/dist/window/types/marketplace/intent.d.ts +0 -23
- package/dist/window/types/marketplace/intent.js +0 -12
- package/dist/window/types/marketplace/intent.js.map +0 -1
- package/dist/window/types/marketplace/intent.mjs +0 -10
- package/dist/window/types/marketplace/intent.mjs.map +0 -1
- package/dist/window/types/notification-type.d.mts +0 -3
- package/dist/window/types/notification-type.d.ts +0 -3
- package/dist/window/types/notification-type.js +0 -4
- package/dist/window/types/notification-type.js.map +0 -1
- package/dist/window/types/notification-type.mjs +0 -3
- package/dist/window/types/notification-type.mjs.map +0 -1
- package/dist/window/types/permission.d.mts +0 -3
- package/dist/window/types/permission.d.ts +0 -3
- package/dist/window/types/permission.js +0 -4
- package/dist/window/types/permission.js.map +0 -1
- package/dist/window/types/permission.mjs +0 -3
- package/dist/window/types/permission.mjs.map +0 -1
- package/dist/window/types/team-type.d.mts +0 -24
- package/dist/window/types/team-type.d.ts +0 -24
- package/dist/window/types/team-type.js +0 -18
- package/dist/window/types/team-type.js.map +0 -1
- package/dist/window/types/team-type.mjs +0 -15
- package/dist/window/types/team-type.mjs.map +0 -1
- package/dist/window/types/theme.d.mts +0 -6
- package/dist/window/types/theme.d.ts +0 -6
- package/dist/window/types/theme.js +0 -4
- package/dist/window/types/theme.js.map +0 -1
- package/dist/window/types/theme.mjs +0 -3
- package/dist/window/types/theme.mjs.map +0 -1
- package/dist/window/types/thread-member.d.mts +0 -11
- package/dist/window/types/thread-member.d.ts +0 -11
- package/dist/window/types/thread-member.js +0 -4
- package/dist/window/types/thread-member.js.map +0 -1
- package/dist/window/types/thread-member.mjs +0 -3
- package/dist/window/types/thread-member.mjs.map +0 -1
- package/dist/window/types/user-meeting-role.d.mts +0 -31
- package/dist/window/types/user-meeting-role.d.ts +0 -31
- package/dist/window/types/user-meeting-role.js +0 -13
- package/dist/window/types/user-meeting-role.js.map +0 -1
- package/dist/window/types/user-meeting-role.mjs +0 -11
- package/dist/window/types/user-meeting-role.mjs.map +0 -1
- package/dist/window/types/user-profile.d.mts +0 -82
- package/dist/window/types/user-profile.d.ts +0 -82
- package/dist/window/types/user-profile.js +0 -4
- package/dist/window/types/user-profile.js.map +0 -1
- package/dist/window/types/user-profile.mjs +0 -3
- package/dist/window/types/user-profile.mjs.map +0 -1
- package/dist/window/types/user-team-role.d.mts +0 -18
- package/dist/window/types/user-team-role.d.ts +0 -18
- package/dist/window/types/user-team-role.js +0 -16
- package/dist/window/types/user-team-role.js.map +0 -1
- package/dist/window/types/user-team-role.mjs +0 -13
- package/dist/window/types/user-team-role.mjs.map +0 -1
- package/dist/window/window-client.d.mts +0 -28
- package/dist/window/window-client.d.ts +0 -28
- package/dist/window/window-client.js +0 -92
- package/dist/window/window-client.js.map +0 -1
- package/dist/window/window-client.mjs +0 -70
- package/dist/window/window-client.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,56 +1,6 @@
|
|
|
1
|
-
export { App, AppOptions, MsalOptions } from './app.mjs';
|
|
2
|
-
export { Context, mapContext } from './context/index.mjs';
|
|
3
|
-
export { i as types } from './index-DJal_Cxb.mjs';
|
|
1
|
+
export { App, AppOptions, ExecOptions, MsalOptions } from './app.mjs';
|
|
4
2
|
import '@azure/msal-browser';
|
|
3
|
+
import '@microsoft/teams-js';
|
|
5
4
|
import '@microsoft/teams.common/http';
|
|
6
5
|
import '@microsoft/teams.common/logging';
|
|
7
|
-
import '@microsoft/teams
|
|
8
|
-
import './window/types/context.mjs';
|
|
9
|
-
import './window/types/channel-type.mjs';
|
|
10
|
-
import './window/types/file-open-preference.mjs';
|
|
11
|
-
import './window/types/frame-context.mjs';
|
|
12
|
-
import './window/types/host.mjs';
|
|
13
|
-
import './window/types/locale.mjs';
|
|
14
|
-
import './window/types/team-type.mjs';
|
|
15
|
-
import './window/types/theme.mjs';
|
|
16
|
-
import './window/types/user-team-role.mjs';
|
|
17
|
-
import './context/app.mjs';
|
|
18
|
-
import './context/app-host.mjs';
|
|
19
|
-
import './context/channel.mjs';
|
|
20
|
-
import './context/chat.mjs';
|
|
21
|
-
import './context/meeting.mjs';
|
|
22
|
-
import './context/page.mjs';
|
|
23
|
-
import './context/share-point-site.mjs';
|
|
24
|
-
import './context/team.mjs';
|
|
25
|
-
import './context/user.mjs';
|
|
26
|
-
import './context/tenant.mjs';
|
|
27
|
-
import './window/types/user-meeting-role.mjs';
|
|
28
|
-
import './window/types/user-profile.mjs';
|
|
29
|
-
import './window/types/data-residency.mjs';
|
|
30
|
-
import './window/types/bar-code-config.mjs';
|
|
31
|
-
import './window/types/permission.mjs';
|
|
32
|
-
import './window/types/call-modality.mjs';
|
|
33
|
-
import './window/types/file.mjs';
|
|
34
|
-
import './window/types/thread-member.mjs';
|
|
35
|
-
import './window/types/legal-age-group-classification.mjs';
|
|
36
|
-
import './window/types/app-eligibility-info.mjs';
|
|
37
|
-
import './window/types/action-open-url-type.mjs';
|
|
38
|
-
import './window/types/location.mjs';
|
|
39
|
-
import './window/types/notification-type.mjs';
|
|
40
|
-
import './index-7hUkxLxx.mjs';
|
|
41
|
-
import './window/types/liveshare/container-state.mjs';
|
|
42
|
-
import './window/types/liveshare/fluid-container.mjs';
|
|
43
|
-
import './window/types/liveshare/ntp-time.mjs';
|
|
44
|
-
import './window/types/liveshare/fluid-tenant.mjs';
|
|
45
|
-
import './window/types/liveshare/client.mjs';
|
|
46
|
-
import './index-DrTQ_GLN.mjs';
|
|
47
|
-
import './window/types/marketplace/cart.mjs';
|
|
48
|
-
import './window/types/marketplace/cart-info.mjs';
|
|
49
|
-
import './window/types/marketplace/cart-status.mjs';
|
|
50
|
-
import './window/types/marketplace/intent.mjs';
|
|
51
|
-
import './window/types/marketplace/cart-item.mjs';
|
|
52
|
-
import './window/types/marketplace/cart-version.mjs';
|
|
53
|
-
import './index-D6kqtGPa.mjs';
|
|
54
|
-
import './window/types/dialog/dialog-dimension.mjs';
|
|
55
|
-
import './window/types/dialog/dialog-info.mjs';
|
|
56
|
-
import './window/types/dialog/dialog-size.mjs';
|
|
6
|
+
import '@microsoft/teams.graph';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,56 +1,6 @@
|
|
|
1
|
-
export { App, AppOptions, MsalOptions } from './app.js';
|
|
2
|
-
export { Context, mapContext } from './context/index.js';
|
|
3
|
-
export { i as types } from './index-8IcDrPMv.js';
|
|
1
|
+
export { App, AppOptions, ExecOptions, MsalOptions } from './app.js';
|
|
4
2
|
import '@azure/msal-browser';
|
|
3
|
+
import '@microsoft/teams-js';
|
|
5
4
|
import '@microsoft/teams.common/http';
|
|
6
5
|
import '@microsoft/teams.common/logging';
|
|
7
|
-
import '@microsoft/teams
|
|
8
|
-
import './window/types/context.js';
|
|
9
|
-
import './window/types/channel-type.js';
|
|
10
|
-
import './window/types/file-open-preference.js';
|
|
11
|
-
import './window/types/frame-context.js';
|
|
12
|
-
import './window/types/host.js';
|
|
13
|
-
import './window/types/locale.js';
|
|
14
|
-
import './window/types/team-type.js';
|
|
15
|
-
import './window/types/theme.js';
|
|
16
|
-
import './window/types/user-team-role.js';
|
|
17
|
-
import './context/app.js';
|
|
18
|
-
import './context/app-host.js';
|
|
19
|
-
import './context/channel.js';
|
|
20
|
-
import './context/chat.js';
|
|
21
|
-
import './context/meeting.js';
|
|
22
|
-
import './context/page.js';
|
|
23
|
-
import './context/share-point-site.js';
|
|
24
|
-
import './context/team.js';
|
|
25
|
-
import './context/user.js';
|
|
26
|
-
import './context/tenant.js';
|
|
27
|
-
import './window/types/user-meeting-role.js';
|
|
28
|
-
import './window/types/user-profile.js';
|
|
29
|
-
import './window/types/data-residency.js';
|
|
30
|
-
import './window/types/bar-code-config.js';
|
|
31
|
-
import './window/types/permission.js';
|
|
32
|
-
import './window/types/call-modality.js';
|
|
33
|
-
import './window/types/file.js';
|
|
34
|
-
import './window/types/thread-member.js';
|
|
35
|
-
import './window/types/legal-age-group-classification.js';
|
|
36
|
-
import './window/types/app-eligibility-info.js';
|
|
37
|
-
import './window/types/action-open-url-type.js';
|
|
38
|
-
import './window/types/location.js';
|
|
39
|
-
import './window/types/notification-type.js';
|
|
40
|
-
import './index-DtE-Eb9L.js';
|
|
41
|
-
import './window/types/liveshare/container-state.js';
|
|
42
|
-
import './window/types/liveshare/fluid-container.js';
|
|
43
|
-
import './window/types/liveshare/ntp-time.js';
|
|
44
|
-
import './window/types/liveshare/fluid-tenant.js';
|
|
45
|
-
import './window/types/liveshare/client.js';
|
|
46
|
-
import './index-_Hc8oq9_.js';
|
|
47
|
-
import './window/types/marketplace/cart.js';
|
|
48
|
-
import './window/types/marketplace/cart-info.js';
|
|
49
|
-
import './window/types/marketplace/cart-status.js';
|
|
50
|
-
import './window/types/marketplace/intent.js';
|
|
51
|
-
import './window/types/marketplace/cart-item.js';
|
|
52
|
-
import './window/types/marketplace/cart-version.js';
|
|
53
|
-
import './index-5Ok-M8A0.js';
|
|
54
|
-
import './window/types/dialog/dialog-dimension.js';
|
|
55
|
-
import './window/types/dialog/dialog-info.js';
|
|
56
|
-
import './window/types/dialog/dialog-size.js';
|
|
6
|
+
import '@microsoft/teams.graph';
|
package/dist/index.js
CHANGED
|
@@ -1,43 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var app = require('./app');
|
|
4
|
-
var context = require('./context');
|
|
5
|
-
var types = require('./window/types');
|
|
6
4
|
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n.default = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
5
|
|
|
25
|
-
var types__namespace = /*#__PURE__*/_interopNamespace(types);
|
|
26
6
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Object.keys(app).forEach(function (k) {
|
|
31
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return app[k]; }
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
Object.keys(context).forEach(function (k) {
|
|
37
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return context[k]; }
|
|
40
|
-
});
|
|
7
|
+
Object.defineProperty(exports, "App", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return app.App; }
|
|
41
10
|
});
|
|
42
11
|
//# sourceMappingURL=index.js.map
|
|
43
12
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
package/dist/msal-utils.d.mts
CHANGED
|
@@ -26,5 +26,15 @@ declare const buildMsalConfig: (clientId: string, logger: ILogger) => msal.Confi
|
|
|
26
26
|
* @returns A promise that resolves to the acquired access token.
|
|
27
27
|
*/
|
|
28
28
|
declare const acquireMsalAccessToken: (msalInstance: Pick<msal.IPublicClientApplication, "acquireTokenSilent" | "acquireTokenPopup">, request: msal.SilentRequest, logger: ILogger) => Promise<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Tests whether the user has consented to the specified scopes by attempting to acquire a token silently.
|
|
31
|
+
* If the token acquisition is successful, it indicates that the user has consented to the scopes.
|
|
32
|
+
* If it fails, it indicates that the user has not consented to the scopes.
|
|
33
|
+
* @param msalInstance The MSAL instance to use.
|
|
34
|
+
* @param scopes The scopes to check consent for. The scopes should not mix resources, or mix default scope with non-default scopes.
|
|
35
|
+
* @param logger The logger instance to use.
|
|
36
|
+
* @returns A promise that resolves to a boolean indicating whether the user has consented to the scopes.
|
|
37
|
+
*/
|
|
38
|
+
declare const hasConsentForScopes: (msalInstance: Pick<msal.IPublicClientApplication, "acquireTokenSilent">, scopes: string[], logger: ILogger) => Promise<boolean>;
|
|
29
39
|
|
|
30
|
-
export { acquireMsalAccessToken, buildMsalConfig, getStandardExecSilentRequest };
|
|
40
|
+
export { acquireMsalAccessToken, buildMsalConfig, getStandardExecSilentRequest, hasConsentForScopes };
|
package/dist/msal-utils.d.ts
CHANGED
|
@@ -26,5 +26,15 @@ declare const buildMsalConfig: (clientId: string, logger: ILogger) => msal.Confi
|
|
|
26
26
|
* @returns A promise that resolves to the acquired access token.
|
|
27
27
|
*/
|
|
28
28
|
declare const acquireMsalAccessToken: (msalInstance: Pick<msal.IPublicClientApplication, "acquireTokenSilent" | "acquireTokenPopup">, request: msal.SilentRequest, logger: ILogger) => Promise<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Tests whether the user has consented to the specified scopes by attempting to acquire a token silently.
|
|
31
|
+
* If the token acquisition is successful, it indicates that the user has consented to the scopes.
|
|
32
|
+
* If it fails, it indicates that the user has not consented to the scopes.
|
|
33
|
+
* @param msalInstance The MSAL instance to use.
|
|
34
|
+
* @param scopes The scopes to check consent for. The scopes should not mix resources, or mix default scope with non-default scopes.
|
|
35
|
+
* @param logger The logger instance to use.
|
|
36
|
+
* @returns A promise that resolves to a boolean indicating whether the user has consented to the scopes.
|
|
37
|
+
*/
|
|
38
|
+
declare const hasConsentForScopes: (msalInstance: Pick<msal.IPublicClientApplication, "acquireTokenSilent">, scopes: string[], logger: ILogger) => Promise<boolean>;
|
|
29
39
|
|
|
30
|
-
export { acquireMsalAccessToken, buildMsalConfig, getStandardExecSilentRequest };
|
|
40
|
+
export { acquireMsalAccessToken, buildMsalConfig, getStandardExecSilentRequest, hasConsentForScopes };
|
package/dist/msal-utils.js
CHANGED
|
@@ -78,9 +78,23 @@ const acquireMsalAccessToken = async (msalInstance, request, logger) => {
|
|
|
78
78
|
throw ex;
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
+
const hasConsentForScopes = async (msalInstance, scopes, logger) => {
|
|
82
|
+
try {
|
|
83
|
+
await msalInstance.acquireTokenSilent({
|
|
84
|
+
scopes
|
|
85
|
+
});
|
|
86
|
+
return true;
|
|
87
|
+
} catch (ex) {
|
|
88
|
+
const acquireTokenPopupNeeded = ex instanceof msal__namespace.InteractionRequiredAuthError;
|
|
89
|
+
const logLevel = acquireTokenPopupNeeded ? "debug" : "error";
|
|
90
|
+
logger.log(logLevel, "hasConsentForScopes failed", ex);
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
81
94
|
|
|
82
95
|
exports.acquireMsalAccessToken = acquireMsalAccessToken;
|
|
83
96
|
exports.buildMsalConfig = buildMsalConfig;
|
|
84
97
|
exports.getStandardExecSilentRequest = getStandardExecSilentRequest;
|
|
98
|
+
exports.hasConsentForScopes = hasConsentForScopes;
|
|
85
99
|
//# sourceMappingURL=msal-utils.js.map
|
|
86
100
|
//# sourceMappingURL=msal-utils.js.map
|
package/dist/msal-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/msal-utils.ts"],"names":["msal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/msal-utils.ts"],"names":["msal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,4BAA+B,GAAA,CAC1C,cACA,EAAA,UAAA,GAAa,gBACW,MAAA;AAAA,EACxB,QAAQ,CAAC,CAAA,MAAA,EAAS,cAAc,CAAA,CAAA,EAAI,UAAU,CAAE,CAAA;AAClD,CAAA;AASa,MAAA,eAAA,GAAkB,CAAC,QAAA,EAAkB,MAAwC,KAAA;AACxF,EAAO,OAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,QAAA;AAAA,MACA,SAAW,EAAA,EAAA;AAAA,MACX,WAAa,EAAA,GAAA;AAAA,MACb,qBAAuB,EAAA;AAAA,KACzB;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,aAAe,EAAA;AAAA,QACb,iBAAmB,EAAA,KAAA;AAAA,QACnB,cAAA,EAAgB,CAAC,KAAA,EAAO,OAAY,KAAA;AAClC,UAAA,QAAQ,KAAO;AAAA,YACb,KAAKA,gBAAK,QAAS,CAAA,KAAA;AACjB,cAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AACpB,cAAA;AAAA,YACF,KAAKA,gBAAK,QAAS,CAAA,IAAA;AACjB,cAAA,MAAA,CAAO,KAAK,OAAO,CAAA;AACnB,cAAA;AAAA,YACF,KAAKA,gBAAK,QAAS,CAAA,OAAA;AACjB,cAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AACpB,cAAA;AAAA,YACF,KAAKA,gBAAK,QAAS,CAAA,OAAA;AACjB,cAAA,MAAA,CAAO,KAAK,OAAO,CAAA;AACnB,cAAA;AAAA,YACF;AACE,cAAA;AAAA;AACJ;AACF;AACF;AACF,GACF;AACF;AAWO,MAAM,sBAAyB,GAAA,OACpC,YACA,EAAA,OAAA,EACA,MACoB,KAAA;AACpB,EAAI,IAAA;AACF,IAAA,MAAM,QAAW,GAAA,MAAM,YAAa,CAAA,kBAAA,CAAmB,OAAO,CAAA;AAC9D,IAAA,OAAO,QAAS,CAAA,WAAA;AAAA,WACT,EAAI,EAAA;AAGX,IAAM,MAAA,oBAAA,GAAuB,cAAcA,eAAK,CAAA,4BAAA;AAChD,IAAA,IAAI,CAAC,oBAAsB,EAAA;AACzB,MAAO,MAAA,CAAA,KAAA,CAAM,6BAA6B,EAAE,CAAA;AAC5C,MAAM,MAAA,EAAA;AAAA;AACR;AAGF,EAAI,IAAA;AACF,IAAA,MAAA,CAAO,MAAM,qDAAqD,CAAA;AAClE,IAAA,MAAM,QAAW,GAAA,MAAM,YAAa,CAAA,iBAAA,CAAkB,OAAO,CAAA;AAC7D,IAAA,OAAO,QAAS,CAAA,WAAA;AAAA,WACT,EAAI,EAAA;AACX,IAAO,MAAA,CAAA,KAAA,CAAM,4BAA4B,EAAE,CAAA;AAC3C,IAAM,MAAA,EAAA;AAAA;AAEV;AAWO,MAAM,mBAAsB,GAAA,OACjC,YACA,EAAA,MAAA,EACA,MACqB,KAAA;AACrB,EAAI,IAAA;AACF,IAAA,MAAM,aAAa,kBAAmB,CAAA;AAAA,MACpC;AAAA,KACD,CAAA;AAED,IAAO,OAAA,IAAA;AAAA,WACA,EAAI,EAAA;AAGX,IAAM,MAAA,uBAAA,GAA0B,cAAcA,eAAK,CAAA,4BAAA;AACnD,IAAM,MAAA,QAAA,GAAW,0BAA0B,OAAU,GAAA,OAAA;AACrD,IAAO,MAAA,CAAA,GAAA,CAAI,QAAU,EAAA,4BAAA,EAA8B,EAAE,CAAA;AACrD,IAAO,OAAA,KAAA;AAAA;AAEX","file":"msal-utils.js","sourcesContent":["import * as msal from '@azure/msal-browser';\r\n\r\nimport { ILogger } from '@microsoft/teams.common/logging';\r\n\r\n/**\r\n * Gets a silent request used to acquire an Entra access token for invoking remote functions on behalf of a user.\r\n * @param remoteClientId The client ID of the remote application.\r\n * @param permission The permission to request. Defaults to 'access_as_user'.\r\n * @returns\r\n */\r\nexport const getStandardExecSilentRequest = (\r\n remoteClientId: string,\r\n permission = 'access_as_user'\r\n): msal.SilentRequest => ({\r\n scopes: [`api://${remoteClientId}/${permission}`],\r\n});\r\n\r\n/**\r\n * Builds a default MSAL configuration for the specified client ID.\r\n * @param clientId The application client ID.\r\n * @param logger The logger instance to use for logging MSAL events.\r\n * @returns A default MSAL configuration object suitable for creating a\r\n * @see{IPublicClientApplication} instance for a multi-tenant application.\r\n */\r\nexport const buildMsalConfig = (clientId: string, logger: ILogger): msal.Configuration => {\r\n return {\r\n auth: {\r\n clientId,\r\n authority: '',\r\n redirectUri: '/',\r\n postLogoutRedirectUri: '/',\r\n },\r\n system: {\r\n loggerOptions: {\r\n piiLoggingEnabled: false,\r\n loggerCallback: (level, message) => {\r\n switch (level) {\r\n case msal.LogLevel.Error:\r\n logger.error(message);\r\n return;\r\n case msal.LogLevel.Info:\r\n logger.info(message);\r\n return;\r\n case msal.LogLevel.Verbose:\r\n logger.debug(message);\r\n return;\r\n case msal.LogLevel.Warning:\r\n logger.warn(message);\r\n return;\r\n default:\r\n return;\r\n }\r\n },\r\n },\r\n },\r\n };\r\n};\r\n\r\n/**\r\n * Acquires an access token using MSAL. It first attempts to acquire the token silently,\r\n * and if that fails with an InteractionRequiredAuthError, it falls back to acquiring the\r\n * token via a popup.\r\n * @param msalInstance The MSAL instance to use for acquiring the token.\r\n * @param request The token request object.\r\n * @param logger The logger instance to use for logging errors.\r\n * @returns A promise that resolves to the acquired access token.\r\n */\r\nexport const acquireMsalAccessToken = async (\r\n msalInstance: Pick<msal.IPublicClientApplication, 'acquireTokenSilent' | 'acquireTokenPopup'>,\r\n request: msal.SilentRequest,\r\n logger: ILogger\r\n): Promise<string> => {\r\n try {\r\n const response = await msalInstance.acquireTokenSilent(request);\r\n return response.accessToken;\r\n } catch (ex) {\r\n // InteractionRequiredAuthError indicates that the user may not have consented to the requested\r\n // scope yet -- for this, we can fall back on acquireTokenPopup instead.\r\n const tryAcquireTokenPopup = ex instanceof msal.InteractionRequiredAuthError;\r\n if (!tryAcquireTokenPopup) {\r\n logger.error('acquireTokenSilent failed', ex);\r\n throw ex;\r\n }\r\n }\r\n\r\n try {\r\n logger.debug('acquireTokenSilent failed; trying acquireTokenPopup');\r\n const response = await msalInstance.acquireTokenPopup(request);\r\n return response.accessToken;\r\n } catch (ex) {\r\n logger.error('acquireTokenPopup failed', ex);\r\n throw ex;\r\n }\r\n};\r\n\r\n/**\r\n * Tests whether the user has consented to the specified scopes by attempting to acquire a token silently.\r\n * If the token acquisition is successful, it indicates that the user has consented to the scopes.\r\n * If it fails, it indicates that the user has not consented to the scopes.\r\n * @param msalInstance The MSAL instance to use.\r\n * @param scopes The scopes to check consent for. The scopes should not mix resources, or mix default scope with non-default scopes.\r\n * @param logger The logger instance to use.\r\n * @returns A promise that resolves to a boolean indicating whether the user has consented to the scopes.\r\n */\r\nexport const hasConsentForScopes = async (\r\n msalInstance: Pick<msal.IPublicClientApplication, 'acquireTokenSilent'>,\r\n scopes: string[],\r\n logger: ILogger\r\n): Promise<boolean> => {\r\n try {\r\n await msalInstance.acquireTokenSilent({\r\n scopes,\r\n });\r\n\r\n return true;\r\n } catch (ex) {\r\n // InteractionRequiredAuthError indicates that the user has not consented to the requested scope yet.\r\n // This is not an error, but may be interesting when trouble shooting.\r\n const acquireTokenPopupNeeded = ex instanceof msal.InteractionRequiredAuthError;\r\n const logLevel = acquireTokenPopupNeeded ? 'debug' : 'error';\r\n logger.log(logLevel, 'hasConsentForScopes failed', ex);\r\n return false;\r\n }\r\n};\r\n"]}
|
package/dist/msal-utils.mjs
CHANGED
|
@@ -56,7 +56,20 @@ const acquireMsalAccessToken = async (msalInstance, request, logger) => {
|
|
|
56
56
|
throw ex;
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
+
const hasConsentForScopes = async (msalInstance, scopes, logger) => {
|
|
60
|
+
try {
|
|
61
|
+
await msalInstance.acquireTokenSilent({
|
|
62
|
+
scopes
|
|
63
|
+
});
|
|
64
|
+
return true;
|
|
65
|
+
} catch (ex) {
|
|
66
|
+
const acquireTokenPopupNeeded = ex instanceof msal.InteractionRequiredAuthError;
|
|
67
|
+
const logLevel = acquireTokenPopupNeeded ? "debug" : "error";
|
|
68
|
+
logger.log(logLevel, "hasConsentForScopes failed", ex);
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
59
72
|
|
|
60
|
-
export { acquireMsalAccessToken, buildMsalConfig, getStandardExecSilentRequest };
|
|
73
|
+
export { acquireMsalAccessToken, buildMsalConfig, getStandardExecSilentRequest, hasConsentForScopes };
|
|
61
74
|
//# sourceMappingURL=msal-utils.mjs.map
|
|
62
75
|
//# sourceMappingURL=msal-utils.mjs.map
|
package/dist/msal-utils.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/msal-utils.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"sources":["../src/msal-utils.ts"],"names":[],"mappings":";;AAUO,MAAM,4BAA+B,GAAA,CAC1C,cACA,EAAA,UAAA,GAAa,gBACW,MAAA;AAAA,EACxB,QAAQ,CAAC,CAAA,MAAA,EAAS,cAAc,CAAA,CAAA,EAAI,UAAU,CAAE,CAAA;AAClD,CAAA;AASa,MAAA,eAAA,GAAkB,CAAC,QAAA,EAAkB,MAAwC,KAAA;AACxF,EAAO,OAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,QAAA;AAAA,MACA,SAAW,EAAA,EAAA;AAAA,MACX,WAAa,EAAA,GAAA;AAAA,MACb,qBAAuB,EAAA;AAAA,KACzB;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,aAAe,EAAA;AAAA,QACb,iBAAmB,EAAA,KAAA;AAAA,QACnB,cAAA,EAAgB,CAAC,KAAA,EAAO,OAAY,KAAA;AAClC,UAAA,QAAQ,KAAO;AAAA,YACb,KAAK,KAAK,QAAS,CAAA,KAAA;AACjB,cAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AACpB,cAAA;AAAA,YACF,KAAK,KAAK,QAAS,CAAA,IAAA;AACjB,cAAA,MAAA,CAAO,KAAK,OAAO,CAAA;AACnB,cAAA;AAAA,YACF,KAAK,KAAK,QAAS,CAAA,OAAA;AACjB,cAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AACpB,cAAA;AAAA,YACF,KAAK,KAAK,QAAS,CAAA,OAAA;AACjB,cAAA,MAAA,CAAO,KAAK,OAAO,CAAA;AACnB,cAAA;AAAA,YACF;AACE,cAAA;AAAA;AACJ;AACF;AACF;AACF,GACF;AACF;AAWO,MAAM,sBAAyB,GAAA,OACpC,YACA,EAAA,OAAA,EACA,MACoB,KAAA;AACpB,EAAI,IAAA;AACF,IAAA,MAAM,QAAW,GAAA,MAAM,YAAa,CAAA,kBAAA,CAAmB,OAAO,CAAA;AAC9D,IAAA,OAAO,QAAS,CAAA,WAAA;AAAA,WACT,EAAI,EAAA;AAGX,IAAM,MAAA,oBAAA,GAAuB,cAAc,IAAK,CAAA,4BAAA;AAChD,IAAA,IAAI,CAAC,oBAAsB,EAAA;AACzB,MAAO,MAAA,CAAA,KAAA,CAAM,6BAA6B,EAAE,CAAA;AAC5C,MAAM,MAAA,EAAA;AAAA;AACR;AAGF,EAAI,IAAA;AACF,IAAA,MAAA,CAAO,MAAM,qDAAqD,CAAA;AAClE,IAAA,MAAM,QAAW,GAAA,MAAM,YAAa,CAAA,iBAAA,CAAkB,OAAO,CAAA;AAC7D,IAAA,OAAO,QAAS,CAAA,WAAA;AAAA,WACT,EAAI,EAAA;AACX,IAAO,MAAA,CAAA,KAAA,CAAM,4BAA4B,EAAE,CAAA;AAC3C,IAAM,MAAA,EAAA;AAAA;AAEV;AAWO,MAAM,mBAAsB,GAAA,OACjC,YACA,EAAA,MAAA,EACA,MACqB,KAAA;AACrB,EAAI,IAAA;AACF,IAAA,MAAM,aAAa,kBAAmB,CAAA;AAAA,MACpC;AAAA,KACD,CAAA;AAED,IAAO,OAAA,IAAA;AAAA,WACA,EAAI,EAAA;AAGX,IAAM,MAAA,uBAAA,GAA0B,cAAc,IAAK,CAAA,4BAAA;AACnD,IAAM,MAAA,QAAA,GAAW,0BAA0B,OAAU,GAAA,OAAA;AACrD,IAAO,MAAA,CAAA,GAAA,CAAI,QAAU,EAAA,4BAAA,EAA8B,EAAE,CAAA;AACrD,IAAO,OAAA,KAAA;AAAA;AAEX","file":"msal-utils.mjs","sourcesContent":["import * as msal from '@azure/msal-browser';\r\n\r\nimport { ILogger } from '@microsoft/teams.common/logging';\r\n\r\n/**\r\n * Gets a silent request used to acquire an Entra access token for invoking remote functions on behalf of a user.\r\n * @param remoteClientId The client ID of the remote application.\r\n * @param permission The permission to request. Defaults to 'access_as_user'.\r\n * @returns\r\n */\r\nexport const getStandardExecSilentRequest = (\r\n remoteClientId: string,\r\n permission = 'access_as_user'\r\n): msal.SilentRequest => ({\r\n scopes: [`api://${remoteClientId}/${permission}`],\r\n});\r\n\r\n/**\r\n * Builds a default MSAL configuration for the specified client ID.\r\n * @param clientId The application client ID.\r\n * @param logger The logger instance to use for logging MSAL events.\r\n * @returns A default MSAL configuration object suitable for creating a\r\n * @see{IPublicClientApplication} instance for a multi-tenant application.\r\n */\r\nexport const buildMsalConfig = (clientId: string, logger: ILogger): msal.Configuration => {\r\n return {\r\n auth: {\r\n clientId,\r\n authority: '',\r\n redirectUri: '/',\r\n postLogoutRedirectUri: '/',\r\n },\r\n system: {\r\n loggerOptions: {\r\n piiLoggingEnabled: false,\r\n loggerCallback: (level, message) => {\r\n switch (level) {\r\n case msal.LogLevel.Error:\r\n logger.error(message);\r\n return;\r\n case msal.LogLevel.Info:\r\n logger.info(message);\r\n return;\r\n case msal.LogLevel.Verbose:\r\n logger.debug(message);\r\n return;\r\n case msal.LogLevel.Warning:\r\n logger.warn(message);\r\n return;\r\n default:\r\n return;\r\n }\r\n },\r\n },\r\n },\r\n };\r\n};\r\n\r\n/**\r\n * Acquires an access token using MSAL. It first attempts to acquire the token silently,\r\n * and if that fails with an InteractionRequiredAuthError, it falls back to acquiring the\r\n * token via a popup.\r\n * @param msalInstance The MSAL instance to use for acquiring the token.\r\n * @param request The token request object.\r\n * @param logger The logger instance to use for logging errors.\r\n * @returns A promise that resolves to the acquired access token.\r\n */\r\nexport const acquireMsalAccessToken = async (\r\n msalInstance: Pick<msal.IPublicClientApplication, 'acquireTokenSilent' | 'acquireTokenPopup'>,\r\n request: msal.SilentRequest,\r\n logger: ILogger\r\n): Promise<string> => {\r\n try {\r\n const response = await msalInstance.acquireTokenSilent(request);\r\n return response.accessToken;\r\n } catch (ex) {\r\n // InteractionRequiredAuthError indicates that the user may not have consented to the requested\r\n // scope yet -- for this, we can fall back on acquireTokenPopup instead.\r\n const tryAcquireTokenPopup = ex instanceof msal.InteractionRequiredAuthError;\r\n if (!tryAcquireTokenPopup) {\r\n logger.error('acquireTokenSilent failed', ex);\r\n throw ex;\r\n }\r\n }\r\n\r\n try {\r\n logger.debug('acquireTokenSilent failed; trying acquireTokenPopup');\r\n const response = await msalInstance.acquireTokenPopup(request);\r\n return response.accessToken;\r\n } catch (ex) {\r\n logger.error('acquireTokenPopup failed', ex);\r\n throw ex;\r\n }\r\n};\r\n\r\n/**\r\n * Tests whether the user has consented to the specified scopes by attempting to acquire a token silently.\r\n * If the token acquisition is successful, it indicates that the user has consented to the scopes.\r\n * If it fails, it indicates that the user has not consented to the scopes.\r\n * @param msalInstance The MSAL instance to use.\r\n * @param scopes The scopes to check consent for. The scopes should not mix resources, or mix default scope with non-default scopes.\r\n * @param logger The logger instance to use.\r\n * @returns A promise that resolves to a boolean indicating whether the user has consented to the scopes.\r\n */\r\nexport const hasConsentForScopes = async (\r\n msalInstance: Pick<msal.IPublicClientApplication, 'acquireTokenSilent'>,\r\n scopes: string[],\r\n logger: ILogger\r\n): Promise<boolean> => {\r\n try {\r\n await msalInstance.acquireTokenSilent({\r\n scopes,\r\n });\r\n\r\n return true;\r\n } catch (ex) {\r\n // InteractionRequiredAuthError indicates that the user has not consented to the requested scope yet.\r\n // This is not an error, but may be interesting when trouble shooting.\r\n const acquireTokenPopupNeeded = ex instanceof msal.InteractionRequiredAuthError;\r\n const logLevel = acquireTokenPopupNeeded ? 'debug' : 'error';\r\n logger.log(logLevel, 'hasConsentForScopes failed', ex);\r\n return false;\r\n }\r\n};\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teams.client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"lint": "npx eslint",
|
|
35
35
|
"lint:fix": "npx eslint --fix",
|
|
36
36
|
"build": "npx tsup",
|
|
37
|
-
"test": "npx jest"
|
|
37
|
+
"test": "npx jest",
|
|
38
|
+
"fmt": "npx prettier --write \"**/*.{js,ts,tsx,md,json}\""
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"@azure/msal-browser": "^4.9.1",
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"peerDependencies": {
|
|
44
45
|
"@microsoft/teams.api": "*",
|
|
45
46
|
"@microsoft/teams.common": "*",
|
|
47
|
+
"@microsoft/teams.graph": "*",
|
|
46
48
|
"@microsoft/teams-js": "^2.35.0"
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HostName, HostClientType } from '../window/types/host.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents information about the application's host.
|
|
5
|
-
*/
|
|
6
|
-
type AppHostContext = {
|
|
7
|
-
/**
|
|
8
|
-
* Identifies which host is running your app
|
|
9
|
-
*/
|
|
10
|
-
name: HostName;
|
|
11
|
-
/**
|
|
12
|
-
* The client type on which the host is running
|
|
13
|
-
*/
|
|
14
|
-
clientType: HostClientType;
|
|
15
|
-
/**
|
|
16
|
-
* Unique ID for the current Host session for use in correlating telemetry data.
|
|
17
|
-
*/
|
|
18
|
-
sessionId: string;
|
|
19
|
-
/**
|
|
20
|
-
* Current ring ID
|
|
21
|
-
*/
|
|
22
|
-
ringId?: string;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type { AppHostContext };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HostName, HostClientType } from '../window/types/host.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents information about the application's host.
|
|
5
|
-
*/
|
|
6
|
-
type AppHostContext = {
|
|
7
|
-
/**
|
|
8
|
-
* Identifies which host is running your app
|
|
9
|
-
*/
|
|
10
|
-
name: HostName;
|
|
11
|
-
/**
|
|
12
|
-
* The client type on which the host is running
|
|
13
|
-
*/
|
|
14
|
-
clientType: HostClientType;
|
|
15
|
-
/**
|
|
16
|
-
* Unique ID for the current Host session for use in correlating telemetry data.
|
|
17
|
-
*/
|
|
18
|
-
sessionId: string;
|
|
19
|
-
/**
|
|
20
|
-
* Current ring ID
|
|
21
|
-
*/
|
|
22
|
-
ringId?: string;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type { AppHostContext };
|
package/dist/context/app-host.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"app-host.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"app-host.mjs"}
|
package/dist/context/app.d.mts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { FileOpenPreference } from '../window/types/file-open-preference.mjs';
|
|
2
|
-
import { Locale } from '../window/types/locale.mjs';
|
|
3
|
-
import { Theme } from '../window/types/theme.mjs';
|
|
4
|
-
import { AppHostContext } from './app-host.mjs';
|
|
5
|
-
import '../window/types/host.mjs';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Represents application information.
|
|
9
|
-
*/
|
|
10
|
-
type AppContext = {
|
|
11
|
-
/**
|
|
12
|
-
* This ID is the unique identifier assigned to the app after deployment and is critical for ensuring the correct app instance is recognized across hosts.
|
|
13
|
-
*/
|
|
14
|
-
id?: string;
|
|
15
|
-
/**
|
|
16
|
-
* ID for the current visible app which is different for across cached sessions. Used for correlating telemetry data.
|
|
17
|
-
*/
|
|
18
|
-
launchId?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Unique ID for the current session for use in correlating telemetry data. A session corresponds to the lifecycle of an app. A new session begins upon the creation of a webview (on Teams mobile) or iframe (in Teams desktop) hosting the app, and ends when it is destroyed.
|
|
21
|
-
*/
|
|
22
|
-
sessionId: string;
|
|
23
|
-
/**
|
|
24
|
-
* The current locale that the user has configured for the app formatted as
|
|
25
|
-
* languageId-countryId (for example, en-us).
|
|
26
|
-
*/
|
|
27
|
-
locale: string;
|
|
28
|
-
/**
|
|
29
|
-
* The current UI theme of the host. Possible values: "default", "dark", "contrast" or "glass".
|
|
30
|
-
*/
|
|
31
|
-
theme: Theme;
|
|
32
|
-
/**
|
|
33
|
-
* Info of the host
|
|
34
|
-
*/
|
|
35
|
-
host: AppHostContext;
|
|
36
|
-
/**
|
|
37
|
-
* More detailed locale info from the user's OS if available. Can be used together with
|
|
38
|
-
* the @microsoft/globe NPM package to ensure your app respects the user's OS date and
|
|
39
|
-
* time format configuration
|
|
40
|
-
*/
|
|
41
|
-
osLocaleInfo?: Locale;
|
|
42
|
-
/**
|
|
43
|
-
* Personal app icon y coordinate position
|
|
44
|
-
*/
|
|
45
|
-
iconPositionVertical?: number;
|
|
46
|
-
/**
|
|
47
|
-
* Time when the user clicked on the tab using the date.
|
|
48
|
-
*/
|
|
49
|
-
userClickTime?: number;
|
|
50
|
-
/**
|
|
51
|
-
* Time when the user click on the app by using the performance timer API. Useful for measuring elapsed time accurately.
|
|
52
|
-
*/
|
|
53
|
-
userClickTimeV2?: number;
|
|
54
|
-
/**
|
|
55
|
-
* The ID of the parent message from which this task module was launched.
|
|
56
|
-
* This is only available in task modules launched from bot cards.
|
|
57
|
-
*/
|
|
58
|
-
parentMessageId?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Where the user prefers the file to be opened from by default during file open
|
|
61
|
-
*/
|
|
62
|
-
userFileOpenPreference?: FileOpenPreference;
|
|
63
|
-
/**
|
|
64
|
-
* The version of the manifest that the app is running.
|
|
65
|
-
*/
|
|
66
|
-
manifestVersion?: string;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export type { AppContext };
|
package/dist/context/app.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { FileOpenPreference } from '../window/types/file-open-preference.js';
|
|
2
|
-
import { Locale } from '../window/types/locale.js';
|
|
3
|
-
import { Theme } from '../window/types/theme.js';
|
|
4
|
-
import { AppHostContext } from './app-host.js';
|
|
5
|
-
import '../window/types/host.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Represents application information.
|
|
9
|
-
*/
|
|
10
|
-
type AppContext = {
|
|
11
|
-
/**
|
|
12
|
-
* This ID is the unique identifier assigned to the app after deployment and is critical for ensuring the correct app instance is recognized across hosts.
|
|
13
|
-
*/
|
|
14
|
-
id?: string;
|
|
15
|
-
/**
|
|
16
|
-
* ID for the current visible app which is different for across cached sessions. Used for correlating telemetry data.
|
|
17
|
-
*/
|
|
18
|
-
launchId?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Unique ID for the current session for use in correlating telemetry data. A session corresponds to the lifecycle of an app. A new session begins upon the creation of a webview (on Teams mobile) or iframe (in Teams desktop) hosting the app, and ends when it is destroyed.
|
|
21
|
-
*/
|
|
22
|
-
sessionId: string;
|
|
23
|
-
/**
|
|
24
|
-
* The current locale that the user has configured for the app formatted as
|
|
25
|
-
* languageId-countryId (for example, en-us).
|
|
26
|
-
*/
|
|
27
|
-
locale: string;
|
|
28
|
-
/**
|
|
29
|
-
* The current UI theme of the host. Possible values: "default", "dark", "contrast" or "glass".
|
|
30
|
-
*/
|
|
31
|
-
theme: Theme;
|
|
32
|
-
/**
|
|
33
|
-
* Info of the host
|
|
34
|
-
*/
|
|
35
|
-
host: AppHostContext;
|
|
36
|
-
/**
|
|
37
|
-
* More detailed locale info from the user's OS if available. Can be used together with
|
|
38
|
-
* the @microsoft/globe NPM package to ensure your app respects the user's OS date and
|
|
39
|
-
* time format configuration
|
|
40
|
-
*/
|
|
41
|
-
osLocaleInfo?: Locale;
|
|
42
|
-
/**
|
|
43
|
-
* Personal app icon y coordinate position
|
|
44
|
-
*/
|
|
45
|
-
iconPositionVertical?: number;
|
|
46
|
-
/**
|
|
47
|
-
* Time when the user clicked on the tab using the date.
|
|
48
|
-
*/
|
|
49
|
-
userClickTime?: number;
|
|
50
|
-
/**
|
|
51
|
-
* Time when the user click on the app by using the performance timer API. Useful for measuring elapsed time accurately.
|
|
52
|
-
*/
|
|
53
|
-
userClickTimeV2?: number;
|
|
54
|
-
/**
|
|
55
|
-
* The ID of the parent message from which this task module was launched.
|
|
56
|
-
* This is only available in task modules launched from bot cards.
|
|
57
|
-
*/
|
|
58
|
-
parentMessageId?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Where the user prefers the file to be opened from by default during file open
|
|
61
|
-
*/
|
|
62
|
-
userFileOpenPreference?: FileOpenPreference;
|
|
63
|
-
/**
|
|
64
|
-
* The version of the manifest that the app is running.
|
|
65
|
-
*/
|
|
66
|
-
manifestVersion?: string;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export type { AppContext };
|
package/dist/context/app.js
DELETED
package/dist/context/app.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"app.js"}
|
package/dist/context/app.mjs
DELETED
package/dist/context/app.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"app.mjs"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ChannelType } from '../window/types/channel-type.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents Channel information.
|
|
5
|
-
*/
|
|
6
|
-
type ChannelContext = {
|
|
7
|
-
/**
|
|
8
|
-
* The Microsoft Teams ID for the channel with which the content is associated.
|
|
9
|
-
*/
|
|
10
|
-
id: string;
|
|
11
|
-
/**
|
|
12
|
-
* The name for the channel with which the content is associated.
|
|
13
|
-
*/
|
|
14
|
-
displayName?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The relative path to the SharePoint folder associated with the channel.
|
|
17
|
-
*/
|
|
18
|
-
relativeUrl?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The type of the channel with which the content is associated.
|
|
21
|
-
*/
|
|
22
|
-
membershipType?: ChannelType;
|
|
23
|
-
/**
|
|
24
|
-
* The OneNote section ID that is linked to the channel.
|
|
25
|
-
*/
|
|
26
|
-
defaultOneNoteSectionId?: string;
|
|
27
|
-
/**
|
|
28
|
-
* The tenant ID of the team which owns the channel.
|
|
29
|
-
*/
|
|
30
|
-
ownerTenantId?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The Microsoft Entra group ID of the team which owns the channel.
|
|
33
|
-
*/
|
|
34
|
-
ownerGroupId?: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export type { ChannelContext };
|