mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00

* Move Api files * Move Core files * Move Infrastructure files * Move Sql Files * Move Api Sync files to Vault * Move test vault files * Update Sql.sqlproj paths * Update Codeowners * Fix vault file paths in sqlproj * Update CipherDetails.sql path in sqlproj * Update Core models and entities namespaces * Update namespaces Core Services and Repositories * Missed service namespaces * Update Api namespaces * Update Infrastructure namespaces * Move infrastructure queries that were missed * Tests namespace updates * Admin and Events namespace updates * Remove unused usings * Remove extra CiphersController usings * Rename folder * Fix CipherDetails namespace * Sqlproj fixes * Move stored procs into folders by table * using order fix
28 lines
1.4 KiB
C#
28 lines
1.4 KiB
C#
using Bit.Core.Entities;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Models.Data;
|
|
using Bit.Core.Vault.Models.Data;
|
|
|
|
namespace Bit.Core.Services;
|
|
|
|
public interface IEmergencyAccessService
|
|
{
|
|
Task<EmergencyAccess> InviteAsync(User invitingUser, string email, EmergencyAccessType type, int waitTime);
|
|
Task ResendInviteAsync(User invitingUser, Guid emergencyAccessId);
|
|
Task<EmergencyAccess> AcceptUserAsync(Guid emergencyAccessId, User user, string token, IUserService userService);
|
|
Task DeleteAsync(Guid emergencyAccessId, Guid grantorId);
|
|
Task<EmergencyAccess> ConfirmUserAsync(Guid emergencyAccessId, string key, Guid grantorId);
|
|
Task<EmergencyAccessDetails> GetAsync(Guid emergencyAccessId, Guid userId);
|
|
Task SaveAsync(EmergencyAccess emergencyAccess, User savingUser);
|
|
Task InitiateAsync(Guid id, User initiatingUser);
|
|
Task ApproveAsync(Guid id, User approvingUser);
|
|
Task RejectAsync(Guid id, User rejectingUser);
|
|
Task<ICollection<Policy>> GetPoliciesAsync(Guid id, User requestingUser);
|
|
Task<(EmergencyAccess, User)> TakeoverAsync(Guid id, User initiatingUser);
|
|
Task PasswordAsync(Guid id, User user, string newMasterPasswordHash, string key);
|
|
Task SendNotificationsAsync();
|
|
Task HandleTimedOutRequestsAsync();
|
|
Task<EmergencyAccessViewData> ViewAsync(Guid id, User user);
|
|
Task<AttachmentResponseData> GetAttachmentDownloadAsync(Guid id, Guid cipherId, string attachmentId, User user);
|
|
}
|