Ver Fonte

Generated 2025-07-07 for AnyTrans.

sdk-team há 9 meses atrás
pai
commit
d77681a132
26 ficheiros alterados com 1198 adições e 24 exclusões
  1. 1 1
      VERSION
  2. 12 0
      anytrans/CMakeLists.txt
  3. 24 0
      anytrans/include/alibabacloud/anytrans/AnyTransClient.h
  4. 90 0
      anytrans/include/alibabacloud/anytrans/model/BatchTranslateForHtmlRequest.h
  5. 79 0
      anytrans/include/alibabacloud/anytrans/model/BatchTranslateForHtmlResult.h
  6. 7 0
      anytrans/include/alibabacloud/anytrans/model/BatchTranslateRequest.h
  7. 3 13
      anytrans/include/alibabacloud/anytrans/model/SubmitDocTranslateTaskRequest.h
  8. 5 0
      anytrans/include/alibabacloud/anytrans/model/SubmitHtmlTranslateTaskRequest.h
  9. 4 0
      anytrans/include/alibabacloud/anytrans/model/SubmitLongTextTranslateTaskRequest.h
  10. 66 0
      anytrans/include/alibabacloud/anytrans/model/TermEditRequest.h
  11. 72 0
      anytrans/include/alibabacloud/anytrans/model/TermEditResult.h
  12. 54 0
      anytrans/include/alibabacloud/anytrans/model/TermQueryRequest.h
  13. 72 0
      anytrans/include/alibabacloud/anytrans/model/TermQueryResult.h
  14. 5 0
      anytrans/include/alibabacloud/anytrans/model/TextTranslateRequest.h
  15. 108 0
      anytrans/src/AnyTransClient.cc
  16. 117 0
      anytrans/src/model/BatchTranslateForHtmlRequest.cc
  17. 106 0
      anytrans/src/model/BatchTranslateForHtmlResult.cc
  18. 10 0
      anytrans/src/model/BatchTranslateRequest.cc
  19. 1 10
      anytrans/src/model/SubmitDocTranslateTaskRequest.cc
  20. 2 0
      anytrans/src/model/SubmitHtmlTranslateTaskRequest.cc
  21. 1 0
      anytrans/src/model/SubmitLongTextTranslateTaskRequest.cc
  22. 86 0
      anytrans/src/model/TermEditRequest.cc
  23. 99 0
      anytrans/src/model/TermEditResult.cc
  24. 73 0
      anytrans/src/model/TermQueryRequest.cc
  25. 99 0
      anytrans/src/model/TermQueryResult.cc
  26. 2 0
      anytrans/src/model/TextTranslateRequest.cc

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.2117
+1.36.2118

+ 12 - 0
anytrans/CMakeLists.txt

