Skip to main content

Module edit

Module edit 

Source

StructsΒ§

CipherEditRequest
Request to edit a cipher.
CipherPartialEditRequest
Request to update the subset of cipher fields that a user without edit permissions is still allowed to change (folder_id and favorite).

EnumsΒ§

EditCipherError

ConstantsΒ§

UNIFFI_META_CONST_BITWARDEN_VAULT_ERROR_EDITCIPHERERROR πŸ”’
UNIFFI_META_CONST_BITWARDEN_VAULT_RECORD_CIPHEREDITREQUEST πŸ”’
UNIFFI_META_CONST_BITWARDEN_VAULT_RECORD_CIPHERPARTIALEDITREQUEST πŸ”’

FunctionsΒ§

convert_request_to_cipher_view πŸ”’
Internal helper to convert a CipherEditRequest into a CipherView so the existing CipherView encryption pipeline can be reused.
edit_cipher πŸ”’
edit_gated_cipher πŸ”’
Edit a PAM-gated cipher against a full original supplied by the caller.
partial_edit_cipher πŸ”’
Update only the cipher fields available to users without edit permissions (folder_id and favorite) via the server’s partial-update endpoint.
submit_cipher_edit πŸ”’
The body both edit paths share: request β†’ view, fold in password history against original_cipher_view, encrypt, PUT, and merge the write-return over stored_cipher before persisting it.