NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Various Tweaks (#22554)
Nicolas Mowenacd10d0e0826
diff --git a/docs/static/frigate-api.yaml b/docs/static/frigate-api.yamlindex 2063514acf..caef92eac3 100644--- a/docs/static/frigate-api.yaml+++ b/docs/static/frigate-api.yaml@@ -10,30 +10,51 @@ servers:- url: http://localhost:5001/apipaths:+ /auth/first_time_login:+ get:+ tags:+ - Auth+ summary: First Time Login+ description: |-+ Return whether the admin first-time login help flag is set in config.++ This endpoint is intentionally unauthenticated so the login page can+ query it before a user is authenticated.+ operationId: first_time_login_auth_first_time_login_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}/auth:get:tags:- Authsummary: Authenticate request- description: |-+ description: >-Authenticates the current request based on proxy headers or JWT token.- This endpoint verifies authentication credentials and manages JWT token refresh.- On success, no JSON body is returned; authentication state is communicated via response headers and cookies.+ This endpoint verifies authentication credentials and manages JWT token+ refresh. On success, no JSON body is returned; authentication state is+ communicated via response headers and cookies.operationId: auth_auth_getresponses:"202":- description: Authentication Accepted (no response body, different headers depending on auth method)+ description: Authentication Accepted (no response body)+ content:+ application/json:+ schema: {}headers:remote-user:description: Authenticated username or "viewer" in proxy-only modeschema:type: stringremote-role:- description: Resolved role (e.g., admin, viewer, or custom)+ description: "Resolved role (e.g., admin, viewer, or custom)"schema:type: stringSet-Cookie:- description: May include refreshed JWT cookie ("frigate-token") when applicable+ description: May include refreshed JWT cookie when applicableschema:type: string"401":@@ -43,9 +64,10 @@ paths:tags:- Authsummary: Get user profile- description: |-- Returns the current authenticated user's profile including username, role, and allowed cameras.- This endpoint requires authentication and returns information about the user's permissions.+ description: >-+ Returns the current authenticated user's profile including username,+ role, and allowed cameras. This endpoint requires authentication and+ returns information about the user's permissions.operationId: profile_profile_getresponses:"200":@@ -53,16 +75,14 @@ paths:content:application/json:schema: {}- "401":- description: Unauthorized/logout:get:tags:- Authsummary: Logout user- description: |-- Logs out the current user by clearing the session cookie.- After logout, subsequent requests will require re-authentication.+ description: >-+ Logs out the current user by clearing the session cookie. After logout,+ subsequent requests will require re-authentication.operationId: logout_logout_getresponses:"200":@@ -70,21 +90,25 @@ paths:content:application/json:schema: {}- "303":- description: See Other (redirects to login page)/login:post:tags:- Authsummary: Login with credentials- description: |-- Authenticates a user with username and password.- Returns a JWT token as a secure HTTP-only cookie that can be used for subsequent API requests.- The JWT token can also be retrieved from the response and used as a Bearer token in the Authorization header.+ description: >-+ Authenticates a user with username and password. Returns a JWT token as+ a secure HTTP-only cookie that can be used for subsequent API requests.+ The JWT token can also be retrieved from the response and used as a+ Bearer token in the Authorization header.+Example using Bearer token:+```- curl -H "Authorization: Bearer <token_value>" https://frigate_ip:8971/api/profile++ curl -H "Authorization: Bearer <token_value>"+ https://frigate_ip:8971/api/profile+```operationId: login_login_postrequestBody:@@ -99,11 +123,6 @@ paths:content:application/json:schema: {}- "401":- description: Login Failed - Invalid credentials- content:- application/json:- schema: {}"422":description: Validation Errorcontent:@@ -115,9 +134,9 @@ paths:tags:- Authsummary: Get all users- description: |-- Returns a list of all users with their usernames and roles.- Requires admin role. Each user object contains the username and assigned role.+ description: >-+ Returns a list of all users with their usernames and roles. Requires+ admin role. Each user object contains the username and assigned role.operationId: get_users_users_getresponses:"200":@@ -125,19 +144,13 @@ paths:content:application/json:schema: {}- "403":- description: Forbidden - Admin role requiredpost:tags:- Authsummary: Create new user- description: |-+ description: >-Creates a new user with the specified username, password, and role.- Requires admin role. Password must meet strength requirements:- - Minimum 8 characters- - At least one uppercase letter- - At least one digit- - At least one special character (!@#$%^&*(),.?":{}\|<>)+ Requires admin role. Password must be at least 12 characters long.operationId: create_user_users_postrequestBody:required: true@@ -151,25 +164,18 @@ paths:content:application/json:schema: {}- "400":- description: Bad Request - Invalid username or role- content:- application/json:- schema: {}- "403":- description: Forbidden - Admin role required"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /users/{username}:+ "/users/{username}":delete:tags:- Authsummary: Delete user- description: |-+ description: >-Deletes a user by username. The built-in admin user cannot be deleted.Requires admin role. Returns success message or error if user not found.operationId: delete_user_users__username__delete@@ -180,36 +186,29 @@ paths:schema:type: stringtitle: Username- description: The username of the user to deleteresponses:"200":description: Successful Responsecontent:application/json:schema: {}- "403":- description: Forbidden - Cannot delete admin user or admin role required"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /users/{username}/password:+ "/users/{username}/password":put:tags:- Authsummary: Update user password- description: |-- Updates a user's password. Users can only change their own password unless they have admin role.- Requires the current password to verify identity for non-admin users.- Password must meet strength requirements:- - Minimum 8 characters- - At least one uppercase letter- - At least one digit- - At least one special character (!@#$%^&*(),.?":{}\|<>)-- If user changes their own password, a new JWT cookie is automatically issued.+ description: >-+ Updates a user's password. Users can only change their own password+ unless they have admin role. Requires the current password to verify+ identity for non-admin users. Password must be at least 12 characters+ long. If user changes their own password, a new JWT cookie is+ automatically issued.operationId: update_password_users__username__password_putparameters:- name: username@@ -218,7 +217,6 @@ paths:schema:type: stringtitle: Username- description: The username of the user whose password to updaterequestBody:required: truecontent:@@ -231,28 +229,21 @@ paths:content:application/json:schema: {}- "400":- description: Bad Request - Current password required or password doesn't meet requirements- "401":- description: Unauthorized - Current password is incorrect- "403":- description: Forbidden - Viewers can only update their own password- "404":- description: Not Found - User not found"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /users/{username}/role:+ "/users/{username}/role":put:tags:- Authsummary: Update user role- description: |-- Updates a user's role. The built-in admin user's role cannot be modified.- Requires admin role. Valid roles are defined in the configuration.+ description: >-+ Updates a user's role. The built-in admin user's role cannot be+ modified. Requires admin role. Valid roles are defined in the+ configuration.operationId: update_role_users__username__role_putparameters:- name: username@@ -261,7 +252,6 @@ paths:schema:type: stringtitle: Username- description: The username of the user whose role to updaterequestBody:required: truecontent:@@ -274,51 +264,39 @@ paths:content:application/json:schema: {}- "400":- description: Bad Request - Invalid role- "403":- description: Forbidden - Cannot modify admin user's role or admin role required"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /faces:+ /go2rtc/streams:get:tags:- - Classification- summary: Get all registered faces- description: |-- Returns a dictionary mapping face names to lists of image filenames.- Each key represents a registered face name, and the value is a list of image- files associated with that face. Supported image formats include .webp, .png,- .jpg, and .jpeg.- operationId: get_faces_faces_get+ - Camera+ summary: Go2Rtc Streams+ operationId: go2rtc_streams_go2rtc_streams_getresponses:"200":description: Successful Responsecontent:application/json:- schema:- $ref: "#/components/schemas/FacesResponse"- /faces/reprocess:- post:+ schema: {}+ "/go2rtc/streams/{camera_name}":+ get:tags:- - Classification- summary: Reprocess a face training image- description: |-- Reprocesses a face training image to update the prediction.- Requires face recognition to be enabled in the configuration. The training file- must exist in the faces/train directory. Returns a success response or an error- message if face recognition is not enabled or the training file is invalid.- operationId: reclassify_face_faces_reprocess_post- requestBody:- content:- application/json:- schema:- type: object- title: Body+ - Camera+ summary: Go2Rtc Camera Stream+ operationId: go2rtc_camera_stream_go2rtc_streams__camera_name__get+ parameters:+ - name: camera_name+ in: path+ required: true+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Camera Nameresponses:"200":description: Successful Response@@ -331,210 +309,641 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /media/sync:- post:- tags:- - App- summary: Start media sync job- description: |-- Start an asynchronous media sync job to find and (optionally) remove orphaned media files.- Returns 202 with job details when queued, or 409 if a job is already running.- operationId: sync_media_media_sync_post- requestBody:- required: true- content:- application/json:- responses:- "202":- description: Accepted - Job queued- "409":- description: Conflict - Job already running- "422":- description: Validation Error-- /media/sync/current:- get:- tags:- - App- summary: Get current media sync job- description: |-- Retrieve the current running media sync job, if any. Returns the job details or null when no job is active.- operationId: get_media_sync_current_media_sync_current_get- responses:- "200":- description: Successful Response- "422":- description: Validation Error-- /media/sync/status/{job_id}:- get:- tags:- - App- summary: Get media sync job status- description: |-- Get status and results for the specified media sync job id. Returns 200 with job details including results, or 404 if the job is not found.- operationId: get_media_sync_status_media_sync_status__job_id__get- parameters:- - name: job_id- in: path- responses:- "200":- description: Successful Response- "404":- description: Not Found - Job not found- "422":- description: Validation Error- /faces/train/{name}/classify:- post:+ "/go2rtc/streams/{stream_name}":+ put:tags:- - Classification- summary: Classify and save a face training image- description: |-- Adds a training image to a specific face name for face recognition.- Accepts either a training file from the train directory or an event_id to extract- the face from. The image is saved to the face's directory and the face classifier- is cleared to incorporate the new training data. Returns a success message with- the new filename or an error if face recognition is not enabled, the file/event- is invalid, or the face cannot be extracted.- operationId: train_face_faces_train__name__classify_post+ - Camera+ summary: Go2Rtc Add Stream+ description: Add or update a go2rtc stream configuration.+ operationId: go2rtc_add_stream_go2rtc_streams__stream_name__putparameters:- - name: name+ - name: stream_namein: pathrequired: trueschema:type: string- title: Name- requestBody:- content:- application/json:- schema:- type: object- title: Body+ title: Stream Name+ - name: src+ in: query+ required: false+ schema:+ type: string+ default: ""+ title: Srcresponses:"200":description: Successful Responsecontent:application/json:- schema:- $ref: "#/components/schemas/GenericResponse"+ schema: {}"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /faces/{name}/create:- post:+ delete:tags:- - Classification- summary: Create a new face name- description: |-- Creates a new folder for a face name in the faces directory.- This is used to organize face training images. The face name is sanitized and- spaces are replaced with underscores. Returns a success message or an error if- face recognition is not enabled.- operationId: create_face_faces__name__create_post+ - Camera+ summary: Go2Rtc Delete Stream+ description: Delete a go2rtc stream.+ operationId: go2rtc_delete_stream_go2rtc_streams__stream_name__deleteparameters:- - name: name+ - name: stream_namein: pathrequired: trueschema:type: string- title: Name+ title: Stream Nameresponses:"200":description: Successful Responsecontent:application/json:- schema:- $ref: "#/components/schemas/GenericResponse"+ schema: {}"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /faces/{name}/register:- post:+ /ffprobe:+ get:tags:- - Classification- summary: Register a face image- description: >-- Registers a face image for a specific face name by uploading an image- file.- The uploaded image is processed and added to the face recognition system. Returns a- success response with details about the registration, or an error if face recognition- is not enabled or the image cannot be processed.- operationId: register_face_faces__name__register_post+ - Camera+ summary: Ffprobe+ operationId: ffprobe_ffprobe_getparameters:- - name: name- in: path- required: true+ - name: paths+ in: query+ required: falseschema:type: string- title: Name- requestBody:- required: true- content:- multipart/form-data:- schema:- $ref: >-- #/components/schemas/Body_register_face_faces__name__register_post+ default: ""+ title: Paths+ - name: detailed+ in: query+ required: false+ schema:+ type: boolean+ default: false+ title: Detailedresponses:"200":description: Successful Responsecontent:application/json:- schema:- $ref: "#/components/schemas/GenericResponse"+ schema: {}"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /faces/recognize:- post:+ /ffprobe/snapshot:+ get:tags:- - Classification- summary: Recognize a face from an uploaded image- description: |-- Recognizes a face from an uploaded image file by comparing it against- registered faces in the system. Returns the recognized face name and confidence score,- or an error if face recognition is not enabled or the image cannot be processed.- operationId: recognize_face_faces_recognize_post- requestBody:- required: true- content:- multipart/form-data:- schema:- $ref: "#/components/schemas/Body_recognize_face_faces_recognize_post"+ - Camera+ summary: Ffprobe Snapshot+ description: Get a snapshot from a stream URL using ffmpeg.+ operationId: ffprobe_snapshot_ffprobe_snapshot_get+ parameters:+ - name: url+ in: query+ required: false+ schema:+ type: string+ default: ""+ title: Url+ - name: timeout+ in: query+ required: false+ schema:+ type: integer+ default: 10+ title: Timeoutresponses:"200":description: Successful Responsecontent:application/json:- schema:- $ref: "#/components/schemas/FaceRecognitionResponse"+ schema: {}"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /faces/{name}/delete:- post:+ /reolink/detect:+ get:tags:- - Classification- summary: Delete face images+ - Camera+ summary: Reolink Detectdescription: >-- Deletes specific face images for a given face name. The image IDs must- belong- to the specified face folder. To delete an entire face folder, all image IDs in that- folder must be sent. Returns a success message or an error if face recognition is not enabled.- operationId: deregister_faces_faces__name__delete_post+ Detect Reolink camera capabilities and recommend optimal protocol.+++ Queries the Reolink camera API to determine the camera's resolution++ and recommends either http-flv (for 5MP and below) or rtsp (for higher+ resolutions).+ operationId: reolink_detect_reolink_detect_getparameters:- - name: name+ - name: host+ in: query+ required: false+ schema:+ type: string+ default: ""+ title: Host+ - name: username+ in: query+ required: false+ schema:+ type: string+ default: ""+ title: Username+ - name: password+ in: query+ required: false+ schema:+ type: string+ default: ""+ title: Password+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /onvif/probe:+ get:+ tags:+ - Camera+ summary: Probe ONVIF device+ description: >-+ Probe an ONVIF device to determine capabilities and optionally test+ available stream URIs. Query params: host (required), port (default 80),+ username, password, test (boolean), auth_type (basic or digest, default+ basic).+ operationId: onvif_probe_onvif_probe_get+ parameters:+ - name: host+ in: query+ required: false+ schema:+ type: string+ title: Host+ - name: port+ in: query+ required: false+ schema:+ type: integer+ default: 80+ title: Port+ - name: username+ in: query+ required: false+ schema:+ type: string+ default: ""+ title: Username+ - name: password+ in: query+ required: false+ schema:+ type: string+ default: ""+ title: Password+ - name: test+ in: query+ required: false+ schema:+ type: boolean+ default: false+ title: Test+ - name: auth_type+ in: query+ required: false+ schema:+ type: string+ default: basic+ title: Auth Type+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/cameras/{camera_name}":+ delete:+ tags:+ - Camera+ summary: Delete Camera+ description: |-+ Delete a camera and all its associated data.++ Removes the camera from config, stops processes, and cleans up+ all database entries and media files.++ Args:+ camera_name: Name of the camera to delete+ delete_exports: Whether to also delete exports for this camera+ operationId: delete_camera_cameras__camera_name__delete+ parameters:+ - name: camera_name+ in: path+ required: true+ schema:+ type: string+ title: Camera Name+ - name: delete_exports+ in: query+ required: false+ schema:+ type: boolean+ default: false+ title: Delete Exports+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/camera/{camera_name}/set/{feature}/{sub_command}":+ put:+ tags:+ - Camera+ summary: Camera Set+ description: Set a camera feature state. Use camera_name='*' to target all cameras.+ operationId: camera_set_camera__camera_name__set__feature___sub_command__put+ parameters:+ - name: camera_name+ in: path+ required: true+ schema:+ type: string+ title: Camera Name+ - name: feature+ in: path+ required: true+ schema:+ type: string+ title: Feature+ - name: sub_command+ in: path+ required: true+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Sub Command+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/CameraSetBody"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/camera/{camera_name}/set/{feature}":+ put:+ tags:+ - Camera+ summary: Camera Set+ description: Set a camera feature state. Use camera_name='*' to target all cameras.+ operationId: camera_set_camera__camera_name__set__feature__put+ parameters:+ - name: camera_name+ in: path+ required: true+ schema:+ type: string+ title: Camera Name+ - name: feature+ in: path+ required: true+ schema:+ type: string+ title: Feature+ - name: sub_command+ in: query+ required: false+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Sub Command+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/CameraSetBody"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /chat/tools:+ get:+ tags:+ - Chat+ summary: Get available tools+ description: Returns OpenAI-compatible tool definitions for function calling.+ operationId: get_tools_chat_tools_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ /chat/execute:+ post:+ tags:+ - Chat+ summary: Execute a tool+ description: Execute a tool function call from an LLM.+ operationId: execute_tool_chat_execute_post+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ToolExecuteRequest"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /chat/completion:+ post:+ tags:+ - Chat+ summary: Chat completion with tool calling+ description: >-+ Send a chat message to the configured GenAI provider with tool calling+ support. The LLM can call Frigate tools to answer questions about your+ cameras and events.+ operationId: chat_completion_chat_completion_post+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ChatCompletionRequest"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /faces:+ get:+ tags:+ - Classification+ summary: Get all registered faces+ description: |-+ Returns a dictionary mapping face names to lists of image filenames.+ Each key represents a registered face name, and the value is a list of image+ files associated with that face. Supported image formats include .webp, .png,+ .jpg, and .jpeg.+ operationId: get_faces_faces_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/FacesResponse"+ /faces/reprocess:+ post:+ tags:+ - Classification+ summary: Reprocess a face training image+ description: |-+ Reprocesses a face training image to update the prediction.+ Requires face recognition to be enabled in the configuration. The training file+ must exist in the faces/train directory. Returns a success response or an error+ message if face recognition is not enabled or the training file is invalid.+ operationId: reclassify_face_faces_reprocess_post+ requestBody:+ content:+ application/json:+ schema:+ type: object+ title: Body+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/faces/train/{name}/classify":+ post:+ tags:+ - Classification+ summary: Classify and save a face training image+ description: |-+ Adds a training image to a specific face name for face recognition.+ Accepts either a training file from the train directory or an event_id to extract+ the face from. The image is saved to the face's directory and the face classifier+ is cleared to incorporate the new training data. Returns a success message with+ the new filename or an error if face recognition is not enabled, the file/event+ is invalid, or the face cannot be extracted.+ operationId: train_face_faces_train__name__classify_post+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string+ title: Name+ requestBody:+ content:+ application/json:+ schema:+ type: object+ title: Body+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/faces/{name}/create":+ post:+ tags:+ - Classification+ summary: Create a new face name+ description: |-+ Creates a new folder for a face name in the faces directory.+ This is used to organize face training images. The face name is sanitized and+ spaces are replaced with underscores. Returns a success message or an error if+ face recognition is not enabled.+ operationId: create_face_faces__name__create_post+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string+ title: Name+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/faces/{name}/register":+ post:+ tags:+ - Classification+ summary: Register a face image+ description: >-+ Registers a face image for a specific face name by uploading an image+ file.+ The uploaded image is processed and added to the face recognition system. Returns a+ success response with details about the registration, or an error if face recognition+ is not enabled or the image cannot be processed.+ operationId: register_face_faces__name__register_post+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string+ title: Name+ requestBody:+ required: true+ content:+ multipart/form-data:+ schema:+ $ref: >-+ #/components/schemas/Body_register_face_faces__name__register_post+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /faces/recognize:+ post:+ tags:+ - Classification+ summary: Recognize a face from an uploaded image+ description: |-+ Recognizes a face from an uploaded image file by comparing it against+ registered faces in the system. Returns the recognized face name and confidence score,+ or an error if face recognition is not enabled or the image cannot be processed.+ operationId: recognize_face_faces_recognize_post+ requestBody:+ required: true+ content:+ multipart/form-data:+ schema:+ $ref: "#/components/schemas/Body_recognize_face_faces_recognize_post"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/FaceRecognitionResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/faces/{name}/delete":+ post:+ tags:+ - Classification+ summary: Delete face images+ description: >-+ Deletes specific face images for a given face name. The image IDs must+ belong+ to the specified face folder. To delete an entire face folder, all image IDs in that+ folder must be sent. Returns a success message or an error if face recognition is not enabled.+ operationId: deregister_faces_faces__name__delete_post+ parameters:+ - name: namein: pathrequired: trueschema:@@ -559,7 +968,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /faces/{old_name}/rename:+ "/faces/{old_name}/rename":put:tags:- Classification@@ -669,48 +1078,59 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /classification/attributes:+ "/classification/{name}/dataset":get:tags:- Classification- summary: Get custom classification attributes+ summary: Get classification datasetdescription: |-- Returns custom classification attributes for a given object type.- Only includes models with classification_type set to 'attribute'.- By default returns a flat sorted list of all attribute labels.- If group_by_model is true, returns attributes grouped by model name.- operationId: get_custom_attributes_classification_attributes_get+ Gets the dataset for a specific classification model.+ The name must exist in the classification models. Returns a success message or an error if the name is invalid.+ operationId: get_classification_dataset_classification__name__dataset_getparameters:- - name: object_type- in: query+ - name: name+ in: path+ required: trueschema:type: string- - name: group_by_model- in: query- schema:- type: boolean- default: false+ title: Nameresponses:"200":description: Successful Response+ content:+ application/json:+ schema: {}"422":description: Validation Error- /classification/{name}/dataset:+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /classification/attributes:get:tags:- Classification- summary: Get classification dataset- description: |-- Gets the dataset for a specific classification model.- The name must exist in the classification models. Returns a success message or an error if the name is invalid.- operationId: get_classification_dataset_classification__name__dataset_get+ summary: Get custom classification attributes+ description: |-+ Returns custom classification attributes for a given object type.+ Only includes models with classification_type set to 'attribute'.+ By default returns a flat sorted list of all attribute labels.+ If group_by_model is true, returns attributes grouped by model name.+ operationId: get_custom_attributes_classification_attributes_getparameters:- - name: name- in: path- required: true+ - name: object_type+ in: query+ required: falseschema:type: string- title: Name+ title: Object Type+ - name: group_by_model+ in: query+ required: false+ schema:+ type: boolean+ default: false+ title: Group By Modelresponses:"200":description: Successful Response@@ -723,7 +1143,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /classification/{name}/train:+ "/classification/{name}/train":get:tags:- Classification@@ -779,7 +1199,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /classification/{name}/dataset/{category}/delete:+ "/classification/{name}/dataset/{category}/delete":post:tags:- Classification@@ -822,7 +1242,49 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /classification/{name}/dataset/categorize:+ "/classification/{name}/dataset/{old_category}/rename":+ put:+ tags:+ - Classification+ summary: Rename a classification category+ description: |-+ Renames a classification category for a given classification model.+ The old category must exist and the new name must be valid. Returns a success message or an error if the name is invalid.+ operationId: >-+ rename_classification_category_classification__name__dataset__old_category__rename_put+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string+ title: Name+ - name: old_category+ in: path+ required: true+ schema:+ type: string+ title: Old Category+ requestBody:+ content:+ application/json:+ schema:+ type: object+ title: Body+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/classification/{name}/dataset/categorize":post:tags:- Classification@@ -859,7 +1321,44 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /classification/{name}/train/delete:+ "/classification/{name}/dataset/{category}/create":+ post:+ tags:+ - Classification+ summary: Create an empty classification category folder+ description: |-+ Creates an empty folder for a classification category.+ This is used to create folders for categories that don't have images yet.+ Returns a success message or an error if the name is invalid.+ operationId: >-+ create_classification_category_classification__name__dataset__category__create_post+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string+ title: Name+ - name: category+ in: path+ required: true+ schema:+ type: string+ title: Category+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/classification/{name}/train/delete":post:tags:- Classification@@ -895,6 +1394,88 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"+ /classification/generate_examples/state:+ post:+ tags:+ - Classification+ summary: Generate state classification examples+ description: Generate examples for state classification.+ operationId: generate_state_examples_classification_generate_examples_state_post+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenerateStateExamplesBody"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /classification/generate_examples/object:+ post:+ tags:+ - Classification+ summary: Generate object classification examples+ description: Generate examples for object classification.+ operationId: generate_object_examples_classification_generate_examples_object_post+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenerateObjectExamplesBody"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/classification/{name}":+ delete:+ tags:+ - Classification+ summary: Delete a classification model+ description: |-+ Deletes a specific classification model and all its associated data.+ Works even if the model is not in the config (e.g., partially created during wizard).+ Returns a success message.+ operationId: delete_classification_model_classification__name__delete+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string+ title: Name+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"/review:get:tags:@@ -928,7 +1509,6 @@ paths:required: falseschema:type: integer- default: 0title: Reviewed- name: limitin: query@@ -1146,7 +1726,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /review/event/{event_id}:+ "/review/event/{event_id}":get:tags:- Review@@ -1172,7 +1752,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /review/{review_id}:+ "/review/{review_id}":get:tags:- Review@@ -1198,7 +1778,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /review/{review_id}/viewed:+ "/review/{review_id}/viewed":delete:tags:- Review@@ -1224,7 +1804,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /review/summarize/start/{start_ts}/end/{end_ts}:+ "/review/summarize/start/{start_ts}/end/{end_ts}":post:tags:- Review@@ -1282,43 +1862,6 @@ paths:content:application/json:schema: {}- /go2rtc/streams:- get:- tags:- - App- summary: Go2Rtc Streams- operationId: go2rtc_streams_go2rtc_streams_get- responses:- "200":- description: Successful Response- content:- application/json:- schema: {}- /go2rtc/streams/{camera_name}:- get:- tags:- - App- summary: Go2Rtc Camera Stream- operationId: go2rtc_camera_stream_go2rtc_streams__camera_name__get- parameters:- - name: camera_name- in: path- required: true- schema:- type: string- title: Camera Name- responses:- "200":- description: Successful Response- content:- application/json:- schema: {}- "422":- description: Validation Error- content:- application/json:- schema:- $ref: "#/components/schemas/HTTPValidationError"/version:get:tags:@@ -1394,6 +1937,60 @@ paths:content:application/json:schema: {}+ /profiles:+ get:+ tags:+ - App+ summary: Get Profiles+ description: List all available profiles and the currently active profile.+ operationId: get_profiles_profiles_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ /profile/active:+ get:+ tags:+ - App+ summary: Get Active Profile+ description: Get the currently active profile.+ operationId: get_active_profile_profile_active_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ /ffmpeg/presets:+ get:+ tags:+ - App+ summary: Ffmpeg Presets+ description: Return available ffmpeg preset keys for config UI usage.+ operationId: ffmpeg_presets_ffmpeg_presets_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ /config/raw_paths:+ get:+ tags:+ - App+ summary: Config Raw Paths+ description: >-+ Admin-only endpoint that returns camera paths and go2rtc streams without+ credential masking.+ operationId: config_raw_paths_config_raw_paths_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}/config/raw:get:tags:@@ -1442,39 +2039,13 @@ paths:tags:- Appsummary: Config Set- operationId: config_set_config_set_put- requestBody:- required: true- content:- application/json:- schema:- $ref: "#/components/schemas/AppConfigSetBody"- responses:- "200":- description: Successful Response- content:- application/json:- schema: {}- "422":- description: Validation Error- content:- application/json:- schema:- $ref: "#/components/schemas/HTTPValidationError"- /ffprobe:- get:- tags:- - App- summary: Ffprobe- operationId: ffprobe_ffprobe_get- parameters:- - name: paths- in: query- required: false- schema:- type: string- default: ""- title: Paths+ operationId: config_set_config_set_put+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/AppConfigSetBody"responses:"200":description: Successful Response@@ -1511,7 +2082,7 @@ paths:content:application/json:schema: {}- /logs/{service}:+ "/logs/{service}":get:tags:- App@@ -1588,6 +2159,79 @@ paths:content:application/json:schema: {}+ /media/sync:+ post:+ tags:+ - App+ summary: Start media sync job+ description: >-+ Start an asynchronous media sync job to find and (optionally) remove+ orphaned media files.+ Returns 202 with job details when queued, or 409 if a job is already running.+ operationId: sync_media_media_sync_post+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/MediaSyncBody"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /media/sync/current:+ get:+ tags:+ - App+ summary: Get current media sync job+ description: >-+ Retrieve the current running media sync job, if any. Returns the job+ details+ or null when no job is active.+ operationId: get_media_sync_current_media_sync_current_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "/media/sync/status/{job_id}":+ get:+ tags:+ - App+ summary: Get media sync job status+ description: >-+ Get status and results for the specified media sync job id. Returns 200+ with+ job details including results, or 404 if the job is not found.+ operationId: get_media_sync_status_media_sync_status__job_id__get+ parameters:+ - name: job_id+ in: path+ required: true+ schema:+ type: string+ title: Job Id+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"/labels:get:tags:@@ -1641,6 +2285,18 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"+ /audio_labels:+ get:+ tags:+ - App+ summary: Get Audio Labels+ operationId: get_audio_labels_audio_labels_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}/plus/models:get:tags:@@ -1807,7 +2463,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /preview/{camera_name}/start/{start_ts}/end/{end_ts}:+ "/preview/{camera_name}/start/{start_ts}/end/{end_ts}":get:tags:- Preview@@ -1823,9 +2479,7 @@ paths:in: pathrequired: trueschema:- anyOf:- - type: string- - type: "null"+ type: stringtitle: Camera Name- name: start_tsin: path@@ -1857,7 +2511,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /preview/{year_month}/{day}/{hour}/{camera_name}/{tz_name}:+ "/preview/{year_month}/{day}/{hour}/{camera_name}/{tz_name}":get:tags:- Preview@@ -1892,9 +2546,7 @@ paths:in: pathrequired: trueschema:- anyOf:- - type: string- - type: "null"+ type: stringtitle: Camera Name- name: tz_namein: path@@ -1920,7 +2572,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /preview/{camera_name}/start/{start_ts}/end/{end_ts}/frames:+ "/preview/{camera_name}/start/{start_ts}/end/{end_ts}/frames":get:tags:- Preview@@ -1971,68 +2623,270 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /notifications/pubkey:- get:+ /notifications/pubkey:+ get:+ tags:+ - Notifications+ summary: Get VAPID public key+ description: |-+ Gets the VAPID public key for the notifications.+ Returns the public key or an error if notifications are not enabled.+ operationId: get_vapid_pub_key_notifications_pubkey_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ /notifications/register:+ post:+ tags:+ - Notifications+ summary: Register notifications+ description: |-+ Registers a notifications subscription.+ Returns a success message or an error if the subscription is not provided.+ operationId: register_notifications_notifications_register_post+ requestBody:+ content:+ application/json:+ schema:+ type: object+ title: Body+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /exports:+ get:+ tags:+ - Export+ summary: Get exports+ description: |-+ Gets all exports from the database for cameras the user has access to.+ Returns a list of exports ordered by date (most recent first).+ operationId: get_exports_exports_get+ parameters:+ - name: export_case_id+ in: query+ required: false+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Export Case Id+ - name: cameras+ in: query+ required: false+ schema:+ anyOf:+ - type: string+ - type: "null"+ default: all+ title: Cameras+ - name: start_date+ in: query+ required: false+ schema:+ anyOf:+ - type: number+ - type: "null"+ title: Start Date+ - name: end_date+ in: query+ required: false+ schema:+ anyOf:+ - type: number+ - type: "null"+ title: End Date+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ type: array+ items:+ $ref: "#/components/schemas/ExportModel"+ title: Response Get Exports Exports Get+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /cases:+ get:+ tags:+ - Export+ summary: Get export cases+ description: Gets all export cases from the database.+ operationId: get_export_cases_cases_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ type: array+ items:+ $ref: "#/components/schemas/ExportCaseModel"+ title: Response Get Export Cases Cases Get+ post:+ tags:+ - Export+ summary: Create export case+ description: Creates a new export case.+ operationId: create_export_case_cases_post+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ExportCaseCreateBody"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ExportCaseModel"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/cases/{case_id}":+ get:+ tags:+ - Export+ summary: Get a single export case+ description: Gets a specific export case by ID.+ operationId: get_export_case_cases__case_id__get+ parameters:+ - name: case_id+ in: path+ required: true+ schema:+ type: string+ title: Case Id+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ExportCaseModel"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ patch:+ tags:+ - Export+ summary: Update export case+ description: Updates an existing export case.+ operationId: update_export_case_cases__case_id__patch+ parameters:+ - name: case_id+ in: path+ required: true+ schema:+ type: string+ title: Case Id+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ExportCaseUpdateBody"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ delete:tags:- - Notifications- summary: Get VAPID public key+ - Export+ summary: Delete export casedescription: |-- Gets the VAPID public key for the notifications.- Returns the public key or an error if notifications are not enabled.- operationId: get_vapid_pub_key_notifications_pubkey_get+ Deletes an export case.+ Exports that reference this case will have their export_case set to null.+ operationId: delete_export_case_cases__case_id__delete+ parameters:+ - name: case_id+ in: path+ required: true+ schema:+ type: string+ title: Case Idresponses:"200":description: Successful Responsecontent:application/json:- schema: {}- /notifications/register:- post:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/export/{export_id}/case":+ patch:tags:- - Notifications- summary: Register notifications- description: |-- Registers a notifications subscription.- Returns a success message or an error if the subscription is not provided.- operationId: register_notifications_notifications_register_post+ - Export+ summary: Assign export to case+ description: "Assigns an export to a case, or unassigns it if export_case_id is null."+ operationId: assign_export_case_export__export_id__case_patch+ parameters:+ - name: export_id+ in: path+ required: true+ schema:+ type: string+ title: Export IdrequestBody:+ required: truecontent:application/json:schema:- type: object- title: Body+ $ref: "#/components/schemas/ExportCaseAssignBody"responses:"200":description: Successful Responsecontent:application/json:- schema: {}+ schema:+ $ref: "#/components/schemas/GenericResponse""422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /exports:- get:- tags:- - Export- summary: Get exports- description: |-- Gets all exports from the database for cameras the user has access to.- Returns a list of exports ordered by date (most recent first).- operationId: get_exports_exports_get- responses:- "200":- description: Successful Response- content:- application/json:- schema:- type: array- items:- $ref: "#/components/schemas/ExportModel"- title: Response Get Exports Exports Get- /export/{camera_name}/start/{start_time}/end/{end_time}:+ "/export/{camera_name}/start/{start_time}/end/{end_time}":post:tags:- Export@@ -2084,7 +2938,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /export/{event_id}/rename:+ "/export/{event_id}/rename":patch:tags:- Export@@ -2119,7 +2973,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /export/{event_id}:+ "/export/{event_id}":delete:tags:- Export@@ -2145,7 +2999,61 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /exports/{export_id}:+ "/export/custom/{camera_name}/start/{start_time}/end/{end_time}":+ post:+ tags:+ - Export+ summary: Start custom recording export+ description: >-+ Starts an export of a recording for the specified time range using+ custom FFmpeg arguments.+ The export can be from recordings or preview footage. Returns the export ID if+ successful, or an error message if the camera is invalid or no recordings/previews+ are found for the time range. If ffmpeg_input_args and ffmpeg_output_args are not provided,+ defaults to timelapse export settings.+ operationId: >-+ export_recording_custom_export_custom__camera_name__start__start_time__end__end_time__post+ parameters:+ - name: camera_name+ in: path+ required: true+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ - name: start_time+ in: path+ required: true+ schema:+ type: number+ title: Start Time+ - name: end_time+ in: path+ required: true+ schema:+ type: number+ title: End Time+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/ExportRecordingsCustomBody"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/StartExportResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/exports/{export_id}":get:tags:- Export@@ -2236,6 +3144,15 @@ paths:- type: "null"default: alltitle: Sub Labels+ - name: attributes+ in: query+ required: false+ schema:+ anyOf:+ - type: string+ - type: "null"+ default: all+ title: Attributes- name: zonein: queryrequired: false@@ -2286,7 +3203,7 @@ paths:anyOf:- type: string- type: "null"- default: 00:00,24:00+ default: "00:00,24:00"title: Time Range- name: has_clipin: query@@ -2571,6 +3488,24 @@ paths:- type: "null"default: alltitle: Labels+ - name: sub_labels+ in: query+ required: false+ schema:+ anyOf:+ - type: string+ - type: "null"+ default: all+ title: Sub Labels+ - name: attributes+ in: query+ required: false+ schema:+ anyOf:+ - type: string+ - type: "null"+ default: all+ title: Attributes- name: zonesin: queryrequired: false@@ -2603,7 +3538,7 @@ paths:anyOf:- type: string- type: "null"- default: 00:00,24:00+ default: "00:00,24:00"title: Time Range- name: has_clipin: query@@ -2743,7 +3678,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}:+ "/events/{event_id}":get:tags:- Events@@ -2798,11 +3733,11 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/retain:+ "/events/{event_id}/retain":post:tags:- Events- summary: Set event retain indefinitely+ summary: Set event retain indefinitely.description: |-Sets an event to retain indefinitely.Returns a success message or an error if the event is not found.@@ -2857,7 +3792,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/plus:+ "/events/{event_id}/plus":post:tags:- Events@@ -2891,7 +3826,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/false_positive:+ "/events/{event_id}/false_positive":put:tags:- Events@@ -2921,7 +3856,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/sub_label:+ "/events/{event_id}/sub_label":post:tags:- Events@@ -2956,7 +3891,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/recognized_license_plate:+ "/events/{event_id}/recognized_license_plate":post:tags:- Events@@ -2991,15 +3926,14 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/attributes:+ "/events/{event_id}/attributes":post:tags:- Eventssummary: Set custom classification attributes- description: |-+ description: >-Sets an event's custom classification attributes for all attribute-typemodels that apply to the event's object type.- Returns a success message or an error if the event is not found.operationId: set_attributes_events__event_id__attributes_postparameters:- name: event_id@@ -3027,7 +3961,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/description:+ "/events/{event_id}/description":post:tags:- Events@@ -3062,7 +3996,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/description/regenerate:+ "/events/{event_id}/description/regenerate":put:tags:- Events@@ -3165,7 +4099,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{camera_name}/{label}/create:+ "/events/{camera_name}/{label}/create":post:tags:- Events@@ -3200,7 +4134,6 @@ paths:duration: 30include_recording: truedraw: {}- pre_capture: nullresponses:"200":description: Successful Response@@ -3214,7 +4147,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/end:+ "/events/{event_id}/end":put:tags:- Events@@ -3292,7 +4225,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /trigger/embedding/{camera_name}/{name}:+ "/trigger/embedding/{camera_name}/{name}":put:tags:- Events@@ -3373,7 +4306,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /triggers/status/{camera_name}:+ "/triggers/status/{camera_name}":get:tags:- Events@@ -3403,7 +4336,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}:+ "/{camera_name}":get:tags:- Media@@ -3492,7 +4425,7 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/ptz/info:+ "/{camera_name}/ptz/info":get:tags:- Media@@ -3519,11 +4452,15 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/latest.{extension}:+ "/{camera_name}/latest.{extension}":get:tags:- Mediasummary: Latest Frame+ description: >-+ Returns the latest frame from the specified camera in the requested+ format (jpg, png, webp). Falls back to preview frames if the camera is+ offline.operationId: latest_frame__camera_name__latest__extension__getparameters:- name: camera_name@@ -3600,26 +4537,150 @@ paths:required: falseschema:anyOf:- - type: integer+ - type: integer+ - type: "null"+ default: 70+ title: Quality+ - name: height+ in: query+ required: false+ schema:+ anyOf:+ - type: integer+ - type: "null"+ title: Height+ - name: store+ in: query+ required: false+ schema:+ anyOf:+ - type: integer+ - type: "null"+ title: Store+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/recordings/{frame_time}/snapshot.{format}":+ get:+ tags:+ - Media+ summary: Get Snapshot From Recording+ operationId: >-+ get_snapshot_from_recording__camera_name__recordings__frame_time__snapshot__format__get+ parameters:+ - name: camera_name+ in: path+ required: true+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ - name: frame_time+ in: path+ required: true+ schema:+ type: number+ title: Frame Time+ - name: format+ in: path+ required: true+ schema:+ type: string+ enum:+ - png+ - jpg+ title: Format+ - name: height+ in: query+ required: false+ schema:+ type: integer+ title: Height+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/plus/{frame_time}":+ post:+ tags:+ - Media+ summary: Submit Recording Snapshot To Plus+ operationId: submit_recording_snapshot_to_plus__camera_name__plus__frame_time__post+ parameters:+ - name: camera_name+ in: path+ required: true+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ - name: frame_time+ in: path+ required: true+ schema:+ type: string+ title: Frame Time+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/start/{start_ts}/end/{end_ts}/clip.mp4":+ get:+ tags:+ - Media+ summary: Recording Clip+ description: >-+ For iOS devices, use the master.m3u8 HLS link instead of clip.mp4.+ Safari does not reliably process progressive mp4 files.+ operationId: recording_clip__camera_name__start__start_ts__end__end_ts__clip_mp4_get+ parameters:+ - name: camera_name+ in: path+ required: true+ schema:+ anyOf:+ - type: string- type: "null"- default: 70- title: Quality- - name: height- in: query- required: false+ title: Camera Name+ - name: start_ts+ in: path+ required: trueschema:- anyOf:- - type: integer- - type: "null"- title: Height- - name: store- in: query- required: false+ type: number+ title: Start Ts+ - name: end_ts+ in: path+ required: trueschema:- anyOf:- - type: integer- - type: "null"- title: Store+ type: number+ title: End Tsresponses:"200":description: Successful Response@@ -3632,13 +4693,15 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/recordings/{frame_time}/snapshot.{format}:+ "/vod/{camera_name}/start/{start_ts}/end/{end_ts}":get:tags:- Media- summary: Get Snapshot From Recording- operationId: >-- get_snapshot_from_recording__camera_name__recordings__frame_time__snapshot__format__get+ summary: Vod Ts+ description: >-+ Returns an HLS playlist for the specified timestamp-range on the+ specified camera. Append /master.m3u8 or /index.m3u8 for HLS playback.+ operationId: vod_ts_vod__camera_name__start__start_ts__end__end_ts__getparameters:- name: camera_namein: path@@ -3648,27 +4711,25 @@ paths:- type: string- type: "null"title: Camera Name- - name: frame_time+ - name: start_tsin: pathrequired: trueschema:type: number- title: Frame Time- - name: format+ title: Start Ts+ - name: end_tsin: pathrequired: trueschema:- type: string- enum:- - png- - jpg- title: Format- - name: height+ type: number+ title: End Ts+ - name: force_discontinuityin: queryrequired: falseschema:- type: integer- title: Height+ type: boolean+ default: false+ title: Force Discontinuityresponses:"200":description: Successful Response@@ -3681,13 +4742,34 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/plus/{frame_time}:- post:+ "/vod/{year_month}/{day}/{hour}/{camera_name}":+ get:tags:- Media- summary: Submit Recording Snapshot To Plus- operationId: submit_recording_snapshot_to_plus__camera_name__plus__frame_time__post+ summary: Vod Hour No Timezone+ description: >-+ Returns an HLS playlist for the specified date-time on the specified+ camera. Append /master.m3u8 or /index.m3u8 for HLS playback.+ operationId: vod_hour_no_timezone_vod__year_month___day___hour___camera_name__getparameters:+ - name: year_month+ in: path+ required: true+ schema:+ type: string+ title: Year Month+ - name: day+ in: path+ required: true+ schema:+ type: integer+ title: Day+ - name: hour+ in: path+ required: true+ schema:+ type: integer+ title: Hour- name: camera_namein: pathrequired: true@@ -3696,12 +4778,6 @@ paths:- type: string- type: "null"title: Camera Name- - name: frame_time- in: path- required: true- schema:- type: string- title: Frame Timeresponses:"200":description: Successful Response@@ -3714,42 +4790,86 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /recordings/storage:+ "/vod/{year_month}/{day}/{hour}/{camera_name}/{tz_name}":get:tags:- Media- summary: Get Recordings Storage Usage- operationId: get_recordings_storage_usage_recordings_storage_get+ summary: Vod Hour+ description: >-+ Returns an HLS playlist for the specified date-time (with timezone) on+ the specified camera. Append /master.m3u8 or /index.m3u8 for HLS+ playback.+ operationId: vod_hour_vod__year_month___day___hour___camera_name___tz_name__get+ parameters:+ - name: year_month+ in: path+ required: true+ schema:+ type: string+ title: Year Month+ - name: day+ in: path+ required: true+ schema:+ type: integer+ title: Day+ - name: hour+ in: path+ required: true+ schema:+ type: integer+ title: Hour+ - name: camera_name+ in: path+ required: true+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ - name: tz_name+ in: path+ required: true+ schema:+ type: string+ title: Tz Nameresponses:"200":description: Successful Responsecontent:application/json:schema: {}- /recordings/summary:+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/vod/event/{event_id}":get:tags:- Media- summary: All Recordings Summary- description: Returns true/false by day indicating if recordings exist- operationId: all_recordings_summary_recordings_summary_get+ summary: Vod Event+ description: >-+ Returns an HLS playlist for the specified object. Append /master.m3u8 or+ /index.m3u8 for HLS playback.+ operationId: vod_event_vod_event__event_id__getparameters:- - name: timezone- in: query- required: false+ - name: event_id+ in: path+ required: trueschema:type: string- default: utc- title: Timezone- - name: cameras+ title: Event Id+ - name: paddingin: queryrequired: falseschema:- anyOf:- - type: string- - type: "null"- default: all- title: Cameras+ type: integer+ description: Padding to apply to the vod.+ default: 0+ title: Padding+ description: Padding to apply to the vod.responses:"200":description: Successful Response@@ -3762,13 +4882,15 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/recordings/summary:+ "/vod/clip/{camera_name}/start/{start_ts}/end/{end_ts}":get:tags:- Media- summary: Recordings Summary- description: Returns hourly summary for recordings of given camera- operationId: recordings_summary__camera_name__recordings_summary_get+ summary: Vod Clip+ description: >-+ Returns an HLS playlist for a timestamp range with HLS discontinuity+ enabled. Append /master.m3u8 or /index.m3u8 for HLS playback.+ operationId: vod_clip_vod_clip__camera_name__start__start_ts__end__end_ts__getparameters:- name: camera_namein: path@@ -3778,13 +4900,18 @@ paths:- type: string- type: "null"title: Camera Name- - name: timezone- in: query- required: false+ - name: start_ts+ in: path+ required: trueschema:- type: string- default: utc- title: Timezone+ type: number+ title: Start Ts+ - name: end_ts+ in: path+ required: true+ schema:+ type: number+ title: End Tsresponses:"200":description: Successful Response@@ -3797,38 +4924,73 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/recordings:+ "/events/{event_id}/snapshot.jpg":get:tags:- Media- summary: Recordings+ summary: Event Snapshotdescription: >-- Return specific camera recordings between the given 'after'/'end' times.- If not provided the last hour will be used- operationId: recordings__camera_name__recordings_get+ Returns a snapshot image for the specified object id. NOTE: The query+ params only take affect while the event is in-progress. Once the event+ has ended the snapshot configuration is used.+ operationId: event_snapshot_events__event_id__snapshot_jpg_getparameters:- - name: camera_name+ - name: event_idin: pathrequired: true+ schema:+ type: string+ title: Event Id+ - name: download+ in: query+ required: falseschema:anyOf:- - type: string+ - type: boolean- type: "null"- title: Camera Name- - name: after+ default: false+ title: Download+ - name: timestampin: queryrequired: falseschema:- type: number- default: 1759932070.40171- title: After- - name: before+ anyOf:+ - type: integer+ - type: "null"+ title: Timestamp+ - name: bboxin: queryrequired: falseschema:- type: number- default: 1759935670.40172- title: Before+ anyOf:+ - type: integer+ - type: "null"+ title: Bbox+ - name: crop+ in: query+ required: false+ schema:+ anyOf:+ - type: integer+ - type: "null"+ title: Crop+ - name: height+ in: query+ required: false+ schema:+ anyOf:+ - type: integer+ - type: "null"+ title: Height+ - name: quality+ in: query+ required: false+ schema:+ anyOf:+ - type: integer+ - type: "null"+ default: 70+ title: Qualityresponses:"200":description: Successful Response@@ -3841,65 +5003,69 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /recordings/unavailable:+ "/events/{event_id}/thumbnail.{extension}":get:tags:- Media- summary: No Recordings- description: Get time ranges with no recordings.- operationId: no_recordings_recordings_unavailable_get+ summary: Event Thumbnail+ operationId: event_thumbnail_events__event_id__thumbnail__extension__getparameters:- - name: cameras- in: query- required: false+ - name: event_id+ in: path+ required: trueschema:type: string- default: all- title: Cameras- - name: before+ title: Event Id+ - name: extension+ in: path+ required: true+ schema:+ $ref: "#/components/schemas/Extension"+ - name: max_cache_agein: queryrequired: falseschema:- type: number- title: Before- - name: after+ type: integer+ description: Max cache age in seconds. Default 30 days in seconds.+ default: 2592000+ title: Max Cache Age+ description: Max cache age in seconds. Default 30 days in seconds.+ - name: formatin: queryrequired: falseschema:- type: number- title: After- - name: scale+ type: string+ enum:+ - ios+ - android+ default: ios+ title: Format+ - name: camera_namein: queryrequired: falseschema:- type: integer- default: 30- title: Scale+ anyOf:+ - type: string+ - type: "null"+ title: Camera Nameresponses:"200":description: Successful Responsecontent:application/json:- schema:- type: array- items:- type: object- title: Response No Recordings Recordings Unavailable Get+ schema: {}"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/start/{start_ts}/end/{end_ts}/clip.mp4:+ "/{camera_name}/grid.jpg":get:tags:- Media- summary: Recording Clip- description: >-- For iOS devices, use the master.m3u8 HLS link instead of clip.mp4.- Safari does not reliably process progressive mp4 files.- operationId: recording_clip__camera_name__start__start_ts__end__end_ts__clip_mp4_get+ summary: Grid Snapshot+ operationId: grid_snapshot__camera_name__grid_jpg_getparameters:- name: camera_namein: path@@ -3909,18 +5075,20 @@ paths:- type: string- type: "null"title: Camera Name- - name: start_ts- in: path- required: true+ - name: color+ in: query+ required: falseschema:- type: number- title: Start Ts- - name: end_ts- in: path- required: true+ type: string+ default: green+ title: Color+ - name: font_scale+ in: query+ required: falseschema:type: number- title: End Ts+ default: 0.5+ title: Font Scaleresponses:"200":description: Successful Response@@ -3933,36 +5101,20 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /vod/{camera_name}/start/{start_ts}/end/{end_ts}:- get:+ "/{camera_name}/region_grid":+ delete:tags:- Media- summary: Vod Ts- description: >-- Returns an HLS playlist for the specified timestamp-range on the- specified camera. Append /master.m3u8 or /index.m3u8 for HLS playback.- operationId: vod_ts_vod__camera_name__start__start_ts__end__end_ts__get+ summary: Clear Region Grid+ description: Clear the region grid for a camera.+ operationId: clear_region_grid__camera_name__region_grid_deleteparameters:- name: camera_namein: pathrequired: trueschema:- anyOf:- - type: string- - type: "null"+ type: stringtitle: Camera Name- - name: start_ts- in: path- required: true- schema:- type: number- title: Start Ts- - name: end_ts- in: path- required: true- schema:- type: number- title: End Tsresponses:"200":description: Successful Response@@ -3975,37 +5127,29 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /vod/{year_month}/{day}/{hour}/{camera_name}:+ "/events/{event_id}/snapshot-clean.webp":get:tags:- Media- summary: Vod Hour No Timezone- description: >-- Returns an HLS playlist for the specified date-time on the specified- camera. Append /master.m3u8 or /index.m3u8 for HLS playback.- operationId: vod_hour_no_timezone_vod__year_month___day___hour___camera_name__get+ summary: Event Snapshot Clean+ operationId: event_snapshot_clean_events__event_id__snapshot_clean_webp_getparameters:- - name: year_month+ - name: event_idin: pathrequired: trueschema:type: string- title: Year Month- - name: day- in: path- required: true- schema:- type: integer- title: Day- - name: hour- in: path- required: true+ title: Event Id+ - name: download+ in: query+ required: falseschema:- type: integer- title: Hour+ type: boolean+ default: false+ title: Download- name: camera_name- in: path- required: true+ in: query+ required: falseschema:anyOf:- type: string@@ -4023,49 +5167,36 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /vod/{year_month}/{day}/{hour}/{camera_name}/{tz_name}:+ "/events/{event_id}/clip.mp4":get:tags:- Media- summary: Vod Hour- description: >-- Returns an HLS playlist for the specified date-time (with timezone) on- the specified camera. Append /master.m3u8 or /index.m3u8 for HLS- playback.- operationId: vod_hour_vod__year_month___day___hour___camera_name___tz_name__get+ summary: Event Clip+ operationId: event_clip_events__event_id__clip_mp4_getparameters:- - name: year_month+ - name: event_idin: pathrequired: trueschema:type: string- title: Year Month- - name: day- in: path- required: true- schema:- type: integer- title: Day- - name: hour- in: path- required: true+ title: Event Id+ - name: padding+ in: query+ required: falseschema:type: integer- title: Hour+ description: Padding to apply to clip.+ default: 0+ title: Padding+ description: Padding to apply to clip.- name: camera_name- in: path- required: true+ in: query+ required: falseschema:anyOf:- type: string- type: "null"title: Camera Name- - name: tz_name- in: path- required: true- schema:- type: string- title: Tz Nameresponses:"200":description: Successful Response@@ -4078,15 +5209,12 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /vod/event/{event_id}:+ "/events/{event_id}/preview.gif":get:tags:- Media- summary: Vod Event- description: >-- Returns an HLS playlist for the specified object. Append /master.m3u8 or- /index.m3u8 for HLS playback.- operationId: vod_event_vod_event__event_id__get+ summary: Event Preview+ operationId: event_preview_events__event_id__preview_gif_getparameters:- name: event_idin: path@@ -4094,15 +5222,14 @@ paths:schema:type: stringtitle: Event Id- - name: padding+ - name: camera_namein: queryrequired: falseschema:- type: integer- description: Padding to apply to the vod.- default: 0- title: Padding- description: Padding to apply to the vod.+ anyOf:+ - type: string+ - type: "null"+ title: Camera Nameresponses:"200":description: Successful Response@@ -4115,73 +5242,42 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/snapshot.jpg:+ "/{camera_name}/start/{start_ts}/end/{end_ts}/preview.gif":get:tags:- Media- summary: Event Snapshot- description: >-- Returns a snapshot image for the specified object id. NOTE: The query- params only take affect while the event is in-progress. Once the event- has ended the snapshot configuration is used.- operationId: event_snapshot_events__event_id__snapshot_jpg_get+ summary: Preview Gif+ operationId: preview_gif__camera_name__start__start_ts__end__end_ts__preview_gif_getparameters:- - name: event_id+ - name: camera_namein: pathrequired: true- schema:- type: string- title: Event Id- - name: download- in: query- required: false- schema:- anyOf:- - type: boolean- - type: "null"- default: false- title: Download- - name: timestamp- in: query- required: false- schema:- anyOf:- - type: integer- - type: "null"- title: Timestamp- - name: bbox- in: query- required: false- schema:- anyOf:- - type: integer- - type: "null"- title: Bbox- - name: crop- in: query- required: falseschema:anyOf:- - type: integer+ - type: string- type: "null"- title: Crop- - name: height- in: query- required: false+ title: Camera Name+ - name: start_ts+ in: path+ required: trueschema:- anyOf:- - type: integer- - type: "null"- title: Height- - name: quality+ type: number+ title: Start Ts+ - name: end_ts+ in: path+ required: true+ schema:+ type: number+ title: End Ts+ - name: max_cache_agein: queryrequired: falseschema:- anyOf:- - type: integer- - type: "null"- default: 70- title: Quality+ type: integer+ description: Max cache age in seconds. Default 30 days in seconds.+ default: 2592000+ title: Max Cache Age+ description: Max cache age in seconds. Default 30 days in seconds.responses:"200":description: Successful Response@@ -4194,43 +5290,42 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/thumbnail.{extension}:+ "/{camera_name}/start/{start_ts}/end/{end_ts}/preview.mp4":get:tags:- Media- summary: Event Thumbnail- operationId: event_thumbnail_events__event_id__thumbnail__extension__get+ summary: Preview Mp4+ operationId: preview_mp4__camera_name__start__start_ts__end__end_ts__preview_mp4_getparameters:- - name: event_id+ - name: camera_namein: pathrequired: trueschema:- type: string- title: Event Id- - name: extension+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ - name: start_tsin: pathrequired: trueschema:- $ref: "#/components/schemas/Extension"+ type: number+ title: Start Ts+ - name: end_ts+ in: path+ required: true+ schema:+ type: number+ title: End Ts- name: max_cache_agein: queryrequired: falseschema:type: integer- description: Max cache age in seconds. Default 30 days in seconds.- default: 2592000+ description: Max cache age in seconds. Default 7 days in seconds.+ default: 604800title: Max Cache Age- description: Max cache age in seconds. Default 30 days in seconds.- - name: format- in: query- required: false- schema:- type: string- enum:- - ios- - android- default: ios- title: Format+ description: Max cache age in seconds. Default 7 days in seconds.responses:"200":description: Successful Response@@ -4243,35 +5338,37 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/grid.jpg:+ "/review/{event_id}/preview":get:tags:- Media- summary: Grid Snapshot- operationId: grid_snapshot__camera_name__grid_jpg_get+ summary: Review Preview+ operationId: review_preview_review__event_id__preview_getparameters:- - name: camera_name+ - name: event_idin: pathrequired: trueschema:- anyOf:- - type: string- - type: "null"- title: Camera Name- - name: color+ type: string+ title: Event Id+ - name: formatin: queryrequired: falseschema:type: string- default: green- title: Color- - name: font_scale+ enum:+ - gif+ - mp4+ default: gif+ title: Format+ - name: camera_namein: queryrequired: falseschema:- type: number- default: 0.5- title: Font Scale+ anyOf:+ - type: string+ - type: "null"+ title: Camera Nameresponses:"200":description: Successful Response@@ -4284,26 +5381,28 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/snapshot-clean.webp:+ "/preview/{file_name}/thumbnail.webp":get:tags:- Media- summary: Event Snapshot Clean- operationId: event_snapshot_clean_events__event_id__snapshot_clean_png_get+ summary: Preview Thumbnail+ description: Get a thumbnail from the cached preview frames.+ operationId: preview_thumbnail_preview__file_name__thumbnail_webp_getparameters:- - name: event_id+ - name: file_namein: pathrequired: trueschema:type: string- title: Event Id- - name: download+ title: File Name+ - name: camera_namein: queryrequired: falseschema:- type: boolean- default: false- title: Download+ anyOf:+ - type: string+ - type: "null"+ title: Camera Nameresponses:"200":description: Successful Response@@ -4316,28 +5415,28 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/clip.mp4:+ "/preview/{file_name}/thumbnail.jpg":get:tags:- Media- summary: Event Clip- operationId: event_clip_events__event_id__clip_mp4_get+ summary: Preview Thumbnail+ description: Get a thumbnail from the cached preview frames.+ operationId: preview_thumbnail_preview__file_name__thumbnail_jpg_getparameters:- - name: event_id+ - name: file_namein: pathrequired: trueschema:type: string- title: Event Id- - name: padding+ title: File Name+ - name: camera_namein: queryrequired: falseschema:- type: integer- description: Padding to apply to clip.- default: 0- title: Padding- description: Padding to apply to clip.+ anyOf:+ - type: string+ - type: "null"+ title: Camera Nameresponses:"200":description: Successful Response@@ -4350,19 +5449,27 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /events/{event_id}/preview.gif:+ "/{camera_name}/{label}/thumbnail.jpg":get:tags:- Media- summary: Event Preview- operationId: event_preview_events__event_id__preview_gif_get+ summary: Label Thumbnail+ operationId: label_thumbnail__camera_name___label__thumbnail_jpg_getparameters:- - name: event_id+ - name: camera_name+ in: path+ required: true+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ - name: labelin: pathrequired: trueschema:type: string- title: Event Id+ title: Labelresponses:"200":description: Successful Response@@ -4375,12 +5482,12 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/start/{start_ts}/end/{end_ts}/preview.gif:+ "/{camera_name}/{label}/best.jpg":get:tags:- Media- summary: Preview Gif- operationId: preview_gif__camera_name__start__start_ts__end__end_ts__preview_gif_get+ summary: Label Thumbnail+ operationId: label_thumbnail__camera_name___label__best_jpg_getparameters:- name: camera_namein: path@@ -4390,27 +5497,45 @@ paths:- type: string- type: "null"title: Camera Name- - name: start_ts+ - name: labelin: pathrequired: trueschema:- type: number- title: Start Ts- - name: end_ts+ type: string+ title: Label+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/{label}/clip.mp4":+ get:+ tags:+ - Media+ summary: Label Clip+ operationId: label_clip__camera_name___label__clip_mp4_get+ parameters:+ - name: camera_namein: pathrequired: trueschema:- type: number- title: End Ts- - name: max_cache_age- in: query- required: false+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ - name: label+ in: path+ required: trueschema:- type: integer- description: Max cache age in seconds. Default 30 days in seconds.- default: 2592000- title: Max Cache Age- description: Max cache age in seconds. Default 30 days in seconds.+ type: string+ title: Labelresponses:"200":description: Successful Response@@ -4423,12 +5548,15 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/start/{start_ts}/end/{end_ts}/preview.mp4:+ "/{camera_name}/{label}/snapshot.jpg":get:tags:- Media- summary: Preview Mp4- operationId: preview_mp4__camera_name__start__start_ts__end__end_ts__preview_mp4_get+ summary: Label Snapshot+ description: >-+ Returns the snapshot image from the latest event for the given camera+ and label combo+ operationId: label_snapshot__camera_name___label__snapshot_jpg_getparameters:- name: camera_namein: path@@ -4438,88 +5566,121 @@ paths:- type: string- type: "null"title: Camera Name- - name: start_ts+ - name: labelin: pathrequired: trueschema:- type: number- title: Start Ts- - name: end_ts+ type: string+ title: Label+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/search/motion":+ post:+ tags:+ - Motion Search+ summary: Start motion search job+ description: |-+ Starts an asynchronous search for significant motion changes within+ a user-defined Region of Interest (ROI) over a specified time range. Returns a job_id+ that can be used to poll for results.+ operationId: start_motion_search__camera_name__search_motion_post+ parameters:+ - name: camera_namein: pathrequired: trueschema:- type: number- title: End Ts- - name: max_cache_age- in: query- required: false- schema:- type: integer- description: Max cache age in seconds. Default 7 days in seconds.- default: 604800- title: Max Cache Age- description: Max cache age in seconds. Default 7 days in seconds.+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/MotionSearchRequest"responses:"200":description: Successful Responsecontent:application/json:- schema: {}+ schema:+ $ref: "#/components/schemas/MotionSearchStartResponse""422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /review/{event_id}/preview:+ "/{camera_name}/search/motion/{job_id}":get:tags:- - Media- summary: Review Preview- operationId: review_preview_review__event_id__preview_get+ - Motion Search+ summary: Get motion search job status+ description: Returns the status and results (if complete) of a motion search job.+ operationId: >-+ get_motion_search_status_endpoint__camera_name__search_motion__job_id__getparameters:- - name: event_id+ - name: camera_namein: pathrequired: trueschema:- type: string- title: Event Id- - name: format- in: query- required: false+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ - name: job_id+ in: path+ required: trueschema:type: string- enum:- - gif- - mp4- default: gif- title: Format+ title: Job Idresponses:"200":description: Successful Responsecontent:application/json:- schema: {}+ schema:+ $ref: "#/components/schemas/MotionSearchStatusResponse""422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /preview/{file_name}/thumbnail.webp:- get:+ "/{camera_name}/search/motion/{job_id}/cancel":+ post:tags:- - Media- summary: Preview Thumbnail- description: Get a thumbnail from the cached preview frames.- operationId: preview_thumbnail_preview__file_name__thumbnail_webp_get+ - Motion Search+ summary: Cancel motion search job+ description: Cancels an active motion search job if it is still processing.+ operationId: >-+ cancel_motion_search_endpoint__camera_name__search_motion__job_id__cancel_postparameters:- - name: file_name+ - name: camera_name+ in: path+ required: true+ schema:+ anyOf:+ - type: string+ - type: "null"+ title: Camera Name+ - name: job_idin: pathrequired: trueschema:type: string- title: File Name+ title: Job Idresponses:"200":description: Successful Response@@ -4532,20 +5693,42 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /preview/{file_name}/thumbnail.jpg:+ /recordings/storage:get:tags:- - Media- summary: Preview Thumbnail- description: Get a thumbnail from the cached preview frames.- operationId: preview_thumbnail_preview__file_name__thumbnail_jpg_get+ - Recordings+ summary: Get Recordings Storage Usage+ operationId: get_recordings_storage_usage_recordings_storage_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ /recordings/summary:+ get:+ tags:+ - Recordings+ summary: All Recordings Summary+ description: Returns true/false by day indicating if recordings exist+ operationId: all_recordings_summary_recordings_summary_getparameters:- - name: file_name- in: path- required: true+ - name: timezone+ in: query+ required: falseschema:type: string- title: File Name+ default: utc+ title: Timezone+ - name: cameras+ in: query+ required: false+ schema:+ anyOf:+ - type: string+ - type: "null"+ default: all+ title: Camerasresponses:"200":description: Successful Response@@ -4558,12 +5741,13 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/{label}/thumbnail.jpg:+ "/{camera_name}/recordings/summary":get:tags:- - Media- summary: Label Thumbnail- operationId: label_thumbnail__camera_name___label__thumbnail_jpg_get+ - Recordings+ summary: Recordings Summary+ description: Returns hourly summary for recordings of given camera+ operationId: recordings_summary__camera_name__recordings_summary_getparameters:- name: camera_namein: path@@ -4573,12 +5757,13 @@ paths:- type: string- type: "null"title: Camera Name- - name: label- in: path- required: true+ - name: timezone+ in: query+ required: falseschema:type: string- title: Label+ default: utc+ title: Timezoneresponses:"200":description: Successful Response@@ -4591,12 +5776,15 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/{label}/best.jpg:+ "/{camera_name}/recordings":get:tags:- - Media- summary: Label Thumbnail- operationId: label_thumbnail__camera_name___label__best_jpg_get+ - Recordings+ summary: Recordings+ description: >-+ Return specific camera recordings between the given 'after'/'end' times.+ If not provided the last hour will be used+ operationId: recordings__camera_name__recordings_getparameters:- name: camera_namein: path@@ -4606,12 +5794,20 @@ paths:- type: string- type: "null"title: Camera Name- - name: label- in: path- required: true+ - name: after+ in: query+ required: falseschema:- type: string- title: Label+ type: number+ default: 1774023877.74743+ title: After+ - name: before+ in: query+ required: false+ schema:+ type: number+ default: 1774027477.74744+ title: Beforeresponses:"200":description: Successful Response@@ -4624,75 +5820,166 @@ paths:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/{label}/clip.mp4:+ /recordings/unavailable:get:tags:- - Media- summary: Label Clip- operationId: label_clip__camera_name___label__clip_mp4_get+ - Recordings+ summary: No Recordings+ description: Get time ranges with no recordings.+ operationId: no_recordings_recordings_unavailable_getparameters:- - name: camera_name- in: path- required: true- schema:- anyOf:- - type: string- - type: "null"- title: Camera Name- - name: label- in: path- required: true+ - name: cameras+ in: query+ required: falseschema:type: string- title: Label+ default: all+ title: Cameras+ - name: before+ in: query+ required: false+ schema:+ type: number+ title: Before+ - name: after+ in: query+ required: false+ schema:+ type: number+ title: After+ - name: scale+ in: query+ required: false+ schema:+ type: integer+ default: 30+ title: Scaleresponses:"200":description: Successful Responsecontent:application/json:- schema: {}+ schema:+ type: array+ items:+ type: object+ title: Response No Recordings Recordings Unavailable Get"422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"- /{camera_name}/{label}/snapshot.jpg:- get:+ "/recordings/start/{start}/end/{end}":+ delete:tags:- - Media- summary: Label Snapshot- description: >-- Returns the snapshot image from the latest event for the given camera- and label combo- operationId: label_snapshot__camera_name___label__snapshot_jpg_get+ - Recordings+ summary: Delete recordings+ description: |-+ Deletes recordings within the specified time range.+ Recordings can be filtered by cameras and kept based on motion, objects, or audio attributes.+ operationId: delete_recordings_recordings_start__start__end__end__deleteparameters:- - name: camera_name+ - name: start+ in: path+ required: true+ schema:+ type: number+ description: Start timestamp (unix)+ title: Start+ description: Start timestamp (unix)+ - name: endin: pathrequired: true+ schema:+ type: number+ description: End timestamp (unix)+ title: End+ description: End timestamp (unix)+ - name: keep+ in: query+ required: falseschema:anyOf:- type: string- type: "null"- title: Camera Name- - name: label- in: path- required: true+ title: Keep+ - name: cameras+ in: query+ required: falseschema:- type: string- title: Label+ anyOf:+ - type: string+ - type: "null"+ default: all+ title: Camerasresponses:"200":description: Successful Responsecontent:application/json:- schema: {}+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /debug_replay/start:+ post:+ tags:+ - App+ summary: Start debug replay+ description: Start a debug replay session from camera recordings.+ operationId: start_debug_replay_debug_replay_start_post+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/DebugReplayStartBody"+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/DebugReplayStartResponse""422":description: Validation Errorcontent:application/json:schema:$ref: "#/components/schemas/HTTPValidationError"+ /debug_replay/status:+ get:+ tags:+ - App+ summary: Get debug replay status+ description: Get the status of the current debug replay session.+ operationId: get_debug_replay_status_debug_replay_status_get+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/DebugReplayStatusResponse"+ /debug_replay/stop:+ post:+ tags:+ - App+ summary: Stop debug replay+ description: Stop the active debug replay session and clean up all artifacts.+ operationId: stop_debug_replay_debug_replay_stop_post+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/DebugReplayStopResponse"components:schemas:AppConfigSetBody:@@ -4711,6 +5998,10 @@ components:- type: object- type: "null"title: Config Data+ skip_save:+ type: boolean+ title: Skip Save+ default: falsetype: objecttitle: AppConfigSetBodyAppPostLoginBody:@@ -4750,6 +6041,11 @@ components:password:type: stringtitle: Password+ old_password:+ anyOf:+ - type: string+ - type: "null"+ title: Old Passwordtype: objectrequired:- password@@ -4768,6 +6064,7 @@ components:event_id:type: stringtitle: Event Id+ description: ID of the event to transcribe audio fortype: objectrequired:- event_id@@ -4790,8 +6087,73 @@ components:title: Filetype: objectrequired:- - file- title: Body_register_face_faces__name__register_post+ - file+ title: Body_register_face_faces__name__register_post+ CameraSetBody:+ properties:+ value:+ type: string+ title: Value+ description: The value to set for the feature+ type: object+ required:+ - value+ title: CameraSetBody+ ChatCompletionRequest:+ properties:+ messages:+ items:+ $ref: "#/components/schemas/ChatMessage"+ type: array+ title: Messages+ description: List of messages in the conversation+ max_tool_iterations:+ type: integer+ maximum: 10+ minimum: 1+ title: Max Tool Iterations+ description: "Maximum number of tool call iterations (default: 5)"+ default: 5+ stream:+ type: boolean+ title: Stream+ description: >-+ If true, stream the final assistant response in the body as+ newline-delimited JSON.+ default: false+ type: object+ required:+ - messages+ title: ChatCompletionRequest+ description: Request for chat completion with tool calling.+ ChatMessage:+ properties:+ role:+ type: string+ title: Role+ description: "Message role: 'user', 'assistant', 'system', or 'tool'"+ content:+ type: string+ title: Content+ description: Message content+ tool_call_id:+ anyOf:+ - type: string+ - type: "null"+ title: Tool Call Id+ description: "For tool messages, the ID of the tool call"+ name:+ anyOf:+ - type: string+ - type: "null"+ title: Name+ description: "For tool messages, the tool name"+ type: object+ required:+ - role+ - content+ title: ChatMessage+ description: A single message in a chat conversation.DayReview:properties:day:@@ -4818,6 +6180,82 @@ components:- total_alert- total_detectiontitle: DayReview+ DebugReplayStartBody:+ properties:+ camera:+ type: string+ title: Source camera name+ start_time:+ type: number+ title: Start timestamp+ end_time:+ type: number+ title: End timestamp+ type: object+ required:+ - camera+ - start_time+ - end_time+ title: DebugReplayStartBody+ description: Request body for starting a debug replay session.+ DebugReplayStartResponse:+ properties:+ success:+ type: boolean+ title: Success+ replay_camera:+ type: string+ title: Replay Camera+ type: object+ required:+ - success+ - replay_camera+ title: DebugReplayStartResponse+ description: Response for starting a debug replay session.+ DebugReplayStatusResponse:+ properties:+ active:+ type: boolean+ title: Active+ replay_camera:+ anyOf:+ - type: string+ - type: "null"+ title: Replay Camera+ source_camera:+ anyOf:+ - type: string+ - type: "null"+ title: Source Camera+ start_time:+ anyOf:+ - type: number+ - type: "null"+ title: Start Time+ end_time:+ anyOf:+ - type: number+ - type: "null"+ title: End Time+ live_ready:+ type: boolean+ title: Live Ready+ default: false+ type: object+ required:+ - active+ title: DebugReplayStatusResponse+ description: Response for debug replay status.+ DebugReplayStopResponse:+ properties:+ success:+ type: boolean+ title: Success+ type: object+ required:+ - success+ title: DebugReplayStopResponse+ description: Response for stopping a debug replay session.DeleteFaceImagesBody:properties:ids:@@ -4972,6 +6410,15 @@ components:- success- plus_idtitle: EventUploadPlusResponse+ EventsAttributesBody:+ properties:+ attributes:+ items:+ type: string+ type: array+ title: Selected classification attributes for the event+ type: object+ title: EventsAttributesBodyEventsCreateBody:properties:sub_label:@@ -5007,8 +6454,7 @@ components:anyOf:- type: integer- type: "null"- title: Pre Capture Seconds- default: null+ title: Pre Capturetype: objecttitle: EventsCreateBodyEventsDeleteBody:@@ -5081,18 +6527,86 @@ components:required:- subLabeltitle: EventsSubLabelBody- EventsAttributesBody:+ ExportCaseAssignBody:properties:- attributes:- type: object- title: Attributes- description: Object with model names as keys and attribute values- additionalProperties:- type: string+ export_case_id:+ anyOf:+ - type: string+ maxLength: 30+ - type: "null"+ title: Export Case Id+ description: "Case ID to assign to the export, or null to unassign"+ type: object+ title: ExportCaseAssignBody+ description: Request body for assigning or unassigning an export to a case.+ ExportCaseCreateBody:+ properties:+ name:+ type: string+ maxLength: 100+ title: Name+ description: Friendly name of the export case+ description:+ anyOf:+ - type: string+ - type: "null"+ title: Description+ description: Optional description of the export casetype: objectrequired:- - attributes- title: EventsAttributesBody+ - name+ title: ExportCaseCreateBody+ description: Request body for creating a new export case.+ ExportCaseModel:+ properties:+ id:+ type: string+ title: Id+ description: Unique identifier for the export case+ name:+ type: string+ title: Name+ description: Friendly name of the export case+ description:+ anyOf:+ - type: string+ - type: "null"+ title: Description+ description: Optional description of the export case+ created_at:+ type: number+ title: Created At+ description: Unix timestamp when the export case was created+ updated_at:+ type: number+ title: Updated At+ description: Unix timestamp when the export case was last updated+ type: object+ required:+ - id+ - name+ - created_at+ - updated_at+ title: ExportCaseModel+ description: Model representing a single export case.+ ExportCaseUpdateBody:+ properties:+ name:+ anyOf:+ - type: string+ maxLength: 100+ - type: "null"+ title: Name+ description: Updated friendly name of the export case+ description:+ anyOf:+ - type: string+ - type: "null"+ title: Description+ description: Updated description of the export case+ type: object+ title: ExportCaseUpdateBody+ description: Request body for updating an existing export case.ExportModel:properties:id:@@ -5123,6 +6637,12 @@ components:type: booleantitle: In Progressdescription: Whether the export is currently being processed+ export_case_id:+ anyOf:+ - type: string+ - type: "null"+ title: Export Case Id+ description: ID of the export case this export belongs totype: objectrequired:- id@@ -5136,10 +6656,30 @@ components:description: Model representing a single export.ExportRecordingsBody:properties:- playback:- $ref: "#/components/schemas/PlaybackFactorEnum"- title: Playback factor- default: realtime+ source:+ $ref: "#/components/schemas/PlaybackSourceEnum"+ title: Playback source+ default: recordings+ name:+ anyOf:+ - type: string+ maxLength: 256+ - type: "null"+ title: Friendly name+ image_path:+ type: string+ title: Image Path+ export_case_id:+ anyOf:+ - type: string+ maxLength: 30+ - type: "null"+ title: Export case ID+ description: ID of the export case to assign this export to+ type: object+ title: ExportRecordingsBody+ ExportRecordingsCustomBody:+ properties:source:$ref: "#/components/schemas/PlaybackSourceEnum"title: Playback source@@ -5151,8 +6691,38 @@ components:image_path:type: stringtitle: Image Path+ export_case_id:+ anyOf:+ - type: string+ maxLength: 30+ - type: "null"+ title: Export case ID+ description: ID of the export case to assign this export to+ ffmpeg_input_args:+ anyOf:+ - type: string+ - type: "null"+ title: FFmpeg input arguments+ description: >-+ Custom FFmpeg input arguments. If not provided, defaults to+ timelapse input args.+ ffmpeg_output_args:+ anyOf:+ - type: string+ - type: "null"+ title: FFmpeg output arguments+ description: >-+ Custom FFmpeg output arguments. If not provided, defaults to+ timelapse output args.+ cpu_fallback:+ type: boolean+ title: CPU Fallback+ description: >-+ If true, retry export without hardware acceleration if the initial+ export fails.+ default: falsetype: object- title: ExportRecordingsBody+ title: ExportRecordingsCustomBodyExportRenameBody:properties:name:@@ -5218,6 +6788,47 @@ components:"john_doe": ["face1.webp", "face2.jpg"],"jane_smith": ["face3.png"]}+ GenerateObjectExamplesBody:+ properties:+ model_name:+ type: string+ title: Model Name+ description: Name of the classification model+ label:+ type: string+ title: Label+ description: "Object label to collect examples for (e.g., 'person', 'car')"+ type: object+ required:+ - model_name+ - label+ title: GenerateObjectExamplesBody+ GenerateStateExamplesBody:+ properties:+ model_name:+ type: string+ title: Model Name+ description: Name of the classification model+ cameras:+ additionalProperties:+ prefixItems:+ - type: number+ - type: number+ - type: number+ - type: number+ type: array+ maxItems: 4+ minItems: 4+ type: object+ title: Cameras+ description: >-+ Dictionary mapping camera names to normalized crop coordinates in+ [x1, y1, x2, y2] format (values 0-1)+ type: object+ required:+ - model_name+ - cameras+ title: GenerateStateExamplesBodyGenericResponse:properties:success:@@ -5261,12 +6872,199 @@ components:- total_alert- total_detectiontitle: Last24HoursReview- PlaybackFactorEnum:- type: string- enum:- - realtime- - timelapse_25x- title: PlaybackFactorEnum+ MediaSyncBody:+ properties:+ dry_run:+ type: boolean+ title: Dry Run+ description: "If True, only report orphans without deleting them"+ default: true+ media_types:+ items:+ type: string+ type: array+ title: Media Types+ description: >-+ Types of media to sync: 'all', 'event_snapshots',+ 'event_thumbnails', 'review_thumbnails', 'previews', 'exports',+ 'recordings'+ default:+ - all+ force:+ type: boolean+ title: Force+ description: "If True, bypass safety threshold checks"+ default: false+ type: object+ title: MediaSyncBody+ MotionSearchMetricsResponse:+ properties:+ segments_scanned:+ type: integer+ title: Segments Scanned+ default: 0+ segments_processed:+ type: integer+ title: Segments Processed+ default: 0+ metadata_inactive_segments:+ type: integer+ title: Metadata Inactive Segments+ default: 0+ heatmap_roi_skip_segments:+ type: integer+ title: Heatmap Roi Skip Segments+ default: 0+ fallback_full_range_segments:+ type: integer+ title: Fallback Full Range Segments+ default: 0+ frames_decoded:+ type: integer+ title: Frames Decoded+ default: 0+ wall_time_seconds:+ type: number+ title: Wall Time Seconds+ default: 0+ segments_with_errors:+ type: integer+ title: Segments With Errors+ default: 0+ type: object+ title: MotionSearchMetricsResponse+ description: Metrics collected during motion search execution.+ MotionSearchRequest:+ properties:+ start_time:+ type: number+ title: Start Time+ description: Start timestamp for the search range+ end_time:+ type: number+ title: End Time+ description: End timestamp for the search range+ polygon_points:+ items:+ items:+ type: number+ type: array+ type: array+ title: Polygon Points+ description: "List of [x, y] normalized coordinates (0-1) defining the ROI polygon"+ threshold:+ type: integer+ maximum: 255+ minimum: 1+ title: Threshold+ description: Pixel difference threshold (1-255)+ default: 30+ min_area:+ type: number+ maximum: 100+ minimum: 0.1+ title: Min Area+ description: Minimum change area as a percentage of the ROI+ default: 5+ frame_skip:+ type: integer+ maximum: 30+ minimum: 1+ title: Frame Skip+ description: "Process every Nth frame (1=all frames, 5=every 5th frame)"+ default: 5+ parallel:+ type: boolean+ title: Parallel+ description: Enable parallel scanning across segments+ default: false+ max_results:+ type: integer+ maximum: 200+ minimum: 1+ title: Max Results+ description: Maximum number of search results to return+ default: 25+ type: object+ required:+ - start_time+ - end_time+ - polygon_points+ title: MotionSearchRequest+ description: Request body for motion search.+ MotionSearchResult:+ properties:+ timestamp:+ type: number+ title: Timestamp+ description: Timestamp where change was detected+ change_percentage:+ type: number+ title: Change Percentage+ description: Percentage of ROI area that changed+ type: object+ required:+ - timestamp+ - change_percentage+ title: MotionSearchResult+ description: A single search result with timestamp and change info.+ MotionSearchStartResponse:+ properties:+ success:+ type: boolean+ title: Success+ message:+ type: string+ title: Message+ job_id:+ type: string+ title: Job Id+ type: object+ required:+ - success+ - message+ - job_id+ title: MotionSearchStartResponse+ description: Response when motion search job starts.+ MotionSearchStatusResponse:+ properties:+ success:+ type: boolean+ title: Success+ message:+ type: string+ title: Message+ status:+ type: string+ title: Status+ results:+ anyOf:+ - items:+ $ref: "#/components/schemas/MotionSearchResult"+ type: array+ - type: "null"+ title: Results+ total_frames_processed:+ anyOf:+ - type: integer+ - type: "null"+ title: Total Frames Processed+ error_message:+ anyOf:+ - type: string+ - type: "null"+ title: Error Message+ metrics:+ anyOf:+ - $ref: "#/components/schemas/MotionSearchMetricsResponse"+ - type: "null"+ type: object+ required:+ - success+ - message+ - status+ title: MotionSearchStatusResponse+ description: Response containing job status and results.PlaybackSourceEnum:type: stringenum:@@ -5315,6 +7113,7 @@ components:new_name:type: stringtitle: New Name+ description: New name for the facetype: objectrequired:- new_name@@ -5345,6 +7144,10 @@ components:type: arrayminItems: 1title: Ids+ reviewed:+ type: boolean+ title: Reviewed+ default: truetype: objectrequired:- ids@@ -5436,6 +7239,20 @@ components:default: 1type: objecttitle: SubmitPlusBody+ ToolExecuteRequest:+ properties:+ tool_name:+ type: string+ title: Tool Name+ arguments:+ type: object+ title: Arguments+ type: object+ required:+ - tool_name+ - arguments+ title: ToolExecuteRequest+ description: Request model for tool execution.TriggerEmbeddingBody:properties:type:diff --git a/web/src/types/graph.ts b/web/src/types/graph.tsindex 894a2feece..901ad14ad4 100644--- a/web/src/types/graph.ts+++ b/web/src/types/graph.ts@@ -24,8 +24,8 @@ export const EmbeddingThreshold = {} as Threshold;export const GenAIThreshold = {- warning: 30000,- error: 60000,+ warning: 60,+ error: 120,} as Threshold;export const DetectorTempThreshold = {diff --git a/web/src/views/system/EnrichmentMetrics.tsx b/web/src/views/system/EnrichmentMetrics.tsxindex 29eda8fa27..252d63ebc2 100644--- a/web/src/views/system/EnrichmentMetrics.tsx+++ b/web/src/views/system/EnrichmentMetrics.tsx@@ -107,7 +107,10 @@ export default function EnrichmentMetrics({};}- series[key].data.push({ x: statsIdx + 1, y: stat });+ series[key].data.push({+ x: statsIdx + 1,+ y: rawKey.includes("description_speed") ? stat / 1000 : stat,+ });});});@@ -115,6 +118,7 @@ export default function EnrichmentMetrics({const grouped: {[category: string]: {categoryName: string;+ unit: string;speedSeries?: {name: string;metrics: Threshold;@@ -154,6 +158,7 @@ export default function EnrichmentMetrics({if (!(categoryKey in grouped)) {grouped[categoryKey] = {categoryName,+ unit: categoryKey.includes("description") ? "s" : "ms",speedSeries: undefined,eventsSeries: undefined,};@@ -196,7 +201,7 @@ export default function EnrichmentMetrics({key={`${group.categoryName}-speed`}graphId={`${group.categoryName}-inference`}name={t("enrichments.averageInf")}- unit="ms"+ unit={group.unit}threshold={group.speedSeries.metrics}updateTimes={updateTimes}data={[group.speedSeries]}