@azure/communication-call-automation 1.5.0 → 1.6.0-alpha.20250901.2

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 (481) hide show
  1. package/README.md +48 -0
  2. package/dist/browser/callAutomationClient.d.ts +8 -0
  3. package/dist/browser/callAutomationClient.d.ts.map +1 -1
  4. package/dist/browser/callAutomationClient.js +141 -84
  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 +56 -9
  8. package/dist/browser/callAutomationEventParser.js.map +1 -1
  9. package/dist/browser/callConnection.d.ts +15 -5
  10. package/dist/browser/callConnection.d.ts.map +1 -1
  11. package/dist/browser/callConnection.js +193 -86
  12. package/dist/browser/callConnection.js.map +1 -1
  13. package/dist/browser/callMedia.d.ts +19 -9
  14. package/dist/browser/callMedia.d.ts.map +1 -1
  15. package/dist/browser/callMedia.js +175 -28
  16. package/dist/browser/callMedia.js.map +1 -1
  17. package/dist/browser/callRecording.d.ts +8 -2
  18. package/dist/browser/callRecording.d.ts.map +1 -1
  19. package/dist/browser/callRecording.js +26 -16
  20. package/dist/browser/callRecording.js.map +1 -1
  21. package/dist/browser/contentDownloader.js +12 -11
  22. package/dist/browser/contentDownloader.js.map +1 -1
  23. package/dist/browser/credential/callAutomationAccessKeyCredentialPolicy.js +2 -1
  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 +2 -1
  29. package/dist/browser/eventprocessor/callAutomationEventProcessor.d.ts +39 -0
  30. package/dist/browser/eventprocessor/callAutomationEventProcessor.d.ts.map +1 -0
  31. package/dist/browser/eventprocessor/callAutomationEventProcessor.js +137 -0
  32. package/dist/browser/eventprocessor/callAutomationEventProcessor.js.map +1 -0
  33. package/dist/browser/eventprocessor/eventResponses.d.ts +134 -0
  34. package/dist/browser/eventprocessor/eventResponses.d.ts.map +1 -0
  35. package/dist/browser/eventprocessor/eventResponses.js +4 -0
  36. package/dist/browser/eventprocessor/eventResponses.js.map +1 -0
  37. package/dist/browser/generated/src/callAutomationApiClient.d.ts +2 -1
  38. package/dist/browser/generated/src/callAutomationApiClient.d.ts.map +1 -1
  39. package/dist/browser/generated/src/callAutomationApiClient.js +7 -15
  40. package/dist/browser/generated/src/callAutomationApiClient.js.map +1 -1
  41. package/dist/browser/generated/src/models/index.d.ts +1129 -347
  42. package/dist/browser/generated/src/models/index.d.ts.map +1 -1
  43. package/dist/browser/generated/src/models/index.js +159 -75
  44. package/dist/browser/generated/src/models/index.js.map +1 -1
  45. package/dist/browser/generated/src/models/mappers.d.ts +88 -47
  46. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
  47. package/dist/browser/generated/src/models/mappers.js +2136 -499
  48. package/dist/browser/generated/src/models/mappers.js.map +1 -1
  49. package/dist/browser/generated/src/models/parameters.d.ts +8 -1
  50. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -1
  51. package/dist/browser/generated/src/models/parameters.js +45 -6
  52. package/dist/browser/generated/src/models/parameters.js.map +1 -1
  53. package/dist/browser/generated/src/operations/callConnection.d.ts +16 -2
  54. package/dist/browser/generated/src/operations/callConnection.d.ts.map +1 -1
  55. package/dist/browser/generated/src/operations/callConnection.js +105 -24
  56. package/dist/browser/generated/src/operations/callConnection.js.map +1 -1
  57. package/dist/browser/generated/src/operations/callDialog.d.ts +35 -0
  58. package/dist/browser/generated/src/operations/callDialog.d.ts.map +1 -0
  59. package/dist/browser/generated/src/operations/callDialog.js +111 -0
  60. package/dist/browser/generated/src/operations/callDialog.js.map +1 -0
  61. package/dist/browser/generated/src/operations/callMedia.d.ts +15 -8
  62. package/dist/browser/generated/src/operations/callMedia.d.ts.map +1 -1
  63. package/dist/browser/generated/src/operations/callMedia.js +50 -26
  64. package/dist/browser/generated/src/operations/callMedia.js.map +1 -1
  65. package/dist/browser/generated/src/operations/callRecording.d.ts +7 -1
  66. package/dist/browser/generated/src/operations/callRecording.d.ts.map +1 -1
  67. package/dist/browser/generated/src/operations/callRecording.js +24 -1
  68. package/dist/browser/generated/src/operations/callRecording.js.map +1 -1
  69. package/dist/browser/generated/src/operations/index.d.ts +1 -0
  70. package/dist/browser/generated/src/operations/index.d.ts.map +1 -1
  71. package/dist/browser/generated/src/operations/index.js +1 -0
  72. package/dist/browser/generated/src/operations/index.js.map +1 -1
  73. package/dist/browser/generated/src/operationsInterfaces/callConnection.d.ts +16 -2
  74. package/dist/browser/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  75. package/dist/browser/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  76. package/dist/browser/generated/src/operationsInterfaces/callDialog.d.ts +27 -0
  77. package/dist/browser/generated/src/operationsInterfaces/callDialog.d.ts.map +1 -0
  78. package/dist/browser/generated/src/operationsInterfaces/callDialog.js +9 -0
  79. package/dist/browser/generated/src/operationsInterfaces/callDialog.js.map +1 -0
  80. package/dist/browser/generated/src/operationsInterfaces/callMedia.d.ts +15 -8
  81. package/dist/browser/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  82. package/dist/browser/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  83. package/dist/browser/generated/src/operationsInterfaces/callRecording.d.ts +7 -1
  84. package/dist/browser/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
  85. package/dist/browser/generated/src/operationsInterfaces/callRecording.js.map +1 -1
  86. package/dist/browser/generated/src/operationsInterfaces/index.d.ts +1 -0
  87. package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  88. package/dist/browser/generated/src/operationsInterfaces/index.js +1 -0
  89. package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -1
  90. package/dist/browser/generated/src/pagingHelper.js +4 -2
  91. package/dist/browser/generated/src/pagingHelper.js.map +1 -1
  92. package/dist/browser/index.d.ts +2 -0
  93. package/dist/browser/index.d.ts.map +1 -1
  94. package/dist/browser/index.js +2 -0
  95. package/dist/browser/index.js.map +1 -1
  96. package/dist/browser/models/constants.d.ts.map +1 -1
  97. package/dist/browser/models/constants.js +1 -1
  98. package/dist/browser/models/constants.js.map +1 -1
  99. package/dist/browser/models/events.d.ts +336 -296
  100. package/dist/browser/models/events.d.ts.map +1 -1
  101. package/dist/browser/models/events.js.map +1 -1
  102. package/dist/browser/models/models.d.ts +76 -38
  103. package/dist/browser/models/models.d.ts.map +1 -1
  104. package/dist/browser/models/models.js +3 -1
  105. package/dist/browser/models/models.js.map +1 -1
  106. package/dist/browser/models/options.d.ts +34 -4
  107. package/dist/browser/models/options.d.ts.map +1 -1
  108. package/dist/browser/models/options.js.map +1 -1
  109. package/dist/browser/models/responses.d.ts +82 -10
  110. package/dist/browser/models/responses.d.ts.map +1 -1
  111. package/dist/browser/models/responses.js.map +1 -1
  112. package/dist/browser/models/streaming.d.ts +27 -26
  113. package/dist/browser/models/streaming.d.ts.map +1 -1
  114. package/dist/browser/models/streaming.js +57 -28
  115. package/dist/browser/models/streaming.js.map +1 -1
  116. package/dist/browser/streamingData.d.ts.map +1 -1
  117. package/dist/browser/streamingData.js +1 -10
  118. package/dist/browser/streamingData.js.map +1 -1
  119. package/dist/browser/utli/converters.d.ts +26 -2
  120. package/dist/browser/utli/converters.d.ts.map +1 -1
  121. package/dist/browser/utli/converters.js +122 -48
  122. package/dist/browser/utli/converters.js.map +1 -1
  123. package/dist/commonjs/callAutomationClient.d.ts +8 -0
  124. package/dist/commonjs/callAutomationClient.d.ts.map +1 -1
  125. package/dist/commonjs/callAutomationClient.js +139 -82
  126. package/dist/commonjs/callAutomationClient.js.map +1 -1
  127. package/dist/commonjs/callAutomationEventParser.d.ts.map +1 -1
  128. package/dist/commonjs/callAutomationEventParser.js +55 -8
  129. package/dist/commonjs/callAutomationEventParser.js.map +1 -1
  130. package/dist/commonjs/callConnection.d.ts +15 -5
  131. package/dist/commonjs/callConnection.d.ts.map +1 -1
  132. package/dist/commonjs/callConnection.js +194 -87
  133. package/dist/commonjs/callConnection.js.map +1 -1
  134. package/dist/commonjs/callMedia.d.ts +19 -9
  135. package/dist/commonjs/callMedia.d.ts.map +1 -1
  136. package/dist/commonjs/callMedia.js +183 -36
  137. package/dist/commonjs/callMedia.js.map +1 -1
  138. package/dist/commonjs/callRecording.d.ts +8 -2
  139. package/dist/commonjs/callRecording.d.ts.map +1 -1
  140. package/dist/commonjs/callRecording.js +27 -17
  141. package/dist/commonjs/callRecording.js.map +1 -1
  142. package/dist/commonjs/contentDownloader.js +12 -11
  143. package/dist/commonjs/contentDownloader.js.map +1 -1
  144. package/dist/commonjs/credential/callAutomationAccessKeyCredentialPolicy.js +2 -1
  145. package/dist/commonjs/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
  146. package/dist/commonjs/credential/callAutomationAuthPolicy.js +1 -1
  147. package/dist/commonjs/credential/callAutomationAuthPolicy.js.map +1 -1
  148. package/dist/commonjs/eventprocessor/callAutomationEventProcessor.d.ts +39 -0
  149. package/dist/commonjs/eventprocessor/callAutomationEventProcessor.d.ts.map +1 -0
  150. package/dist/commonjs/eventprocessor/callAutomationEventProcessor.js +141 -0
  151. package/dist/commonjs/eventprocessor/callAutomationEventProcessor.js.map +1 -0
  152. package/dist/commonjs/eventprocessor/eventResponses.d.ts +134 -0
  153. package/dist/commonjs/eventprocessor/eventResponses.d.ts.map +1 -0
  154. package/dist/commonjs/eventprocessor/eventResponses.js +5 -0
  155. package/dist/commonjs/eventprocessor/eventResponses.js.map +1 -0
  156. package/dist/commonjs/generated/src/callAutomationApiClient.d.ts +2 -1
  157. package/dist/commonjs/generated/src/callAutomationApiClient.d.ts.map +1 -1
  158. package/dist/commonjs/generated/src/callAutomationApiClient.js +6 -14
  159. package/dist/commonjs/generated/src/callAutomationApiClient.js.map +1 -1
  160. package/dist/commonjs/generated/src/models/index.d.ts +1129 -347
  161. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
  162. package/dist/commonjs/generated/src/models/index.js +160 -76
  163. package/dist/commonjs/generated/src/models/index.js.map +1 -1
  164. package/dist/commonjs/generated/src/models/mappers.d.ts +88 -47
  165. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
  166. package/dist/commonjs/generated/src/models/mappers.js +2139 -502
  167. package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
  168. package/dist/commonjs/generated/src/models/parameters.d.ts +8 -1
  169. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -1
  170. package/dist/commonjs/generated/src/models/parameters.js +45 -6
  171. package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
  172. package/dist/commonjs/generated/src/operations/callConnection.d.ts +16 -2
  173. package/dist/commonjs/generated/src/operations/callConnection.d.ts.map +1 -1
  174. package/dist/commonjs/generated/src/operations/callConnection.js +104 -24
  175. package/dist/commonjs/generated/src/operations/callConnection.js.map +1 -1
  176. package/dist/commonjs/generated/src/operations/callDialog.d.ts +35 -0
  177. package/dist/commonjs/generated/src/operations/callDialog.d.ts.map +1 -0
  178. package/dist/commonjs/generated/src/operations/callDialog.js +116 -0
  179. package/dist/commonjs/generated/src/operations/callDialog.js.map +1 -0
  180. package/dist/commonjs/generated/src/operations/callMedia.d.ts +15 -8
  181. package/dist/commonjs/generated/src/operations/callMedia.d.ts.map +1 -1
  182. package/dist/commonjs/generated/src/operations/callMedia.js +50 -26
  183. package/dist/commonjs/generated/src/operations/callMedia.js.map +1 -1
  184. package/dist/commonjs/generated/src/operations/callRecording.d.ts +7 -1
  185. package/dist/commonjs/generated/src/operations/callRecording.d.ts.map +1 -1
  186. package/dist/commonjs/generated/src/operations/callRecording.js +24 -1
  187. package/dist/commonjs/generated/src/operations/callRecording.js.map +1 -1
  188. package/dist/commonjs/generated/src/operations/index.d.ts +1 -0
  189. package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -1
  190. package/dist/commonjs/generated/src/operations/index.js +1 -0
  191. package/dist/commonjs/generated/src/operations/index.js.map +1 -1
  192. package/dist/commonjs/generated/src/operationsInterfaces/callConnection.d.ts +16 -2
  193. package/dist/commonjs/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  194. package/dist/commonjs/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  195. package/dist/commonjs/generated/src/operationsInterfaces/callDialog.d.ts +27 -0
  196. package/dist/commonjs/generated/src/operationsInterfaces/callDialog.d.ts.map +1 -0
  197. package/dist/commonjs/generated/src/operationsInterfaces/callDialog.js +10 -0
  198. package/dist/commonjs/generated/src/operationsInterfaces/callDialog.js.map +1 -0
  199. package/dist/commonjs/generated/src/operationsInterfaces/callMedia.d.ts +15 -8
  200. package/dist/commonjs/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  201. package/dist/commonjs/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  202. package/dist/commonjs/generated/src/operationsInterfaces/callRecording.d.ts +7 -1
  203. package/dist/commonjs/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
  204. package/dist/commonjs/generated/src/operationsInterfaces/callRecording.js.map +1 -1
  205. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +1 -0
  206. package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  207. package/dist/commonjs/generated/src/operationsInterfaces/index.js +1 -0
  208. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -1
  209. package/dist/commonjs/generated/src/pagingHelper.js +4 -2
  210. package/dist/commonjs/generated/src/pagingHelper.js.map +1 -1
  211. package/dist/commonjs/index.d.ts +2 -0
  212. package/dist/commonjs/index.d.ts.map +1 -1
  213. package/dist/commonjs/index.js +2 -0
  214. package/dist/commonjs/index.js.map +1 -1
  215. package/dist/commonjs/models/constants.d.ts.map +1 -1
  216. package/dist/commonjs/models/constants.js +1 -1
  217. package/dist/commonjs/models/constants.js.map +1 -1
  218. package/dist/commonjs/models/events.d.ts +336 -296
  219. package/dist/commonjs/models/events.d.ts.map +1 -1
  220. package/dist/commonjs/models/events.js.map +1 -1
  221. package/dist/commonjs/models/models.d.ts +76 -38
  222. package/dist/commonjs/models/models.d.ts.map +1 -1
  223. package/dist/commonjs/models/models.js +21 -2
  224. package/dist/commonjs/models/models.js.map +1 -1
  225. package/dist/commonjs/models/options.d.ts +34 -4
  226. package/dist/commonjs/models/options.d.ts.map +1 -1
  227. package/dist/commonjs/models/options.js.map +1 -1
  228. package/dist/commonjs/models/responses.d.ts +82 -10
  229. package/dist/commonjs/models/responses.d.ts.map +1 -1
  230. package/dist/commonjs/models/responses.js.map +1 -1
  231. package/dist/commonjs/models/streaming.d.ts +27 -26
  232. package/dist/commonjs/models/streaming.d.ts.map +1 -1
  233. package/dist/commonjs/models/streaming.js +59 -31
  234. package/dist/commonjs/models/streaming.js.map +1 -1
  235. package/dist/commonjs/streamingData.d.ts.map +1 -1
  236. package/dist/commonjs/streamingData.js +1 -10
  237. package/dist/commonjs/streamingData.js.map +1 -1
  238. package/dist/commonjs/tsdoc-metadata.json +11 -11
  239. package/dist/commonjs/utli/converters.d.ts +26 -2
  240. package/dist/commonjs/utli/converters.d.ts.map +1 -1
  241. package/dist/commonjs/utli/converters.js +127 -47
  242. package/dist/commonjs/utli/converters.js.map +1 -1
  243. package/dist/esm/callAutomationClient.d.ts +8 -0
  244. package/dist/esm/callAutomationClient.d.ts.map +1 -1
  245. package/dist/esm/callAutomationClient.js +141 -84
  246. package/dist/esm/callAutomationClient.js.map +1 -1
  247. package/dist/esm/callAutomationEventParser.d.ts.map +1 -1
  248. package/dist/esm/callAutomationEventParser.js +56 -9
  249. package/dist/esm/callAutomationEventParser.js.map +1 -1
  250. package/dist/esm/callConnection.d.ts +15 -5
  251. package/dist/esm/callConnection.d.ts.map +1 -1
  252. package/dist/esm/callConnection.js +193 -86
  253. package/dist/esm/callConnection.js.map +1 -1
  254. package/dist/esm/callMedia.d.ts +19 -9
  255. package/dist/esm/callMedia.d.ts.map +1 -1
  256. package/dist/esm/callMedia.js +175 -28
  257. package/dist/esm/callMedia.js.map +1 -1
  258. package/dist/esm/callRecording.d.ts +8 -2
  259. package/dist/esm/callRecording.d.ts.map +1 -1
  260. package/dist/esm/callRecording.js +26 -16
  261. package/dist/esm/callRecording.js.map +1 -1
  262. package/dist/esm/contentDownloader.js +12 -11
  263. package/dist/esm/contentDownloader.js.map +1 -1
  264. package/dist/esm/credential/callAutomationAccessKeyCredentialPolicy.js +2 -1
  265. package/dist/esm/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
  266. package/dist/esm/credential/callAutomationAuthPolicy.js +1 -1
  267. package/dist/esm/credential/callAutomationAuthPolicy.js.map +1 -1
  268. package/dist/esm/eventprocessor/callAutomationEventProcessor.d.ts +39 -0
  269. package/dist/esm/eventprocessor/callAutomationEventProcessor.d.ts.map +1 -0
  270. package/dist/esm/eventprocessor/callAutomationEventProcessor.js +137 -0
  271. package/dist/esm/eventprocessor/callAutomationEventProcessor.js.map +1 -0
  272. package/dist/esm/eventprocessor/eventResponses.d.ts +134 -0
  273. package/dist/esm/eventprocessor/eventResponses.d.ts.map +1 -0
  274. package/dist/esm/eventprocessor/eventResponses.js +4 -0
  275. package/dist/esm/eventprocessor/eventResponses.js.map +1 -0
  276. package/dist/esm/generated/src/callAutomationApiClient.d.ts +2 -1
  277. package/dist/esm/generated/src/callAutomationApiClient.d.ts.map +1 -1
  278. package/dist/esm/generated/src/callAutomationApiClient.js +7 -15
  279. package/dist/esm/generated/src/callAutomationApiClient.js.map +1 -1
  280. package/dist/esm/generated/src/models/index.d.ts +1129 -347
  281. package/dist/esm/generated/src/models/index.d.ts.map +1 -1
  282. package/dist/esm/generated/src/models/index.js +159 -75
  283. package/dist/esm/generated/src/models/index.js.map +1 -1
  284. package/dist/esm/generated/src/models/mappers.d.ts +88 -47
  285. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
  286. package/dist/esm/generated/src/models/mappers.js +2136 -499
  287. package/dist/esm/generated/src/models/mappers.js.map +1 -1
  288. package/dist/esm/generated/src/models/parameters.d.ts +8 -1
  289. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -1
  290. package/dist/esm/generated/src/models/parameters.js +45 -6
  291. package/dist/esm/generated/src/models/parameters.js.map +1 -1
  292. package/dist/esm/generated/src/operations/callConnection.d.ts +16 -2
  293. package/dist/esm/generated/src/operations/callConnection.d.ts.map +1 -1
  294. package/dist/esm/generated/src/operations/callConnection.js +105 -24
  295. package/dist/esm/generated/src/operations/callConnection.js.map +1 -1
  296. package/dist/esm/generated/src/operations/callDialog.d.ts +35 -0
  297. package/dist/esm/generated/src/operations/callDialog.d.ts.map +1 -0
  298. package/dist/esm/generated/src/operations/callDialog.js +111 -0
  299. package/dist/esm/generated/src/operations/callDialog.js.map +1 -0
  300. package/dist/esm/generated/src/operations/callMedia.d.ts +15 -8
  301. package/dist/esm/generated/src/operations/callMedia.d.ts.map +1 -1
  302. package/dist/esm/generated/src/operations/callMedia.js +50 -26
  303. package/dist/esm/generated/src/operations/callMedia.js.map +1 -1
  304. package/dist/esm/generated/src/operations/callRecording.d.ts +7 -1
  305. package/dist/esm/generated/src/operations/callRecording.d.ts.map +1 -1
  306. package/dist/esm/generated/src/operations/callRecording.js +24 -1
  307. package/dist/esm/generated/src/operations/callRecording.js.map +1 -1
  308. package/dist/esm/generated/src/operations/index.d.ts +1 -0
  309. package/dist/esm/generated/src/operations/index.d.ts.map +1 -1
  310. package/dist/esm/generated/src/operations/index.js +1 -0
  311. package/dist/esm/generated/src/operations/index.js.map +1 -1
  312. package/dist/esm/generated/src/operationsInterfaces/callConnection.d.ts +16 -2
  313. package/dist/esm/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  314. package/dist/esm/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  315. package/dist/esm/generated/src/operationsInterfaces/callDialog.d.ts +27 -0
  316. package/dist/esm/generated/src/operationsInterfaces/callDialog.d.ts.map +1 -0
  317. package/dist/esm/generated/src/operationsInterfaces/callDialog.js +9 -0
  318. package/dist/esm/generated/src/operationsInterfaces/callDialog.js.map +1 -0
  319. package/dist/esm/generated/src/operationsInterfaces/callMedia.d.ts +15 -8
  320. package/dist/esm/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  321. package/dist/esm/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  322. package/dist/esm/generated/src/operationsInterfaces/callRecording.d.ts +7 -1
  323. package/dist/esm/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
  324. package/dist/esm/generated/src/operationsInterfaces/callRecording.js.map +1 -1
  325. package/dist/esm/generated/src/operationsInterfaces/index.d.ts +1 -0
  326. package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  327. package/dist/esm/generated/src/operationsInterfaces/index.js +1 -0
  328. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -1
  329. package/dist/esm/generated/src/pagingHelper.js +4 -2
  330. package/dist/esm/generated/src/pagingHelper.js.map +1 -1
  331. package/dist/esm/index.d.ts +2 -0
  332. package/dist/esm/index.d.ts.map +1 -1
  333. package/dist/esm/index.js +2 -0
  334. package/dist/esm/index.js.map +1 -1
  335. package/dist/esm/models/constants.d.ts.map +1 -1
  336. package/dist/esm/models/constants.js +1 -1
  337. package/dist/esm/models/constants.js.map +1 -1
  338. package/dist/esm/models/events.d.ts +336 -296
  339. package/dist/esm/models/events.d.ts.map +1 -1
  340. package/dist/esm/models/events.js.map +1 -1
  341. package/dist/esm/models/models.d.ts +76 -38
  342. package/dist/esm/models/models.d.ts.map +1 -1
  343. package/dist/esm/models/models.js +3 -1
  344. package/dist/esm/models/models.js.map +1 -1
  345. package/dist/esm/models/options.d.ts +34 -4
  346. package/dist/esm/models/options.d.ts.map +1 -1
  347. package/dist/esm/models/options.js.map +1 -1
  348. package/dist/esm/models/responses.d.ts +82 -10
  349. package/dist/esm/models/responses.d.ts.map +1 -1
  350. package/dist/esm/models/responses.js.map +1 -1
  351. package/dist/esm/models/streaming.d.ts +27 -26
  352. package/dist/esm/models/streaming.d.ts.map +1 -1
  353. package/dist/esm/models/streaming.js +57 -28
  354. package/dist/esm/models/streaming.js.map +1 -1
  355. package/dist/esm/streamingData.d.ts.map +1 -1
  356. package/dist/esm/streamingData.js +1 -10
  357. package/dist/esm/streamingData.js.map +1 -1
  358. package/dist/esm/utli/converters.d.ts +26 -2
  359. package/dist/esm/utli/converters.d.ts.map +1 -1
  360. package/dist/esm/utli/converters.js +122 -48
  361. package/dist/esm/utli/converters.js.map +1 -1
  362. package/dist/react-native/callAutomationClient.d.ts +8 -0
  363. package/dist/react-native/callAutomationClient.d.ts.map +1 -1
  364. package/dist/react-native/callAutomationClient.js +141 -84
  365. package/dist/react-native/callAutomationClient.js.map +1 -1
  366. package/dist/react-native/callAutomationEventParser.d.ts.map +1 -1
  367. package/dist/react-native/callAutomationEventParser.js +56 -9
  368. package/dist/react-native/callAutomationEventParser.js.map +1 -1
  369. package/dist/react-native/callConnection.d.ts +15 -5
  370. package/dist/react-native/callConnection.d.ts.map +1 -1
  371. package/dist/react-native/callConnection.js +193 -86
  372. package/dist/react-native/callConnection.js.map +1 -1
  373. package/dist/react-native/callMedia.d.ts +19 -9
  374. package/dist/react-native/callMedia.d.ts.map +1 -1
  375. package/dist/react-native/callMedia.js +175 -28
  376. package/dist/react-native/callMedia.js.map +1 -1
  377. package/dist/react-native/callRecording.d.ts +8 -2
  378. package/dist/react-native/callRecording.d.ts.map +1 -1
  379. package/dist/react-native/callRecording.js +26 -16
  380. package/dist/react-native/callRecording.js.map +1 -1
  381. package/dist/react-native/contentDownloader.js +12 -11
  382. package/dist/react-native/contentDownloader.js.map +1 -1
  383. package/dist/react-native/credential/callAutomationAccessKeyCredentialPolicy.js +2 -1
  384. package/dist/react-native/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
  385. package/dist/react-native/credential/callAutomationAuthPolicy.js +1 -1
  386. package/dist/react-native/credential/callAutomationAuthPolicy.js.map +1 -1
  387. package/dist/react-native/eventprocessor/callAutomationEventProcessor.d.ts +39 -0
  388. package/dist/react-native/eventprocessor/callAutomationEventProcessor.d.ts.map +1 -0
  389. package/dist/react-native/eventprocessor/callAutomationEventProcessor.js +137 -0
  390. package/dist/react-native/eventprocessor/callAutomationEventProcessor.js.map +1 -0
  391. package/dist/react-native/eventprocessor/eventResponses.d.ts +134 -0
  392. package/dist/react-native/eventprocessor/eventResponses.d.ts.map +1 -0
  393. package/dist/react-native/eventprocessor/eventResponses.js +4 -0
  394. package/dist/react-native/eventprocessor/eventResponses.js.map +1 -0
  395. package/dist/react-native/generated/src/callAutomationApiClient.d.ts +2 -1
  396. package/dist/react-native/generated/src/callAutomationApiClient.d.ts.map +1 -1
  397. package/dist/react-native/generated/src/callAutomationApiClient.js +7 -15
  398. package/dist/react-native/generated/src/callAutomationApiClient.js.map +1 -1
  399. package/dist/react-native/generated/src/models/index.d.ts +1129 -347
  400. package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
  401. package/dist/react-native/generated/src/models/index.js +159 -75
  402. package/dist/react-native/generated/src/models/index.js.map +1 -1
  403. package/dist/react-native/generated/src/models/mappers.d.ts +88 -47
  404. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
  405. package/dist/react-native/generated/src/models/mappers.js +2136 -499
  406. package/dist/react-native/generated/src/models/mappers.js.map +1 -1
  407. package/dist/react-native/generated/src/models/parameters.d.ts +8 -1
  408. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -1
  409. package/dist/react-native/generated/src/models/parameters.js +45 -6
  410. package/dist/react-native/generated/src/models/parameters.js.map +1 -1
  411. package/dist/react-native/generated/src/operations/callConnection.d.ts +16 -2
  412. package/dist/react-native/generated/src/operations/callConnection.d.ts.map +1 -1
  413. package/dist/react-native/generated/src/operations/callConnection.js +105 -24
  414. package/dist/react-native/generated/src/operations/callConnection.js.map +1 -1
  415. package/dist/react-native/generated/src/operations/callDialog.d.ts +35 -0
  416. package/dist/react-native/generated/src/operations/callDialog.d.ts.map +1 -0
  417. package/dist/react-native/generated/src/operations/callDialog.js +111 -0
  418. package/dist/react-native/generated/src/operations/callDialog.js.map +1 -0
  419. package/dist/react-native/generated/src/operations/callMedia.d.ts +15 -8
  420. package/dist/react-native/generated/src/operations/callMedia.d.ts.map +1 -1
  421. package/dist/react-native/generated/src/operations/callMedia.js +50 -26
  422. package/dist/react-native/generated/src/operations/callMedia.js.map +1 -1
  423. package/dist/react-native/generated/src/operations/callRecording.d.ts +7 -1
  424. package/dist/react-native/generated/src/operations/callRecording.d.ts.map +1 -1
  425. package/dist/react-native/generated/src/operations/callRecording.js +24 -1
  426. package/dist/react-native/generated/src/operations/callRecording.js.map +1 -1
  427. package/dist/react-native/generated/src/operations/index.d.ts +1 -0
  428. package/dist/react-native/generated/src/operations/index.d.ts.map +1 -1
  429. package/dist/react-native/generated/src/operations/index.js +1 -0
  430. package/dist/react-native/generated/src/operations/index.js.map +1 -1
  431. package/dist/react-native/generated/src/operationsInterfaces/callConnection.d.ts +16 -2
  432. package/dist/react-native/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  433. package/dist/react-native/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  434. package/dist/react-native/generated/src/operationsInterfaces/callDialog.d.ts +27 -0
  435. package/dist/react-native/generated/src/operationsInterfaces/callDialog.d.ts.map +1 -0
  436. package/dist/react-native/generated/src/operationsInterfaces/callDialog.js +9 -0
  437. package/dist/react-native/generated/src/operationsInterfaces/callDialog.js.map +1 -0
  438. package/dist/react-native/generated/src/operationsInterfaces/callMedia.d.ts +15 -8
  439. package/dist/react-native/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  440. package/dist/react-native/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  441. package/dist/react-native/generated/src/operationsInterfaces/callRecording.d.ts +7 -1
  442. package/dist/react-native/generated/src/operationsInterfaces/callRecording.d.ts.map +1 -1
  443. package/dist/react-native/generated/src/operationsInterfaces/callRecording.js.map +1 -1
  444. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +1 -0
  445. package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -1
  446. package/dist/react-native/generated/src/operationsInterfaces/index.js +1 -0
  447. package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -1
  448. package/dist/react-native/generated/src/pagingHelper.js +4 -2
  449. package/dist/react-native/generated/src/pagingHelper.js.map +1 -1
  450. package/dist/react-native/index.d.ts +2 -0
  451. package/dist/react-native/index.d.ts.map +1 -1
  452. package/dist/react-native/index.js +2 -0
  453. package/dist/react-native/index.js.map +1 -1
  454. package/dist/react-native/models/constants.d.ts.map +1 -1
  455. package/dist/react-native/models/constants.js +1 -1
  456. package/dist/react-native/models/constants.js.map +1 -1
  457. package/dist/react-native/models/events.d.ts +336 -296
  458. package/dist/react-native/models/events.d.ts.map +1 -1
  459. package/dist/react-native/models/events.js.map +1 -1
  460. package/dist/react-native/models/models.d.ts +76 -38
  461. package/dist/react-native/models/models.d.ts.map +1 -1
  462. package/dist/react-native/models/models.js +3 -1
  463. package/dist/react-native/models/models.js.map +1 -1
  464. package/dist/react-native/models/options.d.ts +34 -4
  465. package/dist/react-native/models/options.d.ts.map +1 -1
  466. package/dist/react-native/models/options.js.map +1 -1
  467. package/dist/react-native/models/responses.d.ts +82 -10
  468. package/dist/react-native/models/responses.d.ts.map +1 -1
  469. package/dist/react-native/models/responses.js.map +1 -1
  470. package/dist/react-native/models/streaming.d.ts +27 -26
  471. package/dist/react-native/models/streaming.d.ts.map +1 -1
  472. package/dist/react-native/models/streaming.js +57 -28
  473. package/dist/react-native/models/streaming.js.map +1 -1
  474. package/dist/react-native/streamingData.d.ts.map +1 -1
  475. package/dist/react-native/streamingData.js +1 -10
  476. package/dist/react-native/streamingData.js.map +1 -1
  477. package/dist/react-native/utli/converters.d.ts +26 -2
  478. package/dist/react-native/utli/converters.d.ts.map +1 -1
  479. package/dist/react-native/utli/converters.js +122 -48
  480. package/dist/react-native/utli/converters.js.map +1 -1
  481. package/package.json +36 -35
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callDialog.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callDialog.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,kBAAkB,EAClB,mCAAmC,EACnC,6BAA6B,EAC7B,kCAAkC,EAClC,mBAAmB,EACnB,oCAAoC,EACrC,MAAM,oBAAoB,CAAC;AAE5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;OAMG;IACH,WAAW,CACT,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,MAAM,EAChB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;OAIG;IACH,UAAU,CACR,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,YAAY,CACV,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE,MAAM,EAChB,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,IAAI,CAAC;CAMjB"}
@@ -0,0 +1,111 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers.js";
10
+ import * as Parameters from "../models/parameters.js";
11
+ /** Class containing CallDialog operations. */
12
+ export class CallDialogImpl {
13
+ /**
14
+ * Initialize a new instance of the class CallDialog class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Start a dialog.
22
+ * @param callConnectionId The call connection id
23
+ * @param dialogId The dialog id
24
+ * @param startDialogRequest The start dialog request
25
+ * @param options The options parameters.
26
+ */
27
+ startDialog(callConnectionId, dialogId, startDialogRequest, options) {
28
+ return this.client.sendOperationRequest({ callConnectionId, dialogId, startDialogRequest, options }, startDialogOperationSpec);
29
+ }
30
+ /**
31
+ * @param callConnectionId
32
+ * @param dialogId
33
+ * @param options The options parameters.
34
+ */
35
+ stopDialog(callConnectionId, dialogId, options) {
36
+ return this.client.sendOperationRequest({ callConnectionId, dialogId, options }, stopDialogOperationSpec);
37
+ }
38
+ /**
39
+ * Update a dialog.
40
+ * @param callConnectionId The call connection id
41
+ * @param dialogId The dialog id
42
+ * @param updateDialogRequest The update dialog request
43
+ * @param options The options parameters.
44
+ */
45
+ updateDialog(callConnectionId, dialogId, updateDialogRequest, options) {
46
+ return this.client.sendOperationRequest({ callConnectionId, dialogId, updateDialogRequest, options }, updateDialogOperationSpec);
47
+ }
48
+ }
49
+ // Operation Specifications
50
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
51
+ const startDialogOperationSpec = {
52
+ path: "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}",
53
+ httpMethod: "PUT",
54
+ responses: {
55
+ 201: {
56
+ bodyMapper: Mappers.DialogStateResponse,
57
+ },
58
+ default: {
59
+ bodyMapper: Mappers.CommunicationErrorResponse,
60
+ },
61
+ },
62
+ requestBody: Parameters.startDialogRequest,
63
+ queryParameters: [Parameters.apiVersion],
64
+ urlParameters: [
65
+ Parameters.endpoint,
66
+ Parameters.callConnectionId,
67
+ Parameters.dialogId,
68
+ ],
69
+ headerParameters: [Parameters.contentType, Parameters.accept],
70
+ mediaType: "json",
71
+ serializer,
72
+ };
73
+ const stopDialogOperationSpec = {
74
+ path: "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}",
75
+ httpMethod: "DELETE",
76
+ responses: {
77
+ 204: {},
78
+ default: {
79
+ bodyMapper: Mappers.CommunicationErrorResponse,
80
+ },
81
+ },
82
+ queryParameters: [Parameters.apiVersion, Parameters.operationCallbackUri],
83
+ urlParameters: [
84
+ Parameters.endpoint,
85
+ Parameters.callConnectionId,
86
+ Parameters.dialogId,
87
+ ],
88
+ headerParameters: [Parameters.accept],
89
+ serializer,
90
+ };
91
+ const updateDialogOperationSpec = {
92
+ path: "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}",
93
+ httpMethod: "PATCH",
94
+ responses: {
95
+ 200: {},
96
+ default: {
97
+ bodyMapper: Mappers.CommunicationErrorResponse,
98
+ },
99
+ },
100
+ requestBody: Parameters.updateDialogRequest,
101
+ queryParameters: [Parameters.apiVersion],
102
+ urlParameters: [
103
+ Parameters.endpoint,
104
+ Parameters.callConnectionId,
105
+ Parameters.dialogId,
106
+ ],
107
+ headerParameters: [Parameters.contentType, Parameters.accept],
108
+ mediaType: "json",
109
+ serializer,
110
+ };
111
+ //# sourceMappingURL=callDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callDialog.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callDialog.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,WAAW,CACT,gBAAwB,EACxB,QAAgB,EAChB,kBAAsC,EACtC,OAA6C;QAE7C,OAAO,IAAI,CAAC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B;IACxD,IAAI,EAAE,gEAAgE;IACtE,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,oBAAoB,CAAC;IACzE,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,gEAAgE;IACtE,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,mBAAmB;IAC3C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallDialog } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n StartDialogRequest,\n CallDialogStartDialogOptionalParams,\n CallDialogStartDialogResponse,\n CallDialogStopDialogOptionalParams,\n UpdateDialogRequest,\n CallDialogUpdateDialogOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing CallDialog operations. */\nexport class CallDialogImpl implements CallDialog {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallDialog class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Start a dialog.\n * @param callConnectionId The call connection id\n * @param dialogId The dialog id\n * @param startDialogRequest The start dialog request\n * @param options The options parameters.\n */\n startDialog(\n callConnectionId: string,\n dialogId: string,\n startDialogRequest: StartDialogRequest,\n options?: CallDialogStartDialogOptionalParams,\n ): Promise<CallDialogStartDialogResponse> {\n return this.client.sendOperationRequest(\n { callConnectionId, dialogId, startDialogRequest, options },\n startDialogOperationSpec,\n );\n }\n\n /**\n * @param callConnectionId\n * @param dialogId\n * @param options The options parameters.\n */\n stopDialog(\n callConnectionId: string,\n dialogId: string,\n options?: CallDialogStopDialogOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, dialogId, options },\n stopDialogOperationSpec,\n );\n }\n\n /**\n * Update a dialog.\n * @param callConnectionId The call connection id\n * @param dialogId The dialog id\n * @param updateDialogRequest The update dialog request\n * @param options The options parameters.\n */\n updateDialog(\n callConnectionId: string,\n dialogId: string,\n updateDialogRequest: UpdateDialogRequest,\n options?: CallDialogUpdateDialogOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, dialogId, updateDialogRequest, options },\n updateDialogOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst startDialogOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}/dialogs/{dialogId}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.DialogStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startDialogRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.callConnectionId,\n Parameters.dialogId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopDialogOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}/dialogs/{dialogId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.operationCallbackUri],\n urlParameters: [\n Parameters.endpoint,\n Parameters.callConnectionId,\n Parameters.dialogId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateDialogOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}/dialogs/{dialogId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.updateDialogRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.callConnectionId,\n Parameters.dialogId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import { CallMedia } from "../operationsInterfaces/index.js";
2
2
  import { CallAutomationApiClient } from "../callAutomationApiClient.js";
