# Generated by ariadne-codegen
# Source: queries.graphql

from typing import Literal, Union

from pydantic import Field

from .base_model import BaseModel
from .fragments import InvalidInputSelection


class AdminApiKeyRevoke(BaseModel):
    admin: "AdminApiKeyRevokeAdmin"


class AdminApiKeyRevokeAdmin(BaseModel):
    api_keys: "AdminApiKeyRevokeAdminApiKeys" = Field(alias="apiKeys")


class AdminApiKeyRevokeAdminApiKeys(BaseModel):
    revoke: Union[
        "AdminApiKeyRevokeAdminApiKeysRevokeOk",
        "AdminApiKeyRevokeAdminApiKeysRevokeInvalidInput",
    ] = Field(discriminator="typename__")


class AdminApiKeyRevokeAdminApiKeysRevokeOk(BaseModel):
    typename__: Literal["Ok"] = Field(alias="__typename")


class AdminApiKeyRevokeAdminApiKeysRevokeInvalidInput(InvalidInputSelection):
    typename__: Literal["InvalidInput"] = Field(alias="__typename")


AdminApiKeyRevoke.model_rebuild()
AdminApiKeyRevokeAdmin.model_rebuild()
AdminApiKeyRevokeAdminApiKeys.model_rebuild()
