Releases: openfort-xyz/shield-js
0.1.27
0.1.26
0.1.25
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.
0.1.23
Wrap HTTP calls with axios
& axios-retry
.
Make calls to Shield have a backoff strategy consisting of three retries after 0.5, 1, and 2 seconds respectively.
Do it only for idempotent calls and if the cause of failure was due to network issues (e.g. ERRCONREFUSED
) or status codes >= 500
(server error, bad gateway, etc).