@jevelin/bridge 2.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/LICENSE +12 -0
  2. package/README.md +78 -0
  3. package/dist/esm/_virtual/_polyfill-node.buffer.js +1 -0
  4. package/dist/esm/_virtual/_polyfill-node.global.js +1 -0
  5. package/dist/esm/_virtual/browser.js +1 -0
  6. package/dist/esm/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js +1 -0
  7. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js +1 -0
  8. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js +1 -0
  9. package/dist/esm/node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js +1 -0
  10. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/native.js +1 -0
  11. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  12. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/rng.js +1 -0
  13. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
  14. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/v4.js +1 -0
  15. package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/validate.js +1 -0
  16. package/dist/esm/packages/teams-js/dts/index.d.ts +2 -0
  17. package/dist/esm/packages/teams-js/dts/internal/VideoFrameTypes.d.ts +78 -0
  18. package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +19 -0
  19. package/dist/esm/packages/teams-js/dts/internal/childCommunication.d.ts +38 -0
  20. package/dist/esm/packages/teams-js/dts/internal/communication.d.ts +151 -0
  21. package/dist/esm/packages/teams-js/dts/internal/communicationUtils.d.ts +20 -0
  22. package/dist/esm/packages/teams-js/dts/internal/constants.d.ts +146 -0
  23. package/dist/esm/packages/teams-js/dts/internal/deepLinkConstants.d.ts +26 -0
  24. package/dist/esm/packages/teams-js/dts/internal/deepLinkUtilities.d.ts +4 -0
  25. package/dist/esm/packages/teams-js/dts/internal/dialogHelpers.d.ts +32 -0
  26. package/dist/esm/packages/teams-js/dts/internal/emailAddressValidation.d.ts +1 -0
  27. package/dist/esm/packages/teams-js/dts/internal/globalVars.d.ts +13 -0
  28. package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +101 -0
  29. package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
  30. package/dist/esm/packages/teams-js/dts/internal/idValidation.d.ts +37 -0
  31. package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +58 -0
  32. package/dist/esm/packages/teams-js/dts/internal/internalAPIs.d.ts +61 -0
  33. package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +94 -0
  34. package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +95 -0
  35. package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +80 -0
  36. package/dist/esm/packages/teams-js/dts/internal/nestedAppAuthUtils.d.ts +107 -0
  37. package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +27 -0
  38. package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +33 -0
  39. package/dist/esm/packages/teams-js/dts/internal/responseHandler.d.ts +32 -0
  40. package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +411 -0
  41. package/dist/esm/packages/teams-js/dts/internal/typeCheckUtilities.d.ts +1 -0
  42. package/dist/esm/packages/teams-js/dts/internal/urlPattern.d.ts +50 -0
  43. package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +226 -0
  44. package/dist/esm/packages/teams-js/dts/internal/validOrigins.d.ts +13 -0
  45. package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +31 -0
  46. package/dist/esm/packages/teams-js/dts/internal/videoFrameTick.d.ts +10 -0
  47. package/dist/esm/packages/teams-js/dts/internal/videoPerformanceMonitor.d.ts +54 -0
  48. package/dist/esm/packages/teams-js/dts/internal/videoPerformanceStatistics.d.ts +49 -0
  49. package/dist/esm/packages/teams-js/dts/internal/visualMediaHelpers.d.ts +14 -0
  50. package/dist/esm/packages/teams-js/dts/internal/webStorageHelpers.d.ts +4 -0
  51. package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +89 -0
  52. package/dist/esm/packages/teams-js/dts/private/constants.d.ts +9 -0
  53. package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +152 -0
  54. package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +5 -0
  55. package/dist/esm/packages/teams-js/dts/private/copilot/customTelemetry.d.ts +33 -0
  56. package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +31 -0
  57. package/dist/esm/packages/teams-js/dts/private/copilot/sidePanel.d.ts +75 -0
  58. package/dist/esm/packages/teams-js/dts/private/copilot/sidePanelInterfaces.d.ts +522 -0
  59. package/dist/esm/packages/teams-js/dts/private/copilot/view.d.ts +21 -0
  60. package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +472 -0
  61. package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +93 -0
  62. package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +111 -0
  63. package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +48 -0
  64. package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForDA.d.ts +75 -0
  65. package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +122 -0
  66. package/dist/esm/packages/teams-js/dts/private/externalAppErrorHandling.d.ts +19 -0
  67. package/dist/esm/packages/teams-js/dts/private/files.d.ts +766 -0
  68. package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +50 -0
  69. package/dist/esm/packages/teams-js/dts/private/hostEntity/tab.d.ts +134 -0
  70. package/dist/esm/packages/teams-js/dts/private/index.d.ts +29 -0
  71. package/dist/esm/packages/teams-js/dts/private/interfaces.d.ts +290 -0
  72. package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -0
  73. package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +208 -0
  74. package/dist/esm/packages/teams-js/dts/private/messageChannels/dataLayer.d.ts +39 -0
  75. package/dist/esm/packages/teams-js/dts/private/messageChannels/messageChannels.d.ts +28 -0
  76. package/dist/esm/packages/teams-js/dts/private/messageChannels/telemetry.d.ts +39 -0
  77. package/dist/esm/packages/teams-js/dts/private/nestedAppAuth/nestedAppAuthBridge.d.ts +32 -0
  78. package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +32 -0
  79. package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +94 -0
  80. package/dist/esm/packages/teams-js/dts/private/plugins.d.ts +94 -0
  81. package/dist/esm/packages/teams-js/dts/private/privateAPIs.d.ts +94 -0
  82. package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +303 -0
  83. package/dist/esm/packages/teams-js/dts/private/store.d.ts +128 -0
  84. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/fullTrust.d.ts +31 -0
  85. package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/joinedTeams.d.ts +30 -0
  86. package/dist/esm/packages/teams-js/dts/private/teams/teams.d.ts +63 -0
  87. package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +250 -0
  88. package/dist/esm/packages/teams-js/dts/private/widgetHosting/widgetContext.d.ts +121 -0
  89. package/dist/esm/packages/teams-js/dts/private/widgetHosting/widgetHosting.d.ts +101 -0
  90. package/dist/esm/packages/teams-js/dts/public/adaptiveCards.d.ts +6 -0
  91. package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +648 -0
  92. package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +41 -0
  93. package/dist/esm/packages/teams-js/dts/public/appId.d.ts +28 -0
  94. package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +57 -0
  95. package/dist/esm/packages/teams-js/dts/public/appInstallDialog.d.ts +18 -0
  96. package/dist/esm/packages/teams-js/dts/public/appPerformanceMetrics.d.ts +24 -0
  97. package/dist/esm/packages/teams-js/dts/public/appWindow.d.ts +66 -0
  98. package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +417 -0
  99. package/dist/esm/packages/teams-js/dts/public/badge.d.ts +42 -0
  100. package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +54 -0
  101. package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +41 -0
  102. package/dist/esm/packages/teams-js/dts/public/call.d.ts +54 -0
  103. package/dist/esm/packages/teams-js/dts/public/chat.d.ts +68 -0
  104. package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +35 -0
  105. package/dist/esm/packages/teams-js/dts/public/connectivity.d.ts +52 -0
  106. package/dist/esm/packages/teams-js/dts/public/constants.d.ts +203 -0
  107. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +22 -0
  108. package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +22 -0
  109. package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +49 -0
  110. package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +19 -0
  111. package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +25 -0
  112. package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +41 -0
  113. package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +54 -0
  114. package/dist/esm/packages/teams-js/dts/public/emailAddress.d.ts +12 -0
  115. package/dist/esm/packages/teams-js/dts/public/externalApp.d.ts +130 -0
  116. package/dist/esm/packages/teams-js/dts/public/featureFlags.d.ts +44 -0
  117. package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +68 -0
  118. package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +33 -0
  119. package/dist/esm/packages/teams-js/dts/public/haptics.d.ts +42 -0
  120. package/dist/esm/packages/teams-js/dts/public/index.d.ts +57 -0
  121. package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +1321 -0
  122. package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +220 -0
  123. package/dist/esm/packages/teams-js/dts/public/location.d.ts +85 -0
  124. package/dist/esm/packages/teams-js/dts/public/mail/handoff.d.ts +48 -0
  125. package/dist/esm/packages/teams-js/dts/public/mail/mail.d.ts +97 -0
  126. package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +320 -0
  127. package/dist/esm/packages/teams-js/dts/public/media.d.ts +435 -0
  128. package/dist/esm/packages/teams-js/dts/public/meeting/appShareButton.d.ts +51 -0
  129. package/dist/esm/packages/teams-js/dts/public/meeting/meeting.d.ts +854 -0
  130. package/dist/esm/packages/teams-js/dts/public/menus.d.ts +187 -0
  131. package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +64 -0
  132. package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +46 -0
  133. package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +64 -0
  134. package/dist/esm/packages/teams-js/dts/public/offlineStorage/drafts.d.ts +104 -0
  135. package/dist/esm/packages/teams-js/dts/public/offlineStorage/inbox.d.ts +86 -0
  136. package/dist/esm/packages/teams-js/dts/public/offlineStorage/offlineStorage.d.ts +258 -0
  137. package/dist/esm/packages/teams-js/dts/public/offlineStorage/outbox.d.ts +112 -0
  138. package/dist/esm/packages/teams-js/dts/public/offlineStorage/sent.d.ts +69 -0
  139. package/dist/esm/packages/teams-js/dts/public/offlineStorage/sync.d.ts +183 -0
  140. package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
  141. package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
  142. package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
  143. package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
  144. package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
  145. package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
  146. package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
  147. package/dist/esm/packages/teams-js/dts/public/people.d.ts +73 -0
  148. package/dist/esm/packages/teams-js/dts/public/profile.d.ts +105 -0
  149. package/dist/esm/packages/teams-js/dts/public/publicAPIs.d.ts +218 -0
  150. package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +240 -0
  151. package/dist/esm/packages/teams-js/dts/public/search.d.ts +90 -0
  152. package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +31 -0
  153. package/dist/esm/packages/teams-js/dts/public/security.d.ts +83 -0
  154. package/dist/esm/packages/teams-js/dts/public/serializable.interface.d.ts +17 -0
  155. package/dist/esm/packages/teams-js/dts/public/settings.d.ts +102 -0
  156. package/dist/esm/packages/teams-js/dts/public/sharing/history.d.ts +47 -0
  157. package/dist/esm/packages/teams-js/dts/public/sharing/sharing.d.ts +93 -0
  158. package/dist/esm/packages/teams-js/dts/public/shortcutRelay.d.ts +53 -0
  159. package/dist/esm/packages/teams-js/dts/public/stageView/self.d.ts +23 -0
  160. package/dist/esm/packages/teams-js/dts/public/stageView/stageView.d.ts +81 -0
  161. package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +52 -0
  162. package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +79 -0
  163. package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +118 -0
  164. package/dist/esm/packages/teams-js/dts/public/uuidObject.d.ts +38 -0
  165. package/dist/esm/packages/teams-js/dts/public/validatedSafeString.d.ts +25 -0
  166. package/dist/esm/packages/teams-js/dts/public/version.d.ts +5 -0
  167. package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +212 -0
  168. package/dist/esm/packages/teams-js/dts/public/visualMedia/image.d.ts +64 -0
  169. package/dist/esm/packages/teams-js/dts/public/visualMedia/visualMedia.d.ts +116 -0
  170. package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +25 -0
  171. package/dist/esm/packages/teams-js/src/artifactsForCDN/validDomains.json.js +1 -0
  172. package/dist/esm/packages/teams-js/src/index.js +1 -0
  173. package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -0
  174. package/dist/esm/packages/teams-js/src/internal/childCommunication.js +1 -0
  175. package/dist/esm/packages/teams-js/src/internal/communication.js +1 -0
  176. package/dist/esm/packages/teams-js/src/internal/communicationUtils.js +1 -0
  177. package/dist/esm/packages/teams-js/src/internal/constants.js +1 -0
  178. package/dist/esm/packages/teams-js/src/internal/deepLinkConstants.js +1 -0
  179. package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -0
  180. package/dist/esm/packages/teams-js/src/internal/dialogHelpers.js +1 -0
  181. package/dist/esm/packages/teams-js/src/internal/emailAddressValidation.js +1 -0
  182. package/dist/esm/packages/teams-js/src/internal/globalVars.js +1 -0
  183. package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -0
  184. package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
  185. package/dist/esm/packages/teams-js/src/internal/idValidation.js +1 -0
  186. package/dist/esm/packages/teams-js/src/internal/internalAPIs.js +1 -0
  187. package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -0
  188. package/dist/esm/packages/teams-js/src/internal/mediaUtil.js +1 -0
  189. package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -0
  190. package/dist/esm/packages/teams-js/src/internal/nestedAppAuthUtils.js +1 -0
  191. package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
  192. package/dist/esm/packages/teams-js/src/internal/profileUtil.js +1 -0
  193. package/dist/esm/packages/teams-js/src/internal/responseHandler.js +1 -0
  194. package/dist/esm/packages/teams-js/src/internal/telemetry.js +1 -0
  195. package/dist/esm/packages/teams-js/src/internal/typeCheckUtilities.js +1 -0
  196. package/dist/esm/packages/teams-js/src/internal/urlPattern.js +1 -0
  197. package/dist/esm/packages/teams-js/src/internal/utils.js +1 -0
  198. package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -0
  199. package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -0
  200. package/dist/esm/packages/teams-js/src/internal/videoFrameTick.js +1 -0
  201. package/dist/esm/packages/teams-js/src/internal/videoPerformanceMonitor.js +1 -0
  202. package/dist/esm/packages/teams-js/src/internal/videoPerformanceStatistics.js +1 -0
  203. package/dist/esm/packages/teams-js/src/internal/visualMediaHelpers.js +1 -0
  204. package/dist/esm/packages/teams-js/src/internal/webStorageHelpers.js +1 -0
  205. package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -0
  206. package/dist/esm/packages/teams-js/src/private/constants.js +1 -0
  207. package/dist/esm/packages/teams-js/src/private/conversations.js +1 -0
  208. package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
  209. package/dist/esm/packages/teams-js/src/private/copilot/customTelemetry.js +1 -0
  210. package/dist/esm/packages/teams-js/src/private/copilot/eligibility.js +1 -0
  211. package/dist/esm/packages/teams-js/src/private/copilot/sidePanel.js +1 -0
  212. package/dist/esm/packages/teams-js/src/private/copilot/sidePanelInterfaces.js +1 -0
  213. package/dist/esm/packages/teams-js/src/private/copilot/view.js +1 -0
  214. package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -0
  215. package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -0
  216. package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -0
  217. package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -0
  218. package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForDA.js +1 -0
  219. package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -0
  220. package/dist/esm/packages/teams-js/src/private/externalAppErrorHandling.js +1 -0
  221. package/dist/esm/packages/teams-js/src/private/files.js +1 -0
  222. package/dist/esm/packages/teams-js/src/private/hostEntity/hostEntity.js +1 -0
  223. package/dist/esm/packages/teams-js/src/private/hostEntity/tab.js +1 -0
  224. package/dist/esm/packages/teams-js/src/private/interfaces.js +1 -0
  225. package/dist/esm/packages/teams-js/src/private/logs.js +1 -0
  226. package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -0
  227. package/dist/esm/packages/teams-js/src/private/messageChannels/dataLayer.js +1 -0
  228. package/dist/esm/packages/teams-js/src/private/messageChannels/messageChannels.js +1 -0
  229. package/dist/esm/packages/teams-js/src/private/messageChannels/telemetry.js +1 -0
  230. package/dist/esm/packages/teams-js/src/private/nestedAppAuth/nestedAppAuthBridge.js +1 -0
  231. package/dist/esm/packages/teams-js/src/private/notifications.js +1 -0
  232. package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -0
  233. package/dist/esm/packages/teams-js/src/private/plugins.js +1 -0
  234. package/dist/esm/packages/teams-js/src/private/privateAPIs.js +1 -0
  235. package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -0
  236. package/dist/esm/packages/teams-js/src/private/store.js +1 -0
  237. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/fullTrust.js +1 -0
  238. package/dist/esm/packages/teams-js/src/private/teams/fullTrust/joinedTeams.js +1 -0
  239. package/dist/esm/packages/teams-js/src/private/teams/teams.js +1 -0
  240. package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -0
  241. package/dist/esm/packages/teams-js/src/private/widgetHosting/widgetHosting.js +1 -0
  242. package/dist/esm/packages/teams-js/src/public/adaptiveCards.js +1 -0
  243. package/dist/esm/packages/teams-js/src/public/app/app.js +1 -0
  244. package/dist/esm/packages/teams-js/src/public/app/lifecycle.js +1 -0
  245. package/dist/esm/packages/teams-js/src/public/appId.js +1 -0
  246. package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -0
  247. package/dist/esm/packages/teams-js/src/public/appInstallDialog.js +1 -0
  248. package/dist/esm/packages/teams-js/src/public/appPerformanceMetrics.js +1 -0
  249. package/dist/esm/packages/teams-js/src/public/appWindow.js +1 -0
  250. package/dist/esm/packages/teams-js/src/public/authentication.js +1 -0
  251. package/dist/esm/packages/teams-js/src/public/badge.js +1 -0
  252. package/dist/esm/packages/teams-js/src/public/barCode.js +1 -0
  253. package/dist/esm/packages/teams-js/src/public/calendar.js +1 -0
  254. package/dist/esm/packages/teams-js/src/public/call.js +1 -0
  255. package/dist/esm/packages/teams-js/src/public/chat.js +1 -0
  256. package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -0
  257. package/dist/esm/packages/teams-js/src/public/connectivity.js +1 -0
  258. package/dist/esm/packages/teams-js/src/public/constants.js +1 -0
  259. package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/adaptiveCard.js +1 -0
  260. package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/bot.js +1 -0
  261. package/dist/esm/packages/teams-js/src/public/dialog/dialog.js +1 -0
  262. package/dist/esm/packages/teams-js/src/public/dialog/update.js +1 -0
  263. package/dist/esm/packages/teams-js/src/public/dialog/url/bot.js +1 -0
  264. package/dist/esm/packages/teams-js/src/public/dialog/url/parentCommunication.js +1 -0
  265. package/dist/esm/packages/teams-js/src/public/dialog/url/url.js +1 -0
  266. package/dist/esm/packages/teams-js/src/public/emailAddress.js +1 -0
  267. package/dist/esm/packages/teams-js/src/public/externalApp.js +1 -0
  268. package/dist/esm/packages/teams-js/src/public/featureFlags.js +1 -0
  269. package/dist/esm/packages/teams-js/src/public/geoLocation/geoLocation.js +1 -0
  270. package/dist/esm/packages/teams-js/src/public/geoLocation/map.js +1 -0
  271. package/dist/esm/packages/teams-js/src/public/haptics.js +1 -0
  272. package/dist/esm/packages/teams-js/src/public/interfaces.js +1 -0
  273. package/dist/esm/packages/teams-js/src/public/liveShareHost.js +1 -0
  274. package/dist/esm/packages/teams-js/src/public/location.js +1 -0
  275. package/dist/esm/packages/teams-js/src/public/mail/handoff.js +1 -0
  276. package/dist/esm/packages/teams-js/src/public/mail/mail.js +1 -0
  277. package/dist/esm/packages/teams-js/src/public/marketplace.js +1 -0
  278. package/dist/esm/packages/teams-js/src/public/media.js +1 -0
  279. package/dist/esm/packages/teams-js/src/public/meeting/appShareButton.js +1 -0
  280. package/dist/esm/packages/teams-js/src/public/meeting/meeting.js +1 -0
  281. package/dist/esm/packages/teams-js/src/public/menus.js +1 -0
  282. package/dist/esm/packages/teams-js/src/public/monetization.js +1 -0
  283. package/dist/esm/packages/teams-js/src/public/navigation.js +1 -0
  284. package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -0
  285. package/dist/esm/packages/teams-js/src/public/offlineStorage/drafts.js +1 -0
  286. package/dist/esm/packages/teams-js/src/public/offlineStorage/inbox.js +1 -0
  287. package/dist/esm/packages/teams-js/src/public/offlineStorage/offlineStorage.js +1 -0
  288. package/dist/esm/packages/teams-js/src/public/offlineStorage/outbox.js +1 -0
  289. package/dist/esm/packages/teams-js/src/public/offlineStorage/sent.js +1 -0
  290. package/dist/esm/packages/teams-js/src/public/offlineStorage/sync.js +1 -0
  291. package/dist/esm/packages/teams-js/src/public/pages/appButton.js +1 -0
  292. package/dist/esm/packages/teams-js/src/public/pages/backStack.js +1 -0
  293. package/dist/esm/packages/teams-js/src/public/pages/config.js +1 -0
  294. package/dist/esm/packages/teams-js/src/public/pages/currentApp.js +1 -0
  295. package/dist/esm/packages/teams-js/src/public/pages/fullTrust.js +1 -0
  296. package/dist/esm/packages/teams-js/src/public/pages/pages.js +1 -0
  297. package/dist/esm/packages/teams-js/src/public/pages/tabs.js +1 -0
  298. package/dist/esm/packages/teams-js/src/public/people.js +1 -0
  299. package/dist/esm/packages/teams-js/src/public/profile.js +1 -0
  300. package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -0
  301. package/dist/esm/packages/teams-js/src/public/runtime.js +1 -0
  302. package/dist/esm/packages/teams-js/src/public/search.js +1 -0
  303. package/dist/esm/packages/teams-js/src/public/secondaryBrowser.js +1 -0
  304. package/dist/esm/packages/teams-js/src/public/security.js +1 -0
  305. package/dist/esm/packages/teams-js/src/public/serializable.interface.js +1 -0
  306. package/dist/esm/packages/teams-js/src/public/settings.js +1 -0
  307. package/dist/esm/packages/teams-js/src/public/sharing/history.js +1 -0
  308. package/dist/esm/packages/teams-js/src/public/sharing/sharing.js +1 -0
  309. package/dist/esm/packages/teams-js/src/public/shortcutRelay.js +1 -0
  310. package/dist/esm/packages/teams-js/src/public/stageView/self.js +1 -0
  311. package/dist/esm/packages/teams-js/src/public/stageView/stageView.js +1 -0
  312. package/dist/esm/packages/teams-js/src/public/tasks.js +1 -0
  313. package/dist/esm/packages/teams-js/src/public/teamsAPIs.js +1 -0
  314. package/dist/esm/packages/teams-js/src/public/thirdPartyCloudStorage.js +1 -0
  315. package/dist/esm/packages/teams-js/src/public/uuidObject.js +1 -0
  316. package/dist/esm/packages/teams-js/src/public/validatedSafeString.js +1 -0
  317. package/dist/esm/packages/teams-js/src/public/version.js +1 -0
  318. package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -0
  319. package/dist/esm/packages/teams-js/src/public/visualMedia/image.js +1 -0
  320. package/dist/esm/packages/teams-js/src/public/visualMedia/visualMedia.js +1 -0
  321. package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -0
  322. package/dist/umd/JevelinBridge-manifest.json +642 -0
  323. package/dist/umd/JevelinBridge.js +23119 -0
  324. package/dist/umd/JevelinBridge.js.map +1 -0
  325. package/dist/umd/JevelinBridge.min.js +3 -0
  326. package/dist/umd/JevelinBridge.min.js.LICENSE.txt +8 -0
  327. package/dist/umd/JevelinBridge.min.js.map +1 -0
  328. package/package.json +53 -0
