@microsoft/teams-js 2.31.0-beta.1 → 2.31.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +11 -1
- package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +11 -1
- package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
- package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +5 -0
- package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +24 -0
- package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +23 -1
- package/dist/esm/packages/teams-js/dts/internal/uint8array-extras/uint8array-extras.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +20 -1
- package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +2 -2
- 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 +61 -61
- package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +48 -48
- package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +2 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +29 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +355 -349
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +67 -68
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +104 -105
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +41 -42
- package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +113 -114
- package/dist/esm/packages/teams-js/dts/private/files.d.ts +590 -582
- package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +42 -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 +19 -18
- package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -25
- package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +147 -142
- 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/notifications.d.ts +31 -25
- package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +69 -70
- package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +219 -214
- 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 +192 -186
- package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +21 -2
- package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/call.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/chat.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +0 -4
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +0 -13
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +9 -9
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +4 -3
- package/dist/esm/packages/teams-js/dts/public/mail.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +0 -3
- 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 +1 -0
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +8 -0
- package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +1 -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/profile.d.ts +81 -103
- package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +3 -0
- package/dist/esm/packages/teams-js/dts/public/search.d.ts +9 -0
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/settings.d.ts +4 -3
- 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 +76 -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 +0 -8
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +209 -210
- 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 +20 -22
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/uint8array-extras/uint8array-extras.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/utils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -1
- 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 -1
- package/dist/esm/packages/teams-js/src/private/conversations.js +1 -1
- package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/eligibility.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -1
- package/dist/esm/packages/teams-js/src/private/files.js +1 -1
- 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/logs.js +1 -1
- package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -1
- 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/notifications.js +1 -1
- package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -1
- package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -1
- 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 -1
- package/dist/esm/packages/teams-js/src/public/app/app.js +1 -1
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
- 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/navigation.js +1 -1
- 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/profile.js +1 -1
- package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/runtime.js +1 -1
- package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
- 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/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 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -1
- 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 -1
- package/dist/umd/MicrosoftTeams.d.ts +5751 -5160
- package/dist/umd/MicrosoftTeams.js +6231 -6442
- package/dist/umd/MicrosoftTeams.js.map +1 -1
- package/dist/umd/MicrosoftTeams.min.js +1 -1
- package/dist/umd/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/packages/teams-js/dts/private/copilot.d.ts +0 -39
- package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +0 -176
- package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +0 -107
- package/dist/esm/packages/teams-js/dts/private/teams.d.ts +0 -116
- package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +0 -906
- package/dist/esm/packages/teams-js/dts/public/pages.d.ts +0 -574
- package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +0 -124
- package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +0 -104
- package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +0 -192
- package/dist/esm/packages/teams-js/src/private/copilot.js +0 -1
- package/dist/esm/packages/teams-js/src/private/hostEntity.js +0 -1
- package/dist/esm/packages/teams-js/src/private/messageChannels.js +0 -1
- package/dist/esm/packages/teams-js/src/private/teams.js +0 -1
- package/dist/esm/packages/teams-js/src/public/meeting.js +0 -1
- package/dist/esm/packages/teams-js/src/public/pages.js +0 -1
- package/dist/esm/packages/teams-js/src/public/sharing.js +0 -1
- package/dist/esm/packages/teams-js/src/public/stageView.js +0 -1
- package/dist/esm/packages/teams-js/src/public/visualMedia.js +0 -1
- /package/dist/esm/node_modules/.pnpm/{@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5 → @rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5}/node_modules/tslib/tslib.es6.js +0 -0
@@ -1,124 +0,0 @@
|
|
1
|
-
import { SdkError } from './interfaces';
|
2
|
-
/**
|
3
|
-
* Namespace to open a share dialog for web content.
|
4
|
-
* For more info, see [Share to Teams from personal app or tab](https://learn.microsoft.com/microsoftteams/platform/concepts/build-and-test/share-to-teams-from-personal-app-or-tab)
|
5
|
-
*/
|
6
|
-
export declare namespace sharing {
|
7
|
-
/** shareWebContent callback function type */
|
8
|
-
export type shareWebContentCallbackFunctionType = (err?: SdkError) => void;
|
9
|
-
/** Type of message that can be sent or received by the sharing APIs */
|
10
|
-
export const SharingAPIMessages: {
|
11
|
-
/**
|
12
|
-
* Share web content message.
|
13
|
-
* @internal
|
14
|
-
*/
|
15
|
-
shareWebContent: string;
|
16
|
-
};
|
17
|
-
type ContentType = 'URL';
|
18
|
-
/** Represents parameters for base shared content. */
|
19
|
-
interface IBaseSharedContent {
|
20
|
-
/** Shared content type */
|
21
|
-
type: ContentType;
|
22
|
-
}
|
23
|
-
/** IShareRequestContentType defines share request type. */
|
24
|
-
export type IShareRequestContentType = IURLContent;
|
25
|
-
/** Represents IShareRequest parameters interface.
|
26
|
-
* @typeparam T - The identity type
|
27
|
-
*/
|
28
|
-
export interface IShareRequest<T> {
|
29
|
-
/** Content of the share request. */
|
30
|
-
content: T[];
|
31
|
-
}
|
32
|
-
/** Represents IURLContent parameters. */
|
33
|
-
export interface IURLContent extends IBaseSharedContent {
|
34
|
-
/** Type */
|
35
|
-
type: 'URL';
|
36
|
-
/**
|
37
|
-
* Required URL
|
38
|
-
*/
|
39
|
-
url: string;
|
40
|
-
/**
|
41
|
-
* Default initial message text
|
42
|
-
*/
|
43
|
-
message?: string;
|
44
|
-
/**
|
45
|
-
* Show URL preview, defaults to true
|
46
|
-
*/
|
47
|
-
preview?: boolean;
|
48
|
-
}
|
49
|
-
/**
|
50
|
-
* Feature is under development
|
51
|
-
* Opens a share dialog for web content
|
52
|
-
*
|
53
|
-
* @param shareWebContentRequest - web content info
|
54
|
-
* @returns Promise that will be fulfilled when the operation has completed
|
55
|
-
*/
|
56
|
-
export function shareWebContent(shareWebContentRequest: IShareRequest<IShareRequestContentType>): Promise<void>;
|
57
|
-
/**
|
58
|
-
* @deprecated
|
59
|
-
* As of TeamsJS v2.0.0, please use {@link sharing.shareWebContent sharing.shareWebContent(shareWebContentRequest: IShareRequest\<IShareRequestContentType\>): Promise\<void\>} instead.
|
60
|
-
*
|
61
|
-
* Feature is under development
|
62
|
-
* Opens a share dialog for web content
|
63
|
-
*
|
64
|
-
* @param shareWebContentRequest - web content info
|
65
|
-
* @param callback - optional callback
|
66
|
-
*/
|
67
|
-
export function shareWebContent(shareWebContentRequest: IShareRequest<IShareRequestContentType>, callback: shareWebContentCallbackFunctionType): void;
|
68
|
-
/**
|
69
|
-
* Checks if the sharing capability is supported by the host
|
70
|
-
* @returns boolean to represent whether the sharing capability is supported
|
71
|
-
*
|
72
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
73
|
-
*/
|
74
|
-
export function isSupported(): boolean;
|
75
|
-
/**
|
76
|
-
* Namespace to get the list of content shared in a Teams meeting
|
77
|
-
*
|
78
|
-
* @beta
|
79
|
-
*/
|
80
|
-
export namespace history {
|
81
|
-
/**
|
82
|
-
* Represents the data returned when calling {@link sharing.history.getContent}
|
83
|
-
*
|
84
|
-
* @beta
|
85
|
-
*/
|
86
|
-
interface IContentResponse {
|
87
|
-
/** Id of the app where the content was shared from */
|
88
|
-
appId: string;
|
89
|
-
/** Title of the shared content */
|
90
|
-
title: string;
|
91
|
-
/** Reference of the shared content */
|
92
|
-
contentReference: string;
|
93
|
-
/** Id of the thread where the content was shared. */
|
94
|
-
threadId: string;
|
95
|
-
/** Id of the user who shared the content. */
|
96
|
-
author: string;
|
97
|
-
/** Type of the shared content.
|
98
|
-
* For sharing to Teams stage scenarios, this value would be `ShareToStage`
|
99
|
-
* Other `contentType` values will be added and documented here over time
|
100
|
-
*/
|
101
|
-
contentType: string;
|
102
|
-
}
|
103
|
-
/**
|
104
|
-
* Get the list of content shared in a Teams meeting
|
105
|
-
*
|
106
|
-
* @throws Error if call capability is not supported
|
107
|
-
* @throws Error if returned content details are invalid
|
108
|
-
* @returns Promise that will resolve with the {@link IContentResponse} objects array
|
109
|
-
*
|
110
|
-
* @beta
|
111
|
-
*/
|
112
|
-
function getContent(): Promise<IContentResponse[]>;
|
113
|
-
/**
|
114
|
-
* Checks if sharing.history capability is supported by the host
|
115
|
-
* @returns boolean to represent whether the sharing.history capability is supported
|
116
|
-
*
|
117
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
118
|
-
*
|
119
|
-
* @beta
|
120
|
-
*/
|
121
|
-
function isSupported(): boolean;
|
122
|
-
}
|
123
|
-
export {};
|
124
|
-
}
|
@@ -1,104 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Namespace to interact with the stage view specific part of the SDK.
|
3
|
-
*
|
4
|
-
* @beta
|
5
|
-
*/
|
6
|
-
export declare namespace stageView {
|
7
|
-
/**
|
8
|
-
* Parameters to open a stage view.
|
9
|
-
*/
|
10
|
-
interface StageViewParams {
|
11
|
-
/**
|
12
|
-
* The ID of the Teams application to be opened.
|
13
|
-
*/
|
14
|
-
appId: string;
|
15
|
-
/**
|
16
|
-
* The URL of the content to display.
|
17
|
-
*/
|
18
|
-
contentUrl: string;
|
19
|
-
/**
|
20
|
-
* The chat or channel ID.
|
21
|
-
*/
|
22
|
-
threadId: string;
|
23
|
-
/**
|
24
|
-
* The messageId identifies a particular channel meeting within the channel as specified by the threadId above. This should be used only when trying to open the stage view for a channel meeting. It will be a no-op for other scenarios
|
25
|
-
*/
|
26
|
-
messageId?: string;
|
27
|
-
/**
|
28
|
-
* The title to give the stage view.
|
29
|
-
*/
|
30
|
-
title?: string;
|
31
|
-
/**
|
32
|
-
* The Teams application website URL.
|
33
|
-
*/
|
34
|
-
websiteUrl?: string;
|
35
|
-
/**
|
36
|
-
* The entity ID of the Teams application content being opened.
|
37
|
-
*/
|
38
|
-
entityId?: string;
|
39
|
-
/**
|
40
|
-
* The open mode for stage content.
|
41
|
-
* Optional param: if not passed, hosts can choose their default openMode.
|
42
|
-
* If a host does not support any specific openMode, It will fallback to StageViewOpenMode.modal.
|
43
|
-
*/
|
44
|
-
openMode?: StageViewOpenMode;
|
45
|
-
}
|
46
|
-
/**
|
47
|
-
* The open mode for stage content.
|
48
|
-
*/
|
49
|
-
enum StageViewOpenMode {
|
50
|
-
/**
|
51
|
-
* Open the content in a modal.
|
52
|
-
*/
|
53
|
-
modal = "modal",
|
54
|
-
/**
|
55
|
-
* Open the content in a popped-out window.
|
56
|
-
*/
|
57
|
-
popout = "popout",
|
58
|
-
/**
|
59
|
-
* Open the content in a popped-out window with chat collaboration.
|
60
|
-
*/
|
61
|
-
popoutWithChat = "popoutWithChat"
|
62
|
-
}
|
63
|
-
/**
|
64
|
-
*
|
65
|
-
* Opens a stage view to display a Teams application
|
66
|
-
* @beta
|
67
|
-
* @param stageViewParams - The parameters to pass into the stage view.
|
68
|
-
* @returns Promise that resolves or rejects with an error once the stage view is closed.
|
69
|
-
*/
|
70
|
-
function open(stageViewParams: StageViewParams): Promise<void>;
|
71
|
-
/**
|
72
|
-
* Checks if stageView capability is supported by the host
|
73
|
-
* @beta
|
74
|
-
* @returns boolean to represent whether the stageView capability is supported
|
75
|
-
*
|
76
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
77
|
-
*
|
78
|
-
*/
|
79
|
-
function isSupported(): boolean;
|
80
|
-
/**
|
81
|
-
* Namespace for actions that can be taken by the stage view itself.
|
82
|
-
*
|
83
|
-
* @beta
|
84
|
-
*/
|
85
|
-
namespace self {
|
86
|
-
/**
|
87
|
-
* Closes the current stage view. This function will be a no-op if called from outside of a stage view.
|
88
|
-
* @returns Promise that resolves or rejects with an error once the stage view is closed.
|
89
|
-
*
|
90
|
-
* @beta
|
91
|
-
* @throws Error if stageView.self.close is not supported in the current context or if `app.initialize()` has not resolved successfully.
|
92
|
-
*/
|
93
|
-
function close(): Promise<void>;
|
94
|
-
/**
|
95
|
-
* Checks if stageView.self capability is supported by the host
|
96
|
-
* @beta
|
97
|
-
* @returns boolean to represent whether the stageView.self capability is supported
|
98
|
-
*
|
99
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
100
|
-
*
|
101
|
-
*/
|
102
|
-
function isSupported(): boolean;
|
103
|
-
}
|
104
|
-
}
|
@@ -1,192 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @hidden
|
3
|
-
* Interact with images. Allows the app developer ask the user to get images from their camera / camera roll / file system.
|
4
|
-
*
|
5
|
-
* @beta
|
6
|
-
*/
|
7
|
-
export declare namespace visualMedia {
|
8
|
-
/**
|
9
|
-
* @hidden
|
10
|
-
* All properties common to Image and Video Props
|
11
|
-
*
|
12
|
-
* @beta
|
13
|
-
*/
|
14
|
-
interface VisualMediaProps {
|
15
|
-
/**
|
16
|
-
* @hidden
|
17
|
-
* The maximum number of media items that can be selected at once is limited to values that are less than or equal to the maximum visual media selection limit.
|
18
|
-
*/
|
19
|
-
maxVisualMediaCount: number;
|
20
|
-
}
|
21
|
-
/**
|
22
|
-
* @hidden
|
23
|
-
* The required value of the visualMedia files from gallery
|
24
|
-
*
|
25
|
-
* @beta
|
26
|
-
*/
|
27
|
-
export interface GalleryProps {
|
28
|
-
/**
|
29
|
-
* The visualMedia source
|
30
|
-
*/
|
31
|
-
source: Source.Gallery;
|
32
|
-
}
|
33
|
-
/**
|
34
|
-
* @hidden
|
35
|
-
* The required value of the visualMedia files from camera
|
36
|
-
*
|
37
|
-
* @beta
|
38
|
-
*/
|
39
|
-
export interface CameraProps {
|
40
|
-
/**
|
41
|
-
* @hidden
|
42
|
-
* The visualMedia source
|
43
|
-
*/
|
44
|
-
source: Source.Camera;
|
45
|
-
/**
|
46
|
-
* @hidden
|
47
|
-
* Optional; Specify whether users have the option to switch between the front and rear cameras. The default setting is FrontOrRear.
|
48
|
-
* Default value is FrontOrRear
|
49
|
-
*/
|
50
|
-
cameraRestriction?: CameraRestriction;
|
51
|
-
}
|
52
|
-
/**
|
53
|
-
* @hidden
|
54
|
-
* Indicate if user is allowed to move between front and back camera or stay in front/back camera only
|
55
|
-
* If the camera option requested by the app isn't available, the SDK will silently default to the platform's standard camera.
|
56
|
-
*
|
57
|
-
* @beta
|
58
|
-
*/
|
59
|
-
export enum CameraRestriction {
|
60
|
-
/** User can move between front and back camera */
|
61
|
-
FrontOrRear = 1,
|
62
|
-
/** User can only use the front camera */
|
63
|
-
FrontOnly = 2,
|
64
|
-
/** User can only use the back camera */
|
65
|
-
RearOnly = 3
|
66
|
-
}
|
67
|
-
/**
|
68
|
-
* @hidden
|
69
|
-
* Specifies the image source
|
70
|
-
*
|
71
|
-
* @beta
|
72
|
-
*/
|
73
|
-
export enum Source {
|
74
|
-
/** The camera is the source of visual media. */
|
75
|
-
Camera = 1,
|
76
|
-
/** The source of visual media is the gallery. */
|
77
|
-
Gallery = 2
|
78
|
-
}
|
79
|
-
/**
|
80
|
-
* @hidden
|
81
|
-
* VisualMediaFile object that can be used to represent image or video from host apps.
|
82
|
-
*
|
83
|
-
* @beta
|
84
|
-
*/
|
85
|
-
export interface VisualMediaFile {
|
86
|
-
/**
|
87
|
-
* @hidden
|
88
|
-
* This is the base64 content of file.
|
89
|
-
* If app needs to use this directly in HTML tags, it should convert this to a data url.
|
90
|
-
*/
|
91
|
-
content: string;
|
92
|
-
/**
|
93
|
-
* @hidden
|
94
|
-
* The size of file represented in VisualMediaFile in KB
|
95
|
-
*/
|
96
|
-
sizeInKB: number;
|
97
|
-
/**
|
98
|
-
* @hidden
|
99
|
-
* Name of the file (does not include the extension)
|
100
|
-
*/
|
101
|
-
name: string;
|
102
|
-
/**
|
103
|
-
* @hidden
|
104
|
-
* File's MIME type. More information on supported `mimeTypes`(https://docs.lens.xyz/docs/metadata-standards#supported-mime-types-for-imagesaudiovideos).
|
105
|
-
*/
|
106
|
-
mimeType: string;
|
107
|
-
}
|
108
|
-
/**
|
109
|
-
* @hidden
|
110
|
-
* Checks whether or not visualMedia has user permission
|
111
|
-
* @returns Promise that will resolve with true if the user had granted the app permission to media information(including Camera and Gallery permission), or with false otherwise,
|
112
|
-
* In case of an error, promise will reject with the error.
|
113
|
-
* @throws NOT_SUPPORTED_ON_PLATFORM Error if the DevicePermission.Media permission has not successfully granted.
|
114
|
-
*
|
115
|
-
* @beta
|
116
|
-
*/
|
117
|
-
export function hasPermission(): Promise<boolean>;
|
118
|
-
/**
|
119
|
-
* @hidden
|
120
|
-
* Requests user permission for visualMedia
|
121
|
-
* @returns Promise that will resolve with true if the user consented permission for media(including Camera and Gallery permission), or with false otherwise,
|
122
|
-
* In case of an error, promise will reject with the error.
|
123
|
-
* @throws NOT_SUPPORTED_ON_PLATFORM Error if the DevicePermission.Media permission has not successfully granted.
|
124
|
-
*
|
125
|
-
* @beta
|
126
|
-
*/
|
127
|
-
export function requestPermission(): Promise<boolean>;
|
128
|
-
/**
|
129
|
-
* @hidden
|
130
|
-
* To enable this image capability will let the app developer ask the user to get images from camera/local storage
|
131
|
-
*
|
132
|
-
* @beta
|
133
|
-
*/
|
134
|
-
export namespace image {
|
135
|
-
/**
|
136
|
-
* @hidden
|
137
|
-
* CameraImageProperties is for the image taken from the camera
|
138
|
-
*
|
139
|
-
* @beta
|
140
|
-
*/
|
141
|
-
interface CameraImageProperties extends VisualMediaProps {
|
142
|
-
/**
|
143
|
-
* @hidden
|
144
|
-
* The source in CameraImageProperties should always be CameraProps
|
145
|
-
*/
|
146
|
-
sourceProps: CameraProps;
|
147
|
-
}
|
148
|
-
/**
|
149
|
-
* @hidden
|
150
|
-
* CameraImageProperties is for the image taken from the camera
|
151
|
-
*
|
152
|
-
* @beta
|
153
|
-
*/
|
154
|
-
interface GalleryImageProperties extends VisualMediaProps {
|
155
|
-
/**
|
156
|
-
* @hidden
|
157
|
-
* The source in GalleryImageProperties should always be GalleryProps
|
158
|
-
*/
|
159
|
-
sourceProps: GalleryProps;
|
160
|
-
}
|
161
|
-
/**
|
162
|
-
* @hidden
|
163
|
-
* Capture one or multiple image(s) using camera.
|
164
|
-
* @param cameraImageInputs - The input params to customize the image(s) to be captured
|
165
|
-
* @returns Promise that will resolve with {@link VisualMediaFile[]} object or reject with an error.
|
166
|
-
* @throws INVALID_ARGUMENTS Error if imageInputs is null or imageInputs.maxVisualMediaCount is greater than maxVisualMediaSelectionLimit or lesser than 1.
|
167
|
-
*
|
168
|
-
* @beta
|
169
|
-
*/
|
170
|
-
function captureImages(cameraImageInputs: CameraImageProperties): Promise<VisualMediaFile[]>;
|
171
|
-
/**
|
172
|
-
* @hidden
|
173
|
-
* Upload the existing image(s) from the gallery.
|
174
|
-
* @param galleryImageInputs - The input params to customize the image(s) to be captured
|
175
|
-
* @returns Promise that will resolve with {@link VisualMediaFile[]} object or reject with an error.
|
176
|
-
* @throws INVALID_ARGUMENTS Error if imageInputs is null or imageInputs.maxVisualMediaCount is greater than maxVisualMediaSelectionLimit or lesser than 1.
|
177
|
-
*
|
178
|
-
* @beta
|
179
|
-
*/
|
180
|
-
function retrieveImages(galleryImageInputs: GalleryImageProperties): Promise<VisualMediaFile[]>;
|
181
|
-
/**
|
182
|
-
* @hidden
|
183
|
-
* Checks if visualMedia.image capability is supported by the host
|
184
|
-
* @returns boolean to represent whether visualMedia.image is supported
|
185
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
186
|
-
*
|
187
|
-
* @beta
|
188
|
-
*/
|
189
|
-
function isSupported(): boolean;
|
190
|
-
}
|
191
|
-
export {};
|
192
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{__awaiter as i}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendAndUnwrap as o}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getLogger as r,getApiVersionTag as n}from"../internal/telemetry.js";import{errorNotSupportedOnPlatform as l}from"../public/constants.js";import{isSdkError as e}from"../public/interfaces.js";import{runtime as s}from"../public/runtime.js";const p=r("copilot");var a;!function(r){!function(r){function a(){var i,o;return t(s)&&(!!(null===(i=s.hostVersionsInfo)||void 0===i?void 0:i.appEligibilityInformation)||!!(null===(o=s.supports.copilot)||void 0===o?void 0:o.eligibility))}r.isSupported=a,r.getEligibilityInfo=function(){var r,m;return i(this,void 0,void 0,(function*(){if(t(s),!a())throw new Error(`Error code: ${l.errorCode}, message: Not supported on platform`);if(null===(r=s.hostVersionsInfo)||void 0===r?void 0:r.appEligibilityInformation)return p("Eligibility information is already available on runtime."),s.hostVersionsInfo.appEligibilityInformation;p("Eligibility information is not available on runtime. Requesting from host.");const i=yield o(n("v2","copilot.eligibility.getEligibilityInfo"),"copilot.eligibility.getEligibilityInfo");if(e(i))throw new Error(`Error code: ${i.errorCode}, message: ${null!==(m=i.message)&&void 0!==m?m:"Failed to get eligibility information from the host."}`);if(!function(i){if(void 0===i.ageGroup||void 0===i.cohort||void 0===i.userClassification||void 0===i.isCopilotEligible||void 0===i.isCopilotEnabledRegion||void 0===i.isOptedOutByAdmin)return!1;return!0}(i))throw new Error("Error deserializing eligibility information");return i}))}}(r.eligibility||(r.eligibility={}))}(a||(a={}));export{a as copilot};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{callFunctionInHostAndHandleResponse as t}from"../internal/communication.js";import{ensureInitialized as r}from"../internal/internalAPIs.js";import{SimpleTypeResponseHandler as e,ResponseHandler as n}from"../internal/responseHandler.js";import{getApiVersionTag as o}from"../internal/telemetry.js";import{runtime as a}from"../public/runtime.js";import{ErrorCode as s}from"../public/interfaces.js";const i="v2";var u;!function(u){(u.AppTypes||(u.AppTypes={})).edu="EDU";class d{constructor(t){this.hostEntityId=t}serialize(){return this.hostEntityId}}!function(l){class c extends n{validate(t){return"ConfigurableTab"===t.tabType}deserialize(t){return t}}class p{constructor(t){this.configurableTabInstance=t}serialize(){return this.configurableTabInstance}}class f extends n{validate(t){return"ConfigurableTab"===t.tabType||"StaticTab"===t.tabType}deserialize(t){return t}}class E{constructor(t){this.hostEntityTabInstance=t}serialize(){return this.hostEntityTabInstance}}class h extends n{validate(t){return t.allTabs&&t.allTabs.forEach((t=>{})),!0}deserialize(t){return t}}function m(){var t;return!!(r(a)&&u.isSupported()&&(null===(t=a.supports.hostEntity)||void 0===t?void 0:t.tab))}function b(t){if(!t||0==t.length)throw new Error(`Error code: ${s.INVALID_ARGUMENTS}, message: ThreadId cannot be null or empty`)}function T(t){if(!(null==t?void 0:t.internalTabInstanceId)||0===t.internalTabInstanceId.length)throw new Error(`Error code: ${s.INVALID_ARGUMENTS}, message: TabId cannot be null or empty`)}l.addAndConfigure=function(e,n){if(r(a),!m())throw new Error(`Error code: ${s.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);if(b(e.threadId),n&&0===n.length)throw new Error(`Error code: ${s.INVALID_ARGUMENTS}, message: App types cannot be an empty array`);return t("hostEntity.tab.addAndConfigure",[new d(e),n],new f,o(i,"hostEntity.tab.addAndConfigure"))},l.getAll=function(e){if(r(a),!m())throw new Error(`Error code: ${s.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return b(e.threadId),t("hostEntity.tab.getAll",[new d(e)],new h,o(i,"hostEntity.tab.getAll"))},l.reconfigure=function(e,n){if(r(a),!m())throw new Error(`Error code: ${s.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return T(e),b(n.threadId),t("hostEntity.tab.reconfigure",[new p(e),new d(n)],new c,o(i,"hostEntity.tab.reconfigure"))},l.rename=function(e,n){if(r(a),!m())throw new Error(`Error code: ${s.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return T(e),b(n.threadId),t("hostEntity.tab.rename",[new p(e),new d(n)],new c,o(i,"hostEntity.tab.rename"))},l.remove=function(n,u){if(r(a),!m())throw new Error(`Error code: ${s.NOT_SUPPORTED_ON_PLATFORM}, message: Not supported on platform`);return b(u.threadId),T(n),t("hostEntity.tab.remove",[new E(n),new d(u)],new e,o(i,"hostEntity.tab.remove"))},l.isSupported=m}(u.tab||(u.tab={})),u.isSupported=function(){return!(!r(a)||!a.supports.hostEntity)}}(u||(u={}));export{u as hostEntity};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{__awaiter as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{requestPortFromParentWithVersion as t}from"../internal/communication.js";import{ensureInitialized as r}from"../internal/internalAPIs.js";import{getLogger as n,getApiVersionTag as o}from"../internal/telemetry.js";import{errorNotSupportedOnPlatform as a}from"../public/constants.js";import{runtime as s}from"../public/runtime.js";var i;!function(i){!function(i){let l;const m=n("messageChannels.telemetry");function u(){var e;return!(!r(s)||!(null===(e=s.supports.messageChannels)||void 0===e?void 0:e.telemetry))}i.getTelemetryPort=function(){return e(this,void 0,void 0,(function*(){if(l)return m("Returning telemetry port from cache"),l;if(!u())throw a;return l=yield t(o("v1","messageChannels.telemetry.getTelemetryPort"),"messageChannels.telemetry.getTelemetryPort"),l}))},i.isSupported=u,i._clearTelemetryPort=function(){l=void 0}}(i.telemetry||(i.telemetry={})),function(i){let l;const m=n("messageChannels.dataLayer");function u(){var e;return!(!r(s)||!(null===(e=s.supports.messageChannels)||void 0===e?void 0:e.dataLayer))}i.getDataLayerPort=function(){return e(this,void 0,void 0,(function*(){if(l)return m("Returning dataLayer port from cache"),l;if(!u())throw a;return l=yield t(o("v1","messageChannels.dataLayer.getDataLayerPort"),"messageChannels.dataLayer.getDataLayerPort"),l}))},i.isSupported=u,i._clearDataLayerPort=function(){l=void 0}}(i.dataLayer||(i.dataLayer={})),i.isSupported=function(){return!(!r(s)||!s.supports.messageChannels)}}(i||(i={}));export{i as messageChannels};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{sendMessageToParent as e,sendAndUnwrap as t}from"../internal/communication.js";import{getUserJoinedTeamsSupportedAndroidClientVersion as r}from"../internal/constants.js";import{GlobalVars as n}from"../internal/globalVars.js";import{ensureInitialized as s,isCurrentSDKVersionAtLeast as o}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{FrameContexts as a,errorNotSupportedOnPlatform as l,HostClientType as m}from"../public/constants.js";import{ErrorCode as u}from"../public/interfaces.js";import{runtime as f}from"../public/runtime.js";const p="v1";var h;!function(h){var c;function T(){return!(!s(f)||!f.supports.teams)}(c=h.ChannelType||(h.ChannelType={}))[c.Regular=0]="Regular",c[c.Private=1]="Private",c[c.Shared=2]="Shared",h.getTeamChannels=function(t,r){if(s(f,a.content),!T())throw l;if(!t)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!r)throw new Error("[teams.getTeamChannels] Callback cannot be null");e(i(p,"teams.getTeamChannels"),"teams.getTeamChannels",[t],r)},h.refreshSiteUrl=function(t,r){if(s(f),!T())throw l;if(!t)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!r)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");e(i(p,"teams.refreshSiteUrl"),"teams.refreshSiteUrl",[t],r)},h.isSupported=T,function(e){function a(){return!(!s(f)||!f.supports.teams)&&!!f.supports.teams.fullTrust}!function(e){function a(){return!(!s(f)||!f.supports.teams)&&(!!f.supports.teams.fullTrust&&!!f.supports.teams.fullTrust.joinedTeams)}e.getUserJoinedTeams=function(e){return new Promise((h=>{if(s(f),!a())throw l;if((n.hostClientType===m.android||n.hostClientType===m.teamsRoomsAndroid||n.hostClientType===m.teamsPhones||n.hostClientType===m.teamsDisplays)&&!o(r)){const e={errorCode:u.OLD_PLATFORM};throw new Error(JSON.stringify(e))}h(t(i(p,"teams.fullTrust.joinedTeams.getUserJoinedTeams"),"getUserJoinedTeams",e))}))},e.isSupported=a}(e.joinedTeams||(e.joinedTeams={})),e.getConfigSetting=function(e){return new Promise((r=>{if(s(f),!a())throw l;r(t(i(p,"teams.fullTrust.getConfigSetting"),"getConfigSetting",e))}))},e.isSupported=a}(h.fullTrust||(h.fullTrust={}))}(h||(h={}));export{h as teams};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{__awaiter as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendMessageToParent as n,sendAndHandleSdkError as t}from"../internal/communication.js";import{registerHandler as i,doesHandlerExist as a,removeHandler as o}from"../internal/handlers.js";import{ensureInitialized as r}from"../internal/internalAPIs.js";import{getApiVersionTag as l}from"../internal/telemetry.js";import{FrameContexts as g}from"./constants.js";import{ErrorCode as s}from"./interfaces.js";import{runtime as d}from"./runtime.js";const c="v1";var u;!function(u){let p;var m,S;let h,C,A;function b(e,t){r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.setMicStateWithReason"),"meeting.updateMicState",[e,t])}!function(e){e[e.HostInitiated=0]="HostInitiated",e[e.AppInitiated=1]="AppInitiated",e[e.AppDeclinedToChange=2]="AppDeclinedToChange",e[e.AppFailedToChange=3]="AppFailedToChange"}(p||(p={})),(m=u.MeetingReactionType||(u.MeetingReactionType={})).like="like",m.heart="heart",m.laugh="laugh",m.surprised="surprised",m.applause="applause",(S=u.MeetingType||(u.MeetingType={})).Unknown="Unknown",S.Adhoc="Adhoc",S.Scheduled="Scheduled",S.Recurring="Recurring",S.Broadcast="Broadcast",S.MeetNow="MeetNow",function(e){e.OneOnOneCall="oneOnOneCall",e.GroupCall="groupCall"}(h=u.CallType||(u.CallType={})),function(e){e.Collaborative="Collaborative",e.ScreenShare="ScreenShare"}(C=u.SharingProtocol||(u.SharingProtocol={})),u.getIncomingClientAudioState=function(e){if(!e)throw new Error("[get incoming client audio state] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.getIncomingClientAudioState"),"getIncomingClientAudioState",e)},u.toggleIncomingClientAudio=function(e){if(!e)throw new Error("[toggle incoming client audio] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.toggleIncomingClientAudio"),"toggleIncomingClientAudio",e)},u.getMeetingDetails=function(e){if(!e)throw new Error("[get meeting details] Callback cannot be null");r(d,g.sidePanel,g.meetingStage,g.settings,g.content),n(l(c,"meeting.getMeetingDetails"),"meeting.getMeetingDetails",e)},u.getMeetingDetailsVerbose=function(){var n,i,a;return e(this,void 0,void 0,(function*(){let e;r(d,g.sidePanel,g.meetingStage,g.settings,g.content);try{const n=!0;e=yield t(l("v2","meeting.getMeetingDetailsVerbose"),"meeting.getMeetingDetails",n)}catch(e){throw new Error(null===(n=null==e?void 0:e.errorCode)||void 0===n?void 0:n.toString())}if(((null===(i=e.details)||void 0===i?void 0:i.type)==h.GroupCall||(null===(a=e.details)||void 0===a?void 0:a.type)==h.OneOnOneCall)&&!e.details.originalCallerInfo)throw new Error(s.NOT_SUPPORTED_ON_PLATFORM.toString());return e}))},u.getAuthenticationTokenForAnonymousUser=function(e){if(!e)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");r(d,g.sidePanel,g.meetingStage,g.task),n(l(c,"meeting.getAuthenticationTokenForAnonymousUser"),"meeting.getAuthenticationTokenForAnonymousUser",e)},u.getLiveStreamState=function(e){if(!e)throw new Error("[get live stream state] Callback cannot be null");r(d,g.sidePanel),n(l(c,"meeting.getLiveStreamState"),"meeting.getLiveStreamState",e)},u.requestStartLiveStreaming=function(e,t,i){if(!e)throw new Error("[request start live streaming] Callback cannot be null");r(d,g.sidePanel),n(l(c,"meeting.requestStartLiveStreaming"),"meeting.requestStartLiveStreaming",[t,i],e)},u.requestStopLiveStreaming=function(e){if(!e)throw new Error("[request stop live streaming] Callback cannot be null");r(d,g.sidePanel),n(l(c,"meeting.requestStopLiveStreaming"),"meeting.requestStopLiveStreaming",e)},u.registerLiveStreamChangedHandler=function(e){if(!e)throw new Error("[register live stream changed handler] Handler cannot be null");r(d,g.sidePanel),i(l(c,"meeting.registerLiveStreamChangedHandler"),"meeting.liveStreamChanged",e)},u.shareAppContentToStage=function(e,t,i={sharingProtocol:C.Collaborative}){if(!e)throw new Error("[share app content to stage] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.shareAppContentToStage"),"meeting.shareAppContentToStage",[t,i],e)},u.getAppContentStageSharingCapabilities=function(e){if(!e)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.getAppContentStageSharingCapabilities"),"meeting.getAppContentStageSharingCapabilities",e)},u.stopSharingAppContentToStage=function(e){if(!e)throw new Error("[stop sharing app content to stage] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.stopSharingAppContentToStage"),"meeting.stopSharingAppContentToStage",e)},u.getAppContentStageSharingState=function(e){if(!e)throw new Error("[get app content stage sharing state] Callback cannot be null");r(d,g.sidePanel,g.meetingStage),n(l(c,"meeting.getAppContentStageSharingState"),"meeting.getAppContentStageSharingState",e)},u.registerSpeakingStateChangeHandler=function(e){if(!e)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");r(d,g.sidePanel,g.meetingStage),i(l(c,"meeting.registerSpeakingStateChangeHandler"),"meeting.speakingStateChanged",e)},u.registerRaiseHandStateChangedHandler=function(e){if(!e)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");r(d,g.sidePanel,g.meetingStage),i(l(c,"meeting.registerRaiseHandStateChangedHandler"),"meeting.raiseHandStateChanged",e)},u.registerMeetingReactionReceivedHandler=function(e){if(!e)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");r(d,g.sidePanel,g.meetingStage),i(l(c,"meeting.registerMeetingReactionReceivedHandler"),"meeting.meetingReactionReceived",e)},u.joinMeeting=function(e){if(void 0===(null==e?void 0:e.joinWebUrl)||null===(null==e?void 0:e.joinWebUrl))return Promise.reject(new Error("Invalid joinMeetingParams"));r(d);const n={joinWebUrl:e.joinWebUrl.href,source:e.source||A.Other};return t(l("v2","meeting.joinMeeting"),"meeting.joinMeeting",n)},function(e){e.M365CalendarGridContextMenu="m365_calendar_grid_context_menu",e.M365CalendarGridPeek="m365_calendar_grid_peek",e.M365CalendarGridEventCardJoinButton="m365_calendar_grid_event_card_join_button",e.M365CalendarFormRibbonJoinButton="m365_calendar_form_ribbon_join_button",e.M365CalendarFormJoinTeamsMeetingButton="m365_calendar_form_join_teams_meeting_button",e.Other="other"}(A=u.EventActionSource||(u.EventActionSource={})),(u.appShareButton||(u.appShareButton={})).setOptions=function(e){r(d,g.sidePanel),e.contentUrl&&new URL(e.contentUrl),n(l(c,"meeting.appShareButton.setOptions"),"meeting.appShareButton.setOptions",[e])},u.requestAppAudioHandling=function(t,s){if(!s)throw new Error("[requestAppAudioHandling] Callback response cannot be null");if(!t.micMuteStateChangedCallback)throw new Error("[requestAppAudioHandling] Callback Mic mute state handler cannot be null");r(d,g.sidePanel,g.meetingStage),t.isAppHandlingAudio?function(t,a){const o=(n,o)=>{if(n&&null!=o)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(n)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${n.errorCode} ${n.message}`);if("boolean"!=typeof o)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");const r=n=>e(this,void 0,void 0,(function*(){try{const e=yield t.micMuteStateChangedCallback(n);b(e,e.isMicMuted===n.isMicMuted?p.HostInitiated:p.AppDeclinedToChange)}catch(e){b(n,p.AppFailedToChange)}}));i(l(c,"meeting.registerMicStateChangeHandler"),"meeting.micStateChanged",r);const g=e=>{var n;null===(n=t.audioDeviceSelectionChangedCallback)||void 0===n||n.call(t,e)};i(l(c,"meeting.registerAudioDeviceSelectionChangedHandler"),"meeting.audioDeviceSelectionChanged",g),a(o)};n(l(c,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[t.isAppHandlingAudio],o)}(t,s):function(e,t){const i=(e,n)=>{if(e&&null!=n)throw new Error("[requestAppAudioHandling] Callback response - both parameters cannot be set");if(e)throw new Error(`[requestAppAudioHandling] Callback response - SDK error ${e.errorCode} ${e.message}`);if("boolean"!=typeof n)throw new Error("[requestAppAudioHandling] Callback response - isHostAudioless must be a boolean");a("meeting.micStateChanged")&&o("meeting.micStateChanged"),a("meeting.audioDeviceSelectionChanged")&&o("meeting.audioDeviceSelectionChanged"),t(n)};n(l(c,"meeting.requestAppAudioHandling"),"meeting.requestAppAudioHandling",[e.isAppHandlingAudio],i)}(t,s)},u.updateMicState=function(e){b(e,p.AppInitiated)}}(u||(u={}));export{u as meeting};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{appInitializeHelper as e}from"../internal/appHelpers.js";import{sendAndHandleStatusAndReasonWithDefaultError as t,sendMessageToParent as n,sendAndUnwrap as r,sendAndHandleStatusAndReason as i,Communication as s,sendMessageEventToChild as o,sendAndHandleSdkError as a}from"../internal/communication.js";import{registerHandlerHelper as u,registerHandler as c}from"../internal/handlers.js";import{ensureInitialized as p}from"../internal/internalAPIs.js";import{getApiVersionTag as g}from"../internal/telemetry.js";import{isNullOrUndefined as f}from"../internal/typeCheckUtilities.js";import{createTeamsAppLink as l}from"../internal/utils.js";import{prefetchOriginsFromCDN as d}from"../internal/validOrigins.js";import{AppId as m}from"./appId.js";import{FrameContexts as v,errorNotSupportedOnPlatform as h}from"./constants.js";import{runtime as w}from"./runtime.js";const S="v2";function k(e,n){return new Promise((r=>{if(p(w,v.content,v.sidePanel,v.settings,v.remove,v.task,v.stage,v.meetingStage),!N.isSupported())throw h;r(t(e,"navigateCrossDomain","Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.",n))}))}function b(e){return new Promise((n=>{if(p(w),!N.backStack.isSupported())throw h;n(t(e,"navigateBack","Back navigation is not supported in the current client or context."))}))}function T(e,n){return new Promise((r=>{if(p(w),!N.tabs.isSupported())throw h;r(t(e,"navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",n))}))}function F(e,t){if(p(w),!N.isSupported())throw h;n(e,"returnFocus",[t])}function y(e,t){return new Promise((n=>{if(p(w),!N.tabs.isSupported())throw h;n(r(e,"getTabInstances",t))}))}function P(e,t){return new Promise((n=>{if(p(w),!N.tabs.isSupported())throw h;n(r(e,"getMruTabInstances",t))}))}function H(e,t){if(p(w,v.content,v.sidePanel,v.meetingStage),!N.isSupported())throw h;n(e,"shareDeepLink",[t.subPageId,t.subPageLabel,t.subPageWebUrl])}function B(e,t){if(p(w,v.content),!N.isSupported())throw h;n(e,"setFrameContext",[t])}function C(e,t){if(p(w,v.settings,v.remove),!N.config.isSupported())throw h;n(e,"settings.setValidityState",[t])}function L(e){return new Promise((t=>{if(p(w,v.content,v.settings,v.remove,v.sidePanel),!N.isSupported())throw h;t(r(e,"settings.getSettings"))}))}function I(e,t){return new Promise((n=>{if(p(w,v.content,v.settings,v.sidePanel),!N.config.isSupported())throw h;n(i(e,"settings.setSettings",t))}))}var N;function E(e){return e.appId instanceof m}function j(e){return Object.assign(Object.assign({},e),{appId:new m(e.appId),webUrl:e.webUrl?new URL(e.webUrl):void 0})}function x(e){return Object.assign(Object.assign({},e),{appId:e.appId.toString(),webUrl:e.webUrl?e.webUrl.toString():void 0})}!function(t){var r,m,F;function N(e){B(g(S,"pages.setCurrentFrame"),e)}function A(){return!(!p(w)||!w.supports.pages)}(r=t.EnterFocusType||(t.EnterFocusType={}))[r.PreviousLandmark=0]="PreviousLandmark",r[r.NextLandmark=1]="NextLandmark",r[r.Read=2]="Read",r[r.Compose=3]="Compose",(m=t.ReturnFocusType||(t.ReturnFocusType={}))[m.PreviousLandmark=0]="PreviousLandmark",m[m.NextLandmark=1]="NextLandmark",m[m.GoToActivityFeed=2]="GoToActivityFeed",t.returnFocus=function(e){const r=g(S,"pages.returnFocus");if(p(w),!t.isSupported())throw h;if(void 0===e&&n(r,"returnFocus",[!1]),"boolean"==typeof e)n(r,"returnFocus",[e]);else switch(e){case t.ReturnFocusType.PreviousLandmark:case t.ReturnFocusType.GoToActivityFeed:n(r,"returnFocus",[!1,e]);break;case t.ReturnFocusType.NextLandmark:n(r,"returnFocus",[!0,e])}},t.registerFocusEnterHandler=function(e){u(g(S,"pages.registerFocusEnterHandler"),"focusEnter",e,[],(()=>{if(!A())throw h}))},t.setCurrentFrame=N,t.initializeWithFrameContext=function(t,n,r){d(),e(g(S,"pages.initializeWithFrameContext"),r).then((()=>n&&n())),N(t)},t.getConfig=function(){return L(g(S,"pages.getConfig."))},t.navigateCrossDomain=function(e){return k(g(S,"pages.navigateCrossDomain"),e)},t.navigateToApp=function(e){return new Promise((t=>{if(p(w,v.content,v.sidePanel,v.settings,v.task,v.stage,v.meetingStage),!A())throw h;const n=g(S,"pages.navigateToApp");if(w.isLegacyTeams){const r=E(e)?e:j(e);t(i(n,"executeDeepLink",l(r)))}else{const r=E(e)?x(e):e;t(i(n,"pages.navigateToApp",r))}}))},t.shareDeepLink=function(e){return H(g(S,"pages.shareDeepLink"),e)},t.registerFullScreenHandler=function(e){u(g(S,"pages.registerFullScreenHandler"),"fullScreenChange",e,[],(()=>{if(!f(e)&&!A())throw h}))},t.isSupported=A,(F=t.tabs||(t.tabs={})).navigateToTab=function(e){return T(g(S,"pages.tabs.navigateToTab"),e)},F.getTabInstances=function(e){return y(g(S,"pages.tabs.getTabInstances"),e)},F.getMruTabInstances=function(e){return P(g(S,"pages.tabs.getMruTabInstances"),e)},F.isSupported=function(){return!(!p(w)||!w.supports.pages||!w.supports.pages.tabs)},function(e){let t,r;function i(e,r,i){!f(r)&&p(w,v.settings),i&&i(),t=r,!f(r)&&n(e,"registerHandler",["save"])}function a(e,t,i){!f(t)&&p(w,v.remove,v.settings),i&&i(),r=t,!f(t)&&n(e,"registerHandler",["remove"])}function l(e){const n=new d(e);t?t(n):s.childWindow?o("settings.save",[e]):n.notifySuccess()}e.initialize=function(){c(g(S,"pages.config.registerSettingsSaveHandler"),"settings.save",l,!1),c(g(S,"pages.config.registerSettingsRemoveHandler"),"settings.remove",m,!1)},e.setValidityState=function(e){return C(g(S,"pages.config.setValidityState"),e)},e.setConfig=function(e){return I(g(S,"pages.config.setConfig"),e)},e.registerOnSaveHandler=function(e){i(g(S,"pages.config.registerOnSaveHandler"),e,(()=>{if(!f(e)&&!b())throw h}))},e.registerOnSaveHandlerHelper=i,e.registerOnRemoveHandler=function(e){a(g(S,"pages.config.registerOnRemoveHandler"),e,(()=>{if(!f(e)&&!b())throw h}))},e.registerOnRemoveHandlerHelper=a,e.registerChangeConfigHandler=function(e){u(g(S,"pages.config.registerChangeConfigHandler"),"changeSettings",e,[v.content],(()=>{if(!b())throw h}))};class d{constructor(e){this.notified=!1,this.result=e||{}}notifySuccess(){this.ensureNotNotified(),n(g(S,"pages.saveEvent.notifySuccess"),"settings.save.success"),this.notified=!0}notifyFailure(e){this.ensureNotNotified(),n(g(S,"pages.saveEvent.notifyFailure"),"settings.save.failure",[e]),this.notified=!0}ensureNotNotified(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")}}function m(){const e=new k;r?r(e):s.childWindow?o("settings.remove",[]):e.notifySuccess()}class k{constructor(){this.notified=!1}notifySuccess(){this.ensureNotNotified(),n(g(S,"pages.removeEvent.notifySuccess"),"settings.remove.success"),this.notified=!0}notifyFailure(e){this.ensureNotNotified(),n(g(S,"pages.removeEvent.notifyFailure"),"settings.remove.failure",[e]),this.notified=!0}ensureNotNotified(){if(this.notified)throw new Error("The removeEventType may only notify success or failure once.")}}function b(){return!(!p(w)||!w.supports.pages)&&!!w.supports.pages.config}e.isSupported=b}(t.config||(t.config={})),function(e){let t;function r(){return b(g(S,"pages.backStack.navigateBack"))}function i(e,r,i){!f(r)&&p(w),i&&i(),t=r,!f(r)&&n(e,"registerHandler",["backButton"])}function a(){t&&t()||(s.childWindow?o("backButtonPress",[]):r())}function u(){return!(!p(w)||!w.supports.pages)&&!!w.supports.pages.backStack}e._initialize=function(){c(g(S,"pages.backStack.registerBackButtonPressHandler"),"backButtonPress",a,!1)},e.navigateBack=r,e.registerBackButtonHandler=function(e){i(g(S,"pages.backStack.registerBackButtonHandler"),e,(()=>{if(!f(e)&&!u())throw h}))},e.registerBackButtonHandlerHelper=i,e.isSupported=u}(t.backStack||(t.backStack={})),function(e){function t(){return!(!p(w)||!w.supports.pages)&&!!w.supports.pages.fullTrust}e.enterFullscreen=function(){if(p(w,v.content),!t())throw h;n(g(S,"pages.fullTrust.enterFullscreen"),"enterFullscreen",[])},e.exitFullscreen=function(){if(p(w,v.content),!t())throw h;n(g(S,"pages.fullTrust.exitFullscreen"),"exitFullscreen",[])},e.isSupported=t}(t.fullTrust||(t.fullTrust={})),function(e){function t(){return!(!p(w)||!w.supports.pages)&&!!w.supports.pages.appButton}e.onClick=function(e){u(g(S,"pages.appButton.onClick"),"appButtonClick",e,[v.content],(()=>{if(!t())throw h}))},e.onHoverEnter=function(e){u(g(S,"pages.appButton.onHoverEnter"),"appButtonHoverEnter",e,[v.content],(()=>{if(!t())throw h}))},e.onHoverLeave=function(e){u(g(S,"pages.appButton.onHoverLeave"),"appButtonHoverLeave",e,[v.content],(()=>{if(!t())throw h}))},e.isSupported=t}(t.appButton||(t.appButton={})),function(e){function t(){return!(!p(w)||!w.supports.pages)&&!!w.supports.pages.currentApp}e.navigateTo=function(e){return new Promise((n=>{if(p(w,v.content,v.sidePanel,v.settings,v.task,v.stage,v.meetingStage),!t())throw h;n(a(g(S,"pages.currentApp.navigateTo"),"pages.currentApp.navigateTo",e))}))},e.navigateToDefaultPage=function(){return new Promise((e=>{if(p(w,v.content,v.sidePanel,v.settings,v.task,v.stage,v.meetingStage),!t())throw h;e(a(g(S,"pages.currentApp.navigateToDefaultPage"),"pages.currentApp.navigateToDefaultPage"))}))},e.isSupported=t}(t.currentApp||(t.currentApp={}))}(N||(N={}));export{b as backStackNavigateBackHelper,I as configSetConfigHelper,C as configSetValidityStateHelper,x as convertAppNavigationParametersToNavigateToAppParams,j as convertNavigateToAppParamsToAppNavigationParameters,L as getConfigHelper,P as getMruTabInstancesHelper,y as getTabInstancesHelper,E as isAppNavigationParametersObject,k as navigateCrossDomainHelper,N as pages,F as returnFocusHelper,B as setCurrentFrameHelper,H as shareDeepLinkHelper,T as tabsNavigateToTabHelper};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendAndHandleSdkError as e}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{callCallbackWithSdkErrorFromPromiseAndReturnPromise as o}from"../internal/utils.js";import{FrameContexts as s,errorNotSupportedOnPlatform as i}from"./constants.js";import{ErrorCode as a}from"./interfaces.js";import{runtime as m}from"./runtime.js";var u;!function(u){function p(t,n){return new Promise((r=>{if(!c())throw i;r(e(t,u.SharingAPIMessages.shareWebContent,n))}))}function c(){return!(!n(m)||!m.supports.sharing)}u.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},u.shareWebContent=function(t,e){try{!function(t){if(!(t&&t.content&&t.content.length)){throw{errorCode:a.INVALID_ARGUMENTS,message:"Shared content is missing"}}}(t),function(t){let e;if(t.content.some((t=>!t.type)))throw e={errorCode:a.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"},e;if(t.content.some((e=>e.type!==t.content[0].type)))throw e={errorCode:a.INVALID_ARGUMENTS,message:"Shared content must be of the same type"},e}(t),function(t){let e;if("URL"!==t.content[0].type)throw e={errorCode:a.INVALID_ARGUMENTS,message:"Content type is unsupported"},e;if(t.content.some((t=>!t.url)))throw e={errorCode:a.INVALID_ARGUMENTS,message:"URLs are required for URL content types"},e}(t)}catch(t){return o((()=>Promise.reject(t)),e)}n(m,s.content,s.sidePanel,s.task,s.stage,s.meetingStage);const i=r(e?"v1":"v2","sharing.shareWebContent");return o(p,e,i,t)},u.isSupported=c,function(o){function a(){var t;return n(m)&&void 0!==(null===(t=m.supports.sharing)||void 0===t?void 0:t.history)}o.getContent=function(){return t(this,void 0,void 0,(function*(){if(n(m,s.sidePanel,s.meetingStage),!a())throw i;return yield e(r("v2","sharing.history.getContent"),"sharing.history.getContent")}))},o.isSupported=a}(u.history||(u.history={}))}(u||(u={}));export{u as sharing};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{sendAndHandleSdkError as e}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as o}from"../internal/telemetry.js";import{FrameContexts as n,errorNotSupportedOnPlatform as r}from"./constants.js";import{runtime as i}from"./runtime.js";var s;!function(s){var p;function a(){return!(!t(i)||!i.supports.stageView)}(p=s.StageViewOpenMode||(s.StageViewOpenMode={})).modal="modal",p.popout="popout",p.popoutWithChat="popoutWithChat",s.open=function(s){return new Promise((p=>{if(t(i,n.content),!a())throw r;if(!s)throw new Error("[stageView.open] Stage view params cannot be null");p(e(o("v2","stageView.open"),"stageView.open",s))}))},s.isSupported=a,function(s){function p(){var e;return t(i)&&void 0!==(null===(e=i.supports.stageView)||void 0===e?void 0:e.self)}s.close=function(){return new Promise((s=>{if(t(i,n.content),!p())throw r;s(e(o("v2","stageView.self.close"),"stageView.self.close"))}))},s.isSupported=p}(s.self||(s.self={}))}(s||(s={}));export{s as stageView};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{__awaiter as i}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendAndHandleSdkError as e}from"../internal/communication.js";import{ensureInitialized as t}from"../internal/internalAPIs.js";import{getApiVersionTag as r}from"../internal/telemetry.js";import{FrameContexts as n,errorNotSupportedOnPlatform as s,errorInvalidCount as o,errorInvalidResponse as a}from"./constants.js";import{DevicePermission as u}from"./interfaces.js";import{runtime as m}from"./runtime.js";const l="v2";var p;!function(p){var c,d;let f;(c=p.CameraRestriction||(p.CameraRestriction={}))[c.FrontOrRear=1]="FrontOrRear",c[c.FrontOnly=2]="FrontOnly",c[c.RearOnly=3]="RearOnly",(d=p.Source||(p.Source={}))[d.Camera=1]="Camera",d[d.Gallery=2]="Gallery",p.hasPermission=function(){if(t(m,n.content,n.task),!f.isSupported())throw s;const i=u.Media;return e(r(l,"visualMedia.hasPermission"),"permissions.has",i)},p.requestPermission=function(){if(t(m,n.content,n.task),!f.isSupported())throw s;const i=u.Media;return e(r(l,"visualMedia.requestPermission"),"permissions.request",i)},function(u){function p(){return!!(t(m)&&m.supports.visualMedia&&m.supports.visualMedia.image&&m.supports.permissions)}function c(){if(!p())throw s}function d(i){if(!i||i.maxVisualMediaCount>10||i.maxVisualMediaCount<1)throw o}function f(i,e){if(e.length>i)throw a}u.captureImages=function(s){return i(this,void 0,void 0,(function*(){t(m,n.content,n.task),c(),d(s);const i=yield e(r(l,"visualMedia.image.captureImages"),"visualMedia.image.captureImages",s);return f(s.maxVisualMediaCount,i),i}))},u.retrieveImages=function(s){return i(this,void 0,void 0,(function*(){t(m,n.content,n.task),c(),d(s);const i=yield e(r(l,"visualMedia.image.retrieveImages"),"visualMedia.image.retrieveImages",s);return f(s.maxVisualMediaCount,i),i}))},u.isSupported=p}(f=p.image||(p.image={}))}(p||(p={}));export{p as visualMedia};
|