@microsoft/teams-js 2.31.0-beta.0 → 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 +12 -2
- package/dist/esm/packages/teams-js/dts/internal/dialogHelpers.d.ts +32 -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/marketplaceUtils.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +2 -2
- 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.d.ts → app/app.d.ts} +33 -45
- package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +41 -0
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +2 -2
- 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 +30 -28
- 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 +26 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +27 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +56 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +24 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +50 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +60 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +68 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +29 -27
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +23 -1
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +135 -136
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +75 -76
- package/dist/esm/packages/teams-js/dts/public/mail.d.ts +80 -81
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +315 -316
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +423 -428
- 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 +165 -166
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +56 -50
- package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +10 -11
- package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
- package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
- package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
- package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
- package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/public/people.d.ts +61 -63
- 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 +81 -82
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +26 -27
- 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 +46 -56
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +78 -76
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +98 -99
- 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/deepLinkUtilities.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/dialogHelpers.js +1 -0
- 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/mediaUtil.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 -0
- package/dist/esm/packages/teams-js/src/public/app/lifecycle.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/chat.js +1 -1
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/adaptiveCard.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/dialog.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/update.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/parentCommunication.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/url.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/geoLocation.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/map.js +1 -0
- package/dist/esm/packages/teams-js/src/public/liveShareHost.js +1 -1
- package/dist/esm/packages/teams-js/src/public/location.js +1 -1
- package/dist/esm/packages/teams-js/src/public/mail.js +1 -1
- package/dist/esm/packages/teams-js/src/public/marketplace.js +1 -1
- package/dist/esm/packages/teams-js/src/public/media.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/menus.js +1 -1
- package/dist/esm/packages/teams-js/src/public/monetization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/navigation.js +1 -1
- package/dist/esm/packages/teams-js/src/public/nestedAppAuth.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/people.js +1 -1
- 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/search.js +1 -1
- package/dist/esm/packages/teams-js/src/public/secondaryBrowser.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/teamsAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/thirdPartyCloudStorage.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 +8195 -7407
- package/dist/umd/MicrosoftTeams.js +12298 -12356
- 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/dialog.d.ts +0 -286
- package/dist/esm/packages/teams-js/dts/public/geoLocation.d.ts +0 -100
- 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/app.js +0 -1
- package/dist/esm/packages/teams-js/src/public/dialog.js +0 -1
- package/dist/esm/packages/teams-js/src/public/geoLocation.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
@@ -3,144 +3,143 @@
|
|
3
3
|
* For more information, visit https://aka.ms/teamsliveshare
|
4
4
|
*
|
5
5
|
* @see LiveShareHost
|
6
|
+
* @module
|
6
7
|
*/
|
7
|
-
|
8
|
+
/**
|
9
|
+
* @hidden
|
10
|
+
* The meeting roles of a user.
|
11
|
+
* Used in Live Share for its role verification feature.
|
12
|
+
* For more information, visit https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-capabilities?tabs=javascript#role-verification-for-live-data-structures
|
13
|
+
*/
|
14
|
+
export declare enum UserMeetingRole {
|
8
15
|
/**
|
9
|
-
*
|
10
|
-
|
11
|
-
|
12
|
-
* For more information, visit https://learn.microsoft.com/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-capabilities?tabs=javascript#role-verification-for-live-data-structures
|
13
|
-
*/
|
14
|
-
enum UserMeetingRole {
|
15
|
-
/**
|
16
|
-
* Guest role.
|
17
|
-
*/
|
18
|
-
guest = "Guest",
|
19
|
-
/**
|
20
|
-
* Attendee role.
|
21
|
-
*/
|
22
|
-
attendee = "Attendee",
|
23
|
-
/**
|
24
|
-
* Presenter role.
|
25
|
-
*/
|
26
|
-
presenter = "Presenter",
|
27
|
-
/**
|
28
|
-
* Organizer role.
|
29
|
-
*/
|
30
|
-
organizer = "Organizer"
|
31
|
-
}
|
16
|
+
* Guest role.
|
17
|
+
*/
|
18
|
+
guest = "Guest",
|
32
19
|
/**
|
33
|
-
*
|
34
|
-
|
35
|
-
|
36
|
-
*/
|
37
|
-
enum ContainerState {
|
38
|
-
/**
|
39
|
-
* The call to `LiveShareHost.setContainerId()` successfully created the container mapping
|
40
|
-
* for the current Live Share session.
|
41
|
-
*/
|
42
|
-
added = "Added",
|
43
|
-
/**
|
44
|
-
* A container mapping for the current Live Share session already exists.
|
45
|
-
* This indicates to Live Share that a new container does not need be created.
|
46
|
-
*/
|
47
|
-
alreadyExists = "AlreadyExists",
|
48
|
-
/**
|
49
|
-
* The call to `LiveShareHost.setContainerId()` failed to create the container mapping.
|
50
|
-
* This happens when another client has already set the container ID for the session.
|
51
|
-
*/
|
52
|
-
conflict = "Conflict",
|
53
|
-
/**
|
54
|
-
* A container mapping for the current Live Share session does not yet exist.
|
55
|
-
* This indicates to Live Share that a new container should be created.
|
56
|
-
*/
|
57
|
-
notFound = "NotFound"
|
58
|
-
}
|
20
|
+
* Attendee role.
|
21
|
+
*/
|
22
|
+
attendee = "Attendee",
|
59
23
|
/**
|
60
|
-
*
|
61
|
-
|
62
|
-
|
63
|
-
*/
|
64
|
-
interface IFluidContainerInfo {
|
65
|
-
/**
|
66
|
-
* State of the containerId mapping.
|
67
|
-
*/
|
68
|
-
containerState: ContainerState;
|
69
|
-
/**
|
70
|
-
* ID of the container to join for the meeting. Undefined if the container hasn't been
|
71
|
-
* created yet.
|
72
|
-
*/
|
73
|
-
containerId: string | undefined;
|
74
|
-
/**
|
75
|
-
* If true, the local client should create the container and then save the created containers
|
76
|
-
* ID to the mapping service.
|
77
|
-
*/
|
78
|
-
shouldCreate: boolean;
|
79
|
-
/**
|
80
|
-
* If `containerId` is undefined and `shouldCreate` is false, the container isn't ready
|
81
|
-
* but another client is creating it. In this case, the local client should wait the specified
|
82
|
-
* amount of time before calling `LiveShareHost.getFluidContainerId()` again.
|
83
|
-
*/
|
84
|
-
retryAfter: number;
|
85
|
-
}
|
24
|
+
* Presenter role.
|
25
|
+
*/
|
26
|
+
presenter = "Presenter",
|
86
27
|
/**
|
87
|
-
*
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
* Server time expressed as the number of milliseconds since the ECMAScript epoch.
|
98
|
-
*/
|
99
|
-
ntpTimeInUTC: number;
|
100
|
-
}
|
28
|
+
* Organizer role.
|
29
|
+
*/
|
30
|
+
organizer = "Organizer"
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* @hidden
|
34
|
+
* State of the current Live Share session's Fluid container.
|
35
|
+
* This is used internally by the `LiveShareClient` when joining a Live Share session.
|
36
|
+
*/
|
37
|
+
export declare enum ContainerState {
|
101
38
|
/**
|
102
|
-
*
|
103
|
-
*
|
104
|
-
|
105
|
-
|
106
|
-
interface IFluidTenantInfo {
|
107
|
-
/**
|
108
|
-
* The Fluid Tenant ID Live Share should use.
|
109
|
-
*/
|
110
|
-
tenantId: string;
|
111
|
-
/**
|
112
|
-
* The Fluid service endpoint Live Share should use.
|
113
|
-
*/
|
114
|
-
serviceEndpoint: string;
|
115
|
-
}
|
39
|
+
* The call to `LiveShareHost.setContainerId()` successfully created the container mapping
|
40
|
+
* for the current Live Share session.
|
41
|
+
*/
|
42
|
+
added = "Added",
|
116
43
|
/**
|
117
|
-
*
|
118
|
-
*
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
*
|
140
|
-
|
44
|
+
* A container mapping for the current Live Share session already exists.
|
45
|
+
* This indicates to Live Share that a new container does not need be created.
|
46
|
+
*/
|
47
|
+
alreadyExists = "AlreadyExists",
|
48
|
+
/**
|
49
|
+
* The call to `LiveShareHost.setContainerId()` failed to create the container mapping.
|
50
|
+
* This happens when another client has already set the container ID for the session.
|
51
|
+
*/
|
52
|
+
conflict = "Conflict",
|
53
|
+
/**
|
54
|
+
* A container mapping for the current Live Share session does not yet exist.
|
55
|
+
* This indicates to Live Share that a new container should be created.
|
56
|
+
*/
|
57
|
+
notFound = "NotFound"
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* @hidden
|
61
|
+
* Returned from `LiveShareHost.getFluidContainerId()` and `LiveShareHost.setFluidContainerId`.
|
62
|
+
* This response specifies the container mapping information for the current Live Share session.
|
63
|
+
*/
|
64
|
+
export interface IFluidContainerInfo {
|
65
|
+
/**
|
66
|
+
* State of the containerId mapping.
|
67
|
+
*/
|
68
|
+
containerState: ContainerState;
|
69
|
+
/**
|
70
|
+
* ID of the container to join for the meeting. Undefined if the container hasn't been
|
71
|
+
* created yet.
|
72
|
+
*/
|
73
|
+
containerId: string | undefined;
|
74
|
+
/**
|
75
|
+
* If true, the local client should create the container and then save the created containers
|
76
|
+
* ID to the mapping service.
|
77
|
+
*/
|
78
|
+
shouldCreate: boolean;
|
79
|
+
/**
|
80
|
+
* If `containerId` is undefined and `shouldCreate` is false, the container isn't ready
|
81
|
+
* but another client is creating it. In this case, the local client should wait the specified
|
82
|
+
* amount of time before calling `LiveShareHost.getFluidContainerId()` again.
|
141
83
|
*/
|
142
|
-
|
84
|
+
retryAfter: number;
|
143
85
|
}
|
86
|
+
/**
|
87
|
+
* @hidden
|
88
|
+
* Returned from `LiveShareHost.getNtpTime()` to specify the global timestamp for the current
|
89
|
+
* Live Share session.
|
90
|
+
*/
|
91
|
+
export interface INtpTimeInfo {
|
92
|
+
/**
|
93
|
+
* ISO 8601 formatted server time. For example: '2019-09-07T15:50-04:00'
|
94
|
+
*/
|
95
|
+
ntpTime: string;
|
96
|
+
/**
|
97
|
+
* Server time expressed as the number of milliseconds since the ECMAScript epoch.
|
98
|
+
*/
|
99
|
+
ntpTimeInUTC: number;
|
100
|
+
}
|
101
|
+
/**
|
102
|
+
* @hidden
|
103
|
+
* Returned from `LiveShareHost.getFluidTenantInfo()` to specify the Fluid service to use for the
|
104
|
+
* current Live Share session.
|
105
|
+
*/
|
106
|
+
export interface IFluidTenantInfo {
|
107
|
+
/**
|
108
|
+
* The Fluid Tenant ID Live Share should use.
|
109
|
+
*/
|
110
|
+
tenantId: string;
|
111
|
+
/**
|
112
|
+
* The Fluid service endpoint Live Share should use.
|
113
|
+
*/
|
114
|
+
serviceEndpoint: string;
|
115
|
+
}
|
116
|
+
/**
|
117
|
+
* @hidden
|
118
|
+
* Returned from `LiveShareHost.getClientInfo()` to specify the client info for a
|
119
|
+
* particular client in a Live Share session.
|
120
|
+
*/
|
121
|
+
export interface IClientInfo {
|
122
|
+
/**
|
123
|
+
* The host user's `userId` associated with a given `clientId`
|
124
|
+
*/
|
125
|
+
userId: string;
|
126
|
+
/**
|
127
|
+
* User's meeting roles associated with a given `clientId`
|
128
|
+
*/
|
129
|
+
roles: UserMeetingRole[];
|
130
|
+
/**
|
131
|
+
* The user's display name associated with a given `clientId`.
|
132
|
+
* If this returns as `undefined`, the user may need to update their host client.
|
133
|
+
*/
|
134
|
+
displayName?: string;
|
135
|
+
}
|
136
|
+
/**
|
137
|
+
* Checks if the interactive capability is supported by the host
|
138
|
+
* @returns boolean to represent whether the interactive capability is supported
|
139
|
+
*
|
140
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
141
|
+
*/
|
142
|
+
export declare function isSupported(): boolean;
|
144
143
|
/**
|
145
144
|
* Live Share host implementation for connecting to real-time collaborative sessions.
|
146
145
|
* Designed for use with the `LiveShareClient` class in the `@microsoft/live-share` package.
|
@@ -155,7 +154,7 @@ export declare class LiveShareHost {
|
|
155
154
|
* @hidden
|
156
155
|
* Returns the Fluid Tenant connection info for user's current context.
|
157
156
|
*/
|
158
|
-
getFluidTenantInfo(): Promise<
|
157
|
+
getFluidTenantInfo(): Promise<IFluidTenantInfo>;
|
159
158
|
/**
|
160
159
|
* @hidden
|
161
160
|
* Returns the fluid access token for mapped container Id.
|
@@ -168,7 +167,7 @@ export declare class LiveShareHost {
|
|
168
167
|
* @hidden
|
169
168
|
* Returns the ID of the fluid container associated with the user's current context.
|
170
169
|
*/
|
171
|
-
getFluidContainerId(): Promise<
|
170
|
+
getFluidContainerId(): Promise<IFluidContainerInfo>;
|
172
171
|
/**
|
173
172
|
* @hidden
|
174
173
|
* Sets the ID of the fluid container associated with the current context.
|
@@ -179,12 +178,12 @@ export declare class LiveShareHost {
|
|
179
178
|
* @param containerId ID of the fluid container the client created.
|
180
179
|
* @returns A data structure with a `containerState` indicating the success or failure of the request.
|
181
180
|
*/
|
182
|
-
setFluidContainerId(containerId: string): Promise<
|
181
|
+
setFluidContainerId(containerId: string): Promise<IFluidContainerInfo>;
|
183
182
|
/**
|
184
183
|
* @hidden
|
185
184
|
* Returns the shared clock server's current time.
|
186
185
|
*/
|
187
|
-
getNtpTime(): Promise<
|
186
|
+
getNtpTime(): Promise<INtpTimeInfo>;
|
188
187
|
/**
|
189
188
|
* @hidden
|
190
189
|
* Associates the fluid client ID with a set of user roles.
|
@@ -192,7 +191,7 @@ export declare class LiveShareHost {
|
|
192
191
|
* @param clientId The ID for the current user's Fluid client. Changes on reconnects.
|
193
192
|
* @returns The roles for the current user.
|
194
193
|
*/
|
195
|
-
registerClientId(clientId: string): Promise<
|
194
|
+
registerClientId(clientId: string): Promise<UserMeetingRole[]>;
|
196
195
|
/**
|
197
196
|
* @hidden
|
198
197
|
* Returns the roles associated with a client ID.
|
@@ -200,7 +199,7 @@ export declare class LiveShareHost {
|
|
200
199
|
* @param clientId The Client ID the message was received from.
|
201
200
|
* @returns The roles for a given client. Returns `undefined` if the client ID hasn't been registered yet.
|
202
201
|
*/
|
203
|
-
getClientRoles(clientId: string): Promise<
|
202
|
+
getClientRoles(clientId: string): Promise<UserMeetingRole[] | undefined>;
|
204
203
|
/**
|
205
204
|
* @hidden
|
206
205
|
* Returns the `IClientInfo` associated with a client ID.
|
@@ -208,7 +207,7 @@ export declare class LiveShareHost {
|
|
208
207
|
* @param clientId The Client ID the message was received from.
|
209
208
|
* @returns The info for a given client. Returns `undefined` if the client ID hasn't been registered yet.
|
210
209
|
*/
|
211
|
-
getClientInfo(clientId: string): Promise<
|
210
|
+
getClientInfo(clientId: string): Promise<IClientInfo | undefined>;
|
212
211
|
/**
|
213
212
|
* Factories a new `LiveShareHost` instance for use with the `LiveShareClient` class
|
214
213
|
* in the `@microsoft/live-share` package.
|
@@ -1,86 +1,85 @@
|
|
1
|
-
import { SdkError } from './interfaces';
|
2
1
|
/**
|
3
2
|
* @deprecated
|
4
|
-
* As of 2.1.0, please use geoLocation
|
3
|
+
* As of 2.1.0, please use geoLocation module.
|
5
4
|
*
|
6
|
-
*
|
5
|
+
* Module to interact with the location module-specific part of the SDK.
|
6
|
+
* @module
|
7
7
|
*/
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
import { SdkError } from './interfaces';
|
9
|
+
/** Get location callback function type */
|
10
|
+
export type getLocationCallbackFunctionType = (error: SdkError, location: Location) => void;
|
11
|
+
/** Show location callback function type */
|
12
|
+
export type showLocationCallbackFunctionType = (error: SdkError, status: boolean) => void;
|
13
|
+
/**
|
14
|
+
* @deprecated
|
15
|
+
* Data Structure to set the location properties in getLocation call.
|
16
|
+
*/
|
17
|
+
export interface LocationProps {
|
13
18
|
/**
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
whether user can alter location or not
|
20
|
-
if false, user will be shown current location
|
21
|
-
and wouldn't be allowed to alter it
|
22
|
-
*/
|
23
|
-
allowChooseLocation: boolean;
|
24
|
-
/**
|
25
|
-
whether selected location should be shown to user on map or not.
|
26
|
-
If allowChooseLocation is true, this parameter will be ignored by platform.
|
27
|
-
If allowChooseLocation is false, and this parameter is not provided, default
|
28
|
-
value will be false.
|
29
|
-
*/
|
30
|
-
showMap?: boolean;
|
31
|
-
}
|
19
|
+
whether user can alter location or not
|
20
|
+
if false, user will be shown current location
|
21
|
+
and wouldn't be allowed to alter it
|
22
|
+
*/
|
23
|
+
allowChooseLocation: boolean;
|
32
24
|
/**
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
/**
|
50
|
-
Time stamp when the location was captured
|
51
|
-
*/
|
52
|
-
timestamp?: number;
|
53
|
-
}
|
25
|
+
whether selected location should be shown to user on map or not.
|
26
|
+
If allowChooseLocation is true, this parameter will be ignored by platform.
|
27
|
+
If allowChooseLocation is false, and this parameter is not provided, default
|
28
|
+
value will be false.
|
29
|
+
*/
|
30
|
+
showMap?: boolean;
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* @deprecated
|
34
|
+
* Data struture to represent the location information
|
35
|
+
*/
|
36
|
+
export interface Location {
|
37
|
+
/**
|
38
|
+
Latitude of the location
|
39
|
+
*/
|
40
|
+
latitude: number;
|
54
41
|
/**
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
* - {@link geoLocation.map.chooseLocation geoLocation.map.chooseLocation(): Promise\<Location\>} to choose location on map.
|
59
|
-
*
|
60
|
-
* Fetches user location
|
61
|
-
* @param props {@link LocationProps} - Specifying how the location request is handled
|
62
|
-
* @param callback - Callback to invoke when current user location is fetched
|
63
|
-
*/
|
64
|
-
function getLocation(props: LocationProps, callback: getLocationCallbackFunctionType): void;
|
42
|
+
Longitude of the location
|
43
|
+
*/
|
44
|
+
longitude: number;
|
65
45
|
/**
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
* Shows the location on map corresponding to the given coordinates
|
70
|
-
*
|
71
|
-
* @param location - Location to be shown on the map
|
72
|
-
* @param callback - Callback to invoke when the location is opened on map
|
73
|
-
*/
|
74
|
-
function showLocation(location: Location, callback: showLocationCallbackFunctionType): void;
|
46
|
+
Accuracy of the coordinates captured
|
47
|
+
*/
|
48
|
+
accuracy?: number;
|
75
49
|
/**
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
* Checks if Location capability is supported by the host
|
80
|
-
*
|
81
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
82
|
-
*
|
83
|
-
* @returns boolean to represent whether Location is supported
|
84
|
-
*/
|
85
|
-
function isSupported(): boolean;
|
50
|
+
Time stamp when the location was captured
|
51
|
+
*/
|
52
|
+
timestamp?: number;
|
86
53
|
}
|
54
|
+
/**
|
55
|
+
* @deprecated
|
56
|
+
* As of 2.1.0, please use one of the following functions:
|
57
|
+
* - {@link geoLocation.getCurrentLocation geoLocation.getCurrentLocation(): Promise\<Location\>} to get the current location.
|
58
|
+
* - {@link geoLocation.map.chooseLocation geoLocation.map.chooseLocation(): Promise\<Location\>} to choose location on map.
|
59
|
+
*
|
60
|
+
* Fetches user location
|
61
|
+
* @param props {@link LocationProps} - Specifying how the location request is handled
|
62
|
+
* @param callback - Callback to invoke when current user location is fetched
|
63
|
+
*/
|
64
|
+
export declare function getLocation(props: LocationProps, callback: getLocationCallbackFunctionType): void;
|
65
|
+
/**
|
66
|
+
* @deprecated
|
67
|
+
* As of 2.1.0, please use {@link geoLocation.map.showLocation geoLocation.map.showLocation(location: Location): Promise\<void\>} instead.
|
68
|
+
*
|
69
|
+
* Shows the location on map corresponding to the given coordinates
|
70
|
+
*
|
71
|
+
* @param location - Location to be shown on the map
|
72
|
+
* @param callback - Callback to invoke when the location is opened on map
|
73
|
+
*/
|
74
|
+
export declare function showLocation(location: Location, callback: showLocationCallbackFunctionType): void;
|
75
|
+
/**
|
76
|
+
* @deprecated
|
77
|
+
* As of 2.1.0, please use geoLocation module, and use {@link geoLocation.isSupported geoLocation.isSupported: boolean} to check if geoLocation is supported.
|
78
|
+
*
|
79
|
+
* Checks if Location capability is supported by the host
|
80
|
+
*
|
81
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
82
|
+
*
|
83
|
+
* @returns boolean to represent whether Location is supported
|
84
|
+
*/
|
85
|
+
export declare function isSupported(): boolean;
|
@@ -1,95 +1,94 @@
|
|
1
1
|
/**
|
2
2
|
* Used to interact with mail capability, including opening and composing mail.
|
3
|
+
* @module
|
3
4
|
*/
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
5
|
+
/**
|
6
|
+
* Opens a mail message in the host.
|
7
|
+
*
|
8
|
+
* @param openMailItemParams - Object that specifies the ID of the mail message.
|
9
|
+
*/
|
10
|
+
export declare function openMailItem(openMailItemParams: OpenMailItemParams): Promise<void>;
|
11
|
+
/**
|
12
|
+
* Compose a new email in the user's mailbox.
|
13
|
+
*
|
14
|
+
* @param composeMailParams - Object that specifies the type of mail item to compose and the details of the mail item.
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
export declare function composeMail(composeMailParams: ComposeMailParams): Promise<void>;
|
18
|
+
/**
|
19
|
+
* Checks if the mail capability is supported by the host
|
20
|
+
* @returns boolean to represent whether the mail capability is supported
|
21
|
+
*
|
22
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
23
|
+
*/
|
24
|
+
export declare function isSupported(): boolean;
|
25
|
+
/** Defines the parameters used to open a mail item in the user's mailbox */
|
26
|
+
export interface OpenMailItemParams {
|
27
|
+
/** An unique base64-encoded string id that represents the itemId or messageId. */
|
28
|
+
itemId: string;
|
29
|
+
}
|
30
|
+
/** Defines compose mail types. */
|
31
|
+
export declare enum ComposeMailType {
|
32
|
+
/** Compose a new mail message. */
|
33
|
+
New = "new",
|
34
|
+
/** Compose a reply to the sender of an existing mail message. */
|
35
|
+
Reply = "reply",
|
36
|
+
/** Compose a reply to all recipients of an existing mail message. */
|
37
|
+
ReplyAll = "replyAll",
|
38
|
+
/** Compose a new mail message with the content of an existing mail message forwarded to a new recipient. */
|
39
|
+
Forward = "forward"
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* Foundational interface for all other mail compose interfaces
|
43
|
+
* Used for holding the type of mail item being composed
|
44
|
+
*
|
45
|
+
* @typeParam T - the identity type.
|
46
|
+
* @see {@link mail.ComposeMailType}
|
47
|
+
*/
|
48
|
+
interface ComposeMailBase<T extends ComposeMailType> {
|
49
|
+
/** Type of the mail item being composed. */
|
50
|
+
type: T;
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* Parameters supplied when composing a new mail item
|
54
|
+
*/
|
55
|
+
export interface ComposeNewParams extends ComposeMailBase<ComposeMailType.New> {
|
18
56
|
/**
|
19
|
-
*
|
20
|
-
* @returns boolean to represent whether the mail capability is supported
|
21
|
-
*
|
22
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
57
|
+
* The To: recipients for the message
|
23
58
|
*/
|
24
|
-
|
25
|
-
/** Defines the parameters used to open a mail item in the user's mailbox */
|
26
|
-
export interface OpenMailItemParams {
|
27
|
-
/** An unique base64-encoded string id that represents the itemId or messageId. */
|
28
|
-
itemId: string;
|
29
|
-
}
|
30
|
-
/** Defines compose mail types. */
|
31
|
-
export enum ComposeMailType {
|
32
|
-
/** Compose a new mail message. */
|
33
|
-
New = "new",
|
34
|
-
/** Compose a reply to the sender of an existing mail message. */
|
35
|
-
Reply = "reply",
|
36
|
-
/** Compose a reply to all recipients of an existing mail message. */
|
37
|
-
ReplyAll = "replyAll",
|
38
|
-
/** Compose a new mail message with the content of an existing mail message forwarded to a new recipient. */
|
39
|
-
Forward = "forward"
|
40
|
-
}
|
59
|
+
toRecipients?: string[];
|
41
60
|
/**
|
42
|
-
*
|
43
|
-
* Used for holding the type of mail item being composed
|
44
|
-
*
|
45
|
-
* @typeParam T - the identity type.
|
46
|
-
* @see {@link mail.ComposeMailType}
|
61
|
+
* The Cc: recipients for the message
|
47
62
|
*/
|
48
|
-
|
49
|
-
/** Type of the mail item being composed. */
|
50
|
-
type: T;
|
51
|
-
}
|
63
|
+
ccRecipients?: string[];
|
52
64
|
/**
|
53
|
-
*
|
65
|
+
* The Bcc: recipients for the message
|
54
66
|
*/
|
55
|
-
|
56
|
-
/**
|
57
|
-
* The To: recipients for the message
|
58
|
-
*/
|
59
|
-
toRecipients?: string[];
|
60
|
-
/**
|
61
|
-
* The Cc: recipients for the message
|
62
|
-
*/
|
63
|
-
ccRecipients?: string[];
|
64
|
-
/**
|
65
|
-
* The Bcc: recipients for the message
|
66
|
-
*/
|
67
|
-
bccRecipients?: string[];
|
68
|
-
/**
|
69
|
-
* The subject of the message
|
70
|
-
*/
|
71
|
-
subject?: string;
|
72
|
-
/**
|
73
|
-
* The body of the message
|
74
|
-
*/
|
75
|
-
message?: string;
|
76
|
-
}
|
67
|
+
bccRecipients?: string[];
|
77
68
|
/**
|
78
|
-
*
|
79
|
-
*
|
80
|
-
* @see {@link ComposeMailType}
|
69
|
+
* The subject of the message
|
81
70
|
*/
|
82
|
-
|
83
|
-
/** An unique base64-encoded string id that represents the mail message. */
|
84
|
-
itemid: string;
|
85
|
-
}
|
71
|
+
subject?: string;
|
86
72
|
/**
|
87
|
-
*
|
88
|
-
*
|
89
|
-
* @see {@link ComposeNewParams}
|
90
|
-
* @see {@link ComposeReplyOrForwardParams}
|
91
|
-
* @see {@link ComposeMailType}
|
73
|
+
* The body of the message
|
92
74
|
*/
|
93
|
-
|
94
|
-
export {};
|
75
|
+
message?: string;
|
95
76
|
}
|
77
|
+
/**
|
78
|
+
* Parameters supplied when composing a reply to or forward of a message
|
79
|
+
*
|
80
|
+
* @see {@link ComposeMailType}
|
81
|
+
*/
|
82
|
+
export interface ComposeReplyOrForwardParams<T extends ComposeMailType> extends ComposeMailBase<T> {
|
83
|
+
/** An unique base64-encoded string id that represents the mail message. */
|
84
|
+
itemid: string;
|
85
|
+
}
|
86
|
+
/**
|
87
|
+
* Parameters supplied to {@link composeMail} when composing a new mail item
|
88
|
+
*
|
89
|
+
* @see {@link ComposeNewParams}
|
90
|
+
* @see {@link ComposeReplyOrForwardParams}
|
91
|
+
* @see {@link ComposeMailType}
|
92
|
+
*/
|
93
|
+
export type ComposeMailParams = ComposeNewParams | ComposeReplyOrForwardParams<ComposeMailType.Reply> | ComposeReplyOrForwardParams<ComposeMailType.ReplyAll> | ComposeReplyOrForwardParams<ComposeMailType.Forward>;
|
94
|
+
export {};
|