@alicloud/aidge20260428 5.3.2 → 5.5.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 (64) hide show
  1. package/dist/client.d.ts +248 -110
  2. package/dist/client.js +316 -113
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DocumentTranslateRequest.d.ts +2 -2
  5. package/dist/models/DocumentTranslateResponseBody.d.ts +2 -2
  6. package/dist/models/EcomVideoRecreationRequest.d.ts +156 -0
  7. package/dist/models/EcomVideoRecreationRequest.js +150 -0
  8. package/dist/models/EcomVideoRecreationRequest.js.map +1 -0
  9. package/dist/models/EcomVideoRecreationResponse.d.ts +19 -0
  10. package/dist/models/EcomVideoRecreationResponse.js +69 -0
  11. package/dist/models/EcomVideoRecreationResponse.js.map +1 -0
  12. package/dist/models/EcomVideoRecreationResponseBody.d.ts +70 -0
  13. package/dist/models/EcomVideoRecreationResponseBody.js +88 -0
  14. package/dist/models/EcomVideoRecreationResponseBody.js.map +1 -0
  15. package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +25 -0
  16. package/dist/models/EcomVideoRecreationShrinkRequest.js +60 -0
  17. package/dist/models/EcomVideoRecreationShrinkRequest.js.map +1 -0
  18. package/dist/models/ImageTranslationProRequest.d.ts +9 -9
  19. package/dist/models/ImageTranslationProResponseBody.d.ts +5 -5
  20. package/dist/models/ImageTranslationStandardRequest.d.ts +4 -4
  21. package/dist/models/ImageTranslationStandardResponseBody.d.ts +3 -3
  22. package/dist/models/LanguageDetectRequest.d.ts +1 -1
  23. package/dist/models/LanguageDetectResponseBody.d.ts +2 -2
  24. package/dist/models/TextTranslateRequest.d.ts +6 -6
  25. package/dist/models/TextTranslateResponseBody.d.ts +5 -5
  26. package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
  27. package/dist/models/VideoGenerationRequest.d.ts +45 -8
  28. package/dist/models/VideoGenerationRequest.js.map +1 -1
  29. package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
  30. package/dist/models/VirtualTryOnRequest.d.ts +51 -0
  31. package/dist/models/VirtualTryOnRequest.js +64 -0
  32. package/dist/models/VirtualTryOnRequest.js.map +1 -0
  33. package/dist/models/VirtualTryOnResponse.d.ts +19 -0
  34. package/dist/models/VirtualTryOnResponse.js +69 -0
  35. package/dist/models/VirtualTryOnResponse.js.map +1 -0
  36. package/dist/models/VirtualTryOnResponseBody.d.ts +77 -0
  37. package/dist/models/VirtualTryOnResponseBody.js +93 -0
  38. package/dist/models/VirtualTryOnResponseBody.js.map +1 -0
  39. package/dist/models/model.d.ts +12 -0
  40. package/dist/models/model.js +28 -4
  41. package/dist/models/model.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/client.ts +328 -113
  44. package/src/models/DocumentTranslateRequest.ts +2 -2
  45. package/src/models/DocumentTranslateResponseBody.ts +2 -2
  46. package/src/models/EcomVideoRecreationRequest.ts +234 -0
  47. package/src/models/EcomVideoRecreationResponse.ts +40 -0
  48. package/src/models/EcomVideoRecreationResponseBody.ts +104 -0
  49. package/src/models/EcomVideoRecreationShrinkRequest.ts +40 -0
  50. package/src/models/ImageTranslationProRequest.ts +9 -9
  51. package/src/models/ImageTranslationProResponseBody.ts +5 -5
  52. package/src/models/ImageTranslationStandardRequest.ts +4 -4
  53. package/src/models/ImageTranslationStandardResponseBody.ts +3 -3
  54. package/src/models/LanguageDetectRequest.ts +1 -1
  55. package/src/models/LanguageDetectResponseBody.ts +2 -2
  56. package/src/models/TextTranslateRequest.ts +6 -6
  57. package/src/models/TextTranslateResponseBody.ts +5 -5
  58. package/src/models/TextTranslateShrinkRequest.ts +6 -6
  59. package/src/models/VideoGenerationRequest.ts +45 -8
  60. package/src/models/VideoGenerationResponseBody.ts +5 -5
  61. package/src/models/VirtualTryOnRequest.ts +70 -0
  62. package/src/models/VirtualTryOnResponse.ts +40 -0
  63. package/src/models/VirtualTryOnResponseBody.ts +114 -0
  64. package/src/models/model.ts +12 -0
