"""SSH key request/response schemas."""

import uuid
from datetime import datetime

from pydantic import BaseModel, ConfigDict


class SSHKeyCreate(BaseModel):
    name: str


class SSHKeyResponse(BaseModel):
    model_config = ConfigDict(from_attributes=True)

    id: uuid.UUID
    name: str
    public_key: str
    created_at: datetime


class SignPayloadRequest(BaseModel):
    payload: str


class SignatureResponse(BaseModel):
    signature: str


class VerifySignatureRequest(BaseModel):
    payload: str
    signature: str


class VerifySignatureResponse(BaseModel):
    valid: bool
