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

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