tencentcloud-sdk-nodejs 4.0.335 → 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 +344 -0
- package/SERVICE_CHANGELOG.md +415 -130
- package/package.json +1 -1
- package/products.md +18 -18
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_client.ts +14 -0
- package/src/services/antiddos/v20200309/antiddos_models.ts +186 -3
- package/src/services/cdn/v20180606/cdn_client.ts +2 -3
- package/src/services/cdn/v20180606/cdn_models.ts +2 -1
- package/src/services/cfw/v20190904/cfw_models.ts +5 -0
- package/src/services/ckafka/v20190819/ckafka_models.ts +1 -1
- package/src/services/clb/v20180317/clb_models.ts +13 -5
- package/src/services/dlc/v20210125/dlc_models.ts +35 -0
- package/src/services/dts/v20180330/dts_models.ts +3 -3
- 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/monitor/v20180724/monitor_models.ts +12 -0
- package/src/services/mps/v20190612/mps_models.ts +49 -4
- package/src/services/ocr/v20181119/ocr_client.ts +14 -1
- package/src/services/ocr/v20181119/ocr_models.ts +96 -0
- package/src/services/tcm/v20210413/tcm_models.ts +6 -0
- package/src/services/tiia/v20190529/tiia_client.ts +5 -4
- package/src/services/tiia/v20190529/tiia_models.ts +8 -6
- package/src/services/tke/v20180525/tke_models.ts +15 -0
- package/src/services/trtc/v20190722/trtc_models.ts +1 -1
- package/src/services/vm/v20201229/vm_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 +154 -3
- package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +0 -1
- package/tencentcloud/services/cdn/v20180606/cdn_client.js +0 -1
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +2 -1
- 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/clb/v20180317/clb_models.d.ts +12 -5
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +29 -0
- package/tencentcloud/services/dts/v20180330/dts_models.d.ts +3 -3
- 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/monitor/v20180724/monitor_models.d.ts +10 -0
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +43 -4
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +6 -2
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +7 -1
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +80 -0
- package/tencentcloud/services/tcm/v20210413/tcm_models.d.ts +5 -0
- package/tencentcloud/services/tiia/v20190529/tiia_client.d.ts +5 -4
- package/tencentcloud/services/tiia/v20190529/tiia_client.js +5 -4
- package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +8 -6
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +12 -0
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
- package/tencentcloud/services/vm/v20201229/vm_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
|
@@ -1660,6 +1660,16 @@ export interface AlarmPolicy {
|
|
|
1660
1660
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1661
1661
|
*/
|
|
1662
1662
|
FilterDimensionsParam: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* 是否为一键告警策略
|
|
1665
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1666
|
+
*/
|
|
1667
|
+
IsOneClick: number;
|
|
1668
|
+
/**
|
|
1669
|
+
* 一键告警策略是否开启
|
|
1670
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1671
|
+
*/
|
|
1672
|
+
OneClickStatus: number;
|
|
1663
1673
|
}
|
|
1664
1674
|
/**
|
|
1665
1675
|
* CreateAlarmPolicy返回参数结构体
|
|
@@ -943,6 +943,13 @@ export interface ContentReviewTemplateItem {
|
|
|
943
943
|
* 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
|
944
944
|
*/
|
|
945
945
|
UpdateTime: string;
|
|
946
|
+
/**
|
|
947
|
+
* 模板类型,取值范围:
|
|
948
|
+
* Preset:系统预置模板;
|
|
949
|
+
* Custom:用户自定义模板。
|
|
950
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
951
|
+
*/
|
|
952
|
+
Type: string;
|
|
946
953
|
}
|
|
947
954
|
/**
|
|
948
955
|
* DeleteAIRecognitionTemplate返回参数结构体
|
|
@@ -1290,6 +1297,13 @@ export interface AIRecognitionTemplateItem {
|
|
|
1290
1297
|
* 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
|
1291
1298
|
*/
|
|
1292
1299
|
UpdateTime: string;
|
|
1300
|
+
/**
|
|
1301
|
+
* 模板类型,取值范围:
|
|
1302
|
+
* Preset:系统预置模板;
|
|
1303
|
+
* Custom:用户自定义模板。
|
|
1304
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1305
|
+
*/
|
|
1306
|
+
Type: string;
|
|
1293
1307
|
}
|
|
1294
1308
|
/**
|
|
1295
1309
|
* 内容审核 Asr 文字鉴黄任务输入参数类型
|
|
@@ -1898,11 +1912,11 @@ export interface DescribeAIRecognitionTemplatesResponse {
|
|
|
1898
1912
|
/**
|
|
1899
1913
|
* 符合过滤条件的记录总数。
|
|
1900
1914
|
*/
|
|
1901
|
-
TotalCount
|
|
1915
|
+
TotalCount: number;
|
|
1902
1916
|
/**
|
|
1903
1917
|
* 视频内容识别模板详情列表。
|
|
1904
1918
|
*/
|
|
1905
|
-
AIRecognitionTemplateSet
|
|
1919
|
+
AIRecognitionTemplateSet: Array<AIRecognitionTemplateItem>;
|
|
1906
1920
|
/**
|
|
1907
1921
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1908
1922
|
*/
|
|
@@ -3941,6 +3955,13 @@ export interface AIAnalysisTemplateItem {
|
|
|
3941
3955
|
* 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
|
3942
3956
|
*/
|
|
3943
3957
|
UpdateTime: string;
|
|
3958
|
+
/**
|
|
3959
|
+
* 模板类型,取值范围:
|
|
3960
|
+
* Preset:系统预置模板;
|
|
3961
|
+
* Custom:用户自定义模板。
|
|
3962
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3963
|
+
*/
|
|
3964
|
+
Type: string;
|
|
3944
3965
|
}
|
|
3945
3966
|
/**
|
|
3946
3967
|
* 片头片尾参数
|
|
@@ -4161,6 +4182,12 @@ export interface DescribeAIAnalysisTemplatesRequest {
|
|
|
4161
4182
|
* 返回记录条数,默认值:10,最大值:100。
|
|
4162
4183
|
*/
|
|
4163
4184
|
Limit?: number;
|
|
4185
|
+
/**
|
|
4186
|
+
* 模板类型过滤条件,不填则返回所有,可选值:
|
|
4187
|
+
* Preset:系统预置模板;
|
|
4188
|
+
* Custom:用户自定义模板。
|
|
4189
|
+
*/
|
|
4190
|
+
Type?: string;
|
|
4164
4191
|
}
|
|
4165
4192
|
/**
|
|
4166
4193
|
* 文本关键词识别结果。
|
|
@@ -6196,6 +6223,12 @@ export interface DescribeContentReviewTemplatesRequest {
|
|
|
6196
6223
|
* 返回记录条数,默认值:10,最大值:50。
|
|
6197
6224
|
*/
|
|
6198
6225
|
Limit?: number;
|
|
6226
|
+
/**
|
|
6227
|
+
* 模板类型过滤条件,不填则返回所有,可选值:
|
|
6228
|
+
* Preset:系统预置模板;
|
|
6229
|
+
* Custom:用户自定义模板。
|
|
6230
|
+
*/
|
|
6231
|
+
Type?: string;
|
|
6199
6232
|
}
|
|
6200
6233
|
/**
|
|
6201
6234
|
* 对视频转自适应码流的输入参数类型
|
|
@@ -7738,11 +7771,11 @@ export interface DescribeAIAnalysisTemplatesResponse {
|
|
|
7738
7771
|
/**
|
|
7739
7772
|
* 符合过滤条件的记录总数。
|
|
7740
7773
|
*/
|
|
7741
|
-
TotalCount
|
|
7774
|
+
TotalCount: number;
|
|
7742
7775
|
/**
|
|
7743
7776
|
* 视频内容分析模板详情列表。
|
|
7744
7777
|
*/
|
|
7745
|
-
AIAnalysisTemplateSet
|
|
7778
|
+
AIAnalysisTemplateSet: Array<AIAnalysisTemplateItem>;
|
|
7746
7779
|
/**
|
|
7747
7780
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
7748
7781
|
*/
|
|
@@ -8502,6 +8535,12 @@ export interface DescribeAIRecognitionTemplatesRequest {
|
|
|
8502
8535
|
* 返回记录条数,默认值:10,最大值:50。
|
|
8503
8536
|
*/
|
|
8504
8537
|
Limit?: number;
|
|
8538
|
+
/**
|
|
8539
|
+
* 模板类型过滤条件,不填则返回所有,可选值:
|
|
8540
|
+
* Preset:系统预置模板;
|
|
8541
|
+
* Custom:用户自定义模板。
|
|
8542
|
+
*/
|
|
8543
|
+
Type?: string;
|
|
8505
8544
|
}
|
|
8506
8545
|
/**
|
|
8507
8546
|
* ModifyWatermarkTemplate返回参数结构体
|
|
@@ -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
|
*/
|
|
@@ -214,7 +218,7 @@ export declare class Client extends AbstractClient {
|
|
|
214
218
|
*/
|
|
215
219
|
GeneralHandwritingOCR(req: GeneralHandwritingOCRRequest, cb?: (error: string, rep: GeneralHandwritingOCRResponse) => void): Promise<GeneralHandwritingOCRResponse>;
|
|
216
220
|
/**
|
|
217
|
-
*
|
|
221
|
+
* 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段,精度均处于业界领先水平,识别准确率达到99%以上。
|
|
218
222
|
*/
|
|
219
223
|
WaybillOCR(req: WaybillOCRRequest, cb?: (error: string, rep: WaybillOCRResponse) => void): Promise<WaybillOCRResponse>;
|
|
220
224
|
/**
|
|
@@ -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
|
*/
|
|
@@ -280,7 +286,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
280
286
|
return this.request("GeneralHandwritingOCR", req, cb);
|
|
281
287
|
}
|
|
282
288
|
/**
|
|
283
|
-
*
|
|
289
|
+
* 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段,精度均处于业界领先水平,识别准确率达到99%以上。
|
|
284
290
|
*/
|
|
285
291
|
async WaybillOCR(req, cb) {
|
|
286
292
|
return this.request("WaybillOCR", req, cb);
|
|
@@ -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
|
*/
|
|
@@ -104,10 +104,11 @@ export declare class Client extends AbstractClient {
|
|
|
104
104
|
/**
|
|
105
105
|
* 用于创建一个空的图片库,如果图片库已存在则返回错误。不同类型图库对应不同的图像搜索服务,根据输入参数GroupType区分。
|
|
106
106
|
|
|
107
|
-
| 服务类型 |
|
|
108
|
-
| :------ |
|
|
109
|
-
| 相同图像搜索<img width=30/> |
|
|
110
|
-
| 商品图像搜索<img width=30/> |
|
|
107
|
+
| 服务类型 | GroupType参数值 |功能描述 |
|
|
108
|
+
| :------ | :----- |:----------------- |
|
|
109
|
+
| 相同图像搜索<img width=30/> | 4 |在自建图库中搜索相同原图,可支持裁剪、翻转、调色、加水印后的图片搜索,适用于图片版权保护、原图查询等场景。|
|
|
110
|
+
| 商品图像搜索<img width=30/> | 5 |在自建图库中搜索相同或相似的商品图片,适用于商品分类、检索、推荐等电商场景。|
|
|
111
|
+
| 相似图像搜索<img width=30/> | 6 |在自建图片库中搜索与输入图片高度相似的图片,适用于相似图案、logo、纹理等图像元素的搜索。|
|
|
111
112
|
|
|
112
113
|
*/
|
|
113
114
|
CreateGroup(req: CreateGroupRequest, cb?: (error: string, rep: CreateGroupResponse) => void): Promise<CreateGroupResponse>;
|
|
@@ -150,10 +150,11 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
150
150
|
/**
|
|
151
151
|
* 用于创建一个空的图片库,如果图片库已存在则返回错误。不同类型图库对应不同的图像搜索服务,根据输入参数GroupType区分。
|
|
152
152
|
|
|
153
|
-
| 服务类型 |
|
|
154
|
-
| :------ |
|
|
155
|
-
| 相同图像搜索<img width=30/> |
|
|
156
|
-
| 商品图像搜索<img width=30/> |
|
|
153
|
+
| 服务类型 | GroupType参数值 |功能描述 |
|
|
154
|
+
| :------ | :----- |:----------------- |
|
|
155
|
+
| 相同图像搜索<img width=30/> | 4 |在自建图库中搜索相同原图,可支持裁剪、翻转、调色、加水印后的图片搜索,适用于图片版权保护、原图查询等场景。|
|
|
156
|
+
| 商品图像搜索<img width=30/> | 5 |在自建图库中搜索相同或相似的商品图片,适用于商品分类、检索、推荐等电商场景。|
|
|
157
|
+
| 相似图像搜索<img width=30/> | 6 |在自建图片库中搜索与输入图片高度相似的图片,适用于相似图案、logo、纹理等图像元素的搜索。|
|
|
157
158
|
|
|
158
159
|
*/
|
|
159
160
|
async CreateGroup(req, cb) {
|
|
@@ -522,10 +522,11 @@ export interface CreateGroupRequest {
|
|
|
522
522
|
*/
|
|
523
523
|
MaxQps?: number;
|
|
524
524
|
/**
|
|
525
|
-
*
|
|
525
|
+
* 图库类型,对应不同服务类型,默认为1。建议手动调整为4~6,1~3为历史版本,不推荐。
|
|
526
526
|
参数值:
|
|
527
|
-
4
|
|
528
|
-
5
|
|
527
|
+
4:在自建图库中搜索相同原图,可支持裁剪、翻转、调色、加水印后的图片搜索,适用于图片版权保护、原图查询等场景。
|
|
528
|
+
5:在自建图库中搜索相同或相似的商品图片,适用于商品分类、检索、推荐等电商场景。
|
|
529
|
+
6:在自建图片库中搜索与输入图片高度相似的图片,适用于相似图案、logo、纹理等图像元素的搜索。
|
|
529
530
|
*/
|
|
530
531
|
GroupType?: number;
|
|
531
532
|
}
|
|
@@ -650,10 +651,11 @@ export interface GroupInfo {
|
|
|
650
651
|
*/
|
|
651
652
|
MaxQps: number;
|
|
652
653
|
/**
|
|
653
|
-
*
|
|
654
|
+
* 图库类型,对应不同服务类型,默认为1。建议手动调整为4~6,1~3为历史版本,不推荐。
|
|
654
655
|
参数值:
|
|
655
|
-
4
|
|
656
|
-
5
|
|
656
|
+
4:在自建图库中搜索相同原图,可支持裁剪、翻转、调色、加水印后的图片搜索,适用于图片版权保护、原图查询等场景。
|
|
657
|
+
5:在自建图库中搜索相同或相似的商品图片,适用于商品分类、检索、推荐等电商场景。
|
|
658
|
+
6:在自建图片库中搜索与输入图片高度相似的图片,适用于相似图案、logo、纹理等图像元素的搜索。
|
|
657
659
|
*/
|
|
658
660
|
GroupType: number;
|
|
659
661
|
/**
|
|
@@ -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
|
}
|
|
@@ -176,7 +176,7 @@ export interface DescribeTaskDetailResponse {
|
|
|
176
176
|
*/
|
|
177
177
|
Status: string;
|
|
178
178
|
/**
|
|
179
|
-
* 该字段用于返回调用视频审核接口时输入的视频审核类型,取值为:**VIDEO
|
|
179
|
+
* 该字段用于返回调用视频审核接口时输入的视频审核类型,取值为:**VIDEO**(点播视频)和**LIVE_VIDEO**(直播视频),默认值为VIDEO。
|
|
180
180
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
181
181
|
*/
|
|
182
182
|
Type: string;
|
|
@@ -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({})
|