Files
leocrm/app/plugins/builtins/entity_links/schemas.py
T

23 lines
422 B
Python
Raw Normal View History

"""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$")
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