@microsoft/teams.client 0.2.7

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 (454) hide show
  1. package/README.md +37 -0
  2. package/dist/app.d.mts +92 -0
  3. package/dist/app.d.ts +92 -0
  4. package/dist/app.js +122 -0
  5. package/dist/app.js.map +1 -0
  6. package/dist/app.mjs +98 -0
  7. package/dist/app.mjs.map +1 -0
  8. package/dist/context/app-host.d.mts +25 -0
  9. package/dist/context/app-host.d.ts +25 -0
  10. package/dist/context/app-host.js +4 -0
  11. package/dist/context/app-host.js.map +1 -0
  12. package/dist/context/app-host.mjs +3 -0
  13. package/dist/context/app-host.mjs.map +1 -0
  14. package/dist/context/app.d.mts +69 -0
  15. package/dist/context/app.d.ts +69 -0
  16. package/dist/context/app.js +4 -0
  17. package/dist/context/app.js.map +1 -0
  18. package/dist/context/app.mjs +3 -0
  19. package/dist/context/app.mjs.map +1 -0
  20. package/dist/context/channel.d.mts +37 -0
  21. package/dist/context/channel.d.ts +37 -0
  22. package/dist/context/channel.js +4 -0
  23. package/dist/context/channel.js.map +1 -0
  24. package/dist/context/channel.mjs +3 -0
  25. package/dist/context/channel.mjs.map +1 -0
  26. package/dist/context/chat.d.mts +11 -0
  27. package/dist/context/chat.d.ts +11 -0
  28. package/dist/context/chat.js +4 -0
  29. package/dist/context/chat.js.map +1 -0
  30. package/dist/context/chat.mjs +3 -0
  31. package/dist/context/chat.mjs.map +1 -0
  32. package/dist/context/index.d.mts +74 -0
  33. package/dist/context/index.d.ts +74 -0
  34. package/dist/context/index.js +108 -0
  35. package/dist/context/index.js.map +1 -0
  36. package/dist/context/index.mjs +86 -0
  37. package/dist/context/index.mjs.map +1 -0
  38. package/dist/context/meeting.d.mts +11 -0
  39. package/dist/context/meeting.d.ts +11 -0
  40. package/dist/context/meeting.js +4 -0
  41. package/dist/context/meeting.js.map +1 -0
  42. package/dist/context/meeting.mjs +3 -0
  43. package/dist/context/meeting.mjs.map +1 -0
  44. package/dist/context/page.d.mts +40 -0
  45. package/dist/context/page.d.ts +40 -0
  46. package/dist/context/page.js +4 -0
  47. package/dist/context/page.js.map +1 -0
  48. package/dist/context/page.mjs +3 -0
  49. package/dist/context/page.mjs.map +1 -0
  50. package/dist/context/share-point-site.d.mts +31 -0
  51. package/dist/context/share-point-site.d.ts +31 -0
  52. package/dist/context/share-point-site.js +4 -0
  53. package/dist/context/share-point-site.js.map +1 -0
  54. package/dist/context/share-point-site.mjs +3 -0
  55. package/dist/context/share-point-site.mjs.map +1 -0
  56. package/dist/context/team.d.mts +42 -0
  57. package/dist/context/team.d.ts +42 -0
  58. package/dist/context/team.js +4 -0
  59. package/dist/context/team.js.map +1 -0
  60. package/dist/context/team.mjs +3 -0
  61. package/dist/context/team.mjs.map +1 -0
  62. package/dist/context/tenant.d.mts +20 -0
  63. package/dist/context/tenant.d.ts +20 -0
  64. package/dist/context/tenant.js +4 -0
  65. package/dist/context/tenant.js.map +1 -0
  66. package/dist/context/tenant.mjs +3 -0
  67. package/dist/context/tenant.mjs.map +1 -0
  68. package/dist/context/user.d.mts +63 -0
  69. package/dist/context/user.d.ts +63 -0
  70. package/dist/context/user.js +4 -0
  71. package/dist/context/user.js.map +1 -0
  72. package/dist/context/user.mjs +3 -0
  73. package/dist/context/user.mjs.map +1 -0
  74. package/dist/index-5Ok-M8A0.d.ts +13 -0
  75. package/dist/index-7hUkxLxx.d.mts +17 -0
  76. package/dist/index-8IcDrPMv.d.ts +70 -0
  77. package/dist/index-D6kqtGPa.d.mts +13 -0
  78. package/dist/index-DJal_Cxb.d.mts +70 -0
  79. package/dist/index-DrTQ_GLN.d.mts +21 -0
  80. package/dist/index-DtE-Eb9L.d.ts +17 -0
  81. package/dist/index-_Hc8oq9_.d.ts +21 -0
  82. package/dist/index.d.mts +56 -0
  83. package/dist/index.d.ts +56 -0
  84. package/dist/index.js +43 -0
  85. package/dist/index.js.map +1 -0
  86. package/dist/index.mjs +6 -0
  87. package/dist/index.mjs.map +1 -0
  88. package/dist/msal-utils.d.mts +30 -0
  89. package/dist/msal-utils.d.ts +30 -0
  90. package/dist/msal-utils.js +86 -0
  91. package/dist/msal-utils.js.map +1 -0
  92. package/dist/msal-utils.mjs +62 -0
  93. package/dist/msal-utils.mjs.map +1 -0
  94. package/dist/window/client-error.d.mts +10 -0
  95. package/dist/window/client-error.d.ts +10 -0
  96. package/dist/window/client-error.js +4 -0
  97. package/dist/window/client-error.js.map +1 -0
  98. package/dist/window/client-error.mjs +3 -0
  99. package/dist/window/client-error.mjs.map +1 -0
  100. package/dist/window/clients/app-entity.d.mts +12 -0
  101. package/dist/window/clients/app-entity.d.ts +12 -0
  102. package/dist/window/clients/app-entity.js +15 -0
  103. package/dist/window/clients/app-entity.js.map +1 -0
  104. package/dist/window/clients/app-entity.mjs +13 -0
  105. package/dist/window/clients/app-entity.mjs.map +1 -0
  106. package/dist/window/clients/app-initialization.d.mts +50 -0
  107. package/dist/window/clients/app-initialization.d.ts +50 -0
  108. package/dist/window/clients/app-initialization.js +24 -0
  109. package/dist/window/clients/app-initialization.js.map +1 -0
  110. package/dist/window/clients/app-initialization.mjs +22 -0
  111. package/dist/window/clients/app-initialization.mjs.map +1 -0
  112. package/dist/window/clients/app-install-dialog.d.mts +21 -0
  113. package/dist/window/clients/app-install-dialog.d.ts +21 -0
  114. package/dist/window/clients/app-install-dialog.js +22 -0
  115. package/dist/window/clients/app-install-dialog.js.map +1 -0
  116. package/dist/window/clients/app-install-dialog.mjs +20 -0
  117. package/dist/window/clients/app-install-dialog.mjs.map +1 -0
  118. package/dist/window/clients/authentication.d.mts +66 -0
  119. package/dist/window/clients/authentication.d.ts +66 -0
  120. package/dist/window/clients/authentication.js +47 -0
  121. package/dist/window/clients/authentication.js.map +1 -0
  122. package/dist/window/clients/authentication.mjs +45 -0
  123. package/dist/window/clients/authentication.mjs.map +1 -0
  124. package/dist/window/clients/bar-code.d.mts +13 -0
  125. package/dist/window/clients/bar-code.d.ts +13 -0
  126. package/dist/window/clients/bar-code.js +20 -0
  127. package/dist/window/clients/bar-code.js.map +1 -0
  128. package/dist/window/clients/bar-code.mjs +18 -0
  129. package/dist/window/clients/bar-code.mjs.map +1 -0
  130. package/dist/window/clients/calendar.d.mts +47 -0
  131. package/dist/window/clients/calendar.d.ts +47 -0
  132. package/dist/window/clients/calendar.js +18 -0
  133. package/dist/window/clients/calendar.js.map +1 -0
  134. package/dist/window/clients/calendar.mjs +16 -0
  135. package/dist/window/clients/calendar.mjs.map +1 -0
  136. package/dist/window/clients/call.d.mts +32 -0
  137. package/dist/window/clients/call.d.ts +32 -0
  138. package/dist/window/clients/call.js +16 -0
  139. package/dist/window/clients/call.js.map +1 -0
  140. package/dist/window/clients/call.mjs +14 -0
  141. package/dist/window/clients/call.mjs.map +1 -0
  142. package/dist/window/clients/clipboard.d.mts +26 -0
  143. package/dist/window/clients/clipboard.d.ts +26 -0
  144. package/dist/window/clients/clipboard.js +19 -0
  145. package/dist/window/clients/clipboard.js.map +1 -0
  146. package/dist/window/clients/clipboard.mjs +17 -0
  147. package/dist/window/clients/clipboard.mjs.map +1 -0
  148. package/dist/window/clients/conversation.d.mts +53 -0
  149. package/dist/window/clients/conversation.d.ts +53 -0
  150. package/dist/window/clients/conversation.js +25 -0
  151. package/dist/window/clients/conversation.js.map +1 -0
  152. package/dist/window/clients/conversation.mjs +23 -0
  153. package/dist/window/clients/conversation.mjs.map +1 -0
  154. package/dist/window/clients/dialog.d.mts +81 -0
  155. package/dist/window/clients/dialog.d.ts +81 -0
  156. package/dist/window/clients/dialog.js +37 -0
  157. package/dist/window/clients/dialog.js.map +1 -0
  158. package/dist/window/clients/dialog.mjs +35 -0
  159. package/dist/window/clients/dialog.mjs.map +1 -0
  160. package/dist/window/clients/index.d.mts +84 -0
  161. package/dist/window/clients/index.d.ts +84 -0
  162. package/dist/window/clients/index.js +159 -0
  163. package/dist/window/clients/index.js.map +1 -0
  164. package/dist/window/clients/index.mjs +87 -0
  165. package/dist/window/clients/index.mjs.map +1 -0
  166. package/dist/window/clients/location.d.mts +14 -0
  167. package/dist/window/clients/location.d.ts +14 -0
  168. package/dist/window/clients/location.js +22 -0
  169. package/dist/window/clients/location.js.map +1 -0
  170. package/dist/window/clients/location.mjs +20 -0
  171. package/dist/window/clients/location.mjs.map +1 -0
  172. package/dist/window/clients/media.d.mts +190 -0
  173. package/dist/window/clients/media.d.ts +190 -0
  174. package/dist/window/clients/media.js +75 -0
  175. package/dist/window/clients/media.js.map +1 -0
  176. package/dist/window/clients/media.mjs +68 -0
  177. package/dist/window/clients/media.mjs.map +1 -0
  178. package/dist/window/clients/notification.d.mts +17 -0
  179. package/dist/window/clients/notification.d.ts +17 -0
  180. package/dist/window/clients/notification.js +15 -0
  181. package/dist/window/clients/notification.js.map +1 -0
  182. package/dist/window/clients/notification.mjs +13 -0
  183. package/dist/window/clients/notification.mjs.map +1 -0
  184. package/dist/window/clients/permission.d.mts +14 -0
  185. package/dist/window/clients/permission.d.ts +14 -0
  186. package/dist/window/clients/permission.js +20 -0
  187. package/dist/window/clients/permission.js.map +1 -0
  188. package/dist/window/clients/permission.mjs +18 -0
  189. package/dist/window/clients/permission.mjs.map +1 -0
  190. package/dist/window/index.d.mts +59 -0
  191. package/dist/window/index.d.ts +59 -0
  192. package/dist/window/index.js +35 -0
  193. package/dist/window/index.js.map +1 -0
  194. package/dist/window/index.mjs +6 -0
  195. package/dist/window/index.mjs.map +1 -0
  196. package/dist/window/message.d.mts +24 -0
  197. package/dist/window/message.d.ts +24 -0
  198. package/dist/window/message.js +4 -0
  199. package/dist/window/message.js.map +1 -0
  200. package/dist/window/message.mjs +3 -0
  201. package/dist/window/message.mjs.map +1 -0
  202. package/dist/window/runtime.d.mts +96 -0
  203. package/dist/window/runtime.d.ts +96 -0
  204. package/dist/window/runtime.js +4 -0
  205. package/dist/window/runtime.js.map +1 -0
  206. package/dist/window/runtime.mjs +3 -0
  207. package/dist/window/runtime.mjs.map +1 -0
  208. package/dist/window/types/action-open-url-type.d.mts +15 -0
  209. package/dist/window/types/action-open-url-type.d.ts +15 -0
  210. package/dist/window/types/action-open-url-type.js +13 -0
  211. package/dist/window/types/action-open-url-type.js.map +1 -0
  212. package/dist/window/types/action-open-url-type.mjs +11 -0
  213. package/dist/window/types/action-open-url-type.mjs.map +1 -0
  214. package/dist/window/types/app-eligibility-info.d.mts +48 -0
  215. package/dist/window/types/app-eligibility-info.d.ts +48 -0
  216. package/dist/window/types/app-eligibility-info.js +4 -0
  217. package/dist/window/types/app-eligibility-info.js.map +1 -0
  218. package/dist/window/types/app-eligibility-info.mjs +3 -0
  219. package/dist/window/types/app-eligibility-info.mjs.map +1 -0
  220. package/dist/window/types/bar-code-config.d.mts +13 -0
  221. package/dist/window/types/bar-code-config.d.ts +13 -0
  222. package/dist/window/types/bar-code-config.js +4 -0
  223. package/dist/window/types/bar-code-config.js.map +1 -0
  224. package/dist/window/types/bar-code-config.mjs +3 -0
  225. package/dist/window/types/bar-code-config.mjs.map +1 -0
  226. package/dist/window/types/call-modality.d.mts +21 -0
  227. package/dist/window/types/call-modality.d.ts +21 -0
  228. package/dist/window/types/call-modality.js +14 -0
  229. package/dist/window/types/call-modality.js.map +1 -0
  230. package/dist/window/types/call-modality.mjs +12 -0
  231. package/dist/window/types/call-modality.mjs.map +1 -0
  232. package/dist/window/types/channel-type.d.mts +17 -0
  233. package/dist/window/types/channel-type.d.ts +17 -0
  234. package/dist/window/types/channel-type.js +12 -0
  235. package/dist/window/types/channel-type.js.map +1 -0
  236. package/dist/window/types/channel-type.mjs +10 -0
  237. package/dist/window/types/channel-type.mjs.map +1 -0
  238. package/dist/window/types/context.d.mts +275 -0
  239. package/dist/window/types/context.d.ts +275 -0
  240. package/dist/window/types/context.js +4 -0
  241. package/dist/window/types/context.js.map +1 -0
  242. package/dist/window/types/context.mjs +3 -0
  243. package/dist/window/types/context.mjs.map +1 -0
  244. package/dist/window/types/data-residency.d.mts +6 -0
  245. package/dist/window/types/data-residency.d.ts +6 -0
  246. package/dist/window/types/data-residency.js +4 -0
  247. package/dist/window/types/data-residency.js.map +1 -0
  248. package/dist/window/types/data-residency.mjs +3 -0
  249. package/dist/window/types/data-residency.mjs.map +1 -0
  250. package/dist/window/types/dialog/dialog-dimension.d.mts +17 -0
  251. package/dist/window/types/dialog/dialog-dimension.d.ts +17 -0
  252. package/dist/window/types/dialog/dialog-dimension.js +12 -0
  253. package/dist/window/types/dialog/dialog-dimension.js.map +1 -0
  254. package/dist/window/types/dialog/dialog-dimension.mjs +10 -0
  255. package/dist/window/types/dialog/dialog-dimension.mjs.map +1 -0
  256. package/dist/window/types/dialog/dialog-info.d.mts +43 -0
  257. package/dist/window/types/dialog/dialog-info.d.ts +43 -0
  258. package/dist/window/types/dialog/dialog-info.js +4 -0
  259. package/dist/window/types/dialog/dialog-info.js.map +1 -0
  260. package/dist/window/types/dialog/dialog-info.mjs +3 -0
  261. package/dist/window/types/dialog/dialog-info.mjs.map +1 -0
  262. package/dist/window/types/dialog/dialog-size.d.mts +14 -0
  263. package/dist/window/types/dialog/dialog-size.d.ts +14 -0
  264. package/dist/window/types/dialog/dialog-size.js +4 -0
  265. package/dist/window/types/dialog/dialog-size.js.map +1 -0
  266. package/dist/window/types/dialog/dialog-size.mjs +3 -0
  267. package/dist/window/types/dialog/dialog-size.mjs.map +1 -0
  268. package/dist/window/types/dialog/index.d.mts +3 -0
  269. package/dist/window/types/dialog/index.d.ts +3 -0
  270. package/dist/window/types/dialog/index.js +28 -0
  271. package/dist/window/types/dialog/index.js.map +1 -0
  272. package/dist/window/types/dialog/index.mjs +5 -0
  273. package/dist/window/types/dialog/index.mjs.map +1 -0
  274. package/dist/window/types/file-open-preference.d.mts +17 -0
  275. package/dist/window/types/file-open-preference.d.ts +17 -0
  276. package/dist/window/types/file-open-preference.js +12 -0
  277. package/dist/window/types/file-open-preference.js.map +1 -0
  278. package/dist/window/types/file-open-preference.mjs +10 -0
  279. package/dist/window/types/file-open-preference.mjs.map +1 -0
  280. package/dist/window/types/file.d.mts +42 -0
  281. package/dist/window/types/file.d.ts +42 -0
  282. package/dist/window/types/file.js +11 -0
  283. package/dist/window/types/file.js.map +1 -0
  284. package/dist/window/types/file.mjs +9 -0
  285. package/dist/window/types/file.mjs.map +1 -0
  286. package/dist/window/types/frame-context.d.mts +44 -0
  287. package/dist/window/types/frame-context.d.ts +44 -0
  288. package/dist/window/types/frame-context.js +17 -0
  289. package/dist/window/types/frame-context.js.map +1 -0
  290. package/dist/window/types/frame-context.mjs +15 -0
  291. package/dist/window/types/frame-context.mjs.map +1 -0
  292. package/dist/window/types/host.d.mts +73 -0
  293. package/dist/window/types/host.d.ts +73 -0
  294. package/dist/window/types/host.js +32 -0
  295. package/dist/window/types/host.js.map +1 -0
  296. package/dist/window/types/host.mjs +29 -0
  297. package/dist/window/types/host.mjs.map +1 -0
  298. package/dist/window/types/index.d.mts +39 -0
  299. package/dist/window/types/index.d.ts +39 -0
  300. package/dist/window/types/index.js +189 -0
  301. package/dist/window/types/index.js.map +1 -0
  302. package/dist/window/types/index.mjs +30 -0
  303. package/dist/window/types/index.mjs.map +1 -0
  304. package/dist/window/types/legal-age-group-classification.d.mts +34 -0
  305. package/dist/window/types/legal-age-group-classification.d.ts +34 -0
  306. package/dist/window/types/legal-age-group-classification.js +14 -0
  307. package/dist/window/types/legal-age-group-classification.js.map +1 -0
  308. package/dist/window/types/legal-age-group-classification.mjs +12 -0
  309. package/dist/window/types/legal-age-group-classification.mjs.map +1 -0
  310. package/dist/window/types/liveshare/client.d.mts +23 -0
  311. package/dist/window/types/liveshare/client.d.ts +23 -0
  312. package/dist/window/types/liveshare/client.js +4 -0
  313. package/dist/window/types/liveshare/client.js.map +1 -0
  314. package/dist/window/types/liveshare/client.mjs +3 -0
  315. package/dist/window/types/liveshare/client.mjs.map +1 -0
  316. package/dist/window/types/liveshare/container-state.d.mts +33 -0
  317. package/dist/window/types/liveshare/container-state.d.ts +33 -0
  318. package/dist/window/types/liveshare/container-state.js +13 -0
  319. package/dist/window/types/liveshare/container-state.js.map +1 -0
  320. package/dist/window/types/liveshare/container-state.mjs +11 -0
  321. package/dist/window/types/liveshare/container-state.mjs.map +1 -0
  322. package/dist/window/types/liveshare/fluid-container.d.mts +28 -0
  323. package/dist/window/types/liveshare/fluid-container.d.ts +28 -0
  324. package/dist/window/types/liveshare/fluid-container.js +4 -0
  325. package/dist/window/types/liveshare/fluid-container.js.map +1 -0
  326. package/dist/window/types/liveshare/fluid-container.mjs +3 -0
  327. package/dist/window/types/liveshare/fluid-container.mjs.map +1 -0
  328. package/dist/window/types/liveshare/fluid-tenant.d.mts +16 -0
  329. package/dist/window/types/liveshare/fluid-tenant.d.ts +16 -0
  330. package/dist/window/types/liveshare/fluid-tenant.js +4 -0
  331. package/dist/window/types/liveshare/fluid-tenant.js.map +1 -0
  332. package/dist/window/types/liveshare/fluid-tenant.mjs +3 -0
  333. package/dist/window/types/liveshare/fluid-tenant.mjs.map +1 -0
  334. package/dist/window/types/liveshare/index.d.mts +6 -0
  335. package/dist/window/types/liveshare/index.d.ts +6 -0
  336. package/dist/window/types/liveshare/index.js +42 -0
  337. package/dist/window/types/liveshare/index.js.map +1 -0
  338. package/dist/window/types/liveshare/index.mjs +7 -0
  339. package/dist/window/types/liveshare/index.mjs.map +1 -0
  340. package/dist/window/types/liveshare/ntp-time.d.mts +16 -0
  341. package/dist/window/types/liveshare/ntp-time.d.ts +16 -0
  342. package/dist/window/types/liveshare/ntp-time.js +4 -0
  343. package/dist/window/types/liveshare/ntp-time.js.map +1 -0
  344. package/dist/window/types/liveshare/ntp-time.mjs +3 -0
  345. package/dist/window/types/liveshare/ntp-time.mjs.map +1 -0
  346. package/dist/window/types/locale.d.mts +38 -0
  347. package/dist/window/types/locale.d.ts +38 -0
  348. package/dist/window/types/locale.js +4 -0
  349. package/dist/window/types/locale.js.map +1 -0
  350. package/dist/window/types/locale.mjs +3 -0
  351. package/dist/window/types/locale.mjs.map +1 -0
  352. package/dist/window/types/location.d.mts +25 -0
  353. package/dist/window/types/location.d.ts +25 -0
  354. package/dist/window/types/location.js +4 -0
  355. package/dist/window/types/location.js.map +1 -0
  356. package/dist/window/types/location.mjs +3 -0
  357. package/dist/window/types/location.mjs.map +1 -0
  358. package/dist/window/types/marketplace/cart-info.d.mts +47 -0
  359. package/dist/window/types/marketplace/cart-info.d.ts +47 -0
  360. package/dist/window/types/marketplace/cart-info.js +4 -0
  361. package/dist/window/types/marketplace/cart-info.js.map +1 -0
  362. package/dist/window/types/marketplace/cart-info.mjs +3 -0
  363. package/dist/window/types/marketplace/cart-info.mjs.map +1 -0
  364. package/dist/window/types/marketplace/cart-item.d.mts +40 -0
  365. package/dist/window/types/marketplace/cart-item.d.ts +40 -0
  366. package/dist/window/types/marketplace/cart-item.js +4 -0
  367. package/dist/window/types/marketplace/cart-item.js.map +1 -0
  368. package/dist/window/types/marketplace/cart-item.mjs +3 -0
  369. package/dist/window/types/marketplace/cart-item.mjs.map +1 -0
  370. package/dist/window/types/marketplace/cart-status.d.mts +33 -0
  371. package/dist/window/types/marketplace/cart-status.d.ts +33 -0
  372. package/dist/window/types/marketplace/cart-status.js +14 -0
  373. package/dist/window/types/marketplace/cart-status.js.map +1 -0
  374. package/dist/window/types/marketplace/cart-status.mjs +12 -0
  375. package/dist/window/types/marketplace/cart-status.mjs.map +1 -0
  376. package/dist/window/types/marketplace/cart-version.d.mts +17 -0
  377. package/dist/window/types/marketplace/cart-version.d.ts +17 -0
  378. package/dist/window/types/marketplace/cart-version.js +4 -0
  379. package/dist/window/types/marketplace/cart-version.js.map +1 -0
  380. package/dist/window/types/marketplace/cart-version.mjs +3 -0
  381. package/dist/window/types/marketplace/cart-version.mjs.map +1 -0
  382. package/dist/window/types/marketplace/cart.d.mts +29 -0
  383. package/dist/window/types/marketplace/cart.d.ts +29 -0
  384. package/dist/window/types/marketplace/cart.js +4 -0
  385. package/dist/window/types/marketplace/cart.js.map +1 -0
  386. package/dist/window/types/marketplace/cart.mjs +3 -0
  387. package/dist/window/types/marketplace/cart.mjs.map +1 -0
  388. package/dist/window/types/marketplace/index.d.mts +6 -0
  389. package/dist/window/types/marketplace/index.d.ts +6 -0
  390. package/dist/window/types/marketplace/index.js +49 -0
  391. package/dist/window/types/marketplace/index.js.map +1 -0
  392. package/dist/window/types/marketplace/index.mjs +8 -0
  393. package/dist/window/types/marketplace/index.mjs.map +1 -0
  394. package/dist/window/types/marketplace/intent.d.mts +23 -0
  395. package/dist/window/types/marketplace/intent.d.ts +23 -0
  396. package/dist/window/types/marketplace/intent.js +12 -0
  397. package/dist/window/types/marketplace/intent.js.map +1 -0
  398. package/dist/window/types/marketplace/intent.mjs +10 -0
  399. package/dist/window/types/marketplace/intent.mjs.map +1 -0
  400. package/dist/window/types/notification-type.d.mts +3 -0
  401. package/dist/window/types/notification-type.d.ts +3 -0
  402. package/dist/window/types/notification-type.js +4 -0
  403. package/dist/window/types/notification-type.js.map +1 -0
  404. package/dist/window/types/notification-type.mjs +3 -0
  405. package/dist/window/types/notification-type.mjs.map +1 -0
  406. package/dist/window/types/permission.d.mts +3 -0
  407. package/dist/window/types/permission.d.ts +3 -0
  408. package/dist/window/types/permission.js +4 -0
  409. package/dist/window/types/permission.js.map +1 -0
  410. package/dist/window/types/permission.mjs +3 -0
  411. package/dist/window/types/permission.mjs.map +1 -0
  412. package/dist/window/types/team-type.d.mts +24 -0
  413. package/dist/window/types/team-type.d.ts +24 -0
  414. package/dist/window/types/team-type.js +18 -0
  415. package/dist/window/types/team-type.js.map +1 -0
  416. package/dist/window/types/team-type.mjs +15 -0
  417. package/dist/window/types/team-type.mjs.map +1 -0
  418. package/dist/window/types/theme.d.mts +6 -0
  419. package/dist/window/types/theme.d.ts +6 -0
  420. package/dist/window/types/theme.js +4 -0
  421. package/dist/window/types/theme.js.map +1 -0
  422. package/dist/window/types/theme.mjs +3 -0
  423. package/dist/window/types/theme.mjs.map +1 -0
  424. package/dist/window/types/thread-member.d.mts +11 -0
  425. package/dist/window/types/thread-member.d.ts +11 -0
  426. package/dist/window/types/thread-member.js +4 -0
  427. package/dist/window/types/thread-member.js.map +1 -0
  428. package/dist/window/types/thread-member.mjs +3 -0
  429. package/dist/window/types/thread-member.mjs.map +1 -0
  430. package/dist/window/types/user-meeting-role.d.mts +31 -0
  431. package/dist/window/types/user-meeting-role.d.ts +31 -0
  432. package/dist/window/types/user-meeting-role.js +13 -0
  433. package/dist/window/types/user-meeting-role.js.map +1 -0
  434. package/dist/window/types/user-meeting-role.mjs +11 -0
  435. package/dist/window/types/user-meeting-role.mjs.map +1 -0
  436. package/dist/window/types/user-profile.d.mts +82 -0
  437. package/dist/window/types/user-profile.d.ts +82 -0
  438. package/dist/window/types/user-profile.js +4 -0
  439. package/dist/window/types/user-profile.js.map +1 -0
  440. package/dist/window/types/user-profile.mjs +3 -0
  441. package/dist/window/types/user-profile.mjs.map +1 -0
  442. package/dist/window/types/user-team-role.d.mts +18 -0
  443. package/dist/window/types/user-team-role.d.ts +18 -0
  444. package/dist/window/types/user-team-role.js +16 -0
  445. package/dist/window/types/user-team-role.js.map +1 -0
  446. package/dist/window/types/user-team-role.mjs +13 -0
  447. package/dist/window/types/user-team-role.mjs.map +1 -0
  448. package/dist/window/window-client.d.mts +28 -0
  449. package/dist/window/window-client.d.ts +28 -0
  450. package/dist/window/window-client.js +92 -0
  451. package/dist/window/window-client.js.map +1 -0
  452. package/dist/window/window-client.mjs +70 -0
  453. package/dist/window/window-client.mjs.map +1 -0
  454. package/package.json +57 -0
