@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.
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
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @hidden
3
+ * @internal
4
+ * @beta
5
+ * @module
6
+ * Limited to Microsoft-internal use
7
+ *
8
+ * This capability allows an app to associate apps with a host entity, such as a Teams channel or chat, and configure them as needed.
9
+ */
10
+ import * as tab from './tab';
11
+ export declare enum AppTypes {
12
+ edu = "EDU"
13
+ }
14
+ /**
15
+ * Id of the teams entity like channel, chat
16
+ */
17
+ interface TeamsEntityId {
18
+ threadId: string;
19
+ }
20
+ /**
21
+ * Id of message in which channel meeting is created
22
+ */
23
+ export interface TeamsChannelMeetingEntityIds extends TeamsEntityId {
24
+ parentMessageId: string;
25
+ }
26
+ /**
27
+ * Id of the host entity
28
+ */
29
+ export type HostEntityIds = TeamsEntityId | TeamsChannelMeetingEntityIds;
30
+ /**
31
+ * @hidden
32
+ * @internal
33
+ * @beta
34
+ * Limited to Microsoft-internal use
35
+ *
36
+ * Checks if the hostEntity capability is supported by the host
37
+ * @returns boolean to represent whether the hostEntity capability is supported
38
+ *
39
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
40
+ */
41
+ export declare function isSupported(): boolean;
42
+ export { tab };
@@ -0,0 +1,134 @@
1
+ /**
2
+ * @hidden
3
+ * @internal
4
+ * @beta
5
+ * @module
6
+ * Limited to Microsoft-internal use
7
+ *
8
+ * CRUD operations for tabs associated with apps
9
+ */
10
+ import { TabInstance } from '../../public/interfaces';
11
+ import { AppTypes, HostEntityIds } from './hostEntity';
12
+ /**
13
+ * Represents information about a static tab instance
14
+ */
15
+ export interface StaticTabInstance extends TabInstance {
16
+ tabType: 'StaticTab';
17
+ }
18
+ /**
19
+ * Represents information about a configurable tab instance
20
+ */
21
+ export interface ConfigurableTabInstance extends TabInstance {
22
+ tabType: 'ConfigurableTab';
23
+ }
24
+ /**
25
+ * Represents information about a tab instance associated with a host entity like chat, channel or meeting. Cab be a configurable tab or static tab.
26
+ */
27
+ export type HostEntityTabInstance = StaticTabInstance | ConfigurableTabInstance;
28
+ /**
29
+ * Represents all tabs associated with a host entity like chat, channel or meeting
30
+ */
31
+ export interface HostEntityTabInstances {
32
+ allTabs: HostEntityTabInstance[];
33
+ }
34
+ /**
35
+ * @hidden
36
+ * @internal
37
+ * @beta
38
+ * Limited to Microsoft-internal use
39
+ *
40
+ * Launches host-owned UI that lets a user select an app, installs it if required,
41
+ * runs through app configuration if required, and then associates the app with the threadId provided
42
+ *
43
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
44
+ *
45
+ * @param appTypes What type of applications to show the user. If EDU is passed as appType, only apps supported by EDU tenant are shown.
46
+ * If no value is passed, all apps are shown.
47
+ *
48
+ * @returns The HostEntityTabInstance of the newly associated app
49
+ *
50
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid, user cancels operation or installing
51
+ * or configuring or adding tab fails
52
+ */
53
+ export declare function addAndConfigure(hostEntityIds: HostEntityIds, appTypes?: AppTypes[]): Promise<HostEntityTabInstance>;
54
+ /**
55
+ * @hidden
56
+ * @internal
57
+ * @beta
58
+ * Limited to Microsoft-internal use
59
+ *
60
+ * Returns all tab instances associated with a host entity
61
+ *
62
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
63
+ *
64
+ * @returns Object with array of HostEntityTabInstance's associated with a host entity
65
+ *
66
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid or fetching tabs fails
67
+ */
68
+ export declare function getAll(hostEntityIds: HostEntityIds): Promise<HostEntityTabInstances>;
69
+ /**
70
+ * @hidden
71
+ * @internal
72
+ * @beta
73
+ * Limited to Microsoft-internal use
74
+ *
75
+ * Launches host-owned UI that lets a user re-configure the contentUrl of the tab
76
+ *
77
+ * @param tab Configurable tab instance that needs to be updated
78
+ *
79
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
80
+ *
81
+ * @returns The HostEntityTabInstance of the updated tab
82
+ *
83
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid, user cancels operation,
84
+ * re-configuring tab fails or if tab is a static tab
85
+ */
86
+ export declare function reconfigure(tab: ConfigurableTabInstance, hostEntityIds: HostEntityIds): Promise<ConfigurableTabInstance>;
87
+ /**
88
+ * @hidden
89
+ * @internal
90
+ * @beta
91
+ * Limited to Microsoft-internal use
92
+ *
93
+ * Launches host-owned UI that lets a user rename the tab
94
+ *
95
+ * @param tab Configurable tab instance that needs to be updated
96
+ *
97
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
98
+ *
99
+ * @returns The HostEntityTabInstance of the updated tab
100
+ *
101
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid, user cancels operation,
102
+ * re-naming tab fails or if tab is a static tab
103
+ */
104
+ export declare function rename(tab: ConfigurableTabInstance, hostEntityIds: HostEntityIds): Promise<ConfigurableTabInstance>;
105
+ /**
106
+ * @hidden
107
+ * @internal
108
+ * @beta
109
+ * Limited to Microsoft-internal use
110
+ *
111
+ * Launches host-owned UI that lets a user remove the tab
112
+ *
113
+ * @param tab tab instance that needs to be updated. Can be static tab or configurable tab.
114
+ *
115
+ * @param hostEntityIds Ids of the host entity like channel, chat or meeting
116
+ *
117
+ * @returns Boolean. Returns true if removing tab was successful
118
+ *
119
+ * @throws Error if host does not support this capability, library as not been initialized successfully, input parameters are invalid, user cancels operation or
120
+ * removing tab fails
121
+ */
122
+ export declare function remove(tab: HostEntityTabInstance, hostEntityIds: HostEntityIds): Promise<boolean>;
123
+ /**
124
+ * @hidden
125
+ * @internal
126
+ * @beta
127
+ * Limited to Microsoft-internal use
128
+ *
129
+ * Checks if the hostEntity.tab capability is supported by the host
130
+ * @returns boolean to represent whether the histEntity and hostEntity.tab capability is supported
131
+ *
132
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
133
+ */
134
+ export declare function isSupported(): boolean;
@@ -1,20 +1,21 @@
1
- export { logs } from './logs';
1
+ export * as logs from './logs';
2
2
  export { ChatMembersInformation, FilePreviewParameters, NotificationTypes, ShowNotificationParameters, TeamInstanceParameters, ThreadMember, UserJoinedTeamsInformation, ViewerActionTypes, UserSettingTypes, } from './interfaces';
