mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 23:52:50 -05:00
[EC-92] Add organization vault export to event logs (#2128)
* Added nullable OrganizationId to EventModel * Added EventType Organization_ClientExportedVault * Updated CollectController to save the event Organization_ClientExportedVault * Added OrganizationExportResponseModel to encapsulate Organization Export data * Added OrganizationExportController to have a single endpoint for Organization vault export * Added method GetOrganizationCollections to ICollectionService to get collections for an organization * Added GetOrganizationCiphers to ICipherService to get ciphers for an organization * Updated controllers to use new methods in ICollectionService and ICipherService
This commit is contained in:
13
src/Api/Models/Response/OrganizationExportResponseModel.cs
Normal file
13
src/Api/Models/Response/OrganizationExportResponseModel.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace Bit.Api.Models.Response
|
||||
{
|
||||
public class OrganizationExportResponseModel
|
||||
{
|
||||
public OrganizationExportResponseModel()
|
||||
{
|
||||
}
|
||||
|
||||
public ListResponseModel<CollectionResponseModel> Collections { get; set; }
|
||||
|
||||
public ListResponseModel<CipherMiniDetailsResponseModel> Ciphers { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user