@waaskey/sdk 0.4.0 → 0.4.1

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/index.d.cts CHANGED
@@ -1679,6 +1679,23 @@ interface RecoveryChallengeResponse {
1679
1679
  * and single-use with this session — feed it to `passkeyFactorVerification`.
1680
1680
  */
1681
1681
  passkeyChallenge?: string;
1682
+ /**
1683
+ * The non-secret inputs that reproduce the backup's PRF key — present only when the backup carries
1684
+ * a `passkey_prf` wrap (#510).
1685
+ *
1686
+ * Pass `salt` + `credentialId` to `PasskeyPrfSecretProvider.unlock(...)` to obtain the
1687
+ * `passkeySecret` that {@link RecoverParams} takes. They arrive HERE, on the challenge, because the
1688
+ * salt is an INPUT to the authenticator ceremony while the wraps themselves are released only after
1689
+ * every factor passes — so a device that lost its local storage (which is the recovery case) would
1690
+ * otherwise have no way to use its passkey at all.
1691
+ *
1692
+ * Neither value is a secret: the credential id is public by WebAuthn design, and the salt is
1693
+ * meaningless without the authenticator and a user-verified ceremony.
1694
+ */
1695
+ passkeyWrap?: {
1696
+ salt: string;
1697
+ credentialId: string;
1698
+ };
1682
1699
  }
1683
1700
  /**
1684
1701
  * How the key that opens a backup was wrapped (backend `RecoveryKeyWrap`, #510).
package/dist/index.d.ts CHANGED
@@ -1679,6 +1679,23 @@ interface RecoveryChallengeResponse {
1679
1679
  * and single-use with this session — feed it to `passkeyFactorVerification`.
1680
1680
  */
1681
1681
  passkeyChallenge?: string;
1682
+ /**
1683
+ * The non-secret inputs that reproduce the backup's PRF key — present only when the backup carries
1684
+ * a `passkey_prf` wrap (#510).
1685
+ *
1686
+ * Pass `salt` + `credentialId` to `PasskeyPrfSecretProvider.unlock(...)` to obtain the
1687
+ * `passkeySecret` that {@link RecoverParams} takes. They arrive HERE, on the challenge, because the
1688
+ * salt is an INPUT to the authenticator ceremony while the wraps themselves are released only after
1689
+ * every factor passes — so a device that lost its local storage (which is the recovery case) would
1690
+ * otherwise have no way to use its passkey at all.
1691
+ *
1692
+ * Neither value is a secret: the credential id is public by WebAuthn design, and the salt is
1693
+ * meaningless without the authenticator and a user-verified ceremony.
1694
+ */
1695
+ passkeyWrap?: {
1696
+ salt: string;
1697
+ credentialId: string;
1698
+ };
1682
1699
  }
1683
1700
  /**
1684
1701
  * How the key that opens a backup was wrapped (backend `RecoveryKeyWrap`, #510).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waaskey/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "WAASKey — embedded, non-custodial MPC wallets for your app. Official TypeScript SDK.",
5
5
  "license": "MIT",
6
6
  "author": "Waaskey",