@antchain/realperson 1.21.4 → 1.21.19

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,85 @@ 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
+ retCode?: string;
2151
+ retCodeSub?: string;
2152
+ retMessageSub?: string;
2153
+ ocrInfo?: OcrInfo;
2154
+ riskInfo?: RiskInfo;
2155
+ extInfo?: string;
2156
+ ocrInfoEncrypt?: string;
2157
+ static names(): {
2158
+ [key: string]: string;
2159
+ };
2160
+ static types(): {
2161
+ [key: string]: any;
2162
+ };
2163
+ constructor(map?: {
2164
+ [key: string]: any;
2165
+ });
2166
+ }
1980
2167
  export declare class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
1981
2168
  authToken?: string;
1982
2169
  apiCode: string;
@@ -2679,6 +2866,30 @@ export default class Client {
2679
2866
  queryFaceverifyServermaterialEx(request: QueryFaceverifyServermaterialRequest, headers: {
2680
2867
  [key: string]: string;
2681
2868
  }, runtime: $Util.RuntimeOptions): Promise<QueryFaceverifyServermaterialResponse>;
2869
+ /**
2870
+ * Description: 图片压缩接口
2871
+ * Summary: 图片压缩接口
2872
+ */
2873
+ scaleinImage(request: ScaleinImageRequest): Promise<ScaleinImageResponse>;
2874
+ /**
2875
+ * Description: 图片压缩接口
2876
+ * Summary: 图片压缩接口
2877
+ */
2878
+ scaleinImageEx(request: ScaleinImageRequest, headers: {
2879
+ [key: string]: string;
2880
+ }, runtime: $Util.RuntimeOptions): Promise<ScaleinImageResponse>;
2881
+ /**
2882
+ * Description: 要素卡证OCR
2883
+ * Summary: 要素卡证OCR
2884
+ */
2885
+ recognizeOcrIndividualcard(request: RecognizeOcrIndividualcardRequest): Promise<RecognizeOcrIndividualcardResponse>;
2886
+ /**
2887
+ * Description: 要素卡证OCR
2888
+ * Summary: 要素卡证OCR
2889
+ */
2890
+ recognizeOcrIndividualcardEx(request: RecognizeOcrIndividualcardRequest, headers: {
2891
+ [key: string]: string;
2892
+ }, runtime: $Util.RuntimeOptions): Promise<RecognizeOcrIndividualcardResponse>;
2682
2893
  /**
2683
2894
  * Description: 创建HTTP PUT提交的文件上传
2684
2895
  * Summary: 文件上传创建