@p2pdotme/sdk 1.2.11 → 1.2.13

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/prices.mjs CHANGED
@@ -833,6 +833,39 @@ var reputationManagerAbi = [
833
833
  outputs: [{ internalType: "bool", name: "", type: "bool" }],
834
834
  stateMutability: "view",
835
835
  type: "function"
836
+ },
837
+ // ── Liveness (face-only, no document) attestation ───────────────────────
838
+ { inputs: [], name: "LivenessSignerNotSet", type: "error" },
839
+ { inputs: [], name: "LivenessAttestationExpired", type: "error" },
840
+ { inputs: [], name: "LivenessNullifierZero", type: "error" },
841
+ { inputs: [], name: "LivenessNullifierAlreadySpent", type: "error" },
842
+ { inputs: [], name: "LivenessAlreadyVerified", type: "error" },
843
+ { inputs: [], name: "LivenessInvalidSignature", type: "error" },
844
+ {
845
+ inputs: [
846
+ { internalType: "bytes32", name: "nullifier", type: "bytes32" },
847
+ { internalType: "uint256", name: "limit", type: "uint256" },
848
+ { internalType: "uint256", name: "expiry", type: "uint256" },
849
+ { internalType: "bytes", name: "signature", type: "bytes" }
850
+ ],
851
+ name: "submitLivenessAttestation",
852
+ outputs: [],
853
+ stateMutability: "nonpayable",
854
+ type: "function"
855
+ },
856
+ {
857
+ inputs: [],
858
+ name: "livenessRp",
859
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
860
+ stateMutability: "view",
861
+ type: "function"
862
+ },
863
+ {
864
+ inputs: [{ internalType: "address", name: "", type: "address" }],
865
+ name: "livenessVerified",
866
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
867
+ stateMutability: "view",
868
+ type: "function"
836
869
  }
837
870
  ];
838
871
 
@@ -1576,6 +1609,20 @@ var ZodBvnSubmitParamsSchema = z5.object({
1576
1609
  message: "signature must be a hex string"
1577
1610
  })
1578
1611
  });
1612
+ var ZodLivenessSubmitParamsSchema = z5.object({
1613
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1614
+ nullifier: z5.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1615
+ message: "nullifier must be a bytes32 hex string"
1616
+ }),
1617
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1618
+ limit: z5.bigint(),
1619
+ /** Attestation expiry (unix seconds). */
1620
+ expiry: z5.bigint(),
1621
+ /** 65-byte secp256k1 signature (hex). */
1622
+ signature: z5.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1623
+ message: "signature must be a hex string"
1624
+ })
1625
+ });
1579
1626
 
1580
1627
  // src/contracts/tx-limits/index.ts
1581
1628
  import { ResultAsync as ResultAsync6 } from "neverthrow";