@azure/communication-call-automation
Version:
Azure client library for Azure Communication Call Automation services
1,639 lines (1,638 loc) • 107 kB
JavaScript
"use strict";
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MuteParticipantsRequest = exports.RemoveParticipantResponse = exports.RemoveParticipantRequest = exports.AddParticipantResponse = exports.AddParticipantRequest = exports.CallParticipantInternal = exports.GetParticipantsResponse = exports.StopMediaStreamingRequest = exports.StartMediaStreamingRequest = exports.UnholdRequest = exports.HoldRequest = exports.SendDtmfTonesResult = exports.SendDtmfTonesRequest = exports.ContinuousDtmfRecognitionRequest = exports.SpeechOptions = exports.Choice = exports.DtmfOptions = exports.RecognizeOptions = exports.RecognizeRequest = exports.UpdateTranscriptionRequest = exports.StopTranscriptionRequest = exports.StartTranscriptionRequest = exports.PlayOptionsInternal = exports.SsmlSourceInternal = exports.TextSourceInternal = exports.FileSourceInternal = exports.PlaySourceInternal = exports.PlayRequest = exports.TransferCallResponse = exports.CustomCallingContextInternal = exports.TransferToParticipantRequest = exports.CallLocator = exports.ConnectRequest = exports.RejectCallRequest = exports.RedirectCallRequest = exports.AnswerCallRequest = exports.CommunicationError = exports.CommunicationErrorResponse = exports.TranscriptionSubscription = exports.MediaStreamingSubscription = exports.CallConnectionPropertiesInternal = exports.TranscriptionOptionsInternal = exports.MediaStreamingOptionsInternal = exports.CallIntelligenceOptionsInternal = exports.MicrosoftTeamsAppIdentifierModel = exports.MicrosoftTeamsUserIdentifierModel = exports.PhoneNumberIdentifierModel = exports.CommunicationUserIdentifierModel = exports.CommunicationIdentifierModel = exports.CreateCallRequest = void 0;
exports.WebSocketTranscriptionOptions = exports.WebSocketMediaStreamingOptions = exports.TranscriptionUpdated = exports.TranscriptionStopped = exports.TranscriptionStarted = exports.TranscriptionUpdate = exports.TranscriptionFailed = exports.HoldFailed = exports.MediaStreamingStopped = exports.MediaStreamingStarted = exports.MediaStreamingUpdate = exports.MediaStreamingFailed = exports.SendDtmfTonesFailed = exports.SendDtmfTonesCompleted = exports.ContinuousDtmfRecognitionStopped = exports.ContinuousDtmfRecognitionToneReceived = exports.ContinuousDtmfRecognitionToneFailed = exports.RecognizeCanceled = exports.RecognizeFailed = exports.SpeechResult = exports.ChoiceResult = exports.DtmfResult = exports.RecognizeCompleted = exports.PlayCanceled = exports.PlayFailed = exports.PlayCompleted = exports.PlayStarted = exports.RecordingStateChanged = exports.ConnectFailed = exports.CreateCallFailed = exports.AnswerFailed = exports.CancelAddParticipantFailed = exports.CancelAddParticipantSucceeded = exports.RemoveParticipantFailed = exports.RemoveParticipantSucceeded = exports.ParticipantsUpdated = exports.CallTransferFailed = exports.CallTransferAccepted = exports.CallDisconnected = exports.CallConnected = exports.AddParticipantSucceeded = exports.ResultInformation = exports.AddParticipantFailed = exports.RecordingStateResponse = exports.RecordingStorage = exports.ChannelAffinity = exports.StartCallRecordingRequest = exports.CancelAddParticipantResponse = exports.CancelAddParticipantRequest = exports.MuteParticipantsResult = void 0;
exports.discriminators = void 0;
exports.CreateCallRequest = {
type: {
name: "Composite",
className: "CreateCallRequest",
modelProperties: {
targets: {
serializedName: "targets",
required: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
},
},
sourceCallerIdNumber: {
serializedName: "sourceCallerIdNumber",
type: {
name: "Composite",
className: "PhoneNumberIdentifierModel",
},
},
sourceDisplayName: {
serializedName: "sourceDisplayName",
type: {
name: "String",
},
},
source: {
serializedName: "source",
type: {
name: "Composite",
className: "CommunicationUserIdentifierModel",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
callbackUri: {
serializedName: "callbackUri",
required: true,
type: {
name: "String",
},
},
callIntelligenceOptions: {
serializedName: "callIntelligenceOptions",
type: {
name: "Composite",
className: "CallIntelligenceOptionsInternal",
},
},
mediaStreamingOptions: {
serializedName: "mediaStreamingOptions",
type: {
name: "Composite",
className: "MediaStreamingOptionsInternal",
},
},
transcriptionOptions: {
serializedName: "transcriptionOptions",
type: {
name: "Composite",
className: "TranscriptionOptionsInternal",
},
},
},
},
};
exports.CommunicationIdentifierModel = {
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
modelProperties: {
kind: {
serializedName: "kind",
type: {
name: "String",
},
},
rawId: {
serializedName: "rawId",
type: {
name: "String",
},
},
communicationUser: {
serializedName: "communicationUser",
type: {
name: "Composite",
className: "CommunicationUserIdentifierModel",
},
},
phoneNumber: {
serializedName: "phoneNumber",
type: {
name: "Composite",
className: "PhoneNumberIdentifierModel",
},
},
microsoftTeamsUser: {
serializedName: "microsoftTeamsUser",
type: {
name: "Composite",
className: "MicrosoftTeamsUserIdentifierModel",
},
},
microsoftTeamsApp: {
serializedName: "microsoftTeamsApp",
type: {
name: "Composite",
className: "MicrosoftTeamsAppIdentifierModel",
},
},
},
},
};
exports.CommunicationUserIdentifierModel = {
type: {
name: "Composite",
className: "CommunicationUserIdentifierModel",
modelProperties: {
id: {
serializedName: "id",
required: true,
type: {
name: "String",
},
},
},
},
};
exports.PhoneNumberIdentifierModel = {
type: {
name: "Composite",
className: "PhoneNumberIdentifierModel",
modelProperties: {
value: {
serializedName: "value",
required: true,
type: {
name: "String",
},
},
},
},
};
exports.MicrosoftTeamsUserIdentifierModel = {
type: {
name: "Composite",
className: "MicrosoftTeamsUserIdentifierModel",
modelProperties: {
userId: {
serializedName: "userId",
required: true,
type: {
name: "String",
},
},
isAnonymous: {
serializedName: "isAnonymous",
type: {
name: "Boolean",
},
},
cloud: {
serializedName: "cloud",
type: {
name: "String",
},
},
},
},
};
exports.MicrosoftTeamsAppIdentifierModel = {
type: {
name: "Composite",
className: "MicrosoftTeamsAppIdentifierModel",
modelProperties: {
appId: {
serializedName: "appId",
required: true,
type: {
name: "String",
},
},
cloud: {
serializedName: "cloud",
type: {
name: "String",
},
},
},
},
};
exports.CallIntelligenceOptionsInternal = {
type: {
name: "Composite",
className: "CallIntelligenceOptionsInternal",
modelProperties: {
cognitiveServicesEndpoint: {
serializedName: "cognitiveServicesEndpoint",
type: {
name: "String",
},
},
},
},
};
exports.MediaStreamingOptionsInternal = {
type: {
name: "Composite",
className: "MediaStreamingOptionsInternal",
uberParent: "MediaStreamingOptionsInternal",
polymorphicDiscriminator: {
serializedName: "transportType",
clientName: "transportType",
},
modelProperties: {
transportType: {
serializedName: "transportType",
required: true,
type: {
name: "String",
},
},
audioChannelType: {
serializedName: "audioChannelType",
required: true,
type: {
name: "String",
},
},
},
},
};
exports.TranscriptionOptionsInternal = {
type: {
name: "Composite",
className: "TranscriptionOptionsInternal",
uberParent: "TranscriptionOptionsInternal",
polymorphicDiscriminator: {
serializedName: "transportType",
clientName: "transportType",
},
modelProperties: {
transportType: {
serializedName: "transportType",
required: true,
type: {
name: "String",
},
},
locale: {
serializedName: "locale",
required: true,
type: {
name: "String",
},
},
},
},
};
exports.CallConnectionPropertiesInternal = {
type: {
name: "Composite",
className: "CallConnectionPropertiesInternal",
modelProperties: {
callConnectionId: {
serializedName: "callConnectionId",
type: {
name: "String",
},
},
serverCallId: {
serializedName: "serverCallId",
type: {
name: "String",
},
},
targets: {
serializedName: "targets",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
},
},
callConnectionState: {
serializedName: "callConnectionState",
type: {
name: "String",
},
},
callbackUri: {
serializedName: "callbackUri",
type: {
name: "String",
},
},
sourceCallerIdNumber: {
serializedName: "sourceCallerIdNumber",
type: {
name: "Composite",
className: "PhoneNumberIdentifierModel",
},
},
sourceDisplayName: {
serializedName: "sourceDisplayName",
type: {
name: "String",
},
},
source: {
serializedName: "source",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
correlationId: {
serializedName: "correlationId",
type: {
name: "String",
},
},
answeredBy: {
serializedName: "answeredBy",
type: {
name: "Composite",
className: "CommunicationUserIdentifierModel",
},
},
mediaStreamingSubscription: {
serializedName: "mediaStreamingSubscription",
type: {
name: "Composite",
className: "MediaStreamingSubscription",
},
},
transcriptionSubscription: {
serializedName: "transcriptionSubscription",
type: {
name: "Composite",
className: "TranscriptionSubscription",
},
},
answeredFor: {
serializedName: "answeredFor",
type: {
name: "Composite",
className: "PhoneNumberIdentifierModel",
},
},
},
},
};
exports.MediaStreamingSubscription = {
type: {
name: "Composite",
className: "MediaStreamingSubscription",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String",
},
},
state: {
serializedName: "state",
type: {
name: "String",
},
},
subscribedContentTypes: {
serializedName: "subscribedContentTypes",
type: {
name: "Sequence",
element: {
type: {
name: "String",
},
},
},
},
},
},
};
exports.TranscriptionSubscription = {
type: {
name: "Composite",
className: "TranscriptionSubscription",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String",
},
},
state: {
serializedName: "state",
type: {
name: "String",
},
},
subscribedResultStates: {
serializedName: "subscribedResultTypes",
type: {
name: "Sequence",
element: {
type: {
name: "String",
},
},
},
},
locale: {
serializedName: "locale",
type: {
name: "String",
},
},
},
},
};
exports.CommunicationErrorResponse = {
type: {
name: "Composite",
className: "CommunicationErrorResponse",
modelProperties: {
error: {
serializedName: "error",
type: {
name: "Composite",
className: "CommunicationError",
},
},
},
},
};
exports.CommunicationError = {
type: {
name: "Composite",
className: "CommunicationError",
modelProperties: {
code: {
serializedName: "code",
required: true,
type: {
name: "String",
},
},
message: {
serializedName: "message",
required: true,
type: {
name: "String",
},
},
target: {
serializedName: "target",
readOnly: true,
type: {
name: "String",
},
},
details: {
serializedName: "details",
readOnly: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "CommunicationError",
},
},
},
},
innerError: {
serializedName: "innererror",
type: {
name: "Composite",
className: "CommunicationError",
},
},
},
},
};
exports.AnswerCallRequest = {
type: {
name: "Composite",
className: "AnswerCallRequest",
modelProperties: {
incomingCallContext: {
serializedName: "incomingCallContext",
required: true,
type: {
name: "String",
},
},
callbackUri: {
serializedName: "callbackUri",
required: true,
type: {
name: "String",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
callIntelligenceOptions: {
serializedName: "callIntelligenceOptions",
type: {
name: "Composite",
className: "CallIntelligenceOptionsInternal",
},
},
answeredBy: {
serializedName: "answeredBy",
type: {
name: "Composite",
className: "CommunicationUserIdentifierModel",
},
},
mediaStreamingOptions: {
serializedName: "mediaStreamingOptions",
type: {
name: "Composite",
className: "MediaStreamingOptionsInternal",
},
},
transcriptionOptions: {
serializedName: "transcriptionOptions",
type: {
name: "Composite",
className: "TranscriptionOptionsInternal",
},
},
},
},
};
exports.RedirectCallRequest = {
type: {
name: "Composite",
className: "RedirectCallRequest",
modelProperties: {
incomingCallContext: {
serializedName: "incomingCallContext",
required: true,
type: {
name: "String",
},
},
target: {
serializedName: "target",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
},
},
};
exports.RejectCallRequest = {
type: {
name: "Composite",
className: "RejectCallRequest",
modelProperties: {
incomingCallContext: {
serializedName: "incomingCallContext",
required: true,
type: {
name: "String",
},
},
callRejectReason: {
serializedName: "callRejectReason",
type: {
name: "String",
},
},
},
},
};
exports.ConnectRequest = {
type: {
name: "Composite",
className: "ConnectRequest",
modelProperties: {
callLocator: {
serializedName: "callLocator",
type: {
name: "Composite",
className: "CallLocator",
},
},
callbackUri: {
serializedName: "callbackUri",
required: true,
type: {
name: "String",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
callIntelligenceOptions: {
serializedName: "callIntelligenceOptions",
type: {
name: "Composite",
className: "CallIntelligenceOptionsInternal",
},
},
mediaStreamingOptions: {
serializedName: "mediaStreamingOptions",
type: {
name: "Composite",
className: "MediaStreamingOptionsInternal",
},
},
transcriptionOptions: {
serializedName: "transcriptionOptions",
type: {
name: "Composite",
className: "TranscriptionOptionsInternal",
},
},
},
},
};
exports.CallLocator = {
type: {
name: "Composite",
className: "CallLocator",
modelProperties: {
groupCallId: {
serializedName: "groupCallId",
type: {
name: "String",
},
},
serverCallId: {
serializedName: "serverCallId",
type: {
name: "String",
},
},
roomId: {
serializedName: "roomId",
type: {
name: "String",
},
},
kind: {
serializedName: "kind",
type: {
name: "String",
},
},
},
},
};
exports.TransferToParticipantRequest = {
type: {
name: "Composite",
className: "TransferToParticipantRequest",
modelProperties: {
targetParticipant: {
serializedName: "targetParticipant",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
transferee: {
serializedName: "transferee",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
customCallingContext: {
serializedName: "customCallingContext",
type: {
name: "Composite",
className: "CustomCallingContextInternal",
},
},
sourceCallerIdNumber: {
serializedName: "sourceCallerIdNumber",
type: {
name: "Composite",
className: "PhoneNumberIdentifierModel",
},
},
},
},
};
exports.CustomCallingContextInternal = {
type: {
name: "Composite",
className: "CustomCallingContextInternal",
modelProperties: {
voipHeaders: {
serializedName: "voipHeaders",
type: {
name: "Dictionary",
value: { type: { name: "String" } },
},
},
sipHeaders: {
serializedName: "sipHeaders",
type: {
name: "Dictionary",
value: { type: { name: "String" } },
},
},
},
},
};
exports.TransferCallResponse = {
type: {
name: "Composite",
className: "TransferCallResponse",
modelProperties: {
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
},
},
};
exports.PlayRequest = {
type: {
name: "Composite",
className: "PlayRequest",
modelProperties: {
playSources: {
serializedName: "playSources",
required: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PlaySourceInternal",
},
},
},
},
playTo: {
serializedName: "playTo",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
},
},
interruptCallMediaOperation: {
serializedName: "interruptCallMediaOperation",
type: {
name: "Boolean",
},
},
playOptions: {
serializedName: "playOptions",
type: {
name: "Composite",
className: "PlayOptionsInternal",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.PlaySourceInternal = {
type: {
name: "Composite",
className: "PlaySourceInternal",
modelProperties: {
kind: {
serializedName: "kind",
required: true,
type: {
name: "String",
},
},
playSourceCacheId: {
serializedName: "playSourceCacheId",
type: {
name: "String",
},
},
file: {
serializedName: "file",
type: {
name: "Composite",
className: "FileSourceInternal",
},
},
text: {
serializedName: "text",
type: {
name: "Composite",
className: "TextSourceInternal",
},
},
ssml: {
serializedName: "ssml",
type: {
name: "Composite",
className: "SsmlSourceInternal",
},
},
},
},
};
exports.FileSourceInternal = {
type: {
name: "Composite",
className: "FileSourceInternal",
modelProperties: {
uri: {
serializedName: "uri",
required: true,
type: {
name: "String",
},
},
},
},
};
exports.TextSourceInternal = {
type: {
name: "Composite",
className: "TextSourceInternal",
modelProperties: {
text: {
serializedName: "text",
required: true,
type: {
name: "String",
},
},
sourceLocale: {
serializedName: "sourceLocale",
type: {
name: "String",
},
},
voiceKind: {
serializedName: "voiceKind",
type: {
name: "String",
},
},
voiceName: {
serializedName: "voiceName",
type: {
name: "String",
},
},
customVoiceEndpointId: {
serializedName: "customVoiceEndpointId",
type: {
name: "String",
},
},
},
},
};
exports.SsmlSourceInternal = {
type: {
name: "Composite",
className: "SsmlSourceInternal",
modelProperties: {
ssmlText: {
serializedName: "ssmlText",
required: true,
type: {
name: "String",
},
},
customVoiceEndpointId: {
serializedName: "customVoiceEndpointId",
type: {
name: "String",
},
},
},
},
};
exports.PlayOptionsInternal = {
type: {
name: "Composite",
className: "PlayOptionsInternal",
modelProperties: {
loop: {
serializedName: "loop",
required: true,
type: {
name: "Boolean",
},
},
},
},
};
exports.StartTranscriptionRequest = {
type: {
name: "Composite",
className: "StartTranscriptionRequest",
modelProperties: {
locale: {
serializedName: "locale",
type: {
name: "String",
},
},
speechModelEndpointId: {
serializedName: "speechModelEndpointId",
type: {
name: "String",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.StopTranscriptionRequest = {
type: {
name: "Composite",
className: "StopTranscriptionRequest",
modelProperties: {
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.UpdateTranscriptionRequest = {
type: {
name: "Composite",
className: "UpdateTranscriptionRequest",
modelProperties: {
locale: {
serializedName: "locale",
type: {
name: "String",
},
},
speechModelEndpointId: {
serializedName: "speechModelEndpointId",
type: {
name: "String",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.RecognizeRequest = {
type: {
name: "Composite",
className: "RecognizeRequest",
modelProperties: {
recognizeInputType: {
serializedName: "recognizeInputType",
required: true,
type: {
name: "String",
},
},
playPrompt: {
serializedName: "playPrompt",
type: {
name: "Composite",
className: "PlaySourceInternal",
},
},
playPrompts: {
serializedName: "playPrompts",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PlaySourceInternal",
},
},
},
},
interruptCallMediaOperation: {
serializedName: "interruptCallMediaOperation",
type: {
name: "Boolean",
},
},
recognizeOptions: {
serializedName: "recognizeOptions",
type: {
name: "Composite",
className: "RecognizeOptions",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.RecognizeOptions = {
type: {
name: "Composite",
className: "RecognizeOptions",
modelProperties: {
interruptPrompt: {
serializedName: "interruptPrompt",
type: {
name: "Boolean",
},
},
initialSilenceTimeoutInSeconds: {
constraints: {
InclusiveMaximum: 300,
InclusiveMinimum: 0,
},
serializedName: "initialSilenceTimeoutInSeconds",
type: {
name: "Number",
},
},
targetParticipant: {
serializedName: "targetParticipant",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
speechLanguage: {
serializedName: "speechLanguage",
type: {
name: "String",
},
},
speechRecognitionModelEndpointId: {
serializedName: "speechRecognitionModelEndpointId",
type: {
name: "String",
},
},
dtmfOptions: {
serializedName: "dtmfOptions",
type: {
name: "Composite",
className: "DtmfOptions",
},
},
choices: {
serializedName: "choices",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "Choice",
},
},
},
},
speechOptions: {
serializedName: "speechOptions",
type: {
name: "Composite",
className: "SpeechOptions",
},
},
},
},
};
exports.DtmfOptions = {
type: {
name: "Composite",
className: "DtmfOptions",
modelProperties: {
interToneTimeoutInSeconds: {
constraints: {
InclusiveMaximum: 60,
InclusiveMinimum: 1,
},
serializedName: "interToneTimeoutInSeconds",
type: {
name: "Number",
},
},
maxTonesToCollect: {
serializedName: "maxTonesToCollect",
type: {
name: "Number",
},
},
stopTones: {
serializedName: "stopTones",
type: {
name: "Sequence",
element: {
type: {
name: "String",
},
},
},
},
},
},
};
exports.Choice = {
type: {
name: "Composite",
className: "Choice",
modelProperties: {
label: {
serializedName: "label",
required: true,
type: {
name: "String",
},
},
phrases: {
serializedName: "phrases",
required: true,
type: {
name: "Sequence",
element: {
type: {
name: "String",
},
},
},
},
tone: {
serializedName: "tone",
type: {
name: "String",
},
},
},
},
};
exports.SpeechOptions = {
type: {
name: "Composite",
className: "SpeechOptions",
modelProperties: {
endSilenceTimeoutInMs: {
serializedName: "endSilenceTimeoutInMs",
type: {
name: "Number",
},
},
},
},
};
exports.ContinuousDtmfRecognitionRequest = {
type: {
name: "Composite",
className: "ContinuousDtmfRecognitionRequest",
modelProperties: {
targetParticipant: {
serializedName: "targetParticipant",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.SendDtmfTonesRequest = {
type: {
name: "Composite",
className: "SendDtmfTonesRequest",
modelProperties: {
tones: {
serializedName: "tones",
required: true,
type: {
name: "Sequence",
element: {
type: {
name: "String",
},
},
},
},
targetParticipant: {
serializedName: "targetParticipant",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.SendDtmfTonesResult = {
type: {
name: "Composite",
className: "SendDtmfTonesResult",
modelProperties: {
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
},
},
};
exports.HoldRequest = {
type: {
name: "Composite",
className: "HoldRequest",
modelProperties: {
targetParticipant: {
serializedName: "targetParticipant",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
playSourceInfo: {
serializedName: "playSourceInfo",
type: {
name: "Composite",
className: "PlaySourceInternal",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.UnholdRequest = {
type: {
name: "Composite",
className: "UnholdRequest",
modelProperties: {
targetParticipant: {
serializedName: "targetParticipant",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.StartMediaStreamingRequest = {
type: {
name: "Composite",
className: "StartMediaStreamingRequest",
modelProperties: {
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
},
},
};
exports.StopMediaStreamingRequest = {
type: {
name: "Composite",
className: "StopMediaStreamingRequest",
modelProperties: {
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
},
},
};
exports.GetParticipantsResponse = {
type: {
name: "Composite",
className: "GetParticipantsResponse",
modelProperties: {
value: {
serializedName: "value",
required: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "CallParticipantInternal",
},
},
},
},
nextLink: {
serializedName: "nextLink",
type: {
name: "String",
},
},
},
},
};
exports.CallParticipantInternal = {
type: {
name: "Composite",
className: "CallParticipantInternal",
modelProperties: {
identifier: {
serializedName: "identifier",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
isMuted: {
serializedName: "isMuted",
type: {
name: "Boolean",
},
},
isOnHold: {
serializedName: "isOnHold",
type: {
name: "Boolean",
},
},
},
},
};
exports.AddParticipantRequest = {
type: {
name: "Composite",
className: "AddParticipantRequest",
modelProperties: {
sourceCallerIdNumber: {
serializedName: "sourceCallerIdNumber",
type: {
name: "Composite",
className: "PhoneNumberIdentifierModel",
},
},
sourceDisplayName: {
serializedName: "sourceDisplayName",
type: {
name: "String",
},
},
participantToAdd: {
serializedName: "participantToAdd",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
invitationTimeoutInSeconds: {
constraints: {
InclusiveMaximum: 180,
InclusiveMinimum: 0,
},
serializedName: "invitationTimeoutInSeconds",
type: {
name: "Number",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
customCallingContext: {
serializedName: "customCallingContext",
type: {
name: "Composite",
className: "CustomCallingContextInternal",
},
},
},
},
};
exports.AddParticipantResponse = {
type: {
name: "Composite",
className: "AddParticipantResponse",
modelProperties: {
participant: {
serializedName: "participant",
type: {
name: "Composite",
className: "CallParticipantInternal",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
invitationId: {
serializedName: "invitationId",
type: {
name: "String",
},
},
},
},
};
exports.RemoveParticipantRequest = {
type: {
name: "Composite",
className: "RemoveParticipantRequest",
modelProperties: {
participantToRemove: {
serializedName: "participantToRemove",
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
operationCallbackUri: {
serializedName: "operationCallbackUri",
type: {
name: "String",
},
},
},
},
};
exports.RemoveParticipantResponse = {
type: {
name: "Composite",
className: "RemoveParticipantResponse",
modelProperties: {
operationContext: {
serializedName: "operationContext",
type: {
name: "String",
},
},
},
},
};
exports.MuteParticipantsRequest = {
type: {
name: "Composite",
className: "MuteParticipantsRequest",
modelProperties: {
targetParticipants: {
serializedName: "targetParticipants",
required: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "CommunicationIdentifierModel",
},
},
},
},
operationContext: {