@azure/communication-call-automation 1.6.0-alpha.20250711.2 → 1.6.0-beta.1

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 (477) hide show
  1. package/README.md +0 -48
  2. package/dist/browser/callAutomationClient.d.ts +0 -8
  3. package/dist/browser/callAutomationClient.d.ts.map +1 -1
  4. package/dist/browser/callAutomationClient.js +87 -141
  5. package/dist/browser/callAutomationClient.js.map +1 -1
  6. package/dist/browser/callAutomationEventParser.d.ts.map +1 -1
  7. package/dist/browser/callAutomationEventParser.js +22 -54
  8. package/dist/browser/callAutomationEventParser.js.map +1 -1
  9. package/dist/browser/callConnection.d.ts +12 -14
  10. package/dist/browser/callConnection.d.ts.map +1 -1
  11. package/dist/browser/callConnection.js +111 -183
  12. package/dist/browser/callConnection.js.map +1 -1
  13. package/dist/browser/callMedia.d.ts +15 -20
  14. package/dist/browser/callMedia.d.ts.map +1 -1
  15. package/dist/browser/callMedia.js +58 -177
  16. package/dist/browser/callMedia.js.map +1 -1
  17. package/dist/browser/callRecording.d.ts +2 -8
  18. package/dist/browser/callRecording.d.ts.map +1 -1
  19. package/dist/browser/callRecording.js +16 -26
  20. package/dist/browser/callRecording.js.map +1 -1
  21. package/dist/browser/contentDownloader.js +11 -12
  22. package/dist/browser/contentDownloader.js.map +1 -1
  23. package/dist/browser/credential/callAutomationAccessKeyCredentialPolicy.js +1 -2
  24. package/dist/browser/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
  25. package/dist/browser/credential/callAutomationAuthPolicy.js +1 -1
  26. package/dist/browser/credential/callAutomationAuthPolicy.js.map +1 -1
  27. package/dist/browser/credential/cryptoUtils-browser.mjs.map +1 -1
  28. package/dist/browser/credential/cryptoUtils.js +1 -2
  29. package/dist/browser/generated/src/callAutomationApiClient.d.ts +1 -2
  30. package/dist/browser/generated/src/callAutomationApiClient.d.ts.map +1 -1
  31. package/dist/browser/generated/src/callAutomationApiClient.js +14 -6
  32. package/dist/browser/generated/src/callAutomationApiClient.js.map +1 -1
  33. package/dist/browser/generated/src/models/index.d.ts +534 -1064
  34. package/dist/browser/generated/src/models/index.d.ts.map +1 -1
  35. package/dist/browser/generated/src/models/index.js +87 -159
  36. package/dist/browser/generated/src/models/index.js.map +1 -1
  37. package/dist/browser/generated/src/models/mappers.d.ts +58 -86
  38. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
  39. package/dist/browser/generated/src/models/mappers.js +1173 -2159
  40. package/dist/browser/generated/src/models/mappers.js.map +1 -1
  41. package/dist/browser/generated/src/models/parameters.d.ts +2 -7
  42. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -1
  43. package/dist/browser/generated/src/models/parameters.js +10 -41
  44. package/dist/browser/generated/src/models/parameters.js.map +1 -1
  45. package/dist/browser/generated/src/operations/callConnection.d.ts +2 -9
  46. package/dist/browser/generated/src/operations/callConnection.d.ts.map +1 -1
  47. package/dist/browser/generated/src/operations/callConnection.js +24 -73
  48. package/dist/browser/generated/src/operations/callConnection.js.map +1 -1
  49. package/dist/browser/generated/src/operations/callMedia.d.ts +15 -15
  50. package/dist/browser/generated/src/operations/callMedia.d.ts.map +1 -1
  51. package/dist/browser/generated/src/operations/callMedia.js +51 -50
  52. package/dist/browser/generated/src/operations/callMedia.js.map +1 -1
  53. package/dist/browser/generated/src/operations/callRecording.d.ts +1 -7
  54. package/dist/browser/generated/src/operations/callRecording.d.ts.map +1 -1
  55. package/dist/browser/generated/src/operations/callRecording.js +1 -24
  56. package/dist/browser/generated/src/operations/callRecording.js.map +1 -1
  57. package/dist/browser/generated/src/operations/index.d.ts +0 -1
  58. package/dist/browser/generated/src/operations/index.d.ts.map +1 -1
  59. package/dist/browser/generated/src/operations/index.js +0 -1
  60. package/dist/browser/generated/src/operations/index.js.map +1 -1
  61. package/dist/browser/generated/src/operationsInterfaces/callConnection.d.ts +2 -9
  62. package/dist/browser/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  63. package/dist/browser/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  64. package/dist/browser/generated/src/operationsInterfaces/callMedia.d.ts +15 -15
  65. package/dist/browser/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  66. package/dist/browser/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  67. package/dist/browser/generated/src/operationsInterfaces/callRecording.d.ts +1 -7
  68. package/dist/browser/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
  69. package/dist/browser/generated/src/operationsInterfaces/callRecording.js.map +1 -1
  70. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +0 -1
  71. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  72. package/dist/browser/generated/src/operationsInterfaces/index.js +0 -1
  73. package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -1
  74. package/dist/browser/generated/src/pagingHelper.js +2 -4
  75. package/dist/browser/generated/src/pagingHelper.js.map +1 -1
  76. package/dist/browser/index.d.ts +0 -2
  77. package/dist/browser/index.d.ts.map +1 -1
  78. package/dist/browser/index.js +0 -2
  79. package/dist/browser/index.js.map +1 -1
  80. package/dist/browser/models/constants.js +1 -1
  81. package/dist/browser/models/constants.js.map +1 -1
  82. package/dist/browser/models/events.d.ts +136 -195
  83. package/dist/browser/models/events.d.ts.map +1 -1
  84. package/dist/browser/models/events.js.map +1 -1
  85. package/dist/browser/models/models.d.ts +76 -39
  86. package/dist/browser/models/models.d.ts.map +1 -1
  87. package/dist/browser/models/models.js +1 -3
  88. package/dist/browser/models/models.js.map +1 -1
  89. package/dist/browser/models/options.d.ts +64 -30
  90. package/dist/browser/models/options.d.ts.map +1 -1
  91. package/dist/browser/models/options.js.map +1 -1
  92. package/dist/browser/models/responses.d.ts +19 -82
  93. package/dist/browser/models/responses.d.ts.map +1 -1
  94. package/dist/browser/models/responses.js.map +1 -1
  95. package/dist/browser/models/streaming.d.ts +38 -28
  96. package/dist/browser/models/streaming.d.ts.map +1 -1
  97. package/dist/browser/models/streaming.js +28 -57
  98. package/dist/browser/models/streaming.js.map +1 -1
  99. package/dist/browser/streamingData.d.ts.map +1 -1
  100. package/dist/browser/streamingData.js +15 -1
  101. package/dist/browser/streamingData.js.map +1 -1
  102. package/dist/browser/utli/converters.d.ts +1 -1
  103. package/dist/browser/utli/converters.d.ts.map +1 -1
  104. package/dist/browser/utli/converters.js +48 -9
  105. package/dist/browser/utli/converters.js.map +1 -1
  106. package/dist/commonjs/callAutomationClient.d.ts +0 -8
  107. package/dist/commonjs/callAutomationClient.d.ts.map +1 -1
  108. package/dist/commonjs/callAutomationClient.js +85 -139
  109. package/dist/commonjs/callAutomationClient.js.map +1 -1
  110. package/dist/commonjs/callAutomationEventParser.d.ts.map +1 -1
  111. package/dist/commonjs/callAutomationEventParser.js +21 -53
  112. package/dist/commonjs/callAutomationEventParser.js.map +1 -1
  113. package/dist/commonjs/callConnection.d.ts +12 -14
  114. package/dist/commonjs/callConnection.d.ts.map +1 -1
  115. package/dist/commonjs/callConnection.js +113 -185
  116. package/dist/commonjs/callConnection.js.map +1 -1
  117. package/dist/commonjs/callMedia.d.ts +15 -20
  118. package/dist/commonjs/callMedia.d.ts.map +1 -1
  119. package/dist/commonjs/callMedia.js +66 -185
  120. package/dist/commonjs/callMedia.js.map +1 -1
  121. package/dist/commonjs/callRecording.d.ts +2 -8
  122. package/dist/commonjs/callRecording.d.ts.map +1 -1
  123. package/dist/commonjs/callRecording.js +17 -27
  124. package/dist/commonjs/callRecording.js.map +1 -1
  125. package/dist/commonjs/contentDownloader.js +11 -12
  126. package/dist/commonjs/contentDownloader.js.map +1 -1
  127. package/dist/commonjs/credential/callAutomationAccessKeyCredentialPolicy.js +1 -2
  128. package/dist/commonjs/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
  129. package/dist/commonjs/credential/callAutomationAuthPolicy.js +1 -1
  130. package/dist/commonjs/credential/callAutomationAuthPolicy.js.map +1 -1
  131. package/dist/commonjs/generated/src/callAutomationApiClient.d.ts +1 -2
  132. package/dist/commonjs/generated/src/callAutomationApiClient.d.ts.map +1 -1
  133. package/dist/commonjs/generated/src/callAutomationApiClient.js +13 -5
  134. package/dist/commonjs/generated/src/callAutomationApiClient.js.map +1 -1
  135. package/dist/commonjs/generated/src/models/index.d.ts +534 -1064
  136. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
  137. package/dist/commonjs/generated/src/models/index.js +88 -160
  138. package/dist/commonjs/generated/src/models/index.js.map +1 -1
  139. package/dist/commonjs/generated/src/models/mappers.d.ts +58 -86
  140. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
  141. package/dist/commonjs/generated/src/models/mappers.js +1176 -2162
  142. package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
  143. package/dist/commonjs/generated/src/models/parameters.d.ts +2 -7
  144. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -1
  145. package/dist/commonjs/generated/src/models/parameters.js +10 -41
  146. package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
  147. package/dist/commonjs/generated/src/operations/callConnection.d.ts +2 -9
  148. package/dist/commonjs/generated/src/operations/callConnection.d.ts.map +1 -1
  149. package/dist/commonjs/generated/src/operations/callConnection.js +24 -72
  150. package/dist/commonjs/generated/src/operations/callConnection.js.map +1 -1
  151. package/dist/commonjs/generated/src/operations/callMedia.d.ts +15 -15
  152. package/dist/commonjs/generated/src/operations/callMedia.d.ts.map +1 -1
  153. package/dist/commonjs/generated/src/operations/callMedia.js +51 -50
  154. package/dist/commonjs/generated/src/operations/callMedia.js.map +1 -1
  155. package/dist/commonjs/generated/src/operations/callRecording.d.ts +1 -7
  156. package/dist/commonjs/generated/src/operations/callRecording.d.ts.map +1 -1
  157. package/dist/commonjs/generated/src/operations/callRecording.js +1 -24
  158. package/dist/commonjs/generated/src/operations/callRecording.js.map +1 -1
  159. package/dist/commonjs/generated/src/operations/index.d.ts +0 -1
  160. package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -1
  161. package/dist/commonjs/generated/src/operations/index.js +0 -1
  162. package/dist/commonjs/generated/src/operations/index.js.map +1 -1
  163. package/dist/commonjs/generated/src/operationsInterfaces/callConnection.d.ts +2 -9
  164. package/dist/commonjs/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  165. package/dist/commonjs/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  166. package/dist/commonjs/generated/src/operationsInterfaces/callMedia.d.ts +15 -15
  167. package/dist/commonjs/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  168. package/dist/commonjs/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  169. package/dist/commonjs/generated/src/operationsInterfaces/callRecording.d.ts +1 -7
  170. package/dist/commonjs/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
  171. package/dist/commonjs/generated/src/operationsInterfaces/callRecording.js.map +1 -1
  172. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +0 -1
  173. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  174. package/dist/commonjs/generated/src/operationsInterfaces/index.js +0 -1
  175. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -1
  176. package/dist/commonjs/generated/src/pagingHelper.js +2 -4
  177. package/dist/commonjs/generated/src/pagingHelper.js.map +1 -1
  178. package/dist/commonjs/index.d.ts +0 -2
  179. package/dist/commonjs/index.d.ts.map +1 -1
  180. package/dist/commonjs/index.js +0 -2
  181. package/dist/commonjs/index.js.map +1 -1
  182. package/dist/commonjs/models/constants.js +1 -1
  183. package/dist/commonjs/models/constants.js.map +1 -1
  184. package/dist/commonjs/models/events.d.ts +136 -195
  185. package/dist/commonjs/models/events.d.ts.map +1 -1
  186. package/dist/commonjs/models/events.js.map +1 -1
  187. package/dist/commonjs/models/models.d.ts +76 -39
  188. package/dist/commonjs/models/models.d.ts.map +1 -1
  189. package/dist/commonjs/models/models.js +2 -21
  190. package/dist/commonjs/models/models.js.map +1 -1
  191. package/dist/commonjs/models/options.d.ts +64 -30
  192. package/dist/commonjs/models/options.d.ts.map +1 -1
  193. package/dist/commonjs/models/options.js.map +1 -1
  194. package/dist/commonjs/models/responses.d.ts +19 -82
  195. package/dist/commonjs/models/responses.d.ts.map +1 -1
  196. package/dist/commonjs/models/responses.js.map +1 -1
  197. package/dist/commonjs/models/streaming.d.ts +38 -28
  198. package/dist/commonjs/models/streaming.d.ts.map +1 -1
  199. package/dist/commonjs/models/streaming.js +31 -59
  200. package/dist/commonjs/models/streaming.js.map +1 -1
  201. package/dist/commonjs/streamingData.d.ts.map +1 -1
  202. package/dist/commonjs/streamingData.js +15 -1
  203. package/dist/commonjs/streamingData.js.map +1 -1
  204. package/dist/commonjs/tsdoc-metadata.json +11 -11
  205. package/dist/commonjs/utli/converters.d.ts +1 -1
  206. package/dist/commonjs/utli/converters.d.ts.map +1 -1
  207. package/dist/commonjs/utli/converters.js +47 -8
  208. package/dist/commonjs/utli/converters.js.map +1 -1
  209. package/dist/esm/callAutomationClient.d.ts +0 -8
  210. package/dist/esm/callAutomationClient.d.ts.map +1 -1
  211. package/dist/esm/callAutomationClient.js +87 -141
  212. package/dist/esm/callAutomationClient.js.map +1 -1
  213. package/dist/esm/callAutomationEventParser.d.ts.map +1 -1
  214. package/dist/esm/callAutomationEventParser.js +22 -54
  215. package/dist/esm/callAutomationEventParser.js.map +1 -1
  216. package/dist/esm/callConnection.d.ts +12 -14
  217. package/dist/esm/callConnection.d.ts.map +1 -1
  218. package/dist/esm/callConnection.js +111 -183
  219. package/dist/esm/callConnection.js.map +1 -1
  220. package/dist/esm/callMedia.d.ts +15 -20
  221. package/dist/esm/callMedia.d.ts.map +1 -1
  222. package/dist/esm/callMedia.js +58 -177
  223. package/dist/esm/callMedia.js.map +1 -1
  224. package/dist/esm/callRecording.d.ts +2 -8
  225. package/dist/esm/callRecording.d.ts.map +1 -1
  226. package/dist/esm/callRecording.js +16 -26
  227. package/dist/esm/callRecording.js.map +1 -1
  228. package/dist/esm/contentDownloader.js +11 -12
  229. package/dist/esm/contentDownloader.js.map +1 -1
  230. package/dist/esm/credential/callAutomationAccessKeyCredentialPolicy.js +1 -2
  231. package/dist/esm/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
  232. package/dist/esm/credential/callAutomationAuthPolicy.js +1 -1
  233. package/dist/esm/credential/callAutomationAuthPolicy.js.map +1 -1
  234. package/dist/esm/generated/src/callAutomationApiClient.d.ts +1 -2
  235. package/dist/esm/generated/src/callAutomationApiClient.d.ts.map +1 -1
  236. package/dist/esm/generated/src/callAutomationApiClient.js +14 -6
  237. package/dist/esm/generated/src/callAutomationApiClient.js.map +1 -1
  238. package/dist/esm/generated/src/models/index.d.ts +534 -1064
  239. package/dist/esm/generated/src/models/index.d.ts.map +1 -1
  240. package/dist/esm/generated/src/models/index.js +87 -159
  241. package/dist/esm/generated/src/models/index.js.map +1 -1
  242. package/dist/esm/generated/src/models/mappers.d.ts +58 -86
  243. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
  244. package/dist/esm/generated/src/models/mappers.js +1173 -2159
  245. package/dist/esm/generated/src/models/mappers.js.map +1 -1
  246. package/dist/esm/generated/src/models/parameters.d.ts +2 -7
  247. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -1
  248. package/dist/esm/generated/src/models/parameters.js +10 -41
  249. package/dist/esm/generated/src/models/parameters.js.map +1 -1
  250. package/dist/esm/generated/src/operations/callConnection.d.ts +2 -9
  251. package/dist/esm/generated/src/operations/callConnection.d.ts.map +1 -1
  252. package/dist/esm/generated/src/operations/callConnection.js +24 -73
  253. package/dist/esm/generated/src/operations/callConnection.js.map +1 -1
  254. package/dist/esm/generated/src/operations/callMedia.d.ts +15 -15
  255. package/dist/esm/generated/src/operations/callMedia.d.ts.map +1 -1
  256. package/dist/esm/generated/src/operations/callMedia.js +51 -50
  257. package/dist/esm/generated/src/operations/callMedia.js.map +1 -1
  258. package/dist/esm/generated/src/operations/callRecording.d.ts +1 -7
  259. package/dist/esm/generated/src/operations/callRecording.d.ts.map +1 -1
  260. package/dist/esm/generated/src/operations/callRecording.js +1 -24
  261. package/dist/esm/generated/src/operations/callRecording.js.map +1 -1
  262. package/dist/esm/generated/src/operations/index.d.ts +0 -1
  263. package/dist/esm/generated/src/operations/index.d.ts.map +1 -1
  264. package/dist/esm/generated/src/operations/index.js +0 -1
  265. package/dist/esm/generated/src/operations/index.js.map +1 -1
  266. package/dist/esm/generated/src/operationsInterfaces/callConnection.d.ts +2 -9
  267. package/dist/esm/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  268. package/dist/esm/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  269. package/dist/esm/generated/src/operationsInterfaces/callMedia.d.ts +15 -15
  270. package/dist/esm/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  271. package/dist/esm/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  272. package/dist/esm/generated/src/operationsInterfaces/callRecording.d.ts +1 -7
  273. package/dist/esm/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
  274. package/dist/esm/generated/src/operationsInterfaces/callRecording.js.map +1 -1
  275. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +0 -1
  276. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  277. package/dist/esm/generated/src/operationsInterfaces/index.js +0 -1
  278. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -1
  279. package/dist/esm/generated/src/pagingHelper.js +2 -4
  280. package/dist/esm/generated/src/pagingHelper.js.map +1 -1
  281. package/dist/esm/index.d.ts +0 -2
  282. package/dist/esm/index.d.ts.map +1 -1
  283. package/dist/esm/index.js +0 -2
  284. package/dist/esm/index.js.map +1 -1
  285. package/dist/esm/models/constants.js +1 -1
  286. package/dist/esm/models/constants.js.map +1 -1
  287. package/dist/esm/models/events.d.ts +136 -195
  288. package/dist/esm/models/events.d.ts.map +1 -1
  289. package/dist/esm/models/events.js.map +1 -1
  290. package/dist/esm/models/models.d.ts +76 -39
  291. package/dist/esm/models/models.d.ts.map +1 -1
  292. package/dist/esm/models/models.js +1 -3
  293. package/dist/esm/models/models.js.map +1 -1
  294. package/dist/esm/models/options.d.ts +64 -30
  295. package/dist/esm/models/options.d.ts.map +1 -1
  296. package/dist/esm/models/options.js.map +1 -1
  297. package/dist/esm/models/responses.d.ts +19 -82
  298. package/dist/esm/models/responses.d.ts.map +1 -1
  299. package/dist/esm/models/responses.js.map +1 -1
  300. package/dist/esm/models/streaming.d.ts +38 -28
  301. package/dist/esm/models/streaming.d.ts.map +1 -1
  302. package/dist/esm/models/streaming.js +28 -57
  303. package/dist/esm/models/streaming.js.map +1 -1
  304. package/dist/esm/streamingData.d.ts.map +1 -1
  305. package/dist/esm/streamingData.js +15 -1
  306. package/dist/esm/streamingData.js.map +1 -1
  307. package/dist/esm/utli/converters.d.ts +1 -1
  308. package/dist/esm/utli/converters.d.ts.map +1 -1
  309. package/dist/esm/utli/converters.js +48 -9
  310. package/dist/esm/utli/converters.js.map +1 -1
  311. package/dist/react-native/callAutomationClient.d.ts +0 -8
  312. package/dist/react-native/callAutomationClient.d.ts.map +1 -1
  313. package/dist/react-native/callAutomationClient.js +87 -141
  314. package/dist/react-native/callAutomationClient.js.map +1 -1
  315. package/dist/react-native/callAutomationEventParser.d.ts.map +1 -1
  316. package/dist/react-native/callAutomationEventParser.js +22 -54
  317. package/dist/react-native/callAutomationEventParser.js.map +1 -1
  318. package/dist/react-native/callConnection.d.ts +12 -14
  319. package/dist/react-native/callConnection.d.ts.map +1 -1
  320. package/dist/react-native/callConnection.js +111 -183
  321. package/dist/react-native/callConnection.js.map +1 -1
  322. package/dist/react-native/callMedia.d.ts +15 -20
  323. package/dist/react-native/callMedia.d.ts.map +1 -1
  324. package/dist/react-native/callMedia.js +58 -177
  325. package/dist/react-native/callMedia.js.map +1 -1
  326. package/dist/react-native/callRecording.d.ts +2 -8
  327. package/dist/react-native/callRecording.d.ts.map +1 -1
  328. package/dist/react-native/callRecording.js +16 -26
  329. package/dist/react-native/callRecording.js.map +1 -1
  330. package/dist/react-native/contentDownloader.js +11 -12
  331. package/dist/react-native/contentDownloader.js.map +1 -1
  332. package/dist/react-native/credential/callAutomationAccessKeyCredentialPolicy.js +1 -2
  333. package/dist/react-native/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
  334. package/dist/react-native/credential/callAutomationAuthPolicy.js +1 -1
  335. package/dist/react-native/credential/callAutomationAuthPolicy.js.map +1 -1
  336. package/dist/react-native/generated/src/callAutomationApiClient.d.ts +1 -2
  337. package/dist/react-native/generated/src/callAutomationApiClient.d.ts.map +1 -1
  338. package/dist/react-native/generated/src/callAutomationApiClient.js +14 -6
  339. package/dist/react-native/generated/src/callAutomationApiClient.js.map +1 -1
  340. package/dist/react-native/generated/src/models/index.d.ts +534 -1064
  341. package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
  342. package/dist/react-native/generated/src/models/index.js +87 -159
  343. package/dist/react-native/generated/src/models/index.js.map +1 -1
  344. package/dist/react-native/generated/src/models/mappers.d.ts +58 -86
  345. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
  346. package/dist/react-native/generated/src/models/mappers.js +1173 -2159
  347. package/dist/react-native/generated/src/models/mappers.js.map +1 -1
  348. package/dist/react-native/generated/src/models/parameters.d.ts +2 -7
  349. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -1
  350. package/dist/react-native/generated/src/models/parameters.js +10 -41
  351. package/dist/react-native/generated/src/models/parameters.js.map +1 -1
  352. package/dist/react-native/generated/src/operations/callConnection.d.ts +2 -9
  353. package/dist/react-native/generated/src/operations/callConnection.d.ts.map +1 -1
  354. package/dist/react-native/generated/src/operations/callConnection.js +24 -73
  355. package/dist/react-native/generated/src/operations/callConnection.js.map +1 -1
  356. package/dist/react-native/generated/src/operations/callMedia.d.ts +15 -15
  357. package/dist/react-native/generated/src/operations/callMedia.d.ts.map +1 -1
  358. package/dist/react-native/generated/src/operations/callMedia.js +51 -50
  359. package/dist/react-native/generated/src/operations/callMedia.js.map +1 -1
  360. package/dist/react-native/generated/src/operations/callRecording.d.ts +1 -7
  361. package/dist/react-native/generated/src/operations/callRecording.d.ts.map +1 -1
  362. package/dist/react-native/generated/src/operations/callRecording.js +1 -24
  363. package/dist/react-native/generated/src/operations/callRecording.js.map +1 -1
  364. package/dist/react-native/generated/src/operations/index.d.ts +0 -1
  365. package/dist/react-native/generated/src/operations/index.d.ts.map +1 -1
  366. package/dist/react-native/generated/src/operations/index.js +0 -1
  367. package/dist/react-native/generated/src/operations/index.js.map +1 -1
  368. package/dist/react-native/generated/src/operationsInterfaces/callConnection.d.ts +2 -9
  369. package/dist/react-native/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  370. package/dist/react-native/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  371. package/dist/react-native/generated/src/operationsInterfaces/callMedia.d.ts +15 -15
  372. package/dist/react-native/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  373. package/dist/react-native/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  374. package/dist/react-native/generated/src/operationsInterfaces/callRecording.d.ts +1 -7
  375. package/dist/react-native/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
  376. package/dist/react-native/generated/src/operationsInterfaces/callRecording.js.map +1 -1
  377. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +0 -1
  378. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  379. package/dist/react-native/generated/src/operationsInterfaces/index.js +0 -1
  380. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -1
  381. package/dist/react-native/generated/src/pagingHelper.js +2 -4
  382. package/dist/react-native/generated/src/pagingHelper.js.map +1 -1
  383. package/dist/react-native/index.d.ts +0 -2
  384. package/dist/react-native/index.d.ts.map +1 -1
  385. package/dist/react-native/index.js +0 -2
  386. package/dist/react-native/index.js.map +1 -1
  387. package/dist/react-native/models/constants.js +1 -1
  388. package/dist/react-native/models/constants.js.map +1 -1
  389. package/dist/react-native/models/events.d.ts +136 -195
  390. package/dist/react-native/models/events.d.ts.map +1 -1
  391. package/dist/react-native/models/events.js.map +1 -1
  392. package/dist/react-native/models/models.d.ts +76 -39
  393. package/dist/react-native/models/models.d.ts.map +1 -1
  394. package/dist/react-native/models/models.js +1 -3
  395. package/dist/react-native/models/models.js.map +1 -1
  396. package/dist/react-native/models/options.d.ts +64 -30
  397. package/dist/react-native/models/options.d.ts.map +1 -1
  398. package/dist/react-native/models/options.js.map +1 -1
  399. package/dist/react-native/models/responses.d.ts +19 -82
  400. package/dist/react-native/models/responses.d.ts.map +1 -1
  401. package/dist/react-native/models/responses.js.map +1 -1
  402. package/dist/react-native/models/streaming.d.ts +38 -28
  403. package/dist/react-native/models/streaming.d.ts.map +1 -1
  404. package/dist/react-native/models/streaming.js +28 -57
  405. package/dist/react-native/models/streaming.js.map +1 -1
  406. package/dist/react-native/streamingData.d.ts.map +1 -1
  407. package/dist/react-native/streamingData.js +15 -1
  408. package/dist/react-native/streamingData.js.map +1 -1
  409. package/dist/react-native/utli/converters.d.ts +1 -1
  410. package/dist/react-native/utli/converters.d.ts.map +1 -1
  411. package/dist/react-native/utli/converters.js +48 -9
  412. package/dist/react-native/utli/converters.js.map +1 -1
  413. package/package.json +35 -36
  414. package/dist/browser/eventprocessor/callAutomationEventProcessor.d.ts +0 -39
  415. package/dist/browser/eventprocessor/callAutomationEventProcessor.d.ts.map +0 -1
  416. package/dist/browser/eventprocessor/callAutomationEventProcessor.js +0 -137
  417. package/dist/browser/eventprocessor/callAutomationEventProcessor.js.map +0 -1
  418. package/dist/browser/eventprocessor/eventResponses.d.ts +0 -134
  419. package/dist/browser/eventprocessor/eventResponses.d.ts.map +0 -1
  420. package/dist/browser/eventprocessor/eventResponses.js +0 -4
  421. package/dist/browser/eventprocessor/eventResponses.js.map +0 -1
  422. package/dist/browser/generated/src/operations/callDialog.d.ts +0 -35
  423. package/dist/browser/generated/src/operations/callDialog.d.ts.map +0 -1
  424. package/dist/browser/generated/src/operations/callDialog.js +0 -111
  425. package/dist/browser/generated/src/operations/callDialog.js.map +0 -1
  426. package/dist/browser/generated/src/operationsInterfaces/callDialog.d.ts +0 -27
  427. package/dist/browser/generated/src/operationsInterfaces/callDialog.d.ts.map +0 -1
  428. package/dist/browser/generated/src/operationsInterfaces/callDialog.js +0 -9
  429. package/dist/browser/generated/src/operationsInterfaces/callDialog.js.map +0 -1
  430. package/dist/commonjs/eventprocessor/callAutomationEventProcessor.d.ts +0 -39
  431. package/dist/commonjs/eventprocessor/callAutomationEventProcessor.d.ts.map +0 -1
  432. package/dist/commonjs/eventprocessor/callAutomationEventProcessor.js +0 -141
  433. package/dist/commonjs/eventprocessor/callAutomationEventProcessor.js.map +0 -1
  434. package/dist/commonjs/eventprocessor/eventResponses.d.ts +0 -134
  435. package/dist/commonjs/eventprocessor/eventResponses.d.ts.map +0 -1
  436. package/dist/commonjs/eventprocessor/eventResponses.js +0 -5
  437. package/dist/commonjs/eventprocessor/eventResponses.js.map +0 -1
  438. package/dist/commonjs/generated/src/operations/callDialog.d.ts +0 -35
  439. package/dist/commonjs/generated/src/operations/callDialog.d.ts.map +0 -1
  440. package/dist/commonjs/generated/src/operations/callDialog.js +0 -116
  441. package/dist/commonjs/generated/src/operations/callDialog.js.map +0 -1
  442. package/dist/commonjs/generated/src/operationsInterfaces/callDialog.d.ts +0 -27
  443. package/dist/commonjs/generated/src/operationsInterfaces/callDialog.d.ts.map +0 -1
  444. package/dist/commonjs/generated/src/operationsInterfaces/callDialog.js +0 -10
  445. package/dist/commonjs/generated/src/operationsInterfaces/callDialog.js.map +0 -1
  446. package/dist/esm/eventprocessor/callAutomationEventProcessor.d.ts +0 -39
  447. package/dist/esm/eventprocessor/callAutomationEventProcessor.d.ts.map +0 -1
  448. package/dist/esm/eventprocessor/callAutomationEventProcessor.js +0 -137
  449. package/dist/esm/eventprocessor/callAutomationEventProcessor.js.map +0 -1
  450. package/dist/esm/eventprocessor/eventResponses.d.ts +0 -134
  451. package/dist/esm/eventprocessor/eventResponses.d.ts.map +0 -1
  452. package/dist/esm/eventprocessor/eventResponses.js +0 -4
  453. package/dist/esm/eventprocessor/eventResponses.js.map +0 -1
  454. package/dist/esm/generated/src/operations/callDialog.d.ts +0 -35
  455. package/dist/esm/generated/src/operations/callDialog.d.ts.map +0 -1
  456. package/dist/esm/generated/src/operations/callDialog.js +0 -111
  457. package/dist/esm/generated/src/operations/callDialog.js.map +0 -1
  458. package/dist/esm/generated/src/operationsInterfaces/callDialog.d.ts +0 -27
  459. package/dist/esm/generated/src/operationsInterfaces/callDialog.d.ts.map +0 -1
  460. package/dist/esm/generated/src/operationsInterfaces/callDialog.js +0 -9
  461. package/dist/esm/generated/src/operationsInterfaces/callDialog.js.map +0 -1
  462. package/dist/react-native/eventprocessor/callAutomationEventProcessor.d.ts +0 -39
  463. package/dist/react-native/eventprocessor/callAutomationEventProcessor.d.ts.map +0 -1
  464. package/dist/react-native/eventprocessor/callAutomationEventProcessor.js +0 -137
  465. package/dist/react-native/eventprocessor/callAutomationEventProcessor.js.map +0 -1
  466. package/dist/react-native/eventprocessor/eventResponses.d.ts +0 -134
  467. package/dist/react-native/eventprocessor/eventResponses.d.ts.map +0 -1
  468. package/dist/react-native/eventprocessor/eventResponses.js +0 -4
  469. package/dist/react-native/eventprocessor/eventResponses.js.map +0 -1
  470. package/dist/react-native/generated/src/operations/callDialog.d.ts +0 -35
  471. package/dist/react-native/generated/src/operations/callDialog.d.ts.map +0 -1
  472. package/dist/react-native/generated/src/operations/callDialog.js +0 -111
  473. package/dist/react-native/generated/src/operations/callDialog.js.map +0 -1
  474. package/dist/react-native/generated/src/operationsInterfaces/callDialog.d.ts +0 -27
  475. package/dist/react-native/generated/src/operationsInterfaces/callDialog.d.ts.map +0 -1
  476. package/dist/react-native/generated/src/operationsInterfaces/callDialog.js +0 -9
  477. package/dist/react-native/generated/src/operationsInterfaces/callDialog.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"callMedia.d.ts","sourceRoot":"","sources":["../../src/callMedia.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAUV,qCAAqC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BAAuB,EAC1C,OAAO,GAAE,gCAAqC,GAC7C,OAAO,CAAC,IAAI,CAAC;IAYhB;;;;SAIK;IACQ,6BAA6B,CACxC,iBAAiB,EAAE,uBAAuB,EAC1C,OAAO,GAAE,gCAAqC,GAC7C,OAAO,CAAC,IAAI,CAAC;IAahB;;;;;SAKK;IACQ,aAAa,CACxB,KAAK,EAAE,IAAI,EAAE,GAAG,QAAQ,EAAE,EAC1B,iBAAiB,EAAE,uBAAuB,EAC1C,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,mBAAmB,CAAC;IAwB/B;;;;;OAKG;IACU,IAAI,CACf,iBAAiB,EAAE,uBAAuB,EAC1C,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;OAKG;IACU,MAAM,CACjB,iBAAiB,EAAE,uBAAuB,EAC1C,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC;IAWhB;;;;OAIG;IACU,kBAAkB,CAAC,OAAO,GAAE,yBAA8B,GAAG,OAAO,CAAC,IAAI,CAAC;IAcvF;;;OAGG;IACU,iBAAiB,CAAC,OAAO,GAAE,wBAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;IAQrF;;OAEG;IACU,mBAAmB,CAC9B,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,IAAI,CAAC;IAiBhB;;;OAGG;IACU,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAY7E;;;OAGG;IACU,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;IAYzF;;;OAGG;IACU,kBAAkB,CAAC,OAAO,GAAE,yBAA8B,GAAG,OAAO,CAAC,IAAI,CAAC;CAWxF"}
