# Generated by ariadne-codegen
# Source: ./documents

from typing import Any, List, Optional

from pydantic import Field

from .base_model import BaseModel
from .enums import LinkTypes


class GetRepo(BaseModel):
    repo: Optional["GetRepoRepo"]


class GetRepoRepo(BaseModel):
    alternate_names: Optional[List[Optional[str]]] = Field(alias="alternateNames")
    uri: Optional[Any]
    description: Optional[str]
    identifier: Optional[str]
    thing: Optional[str]
    feeds: Optional[List[Optional["GetRepoRepoFeeds"]]]
    links: Optional[List[Optional["GetRepoRepoLinks"]]]
    workflow: Optional["GetRepoRepoWorkflow"]


class GetRepoRepoFeeds(BaseModel):
    id: str
    name: str


class GetRepoRepoLinks(BaseModel):
    uri: Optional[Any]
    link_type: Optional[LinkTypes] = Field(alias="linkType")
    excerpts: Optional[str]


class GetRepoRepoWorkflow(BaseModel):
    id: str
    name: str


GetRepo.model_rebuild()
GetRepoRepo.model_rebuild()
