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.
- Vault
Info ๐ - A vault the account can open, with its attributes already decrypted.
- Vault
Items ๐Download
Enumsยง
- Item
Download ๐ - Vault
Download ๐ - Vault
Key ๐ - Vault
Unlock ๐
Constantsยง
- ACCOUNT_
INFO_ ๐ENDPOINT - KEYSETS_
ENDPOINT ๐ - MAX_
OTP_ ๐ATTEMPTS - VAULT_
ENDPOINT ๐
Functionsยง
- download_
vault ๐ - Downloads one vault. A missing vault becomes a partial result; every other failure aborts.
- download_
vault_ ๐items - Pages through a vaultโs items until
batchComplete, parsing each supported item. - download_
vaults ๐ - Unlocks the accountโs keys and downloads every vault the session can open.
- 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. Missing keys and unsupported encryption are skippable; malformed data is an error.
- skip_
reason ๐ - Why
envelopehas to be skipped: its scheme is unsupported or its key is not in the keychain.Nonedoes not promise it decrypts. - unlock_
account ๐ - Decrypts the account keysets and every accessible vault key.
- unlock_
vault ๐ - Decrypts a vaultโs key and attributes. Missing keys and unsupported encryption are skippable; malformed data is an error.