tencentcloud-sdk-nodejs 4.0.893 → 4.0.894
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/CHANGELOG.md +151 -0
- package/SERVICE_CHANGELOG.md +202 -83
- package/package.json +1 -1
- package/products.md +12 -12
- package/src/common/sdk_version.ts +1 -1
- package/src/services/aiart/v20221229/aiart_client.ts +34 -20
- package/src/services/aiart/v20221229/aiart_models.ts +85 -25
- package/src/services/asr/v20190614/asr_models.ts +4 -4
- package/src/services/clb/v20180317/clb_client.ts +13 -16
- package/src/services/dnspod/v20210323/dnspod_models.ts +4 -0
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +25 -25
- package/src/services/lke/v20231130/lke_client.ts +13 -0
- package/src/services/lke/v20231130/lke_models.ts +86 -1
- package/src/services/mna/v20210119/mna_client.ts +162 -53
- package/src/services/mna/v20210119/mna_models.ts +1200 -841
- package/src/services/mps/v20190612/mps_models.ts +15 -5
- package/src/services/tdmq/v20200217/tdmq_client.ts +0 -1
- package/src/services/tdmq/v20200217/tdmq_models.ts +7 -7
- package/src/services/tke/v20180525/tke_models.ts +3 -3
- package/src/services/tsf/v20180326/tsf_client.ts +25 -1
- package/src/services/tsf/v20180326/tsf_models.ts +78 -6
- package/src/services/vpc/v20170312/vpc_models.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/aiart/v20221229/aiart_client.d.ts +18 -12
- package/tencentcloud/services/aiart/v20221229/aiart_client.js +21 -13
- package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +84 -26
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +4 -4
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +13 -16
- package/tencentcloud/services/clb/v20180317/clb_client.js +13 -16
- package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +4 -0
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +25 -25
- package/tencentcloud/services/lke/v20231130/lke_client.d.ts +5 -1
- package/tencentcloud/services/lke/v20231130/lke_client.js +6 -0
- package/tencentcloud/services/lke/v20231130/lke_models.d.ts +83 -1
- package/tencentcloud/services/mna/v20210119/mna_client.d.ts +39 -3
- package/tencentcloud/services/mna/v20210119/mna_client.js +57 -3
- package/tencentcloud/services/mna/v20210119/mna_models.d.ts +1172 -832
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +15 -5
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +0 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +0 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +7 -7
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +3 -3
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +9 -1
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +12 -0
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +74 -6
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +1 -1
- package/test/aiart.v20221229.test.js +14 -4
- package/test/lke.v20231130.test.js +10 -0
- package/test/mna.v20210119.test.js +92 -2
- package/test/tsf.v20180326.test.js +20 -0
package/products.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
| advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2024-03-20 01:07:31 |
|
|
7
7
|
| af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2024-05-31 01:07:20 |
|
|
8
8
|
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2024-05-31 01:07:25 |
|
|
9
|
-
| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-07-
|
|
9
|
+
| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-07-11 01:07:23 |
|
|
10
10
|
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-08-17 01:06:14 |
|
|
11
11
|
| ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2024-04-22 01:07:21 |
|
|
12
12
|
| anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 |
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
| apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2024-06-17 01:08:48 |
|
|
18
18
|
| apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2024-06-26 01:09:03 |
|
|
19
19
|
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2024-05-17 01:06:16 |
|
|
20
|
-
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2024-07-
|
|
20
|
+
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2024-07-11 01:08:09 |
|
|
21
21
|
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2023-05-18 01:04:02 |
|
|
22
22
|
| ba | [ICP备案](https://cloud.tencent.com/document/product/243) | 2024-04-22 01:08:02 |
|
|
23
23
|
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2024-06-25 01:07:59 |
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
|
57
57
|
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
|
58
58
|
| ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2024-07-08 01:10:21 |
|
|
59
|
-
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2024-07-
|
|
59
|
+
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2024-07-11 01:11:12 |
|
|
60
60
|
| cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2024-01-15 01:09:37 |
|
|
61
61
|
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2024-03-20 01:11:31 |
|
|
62
62
|
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2024-05-29 01:21:54 |
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
| dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) | 2024-07-05 01:08:15 |
|
|
80
80
|
| dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2024-07-08 01:12:54 |
|
|
81
81
|
| dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2024-06-14 01:40:38 |
|
|
82
|
-
| dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2024-07-
|
|
82
|
+
| dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2024-07-11 01:14:04 |
|
|
83
83
|
| dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2024-07-08 01:13:07 |
|
|
84
|
-
| dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2024-
|
|
84
|
+
| dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2024-07-11 01:14:33 |
|
|
85
85
|
| domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2024-07-02 01:14:51 |
|
|
86
86
|
| drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2024-04-22 01:15:04 |
|
|
87
87
|
| ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2024-03-20 01:15:13 |
|
|
@@ -133,9 +133,9 @@
|
|
|
133
133
|
| keewidb | [云数据库 KeeWiDB](https://cloud.tencent.com/document/product/1520) | 2024-03-20 01:19:20 |
|
|
134
134
|
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2024-04-17 01:17:16 |
|
|
135
135
|
| lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2024-06-24 01:17:36 |
|
|
136
|
-
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-
|
|
136
|
+
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-07-11 01:19:19 |
|
|
137
137
|
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-07-10 01:19:34 |
|
|
138
|
-
| lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2024-07-
|
|
138
|
+
| lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2024-07-11 01:19:53 |
|
|
139
139
|
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
|
140
140
|
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
|
|
141
141
|
| mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2024-03-20 01:20:11 |
|
|
@@ -144,10 +144,10 @@
|
|
|
144
144
|
| memcached | [云数据库Memcached](https://cloud.tencent.com/document/product/241) | 2024-03-20 01:20:22 |
|
|
145
145
|
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 |
|
|
146
146
|
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2024-07-02 01:19:41 |
|
|
147
|
-
| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2024-
|
|
147
|
+
| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2024-07-11 01:20:22 |
|
|
148
148
|
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2024-07-02 01:19:49 |
|
|
149
149
|
| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-07-03 01:20:32 |
|
|
150
|
-
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2024-07-
|
|
150
|
+
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2024-07-11 01:21:03 |
|
|
151
151
|
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2024-06-14 02:16:42 |
|
|
152
152
|
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2024-06-05 02:02:03 |
|
|
153
153
|
| msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2024-04-17 14:48:31 |
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2024-06-26 01:23:56 |
|
|
204
204
|
| tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2024-07-10 01:25:35 |
|
|
205
205
|
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2024-06-04 02:17:43 |
|
|
206
|
-
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2024-07-
|
|
206
|
+
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2024-07-11 01:25:45 |
|
|
207
207
|
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2024-04-22 01:26:50 |
|
|
208
208
|
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2024-06-25 01:23:38 |
|
|
209
209
|
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-07-03 19:33:55 |
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
| trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2024-06-21 02:25:01 |
|
|
228
228
|
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-07-10 01:27:37 |
|
|
229
229
|
| tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2024-07-10 01:27:48 |
|
|
230
|
-
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-
|
|
230
|
+
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-07-11 01:28:05 |
|
|
231
231
|
| tsi | [腾讯同传系统](https://cloud.tencent.com/document/product/1399) | 2024-07-08 01:25:22 |
|
|
232
232
|
| tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2024-03-20 01:30:06 |
|
|
233
233
|
| tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2024-07-08 01:25:23 |
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2024-06-06 02:47:30 |
|
|
239
239
|
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2024-03-20 01:30:13 |
|
|
240
240
|
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2024-07-05 01:20:46 |
|
|
241
|
-
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2024-07-
|
|
241
|
+
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2024-07-11 01:29:18 |
|
|
242
242
|
| vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2024-04-02 01:27:45 |
|
|
243
243
|
| vtc | [视频转译](https://cloud.tencent.com/document/product/1769) | 2024-06-07 02:52:58 |
|
|
244
244
|
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2024-07-10 01:30:00 |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const sdkVersion = "4.0.
|
|
1
|
+
export const sdkVersion = "4.0.894"
|
|
@@ -25,9 +25,11 @@ import {
|
|
|
25
25
|
UploadTrainPortraitImagesRequest,
|
|
26
26
|
ResultConfig,
|
|
27
27
|
QueryTrainPortraitModelJobRequest,
|
|
28
|
+
ReplaceBackgroundRequest,
|
|
28
29
|
SubmitTextToImageProJobRequest,
|
|
29
30
|
QueryDrawPortraitJobResponse,
|
|
30
31
|
QueryTrainPortraitModelJobResponse,
|
|
32
|
+
ChangeClothesResponse,
|
|
31
33
|
SubmitTextToImageProJobResponse,
|
|
32
34
|
SubmitTrainPortraitModelJobRequest,
|
|
33
35
|
TextToImageRequest,
|
|
@@ -37,7 +39,7 @@ import {
|
|
|
37
39
|
SubmitTrainPortraitModelJobResponse,
|
|
38
40
|
QueryDrawPortraitJobRequest,
|
|
39
41
|
ImageToImageResponse,
|
|
40
|
-
|
|
42
|
+
ChangeClothesRequest,
|
|
41
43
|
ReplaceBackgroundResponse,
|
|
42
44
|
UploadTrainPortraitImagesResponse,
|
|
43
45
|
QueryTextToImageProJobRequest,
|
|
@@ -137,14 +139,18 @@ export class Client extends AbstractClient {
|
|
|
137
139
|
|
|
138
140
|
/**
|
|
139
141
|
* AI 写真提供 AI 写真形象照的训练与生成能力,分为上传训练图片、训练模型、生成图片3个环节,需要依次调用对应接口。
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
每个写真模型自训练完成起1年内有效,有效期内可使用写真模型 ID 生成图片,期满后需要重新训练。
|
|
143
|
+
生成图片分为提交任务和查询任务2个接口。
|
|
144
|
+
- 提交生成写真图片任务:完成训练写真模型后,选择风格模板,提交一个生成写真图片异步任务,根据写真模型 ID 开始生成人物形象在指定风格上的写真图片,获得任务 ID。
|
|
145
|
+
- 查询生成写真图片任务:根据任务 ID 查询生成图片任务的处理状态、处理结果。
|
|
146
|
+
|
|
147
|
+
提交生成写真图片任务默认提供1个并发任务数。
|
|
142
148
|
*/
|
|
143
|
-
async
|
|
144
|
-
req:
|
|
145
|
-
cb?: (error: string, rep:
|
|
146
|
-
): Promise<
|
|
147
|
-
return this.request("
|
|
149
|
+
async SubmitDrawPortraitJob(
|
|
150
|
+
req: SubmitDrawPortraitJobRequest,
|
|
151
|
+
cb?: (error: string, rep: SubmitDrawPortraitJobResponse) => void
|
|
152
|
+
): Promise<SubmitDrawPortraitJobResponse> {
|
|
153
|
+
return this.request("SubmitDrawPortraitJob", req, cb)
|
|
148
154
|
}
|
|
149
155
|
|
|
150
156
|
/**
|
|
@@ -161,6 +167,18 @@ export class Client extends AbstractClient {
|
|
|
161
167
|
return this.request("QueryDrawPortraitJob", req, cb)
|
|
162
168
|
}
|
|
163
169
|
|
|
170
|
+
/**
|
|
171
|
+
* AI 写真提供 AI 写真形象照的训练与生成能力,分为上传训练图片、训练模型、生成图片3个环节,需要依次调用对应接口。
|
|
172
|
+
本接口用于指定一个人物形象的写真模型 ID,上传用于训练该模型的图片。一个写真模型仅用于一个人物形象的写真生成,上传的训练图片要求所属同一人,建议上传单人、正脸、脸部区域占比较大、脸部清晰无遮挡、无大角度偏转、无夸张表情的图片。
|
|
173
|
+
上传写真训练图片默认提供1个并发任务数。
|
|
174
|
+
*/
|
|
175
|
+
async UploadTrainPortraitImages(
|
|
176
|
+
req: UploadTrainPortraitImagesRequest,
|
|
177
|
+
cb?: (error: string, rep: UploadTrainPortraitImagesResponse) => void
|
|
178
|
+
): Promise<UploadTrainPortraitImagesResponse> {
|
|
179
|
+
return this.request("UploadTrainPortraitImages", req, cb)
|
|
180
|
+
}
|
|
181
|
+
|
|
164
182
|
/**
|
|
165
183
|
* 智能文生图接口基于文生图(标准版)模型,将根据输入的文本描述,智能生成与之相关的结果图。
|
|
166
184
|
|
|
@@ -174,19 +192,15 @@ export class Client extends AbstractClient {
|
|
|
174
192
|
}
|
|
175
193
|
|
|
176
194
|
/**
|
|
177
|
-
*
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
- 提交生成写真图片任务:完成训练写真模型后,选择风格模板,提交一个生成写真图片异步任务,根据写真模型 ID 开始生成人物形象在指定风格上的写真图片,获得任务 ID。
|
|
181
|
-
- 查询生成写真图片任务:根据任务 ID 查询生成图片任务的处理状态、处理结果。
|
|
182
|
-
|
|
183
|
-
提交生成写真图片任务默认提供1个并发任务数。
|
|
195
|
+
* 上传正面全身模特照和服装平铺图,生成模特换装后的图片。
|
|
196
|
+
生成的换装图片分辨率和模特照分辨率一致。
|
|
197
|
+
模特换装默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
184
198
|
*/
|
|
185
|
-
async
|
|
186
|
-
req:
|
|
187
|
-
cb?: (error: string, rep:
|
|
188
|
-
): Promise<
|
|
189
|
-
return this.request("
|
|
199
|
+
async ChangeClothes(
|
|
200
|
+
req: ChangeClothesRequest,
|
|
201
|
+
cb?: (error: string, rep: ChangeClothesResponse) => void
|
|
202
|
+
): Promise<ChangeClothesResponse> {
|
|
203
|
+
return this.request("ChangeClothes", req, cb)
|
|
190
204
|
}
|
|
191
205
|
|
|
192
206
|
/**
|
|
@@ -225,6 +225,53 @@ export interface QueryTrainPortraitModelJobRequest {
|
|
|
225
225
|
ModelId: string
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
+
/**
|
|
229
|
+
* ReplaceBackground请求参数结构体
|
|
230
|
+
*/
|
|
231
|
+
export interface ReplaceBackgroundRequest {
|
|
232
|
+
/**
|
|
233
|
+
* 商品原图 Url。
|
|
234
|
+
图片限制:单边分辨率小于4000,长宽比在2:5 ~ 5:2之间,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
|
235
|
+
*/
|
|
236
|
+
ProductUrl: string
|
|
237
|
+
/**
|
|
238
|
+
* 商品 Mask 图 Url,要求背景透明,保留商品主体。
|
|
239
|
+
如果不传,将自动使用内置的商品分割算法得到 Mask。
|
|
240
|
+
支持自定义上传 Mask,如果该参数不为空,则以实际上传的数据为准。
|
|
241
|
+
图片限制:Mask 图必须和商品原图分辨率一致,转成 Base64 字符串后小于 6MB,格式仅支持 png。
|
|
242
|
+
*/
|
|
243
|
+
MaskUrl?: string
|
|
244
|
+
/**
|
|
245
|
+
* 对新背景的文本描述。
|
|
246
|
+
最多支持256个 utf-8 字符,支持中、英文。
|
|
247
|
+
*/
|
|
248
|
+
Prompt?: string
|
|
249
|
+
/**
|
|
250
|
+
* 替换背景后生成的商品图分辨率。
|
|
251
|
+
支持生成单边分辨率大于500且小于4000、长宽比在2:5 ~ 5:2之间的图片,不传默认生成1280:1280。
|
|
252
|
+
建议图片比例为1:1、9:16、16:9,生成效果更佳,使用其他比例的生成效果可能不如建议比例。
|
|
253
|
+
*/
|
|
254
|
+
Resolution?: string
|
|
255
|
+
/**
|
|
256
|
+
* 为生成结果图添加标识的开关,默认为1。
|
|
257
|
+
1:添加标识。
|
|
258
|
+
0:不添加标识。
|
|
259
|
+
其他数值:默认按1处理。
|
|
260
|
+
建议您使用显著标识来提示结果图是 AI 生成的图片。
|
|
261
|
+
*/
|
|
262
|
+
LogoAdd?: number
|
|
263
|
+
/**
|
|
264
|
+
* 标识内容设置。
|
|
265
|
+
默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
|
266
|
+
*/
|
|
267
|
+
LogoParam?: LogoParam
|
|
268
|
+
/**
|
|
269
|
+
* 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
|
|
270
|
+
生成图分辨率较大时建议选择 url,使用 base64 可能因图片过大导致返回失败。
|
|
271
|
+
*/
|
|
272
|
+
RspImgType?: string
|
|
273
|
+
}
|
|
274
|
+
|
|
228
275
|
/**
|
|
229
276
|
* SubmitTextToImageProJob请求参数结构体
|
|
230
277
|
*/
|
|
@@ -333,6 +380,22 @@ INIT: 初始化、WAIT:等待中、RUN:运行中、FAIL:处理失败、DON
|
|
|
333
380
|
RequestId?: string
|
|
334
381
|
}
|
|
335
382
|
|
|
383
|
+
/**
|
|
384
|
+
* ChangeClothes返回参数结构体
|
|
385
|
+
*/
|
|
386
|
+
export interface ChangeClothesResponse {
|
|
387
|
+
/**
|
|
388
|
+
* 根据入参 RspImgType 填入不同,返回不同的内容。
|
|
389
|
+
如果传入 base64 则返回生成图 Base64 编码。
|
|
390
|
+
如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
|
|
391
|
+
*/
|
|
392
|
+
ResultImage?: string
|
|
393
|
+
/**
|
|
394
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
395
|
+
*/
|
|
396
|
+
RequestId?: string
|
|
397
|
+
}
|
|
398
|
+
|
|
336
399
|
/**
|
|
337
400
|
* SubmitTextToImageProJob返回参数结构体
|
|
338
401
|
*/
|
|
@@ -548,45 +611,42 @@ export interface ImageToImageResponse {
|
|
|
548
611
|
}
|
|
549
612
|
|
|
550
613
|
/**
|
|
551
|
-
*
|
|
614
|
+
* ChangeClothes请求参数结构体
|
|
552
615
|
*/
|
|
553
|
-
export interface
|
|
554
|
-
/**
|
|
555
|
-
* 商品原图 Url。
|
|
556
|
-
图片限制:单边分辨率小于4000,长宽比在2:5 ~ 5:2之间,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
|
557
|
-
*/
|
|
558
|
-
ProductUrl: string
|
|
616
|
+
export interface ChangeClothesRequest {
|
|
559
617
|
/**
|
|
560
|
-
*
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
618
|
+
* 模特图片 Url。
|
|
619
|
+
图片限制:单边分辨率小于3000,且大于512,转成 Base64 字符串后小于 8MB。
|
|
620
|
+
输入要求:
|
|
621
|
+
1、建议上传正面模特图片,至少完整露出应穿着输入指定服装的身体部位(全身、上半身或下半身),无大角度身体偏转或异常姿势。
|
|
622
|
+
2、建议上传3:4比例的图片,生成效果更佳。
|
|
623
|
+
3、建议模特图片中的原始服装和更换后的服装类别一致,或原始服装在身体上的覆盖范围小于等于更换后的服装(例如需要给模特换上短裤,则原始模特图片中也建议穿短裤,不建议穿长裤),否则会影响人像生成效果。
|
|
624
|
+
|
|
564
625
|
*/
|
|
565
|
-
|
|
626
|
+
ModelUrl: string
|
|
566
627
|
/**
|
|
567
|
-
*
|
|
568
|
-
|
|
628
|
+
* 服装图片 Url。
|
|
629
|
+
图片限制:单边分辨率小于3000,大于512,转成 Base64 字符串后小于 8MB。
|
|
630
|
+
输入要求:
|
|
631
|
+
建议上传服装完整的正面平铺图片,仅包含1个服装主体,服装类型支持上衣、下装、连衣裙,三选一。算法将根据输入的图片,结合服装图片给模特换装。
|
|
569
632
|
*/
|
|
570
|
-
|
|
633
|
+
ClothesUrl: string
|
|
571
634
|
/**
|
|
572
|
-
*
|
|
573
|
-
|
|
574
|
-
|
|
635
|
+
* 服装类型,需要和服装图片保持一致。
|
|
636
|
+
取值:
|
|
637
|
+
Upper-body:上衣
|
|
638
|
+
Lower-body:下装
|
|
639
|
+
Dress:连衣裙
|
|
575
640
|
*/
|
|
576
|
-
|
|
641
|
+
ClothesType: string
|
|
577
642
|
/**
|
|
578
643
|
* 为生成结果图添加标识的开关,默认为1。
|
|
579
644
|
1:添加标识。
|
|
580
645
|
0:不添加标识。
|
|
581
646
|
其他数值:默认按1处理。
|
|
582
|
-
|
|
647
|
+
建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
|
|
583
648
|
*/
|
|
584
649
|
LogoAdd?: number
|
|
585
|
-
/**
|
|
586
|
-
* 标识内容设置。
|
|
587
|
-
默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
|
588
|
-
*/
|
|
589
|
-
LogoParam?: LogoParam
|
|
590
650
|
/**
|
|
591
651
|
* 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
|
|
592
652
|
生成图分辨率较大时建议选择 url,使用 base64 可能因图片过大导致返回失败。
|
|
@@ -76,14 +76,14 @@ export interface VoicePrintVerifyRequest {
|
|
|
76
76
|
* 音频采样率,目前支持16000,单位:Hz,必填
|
|
77
77
|
*/
|
|
78
78
|
SampleRate: number
|
|
79
|
-
/**
|
|
80
|
-
* 说话人id, 说话人唯一标识
|
|
81
|
-
*/
|
|
82
|
-
VoicePrintId: string
|
|
83
79
|
/**
|
|
84
80
|
* 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M
|
|
85
81
|
*/
|
|
86
82
|
Data: string
|
|
83
|
+
/**
|
|
84
|
+
* 说话人id, 说话人唯一标识
|
|
85
|
+
*/
|
|
86
|
+
VoicePrintId: string
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
|
@@ -1179,22 +1179,19 @@ export class Client extends AbstractClient {
|
|
|
1179
1179
|
|
|
1180
1180
|
注:查询实例创建状态可以根据返回值中的requestId访问[DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683)接口
|
|
1181
1181
|
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
当实例的监听器个数超过50个时,不支持克隆。
|
|
1196
|
-
后端服务维度限制
|
|
1197
|
-
不支持克隆绑定的后端服务类型为目标组和 SCF 云函数的实例。
|
|
1182
|
+
限制说明
|
|
1183
|
+
实例属性维度限制:
|
|
1184
|
+
- 支持克隆网络计费模式为按量计费与包年包月的实例,包年包月实例克隆后的新实例网络计费模式会转换为按小时带宽计费,其带宽、规格与原实例设置保持一致。
|
|
1185
|
+
- 不支持克隆未关联实例计费项的 CLB。
|
|
1186
|
+
- 不支持克隆传统型负载均衡实例和高防 CLB。
|
|
1187
|
+
- 不支持克隆基础网络类型的实例。
|
|
1188
|
+
- 不支持克隆 Anycast 类型的实例。
|
|
1189
|
+
- 不支持克隆 IPv6 NAT64 版本的实例。
|
|
1190
|
+
- 不支持克隆被封禁或冻结的实例。
|
|
1191
|
+
- 执行克隆操作前,请确保实例上没有使用已过期证书,否则会导致克隆失败。
|
|
1192
|
+
配额维度限制:
|
|
1193
|
+
- 当实例的监听器个数超过 50 个时,不支持克隆。
|
|
1194
|
+
- 当共享型实例的公网带宽上限超过 2G 时,不支持克隆。
|
|
1198
1195
|
|
|
1199
1196
|
通过接口调用:
|
|
1200
1197
|
BGP带宽包必须传带宽包id
|
|
@@ -354,11 +354,11 @@ export interface DescribeBlueprintInstancesResponse {
|
|
|
354
354
|
/**
|
|
355
355
|
* 符合条件的镜像实例数量。
|
|
356
356
|
*/
|
|
357
|
-
TotalCount
|
|
357
|
+
TotalCount?: number
|
|
358
358
|
/**
|
|
359
359
|
* 镜像实例列表信息。
|
|
360
360
|
*/
|
|
361
|
-
BlueprintInstanceSet
|
|
361
|
+
BlueprintInstanceSet?: Array<BlueprintInstance>
|
|
362
362
|
/**
|
|
363
363
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
364
364
|
*/
|
|
@@ -1295,39 +1295,39 @@ export interface Disk {
|
|
|
1295
1295
|
/**
|
|
1296
1296
|
* 磁盘ID
|
|
1297
1297
|
*/
|
|
1298
|
-
DiskId
|
|
1298
|
+
DiskId?: string
|
|
1299
1299
|
/**
|
|
1300
1300
|
* 实例ID
|
|
1301
1301
|
*/
|
|
1302
|
-
InstanceId
|
|
1302
|
+
InstanceId?: string
|
|
1303
1303
|
/**
|
|
1304
1304
|
* 可用区
|
|
1305
1305
|
*/
|
|
1306
|
-
Zone
|
|
1306
|
+
Zone?: string
|
|
1307
1307
|
/**
|
|
1308
1308
|
* 磁盘名称
|
|
1309
1309
|
*/
|
|
1310
|
-
DiskName
|
|
1310
|
+
DiskName?: string
|
|
1311
1311
|
/**
|
|
1312
1312
|
* 磁盘类型
|
|
1313
1313
|
*/
|
|
1314
|
-
DiskUsage
|
|
1314
|
+
DiskUsage?: string
|
|
1315
1315
|
/**
|
|
1316
1316
|
* 磁盘介质类型
|
|
1317
1317
|
*/
|
|
1318
|
-
DiskType
|
|
1318
|
+
DiskType?: string
|
|
1319
1319
|
/**
|
|
1320
1320
|
* 磁盘付费类型
|
|
1321
1321
|
*/
|
|
1322
|
-
DiskChargeType
|
|
1322
|
+
DiskChargeType?: string
|
|
1323
1323
|
/**
|
|
1324
1324
|
* 磁盘大小
|
|
1325
1325
|
*/
|
|
1326
|
-
DiskSize
|
|
1326
|
+
DiskSize?: number
|
|
1327
1327
|
/**
|
|
1328
1328
|
* 续费标识
|
|
1329
1329
|
*/
|
|
1330
|
-
RenewFlag
|
|
1330
|
+
RenewFlag?: string
|
|
1331
1331
|
/**
|
|
1332
1332
|
* 磁盘状态,取值范围:
|
|
1333
1333
|
<li>PENDING:创建中。 </li>
|
|
@@ -1341,53 +1341,53 @@ export interface Disk {
|
|
|
1341
1341
|
<li> DELETING:删除中。</li>
|
|
1342
1342
|
<li> FREEZING:冻结中。</li>
|
|
1343
1343
|
*/
|
|
1344
|
-
DiskState
|
|
1344
|
+
DiskState?: string
|
|
1345
1345
|
/**
|
|
1346
1346
|
* 磁盘挂载状态
|
|
1347
1347
|
*/
|
|
1348
|
-
Attached
|
|
1348
|
+
Attached?: boolean
|
|
1349
1349
|
/**
|
|
1350
1350
|
* 是否随实例释放
|
|
1351
1351
|
*/
|
|
1352
|
-
DeleteWithInstance
|
|
1352
|
+
DeleteWithInstance?: boolean
|
|
1353
1353
|
/**
|
|
1354
1354
|
* 上一次操作
|
|
1355
1355
|
*/
|
|
1356
|
-
LatestOperation
|
|
1356
|
+
LatestOperation?: string
|
|
1357
1357
|
/**
|
|
1358
1358
|
* 上一次操作状态
|
|
1359
1359
|
*/
|
|
1360
|
-
LatestOperationState
|
|
1360
|
+
LatestOperationState?: string
|
|
1361
1361
|
/**
|
|
1362
1362
|
* 上一次请求ID
|
|
1363
1363
|
*/
|
|
1364
|
-
LatestOperationRequestId
|
|
1364
|
+
LatestOperationRequestId?: string
|
|
1365
1365
|
/**
|
|
1366
1366
|
* 创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
|
|
1367
1367
|
格式为: YYYY-MM-DDThh:mm:ssZ。
|
|
1368
1368
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1369
1369
|
*/
|
|
1370
|
-
CreatedTime
|
|
1370
|
+
CreatedTime?: string
|
|
1371
1371
|
/**
|
|
1372
1372
|
* 到期时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
|
|
1373
1373
|
格式为: YYYY-MM-DDThh:mm:ssZ。
|
|
1374
1374
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1375
1375
|
*/
|
|
1376
|
-
ExpiredTime
|
|
1376
|
+
ExpiredTime?: string
|
|
1377
1377
|
/**
|
|
1378
1378
|
* 隔离时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
|
|
1379
1379
|
格式为: YYYY-MM-DDThh:mm:ssZ。
|
|
1380
1380
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1381
1381
|
*/
|
|
1382
|
-
IsolatedTime
|
|
1382
|
+
IsolatedTime?: string
|
|
1383
1383
|
/**
|
|
1384
1384
|
* 云硬盘的已有备份点数量。
|
|
1385
1385
|
*/
|
|
1386
|
-
DiskBackupCount
|
|
1386
|
+
DiskBackupCount?: number
|
|
1387
1387
|
/**
|
|
1388
1388
|
* 云硬盘的备份点配额数量。
|
|
1389
1389
|
*/
|
|
1390
|
-
DiskBackupQuota
|
|
1390
|
+
DiskBackupQuota?: number
|
|
1391
1391
|
}
|
|
1392
1392
|
|
|
1393
1393
|
/**
|
|
@@ -1423,7 +1423,7 @@ export interface ZoneInfo {
|
|
|
1423
1423
|
*/
|
|
1424
1424
|
export interface DescribeBlueprintInstancesRequest {
|
|
1425
1425
|
/**
|
|
1426
|
-
* 实例 ID
|
|
1426
|
+
* 实例 ID 列表。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。 当前最多支持1个。
|
|
1427
1427
|
*/
|
|
1428
1428
|
InstanceIds: Array<string>
|
|
1429
1429
|
}
|
|
@@ -3839,11 +3839,11 @@ export interface DescribeInstancesReturnableResponse {
|
|
|
3839
3839
|
/**
|
|
3840
3840
|
* 符合条件的实例数量。
|
|
3841
3841
|
*/
|
|
3842
|
-
TotalCount
|
|
3842
|
+
TotalCount?: number
|
|
3843
3843
|
/**
|
|
3844
3844
|
* 可退还实例详细信息列表。
|
|
3845
3845
|
*/
|
|
3846
|
-
InstanceReturnableSet
|
|
3846
|
+
InstanceReturnableSet?: Array<InstanceReturnable>
|
|
3847
3847
|
/**
|
|
3848
3848
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3849
3849
|
*/
|
|
@@ -125,6 +125,7 @@ import {
|
|
|
125
125
|
ListReleaseQAPreviewResponse,
|
|
126
126
|
ModifyRejectedQuestionResponse,
|
|
127
127
|
ListReleaseDocPreviewRequest,
|
|
128
|
+
DocSegment,
|
|
128
129
|
DescribeUnsatisfiedReplyContextResponse,
|
|
129
130
|
Message,
|
|
130
131
|
ExportUnsatisfiedReplyResponse,
|
|
@@ -189,6 +190,7 @@ import {
|
|
|
189
190
|
DeleteDocResponse,
|
|
190
191
|
DocumentElement,
|
|
191
192
|
BaseConfig,
|
|
193
|
+
DescribeSegmentsResponse,
|
|
192
194
|
ClassifyConfig,
|
|
193
195
|
UploadAttributeLabelRequest,
|
|
194
196
|
ExportAttributeLabelRequest,
|
|
@@ -231,6 +233,7 @@ import {
|
|
|
231
233
|
ListRejectedQuestionRequest,
|
|
232
234
|
VerifyQAResponse,
|
|
233
235
|
ReleaseConfigs,
|
|
236
|
+
DescribeSegmentsRequest,
|
|
234
237
|
Filters,
|
|
235
238
|
ModifyRejectedQuestionRequest,
|
|
236
239
|
IgnoreUnsatisfiedReplyResponse,
|
|
@@ -943,6 +946,16 @@ export class Client extends AbstractClient {
|
|
|
943
946
|
return this.request("GroupQA", req, cb)
|
|
944
947
|
}
|
|
945
948
|
|
|
949
|
+
/**
|
|
950
|
+
* 获取片段详情
|
|
951
|
+
*/
|
|
952
|
+
async DescribeSegments(
|
|
953
|
+
req: DescribeSegmentsRequest,
|
|
954
|
+
cb?: (error: string, rep: DescribeSegmentsResponse) => void
|
|
955
|
+
): Promise<DescribeSegmentsResponse> {
|
|
956
|
+
return this.request("DescribeSegments", req, cb)
|
|
957
|
+
}
|
|
958
|
+
|
|
946
959
|
/**
|
|
947
960
|
* 获取拒答问题
|
|
948
961
|
*/
|