@alicloud/aidge20260428 5.4.0 → 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.
- package/dist/client.d.ts +151 -74
- package/dist/client.js +184 -74
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +2 -2
- package/dist/models/DocumentTranslateResponseBody.d.ts +2 -2
- package/dist/models/ImageTranslationProRequest.d.ts +9 -9
- package/dist/models/ImageTranslationProResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationStandardRequest.d.ts +4 -4
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +3 -3
- package/dist/models/TextTranslateRequest.d.ts +6 -6
- package/dist/models/TextTranslateResponseBody.d.ts +5 -5
- package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
- package/dist/models/VirtualTryOnRequest.d.ts +51 -0
- package/dist/models/VirtualTryOnRequest.js +64 -0
- package/dist/models/VirtualTryOnRequest.js.map +1 -0
- package/dist/models/VirtualTryOnResponse.d.ts +19 -0
- package/dist/models/VirtualTryOnResponse.js +69 -0
- package/dist/models/VirtualTryOnResponse.js.map +1 -0
- package/dist/models/VirtualTryOnResponseBody.d.ts +77 -0
- package/dist/models/VirtualTryOnResponseBody.js +93 -0
- package/dist/models/VirtualTryOnResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +11 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +190 -74
- package/src/models/DocumentTranslateRequest.ts +2 -2
- package/src/models/DocumentTranslateResponseBody.ts +2 -2
- package/src/models/ImageTranslationProRequest.ts +9 -9
- package/src/models/ImageTranslationProResponseBody.ts +5 -5
- package/src/models/ImageTranslationStandardRequest.ts +4 -4
- package/src/models/ImageTranslationStandardResponseBody.ts +3 -3
- package/src/models/TextTranslateRequest.ts +6 -6
- package/src/models/TextTranslateResponseBody.ts +5 -5
- package/src/models/TextTranslateShrinkRequest.ts +6 -6
- package/src/models/VirtualTryOnRequest.ts +70 -0
- package/src/models/VirtualTryOnResponse.ts +40 -0
- package/src/models/VirtualTryOnResponseBody.ts +114 -0
- package/src/models/model.ts +4 -0
|
@@ -265,7 +265,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
265
265
|
textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
|
|
266
266
|
/**
|
|
267
267
|
* @remarks
|
|
268
|
-
* Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
|
|
268
|
+
* Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is set to false.
|
|
269
269
|
*
|
|
270
270
|
* @example
|
|
271
271
|
* true
|
|
@@ -346,7 +346,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
346
346
|
* The original text before translation.
|
|
347
347
|
*
|
|
348
348
|
* @example
|
|
349
|
-
*
|
|
349
|
+
* Cute Design · Crisp Bell
|
|
350
350
|
*/
|
|
351
351
|
content?: string;
|
|
352
352
|
/**
|
|
@@ -595,7 +595,7 @@ export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
|
595
595
|
export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
596
596
|
/**
|
|
597
597
|
* @remarks
|
|
598
|
-
* The URL of the
|
|
598
|
+
* The URL of the image translation result image.
|
|
599
599
|
*
|
|
600
600
|
* @example
|
|
601
601
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -708,7 +708,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
708
708
|
data?: ImageTranslationProResponseBodyData;
|
|
709
709
|
/**
|
|
710
710
|
* @remarks
|
|
711
|
-
* The error message. "Success"
|
|
711
|
+
* The error message. Returns "Success" for a successful call. Returns a specific error message for an exception, such as "The content contains sensitive data. Try other input."
|
|
712
712
|
*
|
|
713
713
|
* @example
|
|
714
714
|
* Success
|
|
@@ -716,7 +716,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
716
716
|
message?: string;
|
|
717
717
|
/**
|
|
718
718
|
* @remarks
|
|
719
|
-
* The request ID
|
|
719
|
+
* The request ID. Used to uniquely identify a request.
|
|
720
720
|
*
|
|
721
721
|
* @example
|
|
722
722
|
* 61785C32-80C2-19A3-9E55-2C3702C84B40
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationStandardRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The intervention glossary ID. Optional. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, translation results are not modified.
|
|
8
|
+
* The intervention glossary ID. Optional. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* glossary_1
|
|
@@ -15,7 +15,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* - Image URL: Must be publicly accessible.
|
|
17
17
|
* - Format: png, jpeg, jpg, bmp, webp
|
|
18
|
-
* - Pixels:
|
|
18
|
+
* - Pixels: Both width and height must not exceed 4000
|
|
19
19
|
* - File size: Original file ≤ 10 MB
|
|
20
20
|
*
|
|
21
21
|
* This parameter is required.
|
|
@@ -26,7 +26,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
26
26
|
imageUrl?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* Specifies whether to translate text on the
|
|
29
|
+
* Specifies whether to translate text on the image subject. Optional. Default value: false. This helps protect information by avoiding translation of embedded information such as product names.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* false
|
|
@@ -62,7 +62,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
62
62
|
translatingBrandInTheProduct?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
* Specifies whether to return layer information such as text position, font, and color. If set to true, layer information is returned
|
|
65
|
+
* Specifies whether to return layer information such as text position, font, and color. If you set this parameter to true, layer information is returned, which can be used to integrate with image editors for secondary editing. Default value: false.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* false
|
|
@@ -568,7 +568,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
|
568
568
|
export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
569
569
|
/**
|
|
570
570
|
* @remarks
|
|
571
|
-
* The response code.
|
|
571
|
+
* The response code. 200 indicates success. For other response codes, refer to the error code information.
|
|
572
572
|
*
|
|
573
573
|
* @example
|
|
574
574
|
* 200
|
|
@@ -581,7 +581,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
581
581
|
data?: ImageTranslationStandardResponseBodyData;
|
|
582
582
|
/**
|
|
583
583
|
* @remarks
|
|
584
|
-
* The error message. "Success" is returned for successful
|
|
584
|
+
* The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call.
|
|
585
585
|
*
|
|
586
586
|
* @example
|
|
587
587
|
* Success
|
|
@@ -597,7 +597,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
597
597
|
requestId?: string;
|
|
598
598
|
/**
|
|
599
599
|
* @remarks
|
|
600
|
-
* Indicates whether the call is successful.
|
|
600
|
+
* Indicates whether the call is successful. true indicates success. false indicates failure.
|
|
601
601
|
*
|
|
602
602
|
* @example
|
|
603
603
|
* true
|
|
@@ -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
|
|
10
|
-
* ● If you are an external Alibaba partner,
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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,
|
|
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
|
|
10
|
-
* ● If you are an external Alibaba partner,
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
@@ -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
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -63,6 +63,7 @@ export { VideoGenerationRequestIntent } from './VideoGenerationRequest';
|
|
|
63
63
|
export { VideoGenerationRequestOutput } from './VideoGenerationRequest';
|
|
64
64
|
export { VideoGenerationResponseBodyData } from './VideoGenerationResponseBody';
|
|
65
65
|
export { VideoTranslationResponseBodyData } from './VideoTranslationResponseBody';
|
|
66
|
+
export { VirtualTryOnResponseBodyData } from './VirtualTryOnResponseBody';
|
|
66
67
|
export { VisionFlowResponseBodyData } from './VisionFlowResponseBody';
|
|
67
68
|
export { AssetOptimizeLiteRequest } from './AssetOptimizeLiteRequest';
|
|
68
69
|
export { AssetOptimizeLiteResponseBody } from './AssetOptimizeLiteResponseBody';
|
|
@@ -160,6 +161,9 @@ export { VideoTranslationRequest } from './VideoTranslationRequest';
|
|
|
160
161
|
export { VideoTranslationShrinkRequest } from './VideoTranslationShrinkRequest';
|
|
161
162
|
export { VideoTranslationResponseBody } from './VideoTranslationResponseBody';
|
|
162
163
|
export { VideoTranslationResponse } from './VideoTranslationResponse';
|
|
164
|
+
export { VirtualTryOnRequest } from './VirtualTryOnRequest';
|
|
165
|
+
export { VirtualTryOnResponseBody } from './VirtualTryOnResponseBody';
|
|
166
|
+
export { VirtualTryOnResponse } from './VirtualTryOnResponse';
|
|
163
167
|
export { VisionFlowRequest } from './VisionFlowRequest';
|
|
164
168
|
export { VisionFlowShrinkRequest } from './VisionFlowShrinkRequest';
|
|
165
169
|
export { VisionFlowResponseBody } from './VisionFlowResponseBody';
|