@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,472 @@
1
+ /**
2
+ * @hidden
3
+ * Module to delegate authentication and message extension requests to the host
4
+ * @internal
5
+ * Limited to Microsoft-internal use
6
+ * @module
7
+ */
8
+ import { ResponseHandler } from '../internal/responseHandler';
9
+ import { UUID } from '../public';
10
+ import { ISerializable } from '../public/serializable.interface';
11
+ /*********** BEGIN REQUEST TYPE ************/
12
+ /**
13
+ * @hidden
14
+ * Information about the bot request that should be resent by the host
15
+ * @internal
16
+ * Limited to Microsoft-internal use
17
+ */
18
+ export type IOriginalRequestInfo = IQueryMessageExtensionRequest | IActionExecuteInvokeRequest;
19
+ /**
20
+ * @hidden
21
+ * Parameters OauthWindow
22
+ * @internal
23
+ * Limited to Microsoft-internal use
24
+ */
25
+ export type OauthWindowProperties = {
26
+ /**
27
+ * The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.
28
+ */
29
+ width?: number;
30
+ /**
31
+ * The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.
32
+ */
33
+ height?: number;
34
+ /**
35
+ * Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)
36
+ * If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page
37
+ * to be opened in an external browser. If this flag is `false`, the page will be opened directly within the current hosting application.
38
+ *
39
+ * This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only
40
+ * environment without an embedded browser.
41
+ */
42
+ isExternal?: boolean;
43
+ };
44
+ /**
45
+ * @hidden
46
+ * Parameters for the authentication pop-up. This interface is used exclusively with the externalAppAuthentication APIs
47
+ * @internal
48
+ * Limited to Microsoft-internal use
49
+ */
50
+ export type AuthenticatePopUpParameters = {
51
+ /**
52
+ * The URL for the authentication pop-up.
53
+ */
54
+ url: URL;
55
+ /**
56
+ * The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.
57
+ */
58
+ width?: number;
59
+ /**
60
+ * The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.
61
+ */
62
+ height?: number;
63
+ /**
64
+ * Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)
65
+ * If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in
66
+ * the {@link url} property to be opened in an external browser.
67
+ * If this flag is `false`, the page will be opened directly within the current hosting application.
68
+ *
69
+ * This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only
70
+ * environment without an embedded browser.
71
+ */
72
+ isExternal?: boolean;
73
+ };
74
+ /**
75
+ * @hidden
76
+ * Parameters for SSO authentication. This interface is used exclusively with the externalAppAuthentication APIs
77
+ * @internal
78
+ * Limited to Microsoft-internal use
79
+ */
80
+ export type AuthTokenRequestParameters = {
81
+ /**
82
+ * An optional list of claims which to pass to Microsoft Entra when requesting the access token.
83
+ */
84
+ claims?: string[];
85
+ /**
86
+ * An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
87
+ */
88
+ silent?: boolean;
89
+ };
90
+ /**
91
+ * @hidden
92
+ * Information about the message extension request that should be resent by the host. Corresponds to request schema in https://learn.microsoft.com/microsoftteams/platform/resources/messaging-extension-v3/search-extensions#receive-user-requests
93
+ * @internal
94
+ * Limited to Microsoft-internal use
95
+ */
96
+ export interface IQueryMessageExtensionRequest {
97
+ requestType: OriginalRequestType.QueryMessageExtensionRequest;
98
+ commandId: string;
99
+ parameters: {
100
+ name: string;
101
+ value: string;
102
+ }[];
103
+ queryOptions?: {
104
+ count: number;
105
+ skip: number;
106
+ };
107
+ }
108
+ /**
109
+ * @hidden
110
+ * Information about the Action.Execute request that should be resent by the host. Corresponds to schema in https://adaptivecards.io/explorer/Action.Execute.html
111
+ * @internal
112
+ * Limited to Microsoft-internal use
113
+ */
114
+ export interface IActionExecuteInvokeRequest {
115
+ requestType: OriginalRequestType.ActionExecuteInvokeRequest;
116
+ type: string;
117
+ id: string;
118
+ verb: string;
119
+ data: string | Record<string, unknown>;
120
+ }
121
+ /**
122
+ * @hidden
123
+ * @internal
124
+ * Limited to Microsoft-internal use
125
+ */
126
+ export declare class SerializableActionExecuteInvokeRequest implements ISerializable {
127
+ private invokeRequest;
128
+ constructor(invokeRequest: IActionExecuteInvokeRequest);
129
+ serialize(): object | string;
130
+ }
131
+ /**
132
+ * @beta
133
+ * @hidden
134
+ * Determines if the provided response object is an instance of IActionExecuteResponse
135
+ * @internal
136
+ * Limited to Microsoft-internal use
137
+ * @param response The object to check whether it is of IActionExecuteResponse type
138
+ */
139
+ export declare function isActionExecuteResponse(response: unknown): response is IActionExecuteResponse;
140
+ /**
141
+ * @hidden
142
+ * This is the only allowed value for IActionExecuteInvokeRequest.type. Used for validation
143
+ * @internal
144
+ * Limited to Microsoft-internal use
145
+ */
146
+ export declare const ActionExecuteInvokeRequestType = "Action.Execute";
147
+ /**
148
+ * @hidden
149
+ * Used to differentiate between IOriginalRequestInfo types
150
+ * @internal
151
+ * Limited to Microsoft-internal use
152
+ */
153
+ export declare enum OriginalRequestType {
154
+ ActionExecuteInvokeRequest = "ActionExecuteInvokeRequest",
155
+ QueryMessageExtensionRequest = "QueryMessageExtensionRequest"
156
+ }
157
+ /*********** END REQUEST TYPE ************/
158
+ /*********** BEGIN RESPONSE TYPE ************/
159
+ /**
160
+ * @hidden
161
+ * The response from the bot returned via the host
162
+ * @internal
163
+ * Limited to Microsoft-internal use
164
+ */
165
+ export type IInvokeResponse = IQueryMessageExtensionResponse | IActionExecuteResponse;
166
+ /**
167
+ * @hidden
168
+ * Used to differentiate between IInvokeResponse types
169
+ * @internal
170
+ * Limited to Microsoft-internal use
171
+ */
172
+ export declare enum InvokeResponseType {
173
+ ActionExecuteInvokeResponse = "ActionExecuteInvokeResponse",
174
+ QueryMessageExtensionResponse = "QueryMessageExtensionResponse"
175
+ }
176
+ /**
177
+ * @hidden
178
+ * The response from the bot returned via the host for a message extension query request.
179
+ * @internal
180
+ * Limited to Microsoft-internal use
181
+ */
182
+ export interface IQueryMessageExtensionResponse {
183
+ responseType: InvokeResponseType.QueryMessageExtensionResponse;
184
+ composeExtension?: ComposeExtensionResponse;
185
+ }
186
+ /**
187
+ * @hidden
188
+ * The response from the bot returned via the host for an Action.Execute request.
189
+ * @internal
190
+ * Limited to Microsoft-internal use
191
+ */
192
+ export interface IActionExecuteResponse {
193
+ responseType: InvokeResponseType.ActionExecuteInvokeResponse;
194
+ value: Record<string, unknown>;
195
+ signature?: string;
196
+ statusCode: number;
197
+ type: string;
198
+ }
199
+ /**
200
+ * @hidden
201
+ * @internal
202
+ * Limited to Microsoft-internal use
203
+ */
204
+ export declare class ActionExecuteResponseHandler extends ResponseHandler<IActionExecuteResponse, IActionExecuteResponse> {
205
+ validate(response: IActionExecuteResponse): boolean;
206
+ deserialize(response: IActionExecuteResponse): IActionExecuteResponse;
207
+ }
208
+ /**
209
+ * @hidden
210
+ * The compose extension response returned for a message extension query request. `suggestedActions` will be present only when the type is is 'config' or 'auth'.
211
+ * @internal
212
+ * Limited to Microsoft-internal use
213
+ */
214
+ export type ComposeExtensionResponse = {
215
+ attachmentLayout: AttachmentLayout;
216
+ type: ComposeResultTypes;
217
+ attachments?: QueryMessageExtensionAttachment[];
218
+ suggestedActions?: QueryMessageExtensionSuggestedActions;
219
+ text?: string;
220
+ };
221
+ /**
222
+ * @hidden
223
+ *
224
+ * @internal
225
+ * Limited to Microsoft-internal use
226
+ */
227
+ export type QueryMessageExtensionSuggestedActions = {
228
+ actions: Action[];
229
+ };
230
+ /**
231
+ * @hidden
232
+ *
233
+ * @internal
234
+ * Limited to Microsoft-internal use
235
+ */
236
+ export type Action = {
237
+ type: string;
238
+ title: string;
239
+ value: string;
240
+ };
241
+ /**
242
+ * @hidden
243
+ *
244
+ * @internal
245
+ * Limited to Microsoft-internal use
246
+ */
247
+ export type QueryMessageExtensionCard = {
248
+ contentType: string;
249
+ content: Record<string, unknown>;
250
+ fallbackHtml?: string;
251
+ signature?: string;
252
+ };
253
+ /**
254
+ * @hidden
255
+ *
256
+ * @internal
257
+ * Limited to Microsoft-internal use
258
+ */
259
+ export type QueryMessageExtensionAttachment = QueryMessageExtensionCard & {
260
+ preview?: QueryMessageExtensionCard;
261
+ };
262
+ /**
263
+ * @hidden
264
+ *
265
+ * @internal
266
+ * Limited to Microsoft-internal use
267
+ */
268
+ export type AttachmentLayout = 'grid' | 'list';
269
+ /**
270
+ * @hidden
271
+ *
272
+ * @internal
273
+ * Limited to Microsoft-internal use
274
+ */
275
+ export type ComposeResultTypes = 'auth' | 'config' | 'message' | 'result' | 'silentAuth';
276
+ /*********** END RESPONSE TYPE ************/
277
+ /*********** BEGIN ERROR TYPE ***********/
278
+ export interface InvokeError {
279
+ errorCode: InvokeErrorCode;
280
+ message?: string;
281
+ }
282
+ /**
283
+ * @beta
284
+ * @hidden
285
+ * Determines if the provided error object is an instance of InvokeError
286
+ * @internal
287
+ * Limited to Microsoft-internal use
288
+ * @param err The error object to check whether it is of InvokeError type
289
+ */
290
+ export declare function isInvokeError(err: unknown): err is InvokeError;
291
+ /**
292
+ * @hidden
293
+ *
294
+ * @internal
295
+ * Limited to Microsoft-internal use
296
+ */
297
+ export declare enum InvokeErrorCode {
298
+ INTERNAL_ERROR = "INTERNAL_ERROR"
299
+ }
300
+ /**
301
+ * @hidden
302
+ * Wrapper to differentiate between InvokeError and IInvokeResponse response from host
303
+ * @internal
304
+ * Limited to Microsoft-internal use
305
+ */
306
+ export type InvokeErrorWrapper = InvokeError & {
307
+ responseType: undefined;
308
+ };
309
+ /**
310
+ * @beta
311
+ * @hidden
312
+ * @internal
313
+ * Limited to Microsoft-internal use
314
+ */
315
+ export declare function validateActionExecuteInvokeRequest(actionExecuteRequest: IActionExecuteInvokeRequest): void;
316
+ /**
317
+ * @beta
318
+ * @hidden
319
+ * Signals to the host to perform authentication using the given authentication parameters and then resend the request to the application specified by the app ID with the authentication result.
320
+ * @internal
321
+ * Limited to Microsoft-internal use
322
+ * @param appId ID of the application backend to which the request and authentication response should be sent. This must be a UUID
323
+ * @param authenticateParameters Parameters for the authentication pop-up
324
+ * @param originalRequestInfo Information about the original request that should be resent
325
+ * @returns A promise that resolves to the IInvokeResponse from the application backend and rejects with InvokeError if the host encounters an error while authenticating or resending the request
326
+ */
327
+ export declare function authenticateAndResendRequest(appId: string, authenticateParameters: AuthenticatePopUpParameters, originalRequestInfo: IOriginalRequestInfo): Promise<IInvokeResponse>;
328
+ /**
329
+ * @beta
330
+ * @hidden
331
+ * Signals to the host to perform SSO authentication for the application specified by the app ID
332
+ * @internal
333
+ * Limited to Microsoft-internal use
334
+ * @param appId ID of the application backend for which the host should attempt SSO authentication. This must be a UUID
335
+ * @param authTokenRequest Parameters for SSO authentication
336
+ * @returns A promise that resolves when authentication and succeeds and rejects with InvokeError on failure
337
+ */
338
+ export declare function authenticateWithSSO(appId: string, authTokenRequest: AuthTokenRequestParameters): Promise<void>;
339
+ /**
340
+ * @beta
341
+ * @hidden
342
+ * Signals to the host to perform SSO authentication for the application specified by the app ID and then resend the request to the application backend with the authentication result
343
+ * @internal
344
+ * Limited to Microsoft-internal use
345
+ * @param appId ID of the application backend for which the host should attempt SSO authentication and resend the request and authentication response. This must be a UUID.
346
+ * @param authTokenRequest Parameters for SSO authentication
347
+ * @param originalRequestInfo Information about the original request that should be resent
348
+ * @returns A promise that resolves to the IInvokeResponse from the application backend and rejects with InvokeError if the host encounters an error while authenticating or resending the request
349
+ */
350
+ export declare function authenticateWithSSOAndResendRequest(appId: string, authTokenRequest: AuthTokenRequestParameters, originalRequestInfo: IOriginalRequestInfo): Promise<IInvokeResponse>;
351
+ /**
352
+ * @beta
353
+ * @hidden
354
+ * Signals to the host to perform Oauth2 authentication for the application specified by the title ID
355
+ * @internal
356
+ * Limited to Microsoft-internal use
357
+ * @param titleId ID of the acquisition
358
+ * @param oauthConfigId lookup ID in token store
359
+ * @param oauthWindowParameters parameters for the signIn window
360
+ * @returns A promise that resolves when authentication succeeds and rejects with InvokeError on failure
361
+ */
362
+ export declare function authenticateWithOauth2(titleId: string, oauthConfigId: string, oauthWindowParameters: OauthWindowProperties): Promise<void>;
363
+ /**
364
+ * @beta
365
+ * @hidden
366
+ * API to authenticate power platform connector plugins
367
+ * @internal
368
+ * Limited to Microsoft-internal use
369
+ * @param titleId ID of the acquisition
370
+ * @param signInUrl signInUrl for the connctor page listing the connector. This is optional
371
+ * @param oauthWindowParameters parameters for the signIn window
372
+ * @returns A promise that resolves when authentication succeeds and rejects with InvokeError on failure
373
+ */
374
+ export declare function authenticateWithPowerPlatformConnectorPlugins(titleId: string, signInUrl?: URL, oauthWindowParameters?: OauthWindowProperties): Promise<void>;
375
+ /**
376
+ * Parameters required to authenticate with connectors.
377
+ *
378
+ * @beta
379
+ * @hidden
380
+ * @internal
381
+ * Limited to Microsoft-internal use
382
+ *
383
+ * @property connectorId - The unique identifier for the connector.
384
+ * @property oauthConfigId - The OAuth configuration ID associated with the connector.
385
+ * @property correlationVector - The correlation vector (UUID) for tracking the authentication request. If not provided, one will be generated.
386
+ */
387
+ export interface ConnectorParameters {
388
+ /** The unique identifier for the connector. */
389
+ connectorId: string;
390
+ /** The OAuth configuration ID associated with the connector. */
391
+ oAuthConfigId: string;
392
+ /** The trace ID (UUID) for tracking the authentication request. */
393
+ traceId: UUID;
394
+ /** Optional parameters for the OAuth sign-in window. */
395
+ windowParameters?: OauthWindowProperties;
396
+ }
397
+ export declare class SerializableConnectorParameters implements ISerializable {
398
+ private param;
399
+ constructor(param: ConnectorParameters);
400
+ serialize(): object;
401
+ }
402
+ /**
403
+ * @beta
404
+ * @hidden
405
+ * Signals to the host to perform authentication with connectors using the provided parameters.
406
+ *
407
+ * @internal
408
+ * Limited to Microsoft-internal use
409
+ *
410
+ * @param input - The parameters required for connectors authentication, including connectorId, oauthConfigId, and optional oauthWindowParameters.
411
+ * @returns A promise that resolves when authentication succeeds and rejects with InvokeError on failure.
412
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
413
+ */
414
+ export declare function authenticateWithConnector(input: ConnectorParameters): Promise<void>;
415
+ /**
416
+ * @hidden
417
+ * Represents the possible authentication states for a user in the context of federated connectors.
418
+ *
419
+ * @enum {number}
420
+ * @property {number} Invalid - The authentication state is invalid or not established.
421
+ * @property {number} Valid - The authentication state is valid and the user is authenticated.
422
+ * @property {number} Expired - The authentication state has expired and re-authentication is required.
423
+ * @internal
424
+ * Limited to Microsoft-internal use
425
+ */
426
+ export declare enum UserAuthenticationState {
427
+ /** The authentication state is invalid or not established. */
428
+ Invalid = "Invalid",
429
+ /** The authentication state is valid and the user is authenticated. */
430
+ Valid = "Valid",
431
+ /** The authentication state has expired and re-authentication is required. */
432
+ Expired = "Expired"
433
+ }
434
+ /**
435
+ * @beta
436
+ * @hidden
437
+ * Retrieves the authentication state for a user for a given federated connector.
438
+ *
439
+ * @internal
440
+ * Limited to Microsoft-internal use
441
+ *
442
+ * @param connectorId - The unique identifier for the federated connector.
443
+ * @param oauthConfigId - The OAuth configuration ID associated with the connector.
444
+ * @returns A promise that resolves to the user's authentication state for the federated connector.
445
+ * @throws Error if the capability is not supported or if initialization has not completed.
446
+ */
447
+ export declare function getUserAuthenticationStateForConnector(input: ConnectorParameters): Promise<UserAuthenticationState>;
448
+ /**
449
+ * @beta
450
+ * @hidden
451
+ * Retrieves the authentication state for a user for a given federated connector.
452
+ *
453
+ * @internal
454
+ * Limited to Microsoft-internal use
455
+ *
456
+ * @param connectorId - The unique identifier for the federated connector.
457
+ * @param oauthConfigId - The OAuth configuration ID associated with the connector.
458
+ * @returns A promise that resolves when the connector is successfully disconnected and rejects with InvokeError on failure.
459
+ * @throws Error if the capability is not supported or if initialization has not completed.
460
+ */
461
+ export declare function disconnectConnector(input: ConnectorParameters): Promise<void>;
462
+ /**
463
+ * @hidden
464
+ * Checks if the externalAppAuthentication capability is supported by the host
465
+ * @returns boolean to represent whether externalAppAuthentication capability is supported
466
+ *
467
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
468
+ *
469
+ * @internal
470
+ * Limited to Microsoft-internal use
471
+ */
472
+ export declare function isSupported(): boolean;
@@ -0,0 +1,93 @@
1
+ import { AppId } from '../public';
2
+ import * as externalAppAuthentication from './externalAppAuthentication';
3
+ /**
4
+ * @beta
5
+ * @hidden
6
+ * Signals to the host to perform SSO authentication for the application specified by the app ID, and then send the authResult to the application backend.
7
+ * @internal
8
+ * Limited to Microsoft-internal use
9
+ * @param appId App ID of the app upon whose behalf Copilot is requesting authentication. This must be a UUID.
10
+ * @param conversationId ConversationId To tell the bot what conversation the calls are coming from
11
+ * @param authTokenRequest Parameters for SSO authentication
12
+ * @throws InvokeError if the host encounters an error while authenticating
13
+ * @returns A promise that resolves when authentication succeeds and rejects with InvokeError on failure
14
+ */
15
+ export declare function authenticateWithSSO(appId: AppId, conversationId: string, authTokenRequest: AuthTokenRequestParametersForCEA): Promise<void>;
16
+ /**
17
+ * @beta
18
+ * @hidden
19
+ * Signals to the host to perform authentication using the given authentication parameters and then send the auth result to the application backend.
20
+ * @internal
21
+ * Limited to Microsoft-internal use
22
+ * @param appId App ID of the app upon whose behalf Copilot is requesting authentication. This must be a UUID.
23
+ * @param conversationId ConversationId To tell the bot what conversation the calls are coming from
24
+ * @param authenticateParameters Parameters for the authentication pop-up
25
+ * @throws InvokeError if the host encounters an error while authenticating
26
+ * @returns A promise that resolves from the application backend and rejects with InvokeError if the host encounters an error while authenticating
27
+ */
28
+ export declare function authenticateWithOauth(appId: AppId, conversationId: string, authenticateParameters: externalAppAuthentication.AuthenticatePopUpParameters): Promise<void>;
29
+ /**
30
+ * @beta
31
+ * @hidden
32
+ * Signals to the host to perform authentication using the given authentication parameters and then resend the request to the application backend with the authentication result.
33
+ * @internal
34
+ * Limited to Microsoft-internal use
35
+ * @param appId App ID of the app upon whose behalf Copilot is requesting authentication. This must be a UUID.
36
+ * @param conversationId ConversationId To tell the bot what conversation the calls are coming from
37
+ * @param authenticateParameters Parameters for the authentication pop-up
38
+ * @param originalRequestInfo Information about the original request that should be resent
39
+ * @throws InvokeError if the host encounters an error while authenticating or resending the request
40
+ * @returns A promise that resolves to the IActionExecuteResponse from the application backend and rejects with InvokeError if the host encounters an error while authenticating or resending the request
41
+ */
42
+ export declare function authenticateAndResendRequest(appId: AppId, conversationId: string, authenticateParameters: externalAppAuthentication.AuthenticatePopUpParameters, originalRequestInfo: externalAppAuthentication.IActionExecuteInvokeRequest): Promise<externalAppAuthentication.IActionExecuteResponse>;
43
+ /**
44
+ * @hidden
45
+ * Parameters for SSO authentication. This interface is used exclusively with the externalAppAuthentication APIs
46
+ * @internal
47
+ * Limited to Microsoft-internal use
48
+ */
49
+ export type AuthTokenRequestParametersForCEA = externalAppAuthentication.AuthTokenRequestParameters & {
50
+ /**
51
+ * Id to complete the request
52
+ */
53
+ authId: string;
54
+ /**
55
+ * Connection name to complete the request
56
+ */
57
+ connectionName: string;
58
+ };
59
+ /**
60
+ * @beta
61
+ * @hidden
62
+ * Signals to the host to perform SSO authentication for the application specified by the app ID and then resend the request to the application backend with the authentication result and originalRequestInfo
63
+ * @internal
64
+ * Limited to Microsoft-internal use
65
+ * @param appId App ID of the app upon whose behalf Copilot is requesting authentication. This must be a UUID.
66
+ * @param conversationId ConversationId To tell the bot what conversation the calls are coming from
67
+ * @param authTokenRequest Parameters for SSO authentication
68
+ * @param originalRequestInfo Information about the original request that should be resent
69
+ * @throws InvokeError if the host encounters an error while authenticating or resending the request
70
+ * @returns A promise that resolves to the IActionExecuteResponse from the application backend and rejects with InvokeError if the host encounters an error while authenticating or resending the request
71
+ */
72
+ export declare function authenticateWithSSOAndResendRequest(appId: AppId, conversationId: string, authTokenRequest: AuthTokenRequestParametersForCEA, originalRequestInfo: externalAppAuthentication.IActionExecuteInvokeRequest): Promise<externalAppAuthentication.IActionExecuteResponse>;
73
+ /**
74
+ * @beta
75
+ * @hidden
76
+ * Checks if the externalAppAuthenticationForCEA capability is supported by the host
77
+ * @returns boolean to represent whether externalAppAuthenticationForCEA capability is supported
78
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
79
+ * @internal
80
+ * Limited to Microsoft-internal use
81
+ */
82
+ export declare function isSupported(): boolean;
83
+ /**
84
+ * @hidden
85
+ * Checks if the input is valid
86
+ * @param appId App ID of the app upon whose behalf Copilot is requesting authentication. This must be a UUID.
87
+ * @param conversationId ConversationId To tell the bot what conversation the calls are coming from
88
+
89
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
90
+ * @internal
91
+ * Limited to Microsoft-internal use
92
+ */
93
+ export declare function validateInput(appId: AppId, conversationId: string): void;
@@ -0,0 +1,111 @@
1
+ /**
2
+ * @hidden
3
+ * Module to delegate adaptive card action execution to the host
4
+ * @internal
5
+ * Limited to Microsoft-internal use
6
+ * @module
7
+ */
8
+ import { ExternalAppErrorCode } from './constants';
9
+ /**
10
+ * @hidden
11
+ * The type of deeplink action that was executed by the host
12
+ * @internal
13
+ * Limited to Microsoft-internal use
14
+ */
15
+ export declare enum ActionOpenUrlType {
16
+ DeepLinkDialog = "DeepLinkDialog",
17
+ DeepLinkOther = "DeepLinkOther",
18
+ DeepLinkStageView = "DeepLinkStageView",
19
+ GenericUrl = "GenericUrl"
20
+ }
21
+ /**
22
+ * @beta
23
+ * @hidden
24
+ * Error that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
25
+ * and IExternalAppCardActionForCEAService.handleActionOpenUrl
26
+ *
27
+ * @internal
28
+ * Limited to Microsoft-internal use
29
+ */
30
+ export interface ActionOpenUrlError {
31
+ errorCode: ActionOpenUrlErrorCode;
32
+ message?: string;
33
+ }
34
+ /**
35
+ * @beta
36
+ * @hidden
37
+ * Error codes that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
38
+ * and IExternalAppCardActionForCEAService.handleActionOpenUrl
39
+ *
40
+ * @internal
41
+ * Limited to Microsoft-internal use
42
+ */
43
+ export declare enum ActionOpenUrlErrorCode {
44
+ INTERNAL_ERROR = "INTERNAL_ERROR",
45
+ INVALID_LINK = "INVALID_LINK",
46
+ NOT_SUPPORTED = "NOT_SUPPORTED"
47
+ }
48
+ /**
49
+ * @beta
50
+ * @hidden
51
+ * The payload that is used when executing an Adaptive Card Action.Submit
52
+ *
53
+ * @internal
54
+ * Limited to Microsoft-internal use
55
+ */
56
+ export interface IAdaptiveCardActionSubmit {
57
+ id: string;
58
+ data: string | Record<string, unknown>;
59
+ }
60
+ /**
61
+ * @beta
62
+ * @hidden
63
+ * Error that can be thrown from IExternalAppCardActionService.handleActionSubmit
64
+ * and IExternalAppCardActionForCEAService.handleActionSubmit
65
+ *
66
+ * @internal
67
+ * Limited to Microsoft-internal use
68
+ */
69
+ export interface ActionSubmitError {
70
+ errorCode: ExternalAppErrorCode;
71
+ message?: string;
72
+ }
73
+ /**
74
+ * @beta
75
+ * @hidden
76
+ * Delegates an Adaptive Card Action.Submit request to the host for the application with the provided app ID
77
+ * @internal
78
+ * Limited to Microsoft-internal use
79
+ * @param appId ID of the application the request is intended for. This must be a UUID
80
+ * @param actionSubmitPayload The Adaptive Card Action.Submit payload
81
+ * @param cardActionsConfig The card actions configuration. This indicates which subtypes should be handled by this API
82
+ * @returns Promise that resolves when the request is completed and rejects with ActionSubmitError if the request fails
83
+ */
84
+ export declare function processActionSubmit(appId: string, actionSubmitPayload: IAdaptiveCardActionSubmit): Promise<void>;
85
+ /**
86
+ * @beta
87
+ * @hidden
88
+ * Delegates an Adaptive Card Action.OpenUrl request to the host for the application with the provided app ID.
89
+ * If `fromElement` is not provided, the information from the manifest is used to determine whether the URL can
90
+ * be processed by the host. Deep link URLs for plugins are not supported and will result in an error.
91
+ * @internal
92
+ * Limited to Microsoft-internal use
93
+ * @param appId ID of the application the request is intended for. This must be a UUID
94
+ * @param url The URL to open
95
+ * @param fromElement The element on behalf of which the M365 app is making the request.
96
+ * @returns Promise that resolves to ActionOpenUrlType indicating the type of URL that was opened on success and rejects with ActionOpenUrlError if the request fails
97
+ */
98
+ export declare function processActionOpenUrl(appId: string, url: URL, fromElement?: {
99
+ name: 'composeExtensions' | 'plugins';
100
+ }): Promise<ActionOpenUrlType>;
101
+ /**
102
+ * @hidden
103
+ * Checks if the externalAppCardActions capability is supported by the host
104
+ * @returns boolean to represent whether externalAppCardActions capability is supported
105
+ *
106
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
107
+ *
108
+ * @internal
109
+ * Limited to Microsoft-internal use
110
+ */
111
+ export declare function isSupported(): boolean;