@antchain/realperson 1.21.4 → 1.21.20

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/dist/client.d.ts CHANGED
@@ -34,6 +34,55 @@ export declare class Config extends $tea.Model {
34
34
  [key: string]: any;
35
35
  });
36
36
  }
37
+ export declare class OcrLocation extends $tea.Model {
38
+ top?: string;
39
+ left?: string;
40
+ width?: string;
41
+ height?: string;
42
+ static names(): {
43
+ [key: string]: string;
44
+ };
45
+ static types(): {
46
+ [key: string]: any;
47
+ };
48
+ constructor(map?: {
49
+ [key: string]: any;
50
+ });
51
+ }
52
+ export declare class CardQuality extends $tea.Model {
53
+ isClear?: string;
54
+ isClearPropobility?: string;
55
+ isComplete?: string;
56
+ isCompletePropobility?: string;
57
+ isNoCover?: string;
58
+ isNoCoverPropobility?: string;
59
+ static names(): {
60
+ [key: string]: string;
61
+ };
62
+ static types(): {
63
+ [key: string]: any;
64
+ };
65
+ constructor(map?: {
66
+ [key: string]: any;
67
+ });
68
+ }
69
+ export declare class RiskInfo extends $tea.Model {
70
+ copy?: string;
71
+ reshoot?: string;
72
+ imageStatus?: string[];
73
+ riskType?: string[];
74
+ cardQuality?: CardQuality;
75
+ idcardNumberType?: string;
76
+ static names(): {
77
+ [key: string]: string;
78
+ };
79
+ static types(): {
80
+ [key: string]: any;
81
+ };
82
+ constructor(map?: {
83
+ [key: string]: any;
84
+ });
85
+ }
37
86
  export declare class AudioMeta extends $tea.Model {
38
87
  sampleFreq?: number;
39
88
  channelsNum?: number;
@@ -63,6 +112,62 @@ export declare class Audio extends $tea.Model {
63
112
  [key: string]: any;
64
113
  });
65
114
  }
115
+ export declare class OcrInfo extends $tea.Model {
116
+ side?: string;
117
+ photo?: string;
118
+ photoLocation?: OcrLocation;
119
+ cardImage?: string;
120
+ cardLocation?: OcrLocation;
121
+ name?: string;
122
+ sex?: string;
123
+ nationality?: string;
124
+ birth?: string;
125
+ address?: string;
126
+ num?: string;
127
+ startDate?: string;
128
+ endDate?: string;
129
+ issue?: string;
130
+ bankCardType?: string;
131
+ bankName?: string;
132
+ cardNumber?: string;
133
+ validToDate?: string;
134
+ title?: string;
135
+ dateOfExpiry?: string;
136
+ changeNum?: string;
137
+ firstIssue?: string;
138
+ driverClass?: string;
139
+ docNum?: string;
140
+ issueTime?: string;
141
+ currentTime?: string;
142
+ barCode?: string;
143
+ points?: string;
144
+ remark?: string;
145
+ status?: string;
146
+ vehicle?: string;
147
+ model?: string;
148
+ type?: string;
149
+ useage?: string;
150
+ engNum?: string;
151
+ plate?: string;
152
+ inspecRecord?: string;
153
+ load?: string;
154
+ curbMass?: string;
155
+ overallDimension?: string;
156
+ seating?: string;
157
+ grossMass?: string;
158
+ fuel?: string;
159
+ tractionMass?: string;
160
+ chipNum?: string;
161
+ static names(): {
162
+ [key: string]: string;
163
+ };
164
+ static types(): {
165
+ [key: string]: any;
166
+ };
167
+ constructor(map?: {
168
+ [key: string]: any;
169
+ });
170
+ }
66
171
  export declare class XNameValuePair extends $tea.Model {
67
172
  name: string;
68
173
  value: string;
@@ -1609,6 +1714,9 @@ export declare class CreateFaceverifyServerRequest extends $tea.Model {
1609
1714
  userMobile?: string;
1610
1715
  callbackNeedRetry?: string;
1611
1716
  model?: string;
1717
+ fileObject?: Readable;
1718
+ fileObjectName?: string;
1719
+ fileId?: string;
1612
1720
  static names(): {
1613
1721
  [key: string]: string;
1614
1722
  };
@@ -1977,6 +2085,82 @@ export declare class QueryFaceverifyServermaterialResponse extends $tea.Model {
1977
2085
  [key: string]: any;
1978
2086
  });
1979
2087
  }
