@alicloud/aidge20260428 3.0.1 → 3.1.1

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 (41) hide show
  1. package/dist/client.d.ts +99 -32
  2. package/dist/client.js +140 -32
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ImageTranslationStandardRequest.d.ts +17 -6
  5. package/dist/models/ImageTranslationStandardRequest.js +2 -0
  6. package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
  7. package/dist/models/ImageTranslationStandardResponseBody.d.ts +365 -4
  8. package/dist/models/ImageTranslationStandardResponseBody.js +224 -1
  9. package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
  10. package/dist/models/TextTranslateRequest.d.ts +11 -5
  11. package/dist/models/TextTranslateRequest.js.map +1 -1
  12. package/dist/models/TextTranslateResponseBody.d.ts +4 -4
  13. package/dist/models/TextTranslateShrinkRequest.d.ts +11 -5
  14. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  15. package/dist/models/VideoTranslationRequest.d.ts +39 -0
  16. package/dist/models/VideoTranslationRequest.js +67 -0
  17. package/dist/models/VideoTranslationRequest.js.map +1 -0
  18. package/dist/models/VideoTranslationResponse.d.ts +19 -0
  19. package/dist/models/VideoTranslationResponse.js +69 -0
  20. package/dist/models/VideoTranslationResponse.js.map +1 -0
  21. package/dist/models/VideoTranslationResponseBody.d.ts +51 -0
  22. package/dist/models/VideoTranslationResponseBody.js +88 -0
  23. package/dist/models/VideoTranslationResponseBody.js.map +1 -0
  24. package/dist/models/VideoTranslationShrinkRequest.d.ts +39 -0
  25. package/dist/models/VideoTranslationShrinkRequest.js +64 -0
  26. package/dist/models/VideoTranslationShrinkRequest.js.map +1 -0
  27. package/dist/models/model.d.ts +11 -0
  28. package/dist/models/model.js +28 -6
  29. package/dist/models/model.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/client.ts +148 -32
  32. package/src/models/ImageTranslationStandardRequest.ts +19 -6
  33. package/src/models/ImageTranslationStandardResponseBody.ts +534 -4
  34. package/src/models/TextTranslateRequest.ts +11 -5
  35. package/src/models/TextTranslateResponseBody.ts +4 -4
  36. package/src/models/TextTranslateShrinkRequest.ts +11 -5
  37. package/src/models/VideoTranslationRequest.ts +61 -0
  38. package/src/models/VideoTranslationResponse.ts +40 -0
  39. package/src/models/VideoTranslationResponseBody.ts +85 -0
  40. package/src/models/VideoTranslationShrinkRequest.ts +58 -0
  41. package/src/models/model.ts +11 -0
@@ -4,13 +4,16 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class TextTranslateShrinkRequest extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * The business scenario identifier. Optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or invalid, the general translation strategy is used by default.
9
+ *
7
10
  * @example
8
11
  * MyCompany-Chat
9
12
  */
10
13
  bizName?: string;
11
14
  /**
12
15
  * @remarks
13
- * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
16
+ * The format type of the source text. Optional. Supports text (plain text format) and html (web page format, preserving HTML tags).
14
17
  *
15
18
  * @example
16
19
  * text
@@ -18,7 +21,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
18
21
  formatType?: string;
19
22
  /**
20
23
  * @remarks
21
- * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console and its ID provided here. If the glossary ID is empty, the translation result is not modified.
24
+ * The intervention glossary ID. Optional. The glossary must be created separately in the console and its ID provided. If the glossary ID is empty, the translation result is not modified.
22
25
  *
23
26
  * @example
24
27
  * glossary_1
@@ -26,7 +29,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
26
29
  glossary?: string;
27
30
  /**
28
31
  * @remarks
29
- * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
32
+ * The source language code. Optional. If not specified, the language is automatically detected. You can pass auto for language detection.
30
33
  *
31
34
  * @example
32
35
  * auto
@@ -34,7 +37,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
34
37
  sourceLanguage?: string;
35
38
  /**
36
39
  * @remarks
37
- * The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
40
+ * The list of texts to translate. Required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
38
41
  *
39
42
  * This parameter is required.
40
43
  *
@@ -44,7 +47,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
44
47
  sourceTextListShrink?: string;
45
48
  /**
46
49
  * @remarks
47
- * The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
50
+ * The target language code. Required. Supports more than 100 language directions. For details, refer to the supported language directions list.
48
51
  *
49
52
  * This parameter is required.
50
53
  *
@@ -53,6 +56,9 @@ export class TextTranslateShrinkRequest extends $dara.Model {
53
56
  */
