# Generated by ariadne-codegen
# Source: tools/graphql_codegen/artifacts/

from __future__ import annotations

from typing import List, Optional

from pydantic import Field

from wandb._pydantic import GQLResult

from .fragments import ArtifactCollectionFragment, PageInfoFragment


class ProjectArtifactCollections(GQLResult):
    project: Optional[ProjectArtifactCollectionsProject]


class ProjectArtifactCollectionsProject(GQLResult):
    artifact_collections: Optional[
        ProjectArtifactCollectionsProjectArtifactCollections
    ] = Field(alias="artifactCollections")


class ProjectArtifactCollectionsProjectArtifactCollections(GQLResult):
    total_count: Optional[int] = Field(alias="totalCount", default=None)
    page_info: PageInfoFragment = Field(alias="pageInfo")
    edges: List[ProjectArtifactCollectionsProjectArtifactCollectionsEdges]


class ProjectArtifactCollectionsProjectArtifactCollectionsEdges(GQLResult):
    node: Optional[ArtifactCollectionFragment]


ProjectArtifactCollections.model_rebuild()
ProjectArtifactCollectionsProject.model_rebuild()
ProjectArtifactCollectionsProjectArtifactCollections.model_rebuild()
ProjectArtifactCollectionsProjectArtifactCollectionsEdges.model_rebuild()
