mirror of
https://github.com/bitwarden/mobile
synced 2025-12-12 22:33:25 +00:00
new api endpoints
This commit is contained in:
@@ -1,9 +1,43 @@
|
||||
using System.Threading.Tasks;
|
||||
using Bit.Core.Models.Domain;
|
||||
using Bit.Core.Models.Request;
|
||||
using Bit.Core.Models.Response;
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bit.Core.Abstractions
|
||||
{
|
||||
public interface IApiService
|
||||
{
|
||||
|
||||
string ApiBaseUrl { get; set; }
|
||||
string IdentityBaseUrl { get; set; }
|
||||
bool UrlsSet { get; }
|
||||
|
||||
Task DeleteCipherAsync(string id);
|
||||
Task DeleteCipherAttachmentAsync(string id, string attachmentId);
|
||||
Task DeleteFolderAsync(string id);
|
||||
Task<IdentityTokenResponse> DoRefreshTokenAsync();
|
||||
Task<long> GetAccountRevisionDateAsync();
|
||||
Task<string> GetActiveBearerTokenAsync();
|
||||
Task<CipherResponse> GetCipherAsync(string id);
|
||||
Task<FolderResponse> GetFolderAsync(string id);
|
||||
Task<ProfileResponse> GetProfileAsync();
|
||||
Task<SyncResponse> GetSyncAsync(string id);
|
||||
Task PostAccountKeysAsync(KeysRequest request);
|
||||
Task<CipherResponse> PostCipherAsync(CipherRequest request);
|
||||
Task<CipherResponse> PostCipherCreateAsync(CipherCreateRequest request);
|
||||
Task<FolderResponse> PostFolderAsync(FolderRequest request);
|
||||
Task<Tuple<IdentityTokenResponse, IdentityTwoFactorResponse>> PostIdentityTokenAsync(TokenRequest request);
|
||||
Task PostPasswordHintAsync(PasswordHintRequest request);
|
||||
Task<PreloginResponse> PostPreloginAsync(PreloginRequest request);
|
||||
Task PostRegisterAsync(RegisterRequest request);
|
||||
Task<CipherResponse> PutCipherAsync(string id, CipherRequest request);
|
||||
Task PutCipherCollectionsAsync(string id, CipherCollectionsRequest request);
|
||||
Task<FolderResponse> PutFolderAsync(string id, FolderRequest request);
|
||||
Task<CipherResponse> PutShareCipherAsync(string id, CipherShareRequest request);
|
||||
Task RefreshIdentityTokenAsync();
|
||||
Task<TResponse> SendAsync<TRequest, TResponse>(HttpMethod method, string path,
|
||||
TRequest body, bool authed, bool hasResponse);
|
||||
void SetUrls(EnvironmentUrls urls);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user