# Generated by ariadne-codegen
# Source: todosrht/graphql/

from typing import Literal

from pydantic import Field

from .base_model import BaseModel


class SubmitTicket(BaseModel):
    ticket: "SubmitTicketTicket"


class SubmitTicketTicket(BaseModel):
    id: int
    tracker: "SubmitTicketTicketTracker"


class SubmitTicketTicketTracker(BaseModel):
    owner: "SubmitTicketTicketTrackerOwner"
    name: str


class SubmitTicketTicketTrackerOwner(BaseModel):
    typename__: Literal["EmailAddress", "Entity", "ExternalUser", "User"] = Field(
        alias="__typename"
    )
    canonical_name: str = Field(alias="canonicalName")


SubmitTicket.model_rebuild()
SubmitTicketTicket.model_rebuild()
SubmitTicketTicketTracker.model_rebuild()