3
- import { PlayRequest, CallMediaPlayOptionalParams, StartTranscriptionRequest, CallMediaStartTranscriptionOptionalParams, StopTranscriptionRequest, CallMediaStopTranscriptionOptionalParams, UpdateTranscriptionRequest, CallMediaUpdateTranscriptionOptionalParams, CallMediaCancelAllMediaOperationsOptionalParams, RecognizeRequest, CallMediaRecognizeOptionalParams, ContinuousDtmfRecognitionRequest, CallMediaStartContinuousDtmfRecognitionOptionalParams, CallMediaStopContinuousDtmfRecognitionOptionalParams, SendDtmfTonesRequest, CallMediaSendDtmfTonesOptionalParams, CallMediaSendDtmfTonesResponse, HoldRequest, CallMediaHoldOptionalParams, UnholdRequest, CallMediaUnholdOptionalParams, StartMediaStreamingRequest, CallMediaStartMediaStreamingOptionalParams, StopMediaStreamingRequest, CallMediaStopMediaStreamingOptionalParams } from "../models/index.js";
3
+ import { PlayRequest, CallMediaPlayOptionalParams, StartTranscriptionRequest, CallMediaStartTranscriptionOptionalParams, StopTranscriptionRequest, CallMediaStopTranscriptionOptionalParams, CallMediaCancelAllMediaOperationsOptionalParams, RecognizeRequest, CallMediaRecognizeOptionalParams, ContinuousDtmfRecognitionRequest, CallMediaStartContinuousDtmfRecognitionOptionalParams, CallMediaStopContinuousDtmfRecognitionOptionalParams, SendDtmfTonesRequest, CallMediaSendDtmfTonesOptionalParams, CallMediaSendDtmfTonesResponse, UpdateTranscriptionRequest, CallMediaUpdateTranscriptionOptionalParams, HoldRequest, CallMediaHoldOptionalParams, UnholdRequest, CallMediaUnholdOptionalParams, StartMediaStreamingRequest, CallMediaStartMediaStreamingOptionalParams, StopMediaStreamingRequest, CallMediaStopMediaStreamingOptionalParams, InterruptAudioAndAnnounceRequest, CallMediaInterruptAudioAndAnnounceOptionalParams } from "../models/index.js";
4
4
  /** Class containing CallMedia operations. */
