d5279b124f
Storage Persistence Guard / storage-persistence-audit (push) Has been cancelled
Client Quality Gates / Shared client and Web (push) Has been cancelled
Client Quality Gates / macOS Desktop (push) Has been cancelled
Client Quality Gates / Shared client and Web (pull_request) Has been cancelled
Client Quality Gates / macOS Desktop (pull_request) Has been cancelled
Storage Persistence Guard / storage-persistence-audit (pull_request) Has been cancelled
15 lines
375 B
Python
15 lines
375 B
Python
from datetime import datetime
|
|
from typing import Any, Literal
|
|
import uuid
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class OnlyOfficePreviewConfigRead(BaseModel):
|
|
resource_type: Literal["attachment", "version", "collaboration_revision"]
|
|
resource_id: uuid.UUID
|
|
file_name: str
|
|
host_path: str = "/onlyoffice-host.html"
|
|
expires_at: datetime
|
|
config: dict[str, Any]
|