@zkproofport-app/sdk 0.2.2 → 0.2.4

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/types.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * const circuit: CircuitType = 'coinbase_attestation';
11
11
  * ```
12
12
  */
13
- export type CircuitType = 'coinbase_attestation' | 'coinbase_country_attestation';
13
+ export type CircuitType = 'coinbase_attestation' | 'coinbase_country_attestation' | 'oidc_domain_attestation';
14
14
  /**
15
15
  * Proof request lifecycle status.
16
16
  *
@@ -72,6 +72,25 @@ export interface CoinbaseCountryInputs {
72
72
  isIncluded: boolean;
73
73
  scope: string;
74
74
  }
75
+ /**
76
+ * Input parameters for OIDC Domain attestation circuit.
77
+ *
78
+ * This circuit proves a user's email domain affiliation via Google Sign-In
79
+ * without revealing the full email address. The mobile app handles
80
+ * authentication and proof generation entirely on-device.
81
+ *
82
+ * @property domain - Email domain to prove (e.g., "google.com", "company.com")
83
+ * @property scope - Application-specific identifier for proof uniqueness (e.g., dapp domain)
84
+ * @property provider - OIDC workspace provider name for organization membership verification.
85
+ * When set, the mobile app verifies the user's account is managed by the specified provider
86
+ * (e.g., Google Workspace `hd` claim). Currently supported: `'google'`.
87
+ * Omit for general email domain verification without organization membership check.
88
+ */
89
+ export interface OidcDomainInputs {
90
+ domain: string;
91
+ scope: string;
92
+ provider?: string;
93
+ }
75
94
  /**
76
95
  * Empty input type for circuits that retrieve all data from the mobile app.
77
96
  * Used when SDK doesn't need to provide any circuit-specific parameters.
@@ -82,7 +101,7 @@ export interface EmptyInputs {
82
101
  * Union type of all circuit-specific input types.
83
102
  * Each circuit type has a corresponding input interface.
84
103
  */
85
- export type CircuitInputs = CoinbaseKycInputs | CoinbaseCountryInputs | EmptyInputs;
104
+ export type CircuitInputs = CoinbaseKycInputs | CoinbaseCountryInputs | OidcDomainInputs | EmptyInputs;
86
105
  /**
87
106
  * Zero-knowledge proof request sent to mobile app via deep link.
88
107
  *
@@ -293,6 +312,8 @@ export interface DeepLinkComponents {
293
312
  * ```
294
313
  */
295
314
  export interface ChallengeResponse {
315
+ /** Session identifier (used as requestId) */
316
+ requestId: string;
296
317
  /** Hex-encoded 32-byte random challenge */
297
318
  challenge: string;
298
319
  /** Unix timestamp (ms) when challenge expires */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkproofport-app/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "ZKProofport SDK for requesting zero-knowledge proofs from the ZKProofport mobile app and verifying them on-chain",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",