2026-06-29 14:01:24 +02:00
|
|
|
"""Pydantic schemas for the Entity Links plugin."""
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EntityLinkRequest(BaseModel):
|
2026-07-23 17:17:32 +02:00
|
|
|
entity_type: str = Field(..., pattern="^contact$")
|
2026-06-29 14:01:24 +02:00
|
|
|
entity_id: str
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EntityLinkResponse(BaseModel):
|
|
|
|
|
id: str
|
|
|
|
|
file_id: str
|
|
|
|
|
entity_type: str
|
|
|
|
|
entity_id: str
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FileListResponse(BaseModel):
|
|
|
|
|
file_id: str
|
|
|
|
|
entity_type: str
|