@@ -0,0 +1,1321 @@
1
+ import { HostFeatures } from './app/app';
2
+ import { ChannelType, DialogDimension, HostClientType, HostName, RenderingSurfaces, TeamType, UserTeamRole } from './constants';
3
+ import { FrameContexts } from './constants';
4
+ /**
5
+ * Represents information about tabs for an app
6
+ */
7
+ export interface TabInformation {
8
+ /** Represents the tabs associated with a Microsoft Teams app */
9
+ teamTabs: TabInstance[];
10
+ }
11
+ /**
12
+ * Represents information about a tab instance
13
+ */
14
+ export interface TabInstance {
15
+ /**
16
+ * The name of the tab
17
+ */
18
+ tabName: string;
19
+ /**
20
+ * @internal
21
+ * Limited to Microsoft-internal use
22
+ * @protected
23
+ */
24
+ internalTabInstanceId?: string;
25
+ /**
26
+ * Last viewed time of this tab. null means unknown
27
+ */
28
+ lastViewUnixEpochTime?: string;
29
+ /**
30
+ * The developer-defined unique ID for the entity this content points to.
31
+ */
32
+ entityId?: string;
33
+ /**
34
+ * The Microsoft Teams ID for the channel with which the content is associated.
35
+ */
36
+ channelId?: string;
37
+ /**
38
+ * The name for the channel with which the content is associated.
39
+ */
40
+ channelName?: string;
41
+ /**
42
+ * Is this tab in a favorite channel?
43
+ */
44
+ channelIsFavorite?: boolean;
45
+ /**
46
+ * The Microsoft Teams ID for the team with which the content is associated.
47
+ */
48
+ teamId?: string;
49
+ /**
50
+ * The name for the team with which the content is associated.
51
+ */
52
+ teamName?: string;
53
+ /**
54
+ * Is this tab in a favorite team?
55
+ */
56
+ teamIsFavorite?: boolean;
57
+ /**
58
+ * The Office 365 group ID for the team with which the content is associated.
59
+ * This field is available only when the identity permission is requested in the manifest.
60
+ */
61
+ groupId?: string;
62
+ /**
63
+ * Content URL of this tab
64
+ */
65
+ url?: string;
66
+ /**
67
+ * Website URL of this tab
68
+ */
69
+ websiteUrl?: string;
70
+ /**
71
+ * AppId of this tab
72
+ */
73
+ appId?: string;
74
+ /**
75
+ * Order of this tab. Order is 1-indexed.
76
+ */
77
+ order?: number;
78
+ }
79
+ /**
80
+ * Indicates information about the tab instance for filtering purposes.
81
+ */
82
+ export interface TabInstanceParameters {
83
+ /**
84
+ * Flag allowing to select favorite channels only
85
+ */
86
+ favoriteChannelsOnly?: boolean;
87
+ /**
88
+ * Flag allowing to select favorite teams only
89
+ */
90
+ favoriteTeamsOnly?: boolean;
91
+ }
92
+ /**
93
+ * Represents Team Information
94
+ */
95
+ export interface TeamInformation {
96
+ /**
97
+ * Id of the team
98
+ */
99
+ teamId: string;
100
+ /**
101
+ * Team display name
102
+ */
103
+ teamName: string;
104
+ /**
105
+ * Team description
106
+ */
107
+ teamDescription?: string;
108
+ /**
109
+ * Thumbnail Uri
110
+ */
111
+ thumbnailUri?: string;
112
+ /**
113
+ * The Office 365 group ID for the team with which the content is associated.
114
+ * This field is available only when the identity permission is requested in the manifest.
115
+ */
116
+ groupId?: string;
117
+ /**
118
+ * Role of current user in the team
119
+ */
120
+ userTeamRole?: UserTeamRole;
121
+ /**
122
+ * The type of the team.
123
+ */
124
+ teamType?: TeamType;
125
+ /**
126
+ * The locked status of the team
127
+ */
128
+ isTeamLocked?: boolean;
129
+ /**
130
+ * The archived status of the team
131
+ */
132
+ isTeamArchived?: boolean;
133
+ }
134
+ /**
135
+ * Represents OS locale info used for formatting date and time data
136
+ */
137
+ export interface LocaleInfo {
138
+ /** Represents the user's platform on which the app is running. */
139
+ platform: HostClientType.android | HostClientType.ios | HostClientType.macos | 'windows';
140
+ /**
141
+ * Represents the regional format used by the user's locale.
142
+ * @example `en-us`.
143
+ */
144
+ regionalFormat: string;
145
+ /**
146
+ * Displays date values, as specified by the short date format MM/DD/YYYY in user's regional settings.
147
+ * @example 4/21/2023 or 4-21-2023
148
+ */
149
+ shortDate: string;
150
+ /**
151
+ * Displays only date values, as specified by the Long Date format in user's regional settings.
152
+ * @example Friday, April 21, 2023
153
+ */
154
+ longDate: string;
155
+ /**
156
+ * A string representing the short time format used by the user's locale.
157
+ * @example 10:10
158
+ */
159
+ shortTime: string;
160
+ /**
161
+ * A string representing the long time format used by the user's locale.
162
+ * @example 10:10:42 AM
163
+ */
164
+ longTime: string;
165
+ /**
166
+ * A string representing the timezone of the user's locale in IANA format
167
+ * @example 'America/Los_Angeles'
168
+ */
169
+ timezone?: string;
170
+ }
171
+ /**
172
+ * Allowed user file open preferences
173
+ */
174
+ export declare enum FileOpenPreference {
175
+ /** Indicates that the user should be prompted to open the file in inline. */
176
+ Inline = "inline",
177
+ /** Indicates that the user should be prompted to open the file in the native desktop application associated with the file type. */
178
+ Desktop = "desktop",
179
+ /** Indicates that the user should be prompted to open the file in a web browser. */
180
+ Web = "web"
181
+ }
182
+ /**
183
+ * Types of Action Objects
184
+ *
185
+ * @beta
186
+ */
187
+ export declare enum ActionObjectType {
188
+ /** Represents content within a Microsoft 365 application. */
189
+ M365Content = "m365content"
190
+ }
191
+ /**
192
+ * Data pertaining to object(s) the action is being performed on
193
+ *
194
+ * @param T The type of action being implemented
195
+ *
196
+ * @beta
197
+ */
198
+ export interface BaseActionObject<T extends ActionObjectType> {
199
+ /** Represents action type. */
200
+ type: T;
201
+ }
202
+ /**
203
+ * Stores information needed to represent content stored in OneDrive or Sharepoint
204
+ *
205
+ * @beta
206
+ */
207
+ export interface M365ContentAction extends BaseActionObject<ActionObjectType.M365Content> {
208
+ /**
209
+ * Only office content IDs are passed to the app. Apps should use these ids
210
+ * to query the Microsoft graph for more details.
211
+ */
212
+ itemId: string;
213
+ /** Represents an optional secondary identifier for an action in a Microsoft 365 content item. */
214
+ secondaryId?: SecondaryId;
215
+ }
216
+ /**
217
+ * Contains additional IDs of the content that the action is triggered from. Maps to ids used in the Graph.
218
+ *
219
+ * @beta
220
+ */
221
+ export interface SecondaryId {
222
+ /** Name of the secondary id that should be used. */
223
+ name: SecondaryM365ContentIdName;
224
+ /** The secondary id value that can be used to retrieve M365 content. */
225
+ value: string;
226
+ }
227
+ /**
228
+ * These correspond with field names in the MSGraph.
229
+ * See [commonly accessed resources](https://learn.microsoft.com/graph/api/resources/onedrive?view=graph-rest-1.0#commonly-accessed-resources).
230
+ * @beta
231
+ */
232
+ export declare enum SecondaryM365ContentIdName {
233
+ /** OneDrive ID */
234
+ DriveId = "driveId",
235
+ /** Teams Group ID */
236
+ GroupId = "groupId",
237
+ /** SharePoint ID */
238
+ SiteId = "siteId",
239
+ /** User ID */
240
+ UserId = "userId"
241
+ }
242
+ /**
243
+ * Information about an Action.
244
+ *
245
+ * @remarks
246
+ * This contains Id of the action, and the information about the object that triggered the action.
247
+ * @beta
248
+ */
249
+ export interface ActionInfo {
250
+ /**
251
+ * Id of the action. Maps to the action id supplied inside the manifest
252
+ */
253
+ actionId: string;
254
+ /**
255
+ * Array of corresponding action objects
256
+ */
257
+ actionObjects: BaseActionObject<ActionObjectType>[];
258
+ }
259
+ /**
260
+ * @deprecated
261
+ * As of TeamsJS v2.0.0, please use the {@link app.Context} interface and its updated properties instead.
262
+ *
263
+ * @remarks
264
+ * For more details about the updated {@link app.Context} interface, visit the
265
+ * [Teams JavaScript client SDK](https://learn.microsoft.com/microsoftteams/platform/tabs/how-to/using-teams-client-sdk#updates-to-the-context-interface)
266
+ * overview article.
267
+ *
268
+ * Represents the structure of the received context message.
269
+ */
270
+ export interface Context {
271
+ /**
272
+ * @deprecated
273
+ * As of TeamsJS v2.0.0, please use {@link ActionInfo | app.Context.actionInfo} instead
274
+ *
275
+ * Common information applicable to all content actions
276
+ */
277
+ actionInfo?: ActionInfo;
278
+ /**
279
+ * @deprecated
280
+ * As of TeamsJS v2.0.0, please use {@link app.TeamInfo.groupId | app.Context.team.groupId} instead
281
+ *
282
+ * The Office 365 group ID for the team with which the content is associated.
283
+ * This field is available only when the identity permission is requested in the manifest.
284
+ */
285
+ groupId?: string;
286
+ /**
287
+ * @deprecated
288
+ * As of TeamsJS v2.0.0, please use {@link app.TeamInfo.internalId | app.Context.team.internalId} instead
289
+ *
290
+ * The Microsoft Teams ID for the team with which the content is associated.
291
+ */
292
+ teamId?: string;
293
+ /**
294
+ * @deprecated
295
+ * As of TeamsJS v2.0.0, please use {@link app.TeamInfo.displayName | app.Context.team.displayName} instead
296
+ *
297
+ * The name for the team with which the content is associated.
298
+ */
299
+ teamName?: string;
300
+ /**
301
+ * @deprecated
302
+ * As of TeamsJS v2.0.0, please use {@link app.ChannelInfo.id | app.Context.channel.id} instead
303
+ *
304
+ * The Microsoft Teams ID for the channel with which the content is associated.
305
+ */
306
+ channelId?: string;
307
+ /**
308
+ * @deprecated
309
+ * As of TeamsJS v2.0.0, please use {@link app.ChannelInfo.displayName | app.Context.channel.displayName} instead
310
+ *
311
+ * The name for the channel with which the content is associated.
312
+ */
313
+ channelName?: string;
314
+ /**
315
+ * @deprecated
316
+ * As of TeamsJS v2.0.0, please use {@link app.ChannelInfo.membershipType | app.Context.channel.membershipType} instead
317
+ *
318
+ * The type of the channel with which the content is associated.
319
+ */
320
+ channelType?: ChannelType;
321
+ /**
322
+ * @deprecated
323
+ * As of TeamsJS v2.0.0, please use {@link app.PageInfo.id | app.Context.page.id} instead
324
+ *
325
+ * The developer-defined unique ID for the entity this content points to.
326
+ */
327
+ entityId: string;
328
+ /**
329
+ * @deprecated
330
+ * As of TeamsJS v2.0.0, please use {@link app.PageInfo.subPageId | app.Context.page.subPageId} instead
331
+ *
332
+ * The developer-defined unique ID for the sub-entity this content points to.
333
+ * This field should be used to restore to a specific state within an entity,
334
+ * such as scrolling to or activating a specific piece of content.
335
+ */
336
+ subEntityId?: string;
337
+ /**
338
+ * @deprecated
339
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.locale | app.Context.app.locale} instead
340
+ *
341
+ * The current locale that the user has configured for the app formatted as
342
+ * languageId-countryId (for example, en-us).
343
+ */
344
+ locale: string;
345
+ /**
346
+ * @deprecated
347
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.osLocaleInfo | app.Context.app.osLocaleInfo} instead
348
+ *
349
+ * More detailed locale info from the user's OS if available. Can be used together with
350
+ * the @microsoft/globe NPM package to ensure your app respects the user's OS date and
351
+ * time format configuration
352
+ */
353
+ osLocaleInfo?: LocaleInfo;
354
+ /**
355
+ * @deprecated
356
+ *
357
+ * As of TeamsJS v2.0.0, please use {@link app.UserInfo.loginHint | app.Context.user.loginHint} or
358
+ * {@link app.UserInfo.userPrincipalName | app.Context.user.userPrincipalName} instead.
359
+ * The UPN of the current user.
360
+ * Because a malicious party can run your content in a browser, this value should
361
+ * be used only as a hint as to who the user is and never as proof of identity.
362
+ * This field is available only when the identity permission is requested in the manifest.
363
+ */
364
+ upn?: string;
365
+ /**
366
+ * @deprecated
367
+ * As of TeamsJS v2.0.0, please use {@link app.TenantInfo.id | app.Context.user.tenant.id} instead
368
+ *
369
+ * The Microsoft Entra tenant ID of the current user.
370
+ * Because a malicious party can run your content in a browser, this value should
371
+ * be used only as a hint as to who the user is and never as proof of identity.
372
+ * This field is available only when the identity permission is requested in the manifest.
373
+ */
374
+ tid?: string;
375
+ /**
376
+ * @deprecated
377
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.theme | app.Context.app.theme} instead
378
+ *
379
+ * The current UI theme.
380
+ */
381
+ theme?: string;
382
+ /**
383
+ * @deprecated
384
+ * As of TeamsJS v2.0.0, please use {@link app.PageInfo.isFullScreen | app.Context.page.isFullScreen} instead
385
+ *
386
+ * Indication whether the tab is in full-screen mode.
387
+ */
388
+ isFullScreen?: boolean;
389
+ /**
390
+ * @deprecated
391
+ * As of TeamsJS v2.0.0, please use {@link app.TeamInfo.type | app.Context.team.type} instead
392
+ *
393
+ * The type of the team.
394
+ */
395
+ teamType?: TeamType;
396
+ /**
397
+ * @deprecated
398
+ * As of TeamsJS v2.0.0, please use {@link app.SharePointSiteInfo.teamSiteUrl | app.Context.sharePointSite.teamSiteUrl} instead
399
+ *
400
+ * The root SharePoint site associated with the team.
401
+ */
402
+ teamSiteUrl?: string;
403
+ /**
404
+ * @deprecated
405
+ * As of TeamsJS v2.0.0, please use {@link app.SharePointSiteInfo.teamSiteDomain | app.Context.sharePointSite.teamSiteDomain} instead
406
+ *
407
+ * The domain of the root SharePoint site associated with the team.
408
+ */
409
+ teamSiteDomain?: string;
410
+ /**
411
+ * @deprecated
412
+ * As of TeamsJS v2.0.0, please use {@link app.SharePointSiteInfo.teamSitePath | app.Context.sharePointSite.teamSitePath} instead
413
+ *
414
+ * The relative path to the SharePoint site associated with the team.
415
+ */
416
+ teamSitePath?: string;
417
+ /**
418
+ * @deprecated
419
+ * As of TeamsJS v2.0.0, please use {@link app.ChannelInfo.ownerTenantId | app.Context.channel.ownerTenantId} instead
420
+ *
421
+ * The tenant ID of the host team.
422
+ */
423
+ hostTeamTenantId?: string;
424
+ /**
425
+ * @deprecated
426
+ * As of TeamsJS v2.0.0, please use {@link app.ChannelInfo.ownerGroupId | app.Context.channel.ownerGroupId} instead
427
+ *
428
+ * The Microsoft Entra group ID of the host team.
429
+ */
430
+ hostTeamGroupId?: string;
431
+ /**
432
+ * @deprecated
433
+ * As of TeamsJS v2.0.0, please use {@link app.ChannelInfo.relativeUrl | app.Context.channel.relativeUrl} instead
434
+ *
435
+ * The relative path to the SharePoint folder associated with the channel.
436
+ */
437
+ channelRelativeUrl?: string;
438
+ /**
439
+ * @deprecated
440
+ * As of TeamsJS v2.0.0, please use {@link app.AppHostInfo.sessionId | app.Context.app.host.sessionId} instead
441
+ *
442
+ * Unique ID for the current Teams session for use in correlating telemetry data.
443
+ */
444
+ sessionId?: string;
445
+ /**
446
+ * @deprecated
447
+ * As of TeamsJS v2.0.0, please use {@link app.TeamInfo.userRole | app.Context.team.userRole} instead
448
+ *
449
+ * The user's role in the team.
450
+ * Because a malicious party can run your content in a browser, this value should
451
+ * be used only as a hint as to the user's role, and never as proof of her role.
452
+ */
453
+ userTeamRole?: UserTeamRole;
454
+ /**
455
+ * @deprecated
456
+ * As of TeamsJS v2.0.0, please use {@link app.ChatInfo.id | app.Context.chat.id} instead
457
+ *
458
+ * The Microsoft Teams ID for the chat with which the content is associated.
459
+ */
460
+ chatId?: string;
461
+ /**
462
+ * @deprecated
463
+ * As of TeamsJS v2.0.0, please use {@link app.UserInfo.loginHint | app.Context.user.loginHint} instead
464
+ *
465
+ * A value suitable for use as a login_hint when authenticating with Microsoft Entra ID.
466
+ * Because a malicious party can run your content in a browser, this value should
467
+ * be used only as a hint as to who the user is and never as proof of identity.
468
+ * This field is available only when the identity permission is requested in the manifest.
469
+ */
470
+ loginHint?: string;
471
+ /**
472
+ * @deprecated
473
+ * As of TeamsJS v2.0.0, please use {@link app.UserInfo.userPrincipalName | app.Context.user.userPrincipalName} instead
474
+ *
475
+ * The UPN of the current user. This may be an externally-authenticated UPN (e.g., guest users).
476
+ * Because a malicious party run your content in a browser, this value should
477
+ * be used only as a hint as to who the user is and never as proof of identity.
478
+ * This field is available only when the identity permission is requested in the manifest.
479
+ */
480
+ userPrincipalName?: string;
481
+ /**
482
+ * @deprecated
483
+ * As of TeamsJS v2.0.0, please use {@link app.UserInfo.id | app.Context.user.id} instead
484
+ *
485
+ * The Microsoft Entra object ID of the current user.
486
+ * Because a malicious party run your content in a browser, this value should
487
+ * be used only as a hint as to who the user is and never as proof of identity.
488
+ * This field is available only when the identity permission is requested in the manifest.
489
+ */
490
+ userObjectId?: string;
491
+ /**
492
+ * @deprecated
493
+ * As of TeamsJS v2.0.0, please use {@link app.TeamInfo.isArchived | app.Context.team.isArchived} instead
494
+ *
495
+ * Indicates whether team is archived.
496
+ * Apps should use this as a signal to prevent any changes to content associated with archived teams.
497
+ */
498
+ isTeamArchived?: boolean;
499
+ /**
500
+ * @deprecated
501
+ * As of TeamsJS v2.0.0, please use {@link app.AppHostInfo.name | app.Context.app.host.name} instead
502
+ *
503
+ * The name of the host client. Possible values are: Office, Orange, Outlook, Teams
504
+ */
505
+ hostName?: HostName;
506
+ /**
507
+ * @deprecated
508
+ * As of TeamsJS v2.0.0, please use {@link app.AppHostInfo.clientType | app.Context.app.host.clientType} instead
509
+ *
510
+ * The type of the host client. Possible values are : android, ios, web, desktop, rigel(deprecated, use teamsRoomsWindows instead),
511
+ * surfaceHub, teamsRoomsWindows, teamsRoomsAndroid, teamsPhones, teamsDisplays
512
+ */
513
+ hostClientType?: HostClientType;
514
+ /**
515
+ * @deprecated
516
+ * As of TeamsJS v2.0.0, please use {@link app.PageInfo.frameContext | app.Context.page.frameContext} instead
517
+ *
518
+ * The context where tab url is loaded (content, task, setting, remove, sidePanel)
519
+ */
520
+ frameContext?: FrameContexts;
521
+ /**
522
+ * @deprecated
523
+ * As of TeamsJS v2.0.0, please use {@link app.PageInfo.renderingSurface | app.Context.page.renderingSurface} instead
524
+ *
525
+ * The surface where the tab is rendered (sidePanel, meeting, chat, channel)
526
+ */
527
+ renderingSurface?: RenderingSurfaces;
528
+ /**
529
+ * @deprecated
530
+ * As of TeamsJS v2.0.0, please use {@link app.Context | app.Context.sharepoint} instead
531
+ *
532
+ * SharePoint context. This is only available when hosted in SharePoint.
533
+ */
534
+ sharepoint?: any;
535
+ /**
536
+ * @deprecated
537
+ * As of TeamsJS v2.0.0, please use {@link app.TenantInfo.teamsSku | app.Context.tenant.teamsSku} instead
538
+ *
539
+ * The type of license for the current users tenant.
540
+ */
541
+ tenantSKU?: string;
542
+ /**
543
+ * @deprecated
544
+ * As of TeamsJS v2.0.0, please use {@link app.UserInfo.licenseType | app.Context.user.licenseType} instead
545
+ *
546
+ * The license type for the current user.
547
+ */
548
+ userLicenseType?: string;
549
+ /**
550
+ * @deprecated
551
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.messageId | app.Context.app.messageId} instead
552
+ *
553
+ * The ID of the message from which this task module was launched.
554
+ * This is only available in task modules launched from bot cards.
555
+ */
556
+ messageId?: string;
557
+ /**
558
+ * @deprecated
559
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.parentMessageId | app.Context.app.parentMessageId} instead
560
+ *
561
+ * The ID of the parent message from which this task module was launched.
562
+ * This is only available in task modules launched from bot cards.
563
+ */
564
+ parentMessageId?: string;
565
+ /**
566
+ * @deprecated
567
+ * As of TeamsJS v2.0.0, please use {@link app.AppHostInfo.ringId | app.Context.app.host.ringId} instead
568
+ *
569
+ * Current ring ID
570
+ */
571
+ ringId?: string;
572
+ /**
573
+ * @deprecated
574
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.sessionId | app.Context.app.sessionId} instead
575
+ *
576
+ * Unique ID for the current session for use in correlating telemetry data. A session corresponds to the lifecycle of an app. A new session begins upon the creation of a webview (on Teams mobile) or iframe (in Teams desktop) hosting the app, and ends when it is destroyed.
577
+ */
578
+ appSessionId?: string;
579
+ /**
580
+ * @deprecated
581
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.appLaunchId | app.Context.app.appLaunchId} instead
582
+ *
583
+ * ID for the current visible app which is different for across cached sessions. Used for correlating telemetry data``
584
+ */
585
+ appLaunchId?: string;
586
+ /**
587
+ * @deprecated
588
+ * As of TeamsJS v2.0.0, please use {@link app.UserInfo.isCallingAllowed | app.Context.user.isCallingAllowed} instead
589
+ *
590
+ * Represents whether calling is allowed for the current logged in User
591
+ */
592
+ isCallingAllowed?: boolean;
593
+ /**
594
+ * @deprecated
595
+ * As of TeamsJS v2.0.0, please use {@link app.UserInfo.isPSTNCallingAllowed | app.Context.user.isPSTNCallingAllowed} instead
596
+ *
597
+ * Represents whether PSTN calling is allowed for the current logged in User
598
+ */
599
+ isPSTNCallingAllowed?: boolean;
600
+ /**
601
+ * @deprecated
602
+ * As of TeamsJS v2.0.0, please use {@link app.MeetingInfo.id | app.Context.meeting.id} instead
603
+ *
604
+ * Meeting Id used by tab when running in meeting context
605
+ */
606
+ meetingId?: string;
607
+ /**
608
+ * @deprecated
609
+ * As of TeamsJS v2.0.0, please use {@link app.ChannelInfo.defaultOneNoteSectionId | app.Context.channel.defaultOneNoteSectionId} instead
610
+ *
611
+ * The OneNote section ID that is linked to the channel.
612
+ */
613
+ defaultOneNoteSectionId?: string;
614
+ /**
615
+ * @deprecated
616
+ * As of TeamsJS v2.0.0, please use {@link app.PageInfo.isMultiWindow | app.Context.page.isMultiWindow} instead
617
+ *
618
+ * Indication whether the tab is in a pop out window
619
+ */
620
+ isMultiWindow?: boolean;
621
+ /**
622
+ * @deprecated
623
+ * As of TeamsJS v2.0.0, please use {@link app.PageInfo.isBackgroundLoad | app.Context.page.isBackgroundLoad} instead
624
+ *
625
+ * Indication whether the tab is being loaded in the background
626
+ */
627
+ isBackgroundLoad?: boolean;
628
+ /**
629
+ * @deprecated
630
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.iconPositionVertical | app.Context.app.iconPositionVertical} instead
631
+ *
632
+ * Personal app icon y coordinate position
633
+ */
634
+ appIconPosition?: number;
635
+ /**
636
+ * @deprecated
637
+ * As of TeamsJS v2.0.0, please use {@link app.PageInfo.sourceOrigin | app.Context.page.sourceOrigin} instead
638
+ *
639
+ * Source origin from where the tab is opened
640
+ */
641
+ sourceOrigin?: string;
642
+ /**
643
+ * @deprecated
644
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.userClickTime | app.Context.app.userClickTime} instead
645
+ *
646
+ * Time when the user clicked on the tab using the date.
647
+ *
648
+ * For measuring elapsed time between the moment the user click the tab, use {@link app.AppInfo.userClickTimeV2 | app.Context.app.userClickTimeV2} instead as it uses the performance timer API.
649
+ */
650
+ userClickTime?: number;
651
+ /**
652
+ * @deprecated
653
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.userClickTimeV2 | app.Context.app.userClickTimeV2} instead
654
+ *
655
+ * Time when the user click on the app by using the performance timer API. Useful for measuring elapsed time accurately.
656
+ *
657
+ * For displaying the time when the user clicked on the app, please use {@link app.AppInfo.userClickTime | app.Context.app.userClickTime} as it uses the date.
658
+ */
659
+ userClickTimeV2?: number;
660
+ /**
661
+ * @deprecated
662
+ * As of TeamsJS v2.0.0, please use {@link app.TeamInfo.templateId | app.Context.team.templateId} instead
663
+ *
664
+ * Team Template ID if there was a Team Template associated with the creation of the team.
665
+ */
666
+ teamTemplateId?: string;
667
+ /**
668
+ * @deprecated
669
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.userFileOpenPreference | app.Context.app.userFileOpenPreference} instead
670
+ *
671
+ * Where the user prefers the file to be opened from by default during file open
672
+ */
673
+ userFileOpenPreference?: FileOpenPreference;
674
+ /**
675
+ * @deprecated
676
+ * As of TeamsJS v2.0.0, please use {@link app.UserInfo.displayName | app.Context.user.displayName} instead
677
+ *
678
+ * The address book name of the current user.
679
+ */
680
+ userDisplayName?: string;
681
+ /**
682
+ * @deprecated
683
+ * As of TeamsJS v2.0.0, please use {@link app.SharePointSiteInfo.teamSiteId | app.Context.sharePointSite.teamSiteId} instead
684
+ *
685
+ * Teamsite ID, aka sharepoint site id.
686
+ */
687
+ teamSiteId?: string;
688
+ /**
689
+ * @deprecated
690
+ * As of TeamsJS v2.0.0, please use {@link app.SharePointSiteInfo.mySiteDomain | app.Context.sharePointSite.mySiteDomain} instead
691
+ *
692
+ * The SharePoint my site domain associated with the user.
693
+ */
694
+ mySiteDomain?: string;
695
+ /**
696
+ * @deprecated
697
+ * As of TeamsJS v2.0.0, please use {@link app.SharePointSiteInfo.mySitePath | app.Context.sharePointSite.mySitePath} instead
698
+ *
699
+ * The SharePoint relative path to the current users mysite
700
+ */
701
+ mySitePath?: string;
702
+ /**
703
+ * @deprecated
704
+ * As of TeamsJS v2.0.0, please use {@link app.Context.dialogParameters} instead
705
+ *
706
+ * When `processActionCommand` activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to `processActionCommand` as `extractedParameters`.
707
+ * App developers need to use these `extractedParameters` in their dialog.
708
+ * They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.
709
+ */
710
+ dialogParameters?: Record<string, string>;
711
+ /**
712
+ * @deprecated
713
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.appId | app.Context.app.appId} instead
714
+ *
715
+ * This ID is the unique identifier assigned to the app after deployment and is critical for ensuring the correct app instance is recognized across hosts.
716
+ */
717
+ appId?: string;
718
+ /**
719
+ * @deprecated
720
+ * As of TeamsJS v2.0.0, please use {@link app.AppInfo.manifestVersion | app.Context.app.manifestVersion} instead
721
+ *
722
+ * The version of the manifest that the app is running.
723
+ */
724
+ manifestVersion?: string;
725
+ /**
726
+ * @deprecated
727
+ * As of TeamsJS v2.0.0, please use {@link app.AppHostInfo.ancestors | app.Context.app.host.ancestors} instead
728
+ * An array representing the hierarchy of ancestor hosts that the app is embedded inside of.
729
+ * The array is ordered from immediate parent to root host.
730
+ * For example, if Bizchat is running in Calendar in Teams, this would be ["Calendar", "Teams"].
731
+ */
732
+ hostAncestors?: string[];
733
+ /**
734
+ * @deprecated
735
+ * As of TeamsJS v2.0.0, please use {@link app.AppHostInfo.features | app.Context.app.host.features} instead
736
+ * The features supported by the host. This is an optional field that may not be populated by all hosts, and may be added to over time as new features are added to hosts. Because of this, apps should always check for the presence of a feature and its value before using it, and should gracefully handle the case where the feature is not present.
737
+ */
738
+ hostFeatures?: HostFeatures;
739
+ }
740
+ /** Represents the parameters used to share a deep link. */
741
+ export interface ShareDeepLinkParameters {
742
+ /**
743
+ * The developer-defined unique ID for the sub-page to which this deep link points in the current page.
744
+ * This field should be used to restore to a specific state within a page, such as scrolling to or activating a specific piece of content.
745
+ */
746
+ subPageId: string;
747
+ /**
748
+ * The label for the sub-page that should be displayed when the deep link is rendered in a client.
749
+ */
750
+ subPageLabel: string;
751
+ /**
752
+ * The fallback URL to which to navigate the user if the client cannot render the page.
753
+ * This URL should lead directly to the sub-entity.
754
+ */
755
+ subPageWebUrl?: string;
756
+ }
757
+ /**
758
+ * @deprecated
759
+ * As of TeamsJS v2.0.0, please use {@link ShareDeepLinkParameters} instead.
760
+ */
761
+ export interface DeepLinkParameters {
762
+ /**
763
+ * The developer-defined unique ID for the sub-entity to which this deep link points in the current entity.
764
+ * This field should be used to restore to a specific state within an entity, such as scrolling to or activating a specific piece of content.
765
+ */
766
+ subEntityId: string;
767
+ /**
768
+ * The label for the sub-entity that should be displayed when the deep link is rendered in a client.
769
+ */
770
+ subEntityLabel: string;
771
+ /**
772
+ * The fallback URL to which to navigate the user if the client cannot render the page.
773
+ * This URL should lead directly to the sub-entity.
774
+ */
775
+ subEntityWebUrl?: string;
776
+ }
777
+ /**
778
+ * @hidden
779
+ * Shared Dialog Properties
780
+ */
781
+ export interface BaseDialogInfo {
782
+ /**
783
+ * The requested size of the dialog
784
+ */
785
+ size: DialogSize;
786
+ /**
787
+ * Title of the dialog module.
788
+ */
789
+ title?: string;
790
+ }
791
+ /**
792
+ * Data structure to describe dialog information needed to open an Adaptive Card-based dialog.
793
+ */
794
+ export interface AdaptiveCardDialogInfo extends BaseDialogInfo {
795
+ /**
796
+ * JSON defining an Adaptive Card.
797
+ */
798
+ card: string;
799
+ }
800
+ /**
801
+ * Data structure to describe dialog information needed to open a bot-based Adaptive Card-based dialog.
802
+ */
803
+ export interface BotAdaptiveCardDialogInfo extends AdaptiveCardDialogInfo {
804
+ /**
805
+ * Specifies a bot ID to send the result of the user's interaction with the dialog module.
806
+ * The bot will receive a task/complete invoke event with a JSON object
807
+ * in the event payload.
808
+ */
809
+ completionBotId: string;
810
+ }
811
+ /**
812
+ * Data structure to represent the size of a dialog
813
+ */
814
+ export interface DialogSize {
815
+ /**
816
+ * The requested height of the webview/iframe.
817
+ */
818
+ height: DialogDimension | number;
819
+ /**
820
+ * The requested width of the webview/iframe.
821
+ */
822
+ width: DialogDimension | number;
823
+ }
824
+ /**
825
+ * Data structure to describe dialog information needed to open a url-based dialog.
826
+ */
827
+ export interface UrlDialogInfo extends BaseDialogInfo {
828
+ /**
829
+ * The url to be rendered in the webview/iframe.
830
+ *
831
+ * @remarks
832
+ * The domain of the url must match at least one of the
833
+ * valid domains specified in the [validDomains block](https://learn.microsoft.com/microsoftteams/platform/resources/schema/manifest-schema#validdomains) of the app manifest
834
+ */
835
+ url: string;
836
+ /**
837
+ * If client doesnt support the URL, the URL that needs to be opened in the browser.
838
+ */
839
+ fallbackUrl?: string;
840
+ }
841
+ /**
842
+ * Data structure to describe dialog information needed to open a bot based dialog.
843
+ */
844
+ export interface BotUrlDialogInfo extends UrlDialogInfo {
845
+ /**
846
+ * Specifies a bot ID to send the result of the user's interaction with the task module.
847
+ * The bot will receive a task/complete invoke event with a JSON object
848
+ * in the event payload.
849
+ */
850
+ completionBotId: string;
851
+ }
852
+ /**
853
+ * Data structure to describe dialog information
854
+ */
855
+ export interface DialogInfo {
856
+ /**
857
+ * The url to be rendered in the webview/iframe.
858
+ *
859
+ * @remarks
860
+ * The domain of the url must match at least one of the
861
+ * valid domains specified in the validDomains block of the manifest
862
+ */
863
+ url?: string;
864
+ /**
865
+ * JSON defining an adaptive card.
866
+ */
867
+ card?: string;
868
+ /**
869
+ * The requested height of the webview/iframe.
870
+ */
871
+ height?: DialogDimension | number;
872
+ /**
873
+ * The requested width of the webview/iframe.
874
+ */
875
+ width?: DialogDimension | number;
876
+ /**
877
+ * Title of the task module.
878
+ */
879
+ title?: string;
880
+ /**
881
+ * If client doesnt support the URL, the URL that needs to be opened in the browser.
882
+ */
883
+ fallbackUrl?: string;
884
+ /**
885
+ * Specifies a bot ID to send the result of the user's interaction with the task module.
886
+ * If specified, the bot will receive a task/complete invoke event with a JSON object
887
+ * in the event payload.
888
+ */
889
+ completionBotId?: string;
890
+ }
891
+ /**
892
+ * @deprecated
893
+ * As of TeamsJS v2.0.0, please use {@link DialogInfo} instead.
894
+ */
895
+ export type TaskInfo = DialogInfo;
896
+ /**
897
+ * @beta
898
+ * Data structure to be used with the {@link app.lifecycle.registerOnResumeHandler app.lifecycle.registerOnResumeHandler(handler: (context: ResumeContext) => void): void} to pass the context to the app.
899
+ */
900
+ export interface ResumeContext {
901
+ /**
902
+ * The entity that is requested to be loaded
903
+ */
904
+ entityId: string;
905
+ /**
906
+ * The content URL that is requested to be loaded
907
+ */
908
+ contentUrl: URL;
909
+ }
910
+ /**
911
+ * @deprecated
912
+ * As of 2.14.1, please use {@link ResumeContext} instead.
913
+ */
914
+ export interface LoadContext {
915
+ /**
916
+ * The entity that is requested to be loaded
917
+ */
918
+ entityId: string;
919
+ /**
920
+ * The content URL that is requested to be loaded
921
+ */
922
+ contentUrl: string;
923
+ }
924
+ /** Represents information about a frame within a tab or dialog module. */
925
+ export interface FrameInfo {
926
+ /**
927
+ * The current URL that needs to be used in the iframe if the tab is reloaded
928
+ */
929
+ contentUrl: string;
930
+ /**
931
+ * The current URL that needs to be used for opening the website when the user clicks on 'Go to website'
932
+ */
933
+ websiteUrl: string;
934
+ }
935
+ /**
936
+ * @deprecated
937
+ * As of TeamsJS v2.0.0, please use {@link FrameInfo} instead.
938
+ */
939
+ export type FrameContext = FrameInfo;
940
+ /** Represents an error that occurs during the execution of an app or integration. */
941
+ export interface SdkError {
942
+ /**
943
+ error code
944
+ */
945
+ errorCode: ErrorCode;
946
+ /**
947
+ Optional description for the error. This may contain useful information for web-app developers.
948
+ This string will not be localized and is not for end-user consumption.
949
+ App should not depend on the string content. The exact value may change. This is only for debugging purposes.
950
+ */
951
+ message?: string;
952
+ }
953
+ export declare function isSdkError(err: unknown): err is SdkError;
954
+ /** Error codes used to identify different types of errors that can occur while developing apps. */
955
+ export declare enum ErrorCode {
956
+ /**
957
+ * API not supported in the current platform.
958
+ */
959
+ NOT_SUPPORTED_ON_PLATFORM = 100,
960
+ /**
961
+ * Internal error encountered while performing the required operation.
962
+ */
963
+ INTERNAL_ERROR = 500,
964
+ /**
965
+ * API is not supported in the current context
966
+ */
967
+ NOT_SUPPORTED_IN_CURRENT_CONTEXT = 501,
968
+ /**
969
+ Permissions denied by user
970
+ */
971
+ PERMISSION_DENIED = 1000,
972
+ /**
973
+ * Network issue
974
+ */
975
+ NETWORK_ERROR = 2000,
976
+ /**
977
+ * Underlying hardware doesn't support the capability
978
+ */
979
+ NO_HW_SUPPORT = 3000,
980
+ /**
981
+ * One or more arguments are invalid
982
+ */
983
+ INVALID_ARGUMENTS = 4000,
984
+ /**
985
+ * User is not authorized for this operation
986
+ */
987
+ UNAUTHORIZED_USER_OPERATION = 5000,
988
+ /**
989
+ * Could not complete the operation due to insufficient resources
990
+ */
991
+ INSUFFICIENT_RESOURCES = 6000,
992
+ /**
993
+ * Platform throttled the request because of API was invoked too frequently
994
+ */
995
+ THROTTLE = 7000,
996
+ /**
997
+ * User aborted the operation
998
+ */
999
+ USER_ABORT = 8000,
1000
+ /**
1001
+ * Could not complete the operation in the given time interval
1002
+ */
1003
+ OPERATION_TIMED_OUT = 8001,
1004
+ /**
1005
+ * Platform code is old and doesn't implement this API
1006
+ */
1007
+ OLD_PLATFORM = 9000,
1008
+ /**
1009
+ * The file specified was not found on the given location
1010
+ */
1011
+ FILE_NOT_FOUND = 404,
1012
+ /**
1013
+ * The return value is too big and has exceeded our size boundries
1014
+ */
1015
+ SIZE_EXCEEDED = 10000
1016
+ }
1017
+ /** @hidden */
1018
+ export declare enum DevicePermission {
1019
+ GeoLocation = "geolocation",
1020
+ Media = "media"
1021
+ }
1022
+ /** @hidden */
1023
+ export interface HostVersionsInfo {
1024
+ adaptiveCardSchemaVersion?: AdaptiveCardVersion;
1025
+ appEligibilityInformation?: AppEligibilityInformation;
1026
+ }
1027
+ /**
1028
+ * Represents the major and minor versions of the Adaptive Card schema in the current host
1029
+ */
1030
+ export interface AdaptiveCardVersion {
1031
+ /** Represents the major version number. */
1032
+ majorVersion: number;
1033
+ /** Represents the minor version number. */
1034
+ minorVersion: number;
1035
+ }
1036
+ /**
1037
+ * @hidden
1038
+ * Eligibility Information for the app user.
1039
+ *
1040
+ * @beta
1041
+ */
1042
+ export interface AppEligibilityInformation {
1043
+ /**
1044
+ * Describes the user’s age group, which can have implications on which product they are able to use.
1045
+ */
1046
+ ageGroup: LegalAgeGroupClassification | null;
1047
+ /**
1048
+ * Describes the user’s chat experience based on their eligible licenses & their tenant’s eligible licenses.
1049
+ * A user will be in at most one cohort.
1050
+ */
1051
+ cohort: Cohort | null;
1052
+ /**
1053
+ * Feature Sets
1054
+ * If this property is undefined, it indicates that the host is an older version that doesn't support this property.
1055
+ */
1056
+ featureSet?: FeatureSet;
1057
+ /**
1058
+ * Indicates that the user is eligible for Microsoft Entra ID Authenticated Copilot experience.
1059
+ */
1060
+ isCopilotEligible: boolean;
1061
+ /**
1062
+ * Implementation may change to be based on tenant-home region rather than IP.
1063
+ */
1064
+ isCopilotEnabledRegion: boolean;
1065
+ /**
1066
+ * Indicates if the tenant admin has opted the user out of Copilot.
1067
+ */
1068
+ isOptedOutByAdmin: boolean;
1069
+ /**
1070
+ * Education Eligibility Information for the app user
1071
+ */
1072
+ userClassification: UserClassification | null;
1073
+ /**
1074
+ * Describes settings available to the user.
1075
+ * If this property is undefined, it indicates that the host is an older version that doesn't support this property.
1076
+ */
1077
+ settings?: AppSettings | null;
1078
+ }
1079
+ /**
1080
+ * @hidden
1081
+ * @beta
1082
+ * Represents the feature set available to the user.
1083
+ */
1084
+ export interface FeatureSet {
1085
+ /**
1086
+ * Server Feature set
1087
+ */
1088
+ serverFeatures: ReadonlyArray<string>;
1089
+ /**
1090
+ * UX Feature set
1091
+ */
1092
+ uxFeatures: ReadonlyArray<string>;
1093
+ }
1094
+ /**
1095
+ * @hidden
1096
+ *
1097
+ * @beta
1098
+ */
1099
+ export interface UserClassificationWithEduType {
1100
+ /**
1101
+ * For EDU tenants only. Indicates if the tenant is higher ed or K12.
1102
+ */
1103
+ eduType: EduType;
1104
+ /**
1105
+ * Describes additional traits of the user that contribute to FRE experience, etc.
1106
+ */
1107
+ persona: Persona.Faculty | Persona.Student;
1108
+ }
1109
+ /**
1110
+ * @hidden
1111
+ * @beta
1112
+ * Represents the settings set available to the user.
1113
+ */
1114
+ export interface AppSettings {
1115
+ /**
1116
+ * Describes conversation settings available to the user.
1117
+ */
1118
+ conversationSettings?: AppConversationSettings | null;
1119
+ }
1120
+ /**
1121
+ * @hidden
1122
+ * @beta
1123
+ * Represents the conversation settings available to the user.
1124
+ */
1125
+ export interface AppConversationSettings {
1126
+ /**
1127
+ * Indicates OCE admin toggle
1128
+ */
1129
+ isOptionalConnectedExperiencesEnabled: boolean;
1130
+ }
1131
+ /**
1132
+ * @hidden
1133
+ *
1134
+ * @beta
1135
+ */
1136
+ export interface UserClassificationWithOtherType {
1137
+ persona: Persona.Other;
1138
+ }
1139
+ /**
1140
+ * @hidden
1141
+ *
1142
+ * @beta
1143
+ */
1144
+ export type UserClassification = UserClassificationWithEduType | UserClassificationWithOtherType;
1145
+ /**
1146
+ * @hidden
1147
+ *
1148
+ * @beta
1149
+ */
1150
+ export declare enum Cohort {
1151
+ BCAIS = "bcais",
1152
+ BCWAF = "bcwaf",
1153
+ BCWBF = "bcwbf"
1154
+ }
1155
+ /**
1156
+ * @hidden
1157
+ *
1158
+ * @beta
1159
+ */
1160
+ export declare enum Persona {
1161
+ /**
1162
+ * User has a faculty license
1163
+ */
1164
+ Faculty = "faculty",
1165
+ /**
1166
+ * User has a student license
1167
+ */
1168
+ Student = "student",
1169
+ /**
1170
+ * When user is not a faculty or student
1171
+ */
1172
+ Other = "other"
1173
+ }
1174
+ /**
1175
+ * @hidden
1176
+ *
1177
+ * @beta
1178
+ */
1179
+ export declare enum LegalAgeGroupClassification {
1180
+ /**
1181
+ * The user is considered an adult based on the age-related regulations of their country or region.
1182
+ */
1183
+ Adult = "adult",
1184
+ /**
1185
+ * The user is a minor but is from a country or region that has no age-related regulations.
1186
+ */
1187
+ MinorNoParentalConsentRequired = "minorNoParentalConsentRequired",
1188
+ /**
1189
+ * Reserved for future use
1190
+ */
1191
+ MinorWithoutParentalConsent = "minorWithoutParentalConsent",
1192
+ /**
1193
+ * The user is considered a minor based on the age-related regulations of their country or region, and the administrator
1194
+ * of the account obtained appropriate consent from a parent or guardian.
1195
+ */
1196
+ MinorWithParentalConsent = "minorWithParentalConsent",
1197
+ /**
1198
+ * The user is from a country or region that has additional age-related regulations, such as the United States,
1199
+ * United Kingdom, European Union, or South Korea, and the user's age is between a minor and an adult age
1200
+ * (as stipulated based on country or region). Generally, this means that teenagers are considered as notAdult in regulated countries.
1201
+ */
1202
+ NotAdult = "notAdult",
1203
+ /**
1204
+ * @deprecated To provide back compatibility for the NonAdult enum value coming from the hubs
1205
+ */
1206
+ NonAdult = "notAdult"
1207
+ }
1208
+ /**
1209
+ * @hidden
1210
+ *
1211
+ * @beta
1212
+ */
1213
+ export declare enum EduType {
1214
+ /**
1215
+ * User is from a tenant labeled as “HigherEd”
1216
+ */
1217
+ HigherEducation = "higherEducation",
1218
+ /**
1219
+ * User is from a tenant labeled as “K12”
1220
+ */
1221
+ K12 = "k12",
1222
+ /**
1223
+ * User is from a tenant labeled as “Others” (e.g. research institutions)
1224
+ */
1225
+ Other = "other"
1226
+ }
1227
+ /**
1228
+ * Currently supported Mime type
1229
+ */
1230
+ export declare enum ClipboardSupportedMimeType {
1231
+ TextPlain = "text/plain",
1232
+ TextHtml = "text/html",
1233
+ ImagePNG = "image/png",
1234
+ ImageJPEG = "image/jpeg"
1235
+ }
1236
+ /**
1237
+ * Clipboard write parameters
1238
+ */
1239
+ export interface ClipboardParams {
1240
+ /** Mime Type of data to be copied to Clipboard */
1241
+ mimeType: ClipboardSupportedMimeType;
1242
+ /** Blob content in Base64 string format */
1243
+ content: string;
1244
+ }
1245
+ /**
1246
+ * Meant for passing data to the app related to host-to-app message performance metrics.
1247
+ */
1248
+ export interface HostToAppPerformanceMetrics {
1249
+ /** The name of the action the host is responding to. */
1250
+ actionName: string;
1251
+ /** The delay the message took traveling from host to app */
1252
+ messageDelay: number;
1253
+ /** The time when the request was dispatched */
1254
+ requestStartedAt: number;
1255
+ }
1256
+ /**
1257
+ * Memory metrics for a specific frame within the app.
1258
+ */
1259
+ export type HostToAppFrameMemoryMetrics = {
1260
+ /**
1261
+ * The amount of RAM consumed by this frame of the app (in KB).
1262
+ */
1263
+ workingSetSizeKB: number;
1264
+ /**
1265
+ * The amount of memory allocated by this frame of the app (in KB).
1266
+ */
1267
+ commitSizeKB: number;
1268
+ /**
1269
+ * Identifies the frame by host and path, e.g. https://example.com/path/.
1270
+ */
1271
+ hostAndPath: string;
1272
+ /**
1273
+ * Identifies the frame by the process hosting its web contents.
1274
+ */
1275
+ processId: number;
1276
+ /**
1277
+ * The nesting level of this frame within the app frame. The top-level frame is 0.
1278
+ */
1279
+ treeLevel: number;
1280
+ };
1281
+ /**
1282
+ * The state of the app in terms of its lifecycle and caching status, which can impact its performance characteristics and memory usage.
1283
+ */
1284
+ export type AppState = 'cached' | 'precached' | 'active';
1285
+ /**
1286
+ * Memory metrics provided by the host for the app.
1287
+ */
1288
+ export type HostMemoryMetrics = {
1289
+ /**
1290
+ * The current state of the app, which can be 'cached', 'precached', or 'active'. This provides insight into the app's lifecycle stage and can help developers understand the performance characteristics and memory usage of their app in different states.
1291
+ */
1292
+ appState: AppState;
1293
+ /**
1294
+ * @deprecated - Use `appState` instead.
1295
+ *
1296
+ * Indicates if the app is in a hidden state to accelerate future launches.
1297
+ */
1298
+ isCached: boolean;
1299
+ /**
1300
+ * @deprecated - Use `appState` instead.
1301
+ *
1302
+ * Indicates if the app is in a preloaded state to accelerate its first launch in the session.
1303
+ */
1304
+ isPrecached: boolean;
1305
+ /**
1306
+ * Indicates whether the app is sharing its hosting process (and therefore its memory metrics) with another top-level app frame.
1307
+ */
1308
+ isSharingProcess: boolean;
1309
+ /**
1310
+ * The amount of RAM currently consumed by all frames of the app (in KB).
1311
+ */
1312
+ totalFrameWorkingSetSizeKB: number;
1313
+ /**
1314
+ * The amount of memory allocated by all frames of the app (in KB).
1315
+ */
1316
+ totalFrameCommitSizeKB: number;
1317
+ /**
1318
+ * A breakdown of the memory metrics by each frame.
1319
+ */
1320
+ frameMemoryMetrics: HostToAppFrameMemoryMetrics[];
1321
+ };