Skip to main content

Module client

Module client 

Source
Expand description

The entry point: log in, unlock the accountโ€™s keys, download its vaults.

Structsยง

Client
The 1Password client. Holds the injected HTTP transport so tests can point it at a mock host.
VaultInfo ๐Ÿ”’
A vault the account can open, with its attributes already decrypted.

Constantsยง

ACCOUNT_INFO_ENDPOINT ๐Ÿ”’
KEYSETS_ENDPOINT ๐Ÿ”’
MAX_OTP_ATTEMPTS ๐Ÿ”’
PASSWORD_SK_METHOD ๐Ÿ”’
VAULT_ENDPOINT ๐Ÿ”’

Functionsยง

download_vault_items ๐Ÿ”’
Pages through a vaultโ€™s items until batchComplete, parsing each supported item.
find_working_key ๐Ÿ”’
Finds a readable access entry whose vault key the keychain can already decrypt.
is_read_accessible ๐Ÿ”’
Whether an ACL grants read access.
parse_item ๐Ÿ”’
Decrypts both payloads. Every category is kept, not only logins.
unlock ๐Ÿ”’
Decrypts the account keysets and every accessible vault key.