Rename all Python modules, classes, API endpoints, config keys, frontend fetch URLs, and Home Assistant integration URLs from picture-targets to output-targets. Store loads both new and legacy JSON keys for backward compatibility with existing data files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
138 lines
3.3 KiB
Python
138 lines
3.3 KiB
Python
"""Pydantic schemas for API request and response models."""
|
|
|
|
from .common import (
|
|
CaptureImage,
|
|
BorderExtraction,
|
|
ErrorResponse,
|
|
PerformanceMetrics,
|
|
TemplateTestResponse,
|
|
)
|
|
from .system import (
|
|
DisplayInfo,
|
|
DisplayListResponse,
|
|
HealthResponse,
|
|
VersionResponse,
|
|
)
|
|
from .devices import (
|
|
Calibration,
|
|
CalibrationTestModeRequest,
|
|
CalibrationTestModeResponse,
|
|
DeviceCreate,
|
|
DeviceListResponse,
|
|
DeviceResponse,
|
|
DeviceStateResponse,
|
|
DeviceUpdate,
|
|
)
|
|
from .color_strip_sources import (
|
|
ColorStripSourceCreate,
|
|
ColorStripSourceListResponse,
|
|
ColorStripSourceResponse,
|
|
ColorStripSourceUpdate,
|
|
CSSCalibrationTestRequest,
|
|
)
|
|
from .output_targets import (
|
|
OutputTargetCreate,
|
|
OutputTargetListResponse,
|
|
OutputTargetResponse,
|
|
OutputTargetUpdate,
|
|
TargetMetricsResponse,
|
|
TargetProcessingState,
|
|
)
|
|
from .templates import (
|
|
EngineInfo,
|
|
EngineListResponse,
|
|
TemplateAssignment,
|
|
TemplateCreate,
|
|
TemplateListResponse,
|
|
TemplateResponse,
|
|
TemplateTestRequest,
|
|
TemplateUpdate,
|
|
)
|
|
from .filters import (
|
|
FilterInstanceSchema,
|
|
FilterOptionDefSchema,
|
|
FilterTypeListResponse,
|
|
FilterTypeResponse,
|
|
)
|
|
from .postprocessing import (
|
|
PostprocessingTemplateCreate,
|
|
PostprocessingTemplateListResponse,
|
|
PostprocessingTemplateResponse,
|
|
PostprocessingTemplateUpdate,
|
|
PPTemplateTestRequest,
|
|
)
|
|
from .pattern_templates import (
|
|
PatternTemplateCreate,
|
|
PatternTemplateListResponse,
|
|
PatternTemplateResponse,
|
|
PatternTemplateUpdate,
|
|
)
|
|
from .picture_sources import (
|
|
ImageValidateRequest,
|
|
ImageValidateResponse,
|
|
PictureSourceCreate,
|
|
PictureSourceListResponse,
|
|
PictureSourceResponse,
|
|
PictureSourceTestRequest,
|
|
PictureSourceUpdate,
|
|
)
|
|
|
|
__all__ = [
|
|
"CaptureImage",
|
|
"BorderExtraction",
|
|
"ErrorResponse",
|
|
"PerformanceMetrics",
|
|
"TemplateTestResponse",
|
|
"DisplayInfo",
|
|
"DisplayListResponse",
|
|
"HealthResponse",
|
|
"VersionResponse",
|
|
"Calibration",
|
|
"CalibrationTestModeRequest",
|
|
"CalibrationTestModeResponse",
|
|
"DeviceCreate",
|
|
"DeviceListResponse",
|
|
"DeviceResponse",
|
|
"DeviceStateResponse",
|
|
"DeviceUpdate",
|
|
"ColorStripSourceCreate",
|
|
"ColorStripSourceListResponse",
|
|
"ColorStripSourceResponse",
|
|
"ColorStripSourceUpdate",
|
|
"CSSCalibrationTestRequest",
|
|
"OutputTargetCreate",
|
|
"OutputTargetListResponse",
|
|
"OutputTargetResponse",
|
|
"OutputTargetUpdate",
|
|
"TargetMetricsResponse",
|
|
"TargetProcessingState",
|
|
"EngineInfo",
|
|
"EngineListResponse",
|
|
"TemplateAssignment",
|
|
"TemplateCreate",
|
|
"TemplateListResponse",
|
|
"TemplateResponse",
|
|
"TemplateTestRequest",
|
|
"TemplateUpdate",
|
|
"FilterInstanceSchema",
|
|
"FilterOptionDefSchema",
|
|
"FilterTypeListResponse",
|
|
"FilterTypeResponse",
|
|
"PostprocessingTemplateCreate",
|
|
"PostprocessingTemplateListResponse",
|
|
"PostprocessingTemplateResponse",
|
|
"PostprocessingTemplateUpdate",
|
|
"PPTemplateTestRequest",
|
|
"PatternTemplateCreate",
|
|
"PatternTemplateListResponse",
|
|
"PatternTemplateResponse",
|
|
"PatternTemplateUpdate",
|
|
"ImageValidateRequest",
|
|
"ImageValidateResponse",
|
|
"PictureSourceCreate",
|
|
"PictureSourceListResponse",
|
|
"PictureSourceResponse",
|
|
"PictureSourceTestRequest",
|
|
"PictureSourceUpdate",
|
|
]
|