@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,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
|
4
|
+
* Modified to 2.0.1 which is hightest till now so that if any client doesn't pass version in initialize function, it will be set to highest.
|
|
5
|
+
* Mobile clients are passing versions, hence will be applicable to web and desktop clients only.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
* Limited to Microsoft-internal use
|
|
9
|
+
*/
|
|
10
|
+
export declare const defaultSDKVersionForCompatCheck = "2.0.1";
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
* This is the client version when selectMedia API - VideoAndImage is supported on mobile.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
* Limited to Microsoft-internal use
|
|
17
|
+
*/
|
|
18
|
+
export declare const videoAndImageMediaAPISupportVersion = "2.0.2";
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
* This is the client version when selectMedia API - Video with non-full screen mode is supported on mobile.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
* Limited to Microsoft-internal use
|
|
25
|
+
*/
|
|
26
|
+
export declare const nonFullScreenVideoModeAPISupportVersion = "2.0.3";
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
* This is the client version when selectMedia API - ImageOutputFormats is supported on mobile.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
* Limited to Microsoft-internal use
|
|
33
|
+
*/
|
|
34
|
+
export declare const imageOutputFormatsAPISupportVersion = "2.0.4";
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
* Minimum required client supported version for {@link getUserJoinedTeams} to be supported on {@link HostClientType.android}
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
* Limited to Microsoft-internal use
|
|
41
|
+
*/
|
|
42
|
+
export declare const getUserJoinedTeamsSupportedAndroidClientVersion = "2.0.1";
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
* This is the client version when location APIs (getLocation and showLocation) are supported.
|
|
46
|
+
*
|
|
47
|
+
* @internal
|
|
48
|
+
* Limited to Microsoft-internal use
|
|
49
|
+
*/
|
|
50
|
+
export declare const locationAPIsRequiredVersion = "1.9.0";
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
* This is the client version when permisisons are supported
|
|
54
|
+
*
|
|
55
|
+
* @internal
|
|
56
|
+
* Limited to Microsoft-internal use
|
|
57
|
+
*/
|
|
58
|
+
export declare const permissionsAPIsRequiredVersion = "2.0.1";
|
|
59
|
+
/**
|
|
60
|
+
* @hidden
|
|
61
|
+
* This is the client version when people picker API is supported on mobile.
|
|
62
|
+
*
|
|
63
|
+
* @internal
|
|
64
|
+
* Limited to Microsoft-internal use
|
|
65
|
+
*/
|
|
66
|
+
export declare const peoplePickerRequiredVersion = "2.0.0";
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
* This is the client version when captureImage API is supported on mobile.
|
|
70
|
+
*
|
|
71
|
+
* @internal
|
|
72
|
+
* Limited to Microsoft-internal use
|
|
73
|
+
*/
|
|
74
|
+
export declare const captureImageMobileSupportVersion = "1.7.0";
|
|
75
|
+
/**
|
|
76
|
+
* @hidden
|
|
77
|
+
* This is the client version when media APIs are supported on all three platforms ios, android and web.
|
|
78
|
+
*
|
|
79
|
+
* @internal
|
|
80
|
+
* Limited to Microsoft-internal use
|
|
81
|
+
*/
|
|
82
|
+
export declare const mediaAPISupportVersion = "1.8.0";
|
|
83
|
+
/**
|
|
84
|
+
* @hidden
|
|
85
|
+
* This is the client version when getMedia API is supported via Callbacks on all three platforms ios, android and web.
|
|
86
|
+
*
|
|
87
|
+
* @internal
|
|
88
|
+
* Limited to Microsoft-internal use
|
|
89
|
+
*/
|
|
90
|
+
export declare const getMediaCallbackSupportVersion = "2.0.0";
|
|
91
|
+
/**
|
|
92
|
+
* @hidden
|
|
93
|
+
* This is the client version when scanBarCode API is supported on mobile.
|
|
94
|
+
*
|
|
95
|
+
* @internal
|
|
96
|
+
* Limited to Microsoft-internal use
|
|
97
|
+
*/
|
|
98
|
+
export declare const scanBarCodeAPIMobileSupportVersion = "1.9.0";
|
|
99
|
+
/**
|
|
100
|
+
* @hidden
|
|
101
|
+
* Fallback list of valid origins
|
|
102
|
+
*
|
|
103
|
+
* @internal
|
|
104
|
+
* Limited to Microsoft-internal use
|
|
105
|
+
*/
|
|
106
|
+
export declare const validOriginsFallback: string[];
|
|
107
|
+
/**
|
|
108
|
+
* @hidden
|
|
109
|
+
* Timeout length for Fetch Call for Valid Origins
|
|
110
|
+
*
|
|
111
|
+
* @internal
|
|
112
|
+
* Limited to Microsoft-internal use
|
|
113
|
+
*/
|
|
114
|
+
export declare const ORIGIN_LIST_FETCH_TIMEOUT_IN_MS: number;
|
|
115
|
+
/**
|
|
116
|
+
* @hidden
|
|
117
|
+
* CDN endpoint of the list of valid origins
|
|
118
|
+
*
|
|
119
|
+
* @internal
|
|
120
|
+
* Limited to Microsoft-internal use
|
|
121
|
+
*/
|
|
122
|
+
export declare const validOriginsCdnEndpoint: URL;
|
|
123
|
+
/**
|
|
124
|
+
* @hidden
|
|
125
|
+
* The protocol used for deep links into Teams
|
|
126
|
+
*
|
|
127
|
+
* @internal
|
|
128
|
+
* Limited to Microsoft-internal use
|
|
129
|
+
*/
|
|
130
|
+
export declare const teamsDeepLinkProtocol = "https";
|
|
131
|
+
/**
|
|
132
|
+
* @hidden
|
|
133
|
+
* The host used for deep links into Teams
|
|
134
|
+
*
|
|
135
|
+
* @internal
|
|
136
|
+
* Limited to Microsoft-internal use
|
|
137
|
+
*/
|
|
138
|
+
export declare const teamsDeepLinkHost = "teams.microsoft.com";
|
|
139
|
+
/** @hidden */
|
|
140
|
+
export declare const errorLibraryNotInitialized = "The library has not yet been initialized";
|
|
141
|
+
/** @hidden */
|
|
142
|
+
export declare const errorRuntimeNotInitialized = "The runtime has not yet been initialized";
|
|
143
|
+
/** @hidden */
|
|
144
|
+
export declare const errorRuntimeNotSupported = "The runtime version is not supported";
|
|
145
|
+
/** @hidden */
|
|
146
|
+
export declare const errorCallNotStarted = "The call was not properly started";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App install dialog constants
|
|
3
|
+
*/
|
|
4
|
+
export declare const teamsDeepLinkUrlPathForAppInstall = "/l/app/";
|
|
5
|
+
/**
|
|
6
|
+
* Calendar constants
|
|
7
|
+
*/
|
|
8
|
+
export declare const teamsDeepLinkUrlPathForCalendar = "/l/meeting/new";
|
|
9
|
+
export declare const teamsDeepLinkAttendeesUrlParameterName = "attendees";
|
|
10
|
+
export declare const teamsDeepLinkStartTimeUrlParameterName = "startTime";
|
|
11
|
+
export declare const teamsDeepLinkEndTimeUrlParameterName = "endTime";
|
|
12
|
+
export declare const teamsDeepLinkSubjectUrlParameterName = "subject";
|
|
13
|
+
export declare const teamsDeepLinkContentUrlParameterName = "content";
|
|
14
|
+
/**
|
|
15
|
+
* Call constants
|
|
16
|
+
*/
|
|
17
|
+
export declare const teamsDeepLinkUrlPathForCall = "/l/call/0/0";
|
|
18
|
+
export declare const teamsDeepLinkSourceUrlParameterName = "source";
|
|
19
|
+
export declare const teamsDeepLinkWithVideoUrlParameterName = "withVideo";
|
|
20
|
+
/**
|
|
21
|
+
* Chat constants
|
|
22
|
+
*/
|
|
23
|
+
export declare const teamsDeepLinkUrlPathForChat = "/l/chat/0/0";
|
|
24
|
+
export declare const teamsDeepLinkUsersUrlParameterName = "users";
|
|
25
|
+
export declare const teamsDeepLinkTopicUrlParameterName = "topicName";
|
|
26
|
+
export declare const teamsDeepLinkMessageUrlParameterName = "message";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function createTeamsDeepLinkForChat(users: string[], topic?: string, message?: string): string;
|
|
2
|
+
export declare function createTeamsDeepLinkForCall(targets: string[], withVideo?: boolean, source?: string): string;
|
|
3
|
+
export declare function createTeamsDeepLinkForCalendar(attendees?: string[], startTime?: string, endTime?: string, subject?: string, content?: string): string;
|
|
4
|
+
export declare function createTeamsDeepLinkForAppInstallDialog(appId: string): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as dialog from '../public/dialog/dialog';
|
|
2
|
+
import { AdaptiveCardDialogInfo, BotAdaptiveCardDialogInfo } from '../public/interfaces';
|
|
3
|
+
import { BotUrlDialogInfo, DialogInfo, DialogSize, UrlDialogInfo } from '../public/interfaces';
|
|
4
|
+
import { ApiVersionNumber } from './telemetry';
|
|
5
|
+
/**
|
|
6
|
+
* v2 APIs telemetry file: All of APIs in this capability file should send out API version v2 ONLY
|
|
7
|
+
*/
|
|
8
|
+
export declare const dialogTelemetryVersionNumber: ApiVersionNumber;
|
|
9
|
+
export declare function updateResizeHelper(apiVersionTag: string, dimensions: DialogSize): void;
|
|
10
|
+
export declare function urlOpenHelper(apiVersionTag: string, urlDialogInfo: UrlDialogInfo, submitHandler?: dialog.DialogSubmitHandler, messageFromChildHandler?: dialog.PostMessageChannel): void;
|
|
11
|
+
export declare function botUrlOpenHelper(apiVersionTag: string, urlDialogInfo: BotUrlDialogInfo, submitHandler?: dialog.DialogSubmitHandler, messageFromChildHandler?: dialog.PostMessageChannel): void;
|
|
12
|
+
export declare function urlSubmitHelper(apiVersionTag: string, result?: string | object, appIds?: string | string[]): void;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
* Hide from docs
|
|
16
|
+
* --------
|
|
17
|
+
* Convert AdaptiveCardDialogInfo to DialogInfo to send the information to host in {@linkcode adaptiveCard.open} API.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export declare function getDialogInfoFromAdaptiveCardDialogInfo(adaptiveCardDialogInfo: AdaptiveCardDialogInfo): DialogInfo;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
* Hide from docs
|
|
25
|
+
* --------
|
|
26
|
+
* Convert BotAdaptiveCardDialogInfo to DialogInfo to send the information to host in {@linkcode adaptiveCard.open} API.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare function getDialogInfoFromBotAdaptiveCardDialogInfo(botAdaptiveCardDialogInfo: BotAdaptiveCardDialogInfo): DialogInfo;
|
|
31
|
+
export declare const storedMessages: string[];
|
|
32
|
+
export declare function handleDialogMessage(message: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateEmailAddress(emailString: string | null | undefined): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FrameContexts } from '../public/constants';
|
|
2
|
+
export declare class GlobalVars {
|
|
3
|
+
static initializeCalled: boolean;
|
|
4
|
+
static initializeCompleted: boolean;
|
|
5
|
+
static additionalValidOrigins: string[];
|
|
6
|
+
static initializePromise: Promise<void> | undefined;
|
|
7
|
+
static isFramelessWindow: boolean;
|
|
8
|
+
static frameContext: FrameContexts | undefined;
|
|
9
|
+
static hostClientType: string | undefined;
|
|
10
|
+
static clientSupportedSDKVersion: string;
|
|
11
|
+
static printCapabilityEnabled: boolean;
|
|
12
|
+
static readonly teamsJsInstanceId: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Context } from '../public/app/app';
|
|
2
|
+
import { FrameContexts } from '../public/constants';
|
|
3
|
+
import { HostToAppPerformanceMetrics, LoadContext, ResumeContext } from '../public/interfaces';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
* Limited to Microsoft-internal use
|
|
7
|
+
*/
|
|
8
|
+
export declare function initializeHandlers(): void;
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
* Limited to Microsoft-internal use
|
|
12
|
+
*/
|
|
13
|
+
export declare function uninitializeHandlers(): void;
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
* Limited to Microsoft-internal use
|
|
17
|
+
*/
|
|
18
|
+
export declare function callHandler(name: string, args?: unknown[]): [true, unknown] | [false, undefined];
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* Limited to Microsoft-internal use
|
|
22
|
+
*/
|
|
23
|
+
export declare function registerHandler(apiVersionTag: string, name: string, handler: Function, sendMessage?: boolean, args?: unknown[]): void;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* Limited to Microsoft-internal use
|
|
27
|
+
*/
|
|
28
|
+
export declare function removeHandler(name: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* Limited to Microsoft-internal use
|
|
32
|
+
*/
|
|
33
|
+
export declare function doesHandlerExist(name: string): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
* Undocumented helper function with shared code between deprecated version and current version of register*Handler APIs
|
|
37
|
+
*
|
|
38
|
+
* @internal
|
|
39
|
+
* Limited to Microsoft-internal use
|
|
40
|
+
*
|
|
41
|
+
* @param apiVersionTag - The tag of the api version and name
|
|
42
|
+
* @param name - The name of the handler to register.
|
|
43
|
+
* @param handler - The handler to invoke.
|
|
44
|
+
* @param contexts - The context within which it is valid to register this handler.
|
|
45
|
+
* @param registrationHelper - The helper function containing logic pertaining to a specific version of the API.
|
|
46
|
+
*/
|
|
47
|
+
export declare function registerHandlerHelper(apiVersionTag: string, name: string, handler: Function, contexts: FrameContexts[], registrationHelper?: () => void): void;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* Limited to Microsoft-internal use
|
|
51
|
+
*/
|
|
52
|
+
export declare function registerOnThemeChangeHandler(apiVersionTag: string, handler: (theme: string) => void): void;
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* Limited to Microsoft-internal use
|
|
56
|
+
*/
|
|
57
|
+
export declare function registerOnContextChangeHandler(apiVersionTag: string, handler: (context: Context) => void): void;
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* Limited to Microsoft-internal use
|
|
61
|
+
*/
|
|
62
|
+
export declare function handleThemeChange(theme: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* Limited to Microsoft-internal use
|
|
66
|
+
*/
|
|
67
|
+
export declare function handleContextChange(context: Context): void;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* Limited to Microsoft-internal use
|
|
71
|
+
*/
|
|
72
|
+
export declare function registerHostToAppPerformanceMetricsHandler(handler: (metrics: HostToAppPerformanceMetrics) => void): void;
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* Limited to Microsoft-internal use
|
|
76
|
+
*/
|
|
77
|
+
export declare function handleHostToAppPerformanceMetrics(metrics: HostToAppPerformanceMetrics): void;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* Limited to Microsoft-internal use
|
|
81
|
+
*
|
|
82
|
+
* @deprecated
|
|
83
|
+
*/
|
|
84
|
+
export declare function registerOnLoadHandler(apiVersionTag: string, handler: (context: LoadContext) => void): void;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* Limited to Microsoft-internal use
|
|
88
|
+
*
|
|
89
|
+
* @deprecated
|
|
90
|
+
*/
|
|
91
|
+
export declare function registerBeforeUnloadHandler(apiVersionTag: string, handler: (readyToUnload: () => void) => boolean): void;
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* Limited to Microsoft-internal use
|
|
95
|
+
*/
|
|
96
|
+
export declare function registerBeforeSuspendOrTerminateHandler(handler: () => Promise<void>): void;
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
* Limited to Microsoft-internal use
|
|
100
|
+
*/
|
|
101
|
+
export declare function registerOnResumeHandler(handler: (context: ResumeContext) => void): void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Debugger } from 'debug';
|
|
2
|
+
import { UUID as MessageUUID } from '../public/uuidObject';
|
|
3
|
+
import { CallbackInformation } from './interfaces';
|
|
4
|
+
import { MessageRequest, MessageResponse } from './messageObjects';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
* Limited to Microsoft-internal use
|
|
8
|
+
*/
|
|
9
|
+
export default class HostToAppMessageDelayTelemetry {
|
|
10
|
+
private static callbackInformation;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* Limited to Microsoft-internal use
|
|
14
|
+
*
|
|
15
|
+
* Store information about a particular message.
|
|
16
|
+
* @param messageUUID The message id for the request.
|
|
17
|
+
* @param callbackInformation The information of the callback.
|
|
18
|
+
*/
|
|
19
|
+
static storeCallbackInformation(messageUUID: MessageUUID, callbackInformation: CallbackInformation): void;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* Limited to Microsoft-internal use
|
|
23
|
+
*/
|
|
24
|
+
static clearMessages(): void;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* Limited to Microsoft-internal use
|
|
28
|
+
*/
|
|
29
|
+
static deleteMessageInformation(callbackId: MessageUUID): void;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* Limited to Microsoft-internal use
|
|
33
|
+
*
|
|
34
|
+
* Executes telemetry actions related to host to app performance metrics where event is raised in the host.
|
|
35
|
+
* @param message The request from the host.
|
|
36
|
+
* @param logger The logger in case an error occurs.
|
|
37
|
+
* @param endTime The ending time for calculating the elapsed time
|
|
38
|
+
*/
|
|
39
|
+
static handleOneWayPerformanceMetrics(message: MessageRequest, logger: Debugger, endTime?: number): void;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* Limited to Microsoft-internal use
|
|
43
|
+
*
|
|
44
|
+
* Executes telemetry actions related to host to app performance metrics.
|
|
45
|
+
* @param callbackId The message id for the request.
|
|
46
|
+
* @param message The response from the host.
|
|
47
|
+
* @param logger The logger in case an error occurs.
|
|
48
|
+
* @param endTime The ending time for calculating the elapsed time
|
|
49
|
+
*/
|
|
50
|
+
static handlePerformanceMetrics(callbackID: MessageUUID, message: MessageResponse, logger: Debugger, endTime?: number): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AppId } from '../public/appId';
|
|
2
|
+
import { ValidatedSafeString } from '../public/validatedSafeString';
|
|
3
|
+
/**
|
|
4
|
+
* This function can be used to validate if a string is a "valid" app id.
|
|
5
|
+
* Valid is a relative term, in this case. Truly valid app ids are UUIDs as documented in the schema:
|
|
6
|
+
* https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#id
|
|
7
|
+
* However, there are some older internal/hard-coded apps which violate this schema and use names like com.microsoft.teamspace.tab.youtube.
|
|
8
|
+
* For compatibility with these legacy apps, we unfortunately cannot securely and completely validate app ids as UUIDs. Based
|
|
9
|
+
* on this, the validation is limited to checking for script tags, length, and non-printable characters.
|
|
10
|
+
*
|
|
11
|
+
* @param potentialAppId A string to check if it's a "valid" app id
|
|
12
|
+
* @throws Error with a message describing the exact validation violation
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateStringLength(potentialAppId: string): void;
|
|
15
|
+
export declare function validateSafeContent(potentialAppId: string): void;
|
|
16
|
+
export declare const minimumValidAppIdLength = 4;
|
|
17
|
+
export declare const maximumValidAppIdLength = 256;
|
|
18
|
+
export declare function isStringWithinAppIdLengthLimits(potentialAppId: string): boolean;
|
|
19
|
+
export declare function doesStringContainNonPrintableCharacters(str: string): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
* Checks if the incoming app id is an instance of AppId
|
|
23
|
+
* @param potentialAppId An object to check if it's an instance of AppId
|
|
24
|
+
* @throws Error with a message describing the violation
|
|
25
|
+
* @internal
|
|
26
|
+
* Limited to Microsoft-internal use
|
|
27
|
+
*/
|
|
28
|
+
export declare function validateAppIdInstance(potentialAppId: AppId): void;
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
* Checks if the incoming string is an instance of ValidatedSafeString
|
|
32
|
+
* @param incomingString An object to check if it's an instance of ValidatedSafeString
|
|
33
|
+
* @throws Error with a message describing the violation
|
|
34
|
+
* @internal
|
|
35
|
+
* Limited to Microsoft-internal use
|
|
36
|
+
*/
|
|
37
|
+
export declare function validateSafeStringInstance(incomingString: ValidatedSafeString): void;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* Hide from docs
|
|
4
|
+
* Shim in definitions used for browser-compat
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
* Limited to Microsoft-internal use
|
|
8
|
+
*/
|
|
9
|
+
export interface DOMMessageEvent {
|
|
10
|
+
origin?: any;
|
|
11
|
+
source?: any;
|
|
12
|
+
data?: any;
|
|
13
|
+
ports?: any;
|
|
14
|
+
originalEvent: DOMMessageEvent;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
* Hide from docs
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
* Limited to Microsoft-internal use
|
|
22
|
+
*/
|
|
23
|
+
export interface TeamsNativeClient {
|
|
24
|
+
framelessPostMessage(msg: string): void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
* Hide from docs
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
* Limited to Microsoft-internal use
|
|
32
|
+
*/
|
|
33
|
+
export interface ExtendedWindow extends Window {
|
|
34
|
+
nativeInterface: TeamsNativeClient;
|
|
35
|
+
onNativeMessage(evt: DOMMessageEvent): void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
* Meant for Message objects that are sent to children without id
|
|
40
|
+
*
|
|
41
|
+
* @internal
|
|
42
|
+
* Limited to Microsoft-internal use
|
|
43
|
+
*/
|
|
44
|
+
export interface DOMMessageEvent {
|
|
45
|
+
func: string;
|
|
46
|
+
args?: any[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
* Meant for providing information related to certain callback context.
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
* Limited to Microsoft-internal use
|
|
54
|
+
*/
|
|
55
|
+
export interface CallbackInformation {
|
|
56
|
+
name: string;
|
|
57
|
+
calledAt: number;
|
|
58
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IBaseRuntime, Runtime } from '../public/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Ensures `initialize` was called. This function does NOT verify that a response from Host was received and initialization completed.
|
|
4
|
+
*
|
|
5
|
+
* `ensureInitializeCalled` should only be used for APIs which:
|
|
6
|
+
* - work in all FrameContexts
|
|
7
|
+
* - are part of a required Capability
|
|
8
|
+
* - are suspected to be used directly after calling `initialize`, potentially without awaiting the `initialize` call itself
|
|
9
|
+
*
|
|
10
|
+
* For most APIs {@link ensureInitialized} is the right validation function to use instead.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Limited to Microsoft-internal use
|
|
14
|
+
*/
|
|
15
|
+
export declare function ensureInitializeCalled(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Ensures `initialize` was called and response from Host was received and processed and that `runtime` is initialized.
|
|
18
|
+
* If expected FrameContexts are provided, it also validates that the current FrameContext matches one of the expected ones.
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
* Limited to Microsoft-internal use
|
|
22
|
+
*/
|
|
23
|
+
export declare function ensureInitialized(runtime: IBaseRuntime, ...expectedFrameContexts: string[]): runtime is Runtime;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
* Checks whether the platform has knowledge of this API by doing a comparison
|
|
27
|
+
* on API required version and platform supported version of the SDK
|
|
28
|
+
*
|
|
29
|
+
* @param requiredVersion - SDK version required by the API
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
* Limited to Microsoft-internal use
|
|
33
|
+
*/
|
|
34
|
+
export declare function isCurrentSDKVersionAtLeast(requiredVersion?: string): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
* Helper function to identify if host client is either android, ios, ipados, or visionOS
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
* Limited to Microsoft-internal use
|
|
41
|
+
*/
|
|
42
|
+
export declare function isHostClientMobile(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
* Helper function which indicates if current API is supported on mobile or not.
|
|
46
|
+
* @throws SdkError if host client is not android/ios or if the requiredVersion is not
|
|
47
|
+
* supported by platform or not. Null is returned in case of success.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
* Limited to Microsoft-internal use
|
|
51
|
+
*/
|
|
52
|
+
export declare function throwExceptionIfMobileApiIsNotSupported(requiredVersion?: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
* Processes the valid origins specifuied by the user, de-duplicates and converts them into a regexp
|
|
56
|
+
* which is used later for message source/origin validation
|
|
57
|
+
*
|
|
58
|
+
* @internal
|
|
59
|
+
* Limited to Microsoft-internal use
|
|
60
|
+
*/
|
|
61
|
+
export declare function processAdditionalValidOrigins(validMessageOrigins: string[]): void;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as marketplace from '../public/marketplace';
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
* deserialize the cart data:
|
|
5
|
+
* - convert url properties from string to URL
|
|
6
|
+
* @param cartItems The cart items
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
* Limited to Microsoft-internal use
|
|
10
|
+
*/
|
|
11
|
+
export declare function deserializeCart(cartData: any): marketplace.Cart;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
* deserialize the cart items:
|
|
15
|
+
* - convert url properties from string to URL
|
|
16
|
+
* @param cartItems The cart items
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
* Limited to Microsoft-internal use
|
|
20
|
+
*/
|
|
21
|
+
export declare function deserializeCartItems(cartItemsData: any): marketplace.CartItem;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
* serialize the cart items:
|
|
25
|
+
* - make URL properties to string
|
|
26
|
+
* @param cartItems The cart items
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
* Limited to Microsoft-internal use
|
|
30
|
+
*/
|
|
31
|
+
export declare const serializeCartItems: (cartItems: marketplace.CartItem[]) => any;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
* Validate the cart item properties are valid
|
|
35
|
+
* @param cartItems The cart items
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
* Limited to Microsoft-internal use
|
|
39
|
+
*/
|
|
40
|
+
export declare function validateCartItems(cartItems: marketplace.CartItem[]): void;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
* Validate accessories
|
|
44
|
+
* @param accessoryItems The accessories to be validated
|
|
45
|
+
*
|
|
46
|
+
* @internal
|
|
47
|
+
* Limited to Microsoft-internal use
|
|
48
|
+
*/
|
|
49
|
+
export declare function validateAccessoryItems(accessoryItems: marketplace.Item[] | undefined | null): void;
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
* Validate the basic cart item properties are valid
|
|
53
|
+
* @param basicCartItem The basic cart item
|
|
54
|
+
*
|
|
55
|
+
* @internal
|
|
56
|
+
* Limited to Microsoft-internal use
|
|
57
|
+
*/
|
|
58
|
+
export declare function validateBasicCartItem(basicCartItem: marketplace.Item): void;
|
|
59
|
+
/**
|
|
60
|
+
* @hidden
|
|
61
|
+
* Validate the id is valid
|
|
62
|
+
* @param id A uuid string
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
* Limited to Microsoft-internal use
|
|
66
|
+
*/
|
|
67
|
+
export declare function validateUuid(id: string | undefined | null): void;
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
* Validate the cart item properties are valid
|
|
71
|
+
* @param price The price to be validated
|
|
72
|
+
*
|
|
73
|
+
* @internal
|
|
74
|
+
* Limited to Microsoft-internal use
|
|
75
|
+
*/
|
|
76
|
+
export declare function validatePrice(price: number): void;
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
* Validate quantity
|
|
80
|
+
* @param quantity The quantity to be validated
|
|
81
|
+
*
|
|
82
|
+
* @internal
|
|
83
|
+
* Limited to Microsoft-internal use
|
|
84
|
+
*/
|
|
85
|
+
export declare function validateQuantity(quantity: number): void;
|
|
86
|
+
/**
|
|
87
|
+
* @hidden
|
|
88
|
+
* Validate cart status
|
|
89
|
+
* @param cartStatus The cartStatus to be validated
|
|
90
|
+
*
|
|
91
|
+
* @internal
|
|
92
|
+
* Limited to Microsoft-internal use
|
|
93
|
+
*/
|
|
94
|
+
export declare function validateCartStatus(cartStatus: marketplace.CartStatus): void;
|