# Generated by @docstream/fastapi-server-emitter
# Do not edit this file manually — regenerate with: tsp compile .
# This file contains Pydantic v2 models and enums generated from TypeSpec.
from __future__ import annotations

from typing import Literal
from pydantic import BaseModel, Field

class ValidationError(BaseModel):
    """Error payload when request parameters are invalid."""
    error: Literal["ValidationError"]
    message: str
    field: str | None = Field(None)

class NotFoundError(BaseModel):
    """Error payload when a requested resource cannot be found."""
    error: Literal["NotFound"]
    resource: str
    id: str

class ConflictError(BaseModel):
    """Error payload when a resource already exists (conflict)."""
    error: Literal["Conflict"]
    resource: str
    id: str
