@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,38 @@
1
+ import { ISerializable } from './serializable.interface';
2
+ /**
3
+ * @internal
4
+ * Limited to Microsoft-internal use
5
+ *
6
+ * Represents a UUID (Universally Unique Identifier) object.
7
+ * This class provides a way to generate, validate, and represent UUIDs as strings.
8
+ */
9
+ export declare class UUID implements ISerializable {
10
+ private readonly uuid;
11
+ /**
12
+ * Creates an instance of the UUID class.
13
+ * If no UUID string is provided, a new UUID is generated.
14
+ *
15
+ * @param {string} [uuid=generateGUID()] - The UUID string. Defaults to a newly generated UUID.
16
+ * @throws {Error} - Throws an error if the provided UUID is invalid.
17
+ */
18
+ constructor(uuid?: string);
19
+ /**
20
+ * Returns the UUID as a string.
21
+ *
22
+ * @returns {string} - The UUID string.
23
+ */
24
+ toString(): string;
25
+ /**
26
+ * @returns A serializable representation of an uuid, used for passing uuids to the host.
27
+ */
28
+ serialize(): object | string;
29
+ }
30
+ /**
31
+ * @hidden
32
+ * Checks if the incoming id is an instance of ValidatedSafeString
33
+ * @param id An object to check if it's an instance of ValidatedSafeString
34
+ * @throws Error with a message describing the violation
35
+ * @internal
36
+ * Limited to Microsoft-internal use
37
+ */
38
+ export declare function validateUuidInstance(id: UUID): void;
@@ -0,0 +1,25 @@
1
+ import { ISerializable } from './serializable.interface';
2
+ /**
3
+ * A strongly typed class used to represent a "valid" string id.
4
+ */
5
+ export declare class ValidatedSafeString implements ISerializable {
6
+ private readonly idAsString;
7
+ /**
8
+ * Creates a strongly-typed Id from a string
9
+ *
10
+ * @param idAsString An id represented as a string
11
+ * @throws Error with a message describing the exact validation violation
12
+ */
13
+ constructor(idAsString: string);
14
+ /**
15
+ * @hidden
16
+ * @internal
17
+ *
18
+ * @returns A serializable representation of an AppId, used for passing AppIds to the host.
19
+ */
20
+ serialize(): object | string;
21
+ /**
22
+ * Returns the app id as a string
23
+ */
24
+ toString(): string;
25
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @hidden
3
+ * Package version.
4
+ */
5
+ export declare const version = "ERROR: This value should be replaced by webpack!";
@@ -0,0 +1,212 @@
1
+ /**
2
+ * Module to support video extensibility of the SDK
3
+ * @beta
4
+ * @module
5
+ */
6
+ /** Notify video frame processed function type */
7
+ export type notifyVideoFrameProcessedFunctionType = () => void;
8
+ /** Notify error function type */
9
+ export type notifyErrorFunctionType = (errorMessage: string) => void;
10
+ /**
11
+ * Represents a video frame
12
+ * @beta
13
+ */
14
+ export interface VideoBufferData {
15
+ /**
16
+ * Video frame width
17
+ */
18
+ width: number;
19
+ /**
20
+ * Video frame height
21
+ */
22
+ height: number;
23
+ /**
24
+ * Video frame buffer
25
+ */
26
+ videoFrameBuffer: Uint8ClampedArray;
27
+ /**
28
+ * NV12 luma stride, valid only when video frame format is NV12
29
+ */
30
+ lumaStride?: number;
31
+ /**
32
+ * NV12 chroma stride, valid only when video frame format is NV12
33
+ */
34
+ chromaStride?: number;
35
+ /**
36
+ * RGB stride, valid only when video frame format is RGB
37
+ */
38
+ stride?: number;
39
+ /**
40
+ * The time stamp of the current video frame
41
+ */
42
+ timestamp?: number;
43
+ }
44
+ /**
45
+ * Video frame format enum, currently only support NV12
46
+ * @beta
47
+ */
48
+ export declare enum VideoFrameFormat {
49
+ /** Video format used for encoding and decoding YUV color data in video streaming and storage applications. */
50
+ NV12 = "NV12"
51
+ }
52
+ /**
53
+ * Video frame configuration supplied to the host to customize the generated video frame parameters, like format
54
+ * @beta
55
+ */
56
+ export interface VideoFrameConfig {
57
+ /**
58
+ * Video format
59
+ */
60
+ format: VideoFrameFormat;
61
+ }
62
+ /**
63
+ * Video effect change type enum
64
+ * @beta
65
+ */
66
+ export declare enum EffectChangeType {
67
+ /**
68
+ * Current video effect changed
69
+ */
70
+ EffectChanged = "EffectChanged",
71
+ /**
72
+ * Disable the video effect
73
+ */
74
+ EffectDisabled = "EffectDisabled"
75
+ }
76
+ /**
77
+ * Predefined failure reasons for preparing the selected video effect
78
+ * @beta
79
+ */
80
+ export declare enum EffectFailureReason {
81
+ /**
82
+ * A wrong effect id is provide.
83
+ * Use this reason when the effect id is not found or empty, this may indicate a mismatch between the app and its manifest or a bug of the host.
84
+ */
85
+ InvalidEffectId = "InvalidEffectId",
86
+ /**
87
+ * The effect can't be initialized
88
+ */
89
+ InitializationFailure = "InitializationFailure"
90
+ }
91
+ /**
92
+ * Video effect change call back function definition
93
+ * Return a Promise which will be resolved when the effect is prepared, or throw an {@link EffectFailureReason} on error.
94
+ * @beta
95
+ */
96
+ export type VideoEffectCallback = (effectId: string | undefined) => Promise<void>;
97
+ /**
98
+ * @beta
99
+ * Video frame call back function definition
100
+ * The callback will be called on every frame when running on the supported host.
101
+ * We require the frame rate of the video to be at least 22fps for 720p, thus the callback should process a frame timely.
102
+ * The video app should call `notifyVideoFrameProcessed` to notify a successfully processed video frame.
103
+ * The video app should call `notifyError` to notify a failure. When the failures accumulate to a certain number, the host will see the app is "frozen" and ask the user to close it or not.
104
+ */
105
+ export type VideoBufferHandler = (videoBufferData: VideoBufferData, notifyVideoFrameProcessed: notifyVideoFrameProcessedFunctionType, notifyError: notifyErrorFunctionType) => void;
106
+ /**
107
+ * @beta
108
+ * VideoFrame definition, align with the W3C spec: https://www.w3.org/TR/webcodecs/#videoframe-interface.
109
+ * The current version of typescript doesn't have the definition of VideoFrame so we have to define it here.
110
+ * At runtime it can be cast to VideoFrame directly: `(videoFrame as VideoFrame)`.
111
+ */
112
+ export interface VideoFrame {
113
+ }
114
+ /**
115
+ * @beta
116
+ * Video frame data extracted from the media stream. More properties may be added in the future.
117
+ */
118
+ export type VideoFrameData = {
119
+ /**
120
+ * The video frame from the media stream.
121
+ */
122
+ videoFrame: VideoFrame;
123
+ };
124
+ /**
125
+ * @beta
126
+ * Video frame call back function definition.
127
+ * The callback will be called on every frame when running on the supported host.
128
+ * We require the frame rate of the video to be at least 22fps for 720p, thus the callback should process a frame timely.
129
+ * The video app should resolve the promise to notify a successfully processed video frame.
130
+ * The video app should reject the promise to notify a failure. When the failures accumulate to a certain number, the host will see the app is "frozen" and ask the user to close it or not.
131
+ */
132
+ export type VideoFrameHandler = (receivedVideoFrame: VideoFrameData) => Promise<VideoFrame>;
133
+ /**
134
+ * @beta
135
+ * Callbacks and configuration supplied to the host to process the video frames.
136
+ */
137
+ export type RegisterForVideoFrameParameters = {
138
+ /**
139
+ * Callback function to process the video frames extracted from a media stream.
140
+ */
141
+ videoFrameHandler: VideoFrameHandler;
142
+ /**
143
+ * Callback function to process the video frames shared by the host.
144
+ */
145
+ videoBufferHandler: VideoBufferHandler;
146
+ /**
147
+ * Video frame configuration supplied to the host to customize the generated video frame parameters, like format
148
+ */
149
+ config: VideoFrameConfig;
150
+ };
151
+ /**
152
+ * Register callbacks to process the video frames if the host supports it.
153
+ * @beta
154
+ * @param parameters - Callbacks and configuration to process the video frames. A host may support either {@link VideoFrameHandler} or {@link VideoBufferHandler}, but not both.
155
+ * To ensure the video effect works on all supported hosts, the video app must provide both {@link VideoFrameHandler} and {@link VideoBufferHandler}.
156
+ * The host will choose the appropriate callback based on the host's capability.
157
+ *
158
+ * @example
159
+ * ```typescript
160
+ * videoEffects.registerForVideoFrame({
161
+ * videoFrameHandler: async (videoFrameData) => {
162
+ * const originalFrame = videoFrameData.videoFrame as VideoFrame;
163
+ * try {
164
+ * const processedFrame = await processFrame(originalFrame);
165
+ * return processedFrame;
166
+ * } catch (e) {
167
+ * throw e;
168
+ * }
169
+ * },
170
+ * videoBufferHandler: (
171
+ * bufferData: VideoBufferData,
172
+ * notifyVideoFrameProcessed: notifyVideoFrameProcessedFunctionType,
173
+ * notifyError: notifyErrorFunctionType
174
+ * ) => {
175
+ * try {
176
+ * processFrameInplace(bufferData);
177
+ * notifyVideoFrameProcessed();
178
+ * } catch (e) {
179
+ * notifyError(e);
180
+ * }
181
+ * },
182
+ * config: {
183
+ * format: videoEffects.VideoPixelFormat.NV12,
184
+ * }
185
+ * });
186
+ * ```
187
+ */
188
+ export declare function registerForVideoFrame(parameters: RegisterForVideoFrameParameters): void;
189
+ /**
190
+ * Video extension should call this to notify host that the current selected effect parameter changed.
191
+ * If it's pre-meeting, host will call videoEffectCallback immediately then use the videoEffect.
192
+ * If it's the in-meeting scenario, we will call videoEffectCallback when apply button clicked.
193
+ * @beta
194
+ * @param effectChangeType - the effect change type.
195
+ * @param effectId - Newly selected effect id.
196
+ */
197
+ export declare function notifySelectedVideoEffectChanged(effectChangeType: EffectChangeType, effectId: string | undefined): void;
198
+ /**
199
+ * Register a callback to be notified when a new video effect is applied.
200
+ * @beta
201
+ * @param callback - Function to be called when new video effect is applied.
202
+ */
203
+ export declare function registerForVideoEffect(callback: VideoEffectCallback): void;
204
+ /**
205
+ * Checks if video capability is supported by the host.
206
+ * @beta
207
+ * @returns boolean to represent whether the video capability is supported
208
+ *
209
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
210
+ *
211
+ */
212
+ export declare function isSupported(): boolean;
@@ -0,0 +1,64 @@
1
+ /**
2
+ * @hidden
3
+ * To enable this image capability will let the app developer ask the user to get images from camera/local storage
4
+ *
5
+ * @beta
6
+ * @module
7
+ */
8
+ import { VisualMediaProps } from '../../internal/visualMediaHelpers';
9
+ import { CameraProps, GalleryProps, VisualMediaFile } from './visualMedia';
10
+ /**
11
+ * @hidden
12
+ * CameraImageProperties is for the image taken from the camera
13
+ *
14
+ * @beta
15
+ */
16
+ export interface CameraImageProperties extends VisualMediaProps {
17
+ /**
18
+ * @hidden
19
+ * The source in CameraImageProperties should always be CameraProps
20
+ */
21
+ sourceProps: CameraProps;
22
+ }
23
+ /**
24
+ * @hidden
25
+ * CameraImageProperties is for the image taken from the camera
26
+ *
27
+ * @beta
28
+ */
29
+ export interface GalleryImageProperties extends VisualMediaProps {
30
+ /**
31
+ * @hidden
32
+ * The source in GalleryImageProperties should always be GalleryProps
33
+ */
34
+ sourceProps: GalleryProps;
35
+ }
36
+ /**
37
+ * @hidden
38
+ * Capture one or multiple image(s) using camera.
39
+ * @param cameraImageInputs - The input params to customize the image(s) to be captured
40
+ * @returns Promise that will resolve with {@link VisualMediaFile[]} object or reject with an error.
41
+ * @throws INVALID_ARGUMENTS Error if imageInputs is null or imageInputs.maxVisualMediaCount is greater than maxVisualMediaSelectionLimit or lesser than 1.
42
+ *
43
+ * @beta
44
+ */
45
+ export declare function captureImages(cameraImageInputs: CameraImageProperties): Promise<VisualMediaFile[]>;
46
+ /**
47
+ * @hidden
48
+ * Upload the existing image(s) from the gallery.
49
+ * @param galleryImageInputs - The input params to customize the image(s) to be captured
50
+ * @returns Promise that will resolve with {@link VisualMediaFile[]} object or reject with an error.
51
+ * @throws INVALID_ARGUMENTS Error if imageInputs is null or imageInputs.maxVisualMediaCount is greater than maxVisualMediaSelectionLimit or lesser than 1.
52
+ *
53
+ * @beta
54
+ */
55
+ export declare function retrieveImages(galleryImageInputs: GalleryImageProperties): Promise<VisualMediaFile[]>;
56
+ /**
57
+ * @hidden
58
+ * Checks if visualMedia.image capability is supported by the host
59
+ * @returns boolean to represent whether visualMedia.image is supported
60
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
61
+ *
62
+ * @beta
63
+ */
64
+ export declare function isSupported(): boolean;
@@ -0,0 +1,116 @@
1
+ /**
2
+ * @hidden
3
+ * Interact with images. Allows the app developer ask the user to get images from their camera / camera roll / file system.
4
+ *
5
+ * @beta
6
+ * @module
7
+ */
8
+ import * as image from './image';
9
+ /**
10
+ * @hidden
11
+ * The required value of the visualMedia files from gallery
12
+ *
13
+ * @beta
14
+ */
15
+ export interface GalleryProps {
16
+ /**
17
+ * The visualMedia source
18
+ */
19
+ source: Source.Gallery;
20
+ }
21
+ /**
22
+ * @hidden
23
+ * The required value of the visualMedia files from camera
24
+ *
25
+ * @beta
26
+ */
27
+ export interface CameraProps {
28
+ /**
29
+ * @hidden
30
+ * The visualMedia source
31
+ */
32
+ source: Source.Camera;
33
+ /**
34
+ * @hidden
35
+ * Optional; Specify whether users have the option to switch between the front and rear cameras. The default setting is FrontOrRear.
36
+ * Default value is FrontOrRear
37
+ */
38
+ cameraRestriction?: CameraRestriction;
39
+ }
40
+ /**
41
+ * @hidden
42
+ * Indicate if user is allowed to move between front and back camera or stay in front/back camera only
43
+ * If the camera option requested by the app isn't available, the SDK will silently default to the platform's standard camera.
44
+ *
45
+ * @beta
46
+ */
47
+ export declare enum CameraRestriction {
48
+ /** User can move between front and back camera */
49
+ FrontOrRear = 1,
50
+ /** User can only use the front camera */
51
+ FrontOnly = 2,
52
+ /** User can only use the back camera */
53
+ RearOnly = 3
54
+ }
55
+ /**
56
+ * @hidden
57
+ * Specifies the image source
58
+ *
59
+ * @beta
60
+ */
61
+ export declare enum Source {
62
+ /** The camera is the source of visual media. */
63
+ Camera = 1,
64
+ /** The source of visual media is the gallery. */
65
+ Gallery = 2
66
+ }
67
+ /**
68
+ * @hidden
69
+ * VisualMediaFile object that can be used to represent image or video from host apps.
70
+ *
71
+ * @beta
72
+ */
73
+ export interface VisualMediaFile {
74
+ /**
75
+ * @hidden
76
+ * This is the base64 content of file.
77
+ * If app needs to use this directly in HTML tags, it should convert this to a data url.
78
+ */
79
+ content: string;
80
+ /**
81
+ * @hidden
82
+ * The size of file represented in VisualMediaFile in KB
83
+ */
84
+ sizeInKB: number;
85
+ /**
86
+ * @hidden
87
+ * Name of the file (does not include the extension)
88
+ */
89
+ name: string;
90
+ /**
91
+ * @hidden
92
+ * File's MIME type. More information on supported `mimeTypes`(https://docs.lens.xyz/docs/metadata-standards#supported-mime-types-for-imagesaudiovideos).
93
+ */
94
+ mimeType: string;
95
+ }
96
+ /**
97
+ * @hidden
98
+ * Checks whether or not visualMedia has user permission
99
+ * @returns Promise that will resolve with true if the user had granted the app permission to media information(including Camera and Gallery permission), or with false otherwise,
100
+ * In case of an error, promise will reject with the error.
101
+ * @throws NOT_SUPPORTED_ON_PLATFORM Error if the DevicePermission.Media permission has not successfully granted.
102
+ *
103
+ * @beta
104
+ */
105
+ export declare function hasPermission(): Promise<boolean>;
106
+ /**
107
+ * @hidden
108
+ * Requests user permission for visualMedia
109
+ * @returns Promise that will resolve with true if the user consented permission for media(including Camera and Gallery permission), or with false otherwise,
110
+ * In case of an error, promise will reject with the error.
111
+ * @throws NOT_SUPPORTED_ON_PLATFORM Error if the DevicePermission.Media permission has not successfully granted.
112
+ *
113
+ * @beta
114
+ */
115
+ export declare function requestPermission(): Promise<boolean>;
116
+ export { image };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Contains functionality enabling apps to query properties about how the host manages web storage (`Window.LocalStorage`)
3
+ *
4
+ * @beta
5
+ * @module
6
+ */
7
+ /**
8
+ * Checks if web storage (`Window.LocalStorage`) gets cleared when a user logs out from host
9
+ *
10
+ * @returns `true` if web storage gets cleared on logout and `false` if not
11
+ *
12
+ * @throws `Error` if {@linkcode app.initialize} has not successfully completed
13
+ *
14
+ * @beta
15
+ */
16
+ export declare function isWebStorageClearedOnUserLogOut(): Promise<boolean>;
17
+ /**
18
+ * Checks if webStorage capability is supported by the host
19
+ * @returns boolean to represent whether the webStorage capability is supported
20
+ *
21
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
22
+ *
23
+ * @beta
24
+ */
25
+ export declare function isSupported(): boolean;
@@ -0,0 +1 @@
1
+ var o=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"],c={validOrigins:o};export{c as default,o as validOrigins};
@@ -0,0 +1 @@
1
+ export{NotificationTypes,UserSettingTypes,ViewerActionTypes}from"./private/interfaces.js";export{openFilePreview,registerCustomHandler,registerUserSettingsChangeHandler,sendCustomEvent,sendCustomMessage,uploadCustomApp}from"./private/privateAPIs.js";import*as r from"./private/externalAppAuthentication.js";export{r as externalAppAuthentication};export{UserAuthenticationState}from"./private/externalAppAuthentication.js";import*as e from"./private/logs.js";export{e as logs};import*as t from"./private/conversations.js";export{t as conversations};import*as o from"./private/copilot/copilot.js";export{o as copilot};import*as p from"./private/copilot/sidePanelInterfaces.js";export{p as sidePanelInterfaces};import*as i from"./private/externalAppAuthenticationForCEA.js";export{i as externalAppAuthenticationForCEA};import*as a from"./private/externalAppCardActions.js";export{a as externalAppCardActions};import*as s from"./private/externalAppCardActionsForCEA.js";export{s as externalAppCardActionsForCEA};import*as m from"./private/externalAppCardActionsForDA.js";export{m as externalAppCardActionsForDA};import*as n from"./private/externalAppCommands.js";export{n as externalAppCommands};import*as l from"./private/files.js";export{l as files};import*as c from"./private/meetingRoom.js";export{c as meetingRoom};import*as f from"./private/messageChannels/messageChannels.js";export{f as messageChannels};import*as u from"./private/nestedAppAuth/nestedAppAuthBridge.js";export{u as nestedAppAuthBridge};import*as x from"./private/notifications.js";export{x as notifications};import*as j from"./private/otherAppStateChange.js";export{j as otherAppStateChange};import*as d from"./private/plugins.js";export{d as plugins};import*as g from"./private/remoteCamera.js";export{g as remoteCamera};import*as b from"./private/appEntity.js";export{b as appEntity};import*as v from"./private/teams/teams.js";export{v as teams};import*as A from"./private/videoEffectsEx.js";export{A as videoEffectsEx};import*as C from"./private/hostEntity/hostEntity.js";export{C as hostEntity};import*as h from"./private/store.js";export{h as store};import*as S from"./private/widgetHosting/widgetHosting.js";export{S as widgetHosting};export{ChannelType,DialogDimension,FrameContexts,HostClientType,HostName,RenderingSurfaces,DialogDimension as TaskModuleDimension,TeamType,UserTeamRole}from"./public/constants.js";export{ActionObjectType,EduType,ErrorCode,FileOpenPreference,SecondaryM365ContentIdName}from"./public/interfaces.js";export{AppId}from"./public/appId.js";export{EmailAddress}from"./public/emailAddress.js";export{activateChildProxyingCommunication,getCurrentFeatureFlagsState,overwriteFeatureFlagsState,setFeatureFlagsState}from"./public/featureFlags.js";export{getAdaptiveCardSchemaVersion}from"./public/adaptiveCards.js";export{ChildAppWindow,ParentAppWindow}from"./public/appWindow.js";export{ValidatedSafeString}from"./public/validatedSafeString.js";export{version}from"./public/version.js";export{enablePrintCapability,executeDeepLink,getContext,getMruTabInstances,getTabInstances,initialize,initializeWithFrameContext,print,registerAppButtonClickHandler,registerAppButtonHoverEnterHandler,registerAppButtonHoverLeaveHandler,registerBackButtonHandler,registerBeforeUnloadHandler,registerChangeSettingsHandler,registerFocusEnterHandler,registerFullScreenHandler,registerOnLoadHandler,registerOnThemeChangeHandler,setFrameContext,shareDeepLink}from"./public/publicAPIs.js";export{navigateBack,navigateCrossDomain,navigateToTab,returnFocus}from"./public/navigation.js";export{UUID}from"./public/uuidObject.js";import*as H from"./public/liveShareHost.js";export{H as liveShare};export{LiveShareHost}from"./public/liveShareHost.js";import*as y from"./public/authentication.js";export{y as authentication};import*as F from"./public/app/app.js";export{F as app};import*as T from"./public/appPerformanceMetrics.js";export{T as appPerformanceMetrics};import*as E from"./public/appInstallDialog.js";export{E as appInstallDialog};import*as w from"./public/barCode.js";export{w as barCode};import*as I from"./public/chat.js";export{I as chat};import*as D from"./public/clipboard.js";export{D as clipboard};import*as P from"./public/dialog/dialog.js";export{P as dialog};import*as B from"./public/nestedAppAuth.js";export{B as nestedAppAuth};import*as k from"./public/geoLocation/geoLocation.js";export{k as geoLocation};import*as L from"./public/pages/pages.js";export{L as pages};import*as M from"./public/menus.js";export{M as menus};import*as U from"./public/media.js";export{U as media};import*as O from"./public/secondaryBrowser.js";export{O as secondaryBrowser};import*as V from"./public/location.js";export{V as location};import*as z from"./public/meeting/meeting.js";export{z as meeting};import*as R from"./public/monetization.js";export{R as monetization};import*as W from"./public/calendar.js";export{W as calendar};import*as N from"./public/mail/mail.js";export{N as mail};import*as q from"./public/teamsAPIs.js";export{q as teamsCore};import*as G from"./public/people.js";export{G as people};import*as J from"./public/profile.js";export{J as profile};import*as K from"./public/videoEffects.js";export{K as videoEffects};import*as Q from"./public/search.js";export{Q as search};import*as X from"./public/sharing/sharing.js";export{X as sharing};import*as Y from"./public/stageView/stageView.js";export{Y as stageView};import*as Z from"./public/visualMedia/visualMedia.js";export{Z as visualMedia};import*as $ from"./public/webStorage.js";export{$ as webStorage};import*as _ from"./public/offlineStorage/offlineStorage.js";export{_ as offlineStorage};import*as rr from"./public/security.js";export{rr as security};import*as er from"./public/connectivity.js";export{er as connectivity};import*as tr from"./public/haptics.js";export{tr as haptics};import*as or from"./public/badge.js";export{or as badge};import*as pr from"./public/externalApp.js";export{pr as externalApp};import*as ir from"./public/call.js";export{ir as call};import*as ar from"./public/appInitialization.js";export{ar as appInitialization};import*as sr from"./public/thirdPartyCloudStorage.js";export{sr as thirdPartyCloudStorage};import*as mr from"./public/settings.js";export{mr as settings};import*as nr from"./public/tasks.js";export{nr as tasks};import*as lr from"./public/marketplace.js";export{lr as marketplace};import*as cr from"./public/shortcutRelay.js";export{cr as shortcutRelay};
@@ -0,0 +1 @@
1
+ import{__awaiter as i}from"../../../../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";import{sendAndHandleStatusAndReason as e,sendMessageToParent as t,callFunctionInHostAndHandleResponse as n,initializeCommunication as o}from"./communication.js";import{errorLibraryNotInitialized as r,defaultSDKVersionForCompatCheck as s}from"./constants.js";import{GlobalVars as l}from"./globalVars.js";import{registerOnThemeChangeHandler as a,registerOnContextChangeHandler as p,initializeHandlers as u}from"./handlers.js";import{ensureInitialized as m,ensureInitializeCalled as c,processAdditionalValidOrigins as f}from"./internalAPIs.js";import{getLogger as d}from"./telemetry.js";import{isNullOrUndefined as g}from"./typeCheckUtilities.js";import{inServerSideRenderingEnvironment as h,runWithTimeout as S,normalizeAgeGroupValue as j,compareSDKVersions as v}from"./utils.js";import{Messages as w}from"../public/app/app.js";import{FrameContexts as y}from"../public/constants.js";import{initialize as z}from"../public/dialog/dialog.js";import{initialize as b}from"../public/menus.js";import{runtime as P,applyRuntimeConfig as C,generateVersionBasedTeamsRuntimeConfig as x,mapTeamsVersionToSupportedCapabilities as D,versionAndPlatformAgnosticTeamsRuntimeConfig as E}from"../public/runtime.js";import{version as V}from"../public/version.js";import{SimpleTypeResponseHandler as K}from"./responseHandler.js";import{initialize as _}from"../public/pages/config.js";const k=d("app");function A(i,e){if(h()){return k.extend("initialize")("window object undefined at initialization"),Promise.resolve()}return S(()=>function(i,e){return new Promise(t=>{l.initializeCalled||(l.initializeCalled=!0,u(),l.initializePromise=o(e,i).then(({context:i,clientType:e,runtimeConfig:t,clientSupportedSDKVersion:n=s})=>{l.frameContext=i,l.hostClientType=e,l.clientSupportedSDKVersion=n;try{L("Parsing %s",t);let i=JSON.parse(t);if(L("Checking if %o is a valid runtime object",null!=i?i:"null"),!i||!i.apiVersion)throw new Error("Received runtime config is invalid");i=j(i),t&&C(i)}catch(i){if(!(i instanceof SyntaxError))throw i;try{L("Attempting to parse %s as an SDK version",t),isNaN(v(t,s))||(l.clientSupportedSDKVersion=t);let i=JSON.parse(n);if(L("givenRuntimeConfig parsed to %o",null!=i?i:"null"),!i)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");i=j(i),C(i)}catch(i){if(!(i instanceof SyntaxError))throw i;C(x(l.clientSupportedSDKVersion,E,D))}}l.initializeCompleted=!0}),b(),_(),z()),Array.isArray(e)&&f(e),void 0!==l.initializePromise?t(l.initializePromise):L("GlobalVars.initializePromise is unexpectedly undefined")})}(i,e),6e4,new Error("SDK initialization timed out."))}function F(i){t(i,w.AppLoaded,[V])}function H(i,e){t(i,w.ExpectedFailure,[e.reason,e.message])}function N(i,e){t(i,w.Failure,[e.reason,e.message,e.authHeader])}function R(e){return i(this,void 0,void 0,function*(){if(l.initializeCompleted)return J(e);if(!l.initializePromise)throw new Error(r);return l.initializePromise.then(()=>J(e))})}function J(e){return i(this,void 0,void 0,function*(){return m(P)&&(null===(i=P.supports.app)||void 0===i?void 0:i.notifySuccessResponse)?n(w.Success,[V],new K,e).then(()=>({hasFinishedSuccessfully:!0})):(t(e,w.Success,[V]),{hasFinishedSuccessfully:"unknown"});var i})}const L=k.extend("initializeHelper");function O(i,e){!g(e)&&c(),a(i,e)}function T(i,e){!g(e)&&c(),p(i,e)}function G(i,t){return new Promise(n=>{m(P,y.content,y.sidePanel,y.settings,y.task,y.stage,y.meetingStage),n(e(i,"executeDeepLink",t))})}export{A as appInitializeHelper,J as callNotifySuccessInHost,F as notifyAppLoadedHelper,H as notifyExpectedFailureHelper,N as notifyFailureHelper,R as notifySuccessHelper,G as openLinkHelper,T as registerOnContextChangeHandlerHelper,O as registerOnThemeChangeHandlerHelper};
@@ -0,0 +1 @@
1
+ import{__awaiter as n}from"../../../../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";import{isChildProxyingEnabled as i,getCurrentFeatureFlagsState as o}from"../public/featureFlags.js";import{flushMessageQueue as s,getMessageIdsAsLogString as e}from"./communicationUtils.js";import{callHandler as r}from"./handlers.js";import{deserializeMessageRequest as t,serializeMessageResponse as d}from"./messageObjects.js";import{getLogger as a,getApiVersionTag as u}from"./telemetry.js";const c=a("childProxyingCommunication");class l{}function g(){l.window=null,l.origin=null,l.messageQueue=[]}function m(){return!!i()&&!!l.window}function f(n,o){return!!i()&&(l.window&&!l.window.closed&&n!==l.window||(l.window=n,l.origin=o),l.window&&l.window.closed?(l.window=null,l.origin=null,!1):l.window===n)}function w(i,d,a,c){return n(this,void 0,void 0,function*(){l.window===d&&(s(l.window,l.origin,l.messageQueue,"child"),function(n,i,s){if(void 0===n.data.id||void 0===n.data.func)return;const d=t(n.data),[a,c]=r(d.func,d.args);if(a&&void 0!==c)return p("Handler called in response to message %s from child. Returning response from handler to child, action: %s.",e(d),d.func),void h(d.id,d.uuid,Array.isArray(c)?c:[c]);p("No handler for message %s from child found; relaying message on to parent, action: %s. Relayed message will have a new id.",e(d),d.func),function(n,i,s){const r=i(u("v2","tasks.startTask"),n.func,n.args,!0,n.teamsJsInstanceId),t=l.origin;s(r.uuid,(...i)=>{if(!l.window)return;if(!o().disableEnforceOriginMatchForChildResponses&&t!==l.origin)return void p("Origin of child window has changed, not sending response back to child window");const s=i.pop();p("Message from parent being relayed to child, id: %s",e(n)),h(n.id,n.uuid,i,s)})}(d,i,s)}(i,a,c))})}l.messageQueue=[];const p=c.extend("handleIncomingMessageFromChild");function h(n,i,o,s){const r=l.window,t=function(n,i,o,s){return{id:n,uuid:i,args:o||[],isPartialResponse:s}}(n,i,o,s),a=d(t),u=l.origin;r&&u&&(p("Sending message %s to %s via postMessage, args = %o",e(a),"child",a.args),r.postMessage(a,u))}function v(n,i){const o=l.window,s=function(n,i){return{func:n,args:i||[]}}(n,i),e=l.origin;o&&e?o.postMessage(s,e):l.messageQueue.push(s)}export{w as handleIncomingMessageFromChild,v as sendMessageEventToChild,m as shouldEventBeRelayedToChild,f as shouldProcessChildMessage,g as uninitializeChildCommunication};
@@ -0,0 +1 @@
1
+ import{__awaiter as e}from"../../../../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";import{isSdkError as n,ErrorCode as t}from"../public/interfaces.js";import{latestRuntimeApiVersion as o}from"../public/runtime.js";import{isSerializable as r}from"../public/serializable.interface.js";import{UUID as i}from"../public/uuidObject.js";import{version as s}from"../public/version.js";import{uninitializeChildCommunication as a,shouldProcessChildMessage as c,handleIncomingMessageFromChild as d}from"./childCommunication.js";import{getMessageIdsAsLogString as u,flushMessageQueue as l}from"./communicationUtils.js";import{GlobalVars as g}from"./globalVars.js";import{callHandler as p}from"./handlers.js";import f from"./hostToAppTelemetry.js";import{serializeMessageRequest as m,deserializeMessageResponse as w}from"./messageObjects.js";import{tryPolyfillWithNestedAppAuthBridge as h}from"./nestedAppAuthUtils.js";import{isFollowingApiVersionTagFormat as v,getLogger as b}from"./telemetry.js";import{getCurrentTimestamp as W,ssrSafeWindow as M}from"./utils.js";import{validateOrigin as y}from"./validOrigins.js";const k=b("communication");class I{}class T{}function E(n,t){if(T.messageListener=n=>function(n){return e(this,void 0,void 0,function*(){if(!n||!n.data||"object"!=typeof n.data)return void J("Unrecognized message format received by app, message being ignored. Message: %o",n);const e=n.source||n.originalEvent&&n.originalEvent.source,t=n.origin||n.originalEvent&&n.originalEvent.origin;return B(e,t).then(o=>{o?(!function(e,n){g.isFramelessWindow||I.parentWindow&&!I.parentWindow.closed&&e!==I.parentWindow||(I.parentWindow=e,I.parentOrigin=n);I.parentWindow&&I.parentWindow.closed&&(I.parentWindow=null,I.parentOrigin=null);l(I.parentWindow,I.parentOrigin,T.parentMessageQueue,"parent")}(e,t),e!==I.parentWindow?c(e,t)&&d(n,e,V,(e,n)=>T.callbacks.set(e,n)):Y(n)):J("Message being ignored by app because it is either coming from the current window or a different window with an invalid origin, message: %o, source: %o, origin: %o",n,e,t)})})}(n),I.currentWindow=I.currentWindow||M(),I.parentWindow=I.currentWindow.parent!==I.currentWindow.self?I.currentWindow.parent:I.currentWindow.opener,I.topWindow=I.currentWindow.top,(I.parentWindow||n)&&I.currentWindow.addEventListener("message",T.messageListener,!1),!I.parentWindow){const e=I.currentWindow;if(!e.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));g.isFramelessWindow=!0,e.onNativeMessage=Y}try{return I.parentOrigin="*",S(t,"initialize",[s,o,n]).then(([e,n,t,o])=>(h(o,I.currentWindow,{onMessage:D,sendPostMessage:L}),{context:e,clientType:n,runtimeConfig:t,clientSupportedSDKVersion:o}))}finally{I.parentOrigin=null}}function j(){I.currentWindow&&I.currentWindow.removeEventListener("message",T.messageListener,!1),I.currentWindow=null,I.parentWindow=null,I.parentOrigin=null,T.parentMessageQueue=[],T.nextMessageId=0,T.callbacks.clear(),T.promiseCallbacks.clear(),T.portCallbacks.clear(),T.legacyMessageIdsToUuidMap={},f.clearMessages(),a()}function O(e,n,...t){return S(e,n,t).then(([e])=>e)}function R(e,n,...t){return S(e,n,t).then(([e,n])=>{if(!e)throw new Error(n)})}function C(e,n,t,...o){return S(e,n,o).then(([e,n])=>{if(!e)throw new Error(n||t)})}function P(e,n,...t){return S(e,n,t).then(([e,n])=>{if(e)throw e;return n})}function S(e,n,t=void 0){if(!v(e))throw Error(`apiVersionTag: ${e} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);return new Promise(o=>{const r=V(e,n,t);var i;o((i=r.uuid,new Promise(e=>{T.promiseCallbacks.set(i,e)})))})}function x(e){return e.map(e=>r(e)?e.serialize():e)}function N(o,r,i,s,a){var c;return e(this,void 0,void 0,function*(){const e=x(r),[d]=yield S(s,o,e);if(a&&a(d)||!a&&n(d))throw new Error(`${d.errorCode}, message: ${null!==(c=d.message)&&void 0!==c?c:"None"}`);if(i.validate(d))return i.deserialize(d);throw new Error(`${t.INTERNAL_ERROR}, message: Invalid response from host - ${JSON.stringify(d)}`)})}function A(o,r,i,s){var a;return e(this,void 0,void 0,function*(){const e=x(r),[c]=yield S(i,o,e);if(s&&s(c)||!s&&n(c))throw new Error(`${c.errorCode}, message: ${null!==(a=c.message)&&void 0!==a?a:"None"}`);if(void 0!==c)throw new Error(`${t.INTERNAL_ERROR}, message: Invalid response from host`)})}function U(e,n,t=void 0){if(!v(e))throw Error(`apiVersionTag: ${e} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);const o=V(e,n,t);return r=o.uuid,new Promise((e,n)=>{T.portCallbacks.set(r,(t,o)=>{t instanceof MessagePort?e(t):n(o&&o.length>0?o[0]:new Error("Host responded without port or error details."))})});var r}function $(e,n,t,o){let r;if(t instanceof Function?o=t:t instanceof Array&&(r=t),!v(e))throw Error(`apiVersionTag: ${e} passed in doesn't follow the pattern starting with 'v' followed by digits, then underscore with words, please check.`);const i=V(e,n,r);o&&T.callbacks.set(i.uuid,o)}T.parentMessageQueue=[],T.topMessageQueue=[],T.nextMessageId=0,T.callbacks=new Map,T.promiseCallbacks=new Map,T.portCallbacks=new Map,T.legacyMessageIdsToUuidMap={};const z=k.extend("sendNestedAuthRequestToTopWindow");function L(e,n){const t=z,o=I.topWindow,r=function(e,n){const t=T.nextMessageId++,o=new i;return T.legacyMessageIdsToUuidMap[t]=o,{id:t,uuid:o,func:"nestedAppAuth.execute",timestamp:Date.now(),monotonicTimestamp:W(),apiVersionTag:n,args:[],data:e}}(e,n);return t("Message %s information: %o",u(r),{actionName:r.func}),F(o,r)}const _=k.extend("sendRequestToTargetWindowHelper");function F(e,n){const t=_,o=function(e){return e===I.topWindow&&Z()?"top":e===I.parentWindow?"parent":null}(e),r=m(n);if(g.isFramelessWindow)I.currentWindow&&I.currentWindow.nativeInterface&&(t("Sending message %s to %s via framelessPostMessage interface",u(r),o),I.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(r)));else{const i=function(e){return e===I.topWindow&&Z()?I.topOrigin:e===I.parentWindow?I.parentOrigin:null}(e);e&&i?(t("Sending message %s to %s via postMessage",u(r),o),e.postMessage(r,i)):(t("Adding message %s to %s message queue",u(r),o),ee(e).push(n))}return n}const Q=k.extend("sendMessageToParentHelper");function V(e,n,t,o,r){const s=Q,a=I.parentWindow,c=function(e,n,t,o,r){const s=T.nextMessageId++,a=new i;T.legacyMessageIdsToUuidMap[s]=a;const c=!0===o?r:g.teamsJsInstanceId;return{id:s,uuid:a,func:n,timestamp:Date.now(),monotonicTimestamp:W(),args:t||[],apiVersionTag:e,isProxiedFromChild:null!=o&&o,teamsJsInstanceId:c}}(e,n,t,o,r);return f.storeCallbackInformation(c.uuid,{name:n,calledAt:c.timestamp}),s("Message %s information: %o",u(c),{actionName:n,args:t}),F(a,c)}const J=k.extend("processIncomingMessage");const q=k.extend("processAuthBridgeMessage");function D(e,n){var t,o;const r=q;if(!e||!e.data||"object"!=typeof e.data)return void r("Unrecognized message format received by app, message being ignored. Message: %o",e);const{args:i}=e.data,[,s]=null!=i?i:[],a=(()=>{try{return JSON.parse(s)}catch(e){return null}})();if(!a||"object"!=typeof a||"NestedAppAuthResponse"!==a.messageType)return void r("Unrecognized data format received by app, message being ignored. Message: %o",e);const c=e.source||(null===(t=null==e?void 0:e.originalEvent)||void 0===t?void 0:t.source),d=e.origin||(null===(o=null==e?void 0:e.originalEvent)||void 0===o?void 0:o.origin);c?B(c,d)?(I.topWindow&&!I.topWindow.closed&&c!==I.topWindow||(I.topWindow=c,I.topOrigin=d),I.topWindow&&I.topWindow.closed&&(I.topWindow=null,I.topOrigin=null),l(I.topWindow,I.topOrigin,T.topMessageQueue,"top"),n(s)):r("Message being ignored by app because it is either coming from the current window or a different window with an invalid origin"):r("Message being ignored by app because it is coming for a target that is null")}const H=k.extend("shouldProcessIncomingMessage");function B(n,t){return e(this,void 0,void 0,function*(){if(I.currentWindow&&n===I.currentWindow)return H("Should not process message because it is coming from the current window"),!1;if(I.currentWindow&&I.currentWindow.location&&t&&t===I.currentWindow.location.origin)return!0;{let e;try{e=new URL(t)}catch(e){return H("Message has an invalid origin of %s",t),!1}const n=yield y(e);return n||H("Message has an invalid origin of %s",t),n}})}const K=k.extend("handleIncomingMessageFromParent");function G(e,n){if(n){const t=[...e].find(([e,t])=>e.toString()===n.toString());if(t)return t[0]}}function X(e,n){const t=G(n,e.uuid);t&&n.delete(t),e.uuid?T.legacyMessageIdsToUuidMap={}:delete T.legacyMessageIdsToUuidMap[e.id]}function Y(e){const n=K,t=W();if("id"in e.data&&"number"==typeof e.data.id){const o=e.data,r=w(o),i=function(e){const n=K;if(!e.uuid)return T.legacyMessageIdsToUuidMap[e.id];{const n=e.uuid,t=G(T.callbacks,n);if(t)return t;const o=G(T.promiseCallbacks,n);if(o)return o;const r=G(T.portCallbacks,n);if(r)return r}n("Received message %s that failed to produce a callbackId",u(e))}(r);if(i){const o=T.callbacks.get(i);n("Received a response from parent for message %s",i.toString()),f.handlePerformanceMetrics(i,r,n,t),o&&(n("Invoking the registered callback for message %s with arguments %o",i.toString(),r.args),o.apply(null,[...r.args,r.isPartialResponse]),function(e){return!0===e.data.isPartialResponse}(e)||(n("Removing registered callback for message %s",i.toString()),X(r,T.callbacks)));const s=T.promiseCallbacks.get(i);s&&(n("Invoking the registered promise callback for message %s with arguments %o",i.toString(),r.args),s(r.args),n("Removing registered promise callback for message %s",i.toString()),X(r,T.promiseCallbacks));const a=T.portCallbacks.get(i);if(a){let t;n("Invoking the registered port callback for message %s with arguments %o",i.toString(),r.args),e.ports&&e.ports[0]instanceof MessagePort&&(t=e.ports[0]),a(t,r.args),n("Removing registered port callback for message %s",i.toString()),X(r,T.portCallbacks)}r.uuid&&(T.legacyMessageIdsToUuidMap={})}}else if("func"in e.data&&"string"==typeof e.data.func){const o=e.data;f.handleOneWayPerformanceMetrics(o,n,t),n('Received a message from parent %s, action: "%s"',u(o),o.func),p(o.func,o.args)}else n("Received an unknown message: %O",e)}function Z(){return I.topWindow!==I.parentWindow}function ee(e){return e===I.topWindow&&Z()?T.topMessageQueue:e===I.parentWindow?T.parentMessageQueue:[]}function ne(e,n){let t;t=I.currentWindow.setInterval(()=>{0===ee(e).length&&(clearInterval(t),n())},100)}export{I as Communication,A as callFunctionInHost,N as callFunctionInHostAndHandleResponse,E as initializeCommunication,U as requestPortFromParentWithVersion,P as sendAndHandleSdkError,R as sendAndHandleStatusAndReason,C as sendAndHandleStatusAndReasonWithDefaultError,O as sendAndUnwrap,$ as sendMessageToParent,S as sendMessageToParentAsync,L as sendNestedAuthRequestToTopWindow,j as uninitializeCommunication,ne as waitForMessageQueue};
@@ -0,0 +1 @@
1
+ import{serializeMessageRequest as e}from"./messageObjects.js";import{getLogger as s}from"./telemetry.js";function i(e){return void 0!==e.uuidAsString?`${e.uuidAsString} (legacy id: ${e.id})`:void 0!==e.uuid?`${e.uuid.toString()} (legacy id: ${e.id})`:`legacy id: ${e.id} (no uuid)`}const t=s("flushMessageQueue");function u(s,u,o,g){if(s&&u&&0!==o.length)for(;o.length>0;){const n=o.shift();if(n){const o=e(n);t("Flushing message %s from %s message queue via postMessage.",i(o),g),s.postMessage(o,u)}}}export{u as flushMessageQueue,i as getMessageIdsAsLogString};
@@ -0,0 +1 @@
1
+ import*as i from"../artifactsForCDN/validDomains.json.js";const t="2.0.1",e="2.0.2",s="2.0.3",n="2.0.4",o="2.0.1",a="1.9.0",r="2.0.0",m="1.7.0",l="1.8.0",d="2.0.0",h="1.9.0",p=i.validOrigins,c=1500,f=new URL("https://res.cdn.office.net/teams-js/validDomains/json/validDomains.json"),j="https",v="teams.microsoft.com",y="The library has not yet been initialized",D="The runtime has not yet been initialized",T="The runtime version is not supported",b="The call was not properly started";export{c as ORIGIN_LIST_FETCH_TIMEOUT_IN_MS,m as captureImageMobileSupportVersion,t as defaultSDKVersionForCompatCheck,b as errorCallNotStarted,y as errorLibraryNotInitialized,D as errorRuntimeNotInitialized,T as errorRuntimeNotSupported,d as getMediaCallbackSupportVersion,o as getUserJoinedTeamsSupportedAndroidClientVersion,n as imageOutputFormatsAPISupportVersion,a as locationAPIsRequiredVersion,l as mediaAPISupportVersion,s as nonFullScreenVideoModeAPISupportVersion,r as peoplePickerRequiredVersion,h as scanBarCodeAPIMobileSupportVersion,v as teamsDeepLinkHost,j as teamsDeepLinkProtocol,f as validOriginsCdnEndpoint,p as validOriginsFallback,e as videoAndImageMediaAPISupportVersion};
@@ -0,0 +1 @@
1
+ const e="/l/app/",t="/l/meeting/new",s="attendees",a="startTime",c="endTime",n="subject",i="content",l="/l/call/0/0",o="source",m="withVideo",p="/l/chat/0/0",r="users",d="topicName",u="message";export{s as teamsDeepLinkAttendeesUrlParameterName,i as teamsDeepLinkContentUrlParameterName,c as teamsDeepLinkEndTimeUrlParameterName,u as teamsDeepLinkMessageUrlParameterName,o as teamsDeepLinkSourceUrlParameterName,a as teamsDeepLinkStartTimeUrlParameterName,n as teamsDeepLinkSubjectUrlParameterName,d as teamsDeepLinkTopicUrlParameterName,e as teamsDeepLinkUrlPathForAppInstall,t as teamsDeepLinkUrlPathForCalendar,l as teamsDeepLinkUrlPathForCall,p as teamsDeepLinkUrlPathForChat,r as teamsDeepLinkUsersUrlParameterName,m as teamsDeepLinkWithVideoUrlParameterName};
@@ -0,0 +1 @@
1
+ import{teamsDeepLinkProtocol as n,teamsDeepLinkHost as o}from"./constants.js";import{teamsDeepLinkUrlPathForAppInstall as e,teamsDeepLinkUsersUrlParameterName as t,teamsDeepLinkUrlPathForChat as $,teamsDeepLinkTopicUrlParameterName as i,teamsDeepLinkMessageUrlParameterName as r,teamsDeepLinkAttendeesUrlParameterName as d,teamsDeepLinkUrlPathForCalendar as p,teamsDeepLinkStartTimeUrlParameterName as c,teamsDeepLinkEndTimeUrlParameterName as a,teamsDeepLinkSubjectUrlParameterName as m,teamsDeepLinkContentUrlParameterName as s,teamsDeepLinkUrlPathForCall as C,teamsDeepLinkWithVideoUrlParameterName as I,teamsDeepLinkSourceUrlParameterName as l}from"./deepLinkConstants.js";function u(e,d,p){if(0===e.length)throw new Error("Must have at least one user when creating a chat deep link");const c=`${t}=`+e.map(n=>encodeURIComponent(n)).join(","),a=void 0===d?"":`&${i}=${encodeURIComponent(d)}`,m=void 0===p?"":`&${r}=${encodeURIComponent(p)}`;return`${n}://${o}${$}?${c}${a}${m}`}function R(e,$,i){if(0===e.length)throw new Error("Must have at least one target when creating a call deep link");const r=`${t}=`+e.map(n=>encodeURIComponent(n)).join(","),d=void 0===$?"":`&${I}=${encodeURIComponent($)}`,p=void 0===i?"":`&${l}=${encodeURIComponent(i)}`;return`${n}://${o}${C}?${r}${d}${p}`}function U(e,t,$,i,r){const C=void 0===e?"":`${d}=`+e.map(n=>encodeURIComponent(n)).join(","),I=void 0===t?"":`&${c}=${encodeURIComponent(t)}`,l=void 0===$?"":`&${a}=${encodeURIComponent($)}`,u=void 0===i?"":`&${m}=${encodeURIComponent(i)}`,R=void 0===r?"":`&${s}=${encodeURIComponent(r)}`;return`${n}://${o}${p}?${C}${I}${l}${u}${R}`}function h(t){if(!t)throw new Error("App ID must be set when creating an app install dialog deep link");return`${n}://${o}${e}${encodeURIComponent(t)}`}export{h as createTeamsDeepLinkForAppInstallDialog,U as createTeamsDeepLinkForCalendar,R as createTeamsDeepLinkForCall,u as createTeamsDeepLinkForChat};
@@ -0,0 +1 @@
1
+ import{ensureInitialized as t}from"./internalAPIs.js";import{DialogDimension as e,FrameContexts as o,errorNotSupportedOnPlatform as r}from"../public/constants.js";import{runtime as s}from"../public/runtime.js";import{sendMessageToParent as i}from"./communication.js";import{GlobalVars as n}from"./globalVars.js";import{registerHandler as a,removeHandler as l}from"./handlers.js";import{getApiVersionTag as m}from"./telemetry.js";import{isSupported as c,getDialogInfoFromUrlDialogInfo as u,getDialogInfoFromBotUrlDialogInfo as d}from"../public/dialog/url/url.js";import{isSupported as g}from"../public/dialog/url/bot.js";import{isSupported as f}from"../public/dialog/update.js";const p="v2";function h(e,n){if(t(s,o.content,o.sidePanel,o.task,o.meetingStage),!f())throw r;i(e,"tasks.updateTask",[n])}function b(e,n,d,g){if(t(s,o.content,o.sidePanel,o.meetingStage),!c())throw r;g&&a(m(p,"dialog.url.registerMessageForParentHandler"),"messageForParent",g);const f=u(n);i(e,"tasks.startTask",[f],(t,e)=>{null==d||d({err:t,result:e}),l("messageForParent")})}function k(e,n,c,u){if(t(s,o.content,o.sidePanel,o.meetingStage),!g())throw r;u&&a(m(p,"dialog.url.bot.registerMessageForParentHandler"),"messageForParent",u);const f=d(n);i(e,"tasks.startTask",[f],(t,e)=>{null==c||c({err:t,result:e}),l("messageForParent")})}function j(e,a,l){if(t(s,o.content,o.task),!c())throw r;n.frameContext===o.content&&console.warn("dialog.submit should not be called from FrameContext.content.\nIf dialog.submit was called from inside the dialog, please disregard this message.\nThis issue occurs due to a bug in Teams mobile where the dialog is incorrectly identified as being in the content FrameContext.\nWe are working to resolve this."),i(e,"tasks.completeTask",[a,l?Array.isArray(l)?l:[l]:[]])}function w(t){return{card:t.card,height:t.size?t.size.height:e.Small,width:t.size?t.size.width:e.Small,title:t.title}}function P(t){const e=w(t);return e.completionBotId=t.completionBotId,e}const F=[];function S(t){n.frameContext&&(n.frameContext===o.task?F.push(t):l("messageForChild"))}export{k as botUrlOpenHelper,p as dialogTelemetryVersionNumber,w as getDialogInfoFromAdaptiveCardDialogInfo,P as getDialogInfoFromBotAdaptiveCardDialogInfo,S as handleDialogMessage,F as storedMessages,h as updateResizeHelper,b as urlOpenHelper,j as urlSubmitHelper};
@@ -0,0 +1 @@
1
+ function e(e){const n=!e||e.length<=0,o=null==e?void 0:e.indexOf("@"),t=null==e?void 0:e.indexOf(".",o);if(n||-1===o||-1===t)throw new Error("Input email address does not have the correct format.")}export{e as validateEmailAddress};
@@ -0,0 +1 @@
1
+ import{UUID as i}from"../public/uuidObject.js";class e{}e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.initializePromise=void 0,e.isFramelessWindow=!1,e.frameContext=void 0,e.hostClientType=void 0,e.printCapabilityEnabled=!1,e.teamsJsInstanceId=(new i).toString();export{e as GlobalVars};
@@ -0,0 +1 @@
1
+ import{__awaiter as e}from"../../../../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";import{getApiVersionTag as n,getLogger as r}from"./telemetry.js";import{runtime as l}from"../public/runtime.js";import{shouldEventBeRelayedToChild as a,sendMessageEventToChild as t}from"./childCommunication.js";import{sendMessageToParent as o}from"./communication.js";import{ensureInitialized as d}from"./internalAPIs.js";import{initializeBackStackHelper as i}from"./pagesHelpers.js";import{isNullOrUndefined as s}from"./typeCheckUtilities.js";const u=r("handlers");class c{static initializeHandlers(){c.handlers.themeChange=x,c.handlers.contextChange=v,c.handlers.load=S,c.handlers.beforeUnload=A,i()}static uninitializeHandlers(){c.handlers={},c.themeChangeHandler=null,c.beforeUnloadHandler=null,c.beforeSuspendOrTerminateHandler=null,c.resumeHandler=null,c.contextChangeHandler=null}}function f(){c.initializeHandlers()}function m(){c.uninitializeHandlers()}c.handlers={},c.themeChangeHandler=null,c.loadHandler=null,c.beforeUnloadHandler=null,c.beforeSuspendOrTerminateHandler=null,c.resumeHandler=null,c.hostToAppPerformanceMetricsHandler=null,c.contextChangeHandler=null;const H=u.extend("callHandler");function h(e,n){const r=c.handlers[e];if(r){H("Invoking the registered handler for message %s with arguments %o",e,n);return[!0,r.apply(this,n)]}return a()?(t(e,n),[!1,void 0]):(H("Handler for action message %s not found.",e),[!1,void 0])}function p(e,n,r,l=!0,a=[]){r?(c.handlers[n]=r,l&&o(e,"registerHandler",[n,...a])):delete c.handlers[n]}function g(e){delete c.handlers[e]}function b(e){return null!=c.handlers[e]}function C(e,n,r,a,t){r&&d(l,...a),t&&t(),p(e,n,r)}function U(e,n){c.themeChangeHandler=n,!s(n)&&o(e,"registerHandler",["themeChange"])}function T(e,n){c.contextChangeHandler=n,!s(n)&&o(e,"registerHandler",["contextChange"])}function x(e){c.themeChangeHandler&&c.themeChangeHandler(e),a()&&t("themeChange",[e])}function v(e){c.contextChangeHandler&&c.contextChangeHandler(e),a()&&t("contextChange",[e])}function y(e){c.hostToAppPerformanceMetricsHandler=e}function j(e){c.hostToAppPerformanceMetricsHandler&&c.hostToAppPerformanceMetricsHandler(e)}function O(e,n){c.loadHandler=n,!s(n)&&o(e,"registerHandler",["load"])}function S(e){const n={entityId:(r=e).entityId,contentUrl:new URL(r.contentUrl)};var r;c.resumeHandler?(c.resumeHandler(n),a()&&t("load",[n])):c.loadHandler&&(c.loadHandler(e),a()&&t("load",[e]))}function _(e,n){c.beforeUnloadHandler=n,!s(n)&&o(e,"registerHandler",["beforeUnload"])}function A(){return e(this,void 0,void 0,function*(){const e=()=>{o(n("v2","handleBeforeUnload"),"readyToUnload",[])};c.beforeSuspendOrTerminateHandler?(yield c.beforeSuspendOrTerminateHandler(),a()?t("beforeUnload"):e()):c.beforeUnloadHandler&&c.beforeUnloadHandler(e)||(a()?t("beforeUnload"):e())})}function P(e){c.beforeSuspendOrTerminateHandler=e,!s(e)&&o(n("v2","registerBeforeSuspendOrTerminateHandler"),"registerHandler",["beforeUnload"])}function z(e){c.resumeHandler=e,!s(e)&&o(n("v2","registerOnResumeHandler"),"registerHandler",["load"])}export{h as callHandler,b as doesHandlerExist,v as handleContextChange,j as handleHostToAppPerformanceMetrics,x as handleThemeChange,f as initializeHandlers,P as registerBeforeSuspendOrTerminateHandler,_ as registerBeforeUnloadHandler,p as registerHandler,C as registerHandlerHelper,y as registerHostToAppPerformanceMetricsHandler,T as registerOnContextChangeHandler,O as registerOnLoadHandler,z as registerOnResumeHandler,U as registerOnThemeChangeHandler,g as removeHandler,m as uninitializeHandlers};
@@ -0,0 +1 @@
1
+ import{handleHostToAppPerformanceMetrics as e}from"./handlers.js";class a{static storeCallbackInformation(e,t){a.callbackInformation.set(e,t)}static clearMessages(){a.callbackInformation.clear()}static deleteMessageInformation(e){a.callbackInformation.delete(e)}static handleOneWayPerformanceMetrics(a,t,n){const o=a.monotonicTimestamp;o&&n?e({actionName:a.func,messageDelay:n-o,requestStartedAt:o}):t("Unable to send performance metrics for event %s",a.func)}static handlePerformanceMetrics(t,n,o,s){const c=a.callbackInformation.get(t);c&&n.monotonicTimestamp&&s?(e({actionName:c.name,messageDelay:s-n.monotonicTimestamp,requestStartedAt:c.calledAt}),a.deleteMessageInformation(t)):o("Unable to send performance metrics for callback %s with arguments %o",t.toString(),n.args)}}a.callbackInformation=new Map;export{a as default};
@@ -0,0 +1 @@
1
+ import{AppId as i}from"../public/appId.js";import{hasScriptTags as t}from"./utils.js";function n(i){if(!e(i))throw new Error(`Potential app id (${i}) is invalid; its length ${i.length} is not within the length limits (${r}-${a}).`)}function o(i){if(t(i))throw new Error(`Potential app id (${i}) is invalid; it contains script tags.`);if(s(i))throw new Error(`Potential app id (${i}) is invalid; it contains non-printable characters.`)}const r=4,a=256;function e(i){return i.length<a&&i.length>r}function s(i){return[...i].some(i=>{const t=i.charCodeAt(0);return t<32||t>126})}function l(t){if(!(t instanceof i))throw new Error(`Potential app id (${t}) is invalid; it is not an instance of AppId class.`)}export{s as doesStringContainNonPrintableCharacters,e as isStringWithinAppIdLengthLimits,a as maximumValidAppIdLength,r as minimumValidAppIdLength,l as validateAppIdInstance,o as validateSafeContent,n as validateStringLength};
@@ -0,0 +1 @@
1
+ import{HostClientType as i}from"../public/constants.js";import{ErrorCode as t}from"../public/interfaces.js";import{isRuntimeInitialized as r}from"../public/runtime.js";import{defaultSDKVersionForCompatCheck as e,errorLibraryNotInitialized as n}from"./constants.js";import{GlobalVars as o}from"./globalVars.js";import{getLogger as l}from"./telemetry.js";import{isValidPatternUrl as s}from"./urlPattern.js";import{compareSDKVersions as a}from"./utils.js";const f=l("internal"),c=f.extend("ensureInitializeCalled"),d=f.extend("ensureInitialized");function m(){if(!o.initializeCalled)throw c(n),new Error(n)}function p(i,...t){if(!o.initializeCompleted)throw d("%s. initializeCalled: %s",n,o.initializeCalled.toString()),new Error(n);if(t&&t.length>0){let i=!1;for(let r=0;r<t.length;r++)if(t[r]===o.frameContext){i=!0;break}if(!i){const i=`This call is only allowed in following contexts: ${JSON.stringify(t)}. Current context: "${o.frameContext}".`;throw d(i),new Error(i)}}return r(i)}function u(i=e){const t=a(o.clientSupportedSDKVersion,i);return!isNaN(t)&&t>=0}function C(){return o.hostClientType==i.android||o.hostClientType==i.ios||o.hostClientType==i.ipados||o.hostClientType==i.visionOS}function h(i=e){if(!C()){throw{errorCode:t.NOT_SUPPORTED_ON_PLATFORM}}if(!u(i)){throw{errorCode:t.OLD_PLATFORM}}}function w(i){let t=o.additionalValidOrigins.concat(i.filter(i=>"string"==typeof i&&s(i)));const r={};t=t.filter(i=>!r[i]&&(r[i]=!0,!0)),o.additionalValidOrigins=t}export{m as ensureInitializeCalled,p as ensureInitialized,u as isCurrentSDKVersionAtLeast,C as isHostClientMobile,w as processAdditionalValidOrigins,h as throwExceptionIfMobileApiIsNotSupported};
@@ -0,0 +1 @@
1
+ import{__rest as r}from"../../../../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";import{CartStatus as e}from"../public/marketplace.js";import t from"../../../../node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/validate.js";function o(r){try{return r.cartItems=s(r.cartItems),r}catch(r){throw new Error("Error deserializing cart")}}function s(r){return r.map(r=>{if(r.imageURL){const e=new URL(r.imageURL);r.imageURL=e}return r.accessories&&(r.accessories=s(r.accessories)),r})}const i=e=>{try{return e.map(e=>{const{imageURL:t,accessories:o}=e,s=r(e,["imageURL","accessories"]),n=Object.assign({},s);return t&&(n.imageURL=t.href),o&&(n.accessories=i(o)),n})}catch(r){throw new Error("Error serializing cart items")}};function n(r){if(!Array.isArray(r)||0===r.length)throw new Error("cartItems must be a non-empty array");for(const e of r)c(e),a(e.accessories)}function a(r){if(null!=r){if(!Array.isArray(r)||0===r.length)throw new Error("CartItem.accessories must be a non-empty array");for(const e of r){if(e.accessories)throw new Error("Item in CartItem.accessories cannot have accessories");c(e)}}}function c(r){if(!r.id)throw new Error("cartItem.id must not be empty");if(!r.name)throw new Error("cartItem.name must not be empty");u(r.price),f(r.quantity)}function m(r){if(null!=r){if(!r)throw new Error("id must not be empty");if(!1===t(r))throw new Error("id must be a valid UUID")}}function u(r){if("number"!=typeof r||r<0)throw new Error(`price ${r} must be a number not less than 0`);if(parseFloat(r.toFixed(3))!==r)throw new Error(`price ${r} must have at most 3 decimal places`)}function f(r){if("number"!=typeof r||r<=0||parseInt(r.toString())!==r)throw new Error(`quantity ${r} must be an integer greater than 0`)}function p(r){if(!Object.values(e).includes(r))throw new Error(`cartStatus ${r} is not valid`)}export{o as deserializeCart,s as deserializeCartItems,i as serializeCartItems,a as validateAccessoryItems,c as validateBasicCartItem,n as validateCartItems,p as validateCartStatus,u as validatePrice,f as validateQuantity,m as validateUuid};