@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,218 @@
|
|
|
1
|
+
import { Context, DeepLinkParameters, FrameContext, LoadContext, TabInformation, TabInstanceParameters } from './interfaces';
|
|
2
|
+
/** Type of callback used to indicate when {@link executeDeepLink} completes */
|
|
3
|
+
export type executeDeepLinkOnCompleteFunctionType = (status: boolean, reason?: string) => void;
|
|
4
|
+
/** Callback function type */
|
|
5
|
+
export type callbackFunctionType = () => void;
|
|
6
|
+
/** Get context callback function type */
|
|
7
|
+
export type getContextCallbackFunctionType = (context: Context) => void;
|
|
8
|
+
/** Get tab instances callback function type */
|
|
9
|
+
export type getTabInstancesCallbackFunctionType = (tabInfo: TabInformation) => void;
|
|
10
|
+
/** Register back button handler function type */
|
|
11
|
+
export type registerBackButtonHandlerFunctionType = () => boolean;
|
|
12
|
+
/** Register full screen handler function type */
|
|
13
|
+
export type registerFullScreenHandlerFunctionType = (isFullScreen: boolean) => void;
|
|
14
|
+
/** Register on theme change handler function type */
|
|
15
|
+
export type registerOnThemeChangeHandlerFunctionType = (theme: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
* As of TeamsJS v2.0.0, please use {@link app.initialize app.initialize(validMessageOrigins?: string[]): Promise\<void\>} instead.
|
|
19
|
+
*
|
|
20
|
+
* Initializes the library. This must be called before any other SDK calls
|
|
21
|
+
* but after the frame is loaded successfully.
|
|
22
|
+
* @param callback - Optionally specify a callback to invoke when Teams SDK has successfully initialized
|
|
23
|
+
* @param validMessageOrigins - Optionally specify a list of cross-frame message origins. This parameter is used if you know that your app
|
|
24
|
+
* will be hosted on a custom domain (i.e., not a standard Microsoft 365 host like Teams, Outlook, etc.) Most apps will never need
|
|
25
|
+
* to pass a value for this parameter.
|
|
26
|
+
* Any domains passed in the array must have the https: protocol on the string otherwise they will be ignored. Example: https://www.example.com
|
|
27
|
+
*/
|
|
28
|
+
export declare function initialize(callback?: callbackFunctionType, validMessageOrigins?: string[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
* As of TeamsJS v2.0.0, please use {@link teamsCore.enablePrintCapability teamsCore.enablePrintCapability(): void} instead.
|
|
32
|
+
*
|
|
33
|
+
* Enable print capability to support printing page using Ctrl+P and cmd+P
|
|
34
|
+
*/
|
|
35
|
+
export declare function enablePrintCapability(): void;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated
|
|
38
|
+
* As of TeamsJS v2.0.0, please use {@link teamsCore.print teamsCore.print(): void} instead.
|
|
39
|
+
*
|
|
40
|
+
* Default print handler
|
|
41
|
+
*/
|
|
42
|
+
export declare function print(): void;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated
|
|
45
|
+
* As of TeamsJS v2.0.0, please use {@link app.getContext app.getContext(): Promise\<app.Context\>} instead.
|
|
46
|
+
*
|
|
47
|
+
* Retrieves the current context the frame is running in.
|
|
48
|
+
*
|
|
49
|
+
* @param callback - The callback to invoke when the {@link Context} object is retrieved.
|
|
50
|
+
*/
|
|
51
|
+
export declare function getContext(callback: getContextCallbackFunctionType): void;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated
|
|
54
|
+
* As of TeamsJS v2.0.0, please use {@link app.registerOnThemeChangeHandler app.registerOnThemeChangeHandler(handler: registerOnThemeChangeHandlerFunctionType): void} instead.
|
|
55
|
+
*
|
|
56
|
+
* Registers a handler for theme changes.
|
|
57
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
58
|
+
*
|
|
59
|
+
* @param handler - The handler to invoke when the user changes their theme.
|
|
60
|
+
*/
|
|
61
|
+
export declare function registerOnThemeChangeHandler(handler: registerOnThemeChangeHandlerFunctionType): void;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated
|
|
64
|
+
* As of TeamsJS v2.0.0, please use {@link pages.registerFullScreenHandler pages.registerFullScreenHandler(handler: registerFullScreenHandlerFunctionType): void} instead.
|
|
65
|
+
*
|
|
66
|
+
* Registers a handler for changes from or to full-screen view for a tab.
|
|
67
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
68
|
+
*
|
|
69
|
+
* @param handler - The handler to invoke when the user toggles full-screen view for a tab.
|
|
70
|
+
*/
|
|
71
|
+
export declare function registerFullScreenHandler(handler: registerFullScreenHandlerFunctionType): void;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated
|
|
74
|
+
* As of TeamsJS v2.0.0, please use {@link pages.appButton.onClick pages.appButton.onClick(handler: callbackFunctionType): void} instead.
|
|
75
|
+
*
|
|
76
|
+
* Registers a handler for clicking the app button.
|
|
77
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
78
|
+
*
|
|
79
|
+
* @param handler - The handler to invoke when the personal app button is clicked in the app bar.
|
|
80
|
+
*/
|
|
81
|
+
export declare function registerAppButtonClickHandler(handler: callbackFunctionType): void;
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated
|
|
84
|
+
* As of TeamsJS v2.0.0, please use {@link pages.appButton.onHoverEnter pages.appButton.onHoverEnter(handler: callbackFunctionType): void} instead.
|
|
85
|
+
*
|
|
86
|
+
* Registers a handler for entering hover of the app button.
|
|
87
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
88
|
+
*
|
|
89
|
+
* @param handler - The handler to invoke when entering hover of the personal app button in the app bar.
|
|
90
|
+
*/
|
|
91
|
+
export declare function registerAppButtonHoverEnterHandler(handler: callbackFunctionType): void;
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated
|
|
94
|
+
* As of TeamsJS v2.0.0, please use {@link pages.appButton.onHoverLeave pages.appButton.onHoverLeave(handler: callbackFunctionType): void} instead.
|
|
95
|
+
*
|
|
96
|
+
* Registers a handler for exiting hover of the app button.
|
|
97
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
98
|
+
* @param handler - The handler to invoke when exiting hover of the personal app button in the app bar.
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
export declare function registerAppButtonHoverLeaveHandler(handler: callbackFunctionType): void;
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated
|
|
104
|
+
* As of TeamsJS v2.0.0, please use {@link pages.backStack.registerBackButtonHandler pages.backStack.registerBackButtonHandler(handler: registerBackButtonHandlerFunctionType): void} instead.
|
|
105
|
+
*
|
|
106
|
+
* Registers a handler for user presses of the Team client's back button. Experiences that maintain an internal
|
|
107
|
+
* navigation stack should use this handler to navigate the user back within their frame. If an app finds
|
|
108
|
+
* that after running its back button handler it cannot handle the event it should call the navigateBack
|
|
109
|
+
* method to ask the Teams client to handle it instead.
|
|
110
|
+
*
|
|
111
|
+
* @param handler - The handler to invoke when the user presses their Team client's back button.
|
|
112
|
+
*/
|
|
113
|
+
export declare function registerBackButtonHandler(handler: registerBackButtonHandlerFunctionType): void;
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated
|
|
116
|
+
* As of TeamsJS v2.0.0, please use {@link teamsCore.registerOnLoadHandler teamsCore.registerOnLoadHandler(handler: (context: LoadContext) => void): void} instead.
|
|
117
|
+
*
|
|
118
|
+
* @hidden
|
|
119
|
+
* Registers a handler to be called when the page has been requested to load.
|
|
120
|
+
*
|
|
121
|
+
* @param handler - The handler to invoke when the page is loaded.
|
|
122
|
+
*/
|
|
123
|
+
export declare function registerOnLoadHandler(handler: (context: LoadContext) => void): void;
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated
|
|
126
|
+
* As of TeamsJS v2.0.0, please use {@link teamsCore.registerBeforeUnloadHandler teamsCore.registerBeforeUnloadHandler(handler: (readyToUnload: callbackFunctionType) => boolean): void} instead.
|
|
127
|
+
*
|
|
128
|
+
* @hidden
|
|
129
|
+
* Registers a handler to be called before the page is unloaded.
|
|
130
|
+
*
|
|
131
|
+
* @param handler - The handler to invoke before the page is unloaded. If this handler returns true the page should
|
|
132
|
+
* invoke the readyToUnload function provided to it once it's ready to be unloaded.
|
|
133
|
+
*/
|
|
134
|
+
export declare function registerBeforeUnloadHandler(handler: (readyToUnload: callbackFunctionType) => boolean): void;
|
|
135
|
+
/**
|
|
136
|
+
* @deprecated
|
|
137
|
+
* As of TeamsJS v2.0.0, please use {@link pages.registerFocusEnterHandler pages.registerFocusEnterHandler(handler: (navigateForward: boolean) => void): void} instead.
|
|
138
|
+
*
|
|
139
|
+
* @hidden
|
|
140
|
+
* Registers a handler when focus needs to be passed from teams to the place of choice on app.
|
|
141
|
+
*
|
|
142
|
+
* @param handler - The handler to invoked by the app when they want the focus to be in the place of their choice.
|
|
143
|
+
*/
|
|
144
|
+
export declare function registerFocusEnterHandler(handler: (navigateForward: boolean) => boolean): void;
|
|
145
|
+
/**
|
|
146
|
+
* @deprecated
|
|
147
|
+
* As of TeamsJS v2.0.0, please use {@link pages.config.registerChangeConfigHandler pages.config.registerChangeConfigHandler(handler: callbackFunctionType): void} instead.
|
|
148
|
+
*
|
|
149
|
+
* Registers a handler for when the user reconfigurated tab.
|
|
150
|
+
*
|
|
151
|
+
* @param handler - The handler to invoke when the user click on Settings.
|
|
152
|
+
*/
|
|
153
|
+
export declare function registerChangeSettingsHandler(handler: callbackFunctionType): void;
|
|
154
|
+
/**
|
|
155
|
+
* @deprecated
|
|
156
|
+
* As of TeamsJS v2.0.0, please use {@link pages.tabs.getTabInstances pages.tabs.getTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
|
|
157
|
+
*
|
|
158
|
+
* Allows an app to retrieve for this user tabs that are owned by this app.
|
|
159
|
+
* If no TabInstanceParameters are passed, the app defaults to favorite teams and favorite channels.
|
|
160
|
+
*
|
|
161
|
+
* @param callback - The callback to invoke when the {@link TabInstanceParameters} object is retrieved.
|
|
162
|
+
* @param tabInstanceParameters - OPTIONAL Flags that specify whether to scope call to favorite teams or channels.
|
|
163
|
+
*/
|
|
164
|
+
export declare function getTabInstances(callback: getTabInstancesCallbackFunctionType, tabInstanceParameters?: TabInstanceParameters): void;
|
|
165
|
+
/**
|
|
166
|
+
* @deprecated
|
|
167
|
+
* As of TeamsJS v2.0.0, please use {@link pages.tabs.getMruTabInstances pages.tabs.getMruTabInstances(tabInstanceParameters?: TabInstanceParameters): Promise\<TabInformation\>} instead.
|
|
168
|
+
*
|
|
169
|
+
* Allows an app to retrieve the most recently used tabs for this user.
|
|
170
|
+
*
|
|
171
|
+
* @param callback - The callback to invoke when the {@link TabInformation} object is retrieved.
|
|
172
|
+
* @param tabInstanceParameters - OPTIONAL Ignored, kept for future use
|
|
173
|
+
*/
|
|
174
|
+
export declare function getMruTabInstances(callback: getTabInstancesCallbackFunctionType, tabInstanceParameters?: TabInstanceParameters): void;
|
|
175
|
+
/**
|
|
176
|
+
* @deprecated
|
|
177
|
+
* As of TeamsJS v2.0.0, please use {@link pages.shareDeepLink pages.shareDeepLink(deepLinkParameters: DeepLinkParameters): void} instead.
|
|
178
|
+
*
|
|
179
|
+
* Shares a deep link that a user can use to navigate back to a specific state in this page.
|
|
180
|
+
*
|
|
181
|
+
* @param deepLinkParameters - ID and label for the link and fallback URL.
|
|
182
|
+
*/
|
|
183
|
+
export declare function shareDeepLink(deepLinkParameters: DeepLinkParameters): void;
|
|
184
|
+
/**
|
|
185
|
+
* @deprecated
|
|
186
|
+
* This function was previously used for opening various types of links. As of TeamsJS v2.0.0, it has been replaced with multiple different
|
|
187
|
+
* functions depending on the type of link:
|
|
188
|
+
*
|
|
189
|
+
* - Use {@link pages.currentApp.navigateToDefaultPage} to navigate to the default page of your own app
|
|
190
|
+
* - Use {@link pages.currentApp.navigateTo} to navigate to a section of your own app
|
|
191
|
+
* - Use {@link pages.navigateToApp} to navigate to other apps besides your own
|
|
192
|
+
* - Use {@link app.openLink} for opening deep links to other parts of the host (e.g., to chats or channels) or
|
|
193
|
+
* general-purpose links (e.g., to external websites).
|
|
194
|
+
*
|
|
195
|
+
* @param deepLink deep link.
|
|
196
|
+
*/
|
|
197
|
+
export declare function executeDeepLink(deepLink: string, onComplete?: executeDeepLinkOnCompleteFunctionType): void;
|
|
198
|
+
/**
|
|
199
|
+
* @deprecated
|
|
200
|
+
* As of TeamsJS v2.0.0, please use {@link pages.setCurrentFrame pages.setCurrentFrame(frameInfo: FrameInfo): void} instead.
|
|
201
|
+
*
|
|
202
|
+
* Set the current Frame Context
|
|
203
|
+
*
|
|
204
|
+
* @param frameContext - FrameContext information to be set
|
|
205
|
+
*/
|
|
206
|
+
export declare function setFrameContext(frameContext: FrameContext): void;
|
|
207
|
+
/**
|
|
208
|
+
* @deprecated
|
|
209
|
+
* As of TeamsJS v2.0.0, please use {@link pages.initializeWithFrameContext pages.initializeWithFrameContext(frameInfo: FrameInfo, callback?: callbackFunctionType, validMessageOrigins?: string[],): void} instead.
|
|
210
|
+
*
|
|
211
|
+
* Initialize with FrameContext
|
|
212
|
+
*
|
|
213
|
+
* @param frameContext - FrameContext information to be set
|
|
214
|
+
* @param callback - The optional callback to be invoked be invoked after initilizing the frame context
|
|
215
|
+
* @param validMessageOrigins - Optionally specify a list of cross frame message origins.
|
|
216
|
+
* They must have https: protocol otherwise they will be ignored. Example: https:www.example.com
|
|
217
|
+
*/
|
|
218
|
+
export declare function initializeWithFrameContext(frameContext: FrameContext, callback?: callbackFunctionType, validMessageOrigins?: string[]): void;
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { HostClientType } from './constants';
|
|
2
|
+
import { HostVersionsInfo } from './interfaces';
|
|
3
|
+
export interface IBaseRuntime {
|
|
4
|
+
readonly apiVersion: number;
|
|
5
|
+
readonly hostVersionsInfo?: HostVersionsInfo;
|
|
6
|
+
readonly isLegacyTeams?: boolean;
|
|
7
|
+
readonly supports?: {};
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Latest runtime interface version
|
|
11
|
+
*/
|
|
12
|
+
export type Runtime = IRuntimeV4;
|
|
13
|
+
export declare const latestRuntimeApiVersion = 4;
|
|
14
|
+
interface IRuntimeV4 extends IBaseRuntime {
|
|
15
|
+
readonly apiVersion: 4;
|
|
16
|
+
readonly hostVersionsInfo?: HostVersionsInfo;
|
|
17
|
+
readonly isNAAChannelRecommended?: boolean;
|
|
18
|
+
readonly canParentManageNAATrustedOrigins?: boolean;
|
|
19
|
+
readonly isDeeplyNestedAuthSupported?: boolean;
|
|
20
|
+
readonly isLegacyTeams?: boolean;
|
|
21
|
+
readonly supports: {
|
|
22
|
+
readonly app?: {
|
|
23
|
+
readonly notifySuccessResponse?: {};
|
|
24
|
+
};
|
|
25
|
+
readonly appEntity?: {};
|
|
26
|
+
readonly appInstallDialog?: {};
|
|
27
|
+
readonly appPerformanceMetrics?: {};
|
|
28
|
+
readonly barCode?: {};
|
|
29
|
+
readonly calendar?: {};
|
|
30
|
+
readonly call?: {};
|
|
31
|
+
readonly chat?: {};
|
|
32
|
+
readonly clipboard?: {};
|
|
33
|
+
readonly conversations?: {};
|
|
34
|
+
readonly copilot?: {
|
|
35
|
+
readonly customTelemetry?: {};
|
|
36
|
+
readonly eligibility?: {};
|
|
37
|
+
readonly sidePanel?: {};
|
|
38
|
+
readonly view?: {};
|
|
39
|
+
};
|
|
40
|
+
readonly dialog?: {
|
|
41
|
+
readonly card?: {
|
|
42
|
+
readonly bot?: {};
|
|
43
|
+
};
|
|
44
|
+
readonly url?: {
|
|
45
|
+
readonly bot?: {};
|
|
46
|
+
readonly parentCommunication?: {};
|
|
47
|
+
};
|
|
48
|
+
readonly update?: {};
|
|
49
|
+
};
|
|
50
|
+
readonly externalAppAuthentication?: {};
|
|
51
|
+
readonly externalAppAuthenticationForCEA?: {};
|
|
52
|
+
readonly externalAppCardActions?: {};
|
|
53
|
+
readonly externalAppCardActionsForCEA?: {};
|
|
54
|
+
readonly externalAppCardActionsForDA?: {};
|
|
55
|
+
readonly externalAppCommands?: {};
|
|
56
|
+
readonly geoLocation?: {
|
|
57
|
+
readonly map?: {};
|
|
58
|
+
};
|
|
59
|
+
readonly hostEntity?: {
|
|
60
|
+
readonly tab?: {};
|
|
61
|
+
};
|
|
62
|
+
readonly interactive?: {};
|
|
63
|
+
readonly secondaryBrowser?: {};
|
|
64
|
+
readonly location?: {};
|
|
65
|
+
readonly logs?: {};
|
|
66
|
+
readonly mail?: {
|
|
67
|
+
readonly handoff?: {};
|
|
68
|
+
};
|
|
69
|
+
readonly marketplace?: {};
|
|
70
|
+
readonly meetingRoom?: {};
|
|
71
|
+
readonly menus?: {};
|
|
72
|
+
readonly messageChannels?: {
|
|
73
|
+
readonly telemetry?: {};
|
|
74
|
+
readonly dataLayer?: {};
|
|
75
|
+
};
|
|
76
|
+
readonly monetization?: {};
|
|
77
|
+
readonly nestedAppAuth?: {};
|
|
78
|
+
readonly notifications?: {};
|
|
79
|
+
readonly otherAppStateChange?: {};
|
|
80
|
+
readonly pages?: {
|
|
81
|
+
readonly appButton?: {};
|
|
82
|
+
readonly backStack?: {};
|
|
83
|
+
readonly config?: {};
|
|
84
|
+
readonly currentApp?: {};
|
|
85
|
+
readonly fullTrust?: {};
|
|
86
|
+
readonly tabs?: {};
|
|
87
|
+
};
|
|
88
|
+
readonly people?: {};
|
|
89
|
+
readonly plugins?: {};
|
|
90
|
+
readonly permissions?: {};
|
|
91
|
+
readonly profile?: {};
|
|
92
|
+
readonly remoteCamera?: {};
|
|
93
|
+
readonly search?: {};
|
|
94
|
+
readonly security?: {};
|
|
95
|
+
readonly connectivity?: {};
|
|
96
|
+
readonly haptics?: {};
|
|
97
|
+
readonly badge?: {};
|
|
98
|
+
readonly externalApp?: {};
|
|
99
|
+
readonly sharing?: {
|
|
100
|
+
readonly history?: {};
|
|
101
|
+
};
|
|
102
|
+
readonly shortcutRelay?: {};
|
|
103
|
+
readonly stageView?: {
|
|
104
|
+
readonly self?: {};
|
|
105
|
+
};
|
|
106
|
+
readonly store?: {};
|
|
107
|
+
readonly teams?: {
|
|
108
|
+
readonly fullTrust?: {
|
|
109
|
+
readonly joinedTeams?: {};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readonly thirdPartyCloudStorage?: {};
|
|
113
|
+
readonly teamsCore?: {};
|
|
114
|
+
readonly video?: {
|
|
115
|
+
readonly mediaStream?: {};
|
|
116
|
+
readonly sharedFrame?: {};
|
|
117
|
+
};
|
|
118
|
+
readonly visualMedia?: {
|
|
119
|
+
readonly image?: {};
|
|
120
|
+
};
|
|
121
|
+
readonly webStorage?: {};
|
|
122
|
+
readonly widgetHosting?: {};
|
|
123
|
+
readonly offlineStorage?: {
|
|
124
|
+
readonly drafts?: {};
|
|
125
|
+
readonly inbox?: {};
|
|
126
|
+
readonly outbox?: {};
|
|
127
|
+
readonly sent?: {};
|
|
128
|
+
readonly sync?: {};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
interface UninitializedRuntime extends IBaseRuntime {
|
|
133
|
+
readonly apiVersion: -1;
|
|
134
|
+
readonly supports: {};
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @hidden
|
|
138
|
+
* Ensures that the runtime has been initialized
|
|
139
|
+
|
|
140
|
+
* @returns True if the runtime has been initialized
|
|
141
|
+
* @throws Error if the runtime has not been initialized
|
|
142
|
+
*
|
|
143
|
+
* @internal
|
|
144
|
+
* Limited to Microsoft-internal use
|
|
145
|
+
*/
|
|
146
|
+
export declare function isRuntimeInitialized(runtime: IBaseRuntime): runtime is Runtime;
|
|
147
|
+
export declare let runtime: Runtime | UninitializedRuntime;
|
|
148
|
+
/**
|
|
149
|
+
* This object is used as the default runtime for versions of Teams which don't pass a runtime object during
|
|
150
|
+
* initialization. If the host DOES pass a runtime object during init, then this object is not used.
|
|
151
|
+
*
|
|
152
|
+
* In practice, this is used in Teams V1 and ALL versions of Teams mobile since they are the only hosts
|
|
153
|
+
* that don't pass a runtime object during initialization (since they don't use the host SDK).
|
|
154
|
+
*
|
|
155
|
+
* If there are certain versions of Teams V1 or Teams mobile which support a capability but not ALL
|
|
156
|
+
* versions, then you should modify the mapTeamsVersionToSupportedCapabilities structure for that purpose. That
|
|
157
|
+
* structure allows you to specify particular versions on particular platforms that support certain capabilities.
|
|
158
|
+
* This structure is version agnostic.
|
|
159
|
+
*
|
|
160
|
+
* In practice, if you are adding a new capability, you are likely only to need to update mapTeamsVersionToSupportedCapabilities
|
|
161
|
+
* and NOT this structure, as this structure is effectively only used for capabilities that have existed "forever."
|
|
162
|
+
*
|
|
163
|
+
* Remember that everything here all still ONLY applies to versions of Teams that don't pass a runtime object during
|
|
164
|
+
* initialization -- if they do, then neither this object nor the mapTeamsVersionToSupportedCapabilities structure is
|
|
165
|
+
* used -- all runtime capabilities are dynamically discovered at runtime in the case where the runtime object is passed
|
|
166
|
+
* during initialization.
|
|
167
|
+
*/
|
|
168
|
+
export declare const versionAndPlatformAgnosticTeamsRuntimeConfig: Runtime;
|
|
169
|
+
export interface ICapabilityReqs {
|
|
170
|
+
readonly capability: object;
|
|
171
|
+
readonly hostClientTypes: Array<string>;
|
|
172
|
+
}
|
|
173
|
+
export declare const v1MobileHostClientTypes: HostClientType[];
|
|
174
|
+
export declare const v1HostClientTypes: HostClientType[];
|
|
175
|
+
/**
|
|
176
|
+
* @hidden
|
|
177
|
+
* `upgradeToNextVersion` transforms runtime of version `versionToUpgradeFrom` to the next higher version
|
|
178
|
+
*
|
|
179
|
+
* @internal
|
|
180
|
+
* Limited to Microsoft-internal use
|
|
181
|
+
*/
|
|
182
|
+
interface IRuntimeUpgrade {
|
|
183
|
+
versionToUpgradeFrom: number;
|
|
184
|
+
upgradeToNextVersion: (previousVersionRuntime: IBaseRuntime) => IBaseRuntime;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* @hidden
|
|
188
|
+
* Uses upgradeChain to transform an outdated runtime object to the latest format.
|
|
189
|
+
* @param outdatedRuntime - The runtime object to be upgraded
|
|
190
|
+
* @returns The upgraded runtime object
|
|
191
|
+
* @throws Error if the runtime object could not be upgraded to the latest version
|
|
192
|
+
*
|
|
193
|
+
* @internal
|
|
194
|
+
* Limited to Microsoft-internal use
|
|
195
|
+
*/
|
|
196
|
+
export declare function fastForwardRuntime(outdatedRuntime: IBaseRuntime): Runtime;
|
|
197
|
+
/**
|
|
198
|
+
* @hidden
|
|
199
|
+
* List of transformations required to upgrade a runtime object from a previous version to the next higher version.
|
|
200
|
+
* This list must be ordered from lowest version to highest version
|
|
201
|
+
*
|
|
202
|
+
* @internal
|
|
203
|
+
* Limited to Microsoft-internal use
|
|
204
|
+
*/
|
|
205
|
+
export declare const upgradeChain: IRuntimeUpgrade[];
|
|
206
|
+
/**
|
|
207
|
+
* This version is for legacy Teams mobile clients that don’t pass a runtime object during initialization.
|
|
208
|
+
* It’s the minimum version required to support deeply nested app auth.
|
|
209
|
+
*/
|
|
210
|
+
export declare const legacyTeamsMobileVersionForDeeplyNestedAuth = "2.1.2";
|
|
211
|
+
/**
|
|
212
|
+
* This structure is used for versions of Teams that don't pass a runtime object during initialization.
|
|
213
|
+
* Please see the extensive comments in versionAndPlatformAgnosticTeamsRuntimeConfig for more information
|
|
214
|
+
* on when and how to use this structure.
|
|
215
|
+
*/
|
|
216
|
+
export declare const mapTeamsVersionToSupportedCapabilities: Record<string, Array<ICapabilityReqs>>;
|
|
217
|
+
/**
|
|
218
|
+
* @internal
|
|
219
|
+
* Limited to Microsoft-internal use
|
|
220
|
+
*
|
|
221
|
+
* Generates and returns a runtime configuration for host clients which are not on the latest host SDK version
|
|
222
|
+
* and do not provide their own runtime config (this is just older versions of Teams on some platforms).
|
|
223
|
+
* Their supported capabilities are based on the highest client SDK version that they can support.
|
|
224
|
+
*
|
|
225
|
+
* @param highestSupportedVersion - The highest client SDK version that the host client can support.
|
|
226
|
+
* @returns runtime which describes the APIs supported by the legacy host client.
|
|
227
|
+
*/
|
|
228
|
+
export declare function generateVersionBasedTeamsRuntimeConfig(highestSupportedVersion: string, versionAgnosticRuntimeConfig: Runtime, mapVersionToSupportedCapabilities: Record<string, Array<ICapabilityReqs>>): Runtime;
|
|
229
|
+
export declare function applyRuntimeConfig(runtimeConfig: IBaseRuntime): void;
|
|
230
|
+
export declare function setUnitializedRuntime(): void;
|
|
231
|
+
/**
|
|
232
|
+
* @hidden
|
|
233
|
+
* Constant used to set minimum runtime configuration
|
|
234
|
+
* while un-initializing an app in unit test case.
|
|
235
|
+
*
|
|
236
|
+
* @internal
|
|
237
|
+
* Limited to Microsoft-internal use
|
|
238
|
+
*/
|
|
239
|
+
export declare const _minRuntimeConfigToUninitialize: Runtime;
|
|
240
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Allows your application to interact with the host M365 application's search box.
|
|
3
|
+
* By integrating your application with the host's search box, users can search
|
|
4
|
+
* your app using the same search box they use elsewhere in Teams, Outlook, or Office.
|
|
5
|
+
*
|
|
6
|
+
* This functionality is in Beta.
|
|
7
|
+
* @beta
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* This interface contains information pertaining to the contents of the host M365 application's search box
|
|
12
|
+
*
|
|
13
|
+
* @beta
|
|
14
|
+
*/
|
|
15
|
+
export interface SearchQuery {
|
|
16
|
+
/** The current search term in the host search experience */
|
|
17
|
+
searchTerm: string;
|
|
18
|
+
/** Timestamp sequence value to ensure messages are processed in correct order / combine them. */
|
|
19
|
+
timestamp: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* This type will store the SearchQuery and allow other logic to be made inside the handler.
|
|
23
|
+
*
|
|
24
|
+
* @beta
|
|
25
|
+
*/
|
|
26
|
+
export type SearchQueryHandler = (query: SearchQuery) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Allows the caller to register for various events fired by the host search experience.
|
|
29
|
+
* Calling this function indicates that your application intends to plug into the host's search box and handle search events,
|
|
30
|
+
* when the user is actively using your page/tab.
|
|
31
|
+
*
|
|
32
|
+
* The host may visually update its search box, e.g. with the name or icon of your application.
|
|
33
|
+
*
|
|
34
|
+
* Your application should *not* re-render inside of these callbacks, there may be a large number
|
|
35
|
+
* of onChangeHandler calls if the user is typing rapidly in the search box.
|
|
36
|
+
*
|
|
37
|
+
* @param onClosedHandler - This handler will be called when the user exits or cancels their search.
|
|
38
|
+
* Should be used to return your application to its most recent, non-search state. The value of {@link SearchQuery.searchTerm}
|
|
39
|
+
* will be whatever the last query was before ending search.
|
|
40
|
+
*
|
|
41
|
+
* @param onExecuteHandler - The handler will be called when the user executes their
|
|
42
|
+
* search (by pressing Enter for example). Should be used to display the full list of search results.
|
|
43
|
+
* The value of {@link SearchQuery.searchTerm} is the complete query the user entered in the search box.
|
|
44
|
+
*
|
|
45
|
+
* @param onChangeHandler - This optional handler will be called when the user first starts using the
|
|
46
|
+
* host's search box and as the user types their query. Can be used to put your application into a
|
|
47
|
+
* word-wheeling state or to display suggestions as the user is typing.
|
|
48
|
+
*
|
|
49
|
+
* This handler will be called with an empty {@link SearchQuery.searchTerm} when search is beginning, and subsequently,
|
|
50
|
+
* with the current contents of the search box.
|
|
51
|
+
* @example
|
|
52
|
+
* ``` ts
|
|
53
|
+
* search.registerHandlers(
|
|
54
|
+
query => {
|
|
55
|
+
console.log('Update your application to handle the search experience being closed. Last query: ${query.searchTerm}');
|
|
56
|
+
},
|
|
57
|
+
query => {
|
|
58
|
+
console.log(`Update your application to handle an executed search result: ${query.searchTerm}`);
|
|
59
|
+
},
|
|
60
|
+
query => {
|
|
61
|
+
console.log(`Update your application with the changed search query: ${query.searchTerm}`);
|
|
62
|
+
},
|
|
63
|
+
);
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @beta
|
|
67
|
+
*/
|
|
68
|
+
export declare function registerHandlers(onClosedHandler: SearchQueryHandler, onExecuteHandler: SearchQueryHandler, onChangeHandler?: SearchQueryHandler): void;
|
|
69
|
+
/**
|
|
70
|
+
* Allows the caller to unregister for all events fired by the host search experience. Calling
|
|
71
|
+
* this function will cause your app to stop appearing in the set of search scopes in the hosts
|
|
72
|
+
*
|
|
73
|
+
* @beta
|
|
74
|
+
*/
|
|
75
|
+
export declare function unregisterHandlers(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Checks if search capability is supported by the host
|
|
78
|
+
* @returns boolean to represent whether the search capability is supported
|
|
79
|
+
*
|
|
80
|
+
* @throws Error if {@link app.initialize} has not successfully completed
|
|
81
|
+
*
|
|
82
|
+
* @beta
|
|
83
|
+
*/
|
|
84
|
+
export declare function isSupported(): boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Clear the host M365 application's search box
|
|
87
|
+
*
|
|
88
|
+
* @beta
|
|
89
|
+
*/
|
|
90
|
+
export declare function closeSearch(): Promise<void>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module to power up the in-app browser experiences in the host app.
|
|
3
|
+
* For e.g., opening a URL in the host app inside a browser
|
|
4
|
+
*
|
|
5
|
+
* @beta
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Open a URL in the secondary browser.
|
|
10
|
+
*
|
|
11
|
+
* On mobile, this is the in-app browser.
|
|
12
|
+
*
|
|
13
|
+
* On web and desktop, please use the `window.open()` method or other native external browser methods.
|
|
14
|
+
*
|
|
15
|
+
* @param url Url to open in the browser
|
|
16
|
+
* @returns Promise that successfully resolves if the URL opens in the secondaryBrowser
|
|
17
|
+
* or throws an error {@link SdkError} incase of failure before starting navigation
|
|
18
|
+
*
|
|
19
|
+
* @remarks Any error that happens after navigation begins is handled by the platform browser component and not returned from this function.
|
|
20
|
+
* @beta
|
|
21
|
+
*/
|
|
22
|
+
export declare function open(url: URL): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Checks if secondaryBrowser capability is supported by the host
|
|
25
|
+
* @returns boolean to represent whether secondaryBrowser is supported
|
|
26
|
+
*
|
|
27
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
28
|
+
*
|
|
29
|
+
* @beta
|
|
30
|
+
*/
|
|
31
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module to interact with the security-specific part of the SDK.
|
|
3
|
+
*
|
|
4
|
+
* Provides re-authentication for sensitive actions and biometric availability checks.
|
|
5
|
+
* The native host handles the biometric/passcode prompt and returns the result.
|
|
6
|
+
*
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Parameters for requesting re-authentication.
|
|
11
|
+
*/
|
|
12
|
+
export interface ReauthenticateParameters {
|
|
13
|
+
/** Reason displayed to the user explaining why authentication is needed. */
|
|
14
|
+
reason?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Result returned from a successful re-authentication.
|
|
18
|
+
*/
|
|
19
|
+
export interface ReauthenticateResult {
|
|
20
|
+
/** Whether the authentication was successful. */
|
|
21
|
+
success: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Information about the device's biometric capabilities.
|
|
25
|
+
*/
|
|
26
|
+
export interface BiometricAvailability {
|
|
27
|
+
/** Whether biometric authentication is available on the device. */
|
|
28
|
+
available: boolean;
|
|
29
|
+
/** The type of biometric available: "faceId", "touchId", "biometric", or "none". */
|
|
30
|
+
type: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Triggers a native biometric/passcode re-authentication prompt for sensitive operations.
|
|
34
|
+
*
|
|
35
|
+
* Use this before performing high-risk actions such as:
|
|
36
|
+
* - Financial transfers
|
|
37
|
+
* - Changing security settings
|
|
38
|
+
* - Viewing sensitive personal data
|
|
39
|
+
* - Approving important requests
|
|
40
|
+
*
|
|
41
|
+
* @param params - Optional parameters including a reason string displayed to the user.
|
|
42
|
+
* @returns A Promise that resolves with the authentication result if successful.
|
|
43
|
+
* @throws Error if the user cancels or fails authentication, or if the capability is not supported.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import { security } from '@anthropic/teams-js';
|
|
48
|
+
*
|
|
49
|
+
* try {
|
|
50
|
+
* const result = await security.reauthenticate({ reason: 'Confirm transfer of $500' });
|
|
51
|
+
* if (result.success) {
|
|
52
|
+
* // Proceed with sensitive action
|
|
53
|
+
* }
|
|
54
|
+
* } catch (error) {
|
|
55
|
+
* // User cancelled or failed authentication
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare function reauthenticate(params?: ReauthenticateParameters): Promise<ReauthenticateResult>;
|
|
60
|
+
/**
|
|
61
|
+
* Checks whether biometric authentication is available on the current device.
|
|
62
|
+
*
|
|
63
|
+
* @returns A Promise that resolves with biometric availability information.
|
|
64
|
+
* @throws Error if the capability is not supported or app is not initialized.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```typescript
|
|
68
|
+
* import { security } from '@anthropic/teams-js';
|
|
69
|
+
*
|
|
70
|
+
* const biometric = await security.isBiometricAvailable();
|
|
71
|
+
* if (biometric.available) {
|
|
72
|
+
* console.log(`Biometric type: ${biometric.type}`); // "faceId", "touchId", etc.
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export declare function isBiometricAvailable(): Promise<BiometricAvailability>;
|
|
77
|
+
/**
|
|
78
|
+
* Checks if the security capability is supported by the host.
|
|
79
|
+
*
|
|
80
|
+
* @returns `true` if the host supports security operations (re-authentication, biometric checks).
|
|
81
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed.
|
|
82
|
+
*/
|
|
83
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for objects that can be serialized and passed to the host
|
|
3
|
+
*/
|
|
4
|
+
export interface ISerializable {
|
|
5
|
+
/**
|
|
6
|
+
* @returns A serializable representation of the object, used for passing objects to the host.
|
|
7
|
+
*/
|
|
8
|
+
serialize(): string | object;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
* @internal
|
|
13
|
+
* Used by the communication layer to make sure that an argument being passed to the host is serializable.
|
|
14
|
+
* @param arg The argument to evaluate
|
|
15
|
+
* @returns Whether or not the argument is serializable.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isSerializable(arg: unknown): arg is ISerializable;
|