Files

32 lines
731 B
Python
Raw Permalink Normal View History

from __future__ import annotations
from datetime import datetime
from typing import Annotated
from pydantic import WithJsonSchema
from fields.base import ResponseModel
2024-04-08 18:51:46 +08:00
UUIDString = Annotated[str, WithJsonSchema({"format": "uuid", "type": "string"})]
2025-08-25 09:26:54 +08:00
class SimpleEndUser(ResponseModel):
id: str
type: str
is_anonymous: bool
session_id: str | None = None
class EndUserDetail(ResponseModel):
"""Full end-user detail returned by the Service API."""
id: UUIDString
tenant_id: UUIDString
app_id: UUIDString | None = None
type: str
external_user_id: str | None = None
name: str | None = None
is_anonymous: bool
session_id: str
created_at: datetime
updated_at: datetime