@@ -1,18 +1,22 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
+ import { CallAutomationApiClient, } from "./generated/src/index.js";
3
4
  import { KnownPlaySourceType, KnownRecognizeInputType } from "./generated/src/index.js";
4
5
  import { CallMediaImpl } from "./generated/src/operations/index.js";
5
- import { serializeCommunicationIdentifier } from "@azure/communication-common";
6
+ import { createCommunicationAuthPolicy, serializeCommunicationIdentifier, } from "@azure/communication-common";
6
7
  import { randomUUID } from "@azure/core-util";
7
- import { createCustomCallAutomationApiClient } from "./credential/callAutomationAuthPolicy.js";
8
8
  /**
9
9
  * CallMedia class represents call media related APIs.
10
10
  */
11
11
  export class CallMedia {
12
- constructor(callConnectionId, endpoint, credential, eventProcessor, options) {
13
- this.callAutomationApiClient = createCustomCallAutomationApiClient(credential, options, endpoint);
12
+ callConnectionId;
13
+ callMedia;
14
+ callAutomationApiClient;
15
+ constructor(callConnectionId, endpoint, credential, options) {
16
+ this.callAutomationApiClient = new CallAutomationApiClient(endpoint, options);
17
+ const authPolicy = createCommunicationAuthPolicy(credential);
18
+ this.callAutomationApiClient.pipeline.addPolicy(authPolicy);
14
19
  this.callConnectionId = callConnectionId;
15
- this.callAutomationEventProcessor = eventProcessor;
16
20
  this.callMedia = new CallMediaImpl(this.callAutomationApiClient);
17
21
  }
18
22
  createPlaySourceInternal(playSource) {
@@ -72,51 +76,15 @@ export class CallMedia {
72
76
  playTo: playTo.map((identifier) => serializeCommunicationIdentifier(identifier)),
73
77
  playOptions: {
74
78
  loop: false,
75
- interruptHoldAudio: false,
76
79
  },
77
- operationContext: options.operationContext ? options.operationContext : randomUUID(),
80
+ operationContext: options.operationContext,
78
81
  operationCallbackUri: options.operationCallbackUrl,
79
82
  };
80
83
  if (options.loop !== undefined) {
81
84
  playRequest.playOptions = playRequest.playOptions || { loop: false }; // Ensure playOptions is defined
82
85
  playRequest.playOptions.loop = options.loop;
83
86
  }
84
- if (options.interruptHoldAudio !== undefined) {
85
- playRequest.playOptions = playRequest.playOptions || {
86
- loop: false,
87
- interruptHoldAudio: false,
88
- }; // Ensure playOptions is defined
89
- playRequest.playOptions.interruptHoldAudio = options.interruptHoldAudio;
90
- }
91
87
  await this.callMedia.play(this.callConnectionId, playRequest, options);
92
- const playResult = {
93
- waitForEventProcessor: async (abortSignal, timeoutInMs) => {
94
- const playEventResult = {
95
- isSuccess: false,
96
- };
97
- await this.callAutomationEventProcessor.waitForEventProcessor((event) => {
98
- if (event.callConnectionId === this.callConnectionId &&
99
- event.kind === "PlayCompleted" &&
100
- event.operationContext === playRequest.operationContext) {
101
- playEventResult.isSuccess = true;
102
- playEventResult.successResult = event;
103
- return true;
104
- }
105
- else if (event.callConnectionId === this.callConnectionId &&
106
- event.kind === "PlayFailed" &&
107
- event.operationContext === playRequest.operationContext) {
108
- playEventResult.isSuccess = false;
109
- playEventResult.failureResult = event;
110
- return true;
111
- }
112
- else {
113
- return false;
114
- }
115
- }, abortSignal, timeoutInMs);
116
- return playEventResult;
117
- },
118
- };
119
- return playResult;
120
88
  }
121
89
  /**
122
90
  * Play to all participants.
@@ -141,39 +109,10 @@ export class CallMedia {
141
109
  if (options.interruptCallMediaOperation !== undefined) {
142
110
  playRequest.playOptions = playRequest.playOptions || {
143
111
  loop: false,
144
- interruptCallMediaOperation: false,
145
112
  }; // Ensure playOptions is defined
146
- playRequest.playOptions.interruptCallMediaOperation = options.interruptCallMediaOperation;
113
+ playRequest.interruptCallMediaOperation = options.interruptCallMediaOperation;
147
114
  }
148
115
  await this.callMedia.play(this.callConnectionId, playRequest, options);
149
- const playResult = {
150
- waitForEventProcessor: async (abortSignal, timeoutInMs) => {
151
- const playEventResult = {
152
- isSuccess: false,
153
- };
154
- await this.callAutomationEventProcessor.waitForEventProcessor((event) => {
155
- if (event.callConnectionId === this.callConnectionId &&
156
- event.kind === "PlayCompleted" &&
157
- event.operationContext === playRequest.operationContext) {
158
- playEventResult.isSuccess = true;
159
- playEventResult.successResult = event;
160
- return true;
161
- }
162
- else if (event.callConnectionId === this.callConnectionId &&
163
- event.kind === "PlayFailed" &&
164
- event.operationContext === playRequest.operationContext) {
165
- playEventResult.isSuccess = false;
166
- playEventResult.failureResult = event;
167
- return true;
168
- }
169
- else {
170
- return false;
171
- }
172
- }, abortSignal, timeoutInMs);
173
- return playEventResult;
174
- },
175
- };
176
- return playResult;
177
116
  }
178
117
  createRecognizeRequest(targetParticipant, recognizeOptions) {
179
118
  if (recognizeOptions.kind === "callMediaRecognizeDtmfOptions") {
@@ -214,6 +153,8 @@ export class CallMedia {
214
153
  : 5,
215
154
  targetParticipant: serializeCommunicationIdentifier(targetParticipant),
216
155
  speechLanguage: recognizeOptions.speechLanguage,
156
+ speechLanguages: recognizeOptions.speechLanguages,
157
+ enableSentimentAnalysis: recognizeOptions.enableSentimentAnalysis,
217
158
  speechRecognitionModelEndpointId: recognizeOptions.speechRecognitionModelEndpointId,
218
159
  choices: recognizeOptions.choices,
219
160
  };
@@ -245,6 +186,8 @@ export class CallMedia {
245
186
  targetParticipant: serializeCommunicationIdentifier(targetParticipant),
246
187
  speechOptions: speechOptions,
247
188
  speechLanguage: recognizeOptions.speechLanguage,
189
+ speechLanguages: recognizeOptions.speechLanguages,
190
+ enableSentimentAnalysis: recognizeOptions.enableSentimentAnalysis,
248
191
  speechRecognitionModelEndpointId: recognizeOptions.speechRecognitionModelEndpointId,
249
192
  };
250
193
  return {
@@ -282,6 +225,8 @@ export class CallMedia {
282
225
  targetParticipant: serializeCommunicationIdentifier(targetParticipant),
283
226
  speechOptions: speechOptions,
284
227
  dtmfOptions: dtmfOptionsInternal,
228
+ speechLanguages: recognizeOptions.speechLanguages,
229
+ enableSentimentAnalysis: recognizeOptions.enableSentimentAnalysis,
285
230
  speechRecognitionModelEndpointId: recognizeOptions.speechRecognitionModelEndpointId,
286
231
  };
287
232
  return {
@@ -305,42 +250,14 @@ export class CallMedia {
305
250
  // Old function signature logic
306
251
  console.warn("Deprecated function signature used. Please use the new signature with targetParticipant and options params instead, and set maxTonesToCollect in options.");
307
252
  options.maxTonesToCollect = maxTonesOrOptions;
308
- await this.callMedia.recognize(this.callConnectionId, this.createRecognizeRequest(targetParticipant, options), {});
253
+ return this.callMedia.recognize(this.callConnectionId, this.createRecognizeRequest(targetParticipant, options), {});
309
254
  }
310
255
  else if (typeof maxTonesOrOptions !== "number" && !options) {
311
256
  maxTonesOrOptions.operationContext = maxTonesOrOptions.operationContext
312
257
  ? maxTonesOrOptions.operationContext
313
258
  : randomUUID();
314
259
  // New function signature logic
315
- await this.callMedia.recognize(this.callConnectionId, this.createRecognizeRequest(targetParticipant, maxTonesOrOptions), {});
316
- const startRecognizingResult = {
317
- waitForEventProcessor: async (abortSignal, timeoutInMs) => {
318
- const startRecognizingEventResult = {
319
- isSuccess: false,
320
- };
321
- await this.callAutomationEventProcessor.waitForEventProcessor((event) => {
322
- if (event.callConnectionId === this.callConnectionId &&
323
- event.kind === "RecognizeCompleted" &&
324
- event.operationContext === maxTonesOrOptions.operationContext) {
325
- startRecognizingEventResult.isSuccess = true;
326
- startRecognizingEventResult.successResult = event;
327
- return true;
328
- }
329
- else if (event.callConnectionId === this.callConnectionId &&
330
- event.kind === "RecognizeFailed" &&
331
- event.operationContext === maxTonesOrOptions.operationContext) {
332
- startRecognizingEventResult.isSuccess = false;
333
- startRecognizingEventResult.failureResult = event;
334
- return true;
335
- }
336
- else {
337
- return false;
338
- }
339
- }, abortSignal, timeoutInMs);
340
- return startRecognizingEventResult;
341
- },
342
- };
343
- return startRecognizingResult;
260
+ return this.callMedia.recognize(this.callConnectionId, this.createRecognizeRequest(targetParticipant, maxTonesOrOptions), {});
344
261
  }
345
262
  throw new Error("Invalid params");
346
263
  }
@@ -349,31 +266,6 @@ export class CallMedia {
349
266
  */
350
267
  async cancelAllOperations() {
351
268
  await this.callMedia.cancelAllMediaOperations(this.callConnectionId, {});
352
- const cancelAllMediaOperationsResult = {
353
- waitForEventProcessor: async (abortSignal, timeoutInMs) => {
354
- const cancelAllMediaOperationsEventResult = {
355
- isSuccess: false,
356
- };
357
- await this.callAutomationEventProcessor.waitForEventProcessor((event) => {
358
- if (event.callConnectionId === this.callConnectionId && event.kind === "PlayCanceled") {
359
- cancelAllMediaOperationsEventResult.isSuccess = true;
360
- cancelAllMediaOperationsEventResult.playCanceledSuccessResult = event;
361
- return true;
362
- }
363
- else if (event.callConnectionId === this.callConnectionId &&
364
- event.kind === "RecognizeCanceled") {
365
- cancelAllMediaOperationsEventResult.isSuccess = false;
366
- cancelAllMediaOperationsEventResult.recognizeCanceledSuccessResult = event;
367
- return true;
368
- }
369
- else {
370
- return false;
371
- }
372
- }, abortSignal, timeoutInMs);
373
- return cancelAllMediaOperationsEventResult;
374
- },
375
- };
376
- return cancelAllMediaOperationsResult;
377
269
  }
378
270
  /**
379
271
  * Start continuous Dtmf recognition by subscribing to tones.
@@ -383,7 +275,7 @@ export class CallMedia {
383
275
  async startContinuousDtmfRecognition(targetParticipant, options = {}) {
384
276
  const continuousDtmfRecognitionRequest = {
385
277
  targetParticipant: serializeCommunicationIdentifier(targetParticipant),
386
- operationContext: options.operationContext ? options.operationContext : randomUUID(),
278
+ operationContext: options.operationContext,
387
279
  };
388
280
  return this.callMedia.startContinuousDtmfRecognition(this.callConnectionId, continuousDtmfRecognitionRequest, {});
389
281
  }
@@ -395,7 +287,7 @@ export class CallMedia {
395
287
  async stopContinuousDtmfRecognition(targetParticipant, options = {}) {
396
288
  const continuousDtmfRecognitionRequest = {
397
289
  targetParticipant: serializeCommunicationIdentifier(targetParticipant),
398
- operationContext: options.operationContext ? options.operationContext : randomUUID(),
290
+ operationContext: options.operationContext,
399
291
  operationCallbackUri: options.operationCallbackUrl,
400
292
  };
401
293
  return this.callMedia.stopContinuousDtmfRecognition(this.callConnectionId, continuousDtmfRecognitionRequest, {});
@@ -410,36 +302,17 @@ export class CallMedia {
410
302
  const sendDtmfTonesRequest = {
411
303
  tones: tones,
412
304
  targetParticipant: serializeCommunicationIdentifier(targetParticipant),
413
- operationContext: options.operationContext ? options.operationContext : randomUUID(),
305
+ operationContext: options.operationContext,
414
306
  operationCallbackUri: options.operationCallbackUrl,
415
307
  };
416
- await this.callMedia.sendDtmfTones(this.callConnectionId, sendDtmfTonesRequest, {});
308
+ const optionsInternal = {
309
+ ...options,
310
+ repeatabilityFirstSent: new Date(),
311
+ repeatabilityRequestID: randomUUID(),
312
+ };
313
+ const result = await this.callMedia.sendDtmfTones(this.callConnectionId, sendDtmfTonesRequest, optionsInternal);
417
314
  const sendDtmfTonesResult = {
418
- waitForEventProcessor: async (abortSignal, timeoutInMs) => {
419
- const sendDtmfEventResult = {
420
- isSuccess: false,
421
- };
422
- await this.callAutomationEventProcessor.waitForEventProcessor((event) => {
423
- if (event.callConnectionId === this.callConnectionId &&
424
- event.kind === "SendDtmfTonesCompleted" &&
425
- event.operationContext === sendDtmfTonesResult.operationContext) {
426
- sendDtmfEventResult.isSuccess = true;
427
- sendDtmfEventResult.successResult = event;
428
- return true;
429
- }
430
- else if (event.callConnectionId === this.callConnectionId &&
431
- event.kind === "SendDtmfTonesFailed" &&
432
- event.operationContext === sendDtmfTonesResult.operationContext) {
433
- sendDtmfEventResult.isSuccess = false;
434
- sendDtmfEventResult.failureResult = event;
435
- return true;
436
- }
437
- else {
438
- return false;
439
- }
440
- }, abortSignal, timeoutInMs);
441
- return sendDtmfEventResult;
442
- },
315
+ ...result,
443
316
  };
444
317
  return sendDtmfTonesResult;
445
318
  }
@@ -456,7 +329,7 @@ export class CallMedia {
456
329
  ? this.createPlaySourceInternal(options.playSource)
457
330
  : undefined,
458
331
  operationContext: options.operationContext !== undefined ? options.operationContext : undefined,
459
- operationCallbackUri: options.operationCallbackUri !== undefined ? options.operationCallbackUri : undefined,
332
+ operationCallbackUri: options.operationCallbackUrl !== undefined ? options.operationCallbackUrl : undefined,
460
333
  };
461
334
  return this.callMedia.hold(this.callConnectionId, holdRequest);
462
335
  }
@@ -470,11 +343,13 @@ export class CallMedia {
470
343
  const unholdRequest = {
471
344
  targetParticipant: serializeCommunicationIdentifier(targetParticipant),
472
345
  operationContext: options.operationContext !== undefined ? options.operationContext : undefined,
346
+ operationCallbackUri: options.operationCallbackUrl !== undefined ? options.operationCallbackUrl : undefined,
473
347
  };
474
348
  return this.callMedia.unhold(this.callConnectionId, unholdRequest);
475
349
  }
476
350
  /**
477
351
  * Starts transcription in the call
352
+ * @param locales - List of languages for Language Identification.
478
353
  * @param options - Additional attributes for start transcription.
479
354
  */
480
355
  async startTranscription(options = {}) {
@@ -483,6 +358,10 @@ export class CallMedia {
483
358
  operationContext: options.operationContext,
484
359
  speechModelEndpointId: options.speechRecognitionModelEndpointId,
485
360
  operationCallbackUri: options.operationCallbackUrl,
361
+ piiRedactionOptions: options.piiRedactionOptions,
362
+ locales: options.locales,
363
+ enableSentimentAnalysis: options.enableSentimentAnalysis,
364
+ summarizationOptions: options.summarizationOptions,
486
365
  };
487
366
  return this.callMedia.startTranscription(this.callConnectionId, startTranscriptionRequest, {});
488
367
  }
@@ -499,17 +378,34 @@ export class CallMedia {
499
378
  }
500
379
  /**
501
380
  * Update transcription language.
502
- * @param locale - Defines new locale for transcription.
503
381
  */
504
- async updateTranscription(locale, options) {
382
+ async updateTranscription(locale, options = {}) {
505
383
  const updateTranscriptionRequest = {
506
384
  locale: locale,
507
- speechModelEndpointId: options === null || options === void 0 ? void 0 : options.speechRecognitionModelEndpointId,
508
- operationContext: options === null || options === void 0 ? void 0 : options.operationContext,
509
- operationCallbackUri: options === null || options === void 0 ? void 0 : options.operationCallbackUrl,
385
+ speechModelEndpointId: options.speechRecognitionModelEndpointId,
386
+ operationContext: options.operationContext,
387
+ operationCallbackUri: options.operationCallbackUrl,
388
+ piiRedactionOptions: options.piiRedactionOptions,
389
+ enableSentimentAnalysis: options.enableSentimentAnalysis,
390
+ summarizationOptions: options.summarizationOptions,
510
391
  };
511
392
  return this.callMedia.updateTranscription(this.callConnectionId, updateTranscriptionRequest, {});
512
393
  }
394
+ /**
395
+ * Summarize call details.
396
+ * @param options - Additional attributes for summarize call.
397
+ */
398
+ async summarizeCall(options = {}) {
399
+ const summarizeCallRequest = {
400
+ operationContext: options.operationContext,
401
+ operationCallbackUri: options.operationCallbackUrl,
402
+ summarizationOptions: {
403
+ enableEndCallSummary: options.summarizationOptions?.enableEndCallSummary,
404
+ locale: options.summarizationOptions?.locale,
405
+ },
406
+ };
407
+ return this.callMedia.summarizeCall(this.callConnectionId, summarizeCallRequest, {});
408
+ }
513
409
  /**
514
410
  * Starts media streaming in the call.
515
411
  * @param options - Additional attributes for start media streaming.
@@ -532,20 +428,5 @@ export class CallMedia {
532
428
  };
533
429
  return this.callMedia.stopMediaStreaming(this.callConnectionId, stopMediaStreamingRequest, options);
534
430
  }
535
- /**
536
- * Interrupt audio and announce to specific participant.
537
- *
538
- * @param playSources - A PlaySource representing the sources to play.
539
- * @param playTo - The targets to play to.
540
- * @param options - Additional attributes for interrupt audio and announce.
541
- */
542
- async interruptAudioAndAnnounce(playSources, playTo, options = {}) {
543
- const interruptAudioAndAnnounceRequest = {
544
- playSources: playSources.map((source) => this.createPlaySourceInternal(source)),
545
- playTo: serializeCommunicationIdentifier(playTo),
546
- operationContext: options.operationContext,
547
- };
548
- return this.callMedia.interruptAudioAndAnnounce(this.callConnectionId, interruptAudioAndAnnounceRequest);
549
- }
550
431
  }
551
432
  //# sourceMappingURL=callMedia.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"callMedia.js","sourceRoot":"","sources":["../../src/callMedia.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAyBlC,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAGpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAmC/E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAG/F;;GAEG;AACH,MAAM,OAAO,SAAS;IAKpB,YACE,gBAAwB,EACxB,QAAgB,EAChB,UAA2C,EAC3C,cAA4C,EAC5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B;YAClD,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;SAC3C,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,CACtC,IAAI,CAAC,gBAAgB,EACrB,yBAAyB,EACzB,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,yBAAyB,CACpC,WAAqD,EACrD,MAA+B,EAC/B,UAA4C,EAAE;QAE9C,MAAM,gCAAgC,GAAqC;YACzE,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;YAC/E,MAAM,EAAE,gCAAgC,CAAC,MAAM,CAAC;YAChD,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;SAC3C,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAC7C,IAAI,CAAC,gBAAgB,EACrB,gCAAgC,CACjC,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n PlayRequest,\n PlaySourceInternal,\n FileSourceInternal,\n TextSourceInternal,\n SsmlSourceInternal,\n RecognizeRequest,\n RecognizeOptions,\n DtmfOptions,\n CallAutomationApiClient,\n CallAutomationApiClientOptionalParams,\n ContinuousDtmfRecognitionRequest,\n SendDtmfTonesRequest,\n Tone,\n SpeechOptions,\n StartTranscriptionRequest,\n StopTranscriptionRequest,\n UpdateTranscriptionRequest,\n HoldRequest,\n UnholdRequest,\n StartMediaStreamingRequest,\n StopMediaStreamingRequest,\n} from \"./generated/src/index.js\";\nimport { KnownPlaySourceType, KnownRecognizeInputType } from \"./generated/src/index.js\";\n\nimport { CallMediaImpl } from \"./generated/src/operations/index.js\";\n\nimport type { CommunicationIdentifier } from \"@azure/communication-common\";\nimport { serializeCommunicationIdentifier } from \"@azure/communication-common\";\n\nimport type { FileSource, TextSource, SsmlSource, DtmfTone } from \"./models/models.js\";\nimport type {\n PlayOptions,\n CallMediaRecognizeDtmfOptions,\n CallMediaRecognizeChoiceOptions,\n ContinuousDtmfRecognitionOptions,\n SendDtmfTonesOptions,\n CallMediaRecognizeSpeechOptions,\n CallMediaRecognizeSpeechOrDtmfOptions,\n StartTranscriptionOptions,\n StopTranscriptionOptions,\n HoldOptions,\n UnholdOptions,\n StartMediaStreamingOptions,\n StopMediaStreamingOptions,\n PlayToAllOptions,\n UpdateTranscriptionOptions,\n InterruptAudioAndAnnounceOptions,\n} from \"./models/options.js\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport type {\n CancelAllMediaOperationsResult,\n PlayResult,\n SendDtmfTonesResult,\n StartRecognizingResult,\n} from \"./models/responses.js\";\nimport type {\n CancelAllMediaOperationsEventResult,\n PlayEventResult,\n SendDtmfEventResult,\n StartRecognizingEventResult,\n} from \"./eventprocessor/eventResponses.js\";\nimport type { CallAutomationEventProcessor } from \"./eventprocessor/callAutomationEventProcessor.js\";\nimport { randomUUID } from \"@azure/core-util\";\nimport { createCustomCallAutomationApiClient } from \"./credential/callAutomationAuthPolicy.js\";\nimport { InterruptAudioAndAnnounceRequest } from \"./generated/src/models/index.js\";\n\n/**\n * CallMedia class represents call media related APIs.\n */\nexport class CallMedia {\n private readonly callConnectionId: string;\n private readonly callMedia: CallMediaImpl;\n private readonly callAutomationApiClient: CallAutomationApiClient;\n private readonly callAutomationEventProcessor: CallAutomationEventProcessor;\n constructor(\n callConnectionId: string,\n endpoint: string,\n credential: KeyCredential | TokenCredential,\n eventProcessor: CallAutomationEventProcessor,\n options?: CallAutomationApiClientOptionalParams,\n ) {\n this.callAutomationApiClient = createCustomCallAutomationApiClient(\n credential,\n options,\n endpoint,\n );\n this.callConnectionId = callConnectionId;\n this.callAutomationEventProcessor = eventProcessor;\n this.callMedia = new CallMediaImpl(this.callAutomationApiClient);\n }\n\n private createPlaySourceInternal(\n playSource: FileSource | TextSource | SsmlSource,\n ): PlaySourceInternal {\n if (playSource.kind === \"fileSource\") {\n const fileSource: FileSourceInternal = {\n uri: playSource.url,\n };\n return {\n kind: KnownPlaySourceType.File,\n file: fileSource,\n playSourceCacheId: playSource.playSourceCacheId\n ? playSource.playSourceCacheId\n : playSource.playsourcacheid,\n };\n } else if (playSource.kind === \"textSource\") {\n const textSource: TextSourceInternal = {\n text: playSource.text,\n sourceLocale: playSource.sourceLocale,\n voiceKind: playSource.voiceKind,\n voiceName: playSource.voiceName,\n customVoiceEndpointId: playSource.customVoiceEndpointId,\n };\n return {\n kind: KnownPlaySourceType.Text,\n text: textSource,\n playSourceCacheId: playSource.playSourceCacheId\n ? playSource.playSourceCacheId\n : playSource.playsourcacheid,\n };\n } else if (playSource.kind === \"ssmlSource\") {\n const ssmlSource: SsmlSourceInternal = {\n ssmlText: playSource.ssmlText,\n customVoiceEndpointId: playSource.customVoiceEndpointId,\n };\n return {\n kind: KnownPlaySourceType.Ssml,\n ssml: ssmlSource,\n playSourceCacheId: playSource.playSourceCacheId\n ? playSource.playSourceCacheId\n : playSource.playsourcacheid,\n };\n }\n throw new Error(\"Invalid play source\");\n }\n\n /**\n * Play audio to a specific participant.\n *\n * @param playSources - A PlaySource representing the sources to play. Currently only single play source per request is supported.\n * @param playTo - The targets to play to.\n * @param options - Additional attributes for play.\n */\n public async play(\n playSources: (FileSource | TextSource | SsmlSource)[],\n playTo: CommunicationIdentifier[],\n options: PlayOptions = { loop: false },\n ): Promise<PlayResult> {\n const playRequest: PlayRequest = {\n playSources: playSources.map((source) => this.createPlaySourceInternal(source)),\n playTo: playTo.map((identifier) => serializeCommunicationIdentifier(identifier)),\n playOptions: {\n loop: false,\n interruptHoldAudio: false,\n },\n operationContext: options.operationContext ? options.operationContext : randomUUID(),\n operationCallbackUri: options.operationCallbackUrl,\n };\n\n if (options.loop !== undefined) {\n playRequest.playOptions = playRequest.playOptions || { loop: false }; // Ensure playOptions is defined\n playRequest.playOptions.loop = options.loop;\n }\n if (options.interruptHoldAudio !== undefined) {\n playRequest.playOptions = playRequest.playOptions || {\n loop: false,\n interruptHoldAudio: false,\n }; // Ensure playOptions is defined\n playRequest.playOptions.interruptHoldAudio = options.interruptHoldAudio;\n }\n await this.callMedia.play(this.callConnectionId, playRequest, options);\n\n const playResult: PlayResult = {\n waitForEventProcessor: async (abortSignal, timeoutInMs) => {\n const playEventResult: PlayEventResult = {\n isSuccess: false,\n };\n await this.callAutomationEventProcessor.waitForEventProcessor(\n (event) => {\n if (\n event.callConnectionId === this.callConnectionId &&\n event.kind === \"PlayCompleted\" &&\n event.operationContext === playRequest.operationContext\n ) {\n playEventResult.isSuccess = true;\n playEventResult.successResult = event;\n return true;\n } else if (\n event.callConnectionId === this.callConnectionId &&\n event.kind === \"PlayFailed\" &&\n event.operationContext === playRequest.operationContext\n ) {\n playEventResult.isSuccess = false;\n playEventResult.failureResult = event;\n return true;\n } else {\n return false;\n }\n },\n abortSignal,\n timeoutInMs,\n );\n return playEventResult;\n },\n };\n return playResult;\n }\n\n /**\n * Play to all participants.\n *\n * @param playSources - A PlaySource representing the sources to play. Currently only single play source per request is supported.\n * @param options - Additional attributes for play.\n */\n public async playToAll(\n playSources: (FileSource | TextSource | SsmlSource)[],\n options: PlayToAllOptions = { loop: false },\n ): Promise<PlayResult> {\n const playRequest: PlayRequest = {\n playSources: playSources.map((source) => this.createPlaySourceInternal(source)),\n playTo: [],\n playOptions: {\n loop: false,\n },\n operationContext: options.operationContext ? options.operationContext : randomUUID(),\n operationCallbackUri: options.operationCallbackUrl,\n };\n\n if (options.loop !== undefined) {\n playRequest.playOptions = playRequest.playOptions || { loop: false }; // Ensure playOptions is defined\n playRequest.playOptions.loop = options.loop;\n }\n\n if (options.interruptCallMediaOperation !== undefined) {\n playRequest.playOptions = playRequest.playOptions || {\n loop: false,\n interruptCallMediaOperation: false,\n }; // Ensure playOptions is defined\n playRequest.playOptions.interruptCallMediaOperation = options.interruptCallMediaOperation;\n }\n\n await this.callMedia.play(this.callConnectionId, playRequest, options);\n\n const playResult: PlayResult = {\n waitForEventProcessor: async (abortSignal, timeoutInMs) => {\n const playEventResult: PlayEventResult = {\n isSuccess: false,\n };\n await this.callAutomationEventProcessor.waitForEventProcessor(\n (event) => {\n if (\n event.callConnectionId === this.callConnectionId &&\n event.kind === \"PlayCompleted\" &&\n event.operationContext === playRequest.operationContext\n ) {\n playEventResult.isSuccess = true;\n playEventResult.successResult = event;\n return true;\n } else if (\n event.callConnectionId === this.callConnectionId &&\n event.kind === \"PlayFailed\" &&\n event.operationContext === playRequest.operationContext\n ) {\n playEventResult.isSuccess = false;\n playEventResult.failureResult = event;\n return true;\n } else {\n return false;\n }\n },\n abortSignal,\n timeoutInMs,\n );\n return playEventResult;\n },\n };\n return playResult;\n }\n\n private createRecognizeRequest(\n targetParticipant: CommunicationIdentifier,\n recognizeOptions:\n | CallMediaRecognizeDtmfOptions\n | CallMediaRecognizeChoiceOptions\n | CallMediaRecognizeSpeechOptions\n | CallMediaRecognizeSpeechOrDtmfOptions,\n ): RecognizeRequest {\n if (recognizeOptions.kind === \"callMediaRecognizeDtmfOptions\") {\n const dtmfOptionsInternal: DtmfOptions = {\n interToneTimeoutInSeconds: recognizeOptions.interToneTimeoutInSeconds\n ? recognizeOptions.interToneTimeoutInSeconds\n : 2,\n maxTonesToCollect: recognizeOptions.maxTonesToCollect,\n stopTones: recognizeOptions.stopDtmfTones,\n };\n const recognizeOptionsInternal: RecognizeOptions = {\n interruptPrompt: recognizeOptions.interruptPrompt,\n initialSilenceTimeoutInSeconds: recognizeOptions.initialSilenceTimeoutInSeconds\n ? recognizeOptions.initialSilenceTimeoutInSeconds\n : 5,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n dtmfOptions: dtmfOptionsInternal,\n };\n return {\n recognizeInputType: KnownRecognizeInputType.Dtmf,\n playPrompt: recognizeOptions.playPrompt\n ? this.createPlaySourceInternal(recognizeOptions.playPrompt)\n : undefined,\n playPrompts:\n recognizeOptions.playPrompts !== undefined\n ? recognizeOptions.playPrompts.map((source) => this.createPlaySourceInternal(source))\n : undefined,\n interruptCallMediaOperation: recognizeOptions.interruptCallMediaOperation,\n recognizeOptions: recognizeOptionsInternal,\n operationContext: recognizeOptions.operationContext,\n operationCallbackUri: recognizeOptions.operationCallbackUrl,\n };\n } else if (recognizeOptions.kind === \"callMediaRecognizeChoiceOptions\") {\n const recognizeOptionsInternal: RecognizeOptions = {\n interruptPrompt: recognizeOptions.interruptPrompt,\n initialSilenceTimeoutInSeconds: recognizeOptions.initialSilenceTimeoutInSeconds\n ? recognizeOptions.initialSilenceTimeoutInSeconds\n : 5,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n speechLanguage: recognizeOptions.speechLanguage,\n speechRecognitionModelEndpointId: recognizeOptions.speechRecognitionModelEndpointId,\n choices: recognizeOptions.choices,\n };\n return {\n recognizeInputType: KnownRecognizeInputType.Choices,\n playPrompt: recognizeOptions.playPrompt\n ? this.createPlaySourceInternal(recognizeOptions.playPrompt)\n : undefined,\n playPrompts:\n recognizeOptions.playPrompts !== undefined\n ? recognizeOptions.playPrompts.map((source) => this.createPlaySourceInternal(source))\n : undefined,\n interruptCallMediaOperation: recognizeOptions.interruptCallMediaOperation,\n recognizeOptions: recognizeOptionsInternal,\n operationContext: recognizeOptions.operationContext,\n operationCallbackUri: recognizeOptions.operationCallbackUrl,\n };\n } else if (recognizeOptions.kind === \"callMediaRecognizeSpeechOptions\") {\n const speechOptions: SpeechOptions = {\n endSilenceTimeoutInMs: recognizeOptions.endSilenceTimeoutInSeconds\n ? recognizeOptions.endSilenceTimeoutInSeconds * 1000\n : 2000,\n };\n const recognizeOptionsInternal: RecognizeOptions = {\n interruptPrompt: recognizeOptions.interruptPrompt,\n initialSilenceTimeoutInSeconds: recognizeOptions.initialSilenceTimeoutInSeconds\n ? recognizeOptions.initialSilenceTimeoutInSeconds\n : 5,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n speechOptions: speechOptions,\n speechLanguage: recognizeOptions.speechLanguage,\n speechRecognitionModelEndpointId: recognizeOptions.speechRecognitionModelEndpointId,\n };\n return {\n recognizeInputType: KnownRecognizeInputType.Speech,\n playPrompt: recognizeOptions.playPrompt\n ? this.createPlaySourceInternal(recognizeOptions.playPrompt)\n : undefined,\n playPrompts:\n recognizeOptions.playPrompts !== undefined\n ? recognizeOptions.playPrompts.map((source) => this.createPlaySourceInternal(source))\n : undefined,\n interruptCallMediaOperation: recognizeOptions.interruptCallMediaOperation,\n recognizeOptions: recognizeOptionsInternal,\n operationContext: recognizeOptions.operationContext,\n operationCallbackUri: recognizeOptions.operationCallbackUrl,\n };\n } else if (recognizeOptions.kind === \"callMediaRecognizeSpeechOrDtmfOptions\") {\n const dtmfOptionsInternal: DtmfOptions = {\n interToneTimeoutInSeconds: recognizeOptions.interToneTimeoutInSeconds\n ? recognizeOptions.interToneTimeoutInSeconds\n : 2,\n maxTonesToCollect: recognizeOptions.maxTonesToCollect,\n stopTones: recognizeOptions.stopDtmfTones,\n };\n const speechOptions: SpeechOptions = {\n endSilenceTimeoutInMs: recognizeOptions.endSilenceTimeoutInSeconds\n ? recognizeOptions.endSilenceTimeoutInSeconds * 1000\n : 2000,\n };\n const recognizeOptionsInternal: RecognizeOptions = {\n interruptPrompt: recognizeOptions.interruptPrompt,\n initialSilenceTimeoutInSeconds: recognizeOptions.initialSilenceTimeoutInSeconds\n ? recognizeOptions.initialSilenceTimeoutInSeconds\n : 5,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n speechOptions: speechOptions,\n dtmfOptions: dtmfOptionsInternal,\n speechRecognitionModelEndpointId: recognizeOptions.speechRecognitionModelEndpointId,\n };\n return {\n recognizeInputType: KnownRecognizeInputType.SpeechOrDtmf,\n playPrompt: recognizeOptions.playPrompt\n ? this.createPlaySourceInternal(recognizeOptions.playPrompt)\n : undefined,\n playPrompts:\n recognizeOptions.playPrompts !== undefined\n ? recognizeOptions.playPrompts.map((source) => this.createPlaySourceInternal(source))\n : undefined,\n interruptCallMediaOperation: recognizeOptions.interruptCallMediaOperation,\n recognizeOptions: recognizeOptionsInternal,\n operationContext: recognizeOptions.operationContext,\n operationCallbackUri: recognizeOptions.operationCallbackUrl,\n };\n }\n throw new Error(\"Invalid recognizeOptions\");\n }\n\n /**\n * Recognize participant input.\n * @deprecated This method signature is deprecated. Please use the new signature with targetParticipant and options params instead, and set maxTonesToCollect in options.\n * @param targetParticipant - Target participant.\n * @param maxTonesToCollect - Maximum number of DTMF tones to be collected.\n * @param options - Different attributes for recognize.\n * */\n public async startRecognizing(\n targetParticipant: CommunicationIdentifier,\n maxTonesToCollect: number,\n options: CallMediaRecognizeDtmfOptions,\n ): Promise<StartRecognizingResult>;\n\n /**\n * Recognize participant input.\n * @param targetParticipant - Target participant.\n * @param options - Different attributes for recognize.\n * */\n public async startRecognizing(\n targetParticipant: CommunicationIdentifier,\n options:\n | CallMediaRecognizeDtmfOptions\n | CallMediaRecognizeChoiceOptions\n | CallMediaRecognizeSpeechOptions\n | CallMediaRecognizeSpeechOrDtmfOptions,\n ): Promise<StartRecognizingResult>;\n async startRecognizing(\n targetParticipant: CommunicationIdentifier,\n maxTonesOrOptions:\n | number\n | CallMediaRecognizeDtmfOptions\n | CallMediaRecognizeChoiceOptions\n | CallMediaRecognizeSpeechOptions\n | CallMediaRecognizeSpeechOrDtmfOptions,\n options?: CallMediaRecognizeDtmfOptions,\n ): Promise<StartRecognizingResult> {\n if (typeof maxTonesOrOptions === \"number\" && options) {\n // Old function signature logic\n console.warn(\n \"Deprecated function signature used. Please use the new signature with targetParticipant and options params instead, and set maxTonesToCollect in options.\",\n );\n options.maxTonesToCollect = maxTonesOrOptions;\n await this.callMedia.recognize(\n this.callConnectionId,\n this.createRecognizeRequest(targetParticipant, options),\n {},\n );\n } else if (typeof maxTonesOrOptions !== \"number\" && !options) {\n maxTonesOrOptions.operationContext = maxTonesOrOptions.operationContext\n ? maxTonesOrOptions.operationContext\n : randomUUID();\n // New function signature logic\n await this.callMedia.recognize(\n this.callConnectionId,\n this.createRecognizeRequest(targetParticipant, maxTonesOrOptions),\n {},\n );\n const startRecognizingResult: StartRecognizingResult = {\n waitForEventProcessor: async (abortSignal, timeoutInMs) => {\n const startRecognizingEventResult: StartRecognizingEventResult = {\n isSuccess: false,\n };\n await this.callAutomationEventProcessor.waitForEventProcessor(\n (event) => {\n if (\n event.callConnectionId === this.callConnectionId &&\n event.kind === \"RecognizeCompleted\" &&\n event.operationContext === maxTonesOrOptions.operationContext\n ) {\n startRecognizingEventResult.isSuccess = true;\n startRecognizingEventResult.successResult = event;\n return true;\n } else if (\n event.callConnectionId === this.callConnectionId &&\n event.kind === \"RecognizeFailed\" &&\n event.operationContext === maxTonesOrOptions.operationContext\n ) {\n startRecognizingEventResult.isSuccess = false;\n startRecognizingEventResult.failureResult = event;\n return true;\n } else {\n return false;\n }\n },\n abortSignal,\n timeoutInMs,\n );\n return startRecognizingEventResult;\n },\n };\n return startRecognizingResult;\n }\n throw new Error(\"Invalid params\");\n }\n\n /**\n * Cancels all the queued media operations.\n */\n public async cancelAllOperations(): Promise<CancelAllMediaOperationsResult> {\n await this.callMedia.cancelAllMediaOperations(this.callConnectionId, {});\n\n const cancelAllMediaOperationsResult: CancelAllMediaOperationsResult = {\n waitForEventProcessor: async (abortSignal, timeoutInMs) => {\n const cancelAllMediaOperationsEventResult: CancelAllMediaOperationsEventResult = {\n isSuccess: false,\n };\n await this.callAutomationEventProcessor.waitForEventProcessor(\n (event) => {\n if (event.callConnectionId === this.callConnectionId && event.kind === \"PlayCanceled\") {\n cancelAllMediaOperationsEventResult.isSuccess = true;\n cancelAllMediaOperationsEventResult.playCanceledSuccessResult = event;\n return true;\n } else if (\n event.callConnectionId === this.callConnectionId &&\n event.kind === \"RecognizeCanceled\"\n ) {\n cancelAllMediaOperationsEventResult.isSuccess = false;\n cancelAllMediaOperationsEventResult.recognizeCanceledSuccessResult = event;\n return true;\n } else {\n return false;\n }\n },\n abortSignal,\n timeoutInMs,\n );\n return cancelAllMediaOperationsEventResult;\n },\n };\n return cancelAllMediaOperationsResult;\n }\n\n /**\n * Start continuous Dtmf recognition by subscribing to tones.\n * @param targetParticipant - Target participant.\n * @param options - Additional attributes for continuous Dtmf recognition.\n * */\n public async startContinuousDtmfRecognition(\n targetParticipant: CommunicationIdentifier,\n options: ContinuousDtmfRecognitionOptions = {},\n ): Promise<void> {\n const continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest = {\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n operationContext: options.operationContext ? options.operationContext : randomUUID(),\n };\n return this.callMedia.startContinuousDtmfRecognition(\n this.callConnectionId,\n continuousDtmfRecognitionRequest,\n {},\n );\n }\n\n /**\n * Stop continuous Dtmf recognition by unsubscribing to tones.\n * @param targetParticipant - Target participant.\n * @param options - Additional attributes for continuous Dtmf recognition.\n * */\n public async stopContinuousDtmfRecognition(\n targetParticipant: CommunicationIdentifier,\n options: ContinuousDtmfRecognitionOptions = {},\n ): Promise<void> {\n const continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest = {\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n operationContext: options.operationContext ? options.operationContext : randomUUID(),\n operationCallbackUri: options.operationCallbackUrl,\n };\n return this.callMedia.stopContinuousDtmfRecognition(\n this.callConnectionId,\n continuousDtmfRecognitionRequest,\n {},\n );\n }\n\n /**\n * Send Dtmf tones.\n * @param tones - List of tones to be sent to target participant.\n * @param targetParticipant - Target participant.\n * @param options - Additional attributes for send Dtmf tones.\n * */\n public async sendDtmfTones(\n tones: Tone[] | DtmfTone[],\n targetParticipant: CommunicationIdentifier,\n options: SendDtmfTonesOptions = {},\n ): Promise<SendDtmfTonesResult> {\n const sendDtmfTonesRequest: SendDtmfTonesRequest = {\n tones: tones,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n operationContext: options.operationContext ? options.operationContext : randomUUID(),\n operationCallbackUri: options.operationCallbackUrl,\n };\n await this.callMedia.sendDtmfTones(this.callConnectionId, sendDtmfTonesRequest, {});\n\n const sendDtmfTonesResult: SendDtmfTonesResult = {\n waitForEventProcessor: async (abortSignal, timeoutInMs) => {\n const sendDtmfEventResult: SendDtmfEventResult = {\n isSuccess: false,\n };\n await this.callAutomationEventProcessor.waitForEventProcessor(\n (event) => {\n if (\n event.callConnectionId === this.callConnectionId &&\n event.kind === \"SendDtmfTonesCompleted\" &&\n event.operationContext === sendDtmfTonesResult.operationContext\n ) {\n sendDtmfEventResult.isSuccess = true;\n sendDtmfEventResult.successResult = event;\n return true;\n } else if (\n event.callConnectionId === this.callConnectionId &&\n event.kind === \"SendDtmfTonesFailed\" &&\n event.operationContext === sendDtmfTonesResult.operationContext\n ) {\n sendDtmfEventResult.isSuccess = false;\n sendDtmfEventResult.failureResult = event;\n return true;\n } else {\n return false;\n }\n },\n abortSignal,\n timeoutInMs,\n );\n return sendDtmfEventResult;\n },\n };\n return sendDtmfTonesResult;\n }\n\n /**\n * Put participant on hold while playing audio.\n *\n * @param targetParticipant - The targets to play to.\n * @param options - Additional attributes for hold participant.\n */\n public async hold(\n targetParticipant: CommunicationIdentifier,\n options: HoldOptions = {},\n ): Promise<void> {\n const holdRequest: HoldRequest = {\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n playSourceInfo:\n options.playSource !== undefined\n ? this.createPlaySourceInternal(options.playSource)\n : undefined,\n operationContext:\n options.operationContext !== undefined ? options.operationContext : undefined,\n operationCallbackUri:\n options.operationCallbackUri !== undefined ? options.operationCallbackUri : undefined,\n };\n return this.callMedia.hold(this.callConnectionId, holdRequest);\n }\n\n /**\n * Remove participant from hold.\n *\n * @param targetParticipant - The targets to play to.\n * @param options - Additional attributes for unhold participant.\n */\n public async unhold(\n targetParticipant: CommunicationIdentifier,\n options: UnholdOptions = {},\n ): Promise<void> {\n const unholdRequest: UnholdRequest = {\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n operationContext:\n options.operationContext !== undefined ? options.operationContext : undefined,\n };\n return this.callMedia.unhold(this.callConnectionId, unholdRequest);\n }\n\n /**\n * Starts transcription in the call\n * @param options - Additional attributes for start transcription.\n */\n public async startTranscription(options: StartTranscriptionOptions = {}): Promise<void> {\n const startTranscriptionRequest: StartTranscriptionRequest = {\n locale: options.locale,\n operationContext: options.operationContext,\n speechModelEndpointId: options.speechRecognitionModelEndpointId,\n operationCallbackUri: options.operationCallbackUrl,\n };\n return this.callMedia.startTranscription(this.callConnectionId, startTranscriptionRequest, {});\n }\n\n /**\n * Stops transcription in the call.\n * @param options - Additional attributes for stop transcription.\n */\n public async stopTranscription(options: StopTranscriptionOptions = {}): Promise<void> {\n const stopTranscriptionRequest: StopTranscriptionRequest = {\n operationContext: options.operationContext,\n operationCallbackUri: options.operationCallbackUrl,\n };\n return this.callMedia.stopTranscription(this.callConnectionId, stopTranscriptionRequest, {});\n }\n\n /**\n * Update transcription language.\n * @param locale - Defines new locale for transcription.\n */\n public async updateTranscription(\n locale: string,\n options?: UpdateTranscriptionOptions,\n ): Promise<void> {\n const updateTranscriptionRequest: UpdateTranscriptionRequest = {\n locale: locale,\n speechModelEndpointId: options?.speechRecognitionModelEndpointId,\n operationContext: options?.operationContext,\n operationCallbackUri: options?.operationCallbackUrl,\n };\n return this.callMedia.updateTranscription(\n this.callConnectionId,\n updateTranscriptionRequest,\n {},\n );\n }\n /**\n * Starts media streaming in the call.\n * @param options - Additional attributes for start media streaming.\n */\n public async startMediaStreaming(options: StartMediaStreamingOptions = {}): Promise<void> {\n const startMediaStreamingRequest: StartMediaStreamingRequest = {\n operationContext: options.operationContext,\n operationCallbackUri: options.operationCallbackUrl,\n };\n return this.callMedia.startMediaStreaming(\n this.callConnectionId,\n startMediaStreamingRequest,\n options,\n );\n }\n\n /**\n * Stops media streaming in the call.\n * @param options - Additional attributes for stop media streaming.\n */\n public async stopMediaStreaming(options: StopMediaStreamingOptions = {}): Promise<void> {\n const stopMediaStreamingRequest: StopMediaStreamingRequest = {\n operationCallbackUri: options.operationCallbackUrl,\n operationContext: options.operationContext,\n };\n return this.callMedia.stopMediaStreaming(\n this.callConnectionId,\n stopMediaStreamingRequest,\n options,\n );\n }\n\n /**\n * Interrupt audio and announce to specific participant.\n *\n * @param playSources - A PlaySource representing the sources to play.\n * @param playTo - The targets to play to.\n * @param options - Additional attributes for interrupt audio and announce.\n */\n public async interruptAudioAndAnnounce(\n playSources: (FileSource | TextSource | SsmlSource)[],\n playTo: CommunicationIdentifier,\n options: InterruptAudioAndAnnounceOptions = {},\n ): Promise<void> {\n const interruptAudioAndAnnounceRequest: InterruptAudioAndAnnounceRequest = {\n playSources: playSources.map((source) => this.createPlaySourceInternal(source)),\n playTo: serializeCommunicationIdentifier(playTo),\n operationContext: options.operationContext,\n };\n return this.callMedia.interruptAudioAndAnnounce(\n this.callConnectionId,\n interruptAudioAndAnnounceRequest,\n );\n }\n}\n"]}
1
+ {"version":3,"file":"callMedia.js","sourceRoot":"","sources":["../../src/callMedia.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EASL,uBAAuB,GAcxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAGpE,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAuBrC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C;;GAEG;AACH,MAAM,OAAO,SAAS;IACH,gBAAgB,CAAS;IACzB,SAAS,CAAgB;IACzB,uBAAuB,CAA0B;IAClE,YACE,gBAAwB,EACxB,QAAgB,EAChB,UAA2C,EAC3C,OAA+C;QAE/C,IAAI,CAAC,uBAAuB,GAAG,IAAI,uBAAuB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC9E,MAAM,UAAU,GAAG,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAC7D,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC,SAAS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xE,MAAM,EAAE,OAAO,CAAC,oBAAoB,EAAE,MAAM;aAC7C;SACF,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,mBAAmB,CAAC,UAAsC,EAAE;QACvE,MAAM,0BAA0B,GAA+B;YAC7D,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;SACnD,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,mBAAmB,CACvC,IAAI,CAAC,gBAAgB,EACrB,0BAA0B,EAC1B,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,kBAAkB,CAAC,UAAqC,EAAE;QACrE,MAAM,yBAAyB,GAA8B;YAC3D,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;YAClD,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;SAC3C,CAAC;QACF,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,CACtC,IAAI,CAAC,gBAAgB,EACrB,yBAAyB,EACzB,OAAO,CACR,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PlayRequest,\n PlaySourceInternal,\n FileSourceInternal,\n TextSourceInternal,\n SsmlSourceInternal,\n RecognizeRequest,\n RecognizeOptions,\n DtmfOptions,\n CallAutomationApiClient,\n CallAutomationApiClientOptionalParams,\n ContinuousDtmfRecognitionRequest,\n SendDtmfTonesRequest,\n Tone,\n SpeechOptions,\n StartTranscriptionRequest,\n StopTranscriptionRequest,\n UpdateTranscriptionRequest,\n HoldRequest,\n UnholdRequest,\n StartMediaStreamingRequest,\n StopMediaStreamingRequest,\n SummarizeCallRequest,\n} from \"./generated/src/index.js\";\nimport { KnownPlaySourceType, KnownRecognizeInputType } from \"./generated/src/index.js\";\n\nimport { CallMediaImpl } from \"./generated/src/operations/index.js\";\n\nimport type { CommunicationIdentifier } from \"@azure/communication-common\";\nimport {\n createCommunicationAuthPolicy,\n serializeCommunicationIdentifier,\n} from \"@azure/communication-common\";\n\nimport type { FileSource, TextSource, SsmlSource, DtmfTone } from \"./models/models.js\";\nimport type {\n PlayOptions,\n CallMediaRecognizeDtmfOptions,\n CallMediaRecognizeChoiceOptions,\n ContinuousDtmfRecognitionOptions,\n SendDtmfTonesOptions,\n CallMediaRecognizeSpeechOptions,\n CallMediaRecognizeSpeechOrDtmfOptions,\n StartTranscriptionOptions,\n StopTranscriptionOptions,\n HoldOptions,\n UnholdOptions,\n StartMediaStreamingOptions,\n StopMediaStreamingOptions,\n PlayToAllOptions,\n UpdateTranscriptionOptions,\n SummarizeCallOptions,\n} from \"./models/options.js\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport type { SendDtmfTonesResult } from \"./models/responses.js\";\nimport { randomUUID } from \"@azure/core-util\";\n/**\n * CallMedia class represents call media related APIs.\n */\nexport class CallMedia {\n private readonly callConnectionId: string;\n private readonly callMedia: CallMediaImpl;\n private readonly callAutomationApiClient: CallAutomationApiClient;\n constructor(\n callConnectionId: string,\n endpoint: string,\n credential: KeyCredential | TokenCredential,\n options?: CallAutomationApiClientOptionalParams,\n ) {\n this.callAutomationApiClient = new CallAutomationApiClient(endpoint, options);\n const authPolicy = createCommunicationAuthPolicy(credential);\n this.callAutomationApiClient.pipeline.addPolicy(authPolicy);\n this.callConnectionId = callConnectionId;\n this.callMedia = new CallMediaImpl(this.callAutomationApiClient);\n }\n\n private createPlaySourceInternal(\n playSource: FileSource | TextSource | SsmlSource,\n ): PlaySourceInternal {\n if (playSource.kind === \"fileSource\") {\n const fileSource: FileSourceInternal = {\n uri: playSource.url,\n };\n return {\n kind: KnownPlaySourceType.File,\n file: fileSource,\n playSourceCacheId: playSource.playSourceCacheId\n ? playSource.playSourceCacheId\n : playSource.playsourcacheid,\n };\n } else if (playSource.kind === \"textSource\") {\n const textSource: TextSourceInternal = {\n text: playSource.text,\n sourceLocale: playSource.sourceLocale,\n voiceKind: playSource.voiceKind,\n voiceName: playSource.voiceName,\n customVoiceEndpointId: playSource.customVoiceEndpointId,\n };\n return {\n kind: KnownPlaySourceType.Text,\n text: textSource,\n playSourceCacheId: playSource.playSourceCacheId\n ? playSource.playSourceCacheId\n : playSource.playsourcacheid,\n };\n } else if (playSource.kind === \"ssmlSource\") {\n const ssmlSource: SsmlSourceInternal = {\n ssmlText: playSource.ssmlText,\n customVoiceEndpointId: playSource.customVoiceEndpointId,\n };\n return {\n kind: KnownPlaySourceType.Ssml,\n ssml: ssmlSource,\n playSourceCacheId: playSource.playSourceCacheId\n ? playSource.playSourceCacheId\n : playSource.playsourcacheid,\n };\n }\n throw new Error(\"Invalid play source\");\n }\n\n /**\n * Play audio to a specific participant.\n *\n * @param playSources - A PlaySource representing the sources to play. Currently only single play source per request is supported.\n * @param playTo - The targets to play to.\n * @param options - Additional attributes for play.\n */\n public async play(\n playSources: (FileSource | TextSource | SsmlSource)[],\n playTo: CommunicationIdentifier[],\n options: PlayOptions = { loop: false },\n ): Promise<void> {\n const playRequest: PlayRequest = {\n playSources: playSources.map((source) => this.createPlaySourceInternal(source)),\n playTo: playTo.map((identifier) => serializeCommunicationIdentifier(identifier)),\n playOptions: {\n loop: false,\n },\n operationContext: options.operationContext,\n operationCallbackUri: options.operationCallbackUrl,\n };\n\n if (options.loop !== undefined) {\n playRequest.playOptions = playRequest.playOptions || { loop: false }; // Ensure playOptions is defined\n playRequest.playOptions.loop = options.loop;\n }\n await this.callMedia.play(this.callConnectionId, playRequest, options);\n }\n\n /**\n * Play to all participants.\n *\n * @param playSources - A PlaySource representing the sources to play. Currently only single play source per request is supported.\n * @param options - Additional attributes for play.\n */\n public async playToAll(\n playSources: (FileSource | TextSource | SsmlSource)[],\n options: PlayToAllOptions = { loop: false },\n ): Promise<void> {\n const playRequest: PlayRequest = {\n playSources: playSources.map((source) => this.createPlaySourceInternal(source)),\n playTo: [],\n playOptions: {\n loop: false,\n },\n operationContext: options.operationContext ? options.operationContext : randomUUID(),\n operationCallbackUri: options.operationCallbackUrl,\n };\n\n if (options.loop !== undefined) {\n playRequest.playOptions = playRequest.playOptions || { loop: false }; // Ensure playOptions is defined\n playRequest.playOptions.loop = options.loop;\n }\n\n if (options.interruptCallMediaOperation !== undefined) {\n playRequest.playOptions = playRequest.playOptions || {\n loop: false,\n }; // Ensure playOptions is defined\n playRequest.interruptCallMediaOperation = options.interruptCallMediaOperation;\n }\n\n await this.callMedia.play(this.callConnectionId, playRequest, options);\n }\n\n private createRecognizeRequest(\n targetParticipant: CommunicationIdentifier,\n recognizeOptions:\n | CallMediaRecognizeDtmfOptions\n | CallMediaRecognizeChoiceOptions\n | CallMediaRecognizeSpeechOptions\n | CallMediaRecognizeSpeechOrDtmfOptions,\n ): RecognizeRequest {\n if (recognizeOptions.kind === \"callMediaRecognizeDtmfOptions\") {\n const dtmfOptionsInternal: DtmfOptions = {\n interToneTimeoutInSeconds: recognizeOptions.interToneTimeoutInSeconds\n ? recognizeOptions.interToneTimeoutInSeconds\n : 2,\n maxTonesToCollect: recognizeOptions.maxTonesToCollect,\n stopTones: recognizeOptions.stopDtmfTones,\n };\n const recognizeOptionsInternal: RecognizeOptions = {\n interruptPrompt: recognizeOptions.interruptPrompt,\n initialSilenceTimeoutInSeconds: recognizeOptions.initialSilenceTimeoutInSeconds\n ? recognizeOptions.initialSilenceTimeoutInSeconds\n : 5,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n dtmfOptions: dtmfOptionsInternal,\n };\n return {\n recognizeInputType: KnownRecognizeInputType.Dtmf,\n playPrompt: recognizeOptions.playPrompt\n ? this.createPlaySourceInternal(recognizeOptions.playPrompt)\n : undefined,\n playPrompts:\n recognizeOptions.playPrompts !== undefined\n ? recognizeOptions.playPrompts.map((source) => this.createPlaySourceInternal(source))\n : undefined,\n interruptCallMediaOperation: recognizeOptions.interruptCallMediaOperation,\n recognizeOptions: recognizeOptionsInternal,\n operationContext: recognizeOptions.operationContext,\n operationCallbackUri: recognizeOptions.operationCallbackUrl,\n };\n } else if (recognizeOptions.kind === \"callMediaRecognizeChoiceOptions\") {\n const recognizeOptionsInternal: RecognizeOptions = {\n interruptPrompt: recognizeOptions.interruptPrompt,\n initialSilenceTimeoutInSeconds: recognizeOptions.initialSilenceTimeoutInSeconds\n ? recognizeOptions.initialSilenceTimeoutInSeconds\n : 5,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n speechLanguage: recognizeOptions.speechLanguage,\n speechLanguages: recognizeOptions.speechLanguages,\n enableSentimentAnalysis: recognizeOptions.enableSentimentAnalysis,\n speechRecognitionModelEndpointId: recognizeOptions.speechRecognitionModelEndpointId,\n choices: recognizeOptions.choices,\n };\n return {\n recognizeInputType: KnownRecognizeInputType.Choices,\n playPrompt: recognizeOptions.playPrompt\n ? this.createPlaySourceInternal(recognizeOptions.playPrompt)\n : undefined,\n playPrompts:\n recognizeOptions.playPrompts !== undefined\n ? recognizeOptions.playPrompts.map((source) => this.createPlaySourceInternal(source))\n : undefined,\n interruptCallMediaOperation: recognizeOptions.interruptCallMediaOperation,\n recognizeOptions: recognizeOptionsInternal,\n operationContext: recognizeOptions.operationContext,\n operationCallbackUri: recognizeOptions.operationCallbackUrl,\n };\n } else if (recognizeOptions.kind === \"callMediaRecognizeSpeechOptions\") {\n const speechOptions: SpeechOptions = {\n endSilenceTimeoutInMs: recognizeOptions.endSilenceTimeoutInSeconds\n ? recognizeOptions.endSilenceTimeoutInSeconds * 1000\n : 2000,\n };\n const recognizeOptionsInternal: RecognizeOptions = {\n interruptPrompt: recognizeOptions.interruptPrompt,\n initialSilenceTimeoutInSeconds: recognizeOptions.initialSilenceTimeoutInSeconds\n ? recognizeOptions.initialSilenceTimeoutInSeconds\n : 5,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n speechOptions: speechOptions,\n speechLanguage: recognizeOptions.speechLanguage,\n speechLanguages: recognizeOptions.speechLanguages,\n enableSentimentAnalysis: recognizeOptions.enableSentimentAnalysis,\n speechRecognitionModelEndpointId: recognizeOptions.speechRecognitionModelEndpointId,\n };\n return {\n recognizeInputType: KnownRecognizeInputType.Speech,\n playPrompt: recognizeOptions.playPrompt\n ? this.createPlaySourceInternal(recognizeOptions.playPrompt)\n : undefined,\n playPrompts:\n recognizeOptions.playPrompts !== undefined\n ? recognizeOptions.playPrompts.map((source) => this.createPlaySourceInternal(source))\n : undefined,\n interruptCallMediaOperation: recognizeOptions.interruptCallMediaOperation,\n recognizeOptions: recognizeOptionsInternal,\n operationContext: recognizeOptions.operationContext,\n operationCallbackUri: recognizeOptions.operationCallbackUrl,\n };\n } else if (recognizeOptions.kind === \"callMediaRecognizeSpeechOrDtmfOptions\") {\n const dtmfOptionsInternal: DtmfOptions = {\n interToneTimeoutInSeconds: recognizeOptions.interToneTimeoutInSeconds\n ? recognizeOptions.interToneTimeoutInSeconds\n : 2,\n maxTonesToCollect: recognizeOptions.maxTonesToCollect,\n stopTones: recognizeOptions.stopDtmfTones,\n };\n const speechOptions: SpeechOptions = {\n endSilenceTimeoutInMs: recognizeOptions.endSilenceTimeoutInSeconds\n ? recognizeOptions.endSilenceTimeoutInSeconds * 1000\n : 2000,\n };\n const recognizeOptionsInternal: RecognizeOptions = {\n interruptPrompt: recognizeOptions.interruptPrompt,\n initialSilenceTimeoutInSeconds: recognizeOptions.initialSilenceTimeoutInSeconds\n ? recognizeOptions.initialSilenceTimeoutInSeconds\n : 5,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n speechOptions: speechOptions,\n dtmfOptions: dtmfOptionsInternal,\n speechLanguages: recognizeOptions.speechLanguages,\n enableSentimentAnalysis: recognizeOptions.enableSentimentAnalysis,\n speechRecognitionModelEndpointId: recognizeOptions.speechRecognitionModelEndpointId,\n };\n return {\n recognizeInputType: KnownRecognizeInputType.SpeechOrDtmf,\n playPrompt: recognizeOptions.playPrompt\n ? this.createPlaySourceInternal(recognizeOptions.playPrompt)\n : undefined,\n playPrompts:\n recognizeOptions.playPrompts !== undefined\n ? recognizeOptions.playPrompts.map((source) => this.createPlaySourceInternal(source))\n : undefined,\n interruptCallMediaOperation: recognizeOptions.interruptCallMediaOperation,\n recognizeOptions: recognizeOptionsInternal,\n operationContext: recognizeOptions.operationContext,\n operationCallbackUri: recognizeOptions.operationCallbackUrl,\n };\n }\n throw new Error(\"Invalid recognizeOptions\");\n }\n\n /**\n * Recognize participant input.\n * @deprecated This method signature is deprecated. Please use the new signature with targetParticipant and options params instead, and set maxTonesToCollect in options.\n * @param targetParticipant - Target participant.\n * @param maxTonesToCollect - Maximum number of DTMF tones to be collected.\n * @param options - Different attributes for recognize.\n * */\n public async startRecognizing(\n targetParticipant: CommunicationIdentifier,\n maxTonesToCollect: number,\n options: CallMediaRecognizeDtmfOptions,\n ): Promise<void>;\n\n /**\n * Recognize participant input.\n * @param targetParticipant - Target participant.\n * @param options - Different attributes for recognize.\n * */\n public async startRecognizing(\n targetParticipant: CommunicationIdentifier,\n options:\n | CallMediaRecognizeDtmfOptions\n | CallMediaRecognizeChoiceOptions\n | CallMediaRecognizeSpeechOptions\n | CallMediaRecognizeSpeechOrDtmfOptions,\n ): Promise<void>;\n async startRecognizing(\n targetParticipant: CommunicationIdentifier,\n maxTonesOrOptions:\n | number\n | CallMediaRecognizeDtmfOptions\n | CallMediaRecognizeChoiceOptions\n | CallMediaRecognizeSpeechOptions\n | CallMediaRecognizeSpeechOrDtmfOptions,\n options?: CallMediaRecognizeDtmfOptions,\n ): Promise<void> {\n if (typeof maxTonesOrOptions === \"number\" && options) {\n // Old function signature logic\n console.warn(\n \"Deprecated function signature used. Please use the new signature with targetParticipant and options params instead, and set maxTonesToCollect in options.\",\n );\n options.maxTonesToCollect = maxTonesOrOptions;\n return this.callMedia.recognize(\n this.callConnectionId,\n this.createRecognizeRequest(targetParticipant, options),\n {},\n );\n } else if (typeof maxTonesOrOptions !== \"number\" && !options) {\n maxTonesOrOptions.operationContext = maxTonesOrOptions.operationContext\n ? maxTonesOrOptions.operationContext\n : randomUUID();\n // New function signature logic\n return this.callMedia.recognize(\n this.callConnectionId,\n this.createRecognizeRequest(targetParticipant, maxTonesOrOptions),\n {},\n );\n }\n throw new Error(\"Invalid params\");\n }\n\n /**\n * Cancels all the queued media operations.\n */\n public async cancelAllOperations(): Promise<void> {\n await this.callMedia.cancelAllMediaOperations(this.callConnectionId, {});\n }\n\n /**\n * Start continuous Dtmf recognition by subscribing to tones.\n * @param targetParticipant - Target participant.\n * @param options - Additional attributes for continuous Dtmf recognition.\n * */\n public async startContinuousDtmfRecognition(\n targetParticipant: CommunicationIdentifier,\n options: ContinuousDtmfRecognitionOptions = {},\n ): Promise<void> {\n const continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest = {\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n operationContext: options.operationContext,\n };\n return this.callMedia.startContinuousDtmfRecognition(\n this.callConnectionId,\n continuousDtmfRecognitionRequest,\n {},\n );\n }\n\n /**\n * Stop continuous Dtmf recognition by unsubscribing to tones.\n * @param targetParticipant - Target participant.\n * @param options - Additional attributes for continuous Dtmf recognition.\n * */\n public async stopContinuousDtmfRecognition(\n targetParticipant: CommunicationIdentifier,\n options: ContinuousDtmfRecognitionOptions = {},\n ): Promise<void> {\n const continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest = {\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n operationContext: options.operationContext,\n operationCallbackUri: options.operationCallbackUrl,\n };\n return this.callMedia.stopContinuousDtmfRecognition(\n this.callConnectionId,\n continuousDtmfRecognitionRequest,\n {},\n );\n }\n\n /**\n * Send Dtmf tones.\n * @param tones - List of tones to be sent to target participant.\n * @param targetParticipant - Target participant.\n * @param options - Additional attributes for send Dtmf tones.\n * */\n public async sendDtmfTones(\n tones: Tone[] | DtmfTone[],\n targetParticipant: CommunicationIdentifier,\n options: SendDtmfTonesOptions = {},\n ): Promise<SendDtmfTonesResult> {\n const sendDtmfTonesRequest: SendDtmfTonesRequest = {\n tones: tones,\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n operationContext: options.operationContext,\n operationCallbackUri: options.operationCallbackUrl,\n };\n const optionsInternal = {\n ...options,\n repeatabilityFirstSent: new Date(),\n repeatabilityRequestID: randomUUID(),\n };\n const result = await this.callMedia.sendDtmfTones(\n this.callConnectionId,\n sendDtmfTonesRequest,\n optionsInternal,\n );\n\n const sendDtmfTonesResult: SendDtmfTonesResult = {\n ...result,\n };\n return sendDtmfTonesResult;\n }\n\n /**\n * Put participant on hold while playing audio.\n *\n * @param targetParticipant - The targets to play to.\n * @param options - Additional attributes for hold participant.\n */\n public async hold(\n targetParticipant: CommunicationIdentifier,\n options: HoldOptions = {},\n ): Promise<void> {\n const holdRequest: HoldRequest = {\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n playSourceInfo:\n options.playSource !== undefined\n ? this.createPlaySourceInternal(options.playSource)\n : undefined,\n operationContext:\n options.operationContext !== undefined ? options.operationContext : undefined,\n operationCallbackUri:\n options.operationCallbackUrl !== undefined ? options.operationCallbackUrl : undefined,\n };\n return this.callMedia.hold(this.callConnectionId, holdRequest);\n }\n\n /**\n * Remove participant from hold.\n *\n * @param targetParticipant - The targets to play to.\n * @param options - Additional attributes for unhold participant.\n */\n public async unhold(\n targetParticipant: CommunicationIdentifier,\n options: UnholdOptions = {},\n ): Promise<void> {\n const unholdRequest: UnholdRequest = {\n targetParticipant: serializeCommunicationIdentifier(targetParticipant),\n operationContext:\n options.operationContext !== undefined ? options.operationContext : undefined,\n operationCallbackUri:\n options.operationCallbackUrl !== undefined ? options.operationCallbackUrl : undefined,\n };\n return this.callMedia.unhold(this.callConnectionId, unholdRequest);\n }\n\n /**\n * Starts transcription in the call\n * @param locales - List of languages for Language Identification.\n * @param options - Additional attributes for start transcription.\n */\n public async startTranscription(options: StartTranscriptionOptions = {}): Promise<void> {\n const startTranscriptionRequest: StartTranscriptionRequest = {\n locale: options.locale,\n operationContext: options.operationContext,\n speechModelEndpointId: options.speechRecognitionModelEndpointId,\n operationCallbackUri: options.operationCallbackUrl,\n piiRedactionOptions: options.piiRedactionOptions,\n locales: options.locales,\n enableSentimentAnalysis: options.enableSentimentAnalysis,\n summarizationOptions: options.summarizationOptions,\n };\n return this.callMedia.startTranscription(this.callConnectionId, startTranscriptionRequest, {});\n }\n\n /**\n * Stops transcription in the call.\n * @param options - Additional attributes for stop transcription.\n */\n public async stopTranscription(options: StopTranscriptionOptions = {}): Promise<void> {\n const stopTranscriptionRequest: StopTranscriptionRequest = {\n operationContext: options.operationContext,\n operationCallbackUri: options.operationCallbackUrl,\n };\n return this.callMedia.stopTranscription(this.callConnectionId, stopTranscriptionRequest, {});\n }\n\n /**\n * Update transcription language.\n */\n public async updateTranscription(\n locale: string,\n options: UpdateTranscriptionOptions = {},\n ): Promise<void> {\n const updateTranscriptionRequest: UpdateTranscriptionRequest = {\n locale: locale,\n speechModelEndpointId: options.speechRecognitionModelEndpointId,\n operationContext: options.operationContext,\n operationCallbackUri: options.operationCallbackUrl,\n piiRedactionOptions: options.piiRedactionOptions,\n enableSentimentAnalysis: options.enableSentimentAnalysis,\n summarizationOptions: options.summarizationOptions,\n };\n return this.callMedia.updateTranscription(\n this.callConnectionId,\n updateTranscriptionRequest,\n {},\n );\n }\n\n /**\n * Summarize call details.\n * @param options - Additional attributes for summarize call.\n */\n public async summarizeCall(options: SummarizeCallOptions = {}): Promise<void> {\n const summarizeCallRequest: SummarizeCallRequest = {\n operationContext: options.operationContext,\n operationCallbackUri: options.operationCallbackUrl,\n summarizationOptions: {\n enableEndCallSummary: options.summarizationOptions?.enableEndCallSummary,\n locale: options.summarizationOptions?.locale,\n },\n };\n return this.callMedia.summarizeCall(this.callConnectionId, summarizeCallRequest, {});\n }\n\n /**\n * Starts media streaming in the call.\n * @param options - Additional attributes for start media streaming.\n */\n public async startMediaStreaming(options: StartMediaStreamingOptions = {}): Promise<void> {\n const startMediaStreamingRequest: StartMediaStreamingRequest = {\n operationContext: options.operationContext,\n operationCallbackUri: options.operationCallbackUrl,\n };\n return this.callMedia.startMediaStreaming(\n this.callConnectionId,\n startMediaStreamingRequest,\n options,\n );\n }\n\n /**\n * Stops media streaming in the call.\n * @param options - Additional attributes for stop media streaming.\n */\n public async stopMediaStreaming(options: StopMediaStreamingOptions = {}): Promise<void> {\n const stopMediaStreamingRequest: StopMediaStreamingRequest = {\n operationCallbackUri: options.operationCallbackUrl,\n operationContext: options.operationContext,\n };\n return this.callMedia.stopMediaStreaming(\n this.callConnectionId,\n stopMediaStreamingRequest,\n options,\n );\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { CallAutomationApiClientOptionalParams } from "./generated/src/models/index.js";
2
- import type { RecordingResult, RecordingStateResult } from "./models/responses.js";
3
- import type { StartRecordingOptions, StopRecordingOptions, PauseRecordingOptions, GetRecordingPropertiesOptions, GetRecordingResultOptions, ResumeRecordingOptions, DeleteRecordingOptions, DownloadRecordingOptions } from "./models/options.js";
2
+ import type { RecordingStateResult } from "./models/responses.js";
3
+ import type { StartRecordingOptions, StopRecordingOptions, PauseRecordingOptions, GetRecordingPropertiesOptions, ResumeRecordingOptions, DeleteRecordingOptions, DownloadRecordingOptions } from "./models/options.js";
4
4
  import type { KeyCredential, TokenCredential } from "@azure/core-auth";
5
5
  /**
6
6
  * CallRecording class represents call recording related APIs.
@@ -40,12 +40,6 @@ export declare class CallRecording {
40
40
  * @param options - Additional request options contains resumeRecording api options.
41
41
  */
42
42
  resume(recordingId: string, options?: ResumeRecordingOptions): Promise<void>;
43
- /**
44
- * Returns call recording result.
45
- * @param recordingId - The recordingId associated with the recording.
46
- * @param options - Additional request options contains getRecordingProperties api options.
47
- */
48
- getRecordingResult(recordingId: string, options?: GetRecordingResultOptions): Promise<RecordingResult>;
49
43
  /**
50
44
  * Deletes a recording.
51
45
  * @param recordingLocationUrl - The recording location url. Required.
@@ -1 +1 @@
1
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