@jevelin/bridge 2.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +12 -0
- package/README.md +78 -0
- package/dist/esm/_virtual/_polyfill-node.buffer.js +1 -0
- package/dist/esm/_virtual/_polyfill-node.global.js +1 -0
- package/dist/esm/_virtual/browser.js +1 -0
- package/dist/esm/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js +1 -0
- package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js +1 -0
- package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js +1 -0
- package/dist/esm/node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/native.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/rng.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/v4.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/validate.js +1 -0
- package/dist/esm/packages/teams-js/dts/index.d.ts +2 -0
- package/dist/esm/packages/teams-js/dts/internal/VideoFrameTypes.d.ts +78 -0
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +19 -0
- package/dist/esm/packages/teams-js/dts/internal/childCommunication.d.ts +38 -0
- package/dist/esm/packages/teams-js/dts/internal/communication.d.ts +151 -0
- package/dist/esm/packages/teams-js/dts/internal/communicationUtils.d.ts +20 -0
- package/dist/esm/packages/teams-js/dts/internal/constants.d.ts +146 -0
- package/dist/esm/packages/teams-js/dts/internal/deepLinkConstants.d.ts +26 -0
- package/dist/esm/packages/teams-js/dts/internal/deepLinkUtilities.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/internal/dialogHelpers.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/internal/emailAddressValidation.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/internal/globalVars.d.ts +13 -0
- package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +101 -0
- package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
- package/dist/esm/packages/teams-js/dts/internal/idValidation.d.ts +37 -0
- package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +58 -0
- package/dist/esm/packages/teams-js/dts/internal/internalAPIs.d.ts +61 -0
- package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +94 -0
- package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +95 -0
- package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +80 -0
- package/dist/esm/packages/teams-js/dts/internal/nestedAppAuthUtils.d.ts +107 -0
- package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +27 -0
- package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/internal/responseHandler.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +411 -0
- package/dist/esm/packages/teams-js/dts/internal/typeCheckUtilities.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/internal/urlPattern.d.ts +50 -0
- package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +226 -0
- package/dist/esm/packages/teams-js/dts/internal/validOrigins.d.ts +13 -0
- package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/internal/videoFrameTick.d.ts +10 -0
- package/dist/esm/packages/teams-js/dts/internal/videoPerformanceMonitor.d.ts +54 -0
- package/dist/esm/packages/teams-js/dts/internal/videoPerformanceStatistics.d.ts +49 -0
- package/dist/esm/packages/teams-js/dts/internal/visualMediaHelpers.d.ts +14 -0
- package/dist/esm/packages/teams-js/dts/internal/webStorageHelpers.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +89 -0
- package/dist/esm/packages/teams-js/dts/private/constants.d.ts +9 -0
- package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +152 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +5 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/customTelemetry.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/sidePanel.d.ts +75 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/sidePanelInterfaces.d.ts +522 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/view.d.ts +21 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +472 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +93 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +111 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +48 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForDA.d.ts +75 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +122 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppErrorHandling.d.ts +19 -0
- package/dist/esm/packages/teams-js/dts/private/files.d.ts +766 -0
- package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +50 -0
- package/dist/esm/packages/teams-js/dts/private/hostEntity/tab.d.ts +134 -0
- package/dist/esm/packages/teams-js/dts/private/index.d.ts +29 -0
- package/dist/esm/packages/teams-js/dts/private/interfaces.d.ts +290 -0
- package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +208 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/dataLayer.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/messageChannels.d.ts +28 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/telemetry.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/nestedAppAuth/nestedAppAuthBridge.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +94 -0
- package/dist/esm/packages/teams-js/dts/private/plugins.d.ts +94 -0
- package/dist/esm/packages/teams-js/dts/private/privateAPIs.d.ts +94 -0
- package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +303 -0
- package/dist/esm/packages/teams-js/dts/private/store.d.ts +128 -0
- package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/fullTrust.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/joinedTeams.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/private/teams/teams.d.ts +63 -0
- package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +250 -0
- package/dist/esm/packages/teams-js/dts/private/widgetHosting/widgetContext.d.ts +121 -0
- package/dist/esm/packages/teams-js/dts/private/widgetHosting/widgetHosting.d.ts +101 -0
- package/dist/esm/packages/teams-js/dts/public/adaptiveCards.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +648 -0
- package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +41 -0
- package/dist/esm/packages/teams-js/dts/public/appId.d.ts +28 -0
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +57 -0
- package/dist/esm/packages/teams-js/dts/public/appInstallDialog.d.ts +18 -0
- package/dist/esm/packages/teams-js/dts/public/appPerformanceMetrics.d.ts +24 -0
- package/dist/esm/packages/teams-js/dts/public/appWindow.d.ts +66 -0
- package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +417 -0
- package/dist/esm/packages/teams-js/dts/public/badge.d.ts +42 -0
- package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +54 -0
- package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +41 -0
- package/dist/esm/packages/teams-js/dts/public/call.d.ts +54 -0
- package/dist/esm/packages/teams-js/dts/public/chat.d.ts +68 -0
- package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +35 -0
- package/dist/esm/packages/teams-js/dts/public/connectivity.d.ts +52 -0
- package/dist/esm/packages/teams-js/dts/public/constants.d.ts +203 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +22 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +22 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +49 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +19 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +25 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +41 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +54 -0
- package/dist/esm/packages/teams-js/dts/public/emailAddress.d.ts +12 -0
- package/dist/esm/packages/teams-js/dts/public/externalApp.d.ts +130 -0
- package/dist/esm/packages/teams-js/dts/public/featureFlags.d.ts +44 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +68 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/haptics.d.ts +42 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +57 -0
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +1321 -0
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +220 -0
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +85 -0
- package/dist/esm/packages/teams-js/dts/public/mail/handoff.d.ts +48 -0
- package/dist/esm/packages/teams-js/dts/public/mail/mail.d.ts +97 -0
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +320 -0
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +435 -0
- package/dist/esm/packages/teams-js/dts/public/meeting/appShareButton.d.ts +51 -0
- package/dist/esm/packages/teams-js/dts/public/meeting/meeting.d.ts +854 -0
- package/dist/esm/packages/teams-js/dts/public/menus.d.ts +187 -0
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +64 -0
- package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +46 -0
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +64 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/drafts.d.ts +104 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/inbox.d.ts +86 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/offlineStorage.d.ts +258 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/outbox.d.ts +112 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/sent.d.ts +69 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/sync.d.ts +183 -0
- package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
- package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
- package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
- package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
- package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/public/people.d.ts +73 -0
- package/dist/esm/packages/teams-js/dts/public/profile.d.ts +105 -0
- package/dist/esm/packages/teams-js/dts/public/publicAPIs.d.ts +218 -0
- package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +240 -0
- package/dist/esm/packages/teams-js/dts/public/search.d.ts +90 -0
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/public/security.d.ts +83 -0
- package/dist/esm/packages/teams-js/dts/public/serializable.interface.d.ts +17 -0
- package/dist/esm/packages/teams-js/dts/public/settings.d.ts +102 -0
- package/dist/esm/packages/teams-js/dts/public/sharing/history.d.ts +47 -0
- package/dist/esm/packages/teams-js/dts/public/sharing/sharing.d.ts +93 -0
- package/dist/esm/packages/teams-js/dts/public/shortcutRelay.d.ts +53 -0
- package/dist/esm/packages/teams-js/dts/public/stageView/self.d.ts +23 -0
- package/dist/esm/packages/teams-js/dts/public/stageView/stageView.d.ts +81 -0
- package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +52 -0
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +79 -0
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +118 -0
- package/dist/esm/packages/teams-js/dts/public/uuidObject.d.ts +38 -0
- package/dist/esm/packages/teams-js/dts/public/validatedSafeString.d.ts +25 -0
- package/dist/esm/packages/teams-js/dts/public/version.d.ts +5 -0
- package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +212 -0
- package/dist/esm/packages/teams-js/dts/public/visualMedia/image.d.ts +64 -0
- package/dist/esm/packages/teams-js/dts/public/visualMedia/visualMedia.d.ts +116 -0
- package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +25 -0
- package/dist/esm/packages/teams-js/src/artifactsForCDN/validDomains.json.js +1 -0
- package/dist/esm/packages/teams-js/src/index.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/childCommunication.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/communication.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/communicationUtils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/constants.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/deepLinkConstants.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/dialogHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/emailAddressValidation.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/globalVars.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/idValidation.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/internalAPIs.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/mediaUtil.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/nestedAppAuthUtils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/profileUtil.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/responseHandler.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/telemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/typeCheckUtilities.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/urlPattern.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/utils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/videoFrameTick.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/videoPerformanceMonitor.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/videoPerformanceStatistics.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/visualMediaHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/webStorageHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -0
- package/dist/esm/packages/teams-js/src/private/constants.js +1 -0
- package/dist/esm/packages/teams-js/src/private/conversations.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/customTelemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/eligibility.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/sidePanel.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/sidePanelInterfaces.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/view.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForDA.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppErrorHandling.js +1 -0
- package/dist/esm/packages/teams-js/src/private/files.js +1 -0
- package/dist/esm/packages/teams-js/src/private/hostEntity/hostEntity.js +1 -0
- package/dist/esm/packages/teams-js/src/private/hostEntity/tab.js +1 -0
- package/dist/esm/packages/teams-js/src/private/interfaces.js +1 -0
- package/dist/esm/packages/teams-js/src/private/logs.js +1 -0
- package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/dataLayer.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/messageChannels.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/telemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/private/nestedAppAuth/nestedAppAuthBridge.js +1 -0
- package/dist/esm/packages/teams-js/src/private/notifications.js +1 -0
- package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -0
- package/dist/esm/packages/teams-js/src/private/plugins.js +1 -0
- package/dist/esm/packages/teams-js/src/private/privateAPIs.js +1 -0
- package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -0
- package/dist/esm/packages/teams-js/src/private/store.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/fullTrust/fullTrust.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/fullTrust/joinedTeams.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/teams.js +1 -0
- package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -0
- package/dist/esm/packages/teams-js/src/private/widgetHosting/widgetHosting.js +1 -0
- package/dist/esm/packages/teams-js/src/public/adaptiveCards.js +1 -0
- package/dist/esm/packages/teams-js/src/public/app/app.js +1 -0
- package/dist/esm/packages/teams-js/src/public/app/lifecycle.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appId.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appInstallDialog.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appPerformanceMetrics.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appWindow.js +1 -0
- package/dist/esm/packages/teams-js/src/public/authentication.js +1 -0
- package/dist/esm/packages/teams-js/src/public/badge.js +1 -0
- package/dist/esm/packages/teams-js/src/public/barCode.js +1 -0
- package/dist/esm/packages/teams-js/src/public/calendar.js +1 -0
- package/dist/esm/packages/teams-js/src/public/call.js +1 -0
- package/dist/esm/packages/teams-js/src/public/chat.js +1 -0
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -0
- package/dist/esm/packages/teams-js/src/public/connectivity.js +1 -0
- package/dist/esm/packages/teams-js/src/public/constants.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/adaptiveCard.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/dialog.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/update.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/parentCommunication.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/url.js +1 -0
- package/dist/esm/packages/teams-js/src/public/emailAddress.js +1 -0
- package/dist/esm/packages/teams-js/src/public/externalApp.js +1 -0
- package/dist/esm/packages/teams-js/src/public/featureFlags.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/geoLocation.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/map.js +1 -0
- package/dist/esm/packages/teams-js/src/public/haptics.js +1 -0
- package/dist/esm/packages/teams-js/src/public/interfaces.js +1 -0
- package/dist/esm/packages/teams-js/src/public/liveShareHost.js +1 -0
- package/dist/esm/packages/teams-js/src/public/location.js +1 -0
- package/dist/esm/packages/teams-js/src/public/mail/handoff.js +1 -0
- package/dist/esm/packages/teams-js/src/public/mail/mail.js +1 -0
- package/dist/esm/packages/teams-js/src/public/marketplace.js +1 -0
- package/dist/esm/packages/teams-js/src/public/media.js +1 -0
- package/dist/esm/packages/teams-js/src/public/meeting/appShareButton.js +1 -0
- package/dist/esm/packages/teams-js/src/public/meeting/meeting.js +1 -0
- package/dist/esm/packages/teams-js/src/public/menus.js +1 -0
- package/dist/esm/packages/teams-js/src/public/monetization.js +1 -0
- package/dist/esm/packages/teams-js/src/public/navigation.js +1 -0
- package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/drafts.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/inbox.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/offlineStorage.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/outbox.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/sent.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/sync.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/appButton.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/backStack.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/config.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/currentApp.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/fullTrust.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/pages.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/tabs.js +1 -0
- package/dist/esm/packages/teams-js/src/public/people.js +1 -0
- package/dist/esm/packages/teams-js/src/public/profile.js +1 -0
- package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -0
- package/dist/esm/packages/teams-js/src/public/runtime.js +1 -0
- package/dist/esm/packages/teams-js/src/public/search.js +1 -0
- package/dist/esm/packages/teams-js/src/public/secondaryBrowser.js +1 -0
- package/dist/esm/packages/teams-js/src/public/security.js +1 -0
- package/dist/esm/packages/teams-js/src/public/serializable.interface.js +1 -0
- package/dist/esm/packages/teams-js/src/public/settings.js +1 -0
- package/dist/esm/packages/teams-js/src/public/sharing/history.js +1 -0
- package/dist/esm/packages/teams-js/src/public/sharing/sharing.js +1 -0
- package/dist/esm/packages/teams-js/src/public/shortcutRelay.js +1 -0
- package/dist/esm/packages/teams-js/src/public/stageView/self.js +1 -0
- package/dist/esm/packages/teams-js/src/public/stageView/stageView.js +1 -0
- package/dist/esm/packages/teams-js/src/public/tasks.js +1 -0
- package/dist/esm/packages/teams-js/src/public/teamsAPIs.js +1 -0
- package/dist/esm/packages/teams-js/src/public/thirdPartyCloudStorage.js +1 -0
- package/dist/esm/packages/teams-js/src/public/uuidObject.js +1 -0
- package/dist/esm/packages/teams-js/src/public/validatedSafeString.js +1 -0
- package/dist/esm/packages/teams-js/src/public/version.js +1 -0
- package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -0
- package/dist/esm/packages/teams-js/src/public/visualMedia/image.js +1 -0
- package/dist/esm/packages/teams-js/src/public/visualMedia/visualMedia.js +1 -0
- package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -0
- package/dist/umd/JevelinBridge-manifest.json +642 -0
- package/dist/umd/JevelinBridge.js +23119 -0
- package/dist/umd/JevelinBridge.js.map +1 -0
- package/dist/umd/JevelinBridge.min.js +3 -0
- package/dist/umd/JevelinBridge.min.js.LICENSE.txt +8 -0
- package/dist/umd/JevelinBridge.min.js.map +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module to interact with the barcode scanning-specific part of the SDK.
|
|
3
|
+
*
|
|
4
|
+
* @beta
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Data structure to customize the barcode scanning experience in scanBarCode API.
|
|
9
|
+
* All properties in BarCodeConfig are optional and have default values in the platform
|
|
10
|
+
*
|
|
11
|
+
* @beta
|
|
12
|
+
*/
|
|
13
|
+
export interface BarCodeConfig {
|
|
14
|
+
/**
|
|
15
|
+
* Optional; designates the scan timeout interval in seconds.
|
|
16
|
+
* Default value is 30 seconds, max allowed value is 60 seconds.
|
|
17
|
+
*/
|
|
18
|
+
timeOutIntervalInSec?: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Scan Barcode or QRcode using camera
|
|
22
|
+
*
|
|
23
|
+
* @param barCodeConfig - input configuration to customize the barcode scanning experience
|
|
24
|
+
*
|
|
25
|
+
* @returns a scanned code
|
|
26
|
+
*
|
|
27
|
+
* @beta
|
|
28
|
+
*/
|
|
29
|
+
export declare function scanBarCode(barCodeConfig: BarCodeConfig): Promise<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Checks whether or not media has user permission
|
|
32
|
+
*
|
|
33
|
+
* @returns true if the user has granted the app permission to media information, false otherwise
|
|
34
|
+
*
|
|
35
|
+
* @beta
|
|
36
|
+
*/
|
|
37
|
+
export declare function hasPermission(): Promise<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Requests user permission for media
|
|
40
|
+
*
|
|
41
|
+
* @returns true if the user has granted the app permission to the media, false otherwise
|
|
42
|
+
*
|
|
43
|
+
* @beta
|
|
44
|
+
*/
|
|
45
|
+
export declare function requestPermission(): Promise<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Checks if barCode capability is supported by the host
|
|
48
|
+
* @returns boolean to represent whether the barCode capability is supported
|
|
49
|
+
*
|
|
50
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
51
|
+
*
|
|
52
|
+
* @beta
|
|
53
|
+
*/
|
|
54
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interact with the user's calendar, including opening calendar items and composing meetings.
|
|
3
|
+
* @module
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Opens a calendar item.
|
|
7
|
+
*
|
|
8
|
+
* @param openCalendarItemParams - object containing unique ID of the calendar item to be opened.
|
|
9
|
+
*/
|
|
10
|
+
export declare function openCalendarItem(openCalendarItemParams: OpenCalendarItemParams): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Compose a new meeting in the user's calendar.
|
|
13
|
+
*
|
|
14
|
+
* @param composeMeetingParams - object containing various properties to set up the meeting details.
|
|
15
|
+
*/
|
|
16
|
+
export declare function composeMeeting(composeMeetingParams: ComposeMeetingParams): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Checks if the calendar capability is supported by the host
|
|
19
|
+
* @returns boolean to represent whether the calendar capability is supported
|
|
20
|
+
*
|
|
21
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
22
|
+
*/
|
|
23
|
+
export declare function isSupported(): boolean;
|
|
24
|
+
/** Open calendar item parameters. */
|
|
25
|
+
export interface OpenCalendarItemParams {
|
|
26
|
+
/** An unique base64-encoded string id that represents the event's unique identifier of the calendar item to be opened. */
|
|
27
|
+
itemId: string;
|
|
28
|
+
}
|
|
29
|
+
/** Compose meeting parameters */
|
|
30
|
+
export interface ComposeMeetingParams {
|
|
31
|
+
/** An array of email addresses, user name, or user id of the attendees to invite to the meeting. */
|
|
32
|
+
attendees?: string[];
|
|
33
|
+
/** The start time of the meeting in MM/DD/YYYY HH:MM:SS format. */
|
|
34
|
+
startTime?: string;
|
|
35
|
+
/** The end time of the meeting in MM/DD/YYYY HH:MM:SS format. */
|
|
36
|
+
endTime?: string;
|
|
37
|
+
/** The subject line of the meeting. */
|
|
38
|
+
subject?: string;
|
|
39
|
+
/** The body content of the meeting. */
|
|
40
|
+
content?: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used to interact with call functionality, including starting calls with other users.
|
|
3
|
+
* @module
|
|
4
|
+
*/
|
|
5
|
+
/** Modalities that can be associated with a call. */
|
|
6
|
+
export declare enum CallModalities {
|
|
7
|
+
/** Indicates that the modality is unknown or undefined. */
|
|
8
|
+
Unknown = "unknown",
|
|
9
|
+
/** Indicates that the call includes audio. */
|
|
10
|
+
Audio = "audio",
|
|
11
|
+
/** Indicates that the call includes video. */
|
|
12
|
+
Video = "video",
|
|
13
|
+
/** Indicates that the call includes video-based screen sharing. */
|
|
14
|
+
VideoBasedScreenSharing = "videoBasedScreenSharing",
|
|
15
|
+
/** Indicates that the call includes data sharing or messaging. */
|
|
16
|
+
Data = "data"
|
|
17
|
+
}
|
|
18
|
+
/** Represents parameters for {@link startCall | StartCall}. */
|
|
19
|
+
export interface StartCallParams {
|
|
20
|
+
/**
|
|
21
|
+
* Comma-separated list of user IDs representing the participants of the call.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Currently the User ID field supports the Microsoft Entra UserPrincipalName,
|
|
25
|
+
* typically an email address, or in case of a PSTN call, it supports a pstn
|
|
26
|
+
* mri 4:\<phonenumber>.
|
|
27
|
+
*/
|
|
28
|
+
targets: string[];
|
|
29
|
+
/**
|
|
30
|
+
* List of modalities for the call. Defaults to [“audio”].
|
|
31
|
+
*/
|
|
32
|
+
requestedModalities?: CallModalities[];
|
|
33
|
+
/**
|
|
34
|
+
* An optional parameter that informs about the source of the deep link
|
|
35
|
+
*/
|
|
36
|
+
source?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Starts a call with other users
|
|
40
|
+
*
|
|
41
|
+
* @param startCallParams - Parameters for the call
|
|
42
|
+
*
|
|
43
|
+
* @throws Error if call capability is not supported
|
|
44
|
+
* @throws Error if host notifies of a failed start call attempt in a legacy Teams environment
|
|
45
|
+
* @returns always true if the host notifies of a successful call inititation
|
|
46
|
+
*/
|
|
47
|
+
export declare function startCall(startCallParams: StartCallParams): Promise<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Checks if the call capability is supported by the host
|
|
50
|
+
* @returns boolean to represent whether the call capability is supported
|
|
51
|
+
*
|
|
52
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
53
|
+
*/
|
|
54
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes information needed to start a chat
|
|
3
|
+
* @module
|
|
4
|
+
*/
|
|
5
|
+
interface OpenChatRequest {
|
|
6
|
+
/**
|
|
7
|
+
* An optional message used when initiating chat
|
|
8
|
+
*/
|
|
9
|
+
message?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Used when starting a chat with one person
|
|
13
|
+
*
|
|
14
|
+
* @see OpenGroupChatRequest for use when a chat with more than one person
|
|
15
|
+
*/
|
|
16
|
+
export interface OpenSingleChatRequest extends OpenChatRequest {
|
|
17
|
+
/**
|
|
18
|
+
* The [Microsoft Entra UPN](https://learn.microsoft.com/entra/identity/hybrid/connect/plan-connect-userprincipalname) (usually but not always an e-mail address)
|
|
19
|
+
* of the user with whom to begin a chat
|
|
20
|
+
*/
|
|
21
|
+
user: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Used when starting a chat with more than one person
|
|
25
|
+
*
|
|
26
|
+
* @see OpenSingleChatRequest for use in a chat with only one person
|
|
27
|
+
*/
|
|
28
|
+
export interface OpenGroupChatRequest extends OpenChatRequest {
|
|
29
|
+
/**
|
|
30
|
+
* Array containing [Microsoft Entra UPNs](https://learn.microsoft.com/entra/identity/hybrid/connect/plan-connect-userprincipalname) (usually but not always an e-mail address)
|
|
31
|
+
* of users with whom to begin a chat
|
|
32
|
+
*/
|
|
33
|
+
users: string[];
|
|
34
|
+
/**
|
|
35
|
+
* The display name of a conversation for 3 or more users (chats with fewer than three users will ignore this field)
|
|
36
|
+
*/
|
|
37
|
+
topic?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Contains functionality to start chat with others
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Allows the user to open a chat with a single user and allows
|
|
44
|
+
* for the user to specify the message they wish to send.
|
|
45
|
+
*
|
|
46
|
+
* @param openChatRequest: {@link OpenSingleChatRequest}- a request object that contains a user's email as well as an optional message parameter.
|
|
47
|
+
*
|
|
48
|
+
* @returns Promise resolved upon completion
|
|
49
|
+
*/
|
|
50
|
+
export declare function openChat(openChatRequest: OpenSingleChatRequest): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Allows the user to create a chat with multiple users (2+) and allows
|
|
53
|
+
* for the user to specify a message and name the topic of the conversation. If
|
|
54
|
+
* only 1 user is provided into users array default back to origin openChat.
|
|
55
|
+
*
|
|
56
|
+
* @param openChatRequest: {@link OpenGroupChatRequest} - a request object that contains a list of user emails as well as optional parameters for message and topic (display name for the group chat).
|
|
57
|
+
*
|
|
58
|
+
* @returns Promise resolved upon completion
|
|
59
|
+
*/
|
|
60
|
+
export declare function openGroupChat(openChatRequest: OpenGroupChatRequest): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Checks if the chat capability is supported by the host
|
|
63
|
+
* @returns boolean to represent whether the chat capability is supported
|
|
64
|
+
*
|
|
65
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
66
|
+
*/
|
|
67
|
+
export declare function isSupported(): boolean;
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interact with the system clipboard
|
|
3
|
+
*
|
|
4
|
+
* @beta
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Function to copy data to clipboard.
|
|
9
|
+
* @remarks
|
|
10
|
+
* Note: clipboard.write only supports Text, HTML, PNG, and JPEG data format.
|
|
11
|
+
* MIME type for Text -> `text/plain`, HTML -> `text/html`, PNG/JPEG -> `image/(png | jpeg)`
|
|
12
|
+
* Also, JPEG will be converted to PNG image when copying to clipboard.
|
|
13
|
+
*
|
|
14
|
+
* @param blob - A Blob object representing the data to be copied to clipboard.
|
|
15
|
+
* @returns A string promise which resolves to success message from the clipboard or
|
|
16
|
+
* rejects with error stating the reason for failure.
|
|
17
|
+
*/
|
|
18
|
+
export declare function write(blob: Blob): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Function to read data from clipboard.
|
|
21
|
+
*
|
|
22
|
+
* @returns A promise blob which resolves to the data read from the clipboard or
|
|
23
|
+
* rejects stating the reason for failure.
|
|
24
|
+
* Note: Returned blob type will contain one of the MIME type `image/png`, `text/plain` or `text/html`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function read(): Promise<Blob>;
|
|
27
|
+
/**
|
|
28
|
+
* Checks if clipboard capability is supported by the host
|
|
29
|
+
* @returns boolean to represent whether the clipboard capability is supported
|
|
30
|
+
*
|
|
31
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
32
|
+
*
|
|
33
|
+
* @beta
|
|
34
|
+
*/
|
|
35
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module for monitoring network connectivity status.
|
|
3
|
+
*
|
|
4
|
+
* Provides real-time network state (online/offline, WiFi/cellular) from the native layer,
|
|
5
|
+
* which is more reliable than the browser's `navigator.onLine`.
|
|
6
|
+
*
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Network connectivity status.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConnectivityStatus {
|
|
13
|
+
/** Whether the device currently has internet connectivity. */
|
|
14
|
+
connected: boolean;
|
|
15
|
+
/** The type of network connection: "wifi", "cellular", "ethernet", "none", or "unknown". */
|
|
16
|
+
type: 'wifi' | 'cellular' | 'ethernet' | 'none' | 'unknown';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Gets the current network connectivity status.
|
|
20
|
+
*
|
|
21
|
+
* @returns A Promise resolving with the current connectivity status.
|
|
22
|
+
* @throws Error if the capability is not supported.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const status = await connectivity.getStatus();
|
|
27
|
+
* if (!status.connected) {
|
|
28
|
+
* showOfflineBanner();
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function getStatus(): Promise<ConnectivityStatus>;
|
|
33
|
+
/**
|
|
34
|
+
* Registers a listener for connectivity status changes.
|
|
35
|
+
* After registration, listen for the `connectivityStatusChange` CustomEvent on `window`.
|
|
36
|
+
*
|
|
37
|
+
* @returns A Promise that resolves when the listener is registered.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* await connectivity.registerOnStatusChange();
|
|
42
|
+
* window.addEventListener('connectivityStatusChange', (e: CustomEvent) => {
|
|
43
|
+
* const { connected, type } = e.detail;
|
|
44
|
+
* updateNetworkUI(connected, type);
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function registerOnStatusChange(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Checks if the connectivity capability is supported by the host.
|
|
51
|
+
*/
|
|
52
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/** HostClientType represents the different client platforms on which host can be run. */
|
|
2
|
+
export declare enum HostClientType {
|
|
3
|
+
/** Represents the desktop client of host, which is installed on a user's computer and runs as a standalone application. */
|
|
4
|
+
desktop = "desktop",
|
|
5
|
+
/** Represents the web-based client of host, which runs in a web browser. */
|
|
6
|
+
web = "web",
|
|
7
|
+
/** Represents the Android mobile client of host, which runs on Android devices such as smartphones and tablets. */
|
|
8
|
+
android = "android",
|
|
9
|
+
/** Represents the iOS mobile client of host, which runs on iOS devices such as iPhones. */
|
|
10
|
+
ios = "ios",
|
|
11
|
+
/** Represents the iPadOS client of host, which runs on iOS devices such as iPads. */
|
|
12
|
+
ipados = "ipados",
|
|
13
|
+
/** The host is running on a macOS client, which runs on devices such as MacBooks. */
|
|
14
|
+
macos = "macos",
|
|
15
|
+
/** The host is running on a visionOS client, which runs on devices such as Apple Vision. */
|
|
16
|
+
visionOS = "visionOS",
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated
|
|
19
|
+
* As of TeamsJS v2.0.0, please use {@link teamsRoomsWindows} instead.
|
|
20
|
+
*/
|
|
21
|
+
rigel = "rigel",
|
|
22
|
+
/** Represents the client of host, which runs on surface hub devices. */
|
|
23
|
+
surfaceHub = "surfaceHub",
|
|
24
|
+
/** Represents the client of host, which runs on Teams Rooms on Windows devices. More information on Microsoft Teams Rooms on Windows can be found [Microsoft Teams Rooms (Windows)](https://support.microsoft.com/office/microsoft-teams-rooms-windows-help-e667f40e-5aab-40c1-bd68-611fe0002ba2)*/
|
|
25
|
+
teamsRoomsWindows = "teamsRoomsWindows",
|
|
26
|
+
/** Represents the client of host, which runs on Teams Rooms on Android devices. More information on Microsoft Teams Rooms on Android can be found [Microsoft Teams Rooms (Android)].(https://support.microsoft.com/office/get-started-with-teams-rooms-on-android-68517298-d513-46be-8d6d-d41db5e6b4b2)*/
|
|
27
|
+
teamsRoomsAndroid = "teamsRoomsAndroid",
|
|
28
|
+
/** Represents the client of host, which runs on Teams phones. More information can be found [Microsoft Teams Phones](https://support.microsoft.com/office/get-started-with-teams-phones-694ca17d-3ecf-40ca-b45e-d21b2c442412) */
|
|
29
|
+
teamsPhones = "teamsPhones",
|
|
30
|
+
/** Represents the client of host, which runs on Teams displays devices. More information can be found [Microsoft Teams Displays](https://support.microsoft.com/office/get-started-with-teams-displays-ff299825-7f13-4528-96c2-1d3437e6d4e6) */
|
|
31
|
+
teamsDisplays = "teamsDisplays"
|
|
32
|
+
}
|
|
33
|
+
/** HostName indicates the possible hosts for your application. */
|
|
34
|
+
export declare enum HostName {
|
|
35
|
+
/**
|
|
36
|
+
* Office.com and Office Windows App
|
|
37
|
+
*/
|
|
38
|
+
office = "Office",
|
|
39
|
+
/**
|
|
40
|
+
* For "desktop" specifically, this refers to the new, pre-release version of Outlook for Windows.
|
|
41
|
+
* Also used on other platforms that map to a single Outlook client.
|
|
42
|
+
*/
|
|
43
|
+
outlook = "Outlook",
|
|
44
|
+
/**
|
|
45
|
+
* Outlook for Windows: the classic, native, desktop client
|
|
46
|
+
*/
|
|
47
|
+
outlookWin32 = "OutlookWin32",
|
|
48
|
+
/**
|
|
49
|
+
* Microsoft-internal test Host
|
|
50
|
+
*/
|
|
51
|
+
orange = "Orange",
|
|
52
|
+
/**
|
|
53
|
+
* Microsoft connected workplace platform
|
|
54
|
+
*/
|
|
55
|
+
places = "Places",
|
|
56
|
+
/**
|
|
57
|
+
* Teams
|
|
58
|
+
*/
|
|
59
|
+
teams = "Teams",
|
|
60
|
+
/**
|
|
61
|
+
* Modern Teams
|
|
62
|
+
*/
|
|
63
|
+
teamsModern = "TeamsModern"
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* FrameContexts provides information about the context in which the app is running within the host.
|
|
67
|
+
* Developers can use FrameContexts to determine how their app should behave in different contexts,
|
|
68
|
+
* and can use the information provided by the context to adapt the app to the user's needs.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* If your app is running in the "settings" context, you should be displaying your apps configuration page.
|
|
72
|
+
* If the app is running in the content context, the developer may want to display information relevant to
|
|
73
|
+
* the content the user is currently viewing.
|
|
74
|
+
*/
|
|
75
|
+
export declare enum FrameContexts {
|
|
76
|
+
/**
|
|
77
|
+
* App's frame context from where settings page can be accessed.
|
|
78
|
+
* See [how to create a configuration page.]( https://learn.microsoft.com/microsoftteams/platform/tabs/how-to/create-tab-pages/configuration-page?tabs=teamsjs-v2)
|
|
79
|
+
*/
|
|
80
|
+
settings = "settings",
|
|
81
|
+
/** The default context for the app where all the content of the app is displayed. */
|
|
82
|
+
content = "content",
|
|
83
|
+
/** Frame context used when app is running in the authentication window launched by calling {@link authentication.authenticate} */
|
|
84
|
+
authentication = "authentication",
|
|
85
|
+
/** The page shown when the user uninstalls the app. */
|
|
86
|
+
remove = "remove",
|
|
87
|
+
/** A task module is a pop-up window that can be used to display a form, a dialog, or other interactive content within the host. */
|
|
88
|
+
task = "task",
|
|
89
|
+
/** The side panel is a persistent panel that is displayed on the right side of the host and can be used to display content or UI that is relevant to the current page or tab. */
|
|
90
|
+
sidePanel = "sidePanel",
|
|
91
|
+
/** The stage is a large area that is displayed at the center of the host and can be used to display content or UI that requires a lot of space, such as a video player or a document editor. */
|
|
92
|
+
stage = "stage",
|
|
93
|
+
/** App's frame context from where meetingStage can be accessed in a meeting session, which is the primary area where video and presentation content is displayed during a meeting. */
|
|
94
|
+
meetingStage = "meetingStage"
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* RenderingSurfaces describes the context or surface in which your app is being displayed within the host application.
|
|
98
|
+
* This parameter allows your app to detect where it is rendered (for example, in a side panel or stage view)
|
|
99
|
+
* and adjust its behavior or UI accordingly. The intent is to help developers understand the user's context of use,
|
|
100
|
+
* not the exact pixel size or layout. If a host (such as Outlook Meeting Apps) changes the size of a surface (e.g., makes the side panel larger),
|
|
101
|
+
* it will still use the same RenderingSurface value. Developers are expected to use responsive UI techniques to adapt to size changes,
|
|
102
|
+
* since the user's context and intent remain the same even if the surface dimensions change.
|
|
103
|
+
*/
|
|
104
|
+
export declare enum RenderingSurfaces {
|
|
105
|
+
/**
|
|
106
|
+
* Copilot running as a side panel in the host application.
|
|
107
|
+
*/
|
|
108
|
+
copilotSidePanel = "copilotSidePanel",
|
|
109
|
+
/**
|
|
110
|
+
* Copilot running in the main pane of the host application.
|
|
111
|
+
*/
|
|
112
|
+
copilotMainPane = "copilotMainPane",
|
|
113
|
+
/**
|
|
114
|
+
* Copilot running in full screen mode as an embedded app in the host application.
|
|
115
|
+
*/
|
|
116
|
+
copilotFullScreen = "copilotFullScreen"
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Indicates the team type, currently used to distinguish between different team
|
|
120
|
+
* types in Office 365 for Education (team types 1, 2, 3, and 4).
|
|
121
|
+
*/
|
|
122
|
+
export declare enum TeamType {
|
|
123
|
+
/** Represents a standard or classic team in host that is designed for ongoing collaboration and communication among a group of people. */
|
|
124
|
+
Standard = 0,
|
|
125
|
+
/** Represents an educational team in host that is designed for classroom collaboration and communication among students and teachers. */
|
|
126
|
+
Edu = 1,
|
|
127
|
+
/** Represents a class team in host that is designed for classroom collaboration and communication among students and teachers in a structured environment. */
|
|
128
|
+
Class = 2,
|
|
129
|
+
/** Represents a professional learning community (PLC) team in host that is designed for educators to collaborate and share resources and best practices. */
|
|
130
|
+
Plc = 3,
|
|
131
|
+
/** Represents a staff team in host that is designed for staff collaboration and communication among staff members.*/
|
|
132
|
+
Staff = 4
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Indicates the various types of roles of a user in a team.
|
|
136
|
+
*/
|
|
137
|
+
export declare enum UserTeamRole {
|
|
138
|
+
/** Represents that the user is an owner or administrator of the team. */
|
|
139
|
+
Admin = 0,
|
|
140
|
+
/** Represents that the user is a standard member of the team. */
|
|
141
|
+
User = 1,
|
|
142
|
+
/** Represents that the user does not have any role in the team. */
|
|
143
|
+
Guest = 2
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Dialog module dimension enum
|
|
147
|
+
*/
|
|
148
|
+
export declare enum DialogDimension {
|
|
149
|
+
/** Represents a large-sized dialog box, which is typically used for displaying large amounts of content or complex workflows that require more space. */
|
|
150
|
+
Large = "large",
|
|
151
|
+
/** Represents a medium-sized dialog box, which is typically used for displaying moderate amounts of content or workflows that require less space. */
|
|
152
|
+
Medium = "medium",
|
|
153
|
+
/** Represents a small-sized dialog box, which is typically used for displaying simple messages or workflows that require minimal space.*/
|
|
154
|
+
Small = "small"
|
|
155
|
+
}
|
|
156
|
+
import { AdaptiveCardVersion, SdkError } from './interfaces';
|
|
157
|
+
/**
|
|
158
|
+
* @deprecated
|
|
159
|
+
* As of TeamsJS v2.0.0, please use {@link DialogDimension} instead.
|
|
160
|
+
*/
|
|
161
|
+
export { DialogDimension as TaskModuleDimension };
|
|
162
|
+
import { HostVersionsInfo } from './interfaces';
|
|
163
|
+
/**
|
|
164
|
+
* The type of the channel with which the content is associated.
|
|
165
|
+
*/
|
|
166
|
+
export declare enum ChannelType {
|
|
167
|
+
/** The default channel type. Type of channel is used for general collaboration and communication within a team. */
|
|
168
|
+
Regular = "Regular",
|
|
169
|
+
/** Type of channel is used for sensitive or confidential communication within a team and is only accessible to members of the channel. */
|
|
170
|
+
Private = "Private",
|
|
171
|
+
/** Type of channel is used for collaboration between multiple teams or groups and is accessible to members of all the teams or groups. */
|
|
172
|
+
Shared = "Shared"
|
|
173
|
+
}
|
|
174
|
+
/** An error object indicating that the requested operation or feature is not supported on the current platform or device.
|
|
175
|
+
* @typedef {Object} SdkError
|
|
176
|
+
*/
|
|
177
|
+
export declare const errorNotSupportedOnPlatform: SdkError;
|
|
178
|
+
/**
|
|
179
|
+
* @hidden
|
|
180
|
+
*
|
|
181
|
+
* Minimum Adaptive Card version supported by the host.
|
|
182
|
+
*/
|
|
183
|
+
export declare const minAdaptiveCardVersion: AdaptiveCardVersion;
|
|
184
|
+
/**
|
|
185
|
+
* @hidden
|
|
186
|
+
*
|
|
187
|
+
* Adaptive Card version supported by the Teams v1 client.
|
|
188
|
+
*/
|
|
189
|
+
export declare const teamsMinAdaptiveCardVersion: HostVersionsInfo;
|
|
190
|
+
/**
|
|
191
|
+
* @hidden
|
|
192
|
+
* An error object indicates that the image count from visualMedia.image API is invalid.
|
|
193
|
+
*
|
|
194
|
+
* @beta
|
|
195
|
+
*/
|
|
196
|
+
export declare const errorInvalidCount: Error;
|
|
197
|
+
/**
|
|
198
|
+
* @hidden
|
|
199
|
+
* An error object indicates that the response from the visualMedia.image API is invalid.
|
|
200
|
+
*
|
|
201
|
+
* @beta
|
|
202
|
+
*/
|
|
203
|
+
export declare const errorInvalidResponse: Error;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AdaptiveCardDialogInfo } from '../../interfaces';
|
|
2
|
+
import { DialogSubmitHandler } from '../dialog';
|
|
3
|
+
import * as bot from './bot';
|
|
4
|
+
/**
|
|
5
|
+
* Allows app to open an adaptive card based dialog.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This function cannot be called from inside of a dialog
|
|
9
|
+
*
|
|
10
|
+
* @param adaptiveCardDialogInfo - An object containing the parameters of the dialog module {@link AdaptiveCardDialogInfo}.
|
|
11
|
+
* @param submitHandler - Handler that triggers when a dialog fires an [Action.Submit](https://adaptivecards.io/explorer/Action.Submit.html) or when the user closes the dialog.
|
|
12
|
+
*/
|
|
13
|
+
export declare function open(adaptiveCardDialogInfo: AdaptiveCardDialogInfo, submitHandler?: DialogSubmitHandler): void;
|
|
14
|
+
/**
|
|
15
|
+
* Checks if dialog.adaptiveCard module is supported by the host
|
|
16
|
+
*
|
|
17
|
+
* @returns boolean to represent whether dialog.adaptiveCard module is supported
|
|
18
|
+
*
|
|
19
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
20
|
+
*/
|
|
21
|
+
export declare function isSupported(): boolean;
|
|
22
|
+
export { bot };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module for interaction with adaptive card dialogs that need to communicate with the bot framework
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { BotAdaptiveCardDialogInfo } from '../../interfaces';
|
|
7
|
+
import { DialogSubmitHandler } from '../dialog';
|
|
8
|
+
/**
|
|
9
|
+
* Allows an app to open an adaptive card-based dialog module using bot.
|
|
10
|
+
*
|
|
11
|
+
* @param botAdaptiveCardDialogInfo - An object containing the parameters of the dialog module including completionBotId.
|
|
12
|
+
* @param submitHandler - Handler that triggers when the dialog has been submitted or closed.
|
|
13
|
+
*/
|
|
14
|
+
export declare function open(botAdaptiveCardDialogInfo: BotAdaptiveCardDialogInfo, submitHandler?: DialogSubmitHandler): void;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if dialog.adaptiveCard.bot capability is supported by the host
|
|
17
|
+
*
|
|
18
|
+
* @returns boolean to represent whether dialog.adaptiveCard.bot is supported
|
|
19
|
+
*
|
|
20
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
21
|
+
*/
|
|
22
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as adaptiveCard from './adaptiveCard/adaptiveCard';
|
|
2
|
+
import * as update from './update';
|
|
3
|
+
import * as url from './url/url';
|
|
4
|
+
/**
|
|
5
|
+
* Data Structure to represent the SDK response when dialog closes
|
|
6
|
+
*/
|
|
7
|
+
export interface ISdkResponse {
|
|
8
|
+
/**
|
|
9
|
+
* Error in case there is a failure before dialog submission
|
|
10
|
+
*/
|
|
11
|
+
err?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Value provided in the `result` parameter by the dialog when the {@linkcode url.submit} function
|
|
14
|
+
* was called.
|
|
15
|
+
* If the dialog was closed by the user without submitting (e.g., using a control in the corner
|
|
16
|
+
* of the dialog), this value will be `undefined` here.
|
|
17
|
+
*/
|
|
18
|
+
result?: string | object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Handler used to receive and process messages sent between a dialog and the app that launched it
|
|
22
|
+
*/
|
|
23
|
+
export type PostMessageChannel = (message: any) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Handler used for receiving results when a dialog closes, either the value passed by {@linkcode url.submit}
|
|
26
|
+
* or an error if the dialog was closed by the user.
|
|
27
|
+
*
|
|
28
|
+
* @see {@linkcode ISdkResponse}
|
|
29
|
+
*/
|
|
30
|
+
export type DialogSubmitHandler = (result: ISdkResponse) => void;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
* Hide from docs because this function is only used during initialization
|
|
34
|
+
*
|
|
35
|
+
* Adds register handlers for messageForChild upon initialization and only in the tasks FrameContext. {@link FrameContexts.task}
|
|
36
|
+
* Function is called during app initialization
|
|
37
|
+
* @internal
|
|
38
|
+
* Limited to Microsoft-internal use
|
|
39
|
+
*/
|
|
40
|
+
export declare function initialize(): void;
|
|
41
|
+
/**
|
|
42
|
+
* This function currently serves no purpose and should not be used. All functionality that used
|
|
43
|
+
* to be covered by this method is now in subcapabilities and those isSupported methods should be
|
|
44
|
+
* used directly.
|
|
45
|
+
*
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
export declare function isSupported(): boolean;
|
|
49
|
+
export { adaptiveCard, url, update };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module to update the dialog
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { DialogSize } from '../interfaces';
|
|
7
|
+
/**
|
|
8
|
+
* Update dimensions - height/width of a dialog.
|
|
9
|
+
*
|
|
10
|
+
* @param dimensions - An object containing width and height properties.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resize(dimensions: DialogSize): void;
|
|
13
|
+
/**
|
|
14
|
+
* Checks if dialog.update capability is supported by the host
|
|
15
|
+
* @returns boolean to represent whether dialog.update capabilty is supported
|
|
16
|
+
*
|
|
17
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
18
|
+
*/
|
|
19
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module to open a dialog that sends results to the bot framework
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { BotUrlDialogInfo } from '../../interfaces';
|
|
7
|
+
import { DialogSubmitHandler, PostMessageChannel } from '../dialog';
|
|
8
|
+
/**
|
|
9
|
+
* Allows an app to open a dialog that sends submitted data to a bot.
|
|
10
|
+
*
|
|
11
|
+
* @param botUrlDialogInfo - An object containing the parameters of the dialog module including completionBotId.
|
|
12
|
+
* @param submitHandler - Handler that triggers when the dialog has been submitted or closed.
|
|
13
|
+
* @param messageFromChildHandler - Handler that triggers if dialog sends a message to the app.
|
|
14
|
+
*
|
|
15
|
+
* @returns a function that can be used to send messages to the dialog.
|
|
16
|
+
*/
|
|
17
|
+
export declare function open(botUrlDialogInfo: BotUrlDialogInfo, submitHandler?: DialogSubmitHandler, messageFromChildHandler?: PostMessageChannel): void;
|
|
18
|
+
/**
|
|
19
|
+
* Checks if dialog.url.bot capability is supported by the host
|
|
20
|
+
*
|
|
21
|
+
* @returns boolean to represent whether dialog.url.bot is supported
|
|
22
|
+
*
|
|
23
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
24
|
+
*/
|
|
25
|
+
export declare function isSupported(): boolean;
|