* YOYO NEW API SPEC! * new files Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Greg Sweeney <greg@kittycad.io> Co-authored-by: Jess Frazelle <github@jessfraz.com>
30 lines
529 B
Python
30 lines
529 B
Python
import datetime
|
|
from typing import Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from ..models.api_token_uuid import ApiTokenUuid
|
|
from ..models.uuid import Uuid
|
|
|
|
|
|
class ApiToken(BaseModel):
|
|
"""An API token.
|
|
|
|
These are used to authenticate users with Bearer authentication."""
|
|
|
|
created_at: datetime.datetime
|
|
|
|
id: Uuid
|
|
|
|
is_valid: bool
|
|
|
|
label: Optional[str] = None
|
|
|
|
token: ApiTokenUuid
|
|
|
|
updated_at: datetime.datetime
|
|
|
|
user_id: Uuid
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|