@alicloud/anytrans20250707 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/client.d.ts +18 -0
  2. package/dist/client.js +71 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BatchTranslateForHtmlRequest.d.ts +162 -0
  5. package/dist/models/BatchTranslateForHtmlRequest.js +206 -0
  6. package/dist/models/BatchTranslateForHtmlRequest.js.map +1 -0
  7. package/dist/models/BatchTranslateForHtmlResponse.d.ts +19 -0
  8. package/dist/models/BatchTranslateForHtmlResponse.js +69 -0
  9. package/dist/models/BatchTranslateForHtmlResponse.js.map +1 -0
  10. package/dist/models/BatchTranslateForHtmlResponseBody.d.ts +112 -0
  11. package/dist/models/BatchTranslateForHtmlResponseBody.js +146 -0
  12. package/dist/models/BatchTranslateForHtmlResponseBody.js.map +1 -0
  13. package/dist/models/BatchTranslateForHtmlShrinkRequest.d.ts +58 -0
  14. package/dist/models/BatchTranslateForHtmlShrinkRequest.js +72 -0
  15. package/dist/models/BatchTranslateForHtmlShrinkRequest.js.map +1 -0
  16. package/dist/models/SubmitHtmlTranslateTaskRequest.d.ts +1 -0
  17. package/dist/models/SubmitHtmlTranslateTaskRequest.js +2 -0
  18. package/dist/models/SubmitHtmlTranslateTaskRequest.js.map +1 -1
  19. package/dist/models/TextTranslateRequest.d.ts +1 -0
  20. package/dist/models/TextTranslateRequest.js +2 -0
  21. package/dist/models/TextTranslateRequest.js.map +1 -1
  22. package/dist/models/model.d.ts +12 -0
  23. package/dist/models/model.js +27 -2
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +83 -0
  27. package/src/models/BatchTranslateForHtmlRequest.ts +276 -0
  28. package/src/models/BatchTranslateForHtmlResponse.ts +40 -0
  29. package/src/models/BatchTranslateForHtmlResponseBody.ts +186 -0
  30. package/src/models/BatchTranslateForHtmlShrinkRequest.ts +85 -0
  31. package/src/models/SubmitHtmlTranslateTaskRequest.ts +3 -0
  32. package/src/models/TextTranslateRequest.ts +3 -0
  33. package/src/models/model.ts +12 -0
package/src/client.ts CHANGED
@@ -112,6 +112,89 @@ export default class Client extends OpenApi {
112
112
  return await this.batchTranslateWithOptions(request, headers, runtime);
113
113
  }
114
114
 
