mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fa81d87dc0
* Updated documentation for the review endpoint * Updated documentation for the review/summary endpoint * Updated documentation for the review/summary endpoint * Documentation for the review activity audio and motion endpoints * Added responses for more review.py endpoints * Added responses for more review.py endpoints * Fixed review.py responses and proper path parameter names * Added body model for /reviews/viewed and /reviews/delete * Updated OpenAPI specification for the review controller endpoints * Run ruff format frigate * Drop significant_motion * Updated frigate-api.yaml * Deleted total_motion * Combine 2 models into generic
32 lines
857 B
Python
32 lines
857 B
Python
from typing import Union
|
|
|
|
from pydantic import BaseModel
|
|
from pydantic.json_schema import SkipJsonSchema
|
|
|
|
from frigate.review.maintainer import SeverityEnum
|
|
|
|
|
|
class ReviewQueryParams(BaseModel):
|
|
cameras: str = "all"
|
|
labels: str = "all"
|
|
zones: str = "all"
|
|
reviewed: int = 0
|
|
limit: Union[int, SkipJsonSchema[None]] = None
|
|
severity: Union[SeverityEnum, SkipJsonSchema[None]] = None
|
|
before: Union[float, SkipJsonSchema[None]] = None
|
|
after: Union[float, SkipJsonSchema[None]] = None
|
|
|
|
|
|
class ReviewSummaryQueryParams(BaseModel):
|
|
cameras: str = "all"
|
|
labels: str = "all"
|
|
zones: str = "all"
|
|
timezone: str = "utc"
|
|
|
|
|
|
class ReviewActivityMotionQueryParams(BaseModel):
|
|
cameras: str = "all"
|
|
before: Union[float, SkipJsonSchema[None]] = None
|
|
after: Union[float, SkipJsonSchema[None]] = None
|
|
scale: int = 30
|