@azure/communication-call-automation 1.3.0-beta.2 → 1.3.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 (65) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +213 -1240
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/callAutomationClient.js +5 -9
  5. package/dist-esm/src/callAutomationClient.js.map +1 -1
  6. package/dist-esm/src/callAutomationEventParser.js +5 -20
  7. package/dist-esm/src/callAutomationEventParser.js.map +1 -1
  8. package/dist-esm/src/callConnection.js +1 -1
  9. package/dist-esm/src/callConnection.js.map +1 -1
  10. package/dist-esm/src/callMedia.js +1 -57
  11. package/dist-esm/src/callMedia.js.map +1 -1
  12. package/dist-esm/src/callRecording.js +1 -1
  13. package/dist-esm/src/callRecording.js.map +1 -1
  14. package/dist-esm/src/contentDownloader.js +2 -2
  15. package/dist-esm/src/contentDownloader.js.map +1 -1
  16. package/dist-esm/src/credential/callAutomationAccessKeyCredentialPolicy.js +1 -1
  17. package/dist-esm/src/credential/callAutomationAccessKeyCredentialPolicy.js.map +1 -1
  18. package/dist-esm/src/credential/callAutomationAuthPolicy.js +2 -2
  19. package/dist-esm/src/credential/callAutomationAuthPolicy.js.map +1 -1
  20. package/dist-esm/src/credential/cryptoUtils.browser.js +1 -1
  21. package/dist-esm/src/credential/cryptoUtils.browser.js.map +1 -1
  22. package/dist-esm/src/credential/cryptoUtils.js +1 -1
  23. package/dist-esm/src/credential/cryptoUtils.js.map +1 -1
  24. package/dist-esm/src/credential/encodeUtils.browser.js +1 -1
  25. package/dist-esm/src/credential/encodeUtils.browser.js.map +1 -1
  26. package/dist-esm/src/generated/src/callAutomationApiClient.js +2 -2
  27. package/dist-esm/src/generated/src/callAutomationApiClient.js.map +1 -1
  28. package/dist-esm/src/generated/src/models/index.js +2 -150
  29. package/dist-esm/src/generated/src/models/index.js.map +1 -1
  30. package/dist-esm/src/generated/src/models/mappers.js +132 -696
  31. package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
  32. package/dist-esm/src/generated/src/models/parameters.js +2 -22
  33. package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
  34. package/dist-esm/src/generated/src/operations/callConnection.js +1 -1
  35. package/dist-esm/src/generated/src/operations/callConnection.js.map +1 -1
  36. package/dist-esm/src/generated/src/operations/callMedia.js +0 -125
  37. package/dist-esm/src/generated/src/operations/callMedia.js.map +1 -1
  38. package/dist-esm/src/generated/src/operationsInterfaces/callConnection.js.map +1 -1
  39. package/dist-esm/src/generated/src/operationsInterfaces/callMedia.js.map +1 -1
  40. package/dist-esm/src/index.js +1 -4
  41. package/dist-esm/src/index.js.map +1 -1
  42. package/dist-esm/src/models/constants.js +2 -2
  43. package/dist-esm/src/models/constants.js.map +1 -1
  44. package/dist-esm/src/models/events.js +1 -1
  45. package/dist-esm/src/models/events.js.map +1 -1
  46. package/dist-esm/src/models/logger.js +1 -1
  47. package/dist-esm/src/models/logger.js.map +1 -1
  48. package/dist-esm/src/models/mapper.js +1 -1
  49. package/dist-esm/src/models/mapper.js.map +1 -1
  50. package/dist-esm/src/models/models.js +2 -2
  51. package/dist-esm/src/models/models.js.map +1 -1
  52. package/dist-esm/src/models/options.js +1 -1
  53. package/dist-esm/src/models/options.js.map +1 -1
  54. package/dist-esm/src/models/responses.js +1 -1
  55. package/dist-esm/src/models/responses.js.map +1 -1
  56. package/dist-esm/src/utli/converters.js +2 -2
  57. package/dist-esm/src/utli/converters.js.map +1 -1
  58. package/package.json +12 -15
  59. package/types/communication-call-automation.d.ts +86 -708
  60. package/dist-esm/src/models/audio.js +0 -2
  61. package/dist-esm/src/models/audio.js.map +0 -1
  62. package/dist-esm/src/models/transcription.js +0 -11
  63. package/dist-esm/src/models/transcription.js.map +0 -1
  64. package/dist-esm/src/streamingDataParser.js +0 -68
  65. package/dist-esm/src/streamingDataParser.js.map +0 -1
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
32
32
  var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
33
33
 
34
34
  // Copyright (c) Microsoft Corporation.
35
- // Licensed under the MIT license.
35
+ // Licensed under the MIT License.
36
36
  /**
37
37
  * The \@azure/logger configuration for this package.
38
38
  */
@@ -87,32 +87,6 @@ var KnownCommunicationCloudEnvironmentModel;
87
87
  /** Gcch */
88
88
  KnownCommunicationCloudEnvironmentModel["Gcch"] = "gcch";
89
89
  })(KnownCommunicationCloudEnvironmentModel || (KnownCommunicationCloudEnvironmentModel = {}));
90
- /** Known values of {@link MediaStreamingTransportType} that the service accepts. */
91
- exports.KnownMediaStreamingTransportType = void 0;
92
- (function (KnownMediaStreamingTransportType) {
93
- /** Websocket */
94
- KnownMediaStreamingTransportType["Websocket"] = "websocket";
95
- })(exports.KnownMediaStreamingTransportType || (exports.KnownMediaStreamingTransportType = {}));
96
- /** Known values of {@link MediaStreamingContentType} that the service accepts. */
97
- exports.KnownMediaStreamingContentType = void 0;
98
- (function (KnownMediaStreamingContentType) {
99
- /** Audio */
100
- KnownMediaStreamingContentType["Audio"] = "audio";
101
- })(exports.KnownMediaStreamingContentType || (exports.KnownMediaStreamingContentType = {}));
102
- /** Known values of {@link MediaStreamingAudioChannelType} that the service accepts. */
103
- exports.KnownMediaStreamingAudioChannelType = void 0;
104
- (function (KnownMediaStreamingAudioChannelType) {
105
- /** Mixed */
106
- KnownMediaStreamingAudioChannelType["Mixed"] = "mixed";
107
- /** Unmixed */
108
- KnownMediaStreamingAudioChannelType["Unmixed"] = "unmixed";
109
- })(exports.KnownMediaStreamingAudioChannelType || (exports.KnownMediaStreamingAudioChannelType = {}));
110
- /** Known values of {@link TranscriptionTransportType} that the service accepts. */
111
- var KnownTranscriptionTransportType;
112
- (function (KnownTranscriptionTransportType) {
113
- /** Websocket */
114
- KnownTranscriptionTransportType["Websocket"] = "websocket";
115
- })(KnownTranscriptionTransportType || (KnownTranscriptionTransportType = {}));
116
90
  /** Known values of {@link CallConnectionStateModel} that the service accepts. */
117
91
  var KnownCallConnectionStateModel;
118
92
  (function (KnownCallConnectionStateModel) {
@@ -131,34 +105,6 @@ var KnownCallConnectionStateModel;
131
105
  /** Disconnected */
132
106
  KnownCallConnectionStateModel["Disconnected"] = "disconnected";
133
107
  })(KnownCallConnectionStateModel || (KnownCallConnectionStateModel = {}));
134
- /** Known values of {@link MediaStreamingSubscriptionState} that the service accepts. */
135
- var KnownMediaStreamingSubscriptionState;
136
- (function (KnownMediaStreamingSubscriptionState) {
137
- /** Disabled */
138
- KnownMediaStreamingSubscriptionState["Disabled"] = "disabled";
139
- /** Inactive */
140
- KnownMediaStreamingSubscriptionState["Inactive"] = "inactive";
141
- /** Active */
142
- KnownMediaStreamingSubscriptionState["Active"] = "active";
143
- })(KnownMediaStreamingSubscriptionState || (KnownMediaStreamingSubscriptionState = {}));
144
- /** Known values of {@link TranscriptionSubscriptionState} that the service accepts. */
145
- var KnownTranscriptionSubscriptionState;
146
- (function (KnownTranscriptionSubscriptionState) {
147
- /** Disabled */
148
- KnownTranscriptionSubscriptionState["Disabled"] = "disabled";
149
- /** Inactive */
150
- KnownTranscriptionSubscriptionState["Inactive"] = "inactive";
151
- /** Active */
152
- KnownTranscriptionSubscriptionState["Active"] = "active";
153
- })(KnownTranscriptionSubscriptionState || (KnownTranscriptionSubscriptionState = {}));
154
- /** Known values of {@link TranscriptionResultState} that the service accepts. */
155
- var KnownTranscriptionResultState;
156
- (function (KnownTranscriptionResultState) {
157
- /** Final */
158
- KnownTranscriptionResultState["Final"] = "final";
159
- /** Intermediate */
160
- KnownTranscriptionResultState["Intermediate"] = "intermediate";
161
- })(KnownTranscriptionResultState || (KnownTranscriptionResultState = {}));
162
108
  /** Known values of {@link CallRejectReason} that the service accepts. */
163
109
  exports.KnownCallRejectReason = void 0;
