0.1.24
Add passkeyReference field in Share , allowing users to specify passkey-related information when registering a share.
passkeyReference contains passkey_id and, optionally, passkey_env.
passkey_env will be automatically calculated by Shield by reading the User-Agent header if not specified.
Add two new methods
public async getEncryptionMethodsBySignerReferencesDetailed(auth: ShieldAuthOptions, signers: string[], requestId?: string): Promise<Map<string, RecoveryMethod>>public async getEncryptionMethodsByOwnerIdDetailed(auth: ShieldAuthOptions, users: string[], requestId?: string): Promise<Map<string, RecoveryMethod>>And the following models
export interface PasskeyEnv {
name?: string;
os?: string;
osVersion?: string;
device?: string;
}
export interface RecoveryMethodDetails {
passkeyId: string;
passkeyEnv?: PasskeyEnv;
}
export interface RecoveryMethod {
method: string;
details?: RecoveryMethodDetails;
}Allowing users to retrieve detailed encryption details including passkey_id and passkey_env if the share happens to be encrypted via passkeys.
The other two already existing methods (i.e. the ones without the Detailed suffix) will still return only the encryption_type value for every key (reference/userID).
These two new methods can be safely used against older shield versions and nothing will break: both bulk endpoints were already returning a Map<string, Map<string, string>> anyway.