tencentcloud-sdk-nodejs-intl-en 3.0.1438 → 3.0.1439
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/package.json +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/ga2/index.js +3 -0
- package/tencentcloud/ga2/v20250115/ga2_client.js +46 -0
- package/tencentcloud/ga2/v20250115/index.js +4 -0
- package/tencentcloud/ga2/v20250115/models.js +86 -0
- package/tencentcloud/index.js +1 -0
- package/tencentcloud/ocr/v20181119/models.js +456 -192
- package/tencentcloud/ocr/v20181119/ocr_client.js +19 -2
- package/tencentcloud/rce/v20260130/models.js +3846 -202
- package/tencentcloud/rce/v20260130/rce_client.js +65 -8
- package/tencentcloud/tcsas/v20250106/models.js +1809 -360
- package/tencentcloud/tcsas/v20250106/tcsas_client.js +83 -20
|
@@ -653,176 +653,6 @@ ItemNames=["Name","Gender"]
|
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
-
/**
|
|
657
|
-
* RecognizeThaiIDCardOCR response structure.
|
|
658
|
-
* @class
|
|
659
|
-
*/
|
|
660
|
-
class RecognizeThaiIDCardOCRResponse extends AbstractModel {
|
|
661
|
-
constructor(){
|
|
662
|
-
super();
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* ID card number
|
|
666
|
-
* @type {string || null}
|
|
667
|
-
*/
|
|
668
|
-
this.ID = null;
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* Name in Thai
|
|
672
|
-
* @type {string || null}
|
|
673
|
-
*/
|
|
674
|
-
this.ThaiName = null;
|
|
675
|
-
|
|
676
|
-
/**
|
|
677
|
-
* First name in English
|
|
678
|
-
* @type {string || null}
|
|
679
|
-
*/
|
|
680
|
-
this.EnFirstName = null;
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Last name in English
|
|
684
|
-
* @type {string || null}
|
|
685
|
-
*/
|
|
686
|
-
this.EnLastName = null;
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* Date of issue in Thai
|
|
690
|
-
* @type {string || null}
|
|
691
|
-
*/
|
|
692
|
-
this.IssueDate = null;
|
|
693
|
-
|
|
694
|
-
/**
|
|
695
|
-
* Expiration date in Thai
|
|
696
|
-
* @type {string || null}
|
|
697
|
-
*/
|
|
698
|
-
this.ExpirationDate = null;
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* Date of issue in English
|
|
702
|
-
* @type {string || null}
|
|
703
|
-
*/
|
|
704
|
-
this.EnIssueDate = null;
|
|
705
|
-
|
|
706
|
-
/**
|
|
707
|
-
* Expiration date in English
|
|
708
|
-
* @type {string || null}
|
|
709
|
-
*/
|
|
710
|
-
this.EnExpirationDate = null;
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* Date of birth in Thai
|
|
714
|
-
* @type {string || null}
|
|
715
|
-
*/
|
|
716
|
-
this.Birthday = null;
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
* Date of birth in English
|
|
720
|
-
* @type {string || null}
|
|
721
|
-
*/
|
|
722
|
-
this.EnBirthday = null;
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Religion
|
|
726
|
-
* @type {string || null}
|
|
727
|
-
*/
|
|
728
|
-
this.Religion = null;
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* Serial number
|
|
732
|
-
* @type {string || null}
|
|
733
|
-
*/
|
|
734
|
-
this.SerialNumber = null;
|
|
735
|
-
|
|
736
|
-
/**
|
|
737
|
-
* Address
|
|
738
|
-
* @type {string || null}
|
|
739
|
-
*/
|
|
740
|
-
this.Address = null;
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* Laser ID on the back of the card.
|
|
744
|
-
* @type {string || null}
|
|
745
|
-
*/
|
|
746
|
-
this.LaserID = null;
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* Identity photo
|
|
750
|
-
* @type {string || null}
|
|
751
|
-
*/
|
|
752
|
-
this.PortraitImage = null;
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
* Card Warning Information
|
|
756
|
-
|
|
757
|
-
-9101 Alarm for covered certificate,
|
|
758
|
-
-9102 Alarm for photocopied certificate,
|
|
759
|
-
-9103 Alarm for photographed certificate,
|
|
760
|
-
-9104 Alarm for PS certificate,
|
|
761
|
-
-9107 Alarm for reflective certificate,
|
|
762
|
-
-9108 Alarm for blurry image,
|
|
763
|
-
-9109 This capability is not enabled.
|
|
764
|
-
* @type {Array.<number> || null}
|
|
765
|
-
*/
|
|
766
|
-
this.WarnCardInfos = null;
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
* This field is deprecated and will always return "1". Usage is not recommended.
|
|
770
|
-
* @type {string || null}
|
|
771
|
-
*/
|
|
772
|
-
this.AdvancedInfo = null;
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* The number of cards detected in the input image provided via ImageBase64 parameter.(Currently supported only in ap-bangkok region)
|
|
776
|
-
* @type {number || null}
|
|
777
|
-
*/
|
|
778
|
-
this.CardCount = null;
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* The card information field complete or not
|
|
782
|
-
true: complete; false: incomplete
|
|
783
|
-
* @type {boolean || null}
|
|
784
|
-
*/
|
|
785
|
-
this.IsComplete = null;
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
789
|
-
* @type {string || null}
|
|
790
|
-
*/
|
|
791
|
-
this.RequestId = null;
|
|
792
|
-
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* @private
|
|
797
|
-
*/
|
|
798
|
-
deserialize(params) {
|
|
799
|
-
if (!params) {
|
|
800
|
-
return;
|
|
801
|
-
}
|
|
802
|
-
this.ID = 'ID' in params ? params.ID : null;
|
|
803
|
-
this.ThaiName = 'ThaiName' in params ? params.ThaiName : null;
|
|
804
|
-
this.EnFirstName = 'EnFirstName' in params ? params.EnFirstName : null;
|
|
805
|
-
this.EnLastName = 'EnLastName' in params ? params.EnLastName : null;
|
|
806
|
-
this.IssueDate = 'IssueDate' in params ? params.IssueDate : null;
|
|
807
|
-
this.ExpirationDate = 'ExpirationDate' in params ? params.ExpirationDate : null;
|
|
808
|
-
this.EnIssueDate = 'EnIssueDate' in params ? params.EnIssueDate : null;
|
|
809
|
-
this.EnExpirationDate = 'EnExpirationDate' in params ? params.EnExpirationDate : null;
|
|
810
|
-
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
811
|
-
this.EnBirthday = 'EnBirthday' in params ? params.EnBirthday : null;
|
|
812
|
-
this.Religion = 'Religion' in params ? params.Religion : null;
|
|
813
|
-
this.SerialNumber = 'SerialNumber' in params ? params.SerialNumber : null;
|
|
814
|
-
this.Address = 'Address' in params ? params.Address : null;
|
|
815
|
-
this.LaserID = 'LaserID' in params ? params.LaserID : null;
|
|
816
|
-
this.PortraitImage = 'PortraitImage' in params ? params.PortraitImage : null;
|
|
817
|
-
this.WarnCardInfos = 'WarnCardInfos' in params ? params.WarnCardInfos : null;
|
|
818
|
-
this.AdvancedInfo = 'AdvancedInfo' in params ? params.AdvancedInfo : null;
|
|
819
|
-
this.CardCount = 'CardCount' in params ? params.CardCount : null;
|
|
820
|
-
this.IsComplete = 'IsComplete' in params ? params.IsComplete : null;
|
|
821
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
822
|
-
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
|
|
826
656
|
/**
|
|
827
657
|
* RecognizeBrazilCommonOCR response structure.
|
|
828
658
|
* @class
|
|
@@ -2674,6 +2504,95 @@ class GeneralAccurateOCRResponse extends AbstractModel {
|
|
|
2674
2504
|
}
|
|
2675
2505
|
}
|
|
2676
2506
|
|
|
2507
|
+
/**
|
|
2508
|
+
* HmtResidentPermitOCR request structure.
|
|
2509
|
+
* @class
|
|
2510
|
+
*/
|
|
2511
|
+
class HmtResidentPermitOCRRequest extends AbstractModel {
|
|
2512
|
+
constructor(){
|
|
2513
|
+
super();
|
|
2514
|
+
|
|
2515
|
+
/**
|
|
2516
|
+
* <p>Base64 value of the image. Supported image formats: PNG, JPG, JPEG. GIF format is not currently supported. Supported image size: no more than 7M after the downloaded image is Base64-encoded. The image download must complete within 3 seconds.Either ImageUrl or ImageBase64 must be provided. If both are provided, only ImageUrl is used.</p>
|
|
2517
|
+
* @type {string || null}
|
|
2518
|
+
*/
|
|
2519
|
+
this.ImageBase64 = null;
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* <p>Image URL.Supported image formats: PNG, JPG, JPEG. GIF format is not currently supported. Supported image size: no more than 7M after Base64 encoding. Image download time no more than 3 seconds. URLs stored in Tencent Cloud guarantee higher download speed and stability. It is recommended to store images in Tencent Cloud. Speed and stability may be impacted for URLs not stored in Tencent Cloud.</p>
|
|
2523
|
+
* @type {string || null}
|
|
2524
|
+
*/
|
|
2525
|
+
this.ImageUrl = null;
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
* <p>FRONT: the side with a photo (portrait side),<br>BACK: the side without a photo (national emblem side),<br>if this parameter is left empty or incorrect, the front or back side is automatically determined for you.</p>
|
|
2529
|
+
* @type {string || null}
|
|
2530
|
+
*/
|
|
2531
|
+
this.CardSide = null;
|
|
2532
|
+
|
|
2533
|
+
/**
|
|
2534
|
+
* Whether to return the portrait image and position coordinates
|
|
2535
|
+
* @type {boolean || null}
|
|
2536
|
+
*/
|
|
2537
|
+
this.CropPortrait = null;
|
|
2538
|
+
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* @private
|
|
2543
|
+
*/
|
|
2544
|
+
deserialize(params) {
|
|
2545
|
+
if (!params) {
|
|
2546
|
+
return;
|
|
2547
|
+
}
|
|
2548
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
2549
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
2550
|
+
this.CardSide = 'CardSide' in params ? params.CardSide : null;
|
|
2551
|
+
this.CropPortrait = 'CropPortrait' in params ? params.CropPortrait : null;
|
|
2552
|
+
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* Avatar photo and coordinates
|
|
2558
|
+
* @class
|
|
2559
|
+
*/
|
|
2560
|
+
class PortraitImageInfo extends AbstractModel {
|
|
2561
|
+
constructor(){
|
|
2562
|
+
super();
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* <p>Avatar</p>
|
|
2566
|
+
* @type {string || null}
|
|
2567
|
+
*/
|
|
2568
|
+
this.PortraitImage = null;
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* <p>Avatar coordinate</p>
|
|
2572
|
+
* @type {ImageCoordinates || null}
|
|
2573
|
+
*/
|
|
2574
|
+
this.ImageCoordinates = null;
|
|
2575
|
+
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* @private
|
|
2580
|
+
*/
|
|
2581
|
+
deserialize(params) {
|
|
2582
|
+
if (!params) {
|
|
2583
|
+
return;
|
|
2584
|
+
}
|
|
2585
|
+
this.PortraitImage = 'PortraitImage' in params ? params.PortraitImage : null;
|
|
2586
|
+
|
|
2587
|
+
if (params.ImageCoordinates) {
|
|
2588
|
+
let obj = new ImageCoordinates();
|
|
2589
|
+
obj.deserialize(params.ImageCoordinates)
|
|
2590
|
+
this.ImageCoordinates = obj;
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2677
2596
|
/**
|
|
2678
2597
|
* GeneralBasicOCR response structure.
|
|
2679
2598
|
* @class
|
|
@@ -2745,32 +2664,142 @@ class GeneralBasicOCRResponse extends AbstractModel {
|
|
|
2745
2664
|
}
|
|
2746
2665
|
}
|
|
2747
2666
|
|
|
2748
|
-
/**
|
|
2749
|
-
*
|
|
2750
|
-
* @class
|
|
2751
|
-
*/
|
|
2752
|
-
class
|
|
2753
|
-
constructor(){
|
|
2754
|
-
super();
|
|
2667
|
+
/**
|
|
2668
|
+
* RecognizeThaiIDCardOCR response structure.
|
|
2669
|
+
* @class
|
|
2670
|
+
*/
|
|
2671
|
+
class RecognizeThaiIDCardOCRResponse extends AbstractModel {
|
|
2672
|
+
constructor(){
|
|
2673
|
+
super();
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* ID card number
|
|
2677
|
+
* @type {string || null}
|
|
2678
|
+
*/
|
|
2679
|
+
this.ID = null;
|
|
2680
|
+
|
|
2681
|
+
/**
|
|
2682
|
+
* Name in Thai
|
|
2683
|
+
* @type {string || null}
|
|
2684
|
+
*/
|
|
2685
|
+
this.ThaiName = null;
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* First name in English
|
|
2689
|
+
* @type {string || null}
|
|
2690
|
+
*/
|
|
2691
|
+
this.EnFirstName = null;
|
|
2692
|
+
|
|
2693
|
+
/**
|
|
2694
|
+
* Last name in English
|
|
2695
|
+
* @type {string || null}
|
|
2696
|
+
*/
|
|
2697
|
+
this.EnLastName = null;
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* Date of issue in Thai
|
|
2701
|
+
* @type {string || null}
|
|
2702
|
+
*/
|
|
2703
|
+
this.IssueDate = null;
|
|
2704
|
+
|
|
2705
|
+
/**
|
|
2706
|
+
* Expiration date in Thai
|
|
2707
|
+
* @type {string || null}
|
|
2708
|
+
*/
|
|
2709
|
+
this.ExpirationDate = null;
|
|
2710
|
+
|
|
2711
|
+
/**
|
|
2712
|
+
* Date of issue in English
|
|
2713
|
+
* @type {string || null}
|
|
2714
|
+
*/
|
|
2715
|
+
this.EnIssueDate = null;
|
|
2716
|
+
|
|
2717
|
+
/**
|
|
2718
|
+
* Expiration date in English
|
|
2719
|
+
* @type {string || null}
|
|
2720
|
+
*/
|
|
2721
|
+
this.EnExpirationDate = null;
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* Date of birth in Thai
|
|
2725
|
+
* @type {string || null}
|
|
2726
|
+
*/
|
|
2727
|
+
this.Birthday = null;
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* Date of birth in English
|
|
2731
|
+
* @type {string || null}
|
|
2732
|
+
*/
|
|
2733
|
+
this.EnBirthday = null;
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
* Religion
|
|
2737
|
+
* @type {string || null}
|
|
2738
|
+
*/
|
|
2739
|
+
this.Religion = null;
|
|
2740
|
+
|
|
2741
|
+
/**
|
|
2742
|
+
* Serial number
|
|
2743
|
+
* @type {string || null}
|
|
2744
|
+
*/
|
|
2745
|
+
this.SerialNumber = null;
|
|
2746
|
+
|
|
2747
|
+
/**
|
|
2748
|
+
* Address
|
|
2749
|
+
* @type {string || null}
|
|
2750
|
+
*/
|
|
2751
|
+
this.Address = null;
|
|
2752
|
+
|
|
2753
|
+
/**
|
|
2754
|
+
* Laser ID on the back of the card.
|
|
2755
|
+
* @type {string || null}
|
|
2756
|
+
*/
|
|
2757
|
+
this.LaserID = null;
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
* Identity photo
|
|
2761
|
+
* @type {string || null}
|
|
2762
|
+
*/
|
|
2763
|
+
this.PortraitImage = null;
|
|
2764
|
+
|
|
2765
|
+
/**
|
|
2766
|
+
* Card Warning Information
|
|
2767
|
+
|
|
2768
|
+
-9101 Alarm for covered certificate
|
|
2769
|
+
-9102 Alarm for photocopied certificate
|
|
2770
|
+
-9103 Alarm for photographed certificate
|
|
2771
|
+
-9104 Alarm for tamper certificate
|
|
2772
|
+
-9107 Alarm for reflective certificate
|
|
2773
|
+
-9108 Alarm for blurry certificate
|
|
2774
|
+
-9109 This capability is not enabled. Please contact customer support to activate the alert service
|
|
2775
|
+
* @type {Array.<number> || null}
|
|
2776
|
+
*/
|
|
2777
|
+
this.WarnCardInfos = null;
|
|
2755
2778
|
|
|
2756
2779
|
/**
|
|
2757
|
-
*
|
|
2758
|
-
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
2759
|
-
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
2760
|
-
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
|
|
2780
|
+
* This field is deprecated and will always return "1". Usage is not recommended.
|
|
2761
2781
|
* @type {string || null}
|
|
2762
2782
|
*/
|
|
2763
|
-
this.
|
|
2783
|
+
this.AdvancedInfo = null;
|
|
2764
2784
|
|
|
2765
2785
|
/**
|
|
2766
|
-
* The
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2786
|
+
* The number of cards detected in the input image provided via ImageBase64 parameter.(Currently supported only in ap-bangkok region)
|
|
2787
|
+
* @type {number || null}
|
|
2788
|
+
*/
|
|
2789
|
+
this.CardCount = null;
|
|
2790
|
+
|
|
2791
|
+
/**
|
|
2792
|
+
* The card information field complete or not
|
|
2793
|
+
true: complete; false: incomplete
|
|
2794
|
+
* @type {boolean || null}
|
|
2795
|
+
*/
|
|
2796
|
+
this.IsComplete = null;
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2771
2800
|
* @type {string || null}
|
|
2772
2801
|
*/
|
|
2773
|
-
this.
|
|
2802
|
+
this.RequestId = null;
|
|
2774
2803
|
|
|
2775
2804
|
}
|
|
2776
2805
|
|
|
@@ -2781,8 +2810,26 @@ The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
|
2781
2810
|
if (!params) {
|
|
2782
2811
|
return;
|
|
2783
2812
|
}
|
|
2784
|
-
this.
|
|
2785
|
-
this.
|
|
2813
|
+
this.ID = 'ID' in params ? params.ID : null;
|
|
2814
|
+
this.ThaiName = 'ThaiName' in params ? params.ThaiName : null;
|
|
2815
|
+
this.EnFirstName = 'EnFirstName' in params ? params.EnFirstName : null;
|
|
2816
|
+
this.EnLastName = 'EnLastName' in params ? params.EnLastName : null;
|
|
2817
|
+
this.IssueDate = 'IssueDate' in params ? params.IssueDate : null;
|
|
2818
|
+
this.ExpirationDate = 'ExpirationDate' in params ? params.ExpirationDate : null;
|
|
2819
|
+
this.EnIssueDate = 'EnIssueDate' in params ? params.EnIssueDate : null;
|
|
2820
|
+
this.EnExpirationDate = 'EnExpirationDate' in params ? params.EnExpirationDate : null;
|
|
2821
|
+
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
2822
|
+
this.EnBirthday = 'EnBirthday' in params ? params.EnBirthday : null;
|
|
2823
|
+
this.Religion = 'Religion' in params ? params.Religion : null;
|
|
2824
|
+
this.SerialNumber = 'SerialNumber' in params ? params.SerialNumber : null;
|
|
2825
|
+
this.Address = 'Address' in params ? params.Address : null;
|
|
2826
|
+
this.LaserID = 'LaserID' in params ? params.LaserID : null;
|
|
2827
|
+
this.PortraitImage = 'PortraitImage' in params ? params.PortraitImage : null;
|
|
2828
|
+
this.WarnCardInfos = 'WarnCardInfos' in params ? params.WarnCardInfos : null;
|
|
2829
|
+
this.AdvancedInfo = 'AdvancedInfo' in params ? params.AdvancedInfo : null;
|
|
2830
|
+
this.CardCount = 'CardCount' in params ? params.CardCount : null;
|
|
2831
|
+
this.IsComplete = 'IsComplete' in params ? params.IsComplete : null;
|
|
2832
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2786
2833
|
|
|
2787
2834
|
}
|
|
2788
2835
|
}
|
|
@@ -5973,6 +6020,177 @@ Note: Only supported for the back side of the Mainland Travel Permit for Hong Ko
|
|
|
5973
6020
|
}
|
|
5974
6021
|
}
|
|
5975
6022
|
|
|
6023
|
+
/**
|
|
6024
|
+
* HmtResidentPermitOCR response structure.
|
|
6025
|
+
* @class
|
|
6026
|
+
*/
|
|
6027
|
+
class HmtResidentPermitOCRResponse extends AbstractModel {
|
|
6028
|
+
constructor(){
|
|
6029
|
+
super();
|
|
6030
|
+
|
|
6031
|
+
/**
|
|
6032
|
+
* <p>Name on the document</p>
|
|
6033
|
+
* @type {string || null}
|
|
6034
|
+
*/
|
|
6035
|
+
this.Name = null;
|
|
6036
|
+
|
|
6037
|
+
/**
|
|
6038
|
+
* <p>Gender</p>
|
|
6039
|
+
* @type {string || null}
|
|
6040
|
+
*/
|
|
6041
|
+
this.Sex = null;
|
|
6042
|
+
|
|
6043
|
+
/**
|
|
6044
|
+
* <p>Date of birth</p>
|
|
6045
|
+
* @type {string || null}
|
|
6046
|
+
*/
|
|
6047
|
+
this.Birth = null;
|
|
6048
|
+
|
|
6049
|
+
/**
|
|
6050
|
+
* <p>Address</p>
|
|
6051
|
+
* @type {string || null}
|
|
6052
|
+
*/
|
|
6053
|
+
this.Address = null;
|
|
6054
|
+
|
|
6055
|
+
/**
|
|
6056
|
+
* <p>Identity card number</p>
|
|
6057
|
+
* @type {string || null}
|
|
6058
|
+
*/
|
|
6059
|
+
this.IdCardNo = null;
|
|
6060
|
+
|
|
6061
|
+
/**
|
|
6062
|
+
* <p>0-Front<br>1-Back</p>
|
|
6063
|
+
* @type {number || null}
|
|
6064
|
+
*/
|
|
6065
|
+
this.CardType = null;
|
|
6066
|
+
|
|
6067
|
+
/**
|
|
6068
|
+
* <p>Document validity period</p>
|
|
6069
|
+
* @type {string || null}
|
|
6070
|
+
*/
|
|
6071
|
+
this.ValidDate = null;
|
|
6072
|
+
|
|
6073
|
+
/**
|
|
6074
|
+
* <p>Issuing authority</p>
|
|
6075
|
+
* @type {string || null}
|
|
6076
|
+
*/
|
|
6077
|
+
this.Authority = null;
|
|
6078
|
+
|
|
6079
|
+
/**
|
|
6080
|
+
* <p>Number of issuances</p>
|
|
6081
|
+
* @type {string || null}
|
|
6082
|
+
*/
|
|
6083
|
+
this.VisaNum = null;
|
|
6084
|
+
|
|
6085
|
+
/**
|
|
6086
|
+
* Travel permit number
|
|
6087
|
+
* @type {string || null}
|
|
6088
|
+
*/
|
|
6089
|
+
this.PassNo = null;
|
|
6090
|
+
|
|
6091
|
+
/**
|
|
6092
|
+
* Portrait image and coordinate information
|
|
6093
|
+
* @type {PortraitImageInfo || null}
|
|
6094
|
+
*/
|
|
6095
|
+
this.PortraitImageInfo = null;
|
|
6096
|
+
|
|
6097
|
+
/**
|
|
6098
|
+
* Card Warning Information
|
|
6099
|
+
|
|
6100
|
+
-9102 Alarm for photocopied certificate
|
|
6101
|
+
-9103 Alarm for photographed certificate
|
|
6102
|
+
-9104 Alarm for tamper certificate
|
|
6103
|
+
-9109 This capability is not enabled. Please contact customer support to activate the alert service
|
|
6104
|
+
* @type {Array.<number> || null}
|
|
6105
|
+
*/
|
|
6106
|
+
this.WarnCardInfos = null;
|
|
6107
|
+
|
|
6108
|
+
/**
|
|
6109
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
6110
|
+
* @type {string || null}
|
|
6111
|
+
*/
|
|
6112
|
+
this.RequestId = null;
|
|
6113
|
+
|
|
6114
|
+
}
|
|
6115
|
+
|
|
6116
|
+
/**
|
|
6117
|
+
* @private
|
|
6118
|
+
*/
|
|
6119
|
+
deserialize(params) {
|
|
6120
|
+
if (!params) {
|
|
6121
|
+
return;
|
|
6122
|
+
}
|
|
6123
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
6124
|
+
this.Sex = 'Sex' in params ? params.Sex : null;
|
|
6125
|
+
this.Birth = 'Birth' in params ? params.Birth : null;
|
|
6126
|
+
this.Address = 'Address' in params ? params.Address : null;
|
|
6127
|
+
this.IdCardNo = 'IdCardNo' in params ? params.IdCardNo : null;
|
|
6128
|
+
this.CardType = 'CardType' in params ? params.CardType : null;
|
|
6129
|
+
this.ValidDate = 'ValidDate' in params ? params.ValidDate : null;
|
|
6130
|
+
this.Authority = 'Authority' in params ? params.Authority : null;
|
|
6131
|
+
this.VisaNum = 'VisaNum' in params ? params.VisaNum : null;
|
|
6132
|
+
this.PassNo = 'PassNo' in params ? params.PassNo : null;
|
|
6133
|
+
|
|
6134
|
+
if (params.PortraitImageInfo) {
|
|
6135
|
+
let obj = new PortraitImageInfo();
|
|
6136
|
+
obj.deserialize(params.PortraitImageInfo)
|
|
6137
|
+
this.PortraitImageInfo = obj;
|
|
6138
|
+
}
|
|
6139
|
+
this.WarnCardInfos = 'WarnCardInfos' in params ? params.WarnCardInfos : null;
|
|
6140
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
6141
|
+
|
|
6142
|
+
}
|
|
6143
|
+
}
|
|
6144
|
+
|
|
6145
|
+
/**
|
|
6146
|
+
* Avatar position coordinates
|
|
6147
|
+
* @class
|
|
6148
|
+
*/
|
|
6149
|
+
class ImageCoordinates extends AbstractModel {
|
|
6150
|
+
constructor(){
|
|
6151
|
+
super();
|
|
6152
|
+
|
|
6153
|
+
/**
|
|
6154
|
+
* <p>Top-left horizontal coordinate of the avatar</p>
|
|
6155
|
+
* @type {number || null}
|
|
6156
|
+
*/
|
|
6157
|
+
this.X = null;
|
|
6158
|
+
|
|
6159
|
+
/**
|
|
6160
|
+
* <p>Top-left vertical coordinate of the avatar</p>
|
|
6161
|
+
* @type {number || null}
|
|
6162
|
+
*/
|
|
6163
|
+
this.Y = null;
|
|
6164
|
+
|
|
6165
|
+
/**
|
|
6166
|
+
* <p>Avatar frame width.</p><p>Unit: px.</p>
|
|
6167
|
+
* @type {number || null}
|
|
6168
|
+
*/
|
|
6169
|
+
this.Width = null;
|
|
6170
|
+
|
|
6171
|
+
/**
|
|
6172
|
+
* <p>Avatar frame height.</p><p>Unit: px.</p>
|
|
6173
|
+
* @type {number || null}
|
|
6174
|
+
*/
|
|
6175
|
+
this.Height = null;
|
|
6176
|
+
|
|
6177
|
+
}
|
|
6178
|
+
|
|
6179
|
+
/**
|
|
6180
|
+
* @private
|
|
6181
|
+
*/
|
|
6182
|
+
deserialize(params) {
|
|
6183
|
+
if (!params) {
|
|
6184
|
+
return;
|
|
6185
|
+
}
|
|
6186
|
+
this.X = 'X' in params ? params.X : null;
|
|
6187
|
+
this.Y = 'Y' in params ? params.Y : null;
|
|
6188
|
+
this.Width = 'Width' in params ? params.Width : null;
|
|
6189
|
+
this.Height = 'Height' in params ? params.Height : null;
|
|
6190
|
+
|
|
6191
|
+
}
|
|
6192
|
+
}
|
|
6193
|
+
|
|
5976
6194
|
/**
|
|
5977
6195
|
* RecognizeMexicoVTID request structure.
|
|
5978
6196
|
* @class
|
|
@@ -6485,6 +6703,48 @@ class AnalyzedLog extends AbstractModel {
|
|
|
6485
6703
|
}
|
|
6486
6704
|
}
|
|
6487
6705
|
|
|
6706
|
+
/**
|
|
6707
|
+
* VinOCR request structure.
|
|
6708
|
+
* @class
|
|
6709
|
+
*/
|
|
6710
|
+
class VinOCRRequest extends AbstractModel {
|
|
6711
|
+
constructor(){
|
|
6712
|
+
super();
|
|
6713
|
+
|
|
6714
|
+
/**
|
|
6715
|
+
* The Base64-encoded value of the image.
|
|
6716
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
6717
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
6718
|
+
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
|
|
6719
|
+
* @type {string || null}
|
|
6720
|
+
*/
|
|
6721
|
+
this.ImageBase64 = null;
|
|
6722
|
+
|
|
6723
|
+
/**
|
|
6724
|
+
* The URL of the image.
|
|
6725
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
6726
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
6727
|
+
We recommend that you store the image in Tencent Cloud for higher download speed and stability.
|
|
6728
|
+
The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
6729
|
+
* @type {string || null}
|
|
6730
|
+
*/
|
|
6731
|
+
this.ImageUrl = null;
|
|
6732
|
+
|
|
6733
|
+
}
|
|
6734
|
+
|
|
6735
|
+
/**
|
|
6736
|
+
* @private
|
|
6737
|
+
*/
|
|
6738
|
+
deserialize(params) {
|
|
6739
|
+
if (!params) {
|
|
6740
|
+
return;
|
|
6741
|
+
}
|
|
6742
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
6743
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
6744
|
+
|
|
6745
|
+
}
|
|
6746
|
+
}
|
|
6747
|
+
|
|
6488
6748
|
/**
|
|
6489
6749
|
* BrazilRNEInfo
|
|
6490
6750
|
* @class
|
|
@@ -7341,7 +7601,6 @@ module.exports = {
|
|
|
7341
7601
|
MLIDPassportOCRRequest: MLIDPassportOCRRequest,
|
|
7342
7602
|
ItemInfo: ItemInfo,
|
|
7343
7603
|
SmartStructuralOCRV2Request: SmartStructuralOCRV2Request,
|
|
7344
|
-
RecognizeThaiIDCardOCRResponse: RecognizeThaiIDCardOCRResponse,
|
|
7345
7604
|
RecognizeBrazilCommonOCRResponse: RecognizeBrazilCommonOCRResponse,
|
|
7346
7605
|
RecognizeMacaoIDCardOCRResponse: RecognizeMacaoIDCardOCRResponse,
|
|
7347
7606
|
GetCardVerificationExternalResultResponse: GetCardVerificationExternalResultResponse,
|
|
@@ -7364,8 +7623,10 @@ module.exports = {
|
|
|
7364
7623
|
LineInfo: LineInfo,
|
|
7365
7624
|
BrazilDriverLicenseInfo: BrazilDriverLicenseInfo,
|
|
7366
7625
|
GeneralAccurateOCRResponse: GeneralAccurateOCRResponse,
|
|
7626
|
+
HmtResidentPermitOCRRequest: HmtResidentPermitOCRRequest,
|
|
7627
|
+
PortraitImageInfo: PortraitImageInfo,
|
|
7367
7628
|
GeneralBasicOCRResponse: GeneralBasicOCRResponse,
|
|
7368
|
-
|
|
7629
|
+
RecognizeThaiIDCardOCRResponse: RecognizeThaiIDCardOCRResponse,
|
|
7369
7630
|
RecognizePhilippinesUMIDOCRRequest: RecognizePhilippinesUMIDOCRRequest,
|
|
7370
7631
|
RecognizePhilippinesSssIDOCRRequest: RecognizePhilippinesSssIDOCRRequest,
|
|
7371
7632
|
Key: Key,
|
|
@@ -7404,6 +7665,8 @@ module.exports = {
|
|
|
7404
7665
|
SmartStructuralOCRV2Response: SmartStructuralOCRV2Response,
|
|
7405
7666
|
RecognizeMainlandIDCardOCRResponse: RecognizeMainlandIDCardOCRResponse,
|
|
7406
7667
|
MainlandPermitOCRResponse: MainlandPermitOCRResponse,
|
|
7668
|
+
HmtResidentPermitOCRResponse: HmtResidentPermitOCRResponse,
|
|
7669
|
+
ImageCoordinates: ImageCoordinates,
|
|
7407
7670
|
RecognizeMexicoVTIDRequest: RecognizeMexicoVTIDRequest,
|
|
7408
7671
|
PODAuditAIResponse: PODAuditAIResponse,
|
|
7409
7672
|
MainlandTravelPermitBackInfos: MainlandTravelPermitBackInfos,
|
|
@@ -7412,6 +7675,7 @@ module.exports = {
|
|
|
7412
7675
|
BrazilCardInfo: BrazilCardInfo,
|
|
7413
7676
|
RecognizeIndonesiaIDCardOCRRequest: RecognizeIndonesiaIDCardOCRRequest,
|
|
7414
7677
|
AnalyzedLog: AnalyzedLog,
|
|
7678
|
+
VinOCRRequest: VinOCRRequest,
|
|
7415
7679
|
BrazilRNEInfo: BrazilRNEInfo,
|
|
7416
7680
|
MLIDCardOCRResponse: MLIDCardOCRResponse,
|
|
7417
7681
|
RecognizePhilippinesTinIDOCRRequest: RecognizePhilippinesTinIDOCRRequest,
|