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-08-16 01:17:18 +02:00
|
|
|
entity_type: str = Field(...)
|
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
|