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

from datetime import datetime
from typing import Annotated

from pydantic import BeforeValidator
from srht.graphql import gql_time

from .base_model import BaseModel


class IssuePAT(BaseModel):
    token: "IssuePATToken"


class IssuePATToken(BaseModel):
    secret: str
    token: "IssuePATTokenToken"


class IssuePATTokenToken(BaseModel):
    expires: Annotated[datetime, BeforeValidator(gql_time)]


IssuePAT.model_rebuild()
IssuePATToken.model_rebuild()
