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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/dist/browser/callAutomationClient.d.ts.map +1 -1
  2. package/dist/browser/callAutomationClient.js +3 -0
  3. package/dist/browser/callAutomationClient.js.map +1 -1
  4. package/dist/browser/callAutomationEventParser.d.ts.map +1 -1
  5. package/dist/browser/callAutomationEventParser.js +15 -0
  6. package/dist/browser/callAutomationEventParser.js.map +1 -1
  7. package/dist/browser/callConnection.d.ts +10 -2
  8. package/dist/browser/callConnection.d.ts.map +1 -1
  9. package/dist/browser/callConnection.js +37 -2
  10. package/dist/browser/callConnection.js.map +1 -1
  11. package/dist/browser/callMedia.d.ts +7 -2
  12. package/dist/browser/callMedia.d.ts.map +1 -1
  13. package/dist/browser/callMedia.js +33 -5
  14. package/dist/browser/callMedia.js.map +1 -1
  15. package/dist/browser/generated/src/callAutomationApiClient.js +2 -2
  16. package/dist/browser/generated/src/callAutomationApiClient.js.map +1 -1
  17. package/dist/browser/generated/src/models/index.d.ts +255 -3
  18. package/dist/browser/generated/src/models/index.d.ts.map +1 -1
  19. package/dist/browser/generated/src/models/index.js +12 -0
  20. package/dist/browser/generated/src/models/index.js.map +1 -1
  21. package/dist/browser/generated/src/models/mappers.d.ts +13 -0
  22. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
  23. package/dist/browser/generated/src/models/mappers.js +652 -1
  24. package/dist/browser/generated/src/models/mappers.js.map +1 -1
  25. package/dist/browser/generated/src/models/parameters.d.ts +2 -0
  26. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -1
  27. package/dist/browser/generated/src/models/parameters.js +10 -2
  28. package/dist/browser/generated/src/models/parameters.js.map +1 -1
  29. package/dist/browser/generated/src/operations/callConnection.d.ts +8 -1
  30. package/dist/browser/generated/src/operations/callConnection.d.ts.map +1 -1
  31. package/dist/browser/generated/src/operations/callConnection.js +32 -0
  32. package/dist/browser/generated/src/operations/callConnection.js.map +1 -1
  33. package/dist/browser/generated/src/operations/callMedia.d.ts +8 -1
  34. package/dist/browser/generated/src/operations/callMedia.d.ts.map +1 -1
  35. package/dist/browser/generated/src/operations/callMedia.js +25 -0
  36. package/dist/browser/generated/src/operations/callMedia.js.map +1 -1
  37. package/dist/browser/generated/src/operationsInterfaces/callConnection.d.ts +8 -1
  38. package/dist/browser/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  39. package/dist/browser/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  40. package/dist/browser/generated/src/operationsInterfaces/callMedia.d.ts +8 -1
  41. package/dist/browser/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  42. package/dist/browser/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  43. package/dist/browser/models/constants.d.ts.map +1 -1
  44. package/dist/browser/models/constants.js +1 -1
  45. package/dist/browser/models/constants.js.map +1 -1
  46. package/dist/browser/models/events.d.ts +245 -264
  47. package/dist/browser/models/events.d.ts.map +1 -1
  48. package/dist/browser/models/events.js.map +1 -1
  49. package/dist/browser/models/models.d.ts +78 -3
  50. package/dist/browser/models/models.d.ts.map +1 -1
  51. package/dist/browser/models/models.js.map +1 -1
  52. package/dist/browser/models/options.d.ts +65 -1
  53. package/dist/browser/models/options.d.ts.map +1 -1
  54. package/dist/browser/models/options.js.map +1 -1
  55. package/dist/browser/models/responses.d.ts +9 -0
  56. package/dist/browser/models/responses.d.ts.map +1 -1
  57. package/dist/browser/models/responses.js.map +1 -1
  58. package/dist/browser/models/streaming.d.ts +12 -1
  59. package/dist/browser/models/streaming.d.ts.map +1 -1
  60. package/dist/browser/models/streaming.js.map +1 -1
  61. package/dist/browser/streamingData.d.ts.map +1 -1
  62. package/dist/browser/streamingData.js +5 -0
  63. package/dist/browser/streamingData.js.map +1 -1
  64. package/dist/browser/utli/converters.d.ts +26 -2
  65. package/dist/browser/utli/converters.d.ts.map +1 -1
  66. package/dist/browser/utli/converters.js +113 -0
  67. package/dist/browser/utli/converters.js.map +1 -1
  68. package/dist/commonjs/callAutomationClient.d.ts.map +1 -1
  69. package/dist/commonjs/callAutomationClient.js +3 -0
  70. package/dist/commonjs/callAutomationClient.js.map +1 -1
  71. package/dist/commonjs/callAutomationEventParser.d.ts.map +1 -1
  72. package/dist/commonjs/callAutomationEventParser.js +15 -0
  73. package/dist/commonjs/callAutomationEventParser.js.map +1 -1
  74. package/dist/commonjs/callConnection.d.ts +10 -2
  75. package/dist/commonjs/callConnection.d.ts.map +1 -1
  76. package/dist/commonjs/callConnection.js +36 -1
  77. package/dist/commonjs/callConnection.js.map +1 -1
  78. package/dist/commonjs/callMedia.d.ts +7 -2
  79. package/dist/commonjs/callMedia.d.ts.map +1 -1
  80. package/dist/commonjs/callMedia.js +33 -5
  81. package/dist/commonjs/callMedia.js.map +1 -1
  82. package/dist/commonjs/generated/src/callAutomationApiClient.js +2 -2
  83. package/dist/commonjs/generated/src/callAutomationApiClient.js.map +1 -1
  84. package/dist/commonjs/generated/src/models/index.d.ts +255 -3
  85. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
  86. package/dist/commonjs/generated/src/models/index.js +13 -1
  87. package/dist/commonjs/generated/src/models/index.js.map +1 -1
  88. package/dist/commonjs/generated/src/models/mappers.d.ts +13 -0
  89. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
  90. package/dist/commonjs/generated/src/models/mappers.js +655 -4
  91. package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
  92. package/dist/commonjs/generated/src/models/parameters.d.ts +2 -0
  93. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -1
  94. package/dist/commonjs/generated/src/models/parameters.js +10 -2
  95. package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
  96. package/dist/commonjs/generated/src/operations/callConnection.d.ts +8 -1
  97. package/dist/commonjs/generated/src/operations/callConnection.d.ts.map +1 -1
  98. package/dist/commonjs/generated/src/operations/callConnection.js +32 -0
  99. package/dist/commonjs/generated/src/operations/callConnection.js.map +1 -1
  100. package/dist/commonjs/generated/src/operations/callMedia.d.ts +8 -1
  101. package/dist/commonjs/generated/src/operations/callMedia.d.ts.map +1 -1
  102. package/dist/commonjs/generated/src/operations/callMedia.js +25 -0
  103. package/dist/commonjs/generated/src/operations/callMedia.js.map +1 -1
  104. package/dist/commonjs/generated/src/operationsInterfaces/callConnection.d.ts +8 -1
  105. package/dist/commonjs/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  106. package/dist/commonjs/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  107. package/dist/commonjs/generated/src/operationsInterfaces/callMedia.d.ts +8 -1
  108. package/dist/commonjs/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  109. package/dist/commonjs/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  110. package/dist/commonjs/models/constants.d.ts.map +1 -1
  111. package/dist/commonjs/models/constants.js +1 -1
  112. package/dist/commonjs/models/constants.js.map +1 -1
  113. package/dist/commonjs/models/events.d.ts +245 -264
  114. package/dist/commonjs/models/events.d.ts.map +1 -1
  115. package/dist/commonjs/models/events.js.map +1 -1
  116. package/dist/commonjs/models/models.d.ts +78 -3
  117. package/dist/commonjs/models/models.d.ts.map +1 -1
  118. package/dist/commonjs/models/models.js.map +1 -1
  119. package/dist/commonjs/models/options.d.ts +65 -1
  120. package/dist/commonjs/models/options.d.ts.map +1 -1
  121. package/dist/commonjs/models/options.js.map +1 -1
  122. package/dist/commonjs/models/responses.d.ts +9 -0
  123. package/dist/commonjs/models/responses.d.ts.map +1 -1
  124. package/dist/commonjs/models/responses.js.map +1 -1
  125. package/dist/commonjs/models/streaming.d.ts +12 -1
  126. package/dist/commonjs/models/streaming.d.ts.map +1 -1
  127. package/dist/commonjs/models/streaming.js.map +1 -1
  128. package/dist/commonjs/streamingData.d.ts.map +1 -1
  129. package/dist/commonjs/streamingData.js +5 -0
  130. package/dist/commonjs/streamingData.js.map +1 -1
  131. package/dist/commonjs/utli/converters.d.ts +26 -2
  132. package/dist/commonjs/utli/converters.d.ts.map +1 -1
  133. package/dist/commonjs/utli/converters.js +119 -0
  134. package/dist/commonjs/utli/converters.js.map +1 -1
  135. package/dist/esm/callAutomationClient.d.ts.map +1 -1
  136. package/dist/esm/callAutomationClient.js +3 -0
  137. package/dist/esm/callAutomationClient.js.map +1 -1
  138. package/dist/esm/callAutomationEventParser.d.ts.map +1 -1
  139. package/dist/esm/callAutomationEventParser.js +15 -0
  140. package/dist/esm/callAutomationEventParser.js.map +1 -1
  141. package/dist/esm/callConnection.d.ts +10 -2
  142. package/dist/esm/callConnection.d.ts.map +1 -1
  143. package/dist/esm/callConnection.js +37 -2
  144. package/dist/esm/callConnection.js.map +1 -1
  145. package/dist/esm/callMedia.d.ts +7 -2
  146. package/dist/esm/callMedia.d.ts.map +1 -1
  147. package/dist/esm/callMedia.js +33 -5
  148. package/dist/esm/callMedia.js.map +1 -1
  149. package/dist/esm/generated/src/callAutomationApiClient.js +2 -2
  150. package/dist/esm/generated/src/callAutomationApiClient.js.map +1 -1
  151. package/dist/esm/generated/src/models/index.d.ts +255 -3
  152. package/dist/esm/generated/src/models/index.d.ts.map +1 -1
  153. package/dist/esm/generated/src/models/index.js +12 -0
  154. package/dist/esm/generated/src/models/index.js.map +1 -1
  155. package/dist/esm/generated/src/models/mappers.d.ts +13 -0
  156. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
  157. package/dist/esm/generated/src/models/mappers.js +652 -1
  158. package/dist/esm/generated/src/models/mappers.js.map +1 -1
  159. package/dist/esm/generated/src/models/parameters.d.ts +2 -0
  160. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -1
  161. package/dist/esm/generated/src/models/parameters.js +10 -2
  162. package/dist/esm/generated/src/models/parameters.js.map +1 -1
  163. package/dist/esm/generated/src/operations/callConnection.d.ts +8 -1
  164. package/dist/esm/generated/src/operations/callConnection.d.ts.map +1 -1
  165. package/dist/esm/generated/src/operations/callConnection.js +32 -0
  166. package/dist/esm/generated/src/operations/callConnection.js.map +1 -1
  167. package/dist/esm/generated/src/operations/callMedia.d.ts +8 -1
  168. package/dist/esm/generated/src/operations/callMedia.d.ts.map +1 -1
  169. package/dist/esm/generated/src/operations/callMedia.js +25 -0
  170. package/dist/esm/generated/src/operations/callMedia.js.map +1 -1
  171. package/dist/esm/generated/src/operationsInterfaces/callConnection.d.ts +8 -1
  172. package/dist/esm/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  173. package/dist/esm/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  174. package/dist/esm/generated/src/operationsInterfaces/callMedia.d.ts +8 -1
  175. package/dist/esm/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  176. package/dist/esm/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  177. package/dist/esm/models/constants.d.ts.map +1 -1
  178. package/dist/esm/models/constants.js +1 -1
  179. package/dist/esm/models/constants.js.map +1 -1
  180. package/dist/esm/models/events.d.ts +245 -264
  181. package/dist/esm/models/events.d.ts.map +1 -1
  182. package/dist/esm/models/events.js.map +1 -1
  183. package/dist/esm/models/models.d.ts +78 -3
  184. package/dist/esm/models/models.d.ts.map +1 -1
  185. package/dist/esm/models/models.js.map +1 -1
  186. package/dist/esm/models/options.d.ts +65 -1
  187. package/dist/esm/models/options.d.ts.map +1 -1
  188. package/dist/esm/models/options.js.map +1 -1
  189. package/dist/esm/models/responses.d.ts +9 -0
  190. package/dist/esm/models/responses.d.ts.map +1 -1
  191. package/dist/esm/models/responses.js.map +1 -1
  192. package/dist/esm/models/streaming.d.ts +12 -1
  193. package/dist/esm/models/streaming.d.ts.map +1 -1
  194. package/dist/esm/models/streaming.js.map +1 -1
  195. package/dist/esm/streamingData.d.ts.map +1 -1
  196. package/dist/esm/streamingData.js +5 -0
  197. package/dist/esm/streamingData.js.map +1 -1
  198. package/dist/esm/utli/converters.d.ts +26 -2
  199. package/dist/esm/utli/converters.d.ts.map +1 -1
  200. package/dist/esm/utli/converters.js +113 -0
  201. package/dist/esm/utli/converters.js.map +1 -1
  202. package/dist/react-native/callAutomationClient.d.ts.map +1 -1
  203. package/dist/react-native/callAutomationClient.js +3 -0
  204. package/dist/react-native/callAutomationClient.js.map +1 -1
  205. package/dist/react-native/callAutomationEventParser.d.ts.map +1 -1
  206. package/dist/react-native/callAutomationEventParser.js +15 -0
  207. package/dist/react-native/callAutomationEventParser.js.map +1 -1
  208. package/dist/react-native/callConnection.d.ts +10 -2
  209. package/dist/react-native/callConnection.d.ts.map +1 -1
  210. package/dist/react-native/callConnection.js +37 -2
  211. package/dist/react-native/callConnection.js.map +1 -1
  212. package/dist/react-native/callMedia.d.ts +7 -2
  213. package/dist/react-native/callMedia.d.ts.map +1 -1
  214. package/dist/react-native/callMedia.js +33 -5
  215. package/dist/react-native/callMedia.js.map +1 -1
  216. package/dist/react-native/generated/src/callAutomationApiClient.js +2 -2
  217. package/dist/react-native/generated/src/callAutomationApiClient.js.map +1 -1
  218. package/dist/react-native/generated/src/models/index.d.ts +255 -3
  219. package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
  220. package/dist/react-native/generated/src/models/index.js +12 -0
  221. package/dist/react-native/generated/src/models/index.js.map +1 -1
  222. package/dist/react-native/generated/src/models/mappers.d.ts +13 -0
  223. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
  224. package/dist/react-native/generated/src/models/mappers.js +652 -1
  225. package/dist/react-native/generated/src/models/mappers.js.map +1 -1
  226. package/dist/react-native/generated/src/models/parameters.d.ts +2 -0
  227. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -1
  228. package/dist/react-native/generated/src/models/parameters.js +10 -2
  229. package/dist/react-native/generated/src/models/parameters.js.map +1 -1
  230. package/dist/react-native/generated/src/operations/callConnection.d.ts +8 -1
  231. package/dist/react-native/generated/src/operations/callConnection.d.ts.map +1 -1
  232. package/dist/react-native/generated/src/operations/callConnection.js +32 -0
  233. package/dist/react-native/generated/src/operations/callConnection.js.map +1 -1
  234. package/dist/react-native/generated/src/operations/callMedia.d.ts +8 -1
  235. package/dist/react-native/generated/src/operations/callMedia.d.ts.map +1 -1
  236. package/dist/react-native/generated/src/operations/callMedia.js +25 -0
  237. package/dist/react-native/generated/src/operations/callMedia.js.map +1 -1
  238. package/dist/react-native/generated/src/operationsInterfaces/callConnection.d.ts +8 -1
  239. package/dist/react-native/generated/src/operationsInterfaces/callConnection.d.ts.map +1 -1
  240. package/dist/react-native/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  241. package/dist/react-native/generated/src/operationsInterfaces/callMedia.d.ts +8 -1
  242. package/dist/react-native/generated/src/operationsInterfaces/callMedia.d.ts.map +1 -1
  243. package/dist/react-native/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  244. package/dist/react-native/models/constants.d.ts.map +1 -1
  245. package/dist/react-native/models/constants.js +1 -1
  246. package/dist/react-native/models/constants.js.map +1 -1
  247. package/dist/react-native/models/events.d.ts +245 -264
  248. package/dist/react-native/models/events.d.ts.map +1 -1
  249. package/dist/react-native/models/events.js.map +1 -1
  250. package/dist/react-native/models/models.d.ts +78 -3
  251. package/dist/react-native/models/models.d.ts.map +1 -1
  252. package/dist/react-native/models/models.js.map +1 -1
  253. package/dist/react-native/models/options.d.ts +65 -1
  254. package/dist/react-native/models/options.d.ts.map +1 -1
  255. package/dist/react-native/models/options.js.map +1 -1
  256. package/dist/react-native/models/responses.d.ts +9 -0
  257. package/dist/react-native/models/responses.d.ts.map +1 -1
  258. package/dist/react-native/models/responses.js.map +1 -1
  259. package/dist/react-native/models/streaming.d.ts +12 -1
  260. package/dist/react-native/models/streaming.d.ts.map +1 -1
  261. package/dist/react-native/models/streaming.js.map +1 -1
  262. package/dist/react-native/streamingData.d.ts.map +1 -1
  263. package/dist/react-native/streamingData.js +5 -0
  264. package/dist/react-native/streamingData.js.map +1 -1
  265. package/dist/react-native/utli/converters.d.ts +26 -2
  266. package/dist/react-native/utli/converters.d.ts.map +1 -1
  267. package/dist/react-native/utli/converters.js +113 -0
  268. package/dist/react-native/utli/converters.js.map +1 -1
  269. package/package.json +3 -3
