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

from __future__ import annotations

from typing import TypeAlias, TypedDict

from typing_extensions import NotRequired


class Pet(TypedDict):
    id: int
    name: str
    tag: NotRequired[str]


Pets: TypeAlias = list[Pet]


class User(TypedDict):
    id: int
    name: str
    tag: NotRequired[str]


Users: TypeAlias = list[User]


Id: TypeAlias = str


Rules: TypeAlias = list[str]


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


class Api(TypedDict):
    apiKey: NotRequired[str]
    apiVersionNumber: NotRequired[str]
    apiUrl: NotRequired[str]
    apiDocumentationUrl: NotRequired[str]


Apis: TypeAlias = list[Api]


class Event(TypedDict):
    name: NotRequired[str]


class Result(TypedDict):
    event: NotRequired[Event]
