@antchain/realperson 1.22.45 → 1.23.3
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 +215 -0
- package/dist/client.js +198 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +405 -1
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1625,6 +1625,144 @@ export class OcrInfo extends $tea.Model {
|
|
|
1625
1625
|
* 50027372380230106
|
|
1626
1626
|
*/
|
|
1627
1627
|
chipNum?: string;
|
|
1628
|
+
// 证件类别
|
|
1629
|
+
/**
|
|
1630
|
+
* @example
|
|
1631
|
+
* P
|
|
1632
|
+
*/
|
|
1633
|
+
passportType?: string;
|
|
1634
|
+
// 姓
|
|
1635
|
+
/**
|
|
1636
|
+
* @example
|
|
1637
|
+
* 张
|
|
1638
|
+
*/
|
|
1639
|
+
surname?: string;
|
|
1640
|
+
// 名
|
|
1641
|
+
/**
|
|
1642
|
+
* @example
|
|
1643
|
+
* 三
|
|
1644
|
+
*/
|
|
1645
|
+
givenName?: string;
|
|
1646
|
+
// 护照号码
|
|
1647
|
+
/**
|
|
1648
|
+
* @example
|
|
1649
|
+
* L12880801
|
|
1650
|
+
*/
|
|
1651
|
+
passportNumber?: string;
|
|
1652
|
+
// 英文姓名
|
|
1653
|
+
/**
|
|
1654
|
+
* @example
|
|
1655
|
+
* ZHENGJIAN
|
|
1656
|
+
*/
|
|
1657
|
+
nameEn?: string;
|
|
1658
|
+
// 英文出生地
|
|
1659
|
+
/**
|
|
1660
|
+
* @example
|
|
1661
|
+
* GUANGDONG
|
|
1662
|
+
*/
|
|
1663
|
+
birthPlaceEn?: string;
|
|
1664
|
+
// 非英文出生地
|
|
1665
|
+
/**
|
|
1666
|
+
* @example
|
|
1667
|
+
* 广东
|
|
1668
|
+
*/
|
|
1669
|
+
birthPlace?: string;
|
|
1670
|
+
// 国籍
|
|
1671
|
+
/**
|
|
1672
|
+
* @example
|
|
1673
|
+
* CHINESE
|
|
1674
|
+
*/
|
|
1675
|
+
country?: string;
|
|
1676
|
+
// 出生日期
|
|
1677
|
+
/**
|
|
1678
|
+
* @example
|
|
1679
|
+
* 850320
|
|
1680
|
+
*/
|
|
1681
|
+
birthDate?: string;
|
|
1682
|
+
// 出生日期(年月日)
|
|
1683
|
+
/**
|
|
1684
|
+
* @example
|
|
1685
|
+
* 1985年03月20日
|
|
1686
|
+
*/
|
|
1687
|
+
birthDateYmd?: string;
|
|
1688
|
+
// 签发日期
|
|
1689
|
+
/**
|
|
1690
|
+
* @example
|
|
1691
|
+
* 2019年01月18日
|
|
1692
|
+
*/
|
|
1693
|
+
issueDateYmd?: string;
|
|
1694
|
+
// 签发地
|
|
1695
|
+
/**
|
|
1696
|
+
* @example
|
|
1697
|
+
* GUANGDONG
|
|
1698
|
+
*/
|
|
1699
|
+
issuePlaceEn?: string;
|
|
1700
|
+
// 非英文签发地
|
|
1701
|
+
/**
|
|
1702
|
+
* @example
|
|
1703
|
+
* 广东
|
|
1704
|
+
*/
|
|
1705
|
+
issuePlace?: string;
|
|
1706
|
+
// 签发机关
|
|
1707
|
+
/**
|
|
1708
|
+
* @example
|
|
1709
|
+
* National Immigration Administration, PRC
|
|
1710
|
+
*/
|
|
1711
|
+
issueAuthorityEn?: string;
|
|
1712
|
+
// 中华人民共和国国家移民管理局
|
|
1713
|
+
/**
|
|
1714
|
+
* @example
|
|
1715
|
+
* 非英文签发机关
|
|
1716
|
+
*/
|
|
1717
|
+
issueAuthority?: string;
|
|
1718
|
+
// 身份号
|
|
1719
|
+
/**
|
|
1720
|
+
* @example
|
|
1721
|
+
* 123
|
|
1722
|
+
*/
|
|
1723
|
+
idNumber?: string;
|
|
1724
|
+
// 机读码一
|
|
1725
|
+
/**
|
|
1726
|
+
* @example
|
|
1727
|
+
* POCHNZHENGJIAN
|
|
1728
|
+
*/
|
|
1729
|
+
mrzLine1?: string;
|
|
1730
|
+
// 机读码二
|
|
1731
|
+
/**
|
|
1732
|
+
* @example
|
|
1733
|
+
* EF12608921CHN8503208F2901178NGKELMPONBPJB978
|
|
1734
|
+
*/
|
|
1735
|
+
mrzLine2?: string;
|
|
1736
|
+
// 证件类别
|
|
1737
|
+
/**
|
|
1738
|
+
* @example
|
|
1739
|
+
* 往来台湾通行证
|
|
1740
|
+
*/
|
|
1741
|
+
permitType?: string;
|
|
1742
|
+
// 中文姓名
|
|
1743
|
+
/**
|
|
1744
|
+
* @example
|
|
1745
|
+
* 证件样本
|
|
1746
|
+
*/
|
|
1747
|
+
nameCn?: string;
|
|
1748
|
+
// 有效期限 (yyyy.MM.dd-yyyy.MM.dd)
|
|
1749
|
+
/**
|
|
1750
|
+
* @example
|
|
1751
|
+
* 2019.01.18-2029.01.17
|
|
1752
|
+
*/
|
|
1753
|
+
validPeriod?: string;
|
|
1754
|
+
// 证件号码
|
|
1755
|
+
/**
|
|
1756
|
+
* @example
|
|
1757
|
+
* H01162111
|
|
1758
|
+
*/
|
|
1759
|
+
permitNumber?: string;
|
|
1760
|
+
// 机读码
|
|
1761
|
+
/**
|
|
1762
|
+
* @example
|
|
1763
|
+
* CSCA3273201<901178<8108038<2
|
|
1764
|
+
*/
|
|
1765
|
+
mrzCode?: string;
|
|
1628
1766
|
static names(): { [key: string]: string } {
|
|
1629
1767
|
return {
|
|
1630
1768
|
side: 'side',
|
|
@@ -1672,6 +1810,29 @@ export class OcrInfo extends $tea.Model {
|
|
|
1672
1810
|
fuel: 'fuel',
|
|
1673
1811
|
tractionMass: 'traction_mass',
|
|
1674
1812
|
chipNum: 'chip_num',
|
|
1813
|
+
passportType: 'passport_type',
|
|
1814
|
+
surname: 'surname',
|
|
1815
|
+
givenName: 'given_name',
|
|
1816
|
+
passportNumber: 'passport_number',
|
|
1817
|
+
nameEn: 'name_en',
|
|
1818
|
+
birthPlaceEn: 'birth_place_en',
|
|
1819
|
+
birthPlace: 'birth_place',
|
|
1820
|
+
country: 'country',
|
|
1821
|
+
birthDate: 'birth_date',
|
|
1822
|
+
birthDateYmd: 'birth_date_ymd',
|
|
1823
|
+
issueDateYmd: 'issue_date_ymd',
|
|
1824
|
+
issuePlaceEn: 'issue_place_en',
|
|
1825
|
+
issuePlace: 'issue_place',
|
|
1826
|
+
issueAuthorityEn: 'issue_authority_en',
|
|
1827
|
+
issueAuthority: 'issue_authority',
|
|
1828
|
+
idNumber: 'id_number',
|
|
1829
|
+
mrzLine1: 'mrz_line1',
|
|
1830
|
+
mrzLine2: 'mrz_line2',
|
|
1831
|
+
permitType: 'permit_type',
|
|
1832
|
+
nameCn: 'name_cn',
|
|
1833
|
+
validPeriod: 'valid_period',
|
|
1834
|
+
permitNumber: 'permit_number',
|
|
1835
|
+
mrzCode: 'mrz_code',
|
|
1675
1836
|
};
|
|
1676
1837
|
}
|
|
1677
1838
|
|
|
@@ -1722,6 +1883,29 @@ export class OcrInfo extends $tea.Model {
|
|
|
1722
1883
|
fuel: 'string',
|
|
1723
1884
|
tractionMass: 'string',
|
|
1724
1885
|
chipNum: 'string',
|
|
1886
|
+
passportType: 'string',
|
|
1887
|
+
surname: 'string',
|
|
1888
|
+
givenName: 'string',
|
|
1889
|
+
passportNumber: 'string',
|
|
1890
|
+
nameEn: 'string',
|
|
1891
|
+
birthPlaceEn: 'string',
|
|
1892
|
+
birthPlace: 'string',
|
|
1893
|
+
country: 'string',
|
|
1894
|
+
birthDate: 'string',
|
|
1895
|
+
birthDateYmd: 'string',
|
|
1896
|
+
issueDateYmd: 'string',
|
|
1897
|
+
issuePlaceEn: 'string',
|
|
1898
|
+
issuePlace: 'string',
|
|
1899
|
+
issueAuthorityEn: 'string',
|
|
1900
|
+
issueAuthority: 'string',
|
|
1901
|
+
idNumber: 'string',
|
|
1902
|
+
mrzLine1: 'string',
|
|
1903
|
+
mrzLine2: 'string',
|
|
1904
|
+
permitType: 'string',
|
|
1905
|
+
nameCn: 'string',
|
|
1906
|
+
validPeriod: 'string',
|
|
1907
|
+
permitNumber: 'string',
|
|
1908
|
+
mrzCode: 'string',
|
|
1725
1909
|
};
|
|
1726
1910
|
}
|
|
1727
1911
|
|
|
@@ -9709,6 +9893,184 @@ export class VerificationUserVehicleResponse extends $tea.Model {
|
|
|
9709
9893
|
}
|
|
9710
9894
|
}
|
|
9711
9895
|
|
|
9896
|
+
export class QueryThreemetaPhonereuseproxRequest extends $tea.Model {
|
|
9897
|
+
// OAuth模式下的授权token
|
|
9898
|
+
authToken?: string;
|
|
9899
|
+
productInstanceId?: string;
|
|
9900
|
+
// 外部请求ID,由调用方自行生成并自行保证唯一,以便问题定位。
|
|
9901
|
+
outerOrderNo: string;
|
|
9902
|
+
// 手机号「支持加密」
|
|
9903
|
+
mobile: string;
|
|
9904
|
+
// 日期
|
|
9905
|
+
date: string;
|
|
9906
|
+
// 运营商类型
|
|
9907
|
+
carrier?: string;
|
|
9908
|
+
// 加密类型,填写时「支持加密」字段需要对应加密后赋值。默认使用明文模式 0:明文 1:MD5
|
|
9909
|
+
encryptType?: string;
|
|
9910
|
+
// 扩展参数
|
|
9911
|
+
externParam?: string;
|
|
9912
|
+
static names(): { [key: string]: string } {
|
|
9913
|
+
return {
|
|
9914
|
+
authToken: 'auth_token',
|
|
9915
|
+
productInstanceId: 'product_instance_id',
|
|
9916
|
+
outerOrderNo: 'outer_order_no',
|
|
9917
|
+
mobile: 'mobile',
|
|
9918
|
+
date: 'date',
|
|
9919
|
+
carrier: 'carrier',
|
|
9920
|
+
encryptType: 'encrypt_type',
|
|
9921
|
+
externParam: 'extern_param',
|
|
9922
|
+
};
|
|
9923
|
+
}
|
|
9924
|
+
|
|
9925
|
+
static types(): { [key: string]: any } {
|
|
9926
|
+
return {
|
|
9927
|
+
authToken: 'string',
|
|
9928
|
+
productInstanceId: 'string',
|
|
9929
|
+
outerOrderNo: 'string',
|
|
9930
|
+
mobile: 'string',
|
|
9931
|
+
date: 'string',
|
|
9932
|
+
carrier: 'string',
|
|
9933
|
+
encryptType: 'string',
|
|
9934
|
+
externParam: 'string',
|
|
9935
|
+
};
|
|
9936
|
+
}
|
|
9937
|
+
|
|
9938
|
+
constructor(map?: { [key: string]: any }) {
|
|
9939
|
+
super(map);
|
|
9940
|
+
}
|
|
9941
|
+
}
|
|
9942
|
+
|
|
9943
|
+
export class QueryThreemetaPhonereuseproxResponse extends $tea.Model {
|
|
9944
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
9945
|
+
reqMsgId?: string;
|
|
9946
|
+
// 结果码,一般OK表示调用成功
|
|
9947
|
+
resultCode?: string;
|
|
9948
|
+
// 异常信息的文本描述
|
|
9949
|
+
resultMsg?: string;
|
|
9950
|
+
// 是否二次放号
|
|
9951
|
+
phoneReuse?: string;
|
|
9952
|
+
// CHINA_TELECOM:中国电信
|
|
9953
|
+
// CHINA_MOBILE:中国移动
|
|
9954
|
+
// CHINA_UNICOM:中国联通
|
|
9955
|
+
carrier?: string;
|
|
9956
|
+
// 扩展参数
|
|
9957
|
+
externInfo?: string;
|
|
9958
|
+
static names(): { [key: string]: string } {
|
|
9959
|
+
return {
|
|
9960
|
+
reqMsgId: 'req_msg_id',
|
|
9961
|
+
resultCode: 'result_code',
|
|
9962
|
+
resultMsg: 'result_msg',
|
|
9963
|
+
phoneReuse: 'phone_reuse',
|
|
9964
|
+
carrier: 'carrier',
|
|
9965
|
+
externInfo: 'extern_info',
|
|
9966
|
+
};
|
|
9967
|
+
}
|
|
9968
|
+
|
|
9969
|
+
static types(): { [key: string]: any } {
|
|
9970
|
+
return {
|
|
9971
|
+
reqMsgId: 'string',
|
|
9972
|
+
resultCode: 'string',
|
|
9973
|
+
resultMsg: 'string',
|
|
9974
|
+
phoneReuse: 'string',
|
|
9975
|
+
carrier: 'string',
|
|
9976
|
+
externInfo: 'string',
|
|
9977
|
+
};
|
|
9978
|
+
}
|
|
9979
|
+
|
|
9980
|
+
constructor(map?: { [key: string]: any }) {
|
|
9981
|
+
super(map);
|
|
9982
|
+
}
|
|
9983
|
+
}
|
|
9984
|
+
|
|
9985
|
+
export class QueryThreemetaPhonereusexRequest extends $tea.Model {
|
|
9986
|
+
// OAuth模式下的授权token
|
|
9987
|
+
authToken?: string;
|
|
9988
|
+
productInstanceId?: string;
|
|
9989
|
+
// 外部请求ID,由调用方自行生成并自行保证唯一,以便问题定位。
|
|
9990
|
+
outerOrderNo: string;
|
|
9991
|
+
// 手机号「支持加密」
|
|
9992
|
+
mobile: string;
|
|
9993
|
+
// 日期
|
|
9994
|
+
date: string;
|
|
9995
|
+
// 运营商类型
|
|
9996
|
+
carrier?: string;
|
|
9997
|
+
// 加密类型,填写时「支持加密」字段需要对应加密后赋值。默认使用明文模式 0:明文 1:MD5
|
|
9998
|
+
encryptType?: string;
|
|
9999
|
+
// 扩展参数
|
|
10000
|
+
externParam?: string;
|
|
10001
|
+
static names(): { [key: string]: string } {
|
|
10002
|
+
return {
|
|
10003
|
+
authToken: 'auth_token',
|
|
10004
|
+
productInstanceId: 'product_instance_id',
|
|
10005
|
+
outerOrderNo: 'outer_order_no',
|
|
10006
|
+
mobile: 'mobile',
|
|
10007
|
+
date: 'date',
|
|
10008
|
+
carrier: 'carrier',
|
|
10009
|
+
encryptType: 'encrypt_type',
|
|
10010
|
+
externParam: 'extern_param',
|
|
10011
|
+
};
|
|
10012
|
+
}
|
|
10013
|
+
|
|
10014
|
+
static types(): { [key: string]: any } {
|
|
10015
|
+
return {
|
|
10016
|
+
authToken: 'string',
|
|
10017
|
+
productInstanceId: 'string',
|
|
10018
|
+
outerOrderNo: 'string',
|
|
10019
|
+
mobile: 'string',
|
|
10020
|
+
date: 'string',
|
|
10021
|
+
carrier: 'string',
|
|
10022
|
+
encryptType: 'string',
|
|
10023
|
+
externParam: 'string',
|
|
10024
|
+
};
|
|
10025
|
+
}
|
|
10026
|
+
|
|
10027
|
+
constructor(map?: { [key: string]: any }) {
|
|
10028
|
+
super(map);
|
|
10029
|
+
}
|
|
10030
|
+
}
|
|
10031
|
+
|
|
10032
|
+
export class QueryThreemetaPhonereusexResponse extends $tea.Model {
|
|
10033
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
10034
|
+
reqMsgId?: string;
|
|
10035
|
+
// 结果码,一般OK表示调用成功
|
|
10036
|
+
resultCode?: string;
|
|
10037
|
+
// 异常信息的文本描述
|
|
10038
|
+
resultMsg?: string;
|
|
10039
|
+
// 是否二次放号
|
|
10040
|
+
phoneReuse?: string;
|
|
10041
|
+
// CHINA_TELECOM:中国电信
|
|
10042
|
+
// CHINA_MOBILE:中国移动
|
|
10043
|
+
// CHINA_UNICOM:中国联通
|
|
10044
|
+
carrier?: string;
|
|
10045
|
+
// 扩展参数
|
|
10046
|
+
externInfo?: string;
|
|
10047
|
+
static names(): { [key: string]: string } {
|
|
10048
|
+
return {
|
|
10049
|
+
reqMsgId: 'req_msg_id',
|
|
10050
|
+
resultCode: 'result_code',
|
|
10051
|
+
resultMsg: 'result_msg',
|
|
10052
|
+
phoneReuse: 'phone_reuse',
|
|
10053
|
+
carrier: 'carrier',
|
|
10054
|
+
externInfo: 'extern_info',
|
|
10055
|
+
};
|
|
10056
|
+
}
|
|
10057
|
+
|
|
10058
|
+
static types(): { [key: string]: any } {
|
|
10059
|
+
return {
|
|
10060
|
+
reqMsgId: 'string',
|
|
10061
|
+
resultCode: 'string',
|
|
10062
|
+
resultMsg: 'string',
|
|
10063
|
+
phoneReuse: 'string',
|
|
10064
|
+
carrier: 'string',
|
|
10065
|
+
externInfo: 'string',
|
|
10066
|
+
};
|
|
10067
|
+
}
|
|
10068
|
+
|
|
10069
|
+
constructor(map?: { [key: string]: any }) {
|
|
10070
|
+
super(map);
|
|
10071
|
+
}
|
|
10072
|
+
}
|
|
10073
|
+
|
|
9712
10074
|
export class InitServerWillauthRequest extends $tea.Model {
|
|
9713
10075
|
// OAuth模式下的授权token
|
|
9714
10076
|
authToken?: string;
|
|
@@ -10650,7 +11012,7 @@ export default class Client {
|
|
|
10650
11012
|
req_msg_id: AntchainUtil.getNonce(),
|
|
10651
11013
|
access_key: this._accessKeyId,
|
|
10652
11014
|
base_sdk_version: "TeaSDK-2.0",
|
|
10653
|
-
sdk_version: "1.
|
|
11015
|
+
sdk_version: "1.23.3",
|
|
10654
11016
|
_prod_code: "REALPERSON",
|
|
10655
11017
|
_prod_channel: "undefined",
|
|
10656
11018
|
};
|
|
@@ -12618,6 +12980,48 @@ export default class Client {
|
|
|
12618
12980
|
return $tea.cast<VerificationUserVehicleResponse>(await this.doRequest("1.0", "di.realperson.user.vehicle.verification", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new VerificationUserVehicleResponse({}));
|
|
12619
12981
|
}
|
|
12620
12982
|
|
|
12983
|
+
/**
|
|
12984
|
+
* @remarks
|
|
12985
|
+
* Description: 运营商二次放号增强版扩展接口
|
|
12986
|
+
* Summary: 运营商二次放号增强版扩展接口
|
|
12987
|
+
*/
|
|
12988
|
+
async queryThreemetaPhonereuseprox(request: QueryThreemetaPhonereuseproxRequest): Promise<QueryThreemetaPhonereuseproxResponse> {
|
|
12989
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12990
|
+
let headers : {[key: string ]: string} = { };
|
|
12991
|
+
return await this.queryThreemetaPhonereuseproxEx(request, headers, runtime);
|
|
12992
|
+
}
|
|
12993
|
+
|
|
12994
|
+
/**
|
|
12995
|
+
* @remarks
|
|
12996
|
+
* Description: 运营商二次放号增强版扩展接口
|
|
12997
|
+
* Summary: 运营商二次放号增强版扩展接口
|
|
12998
|
+
*/
|
|
12999
|
+
async queryThreemetaPhonereuseproxEx(request: QueryThreemetaPhonereuseproxRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryThreemetaPhonereuseproxResponse> {
|
|
13000
|
+
Util.validateModel(request);
|
|
13001
|
+
return $tea.cast<QueryThreemetaPhonereuseproxResponse>(await this.doRequest("1.0", "di.realperson.threemeta.phonereuseprox.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryThreemetaPhonereuseproxResponse({}));
|
|
13002
|
+
}
|
|
13003
|
+
|
|
13004
|
+
/**
|
|
13005
|
+
* @remarks
|
|
13006
|
+
* Description: 运营商二次放号扩展接口
|
|
13007
|
+
* Summary: 运营商二次放号扩展接口
|
|
13008
|
+
*/
|
|
13009
|
+
async queryThreemetaPhonereusex(request: QueryThreemetaPhonereusexRequest): Promise<QueryThreemetaPhonereusexResponse> {
|
|
13010
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
13011
|
+
let headers : {[key: string ]: string} = { };
|
|
13012
|
+
return await this.queryThreemetaPhonereusexEx(request, headers, runtime);
|
|
13013
|
+
}
|
|
13014
|
+
|
|
13015
|
+
/**
|
|
13016
|
+
* @remarks
|
|
13017
|
+
* Description: 运营商二次放号扩展接口
|
|
13018
|
+
* Summary: 运营商二次放号扩展接口
|
|
13019
|
+
*/
|
|
13020
|
+
async queryThreemetaPhonereusexEx(request: QueryThreemetaPhonereusexRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryThreemetaPhonereusexResponse> {
|
|
13021
|
+
Util.validateModel(request);
|
|
13022
|
+
return $tea.cast<QueryThreemetaPhonereusexResponse>(await this.doRequest("1.0", "di.realperson.threemeta.phonereusex.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryThreemetaPhonereusexResponse({}));
|
|
13023
|
+
}
|
|
13024
|
+
|
|
12621
13025
|
/**
|
|
12622
13026
|
* @remarks
|
|
12623
13027
|
* Description: 意愿认证服务端初始化
|