@microsoft/teams-js 2.31.0-beta.1 → 2.31.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/README.md +4 -4
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +11 -1
- package/dist/esm/packages/teams-js/dts/internal/appIdValidation.d.ts +10 -0
- 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 +70 -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/appIdValidation.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 +5755 -5161
- package/dist/umd/MicrosoftTeams.js +6258 -6439
- 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 +50 -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
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv
|
|
|
24
24
|
|
|
25
25
|
### Production
|
|
26
26
|
|
|
27
|
-
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.
|
|
27
|
+
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.31.0/js/MicrosoftTeams.min.js) or point your package manager at them.
|
|
28
28
|
|
|
29
29
|
## Usage
|
|
30
30
|
|
|
@@ -45,13 +45,13 @@ Reference the library inside of your `.html` page using:
|
|
|
45
45
|
```html
|
|
46
46
|
<!-- Microsoft Teams JavaScript API (via CDN) -->
|
|
47
47
|
<script
|
|
48
|
-
src="https://res.cdn.office.net/teams-js/2.
|
|
49
|
-
integrity="sha384-
|
|
48
|
+
src="https://res.cdn.office.net/teams-js/2.31.0/js/MicrosoftTeams.min.js"
|
|
49
|
+
integrity="sha384-A2y7iMKbK0AQrgKq1YKcLB8XgtyowB2MPzC40KFfA58nQObf6xU3C5NE0cTcis0V"
|
|
50
50
|
crossorigin="anonymous"
|
|
51
51
|
></script>
|
|
52
52
|
|
|
53
53
|
<!-- Microsoft Teams JavaScript API (via npm) -->
|
|
54
|
-
<script src="node_modules/@microsoft/teams-js@2.
|
|
54
|
+
<script src="node_modules/@microsoft/teams-js@2.31.0/dist/MicrosoftTeams.min.js"></script>
|
|
55
55
|
|
|
56
56
|
<!-- Microsoft Teams JavaScript API (via local) -->
|
|
57
57
|
<script src="MicrosoftTeams.min.js"></script>
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import * as app from '../public/app/app';
|
|
2
|
+
/**
|
|
3
|
+
* The response of the notify success callback.
|
|
4
|
+
*/
|
|
5
|
+
export interface NotifySuccessResponse {
|
|
6
|
+
/**
|
|
7
|
+
* It shows if the callback resolved successfully in the host. If the host does not support answering back to the callback, the result is unknown.
|
|
8
|
+
*/
|
|
9
|
+
hasFinishedSuccessfully: true | 'unknown';
|
|
10
|
+
}
|
|
2
11
|
export declare function appInitializeHelper(apiVersionTag: string, validMessageOrigins?: string[]): Promise<void>;
|
|
3
12
|
export declare function notifyAppLoadedHelper(apiVersionTag: string): void;
|
|
4
13
|
export declare function notifyExpectedFailureHelper(apiVersionTag: string, expectedFailureRequest: app.IExpectedFailureRequest): void;
|
|
5
14
|
export declare function notifyFailureHelper(apiVersiontag: string, appInitializationFailedRequest: app.IFailedRequest): void;
|
|
6
|
-
export declare function notifySuccessHelper(apiVersionTag: string):
|
|
15
|
+
export declare function notifySuccessHelper(apiVersionTag: string): Promise<NotifySuccessResponse>;
|
|
16
|
+
export declare function callNotifySuccessInHost(apiVersionTag: string): Promise<NotifySuccessResponse>;
|
|
7
17
|
export declare function registerOnThemeChangeHandlerHelper(apiVersionTag: string, handler: app.themeHandler): void;
|
|
8
18
|
export declare function openLinkHelper(apiVersionTag: string, deepLink: string): Promise<void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AppId } from '../public/appId';
|
|
1
2
|
/**
|
|
2
3
|
* This function can be used to validate if a string is a "valid" app id.
|
|
3
4
|
* Valid is a relative term, in this case. Truly valid app ids are UUIDs as documented in the schema:
|
|
@@ -14,3 +15,12 @@ export declare const minimumValidAppIdLength = 4;
|
|
|
14
15
|
export declare const maximumValidAppIdLength = 256;
|
|
15
16
|
export declare function isStringWithinAppIdLengthLimits(potentialAppId: string): boolean;
|
|
16
17
|
export declare function doesStringContainNonPrintableCharacters(str: string): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
* Checks if the incoming app id is an instance of AppId
|
|
21
|
+
* @param potentialAppId An object to check if it's an instance of AppId
|
|
22
|
+
* @throws Error with a message describing the violation
|
|
23
|
+
* @internal
|
|
24
|
+
* Limited to Microsoft-internal use
|
|
25
|
+
*/
|
|
26
|
+
export declare function validateAppIdInstance(potentialAppId: AppId): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FrameContexts } from '../public/constants';
|
|
2
|
-
import { LoadContext, ResumeContext } from '../public/interfaces';
|
|
2
|
+
import { HostToAppPerformanceMetrics, LoadContext, ResumeContext } from '../public/interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
* Limited to Microsoft-internal use
|
|
@@ -54,6 +54,16 @@ export declare function registerOnThemeChangeHandler(apiVersionTag: string, hand
|
|
|
54
54
|
* Limited to Microsoft-internal use
|
|
55
55
|
*/
|
|
56
56
|
export declare function handleThemeChange(theme: string): void;
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* Limited to Microsoft-internal use
|
|
60
|
+
*/
|
|
61
|
+
export declare function registerHostToAppPerformanceMetricsHandler(handler: (metrics: HostToAppPerformanceMetrics) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* Limited to Microsoft-internal use
|
|
65
|
+
*/
|
|
66
|
+
export declare function handleHostToAppPerformanceMetrics(metrics: HostToAppPerformanceMetrics): void;
|
|
57
67
|
/**
|
|
58
68
|
* @internal
|
|
59
69
|
* Limited to Microsoft-internal use
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Debugger } from 'debug';
|
|
2
|
+
import { CallbackInformation } from './interfaces';
|
|
3
|
+
import { MessageRequest, MessageResponse } from './messageObjects';
|
|
4
|
+
import { UUID as MessageUUID } from './uuidObject';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
* Limited to Microsoft-internal use
|
|
8
|
+
*/
|
|
9
|
+
export default class HostToAppMessageDelayTelemetry {
|
|
10
|
+
private static callbackInformation;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* Limited to Microsoft-internal use
|
|
14
|
+
*
|
|
15
|
+
* Store information about a particular message.
|
|
16
|
+
* @param messageUUID The message id for the request.
|
|
17
|
+
* @param callbackInformation The information of the callback.
|
|
18
|
+
*/
|
|
19
|
+
static storeCallbackInformation(messageUUID: MessageUUID, callbackInformation: CallbackInformation): void;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* Limited to Microsoft-internal use
|
|
23
|
+
*/
|
|
24
|
+
static clearMessages(): void;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* Limited to Microsoft-internal use
|
|
28
|
+
*/
|
|
29
|
+
static deleteMessageInformation(callbackId: MessageUUID): void;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* Limited to Microsoft-internal use
|
|
33
|
+
*
|
|
34
|
+
* Executes telemetry actions related to host to app performance metrics where event is raised in the host.
|
|
35
|
+
* @param message The request from the host.
|
|
36
|
+
* @param logger The logger in case an error occurs.
|
|
37
|
+
* @param endTime The ending time for calculating the elapsed time
|
|
38
|
+
*/
|
|
39
|
+
static handleOneWayPerformanceMetrics(message: MessageRequest, logger: Debugger, endTime?: number): void;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* Limited to Microsoft-internal use
|
|
43
|
+
*
|
|
44
|
+
* Executes telemetry actions related to host to app performance metrics.
|
|
45
|
+
* @param callbackId The message id for the request.
|
|
46
|
+
* @param message The response from the host.
|
|
47
|
+
* @param logger The logger in case an error occurs.
|
|
48
|
+
* @param endTime The ending time for calculating the elapsed time
|
|
49
|
+
*/
|
|
50
|
+
static handlePerformanceMetrics(callbackID: MessageUUID, message: MessageResponse, logger: Debugger, endTime?: number): void;
|
|
51
|
+
}
|
|
@@ -45,3 +45,14 @@ export interface DOMMessageEvent {
|
|
|
45
45
|
func: string;
|
|
46
46
|
args?: any[];
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
* Meant for providing information related to certain callback context.
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
* Limited to Microsoft-internal use
|
|
54
|
+
*/
|
|
55
|
+
export interface CallbackInformation {
|
|
56
|
+
name: string;
|
|
57
|
+
calledAt: number;
|
|
58
|
+
}
|
|
@@ -15,6 +15,7 @@ export interface MessageRequest {
|
|
|
15
15
|
uuid?: MessageUUID;
|
|
16
16
|
func: string;
|
|
17
17
|
timestamp?: number;
|
|
18
|
+
monotonicTimestamp?: number;
|
|
18
19
|
args?: any[];
|
|
19
20
|
apiVersionTag?: string;
|
|
20
21
|
isPartialResponse?: boolean;
|
|
@@ -28,6 +29,7 @@ export interface SerializedMessageRequest {
|
|
|
28
29
|
uuidAsString?: string;
|
|
29
30
|
func: string;
|
|
30
31
|
timestamp?: number;
|
|
32
|
+
monotonicTimestamp?: number;
|
|
31
33
|
args?: any[];
|
|
32
34
|
apiVersionTag?: string;
|
|
33
35
|
}
|
|
@@ -39,6 +41,7 @@ export interface SerializedMessageResponse {
|
|
|
39
41
|
id: MessageID;
|
|
40
42
|
uuidAsString?: string;
|
|
41
43
|
args?: any[];
|
|
44
|
+
monotonicTimestamp?: number;
|
|
42
45
|
isPartialResponse?: boolean;
|
|
43
46
|
}
|
|
44
47
|
/**
|
|
@@ -49,6 +52,7 @@ export interface MessageResponse {
|
|
|
49
52
|
id: MessageID;
|
|
50
53
|
uuid?: MessageUUID;
|
|
51
54
|
args?: any[];
|
|
55
|
+
monotonicTimestamp?: number;
|
|
52
56
|
isPartialResponse?: boolean;
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
@@ -65,6 +69,7 @@ export interface MessageResponse {
|
|
|
65
69
|
export interface MessageRequestWithRequiredProperties extends MessageRequest {
|
|
66
70
|
id: MessageID;
|
|
67
71
|
uuid: MessageUUID;
|
|
72
|
+
/** Deprecated field, is still here for backwards compatibility */
|
|
68
73
|
timestamp: number;
|
|
69
74
|
}
|
|
70
75
|
export declare const serializeMessageRequest: (message: MessageRequest) => SerializedMessageRequest;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FrameInfo, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters } from '../public/interfaces';
|
|
2
|
+
import * as pages from '../public/pages/pages';
|
|
3
|
+
import { ApiVersionNumber } from './telemetry';
|
|
4
|
+
/**
|
|
5
|
+
* v2 APIs telemetry file: All of APIs in this capability file should send out API version v2 ONLY
|
|
6
|
+
*/
|
|
7
|
+
export declare const pagesTelemetryVersionNumber: ApiVersionNumber;
|
|
8
|
+
export declare function navigateCrossDomainHelper(apiVersionTag: string, url: string): Promise<void>;
|
|
9
|
+
export declare function backStackNavigateBackHelper(apiVersionTag: string): Promise<void>;
|
|
10
|
+
export declare function tabsNavigateToTabHelper(apiVersionTag: string, tabInstance: TabInstance): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare function returnFocusHelper(apiVersionTag: string, navigateForward?: boolean): void;
|
|
15
|
+
export declare function getTabInstancesHelper(apiVersionTag: string, tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
|
|
16
|
+
export declare function getMruTabInstancesHelper(apiVersionTag: string, tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
|
|
17
|
+
export declare function shareDeepLinkHelper(apiVersionTag: string, deepLinkParameters: ShareDeepLinkParameters): void;
|
|
18
|
+
export declare function setCurrentFrameHelper(apiVersionTag: string, frameInfo: FrameInfo): void;
|
|
19
|
+
export declare function configSetValidityStateHelper(apiVersionTag: string, validityState: boolean): void;
|
|
20
|
+
export declare function getConfigHelper(apiVersionTag: string): Promise<pages.InstanceConfig>;
|
|
21
|
+
export declare function configSetConfigHelper(apiVersionTag: string, instanceConfig: pages.InstanceConfig): Promise<void>;
|
|
22
|
+
export declare function isAppNavigationParametersObject(obj: pages.AppNavigationParameters | pages.NavigateToAppParams): obj is pages.AppNavigationParameters;
|
|
23
|
+
export declare function convertNavigateToAppParamsToAppNavigationParameters(params: pages.NavigateToAppParams): pages.AppNavigationParameters;
|
|
24
|
+
export declare function convertAppNavigationParametersToNavigateToAppParams(params: pages.AppNavigationParameters): pages.NavigateToAppParams;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as profile from '../public/profile';
|
|
2
2
|
/**
|
|
3
3
|
* @hidden
|
|
4
4
|
* Validates the request parameters
|
|
@@ -9,3 +9,25 @@ import { profile } from '../public/profile';
|
|
|
9
9
|
* Limited to Microsoft-internal use
|
|
10
10
|
*/
|
|
11
11
|
export declare function validateShowProfileRequest(showProfileRequest: profile.ShowProfileRequest): [boolean, string | undefined];
|
|
12
|
+
/**
|
|
13
|
+
* Internal representation of a DOMRect suitable for sending via postMessage.
|
|
14
|
+
*/
|
|
15
|
+
type Rectangle = {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @beta
|
|
23
|
+
* @hidden
|
|
24
|
+
* An internal representation of the showProfile parameters suitable for sending via postMessage.
|
|
25
|
+
* The hub expects to receive an object of this type.
|
|
26
|
+
*/
|
|
27
|
+
export interface ShowProfileRequestInternal {
|
|
28
|
+
modality?: profile.Modality;
|
|
29
|
+
persona: profile.Persona;
|
|
30
|
+
targetRectangle: Rectangle;
|
|
31
|
+
triggerType: profile.TriggerType;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
|
2
|
+
export declare function isUint8Array(value: unknown): value is Uint8Array;
|
|
3
|
+
export declare function base64ToUint8Array(base64String: string): Uint8Array;
|
|
4
|
+
export declare function uint8ArrayToString(array: Uint8Array | ArrayBuffer, encoding?: string): string;
|
|
5
|
+
export declare function base64ToString(base64String: string): string;
|
|
6
|
+
export declare function assertUint8ArrayOrArrayBuffer(value: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdaptiveCardVersion, SdkError } from '../public/interfaces';
|
|
2
|
-
import
|
|
2
|
+
import * as pages from '../public/pages/pages';
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
* Limited to Microsoft-internal use
|
|
@@ -198,3 +198,22 @@ export declare function hasScriptTags(input: string): boolean;
|
|
|
198
198
|
* Limited to Microsoft-internal use
|
|
199
199
|
*/
|
|
200
200
|
export declare function validateUuid(id: string | undefined | null): void;
|
|
201
|
+
/**
|
|
202
|
+
* @internal
|
|
203
|
+
* Limited to Microsoft-internal use
|
|
204
|
+
* @returns current timestamp in milliseconds
|
|
205
|
+
*/
|
|
206
|
+
export declare function getCurrentTimestamp(): number | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* @hidden
|
|
209
|
+
* @internal
|
|
210
|
+
* Limited to Microsoft-internal use
|
|
211
|
+
*
|
|
212
|
+
* Function to check whether the data is a primitive type or a plain object.
|
|
213
|
+
* Recursion is limited to a maximum depth of 1000 to prevent excessive nesting and potential stack overflow.
|
|
214
|
+
*
|
|
215
|
+
* @param value The value to check
|
|
216
|
+
* @returns true if the value is a primitive type or a plain object, false otherwise
|
|
217
|
+
*
|
|
218
|
+
*/
|
|
219
|
+
export declare function isPrimitiveOrPlainObject(value: unknown, depth?: number): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as videoEffectsEx from '../private/videoEffectsEx';
|
|
2
|
+
import * as videoEffects from '../public/videoEffects';
|
|
3
3
|
import { VideoPerformanceMonitor } from './videoPerformanceMonitor';
|
|
4
4
|
/**
|
|
5
5
|
* @hidden
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* All properties common to Image and Video Props
|
|
4
|
+
*
|
|
5
|
+
* @beta
|
|
6
|
+
*/
|
|
7
|
+
export interface VisualMediaProps {
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
* 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.
|
|
11
|
+
*/
|
|
12
|
+
maxVisualMediaCount: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const maxVisualMediaSelectionLimit = 10;
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* Module to interact with the application entities specific part of the SDK.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
* Limited to Microsoft-internal use
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
1
10
|
import { SdkError } from '../public/interfaces';
|
|
2
11
|
/**
|
|
3
12
|
* @hidden
|
|
4
|
-
*
|
|
13
|
+
*
|
|
14
|
+
* Information on an app entity
|
|
5
15
|
*
|
|
6
16
|
* @internal
|
|
7
17
|
* Limited to Microsoft-internal use
|
|
8
18
|
*/
|
|
9
|
-
export
|
|
19
|
+
export interface AppEntity {
|
|
10
20
|
/**
|
|
11
21
|
* @hidden
|
|
12
|
-
*
|
|
13
|
-
* Information on an app entity
|
|
22
|
+
* ID of the application
|
|
14
23
|
*
|
|
15
24
|
* @internal
|
|
16
25
|
* Limited to Microsoft-internal use
|
|
17
26
|
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
* ID of the application
|
|
22
|
-
*
|
|
23
|
-
* @internal
|
|
24
|
-
* Limited to Microsoft-internal use
|
|
25
|
-
*/
|
|
26
|
-
appId: string;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
* URL for the application's icon
|
|
30
|
-
*
|
|
31
|
-
* @internal
|
|
32
|
-
* Limited to Microsoft-internal use
|
|
33
|
-
*/
|
|
34
|
-
appIconUrl: string;
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
* Content URL for the app entity
|
|
38
|
-
*
|
|
39
|
-
* @internal
|
|
40
|
-
* Limited to Microsoft-internal use
|
|
41
|
-
*/
|
|
42
|
-
contentUrl: string;
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
* The display name for the app entity
|
|
46
|
-
*
|
|
47
|
-
* @internal
|
|
48
|
-
* Limited to Microsoft-internal use
|
|
49
|
-
*/
|
|
50
|
-
displayName: string;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
* Website URL for the app entity. It is meant to be opened by the user in a browser.
|
|
54
|
-
*
|
|
55
|
-
* @internal
|
|
56
|
-
* Limited to Microsoft-internal use
|
|
57
|
-
*/
|
|
58
|
-
websiteUrl: string;
|
|
59
|
-
}
|
|
27
|
+
appId: string;
|
|
60
28
|
/**
|
|
61
29
|
* @hidden
|
|
62
|
-
*
|
|
63
|
-
* --------
|
|
64
|
-
* Open the Tab Gallery and retrieve the app entity
|
|
65
|
-
* @param threadId ID of the thread where the app entity will be created
|
|
66
|
-
* @param categories A list of application categories that will be displayed in the opened tab gallery
|
|
67
|
-
* @param subEntityId An object that will be made available to the application being configured
|
|
68
|
-
* through the Context's subEntityId field.
|
|
69
|
-
* @param callback Callback that will be triggered once the app entity information is available.
|
|
70
|
-
* The callback takes two arguments: an SdkError in case something happened (i.e.
|
|
71
|
-
* no permissions to execute the API) and the app entity configuration, if available
|
|
30
|
+
* URL for the application's icon
|
|
72
31
|
*
|
|
73
32
|
* @internal
|
|
74
33
|
* Limited to Microsoft-internal use
|
|
75
34
|
*/
|
|
76
|
-
|
|
35
|
+
appIconUrl: string;
|
|
77
36
|
/**
|
|
78
37
|
* @hidden
|
|
38
|
+
* Content URL for the app entity
|
|
79
39
|
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
40
|
+
* @internal
|
|
41
|
+
* Limited to Microsoft-internal use
|
|
42
|
+
*/
|
|
43
|
+
contentUrl: string;
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
* The display name for the app entity
|
|
82
47
|
*
|
|
83
|
-
* @
|
|
48
|
+
* @internal
|
|
49
|
+
* Limited to Microsoft-internal use
|
|
50
|
+
*/
|
|
51
|
+
displayName: string;
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
* Website URL for the app entity. It is meant to be opened by the user in a browser.
|
|
84
55
|
*
|
|
85
56
|
* @internal
|
|
86
57
|
* Limited to Microsoft-internal use
|
|
87
58
|
*/
|
|
88
|
-
|
|
59
|
+
websiteUrl: string;
|
|
89
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
* Hide from docs
|
|
64
|
+
* --------
|
|
65
|
+
* Open the Tab Gallery and retrieve the app entity
|
|
66
|
+
* @param threadId ID of the thread where the app entity will be created
|
|
67
|
+
* @param categories A list of application categories that will be displayed in the opened tab gallery
|
|
68
|
+
* @param subEntityId An object that will be made available to the application being configured
|
|
69
|
+
* through the Context's subEntityId field.
|
|
70
|
+
* @param callback Callback that will be triggered once the app entity information is available.
|
|
71
|
+
* The callback takes two arguments: an SdkError in case something happened (i.e.
|
|
72
|
+
* no permissions to execute the API) and the app entity configuration, if available
|
|
73
|
+
*
|
|
74
|
+
* @internal
|
|
75
|
+
* Limited to Microsoft-internal use
|
|
76
|
+
*/
|
|
77
|
+
export declare function selectAppEntity(threadId: string, categories: string[], subEntityId: string, callback: (sdkError?: SdkError, appEntity?: AppEntity) => void): void;
|
|
78
|
+
/**
|
|
79
|
+
* @hidden
|
|
80
|
+
*
|
|
81
|
+
* Checks if the appEntity capability is supported by the host
|
|
82
|
+
* @returns boolean to represent whether the appEntity capability is supported
|
|
83
|
+
*
|
|
84
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
85
|
+
*
|
|
86
|
+
* @internal
|
|
87
|
+
* Limited to Microsoft-internal use
|
|
88
|
+
*/
|
|
89
|
+
export declare function isSupported(): boolean;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* Module to interact with the conversational subEntities inside the tab
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
* Limited to Microsoft-internal use
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
1
10
|
import { ChatMembersInformation } from './interfaces';
|
|
2
11
|
export interface OpenConversationRequest {
|
|
3
12
|
/**
|
|
@@ -98,55 +107,46 @@ export interface ConversationResponse {
|
|
|
98
107
|
}
|
|
99
108
|
/**
|
|
100
109
|
* @hidden
|
|
101
|
-
*
|
|
110
|
+
* Hide from docs
|
|
111
|
+
* --------------
|
|
112
|
+
* Allows the user to start or continue a conversation with each subentity inside the tab
|
|
113
|
+
*
|
|
114
|
+
* @returns Promise resolved upon completion
|
|
102
115
|
*
|
|
103
116
|
* @internal
|
|
104
117
|
* Limited to Microsoft-internal use
|
|
105
118
|
*/
|
|
106
|
-
export declare
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
*/
|
|
141
|
-
function getChatMembers(): Promise<ChatMembersInformation>;
|
|
142
|
-
/**
|
|
143
|
-
* Checks if the conversations capability is supported by the host
|
|
144
|
-
* @returns boolean to represent whether conversations capability is supported
|
|
145
|
-
*
|
|
146
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
147
|
-
*
|
|
148
|
-
* @internal
|
|
149
|
-
* Limited to Microsoft-internal use
|
|
150
|
-
*/
|
|
151
|
-
function isSupported(): boolean;
|
|
152
|
-
}
|
|
119
|
+
export declare function openConversation(openConversationRequest: OpenConversationRequest): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* @hidden
|
|
122
|
+
*
|
|
123
|
+
* Allows the user to close the conversation in the right pane
|
|
124
|
+
*
|
|
125
|
+
* @internal
|
|
126
|
+
* Limited to Microsoft-internal use
|
|
127
|
+
*/
|
|
128
|
+
export declare function closeConversation(): void;
|
|
129
|
+
/**
|
|
130
|
+
* @hidden
|
|
131
|
+
* Hide from docs
|
|
132
|
+
* ------
|
|
133
|
+
* Allows retrieval of information for all chat members.
|
|
134
|
+
* NOTE: This value should be used only as a hint as to who the members are
|
|
135
|
+
* and never as proof of membership in case your app is being hosted by a malicious party.
|
|
136
|
+
*
|
|
137
|
+
* @returns Promise resolved with information on all chat members
|
|
138
|
+
*
|
|
139
|
+
* @internal
|
|
140
|
+
* Limited to Microsoft-internal use
|
|
141
|
+
*/
|
|
142
|
+
export declare function getChatMembers(): Promise<ChatMembersInformation>;
|
|
143
|
+
/**
|
|
144
|
+
* Checks if the conversations capability is supported by the host
|
|
145
|
+
* @returns boolean to represent whether conversations capability is supported
|
|
146
|
+
*
|
|
147
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
148
|
+
*
|
|
149
|
+
* @internal
|
|
150
|
+
* Limited to Microsoft-internal use
|
|
151
|
+
*/
|
|
152
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @beta
|
|
3
|
+
* @hidden
|
|
4
|
+
* User information required by specific apps
|
|
5
|
+
* @internal
|
|
6
|
+
* Limited to Microsoft-internal use
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
import { AppEligibilityInformation } from '../../public/interfaces';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
* @internal
|
|
13
|
+
* Limited to Microsoft-internal use
|
|
14
|
+
* @beta
|
|
15
|
+
* @returns boolean to represent whether copilot.eligibility capability is supported
|
|
16
|
+
*
|
|
17
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
18
|
+
*/
|
|
19
|
+
export declare function isSupported(): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
* @internal
|
|
23
|
+
* Limited to Microsoft-internal use
|
|
24
|
+
* @beta
|
|
25
|
+
* @returns the copilot eligibility information about the user
|
|
26
|
+
*
|
|
27
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
28
|
+
*/
|
|
29
|
+
export declare function getEligibilityInfo(): Promise<AppEligibilityInformation>;
|