From 04416d35c624b08fe1f81fe3460459e1b6719b35 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 18 Aug 2022 10:06:52 +0000 Subject: [PATCH] Supported new features for outbound. --- VERSION | 2 +- .../alibabacloud/outboundbot/model/CreateScriptRequest.h | 3 +++ .../outboundbot/model/DescribeInstanceResult.h | 1 + .../outboundbot/model/DownloadRecordingRequest.h | 3 +++ .../outboundbot/model/DownloadRecordingResult.h | 1 + .../alibabacloud/outboundbot/model/ListInstancesResult.h | 1 + .../alibabacloud/outboundbot/model/ModifyScriptRequest.h | 3 +++ outboundbot/src/model/CreateScriptRequest.cc | 9 +++++++++ outboundbot/src/model/DescribeInstanceResult.cc | 2 ++ outboundbot/src/model/DownloadRecordingRequest.cc | 9 +++++++++ outboundbot/src/model/DownloadRecordingResult.cc | 2 ++ outboundbot/src/model/ListInstancesResult.cc | 2 ++ outboundbot/src/model/ModifyScriptRequest.cc | 9 +++++++++ 13 files changed, 46 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 660030e46..b90c1e95c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1226 \ No newline at end of file +1.36.1227 \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h index 66f8947d0..57a507f79 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h @@ -42,6 +42,8 @@ public: void setScriptWaveform(const std::vector &scriptWaveform); std::string getAsrConfig() const; void setAsrConfig(const std::string &asrConfig); + std::string getMiniPlaybackConfigListJsonString() const; + void setMiniPlaybackConfigListJsonString(const std::string &miniPlaybackConfigListJsonString); bool getNewBargeInEnable() const; void setNewBargeInEnable(bool newBargeInEnable); bool getMiniPlaybackEnable() const; @@ -64,6 +66,7 @@ private: std::string scene_; std::vector scriptWaveform_; std::string asrConfig_; + std::string miniPlaybackConfigListJsonString_; bool newBargeInEnable_; bool miniPlaybackEnable_; std::string chatbotId_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceResult.h index 1892dfa2a..c0d2dbe22 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string secretKey; std::string endpoint; std::string accessKey; + std::string agentId; }; std::string owner; std::string ownerName; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h index bf7804fb2..aab31ef27 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h @@ -30,12 +30,15 @@ class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadRecordingRequest : public RpcServi public: DownloadRecordingRequest(); ~DownloadRecordingRequest(); + bool getNeedVoiceSliceRecording() const; + void setNeedVoiceSliceRecording(bool needVoiceSliceRecording); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); std::string getTaskId() const; void setTaskId(const std::string &taskId); private: + bool needVoiceSliceRecording_; std::string instanceId_; std::string taskId_; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingResult.h index 34ca6173f..0c4a2f2d8 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct DownloadParams { std::string fileName; + std::string voiceSliceRecordingListJson; std::string signatureUrl; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h index 4e8ef3721..0024f2e85 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string secretKey; std::string endpoint; std::string accessKey; + std::string agentId; }; struct ResourceTag { diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h index d6a64306b..9be14cb17 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h @@ -44,6 +44,8 @@ public: void setScriptWaveform(const std::vector &scriptWaveform); std::string getAsrConfig() const; void setAsrConfig(const std::string &asrConfig); + std::string getMiniPlaybackConfigListJsonString() const; + void setMiniPlaybackConfigListJsonString(const std::string &miniPlaybackConfigListJsonString); std::string getNlsConfig() const; void setNlsConfig(const std::string &nlsConfig); bool getNewBargeInEnable() const; @@ -69,6 +71,7 @@ private: std::string scriptId_; std::vector scriptWaveform_; std::string asrConfig_; + std::string miniPlaybackConfigListJsonString_; std::string nlsConfig_; bool newBargeInEnable_; bool miniPlaybackEnable_; diff --git a/outboundbot/src/model/CreateScriptRequest.cc b/outboundbot/src/model/CreateScriptRequest.cc index b4c8de4db..6cc2fe9fd 100644 --- a/outboundbot/src/model/CreateScriptRequest.cc +++ b/outboundbot/src/model/CreateScriptRequest.cc @@ -78,6 +78,15 @@ void CreateScriptRequest::setAsrConfig(const std::string &asrConfig) { setParameter(std::string("AsrConfig"), asrConfig); } +std::string CreateScriptRequest::getMiniPlaybackConfigListJsonString() const { + return miniPlaybackConfigListJsonString_; +} + +void CreateScriptRequest::setMiniPlaybackConfigListJsonString(const std::string &miniPlaybackConfigListJsonString) { + miniPlaybackConfigListJsonString_ = miniPlaybackConfigListJsonString; + setParameter(std::string("MiniPlaybackConfigListJsonString"), miniPlaybackConfigListJsonString); +} + bool CreateScriptRequest::getNewBargeInEnable() const { return newBargeInEnable_; } diff --git a/outboundbot/src/model/DescribeInstanceResult.cc b/outboundbot/src/model/DescribeInstanceResult.cc index 3622cd90d..187d87b7b 100644 --- a/outboundbot/src/model/DescribeInstanceResult.cc +++ b/outboundbot/src/model/DescribeInstanceResult.cc @@ -71,6 +71,8 @@ void DescribeInstanceResult::parse(const std::string &payload) instance_.nluProfile.secretKey = nluProfileNode["SecretKey"].asString(); if(!nluProfileNode["Endpoint"].isNull()) instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); + if(!nluProfileNode["AgentId"].isNull()) + instance_.nluProfile.agentId = nluProfileNode["AgentId"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) diff --git a/outboundbot/src/model/DownloadRecordingRequest.cc b/outboundbot/src/model/DownloadRecordingRequest.cc index 0a63c36d3..acb5093e5 100644 --- a/outboundbot/src/model/DownloadRecordingRequest.cc +++ b/outboundbot/src/model/DownloadRecordingRequest.cc @@ -25,6 +25,15 @@ DownloadRecordingRequest::DownloadRecordingRequest() DownloadRecordingRequest::~DownloadRecordingRequest() {} +bool DownloadRecordingRequest::getNeedVoiceSliceRecording() const { + return needVoiceSliceRecording_; +} + +void DownloadRecordingRequest::setNeedVoiceSliceRecording(bool needVoiceSliceRecording) { + needVoiceSliceRecording_ = needVoiceSliceRecording; + setParameter(std::string("NeedVoiceSliceRecording"), needVoiceSliceRecording ? "true" : "false"); +} + std::string DownloadRecordingRequest::getInstanceId() const { return instanceId_; } diff --git a/outboundbot/src/model/DownloadRecordingResult.cc b/outboundbot/src/model/DownloadRecordingResult.cc index cd9c73fbe..cd3698b70 100644 --- a/outboundbot/src/model/DownloadRecordingResult.cc +++ b/outboundbot/src/model/DownloadRecordingResult.cc @@ -44,6 +44,8 @@ void DownloadRecordingResult::parse(const std::string &payload) downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString(); if(!downloadParamsNode["FileName"].isNull()) downloadParams_.fileName = downloadParamsNode["FileName"].asString(); + if(!downloadParamsNode["VoiceSliceRecordingListJson"].isNull()) + downloadParams_.voiceSliceRecordingListJson = downloadParamsNode["VoiceSliceRecordingListJson"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) diff --git a/outboundbot/src/model/ListInstancesResult.cc b/outboundbot/src/model/ListInstancesResult.cc index 4416af9d3..916e715a0 100644 --- a/outboundbot/src/model/ListInstancesResult.cc +++ b/outboundbot/src/model/ListInstancesResult.cc @@ -86,6 +86,8 @@ void ListInstancesResult::parse(const std::string &payload) instancesObject.nluProfile.secretKey = nluProfileNode["SecretKey"].asString(); if(!nluProfileNode["Endpoint"].isNull()) instancesObject.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); + if(!nluProfileNode["AgentId"].isNull()) + instancesObject.nluProfile.agentId = nluProfileNode["AgentId"].asString(); instances_.push_back(instancesObject); } if(!value["HttpStatusCode"].isNull()) diff --git a/outboundbot/src/model/ModifyScriptRequest.cc b/outboundbot/src/model/ModifyScriptRequest.cc index bdec7a2f6..99db537e6 100644 --- a/outboundbot/src/model/ModifyScriptRequest.cc +++ b/outboundbot/src/model/ModifyScriptRequest.cc @@ -87,6 +87,15 @@ void ModifyScriptRequest::setAsrConfig(const std::string &asrConfig) { setParameter(std::string("AsrConfig"), asrConfig); } +std::string ModifyScriptRequest::getMiniPlaybackConfigListJsonString() const { + return miniPlaybackConfigListJsonString_; +} + +void ModifyScriptRequest::setMiniPlaybackConfigListJsonString(const std::string &miniPlaybackConfigListJsonString) { + miniPlaybackConfigListJsonString_ = miniPlaybackConfigListJsonString; + setParameter(std::string("MiniPlaybackConfigListJsonString"), miniPlaybackConfigListJsonString); +} + std::string ModifyScriptRequest::getNlsConfig() const { return nlsConfig_; }