using Bit.Core.Exceptions; using Bit.Core.Vault.Models.Data; namespace Bit.Core.Vault.Queries; /// /// Helper queries for retrieving cipher details belonging to an organization including collection information. /// /// It does not perform any internal authorization checks. public interface IOrganizationCiphersQuery { /// /// Returns ciphers belonging to the organization that the user has been assigned to via collections. /// /// public Task> GetOrganizationCiphersForUser(Guid organizationId, Guid userId); /// /// Returns all ciphers belonging to the organization. /// /// /// public Task> GetAllOrganizationCiphers(Guid organizationId); /// /// Returns ciphers belonging to the organization that are not assigned to any collection. /// /// Task> GetUnassignedOrganizationCiphers(Guid organizationId); }