@zkproofport-app/sdk 0.2.11 → 0.2.12

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
@@ -1,16 +1,24 @@
1
1
  /**
2
2
  * ZKProofport SDK Types
3
3
  */
4
+ import type { CircuitId } from './circuits';
4
5
  /**
5
- * Supported zero-knowledge circuit types.
6
+ * Zero-knowledge circuit identifiers.
6
7
  * Uses canonical circuit names matching Nargo.toml circuit definitions.
7
8
  *
9
+ * Alias of {@link CircuitId}, which is defined in `./circuits` — the single
10
+ * source of truth for circuit identifiers. Adding a circuit there widens this
11
+ * type automatically, so the two can never disagree.
12
+ *
13
+ * Note that this union includes circuits marked `planned` in
14
+ * `CIRCUIT_SUPPORT_STATUS`; being assignable is not a support guarantee.
15
+ *
8
16
  * @example
9
17
  * ```typescript
10
18
  * const circuit: CircuitType = 'coinbase_attestation';
11
19
  * ```
12
20
  */
13
- export type CircuitType = 'coinbase_attestation' | 'coinbase_country_attestation' | 'oidc_domain_attestation' | 'mdl_kr_ownership' | 'mdl_kr_age' | 'mdl_kr_region';
21
+ export type CircuitType = CircuitId;
14
22
  /**
15
23
  * Proof request lifecycle status.
16
24
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkproofport-app/sdk",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
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",
@@ -10,7 +10,13 @@
10
10
  "import": "./dist/index.esm.js",
11
11
  "require": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts"
13
- }
13
+ },
14
+ "./circuits": {
15
+ "types": "./dist/circuits.d.ts",
16
+ "import": "./dist/circuits.esm.js",
17
+ "require": "./dist/circuits.js"
18
+ },
19
+ "./package.json": "./package.json"
14
20
  },
15
21
  "files": [
16
22
  "dist",