Files
kittycad.py/kittycad/models/api_token.py
Jess Frazelle bc3d698539 switch to pydantic
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2023-11-28 23:50:50 -08:00

24 lines
343 B
Python

import datetime
from pydantic import BaseModel
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
token: Uuid
updated_at: datetime.datetime
user_id: Uuid