@@ -6,8 +6,8 @@ export class TextTranslateRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
8
  * This field represents your identity and facilitates communication for various issues.
9
- * ● If you are an internal Alibaba organization, pass a value based on your actual scenario, such as BU name-product or BU name-chat.
10
- * ● If you are an external Alibaba partner, pass the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
9
+ * ● If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat.
10
+ * ● If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
11
11
  *
12
12
  * @example
13
13
  * MyCompany-Chat
@@ -15,7 +15,7 @@ export class TextTranslateRequest extends $dara.Model {
15
15
  bizName?: string;
16
16
  /**
17
17
  * @remarks
18
- * 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).
18
+ * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format, which preserves HTML tags).
19
19
  *
20
20
  * @example
21
21
  * text
@@ -31,7 +31,7 @@ export class TextTranslateRequest extends $dara.Model {
31
31
  glossary?: string;
32
32
  /**
33
33
  * @remarks
34
- * The source language code. If not specified, the language is automatically detected. This parameter is optional. You can pass auto for language detection. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
34
+ * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can set this parameter to auto for language detection. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
35
35
  *
36
36
  * @example
37
37
  * auto
@@ -39,7 +39,7 @@ export class TextTranslateRequest extends $dara.Model {
39
39
  sourceLanguage?: string;
40
40
  /**
41
41
  * @remarks
42
- * The list of texts to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
42
+ * 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.
43
43
  *
44
44
  * This parameter is required.
45
45
  *
@@ -59,7 +59,7 @@ export class TextTranslateRequest extends $dara.Model {
59
59
  targetLanguage?: string;
60
60
  /**
61
61
  * @remarks
62
- * The business scenario identifier. You can pass only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used.
62
+ * The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used.
63
63
  * Valid values:
64
64
  * ● e-commerce-title: cross-border e-commerce product title translation
65
65
  * ● e-commerce-description: cross-border e-commerce product description translation
@@ -60,7 +60,7 @@ export class TextTranslateResponseBodyData extends $dara.Model {
60
60
  translations?: TextTranslateResponseBodyDataTranslations[];
61
61
  /**
62
62
  * @remarks
63
- * The usage information, including the input character count.
63
+ * The usage information, including the number of input characters.
64
64
  *
65
65
  * @example
66
66
  * {"InputCharacterCount":5}
@@ -98,7 +98,7 @@ export class TextTranslateResponseBodyData extends $dara.Model {
98
98
  export class TextTranslateResponseBody extends $dara.Model {
99
99
  /**
100
100
  * @remarks
101
- * The response code. Returns "success" for successful calls.
101
+ * The response code. The value "success" is returned for successful calls.
102
102
  *
103
103
  * @example
104
104
  * success
@@ -111,7 +111,7 @@ export class TextTranslateResponseBody extends $dara.Model {
111
111
  data?: TextTranslateResponseBodyData;
112
112
  /**
113
113
  * @remarks
114
- * The error message. Returns "Success" for successful calls. Returns specific error information for exceptions, such as "The parameters contain sensitive information. Try other input."
114
+ * The error message. The value "Success" is returned for successful calls. For exceptions, a specific error message is returned, such as "The parameters contain sensitive information. Try other input."
115
115
  *
116
116
  * @example
117
117
  * Success
@@ -119,7 +119,7 @@ export class TextTranslateResponseBody extends $dara.Model {
119
119
  message?: string;
120
120
  /**
121
121
  * @remarks
122
- * The request ID, used to identify a unique request call.
122
+ * The request ID, which uniquely identifies a single API call.
123
123
  *
124
124
  * @example
125
125
  * 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
@@ -127,7 +127,7 @@ export class TextTranslateResponseBody extends $dara.Model {
127
127
  requestId?: string;
128
128
  /**
129
129
  * @remarks
130
- * Indicates whether the call is successful. true indicates success. false indicates failure.
130
+ * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
131
131
  *
132
132
  * @example
133
133
  * true
@@ -6,8 +6,8 @@ export class TextTranslateShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
8
  * This field represents your identity and facilitates communication for various issues.
9
- * ● If you are an internal Alibaba organization, pass a value based on your actual scenario, such as BU name-product or BU name-chat.
10
- * ● If you are an external Alibaba partner, pass the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
9
+ * ● If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat.
10
+ * ● If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
11
11
  *
12
12
  * @example
13
13
  * MyCompany-Chat
@@ -15,7 +15,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
15
15
  bizName?: string;
16
16
  /**
17
17
  * @remarks
18
- * 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).
18
+ * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format, which preserves HTML tags).
19
19
  *
20
20
  * @example
21
21
  * text
@@ -31,7 +31,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
31
31
  glossary?: string;
32
32
  /**
33
33
  * @remarks
34
- * The source language code. If not specified, the language is automatically detected. This parameter is optional. You can pass auto for language detection. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
34
+ * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can set this parameter to auto for language detection. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
35
35
  *
36
36
  * @example
37
37
  * auto
@@ -39,7 +39,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
39
39
  sourceLanguage?: string;
40
40
  /**
41
41
  * @remarks
42
- * The list of texts to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
42
+ * 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.
43
43
  *
44
44
  * This parameter is required.
45
45
  *
@@ -59,7 +59,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
59
59
  targetLanguage?: string;
60
60
  /**
61
61
  * @remarks
62
- * The business scenario identifier. You can pass only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used.
62
+ * The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used.
63
63
  * Valid values:
64
64
  * ● e-commerce-title: cross-border e-commerce product title translation
65
65
  * ● e-commerce-description: cross-border e-commerce product description translation
@@ -13,14 +13,18 @@ export class VideoGenerationRequestInputAssetBindings extends $dara.Model {
13
13
  assetIndex?: number;
14
14
  /**
15
15
  * @remarks
16
- * The natural language description of the asset.
16
+ * The asset description.
17
+ *
18
+ * @example
19
+ * -
17
20
  */
18
21
  description?: string;
19
22
  /**
20
23
  * @remarks
21
- * Valid values:
22
- * - look_reference: appearance reference.
23
- * - scene_reference: scene reference.
24
+ * The asset usage.
25
+ *
26
+ * @example
27
+ * -
24
28
  */
25
29
  slot?: string;
26
30
  static names(): { [key: string]: string } {
@@ -51,7 +55,7 @@ export class VideoGenerationRequestInputAssetBindings extends $dara.Model {
51
55
  export class VideoGenerationRequestInput extends $dara.Model {
52
56
  /**
53
57
  * @remarks
54
- * Specifies the purpose and description of images by asset index.
58
+ * The asset binding list.
55
59
  */
56
60
  assetBindings?: VideoGenerationRequestInputAssetBindings[];
57
61
  /**
@@ -123,15 +127,48 @@ export class VideoGenerationRequestIntent extends $dara.Model {
123
127
  channel?: string;
124
128
  /**
125
129
  * @remarks
126
- * The business goal.
130
+ * The business goal. Valid values:
131
+ *
132
+ * camera_motion: Camera movement mode. Generates video based on fixed 360° camera movement logic.
133
+ *
134
+ * scripted_video: Scripted mode. Provides a script or prompt, and the system generates video based on the script.
135
+ *
136
+ * auto_video: Unscripted mode. No script is provided. The system automatically plans the script and then generates the video.
127
137
  *
128
138
  * @example
129
- * -
139
+ * auto_video
130
140
  */
131
141
  goal?: string;
132
142
  /**
133
143
  * @remarks
134
- * Required when goal is set to scripted_video.
144
+ * The script or prompt.
145
+ *
146
+ * @example
147
+ * 【2. Shot Breakdown】
148
+ * [0-1s]【Eye-level close-up, static camera】Summer commute trousers folded on a clean tabletop; one corner is quickly unfolded to reveal the solid-color fabric and crisp crease line. The frame focuses on the trouser leg\\"s surface smoothness and sharp appearance. [BGM/SFX: Upbeat, crisp commute-vibe background music begins]
149
+ *
150
+ * [1-2s]【Low-angle mid-shot, static camera】The full pair of trousers hangs freely in the air with a slight swing, showcasing the natural drape of the lightweight fabric and the complete straight-leg silhouette, then returns to a still, hanging state.
151
+ *
152
+ * [2-3s]【Eye-level mid-shot, static camera】A commute-styled model stands in a fitting area, holding the folded trousers at waist level with both hands, performing one up-and-down sizing gesture before holding them steady, displaying the overall proportions of the trousers in their folded state and the expected fit. [[Voiceover]: Who says wearing trousers in summer has to be stuffy? Most likely you just haven\\"t picked the right pair.]
153
+ *
154
+ * [3-5s]【Eye-level full shot, slight pullback】The commute-styled model, now wearing the trousers paired with a clean commute top, takes two steps forward in a modern office building corridor, dynamically showcasing the front straight-leg silhouette, trouser leg lines, and commute outfit coordination.
155
+ *
156
+ * [5-7s]【Low-angle mid-shot, static camera】The commute-styled model shifts to an angled side stance, one hand in the front pocket and the other in the back pocket, displaying the cut from waist and hip down to the knee, the solid-color surface, and the clean lateral lines.
157
+ *
158
+ * [7-9s]【Eye-level mid-shot, static camera】The commute-styled model lifts one foot onto a low step, one hand brushes down the lower-leg trouser fabric and lightly lifts the hem, briefly exposing the ankle, showcasing the hem edge, side-seam details, and the wearing state during movement. [[Voiceover]: These ice-skin trousers are lightweight and breathable, solid-color straight-leg — looking sharp and at ease even when walking around at work.]
159
+ *
160
+ * [9-11s]【Overhead close-up, static camera】The lens focuses closely on the waistband area; the commute-styled model presses both hands along the waistband contour and smooths it, then pauses to display the seams and actual wearing state, clearly presenting the waistband shape and structural details.
161
+ *
162
+ * [11-13s]【Eye-level close-up, static camera】The commute-styled model gently lifts the fabric on both sides of the thigh with both hands, then raises one knee with a slight lateral turn before returning to a natural stance, demonstrating the actual range of motion during knee-lift and side-turn, as well as how the straight-leg trouser recovers after the foot lands.
163
+ *
164
+ * [13-15s]【Eye-level close-up, static camera】The commute-styled model enters the frame from the rear side, places one hand in the back pocket, then lightly traces along the back pocket edge and rear waist seam, showcasing the back pocket contour, pocket opening edge, and rear waist seam details up close. [[Voiceover]: If you\\"re always on the move, there\\"s room for knee lifts and side turns — commuting just got easier.]
165
+ *
166
+ * [15-17s]【Eye-level mid-shot, static camera】The commute-styled model faces away to display the rear silhouette of the trousers, hands naturally in pockets with a slight weight shift, then turns slightly to an angled side view so both the rear and lateral trouser lines are visible, fully presenting the rear cut and the overall line from hip and thigh down to the hem.
167
+ *
168
+ * [17-19s]【Eye-level full shot, smooth follow】The commute-styled model first walks sideways to the right, then transitions into a forward stride to complete the full presentation, finishing in the modern office building corridor in full commute attire, clearly showing the front straight-leg silhouette, clean lines, and overall fit. [[Voiceover]: If you like this fit, go check out the details.]
169
+ *
170
+ * 【3. Negative/Constraint Instructions】
171
+ * The entire video centers on the summer commute trousers; no unrelated products or multi-person interactions are allowed.
135
172
  */
136
173
  script?: string;
137
174
  static names(): { [key: string]: string } {
@@ -45,7 +45,7 @@ export class VideoGenerationResponseBodyData extends $dara.Model {
45
45
  export class VideoGenerationResponseBody extends $dara.Model {
46
46
  /**
47
47
  * @remarks
48
- * The response code. A value of success indicates a successful call, and failed indicates a failure.
48
+ * The response code. A value of success indicates a successful call, and a value of failed indicates a failed call.
49
49
  *
50
50
  * @example
51
51
  * success
@@ -53,12 +53,12 @@ export class VideoGenerationResponseBody extends $dara.Model {
53
53
  code?: string;
54
54
  /**
55
55
  * @remarks
56
- * The struct of the returned result.
56
+ * The response struct.
57
57
  */
58
58
  data?: VideoGenerationResponseBodyData;
59
59
  /**
60
60
  * @remarks
61
- * The returned message. Returns the fault message upon failure.
61
+ * The response message. An error message is returned if the call fails.
62
62
  *
63
63
  * @example
64
64
  * Success
@@ -66,7 +66,7 @@ export class VideoGenerationResponseBody extends $dara.Model {
66
66
  message?: string;
67
67
  /**
68
68
  * @remarks
69
- * The request ID, used to identify a unique request call.
69
+ * The request ID, which uniquely identifies a single API call.
70
70
  *
71
71
  * @example
72
72
  * 70CBEFDF-BB17-1EB3-8A21-569F3124738F
@@ -74,7 +74,7 @@ export class VideoGenerationResponseBody extends $dara.Model {
74
74
  requestId?: string;
75
75
  /**
76
76
  * @remarks
77
- * Indicates whether the call is successful. A value of true indicates success, and false indicates failure.
77
+ * Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
78
78
  *
79
79
  * @example
80
80
  * true
@@ -0,0 +1,70 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class VirtualTryOnRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The URL of the garment image. Only one image is supported. The URL must be a publicly accessible `http`/`https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 2049 × 2049 pixels, and a file size of no more than 10 MB.<br>
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
14
+ */
15
+ clothImageUrl?: string;
16
+ /**
17
+ * @remarks
18
+ * The garment type. Valid values: tops, bottoms, dresses, tops_and_bottoms, shoes, and hats. If this parameter is not specified, the system automatically identifies the garment type.
19
+ *
20
+ * @example
21
+ * tops
22
+ */
23
+ clothType?: string;
24
+ /**
25
+ * @remarks
26
+ * The URL of the model image. Only one image is supported. The URL must be a publicly accessible `http`/`https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 2049 × 2049 pixels, and a file size of no more than 10 MB.<br>
27
+ *
28
+ * This parameter is required.
29
+ *
30
+ * @example
31
+ * https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
32
+ */
33
+ modelImageUrl?: string;
34
+ /**
35
+ * @remarks
36
+ * Required. The image resolution. Valid values: 1K and 2K.
37
+ *
38
+ * This parameter is required.
39
+ *
40
+ * @example
41
+ * 1K
42
+ */
43
+ resolution?: string;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ clothImageUrl: 'ClothImageUrl',
47
+ clothType: 'ClothType',
48
+ modelImageUrl: 'ModelImageUrl',
49
+ resolution: 'Resolution',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ clothImageUrl: 'string',
56
+ clothType: 'string',
57
+ modelImageUrl: 'string',
58
+ resolution: 'string',
59
+ };
60
+ }
61
+
62
+ validate() {
63
+ super.validate();
64
+ }
65
+
66
+ constructor(map?: { [key: string]: any }) {
67
+ super(map);
68
+ }
69
+ }
70
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { VirtualTryOnResponseBody } from "./VirtualTryOnResponseBody";
4
+
5
+
6
+ export class VirtualTryOnResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: VirtualTryOnResponseBody;
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: VirtualTryOnResponseBody,
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,114 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class VirtualTryOnResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The asynchronous task ID. Used to query the task result later.
9
+ *
10
+ * @example
11
+ * task-xxxx-xxxx-xxxx
12
+ */
13
+ taskId?: string;
14
+ /**
15
+ * @remarks
16
+ * The usage details.
17
+ */
18
+ usageMap?: { [key: string]: any };
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ taskId: 'TaskId',
22
+ usageMap: 'UsageMap',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ taskId: 'string',
29
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ if(this.usageMap) {
35
+ $dara.Model.validateMap(this.usageMap);
36
+ }
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class VirtualTryOnResponseBody extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * The error code. This parameter is not returned if the call is successful.
49
+ *
50
+ * @example
51
+ * 200
52
+ */
53
+ code?: string;
54
+ /**
55
+ * @remarks
56
+ * The returned result struct.
57
+ */
58
+ data?: VirtualTryOnResponseBodyData;
59
+ /**
60
+ * @remarks
61
+ * The error message. This parameter is not returned if the call is successful.
62
+ *
63
+ * @example
64
+ * OK
65
+ */
66
+ message?: string;
67
+ /**
68
+ * @remarks
69
+ * The request ID. Used to uniquely identify a single API call.
70
+ *
71
+ * @example
72
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
73
+ */
74
+ requestId?: string;
75
+ /**
76
+ * @remarks
77
+ * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
78
+ *
79
+ * @example
80
+ * True
81
+ */
82
+ success?: boolean;
83
+ static names(): { [key: string]: string } {
84
+ return {
85
+ code: 'Code',
86
+ data: 'Data',
87
+ message: 'Message',
88
+ requestId: 'RequestId',
89
+ success: 'Success',
90
+ };
91
+ }
92
+
93
+ static types(): { [key: string]: any } {
94
+ return {
95
+ code: 'string',
96
+ data: VirtualTryOnResponseBodyData,
97
+ message: 'string',
98
+ requestId: 'string',
99
+ success: 'boolean',
100
+ };
101
+ }
102
+
103
+ validate() {
104
+ if(this.data && typeof (this.data as any).validate === 'function') {
105
+ (this.data as any).validate();
106
+ }
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
@@ -10,6 +10,10 @@ export { DiduiAreaDeductionResponseBodyDataResultStage4AreaLabel } from './Didui
10
10
  export { DiduiAreaDeductionResponseBodyDataResult } from './DiduiAreaDeductionResponseBody';
11
11
  export { DiduiAreaDeductionResponseBodyData } from './DiduiAreaDeductionResponseBody';
12
12
  export { DocumentTranslateResponseBodyData } from './DocumentTranslateResponseBody';
13
+ export { EcomVideoRecreationRequestInputProductInfo } from './EcomVideoRecreationRequest';
14
+ export { EcomVideoRecreationRequestInput } from './EcomVideoRecreationRequest';
15
+ export { EcomVideoRecreationRequestOutput } from './EcomVideoRecreationRequest';
16
+ export { EcomVideoRecreationResponseBodyData } from './EcomVideoRecreationResponseBody';
13
17
  export { ImageCroppingResponseBodyData } from './ImageCroppingResponseBody';
14
18
  export { ImageMattingResponseBodyData } from './ImageMattingResponseBody';
15
19
  export { ImageRecognitionResponseBodyData } from './ImageRecognitionResponseBody';
@@ -59,6 +63,7 @@ export { VideoGenerationRequestIntent } from './VideoGenerationRequest';
59
63
  export { VideoGenerationRequestOutput } from './VideoGenerationRequest';
60
64
  export { VideoGenerationResponseBodyData } from './VideoGenerationResponseBody';
61
65
  export { VideoTranslationResponseBodyData } from './VideoTranslationResponseBody';
66
+ export { VirtualTryOnResponseBodyData } from './VirtualTryOnResponseBody';
62
67
  export { VisionFlowResponseBodyData } from './VisionFlowResponseBody';
63
68
  export { AssetOptimizeLiteRequest } from './AssetOptimizeLiteRequest';
64
69
  export { AssetOptimizeLiteResponseBody } from './AssetOptimizeLiteResponseBody';
@@ -81,6 +86,10 @@ export { DiduiAreaDeductionResponse } from './DiduiAreaDeductionResponse';
81
86
  export { DocumentTranslateRequest } from './DocumentTranslateRequest';
82
87
  export { DocumentTranslateResponseBody } from './DocumentTranslateResponseBody';
83
88
  export { DocumentTranslateResponse } from './DocumentTranslateResponse';
89
+ export { EcomVideoRecreationRequest } from './EcomVideoRecreationRequest';
90
+ export { EcomVideoRecreationShrinkRequest } from './EcomVideoRecreationShrinkRequest';
91
+ export { EcomVideoRecreationResponseBody } from './EcomVideoRecreationResponseBody';
92
+ export { EcomVideoRecreationResponse } from './EcomVideoRecreationResponse';
84
93
  export { ImageCroppingRequest } from './ImageCroppingRequest';
85
94
  export { ImageCroppingResponseBody } from './ImageCroppingResponseBody';
86
95
  export { ImageCroppingResponse } from './ImageCroppingResponse';
@@ -152,6 +161,9 @@ export { VideoTranslationRequest } from './VideoTranslationRequest';
152
161
  export { VideoTranslationShrinkRequest } from './VideoTranslationShrinkRequest';
153
162
  export { VideoTranslationResponseBody } from './VideoTranslationResponseBody';
154
163
  export { VideoTranslationResponse } from './VideoTranslationResponse';
164
+ export { VirtualTryOnRequest } from './VirtualTryOnRequest';
165
+ export { VirtualTryOnResponseBody } from './VirtualTryOnResponseBody';
166
+ export { VirtualTryOnResponse } from './VirtualTryOnResponse';
155
167
  export { VisionFlowRequest } from './VisionFlowRequest';
156
168
  export { VisionFlowShrinkRequest } from './VisionFlowShrinkRequest';
157
169
  export { VisionFlowResponseBody } from './VisionFlowResponseBody';