@microsoft/teams.client 0.2.11 → 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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"client-error.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"client-error.mjs"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { WindowClient } from '../window-client.mjs';
|
|
2
|
-
import '@microsoft/teams.common';
|
|
3
|
-
import '../message.mjs';
|
|
4
|
-
import '../client-error.mjs';
|
|
5
|
-
|
|
6
|
-
declare class AppEntityClient {
|
|
7
|
-
readonly window: WindowClient;
|
|
8
|
-
constructor(client: WindowClient);
|
|
9
|
-
select(threadId: string, categories: string[], subEntityId: string): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { AppEntityClient };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { WindowClient } from '../window-client.js';
|
|
2
|
-
import '@microsoft/teams.common';
|
|
3
|
-
import '../message.js';
|
|
4
|
-
import '../client-error.js';
|
|
5
|
-
|
|
6
|
-
declare class AppEntityClient {
|
|
7
|
-
readonly window: WindowClient;
|
|
8
|
-
constructor(client: WindowClient);
|
|
9
|
-
select(threadId: string, categories: string[], subEntityId: string): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { AppEntityClient };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class AppEntityClient {
|
|
4
|
-
window;
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.window = client;
|
|
7
|
-
}
|
|
8
|
-
async select(threadId, categories, subEntityId) {
|
|
9
|
-
await this.window.send("appEntity.selectAppEntity", threadId, categories, subEntityId);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
exports.AppEntityClient = AppEntityClient;
|
|
14
|
-
//# sourceMappingURL=app-entity.js.map
|
|
15
|
-
//# sourceMappingURL=app-entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/app-entity.ts"],"names":[],"mappings":";;AAEO,MAAM,eAAgB,CAAA;AAAA,EAClB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,MAAA,CAAO,QAAkB,EAAA,UAAA,EAAsB,WAAqB,EAAA;AACxE,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA,CAAK,2BAA6B,EAAA,QAAA,EAAU,YAAY,WAAW,CAAA;AAAA;AAEzF","file":"app-entity.js","sourcesContent":["import { WindowClient } from '../window-client';\n\nexport class AppEntityClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async select(threadId: string, categories: string[], subEntityId: string) {\n await this.window.send('appEntity.selectAppEntity', threadId, categories, subEntityId);\n }\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
class AppEntityClient {
|
|
2
|
-
window;
|
|
3
|
-
constructor(client) {
|
|
4
|
-
this.window = client;
|
|
5
|
-
}
|
|
6
|
-
async select(threadId, categories, subEntityId) {
|
|
7
|
-
await this.window.send("appEntity.selectAppEntity", threadId, categories, subEntityId);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { AppEntityClient };
|
|
12
|
-
//# sourceMappingURL=app-entity.mjs.map
|
|
13
|
-
//# sourceMappingURL=app-entity.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/app-entity.ts"],"names":[],"mappings":"AAEO,MAAM,eAAgB,CAAA;AAAA,EAClB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,MAAA,CAAO,QAAkB,EAAA,UAAA,EAAsB,WAAqB,EAAA;AACxE,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA,CAAK,2BAA6B,EAAA,QAAA,EAAU,YAAY,WAAW,CAAA;AAAA;AAEzF","file":"app-entity.mjs","sourcesContent":["import { WindowClient } from '../window-client';\n\nexport class AppEntityClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async select(threadId: string, categories: string[], subEntityId: string) {\n await this.window.send('appEntity.selectAppEntity', threadId, categories, subEntityId);\n }\n}\n"]}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { WindowClient } from '../window-client.mjs';
|
|
2
|
-
import '@microsoft/teams.common';
|
|
3
|
-
import '../message.mjs';
|
|
4
|
-
import '../client-error.mjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Describes errors that caused app initialization to fail
|
|
8
|
-
*/
|
|
9
|
-
type FailedReason = 'AuthFailed' | 'Timeout' | 'Other';
|
|
10
|
-
/**
|
|
11
|
-
* Describes expected errors that occurred during an otherwise successful
|
|
12
|
-
* app initialization
|
|
13
|
-
*/
|
|
14
|
-
type ExpectedFailureReason = 'PermissionError' | 'NotFound' | 'Throttling' | 'Offline' | 'Other';
|
|
15
|
-
/**
|
|
16
|
-
* Represents the failed request sent during a failed app initialization.
|
|
17
|
-
*/
|
|
18
|
-
type FailedParams = {
|
|
19
|
-
/**
|
|
20
|
-
* The reason for the failure
|
|
21
|
-
*/
|
|
22
|
-
reason: FailedReason;
|
|
23
|
-
/**
|
|
24
|
-
* This property is currently unused.
|
|
25
|
-
*/
|
|
26
|
-
message?: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Represents the failure request sent during an erroneous app initialization.
|
|
30
|
-
*/
|
|
31
|
-
type ExpectedFailureParams = {
|
|
32
|
-
/**
|
|
33
|
-
* The reason for the failure
|
|
34
|
-
*/
|
|
35
|
-
reason: ExpectedFailureReason;
|
|
36
|
-
/**
|
|
37
|
-
* A message that describes the failure
|
|
38
|
-
*/
|
|
39
|
-
message?: string;
|
|
40
|
-
};
|
|
41
|
-
declare class AppInitializationClient {
|
|
42
|
-
readonly window: WindowClient;
|
|
43
|
-
constructor(client: WindowClient);
|
|
44
|
-
loaded(): Promise<void>;
|
|
45
|
-
success(): Promise<void>;
|
|
46
|
-
failure(params: FailedParams): Promise<void>;
|
|
47
|
-
expectedFailure(params: ExpectedFailureParams): Promise<void>;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export { AppInitializationClient, type ExpectedFailureParams, type ExpectedFailureReason, type FailedParams, type FailedReason };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { WindowClient } from '../window-client.js';
|
|
2
|
-
import '@microsoft/teams.common';
|
|
3
|
-
import '../message.js';
|
|
4
|
-
import '../client-error.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Describes errors that caused app initialization to fail
|
|
8
|
-
*/
|
|
9
|
-
type FailedReason = 'AuthFailed' | 'Timeout' | 'Other';
|
|
10
|
-
/**
|
|
11
|
-
* Describes expected errors that occurred during an otherwise successful
|
|
12
|
-
* app initialization
|
|
13
|
-
*/
|
|
14
|
-
type ExpectedFailureReason = 'PermissionError' | 'NotFound' | 'Throttling' | 'Offline' | 'Other';
|
|
15
|
-
/**
|
|
16
|
-
* Represents the failed request sent during a failed app initialization.
|
|
17
|
-
*/
|
|
18
|
-
type FailedParams = {
|
|
19
|
-
/**
|
|
20
|
-
* The reason for the failure
|
|
21
|
-
*/
|
|
22
|
-
reason: FailedReason;
|
|
23
|
-
/**
|
|
24
|
-
* This property is currently unused.
|
|
25
|
-
*/
|
|
26
|
-
message?: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Represents the failure request sent during an erroneous app initialization.
|
|
30
|
-
*/
|
|
31
|
-
type ExpectedFailureParams = {
|
|
32
|
-
/**
|
|
33
|
-
* The reason for the failure
|
|
34
|
-
*/
|
|
35
|
-
reason: ExpectedFailureReason;
|
|
36
|
-
/**
|
|
37
|
-
* A message that describes the failure
|
|
38
|
-
*/
|
|
39
|
-
message?: string;
|
|
40
|
-
};
|
|
41
|
-
declare class AppInitializationClient {
|
|
42
|
-
readonly window: WindowClient;
|
|
43
|
-
constructor(client: WindowClient);
|
|
44
|
-
loaded(): Promise<void>;
|
|
45
|
-
success(): Promise<void>;
|
|
46
|
-
failure(params: FailedParams): Promise<void>;
|
|
47
|
-
expectedFailure(params: ExpectedFailureParams): Promise<void>;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export { AppInitializationClient, type ExpectedFailureParams, type ExpectedFailureReason, type FailedParams, type FailedReason };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class AppInitializationClient {
|
|
4
|
-
window;
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.window = client;
|
|
7
|
-
}
|
|
8
|
-
async loaded() {
|
|
9
|
-
await this.window.send("appInitialization.appLoaded");
|
|
10
|
-
}
|
|
11
|
-
async success() {
|
|
12
|
-
await this.window.send("appInitialization.sucess");
|
|
13
|
-
}
|
|
14
|
-
async failure(params) {
|
|
15
|
-
await this.window.send("appInitialization.failure", [params.reason, params.message]);
|
|
16
|
-
}
|
|
17
|
-
async expectedFailure(params) {
|
|
18
|
-
await this.window.send("appInitialization.expectedFailure", [params.reason, params.message]);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
exports.AppInitializationClient = AppInitializationClient;
|
|
23
|
-
//# sourceMappingURL=app-initialization.js.map
|
|
24
|
-
//# sourceMappingURL=app-initialization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/app-initialization.ts"],"names":[],"mappings":";;AAgDO,MAAM,uBAAwB,CAAA;AAAA,EAC1B,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,MAAS,GAAA;AACb,IAAM,MAAA,IAAA,CAAK,MAAO,CAAA,IAAA,CAAK,6BAA6B,CAAA;AAAA;AACtD,EAEA,MAAM,OAAU,GAAA;AACd,IAAM,MAAA,IAAA,CAAK,MAAO,CAAA,IAAA,CAAK,0BAA0B,CAAA;AAAA;AACnD,EAEA,MAAM,QAAQ,MAAsB,EAAA;AAClC,IAAM,MAAA,IAAA,CAAK,OAAO,IAAK,CAAA,2BAAA,EAA6B,CAAC,MAAO,CAAA,MAAA,EAAQ,MAAO,CAAA,OAAO,CAAC,CAAA;AAAA;AACrF,EAEA,MAAM,gBAAgB,MAA+B,EAAA;AACnD,IAAM,MAAA,IAAA,CAAK,OAAO,IAAK,CAAA,mCAAA,EAAqC,CAAC,MAAO,CAAA,MAAA,EAAQ,MAAO,CAAA,OAAO,CAAC,CAAA;AAAA;AAE/F","file":"app-initialization.js","sourcesContent":["import { WindowClient } from '../window-client';\n\n/**\n * Describes errors that caused app initialization to fail\n */\nexport type FailedReason = 'AuthFailed' | 'Timeout' | 'Other';\n\n/**\n * Describes expected errors that occurred during an otherwise successful\n * app initialization\n */\nexport type ExpectedFailureReason =\n | 'PermissionError'\n | 'NotFound'\n | 'Throttling'\n | 'Offline'\n | 'Other';\n\n/**\n * Represents the failed request sent during a failed app initialization.\n */\nexport type FailedParams = {\n /**\n * The reason for the failure\n */\n reason: FailedReason;\n\n /**\n * This property is currently unused.\n */\n message?: string;\n};\n\n/**\n * Represents the failure request sent during an erroneous app initialization.\n */\nexport type ExpectedFailureParams = {\n /**\n * The reason for the failure\n */\n reason: ExpectedFailureReason;\n\n /**\n * A message that describes the failure\n */\n message?: string;\n};\n\nexport class AppInitializationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async loaded() {\n await this.window.send('appInitialization.appLoaded');\n }\n\n async success() {\n await this.window.send('appInitialization.sucess');\n }\n\n async failure(params: FailedParams) {\n await this.window.send('appInitialization.failure', [params.reason, params.message]);\n }\n\n async expectedFailure(params: ExpectedFailureParams) {\n await this.window.send('appInitialization.expectedFailure', [params.reason, params.message]);\n }\n}\n"]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
class AppInitializationClient {
|
|
2
|
-
window;
|
|
3
|
-
constructor(client) {
|
|
4
|
-
this.window = client;
|
|
5
|
-
}
|
|
6
|
-
async loaded() {
|
|
7
|
-
await this.window.send("appInitialization.appLoaded");
|
|
8
|
-
}
|
|
9
|
-
async success() {
|
|
10
|
-
await this.window.send("appInitialization.sucess");
|
|
11
|
-
}
|
|
12
|
-
async failure(params) {
|
|
13
|
-
await this.window.send("appInitialization.failure", [params.reason, params.message]);
|
|
14
|
-
}
|
|
15
|
-
async expectedFailure(params) {
|
|
16
|
-
await this.window.send("appInitialization.expectedFailure", [params.reason, params.message]);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { AppInitializationClient };
|
|
21
|
-
//# sourceMappingURL=app-initialization.mjs.map
|
|
22
|
-
//# sourceMappingURL=app-initialization.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/app-initialization.ts"],"names":[],"mappings":"AAgDO,MAAM,uBAAwB,CAAA;AAAA,EAC1B,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,MAAS,GAAA;AACb,IAAM,MAAA,IAAA,CAAK,MAAO,CAAA,IAAA,CAAK,6BAA6B,CAAA;AAAA;AACtD,EAEA,MAAM,OAAU,GAAA;AACd,IAAM,MAAA,IAAA,CAAK,MAAO,CAAA,IAAA,CAAK,0BAA0B,CAAA;AAAA;AACnD,EAEA,MAAM,QAAQ,MAAsB,EAAA;AAClC,IAAM,MAAA,IAAA,CAAK,OAAO,IAAK,CAAA,2BAAA,EAA6B,CAAC,MAAO,CAAA,MAAA,EAAQ,MAAO,CAAA,OAAO,CAAC,CAAA;AAAA;AACrF,EAEA,MAAM,gBAAgB,MAA+B,EAAA;AACnD,IAAM,MAAA,IAAA,CAAK,OAAO,IAAK,CAAA,mCAAA,EAAqC,CAAC,MAAO,CAAA,MAAA,EAAQ,MAAO,CAAA,OAAO,CAAC,CAAA;AAAA;AAE/F","file":"app-initialization.mjs","sourcesContent":["import { WindowClient } from '../window-client';\n\n/**\n * Describes errors that caused app initialization to fail\n */\nexport type FailedReason = 'AuthFailed' | 'Timeout' | 'Other';\n\n/**\n * Describes expected errors that occurred during an otherwise successful\n * app initialization\n */\nexport type ExpectedFailureReason =\n | 'PermissionError'\n | 'NotFound'\n | 'Throttling'\n | 'Offline'\n | 'Other';\n\n/**\n * Represents the failed request sent during a failed app initialization.\n */\nexport type FailedParams = {\n /**\n * The reason for the failure\n */\n reason: FailedReason;\n\n /**\n * This property is currently unused.\n */\n message?: string;\n};\n\n/**\n * Represents the failure request sent during an erroneous app initialization.\n */\nexport type ExpectedFailureParams = {\n /**\n * The reason for the failure\n */\n reason: ExpectedFailureReason;\n\n /**\n * A message that describes the failure\n */\n message?: string;\n};\n\nexport class AppInitializationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async loaded() {\n await this.window.send('appInitialization.appLoaded');\n }\n\n async success() {\n await this.window.send('appInitialization.sucess');\n }\n\n async failure(params: FailedParams) {\n await this.window.send('appInitialization.failure', [params.reason, params.message]);\n }\n\n async expectedFailure(params: ExpectedFailureParams) {\n await this.window.send('appInitialization.expectedFailure', [params.reason, params.message]);\n }\n}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { WindowClient } from '../window-client.mjs';
|
|
2
|
-
import '@microsoft/teams.common';
|
|
3
|
-
import '../message.mjs';
|
|
4
|
-
import '../client-error.mjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Represents set of parameters needed to open the appInstallDialog.
|
|
8
|
-
*/
|
|
9
|
-
type OpenAppInstallDialogParams = {
|
|
10
|
-
/**
|
|
11
|
-
* A unique identifier for the app being installed.
|
|
12
|
-
*/
|
|
13
|
-
appId: string;
|
|
14
|
-
};
|
|
15
|
-
declare class AppInstallDialogClient {
|
|
16
|
-
readonly window: WindowClient;
|
|
17
|
-
constructor(client: WindowClient);
|
|
18
|
-
open(params: OpenAppInstallDialogParams): Promise<string>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { AppInstallDialogClient, type OpenAppInstallDialogParams };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { WindowClient } from '../window-client.js';
|
|
2
|
-
import '@microsoft/teams.common';
|
|
3
|
-
import '../message.js';
|
|
4
|
-
import '../client-error.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Represents set of parameters needed to open the appInstallDialog.
|
|
8
|
-
*/
|
|
9
|
-
type OpenAppInstallDialogParams = {
|
|
10
|
-
/**
|
|
11
|
-
* A unique identifier for the app being installed.
|
|
12
|
-
*/
|
|
13
|
-
appId: string;
|
|
14
|
-
};
|
|
15
|
-
declare class AppInstallDialogClient {
|
|
16
|
-
readonly window: WindowClient;
|
|
17
|
-
constructor(client: WindowClient);
|
|
18
|
-
open(params: OpenAppInstallDialogParams): Promise<string>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { AppInstallDialogClient, type OpenAppInstallDialogParams };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class AppInstallDialogClient {
|
|
4
|
-
window;
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.window = client;
|
|
7
|
-
}
|
|
8
|
-
async open(params) {
|
|
9
|
-
const [ok, res] = await this.window.send(
|
|
10
|
-
"appInstallDialog.openAppInstallDialog",
|
|
11
|
-
params
|
|
12
|
-
);
|
|
13
|
-
if (!ok) {
|
|
14
|
-
throw { errorCode: 500, message: res };
|
|
15
|
-
}
|
|
16
|
-
return res;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
exports.AppInstallDialogClient = AppInstallDialogClient;
|
|
21
|
-
//# sourceMappingURL=app-install-dialog.js.map
|
|
22
|
-
//# sourceMappingURL=app-install-dialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/app-install-dialog.ts"],"names":[],"mappings":";;AAYO,MAAM,sBAAuB,CAAA;AAAA,EACzB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,KAAK,MAAoC,EAAA;AAC7C,IAAA,MAAM,CAAC,EAAI,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAClC,uCAAA;AAAA,MACA;AAAA,KACF;AAEA,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAA,MAAM,EAAE,SAAA,EAAW,GAAK,EAAA,OAAA,EAAS,GAAI,EAAA;AAAA;AAGvC,IAAO,OAAA,GAAA;AAAA;AAEX","file":"app-install-dialog.js","sourcesContent":["import { WindowClient } from '../window-client';\n\n/**\n * Represents set of parameters needed to open the appInstallDialog.\n */\nexport type OpenAppInstallDialogParams = {\n /**\n * A unique identifier for the app being installed.\n */\n appId: string;\n};\n\nexport class AppInstallDialogClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async open(params: OpenAppInstallDialogParams) {\n const [ok, res] = await this.window.send<[boolean, string]>(\n 'appInstallDialog.openAppInstallDialog',\n params\n );\n\n if (!ok) {\n throw { errorCode: 500, message: res };\n }\n\n return res;\n }\n}\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
class AppInstallDialogClient {
|
|
2
|
-
window;
|
|
3
|
-
constructor(client) {
|
|
4
|
-
this.window = client;
|
|
5
|
-
}
|
|
6
|
-
async open(params) {
|
|
7
|
-
const [ok, res] = await this.window.send(
|
|
8
|
-
"appInstallDialog.openAppInstallDialog",
|
|
9
|
-
params
|
|
10
|
-
);
|
|
11
|
-
if (!ok) {
|
|
12
|
-
throw { errorCode: 500, message: res };
|
|
13
|
-
}
|
|
14
|
-
return res;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { AppInstallDialogClient };
|
|
19
|
-
//# sourceMappingURL=app-install-dialog.mjs.map
|
|
20
|
-
//# sourceMappingURL=app-install-dialog.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/app-install-dialog.ts"],"names":[],"mappings":"AAYO,MAAM,sBAAuB,CAAA;AAAA,EACzB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,KAAK,MAAoC,EAAA;AAC7C,IAAA,MAAM,CAAC,EAAI,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAClC,uCAAA;AAAA,MACA;AAAA,KACF;AAEA,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAA,MAAM,EAAE,SAAA,EAAW,GAAK,EAAA,OAAA,EAAS,GAAI,EAAA;AAAA;AAGvC,IAAO,OAAA,GAAA;AAAA;AAEX","file":"app-install-dialog.mjs","sourcesContent":["import { WindowClient } from '../window-client';\n\n/**\n * Represents set of parameters needed to open the appInstallDialog.\n */\nexport type OpenAppInstallDialogParams = {\n /**\n * A unique identifier for the app being installed.\n */\n appId: string;\n};\n\nexport class AppInstallDialogClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async open(params: OpenAppInstallDialogParams) {\n const [ok, res] = await this.window.send<[boolean, string]>(\n 'appInstallDialog.openAppInstallDialog',\n params\n );\n\n if (!ok) {\n throw { errorCode: 500, message: res };\n }\n\n return res;\n }\n}\n"]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { UserProfile } from '../types/user-profile.mjs';
|
|
2
|
-
import { WindowClient } from '../window-client.mjs';
|
|
3
|
-
import '../types/data-residency.mjs';
|
|
4
|
-
import '@microsoft/teams.common';
|
|
5
|
-
import '../message.mjs';
|
|
6
|
-
import '../client-error.mjs';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Describes the authentication pop-up parameters
|
|
10
|
-
*/
|
|
11
|
-
type AuthPopUpParams = {
|
|
12
|
-
/**
|
|
13
|
-
* The URL for the authentication pop-up.
|
|
14
|
-
*/
|
|
15
|
-
url: string;
|
|
16
|
-
/**
|
|
17
|
-
* The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.
|
|
18
|
-
*/
|
|
19
|
-
width?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.
|
|
22
|
-
*/
|
|
23
|
-
height?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)
|
|
26
|
-
* If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in
|
|
27
|
-
* the {@link url} property to be opened in an external browser.
|
|
28
|
-
* If this flag is `false`, the page will be opened directly within the current hosting application.
|
|
29
|
-
*
|
|
30
|
-
* This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only
|
|
31
|
-
* environment without an embedded browser.
|
|
32
|
-
*/
|
|
33
|
-
isExternal?: boolean;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Describes authentication token request parameters
|
|
37
|
-
*/
|
|
38
|
-
type AuthTokenRequestParams = {
|
|
39
|
-
/**
|
|
40
|
-
* An list of resources for which to acquire the access token; only for internal Microsoft usage
|
|
41
|
-
*/
|
|
42
|
-
resources?: string[];
|
|
43
|
-
/**
|
|
44
|
-
* An optional list of claims which to pass to Microsoft Entra when requesting the access token.
|
|
45
|
-
*/
|
|
46
|
-
claims?: string[];
|
|
47
|
-
/**
|
|
48
|
-
* An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
|
|
49
|
-
*/
|
|
50
|
-
silent?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* An optional identifier of the home tenant for which to acquire the access token for (used in cross-tenant shared channels).
|
|
53
|
-
*/
|
|
54
|
-
tenantId?: string;
|
|
55
|
-
};
|
|
56
|
-
declare class AuthenticationClient {
|
|
57
|
-
readonly window: WindowClient;
|
|
58
|
-
constructor(client: WindowClient);
|
|
59
|
-
getToken(params?: AuthTokenRequestParams): Promise<string>;
|
|
60
|
-
getUser(): Promise<UserProfile>;
|
|
61
|
-
authenticate(params: AuthPopUpParams): Promise<void>;
|
|
62
|
-
success(result?: string): Promise<void>;
|
|
63
|
-
failure(reason?: string): Promise<void>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { type AuthPopUpParams, type AuthTokenRequestParams, AuthenticationClient };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { UserProfile } from '../types/user-profile.js';
|
|
2
|
-
import { WindowClient } from '../window-client.js';
|
|
3
|
-
import '../types/data-residency.js';
|
|
4
|
-
import '@microsoft/teams.common';
|
|
5
|
-
import '../message.js';
|
|
6
|
-
import '../client-error.js';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Describes the authentication pop-up parameters
|
|
10
|
-
*/
|
|
11
|
-
type AuthPopUpParams = {
|
|
12
|
-
/**
|
|
13
|
-
* The URL for the authentication pop-up.
|
|
14
|
-
*/
|
|
15
|
-
url: string;
|
|
16
|
-
/**
|
|
17
|
-
* The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.
|
|
18
|
-
*/
|
|
19
|
-
width?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.
|
|
22
|
-
*/
|
|
23
|
-
height?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)
|
|
26
|
-
* If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in
|
|
27
|
-
* the {@link url} property to be opened in an external browser.
|
|
28
|
-
* If this flag is `false`, the page will be opened directly within the current hosting application.
|
|
29
|
-
*
|
|
30
|
-
* This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only
|
|
31
|
-
* environment without an embedded browser.
|
|
32
|
-
*/
|
|
33
|
-
isExternal?: boolean;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Describes authentication token request parameters
|
|
37
|
-
*/
|
|
38
|
-
type AuthTokenRequestParams = {
|
|
39
|
-
/**
|
|
40
|
-
* An list of resources for which to acquire the access token; only for internal Microsoft usage
|
|
41
|
-
*/
|
|
42
|
-
resources?: string[];
|
|
43
|
-
/**
|
|
44
|
-
* An optional list of claims which to pass to Microsoft Entra when requesting the access token.
|
|
45
|
-
*/
|
|
46
|
-
claims?: string[];
|
|
47
|
-
/**
|
|
48
|
-
* An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
|
|
49
|
-
*/
|
|
50
|
-
silent?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* An optional identifier of the home tenant for which to acquire the access token for (used in cross-tenant shared channels).
|
|
53
|
-
*/
|
|
54
|
-
tenantId?: string;
|
|
55
|
-
};
|
|
56
|
-
declare class AuthenticationClient {
|
|
57
|
-
readonly window: WindowClient;
|
|
58
|
-
constructor(client: WindowClient);
|
|
59
|
-
getToken(params?: AuthTokenRequestParams): Promise<string>;
|
|
60
|
-
getUser(): Promise<UserProfile>;
|
|
61
|
-
authenticate(params: AuthPopUpParams): Promise<void>;
|
|
62
|
-
success(result?: string): Promise<void>;
|
|
63
|
-
failure(reason?: string): Promise<void>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { type AuthPopUpParams, type AuthTokenRequestParams, AuthenticationClient };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class AuthenticationClient {
|
|
4
|
-
window;
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.window = client;
|
|
7
|
-
}
|
|
8
|
-
async getToken(params) {
|
|
9
|
-
const [ok, res] = await this.window.send(
|
|
10
|
-
"authentication.getAuthToken",
|
|
11
|
-
params?.resources,
|
|
12
|
-
params?.claims,
|
|
13
|
-
params?.silent,
|
|
14
|
-
params?.tenantId
|
|
15
|
-
);
|
|
16
|
-
if (!ok) {
|
|
17
|
-
throw { errorCode: 500, message: res };
|
|
18
|
-
}
|
|
19
|
-
return res;
|
|
20
|
-
}
|
|
21
|
-
async getUser() {
|
|
22
|
-
const [ok, res] = await this.window.send("authentication.getUser");
|
|
23
|
-
if (!ok) {
|
|
24
|
-
throw res;
|
|
25
|
-
}
|
|
26
|
-
return res;
|
|
27
|
-
}
|
|
28
|
-
async authenticate(params) {
|
|
29
|
-
await this.window.send(
|
|
30
|
-
"authentication.authenticate",
|
|
31
|
-
params.url,
|
|
32
|
-
params.width,
|
|
33
|
-
params.height,
|
|
34
|
-
params.isExternal
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
async success(result) {
|
|
38
|
-
await this.window.send("authentication.authenticate.success", result);
|
|
39
|
-
}
|
|
40
|
-
async failure(reason) {
|
|
41
|
-
await this.window.send("authentication.authenticate.success", reason);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
exports.AuthenticationClient = AuthenticationClient;
|
|
46
|
-
//# sourceMappingURL=authentication.js.map
|
|
47
|
-
//# sourceMappingURL=authentication.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/authentication.ts"],"names":[],"mappings":";;AA4DO,MAAM,oBAAqB,CAAA;AAAA,EACvB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,SAAS,MAAiC,EAAA;AAC9C,IAAA,MAAM,CAAC,EAAI,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAClC,6BAAA;AAAA,MACA,MAAQ,EAAA,SAAA;AAAA,MACR,MAAQ,EAAA,MAAA;AAAA,MACR,MAAQ,EAAA,MAAA;AAAA,MACR,MAAQ,EAAA;AAAA,KACV;AAEA,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAA,MAAM,EAAE,SAAA,EAAW,GAAK,EAAA,OAAA,EAAS,GAAI,EAAA;AAAA;AAGvC,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,OAAU,GAAA;AACd,IAAM,MAAA,CAAC,IAAI,GAAG,CAAA,GACZ,MAAM,IAAK,CAAA,MAAA,CAAO,KAA2C,wBAAwB,CAAA;AAEvF,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAM,MAAA,GAAA;AAAA;AAGR,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,aAAa,MAAyB,EAAA;AAC1C,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAChB,6BAAA;AAAA,MACA,MAAO,CAAA,GAAA;AAAA,MACP,MAAO,CAAA,KAAA;AAAA,MACP,MAAO,CAAA,MAAA;AAAA,MACP,MAAO,CAAA;AAAA,KACT;AAAA;AACF,EAEA,MAAM,QAAQ,MAAiB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,qCAAA,EAAuC,MAAM,CAAA;AAAA;AACtE,EAEA,MAAM,QAAQ,MAAiB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,qCAAA,EAAuC,MAAM,CAAA;AAAA;AAExE","file":"authentication.js","sourcesContent":["import { ClientError } from '../client-error';\nimport { UserProfile } from '../types';\nimport { WindowClient } from '../window-client';\n\n/**\n * Describes the authentication pop-up parameters\n */\nexport type AuthPopUpParams = {\n /**\n * The URL for the authentication pop-up.\n */\n url: string;\n\n /**\n * The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.\n */\n width?: number;\n\n /**\n * The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.\n */\n height?: number;\n\n /**\n * Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)\n * If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in\n * the {@link url} property to be opened in an external browser.\n * If this flag is `false`, the page will be opened directly within the current hosting application.\n *\n * This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only\n * environment without an embedded browser.\n */\n isExternal?: boolean;\n};\n\n/**\n * Describes authentication token request parameters\n */\nexport type AuthTokenRequestParams = {\n /**\n * An list of resources for which to acquire the access token; only for internal Microsoft usage\n */\n resources?: string[];\n\n /**\n * An optional list of claims which to pass to Microsoft Entra when requesting the access token.\n */\n claims?: string[];\n\n /**\n * An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.\n */\n silent?: boolean;\n\n /**\n * An optional identifier of the home tenant for which to acquire the access token for (used in cross-tenant shared channels).\n */\n tenantId?: string;\n};\n\nexport class AuthenticationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async getToken(params?: AuthTokenRequestParams) {\n const [ok, res] = await this.window.send<[boolean, string]>(\n 'authentication.getAuthToken',\n params?.resources,\n params?.claims,\n params?.silent,\n params?.tenantId\n );\n\n if (!ok) {\n throw { errorCode: 500, message: res };\n }\n\n return res;\n }\n\n async getUser() {\n const [ok, res] =\n await this.window.send<[boolean, UserProfile | ClientError]>('authentication.getUser');\n\n if (!ok) {\n throw res;\n }\n\n return res as UserProfile;\n }\n\n async authenticate(params: AuthPopUpParams) {\n await this.window.send(\n 'authentication.authenticate',\n params.url,\n params.width,\n params.height,\n params.isExternal\n );\n }\n\n async success(result?: string) {\n await this.window.send('authentication.authenticate.success', result);\n }\n\n async failure(reason?: string) {\n await this.window.send('authentication.authenticate.success', reason);\n }\n}\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
class AuthenticationClient {
|
|
2
|
-
window;
|
|
3
|
-
constructor(client) {
|
|
4
|
-
this.window = client;
|
|
5
|
-
}
|
|
6
|
-
async getToken(params) {
|
|
7
|
-
const [ok, res] = await this.window.send(
|
|
8
|
-
"authentication.getAuthToken",
|
|
9
|
-
params?.resources,
|
|
10
|
-
params?.claims,
|
|
11
|
-
params?.silent,
|
|
12
|
-
params?.tenantId
|
|
13
|
-
);
|
|
14
|
-
if (!ok) {
|
|
15
|
-
throw { errorCode: 500, message: res };
|
|
16
|
-
}
|
|
17
|
-
return res;
|
|
18
|
-
}
|
|
19
|
-
async getUser() {
|
|
20
|
-
const [ok, res] = await this.window.send("authentication.getUser");
|
|
21
|
-
if (!ok) {
|
|
22
|
-
throw res;
|
|
23
|
-
}
|
|
24
|
-
return res;
|
|
25
|
-
}
|
|
26
|
-
async authenticate(params) {
|
|
27
|
-
await this.window.send(
|
|
28
|
-
"authentication.authenticate",
|
|
29
|
-
params.url,
|
|
30
|
-
params.width,
|
|
31
|
-
params.height,
|
|
32
|
-
params.isExternal
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
async success(result) {
|
|
36
|
-
await this.window.send("authentication.authenticate.success", result);
|
|
37
|
-
}
|
|
38
|
-
async failure(reason) {
|
|
39
|
-
await this.window.send("authentication.authenticate.success", reason);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { AuthenticationClient };
|
|
44
|
-
//# sourceMappingURL=authentication.mjs.map
|
|
45
|
-
//# sourceMappingURL=authentication.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/authentication.ts"],"names":[],"mappings":"AA4DO,MAAM,oBAAqB,CAAA;AAAA,EACvB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,SAAS,MAAiC,EAAA;AAC9C,IAAA,MAAM,CAAC,EAAI,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAClC,6BAAA;AAAA,MACA,MAAQ,EAAA,SAAA;AAAA,MACR,MAAQ,EAAA,MAAA;AAAA,MACR,MAAQ,EAAA,MAAA;AAAA,MACR,MAAQ,EAAA;AAAA,KACV;AAEA,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAA,MAAM,EAAE,SAAA,EAAW,GAAK,EAAA,OAAA,EAAS,GAAI,EAAA;AAAA;AAGvC,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,OAAU,GAAA;AACd,IAAM,MAAA,CAAC,IAAI,GAAG,CAAA,GACZ,MAAM,IAAK,CAAA,MAAA,CAAO,KAA2C,wBAAwB,CAAA;AAEvF,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAM,MAAA,GAAA;AAAA;AAGR,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,aAAa,MAAyB,EAAA;AAC1C,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAChB,6BAAA;AAAA,MACA,MAAO,CAAA,GAAA;AAAA,MACP,MAAO,CAAA,KAAA;AAAA,MACP,MAAO,CAAA,MAAA;AAAA,MACP,MAAO,CAAA;AAAA,KACT;AAAA;AACF,EAEA,MAAM,QAAQ,MAAiB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,qCAAA,EAAuC,MAAM,CAAA;AAAA;AACtE,EAEA,MAAM,QAAQ,MAAiB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,qCAAA,EAAuC,MAAM,CAAA;AAAA;AAExE","file":"authentication.mjs","sourcesContent":["import { ClientError } from '../client-error';\nimport { UserProfile } from '../types';\nimport { WindowClient } from '../window-client';\n\n/**\n * Describes the authentication pop-up parameters\n */\nexport type AuthPopUpParams = {\n /**\n * The URL for the authentication pop-up.\n */\n url: string;\n\n /**\n * The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.\n */\n width?: number;\n\n /**\n * The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.\n */\n height?: number;\n\n /**\n * Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)\n * If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in\n * the {@link url} property to be opened in an external browser.\n * If this flag is `false`, the page will be opened directly within the current hosting application.\n *\n * This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only\n * environment without an embedded browser.\n */\n isExternal?: boolean;\n};\n\n/**\n * Describes authentication token request parameters\n */\nexport type AuthTokenRequestParams = {\n /**\n * An list of resources for which to acquire the access token; only for internal Microsoft usage\n */\n resources?: string[];\n\n /**\n * An optional list of claims which to pass to Microsoft Entra when requesting the access token.\n */\n claims?: string[];\n\n /**\n * An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.\n */\n silent?: boolean;\n\n /**\n * An optional identifier of the home tenant for which to acquire the access token for (used in cross-tenant shared channels).\n */\n tenantId?: string;\n};\n\nexport class AuthenticationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async getToken(params?: AuthTokenRequestParams) {\n const [ok, res] = await this.window.send<[boolean, string]>(\n 'authentication.getAuthToken',\n params?.resources,\n params?.claims,\n params?.silent,\n params?.tenantId\n );\n\n if (!ok) {\n throw { errorCode: 500, message: res };\n }\n\n return res;\n }\n\n async getUser() {\n const [ok, res] =\n await this.window.send<[boolean, UserProfile | ClientError]>('authentication.getUser');\n\n if (!ok) {\n throw res;\n }\n\n return res as UserProfile;\n }\n\n async authenticate(params: AuthPopUpParams) {\n await this.window.send(\n 'authentication.authenticate',\n params.url,\n params.width,\n params.height,\n params.isExternal\n );\n }\n\n async success(result?: string) {\n await this.window.send('authentication.authenticate.success', result);\n }\n\n async failure(reason?: string) {\n await this.window.send('authentication.authenticate.success', reason);\n }\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BarCodeConfig } from '../types/bar-code-config.mjs';
|
|
2
|
-
import { WindowClient } from '../window-client.mjs';
|
|
3
|
-
import '@microsoft/teams.common';
|
|
4
|
-
import '../message.mjs';
|
|
5
|
-
import '../client-error.mjs';
|
|
6
|
-
|
|
7
|
-
declare class BarCodeClient {
|
|
8
|
-
readonly window: WindowClient;
|
|
9
|
-
constructor(client: WindowClient);
|
|
10
|
-
scan(config: BarCodeConfig): Promise<string>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { BarCodeClient };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BarCodeConfig } from '../types/bar-code-config.js';
|
|
2
|
-
import { WindowClient } from '../window-client.js';
|
|
3
|
-
import '@microsoft/teams.common';
|
|
4
|
-
import '../message.js';
|
|
5
|
-
import '../client-error.js';
|
|
6
|
-
|
|
7
|
-
declare class BarCodeClient {
|
|
8
|
-
readonly window: WindowClient;
|
|
9
|
-
constructor(client: WindowClient);
|
|
10
|
-
scan(config: BarCodeConfig): Promise<string>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { BarCodeClient };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class BarCodeClient {
|
|
4
|
-
window;
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.window = client;
|
|
7
|
-
}
|
|
8
|
-
async scan(config) {
|
|
9
|
-
const [err, res] = await this.window.send(
|
|
10
|
-
"media.scanBarCode",
|
|
11
|
-
config
|
|
12
|
-
);
|
|
13
|
-
if (err) throw err;
|
|
14
|
-
return res;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
exports.BarCodeClient = BarCodeClient;
|
|
19
|
-
//# sourceMappingURL=bar-code.js.map
|
|
20
|
-
//# sourceMappingURL=bar-code.js.map
|