@sirhc77/signalwire-rest-sdk
Version:
An SDK for the SignalWire REST API
1,009 lines • 112 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertSWMLAIHintToJSON = convertSWMLAIHintToJSON;
exports.convertJSONToSWMLAIHint = convertJSONToSWMLAIHint;
exports.convertSWMLAILanguageToJSON = convertSWMLAILanguageToJSON;
exports.convertJSONToSWMLAILanguage = convertJSONToSWMLAILanguage;
exports.convertSWMLAIParamsToJSON = convertSWMLAIParamsToJSON;
exports.convertJSONToSWMLAIParams = convertJSONToSWMLAIParams;
exports.convertSWMLAIPromptToJSON = convertSWMLAIPromptToJSON;
exports.convertJSONToSWMLAIPrompt = convertJSONToSWMLAIPrompt;
exports.convertSWMLAIPronounceToJSON = convertSWMLAIPronounceToJSON;
exports.convertJSONToSWMLAIPronounce = convertJSONToSWMLAIPronounce;
exports.convertSWMLSWAIGDefaultsToJSON = convertSWMLSWAIGDefaultsToJSON;
exports.convertJSONToSWMLSWAIGDefaults = convertJSONToSWMLSWAIGDefaults;
exports.convertSWMLSWAIGDataMapOutputSWMLActionToJSON = convertSWMLSWAIGDataMapOutputSWMLActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputSWMLAction = convertJSONToSWMLSWAIGDataMapOutputSWMLAction;
exports.convertSWMLSWAIGDataMapOutputSayActionToJSON = convertSWMLSWAIGDataMapOutputSayActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputSayAction = convertJSONToSWMLSWAIGDataMapOutputSayAction;
exports.convertSWMLSWAIGDataMapOutputStopActionToJSON = convertSWMLSWAIGDataMapOutputStopActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputStopAction = convertJSONToSWMLSWAIGDataMapOutputStopAction;
exports.convertSWMLSWAIGDataMapOutputToggleFunctionToJSON = convertSWMLSWAIGDataMapOutputToggleFunctionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputToggleFunction = convertJSONToSWMLSWAIGDataMapOutputToggleFunction;
exports.convertSWMLSWAIGDataMapOutputToggleFunctionsActionToJSON = convertSWMLSWAIGDataMapOutputToggleFunctionsActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputToggleFunctionsAction = convertJSONToSWMLSWAIGDataMapOutputToggleFunctionsAction;
exports.convertSWMLSWAIGDataMapOutputSetGlobalDataActionToJSON = convertSWMLSWAIGDataMapOutputSetGlobalDataActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputSetGlobalDataAction = convertJSONToSWMLSWAIGDataMapOutputSetGlobalDataAction;
exports.convertSWMLSWAIGDataMapOutputSetMetaDataActionToJSON = convertSWMLSWAIGDataMapOutputSetMetaDataActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputSetMetaDataAction = convertJSONToSWMLSWAIGDataMapOutputSetMetaDataAction;
exports.convertSWMLSWAIGDataMapOutputUnsetGlobalDataActionToJSON = convertSWMLSWAIGDataMapOutputUnsetGlobalDataActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputUnsetGlobalDataAction = convertJSONToSWMLSWAIGDataMapOutputUnsetGlobalDataAction;
exports.convertSWMLSWAIGDataMapOutputUnsetMetaDataActionToJSON = convertSWMLSWAIGDataMapOutputUnsetMetaDataActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputUnsetMetaDataAction = convertJSONToSWMLSWAIGDataMapOutputUnsetMetaDataAction;
exports.convertSWMLSWAIGDataMapOutputPlaybackBGActionToJSON = convertSWMLSWAIGDataMapOutputPlaybackBGActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputPlaybackBGAction = convertJSONToSWMLSWAIGDataMapOutputPlaybackBGAction;
exports.convertSWMLSWAIGDataMapOutputStopPlaybackBGActionToJSON = convertSWMLSWAIGDataMapOutputStopPlaybackBGActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputStopPlaybackBGAction = convertJSONToSWMLSWAIGDataMapOutputStopPlaybackBGAction;
exports.convertSWMLSWAIGDataMapOutputUserInputActionToJSON = convertSWMLSWAIGDataMapOutputUserInputActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputUserInputAction = convertJSONToSWMLSWAIGDataMapOutputUserInputAction;
exports.convertSWMLSWAIGDataMapOutputContextSwitchActionToJSON = convertSWMLSWAIGDataMapOutputContextSwitchActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputContextSwitchAction = convertJSONToSWMLSWAIGDataMapOutputContextSwitchAction;
exports.convertSWMLSWAIGDataMapOutputActionToJSON = convertSWMLSWAIGDataMapOutputActionToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutputAction = convertJSONToSWMLSWAIGDataMapOutputAction;
exports.convertSWMLSWAIGDataMapOutputToJSON = convertSWMLSWAIGDataMapOutputToJSON;
exports.convertJSONToSWMLSWAIGDataMapOutput = convertJSONToSWMLSWAIGDataMapOutput;
exports.convertSWMLSWAIGDataMapExpressionToJSON = convertSWMLSWAIGDataMapExpressionToJSON;
exports.convertJSONToSWMLSWAIGDataMapExpression = convertJSONToSWMLSWAIGDataMapExpression;
exports.convertSWMLSWAIGDataMapWebhookForeachToJSON = convertSWMLSWAIGDataMapWebhookForeachToJSON;
exports.convertJSONToSWMLSWAIGDataMapWebhookForeach = convertJSONToSWMLSWAIGDataMapWebhookForeach;
exports.convertSWMLSWAIGDataMapWebhookToJSON = convertSWMLSWAIGDataMapWebhookToJSON;
exports.convertJSONToSWMLSWAIGDataMapWebhook = convertJSONToSWMLSWAIGDataMapWebhook;
exports.convertSWMLSWAIGDataMapToJSON = convertSWMLSWAIGDataMapToJSON;
exports.convertJSONToSWMLSWAIGDataMap = convertJSONToSWMLSWAIGDataMap;
exports.convertSWMLSWAIGFunctionParameterStringPropertyToJSON = convertSWMLSWAIGFunctionParameterStringPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterStringProperty = convertJSONToSWMLSWAIGFunctionParameterStringProperty;
exports.convertSWMLSWAIGFunctionParameterIntegerPropertyToJSON = convertSWMLSWAIGFunctionParameterIntegerPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterIntegerProperty = convertJSONToSWMLSWAIGFunctionParameterIntegerProperty;
exports.convertSWMLSWAIGFunctionParameterNumberPropertyToJSON = convertSWMLSWAIGFunctionParameterNumberPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterNumberProperty = convertJSONToSWMLSWAIGFunctionParameterNumberProperty;
exports.convertSWMLSWAIGFunctionParameterBooleanPropertyToJSON = convertSWMLSWAIGFunctionParameterBooleanPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterBooleanProperty = convertJSONToSWMLSWAIGFunctionParameterBooleanProperty;
exports.convertSWMLSWAIGFunctionParameterArrayPropertyToJSON = convertSWMLSWAIGFunctionParameterArrayPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterArrayProperty = convertJSONToSWMLSWAIGFunctionParameterArrayProperty;
exports.convertSWMLSWAIGFunctionParameterPropertiesToJSON = convertSWMLSWAIGFunctionParameterPropertiesToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterProperties = convertJSONToSWMLSWAIGFunctionParameterProperties;
exports.convertSWMLSWAIGFunctionParameterObjectPropertyToJSON = convertSWMLSWAIGFunctionParameterObjectPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterObjectProperty = convertJSONToSWMLSWAIGFunctionParameterObjectProperty;
exports.convertSWMLSWAIGFunctionParameterOneOfPropertyToJSON = convertSWMLSWAIGFunctionParameterOneOfPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterOneOfProperty = convertJSONToSWMLSWAIGFunctionParameterOneOfProperty;
exports.convertSWMLSWAIGFunctionParameterAllOfPropertyToJSON = convertSWMLSWAIGFunctionParameterAllOfPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterAllOfProperty = convertJSONToSWMLSWAIGFunctionParameterAllOfProperty;
exports.convertSWMLSWAIGFunctionParameterAnyOfPropertyToJSON = convertSWMLSWAIGFunctionParameterAnyOfPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterAnyOfProperty = convertJSONToSWMLSWAIGFunctionParameterAnyOfProperty;
exports.convertSWMLSWAIGFunctionParameterConstPropertyToJSON = convertSWMLSWAIGFunctionParameterConstPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterConstProperty = convertJSONToSWMLSWAIGFunctionParameterConstProperty;
exports.convertSWMLSWAIGFunctionParameterPropertyToJSON = convertSWMLSWAIGFunctionParameterPropertyToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameterProperty = convertJSONToSWMLSWAIGFunctionParameterProperty;
exports.convertSWMLSWAIGFunctionParametersToJSON = convertSWMLSWAIGFunctionParametersToJSON;
exports.convertJSONToSWMLSWAIGFunctionParameters = convertJSONToSWMLSWAIGFunctionParameters;
exports.convertSWMLSWAIGFunctionFillersToJSON = convertSWMLSWAIGFunctionFillersToJSON;
exports.convertJSONToSWMLSWAIGFunctionFillers = convertJSONToSWMLSWAIGFunctionFillers;
exports.convertSWMLSWAIGFunctionToJSON = convertSWMLSWAIGFunctionToJSON;
exports.convertJSONToSWMLSWAIGFunction = convertJSONToSWMLSWAIGFunction;
exports.convertSWMLSWAIGIncludeToJSON = convertSWMLSWAIGIncludeToJSON;
exports.convertJSONToSWMLSWAIGInclude = convertJSONToSWMLSWAIGInclude;
exports.convertSWMLSWAIGVisualInputFillerToJSON = convertSWMLSWAIGVisualInputFillerToJSON;
exports.convertJSONToSWMLSWAIGVisualInputFiller = convertJSONToSWMLSWAIGVisualInputFiller;
exports.convertSWMLSWAIGInternalFillerToJSON = convertSWMLSWAIGInternalFillerToJSON;
exports.convertJSONToSWMLSWAIGInternalFiller = convertJSONToSWMLSWAIGInternalFiller;
exports.convertSWMLSWAIGToJSON = convertSWMLSWAIGToJSON;
exports.convertJSONToSWMLSWAIG = convertJSONToSWMLSWAIG;
exports.convertSWMLAIHintsToJSON = convertSWMLAIHintsToJSON;
exports.convertJSONToSWMLAIHints = convertJSONToSWMLAIHints;
exports.convertSWMLAIParametersToJSON = convertSWMLAIParametersToJSON;
exports.convertJSONToSWMLAIParameters = convertJSONToSWMLAIParameters;
exports.convertSWMLAIMethodToJSON = convertSWMLAIMethodToJSON;
exports.convertJSONToSWMLAIMethod = convertJSONToSWMLAIMethod;
exports.convertSWMLAnswerParametersToJSON = convertSWMLAnswerParametersToJSON;
exports.convertJSONToSWMLAnswerParameters = convertJSONToSWMLAnswerParameters;
exports.convertSWMLAnswerMethodToJSON = convertSWMLAnswerMethodToJSON;
exports.convertJSONToSWMLAnswerMethod = convertJSONToSWMLAnswerMethod;
exports.convertSWMLCondWhenThenParametersToJSON = convertSWMLCondWhenThenParametersToJSON;
exports.convertJSONToSWMLCondWhenThenParameters = convertJSONToSWMLCondWhenThenParameters;
exports.convertSWMLCondElseParametersToJSON = convertSWMLCondElseParametersToJSON;
exports.convertJSONToSWMLCondElseParameters = convertJSONToSWMLCondElseParameters;
exports.convertSWMLCondParametersToJSON = convertSWMLCondParametersToJSON;
exports.convertJSONToSWMLCondParameters = convertJSONToSWMLCondParameters;
exports.convertSWMLCondMethodToJSON = convertSWMLCondMethodToJSON;
exports.convertJSONToSWMLCondMethod = convertJSONToSWMLCondMethod;
exports.convertSWMLConnectHeaderToJSON = convertSWMLConnectHeaderToJSON;
exports.convertJSONToSWMLConnectHeader = convertJSONToSWMLConnectHeader;
exports.convertSWMLConnectToDialingParameterToJSONObject = convertSWMLConnectToDialingParameterToJSONObject;
exports.convertToParameterToSWMLConnectToDialingParameter = convertToParameterToSWMLConnectToDialingParameter;
exports.convertSWMLConnectDestinationToJSON = convertSWMLConnectDestinationToJSON;
exports.convertJSONToSWMLConnectDestination = convertJSONToSWMLConnectDestination;
exports.convertSWMLConnectSerialDialingParameterToJSONObject = convertSWMLConnectSerialDialingParameterToJSONObject;
exports.convertJSONObjectToSWMLConnectSerialDialingParameter = convertJSONObjectToSWMLConnectSerialDialingParameter;
exports.convertSWMLConnectParallelDialingParameterToJSONObject = convertSWMLConnectParallelDialingParameterToJSONObject;
exports.convertJSONObjectToSWMLConnectParallelDialingParameter = convertJSONObjectToSWMLConnectParallelDialingParameter;
exports.convertSWMLConnectSerialParallelDialingParameterToJSONObject = convertSWMLConnectSerialParallelDialingParameterToJSONObject;
exports.convertJSONObjectToSWMLConnectSerialParallelDialingParameter = convertJSONObjectToSWMLConnectSerialParallelDialingParameter;
exports.convertSWMLConnectDialingParameterToJSONObject = convertSWMLConnectDialingParameterToJSONObject;
exports.convertJSONObjectToSWMLConnectDialingParameter = convertJSONObjectToSWMLConnectDialingParameter;
exports.convertSWMLConnectParametersToJSON = convertSWMLConnectParametersToJSON;
exports.convertJSONToSWMLConnectParameters = convertJSONToSWMLConnectParameters;
exports.convertSWMLConnectMethodToJSON = convertSWMLConnectMethodToJSON;
exports.convertJSONToSWMLConnectMethod = convertJSONToSWMLConnectMethod;
exports.convertSWMLDenoiseMethodToJSON = convertSWMLDenoiseMethodToJSON;
exports.convertJSONToSWMLDenoiseMethod = convertJSONToSWMLDenoiseMethod;
exports.convertSWMLDetectMachineParametersToJSON = convertSWMLDetectMachineParametersToJSON;
exports.convertJSONToSWMLDetectMachineParameters = convertJSONToSWMLDetectMachineParameters;
exports.convertSWMLDetectMachineMethodToJSON = convertSWMLDetectMachineMethodToJSON;
exports.convertJSONToSWMLDetectMachineMethod = convertJSONToSWMLDetectMachineMethod;
exports.convertSWMLExecuteParametersToJSON = convertSWMLExecuteParametersToJSON;
exports.convertJSONToSWMLExecuteParameters = convertJSONToSWMLExecuteParameters;
exports.convertSWMLExecuteMethodToJSON = convertSWMLExecuteMethodToJSON;
exports.convertJSONToSWMLExecuteMethod = convertJSONToSWMLExecuteMethod;
exports.convertSWMLGotoParametersToJSON = convertSWMLGotoParametersToJSON;
exports.convertJSONToSWMLGotoParameters = convertJSONToSWMLGotoParameters;
exports.convertSWMLGotoMethodToJSON = convertSWMLGotoMethodToJSON;
exports.convertJSONToSWMLGotoMethod = convertJSONToSWMLGotoMethod;
exports.convertSWMLHangupParametersToJSON = convertSWMLHangupParametersToJSON;
exports.convertJSONToSWMLHangupParameters = convertJSONToSWMLHangupParameters;
exports.convertSWMLHangupMethodToJSON = convertSWMLHangupMethodToJSON;
exports.convertJSONToSWMLHangupMethod = convertJSONToSWMLHangupMethod;
exports.convertSWMLJoinRoomParametersToJSON = convertSWMLJoinRoomParametersToJSON;
exports.convertJSONToSWMLJoinRoomParameters = convertJSONToSWMLJoinRoomParameters;
exports.convertSWMLJoinRoomMethodToJSON = convertSWMLJoinRoomMethodToJSON;
exports.convertJSONToSWMLJoinRoomMethod = convertJSONToSWMLJoinRoomMethod;
exports.convertSWMLLabelMethodToJSON = convertSWMLLabelMethodToJSON;
exports.convertJSONToSWMLLabelMethod = convertJSONToSWMLLabelMethod;
exports.convertSWMLLiveTranscribeStartActionToJSON = convertSWMLLiveTranscribeStartActionToJSON;
exports.convertJSONToSWMLLiveTranscribeStartAction = convertJSONToSWMLLiveTranscribeStartAction;
exports.convertSWMLLiveTranscribeStopActionToJSON = convertSWMLLiveTranscribeStopActionToJSON;
exports.convertJSONToSWMLLiveTranscribeStopAction = convertJSONToSWMLLiveTranscribeStopAction;
exports.convertSWMLLiveTranscribeSummarizeActionToJSON = convertSWMLLiveTranscribeSummarizeActionToJSON;
exports.convertJSONToSWMLLiveTranscribeSummarizeAction = convertJSONToSWMLLiveTranscribeSummarizeAction;
exports.convertSWMLLiveTranscribeActionToJSON = convertSWMLLiveTranscribeActionToJSON;
exports.convertJSONToSWMLLiveTranscribeAction = convertJSONToSWMLLiveTranscribeAction;
exports.convertSWMLLiveTranscribeParametersToJSON = convertSWMLLiveTranscribeParametersToJSON;
exports.convertJSONToSWMLLiveTranscribeParameters = convertJSONToSWMLLiveTranscribeParameters;
exports.convertSWMLLiveTranscribeMethodToJSON = convertSWMLLiveTranscribeMethodToJSON;
exports.convertJSONToSWMLLiveTranscribeMethod = convertJSONToSWMLLiveTranscribeMethod;
exports.convertSWMLLiveTranslateStartActionToJSON = convertSWMLLiveTranslateStartActionToJSON;
exports.convertJSONToSWMLLiveTranslateStartAction = convertJSONToSWMLLiveTranslateStartAction;
exports.convertSWMLLiveTranslateStopActionToJSON = convertSWMLLiveTranslateStopActionToJSON;
exports.convertJSONToSWMLLiveTranslateStopAction = convertJSONToSWMLLiveTranslateStopAction;
exports.convertSWMLLiveTranslateSummarizeActionToJSON = convertSWMLLiveTranslateSummarizeActionToJSON;
exports.convertJSONToSWMLLiveTranslateSummarizeAction = convertJSONToSWMLLiveTranslateSummarizeAction;
exports.convertSWMLLiveTranslateInjectActionToJSON = convertSWMLLiveTranslateInjectActionToJSON;
exports.convertJSONToSWMLLiveTranslateInjectAction = convertJSONToSWMLLiveTranslateInjectAction;
exports.convertSWMLLiveTranslateActionToJSON = convertSWMLLiveTranslateActionToJSON;
exports.convertJSONToSWMLLiveTranslateAction = convertJSONToSWMLLiveTranslateAction;
exports.convertSWMLLiveTranslateParametersToJSON = convertSWMLLiveTranslateParametersToJSON;
exports.convertJSONToSWMLLiveTranslateParameters = convertJSONToSWMLLiveTranslateParameters;
exports.convertSWMLLiveTranslateMethodToJSON = convertSWMLLiveTranslateMethodToJSON;
exports.convertJSONToSWMLLiveTranslateMethod = convertJSONToSWMLLiveTranslateMethod;
exports.convertSWMLPayParameterToJSON = convertSWMLPayParameterToJSON;
exports.convertJSONToSWMLPayParameter = convertJSONToSWMLPayParameter;
exports.convertSWMLPayPromptActionToJSON = convertSWMLPayPromptActionToJSON;
exports.convertJSONToSWMLPayPromptAction = convertJSONToSWMLPayPromptAction;
exports.convertSWMLPayPromptToJSON = convertSWMLPayPromptToJSON;
exports.convertJSONToSWMLPayPrompt = convertJSONToSWMLPayPrompt;
exports.convertSWMLPayParametersToJSON = convertSWMLPayParametersToJSON;
exports.convertJSONToSWMLPayParameters = convertJSONToSWMLPayParameters;
exports.convertSWMLPayMethodToJSON = convertSWMLPayMethodToJSON;
exports.convertJSONToSWMLPayMethod = convertJSONToSWMLPayMethod;
exports.convertSWMLPlayUrlToJSONObject = convertSWMLPlayUrlToJSONObject;
exports.convertJSONObjectToSWMLPlayUrl = convertJSONObjectToSWMLPlayUrl;
exports.convertSWMLPlayUrlsToJSONObject = convertSWMLPlayUrlsToJSONObject;
exports.convertJSONObjectToSWMLPlayUrls = convertJSONObjectToSWMLPlayUrls;
exports.convertSWMLPlayableSoundToJSONObject = convertSWMLPlayableSoundToJSONObject;
exports.convertJSONObjectToSWMLPlayableSound = convertJSONObjectToSWMLPlayableSound;
exports.convertSWMLPlayParametersToJSON = convertSWMLPlayParametersToJSON;
exports.convertJSONToSWMLPlayParameters = convertJSONToSWMLPlayParameters;
exports.convertSWMLPlayMethodToJSON = convertSWMLPlayMethodToJSON;
exports.convertJSONToSWMLPlayMethod = convertJSONToSWMLPlayMethod;
exports.convertSWMLPromptParametersToJSON = convertSWMLPromptParametersToJSON;
exports.convertJSONToSWMLPromptParameters = convertJSONToSWMLPromptParameters;
exports.convertSWMLPromptMethodToJSON = convertSWMLPromptMethodToJSON;
exports.convertJSONToSWMLPromptMethod = convertJSONToSWMLPromptMethod;
exports.convertSWMLReceiveFaxParametersToJSON = convertSWMLReceiveFaxParametersToJSON;
exports.convertJSONToSWMLReceiveFaxParameters = convertJSONToSWMLReceiveFaxParameters;
exports.convertSWMLReceiveFaxMethodToJSON = convertSWMLReceiveFaxMethodToJSON;
exports.convertJSONToSWMLReceiveFaxMethod = convertJSONToSWMLReceiveFaxMethod;
exports.convertSWMLRecordParametersToJSON = convertSWMLRecordParametersToJSON;
exports.convertJSONToSWMLRecordParameters = convertJSONToSWMLRecordParameters;
exports.convertSWMLRecordMethodToJSON = convertSWMLRecordMethodToJSON;
exports.convertJSONToSWMLRecordMethod = convertJSONToSWMLRecordMethod;
exports.convertSWMLRecordCallParametersToJSON = convertSWMLRecordCallParametersToJSON;
exports.convertJSONToSWMLRecordCallParameters = convertJSONToSWMLRecordCallParameters;
exports.convertSWMLRecordCallMethodToJSON = convertSWMLRecordCallMethodToJSON;
exports.convertJSONToSWMLRecordCallMethod = convertJSONToSWMLRecordCallMethod;
exports.convertSWMLRequestParametersToJSON = convertSWMLRequestParametersToJSON;
exports.convertJSONToSWMLRequestParameters = convertJSONToSWMLRequestParameters;
exports.convertSWMLRequestMethodToJSON = convertSWMLRequestMethodToJSON;
exports.convertJSONToSWMLRequestMethod = convertJSONToSWMLRequestMethod;
exports.convertSWMLReturnMethodToJSON = convertSWMLReturnMethodToJSON;
exports.convertJSONToSWMLReturnMethod = convertJSONToSWMLReturnMethod;
exports.convertSWMLSendDigitsParametersToJSON = convertSWMLSendDigitsParametersToJSON;
exports.convertJSONToSWMLSendDigitsParameters = convertJSONToSWMLSendDigitsParameters;
exports.convertSWMLSendDigitsMethodToJSON = convertSWMLSendDigitsMethodToJSON;
exports.convertJSONToSWMLSendDigitsMethod = convertJSONToSWMLSendDigitsMethod;
exports.convertSWMLSendFaxParametersToJSON = convertSWMLSendFaxParametersToJSON;
exports.convertJSONToSWMLSendFaxParameters = convertJSONToSWMLSendFaxParameters;
exports.convertSWMLSendFaxMethodToJSON = convertSWMLSendFaxMethodToJSON;
exports.convertJSONToSWMLSendFaxMethod = convertJSONToSWMLSendFaxMethod;
exports.convertSWMLSendSMSMessageParametersToJSON = convertSWMLSendSMSMessageParametersToJSON;
exports.convertJSONToSWMLSendSMSMessageParameters = convertJSONToSWMLSendSMSMessageParameters;
exports.convertSWMLSendMMSMessageParametersToJSON = convertSWMLSendMMSMessageParametersToJSON;
exports.convertJSONToSWMLSendMMSMessageParameters = convertJSONToSWMLSendMMSMessageParameters;
exports.convertSWMLSendSMSParametersToJSON = convertSWMLSendSMSParametersToJSON;
exports.convertJSONToSWMLSendSMSParameters = convertJSONToSWMLSendSMSParameters;
exports.convertSWMLSendSMSMethodToJSON = convertSWMLSendSMSMethodToJSON;
exports.convertJSONToSWMLSendSMSMethod = convertJSONToSWMLSendSMSMethod;
exports.convertSWMLSetMethodToJSON = convertSWMLSetMethodToJSON;
exports.convertJSONToSWMLSetMethod = convertJSONToSWMLSetMethod;
exports.convertSWMLSIPReferParametersToJSON = convertSWMLSIPReferParametersToJSON;
exports.convertJSONToSWMLSIPReferParameters = convertJSONToSWMLSIPReferParameters;
exports.convertSWMLSIPReferMethodToJSON = convertSWMLSIPReferMethodToJSON;
exports.convertJSONToSWMLSIPReferMethod = convertJSONToSWMLSIPReferMethod;
exports.convertSWMLSleepParametersToJSON = convertSWMLSleepParametersToJSON;
exports.convertJSONToSWMLSleepParameters = convertJSONToSWMLSleepParameters;
exports.convertSWMLSleepMethodToJSON = convertSWMLSleepMethodToJSON;
exports.convertJSONToSWMLSleepMethod = convertJSONToSWMLSleepMethod;
exports.convertSWMLStopDenoiseMethodToJSON = convertSWMLStopDenoiseMethodToJSON;
exports.convertJSONToSWMLStopDenoiseMethod = convertJSONToSWMLStopDenoiseMethod;
exports.convertSWMLStopRecordCallParametersToJSON = convertSWMLStopRecordCallParametersToJSON;
exports.convertJSONToSWMLStopRecordCallParameters = convertJSONToSWMLStopRecordCallParameters;
exports.convertSWMLStopRecordCallMethodToJSON = convertSWMLStopRecordCallMethodToJSON;
exports.convertJSONToSWMLStopRecordCallMethod = convertJSONToSWMLStopRecordCallMethod;
exports.convertSWMLStopTapParametersToJSON = convertSWMLStopTapParametersToJSON;
exports.convertJSONToSWMLStopTapParameters = convertJSONToSWMLStopTapParameters;
exports.convertSWMLStopTapMethodToJSON = convertSWMLStopTapMethodToJSON;
exports.convertJSONToSWMLStopTapMethod = convertJSONToSWMLStopTapMethod;
exports.convertSWMLSwitchCaseParametersToJSON = convertSWMLSwitchCaseParametersToJSON;
exports.convertJSONToSWMLSwitchCaseParameters = convertJSONToSWMLSwitchCaseParameters;
exports.convertSWMLSwitchParametersToJSON = convertSWMLSwitchParametersToJSON;
exports.convertJSONToSWMLSwitchParameters = convertJSONToSWMLSwitchParameters;
exports.convertSWMLSwitchMethodToJSON = convertSWMLSwitchMethodToJSON;
exports.convertJSONToSWMLSwitchMethod = convertJSONToSWMLSwitchMethod;
exports.convertSWMLTapParametersToJSON = convertSWMLTapParametersToJSON;
exports.convertJSONToSWMLTapParameters = convertJSONToSWMLTapParameters;
exports.convertSWMLTapMethodToJSON = convertSWMLTapMethodToJSON;
exports.convertJSONToSWMLTapMethod = convertJSONToSWMLTapMethod;
exports.convertSWMLTransferParametersToJSON = convertSWMLTransferParametersToJSON;
exports.convertJSONToSWMLTransferParameters = convertJSONToSWMLTransferParameters;
exports.convertSWMLTransferMethodToJSON = convertSWMLTransferMethodToJSON;
exports.convertJSONToSWMLTransferMethod = convertJSONToSWMLTransferMethod;
exports.convertSWMLUnsetParametersToJSON = convertSWMLUnsetParametersToJSON;
exports.convertJSONToSWMLUnsetParameters = convertJSONToSWMLUnsetParameters;
exports.convertSWMLUnsetMethodToJSON = convertSWMLUnsetMethodToJSON;
exports.convertJSONToSWMLUnsetMethod = convertJSONToSWMLUnsetMethod;
exports.convertSWMLUserEventParametersToJSON = convertSWMLUserEventParametersToJSON;
exports.convertJSONToSWMLUserEventParameters = convertJSONToSWMLUserEventParameters;
exports.convertSWMLUserEventMethodToJSON = convertSWMLUserEventMethodToJSON;
exports.convertJSONToSWMLUserEventMethod = convertJSONToSWMLUserEventMethod;
exports.convertSWMLMethodToJSON = convertSWMLMethodToJSON;
exports.convertJSONToSWMLMethod = convertJSONToSWMLMethod;
exports.convertSWMLToJSON = convertSWMLToJSON;
exports.convertJSONToSWML = convertJSONToSWML;
function convertSWMLAIHintToJSON(hint) {
return {
hint: hint.hint,
pattern: hint.pattern,
replace: hint.replace,
ignore_case: hint.ignoreCase
};
}
function convertJSONToSWMLAIHint(json) {
return {
hint: json.hint,
pattern: json.pattern,
replace: json.replace,
ignoreCase: json.ignore_case
};
}
function convertSWMLAILanguageToJSON(language) {
return {
name: language.name,
code: language.code,
voice: language.voice,
emotion: language.emotion,
function_fillers: language.functionFillers,
model: language.model,
speech_fillers: language.speechFillers,
speed: language.speed
};
}
function convertJSONToSWMLAILanguage(json) {
return {
name: json.name,
code: json.code,
voice: json.voice,
emotion: json.emotion,
functionFillers: json.function_fillers,
model: json.model,
speechFillers: json.speech_fillers,
speed: json.speed
};
}
function convertSWMLAIParamsToJSON(params) {
var _a;
if (params === undefined) {
return undefined;
}
return {
ai_model: params.aiModel,
conscience: params.conscience,
thinking_model: params.thinkingModel,
vision_model: params.visionModel,
enable_thinking: params.enableThinking,
enable_vision: params.enableVision,
wait_for_user: params.waitForUser,
direction: params.direction,
conversation_id: params.conversationId,
local_tz: params.localTZ,
save_conversation: params.saveConversation,
transfer_summary: params.transferSummary,
languages_enabled: params.languagesEnabled,
conversation_sliding_window: params.conversationSlidingWindow,
summary_mode: params.summaryMode,
asr_diarize: params.asrDiarize,
asr_speaker_affinity: params.asrSpeakerAffinity,
asr_smart_format: params.asrSmartFormat,
openai_asr_engine: params.openAiAsrEngine,
energy_level: params.energyLevel,
llm_diarize_aware: params.llmDiarizeAware,
end_of_speech_timeout: params.endOfSpeechTimeout,
first_word_timeout: params.firstWordTimeout,
ai_volume: params.aiVolume,
tts_number_format: params.ttsNumberFormat,
eleven_labs_similarity: params.elevenLabsSimilarity,
video_talking_file: params.videoTalkingFile,
video_idle_file: params.videoIdleFile,
video_listening_file: params.videoListeningFile,
max_emotion: params.maxEmotion,
speech_gen_quick_stops: params.speechGenQuickStops,
acknowledge_interruptions: params.acknowledgeInterruptions,
enable_barge: params.enableBarge,
transparent_barge: params.transparentBarge,
barge_match_string: params.bargeMatchString,
barge_min_words: params.bargeMinWords,
interrupt_on_noise: params.interruptOnNoise,
interrupt_prompt: params.interruptPrompt,
barge_functions: params.bargeFunctions,
transparent_barge_max_time: params.transparentBargeMaxTime,
attention_timeout: params.attentionTimeout,
attention_timeout_prompt: params.attentionTimeoutPrompt,
inactivity_timeout: params.inactivityTimeout,
outbound_attention_timeout: params.outboundAttentionTimeout,
initial_sleep_ms: params.initialSleepMS,
speech_event_timeout: params.speechEventTimeout,
digit_timeout: params.digitTimeout,
hard_stop_time: params.hardStopTime,
hard_stop_prompt: params.hardStopPrompt,
speech_timeout: params.speechTimeout,
background_file: params.backgroundFile,
background_file_loops: params.backgroundFileLoops,
background_file_volume: params.backgroundFileVolume,
hold_music: params.holdMusic,
hold_on_process: params.holdOnProcess,
static_greeting: params.staticGreeting,
static_greeting_no_barge: params.staticGreetingNoBarge,
swaig_allow_swml: params.swaigAllowSWML,
swaig_allow_settings: params.swaigAllowSettings,
swaig_post_conversation: params.swaigPostConversation,
function_wait_for_talking: params.functionWaitForTalking,
swaig_set_global_data: params.swaigSetGlobalData,
functions_on_no_response: params.functionsOnNoResponse,
digit_terminators: (_a = params.digitTerminators) === null || _a === void 0 ? void 0 : _a.join(''),
input_poll_freq: params.inputPollFreq,
debug_webhook_url: params.debugWebhookUrl,
debug_webhook_level: params.debugWebhookLevel,
audible_debug: params.audibleDebug,
verbose_logs: params.verboseLogs,
cache_mode: params.cacheMode,
enable_accounting: params.enableAccounting,
audible_latency: params.audibleLatency,
};
}
function convertJSONToSWMLAIParams(json) {
var _a;
return {
aiModel: json.ai_model,
conscience: json.conscience,
thinkingModel: json.thinking_model,
visionModel: json.vision_model,
enableThinking: json.enable_thinking,
enableVision: json.enable_vision,
waitForUser: json.wait_for_user,
direction: json.direction,
conversationId: json.conversation_id,
localTZ: json.local_tz,
saveConversation: json.save_conversation,
transferSummary: json.transfer_summary,
languagesEnabled: json.languages_enabled,
conversationSlidingWindow: json.conversation_sliding_window,
summaryMode: json.summary_mode,
asrDiarize: json.asr_diarize,
asrSpeakerAffinity: json.asr_speaker_affinity,
asrSmartFormat: json.asr_smart_format,
openAiAsrEngine: json.openai_asr_engine,
energyLevel: json.energy_level,
llmDiarizeAware: json.llm_diarize_aware,
endOfSpeechTimeout: json.end_of_speech_timeout,
firstWordTimeout: json.first_word_timeout,
aiVolume: json.ai_volume,
ttsNumberFormat: json.tts_number_format,
elevenLabsStability: json.eleven_labs_stability,
elevenLabsSimilarity: json.eleven_labs_similarity,
videoTalkingFile: json.video_talking_file,
videoIdleFile: json.video_idle_file,
videoListeningFile: json.video_listening_file,
maxEmotion: json.max_emotion,
speechGenQuickStops: json.speech_gen_quick_stops,
acknowledgeInterruptions: json.acknowledge_interruptions,
enableBarge: json.enable_barge,
transparentBarge: json.transparent_barge,
bargeMatchString: json.barge_match_string,
bargeMinWords: json.barge_min_words,
interruptOnNoise: json.interrupt_on_noise,
interruptPrompt: json.interrupt_prompt,
bargeFunctions: json.barge_functions,
transparentBargeMaxTime: json.transparent_barge_max_time,
attentionTimeout: json.attention_timeout,
attentionTimeoutPrompt: json.attention_timeout_prompt,
inactivityTimeout: json.inactivity_timeout,
outboundAttentionTimeout: json.outbound_attention_timeout,
initialSleepMS: json.initial_sleep_ms,
speechEventTimeout: json.speech_event_timeout,
digitTimeout: json.digit_timeout,
hardStopTime: json.hard_stop_time,
hardStopPrompt: json.hard_stop_prompt,
speechTimeout: json.speech_timeout,
backgroundFile: json.background_file,
backgroundFileLoops: json.background_file_loops,
backgroundFileVolume: json.background_file_volume,
holdMusic: json.hold_music,
holdOnProcess: json.hold_on_process,
staticGreeting: json.static_greeting,
staticGreetingNoBarge: json.static_greeting_no_barge,
swaigAllowSWML: json.swaig_allow_swml,
swaigAllowSettings: json.swaig_allow_settings,
swaigPostConversation: json.swaig_post_conversation,
functionWaitForTalking: json.function_wait_for_talking,
swaigSetGlobalData: json.swaig_set_global_data,
functionsOnNoResponse: json.functions_on_no_response,
digitTerminators: (_a = json.digit_terminators) === null || _a === void 0 ? void 0 : _a.split(''),
inputPollFreq: json.input_poll_freq,
debugWebhookUrl: json.debug_webhook_url,
debugWebhookLevel: json.debug_webhook_level,
audibleDebug: json.audible_debug,
verboseLogs: json.verbose_logs,
cacheMode: json.cache_mode,
enableAccounting: json.enable_accounting,
audibleLatency: json.audible_latency,
};
}
function convertSWMLAIPromptToJSON(prompt) {
if (prompt === undefined) {
return undefined;
}
return {
text: prompt.text,
temperature: prompt.temperature,
top_p: prompt.topP,
confidence: prompt.confidence,
presence_penalty: prompt.presencePenalty,
frequency_penalty: prompt.frequencyPenalty
};
}
function convertJSONToSWMLAIPrompt(json) {
if (json === undefined) {
return undefined;
}
return {
text: json.text,
temperature: json.temperature,
topP: json.top_p,
confidence: json.confidence,
presencePenalty: json.presence_penalty,
frequencyPenalty: json.frequency_penalty
};
}
function convertSWMLAIPronounceToJSON(pronounce) {
return {
replace: pronounce.replace,
with: pronounce.with,
ignore_case: pronounce.ignoreCase
};
}
function convertJSONToSWMLAIPronounce(json) {
return {
replace: json.replace,
with: json.with,
ignoreCase: json.ignore_case
};
}
function convertSWMLSWAIGDefaultsToJSON(defaults) {
if (defaults === undefined) {
return undefined;
}
return {
webHookUrl: defaults.webHookUrl
};
}
function convertJSONToSWMLSWAIGDefaults(json) {
if (json === undefined) {
return undefined;
}
return {
webHookUrl: json.web_hook_url
};
}
function convertSWMLSWAIGDataMapOutputSWMLActionToJSON(action) {
return {
SWML: convertSWMLToJSON(action.SWML),
};
}
function convertJSONToSWMLSWAIGDataMapOutputSWMLAction(json) {
return {
type: 'swml',
SWML: convertJSONToSWML(json.SWML)
};
}
function convertSWMLSWAIGDataMapOutputSayActionToJSON(action) {
return {
say: action.say,
};
}
function convertJSONToSWMLSWAIGDataMapOutputSayAction(json) {
return {
type: 'say',
say: json.say
};
}
function convertSWMLSWAIGDataMapOutputStopActionToJSON(action) {
return {
stop: action.stop,
};
}
function convertJSONToSWMLSWAIGDataMapOutputStopAction(json) {
return {
type: 'stop',
stop: json.stop
};
}
function convertSWMLSWAIGDataMapOutputToggleFunctionToJSON(toggleFunction) {
return {
active: toggleFunction.active,
function: toggleFunction.function,
};
}
function convertJSONToSWMLSWAIGDataMapOutputToggleFunction(json) {
return {
active: json.active,
function: json.function,
};
}
function convertSWMLSWAIGDataMapOutputToggleFunctionsActionToJSON(toggleFunctionsAction) {
return {
toggle_functions: toggleFunctionsAction.toggleFunctions.map(convertSWMLSWAIGDataMapOutputToggleFunctionToJSON),
};
}
function convertJSONToSWMLSWAIGDataMapOutputToggleFunctionsAction(json) {
return {
type: 'toggleFunctions',
toggleFunctions: json.toggle_functions.map(convertJSONToSWMLSWAIGDataMapOutputToggleFunction)
};
}
function convertSWMLSWAIGDataMapOutputSetGlobalDataActionToJSON(action) {
return {
set_global_data: action.setGlobalData,
};
}
function convertJSONToSWMLSWAIGDataMapOutputSetGlobalDataAction(json) {
return {
type: 'setGlobalData',
setGlobalData: json.set_global_data
};
}
function convertSWMLSWAIGDataMapOutputSetMetaDataActionToJSON(action) {
return {
set_meta_data: action.setMetaData,
};
}
function convertJSONToSWMLSWAIGDataMapOutputSetMetaDataAction(json) {
return {
type: 'setMetaData',
setMetaData: json.set_meta_data
};
}
function convertSWMLSWAIGDataMapOutputUnsetGlobalDataActionToJSON(action) {
return {
unset_global_data: action.unsetGlobalData
};
}
function convertJSONToSWMLSWAIGDataMapOutputUnsetGlobalDataAction(json) {
return {
type: 'unsetGlobalData',
unsetGlobalData: json.unset_global_data
};
}
function convertSWMLSWAIGDataMapOutputUnsetMetaDataActionToJSON(action) {
return {
unset_meta_data: action.unsetMetaData
};
}
function convertJSONToSWMLSWAIGDataMapOutputUnsetMetaDataAction(json) {
return {
type: 'unsetMetaData',
unsetMetaData: json.unset_meta_data
};
}
function convertSWMLSWAIGDataMapOutputPlaybackBGActionToJSON(action) {
return {
playback_bg: {
file: action.playbackBG.file,
wait: action.playbackBG.wait
}
};
}
function convertJSONToSWMLSWAIGDataMapOutputPlaybackBGAction(json) {
return {
type: 'playbackBG',
playbackBG: {
file: json.playback_bg.file,
wait: json.playback_bg.wait
}
};
}
function convertSWMLSWAIGDataMapOutputStopPlaybackBGActionToJSON(action) {
return {
stop_playback_bg: action.stopPlaybackBG
};
}
function convertJSONToSWMLSWAIGDataMapOutputStopPlaybackBGAction(json) {
return {
type: 'stopPlaybackBG',
stopPlaybackBG: json.stop_playback_bg
};
}
function convertSWMLSWAIGDataMapOutputUserInputActionToJSON(action) {
return {
user_input: action.userInput
};
}
function convertJSONToSWMLSWAIGDataMapOutputUserInputAction(json) {
return {
type: 'userInput',
userInput: json.user_input
};
}
function convertSWMLSWAIGDataMapOutputContextSwitchActionToJSON(action) {
return {
context_switch: {
system_prompt: action.contextSwitch.systemPrompt,
consolidate: action.contextSwitch.consolidate,
user_prompt: action.contextSwitch.userPrompt
}
};
}
function convertJSONToSWMLSWAIGDataMapOutputContextSwitchAction(json) {
return {
type: 'contextSwitch',
contextSwitch: {
systemPrompt: json.context_switch.system_prompt,
consolidate: json.context_switch.consolidate,
userPrompt: json.context_switch.user_prompt
}
};
}
function convertSWMLSWAIGDataMapOutputActionToJSON(action) {
switch (action.type) {
case 'swml':
return convertSWMLSWAIGDataMapOutputSWMLActionToJSON(action);
case 'say':
return convertSWMLSWAIGDataMapOutputSayActionToJSON(action);
case 'stop':
return convertSWMLSWAIGDataMapOutputStopActionToJSON(action);
case 'toggleFunctions':
return convertSWMLSWAIGDataMapOutputToggleFunctionsActionToJSON(action);
case 'setGlobalData':
return convertSWMLSWAIGDataMapOutputSetGlobalDataActionToJSON(action);
case 'setMetaData':
return convertSWMLSWAIGDataMapOutputSetMetaDataActionToJSON(action);
case 'unsetGlobalData':
return convertSWMLSWAIGDataMapOutputUnsetGlobalDataActionToJSON(action);
case 'unsetMetaData':
return convertSWMLSWAIGDataMapOutputUnsetMetaDataActionToJSON(action);
case 'playbackBG':
return convertSWMLSWAIGDataMapOutputPlaybackBGActionToJSON(action);
case 'stopPlaybackBG':
return convertSWMLSWAIGDataMapOutputStopPlaybackBGActionToJSON(action);
case 'userInput':
return convertSWMLSWAIGDataMapOutputUserInputActionToJSON(action);
case 'contextSwitch':
return convertSWMLSWAIGDataMapOutputContextSwitchActionToJSON(action);
default:
throw Error("Unknown DataMap Output Action Type");
}
}
function convertJSONToSWMLSWAIGDataMapOutputAction(json) {
const objectKeys = Object.keys(json);
if (objectKeys.includes('SWML')) {
return convertJSONToSWMLSWAIGDataMapOutputSWMLAction(json);
}
else if (objectKeys.includes('say')) {
return convertJSONToSWMLSWAIGDataMapOutputSayAction(json);
}
else if (objectKeys.includes('stop')) {
return convertJSONToSWMLSWAIGDataMapOutputStopAction(json);
}
else if (objectKeys.includes('toggle_functions')) {
return convertJSONToSWMLSWAIGDataMapOutputToggleFunctionsAction(json);
}
else if (objectKeys.includes('set_global_data')) {
return convertJSONToSWMLSWAIGDataMapOutputSetGlobalDataAction(json);
}
else if (objectKeys.includes('set_meta_data')) {
return convertJSONToSWMLSWAIGDataMapOutputSetMetaDataAction(json);
}
else if (objectKeys.includes('unset_global_data')) {
return convertJSONToSWMLSWAIGDataMapOutputUnsetGlobalDataAction(json);
}
else if (objectKeys.includes('unset_meta_data')) {
return convertJSONToSWMLSWAIGDataMapOutputUnsetMetaDataAction(json);
}
else if (objectKeys.includes('playback_bg')) {
return convertJSONToSWMLSWAIGDataMapOutputPlaybackBGAction(json);
}
else if (objectKeys.includes('stop_playback_bg')) {
return convertJSONToSWMLSWAIGDataMapOutputStopPlaybackBGAction(json);
}
else if (objectKeys.includes('user_input')) {
return convertJSONToSWMLSWAIGDataMapOutputUserInputAction(json);
}
else if (objectKeys.includes('context_switch')) {
return convertJSONToSWMLSWAIGDataMapOutputContextSwitchAction(json);
}
else {
throw Error("Unknown DataMap Output Action Type");
}
}
function convertSWMLSWAIGDataMapOutputToJSON(output) {
if (output === undefined) {
return undefined;
}
return {
response: output.response,
action: output.action.map(convertSWMLSWAIGDataMapOutputActionToJSON)
};
}
function convertJSONToSWMLSWAIGDataMapOutput(json) {
return {
response: json.response,
action: json.action.map(convertJSONToSWMLSWAIGDataMapOutputAction)
};
}
function convertSWMLSWAIGDataMapExpressionToJSON(expression) {
return {
string: expression.string,
pattern: expression.pattern,
output: convertSWMLSWAIGDataMapOutputToJSON(expression.output)
};
}
function convertJSONToSWMLSWAIGDataMapExpression(json) {
return {
string: json.string,
pattern: json.pattern,
output: convertJSONToSWMLSWAIGDataMapOutput(json.output)
};
}
function convertSWMLSWAIGDataMapWebhookForeachToJSON(foreach) {
if (foreach === undefined) {
return undefined;
}
return {
append: foreach.append,
input_key: foreach.inputKey,
max: foreach.max,
output_key: foreach.outputKey
};
}
function convertJSONToSWMLSWAIGDataMapWebhookForeach(json) {
if (json === undefined) {
return undefined;
}
return {
append: json.append,
inputKey: json.input_key,
max: json.max,
outputKey: json.output_key
};
}
function convertSWMLSWAIGDataMapWebhookToJSON(webhook) {
var _a;
return {
expressions: (_a = webhook.expressions) === null || _a === void 0 ? void 0 : _a.map(convertSWMLSWAIGDataMapExpressionToJSON),
error_keys: webhook.errorKeys,
url: webhook.url,
foreach: convertSWMLSWAIGDataMapWebhookForeachToJSON(webhook.foreach),
headers: webhook.headers,
method: webhook.method,
input_args_as_params: webhook.inputArgsAsParams,
params: webhook.params,
required_args: webhook.requiredArgs,
output: convertSWMLSWAIGDataMapOutputToJSON(webhook.output)
};
}
function convertJSONToSWMLSWAIGDataMapWebhook(json) {
var _a;
return {
expressions: (_a = json.expressions) === null || _a === void 0 ? void 0 : _a.map(convertJSONToSWMLSWAIGDataMapExpression),
errorKeys: json.error_keys,
url: json.url,
foreach: convertJSONToSWMLSWAIGDataMapWebhookForeach(json.foreach),
headers: json.headers,
method: json.method,
inputArgsAsParams: json.input_args_as_params,
params: json.params,
requiredArgs: json.required_args,
output: convertJSONToSWMLSWAIGDataMapOutput(json.output)
};
}
function convertSWMLSWAIGDataMapToJSON(dataMap) {
if (dataMap === undefined) {
return undefined;
}
return {
expressions: dataMap.expressions.map(convertSWMLSWAIGDataMapExpressionToJSON),
webhooks: dataMap.webhooks.map(convertSWMLSWAIGDataMapWebhookToJSON),
output: convertSWMLSWAIGDataMapOutputToJSON(dataMap.output)
};
}
function convertJSONToSWMLSWAIGDataMap(json) {
if (json === undefined) {
return undefined;
}
return {
expressions: json.expressions.map(convertJSONToSWMLSWAIGDataMapExpression),
webhooks: json.webhooks.map(convertJSONToSWMLSWAIGDataMapWebhook),
output: convertJSONToSWMLSWAIGDataMapOutput(json.output)
};
}
function convertSWMLSWAIGFunctionParameterStringPropertyToJSON(property) {
return {
type: 'string',
description: property.description,
enum: property.enum,
default: property.default,
pattern: property.pattern,
nullable: property.nullable,
};
}
function convertJSONToSWMLSWAIGFunctionParameterStringProperty(json) {
return {
type: 'string',
description: json.description,
enum: json.enum,
default: json.default,
pattern: json.pattern,
nullable: json.nullable,
};
}
function convertSWMLSWAIGFunctionParameterIntegerPropertyToJSON(property) {
return {
type: 'integer',
description: property.description,
enum: property.enum,
default: property.default,
nullable: property.nullable,
};
}
function convertJSONToSWMLSWAIGFunctionParameterIntegerProperty(json) {
return {
type: 'integer',
description: json.description,
enum: json.enum,
default: json.default,
nullable: json.nullable,
};
}
function convertSWMLSWAIGFunctionParameterNumberPropertyToJSON(property) {
return {
type: 'number',
description: property.description,
enum: property.enum,
default: property.default,
nullable: property.nullable,
};
}
function convertJSONToSWMLSWAIGFunctionParameterNumberProperty(json) {
return {
type: 'number',
description: json.description,
enum: json.enum,
default: json.default,
nullable: json.nullable,
};
}
function convertSWMLSWAIGFunctionParameterBooleanPropertyToJSON(property) {
return {
type: 'boolean',
description: property.description,
default: property.default,
nullable: property.nullable,
};
}
function convertJSONToSWMLSWAIGFunctionParameterBooleanProperty(json) {
return {
type: 'boolean',
description: json.description,
default: json.default,
nullable: json.nullable,
};
}
function convertSWMLSWAIGFunctionParameterArrayPropertyToJSON(property) {
return {
type: 'array',
description: property.description,
items: property.items.map(convertSWMLSWAIGFunctionParameterPropertyToJSON),
default: property.default,
nullable: property.nullable,
};
}
function convertJSONToSWMLSWAIGFunctionParameterArrayProperty(json) {
return {
type: 'array',
description: json.description,
items: json.items.map(convertJSONToSWMLSWAIGFunctionParameterProperty),
default: json.default,
nullable: json.nullable,
};
}
function convertSWMLSWAIGFunctionParameterPropertiesToJSON(properties) {
const propertiesEntries = Object.entries(properties).map(([key, value]) => {
const tuple = [key, convertSWMLSWAIGFunctionParameterPropertyToJSON(value)];
return tuple;
});
return Object.fromEntries(propertiesEntries);
}
function convertJSONToSWMLSWAIGFunctionParameterProperties(json) {
const propertiesEntries = Object.entries(json).map(([key, value]) => {
const tuple = [key, convertJSONToSWMLSWAIGFunctionParameterProperty(value)];
return tuple;
});
return Object.fromEntries(propertiesEntries);
}
function convertSWMLSWAIGFunctionParameterObjectPropertyToJSON(property) {
return {
type: 'object',
description: property.description,
properties: convertSWMLSWAIGFunctionParameterPropertiesToJSON(property.properties),
required: property.required,
default: property.default,
nullable: property.nullable,
};
}
function convertJSONToSWMLSWAIGFunctionParameterObjectProperty(json) {
return {
type: 'object',
description: json.description,
properties: convertJSONToSWMLSWAIGFunctionParameterProperties(json.properties),
required: json.required,
default: json.default,
nullable: json.nullable,
};
}
function convertSWMLSWAIGFunctionParameterOneOfPropertyToJSON(property) {
return {
oneOf: property.oneOf.map(convertSWMLSWAIGFunctionParameterPropertyToJSON)
};
}
function convertJSONToSWMLSWAIGFunctionParameterOneOfProperty(json) {
return {
type: 'oneOf',
oneOf: json.oneOf.map(convertJSONToSWMLSWAIGFunctionParameterProperty)
};
}
function convertSWMLSWAIGFunctionParameterAllOfPropertyToJSON(property) {
return {
allOf: property.allOf.map(convertSWMLSWAIGFunctionParameterPropertyToJSON)
};
}
function convertJSONToSWMLSWAIGFunctionParameterAllOfProperty(json) {
return {
type: 'allOf',
allOf: json.allOf.map(convertJ