@@ -23,6 +23,8 @@ set(anytrans_public_header
 set(anytrans_public_header_model 
 	include/alibabacloud/anytrans/model/BatchTranslateRequest.h
 	include/alibabacloud/anytrans/model/BatchTranslateResult.h
+	include/alibabacloud/anytrans/model/BatchTranslateForHtmlRequest.h
+	include/alibabacloud/anytrans/model/BatchTranslateForHtmlResult.h
 	include/alibabacloud/anytrans/model/GetDocTranslateTaskRequest.h
 	include/alibabacloud/anytrans/model/GetDocTranslateTaskResult.h
 	include/alibabacloud/anytrans/model/GetHtmlTranslateTaskRequest.h
@@ -39,6 +41,10 @@ set(anytrans_public_header_model
 	include/alibabacloud/anytrans/model/SubmitImageTranslateTaskResult.h
 	include/alibabacloud/anytrans/model/SubmitLongTextTranslateTaskRequest.h
 	include/alibabacloud/anytrans/model/SubmitLongTextTranslateTaskResult.h
+	include/alibabacloud/anytrans/model/TermEditRequest.h
+	include/alibabacloud/anytrans/model/TermEditResult.h
+	include/alibabacloud/anytrans/model/TermQueryRequest.h
+	include/alibabacloud/anytrans/model/TermQueryResult.h
 	include/alibabacloud/anytrans/model/TextTranslateRequest.h
 	include/alibabacloud/anytrans/model/TextTranslateResult.h )
 
@@ -46,6 +52,8 @@ set(anytrans_src
 	src/AnyTransClient.cc
 	src/model/BatchTranslateRequest.cc
 	src/model/BatchTranslateResult.cc
+	src/model/BatchTranslateForHtmlRequest.cc
+	src/model/BatchTranslateForHtmlResult.cc
 	src/model/GetDocTranslateTaskRequest.cc
 	src/model/GetDocTranslateTaskResult.cc
 	src/model/GetHtmlTranslateTaskRequest.cc
@@ -62,6 +70,10 @@ set(anytrans_src
 	src/model/SubmitImageTranslateTaskResult.cc
 	src/model/SubmitLongTextTranslateTaskRequest.cc
 	src/model/SubmitLongTextTranslateTaskResult.cc
+	src/model/TermEditRequest.cc
+	src/model/TermEditResult.cc
+	src/model/TermQueryRequest.cc
+	src/model/TermQueryResult.cc
 	src/model/TextTranslateRequest.cc
 	src/model/TextTranslateResult.cc )
 

+ 24 - 0
anytrans/include/alibabacloud/anytrans/AnyTransClient.h

@@ -24,6 +24,8 @@
 #include "AnyTransExport.h"
 #include "model/BatchTranslateRequest.h"
 #include "model/BatchTranslateResult.h"
+#include "model/BatchTranslateForHtmlRequest.h"
+#include "model/BatchTranslateForHtmlResult.h"
 #include "model/GetDocTranslateTaskRequest.h"
 #include "model/GetDocTranslateTaskResult.h"
 #include "model/GetHtmlTranslateTaskRequest.h"
@@ -40,6 +42,10 @@
 #include "model/SubmitImageTranslateTaskResult.h"
 #include "model/SubmitLongTextTranslateTaskRequest.h"
 #include "model/SubmitLongTextTranslateTaskResult.h"
+#include "model/TermEditRequest.h"
+#include "model/TermEditResult.h"
+#include "model/TermQueryRequest.h"
+#include "model/TermQueryResult.h"
 #include "model/TextTranslateRequest.h"
 #include "model/TextTranslateResult.h"
 
@@ -54,6 +60,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::BatchTranslateResult> BatchTranslateOutcome;
 			typedef std::future<BatchTranslateOutcome> BatchTranslateOutcomeCallable;
 			typedef std::function<void(const AnyTransClient*, const Model::BatchTranslateRequest&, const BatchTranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchTranslateAsyncHandler;
+			typedef Outcome<Error, Model::BatchTranslateForHtmlResult> BatchTranslateForHtmlOutcome;
+			typedef std::future<BatchTranslateForHtmlOutcome> BatchTranslateForHtmlOutcomeCallable;
+			typedef std::function<void(const AnyTransClient*, const Model::BatchTranslateForHtmlRequest&, const BatchTranslateForHtmlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchTranslateForHtmlAsyncHandler;
 			typedef Outcome<Error, Model::GetDocTranslateTaskResult> GetDocTranslateTaskOutcome;
 			typedef std::future<GetDocTranslateTaskOutcome> GetDocTranslateTaskOutcomeCallable;
 			typedef std::function<void(const AnyTransClient*, const Model::GetDocTranslateTaskRequest&, const GetDocTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocTranslateTaskAsyncHandler;
@@ -78,6 +87,12 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::SubmitLongTextTranslateTaskResult> SubmitLongTextTranslateTaskOutcome;
 			typedef std::future<SubmitLongTextTranslateTaskOutcome> SubmitLongTextTranslateTaskOutcomeCallable;
 			typedef std::function<void(const AnyTransClient*, const Model::SubmitLongTextTranslateTaskRequest&, const SubmitLongTextTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitLongTextTranslateTaskAsyncHandler;
+			typedef Outcome<Error, Model::TermEditResult> TermEditOutcome;
+			typedef std::future<TermEditOutcome> TermEditOutcomeCallable;
+			typedef std::function<void(const AnyTransClient*, const Model::TermEditRequest&, const TermEditOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TermEditAsyncHandler;
+			typedef Outcome<Error, Model::TermQueryResult> TermQueryOutcome;
+			typedef std::future<TermQueryOutcome> TermQueryOutcomeCallable;
+			typedef std::function<void(const AnyTransClient*, const Model::TermQueryRequest&, const TermQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TermQueryAsyncHandler;
 			typedef Outcome<Error, Model::TextTranslateResult> TextTranslateOutcome;
 			typedef std::future<TextTranslateOutcome> TextTranslateOutcomeCallable;
 			typedef std::function<void(const AnyTransClient*, const Model::TextTranslateRequest&, const TextTranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TextTranslateAsyncHandler;
@@ -89,6 +104,9 @@ namespace AlibabaCloud
 			BatchTranslateOutcome batchTranslate(const Model::BatchTranslateRequest &request)const;
 			void batchTranslateAsync(const Model::BatchTranslateRequest& request, const BatchTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			BatchTranslateOutcomeCallable batchTranslateCallable(const Model::BatchTranslateRequest& request) const;
+			BatchTranslateForHtmlOutcome batchTranslateForHtml(const Model::BatchTranslateForHtmlRequest &request)const;
+			void batchTranslateForHtmlAsync(const Model::BatchTranslateForHtmlRequest& request, const BatchTranslateForHtmlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			BatchTranslateForHtmlOutcomeCallable batchTranslateForHtmlCallable(const Model::BatchTranslateForHtmlRequest& request) const;
 			GetDocTranslateTaskOutcome getDocTranslateTask(const Model::GetDocTranslateTaskRequest &request)const;
 			void getDocTranslateTaskAsync(const Model::GetDocTranslateTaskRequest& request, const GetDocTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetDocTranslateTaskOutcomeCallable getDocTranslateTaskCallable(const Model::GetDocTranslateTaskRequest& request) const;
@@ -113,6 +131,12 @@ namespace AlibabaCloud
 			SubmitLongTextTranslateTaskOutcome submitLongTextTranslateTask(const Model::SubmitLongTextTranslateTaskRequest &request)const;
 			void submitLongTextTranslateTaskAsync(const Model::SubmitLongTextTranslateTaskRequest& request, const SubmitLongTextTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			SubmitLongTextTranslateTaskOutcomeCallable submitLongTextTranslateTaskCallable(const Model::SubmitLongTextTranslateTaskRequest& request) const;
+			TermEditOutcome termEdit(const Model::TermEditRequest &request)const;
+			void termEditAsync(const Model::TermEditRequest& request, const TermEditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			TermEditOutcomeCallable termEditCallable(const Model::TermEditRequest& request) const;
+			TermQueryOutcome termQuery(const Model::TermQueryRequest &request)const;
+			void termQueryAsync(const Model::TermQueryRequest& request, const TermQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			TermQueryOutcomeCallable termQueryCallable(const Model::TermQueryRequest& request) const;
 			TextTranslateOutcome textTranslate(const Model::TextTranslateRequest &request)const;
 			void textTranslateAsync(const Model::TextTranslateRequest& request, const TextTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			TextTranslateOutcomeCallable textTranslateCallable(const Model::TextTranslateRequest& request) const;

+ 90 - 0
anytrans/include/alibabacloud/anytrans/model/BatchTranslateForHtmlRequest.h

@@ -0,0 +1,90 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_ANYTRANS_MODEL_BATCHTRANSLATEFORHTMLREQUEST_H_
+#define ALIBABACLOUD_ANYTRANS_MODEL_BATCHTRANSLATEFORHTMLREQUEST_H_
+
+#include <alibabacloud/anytrans/AnyTransExport.h>
+#include <alibabacloud/core/RoaServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace AnyTrans {
+namespace Model {
+class ALIBABACLOUD_ANYTRANS_EXPORT BatchTranslateForHtmlRequest : public RoaServiceRequest {
+public:
+	struct Ext {
+		std::string string;
+		std::vector<std::string> sensitives;
+		struct TerminologiesItem {
+			std::string tgt;
+			std::string src;
+		};
+		terminologiesItem terminologiesItem;
+		std::vector<terminologiesItem> terminologies;
+		struct TextTransform {
+			bool toLower;
+			bool toUpper;
+			bool toTitle;
+		};
+		textTransform textTransform;
+		struct ExamplesItem {
+			std::string tgt;
+			std::string src;
+		};
+		examplesItem examplesItem;
+		std::vector<examplesItem> examples;
+		struct Config {
+			bool skipCsiCheck;
+		};
+		config config;
+		std::string domainHint;
+	};
+	BatchTranslateForHtmlRequest();
+	~BatchTranslateForHtmlRequest();
+	ext getExt() const;
+	void setExt(const ext &ext);
+	std::string getSourceLanguage() const;
+	void setSourceLanguage(const std::string &sourceLanguage);
+	std::string getFormat() const;
+	void setFormat(const std::string &format);
+	std::string getScene() const;
+	void setScene(const std::string &scene);
+	std::string getAppName() const;
+	void setAppName(const std::string &appName);
+	std::string getTargetLanguage() const;
+	void setTargetLanguage(const std::string &targetLanguage);
+	std::map<std::string, std::string> getText() const;
+	void setText(const std::map<std::string, std::string> &text);
+	std::string getWorkspaceId() const;
+	void setWorkspaceId(const std::string &workspaceId);
+
+private:
+	ext ext_;
+	std::string sourceLanguage_;
+	std::string format_;
+	std::string scene_;
+	std::string appName_;
+	std::string targetLanguage_;
+	std::map<std::string, std::string> text_;
+	std::string workspaceId_;
+};
+} // namespace Model
+} // namespace AnyTrans
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ANYTRANS_MODEL_BATCHTRANSLATEFORHTMLREQUEST_H_

+ 79 - 0
anytrans/include/alibabacloud/anytrans/model/BatchTranslateForHtmlResult.h

@@ -0,0 +1,79 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_ANYTRANS_MODEL_BATCHTRANSLATEFORHTMLRESULT_H_
+#define ALIBABACLOUD_ANYTRANS_MODEL_BATCHTRANSLATEFORHTMLRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/anytrans/AnyTransExport.h>
+
+namespace AlibabaCloud
+{
+	namespace AnyTrans
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_ANYTRANS_EXPORT BatchTranslateForHtmlResult : public ServiceResult
+			{
+			public:
+				struct Data
+				{
+					struct TranslationListItem
+					{
+						struct Usage
+						{
+							long inputTokens;
+							long totalTokens;
+							long outputTokens;
+						};
+						Usage usage;
+						std::string translation;
+						std::string message;
+						std::string index;
+						long code;
+					};
+					std::vector<TranslationListItem> translationList;
+				};
+
+
+				BatchTranslateForHtmlResult();
+				explicit BatchTranslateForHtmlResult(const std::string &payload);
+				~BatchTranslateForHtmlResult();
+				std::string getMessage()const;
+				std::string getRequestId()const;
+				std::string getHttpStatusCode()const;
+				Data getData()const;
+				std::string getCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string message_;
+				std::string requestId_;
+				std::string httpStatusCode_;
+				Data data_;
+				std::string code_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_ANYTRANS_MODEL_BATCHTRANSLATEFORHTMLRESULT_H_

+ 7 - 0
anytrans/include/alibabacloud/anytrans/model/BatchTranslateRequest.h

@@ -49,6 +49,10 @@ public:
 		};
 		examplesItem examplesItem;
 		std::vector<examplesItem> examples;
+		struct Config {
+			bool skipCsiCheck;
+		};
+		config config;
 		std::string domainHint;
 	};
 	BatchTranslateRequest();
@@ -61,6 +65,8 @@ public:
 	void setFormat(const std::string &format);
 	std::string getScene() const;
 	void setScene(const std::string &scene);
+	std::string getAppName() const;
+	void setAppName(const std::string &appName);
 	std::string getTargetLanguage() const;
 	void setTargetLanguage(const std::string &targetLanguage);
 	std::map<std::string, std::string> getText() const;
@@ -73,6 +79,7 @@ private:
 	std::string sourceLanguage_;
 	std::string format_;
 	std::string scene_;
+	std::string appName_;
 	std::string targetLanguage_;
 	std::map<std::string, std::string> text_;
 	std::string workspaceId_;

+ 3 - 13
anytrans/include/alibabacloud/anytrans/model/SubmitDocTranslateTaskRequest.h

@@ -29,26 +29,16 @@ namespace Model {
 class ALIBABACLOUD_ANYTRANS_EXPORT SubmitDocTranslateTaskRequest : public RoaServiceRequest {
 public:
 	struct Ext {
-		std::string string;
-		std::vector<std::string> sensitives;
 		struct TerminologiesItem {
 			std::string tgt;
 			std::string src;
 		};
 		terminologiesItem terminologiesItem;
 		std::vector<terminologiesItem> terminologies;
-		struct TextTransform {
-			bool toLower;
-			bool toUpper;
-			bool toTitle;
+		struct Config {
+			bool skipImgTrans;
 		};
-		textTransform textTransform;
-		struct ExamplesItem {
-			std::string tgt;
-			std::string src;
-		};
-		examplesItem examplesItem;
-		std::vector<examplesItem> examples;
+		config config;
 		std::string domainHint;
 	};
 	SubmitDocTranslateTaskRequest();

+ 5 - 0
anytrans/include/alibabacloud/anytrans/model/SubmitHtmlTranslateTaskRequest.h

@@ -49,6 +49,11 @@ public:
 		};
 		examplesItem examplesItem;
 		std::vector<examplesItem> examples;
+		struct Config {
+			bool skipCsiCheck;
+			std::string callbackUrl;
+		};
+		config config;
 		std::string domainHint;
 	};
 	SubmitHtmlTranslateTaskRequest();

+ 4 - 0
anytrans/include/alibabacloud/anytrans/model/SubmitLongTextTranslateTaskRequest.h

@@ -49,6 +49,10 @@ public:
 		};
 		examplesItem examplesItem;
 		std::vector<examplesItem> examples;
+		struct Config {
+			bool skipCsiCheck;
+		};
+		config config;
 		std::string domainHint;
 	};
 	SubmitLongTextTranslateTaskRequest();

+ 66 - 0
anytrans/include/alibabacloud/anytrans/model/TermEditRequest.h

@@ -0,0 +1,66 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_ANYTRANS_MODEL_TERMEDITREQUEST_H_
+#define ALIBABACLOUD_ANYTRANS_MODEL_TERMEDITREQUEST_H_
+
+#include <alibabacloud/anytrans/AnyTransExport.h>
+#include <alibabacloud/core/RoaServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace AnyTrans {
+namespace Model {
+class ALIBABACLOUD_ANYTRANS_EXPORT TermEditRequest : public RoaServiceRequest {
+public:
+	struct Ext {
+		struct TermsItem {
+			std::string tgt;
+			std::string termId;
+			std::string src;
+		};
+		termsItem termsItem;
+		std::vector<termsItem> terms;
+	};
+	TermEditRequest();
+	~TermEditRequest();
+	ext getExt() const;
+	void setExt(const ext &ext);
+	std::string getSourceLanguage() const;
+	void setSourceLanguage(const std::string &sourceLanguage);
+	std::string getScene() const;
+	void setScene(const std::string &scene);
+	std::string getAction() const;
+	void setAction(const std::string &action);
+	std::string getTargetLanguage() const;
+	void setTargetLanguage(const std::string &targetLanguage);
+	std::string getWorkspaceId() const;
+	void setWorkspaceId(const std::string &workspaceId);
+
+private:
+	ext ext_;
+	std::string sourceLanguage_;
+	std::string scene_;
+	std::string action_;
+	std::string targetLanguage_;
+	std::string workspaceId_;
+};
+} // namespace Model
+} // namespace AnyTrans
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ANYTRANS_MODEL_TERMEDITREQUEST_H_

+ 72 - 0
anytrans/include/alibabacloud/anytrans/model/TermEditResult.h

@@ -0,0 +1,72 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_ANYTRANS_MODEL_TERMEDITRESULT_H_
+#define ALIBABACLOUD_ANYTRANS_MODEL_TERMEDITRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/anytrans/AnyTransExport.h>
+
+namespace AlibabaCloud
+{
+	namespace AnyTrans
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_ANYTRANS_EXPORT TermEditResult : public ServiceResult
+			{
+			public:
+				struct Data
+				{
+					struct TermsItem
+					{
+						std::string tgt;
+						std::string src;
+						std::string termId;
+					};
+					std::vector<TermsItem> terms;
+					long failCount;
+				};
+
+
+				TermEditResult();
+				explicit TermEditResult(const std::string &payload);
+				~TermEditResult();
+				std::string getMessage()const;
+				std::string getRequestId()const;
+				std::string getHttpStatusCode()const;
+				Data getData()const;
+				std::string getCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string message_;
+				std::string requestId_;
+				std::string httpStatusCode_;
+				Data data_;
+				std::string code_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_ANYTRANS_MODEL_TERMEDITRESULT_H_

+ 54 - 0
anytrans/include/alibabacloud/anytrans/model/TermQueryRequest.h

@@ -0,0 +1,54 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_ANYTRANS_MODEL_TERMQUERYREQUEST_H_
+#define ALIBABACLOUD_ANYTRANS_MODEL_TERMQUERYREQUEST_H_
+
+#include <alibabacloud/anytrans/AnyTransExport.h>
+#include <alibabacloud/core/RoaServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace AnyTrans {
+namespace Model {
+class ALIBABACLOUD_ANYTRANS_EXPORT TermQueryRequest : public RoaServiceRequest {
+public:
+	TermQueryRequest();
+	~TermQueryRequest();
+	std::string getSourceLanguage() const;
+	void setSourceLanguage(const std::string &sourceLanguage);
+	std::string getScene() const;
+	void setScene(const std::string &scene);
+	std::string getTargetLanguage() const;
+	void setTargetLanguage(const std::string &targetLanguage);
+	std::string getText() const;
+	void setText(const std::string &text);
+	std::string getWorkspaceId() const;
+	void setWorkspaceId(const std::string &workspaceId);
+
+private:
+	std::string sourceLanguage_;
+	std::string scene_;
+	std::string targetLanguage_;
+	std::string text_;
+	std::string workspaceId_;
+};
+} // namespace Model
+} // namespace AnyTrans
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_ANYTRANS_MODEL_TERMQUERYREQUEST_H_

+ 72 - 0
anytrans/include/alibabacloud/anytrans/model/TermQueryResult.h

@@ -0,0 +1,72 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_ANYTRANS_MODEL_TERMQUERYRESULT_H_
+#define ALIBABACLOUD_ANYTRANS_MODEL_TERMQUERYRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/anytrans/AnyTransExport.h>
+
+namespace AlibabaCloud
+{
+	namespace AnyTrans
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_ANYTRANS_EXPORT TermQueryResult : public ServiceResult
+			{
+			public:
+				struct Data
+				{
+					struct TermsItem
+					{
+						std::string tgt;
+						std::string src;
+						std::string termId;
+					};
+					std::vector<TermsItem> terms;
+					long failCount;
+				};
+
+
+				TermQueryResult();
+				explicit TermQueryResult(const std::string &payload);
+				~TermQueryResult();
+				std::string getMessage()const;
+				std::string getRequestId()const;
+				std::string getHttpStatusCode()const;
+				Data getData()const;
+				std::string getCode()const;
+				bool getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string message_;
+				std::string requestId_;
+				std::string httpStatusCode_;
+				Data data_;
+				std::string code_;
+				bool success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_ANYTRANS_MODEL_TERMQUERYRESULT_H_

+ 5 - 0
anytrans/include/alibabacloud/anytrans/model/TextTranslateRequest.h

@@ -43,12 +43,17 @@ public:
 			bool toTitle;
 		};
 		textTransform textTransform;
+		std::string agent;
 		struct ExamplesItem {
 			std::string tgt;
 			std::string src;
 		};
 		examplesItem examplesItem;
 		std::vector<examplesItem> examples;
+		struct Config {
+			bool skipCsiCheck;
+		};
+		config config;
 		std::string domainHint;
 	};
 	TextTranslateRequest();

+ 108 - 0
anytrans/src/AnyTransClient.cc

@@ -87,6 +87,42 @@ AnyTransClient::BatchTranslateOutcomeCallable AnyTransClient::batchTranslateCall
 	return task->get_future();
 }
 
+AnyTransClient::BatchTranslateForHtmlOutcome AnyTransClient::batchTranslateForHtml(const BatchTranslateForHtmlRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return BatchTranslateForHtmlOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return BatchTranslateForHtmlOutcome(BatchTranslateForHtmlResult(outcome.result()));
+	else
+		return BatchTranslateForHtmlOutcome(outcome.error());
+}
+
+void AnyTransClient::batchTranslateForHtmlAsync(const BatchTranslateForHtmlRequest& request, const BatchTranslateForHtmlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, batchTranslateForHtml(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+AnyTransClient::BatchTranslateForHtmlOutcomeCallable AnyTransClient::batchTranslateForHtmlCallable(const BatchTranslateForHtmlRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<BatchTranslateForHtmlOutcome()>>(
+			[this, request]()
+			{
+			return this->batchTranslateForHtml(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 AnyTransClient::GetDocTranslateTaskOutcome AnyTransClient::getDocTranslateTask(const GetDocTranslateTaskRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -375,6 +411,78 @@ AnyTransClient::SubmitLongTextTranslateTaskOutcomeCallable AnyTransClient::submi
 	return task->get_future();
 }
 
+AnyTransClient::TermEditOutcome AnyTransClient::termEdit(const TermEditRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return TermEditOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return TermEditOutcome(TermEditResult(outcome.result()));
+	else
+		return TermEditOutcome(outcome.error());
+}
+
+void AnyTransClient::termEditAsync(const TermEditRequest& request, const TermEditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, termEdit(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+AnyTransClient::TermEditOutcomeCallable AnyTransClient::termEditCallable(const TermEditRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<TermEditOutcome()>>(
+			[this, request]()
+			{
+			return this->termEdit(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
+AnyTransClient::TermQueryOutcome AnyTransClient::termQuery(const TermQueryRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return TermQueryOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return TermQueryOutcome(TermQueryResult(outcome.result()));
+	else
+		return TermQueryOutcome(outcome.error());
+}
+
+void AnyTransClient::termQueryAsync(const TermQueryRequest& request, const TermQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, termQuery(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+AnyTransClient::TermQueryOutcomeCallable AnyTransClient::termQueryCallable(const TermQueryRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<TermQueryOutcome()>>(
+			[this, request]()
+			{
+			return this->termQuery(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 AnyTransClient::TextTranslateOutcome AnyTransClient::textTranslate(const TextTranslateRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 117 - 0
anytrans/src/model/BatchTranslateForHtmlRequest.cc

@@ -0,0 +1,117 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/anytrans/model/BatchTranslateForHtmlRequest.h>
+
+using AlibabaCloud::AnyTrans::Model::BatchTranslateForHtmlRequest;
+
+BatchTranslateForHtmlRequest::BatchTranslateForHtmlRequest()
+    : RoaServiceRequest("anytrans", "2025-07-07") {
+  setResourcePath("/anytrans/translate/batchForHtml"};
+  setMethod(HttpRequest::Method::Post);
+}
+
+BatchTranslateForHtmlRequest::~BatchTranslateForHtmlRequest() {}
+
+BatchTranslateForHtmlRequest::ext BatchTranslateForHtmlRequest::getExt() const {
+  return ext_;
+}
+
+void BatchTranslateForHtmlRequest::setExt(const BatchTranslateForHtmlRequest::ext &ext) {
+  ext_ = ext;
+  for(int dep1 = 0; dep1 != ext.sensitives.size(); dep1++) {
+    setBodyParameter(std::string("ext") + ".sensitives." + std::to_string(dep1 + 1), ext.sensitives[dep1]);
+  }
+  for(int dep1 = 0; dep1 != ext.terminologies.size(); dep1++) {
+    setBodyParameter(std::string("ext") + ".terminologies." + std::to_string(dep1 + 1) + ".tgt", ext.terminologies[dep1].tgt);
+    setBodyParameter(std::string("ext") + ".terminologies." + std::to_string(dep1 + 1) + ".src", ext.terminologies[dep1].src);
+  }
+  setBodyParameter(std::string("ext") + ".textTransform.toLower", ext.textTransform.toLower ? "true" : "false");
+  setBodyParameter(std::string("ext") + ".textTransform.toUpper", ext.textTransform.toUpper ? "true" : "false");
+  setBodyParameter(std::string("ext") + ".textTransform.toTitle", ext.textTransform.toTitle ? "true" : "false");
+  for(int dep1 = 0; dep1 != ext.examples.size(); dep1++) {
+    setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".tgt", ext.examples[dep1].tgt);
+    setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".src", ext.examples[dep1].src);
+  }
+  setBodyParameter(std::string("ext") + ".config.skipCsiCheck", ext.config.skipCsiCheck ? "true" : "false");
+  setBodyParameter(std::string("ext") + ".domainHint", ext.domainHint);
+}
+
+std::string BatchTranslateForHtmlRequest::getSourceLanguage() const {
+  return sourceLanguage_;
+}
+
+void BatchTranslateForHtmlRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("sourceLanguage"), sourceLanguage);
+}
+
+std::string BatchTranslateForHtmlRequest::getFormat() const {
+  return format_;
+}
+
+void BatchTranslateForHtmlRequest::setFormat(const std::string &format) {
+  format_ = format;
+  setBodyParameter(std::string("format"), format);
+}
+
+std::string BatchTranslateForHtmlRequest::getScene() const {
+  return scene_;
+}
+
+void BatchTranslateForHtmlRequest::setScene(const std::string &scene) {
+  scene_ = scene;
+  setBodyParameter(std::string("scene"), scene);
+}
+
+std::string BatchTranslateForHtmlRequest::getAppName() const {
+  return appName_;
+}
+
+void BatchTranslateForHtmlRequest::setAppName(const std::string &appName) {
+  appName_ = appName;
+  setBodyParameter(std::string("appName"), appName);
+}
+
+std::string BatchTranslateForHtmlRequest::getTargetLanguage() const {
+  return targetLanguage_;
+}
+
+void BatchTranslateForHtmlRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("targetLanguage"), targetLanguage);
+}
+
+std::map<std::string, std::string> BatchTranslateForHtmlRequest::getText() const {
+  return text_;
+}
+
+void BatchTranslateForHtmlRequest::setText(const std::map<std::string, std::string> &text) {
+  text_ = text;
+  for(auto const &iter1 : text) {
+    setBodyParameter(std::string("text") + "." + iter1.first, iter1.second);
+  }
+}
+
+std::string BatchTranslateForHtmlRequest::getWorkspaceId() const {
+  return workspaceId_;
+}
+
+void BatchTranslateForHtmlRequest::setWorkspaceId(const std::string &workspaceId) {
+  workspaceId_ = workspaceId;
+  setBodyParameter(std::string("workspaceId"), workspaceId);
+}
+

+ 106 - 0
anytrans/src/model/BatchTranslateForHtmlResult.cc

@@ -0,0 +1,106 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/anytrans/model/BatchTranslateForHtmlResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::AnyTrans;
+using namespace AlibabaCloud::AnyTrans::Model;
+
+BatchTranslateForHtmlResult::BatchTranslateForHtmlResult() :
+	ServiceResult()
+{}
+
+BatchTranslateForHtmlResult::BatchTranslateForHtmlResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+BatchTranslateForHtmlResult::~BatchTranslateForHtmlResult()
+{}
+
+void BatchTranslateForHtmlResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	auto dataNode = value["data"];
+	auto alltranslationListNode = dataNode["translationList"]["translationListItem"];
+	for (auto dataNodetranslationListtranslationListItem : alltranslationListNode)
+	{
+		Data::TranslationListItem translationListItemObject;
+		if(!dataNodetranslationListtranslationListItem["code"].isNull())
+			translationListItemObject.code = std::stol(dataNodetranslationListtranslationListItem["code"].asString());
+		if(!dataNodetranslationListtranslationListItem["message"].isNull())
+			translationListItemObject.message = dataNodetranslationListtranslationListItem["message"].asString();
+		if(!dataNodetranslationListtranslationListItem["index"].isNull())
+			translationListItemObject.index = dataNodetranslationListtranslationListItem["index"].asString();
+		if(!dataNodetranslationListtranslationListItem["translation"].isNull())
+			translationListItemObject.translation = dataNodetranslationListtranslationListItem["translation"].asString();
+		auto usageNode = value["usage"];
+		if(!usageNode["inputTokens"].isNull())
+			translationListItemObject.usage.inputTokens = std::stol(usageNode["inputTokens"].asString());
+		if(!usageNode["outputTokens"].isNull())
+			translationListItemObject.usage.outputTokens = std::stol(usageNode["outputTokens"].asString());
+		if(!usageNode["totalTokens"].isNull())
+			translationListItemObject.usage.totalTokens = std::stol(usageNode["totalTokens"].asString());
+		data_.translationList.push_back(translationListItemObject);
+	}
+	if(!value["code"].isNull())
+		code_ = value["code"].asString();
+	if(!value["message"].isNull())
+		message_ = value["message"].asString();
+	if(!value["requestId"].isNull())
+		requestId_ = value["requestId"].asString();
+	if(!value["success"].isNull())
+		success_ = value["success"].asString() == "true";
+	if(!value["httpStatusCode"].isNull())
+		httpStatusCode_ = value["httpStatusCode"].asString();
+
+}
+
+std::string BatchTranslateForHtmlResult::getMessage()const
+{
+	return message_;
+}
+
+std::string BatchTranslateForHtmlResult::getRequestId()const
+{
+	return requestId_;
+}
+
+std::string BatchTranslateForHtmlResult::getHttpStatusCode()const
+{
+	return httpStatusCode_;
+}
+
+BatchTranslateForHtmlResult::Data BatchTranslateForHtmlResult::getData()const
+{
+	return data_;
+}
+
+std::string BatchTranslateForHtmlResult::getCode()const
+{
+	return code_;
+}
+
+bool BatchTranslateForHtmlResult::getSuccess()const
+{
+	return success_;
+}
+

+ 10 - 0
anytrans/src/model/BatchTranslateRequest.cc

@@ -46,6 +46,7 @@ void BatchTranslateRequest::setExt(const BatchTranslateRequest::ext &ext) {
     setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".tgt", ext.examples[dep1].tgt);
     setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".src", ext.examples[dep1].src);
   }
+  setBodyParameter(std::string("ext") + ".config.skipCsiCheck", ext.config.skipCsiCheck ? "true" : "false");
   setBodyParameter(std::string("ext") + ".domainHint", ext.domainHint);
 }
 
@@ -76,6 +77,15 @@ void BatchTranslateRequest::setScene(const std::string &scene) {
   setBodyParameter(std::string("scene"), scene);
 }
 
+std::string BatchTranslateRequest::getAppName() const {
+  return appName_;
+}
+
+void BatchTranslateRequest::setAppName(const std::string &appName) {
+  appName_ = appName;
+  setBodyParameter(std::string("appName"), appName);
+}
+
 std::string BatchTranslateRequest::getTargetLanguage() const {
   return targetLanguage_;
 }

+ 1 - 10
anytrans/src/model/SubmitDocTranslateTaskRequest.cc

@@ -32,20 +32,11 @@ SubmitDocTranslateTaskRequest::ext SubmitDocTranslateTaskRequest::getExt() const
 
 void SubmitDocTranslateTaskRequest::setExt(const SubmitDocTranslateTaskRequest::ext &ext) {
   ext_ = ext;
-  for(int dep1 = 0; dep1 != ext.sensitives.size(); dep1++) {
-    setBodyParameter(std::string("ext") + ".sensitives." + std::to_string(dep1 + 1), ext.sensitives[dep1]);
-  }
   for(int dep1 = 0; dep1 != ext.terminologies.size(); dep1++) {
     setBodyParameter(std::string("ext") + ".terminologies." + std::to_string(dep1 + 1) + ".tgt", ext.terminologies[dep1].tgt);
     setBodyParameter(std::string("ext") + ".terminologies." + std::to_string(dep1 + 1) + ".src", ext.terminologies[dep1].src);
   }
-  setBodyParameter(std::string("ext") + ".textTransform.toLower", ext.textTransform.toLower ? "true" : "false");
-  setBodyParameter(std::string("ext") + ".textTransform.toUpper", ext.textTransform.toUpper ? "true" : "false");
-  setBodyParameter(std::string("ext") + ".textTransform.toTitle", ext.textTransform.toTitle ? "true" : "false");
-  for(int dep1 = 0; dep1 != ext.examples.size(); dep1++) {
-    setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".tgt", ext.examples[dep1].tgt);
-    setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".src", ext.examples[dep1].src);
-  }
+  setBodyParameter(std::string("ext") + ".config.skipImgTrans", ext.config.skipImgTrans ? "true" : "false");
   setBodyParameter(std::string("ext") + ".domainHint", ext.domainHint);
 }
 

+ 2 - 0
anytrans/src/model/SubmitHtmlTranslateTaskRequest.cc

@@ -46,6 +46,8 @@ void SubmitHtmlTranslateTaskRequest::setExt(const SubmitHtmlTranslateTaskRequest
     setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".tgt", ext.examples[dep1].tgt);
     setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".src", ext.examples[dep1].src);
   }
+  setBodyParameter(std::string("ext") + ".config.skipCsiCheck", ext.config.skipCsiCheck ? "true" : "false");
+  setBodyParameter(std::string("ext") + ".config.callbackUrl", ext.config.callbackUrl);
   setBodyParameter(std::string("ext") + ".domainHint", ext.domainHint);
 }
 

+ 1 - 0
anytrans/src/model/SubmitLongTextTranslateTaskRequest.cc

@@ -46,6 +46,7 @@ void SubmitLongTextTranslateTaskRequest::setExt(const SubmitLongTextTranslateTas
     setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".tgt", ext.examples[dep1].tgt);
     setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".src", ext.examples[dep1].src);
   }
+  setBodyParameter(std::string("ext") + ".config.skipCsiCheck", ext.config.skipCsiCheck ? "true" : "false");
   setBodyParameter(std::string("ext") + ".domainHint", ext.domainHint);
 }
 

+ 86 - 0
anytrans/src/model/TermEditRequest.cc

@@ -0,0 +1,86 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/anytrans/model/TermEditRequest.h>
+
+using AlibabaCloud::AnyTrans::Model::TermEditRequest;
+
+TermEditRequest::TermEditRequest()
+    : RoaServiceRequest("anytrans", "2025-07-07") {
+  setResourcePath("/anytrans/translate/intervene/edit"};
+  setMethod(HttpRequest::Method::Post);
+}
+
+TermEditRequest::~TermEditRequest() {}
+
+TermEditRequest::ext TermEditRequest::getExt() const {
+  return ext_;
+}
+
+void TermEditRequest::setExt(const TermEditRequest::ext &ext) {
+  ext_ = ext;
+  for(int dep1 = 0; dep1 != ext.terms.size(); dep1++) {
+    setBodyParameter(std::string("ext") + ".terms." + std::to_string(dep1 + 1) + ".tgt", ext.terms[dep1].tgt);
+    setBodyParameter(std::string("ext") + ".terms." + std::to_string(dep1 + 1) + ".termId", ext.terms[dep1].termId);
+    setBodyParameter(std::string("ext") + ".terms." + std::to_string(dep1 + 1) + ".src", ext.terms[dep1].src);
+  }
+}
+
+std::string TermEditRequest::getSourceLanguage() const {
+  return sourceLanguage_;
+}
+
+void TermEditRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("sourceLanguage"), sourceLanguage);
+}
+
+std::string TermEditRequest::getScene() const {
+  return scene_;
+}
+
+void TermEditRequest::setScene(const std::string &scene) {
+  scene_ = scene;
+  setBodyParameter(std::string("scene"), scene);
+}
+
+std::string TermEditRequest::getAction() const {
+  return action_;
+}
+
+void TermEditRequest::setAction(const std::string &action) {
+  action_ = action;
+  setBodyParameter(std::string("action"), action);
+}
+
+std::string TermEditRequest::getTargetLanguage() const {
+  return targetLanguage_;
+}
+
+void TermEditRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("targetLanguage"), targetLanguage);
+}
+
+std::string TermEditRequest::getWorkspaceId() const {
+  return workspaceId_;
+}
+
+void TermEditRequest::setWorkspaceId(const std::string &workspaceId) {
+  workspaceId_ = workspaceId;
+  setBodyParameter(std::string("workspaceId"), workspaceId);
+}
+

+ 99 - 0
anytrans/src/model/TermEditResult.cc

@@ -0,0 +1,99 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/anytrans/model/TermEditResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::AnyTrans;
+using namespace AlibabaCloud::AnyTrans::Model;
+
+TermEditResult::TermEditResult() :
+	ServiceResult()
+{}
+
+TermEditResult::TermEditResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+TermEditResult::~TermEditResult()
+{}
+
+void TermEditResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	auto dataNode = value["data"];
+	if(!dataNode["failCount"].isNull())
+		data_.failCount = std::stol(dataNode["failCount"].asString());
+	auto alltermsNode = dataNode["terms"]["termsItem"];
+	for (auto dataNodetermstermsItem : alltermsNode)
+	{
+		Data::TermsItem termsItemObject;
+		if(!dataNodetermstermsItem["termId"].isNull())
+			termsItemObject.termId = dataNodetermstermsItem["termId"].asString();
+		if(!dataNodetermstermsItem["src"].isNull())
+			termsItemObject.src = dataNodetermstermsItem["src"].asString();
+		if(!dataNodetermstermsItem["tgt"].isNull())
+			termsItemObject.tgt = dataNodetermstermsItem["tgt"].asString();
+		data_.terms.push_back(termsItemObject);
+	}
+	if(!value["code"].isNull())
+		code_ = value["code"].asString();
+	if(!value["message"].isNull())
+		message_ = value["message"].asString();
+	if(!value["requestId"].isNull())
+		requestId_ = value["requestId"].asString();
+	if(!value["success"].isNull())
+		success_ = value["success"].asString() == "true";
+	if(!value["httpStatusCode"].isNull())
+		httpStatusCode_ = value["httpStatusCode"].asString();
+
+}
+
+std::string TermEditResult::getMessage()const
+{
+	return message_;
+}
+
+std::string TermEditResult::getRequestId()const
+{
+	return requestId_;
+}
+
+std::string TermEditResult::getHttpStatusCode()const
+{
+	return httpStatusCode_;
+}
+
+TermEditResult::Data TermEditResult::getData()const
+{
+	return data_;
+}
+
+std::string TermEditResult::getCode()const
+{
+	return code_;
+}
+
+bool TermEditResult::getSuccess()const
+{
+	return success_;
+}
+

+ 73 - 0
anytrans/src/model/TermQueryRequest.cc

@@ -0,0 +1,73 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/anytrans/model/TermQueryRequest.h>
+
+using AlibabaCloud::AnyTrans::Model::TermQueryRequest;
+
+TermQueryRequest::TermQueryRequest()
+    : RoaServiceRequest("anytrans", "2025-07-07") {
+  setResourcePath("/anytrans/translate/intervene/query"};
+  setMethod(HttpRequest::Method::Post);
+}
+
+TermQueryRequest::~TermQueryRequest() {}
+
+std::string TermQueryRequest::getSourceLanguage() const {
+  return sourceLanguage_;
+}
+
+void TermQueryRequest::setSourceLanguage(const std::string &sourceLanguage) {
+  sourceLanguage_ = sourceLanguage;
+  setBodyParameter(std::string("sourceLanguage"), sourceLanguage);
+}
+
+std::string TermQueryRequest::getScene() const {
+  return scene_;
+}
+
+void TermQueryRequest::setScene(const std::string &scene) {
+  scene_ = scene;
+  setBodyParameter(std::string("scene"), scene);
+}
+
+std::string TermQueryRequest::getTargetLanguage() const {
+  return targetLanguage_;
+}
+
+void TermQueryRequest::setTargetLanguage(const std::string &targetLanguage) {
+  targetLanguage_ = targetLanguage;
+  setBodyParameter(std::string("targetLanguage"), targetLanguage);
+}
+
+std::string TermQueryRequest::getText() const {
+  return text_;
+}
+
+void TermQueryRequest::setText(const std::string &text) {
+  text_ = text;
+  setBodyParameter(std::string("text"), text);
+}
+
+std::string TermQueryRequest::getWorkspaceId() const {
+  return workspaceId_;
+}
+
+void TermQueryRequest::setWorkspaceId(const std::string &workspaceId) {
+  workspaceId_ = workspaceId;
+  setBodyParameter(std::string("workspaceId"), workspaceId);
+}
+

+ 99 - 0
anytrans/src/model/TermQueryResult.cc

@@ -0,0 +1,99 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/anytrans/model/TermQueryResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::AnyTrans;
+using namespace AlibabaCloud::AnyTrans::Model;
+
+TermQueryResult::TermQueryResult() :
+	ServiceResult()
+{}
+
+TermQueryResult::TermQueryResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+TermQueryResult::~TermQueryResult()
+{}
+
+void TermQueryResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	auto dataNode = value["data"];
+	if(!dataNode["failCount"].isNull())
+		data_.failCount = std::stol(dataNode["failCount"].asString());
+	auto alltermsNode = dataNode["terms"]["termsItem"];
+	for (auto dataNodetermstermsItem : alltermsNode)
+	{
+		Data::TermsItem termsItemObject;
+		if(!dataNodetermstermsItem["termId"].isNull())
+			termsItemObject.termId = dataNodetermstermsItem["termId"].asString();
+		if(!dataNodetermstermsItem["src"].isNull())
+			termsItemObject.src = dataNodetermstermsItem["src"].asString();
+		if(!dataNodetermstermsItem["tgt"].isNull())
+			termsItemObject.tgt = dataNodetermstermsItem["tgt"].asString();
+		data_.terms.push_back(termsItemObject);
+	}
+	if(!value["code"].isNull())
+		code_ = value["code"].asString();
+	if(!value["message"].isNull())
+		message_ = value["message"].asString();
+	if(!value["requestId"].isNull())
+		requestId_ = value["requestId"].asString();
+	if(!value["success"].isNull())
+		success_ = value["success"].asString() == "true";
+	if(!value["httpStatusCode"].isNull())
+		httpStatusCode_ = value["httpStatusCode"].asString();
+
+}
+
+std::string TermQueryResult::getMessage()const
+{
+	return message_;
+}
+
+std::string TermQueryResult::getRequestId()const
+{
+	return requestId_;
+}
+
+std::string TermQueryResult::getHttpStatusCode()const
+{
+	return httpStatusCode_;
+}
+
+TermQueryResult::Data TermQueryResult::getData()const
+{
+	return data_;
+}
+
+std::string TermQueryResult::getCode()const
+{
+	return code_;
+}
+
+bool TermQueryResult::getSuccess()const
+{
+	return success_;
+}
+

+ 2 - 0
anytrans/src/model/TextTranslateRequest.cc

@@ -42,10 +42,12 @@ void TextTranslateRequest::setExt(const TextTranslateRequest::ext &ext) {
   setBodyParameter(std::string("ext") + ".textTransform.toLower", ext.textTransform.toLower ? "true" : "false");
   setBodyParameter(std::string("ext") + ".textTransform.toUpper", ext.textTransform.toUpper ? "true" : "false");
   setBodyParameter(std::string("ext") + ".textTransform.toTitle", ext.textTransform.toTitle ? "true" : "false");
+  setBodyParameter(std::string("ext") + ".agent", ext.agent);
   for(int dep1 = 0; dep1 != ext.examples.size(); dep1++) {
     setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".tgt", ext.examples[dep1].tgt);
     setBodyParameter(std::string("ext") + ".examples." + std::to_string(dep1 + 1) + ".src", ext.examples[dep1].src);
   }
+  setBodyParameter(std::string("ext") + ".config.skipCsiCheck", ext.config.skipCsiCheck ? "true" : "false");
   setBodyParameter(std::string("ext") + ".domainHint", ext.domainHint);
 }