@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,220 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* APIs involving Live Share, a framework for building real-time collaborative apps.
|
|
3
|
+
* For more information, visit https://aka.ms/teamsliveshare
|
|
4
|
+
*
|
|
5
|
+
* @see LiveShareHost
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
* The meeting roles of a user.
|
|
11
|
+
* Used in Live Share for its role verification feature.
|
|
12
|
+
* For more information, visit https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-capabilities?tabs=javascript#role-verification-for-live-data-structures
|
|
13
|
+
*/
|
|
14
|
+
export declare enum UserMeetingRole {
|
|
15
|
+
/**
|
|
16
|
+
* Guest role.
|
|
17
|
+
*/
|
|
18
|
+
guest = "Guest",
|
|
19
|
+
/**
|
|
20
|
+
* Attendee role.
|
|
21
|
+
*/
|
|
22
|
+
attendee = "Attendee",
|
|
23
|
+
/**
|
|
24
|
+
* Presenter role.
|
|
25
|
+
*/
|
|
26
|
+
presenter = "Presenter",
|
|
27
|
+
/**
|
|
28
|
+
* Organizer role.
|
|
29
|
+
*/
|
|
30
|
+
organizer = "Organizer"
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
* State of the current Live Share session's Fluid container.
|
|
35
|
+
* This is used internally by the `LiveShareClient` when joining a Live Share session.
|
|
36
|
+
*/
|
|
37
|
+
export declare enum ContainerState {
|
|
38
|
+
/**
|
|
39
|
+
* The call to `LiveShareHost.setContainerId()` successfully created the container mapping
|
|
40
|
+
* for the current Live Share session.
|
|
41
|
+
*/
|
|
42
|
+
added = "Added",
|
|
43
|
+
/**
|
|
44
|
+
* A container mapping for the current Live Share session already exists.
|
|
45
|
+
* This indicates to Live Share that a new container does not need be created.
|
|
46
|
+
*/
|
|
47
|
+
alreadyExists = "AlreadyExists",
|
|
48
|
+
/**
|
|
49
|
+
* The call to `LiveShareHost.setContainerId()` failed to create the container mapping.
|
|
50
|
+
* This happens when another client has already set the container ID for the session.
|
|
51
|
+
*/
|
|
52
|
+
conflict = "Conflict",
|
|
53
|
+
/**
|
|
54
|
+
* A container mapping for the current Live Share session does not yet exist.
|
|
55
|
+
* This indicates to Live Share that a new container should be created.
|
|
56
|
+
*/
|
|
57
|
+
notFound = "NotFound"
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @hidden
|
|
61
|
+
* Returned from `LiveShareHost.getFluidContainerId()` and `LiveShareHost.setFluidContainerId`.
|
|
62
|
+
* This response specifies the container mapping information for the current Live Share session.
|
|
63
|
+
*/
|
|
64
|
+
export interface IFluidContainerInfo {
|
|
65
|
+
/**
|
|
66
|
+
* State of the containerId mapping.
|
|
67
|
+
*/
|
|
68
|
+
containerState: ContainerState;
|
|
69
|
+
/**
|
|
70
|
+
* ID of the container to join for the meeting. Undefined if the container hasn't been
|
|
71
|
+
* created yet.
|
|
72
|
+
*/
|
|
73
|
+
containerId: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* If true, the local client should create the container and then save the created containers
|
|
76
|
+
* ID to the mapping service.
|
|
77
|
+
*/
|
|
78
|
+
shouldCreate: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* If `containerId` is undefined and `shouldCreate` is false, the container isn't ready
|
|
81
|
+
* but another client is creating it. In this case, the local client should wait the specified
|
|
82
|
+
* amount of time before calling `LiveShareHost.getFluidContainerId()` again.
|
|
83
|
+
*/
|
|
84
|
+
retryAfter: number;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @hidden
|
|
88
|
+
* Returned from `LiveShareHost.getNtpTime()` to specify the global timestamp for the current
|
|
89
|
+
* Live Share session.
|
|
90
|
+
*/
|
|
91
|
+
export interface INtpTimeInfo {
|
|
92
|
+
/**
|
|
93
|
+
* ISO 8601 formatted server time. For example: '2019-09-07T15:50-04:00'
|
|
94
|
+
*/
|
|
95
|
+
ntpTime: string;
|
|
96
|
+
/**
|
|
97
|
+
* Server time expressed as the number of milliseconds since the ECMAScript epoch.
|
|
98
|
+
*/
|
|
99
|
+
ntpTimeInUTC: number;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @hidden
|
|
103
|
+
* Returned from `LiveShareHost.getFluidTenantInfo()` to specify the Fluid service to use for the
|
|
104
|
+
* current Live Share session.
|
|
105
|
+
*/
|
|
106
|
+
export interface IFluidTenantInfo {
|
|
107
|
+
/**
|
|
108
|
+
* The Fluid Tenant ID Live Share should use.
|
|
109
|
+
*/
|
|
110
|
+
tenantId: string;
|
|
111
|
+
/**
|
|
112
|
+
* The Fluid service endpoint Live Share should use.
|
|
113
|
+
*/
|
|
114
|
+
serviceEndpoint: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @hidden
|
|
118
|
+
* Returned from `LiveShareHost.getClientInfo()` to specify the client info for a
|
|
119
|
+
* particular client in a Live Share session.
|
|
120
|
+
*/
|
|
121
|
+
export interface IClientInfo {
|
|
122
|
+
/**
|
|
123
|
+
* The host user's `userId` associated with a given `clientId`
|
|
124
|
+
*/
|
|
125
|
+
userId: string;
|
|
126
|
+
/**
|
|
127
|
+
* User's meeting roles associated with a given `clientId`
|
|
128
|
+
*/
|
|
129
|
+
roles: UserMeetingRole[];
|
|
130
|
+
/**
|
|
131
|
+
* The user's display name associated with a given `clientId`.
|
|
132
|
+
* If this returns as `undefined`, the user may need to update their host client.
|
|
133
|
+
*/
|
|
134
|
+
displayName?: string;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Checks if the interactive capability is supported by the host
|
|
138
|
+
* @returns boolean to represent whether the interactive capability is supported
|
|
139
|
+
*
|
|
140
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
141
|
+
*/
|
|
142
|
+
export declare function isSupported(): boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Live Share host implementation for connecting to real-time collaborative sessions.
|
|
145
|
+
* Designed for use with the `LiveShareClient` class in the `@microsoft/live-share` package.
|
|
146
|
+
* Learn more at https://aka.ms/teamsliveshare
|
|
147
|
+
*
|
|
148
|
+
* @remarks
|
|
149
|
+
* The `LiveShareClient` class from Live Share uses the hidden API's to join/manage the session.
|
|
150
|
+
* To create a new `LiveShareHost` instance use the static `LiveShareHost.create()` function.
|
|
151
|
+
*/
|
|
152
|
+
export declare class LiveShareHost {
|
|
153
|
+
/**
|
|
154
|
+
* @hidden
|
|
155
|
+
* Returns the Fluid Tenant connection info for user's current context.
|
|
156
|
+
*/
|
|
157
|
+
getFluidTenantInfo(): Promise<IFluidTenantInfo>;
|
|
158
|
+
/**
|
|
159
|
+
* @hidden
|
|
160
|
+
* Returns the fluid access token for mapped container Id.
|
|
161
|
+
*
|
|
162
|
+
* @param containerId Fluid's container Id for the request. Undefined for new containers.
|
|
163
|
+
* @returns token for connecting to Fluid's session.
|
|
164
|
+
*/
|
|
165
|
+
getFluidToken(containerId?: string): Promise<string>;
|
|
166
|
+
/**
|
|
167
|
+
* @hidden
|
|
168
|
+
* Returns the ID of the fluid container associated with the user's current context.
|
|
169
|
+
*/
|
|
170
|
+
getFluidContainerId(): Promise<IFluidContainerInfo>;
|
|
171
|
+
/**
|
|
172
|
+
* @hidden
|
|
173
|
+
* Sets the ID of the fluid container associated with the current context.
|
|
174
|
+
*
|
|
175
|
+
* @remarks
|
|
176
|
+
* If this returns false, the client should delete the container they created and then call
|
|
177
|
+
* `getFluidContainerId()` to get the ID of the container being used.
|
|
178
|
+
* @param containerId ID of the fluid container the client created.
|
|
179
|
+
* @returns A data structure with a `containerState` indicating the success or failure of the request.
|
|
180
|
+
*/
|
|
181
|
+
setFluidContainerId(containerId: string): Promise<IFluidContainerInfo>;
|
|
182
|
+
/**
|
|
183
|
+
* @hidden
|
|
184
|
+
* Returns the shared clock server's current time.
|
|
185
|
+
*/
|
|
186
|
+
getNtpTime(): Promise<INtpTimeInfo>;
|
|
187
|
+
/**
|
|
188
|
+
* @hidden
|
|
189
|
+
* Associates the fluid client ID with a set of user roles.
|
|
190
|
+
*
|
|
191
|
+
* @param clientId The ID for the current user's Fluid client. Changes on reconnects.
|
|
192
|
+
* @returns The roles for the current user.
|
|
193
|
+
*/
|
|
194
|
+
registerClientId(clientId: string): Promise<UserMeetingRole[]>;
|
|
195
|
+
/**
|
|
196
|
+
* @hidden
|
|
197
|
+
* Returns the roles associated with a client ID.
|
|
198
|
+
*
|
|
199
|
+
* @param clientId The Client ID the message was received from.
|
|
200
|
+
* @returns The roles for a given client. Returns `undefined` if the client ID hasn't been registered yet.
|
|
201
|
+
*/
|
|
202
|
+
getClientRoles(clientId: string): Promise<UserMeetingRole[] | undefined>;
|
|
203
|
+
/**
|
|
204
|
+
* @hidden
|
|
205
|
+
* Returns the `IClientInfo` associated with a client ID.
|
|
206
|
+
*
|
|
207
|
+
* @param clientId The Client ID the message was received from.
|
|
208
|
+
* @returns The info for a given client. Returns `undefined` if the client ID hasn't been registered yet.
|
|
209
|
+
*/
|
|
210
|
+
getClientInfo(clientId: string): Promise<IClientInfo | undefined>;
|
|
211
|
+
/**
|
|
212
|
+
* Factories a new `LiveShareHost` instance for use with the `LiveShareClient` class
|
|
213
|
+
* in the `@microsoft/live-share` package.
|
|
214
|
+
*
|
|
215
|
+
* @remarks
|
|
216
|
+
* `app.initialize()` must first be called before using this API.
|
|
217
|
+
* This API can only be called from `meetingStage` or `sidePanel` contexts.
|
|
218
|
+
*/
|
|
219
|
+
static create(): LiveShareHost;
|
|
220
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated
|
|
3
|
+
* As of 2.1.0, please use geoLocation module.
|
|
4
|
+
*
|
|
5
|
+
* Module to interact with the location module-specific part of the SDK.
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import { SdkError } from './interfaces';
|
|
9
|
+
/** Get location callback function type */
|
|
10
|
+
export type getLocationCallbackFunctionType = (error: SdkError, location: Location) => void;
|
|
11
|
+
/** Show location callback function type */
|
|
12
|
+
export type showLocationCallbackFunctionType = (error: SdkError, status: boolean) => void;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
* Data Structure to set the location properties in getLocation call.
|
|
16
|
+
*/
|
|
17
|
+
export interface LocationProps {
|
|
18
|
+
/**
|
|
19
|
+
whether user can alter location or not
|
|
20
|
+
if false, user will be shown current location
|
|
21
|
+
and wouldn't be allowed to alter it
|
|
22
|
+
*/
|
|
23
|
+
allowChooseLocation: boolean;
|
|
24
|
+
/**
|
|
25
|
+
whether selected location should be shown to user on map or not.
|
|
26
|
+
If allowChooseLocation is true, this parameter will be ignored by platform.
|
|
27
|
+
If allowChooseLocation is false, and this parameter is not provided, default
|
|
28
|
+
value will be false.
|
|
29
|
+
*/
|
|
30
|
+
showMap?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
* Data struture to represent the location information
|
|
35
|
+
*/
|
|
36
|
+
export interface Location {
|
|
37
|
+
/**
|
|
38
|
+
Latitude of the location
|
|
39
|
+
*/
|
|
40
|
+
latitude: number;
|
|
41
|
+
/**
|
|
42
|
+
Longitude of the location
|
|
43
|
+
*/
|
|
44
|
+
longitude: number;
|
|
45
|
+
/**
|
|
46
|
+
Accuracy of the coordinates captured
|
|
47
|
+
*/
|
|
48
|
+
accuracy?: number;
|
|
49
|
+
/**
|
|
50
|
+
Time stamp when the location was captured
|
|
51
|
+
*/
|
|
52
|
+
timestamp?: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated
|
|
56
|
+
* As of 2.1.0, please use one of the following functions:
|
|
57
|
+
* - {@link geoLocation.getCurrentLocation geoLocation.getCurrentLocation(): Promise\<Location\>} to get the current location.
|
|
58
|
+
* - {@link geoLocation.map.chooseLocation geoLocation.map.chooseLocation(): Promise\<Location\>} to choose location on map.
|
|
59
|
+
*
|
|
60
|
+
* Fetches user location
|
|
61
|
+
* @param props {@link LocationProps} - Specifying how the location request is handled
|
|
62
|
+
* @param callback - Callback to invoke when current user location is fetched
|
|
63
|
+
*/
|
|
64
|
+
export declare function getLocation(props: LocationProps, callback: getLocationCallbackFunctionType): void;
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated
|
|
67
|
+
* As of 2.1.0, please use {@link geoLocation.map.showLocation geoLocation.map.showLocation(location: Location): Promise\<void\>} instead.
|
|
68
|
+
*
|
|
69
|
+
* Shows the location on map corresponding to the given coordinates
|
|
70
|
+
*
|
|
71
|
+
* @param location - Location to be shown on the map
|
|
72
|
+
* @param callback - Callback to invoke when the location is opened on map
|
|
73
|
+
*/
|
|
74
|
+
export declare function showLocation(location: Location, callback: showLocationCallbackFunctionType): void;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated
|
|
77
|
+
* As of 2.1.0, please use geoLocation module, and use {@link geoLocation.isSupported geoLocation.isSupported: boolean} to check if geoLocation is supported.
|
|
78
|
+
*
|
|
79
|
+
* Checks if Location capability is supported by the host
|
|
80
|
+
*
|
|
81
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
82
|
+
*
|
|
83
|
+
* @returns boolean to represent whether Location is supported
|
|
84
|
+
*/
|
|
85
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used to interact with mail capability, including opening and composing mail.
|
|
3
|
+
* @module
|
|
4
|
+
*
|
|
5
|
+
* @beta
|
|
6
|
+
*/
|
|
7
|
+
import { ComposeMailParams } from './mail';
|
|
8
|
+
/**
|
|
9
|
+
* Extended parameters for {@link composeMail}, including support for external handoff.
|
|
10
|
+
*
|
|
11
|
+
* This interface wraps {@link ComposeMailParamsWithHandoff} to provide additional functionality for scenarios
|
|
12
|
+
* where an external handoff is needed, such as transferring a draft email created in BizChat.
|
|
13
|
+
*
|
|
14
|
+
* @see {@link ComposeNewParams} for parameters when composing a new mail item.
|
|
15
|
+
* @see {@link ComposeReplyOrForwardParams} for reply or forward-specific parameters.
|
|
16
|
+
* @see {@link ComposeMailType} for supported mail operation types.
|
|
17
|
+
*
|
|
18
|
+
* @beta
|
|
19
|
+
*/
|
|
20
|
+
export interface ComposeMailParamsWithHandoff {
|
|
21
|
+
/**
|
|
22
|
+
* Base parameters for composing a mail item.
|
|
23
|
+
*/
|
|
24
|
+
composeMailParams: ComposeMailParams;
|
|
25
|
+
/**
|
|
26
|
+
* Use this endpoint to retrieve the handoff payload when BizChat creates an email draft for external handoff.
|
|
27
|
+
*/
|
|
28
|
+
handoffId: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Compose a new email in the user's mailbox, opening it in the drafts UX instead of the standard email.
|
|
32
|
+
*
|
|
33
|
+
* @param composeMailParamsWithHandoff - Object that specifies the type of mail item to compose and the details of the mail item.
|
|
34
|
+
* @returns { Promise<void> } - promise resolves after the compose window has opened successfully in host SDK.
|
|
35
|
+
* @throws Error with a message describing whether the capability is not initialized or the input is invalid.
|
|
36
|
+
*
|
|
37
|
+
* @beta
|
|
38
|
+
*/
|
|
39
|
+
export declare function composeMailWithHandoff(composeMailParamsWithHandoff: ComposeMailParamsWithHandoff): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Checks if the mail capability and handoff sub-capability is supported by the host
|
|
42
|
+
* @returns boolean to represent whether the handoff sub-capability is supported
|
|
43
|
+
*
|
|
44
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
45
|
+
*
|
|
46
|
+
* @beta
|
|
47
|
+
*/
|
|
48
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used to interact with mail capability, including opening and composing mail.
|
|
3
|
+
* @module
|
|
4
|
+
*/
|
|
5
|
+
import * as handoff from './handoff';
|
|
6
|
+
/**
|
|
7
|
+
* Opens a mail message in the host.
|
|
8
|
+
*
|
|
9
|
+
* @param openMailItemParams - Object that specifies the ID of the mail message.
|
|
10
|
+
*/
|
|
11
|
+
export declare function openMailItem(openMailItemParams: OpenMailItemParams): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Compose a new email in the user's mailbox.
|
|
14
|
+
*
|
|
15
|
+
* @param composeMailParams - Object that specifies the type of mail item to compose and the details of the mail item.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare function composeMail(composeMailParams: ComposeMailParams): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Checks if the mail capability is supported by the host
|
|
21
|
+
* @returns boolean to represent whether the mail capability is supported
|
|
22
|
+
*
|
|
23
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
24
|
+
*/
|
|
25
|
+
export declare function isSupported(): boolean;
|
|
26
|
+
/** Defines the parameters used to open a mail item in the user's mailbox */
|
|
27
|
+
export interface OpenMailItemParams {
|
|
28
|
+
/** An unique base64-encoded string id that represents the itemId or messageId. */
|
|
29
|
+
itemId: string;
|
|
30
|
+
}
|
|
31
|
+
/** Defines compose mail types. */
|
|
32
|
+
export declare enum ComposeMailType {
|
|
33
|
+
/** Compose a new mail message. */
|
|
34
|
+
New = "new",
|
|
35
|
+
/** Compose a reply to the sender of an existing mail message. */
|
|
36
|
+
Reply = "reply",
|
|
37
|
+
/** Compose a reply to all recipients of an existing mail message. */
|
|
38
|
+
ReplyAll = "replyAll",
|
|
39
|
+
/** Compose a new mail message with the content of an existing mail message forwarded to a new recipient. */
|
|
40
|
+
Forward = "forward"
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Foundational interface for all other mail compose interfaces
|
|
44
|
+
* Used for holding the type of mail item being composed
|
|
45
|
+
*
|
|
46
|
+
* @typeParam T - the identity type.
|
|
47
|
+
* @see {@link mail.ComposeMailType}
|
|
48
|
+
*/
|
|
49
|
+
interface ComposeMailBase<T extends ComposeMailType> {
|
|
50
|
+
/** Type of the mail item being composed. */
|
|
51
|
+
type: T;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Parameters supplied when composing a new mail item
|
|
55
|
+
*/
|
|
56
|
+
export interface ComposeNewParams extends ComposeMailBase<ComposeMailType.New> {
|
|
57
|
+
/**
|
|
58
|
+
* The To: recipients for the message
|
|
59
|
+
*/
|
|
60
|
+
toRecipients?: string[];
|
|
61
|
+
/**
|
|
62
|
+
* The Cc: recipients for the message
|
|
63
|
+
*/
|
|
64
|
+
ccRecipients?: string[];
|
|
65
|
+
/**
|
|
66
|
+
* The Bcc: recipients for the message
|
|
67
|
+
*/
|
|
68
|
+
bccRecipients?: string[];
|
|
69
|
+
/**
|
|
70
|
+
* The subject of the message
|
|
71
|
+
*/
|
|
72
|
+
subject?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The body of the message
|
|
75
|
+
*/
|
|
76
|
+
message?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Parameters supplied when composing a reply to or forward of a message
|
|
80
|
+
*
|
|
81
|
+
* @see {@link ComposeMailType}
|
|
82
|
+
*/
|
|
83
|
+
export interface ComposeReplyOrForwardParams<T extends ComposeMailType> extends ComposeMailBase<T> {
|
|
84
|
+
/** An unique base64-encoded string id that represents the mail message. */
|
|
85
|
+
itemid: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Parameters supplied to {@link composeMail} when composing a new mail item
|
|
89
|
+
*
|
|
90
|
+
* For ComposeMailType.New, it is valid to pass empty arrays for toRecipients, ccRecipients, and bccRecipients.
|
|
91
|
+
* This will result in a new email with (pre-populated) body content but no pre-populated recipients.
|
|
92
|
+
* @see {@link ComposeNewParams}
|
|
93
|
+
* @see {@link ComposeReplyOrForwardParams}
|
|
94
|
+
* @see {@link ComposeMailType}
|
|
95
|
+
*/
|
|
96
|
+
export type ComposeMailParams = ComposeNewParams | ComposeReplyOrForwardParams<ComposeMailType.Reply> | ComposeReplyOrForwardParams<ComposeMailType.ReplyAll> | ComposeReplyOrForwardParams<ComposeMailType.Forward>;
|
|
97
|
+
export { handoff };
|