# generated by datamodel-codegen:
#   filename:  item_schema.yaml

from __future__ import annotations

from enum import Enum
from typing import Any

from pydantic import BaseModel, RootModel


class Event(BaseModel):
    id: int
    name: str
    tag: str | None = None


class Querystring(BaseModel):
    status: str
    includeArchived: bool | None = None


class EventsGetParametersQuery(BaseModel):
    names: list[str] | None = None
    querystring: Querystring | None = None


class EventsGetResponse(RootModel[list[Event]]):
    root: list[Event]


class EventsPostRequest(RootModel[list[Any]]):
    root: list[Any]


class AnyPayload(RootModel[Any]):
    root: Any


class BulkIds(RootModel[list[int]]):
    root: list[int]


class TagName(Enum):
    active = 'active'
    archived = 'archived'


class TagNames(RootModel[list[TagName]]):
    root: list[TagName]
