@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.
Files changed (183) hide show
  1. package/README.md +4 -4
  2. package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +11 -1
  3. package/dist/esm/packages/teams-js/dts/internal/appIdValidation.d.ts +10 -0
  4. package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +11 -1
  5. package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
  6. package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +11 -0
  7. package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +5 -0
  8. package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +24 -0
  9. package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +23 -1
  10. package/dist/esm/packages/teams-js/dts/internal/uint8array-extras/uint8array-extras.d.ts +6 -0
  11. package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +20 -1
  12. package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +2 -2
  13. package/dist/esm/packages/teams-js/dts/internal/visualMediaHelpers.d.ts +14 -0
  14. package/dist/esm/packages/teams-js/dts/internal/webStorageHelpers.d.ts +4 -0
  15. package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +61 -61
  16. package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +48 -48
  17. package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +2 -0
  18. package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +29 -0
  19. package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +355 -349
  20. package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +70 -68
  21. package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +104 -105
  22. package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +41 -42
  23. package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +113 -114
  24. package/dist/esm/packages/teams-js/dts/private/files.d.ts +590 -582
  25. package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +42 -0
  26. package/dist/esm/packages/teams-js/dts/private/hostEntity/tab.d.ts +134 -0
  27. package/dist/esm/packages/teams-js/dts/private/index.d.ts +19 -18
  28. package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -25
  29. package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +147 -142
  30. package/dist/esm/packages/teams-js/dts/private/messageChannels/dataLayer.d.ts +39 -0
  31. package/dist/esm/packages/teams-js/dts/private/messageChannels/messageChannels.d.ts +28 -0
  32. package/dist/esm/packages/teams-js/dts/private/messageChannels/telemetry.d.ts +39 -0
  33. package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +31 -25
  34. package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +69 -70
  35. package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +219 -214
  36. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/fullTrust.d.ts +31 -0
  37. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/joinedTeams.d.ts +30 -0
  38. package/dist/esm/packages/teams-js/dts/private/teams/teams.d.ts +63 -0
  39. package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +192 -186
  40. package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +21 -2
  41. package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +3 -2
  42. package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +1 -1
  43. package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +6 -0
  44. package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +2 -1
  45. package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +1 -0
  46. package/dist/esm/packages/teams-js/dts/public/call.d.ts +1 -0
  47. package/dist/esm/packages/teams-js/dts/public/chat.d.ts +4 -0
  48. package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +1 -0
  49. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +0 -4
  50. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +3 -2
  51. package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +0 -13
  52. package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +2 -1
  53. package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +3 -2
  54. package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +2 -1
  55. package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +3 -2
  56. package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +6 -0
  57. package/dist/esm/packages/teams-js/dts/public/index.d.ts +9 -9
  58. package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +11 -0
  59. package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +1 -0
  60. package/dist/esm/packages/teams-js/dts/public/location.d.ts +4 -3
  61. package/dist/esm/packages/teams-js/dts/public/mail.d.ts +1 -0
  62. package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +1 -0
  63. package/dist/esm/packages/teams-js/dts/public/media.d.ts +0 -3
  64. package/dist/esm/packages/teams-js/dts/public/meeting/appShareButton.d.ts +51 -0
  65. package/dist/esm/packages/teams-js/dts/public/meeting/meeting.d.ts +854 -0
  66. package/dist/esm/packages/teams-js/dts/public/menus.d.ts +1 -0
  67. package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +8 -0
  68. package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +2 -1
  69. package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +1 -0
  70. package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
  71. package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
  72. package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
  73. package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
  74. package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
  75. package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
  76. package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
  77. package/dist/esm/packages/teams-js/dts/public/profile.d.ts +81 -103
  78. package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +3 -0
  79. package/dist/esm/packages/teams-js/dts/public/search.d.ts +9 -0
  80. package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +1 -0
  81. package/dist/esm/packages/teams-js/dts/public/settings.d.ts +4 -3
  82. package/dist/esm/packages/teams-js/dts/public/sharing/history.d.ts +47 -0
  83. package/dist/esm/packages/teams-js/dts/public/sharing/sharing.d.ts +76 -0
  84. package/dist/esm/packages/teams-js/dts/public/stageView/self.d.ts +23 -0
  85. package/dist/esm/packages/teams-js/dts/public/stageView/stageView.d.ts +81 -0
  86. package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +0 -8
  87. package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +4 -0
  88. package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +2 -1
  89. package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +209 -210
  90. package/dist/esm/packages/teams-js/dts/public/visualMedia/image.d.ts +64 -0
  91. package/dist/esm/packages/teams-js/dts/public/visualMedia/visualMedia.d.ts +116 -0
  92. package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +20 -22
  93. package/dist/esm/packages/teams-js/src/index.js +1 -1
  94. package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -1
  95. package/dist/esm/packages/teams-js/src/internal/appIdValidation.js +1 -1
  96. package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
  97. package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -1
  98. package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
  99. package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -1
  100. package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -1
  101. package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
  102. package/dist/esm/packages/teams-js/src/internal/uint8array-extras/uint8array-extras.js +1 -0
  103. package/dist/esm/packages/teams-js/src/internal/utils.js +1 -1
  104. package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -1
  105. package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -1
  106. package/dist/esm/packages/teams-js/src/internal/visualMediaHelpers.js +1 -0
  107. package/dist/esm/packages/teams-js/src/internal/webStorageHelpers.js +1 -0
  108. package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -1
  109. package/dist/esm/packages/teams-js/src/private/conversations.js +1 -1
  110. package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
  111. package/dist/esm/packages/teams-js/src/private/copilot/eligibility.js +1 -0
  112. package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -1
  113. package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
  114. package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -1
  115. package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -1
  116. package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -1
  117. package/dist/esm/packages/teams-js/src/private/files.js +1 -1
  118. package/dist/esm/packages/teams-js/src/private/hostEntity/hostEntity.js +1 -0
  119. package/dist/esm/packages/teams-js/src/private/hostEntity/tab.js +1 -0
  120. package/dist/esm/packages/teams-js/src/private/logs.js +1 -1
  121. package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -1
  122. package/dist/esm/packages/teams-js/src/private/messageChannels/dataLayer.js +1 -0
  123. package/dist/esm/packages/teams-js/src/private/messageChannels/messageChannels.js +1 -0
  124. package/dist/esm/packages/teams-js/src/private/messageChannels/telemetry.js +1 -0
  125. package/dist/esm/packages/teams-js/src/private/notifications.js +1 -1
  126. package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -1
  127. package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -1
  128. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/fullTrust.js +1 -0
  129. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/joinedTeams.js +1 -0
  130. package/dist/esm/packages/teams-js/src/private/teams/teams.js +1 -0
  131. package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -1
  132. package/dist/esm/packages/teams-js/src/public/app/app.js +1 -1
  133. package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
  134. package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
  135. package/dist/esm/packages/teams-js/src/public/meeting/appShareButton.js +1 -0
  136. package/dist/esm/packages/teams-js/src/public/meeting/meeting.js +1 -0
  137. package/dist/esm/packages/teams-js/src/public/navigation.js +1 -1
  138. package/dist/esm/packages/teams-js/src/public/pages/appButton.js +1 -0
  139. package/dist/esm/packages/teams-js/src/public/pages/backStack.js +1 -0
  140. package/dist/esm/packages/teams-js/src/public/pages/config.js +1 -0
  141. package/dist/esm/packages/teams-js/src/public/pages/currentApp.js +1 -0
  142. package/dist/esm/packages/teams-js/src/public/pages/fullTrust.js +1 -0
  143. package/dist/esm/packages/teams-js/src/public/pages/pages.js +1 -0
  144. package/dist/esm/packages/teams-js/src/public/pages/tabs.js +1 -0
  145. package/dist/esm/packages/teams-js/src/public/profile.js +1 -1
  146. package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
  147. package/dist/esm/packages/teams-js/src/public/runtime.js +1 -1
  148. package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
  149. package/dist/esm/packages/teams-js/src/public/sharing/history.js +1 -0
  150. package/dist/esm/packages/teams-js/src/public/sharing/sharing.js +1 -0
  151. package/dist/esm/packages/teams-js/src/public/stageView/self.js +1 -0
  152. package/dist/esm/packages/teams-js/src/public/stageView/stageView.js +1 -0
  153. package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
  154. package/dist/esm/packages/teams-js/src/public/version.js +1 -1
  155. package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -1
  156. package/dist/esm/packages/teams-js/src/public/visualMedia/image.js +1 -0
  157. package/dist/esm/packages/teams-js/src/public/visualMedia/visualMedia.js +1 -0
  158. package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
  159. package/dist/umd/MicrosoftTeams.d.ts +5755 -5161
  160. package/dist/umd/MicrosoftTeams.js +6258 -6439
  161. package/dist/umd/MicrosoftTeams.js.map +1 -1
  162. package/dist/umd/MicrosoftTeams.min.js +1 -1
  163. package/dist/umd/MicrosoftTeams.min.js.map +1 -1
  164. package/package.json +50 -1
  165. package/dist/esm/packages/teams-js/dts/private/copilot.d.ts +0 -39
  166. package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +0 -176
  167. package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +0 -107
  168. package/dist/esm/packages/teams-js/dts/private/teams.d.ts +0 -116
  169. package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +0 -906
  170. package/dist/esm/packages/teams-js/dts/public/pages.d.ts +0 -574
  171. package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +0 -124
  172. package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +0 -104
  173. package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +0 -192
  174. package/dist/esm/packages/teams-js/src/private/copilot.js +0 -1
  175. package/dist/esm/packages/teams-js/src/private/hostEntity.js +0 -1
  176. package/dist/esm/packages/teams-js/src/private/messageChannels.js +0 -1
  177. package/dist/esm/packages/teams-js/src/private/teams.js +0 -1
  178. package/dist/esm/packages/teams-js/src/public/meeting.js +0 -1
  179. package/dist/esm/packages/teams-js/src/public/pages.js +0 -1
  180. package/dist/esm/packages/teams-js/src/public/sharing.js +0 -1
  181. package/dist/esm/packages/teams-js/src/public/stageView.js +0 -1
  182. package/dist/esm/packages/teams-js/src/public/visualMedia.js +0 -1
  183. /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
