@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/profile.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
 
@@ -1547,6 +1580,20 @@ var ZodBvnSubmitParamsSchema = z5.object({
1547
1580
  message: "signature must be a hex string"
1548
1581
  })
1549
1582
  });
1583
+ var ZodLivenessSubmitParamsSchema = z5.object({
1584
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1585
+ nullifier: z5.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1586
+ message: "nullifier must be a bytes32 hex string"
1587
+ }),
1588
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1589
+ limit: z5.bigint(),
1590
+ /** Attestation expiry (unix seconds). */
1591
+ expiry: z5.bigint(),
1592
+ /** 65-byte secp256k1 signature (hex). */
1593
+ signature: z5.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1594
+ message: "signature must be a hex string"
1595
+ })
1596
+ });
1550
1597
 
1551
1598
  // src/contracts/tx-limits/index.ts
1552
1599
  import { ResultAsync as ResultAsync6 } from "neverthrow";