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

* Extract Import-Api endpoints into separate controller Moved ciphers/import and ciphers/import-organization into new ImportController Paths have been kept intact for now (no changes on clients needed) Moved request-models used for import into tools-subfolder * Update CODEOWNERS for team-tools-dev * Move HibpController (reports) to tools * Moving files related to Send * Moving files related to ReferenceEvent * Removed unneeded newline
17 lines
621 B
C#
17 lines
621 B
C#
using Bit.Core.Tools.Entities;
|
|
using Bit.Core.Tools.Models.Data;
|
|
|
|
namespace Bit.Core.Tools.Services;
|
|
|
|
public interface ISendService
|
|
{
|
|
Task DeleteSendAsync(Send send);
|
|
Task SaveSendAsync(Send send);
|
|
Task<string> SaveFileSendAsync(Send send, SendFileData data, long fileLength);
|
|
Task UploadFileToExistingSendAsync(Stream stream, Send send);
|
|
Task<(Send, bool, bool)> AccessAsync(Guid sendId, string password);
|
|
string HashPassword(string password);
|
|
Task<(string, bool, bool)> GetSendFileDownloadUrlAsync(Send send, string fileId, string password);
|
|
Task<bool> ValidateSendFile(Send send);
|
|
}
|