115
+ /**
116
+ * 通义多模态翻译批量翻译(供js sdk使用)
117
+ *
118
+ * @param tmpReq - BatchTranslateForHtmlRequest
119
+ * @param headers - map
120
+ * @param runtime - runtime options for this request RuntimeOptions
121
+ * @returns BatchTranslateForHtmlResponse
122
+ */
123
+ async batchTranslateForHtmlWithOptions(tmpReq: $_model.BatchTranslateForHtmlRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.BatchTranslateForHtmlResponse> {
124
+ tmpReq.validate();
125
+ let request = new $_model.BatchTranslateForHtmlShrinkRequest({ });
126
+ OpenApiUtil.convert(tmpReq, request);
127
+ if (!$dara.isNull(tmpReq.ext)) {
128
+ request.extShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.ext, "ext", "json");
129
+ }
130
+
131
+ if (!$dara.isNull(tmpReq.text)) {
132
+ request.textShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.text, "text", "json");
133
+ }
134
+
135
+ let body : {[key: string ]: any} = { };
136
+ if (!$dara.isNull(request.appName)) {
137
+ body["appName"] = request.appName;
138
+ }
139
+
140
+ if (!$dara.isNull(request.extShrink)) {
141
+ body["ext"] = request.extShrink;
142
+ }
143
+
144
+ if (!$dara.isNull(request.format)) {
145
+ body["format"] = request.format;
146
+ }
147
+
148
+ if (!$dara.isNull(request.scene)) {
149
+ body["scene"] = request.scene;
150
+ }
151
+
152
+ if (!$dara.isNull(request.sourceLanguage)) {
153
+ body["sourceLanguage"] = request.sourceLanguage;
154
+ }
155
+
156
+ if (!$dara.isNull(request.targetLanguage)) {
157
+ body["targetLanguage"] = request.targetLanguage;
158
+ }
159
+
160
+ if (!$dara.isNull(request.textShrink)) {
161
+ body["text"] = request.textShrink;
162
+ }
163
+
164
+ if (!$dara.isNull(request.workspaceId)) {
165
+ body["workspaceId"] = request.workspaceId;
166
+ }
167
+
168
+ let req = new $OpenApiUtil.OpenApiRequest({
169
+ headers: headers,
170
+ body: OpenApiUtil.parseToMap(body),
171
+ });
172
+ let params = new $OpenApiUtil.Params({
173
+ action: "BatchTranslateForHtml",
174
+ version: "2025-07-07",
175
+ protocol: "HTTPS",
176
+ pathname: `/anytrans/translate/batchForHtml`,
177
+ method: "POST",
178
+ authType: "AK",
179
+ style: "ROA",
180
+ reqBodyType: "formData",
181
+ bodyType: "json",
182
+ });
183
+ return $dara.cast<$_model.BatchTranslateForHtmlResponse>(await this.callApi(params, req, runtime), new $_model.BatchTranslateForHtmlResponse({}));
184
+ }
185
+
186
+ /**
187
+ * 通义多模态翻译批量翻译(供js sdk使用)
188
+ *
189
+ * @param request - BatchTranslateForHtmlRequest
190
+ * @returns BatchTranslateForHtmlResponse
191
+ */
192
+ async batchTranslateForHtml(request: $_model.BatchTranslateForHtmlRequest): Promise<$_model.BatchTranslateForHtmlResponse> {
193
+ let runtime = new $dara.RuntimeOptions({ });
194
+ let headers : {[key: string ]: string} = { };
195
+ return await this.batchTranslateForHtmlWithOptions(request, headers, runtime);
196
+ }
197
+
115
198
  /**
116
199
  * 通义多模态翻译获文档翻译任务
117
200
  *
@@ -0,0 +1,276 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class BatchTranslateForHtmlRequestExtConfig extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * fasle
9
+ */
10
+ skipCsiCheck?: boolean;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ skipCsiCheck: 'skipCsiCheck',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ skipCsiCheck: 'boolean',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
32
+ export class BatchTranslateForHtmlRequestExtExamples extends $dara.Model {
33
+ src?: string;
34
+ /**
35
+ * @example
36
+ * hello
37
+ */
38
+ tgt?: string;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ src: 'src',
42
+ tgt: 'tgt',
43
+ };
44
+ }
45
+
46
+ static types(): { [key: string]: any } {
47
+ return {
48
+ src: 'string',
49
+ tgt: 'string',
50
+ };
51
+ }
52
+
53
+ validate() {
54
+ super.validate();
55
+ }
56
+
57
+ constructor(map?: { [key: string]: any }) {
58
+ super(map);
59
+ }
60
+ }
61
+
62
+ export class BatchTranslateForHtmlRequestExtTerminologies extends $dara.Model {
63
+ src?: string;
64
+ /**
65
+ * @example
66
+ * API
67
+ */
68
+ tgt?: string;
69
+ static names(): { [key: string]: string } {
70
+ return {
71
+ src: 'src',
72
+ tgt: 'tgt',
73
+ };
74
+ }
75
+
76
+ static types(): { [key: string]: any } {
77
+ return {
78
+ src: 'string',
79
+ tgt: 'string',
80
+ };
81
+ }
82
+
83
+ validate() {
84
+ super.validate();
85
+ }
86
+
87
+ constructor(map?: { [key: string]: any }) {
88
+ super(map);
89
+ }
90
+ }
91
+
92
+ export class BatchTranslateForHtmlRequestExtTextTransform extends $dara.Model {
93
+ /**
94
+ * @example
95
+ * false
96
+ */
97
+ toLower?: boolean;
98
+ /**
99
+ * @example
100
+ * false
101
+ */
102
+ toTitle?: boolean;
103
+ /**
104
+ * @example
105
+ * false
106
+ */
107
+ toUpper?: boolean;
108
+ static names(): { [key: string]: string } {
109
+ return {
110
+ toLower: 'toLower',
111
+ toTitle: 'toTitle',
112
+ toUpper: 'toUpper',
113
+ };
114
+ }
115
+
116
+ static types(): { [key: string]: any } {
117
+ return {
118
+ toLower: 'boolean',
119
+ toTitle: 'boolean',
120
+ toUpper: 'boolean',
121
+ };
122
+ }
123
+
124
+ validate() {
125
+ super.validate();
126
+ }
127
+
128
+ constructor(map?: { [key: string]: any }) {
129
+ super(map);
130
+ }
131
+ }
132
+
133
+ export class BatchTranslateForHtmlRequestExt extends $dara.Model {
134
+ config?: BatchTranslateForHtmlRequestExtConfig;
135
+ /**
136
+ * @example
137
+ * this sentence from an e-commerce product image, please provide a translation that is both highly concise and no more than 1.2 times the length of the original.
138
+ */
139
+ domainHint?: string;
140
+ examples?: BatchTranslateForHtmlRequestExtExamples[];
141
+ sensitives?: string[];
142
+ terminologies?: BatchTranslateForHtmlRequestExtTerminologies[];
143
+ textTransform?: BatchTranslateForHtmlRequestExtTextTransform;
144
+ static names(): { [key: string]: string } {
145
+ return {
146
+ config: 'config',
147
+ domainHint: 'domainHint',
148
+ examples: 'examples',
149
+ sensitives: 'sensitives',
150
+ terminologies: 'terminologies',
151
+ textTransform: 'textTransform',
152
+ };
153
+ }
154
+
155
+ static types(): { [key: string]: any } {
156
+ return {
157
+ config: BatchTranslateForHtmlRequestExtConfig,
158
+ domainHint: 'string',
159
+ examples: { 'type': 'array', 'itemType': BatchTranslateForHtmlRequestExtExamples },
160
+ sensitives: { 'type': 'array', 'itemType': 'string' },
161
+ terminologies: { 'type': 'array', 'itemType': BatchTranslateForHtmlRequestExtTerminologies },
162
+ textTransform: BatchTranslateForHtmlRequestExtTextTransform,
163
+ };
164
+ }
165
+
166
+ validate() {
167
+ if(this.config && typeof (this.config as any).validate === 'function') {
168
+ (this.config as any).validate();
169
+ }
170
+ if(Array.isArray(this.examples)) {
171
+ $dara.Model.validateArray(this.examples);
172
+ }
173
+ if(Array.isArray(this.sensitives)) {
174
+ $dara.Model.validateArray(this.sensitives);
175
+ }
176
+ if(Array.isArray(this.terminologies)) {
177
+ $dara.Model.validateArray(this.terminologies);
178
+ }
179
+ if(this.textTransform && typeof (this.textTransform as any).validate === 'function') {
180
+ (this.textTransform as any).validate();
181
+ }
182
+ super.validate();
183
+ }
184
+
185
+ constructor(map?: { [key: string]: any }) {
186
+ super(map);
187
+ }
188
+ }
189
+
190
+ export class BatchTranslateForHtmlRequest extends $dara.Model {
191
+ /**
192
+ * @example
193
+ * baidufanyi
194
+ */
195
+ appName?: string;
196
+ ext?: BatchTranslateForHtmlRequestExt;
197
+ /**
198
+ * @example
199
+ * text
200
+ */
201
+ format?: string;
202
+ /**
203
+ * @example
204
+ * mt-turbo
205
+ */
206
+ scene?: string;
207
+ /**
208
+ * @remarks
209
+ * This parameter is required.
210
+ *
211
+ * @example
212
+ * zh
213
+ */
214
+ sourceLanguage?: string;
215
+ /**
216
+ * @remarks
217
+ * This parameter is required.
218
+ *
219
+ * @example
220
+ * en
221
+ */
222
+ targetLanguage?: string;
223
+ /**
224
+ * @remarks
225
+ * This parameter is required.
226
+ */
227
+ text?: { [key: string]: any };
228
+ /**
229
+ * @remarks
230
+ * This parameter is required.
231
+ *
232
+ * @example
233
+ * llm-kqtrcpdee4xm29xx
234
+ */
235
+ workspaceId?: string;
236
+ static names(): { [key: string]: string } {
237
+ return {
238
+ appName: 'appName',
239
+ ext: 'ext',
240
+ format: 'format',
241
+ scene: 'scene',
242
+ sourceLanguage: 'sourceLanguage',
243
+ targetLanguage: 'targetLanguage',
244
+ text: 'text',
245
+ workspaceId: 'workspaceId',
246
+ };
247
+ }
248
+
249
+ static types(): { [key: string]: any } {
250
+ return {
251
+ appName: 'string',
252
+ ext: BatchTranslateForHtmlRequestExt,
253
+ format: 'string',
254
+ scene: 'string',
255
+ sourceLanguage: 'string',
256
+ targetLanguage: 'string',
257
+ text: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
258
+ workspaceId: 'string',
259
+ };
260
+ }
261
+
262
+ validate() {
263
+ if(this.ext && typeof (this.ext as any).validate === 'function') {
264
+ (this.ext as any).validate();
265
+ }
266
+ if(this.text) {
267
+ $dara.Model.validateMap(this.text);
268
+ }
269
+ super.validate();
270
+ }
271
+
272
+ constructor(map?: { [key: string]: any }) {
273
+ super(map);
274
+ }
275
+ }
276
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { BatchTranslateForHtmlResponseBody } from "./BatchTranslateForHtmlResponseBody";
4
+
5
+
6
+ export class BatchTranslateForHtmlResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: BatchTranslateForHtmlResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: BatchTranslateForHtmlResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,186 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class BatchTranslateForHtmlResponseBodyDataTranslationListUsage extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 53
9
+ */
10
+ inputTokens?: number;
11
+ /**
12
+ * @example
13
+ * 8
14
+ */
15
+ outputTokens?: number;
16
+ /**
17
+ * @example
18
+ * 61
19
+ */
20
+ totalTokens?: number;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ inputTokens: 'inputTokens',
24
+ outputTokens: 'outputTokens',
25
+ totalTokens: 'totalTokens',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ inputTokens: 'number',
32
+ outputTokens: 'number',
33
+ totalTokens: 'number',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
46
+ export class BatchTranslateForHtmlResponseBodyDataTranslationList extends $dara.Model {
47
+ /**
48
+ * @example
49
+ * 200
50
+ */
51
+ code?: number;
52
+ /**
53
+ * @example
54
+ * 0
55
+ */
56
+ index?: string;
57
+ /**
58
+ * @example
59
+ * OK
60
+ */
61
+ message?: string;
62
+ /**
63
+ * @example
64
+ * What will the weather be like tomorrow?
65
+ */
66
+ translation?: string;
67
+ usage?: BatchTranslateForHtmlResponseBodyDataTranslationListUsage;
68
+ static names(): { [key: string]: string } {
69
+ return {
70
+ code: 'code',
71
+ index: 'index',
72
+ message: 'message',
73
+ translation: 'translation',
74
+ usage: 'usage',
75
+ };
76
+ }
77
+
78
+ static types(): { [key: string]: any } {
79
+ return {
80
+ code: 'number',
81
+ index: 'string',
82
+ message: 'string',
83
+ translation: 'string',
84
+ usage: BatchTranslateForHtmlResponseBodyDataTranslationListUsage,
85
+ };
86
+ }
87
+
88
+ validate() {
89
+ if(this.usage && typeof (this.usage as any).validate === 'function') {
90
+ (this.usage as any).validate();
91
+ }
92
+ super.validate();
93
+ }
94
+
95
+ constructor(map?: { [key: string]: any }) {
96
+ super(map);
97
+ }
98
+ }
99
+
100
+ export class BatchTranslateForHtmlResponseBodyData extends $dara.Model {
101
+ translationList?: BatchTranslateForHtmlResponseBodyDataTranslationList[];
102
+ static names(): { [key: string]: string } {
103
+ return {
104
+ translationList: 'translationList',
105
+ };
106
+ }
107
+
108
+ static types(): { [key: string]: any } {
109
+ return {
110
+ translationList: { 'type': 'array', 'itemType': BatchTranslateForHtmlResponseBodyDataTranslationList },
111
+ };
112
+ }
113
+
114
+ validate() {
115
+ if(Array.isArray(this.translationList)) {
116
+ $dara.Model.validateArray(this.translationList);
117
+ }
118
+ super.validate();
119
+ }
120
+
121
+ constructor(map?: { [key: string]: any }) {
122
+ super(map);
123
+ }
124
+ }
125
+
126
+ export class BatchTranslateForHtmlResponseBody extends $dara.Model {
127
+ /**
128
+ * @example
129
+ * 200
130
+ */
131
+ code?: string;
132
+ data?: BatchTranslateForHtmlResponseBodyData;
133
+ /**
134
+ * @example
135
+ * 200
136
+ */
137
+ httpStatusCode?: string;
138
+ /**
139
+ * @example
140
+ * success
141
+ */
142
+ message?: string;
143
+ /**
144
+ * @example
145
+ * 3BE338D3-16B1-513F-8DD2-57C8528DEAAA
146
+ */
147
+ requestId?: string;
148
+ /**
149
+ * @example
150
+ * true
151
+ */
152
+ success?: boolean;
153
+ static names(): { [key: string]: string } {
154
+ return {
155
+ code: 'code',
156
+ data: 'data',
157
+ httpStatusCode: 'httpStatusCode',
158
+ message: 'message',
159
+ requestId: 'requestId',
160
+ success: 'success',
161
+ };
162
+ }
163
+
164
+ static types(): { [key: string]: any } {
165
+ return {
166
+ code: 'string',
167
+ data: BatchTranslateForHtmlResponseBodyData,
168
+ httpStatusCode: 'string',
169
+ message: 'string',
170
+ requestId: 'string',
171
+ success: 'boolean',
172
+ };
173
+ }
174
+
175
+ validate() {
176
+ if(this.data && typeof (this.data as any).validate === 'function') {
177
+ (this.data as any).validate();
178
+ }
179
+ super.validate();
180
+ }
181
+
182
+ constructor(map?: { [key: string]: any }) {
183
+ super(map);
184
+ }
185
+ }
186
+
@@ -0,0 +1,85 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class BatchTranslateForHtmlShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * baidufanyi
9
+ */
10
+ appName?: string;
11
+ extShrink?: string;
12
+ /**
13
+ * @example
14
+ * text
15
+ */
16
+ format?: string;
17
+ /**
18
+ * @example
19
+ * mt-turbo
20
+ */
21
+ scene?: string;
22
+ /**
23
+ * @remarks
24
+ * This parameter is required.
25
+ *
26
+ * @example
27
+ * zh
28
+ */
29
+ sourceLanguage?: string;
30
+ /**
31
+ * @remarks
32
+ * This parameter is required.
33
+ *
34
+ * @example
35
+ * en
36
+ */
37
+ targetLanguage?: string;
38
+ /**
39
+ * @remarks
40
+ * This parameter is required.
41
+ */
42
+ textShrink?: string;
43
+ /**
44
+ * @remarks
45
+ * This parameter is required.
46
+ *
47
+ * @example
48
+ * llm-kqtrcpdee4xm29xx
49
+ */
50
+ workspaceId?: string;
51
+ static names(): { [key: string]: string } {
52
+ return {
53
+ appName: 'appName',
54
+ extShrink: 'ext',
55
+ format: 'format',
56
+ scene: 'scene',
57
+ sourceLanguage: 'sourceLanguage',
58
+ targetLanguage: 'targetLanguage',
59
+ textShrink: 'text',
60
+ workspaceId: 'workspaceId',
61
+ };
62
+ }
63
+
64
+ static types(): { [key: string]: any } {
65
+ return {
66
+ appName: 'string',
67
+ extShrink: 'string',
68
+ format: 'string',
69
+ scene: 'string',
70
+ sourceLanguage: 'string',
71
+ targetLanguage: 'string',
72
+ textShrink: 'string',
73
+ workspaceId: 'string',
74
+ };
75
+ }
76
+
77
+ validate() {
78
+ super.validate();
79
+ }
80
+
81
+ constructor(map?: { [key: string]: any }) {
82
+ super(map);
83
+ }
84
+ }
85
+
@@ -3,15 +3,18 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class SubmitHtmlTranslateTaskRequestExtConfig extends $dara.Model {
6
+ callbackUrl?: string;
6
7
  skipCsiCheck?: boolean;
7
8
  static names(): { [key: string]: string } {
8
9
  return {
10
+ callbackUrl: 'callbackUrl',
9
11
  skipCsiCheck: 'skipCsiCheck',
10
12
  };
11
13
  }
12
14
 
13
15
  static types(): { [key: string]: any } {
14
16
  return {
17
+ callbackUrl: 'string',
15
18
  skipCsiCheck: 'boolean',
16
19
  };
17
20
  }
@@ -127,6 +127,7 @@ export class TextTranslateRequestExtTextTransform extends $dara.Model {
127
127
  }
128
128
 
129
129
  export class TextTranslateRequestExt extends $dara.Model {
130
+ agent?: string;
130
131
  config?: TextTranslateRequestExtConfig;
131
132
  /**
132
133
  * @example
@@ -139,6 +140,7 @@ export class TextTranslateRequestExt extends $dara.Model {
139
140
  textTransform?: TextTranslateRequestExtTextTransform;
140
141
  static names(): { [key: string]: string } {
141
142
  return {
143
+ agent: 'agent',
142
144
  config: 'config',
143
145
  domainHint: 'domainHint',
144
146
  examples: 'examples',
@@ -150,6 +152,7 @@ export class TextTranslateRequestExt extends $dara.Model {
150
152
 
151
153
  static types(): { [key: string]: any } {
152
154
  return {
155
+ agent: 'string',
153
156
  config: TextTranslateRequestExtConfig,
154
157
  domainHint: 'string',
155
158
  examples: { 'type': 'array', 'itemType': TextTranslateRequestExtExamples },