# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from pydantic import Field as FieldInfo

from ..._models import BaseModel

__all__ = ["V2AccessTokensResponse"]


class V2AccessTokensResponse(BaseModel):
    api_type: Optional[str] = FieldInfo(alias="_type", default=None)

    access_token: Optional[str] = FieldInfo(alias="accessToken", default=None)
    """The JWT generated for this specific customer"""

    expires_in: Optional[float] = FieldInfo(alias="expiresIn", default=None)
    """Expiration time in millis for the JWT"""

    refresh_token: Optional[str] = FieldInfo(alias="refreshToken", default=None)
    """Token to be used to refresh the original token"""

    scope: Optional[str] = None
    """Scope of the generated JWT"""

    token_type: Optional[str] = FieldInfo(alias="tokenType", default=None)
    """Bearer"""
