@zkpassport/sdk 0.8.1 → 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.
@@ -1139,13 +1139,12 @@ var ZKPassport = class {
1139
1139
  };
1140
1140
  return this.getZkPassportRequest(topic);
1141
1141
  },
1142
- // TODO: Uncomment this when the facematch is ready
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 {
@@ -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
  *
@@ -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
- // TODO: Uncomment this when the facematch is ready
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.1",
3
+ "version": "0.8.3-beta.1",
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.6",
40
+ "@zkpassport/utils": "0.22.7",
41
41
  "buffer": "^6.0.3",
42
42
  "i18n-iso-countries": "^7.12.0",
43
43
  "pako": "^2.1.0",