25 lines
564 B
Python
25 lines
564 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class AnnotationResponse(BaseModel):
|
|
id: str
|
|
type: str
|
|
x: float
|
|
y: float
|
|
width: float
|
|
height: float
|
|
color: str
|
|
author: str
|
|
content: str
|
|
timestamp: str | None = None
|
|
pageIndex: int
|
|
thickness: float | None = None
|
|
paths: list[list[dict[str, float]]] = []
|
|
quadPoints: list[list[dict[str, float]]] = []
|
|
|
|
fieldName: str | None = None
|
|
fieldValue: str | None = None
|
|
fieldType: str | None = None
|
|
fieldFlags: int | None = None
|
|
fieldOptions: list[str] | None = None
|