5
5
  export declare class CallMediaImpl implements CallMedia {
6
6
  private readonly client;
@@ -30,13 +30,6 @@ export declare class CallMediaImpl implements CallMedia {
30
30
  * @param options The options parameters.
31
31
  */
32
32
  stopTranscription(callConnectionId: string, stopTranscriptionRequest: StopTranscriptionRequest, options?: CallMediaStopTranscriptionOptionalParams): Promise<void>;
33
- /**
34
- * API to change transcription language.
35
- * @param callConnectionId The call connection id
36
- * @param updateTranscriptionRequest The UpdateTranscription request
37
- * @param options The options parameters.
38
- */
39
- updateTranscription(callConnectionId: string, updateTranscriptionRequest: UpdateTranscriptionRequest, options?: CallMediaUpdateTranscriptionOptionalParams): Promise<void>;
40
33
  /**
41
34
  * Cancel all media operations in a call.
42
35
  * @param callConnectionId The call connection id
@@ -71,6 +64,13 @@ export declare class CallMediaImpl implements CallMedia {
71
64
  * @param options The options parameters.
72
65
  */
73
66
  sendDtmfTones(callConnectionId: string, sendDtmfTonesRequest: SendDtmfTonesRequest, options?: CallMediaSendDtmfTonesOptionalParams): Promise<CallMediaSendDtmfTonesResponse>;
67
+ /**
68
+ * API to change transcription language.
69
+ * @param callConnectionId The call connection id
70
+ * @param updateTranscriptionRequest The UpdateTranscription request
71
+ * @param options The options parameters.
72
+ */
73
+ updateTranscription(callConnectionId: string, updateTranscriptionRequest: UpdateTranscriptionRequest, options?: CallMediaUpdateTranscriptionOptionalParams): Promise<void>;
74
74
  /**
75
75
  * Hold participant from the call using identifier.
76
76
  * @param callConnectionId The call connection id.
@@ -99,5 +99,12 @@ export declare class CallMediaImpl implements CallMedia {
99
99
  * @param options The options parameters.
100
100
  */
101
101
  stopMediaStreaming(callConnectionId: string, stopMediaStreamingRequest: StopMediaStreamingRequest, options?: CallMediaStopMediaStreamingOptionalParams): Promise<void>;
102
+ /**
103
+ * Plays audio to participants in the call.
104
+ * @param callConnectionId The call connection id.
105
+ * @param interruptRequest play request payload.
106
+ * @param options The options parameters.
107
+ */
108
+ interruptAudioAndAnnounce(callConnectionId: string, interruptRequest: InterruptAudioAndAnnounceRequest, options?: CallMediaInterruptAudioAndAnnounceOptionalParams): Promise<void>;
102
109
  }
103
110
  //# sourceMappingURL=callMedia.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"callMedia.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callMedia.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,WAAW,EACX,2BAA2B,EAC3B,yBAAyB,EACzB,yCAAyC,EACzC,wBAAwB,EACxB,wCAAwC,EACxC,0BAA0B,EAC1B,0CAA0C,EAC1C,+CAA+C,EAC/C,gBAAgB,EA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hB;;;;;OAKG;IACH,8BAA8B,CAC5B,gBAAgB,EAAE,MAAM,EACxB,gCAAgC,EAAE,gCAAgC,EAClE,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,6BAA6B,CAC3B,gBAAgB,EAAE,MAAM,EACxB,gCAAgC,EAAE,gCAAgC,EAClE,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,aAAa,CACX,gBAAgB,EAAE,MAAM,EACxB,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C;;;;;OAKG;IACH,IAAI,CACF,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,MAAM,CACJ,gBAAgB,EAAE,MAAM,EACxB,aAAa,EAAE,aAAa,EAC5B,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,mBAAmB,CACjB,gBAAgB,EAAE,MAAM,EACxB,0BAA0B,EAAE,0BAA0B,EACtD,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,kBAAkB,CAChB,gBAAgB,EAAE,MAAM,EACxB,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;CAMjB"}
1
+ {"version":3,"file":"callMedia.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callMedia.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC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OAKG;IACH,yBAAyB,CACvB,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,gCAAgC,EAClD,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,IAAI,CAAC;CAMjB"}
@@ -10,7 +10,6 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing CallMedia operations. */
12
12
  export class CallMediaImpl {
13
- client;
14
13
  /**
15
14
  * Initialize a new instance of the class CallMedia class.
16
15
  * @param client Reference to the service client
@@ -45,15 +44,6 @@ export class CallMediaImpl {
45
44
  stopTranscription(callConnectionId, stopTranscriptionRequest, options) {
46
45
  return this.client.sendOperationRequest({ callConnectionId, stopTranscriptionRequest, options }, stopTranscriptionOperationSpec);
47
46
  }
48
- /**
49
- * API to change transcription language.
50
- * @param callConnectionId The call connection id
51
- * @param updateTranscriptionRequest The UpdateTranscription request
52
- * @param options The options parameters.
53
- */
54
- updateTranscription(callConnectionId, updateTranscriptionRequest, options) {
55
- return this.client.sendOperationRequest({ callConnectionId, updateTranscriptionRequest, options }, updateTranscriptionOperationSpec);
56
- }
57
47
  /**
58
48
  * Cancel all media operations in a call.
59
49
  * @param callConnectionId The call connection id
@@ -98,6 +88,15 @@ export class CallMediaImpl {
98
88
  sendDtmfTones(callConnectionId, sendDtmfTonesRequest, options) {
99
89
  return this.client.sendOperationRequest({ callConnectionId, sendDtmfTonesRequest, options }, sendDtmfTonesOperationSpec);
100
90
  }
91
+ /**
92
+ * API to change transcription language.
93
+ * @param callConnectionId The call connection id
94
+ * @param updateTranscriptionRequest The UpdateTranscription request
95
+ * @param options The options parameters.
96
+ */
97
+ updateTranscription(callConnectionId, updateTranscriptionRequest, options) {
98
+ return this.client.sendOperationRequest({ callConnectionId, updateTranscriptionRequest, options }, updateTranscriptionOperationSpec);
99
+ }
101
100
  /**
102
101
  * Hold participant from the call using identifier.
103
102
  * @param callConnectionId The call connection id.
@@ -134,6 +133,15 @@ export class CallMediaImpl {
134
133
  stopMediaStreaming(callConnectionId, stopMediaStreamingRequest, options) {
135
134
  return this.client.sendOperationRequest({ callConnectionId, stopMediaStreamingRequest, options }, stopMediaStreamingOperationSpec);
136
135
  }
136
+ /**
137
+ * Plays audio to participants in the call.
138
+ * @param callConnectionId The call connection id.
139
+ * @param interruptRequest play request payload.
140
+ * @param options The options parameters.
141
+ */
142
+ interruptAudioAndAnnounce(callConnectionId, interruptRequest, options) {
143
+ return this.client.sendOperationRequest({ callConnectionId, interruptRequest, options }, interruptAudioAndAnnounceOperationSpec);
144
+ }
137
145
  }
138
146
  // Operation Specifications
139
147
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -185,22 +193,6 @@ const stopTranscriptionOperationSpec = {
185
193
  mediaType: "json",
186
194
  serializer,
187
195
  };
188
- const updateTranscriptionOperationSpec = {
189
- path: "/calling/callConnections/{callConnectionId}:updateTranscription",
190
- httpMethod: "POST",
191
- responses: {
192
- 202: {},
193
- default: {
194
- bodyMapper: Mappers.CommunicationErrorResponse,
195
- },
196
- },
197
- requestBody: Parameters.updateTranscriptionRequest,
198
- queryParameters: [Parameters.apiVersion],
199
- urlParameters: [Parameters.endpoint, Parameters.callConnectionId],
200
- headerParameters: [Parameters.contentType, Parameters.accept],
201
- mediaType: "json",
202
- serializer,
203
- };
204
196
  const cancelAllMediaOperationsOperationSpec = {
205
197
  path: "/calling/callConnections/{callConnectionId}:cancelAllMediaOperations",
206
198
  httpMethod: "POST",
@@ -286,6 +278,22 @@ const sendDtmfTonesOperationSpec = {
286
278
  mediaType: "json",
287
279
  serializer,
288
280
  };
281
+ const updateTranscriptionOperationSpec = {
282
+ path: "/calling/callConnections/{callConnectionId}:updateTranscription",
283
+ httpMethod: "POST",
284
+ responses: {
285
+ 202: {},
286
+ default: {
287
+ bodyMapper: Mappers.CommunicationErrorResponse,
288
+ },
289
+ },
290
+ requestBody: Parameters.updateTranscriptionRequest,
291
+ queryParameters: [Parameters.apiVersion],
292
+ urlParameters: [Parameters.endpoint, Parameters.callConnectionId],
293
+ headerParameters: [Parameters.contentType, Parameters.accept],
294
+ mediaType: "json",
295
+ serializer,
296
+ };
289
297
  const holdOperationSpec = {
290
298
  path: "/calling/callConnections/{callConnectionId}:hold",
291
299
  httpMethod: "POST",
@@ -350,4 +358,20 @@ const stopMediaStreamingOperationSpec = {
350
358
  mediaType: "json",
351
359
  serializer,
352
360
  };
361
+ const interruptAudioAndAnnounceOperationSpec = {
362
+ path: "/calling/callConnections/{callConnectionId}:interruptAudioAndAnnounce",
363
+ httpMethod: "POST",
364
+ responses: {
365
+ 202: {},
366
+ default: {
367
+ bodyMapper: Mappers.CommunicationErrorResponse,
368
+ },
369
+ },
370
+ requestBody: Parameters.interruptRequest,
371
+ queryParameters: [Parameters.apiVersion],
372
+ urlParameters: [Parameters.endpoint, Parameters.callConnectionId],
373
+ headerParameters: [Parameters.contentType, Parameters.accept],
374
+ mediaType: "json",
375
+ serializer,
376
+ };
353
377
  //# sourceMappingURL=callMedia.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"callMedia.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callMedia.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AA8BtD,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IACP,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,gBAAwB,EACxB,WAAwB,EACxB,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC1C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;O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AM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallMedia } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n PlayRequest,\n CallMediaPlayOptionalParams,\n StartTranscriptionRequest,\n CallMediaStartTranscriptionOptionalParams,\n StopTranscriptionRequest,\n CallMediaStopTranscriptionOptionalParams,\n UpdateTranscriptionRequest,\n CallMediaUpdateTranscriptionOptionalParams,\n CallMediaCancelAllMediaOperationsOptionalParams,\n RecognizeRequest,\n CallMediaRecognizeOptionalParams,\n ContinuousDtmfRecognitionRequest,\n CallMediaStartContinuousDtmfRecognitionOptionalParams,\n CallMediaStopContinuousDtmfRecognitionOptionalParams,\n SendDtmfTonesRequest,\n CallMediaSendDtmfTonesOptionalParams,\n CallMediaSendDtmfTonesResponse,\n HoldRequest,\n CallMediaHoldOptionalParams,\n UnholdRequest,\n CallMediaUnholdOptionalParams,\n StartMediaStreamingRequest,\n CallMediaStartMediaStreamingOptionalParams,\n StopMediaStreamingRequest,\n CallMediaStopMediaStreamingOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing CallMedia operations. */\nexport class CallMediaImpl implements CallMedia {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallMedia class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Plays audio to participants in the call.\n * @param callConnectionId The call connection id.\n * @param playRequest play request payload.\n * @param options The options parameters.\n */\n play(\n callConnectionId: string,\n playRequest: PlayRequest,\n options?: CallMediaPlayOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, playRequest, options },\n playOperationSpec,\n );\n }\n\n /**\n * Starts transcription in the call\n * @param callConnectionId The call connection id.\n * @param startTranscriptionRequest\n * @param options The options parameters.\n */\n startTranscription(\n callConnectionId: string,\n startTranscriptionRequest: StartTranscriptionRequest,\n options?: CallMediaStartTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, startTranscriptionRequest, options },\n startTranscriptionOperationSpec,\n );\n }\n\n /**\n * Stops transcription in the call.\n * @param callConnectionId The call connection id.\n * @param stopTranscriptionRequest stop transcription request payload.\n * @param options The options parameters.\n */\n stopTranscription(\n callConnectionId: string,\n stopTranscriptionRequest: StopTranscriptionRequest,\n options?: CallMediaStopTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, stopTranscriptionRequest, options },\n stopTranscriptionOperationSpec,\n );\n }\n\n /**\n * API to change transcription language.\n * @param callConnectionId The call connection id\n * @param updateTranscriptionRequest The UpdateTranscription request\n * @param options The options parameters.\n */\n updateTranscription(\n callConnectionId: string,\n updateTranscriptionRequest: UpdateTranscriptionRequest,\n options?: CallMediaUpdateTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, updateTranscriptionRequest, options },\n updateTranscriptionOperationSpec,\n );\n }\n\n /**\n * Cancel all media operations in a call.\n * @param callConnectionId The call connection id\n * @param options The options parameters.\n */\n cancelAllMediaOperations(\n callConnectionId: string,\n options?: CallMediaCancelAllMediaOperationsOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, options },\n cancelAllMediaOperationsOperationSpec,\n );\n }\n\n /**\n * Recognize media from call.\n * @param callConnectionId The call connection id\n * @param recognizeRequest The media recognize request\n * @param options The options parameters.\n */\n recognize(\n callConnectionId: string,\n recognizeRequest: RecognizeRequest,\n options?: CallMediaRecognizeOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, recognizeRequest, options },\n recognizeOperationSpec,\n );\n }\n\n /**\n * Start continuous Dtmf recognition by subscribing to tones.\n * @param callConnectionId The call connection id\n * @param continuousDtmfRecognitionRequest The continuous recognize request\n * @param options The options parameters.\n */\n startContinuousDtmfRecognition(\n callConnectionId: string,\n continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest,\n options?: CallMediaStartContinuousDtmfRecognitionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, continuousDtmfRecognitionRequest, options },\n startContinuousDtmfRecognitionOperationSpec,\n );\n }\n\n /**\n * Stop continuous Dtmf recognition by unsubscribing to tones.\n * @param callConnectionId The call connection id\n * @param continuousDtmfRecognitionRequest The continuous recognize request\n * @param options The options parameters.\n */\n stopContinuousDtmfRecognition(\n callConnectionId: string,\n continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest,\n options?: CallMediaStopContinuousDtmfRecognitionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, continuousDtmfRecognitionRequest, options },\n stopContinuousDtmfRecognitionOperationSpec,\n );\n }\n\n /**\n * Send dtmf tones.\n * @param callConnectionId The call connection id\n * @param sendDtmfTonesRequest The send dtmf tones request\n * @param options The options parameters.\n */\n sendDtmfTones(\n callConnectionId: string,\n sendDtmfTonesRequest: SendDtmfTonesRequest,\n options?: CallMediaSendDtmfTonesOptionalParams,\n ): Promise<CallMediaSendDtmfTonesResponse> {\n return this.client.sendOperationRequest(\n { callConnectionId, sendDtmfTonesRequest, options },\n sendDtmfTonesOperationSpec,\n );\n }\n\n /**\n * Hold participant from the call using identifier.\n * @param callConnectionId The call connection id.\n * @param holdRequest The participants to be hold from the call.\n * @param options The options parameters.\n */\n hold(\n callConnectionId: string,\n holdRequest: HoldRequest,\n options?: CallMediaHoldOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, holdRequest, options },\n holdOperationSpec,\n );\n }\n\n /**\n * Unhold participants from the call using identifier.\n * @param callConnectionId The call connection id.\n * @param unholdRequest The participants to be hold from the call.\n * @param options The options parameters.\n */\n unhold(\n callConnectionId: string,\n unholdRequest: UnholdRequest,\n options?: CallMediaUnholdOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, unholdRequest, options },\n unholdOperationSpec,\n );\n }\n\n /**\n * Starts media streaming in the call.\n * @param callConnectionId The call connection id.\n * @param startMediaStreamingRequest\n * @param options The options parameters.\n */\n startMediaStreaming(\n callConnectionId: string,\n startMediaStreamingRequest: StartMediaStreamingRequest,\n options?: CallMediaStartMediaStreamingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, startMediaStreamingRequest, options },\n startMediaStreamingOperationSpec,\n );\n }\n\n /**\n * Stops media streaming in the call.\n * @param callConnectionId The call connection id.\n * @param stopMediaStreamingRequest stop media streaming request payload.\n * @param options The options parameters.\n */\n stopMediaStreaming(\n callConnectionId: string,\n stopMediaStreamingRequest: StopMediaStreamingRequest,\n options?: CallMediaStopMediaStreamingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, stopMediaStreamingRequest, options },\n stopMediaStreamingOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst playOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:play\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.playRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.stopTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:updateTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.updateTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst cancelAllMediaOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:cancelAllMediaOperations\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst recognizeOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:recognize\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.recognizeRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startContinuousDtmfRecognitionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startContinuousDtmfRecognition\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.continuousDtmfRecognitionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopContinuousDtmfRecognitionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopContinuousDtmfRecognition\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.continuousDtmfRecognitionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst sendDtmfTonesOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:sendDtmfTones\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.SendDtmfTonesResult,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.sendDtmfTonesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.repeatabilityRequestID,\n Parameters.repeatabilityFirstSent,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst holdOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:hold\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.holdRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst unholdOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:unhold\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.unholdRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startMediaStreamingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startMediaStreaming\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startMediaStreamingRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopMediaStreamingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopMediaStreaming\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.stopMediaStreamingRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"callMedia.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callMedia.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD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UAAU,CAAC,gBAAgB,CAAC;IACjE,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,gEAAgE;IACtE,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,yBAAyB;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACjE,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,uEAAuE;IAC7E,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gBAAgB;IACxC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACjE,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallMedia } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n PlayRequest,\n CallMediaPlayOptionalParams,\n StartTranscriptionRequest,\n CallMediaStartTranscriptionOptionalParams,\n StopTranscriptionRequest,\n CallMediaStopTranscriptionOptionalParams,\n CallMediaCancelAllMediaOperationsOptionalParams,\n RecognizeRequest,\n CallMediaRecognizeOptionalParams,\n ContinuousDtmfRecognitionRequest,\n CallMediaStartContinuousDtmfRecognitionOptionalParams,\n CallMediaStopContinuousDtmfRecognitionOptionalParams,\n SendDtmfTonesRequest,\n CallMediaSendDtmfTonesOptionalParams,\n CallMediaSendDtmfTonesResponse,\n UpdateTranscriptionRequest,\n CallMediaUpdateTranscriptionOptionalParams,\n HoldRequest,\n CallMediaHoldOptionalParams,\n UnholdRequest,\n CallMediaUnholdOptionalParams,\n StartMediaStreamingRequest,\n CallMediaStartMediaStreamingOptionalParams,\n StopMediaStreamingRequest,\n CallMediaStopMediaStreamingOptionalParams,\n InterruptAudioAndAnnounceRequest,\n CallMediaInterruptAudioAndAnnounceOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing CallMedia operations. */\nexport class CallMediaImpl implements CallMedia {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallMedia class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Plays audio to participants in the call.\n * @param callConnectionId The call connection id.\n * @param playRequest play request payload.\n * @param options The options parameters.\n */\n play(\n callConnectionId: string,\n playRequest: PlayRequest,\n options?: CallMediaPlayOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, playRequest, options },\n playOperationSpec,\n );\n }\n\n /**\n * Starts transcription in the call\n * @param callConnectionId The call connection id.\n * @param startTranscriptionRequest\n * @param options The options parameters.\n */\n startTranscription(\n callConnectionId: string,\n startTranscriptionRequest: StartTranscriptionRequest,\n options?: CallMediaStartTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, startTranscriptionRequest, options },\n startTranscriptionOperationSpec,\n );\n }\n\n /**\n * Stops transcription in the call.\n * @param callConnectionId The call connection id.\n * @param stopTranscriptionRequest stop transcription request payload.\n * @param options The options parameters.\n */\n stopTranscription(\n callConnectionId: string,\n stopTranscriptionRequest: StopTranscriptionRequest,\n options?: CallMediaStopTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, stopTranscriptionRequest, options },\n stopTranscriptionOperationSpec,\n );\n }\n\n /**\n * Cancel all media operations in a call.\n * @param callConnectionId The call connection id\n * @param options The options parameters.\n */\n cancelAllMediaOperations(\n callConnectionId: string,\n options?: CallMediaCancelAllMediaOperationsOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, options },\n cancelAllMediaOperationsOperationSpec,\n );\n }\n\n /**\n * Recognize media from call.\n * @param callConnectionId The call connection id\n * @param recognizeRequest The media recognize request\n * @param options The options parameters.\n */\n recognize(\n callConnectionId: string,\n recognizeRequest: RecognizeRequest,\n options?: CallMediaRecognizeOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, recognizeRequest, options },\n recognizeOperationSpec,\n );\n }\n\n /**\n * Start continuous Dtmf recognition by subscribing to tones.\n * @param callConnectionId The call connection id\n * @param continuousDtmfRecognitionRequest The continuous recognize request\n * @param options The options parameters.\n */\n startContinuousDtmfRecognition(\n callConnectionId: string,\n continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest,\n options?: CallMediaStartContinuousDtmfRecognitionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, continuousDtmfRecognitionRequest, options },\n startContinuousDtmfRecognitionOperationSpec,\n );\n }\n\n /**\n * Stop continuous Dtmf recognition by unsubscribing to tones.\n * @param callConnectionId The call connection id\n * @param continuousDtmfRecognitionRequest The continuous recognize request\n * @param options The options parameters.\n */\n stopContinuousDtmfRecognition(\n callConnectionId: string,\n continuousDtmfRecognitionRequest: ContinuousDtmfRecognitionRequest,\n options?: CallMediaStopContinuousDtmfRecognitionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, continuousDtmfRecognitionRequest, options },\n stopContinuousDtmfRecognitionOperationSpec,\n );\n }\n\n /**\n * Send dtmf tones.\n * @param callConnectionId The call connection id\n * @param sendDtmfTonesRequest The send dtmf tones request\n * @param options The options parameters.\n */\n sendDtmfTones(\n callConnectionId: string,\n sendDtmfTonesRequest: SendDtmfTonesRequest,\n options?: CallMediaSendDtmfTonesOptionalParams,\n ): Promise<CallMediaSendDtmfTonesResponse> {\n return this.client.sendOperationRequest(\n { callConnectionId, sendDtmfTonesRequest, options },\n sendDtmfTonesOperationSpec,\n );\n }\n\n /**\n * API to change transcription language.\n * @param callConnectionId The call connection id\n * @param updateTranscriptionRequest The UpdateTranscription request\n * @param options The options parameters.\n */\n updateTranscription(\n callConnectionId: string,\n updateTranscriptionRequest: UpdateTranscriptionRequest,\n options?: CallMediaUpdateTranscriptionOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, updateTranscriptionRequest, options },\n updateTranscriptionOperationSpec,\n );\n }\n\n /**\n * Hold participant from the call using identifier.\n * @param callConnectionId The call connection id.\n * @param holdRequest The participants to be hold from the call.\n * @param options The options parameters.\n */\n hold(\n callConnectionId: string,\n holdRequest: HoldRequest,\n options?: CallMediaHoldOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, holdRequest, options },\n holdOperationSpec,\n );\n }\n\n /**\n * Unhold participants from the call using identifier.\n * @param callConnectionId The call connection id.\n * @param unholdRequest The participants to be hold from the call.\n * @param options The options parameters.\n */\n unhold(\n callConnectionId: string,\n unholdRequest: UnholdRequest,\n options?: CallMediaUnholdOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, unholdRequest, options },\n unholdOperationSpec,\n );\n }\n\n /**\n * Starts media streaming in the call.\n * @param callConnectionId The call connection id.\n * @param startMediaStreamingRequest\n * @param options The options parameters.\n */\n startMediaStreaming(\n callConnectionId: string,\n startMediaStreamingRequest: StartMediaStreamingRequest,\n options?: CallMediaStartMediaStreamingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, startMediaStreamingRequest, options },\n startMediaStreamingOperationSpec,\n );\n }\n\n /**\n * Stops media streaming in the call.\n * @param callConnectionId The call connection id.\n * @param stopMediaStreamingRequest stop media streaming request payload.\n * @param options The options parameters.\n */\n stopMediaStreaming(\n callConnectionId: string,\n stopMediaStreamingRequest: StopMediaStreamingRequest,\n options?: CallMediaStopMediaStreamingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, stopMediaStreamingRequest, options },\n stopMediaStreamingOperationSpec,\n );\n }\n\n /**\n * Plays audio to participants in the call.\n * @param callConnectionId The call connection id.\n * @param interruptRequest play request payload.\n * @param options The options parameters.\n */\n interruptAudioAndAnnounce(\n callConnectionId: string,\n interruptRequest: InterruptAudioAndAnnounceRequest,\n options?: CallMediaInterruptAudioAndAnnounceOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { callConnectionId, interruptRequest, options },\n interruptAudioAndAnnounceOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst playOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:play\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.playRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.stopTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst cancelAllMediaOperationsOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:cancelAllMediaOperations\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst recognizeOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:recognize\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.recognizeRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startContinuousDtmfRecognitionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startContinuousDtmfRecognition\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.continuousDtmfRecognitionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopContinuousDtmfRecognitionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopContinuousDtmfRecognition\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.continuousDtmfRecognitionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst sendDtmfTonesOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:sendDtmfTones\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.SendDtmfTonesResult,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.sendDtmfTonesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.repeatabilityRequestID,\n Parameters.repeatabilityFirstSent,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateTranscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:updateTranscription\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.updateTranscriptionRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst holdOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:hold\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.holdRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst unholdOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:unhold\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.unholdRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst startMediaStreamingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:startMediaStreaming\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startMediaStreamingRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst stopMediaStreamingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:stopMediaStreaming\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.stopMediaStreamingRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst interruptAudioAndAnnounceOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/callConnections/{callConnectionId}:interruptAudioAndAnnounce\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.interruptRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.callConnectionId],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import { CallRecording } from "../operationsInterfaces/index.js";
2
2
  import { CallAutomationApiClient } from "../callAutomationApiClient.js";
3
- import { StartCallRecordingRequest, CallRecordingStartRecordingOptionalParams, CallRecordingStartRecordingResponse, CallRecordingGetRecordingPropertiesOptionalParams, CallRecordingGetRecordingPropertiesResponse, CallRecordingStopRecordingOptionalParams, CallRecordingPauseRecordingOptionalParams, CallRecordingResumeRecordingOptionalParams } from "../models/index.js";
3
+ import { StartCallRecordingRequest, CallRecordingStartRecordingOptionalParams, CallRecordingStartRecordingResponse, CallRecordingGetRecordingPropertiesOptionalParams, CallRecordingGetRecordingPropertiesResponse, CallRecordingStopRecordingOptionalParams, CallRecordingPauseRecordingOptionalParams, CallRecordingResumeRecordingOptionalParams, CallRecordingGetRecordingResultOptionalParams, CallRecordingGetRecordingResultResponse } from "../models/index.js";
4
4
  /** Class containing CallRecording operations. */
5
5
  export declare class CallRecordingImpl implements CallRecording {
6
6
  private readonly client;
@@ -39,5 +39,11 @@ export declare class CallRecordingImpl implements CallRecording {
39
39
  * @param options The options parameters.
40
40
  */
41
41
  resumeRecording(recordingId: string, options?: CallRecordingResumeRecordingOptionalParams): Promise<void>;
42
+ /**
43
+ * Get recording result. This includes the download URLs for the recording chunks.
44
+ * @param recordingId The recording id.
45
+ * @param options The options parameters.
46
+ */
47
+ getRecordingResult(recordingId: string, options?: CallRecordingGetRecordingResultOptionalParams): Promise<CallRecordingGetRecordingResultResponse>;
42
48
  }
43
49
  //# sourceMappingURL=callRecording.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"callRecording.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callRecording.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,yBAAyB,EACzB,yCAAyC,EACzC,mCAAmC,EACnC,iDAAiD,EACjD,2CAA2C,EAC3C,wCAAwC,EACxC,yCAAyC,EACzC,0CAA0C,EAC3C,MAAM,oBAAoB,CAAC;AAE5B,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;OAIG;IACH,cAAc,CACZ,kBAAkB,EAAE,yBAAyB,EAC7C,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAO/C;;;;OAIG;IACH,sBAAsB,CACpB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC;IAOvD;;;;OAIG;IACH,aAAa,CACX,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,eAAe,CACb,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,IAAI,CAAC;CAMjB"}
1
+ {"version":3,"file":"callRecording.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callRecording.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,yBAAyB,EACzB,yCAAyC,EACzC,mCAAmC,EACnC,iDAAiD,EACjD,2CAA2C,EAC3C,wCAAwC,EACxC,yCAAyC,EACzC,0CAA0C,EAC1C,6CAA6C,EAC7C,uCAAuC,EACxC,MAAM,oBAAoB,CAAC;AAE5B,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;OAIG;IACH,cAAc,CACZ,kBAAkB,EAAE,yBAAyB,EAC7C,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAO/C;;;;OAIG;IACH,sBAAsB,CACpB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC;IAOvD;;;;OAIG;IACH,aAAa,CACX,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,cAAc,CACZ,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,eAAe,CACb,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,kBAAkB,CAChB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;CAMpD"}
@@ -10,7 +10,6 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing CallRecording operations. */
12
12
  export class CallRecordingImpl {
13
- client;
14
13
  /**
15
14
  * Initialize a new instance of the class CallRecording class.
16
15
  * @param client Reference to the service client
@@ -58,6 +57,14 @@ export class CallRecordingImpl {
58
57
  resumeRecording(recordingId, options) {
59
58
  return this.client.sendOperationRequest({ recordingId, options }, resumeRecordingOperationSpec);
60
59
  }
60
+ /**
61
+ * Get recording result. This includes the download URLs for the recording chunks.
62
+ * @param recordingId The recording id.
63
+ * @param options The options parameters.
64
+ */
65
+ getRecordingResult(recordingId, options) {
66
+ return this.client.sendOperationRequest({ recordingId, options }, getRecordingResultOperationSpec);
67
+ }
61
68
  }
62
69
  // Operation Specifications
63
70
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -145,4 +152,20 @@ const resumeRecordingOperationSpec = {
145
152
  headerParameters: [Parameters.accept],
146
153
  serializer,
147
154
  };
155
+ const getRecordingResultOperationSpec = {
156
+ path: "/calling/recordings/{recordingId}/result",
157
+ httpMethod: "GET",
158
+ responses: {
159
+ 200: {
160
+ bodyMapper: Mappers.RecordingResultResponse,
161
+ },
162
+ default: {
163
+ bodyMapper: Mappers.CommunicationErrorResponse,
164
+ },
165
+ },
166
+ queryParameters: [Parameters.apiVersion],
167
+ urlParameters: [Parameters.endpoint, Parameters.recordingId],
168
+ headerParameters: [Parameters.accept],
169
+ serializer,
170
+ };
148
171
  //# sourceMappingURL=callRecording.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"callRecording.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callRecording.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IACX,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,cAA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EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,0CAA0C;IAChD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallRecording } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n StartCallRecordingRequest,\n CallRecordingStartRecordingOptionalParams,\n CallRecordingStartRecordingResponse,\n CallRecordingGetRecordingPropertiesOptionalParams,\n CallRecordingGetRecordingPropertiesResponse,\n CallRecordingStopRecordingOptionalParams,\n CallRecordingPauseRecordingOptionalParams,\n CallRecordingResumeRecordingOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing CallRecording operations. */\nexport class CallRecordingImpl implements CallRecording {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallRecording class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Start recording the call.\n * @param startCallRecording The request body of start call recording request.\n * @param options The options parameters.\n */\n startRecording(\n startCallRecording: StartCallRecordingRequest,\n options?: CallRecordingStartRecordingOptionalParams,\n ): Promise<CallRecordingStartRecordingResponse> {\n return this.client.sendOperationRequest(\n { startCallRecording, options },\n startRecordingOperationSpec,\n );\n }\n\n /**\n * Get call recording properties.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n getRecordingProperties(\n recordingId: string,\n options?: CallRecordingGetRecordingPropertiesOptionalParams,\n ): Promise<CallRecordingGetRecordingPropertiesResponse> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n getRecordingPropertiesOperationSpec,\n );\n }\n\n /**\n * Stop recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n stopRecording(\n recordingId: string,\n options?: CallRecordingStopRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n stopRecordingOperationSpec,\n );\n }\n\n /**\n * Pause recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n pauseRecording(\n recordingId: string,\n options?: CallRecordingPauseRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n pauseRecordingOperationSpec,\n );\n }\n\n /**\n * Resume recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n resumeRecording(\n recordingId: string,\n options?: CallRecordingResumeRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n resumeRecordingOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst startRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n 202: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startCallRecording,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.repeatabilityRequestID,\n Parameters.repeatabilityFirstSent,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getRecordingPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst pauseRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}:pause\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst resumeRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}:resume\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"callRecording.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/callRecording.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,cAAc,CACZ,kBAA6C,EAC7C,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAC/B,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,sBAAsB,CACpB,WAAmB,EACnB,OAA2D;QAE3D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,mCAAmC,CACpC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,WAAmB,EACnB,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,cAAc,CACZ,WAAmB,EACnB,OAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,eAAe,CACb,WAAmB,EACnB,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,4BAA4B,CAC7B,CAAC;IACJ,CAAC;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GAA6B;IAChE,IAAI,EAAE,0CAA0C;IAChD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CallRecording } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CallAutomationApiClient } from \"../callAutomationApiClient.js\";\nimport {\n StartCallRecordingRequest,\n CallRecordingStartRecordingOptionalParams,\n CallRecordingStartRecordingResponse,\n CallRecordingGetRecordingPropertiesOptionalParams,\n CallRecordingGetRecordingPropertiesResponse,\n CallRecordingStopRecordingOptionalParams,\n CallRecordingPauseRecordingOptionalParams,\n CallRecordingResumeRecordingOptionalParams,\n CallRecordingGetRecordingResultOptionalParams,\n CallRecordingGetRecordingResultResponse,\n} from \"../models/index.js\";\n\n/** Class containing CallRecording operations. */\nexport class CallRecordingImpl implements CallRecording {\n private readonly client: CallAutomationApiClient;\n\n /**\n * Initialize a new instance of the class CallRecording class.\n * @param client Reference to the service client\n */\n constructor(client: CallAutomationApiClient) {\n this.client = client;\n }\n\n /**\n * Start recording the call.\n * @param startCallRecording The request body of start call recording request.\n * @param options The options parameters.\n */\n startRecording(\n startCallRecording: StartCallRecordingRequest,\n options?: CallRecordingStartRecordingOptionalParams,\n ): Promise<CallRecordingStartRecordingResponse> {\n return this.client.sendOperationRequest(\n { startCallRecording, options },\n startRecordingOperationSpec,\n );\n }\n\n /**\n * Get call recording properties.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n getRecordingProperties(\n recordingId: string,\n options?: CallRecordingGetRecordingPropertiesOptionalParams,\n ): Promise<CallRecordingGetRecordingPropertiesResponse> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n getRecordingPropertiesOperationSpec,\n );\n }\n\n /**\n * Stop recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n stopRecording(\n recordingId: string,\n options?: CallRecordingStopRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n stopRecordingOperationSpec,\n );\n }\n\n /**\n * Pause recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n pauseRecording(\n recordingId: string,\n options?: CallRecordingPauseRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n pauseRecordingOperationSpec,\n );\n }\n\n /**\n * Resume recording the call.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n resumeRecording(\n recordingId: string,\n options?: CallRecordingResumeRecordingOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n resumeRecordingOperationSpec,\n );\n }\n\n /**\n * Get recording result. This includes the download URLs for the recording chunks.\n * @param recordingId The recording id.\n * @param options The options parameters.\n */\n getRecordingResult(\n recordingId: string,\n options?: CallRecordingGetRecordingResultOptionalParams,\n ): Promise<CallRecordingGetRecordingResultResponse> {\n return this.client.sendOperationRequest(\n { recordingId, options },\n getRecordingResultOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst startRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n 202: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n requestBody: Parameters.startCallRecording,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.repeatabilityRequestID,\n Parameters.repeatabilityFirstSent,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getRecordingPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingStateResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst pauseRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}:pause\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst resumeRecordingOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}:resume\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getRecordingResultOperationSpec: coreClient.OperationSpec = {\n path: \"/calling/recordings/{recordingId}/result\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RecordingResultResponse,\n },\n default: {\n bodyMapper: Mappers.CommunicationErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.recordingId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1,4 +1,5 @@
1
1
  export * from "./callConnection.js";
2
2
  export * from "./callMedia.js";
3
+ export * from "./callDialog.js";
3
4
  export * from "./callRecording.js";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
@@ -7,5 +7,6 @@
7
7
  */
8
8
  export * from "./callConnection.js";
9
9
  export * from "./callMedia.js";
10
+ export * from "./callDialog.js";
10
11
  export * from "./callRecording.js";
11
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./callConnection.js\";\nexport * from \"./callMedia.js\";\nexport * from \"./callRecording.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./callConnection.js\";\nexport * from \"./callMedia.js\";\nexport * from \"./callDialog.js\";\nexport * from \"./callRecording.js\";\n"]}