* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
29 lines
472 B
Python
29 lines
472 B
Python
import datetime
|
|
from typing import Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
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: Uuid
|
|
|
|
updated_at: datetime.datetime
|
|
|
|
user_id: Uuid
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|