tencentcloud-sdk-nodejs 4.0.1019 → 4.0.1020

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.
Files changed (27) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/SERVICE_CHANGELOG.md +125 -66
  3. package/package.json +1 -1
  4. package/products.md +7 -7
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/ccc/v20200210/ccc_client.ts +30 -15
  7. package/src/services/ccc/v20200210/ccc_models.ts +925 -803
  8. package/src/services/faceid/v20180301/faceid_models.ts +1 -1
  9. package/src/services/ocr/v20181119/ocr_client.ts +67 -34
  10. package/src/services/ocr/v20181119/ocr_models.ts +322 -192
  11. package/src/services/rum/v20210622/rum_models.ts +3 -3
  12. package/src/services/ses/v20201002/ses_models.ts +67 -46
  13. package/src/services/trtc/v20190722/trtc_models.ts +148 -59
  14. package/tencentcloud/common/sdk_version.d.ts +1 -1
  15. package/tencentcloud/common/sdk_version.js +1 -1
  16. package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +7 -3
  17. package/tencentcloud/services/ccc/v20200210/ccc_client.js +9 -3
  18. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +1755 -1638
  19. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +1 -1
  20. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +25 -11
  21. package/tencentcloud/services/ocr/v20181119/ocr_client.js +32 -14
  22. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +313 -190
  23. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +3 -3
  24. package/tencentcloud/services/ses/v20201002/ses_models.d.ts +67 -46
  25. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +147 -58
  26. package/test/ccc.v20200210.test.js +12 -2
  27. package/test/ocr.v20181119.test.js +34 -14
