@microsoft/teams-js 2.31.0-beta.1 → 2.31.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +11 -1
  2. package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +11 -1
  3. package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
  4. package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +11 -0
  5. package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +5 -0
  6. package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +24 -0
  7. package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +23 -1
  8. package/dist/esm/packages/teams-js/dts/internal/uint8array-extras/uint8array-extras.d.ts +6 -0
  9. package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +20 -1
  10. package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +2 -2
  11. package/dist/esm/packages/teams-js/dts/internal/visualMediaHelpers.d.ts +14 -0
  12. package/dist/esm/packages/teams-js/dts/internal/webStorageHelpers.d.ts +4 -0
  13. package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +61 -61
  14. package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +48 -48
  15. package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +2 -0
  16. package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +29 -0
  17. package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +355 -349
  18. package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +67 -68
  19. package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +104 -105
  20. package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +41 -42
  21. package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +113 -114
  22. package/dist/esm/packages/teams-js/dts/private/files.d.ts +590 -582
  23. package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +42 -0
  24. package/dist/esm/packages/teams-js/dts/private/hostEntity/tab.d.ts +134 -0
  25. package/dist/esm/packages/teams-js/dts/private/index.d.ts +19 -18
  26. package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -25
  27. package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +147 -142
  28. package/dist/esm/packages/teams-js/dts/private/messageChannels/dataLayer.d.ts +39 -0
  29. package/dist/esm/packages/teams-js/dts/private/messageChannels/messageChannels.d.ts +28 -0
  30. package/dist/esm/packages/teams-js/dts/private/messageChannels/telemetry.d.ts +39 -0
  31. package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +31 -25
  32. package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +69 -70
  33. package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +219 -214
  34. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/fullTrust.d.ts +31 -0
  35. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/joinedTeams.d.ts +30 -0
  36. package/dist/esm/packages/teams-js/dts/private/teams/teams.d.ts +63 -0
  37. package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +192 -186
  38. package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +21 -2
  39. package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +3 -2
  40. package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +1 -1
  41. package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +6 -0
  42. package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +2 -1
  43. package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +1 -0
  44. package/dist/esm/packages/teams-js/dts/public/call.d.ts +1 -0
  45. package/dist/esm/packages/teams-js/dts/public/chat.d.ts +4 -0
  46. package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +1 -0
  47. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +0 -4
  48. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +3 -2
  49. package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +0 -13
  50. package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +2 -1
  51. package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +3 -2
  52. package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +2 -1
  53. package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +3 -2
  54. package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +6 -0
  55. package/dist/esm/packages/teams-js/dts/public/index.d.ts +9 -9
  56. package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +11 -0
  57. package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +1 -0
  58. package/dist/esm/packages/teams-js/dts/public/location.d.ts +4 -3
  59. package/dist/esm/packages/teams-js/dts/public/mail.d.ts +1 -0
  60. package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +1 -0
  61. package/dist/esm/packages/teams-js/dts/public/media.d.ts +0 -3
  62. package/dist/esm/packages/teams-js/dts/public/meeting/appShareButton.d.ts +51 -0
  63. package/dist/esm/packages/teams-js/dts/public/meeting/meeting.d.ts +854 -0
  64. package/dist/esm/packages/teams-js/dts/public/menus.d.ts +1 -0
  65. package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +8 -0
  66. package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +2 -1
  67. package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +1 -0
  68. package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
  69. package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
  70. package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
  71. package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
  72. package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
  73. package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
  74. package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
  75. package/dist/esm/packages/teams-js/dts/public/profile.d.ts +81 -103
  76. package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +3 -0
  77. package/dist/esm/packages/teams-js/dts/public/search.d.ts +9 -0
  78. package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +1 -0
  79. package/dist/esm/packages/teams-js/dts/public/settings.d.ts +4 -3
  80. package/dist/esm/packages/teams-js/dts/public/sharing/history.d.ts +47 -0
  81. package/dist/esm/packages/teams-js/dts/public/sharing/sharing.d.ts +76 -0
  82. package/dist/esm/packages/teams-js/dts/public/stageView/self.d.ts +23 -0
  83. package/dist/esm/packages/teams-js/dts/public/stageView/stageView.d.ts +81 -0
  84. package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +0 -8
  85. package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +4 -0
  86. package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +2 -1
  87. package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +209 -210
  88. package/dist/esm/packages/teams-js/dts/public/visualMedia/image.d.ts +64 -0
  89. package/dist/esm/packages/teams-js/dts/public/visualMedia/visualMedia.d.ts +116 -0
  90. package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +20 -22
  91. package/dist/esm/packages/teams-js/src/index.js +1 -1
  92. package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -1
  93. package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
  94. package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -1
  95. package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
  96. package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -1
  97. package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -1
  98. package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
  99. package/dist/esm/packages/teams-js/src/internal/uint8array-extras/uint8array-extras.js +1 -0
  100. package/dist/esm/packages/teams-js/src/internal/utils.js +1 -1
  101. package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -1
  102. package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -1
  103. package/dist/esm/packages/teams-js/src/internal/visualMediaHelpers.js +1 -0
  104. package/dist/esm/packages/teams-js/src/internal/webStorageHelpers.js +1 -0
  105. package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -1
  106. package/dist/esm/packages/teams-js/src/private/conversations.js +1 -1
  107. package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
  108. package/dist/esm/packages/teams-js/src/private/copilot/eligibility.js +1 -0
  109. package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -1
  110. package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
  111. package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -1
  112. package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -1
  113. package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -1
  114. package/dist/esm/packages/teams-js/src/private/files.js +1 -1
  115. package/dist/esm/packages/teams-js/src/private/hostEntity/hostEntity.js +1 -0
  116. package/dist/esm/packages/teams-js/src/private/hostEntity/tab.js +1 -0
  117. package/dist/esm/packages/teams-js/src/private/logs.js +1 -1
  118. package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -1
  119. package/dist/esm/packages/teams-js/src/private/messageChannels/dataLayer.js +1 -0
  120. package/dist/esm/packages/teams-js/src/private/messageChannels/messageChannels.js +1 -0
  121. package/dist/esm/packages/teams-js/src/private/messageChannels/telemetry.js +1 -0
  122. package/dist/esm/packages/teams-js/src/private/notifications.js +1 -1
  123. package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -1
  124. package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -1
  125. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/fullTrust.js +1 -0
  126. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/joinedTeams.js +1 -0
  127. package/dist/esm/packages/teams-js/src/private/teams/teams.js +1 -0
  128. package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -1
  129. package/dist/esm/packages/teams-js/src/public/app/app.js +1 -1
  130. package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
  131. package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
  132. package/dist/esm/packages/teams-js/src/public/meeting/appShareButton.js +1 -0
  133. package/dist/esm/packages/teams-js/src/public/meeting/meeting.js +1 -0
  134. package/dist/esm/packages/teams-js/src/public/navigation.js +1 -1
  135. package/dist/esm/packages/teams-js/src/public/pages/appButton.js +1 -0
  136. package/dist/esm/packages/teams-js/src/public/pages/backStack.js +1 -0
  137. package/dist/esm/packages/teams-js/src/public/pages/config.js +1 -0
  138. package/dist/esm/packages/teams-js/src/public/pages/currentApp.js +1 -0
  139. package/dist/esm/packages/teams-js/src/public/pages/fullTrust.js +1 -0
  140. package/dist/esm/packages/teams-js/src/public/pages/pages.js +1 -0
  141. package/dist/esm/packages/teams-js/src/public/pages/tabs.js +1 -0
  142. package/dist/esm/packages/teams-js/src/public/profile.js +1 -1
  143. package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
  144. package/dist/esm/packages/teams-js/src/public/runtime.js +1 -1
  145. package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
  146. package/dist/esm/packages/teams-js/src/public/sharing/history.js +1 -0
  147. package/dist/esm/packages/teams-js/src/public/sharing/sharing.js +1 -0
  148. package/dist/esm/packages/teams-js/src/public/stageView/self.js +1 -0
  149. package/dist/esm/packages/teams-js/src/public/stageView/stageView.js +1 -0
  150. package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
  151. package/dist/esm/packages/teams-js/src/public/version.js +1 -1
  152. package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -1
  153. package/dist/esm/packages/teams-js/src/public/visualMedia/image.js +1 -0
  154. package/dist/esm/packages/teams-js/src/public/visualMedia/visualMedia.js +1 -0
  155. package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
  156. package/dist/umd/MicrosoftTeams.d.ts +5751 -5160
  157. package/dist/umd/MicrosoftTeams.js +6231 -6442
  158. package/dist/umd/MicrosoftTeams.js.map +1 -1
  159. package/dist/umd/MicrosoftTeams.min.js +1 -1
  160. package/dist/umd/MicrosoftTeams.min.js.map +1 -1
  161. package/package.json +1 -1
  162. package/dist/esm/packages/teams-js/dts/private/copilot.d.ts +0 -39
  163. package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +0 -176
  164. package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +0 -107
  165. package/dist/esm/packages/teams-js/dts/private/teams.d.ts +0 -116
  166. package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +0 -906
  167. package/dist/esm/packages/teams-js/dts/public/pages.d.ts +0 -574
  168. package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +0 -124
  169. package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +0 -104
  170. package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +0 -192
  171. package/dist/esm/packages/teams-js/src/private/copilot.js +0 -1
  172. package/dist/esm/packages/teams-js/src/private/hostEntity.js +0 -1
  173. package/dist/esm/packages/teams-js/src/private/messageChannels.js +0 -1
  174. package/dist/esm/packages/teams-js/src/private/teams.js +0 -1
  175. package/dist/esm/packages/teams-js/src/public/meeting.js +0 -1
  176. package/dist/esm/packages/teams-js/src/public/pages.js +0 -1
  177. package/dist/esm/packages/teams-js/src/public/sharing.js +0 -1
  178. package/dist/esm/packages/teams-js/src/public/stageView.js +0 -1
  179. package/dist/esm/packages/teams-js/src/public/visualMedia.js +0 -1
  180. /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,906 +0,0 @@