3
3
  export { sendCustomMessage, sendCustomEvent, registerCustomHandler, uploadCustomApp, registerUserSettingsChangeHandler, openFilePreview, } from './privateAPIs';
4
- export { conversations, OpenConversationRequest } from './conversations';
5
- export { copilot } from './copilot';
6
- export { externalAppAuthentication } from './externalAppAuthentication';
7
- export { externalAppAuthenticationForCEA } from './externalAppAuthenticationForCEA';
8
- export { externalAppCardActions } from './externalAppCardActions';
9
- export { externalAppCardActionsForCEA } from './externalAppCardActionsForCEA';
10
- export { externalAppCommands } from './externalAppCommands';
11
- export { files } from './files';
12
- export { meetingRoom } from './meetingRoom';
13
- export { messageChannels } from './messageChannels';
14
- export { notifications } from './notifications';
15
- export { otherAppStateChange } from './otherAppStateChange';
16
- export { remoteCamera } from './remoteCamera';
17
- export { appEntity } from './appEntity';
18
- export { teams } from './teams';
19
- export { videoEffectsEx } from './videoEffectsEx';
20
- export { hostEntity } from './hostEntity';
4
+ export * as conversations from './conversations';
5
+ export { OpenConversationRequest } from './conversations';
6
+ export * as copilot from './copilot/copilot';
7
+ export * as externalAppAuthentication from './externalAppAuthentication';
8
+ export * as externalAppAuthenticationForCEA from './externalAppAuthenticationForCEA';
9
+ export * as externalAppCardActions from './externalAppCardActions';
10
+ export * as externalAppCardActionsForCEA from './externalAppCardActionsForCEA';
11
+ export * as externalAppCommands from './externalAppCommands';
12
+ export * as files from './files';
13
+ export * as meetingRoom from './meetingRoom';
14
+ export * as messageChannels from './messageChannels/messageChannels';
15
+ export * as notifications from './notifications';
16
+ export * as otherAppStateChange from './otherAppStateChange';
17
+ export * as remoteCamera from './remoteCamera';
18
+ export * as appEntity from './appEntity';
19
+ export * as teams from './teams/teams';
20
+ export * as videoEffectsEx from './videoEffectsEx';
21
+ export * as hostEntity from './hostEntity/hostEntity';
@@ -1,25 +1,31 @@
1
- export declare namespace logs {
2
- /**
3
- * @hidden
4
- *
5
- * Registers a handler for getting app log
6
- *
7
- * @param handler - The handler to invoke to get the app log
8
- *
9
- * @internal
10
- * Limited to Microsoft-internal use
11
- */
12
- function registerGetLogHandler(handler: () => string): void;
13
- /**
14
- * @hidden
15
- *
16
- * Checks if the logs capability is supported by the host
17
- * @returns boolean to represent whether the logs capability is supported
18
- *
19
- * @throws Error if {@linkcode app.initialize} has not successfully completed
20
- *
21
- * @internal
22
- * Limited to Microsoft-internal use
23
- */
24
- function isSupported(): boolean;
25
- }
1
+ /**
2
+ * @hidden
3
+ * Module to interact with the logging part of the SDK.
4
+ * This object is used to send the app logs on demand to the host client
5
+ *
6
+ * @internal
7
+ * Limited to Microsoft-internal use
8
+ */
9
+ /**
10
+ * @hidden
11
+ *
12
+ * Registers a handler for getting app log
13
+ *
14
+ * @param handler - The handler to invoke to get the app log
15
+ *
16
+ * @internal
17
+ * Limited to Microsoft-internal use
18
+ */
19
+ export declare function registerGetLogHandler(handler: () => string): void;
20
+ /**
21
+ * @hidden
22
+ *
23
+ * Checks if the logs capability is supported by the host
24
+ * @returns boolean to represent whether the logs capability is supported
25
+ *
26
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
27
+ *
28
+ * @internal
29
+ * Limited to Microsoft-internal use
30
+ */
31
+ export declare function isSupported(): boolean;
@@ -1,203 +1,208 @@
1
- export declare namespace meetingRoom {
1
+ /**
2
+ * @hidden
3
+ *
4
+ * @internal
5
+ * Limited to Microsoft-internal use
6
+ * @module
7
+ */
8
+ /**
9
+ * @hidden
10
+ *
11
+ * Data structure to represent a meeting room.
12
+ *
13
+ * @internal
14
+ * Limited to Microsoft-internal use
15
+ */
16
+ export interface MeetingRoomInfo {
2
17
  /**
3
18
  * @hidden
4
- *
5
- * Data structure to represent a meeting room.
19
+ * Endpoint id of the meeting room.
6
20
  *
7
21
  * @internal
8
22
  * Limited to Microsoft-internal use
9
23
  */
10
- export interface MeetingRoomInfo {
11
- /**
12
- * @hidden
13
- * Endpoint id of the meeting room.
14
- *
15
- * @internal
16
- * Limited to Microsoft-internal use
17
- */
18
- endpointId: string;
19
- /**
20
- * @hidden
21
- * Device name of the meeting room.
22
- *
23
- * @internal
24
- * Limited to Microsoft-internal use
25
- */
26
- deviceName: string;
27
- /**
28
- * @hidden
29
- * Client type of the meeting room.
30
- *
31
- * @internal
32
- * Limited to Microsoft-internal use
33
- */
34
- clientType: string;
35
- /**
36
- * @hidden
37
- * Client version of the meeting room.
38
- *
39
- * @internal
40
- * Limited to Microsoft-internal use
41
- */
42
- clientVersion: string;
43
- }
24
+ endpointId: string;
44
25
  /**
45
26
  * @hidden
46
- * Type of Media control capabilities of a meeting room.
27
+ * Device name of the meeting room.
28
+ *
29
+ * @internal
30
+ * Limited to Microsoft-internal use
47
31
  */
48
- type MediaControls = 'toggleMute' | 'toggleCamera' | 'toggleCaptions' | 'volume';
32
+ deviceName: string;
49
33
  /**
50
34
  * @hidden
51
- * Types of Stage Layout control capabilities of a meeting room.
35
+ * Client type of the meeting room.
36
+ *
37
+ * @internal
38
+ * Limited to Microsoft-internal use
52
39
  */
53
- type StageLayoutControls = 'showVideoGallery' | 'showContent' | 'showVideoGalleryAndContent' | 'showLargeGallery' | 'showTogether';
40
+ clientType: string;
54
41
  /**
55
42
  * @hidden
56
- * Types of Meeting Control capabilities of a meeting room.
43
+ * Client version of the meeting room.
44
+ *
45
+ * @internal
46
+ * Limited to Microsoft-internal use
57
47
  */
58
- type MeetingControls = 'leaveMeeting';
48
+ clientVersion: string;
49
+ }
50
+ /**
51
+ * @hidden
52
+ * Type of Media control capabilities of a meeting room.
53
+ */
54
+ type MediaControls = 'toggleMute' | 'toggleCamera' | 'toggleCaptions' | 'volume';
55
+ /**
56
+ * @hidden
57
+ * Types of Stage Layout control capabilities of a meeting room.
58
+ */
59
+ type StageLayoutControls = 'showVideoGallery' | 'showContent' | 'showVideoGalleryAndContent' | 'showLargeGallery' | 'showTogether';
60
+ /**
61
+ * @hidden
62
+ * Types of Meeting Control capabilities of a meeting room.
63
+ */
64
+ type MeetingControls = 'leaveMeeting';
65
+ /**
66
+ * @hidden
67
+ * Types of Stage Layout State of a meeting room.
68
+ */
69
+ type StageLayoutStates = 'Gallery' | 'Content + gallery' | 'Content' | 'Large gallery' | 'Together mode';
70
+ /**
71
+ * @hidden
72
+ * Data structure to represent capabilities of a meeting room.
73
+ *
74
+ * @internal
75
+ * Limited to Microsoft-internal use
76
+ */
77
+ export interface MeetingRoomCapability {
59
78
  /**
60
79
  * @hidden
61
- * Types of Stage Layout State of a meeting room.
80
+ * Media control capabilities, value can be "toggleMute", "toggleCamera", "toggleCaptions", "volume".
81
+ *
82
+ * @internal
83
+ * Limited to Microsoft-internal use
62
84
  */
63
- type StageLayoutStates = 'Gallery' | 'Content + gallery' | 'Content' | 'Large gallery' | 'Together mode';
85
+ mediaControls: MediaControls[];
64
86
  /**
65
87
  * @hidden
66
- * Data structure to represent capabilities of a meeting room.
88
+ * Main stage layout control capabilities, value can be "showVideoGallery", "showContent", "showVideoGalleryAndContent", "showLargeGallery", "showTogether".
67
89
  *
68
90
  * @internal
69
91
  * Limited to Microsoft-internal use
70
92
  */
71
- export interface MeetingRoomCapability {
72
- /**
73
- * @hidden
74
- * Media control capabilities, value can be "toggleMute", "toggleCamera", "toggleCaptions", "volume".
75
- *
76
- * @internal
77
- * Limited to Microsoft-internal use
78
- */
79
- mediaControls: MediaControls[];
80
- /**
81
- * @hidden
82
- * Main stage layout control capabilities, value can be "showVideoGallery", "showContent", "showVideoGalleryAndContent", "showLargeGallery", "showTogether".
83
- *
84
- * @internal
85
- * Limited to Microsoft-internal use
86
- */
87
- stageLayoutControls: StageLayoutControls[];
88
- /**
89
- * @hidden
90
- * Meeting control capabilities, value can be "leaveMeeting".
91
- *
92
- * @internal
93
- * Limited to Microsoft-internal use
94
- */
95
- meetingControls: MeetingControls[];
96
- }
93
+ stageLayoutControls: StageLayoutControls[];
97
94
  /**
98
95
  * @hidden
99
- * Data structure to represent states of a meeting room.
96
+ * Meeting control capabilities, value can be "leaveMeeting".
100
97
  *
101
98
  * @internal
102
99
  * Limited to Microsoft-internal use
103
100
  */
104
- export interface MeetingRoomState {
105
- /**
106
- * @hidden
107
- * Current mute state, true: mute, false: unmute.
108
- *
109
- * @internal
110
- * Limited to Microsoft-internal use
111
- */
112
- toggleMute: boolean;
113
- /**
114
- * @hidden
115
- * Current camera state, true: camera on, false: camera off.
116
- *
117
- * @internal
118
- * Limited to Microsoft-internal use
119
- */
120
- toggleCamera: boolean;
121
- /**
122
- * @hidden
123
- * Current captions state, true: captions on, false: captions off.
124
- *
125
- * @internal
126
- * Limited to Microsoft-internal use
127
- */
128
- toggleCaptions: boolean;
129
- /**
130
- * @hidden
131
- * Current main stage layout state, value can be one of "Gallery", "Content + gallery", "Content", "Large gallery" and "Together mode".
132
- *
133
- * @internal
134
- * Limited to Microsoft-internal use
135
- */
136
- stageLayout: StageLayoutStates;
137
- /**
138
- * @hidden
139
- * Current leaveMeeting state, true: leave, false: no-op.
140
- *
141
- * @internal
142
- * Limited to Microsoft-internal use
143
- */
144
- leaveMeeting: boolean;
145
- }
101
+ meetingControls: MeetingControls[];
102
+ }
103
+ /**
104
+ * @hidden
105
+ * Data structure to represent states of a meeting room.
106
+ *
107
+ * @internal
108
+ * Limited to Microsoft-internal use
109
+ */
110
+ export interface MeetingRoomState {
146
111
  /**
147
112
  * @hidden
148
- * Fetch the meeting room info that paired with current client.
149
- *
150
- * @returns Promise resolved with meeting room info or rejected with SdkError value
113
+ * Current mute state, true: mute, false: unmute.
151
114
  *
152
115
  * @internal
153
116
  * Limited to Microsoft-internal use
154
117
  */
155
- export function getPairedMeetingRoomInfo(): Promise<MeetingRoomInfo>;
118
+ toggleMute: boolean;
156
119
  /**
157
120
  * @hidden
158
- * Send a command to paired meeting room.
159
- *
160
- * @param commandName The command name.
161
- * @returns Promise resolved upon completion or rejected with SdkError value
121
+ * Current camera state, true: camera on, false: camera off.
162
122
  *
163
123
  * @internal
164
124
  * Limited to Microsoft-internal use
165
125
  */
166
- export function sendCommandToPairedMeetingRoom(commandName: string): Promise<void>;
126
+ toggleCamera: boolean;
167
127
  /**
168
128
  * @hidden
169
- * Registers a handler for meeting room capabilities update.
170
- * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
171
- *
172
- * @param handler The handler to invoke when the capabilities of meeting room update.
129
+ * Current captions state, true: captions on, false: captions off.
173
130
  *
174
131
  * @internal
175
132
  * Limited to Microsoft-internal use
176
133
  */
177
- export function registerMeetingRoomCapabilitiesUpdateHandler(handler: (capabilities: MeetingRoomCapability) => void): void;
134
+ toggleCaptions: boolean;
178
135
  /**
179
136
  * @hidden
180
- * Hide from docs
181
- * Registers a handler for meeting room states update.
182
- * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
183
- *
184
- * @param handler The handler to invoke when the states of meeting room update.
137
+ * Current main stage layout state, value can be one of "Gallery", "Content + gallery", "Content", "Large gallery" and "Together mode".
185
138
  *
186
139
  * @internal
187
140
  * Limited to Microsoft-internal use
188
141
  */
189
- export function registerMeetingRoomStatesUpdateHandler(handler: (states: MeetingRoomState) => void): void;
142
+ stageLayout: StageLayoutStates;
190
143
  /**
191
144
  * @hidden
192
- *
193
- * Checks if the meetingRoom capability is supported by the host
194
- * @returns boolean to represent whether the meetingRoom capability is supported
195
- *
196
- * @throws Error if {@linkcode app.initialize} has not successfully completed
145
+ * Current leaveMeeting state, true: leave, false: no-op.
197
146
  *
198
147
  * @internal
199
148
  * Limited to Microsoft-internal use
200
149
  */
201
- export function isSupported(): boolean;
202
- export {};
150
+ leaveMeeting: boolean;
203
151
  }
152
+ /**
153
+ * @hidden
154
+ * Fetch the meeting room info that paired with current client.
155
+ *
156
+ * @returns Promise resolved with meeting room info or rejected with SdkError value
157
+ *
158
+ * @internal
159
+ * Limited to Microsoft-internal use
160
+ */
161
+ export declare function getPairedMeetingRoomInfo(): Promise<MeetingRoomInfo>;
162
+ /**
163
+ * @hidden
164
+ * Send a command to paired meeting room.
165
+ *
166
+ * @param commandName The command name.
167
+ * @returns Promise resolved upon completion or rejected with SdkError value
168
+ *
169
+ * @internal
170
+ * Limited to Microsoft-internal use
171
+ */
172
+ export declare function sendCommandToPairedMeetingRoom(commandName: string): Promise<void>;
173
+ /**
174
+ * @hidden
175
+ * Registers a handler for meeting room capabilities update.
176
+ * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
177
+ *
178
+ * @param handler The handler to invoke when the capabilities of meeting room update.
179
+ *
180
+ * @internal
181
+ * Limited to Microsoft-internal use
182
+ */
183
+ export declare function registerMeetingRoomCapabilitiesUpdateHandler(handler: (capabilities: MeetingRoomCapability) => void): void;
184
+ /**
185
+ * @hidden
186
+ * Hide from docs
187
+ * Registers a handler for meeting room states update.
188
+ * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
189
+ *
190
+ * @param handler The handler to invoke when the states of meeting room update.
191
+ *
192
+ * @internal
193
+ * Limited to Microsoft-internal use
194
+ */
195
+ export declare function registerMeetingRoomStatesUpdateHandler(handler: (states: MeetingRoomState) => void): void;
196
+ /**
197
+ * @hidden
198
+ *
199
+ * Checks if the meetingRoom capability is supported by the host
200
+ * @returns boolean to represent whether the meetingRoom capability is supported
201
+ *
202
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
203
+ *
204
+ * @internal
205
+ * Limited to Microsoft-internal use
206
+ */
207
+ export declare function isSupported(): boolean;
208
+ export {};
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @hidden
3
+ * @beta
4
+ *
5
+ * Fetches a MessagePort to allow access to the host's data layer worker.
6
+ * The port is cached once received, so subsequent calls return the same port.
7
+ * @returns MessagePort.
8
+ *
9
+ * @throws Error if {@linkcode app.initialize} has not successfully completed,
10
+ * if the host does not support the feature, or if the port request is rejected.
11
+ *
12
+ * @internal
13
+ * Limited to Microsoft-internal use
14
+ */
15
+ export declare function getDataLayerPort(): Promise<MessagePort>;
16
+ /**
17
+ * @hidden
18
+ *
19
+ * @beta
20
+ *
21
+ * Checks if the messageChannels.dataLayer capability is supported by the host
22
+ * @returns boolean to represent whether the messageChannels.dataLayer capability is supported
23
+ *
24
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
25
+ *
26
+ * @internal
27
+ * Limited to Microsoft-internal use
28
+ */
29
+ export declare function isSupported(): boolean;
30
+ /**
31
+ * @hidden
32
+ * Undocumented function used to clear state between unit tests
33
+ *
34
+ * @beta
35
+ *
36
+ * @internal
37
+ * Limited to Microsoft-internal use
38
+ */
39
+ export declare function _clearDataLayerPort(): void;