using Nexus.Api.Data;

namespace Nexus.Api.Repositories;

public interface IActivityRepository
{
    Task<List<ActivityEvent>> GetRecentAsync(int take, CancellationToken ct = default);
    Task<(List<ActivityEvent> Items, int TotalCount)> GetPagedAsync(
        string? type, string? sort, int page, int pageSize, CancellationToken ct = default);
    Task<List<ActivityEvent>> GetByAgentAsync(string agentId, int take, CancellationToken ct = default);
    Task<ActivityEvent> AddAsync(ActivityEvent activity, CancellationToken ct = default);
}