@@ -1663,7 +1663,7 @@ export interface CheckIdCardInformationResponse {
1663
1663
  */
1664
1664
  export interface GetEidResultRequest {
1665
1665
  /**
1666
- * E证通流程的唯一标识,调用GetEidToken接口时生成。
1666
+ * E证通流程的唯一标识,调用[GetEidToken](https://cloud.tencent.com/document/product/1007/54089)接口时生成。
1667
1667
  */
1668
1668
  EidToken: string
1669
1669
  /**
@@ -29,6 +29,7 @@ import {
29
29
  TextArithmetic,
30
30
  ResidencePermitInfo,
31
31
  BankCardOCRRequest,
32
+ SmartStructuralOCRResponse,
32
33
  CarInvoiceOCRRequest,
33
34
  MixedInvoiceItem,
34
35
  RecognizeTravelCardOCRRequest,
@@ -56,7 +57,7 @@ import {
56
57
  InvoiceGeneralOCRRequest,
57
58
  Rect,
58
59
  LicensePlateInfo,
59
- SingleInvoiceInfo,
60
+ QuestionSplitOCRRequest,
60
61
  VatRollItem,
61
62
  TextFormula,
62
63
  HmtResidentPermitOCRResponse,
@@ -66,6 +67,7 @@ import {
66
67
  FlightItem,
67
68
  Value,
68
69
  EnterpriseLicenseOCRResponse,
70
+ QuestionOCRResponse,
69
71
  SealInfo,
70
72
  InvoiceGeneralInfo,
71
73
  TextVatInvoice,
@@ -85,7 +87,7 @@ import {
85
87
  VatElectronicItemInfo,
86
88
  SmartStructuralOCRV2Response,
87
89
  EnterpriseLicenseOCRRequest,
88
- SmartStructuralOCRRequest,
90
+ QuestionSplitOCRResponse,
89
91
  RecognizeStoreNameRequest,
90
92
  StructuralItem,
91
93
  OnlineTaxiItineraryInfo,
@@ -94,14 +96,14 @@ import {
94
96
  PropOwnerCertOCRResponse,
95
97
  FinanBillInfo,
96
98
  TrainTicketOCRResponse,
99
+ TextFormulaInfo,
97
100
  TollInvoiceInfo,
98
101
  BankSlipInfo,
99
- SmartStructuralOCRResponse,
102
+ RecognizeFormulaOCRResponse,
100
103
  ArithmeticOCRResponse,
101
104
  FormulaOCRResponse,
102
- RecognizeGeneralCardWarnRequest,
103
105
  BusInvoiceInfo,
104
- RecognizeEncryptedIDCardOCRRequest,
106
+ SmartStructuralOCRRequest,
105
107
  TableCellInfo,
106
108
  GeneralHandwritingOCRRequest,
107
109
  BizLicenseOCRRequest,
@@ -149,6 +151,7 @@ import {
149
151
  TaxiInvoiceOCRRequest,
150
152
  MachinePrintedInvoice,
151
153
  FinancialBillItem,
154
+ SingleInvoiceInfo,
152
155
  RecognizeContainerOCRRequest,
153
156
  TrainTicket,
154
157
  TextDetectRequest,
@@ -193,6 +196,7 @@ import {
193
196
  MedicalInvoiceItem,
194
197
  GeneralAccurateOCRRequest,
195
198
  OrgCodeCertOCRRequest,
199
+ RecognizeFormulaOCRRequest,
196
200
  FlightInvoiceOCRResponse,
197
201
  ShipInvoiceOCRResponse,
198
202
  ReconstructDocumentRequest,
@@ -210,7 +214,6 @@ import {
210
214
  NonTaxIncomeBill,
211
215
  VerifyOfdVatInvoiceOCRRequest,
212
216
  FinanBillSliceOCRRequest,
213
- RecognizeGeneralCardWarnResponse,
214
217
  ClassifyStoreNameResponse,
215
218
  VatRollInvoiceOCRRequest,
216
219
  AirTransport,
@@ -234,7 +237,7 @@ import {
234
237
  DutyPaidProofOCRRequest,
235
238
  RecognizeHealthCodeOCRResponse,
236
239
  LineInfo,
237
- GeneralCardWarnInfo,
240
+ RecognizeEncryptedIDCardOCRRequest,
238
241
  TollInvoice,
239
242
  ItemCoord,
240
243
  CreateAIFormTaskResponse,
@@ -254,6 +257,7 @@ import {
254
257
  GetTaskStateResponse,
255
258
  InsuranceBillInfo,
256
259
  ContentInfo,
260
+ QuestionOCRRequest,
257
261
  GetTaskStateRequest,
258
262
  TextTractorVehicleBack,
259
263
  RecognizeMedicalInvoiceOCRRequest,
@@ -275,6 +279,7 @@ import {
275
279
  MainlandPermitOCRResponse,
276
280
  VatInvoice,
277
281
  MLIDCardOCRRequest,
282
+ QuestionInfo,
278
283
  TaxiTicket,
279
284
  EnglishOCRResponse,
280
285
  ImageCoordinates,
@@ -297,6 +302,7 @@ import {
297
302
  TableOCRResponse,
298
303
  DetectedWordCoordPoint,
299
304
  QuestionBlockObj,
305
+ Element,
300
306
  AdvertiseOCRResponse,
301
307
  VehicleLicenseOCRRequest,
302
308
  VatRollInvoiceInfo,
@@ -313,10 +319,11 @@ import {
313
319
  EstateCertOCRRequest,
314
320
  PermanentResidencePermitInfo,
315
321
  BizLicenseOCRResponse,
316
- TableOCRRequest,
322
+ ResultList,
317
323
  VatInvoiceOCRResponse,
318
324
  QuotaInvoiceOCRRequest,
319
325
  BankCardOCRResponse,
326
+ TableOCRRequest,
320
327
  BusinessCardOCRRequest,
321
328
  FinanBillOCRRequest,
322
329
  QuotaInvoiceOCRResponse,
@@ -336,6 +343,18 @@ export class Client extends AbstractClient {
336
343
  super("ocr.tencentcloudapi.com", "2018-11-19", clientConfig)
337
344
  }
338
345
 
346
+ /**
347
+ * 题目识别是教育的基础OCR识别能力。可支持扫描、拍照场景的单题题目识别。接口支持印刷体文本、手写体文本及公式的OCR识别和坐标返回,此外,接口还可对题目中的配图位置进行检测并返回坐标位置。适用于智能批改等场景的题目内容识别作为检索输入。
348
+
349
+ 默认接口请求频率限制:2次/秒。
350
+ */
351
+ async QuestionOCR(
352
+ req: QuestionOCRRequest,
353
+ cb?: (error: string, rep: QuestionOCRResponse) => void
354
+ ): Promise<QuestionOCRResponse> {
355
+ return this.request("QuestionOCR", req, cb)
356
+ }
357
+
339
358
  /**
340
359
  * 本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
341
360
 
@@ -671,15 +690,13 @@ export class Client extends AbstractClient {
671
690
  }
672
691
 
673
692
  /**
674
- * 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
675
-
676
- 默认接口请求频率限制:5次/秒。
677
- */
678
- async DutyPaidProofOCR(
679
- req: DutyPaidProofOCRRequest,
680
- cb?: (error: string, rep: DutyPaidProofOCRResponse) => void
681
- ): Promise<DutyPaidProofOCRResponse> {
682
- return this.request("DutyPaidProofOCR", req, cb)
693
+ * 外国人永久居留身份证识别
694
+ */
695
+ async RecognizeForeignPermanentResidentIdCard(
696
+ req: RecognizeForeignPermanentResidentIdCardRequest,
697
+ cb?: (error: string, rep: RecognizeForeignPermanentResidentIdCardResponse) => void
698
+ ): Promise<RecognizeForeignPermanentResidentIdCardResponse> {
699
+ return this.request("RecognizeForeignPermanentResidentIdCard", req, cb)
683
700
  }
684
701
 
685
702
  /**
@@ -957,16 +974,6 @@ export class Client extends AbstractClient {
957
974
  return this.request("GetTaskState", req, cb)
958
975
  }
959
976
 
960
- /**
961
- * 支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
962
- */
963
- async RecognizeGeneralCardWarn(
964
- req: RecognizeGeneralCardWarnRequest,
965
- cb?: (error: string, rep: RecognizeGeneralCardWarnResponse) => void
966
- ): Promise<RecognizeGeneralCardWarnResponse> {
967
- return this.request("RecognizeGeneralCardWarn", req, cb)
968
- }
969
-
970
977
  /**
971
978
  * 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
972
979
 
@@ -1411,6 +1418,18 @@ export class Client extends AbstractClient {
1411
1418
  return this.request("ClassifyDetectOCR", req, cb)
1412
1419
  }
1413
1420
 
1421
+ /**
1422
+ * 公式识别是教育的基础OCR识别能力,可支持理科(数学、物理、化学、生物)的印刷体和手写体的公式识别。
1423
+
1424
+ 默认接口请求频率限制:2次/秒。
1425
+ */
1426
+ async RecognizeFormulaOCR(
1427
+ req: RecognizeFormulaOCRRequest,
1428
+ cb?: (error: string, rep: RecognizeFormulaOCRResponse) => void
1429
+ ): Promise<RecognizeFormulaOCRResponse> {
1430
+ return this.request("RecognizeFormulaOCR", req, cb)
1431
+ }
1432
+
1414
1433
  /**
1415
1434
  * 本接口支持各类印章主体内容、印章其他内容及形状识别,支持单图多印章识别,包括发票章、财务章等,适用于公文票据等场景。
1416
1435
 
@@ -1537,6 +1556,18 @@ export class Client extends AbstractClient {
1537
1556
  return this.request("ImageEnhancement", req, cb)
1538
1557
  }
1539
1558
 
1559
+ /**
1560
+ * 试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。
1561
+
1562
+ 默认接口请求频率限制:2次/秒。
1563
+ */
1564
+ async QuestionSplitOCR(
1565
+ req: QuestionSplitOCRRequest,
1566
+ cb?: (error: string, rep: QuestionSplitOCRResponse) => void
1567
+ ): Promise<QuestionSplitOCRResponse> {
1568
+ return this.request("QuestionSplitOCR", req, cb)
1569
+ }
1570
+
1540
1571
  /**
1541
1572
  * 本接口支持马来西亚身份证识别,识别字段包括身份证号、姓名、性别、地址;具备身份证人像照片的裁剪功能和翻拍、复印件告警功能。
1542
1573
  本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
@@ -1585,13 +1616,15 @@ export class Client extends AbstractClient {
1585
1616
  }
1586
1617
 
1587
1618
  /**
1588
- * 外国人永久居留身份证识别
1589
- */
1590
- async RecognizeForeignPermanentResidentIdCard(
1591
- req: RecognizeForeignPermanentResidentIdCardRequest,
1592
- cb?: (error: string, rep: RecognizeForeignPermanentResidentIdCardResponse) => void
1593
- ): Promise<RecognizeForeignPermanentResidentIdCardResponse> {
1594
- return this.request("RecognizeForeignPermanentResidentIdCard", req, cb)
1619
+ * 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
1620
+
1621
+ 默认接口请求频率限制:5次/秒。
1622
+ */
1623
+ async DutyPaidProofOCR(
1624
+ req: DutyPaidProofOCRRequest,
1625
+ cb?: (error: string, rep: DutyPaidProofOCRResponse) => void
1626
+ ): Promise<DutyPaidProofOCRResponse> {
1627
+ return this.request("DutyPaidProofOCR", req, cb)
1595
1628
  }
1596
1629
 
1597
1630
  /**