tencentcloud-sdk-nodejs 4.0.337 → 4.0.338
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 +214 -0
- package/SERVICE_CHANGELOG.md +337 -29
- package/package.json +1 -1
- package/products.md +10 -10
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_client.ts +13 -0
- package/src/services/antiddos/v20200309/antiddos_models.ts +153 -0
- package/src/services/cfw/v20190904/cfw_models.ts +5 -0
- package/src/services/ckafka/v20190819/ckafka_models.ts +1 -1
- package/src/services/dlc/v20210125/dlc_models.ts +35 -0
- package/src/services/faceid/v20180301/faceid_client.ts +1 -1
- package/src/services/faceid/v20180301/faceid_models.ts +5 -4
- package/src/services/iotcloud/v20210408/iotcloud_client.ts +608 -68
- package/src/services/iotcloud/v20210408/iotcloud_models.ts +2835 -667
- package/src/services/ocr/v20181119/ocr_client.ts +13 -0
- package/src/services/ocr/v20181119/ocr_models.ts +96 -0
- package/src/services/tke/v20180525/tke_models.ts +15 -0
- package/src/services/trtc/v20190722/trtc_models.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +5 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +6 -0
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +126 -0
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +4 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +1 -1
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +29 -0
- package/tencentcloud/services/faceid/v20180301/faceid_client.d.ts +1 -1
- package/tencentcloud/services/faceid/v20180301/faceid_client.js +1 -1
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +5 -4
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.d.ts +187 -11
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.js +279 -15
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_models.d.ts +2515 -663
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +5 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +6 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +80 -0
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +12 -0
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
- package/test/antiddos.v20200309.test.js +10 -0
- package/test/iotcloud.v20210408.test.js +450 -10
- package/test/ocr.v20181119.test.js +10 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, WaybillOCRResponse, MLIDCardOCRRequest, VehicleLicenseOCRRequest, EnterpriseLicenseOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, PassportOCRResponse, VerifyBasicBizLicenseResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RideHailingDriverLicenseOCRRequest, QueryBarCodeRequest, OrgCodeCertOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, HmtResidentPermitOCRResponse, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
|
|
3
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, WaybillOCRResponse, MLIDCardOCRRequest, VehicleLicenseOCRRequest, EnterpriseLicenseOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, PassportOCRResponse, VerifyBasicBizLicenseResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RideHailingDriverLicenseOCRRequest, QueryBarCodeRequest, OrgCodeCertOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, HmtResidentPermitOCRResponse, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
|
|
4
4
|
/**
|
|
5
5
|
* ocr client
|
|
6
6
|
* @class
|
|
@@ -94,6 +94,10 @@ export declare class Client extends AbstractClient {
|
|
|
94
94
|
|
|
95
95
|
*/
|
|
96
96
|
MLIDCardOCR(req: MLIDCardOCRRequest, cb?: (error: string, rep: MLIDCardOCRResponse) => void): Promise<MLIDCardOCRResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
|
99
|
+
*/
|
|
100
|
+
VatInvoiceVerifyNew(req: VatInvoiceVerifyNewRequest, cb?: (error: string, rep: VatInvoiceVerifyNewResponse) => void): Promise<VatInvoiceVerifyNewResponse>;
|
|
97
101
|
/**
|
|
98
102
|
* 本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
|
|
99
103
|
*/
|
|
@@ -132,6 +132,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
132
132
|
async MLIDCardOCR(req, cb) {
|
|
133
133
|
return this.request("MLIDCardOCR", req, cb);
|
|
134
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
|
137
|
+
*/
|
|
138
|
+
async VatInvoiceVerifyNew(req, cb) {
|
|
139
|
+
return this.request("VatInvoiceVerifyNew", req, cb);
|
|
140
|
+
}
|
|
135
141
|
/**
|
|
136
142
|
* 本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
|
|
137
143
|
*/
|
|
@@ -1976,6 +1976,36 @@ export interface ClassifyDetectOCRResponse {
|
|
|
1976
1976
|
*/
|
|
1977
1977
|
RequestId?: string;
|
|
1978
1978
|
}
|
|
1979
|
+
/**
|
|
1980
|
+
* VatInvoiceVerifyNew请求参数结构体
|
|
1981
|
+
*/
|
|
1982
|
+
export interface VatInvoiceVerifyNewRequest {
|
|
1983
|
+
/**
|
|
1984
|
+
* 发票号码,8位、20位(全电票)
|
|
1985
|
+
*/
|
|
1986
|
+
InvoiceNo: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* 开票日期(不支持当天发票查询,支持五年以内开具的发票),格式:“YYYY-MM-DD”,如:2019-12-20。
|
|
1989
|
+
*/
|
|
1990
|
+
InvoiceDate: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* 发票代码(10或12 位),全电发票为空。查验未成功超过5次后当日无法再查。
|
|
1993
|
+
*/
|
|
1994
|
+
InvoiceCode?: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* 票种类型 01:增值税专用发票, 02:货运运输业增值税专用发 票, 03:机动车销售统一发票, 04:增值税普通发票, 08:增值税电子专用发票(含全电), 10:增值税电子普通发票(含全电), 11:增值税普通发票(卷式), 14:增值税电子(通行费)发 票, 15:二手车销售统一发票, 32:深圳区块链发票(云南区块链因业务调整现已下线)。
|
|
1997
|
+
*/
|
|
1998
|
+
InvoiceKind?: string;
|
|
1999
|
+
/**
|
|
2000
|
+
* 校验码后 6 位,增值税普通发票、增值税电子普通发票、增值税普通发票(卷式)、增值税电子普通发票(通行费)时必填;
|
|
2001
|
+
区块链为 5 位
|
|
2002
|
+
*/
|
|
2003
|
+
CheckCode?: string;
|
|
2004
|
+
/**
|
|
2005
|
+
* 不含税金额,增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链发票时必填; 全电发票为价税合计(含税金额)
|
|
2006
|
+
*/
|
|
2007
|
+
Amount?: string;
|
|
2008
|
+
}
|
|
1979
2009
|
/**
|
|
1980
2010
|
* VehicleLicenseOCR返回参数结构体
|
|
1981
2011
|
*/
|
|
@@ -2350,6 +2380,31 @@ export interface InvoiceGeneralOCRResponse {
|
|
|
2350
2380
|
*/
|
|
2351
2381
|
RequestId?: string;
|
|
2352
2382
|
}
|
|
2383
|
+
/**
|
|
2384
|
+
* VatInvoiceVerifyNew返回参数结构体
|
|
2385
|
+
*/
|
|
2386
|
+
export interface VatInvoiceVerifyNewResponse {
|
|
2387
|
+
/**
|
|
2388
|
+
* 增值税发票信息,详情请点击左侧链接。
|
|
2389
|
+
*/
|
|
2390
|
+
Invoice: VatInvoice;
|
|
2391
|
+
/**
|
|
2392
|
+
* 机动车销售统一发票信息
|
|
2393
|
+
*/
|
|
2394
|
+
VehicleInvoiceInfo: VehicleInvoiceInfo;
|
|
2395
|
+
/**
|
|
2396
|
+
* 二手车销售统一发票信息
|
|
2397
|
+
*/
|
|
2398
|
+
UsedVehicleInvoiceInfo: UsedVehicleInvoiceInfo;
|
|
2399
|
+
/**
|
|
2400
|
+
* 通行费发票信息
|
|
2401
|
+
*/
|
|
2402
|
+
PassInvoiceInfoList: Array<PassInvoiceInfo>;
|
|
2403
|
+
/**
|
|
2404
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2405
|
+
*/
|
|
2406
|
+
RequestId?: string;
|
|
2407
|
+
}
|
|
2353
2408
|
/**
|
|
2354
2409
|
* TaxiInvoiceOCR请求参数结构体
|
|
2355
2410
|
*/
|
|
@@ -3849,6 +3904,31 @@ export interface BankSlipOCRResponse {
|
|
|
3849
3904
|
*/
|
|
3850
3905
|
RequestId?: string;
|
|
3851
3906
|
}
|
|
3907
|
+
/**
|
|
3908
|
+
* 通行费发票信息
|
|
3909
|
+
*/
|
|
3910
|
+
export interface PassInvoiceInfo {
|
|
3911
|
+
/**
|
|
3912
|
+
* 通行费车牌号
|
|
3913
|
+
*/
|
|
3914
|
+
NumberPlate: string;
|
|
3915
|
+
/**
|
|
3916
|
+
* 通行费类型
|
|
3917
|
+
*/
|
|
3918
|
+
Type: string;
|
|
3919
|
+
/**
|
|
3920
|
+
* 通行日期起
|
|
3921
|
+
*/
|
|
3922
|
+
PassDateBegin: string;
|
|
3923
|
+
/**
|
|
3924
|
+
* 通行日期止
|
|
3925
|
+
*/
|
|
3926
|
+
PassDateEnd: string;
|
|
3927
|
+
/**
|
|
3928
|
+
* 税收分类编码
|
|
3929
|
+
*/
|
|
3930
|
+
TaxClassifyCode: string;
|
|
3931
|
+
}
|
|
3852
3932
|
/**
|
|
3853
3933
|
* 试题识别结构化信息
|
|
3854
3934
|
*/
|
|
@@ -5267,6 +5267,18 @@ export interface CreateClusterEndpointRequest {
|
|
|
5267
5267
|
* 是否为外网访问(TRUE 外网访问 FALSE 内网访问,默认值: FALSE)
|
|
5268
5268
|
*/
|
|
5269
5269
|
IsExtranet?: boolean;
|
|
5270
|
+
/**
|
|
5271
|
+
* 设置域名
|
|
5272
|
+
*/
|
|
5273
|
+
Domain?: string;
|
|
5274
|
+
/**
|
|
5275
|
+
* 使用的安全组,只有外网访问需要传递
|
|
5276
|
+
*/
|
|
5277
|
+
SecurityGroup?: string;
|
|
5278
|
+
/**
|
|
5279
|
+
* 创建lb参数,只有外网访问需要设置
|
|
5280
|
+
*/
|
|
5281
|
+
ExtensiveParameters?: string;
|
|
5270
5282
|
}
|
|
5271
5283
|
/**
|
|
5272
5284
|
* prometheus一个job的targets
|
|
@@ -1231,7 +1231,7 @@ export interface WaterMarkParams {
|
|
|
1231
1231
|
*/
|
|
1232
1232
|
LocationY: number;
|
|
1233
1233
|
/**
|
|
1234
|
-
* 混流-水印图片URL地址,支持png、jpg、jpeg、bmp格式,暂不支持透明通道。URL链接长度限制为512字节。WaterMarkUrl和WaterMarkId参数都填时,以WaterMarkUrl为准。图片大小限制不超过
|
|
1234
|
+
* 混流-水印图片URL地址,支持png、jpg、jpeg、bmp格式,暂不支持透明通道。URL链接长度限制为512字节。WaterMarkUrl和WaterMarkId参数都填时,以WaterMarkUrl为准。图片大小限制不超过2MB。
|
|
1235
1235
|
*/
|
|
1236
1236
|
WaterMarkUrl?: string;
|
|
1237
1237
|
}
|
|
@@ -558,6 +558,16 @@ it("antiddos.v20200309.CreateBoundIP", async function () {
|
|
|
558
558
|
}
|
|
559
559
|
})
|
|
560
560
|
|
|
561
|
+
it("antiddos.v20200309.DescribeOverviewDDoSEventList", async function () {
|
|
562
|
+
try {
|
|
563
|
+
const data = await client.DescribeOverviewDDoSEventList({})
|
|
564
|
+
expect(data).to.be.ok
|
|
565
|
+
} catch(error) {
|
|
566
|
+
expect(error.requestId).to.be.ok
|
|
567
|
+
expect(error.code).to.be.ok
|
|
568
|
+
}
|
|
569
|
+
})
|
|
570
|
+
|
|
561
571
|
it("antiddos.v20200309.CreateDefaultAlarmThreshold", async function () {
|
|
562
572
|
try {
|
|
563
573
|
const data = await client.CreateDefaultAlarmThreshold({})
|