@@ -0,0 +1,69 @@
1
+ import { FileOpenPreference } from '../window/types/file-open-preference.js';
2
+ import { Locale } from '../window/types/locale.js';
3
+ import { Theme } from '../window/types/theme.js';
4
+ import { AppHostContext } from './app-host.js';
5
+ import '../window/types/host.js';
6
+
7
+ /**
8
+ * Represents application information.
9
+ */
10
+ type AppContext = {
11
+ /**
12
+ * This ID is the unique identifier assigned to the app after deployment and is critical for ensuring the correct app instance is recognized across hosts.
13
+ */
14
+ id?: string;
15
+ /**
16
+ * ID for the current visible app which is different for across cached sessions. Used for correlating telemetry data.
17
+ */
18
+ launchId?: string;
19
+ /**
20
+ * Unique ID for the current session for use in correlating telemetry data. A session corresponds to the lifecycle of an app. A new session begins upon the creation of a webview (on Teams mobile) or iframe (in Teams desktop) hosting the app, and ends when it is destroyed.
21
+ */
22
+ sessionId: string;
23
+ /**
24
+ * The current locale that the user has configured for the app formatted as
25
+ * languageId-countryId (for example, en-us).
26
+ */
27
+ locale: string;
28
+ /**
29
+ * The current UI theme of the host. Possible values: "default", "dark", "contrast" or "glass".
30
+ */
31
+ theme: Theme;
32
+ /**
33
+ * Info of the host
34
+ */
35
+ host: AppHostContext;
36
+ /**
37
+ * More detailed locale info from the user's OS if available. Can be used together with
38
+ * the @microsoft/globe NPM package to ensure your app respects the user's OS date and
39
+ * time format configuration
40
+ */
41
+ osLocaleInfo?: Locale;
42
+ /**
43
+ * Personal app icon y coordinate position
44
+ */
45
+ iconPositionVertical?: number;
46
+ /**
47
+ * Time when the user clicked on the tab using the date.
48
+ */
49
+ userClickTime?: number;
50
+ /**
51
+ * Time when the user click on the app by using the performance timer API. Useful for measuring elapsed time accurately.
52
+ */
53
+ userClickTimeV2?: number;
54
+ /**
55
+ * The ID of the parent message from which this task module was launched.
56
+ * This is only available in task modules launched from bot cards.
57
+ */
58
+ parentMessageId?: string;
59
+ /**
60
+ * Where the user prefers the file to be opened from by default during file open
61
+ */
62
+ userFileOpenPreference?: FileOpenPreference;
63
+ /**
64
+ * The version of the manifest that the app is running.
65
+ */
66
+ manifestVersion?: string;
67
+ };
68
+
69
+ export type { AppContext };
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=app.js.map
4
+ //# sourceMappingURL=app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"app.js"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=app.mjs.map
3
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"app.mjs"}
@@ -0,0 +1,37 @@
1
+ import { ChannelType } from '../window/types/channel-type.mjs';
2
+
3
+ /**
4
+ * Represents Channel information.
5
+ */
6
+ type ChannelContext = {
7
+ /**
8
+ * The Microsoft Teams ID for the channel with which the content is associated.
9
+ */
10
+ id: string;
11
+ /**
12
+ * The name for the channel with which the content is associated.
13
+ */
14
+ displayName?: string;
15
+ /**
16
+ * The relative path to the SharePoint folder associated with the channel.
17
+ */
18
+ relativeUrl?: string;
19
+ /**
20
+ * The type of the channel with which the content is associated.
21
+ */
22
+ membershipType?: ChannelType;
23
+ /**
24
+ * The OneNote section ID that is linked to the channel.
25
+ */
26
+ defaultOneNoteSectionId?: string;
27
+ /**
28
+ * The tenant ID of the team which owns the channel.
29
+ */
30
+ ownerTenantId?: string;
31
+ /**
32
+ * The Microsoft Entra group ID of the team which owns the channel.
33
+ */
34
+ ownerGroupId?: string;
35
+ };
36
+
37
+ export type { ChannelContext };
@@ -0,0 +1,37 @@
1
+ import { ChannelType } from '../window/types/channel-type.js';
2
+
3
+ /**
4
+ * Represents Channel information.
5
+ */
6
+ type ChannelContext = {
7
+ /**
8
+ * The Microsoft Teams ID for the channel with which the content is associated.
9
+ */
10
+ id: string;
11
+ /**
12
+ * The name for the channel with which the content is associated.
13
+ */
14
+ displayName?: string;
15
+ /**
16
+ * The relative path to the SharePoint folder associated with the channel.
17
+ */
18
+ relativeUrl?: string;
19
+ /**
20
+ * The type of the channel with which the content is associated.
21
+ */
22
+ membershipType?: ChannelType;
23
+ /**
24
+ * The OneNote section ID that is linked to the channel.
25
+ */
26
+ defaultOneNoteSectionId?: string;
27
+ /**
28
+ * The tenant ID of the team which owns the channel.
29
+ */
30
+ ownerTenantId?: string;
31
+ /**
32
+ * The Microsoft Entra group ID of the team which owns the channel.
33
+ */
34
+ ownerGroupId?: string;
35
+ };
36
+
37
+ export type { ChannelContext };
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=channel.js.map
4
+ //# sourceMappingURL=channel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"channel.js"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=channel.mjs.map
3
+ //# sourceMappingURL=channel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"channel.mjs"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Represents Chat information.
3
+ */
4
+ type ChatContext = {
5
+ /**
6
+ * The Microsoft Teams ID for the chat with which the content is associated.
7
+ */
8
+ id: string;
9
+ };
10
+
11
+ export type { ChatContext };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Represents Chat information.
3
+ */
4
+ type ChatContext = {
5
+ /**
6
+ * The Microsoft Teams ID for the chat with which the content is associated.
7
+ */
8
+ id: string;
9
+ };
10
+
11
+ export type { ChatContext };
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=chat.js.map
4
+ //# sourceMappingURL=chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chat.js"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=chat.mjs.map
3
+ //# sourceMappingURL=chat.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chat.mjs"}
@@ -0,0 +1,74 @@
1
+ import { Context as Context$1 } from '../window/types/context.mjs';
2
+ import { AppContext } from './app.mjs';
3
+ import { ChannelContext } from './channel.mjs';
4
+ import { ChatContext } from './chat.mjs';
5
+ import { MeetingContext } from './meeting.mjs';
6
+ import { PageContext } from './page.mjs';
7
+ import { SharePointSiteContext } from './share-point-site.mjs';
8
+ import { TeamContext } from './team.mjs';
9
+ import { UserContext } from './user.mjs';
10
+ import '../window/types/channel-type.mjs';
11
+ import '../window/types/file-open-preference.mjs';
12
+ import '../window/types/frame-context.mjs';
13
+ import '../window/types/host.mjs';
14
+ import '../window/types/locale.mjs';
15
+ import '../window/types/team-type.mjs';
16
+ import '../window/types/theme.mjs';
17
+ import '../window/types/user-team-role.mjs';
18
+ import './app-host.mjs';
19
+ import './tenant.mjs';
20
+
21
+ /**
22
+ * Represents structure of the received context message.
23
+ */
24
+ type Context = {
25
+ /**
26
+ * Properties about the current session for your app
27
+ */
28
+ app: AppContext;
29
+ /**
30
+ * Info about the current page context hosting your app
31
+ */
32
+ page: PageContext;
33
+ /**
34
+ * Info about the currently logged in user running the app.
35
+ * If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be `undefined`.
36
+ */
37
+ user?: UserContext;
38
+ /**
39
+ * When running in the context of a Teams channel, provides information about the channel, else `undefined`
40
+ */
41
+ channel?: ChannelContext;
42
+ /**
43
+ * When running in the context of a Teams chat, provides information about the chat, else `undefined`
44
+ */
45
+ chat?: ChatContext;
46
+ /**
47
+ * When running in the context of a Teams meeting, provides information about the meeting, else `undefined`
48
+ */
49
+ meeting?: MeetingContext;
50
+ /**
51
+ * When hosted in SharePoint, this is the [SharePoint PageContext](https://learn.microsoft.com/javascript/api/sp-page-context/pagecontext?view=sp-typescript-latest), else `undefined`
52
+ */
53
+ sharepoint?: any;
54
+ /**
55
+ * When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.
56
+ * Will be `undefined` when not running in Teams for an organization with a tenant.
57
+ */
58
+ sharePointSite?: SharePointSiteContext;
59
+ /**
60
+ * When running in Teams, provides information about the Team context in which your app is running.
61
+ * Will be `undefined` when not running in Teams.
62
+ */
63
+ team?: TeamContext;
64
+ /**
65
+ * When `processActionCommand` activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to `processActionCommand` as `extractedParameters`.
66
+ * App developers need to use these `extractedParameters` in their dialog.
67
+ * They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.
68
+ * If there's no key/value pairs passed, the object will be empty in the case
69
+ */
70
+ dialogParameters: Record<string, string>;
71
+ };
72
+ declare function mapContext(ctx: Context$1): Context;
73
+
74
+ export { type Context, mapContext };
@@ -0,0 +1,74 @@
1
+ import { Context as Context$1 } from '../window/types/context.js';
2
+ import { AppContext } from './app.js';
3
+ import { ChannelContext } from './channel.js';
4
+ import { ChatContext } from './chat.js';
5
+ import { MeetingContext } from './meeting.js';
6
+ import { PageContext } from './page.js';
7
+ import { SharePointSiteContext } from './share-point-site.js';
8
+ import { TeamContext } from './team.js';
9
+ import { UserContext } from './user.js';
10
+ import '../window/types/channel-type.js';
11
+ import '../window/types/file-open-preference.js';
12
+ import '../window/types/frame-context.js';
13
+ import '../window/types/host.js';
14
+ import '../window/types/locale.js';
15
+ import '../window/types/team-type.js';
16
+ import '../window/types/theme.js';
17
+ import '../window/types/user-team-role.js';
18
+ import './app-host.js';
19
+ import './tenant.js';
20
+
21
+ /**
22
+ * Represents structure of the received context message.
23
+ */
24
+ type Context = {
25
+ /**
26
+ * Properties about the current session for your app
27
+ */
28
+ app: AppContext;
29
+ /**
30
+ * Info about the current page context hosting your app
31
+ */
32
+ page: PageContext;
33
+ /**
34
+ * Info about the currently logged in user running the app.
35
+ * If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be `undefined`.
36
+ */
37
+ user?: UserContext;
38
+ /**
39
+ * When running in the context of a Teams channel, provides information about the channel, else `undefined`
40
+ */
41
+ channel?: ChannelContext;
42
+ /**
43
+ * When running in the context of a Teams chat, provides information about the chat, else `undefined`
44
+ */
45
+ chat?: ChatContext;
46
+ /**
47
+ * When running in the context of a Teams meeting, provides information about the meeting, else `undefined`
48
+ */
49
+ meeting?: MeetingContext;
50
+ /**
51
+ * When hosted in SharePoint, this is the [SharePoint PageContext](https://learn.microsoft.com/javascript/api/sp-page-context/pagecontext?view=sp-typescript-latest), else `undefined`
52
+ */
53
+ sharepoint?: any;
54
+ /**
55
+ * When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.
56
+ * Will be `undefined` when not running in Teams for an organization with a tenant.
57
+ */
58
+ sharePointSite?: SharePointSiteContext;
59
+ /**
60
+ * When running in Teams, provides information about the Team context in which your app is running.
61
+ * Will be `undefined` when not running in Teams.
62
+ */
63
+ team?: TeamContext;
64
+ /**
65
+ * When `processActionCommand` activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to `processActionCommand` as `extractedParameters`.
66
+ * App developers need to use these `extractedParameters` in their dialog.
67
+ * They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.
68
+ * If there's no key/value pairs passed, the object will be empty in the case
69
+ */
70
+ dialogParameters: Record<string, string>;
71
+ };
72
+ declare function mapContext(ctx: Context$1): Context;
73
+
74
+ export { type Context, mapContext };
@@ -0,0 +1,108 @@
1
+ 'use strict';
2
+
3
+ var window = require('../window');
4
+
5
+ function _interopNamespace(e) {
6
+ if (e && e.__esModule) return e;
7
+ var n = Object.create(null);
8
+ if (e) {
9
+ Object.keys(e).forEach(function (k) {
10
+ if (k !== 'default') {
11
+ var d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () { return e[k]; }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n.default = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ var window__namespace = /*#__PURE__*/_interopNamespace(window);
24
+
25
+ function mapContext(ctx) {
26
+ return {
27
+ app: {
28
+ id: ctx.appId,
29
+ locale: ctx.locale,
30
+ launchId: ctx.appLaunchId,
31
+ sessionId: ctx.appSessionId ? ctx.appSessionId : "",
32
+ theme: ctx.theme ? ctx.theme : "default",
33
+ iconPositionVertical: ctx.appIconPosition,
34
+ osLocaleInfo: ctx.osLocaleInfo,
35
+ parentMessageId: ctx.parentMessageId,
36
+ userClickTime: ctx.userClickTime,
37
+ userClickTimeV2: ctx.userClickTimeV2,
38
+ userFileOpenPreference: ctx.userFileOpenPreference,
39
+ host: {
40
+ name: ctx.hostName ? ctx.hostName : "Teams",
41
+ clientType: ctx.hostClientType ? ctx.hostClientType : "web",
42
+ sessionId: ctx.sessionId ? ctx.sessionId : "",
43
+ ringId: ctx.ringId
44
+ },
45
+ manifestVersion: ctx.manifestVersion
46
+ },
47
+ page: {
48
+ id: ctx.entityId,
49
+ frameContext: ctx.frameContext || "content",
50
+ subPageId: ctx.subEntityId,
51
+ isFullScreen: ctx.isFullScreen,
52
+ isMultiWindow: ctx.isMultiWindow,
53
+ isBackgroundLoad: ctx.isBackgroundLoad,
54
+ sourceOrigin: ctx.sourceOrigin
55
+ },
56
+ user: {
57
+ id: ctx.userObjectId ?? "",
58
+ displayName: ctx.userDisplayName,
59
+ isCallingAllowed: ctx.isCallingAllowed,
60
+ isPSTNCallingAllowed: ctx.isPSTNCallingAllowed,
61
+ licenseType: ctx.userLicenseType,
62
+ loginHint: ctx.loginHint,
63
+ userPrincipalName: ctx.userPrincipalName,
64
+ tenant: ctx.tid ? {
65
+ id: ctx.tid,
66
+ teamsSku: ctx.tenantSKU
67
+ } : void 0
68
+ },
69
+ channel: ctx.channelId ? {
70
+ id: ctx.channelId,
71
+ displayName: ctx.channelName,
72
+ relativeUrl: ctx.channelRelativeUrl,
73
+ membershipType: ctx.channelType,
74
+ defaultOneNoteSectionId: ctx.defaultOneNoteSectionId,
75
+ ownerGroupId: ctx.hostTeamGroupId,
76
+ ownerTenantId: ctx.hostTeamTenantId
77
+ } : void 0,
78
+ chat: ctx.chatId ? {
79
+ id: ctx.chatId
80
+ } : void 0,
81
+ meeting: ctx.meetingId ? {
82
+ id: ctx.meetingId
83
+ } : void 0,
84
+ sharepoint: ctx.sharepoint,
85
+ team: ctx.teamId ? {
86
+ internalId: ctx.teamId,
87
+ displayName: ctx.teamName,
88
+ type: ctx.teamType ? window__namespace.mapTeamType(ctx.teamType) : void 0,
89
+ groupId: ctx.groupId,
90
+ templateId: ctx.teamTemplateId,
91
+ isArchived: ctx.isTeamArchived,
92
+ userRole: ctx.userTeamRole ? window__namespace.mapUserTeamRole(ctx.userTeamRole) : void 0
93
+ } : void 0,
94
+ sharePointSite: ctx.teamSiteUrl || ctx.teamSiteDomain || ctx.teamSitePath || ctx.mySitePath || ctx.mySiteDomain ? {
95
+ teamSiteUrl: ctx.teamSiteUrl,
96
+ teamSiteDomain: ctx.teamSiteDomain,
97
+ teamSitePath: ctx.teamSitePath,
98
+ teamSiteId: ctx.teamSiteId,
99
+ mySitePath: ctx.mySitePath,
100
+ mySiteDomain: ctx.mySiteDomain
101
+ } : void 0,
102
+ dialogParameters: ctx.dialogParameters || {}
103
+ };
104
+ }
105
+
106
+ exports.mapContext = mapContext;
107
+ //# sourceMappingURL=index.js.map
108
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/context/index.ts"],"names":["window"],"mappings":"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","file":"index.js","sourcesContent":["import * as window from '../window';\n\nimport { AppContext } from './app';\nimport { ChannelContext } from './channel';\nimport { ChatContext } from './chat';\nimport { MeetingContext } from './meeting';\nimport { PageContext } from './page';\nimport { SharePointSiteContext } from './share-point-site';\nimport { TeamContext } from './team';\nimport { UserContext } from './user';\n\n/**\n * Represents structure of the received context message.\n */\nexport type Context = {\n /**\n * Properties about the current session for your app\n */\n app: AppContext;\n\n /**\n * Info about the current page context hosting your app\n */\n page: PageContext;\n\n /**\n * Info about the currently logged in user running the app.\n * If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be `undefined`.\n */\n user?: UserContext;\n\n /**\n * When running in the context of a Teams channel, provides information about the channel, else `undefined`\n */\n channel?: ChannelContext;\n\n /**\n * When running in the context of a Teams chat, provides information about the chat, else `undefined`\n */\n chat?: ChatContext;\n\n /**\n * When running in the context of a Teams meeting, provides information about the meeting, else `undefined`\n */\n meeting?: MeetingContext;\n\n /**\n * When hosted in SharePoint, this is the [SharePoint PageContext](https://learn.microsoft.com/javascript/api/sp-page-context/pagecontext?view=sp-typescript-latest), else `undefined`\n */\n sharepoint?: any;\n\n /**\n * When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.\n * Will be `undefined` when not running in Teams for an organization with a tenant.\n */\n sharePointSite?: SharePointSiteContext;\n\n /**\n * When running in Teams, provides information about the Team context in which your app is running.\n * Will be `undefined` when not running in Teams.\n */\n team?: TeamContext;\n\n /**\n * When `processActionCommand` activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to `processActionCommand` as `extractedParameters`.\n * App developers need to use these `extractedParameters` in their dialog.\n * They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.\n * If there's no key/value pairs passed, the object will be empty in the case\n */\n dialogParameters: Record<string, string>;\n};\n\nexport function mapContext(ctx: window.Context): Context {\n return {\n app: {\n id: ctx.appId,\n locale: ctx.locale,\n launchId: ctx.appLaunchId,\n sessionId: ctx.appSessionId ? ctx.appSessionId : '',\n theme: ctx.theme ? ctx.theme : 'default',\n iconPositionVertical: ctx.appIconPosition,\n osLocaleInfo: ctx.osLocaleInfo,\n parentMessageId: ctx.parentMessageId,\n userClickTime: ctx.userClickTime,\n userClickTimeV2: ctx.userClickTimeV2,\n userFileOpenPreference: ctx.userFileOpenPreference,\n host: {\n name: ctx.hostName ? ctx.hostName : 'Teams',\n clientType: ctx.hostClientType ? ctx.hostClientType : 'web',\n sessionId: ctx.sessionId ? ctx.sessionId : '',\n ringId: ctx.ringId,\n },\n manifestVersion: ctx.manifestVersion,\n },\n page: {\n id: ctx.entityId,\n frameContext: ctx.frameContext || 'content',\n subPageId: ctx.subEntityId,\n isFullScreen: ctx.isFullScreen,\n isMultiWindow: ctx.isMultiWindow,\n isBackgroundLoad: ctx.isBackgroundLoad,\n sourceOrigin: ctx.sourceOrigin,\n },\n user: {\n id: ctx.userObjectId ?? '',\n displayName: ctx.userDisplayName,\n isCallingAllowed: ctx.isCallingAllowed,\n isPSTNCallingAllowed: ctx.isPSTNCallingAllowed,\n licenseType: ctx.userLicenseType,\n loginHint: ctx.loginHint,\n userPrincipalName: ctx.userPrincipalName,\n tenant: ctx.tid\n ? {\n id: ctx.tid,\n teamsSku: ctx.tenantSKU,\n }\n : undefined,\n },\n channel: ctx.channelId\n ? {\n id: ctx.channelId,\n displayName: ctx.channelName,\n relativeUrl: ctx.channelRelativeUrl,\n membershipType: ctx.channelType,\n defaultOneNoteSectionId: ctx.defaultOneNoteSectionId,\n ownerGroupId: ctx.hostTeamGroupId,\n ownerTenantId: ctx.hostTeamTenantId,\n }\n : undefined,\n chat: ctx.chatId\n ? {\n id: ctx.chatId,\n }\n : undefined,\n meeting: ctx.meetingId\n ? {\n id: ctx.meetingId,\n }\n : undefined,\n sharepoint: ctx.sharepoint,\n team: ctx.teamId\n ? {\n internalId: ctx.teamId,\n displayName: ctx.teamName,\n type: ctx.teamType ? window.mapTeamType(ctx.teamType) : undefined,\n groupId: ctx.groupId,\n templateId: ctx.teamTemplateId,\n isArchived: ctx.isTeamArchived,\n userRole: ctx.userTeamRole ? window.mapUserTeamRole(ctx.userTeamRole) : undefined,\n }\n : undefined,\n sharePointSite:\n ctx.teamSiteUrl ||\n ctx.teamSiteDomain ||\n ctx.teamSitePath ||\n ctx.mySitePath ||\n ctx.mySiteDomain\n ? {\n teamSiteUrl: ctx.teamSiteUrl,\n teamSiteDomain: ctx.teamSiteDomain,\n teamSitePath: ctx.teamSitePath,\n teamSiteId: ctx.teamSiteId,\n mySitePath: ctx.mySitePath,\n mySiteDomain: ctx.mySiteDomain,\n }\n : undefined,\n dialogParameters: ctx.dialogParameters || {},\n };\n}\n"]}
@@ -0,0 +1,86 @@
1
+ import * as window from '../window';
2
+
3
+ function mapContext(ctx) {
4
+ return {
5
+ app: {
6
+ id: ctx.appId,
7
+ locale: ctx.locale,
8
+ launchId: ctx.appLaunchId,
9
+ sessionId: ctx.appSessionId ? ctx.appSessionId : "",
10
+ theme: ctx.theme ? ctx.theme : "default",
11
+ iconPositionVertical: ctx.appIconPosition,
12
+ osLocaleInfo: ctx.osLocaleInfo,
13
+ parentMessageId: ctx.parentMessageId,
14
+ userClickTime: ctx.userClickTime,
15
+ userClickTimeV2: ctx.userClickTimeV2,
16
+ userFileOpenPreference: ctx.userFileOpenPreference,
17
+ host: {
18
+ name: ctx.hostName ? ctx.hostName : "Teams",
19
+ clientType: ctx.hostClientType ? ctx.hostClientType : "web",
20
+ sessionId: ctx.sessionId ? ctx.sessionId : "",
21
+ ringId: ctx.ringId
22
+ },
23
+ manifestVersion: ctx.manifestVersion
24
+ },
25
+ page: {
26
+ id: ctx.entityId,
27
+ frameContext: ctx.frameContext || "content",
28
+ subPageId: ctx.subEntityId,
29
+ isFullScreen: ctx.isFullScreen,
30
+ isMultiWindow: ctx.isMultiWindow,
31
+ isBackgroundLoad: ctx.isBackgroundLoad,
32
+ sourceOrigin: ctx.sourceOrigin
33
+ },
34
+ user: {
35
+ id: ctx.userObjectId ?? "",
36
+ displayName: ctx.userDisplayName,
37
+ isCallingAllowed: ctx.isCallingAllowed,
38
+ isPSTNCallingAllowed: ctx.isPSTNCallingAllowed,
39
+ licenseType: ctx.userLicenseType,
40
+ loginHint: ctx.loginHint,
41
+ userPrincipalName: ctx.userPrincipalName,
42
+ tenant: ctx.tid ? {
43
+ id: ctx.tid,
44
+ teamsSku: ctx.tenantSKU
45
+ } : void 0
46
+ },
47
+ channel: ctx.channelId ? {
48
+ id: ctx.channelId,
49
+ displayName: ctx.channelName,
50
+ relativeUrl: ctx.channelRelativeUrl,
51
+ membershipType: ctx.channelType,
52
+ defaultOneNoteSectionId: ctx.defaultOneNoteSectionId,
53
+ ownerGroupId: ctx.hostTeamGroupId,
54
+ ownerTenantId: ctx.hostTeamTenantId
55
+ } : void 0,
56
+ chat: ctx.chatId ? {
57
+ id: ctx.chatId
58
+ } : void 0,
59
+ meeting: ctx.meetingId ? {
60
+ id: ctx.meetingId
61
+ } : void 0,
62
+ sharepoint: ctx.sharepoint,
63
+ team: ctx.teamId ? {
64
+ internalId: ctx.teamId,
65
+ displayName: ctx.teamName,
66
+ type: ctx.teamType ? window.mapTeamType(ctx.teamType) : void 0,
67
+ groupId: ctx.groupId,
68
+ templateId: ctx.teamTemplateId,
69
+ isArchived: ctx.isTeamArchived,
70
+ userRole: ctx.userTeamRole ? window.mapUserTeamRole(ctx.userTeamRole) : void 0
71
+ } : void 0,
72
+ sharePointSite: ctx.teamSiteUrl || ctx.teamSiteDomain || ctx.teamSitePath || ctx.mySitePath || ctx.mySiteDomain ? {
73
+ teamSiteUrl: ctx.teamSiteUrl,
74
+ teamSiteDomain: ctx.teamSiteDomain,
75
+ teamSitePath: ctx.teamSitePath,
76
+ teamSiteId: ctx.teamSiteId,
77
+ mySitePath: ctx.mySitePath,
78
+ mySiteDomain: ctx.mySiteDomain
79
+ } : void 0,
80
+ dialogParameters: ctx.dialogParameters || {}
81
+ };
82
+ }
83
+
84
+ export { mapContext };
85
+ //# sourceMappingURL=index.mjs.map
86
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/context/index.ts"],"names":[],"mappings":"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","file":"index.mjs","sourcesContent":["import * as window from '../window';\n\nimport { AppContext } from './app';\nimport { ChannelContext } from './channel';\nimport { ChatContext } from './chat';\nimport { MeetingContext } from './meeting';\nimport { PageContext } from './page';\nimport { SharePointSiteContext } from './share-point-site';\nimport { TeamContext } from './team';\nimport { UserContext } from './user';\n\n/**\n * Represents structure of the received context message.\n */\nexport type Context = {\n /**\n * Properties about the current session for your app\n */\n app: AppContext;\n\n /**\n * Info about the current page context hosting your app\n */\n page: PageContext;\n\n /**\n * Info about the currently logged in user running the app.\n * If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be `undefined`.\n */\n user?: UserContext;\n\n /**\n * When running in the context of a Teams channel, provides information about the channel, else `undefined`\n */\n channel?: ChannelContext;\n\n /**\n * When running in the context of a Teams chat, provides information about the chat, else `undefined`\n */\n chat?: ChatContext;\n\n /**\n * When running in the context of a Teams meeting, provides information about the meeting, else `undefined`\n */\n meeting?: MeetingContext;\n\n /**\n * When hosted in SharePoint, this is the [SharePoint PageContext](https://learn.microsoft.com/javascript/api/sp-page-context/pagecontext?view=sp-typescript-latest), else `undefined`\n */\n sharepoint?: any;\n\n /**\n * When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.\n * Will be `undefined` when not running in Teams for an organization with a tenant.\n */\n sharePointSite?: SharePointSiteContext;\n\n /**\n * When running in Teams, provides information about the Team context in which your app is running.\n * Will be `undefined` when not running in Teams.\n */\n team?: TeamContext;\n\n /**\n * When `processActionCommand` activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to `processActionCommand` as `extractedParameters`.\n * App developers need to use these `extractedParameters` in their dialog.\n * They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.\n * If there's no key/value pairs passed, the object will be empty in the case\n */\n dialogParameters: Record<string, string>;\n};\n\nexport function mapContext(ctx: window.Context): Context {\n return {\n app: {\n id: ctx.appId,\n locale: ctx.locale,\n launchId: ctx.appLaunchId,\n sessionId: ctx.appSessionId ? ctx.appSessionId : '',\n theme: ctx.theme ? ctx.theme : 'default',\n iconPositionVertical: ctx.appIconPosition,\n osLocaleInfo: ctx.osLocaleInfo,\n parentMessageId: ctx.parentMessageId,\n userClickTime: ctx.userClickTime,\n userClickTimeV2: ctx.userClickTimeV2,\n userFileOpenPreference: ctx.userFileOpenPreference,\n host: {\n name: ctx.hostName ? ctx.hostName : 'Teams',\n clientType: ctx.hostClientType ? ctx.hostClientType : 'web',\n sessionId: ctx.sessionId ? ctx.sessionId : '',\n ringId: ctx.ringId,\n },\n manifestVersion: ctx.manifestVersion,\n },\n page: {\n id: ctx.entityId,\n frameContext: ctx.frameContext || 'content',\n subPageId: ctx.subEntityId,\n isFullScreen: ctx.isFullScreen,\n isMultiWindow: ctx.isMultiWindow,\n isBackgroundLoad: ctx.isBackgroundLoad,\n sourceOrigin: ctx.sourceOrigin,\n },\n user: {\n id: ctx.userObjectId ?? '',\n displayName: ctx.userDisplayName,\n isCallingAllowed: ctx.isCallingAllowed,\n isPSTNCallingAllowed: ctx.isPSTNCallingAllowed,\n licenseType: ctx.userLicenseType,\n loginHint: ctx.loginHint,\n userPrincipalName: ctx.userPrincipalName,\n tenant: ctx.tid\n ? {\n id: ctx.tid,\n teamsSku: ctx.tenantSKU,\n }\n : undefined,\n },\n channel: ctx.channelId\n ? {\n id: ctx.channelId,\n displayName: ctx.channelName,\n relativeUrl: ctx.channelRelativeUrl,\n membershipType: ctx.channelType,\n defaultOneNoteSectionId: ctx.defaultOneNoteSectionId,\n ownerGroupId: ctx.hostTeamGroupId,\n ownerTenantId: ctx.hostTeamTenantId,\n }\n : undefined,\n chat: ctx.chatId\n ? {\n id: ctx.chatId,\n }\n : undefined,\n meeting: ctx.meetingId\n ? {\n id: ctx.meetingId,\n }\n : undefined,\n sharepoint: ctx.sharepoint,\n team: ctx.teamId\n ? {\n internalId: ctx.teamId,\n displayName: ctx.teamName,\n type: ctx.teamType ? window.mapTeamType(ctx.teamType) : undefined,\n groupId: ctx.groupId,\n templateId: ctx.teamTemplateId,\n isArchived: ctx.isTeamArchived,\n userRole: ctx.userTeamRole ? window.mapUserTeamRole(ctx.userTeamRole) : undefined,\n }\n : undefined,\n sharePointSite:\n ctx.teamSiteUrl ||\n ctx.teamSiteDomain ||\n ctx.teamSitePath ||\n ctx.mySitePath ||\n ctx.mySiteDomain\n ? {\n teamSiteUrl: ctx.teamSiteUrl,\n teamSiteDomain: ctx.teamSiteDomain,\n teamSitePath: ctx.teamSitePath,\n teamSiteId: ctx.teamSiteId,\n mySitePath: ctx.mySitePath,\n mySiteDomain: ctx.mySiteDomain,\n }\n : undefined,\n dialogParameters: ctx.dialogParameters || {},\n };\n}\n"]}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Represents Meeting information.
3
+ */
4
+ type MeetingContext = {
5
+ /**
6
+ * Meeting Id used by tab when running in meeting context
7
+ */
8
+ id: string;
9
+ };
10
+
11
+ export type { MeetingContext };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Represents Meeting information.
3
+ */
4
+ type MeetingContext = {
5
+ /**
6
+ * Meeting Id used by tab when running in meeting context
7
+ */
8
+ id: string;
9
+ };
10
+
11
+ export type { MeetingContext };
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=meeting.js.map
4
+ //# sourceMappingURL=meeting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"meeting.js"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=meeting.mjs.map
3
+ //# sourceMappingURL=meeting.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"meeting.mjs"}