@alicloud/aidge20260428 5.9.0 → 5.10.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 +160 -100
- package/dist/client.js +300 -100
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeRequest.d.ts +68 -0
- package/dist/models/AddDisplayKnowledgeRequest.js +88 -0
- package/dist/models/AddDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/AddDisplayKnowledgeResponse.js +69 -0
- package/dist/models/AddDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +210 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/AiTryOnRequest.d.ts +4 -4
- package/dist/models/AiTryOnResponseBody.d.ts +10 -10
- package/dist/models/AiTryOnResponseBody.js +0 -2
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js +63 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js +69 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +214 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js +145 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/TextTranslateAsyncRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncRequest.js.map +1 -1
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +19 -0
- package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -1
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +28 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -1
- package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/VideoTranslationRequest.d.ts +6 -6
- package/dist/models/VideoTranslationResponseBody.d.ts +4 -4
- package/dist/models/VideoTranslationShrinkRequest.d.ts +6 -6
- package/dist/models/model.d.ts +26 -0
- package/dist/models/model.js +59 -6
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +324 -100
- package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
- package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
- package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
- package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/AiTryOnRequest.ts +4 -4
- package/src/models/AiTryOnResponseBody.ts +10 -10
- package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
- package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
- package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
- package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
- package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
- package/src/models/TextTranslateAsyncRequest.ts +28 -0
- package/src/models/TextTranslateAsyncResponseBody.ts +19 -0
- package/src/models/TextTranslateAsyncShrinkRequest.ts +28 -0
- package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
- package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
- package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/VideoTranslationRequest.ts +6 -6
- package/src/models/VideoTranslationResponseBody.ts +4 -4
- package/src/models/VideoTranslationShrinkRequest.ts +6 -6
- package/src/models/model.ts +26 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
export class AddDisplayKnowledgeRequestRecords extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @remarks
|
|
10
|
+
* The HTTP(S) URL of the product image.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* https://xxxx/img_1784599244373_9c2309a0.jpg
|
|
14
|
+
*/
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The SKU ID. If this parameter is left empty, the platform generates the ID.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* sku-001
|
|
22
|
+
*/
|
|
23
|
+
skuId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The SKU name.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* Product front image
|
|
30
|
+
*/
|
|
31
|
+
skuName?: string;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
imageUrl: 'ImageUrl',
|
|
35
|
+
skuId: 'SkuId',
|
|
36
|
+
skuName: 'SkuName',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static types(): { [key: string]: any } {
|
|
41
|
+
return {
|
|
42
|
+
imageUrl: 'string',
|
|
43
|
+
skuId: 'string',
|
|
44
|
+
skuName: 'string',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
validate() {
|
|
49
|
+
super.validate();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
constructor(map?: { [key: string]: any }) {
|
|
53
|
+
super(map);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export class AddDisplayKnowledgeRequest extends $dara.Model {
|
|
58
|
+
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* The knowledge base ID.
|
|
61
|
+
*
|
|
62
|
+
* This parameter is required.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* rag_xxx
|
|
66
|
+
*/
|
|
67
|
+
ragId?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @remarks
|
|
70
|
+
* The records to add. A maximum of 500 records are supported.
|
|
71
|
+
*
|
|
72
|
+
* This parameter is required.
|
|
73
|
+
*/
|
|
74
|
+
records?: AddDisplayKnowledgeRequestRecords[];
|
|
75
|
+
static names(): { [key: string]: string } {
|
|
76
|
+
return {
|
|
77
|
+
ragId: 'RagId',
|
|
78
|
+
records: 'Records',
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static types(): { [key: string]: any } {
|
|
83
|
+
return {
|
|
84
|
+
ragId: 'string',
|
|
85
|
+
records: { 'type': 'array', 'itemType': AddDisplayKnowledgeRequestRecords },
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
validate() {
|
|
90
|
+
if(Array.isArray(this.records)) {
|
|
91
|
+
$dara.Model.validateArray(this.records);
|
|
92
|
+
}
|
|
93
|
+
super.validate();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
constructor(map?: { [key: string]: any }) {
|
|
97
|
+
super(map);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { AddDisplayKnowledgeResponseBody } from "./AddDisplayKnowledgeResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class AddDisplayKnowledgeResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: AddDisplayKnowledgeResponseBody;
|
|
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: AddDisplayKnowledgeResponseBody,
|
|
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,288 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class AddDisplayKnowledgeResponseBodyDataResults extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The failure error code.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* Success
|
|
12
|
+
*/
|
|
13
|
+
errorCode?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The failure reason.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* The deviceName format is incorrect.
|
|
20
|
+
*/
|
|
21
|
+
errorMessage?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The index in the original request array.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 3
|
|
28
|
+
*/
|
|
29
|
+
index?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The record ID.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 204737029000011
|
|
36
|
+
*/
|
|
37
|
+
recordId?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The effective SKU ID.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* sku-001
|
|
44
|
+
*/
|
|
45
|
+
skuId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The record status.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* UPDATING-Updating
|
|
52
|
+
* EMBEDDED-Vectorization completed
|
|
53
|
+
* FAILED-Failed
|
|
54
|
+
*/
|
|
55
|
+
status?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* Indicates whether the record is accepted.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* True
|
|
62
|
+
*/
|
|
63
|
+
success?: boolean;
|
|
64
|
+
static names(): { [key: string]: string } {
|
|
65
|
+
return {
|
|
66
|
+
errorCode: 'ErrorCode',
|
|
67
|
+
errorMessage: 'ErrorMessage',
|
|
68
|
+
index: 'Index',
|
|
69
|
+
recordId: 'RecordId',
|
|
70
|
+
skuId: 'SkuId',
|
|
71
|
+
status: 'Status',
|
|
72
|
+
success: 'Success',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
static types(): { [key: string]: any } {
|
|
77
|
+
return {
|
|
78
|
+
errorCode: 'string',
|
|
79
|
+
errorMessage: 'string',
|
|
80
|
+
index: 'number',
|
|
81
|
+
recordId: 'number',
|
|
82
|
+
skuId: 'string',
|
|
83
|
+
status: 'string',
|
|
84
|
+
success: 'boolean',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
validate() {
|
|
89
|
+
super.validate();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
constructor(map?: { [key: string]: any }) {
|
|
93
|
+
super(map);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export class AddDisplayKnowledgeResponseBodyData extends $dara.Model {
|
|
98
|
+
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* The number of accepted records.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* 10
|
|
104
|
+
*/
|
|
105
|
+
acceptedCount?: number;
|
|
106
|
+
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* The business error code.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* success
|
|
112
|
+
*/
|
|
113
|
+
errorCode?: string;
|
|
114
|
+
/**
|
|
115
|
+
* @remarks
|
|
116
|
+
* The business error message.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* Success
|
|
120
|
+
*/
|
|
121
|
+
errorMessage?: string;
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The number of failed records.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* 0
|
|
128
|
+
*/
|
|
129
|
+
failedCount?: number;
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* The knowledge base status.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* UPDATING-Updating
|
|
136
|
+
* AVAILABLE-Available
|
|
137
|
+
* UNAVAILABLE-Unavailable
|
|
138
|
+
*/
|
|
139
|
+
knowledgeBaseStatus?: string;
|
|
140
|
+
/**
|
|
141
|
+
* @remarks
|
|
142
|
+
* The knowledge base ID.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* rag_xxxx
|
|
146
|
+
*/
|
|
147
|
+
ragId?: string;
|
|
148
|
+
/**
|
|
149
|
+
* @remarks
|
|
150
|
+
* The processing results for each record.
|
|
151
|
+
*/
|
|
152
|
+
results?: AddDisplayKnowledgeResponseBodyDataResults[];
|
|
153
|
+
/**
|
|
154
|
+
* @remarks
|
|
155
|
+
* Indicates whether the business processing is successful.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* True
|
|
159
|
+
*/
|
|
160
|
+
success?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* @remarks
|
|
163
|
+
* The asynchronous task ID. This parameter is empty for synchronous API operations.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* 0ea3b66e88a543658520c994f08896a0
|
|
167
|
+
*/
|
|
168
|
+
taskId?: string;
|
|
169
|
+
/**
|
|
170
|
+
* @remarks
|
|
171
|
+
* The usage information. This parameter is empty for free API operations.
|
|
172
|
+
*/
|
|
173
|
+
usageMap?: { [key: string]: number };
|
|
174
|
+
static names(): { [key: string]: string } {
|
|
175
|
+
return {
|
|
176
|
+
acceptedCount: 'AcceptedCount',
|
|
177
|
+
errorCode: 'ErrorCode',
|
|
178
|
+
errorMessage: 'ErrorMessage',
|
|
179
|
+
failedCount: 'FailedCount',
|
|
180
|
+
knowledgeBaseStatus: 'KnowledgeBaseStatus',
|
|
181
|
+
ragId: 'RagId',
|
|
182
|
+
results: 'Results',
|
|
183
|
+
success: 'Success',
|
|
184
|
+
taskId: 'TaskId',
|
|
185
|
+
usageMap: 'UsageMap',
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static types(): { [key: string]: any } {
|
|
190
|
+
return {
|
|
191
|
+
acceptedCount: 'number',
|
|
192
|
+
errorCode: 'string',
|
|
193
|
+
errorMessage: 'string',
|
|
194
|
+
failedCount: 'number',
|
|
195
|
+
knowledgeBaseStatus: 'string',
|
|
196
|
+
ragId: 'string',
|
|
197
|
+
results: { 'type': 'array', 'itemType': AddDisplayKnowledgeResponseBodyDataResults },
|
|
198
|
+
success: 'boolean',
|
|
199
|
+
taskId: 'string',
|
|
200
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
validate() {
|
|
205
|
+
if(Array.isArray(this.results)) {
|
|
206
|
+
$dara.Model.validateArray(this.results);
|
|
207
|
+
}
|
|
208
|
+
if(this.usageMap) {
|
|
209
|
+
$dara.Model.validateMap(this.usageMap);
|
|
210
|
+
}
|
|
211
|
+
super.validate();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
constructor(map?: { [key: string]: any }) {
|
|
215
|
+
super(map);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export class AddDisplayKnowledgeResponseBody extends $dara.Model {
|
|
220
|
+
/**
|
|
221
|
+
* @remarks
|
|
222
|
+
* The error code.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* success
|
|
226
|
+
*/
|
|
227
|
+
code?: string;
|
|
228
|
+
/**
|
|
229
|
+
* @remarks
|
|
230
|
+
* The result of adding content to the display knowledge base.
|
|
231
|
+
*/
|
|
232
|
+
data?: AddDisplayKnowledgeResponseBodyData;
|
|
233
|
+
/**
|
|
234
|
+
* @remarks
|
|
235
|
+
* The returned message or failure description.
|
|
236
|
+
*
|
|
237
|
+
* @example
|
|
238
|
+
* Success
|
|
239
|
+
*/
|
|
240
|
+
message?: string;
|
|
241
|
+
/**
|
|
242
|
+
* @remarks
|
|
243
|
+
* The request ID.
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
247
|
+
*/
|
|
248
|
+
requestId?: string;
|
|
249
|
+
/**
|
|
250
|
+
* @remarks
|
|
251
|
+
* Indicates whether the call is successful.
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* True
|
|
255
|
+
*/
|
|
256
|
+
success?: boolean;
|
|
257
|
+
static names(): { [key: string]: string } {
|
|
258
|
+
return {
|
|
259
|
+
code: 'Code',
|
|
260
|
+
data: 'Data',
|
|
261
|
+
message: 'Message',
|
|
262
|
+
requestId: 'RequestId',
|
|
263
|
+
success: 'Success',
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
static types(): { [key: string]: any } {
|
|
268
|
+
return {
|
|
269
|
+
code: 'string',
|
|
270
|
+
data: AddDisplayKnowledgeResponseBodyData,
|
|
271
|
+
message: 'string',
|
|
272
|
+
requestId: 'string',
|
|
273
|
+
success: 'boolean',
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
validate() {
|
|
278
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
279
|
+
(this.data as any).validate();
|
|
280
|
+
}
|
|
281
|
+
super.validate();
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
constructor(map?: { [key: string]: any }) {
|
|
285
|
+
super(map);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class AddDisplayKnowledgeShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The knowledge base ID.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* rag_xxx
|
|
14
|
+
*/
|
|
15
|
+
ragId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The records to add. A maximum of 500 records are supported.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*/
|
|
22
|
+
recordsShrink?: string;
|
|
23
|
+
static names(): { [key: string]: string } {
|
|
24
|
+
return {
|
|
25
|
+
ragId: 'RagId',
|
|
26
|
+
recordsShrink: 'Records',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
static types(): { [key: string]: any } {
|
|
31
|
+
return {
|
|
32
|
+
ragId: 'string',
|
|
33
|
+
recordsShrink: 'string',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class AiTryOnRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The URL of the
|
|
8
|
+
* The URL of the garment image. Only one image is supported. The URL must be a publicly accessible `http` or `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 not exceeding 10 MB.<br>
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class AiTryOnRequest extends $dara.Model {
|
|
|
15
15
|
clothImageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The
|
|
18
|
+
* The type of the garment. Valid values: tops, bottoms, dresses, tops_and_bottoms, shoes, and hats. If this parameter is not specified, the system automatically recognizes the garment type.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* tops
|
|
@@ -23,7 +23,7 @@ export class AiTryOnRequest extends $dara.Model {
|
|
|
23
23
|
clothType?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The URL of the model image. Only one image is supported. The URL must be a publicly accessible `http
|
|
26
|
+
* The URL of the model image. Only one image is supported. The URL must be a publicly accessible `http` or `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 not exceeding 10 MB.<br>
|
|
27
27
|
*
|
|
28
28
|
* This parameter is required.
|
|
29
29
|
*
|
|
@@ -33,7 +33,7 @@ export class AiTryOnRequest extends $dara.Model {
|
|
|
33
33
|
modelImageUrl?: string;
|
|
34
34
|
/**
|
|
35
35
|
* @remarks
|
|
36
|
-
* The output image
|
|
36
|
+
* The resolution of the output image. Synchronous API operations only support 1K resolution.
|
|
37
37
|
*
|
|
38
38
|
* This parameter is required.
|
|
39
39
|
*
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
*/
|
|
7
5
|
export class AiTryOnResponseBodyDataUsageMap extends $dara.Model {
|
|
8
6
|
/**
|
|
9
7
|
* @remarks
|
|
@@ -15,7 +13,7 @@ export class AiTryOnResponseBodyDataUsageMap extends $dara.Model {
|
|
|
15
13
|
processedImageCount?: number;
|
|
16
14
|
/**
|
|
17
15
|
* @remarks
|
|
18
|
-
* The resolution of the processed
|
|
16
|
+
* The resolution of the processed images.
|
|
19
17
|
*
|
|
20
18
|
* @example
|
|
21
19
|
* 1K
|
|
@@ -47,7 +45,7 @@ export class AiTryOnResponseBodyDataUsageMap extends $dara.Model {
|
|
|
47
45
|
export class AiTryOnResponseBodyData extends $dara.Model {
|
|
48
46
|
/**
|
|
49
47
|
* @remarks
|
|
50
|
-
* The height of the result image
|
|
48
|
+
* The height of the result image in pixels.
|
|
51
49
|
*
|
|
52
50
|
* @example
|
|
53
51
|
* 1360
|
|
@@ -63,7 +61,7 @@ export class AiTryOnResponseBodyData extends $dara.Model {
|
|
|
63
61
|
imageUrl?: string;
|
|
64
62
|
/**
|
|
65
63
|
* @remarks
|
|
66
|
-
* The width of the result image
|
|
64
|
+
* The width of the result image in pixels.
|
|
67
65
|
*
|
|
68
66
|
* @example
|
|
69
67
|
* 768
|
|
@@ -110,7 +108,7 @@ export class AiTryOnResponseBodyData extends $dara.Model {
|
|
|
110
108
|
export class AiTryOnResponseBody extends $dara.Model {
|
|
111
109
|
/**
|
|
112
110
|
* @remarks
|
|
113
|
-
* The error code. This parameter is not returned
|
|
111
|
+
* The error code. This parameter is not returned when the call is successful.
|
|
114
112
|
*
|
|
115
113
|
* @example
|
|
116
114
|
* 200
|
|
@@ -118,12 +116,12 @@ export class AiTryOnResponseBody extends $dara.Model {
|
|
|
118
116
|
code?: string;
|
|
119
117
|
/**
|
|
120
118
|
* @remarks
|
|
121
|
-
* The result struct.
|
|
119
|
+
* The returned result struct.
|
|
122
120
|
*/
|
|
123
121
|
data?: AiTryOnResponseBodyData;
|
|
124
122
|
/**
|
|
125
123
|
* @remarks
|
|
126
|
-
* The error message. This parameter is not returned
|
|
124
|
+
* The error message. This parameter is not returned when the call is successful.
|
|
127
125
|
*
|
|
128
126
|
* @example
|
|
129
127
|
* OK
|
|
@@ -131,7 +129,7 @@ export class AiTryOnResponseBody extends $dara.Model {
|
|
|
131
129
|
message?: string;
|
|
132
130
|
/**
|
|
133
131
|
* @remarks
|
|
134
|
-
* The request ID
|
|
132
|
+
* The request ID, which is used to identify a unique request.
|
|
135
133
|
*
|
|
136
134
|
* @example
|
|
137
135
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -139,7 +137,9 @@ export class AiTryOnResponseBody extends $dara.Model {
|
|
|
139
137
|
requestId?: string;
|
|
140
138
|
/**
|
|
141
139
|
* @remarks
|
|
142
|
-
* Indicates whether the call is successful. Valid values:
|
|
140
|
+
* Indicates whether the call is successful. Valid values:
|
|
141
|
+
* - true: The call is successful.
|
|
142
|
+
* - false: The call fails.
|
|
143
143
|
*
|
|
144
144
|
* @example
|
|
145
145
|
* True
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteDisplayKnowledgeRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The knowledge base ID.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* rag_x x x
|
|
14
|
+
*/
|
|
15
|
+
ragId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The IDs of the records to delete. You can specify up to 500 record IDs.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*/
|
|
22
|
+
recordIds?: number[];
|
|
23
|
+
static names(): { [key: string]: string } {
|
|
24
|
+
return {
|
|
25
|
+
ragId: 'RagId',
|
|
26
|
+
recordIds: 'RecordIds',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
static types(): { [key: string]: any } {
|
|
31
|
+
return {
|
|
32
|
+
ragId: 'string',
|
|
33
|
+
recordIds: { 'type': 'array', 'itemType': 'number' },
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
if(Array.isArray(this.recordIds)) {
|
|
39
|
+
$dara.Model.validateArray(this.recordIds);
|
|
40
|
+
}
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteDisplayKnowledgeResponseBody } from "./DeleteDisplayKnowledgeResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteDisplayKnowledgeResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteDisplayKnowledgeResponseBody;
|
|
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: DeleteDisplayKnowledgeResponseBody,
|
|
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
|
+
|