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

from typing import Literal

from pydantic import Field

from .base_model import BaseModel


class CreateMailingList(BaseModel):
    mailing_list: "CreateMailingListMailingList" = Field(alias="mailingList")


class CreateMailingListMailingList(BaseModel):
    name: str
    owner: "CreateMailingListMailingListOwner"


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


CreateMailingList.model_rebuild()
CreateMailingListMailingList.model_rebuild()
