@alicloud/aidge20260428 5.10.1 → 5.12.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 +816 -672
- package/dist/client.js +900 -672
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeRequest.d.ts +2 -2
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +7 -7
- package/dist/models/AiTryOnRequest.d.ts +3 -3
- package/dist/models/AiTryOnResponseBody.d.ts +2 -4
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/AssetOptimizeLiteRequest.d.ts +1 -1
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +2 -2
- package/dist/models/AssetOptimizeProRequest.d.ts +12 -12
- package/dist/models/AssetOptimizeProResponseBody.d.ts +6 -6
- package/dist/models/AssetOptimizeProShrinkRequest.d.ts +12 -12
- package/dist/models/CategoryAttributeMatchRequest.d.ts +9 -9
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +13 -13
- package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +9 -9
- package/dist/models/CategoryMatchRequest.d.ts +10 -10
- package/dist/models/CategoryMatchResponseBody.d.ts +12 -12
- package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +1 -1
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +8 -8
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +1 -1
- package/dist/models/DiduiAreaDeductionProResponseBody.d.ts +4 -4
- package/dist/models/DiduiAreaDeductionRequest.d.ts +8 -8
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +6 -6
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +3 -3
- package/dist/models/DocumentTranslateRequest.d.ts +6 -7
- package/dist/models/DocumentTranslateRequest.js.map +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +8 -6
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/EcomVideoRecreationRequest.d.ts +15 -15
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +1 -1
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
- package/dist/models/GeneralRephotographyDetectionRequest.d.ts +1 -1
- package/dist/models/GeneralRephotographyDetectionResponseBody.d.ts +11 -11
- package/dist/models/GenerateProductContentRequest.d.ts +119 -0
- package/dist/models/GenerateProductContentRequest.js +80 -0
- package/dist/models/GenerateProductContentRequest.js.map +1 -0
- package/dist/models/GenerateProductContentResponse.d.ts +19 -0
- package/dist/models/GenerateProductContentResponse.js +69 -0
- package/dist/models/GenerateProductContentResponse.js.map +1 -0
- package/dist/models/GenerateProductContentResponseBody.d.ts +111 -0
- package/dist/models/GenerateProductContentResponseBody.js +109 -0
- package/dist/models/GenerateProductContentResponseBody.js.map +1 -0
- package/dist/models/ImageCroppingRequest.d.ts +1 -1
- package/dist/models/ImageCroppingResponseBody.d.ts +1 -3
- package/dist/models/ImageCroppingResponseBody.js.map +1 -1
- package/dist/models/ImageMattingAsyncRequest.d.ts +2 -2
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +4 -6
- package/dist/models/ImageMattingAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +5 -6
- package/dist/models/ImageMattingRequest.js.map +1 -1
- package/dist/models/ImageMattingResponseBody.d.ts +26 -7
- package/dist/models/ImageMattingResponseBody.js +2 -0
- package/dist/models/ImageMattingResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +10 -35
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +5 -7
- package/dist/models/ImageRecognitionAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +10 -35
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageRecognitionRequest.d.ts +4 -4
- package/dist/models/ImageRecognitionResponseBody.d.ts +7 -7
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +2 -3
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageRemovalProRequest.d.ts +2 -3
- package/dist/models/ImageRemovalProRequest.js.map +1 -1
- package/dist/models/ImageRemovalProResponseBody.d.ts +6 -6
- package/dist/models/ImageRemoveAsyncRequest.d.ts +7 -18
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +5 -7
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +7 -18
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +10 -10
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +6 -6
- package/dist/models/ImageTranslationPlusRequest.d.ts +2 -2
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +6 -6
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationProRequest.d.ts +16 -17
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +24 -26
- package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +2 -2
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +3 -3
- package/dist/models/ImageTranslationStandardRequest.d.ts +12 -12
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +54 -9
- package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
- package/dist/models/ImageUpscaleRequest.d.ts +31 -0
- package/dist/models/ImageUpscaleRequest.js +60 -0
- package/dist/models/ImageUpscaleRequest.js.map +1 -0
- package/dist/models/ImageUpscaleResponse.d.ts +19 -0
- package/dist/models/ImageUpscaleResponse.js +69 -0
- package/dist/models/ImageUpscaleResponse.js.map +1 -0
- package/dist/models/ImageUpscaleResponseBody.d.ts +160 -0
- package/dist/models/ImageUpscaleResponseBody.js +146 -0
- package/dist/models/ImageUpscaleResponseBody.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeRequest.d.ts +1 -1
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +11 -11
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +1 -1
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +3 -3
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +2 -2
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +3 -3
- package/dist/models/TextTranslateAsyncRequest.d.ts +12 -12
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +3 -3
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +12 -12
- package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +1 -1
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +6 -6
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +1 -1
- package/dist/models/VideoTranslationRequest.d.ts +17 -8
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +6 -4
- package/dist/models/VideoTranslationResponseBody.js.map +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +17 -8
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/VirtualTryOnRequest.d.ts +3 -3
- package/dist/models/VirtualTryOnResponseBody.d.ts +7 -5
- package/dist/models/VirtualTryOnResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +27 -7
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +918 -672
- package/src/models/AddDisplayKnowledgeRequest.ts +2 -2
- package/src/models/AddDisplayKnowledgeResponseBody.ts +7 -7
- package/src/models/AiTryOnRequest.ts +3 -3
- package/src/models/AiTryOnResponseBody.ts +2 -4
- package/src/models/AssetOptimizeLiteRequest.ts +1 -1
- package/src/models/AssetOptimizeLiteResponseBody.ts +2 -2
- package/src/models/AssetOptimizeProRequest.ts +12 -12
- package/src/models/AssetOptimizeProResponseBody.ts +6 -6
- package/src/models/AssetOptimizeProShrinkRequest.ts +12 -12
- package/src/models/CategoryAttributeMatchRequest.ts +9 -9
- package/src/models/CategoryAttributeMatchResponseBody.ts +13 -13
- package/src/models/CategoryAttributeMatchShrinkRequest.ts +9 -9
- package/src/models/CategoryMatchRequest.ts +10 -10
- package/src/models/CategoryMatchResponseBody.ts +12 -12
- package/src/models/DeleteDisplayKnowledgeRequest.ts +1 -1
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +8 -8
- package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +1 -1
- package/src/models/DiduiAreaDeductionProResponseBody.ts +4 -4
- package/src/models/DiduiAreaDeductionRequest.ts +8 -8
- package/src/models/DiduiAreaDeductionResponseBody.ts +6 -6
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +3 -3
- package/src/models/DocumentTranslateRequest.ts +6 -7
- package/src/models/DocumentTranslateResponseBody.ts +8 -6
- package/src/models/EcomVideoRecreationRequest.ts +15 -15
- package/src/models/EcomVideoRecreationResponseBody.ts +1 -1
- package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
- package/src/models/GeneralRephotographyDetectionRequest.ts +1 -1
- package/src/models/GeneralRephotographyDetectionResponseBody.ts +11 -11
- package/src/models/GenerateProductContentRequest.ts +154 -0
- package/src/models/GenerateProductContentResponse.ts +40 -0
- package/src/models/GenerateProductContentResponseBody.ts +164 -0
- package/src/models/ImageCroppingRequest.ts +1 -1
- package/src/models/ImageCroppingResponseBody.ts +1 -3
- package/src/models/ImageMattingAsyncRequest.ts +2 -2
- package/src/models/ImageMattingAsyncResponseBody.ts +4 -6
- package/src/models/ImageMattingRequest.ts +5 -6
- package/src/models/ImageMattingResponseBody.ts +28 -7
- package/src/models/ImageRecognitionAsyncRequest.ts +10 -35
- package/src/models/ImageRecognitionAsyncResponseBody.ts +5 -7
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +10 -35
- package/src/models/ImageRecognitionRequest.ts +4 -4
- package/src/models/ImageRecognitionResponseBody.ts +7 -7
- package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
- package/src/models/ImageRemovalProAsyncRequest.ts +2 -3
- package/src/models/ImageRemovalProAsyncResponseBody.ts +5 -5
- package/src/models/ImageRemovalProRequest.ts +2 -3
- package/src/models/ImageRemovalProResponseBody.ts +6 -6
- package/src/models/ImageRemoveAsyncRequest.ts +7 -18
- package/src/models/ImageRemoveAsyncResponseBody.ts +5 -7
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +7 -18
- package/src/models/ImageTranslationPlusAsyncRequest.ts +10 -10
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +6 -6
- package/src/models/ImageTranslationPlusRequest.ts +2 -2
- package/src/models/ImageTranslationPlusResponseBody.ts +5 -5
- package/src/models/ImageTranslationProAsyncRequest.ts +6 -6
- package/src/models/ImageTranslationProAsyncResponseBody.ts +5 -5
- package/src/models/ImageTranslationProRequest.ts +17 -18
- package/src/models/ImageTranslationProResponseBody.ts +24 -26
- package/src/models/ImageTranslationStandardAsyncRequest.ts +2 -2
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +3 -3
- package/src/models/ImageTranslationStandardRequest.ts +12 -12
- package/src/models/ImageTranslationStandardResponseBody.ts +54 -9
- package/src/models/ImageUpscaleRequest.ts +46 -0
- package/src/models/ImageUpscaleResponse.ts +40 -0
- package/src/models/ImageUpscaleResponseBody.ts +234 -0
- package/src/models/QueryDisplayKnowledgeRequest.ts +1 -1
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +11 -11
- package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +1 -1
- package/src/models/SizeChartExtractAsyncRequest.ts +3 -3
- package/src/models/SizeChartExtractAsyncResponseBody.ts +2 -2
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +3 -3
- package/src/models/TextTranslateAsyncRequest.ts +12 -12
- package/src/models/TextTranslateAsyncResponseBody.ts +3 -3
- package/src/models/TextTranslateAsyncShrinkRequest.ts +12 -12
- package/src/models/UpdateDisplayKnowledgeRequest.ts +1 -1
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +6 -6
- package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +1 -1
- package/src/models/VideoTranslationRequest.ts +17 -8
- package/src/models/VideoTranslationResponseBody.ts +6 -4
- package/src/models/VideoTranslationShrinkRequest.ts +17 -8
- package/src/models/VirtualTryOnRequest.ts +3 -3
- package/src/models/VirtualTryOnResponseBody.ts +7 -5
- package/src/models/model.ts +10 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class GenerateProductContentRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* Takes effect only when contentType is set to bulletPoint. Valid values: 1 to 5. Default value in generate mode: 1. In rewrite mode, if manually specified, the value must match the number of non-empty paragraphs in sourceText. This parameter is ignored for other copy types.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* 5
|
|
9
|
+
*/
|
|
10
|
+
bulletPointCount?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The copy type. Valid values: title, highlight, keywords, bulletPoint, and description. When a platform is specified, you must select a type supported by the platform.
|
|
14
|
+
*
|
|
15
|
+
* This parameter is required.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* description
|
|
19
|
+
*/
|
|
20
|
+
contentType?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* Specifies whether to enable translation. Default value: false. Valid values: true and false.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* True
|
|
27
|
+
*/
|
|
28
|
+
enableTranslation?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* The maximum number of characters for the final output text. If specified, the value must be an integer greater than or equal to 30. If a platform is specified and this parameter is not provided, the configured upper limit for the content type on the platform is used. Example: 60.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* 1000
|
|
35
|
+
*/
|
|
36
|
+
maxLength?: number;
|
|
37
|
+
/**
|
|
38
|
+
* @remarks
|
|
39
|
+
* The minimum number of characters for the final output text. If specified, the value must be an integer greater than or equal to 10. If a platform is specified and this parameter is not provided, the configured lower limit for the content type on the platform is used.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* 500
|
|
43
|
+
*/
|
|
44
|
+
minLength?: number;
|
|
45
|
+
/**
|
|
46
|
+
* @remarks
|
|
47
|
+
* The operation type. Valid values:
|
|
48
|
+
* - generate: Generates copy.
|
|
49
|
+
* - rewrite: Rewrites copy.
|
|
50
|
+
*
|
|
51
|
+
* This parameter is required.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* generate
|
|
55
|
+
*/
|
|
56
|
+
operation?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* The target platform. Valid values: amazon, temu, tiktok, shopify, Wildberries, and tmall. If this parameter is not provided, the request is processed as a general scenario. Enum values are case-sensitive.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* amazon
|
|
63
|
+
*/
|
|
64
|
+
platform?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* The product attribute information. Default value: empty. The length must be 0 to 500 characters.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* {"brand":"Supor","material":"304 stainless steel"}
|
|
71
|
+
*/
|
|
72
|
+
productAttributes?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @remarks
|
|
75
|
+
* The product category. Default value: an empty string. The length must be 0 to 100 characters. This parameter helps understand the category during generation and eliminates ambiguity during rewriting.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* Kitchen utensils
|
|
79
|
+
*/
|
|
80
|
+
productCategory?: string;
|
|
81
|
+
/**
|
|
82
|
+
* @remarks
|
|
83
|
+
* The source language. Valid values: zh and en. Automatic language detection is not supported. Supported source languages: Chinese (zh) and English (en).
|
|
84
|
+
*
|
|
85
|
+
* This parameter is required.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* zh
|
|
89
|
+
*/
|
|
90
|
+
sourceLanguage?: string;
|
|
91
|
+
/**
|
|
92
|
+
* @remarks
|
|
93
|
+
* The product information or copy to be rewritten. The length must be 20 to 3,000 characters.
|
|
94
|
+
*
|
|
95
|
+
* This parameter is required.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* Stainless steel 28 cm 3-tier large-capacity steamer for home kitchens
|
|
99
|
+
*/
|
|
100
|
+
sourceText?: string;
|
|
101
|
+
/**
|
|
102
|
+
* @remarks
|
|
103
|
+
* Required when enableTranslation is set to true. For valid values, see the multilingual processing section. If translation is disabled, this parameter is optional. If provided, it must be the same as the source language. Supported target languages: Chinese (zh), English (en), Russian (ru), German (de), French (fr), Korean (ko), Italian (it), Thai (th), Arabic (ar), Turkish (tr), Hebrew (he), Ukrainian (uk), Polish (pl), Japanese (ja), Dutch (nl), Portuguese (pt), Spanish (es), Malay (ms), Bulgarian (bg), Indonesian (id), and Vietnamese (vi).
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* en
|
|
107
|
+
*/
|
|
108
|
+
targetLanguage?: string;
|
|
109
|
+
static names(): {
|
|
110
|
+
[key: string]: string;
|
|
111
|
+
};
|
|
112
|
+
static types(): {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
};
|
|
115
|
+
validate(): void;
|
|
116
|
+
constructor(map?: {
|
|
117
|
+
[key: string]: any;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.GenerateProductContentRequest = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class GenerateProductContentRequest extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
bulletPointCount: 'BulletPointCount',
|
|
43
|
+
contentType: 'ContentType',
|
|
44
|
+
enableTranslation: 'EnableTranslation',
|
|
45
|
+
maxLength: 'MaxLength',
|
|
46
|
+
minLength: 'MinLength',
|
|
47
|
+
operation: 'Operation',
|
|
48
|
+
platform: 'Platform',
|
|
49
|
+
productAttributes: 'ProductAttributes',
|
|
50
|
+
productCategory: 'ProductCategory',
|
|
51
|
+
sourceLanguage: 'SourceLanguage',
|
|
52
|
+
sourceText: 'SourceText',
|
|
53
|
+
targetLanguage: 'TargetLanguage',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static types() {
|
|
57
|
+
return {
|
|
58
|
+
bulletPointCount: 'number',
|
|
59
|
+
contentType: 'string',
|
|
60
|
+
enableTranslation: 'boolean',
|
|
61
|
+
maxLength: 'number',
|
|
62
|
+
minLength: 'number',
|
|
63
|
+
operation: 'string',
|
|
64
|
+
platform: 'string',
|
|
65
|
+
productAttributes: 'string',
|
|
66
|
+
productCategory: 'string',
|
|
67
|
+
sourceLanguage: 'string',
|
|
68
|
+
sourceText: 'string',
|
|
69
|
+
targetLanguage: 'string',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
validate() {
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
constructor(map) {
|
|
76
|
+
super(map);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.GenerateProductContentRequest = GenerateProductContentRequest;
|
|
80
|
+
//# sourceMappingURL=GenerateProductContentRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenerateProductContentRequest.js","sourceRoot":"","sources":["../../src/models/GenerateProductContentRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IA2G5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,WAAW,EAAE,aAAa;YAC1B,iBAAiB,EAAE,mBAAmB;YACtC,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;YACpB,iBAAiB,EAAE,mBAAmB;YACtC,eAAe,EAAE,iBAAiB;YAClC,cAAc,EAAE,gBAAgB;YAChC,UAAU,EAAE,YAAY;YACxB,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,WAAW,EAAE,QAAQ;YACrB,iBAAiB,EAAE,SAAS;YAC5B,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;YAClB,iBAAiB,EAAE,QAAQ;YAC3B,eAAe,EAAE,QAAQ;YACzB,cAAc,EAAE,QAAQ;YACxB,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApJD,sEAoJC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
import { GenerateProductContentResponseBody } from "./GenerateProductContentResponseBody";
|
|
3
|
+
export declare class GenerateProductContentResponse extends $dara.Model {
|
|
4
|
+
headers?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
body?: GenerateProductContentResponseBody;
|
|
9
|
+
static names(): {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
static types(): {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
validate(): void;
|
|
16
|
+
constructor(map?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.GenerateProductContentResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const GenerateProductContentResponseBody_1 = require("./GenerateProductContentResponseBody");
|
|
40
|
+
class GenerateProductContentResponse extends $dara.Model {
|
|
41
|
+
static names() {
|
|
42
|
+
return {
|
|
43
|
+
headers: 'headers',
|
|
44
|
+
statusCode: 'statusCode',
|
|
45
|
+
body: 'body',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static types() {
|
|
49
|
+
return {
|
|
50
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
51
|
+
statusCode: 'number',
|
|
52
|
+
body: GenerateProductContentResponseBody_1.GenerateProductContentResponseBody,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
validate() {
|
|
56
|
+
if (this.headers) {
|
|
57
|
+
$dara.Model.validateMap(this.headers);
|
|
58
|
+
}
|
|
59
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
60
|
+
this.body.validate();
|
|
61
|
+
}
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
constructor(map) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.GenerateProductContentResponse = GenerateProductContentResponse;
|
|
69
|
+
//# sourceMappingURL=GenerateProductContentResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenerateProductContentResponse.js","sourceRoot":"","sources":["../../src/models/GenerateProductContentResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class GenerateProductContentResponseBodyData extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The actual copy type processed.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* title
|
|
9
|
+
*/
|
|
10
|
+
contentType?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The total number of characters in data.text, including formatting characters such as spaces, punctuation marks, and line breaks.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* 54
|
|
17
|
+
*/
|
|
18
|
+
length?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The code of the actual output language.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ru
|
|
25
|
+
*/
|
|
26
|
+
outputLanguage?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* The number of characters for each selling point, which corresponds to data.points one by one. This parameter is returned only when bullet points are successfully processed.
|
|
30
|
+
*/
|
|
31
|
+
pointLengths?: number[];
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The selling point texts arranged in output order. This parameter is returned only when bullet points are successfully processed.
|
|
35
|
+
*/
|
|
36
|
+
points?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* @remarks
|
|
39
|
+
* The final copy. Generated keywords are separated by commas and spaces. Rewritten keywords are separated by spaces. Bullet points are separated by line breaks.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* Чашка Для Мороженого Из Нержавеющей Стали 14,5x10,8 см
|
|
43
|
+
*/
|
|
44
|
+
text?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @remarks
|
|
47
|
+
* The usage information.
|
|
48
|
+
*/
|
|
49
|
+
usageMap?: {
|
|
50
|
+
[key: string]: number;
|
|
51
|
+
};
|
|
52
|
+
static names(): {
|
|
53
|
+
[key: string]: string;
|
|
54
|
+
};
|
|
55
|
+
static types(): {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
58
|
+
validate(): void;
|
|
59
|
+
constructor(map?: {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export declare class GenerateProductContentResponseBody extends $dara.Model {
|
|
64
|
+
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* The error code. This parameter is not returned for successful calls.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* success
|
|
70
|
+
*/
|
|
71
|
+
code?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* The processing result. Contains copy data upon success. Returns null upon business failure.
|
|
75
|
+
*/
|
|
76
|
+
data?: GenerateProductContentResponseBodyData;
|
|
77
|
+
/**
|
|
78
|
+
* @remarks
|
|
79
|
+
* The error message. This parameter is not returned for successful calls.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* OK
|
|
83
|
+
*/
|
|
84
|
+
message?: string;
|
|
85
|
+
/**
|
|
86
|
+
* @remarks
|
|
87
|
+
* The request ID, which is used for troubleshooting. This parameter may be empty in extreme exception scenarios.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
91
|
+
*/
|
|
92
|
+
requestId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* @remarks
|
|
95
|
+
* Indicates whether the business processing is successful. Valid values: true (the output passes verification) and false (the business processing fails).
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* True
|
|
99
|
+
*/
|
|
100
|
+
success?: boolean;
|
|
101
|
+
static names(): {
|
|
102
|
+
[key: string]: string;
|
|
103
|
+
};
|
|
104
|
+
static types(): {
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
};
|
|
107
|
+
validate(): void;
|
|
108
|
+
constructor(map?: {
|
|
109
|
+
[key: string]: any;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.GenerateProductContentResponseBody = exports.GenerateProductContentResponseBodyData = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class GenerateProductContentResponseBodyData extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
contentType: 'ContentType',
|
|
43
|
+
length: 'Length',
|
|
44
|
+
outputLanguage: 'OutputLanguage',
|
|
45
|
+
pointLengths: 'PointLengths',
|
|
46
|
+
points: 'Points',
|
|
47
|
+
text: 'Text',
|
|
48
|
+
usageMap: 'UsageMap',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static types() {
|
|
52
|
+
return {
|
|
53
|
+
contentType: 'string',
|
|
54
|
+
length: 'number',
|
|
55
|
+
outputLanguage: 'string',
|
|
56
|
+
pointLengths: { 'type': 'array', 'itemType': 'number' },
|
|
57
|
+
points: { 'type': 'array', 'itemType': 'string' },
|
|
58
|
+
text: 'string',
|
|
59
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
validate() {
|
|
63
|
+
if (Array.isArray(this.pointLengths)) {
|
|
64
|
+
$dara.Model.validateArray(this.pointLengths);
|
|
65
|
+
}
|
|
66
|
+
if (Array.isArray(this.points)) {
|
|
67
|
+
$dara.Model.validateArray(this.points);
|
|
68
|
+
}
|
|
69
|
+
if (this.usageMap) {
|
|
70
|
+
$dara.Model.validateMap(this.usageMap);
|
|
71
|
+
}
|
|
72
|
+
super.validate();
|
|
73
|
+
}
|
|
74
|
+
constructor(map) {
|
|
75
|
+
super(map);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.GenerateProductContentResponseBodyData = GenerateProductContentResponseBodyData;
|
|
79
|
+
class GenerateProductContentResponseBody extends $dara.Model {
|
|
80
|
+
static names() {
|
|
81
|
+
return {
|
|
82
|
+
code: 'Code',
|
|
83
|
+
data: 'Data',
|
|
84
|
+
message: 'Message',
|
|
85
|
+
requestId: 'RequestId',
|
|
86
|
+
success: 'Success',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
static types() {
|
|
90
|
+
return {
|
|
91
|
+
code: 'string',
|
|
92
|
+
data: GenerateProductContentResponseBodyData,
|
|
93
|
+
message: 'string',
|
|
94
|
+
requestId: 'string',
|
|
95
|
+
success: 'boolean',
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
validate() {
|
|
99
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
100
|
+
this.data.validate();
|
|
101
|
+
}
|
|
102
|
+
super.validate();
|
|
103
|
+
}
|
|
104
|
+
constructor(map) {
|
|
105
|
+
super(map);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.GenerateProductContentResponseBody = GenerateProductContentResponseBody;
|
|
109
|
+
//# sourceMappingURL=GenerateProductContentResponseBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenerateProductContentResponseBody.js","sourceRoot":"","sources":["../../src/models/GenerateProductContentResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAgDrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,QAAQ;YAChB,cAAc,EAAE,gBAAgB;YAChC,YAAY,EAAE,cAAc;YAC5B,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,MAAM,EAAE,QAAQ;YAChB,cAAc,EAAE,QAAQ;YACxB,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACvD,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACjD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;SACxE,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACpC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC/C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,IAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxFD,wFAwFC;AAED,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAsCjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,sCAAsC;YAC5C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,gFAoEC"}
|
|
@@ -77,9 +77,7 @@ export declare class ImageCroppingResponseBody extends $dara.Model {
|
|
|
77
77
|
requestId?: string;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* Indicates whether the call is successful.
|
|
81
|
-
* - true: Successful.
|
|
82
|
-
* - false: Failed.
|
|
80
|
+
* Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
|
|
83
81
|
*
|
|
84
82
|
* @example
|
|
85
83
|
* True
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageCroppingResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageCroppingResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAiC5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACvE,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,sEA6DC;AAED,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageCroppingResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageCroppingResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAiC5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACvE,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA7DD,sEA6DC;AAED,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAsCxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,6BAA6B;YACnC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,8DAoEC"}
|
|
@@ -22,7 +22,7 @@ export declare class ImageMattingAsyncRequest extends $dara.Model {
|
|
|
22
22
|
bgColor?: string;
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The business order
|
|
25
|
+
* The business order number of the caller. It is recorded upon acceptance and returned as is when querying the asynchronous task result.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* order-20260928-001
|
|
@@ -30,7 +30,7 @@ export declare class ImageMattingAsyncRequest extends $dara.Model {
|
|
|
30
30
|
bizId?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 100 × 100 and 3000 × 3000 pixels, and the file size
|
|
33
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 100 × 100 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.
|
|
34
34
|
*
|
|
35
35
|
* This parameter is required.
|
|
36
36
|
*
|
|
@@ -22,7 +22,7 @@ export declare class ImageMattingAsyncResponseBodyData extends $dara.Model {
|
|
|
22
22
|
export declare class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The status code, such as
|
|
25
|
+
* The status code, such as success.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* success
|
|
@@ -30,7 +30,7 @@ export declare class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
|
30
30
|
code?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The submission result of the
|
|
33
|
+
* The submission result of the intelligent image matting asynchronous task.
|
|
34
34
|
*/
|
|
35
35
|
data?: ImageMattingAsyncResponseBodyData;
|
|
36
36
|
/**
|
|
@@ -43,7 +43,7 @@ export declare class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The ID
|
|
46
|
+
* The request ID, which is used to identify a unique request.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -51,9 +51,7 @@ export declare class ImageMattingAsyncResponseBody extends $dara.Model {
|
|
|
51
51
|
requestId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
* Indicates whether the call is successful.
|
|
55
|
-
* - true: The call is successful.
|
|
56
|
-
* - false: The call fails.
|
|
54
|
+
* Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
|
|
57
55
|
*
|
|
58
56
|
* @example
|
|
59
57
|
* True
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageMattingAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageMattingAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAShE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,8EA4BC;AAED,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageMattingAsyncResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageMattingAsyncResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAShE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,8EA4BC;AAED,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAsC5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,iCAAiC;YACvC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,sEAoEC"}
|
|
@@ -3,9 +3,8 @@ export declare class ImageMattingRequest extends $dara.Model {
|
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
5
|
* Specifies the background type of the returned image. Valid values:
|
|
6
|
-
*
|
|
7
|
-
* -
|
|
8
|
-
* - TRANSPARENT: transparent background.
|
|
6
|
+
* - WHITE_BACKGROUND: White background.
|
|
7
|
+
* - TRANSPARENT: Transparent background.
|
|
9
8
|
*
|
|
10
9
|
* This parameter is required.
|
|
11
10
|
*
|
|
@@ -23,7 +22,7 @@ export declare class ImageMattingRequest extends $dara.Model {
|
|
|
23
22
|
bgColor?: string;
|
|
24
23
|
/**
|
|
25
24
|
* @remarks
|
|
26
|
-
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels
|
|
25
|
+
* The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256 × 256 and 3000 × 3000 pixels, and the file size cannot exceed 10 MB.<br>**Example**: `"https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"`
|
|
27
26
|
*
|
|
28
27
|
* This parameter is required.
|
|
29
28
|
*
|
|
@@ -33,7 +32,7 @@ export declare class ImageMattingRequest extends $dara.Model {
|
|
|
33
32
|
imageUrl?: string;
|
|
34
33
|
/**
|
|
35
34
|
* @remarks
|
|
36
|
-
* The target image
|
|
35
|
+
* The height of the target image. Unit: pixels.
|
|
37
36
|
*
|
|
38
37
|
* @example
|
|
39
38
|
* 800
|
|
@@ -41,7 +40,7 @@ export declare class ImageMattingRequest extends $dara.Model {
|
|
|
41
40
|
targetHeight?: number;
|
|
42
41
|
/**
|
|
43
42
|
* @remarks
|
|
44
|
-
* The target image
|
|
43
|
+
* The width of the target image. Unit: pixels.
|
|
45
44
|
*
|
|
46
45
|
* @example
|
|
47
46
|
* 800
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageMattingRequest.js","sourceRoot":"","sources":["../../src/models/ImageMattingRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ImageMattingRequest.js","sourceRoot":"","sources":["../../src/models/ImageMattingRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;IA+ClD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,YAAY,EAAE,cAAc;YAC5B,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,QAAQ;YACxB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,YAAY,EAAE,QAAQ;YACtB,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1ED,kDA0EC"}
|