@p2pdotme/sdk 1.2.12 → 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.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
 
@@ -1574,6 +1607,20 @@ var ZodBvnSubmitParamsSchema = import_zod5.z.object({
1574
1607
  message: "signature must be a hex string"
1575
1608
  })
1576
1609
  });
1610
+ var ZodLivenessSubmitParamsSchema = import_zod5.z.object({
1611
+ /** Per-(tenant, identity) Sybil nullifier (bytes32 hex). */
1612
+ nullifier: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]{64}$/.test(v), {
1613
+ message: "nullifier must be a bytes32 hex string"
1614
+ }),
1615
+ /** Remaining limit in micro-USDC (part of the signed struct). */
1616
+ limit: import_zod5.z.bigint(),
1617
+ /** Attestation expiry (unix seconds). */
1618
+ expiry: import_zod5.z.bigint(),
1619
+ /** 65-byte secp256k1 signature (hex). */
1620
+ signature: import_zod5.z.string().refine((v) => /^0x[a-fA-F0-9]+$/.test(v), {
1621
+ message: "signature must be a hex string"
1622
+ })
1623
+ });
1577
1624
 
1578
1625
  // src/contracts/tx-limits/index.ts
1579
1626
  var import_neverthrow8 = require("neverthrow");