54
57
  targetLanguage?: string;
55
58
  /**
59
+ * @remarks
60
+ * The format of the translation text. **html** (web page format. This setting processes both the source text and translated text in HTML format). **text** (text format. This setting processes both the source text and translated result as plain text without format processing).
61
+ *
56
62
  * @example
57
63
  * e-commerce-title
58
64
  */
@@ -0,0 +1,61 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class VideoTranslationRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ capabilities?: string[];
11
+ /**
12
+ * @example
13
+ * zh
14
+ */
15
+ sourceLanguage?: string;
16
+ /**
17
+ * @remarks
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * ru
22
+ */
23
+ targetLanguage?: string;
24
+ /**
25
+ * @remarks
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * https://example.com/video.mp4
30
+ */
31
+ videoUrl?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ capabilities: 'Capabilities',
35
+ sourceLanguage: 'SourceLanguage',
36
+ targetLanguage: 'TargetLanguage',
37
+ videoUrl: 'VideoUrl',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ capabilities: { 'type': 'array', 'itemType': 'string' },
44
+ sourceLanguage: 'string',
45
+ targetLanguage: 'string',
46
+ videoUrl: 'string',
47
+ };
48
+ }
49
+
50
+ validate() {
51
+ if(Array.isArray(this.capabilities)) {
52
+ $dara.Model.validateArray(this.capabilities);
53
+ }
54
+ super.validate();
55
+ }
56
+
57
+ constructor(map?: { [key: string]: any }) {
58
+ super(map);
59
+ }
60
+ }
61
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { VideoTranslationResponseBody } from "./VideoTranslationResponseBody";
4
+
5
+
6
+ export class VideoTranslationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: VideoTranslationResponseBody;
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: VideoTranslationResponseBody,
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,85 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class VideoTranslationResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 0ea3b66e88a543658520c994f08896a0
9
+ */
10
+ taskId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ taskId: 'TaskId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ taskId: 'string',
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 VideoTranslationResponseBody extends $dara.Model {
33
+ /**
34
+ * @example
35
+ * Processing
36
+ */
37
+ code?: string;
38
+ data?: VideoTranslationResponseBodyData;
39
+ /**
40
+ * @example
41
+ * Translation processing
42
+ */
43
+ message?: string;
44
+ /**
45
+ * @example
46
+ * req_20260608_jkl012
47
+ */
48
+ requestId?: string;
49
+ /**
50
+ * @example
51
+ * True
52
+ */
53
+ success?: boolean;
54
+ static names(): { [key: string]: string } {
55
+ return {
56
+ code: 'Code',
57
+ data: 'Data',
58
+ message: 'Message',
59
+ requestId: 'RequestId',
60
+ success: 'Success',
61
+ };
62
+ }
63
+
64
+ static types(): { [key: string]: any } {
65
+ return {
66
+ code: 'string',
67
+ data: VideoTranslationResponseBodyData,
68
+ message: 'string',
69
+ requestId: 'string',
70
+ success: 'boolean',
71
+ };
72
+ }
73
+
74
+ validate() {
75
+ if(this.data && typeof (this.data as any).validate === 'function') {
76
+ (this.data as any).validate();
77
+ }
78
+ super.validate();
79
+ }
80
+
81
+ constructor(map?: { [key: string]: any }) {
82
+ super(map);
83
+ }
84
+ }
85
+
@@ -0,0 +1,58 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class VideoTranslationShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ capabilitiesShrink?: string;
11
+ /**
12
+ * @example
13
+ * zh
14
+ */
15
+ sourceLanguage?: string;
16
+ /**
17
+ * @remarks
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * ru
22
+ */
23
+ targetLanguage?: string;
24
+ /**
25
+ * @remarks
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * https://example.com/video.mp4
30
+ */
31
+ videoUrl?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ capabilitiesShrink: 'Capabilities',
35
+ sourceLanguage: 'SourceLanguage',
36
+ targetLanguage: 'TargetLanguage',
37
+ videoUrl: 'VideoUrl',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ capabilitiesShrink: 'string',
44
+ sourceLanguage: 'string',
45
+ targetLanguage: 'string',
46
+ videoUrl: 'string',
47
+ };
48
+ }
49
+
50
+ validate() {
51
+ super.validate();
52
+ }
53
+
54
+ constructor(map?: { [key: string]: any }) {
55
+ super(map);
56
+ }
57
+ }
58
+
@@ -20,6 +20,12 @@ export { ImageTranslationProResponseBodyDataGenFilesResultList } from './ImageTr
20
20
  export { ImageTranslationProResponseBodyDataGenFiles } from './ImageTranslationProResponseBody';
