import { CollectionView } from "@bitwarden/admin-console/common"; import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view"; import { VaultItem } from "./vault-item"; export type VaultItemEvent = | { type: "viewAttachments"; item: CipherView } | { type: "bulkEditCollectionAccess"; items: CollectionView[] } | { type: "viewCollectionAccess"; item: CollectionView; readonly: boolean } | { type: "viewEvents"; item: CipherView } | { type: "editCollection"; item: CollectionView; readonly: boolean } | { type: "clone"; item: CipherView } | { type: "restore"; items: CipherView[] } | { type: "delete"; items: VaultItem[] } | { type: "copyField"; item: CipherView; field: "username" | "password" | "totp" } | { type: "moveToFolder"; items: CipherView[] } | { type: "assignToCollections"; items: CipherView[] };