- export declare namespace remoteCamera {
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
- * Data structure to represent patricipant details needed to request control of camera.
19
+ * Id of participant.
6
20
  *
7
21
  * @internal
8
22
  * Limited to Microsoft-internal use
9
23
  */
10
- interface Participant {
11
- /**
12
- * @hidden
13
- * Id of participant.
14
- *
15
- * @internal
16
- * Limited to Microsoft-internal use
17
- */
18
- id: string;
19
- /**
20
- * @hidden
21
- * Display name of participant.
22
- *
23
- * @internal
24
- * Limited to Microsoft-internal use
25
- */
26
- displayName?: string;
27
- /**
28
- * @hidden
29
- * Active indicates whether the participant's device is actively being controlled.
30
- *
31
- * @internal
32
- * Limited to Microsoft-internal use
33
- */
34
- active?: boolean;
35
- }
24
+ id: string;
36
25
  /**
37
26
  * @hidden
38
- * Enum used to indicate possible camera control commands.
27
+ * Display name of participant.
39
28
  *
40
29
  * @internal
41
30
  * Limited to Microsoft-internal use
42
31
  */
43
- enum ControlCommand {
44
- Reset = "Reset",
45
- ZoomIn = "ZoomIn",
46
- ZoomOut = "ZoomOut",
47
- PanLeft = "PanLeft",
48
- PanRight = "PanRight",
49
- TiltUp = "TiltUp",
50
- TiltDown = "TiltDown"
51
- }
32
+ displayName?: string;
52
33
  /**
53
34
  * @hidden
54
- * Data structure to indicate the current state of the device.
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
- interface DeviceState {
60
- /**
61
- * @hidden
62
- * All operation are available to apply.
63
- *
64
- * @internal
65
- * Limited to Microsoft-internal use
66
- */
67
- available: boolean;
68
- /**
69
- * @hidden
70
- * Either camera doesnt support to get state or It unable to apply command.
71
- *
72
- * @internal
73
- * Limited to Microsoft-internal use
74
- */
75
- error: boolean;
76
- /**
77
- * @hidden
78
- * Reset max out or already applied. Client Disable Reset.
79
- *
80
- * @internal
81
- * Limited to Microsoft-internal use
82
- */
83
- reset: boolean;
84
- /**
85
- * @hidden
86
- * ZoomIn maxed out.
87
- *
88
- * @internal
89
- * Limited to Microsoft-internal use
90
- */
91
- zoomIn: boolean;
92
- /**
93
- * @hidden
94
- * ZoomOut maxed out.
95
- *
96
- * @internal
97
- * Limited to Microsoft-internal use
98
- */
99
- zoomOut: boolean;
100
- /**
101
- * @hidden
102
- * PanLeft reached max left.
103
- *
104
- * @internal
105
- * Limited to Microsoft-internal use
106
- */
107
- panLeft: boolean;
108
- /**
109
- * @hidden
110
- * PanRight reached max right.
111
- *
112
- * @internal
113
- * Limited to Microsoft-internal use
114
- */
115
- panRight: boolean;
116
- /**
117
- * @hidden
118
- * TiltUp reached top.
119
- *
120
- * @internal
121
- * Limited to Microsoft-internal use
122
- */
123
- tiltUp: boolean;
124
- /**
125
- * @hidden
126
- * TiltDown reached bottom.
127
- *
128
- * @internal Limited to Microsoft-internal use
129
- */
130
- tiltDown: boolean;
131
- }
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
- * Enum used to indicate the reason for the error.
68
+ * All operation are available to apply.
135
69
  *
