Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-02-24 17:03:55 -08:00
parent 218c6b4672
commit dedbe43c3e
101 changed files with 7680 additions and 857 deletions

View File

@ -0,0 +1,31 @@
import datetime
from typing import Optional
from pydantic import BaseModel, ConfigDict
from ..models.uuid import Uuid
class ServiceAccount(BaseModel):
"""A service account.
These are used to authenticate orgs with Bearer authentication.
This works just like an API token, but it is tied to an organization versus an individual user.
"""
created_at: datetime.datetime
id: Uuid
is_valid: bool
label: Optional[str] = None
org_id: Uuid
token: Uuid
updated_at: datetime.datetime
model_config = ConfigDict(protected_namespaces=())