@zkpassport/sdk 0.8.2 → 0.8.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/cjs/index.cjs +5 -6
- package/dist/cjs/index.d.cts +3 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +5 -6
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -1139,13 +1139,12 @@ var ZKPassport = class {
|
|
|
1139
1139
|
};
|
|
1140
1140
|
return this.getZkPassportRequest(topic);
|
|
1141
1141
|
},
|
|
1142
|
-
|
|
1143
|
-
/*facematch: (mode: FacematchMode = "regular") => {
|
|
1142
|
+
facematch: (mode = "regular") => {
|
|
1144
1143
|
this.topicToConfig[topic].facematch = {
|
|
1145
|
-
mode
|
|
1146
|
-
}
|
|
1147
|
-
return this.getZkPassportRequest(topic)
|
|
1148
|
-
}
|
|
1144
|
+
mode
|
|
1145
|
+
};
|
|
1146
|
+
return this.getZkPassportRequest(topic);
|
|
1147
|
+
},
|
|
1149
1148
|
done: () => {
|
|
1150
1149
|
this.setExpectedProofCount(topic);
|
|
1151
1150
|
return {
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDCredential, ProofResult, QueryResult, IDCredentialValue, NumericalIDCredential, DisclosableIDCredential, BoundData, SanctionsCountries, SanctionsLists, ProofMode, SupportedChain } from '@zkpassport/utils';
|
|
1
|
+
import { IDCredential, ProofResult, QueryResult, IDCredentialValue, NumericalIDCredential, DisclosableIDCredential, BoundData, SanctionsCountries, SanctionsLists, FacematchMode, ProofMode, SupportedChain } from '@zkpassport/utils';
|
|
2
2
|
export * from '@zkpassport/utils';
|
|
3
3
|
export { ASEAN_COUNTRIES, EEA_COUNTRIES, EU_COUNTRIES, MERCOSUR_COUNTRIES, SANCTIONED_COUNTRIES, SCHENGEN_COUNTRIES } from '@zkpassport/utils';
|
|
4
4
|
|
|
@@ -166,6 +166,7 @@ type QueryBuilder = {
|
|
|
166
166
|
*/
|
|
167
167
|
sanctions: (countries?: SanctionsCountries, lists?: SanctionsLists) => QueryBuilder;
|
|
168
168
|
/**
|
|
169
|
+
* This feature is not available yet in the public release of the app.
|
|
169
170
|
* Requires that the ID holder's face matches the photo on the ID.
|
|
170
171
|
* @param mode The mode to use for the face match. Defaults to "regular".
|
|
171
172
|
* @param mode "strict" - The user will have to go through an extensive liveness check to prevent spoofing making it more secure.
|
|
@@ -173,6 +174,7 @@ type QueryBuilder = {
|
|
|
173
174
|
* @param mode "regular" - The user will only have to go through a basic liveness check to prevent spoofing, making it faster for the user.
|
|
174
175
|
* Best for lower security requirements that requires fast verification such as age verification.
|
|
175
176
|
*/
|
|
177
|
+
facematch: (mode?: FacematchMode) => QueryBuilder;
|
|
176
178
|
/**
|
|
177
179
|
* Builds the request.
|
|
178
180
|
*
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDCredential, ProofResult, QueryResult, IDCredentialValue, NumericalIDCredential, DisclosableIDCredential, BoundData, SanctionsCountries, SanctionsLists, ProofMode, SupportedChain } from '@zkpassport/utils';
|
|
1
|
+
import { IDCredential, ProofResult, QueryResult, IDCredentialValue, NumericalIDCredential, DisclosableIDCredential, BoundData, SanctionsCountries, SanctionsLists, FacematchMode, ProofMode, SupportedChain } from '@zkpassport/utils';
|
|
2
2
|
export * from '@zkpassport/utils';
|
|
3
3
|
export { ASEAN_COUNTRIES, EEA_COUNTRIES, EU_COUNTRIES, MERCOSUR_COUNTRIES, SANCTIONED_COUNTRIES, SCHENGEN_COUNTRIES } from '@zkpassport/utils';
|
|
4
4
|
|
|
@@ -166,6 +166,7 @@ type QueryBuilder = {
|
|
|
166
166
|
*/
|
|
167
167
|
sanctions: (countries?: SanctionsCountries, lists?: SanctionsLists) => QueryBuilder;
|
|
168
168
|
/**
|
|
169
|
+
* This feature is not available yet in the public release of the app.
|
|
169
170
|
* Requires that the ID holder's face matches the photo on the ID.
|
|
170
171
|
* @param mode The mode to use for the face match. Defaults to "regular".
|
|
171
172
|
* @param mode "strict" - The user will have to go through an extensive liveness check to prevent spoofing making it more secure.
|
|
@@ -173,6 +174,7 @@ type QueryBuilder = {
|
|
|
173
174
|
* @param mode "regular" - The user will only have to go through a basic liveness check to prevent spoofing, making it faster for the user.
|
|
174
175
|
* Best for lower security requirements that requires fast verification such as age verification.
|
|
175
176
|
*/
|
|
177
|
+
facematch: (mode?: FacematchMode) => QueryBuilder;
|
|
176
178
|
/**
|
|
177
179
|
* Builds the request.
|
|
178
180
|
*
|
package/dist/esm/index.js
CHANGED
|
@@ -1144,13 +1144,12 @@ var ZKPassport = class {
|
|
|
1144
1144
|
};
|
|
1145
1145
|
return this.getZkPassportRequest(topic);
|
|
1146
1146
|
},
|
|
1147
|
-
|
|
1148
|
-
/*facematch: (mode: FacematchMode = "regular") => {
|
|
1147
|
+
facematch: (mode = "regular") => {
|
|
1149
1148
|
this.topicToConfig[topic].facematch = {
|
|
1150
|
-
mode
|
|
1151
|
-
}
|
|
1152
|
-
return this.getZkPassportRequest(topic)
|
|
1153
|
-
}
|
|
1149
|
+
mode
|
|
1150
|
+
};
|
|
1151
|
+
return this.getZkPassportRequest(topic);
|
|
1152
|
+
},
|
|
1154
1153
|
done: () => {
|
|
1155
1154
|
this.setExpectedProofCount(topic);
|
|
1156
1155
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkpassport/sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Privacy-preserving identity verification using passports and ID cards",
|
|
5
5
|
"author": "ZKPassport",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@noble/secp256k1": "^2.2.3",
|
|
38
38
|
"@obsidion/bridge": "^0.10.4",
|
|
39
39
|
"@zkpassport/registry": "0.10.2",
|
|
40
|
-
"@zkpassport/utils": "0.22.
|
|
40
|
+
"@zkpassport/utils": "0.22.8",
|
|
41
41
|
"buffer": "^6.0.3",
|
|
42
42
|
"i18n-iso-countries": "^7.12.0",
|
|
43
43
|
"pako": "^2.1.0",
|