1
- import { EmailAddress } from './emailAddress';
2
- import { SdkError } from './interfaces';
3
- /**
4
- * Interact with meetings, including retrieving meeting details, getting mic status, and sharing app content.
5
- * This namespace is used to handle meeting related functionality like
6
- * get meeting details, get/update state of mic, sharing app content and more.
7
- *
8
- * To learn more, visit https://aka.ms/teamsmeetingapps
9
- */
10
- export declare namespace meeting {
11
- /** Error callback function type */
12
- export type errorCallbackFunctionType = (error: SdkError | null, result: boolean | null) => void;
13
- /** Get live stream state callback function type */
14
- export type getLiveStreamStateCallbackFunctionType = (error: SdkError | null, liveStreamState: LiveStreamState | null) => void;
15
- /** Live stream error callback function type */
16
- export type liveStreamErrorCallbackFunctionType = (error: SdkError | null) => void;
17
- /** Register live stream changed handler function type */
18
- export type registerLiveStreamChangedHandlerFunctionType = (liveStreamState: LiveStreamState) => void;
19
- /** Get app content stage sharing capabilities callback function type */
20
- export type getAppContentCallbackFunctionType = (error: SdkError | null, appContentStageSharingCapabilities: IAppContentStageSharingCapabilities | null) => void;
21
- /** Get app content stage sharing state callback function type */
22
- export type getAppContentStageCallbackFunctionType = (error: SdkError | null, appContentStageSharingState: IAppContentStageSharingState | null) => void;
23
- /** Register speaking state change handler function type */
24
- export type registerSpeakingStateChangeHandlerFunctionType = (speakingState: ISpeakingState) => void;
25
- /**
26
- * @hidden
27
- * Data structure to represent meeting details
28
- *
29
- * @internal
30
- * Limited to Microsoft-internal use
31
- */
32
- export interface IMeetingDetailsResponse {
33
- /**
34
- * @hidden
35
- * details object
36
- */
37
- details: IMeetingDetails | ICallDetails;
38
- /**
39
- * @hidden
40
- * conversation object
41
- */
42
- conversation: IConversation;
43
- /**
44
- * @hidden
45
- * organizer object
46
- */
47
- organizer: IOrganizer;
48
- }
49
- /**
50
- * @hidden
51
- * Hide from docs
52
- * Base data structure to represent a meeting or call detail
53
- */
54
- export interface IMeetingOrCallDetailsBase<T> {
55
- /**
56
- * @hidden
57
- * Scheduled start time of the meeting or start time of the call
58
- */
59
- scheduledStartTime: string;
60
- /**
61
- * @hidden
62
- * url to join the current meeting or call
63
- */
64
- joinUrl?: string;
65
- /**
66
- * @hidden
67
- * type of the meeting or call
68
- */
69
- type?: T;
70
- }
71
- /**
72
- * @hidden
73
- * Hide from docs
74
- * Data structure to represent call participant identifiers
75
- */
76
- interface ICallParticipantIdentifiers {
77
- /**
78
- * Phone number of a caller
79
- */
80
- phoneNumber?: string;
81
- /**
82
- * Email of a caller
83
- */
84
- email?: EmailAddress;
85
- }
86
- /**
87
- * @hidden
88
- * Hide from docs
89
- * Data structure to represent call details
90
- */
91
- export interface ICallDetails extends IMeetingOrCallDetailsBase<CallType> {
92
- /**
93
- * @deprecated please use {@link ICallDetails.originalCallerInfo} instead
94
- *
95
- * @hidden
96
- * Phone number of a PSTN caller or email of a VoIP caller
97
- */
98
- originalCaller?: string;
99
- /**
100
- * @hidden
101
- * Object representing the original caller
102
- */
103
- originalCallerInfo?: ICallParticipantIdentifiers;
104
- /**
105
- * @hidden
106
- * Identifier for the current call
107
- */
108
- callId?: string;
109
- /**
110
- * @deprecated please use {@link ICallDetails.dialedEntityInfo} instead
111
- *
112
- * @hidden
113
- * Phone number of a PSTN callee or email of a VoIP callee
114
- */
115
- dialedEntity?: never;
116
- /**
117
- * @hidden
118
- * Object representing the entity the caller dialed
119
- */
120
- dialedEntityInfo?: never;
121
- /**
122
- * @hidden
123
- * Tracking identifier for grouping related calls
124
- */
125
- trackingId?: never;
126
- }
127
- /**
128
- * @hidden
129
- * Hide from docs
130
- * Data structure to represent meeting details.
131
- */
132
- export interface IMeetingDetails extends IMeetingOrCallDetailsBase<MeetingType> {
133
- /**
134
- * @hidden
135
- * Scheduled end time of the meeting
136
- */
137
- scheduledEndTime: string;
138
- /**
139
- * @hidden
140
- * event id of the meeting
141
- */
142
- id?: string;
143
- /**
144
- * @hidden
145
- * meeting title name of the meeting
146
- */
147
- title?: string;
148
- }
149
- /**
150
- * @hidden
151
- * Data structure to represent a conversation object.
152
- *
153
- * @internal
154
- * Limited to Microsoft-internal use
155
- */
156
- export interface IConversation {
157
- /**
158
- * @hidden
159
- * conversation id of the meeting
160
- */
161
- id: string;
162
- }
163
- /**
164
- * @hidden
165
- * Data structure to represent an organizer object.
166
- *
167
- * @internal
168
- * Limited to Microsoft-internal use
169
- */
170
- export interface IOrganizer {
171
- /**
172
- * @hidden
173
- * organizer id of the meeting
174
- */
175
- id?: string;
176
- /**
177
- * @hidden
178
- * tenant id of the meeting
179
- */
180
- tenantId?: string;
181
- }
182
- /**
183
- * Represents the current Real-Time Messaging Protocol (RTMP) live streaming state of a meeting.
184
- *
185
- * @remarks
186
- * RTMP is a popular communication protocol for streaming audio, video, and data over the Internet.
187
- */
188
- export interface LiveStreamState {
189
- /**
190
- * true when the current meeting is being streamed through RTMP, or false if it is not.
191
- */
192
- isStreaming: boolean;
193
- /**
194
- * error object in case there is a failure
195
- */
196
- error?: {
197
- /** error code from the streaming service, e.g. IngestionFailure */
198
- code: string;
199
- /** detailed error message string */
200
- message?: string;
201
- };
202
- }
203
- /** Defines additional sharing options which can be provided to the {@link shareAppContentToStage} API. */
204
- export interface IShareAppContentToStageOptions {
205
- /**
206
- * The protocol option for sharing app content to the meeting stage. Defaults to `Collaborative`.
207
- * See {@link SharingProtocol} for more information.
208
- */
209
- sharingProtocol?: SharingProtocol;
210
- }
211
- /** Represents app permission to share contents to meeting. */
212
- export interface IAppContentStageSharingCapabilities {
213
- /**
214
- * indicates whether app has permission to share contents to meeting stage.
215
- * true when your `configurableTabs` or `staticTabs` entry's `context` array includes `meetingStage`.
216
- */
217
- doesAppHaveSharePermission: boolean;
218
- }
219
- /** Represents app being shared to stage. */
220
- export interface IAppContentStageSharingState {
221
- /**
222
- * indicates whether app is currently being shared to stage
223
- */
224
- isAppSharing: boolean;
225
- }
226
- /**
227
- * Property bag for the speakingState changed event
228
- *
229
- */
230
- export interface ISpeakingState {
231
- /**
232
- * true when one or more participants in a meeting are speaking, or false if no participants are speaking
233
- */
234
- isSpeakingDetected: boolean;
235
- /**
236
- * error object in case there is a failure
237
- */
238
- error?: SdkError;
239
- }
240
- /**
241
- * Property bag for the meeting reaction received event
242
- *
243
- * @hidden
244
- * Hide from docs.
245
- *
246
- * @internal
247
- * Limited to Microsoft-internal use
248
- *
249
- * @beta
250
- */
251
- export interface MeetingReactionReceivedEventData {
252
- /**
253
- * Indicates the type of meeting reaction received
254
- *
255
- * @hidden
256
- * Hide from docs.
257
- */
258
- meetingReactionType?: MeetingReactionType;
259
- /**
260
- * error object in case there is a failure
261
- *
262
- * @hidden
263
- * Hide from docs.
264
- */
265
- error?: SdkError;
266
- }
267
- /**
268
- * Interface for raiseHandState properties
269
- *
270
- * @hidden
271
- * Hide from docs.
272
- *
273
- * @internal
274
- * Limited to Microsoft-internal use
275
- *
276
- * @beta
277
- */
278
- export interface IRaiseHandState {
279
- /** Indicates whether the selfParticipant's hand is raised or not
280
- *
281
- * @hidden
282
- * Hide from docs.
283
- */
284
- isHandRaised: boolean;
285
- }
286
- /**
287
- * Property bag for the raiseHandState changed event
288
- *
289
- * @hidden
290
- * Hide from docs.
291
- *
292
- * @internal
293
- * Limited to Microsoft-internal use
294
- *
295
- * @beta
296
- */
297
- export interface RaiseHandStateChangedEventData {
298
- /**
299
- * entire raiseHandState object for the selfParticipant
300
- *
301
- * @hidden
302
- * Hide from docs.
303
- */
304
- raiseHandState: IRaiseHandState;
305
- /**
306
- * error object in case there is a failure
307
- *
308
- * @hidden
309
- * Hide from docs.
310
- */
311
- error?: SdkError;
312
- }
313
- /**
314
- * Interface for mic state change
315
- *
316
- * @hidden
317
- * Hide from docs.
318
- *
319
- * @internal
320
- * Limited to Microsoft-internal use
321
- *
322
- * @beta
323
- */
324
- export interface MicState {
325
- /**
326
- * Indicates the mute status of the mic
327
- */
328
- isMicMuted: boolean;
329
- }
330
- /**
331
- * Interface for RequestAppAudioHandling properties
332
- *
333
- * @hidden
334
- * Hide from docs.
335
- *
336
- * @internal
337
- * Limited to Microsoft-internal use
338
- *
339
- * @beta
340
- */
341
- export interface RequestAppAudioHandlingParams {
342
- /**
343
- * Indicates whether the app is requesting to start handling audio, or if
344
- * it's giving audio back to the host
345
- */
346
- isAppHandlingAudio: boolean;
347
- /**
348
- * Callback for the host to tell the app to change its microphone state
349
- * @param micState The microphone state for the app to use
350
- * @returns A promise with the updated microphone state
351
- */
352
- micMuteStateChangedCallback: (micState: MicState) => Promise<MicState>;
353
- /**
354
- * Callback for the host to tell the app to change its speaker selection
355
- */
356
- audioDeviceSelectionChangedCallback?: (selectedDevices: AudioDeviceSelection | SdkError) => void;
357
- }
358
- /**
359
- * Interface for AudioDeviceSelection from host selection.
360
- * If the speaker or the microphone is undefined or don't have a device label, you can try to find the default devices
361
- * by using
362
- * ```ts
363
- * const devices = await navigator.mediaDevices.enumerateDevices();
364
- * const defaultSpeaker = devices.find((d) => d.deviceId === 'default' && d.kind === 'audiooutput');
365
- * const defaultMic = devices.find((d) => d.deviceId === 'default' && d.kind === 'audioinput');
366
- * ```
367
- *
368
- * @hidden
369
- * Hide from docs.
370
- *
371
- * @internal
372
- * Limited to Microsoft-internal use
373
- *
374
- * @beta
375
- */
376
- export interface AudioDeviceSelection {
377
- speaker?: AudioDeviceInfo;
378
- microphone?: AudioDeviceInfo;
379
- }
380
- /**
381
- * Interface for AudioDeviceInfo, includes a device label with the same format as {@link MediaDeviceInfo.label}
382
- *
383
- * Hosted app can use this label to compare it with the device info fetched from {@link navigator.mediaDevices.enumerateDevices()}.
384
- * {@link MediaDeviceInfo} has {@link MediaDeviceInfo.deviceId} as an unique identifier, but that id is also unique to the origin
385
- * of the calling application, so {@link MediaDeviceInfo.deviceId} cannot be used here as an identifier. Notice there are some cases
386
- * that devices may have the same device label, but we don't have a better way to solve this, keep this as a known limitation for now.
387
- *
388
- * @hidden
389
- * Hide from docs.
390
- *
391
- * @internal
392
- * Limited to Microsoft-internal use
393
- *
394
- * @beta
395
- */
396
- export interface AudioDeviceInfo {
397
- deviceLabel: string;
398
- }
399
- /**
400
- * Different types of meeting reactions that can be sent/received
401
- *
402
- * @hidden
403
- * Hide from docs.
404
- *
405
- * @internal
406
- * Limited to Microsoft-internal use
407
- *
408
- * @beta
409
- */
410
- export enum MeetingReactionType {
411
- like = "like",
412
- heart = "heart",
413
- laugh = "laugh",
414
- surprised = "surprised",
415
- applause = "applause"
416
- }
417
- /**
418
- * Represents the type of a meeting
419
- *
420
- * @hidden
421
- * Hide from docs.
422
- *
423
- * @remarks
424
- * Teams has several types of meetings to account for different user scenarios and requirements.
425
- */
426
- export enum MeetingType {
427
- /**
428
- * Used when the meeting type is not known.
429
- *
430
- * @remarks
431
- * This response is not an expected case.
432
- */
433
- Unknown = "Unknown",
434
- /**
435
- * Used for group call meeting types.
436
- *
437
- * @remarks
438
- * To test this meeting type in Teams, start a chat with two or more users and click the "Call" button.
439
- * Note that a group call may return as this or {@link CallType.GroupCall}. These two different response types should be considered as equal.
440
- */
441
- Adhoc = "Adhoc",
442
- /**
443
- * Used for single-occurrence meetings that have been scheduled in advance.
444
- *
445
- * @remarks
446
- * To create a meeting of this type in Teams, press the "New meeting" button from the calendar and enter a meeting title.
447
- * Before saving, ensure that the "Online Meeting" field is checked.
448
- */
449
- Scheduled = "Scheduled",
450
- /**
451
- * Used for meetings that occur on a recurring basis.
452
- *
453
- * @remarks
454
- * To create a meeting of this type in Teams, press the "New meeting" button from the calendar, enter a meeting title, and then change the field labeled "Does not repeat" to some other value.
455
- * Before saving, ensure that the "Online Meeting" field is checked.
456
- */
457
- Recurring = "Recurring",
458
- /**
459
- * Used for webinars.
460
- *
461
- * @remarks
462
- * Meeting apps are only supported for those in the "event group" of a webinar, which are those who'll be presenting and producing the webinar.
463
- * To learn how to create a meeting of this type, visit https://aka.ms/teams/howto/webinars.
464
- */
465
- Broadcast = "Broadcast",
466
- /**
467
- * Used for meet now meetings, which are meetings users create on the fly.
468
- *
469
- * @remarks
470
- * To create a meeting of this type, click the "Meet now" button from the calendar in Teams or the "Teams call" button in Outlook.
471
- */
472
- MeetNow = "MeetNow"
473
- }
474
- /**
475
- * Represents the type of a call.
476
- *
477
- * @hidden
478
- * Hide from docs.
479
- */
480
- export enum CallType {
481
- /**
482
- * Represents a call between two people.
483
- *
484
- * @remarks
485
- * To test this feature, start a chat with one other user and click the "Call" button.
486
- */
487
- OneOnOneCall = "oneOnOneCall",
488
- /**
489
- * Represents a call between more than two people.
490
- *
491
- * @remarks
492
- * To test this meeting type in Teams, start a chat with two or more users and click the "Call" button.
493
- * Note that a group call may return as this or {@link MeetingType.Adhoc}. These two different response types should be considered as equal.
494
- */
495
- GroupCall = "groupCall"
496
- }
497
- /**
498
- * Represents the protocol option for sharing app content to the meeting stage.
499
- */
500
- export enum SharingProtocol {
501
- /**
502
- * The default protocol for sharing app content to stage. To learn more, visit https://aka.ms/teamsjs/shareAppContentToStage
503
- */
504
- Collaborative = "Collaborative",
505
- /**
506
- * A read-only protocol for sharing app content to stage, which uses screen sharing in meetings. If provided, this protocol will open
507
- * the specified `contentUrl` passed to the {@link shareAppContentToStage} API in a new instance and screen share that instance.
508
- */
509
- ScreenShare = "ScreenShare"
510
- }
511
- /**
512
- * Allows an app to get the incoming audio speaker setting for the meeting user.
513
- * To learn more, visit https://aka.ms/teamsjs/getIncomingClientAudioState
514
- *
515
- * @remarks
516
- * Use {@link toggleIncomingClientAudio} to toggle the current audio state.
517
- * For private scheduled meetings, meet now, or calls, include the `OnlineMeetingParticipant.ToggleIncomingAudio.Chat` RSC permission in your app manifest.
518
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/authorization.
519
- * This API can only be used in the `sidePanel` and `meetingStage` frame contexts.
520
- *
521
- * @param callback - Callback contains 2 parameters, `error` and `result`.
522
- * `error` can either contain an error of type `SdkError`, in case of an error, or null when fetch is successful.
523
- * `result` will be true when incoming audio is muted and false when incoming audio is unmuted, or null when the request fails.
524
- */
525
- export function getIncomingClientAudioState(callback: errorCallbackFunctionType): void;
526
- /**
527
- * Allows an app to toggle the incoming audio speaker setting for the meeting user from mute to unmute or vice-versa.
528
- * To learn more, visit https://aka.ms/teamsjs/toggleIncomingClientAudio
529
- *
530
- * @remarks
531
- * Use {@link getIncomingClientAudioState} to get the current audio state.
532
- * For private scheduled meetings, meet now, or calls, include the `OnlineMeetingParticipant.ToggleIncomingAudio.Chat` RSC permission in your app manifest.
533
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/authorization.
534
- * This API can only be used in the `sidePanel` and `meetingStage` frame contexts.
535
- *
536
- * @param callback - Callback contains 2 parameters, `error` and `result`.
537
- * `error` can either contain an error of type `SdkError`, in case of an error, or null when toggle is successful.
538
- * `result` will be true when incoming audio is muted and false when incoming audio is unmuted, or null when the toggling fails.
539
- */
540
- export function toggleIncomingClientAudio(callback: errorCallbackFunctionType): void;
541
- /**
542
- * @throws error if your app manifest does not include the `OnlineMeeting.ReadBasic.Chat` RSC permission.
543
- * Find the app manifest reference at https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema.
544
- * Find the RSC reference at https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/rsc/resource-specific-consent.
545
- *
546
- * @hidden
547
- * Allows an app to get the meeting details for the meeting
548
- *
549
- * @param callback - Callback contains 2 parameters, `error` and `meetingDetailsResponse`.
550
- * `error` can either contain an error of type `SdkError`, in case of an error, or null when get is successful
551
- * `result` can either contain a {@link IMeetingDetailsResponse} value, in case of a successful get or null when the get fails
552
- *
553
- * @internal
554
- * Limited to Microsoft-internal use
555
- */
556
- export function getMeetingDetails(callback: (error: SdkError | null, meetingDetails: IMeetingDetailsResponse | null) => void): void;
557
- /**
558
- * @throws error if your app manifest does not include both the `OnlineMeeting.ReadBasic.Chat` RSC permission
559
- * and the `OnlineMeetingParticipant.Read.Chat` RSC permission.
560
- * Find the app manifest reference at https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema.
561
- * Find the RSC reference at https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/rsc/resource-specific-consent.
562
- *
563
- * @throws `not supported on platform` error if your app is run on a host that does not support returning additional meeting details.
564
- *
565
- * @hidden
566
- * Allows an app to get the additional meeting details for the meeting.
567
- * Some additional details are returned on a best-effort basis. They may not be present for every meeting.
568
- *
569
- * @internal
570
- * Limited to Microsoft-internal use
571
- *
572
- * @beta
573
- */
574
- export function getMeetingDetailsVerbose(): Promise<IMeetingDetailsResponse>;
575
- /**
576
- * @hidden
577
- * Allows an app to get the authentication token for the anonymous or guest user in the meeting
578
- *
579
- * @param callback - Callback contains 2 parameters, `error` and `authenticationTokenOfAnonymousUser`.
580
- * `error` can either contain an error of type `SdkError`, in case of an error, or null when get is successful
581
- * `authenticationTokenOfAnonymousUser` can either contain a string value, in case of a successful get or null when the get fails
582
- *
583
- * @internal
584
- * Limited to Microsoft-internal use
585
- */
586
- export function getAuthenticationTokenForAnonymousUser(callback: (error: SdkError | null, authenticationTokenOfAnonymousUser: string | null) => void): void;
587
- /**
588
- * Allows an app to get the state of the outgoing live stream in the current meeting.
589
- *
590
- * @remarks
591
- * Use {@link requestStartLiveStreaming} or {@link requestStopLiveStreaming} to start/stop a live stream.
592
- * This API can only be used in the `sidePanel` frame context.
593
- * The `meetingExtensionDefinition.supportsStreaming` field in your app manifest must be `true` to use this API.
594
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/meetingExtensionDefinition.
595
- *
596
- * @param callback - Callback contains 2 parameters: `error` and `liveStreamState`.
597
- * `error` can either contain an error of type `SdkError`, in case of an error, or null when the request is successful
598
- * `liveStreamState` can either contain a `LiveStreamState` value, or null when operation fails
599
- */
600
- export function getLiveStreamState(callback: getLiveStreamStateCallbackFunctionType): void;
601
- /**
602
- * Allows an app to ask the local user to begin live streaming the current meeting to the given Real-Time Messaging Protocol (RTMP) stream url.
603
- * A confirmation dialog will be shown to the local user with options to "Allow" or "Cancel" this request.
604
- *
605
- * @remarks
606
- * Meeting content (e.g., user video, screenshare, audio, etc.) can be externally streamed to any platform that supports the popular RTMP standard.
607
- * Content broadcasted through RTMP is automatically formatted and cannot be customized.
608
- * Use {@link getLiveStreamState} or {@link registerLiveStreamChangedHandler} to get updates on the live stream state.
609
- * This API can only be used in the `sidePanel` frame context.
610
- * The `meetingExtensionDefinition.supportsStreaming` field in your app manifest must be `true` to use this API.
611
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/meetingExtensionDefinition.
612
- *
613
- * @param callback - completion callback that contains an `error` parameter, which can be of type `SdkError` in case of an error, or null when operation is successful
614
- * @param streamUrl - the url to the RTMP stream resource
615
- * @param streamKey - the key to the RTMP stream resource
616
- */
617
- export function requestStartLiveStreaming(callback: liveStreamErrorCallbackFunctionType, streamUrl: string, streamKey?: string): void;
618
- /**
619
- * Allows an app to request that live streaming be stopped.
620
- *
621
- * @remarks
622
- * Use {@link getLiveStreamState} or {@link registerLiveStreamChangedHandler} to get updates on the live stream state.
623
- * This API can only be used in the `sidePanel` frame context.
624
- * The `meetingExtensionDefinition.supportsStreaming` field in your app manifest must be `true` to use this API.
625
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/meetingExtensionDefinition.
626
- *
627
- * @param callback - completion callback that contains an error parameter, which can be of type `SdkError` in case of an error, or null when operation is successful
628
- */
629
- export function requestStopLiveStreaming(callback: liveStreamErrorCallbackFunctionType): void;
630
- /**
631
- * Registers an event handler for state changes to the live stream.
632
- *
633
- * @remarks
634
- * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
635
- * Use {@link requestStartLiveStreaming} or {@link requestStopLiveStreaming} to start/stop a live stream.
636
- * This API can only be used in the `sidePanel` frame context.
637
- * The `meetingExtensionDefinition.supportsStreaming` field in your app manifest must be `true` to use this API.
638
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/meetingExtensionDefinition.
639
- *
640
- * @param handler - The handler to invoke when the live stream state changes
641
- */
642
- export function registerLiveStreamChangedHandler(handler: registerLiveStreamChangedHandlerFunctionType): void;
643
- /**
644
- * Allows an app to share a given URL to the meeting stage for all users in the meeting.
645
- * To learn more, visit https://aka.ms/teamsjs/shareAppContentToStage
646
- *
647
- * @remarks
648
- * This API can only be used in the `sidePanel` and `meetingStage` frame contexts.
649
- * For private scheduled meetings, meet now, or calls, include the `MeetingStage.Write.Chat` RSC permission in your app manifest.
650
- * For channel meetings, include the `ChannelMeetingStage.Write.Group` RSC permission in your app manifest.
651
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/authorization.
652
- * Use {@link getAppContentStageSharingCapabilities} to determine if the local user is eligible to use this API.
653
- * Use {@link getAppContentStageSharingState} to determine whether app content is already being shared to the meeting stage.
654
- *
655
- * @param callback - Callback contains 2 parameters, `error` and `result`.
656
- * `error` can either contain an error of type `SdkError`, in case of an error, or null when share is successful
657
- * `result` can either contain a true value, in case of a successful share or null when the share fails
658
- * @param appContentUrl - is the input URL to be shared to the meeting stage.
659
- * the URL origin must be included in your app manifest's `validDomains` field.
660
- * @param shareOptions - is an object that contains additional sharing options. If omitted, the default
661
- * sharing protocol will be `Collaborative`. See {@link IShareAppContentToStageOptions} for more information.
662
- */
663
- export function shareAppContentToStage(callback: errorCallbackFunctionType, appContentUrl: string, shareOptions?: IShareAppContentToStageOptions): void;
664
- /**
665
- * Allows an app to request whether the local user's app version has the required app manifest permissions to share content to meeting stage.
666
- * To learn more, visit https://aka.ms/teamsjs/getAppContentStageSharingCapabilities
667
- *
668
- * @remarks
669
- * If you are updating your published app to include the share to stage feature, you can use this API to prompt users to update their app if they are using an older version.
670
- * Your app's `configurableTabs` or `staticTabs` entry's `context` array must include `meetingStage` for `doesAppHaveSharePermission` to be `true` in the `callback` response.
671
- *
672
- * @throws error if API is being used outside of `sidePanel` or `meetingStage` frame contexts.
673
- * @throws error if your app manifest does not include the `MeetingStage.Write.Chat` RSC permission in your app manifest in a private scheduled meeting, meet now, or call --
674
- * or if it does not include the `ChannelMeetingStage.Write.Group` RSC permission in your app manifest in a channel meeting.
675
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/authorization.
676
- *
677
- * @param callback - Completion callback contains 2 parameters: `error` and `appContentStageSharingCapabilities`.
678
- * `error` can either contain an error of type `SdkError` (error indication), or null (non-error indication).
679
- * `appContentStageSharingCapabilities` will contain an {@link IAppContentStageSharingCapabilities} object if the request succeeds, or null if it failed.
680
- */
681
- export function getAppContentStageSharingCapabilities(callback: getAppContentCallbackFunctionType): void;
682
- /**
683
- * @hidden
684
- * Hide from docs.
685
- * Terminates current stage sharing session in meeting
686
- *
687
- * @param callback - Callback contains 2 parameters, error and result.
688
- * error can either contain an error of type SdkError (error indication), or null (non-error indication)
689
- * result can either contain a true boolean value (successful termination), or null (unsuccessful fetch)
690
- */
691
- export function stopSharingAppContentToStage(callback: errorCallbackFunctionType): void;
692
- /**
693
- * Provides information related to current stage sharing state for your app.
694
- * To learn more, visit https://aka.ms/teamsjs/getAppContentStageSharingState
695
- *
696
- * @remarks
697
- * This API can only be used in the `sidePanel` and `meetingStage` frame contexts.
698
- * For private scheduled meetings, meet now, or calls, include the `MeetingStage.Write.Chat` RSC permission in your app manifest.
699
- * For channel meetings, include the `ChannelMeetingStage.Write.Group` RSC permission in your app manifest.
700
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/authorization.
701
- *
702
- * @param callback - Callback contains 2 parameters, `error` and `appContentStageSharingState`.
703
- * error can either contain an error of type SdkError (error indication), or null (non-error indication)
704
- * `appContentStageSharingState` can either contain an `IAppContentStageSharingState` object if the request succeeds, or null if it failed
705
- */
706
- export function getAppContentStageSharingState(callback: getAppContentStageCallbackFunctionType): void;
707
- /**
708
- * Registers a handler for changes to participant speaking states.
709
- * To learn more, visit https://aka.ms/teamsjs/registerSpeakingStateChangeHandler
710
- *
711
- * @remarks
712
- * This API returns {@link ISpeakingState}, which will have `isSpeakingDetected` and/or an error object.
713
- * If any participant is speaking, `isSpeakingDetected` will be true, or false if no participants are speaking.
714
- * Only one handler can be registered at a time. Subsequent registrations replace existing registrations.
715
- * This API can only be used in the `sidePanel` and `meetingStage` frame contexts.
716
- * For private scheduled meetings, meet now, or calls, include the `OnlineMeetingIncomingAudio.Detect.Chat` RSC permission in your app manifest.
717
- * For channel meetings, include the `OnlineMeetingIncomingAudio.Detect.Group` RSC permission in your app manifest.
718
- * Find the app manifest reference at https://aka.ms/teamsAppManifest/authorization.
719
- *
720
- * @param handler The handler to invoke when the speaking state of any participant changes (start/stop speaking).
721
- */
722
- export function registerSpeakingStateChangeHandler(handler: registerSpeakingStateChangeHandlerFunctionType): void;
723
- /**
724
- * Registers a handler for changes to the selfParticipant's (current user's) raiseHandState. If the selfParticipant raises their hand, isHandRaised
725
- * will be true. By default and if the selfParticipant hand is lowered, isHandRaised will be false. This API will return {@link RaiseHandStateChangedEventData}
726
- * that will have the raiseHandState or an error object. Only one handler can be registered at a time. A subsequent registration
727
- * replaces an existing registration.
728
- *
729
- * @param handler The handler to invoke when the selfParticipant's (current user's) raiseHandState changes.
730
- *
731
- * @hidden
732
- * Hide from docs.
733
- *
734
- * @internal
735
- * Limited to Microsoft-internal use
736
- *
737
- * @beta
738
- */
739
- export function registerRaiseHandStateChangedHandler(handler: (eventData: RaiseHandStateChangedEventData) => void): void;
740
- /**
741
- * Registers a handler for receiving meeting reactions. When the selfParticipant (current user) successfully sends a meeting reaction and it is being rendered on the UI, the meetingReactionType will be populated. Only one handler can be registered
742
- * at a time. A subsequent registration replaces an existing registration.
743
- *
744
- * @param handler The handler to invoke when the selfParticipant (current user) successfully sends a meeting reaction
745
- *
746
- * @hidden
747
- * Hide from docs.
748
- *
749
- * @internal
750
- * Limited to Microsoft-internal use
751
- *
752
- * @beta
753
- */
754
- export function registerMeetingReactionReceivedHandler(handler: (eventData: MeetingReactionReceivedEventData) => void): void;
755
- /**
756
- * @hidden
757
- * Hide from docs beacuse it's only used internally as a serialization/deserialization type
758
- *
759
- * @internal
760
- * Limited to Microsoft-internal use
761
- */
762
- export interface ISerializedJoinMeetingParams {
763
- joinWebUrl: string;
764
- source: EventActionSource;
765
- }
766
- /**
767
- * This function is used to join a meeting.
768
- * This opens a meeting in a new window for the desktop app.
769
- * In case of a web app, it will close the current app and open the meeting in the same tab.
770
- * There is currently no support or experience for this on mobile platforms.
771
- * @param joinMeetingParams This takes {@link JoinMeetingParams} for joining the meeting. If source isn't passed then it is marked as 'Other' by default.
772
- * @throws error if the meeting join fails, the promise will reject to an object with the error message.
773
- */
774
- export function joinMeeting(joinMeetingParams: JoinMeetingParams): Promise<void>;
775
- /**
776
- * Contains information associated with parameters required for joining the Microsoft Teams meetings.
777
- * More details regarding parameters can be found at:
778
- * [Online Meeting Base - Microsoft Graph v1.0](https://learn.microsoft.com/en-us/graph/api/resources/onlinemeetingbase?view=graph-rest-1.0)
779
- */
780
- export interface JoinMeetingParams {
781
- /** The join URL of the online meeting. */
782
- joinWebUrl: URL;
783
- /** The source of the join button click. If not passed, 'Other' is the default value of source. {@link EventActionSource} */
784
- source?: EventActionSource;
785
- }
786
- /** The source of the join button click. */
787
- export enum EventActionSource {
788
- /**
789
- * Source is calendar grid context menu.
790
- */
791
- M365CalendarGridContextMenu = "m365_calendar_grid_context_menu",
792
- /**
793
- * Source is calendar grid peek.
794
- */
795
- M365CalendarGridPeek = "m365_calendar_grid_peek",
796
- /**
797
- * Source is calendar grid event card join button.
798
- */
799
- M365CalendarGridEventCardJoinButton = "m365_calendar_grid_event_card_join_button",
800
- /**
801
- * Source is calendar form ribbon join button.
802
- */
803
- M365CalendarFormRibbonJoinButton = "m365_calendar_form_ribbon_join_button",
804
- /**
805
- * Source is calendar form join teams meeting button.
806
- */
807
- M365CalendarFormJoinTeamsMeetingButton = "m365_calendar_form_join_teams_meeting_button",
808
- /**
809
- * Other sources.
810
- */
811
- Other = "other"
812
- }
813
- /**
814
- * Nested namespace for functions to control behavior of the app share button
815
- *
816
- * @hidden
817
- * Hide from docs.
818
- *
819
- * @internal
820
- * Limited to Microsoft-internal use
821
- *
822
- * @beta
823
- */
824
- export namespace appShareButton {
825
- /**
826
- * Property bag for the setVisibilityInfo
827
- *
828
- * @hidden
829
- * Hide from docs.
830
- *
831
- * @internal
832
- * Limited to Microsoft-internal use
833
- *
834
- * @beta
835
- */
836
- interface ShareInformation {
837
- /**
838
- * boolean flag to set show or hide app share button
839
- */
840
- isVisible: boolean;
841
- /**
842
- * optional string contentUrl, which will override contentUrl coming from Manifest
843
- */
844
- contentUrl?: string;
845
- }
846
- /**
847
- * By default app share button will be hidden and this API will govern the visibility of it.
848
- *
849
- * This function can be used to hide/show app share button in meeting,
850
- * along with contentUrl (overrides contentUrl populated in app manifest)
851
- * @throws standard Invalid Url error
852
- * @param shareInformation has two elements, one isVisible boolean flag and another
853
- * optional string contentUrl, which will override contentUrl coming from Manifest
854
- *
855
- * @hidden
856
- * Hide from docs.
857
- *
858
- * @internal
859
- * Limited to Microsoft-internal use
860
- *
861
- * @beta
862
- */
863
- function setOptions(shareInformation: ShareInformation): void;
864
- }
865
- /**
866
- * Have the app handle audio (mic & speaker) and turn off host audio.
867
- *
868
- * When {@link RequestAppAudioHandlingParams.isAppHandlingAudio} is true, the host will switch to audioless mode
869
- * Registers for mic mute status change events, which are events that the app can receive from the host asking the app to
870
- * mute or unmute the microphone.
871
- *
872
- * When {@link RequestAppAudioHandlingParams.isAppHandlingAudio} is false, the host will switch out of audioless mode
873
- * Unregisters the mic mute status change events so the app will no longer receive these events
874
- *
875
- * @throws Error if {@linkcode app.initialize} has not successfully completed
876
- * @throws Error if {@link RequestAppAudioHandlingParams.micMuteStateChangedCallback} parameter is not defined
877
- *
878
- * @param requestAppAudioHandlingParams - {@link RequestAppAudioHandlingParams} object with values for the audio switchover
879
- * @param callback - Callback with one parameter, the result
880
- * can either be true (the host is now in audioless mode) or false (the host is not in audioless mode)
881
- *
882
- * @hidden
883
- * Hide from docs.
884
- *
885
- * @internal
886
- * Limited to Microsoft-internal use
887
- *
888
- * @beta
889
- */
890
- export function requestAppAudioHandling(requestAppAudioHandlingParams: RequestAppAudioHandlingParams, callback: (isHostAudioless: boolean) => void): void;
891
- /**
892
- * Notifies the host that the microphone state has changed in the app.
893
- * @param micState - The new state that the microphone is in
894
- * isMicMuted - Boolean to indicate the current mute status of the mic.
895
- *
896
- * @hidden
897
- * Hide from docs.
898
- *
899
- * @internal
900
- * Limited to Microsoft-internal use
901
- *
902
- * @beta
903
- */
904
- export function updateMicState(micState: MicState): void;
905
- export {};
906
- }