@@ -1,36 +1,39 @@
1
1
  import type { CommunicationIdentifier } from "@azure/communication-common";
2
- import { AddParticipantSucceeded as RestAddParticipantSucceeded, AddParticipantFailed as RestAddParticipantFailed, RemoveParticipantSucceeded as RestRemoveParticipantSucceeded, RemoveParticipantFailed as RestRemoveParticipantFailed, CallConnected as RestCallConnected, CallDisconnected as RestCallDisconnected, CallTransferAccepted as RestCallTransferAccepted, CallTransferFailed as RestCallTransferFailed, ParticipantsUpdated as RestParticipantsUpdated, RecordingStateChanged as RestRecordingStateChanged, PlayStarted as RestPlayStarted, PlayCompleted as RestPlayCompleted, PlayFailed as RestPlayFailed, PlayCanceled as RestPlayCanceled, RecognizeCompleted as RestRecognizeCompleted, RecognizeFailed as RestRecognizeFailed, RecognizeCanceled as RestRecognizeCanceled, ResultInformation as RestResultInformation, ContinuousDtmfRecognitionToneReceived as RestContinuousDtmfRecognitionToneReceived, ContinuousDtmfRecognitionToneFailed as RestContinuousDtmfRecognitionToneFailed, ContinuousDtmfRecognitionStopped as RestContinuousDtmfRecognitionStopped, SendDtmfTonesCompleted as RestSendDtmfTonesCompleted, SendDtmfTonesFailed as RestSendDtmfTonesFailed, Tone, CancelAddParticipantSucceeded as RestCancelAddParticipantSucceeded, CancelAddParticipantFailed as RestCancelAddParticipantFailed, ConnectFailed as RestConnectFailed, HoldFailed as RestHoldFailed, AnswerFailed as RestAnswerFailed, CreateCallFailed as RestCreateCallFailed, TranscriptionStarted as RestTranscriptionStarted, TranscriptionStopped as RestTranscriptionStopped, TranscriptionUpdated as RestTranscriptionUpdated, TranscriptionFailed as RestTranscriptionFailed, MediaStreamingStarted as RestMediaStreamingStarted, MediaStreamingStopped as RestMediaStreamingStopped, MediaStreamingFailed as RestMediaStreamingFailed } from "../generated/src/models/index.js";
3
- import type { CallParticipant } from "./models.js";
2
+ import { Tone, ChoiceResult, DtmfResult, RecognitionType, SpeechResult, RecordingKind, MediaStreamingUpdate, TranscriptionUpdate, SipDiagnosticInfo } from "../generated/src/models/index.js";
3
+ import type { CallParticipant, RecordingState, CustomCallingContext } from "./models.js";
4
4
  /** Callback events for Call Automation */
