feat: add waveform voice messages end-to-end
All checks were successful
CI / test (push) Successful in 23s

This commit is contained in:
2026-03-08 12:40:49 +03:00
parent 3b82b5e558
commit 30169a3a27
13 changed files with 361 additions and 19 deletions

View File

@@ -21,6 +21,7 @@ class AttachmentCreateRequest(BaseModel):
file_url: str = Field(min_length=1, max_length=1024)
file_type: str = Field(min_length=1, max_length=64)
file_size: int = Field(gt=0)
waveform_points: list[int] | None = Field(default=None, min_length=8, max_length=256)
class AttachmentRead(BaseModel):
@@ -31,6 +32,7 @@ class AttachmentRead(BaseModel):
file_url: str
file_type: str
file_size: int
waveform_points: list[int] | None = None
class ChatAttachmentRead(BaseModel):
@@ -42,3 +44,4 @@ class ChatAttachmentRead(BaseModel):
file_url: str
file_type: str
file_size: int
waveform_points: list[int] | None = None