namespace ColaFlow.Modules.Mcp.Application.DTOs;

/// <summary>
/// Response DTO for created API Key
/// IMPORTANT: PlainKey is only shown once at creation!
/// </summary>
public class CreateApiKeyResponse
{
    public Guid Id { get; set; }
    public required string Name { get; set; }

    /// <summary>
    /// IMPORTANT: Plain API Key - shown only once at creation!
    /// Save this securely - it cannot be retrieved later.
    /// </summary>
    public required string PlainKey { get; set; }

    public required string KeyPrefix { get; set; }
    public DateTime ExpiresAt { get; set; }
    public required ApiKeyPermissionsDto Permissions { get; set; }
}
