tencentcloud-sdk-nodejs 4.0.475 → 4.0.476
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 +231 -0
- package/SERVICE_CHANGELOG.md +643 -0
- package/package.json +1 -1
- package/products.md +11 -11
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cls/v20201016/cls_client.ts +37 -13
- package/src/services/cls/v20201016/cls_models.ts +222 -170
- package/src/services/dts/v20211206/dts_client.ts +4 -4
- package/src/services/mariadb/v20170312/mariadb_client.ts +24 -12
- package/src/services/mariadb/v20170312/mariadb_models.ts +30 -0
- package/src/services/mps/v20190612/mps_client.ts +322 -47
- package/src/services/mps/v20190612/mps_models.ts +2669 -542
- package/src/services/redis/v20180412/redis_models.ts +8 -2
- package/src/services/soe/v20180724/soe_models.ts +38 -35
- package/src/services/tcr/v20190924/tcr_models.ts +5 -0
- package/src/services/tdmq/v20200217/tdmq_models.ts +6 -0
- package/src/services/teo/v20220901/teo_models.ts +17 -1
- package/src/services/tiia/v20190529/tiia_client.ts +22 -24
- package/src/services/tiia/v20190529/tiia_models.ts +19 -19
- package/src/services/vod/v20180717/vod_models.ts +5 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +11 -3
- package/tencentcloud/services/cls/v20201016/cls_client.js +15 -3
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +201 -155
- package/tencentcloud/services/dts/v20211206/dts_client.d.ts +4 -4
- package/tencentcloud/services/dts/v20211206/dts_client.js +4 -4
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.d.ts +9 -5
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.js +12 -6
- package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +26 -0
- package/tencentcloud/services/mps/v20190612/mps_client.d.ts +84 -10
- package/tencentcloud/services/mps/v20190612/mps_client.js +122 -12
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +2281 -477
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +7 -2
- package/tencentcloud/services/soe/v20180724/soe_models.d.ts +35 -32
- package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +4 -0
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +5 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +15 -1
- package/tencentcloud/services/tiia/v20190529/tiia_client.d.ts +19 -21
- package/tencentcloud/services/tiia/v20190529/tiia_client.js +19 -21
- package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +17 -17
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +4 -0
- package/test/cls.v20201016.test.js +22 -2
- package/test/mariadb.v20170312.test.js +14 -4
- package/test/mps.v20190612.test.js +186 -6
|
@@ -1352,14 +1352,19 @@ export interface ChangeReplicaToMasterRequest {
|
|
|
1352
1352
|
GroupId?: number;
|
|
1353
1353
|
}
|
|
1354
1354
|
/**
|
|
1355
|
-
* Proxy
|
|
1355
|
+
* Proxy节点信息。
|
|
1356
1356
|
*/
|
|
1357
1357
|
export interface ProxyNodes {
|
|
1358
1358
|
/**
|
|
1359
|
-
* 节点ID
|
|
1359
|
+
* 节点 ID。
|
|
1360
1360
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1361
1361
|
*/
|
|
1362
1362
|
NodeId: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* 可用区 ID。
|
|
1365
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1366
|
+
*/
|
|
1367
|
+
ZoneId: number;
|
|
1363
1368
|
}
|
|
1364
1369
|
/**
|
|
1365
1370
|
* ModifyInstance返回参数结构体
|
|
@@ -81,11 +81,11 @@ export interface InitOralProcessRequest {
|
|
|
81
81
|
/**
|
|
82
82
|
* 评价苛刻指数。取值为[1.0 - 4.0]范围内的浮点数,用于平滑不同年龄段的分数。
|
|
83
83
|
1.0:适用于最小年龄段用户,一般对应儿童应用场景;
|
|
84
|
-
4.0
|
|
84
|
+
4.0:适用于最高年龄段用户,一般对应成人严格打分场景。苛刻度影响范围参考:[苛刻度影响范围](https://cloud.tencent.com/document/product/884/78824#.E8.8B.9B.E5.88.BB.E5.BA.A6)
|
|
85
85
|
*/
|
|
86
86
|
ScoreCoeff: number;
|
|
87
87
|
/**
|
|
88
|
-
* 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId
|
|
88
|
+
* 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId,请勿填入该参数,否则会报欠费错误。使用指南:[业务应用](https://cloud.tencent.com/document/product/884/78824#.E4.B8.9A.E5.8A.A1.E5.BA.94.E7.94.A8)
|
|
89
89
|
*/
|
|
90
90
|
SoeAppId?: string;
|
|
91
91
|
/**
|
|
@@ -106,9 +106,8 @@ export interface InitOralProcessRequest {
|
|
|
106
106
|
SentenceInfoEnabled?: number;
|
|
107
107
|
/**
|
|
108
108
|
* 评估语言
|
|
109
|
-
0
|
|
109
|
+
0:英文(默认)
|
|
110
110
|
1:中文
|
|
111
|
-
ServerType不填默认为0
|
|
112
111
|
*/
|
|
113
112
|
ServerType?: number;
|
|
114
113
|
/**
|
|
@@ -122,7 +121,6 @@ ServerType不填默认为0
|
|
|
122
121
|
* 输入文本模式
|
|
123
122
|
0: 普通文本
|
|
124
123
|
1:[音素结构](https://cloud.tencent.com/document/product/884/33698)文本
|
|
125
|
-
2:音素注册模式(提工单注册需要使用音素的单词)。
|
|
126
124
|
*/
|
|
127
125
|
TextMode?: number;
|
|
128
126
|
/**
|
|
@@ -161,7 +159,7 @@ ServerType不填默认为0
|
|
|
161
159
|
*/
|
|
162
160
|
export interface KeywordEvaluateRequest {
|
|
163
161
|
/**
|
|
164
|
-
* 流式数据包的序号,从1开始,当IsEnd字段为1
|
|
162
|
+
* 流式数据包的序号,从1开始,当IsEnd字段为1后后续序号无意义,非流式模式时无意义。
|
|
165
163
|
注意:序号上限为3000,不能超过上限。
|
|
166
164
|
*/
|
|
167
165
|
SeqId: number;
|
|
@@ -171,11 +169,11 @@ export interface KeywordEvaluateRequest {
|
|
|
171
169
|
IsEnd: number;
|
|
172
170
|
/**
|
|
173
171
|
* 语音文件类型
|
|
174
|
-
1: raw
|
|
172
|
+
1: raw/pcm
|
|
175
173
|
2: wav
|
|
176
174
|
3: mp3
|
|
177
175
|
4: speex
|
|
178
|
-
|
|
176
|
+
[音频上传格式](https://cloud.tencent.com/document/product/884/56132)
|
|
179
177
|
*/
|
|
180
178
|
VoiceFileType: number;
|
|
181
179
|
/**
|
|
@@ -184,7 +182,9 @@ export interface KeywordEvaluateRequest {
|
|
|
184
182
|
*/
|
|
185
183
|
VoiceEncodeType: number;
|
|
186
184
|
/**
|
|
187
|
-
*
|
|
185
|
+
* 当前语音数据, 编码格式要求为BASE64且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数)。格式要求参考[音频上传格式](https://cloud.tencent.com/document/product/884/56132)
|
|
186
|
+
流式模式下需要将语音数据进行分片处理,参考:[分片大小设置](https://cloud.tencent.com/document/product/884/78985#.E5.88.86.E7.89.87.E5.A4.A7.E5.B0.8F.E8.AE.BE.E7.BD.AE.E4.B8.BA.E5.A4.9A.E5.A4.A7.E6.AF.94.E8.BE.83.E5.90.88.E9.80.82.3F)
|
|
187
|
+
如何进行流式分片参考:[流式评测](https://cloud.tencent.com/document/product/884/78824#.E6.B5.81.E5.BC.8F.E8.AF.84.E6.B5.8B)
|
|
188
188
|
*/
|
|
189
189
|
UserVoiceData: string;
|
|
190
190
|
/**
|
|
@@ -196,7 +196,7 @@ export interface KeywordEvaluateRequest {
|
|
|
196
196
|
*/
|
|
197
197
|
Keywords: Array<Keyword>;
|
|
198
198
|
/**
|
|
199
|
-
* 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId
|
|
199
|
+
* 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId,请勿填入该参数,否则会报欠费错误。使用指南:[业务应用](https://cloud.tencent.com/document/product/884/78824#.E4.B8.9A.E5.8A.A1.E5.BA.94.E7.94.A8)
|
|
200
200
|
*/
|
|
201
201
|
SoeAppId?: string;
|
|
202
202
|
/**
|
|
@@ -218,12 +218,11 @@ export interface TransmitOralProcessRequest {
|
|
|
218
218
|
*/
|
|
219
219
|
IsEnd: number;
|
|
220
220
|
/**
|
|
221
|
-
*
|
|
222
|
-
1: raw
|
|
221
|
+
* 1: raw/pcm
|
|
223
222
|
2: wav
|
|
224
223
|
3: mp3
|
|
225
224
|
4: speex
|
|
226
|
-
|
|
225
|
+
[音频上传格式](https://cloud.tencent.com/document/product/884/56132)
|
|
227
226
|
*/
|
|
228
227
|
VoiceFileType: number;
|
|
229
228
|
/**
|
|
@@ -232,7 +231,9 @@ export interface TransmitOralProcessRequest {
|
|
|
232
231
|
*/
|
|
233
232
|
VoiceEncodeType: number;
|
|
234
233
|
/**
|
|
235
|
-
*
|
|
234
|
+
* 当前语音数据, 编码格式要求为BASE64且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数)。格式要求参考[音频上传格式](https://cloud.tencent.com/document/product/884/56132)
|
|
235
|
+
流式模式下需要将语音数据进行分片处理,参考:[分片大小设置](https://cloud.tencent.com/document/product/884/78985#.E5.88.86.E7.89.87.E5.A4.A7.E5.B0.8F.E8.AE.BE.E7.BD.AE.E4.B8.BA.E5.A4.9A.E5.A4.A7.E6.AF.94.E8.BE.83.E5.90.88.E9.80.82.3F)
|
|
236
|
+
如何进行流式分片参考:[流式评测](https://cloud.tencent.com/document/product/884/78824#.E6.B5.81.E5.BC.8F.E8.AF.84.E6.B5.8B)
|
|
236
237
|
*/
|
|
237
238
|
UserVoiceData: string;
|
|
238
239
|
/**
|
|
@@ -240,7 +241,7 @@ export interface TransmitOralProcessRequest {
|
|
|
240
241
|
*/
|
|
241
242
|
SessionId: string;
|
|
242
243
|
/**
|
|
243
|
-
* 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId
|
|
244
|
+
* 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId,请勿填入该参数,否则会报欠费错误。使用指南:[业务应用](https://cloud.tencent.com/document/product/884/78824#.E4.B8.9A.E5.8A.A1.E5.BA.94.E7.94.A8)
|
|
244
245
|
*/
|
|
245
246
|
SoeAppId?: string;
|
|
246
247
|
/**
|
|
@@ -261,11 +262,11 @@ export interface TransmitOralProcessResponse {
|
|
|
261
262
|
*/
|
|
262
263
|
PronAccuracy: number;
|
|
263
264
|
/**
|
|
264
|
-
* 发音流利度,取值范围[0, 1],当为词模式时,取值无意义;当为流式模式且请求中IsEnd未置1
|
|
265
|
+
* 发音流利度,取值范围[0, 1],当为词模式时,取值无意义;当为流式模式且请求中IsEnd未置1时,取值无意义。取值无意义时,值为-1
|
|
265
266
|
*/
|
|
266
267
|
PronFluency: number;
|
|
267
268
|
/**
|
|
268
|
-
* 发音完整度,取值范围[0, 1]
|
|
269
|
+
* 发音完整度,取值范围[0, 1],当为词模式或自由说模式时,取值无意义;当为流式模式且请求中IsEnd未置1时,取值无意义。取值无意义时,值为-1
|
|
269
270
|
*/
|
|
270
271
|
PronCompletion: number;
|
|
271
272
|
/**
|
|
@@ -277,7 +278,7 @@ export interface TransmitOralProcessResponse {
|
|
|
277
278
|
*/
|
|
278
279
|
SessionId: string;
|
|
279
280
|
/**
|
|
280
|
-
*
|
|
281
|
+
* 已废弃,不再保存语音音频文件下载地址
|
|
281
282
|
*/
|
|
282
283
|
AudioUrl: string;
|
|
283
284
|
/**
|
|
@@ -470,11 +471,12 @@ export interface TransmitOralProcessWithInitRequest {
|
|
|
470
471
|
IsEnd: number;
|
|
471
472
|
/**
|
|
472
473
|
* 语音文件类型
|
|
473
|
-
1: raw
|
|
474
|
+
1: raw/pcm
|
|
474
475
|
2: wav
|
|
475
476
|
3: mp3
|
|
476
477
|
4: speex
|
|
477
478
|
语音文件格式目前仅支持 16k 采样率 16bit 编码单声道,如有不一致可能导致评估不准确或失败。
|
|
479
|
+
[音频上传格式](https://cloud.tencent.com/document/product/884/56132)
|
|
478
480
|
*/
|
|
479
481
|
VoiceFileType: number;
|
|
480
482
|
/**
|
|
@@ -483,7 +485,9 @@ export interface TransmitOralProcessWithInitRequest {
|
|
|
483
485
|
*/
|
|
484
486
|
VoiceEncodeType: number;
|
|
485
487
|
/**
|
|
486
|
-
*
|
|
488
|
+
* 当前语音数据, 编码格式要求为BASE64且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数)。格式要求参考[音频上传格式](https://cloud.tencent.com/document/product/884/56132)
|
|
489
|
+
流式模式下需要将语音数据进行分片处理,参考:[分片大小设置](https://cloud.tencent.com/document/product/884/78985#.E5.88.86.E7.89.87.E5.A4.A7.E5.B0.8F.E8.AE.BE.E7.BD.AE.E4.B8.BA.E5.A4.9A.E5.A4.A7.E6.AF.94.E8.BE.83.E5.90.88.E9.80.82.3F)
|
|
490
|
+
如何进行流式分片参考:[流式测试](https://cloud.tencent.com/document/product/884/78824#.E6.B5.81.E5.BC.8F.E8.AF.84.E6.B5.8B)
|
|
487
491
|
*/
|
|
488
492
|
UserVoiceData: string;
|
|
489
493
|
/**
|
|
@@ -522,10 +526,11 @@ export interface TransmitOralProcessWithInitRequest {
|
|
|
522
526
|
* 评价苛刻指数。取值为[1.0 - 4.0]范围内的浮点数,用于平滑不同年龄段的分数。
|
|
523
527
|
1.0:适用于最小年龄段用户,一般对应儿童应用场景;
|
|
524
528
|
4.0:适用于最高年龄段用户,一般对应成人严格打分场景。
|
|
529
|
+
苛刻度影响范围参考:[苛刻度影响范围](https://cloud.tencent.com/document/product/884/78824#.E8.8B.9B.E5.88.BB.E5.BA.A6)
|
|
525
530
|
*/
|
|
526
531
|
ScoreCoeff: number;
|
|
527
532
|
/**
|
|
528
|
-
* 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId
|
|
533
|
+
* 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId,请勿填入该参数,否则会报欠费错误。使用指南:[业务应用](https://cloud.tencent.com/document/product/884/78824#.E4.B8.9A.E5.8A.A1.E5.BA.94.E7.94.A8)
|
|
529
534
|
*/
|
|
530
535
|
SoeAppId?: string;
|
|
531
536
|
/**
|
|
@@ -535,22 +540,21 @@ export interface TransmitOralProcessWithInitRequest {
|
|
|
535
540
|
StorageMode?: number;
|
|
536
541
|
/**
|
|
537
542
|
* 输出断句中间结果标识
|
|
538
|
-
0
|
|
543
|
+
0:不输出(默认)
|
|
539
544
|
1:输出,通过设置该参数
|
|
540
|
-
可以在评估过程中的分片传输请求中,返回已经评估断句的中间结果,中间结果可用于客户端 UI 更新,输出结果为
|
|
545
|
+
可以在评估过程中的分片传输请求中,返回已经评估断句的中间结果,中间结果可用于客户端 UI 更新,输出结果为TransmitOralProcessWithInit请求返回结果 SentenceInfoSet 字段。
|
|
541
546
|
*/
|
|
542
547
|
SentenceInfoEnabled?: number;
|
|
543
548
|
/**
|
|
544
549
|
* 评估语言
|
|
545
|
-
0
|
|
550
|
+
0:英文(默认)
|
|
546
551
|
1:中文
|
|
547
|
-
ServerType不填默认为0
|
|
548
552
|
*/
|
|
549
553
|
ServerType?: number;
|
|
550
554
|
/**
|
|
551
555
|
* 异步模式标识
|
|
552
|
-
0
|
|
553
|
-
1
|
|
556
|
+
0:同步模式(默认)
|
|
557
|
+
1:异步模式(一般情况不建议使用异步模式,如需使用参考:[异步轮询](https://cloud.tencent.com/document/product/884/78824#.E7.BB.93.E6.9E.9C.E6.9F.A5.E8.AF.A2))
|
|
554
558
|
可选值参考[服务模式](https://cloud.tencent.com/document/product/884/33697)。
|
|
555
559
|
*/
|
|
556
560
|
IsAsync?: number;
|
|
@@ -560,9 +564,8 @@ ServerType不填默认为0
|
|
|
560
564
|
IsQuery?: number;
|
|
561
565
|
/**
|
|
562
566
|
* 输入文本模式
|
|
563
|
-
0:
|
|
567
|
+
0: 普通文本(默认)
|
|
564
568
|
1:[音素结构](https://cloud.tencent.com/document/product/884/33698)文本
|
|
565
|
-
2:音素注册模式(提工单注册需要使用音素的单词)。
|
|
566
569
|
*/
|
|
567
570
|
TextMode?: number;
|
|
568
571
|
/**
|
|
@@ -579,11 +582,11 @@ export interface TransmitOralProcessWithInitResponse {
|
|
|
579
582
|
*/
|
|
580
583
|
PronAccuracy: number;
|
|
581
584
|
/**
|
|
582
|
-
* 发音流利度,取值范围[0, 1],当为词模式时,取值无意义;当为流式模式且请求中IsEnd未置1
|
|
585
|
+
* 发音流利度,取值范围[0, 1],当为词模式时,取值无意义;当为流式模式且请求中IsEnd未置1时,取值无意义。取值无意义时,值为-1
|
|
583
586
|
*/
|
|
584
587
|
PronFluency: number;
|
|
585
588
|
/**
|
|
586
|
-
* 发音完整度,取值范围[0, 1]
|
|
589
|
+
* 发音完整度,取值范围[0, 1],当为词模式或自由说模式时,取值无意义;当为流式模式且请求中IsEnd未置1时,取值无意义。取值无意义时,值为-1
|
|
587
590
|
*/
|
|
588
591
|
PronCompletion: number;
|
|
589
592
|
/**
|
|
@@ -595,7 +598,7 @@ export interface TransmitOralProcessWithInitResponse {
|
|
|
595
598
|
*/
|
|
596
599
|
SessionId: string;
|
|
597
600
|
/**
|
|
598
|
-
*
|
|
601
|
+
* 已废弃,不再保存语音音频文件下载地址
|
|
599
602
|
*/
|
|
600
603
|
AudioUrl: string;
|
|
601
604
|
/**
|
|
@@ -2820,6 +2820,11 @@ FilterType = 2表示用户使用 BindingKey 过滤。
|
|
|
2820
2820
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2821
2821
|
*/
|
|
2822
2822
|
Status: number;
|
|
2823
|
+
/**
|
|
2824
|
+
* 0表示pulsar,1表示rocketmq
|
|
2825
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2826
|
+
*/
|
|
2827
|
+
BrokerType: number;
|
|
2823
2828
|
}
|
|
2824
2829
|
/**
|
|
2825
2830
|
* UnbindCmqDeadLetter返回参数结构体
|
|
@@ -2455,7 +2455,7 @@ export interface DescribeDDoSAttackTopDataResponse {
|
|
|
2455
2455
|
*/
|
|
2456
2456
|
export interface SecRuleRelatedInfo {
|
|
2457
2457
|
/**
|
|
2458
|
-
* 规则ID
|
|
2458
|
+
* 规则ID。
|
|
2459
2459
|
*/
|
|
2460
2460
|
RuleId: number;
|
|
2461
2461
|
/**
|
|
@@ -2490,6 +2490,11 @@ export interface SecRuleRelatedInfo {
|
|
|
2490
2490
|
* 规则类型名称。
|
|
2491
2491
|
*/
|
|
2492
2492
|
RuleTypeName: string;
|
|
2493
|
+
/**
|
|
2494
|
+
* 攻击内容。
|
|
2495
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2496
|
+
*/
|
|
2497
|
+
AttackContent: string;
|
|
2493
2498
|
}
|
|
2494
2499
|
/**
|
|
2495
2500
|
* DescribeSpeedTestingQuota返回参数结构体
|
|
@@ -5188,6 +5193,15 @@ export interface SecHitRuleInfo {
|
|
|
5188
5193
|
* 子域名。
|
|
5189
5194
|
*/
|
|
5190
5195
|
Domain: string;
|
|
5196
|
+
/**
|
|
5197
|
+
* Bot标签,取值有:
|
|
5198
|
+
<li>evil_bot:恶意Bot;</li>
|
|
5199
|
+
<li>suspect_bot:疑似Bot;</li>
|
|
5200
|
+
<li>good_bot:正常Bot;</li>
|
|
5201
|
+
<li>normal:正常请求;</li>
|
|
5202
|
+
<li>none:未分类。</li>
|
|
5203
|
+
*/
|
|
5204
|
+
BotLabel: string;
|
|
5191
5205
|
}
|
|
5192
5206
|
/**
|
|
5193
5207
|
* DescribeOriginGroup请求参数结构体
|
|
@@ -12,10 +12,10 @@ export declare class Client extends AbstractClient {
|
|
|
12
12
|
*/
|
|
13
13
|
CreateImage(req: CreateImageRequest, cb?: (error: string, rep: CreateImageResponse) => void): Promise<CreateImageResponse>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* 通用图像标签可识别数千种常见物体或场景,覆盖日常物品、场景、动物、植物、食物、饮品、交通工具等多个大类,返回主体的标签名称和所属细分类目等。
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
-
|
|
17
|
+
>
|
|
18
|
+
- 可前往 [图像标签](https://cloud.tencent.com/document/product/1588) 产品文档中查看更多产品信息。
|
|
19
19
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
20
20
|
*/
|
|
21
21
|
DetectLabelPro(req: DetectLabelProRequest, cb?: (error: string, rep: DetectLabelProResponse) => void): Promise<DetectLabelProResponse>;
|
|
@@ -27,13 +27,9 @@ export declare class Client extends AbstractClient {
|
|
|
27
27
|
*/
|
|
28
28
|
RecognizeCar(req: RecognizeCarRequest, cb?: (error: string, rep: RecognizeCarResponse) => void): Promise<RecognizeCarResponse>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
- **图像标签已升级服务,建议前往使用新版接口[通用图像标签](https://cloud.tencent.com/document/product/865/75196)。**
|
|
32
|
-
- **与本接口相比,[通用图像标签](https://cloud.tencent.com/document/product/865/75196)新版接口提供更高精度的图像标签识别服务,覆盖更广泛的物体与场景类型,效果和通用性更优。**
|
|
33
|
-
|
|
34
|
-
图像标签利用深度学习技术,可以对图片进行智能分类、物体识别等。
|
|
30
|
+
* 图像标签利用深度学习技术,可以对图片进行智能分类、物体识别等。
|
|
35
31
|
|
|
36
|
-
|
|
32
|
+
目前支持八个大类、六十多个子类、数千个标签,涵盖各种日常场景、动植物、物品、美食等。
|
|
37
33
|
|
|
38
34
|
图像标签提供四个版本供选择:
|
|
39
35
|
|
|
@@ -45,20 +41,23 @@ export declare class Client extends AbstractClient {
|
|
|
45
41
|
|
|
46
42
|
• 新闻版:针对新闻、资讯、广电等行业进行优化,增加定制识别,支持万级图像标签。
|
|
47
43
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
为了方便使用、减少图片传输次数,图像标签包装成多合一接口,实际上是多个服务。
|
|
51
|
-
|
|
52
|
-
图像标签按照服务的实际使用数量进行收费。例如一张图片同时调用相册版、摄像头版两个服务,那么此次调用按照两次计费。
|
|
44
|
+
为了方便使用、减少图片传输次数,图像标签将不同版本包装成多合一接口,实际上是多个服务,分别计费。建议在接入初期,对四个版本进行对比评估后选择合适的版本使用。
|
|
53
45
|
|
|
54
46
|
>?
|
|
55
|
-
-
|
|
47
|
+
- 图像标签已升级服务,建议使用新版接口[通用图像标签](https://cloud.tencent.com/document/product/865/75196)。
|
|
48
|
+
- 图像标签摄像头版、相册版、网络版、新闻版分别按照各自的实际使用次数进行收费,例如一张图片同时使用相册版、摄像头版,则按照两次调用计费。建议测试对比后从中选择一个最合适的版本使用即可。
|
|
49
|
+
|
|
50
|
+
>
|
|
51
|
+
- 可前往 [图像标签](https://cloud.tencent.com/document/product/1588) 产品文档中查看更多产品信息。
|
|
56
52
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
53
|
+
|
|
57
54
|
*/
|
|
58
55
|
DetectLabel(req: DetectLabelRequest, cb?: (error: string, rep: DetectLabelResponse) => void): Promise<DetectLabelResponse>;
|
|
59
56
|
/**
|
|
60
57
|
* 评估输入图片在视觉上的质量,从多个方面评估,并同时给出综合的、客观的清晰度评分,和主观的美观度评分。
|
|
58
|
+
|
|
61
59
|
>
|
|
60
|
+
- 可前往 [图像处理](https://cloud.tencent.com/document/product/1590) 产品文档中查看更多产品信息。
|
|
62
61
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
63
62
|
*/
|
|
64
63
|
AssessQuality(req: AssessQualityRequest, cb?: (error: string, rep: AssessQualityResponse) => void): Promise<AssessQualityResponse>;
|
|
@@ -86,10 +85,10 @@ export declare class Client extends AbstractClient {
|
|
|
86
85
|
*/
|
|
87
86
|
DetectLabelBeta(req: DetectLabelBetaRequest, cb?: (error: string, rep: DetectLabelBetaResponse) => void): Promise<DetectLabelBetaResponse>;
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
88
|
+
* 根据输入的裁剪比例,智能判断一张图片的最佳裁剪区域,确保原图的主体区域不受影响,以适应不同平台、设备的展示要求,避免简单拉伸带来的变形。
|
|
90
89
|
|
|
91
|
-
可以自动裁剪图片,适应不同平台、设备的展示要求,避免简单拉伸带来的变形。
|
|
92
90
|
>
|
|
91
|
+
- 可前往 [图像处理](https://cloud.tencent.com/document/product/1590) 产品文档中查看更多产品信息。
|
|
93
92
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
94
93
|
*/
|
|
95
94
|
CropImage(req: CropImageRequest, cb?: (error: string, rep: CropImageResponse) => void): Promise<CropImageResponse>;
|
|
@@ -132,13 +131,12 @@ export declare class Client extends AbstractClient {
|
|
|
132
131
|
*/
|
|
133
132
|
RecognizeCarPro(req: RecognizeCarProRequest, cb?: (error: string, rep: RecognizeCarProResponse) => void): Promise<RecognizeCarProResponse>;
|
|
134
133
|
/**
|
|
135
|
-
*
|
|
136
|
-
- 图像清晰度增强接口将于2022年8月31日结束免费公测,2022年9月1日起正式转入计费。若您不需要使用本服务,请及时停止使用。价格详情在[计费概述](https://cloud.tencent.com/document/product/865/17627)中提前公示,请您参阅。
|
|
137
|
-
|
|
138
|
-
传入一张图片,输出清晰度提升后的图片。
|
|
134
|
+
* 传入一张图片,输出清晰度提升后的图片。
|
|
139
135
|
|
|
140
136
|
可以消除图片有损压缩导致的噪声,和使用滤镜、拍摄失焦导致的模糊。让图片的边缘和细节更加清晰自然。
|
|
137
|
+
|
|
141
138
|
>
|
|
139
|
+
- 可前往 [图像处理](https://cloud.tencent.com/document/product/1590) 产品文档中查看更多产品信息。
|
|
142
140
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
143
141
|
*/
|
|
144
142
|
EnhanceImage(req: EnhanceImageRequest, cb?: (error: string, rep: EnhanceImageResponse) => void): Promise<EnhanceImageResponse>;
|
|
@@ -34,10 +34,10 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
34
34
|
return this.request("CreateImage", req, cb);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* 通用图像标签可识别数千种常见物体或场景,覆盖日常物品、场景、动物、植物、食物、饮品、交通工具等多个大类,返回主体的标签名称和所属细分类目等。
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
-
|
|
39
|
+
>
|
|
40
|
+
- 可前往 [图像标签](https://cloud.tencent.com/document/product/1588) 产品文档中查看更多产品信息。
|
|
41
41
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
42
42
|
*/
|
|
43
43
|
async DetectLabelPro(req, cb) {
|
|
@@ -53,13 +53,9 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
53
53
|
return this.request("RecognizeCar", req, cb);
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
- **图像标签已升级服务,建议前往使用新版接口[通用图像标签](https://cloud.tencent.com/document/product/865/75196)。**
|
|
58
|
-
- **与本接口相比,[通用图像标签](https://cloud.tencent.com/document/product/865/75196)新版接口提供更高精度的图像标签识别服务,覆盖更广泛的物体与场景类型,效果和通用性更优。**
|
|
59
|
-
|
|
60
|
-
图像标签利用深度学习技术,可以对图片进行智能分类、物体识别等。
|
|
56
|
+
* 图像标签利用深度学习技术,可以对图片进行智能分类、物体识别等。
|
|
61
57
|
|
|
62
|
-
|
|
58
|
+
目前支持八个大类、六十多个子类、数千个标签,涵盖各种日常场景、动植物、物品、美食等。
|
|
63
59
|
|
|
64
60
|
图像标签提供四个版本供选择:
|
|
65
61
|
|
|
@@ -71,22 +67,25 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
71
67
|
|
|
72
68
|
• 新闻版:针对新闻、资讯、广电等行业进行优化,增加定制识别,支持万级图像标签。
|
|
73
69
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
为了方便使用、减少图片传输次数,图像标签包装成多合一接口,实际上是多个服务。
|
|
77
|
-
|
|
78
|
-
图像标签按照服务的实际使用数量进行收费。例如一张图片同时调用相册版、摄像头版两个服务,那么此次调用按照两次计费。
|
|
70
|
+
为了方便使用、减少图片传输次数,图像标签将不同版本包装成多合一接口,实际上是多个服务,分别计费。建议在接入初期,对四个版本进行对比评估后选择合适的版本使用。
|
|
79
71
|
|
|
80
72
|
>?
|
|
81
|
-
-
|
|
73
|
+
- 图像标签已升级服务,建议使用新版接口[通用图像标签](https://cloud.tencent.com/document/product/865/75196)。
|
|
74
|
+
- 图像标签摄像头版、相册版、网络版、新闻版分别按照各自的实际使用次数进行收费,例如一张图片同时使用相册版、摄像头版,则按照两次调用计费。建议测试对比后从中选择一个最合适的版本使用即可。
|
|
75
|
+
|
|
76
|
+
>
|
|
77
|
+
- 可前往 [图像标签](https://cloud.tencent.com/document/product/1588) 产品文档中查看更多产品信息。
|
|
82
78
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
79
|
+
|
|
83
80
|
*/
|
|
84
81
|
async DetectLabel(req, cb) {
|
|
85
82
|
return this.request("DetectLabel", req, cb);
|
|
86
83
|
}
|
|
87
84
|
/**
|
|
88
85
|
* 评估输入图片在视觉上的质量,从多个方面评估,并同时给出综合的、客观的清晰度评分,和主观的美观度评分。
|
|
86
|
+
|
|
89
87
|
>
|
|
88
|
+
- 可前往 [图像处理](https://cloud.tencent.com/document/product/1590) 产品文档中查看更多产品信息。
|
|
90
89
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
91
90
|
*/
|
|
92
91
|
async AssessQuality(req, cb) {
|
|
@@ -124,10 +123,10 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
124
123
|
return this.request("DetectLabelBeta", req, cb);
|
|
125
124
|
}
|
|
126
125
|
/**
|
|
127
|
-
*
|
|
126
|
+
* 根据输入的裁剪比例,智能判断一张图片的最佳裁剪区域,确保原图的主体区域不受影响,以适应不同平台、设备的展示要求,避免简单拉伸带来的变形。
|
|
128
127
|
|
|
129
|
-
可以自动裁剪图片,适应不同平台、设备的展示要求,避免简单拉伸带来的变形。
|
|
130
128
|
>
|
|
129
|
+
- 可前往 [图像处理](https://cloud.tencent.com/document/product/1590) 产品文档中查看更多产品信息。
|
|
131
130
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
132
131
|
*/
|
|
133
132
|
async CropImage(req, cb) {
|
|
@@ -184,13 +183,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
184
183
|
return this.request("RecognizeCarPro", req, cb);
|
|
185
184
|
}
|
|
186
185
|
/**
|
|
187
|
-
*
|
|
188
|
-
- 图像清晰度增强接口将于2022年8月31日结束免费公测,2022年9月1日起正式转入计费。若您不需要使用本服务,请及时停止使用。价格详情在[计费概述](https://cloud.tencent.com/document/product/865/17627)中提前公示,请您参阅。
|
|
189
|
-
|
|
190
|
-
传入一张图片,输出清晰度提升后的图片。
|
|
186
|
+
* 传入一张图片,输出清晰度提升后的图片。
|
|
191
187
|
|
|
192
188
|
可以消除图片有损压缩导致的噪声,和使用滤镜、拍摄失焦导致的模糊。让图片的边缘和细节更加清晰自然。
|
|
189
|
+
|
|
193
190
|
>
|
|
191
|
+
- 可前往 [图像处理](https://cloud.tencent.com/document/product/1590) 产品文档中查看更多产品信息。
|
|
194
192
|
- 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
195
193
|
*/
|
|
196
194
|
async EnhanceImage(req, cb) {
|
|
@@ -210,15 +210,15 @@ export interface DeleteImagesResponse {
|
|
|
210
210
|
*/
|
|
211
211
|
export interface CropImageRequest {
|
|
212
212
|
/**
|
|
213
|
-
* 需要裁剪区域的宽度,与Height
|
|
214
|
-
输入数字请大于0
|
|
213
|
+
* 需要裁剪区域的宽度,与Height共同组成所需裁剪的图片宽高比例。
|
|
214
|
+
输入数字请大于0、小于图片宽度的像素值。
|
|
215
215
|
*/
|
|
216
216
|
Width: number;
|
|
217
217
|
/**
|
|
218
|
-
* 需要裁剪区域的高度,与Width
|
|
219
|
-
输入数字请请大于0
|
|
218
|
+
* 需要裁剪区域的高度,与Width共同组成所需裁剪的图片宽高比例。
|
|
219
|
+
输入数字请请大于0、小于图片高度的像素值。
|
|
220
220
|
宽高比例(Width : Height)会简化为最简分数,即如果Width输入10、Height输入20,会简化为1:2。
|
|
221
|
-
Width : Height建议取值在[1, 2.5]
|
|
221
|
+
Width : Height建议取值在[1, 2.5]之间,超过这个范围可能会影响效果。
|
|
222
222
|
*/
|
|
223
223
|
Height: number;
|
|
224
224
|
/**
|
|
@@ -227,14 +227,14 @@ Width : Height建议取值在[1, 2.5]之间,超过这个范围可能会影响
|
|
|
227
227
|
• 图片格式:PNG、JPG、JPEG。
|
|
228
228
|
• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
|
229
229
|
建议:
|
|
230
|
-
• 图片像素:大于50*50
|
|
231
|
-
• 长宽比:长边:短边<5
|
|
230
|
+
• 图片像素:大于50*50像素,否则影响识别效果。
|
|
231
|
+
• 长宽比:长边:短边<5。
|
|
232
232
|
接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
|
233
233
|
*/
|
|
234
234
|
ImageUrl?: string;
|
|
235
235
|
/**
|
|
236
|
-
* 图片经过
|
|
237
|
-
|
|
236
|
+
* 图片经过Base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
|
237
|
+
注意:图片需要Base64编码,并且要去掉编码头部。
|
|
238
238
|
*/
|
|
239
239
|
ImageBase64?: string;
|
|
240
240
|
}
|
|
@@ -640,14 +640,14 @@ export interface AssessQualityRequest {
|
|
|
640
640
|
• 图片格式:PNG、JPG、JPEG。
|
|
641
641
|
• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
|
642
642
|
建议:
|
|
643
|
-
• 图片像素:大于50*50
|
|
644
|
-
• 长宽比:长边:短边<5
|
|
643
|
+
• 图片像素:大于50*50像素,否则影响识别效果。
|
|
644
|
+
• 长宽比:长边:短边<5。
|
|
645
645
|
接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
|
646
646
|
*/
|
|
647
647
|
ImageUrl?: string;
|
|
648
648
|
/**
|
|
649
|
-
* 图片经过
|
|
650
|
-
**注意:图片需要
|
|
649
|
+
* 图片经过Base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
|
650
|
+
**注意:图片需要Base64编码,并且要去掉编码头部。**
|
|
651
651
|
*/
|
|
652
652
|
ImageBase64?: string;
|
|
653
653
|
}
|
|
@@ -807,14 +807,14 @@ export interface EnhanceImageRequest {
|
|
|
807
807
|
• 图片格式:PNG、JPG、JPEG。
|
|
808
808
|
• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
|
809
809
|
建议:
|
|
810
|
-
• 图片像素:大于50*50像素,最大不超过250
|
|
811
|
-
• 长宽比:长边:短边<5
|
|
810
|
+
• 图片像素:大于50*50像素,最大不超过250万像素,否则影响识别效果。
|
|
811
|
+
• 长宽比:长边:短边<5。
|
|
812
812
|
接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
|
813
813
|
*/
|
|
814
814
|
ImageUrl?: string;
|
|
815
815
|
/**
|
|
816
|
-
* 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。图片经过
|
|
817
|
-
|
|
816
|
+
* 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。图片经过Base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
|
817
|
+
注意:图片需要Base64编码,并且要去掉编码头部。
|
|
818
818
|
*/
|
|
819
819
|
ImageBase64?: string;
|
|
820
820
|
}
|
|
@@ -28,9 +28,9 @@ it("cls.v20201016.CreateMachineGroup", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
-
it("cls.v20201016.
|
|
31
|
+
it("cls.v20201016.DeleteMachineGroupInfo", async function () {
|
|
32
32
|
try {
|
|
33
|
-
const data = await client.
|
|
33
|
+
const data = await client.DeleteMachineGroupInfo({})
|
|
34
34
|
expect(data).to.be.ok
|
|
35
35
|
} catch(error) {
|
|
36
36
|
expect(error.requestId).to.be.ok
|
|
@@ -308,6 +308,16 @@ it("cls.v20201016.DescribeAlarms", async function () {
|
|
|
308
308
|
}
|
|
309
309
|
})
|
|
310
310
|
|
|
311
|
+
it("cls.v20201016.AddMachineGroupInfo", async function () {
|
|
312
|
+
try {
|
|
313
|
+
const data = await client.AddMachineGroupInfo({})
|
|
314
|
+
expect(data).to.be.ok
|
|
315
|
+
} catch(error) {
|
|
316
|
+
expect(error.requestId).to.be.ok
|
|
317
|
+
expect(error.code).to.be.ok
|
|
318
|
+
}
|
|
319
|
+
})
|
|
320
|
+
|
|
311
321
|
it("cls.v20201016.DescribeAlarmNotices", async function () {
|
|
312
322
|
try {
|
|
313
323
|
const data = await client.DescribeAlarmNotices({})
|
|
@@ -528,6 +538,16 @@ it("cls.v20201016.DescribeConfigs", async function () {
|
|
|
528
538
|
}
|
|
529
539
|
})
|
|
530
540
|
|
|
541
|
+
it("cls.v20201016.DescribeMachineGroups", async function () {
|
|
542
|
+
try {
|
|
543
|
+
const data = await client.DescribeMachineGroups({})
|
|
544
|
+
expect(data).to.be.ok
|
|
545
|
+
} catch(error) {
|
|
546
|
+
expect(error.requestId).to.be.ok
|
|
547
|
+
expect(error.code).to.be.ok
|
|
548
|
+
}
|
|
549
|
+
})
|
|
550
|
+
|
|
531
551
|
it("cls.v20201016.MergePartition", async function () {
|
|
532
552
|
try {
|
|
533
553
|
const data = await client.MergePartition({})
|