@microsoft/teams-js 2.30.0 → 2.31.0-beta.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/dist/esm/_virtual/__polyfill-node.os.js +1 -0
- package/dist/esm/_virtual/_polyfill-node.os.js +1 -0
- package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js +1 -1
- package/dist/esm/node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.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 +8 -0
- package/dist/esm/packages/teams-js/dts/internal/appIdValidation.d.ts +16 -0
- package/dist/esm/packages/teams-js/dts/internal/communication.d.ts +162 -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/emailAddressValidation.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/internal/globalVars.d.ts +12 -0
- package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +80 -0
- package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +47 -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 +73 -0
- package/dist/esm/packages/teams-js/dts/internal/nestedAppAuthUtils.d.ts +105 -0
- package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/internal/responseHandler.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +344 -0
- package/dist/esm/packages/teams-js/dts/internal/typeCheckUtilities.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +200 -0
- package/dist/esm/packages/teams-js/dts/internal/uuidObject.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/internal/validOrigins.d.ts +6 -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/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.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +378 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +75 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +112 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +49 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +123 -0
- package/dist/esm/packages/teams-js/dts/private/files.d.ts +758 -0
- package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +176 -0
- package/dist/esm/packages/teams-js/dts/private/index.d.ts +20 -0
- package/dist/esm/packages/teams-js/dts/private/interfaces.d.ts +250 -0
- package/dist/esm/packages/teams-js/dts/private/logs.d.ts +25 -0
- package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +203 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +107 -0
- package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +26 -0
- package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +81 -0
- package/dist/esm/packages/teams-js/dts/private/privateAPIs.d.ts +60 -0
- package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +298 -0
- package/dist/esm/packages/teams-js/dts/private/teams.d.ts +116 -0
- package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +244 -0
- package/dist/esm/packages/teams-js/dts/public/adaptiveCards.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/app.d.ts +592 -0
- package/dist/esm/packages/teams-js/dts/public/appId.d.ts +33 -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/appWindow.d.ts +66 -0
- package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +409 -0
- package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +53 -0
- package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +40 -0
- package/dist/esm/packages/teams-js/dts/public/call.d.ts +53 -0
- package/dist/esm/packages/teams-js/dts/public/chat.d.ts +66 -0
- package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +34 -0
- package/dist/esm/packages/teams-js/dts/public/constants.d.ts +179 -0
- package/dist/esm/packages/teams-js/dts/public/dialog.d.ts +286 -0
- package/dist/esm/packages/teams-js/dts/public/emailAddress.d.ts +12 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation.d.ts +100 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +44 -0
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +1133 -0
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +221 -0
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +86 -0
- package/dist/esm/packages/teams-js/dts/public/mail.d.ts +95 -0
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +321 -0
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +440 -0
- package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +906 -0
- package/dist/esm/packages/teams-js/dts/public/menus.d.ts +188 -0
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +58 -0
- package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +45 -0
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +15 -0
- package/dist/esm/packages/teams-js/dts/public/pages.d.ts +574 -0
- package/dist/esm/packages/teams-js/dts/public/people.d.ts +75 -0
- package/dist/esm/packages/teams-js/dts/public/profile.d.ts +127 -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 +207 -0
- package/dist/esm/packages/teams-js/dts/public/search.d.ts +91 -0
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +32 -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 +101 -0
- package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +124 -0
- package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +104 -0
- package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +62 -0
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +77 -0
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +119 -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 +213 -0
- package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +192 -0
- package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +27 -0
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/responseHandler.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/hostEntity.js +1 -1
- package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -1
- package/dist/esm/packages/teams-js/src/public/app.js +1 -1
- package/dist/esm/packages/teams-js/src/public/appId.js +1 -1
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/appInstallDialog.js +1 -1
- package/dist/esm/packages/teams-js/src/public/authentication.js +1 -1
- package/dist/esm/packages/teams-js/src/public/barCode.js +1 -1
- package/dist/esm/packages/teams-js/src/public/calendar.js +1 -1
- package/dist/esm/packages/teams-js/src/public/call.js +1 -1
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
- package/dist/esm/packages/teams-js/src/public/constants.js +1 -1
- package/dist/esm/packages/teams-js/src/public/pages.js +1 -1
- package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/serializable.interface.js +1 -0
- package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
- 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/webStorage.js +1 -1
- package/dist/umd/MicrosoftTeams.d.ts +10740 -10768
- package/dist/umd/MicrosoftTeams.js +1571 -1359
- 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 -51
- package/dist/esm/node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js +0 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* Namespace to request message ports from the host application.
|
|
4
|
+
*
|
|
5
|
+
* @beta
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
* Limited to Microsoft-internal use
|
|
9
|
+
*/
|
|
10
|
+
export declare namespace messageChannels {
|
|
11
|
+
namespace telemetry {
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
* @beta
|
|
15
|
+
*
|
|
16
|
+
* Fetches a MessagePort to batch telemetry through the host's telemetry worker.
|
|
17
|
+
* The port is cached once received, so subsequent calls return the same port.
|
|
18
|
+
* @returns MessagePort.
|
|
19
|
+
*
|
|
20
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed,
|
|
21
|
+
* if the host does not support the feature, or if the port request is rejected.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
* Limited to Microsoft-internal use
|
|
25
|
+
*/
|
|
26
|
+
function getTelemetryPort(): Promise<MessagePort>;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*
|
|
30
|
+
* @beta
|
|
31
|
+
*
|
|
32
|
+
* Checks if the messageChannels.telemetry capability is supported by the host
|
|
33
|
+
* @returns boolean to represent whether the messageChannels.telemetry capability is supported
|
|
34
|
+
*
|
|
35
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
* Limited to Microsoft-internal use
|
|
39
|
+
*/
|
|
40
|
+
function isSupported(): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
* Undocumented function used to clear state between unit tests
|
|
44
|
+
*
|
|
45
|
+
* @beta
|
|
46
|
+
*
|
|
47
|
+
* @internal
|
|
48
|
+
* Limited to Microsoft-internal use
|
|
49
|
+
*/
|
|
50
|
+
function _clearTelemetryPort(): void;
|
|
51
|
+
}
|
|
52
|
+
namespace dataLayer {
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
* @beta
|
|
56
|
+
*
|
|
57
|
+
* Fetches a MessagePort to allow access to the host's data layer worker.
|
|
58
|
+
* The port is cached once received, so subsequent calls return the same port.
|
|
59
|
+
* @returns MessagePort.
|
|
60
|
+
*
|
|
61
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed,
|
|
62
|
+
* if the host does not support the feature, or if the port request is rejected.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
* Limited to Microsoft-internal use
|
|
66
|
+
*/
|
|
67
|
+
function getDataLayerPort(): Promise<MessagePort>;
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*
|
|
71
|
+
* @beta
|
|
72
|
+
*
|
|
73
|
+
* Checks if the messageChannels.dataLayer capability is supported by the host
|
|
74
|
+
* @returns boolean to represent whether the messageChannels.dataLayer capability is supported
|
|
75
|
+
*
|
|
76
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
77
|
+
*
|
|
78
|
+
* @internal
|
|
79
|
+
* Limited to Microsoft-internal use
|
|
80
|
+
*/
|
|
81
|
+
function isSupported(): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* @hidden
|
|
84
|
+
* Undocumented function used to clear state between unit tests
|
|
85
|
+
*
|
|
86
|
+
* @beta
|
|
87
|
+
*
|
|
88
|
+
* @internal
|
|
89
|
+
* Limited to Microsoft-internal use
|
|
90
|
+
*/
|
|
91
|
+
function _clearDataLayerPort(): void;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @hidden
|
|
95
|
+
*
|
|
96
|
+
* @beta
|
|
97
|
+
*
|
|
98
|
+
* Checks if the messageChannels capability is supported by the host
|
|
99
|
+
* @returns boolean to represent whether the messageChannels capability is supported
|
|
100
|
+
*
|
|
101
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
102
|
+
*
|
|
103
|
+
* @internal
|
|
104
|
+
* Limited to Microsoft-internal use
|
|
105
|
+
*/
|
|
106
|
+
function isSupported(): boolean;
|
|
107
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ShowNotificationParameters } from './interfaces';
|
|
2
|
+
export declare namespace notifications {
|
|
3
|
+
/**
|
|
4
|
+
* @hidden
|
|
5
|
+
* display notification API.
|
|
6
|
+
*
|
|
7
|
+
* @param message - Notification message.
|
|
8
|
+
* @param notificationType - Notification type
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* Limited to Microsoft-internal use
|
|
12
|
+
*/
|
|
13
|
+
function showNotification(showNotificationParameters: ShowNotificationParameters): void;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*
|
|
17
|
+
* Checks if the notifications capability is supported by the host
|
|
18
|
+
* @returns boolean to represent whether the notifications capability is supported
|
|
19
|
+
*
|
|
20
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
* Limited to Microsoft-internal use
|
|
24
|
+
*/
|
|
25
|
+
function isSupported(): boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* @internal
|
|
4
|
+
* @beta
|
|
5
|
+
* Limited to Microsoft-internal use
|
|
6
|
+
*
|
|
7
|
+
* This capability contains the APIs for handling events that happen to other applications on the host
|
|
8
|
+
* *while* the developer's application is running. For example, if the developer wants to be notified
|
|
9
|
+
* when another application has been installed.
|
|
10
|
+
*/
|
|
11
|
+
export declare namespace otherAppStateChange {
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
* @beta
|
|
15
|
+
* @internal
|
|
16
|
+
* Limited to Microsoft-internal use
|
|
17
|
+
*
|
|
18
|
+
* Represent an event that has happened with other number of applications installed on this host.
|
|
19
|
+
* (e.g. a new app has been installed)
|
|
20
|
+
*/
|
|
21
|
+
interface OtherAppStateChangeEvent {
|
|
22
|
+
/** An array of app ids that this event applies to */
|
|
23
|
+
appIds: string[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
* @beta
|
|
28
|
+
* @internal
|
|
29
|
+
* Limited to Microsoft-internal use
|
|
30
|
+
*
|
|
31
|
+
* A function handler that will be called whenever an event happens with some number of applications installed on this host.
|
|
32
|
+
*/
|
|
33
|
+
type OtherAppStateChangeEventHandler = (event: OtherAppStateChangeEvent) => void;
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
* @beta
|
|
37
|
+
* @internal
|
|
38
|
+
* Limited to Microsoft-internal use
|
|
39
|
+
*
|
|
40
|
+
* This function allows an app to register a handler that will receive whenever other applications are installed
|
|
41
|
+
* on the host while the developer's application is running.
|
|
42
|
+
*
|
|
43
|
+
* @param appInstallHandler - This handler will be called whenever apps are installed on the host.
|
|
44
|
+
*
|
|
45
|
+
* @throws Error if {@link app.initialize} has not successfully completed, if the platform
|
|
46
|
+
* does not support the otherAppStateChange capability, or if a valid handler is not passed to the function.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ``` ts
|
|
50
|
+
* if (otherAppStateChange.isSupported()) {
|
|
51
|
+
* otherAppStateChange.registerAppInstallationHandler((event: otherAppStateChange.OtherAppStateChangeEvent) => {
|
|
52
|
+
* // code to handle the event goes here
|
|
53
|
+
* });
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
function registerAppInstallationHandler(appInstallHandler: OtherAppStateChangeEventHandler): void;
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
* @beta
|
|
61
|
+
* @internal
|
|
62
|
+
* Limited to Microsoft-internal use
|
|
63
|
+
*
|
|
64
|
+
* This function can be called so that the handler passed to {@link registerAppInstallationHandler}
|
|
65
|
+
* will no longer receive app installation events. If this is called before registering a handler
|
|
66
|
+
* it will have no effect.
|
|
67
|
+
*
|
|
68
|
+
* @throws Error if {@link app.initialize} has not successfully completed or if the platform
|
|
69
|
+
* does not support the otherAppStateChange capability.
|
|
70
|
+
*/
|
|
71
|
+
function unregisterAppInstallationHandler(): void;
|
|
72
|
+
/**
|
|
73
|
+
* Checks if the otherAppStateChange capability is supported by the host
|
|
74
|
+
* @returns boolean to represent whether the otherAppStateChange capability is supported
|
|
75
|
+
*
|
|
76
|
+
* @throws Error if {@link app.initialize} has not successfully completed
|
|
77
|
+
*
|
|
78
|
+
* @beta
|
|
79
|
+
*/
|
|
80
|
+
function isSupported(): boolean;
|
|
81
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { FilePreviewParameters, UserSettingTypes } from './interfaces';
|
|
2
|
+
export declare function uploadCustomApp(manifestBlob: Blob, onComplete?: (status: boolean, reason?: string) => void): void;
|
|
3
|
+
/**
|
|
4
|
+
* @hidden
|
|
5
|
+
* Sends a custom action MessageRequest to host or parent window
|
|
6
|
+
*
|
|
7
|
+
* @param actionName - Specifies name of the custom action to be sent
|
|
8
|
+
* @param args - Specifies additional arguments passed to the action
|
|
9
|
+
* @param callback - Optionally specify a callback to receive response parameters from the parent
|
|
10
|
+
* @returns id of sent message
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Limited to Microsoft-internal use
|
|
14
|
+
*/
|
|
15
|
+
export declare function sendCustomMessage(actionName: string, args?: any[], callback?: (...args: any[]) => void): void;
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
* Sends a custom action MessageEvent to a child iframe/window, only if you are not using auth popup.
|
|
19
|
+
* Otherwise it will go to the auth popup (which becomes the child)
|
|
20
|
+
*
|
|
21
|
+
* @param actionName - Specifies name of the custom action to be sent
|
|
22
|
+
* @param args - Specifies additional arguments passed to the action
|
|
23
|
+
* @returns id of sent message
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
* Limited to Microsoft-internal use
|
|
27
|
+
*/
|
|
28
|
+
export declare function sendCustomEvent(actionName: string, args?: any[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
* Adds a handler for an action sent by a child window or parent window
|
|
32
|
+
*
|
|
33
|
+
* @param actionName - Specifies name of the action message to handle
|
|
34
|
+
* @param customHandler - The callback to invoke when the action message is received. The return value is sent to the child
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
* Limited to Microsoft-internal use
|
|
38
|
+
*/
|
|
39
|
+
export declare function registerCustomHandler(actionName: string, customHandler: (...args: any[]) => any[]): void;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
* register a handler to be called when a user setting changes. The changed setting type & value is provided in the callback.
|
|
43
|
+
*
|
|
44
|
+
* @param settingTypes - List of user setting changes to subscribe
|
|
45
|
+
* @param handler - When a subscribed setting is updated this handler is called
|
|
46
|
+
*
|
|
47
|
+
* @internal
|
|
48
|
+
* Limited to Microsoft-internal use
|
|
49
|
+
*/
|
|
50
|
+
export declare function registerUserSettingsChangeHandler(settingTypes: UserSettingTypes[], handler: (settingType: UserSettingTypes, value: any) => void): void;
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
* Opens a client-friendly preview of the specified file.
|
|
54
|
+
*
|
|
55
|
+
* @param file - The file to preview.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
* Limited to Microsoft-internal use
|
|
59
|
+
*/
|
|
60
|
+
export declare function openFilePreview(filePreviewParameters: FilePreviewParameters): void;
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { SdkError } from '../public/interfaces';
|
|
2
|
+
export declare namespace remoteCamera {
|
|
3
|
+
/**
|
|
4
|
+
* @hidden
|
|
5
|
+
* Data structure to represent patricipant details needed to request control of camera.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
* Limited to Microsoft-internal use
|
|
9
|
+
*/
|
|
10
|
+
interface Participant {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
* Id of participant.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
* Limited to Microsoft-internal use
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
* Display name of participant.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
* Limited to Microsoft-internal use
|
|
25
|
+
*/
|
|
26
|
+
displayName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
* Active indicates whether the participant's device is actively being controlled.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
* Limited to Microsoft-internal use
|
|
33
|
+
*/
|
|
34
|
+
active?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
* Enum used to indicate possible camera control commands.
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
* Limited to Microsoft-internal use
|
|
42
|
+
*/
|
|
43
|
+
enum ControlCommand {
|
|
44
|
+
Reset = "Reset",
|
|
45
|
+
ZoomIn = "ZoomIn",
|
|
46
|
+
ZoomOut = "ZoomOut",
|
|
47
|
+
PanLeft = "PanLeft",
|
|
48
|
+
PanRight = "PanRight",
|
|
49
|
+
TiltUp = "TiltUp",
|
|
50
|
+
TiltDown = "TiltDown"
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
* Data structure to indicate the current state of the device.
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
* Limited to Microsoft-internal use
|
|
58
|
+
*/
|
|
59
|
+
interface DeviceState {
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
* All operation are available to apply.
|
|
63
|
+
*
|
|
64
|
+
* @internal
|
|
65
|
+
* Limited to Microsoft-internal use
|
|
66
|
+
*/
|
|
67
|
+
available: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
* Either camera doesnt support to get state or It unable to apply command.
|
|
71
|
+
*
|
|
72
|
+
* @internal
|
|
73
|
+
* Limited to Microsoft-internal use
|
|
74
|
+
*/
|
|
75
|
+
error: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
* Reset max out or already applied. Client Disable Reset.
|
|
79
|
+
*
|
|
80
|
+
* @internal
|
|
81
|
+
* Limited to Microsoft-internal use
|
|
82
|
+
*/
|
|
83
|
+
reset: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
* ZoomIn maxed out.
|
|
87
|
+
*
|
|
88
|
+
* @internal
|
|
89
|
+
* Limited to Microsoft-internal use
|
|
90
|
+
*/
|
|
91
|
+
zoomIn: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
* ZoomOut maxed out.
|
|
95
|
+
*
|
|
96
|
+
* @internal
|
|
97
|
+
* Limited to Microsoft-internal use
|
|
98
|
+
*/
|
|
99
|
+
zoomOut: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
* PanLeft reached max left.
|
|
103
|
+
*
|
|
104
|
+
* @internal
|
|
105
|
+
* Limited to Microsoft-internal use
|
|
106
|
+
*/
|
|
107
|
+
panLeft: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* @hidden
|
|
110
|
+
* PanRight reached max right.
|
|
111
|
+
*
|
|
112
|
+
* @internal
|
|
113
|
+
* Limited to Microsoft-internal use
|
|
114
|
+
*/
|
|
115
|
+
panRight: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* @hidden
|
|
118
|
+
* TiltUp reached top.
|
|
119
|
+
*
|
|
120
|
+
* @internal
|
|
121
|
+
* Limited to Microsoft-internal use
|
|
122
|
+
*/
|
|
123
|
+
tiltUp: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* @hidden
|
|
126
|
+
* TiltDown reached bottom.
|
|
127
|
+
*
|
|
128
|
+
* @internal Limited to Microsoft-internal use
|
|
129
|
+
*/
|
|
130
|
+
tiltDown: boolean;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @hidden
|
|
134
|
+
* Enum used to indicate the reason for the error.
|
|
135
|
+
*
|
|
136
|
+
* @internal
|
|
137
|
+
* Limited to Microsoft-internal use
|
|
138
|
+
*/
|
|
139
|
+
enum ErrorReason {
|
|
140
|
+
CommandResetError = 0,
|
|
141
|
+
CommandZoomInError = 1,
|
|
142
|
+
CommandZoomOutError = 2,
|
|
143
|
+
CommandPanLeftError = 3,
|
|
144
|
+
CommandPanRightError = 4,
|
|
145
|
+
CommandTiltUpError = 5,
|
|
146
|
+
CommandTiltDownError = 6,
|
|
147
|
+
SendDataError = 7
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @hidden
|
|
151
|
+
* Data structure to indicate the status of the current session.
|
|
152
|
+
*
|
|
153
|
+
* @internal
|
|
154
|
+
* Limited to Microsoft-internal use
|
|
155
|
+
*/
|
|
156
|
+
interface SessionStatus {
|
|
157
|
+
/**
|
|
158
|
+
* @hidden
|
|
159
|
+
* Whether the far-end user is controlling a device.
|
|
160
|
+
*
|
|
161
|
+
* @internal
|
|
162
|
+
* Limited to Microsoft-internal use
|
|
163
|
+
*/
|
|
164
|
+
inControl: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* @hidden
|
|
167
|
+
* Reason the control session was terminated.
|
|
168
|
+
*
|
|
169
|
+
* @internal
|
|
170
|
+
* Limited to Microsoft-internal use
|
|
171
|
+
*/
|
|
172
|
+
terminatedReason?: SessionTerminatedReason;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* @hidden
|
|
176
|
+
* Enum used to indicate the reason the session was terminated.
|
|
177
|
+
*
|
|
178
|
+
* @internal
|
|
179
|
+
* Limited to Microsoft-internal use
|
|
180
|
+
*/
|
|
181
|
+
enum SessionTerminatedReason {
|
|
182
|
+
None = 0,
|
|
183
|
+
ControlDenied = 1,
|
|
184
|
+
ControlNoResponse = 2,
|
|
185
|
+
ControlBusy = 3,
|
|
186
|
+
AckTimeout = 4,
|
|
187
|
+
ControlTerminated = 5,
|
|
188
|
+
ControllerTerminated = 6,
|
|
189
|
+
DataChannelError = 7,
|
|
190
|
+
ControllerCancelled = 8,
|
|
191
|
+
ControlDisabled = 9,
|
|
192
|
+
ControlTerminatedToAllowOtherController = 10
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @hidden
|
|
196
|
+
* Fetch a list of the participants with controllable-cameras in a meeting.
|
|
197
|
+
*
|
|
198
|
+
* @param callback - Callback contains 2 parameters, error and participants.
|
|
199
|
+
* error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
|
|
200
|
+
* participants can either contain an array of Participant objects, incase of a successful fetch or null when it fails
|
|
201
|
+
* participants: object that contains an array of participants with controllable-cameras
|
|
202
|
+
*
|
|
203
|
+
* @internal
|
|
204
|
+
* Limited to Microsoft-internal use
|
|
205
|
+
*/
|
|
206
|
+
function getCapableParticipants(callback: (error: SdkError | null, participants: Participant[] | null) => void): void;
|
|
207
|
+
/**
|
|
208
|
+
* @hidden
|
|
209
|
+
* Request control of a participant's camera.
|
|
210
|
+
*
|
|
211
|
+
* @param participant - Participant specifies the participant to send the request for camera control.
|
|
212
|
+
* @param callback - Callback contains 2 parameters, error and requestResponse.
|
|
213
|
+
* error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
|
|
214
|
+
* requestResponse can either contain the true/false value, incase of a successful request or null when it fails
|
|
215
|
+
* requestResponse: True means request was accepted and false means request was denied
|
|
216
|
+
*
|
|
217
|
+
* @internal
|
|
218
|
+
* Limited to Microsoft-internal use
|
|
219
|
+
*/
|
|
220
|
+
function requestControl(participant: Participant, callback: (error: SdkError | null, requestResponse: boolean | null) => void): void;
|
|
221
|
+
/**
|
|
222
|
+
* @hidden
|
|
223
|
+
* Send control command to the participant's camera.
|
|
224
|
+
*
|
|
225
|
+
* @param ControlCommand - ControlCommand specifies the command for controling the camera.
|
|
226
|
+
* @param callback - Callback to invoke when the command response returns.
|
|
227
|
+
*
|
|
228
|
+
* @internal
|
|
229
|
+
* Limited to Microsoft-internal use
|
|
230
|
+
*/
|
|
231
|
+
function sendControlCommand(ControlCommand: ControlCommand, callback: (error: SdkError | null) => void): void;
|
|
232
|
+
/**
|
|
233
|
+
* @hidden
|
|
234
|
+
* Terminate the remote session
|
|
235
|
+
*
|
|
236
|
+
* @param callback - Callback to invoke when the command response returns.
|
|
237
|
+
*
|
|
238
|
+
* @internal
|
|
239
|
+
* Limited to Microsoft-internal use
|
|
240
|
+
*/
|
|
241
|
+
function terminateSession(callback: (error: SdkError | null) => void): void;
|
|
242
|
+
/**
|
|
243
|
+
* @hidden
|
|
244
|
+
* Registers a handler for change in participants with controllable-cameras.
|
|
245
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
246
|
+
*
|
|
247
|
+
* @param handler - The handler to invoke when the list of participants with controllable-cameras changes.
|
|
248
|
+
*
|
|
249
|
+
* @internal
|
|
250
|
+
* Limited to Microsoft-internal use
|
|
251
|
+
*/
|
|
252
|
+
function registerOnCapableParticipantsChangeHandler(handler: (participantChange: Participant[]) => void): void;
|
|
253
|
+
/**
|
|
254
|
+
* @hidden
|
|
255
|
+
* Registers a handler for error.
|
|
256
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
257
|
+
*
|
|
258
|
+
* @param handler - The handler to invoke when there is an error from the camera handler.
|
|
259
|
+
*
|
|
260
|
+
* @internal
|
|
261
|
+
* Limited to Microsoft-internal use
|
|
262
|
+
*/
|
|
263
|
+
function registerOnErrorHandler(handler: (error: ErrorReason) => void): void;
|
|
264
|
+
/**
|
|
265
|
+
* @hidden
|
|
266
|
+
* Registers a handler for device state change.
|
|
267
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
268
|
+
*
|
|
269
|
+
* @param handler - The handler to invoke when the controlled device changes state.
|
|
270
|
+
*
|
|
271
|
+
* @internal
|
|
272
|
+
* Limited to Microsoft-internal use
|
|
273
|
+
*/
|
|
274
|
+
function registerOnDeviceStateChangeHandler(handler: (deviceStateChange: DeviceState) => void): void;
|
|
275
|
+
/**
|
|
276
|
+
* @hidden
|
|
277
|
+
* Registers a handler for session status change.
|
|
278
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
279
|
+
*
|
|
280
|
+
* @param handler - The handler to invoke when the current session status changes.
|
|
281
|
+
*
|
|
282
|
+
* @internal
|
|
283
|
+
* Limited to Microsoft-internal use
|
|
284
|
+
*/
|
|
285
|
+
function registerOnSessionStatusChangeHandler(handler: (sessionStatusChange: SessionStatus) => void): void;
|
|
286
|
+
/**
|
|
287
|
+
* @hidden
|
|
288
|
+
*
|
|
289
|
+
* Checks if the remoteCamera capability is supported by the host
|
|
290
|
+
* @returns boolean to represent whether the remoteCamera capability is supported
|
|
291
|
+
*
|
|
292
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
293
|
+
*
|
|
294
|
+
* @internal
|
|
295
|
+
* Limited to Microsoft-internal use
|
|
296
|
+
*/
|
|
297
|
+
function isSupported(): boolean;
|
|
298
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { SdkError } from '../public/interfaces';
|
|
2
|
+
import { TeamInstanceParameters, UserJoinedTeamsInformation } from './interfaces';
|
|
3
|
+
export declare namespace teams {
|
|
4
|
+
enum ChannelType {
|
|
5
|
+
Regular = 0,
|
|
6
|
+
Private = 1,
|
|
7
|
+
Shared = 2
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Limited to Microsoft-internal use
|
|
14
|
+
*/
|
|
15
|
+
interface ChannelInfo {
|
|
16
|
+
siteUrl: string;
|
|
17
|
+
objectId: string;
|
|
18
|
+
folderRelativeUrl: string;
|
|
19
|
+
displayName: string;
|
|
20
|
+
channelType: ChannelType;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
* Get a list of channels belong to a Team
|
|
25
|
+
*
|
|
26
|
+
* @param groupId - a team's objectId
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
* Limited to Microsoft-internal use
|
|
30
|
+
*/
|
|
31
|
+
function getTeamChannels(groupId: string, callback: (error: SdkError, channels: ChannelInfo[]) => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
* Allow 1st party apps to call this function when they receive migrated errors to inform the Hub/Host to refresh the siteurl
|
|
35
|
+
* when site admin renames siteurl.
|
|
36
|
+
*
|
|
37
|
+
* @param threadId - ID of the thread where the app entity will be created; if threadId is not
|
|
38
|
+
* provided, the threadId from route params will be used.
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
* Limited to Microsoft-internal use
|
|
42
|
+
*/
|
|
43
|
+
function refreshSiteUrl(threadId: string, callback: (error: SdkError) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*
|
|
47
|
+
* Checks if teams capability is supported by the host
|
|
48
|
+
* @returns boolean to represent whether the teams capability is supported
|
|
49
|
+
*
|
|
50
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
* Limited to Microsoft-internal use
|
|
54
|
+
*/
|
|
55
|
+
function isSupported(): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
* @internal
|
|
59
|
+
* Limited to Microsoft-internal use
|
|
60
|
+
*/
|
|
61
|
+
namespace fullTrust {
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
* @internal
|
|
65
|
+
* Limited to Microsoft-internal use
|
|
66
|
+
*/
|
|
67
|
+
namespace joinedTeams {
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
* Allows an app to retrieve information of all user joined teams
|
|
71
|
+
*
|
|
72
|
+
* @param teamInstanceParameters - Optional flags that specify whether to scope call to favorite teams
|
|
73
|
+
* @returns Promise that resolves with information about the user joined teams or rejects with an error when the operation has completed
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
* Limited to Microsoft-internal use
|
|
77
|
+
*/
|
|
78
|
+
function getUserJoinedTeams(teamInstanceParameters?: TeamInstanceParameters): Promise<UserJoinedTeamsInformation>;
|
|
79
|
+
/**
|
|
80
|
+
* @hidden
|
|
81
|
+
*
|
|
82
|
+
* Checks if teams.fullTrust.joinedTeams capability is supported by the host
|
|
83
|
+
* @returns boolean to represent whether the teams.fullTrust.joinedTeams capability is supported
|
|
84
|
+
*
|
|
85
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
86
|
+
*
|
|
87
|
+
* @internal
|
|
88
|
+
* Limited to Microsoft-internal use
|
|
89
|
+
*/
|
|
90
|
+
function isSupported(): boolean;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
* Allows an app to get the configuration setting value
|
|
95
|
+
*
|
|
96
|
+
* @param key - The key for the config setting
|
|
97
|
+
* @returns Promise that resolves with the value for the provided configuration setting or rejects with an error when the operation has completed
|
|
98
|
+
*
|
|
99
|
+
* @internal
|
|
100
|
+
* Limited to Microsoft-internal use
|
|
101
|
+
*/
|
|
102
|
+
function getConfigSetting(key: string): Promise<string>;
|
|
103
|
+
/**
|
|
104
|
+
* @hidden
|
|
105
|
+
*
|
|
106
|
+
* Checks if teams.fullTrust capability is supported by the host
|
|
107
|
+
* @returns boolean to represent whether the teams.fullTrust capability is supported
|
|
108
|
+
*
|
|
109
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
110
|
+
*
|
|
111
|
+
* @internal
|
|
112
|
+
* Limited to Microsoft-internal use
|
|
113
|
+
*/
|
|
114
|
+
function isSupported(): boolean;
|
|
115
|
+
}
|
|
116
|
+
}
|