2088
+ export declare class ScaleinImageRequest extends $tea.Model {
2089
+ authToken?: string;
2090
+ productInstanceId?: string;
2091
+ fileObject?: Readable;
2092
+ fileObjectName?: string;
2093
+ fileId: string;
2094
+ static names(): {
2095
+ [key: string]: string;
2096
+ };
2097
+ static types(): {
2098
+ [key: string]: any;
2099
+ };
2100
+ constructor(map?: {
2101
+ [key: string]: any;
2102
+ });
2103
+ }
2104
+ export declare class ScaleinImageResponse extends $tea.Model {
2105
+ reqMsgId?: string;
2106
+ resultCode?: string;
2107
+ resultMsg?: string;
2108
+ base64?: string;
2109
+ static names(): {
2110
+ [key: string]: string;
2111
+ };
2112
+ static types(): {
2113
+ [key: string]: any;
2114
+ };
2115
+ constructor(map?: {
2116
+ [key: string]: any;
2117
+ });
2118
+ }
2119
+ export declare class RecognizeOcrIndividualcardRequest extends $tea.Model {
2120
+ authToken?: string;
2121
+ productInstanceId?: string;
2122
+ outerOrderNo: string;
2123
+ ocrType: string;
2124
+ dataType: string;
2125
+ dataContent?: string;
2126
+ fileObject?: Readable;
2127
+ fileObjectName?: string;
2128
+ fileId?: string;
2129
+ reqEncType?: string;
2130
+ respEncType?: string;
2131
+ encToken?: string;
2132
+ riskInfoType?: string;
2133
+ returnPhoto?: string;
2134
+ returnImage?: string;
2135
+ externParam?: string;
2136
+ static names(): {
2137
+ [key: string]: string;
2138
+ };
2139
+ static types(): {
2140
+ [key: string]: any;
2141
+ };
2142
+ constructor(map?: {
2143
+ [key: string]: any;
2144
+ });
2145
+ }
2146
+ export declare class RecognizeOcrIndividualcardResponse extends $tea.Model {
2147
+ reqMsgId?: string;
2148
+ resultCode?: string;
2149
+ resultMsg?: string;
2150
+ ocrInfo?: OcrInfo;
2151
+ riskInfo?: RiskInfo;
2152
+ extInfo?: string;
2153
+ ocrInfoEncrypt?: string;
2154
+ static names(): {
2155
+ [key: string]: string;
2156
+ };
2157
+ static types(): {
2158
+ [key: string]: any;
2159
+ };
2160
+ constructor(map?: {
2161
+ [key: string]: any;
2162
+ });
2163
+ }
1980
2164
  export declare class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
1981
2165
  authToken?: string;
1982
2166
  apiCode: string;
@@ -2679,6 +2863,30 @@ export default class Client {
2679
2863
  queryFaceverifyServermaterialEx(request: QueryFaceverifyServermaterialRequest, headers: {
2680
2864
  [key: string]: string;
2681
2865
  }, runtime: $Util.RuntimeOptions): Promise<QueryFaceverifyServermaterialResponse>;
2866
+ /**
2867
+ * Description: 图片压缩接口
2868
+ * Summary: 图片压缩接口
2869
+ */
2870
+ scaleinImage(request: ScaleinImageRequest): Promise<ScaleinImageResponse>;
2871
+ /**
2872
+ * Description: 图片压缩接口
2873
+ * Summary: 图片压缩接口
2874
+ */
2875
+ scaleinImageEx(request: ScaleinImageRequest, headers: {
2876
+ [key: string]: string;
2877
+ }, runtime: $Util.RuntimeOptions): Promise<ScaleinImageResponse>;
2878
+ /**
2879
+ * Description: 要素卡证OCR
2880
+ * Summary: 要素卡证OCR
2881
+ */
2882
+ recognizeOcrIndividualcard(request: RecognizeOcrIndividualcardRequest): Promise<RecognizeOcrIndividualcardResponse>;
2883
+ /**
2884
+ * Description: 要素卡证OCR
2885
+ * Summary: 要素卡证OCR
2886
+ */
2887
+ recognizeOcrIndividualcardEx(request: RecognizeOcrIndividualcardRequest, headers: {
2888
+ [key: string]: string;
2889
+ }, runtime: $Util.RuntimeOptions): Promise<RecognizeOcrIndividualcardResponse>;
2682
2890
  /**
2683
2891
  * Description: 创建HTTP PUT提交的文件上传
2684
2892
  * Summary: 文件上传创建