# generated by datamodel-codegen:
#   filename:  api.yaml
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from typing import Annotated, TypeAlias

from msgspec import UNSET, Meta, Struct, UnsetType, field


class Pet(Struct):
    id_: int = field(name='id')
    name_: str = field(name='name')
    tag: str | UnsetType = UNSET


Pets: TypeAlias = list[Pet]


class User(Struct):
    id_: int = field(name='id')
    name_: str = field(name='name')
    tag: str | UnsetType = UNSET


Users: TypeAlias = list[User]


Id: TypeAlias = str


Rules: TypeAlias = list[str]


class Error(Struct):
    code: int
    message: str


class Api(Struct):
    apiKey: (
        Annotated[str, Meta(description='To be used as a dataset parameter value')]
        | UnsetType
    ) = UNSET
    apiVersionNumber: (
        Annotated[str, Meta(description='To be used as a version parameter value')]
        | UnsetType
    ) = UNSET
    apiUrl: (
        Annotated[str, Meta(description="The URL describing the dataset's fields")]
        | UnsetType
    ) = UNSET
    apiDocumentationUrl: (
        Annotated[str, Meta(description='A URL to the API console for each API')]
        | UnsetType
    ) = UNSET


Apis: TypeAlias = list[Api]


class Event(Struct):
    name_: str | UnsetType = field(name='name', default=UNSET)


class Result(Struct):
    event: Event | UnsetType = UNSET
