@azure/communication-call-automation 1.5.0-beta.2 → 1.5.0

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