tencentcloud-sdk-nodejs 4.1.6 → 4.1.7
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/es/common/sdk_version.js +1 -1
- package/es/services/ocr/v20181119/ocr_client.js +4 -13
- package/es/services/partners/v20180321/partners_client.js +34 -31
- package/es/services/tdmq/v20200217/tdmq_client.js +0 -3
- package/package.json +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_models.d.ts +0 -58
- package/tencentcloud/services/bi/v20220105/bi_models.d.ts +2 -0
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +35 -18
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +24 -24
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +1 -1
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +3 -3
- package/tencentcloud/services/cme/v20191029/cme_client.d.ts +1 -3
- package/tencentcloud/services/cme/v20191029/cme_client.js +1 -3
- package/tencentcloud/services/cme/v20191029/cme_models.d.ts +174 -176
- package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +1 -1
- package/tencentcloud/services/cvm/v20170312/cvm_client.js +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +16 -0
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +0 -7
- package/tencentcloud/services/domain/v20180808/domain_models.d.ts +7 -3
- package/tencentcloud/services/dts/v20180330/dts_models.d.ts +0 -1
- package/tencentcloud/services/dts/v20211206/dts_models.d.ts +0 -7
- package/tencentcloud/services/ecdn/v20191012/ecdn_client.d.ts +6 -2
- package/tencentcloud/services/ecdn/v20191012/ecdn_client.js +6 -2
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +2 -2
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +5 -3
- package/tencentcloud/services/ess/v20201111/ess_client.js +5 -3
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +20 -7
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +2 -2
- package/tencentcloud/services/gs/v20191118/gs_models.d.ts +4 -0
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_models.d.ts +10 -10
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +10 -0
- package/tencentcloud/services/iotvideo/v20201215/iotvideo_models.d.ts +1 -1
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +14 -4
- package/tencentcloud/services/live/v20180801/live_models.d.ts +14 -2
- package/tencentcloud/services/lkeap/v20240522/lkeap_models.d.ts +4 -0
- package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +4 -6
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.d.ts +2 -2
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.js +2 -2
- package/tencentcloud/services/mqtt/v20240516/mqtt_models.d.ts +85 -34
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +72 -89
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +73 -96
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +68 -194
- package/tencentcloud/services/partners/v20180321/partners_client.d.ts +39 -35
- package/tencentcloud/services/partners/v20180321/partners_client.js +57 -51
- package/tencentcloud/services/partners/v20180321/partners_models.d.ts +42 -0
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +16 -0
- package/tencentcloud/services/tag/v20180813/tag_models.d.ts +9 -9
- package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +0 -5
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +1 -7
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +0 -8
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +36 -62
- package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +4 -0
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +0 -2
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +8 -0
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +2 -1
- package/tencentcloud/services/vod/v20180717/vod_client.js +2 -1
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +122 -174
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +8 -5
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +8 -5
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +77 -50
|
@@ -163,31 +163,31 @@ export interface ApplyRegistrationCodeRequest {
|
|
|
163
163
|
*/
|
|
164
164
|
export interface DescribeMessageListRequest {
|
|
165
165
|
/**
|
|
166
|
-
* 实例ID
|
|
166
|
+
* 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
167
167
|
*/
|
|
168
168
|
InstanceId: string;
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* 要查询的一级Topic,可从 [查询MQTT主题列表](https://cloud.tencent.com/document/product/1778/111082) 获取。
|
|
171
171
|
*/
|
|
172
172
|
Topic: string;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* 开始时间,毫秒级时间戳 。
|
|
175
175
|
*/
|
|
176
176
|
StartTime: number;
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* 结束时间,毫秒级时间戳 。
|
|
179
179
|
*/
|
|
180
180
|
EndTime: number;
|
|
181
181
|
/**
|
|
182
|
-
* 请求任务id
|
|
182
|
+
* 请求任务id,用于相同查询参数下查询加速,第一次查询时无需传递,第一次查询会根据本次查询参数生成查询任务ID,保留查询条件,查询下一页消息时可传递第一次查询返回的任务ID。
|
|
183
183
|
*/
|
|
184
184
|
TaskRequestId: string;
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* 查询起始位置,默认0
|
|
187
187
|
*/
|
|
188
188
|
Offset?: number;
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* 查询结果限制数量,默认20,最大50
|
|
191
191
|
*/
|
|
192
192
|
Limit?: number;
|
|
193
193
|
}
|
|
@@ -560,19 +560,20 @@ export interface DeleteInstanceRequest {
|
|
|
560
560
|
*/
|
|
561
561
|
export interface ModifyInstanceRequest {
|
|
562
562
|
/**
|
|
563
|
-
* 实例ID
|
|
563
|
+
* 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
564
564
|
*/
|
|
565
565
|
InstanceId: string;
|
|
566
566
|
/**
|
|
567
|
-
*
|
|
567
|
+
* 要修改实例名称,不能为空, 3-64个字符,只能包含数字、字母、“-”和“_”。
|
|
568
568
|
*/
|
|
569
569
|
Name?: string;
|
|
570
570
|
/**
|
|
571
|
-
*
|
|
571
|
+
* 要修改的备注信息,最多64个字符。
|
|
572
572
|
*/
|
|
573
573
|
Remark?: string;
|
|
574
574
|
/**
|
|
575
|
-
*
|
|
575
|
+
* 需要变更的配置规格
|
|
576
|
+
基础版和增强版集群不能升配到铂金版规格,铂金版集群不能降配至基础版和增强版规格。
|
|
576
577
|
*/
|
|
577
578
|
SkuCode?: string;
|
|
578
579
|
/**
|
|
@@ -585,6 +586,10 @@ export interface ModifyInstanceRequest {
|
|
|
585
586
|
* 自动注册证书是否自动激活
|
|
586
587
|
*/
|
|
587
588
|
AutomaticActivation?: boolean;
|
|
589
|
+
/**
|
|
590
|
+
* 授权策略开关
|
|
591
|
+
*/
|
|
592
|
+
AuthorizationPolicy?: boolean;
|
|
588
593
|
}
|
|
589
594
|
/**
|
|
590
595
|
* RegisterDeviceCertificate返回参数结构体
|
|
@@ -607,16 +612,35 @@ export interface MQTTAuthenticatorItem {
|
|
|
607
612
|
*/
|
|
608
613
|
Type?: string;
|
|
609
614
|
/**
|
|
610
|
-
*
|
|
615
|
+
* JWT认证器字段说明
|
|
616
|
+
from(认证字段)
|
|
617
|
+
password:从password字段获取认证字段
|
|
618
|
+
username:从username字段获取认证字段
|
|
619
|
+
secret(签名方式)
|
|
620
|
+
hmac-based:hmac-based签名方式
|
|
621
|
+
public-key:public-key签名方式
|
|
622
|
+
secret(密钥),hmac-based需要配置密钥
|
|
623
|
+
public-key(公钥),public-key签名方式需要配置
|
|
624
|
+
样例:{"from":"password","secret":"secret282698","algorithm":"hmac-based"}
|
|
625
|
+
|
|
626
|
+
JWKS认证器字段说明
|
|
627
|
+
endpoint(接入点):公钥获取服务器接入地址
|
|
628
|
+
refreshInterval(认证内容):公钥集合刷新周期
|
|
629
|
+
from(认证字段)
|
|
630
|
+
password:从password字段获取认证字段
|
|
631
|
+
username:从username字段获取认证字段
|
|
632
|
+
text:公钥集合
|
|
633
|
+
样例:{"endpoint":"127.0.0.1","refreshInterval":60,"from":"password"}
|
|
634
|
+
|
|
635
|
+
HTTP认证器
|
|
611
636
|
headers(请求头):标准请求头和自定义请求头
|
|
612
637
|
endpoint(接入点):认证服务器接入点
|
|
613
638
|
method(http请求方法):POST/GET
|
|
614
639
|
readTimeout(读超时时间):读取认证服务器数据超时时间,单位秒
|
|
615
640
|
connectTimeout(连接超时时间):连接认证服务器超时时间,单位秒
|
|
616
641
|
body(请求体):http请求体
|
|
617
|
-
concurrency
|
|
642
|
+
concurrency(并发数):最大并发请求数量
|
|
618
643
|
样例:{"headers":[{"key":"Content-type","value":"application/json"},{"key":"username","value":"${Username}"}],"endpoint":"https://127.0.0.1:443","method":"POST","readTimeout":10,"connectTimeout":10,"body":[{"key":"client-id","value":"${ClientId}"}],"concurrency":8}
|
|
619
|
-
|
|
620
644
|
参考 [认证管理概述](https://cloud.tencent.com/document/product/1778/114813)
|
|
621
645
|
*/
|
|
622
646
|
Config?: string;
|
|
@@ -877,7 +901,7 @@ export interface MQTTMessageItem {
|
|
|
877
901
|
*/
|
|
878
902
|
ProducerAddr?: string;
|
|
879
903
|
/**
|
|
880
|
-
*
|
|
904
|
+
* 消息发送时间,格式 日期时间:YYYY-MM-DD hh:mm:ss
|
|
881
905
|
*/
|
|
882
906
|
ProduceTime?: string;
|
|
883
907
|
/**
|
|
@@ -894,6 +918,9 @@ export interface MQTTMessageItem {
|
|
|
894
918
|
SubTopic?: string;
|
|
895
919
|
/**
|
|
896
920
|
* 消息质量等级
|
|
921
|
+
0:至多一次
|
|
922
|
+
1:至少一次
|
|
923
|
+
2:精确一次
|
|
897
924
|
*/
|
|
898
925
|
Qos?: string;
|
|
899
926
|
}
|
|
@@ -929,55 +956,66 @@ export interface CreateUserResponse {
|
|
|
929
956
|
*/
|
|
930
957
|
export interface CreateAuthorizationPolicyRequest {
|
|
931
958
|
/**
|
|
932
|
-
* 实例ID
|
|
959
|
+
* 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
|
933
960
|
*/
|
|
934
961
|
InstanceId: string;
|
|
935
962
|
/**
|
|
936
|
-
*
|
|
963
|
+
* 策略名称,不能为空,3-64个字符,支持中文、字母、数字、“-”及“_”。
|
|
937
964
|
*/
|
|
938
965
|
PolicyName: string;
|
|
939
966
|
/**
|
|
940
|
-
*
|
|
967
|
+
* 策略版本,默认为1,当前仅支持1
|
|
941
968
|
*/
|
|
942
969
|
PolicyVersion: number;
|
|
943
970
|
/**
|
|
944
|
-
*
|
|
971
|
+
* 策略优先级,越小越优先,不能重复
|
|
945
972
|
*/
|
|
946
973
|
Priority: number;
|
|
947
974
|
/**
|
|
948
|
-
*
|
|
975
|
+
* 决策:
|
|
976
|
+
allow 允许
|
|
977
|
+
deny 拒绝
|
|
949
978
|
*/
|
|
950
979
|
Effect: string;
|
|
951
980
|
/**
|
|
952
|
-
*
|
|
981
|
+
* 操作
|
|
982
|
+
connect:连接
|
|
983
|
+
pub:发布
|
|
984
|
+
sub:订阅
|
|
953
985
|
*/
|
|
954
986
|
Actions: string;
|
|
955
987
|
/**
|
|
956
|
-
*
|
|
988
|
+
* 条件-保留消息
|
|
989
|
+
1,匹配保留消息;
|
|
990
|
+
2,匹配非保留消息,
|
|
991
|
+
3.匹配保留和非保留消息
|
|
957
992
|
*/
|
|
958
993
|
Retain: number;
|
|
959
994
|
/**
|
|
960
|
-
*
|
|
995
|
+
* 条件:服务质量
|
|
996
|
+
0:最多一次
|
|
997
|
+
1:最少一次
|
|
998
|
+
2:精确一次
|
|
961
999
|
*/
|
|
962
1000
|
Qos: string;
|
|
963
1001
|
/**
|
|
964
|
-
*
|
|
1002
|
+
* 资源,需要匹配的订阅
|
|
965
1003
|
*/
|
|
966
1004
|
Resources?: string;
|
|
967
1005
|
/**
|
|
968
|
-
*
|
|
1006
|
+
* 条件-用户名
|
|
969
1007
|
*/
|
|
970
1008
|
Username?: string;
|
|
971
1009
|
/**
|
|
972
|
-
*
|
|
1010
|
+
* 条件:客户端ID,支持正则
|
|
973
1011
|
*/
|
|
974
1012
|
ClientId?: string;
|
|
975
1013
|
/**
|
|
976
|
-
* IP
|
|
1014
|
+
* 条件:客户端IP地址,支持IP或者CIDR
|
|
977
1015
|
*/
|
|
978
1016
|
Ip?: string;
|
|
979
1017
|
/**
|
|
980
|
-
*
|
|
1018
|
+
* 备注信息,最长 128 字符
|
|
981
1019
|
*/
|
|
982
1020
|
Remark?: string;
|
|
983
1021
|
}
|
|
@@ -1577,6 +1615,14 @@ export interface RevokedDeviceCertificateRequest {
|
|
|
1577
1615
|
* CreateAuthorizationPolicy返回参数结构体
|
|
1578
1616
|
*/
|
|
1579
1617
|
export interface CreateAuthorizationPolicyResponse {
|
|
1618
|
+
/**
|
|
1619
|
+
* 集群Id
|
|
1620
|
+
*/
|
|
1621
|
+
InstanceId?: string;
|
|
1622
|
+
/**
|
|
1623
|
+
* 策略id
|
|
1624
|
+
*/
|
|
1625
|
+
Id?: number;
|
|
1580
1626
|
/**
|
|
1581
1627
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1582
1628
|
*/
|
|
@@ -1819,6 +1865,7 @@ export interface DescribeInstanceResponse {
|
|
|
1819
1865
|
* 实例类型
|
|
1820
1866
|
BASIC 基础版
|
|
1821
1867
|
PRO 专业版
|
|
1868
|
+
PLATINUM 铂金版
|
|
1822
1869
|
*/
|
|
1823
1870
|
InstanceType?: string;
|
|
1824
1871
|
/**
|
|
@@ -1850,7 +1897,7 @@ export interface DescribeInstanceResponse {
|
|
|
1850
1897
|
*/
|
|
1851
1898
|
Remark?: string;
|
|
1852
1899
|
/**
|
|
1853
|
-
*
|
|
1900
|
+
* 实例状态, RUNNING, 运行中 MAINTAINING,维护中 ABNORMAL,异常 OVERDUE,欠费 DESTROYED,已删除 CREATING,创建中 MODIFYING,变配中 CREATE_FAILURE,创建失败 MODIFY_FAILURE,变配失败 DELETING,删除中
|
|
1854
1901
|
*/
|
|
1855
1902
|
InstanceStatus?: string;
|
|
1856
1903
|
/**
|
|
@@ -1880,7 +1927,7 @@ export interface DescribeInstanceResponse {
|
|
|
1880
1927
|
*/
|
|
1881
1928
|
AutomaticActivation?: boolean;
|
|
1882
1929
|
/**
|
|
1883
|
-
*
|
|
1930
|
+
* 是否自动续费。仅包年包月集群生效。 1:自动续费 0:非自动续费
|
|
1884
1931
|
*/
|
|
1885
1932
|
RenewFlag?: number;
|
|
1886
1933
|
/**
|
|
@@ -1888,11 +1935,11 @@ export interface DescribeInstanceResponse {
|
|
|
1888
1935
|
*/
|
|
1889
1936
|
PayMode?: string;
|
|
1890
1937
|
/**
|
|
1891
|
-
*
|
|
1938
|
+
* 到期时间,毫秒级时间戳
|
|
1892
1939
|
*/
|
|
1893
1940
|
ExpiryTime?: number;
|
|
1894
1941
|
/**
|
|
1895
|
-
*
|
|
1942
|
+
* 预销毁时间,毫秒级时间戳
|
|
1896
1943
|
*/
|
|
1897
1944
|
DestroyTime?: number;
|
|
1898
1945
|
/**
|
|
@@ -1911,6 +1958,10 @@ export interface DescribeInstanceResponse {
|
|
|
1911
1958
|
* 集群最大订阅数
|
|
1912
1959
|
*/
|
|
1913
1960
|
MaxSubscription?: number;
|
|
1961
|
+
/**
|
|
1962
|
+
* 授权策略开关
|
|
1963
|
+
*/
|
|
1964
|
+
AuthorizationPolicy?: boolean;
|
|
1914
1965
|
/**
|
|
1915
1966
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1916
1967
|
*/
|
|
@@ -2372,7 +2423,7 @@ export interface MQTTClientInfo {
|
|
|
2372
2423
|
* MQTT 协议版本
|
|
2373
2424
|
3:表示MQTT 3.1版本
|
|
2374
2425
|
4:表示 MQTT 3.1.1
|
|
2375
|
-
5
|
|
2426
|
+
5:表示MQTT 5.0协议
|
|
2376
2427
|
*/
|
|
2377
2428
|
ProtocolVersion?: number;
|
|
2378
2429
|
/**
|
|
@@ -2605,7 +2656,7 @@ export interface ModifyHttpAuthenticatorRequest {
|
|
|
2605
2656
|
*/
|
|
2606
2657
|
export interface DescribeInstanceRequest {
|
|
2607
2658
|
/**
|
|
2608
|
-
* 实例ID
|
|
2659
|
+
* 实例ID [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)
|
|
2609
2660
|
*/
|
|
2610
2661
|
InstanceId: string;
|
|
2611
2662
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse,
|
|
3
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, ReconstructDocumentResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, ShipInvoiceOCRResponse, ReconstructDocumentRequest, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, SmartStructuralProResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, GetOCRTokenRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, TableOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
|
4
4
|
/**
|
|
5
5
|
* ocr client
|
|
6
6
|
* @class
|
|
@@ -244,11 +244,71 @@ export declare class Client extends AbstractClient {
|
|
|
244
244
|
*/
|
|
245
245
|
MainlandPermitOCR(req: MainlandPermitOCRRequest, cb?: (error: string, rep: MainlandPermitOCRResponse) => void): Promise<MainlandPermitOCRResponse>;
|
|
246
246
|
/**
|
|
247
|
-
*
|
|
247
|
+
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
|
248
248
|
|
|
249
|
-
|
|
249
|
+
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
|
250
|
+
|
|
251
|
+
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
|
252
|
+
|
|
253
|
+
通用印刷体识别不同版本的差异如下:
|
|
254
|
+
<table style="width:715px">
|
|
255
|
+
<thead>
|
|
256
|
+
<tr>
|
|
257
|
+
<th style="width:150px"></th>
|
|
258
|
+
<th style="width:200px">【荐】通用印刷体识别</th>
|
|
259
|
+
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
|
260
|
+
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
|
261
|
+
</tr>
|
|
262
|
+
</thead>
|
|
263
|
+
<tbody>
|
|
264
|
+
<tr>
|
|
265
|
+
<td> 适用场景</td>
|
|
266
|
+
<td>适用于所有通用场景的印刷体识别</td>
|
|
267
|
+
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
|
268
|
+
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
|
269
|
+
</tr>
|
|
270
|
+
<tr>
|
|
271
|
+
<td>识别准确率</td>
|
|
272
|
+
<td>96%</td>
|
|
273
|
+
<td>99%</td>
|
|
274
|
+
<td>91%</td>
|
|
275
|
+
</tr>
|
|
276
|
+
<tr>
|
|
277
|
+
<td>价格</td>
|
|
278
|
+
<td>中</td>
|
|
279
|
+
<td>高</td>
|
|
280
|
+
<td>低</td>
|
|
281
|
+
</tr>
|
|
282
|
+
<tr>
|
|
283
|
+
<td>支持的语言</td>
|
|
284
|
+
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
285
|
+
<td>中文、英文、中英文</td>
|
|
286
|
+
<td>中文、英文、中英文</td>
|
|
287
|
+
</tr>
|
|
288
|
+
<tr>
|
|
289
|
+
<td>自动语言检测</td>
|
|
290
|
+
<td>支持</td>
|
|
291
|
+
<td>支持</td>
|
|
292
|
+
<td>支持</td>
|
|
293
|
+
</tr>
|
|
294
|
+
<tr>
|
|
295
|
+
<td>返回文本行坐标</td>
|
|
296
|
+
<td>支持</td>
|
|
297
|
+
<td>支持</td>
|
|
298
|
+
<td>支持</td>
|
|
299
|
+
</tr>
|
|
300
|
+
<tr>
|
|
301
|
+
<td>自动旋转纠正</td>
|
|
302
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
303
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
304
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
305
|
+
</tr>
|
|
306
|
+
</tbody>
|
|
307
|
+
</table>
|
|
308
|
+
|
|
309
|
+
默认接口请求频率限制:20次/秒。
|
|
250
310
|
*/
|
|
251
|
-
|
|
311
|
+
GeneralBasicOCR(req: GeneralBasicOCRRequest, cb?: (error: string, rep: GeneralBasicOCRResponse) => void): Promise<GeneralBasicOCRResponse>;
|
|
252
312
|
/**
|
|
253
313
|
* 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
|
|
254
314
|
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
|
@@ -412,6 +472,11 @@ export declare class Client extends AbstractClient {
|
|
|
412
472
|
<td> 海关缴款 </td>
|
|
413
473
|
<td> 19 </td>
|
|
414
474
|
</tr>
|
|
475
|
+
<tr>
|
|
476
|
+
<td> BankSlip </td>
|
|
477
|
+
<td> 银行回单 </td>
|
|
478
|
+
<td> 20 </td>
|
|
479
|
+
</tr>
|
|
415
480
|
<tr>
|
|
416
481
|
<td> OtherInvoice </td>
|
|
417
482
|
<td> 其他发票 </td>
|
|
@@ -456,12 +521,6 @@ export declare class Client extends AbstractClient {
|
|
|
456
521
|
默认接口请求频率限制:10次/秒。
|
|
457
522
|
*/
|
|
458
523
|
BizLicenseOCR(req: BizLicenseOCRRequest, cb?: (error: string, rep: BizLicenseOCRResponse) => void): Promise<BizLicenseOCRResponse>;
|
|
459
|
-
/**
|
|
460
|
-
* 智慧表单产品已下线,需要下线相关API
|
|
461
|
-
|
|
462
|
-
支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
|
463
|
-
*/
|
|
464
|
-
GetTaskState(req: GetTaskStateRequest, cb?: (error: string, rep: GetTaskStateResponse) => void): Promise<GetTaskStateResponse>;
|
|
465
524
|
/**
|
|
466
525
|
* 支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
|
|
467
526
|
|
|
@@ -469,71 +528,11 @@ export declare class Client extends AbstractClient {
|
|
|
469
528
|
*/
|
|
470
529
|
RecognizeGeneralCardWarn(req: RecognizeGeneralCardWarnRequest, cb?: (error: string, rep: RecognizeGeneralCardWarnResponse) => void): Promise<RecognizeGeneralCardWarnResponse>;
|
|
471
530
|
/**
|
|
472
|
-
*
|
|
473
|
-
|
|
474
|
-
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
|
475
|
-
|
|
476
|
-
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
|
477
|
-
|
|
478
|
-
通用印刷体识别不同版本的差异如下:
|
|
479
|
-
<table style="width:715px">
|
|
480
|
-
<thead>
|
|
481
|
-
<tr>
|
|
482
|
-
<th style="width:150px"></th>
|
|
483
|
-
<th style="width:200px">【荐】通用印刷体识别</th>
|
|
484
|
-
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
|
485
|
-
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
|
486
|
-
</tr>
|
|
487
|
-
</thead>
|
|
488
|
-
<tbody>
|
|
489
|
-
<tr>
|
|
490
|
-
<td> 适用场景</td>
|
|
491
|
-
<td>适用于所有通用场景的印刷体识别</td>
|
|
492
|
-
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
|
493
|
-
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
|
494
|
-
</tr>
|
|
495
|
-
<tr>
|
|
496
|
-
<td>识别准确率</td>
|
|
497
|
-
<td>96%</td>
|
|
498
|
-
<td>99%</td>
|
|
499
|
-
<td>91%</td>
|
|
500
|
-
</tr>
|
|
501
|
-
<tr>
|
|
502
|
-
<td>价格</td>
|
|
503
|
-
<td>中</td>
|
|
504
|
-
<td>高</td>
|
|
505
|
-
<td>低</td>
|
|
506
|
-
</tr>
|
|
507
|
-
<tr>
|
|
508
|
-
<td>支持的语言</td>
|
|
509
|
-
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
510
|
-
<td>中文、英文、中英文</td>
|
|
511
|
-
<td>中文、英文、中英文</td>
|
|
512
|
-
</tr>
|
|
513
|
-
<tr>
|
|
514
|
-
<td>自动语言检测</td>
|
|
515
|
-
<td>支持</td>
|
|
516
|
-
<td>支持</td>
|
|
517
|
-
<td>支持</td>
|
|
518
|
-
</tr>
|
|
519
|
-
<tr>
|
|
520
|
-
<td>返回文本行坐标</td>
|
|
521
|
-
<td>支持</td>
|
|
522
|
-
<td>支持</td>
|
|
523
|
-
<td>支持</td>
|
|
524
|
-
</tr>
|
|
525
|
-
<tr>
|
|
526
|
-
<td>自动旋转纠正</td>
|
|
527
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
528
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
529
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
530
|
-
</tr>
|
|
531
|
-
</tbody>
|
|
532
|
-
</table>
|
|
531
|
+
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
|
533
532
|
|
|
534
|
-
默认接口请求频率限制:
|
|
533
|
+
默认接口请求频率限制:5次/秒。
|
|
535
534
|
*/
|
|
536
|
-
|
|
535
|
+
FlightInvoiceOCR(req: FlightInvoiceOCRRequest, cb?: (error: string, rep: FlightInvoiceOCRResponse) => void): Promise<FlightInvoiceOCRResponse>;
|
|
537
536
|
/**
|
|
538
537
|
* 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
|
|
539
538
|
|
|
@@ -572,14 +571,6 @@ export declare class Client extends AbstractClient {
|
|
|
572
571
|
默认接口请求频率限制:10次/秒。
|
|
573
572
|
*/
|
|
574
573
|
BankCardOCR(req: BankCardOCRRequest, cb?: (error: string, rep: BankCardOCRResponse) => void): Promise<BankCardOCRResponse>;
|
|
575
|
-
/**
|
|
576
|
-
* 已上线VatInvoiceVerifyNew,VatInvoiceVerify需要下线,产品在官网已发通告
|
|
577
|
-
|
|
578
|
-
本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
|
579
|
-
|
|
580
|
-
默认接口请求频率限制:20次/秒。
|
|
581
|
-
*/
|
|
582
|
-
VatInvoiceVerify(req: VatInvoiceVerifyRequest, cb?: (error: string, rep: VatInvoiceVerifyResponse) => void): Promise<VatInvoiceVerifyResponse>;
|
|
583
574
|
/**
|
|
584
575
|
* 获取ocr的token值
|
|
585
576
|
*/
|
|
@@ -712,14 +703,6 @@ export declare class Client extends AbstractClient {
|
|
|
712
703
|
默认接口请求频率限制:10次/秒。
|
|
713
704
|
*/
|
|
714
705
|
RecognizeTableOCR(req: RecognizeTableOCRRequest, cb?: (error: string, rep: RecognizeTableOCRResponse) => void): Promise<RecognizeTableOCRResponse>;
|
|
715
|
-
/**
|
|
716
|
-
* 智慧表单产品已下线,需要下线相关API
|
|
717
|
-
|
|
718
|
-
本接口可创建智能表单录入任务,支持多个识别图片和PDF的URL上传,返回含有识别内容的操作页面URL。
|
|
719
|
-
|
|
720
|
-
智能表单录入产品提供高准确率的表单识别技术和人工核对工具,支持自定义字段,将识别结果自动填入到自定义条目中,并提供人工操作工具,完成整个表单识别过程。适用性强,可对票据、合同、货单等文件的识别,适用于金融、货代、保险、档案等领域。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
|
721
|
-
*/
|
|
722
|
-
CreateAIFormTask(req: CreateAIFormTaskRequest, cb?: (error: string, rep: CreateAIFormTaskResponse) => void): Promise<CreateAIFormTaskResponse>;
|
|
723
706
|
/**
|
|
724
707
|
* 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
|
|
725
708
|
|