@azure/communication-chat 1.6.0-beta.3 → 1.6.0-beta.5

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 +134 -45
  2. package/dist/browser/chatClient.d.ts +225 -0
  3. package/dist/browser/chatClient.d.ts.map +1 -0
  4. package/{dist-esm/src → dist/browser}/chatClient.js +15 -10
  5. package/dist/browser/chatClient.js.map +1 -0
  6. package/dist/browser/chatThreadClient.d.ts +142 -0
  7. package/dist/browser/chatThreadClient.d.ts.map +1 -0
  8. package/{dist-esm/src → dist/browser}/chatThreadClient.js +12 -9
  9. package/dist/browser/chatThreadClient.js.map +1 -0
  10. package/dist/browser/credential/communicationTokenCredentialPolicy.d.ts +9 -0
  11. package/dist/browser/credential/communicationTokenCredentialPolicy.d.ts.map +1 -0
  12. package/{dist-esm/src → dist/browser}/credential/communicationTokenCredentialPolicy.js +2 -2
  13. package/dist/browser/credential/communicationTokenCredentialPolicy.js.map +1 -0
  14. package/dist/browser/generated/src/chatApiClient.d.ts +18 -0
  15. package/dist/browser/generated/src/chatApiClient.d.ts.map +1 -0
  16. package/{dist-esm/src → dist/browser}/generated/src/chatApiClient.js +2 -2
  17. package/dist/browser/generated/src/chatApiClient.js.map +1 -0
  18. package/dist/browser/generated/src/index.d.ts +4 -0
  19. package/dist/browser/generated/src/index.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/generated/src/index.js +3 -3
  21. package/dist/browser/generated/src/index.js.map +1 -0
  22. package/dist/browser/generated/src/models/index.d.ts +579 -0
  23. package/dist/browser/generated/src/models/index.d.ts.map +1 -0
  24. package/dist/browser/generated/src/models/mappers.d.ts +44 -0
  25. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
  26. package/dist/browser/generated/src/models/parameters.d.ts +29 -0
  27. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
  28. package/{dist-esm/src → dist/browser}/generated/src/models/parameters.js +1 -1
  29. package/dist/browser/generated/src/models/parameters.js.map +1 -0
  30. package/dist/browser/generated/src/operations/chat.d.ts +36 -0
  31. package/dist/browser/generated/src/operations/chat.d.ts.map +1 -0
  32. package/{dist-esm/src → dist/browser}/generated/src/operations/chat.js +3 -3
  33. package/dist/browser/generated/src/operations/chat.js.map +1 -0
  34. package/dist/browser/generated/src/operations/chatThread.d.ts +144 -0
  35. package/dist/browser/generated/src/operations/chatThread.d.ts.map +1 -0
  36. package/{dist-esm/src → dist/browser}/generated/src/operations/chatThread.js +3 -3
  37. package/dist/browser/generated/src/operations/chatThread.js.map +1 -0
  38. package/dist/browser/generated/src/operations/index.d.ts +3 -0
  39. package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
  40. package/dist/browser/generated/src/operations/index.js +10 -0
  41. package/dist/browser/generated/src/operations/index.js.map +1 -0
  42. package/dist/browser/generated/src/operationsInterfaces/chat.d.ts +28 -0
  43. package/dist/browser/generated/src/operationsInterfaces/chat.d.ts.map +1 -0
  44. package/dist/browser/generated/src/operationsInterfaces/chat.js.map +1 -0
  45. package/dist/browser/generated/src/operationsInterfaces/chatThread.d.ts +136 -0
  46. package/dist/browser/generated/src/operationsInterfaces/chatThread.d.ts.map +1 -0
  47. package/dist/browser/generated/src/operationsInterfaces/chatThread.js.map +1 -0
  48. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +3 -0
  49. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist/browser/generated/src/operationsInterfaces/index.js +10 -0
  51. package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist/browser/generated/src/tracing.d.ts +2 -0
  53. package/dist/browser/generated/src/tracing.d.ts.map +1 -0
  54. package/{dist-esm/src → dist/browser}/generated/src/tracing.js +1 -1
  55. package/{dist-esm/src → dist/browser}/generated/src/tracing.js.map +1 -1
  56. package/dist/browser/index.d.ts +7 -0
  57. package/dist/browser/index.d.ts.map +1 -0
  58. package/dist/browser/index.js +9 -0
  59. package/dist/browser/index.js.map +1 -0
  60. package/dist/browser/models/events.d.ts +4 -0
  61. package/dist/browser/models/events.d.ts.map +1 -0
  62. package/dist/browser/models/events.js +4 -0
  63. package/dist/browser/models/events.js.map +1 -0
  64. package/dist/browser/models/logger.d.ts +2 -0
  65. package/dist/browser/models/logger.d.ts.map +1 -0
  66. package/{dist-esm/src → dist/browser}/models/logger.js +1 -1
  67. package/{dist-esm/src → dist/browser}/models/logger.js.map +1 -1
  68. package/dist/browser/models/mappers.d.ts +79 -0
  69. package/dist/browser/models/mappers.d.ts.map +1 -0
  70. package/{dist-esm/src → dist/browser}/models/mappers.js +1 -1
  71. package/dist/browser/models/mappers.js.map +1 -0
  72. package/dist/browser/models/models.d.ts +153 -0
  73. package/dist/browser/models/models.d.ts.map +1 -0
  74. package/dist/browser/models/models.js +4 -0
  75. package/dist/browser/models/models.js.map +1 -0
  76. package/dist/browser/models/options.d.ts +135 -0
  77. package/dist/browser/models/options.d.ts.map +1 -0
  78. package/dist/browser/models/options.js.map +1 -0
  79. package/dist/browser/models/requests.d.ts +18 -0
  80. package/dist/browser/models/requests.d.ts.map +1 -0
  81. package/dist/browser/models/requests.js +4 -0
  82. package/dist/browser/models/requests.js.map +1 -0
  83. package/dist/browser/models/uuid.d.ts +8 -0
  84. package/dist/browser/models/uuid.d.ts.map +1 -0
  85. package/{dist-esm/src → dist/browser}/models/uuid.js +3 -3
  86. package/dist/browser/models/uuid.js.map +1 -0
  87. package/dist/browser/package.json +3 -0
  88. package/dist/browser/signaling/signalingClient-browser.d.mts.map +1 -0
  89. package/dist/browser/signaling/signalingClient-browser.mjs.map +1 -0
  90. package/dist/browser/signaling/signalingClient.d.ts +6 -0
  91. package/dist/browser/signaling/signalingClient.js +13 -0
  92. package/dist/browser/signaling/signalingClientOptions.d.ts +6 -0
  93. package/dist/browser/signaling/signalingClientOptions.d.ts.map +1 -0
  94. package/dist/browser/signaling/signalingClientOptions.js +4 -0
  95. package/dist/browser/signaling/signalingClientOptions.js.map +1 -0
  96. package/dist/browser/xhrHttpClient.d.ts +17 -0
  97. package/dist/browser/xhrHttpClient.d.ts.map +1 -0
  98. package/{dist-esm/src → dist/browser}/xhrHttpClient.js +2 -2
  99. package/dist/browser/xhrHttpClient.js.map +1 -0
  100. package/dist/commonjs/chatClient.d.ts +225 -0
  101. package/dist/commonjs/chatClient.d.ts.map +1 -0
  102. package/dist/commonjs/chatClient.js +250 -0
  103. package/dist/commonjs/chatClient.js.map +1 -0
  104. package/dist/commonjs/chatThreadClient.d.ts +142 -0
  105. package/dist/commonjs/chatThreadClient.d.ts.map +1 -0
  106. package/dist/commonjs/chatThreadClient.js +463 -0
  107. package/dist/commonjs/chatThreadClient.js.map +1 -0
  108. package/dist/commonjs/credential/communicationTokenCredentialPolicy.d.ts +9 -0
  109. package/dist/commonjs/credential/communicationTokenCredentialPolicy.d.ts.map +1 -0
  110. package/dist/commonjs/credential/communicationTokenCredentialPolicy.js +22 -0
  111. package/dist/commonjs/credential/communicationTokenCredentialPolicy.js.map +1 -0
  112. package/dist/commonjs/generated/src/chatApiClient.d.ts +18 -0
  113. package/dist/commonjs/generated/src/chatApiClient.d.ts.map +1 -0
  114. package/dist/commonjs/generated/src/chatApiClient.js +75 -0
  115. package/dist/commonjs/generated/src/chatApiClient.js.map +1 -0
  116. package/dist/commonjs/generated/src/index.d.ts +4 -0
  117. package/dist/commonjs/generated/src/index.d.ts.map +1 -0
  118. package/dist/commonjs/generated/src/index.js +16 -0
  119. package/dist/commonjs/generated/src/index.js.map +1 -0
  120. package/dist/commonjs/generated/src/models/index.d.ts +579 -0
  121. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
  122. package/dist/commonjs/generated/src/models/index.js +43 -0
  123. package/dist/commonjs/generated/src/models/index.js.map +1 -0
  124. package/dist/commonjs/generated/src/models/mappers.d.ts +44 -0
  125. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
  126. package/dist/commonjs/generated/src/models/mappers.js +1112 -0
  127. package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
  128. package/dist/commonjs/generated/src/models/parameters.d.ts +29 -0
  129. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
  130. package/dist/commonjs/generated/src/models/parameters.js +238 -0
  131. package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
  132. package/dist/commonjs/generated/src/operations/chat.d.ts +36 -0
  133. package/dist/commonjs/generated/src/operations/chat.d.ts.map +1 -0
  134. package/dist/commonjs/generated/src/operations/chat.js +191 -0
  135. package/dist/commonjs/generated/src/operations/chat.js.map +1 -0
  136. package/dist/commonjs/generated/src/operations/chatThread.d.ts +144 -0
  137. package/dist/commonjs/generated/src/operations/chatThread.d.ts.map +1 -0
  138. package/dist/commonjs/generated/src/operations/chatThread.js +798 -0
  139. package/dist/commonjs/generated/src/operations/chatThread.js.map +1 -0
  140. package/dist/commonjs/generated/src/operations/index.d.ts +3 -0
  141. package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
  142. package/dist/commonjs/generated/src/operations/index.js +13 -0
  143. package/dist/commonjs/generated/src/operations/index.js.map +1 -0
  144. package/dist/commonjs/generated/src/operationsInterfaces/chat.d.ts +28 -0
  145. package/dist/commonjs/generated/src/operationsInterfaces/chat.d.ts.map +1 -0
  146. package/dist/commonjs/generated/src/operationsInterfaces/chat.js +10 -0
  147. package/dist/commonjs/generated/src/operationsInterfaces/chat.js.map +1 -0
  148. package/dist/commonjs/generated/src/operationsInterfaces/chatThread.d.ts +136 -0
  149. package/dist/commonjs/generated/src/operationsInterfaces/chatThread.d.ts.map +1 -0
  150. package/dist/commonjs/generated/src/operationsInterfaces/chatThread.js +10 -0
  151. package/dist/commonjs/generated/src/operationsInterfaces/chatThread.js.map +1 -0
  152. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +3 -0
  153. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  154. package/dist/commonjs/generated/src/operationsInterfaces/index.js +13 -0
  155. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
  156. package/dist/commonjs/generated/src/tracing.d.ts +2 -0
  157. package/dist/commonjs/generated/src/tracing.d.ts.map +1 -0
  158. package/dist/commonjs/generated/src/tracing.js +17 -0
  159. package/dist/commonjs/generated/src/tracing.js.map +1 -0
  160. package/dist/commonjs/index.d.ts +7 -0
  161. package/dist/commonjs/index.d.ts.map +1 -0
  162. package/dist/commonjs/index.js +12 -0
  163. package/dist/commonjs/index.js.map +1 -0
  164. package/dist/commonjs/models/events.d.ts +4 -0
  165. package/dist/commonjs/models/events.d.ts.map +1 -0
  166. package/dist/commonjs/models/events.js +5 -0
  167. package/dist/commonjs/models/events.js.map +1 -0
  168. package/dist/commonjs/models/logger.d.ts +2 -0
  169. package/dist/commonjs/models/logger.d.ts.map +1 -0
  170. package/dist/commonjs/models/logger.js +8 -0
  171. package/dist/commonjs/models/logger.js.map +1 -0
  172. package/dist/commonjs/models/mappers.d.ts +79 -0
  173. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  174. package/dist/commonjs/models/mappers.js +203 -0
  175. package/dist/commonjs/models/mappers.js.map +1 -0
  176. package/dist/commonjs/models/models.d.ts +153 -0
  177. package/dist/commonjs/models/models.d.ts.map +1 -0
  178. package/dist/commonjs/models/models.js +5 -0
  179. package/dist/commonjs/models/models.js.map +1 -0
  180. package/dist/commonjs/models/options.d.ts +135 -0
  181. package/dist/commonjs/models/options.d.ts.map +1 -0
  182. package/dist/commonjs/models/options.js +3 -0
  183. package/dist/commonjs/models/options.js.map +1 -0
  184. package/dist/commonjs/models/requests.d.ts +18 -0
  185. package/dist/commonjs/models/requests.d.ts.map +1 -0
  186. package/dist/commonjs/models/requests.js +5 -0
  187. package/dist/commonjs/models/requests.js.map +1 -0
  188. package/dist/commonjs/models/uuid.d.ts +8 -0
  189. package/dist/commonjs/models/uuid.d.ts.map +1 -0
  190. package/dist/commonjs/models/uuid.js +16 -0
  191. package/dist/commonjs/models/uuid.js.map +1 -0
  192. package/dist/commonjs/package.json +3 -0
  193. package/dist/commonjs/signaling/signalingClient.d.ts +6 -0
  194. package/dist/commonjs/signaling/signalingClient.d.ts.map +1 -0
  195. package/dist/commonjs/signaling/signalingClient.js +11 -0
  196. package/dist/commonjs/signaling/signalingClient.js.map +1 -0
  197. package/dist/commonjs/signaling/signalingClientOptions.d.ts +6 -0
  198. package/dist/commonjs/signaling/signalingClientOptions.d.ts.map +1 -0
  199. package/dist/commonjs/signaling/signalingClientOptions.js +5 -0
  200. package/dist/commonjs/signaling/signalingClientOptions.js.map +1 -0
  201. package/dist/commonjs/tsdoc-metadata.json +11 -0
  202. package/dist/commonjs/xhrHttpClient.d.ts +17 -0
  203. package/dist/commonjs/xhrHttpClient.d.ts.map +1 -0
  204. package/dist/commonjs/xhrHttpClient.js +191 -0
  205. package/dist/commonjs/xhrHttpClient.js.map +1 -0
  206. package/dist/esm/chatClient.d.ts +225 -0
  207. package/dist/esm/chatClient.d.ts.map +1 -0
  208. package/dist/esm/chatClient.js +246 -0
  209. package/dist/esm/chatClient.js.map +1 -0
  210. package/dist/esm/chatThreadClient.d.ts +142 -0
  211. package/dist/esm/chatThreadClient.d.ts.map +1 -0
  212. package/dist/esm/chatThreadClient.js +459 -0
  213. package/dist/esm/chatThreadClient.js.map +1 -0
  214. package/dist/esm/credential/communicationTokenCredentialPolicy.d.ts +9 -0
  215. package/dist/esm/credential/communicationTokenCredentialPolicy.d.ts.map +1 -0
  216. package/dist/esm/credential/communicationTokenCredentialPolicy.js +18 -0
  217. package/dist/esm/credential/communicationTokenCredentialPolicy.js.map +1 -0
  218. package/dist/esm/generated/src/chatApiClient.d.ts +18 -0
  219. package/dist/esm/generated/src/chatApiClient.d.ts.map +1 -0
  220. package/dist/esm/generated/src/chatApiClient.js +70 -0
  221. package/dist/esm/generated/src/chatApiClient.js.map +1 -0
  222. package/dist/esm/generated/src/index.d.ts +4 -0
  223. package/dist/esm/generated/src/index.d.ts.map +1 -0
  224. package/dist/esm/generated/src/index.js +11 -0
  225. package/dist/esm/generated/src/index.js.map +1 -0
  226. package/dist/esm/generated/src/models/index.d.ts +579 -0
  227. package/dist/esm/generated/src/models/index.d.ts.map +1 -0
  228. package/dist/esm/generated/src/models/index.js +40 -0
  229. package/dist/esm/generated/src/models/index.js.map +1 -0
  230. package/dist/esm/generated/src/models/mappers.d.ts +44 -0
  231. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
  232. package/dist/esm/generated/src/models/mappers.js +1109 -0
  233. package/dist/esm/generated/src/models/mappers.js.map +1 -0
  234. package/dist/esm/generated/src/models/parameters.d.ts +29 -0
  235. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
  236. package/dist/esm/generated/src/models/parameters.js +235 -0
  237. package/dist/esm/generated/src/models/parameters.js.map +1 -0
  238. package/dist/esm/generated/src/operations/chat.d.ts +36 -0
  239. package/dist/esm/generated/src/operations/chat.d.ts.map +1 -0
  240. package/dist/esm/generated/src/operations/chat.js +186 -0
  241. package/dist/esm/generated/src/operations/chat.js.map +1 -0
  242. package/dist/esm/generated/src/operations/chatThread.d.ts +144 -0
  243. package/dist/esm/generated/src/operations/chatThread.d.ts.map +1 -0
  244. package/dist/esm/generated/src/operations/chatThread.js +793 -0
  245. package/dist/esm/generated/src/operations/chatThread.js.map +1 -0
  246. package/dist/esm/generated/src/operations/index.d.ts +3 -0
  247. package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
  248. package/dist/esm/generated/src/operations/index.js +10 -0
  249. package/dist/esm/generated/src/operations/index.js.map +1 -0
  250. package/dist/esm/generated/src/operationsInterfaces/chat.d.ts +28 -0
  251. package/dist/esm/generated/src/operationsInterfaces/chat.d.ts.map +1 -0
  252. package/{dist-esm/src/generated/src/operationsInterfaces/index.js → dist/esm/generated/src/operationsInterfaces/chat.js} +2 -3
  253. package/dist/esm/generated/src/operationsInterfaces/chat.js.map +1 -0
  254. package/dist/esm/generated/src/operationsInterfaces/chatThread.d.ts +136 -0
  255. package/dist/esm/generated/src/operationsInterfaces/chatThread.d.ts.map +1 -0
  256. package/{dist-esm/src/generated/src/operations/index.js → dist/esm/generated/src/operationsInterfaces/chatThread.js} +2 -3
  257. package/dist/esm/generated/src/operationsInterfaces/chatThread.js.map +1 -0
  258. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +3 -0
  259. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  260. package/dist/esm/generated/src/operationsInterfaces/index.js +10 -0
  261. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
  262. package/dist/esm/generated/src/tracing.d.ts +2 -0
  263. package/dist/esm/generated/src/tracing.d.ts.map +1 -0
  264. package/dist/esm/generated/src/tracing.js +14 -0
  265. package/dist/esm/generated/src/tracing.js.map +1 -0
  266. package/dist/esm/index.d.ts +7 -0
  267. package/dist/esm/index.d.ts.map +1 -0
  268. package/dist/esm/index.js +9 -0
  269. package/dist/esm/index.js.map +1 -0
  270. package/dist/esm/models/events.d.ts +4 -0
  271. package/dist/esm/models/events.d.ts.map +1 -0
  272. package/dist/esm/models/events.js +4 -0
  273. package/dist/esm/models/events.js.map +1 -0
  274. package/dist/esm/models/logger.d.ts +2 -0
  275. package/dist/esm/models/logger.d.ts.map +1 -0
  276. package/dist/esm/models/logger.js +5 -0
  277. package/dist/esm/models/logger.js.map +1 -0
  278. package/dist/esm/models/mappers.d.ts +79 -0
  279. package/dist/esm/models/mappers.d.ts.map +1 -0
  280. package/dist/esm/models/mappers.js +184 -0
  281. package/dist/esm/models/mappers.js.map +1 -0
  282. package/dist/esm/models/models.d.ts +153 -0
  283. package/dist/esm/models/models.d.ts.map +1 -0
  284. package/dist/esm/models/models.js +4 -0
  285. package/dist/esm/models/models.js.map +1 -0
  286. package/dist/esm/models/options.d.ts +135 -0
  287. package/dist/esm/models/options.d.ts.map +1 -0
  288. package/dist/esm/models/options.js +2 -0
  289. package/dist/esm/models/options.js.map +1 -0
  290. package/dist/esm/models/requests.d.ts +18 -0
  291. package/dist/esm/models/requests.d.ts.map +1 -0
  292. package/dist/esm/models/requests.js +4 -0
  293. package/dist/esm/models/requests.js.map +1 -0
  294. package/dist/esm/models/uuid.d.ts +8 -0
  295. package/dist/esm/models/uuid.d.ts.map +1 -0
  296. package/dist/esm/models/uuid.js +13 -0
  297. package/dist/esm/models/uuid.js.map +1 -0
  298. package/dist/esm/package.json +3 -0
  299. package/dist/esm/signaling/signalingClient.d.ts +6 -0
  300. package/dist/esm/signaling/signalingClient.d.ts.map +1 -0
  301. package/dist/esm/signaling/signalingClient.js +7 -0
  302. package/dist/esm/signaling/signalingClient.js.map +1 -0
  303. package/dist/esm/signaling/signalingClientOptions.d.ts +6 -0
  304. package/dist/esm/signaling/signalingClientOptions.d.ts.map +1 -0
  305. package/dist/esm/signaling/signalingClientOptions.js +4 -0
  306. package/dist/esm/signaling/signalingClientOptions.js.map +1 -0
  307. package/dist/esm/xhrHttpClient.d.ts +17 -0
  308. package/dist/esm/xhrHttpClient.d.ts.map +1 -0
  309. package/dist/esm/xhrHttpClient.js +186 -0
  310. package/dist/esm/xhrHttpClient.js.map +1 -0
  311. package/dist/react-native/chatClient.d.ts +225 -0
  312. package/dist/react-native/chatClient.d.ts.map +1 -0
  313. package/dist/react-native/chatClient.js +246 -0
  314. package/dist/react-native/chatClient.js.map +1 -0
  315. package/dist/react-native/chatThreadClient.d.ts +142 -0
  316. package/dist/react-native/chatThreadClient.d.ts.map +1 -0
  317. package/dist/react-native/chatThreadClient.js +459 -0
  318. package/dist/react-native/chatThreadClient.js.map +1 -0
  319. package/dist/react-native/credential/communicationTokenCredentialPolicy.d.ts +9 -0
  320. package/dist/react-native/credential/communicationTokenCredentialPolicy.d.ts.map +1 -0
  321. package/dist/react-native/credential/communicationTokenCredentialPolicy.js +18 -0
  322. package/dist/react-native/credential/communicationTokenCredentialPolicy.js.map +1 -0
  323. package/dist/react-native/generated/src/chatApiClient.d.ts +18 -0
  324. package/dist/react-native/generated/src/chatApiClient.d.ts.map +1 -0
  325. package/dist/react-native/generated/src/chatApiClient.js +70 -0
  326. package/dist/react-native/generated/src/chatApiClient.js.map +1 -0
  327. package/dist/react-native/generated/src/index.d.ts +4 -0
  328. package/dist/react-native/generated/src/index.d.ts.map +1 -0
  329. package/dist/react-native/generated/src/index.js +11 -0
  330. package/dist/react-native/generated/src/index.js.map +1 -0
  331. package/dist/react-native/generated/src/models/index.d.ts +579 -0
  332. package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
  333. package/dist/react-native/generated/src/models/index.js +40 -0
  334. package/dist/react-native/generated/src/models/index.js.map +1 -0
  335. package/dist/react-native/generated/src/models/mappers.d.ts +44 -0
  336. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
  337. package/dist/react-native/generated/src/models/mappers.js +1109 -0
  338. package/dist/react-native/generated/src/models/mappers.js.map +1 -0
  339. package/dist/react-native/generated/src/models/parameters.d.ts +29 -0
  340. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
  341. package/dist/react-native/generated/src/models/parameters.js +235 -0
  342. package/dist/react-native/generated/src/models/parameters.js.map +1 -0
  343. package/dist/react-native/generated/src/operations/chat.d.ts +36 -0
  344. package/dist/react-native/generated/src/operations/chat.d.ts.map +1 -0
  345. package/dist/react-native/generated/src/operations/chat.js +186 -0
  346. package/dist/react-native/generated/src/operations/chat.js.map +1 -0
  347. package/dist/react-native/generated/src/operations/chatThread.d.ts +144 -0
  348. package/dist/react-native/generated/src/operations/chatThread.d.ts.map +1 -0
  349. package/dist/react-native/generated/src/operations/chatThread.js +793 -0
  350. package/dist/react-native/generated/src/operations/chatThread.js.map +1 -0
  351. package/dist/react-native/generated/src/operations/index.d.ts +3 -0
  352. package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
  353. package/dist/react-native/generated/src/operations/index.js +10 -0
  354. package/dist/react-native/generated/src/operations/index.js.map +1 -0
  355. package/dist/react-native/generated/src/operationsInterfaces/chat.d.ts +28 -0
  356. package/dist/react-native/generated/src/operationsInterfaces/chat.d.ts.map +1 -0
  357. package/dist/react-native/generated/src/operationsInterfaces/chat.js +9 -0
  358. package/dist/react-native/generated/src/operationsInterfaces/chat.js.map +1 -0
  359. package/dist/react-native/generated/src/operationsInterfaces/chatThread.d.ts +136 -0
  360. package/dist/react-native/generated/src/operationsInterfaces/chatThread.d.ts.map +1 -0
  361. package/dist/react-native/generated/src/operationsInterfaces/chatThread.js +9 -0
  362. package/dist/react-native/generated/src/operationsInterfaces/chatThread.js.map +1 -0
  363. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +3 -0
  364. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
  365. package/dist/react-native/generated/src/operationsInterfaces/index.js +10 -0
  366. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
  367. package/dist/react-native/generated/src/tracing.d.ts +2 -0
  368. package/dist/react-native/generated/src/tracing.d.ts.map +1 -0
  369. package/dist/react-native/generated/src/tracing.js +14 -0
  370. package/dist/react-native/generated/src/tracing.js.map +1 -0
  371. package/dist/react-native/index.d.ts +7 -0
  372. package/dist/react-native/index.d.ts.map +1 -0
  373. package/dist/react-native/index.js +9 -0
  374. package/dist/react-native/index.js.map +1 -0
  375. package/dist/react-native/models/events.d.ts +4 -0
  376. package/dist/react-native/models/events.d.ts.map +1 -0
  377. package/dist/react-native/models/events.js +4 -0
  378. package/dist/react-native/models/events.js.map +1 -0
  379. package/dist/react-native/models/logger.d.ts +2 -0
  380. package/dist/react-native/models/logger.d.ts.map +1 -0
  381. package/dist/react-native/models/logger.js +5 -0
  382. package/dist/react-native/models/logger.js.map +1 -0
  383. package/dist/react-native/models/mappers.d.ts +79 -0
  384. package/dist/react-native/models/mappers.d.ts.map +1 -0
  385. package/dist/react-native/models/mappers.js +184 -0
  386. package/dist/react-native/models/mappers.js.map +1 -0
  387. package/dist/react-native/models/models.d.ts +153 -0
  388. package/dist/react-native/models/models.d.ts.map +1 -0
  389. package/dist/react-native/models/models.js +4 -0
  390. package/dist/react-native/models/models.js.map +1 -0
  391. package/dist/react-native/models/options.d.ts +135 -0
  392. package/dist/react-native/models/options.d.ts.map +1 -0
  393. package/dist/react-native/models/options.js +2 -0
  394. package/dist/react-native/models/options.js.map +1 -0
  395. package/dist/react-native/models/requests.d.ts +18 -0
  396. package/dist/react-native/models/requests.d.ts.map +1 -0
  397. package/dist/react-native/models/requests.js +4 -0
  398. package/dist/react-native/models/requests.js.map +1 -0
  399. package/dist/react-native/models/uuid.d.ts +8 -0
  400. package/dist/react-native/models/uuid.d.ts.map +1 -0
  401. package/dist/react-native/models/uuid.js +13 -0
  402. package/dist/react-native/models/uuid.js.map +1 -0
  403. package/dist/react-native/package.json +3 -0
  404. package/dist/react-native/signaling/signalingClient-react-native.d.mts.map +1 -0
  405. package/dist/react-native/signaling/signalingClient-react-native.mjs.map +1 -0
  406. package/dist/react-native/signaling/signalingClient.d.ts +6 -0
  407. package/dist/react-native/signaling/signalingClient.js +13 -0
  408. package/dist/react-native/signaling/signalingClientOptions.d.ts +6 -0
  409. package/dist/react-native/signaling/signalingClientOptions.d.ts.map +1 -0
  410. package/dist/react-native/signaling/signalingClientOptions.js +4 -0
  411. package/dist/react-native/signaling/signalingClientOptions.js.map +1 -0
  412. package/dist/react-native/xhrHttpClient.d.ts +17 -0
  413. package/dist/react-native/xhrHttpClient.d.ts.map +1 -0
  414. package/dist/react-native/xhrHttpClient.js +186 -0
  415. package/dist/react-native/xhrHttpClient.js.map +1 -0
  416. package/package.json +77 -64
  417. package/dist/index.js +0 -3560
  418. package/dist/index.js.map +0 -1
  419. package/dist-esm/src/chatClient.js.map +0 -1
  420. package/dist-esm/src/chatThreadClient.js.map +0 -1
  421. package/dist-esm/src/credential/communicationTokenCredentialPolicy.js.map +0 -1
  422. package/dist-esm/src/generated/src/chatApiClient.js.map +0 -1
  423. package/dist-esm/src/generated/src/index.js.map +0 -1
  424. package/dist-esm/src/generated/src/models/parameters.js.map +0 -1
  425. package/dist-esm/src/generated/src/operations/chat.js.map +0 -1
  426. package/dist-esm/src/generated/src/operations/chatThread.js.map +0 -1
  427. package/dist-esm/src/generated/src/operations/index.js.map +0 -1
  428. package/dist-esm/src/generated/src/operationsInterfaces/chat.js.map +0 -1
  429. package/dist-esm/src/generated/src/operationsInterfaces/chatThread.js.map +0 -1
  430. package/dist-esm/src/generated/src/operationsInterfaces/index.js.map +0 -1
  431. package/dist-esm/src/index.js +0 -9
  432. package/dist-esm/src/index.js.map +0 -1
  433. package/dist-esm/src/models/events.js +0 -4
  434. package/dist-esm/src/models/events.js.map +0 -1
  435. package/dist-esm/src/models/mappers.js.map +0 -1
  436. package/dist-esm/src/models/models.js +0 -4
  437. package/dist-esm/src/models/models.js.map +0 -1
  438. package/dist-esm/src/models/options.js.map +0 -1
  439. package/dist-esm/src/models/requests.js +0 -4
  440. package/dist-esm/src/models/requests.js.map +0 -1
  441. package/dist-esm/src/models/uuid.js.map +0 -1
  442. package/dist-esm/src/signaling/signalingClient.browser.js +0 -12
  443. package/dist-esm/src/signaling/signalingClient.browser.js.map +0 -1
  444. package/dist-esm/src/signaling/signalingClient.js +0 -17
  445. package/dist-esm/src/signaling/signalingClient.js.map +0 -1
  446. package/dist-esm/src/xhrHttpClient.js.map +0 -1
  447. package/types/communication-chat.d.ts +0 -803
  448. /package/{dist-esm/src → dist/browser}/generated/src/models/index.js +0 -0
  449. /package/{dist-esm/src → dist/browser}/generated/src/models/index.js.map +0 -0
  450. /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js +0 -0
  451. /package/{dist-esm/src → dist/browser}/generated/src/models/mappers.js.map +0 -0
  452. /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/chat.js +0 -0
  453. /package/{dist-esm/src → dist/browser}/generated/src/operationsInterfaces/chatThread.js +0 -0
  454. /package/{dist-esm/src → dist/browser}/models/options.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"chatClient.js","sourceRoot":"","sources":["../../src/chatClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAA4C;;AA2B5C,OAAO,EACL,6BA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AAC,mBAAmB,EAAE,CAAC,OAAO,EAAE,EAAE;YACvD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,OAAO,EAAE,EAAE;YACvD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,6BAA6B,EAAE,CAAC,OAAO,EAAE,EAAE;YACjE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,OAAO,EAAE,EAAE;YACvD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,qBAAqB,EAAE,CAAC,OAAO,EAAE,EAAE;YACzD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport {\n ChatClientOptions,\n CreateChatThreadOptions,\n DeleteChatThreadOptions,\n ListChatThreadsOptions,\n} from \"./models/options\";\nimport {\n ChatEventId,\n ChatMessageDeletedEvent,\n ChatMessageEditedEvent,\n ChatMessageReceivedEvent,\n ChatThreadCreatedEvent,\n ChatThreadDeletedEvent,\n ChatThreadPropertiesUpdatedEvent,\n ParticipantsAddedEvent,\n ParticipantsRemovedEvent,\n ReadReceiptReceivedEvent,\n TypingIndicatorReceivedEvent,\n} from \"./models/events\";\nimport { ChatThreadItem, CreateChatThreadResult, ListPageSettings } from \"./models/models\";\nimport {\n ConnectionState,\n SignalingClient,\n SignalingClientOptions,\n} from \"@azure/communication-signaling\";\nimport {\n mapToChatParticipantRestModel,\n mapToCreateChatThreadOptionsRestModel,\n mapToCreateChatThreadResultSdkModel,\n} from \"./models/mappers\";\n\nimport { ChatApiClient } from \"./generated/src\";\nimport { ChatThreadClient } from \"./chatThreadClient\";\nimport { CommunicationTokenCredential } from \"@azure/communication-common\";\nimport { CreateChatThreadRequest } from \"./models/requests\";\nimport { EventEmitter } from \"events\";\nimport { InternalPipelineOptions } from \"@azure/core-rest-pipeline\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { createCommunicationTokenCredentialPolicy } from \"./credential/communicationTokenCredentialPolicy\";\nimport { generateUuid } from \"./models/uuid\";\nimport { getSignalingClient } from \"./signaling/signalingClient\";\nimport { logger } from \"./models/logger\";\nimport { tracingClient } from \"./generated/src/tracing\";\n\ndeclare interface InternalChatClientOptions extends ChatClientOptions {\n signalingClientOptions?: SignalingClientOptions;\n}\n\n/**\n * The client to do chat operations\n */\nexport class ChatClient {\n private readonly tokenCredential: CommunicationTokenCredential;\n private readonly clientOptions: InternalChatClientOptions;\n private readonly client: ChatApiClient;\n private readonly signalingClient: SignalingClient | undefined = undefined;\n private readonly emitter = new EventEmitter();\n private isRealtimeNotificationsStarted: boolean = false;\n\n /**\n * Creates an instance of the ChatClient for a given resource and user.\n *\n * @param endpoint - The url of the Communication Services resource.\n * @param credential - The token credential. Use AzureCommunicationTokenCredential from \\@azure/communication-common to create a credential.\n * @param options - Additional client options.\n */\n constructor(\n private readonly endpoint: string,\n credential: CommunicationTokenCredential,\n options: ChatClientOptions = {},\n ) {\n this.tokenCredential = credential;\n\n const internalPipelineOptions: InternalPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new ChatApiClient(this.endpoint, {\n endpoint: this.endpoint,\n ...internalPipelineOptions,\n });\n\n const authPolicy = createCommunicationTokenCredentialPolicy(this.tokenCredential);\n this.client.pipeline.addPolicy(authPolicy);\n\n this.clientOptions = { ...options };\n this.clientOptions.signalingClientOptions = {\n ...this.clientOptions.signalingClientOptions,\n resourceEndpoint: this.endpoint,\n gatewayApiVersion: this.client.apiVersion,\n };\n\n this.signalingClient = getSignalingClient(\n credential,\n logger,\n this.clientOptions.signalingClientOptions,\n );\n }\n\n /**\n * Returns ChatThreadClient with the specific thread id.\n * @param threadId - Thread ID for the ChatThreadClient\n */\n public getChatThreadClient(threadId: string): ChatThreadClient {\n return new ChatThreadClient(this.endpoint, threadId, this.tokenCredential, this.clientOptions);\n }\n\n /**\n * Creates a chat thread.\n * Returns thread client with the id of the created thread.\n * @param request - Request for creating a chat thread.\n * @param options - Operation options.\n */\n public async createChatThread(\n request: CreateChatThreadRequest,\n options: CreateChatThreadOptions = {},\n ): Promise<CreateChatThreadResult> {\n return tracingClient.withSpan(\n \"ChatClient-CreateChatThread\",\n options,\n async (updatedOptions) => {\n // We generate an UUID if the user does not provide an idempotencyToken value\n updatedOptions.idempotencyToken = updatedOptions.idempotencyToken ?? generateUuid();\n const updatedRestModelOptions = mapToCreateChatThreadOptionsRestModel(updatedOptions);\n\n const result = await this.client.chat.createChatThread(\n {\n topic: request.topic,\n participants: options.participants?.map((participant) =>\n mapToChatParticipantRestModel(participant),\n ),\n metadata: options.metadata,\n retentionPolicy: options.retentionPolicy,\n },\n updatedRestModelOptions,\n );\n return mapToCreateChatThreadResultSdkModel(result);\n },\n );\n }\n\n private async *listChatThreadsPage(\n continuationState: ListPageSettings,\n options: ListChatThreadsOptions = {},\n ): AsyncIterableIterator<ChatThreadItem[]> {\n if (!continuationState.continuationToken) {\n const currentSetResponse = await this.client.chat.listChatThreads(options);\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value;\n }\n }\n\n while (continuationState.continuationToken) {\n const currentSetResponse = await this.client.chat.listChatThreadsNext(\n continuationState.continuationToken,\n options,\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value;\n } else {\n break;\n }\n }\n }\n\n private async *listChatThreadsAll(\n options: ListChatThreadsOptions,\n ): AsyncIterableIterator<ChatThreadItem> {\n for await (const page of this.listChatThreadsPage({}, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of chat threads of a user.\n * @param options - List chat threads options.\n */\n public listChatThreads(\n options: ListChatThreadsOptions = {},\n ): PagedAsyncIterableIterator<ChatThreadItem> {\n const { span, updatedOptions } = tracingClient.startSpan(\"ChatClient-ListChatThreads\", options);\n try {\n const iter = this.listChatThreadsAll(updatedOptions);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: ListPageSettings = {}) => {\n return this.listChatThreadsPage(settings, updatedOptions);\n },\n };\n } catch (e: any) {\n span.setStatus({\n error: e,\n status: \"error\",\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes a chat thread.\n * @param threadId - The ID of the thread to delete.\n * @param options - Operation options.\n */\n public async deleteChatThread(\n threadId: string,\n options: DeleteChatThreadOptions = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatClient-DeleteChatThread\",\n options,\n async (updatedOptions) => {\n await this.client.chat.deleteChatThread(threadId, updatedOptions);\n },\n );\n }\n\n /**\n * Start receiving realtime notifications.\n * Call this function before subscribing to any event.\n */\n public async startRealtimeNotifications(): Promise<void> {\n if (this.signalingClient === undefined) {\n throw new Error(\"Realtime notifications are not supported in node js.\");\n }\n\n if (this.isRealtimeNotificationsStarted) {\n return;\n }\n\n this.isRealtimeNotificationsStarted = true;\n await this.signalingClient.start();\n this.subscribeToSignalingEvents();\n }\n\n /**\n * Stop receiving realtime notifications.\n * This function would unsubscribe to all events.\n */\n public async stopRealtimeNotifications(): Promise<void> {\n if (this.signalingClient === undefined) {\n throw new Error(\"Realtime notifications are not supported in node js.\");\n }\n\n this.isRealtimeNotificationsStarted = false;\n await this.signalingClient.stop();\n this.emitter.removeAllListeners();\n }\n\n /**\n * Subscribe function for chatMessageReceived.\n * The initial sender will also receive this event.\n * You need to call startRealtimeNotifications before subscribing to any event.\n * @param event - The ChatMessageReceivedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(event: \"chatMessageReceived\", listener: (e: ChatMessageReceivedEvent) => void): void;\n\n /**\n * Subscribe function for chatMessageEdited.\n * The initial sender will also receive this event.\n * @param event - The ChatMessageEditedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(event: \"chatMessageEdited\", listener: (e: ChatMessageEditedEvent) => void): void;\n\n /**\n * Subscribe function for chatMessageDeleted.\n * The initial sender will also receive this event.\n * @param event - The ChatMessageDeletedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(event: \"chatMessageDeleted\", listener: (e: ChatMessageDeletedEvent) => void): void;\n\n /**\n * Subscribe function for typingIndicatorReceived.\n * The initial sender will also receive this event.\n * @param event - The TypingIndicatorReceivedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(\n event: \"typingIndicatorReceived\",\n listener: (e: TypingIndicatorReceivedEvent) => void,\n ): void;\n\n /**\n * Subscribe function for readReceiptReceived.\n * @param event - The ReadReceiptReceivedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(event: \"readReceiptReceived\", listener: (e: ReadReceiptReceivedEvent) => void): void;\n\n /**\n * Subscribe function for chatThreadCreated.\n * @param event - The ChatThreadCreatedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(event: \"chatThreadCreated\", listener: (e: ChatThreadCreatedEvent) => void): void;\n\n /**\n * Subscribe function for chatThreadDeleted.\n * @param event - The ChatThreadDeletedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(event: \"chatThreadDeleted\", listener: (e: ChatThreadDeletedEvent) => void): void;\n\n /**\n * Subscribe function for chatThreadPropertiesUpdated.\n * @param event - The ChatThreadPropertiesUpdatedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(\n event: \"chatThreadPropertiesUpdated\",\n listener: (e: ChatThreadPropertiesUpdatedEvent) => void,\n ): void;\n\n /**\n * Subscribe function for participantsAdded.\n * @param event - The ParticipantsAddedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(event: \"participantsAdded\", listener: (e: ParticipantsAddedEvent) => void): void;\n\n /**\n * Subscribe function for participantsRemoved.\n * @param event - The ParticipantsRemovedEvent.\n * @param listener - The listener to handle the event.\n */\n public on(event: \"participantsRemoved\", listener: (e: ParticipantsRemovedEvent) => void): void;\n\n /**\n * Subscribe function for realTimeNotificationConnected.\n * @param event - The realTimeNotificationConnected Event\n * @param listener - The listener to handle the event.\n */\n public on(event: \"realTimeNotificationConnected\", listener: () => void): void;\n\n /**\n * Subscribe function for realTimeNotificationDisconnected.\n * @param event - The realTimeNotificationDisconnected Event\n * @param listener - The listener to handle the event.\n */\n public on(event: \"realTimeNotificationDisconnected\", listener: () => void): void;\n\n public on(event: ChatEventId, listener: (e?: any) => void): void {\n if (this.signalingClient === undefined) {\n throw new Error(\"Realtime notifications are only supported in the browser.\");\n }\n if (\n !this.isRealtimeNotificationsStarted &&\n event !== \"realTimeNotificationConnected\" &&\n event !== \"realTimeNotificationDisconnected\"\n ) {\n throw new Error(\n \"You must call startRealtimeNotifications before you can subscribe to events.\",\n );\n }\n\n this.emitter.on(event, listener);\n }\n\n /**\n * Unsubscribe from chatMessageReceived.\n * @param event - The ChatMessageReceivedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(event: \"chatMessageReceived\", listener: (e: ChatMessageReceivedEvent) => void): void;\n\n /**\n * Unsubscribe from chatMessageEdited.\n * @param event - The ChatMessageEditedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(event: \"chatMessageEdited\", listener: (e: ChatMessageEditedEvent) => void): void;\n\n /**\n * Unsubscribe from chatMessageDeleted.\n * @param event - The ChatMessageDeletedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(event: \"chatMessageDeleted\", listener: (e: ChatMessageDeletedEvent) => void): void;\n\n /**\n * Unsubscribe from typingIndicatorReceived.\n * @param event - The TypingIndicatorReceivedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(\n event: \"typingIndicatorReceived\",\n listener: (e: TypingIndicatorReceivedEvent) => void,\n ): void;\n\n /**\n * Unsubscribe from readReceiptReceived.\n * @param event - The ReadReceiptReceivedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(event: \"readReceiptReceived\", listener: (e: ReadReceiptReceivedEvent) => void): void;\n\n /**\n * Unsubscribe from chatThreadCreated.\n * @param event - The ChatThreadCreatedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(event: \"chatThreadCreated\", listener: (e: ChatThreadCreatedEvent) => void): void;\n\n /**\n * Unsubscribe from chatThreadDeleted.\n * @param event - The ChatThreadDeletedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(event: \"chatThreadDeleted\", listener: (e: ChatThreadDeletedEvent) => void): void;\n\n /**\n * Unsubscribe from chatThreadPropertiesUpdated.\n * @param event - The ChatThreadPropertiesUpdatedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(\n event: \"chatThreadPropertiesUpdated\",\n listener: (e: ChatThreadPropertiesUpdatedEvent) => void,\n ): void;\n\n /**\n * Unsubscribe from participantsAdded.\n * @param event - The ParticipantsAddedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(event: \"participantsAdded\", listener: (e: ParticipantsAddedEvent) => void): void;\n\n /**\n * Unsubscribe from participantsRemoved.\n * @param event - The ParticipantsRemovedEvent.\n * @param listener - The listener to handle the event.\n */\n public off(event: \"participantsRemoved\", listener: (e: ParticipantsRemovedEvent) => void): void;\n\n public off(event: ChatEventId, listener: (e: any) => void): void {\n if (this.signalingClient === undefined) {\n throw new Error(\"Realtime notifications are only supported in the browser.\");\n }\n\n this.emitter.removeListener(event, listener);\n }\n\n private subscribeToSignalingEvents(): void {\n if (this.signalingClient === undefined) {\n throw new Error(\"Realtime notifications are only supported in the browser.\");\n }\n\n this.signalingClient.on(\"connectionChanged\", (payload) => {\n if (payload === ConnectionState.Connected) {\n this.emitter.emit(\"realTimeNotificationConnected\");\n } else if (payload === ConnectionState.Disconnected) {\n this.emitter.emit(\"realTimeNotificationDisconnected\");\n }\n });\n\n this.signalingClient.on(\"chatMessageReceived\", (payload) => {\n this.emitter.emit(\"chatMessageReceived\", payload);\n });\n\n this.signalingClient.on(\"chatMessageEdited\", (payload) => {\n this.emitter.emit(\"chatMessageEdited\", payload);\n });\n\n this.signalingClient.on(\"chatMessageDeleted\", (payload) => {\n this.emitter.emit(\"chatMessageDeleted\", payload);\n });\n\n this.signalingClient.on(\"typingIndicatorReceived\", (payload) => {\n this.emitter.emit(\"typingIndicatorReceived\", payload);\n });\n\n this.signalingClient.on(\"readReceiptReceived\", (payload) => {\n this.emitter.emit(\"readReceiptReceived\", payload);\n });\n\n this.signalingClient.on(\"chatThreadCreated\", (payload) => {\n this.emitter.emit(\"chatThreadCreated\", payload);\n });\n\n this.signalingClient.on(\"chatThreadDeleted\", (payload) => {\n this.emitter.emit(\"chatThreadDeleted\", payload);\n });\n\n this.signalingClient.on(\"chatThreadPropertiesUpdated\", (payload) => {\n this.emitter.emit(\"chatThreadPropertiesUpdated\", payload);\n });\n\n this.signalingClient.on(\"participantsAdded\", (payload) => {\n this.emitter.emit(\"participantsAdded\", payload);\n });\n\n this.signalingClient.on(\"participantsRemoved\", (payload) => {\n this.emitter.emit(\"participantsRemoved\", payload);\n });\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chatThreadClient.js","sourceRoot":"","sources":["../../src/chatThreadClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAGL,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAkBrC,OAAO,EACL,wCAAwC,EACxC,wBAAwB,EACxB,4BAA4B,EA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;YACL,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,WAAW,CAAC,OAAe,EAAE,UAA8B,EAAE;QAClE,OAAO,aAAa,CAAC,QAAQ,CAC3B,8BAA8B,EAC9B,OAAO,EACP,KAAK,EAAE,cAAmE,EAAE,EAAE;YAC5E,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;QACvF,CAAC,CACF,CAAC;IACJ,CAAC;IAEO,sBAAsB;QAC5B,IAAI,cAAc,GAAG,KAAK,CAAC;QAC3B,MAAM,cAAc,GAAG,IAAI,OAAO,CAAC,EAAE,EAAE;YACrC,IAAI,EAAE,IAAI,cAAc,EAAE;YAC1B,MAAM,EAAE,MAAM;YACd,6DAA6D;YAC7D,aAAa;YACb,IAAI,MAAM;gBACR,cAAc,GAAG,IAAI,CAAC;gBACtB,OAAO,MAAM,CAAC;YAChB,CAAC;SACF,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAC/B,OAAO,cAAc,IAAI,CAAC,cAAc,CAAC;IAC3C,CAAC;IAEO,KAAK,CAAC,gCAAgC,CAC5C,IAAgC;QAEhC,MAAM,WAAW,GAAG,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;QAC3D,OAAO,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IAEO,KAAK,CAAC,sBAAsB,CAAC,IAAU;QAC7C,OAAO,IAAI,UAAU,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAClD,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { logger } from \"./models/logger\";\nimport {\n CommunicationIdentifier,\n CommunicationTokenCredential,\n serializeCommunicationIdentifier,\n} from \"@azure/communication-common\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n AddParticipantsRequest,\n SendMessageRequest,\n SendReadReceiptRequest,\n} from \"./models/requests\";\n\nimport {\n AddChatParticipantsResult,\n ChatMessage,\n ChatMessageReadReceipt,\n ChatParticipant,\n ChatThreadProperties,\n ListPageSettings,\n SendChatMessageResult,\n UploadChatImageResult,\n} from \"./models/models\";\nimport {\n mapToAddChatParticipantsRequestRestModel,\n mapToChatMessageSdkModel,\n mapToChatParticipantSdkModel,\n mapToChatThreadPropertiesSdkModel,\n mapToReadReceiptSdkModel,\n mapToSendChatMessageRequestRestModel,\n mapToUpdateChatMessageRequestRestModel,\n} from \"./models/mappers\";\nimport {\n AddParticipantsOptions,\n ChatThreadClientOptions,\n DeleteMessageOptions,\n GetMessageOptions,\n GetPropertiesOptions,\n ListMessagesOptions,\n ListParticipantsOptions,\n ListReadReceiptsOptions,\n RemoveParticipantOptions,\n SendMessageOptions,\n SendReadReceiptOptions,\n SendTypingNotificationOptions,\n UpdateMessageOptions,\n UpdateTopicOptions,\n UpdateChatThreadPropertiesOptions,\n DeleteImageOptions,\n UploadImageOptions,\n UploadImageStreamOptions,\n} from \"./models/options\";\nimport {\n ChatApiClient,\n ChatThreadGetChatThreadPropertiesOptionalParams,\n ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ChatThreadSendChatMessageOptionalParams,\n ChatThreadGetChatMessageOptionalParams,\n ChatThreadDeleteChatMessageOptionalParams,\n ChatThreadUpdateChatMessageOptionalParams,\n ChatThreadAddChatParticipantsOptionalParams,\n ChatThreadRemoveChatParticipantOptionalParams,\n ChatThreadSendChatReadReceiptOptionalParams,\n ChatThreadUploadChatImageOptionalParams,\n ChatThreadDeleteChatImageOptionalParams,\n} from \"./generated/src\";\nimport { InternalPipelineOptions } from \"@azure/core-rest-pipeline\";\nimport { createXhrHttpClient, isReadableStream, isBlob } from \"./xhrHttpClient\";\nimport { createCommunicationTokenCredentialPolicy } from \"./credential/communicationTokenCredentialPolicy\";\nimport { tracingClient } from \"./generated/src/tracing\";\n\nconst minimumTypingIntervalInMilliSeconds: number = 8000;\n\n/**\n * The client to do chat operations\n */\nexport class ChatThreadClient {\n /**\n * Thread ID of the ChatThreadClient\n */\n readonly threadId: string;\n\n private readonly tokenCredential: CommunicationTokenCredential;\n private readonly client: ChatApiClient;\n private readonly xhrClient?: ChatApiClient;\n\n private timeOfLastTypingRequest: Date | undefined = undefined;\n\n constructor(\n private readonly endpoint: string,\n threadId: string,\n credential: CommunicationTokenCredential,\n options: ChatThreadClientOptions = {},\n ) {\n this.threadId = threadId;\n this.tokenCredential = credential;\n\n const internalPipelineOptions: InternalPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n },\n },\n };\n\n this.client = new ChatApiClient(this.endpoint, {\n endpoint: this.endpoint,\n ...internalPipelineOptions,\n });\n\n const authPolicy = createCommunicationTokenCredentialPolicy(this.tokenCredential);\n this.client.pipeline.addPolicy(authPolicy);\n\n if (typeof XMLHttpRequest !== \"undefined\") {\n this.xhrClient = new ChatApiClient(this.endpoint, {\n endpoint: this.endpoint,\n ...internalPipelineOptions,\n httpClient: createXhrHttpClient(),\n });\n this.xhrClient.pipeline.addPolicy(authPolicy);\n }\n }\n\n /**\n * Gets a chat thread.\n * Returns the chat thread.\n * @param options - Operation options.\n */\n public getProperties(options: GetPropertiesOptions = {}): Promise<ChatThreadProperties> {\n return tracingClient.withSpan(\n \"ChatClient-GetProperties\",\n options,\n async (updatedOptions: ChatThreadGetChatThreadPropertiesOptionalParams | undefined) => {\n const result = await this.client.chatThread.getChatThreadProperties(\n this.threadId,\n updatedOptions,\n );\n return mapToChatThreadPropertiesSdkModel(result);\n },\n );\n }\n\n /**\n * Updates a thread's topic.\n * @param topic - The topic needs to be updated to.\n * @param options - Operation options.\n */\n public updateTopic(topic: string, options: UpdateTopicOptions = {}): Promise<void> {\n return tracingClient.withSpan(\n \"ChatThreadClient-UpdateTopic\",\n options,\n async (updatedOptions: ChatThreadUpdateChatThreadPropertiesOptionalParams | undefined) => {\n await this.client.chatThread.updateChatThreadProperties(\n this.threadId,\n { topic: topic },\n updatedOptions,\n );\n },\n );\n }\n\n /**\n * Updates a thread's properties.\n * @param options - Operation options.\n */\n public updateProperties(options: UpdateChatThreadPropertiesOptions = {}): Promise<void> {\n return tracingClient.withSpan(\n \"ChatThreadClient-UpdateProperties\",\n options,\n async (updatedOptions: ChatThreadUpdateChatThreadPropertiesOptionalParams | undefined) => {\n await this.client.chatThread.updateChatThreadProperties(\n this.threadId,\n options,\n updatedOptions,\n );\n },\n );\n }\n\n /**\n * Sends a chat message to a thread identified by threadId.\n * Returns the id of the created message.\n * @param request - Request for sending a message.\n * @param options - Operation options.\n */\n public sendMessage(\n request: SendMessageRequest,\n options: SendMessageOptions = {},\n ): Promise<SendChatMessageResult> {\n return tracingClient.withSpan(\n \"ChatThreadClient-SendMessage\",\n options,\n async (updatedOptions: ChatThreadSendChatMessageOptionalParams | undefined) => {\n // reset typing notification clock\n this.timeOfLastTypingRequest = undefined;\n\n const result = await this.client.chatThread.sendChatMessage(\n this.threadId,\n mapToSendChatMessageRequestRestModel(request, options),\n updatedOptions,\n );\n return result;\n },\n );\n }\n\n /**\n * Gets a chat message identified by messageId.\n * Returns the specific message.\n * @param messageId - The message id of the message.\n * @param options - Operation options.\n */\n public getMessage(messageId: string, options: GetMessageOptions = {}): Promise<ChatMessage> {\n return tracingClient.withSpan(\n \"ChatThreadClient-GetMessage\",\n options,\n async (updatedOptions: ChatThreadGetChatMessageOptionalParams | undefined) => {\n const result = await this.client.chatThread.getChatMessage(\n this.threadId,\n messageId,\n updatedOptions,\n );\n return mapToChatMessageSdkModel(result);\n },\n );\n }\n\n private async *listMessagesPage(\n pageSettings: ListPageSettings,\n options: ListMessagesOptions = {},\n ): AsyncIterableIterator<ChatMessage[]> {\n if (!pageSettings.continuationToken) {\n const currentSetResponse = await this.client.chatThread.listChatMessages(\n this.threadId,\n options,\n );\n pageSettings.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(mapToChatMessageSdkModel, this);\n }\n }\n\n while (pageSettings.continuationToken) {\n const currentSetResponse = await this.client.chatThread.listChatMessagesNext(\n this.threadId,\n pageSettings.continuationToken,\n options,\n );\n pageSettings.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(mapToChatMessageSdkModel, this);\n } else {\n break;\n }\n }\n }\n\n private async *listMessagesAll(options: ListMessagesOptions): AsyncIterableIterator<ChatMessage> {\n for await (const page of this.listMessagesPage({}, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of message from a thread identified by threadId.\n * Returns the list of the messages.\n * @param options - Get messages options.\n */\n public listMessages(options: ListMessagesOptions = {}): PagedAsyncIterableIterator<ChatMessage> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"ChatThreadClient-ListMessages\",\n options,\n );\n\n try {\n const iter = this.listMessagesAll(updatedOptions);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: ListPageSettings = {}) => {\n return this.listMessagesPage(settings, updatedOptions);\n },\n };\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes a message identified by threadId and messageId\n * @param messageId - The message id of the message.\n * @param options - Operation options.\n */\n public deleteMessage(messageId: string, options: DeleteMessageOptions = {}): Promise<void> {\n return tracingClient.withSpan(\n \"ChatThreadClient-DeleteMessage\",\n options,\n async (updatedOptions: ChatThreadDeleteChatMessageOptionalParams | undefined) => {\n await this.client.chatThread.deleteChatMessage(this.threadId, messageId, updatedOptions);\n },\n );\n }\n\n /**\n * Updates a message identified by threadId and messageId\n * @param messageId - The message id of the message.\n * @param options - Operation options.\n */\n public async updateMessage(messageId: string, options: UpdateMessageOptions = {}): Promise<void> {\n return tracingClient.withSpan(\n \"ChatThreadClient-UpdateMessage\",\n options,\n async (updatedOptions: ChatThreadUpdateChatMessageOptionalParams | undefined) => {\n await this.client.chatThread.updateChatMessage(\n this.threadId,\n messageId,\n mapToUpdateChatMessageRequestRestModel(options),\n updatedOptions,\n );\n },\n );\n }\n\n /**\n * Adds the details of chat participants belonging to the thread identified by threadId.\n * @param request - Thread participants' details to add in the thread roster\n * @param options - Operation options.\n */\n public async addParticipants(\n request: AddParticipantsRequest,\n options: AddParticipantsOptions = {},\n ): Promise<AddChatParticipantsResult> {\n return tracingClient.withSpan(\n \"ChatThreadClient-AddParticipants\",\n options,\n async (updatedOptions: ChatThreadAddChatParticipantsOptionalParams | undefined) => {\n const result = await this.client.chatThread.addChatParticipants(\n this.threadId,\n mapToAddChatParticipantsRequestRestModel(request),\n updatedOptions,\n );\n return result;\n },\n );\n }\n\n private async *listParticipantsPage(\n continuationState: ListPageSettings,\n options: ListParticipantsOptions = {},\n ): AsyncIterableIterator<ChatParticipant[]> {\n if (!continuationState.continuationToken) {\n const currentSetResponse = await this.client.chatThread.listChatParticipants(\n this.threadId,\n options,\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(mapToChatParticipantSdkModel, this);\n }\n }\n\n while (continuationState.continuationToken) {\n const currentSetResponse = await this.client.chatThread.listChatParticipantsNext(\n this.threadId,\n continuationState.continuationToken,\n options,\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(mapToChatParticipantSdkModel, this);\n } else {\n break;\n }\n }\n }\n\n private async *listParticipantsAll(\n options: ListParticipantsOptions,\n ): AsyncIterableIterator<ChatParticipant> {\n for await (const page of this.listParticipantsPage({}, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the participants of the thread identified by threadId.\n * Returns the lists of the participants.\n * @param options - Operation options.\n */\n public listParticipants(\n options: ListParticipantsOptions = {},\n ): PagedAsyncIterableIterator<ChatParticipant> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"ChatThreadClient-ListParticipants\",\n options,\n );\n\n try {\n const iter = this.listParticipantsAll(updatedOptions);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: ListPageSettings = {}) => {\n return this.listParticipantsPage(settings, updatedOptions);\n },\n };\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Removes participant from the thread identified by threadId.\n * @param participant - Thread participant to remove from the thread roster\n * @param options - Operation options.\n */\n public async removeParticipant(\n participant: CommunicationIdentifier,\n options: RemoveParticipantOptions = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatThreadClient-RemoveParticipant\",\n options,\n async (updatedOptions: ChatThreadRemoveChatParticipantOptionalParams | undefined) => {\n await this.client.chatThread.removeChatParticipant(\n this.threadId,\n serializeCommunicationIdentifier(participant),\n updatedOptions,\n );\n },\n );\n }\n\n /**\n * Sends a typing notification to the thread.\n * Doesn't attempt to send if the time since last notification is smaller than the minimum typing interval\n * @param options - - Operation options\n * @returns True if the typing message notification could be sent, otherwise false.\n */\n public async sendTypingNotification(\n options: SendTypingNotificationOptions = {},\n ): Promise<boolean> {\n return tracingClient.withSpan(\n \"ChatThreadClient-SendTypingNotification\",\n options,\n async (updatedOptions: SendTypingNotificationOptions) => {\n const dateNow = new Date();\n const { senderDisplayName, ...restOptions } = updatedOptions;\n\n if (this.canPostTypingNotification(dateNow)) {\n this.timeOfLastTypingRequest = dateNow;\n\n await this.client.chatThread.sendTypingNotification(this.threadId, {\n sendTypingNotificationRequest: { senderDisplayName: senderDisplayName },\n ...restOptions,\n });\n return true;\n }\n\n logger.info(`Typing Notification NOT Send. [thread_id=${this.threadId}]`);\n return false;\n },\n );\n }\n\n /**\n * Sends a read receipt to the thread identified by threadId.\n * @param request - Request for sending a read receipt\n * @param options - Operation options.\n */\n public async sendReadReceipt(\n request: SendReadReceiptRequest,\n options: SendReadReceiptOptions = {},\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatThreadClient-SendReadReceipt\",\n options,\n async (updatedOptions: ChatThreadSendChatReadReceiptOptionalParams | undefined) => {\n await this.client.chatThread.sendChatReadReceipt(this.threadId, request, updatedOptions);\n },\n );\n }\n\n private async *listReadReceiptsPage(\n continuationState: ListPageSettings,\n options: ListReadReceiptsOptions = {},\n ): AsyncIterableIterator<ChatMessageReadReceipt[]> {\n if (!continuationState.continuationToken) {\n const currentSetResponse = await this.client.chatThread.listChatReadReceipts(\n this.threadId,\n options,\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(mapToReadReceiptSdkModel, this);\n }\n }\n\n while (continuationState.continuationToken) {\n const currentSetResponse = await this.client.chatThread.listChatReadReceiptsNext(\n this.threadId,\n continuationState.continuationToken,\n options,\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(mapToReadReceiptSdkModel, this);\n } else {\n break;\n }\n }\n }\n\n private async *listReadReceiptsAll(\n options: ListReadReceiptsOptions,\n ): AsyncIterableIterator<ChatMessageReadReceipt> {\n for await (const page of this.listReadReceiptsPage({}, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of read receipt from a thread identified by threadId.\n * Returns the list of the messages.\n * @param options - Get messages options.\n */\n public listReadReceipts(\n options: ListReadReceiptsOptions = {},\n ): PagedAsyncIterableIterator<ChatMessageReadReceipt> {\n const { span, updatedOptions } = tracingClient.startSpan(\n \"ChatThreadClient-ListChatReadReceipts\",\n options,\n );\n\n try {\n const iter = this.listReadReceiptsAll(updatedOptions);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: ListPageSettings = {}) => {\n return this.listReadReceiptsPage(settings, updatedOptions);\n },\n };\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n private canPostTypingNotification(dateNow: Date): boolean {\n if (this.timeOfLastTypingRequest) {\n const timeSinceLastRequestInMilliSeconds =\n dateNow.getTime() - this.timeOfLastTypingRequest.getTime();\n\n if (timeSinceLastRequestInMilliSeconds < minimumTypingIntervalInMilliSeconds) {\n logger.info(`Typing interval check failed. [last_request=${this.timeOfLastTypingRequest}]`);\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Uploads an chat image to a thread identified by threadId.\n * Allowed image types \"jpg\", \"png\", \"gif\", \"heic\", \"webp\".\n * Returns the id of the uploaded image.\n * @param image - Request for uploading an image.\n * @param imageFilename - The image's file name with file extension.\n * @param options - Operation options.\n */\n public async uploadImage(\n image: ArrayBuffer | Blob,\n imageFilename: string,\n options?: UploadImageOptions,\n ): Promise<UploadChatImageResult>;\n\n /**\n * Uploads an chat image stream to a thread identified by threadId.\n * Allowed image types \"jpg\", \"png\", \"gif\", \"heic\", \"webp\".\n * Returns the id of the uploaded image.\n * @param image - Request for uploading an image.\n * @param imageFileName - The image's file name with file extension.\n * @param imageBytesLength - The image's file length in bytes.\n * @param options - Operation options.\n */\n public async uploadImage(\n image: ReadableStream<Uint8Array> | NodeJS.ReadableStream,\n imageFileName: string,\n imageBytesLength: number,\n // eslint-disable-next-line\n options?: UploadImageStreamOptions,\n ): Promise<UploadChatImageResult>;\n\n async uploadImage(\n image: ArrayBuffer | Blob | ReadableStream<Uint8Array> | NodeJS.ReadableStream,\n imageFilename: string,\n imageBytesLengthOrOptions?: number | UploadImageOptions,\n options: UploadImageStreamOptions = {},\n ): Promise<UploadChatImageResult> {\n let uploadImageOptions = {};\n if (imageBytesLengthOrOptions !== undefined) {\n if (typeof imageBytesLengthOrOptions === \"number\") {\n uploadImageOptions = { ...options, imageBytesLength: imageBytesLengthOrOptions };\n } else {\n uploadImageOptions = { ...options, ...imageBytesLengthOrOptions };\n }\n }\n\n return tracingClient.withSpan(\n \"ChatThreadClient-UploadImage\",\n uploadImageOptions,\n async (updatedOptions: ChatThreadUploadChatImageOptionalParams | undefined) => {\n let result: UploadChatImageResult;\n if (\n this.xhrClient && // is browser\n ((!this.supportsReadableStream() && isReadableStream(image)) || // is readable stream but no support, need to convert\n !isReadableStream(image))\n ) {\n // use xhrClient if (to support onUploadProgress)\n // - is readable stream but no support => convert to ArrayBuffer (so will have content-length)\n // - is not readable stream\n result = await this.xhrClient.chatThread.uploadChatImage(\n this.threadId,\n isReadableStream(image) ? await this.getArrayBufferFromReadableStream(image) : image,\n { imageFilename, ...updatedOptions },\n );\n } else {\n // backend (node fetch client) or readable readable stream\n // Backend (no browser) need to convert Blob/ReadableStream to ArrayBuffer\n let chatImageFile = image;\n if (isBlob(image)) {\n chatImageFile = await this.getArrayBufferFromBlob(image);\n } else if (isReadableStream(image)) {\n chatImageFile = await this.getArrayBufferFromReadableStream(image);\n }\n result = await this.client.chatThread.uploadChatImage(this.threadId, chatImageFile, {\n imageFilename,\n ...updatedOptions,\n });\n }\n return result;\n },\n );\n }\n\n /**\n * Deletes an image identified by threadId and imageId\n * @param imageId - The image id of the image.\n * @param options - Operation options.\n */\n public deleteImage(imageId: string, options: DeleteImageOptions = {}): Promise<void> {\n return tracingClient.withSpan(\n \"ChatThreadClient-DeleteImage\",\n options,\n async (updatedOptions: ChatThreadDeleteChatImageOptionalParams | undefined) => {\n await this.client.chatThread.deleteChatImage(this.threadId, imageId, updatedOptions);\n },\n );\n }\n\n private supportsReadableStream(): boolean {\n let duplexAccessed = false;\n const hasContentType = new Request(\"\", {\n body: new ReadableStream(),\n method: \"POST\",\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n get duplex() {\n duplexAccessed = true;\n return \"half\";\n },\n }).headers.has(\"Content-Type\");\n return duplexAccessed && !hasContentType;\n }\n\n private async getArrayBufferFromReadableStream(\n body: ReadableStream<Uint8Array>,\n ): Promise<ArrayBuffer> {\n const arrayBuffer = await new Response(body).arrayBuffer();\n return new Uint8Array(arrayBuffer);\n }\n\n private async getArrayBufferFromBlob(body: Blob): Promise<ArrayBuffer> {\n return new Uint8Array(await body.arrayBuffer());\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"communicationTokenCredentialPolicy.js","sourceRoot":"","sources":["../../../src/credential/communicationTokenCredentialPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAGL,+BAA+B,GAChC,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACtD,UAAwC,EACxB,EAAE;IAClB,MAAM,aAAa,GAA2C;QAC5D,UAAU,EAAE;YACV,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EAAE,CAAC;SAC3F;QACD,MAAM,EAAE,EAAE;KACX,CAAC;IAEF,OAAO,+BAA+B,CAAC,aAAa,CAAC,CAAC;AACxD,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationTokenCredential } from \"@azure/communication-common\";\nimport {\n BearerTokenAuthenticationPolicyOptions,\n PipelinePolicy,\n bearerTokenAuthenticationPolicy,\n} from \"@azure/core-rest-pipeline\";\n\n/**\n * Creates a new CommunicationTokenCredentialPolicy factory.\n *\n * @param credential - The CommunicationTokenCredential implementation that can supply the user credential.\n */\nexport const createCommunicationTokenCredentialPolicy = (\n credential: CommunicationTokenCredential,\n): PipelinePolicy => {\n const policyOptions: BearerTokenAuthenticationPolicyOptions = {\n credential: {\n getToken: (_scopes, options) => credential.getToken({ abortSignal: options?.abortSignal }),\n },\n scopes: [],\n };\n\n return bearerTokenAuthenticationPolicy(policyOptions);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chatApiClient.js","sourceRoot":"","sources":["../../../../src/generated/src/chatApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,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CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport { ChatThreadImpl, ChatImpl } from \"./operations\";\nimport { ChatThread, Chat } from \"./operationsInterfaces\";\nimport { ChatApiClientOptionalParams } from \"./models\";\n\nexport class ChatApiClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ChatApiClient class.\n * @param endpoint The endpoint of the Azure Communication resource.\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: ChatApiClientOptionalParams) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ChatApiClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n };\n\n const packageDetails = `azsdk-js-communication-chat/1.6.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2024-06-05-preview\";\n this.chatThread = new ChatThreadImpl(this);\n this.chat = new ChatImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n chatThread: ChatThread;\n chat: Chat;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models\";\nexport { ChatApiClient } from \"./chatApiClient\";\nexport * from \"./operationsInterfaces\";\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,sBAAsB,IAAI,4BAA4B,EACtD,sBAAsB,IAAI,4BAA4B,EACtD,wBAAwB,IAAI,8BAA8B,EAC1D,4BAA4B,IAAI,kCAAkC,EAClE,0BAA0B,IAAI,gCAAgC,EAC9D,uBAAuB,IAAI,6BAA6B,EACxD,6BAA6B,IAAI,mCAAmC,EACpE,uBAAuB,IAAI,6BAA6B,GACzD,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;Y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;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE;QACN,cAAc,EAAE,eAAe;QAC/B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAuB;IACzD,aAAa,EAAE,yBAAyB;IACxC,MAAM,EAAE,6BAA6B;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAuB;IACxD,aAAa,EAAE,CAAC,SAAS,EAAE,wBAAwB,CAAC;IACpD,MAAM,EAAE;QACN,cAAc,EAAE,0BAA0B;QAC1C,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n} from \"@azure/core-client\";\nimport {\n SendReadReceiptRequest as SendReadReceiptRequestMapper,\n SendChatMessageRequest as SendChatMessageRequestMapper,\n UpdateChatMessageRequest as UpdateChatMessageRequestMapper,\n CommunicationIdentifierModel as CommunicationIdentifierModelMapper,\n AddChatParticipantsRequest as AddChatParticipantsRequestMapper,\n UpdateChatThreadRequest as UpdateChatThreadRequestMapper,\n SendTypingNotificationRequest as SendTypingNotificationRequestMapper,\n CreateChatThreadRequest as CreateChatThreadRequestMapper,\n} from \"../models/mappers\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const chatThreadId: OperationURLParameter = {\n parameterPath: \"chatThreadId\",\n mapper: {\n serializedName: \"chatThreadId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const maxPageSize: OperationQueryParameter = {\n parameterPath: [\"options\", \"maxPageSize\"],\n mapper: {\n serializedName: \"maxPageSize\",\n type: {\n name: \"Number\",\n },\n },\n};\n\nexport const skip: OperationQueryParameter = {\n parameterPath: [\"options\", \"skip\"],\n mapper: {\n serializedName: \"skip\",\n type: {\n name: \"Number\",\n },\n },\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2024-06-05-preview\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const sendReadReceiptRequest: OperationParameter = {\n parameterPath: \"sendReadReceiptRequest\",\n mapper: SendReadReceiptRequestMapper,\n};\n\nexport const sendChatMessageRequest: OperationParameter = {\n parameterPath: \"sendChatMessageRequest\",\n mapper: SendChatMessageRequestMapper,\n};\n\nexport const startTime: OperationQueryParameter = {\n parameterPath: [\"options\", \"startTime\"],\n mapper: {\n serializedName: \"startTime\",\n type: {\n name: \"DateTime\",\n },\n },\n};\n\nexport const chatMessageId: OperationURLParameter = {\n parameterPath: \"chatMessageId\",\n mapper: {\n serializedName: \"chatMessageId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const contentType1: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/merge-patch+json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const updateChatMessageRequest: OperationParameter = {\n parameterPath: \"updateChatMessageRequest\",\n mapper: UpdateChatMessageRequestMapper,\n};\n\nexport const participantCommunicationIdentifier: OperationParameter = {\n parameterPath: \"participantCommunicationIdentifier\",\n mapper: CommunicationIdentifierModelMapper,\n};\n\nexport const addChatParticipantsRequest: OperationParameter = {\n parameterPath: \"addChatParticipantsRequest\",\n mapper: AddChatParticipantsRequestMapper,\n};\n\nexport const updateChatThreadRequest: OperationParameter = {\n parameterPath: \"updateChatThreadRequest\",\n mapper: UpdateChatThreadRequestMapper,\n};\n\nexport const sendTypingNotificationRequest: OperationParameter = {\n parameterPath: [\"options\", \"sendTypingNotificationRequest\"],\n mapper: SendTypingNotificationRequestMapper,\n};\n\nexport const contentType2: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/octet-stream\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const chatImageFile: OperationParameter = {\n parameterPath: \"chatImageFile\",\n mapper: {\n serializedName: \"chatImageFile\",\n required: true,\n type: {\n name: \"Stream\",\n },\n },\n};\n\nexport const accept1: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const imageFilename: OperationParameter = {\n parameterPath: [\"options\", \"imageFilename\"],\n mapper: {\n serializedName: \"image-filename\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const accept2: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue:\n \"application/json, image/gif, image/jpeg, image/png, image/bmp, image/tiff\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const imageId: OperationURLParameter = {\n parameterPath: \"imageId\",\n mapper: {\n serializedName: \"imageId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const imageViewType: OperationURLParameter = {\n parameterPath: \"imageViewType\",\n mapper: {\n serializedName: \"imageViewType\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const createChatThreadRequest: OperationParameter = {\n parameterPath: \"createChatThreadRequest\",\n mapper: CreateChatThreadRequestMapper,\n};\n\nexport const repeatabilityRequestId: OperationParameter = {\n parameterPath: [\"options\", \"repeatabilityRequestId\"],\n mapper: {\n serializedName: \"repeatability-request-id\",\n type: {\n name: \"String\",\n },\n },\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/chat.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,gBAAgB,CACpB,uBAAgD,EAChD,OAA4C;QAE5C,OAAO,aAAa,CAAC,QAAQ,CAC3B,gCAAgC,EAChC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,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,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { Chat } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ChatApiClient } from \"../chatApiClient\";\nimport {\n CreateChatThreadRequest,\n ChatCreateChatThreadOptionalParams,\n ChatCreateChatThreadResponse,\n ChatListChatThreadsOptionalParams,\n ChatListChatThreadsResponse,\n ChatDeleteChatThreadOptionalParams,\n ChatListChatThreadsNextOptionalParams,\n ChatListChatThreadsNextResponse,\n} from \"../models\";\n\n/** Class containing Chat operations. */\nexport class ChatImpl implements Chat {\n private readonly client: ChatApiClient;\n\n /**\n * Initialize a new instance of the class Chat class.\n * @param client Reference to the service client\n */\n constructor(client: ChatApiClient) {\n this.client = client;\n }\n\n /**\n * Creates a chat thread.\n * @param createChatThreadRequest Request payload for creating a chat thread.\n * @param options The options parameters.\n */\n async createChatThread(\n createChatThreadRequest: CreateChatThreadRequest,\n options?: ChatCreateChatThreadOptionalParams,\n ): Promise<ChatCreateChatThreadResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.createChatThread\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { createChatThreadRequest, options },\n createChatThreadOperationSpec,\n ) as Promise<ChatCreateChatThreadResponse>;\n },\n );\n }\n\n /**\n * Gets the list of chat threads of a user.\n * @param options The options parameters.\n */\n async listChatThreads(\n options?: ChatListChatThreadsOptionalParams,\n ): Promise<ChatListChatThreadsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatThreads\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { options },\n listChatThreadsOperationSpec,\n ) as Promise<ChatListChatThreadsResponse>;\n },\n );\n }\n\n /**\n * Deletes a thread.\n * @param chatThreadId Id of the thread to be deleted.\n * @param options The options parameters.\n */\n async deleteChatThread(\n chatThreadId: string,\n options?: ChatDeleteChatThreadOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.deleteChatThread\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n deleteChatThreadOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListChatThreadsNext\n * @param nextLink The nextLink from the previous successful call to the ListChatThreads method.\n * @param options The options parameters.\n */\n async listChatThreadsNext(\n nextLink: string,\n options?: ChatListChatThreadsNextOptionalParams,\n ): Promise<ChatListChatThreadsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatThreadsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listChatThreadsNextOperationSpec,\n ) as Promise<ChatListChatThreadsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createChatThreadOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.CreateChatThreadResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.createChatThreadRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.repeatabilityRequestId,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst listChatThreadsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatThreadsItemCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.apiVersion,\n Parameters.startTime,\n ],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteChatThreadOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatThreadsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatThreadsItemCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chatThread.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/chatThread.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AA2CnD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,oBAAoB,CACxB,YAAoB,EACpB,OAAsD;QAEtD,OAAO,aAAa,CAAC,QAAQ,CAC3B,oCAAoC,EACpC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,EAAE,EAAE;YAChB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,OAAO,EAAE,EACzB,iCAAiC,CACiB,CAAC;QACvD,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,YAAoB,EACpB,sBAA8C,EAC9C,OAAqD;QAErD,OAAO,aAAa,CAAC,QAAQ,CAC3B,mCAAmC,EACnC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,OAAO,E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O,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing\";\nimport { ChatThread } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ChatApiClient } from \"../chatApiClient\";\nimport {\n ChatThreadListChatReadReceiptsOptionalParams,\n ChatThreadListChatReadReceiptsResponse,\n SendReadReceiptRequest,\n ChatThreadSendChatReadReceiptOptionalParams,\n SendChatMessageRequest,\n ChatThreadSendChatMessageOptionalParams,\n ChatThreadSendChatMessageResponse,\n ChatThreadListChatMessagesOptionalParams,\n ChatThreadListChatMessagesResponse,\n ChatThreadGetChatMessageOptionalParams,\n ChatThreadGetChatMessageResponse,\n UpdateChatMessageRequest,\n ChatThreadUpdateChatMessageOptionalParams,\n ChatThreadDeleteChatMessageOptionalParams,\n ChatThreadListChatParticipantsOptionalParams,\n ChatThreadListChatParticipantsResponse,\n CommunicationIdentifierModel,\n ChatThreadRemoveChatParticipantOptionalParams,\n AddChatParticipantsRequest,\n ChatThreadAddChatParticipantsOptionalParams,\n ChatThreadAddChatParticipantsResponse,\n UpdateChatThreadRequest,\n ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesResponse,\n ChatThreadSendTypingNotificationOptionalParams,\n ChatThreadUploadChatImageOptionalParams,\n ChatThreadUploadChatImageResponse,\n ImageViewType,\n ChatThreadGetChatImageOptionalParams,\n ChatThreadGetChatImageResponse,\n ChatThreadDeleteChatImageOptionalParams,\n ChatThreadListChatReadReceiptsNextOptionalParams,\n ChatThreadListChatReadReceiptsNextResponse,\n ChatThreadListChatMessagesNextOptionalParams,\n ChatThreadListChatMessagesNextResponse,\n ChatThreadListChatParticipantsNextOptionalParams,\n ChatThreadListChatParticipantsNextResponse,\n} from \"../models\";\n\n/** Class containing ChatThread operations. */\nexport class ChatThreadImpl implements ChatThread {\n private readonly client: ChatApiClient;\n\n /**\n * Initialize a new instance of the class ChatThread class.\n * @param client Reference to the service client\n */\n constructor(client: ChatApiClient) {\n this.client = client;\n }\n\n /**\n * Gets chat message read receipts for a thread.\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param options The options parameters.\n */\n async listChatReadReceipts(\n chatThreadId: string,\n options?: ChatThreadListChatReadReceiptsOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatReadReceipts\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatReadReceiptsOperationSpec,\n ) as Promise<ChatThreadListChatReadReceiptsResponse>;\n },\n );\n }\n\n /**\n * Sends a read receipt event to a thread, on behalf of a user.\n * @param chatThreadId Thread id to send the read receipt event to.\n * @param sendReadReceiptRequest Read receipt details.\n * @param options The options parameters.\n */\n async sendChatReadReceipt(\n chatThreadId: string,\n sendReadReceiptRequest: SendReadReceiptRequest,\n options?: ChatThreadSendChatReadReceiptOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendChatReadReceipt\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, sendReadReceiptRequest, options },\n sendChatReadReceiptOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Sends a message to a thread.\n * @param chatThreadId The thread id to send the message to.\n * @param sendChatMessageRequest Details of the message to send.\n * @param options The options parameters.\n */\n async sendChatMessage(\n chatThreadId: string,\n sendChatMessageRequest: SendChatMessageRequest,\n options?: ChatThreadSendChatMessageOptionalParams,\n ): Promise<ChatThreadSendChatMessageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, sendChatMessageRequest, options },\n sendChatMessageOperationSpec,\n ) as Promise<ChatThreadSendChatMessageResponse>;\n },\n );\n }\n\n /**\n * Gets a list of messages from a thread.\n * @param chatThreadId The thread id of the message.\n * @param options The options parameters.\n */\n async listChatMessages(\n chatThreadId: string,\n options?: ChatThreadListChatMessagesOptionalParams,\n ): Promise<ChatThreadListChatMessagesResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatMessages\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatMessagesOperationSpec,\n ) as Promise<ChatThreadListChatMessagesResponse>;\n },\n );\n }\n\n /**\n * Gets a message by id.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n async getChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadGetChatMessageOptionalParams,\n ): Promise<ChatThreadGetChatMessageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, options },\n getChatMessageOperationSpec,\n ) as Promise<ChatThreadGetChatMessageResponse>;\n },\n );\n }\n\n /**\n * Updates a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param updateChatMessageRequest Details of the request to update the message.\n * @param options The options parameters.\n */\n async updateChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n updateChatMessageRequest: UpdateChatMessageRequest,\n options?: ChatThreadUpdateChatMessageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.updateChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, updateChatMessageRequest, options },\n updateChatMessageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Deletes a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n async deleteChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadDeleteChatMessageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.deleteChatMessage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatMessageId, options },\n deleteChatMessageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets the participants of a thread.\n * @param chatThreadId Thread id to get participants for.\n * @param options The options parameters.\n */\n async listChatParticipants(\n chatThreadId: string,\n options?: ChatThreadListChatParticipantsOptionalParams,\n ): Promise<ChatThreadListChatParticipantsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatParticipants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n listChatParticipantsOperationSpec,\n ) as Promise<ChatThreadListChatParticipantsResponse>;\n },\n );\n }\n\n /**\n * Remove a participant from a thread.\n * @param chatThreadId Thread id to remove the participant from.\n * @param participantCommunicationIdentifier Id of the thread participant to remove from the thread.\n * @param options The options parameters.\n */\n async removeChatParticipant(\n chatThreadId: string,\n participantCommunicationIdentifier: CommunicationIdentifierModel,\n options?: ChatThreadRemoveChatParticipantOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.removeChatParticipant\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, participantCommunicationIdentifier, options },\n removeChatParticipantOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Adds thread participants to a thread. If participants already exist, no change occurs.\n * @param chatThreadId Id of the thread to add participants to.\n * @param addChatParticipantsRequest Thread participants to be added to the thread.\n * @param options The options parameters.\n */\n async addChatParticipants(\n chatThreadId: string,\n addChatParticipantsRequest: AddChatParticipantsRequest,\n options?: ChatThreadAddChatParticipantsOptionalParams,\n ): Promise<ChatThreadAddChatParticipantsResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.addChatParticipants\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, addChatParticipantsRequest, options },\n addChatParticipantsOperationSpec,\n ) as Promise<ChatThreadAddChatParticipantsResponse>;\n },\n );\n }\n\n /**\n * Updates a thread's properties.\n * @param chatThreadId The id of the thread to update.\n * @param updateChatThreadRequest Request payload for updating a chat thread.\n * @param options The options parameters.\n */\n async updateChatThreadProperties(\n chatThreadId: string,\n updateChatThreadRequest: UpdateChatThreadRequest,\n options?: ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.updateChatThreadProperties\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, updateChatThreadRequest, options },\n updateChatThreadPropertiesOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Gets a chat thread's properties.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n async getChatThreadProperties(\n chatThreadId: string,\n options?: ChatThreadGetChatThreadPropertiesOptionalParams,\n ): Promise<ChatThreadGetChatThreadPropertiesResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatThreadProperties\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n getChatThreadPropertiesOperationSpec,\n ) as Promise<ChatThreadGetChatThreadPropertiesResponse>;\n },\n );\n }\n\n /**\n * Posts a typing event to a thread, on behalf of a user.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n async sendTypingNotification(\n chatThreadId: string,\n options?: ChatThreadSendTypingNotificationOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.sendTypingNotification\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, options },\n sendTypingNotificationOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Upload an image in a thread, on behalf of a user.\n * @param chatThreadId Thread id where the uploaded image belongs to. (Teams meeting only)\n * @param chatImageFile Image binary data, allowed image formats: jpeg, png, gif, heic, webp\n * @param options The options parameters.\n */\n async uploadChatImage(\n chatThreadId: string,\n chatImageFile: coreRestPipeline.RequestBodyType,\n options?: ChatThreadUploadChatImageOptionalParams,\n ): Promise<ChatThreadUploadChatImageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.uploadChatImage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, chatImageFile, options },\n uploadChatImageOperationSpec,\n ) as Promise<ChatThreadUploadChatImageResponse>;\n },\n );\n }\n\n /**\n * Get an image by view type.\n * @param chatThreadId The thread id to which the message was sent.\n * @param imageId The image id.\n * @param imageViewType The view type of image.\n * @param options The options parameters.\n */\n async getChatImage(\n chatThreadId: string,\n imageId: string,\n imageViewType: ImageViewType,\n options?: ChatThreadGetChatImageOptionalParams,\n ): Promise<ChatThreadGetChatImageResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.getChatImage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, imageId, imageViewType, options },\n getChatImageOperationSpec,\n ) as Promise<ChatThreadGetChatImageResponse>;\n },\n );\n }\n\n /**\n * Deletes a image.\n * @param chatThreadId The thread id to which the message was sent.\n * @param imageId The image id.\n * @param options The options parameters.\n */\n async deleteChatImage(\n chatThreadId: string,\n imageId: string,\n options?: ChatThreadDeleteChatImageOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ChatApiClient.deleteChatImage\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, imageId, options },\n deleteChatImageOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListChatReadReceiptsNext\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param nextLink The nextLink from the previous successful call to the ListChatReadReceipts method.\n * @param options The options parameters.\n */\n async listChatReadReceiptsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatReadReceiptsNextOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatReadReceiptsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatReadReceiptsNextOperationSpec,\n ) as Promise<ChatThreadListChatReadReceiptsNextResponse>;\n },\n );\n }\n\n /**\n * ListChatMessagesNext\n * @param chatThreadId The thread id of the message.\n * @param nextLink The nextLink from the previous successful call to the ListChatMessages method.\n * @param options The options parameters.\n */\n async listChatMessagesNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatMessagesNextOptionalParams,\n ): Promise<ChatThreadListChatMessagesNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatMessagesNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatMessagesNextOperationSpec,\n ) as Promise<ChatThreadListChatMessagesNextResponse>;\n },\n );\n }\n\n /**\n * ListChatParticipantsNext\n * @param chatThreadId Thread id to get participants for.\n * @param nextLink The nextLink from the previous successful call to the ListChatParticipants method.\n * @param options The options parameters.\n */\n async listChatParticipantsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatParticipantsNextOptionalParams,\n ): Promise<ChatThreadListChatParticipantsNextResponse> {\n return tracingClient.withSpan(\n \"ChatApiClient.listChatParticipantsNext\",\n options ?? {},\n async (options) => {\n return this.client.sendOperationRequest(\n { chatThreadId, nextLink, options },\n listChatParticipantsNextOperationSpec,\n ) as Promise<ChatThreadListChatParticipantsNextResponse>;\n },\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listChatReadReceiptsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/readReceipts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessageReadReceiptsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.skip,\n Parameters.apiVersion,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendChatReadReceiptOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/readReceipts\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendReadReceiptRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst sendChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.SendChatMessageResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendChatMessageRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listChatMessagesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessagesCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.apiVersion,\n Parameters.startTime,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessage,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.updateChatMessageRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n};\nconst deleteChatMessageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/messages/{chatMessageId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.chatMessageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatParticipantsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatParticipantsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [\n Parameters.maxPageSize,\n Parameters.skip,\n Parameters.apiVersion,\n ],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst removeChatParticipantOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants/:remove\",\n httpMethod: \"POST\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.participantCommunicationIdentifier,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst addChatParticipantsOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/participants/:add\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.AddChatParticipantsResult,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.addChatParticipantsRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateChatThreadPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"PATCH\",\n responses: {\n 204: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.updateChatThreadRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer,\n};\nconst getChatThreadPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatThreadProperties,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst sendTypingNotificationOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/typing\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n requestBody: Parameters.sendTypingNotificationRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst uploadChatImageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/images\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.UploadChatImageResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.chatImageFile,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.chatThreadId],\n headerParameters: [\n Parameters.contentType2,\n Parameters.accept1,\n Parameters.imageFilename,\n ],\n mediaType: \"binary\",\n serializer,\n};\nconst getChatImageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/images/{imageId}/view/{imageViewType}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\",\n },\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.imageId,\n Parameters.imageViewType,\n ],\n headerParameters: [Parameters.accept2],\n serializer,\n};\nconst deleteChatImageOperationSpec: coreClient.OperationSpec = {\n path: \"/chat/threads/{chatThreadId}/images/{imageId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.imageId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatReadReceiptsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessageReadReceiptsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatMessagesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatMessagesCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listChatParticipantsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChatParticipantsCollection,\n },\n 401: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 403: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n isError: true,\n },\n },\n urlParameters: [\n Parameters.endpoint,\n Parameters.chatThreadId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./chatThread\";\nexport * from \"./chat\";\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/chat.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n CreateChatThreadRequest,\n ChatCreateChatThreadOptionalParams,\n ChatCreateChatThreadResponse,\n ChatListChatThreadsOptionalParams,\n ChatListChatThreadsResponse,\n ChatDeleteChatThreadOptionalParams,\n ChatListChatThreadsNextOptionalParams,\n ChatListChatThreadsNextResponse,\n} from \"../models\";\n\n/** Interface representing a Chat. */\nexport interface Chat {\n /**\n * Creates a chat thread.\n * @param createChatThreadRequest Request payload for creating a chat thread.\n * @param options The options parameters.\n */\n createChatThread(\n createChatThreadRequest: CreateChatThreadRequest,\n options?: ChatCreateChatThreadOptionalParams,\n ): Promise<ChatCreateChatThreadResponse>;\n /**\n * Gets the list of chat threads of a user.\n * @param options The options parameters.\n */\n listChatThreads(\n options?: ChatListChatThreadsOptionalParams,\n ): Promise<ChatListChatThreadsResponse>;\n /**\n * Deletes a thread.\n * @param chatThreadId Id of the thread to be deleted.\n * @param options The options parameters.\n */\n deleteChatThread(\n chatThreadId: string,\n options?: ChatDeleteChatThreadOptionalParams,\n ): Promise<void>;\n /**\n * ListChatThreadsNext\n * @param nextLink The nextLink from the previous successful call to the ListChatThreads method.\n * @param options The options parameters.\n */\n listChatThreadsNext(\n nextLink: string,\n options?: ChatListChatThreadsNextOptionalParams,\n ): Promise<ChatListChatThreadsNextResponse>;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chatThread.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/chatThread.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n ChatThreadListChatReadReceiptsOptionalParams,\n ChatThreadListChatReadReceiptsResponse,\n SendReadReceiptRequest,\n ChatThreadSendChatReadReceiptOptionalParams,\n SendChatMessageRequest,\n ChatThreadSendChatMessageOptionalParams,\n ChatThreadSendChatMessageResponse,\n ChatThreadListChatMessagesOptionalParams,\n ChatThreadListChatMessagesResponse,\n ChatThreadGetChatMessageOptionalParams,\n ChatThreadGetChatMessageResponse,\n UpdateChatMessageRequest,\n ChatThreadUpdateChatMessageOptionalParams,\n ChatThreadDeleteChatMessageOptionalParams,\n ChatThreadListChatParticipantsOptionalParams,\n ChatThreadListChatParticipantsResponse,\n CommunicationIdentifierModel,\n ChatThreadRemoveChatParticipantOptionalParams,\n AddChatParticipantsRequest,\n ChatThreadAddChatParticipantsOptionalParams,\n ChatThreadAddChatParticipantsResponse,\n UpdateChatThreadRequest,\n ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesOptionalParams,\n ChatThreadGetChatThreadPropertiesResponse,\n ChatThreadSendTypingNotificationOptionalParams,\n ChatThreadUploadChatImageOptionalParams,\n ChatThreadUploadChatImageResponse,\n ImageViewType,\n ChatThreadGetChatImageOptionalParams,\n ChatThreadGetChatImageResponse,\n ChatThreadDeleteChatImageOptionalParams,\n ChatThreadListChatReadReceiptsNextOptionalParams,\n ChatThreadListChatReadReceiptsNextResponse,\n ChatThreadListChatMessagesNextOptionalParams,\n ChatThreadListChatMessagesNextResponse,\n ChatThreadListChatParticipantsNextOptionalParams,\n ChatThreadListChatParticipantsNextResponse,\n} from \"../models\";\n\n/** Interface representing a ChatThread. */\nexport interface ChatThread {\n /**\n * Gets chat message read receipts for a thread.\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param options The options parameters.\n */\n listChatReadReceipts(\n chatThreadId: string,\n options?: ChatThreadListChatReadReceiptsOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsResponse>;\n /**\n * Sends a read receipt event to a thread, on behalf of a user.\n * @param chatThreadId Thread id to send the read receipt event to.\n * @param sendReadReceiptRequest Read receipt details.\n * @param options The options parameters.\n */\n sendChatReadReceipt(\n chatThreadId: string,\n sendReadReceiptRequest: SendReadReceiptRequest,\n options?: ChatThreadSendChatReadReceiptOptionalParams,\n ): Promise<void>;\n /**\n * Sends a message to a thread.\n * @param chatThreadId The thread id to send the message to.\n * @param sendChatMessageRequest Details of the message to send.\n * @param options The options parameters.\n */\n sendChatMessage(\n chatThreadId: string,\n sendChatMessageRequest: SendChatMessageRequest,\n options?: ChatThreadSendChatMessageOptionalParams,\n ): Promise<ChatThreadSendChatMessageResponse>;\n /**\n * Gets a list of messages from a thread.\n * @param chatThreadId The thread id of the message.\n * @param options The options parameters.\n */\n listChatMessages(\n chatThreadId: string,\n options?: ChatThreadListChatMessagesOptionalParams,\n ): Promise<ChatThreadListChatMessagesResponse>;\n /**\n * Gets a message by id.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n getChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadGetChatMessageOptionalParams,\n ): Promise<ChatThreadGetChatMessageResponse>;\n /**\n * Updates a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param updateChatMessageRequest Details of the request to update the message.\n * @param options The options parameters.\n */\n updateChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n updateChatMessageRequest: UpdateChatMessageRequest,\n options?: ChatThreadUpdateChatMessageOptionalParams,\n ): Promise<void>;\n /**\n * Deletes a message.\n * @param chatThreadId The thread id to which the message was sent.\n * @param chatMessageId The message id.\n * @param options The options parameters.\n */\n deleteChatMessage(\n chatThreadId: string,\n chatMessageId: string,\n options?: ChatThreadDeleteChatMessageOptionalParams,\n ): Promise<void>;\n /**\n * Gets the participants of a thread.\n * @param chatThreadId Thread id to get participants for.\n * @param options The options parameters.\n */\n listChatParticipants(\n chatThreadId: string,\n options?: ChatThreadListChatParticipantsOptionalParams,\n ): Promise<ChatThreadListChatParticipantsResponse>;\n /**\n * Remove a participant from a thread.\n * @param chatThreadId Thread id to remove the participant from.\n * @param participantCommunicationIdentifier Id of the thread participant to remove from the thread.\n * @param options The options parameters.\n */\n removeChatParticipant(\n chatThreadId: string,\n participantCommunicationIdentifier: CommunicationIdentifierModel,\n options?: ChatThreadRemoveChatParticipantOptionalParams,\n ): Promise<void>;\n /**\n * Adds thread participants to a thread. If participants already exist, no change occurs.\n * @param chatThreadId Id of the thread to add participants to.\n * @param addChatParticipantsRequest Thread participants to be added to the thread.\n * @param options The options parameters.\n */\n addChatParticipants(\n chatThreadId: string,\n addChatParticipantsRequest: AddChatParticipantsRequest,\n options?: ChatThreadAddChatParticipantsOptionalParams,\n ): Promise<ChatThreadAddChatParticipantsResponse>;\n /**\n * Updates a thread's properties.\n * @param chatThreadId The id of the thread to update.\n * @param updateChatThreadRequest Request payload for updating a chat thread.\n * @param options The options parameters.\n */\n updateChatThreadProperties(\n chatThreadId: string,\n updateChatThreadRequest: UpdateChatThreadRequest,\n options?: ChatThreadUpdateChatThreadPropertiesOptionalParams,\n ): Promise<void>;\n /**\n * Gets a chat thread's properties.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n getChatThreadProperties(\n chatThreadId: string,\n options?: ChatThreadGetChatThreadPropertiesOptionalParams,\n ): Promise<ChatThreadGetChatThreadPropertiesResponse>;\n /**\n * Posts a typing event to a thread, on behalf of a user.\n * @param chatThreadId Id of the thread.\n * @param options The options parameters.\n */\n sendTypingNotification(\n chatThreadId: string,\n options?: ChatThreadSendTypingNotificationOptionalParams,\n ): Promise<void>;\n /**\n * Upload an image in a thread, on behalf of a user.\n * @param chatThreadId Thread id where the uploaded image belongs to. (Teams meeting only)\n * @param chatImageFile Image binary data, allowed image formats: jpeg, png, gif, heic, webp\n * @param options The options parameters.\n */\n uploadChatImage(\n chatThreadId: string,\n chatImageFile: coreRestPipeline.RequestBodyType,\n options?: ChatThreadUploadChatImageOptionalParams,\n ): Promise<ChatThreadUploadChatImageResponse>;\n /**\n * Get an image by view type.\n * @param chatThreadId The thread id to which the message was sent.\n * @param imageId The image id.\n * @param imageViewType The view type of image.\n * @param options The options parameters.\n */\n getChatImage(\n chatThreadId: string,\n imageId: string,\n imageViewType: ImageViewType,\n options?: ChatThreadGetChatImageOptionalParams,\n ): Promise<ChatThreadGetChatImageResponse>;\n /**\n * Deletes a image.\n * @param chatThreadId The thread id to which the message was sent.\n * @param imageId The image id.\n * @param options The options parameters.\n */\n deleteChatImage(\n chatThreadId: string,\n imageId: string,\n options?: ChatThreadDeleteChatImageOptionalParams,\n ): Promise<void>;\n /**\n * ListChatReadReceiptsNext\n * @param chatThreadId Thread id to get the chat message read receipts for.\n * @param nextLink The nextLink from the previous successful call to the ListChatReadReceipts method.\n * @param options The options parameters.\n */\n listChatReadReceiptsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatReadReceiptsNextOptionalParams,\n ): Promise<ChatThreadListChatReadReceiptsNextResponse>;\n /**\n * ListChatMessagesNext\n * @param chatThreadId The thread id of the message.\n * @param nextLink The nextLink from the previous successful call to the ListChatMessages method.\n * @param options The options parameters.\n */\n listChatMessagesNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatMessagesNextOptionalParams,\n ): Promise<ChatThreadListChatMessagesNextResponse>;\n /**\n * ListChatParticipantsNext\n * @param chatThreadId Thread id to get participants for.\n * @param nextLink The nextLink from the previous successful call to the ListChatParticipants method.\n * @param options The options parameters.\n */\n listChatParticipantsNext(\n chatThreadId: string,\n nextLink: string,\n options?: ChatThreadListChatParticipantsNextOptionalParams,\n ): Promise<ChatThreadListChatParticipantsNextResponse>;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./chatThread\";\nexport * from \"./chat\";\n"]}
