@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,250 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* Extended video API
|
|
4
|
+
* @internal
|
|
5
|
+
* Limited to Microsoft-internal use
|
|
6
|
+
* @beta
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
import { DefaultVideoEffectCallBack as VideoEffectCallBack } from '../internal/videoEffectsUtils';
|
|
10
|
+
import * as videoEffects from '../public/videoEffects';
|
|
11
|
+
export declare const frameProcessingTimeoutInMs = 2000;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
* Error level when notifying errors to the host, the host will decide what to do acording to the error level.
|
|
15
|
+
* @beta
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
* Limited to Microsoft-internal use
|
|
19
|
+
*/
|
|
20
|
+
export declare enum ErrorLevel {
|
|
21
|
+
Fatal = "fatal",
|
|
22
|
+
Warn = "warn"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
* Video frame configuration supplied to the host to customize the generated video frame parameters
|
|
27
|
+
* @beta
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
* Limited to Microsoft-internal use
|
|
31
|
+
*/
|
|
32
|
+
export interface VideoFrameConfig extends videoEffects.VideoFrameConfig {
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
* Flag to indicate use camera stream to synthesize video frame or not.
|
|
36
|
+
* Default value is true.
|
|
37
|
+
* @beta
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
* Limited to Microsoft-internal use
|
|
41
|
+
*/
|
|
42
|
+
requireCameraStream?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
* Machine learning model to run in the host to do audio inference for you
|
|
46
|
+
* @beta
|
|
47
|
+
*
|
|
48
|
+
* @internal
|
|
49
|
+
* Limited to Microsoft-internal use
|
|
50
|
+
*/
|
|
51
|
+
audioInferenceModel?: ArrayBuffer;
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
* Specifies additional capabilities that should be applied to the video frame
|
|
55
|
+
* @beta
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
* Limited to Microsoft-internal use
|
|
59
|
+
*/
|
|
60
|
+
requiredCapabilities?: string[];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
* Represents a video frame
|
|
65
|
+
* @beta
|
|
66
|
+
*
|
|
67
|
+
* @internal
|
|
68
|
+
* Limited to Microsoft-internal use
|
|
69
|
+
*/
|
|
70
|
+
export interface VideoBufferData extends videoEffects.VideoBufferData {
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
* The model output if you passed in an {@linkcode VideoFrameConfig.audioInferenceModel}
|
|
74
|
+
* @beta
|
|
75
|
+
*
|
|
76
|
+
* @internal
|
|
77
|
+
* Limited to Microsoft-internal use
|
|
78
|
+
*/
|
|
79
|
+
audioInferenceResult?: Uint8Array;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @hidden
|
|
83
|
+
* The callback will be called on every frame when running on the supported host.
|
|
84
|
+
* We require the frame rate of the video to be at least 22fps for 720p, thus the callback should process a frame timely.
|
|
85
|
+
* The video app should call `notifyVideoFrameProcessed` to notify a successfully processed video frame.
|
|
86
|
+
* The video app should call `notifyError` to notify a failure. When the failures accumulate to a certain number(determined by the host), the host will see the app is "frozen" and give the user the option to close the app.
|
|
87
|
+
* @beta
|
|
88
|
+
*
|
|
89
|
+
* @internal
|
|
90
|
+
* Limited to Microsoft-internal use
|
|
91
|
+
*/
|
|
92
|
+
export type VideoBufferHandler = (videoBufferData: VideoBufferData, notifyVideoFrameProcessed: () => void, notifyError: (errorMessage: string) => void) => void;
|
|
93
|
+
/**
|
|
94
|
+
* @hidden
|
|
95
|
+
* Video frame data extracted from the media stream. More properties may be added in the future.
|
|
96
|
+
* @beta
|
|
97
|
+
*
|
|
98
|
+
* @internal
|
|
99
|
+
* Limited to Microsoft-internal use
|
|
100
|
+
*/
|
|
101
|
+
export type VideoFrameData = videoEffects.VideoFrameData & {
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
* The model output if you passed in an {@linkcode VideoFrameConfig.audioInferenceModel}
|
|
105
|
+
* @beta
|
|
106
|
+
*
|
|
107
|
+
* @internal
|
|
108
|
+
* Limited to Microsoft-internal use
|
|
109
|
+
*/
|
|
110
|
+
audioInferenceResult?: Uint8Array;
|
|
111
|
+
/**
|
|
112
|
+
* @hidden
|
|
113
|
+
* Additional metadata determined by capabilities specified in {@linkcode VideoFrameConfig.requiredCapabilities}
|
|
114
|
+
* @beta
|
|
115
|
+
*
|
|
116
|
+
* @internal
|
|
117
|
+
* Limited to Microsoft-internal use
|
|
118
|
+
*/
|
|
119
|
+
attributes?: ReadonlyMap<string, Uint8Array>;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* @hidden
|
|
123
|
+
* The callback will be called on every frame when running on the supported host.
|
|
124
|
+
* We require the frame rate of the video to be at least 22fps for 720p, thus the callback should process a frame timely.
|
|
125
|
+
* The video app should resolve the promise to notify a successfully processed video frame.
|
|
126
|
+
* The video app should reject the promise to notify a failure. When the failures accumulate to a certain number(determined by the host), the host will see the app is "frozen" and give the user the option to close the app.
|
|
127
|
+
* @beta
|
|
128
|
+
*
|
|
129
|
+
* @internal
|
|
130
|
+
* Limited to Microsoft-internal use
|
|
131
|
+
*/
|
|
132
|
+
export type VideoFrameHandler = (receivedVideoFrame: VideoFrameData) => Promise<videoEffects.VideoFrame>;
|
|
133
|
+
/**
|
|
134
|
+
* @hidden
|
|
135
|
+
* @beta
|
|
136
|
+
* Callbacks and configuration supplied to the host to process the video frames.
|
|
137
|
+
* @internal
|
|
138
|
+
* Limited to Microsoft-internal use
|
|
139
|
+
*/
|
|
140
|
+
export type RegisterForVideoFrameParameters = {
|
|
141
|
+
/**
|
|
142
|
+
* Callback function to process the video frames extracted from a media stream.
|
|
143
|
+
*/
|
|
144
|
+
videoFrameHandler: VideoFrameHandler;
|
|
145
|
+
/**
|
|
146
|
+
* Callback function to process the video frames shared by the host.
|
|
147
|
+
*/
|
|
148
|
+
videoBufferHandler: VideoBufferHandler;
|
|
149
|
+
/**
|
|
150
|
+
* Video frame configuration supplied to the host to customize the generated video frame parameters, like format
|
|
151
|
+
*/
|
|
152
|
+
config: VideoFrameConfig;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* @hidden
|
|
156
|
+
* Register to process video frames
|
|
157
|
+
* @beta
|
|
158
|
+
*
|
|
159
|
+
* @param parameters - Callbacks and configuration to process the video frames. A host may support either {@link VideoFrameHandler} or {@link VideoBufferHandler}, but not both.
|
|
160
|
+
* To ensure the video effect works on all supported hosts, the video app must provide both {@link VideoFrameHandler} and {@link VideoBufferHandler}.
|
|
161
|
+
* The host will choose the appropriate callback based on the host's capability.
|
|
162
|
+
*
|
|
163
|
+
* @internal
|
|
164
|
+
* Limited to Microsoft-internal use
|
|
165
|
+
*/
|
|
166
|
+
export declare function registerForVideoFrame(parameters: RegisterForVideoFrameParameters): void;
|
|
167
|
+
/**
|
|
168
|
+
* @hidden
|
|
169
|
+
* Video extension should call this to notify host that the current selected effect parameter changed.
|
|
170
|
+
* If it's pre-meeting, host will call videoEffectCallback immediately then use the videoEffect.
|
|
171
|
+
* If it's the in-meeting scenario, we will call videoEffectCallback when apply button clicked.
|
|
172
|
+
* @beta
|
|
173
|
+
* @param effectChangeType - the effect change type.
|
|
174
|
+
* @param effectId - Newly selected effect id. {@linkcode VideoEffectCallBack}
|
|
175
|
+
* @param effectParam Variant for the newly selected effect. {@linkcode VideoEffectCallBack}
|
|
176
|
+
*
|
|
177
|
+
* @internal
|
|
178
|
+
* Limited to Microsoft-internal use
|
|
179
|
+
*/
|
|
180
|
+
export declare function notifySelectedVideoEffectChanged(effectChangeType: videoEffects.EffectChangeType, effectId: string | undefined, effectParam?: string): void;
|
|
181
|
+
/**
|
|
182
|
+
* @hidden
|
|
183
|
+
* Register the video effect callback, host uses this to notify the video extension the new video effect will by applied
|
|
184
|
+
* @beta
|
|
185
|
+
* @param callback - The VideoEffectCallback to invoke when registerForVideoEffect has completed
|
|
186
|
+
*
|
|
187
|
+
* @internal
|
|
188
|
+
* Limited to Microsoft-internal use
|
|
189
|
+
*/
|
|
190
|
+
export declare function registerForVideoEffect(callback: VideoEffectCallBack): void;
|
|
191
|
+
/**
|
|
192
|
+
* @hidden
|
|
193
|
+
* Personalized video effect
|
|
194
|
+
* @beta
|
|
195
|
+
*
|
|
196
|
+
* @internal
|
|
197
|
+
* Limited to Microsoft-internal use
|
|
198
|
+
*/
|
|
199
|
+
export interface PersonalizedEffect {
|
|
200
|
+
/**
|
|
201
|
+
* Personalized effect id
|
|
202
|
+
*/
|
|
203
|
+
id: string;
|
|
204
|
+
/**
|
|
205
|
+
* Display name
|
|
206
|
+
*/
|
|
207
|
+
name: string;
|
|
208
|
+
/**
|
|
209
|
+
* Effect type defined by app
|
|
210
|
+
*/
|
|
211
|
+
type: string;
|
|
212
|
+
/**
|
|
213
|
+
* Data URI of the thumbnail image content encoded in ASCII format using the base64 scheme
|
|
214
|
+
*/
|
|
215
|
+
thumbnail: string;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* @hidden
|
|
219
|
+
* Send personalized effects to Teams client
|
|
220
|
+
* @beta
|
|
221
|
+
*
|
|
222
|
+
* @internal
|
|
223
|
+
* Limited to Microsoft-internal use
|
|
224
|
+
*/
|
|
225
|
+
export declare function updatePersonalizedEffects(effects: PersonalizedEffect[]): void;
|
|
226
|
+
/**
|
|
227
|
+
* @hidden
|
|
228
|
+
*
|
|
229
|
+
* Checks if video capability is supported by the host
|
|
230
|
+
* @beta
|
|
231
|
+
*
|
|
232
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
233
|
+
*
|
|
234
|
+
* @returns boolean to represent whether the video capability is supported
|
|
235
|
+
*
|
|
236
|
+
* @internal
|
|
237
|
+
* Limited to Microsoft-internal use
|
|
238
|
+
*/
|
|
239
|
+
export declare function isSupported(): boolean;
|
|
240
|
+
/**
|
|
241
|
+
* @hidden
|
|
242
|
+
* Sending fatal error notification to host. Call this function only when your app meets fatal error and can't continue.
|
|
243
|
+
* The host will stop the video pipeline and terminate this session, and optionally, show an error message to the user.
|
|
244
|
+
* @beta
|
|
245
|
+
* @param errorMessage - The error message that will be sent to the host
|
|
246
|
+
*
|
|
247
|
+
* @internal
|
|
248
|
+
* Limited to Microsoft-internal use
|
|
249
|
+
*/
|
|
250
|
+
export declare function notifyFatalError(errorMessage: string): void;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { RenderingSurfaces } from '../../public';
|
|
2
|
+
export interface ISecurityPolicy {
|
|
3
|
+
connectDomains?: string[];
|
|
4
|
+
resourceDomains?: string[];
|
|
5
|
+
isTrusted?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type Theme = 'light' | 'dark';
|
|
8
|
+
export type SafeAreaInsets = {
|
|
9
|
+
top: number;
|
|
10
|
+
bottom: number;
|
|
11
|
+
left: number;
|
|
12
|
+
right: number;
|
|
13
|
+
};
|
|
14
|
+
export type SafeArea = {
|
|
15
|
+
insets: SafeAreaInsets;
|
|
16
|
+
};
|
|
17
|
+
export type DeviceType = 'mobile' | 'tablet' | 'desktop' | 'unknown';
|
|
18
|
+
export type UserAgent = {
|
|
19
|
+
device: {
|
|
20
|
+
type: DeviceType;
|
|
21
|
+
};
|
|
22
|
+
capabilities: {
|
|
23
|
+
hover: boolean;
|
|
24
|
+
touch: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Options for requesting a modal dialog
|
|
29
|
+
*/
|
|
30
|
+
export interface IModalOptions {
|
|
31
|
+
/** Unique identifier for the modal */
|
|
32
|
+
id: string;
|
|
33
|
+
/** Title at the top of the modal window */
|
|
34
|
+
title?: string;
|
|
35
|
+
/** Inner HTML string inserted into the modal's body */
|
|
36
|
+
content: string;
|
|
37
|
+
/** Preferred modal width in pixels */
|
|
38
|
+
width?: number;
|
|
39
|
+
/** Preferred modal height in pixels */
|
|
40
|
+
height?: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Response from requesting a modal dialog
|
|
44
|
+
*/
|
|
45
|
+
export interface IModalResponse {
|
|
46
|
+
/** A DOM element representing the modal's root */
|
|
47
|
+
modalElement: HTMLElement;
|
|
48
|
+
}
|
|
49
|
+
/** Declare generic JSON - serializable structure */
|
|
50
|
+
export interface JSONObject {
|
|
51
|
+
[key: string]: JSONValue;
|
|
52
|
+
}
|
|
53
|
+
export interface JSONArray extends Array<JSONValue> {
|
|
54
|
+
}
|
|
55
|
+
export type JSONValue = string | number | boolean | null | JSONObject | JSONArray;
|
|
56
|
+
/** Display mode */
|
|
57
|
+
export type DisplayMode = 'pip' | 'inline' | 'fullscreen';
|
|
58
|
+
/**
|
|
59
|
+
* MCP-compatible tool input structure following OpenAI MCP server specification
|
|
60
|
+
*/
|
|
61
|
+
export interface IToolInput {
|
|
62
|
+
/** The name of the tool to call */
|
|
63
|
+
name: string;
|
|
64
|
+
/** Arguments passed to the tool as key-value pairs */
|
|
65
|
+
arguments?: Record<string, unknown>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* MCP-compatible tool output structure matching exact MCP schema
|
|
69
|
+
*/
|
|
70
|
+
export interface IToolOutput {
|
|
71
|
+
/** Whether the tool call resulted in an error */
|
|
72
|
+
isError?: boolean;
|
|
73
|
+
/** Array of content blocks returned by the tool */
|
|
74
|
+
content: Array<{
|
|
75
|
+
/** Type of content block */
|
|
76
|
+
type: 'text' | 'image' | 'resource';
|
|
77
|
+
/** Text content (for type: 'text') */
|
|
78
|
+
text?: string;
|
|
79
|
+
/** Image data (for type: 'image') */
|
|
80
|
+
data?: string;
|
|
81
|
+
/** MIME type (for type: 'image') */
|
|
82
|
+
mimeType?: string;
|
|
83
|
+
/** Resource URI (for type: 'resource') */
|
|
84
|
+
uri?: string;
|
|
85
|
+
/** Optional metadata for any content type */
|
|
86
|
+
annotations?: {
|
|
87
|
+
/** Audience for this content (user, assistant) */
|
|
88
|
+
audience?: Array<'user' | 'assistant'>;
|
|
89
|
+
/** Priority level */
|
|
90
|
+
priority?: number;
|
|
91
|
+
};
|
|
92
|
+
}>;
|
|
93
|
+
/** UI widget data */
|
|
94
|
+
structuredContent?: unknown;
|
|
95
|
+
/** MCP metadata object */
|
|
96
|
+
_meta?: Record<string, unknown>;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Widget context similar to IWidgetHost structure - simplified for widget rendering
|
|
100
|
+
*/
|
|
101
|
+
export interface IWidgetContext {
|
|
102
|
+
/** Unique identifier for the widget instance */
|
|
103
|
+
widgetId: string;
|
|
104
|
+
/** Widget HTML content to render */
|
|
105
|
+
html: string;
|
|
106
|
+
/** widget domain that developer has registered their app to */
|
|
107
|
+
domain: string;
|
|
108
|
+
/** Content Security policy for the widget */
|
|
109
|
+
securityPolicy?: ISecurityPolicy;
|
|
110
|
+
/** OpenAI-compatible object with widget globals and API functions */
|
|
111
|
+
openai: {
|
|
112
|
+
theme?: Theme;
|
|
113
|
+
userAgent?: UserAgent;
|
|
114
|
+
locale?: string;
|
|
115
|
+
displayMode?: DisplayMode;
|
|
116
|
+
safeArea?: SafeArea;
|
|
117
|
+
maxHeight?: number;
|
|
118
|
+
view?: RenderingSurfaces;
|
|
119
|
+
widgetState?: JSONValue;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @beta
|
|
3
|
+
* @hidden
|
|
4
|
+
* User information required by specific apps
|
|
5
|
+
* @internal
|
|
6
|
+
* Limited to Microsoft-internal use
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
import { DisplayMode, IModalOptions, IModalResponse, IToolInput, IToolOutput, JSONValue } from './widgetContext';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
* @internal
|
|
13
|
+
* Limited to Microsoft-internal use
|
|
14
|
+
* @beta
|
|
15
|
+
* @returns boolean to represent whether widgetHosting capability is supported
|
|
16
|
+
*
|
|
17
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
18
|
+
*/
|
|
19
|
+
export declare function isSupported(): boolean;
|
|
20
|
+
export declare function callTool(widgetId: string, input: IToolInput): Promise<IToolOutput>;
|
|
21
|
+
/**
|
|
22
|
+
* @beta
|
|
23
|
+
* @hidden
|
|
24
|
+
* Sends a follow-up message to the host
|
|
25
|
+
* @internal
|
|
26
|
+
* Limited to Microsoft-internal use
|
|
27
|
+
*/
|
|
28
|
+
export declare function sendFollowUpMessage(widgetId: string, args: {
|
|
29
|
+
prompt: string;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* @beta
|
|
33
|
+
* @hidden
|
|
34
|
+
* Requests a specific display mode for the widget
|
|
35
|
+
* @internal
|
|
36
|
+
* Limited to Microsoft-internal use
|
|
37
|
+
*/
|
|
38
|
+
export declare function requestDisplayMode(widgetId: string, args: {
|
|
39
|
+
mode: DisplayMode;
|
|
40
|
+
}): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* @beta
|
|
43
|
+
* @hidden
|
|
44
|
+
* Requests a modal dialog to be displayed
|
|
45
|
+
* @internal
|
|
46
|
+
* Limited to Microsoft-internal use
|
|
47
|
+
* @param widgetId - The unique identifier for the widget
|
|
48
|
+
* @param options - Configuration options for the modal
|
|
49
|
+
* @returns A DOM element representing the modal's root
|
|
50
|
+
*/
|
|
51
|
+
export declare function requestModal(widgetId: string, options: IModalOptions): Promise<IModalResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* @beta
|
|
54
|
+
* @hidden
|
|
55
|
+
* Notifies the host about the intrinsic height of the widget content
|
|
56
|
+
* @internal
|
|
57
|
+
* Limited to Microsoft-internal use
|
|
58
|
+
*/
|
|
59
|
+
export declare function notifyIntrinsicHeight(widgetId: string, height: number): void;
|
|
60
|
+
/**
|
|
61
|
+
* @beta
|
|
62
|
+
* @hidden
|
|
63
|
+
* Notifies the host about content size changes
|
|
64
|
+
* @internal
|
|
65
|
+
* Limited to Microsoft-internal use
|
|
66
|
+
* @param widgetId - The unique identifier for the widget
|
|
67
|
+
* @param width - The width of the content in pixels
|
|
68
|
+
* @param height - The height of the content in pixels
|
|
69
|
+
*/
|
|
70
|
+
export declare function contentSizeChanged(widgetId: string, width: number, height: number): void;
|
|
71
|
+
/**
|
|
72
|
+
* @beta
|
|
73
|
+
* @hidden
|
|
74
|
+
* Sets the widget state
|
|
75
|
+
* @internal
|
|
76
|
+
* Limited to Microsoft-internal use
|
|
77
|
+
*/
|
|
78
|
+
export declare function setWidgetState(widgetId: string, state: JSONValue): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* @beta
|
|
81
|
+
* @hidden
|
|
82
|
+
* Opens an external URL
|
|
83
|
+
* @internal
|
|
84
|
+
* Limited to Microsoft-internal use
|
|
85
|
+
*/
|
|
86
|
+
export declare function openExternal(widgetId: string, payload: {
|
|
87
|
+
href: string;
|
|
88
|
+
}): void;
|
|
89
|
+
/** Modal close handler function type */
|
|
90
|
+
export type ModalCloseHandlerType = (modalId: string) => void;
|
|
91
|
+
/**
|
|
92
|
+
* @hidden
|
|
93
|
+
* @beta
|
|
94
|
+
* Registers a handler to be called when a modal is closed.
|
|
95
|
+
* This handler will be called when the user closes a modal or when .close() is invoked.
|
|
96
|
+
* @param handler - The handler for modal close events.
|
|
97
|
+
*
|
|
98
|
+
* @internal
|
|
99
|
+
* Limited to Microsoft-internal use
|
|
100
|
+
*/
|
|
101
|
+
export declare function registerModalCloseHandler(handler: ModalCloseHandlerType): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AdaptiveCardVersion } from './interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* @returns The {@linkcode AdaptiveCardVersion} representing the Adaptive Card schema
|
|
4
|
+
* version supported by the host, or undefined if the host does not support Adaptive Cards
|
|
5
|
+
*/
|
|
6
|
+
export declare function getAdaptiveCardSchemaVersion(): AdaptiveCardVersion | undefined;
|