21
21
  export { ImageTranslationProResponseBodyDataResultList } from './ImageTranslationProResponseBody';
22
22
  export { ImageTranslationProResponseBodyData } from './ImageTranslationProResponseBody';
23
+ export { ImageTranslationStandardResponseBodyDataEditInfoGoodsRects } from './ImageTranslationStandardResponseBody';
24
+ export { ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect } from './ImageTranslationStandardResponseBody';
25
+ export { ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect } from './ImageTranslationStandardResponseBody';
26
+ export { ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts } from './ImageTranslationStandardResponseBody';
27
+ export { ImageTranslationStandardResponseBodyDataEditInfoTextAreas } from './ImageTranslationStandardResponseBody';
28
+ export { ImageTranslationStandardResponseBodyDataEditInfo } from './ImageTranslationStandardResponseBody';
23
29
  export { ImageTranslationStandardResponseBodyData } from './ImageTranslationStandardResponseBody';
24
30
  export { LanguageDetectResponseBodyData } from './LanguageDetectResponseBody';
25
31
  export { MaterialInspectionResponseBodyDataResultSteps } from './MaterialInspectionResponseBody';
@@ -32,6 +38,7 @@ export { SizeChartExtractResponseBodyData } from './SizeChartExtractResponseBody
32
38
  export { TextCorrectResponseBodyData } from './TextCorrectResponseBody';
33
39
  export { TextTranslateResponseBodyDataTranslations } from './TextTranslateResponseBody';
34
40
  export { TextTranslateResponseBodyData } from './TextTranslateResponseBody';
41
+ export { VideoTranslationResponseBodyData } from './VideoTranslationResponseBody';
35
42
  export { VisionFlowResponseBodyData } from './VisionFlowResponseBody';
36
43
  export { AssetOptimizeLiteRequest } from './AssetOptimizeLiteRequest';
37
44
  export { AssetOptimizeLiteResponseBody } from './AssetOptimizeLiteResponseBody';
@@ -99,6 +106,10 @@ export { TextTranslateRequest } from './TextTranslateRequest';
99
106
  export { TextTranslateShrinkRequest } from './TextTranslateShrinkRequest';
100
107
  export { TextTranslateResponseBody } from './TextTranslateResponseBody';
101
108
  export { TextTranslateResponse } from './TextTranslateResponse';
109
+ export { VideoTranslationRequest } from './VideoTranslationRequest';
110
+ export { VideoTranslationShrinkRequest } from './VideoTranslationShrinkRequest';
111
+ export { VideoTranslationResponseBody } from './VideoTranslationResponseBody';
112
+ export { VideoTranslationResponse } from './VideoTranslationResponse';
102
113
  export { VisionFlowRequest } from './VisionFlowRequest';
103
114
  export { VisionFlowShrinkRequest } from './VisionFlowShrinkRequest';
104
115
  export { VisionFlowResponseBody } from './VisionFlowResponseBody';