@zkpassport/sdk 0.8.2 → 0.8.3-beta.1
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 +2 -1
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +5 -6
- package/package.json +1 -1
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
|
|
|
@@ -173,6 +173,7 @@ type QueryBuilder = {
|
|
|
173
173
|
* @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
174
|
* Best for lower security requirements that requires fast verification such as age verification.
|
|
175
175
|
*/
|
|
176
|
+
facematch: (mode?: FacematchMode) => QueryBuilder;
|
|
176
177
|
/**
|
|
177
178
|
* Builds the request.
|
|
178
179
|
*
|
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
|
|
|
@@ -173,6 +173,7 @@ type QueryBuilder = {
|
|
|
173
173
|
* @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
174
|
* Best for lower security requirements that requires fast verification such as age verification.
|
|
175
175
|
*/
|
|
176
|
+
facematch: (mode?: FacematchMode) => QueryBuilder;
|
|
176
177
|
/**
|
|
177
178
|
* Builds the request.
|
|
178
179
|
*
|
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 {
|