Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

1.2 KB
Raw Blame
/**
 * Passkey SQLite database type.
 */
export type Passkey = {
    /** The ID of the passkey */
    Id: string;

    /** The WebAuthn credential ID (max 1023 bytes) for passkeys created outside AliasVault. When null, it is the bytes of Id. */
    CredentialId?: Uint8Array | number[] | null;

    /** The item ID foreign key */
    ItemId: string;

    /** The manifest this passkey belongs to. */
    ManifestId: string;

    /** The relying party identifier */
    RpId: string;

    /** The user handle (user ID) provided by the relying party - stored as byte array (BLOB) */
    UserHandle?: Uint8Array | number[] | null;

    /** The public key */
    PublicKey: string;

    /** The private key */
    PrivateKey: string;

    /** The PRF encryption key associated with the passkey (optional, only set if PRF was requested by RP) */
    PrfKey?: Uint8Array | number[];

    /** The display name for the passkey */
    DisplayName: string;

    /** Additional data as JSON blob (Base64 encoded) */
    AdditionalData?: string | null;

    /** Created timestamp (epoch milliseconds) */
    CreatedAt: number;

    /** Updated timestamp (epoch milliseconds) */
    UpdatedAt: number;

    /** Soft delete flag (0/1) */
    IsDeleted: number;
}