164
110
  (function (KnownCallRejectReason) {
@@ -172,6 +118,8 @@ exports.KnownCallRejectReason = void 0;
172
118
  /** Known values of {@link CallLocatorKind} that the service accepts. */
173
119
  var KnownCallLocatorKind;
174
120
  (function (KnownCallLocatorKind) {
121
+ /** Unknown */
122
+ KnownCallLocatorKind["Unknown"] = "unknown";
175
123
  /** GroupCallLocator */
176
124
  KnownCallLocatorKind["GroupCallLocator"] = "groupCallLocator";
177
125
  /** ServerCallLocator */
@@ -307,102 +255,6 @@ var KnownRecognitionType;
307
255
  /** Choices */
308
256
  KnownRecognitionType["Choices"] = "choices";
309
257
  })(KnownRecognitionType || (KnownRecognitionType = {}));
310
- /** Known values of {@link MediaStreamingStatus} that the service accepts. */
311
- var KnownMediaStreamingStatus;
312
- (function (KnownMediaStreamingStatus) {
313
- /** MediaStreamingStarted */
314
- KnownMediaStreamingStatus["MediaStreamingStarted"] = "mediaStreamingStarted";
315
- /** MediaStreamingFailed */
316
- KnownMediaStreamingStatus["MediaStreamingFailed"] = "mediaStreamingFailed";
317
- /** MediaStreamingStopped */
318
- KnownMediaStreamingStatus["MediaStreamingStopped"] = "mediaStreamingStopped";
319
- /** UnspecifiedError */
320
- KnownMediaStreamingStatus["UnspecifiedError"] = "unspecifiedError";
321
- })(KnownMediaStreamingStatus || (KnownMediaStreamingStatus = {}));
322
- /** Known values of {@link MediaStreamingStatusDetails} that the service accepts. */
323
- var KnownMediaStreamingStatusDetails;
324
- (function (KnownMediaStreamingStatusDetails) {
325
- /** SubscriptionStarted */
326
- KnownMediaStreamingStatusDetails["SubscriptionStarted"] = "subscriptionStarted";
327
- /** StreamConnectionReestablished */
328
- KnownMediaStreamingStatusDetails["StreamConnectionReestablished"] = "streamConnectionReestablished";
329
- /** StreamConnectionUnsuccessful */
330
- KnownMediaStreamingStatusDetails["StreamConnectionUnsuccessful"] = "streamConnectionUnsuccessful";
331
- /** StreamUrlMissing */
332
- KnownMediaStreamingStatusDetails["StreamUrlMissing"] = "streamUrlMissing";
333
- /** ServiceShutdown */
334
- KnownMediaStreamingStatusDetails["ServiceShutdown"] = "serviceShutdown";
335
- /** StreamConnectionInterrupted */
336
- KnownMediaStreamingStatusDetails["StreamConnectionInterrupted"] = "streamConnectionInterrupted";
337
- /** SpeechServicesConnectionError */
338
- KnownMediaStreamingStatusDetails["SpeechServicesConnectionError"] = "speechServicesConnectionError";
339
- /** SubscriptionStopped */
340
- KnownMediaStreamingStatusDetails["SubscriptionStopped"] = "subscriptionStopped";
341
- /** UnspecifiedError */
342
- KnownMediaStreamingStatusDetails["UnspecifiedError"] = "unspecifiedError";
343
- /** AuthenticationFailure */
344
- KnownMediaStreamingStatusDetails["AuthenticationFailure"] = "authenticationFailure";
345
- /** BadRequest */
346
- KnownMediaStreamingStatusDetails["BadRequest"] = "badRequest";
347
- /** TooManyRequests */
348
- KnownMediaStreamingStatusDetails["TooManyRequests"] = "tooManyRequests";
349
- /** Forbidden */
350
- KnownMediaStreamingStatusDetails["Forbidden"] = "forbidden";
351
- /** ServiceTimeout */
352
- KnownMediaStreamingStatusDetails["ServiceTimeout"] = "serviceTimeout";
353
- /** InitialWebSocketConnectionFailed */
354
- KnownMediaStreamingStatusDetails["InitialWebSocketConnectionFailed"] = "initialWebSocketConnectionFailed";
355
- })(KnownMediaStreamingStatusDetails || (KnownMediaStreamingStatusDetails = {}));
356
- /** Known values of {@link TranscriptionStatus} that the service accepts. */
357
- var KnownTranscriptionStatus;
358
- (function (KnownTranscriptionStatus) {
359
- /** TranscriptionStarted */
360
- KnownTranscriptionStatus["TranscriptionStarted"] = "transcriptionStarted";
361
- /** TranscriptionFailed */
362
- KnownTranscriptionStatus["TranscriptionFailed"] = "transcriptionFailed";
363
- /** TranscriptionResumed */
364
- KnownTranscriptionStatus["TranscriptionResumed"] = "transcriptionResumed";
365
- /** TranscriptionUpdated */
366
- KnownTranscriptionStatus["TranscriptionUpdated"] = "transcriptionUpdated";
367
- /** TranscriptionStopped */
368
- KnownTranscriptionStatus["TranscriptionStopped"] = "transcriptionStopped";
369
- /** UnspecifiedError */
370
- KnownTranscriptionStatus["UnspecifiedError"] = "unspecifiedError";
371
- })(KnownTranscriptionStatus || (KnownTranscriptionStatus = {}));
372
- /** Known values of {@link TranscriptionStatusDetails} that the service accepts. */
373
- var KnownTranscriptionStatusDetails;
374
- (function (KnownTranscriptionStatusDetails) {
375
- /** SubscriptionStarted */
376
- KnownTranscriptionStatusDetails["SubscriptionStarted"] = "subscriptionStarted";
377
- /** StreamConnectionReestablished */
378
- KnownTranscriptionStatusDetails["StreamConnectionReestablished"] = "streamConnectionReestablished";
379
- /** StreamConnectionUnsuccessful */
380
- KnownTranscriptionStatusDetails["StreamConnectionUnsuccessful"] = "streamConnectionUnsuccessful";
381
- /** StreamUrlMissing */
382
- KnownTranscriptionStatusDetails["StreamUrlMissing"] = "streamUrlMissing";
383
- /** ServiceShutdown */
384
- KnownTranscriptionStatusDetails["ServiceShutdown"] = "serviceShutdown";
385
- /** StreamConnectionInterrupted */
386
- KnownTranscriptionStatusDetails["StreamConnectionInterrupted"] = "streamConnectionInterrupted";
387
- /** SpeechServicesConnectionError */
388
- KnownTranscriptionStatusDetails["SpeechServicesConnectionError"] = "speechServicesConnectionError";
389
- /** SubscriptionStopped */
390
- KnownTranscriptionStatusDetails["SubscriptionStopped"] = "subscriptionStopped";
391
- /** UnspecifiedError */
392
- KnownTranscriptionStatusDetails["UnspecifiedError"] = "unspecifiedError";
393
- /** AuthenticationFailure */
394
- KnownTranscriptionStatusDetails["AuthenticationFailure"] = "authenticationFailure";
395
- /** BadRequest */
396
- KnownTranscriptionStatusDetails["BadRequest"] = "badRequest";
397
- /** TooManyRequests */
398
- KnownTranscriptionStatusDetails["TooManyRequests"] = "tooManyRequests";
399
- /** Forbidden */
400
- KnownTranscriptionStatusDetails["Forbidden"] = "forbidden";
401
- /** ServiceTimeout */
402
- KnownTranscriptionStatusDetails["ServiceTimeout"] = "serviceTimeout";
403
- /** TranscriptionLocaleUpdated */
404
- KnownTranscriptionStatusDetails["TranscriptionLocaleUpdated"] = "transcriptionLocaleUpdated";
405
- })(KnownTranscriptionStatusDetails || (KnownTranscriptionStatusDetails = {}));
406
258
 
407
259
  /*
408
260
  * Copyright (c) Microsoft Corporation.
@@ -469,20 +321,6 @@ const CreateCallRequest = {
469
321
  className: "CallIntelligenceOptionsInternal",
470
322
  },
471
323
  },
472
- mediaStreamingOptions: {
473
- serializedName: "mediaStreamingOptions",
474
- type: {
475
- name: "Composite",
476
- className: "MediaStreamingOptions",
477
- },
478
- },
479
- transcriptionOptions: {
480
- serializedName: "transcriptionOptions",
481
- type: {
482
- name: "Composite",
483
- className: "TranscriptionOptions",
484
- },
485
- },
486
324
  },
487
325
  },
488
326
  };
@@ -626,96 +464,6 @@ const CallIntelligenceOptionsInternal = {
626
464
  },
627
465
  },
628
466
  };
629
- const MediaStreamingOptions = {
630
- type: {
631
- name: "Composite",
632
- className: "MediaStreamingOptions",
633
- modelProperties: {
634
- transportUrl: {
635
- serializedName: "transportUrl",
636
- required: true,
637
- type: {
638
- name: "String",
639
- },
640
- },
641
- transportType: {
642
- serializedName: "transportType",
643
- required: true,
644
- type: {
645
- name: "String",
646
- },
647
- },
648
- contentType: {
649
- serializedName: "contentType",
650
- required: true,
651
- type: {
652
- name: "String",
653
- },
654
- },
655
- audioChannelType: {
656
- serializedName: "audioChannelType",
657
- required: true,
658
- type: {
659
- name: "String",
660
- },
661
- },
662
- startMediaStreaming: {
663
- serializedName: "startMediaStreaming",
664
- type: {
665
- name: "Boolean",
666
- },
667
- },
668
- },
669
- },
670
- };
671
- const TranscriptionOptions = {
672
- type: {
673
- name: "Composite",
674
- className: "TranscriptionOptions",
675
- modelProperties: {
676
- transportUrl: {
677
- serializedName: "transportUrl",
678
- required: true,
679
- type: {
680
- name: "String",
681
- },
682
- },
683
- transportType: {
684
- serializedName: "transportType",
685
- required: true,
686
- type: {
687
- name: "String",
688
- },
689
- },
690
- locale: {
691
- serializedName: "locale",
692
- required: true,
693
- type: {
694
- name: "String",
695
- },
696
- },
697
- speechRecognitionModelEndpointId: {
698
- serializedName: "speechRecognitionModelEndpointId",
699
- type: {
700
- name: "String",
701
- },
702
- },
703
- startTranscription: {
704
- serializedName: "startTranscription",
705
- required: true,
706
- type: {
707
- name: "Boolean",
708
- },
709
- },
710
- enableIntermediateResults: {
711
- serializedName: "enableIntermediateResults",
712
- type: {
713
- name: "Boolean",
714
- },
715
- },
716
- },
717
- },
718
- };
719
467
  const CallConnectionPropertiesInternal = {
720
468
  type: {
721
469
  name: "Composite",
@@ -790,20 +538,6 @@ const CallConnectionPropertiesInternal = {
790
538
  className: "CommunicationUserIdentifierModel",
791
539
  },
792
540
  },
793
- mediaStreamingSubscription: {
794
- serializedName: "mediaStreamingSubscription",
795
- type: {
796
- name: "Composite",
797
- className: "MediaStreamingSubscription",
798
- },
799
- },
800
- transcriptionSubscription: {
801
- serializedName: "transcriptionSubscription",
802
- type: {
803
- name: "Composite",
804
- className: "TranscriptionSubscription",
805
- },
806
- },
807
541
  answeredFor: {
808
542
  serializedName: "answeredFor",
809
543
  type: {
@@ -814,68 +548,6 @@ const CallConnectionPropertiesInternal = {
814
548
  },
815
549
  },
816
550
  };
817
- const MediaStreamingSubscription = {
818
- type: {
819
- name: "Composite",
820
- className: "MediaStreamingSubscription",
821
- modelProperties: {
822
- id: {
823
- serializedName: "id",
824
- type: {
825
- name: "String",
826
- },
827
- },
828
- state: {
829
- serializedName: "state",
830
- type: {
831
- name: "String",
832
- },
833
- },
834
- subscribedContentTypes: {
835
- serializedName: "subscribedContentTypes",
836
- type: {
837
- name: "Sequence",
838
- element: {
839
- type: {
840
- name: "String",
841
- },
842
- },
843
- },
844
- },
845
- },
846
- },
847
- };
848
- const TranscriptionSubscription = {
849
- type: {
850
- name: "Composite",
851
- className: "TranscriptionSubscription",
852
- modelProperties: {
853
- id: {
854
- serializedName: "id",
855
- type: {
856
- name: "String",
857
- },
858
- },
859
- state: {
860
- serializedName: "state",
861
- type: {
862
- name: "String",
863
- },
864
- },
865
- subscribedResultStates: {
866
- serializedName: "subscribedResultTypes",
867
- type: {
868
- name: "Sequence",
869
- element: {
870
- type: {
871
- name: "String",
872
- },
873
- },
874
- },
875
- },
876
- },
877
- },
878
- };
879
551
  const CommunicationErrorResponse = {
880
552
  type: {
881
553
  name: "Composite",
@@ -979,20 +651,6 @@ const AnswerCallRequest = {
979
651
  className: "CommunicationUserIdentifierModel",
980
652
  },
981
653
  },
982
- mediaStreamingOptions: {
983
- serializedName: "mediaStreamingOptions",
984
- type: {
985
- name: "Composite",
986
- className: "MediaStreamingOptions",
987
- },
988
- },
989
- transcriptionOptions: {
990
- serializedName: "transcriptionOptions",
991
- type: {
992
- name: "Composite",
993
- className: "TranscriptionOptions",
994
- },
995
- },
996
654
  },
997
655
  },
998
656
  };
@@ -1380,73 +1038,6 @@ const PlayOptionsInternal = {
1380
1038
  },
1381
1039
  },
1382
1040
  };
1383
- const StartTranscriptionRequest = {
1384
- type: {
1385
- name: "Composite",
1386
- className: "StartTranscriptionRequest",
1387
- modelProperties: {
1388
- locale: {
1389
- serializedName: "locale",
1390
- type: {
1391
- name: "String",
1392
- },
1393
- },
1394
- speechRecognitionModelEndpointId: {
1395
- serializedName: "speechRecognitionModelEndpointId",
1396
- type: {
1397
- name: "String",
1398
- },
1399
- },
1400
- operationContext: {
1401
- serializedName: "operationContext",
1402
- type: {
1403
- name: "String",
1404
- },
1405
- },
1406
- },
1407
- },
1408
- };
1409
- const StopTranscriptionRequest = {
1410
- type: {
1411
- name: "Composite",
1412
- className: "StopTranscriptionRequest",
1413
- modelProperties: {
1414
- operationContext: {
1415
- serializedName: "operationContext",
1416
- type: {
1417
- name: "String",
1418
- },
1419
- },
1420
- },
1421
- },
1422
- };
1423
- const UpdateTranscriptionRequest = {
1424
- type: {
1425
- name: "Composite",
1426
- className: "UpdateTranscriptionRequest",
1427
- modelProperties: {
1428
- locale: {
1429
- serializedName: "locale",
1430
- required: true,
1431
- type: {
1432
- name: "String",
1433
- },
1434
- },
1435
- speechRecognitionModelEndpointId: {
1436
- serializedName: "speechRecognitionModelEndpointId",
1437
- type: {
1438
- name: "String",
1439
- },
1440
- },
1441
- operationContext: {
1442
- serializedName: "operationContext",
1443
- type: {
1444
- name: "String",
1445
- },
1446
- },
1447
- },
1448
- },
1449
- };
1450
1041
  const RecognizeRequest = {
1451
1042
  type: {
1452
1043
  name: "Composite",
@@ -1792,46 +1383,6 @@ const UnholdRequest = {
1792
1383
  },
1793
1384
  },
1794
1385
  };
1795
- const StartMediaStreamingRequest = {
1796
- type: {
1797
- name: "Composite",
1798
- className: "StartMediaStreamingRequest",
1799
- modelProperties: {
1800
- operationCallbackUri: {
1801
- serializedName: "operationCallbackUri",
1802
- type: {
1803
- name: "String",
1804
- },
1805
- },
1806
- operationContext: {
1807
- serializedName: "operationContext",
1808
- type: {
1809
- name: "String",
1810
- },
1811
- },
1812
- },
1813
- },
1814
- };
1815
- const StopMediaStreamingRequest = {
1816
- type: {
1817
- name: "Composite",
1818
- className: "StopMediaStreamingRequest",
1819
- modelProperties: {
1820
- operationCallbackUri: {
1821
- serializedName: "operationCallbackUri",
1822
- type: {
1823
- name: "String",
1824
- },
1825
- },
1826
- operationContext: {
1827
- serializedName: "operationContext",
1828
- type: {
1829
- name: "String",
1830
- },
1831
- },
1832
- },
1833
- },
1834
- };
1835
1386
  const GetParticipantsResponse = {
1836
1387
  type: {
1837
1388
  name: "Composite",
@@ -2394,6 +1945,13 @@ const CallConnected = {
2394
1945
  name: "String",
2395
1946
  },
2396
1947
  },
1948
+ resultInformation: {
1949
+ serializedName: "resultInformation",
1950
+ type: {
1951
+ name: "Composite",
1952
+ className: "ResultInformation",
1953
+ },
1954
+ },
2397
1955
  },
2398
1956
  },
2399
1957
  };
@@ -2426,8 +1984,15 @@ const CallDisconnected = {
2426
1984
  name: "String",
2427
1985
  },
2428
1986
  },
2429
- },
2430
- },
1987
+ resultInformation: {
1988
+ serializedName: "resultInformation",
1989
+ type: {
1990
+ name: "Composite",
1991
+ className: "ResultInformation",
1992
+ },
1993
+ },
1994
+ },
1995
+ },
2431
1996
  };
2432
1997
  const CallTransferAccepted = {
2433
1998
  type: {
@@ -2562,6 +2127,13 @@ const ParticipantsUpdated = {
2562
2127
  },
2563
2128
  },
2564
2129
  },
2130
+ resultInformation: {
2131
+ serializedName: "resultInformation",
2132
+ type: {
2133
+ name: "Composite",
2134
+ className: "ResultInformation",
2135
+ },
2136
+ },
2565
2137
  },
2566
2138
  },
2567
2139
  };
@@ -2692,6 +2264,13 @@ const CancelAddParticipantSucceeded = {
2692
2264
  name: "String",
2693
2265
  },
2694
2266
  },
2267
+ resultInformation: {
2268
+ serializedName: "resultInformation",
2269
+ type: {
2270
+ name: "Composite",
2271
+ className: "ResultInformation",
2272
+ },
2273
+ },
2695
2274
  },
2696
2275
  },
2697
2276
  };
@@ -2740,62 +2319,10 @@ const CancelAddParticipantFailed = {
2740
2319
  },
2741
2320
  },
2742
2321
  };
2743
- const RecordingStateChanged = {
2322
+ const AnswerFailed = {
2744
2323
  type: {
2745
2324
  name: "Composite",
2746
- className: "RecordingStateChanged",
2747
- modelProperties: {
2748
- callConnectionId: {
2749
- serializedName: "callConnectionId",
2750
- type: {
2751
- name: "String",
2752
- },
2753
- },
2754
- serverCallId: {
2755
- serializedName: "serverCallId",
2756
- type: {
2757
- name: "String",
2758
- },
2759
- },
2760
- correlationId: {
2761
- serializedName: "correlationId",
2762
- type: {
2763
- name: "String",
2764
- },
2765
- },
2766
- recordingId: {
2767
- serializedName: "recordingId",
2768
- readOnly: true,
2769
- type: {
2770
- name: "String",
2771
- },
2772
- },
2773
- state: {
2774
- serializedName: "state",
2775
- type: {
2776
- name: "String",
2777
- },
2778
- },
2779
- startDateTime: {
2780
- serializedName: "startDateTime",
2781
- readOnly: true,
2782
- type: {
2783
- name: "DateTime",
2784
- },
2785
- },
2786
- recordingKind: {
2787
- serializedName: "recordingKind",
2788
- type: {
2789
- name: "String",
2790
- },
2791
- },
2792
- },
2793
- },
2794
- };
2795
- const PlayStarted = {
2796
- type: {
2797
- name: "Composite",
2798
- className: "PlayStarted",
2325
+ className: "AnswerFailed",
2799
2326
  modelProperties: {
2800
2327
  callConnectionId: {
2801
2328
  serializedName: "callConnectionId",
@@ -2831,10 +2358,10 @@ const PlayStarted = {
2831
2358
  },
2832
2359
  },
2833
2360
  };
2834
- const PlayCompleted = {
2361
+ const CreateCallFailed = {
2835
2362
  type: {
2836
2363
  name: "Composite",
2837
- className: "PlayCompleted",
2364
+ className: "CreateCallFailed",
2838
2365
  modelProperties: {
2839
2366
  callConnectionId: {
2840
2367
  serializedName: "callConnectionId",
@@ -2870,10 +2397,10 @@ const PlayCompleted = {
2870
2397
  },
2871
2398
  },
2872
2399
  };
2873
- const PlayFailed = {
2400
+ const RecordingStateChanged = {
2874
2401
  type: {
2875
2402
  name: "Composite",
2876
- className: "PlayFailed",
2403
+ className: "RecordingStateChanged",
2877
2404
  modelProperties: {
2878
2405
  callConnectionId: {
2879
2406
  serializedName: "callConnectionId",
@@ -2893,64 +2420,46 @@ const PlayFailed = {
2893
2420
  name: "String",
2894
2421
  },
2895
2422
  },
2896
- operationContext: {
2897
- serializedName: "operationContext",
2423
+ recordingId: {
2424
+ serializedName: "recordingId",
2425
+ readOnly: true,
2898
2426
  type: {
2899
2427
  name: "String",
2900
2428
  },
2901
2429
  },
2902
- resultInformation: {
2903
- serializedName: "resultInformation",
2904
- type: {
2905
- name: "Composite",
2906
- className: "ResultInformation",
2907
- },
2908
- },
2909
- failedPlaySourceIndex: {
2910
- serializedName: "failedPlaySourceIndex",
2911
- type: {
2912
- name: "Number",
2913
- },
2914
- },
2915
- },
2916
- },
2917
- };
2918
- const PlayCanceled = {
2919
- type: {
2920
- name: "Composite",
2921
- className: "PlayCanceled",
2922
- modelProperties: {
2923
- callConnectionId: {
2924
- serializedName: "callConnectionId",
2430
+ state: {
2431
+ serializedName: "state",
2925
2432
  type: {
2926
2433
  name: "String",
2927
2434
  },
2928
2435
  },
2929
- serverCallId: {
2930
- serializedName: "serverCallId",
2436
+ startDateTime: {
2437
+ serializedName: "startDateTime",
2438
+ readOnly: true,
2931
2439
  type: {
2932
- name: "String",
2440
+ name: "DateTime",
2933
2441
  },
2934
2442
  },
2935
- correlationId: {
2936
- serializedName: "correlationId",
2443
+ recordingKind: {
2444
+ serializedName: "recordingKind",
2937
2445
  type: {
2938
2446
  name: "String",
2939
2447
  },
2940
2448
  },
2941
- operationContext: {
2942
- serializedName: "operationContext",
2449
+ resultInformation: {
2450
+ serializedName: "resultInformation",
2943
2451
  type: {
2944
- name: "String",
2452
+ name: "Composite",
2453
+ className: "ResultInformation",
2945
2454
  },
2946
2455
  },
2947
2456
  },
2948
2457
  },
2949
2458
  };
2950
- const RecognizeCompleted = {
2459
+ const PlayStarted = {
2951
2460
  type: {
2952
2461
  name: "Composite",
2953
- className: "RecognizeCompleted",
2462
+ className: "PlayStarted",
2954
2463
  modelProperties: {
2955
2464
  callConnectionId: {
2956
2465
  serializedName: "callConnectionId",
@@ -2983,94 +2492,13 @@ const RecognizeCompleted = {
2983
2492
  className: "ResultInformation",
2984
2493
  },
2985
2494
  },
2986
- recognitionType: {
2987
- serializedName: "recognitionType",
2988
- type: {
2989
- name: "String",
2990
- },
2991
- },
2992
- dtmfResult: {
2993
- serializedName: "dtmfResult",
2994
- type: {
2995
- name: "Composite",
2996
- className: "DtmfResult",
2997
- },
2998
- },
2999
- choiceResult: {
3000
- serializedName: "choiceResult",
3001
- type: {
3002
- name: "Composite",
3003
- className: "ChoiceResult",
3004
- },
3005
- },
3006
- speechResult: {
3007
- serializedName: "speechResult",
3008
- type: {
3009
- name: "Composite",
3010
- className: "SpeechResult",
3011
- },
3012
- },
3013
- },
3014
- },
3015
- };
3016
- const DtmfResult = {
3017
- type: {
3018
- name: "Composite",
3019
- className: "DtmfResult",
3020
- modelProperties: {
3021
- tones: {
3022
- serializedName: "tones",
3023
- readOnly: true,
3024
- type: {
3025
- name: "Sequence",
3026
- element: {
3027
- type: {
3028
- name: "String",
3029
- },
3030
- },
3031
- },
3032
- },
3033
- },
3034
- },
3035
- };
3036
- const ChoiceResult = {
3037
- type: {
3038
- name: "Composite",
3039
- className: "ChoiceResult",
3040
- modelProperties: {
3041
- label: {
3042
- serializedName: "label",
3043
- type: {
3044
- name: "String",
3045
- },
3046
- },
3047
- recognizedPhrase: {
3048
- serializedName: "recognizedPhrase",
3049
- type: {
3050
- name: "String",
3051
- },
3052
- },
3053
- },
3054
- },
3055
- };
3056
- const SpeechResult = {
3057
- type: {
3058
- name: "Composite",
3059
- className: "SpeechResult",
3060
- modelProperties: {
3061
- speech: {
3062
- serializedName: "speech",
3063
- type: {
3064
- name: "String",
3065
- },
3066
- },
3067
2495
  },
3068
2496
  },
3069
2497
  };
3070
- const RecognizeFailed = {
2498
+ const PlayCompleted = {
3071
2499
  type: {
3072
2500
  name: "Composite",
3073
- className: "RecognizeFailed",
2501
+ className: "PlayCompleted",
3074
2502
  modelProperties: {
3075
2503
  callConnectionId: {
3076
2504
  serializedName: "callConnectionId",
@@ -3103,19 +2531,13 @@ const RecognizeFailed = {
3103
2531
  className: "ResultInformation",
3104
2532
  },
3105
2533
  },
3106
- failedPlaySourceIndex: {
3107
- serializedName: "failedPlaySourceIndex",
3108
- type: {
3109
- name: "Number",
3110
- },
3111
- },
3112
2534
  },
3113
2535
  },
3114
2536
  };
3115
- const RecognizeCanceled = {
2537
+ const PlayFailed = {
3116
2538
  type: {
3117
2539
  name: "Composite",
3118
- className: "RecognizeCanceled",
2540
+ className: "PlayFailed",
3119
2541
  modelProperties: {
3120
2542
  callConnectionId: {
3121
2543
  serializedName: "callConnectionId",
@@ -3141,32 +2563,6 @@ const RecognizeCanceled = {
3141
2563
  name: "String",
3142
2564
  },
3143
2565
  },
3144
- },
3145
- },
3146
- };
3147
- const ContinuousDtmfRecognitionToneFailed = {
3148
- type: {
3149
- name: "Composite",
3150
- className: "ContinuousDtmfRecognitionToneFailed",
3151
- modelProperties: {
3152
- callConnectionId: {
3153
- serializedName: "callConnectionId",
3154
- type: {
3155
- name: "String",
3156
- },
3157
- },
3158
- serverCallId: {
3159
- serializedName: "serverCallId",
3160
- type: {
3161
- name: "String",
3162
- },
3163
- },
3164
- correlationId: {
3165
- serializedName: "correlationId",
3166
- type: {
3167
- name: "String",
3168
- },
3169
- },
3170
2566
  resultInformation: {
3171
2567
  serializedName: "resultInformation",
3172
2568
  type: {
@@ -3174,71 +2570,19 @@ const ContinuousDtmfRecognitionToneFailed = {
3174
2570
  className: "ResultInformation",
3175
2571
  },
3176
2572
  },
3177
- operationContext: {
3178
- serializedName: "operationContext",
3179
- type: {
3180
- name: "String",
3181
- },
3182
- },
3183
- },
3184
- },
3185
- };
3186
- const ContinuousDtmfRecognitionToneReceived = {
3187
- type: {
3188
- name: "Composite",
3189
- className: "ContinuousDtmfRecognitionToneReceived",
3190
- modelProperties: {
3191
- sequenceId: {
3192
- serializedName: "sequenceId",
3193
- readOnly: true,
2573
+ failedPlaySourceIndex: {
2574
+ serializedName: "failedPlaySourceIndex",
3194
2575
  type: {
3195
2576
  name: "Number",
3196
2577
  },
3197
2578
  },
3198
- tone: {
3199
- serializedName: "tone",
3200
- type: {
3201
- name: "String",
3202
- },
3203
- },
3204
- callConnectionId: {
3205
- serializedName: "callConnectionId",
3206
- type: {
3207
- name: "String",
3208
- },
3209
- },
3210
- serverCallId: {
3211
- serializedName: "serverCallId",
3212
- type: {
3213
- name: "String",
3214
- },
3215
- },
3216
- correlationId: {
3217
- serializedName: "correlationId",
3218
- type: {
3219
- name: "String",
3220
- },
3221
- },
3222
- resultInformation: {
3223
- serializedName: "resultInformation",
3224
- type: {
3225
- name: "Composite",
3226
- className: "ResultInformation",
3227
- },
3228
- },
3229
- operationContext: {
3230
- serializedName: "operationContext",
3231
- type: {
3232
- name: "String",
3233
- },
3234
- },
3235
2579
  },
3236
2580
  },
3237
2581
  };
3238
- const ContinuousDtmfRecognitionStopped = {
2582
+ const PlayCanceled = {
3239
2583
  type: {
3240
2584
  name: "Composite",
3241
- className: "ContinuousDtmfRecognitionStopped",
2585
+ className: "PlayCanceled",
3242
2586
  modelProperties: {
3243
2587
  callConnectionId: {
3244
2588
  serializedName: "callConnectionId",
@@ -3274,10 +2618,10 @@ const ContinuousDtmfRecognitionStopped = {
3274
2618
  },
3275
2619
  },
3276
2620
  };
3277
- const SendDtmfTonesCompleted = {
2621
+ const RecognizeCompleted = {
3278
2622
  type: {
3279
2623
  name: "Composite",
3280
- className: "SendDtmfTonesCompleted",
2624
+ className: "RecognizeCompleted",
3281
2625
  modelProperties: {
3282
2626
  callConnectionId: {
3283
2627
  serializedName: "callConnectionId",
@@ -3310,115 +2654,83 @@ const SendDtmfTonesCompleted = {
3310
2654
  className: "ResultInformation",
3311
2655
  },
3312
2656
  },
3313
- },
3314
- },
3315
- };
3316
- const SendDtmfTonesFailed = {
3317
- type: {
3318
- name: "Composite",
3319
- className: "SendDtmfTonesFailed",
3320
- modelProperties: {
3321
- callConnectionId: {
3322
- serializedName: "callConnectionId",
3323
- type: {
3324
- name: "String",
3325
- },
3326
- },
3327
- serverCallId: {
3328
- serializedName: "serverCallId",
2657
+ recognitionType: {
2658
+ serializedName: "recognitionType",
3329
2659
  type: {
3330
2660
  name: "String",
3331
2661
  },
3332
2662
  },
3333
- correlationId: {
3334
- serializedName: "correlationId",
2663
+ dtmfResult: {
2664
+ serializedName: "dtmfResult",
3335
2665
  type: {
3336
- name: "String",
2666
+ name: "Composite",
2667
+ className: "DtmfResult",
3337
2668
  },
3338
2669
  },
3339
- operationContext: {
3340
- serializedName: "operationContext",
2670
+ choiceResult: {
2671
+ serializedName: "choiceResult",
3341
2672
  type: {
3342
- name: "String",
2673
+ name: "Composite",
2674
+ className: "ChoiceResult",
3343
2675
  },
3344
2676
  },
3345
- resultInformation: {
3346
- serializedName: "resultInformation",
2677
+ speechResult: {
2678
+ serializedName: "speechResult",
3347
2679
  type: {
3348
2680
  name: "Composite",
3349
- className: "ResultInformation",
2681
+ className: "SpeechResult",
3350
2682
  },
3351
2683
  },
3352
2684
  },
3353
2685
  },
3354
2686
  };
3355
- const MediaStreamingFailed = {
2687
+ const DtmfResult = {
3356
2688
  type: {
3357
2689
  name: "Composite",
3358
- className: "MediaStreamingFailed",
2690
+ className: "DtmfResult",
3359
2691
  modelProperties: {
3360
- callConnectionId: {
3361
- serializedName: "callConnectionId",
3362
- readOnly: true,
3363
- type: {
3364
- name: "String",
3365
- },
3366
- },
3367
- serverCallId: {
3368
- serializedName: "serverCallId",
3369
- type: {
3370
- name: "String",
3371
- },
3372
- },
3373
- correlationId: {
3374
- serializedName: "correlationId",
3375
- type: {
3376
- name: "String",
3377
- },
3378
- },
3379
- operationContext: {
3380
- serializedName: "operationContext",
2692
+ tones: {
2693
+ serializedName: "tones",
3381
2694
  readOnly: true,
3382
2695
  type: {
3383
- name: "String",
3384
- },
3385
- },
3386
- resultInformation: {
3387
- serializedName: "resultInformation",
3388
- type: {
3389
- name: "Composite",
3390
- className: "ResultInformation",
3391
- },
3392
- },
3393
- mediaStreamingUpdate: {
3394
- serializedName: "mediaStreamingUpdate",
3395
- type: {
3396
- name: "Composite",
3397
- className: "MediaStreamingUpdate",
2696
+ name: "Sequence",
2697
+ element: {
2698
+ type: {
2699
+ name: "String",
2700
+ },
2701
+ },
3398
2702
  },
3399
2703
  },
3400
2704
  },
3401
2705
  },
3402
2706
  };
3403
- const MediaStreamingUpdate = {
2707
+ const ChoiceResult = {
3404
2708
  type: {
3405
2709
  name: "Composite",
3406
- className: "MediaStreamingUpdate",
2710
+ className: "ChoiceResult",
3407
2711
  modelProperties: {
3408
- contentType: {
3409
- serializedName: "contentType",
2712
+ label: {
2713
+ serializedName: "label",
3410
2714
  type: {
3411
2715
  name: "String",
3412
2716
  },
3413
2717
  },
3414
- mediaStreamingStatus: {
3415
- serializedName: "mediaStreamingStatus",
2718
+ recognizedPhrase: {
2719
+ serializedName: "recognizedPhrase",
3416
2720
  type: {
3417
2721
  name: "String",
3418
2722
  },
3419
2723
  },
3420
- mediaStreamingStatusDetails: {
3421
- serializedName: "mediaStreamingStatusDetails",
2724
+ },
2725
+ },
2726
+ };
2727
+ const SpeechResult = {
2728
+ type: {
2729
+ name: "Composite",
2730
+ className: "SpeechResult",
2731
+ modelProperties: {
2732
+ speech: {
2733
+ serializedName: "speech",
3422
2734
  type: {
3423
2735
  name: "String",
3424
2736
  },
@@ -3426,14 +2738,13 @@ const MediaStreamingUpdate = {
3426
2738
  },
3427
2739
  },
3428
2740
  };
3429
- const MediaStreamingStarted = {
2741
+ const RecognizeFailed = {
3430
2742
  type: {
3431
2743
  name: "Composite",
3432
- className: "MediaStreamingStarted",
2744
+ className: "RecognizeFailed",
3433
2745
  modelProperties: {
3434
2746
  callConnectionId: {
3435
2747
  serializedName: "callConnectionId",
3436
- readOnly: true,
3437
2748
  type: {
3438
2749
  name: "String",
3439
2750
  },
@@ -3452,7 +2763,6 @@ const MediaStreamingStarted = {
3452
2763
  },
3453
2764
  operationContext: {
3454
2765
  serializedName: "operationContext",
3455
- readOnly: true,
3456
2766
  type: {
3457
2767
  name: "String",
3458
2768
  },
@@ -3464,24 +2774,22 @@ const MediaStreamingStarted = {
3464
2774
  className: "ResultInformation",
3465
2775
  },
3466
2776
  },
3467
- mediaStreamingUpdate: {
3468
- serializedName: "mediaStreamingUpdate",
2777
+ failedPlaySourceIndex: {
2778
+ serializedName: "failedPlaySourceIndex",
3469
2779
  type: {
3470
- name: "Composite",
3471
- className: "MediaStreamingUpdate",
2780
+ name: "Number",
3472
2781
  },
3473
2782
  },
3474
2783
  },
3475
2784
  },
3476
2785
  };
3477
- const MediaStreamingStopped = {
2786
+ const RecognizeCanceled = {
3478
2787
  type: {
3479
2788
  name: "Composite",
3480
- className: "MediaStreamingStopped",
2789
+ className: "RecognizeCanceled",
3481
2790
  modelProperties: {
3482
2791
  callConnectionId: {
3483
2792
  serializedName: "callConnectionId",
3484
- readOnly: true,
3485
2793
  type: {
3486
2794
  name: "String",
3487
2795
  },
@@ -3500,7 +2808,6 @@ const MediaStreamingStopped = {
3500
2808
  },
3501
2809
  operationContext: {
3502
2810
  serializedName: "operationContext",
3503
- readOnly: true,
3504
2811
  type: {
3505
2812
  name: "String",
3506
2813
  },
@@ -3512,20 +2819,13 @@ const MediaStreamingStopped = {
3512
2819
  className: "ResultInformation",
3513
2820
  },
3514
2821
  },
3515
- mediaStreamingUpdate: {
3516
- serializedName: "mediaStreamingUpdate",
3517
- type: {
3518
- name: "Composite",
3519
- className: "MediaStreamingUpdate",
3520
- },
3521
- },
3522
2822
  },
3523
2823
  },
3524
2824
  };
3525
- const HoldFailed = {
2825
+ const ContinuousDtmfRecognitionToneFailed = {
3526
2826
  type: {
3527
2827
  name: "Composite",
3528
- className: "HoldFailed",
2828
+ className: "ContinuousDtmfRecognitionToneFailed",
3529
2829
  modelProperties: {
3530
2830
  callConnectionId: {
3531
2831
  serializedName: "callConnectionId",
@@ -3545,12 +2845,6 @@ const HoldFailed = {
3545
2845
  name: "String",
3546
2846
  },
3547
2847
  },
3548
- operationContext: {
3549
- serializedName: "operationContext",
3550
- type: {
3551
- name: "String",
3552
- },
3553
- },
3554
2848
  resultInformation: {
3555
2849
  serializedName: "resultInformation",
3556
2850
  type: {
@@ -3558,52 +2852,60 @@ const HoldFailed = {
3558
2852
  className: "ResultInformation",
3559
2853
  },
3560
2854
  },
2855
+ operationContext: {
2856
+ serializedName: "operationContext",
2857
+ type: {
2858
+ name: "String",
2859
+ },
2860
+ },
3561
2861
  },
3562
2862
  },
3563
2863
  };
3564
- const TranscriptionFailed = {
2864
+ const ContinuousDtmfRecognitionToneReceived = {
3565
2865
  type: {
3566
2866
  name: "Composite",
3567
- className: "TranscriptionFailed",
2867
+ className: "ContinuousDtmfRecognitionToneReceived",
3568
2868
  modelProperties: {
3569
- operationContext: {
3570
- serializedName: "operationContext",
2869
+ sequenceId: {
2870
+ serializedName: "sequenceId",
3571
2871
  readOnly: true,
3572
2872
  type: {
3573
- name: "String",
3574
- },
3575
- },
3576
- resultInformation: {
3577
- serializedName: "resultInformation",
3578
- type: {
3579
- name: "Composite",
3580
- className: "ResultInformation",
2873
+ name: "Number",
3581
2874
  },
3582
2875
  },
3583
- transcriptionUpdate: {
3584
- serializedName: "transcriptionUpdate",
2876
+ tone: {
2877
+ serializedName: "tone",
3585
2878
  type: {
3586
- name: "Composite",
3587
- className: "TranscriptionUpdate",
2879
+ name: "String",
3588
2880
  },
3589
2881
  },
3590
2882
  callConnectionId: {
3591
2883
  serializedName: "callConnectionId",
3592
- readOnly: true,
3593
2884
  type: {
3594
2885
  name: "String",
3595
2886
  },
3596
2887
  },
3597
2888
  serverCallId: {
3598
2889
  serializedName: "serverCallId",
3599
- readOnly: true,
3600
2890
  type: {
3601
2891
  name: "String",
3602
2892
  },
3603
2893
  },
3604
2894
  correlationId: {
3605
2895
  serializedName: "correlationId",
3606
- readOnly: true,
2896
+ type: {
2897
+ name: "String",
2898
+ },
2899
+ },
2900
+ resultInformation: {
2901
+ serializedName: "resultInformation",
2902
+ type: {
2903
+ name: "Composite",
2904
+ className: "ResultInformation",
2905
+ },
2906
+ },
2907
+ operationContext: {
2908
+ serializedName: "operationContext",
3607
2909
  type: {
3608
2910
  name: "String",
3609
2911
  },
@@ -3611,34 +2913,31 @@ const TranscriptionFailed = {
3611
2913
  },
3612
2914
  },
3613
2915
  };
3614
- const TranscriptionUpdate = {
2916
+ const ContinuousDtmfRecognitionStopped = {
3615
2917
  type: {
3616
2918
  name: "Composite",
3617
- className: "TranscriptionUpdate",
2919
+ className: "ContinuousDtmfRecognitionStopped",
3618
2920
  modelProperties: {
3619
- transcriptionStatus: {
3620
- serializedName: "transcriptionStatus",
2921
+ callConnectionId: {
2922
+ serializedName: "callConnectionId",
3621
2923
  type: {
3622
2924
  name: "String",
3623
2925
  },
3624
2926
  },
3625
- transcriptionStatusDetails: {
3626
- serializedName: "transcriptionStatusDetails",
2927
+ serverCallId: {
2928
+ serializedName: "serverCallId",
2929
+ type: {
2930
+ name: "String",
2931
+ },
2932
+ },
2933
+ correlationId: {
2934
+ serializedName: "correlationId",
3627
2935
  type: {
3628
2936
  name: "String",
3629
2937
  },
3630
2938
  },
3631
- },
3632
- },
3633
- };
3634
- const TranscriptionStarted = {
3635
- type: {
3636
- name: "Composite",
3637
- className: "TranscriptionStarted",
3638
- modelProperties: {
3639
2939
  operationContext: {
3640
2940
  serializedName: "operationContext",
3641
- readOnly: true,
3642
2941
  type: {
3643
2942
  name: "String",
3644
2943
  },
@@ -3650,45 +2949,34 @@ const TranscriptionStarted = {
3650
2949
  className: "ResultInformation",
3651
2950
  },
3652
2951
  },
3653
- transcriptionUpdate: {
3654
- serializedName: "transcriptionUpdate",
3655
- type: {
3656
- name: "Composite",
3657
- className: "TranscriptionUpdate",
3658
- },
3659
- },
2952
+ },
2953
+ },
2954
+ };
2955
+ const SendDtmfTonesCompleted = {
2956
+ type: {
2957
+ name: "Composite",
2958
+ className: "SendDtmfTonesCompleted",
2959
+ modelProperties: {
3660
2960
  callConnectionId: {
3661
2961
  serializedName: "callConnectionId",
3662
- readOnly: true,
3663
2962
  type: {
3664
2963
  name: "String",
3665
2964
  },
3666
2965
  },
3667
2966
  serverCallId: {
3668
2967
  serializedName: "serverCallId",
3669
- readOnly: true,
3670
2968
  type: {
3671
2969
  name: "String",
3672
2970
  },
3673
2971
  },
3674
2972
  correlationId: {
3675
2973
  serializedName: "correlationId",
3676
- readOnly: true,
3677
2974
  type: {
3678
2975
  name: "String",
3679
2976
  },
3680
2977
  },
3681
- },
3682
- },
3683
- };
3684
- const TranscriptionStopped = {
3685
- type: {
3686
- name: "Composite",
3687
- className: "TranscriptionStopped",
3688
- modelProperties: {
3689
2978
  operationContext: {
3690
2979
  serializedName: "operationContext",
3691
- readOnly: true,
3692
2980
  type: {
3693
2981
  name: "String",
3694
2982
  },
@@ -3700,45 +2988,34 @@ const TranscriptionStopped = {
3700
2988
  className: "ResultInformation",
3701
2989
  },
3702
2990
  },
3703
- transcriptionUpdate: {
3704
- serializedName: "transcriptionUpdate",
3705
- type: {
3706
- name: "Composite",
3707
- className: "TranscriptionUpdate",
3708
- },
3709
- },
2991
+ },
2992
+ },
2993
+ };
2994
+ const SendDtmfTonesFailed = {
2995
+ type: {
2996
+ name: "Composite",
2997
+ className: "SendDtmfTonesFailed",
2998
+ modelProperties: {
3710
2999
  callConnectionId: {
3711
3000
  serializedName: "callConnectionId",
3712
- readOnly: true,
3713
3001
  type: {
3714
3002
  name: "String",
3715
3003
  },
3716
3004
  },
3717
3005
  serverCallId: {
3718
3006
  serializedName: "serverCallId",
3719
- readOnly: true,
3720
3007
  type: {
3721
3008
  name: "String",
3722
3009
  },
3723
3010
  },
3724
3011
  correlationId: {
3725
3012
  serializedName: "correlationId",
3726
- readOnly: true,
3727
3013
  type: {
3728
3014
  name: "String",
3729
3015
  },
3730
3016
  },
3731
- },
3732
- },
3733
- };
3734
- const TranscriptionUpdated = {
3735
- type: {
3736
- name: "Composite",
3737
- className: "TranscriptionUpdated",
3738
- modelProperties: {
3739
3017
  operationContext: {
3740
3018
  serializedName: "operationContext",
3741
- readOnly: true,
3742
3019
  type: {
3743
3020
  name: "String",
3744
3021
  },
@@ -3750,34 +3027,45 @@ const TranscriptionUpdated = {
3750
3027
  className: "ResultInformation",
3751
3028
  },
3752
3029
  },
3753
- transcriptionUpdate: {
3754
- serializedName: "transcriptionUpdate",
3755
- type: {
3756
- name: "Composite",
3757
- className: "TranscriptionUpdate",
3758
- },
3759
- },
3030
+ },
3031
+ },
3032
+ };
3033
+ const HoldFailed = {
3034
+ type: {
3035
+ name: "Composite",
3036
+ className: "HoldFailed",
3037
+ modelProperties: {
3760
3038
  callConnectionId: {
3761
3039
  serializedName: "callConnectionId",
3762
- readOnly: true,
3763
3040
  type: {
3764
3041
  name: "String",
3765
3042
  },
3766
3043
  },
3767
3044
  serverCallId: {
3768
3045
  serializedName: "serverCallId",
3769
- readOnly: true,
3770
3046
  type: {
3771
3047
  name: "String",
3772
3048
  },
3773
3049
  },
3774
3050
  correlationId: {
3775
3051
  serializedName: "correlationId",
3776
- readOnly: true,
3777
3052
  type: {
3778
3053
  name: "String",
3779
3054
  },
3780
3055
  },
3056
+ operationContext: {
3057
+ serializedName: "operationContext",
3058
+ type: {
3059
+ name: "String",
3060
+ },
3061
+ },
3062
+ resultInformation: {
3063
+ serializedName: "resultInformation",
3064
+ type: {
3065
+ name: "Composite",
3066
+ className: "ResultInformation",
3067
+ },
3068
+ },
3781
3069
  },
3782
3070
  },
3783
3071
  };
@@ -3828,6 +3116,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
3828
3116
  AddParticipantResponse: AddParticipantResponse,
3829
3117
  AddParticipantSucceeded: AddParticipantSucceeded,
3830
3118
  AnswerCallRequest: AnswerCallRequest,
3119
+ AnswerFailed: AnswerFailed,
3831
3120
  CallConnected: CallConnected,
3832
3121
  CallConnectionPropertiesInternal: CallConnectionPropertiesInternal,
3833
3122
  CallDisconnected: CallDisconnected,
@@ -3853,6 +3142,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
3853
3142
  ContinuousDtmfRecognitionStopped: ContinuousDtmfRecognitionStopped,
3854
3143
  ContinuousDtmfRecognitionToneFailed: ContinuousDtmfRecognitionToneFailed,
3855
3144
  ContinuousDtmfRecognitionToneReceived: ContinuousDtmfRecognitionToneReceived,
3145
+ CreateCallFailed: CreateCallFailed,
3856
3146
  CreateCallRequest: CreateCallRequest,
3857
3147
  CustomCallingContextInternal: CustomCallingContextInternal,
3858
3148
  DtmfOptions: DtmfOptions,
@@ -3861,12 +3151,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
3861
3151
  GetParticipantsResponse: GetParticipantsResponse,
3862
3152
  HoldFailed: HoldFailed,
3863
3153
  HoldRequest: HoldRequest,
3864
- MediaStreamingFailed: MediaStreamingFailed,
3865
- MediaStreamingOptions: MediaStreamingOptions,
3866
- MediaStreamingStarted: MediaStreamingStarted,
3867
- MediaStreamingStopped: MediaStreamingStopped,
3868
- MediaStreamingSubscription: MediaStreamingSubscription,
3869
- MediaStreamingUpdate: MediaStreamingUpdate,
3870
3154
  MicrosoftTeamsAppIdentifierModel: MicrosoftTeamsAppIdentifierModel,
3871
3155
  MicrosoftTeamsUserIdentifierModel: MicrosoftTeamsUserIdentifierModel,
3872
3156
  MuteParticipantsRequest: MuteParticipantsRequest,
@@ -3903,22 +3187,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
3903
3187
  SpeechResult: SpeechResult,
3904
3188
  SsmlSourceInternal: SsmlSourceInternal,
3905
3189
  StartCallRecordingRequest: StartCallRecordingRequest,
3906
- StartMediaStreamingRequest: StartMediaStreamingRequest,
3907
- StartTranscriptionRequest: StartTranscriptionRequest,
3908
- StopMediaStreamingRequest: StopMediaStreamingRequest,
3909
- StopTranscriptionRequest: StopTranscriptionRequest,
3910
3190
  TextSourceInternal: TextSourceInternal,
3911
- TranscriptionFailed: TranscriptionFailed,
3912
- TranscriptionOptions: TranscriptionOptions,
3913
- TranscriptionStarted: TranscriptionStarted,
3914
- TranscriptionStopped: TranscriptionStopped,
3915
- TranscriptionSubscription: TranscriptionSubscription,
3916
- TranscriptionUpdate: TranscriptionUpdate,
3917
- TranscriptionUpdated: TranscriptionUpdated,
3918
3191
  TransferCallResponse: TransferCallResponse,
3919
3192
  TransferToParticipantRequest: TransferToParticipantRequest,
3920
- UnholdRequest: UnholdRequest,
3921
- UpdateTranscriptionRequest: UpdateTranscriptionRequest
3193
+ UnholdRequest: UnholdRequest
3922
3194
  });
3923
3195
 
3924
3196
  /*
@@ -3968,7 +3240,7 @@ const endpoint = {
3968
3240
  const apiVersion = {
3969
3241
  parameterPath: "apiVersion",
3970
3242
  mapper: {
3971
- defaultValue: "2024-06-15-preview",
3243
+ defaultValue: "2024-09-15",
3972
3244
  isConstant: true,
3973
3245
  serializedName: "api-version",
3974
3246
  type: {
@@ -4065,18 +3337,6 @@ const playRequest = {
4065
3337
  parameterPath: "playRequest",
4066
3338
  mapper: PlayRequest,
4067
3339
  };
4068
- const startTranscriptionRequest = {
4069
- parameterPath: "startTranscriptionRequest",
4070
- mapper: StartTranscriptionRequest,
4071
- };
4072
- const stopTranscriptionRequest = {
4073
- parameterPath: "stopTranscriptionRequest",
4074
- mapper: StopTranscriptionRequest,
4075
- };
4076
- const updateTranscriptionRequest = {
4077
- parameterPath: "updateTranscriptionRequest",
4078
- mapper: UpdateTranscriptionRequest,
4079
- };
4080
3340
  const recognizeRequest = {
4081
3341
  parameterPath: "recognizeRequest",
4082
3342
  mapper: RecognizeRequest,
@@ -4097,14 +3357,6 @@ const unholdRequest = {
4097
3357
  parameterPath: "unholdRequest",
4098
3358
  mapper: UnholdRequest,
4099
3359
  };
4100
- const startMediaStreamingRequest = {
4101
- parameterPath: "startMediaStreamingRequest",
4102
- mapper: StartMediaStreamingRequest,
4103
- };
4104
- const stopMediaStreamingRequest = {
4105
- parameterPath: "stopMediaStreamingRequest",
4106
- mapper: StopMediaStreamingRequest,
4107
- };
4108
3360
  const startCallRecording = {
4109
3361
  parameterPath: "startCallRecording",
4110
3362
  mapper: StartCallRecordingRequest,
@@ -4244,7 +3496,7 @@ class CallConnectionImpl {
4244
3496
  /**
4245
3497
  * Add a participant to the call.
4246
3498
  * @param callConnectionId The call connection Id
4247
- * @param addParticipantRequest The request payload for adding participant to the call.
3499
+ * @param addParticipantRequest The add participants request.
4248
3500
  * @param options The options parameters.
4249
3501
  */
4250
3502
  addParticipant(callConnectionId, addParticipantRequest, options) {
@@ -4542,33 +3794,6 @@ class CallMediaImpl {
4542
3794
  play(callConnectionId, playRequest, options) {
4543
3795
  return this.client.sendOperationRequest({ callConnectionId, playRequest, options }, playOperationSpec);
4544
3796
  }
4545
- /**
4546
- * Starts transcription in the call
4547
- * @param callConnectionId The call connection id.
4548
- * @param startTranscriptionRequest
4549
- * @param options The options parameters.
4550
- */
4551
- startTranscription(callConnectionId, startTranscriptionRequest, options) {
4552
- return this.client.sendOperationRequest({ callConnectionId, startTranscriptionRequest, options }, startTranscriptionOperationSpec);
4553
- }
4554
- /**
4555
- * Stops transcription in the call.
4556
- * @param callConnectionId The call connection id.
4557
- * @param stopTranscriptionRequest stop transcription request payload.
4558
- * @param options The options parameters.
4559
- */
4560
- stopTranscription(callConnectionId, stopTranscriptionRequest, options) {
4561
- return this.client.sendOperationRequest({ callConnectionId, stopTranscriptionRequest, options }, stopTranscriptionOperationSpec);
4562
- }
4563
- /**
4564
- * API to change transcription language.
4565
- * @param callConnectionId The call connection id
4566
- * @param updateTranscriptionRequest The UpdateTranscription request
4567
- * @param options The options parameters.
4568
- */
4569
- updateTranscription(callConnectionId, updateTranscriptionRequest, options) {
4570
- return this.client.sendOperationRequest({ callConnectionId, updateTranscriptionRequest, options }, updateTranscriptionOperationSpec);
4571
- }
4572
3797
  /**
4573
3798
  * Cancel all media operations in a call.
4574
3799
  * @param callConnectionId The call connection id
@@ -4631,24 +3856,6 @@ class CallMediaImpl {
4631
3856
  unhold(callConnectionId, unholdRequest, options) {
4632
3857
  return this.client.sendOperationRequest({ callConnectionId, unholdRequest, options }, unholdOperationSpec);
4633
3858
  }
4634
- /**
4635
- * Starts media streaming in the call.
4636
- * @param callConnectionId The call connection id.
4637
- * @param startMediaStreamingRequest
4638
- * @param options The options parameters.
4639
- */
4640
- startMediaStreaming(callConnectionId, startMediaStreamingRequest, options) {
4641
- return this.client.sendOperationRequest({ callConnectionId, startMediaStreamingRequest, options }, startMediaStreamingOperationSpec);
4642
- }
4643
- /**
4644
- * Stops media streaming in the call.
4645
- * @param callConnectionId The call connection id.
4646
- * @param stopMediaStreamingRequest stop media streaming request payload.
4647
- * @param options The options parameters.
4648
- */
4649
- stopMediaStreaming(callConnectionId, stopMediaStreamingRequest, options) {
4650
- return this.client.sendOperationRequest({ callConnectionId, stopMediaStreamingRequest, options }, stopMediaStreamingOperationSpec);
4651
- }
4652
3859
  }
4653
3860
  // Operation Specifications
4654
3861
  const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
@@ -4668,54 +3875,6 @@ const playOperationSpec = {
4668
3875
  mediaType: "json",
4669
3876
  serializer: serializer$3,
4670
3877
  };
4671
- const startTranscriptionOperationSpec = {
4672
- path: "/calling/callConnections/{callConnectionId}:startTranscription",
4673
- httpMethod: "POST",
4674
- responses: {
4675
- 202: {},
4676
- default: {
4677
- bodyMapper: CommunicationErrorResponse,
4678
- },
4679
- },
4680
- requestBody: startTranscriptionRequest,
4681
- queryParameters: [apiVersion],
4682
- urlParameters: [endpoint, callConnectionId],
4683
- headerParameters: [contentType, accept],
4684
- mediaType: "json",
4685
- serializer: serializer$3,
4686
- };
4687
- const stopTranscriptionOperationSpec = {
4688
- path: "/calling/callConnections/{callConnectionId}:stopTranscription",
4689
- httpMethod: "POST",
4690
- responses: {
4691
- 202: {},
4692
- default: {
4693
- bodyMapper: CommunicationErrorResponse,
4694
- },
4695
- },
4696
- requestBody: stopTranscriptionRequest,
4697
- queryParameters: [apiVersion],
4698
- urlParameters: [endpoint, callConnectionId],
4699
- headerParameters: [contentType, accept],
4700
- mediaType: "json",
4701
- serializer: serializer$3,
4702
- };
4703
- const updateTranscriptionOperationSpec = {
4704
- path: "/calling/callConnections/{callConnectionId}:updateTranscription",
4705
- httpMethod: "POST",
4706
- responses: {
4707
- 202: {},
4708
- default: {
4709
- bodyMapper: CommunicationErrorResponse,
4710
- },
4711
- },
4712
- requestBody: updateTranscriptionRequest,
4713
- queryParameters: [apiVersion],
4714
- urlParameters: [endpoint, callConnectionId],
4715
- headerParameters: [contentType, accept],
4716
- mediaType: "json",
4717
- serializer: serializer$3,
4718
- };
4719
3878
  const cancelAllMediaOperationsOperationSpec = {
4720
3879
  path: "/calling/callConnections/{callConnectionId}:cancelAllMediaOperations",
4721
3880
  httpMethod: "POST",
@@ -4833,38 +3992,6 @@ const unholdOperationSpec = {
4833
3992
  mediaType: "json",
4834
3993
  serializer: serializer$3,
4835
3994
  };
4836
- const startMediaStreamingOperationSpec = {
4837
- path: "/calling/callConnections/{callConnectionId}:startMediaStreaming",
4838
- httpMethod: "POST",
4839
- responses: {
4840
- 202: {},
4841
- default: {
4842
- bodyMapper: CommunicationErrorResponse,
4843
- },
4844
- },
4845
- requestBody: startMediaStreamingRequest,
4846
- queryParameters: [apiVersion],
4847
- urlParameters: [endpoint, callConnectionId],
4848
- headerParameters: [contentType, accept],
4849
- mediaType: "json",
4850
- serializer: serializer$3,
4851
- };
4852
- const stopMediaStreamingOperationSpec = {
4853
- path: "/calling/callConnections/{callConnectionId}:stopMediaStreaming",
4854
- httpMethod: "POST",
4855
- responses: {
4856
- 202: {},
4857
- default: {
4858
- bodyMapper: CommunicationErrorResponse,
4859
- },
4860
- },
4861
- requestBody: stopMediaStreamingRequest,
4862
- queryParameters: [apiVersion],
4863
- urlParameters: [endpoint, callConnectionId],
4864
- headerParameters: [contentType, accept],
4865
- mediaType: "json",
4866
- serializer: serializer$3,
4867
- };
4868
3995
 
4869
3996
  /*
4870
3997
  * Copyright (c) Microsoft Corporation.
@@ -5032,7 +4159,7 @@ class CallAutomationApiClient extends coreClient__namespace.ServiceClient {
5032
4159
  const defaults = {
5033
4160
  requestContentType: "application/json; charset=utf-8",
5034
4161
  };
5035
- const packageDetails = `azsdk-js-communication-call-automation/1.3.0-beta.1`;
4162
+ const packageDetails = `azsdk-js-communication-call-automation/1.3.0`;
5036
4163
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5037
4164
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
5038
4165
  : `${packageDetails}`;
@@ -5043,7 +4170,7 @@ class CallAutomationApiClient extends coreClient__namespace.ServiceClient {
5043
4170
  // Parameter assignments
5044
4171
  this.endpoint = endpoint;
5045
4172
  // Assigning values to Constant parameters
5046
- this.apiVersion = options.apiVersion || "2024-06-15-preview";
4173
+ this.apiVersion = options.apiVersion || "2024-09-15";
5047
4174
  this.callConnection = new CallConnectionImpl(this);
5048
4175
  this.callMedia = new CallMediaImpl(this);
5049
4176
  this.callRecording = new CallRecordingImpl(this);
@@ -5230,7 +4357,7 @@ const connectOperationSpec = {
5230
4357
  };
5231
4358
 
5232
4359
  // Copyright (c) Microsoft Corporation.
5233
- // Licensed under the MIT license.
4360
+ // Licensed under the MIT License.
5234
4361
  /**
5235
4362
  * CallMedia class represents call media related APIs.
5236
4363
  */
@@ -5545,66 +4672,10 @@ class CallMedia {
5545
4672
  };
5546
4673
  return this.callMedia.unhold(this.callConnectionId, unholdRequest);
5547
4674
  }
5548
- /**
5549
- * Starts transcription in the call
5550
- * @param options - Additional attributes for start transcription.
5551
- */
5552
- async startTranscription(options = {}) {
5553
- const startTranscriptionRequest = {
5554
- locale: options.locale,
5555
- operationContext: options.operationContext,
5556
- speechRecognitionModelEndpointId: options.speechRecognitionModelEndpointId,
5557
- };
5558
- return this.callMedia.startTranscription(this.callConnectionId, startTranscriptionRequest, {});
5559
- }
5560
- /**
5561
- * Stops transcription in the call.
5562
- * @param options - Additional attributes for stop transcription.
5563
- */
5564
- async stopTranscription(options = {}) {
5565
- const stopTranscriptionRequest = {
5566
- operationContext: options.operationContext,
5567
- };
5568
- return this.callMedia.stopTranscription(this.callConnectionId, stopTranscriptionRequest, {});
5569
- }
5570
- /**
5571
- * Update transcription language.
5572
- * @param locale - Defines new locale for transcription.
5573
- */
5574
- async updateTranscription(locale, options) {
5575
- const updateTranscriptionRequest = {
5576
- locale: locale,
5577
- speechRecognitionModelEndpointId: options === null || options === void 0 ? void 0 : options.speechRecognitionModelEndpointId,
5578
- operationContext: options === null || options === void 0 ? void 0 : options.operationContext,
5579
- };
5580
- return this.callMedia.updateTranscription(this.callConnectionId, updateTranscriptionRequest, {});
5581
- }
5582
- /**
5583
- * Starts media streaming in the call.
5584
- * @param options - Additional attributes for start media streaming.
5585
- */
5586
- async startMediaStreaming(options = {}) {
5587
- const startMediaStreamingRequest = {
5588
- operationContext: options.operationContext,
5589
- operationCallbackUri: options.operationCallbackUrl,
5590
- };
5591
- return this.callMedia.startMediaStreaming(this.callConnectionId, startMediaStreamingRequest, options);
5592
- }
5593
- /**
5594
- * Stops media streaming in the call.
5595
- * @param options - Additional attributes for stop media streaming.
5596
- */
5597
- async stopMediaStreaming(options = {}) {
5598
- const stopMediaStreamingRequest = {
5599
- operationCallbackUri: options.operationCallbackUrl,
5600
- operationContext: options === null || options === void 0 ? void 0 : options.operationContext,
5601
- };
5602
- return this.callMedia.stopMediaStreaming(this.callConnectionId, stopMediaStreamingRequest, options);
5603
- }
5604
4675
  }
5605
4676
 
5606
4677
  // Copyright (c) Microsoft Corporation.
5607
- // Licensed under the MIT license.
4678
+ // Licensed under the MIT License.
5608
4679
  function extractKind(identifierModel) {
5609
4680
  if (identifierModel.communicationUser !== undefined) {
5610
4681
  return KnownCommunicationIdentifierModelKind.CommunicationUser;
@@ -5730,7 +4801,7 @@ function communicationUserIdentifierConverter(identifier) {
5730
4801
  }
5731
4802
 
5732
4803
  // Copyright (c) Microsoft Corporation.
5733
- // Licensed under the MIT license.
4804
+ // Licensed under the MIT License.
5734
4805
  /**
5735
4806
  * CallConnection class represents call connection based APIs.
5736
4807
  */
@@ -5934,7 +5005,7 @@ class CallConnection {
5934
5005
  }
5935
5006
 
5936
5007
  // Copyright (c) Microsoft Corporation.
5937
- // Licensed under the MIT license.
5008
+ // Licensed under the MIT License.
5938
5009
  /** Class containing ContentDownloading operations. */
5939
5010
  class ContentDownloaderImpl {
5940
5011
  /**
@@ -6037,7 +5108,7 @@ class ContentDownloaderImpl {
6037
5108
  }
6038
5109
 
6039
5110
  // Copyright (c) Microsoft Corporation.
6040
- // Licensed under the MIT license.
5111
+ // Licensed under the MIT License.
6041
5112
  /**
6042
5113
  * CallRecording class represents call recording related APIs.
6043
5114
  */
@@ -6285,8 +5356,6 @@ class CallAutomationClient {
6285
5356
  callbackUri: callbackUrl,
6286
5357
  operationContext: options.operationContext,
6287
5358
  callIntelligenceOptions: options.callIntelligenceOptions,
6288
- mediaStreamingOptions: options.mediaStreamingOptions,
6289
- transcriptionOptions: options.transcriptionOptions,
6290
5359
  sourceCallerIdNumber: PhoneNumberIdentifierModelConverter(targetParticipant.sourceCallIdNumber),
6291
5360
  sourceDisplayName: targetParticipant.sourceDisplayName,
6292
5361
  };
@@ -6298,15 +5367,15 @@ class CallAutomationClient {
6298
5367
  * @param callbackUrl - The callback url.
6299
5368
  * @param options - Additional request options contains createCallConnection api options.
6300
5369
  */
6301
- async createGroupCall(targetParticipants, callbackUrl, options = {}) {
5370
+ async createGroupCall(targetParticipants, callbackUrl,
5371
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
5372
+ options = {}) {
6302
5373
  const request = {
6303
5374
  source: this.sourceIdentity,
6304
5375
  targets: targetParticipants.map((target) => communicationIdentifierModelConverter(target)),
6305
5376
  callbackUri: callbackUrl,
6306
5377
  operationContext: options.operationContext,
6307
5378
  callIntelligenceOptions: options.callIntelligenceOptions,
6308
- mediaStreamingOptions: options.mediaStreamingOptions,
6309
- transcriptionOptions: options.transcriptionOptions,
6310
5379
  sourceCallerIdNumber: PhoneNumberIdentifierModelConverter(options.sourceCallIdNumber),
6311
5380
  sourceDisplayName: options.sourceDisplayName,
6312
5381
  };
@@ -6319,11 +5388,9 @@ class CallAutomationClient {
6319
5388
  * @param options - Additional request options contains answerCall api options.
6320
5389
  */
6321
5390
  async answerCall(incomingCallContext, callbackUrl, options = {}) {
6322
- const { callIntelligenceOptions, mediaStreamingOptions, transcriptionOptions, operationContext } = options, operationOptions = tslib.__rest(options, ["callIntelligenceOptions", "mediaStreamingOptions", "transcriptionOptions", "operationContext"]);
5391
+ const { callIntelligenceOptions, operationContext } = options, operationOptions = tslib.__rest(options, ["callIntelligenceOptions", "operationContext"]);
6323
5392
  const request = {
6324
5393
  incomingCallContext: incomingCallContext,
6325
- mediaStreamingOptions: mediaStreamingOptions,
6326
- transcriptionOptions: transcriptionOptions,
6327
5394
  callIntelligenceOptions: callIntelligenceOptions,
6328
5395
  operationContext: operationContext,
6329
5396
  callbackUri: callbackUrl,
@@ -6416,7 +5483,7 @@ class CallAutomationClient {
6416
5483
  }
6417
5484
 
6418
5485
  // Copyright (c) Microsoft Corporation.
6419
- // Licensed under the MIT license.
5486
+ // Licensed under the MIT License.
6420
5487
  const CloudEventMapper = {
6421
5488
  type: {
6422
5489
  name: "Composite",
@@ -6492,7 +5559,7 @@ const CloudEventMapper = {
6492
5559
  };
6493
5560
 
6494
5561
  // Copyright (c) Microsoft Corporation.
6495
- // Licensed under the MIT license.
5562
+ // Licensed under the MIT License.
6496
5563
  const serializer = coreClient.createSerializer();
6497
5564
  /**
6498
5565
  * Helper function for parsing Acs callback events.
@@ -6593,29 +5660,14 @@ function parseCallAutomationEvent(encodedEvents) {
6593
5660
  case "Microsoft.Communication.ConnectFailed":
6594
5661
  callbackEvent = { kind: "ConnectFailed" };
6595
5662
  break;
6596
- case "Microsoft.Communication.TranscriptionStarted":
6597
- callbackEvent = { kind: "TranscriptionStarted" };
6598
- break;
6599
- case "Microsoft.Communication.TranscriptionStopped":
6600
- callbackEvent = { kind: "TranscriptionStopped" };
6601
- break;
6602
- case "Microsoft.Communication.TranscriptionUpdated":
6603
- callbackEvent = { kind: "TranscriptionUpdated" };
6604
- break;
6605
- case "Microsoft.Communication.TranscriptionFailed":
6606
- callbackEvent = { kind: "TranscriptionFailed" };
6607
- break;
6608
5663
  case "Microsoft.Communication.HoldFailed":
6609
5664
  callbackEvent = { kind: "HoldFailed" };
6610
5665
  break;
6611
- case "Microsoft.Communication.MediaStreamingStarted":
6612
- callbackEvent = { kind: "MediaStreamingStarted" };
5666
+ case "Microsoft.Communication.AnswerFailed":
5667
+ callbackEvent = { kind: "AnswerFailed" };
6613
5668
  break;
6614
- case "Microsoft.Communication.MediaStreamingStopped":
6615
- callbackEvent = { kind: "MediaStreamingStopped" };
6616
- break;
6617
- case "Microsoft.Communication.MediaStreamingFailed":
6618
- callbackEvent = { kind: "MediaStreamingFailed" };
5669
+ case "Microsoft.Communication.CreateCallFailed":
5670
+ callbackEvent = { kind: "CreateCallFailed" };
6619
5671
  break;
6620
5672
  default:
6621
5673
  throw new TypeError(`Unknown Call Automation Event type: ${eventType}`);
@@ -6651,74 +5703,7 @@ function participantsParserForEvent(data) {
6651
5703
  }
6652
5704
 
6653
5705
  // Copyright (c) Microsoft Corporation.
6654
- // Licensed under the MIT license.
6655
- /** Parse the incoming package. */
6656
- function streamingData(packetData) {
6657
- let stringJson;
6658
- if (typeof packetData === "string") {
6659
- stringJson = packetData;
6660
- }
6661
- else {
6662
- const decoder = new TextDecoder();
6663
- stringJson = decoder.decode(packetData);
6664
- }
6665
- const jsonObject = JSON.parse(stringJson);
6666
- const kind = jsonObject.kind;
6667
- switch (kind) {
6668
- case "TranscriptionMetadata": {
6669
- const transcriptionMetadata = {
6670
- subscriptionId: jsonObject.transcriptionMetadata.subscriptionId,
6671
- locale: jsonObject.transcriptionMetadata.locale,
6672
- callConnectionId: jsonObject.transcriptionMetadata.callConnectionId,
6673
- correlationId: jsonObject.transcriptionMetadata.correlationId,
6674
- };
6675
- return transcriptionMetadata;
6676
- }
6677
- case "TranscriptionData": {
6678
- const transcriptionData = {
6679
- text: jsonObject.transcriptionData.text,
6680
- format: jsonObject.transcriptionData.format,
6681
- confidence: jsonObject.transcriptionData.confidence,
6682
- offsetInTicks: jsonObject.transcriptionData.offset,
6683
- durationInTicks: jsonObject.transcriptionData.duration,
6684
- words: jsonObject.transcriptionData.words.map((word) => ({
6685
- text: word.text,
6686
- offsetInTicks: word.offset,
6687
- durationInTicks: word.duration,
6688
- })),
6689
- participant: communicationCommon.createIdentifierFromRawId(jsonObject.transcriptionData.participantRawID),
6690
- resultState: jsonObject.transcriptionData.resultStatus,
6691
- };
6692
- return transcriptionData;
6693
- }
6694
- case "AudioMetadata": {
6695
- const audioMetadata = {
6696
- subscriptionId: jsonObject.audioMetadata.subscriptionId,
6697
- encoding: jsonObject.audioMetadata.encoding,
6698
- sampleRate: jsonObject.audioMetadata.sampleRate,
6699
- channels: jsonObject.audioMetadata.channels,
6700
- length: jsonObject.audioMetadata.length,
6701
- };
6702
- return audioMetadata;
6703
- }
6704
- case "AudioData": {
6705
- const audioData = {
6706
- data: jsonObject.audioData.data,
6707
- timestamp: jsonObject.audioData.timestamp,
6708
- isSilent: jsonObject.audioData.silent,
6709
- participant: jsonObject.audioData.participantRawID !== undefined
6710
- ? communicationCommon.createIdentifierFromRawId(jsonObject.audioData.participantRawID)
6711
- : undefined,
6712
- };
6713
- return audioData;
6714
- }
6715
- default:
6716
- throw new Error(stringJson);
6717
- }
6718
- }
6719
-
6720
- // Copyright (c) Microsoft Corporation.
6721
- // Licensed under the MIT license.
5706
+ // Licensed under the MIT License.
6722
5707
  /** Defines values for VoiceKind that the service accepts. */
6723
5708
  exports.VoiceKind = void 0;
6724
5709
  (function (VoiceKind) {
@@ -6770,21 +5755,9 @@ exports.RecognizeInputType = void 0;
6770
5755
  RecognizeInputType["Dtmf"] = "dtmf";
6771
5756
  })(exports.RecognizeInputType || (exports.RecognizeInputType = {}));
6772
5757
 
6773
- // Copyright (c) Microsoft Corporation.
6774
- // Licensed under the MIT license.
6775
- /**
6776
- * The format of transcription text.
6777
- */
6778
- exports.TextFormat = void 0;
6779
- (function (TextFormat) {
6780
- /** Formatted recognize text with punctuations.*/
6781
- TextFormat["Display"] = "display";
6782
- })(exports.TextFormat || (exports.TextFormat = {}));
6783
-
6784
5758
  exports.CallAutomationClient = CallAutomationClient;
6785
5759
  exports.CallConnection = CallConnection;
6786
5760
  exports.CallMedia = CallMedia;
6787
5761
  exports.CallRecording = CallRecording;
6788
5762
  exports.parseCallAutomationEvent = parseCallAutomationEvent;
6789
- exports.streamingData = streamingData;
6790
5763
  //# sourceMappingURL=index.js.map