136
70
  * @internal
137
71
  * Limited to Microsoft-internal use
138
72
  */
139
- enum ErrorReason {
140
- CommandResetError = 0,
141
- CommandZoomInError = 1,
142
- CommandZoomOutError = 2,
143
- CommandPanLeftError = 3,
144
- CommandPanRightError = 4,
145
- CommandTiltUpError = 5,
146
- CommandTiltDownError = 6,
147
- SendDataError = 7
148
- }
73
+ available: boolean;
149
74
  /**
150
75
  * @hidden
151
- * Data structure to indicate the status of the current session.
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
- interface SessionStatus {
157
- /**
158
- * @hidden
159
- * Whether the far-end user is controlling a device.
160
- *
161
- * @internal
162
- * Limited to Microsoft-internal use
163
- */
164
- inControl: boolean;
165
- /**
166
- * @hidden
167
- * Reason the control session was terminated.
168
- *
169
- * @internal
170
- * Limited to Microsoft-internal use
171
- */
172
- terminatedReason?: SessionTerminatedReason;
173
- }
81
+ error: boolean;
174
82
  /**
175
83
  * @hidden
176
- * Enum used to indicate the reason the session was terminated.
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
- enum SessionTerminatedReason {
182
- None = 0,
183
- ControlDenied = 1,
184
- ControlNoResponse = 2,
185
- ControlBusy = 3,
186
- AckTimeout = 4,
187
- ControlTerminated = 5,
188
- ControllerTerminated = 6,
189
- DataChannelError = 7,
190
- ControllerCancelled = 8,
191
- ControlDisabled = 9,
192
- ControlTerminatedToAllowOtherController = 10
193
- }
89
+ reset: boolean;
194
90
  /**
195
91
  * @hidden
196
- * Fetch a list of the participants with controllable-cameras in a meeting.
197
- *
198
- * @param callback - Callback contains 2 parameters, error and participants.
199
- * error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
200
- * participants can either contain an array of Participant objects, incase of a successful fetch or null when it fails
201
- * participants: object that contains an array of participants with controllable-cameras
92
+ * ZoomIn maxed out.
202
93
  *
203
94
  * @internal
204
95
  * Limited to Microsoft-internal use
205
96
  */
