mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
18 lines
849 B
TypeScript
18 lines
849 B
TypeScript
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[] };
|