tencentcloud-sdk-nodejs 4.0.610 → 4.0.611
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 +136 -0
- package/SERVICE_CHANGELOG.md +184 -214
- package/package.json +1 -1
- package/products.md +11 -11
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_models.ts +10 -0
- package/src/services/cms/v20190321/cms_client.ts +54 -102
- package/src/services/cms/v20190321/cms_models.ts +580 -702
- package/src/services/dcdb/v20180411/dcdb_client.ts +14 -1
- package/src/services/dcdb/v20180411/dcdb_models.ts +59 -9
- package/src/services/emr/v20190103/emr_client.ts +3 -3
- package/src/services/emr/v20190103/emr_models.ts +33 -1
- package/src/services/ocr/v20181119/ocr_client.ts +22 -8
- package/src/services/ocr/v20181119/ocr_models.ts +91 -21
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +8 -0
- package/tencentcloud/services/cms/v20190321/cms_client.d.ts +13 -37
- package/tencentcloud/services/cms/v20190321/cms_client.js +18 -48
- package/tencentcloud/services/cms/v20190321/cms_models.d.ts +455 -557
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.d.ts +5 -1
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.js +6 -0
- package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +52 -9
- package/tencentcloud/services/emr/v20190103/emr_client.d.ts +0 -1
- package/tencentcloud/services/emr/v20190103/emr_client.js +0 -1
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +28 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +9 -3
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +11 -3
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +74 -16
- package/test/cms.v20190321.test.js +12 -42
- package/test/dcdb.v20180411.test.js +10 -0
- package/test/ocr.v20181119.test.js +12 -2
|
@@ -65,6 +65,7 @@ import {
|
|
|
65
65
|
ModifyDBEncryptAttributesResponse,
|
|
66
66
|
DescribeDCDBInstanceNodeInfoRequest,
|
|
67
67
|
DatabaseView,
|
|
68
|
+
ConfigValue,
|
|
68
69
|
DescribeDBLogFilesRequest,
|
|
69
70
|
NodeInfo,
|
|
70
71
|
DescribeOrdersResponse,
|
|
@@ -89,8 +90,9 @@ import {
|
|
|
89
90
|
DescribeDCDBSaleInfoRequest,
|
|
90
91
|
ModifyRealServerAccessStrategyRequest,
|
|
91
92
|
ExpandShardConfig,
|
|
92
|
-
|
|
93
|
+
ModifyAccountConfigRequest,
|
|
93
94
|
ShardZoneChooseInfo,
|
|
95
|
+
RenewDCDBInstanceRequest,
|
|
94
96
|
DescribeDBEncryptAttributesResponse,
|
|
95
97
|
CreateTmpDCDBInstanceRequest,
|
|
96
98
|
DatabaseTable,
|
|
@@ -171,6 +173,7 @@ import {
|
|
|
171
173
|
ModifyDBEncryptAttributesRequest,
|
|
172
174
|
AddShardConfig,
|
|
173
175
|
ModifyDBSyncModeRequest,
|
|
176
|
+
ModifyAccountConfigResponse,
|
|
174
177
|
DescribeProjectsResponse,
|
|
175
178
|
CreateTmpDCDBInstanceResponse,
|
|
176
179
|
CreateAccountResponse,
|
|
@@ -223,6 +226,16 @@ export class Client extends AbstractClient {
|
|
|
223
226
|
return this.request("DescribeAccountPrivileges", req, cb)
|
|
224
227
|
}
|
|
225
228
|
|
|
229
|
+
/**
|
|
230
|
+
* 修改账号的一些配置,比如 max_user_connections
|
|
231
|
+
*/
|
|
232
|
+
async ModifyAccountConfig(
|
|
233
|
+
req: ModifyAccountConfigRequest,
|
|
234
|
+
cb?: (error: string, rep: ModifyAccountConfigResponse) => void
|
|
235
|
+
): Promise<ModifyAccountConfigResponse> {
|
|
236
|
+
return this.request("ModifyAccountConfig", req, cb)
|
|
237
|
+
}
|
|
238
|
+
|
|
226
239
|
/**
|
|
227
240
|
* 本接口(UpgradeDedicatedDCDBInstance)用于升级TDSQL独享集群实例
|
|
228
241
|
*/
|
|
@@ -1000,6 +1000,21 @@ export interface DatabaseView {
|
|
|
1000
1000
|
View: string
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
|
+
/**
|
|
1004
|
+
* 配置信息。包含配置项Config,配置值Value
|
|
1005
|
+
*/
|
|
1006
|
+
export interface ConfigValue {
|
|
1007
|
+
/**
|
|
1008
|
+
* 配置项的名称,支持填写max_user_connections
|
|
1009
|
+
*/
|
|
1010
|
+
Config: string
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* 配置值
|
|
1014
|
+
*/
|
|
1015
|
+
Value: string
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1003
1018
|
/**
|
|
1004
1019
|
* DescribeDBLogFiles请求参数结构体
|
|
1005
1020
|
*/
|
|
@@ -1939,28 +1954,28 @@ export interface ExpandShardConfig {
|
|
|
1939
1954
|
}
|
|
1940
1955
|
|
|
1941
1956
|
/**
|
|
1942
|
-
*
|
|
1957
|
+
* ModifyAccountConfig请求参数结构体
|
|
1943
1958
|
*/
|
|
1944
|
-
export interface
|
|
1959
|
+
export interface ModifyAccountConfigRequest {
|
|
1945
1960
|
/**
|
|
1946
|
-
*
|
|
1961
|
+
* 实例 ID,格式如:tdsqlshard-kpkvq5oj,与云数据库控制台页面中显示的实例 ID 相同。
|
|
1947
1962
|
*/
|
|
1948
1963
|
InstanceId: string
|
|
1949
1964
|
|
|
1950
1965
|
/**
|
|
1951
|
-
*
|
|
1966
|
+
* 账号的名称
|
|
1952
1967
|
*/
|
|
1953
|
-
|
|
1968
|
+
UserName: string
|
|
1954
1969
|
|
|
1955
1970
|
/**
|
|
1956
|
-
*
|
|
1971
|
+
* 账号的域名
|
|
1957
1972
|
*/
|
|
1958
|
-
|
|
1973
|
+
Host: string
|
|
1959
1974
|
|
|
1960
1975
|
/**
|
|
1961
|
-
*
|
|
1976
|
+
* 配置列表,每一个元素是Config和Value的组合
|
|
1962
1977
|
*/
|
|
1963
|
-
|
|
1978
|
+
Configs: Array<ConfigValue>
|
|
1964
1979
|
}
|
|
1965
1980
|
|
|
1966
1981
|
/**
|
|
@@ -1978,6 +1993,31 @@ export interface ShardZoneChooseInfo {
|
|
|
1978
1993
|
SlaveZones: Array<ZonesInfo>
|
|
1979
1994
|
}
|
|
1980
1995
|
|
|
1996
|
+
/**
|
|
1997
|
+
* RenewDCDBInstance请求参数结构体
|
|
1998
|
+
*/
|
|
1999
|
+
export interface RenewDCDBInstanceRequest {
|
|
2000
|
+
/**
|
|
2001
|
+
* 待续费的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。
|
|
2002
|
+
*/
|
|
2003
|
+
InstanceId: string
|
|
2004
|
+
|
|
2005
|
+
/**
|
|
2006
|
+
* 续费时长,单位:月。
|
|
2007
|
+
*/
|
|
2008
|
+
Period: number
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* 是否自动使用代金券进行支付,默认不使用。
|
|
2012
|
+
*/
|
|
2013
|
+
AutoVoucher?: boolean
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* 代金券ID列表,目前仅支持指定一张代金券。
|
|
2017
|
+
*/
|
|
2018
|
+
VoucherIds?: Array<string>
|
|
2019
|
+
}
|
|
2020
|
+
|
|
1981
2021
|
/**
|
|
1982
2022
|
* DescribeDBEncryptAttributes返回参数结构体
|
|
1983
2023
|
*/
|
|
@@ -4379,6 +4419,16 @@ export interface ModifyDBSyncModeRequest {
|
|
|
4379
4419
|
SyncMode: number
|
|
4380
4420
|
}
|
|
4381
4421
|
|
|
4422
|
+
/**
|
|
4423
|
+
* ModifyAccountConfig返回参数结构体
|
|
4424
|
+
*/
|
|
4425
|
+
export interface ModifyAccountConfigResponse {
|
|
4426
|
+
/**
|
|
4427
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4428
|
+
*/
|
|
4429
|
+
RequestId?: string
|
|
4430
|
+
}
|
|
4431
|
+
|
|
4382
4432
|
/**
|
|
4383
4433
|
* DescribeProjects返回参数结构体
|
|
4384
4434
|
*/
|
|
@@ -91,6 +91,7 @@ import {
|
|
|
91
91
|
SubnetInfo,
|
|
92
92
|
DescribeCvmQuotaResponse,
|
|
93
93
|
CreateClusterRequest,
|
|
94
|
+
UserAndGroup,
|
|
94
95
|
BootstrapAction,
|
|
95
96
|
DescribeCvmQuotaRequest,
|
|
96
97
|
DescribeClusterNodesRequest,
|
|
@@ -295,9 +296,8 @@ export class Client extends AbstractClient {
|
|
|
295
296
|
}
|
|
296
297
|
|
|
297
298
|
/**
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
*/
|
|
299
|
+
* 删除用户列表(用户管理)
|
|
300
|
+
*/
|
|
301
301
|
async DeleteUserManagerUserList(
|
|
302
302
|
req: DeleteUserManagerUserListRequest,
|
|
303
303
|
cb?: (error: string, rep: DeleteUserManagerUserListResponse) => void
|
|
@@ -2586,7 +2586,22 @@ export interface DeleteUserManagerUserListRequest {
|
|
|
2586
2586
|
/**
|
|
2587
2587
|
* 集群用户名列表
|
|
2588
2588
|
*/
|
|
2589
|
-
UserNameList
|
|
2589
|
+
UserNameList?: Array<string>
|
|
2590
|
+
|
|
2591
|
+
/**
|
|
2592
|
+
* tke/eks集群id,容器集群传
|
|
2593
|
+
*/
|
|
2594
|
+
TkeClusterId?: string
|
|
2595
|
+
|
|
2596
|
+
/**
|
|
2597
|
+
* 默认空,容器版传"native"
|
|
2598
|
+
*/
|
|
2599
|
+
DisplayStrategy?: string
|
|
2600
|
+
|
|
2601
|
+
/**
|
|
2602
|
+
* 用户组
|
|
2603
|
+
*/
|
|
2604
|
+
UserGroupList?: Array<UserAndGroup>
|
|
2590
2605
|
}
|
|
2591
2606
|
|
|
2592
2607
|
/**
|
|
@@ -3033,6 +3048,23 @@ export interface CreateClusterRequest {
|
|
|
3033
3048
|
ZoneResourceConfiguration?: Array<ZoneResourceConfiguration>
|
|
3034
3049
|
}
|
|
3035
3050
|
|
|
3051
|
+
/**
|
|
3052
|
+
* 容器集群用户组信息
|
|
3053
|
+
*/
|
|
3054
|
+
export interface UserAndGroup {
|
|
3055
|
+
/**
|
|
3056
|
+
* 用户名
|
|
3057
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3058
|
+
*/
|
|
3059
|
+
UserName: string
|
|
3060
|
+
|
|
3061
|
+
/**
|
|
3062
|
+
* 用户组
|
|
3063
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3064
|
+
*/
|
|
3065
|
+
UserGroup: string
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3036
3068
|
/**
|
|
3037
3069
|
* 引导脚本
|
|
3038
3070
|
*/
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
InvoiceGeneralOCRRequest,
|
|
52
52
|
Rect,
|
|
53
53
|
LicensePlateInfo,
|
|
54
|
-
|
|
54
|
+
RideHailingTransportLicenseOCRRequest,
|
|
55
55
|
VatRollItem,
|
|
56
56
|
TextFormula,
|
|
57
57
|
HmtResidentPermitOCRResponse,
|
|
@@ -138,6 +138,7 @@ import {
|
|
|
138
138
|
TaxiInvoiceOCRRequest,
|
|
139
139
|
MachinePrintedInvoice,
|
|
140
140
|
PropOwnerCertOCRRequest,
|
|
141
|
+
SingleInvoiceInfo,
|
|
141
142
|
RecognizeContainerOCRRequest,
|
|
142
143
|
TrainTicket,
|
|
143
144
|
EduPaperOCRRequest,
|
|
@@ -161,6 +162,7 @@ import {
|
|
|
161
162
|
TextVehicleBack,
|
|
162
163
|
RecognizeIndonesiaIDCardOCRResponse,
|
|
163
164
|
GeneralEfficientOCRRequest,
|
|
165
|
+
RecognizePhilippinesUMIDOCRResponse,
|
|
164
166
|
AdvertiseOCRRequest,
|
|
165
167
|
RideHailingDriverLicenseOCRResponse,
|
|
166
168
|
Detail,
|
|
@@ -270,7 +272,7 @@ import {
|
|
|
270
272
|
WaybillOCRRequest,
|
|
271
273
|
VinOCRRequest,
|
|
272
274
|
VatInvoiceOCRRequest,
|
|
273
|
-
|
|
275
|
+
RecognizePhilippinesUMIDOCRRequest,
|
|
274
276
|
MLIDCardOCRResponse,
|
|
275
277
|
RecognizePhilippinesTinIDOCRRequest,
|
|
276
278
|
RecognizeTableOCRRequest,
|
|
@@ -658,13 +660,13 @@ export class Client extends AbstractClient {
|
|
|
658
660
|
}
|
|
659
661
|
|
|
660
662
|
/**
|
|
661
|
-
*
|
|
663
|
+
* 菲律宾UMID识别
|
|
662
664
|
*/
|
|
663
|
-
async
|
|
664
|
-
req:
|
|
665
|
-
cb?: (error: string, rep:
|
|
666
|
-
): Promise<
|
|
667
|
-
return this.request("
|
|
665
|
+
async RecognizePhilippinesUMIDOCR(
|
|
666
|
+
req: RecognizePhilippinesUMIDOCRRequest,
|
|
667
|
+
cb?: (error: string, rep: RecognizePhilippinesUMIDOCRResponse) => void
|
|
668
|
+
): Promise<RecognizePhilippinesUMIDOCRResponse> {
|
|
669
|
+
return this.request("RecognizePhilippinesUMIDOCR", req, cb)
|
|
668
670
|
}
|
|
669
671
|
|
|
670
672
|
/**
|
|
@@ -695,6 +697,8 @@ export class Client extends AbstractClient {
|
|
|
695
697
|
/**
|
|
696
698
|
* 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
|
|
697
699
|
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
|
700
|
+
|
|
701
|
+
默认接口请求频率限制:10次/秒
|
|
698
702
|
*/
|
|
699
703
|
async RecognizeThaiIDCardOCR(
|
|
700
704
|
req: RecognizeThaiIDCardOCRRequest,
|
|
@@ -797,6 +801,16 @@ export class Client extends AbstractClient {
|
|
|
797
801
|
return this.request("RecognizeOnlineTaxiItineraryOCR", req, cb)
|
|
798
802
|
}
|
|
799
803
|
|
|
804
|
+
/**
|
|
805
|
+
* 本接口支持图片内车辆识别代号(VIN)的检测和识别。
|
|
806
|
+
*/
|
|
807
|
+
async VinOCR(
|
|
808
|
+
req: VinOCRRequest,
|
|
809
|
+
cb?: (error: string, rep: VinOCRResponse) => void
|
|
810
|
+
): Promise<VinOCRResponse> {
|
|
811
|
+
return this.request("VinOCR", req, cb)
|
|
812
|
+
}
|
|
813
|
+
|
|
800
814
|
/**
|
|
801
815
|
* 本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备防伪识别、人像照片裁剪等扩展功能。
|
|
802
816
|
|
|
@@ -1283,23 +1283,20 @@ export interface LicensePlateInfo {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
1285
1285
|
/**
|
|
1286
|
-
*
|
|
1286
|
+
* RideHailingTransportLicenseOCR请求参数结构体
|
|
1287
1287
|
*/
|
|
1288
|
-
export interface
|
|
1289
|
-
/**
|
|
1290
|
-
* 识别出的字段名称
|
|
1291
|
-
*/
|
|
1292
|
-
Name: string
|
|
1293
|
-
|
|
1288
|
+
export interface RideHailingTransportLicenseOCRRequest {
|
|
1294
1289
|
/**
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1290
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
|
1291
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
1292
|
+
*/
|
|
1293
|
+
ImageBase64?: string
|
|
1298
1294
|
|
|
1299
1295
|
/**
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1296
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
|
1297
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
1298
|
+
*/
|
|
1299
|
+
ImageUrl?: string
|
|
1303
1300
|
}
|
|
1304
1301
|
|
|
1305
1302
|
/**
|
|
@@ -4732,6 +4729,26 @@ export interface PropOwnerCertOCRRequest {
|
|
|
4732
4729
|
ImageUrl?: string
|
|
4733
4730
|
}
|
|
4734
4731
|
|
|
4732
|
+
/**
|
|
4733
|
+
* 混贴票据中单张发票的内容
|
|
4734
|
+
*/
|
|
4735
|
+
export interface SingleInvoiceInfo {
|
|
4736
|
+
/**
|
|
4737
|
+
* 识别出的字段名称
|
|
4738
|
+
*/
|
|
4739
|
+
Name: string
|
|
4740
|
+
|
|
4741
|
+
/**
|
|
4742
|
+
* 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
|
|
4743
|
+
*/
|
|
4744
|
+
Value: string
|
|
4745
|
+
|
|
4746
|
+
/**
|
|
4747
|
+
* 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。
|
|
4748
|
+
*/
|
|
4749
|
+
Row: number
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4735
4752
|
/**
|
|
4736
4753
|
* RecognizeContainerOCR请求参数结构体
|
|
4737
4754
|
*/
|
|
@@ -6059,6 +6076,56 @@ export interface GeneralEfficientOCRRequest {
|
|
|
6059
6076
|
ImageUrl?: string
|
|
6060
6077
|
}
|
|
6061
6078
|
|
|
6079
|
+
/**
|
|
6080
|
+
* RecognizePhilippinesUMIDOCR返回参数结构体
|
|
6081
|
+
*/
|
|
6082
|
+
export interface RecognizePhilippinesUMIDOCRResponse {
|
|
6083
|
+
/**
|
|
6084
|
+
* 姓
|
|
6085
|
+
*/
|
|
6086
|
+
Surname?: TextDetectionResult
|
|
6087
|
+
|
|
6088
|
+
/**
|
|
6089
|
+
* 中间名
|
|
6090
|
+
*/
|
|
6091
|
+
MiddleName?: TextDetectionResult
|
|
6092
|
+
|
|
6093
|
+
/**
|
|
6094
|
+
* 名
|
|
6095
|
+
*/
|
|
6096
|
+
GivenName?: TextDetectionResult
|
|
6097
|
+
|
|
6098
|
+
/**
|
|
6099
|
+
* 地址
|
|
6100
|
+
*/
|
|
6101
|
+
Address?: TextDetectionResult
|
|
6102
|
+
|
|
6103
|
+
/**
|
|
6104
|
+
* 生日
|
|
6105
|
+
*/
|
|
6106
|
+
Birthday?: TextDetectionResult
|
|
6107
|
+
|
|
6108
|
+
/**
|
|
6109
|
+
* crn码
|
|
6110
|
+
*/
|
|
6111
|
+
CRN?: TextDetectionResult
|
|
6112
|
+
|
|
6113
|
+
/**
|
|
6114
|
+
* 性别
|
|
6115
|
+
*/
|
|
6116
|
+
Sex?: TextDetectionResult
|
|
6117
|
+
|
|
6118
|
+
/**
|
|
6119
|
+
* 人像照片Base64后的结果
|
|
6120
|
+
*/
|
|
6121
|
+
HeadPortrait?: TextDetectionResult
|
|
6122
|
+
|
|
6123
|
+
/**
|
|
6124
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
6125
|
+
*/
|
|
6126
|
+
RequestId?: string
|
|
6127
|
+
}
|
|
6128
|
+
|
|
6062
6129
|
/**
|
|
6063
6130
|
* AdvertiseOCR请求参数结构体
|
|
6064
6131
|
*/
|
|
@@ -9902,20 +9969,23 @@ export interface VatInvoiceOCRRequest {
|
|
|
9902
9969
|
}
|
|
9903
9970
|
|
|
9904
9971
|
/**
|
|
9905
|
-
*
|
|
9972
|
+
* RecognizePhilippinesUMIDOCR请求参数结构体
|
|
9906
9973
|
*/
|
|
9907
|
-
export interface
|
|
9974
|
+
export interface RecognizePhilippinesUMIDOCRRequest {
|
|
9908
9975
|
/**
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
*/
|
|
9976
|
+
* 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
9977
|
+
*/
|
|
9912
9978
|
ImageBase64?: string
|
|
9913
9979
|
|
|
9914
9980
|
/**
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
*/
|
|
9981
|
+
* 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
9982
|
+
*/
|
|
9918
9983
|
ImageUrl?: string
|
|
9984
|
+
|
|
9985
|
+
/**
|
|
9986
|
+
* 是否返回人像照片。
|
|
9987
|
+
*/
|
|
9988
|
+
ReturnHeadImage?: boolean
|
|
9919
9989
|
}
|
|
9920
9990
|
|
|
9921
9991
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sdkVersion = "4.0.
|
|
1
|
+
export declare const sdkVersion = "4.0.611";
|
|
@@ -2180,6 +2180,14 @@ export interface DescribeBinlogsRequest {
|
|
|
2180
2180
|
* 分页大小,默认值为20,最小值为1,最大值为100。
|
|
2181
2181
|
*/
|
|
2182
2182
|
Limit?: number;
|
|
2183
|
+
/**
|
|
2184
|
+
* binlog开始时间,筛选大于等于此值,时间格式:2016-03-17 02:10:37
|
|
2185
|
+
*/
|
|
2186
|
+
MinStartTime?: string;
|
|
2187
|
+
/**
|
|
2188
|
+
* binlog开始时间,筛选小于等于此值,时间格式:2016-03-17 02:10:37
|
|
2189
|
+
*/
|
|
2190
|
+
MaxStartTime?: string;
|
|
2183
2191
|
}
|
|
2184
2192
|
/**
|
|
2185
2193
|
* DescribeCdbProxyInfo请求参数结构体
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import {
|
|
3
|
+
import { CreateKeywordsSamplesResponse, CreateKeywordsSamplesRequest, DescribeKeywordsLibsRequest, ImageModerationResponse, TextModerationResponse, ImageModerationRequest, DescribeLibSamplesResponse, DescribeLibSamplesRequest, DeleteLibSamplesResponse, TextModerationRequest, DeleteLibSamplesRequest, DescribeKeywordsLibsResponse } from "./cms_models";
|
|
4
4
|
/**
|
|
5
5
|
* cms client
|
|
6
6
|
* @class
|
|
@@ -8,51 +8,27 @@ import { TextModerationRequest, ImageModerationResponse, TextModerationResponse,
|
|
|
8
8
|
export declare class Client extends AbstractClient {
|
|
9
9
|
constructor(clientConfig: ClientConfig);
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
<br>
|
|
13
|
-
删除文本样本库,暂时只支持单个删除。
|
|
14
|
-
*/
|
|
15
|
-
DeleteTextSample(req: DeleteTextSampleRequest, cb?: (error: string, rep: DeleteTextSampleResponse) => void): Promise<DeleteTextSampleResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* 本文档适用于文本内容安全、音频内容安全自定义识别库的管理。
|
|
18
|
-
<br>
|
|
19
|
-
通过该接口可以将文本新增到样本库。
|
|
20
|
-
*/
|
|
21
|
-
CreateTextSample(req: CreateTextSampleRequest, cb?: (error: string, rep: CreateTextSampleResponse) => void): Promise<CreateTextSampleResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* 本文档适用于图片内容安全、视频内容安全自定义识别库的管理。
|
|
24
|
-
<br>
|
|
25
|
-
通过该接口可以将图片新增到样本库。
|
|
26
|
-
*/
|
|
27
|
-
CreateFileSample(req: CreateFileSampleRequest, cb?: (error: string, rep: CreateFileSampleResponse) => void): Promise<CreateFileSampleResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* 本文档适用于文本内容安全、音频内容安全自定义识别库的管理。
|
|
30
|
-
<br>
|
|
31
|
-
支持批量查询文本样本库。
|
|
11
|
+
* 文本内容检测(Text Moderation)服务使用了深度学习技术,识别涉黄、涉政、涉恐等有害内容,同时支持用户配置词库,打击自定义的违规文本。
|
|
32
12
|
*/
|
|
33
|
-
|
|
13
|
+
TextModeration(req: TextModerationRequest, cb?: (error: string, rep: TextModerationResponse) => void): Promise<TextModerationResponse>;
|
|
34
14
|
/**
|
|
35
|
-
*
|
|
15
|
+
* 图片内容检测服务(Image Moderation, IM)能自动扫描图片,识别涉黄、涉恐、涉政、涉毒等有害内容,同时支持用户配置图片黑名单,打击自定义的违规图片。
|
|
36
16
|
*/
|
|
37
|
-
|
|
17
|
+
ImageModeration(req: ImageModerationRequest, cb?: (error: string, rep: ImageModerationResponse) => void): Promise<ImageModerationResponse>;
|
|
38
18
|
/**
|
|
39
|
-
*
|
|
40
|
-
<br>
|
|
41
|
-
查询图片样本库,支持批量查询。
|
|
19
|
+
* 获取关键词接口
|
|
42
20
|
*/
|
|
43
|
-
|
|
21
|
+
DescribeLibSamples(req: DescribeLibSamplesRequest, cb?: (error: string, rep: DescribeLibSamplesResponse) => void): Promise<DescribeLibSamplesResponse>;
|
|
44
22
|
/**
|
|
45
|
-
*
|
|
23
|
+
* 获取用户词库列表
|
|
46
24
|
*/
|
|
47
|
-
|
|
25
|
+
DescribeKeywordsLibs(req: DescribeKeywordsLibsRequest, cb?: (error: string, rep: DescribeKeywordsLibsResponse) => void): Promise<DescribeKeywordsLibsResponse>;
|
|
48
26
|
/**
|
|
49
|
-
*
|
|
27
|
+
* 创建关键词接口
|
|
50
28
|
*/
|
|
51
|
-
|
|
29
|
+
CreateKeywordsSamples(req: CreateKeywordsSamplesRequest, cb?: (error: string, rep: CreateKeywordsSamplesResponse) => void): Promise<CreateKeywordsSamplesResponse>;
|
|
52
30
|
/**
|
|
53
|
-
*
|
|
54
|
-
<br>
|
|
55
|
-
删除图片样本库,支持批量删除,一次提交不超过20个。
|
|
31
|
+
* 删除关键词接口
|
|
56
32
|
*/
|
|
57
|
-
|
|
33
|
+
DeleteLibSamples(req: DeleteLibSamplesRequest, cb?: (error: string, rep: DeleteLibSamplesResponse) => void): Promise<DeleteLibSamplesResponse>;
|
|
58
34
|
}
|
|
@@ -28,70 +28,40 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
28
28
|
super("cms.tencentcloudapi.com", "2019-03-21", clientConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
<br>
|
|
33
|
-
删除文本样本库,暂时只支持单个删除。
|
|
34
|
-
*/
|
|
35
|
-
async DeleteTextSample(req, cb) {
|
|
36
|
-
return this.request("DeleteTextSample", req, cb);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* 本文档适用于文本内容安全、音频内容安全自定义识别库的管理。
|
|
40
|
-
<br>
|
|
41
|
-
通过该接口可以将文本新增到样本库。
|
|
42
|
-
*/
|
|
43
|
-
async CreateTextSample(req, cb) {
|
|
44
|
-
return this.request("CreateTextSample", req, cb);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* 本文档适用于图片内容安全、视频内容安全自定义识别库的管理。
|
|
48
|
-
<br>
|
|
49
|
-
通过该接口可以将图片新增到样本库。
|
|
50
|
-
*/
|
|
51
|
-
async CreateFileSample(req, cb) {
|
|
52
|
-
return this.request("CreateFileSample", req, cb);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* 本文档适用于文本内容安全、音频内容安全自定义识别库的管理。
|
|
56
|
-
<br>
|
|
57
|
-
支持批量查询文本样本库。
|
|
31
|
+
* 文本内容检测(Text Moderation)服务使用了深度学习技术,识别涉黄、涉政、涉恐等有害内容,同时支持用户配置词库,打击自定义的违规文本。
|
|
58
32
|
*/
|
|
59
|
-
async
|
|
60
|
-
return this.request("
|
|
33
|
+
async TextModeration(req, cb) {
|
|
34
|
+
return this.request("TextModeration", req, cb);
|
|
61
35
|
}
|
|
62
36
|
/**
|
|
63
|
-
*
|
|
37
|
+
* 图片内容检测服务(Image Moderation, IM)能自动扫描图片,识别涉黄、涉恐、涉政、涉毒等有害内容,同时支持用户配置图片黑名单,打击自定义的违规图片。
|
|
64
38
|
*/
|
|
65
|
-
async
|
|
66
|
-
return this.request("
|
|
39
|
+
async ImageModeration(req, cb) {
|
|
40
|
+
return this.request("ImageModeration", req, cb);
|
|
67
41
|
}
|
|
68
42
|
/**
|
|
69
|
-
*
|
|
70
|
-
<br>
|
|
71
|
-
查询图片样本库,支持批量查询。
|
|
43
|
+
* 获取关键词接口
|
|
72
44
|
*/
|
|
73
|
-
async
|
|
74
|
-
return this.request("
|
|
45
|
+
async DescribeLibSamples(req, cb) {
|
|
46
|
+
return this.request("DescribeLibSamples", req, cb);
|
|
75
47
|
}
|
|
76
48
|
/**
|
|
77
|
-
*
|
|
49
|
+
* 获取用户词库列表
|
|
78
50
|
*/
|
|
79
|
-
async
|
|
80
|
-
return this.request("
|
|
51
|
+
async DescribeKeywordsLibs(req, cb) {
|
|
52
|
+
return this.request("DescribeKeywordsLibs", req, cb);
|
|
81
53
|
}
|
|
82
54
|
/**
|
|
83
|
-
*
|
|
55
|
+
* 创建关键词接口
|
|
84
56
|
*/
|
|
85
|
-
async
|
|
86
|
-
return this.request("
|
|
57
|
+
async CreateKeywordsSamples(req, cb) {
|
|
58
|
+
return this.request("CreateKeywordsSamples", req, cb);
|
|
87
59
|
}
|
|
88
60
|
/**
|
|
89
|
-
*
|
|
90
|
-
<br>
|
|
91
|
-
删除图片样本库,支持批量删除,一次提交不超过20个。
|
|
61
|
+
* 删除关键词接口
|
|
92
62
|
*/
|
|
93
|
-
async
|
|
94
|
-
return this.request("
|
|
63
|
+
async DeleteLibSamples(req, cb) {
|
|
64
|
+
return this.request("DeleteLibSamples", req, cb);
|
|
95
65
|
}
|
|
96
66
|
}
|
|
97
67
|
exports.Client = Client;
|