206
- function getCapableParticipants(callback: (error: SdkError | null, participants: Participant[] | null) => void): void;
97
+ zoomIn: boolean;
207
98
  /**
208
99
  * @hidden
209
- * Request control of a participant's camera.
210
- *
211
- * @param participant - Participant specifies the participant to send the request for camera control.
212
- * @param callback - Callback contains 2 parameters, error and requestResponse.
213
- * error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
214
- * requestResponse can either contain the true/false value, incase of a successful request or null when it fails
215
- * requestResponse: True means request was accepted and false means request was denied
100
+ * ZoomOut maxed out.
216
101
  *
217
102
  * @internal
218
103
  * Limited to Microsoft-internal use
219
104
  */
220
- function requestControl(participant: Participant, callback: (error: SdkError | null, requestResponse: boolean | null) => void): void;
105
+ zoomOut: boolean;
221
106
  /**
222
107
  * @hidden
223
- * Send control command to the participant's camera.
224
- *
225
- * @param ControlCommand - ControlCommand specifies the command for controling the camera.
226
- * @param callback - Callback to invoke when the command response returns.
108
+ * PanLeft reached max left.
227
109
  *
228
110
  * @internal
229
111
  * Limited to Microsoft-internal use
230
112
  */
231
- function sendControlCommand(ControlCommand: ControlCommand, callback: (error: SdkError | null) => void): void;
113
+ panLeft: boolean;
232
114
  /**
233
115
  * @hidden
234
- * Terminate the remote session
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
- function terminateSession(callback: (error: SdkError | null) => void): void;
121
+ panRight: boolean;
242
122
  /**
243
123
  * @hidden
244
- * Registers a handler for change in participants with controllable-cameras.
245
- * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
246
- *
247
- * @param handler - The handler to invoke when the list of participants with controllable-cameras changes.
124
+ * TiltUp reached top.
248
125
  *
249
126
  * @internal
250
127
  * Limited to Microsoft-internal use
251
128
  */
