"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from datetime import datetime
from tofupilot.v2.types import BaseModel
from typing_extensions import TypedDict


class GitlabGetInstallationTokenResponseTypedDict(TypedDict):
    r"""Token, expiration time, and instance URL, or null if no GitLab is connected for the organization"""

    token: str
    r"""GitLab group access token"""
    expires_at: datetime
    r"""Token expiration time in ISO 8601 format (far future for group access tokens)"""
    instance_url: str
    r"""GitLab instance URL"""


class GitlabGetInstallationTokenResponse(BaseModel):
    r"""Token, expiration time, and instance URL, or null if no GitLab is connected for the organization"""

    token: str
    r"""GitLab group access token"""

    expires_at: datetime
    r"""Token expiration time in ISO 8601 format (far future for group access tokens)"""

    instance_url: str
    r"""GitLab instance URL"""
