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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -1,127 +1,105 @@
1
1
  /**
2
- * Namespace for profile related APIs.
2
+ * Module for profile related APIs.
3
3
  *
4
4
  * @beta
5
+ * @module
5
6
  */
6
- export declare namespace profile {
7
+ /**
8
+ * Opens a profile card at a specified position to show profile information about a persona.
9
+ * @param showProfileRequest The parameters to position the card and identify the target user.
10
+ * @returns Promise that will be fulfilled when the operation has completed
11
+ *
12
+ * @beta
13
+ */
14
+ export declare function showProfile(showProfileRequest: ShowProfileRequest): Promise<void>;
15
+ /**
16
+ * The type of modalities that are supported when showing a profile.
17
+ * Can be provided as an optional hint with the request and will be
18
+ * respected if the hosting M365 application supports it.
19
+ *
20
+ * @beta
21
+ */
22
+ export type Modality = 'Card' | 'Expanded';
23
+ /**
24
+ * The type of the profile trigger.
25
+ * - MouseHover: The user hovered a target.
26
+ * - Press: The target was pressed with either a mouse click or keyboard key press.
27
+ * - AppRequest: The show profile request is happening programmatically, without direct user interaction.
28
+ *
29
+ * @beta
30
+ */
31
+ export type TriggerType = 'MouseHover' | 'Press' | 'AppRequest';
32
+ /**
33
+ * The set of identifiers that are supported for resolving the persona.
34
+ *
35
+ * At least one is required, and if multiple are provided then only the highest
36
+ * priority one will be used (AadObjectId > Upn > Smtp). AAD is now known as "Microsoft Entra ID"
37
+ *
38
+ * @beta
39
+ */
40
+ export type PersonaIdentifiers = {
7
41
  /**
8
- * Opens a profile card at a specified position to show profile information about a persona.
9
- * @param showProfileRequest The parameters to position the card and identify the target user.
10
- * @returns Promise that will be fulfilled when the operation has completed
42
+ * The object id in Microsoft Entra.
11
43
  *
12
- * @beta
44
+ * This id is guaranteed to be unique for an object within a tenant,
45
+ * and so if provided will lead to a more performant lookup. It can
46
+ * be resolved via MS Graph (see https://learn.microsoft.com/graph/api/resources/users
47
+ * for examples).
13
48
  */
14
- function showProfile(showProfileRequest: ShowProfileRequest): Promise<void>;
49
+ readonly AadObjectId?: string;
15
50
  /**
16
- * The type of modalities that are supported when showing a profile.
17
- * Can be provided as an optional hint with the request and will be
18
- * respected if the hosting M365 application supports it.
19
- *
20
- * @beta
51
+ * The primary SMTP address.
21
52
  */
22
- type Modality = 'Card' | 'Expanded';
53
+ readonly Smtp?: string;
23
54
  /**
24
- * The type of the profile trigger.
25
- * - MouseHover: The user hovered a target.
26
- * - Press: The target was pressed with either a mouse click or keyboard key press.
27
- * - AppRequest: The show profile request is happening programmatically, without direct user interaction.
28
- *
29
- * @beta
55
+ * The user principle name.
30
56
  */
31
- type TriggerType = 'MouseHover' | 'Press' | 'AppRequest';
57
+ readonly Upn?: string;
58
+ };
59
+ /**
60
+ * The persona to show the profile for.
61
+ *
62
+ * @beta
63
+ */
64
+ export interface Persona {
32
65
  /**
33
66
  * The set of identifiers that are supported for resolving the persona.
34
- *
35
- * At least one is required, and if multiple are provided then only the highest
36
- * priority one will be used (AadObjectId > Upn > Smtp). AAD is now known as "Microsoft Entra ID"
37
- *
38
- * @beta
39
67
  */
40
- type PersonaIdentifiers = {
41
- /**
42
- * The object id in Microsoft Entra.
43
- *
44
- * This id is guaranteed to be unique for an object within a tenant,
45
- * and so if provided will lead to a more performant lookup. It can
46
- * be resolved via MS Graph (see https://learn.microsoft.com/graph/api/resources/users
47
- * for examples).
48
- */
49
- readonly AadObjectId?: string;
50
- /**
51
- * The primary SMTP address.
52
- */
53
- readonly Smtp?: string;
54
- /**
55
- * The user principle name.
56
- */
57
- readonly Upn?: string;
58
- };
68
+ identifiers: PersonaIdentifiers;
59
69
  /**
60
- * The persona to show the profile for.
61
- *
62
- * @beta
70
+ * Optional display name override. If not specified the user's display name will be resolved normally.
63
71
  */
64
- interface Persona {
65
- /**
66
- * The set of identifiers that are supported for resolving the persona.
67
- */
68
- identifiers: PersonaIdentifiers;
69
- /**
70
- * Optional display name override. If not specified the user's display name will be resolved normally.
71
- */
72
- displayName?: string;
73
- }
72
+ displayName?: string;
73
+ }
74
+ /**
75
+ * Input parameters provided to the showProfile API.
76
+ *
77
+ * @beta
78
+ */
79
+ export interface ShowProfileRequest {
74
80
  /**
75
- * Input parameters provided to the showProfile API.
76
- *
77
- * @beta
81
+ * An optional hint to the hosting M365 application about which modality of the profile you want to show.
78
82
  */
79
- interface ShowProfileRequest {
80
- /**
81
- * An optional hint to the hosting M365 application about which modality of the profile you want to show.
82
- */
83
- modality?: Modality;
84
- /**
85
- * The information about the persona to show the profile for.
86
- */
87
- persona: Persona;
88
- /**
89
- * The bounding rectangle of the target.
90
- */
91
- targetElementBoundingRect: DOMRect;
92
- /**
93
- * Specifies which user interaction was used to trigger the API call.
94
- */
95
- triggerType: TriggerType;
96
- }
83
+ modality?: Modality;
97
84
  /**
98
- * Checks if the profile capability is supported by the host
99
- * @returns boolean to represent whether the profile capability is supported
100
- *
101
- * @throws Error if {@linkcode app.initialize} has not successfully completed
102
- *
103
- * @beta
85
+ * The information about the persona to show the profile for.
86
+ */
87
+ persona: Persona;
88
+ /**
89
+ * The bounding rectangle of the target.
104
90
  */
105
- function isSupported(): boolean;
91
+ targetElementBoundingRect: DOMRect;
92
+ /**
93
+ * Specifies which user interaction was used to trigger the API call.
94
+ */
95
+ triggerType: TriggerType;
106
96
  }
107
97
  /**
108
- * Internal representation of a DOMRect suitable for sending via postMessage.
109
- */
110
- export type Rectangle = {
111
- x: number;
112
- y: number;
113
- width: number;
114
- height: number;
115
- };
116
- /**
98
+ * Checks if the profile capability is supported by the host
99
+ * @returns boolean to represent whether the profile capability is supported
100
+ *
101
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
102
+ *
117
103
  * @beta
118
- * @hidden
119
- * An internal representation of the showProfile parameters suitable for sending via postMessage.
120
- * The hub expects to receive an object of this type.
121
104
  */
122
- export interface ShowProfileRequestInternal {
123
- modality?: profile.Modality;
124
- persona: profile.Persona;
125
- targetRectangle: Rectangle;
126
- triggerType: profile.TriggerType;
127
- }
105
+ export declare function isSupported(): boolean;
@@ -17,6 +17,9 @@ interface IRuntimeV4 extends IBaseRuntime {
17
17
  readonly isNAAChannelRecommended?: boolean;
18
18
  readonly isLegacyTeams?: boolean;
19
19
  readonly supports: {
20
+ readonly app?: {
21
+ readonly notifySuccessResponse?: {};
22
+ };
20
23
  readonly appEntity?: {};
21
24
  readonly appInstallDialog?: {};
22
25
  readonly barCode?: {};
@@ -5,87 +5,86 @@
5
5
  *
6
6
  * This functionality is in Beta.
7
7
  * @beta
8
+ * @module
8
9
  */
9
- export declare namespace search {
10
- /**
11
- * This interface contains information pertaining to the contents of the host M365 application's search box
12
- *
13
- * @beta
14
- */
15
- interface SearchQuery {
16
- /** The current search term in the host search experience */
17
- searchTerm: string;
18
- /** Timestamp sequence value to ensure messages are processed in correct order / combine them. */
19
- timestamp: number;
20
- }
21
- /**
22
- * This type will store the SearchQuery and allow other logic to be made inside the handler.
23
- *
24
- * @beta
25
- */
26
- type SearchQueryHandler = (query: SearchQuery) => void;
27
- /**
28
- * Allows the caller to register for various events fired by the host search experience.
29
- * Calling this function indicates that your application intends to plug into the host's search box and handle search events,
30
- * when the user is actively using your page/tab.
31
- *
32
- * The host may visually update its search box, e.g. with the name or icon of your application.
33
- *
34
- * Your application should *not* re-render inside of these callbacks, there may be a large number
35
- * of onChangeHandler calls if the user is typing rapidly in the search box.
36
- *
37
- * @param onClosedHandler - This handler will be called when the user exits or cancels their search.
38
- * Should be used to return your application to its most recent, non-search state. The value of {@link SearchQuery.searchTerm}
39
- * will be whatever the last query was before ending search.
40
- *
41
- * @param onExecuteHandler - The handler will be called when the user executes their
42
- * search (by pressing Enter for example). Should be used to display the full list of search results.
43
- * The value of {@link SearchQuery.searchTerm} is the complete query the user entered in the search box.
44
- *
45
- * @param onChangeHandler - This optional handler will be called when the user first starts using the
46
- * host's search box and as the user types their query. Can be used to put your application into a
47
- * word-wheeling state or to display suggestions as the user is typing.
48
- *
49
- * This handler will be called with an empty {@link SearchQuery.searchTerm} when search is beginning, and subsequently,
50
- * with the current contents of the search box.
51
- * @example
52
- * ``` ts
53
- * search.registerHandlers(
54
- query => {
55
- console.log('Update your application to handle the search experience being closed. Last query: ${query.searchTerm}');
56
- },
57
- query => {
58
- console.log(`Update your application to handle an executed search result: ${query.searchTerm}`);
59
- },
60
- query => {
61
- console.log(`Update your application with the changed search query: ${query.searchTerm}`);
62
- },
63
- );
64
- * ```
65
- *
66
- * @beta
67
- */
68
- function registerHandlers(onClosedHandler: SearchQueryHandler, onExecuteHandler: SearchQueryHandler, onChangeHandler?: SearchQueryHandler): void;
69
- /**
70
- * Allows the caller to unregister for all events fired by the host search experience. Calling
71
- * this function will cause your app to stop appearing in the set of search scopes in the hosts
72
- *
73
- * @beta
74
- */
75
- function unregisterHandlers(): void;
76
- /**
77
- * Checks if search capability is supported by the host
78
- * @returns boolean to represent whether the search capability is supported
79
- *
80
- * @throws Error if {@link app.initialize} has not successfully completed
81
- *
82
- * @beta
83
- */
84
- function isSupported(): boolean;
85
- /**
86
- * Clear the host M365 application's search box
87
- *
88
- * @beta
89
- */
90
- function closeSearch(): Promise<void>;
10
+ /**
11
+ * This interface contains information pertaining to the contents of the host M365 application's search box
12
+ *
13
+ * @beta
14
+ */
15
+ export interface SearchQuery {
16
+ /** The current search term in the host search experience */
17
+ searchTerm: string;
18
+ /** Timestamp sequence value to ensure messages are processed in correct order / combine them. */
19
+ timestamp: number;
91
20
  }
21
+ /**
22
+ * This type will store the SearchQuery and allow other logic to be made inside the handler.
23
+ *
24
+ * @beta
25
+ */
26
+ export type SearchQueryHandler = (query: SearchQuery) => void;
27
+ /**
28
+ * Allows the caller to register for various events fired by the host search experience.
29
+ * Calling this function indicates that your application intends to plug into the host's search box and handle search events,
30
+ * when the user is actively using your page/tab.
31
+ *
32
+ * The host may visually update its search box, e.g. with the name or icon of your application.
33
+ *
34
+ * Your application should *not* re-render inside of these callbacks, there may be a large number
35
+ * of onChangeHandler calls if the user is typing rapidly in the search box.
36
+ *
37
+ * @param onClosedHandler - This handler will be called when the user exits or cancels their search.
38
+ * Should be used to return your application to its most recent, non-search state. The value of {@link SearchQuery.searchTerm}
39
+ * will be whatever the last query was before ending search.
40
+ *
41
+ * @param onExecuteHandler - The handler will be called when the user executes their
42
+ * search (by pressing Enter for example). Should be used to display the full list of search results.
43
+ * The value of {@link SearchQuery.searchTerm} is the complete query the user entered in the search box.
44
+ *
45
+ * @param onChangeHandler - This optional handler will be called when the user first starts using the
46
+ * host's search box and as the user types their query. Can be used to put your application into a
47
+ * word-wheeling state or to display suggestions as the user is typing.
48
+ *
49
+ * This handler will be called with an empty {@link SearchQuery.searchTerm} when search is beginning, and subsequently,
50
+ * with the current contents of the search box.
51
+ * @example
52
+ * ``` ts
53
+ * search.registerHandlers(
54
+ query => {
55
+ console.log('Update your application to handle the search experience being closed. Last query: ${query.searchTerm}');
56
+ },
57
+ query => {
58
+ console.log(`Update your application to handle an executed search result: ${query.searchTerm}`);
59
+ },
60
+ query => {
61
+ console.log(`Update your application with the changed search query: ${query.searchTerm}`);
62
+ },
63
+ );
64
+ * ```
65
+ *
66
+ * @beta
67
+ */
68
+ export declare function registerHandlers(onClosedHandler: SearchQueryHandler, onExecuteHandler: SearchQueryHandler, onChangeHandler?: SearchQueryHandler): void;
69
+ /**
70
+ * Allows the caller to unregister for all events fired by the host search experience. Calling
71
+ * this function will cause your app to stop appearing in the set of search scopes in the hosts
72
+ *
73
+ * @beta
74
+ */
75
+ export declare function unregisterHandlers(): void;
76
+ /**
77
+ * Checks if search capability is supported by the host
78
+ * @returns boolean to represent whether the search capability is supported
79
+ *
80
+ * @throws Error if {@link app.initialize} has not successfully completed
81
+ *
82
+ * @beta
83
+ */
84
+ export declare function isSupported(): boolean;
85
+ /**
86
+ * Clear the host M365 application's search box
87
+ *
88
+ * @beta
89
+ */
90
+ export declare function closeSearch(): Promise<void>;
@@ -1,32 +1,31 @@
1
1
  /**
2
- * Namespace to power up the in-app browser experiences in the host app.
2
+ * Module to power up the in-app browser experiences in the host app.
3
3
  * For e.g., opening a URL in the host app inside a browser
4
4
  *
5
5
  * @beta
6
+ * @module
6
7
  */
7
- export declare namespace secondaryBrowser {
8
- /**
9
- * Open a URL in the secondary browser.
10
- *
11
- * On mobile, this is the in-app browser.
12
- *
13
- * On web and desktop, please use the `window.open()` method or other native external browser methods.
14
- *
15
- * @param url Url to open in the browser
16
- * @returns Promise that successfully resolves if the URL opens in the secondaryBrowser
17
- * or throws an error {@link SdkError} incase of failure before starting navigation
18
- *
19
- * @remarks Any error that happens after navigation begins is handled by the platform browser component and not returned from this function.
20
- * @beta
21
- */
22
- function open(url: URL): Promise<void>;
23
- /**
24
- * Checks if secondaryBrowser capability is supported by the host
25
- * @returns boolean to represent whether secondaryBrowser is supported
26
- *
27
- * @throws Error if {@linkcode app.initialize} has not successfully completed
28
- *
29
- * @beta
30
- */
31
- function isSupported(): boolean;
32
- }
8
+ /**
9
+ * Open a URL in the secondary browser.
10
+ *
11
+ * On mobile, this is the in-app browser.
12
+ *
13
+ * On web and desktop, please use the `window.open()` method or other native external browser methods.
14
+ *
15
+ * @param url Url to open in the browser
16
+ * @returns Promise that successfully resolves if the URL opens in the secondaryBrowser
17
+ * or throws an error {@link SdkError} incase of failure before starting navigation
18
+ *
19
+ * @remarks Any error that happens after navigation begins is handled by the platform browser component and not returned from this function.
20
+ * @beta
21
+ */
22
+ export declare function open(url: URL): Promise<void>;
23
+ /**
24
+ * Checks if secondaryBrowser capability is supported by the host
25
+ * @returns boolean to represent whether secondaryBrowser is supported
26
+ *
27
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
28
+ *
29
+ * @beta
30
+ */
31
+ export declare function isSupported(): boolean;
@@ -1,11 +1,12 @@
1
- import { pages } from './pages';
2
1
  /**
3
2
  * @deprecated
4
- * As of TeamsJS v2.0.0, please use {@link pages.config} namespace instead.
3
+ * As of TeamsJS v2.0.0, please use {@link pages.config} module instead.
5
4
  *
6
- * Namespace to interact with the settings-specific part of the SDK.
5
+ * Module to interact with the settings-specific part of the SDK.
7
6
  * This object is usable only on the settings frame.
7
+ * @module
8
8
  */
9
+ import * as pages from './pages/pages';
9
10
  /** Register on remove handler function type */
10
11
  export type registerOnRemoveHandlerFunctionType = (evt: RemoveEvent) => void;
11
12
  /** Register on save handler function type */
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Module to get the list of content shared in a Teams meeting
3
+ *
4
+ * @beta
5
+ * @module
6
+ */
7
+ /**
8
+ * Represents the data returned when calling {@link sharing.history.getContent}
9
+ *
10
+ * @beta
11
+ */
12
+ export interface IContentResponse {
13
+ /** Id of the app where the content was shared from */
14
+ appId: string;
15
+ /** Title of the shared content */
16
+ title: string;
17
+ /** Reference of the shared content */
18
+ contentReference: string;
19
+ /** Id of the thread where the content was shared. */
20
+ threadId: string;
21
+ /** Id of the user who shared the content. */
22
+ author: string;
23
+ /** Type of the shared content.
24
+ * For sharing to Teams stage scenarios, this value would be `ShareToStage`
25
+ * Other `contentType` values will be added and documented here over time
26
+ */
27
+ contentType: string;
28
+ }
29
+ /**
30
+ * Get the list of content shared in a Teams meeting
31
+ *
32
+ * @throws Error if call capability is not supported
33
+ * @throws Error if returned content details are invalid
34
+ * @returns Promise that will resolve with the {@link IContentResponse} objects array
35
+ *
36
+ * @beta
37
+ */
38
+ export declare function getContent(): Promise<IContentResponse[]>;
39
+ /**
40
+ * Checks if sharing.history capability is supported by the host
41
+ * @returns boolean to represent whether the sharing.history capability is supported
42
+ *
43
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
44
+ *
45
+ * @beta
46
+ */
47
+ export declare function isSupported(): boolean;
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Module to open a share dialog for web content.
3
+ * For more info, see [Share to Teams from personal app or tab](https://learn.microsoft.com/microsoftteams/platform/concepts/build-and-test/share-to-teams-from-personal-app-or-tab)
4
+ * @module
5
+ */
6
+ import { SdkError } from '../interfaces';
7
+ import * as history from './history';
8
+ /** shareWebContent callback function type */
9
+ export type shareWebContentCallbackFunctionType = (err?: SdkError) => void;
10
+ /** Type of message that can be sent or received by the sharing APIs */
11
+ export declare const SharingAPIMessages: {
12
+ /**
13
+ * Share web content message.
14
+ * @internal
15
+ */
16
+ shareWebContent: string;
17
+ };
18
+ type ContentType = 'URL';
19
+ /** Represents parameters for base shared content. */
20
+ interface IBaseSharedContent {
21
+ /** Shared content type */
22
+ type: ContentType;
23
+ }
24
+ /** IShareRequestContentType defines share request type. */
25
+ export type IShareRequestContentType = IURLContent;
26
+ /** Represents IShareRequest parameters interface.
27
+ * @typeparam T - The identity type
28
+ */
29
+ export interface IShareRequest<T> {
30
+ /** Content of the share request. */
31
+ content: T[];
32
+ }
33
+ /** Represents IURLContent parameters. */
34
+ export interface IURLContent extends IBaseSharedContent {
35
+ /** Type */
36
+ type: 'URL';
37
+ /**
38
+ * Required URL
39
+ */
40
+ url: string;
41
+ /**
42
+ * Default initial message text
43
+ */
44
+ message?: string;
45
+ /**
46
+ * Show URL preview, defaults to true
47
+ */
48
+ preview?: boolean;
49
+ }
50
+ /**
51
+ * Feature is under development
52
+ * Opens a share dialog for web content
53
+ *
54
+ * @param shareWebContentRequest - web content info
55
+ * @returns Promise that will be fulfilled when the operation has completed
56
+ */
57
+ export declare function shareWebContent(shareWebContentRequest: IShareRequest<IShareRequestContentType>): Promise<void>;
58
+ /**
59
+ * @deprecated
60
+ * As of TeamsJS v2.0.0, please use {@link sharing.shareWebContent sharing.shareWebContent(shareWebContentRequest: IShareRequest\<IShareRequestContentType\>): Promise\<void\>} instead.
61
+ *
62
+ * Feature is under development
63
+ * Opens a share dialog for web content
64
+ *
65
+ * @param shareWebContentRequest - web content info
66
+ * @param callback - optional callback
67
+ */
68
+ export declare function shareWebContent(shareWebContentRequest: IShareRequest<IShareRequestContentType>, callback: shareWebContentCallbackFunctionType): void;
69
+ /**
70
+ * Checks if the sharing capability is supported by the host
71
+ * @returns boolean to represent whether the sharing capability is supported
72
+ *
73
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
74
+ */
75
+ export declare function isSupported(): boolean;
76
+ export { history };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Module for actions that can be taken by the stage view itself.
3
+ *
4
+ * @beta
5
+ * @module
6
+ */
7
+ /**
8
+ * Closes the current stage view. This function will be a no-op if called from outside of a stage view.
9
+ * @returns Promise that resolves or rejects with an error once the stage view is closed.
10
+ *
11
+ * @beta
12
+ * @throws Error if stageView.self.close is not supported in the current context or if `app.initialize()` has not resolved successfully.
13
+ */
14
+ export declare function close(): Promise<void>;
15
+ /**
16
+ * Checks if stageView.self capability is supported by the host
17
+ * @beta
18
+ * @returns boolean to represent whether the stageView.self capability is supported
19
+ *
20
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
21
+ *
22
+ */
23
+ export declare function isSupported(): boolean;