2026-03-16 01:33:27 +01:00
|
|
|
#nullable enable
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Wino.Core.Domain.Entities.Shared;
|
|
|
|
|
using Wino.Core.Domain.Models.Accounts;
|
2026-03-18 17:43:56 +01:00
|
|
|
using Wino.Mail.Api.Contracts.Ai;
|
|
|
|
|
using Wino.Mail.Api.Contracts.Auth;
|
|
|
|
|
using Wino.Mail.Api.Contracts.Common;
|
2026-03-16 01:33:27 +01:00
|
|
|
|
|
|
|
|
namespace Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
|
|
|
|
public interface IWinoAccountProfileService
|
|
|
|
|
{
|
|
|
|
|
Task<WinoAccountOperationResult> RegisterAsync(string email, string password, CancellationToken cancellationToken = default);
|
|
|
|
|
Task<WinoAccountOperationResult> LoginAsync(string email, string password, CancellationToken cancellationToken = default);
|
|
|
|
|
Task<WinoAccountOperationResult> RefreshAsync(CancellationToken cancellationToken = default);
|
|
|
|
|
Task<WinoAccount?> GetActiveAccountAsync();
|
2026-03-18 17:43:56 +01:00
|
|
|
Task<WinoAccount?> GetAuthenticatedAccountAsync(CancellationToken cancellationToken = default);
|
2026-03-16 01:33:27 +01:00
|
|
|
Task<bool> HasActiveAccountAsync();
|
2026-03-18 17:43:56 +01:00
|
|
|
Task<ApiEnvelope<AuthUserDto>> GetCurrentUserAsync(CancellationToken cancellationToken = default);
|
|
|
|
|
Task<ApiEnvelope<AiStatusResultDto>> GetAiStatusAsync(CancellationToken cancellationToken = default);
|
|
|
|
|
Task<ApiEnvelope<string>> CreateCheckoutSessionAsync(string productId, CancellationToken cancellationToken = default);
|
2026-03-16 01:33:27 +01:00
|
|
|
Task SignOutAsync(CancellationToken cancellationToken = default);
|
|
|
|
|
}
|