5
- export type CallAutomationEvent = AddParticipantSucceeded | AddParticipantFailed | RemoveParticipantSucceeded | RemoveParticipantFailed | CallConnected | CallDisconnected | CallTransferAccepted | CallTransferFailed | ParticipantsUpdated | RecordingStateChanged | PlayCompleted | PlayFailed | PlayCanceled | RecognizeCompleted | RecognizeCanceled | RecognizeFailed | ContinuousDtmfRecognitionToneReceived | ContinuousDtmfRecognitionToneFailed | ContinuousDtmfRecognitionStopped | SendDtmfTonesCompleted | SendDtmfTonesFailed | CancelAddParticipantSucceeded | CancelAddParticipantFailed | TranscriptionStarted | TranscriptionStopped | TranscriptionUpdated | TranscriptionFailed | CreateCallFailed | AnswerFailed | HoldFailed | ConnectFailed | MediaStreamingStarted | MediaStreamingStopped | MediaStreamingFailed | PlayStarted | StartRecordingFailed;
6
- export { RestAddParticipantSucceeded, RestAddParticipantFailed, RestRemoveParticipantSucceeded, RestRemoveParticipantFailed, RestCallConnected, RestCallDisconnected, RestCallTransferAccepted, RestCallTransferFailed, RestParticipantsUpdated, RestRecordingStateChanged, RestPlayStarted, RestPlayCompleted, RestPlayFailed, RestPlayCanceled, RestRecognizeCompleted, RestRecognizeFailed, RestRecognizeCanceled, RestResultInformation, RestContinuousDtmfRecognitionToneReceived, RestContinuousDtmfRecognitionToneFailed, RestContinuousDtmfRecognitionStopped, RestSendDtmfTonesCompleted, RestSendDtmfTonesFailed, RestCancelAddParticipantSucceeded, RestCancelAddParticipantFailed, RestConnectFailed, RestTranscriptionStarted, RestTranscriptionStopped, RestTranscriptionUpdated, RestTranscriptionFailed, RestHoldFailed, RestMediaStreamingStarted, RestMediaStreamingStopped, RestMediaStreamingFailed, RestCreateCallFailed, RestAnswerFailed, };
7
- export interface ResultInformation
8
- /**
9
- * @deprecated RestResultInformation is deprecated.
10
- * Use ResultInformation instead.
11
- */
12
- extends Omit<RestResultInformation, "code" | "subCode" | "message"> {
5
+ export type CallAutomationEvent = AddParticipantSucceeded | AddParticipantFailed | RemoveParticipantSucceeded | RemoveParticipantFailed | CallConnected | CallDisconnected | CallTransferAccepted | CallTransferFailed | ParticipantsUpdated | RecordingStateChanged | PlayStarted | PlayCompleted | PlayFailed | PlayCanceled | RecognizeCompleted | RecognizeCanceled | RecognizeFailed | ContinuousDtmfRecognitionToneReceived | ContinuousDtmfRecognitionToneFailed | ContinuousDtmfRecognitionStopped | SendDtmfTonesCompleted | SendDtmfTonesFailed | CancelAddParticipantSucceeded | CancelAddParticipantFailed | ConnectFailed | TranscriptionStarted | TranscriptionStopped | TranscriptionUpdated | TranscriptionFailed | HoldFailed | MediaStreamingStarted | MediaStreamingStopped | MediaStreamingFailed | CreateCallFailed | AnswerFailed | StartRecordingFailed | IncomingCall | MoveParticipantSucceeded | MoveParticipantFailed | TranscriptionCallSummaryUpdated;
6
+ export interface ResultInformation {
13
7
  /** The error code. */
14
8
  code: number;
15
9
  /** The sub code of error. */
16
10
  subCode: number;
17
11
  /** The detailed message of the error. */
18
12
  message: string;
13
+ /**
14
+ * Sip response from SBC. This can be helpful to troubleshoot PSTN call if this result was unexpected.
15
+ * This is only applicable for PSTN calls and will be null if SBC/Carrier does not provide this information.
16
+ * Do not solely rely on this information for troubleshooting, as it may not always be available.
17
+ */
18
+ sipDetails?: SipDiagnosticInfo;
19
+ /**
20
+ * Q850 cause from SBC. This can be helpful to troubleshoot call issues if this result was unexpected.
21
+ * This is only applicable for PSTN calls and will be null if SBC/Carrier does not provide this information.
22
+ * Do not solely rely on this information for troubleshooting, as it may not always be available.
23
+ */
24
+ q850Details?: SipDiagnosticInfo;
19
25
  }
20
26
  /** The participant successfully added event. */
21
- export interface AddParticipantSucceeded
22
- /**
23
- * @deprecated RestAddParticipantSucceeded is deprecated.
24
- * Use AddParticipantSucceeded instead.
25
- */
26
- extends Omit<RestAddParticipantSucceeded, "callConnectionId" | "serverCallId" | "correlationId" | "participant" | "resultInformation"> {
27
+ export interface AddParticipantSucceeded {
27
28
  /** Call connection ID. */
28
29
  callConnectionId: string;
29
30
  /** Server call ID. */
30
31
  serverCallId: string;
31
32
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
32
33
  correlationId: string;
33
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
34
+ /** Use this to correlate the request to the response event. */
35
+ operationContext?: string;
36
+ /** Contains the resulting SIP code/sub-code and message. */
34
37
  resultInformation?: ResultInformation;
35
38
  /** The participant in the call. */
36
39
  participant?: CommunicationIdentifier;
@@ -38,19 +41,16 @@ export interface AddParticipantSucceeded
38
41
  kind: "AddParticipantSucceeded";
39
42
  }
40
43
  /** The failed to add participant event. */
41
- export interface AddParticipantFailed
42
- /**
43
- * @deprecated RestAddParticipantFailed is deprecated.
44
- * Use AddParticipantFailed instead.
45
- */
46
- extends Omit<RestAddParticipantFailed, "callConnectionId" | "serverCallId" | "correlationId" | "participant" | "resultInformation"> {
44
+ export interface AddParticipantFailed {
47
45
  /** Call connection ID. */
48
46
  callConnectionId: string;
49
47
  /** Server call ID. */
50
48
  serverCallId: string;
51
49
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
52
50
  correlationId: string;
53
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
51
+ /** Use this to correlate the request to the response event. */
52
+ operationContext?: string;
53
+ /** Contains the resulting SIP code/sub-code and message. */
54
54
  resultInformation?: ResultInformation;
55
55
  /** The participant in the call. */
56
56
  participant?: CommunicationIdentifier;
@@ -58,19 +58,16 @@ export interface AddParticipantFailed
58
58
  kind: "AddParticipantFailed";
59
59
  }
60
60
  /** The participant successfully removed event. */
61
- export interface RemoveParticipantSucceeded
62
- /**
63
- * @deprecated RestRemoveParticipantSucceeded is deprecated.
64
- * Use RemoveParticipantSucceeded instead.
65
- */
66
- extends Omit<RestRemoveParticipantSucceeded, "callConnectionId" | "serverCallId" | "correlationId" | "participant" | "resultInformation"> {
61
+ export interface RemoveParticipantSucceeded {
67
62
  /** Call connection ID. */
68
63
  callConnectionId: string;
69
64
  /** Server call ID. */
70
65
  serverCallId: string;
71
66
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
72
67
  correlationId: string;
73
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
68
+ /** Use this to correlate the request to the response event. */
69
+ operationContext?: string;
70
+ /** Contains the resulting SIP code/sub-code and message. */
74
71
  resultInformation?: ResultInformation;
75
72
  /** The participant in the call. */
76
73
  participant?: CommunicationIdentifier;
@@ -78,19 +75,16 @@ export interface RemoveParticipantSucceeded
78
75
  kind: "RemoveParticipantSucceeded";
79
76
  }
80
77
  /** The failed to remove participant event. */
81
- export interface RemoveParticipantFailed
82
- /**
83
- * @deprecated RestRemoveParticipantFailed is deprecated.
84
- * Use RemoveParticipantFailed instead.
85
- */
86
- extends Omit<RestRemoveParticipantFailed, "callConnectionId" | "serverCallId" | "correlationId" | "participant" | "resultInformation"> {
78
+ export interface RemoveParticipantFailed {
87
79
  /** Call connection ID. */
88
80
  callConnectionId: string;
89
81
  /** Server call ID. */
90
82
  serverCallId: string;
91
83
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
92
84
  correlationId: string;
93
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
85
+ /** Use this to correlate the request to the response event. */
86
+ operationContext?: string;
87
+ /** Contains the resulting SIP code/sub-code and message. */
94
88
  resultInformation?: ResultInformation;
95
89
  /** The participant in the call. */
96
90
  participant?: CommunicationIdentifier;
@@ -98,55 +92,69 @@ export interface RemoveParticipantFailed
98
92
  kind: "RemoveParticipantFailed";
99
93
  }
100
94
  /** Event when call was established. */
101
- export interface CallConnected
102
- /**
103
- * @deprecated RestCallConnected is deprecated.
104
- * Use CallConnected instead.
105
- */
106
- extends Omit<RestCallConnected, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
95
+ export interface CallConnected {
107
96
  /** Call connection ID. */
108
97
  callConnectionId: string;
109
98
  /** Server call ID. */
110
99
  serverCallId: string;
111
100
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
112
101
  correlationId: string;
113
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
102
+ /** Use this to correlate the request to the response event. */
103
+ operationContext?: string;
104
+ /** Contains the resulting SIP code/sub-code and message. */
114
105
  resultInformation?: ResultInformation;
115
106
  /** kind of this event. */
116
107
  kind: "CallConnected";
117
108
  }
109
+ /** Event when call was initiated. */
110
+ export interface IncomingCall {
111
+ /** Call connection ID. */
112
+ callConnectionId: string;
113
+ /** The communication identifier of the target user.*/
114
+ to?: CommunicationIdentifier;
115
+ /** The communication identifier of the user who initiated the call.*/
116
+ from?: CommunicationIdentifier;
117
+ /** Display name of caller.*/
118
+ callerDisplayName?: string;
119
+ /** Custom Context of Incoming Call */
120
+ customContext?: CustomCallingContext;
121
+ /** Incoming call context.*/
122
+ incomingCallContext?: string;
123
+ /** The communication identifier of the user on behalf of whom the call is made.*/
124
+ onBehalfOfCallee?: CommunicationIdentifier;
125
+ /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
126
+ correlationId: string;
127
+ /** Contains the resulting SIP code/sub-code and message. */
128
+ resultInformation?: ResultInformation;
129
+ /** kind of this event. */
130
+ kind: "IncomingCall";
131
+ }
118
132
  /** Event when all participants left and call was terminated. */
119
- export interface CallDisconnected
120
- /**
121
- * @deprecated RestCallDisconnected is deprecated.
122
- * Use CallDisconnected instead.
123
- */
124
- extends Omit<RestCallDisconnected, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
133
+ export interface CallDisconnected {
125
134
  /** Call connection ID. */
126
135
  callConnectionId: string;
127
136
  /** Server call ID. */
128
137
  serverCallId: string;
129
138
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
130
139
  correlationId: string;
131
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
140
+ /** Use this to correlate the request to the response event. */
141
+ operationContext?: string;
142
+ /** Contains the resulting SIP code/sub-code and message. */
132
143
  resultInformation?: ResultInformation;
133
144
  /** kind of this event. */
134
145
  kind: "CallDisconnected";
135
146
  }
136
147
  /** Event when transfer request was successful. */
137
- export interface CallTransferAccepted
138
- /**
139
- * @deprecated RestCallTransferAccepted is deprecated.
140
- * Use CallTransferAccepted instead.
141
- */
142
- extends Omit<RestCallTransferAccepted, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation" | "transferee" | "transferTarget"> {
148
+ export interface CallTransferAccepted {
143
149
  /** Call connection ID. */
144
150
  callConnectionId: string;
145
151
  /** Server call ID. */
146
152
  serverCallId: string;
147
153
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
148
154
  correlationId: string;
149
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
155
+ /** Use this to correlate the request to the response event. */
156
+ operationContext?: string;
157
+ /** Contains the resulting SIP code/sub-code and message. */
150
158
  resultInformation?: ResultInformation;
151
159
  /** Participant that was transferred away */
152
160
  transferee: CommunicationIdentifier;
@@ -156,62 +164,56 @@ export interface CallTransferAccepted
156
164
  kind: "CallTransferAccepted";
157
165
  }
158
166
  /** Event when transfer request was failed. */
159
- export interface CallTransferFailed
160
- /**
161
- * @deprecated RestCallTransferFailed is deprecated.
162
- * Use CallTransferFailed instead.
163
- */
164
- extends Omit<RestCallTransferFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
167
+ export interface CallTransferFailed {
165
168
  /** Call connection ID. */
166
169
  callConnectionId: string;
167
170
  /** Server call ID. */
168
171
  serverCallId: string;
169
172
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
170
173
  correlationId: string;
171
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
174
+ /** Use this to correlate the request to the response event. */
175
+ operationContext?: string;
176
+ /** Contains the resulting SIP code/sub-code and message. */
172
177
  resultInformation?: ResultInformation;
173
178
  /** kind of this event. */
174
179
  kind: "CallTransferFailed";
175
180
  }
176
181
  /** Event when there was an update to participant(s). */
177
- export interface ParticipantsUpdated
178
- /**
179
- * @deprecated RestParticipantsUpdated is deprecated.
180
- * Use ParticipantsUpdated instead.
181
- */
182
- extends Omit<RestParticipantsUpdated, "callConnectionId" | "serverCallId" | "correlationId" | "participants" | "resultInformation"> {
182
+ export interface ParticipantsUpdated {
183
183
  /** Call connection ID. */
184
184
  callConnectionId: string;
185
185
  /** Server call ID. */
186
186
  serverCallId: string;
187
187
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
188
188
  correlationId: string;
189
+ /** The Sequence Number of the event */
190
+ sequenceNumber?: number;
189
191
  /** The list of participants in the call. */
190
192
  participants: CallParticipant[];
191
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
193
+ /** Contains the resulting SIP code/sub-code and message. */
192
194
  resultInformation?: ResultInformation;
193
195
  /** kind of this event. */
194
196
  kind: "ParticipantsUpdated";
195
197
  }
196
198
  /** Event when Recording state has been changed. */
197
- export interface RecordingStateChanged
198
- /**
199
- * @deprecated RestRecordingStateChanged is deprecated.
200
- * Use RecordingStateChanged instead.
201
- */
202
- extends Omit<RestRecordingStateChanged, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
199
+ export interface RecordingStateChanged {
203
200
  /** Call connection ID. */
204
201
  callConnectionId: string;
205
202
  /** Server call ID. */
206
203
  serverCallId: string;
207
204
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
208
205
  correlationId: string;
209
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
206
+ /** Contains the resulting SIP code/sub-code and message. */
210
207
  resultInformation?: ResultInformation;
208
+ /** The call recording id. */
209
+ recordingId?: string;
210
+ state?: RecordingState;
211
+ /** The time of the recording started. */
212
+ startDateTime?: Date;
213
+ recordingKind?: RecordingKind;
211
214
  /** kind of this event. */
212
215
  kind: "RecordingStateChanged";
213
216
  }
214
- /** Event when StartRecording was failed. */
215
217
  export interface StartRecordingFailed {
216
218
  /** Call connection ID. */
217
219
  callConnectionId: string;
@@ -227,138 +229,127 @@ export interface StartRecordingFailed {
227
229
  kind: "StartRecordingFailed";
228
230
  }
229
231
  /** Event when Media play was successfully started. */
230
- export interface PlayStarted
231
- /**
232
- * @deprecated RestPlayStarted is deprecated.
233
- * Use PlayStarted instead.
234
- */
235
- extends Omit<RestPlayStarted, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
232
+ export interface PlayStarted {
236
233
  /** Call connection ID. */
237
234
  callConnectionId: string;
238
235
  /** Server call ID. */
239
236
  serverCallId: string;
240
237
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
241
238
  correlationId: string;
242
- /** Contains the resulting SIP code, sub-code and message. */
239
+ /** Use this to correlate the request to the response event. */
240
+ operationContext?: string;
241
+ /** Contains the resulting SIP code/sub-code and message. */
243
242
  resultInformation?: ResultInformation;
244
243
  /** kind of this event. */
245
244
  kind: "PlayStarted";
246
245
  }
247
246
  /** Event when Media play was successfully completed. */
248
- export interface PlayCompleted
249
- /**
250
- * @deprecated RestPlayCompleted is deprecated.
251
- * Use PlayCompleted instead.
252
- */
253
- extends Omit<RestPlayCompleted, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
247
+ export interface PlayCompleted {
254
248
  /** Call connection ID. */
255
249
  callConnectionId: string;
256
250
  /** Server call ID. */
257
251
  serverCallId: string;
258
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
252
+ /** Contains the resulting SIP code/sub-code and message. */
259
253
  resultInformation?: ResultInformation;
260
254
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
261
255
  correlationId: string;
256
+ /** Use this to correlate the request to the response event. */
257
+ operationContext?: string;
262
258
  /** kind of this event. */
263
259
  kind: "PlayCompleted";
264
260
  }
265
261
  /** Event when Media play was failed. */
266
- export interface PlayFailed
267
- /**
268
- * @deprecated RestPlayFailed is deprecated.
269
- * Use PlayFailed instead.
270
- */
271
- extends Omit<RestPlayFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
262
+ export interface PlayFailed {
272
263
  /** Call connection ID. */
273
264
  callConnectionId: string;
274
265
  /** Server call ID. */
275
266
  serverCallId: string;
276
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
267
+ /** Contains the resulting SIP code/sub-code and message. */
277
268
  resultInformation?: ResultInformation;
278
269
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
279
270
  correlationId: string;
271
+ /** Use this to correlate the request to the response event. */
272
+ operationContext?: string;
273
+ /** Contains the index of the failed play source. */
274
+ failedPlaySourceIndex?: number;
280
275
  /** kind of this event. */
281
276
  kind: "PlayFailed";
282
277
  }
283
278
  /** Event when Media play was canceled by Cancel operation. */
284
- export interface PlayCanceled
285
- /**
286
- * @deprecated RestPlayCanceled is deprecated.
287
- * Use PlayCanceled instead.
288
- */
289
- extends Omit<RestPlayCanceled, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
279
+ export interface PlayCanceled {
290
280
  /** Call connection ID. */
291
281
  callConnectionId: string;
292
282
  /** Server call ID. */
293
283
  serverCallId: string;
294
284
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
295
285
  correlationId: string;
296
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
286
+ /** Use this to correlate the request to the response event. */
287
+ operationContext?: string;
288
+ /** Contains the resulting SIP code/sub-code and message. */
297
289
  resultInformation?: ResultInformation;
298
290
  /** kind of this event. */
299
291
  kind: "PlayCanceled";
300
292
  }
301
293
  /** Event when Media recognize was successfully completed. */
302
- export interface RecognizeCompleted
303
- /**
304
- * @deprecated RestRecognizeCompleted is deprecated.
305
- * Use RecognizeCompleted instead.
306
- */
307
- extends Omit<RestRecognizeCompleted, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
294
+ export interface RecognizeCompleted {
308
295
  /** Call connection ID. */
309
296
  callConnectionId: string;
310
297
  /** Server call ID. */
311
298
  serverCallId: string;
312
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
299
+ /** Contains the resulting SIP code/sub-code and message. */
313
300
  resultInformation?: ResultInformation;
314
301
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
315
302
  correlationId: string;
303
+ /** Use this to correlate the request to the response event. */
304
+ operationContext?: string;
305
+ /**
306
+ * Determines the sub-type of the recognize operation.
307
+ * In case of cancel operation the this field is not set and is returned empty
308
+ */
309
+ recognitionType?: RecognitionType;
310
+ /** Defines the result for RecognitionType = Dtmf */
311
+ dtmfResult?: DtmfResult;
312
+ /** Defines the result for RecognitionType = Choices */
313
+ choiceResult?: ChoiceResult;
314
+ /** Defines the result for RecognitionType = Speech and SpeechOrDtmf */
315
+ speechResult?: SpeechResult;
316
316
  /** kind of this event. */
317
317
  kind: "RecognizeCompleted";
318
318
  }
319
319
  /** Event when Media recognize was failed. */
320
- export interface RecognizeFailed
321
- /**
322
- * @deprecated RestRecognizeFailed is deprecated.
323
- * Use RecognizeFailed instead.
324
- */
325
- extends Omit<RestRecognizeFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
320
+ export interface RecognizeFailed {
326
321
  /** Call connection ID. */
327
322
  callConnectionId: string;
328
323
  /** Server call ID. */
329
324
  serverCallId: string;
330
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
325
+ /** Contains the resulting SIP code/sub-code and message. */
331
326
  resultInformation?: ResultInformation;
332
327
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
333
328
  correlationId: string;
329
+ /** Use this to correlate the request to the response event. */
330
+ operationContext?: string;
331
+ /** Contains the index of the failed play source. */
332
+ failedPlaySourceIndex?: number;
334
333
  /** kind of this event. */
335
334
  kind: "RecognizeFailed";
336
335
  }
337
336
  /** Event when Media recognize was canceled by Cancel operation. */
338
- export interface RecognizeCanceled
339
- /**
340
- * @deprecated RestRecognizeCanceled is deprecated.
341
- * Use RecognizeCanceled instead.
342
- */
343
- extends Omit<RestRecognizeCanceled, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
337
+ export interface RecognizeCanceled {
344
338
  /** Call connection ID. */
345
339
  callConnectionId: string;
346
340
  /** Server call ID. */
347
341
  serverCallId: string;
348
342
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
349
343
  correlationId: string;
350
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
344
+ /** Use this to correlate the request to the response event. */
345
+ operationContext?: string;
346
+ /** Contains the resulting SIP code/sub-code and message. */
351
347
  resultInformation?: ResultInformation;
352
348
  /** kind of this event. */
353
349
  kind: "RecognizeCanceled";
354
350
  }
355
351
  /** Event sent when Dtmf tone received from targeted participant in call. */
356
- export interface ContinuousDtmfRecognitionToneReceived
357
- /**
358
- * @deprecated RestContinuousDtmfRecognitionToneReceived is deprecated.
359
- * Use ContinuousDtmfRecognitionToneReceived instead.
360
- */
361
- extends Omit<RestContinuousDtmfRecognitionToneReceived, "sequenceId" | "tone" | "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
352
+ export interface ContinuousDtmfRecognitionToneReceived {
362
353
  /** The sequence id which can be used to determine if the same tone was played multiple times or if any tones were missed. */
363
354
  sequenceId: number;
364
355
  /** Defines values for Tone. */
@@ -369,340 +360,330 @@ export interface ContinuousDtmfRecognitionToneReceived
369
360
  serverCallId: string;
370
361
  /** Correlation ID for event to call correlation. Also called ChainId or skype chain ID. */
371
362
  correlationId: string;
372
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
363
+ /** Use this to correlate the request to the response event. */
364
+ operationContext?: string;
365
+ /** Contains the resulting SIP code/sub-code and message. */
373
366
  resultInformation?: ResultInformation;
374
367
  /** kind of this event. */
375
368
  kind: "ContinuousDtmfRecognitionToneReceived";
376
369
  }
377
370
  /** Event sent when failed to recognize continuous Dtmf tone. */
378
- export interface ContinuousDtmfRecognitionToneFailed
379
- /**
380
- * @deprecated RestContinuousDtmfRecognitionToneFailed is deprecated.
381
- * Use ContinuousDtmfRecognitionToneFailed instead.
382
- */
383
- extends Omit<RestContinuousDtmfRecognitionToneFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
371
+ export interface ContinuousDtmfRecognitionToneFailed {
384
372
  /** Call connection ID. */
385
373
  callConnectionId: string;
386
374
  /** Server call ID. */
387
375
  serverCallId: string;
388
376
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
389
377
  correlationId: string;
390
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
378
+ /** Use this to correlate the request to the response event. */
379
+ operationContext?: string;
380
+ /** Contains the resulting SIP code/sub-code and message. */
391
381
  resultInformation?: ResultInformation;
392
382
  /** kind of this event. */
393
383
  kind: "ContinuousDtmfRecognitionToneFailed";
394
384
  }
395
385
  /** Event sent when continuous Dtmf recognition stopped. */
396
- export interface ContinuousDtmfRecognitionStopped
397
- /**
398
- * @deprecated RestContinuousDtmfRecognitionStopped is deprecated.
399
- * Use ContinuousDtmfRecognitionStopped instead.
400
- */
401
- extends Omit<RestContinuousDtmfRecognitionStopped, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
386
+ export interface ContinuousDtmfRecognitionStopped {
402
387
  /** Call connection ID. */
403
388
  callConnectionId: string;
404
389
  /** Server call ID. */
405
390
  serverCallId: string;
406
391
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
407
392
  correlationId: string;
408
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
393
+ /** Use this to correlate the request to the response event. */
394
+ operationContext?: string;
395
+ /** Contains the resulting SIP code/sub-code and message. */
409
396
  resultInformation?: ResultInformation;
410
397
  /** kind of this event. */
411
398
  kind: "ContinuousDtmfRecognitionStopped";
412
399
  }
413
400
  /** Event sent when Dtmf tones send successfully. */
414
- export interface SendDtmfTonesCompleted
415
- /**
416
- * @deprecated RestSendDtmfTonesCompleted is deprecated.
417
- * Use SendDtmfTonesCompleted instead.
418
- */
419
- extends Omit<RestSendDtmfTonesCompleted, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
401
+ export interface SendDtmfTonesCompleted {
420
402
  /** Call connection ID. */
421
403
  callConnectionId: string;
422
404
  /** Server call ID. */
423
405
  serverCallId: string;
424
406
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
425
407
  correlationId: string;
426
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
408
+ /** Use this to correlate the request to the response event. */
409
+ operationContext?: string;
410
+ /** Contains the resulting SIP code/sub-code and message. */
427
411
  resultInformation?: ResultInformation;
428
412
  /** kind of this event. */
429
413
  kind: "SendDtmfTonesCompleted";
430
414
  }
431
415
  /** Event sent when Dtmf tones send failed. */
432
- export interface SendDtmfTonesFailed
433
- /**
434
- * @deprecated RestSendDtmfTonesFailed is deprecated.
435
- * Use SendDtmfTonesFailed instead.
436
- */
437
- extends Omit<RestSendDtmfTonesFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
416
+ export interface SendDtmfTonesFailed {
438
417
  /** Call connection ID. */
439
418
  callConnectionId: string;
440
419
  /** Server call ID. */
441
420
  serverCallId: string;
442
421
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
443
422
  correlationId: string;
444
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
423
+ /** Use this to correlate the request to the response event. */
424
+ operationContext?: string;
425
+ /** Contains the resulting SIP code/sub-code and message. */
445
426
  resultInformation?: ResultInformation;
446
427
  /** kind of this event. */
447
428
  kind: "SendDtmfTonesFailed";
448
429
  }
449
430
  /** Successful cancel add participant event. */
450
- export interface CancelAddParticipantSucceeded
451
- /**
452
- * @deprecated RestCancelAddParticipantSucceeded is deprecated.
453
- * Use CancelAddParticipantSucceeded instead.
454
- */
455
- extends Omit<RestCancelAddParticipantSucceeded, "callConnectionId" | "serverCallId" | "correlationId" | "invitationId" | "resultInformation"> {
431
+ export interface CancelAddParticipantSucceeded {
456
432
  /** Call connection ID. */
457
433
  callConnectionId: string;
458
434
  /** Server call ID. */
459
435
  serverCallId: string;
460
436
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
461
437
  correlationId: string;
438
+ /** Use this to correlate the request to the response event. */
439
+ operationContext?: string;
462
440
  /** Invitation ID used to cancel the add participant request. */
463
441
  invitationId: string;
464
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
442
+ /** Contains the resulting SIP code/sub-code and message. */
465
443
  resultInformation?: ResultInformation;
466
444
  /** kind of this event. */
467
445
  kind: "CancelAddParticipantSucceeded";
468
446
  }
469
447
  /** The failed to cancel add participant event. */
470
- export interface CancelAddParticipantFailed
471
- /**
472
- * @deprecated RestCancelAddParticipantFailed is deprecated.
473
- * Use CancelAddParticipantFailed instead.
474
- */
475
- extends Omit<RestCancelAddParticipantFailed, "callConnectionId" | "serverCallId" | "correlationId" | "invitationId" | "resultInformation"> {
448
+ export interface CancelAddParticipantFailed {
476
449
  /** Call connection ID. */
477
450
  callConnectionId: string;
478
451
  /** Server call ID. */
479
452
  serverCallId: string;
480
453
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
481
454
  correlationId: string;
455
+ /** Use this to correlate the request to the response event. */
456
+ operationContext?: string;
482
457
  /** Invitation ID used to cancel the add participant request. */
483
458
  invitationId: string;
484
- /** Contains the resulting SIP code/sub-code and message from NGC services. */
459
+ /** Contains the resulting SIP code/sub-code and message. */
485
460
  resultInformation?: ResultInformation;
486
461
  /** kind of this event. */
487
462
  kind: "CancelAddParticipantFailed";
488
463
  }
489
- export interface ConnectFailed
490
- /**
491
- * @deprecated RestConnectFailed is deprecated.
492
- * Use ConnectFailed instead.
493
- */
494
- extends Omit<RestConnectFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
464
+ export interface ConnectFailed {
495
465
  /** Call connection ID. */
496
466
  callConnectionId: string;
467
+ /** Server call ID. */
468
+ serverCallId: string;
497
469
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
498
470
  correlationId: string;
471
+ /** Use this to correlate the request to the response event. */
472
+ operationContext?: string;
499
473
  /** Contains the resulting SIP code, sub-code and message. */
500
474
  resultInformation?: ResultInformation;
501
475
  /** kind of this event. */
502
476
  kind: "ConnectFailed";
503
477
  }
504
- export interface HoldFailed
505
- /**
506
- * @deprecated RestHoldFailed is deprecated.
507
- * Use HoldFailed instead.
508
- */
509
- extends Omit<RestHoldFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
478
+ export interface HoldFailed {
510
479
  /** Call connection ID. */
511
480
  callConnectionId: string;
512
481
  /** Server call ID. */
513
482
  serverCallId: string;
514
483
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
515
484
  correlationId: string;
485
+ /** Use this to correlate the request to the response event. */
486
+ operationContext?: string;
516
487
  /** Contains the resulting SIP code, sub-code and message. */
517
488
  resultInformation?: ResultInformation;
518
489
  /** kind of this event. */
519
490
  kind: "HoldFailed";
520
491
  }
521
- export interface AnswerFailed
522
- /**
523
- * @deprecated RestAnswerFailed is deprecated.
524
- * Use AnswerFailed instead.
525
- */
526
- extends Omit<RestAnswerFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
492
+ export interface AnswerFailed {
527
493
  /** Call connection ID. */
528
494
  callConnectionId: string;
529
495
  /** Server call ID. */
530
496
  serverCallId: string;
531
497
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
532
498
  correlationId: string;
499
+ /** Use this to correlate the request to the response event. */
500
+ operationContext?: string;
533
501
  /** Contains the resulting SIP code, sub-code and message. */
534
502
  resultInformation?: ResultInformation;
535
503
  /** kind of this event. */
536
504
  kind: "AnswerFailed";
537
505
  }
538
- export interface CreateCallFailed
539
- /**
540
- * @deprecated RestCreateCallFailed is deprecated.
541
- * Use CreateCallFailed instead.
542
- */
543
- extends Omit<RestCreateCallFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
506
+ export interface CreateCallFailed {
544
507
  /** Call connection ID. */
545
508
  callConnectionId: string;
546
509
  /** Server call ID. */
547
510
  serverCallId: string;
548
511
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
549
512
  correlationId: string;
513
+ /** Use this to correlate the request to the response event. */
514
+ operationContext?: string;
550
515
  /** Contains the resulting SIP code, sub-code and message. */
551
516
  resultInformation?: ResultInformation;
552
517
  /** kind of this event. */
553
518
  kind: "CreateCallFailed";
554
519
  }
555
- export interface TranscriptionStarted
556
- /**
557
- * @deprecated RestTranscriptionStarted is deprecated.
558
- * Use TranscriptionStarted instead.
559
- */
560
- extends Omit<RestTranscriptionStarted, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
520
+ export interface TranscriptionStarted {
521
+ /** Defines the result for TranscriptionUpdate with the current status and the details about the status */
522
+ transcriptionUpdate?: TranscriptionUpdate;
561
523
  /** Call connection ID. */
562
524
  callConnectionId: string;
563
525
  /** Server call ID. */
564
526
  serverCallId: string;
565
527
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
566
528
  correlationId: string;
529
+ /** Use this to correlate the request to the response event. */
530
+ operationContext?: string;
567
531
  /** Contains the resulting SIP code, sub-code and message. */
568
- resultInformation?: RestResultInformation;
532
+ resultInformation?: ResultInformation;
569
533
  /** kind of this event. */
570
534
  kind: "TranscriptionStarted";
571
535
  }
572
- export interface TranscriptionStopped
573
- /**
574
- * @deprecated RestTranscriptionStopped is deprecated.
575
- * Use TranscriptionStopped instead.
576
- */
577
- extends Omit<RestTranscriptionStopped, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
536
+ export interface TranscriptionStopped {
537
+ /** Defines the result for TranscriptionUpdate with the current status and the details about the status */
538
+ transcriptionUpdate?: TranscriptionUpdate;
578
539
  /** Call connection ID. */
579
540
  callConnectionId: string;
580
541
  /** Server call ID. */
581
542
  serverCallId: string;
582
543
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
583
544
  correlationId: string;
545
+ /** Use this to correlate the request to the response event. */
546
+ operationContext?: string;
584
547
  /** Contains the resulting SIP code, sub-code and message. */
585
- resultInformation?: RestResultInformation;
548
+ resultInformation?: ResultInformation;
586
549
  /** kind of this event. */
587
550
  kind: "TranscriptionStopped";
588
551
  }
589
- export interface TranscriptionUpdated
590
- /**
591
- * @deprecated RestTranscriptionUpdated is deprecated.
592
- * Use TranscriptionUpdated instead.
593
- */
594
- extends Omit<RestTranscriptionUpdated, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
552
+ export interface TranscriptionUpdated {
553
+ /** Defines the result for TranscriptionUpdate with the current status and the details about the status */
554
+ transcriptionUpdate?: TranscriptionUpdate;
595
555
  /** Call connection ID. */
596
556
  callConnectionId: string;
597
557
  /** Server call ID. */
598
558
  serverCallId: string;
599
559
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
600
560
  correlationId: string;
561
+ /** Use this to correlate the request to the response event. */
562
+ operationContext?: string;
601
563
  /** Contains the resulting SIP code, sub-code and message. */
602
- resultInformation?: RestResultInformation;
564
+ resultInformation?: ResultInformation;
603
565
  /** kind of this event. */
604
566
  kind: "TranscriptionUpdated";
605
567
  }
606
- export interface TranscriptionFailed
607
- /**
608
- * @deprecated RestTranscriptionFailed is deprecated.
609
- * Use TranscriptionFailed instead.
610
- */
611
- extends Omit<RestTranscriptionFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
568
+ export interface TranscriptionFailed {
569
+ /** Defines the result for TranscriptionUpdate with the current status and the details about the status */
570
+ transcriptionUpdate?: TranscriptionUpdate;
612
571
  /** Call connection ID. */
613
572
  callConnectionId: string;
614
573
  /** Server call ID. */
615
574
  serverCallId: string;
616
575
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
617
576
  correlationId: string;
577
+ /** Use this to correlate the request to the response event. */
578
+ operationContext?: string;
618
579
  /** Contains the resulting SIP code, sub-code and message. */
619
- resultInformation?: RestResultInformation;
580
+ resultInformation?: ResultInformation;
620
581
  /** kind of this event. */
621
582
  kind: "TranscriptionFailed";
622
583
  }
623
- export interface MediaStreamingStarted
624
- /**
625
- * @deprecated RestMediaStreamingStarted is deprecated.
626
- * Use MediaStreamingStarted instead.
627
- */
628
- extends Omit<RestMediaStreamingStarted, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
584
+ export interface MediaStreamingStarted {
585
+ /** Defines the result for MediaStreamingUpdate with the current status and the details about the status. */
586
+ mediaStreamingUpdate?: MediaStreamingUpdate;
629
587
  /** Call connection ID. */
630
588
  callConnectionId: string;
631
589
  /** Server call ID. */
632
590
  serverCallId: string;
633
591
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
634
592
  correlationId: string;
593
+ /** Use this to correlate the request to the response event. */
594
+ operationContext?: string;
635
595
  /** Contains the resulting SIP code, sub-code and message. */
636
596
  resultInformation?: ResultInformation;
637
597
  /** kind of this event. */
638
598
  kind: "MediaStreamingStarted";
639
599
  }
640
- export interface MediaStreamingStopped
641
- /**
642
- * @deprecated RestMediaStreamingStopped is deprecated.
643
- * Use MediaStreamingStopped instead.
644
- */
645
- extends Omit<RestMediaStreamingStopped, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
600
+ export interface MediaStreamingStopped {
601
+ /** Defines the result for MediaStreamingUpdate with the current status and the details about the status. */
602
+ mediaStreamingUpdate?: MediaStreamingUpdate;
646
603
  /** Call connection ID. */
647
604
  callConnectionId: string;
648
605
  /** Server call ID. */
649
606
  serverCallId: string;
650
607
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
651
608
  correlationId: string;
609
+ /** Use this to correlate the request to the response event. */
610
+ operationContext?: string;
652
611
  /** Contains the resulting SIP code, sub-code and message. */
653
612
  resultInformation?: ResultInformation;
654
613
  /** kind of this event. */
655
614
  kind: "MediaStreamingStopped";
656
615
  }
657
- export interface MediaStreamingFailed
658
- /**
659
- * @deprecated RestMediaStreamingFailed is deprecated.
660
- * Use MediaStreamingFailed instead.
661
- */
662
- extends Omit<RestMediaStreamingFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
616
+ export interface MediaStreamingFailed {
617
+ /** Defines the result for MediaStreamingUpdate with the current status and the details about the status. */
618
+ mediaStreamingUpdate?: MediaStreamingUpdate;
663
619
  /** Call connection ID. */
664
620
  callConnectionId: string;
665
621
  /** Server call ID. */
666
622
  serverCallId: string;
667
623
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
668
624
  correlationId: string;
625
+ /** Use this to correlate the request to the response event. */
626
+ operationContext?: string;
669
627
  /** Contains the resulting SIP code, sub-code and message. */
670
628
  resultInformation?: ResultInformation;
671
629
  /** kind of this event. */
672
630
  kind: "MediaStreamingFailed";
673
631
  }
674
- export interface CreateCallFailed
675
- /**
676
- * @deprecated RestCreateCallFailed is deprecated.
677
- * Use CreateCallFailed instead.
678
- */
679
- extends Omit<RestCreateCallFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
632
+ /** The participant successfully moved event. */
633
+ export interface MoveParticipantSucceeded {
634
+ /** The CallConnectionId for the call you want to move the participant from */
635
+ fromCall?: string;
680
636
  /** Call connection ID. */
681
637
  callConnectionId: string;
682
638
  /** Server call ID. */
683
639
  serverCallId: string;
684
640
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
685
641
  correlationId: string;
686
- /** Contains the resulting SIP code, sub-code and message. */
642
+ /** Used this to correlate the request to the response event. */
643
+ operationContext?: string;
644
+ /** Contains the resulting SIP code/sub-code and message. */
687
645
  resultInformation?: ResultInformation;
646
+ /** The participant in the call. */
647
+ participant?: CommunicationIdentifier;
688
648
  /** kind of this event. */
689
- kind: "CreateCallFailed";
649
+ kind: "MoveParticipantSucceeded";
690
650
  }
691
- export interface AnswerFailed
692
- /**
693
- * @deprecated RestAnswerFailed is deprecated.
694
- * Use AnswerFailed instead.
695
- */
696
- extends Omit<RestAnswerFailed, "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation"> {
651
+ /** The failed to move participant event. */
652
+ export interface MoveParticipantFailed {
653
+ /** The CallConnectionId for the call you want to move the participant from */
654
+ fromCall?: string;
697
655
  /** Call connection ID. */
698
656
  callConnectionId: string;
699
657
  /** Server call ID. */
700
658
  serverCallId: string;
701
659
  /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
702
660
  correlationId: string;
661
+ /** Used this to correlate the request to the response event. */
662
+ operationContext?: string;
663
+ /** Contains the resulting SIP code/sub-code and message. */
664
+ resultInformation?: ResultInformation;
665
+ /** The participant in the call. */
666
+ participant?: CommunicationIdentifier;
667
+ /** kind of this event. */
668
+ kind: "MoveParticipantFailed";
669
+ }
670
+ export interface TranscriptionCallSummaryUpdated {
671
+ /**
672
+ * Defines the result for TranscriptionUpdate with the current status and the details about the status
673
+ * NOTE: This property will not be serialized. It can only be populated by the server.
674
+ */
675
+ transcriptionUpdate?: TranscriptionUpdate;
676
+ /** Call connection ID. */
677
+ callConnectionId?: string;
678
+ /** Server call ID. */
679
+ serverCallId?: string;
680
+ /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */
681
+ correlationId?: string;
682
+ /** Used by customers when calling mid-call actions to correlate the request to the response event. */
683
+ operationContext?: string;
703
684
  /** Contains the resulting SIP code, sub-code and message. */
704
685
  resultInformation?: ResultInformation;
705
686
  /** kind of this event. */
706
- kind: "AnswerFailed";
687
+ kind: "TranscriptionCallSummaryUpdated";
707
688
  }
708
689
  //# sourceMappingURL=events.d.ts.map