@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.cjs CHANGED
@@ -860,6 +860,39 @@ var reputationManagerAbi = [
860
860
  outputs: [{ internalType: "bool", name: "", type: "bool" }],
861
861
  stateMutability: "view",
862
862
  type: "function"
863
+ },
864
+ // ── Liveness (face-only, no document) attestation ───────────────────────
865
+ { inputs: [], name: "LivenessSignerNotSet", type: "error" },
866
+ { inputs: [], name: "LivenessAttestationExpired", type: "error" },
867
+ { inputs: [], name: "LivenessNullifierZero", type: "error" },
868
+ { inputs: [], name: "LivenessNullifierAlreadySpent", type: "error" },
869
+ { inputs: [], name: "LivenessAlreadyVerified", type: "error" },
870
+ { inputs: [], name: "LivenessInvalidSignature", type: "error" },
871
+ {
872
+ inputs: [
873
+ { internalType: "bytes32", name: "nullifier", type: "bytes32" },
874
+ { internalType: "uint256", name: "limit", type: "uint256" },
875
+ { internalType: "uint256", name: "expiry", type: "uint256" },
876
+ { internalType: "bytes", name: "signature", type: "bytes" }
877
+ ],
878
+ name: "submitLivenessAttestation",
879
+ outputs: [],
880
+ stateMutability: "nonpayable",
881
+ type: "function"
882
+ },
883
+ {
884
+ inputs: [],
885
+ name: "livenessRp",
886
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
887
+ stateMutability: "view",
888
+ type: "function"
889
+ },
890
+ {
891
+ inputs: [{ internalType: "address", name: "", type: "address" }],
892
+ name: "livenessVerified",
893
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
894
+ stateMutability: "view",
895
+ type: "function"
863
896
  }
864
897
  ];
865
898
 
@@ -1603,6 +1636,20 @@ var ZodBvnSubmitParamsSchema = import_zod5.z.object({
1603
1636
  message: "signature must be a hex string"
1604
1637
  })
1605
1638
  });
1639
+ var ZodLivenessSubmitParamsSchema = import_zod5.z.object({
1640
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1641
+ nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1642
+ message: "nullifier must be a bytes32 hex string"
1643
+ }),
1644
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1645
+ limit: import_zod5.z.bigint(),
1646
+ /** Attestation expiry (unix seconds). */
1647
+ expiry: import_zod5.z.bigint(),
1648
+ /** 65-byte secp256k1 signature (hex). */
1649
+ signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1650
+ message: "signature must be a hex string"
1651
+ })
1652
+ });
1606
1653
 
1607
1654
  // src/contracts/tx-limits/index.ts
1608
1655
  var import_neverthrow8 = require("neverthrow");