namespace ColaFlow.Modules.Mcp.Application.DTOs;

/// <summary>
/// Response DTO for API Key (without plain key)
/// </summary>
public class ApiKeyResponse
{
    public Guid Id { get; set; }
    public Guid TenantId { get; set; }
    public Guid UserId { get; set; }
    public required string Name { get; set; }
    public string? Description { get; set; }
    public required string KeyPrefix { get; set; }
    public required string Status { get; set; }
    public required ApiKeyPermissionsDto Permissions { get; set; }
    public List<string>? IpWhitelist { get; set; }
    public DateTime? LastUsedAt { get; set; }
    public long UsageCount { get; set; }
    public DateTime CreatedAt { get; set; }
    public DateTime ExpiresAt { get; set; }
    public DateTime? RevokedAt { get; set; }
    public Guid? RevokedBy { get; set; }
}
