tencentcloud-sdk-nodejs 4.0.438 → 4.0.439
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 +472 -0
- package/SERVICE_CHANGELOG.md +654 -281
- package/package.json +1 -1
- package/products.md +20 -20
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +5 -0
- package/src/services/cfw/v20190904/cfw_client.ts +12 -0
- package/src/services/cfw/v20190904/cfw_models.ts +52 -2
- package/src/services/clb/v20180317/clb_models.ts +5 -0
- package/src/services/cpdp/v20190820/cpdp_models.ts +18 -0
- package/src/services/cwp/v20180228/cwp_client.ts +192 -53
- package/src/services/cwp/v20180228/cwp_models.ts +1332 -321
- package/src/services/ecm/v20190719/ecm_models.ts +9 -0
- package/src/services/ess/v20201111/ess_client.ts +3 -2
- package/src/services/essbasic/v20210526/essbasic_client.ts +39 -12
- package/src/services/essbasic/v20210526/essbasic_models.ts +273 -102
- package/src/services/gme/v20180711/gme_client.ts +15 -2
- package/src/services/gme/v20180711/gme_models.ts +68 -13
- package/src/services/monitor/v20180724/monitor_client.ts +17 -4
- package/src/services/monitor/v20180724/monitor_models.ts +162 -53
- package/src/services/ms/v20180408/ms_client.ts +26 -11
- package/src/services/ms/v20180408/ms_models.ts +224 -27
- package/src/services/ocr/v20181119/ocr_client.ts +18 -3
- package/src/services/ocr/v20181119/ocr_models.ts +166 -76
- package/src/services/rum/v20210622/rum_models.ts +15 -0
- package/src/services/sqlserver/v20180328/sqlserver_client.ts +104 -16
- package/src/services/sqlserver/v20180328/sqlserver_models.ts +906 -411
- package/src/services/taf/v20200210/taf_client.ts +1 -15
- package/src/services/taf/v20200210/taf_models.ts +8 -96
- package/src/services/teo/v20220106/teo_models.ts +17 -11
- package/src/services/trtc/v20190722/trtc_models.ts +2 -2
- package/src/services/vod/v20180717/vod_models.ts +2 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +4 -0
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +5 -1
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +6 -0
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +43 -2
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +4 -0
- package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +15 -0
- package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +64 -17
- package/tencentcloud/services/cwp/v20180228/cwp_client.js +93 -24
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +1138 -300
- package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +8 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +2 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +2 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +14 -4
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +18 -4
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +226 -83
- package/tencentcloud/services/gme/v20180711/gme_client.d.ts +5 -1
- package/tencentcloud/services/gme/v20180711/gme_client.js +6 -0
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +58 -11
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +5 -1
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +6 -0
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +139 -48
- package/tencentcloud/services/ms/v20180408/ms_client.d.ts +8 -4
- package/tencentcloud/services/ms/v20180408/ms_client.js +10 -4
- package/tencentcloud/services/ms/v20180408/ms_models.d.ts +194 -27
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +6 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +7 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +141 -63
- package/tencentcloud/services/rum/v20210622/rum_models.d.ts +12 -0
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_client.d.ts +31 -3
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_client.js +45 -3
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +758 -344
- package/tencentcloud/services/taf/v20200210/taf_client.d.ts +1 -5
- package/tencentcloud/services/taf/v20200210/taf_client.js +0 -6
- package/tencentcloud/services/taf/v20200210/taf_models.d.ts +7 -82
- package/tencentcloud/services/teo/v20220106/teo_models.d.ts +16 -11
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +2 -2
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +2 -2
- package/test/cfw.v20190904.test.js +10 -0
- package/test/cwp.v20180228.test.js +128 -18
- package/test/essbasic.v20210526.test.js +22 -2
- package/test/gme.v20180711.test.js +10 -0
- package/test/monitor.v20180724.test.js +10 -0
- package/test/ms.v20180408.test.js +12 -2
- package/test/ocr.v20181119.test.js +10 -0
- package/test/sqlserver.v20180328.test.js +72 -2
- package/test/taf.v20200210.test.js +0 -10
|
@@ -614,6 +614,27 @@ export interface AppInfo {
|
|
|
614
614
|
*/
|
|
615
615
|
AppName?: string;
|
|
616
616
|
}
|
|
617
|
+
/**
|
|
618
|
+
* DescribeShieldPlanInstance返回参数结构体
|
|
619
|
+
*/
|
|
620
|
+
export interface DescribeShieldPlanInstanceResponse {
|
|
621
|
+
/**
|
|
622
|
+
* 绑定资源信息
|
|
623
|
+
*/
|
|
624
|
+
BindInfo: BindInfo;
|
|
625
|
+
/**
|
|
626
|
+
* 加固策略信息
|
|
627
|
+
*/
|
|
628
|
+
ShieldPlanInfo: ShieldPlanInfo;
|
|
629
|
+
/**
|
|
630
|
+
* 加固资源信息
|
|
631
|
+
*/
|
|
632
|
+
ResourceServiceInfo: ResourceServiceInfo;
|
|
633
|
+
/**
|
|
634
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
635
|
+
*/
|
|
636
|
+
RequestId?: string;
|
|
637
|
+
}
|
|
617
638
|
/**
|
|
618
639
|
* 提交app加固的服务信息
|
|
619
640
|
*/
|
|
@@ -645,42 +666,150 @@ export interface SoInfo {
|
|
|
645
666
|
SoFileNames: Array<string>;
|
|
646
667
|
}
|
|
647
668
|
/**
|
|
648
|
-
*
|
|
669
|
+
* 安全扫描敏感词
|
|
649
670
|
*/
|
|
650
|
-
export interface
|
|
671
|
+
export interface ScanSensitiveInfo {
|
|
651
672
|
/**
|
|
652
|
-
*
|
|
673
|
+
* 敏感词
|
|
653
674
|
*/
|
|
654
|
-
|
|
675
|
+
WordList: Array<string>;
|
|
655
676
|
/**
|
|
656
|
-
*
|
|
677
|
+
* 敏感词对应的文件信息
|
|
657
678
|
*/
|
|
658
|
-
|
|
679
|
+
FilePath: string;
|
|
659
680
|
/**
|
|
660
|
-
*
|
|
681
|
+
* 文件sha1值
|
|
661
682
|
*/
|
|
662
|
-
|
|
683
|
+
FileSha: string;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* APK检测服务:广告插件结果结构体
|
|
687
|
+
*/
|
|
688
|
+
export interface PluginListItem {
|
|
663
689
|
/**
|
|
664
|
-
*
|
|
690
|
+
* 数字类型,分别为 1-通知栏广告,2-积分墙广告,3-banner广告,4- 悬浮窗图标广告,5-精品推荐列表广告, 6-插播广告
|
|
665
691
|
*/
|
|
666
|
-
|
|
692
|
+
PluginType: string;
|
|
693
|
+
/**
|
|
694
|
+
* 广告插件名称
|
|
695
|
+
*/
|
|
696
|
+
PluginName: string;
|
|
697
|
+
/**
|
|
698
|
+
* 广告插件描述
|
|
699
|
+
*/
|
|
700
|
+
PluginDesc: string;
|
|
667
701
|
}
|
|
668
702
|
/**
|
|
669
|
-
*
|
|
703
|
+
* DescribeApkDetectionResult请求参数结构体
|
|
670
704
|
*/
|
|
671
|
-
export interface
|
|
705
|
+
export interface DescribeApkDetectionResultRequest {
|
|
672
706
|
/**
|
|
673
|
-
*
|
|
707
|
+
* 软件包的下载链接
|
|
674
708
|
*/
|
|
675
|
-
|
|
709
|
+
ApkUrl: string;
|
|
676
710
|
/**
|
|
677
|
-
*
|
|
711
|
+
* 软件包的md5值,具有唯一性。腾讯APK云检测服务会根据md5值来判断该包是否为库中已收集的样本,已存在,则返回检测结果,反之,需要一定时间检测该样本。
|
|
678
712
|
*/
|
|
679
|
-
|
|
713
|
+
ApkMd5: string;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* APK检测服务参数返回具体信息
|
|
717
|
+
*/
|
|
718
|
+
export interface ResultListItem {
|
|
680
719
|
/**
|
|
681
|
-
*
|
|
720
|
+
* banner广告软件标记,分别为-1-不确定,0-否,1-是
|
|
682
721
|
*/
|
|
683
|
-
|
|
722
|
+
Banner: string;
|
|
723
|
+
/**
|
|
724
|
+
* 精品推荐列表广告标记,分别为-1-不确定,0-否,1-是
|
|
725
|
+
*/
|
|
726
|
+
BoutiqueRecommand: string;
|
|
727
|
+
/**
|
|
728
|
+
* 悬浮窗图标广告标记,分别为-1-不确定,0-否,1-是
|
|
729
|
+
*/
|
|
730
|
+
FloatWindows: string;
|
|
731
|
+
/**
|
|
732
|
+
* 积分墙广告软件标记,分别为 -1 -不确定,0-否,1-是
|
|
733
|
+
*/
|
|
734
|
+
IntegralWall: string;
|
|
735
|
+
/**
|
|
736
|
+
* 安装包的md5
|
|
737
|
+
*/
|
|
738
|
+
Md5: string;
|
|
739
|
+
/**
|
|
740
|
+
* 通知栏广告软件标记,分别为-1-不确定,0-否,1-是
|
|
741
|
+
*/
|
|
742
|
+
NotifyBar: string;
|
|
743
|
+
/**
|
|
744
|
+
* 1表示官方,0表示非官方
|
|
745
|
+
*/
|
|
746
|
+
Official: string;
|
|
747
|
+
/**
|
|
748
|
+
* 广告插件结果列表
|
|
749
|
+
*/
|
|
750
|
+
PluginList: Array<PluginListItem>;
|
|
751
|
+
/**
|
|
752
|
+
* 非广告插件结果列表(SDK、风险插件等)
|
|
753
|
+
*/
|
|
754
|
+
OptPluginList: Array<OptPluginListItem>;
|
|
755
|
+
/**
|
|
756
|
+
* 数字类型,分别为0-未知, 1-安全软件,2-风险软件,3-病毒软件
|
|
757
|
+
*/
|
|
758
|
+
SafeType: string;
|
|
759
|
+
/**
|
|
760
|
+
* Session id,合作方可以用来区分回调数据,需要唯一。
|
|
761
|
+
*/
|
|
762
|
+
Sid: string;
|
|
763
|
+
/**
|
|
764
|
+
* 安装包名称
|
|
765
|
+
*/
|
|
766
|
+
SoftName: string;
|
|
767
|
+
/**
|
|
768
|
+
* 插播广告软件标记,取值:-1 不确定,0否, 1 是
|
|
769
|
+
*/
|
|
770
|
+
Spot: string;
|
|
771
|
+
/**
|
|
772
|
+
* 病毒名称,utf8编码
|
|
773
|
+
*/
|
|
774
|
+
VirusName: string;
|
|
775
|
+
/**
|
|
776
|
+
* 病毒描述,utf8编码
|
|
777
|
+
*/
|
|
778
|
+
VirusDesc: string;
|
|
779
|
+
/**
|
|
780
|
+
* 二次打包状态:0-表示默认;1-表示二次
|
|
781
|
+
*/
|
|
782
|
+
RepackageStatus: string;
|
|
783
|
+
/**
|
|
784
|
+
* 应用错误码:0、1-表示正常;
|
|
785
|
+
|
|
786
|
+
2表示System Error(engine analysis error).
|
|
787
|
+
|
|
788
|
+
3表示App analysis error, please confirm it.
|
|
789
|
+
|
|
790
|
+
4表示App have not cert, please confirm it.
|
|
791
|
+
|
|
792
|
+
5表示App size is zero, please confirm it.
|
|
793
|
+
|
|
794
|
+
6表示App have not package name, please confirm it.
|
|
795
|
+
|
|
796
|
+
7表示App build time is empty, please confirm it.
|
|
797
|
+
|
|
798
|
+
8表示App have not valid cert, please confirm it.
|
|
799
|
+
|
|
800
|
+
99表示Other error.
|
|
801
|
+
|
|
802
|
+
1000表示App downloadlink download fail, please confirm it.
|
|
803
|
+
|
|
804
|
+
1001表示APP md5 different between real md5, please confirm it.
|
|
805
|
+
|
|
806
|
+
1002表示App md5 uncollect, please offer downloadlink.
|
|
807
|
+
*/
|
|
808
|
+
Errno: string;
|
|
809
|
+
/**
|
|
810
|
+
* 对应errno的错误信息描述
|
|
811
|
+
*/
|
|
812
|
+
ErrMsg: string;
|
|
684
813
|
}
|
|
685
814
|
/**
|
|
686
815
|
* 资源服务信息
|
|
@@ -865,14 +994,9 @@ export interface ShieldInfo {
|
|
|
865
994
|
ServiceEdition: string;
|
|
866
995
|
}
|
|
867
996
|
/**
|
|
868
|
-
*
|
|
997
|
+
* DescribeUserBaseInfoInstance请求参数结构体
|
|
869
998
|
*/
|
|
870
|
-
export
|
|
871
|
-
/**
|
|
872
|
-
* 系统权限信息
|
|
873
|
-
*/
|
|
874
|
-
PermissionList: Array<ScanPermissionInfo>;
|
|
875
|
-
}
|
|
999
|
+
export declare type DescribeUserBaseInfoInstanceRequest = null;
|
|
876
1000
|
/**
|
|
877
1001
|
* CreateResourceInstances返回参数结构体
|
|
878
1002
|
*/
|
|
@@ -988,9 +1112,26 @@ export interface DescribeScanInstancesRequest {
|
|
|
988
1112
|
OrderDirection?: string;
|
|
989
1113
|
}
|
|
990
1114
|
/**
|
|
991
|
-
*
|
|
1115
|
+
* DescribeApkDetectionResult返回参数结构体
|
|
992
1116
|
*/
|
|
993
|
-
export
|
|
1117
|
+
export interface DescribeApkDetectionResultResponse {
|
|
1118
|
+
/**
|
|
1119
|
+
* 响应结果,ok表示正常,error表示错误
|
|
1120
|
+
*/
|
|
1121
|
+
Result: string;
|
|
1122
|
+
/**
|
|
1123
|
+
* Result为error错误时的原因说明
|
|
1124
|
+
*/
|
|
1125
|
+
Reason: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* APK检测结果数组
|
|
1128
|
+
*/
|
|
1129
|
+
ResultList: Array<ResultListItem>;
|
|
1130
|
+
/**
|
|
1131
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1132
|
+
*/
|
|
1133
|
+
RequestId?: string;
|
|
1134
|
+
}
|
|
994
1135
|
/**
|
|
995
1136
|
* DescribeResourceInstances返回参数结构体
|
|
996
1137
|
*/
|
|
@@ -1253,6 +1394,32 @@ export interface BindInfo {
|
|
|
1253
1394
|
*/
|
|
1254
1395
|
AppPkgName: string;
|
|
1255
1396
|
}
|
|
1397
|
+
/**
|
|
1398
|
+
* 安全扫描系统权限信息
|
|
1399
|
+
*/
|
|
1400
|
+
export interface ScanPermissionList {
|
|
1401
|
+
/**
|
|
1402
|
+
* 系统权限信息
|
|
1403
|
+
*/
|
|
1404
|
+
PermissionList: Array<ScanPermissionInfo>;
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* APK检测服务:非广告插件结果列表(SDK、风险插件等)
|
|
1408
|
+
*/
|
|
1409
|
+
export interface OptPluginListItem {
|
|
1410
|
+
/**
|
|
1411
|
+
* 非广告类型
|
|
1412
|
+
*/
|
|
1413
|
+
PluginType: string;
|
|
1414
|
+
/**
|
|
1415
|
+
* 非广告插件名称
|
|
1416
|
+
*/
|
|
1417
|
+
PluginName: string;
|
|
1418
|
+
/**
|
|
1419
|
+
* 非广告插件描述
|
|
1420
|
+
*/
|
|
1421
|
+
PluginDesc: string;
|
|
1422
|
+
}
|
|
1256
1423
|
/**
|
|
1257
1424
|
* DeleteScanInstances请求参数结构体
|
|
1258
1425
|
*/
|
|
@@ -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, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, MLIDCardOCRRequest, VehicleLicenseOCRRequest, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse,
|
|
3
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, MLIDCardOCRRequest, VehicleLicenseOCRRequest, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, 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, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VehicleRegCertOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizePhilippinesVoteIDOCRResponse, QueryBarCodeRequest, OrgCodeCertOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeMedicalInvoiceOCRRequest, 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, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
|
|
4
4
|
/**
|
|
5
5
|
* ocr client
|
|
6
6
|
* @class
|
|
@@ -243,6 +243,11 @@ export declare class Client extends AbstractClient {
|
|
|
243
243
|
* 本接口支持对通用机打发票的发票代码、发票号码、日期、购买方识别号、销售方识别号、校验码、小写金额等关键字段的识别。
|
|
244
244
|
*/
|
|
245
245
|
InvoiceGeneralOCR(req: InvoiceGeneralOCRRequest, cb?: (error: string, rep: InvoiceGeneralOCRResponse) => void): Promise<InvoiceGeneralOCRResponse>;
|
|
246
|
+
/**
|
|
247
|
+
* 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
|
|
248
|
+
|
|
249
|
+
*/
|
|
250
|
+
RecognizeMedicalInvoiceOCR(req: RecognizeMedicalInvoiceOCRRequest, cb?: (error: string, rep: RecognizeMedicalInvoiceOCRResponse) => void): Promise<RecognizeMedicalInvoiceOCRResponse>;
|
|
246
251
|
/**
|
|
247
252
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
|
248
253
|
*/
|
|
@@ -317,6 +317,13 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
317
317
|
async InvoiceGeneralOCR(req, cb) {
|
|
318
318
|
return this.request("InvoiceGeneralOCR", req, cb);
|
|
319
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
* 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
|
|
322
|
+
|
|
323
|
+
*/
|
|
324
|
+
async RecognizeMedicalInvoiceOCR(req, cb) {
|
|
325
|
+
return this.request("RecognizeMedicalInvoiceOCR", req, cb);
|
|
326
|
+
}
|
|
320
327
|
/**
|
|
321
328
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
|
322
329
|
*/
|
|
@@ -2087,57 +2087,17 @@ export interface CellContent {
|
|
|
2087
2087
|
WordSize: number;
|
|
2088
2088
|
}
|
|
2089
2089
|
/**
|
|
2090
|
-
*
|
|
2090
|
+
* RecognizeMedicalInvoiceOCR返回参数结构体
|
|
2091
2091
|
*/
|
|
2092
|
-
export interface
|
|
2093
|
-
/**
|
|
2094
|
-
* 人像照片Base64后的结果
|
|
2095
|
-
*/
|
|
2096
|
-
HeadPortrait: TextDetectionResult;
|
|
2097
|
-
/**
|
|
2098
|
-
* 姓名
|
|
2099
|
-
*/
|
|
2100
|
-
Name: TextDetectionResult;
|
|
2101
|
-
/**
|
|
2102
|
-
* 姓氏
|
|
2103
|
-
*/
|
|
2104
|
-
LastName: TextDetectionResult;
|
|
2105
|
-
/**
|
|
2106
|
-
* 首姓名
|
|
2107
|
-
*/
|
|
2108
|
-
FirstName: TextDetectionResult;
|
|
2109
|
-
/**
|
|
2110
|
-
* 中间姓名
|
|
2111
|
-
*/
|
|
2112
|
-
MiddleName: TextDetectionResult;
|
|
2092
|
+
export interface RecognizeMedicalInvoiceOCRResponse {
|
|
2113
2093
|
/**
|
|
2114
|
-
*
|
|
2115
|
-
*/
|
|
2116
|
-
Nationality: TextDetectionResult;
|
|
2117
|
-
/**
|
|
2118
|
-
* 性别
|
|
2119
|
-
*/
|
|
2120
|
-
Sex: TextDetectionResult;
|
|
2121
|
-
/**
|
|
2122
|
-
* 地址
|
|
2123
|
-
*/
|
|
2124
|
-
Address: TextDetectionResult;
|
|
2125
|
-
/**
|
|
2126
|
-
* 证号
|
|
2127
|
-
*/
|
|
2128
|
-
LicenseNo: TextDetectionResult;
|
|
2129
|
-
/**
|
|
2130
|
-
* 有效期
|
|
2094
|
+
* 识别出的字段信息
|
|
2131
2095
|
*/
|
|
2132
|
-
|
|
2133
|
-
/**
|
|
2134
|
-
* 机构代码
|
|
2135
|
-
*/
|
|
2136
|
-
AgencyCode: TextDetectionResult;
|
|
2096
|
+
MedicalInvoiceInfos: Array<MedicalInvoiceInfo>;
|
|
2137
2097
|
/**
|
|
2138
|
-
*
|
|
2098
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
|
|
2139
2099
|
*/
|
|
2140
|
-
|
|
2100
|
+
Angle: number;
|
|
2141
2101
|
/**
|
|
2142
2102
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2143
2103
|
*/
|
|
@@ -2503,6 +2463,15 @@ export interface HKIDCardOCRResponse {
|
|
|
2503
2463
|
*/
|
|
2504
2464
|
RequestId?: string;
|
|
2505
2465
|
}
|
|
2466
|
+
/**
|
|
2467
|
+
* 医疗发票识别结果
|
|
2468
|
+
*/
|
|
2469
|
+
export interface MedicalInvoiceInfo {
|
|
2470
|
+
/**
|
|
2471
|
+
* 医疗发票识别结果条目
|
|
2472
|
+
*/
|
|
2473
|
+
MedicalInvoiceItems: Array<MedicalInvoiceItem>;
|
|
2474
|
+
}
|
|
2506
2475
|
/**
|
|
2507
2476
|
* 发票商品
|
|
2508
2477
|
*/
|
|
@@ -3673,6 +3642,28 @@ export interface ShipInvoiceInfo {
|
|
|
3673
3642
|
*/
|
|
3674
3643
|
Rect: Rect;
|
|
3675
3644
|
}
|
|
3645
|
+
/**
|
|
3646
|
+
* 文本的坐标,以四个顶点坐标表示
|
|
3647
|
+
注意:此字段可能返回 null,表示取不到有效值
|
|
3648
|
+
*/
|
|
3649
|
+
export interface Polygon {
|
|
3650
|
+
/**
|
|
3651
|
+
* 左上顶点坐标
|
|
3652
|
+
*/
|
|
3653
|
+
LeftTop: Coord;
|
|
3654
|
+
/**
|
|
3655
|
+
* 右上顶点坐标
|
|
3656
|
+
*/
|
|
3657
|
+
RightTop: Coord;
|
|
3658
|
+
/**
|
|
3659
|
+
* 右下顶点坐标
|
|
3660
|
+
*/
|
|
3661
|
+
RightBottom: Coord;
|
|
3662
|
+
/**
|
|
3663
|
+
* 左下顶点坐标
|
|
3664
|
+
*/
|
|
3665
|
+
LeftBottom: Coord;
|
|
3666
|
+
}
|
|
3676
3667
|
/**
|
|
3677
3668
|
* GeneralAccurateOCR请求参数结构体
|
|
3678
3669
|
*/
|
|
@@ -4271,6 +4262,19 @@ export interface QuestionObj {
|
|
|
4271
4262
|
*/
|
|
4272
4263
|
QuestionImageCoords: Array<Rect>;
|
|
4273
4264
|
}
|
|
4265
|
+
/**
|
|
4266
|
+
* VehicleRegCertOCR返回参数结构体
|
|
4267
|
+
*/
|
|
4268
|
+
export interface VehicleRegCertOCRResponse {
|
|
4269
|
+
/**
|
|
4270
|
+
* 机动车登记证书识别结果,具体内容请点击左侧链接。
|
|
4271
|
+
*/
|
|
4272
|
+
VehicleRegCertInfos: Array<VehicleRegCertInfo>;
|
|
4273
|
+
/**
|
|
4274
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4275
|
+
*/
|
|
4276
|
+
RequestId?: string;
|
|
4277
|
+
}
|
|
4274
4278
|
/**
|
|
4275
4279
|
* VinOCR返回参数结构体
|
|
4276
4280
|
*/
|
|
@@ -4749,26 +4753,28 @@ export interface GeneralFastOCRRequest {
|
|
|
4749
4753
|
PdfPageNumber?: number;
|
|
4750
4754
|
}
|
|
4751
4755
|
/**
|
|
4752
|
-
*
|
|
4753
|
-
注意:此字段可能返回 null,表示取不到有效值
|
|
4756
|
+
* 医疗发票识别结果
|
|
4754
4757
|
*/
|
|
4755
|
-
export interface
|
|
4758
|
+
export interface MedicalInvoiceItem {
|
|
4756
4759
|
/**
|
|
4757
|
-
*
|
|
4760
|
+
* 识别出的字段名称
|
|
4761
|
+
<table><tr><td>分类</td><td>name</td></tr><tr><td>票据基本信息</td><td>发票名称</td></tr><tr><td></td><td>票据代码</td></tr><tr><td></td><td>票据号码</td></tr><tr><td></td><td>电子票据代码</td></tr><tr><td></td><td>电子票据号码</td></tr><tr><td></td><td>交款人统一社会信用代码</td></tr><tr><td></td><td>校验码</td></tr><tr><td></td><td>交款人</td></tr><tr><td></td><td>开票日期</td></tr><tr><td></td><td>收款单位</td></tr><tr><td></td><td>复核人</td></tr><tr><td></td><td>收款人</td></tr><tr><td></td><td>业务流水号</td></tr><tr><td></td><td>门诊号</td></tr><tr><td></td><td>就诊日期</td></tr><tr><td></td><td>医疗机构类型</td></tr><tr><td></td><td>医保类型</td></tr><tr><td></td><td>医保编号</td></tr><tr><td></td><td>性别</td></tr><tr><td></td><td>医保统筹基金支付</td></tr><tr><td></td><td>其他支付</td></tr><tr><td></td><td>个人账户支付</td></tr><tr><td></td><td>个人现金支付</td></tr><tr><td></td><td>个人自付</td></tr><tr><td></td><td>个人自费</td></tr><tr><td></td><td>病历号</td></tr><tr><td></td><td>住院号</td></tr><tr><td></td><td>住院科别</td></tr><tr><td></td><td>住院时间</td></tr><tr><td></td><td>预缴金额</td></tr><tr><td></td><td>补缴金额</td></tr><tr><td></td><td>退费金额</td></tr><tr><td></td><td>发票属地</td></tr><tr><td></td><td>发票类型</td></tr><tr><td>总金额</td><td>总金额大写</td></tr><tr><td></td><td>总金额小写</td></tr><tr><td>收费大项</td><td>大项名称</td></tr><tr><td></td><td>大项金额</td></tr><tr><td>收费细项</td><td>项目名称</td></tr><tr><td></td><td>数量</td></tr><tr><td></td><td>单位</td></tr><tr><td></td><td>金额</td></tr><tr><td></td><td>备注</td></tr><tr><td>票据其他信息</td><td>入院时间</td></tr><tr><td></td><td>出院时间</td></tr><tr><td></td><td>住院天数</td></tr><tr><td></td><td>自付二</td></tr><tr><td></td><td>自付一</td></tr><tr><td></td><td>起付金额</td></tr><tr><td></td><td>超封顶金额</td></tr><tr><td></td><td>自费</td></tr><tr><td></td><td>本次医保范围内金额</td></tr><tr><td></td><td>累计医保内范围金额</td></tr><tr><td></td><td>门诊大额支付</td></tr><tr><td></td><td>残军补助支付</td></tr><tr><td></td><td>年度门诊大额累计支付</td></tr><tr><td></td><td>单位补充险[原公疗]支付</td></tr><tr><td></td><td>社会保障卡号</td></tr><tr><td></td><td>姓名</td></tr><tr><td></td><td>交易流水号</td></tr><tr><td></td><td>本次支付后个人账户余额</td></tr><tr><td></td><td>基金支付</td></tr><tr><td></td><td>现金支付</td></tr><tr><td></td><td>复核</td></tr><tr><td></td><td>自负</td></tr><tr><td></td><td>结算方式</td></tr><tr><td></td><td>医保统筹/公医记账</td></tr><tr><td></td><td>其他</td></tr><tr><td></td><td>个人支付金额</td></tr><tr><td></td><td>欠费</td></tr><tr><td></td><td>退休补充支付</td></tr><tr><td></td><td>医院类型</td></tr><tr><td></td><td>退款</td></tr><tr><td></td><td>补收</td></tr><tr><td></td><td>附加支付</td></tr><tr><td></td><td>分类自负</td></tr><tr><td></td><td>其它</td></tr><tr><td></td><td>预交款</td></tr><tr><td></td><td>个人缴费</td></tr></table>
|
|
4758
4762
|
*/
|
|
4759
|
-
|
|
4763
|
+
Name: string;
|
|
4760
4764
|
/**
|
|
4761
|
-
*
|
|
4765
|
+
* 识别出的字段名称对应的值,也就是字段name对应的字符串结果
|
|
4762
4766
|
*/
|
|
4763
|
-
|
|
4767
|
+
Content: string;
|
|
4764
4768
|
/**
|
|
4765
|
-
*
|
|
4769
|
+
* 识别出的文本行四点坐标
|
|
4770
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4766
4771
|
*/
|
|
4767
|
-
|
|
4772
|
+
Vertex: Polygon;
|
|
4768
4773
|
/**
|
|
4769
|
-
*
|
|
4774
|
+
* 识别出的文本行在旋转纠正之后的图像中的像素坐标
|
|
4775
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4770
4776
|
*/
|
|
4771
|
-
|
|
4777
|
+
Coord: Rect;
|
|
4772
4778
|
}
|
|
4773
4779
|
/**
|
|
4774
4780
|
* ShipInvoiceOCR返回参数结构体
|
|
@@ -4809,17 +4815,32 @@ export interface InsuranceBillInfo {
|
|
|
4809
4815
|
Value: string;
|
|
4810
4816
|
}
|
|
4811
4817
|
/**
|
|
4812
|
-
*
|
|
4818
|
+
* RecognizeMedicalInvoiceOCR请求参数结构体
|
|
4813
4819
|
*/
|
|
4814
|
-
export interface
|
|
4820
|
+
export interface RecognizeMedicalInvoiceOCRRequest {
|
|
4815
4821
|
/**
|
|
4816
|
-
*
|
|
4822
|
+
* 图片的Base64 值。
|
|
4823
|
+
支持的文件格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
4824
|
+
支持的图片大小:所下载文件经Base64编码后不超过 7M。文件下载时间不超过 3 秒。
|
|
4825
|
+
输入参数 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
4817
4826
|
*/
|
|
4818
|
-
|
|
4827
|
+
ImageBase64?: string;
|
|
4819
4828
|
/**
|
|
4820
|
-
*
|
|
4829
|
+
* 图片的Url 地址。
|
|
4830
|
+
支持的文件格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
4831
|
+
支持的图片大小:所下载文件经 Base64 编码后不超过 7M。文件下载时间不超过 3 秒。
|
|
4832
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
4833
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
4821
4834
|
*/
|
|
4822
|
-
|
|
4835
|
+
ImageUrl?: string;
|
|
4836
|
+
/**
|
|
4837
|
+
* 是否需要返回识别出的文本行在原图上的四点坐标,默认不返回
|
|
4838
|
+
*/
|
|
4839
|
+
ReturnVertex?: boolean;
|
|
4840
|
+
/**
|
|
4841
|
+
* 是否需要返回识别出的文本行在旋转纠正之后的图像中的四点坐标,默认不返回
|
|
4842
|
+
*/
|
|
4843
|
+
ReturnCoord?: boolean;
|
|
4823
4844
|
}
|
|
4824
4845
|
/**
|
|
4825
4846
|
* 卡证智能分类结果
|
|
@@ -6136,6 +6157,63 @@ Config = {"RetImageType":"PROPROCESS"}
|
|
|
6136
6157
|
*/
|
|
6137
6158
|
Config?: string;
|
|
6138
6159
|
}
|
|
6160
|
+
/**
|
|
6161
|
+
* RecognizePhilippinesDrivingLicenseOCR返回参数结构体
|
|
6162
|
+
*/
|
|
6163
|
+
export interface RecognizePhilippinesDrivingLicenseOCRResponse {
|
|
6164
|
+
/**
|
|
6165
|
+
* 人像照片Base64后的结果
|
|
6166
|
+
*/
|
|
6167
|
+
HeadPortrait: TextDetectionResult;
|
|
6168
|
+
/**
|
|
6169
|
+
* 姓名
|
|
6170
|
+
*/
|
|
6171
|
+
Name: TextDetectionResult;
|
|
6172
|
+
/**
|
|
6173
|
+
* 姓氏
|
|
6174
|
+
*/
|
|
6175
|
+
LastName: TextDetectionResult;
|
|
6176
|
+
/**
|
|
6177
|
+
* 首姓名
|
|
6178
|
+
*/
|
|
6179
|
+
FirstName: TextDetectionResult;
|
|
6180
|
+
/**
|
|
6181
|
+
* 中间姓名
|
|
6182
|
+
*/
|
|
6183
|
+
MiddleName: TextDetectionResult;
|
|
6184
|
+
/**
|
|
6185
|
+
* 国籍
|
|
6186
|
+
*/
|
|
6187
|
+
Nationality: TextDetectionResult;
|
|
6188
|
+
/**
|
|
6189
|
+
* 性别
|
|
6190
|
+
*/
|
|
6191
|
+
Sex: TextDetectionResult;
|
|
6192
|
+
/**
|
|
6193
|
+
* 地址
|
|
6194
|
+
*/
|
|
6195
|
+
Address: TextDetectionResult;
|
|
6196
|
+
/**
|
|
6197
|
+
* 证号
|
|
6198
|
+
*/
|
|
6199
|
+
LicenseNo: TextDetectionResult;
|
|
6200
|
+
/**
|
|
6201
|
+
* 有效期
|
|
6202
|
+
*/
|
|
6203
|
+
ExpiresDate: TextDetectionResult;
|
|
6204
|
+
/**
|
|
6205
|
+
* 机构代码
|
|
6206
|
+
*/
|
|
6207
|
+
AgencyCode: TextDetectionResult;
|
|
6208
|
+
/**
|
|
6209
|
+
* 出生日期
|
|
6210
|
+
*/
|
|
6211
|
+
Birthday: TextDetectionResult;
|
|
6212
|
+
/**
|
|
6213
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
6214
|
+
*/
|
|
6215
|
+
RequestId?: string;
|
|
6216
|
+
}
|
|
6139
6217
|
/**
|
|
6140
6218
|
* FinanBillOCR请求参数结构体
|
|
6141
6219
|
*/
|
|
@@ -1633,6 +1633,18 @@ export interface RumAreaInfo {
|
|
|
1633
1633
|
* 片区Key
|
|
1634
1634
|
*/
|
|
1635
1635
|
AreaKey: string;
|
|
1636
|
+
/**
|
|
1637
|
+
* 地域码表 id
|
|
1638
|
+
*/
|
|
1639
|
+
AreaRegionID: string;
|
|
1640
|
+
/**
|
|
1641
|
+
* 地域码表 code 如 ap-xxx(xxx 为地域词)
|
|
1642
|
+
*/
|
|
1643
|
+
AreaRegionCode: string;
|
|
1644
|
+
/**
|
|
1645
|
+
* 地域缩写
|
|
1646
|
+
*/
|
|
1647
|
+
AreaAbbr: string;
|
|
1636
1648
|
}
|
|
1637
1649
|
/**
|
|
1638
1650
|
* DescribeDataSetUrlStatistics请求参数结构体
|