schema definitions
This commit is contained in:
49
schema/__init__.py
Normal file
49
schema/__init__.py
Normal file
@@ -0,0 +1,49 @@
|
||||
"""
|
||||
MPR Schema Definitions - Source of Truth
|
||||
|
||||
This package defines the core data models as Python dataclasses.
|
||||
These definitions are used to generate:
|
||||
- Django ORM models (mpr/media_assets/models.py)
|
||||
- Pydantic schemas (api/schemas/*.py)
|
||||
- TypeScript types (ui/timeline/src/types.ts)
|
||||
- Protobuf definitions (grpc/protos/worker.proto)
|
||||
|
||||
Run `python schema/generate.py` to regenerate all targets.
|
||||
"""
|
||||
|
||||
from .grpc import (
|
||||
GRPC_SERVICE,
|
||||
CancelRequest,
|
||||
CancelResponse,
|
||||
Empty,
|
||||
JobRequest,
|
||||
JobResponse,
|
||||
ProgressRequest,
|
||||
ProgressUpdate,
|
||||
WorkerStatus,
|
||||
)
|
||||
from .jobs import JobStatus, TranscodeJob
|
||||
from .media import AssetStatus, MediaAsset
|
||||
from .presets import BUILTIN_PRESETS, TranscodePreset
|
||||
|
||||
__all__ = [
|
||||
# Media
|
||||
"MediaAsset",
|
||||
"AssetStatus",
|
||||
# Presets
|
||||
"TranscodePreset",
|
||||
"BUILTIN_PRESETS",
|
||||
# Jobs
|
||||
"TranscodeJob",
|
||||
"JobStatus",
|
||||
# gRPC
|
||||
"JobRequest",
|
||||
"JobResponse",
|
||||
"ProgressRequest",
|
||||
"ProgressUpdate",
|
||||
"CancelRequest",
|
||||
"CancelResponse",
|
||||
"WorkerStatus",
|
||||
"Empty",
|
||||
"GRPC_SERVICE",
|
||||
]
|
||||
Reference in New Issue
Block a user