@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,13 @@
1
+ class AppEntityClient {
2
+ window;
3
+ constructor(client) {
4
+ this.window = client;
5
+ }
6
+ async select(threadId, categories, subEntityId) {
7
+ await this.window.send("appEntity.selectAppEntity", threadId, categories, subEntityId);
8
+ }
9
+ }
10
+
11
+ export { AppEntityClient };
12
+ //# sourceMappingURL=app-entity.mjs.map
13
+ //# sourceMappingURL=app-entity.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/window/clients/app-entity.ts"],"names":[],"mappings":"AAEO,MAAM,eAAgB,CAAA;AAAA,EAClB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,MAAA,CAAO,QAAkB,EAAA,UAAA,EAAsB,WAAqB,EAAA;AACxE,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA,CAAK,2BAA6B,EAAA,QAAA,EAAU,YAAY,WAAW,CAAA;AAAA;AAEzF","file":"app-entity.mjs","sourcesContent":["import { WindowClient } from '../window-client';\n\nexport class AppEntityClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async select(threadId: string, categories: string[], subEntityId: string) {\n await this.window.send('appEntity.selectAppEntity', threadId, categories, subEntityId);\n }\n}\n"]}
@@ -0,0 +1,50 @@
1
+ import { WindowClient } from '../window-client.mjs';
2
+ import '@microsoft/teams.common';
3
+ import '../message.mjs';
4
+ import '../client-error.mjs';
5
+
6
+ /**
7
+ * Describes errors that caused app initialization to fail
8
+ */
9
+ type FailedReason = 'AuthFailed' | 'Timeout' | 'Other';
10
+ /**
11
+ * Describes expected errors that occurred during an otherwise successful
12
+ * app initialization
13
+ */
14
+ type ExpectedFailureReason = 'PermissionError' | 'NotFound' | 'Throttling' | 'Offline' | 'Other';
15
+ /**
16
+ * Represents the failed request sent during a failed app initialization.
17
+ */
18
+ type FailedParams = {
19
+ /**
20
+ * The reason for the failure
21
+ */
22
+ reason: FailedReason;
23
+ /**
24
+ * This property is currently unused.
25
+ */
26
+ message?: string;
27
+ };
28
+ /**
29
+ * Represents the failure request sent during an erroneous app initialization.
30
+ */
31
+ type ExpectedFailureParams = {
32
+ /**
33
+ * The reason for the failure
34
+ */
35
+ reason: ExpectedFailureReason;
36
+ /**
37
+ * A message that describes the failure
38
+ */
39
+ message?: string;
40
+ };
41
+ declare class AppInitializationClient {
42
+ readonly window: WindowClient;
43
+ constructor(client: WindowClient);
44
+ loaded(): Promise<void>;
45
+ success(): Promise<void>;
46
+ failure(params: FailedParams): Promise<void>;
47
+ expectedFailure(params: ExpectedFailureParams): Promise<void>;
48
+ }
49
+
50
+ export { AppInitializationClient, type ExpectedFailureParams, type ExpectedFailureReason, type FailedParams, type FailedReason };
@@ -0,0 +1,50 @@
1
+ import { WindowClient } from '../window-client.js';
2
+ import '@microsoft/teams.common';
3
+ import '../message.js';
4
+ import '../client-error.js';
5
+
6
+ /**
7
+ * Describes errors that caused app initialization to fail
8
+ */
9
+ type FailedReason = 'AuthFailed' | 'Timeout' | 'Other';
10
+ /**
11
+ * Describes expected errors that occurred during an otherwise successful
12
+ * app initialization
13
+ */
14
+ type ExpectedFailureReason = 'PermissionError' | 'NotFound' | 'Throttling' | 'Offline' | 'Other';
15
+ /**
16
+ * Represents the failed request sent during a failed app initialization.
17
+ */
18
+ type FailedParams = {
19
+ /**
20
+ * The reason for the failure
21
+ */
22
+ reason: FailedReason;
23
+ /**
24
+ * This property is currently unused.
25
+ */
26
+ message?: string;
27
+ };
28
+ /**
29
+ * Represents the failure request sent during an erroneous app initialization.
30
+ */
31
+ type ExpectedFailureParams = {
32
+ /**
33
+ * The reason for the failure
34
+ */
35
+ reason: ExpectedFailureReason;
36
+ /**
37
+ * A message that describes the failure
38
+ */
39
+ message?: string;
40
+ };
41
+ declare class AppInitializationClient {
42
+ readonly window: WindowClient;
43
+ constructor(client: WindowClient);
44
+ loaded(): Promise<void>;
45
+ success(): Promise<void>;
46
+ failure(params: FailedParams): Promise<void>;
47
+ expectedFailure(params: ExpectedFailureParams): Promise<void>;
48
+ }
49
+
50
+ export { AppInitializationClient, type ExpectedFailureParams, type ExpectedFailureReason, type FailedParams, type FailedReason };
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ class AppInitializationClient {
4
+ window;
5
+ constructor(client) {
6
+ this.window = client;
7
+ }
8
+ async loaded() {
9
+ await this.window.send("appInitialization.appLoaded");
10
+ }
11
+ async success() {
12
+ await this.window.send("appInitialization.sucess");
13
+ }
14
+ async failure(params) {
15
+ await this.window.send("appInitialization.failure", [params.reason, params.message]);
16
+ }
17
+ async expectedFailure(params) {
18
+ await this.window.send("appInitialization.expectedFailure", [params.reason, params.message]);
19
+ }
20
+ }
21
+
22
+ exports.AppInitializationClient = AppInitializationClient;
23
+ //# sourceMappingURL=app-initialization.js.map
24
+ //# sourceMappingURL=app-initialization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/window/clients/app-initialization.ts"],"names":[],"mappings":";;AAgDO,MAAM,uBAAwB,CAAA;AAAA,EAC1B,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,MAAS,GAAA;AACb,IAAM,MAAA,IAAA,CAAK,MAAO,CAAA,IAAA,CAAK,6BAA6B,CAAA;AAAA;AACtD,EAEA,MAAM,OAAU,GAAA;AACd,IAAM,MAAA,IAAA,CAAK,MAAO,CAAA,IAAA,CAAK,0BAA0B,CAAA;AAAA;AACnD,EAEA,MAAM,QAAQ,MAAsB,EAAA;AAClC,IAAM,MAAA,IAAA,CAAK,OAAO,IAAK,CAAA,2BAAA,EAA6B,CAAC,MAAO,CAAA,MAAA,EAAQ,MAAO,CAAA,OAAO,CAAC,CAAA;AAAA;AACrF,EAEA,MAAM,gBAAgB,MAA+B,EAAA;AACnD,IAAM,MAAA,IAAA,CAAK,OAAO,IAAK,CAAA,mCAAA,EAAqC,CAAC,MAAO,CAAA,MAAA,EAAQ,MAAO,CAAA,OAAO,CAAC,CAAA;AAAA;AAE/F","file":"app-initialization.js","sourcesContent":["import { WindowClient } from '../window-client';\n\n/**\n * Describes errors that caused app initialization to fail\n */\nexport type FailedReason = 'AuthFailed' | 'Timeout' | 'Other';\n\n/**\n * Describes expected errors that occurred during an otherwise successful\n * app initialization\n */\nexport type ExpectedFailureReason =\n | 'PermissionError'\n | 'NotFound'\n | 'Throttling'\n | 'Offline'\n | 'Other';\n\n/**\n * Represents the failed request sent during a failed app initialization.\n */\nexport type FailedParams = {\n /**\n * The reason for the failure\n */\n reason: FailedReason;\n\n /**\n * This property is currently unused.\n */\n message?: string;\n};\n\n/**\n * Represents the failure request sent during an erroneous app initialization.\n */\nexport type ExpectedFailureParams = {\n /**\n * The reason for the failure\n */\n reason: ExpectedFailureReason;\n\n /**\n * A message that describes the failure\n */\n message?: string;\n};\n\nexport class AppInitializationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async loaded() {\n await this.window.send('appInitialization.appLoaded');\n }\n\n async success() {\n await this.window.send('appInitialization.sucess');\n }\n\n async failure(params: FailedParams) {\n await this.window.send('appInitialization.failure', [params.reason, params.message]);\n }\n\n async expectedFailure(params: ExpectedFailureParams) {\n await this.window.send('appInitialization.expectedFailure', [params.reason, params.message]);\n }\n}\n"]}
@@ -0,0 +1,22 @@
1
+ class AppInitializationClient {
2
+ window;
3
+ constructor(client) {
4
+ this.window = client;
5
+ }
6
+ async loaded() {
7
+ await this.window.send("appInitialization.appLoaded");
8
+ }
9
+ async success() {
10
+ await this.window.send("appInitialization.sucess");
11
+ }
12
+ async failure(params) {
13
+ await this.window.send("appInitialization.failure", [params.reason, params.message]);
14
+ }
15
+ async expectedFailure(params) {
16
+ await this.window.send("appInitialization.expectedFailure", [params.reason, params.message]);
17
+ }
18
+ }
19
+
20
+ export { AppInitializationClient };
21
+ //# sourceMappingURL=app-initialization.mjs.map
22
+ //# sourceMappingURL=app-initialization.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/window/clients/app-initialization.ts"],"names":[],"mappings":"AAgDO,MAAM,uBAAwB,CAAA;AAAA,EAC1B,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,MAAS,GAAA;AACb,IAAM,MAAA,IAAA,CAAK,MAAO,CAAA,IAAA,CAAK,6BAA6B,CAAA;AAAA;AACtD,EAEA,MAAM,OAAU,GAAA;AACd,IAAM,MAAA,IAAA,CAAK,MAAO,CAAA,IAAA,CAAK,0BAA0B,CAAA;AAAA;AACnD,EAEA,MAAM,QAAQ,MAAsB,EAAA;AAClC,IAAM,MAAA,IAAA,CAAK,OAAO,IAAK,CAAA,2BAAA,EAA6B,CAAC,MAAO,CAAA,MAAA,EAAQ,MAAO,CAAA,OAAO,CAAC,CAAA;AAAA;AACrF,EAEA,MAAM,gBAAgB,MAA+B,EAAA;AACnD,IAAM,MAAA,IAAA,CAAK,OAAO,IAAK,CAAA,mCAAA,EAAqC,CAAC,MAAO,CAAA,MAAA,EAAQ,MAAO,CAAA,OAAO,CAAC,CAAA;AAAA;AAE/F","file":"app-initialization.mjs","sourcesContent":["import { WindowClient } from '../window-client';\n\n/**\n * Describes errors that caused app initialization to fail\n */\nexport type FailedReason = 'AuthFailed' | 'Timeout' | 'Other';\n\n/**\n * Describes expected errors that occurred during an otherwise successful\n * app initialization\n */\nexport type ExpectedFailureReason =\n | 'PermissionError'\n | 'NotFound'\n | 'Throttling'\n | 'Offline'\n | 'Other';\n\n/**\n * Represents the failed request sent during a failed app initialization.\n */\nexport type FailedParams = {\n /**\n * The reason for the failure\n */\n reason: FailedReason;\n\n /**\n * This property is currently unused.\n */\n message?: string;\n};\n\n/**\n * Represents the failure request sent during an erroneous app initialization.\n */\nexport type ExpectedFailureParams = {\n /**\n * The reason for the failure\n */\n reason: ExpectedFailureReason;\n\n /**\n * A message that describes the failure\n */\n message?: string;\n};\n\nexport class AppInitializationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async loaded() {\n await this.window.send('appInitialization.appLoaded');\n }\n\n async success() {\n await this.window.send('appInitialization.sucess');\n }\n\n async failure(params: FailedParams) {\n await this.window.send('appInitialization.failure', [params.reason, params.message]);\n }\n\n async expectedFailure(params: ExpectedFailureParams) {\n await this.window.send('appInitialization.expectedFailure', [params.reason, params.message]);\n }\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import { WindowClient } from '../window-client.mjs';
2
+ import '@microsoft/teams.common';
3
+ import '../message.mjs';
4
+ import '../client-error.mjs';
5
+
6
+ /**
7
+ * Represents set of parameters needed to open the appInstallDialog.
8
+ */
9
+ type OpenAppInstallDialogParams = {
10
+ /**
11
+ * A unique identifier for the app being installed.
12
+ */
13
+ appId: string;
14
+ };
15
+ declare class AppInstallDialogClient {
16
+ readonly window: WindowClient;
17
+ constructor(client: WindowClient);
18
+ open(params: OpenAppInstallDialogParams): Promise<string>;
19
+ }
20
+
21
+ export { AppInstallDialogClient, type OpenAppInstallDialogParams };
@@ -0,0 +1,21 @@
1
+ import { WindowClient } from '../window-client.js';
2
+ import '@microsoft/teams.common';
3
+ import '../message.js';
4
+ import '../client-error.js';
5
+
6
+ /**
7
+ * Represents set of parameters needed to open the appInstallDialog.
8
+ */
9
+ type OpenAppInstallDialogParams = {
10
+ /**
11
+ * A unique identifier for the app being installed.
12
+ */
13
+ appId: string;
14
+ };
15
+ declare class AppInstallDialogClient {
16
+ readonly window: WindowClient;
17
+ constructor(client: WindowClient);
18
+ open(params: OpenAppInstallDialogParams): Promise<string>;
19
+ }
20
+
21
+ export { AppInstallDialogClient, type OpenAppInstallDialogParams };
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ class AppInstallDialogClient {
4
+ window;
5
+ constructor(client) {
6
+ this.window = client;
7
+ }
8
+ async open(params) {
9
+ const [ok, res] = await this.window.send(
10
+ "appInstallDialog.openAppInstallDialog",
11
+ params
12
+ );
13
+ if (!ok) {
14
+ throw { errorCode: 500, message: res };
15
+ }
16
+ return res;
17
+ }
18
+ }
19
+
20
+ exports.AppInstallDialogClient = AppInstallDialogClient;
21
+ //# sourceMappingURL=app-install-dialog.js.map
22
+ //# sourceMappingURL=app-install-dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/window/clients/app-install-dialog.ts"],"names":[],"mappings":";;AAYO,MAAM,sBAAuB,CAAA;AAAA,EACzB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,KAAK,MAAoC,EAAA;AAC7C,IAAA,MAAM,CAAC,EAAI,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAClC,uCAAA;AAAA,MACA;AAAA,KACF;AAEA,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAA,MAAM,EAAE,SAAA,EAAW,GAAK,EAAA,OAAA,EAAS,GAAI,EAAA;AAAA;AAGvC,IAAO,OAAA,GAAA;AAAA;AAEX","file":"app-install-dialog.js","sourcesContent":["import { WindowClient } from '../window-client';\n\n/**\n * Represents set of parameters needed to open the appInstallDialog.\n */\nexport type OpenAppInstallDialogParams = {\n /**\n * A unique identifier for the app being installed.\n */\n appId: string;\n};\n\nexport class AppInstallDialogClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async open(params: OpenAppInstallDialogParams) {\n const [ok, res] = await this.window.send<[boolean, string]>(\n 'appInstallDialog.openAppInstallDialog',\n params\n );\n\n if (!ok) {\n throw { errorCode: 500, message: res };\n }\n\n return res;\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ class AppInstallDialogClient {
2
+ window;
3
+ constructor(client) {
4
+ this.window = client;
5
+ }
6
+ async open(params) {
7
+ const [ok, res] = await this.window.send(
8
+ "appInstallDialog.openAppInstallDialog",
9
+ params
10
+ );
11
+ if (!ok) {
12
+ throw { errorCode: 500, message: res };
13
+ }
14
+ return res;
15
+ }
16
+ }
17
+
18
+ export { AppInstallDialogClient };
19
+ //# sourceMappingURL=app-install-dialog.mjs.map
20
+ //# sourceMappingURL=app-install-dialog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/window/clients/app-install-dialog.ts"],"names":[],"mappings":"AAYO,MAAM,sBAAuB,CAAA;AAAA,EACzB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,KAAK,MAAoC,EAAA;AAC7C,IAAA,MAAM,CAAC,EAAI,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAClC,uCAAA;AAAA,MACA;AAAA,KACF;AAEA,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAA,MAAM,EAAE,SAAA,EAAW,GAAK,EAAA,OAAA,EAAS,GAAI,EAAA;AAAA;AAGvC,IAAO,OAAA,GAAA;AAAA;AAEX","file":"app-install-dialog.mjs","sourcesContent":["import { WindowClient } from '../window-client';\n\n/**\n * Represents set of parameters needed to open the appInstallDialog.\n */\nexport type OpenAppInstallDialogParams = {\n /**\n * A unique identifier for the app being installed.\n */\n appId: string;\n};\n\nexport class AppInstallDialogClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async open(params: OpenAppInstallDialogParams) {\n const [ok, res] = await this.window.send<[boolean, string]>(\n 'appInstallDialog.openAppInstallDialog',\n params\n );\n\n if (!ok) {\n throw { errorCode: 500, message: res };\n }\n\n return res;\n }\n}\n"]}
@@ -0,0 +1,66 @@
1
+ import { UserProfile } from '../types/user-profile.mjs';
2
+ import { WindowClient } from '../window-client.mjs';
3
+ import '../types/data-residency.mjs';
4
+ import '@microsoft/teams.common';
5
+ import '../message.mjs';
6
+ import '../client-error.mjs';
7
+
8
+ /**
9
+ * Describes the authentication pop-up parameters
10
+ */
11
+ type AuthPopUpParams = {
12
+ /**
13
+ * The URL for the authentication pop-up.
14
+ */
15
+ url: string;
16
+ /**
17
+ * The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.
18
+ */
19
+ width?: number;
20
+ /**
21
+ * The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.
22
+ */
23
+ height?: number;
24
+ /**
25
+ * Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)
26
+ * If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in
27
+ * the {@link url} property to be opened in an external browser.
28
+ * If this flag is `false`, the page will be opened directly within the current hosting application.
29
+ *
30
+ * This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only
31
+ * environment without an embedded browser.
32
+ */
33
+ isExternal?: boolean;
34
+ };
35
+ /**
36
+ * Describes authentication token request parameters
37
+ */
38
+ type AuthTokenRequestParams = {
39
+ /**
40
+ * An list of resources for which to acquire the access token; only for internal Microsoft usage
41
+ */
42
+ resources?: string[];
43
+ /**
44
+ * An optional list of claims which to pass to Microsoft Entra when requesting the access token.
45
+ */
46
+ claims?: string[];
47
+ /**
48
+ * An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
49
+ */
50
+ silent?: boolean;
51
+ /**
52
+ * An optional identifier of the home tenant for which to acquire the access token for (used in cross-tenant shared channels).
53
+ */
54
+ tenantId?: string;
55
+ };
56
+ declare class AuthenticationClient {
57
+ readonly window: WindowClient;
58
+ constructor(client: WindowClient);
59
+ getToken(params?: AuthTokenRequestParams): Promise<string>;
60
+ getUser(): Promise<UserProfile>;
61
+ authenticate(params: AuthPopUpParams): Promise<void>;
62
+ success(result?: string): Promise<void>;
63
+ failure(reason?: string): Promise<void>;
64
+ }
65
+
66
+ export { type AuthPopUpParams, type AuthTokenRequestParams, AuthenticationClient };
@@ -0,0 +1,66 @@
1
+ import { UserProfile } from '../types/user-profile.js';
2
+ import { WindowClient } from '../window-client.js';
3
+ import '../types/data-residency.js';
4
+ import '@microsoft/teams.common';
5
+ import '../message.js';
6
+ import '../client-error.js';
7
+
8
+ /**
9
+ * Describes the authentication pop-up parameters
10
+ */
11
+ type AuthPopUpParams = {
12
+ /**
13
+ * The URL for the authentication pop-up.
14
+ */
15
+ url: string;
16
+ /**
17
+ * The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.
18
+ */
19
+ width?: number;
20
+ /**
21
+ * The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.
22
+ */
23
+ height?: number;
24
+ /**
25
+ * Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)
26
+ * If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in
27
+ * the {@link url} property to be opened in an external browser.
28
+ * If this flag is `false`, the page will be opened directly within the current hosting application.
29
+ *
30
+ * This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only
31
+ * environment without an embedded browser.
32
+ */
33
+ isExternal?: boolean;
34
+ };
35
+ /**
36
+ * Describes authentication token request parameters
37
+ */
38
+ type AuthTokenRequestParams = {
39
+ /**
40
+ * An list of resources for which to acquire the access token; only for internal Microsoft usage
41
+ */
42
+ resources?: string[];
43
+ /**
44
+ * An optional list of claims which to pass to Microsoft Entra when requesting the access token.
45
+ */
46
+ claims?: string[];
47
+ /**
48
+ * An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.
49
+ */
50
+ silent?: boolean;
51
+ /**
52
+ * An optional identifier of the home tenant for which to acquire the access token for (used in cross-tenant shared channels).
53
+ */
54
+ tenantId?: string;
55
+ };
56
+ declare class AuthenticationClient {
57
+ readonly window: WindowClient;
58
+ constructor(client: WindowClient);
59
+ getToken(params?: AuthTokenRequestParams): Promise<string>;
60
+ getUser(): Promise<UserProfile>;
61
+ authenticate(params: AuthPopUpParams): Promise<void>;
62
+ success(result?: string): Promise<void>;
63
+ failure(reason?: string): Promise<void>;
64
+ }
65
+
66
+ export { type AuthPopUpParams, type AuthTokenRequestParams, AuthenticationClient };
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ class AuthenticationClient {
4
+ window;
5
+ constructor(client) {
6
+ this.window = client;
7
+ }
8
+ async getToken(params) {
9
+ const [ok, res] = await this.window.send(
10
+ "authentication.getAuthToken",
11
+ params?.resources,
12
+ params?.claims,
13
+ params?.silent,
14
+ params?.tenantId
15
+ );
16
+ if (!ok) {
17
+ throw { errorCode: 500, message: res };
18
+ }
19
+ return res;
20
+ }
21
+ async getUser() {
22
+ const [ok, res] = await this.window.send("authentication.getUser");
23
+ if (!ok) {
24
+ throw res;
25
+ }
26
+ return res;
27
+ }
28
+ async authenticate(params) {
29
+ await this.window.send(
30
+ "authentication.authenticate",
31
+ params.url,
32
+ params.width,
33
+ params.height,
34
+ params.isExternal
35
+ );
36
+ }
37
+ async success(result) {
38
+ await this.window.send("authentication.authenticate.success", result);
39
+ }
40
+ async failure(reason) {
41
+ await this.window.send("authentication.authenticate.success", reason);
42
+ }
43
+ }
44
+
45
+ exports.AuthenticationClient = AuthenticationClient;
46
+ //# sourceMappingURL=authentication.js.map
47
+ //# sourceMappingURL=authentication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/window/clients/authentication.ts"],"names":[],"mappings":";;AA4DO,MAAM,oBAAqB,CAAA;AAAA,EACvB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,SAAS,MAAiC,EAAA;AAC9C,IAAA,MAAM,CAAC,EAAI,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAClC,6BAAA;AAAA,MACA,MAAQ,EAAA,SAAA;AAAA,MACR,MAAQ,EAAA,MAAA;AAAA,MACR,MAAQ,EAAA,MAAA;AAAA,MACR,MAAQ,EAAA;AAAA,KACV;AAEA,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAA,MAAM,EAAE,SAAA,EAAW,GAAK,EAAA,OAAA,EAAS,GAAI,EAAA;AAAA;AAGvC,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,OAAU,GAAA;AACd,IAAM,MAAA,CAAC,IAAI,GAAG,CAAA,GACZ,MAAM,IAAK,CAAA,MAAA,CAAO,KAA2C,wBAAwB,CAAA;AAEvF,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAM,MAAA,GAAA;AAAA;AAGR,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,aAAa,MAAyB,EAAA;AAC1C,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAChB,6BAAA;AAAA,MACA,MAAO,CAAA,GAAA;AAAA,MACP,MAAO,CAAA,KAAA;AAAA,MACP,MAAO,CAAA,MAAA;AAAA,MACP,MAAO,CAAA;AAAA,KACT;AAAA;AACF,EAEA,MAAM,QAAQ,MAAiB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,qCAAA,EAAuC,MAAM,CAAA;AAAA;AACtE,EAEA,MAAM,QAAQ,MAAiB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,qCAAA,EAAuC,MAAM,CAAA;AAAA;AAExE","file":"authentication.js","sourcesContent":["import { ClientError } from '../client-error';\nimport { UserProfile } from '../types';\nimport { WindowClient } from '../window-client';\n\n/**\n * Describes the authentication pop-up parameters\n */\nexport type AuthPopUpParams = {\n /**\n * The URL for the authentication pop-up.\n */\n url: string;\n\n /**\n * The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.\n */\n width?: number;\n\n /**\n * The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.\n */\n height?: number;\n\n /**\n * Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)\n * If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in\n * the {@link url} property to be opened in an external browser.\n * If this flag is `false`, the page will be opened directly within the current hosting application.\n *\n * This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only\n * environment without an embedded browser.\n */\n isExternal?: boolean;\n};\n\n/**\n * Describes authentication token request parameters\n */\nexport type AuthTokenRequestParams = {\n /**\n * An list of resources for which to acquire the access token; only for internal Microsoft usage\n */\n resources?: string[];\n\n /**\n * An optional list of claims which to pass to Microsoft Entra when requesting the access token.\n */\n claims?: string[];\n\n /**\n * An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.\n */\n silent?: boolean;\n\n /**\n * An optional identifier of the home tenant for which to acquire the access token for (used in cross-tenant shared channels).\n */\n tenantId?: string;\n};\n\nexport class AuthenticationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async getToken(params?: AuthTokenRequestParams) {\n const [ok, res] = await this.window.send<[boolean, string]>(\n 'authentication.getAuthToken',\n params?.resources,\n params?.claims,\n params?.silent,\n params?.tenantId\n );\n\n if (!ok) {\n throw { errorCode: 500, message: res };\n }\n\n return res;\n }\n\n async getUser() {\n const [ok, res] =\n await this.window.send<[boolean, UserProfile | ClientError]>('authentication.getUser');\n\n if (!ok) {\n throw res;\n }\n\n return res as UserProfile;\n }\n\n async authenticate(params: AuthPopUpParams) {\n await this.window.send(\n 'authentication.authenticate',\n params.url,\n params.width,\n params.height,\n params.isExternal\n );\n }\n\n async success(result?: string) {\n await this.window.send('authentication.authenticate.success', result);\n }\n\n async failure(reason?: string) {\n await this.window.send('authentication.authenticate.success', reason);\n }\n}\n"]}
@@ -0,0 +1,45 @@
1
+ class AuthenticationClient {
2
+ window;
3
+ constructor(client) {
4
+ this.window = client;
5
+ }
6
+ async getToken(params) {
7
+ const [ok, res] = await this.window.send(
8
+ "authentication.getAuthToken",
9
+ params?.resources,
10
+ params?.claims,
11
+ params?.silent,
12
+ params?.tenantId
13
+ );
14
+ if (!ok) {
15
+ throw { errorCode: 500, message: res };
16
+ }
17
+ return res;
18
+ }
19
+ async getUser() {
20
+ const [ok, res] = await this.window.send("authentication.getUser");
21
+ if (!ok) {
22
+ throw res;
23
+ }
24
+ return res;
25
+ }
26
+ async authenticate(params) {
27
+ await this.window.send(
28
+ "authentication.authenticate",
29
+ params.url,
30
+ params.width,
31
+ params.height,
32
+ params.isExternal
33
+ );
34
+ }
35
+ async success(result) {
36
+ await this.window.send("authentication.authenticate.success", result);
37
+ }
38
+ async failure(reason) {
39
+ await this.window.send("authentication.authenticate.success", reason);
40
+ }
41
+ }
42
+
43
+ export { AuthenticationClient };
44
+ //# sourceMappingURL=authentication.mjs.map
45
+ //# sourceMappingURL=authentication.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/window/clients/authentication.ts"],"names":[],"mappings":"AA4DO,MAAM,oBAAqB,CAAA;AAAA,EACvB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,SAAS,MAAiC,EAAA;AAC9C,IAAA,MAAM,CAAC,EAAI,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAClC,6BAAA;AAAA,MACA,MAAQ,EAAA,SAAA;AAAA,MACR,MAAQ,EAAA,MAAA;AAAA,MACR,MAAQ,EAAA,MAAA;AAAA,MACR,MAAQ,EAAA;AAAA,KACV;AAEA,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAA,MAAM,EAAE,SAAA,EAAW,GAAK,EAAA,OAAA,EAAS,GAAI,EAAA;AAAA;AAGvC,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,OAAU,GAAA;AACd,IAAM,MAAA,CAAC,IAAI,GAAG,CAAA,GACZ,MAAM,IAAK,CAAA,MAAA,CAAO,KAA2C,wBAAwB,CAAA;AAEvF,IAAA,IAAI,CAAC,EAAI,EAAA;AACP,MAAM,MAAA,GAAA;AAAA;AAGR,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,aAAa,MAAyB,EAAA;AAC1C,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAChB,6BAAA;AAAA,MACA,MAAO,CAAA,GAAA;AAAA,MACP,MAAO,CAAA,KAAA;AAAA,MACP,MAAO,CAAA,MAAA;AAAA,MACP,MAAO,CAAA;AAAA,KACT;AAAA;AACF,EAEA,MAAM,QAAQ,MAAiB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,qCAAA,EAAuC,MAAM,CAAA;AAAA;AACtE,EAEA,MAAM,QAAQ,MAAiB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,qCAAA,EAAuC,MAAM,CAAA;AAAA;AAExE","file":"authentication.mjs","sourcesContent":["import { ClientError } from '../client-error';\nimport { UserProfile } from '../types';\nimport { WindowClient } from '../window-client';\n\n/**\n * Describes the authentication pop-up parameters\n */\nexport type AuthPopUpParams = {\n /**\n * The URL for the authentication pop-up.\n */\n url: string;\n\n /**\n * The preferred width for the pop-up. This value can be ignored if outside the acceptable bounds.\n */\n width?: number;\n\n /**\n * The preferred height for the pop-up. This value can be ignored if outside the acceptable bounds.\n */\n height?: number;\n\n /**\n * Some identity providers restrict their authentication pages from being displayed in embedded browsers (e.g., a web view inside of a native application)\n * If the identity provider you are using prevents embedded browser usage, this flag should be set to `true` to enable the authentication page specified in\n * the {@link url} property to be opened in an external browser.\n * If this flag is `false`, the page will be opened directly within the current hosting application.\n *\n * This flag is ignored when the host for the application is a web app (as opposed to a native application) as the behavior is unnecessary in a web-only\n * environment without an embedded browser.\n */\n isExternal?: boolean;\n};\n\n/**\n * Describes authentication token request parameters\n */\nexport type AuthTokenRequestParams = {\n /**\n * An list of resources for which to acquire the access token; only for internal Microsoft usage\n */\n resources?: string[];\n\n /**\n * An optional list of claims which to pass to Microsoft Entra when requesting the access token.\n */\n claims?: string[];\n\n /**\n * An optional flag indicating whether to attempt the token acquisition silently or allow a prompt to be shown.\n */\n silent?: boolean;\n\n /**\n * An optional identifier of the home tenant for which to acquire the access token for (used in cross-tenant shared channels).\n */\n tenantId?: string;\n};\n\nexport class AuthenticationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async getToken(params?: AuthTokenRequestParams) {\n const [ok, res] = await this.window.send<[boolean, string]>(\n 'authentication.getAuthToken',\n params?.resources,\n params?.claims,\n params?.silent,\n params?.tenantId\n );\n\n if (!ok) {\n throw { errorCode: 500, message: res };\n }\n\n return res;\n }\n\n async getUser() {\n const [ok, res] =\n await this.window.send<[boolean, UserProfile | ClientError]>('authentication.getUser');\n\n if (!ok) {\n throw res;\n }\n\n return res as UserProfile;\n }\n\n async authenticate(params: AuthPopUpParams) {\n await this.window.send(\n 'authentication.authenticate',\n params.url,\n params.width,\n params.height,\n params.isExternal\n );\n }\n\n async success(result?: string) {\n await this.window.send('authentication.authenticate.success', result);\n }\n\n async failure(reason?: string) {\n await this.window.send('authentication.authenticate.success', reason);\n }\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { BarCodeConfig } from '../types/bar-code-config.mjs';
2
+ import { WindowClient } from '../window-client.mjs';
3
+ import '@microsoft/teams.common';
4
+ import '../message.mjs';
5
+ import '../client-error.mjs';
6
+
7
+ declare class BarCodeClient {
8
+ readonly window: WindowClient;
9
+ constructor(client: WindowClient);
10
+ scan(config: BarCodeConfig): Promise<string>;
11
+ }
12
+
13
+ export { BarCodeClient };
@@ -0,0 +1,13 @@
1
+ import { BarCodeConfig } from '../types/bar-code-config.js';
2
+ import { WindowClient } from '../window-client.js';
3
+ import '@microsoft/teams.common';
4
+ import '../message.js';
5
+ import '../client-error.js';
6
+
7
+ declare class BarCodeClient {
8
+ readonly window: WindowClient;
9
+ constructor(client: WindowClient);
10
+ scan(config: BarCodeConfig): Promise<string>;
11
+ }
12
+
13
+ export { BarCodeClient };
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ class BarCodeClient {
4
+ window;
5
+ constructor(client) {
6
+ this.window = client;
7
+ }
8
+ async scan(config) {
9
+ const [err, res] = await this.window.send(
10
+ "media.scanBarCode",
11
+ config
12
+ );
13
+ if (err) throw err;
14
+ return res;
15
+ }
16
+ }
17
+
18
+ exports.BarCodeClient = BarCodeClient;
19
+ //# sourceMappingURL=bar-code.js.map
20
+ //# sourceMappingURL=bar-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/window/clients/bar-code.ts"],"names":[],"mappings":";;AAIO,MAAM,aAAc,CAAA;AAAA,EAChB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,KAAK,MAAuB,EAAA;AAChC,IAAA,MAAM,CAAC,GAAK,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MACnC,mBAAA;AAAA,MACA;AAAA,KACF;AAEA,IAAA,IAAI,KAAW,MAAA,GAAA;AACf,IAAO,OAAA,GAAA;AAAA;AAEX","file":"bar-code.js","sourcesContent":["import { ClientError } from '../client-error';\nimport { BarCodeConfig } from '../types';\nimport { WindowClient } from '../window-client';\n\nexport class BarCodeClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async scan(config: BarCodeConfig) {\n const [err, res] = await this.window.send<[ClientError | undefined, string]>(\n 'media.scanBarCode',\n config\n );\n\n if (err) throw err;\n return res;\n }\n}\n"]}
@@ -0,0 +1,18 @@
1
+ class BarCodeClient {
2
+ window;
3
+ constructor(client) {
4
+ this.window = client;
5
+ }
6
+ async scan(config) {
7
+ const [err, res] = await this.window.send(
8
+ "media.scanBarCode",
9
+ config
10
+ );
11
+ if (err) throw err;
12
+ return res;
13
+ }
14
+ }
15
+
16
+ export { BarCodeClient };
17
+ //# sourceMappingURL=bar-code.mjs.map
18
+ //# sourceMappingURL=bar-code.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/window/clients/bar-code.ts"],"names":[],"mappings":"AAIO,MAAM,aAAc,CAAA;AAAA,EAChB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,KAAK,MAAuB,EAAA;AAChC,IAAA,MAAM,CAAC,GAAK,EAAA,GAAG,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MACnC,mBAAA;AAAA,MACA;AAAA,KACF;AAEA,IAAA,IAAI,KAAW,MAAA,GAAA;AACf,IAAO,OAAA,GAAA;AAAA;AAEX","file":"bar-code.mjs","sourcesContent":["import { ClientError } from '../client-error';\nimport { BarCodeConfig } from '../types';\nimport { WindowClient } from '../window-client';\n\nexport class BarCodeClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async scan(config: BarCodeConfig) {\n const [err, res] = await this.window.send<[ClientError | undefined, string]>(\n 'media.scanBarCode',\n config\n );\n\n if (err) throw err;\n return res;\n }\n}\n"]}