@microsoft/teams-js 2.31.0-beta.1 → 2.31.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -1,298 +1,303 @@
|
|
1
|
+
/**
|
2
|
+
* @hidden
|
3
|
+
*
|
4
|
+
* @internal
|
5
|
+
* Limited to Microsoft-internal use
|
6
|
+
* @module
|
7
|
+
*/
|
1
8
|
import { SdkError } from '../public/interfaces';
|
2
|
-
|
9
|
+
/**
|
10
|
+
* @hidden
|
11
|
+
* Data structure to represent patricipant details needed to request control of camera.
|
12
|
+
*
|
13
|
+
* @internal
|
14
|
+
* Limited to Microsoft-internal use
|
15
|
+
*/
|
16
|
+
export interface Participant {
|
3
17
|
/**
|
4
18
|
* @hidden
|
5
|
-
*
|
19
|
+
* Id of participant.
|
6
20
|
*
|
7
21
|
* @internal
|
8
22
|
* Limited to Microsoft-internal use
|
9
23
|
*/
|
10
|
-
|
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
|
-
}
|
24
|
+
id: string;
|
36
25
|
/**
|
37
26
|
* @hidden
|
38
|
-
*
|
27
|
+
* Display name of participant.
|
39
28
|
*
|
40
29
|
* @internal
|
41
30
|
* Limited to Microsoft-internal use
|
42
31
|
*/
|
43
|
-
|
44
|
-
Reset = "Reset",
|
45
|
-
ZoomIn = "ZoomIn",
|
46
|
-
ZoomOut = "ZoomOut",
|
47
|
-
PanLeft = "PanLeft",
|
48
|
-
PanRight = "PanRight",
|
49
|
-
TiltUp = "TiltUp",
|
50
|
-
TiltDown = "TiltDown"
|
51
|
-
}
|
32
|
+
displayName?: string;
|
52
33
|
/**
|
53
34
|
* @hidden
|
54
|
-
*
|
35
|
+
* Active indicates whether the participant's device is actively being controlled.
|
55
36
|
*
|
56
37
|
* @internal
|
57
38
|
* Limited to Microsoft-internal use
|
58
39
|
*/
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
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
|
-
}
|
40
|
+
active?: boolean;
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* @hidden
|
44
|
+
* Enum used to indicate possible camera control commands.
|
45
|
+
*
|
46
|
+
* @internal
|
47
|
+
* Limited to Microsoft-internal use
|
48
|
+
*/
|
49
|
+
export declare enum ControlCommand {
|
50
|
+
Reset = "Reset",
|
51
|
+
ZoomIn = "ZoomIn",
|
52
|
+
ZoomOut = "ZoomOut",
|
53
|
+
PanLeft = "PanLeft",
|
54
|
+
PanRight = "PanRight",
|
55
|
+
TiltUp = "TiltUp",
|
56
|
+
TiltDown = "TiltDown"
|
57
|
+
}
|
58
|
+
/**
|
59
|
+
* @hidden
|
60
|
+
* Data structure to indicate the current state of the device.
|
61
|
+
*
|
62
|
+
* @internal
|
63
|
+
* Limited to Microsoft-internal use
|
64
|
+
*/
|
65
|
+
export interface DeviceState {
|
132
66
|
/**
|
133
67
|
* @hidden
|
134
|
-
*
|
68
|
+
* All operation are available to apply.
|
135
69
|
*
|
136
70
|
* @internal
|
137
71
|
* Limited to Microsoft-internal use
|
138
72
|
*/
|
139
|
-
|
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
|
-
}
|
73
|
+
available: boolean;
|
149
74
|
/**
|
150
75
|
* @hidden
|
151
|
-
*
|
76
|
+
* Either camera doesnt support to get state or It unable to apply command.
|
152
77
|
*
|
153
78
|
* @internal
|
154
79
|
* Limited to Microsoft-internal use
|
155
80
|
*/
|
156
|
-
|
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
|
-
}
|
81
|
+
error: boolean;
|
174
82
|
/**
|
175
83
|
* @hidden
|
176
|
-
*
|
84
|
+
* Reset max out or already applied. Client Disable Reset.
|
177
85
|
*
|
178
86
|
* @internal
|
179
87
|
* Limited to Microsoft-internal use
|
180
88
|
*/
|
181
|
-
|
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
|
-
}
|
89
|
+
reset: boolean;
|
194
90
|
/**
|
195
91
|
* @hidden
|
196
|
-
*
|
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
|
92
|
+
* ZoomIn maxed out.
|
202
93
|
*
|
203
94
|
* @internal
|
204
95
|
* Limited to Microsoft-internal use
|
205
96
|
*/
|
206
|
-
|
97
|
+
zoomIn: boolean;
|
207
98
|
/**
|
208
99
|
* @hidden
|
209
|
-
*
|
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
|
100
|
+
* ZoomOut maxed out.
|
216
101
|
*
|
217
102
|
* @internal
|
218
103
|
* Limited to Microsoft-internal use
|
219
104
|
*/
|
220
|
-
|
105
|
+
zoomOut: boolean;
|
221
106
|
/**
|
222
107
|
* @hidden
|
223
|
-
*
|
224
|
-
*
|
225
|
-
* @param ControlCommand - ControlCommand specifies the command for controling the camera.
|
226
|
-
* @param callback - Callback to invoke when the command response returns.
|
108
|
+
* PanLeft reached max left.
|
227
109
|
*
|
228
110
|
* @internal
|
229
111
|
* Limited to Microsoft-internal use
|
230
112
|
*/
|
231
|
-
|
113
|
+
panLeft: boolean;
|
232
114
|
/**
|
233
115
|
* @hidden
|
234
|
-
*
|
235
|
-
*
|
236
|
-
* @param callback - Callback to invoke when the command response returns.
|
116
|
+
* PanRight reached max right.
|
237
117
|
*
|
238
118
|
* @internal
|
239
119
|
* Limited to Microsoft-internal use
|
240
120
|
*/
|
241
|
-
|
121
|
+
panRight: boolean;
|
242
122
|
/**
|
243
123
|
* @hidden
|
244
|
-
*
|
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.
|
124
|
+
* TiltUp reached top.
|
248
125
|
*
|
249
126
|
* @internal
|
250
127
|
* Limited to Microsoft-internal use
|
251
128
|
*/
|
252
|
-
|
129
|
+
tiltUp: boolean;
|
253
130
|
/**
|
254
131
|
* @hidden
|
255
|
-
*
|
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.
|
132
|
+
* TiltDown reached bottom.
|
259
133
|
*
|
260
|
-
* @internal
|
261
|
-
* Limited to Microsoft-internal use
|
134
|
+
* @internal Limited to Microsoft-internal use
|
262
135
|
*/
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
136
|
+
tiltDown: boolean;
|
137
|
+
}
|
138
|
+
/**
|
139
|
+
* @hidden
|
140
|
+
* Enum used to indicate the reason for the error.
|
141
|
+
*
|
142
|
+
* @internal
|
143
|
+
* Limited to Microsoft-internal use
|
144
|
+
*/
|
145
|
+
export declare enum ErrorReason {
|
146
|
+
CommandResetError = 0,
|
147
|
+
CommandZoomInError = 1,
|
148
|
+
CommandZoomOutError = 2,
|
149
|
+
CommandPanLeftError = 3,
|
150
|
+
CommandPanRightError = 4,
|
151
|
+
CommandTiltUpError = 5,
|
152
|
+
CommandTiltDownError = 6,
|
153
|
+
SendDataError = 7
|
154
|
+
}
|
155
|
+
/**
|
156
|
+
* @hidden
|
157
|
+
* Data structure to indicate the status of the current session.
|
158
|
+
*
|
159
|
+
* @internal
|
160
|
+
* Limited to Microsoft-internal use
|
161
|
+
*/
|
162
|
+
export interface SessionStatus {
|
275
163
|
/**
|
276
164
|
* @hidden
|
277
|
-
*
|
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.
|
165
|
+
* Whether the far-end user is controlling a device.
|
281
166
|
*
|
282
167
|
* @internal
|
283
168
|
* Limited to Microsoft-internal use
|
284
169
|
*/
|
285
|
-
|
170
|
+
inControl: boolean;
|
286
171
|
/**
|
287
172
|
* @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
|
173
|
+
* Reason the control session was terminated.
|
293
174
|
*
|
294
175
|
* @internal
|
295
176
|
* Limited to Microsoft-internal use
|
296
177
|
*/
|
297
|
-
|
178
|
+
terminatedReason?: SessionTerminatedReason;
|
179
|
+
}
|
180
|
+
/**
|
181
|
+
* @hidden
|
182
|
+
* Enum used to indicate the reason the session was terminated.
|
183
|
+
*
|
184
|
+
* @internal
|
185
|
+
* Limited to Microsoft-internal use
|
186
|
+
*/
|
187
|
+
export declare enum SessionTerminatedReason {
|
188
|
+
None = 0,
|
189
|
+
ControlDenied = 1,
|
190
|
+
ControlNoResponse = 2,
|
191
|
+
ControlBusy = 3,
|
192
|
+
AckTimeout = 4,
|
193
|
+
ControlTerminated = 5,
|
194
|
+
ControllerTerminated = 6,
|
195
|
+
DataChannelError = 7,
|
196
|
+
ControllerCancelled = 8,
|
197
|
+
ControlDisabled = 9,
|
198
|
+
ControlTerminatedToAllowOtherController = 10
|
298
199
|
}
|
200
|
+
/**
|
201
|
+
* @hidden
|
202
|
+
* Fetch a list of the participants with controllable-cameras in a meeting.
|
203
|
+
*
|
204
|
+
* @param callback - Callback contains 2 parameters, error and participants.
|
205
|
+
* error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
|
206
|
+
* participants can either contain an array of Participant objects, incase of a successful fetch or null when it fails
|
207
|
+
* participants: object that contains an array of participants with controllable-cameras
|
208
|
+
*
|
209
|
+
* @internal
|
210
|
+
* Limited to Microsoft-internal use
|
211
|
+
*/
|
212
|
+
export declare function getCapableParticipants(callback: (error: SdkError | null, participants: Participant[] | null) => void): void;
|
213
|
+
/**
|
214
|
+
* @hidden
|
215
|
+
* Request control of a participant's camera.
|
216
|
+
*
|
217
|
+
* @param participant - Participant specifies the participant to send the request for camera control.
|
218
|
+
* @param callback - Callback contains 2 parameters, error and requestResponse.
|
219
|
+
* error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
|
220
|
+
* requestResponse can either contain the true/false value, incase of a successful request or null when it fails
|
221
|
+
* requestResponse: True means request was accepted and false means request was denied
|
222
|
+
*
|
223
|
+
* @internal
|
224
|
+
* Limited to Microsoft-internal use
|
225
|
+
*/
|
226
|
+
export declare function requestControl(participant: Participant, callback: (error: SdkError | null, requestResponse: boolean | null) => void): void;
|
227
|
+
/**
|
228
|
+
* @hidden
|
229
|
+
* Send control command to the participant's camera.
|
230
|
+
*
|
231
|
+
* @param ControlCommand - ControlCommand specifies the command for controling the camera.
|
232
|
+
* @param callback - Callback to invoke when the command response returns.
|
233
|
+
*
|
234
|
+
* @internal
|
235
|
+
* Limited to Microsoft-internal use
|
236
|
+
*/
|
237
|
+
export declare function sendControlCommand(ControlCommand: ControlCommand, callback: (error: SdkError | null) => void): void;
|
238
|
+
/**
|
239
|
+
* @hidden
|
240
|
+
* Terminate the remote session
|
241
|
+
*
|
242
|
+
* @param callback - Callback to invoke when the command response returns.
|
243
|
+
*
|
244
|
+
* @internal
|
245
|
+
* Limited to Microsoft-internal use
|
246
|
+
*/
|
247
|
+
export declare function terminateSession(callback: (error: SdkError | null) => void): void;
|
248
|
+
/**
|
249
|
+
* @hidden
|
250
|
+
* Registers a handler for change in participants with controllable-cameras.
|
251
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
252
|
+
*
|
253
|
+
* @param handler - The handler to invoke when the list of participants with controllable-cameras changes.
|
254
|
+
*
|
255
|
+
* @internal
|
256
|
+
* Limited to Microsoft-internal use
|
257
|
+
*/
|
258
|
+
export declare function registerOnCapableParticipantsChangeHandler(handler: (participantChange: Participant[]) => void): void;
|
259
|
+
/**
|
260
|
+
* @hidden
|
261
|
+
* Registers a handler for error.
|
262
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
263
|
+
*
|
264
|
+
* @param handler - The handler to invoke when there is an error from the camera handler.
|
265
|
+
*
|
266
|
+
* @internal
|
267
|
+
* Limited to Microsoft-internal use
|
268
|
+
*/
|
269
|
+
export declare function registerOnErrorHandler(handler: (error: ErrorReason) => void): void;
|
270
|
+
/**
|
271
|
+
* @hidden
|
272
|
+
* Registers a handler for device state change.
|
273
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
274
|
+
*
|
275
|
+
* @param handler - The handler to invoke when the controlled device changes state.
|
276
|
+
*
|
277
|
+
* @internal
|
278
|
+
* Limited to Microsoft-internal use
|
279
|
+
*/
|
280
|
+
export declare function registerOnDeviceStateChangeHandler(handler: (deviceStateChange: DeviceState) => void): void;
|
281
|
+
/**
|
282
|
+
* @hidden
|
283
|
+
* Registers a handler for session status change.
|
284
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
285
|
+
*
|
286
|
+
* @param handler - The handler to invoke when the current session status changes.
|
287
|
+
*
|
288
|
+
* @internal
|
289
|
+
* Limited to Microsoft-internal use
|
290
|
+
*/
|
291
|
+
export declare function registerOnSessionStatusChangeHandler(handler: (sessionStatusChange: SessionStatus) => void): void;
|
292
|
+
/**
|
293
|
+
* @hidden
|
294
|
+
*
|
295
|
+
* Checks if the remoteCamera capability is supported by the host
|
296
|
+
* @returns boolean to represent whether the remoteCamera capability is supported
|
297
|
+
*
|
298
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
299
|
+
*
|
300
|
+
* @internal
|
301
|
+
* Limited to Microsoft-internal use
|
302
|
+
*/
|
303
|
+
export declare function isSupported(): boolean;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* @module
|
3
|
+
* @hidden
|
4
|
+
* @internal
|
5
|
+
* Limited to Microsoft-internal use
|
6
|
+
*/
|
7
|
+
import * as joinedTeams from './joinedTeams';
|
8
|
+
/**
|
9
|
+
* @hidden
|
10
|
+
* Allows an app to get the configuration setting value
|
11
|
+
*
|
12
|
+
* @param key - The key for the config setting
|
13
|
+
* @returns Promise that resolves with the value for the provided configuration setting or rejects with an error when the operation has completed
|
14
|
+
*
|
15
|
+
* @internal
|
16
|
+
* Limited to Microsoft-internal use
|
17
|
+
*/
|
18
|
+
export declare function getConfigSetting(key: string): Promise<string>;
|
19
|
+
/**
|
20
|
+
* @hidden
|
21
|
+
*
|
22
|
+
* Checks if teams.fullTrust capability is supported by the host
|
23
|
+
* @returns boolean to represent whether the teams.fullTrust capability is supported
|
24
|
+
*
|
25
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
26
|
+
*
|
27
|
+
* @internal
|
28
|
+
* Limited to Microsoft-internal use
|
29
|
+
*/
|
30
|
+
export declare function isSupported(): boolean;
|
31
|
+
export { joinedTeams };
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* @module
|
3
|
+
* @hidden
|
4
|
+
* @internal
|
5
|
+
* Limited to Microsoft-internal use
|
6
|
+
*/
|
7
|
+
import { TeamInstanceParameters, UserJoinedTeamsInformation } from '../../interfaces';
|
8
|
+
/**
|
9
|
+
* @hidden
|
10
|
+
* Allows an app to retrieve information of all user joined teams
|
11
|
+
*
|
12
|
+
* @param teamInstanceParameters - Optional flags that specify whether to scope call to favorite teams
|
13
|
+
* @returns Promise that resolves with information about the user joined teams or rejects with an error when the operation has completed
|
14
|
+
*
|
15
|
+
* @internal
|
16
|
+
* Limited to Microsoft-internal use
|
17
|
+
*/
|
18
|
+
export declare function getUserJoinedTeams(teamInstanceParameters?: TeamInstanceParameters): Promise<UserJoinedTeamsInformation>;
|
19
|
+
/**
|
20
|
+
* @hidden
|
21
|
+
*
|
22
|
+
* Checks if teams.fullTrust.joinedTeams capability is supported by the host
|
23
|
+
* @returns boolean to represent whether the teams.fullTrust.joinedTeams capability is supported
|
24
|
+
*
|
25
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
26
|
+
*
|
27
|
+
* @internal
|
28
|
+
* Limited to Microsoft-internal use
|
29
|
+
*/
|
30
|
+
export declare function isSupported(): boolean;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/**
|
2
|
+
* @module
|
3
|
+
* @hidden
|
4
|
+
* Module to interact with the `teams` specific part of the SDK.
|
5
|
+
*
|
6
|
+
* @internal
|
7
|
+
* Limited to Microsoft-internal use
|
8
|
+
*/
|
9
|
+
import { SdkError } from '../../public/interfaces';
|
10
|
+
import * as fullTrust from './fullTrust/fullTrust';
|
11
|
+
export declare enum ChannelType {
|
12
|
+
Regular = 0,
|
13
|
+
Private = 1,
|
14
|
+
Shared = 2
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @hidden
|
18
|
+
*
|
19
|
+
* @internal
|
20
|
+
* Limited to Microsoft-internal use
|
21
|
+
*/
|
22
|
+
export interface ChannelInfo {
|
23
|
+
siteUrl: string;
|
24
|
+
objectId: string;
|
25
|
+
folderRelativeUrl: string;
|
26
|
+
displayName: string;
|
27
|
+
channelType: ChannelType;
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* @hidden
|
31
|
+
* Get a list of channels belong to a Team
|
32
|
+
*
|
33
|
+
* @param groupId - a team's objectId
|
34
|
+
*
|
35
|
+
* @internal
|
36
|
+
* Limited to Microsoft-internal use
|
37
|
+
*/
|
38
|
+
export declare function getTeamChannels(groupId: string, callback: (error: SdkError, channels: ChannelInfo[]) => void): void;
|
39
|
+
/**
|
40
|
+
* @hidden
|
41
|
+
* Allow 1st party apps to call this function when they receive migrated errors to inform the Hub/Host to refresh the siteurl
|
42
|
+
* when site admin renames siteurl.
|
43
|
+
*
|
44
|
+
* @param threadId - ID of the thread where the app entity will be created; if threadId is not
|
45
|
+
* provided, the threadId from route params will be used.
|
46
|
+
*
|
47
|
+
* @internal
|
48
|
+
* Limited to Microsoft-internal use
|
49
|
+
*/
|
50
|
+
export declare function refreshSiteUrl(threadId: string, callback: (error: SdkError) => void): void;
|
51
|
+
/**
|
52
|
+
* @hidden
|
53
|
+
*
|
54
|
+
* Checks if teams capability is supported by the host
|
55
|
+
* @returns boolean to represent whether the teams capability is supported
|
56
|
+
*
|
57
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
58
|
+
*
|
59
|
+
* @internal
|
60
|
+
* Limited to Microsoft-internal use
|
61
|
+
*/
|
62
|
+
export declare function isSupported(): boolean;
|
63
|
+
export { fullTrust };
|