# 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 QueryRepos(BaseModel):
    repos: Optional["QueryReposRepos"]


class QueryReposRepos(BaseModel):
    results: Optional[List[Optional["QueryReposReposResults"]]]


class QueryReposReposResults(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["QueryReposReposResultsFeeds"]]]
    links: Optional[List[Optional["QueryReposReposResultsLinks"]]]
    workflow: Optional["QueryReposReposResultsWorkflow"]


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


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


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


QueryRepos.model_rebuild()
QueryReposRepos.model_rebuild()
QueryReposReposResults.model_rebuild()