@@ -1,9 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export * from "./models/options";
4
- export * from "./models/requests";
5
- export * from "./models/models";
6
- export * from "./models/events";
7
- export * from "./chatClient";
8
- export * from "./chatThreadClient";
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from \"./models/options\";\nexport * from \"./models/requests\";\nexport * from \"./models/models\";\nexport * from \"./models/events\";\nexport * from \"./chatClient\";\nexport * from \"./chatThreadClient\";\n"]}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/models/events.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n ChatMessageDeletedEvent,\n ChatMessageEditedEvent,\n ChatMessageReceivedEvent,\n ChatThreadCreatedEvent,\n ChatThreadDeletedEvent,\n ChatThreadPropertiesUpdatedEvent,\n ParticipantsAddedEvent,\n ParticipantsRemovedEvent,\n ReadReceiptReceivedEvent,\n TypingIndicatorReceivedEvent,\n} from \"@azure/communication-signaling\";\n\ntype ChatEventId =\n | \"chatMessageReceived\"\n | \"chatMessageEdited\"\n | \"chatMessageDeleted\"\n | \"typingIndicatorReceived\"\n | \"readReceiptReceived\"\n | \"chatThreadCreated\"\n | \"chatThreadDeleted\"\n | \"chatThreadPropertiesUpdated\"\n | \"participantsAdded\"\n | \"participantsRemoved\"\n | \"realTimeNotificationConnected\"\n | \"realTimeNotificationDisconnected\";\n\nexport {\n ChatEventId,\n ChatMessageReceivedEvent,\n ChatMessageEditedEvent,\n ChatMessageDeletedEvent,\n ReadReceiptReceivedEvent,\n TypingIndicatorReceivedEvent,\n ChatThreadCreatedEvent,\n ChatThreadDeletedEvent,\n ChatThreadPropertiesUpdatedEvent,\n ParticipantsAddedEvent,\n ParticipantsRemovedEvent,\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAEL,kCAAkC,EAClC,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAgBrC,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACnD,OAAgC,EACc,EAAE;IAChD,MAAM,EAAE,YAAY,EAAE,gBAAgB,KAAc,OAAO,EAAhB,IAAI,UAAK,OAAO,EAArD,oCAA2C,CAAU,CAAC;IAC5D,uBACE,sBAAsB,EAAE,gBAAgB,IACrC,IAAI,EACP;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,eAAgC,EACL,EAAE;IAC7B,MAAM,EAAE,EAAE,KAAc,eAAe,EAAxB,IAAI,UAAK,eAAe,EAAjC,MAAe,CAAkB,CAAC;IACxC,uCACK,IAAI,KACP,uBAAuB,EAAE,gCAAgC,CAAC,EAAE,CAAC,IAC7D;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACtD,sBAA8C,EACR,EAAE;;IACxC,OAAO;QACL,YAAY,EAAE,MAAA,sBAAsB,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CACrE,6BAA6B,CAAC,WAAW,CAAC,CAC3C;KACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,cAA8B,EACJ,EAAE;IAC5B,MAAM,EAA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H,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,WAA6C,EACrB,EAAE;IAC1B,MAAM,EAAE,6BAA6B,KAAc,WAAW,EAApB,IAAI,UAAK,WAAW,EAAxD,iCAA0C,CAAc,CAAC;IAC/D,uCACK,IAAI,KACP,MAAM,EAAE,kCAAkC,CACxC,6BAAkE,CACnE,IACD;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n SerializedCommunicationIdentifier,\n deserializeCommunicationIdentifier,\n serializeCommunicationIdentifier,\n} from \"@azure/communication-common\";\nimport * as RestModel from \"../generated/src/models\";\nimport { AddParticipantsRequest, SendMessageRequest } from \"./requests\";\nimport { CreateChatThreadOptions, SendMessageOptions, UpdateMessageOptions } from \"./options\";\nimport {\n ChatAttachment,\n ChatMessage,\n ChatMessageContent,\n ChatMessageReadReceipt,\n ChatParticipant,\n ChatRetentionPolicy,\n ChatThreadProperties,\n CreateChatThreadResult,\n PolicyViolation,\n} from \"./models\";\n\nexport const mapToCreateChatThreadOptionsRestModel = (\n options: CreateChatThreadOptions,\n): RestModel.ChatCreateChatThreadOptionalParams => {\n const { participants, idempotencyToken, ...rest } = options;\n return {\n repeatabilityRequestId: idempotencyToken,\n ...rest,\n };\n};\n\n/**\n * @internal\n * Mapping chat participant customer model to chat participant REST model\n */\nexport const mapToChatParticipantRestModel = (\n chatParticipant: ChatParticipant,\n): RestModel.ChatParticipant => {\n const { id, ...rest } = chatParticipant;\n return {\n ...rest,\n communicationIdentifier: serializeCommunicationIdentifier(id),\n };\n};\n\n/**\n * @internal\n * Mapping add participants request to add chat participants request REST model\n */\nexport const mapToAddChatParticipantsRequestRestModel = (\n addParticipantsRequest: AddParticipantsRequest,\n): RestModel.AddChatParticipantsRequest => {\n return {\n participants: addParticipantsRequest.participants?.map((participant) =>\n mapToChatParticipantRestModel(participant),\n ),\n };\n};\n\n/**\n * @internal\n * Mapping chat attachment SDK model to chat attachment REST model\n */\nexport const mapToChatAttachmentRestModel = (\n chatAttachment: ChatAttachment,\n): RestModel.ChatAttachment => {\n const { attachmentType, ...rest } = chatAttachment;\n if (attachmentType === \"unknown\") {\n throw new Error(\"'unknown' attachmentType not supported\");\n }\n return {\n ...rest,\n attachmentType: attachmentType,\n };\n};\n\n/**\n * @internal\n * Mapping send message request and options to send chat message request REST model\n */\nexport const mapToSendChatMessageRequestRestModel = (\n sendMessageRequest: SendMessageRequest,\n sendMessageOptions: SendMessageOptions,\n): RestModel.SendChatMessageRequest => {\n const { attachments, ...restOptions } = sendMessageOptions;\n let request: RestModel.SendChatMessageRequest = { ...sendMessageRequest, ...restOptions };\n if (attachments) {\n request = {\n ...request,\n attachments: attachments?.map((attachment) => mapToChatAttachmentRestModel(attachment)),\n };\n }\n return request;\n};\n\n/**\n * @internal\n * Mapping update message options to update chat message request REST model\n */\nexport const mapToUpdateChatMessageRequestRestModel = (\n updateMessageOptions: UpdateMessageOptions,\n): RestModel.UpdateChatMessageRequest => {\n const { attachments, ...restOptions } = updateMessageOptions;\n let request: RestModel.UpdateChatMessageRequest = { ...restOptions };\n if (attachments) {\n request = {\n ...request,\n attachments: attachments?.map((attachment) => mapToChatAttachmentRestModel(attachment)),\n };\n }\n return request;\n};\n\n/**\n * @internal\n * Mapping chat participant REST model to chat participant SDK model\n */\nexport const mapToChatParticipantSdkModel = (\n chatParticipant: RestModel.ChatParticipant,\n): ChatParticipant => {\n const { communicationIdentifier, ...rest } = chatParticipant;\n return {\n ...rest,\n id: deserializeCommunicationIdentifier(\n communicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n};\n\n/**\n * @internal\n * Mapping chat attachment REST model to chat attachment SDK model\n */\nexport const mapToChatAttachmentSdkModel = (\n chatAttachment: RestModel.ChatAttachment,\n): ChatAttachment => {\n const { attachmentType, ...rest } = chatAttachment;\n return {\n ...rest,\n attachmentType: attachmentType,\n };\n};\n\n/**\n * @internal\n */\nexport const mapToChatContentSdkModel = (\n content: RestModel.ChatMessageContent,\n): ChatMessageContent => {\n const { participants, attachments, initiatorCommunicationIdentifier, ...otherChatContents } =\n content;\n let result: ChatMessageContent = { ...otherChatContents };\n if (initiatorCommunicationIdentifier) {\n const initiator = deserializeCommunicationIdentifier(\n initiatorCommunicationIdentifier as SerializedCommunicationIdentifier,\n );\n result = { ...result, initiator };\n }\n if (participants) {\n result = {\n ...result,\n participants: participants?.map((participant) => mapToChatParticipantSdkModel(participant)),\n };\n }\n if (attachments) {\n result = {\n ...result,\n attachments: attachments?.map((attachment) => mapToChatAttachmentSdkModel(attachment)),\n };\n }\n return result;\n};\n\n/**\n * @internal\n */\nexport const mapToChatPolicyViolationSdkModel = (\n policyVolation: RestModel.PolicyViolation,\n): PolicyViolation => {\n const { state } = policyVolation;\n const result: PolicyViolation = {\n result: state,\n };\n return result;\n};\n\n/**\n * @internal\n * Mapping chat message REST model to chat message SDK model\n */\nexport const mapToChatMessageSdkModel = (chatMessage: RestModel.ChatMessage): ChatMessage => {\n const { content, senderCommunicationIdentifier, policyViolation, ...otherChatMessage } =\n chatMessage;\n let result: ChatMessage = { ...otherChatMessage };\n if (content) {\n result = {\n ...result,\n content: mapToChatContentSdkModel(content),\n };\n }\n if (senderCommunicationIdentifier) {\n const sender = deserializeCommunicationIdentifier(\n senderCommunicationIdentifier as SerializedCommunicationIdentifier,\n );\n result = { ...result, sender };\n }\n if (policyViolation) {\n result = {\n ...result,\n policyViolation: mapToChatPolicyViolationSdkModel(policyViolation),\n };\n }\n return result;\n};\n\n/**\n * @internal\n * Mapping chat messages collection REST model to chat message SDK model array\n */\nexport const mapToChatMessagesSdkModelArray = (\n chatMessagesCollection: RestModel.ChatMessagesCollection,\n): ChatMessage[] => {\n return chatMessagesCollection.value?.map((chatMessage) => mapToChatMessageSdkModel(chatMessage));\n};\n\n/**\n * @internal\n * Mapping chat retention policy REST model to chat retention policy SDK model\n */\nexport const mapToRetentionPolicySdkModel = (\n retentionPolicy: RestModel.ChatRetentionPolicyUnion,\n): ChatRetentionPolicy => {\n if (retentionPolicy.kind === \"threadCreationDate\") {\n return retentionPolicy as RestModel.ThreadCreationDateRetentionPolicy;\n }\n if (retentionPolicy.kind === \"none\") {\n return retentionPolicy as RestModel.NoneRetentionPolicy;\n } else {\n throw new Error(`Retention Policy ${retentionPolicy.kind} is not supported`);\n }\n};\n\n/**\n * @internal\n * Mapping chat thread REST model to chat thread SDK model\n */\nexport const mapToChatThreadPropertiesSdkModel = (\n chatThread: RestModel.ChatThreadProperties,\n): ChatThreadProperties => {\n const { createdByCommunicationIdentifier, retentionPolicy, ...rest } = chatThread;\n let result: ChatThreadProperties = { ...rest };\n if (createdByCommunicationIdentifier) {\n result = {\n ...result,\n createdBy: deserializeCommunicationIdentifier(\n createdByCommunicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n }\n\n if (retentionPolicy) {\n result = {\n ...result,\n retentionPolicy: mapToRetentionPolicySdkModel(retentionPolicy),\n };\n }\n\n return result;\n};\n\n/**\n * @internal\n * Mapping chat thread REST model to chat thread SDK model\n */\nexport const mapToCreateChatThreadResultSdkModel = (\n result: RestModel.CreateChatThreadResult,\n): CreateChatThreadResult => {\n const { chatThread, ...rest } = result;\n if (chatThread) {\n return {\n ...rest,\n chatThread: mapToChatThreadPropertiesSdkModel(chatThread),\n };\n } else {\n return { ...rest };\n }\n};\n\n/**\n * @internal\n * Mapping read receipt REST model to read receipt SDK model\n */\nexport const mapToReadReceiptSdkModel = (\n readReceipt: RestModel.ChatMessageReadReceipt,\n): ChatMessageReadReceipt => {\n const { senderCommunicationIdentifier, ...rest } = readReceipt;\n return {\n ...rest,\n sender: deserializeCommunicationIdentifier(\n senderCommunicationIdentifier as SerializedCommunicationIdentifier,\n ),\n };\n};\n"]}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=models.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationIdentifier, CommunicationIdentifierKind } from \"@azure/communication-common\";\nimport { ChatError, ChatMessageType } from \"../generated/src\";\n\nexport {\n AddChatParticipantsResult,\n ChatMessageType,\n ChatThreadItem,\n ChatError,\n SendChatMessageResult,\n} from \"../generated/src/models\";\n\n/** Chat thread. */\nexport interface ChatThreadProperties {\n /** Chat thread id. */\n id: string;\n /** Chat thread topic. */\n topic: string;\n /** The timestamp when the chat thread was created. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n readonly createdBy?: CommunicationIdentifierKind;\n /** The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /** metadata */\n metadata?: Record<string, string>;\n /** Data retention policy for auto deletion. */\n retentionPolicy?: ChatRetentionPolicy;\n /** Messaging policy for a chat thread. */\n messagingPolicy?: MessagingPolicy;\n}\n\n/** Thread retention policy based on thread creation date. */\nexport interface ThreadCreationDateRetentionPolicy {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: \"threadCreationDate\";\n /** Indicates how many days after the thread creation the thread will be deleted. */\n deleteThreadAfterDays: number;\n}\n\n/** No thread retention policy. */\nexport interface NoneRetentionPolicy {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: \"none\";\n}\n\n/** Data retention policy for auto deletion. */\nexport declare type ChatRetentionPolicy = ThreadCreationDateRetentionPolicy | NoneRetentionPolicy;\n\n/** Chat message. */\nexport interface ChatMessage {\n /** The id of the chat message. This id is server generated. */\n id: string;\n /** The chat message type. */\n type: ChatMessageType;\n /** Sequence of the chat message in the conversation. */\n sequenceId: string;\n /** Version of the chat message. */\n version: string;\n /** Content of a chat message. */\n content?: ChatMessageContent;\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The timestamp when the chat message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n createdOn: Date;\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n sender?: CommunicationIdentifierKind;\n /** The timestamp (if applicable) when the message was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n deletedOn?: Date;\n /** The last timestamp (if applicable) when the message was edited. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n editedOn?: Date;\n /** metadata */\n metadata?: Record<string, string>;\n /** Policy Violation of a chat message. */\n policyViolation?: PolicyViolation;\n}\n\n/** Content of a chat message. */\nexport interface ChatMessageContent {\n /** Chat message content for messages of types text or html. */\n message?: string;\n /** Chat message content for messages of type topicUpdated. */\n topic?: string;\n /** Chat message content for messages of types participantAdded or participantRemoved. */\n participants?: ChatParticipant[];\n /** List of attachments for this message */\n attachments?: ChatAttachment[];\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n initiator?: CommunicationIdentifierKind;\n}\n\n/** An attachment in a chat message. */\nexport interface ChatAttachment {\n /** Id of the attachment */\n id: string;\n /** The type of attachment. */\n attachmentType: ChatAttachmentType;\n /** The name of the attachment content. */\n name?: string;\n /** The URL where the attachment can be downloaded */\n url?: string;\n /** The URL where the preview of attachment can be downloaded */\n previewUrl?: string;\n}\n\n/** A chat message read receipt indicates the time a chat message was read by a recipient. */\nexport interface ChatMessageReadReceipt {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n sender: CommunicationIdentifierKind;\n /** Id of the chat message that has been read. This id is generated by the server. */\n chatMessageId: string;\n /** The time at which the message was read. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n readOn: Date;\n}\n\n/** A participant of the chat thread. */\nexport interface ChatParticipant {\n /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */\n id: CommunicationIdentifier;\n /** Display name for the chat participant. */\n displayName?: string;\n /** Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. */\n shareHistoryTime?: Date;\n /** metadata */\n metadata?: Record<string, string>;\n}\n\n/** Result of the create chat thread operation. */\nexport interface CreateChatThreadResult {\n /** Chat thread. */\n chatThread?: ChatThreadProperties;\n /**\n * The participants that failed to be added to the chat thread.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly invalidParticipants?: ChatError[];\n}\n\n/**\n * Arguments for retrieving the next page of search results.\n */\nexport interface ListPageSettings {\n /**\n * A token used for retrieving the next page of results when the server\n * enforces pagination.\n */\n continuationToken?: string;\n}\n\n/** Result payload for uploading an image. */\nexport interface UploadChatImageResult {\n /** Id of the image. */\n id: string;\n /** The type of attachment. */\n attachmentType?: ChatAttachmentType;\n /** The name including file extension type of the attachment. */\n name?: string;\n}\n\n/** Type of Supported Attachments. */\nexport type ChatAttachmentType = \"image\" | \"file\" | \"unknown\";\n\n/** Result of Policy Violation message. */\nexport type PolicyViolationMessageResult = \"contentBlocked\" | \"warning\";\n\n/** Policy violation of a message (if applicable). */\nexport interface PolicyViolation {\n /** Result of Policy Violation message. */\n result: PolicyViolationMessageResult;\n}\n\n/** Messaging policy of a chat thread. */\nexport interface MessagingPolicy {\n /** Boolean to track whether or not messages is restricted to only text. */\n textOnlyChat?: boolean;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { CommonClientOptions, OperationOptions } from \"@azure/core-client\";\nimport {\n ChatMessageType,\n ChatListChatThreadsOptionalParams as RestListChatThreadsOptions,\n ChatThreadListChatMessagesOptionalParams as RestListMessagesOptions,\n ChatThreadListChatParticipantsOptionalParams as RestListParticipantsOptions,\n ChatThreadListChatReadReceiptsOptionalParams as RestListReadReceiptsOptions,\n} from \"../generated/src/models\";\nimport { ChatAttachment, ChatParticipant, ChatRetentionPolicy } from \"./models\";\n\nexport {\n RestListMessagesOptions,\n RestListChatThreadsOptions,\n RestListParticipantsOptions,\n RestListReadReceiptsOptions,\n};\n\n/**\n * Options to create chat client.\n */\nexport interface ChatClientOptions extends CommonClientOptions {}\n\n/**\n * Options to create chat thread client.\n */\nexport interface ChatThreadClientOptions extends ChatClientOptions {}\n\n/**\n * Options to update a chat thread.\n */\nexport interface UpdateTopicOptions extends OperationOptions {}\n\n/**\n * Options to update a chat thread.\n */\nexport interface UpdateChatThreadPropertiesOptions extends OperationOptions {\n /** Thread topic. */\n topic?: string;\n /** Thread metadata. */\n metadata?: Record<string, string>;\n /** Data retention policy for auto deletion. */\n retentionPolicy?: ChatRetentionPolicy;\n}\n\n/**\n * Options to get chat threads.\n */\nexport type ListChatThreadsOptions = RestListChatThreadsOptions;\n\n/**\n * Options to send a chat message.\n */\nexport interface SendMessageOptions extends OperationOptions {\n /** The display name of the chat message sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n /** The chat message type. */\n type?: ChatMessageType;\n /** Message metadata. */\n metadata?: Record<string, string>;\n /** Message attachments. */\n attachments?: ChatAttachment[];\n}\n\n/**\n * Options to update a chat message.\n */\nexport interface UpdateMessageOptions extends OperationOptions {\n /** Chat message content. */\n content?: string;\n /** Message metadata. */\n metadata?: Record<string, string>;\n /** Message attachments. */\n attachments?: ChatAttachment[];\n}\n\n/**\n * Options to list chat messages.\n */\nexport type ListMessagesOptions = RestListMessagesOptions;\n\n/**\n * Options to create a chat thread.\n */\nexport interface CreateChatThreadOptions extends OperationOptions {\n /** Participants to be added to the chat thread. */\n participants?: ChatParticipant[];\n /** If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Idempotency-Token and get back an appropriate response without the server executing the request multiple times. The value of the Idempotency-Token is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. */\n idempotencyToken?: string;\n /** metadata */\n metadata?: Record<string, string>;\n /** Data retention policy for auto deletion. */\n retentionPolicy?: ChatRetentionPolicy;\n}\n\n/**\n * Options to get a chat thread.\n */\nexport type GetPropertiesOptions = OperationOptions;\n\n/**\n * Options to delete a chat thread.\n */\nexport type DeleteChatThreadOptions = OperationOptions;\n\n/**\n * Options to get a chat message.\n */\nexport type GetMessageOptions = OperationOptions;\n\n/**\n * Options to delete a chat message.\n */\nexport type DeleteMessageOptions = OperationOptions;\n\n/**\n * Options to add a chat participant.\n */\nexport type AddParticipantsOptions = OperationOptions;\n\n/**\n * Options to list chat participants.\n */\nexport type ListParticipantsOptions = RestListParticipantsOptions;\n\n/**\n * Options to remove a chat participant.\n */\nexport type RemoveParticipantOptions = OperationOptions;\n\n/**\n * Options to send typing notifications.\n */\nexport interface SendTypingNotificationOptions extends OperationOptions {\n /** The display name of the typing notification sender. This property is used to populate sender name for push notifications. */\n senderDisplayName?: string;\n}\n\n/**\n * Options to send read receipt.\n */\nexport type SendReadReceiptOptions = OperationOptions;\n\n/**\n * Options to list read receipts.\n */\nexport type ListReadReceiptsOptions = RestListReadReceiptsOptions;\n\n/**\n * Options to upload a chat image.\n */\nexport interface UploadImageOptions extends OperationOptions {\n /** Image blob size in bytes. */\n imageBytesLength?: number;\n}\n\n/**\n * Options to upload a chat image stream.\n */\nexport type UploadImageStreamOptions = OperationOptions;\n\n/**\n * Options to delete a chat image.\n */\nexport type DeleteImageOptions = OperationOptions;\n"]}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=requests.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../src/models/requests.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { ChatParticipant } from \"./models\";\n\nexport { SendReadReceiptRequest } from \"../generated/src/models\";\n\n/** Participants to be added to the thread. */\nexport interface AddParticipantsRequest {\n /** Participants to add to a chat thread. */\n participants: ChatParticipant[];\n}\n\n/** Request payload for creating a chat thread. */\nexport interface CreateChatThreadRequest {\n /** The chat thread topic. */\n topic: string;\n}\n\n/** Details of the message to send. */\nexport interface SendMessageRequest {\n /** Chat message content. */\n content: string;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../../src/models/uuid.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,MAAM,EAAE,CAAC;AAClB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { v4 as uuidv4 } from \"uuid\";\n\n/**\n * Generated Universally Unique Identifier\n *\n * @returns RFC4122 v4 UUID.\n * @internal\n */\nexport function generateUuid(): string {\n return uuidv4();\n}\n"]}
@@ -1,12 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { CommunicationSignalingClient } from "@azure/communication-signaling";
4
- export const getSignalingClient = (credential, logger, options) => {
5
- var _a, _b, _c;
6
- return new CommunicationSignalingClient(credential, logger, {
7
- environment: (_a = options === null || options === void 0 ? void 0 : options.environment) !== null && _a !== void 0 ? _a : undefined,
8
- resourceEndpoint: (_b = options === null || options === void 0 ? void 0 : options.resourceEndpoint) !== null && _b !== void 0 ? _b : undefined,
9
- gatewayApiVersion: (_c = options === null || options === void 0 ? void 0 : options.gatewayApiVersion) !== null && _c !== void 0 ? _c : undefined,
10
- });
11
- };
12
- //# sourceMappingURL=signalingClient.browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signalingClient.browser.js","sourceRoot":"","sources":["../../../src/signaling/signalingClient.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,4BAA4B,EAAmB,MAAM,gCAAgC,CAAC;AAK/F,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,UAAwC,EACxC,MAAmB,EACnB,OAAgC,EACH,EAAE;;IAC/B,OAAO,IAAI,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE;QAC1D,WAAW,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,SAAS;QAC9C,gBAAgB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,SAAS;QACxD,iBAAiB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,SAAS;KAC3D,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationSignalingClient, SignalingClient } from \"@azure/communication-signaling\";\nimport { CommunicationTokenCredential } from \"@azure/communication-common\";\nimport { AzureLogger } from \"@azure/logger\";\nimport { SignalingClientOptions } from \"./signalingClient\";\n\nexport const getSignalingClient = (\n credential: CommunicationTokenCredential,\n logger: AzureLogger,\n options?: SignalingClientOptions,\n): SignalingClient | undefined => {\n return new CommunicationSignalingClient(credential, logger, {\n environment: options?.environment ?? undefined,\n resourceEndpoint: options?.resourceEndpoint ?? undefined,\n gatewayApiVersion: options?.gatewayApiVersion ?? undefined,\n });\n};\n"]}
@@ -1,17 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { CommunicationSignalingClient } from "@azure/communication-signaling";
4
- export const getSignalingClient = (credential, logger, options) => {
5
- var _a, _b, _c;
6
- if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
7
- // In React Native
8
- return new CommunicationSignalingClient(credential, logger, {
9
- environment: (_a = options === null || options === void 0 ? void 0 : options.environment) !== null && _a !== void 0 ? _a : undefined,
10
- resourceEndpoint: (_b = options === null || options === void 0 ? void 0 : options.resourceEndpoint) !== null && _b !== void 0 ? _b : undefined,
11
- gatewayApiVersion: (_c = options === null || options === void 0 ? void 0 : options.gatewayApiVersion) !== null && _c !== void 0 ? _c : undefined,
12
- });
13
- }
14
- // In node js
15
- return undefined;
16
- };
17
- //# sourceMappingURL=signalingClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signalingClient.js","sourceRoot":"","sources":["../../../src/signaling/signalingClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,4BAA4B,EAAmB,MAAM,gCAAgC,CAAC;AAU/F,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,UAAwC,EACxC,MAAmB,EACnB,OAAgC,EACH,EAAE;;IAC/B,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,CAAC,OAAO,KAAK,aAAa,EAAE,CAAC;QAC5E,kBAAkB;QAClB,OAAO,IAAI,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE;YAC1D,WAAW,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,SAAS;YAC9C,gBAAgB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,SAAS;YACxD,iBAAiB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,mCAAI,SAAS;SAC3D,CAAC,CAAC;IACL,CAAC;IAED,aAAa;IACb,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationSignalingClient, SignalingClient } from \"@azure/communication-signaling\";\nimport { CommunicationTokenCredential } from \"@azure/communication-common\";\nimport { AzureLogger } from \"@azure/logger\";\n\nexport interface SignalingClientOptions {\n environment?: string;\n resourceEndpoint?: string;\n gatewayApiVersion?: string;\n}\n\nexport const getSignalingClient = (\n credential: CommunicationTokenCredential,\n logger: AzureLogger,\n options?: SignalingClientOptions,\n): SignalingClient | undefined => {\n if (typeof navigator !== \"undefined\" && navigator.product === \"ReactNative\") {\n // In React Native\n return new CommunicationSignalingClient(credential, logger, {\n environment: options?.environment ?? undefined,\n resourceEndpoint: options?.resourceEndpoint ?? undefined,\n gatewayApiVersion: options?.gatewayApiVersion ?? undefined,\n });\n }\n\n // In node js\n return undefined;\n};\n"]}