major refactor
This commit is contained in:
58
core/schema/__init__.py
Normal file
58
core/schema/__init__.py
Normal file
@@ -0,0 +1,58 @@
|
||||
"""
|
||||
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/schema/*.py)
|
||||
- TypeScript types (ui/timeline/src/types.ts)
|
||||
- Protobuf definitions (grpc/protos/worker.proto)
|
||||
|
||||
Run `python schema/generate.py` to regenerate all targets.
|
||||
"""
|
||||
|
||||
from .models import (
|
||||
BUILTIN_PRESETS,
|
||||
# For generator
|
||||
DATACLASSES,
|
||||
ENUMS,
|
||||
GRPC_MESSAGES,
|
||||
# gRPC
|
||||
GRPC_SERVICE,
|
||||
# Enums
|
||||
AssetStatus,
|
||||
CancelRequest,
|
||||
CancelResponse,
|
||||
Empty,
|
||||
JobRequest,
|
||||
JobResponse,
|
||||
JobStatus,
|
||||
# Models
|
||||
MediaAsset,
|
||||
ProgressRequest,
|
||||
ProgressUpdate,
|
||||
TranscodeJob,
|
||||
TranscodePreset,
|
||||
WorkerStatus,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"MediaAsset",
|
||||
"TranscodePreset",
|
||||
"TranscodeJob",
|
||||
"AssetStatus",
|
||||
"JobStatus",
|
||||
"GRPC_SERVICE",
|
||||
"JobRequest",
|
||||
"JobResponse",
|
||||
"ProgressRequest",
|
||||
"ProgressUpdate",
|
||||
"CancelRequest",
|
||||
"CancelResponse",
|
||||
"WorkerStatus",
|
||||
"Empty",
|
||||
"DATACLASSES",
|
||||
"ENUMS",
|
||||
"GRPC_MESSAGES",
|
||||
"BUILTIN_PRESETS",
|
||||
]
|
||||
Reference in New Issue
Block a user