@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,648 @@
1
+ /**
2
+ * Module to interact with app initialization and lifecycle.
3
+ * @module
4
+ */
5
+ import * as appHelpers from '../../internal/appHelpers';
6
+ import { AppId } from '../appId';
7
+ import { ChannelType, FrameContexts, HostClientType, HostName, RenderingSurfaces, TeamType, UserTeamRole } from '../constants';
8
+ import { ActionInfo, FileOpenPreference, HostToAppPerformanceMetrics, LocaleInfo } from '../interfaces';
9
+ import * as lifecycle from './lifecycle';
10
+ /** App Initialization Messages */
11
+ export declare const Messages: {
12
+ /** App loaded. */
13
+ AppLoaded: string;
14
+ /** App initialized successfully. */
15
+ Success: string;
16
+ /** App initialization failed. */
17
+ Failure: string;
18
+ /** App initialization expected failure. */
19
+ ExpectedFailure: string;
20
+ };
21
+ /**
22
+ * Describes errors that caused app initialization to fail
23
+ */
24
+ export declare enum FailedReason {
25
+ /**
26
+ * Authentication failed
27
+ */
28
+ AuthFailed = "AuthFailed",
29
+ /**
30
+ * The application timed out
31
+ */
32
+ Timeout = "Timeout",
33
+ /**
34
+ * The app failed for a different reason
35
+ */
36
+ Other = "Other"
37
+ }
38
+ /**
39
+ * Describes expected errors that occurred during an otherwise successful
40
+ * app initialization
41
+ */
42
+ export declare enum ExpectedFailureReason {
43
+ /**
44
+ * There was a permission error
45
+ */
46
+ PermissionError = "PermissionError",
47
+ /**
48
+ * The item was not found
49
+ */
50
+ NotFound = "NotFound",
51
+ /**
52
+ * The network is currently throttled
53
+ */
54
+ Throttling = "Throttling",
55
+ /**
56
+ * The application is currently offline
57
+ */
58
+ Offline = "Offline",
59
+ /**
60
+ * The app failed for a different reason
61
+ */
62
+ Other = "Other"
63
+ }
64
+ /**
65
+ * Represents the failed request sent during a failed app initialization.
66
+ */
67
+ export interface IFailedRequest {
68
+ /**
69
+ * The reason for the failure
70
+ */
71
+ reason: FailedReason;
72
+ /**
73
+ * This property is currently unused.
74
+ */
75
+ message?: string;
76
+ /**
77
+ * Optional authorization header to be sent along with the failure notification.
78
+ * Currently only supported for SSR scenarios.
79
+ */
80
+ authHeader?: string;
81
+ }
82
+ /**
83
+ * Represents the failure request sent during an erroneous app initialization.
84
+ */
85
+ export interface IExpectedFailureRequest {
86
+ /**
87
+ * The reason for the failure
88
+ */
89
+ reason: ExpectedFailureReason;
90
+ /**
91
+ * A message that describes the failure
92
+ */
93
+ message?: string;
94
+ }
95
+ /**
96
+ * Represents application information.
97
+ */
98
+ export interface AppInfo {
99
+ /**
100
+ * The current locale that the user has configured for the app formatted as
101
+ * languageId-countryId (for example, en-us).
102
+ */
103
+ locale: string;
104
+ /**
105
+ * The current UI theme of the host. Possible values: "default", "dark", "contrast" or "glass".
106
+ */
107
+ theme: string;
108
+ /**
109
+ * 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.
110
+ */
111
+ sessionId: string;
112
+ /**
113
+ * Info of the host
114
+ */
115
+ host: AppHostInfo;
116
+ /**
117
+ * More detailed locale info from the user's OS if available. Can be used together with
118
+ * the @microsoft/globe NPM package to ensure your app respects the user's OS date and
119
+ * time format configuration
120
+ */
121
+ osLocaleInfo?: LocaleInfo;
122
+ /**
123
+ * Personal app icon y coordinate position
124
+ */
125
+ iconPositionVertical?: number;
126
+ /**
127
+ * Time when the user clicked on the tab using the date.
128
+ *
129
+ * 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.
130
+ */
131
+ userClickTime?: number;
132
+ /**
133
+ * Time when the user click on the app by using the performance timer API. Useful for measuring elapsed time accurately.
134
+ *
135
+ * 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.
136
+ */
137
+ userClickTimeV2?: number;
138
+ /**
139
+ * The ID of the message from which this task module was launched.
140
+ * This is only available in task modules launched from bot cards.
141
+ */
142
+ messageId?: string;
143
+ /**
144
+ * The ID of the parent message from which this task module was launched.
145
+ * This is only available in task modules launched from bot cards.
146
+ */
147
+ parentMessageId?: string;
148
+ /**
149
+ * Where the user prefers the file to be opened from by default during file open
150
+ */
151
+ userFileOpenPreference?: FileOpenPreference;
152
+ /**
153
+ * ID for the current visible app which is different for across cached sessions. Used for correlating telemetry data.
154
+ */
155
+ appLaunchId?: string;
156
+ /**
157
+ * 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.
158
+ */
159
+ appId?: AppId;
160
+ /**
161
+ * The version of the manifest that the app is running.
162
+ */
163
+ manifestVersion?: string;
164
+ }
165
+ /**
166
+ * Features supported by the host that the app can query for via getContext.
167
+ */
168
+ export type HostFeatures = {
169
+ /**
170
+ * Indicates whether the host supports nested wildcards in valid domains. If true, the host will allow valid domains with nested wildcards (e.g. apps.*.com). If false or undefined, the host will only allow valid domains with a single wildcard level (e.g. *.test.com).
171
+ */
172
+ nestedWildcardsInValidDomains?: boolean;
173
+ /**
174
+ * Indicates whether server side rendering is enabled for the host.
175
+ */
176
+ serverSideRendering?: boolean;
177
+ };
178
+ /**
179
+ * Represents information about the application's host.
180
+ */
181
+ export interface AppHostInfo {
182
+ /**
183
+ * Identifies which host is running your app
184
+ */
185
+ name: HostName;
186
+ /**
187
+ * The client type on which the host is running
188
+ */
189
+ clientType: HostClientType;
190
+ /**
191
+ * 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.
192
+ */
193
+ features?: HostFeatures;
194
+ /**
195
+ * Unique ID for the current Host session for use in correlating telemetry data.
196
+ */
197
+ sessionId: string;
198
+ /**
199
+ * Current ring ID
200
+ */
201
+ ringId?: string;
202
+ /**
203
+ * An array representing the hierarchy of ancestor hosts that the app is embedded inside of.
204
+ * The array is ordered from immediate parent to root host.
205
+ * For example, if Bizchat is running in Calendar in Teams, this would be ["Calendar", "Teams"].
206
+ */
207
+ ancestors?: string[];
208
+ }
209
+ /**
210
+ * Represents Channel information.
211
+ */
212
+ export interface ChannelInfo {
213
+ /**
214
+ * The Microsoft Teams ID for the channel with which the content is associated.
215
+ */
216
+ id: string;
217
+ /**
218
+ * The name for the channel with which the content is associated.
219
+ */
220
+ displayName?: string;
221
+ /**
222
+ * The relative path to the SharePoint folder associated with the channel.
223
+ */
224
+ relativeUrl?: string;
225
+ /**
226
+ * The type of the channel with which the content is associated.
227
+ */
228
+ membershipType?: ChannelType;
229
+ /**
230
+ * The OneNote section ID that is linked to the channel.
231
+ */
232
+ defaultOneNoteSectionId?: string;
233
+ /**
234
+ * The tenant ID of the team which owns the channel.
235
+ */
236
+ ownerTenantId?: string;
237
+ /**
238
+ * The Microsoft Entra group ID of the team which owns the channel.
239
+ */
240
+ ownerGroupId?: string;
241
+ }
242
+ /**
243
+ * Represents Chat information.
244
+ */
245
+ export interface ChatInfo {
246
+ /**
247
+ * The Microsoft Teams ID for the chat with which the content is associated.
248
+ */
249
+ id: string;
250
+ }
251
+ /**
252
+ * Represents Meeting information.
253
+ */
254
+ export interface MeetingInfo {
255
+ /**
256
+ * Meeting Id used by tab when running in meeting context
257
+ */
258
+ id: string;
259
+ }
260
+ /**
261
+ * Represents Page information.
262
+ */
263
+ export interface PageInfo {
264
+ /**
265
+ * The developer-defined unique ID for the page this content points to.
266
+ */
267
+ id: string;
268
+ /**
269
+ * The context where page url is loaded (content, task, setting, remove, sidePanel)
270
+ */
271
+ frameContext: FrameContexts;
272
+ /**
273
+ * The mode or surface where the page is rendered (e.g. sidePanel, meetingStage, etc.)
274
+ * This will be used by the app developers in future to know where in the host the app is rendered instead of the frameContext.
275
+ */
276
+ renderingSurface?: RenderingSurfaces;
277
+ /**
278
+ * The developer-defined unique ID for the sub-page this content points to.
279
+ * This field should be used to restore to a specific state within a page,
280
+ * such as scrolling to or activating a specific piece of content.
281
+ */
282
+ subPageId?: string;
283
+ /**
284
+ * Indication whether the page is in full-screen mode.
285
+ */
286
+ isFullScreen?: boolean;
287
+ /**
288
+ * Indication whether the page is in a pop out window
289
+ */
290
+ isMultiWindow?: boolean;
291
+ /**
292
+ * Indicates whether the page is being loaded in the background as
293
+ * part of an opt-in performance enhancement.
294
+ */
295
+ isBackgroundLoad?: boolean;
296
+ /**
297
+ * Source origin from where the page is opened
298
+ */
299
+ sourceOrigin?: string;
300
+ }
301
+ /**
302
+ * Represents Team information.
303
+ */
304
+ export interface TeamInfo {
305
+ /**
306
+ * The Microsoft Teams ID for the team with which the content is associated.
307
+ */
308
+ internalId: string;
309
+ /**
310
+ * The name for the team with which the content is associated.
311
+ */
312
+ displayName?: string;
313
+ /**
314
+ * The type of the team.
315
+ */
316
+ type?: TeamType;
317
+ /**
318
+ * The Office 365 group ID for the team with which the content is associated.
319
+ * This field is available only when the identity permission is requested in the manifest.
320
+ */
321
+ groupId?: string;
322
+ /**
323
+ * Indicates whether team is archived.
324
+ * Apps should use this as a signal to prevent any changes to content associated with archived teams.
325
+ */
326
+ isArchived?: boolean;
327
+ /**
328
+ * Team Template ID if there was a Team Template associated with the creation of the team.
329
+ */
330
+ templateId?: string;
331
+ /**
332
+ * The user's role in the team.
333
+
334
+ * Because a malicious party can run your content in a browser, this value should
335
+ * be used only as a hint as to the user's role, and never as proof of her role.
336
+ */
337
+ userRole?: UserTeamRole;
338
+ }
339
+ /**
340
+ * Represents User information.
341
+ */
342
+ export interface UserInfo {
343
+ /**
344
+ * The Microsoft Entra object id of the current user.
345
+ *
346
+ * Because a malicious party can run your content in a browser, this value should
347
+ * be used only as a optimization hint as to who the user is and never as proof of identity.
348
+ * Specifically, this value should never be used to determine if a user is authorized to access
349
+ * a resource; access tokens should be used for that.
350
+ * See {@link authentication.getAuthToken} and {@link authentication.authenticate} for more information on access tokens.
351
+ *
352
+ * This field is available only when the identity permission is requested in the manifest.
353
+ */
354
+ id: string;
355
+ /**
356
+ * The address book name of the current user.
357
+ */
358
+ displayName?: string;
359
+ /**
360
+ * Represents whether calling is allowed for the current logged in User
361
+ */
362
+ isCallingAllowed?: boolean;
363
+ /**
364
+ * Represents whether PSTN calling is allowed for the current logged in User
365
+ */
366
+ isPSTNCallingAllowed?: boolean;
367
+ /**
368
+ * The license type for the current user. Possible values are:
369
+ * "Unknown", "Teacher", "Student", "Free", "SmbBusinessVoice", "SmbNonVoice", "FrontlineWorker", "Anonymous"
370
+ */
371
+ licenseType?: string;
372
+ /**
373
+ * A value suitable for use when providing a login_hint to Microsoft Entra ID for authentication purposes.
374
+ * See [Provide optional claims to your app](https://learn.microsoft.com/azure/active-directory/develop/active-directory-optional-claims#v10-and-v20-optional-claims-set)
375
+ * for more information about the use of login_hint
376
+ *
377
+ * Because a malicious party can run your content in a browser, this value should
378
+ * be used only as a optimization hint as to who the user is and never as proof of identity.
379
+ * Specifically, this value should never be used to determine if a user is authorized to access
380
+ * a resource; access tokens should be used for that.
381
+ * See {@link authentication.getAuthToken} and {@link authentication.authenticate} for more information on access tokens.
382
+ */
383
+ loginHint?: string;
384
+ /**
385
+ * The UPN of the current user. This may be an externally-authenticated UPN (e.g., guest users).
386
+
387
+ * Because a malicious party can run your content in a browser, this value should
388
+ * be used only as a optimization hint as to who the user is and never as proof of identity.
389
+ * Specifically, this value should never be used to determine if a user is authorized to access
390
+ * a resource; access tokens should be used for that.
391
+ * See {@link authentication.getAuthToken} and {@link authentication.authenticate} for more information on access tokens.
392
+ */
393
+ userPrincipalName?: string;
394
+ /**
395
+ * The tenant related info of the current user.
396
+ */
397
+ tenant?: TenantInfo;
398
+ }
399
+ /**
400
+ * Represents Tenant information.
401
+ */
402
+ export interface TenantInfo {
403
+ /**
404
+ * The Microsoft Entra tenant ID of the current user.
405
+
406
+ * Because a malicious party can run your content in a browser, this value should
407
+ * be used only as a optimization hint as to who the user is and never as proof of identity.
408
+ * Specifically, this value should never be used to determine if a user is authorized to access
409
+ * a resource; access tokens should be used for that.
410
+ * See {@link authentication.getAuthToken} and {@link authentication.authenticate} for more information on access tokens.
411
+ */
412
+ id: string;
413
+ /**
414
+ * The type of license for the current user's tenant. Possible values are enterprise, free, edu, and unknown.
415
+ */
416
+ teamsSku?: string;
417
+ }
418
+ /** Represents information about a SharePoint site */
419
+ export interface SharePointSiteInfo {
420
+ /**
421
+ * The root SharePoint site associated with the team.
422
+ */
423
+ teamSiteUrl?: string;
424
+ /**
425
+ * The domain of the root SharePoint site associated with the team.
426
+ */
427
+ teamSiteDomain?: string;
428
+ /**
429
+ * The relative path to the SharePoint site associated with the team.
430
+ */
431
+ teamSitePath?: string;
432
+ /**
433
+ * Teamsite ID, aka sharepoint site id.
434
+ */
435
+ teamSiteId?: string;
436
+ /**
437
+ * The SharePoint my site domain associated with the user.
438
+ */
439
+ mySiteDomain?: string;
440
+ /**
441
+ * The SharePoint relative path to the current users mysite
442
+ */
443
+ mySitePath?: string;
444
+ }
445
+ /**
446
+ * Represents structure of the received context message.
447
+ */
448
+ export interface Context {
449
+ /**
450
+ * Content Action Info
451
+ *
452
+ * @beta
453
+ */
454
+ actionInfo?: ActionInfo;
455
+ /**
456
+ * Properties about the current session for your app
457
+ */
458
+ app: AppInfo;
459
+ /**
460
+ * Info about the current page context hosting your app
461
+ */
462
+ page: PageInfo;
463
+ /**
464
+ * Info about the currently logged in user running the app.
465
+ * If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined participant) this will be `undefined`.
466
+ */
467
+ user?: UserInfo;
468
+ /**
469
+ * When running in the context of a Teams channel, provides information about the channel, else `undefined`
470
+ */
471
+ channel?: ChannelInfo;
472
+ /**
473
+ * When running in the context of a Teams chat, provides information about the chat, else `undefined`
474
+ */
475
+ chat?: ChatInfo;
476
+ /**
477
+ * When running in the context of a Teams meeting, provides information about the meeting, else `undefined`
478
+ */
479
+ meeting?: MeetingInfo;
480
+ /**
481
+ * When hosted in SharePoint, this is the [SharePoint PageContext](https://learn.microsoft.com/javascript/api/sp-page-context/pagecontext?view=sp-typescript-latest), else `undefined`
482
+ */
483
+ sharepoint?: any;
484
+ /**
485
+ * When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.
486
+ * Will be `undefined` when not running in Teams for an organization with a tenant.
487
+ */
488
+ sharePointSite?: SharePointSiteInfo;
489
+ /**
490
+ * When running in Teams, provides information about the Team context in which your app is running.
491
+ * Will be `undefined` when not running in Teams.
492
+ */
493
+ team?: TeamInfo;
494
+ /**
495
+ * 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`.
496
+ * App developers need to use these `extractedParameters` in their dialog.
497
+ * They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.
498
+ * If there's no key/value pairs passed, the object will be empty in the case
499
+ */
500
+ dialogParameters: Record<string, string>;
501
+ }
502
+ /**
503
+ * This function is passed to registerOnThemeHandler. It is called every time the user changes their theme.
504
+ */
505
+ export type themeHandler = (theme: string) => void;
506
+ /**
507
+ * @hidden
508
+ * This function is passed to registerOnContextChangeHandler. It is called every time the user changes their context.
509
+ *
510
+ * @internal
511
+ * Limited to Microsoft-internal use
512
+ */
513
+ export type contextHandler = (context: Context) => void;
514
+ /**
515
+ * This function is passed to registerHostToAppPerformanceMetricsHandler. It is called every time a response is received from the host with metrics for analyzing message delay. See {@link HostToAppPerformanceMetrics} to see which metrics are passed to the handler.
516
+ */
517
+ export type HostToAppPerformanceMetricsHandler = (metrics: HostToAppPerformanceMetrics) => void;
518
+ /**
519
+ * Checks whether the Teams client SDK has been initialized.
520
+ * @returns whether the Teams client SDK has been initialized.
521
+ */
522
+ export declare function isInitialized(): boolean;
523
+ /**
524
+ * Gets the Frame Context that the App is running in. See {@link FrameContexts} for the list of possible values.
525
+ * @returns the Frame Context.
526
+ */
527
+ export declare function getFrameContext(): FrameContexts | undefined;
528
+ /**
529
+ * Initializes the library.
530
+ *
531
+ * @remarks
532
+ * Initialize must have completed successfully (as determined by the resolved Promise) before any other library calls are made
533
+ *
534
+ * @param validMessageOrigins - Optionally specify a list of cross-frame message origins. This parameter is used if you know that your app
535
+ * will be hosted on a custom domain (i.e., not a standard Microsoft 365 host like Teams, Outlook, etc.) Most apps will never need
536
+ * to pass a value for this parameter.
537
+ * Any domains passed in the array must define a scheme to be able to be processed. Examples: https://www.example.com, chrome://
538
+ * @returns Promise that will be fulfilled when initialization has completed, or rejected if the initialization fails or times out
539
+ */
540
+ export declare function initialize(validMessageOrigins?: string[]): Promise<void>;
541
+ /**
542
+ * @hidden
543
+ * Undocumented function used to set a mock window for unit tests
544
+ *
545
+ * @internal
546
+ * Limited to Microsoft-internal use
547
+ */
548
+ export declare function _initialize(hostWindow: any): void;
549
+ /**
550
+ * @hidden
551
+ * Undocumented function used to clear state between unit tests
552
+ *
553
+ * @internal
554
+ * Limited to Microsoft-internal use
555
+ */
556
+ export declare function _uninitialize(): void;
557
+ /**
558
+ * Retrieves the current context the frame is running in.
559
+ *
560
+ * @returns Promise that will resolve with the {@link app.Context} object.
561
+ */
562
+ export declare function getContext(): Promise<Context>;
563
+ /**
564
+ * Notifies the frame that app has loaded and to hide the loading indicator if one is shown.
565
+ */
566
+ export declare function notifyAppLoaded(): void;
567
+ /**
568
+ * Notifies the frame that app initialization is successful and is ready for user interaction.
569
+ */
570
+ export declare function notifySuccess(): Promise<appHelpers.NotifySuccessResponse>;
571
+ /**
572
+ * Notifies the frame that app initialization has failed and to show an error page in its place.
573
+ *
574
+ * @param appInitializationFailedRequest - The failure request containing the reason for why the app failed
575
+ * during initialization as well as an optional message.
576
+ */
577
+ export declare function notifyFailure(appInitializationFailedRequest: IFailedRequest): void;
578
+ /**
579
+ * Notifies the frame that app initialized with some expected errors.
580
+ *
581
+ * @param expectedFailureRequest - The expected failure request containing the reason and an optional message
582
+ */
583
+ export declare function notifyExpectedFailure(expectedFailureRequest: IExpectedFailureRequest): void;
584
+ /**
585
+ * Registers a handler for theme changes.
586
+ *
587
+ * @remarks
588
+ * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
589
+ *
590
+ * @param handler - The handler to invoke when the user changes their theme.
591
+ */
592
+ export declare function registerOnThemeChangeHandler(handler: themeHandler): void;
593
+ /**
594
+ * @hidden
595
+ * Registers a handler for content (context) changes.
596
+ *
597
+ * @remarks
598
+ * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
599
+ *
600
+ * @param handler - The handler to invoke when the app's content context changes.
601
+ *
602
+ * @internal
603
+ * Limited to Microsoft-internal use
604
+ */
605
+ export declare function registerOnContextChangeHandler(handler: contextHandler): void;
606
+ /**
607
+ * Registers a function for handling data of host to app message delay.
608
+ *
609
+ * @remarks
610
+ * Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
611
+ *
612
+ * @param handler - The handler to invoke when the metrics are available on each function response.
613
+ */
614
+ export declare function registerHostToAppPerformanceMetricsHandler(handler: HostToAppPerformanceMetricsHandler): void;
615
+ /**
616
+ * This function opens deep links to other modules in the host such as chats or channels or
617
+ * general-purpose links (to external websites). It should not be used for navigating to your
618
+ * own or other apps.
619
+ *
620
+ * @remarks
621
+ * If you need to navigate to your own or other apps, use:
622
+ *
623
+ * - {@link pages.currentApp.navigateToDefaultPage} for navigating to the default page of your own app
624
+ * - {@link pages.currentApp.navigateTo} for navigating to a section of your own app
625
+ * - {@link pages.navigateToApp} for navigating to other apps besides your own
626
+ *
627
+ * Many areas of functionality previously provided by deep links are now handled by strongly-typed functions in capabilities.
628
+ * If your app is using a deep link to trigger these specific components, use the strongly-typed alternatives.
629
+ * For example (this list is not exhaustive):
630
+ * - To open an app installation dialog, use the {@link appInstallDialog} capability
631
+ * - To start a call, use the {@link call} capability
632
+ * - To open a chat, use the {@link chat} capability
633
+ * - To open a dialog, use the {@link dialog} capability
634
+ * - To create a new meeting, use the {@link calendar.composeMeeting} function
635
+ * - To open a Stage View, use the {@link stageView} capability
636
+ *
637
+ * In each of these capabilities, you can use the `isSupported()` function to determine if the host supports that capability.
638
+ * When using a deep link to trigger these components, there's no way to determine whether the host supports it.
639
+ *
640
+ * For more information on crafting deep links to the host, see [Configure deep links](https://learn.microsoft.com/microsoftteams/platform/concepts/build-and-test/deep-links)
641
+ *
642
+ * @param deepLink The host deep link or external web URL to which to navigate
643
+ * @returns `Promise` that will be fulfilled when the navigation has initiated. A successful `Promise` resolution
644
+ * does not necessarily indicate whether the target loaded successfully.
645
+ */
646
+ export declare function openLink(deepLink: string): Promise<void>;
647
+ export { lifecycle };
648
+ export { NotifySuccessResponse } from '../../internal/appHelpers';
@@ -0,0 +1,41 @@
1
+ /**
2
+ * A module for enabling the suspension or delayed termination of an app when the user navigates away.
3
+ * When an app registers for the registerBeforeSuspendOrTerminateHandler, it chooses to delay termination.
4
+ * When an app registers for both registerBeforeSuspendOrTerminateHandler and registerOnResumeHandler, it chooses the suspension of the app .
5
+ * Please note that selecting suspension doesn't guarantee prevention of background termination.
6
+ * The outcome is influenced by factors such as available memory and the number of suspended apps.
7
+ *
8
+ * @beta
9
+ * @module
10
+ */
11
+ import { ResumeContext } from '../interfaces';
12
+ /**
13
+ * Register on resume handler function type
14
+ *
15
+ * @param context - Data structure to be used to pass the context to the app.
16
+ */
17
+ export type registerOnResumeHandlerFunctionType = (context: ResumeContext) => void;
18
+ /**
19
+ * Register before suspendOrTerminate handler function type
20
+ *
21
+ * @returns void
22
+ */
23
+ export type registerBeforeSuspendOrTerminateHandlerFunctionType = () => Promise<void>;
24
+ /**
25
+ * Registers a handler to be called before the page is suspended or terminated. Once a user navigates away from an app,
26
+ * the handler will be invoked. App developers can use this handler to save unsaved data, pause sync calls etc.
27
+ *
28
+ * @param handler - The handler to invoke before the page is suspended or terminated. When invoked, app can perform tasks like cleanups, logging etc.
29
+ * Upon returning, the app will be suspended or terminated.
30
+ *
31
+ */
32
+ export declare function registerBeforeSuspendOrTerminateHandler(handler: registerBeforeSuspendOrTerminateHandlerFunctionType): void;
33
+ /**
34
+ * Registers a handler to be called when the page has been requested to resume from being suspended.
35
+ *
36
+ * @param handler - The handler to invoke when the page is requested to be resumed. The app is supposed to navigate to
37
+ * the appropriate page using the ResumeContext. Once done, the app should then call {@link notifySuccess}.
38
+ *
39
+ * @beta
40
+ */
41
+ export declare function registerOnResumeHandler(handler: registerOnResumeHandlerFunctionType): void;