tencentcloud-sdk-nodejs-intl-en 3.0.1451 → 3.0.1452
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/package.json +1 -1
- package/tencentcloud/aiart/v20221229/aiart_client.js +2 -17
- package/tencentcloud/aiart/v20221229/models.js +37 -247
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cwp/v20180228/cwp_client.js +825 -193
- package/tencentcloud/cwp/v20180228/models.js +8473 -2518
- package/tencentcloud/databuddy/index.js +3 -0
- package/tencentcloud/databuddy/v20260715/databuddy_client.js +913 -0
- package/tencentcloud/databuddy/v20260715/index.js +4 -0
- package/tencentcloud/databuddy/v20260715/models.js +13294 -0
- package/tencentcloud/emr/v20190103/emr_client.js +950 -696
- package/tencentcloud/emr/v20190103/models.js +16974 -10913
- package/tencentcloud/faceid/v20180301/models.js +24 -1
- package/tencentcloud/index.js +1 -0
- package/tencentcloud/live/v20180801/live_client.js +15 -18
- package/tencentcloud/live/v20180801/models.js +119 -239
package/package.json
CHANGED
|
@@ -16,13 +16,10 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const models = require("./models");
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
-
const
|
|
20
|
-
const LogoParam = models.LogoParam;
|
|
21
|
-
const ImageToImageRequest = models.ImageToImageRequest;
|
|
19
|
+
const ChangeClothesResponse = models.ChangeClothesResponse;
|
|
22
20
|
const LogoRect = models.LogoRect;
|
|
21
|
+
const LogoParam = models.LogoParam;
|
|
23
22
|
const ChangeClothesRequest = models.ChangeClothesRequest;
|
|
24
|
-
const ChangeClothesResponse = models.ChangeClothesResponse;
|
|
25
|
-
const ResultConfig = models.ResultConfig;
|
|
26
23
|
|
|
27
24
|
|
|
28
25
|
/**
|
|
@@ -47,18 +44,6 @@ It supports 1 concurrency by default, which means that up to 1 submitted task ca
|
|
|
47
44
|
this.request("ChangeClothes", req, resp, cb);
|
|
48
45
|
}
|
|
49
46
|
|
|
50
|
-
/**
|
|
51
|
-
* This API is used to transfer the image style based on the image to image technology. Images with small figures, complex gestures or too many figures are not recommended.
|
|
52
|
-
It supports 3 concurrency by default, which means that up to 3 submitted tasks can be processed simultaneously. Subsequent tasks can be processed only after ongoing ones are completed.
|
|
53
|
-
* @param {ImageToImageRequest} req
|
|
54
|
-
* @param {function(string, ImageToImageResponse):void} cb
|
|
55
|
-
* @public
|
|
56
|
-
*/
|
|
57
|
-
ImageToImage(req, cb) {
|
|
58
|
-
let resp = new ImageToImageResponse();
|
|
59
|
-
this.request("ImageToImage", req, resp, cb);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
47
|
|
|
63
48
|
}
|
|
64
49
|
module.exports = AiartClient;
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
const AbstractModel = require("../../common/abstract_model");
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* ChangeClothes response structure.
|
|
21
21
|
* @class
|
|
22
22
|
*/
|
|
23
|
-
class
|
|
23
|
+
class ChangeClothesResponse extends AbstractModel {
|
|
24
24
|
constructor(){
|
|
25
25
|
super();
|
|
26
26
|
|
|
@@ -54,156 +54,36 @@ If the value is url, the URL of the generated image is returned. The URL is vali
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @class
|
|
59
|
-
*/
|
|
60
|
-
class LogoParam extends AbstractModel {
|
|
61
|
-
constructor(){
|
|
62
|
-
super();
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Logo URL
|
|
66
|
-
* @type {string || null}
|
|
67
|
-
*/
|
|
68
|
-
this.LogoUrl = null;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Logo Base64 code. Either the Base64 code or URL must be provided. If both are provided, URL prevails.
|
|
72
|
-
* @type {string || null}
|
|
73
|
-
*/
|
|
74
|
-
this.LogoImage = null;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Coordinates of the logo image in the generated image. The logo image will be stretched according to the coordinates.
|
|
78
|
-
* @type {LogoRect || null}
|
|
79
|
-
*/
|
|
80
|
-
this.LogoRect = null;
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @private
|
|
86
|
-
*/
|
|
87
|
-
deserialize(params) {
|
|
88
|
-
if (!params) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
this.LogoUrl = 'LogoUrl' in params ? params.LogoUrl : null;
|
|
92
|
-
this.LogoImage = 'LogoImage' in params ? params.LogoImage : null;
|
|
93
|
-
|
|
94
|
-
if (params.LogoRect) {
|
|
95
|
-
let obj = new LogoRect();
|
|
96
|
-
obj.deserialize(params.LogoRect)
|
|
97
|
-
this.LogoRect = obj;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* ImageToImage request structure.
|
|
57
|
+
* Input box
|
|
105
58
|
* @class
|
|
106
59
|
*/
|
|
107
|
-
class
|
|
60
|
+
class LogoRect extends AbstractModel {
|
|
108
61
|
constructor(){
|
|
109
62
|
super();
|
|
110
63
|
|
|
111
64
|
/**
|
|
112
|
-
*
|
|
113
|
-
Either the Base64 code or URL must be provided. If both are provided, URL prevails.
|
|
114
|
-
Image restrictions: The single-edge resolution must be less than 5,000 and greater than 50, and the size after Base64 encoding must be less than 8 MB. Supported formats include JPG, JPEG, PNG, BMP, TIFF and WEBP.
|
|
115
|
-
* @type {string || null}
|
|
116
|
-
*/
|
|
117
|
-
this.InputImage = null;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* URL of the input mage.
|
|
121
|
-
Either the Base64 code or URL must be provided. If both are provided, URL prevails.
|
|
122
|
-
Image restrictions: The single-edge resolution must be less than 5,000 and greater than 50, and the size after Base64 encoding must be less than 8 MB. Supported formats include JPG, JPEG, PNG, BMP, TIFF and WEBP.
|
|
123
|
-
* @type {string || null}
|
|
124
|
-
*/
|
|
125
|
-
this.InputUrl = null;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Text description.
|
|
129
|
-
It is used to increase the possibility that the generation result contains the described content.
|
|
130
|
-
A maximum of 256 UTF-8 characters are supported.
|
|
131
|
-
* @type {string || null}
|
|
132
|
-
*/
|
|
133
|
-
this.Prompt = null;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Negative text description.
|
|
137
|
-
It is used to reduce the possibility that the generation result contains the described content, but such content cannot be completely avoided.
|
|
138
|
-
English is recommended. A maximum of 256 UTF-8 characters are supported.
|
|
139
|
-
* @type {string || null}
|
|
140
|
-
*/
|
|
141
|
-
this.NegativePrompt = null;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Image style.
|
|
145
|
-
Select the desired style from the [Image Style List](https://intl.cloud.tencent.com/document/product/1668/86250?from_cn_redirect=1) and enter the style number.
|
|
146
|
-
It is recommended to use only one style. If no style is specified, 201 (anime style) is used by default.
|
|
147
|
-
* @type {Array.<string> || null}
|
|
148
|
-
*/
|
|
149
|
-
this.Styles = null;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Configurations of the generated image, including the resolution.
|
|
153
|
-
Images with the following resolutions can be generated: origin (The resolution is the same as the input image resolution, with the edge resolution of up to 2000. The image will be zoomed out proportionally if the resolution is exceeded.), 768:768 (1:1), 768:1024 (3:4), and 1024:768 (4:3).
|
|
154
|
-
If the resolution is not specified, origin is used by default.
|
|
155
|
-
* @type {ResultConfig || null}
|
|
156
|
-
*/
|
|
157
|
-
this.ResultConfig = null;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Switch indicating whether to add a logo to the generated image. Default value: 1.
|
|
161
|
-
1: add logo
|
|
162
|
-
0: do not add logo
|
|
163
|
-
Other values: add logo
|
|
164
|
-
It is recommended to use an obvious logo to indicate that the image result is generated by AI.
|
|
65
|
+
* X-axis coordinate of the upper left corner
|
|
165
66
|
* @type {number || null}
|
|
166
67
|
*/
|
|
167
|
-
this.
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Logo content settings.
|
|
171
|
-
By default, the text "Generated by AI" is added to the bottom right corner of the generated image. You can also use other logo.
|
|
172
|
-
* @type {LogoParam || null}
|
|
173
|
-
*/
|
|
174
|
-
this.LogoParam = null;
|
|
68
|
+
this.X = null;
|
|
175
69
|
|
|
176
70
|
/**
|
|
177
|
-
*
|
|
178
|
-
The smaller the strength value, the more the generated image resembles the original image. Value range: (0, 1]. If the strength is not specified, the default value of the model is used.
|
|
179
|
-
The recommended value range is 0.6 to 0.8.
|
|
71
|
+
* Y-axis coordinate of the upper left corner
|
|
180
72
|
* @type {number || null}
|
|
181
73
|
*/
|
|
182
|
-
this.
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Image return method (base64 or url).
|
|
186
|
-
You can specify only one method. Default value: base64.
|
|
187
|
-
The URL is valid for 1 hour.
|
|
188
|
-
* @type {string || null}
|
|
189
|
-
*/
|
|
190
|
-
this.RspImgType = null;
|
|
74
|
+
this.Y = null;
|
|
191
75
|
|
|
192
76
|
/**
|
|
193
|
-
*
|
|
194
|
-
1: on
|
|
195
|
-
0: off
|
|
196
|
-
If the switch is turned on, the image clarity will be enhanced and the generation time will increase.
|
|
77
|
+
* Box width
|
|
197
78
|
* @type {number || null}
|
|
198
79
|
*/
|
|
199
|
-
this.
|
|
80
|
+
this.Width = null;
|
|
200
81
|
|
|
201
82
|
/**
|
|
202
|
-
*
|
|
203
|
-
If the input value is greater than 0, the value will be used as the maximum number of faces with a small area can be restored in each image. The generation time will increase according to the actual number of faces restored.
|
|
83
|
+
* Box height
|
|
204
84
|
* @type {number || null}
|
|
205
85
|
*/
|
|
206
|
-
this.
|
|
86
|
+
this.Height = null;
|
|
207
87
|
|
|
208
88
|
}
|
|
209
89
|
|
|
@@ -214,63 +94,39 @@ If the input value is greater than 0, the value will be used as the maximum numb
|
|
|
214
94
|
if (!params) {
|
|
215
95
|
return;
|
|
216
96
|
}
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
220
|
-
this.
|
|
221
|
-
this.Styles = 'Styles' in params ? params.Styles : null;
|
|
222
|
-
|
|
223
|
-
if (params.ResultConfig) {
|
|
224
|
-
let obj = new ResultConfig();
|
|
225
|
-
obj.deserialize(params.ResultConfig)
|
|
226
|
-
this.ResultConfig = obj;
|
|
227
|
-
}
|
|
228
|
-
this.LogoAdd = 'LogoAdd' in params ? params.LogoAdd : null;
|
|
229
|
-
|
|
230
|
-
if (params.LogoParam) {
|
|
231
|
-
let obj = new LogoParam();
|
|
232
|
-
obj.deserialize(params.LogoParam)
|
|
233
|
-
this.LogoParam = obj;
|
|
234
|
-
}
|
|
235
|
-
this.Strength = 'Strength' in params ? params.Strength : null;
|
|
236
|
-
this.RspImgType = 'RspImgType' in params ? params.RspImgType : null;
|
|
237
|
-
this.EnhanceImage = 'EnhanceImage' in params ? params.EnhanceImage : null;
|
|
238
|
-
this.RestoreFace = 'RestoreFace' in params ? params.RestoreFace : null;
|
|
97
|
+
this.X = 'X' in params ? params.X : null;
|
|
98
|
+
this.Y = 'Y' in params ? params.Y : null;
|
|
99
|
+
this.Width = 'Width' in params ? params.Width : null;
|
|
100
|
+
this.Height = 'Height' in params ? params.Height : null;
|
|
239
101
|
|
|
240
102
|
}
|
|
241
103
|
}
|
|
242
104
|
|
|
243
105
|
/**
|
|
244
|
-
*
|
|
106
|
+
* Logo parameter
|
|
245
107
|
* @class
|
|
246
108
|
*/
|
|
247
|
-
class
|
|
109
|
+
class LogoParam extends AbstractModel {
|
|
248
110
|
constructor(){
|
|
249
111
|
super();
|
|
250
112
|
|
|
251
113
|
/**
|
|
252
|
-
*
|
|
253
|
-
* @type {
|
|
254
|
-
*/
|
|
255
|
-
this.X = null;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Y-axis coordinate of the upper left corner
|
|
259
|
-
* @type {number || null}
|
|
114
|
+
* Logo URL
|
|
115
|
+
* @type {string || null}
|
|
260
116
|
*/
|
|
261
|
-
this.
|
|
117
|
+
this.LogoUrl = null;
|
|
262
118
|
|
|
263
119
|
/**
|
|
264
|
-
*
|
|
265
|
-
* @type {
|
|
120
|
+
* Logo Base64 code. Either the Base64 code or URL must be provided. If both are provided, URL prevails.
|
|
121
|
+
* @type {string || null}
|
|
266
122
|
*/
|
|
267
|
-
this.
|
|
123
|
+
this.LogoImage = null;
|
|
268
124
|
|
|
269
125
|
/**
|
|
270
|
-
*
|
|
271
|
-
* @type {
|
|
126
|
+
* Coordinates of the logo image in the generated image. The logo image will be stretched according to the coordinates.
|
|
127
|
+
* @type {LogoRect || null}
|
|
272
128
|
*/
|
|
273
|
-
this.
|
|
129
|
+
this.LogoRect = null;
|
|
274
130
|
|
|
275
131
|
}
|
|
276
132
|
|
|
@@ -281,10 +137,14 @@ class LogoRect extends AbstractModel {
|
|
|
281
137
|
if (!params) {
|
|
282
138
|
return;
|
|
283
139
|
}
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
286
|
-
|
|
287
|
-
|
|
140
|
+
this.LogoUrl = 'LogoUrl' in params ? params.LogoUrl : null;
|
|
141
|
+
this.LogoImage = 'LogoImage' in params ? params.LogoImage : null;
|
|
142
|
+
|
|
143
|
+
if (params.LogoRect) {
|
|
144
|
+
let obj = new LogoRect();
|
|
145
|
+
obj.deserialize(params.LogoRect)
|
|
146
|
+
this.LogoRect = obj;
|
|
147
|
+
}
|
|
288
148
|
|
|
289
149
|
}
|
|
290
150
|
}
|
|
@@ -377,80 +237,10 @@ It is recommended to choose url when the generated image resolution is large. Us
|
|
|
377
237
|
}
|
|
378
238
|
}
|
|
379
239
|
|
|
380
|
-
/**
|
|
381
|
-
* ChangeClothes response structure.
|
|
382
|
-
* @class
|
|
383
|
-
*/
|
|
384
|
-
class ChangeClothesResponse extends AbstractModel {
|
|
385
|
-
constructor(){
|
|
386
|
-
super();
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Different content is returned depending on the input parameter RspImgType.
|
|
390
|
-
If the value is base64, the Base64 code of the generated image is returned.
|
|
391
|
-
If the value is url, the URL of the generated image is returned. The URL is valid for 1 hour. Save it in time.
|
|
392
|
-
* @type {string || null}
|
|
393
|
-
*/
|
|
394
|
-
this.ResultImage = null;
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
398
|
-
* @type {string || null}
|
|
399
|
-
*/
|
|
400
|
-
this.RequestId = null;
|
|
401
|
-
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* @private
|
|
406
|
-
*/
|
|
407
|
-
deserialize(params) {
|
|
408
|
-
if (!params) {
|
|
409
|
-
return;
|
|
410
|
-
}
|
|
411
|
-
this.ResultImage = 'ResultImage' in params ? params.ResultImage : null;
|
|
412
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
413
|
-
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* Return result configurations
|
|
419
|
-
* @class
|
|
420
|
-
*/
|
|
421
|
-
class ResultConfig extends AbstractModel {
|
|
422
|
-
constructor(){
|
|
423
|
-
super();
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* Generated image resolution.
|
|
427
|
-
|
|
428
|
-
Images with the following resolutions can be generated: origin (The resolution is the same as the input image resolution, with the edge resolution of up to 2000. The image will be zoomed out proportionally if the resolution is exceeded.), 768:768 (1:1), 768:1024 (3:4), and 1024:768 (4:3). If the resolution is not specified, origin is used by default. The generated image may be cropped if the aspect ratio of the generated image is too different from that of the input image.
|
|
429
|
-
* @type {string || null}
|
|
430
|
-
*/
|
|
431
|
-
this.Resolution = null;
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* @private
|
|
437
|
-
*/
|
|
438
|
-
deserialize(params) {
|
|
439
|
-
if (!params) {
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
this.Resolution = 'Resolution' in params ? params.Resolution : null;
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
|
|
447
240
|
module.exports = {
|
|
448
|
-
|
|
449
|
-
LogoParam: LogoParam,
|
|
450
|
-
ImageToImageRequest: ImageToImageRequest,
|
|
241
|
+
ChangeClothesResponse: ChangeClothesResponse,
|
|
451
242
|
LogoRect: LogoRect,
|
|
243
|
+
LogoParam: LogoParam,
|
|
452
244
|
ChangeClothesRequest: ChangeClothesRequest,
|
|
453
|
-
ChangeClothesResponse: ChangeClothesResponse,
|
|
454
|
-
ResultConfig: ResultConfig,
|
|
455
245
|
|
|
456
246
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1452";
|
|
2
2
|
module.exports = sdkVersion
|