b5a62ee9a3
- domain: User, Workspace, Project, AssetLibrary, Asset, IngestJob - ports: repository interfaces - application: use cases - adapters: in-memory - API: FastAPI 5 routes - worker: Celery ingest_asset - tests: 4 passing
20 lines
485 B
Python
20 lines
485 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class SubmitIngestJobRequest(BaseModel):
|
|
workspace_id: str = Field(..., min_length=1)
|
|
project_id: str = Field(..., min_length=1)
|
|
library_id: str = Field(..., min_length=1)
|
|
storage_key: str = Field(..., min_length=1, max_length=255)
|
|
|
|
|
|
class IngestJobResponse(BaseModel):
|
|
id: str
|
|
workspace_id: str
|
|
project_id: str
|
|
library_id: str
|
|
storage_key: str
|
|
status: str
|
|
error_message: str
|
|
result_asset_id: str
|