252
- function registerOnCapableParticipantsChangeHandler(handler: (participantChange: Participant[]) => void): void;
129
+ tiltUp: boolean;
253
130
  /**
254
131
  * @hidden
255
- * Registers a handler for error.
256
- * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
257
- *
258
- * @param handler - The handler to invoke when there is an error from the camera handler.
132
+ * TiltDown reached bottom.
259
133
  *
260
- * @internal
261
- * Limited to Microsoft-internal use
134
+ * @internal Limited to Microsoft-internal use
262
135
  */
263
- function registerOnErrorHandler(handler: (error: ErrorReason) => void): void;
264
- /**
265
- * @hidden
266
- * Registers a handler for device state change.
267
- * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
268
- *
269
- * @param handler - The handler to invoke when the controlled device changes state.
270
- *
271
- * @internal
272
- * Limited to Microsoft-internal use
273
- */
274
- function registerOnDeviceStateChangeHandler(handler: (deviceStateChange: DeviceState) => void): void;
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
- * Registers a handler for session status change.
278
- * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
279
- *
280
- * @param handler - The handler to invoke when the current session status changes.
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
- function registerOnSessionStatusChangeHandler(handler: (sessionStatusChange: SessionStatus) => void): void;
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
- function isSupported(): boolean;
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 };