NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Api improvements (#15327)
Nicolas Mowend3b631a9522c
diff --git a/docs/static/frigate-api.yaml b/docs/static/frigate-api.yamlindex 5e4ecdbdc3..e05330a9d2 100644--- a/docs/static/frigate-api.yaml+++ b/docs/static/frigate-api.yaml@@ -2,7 +2,7 @@ openapi: 3.1.0info:# To avoid the introduction page we set the title to empty string# https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/4e771d309f6defe395449b26cc3c65814d72cbcc/packages/docusaurus-plugin-openapi-docs/src/openapi/openapi.ts#L92-L129- title: ''+ title: ""version: 0.1.0servers:@@ -17,11 +17,11 @@ paths:summary: AuthoperationId: auth_auth_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/profile:get:tags:@@ -29,11 +29,11 @@ paths:summary: ProfileoperationId: profile_profile_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/logout:get:tags:@@ -41,11 +41,11 @@ paths:summary: LogoutoperationId: logout_logout_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/login:post:tags:@@ -57,19 +57,19 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/AppPostLoginBody'+ $ref: "#/components/schemas/AppPostLoginBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/users:get:tags:@@ -77,11 +77,11 @@ paths:summary: Get UsersoperationId: get_users_users_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}post:tags:- Auth@@ -92,20 +92,20 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/AppPostUsersBody'+ $ref: "#/components/schemas/AppPostUsersBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /users/{username}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/users/{username}":delete:tags:- Auth@@ -119,18 +119,18 @@ paths:type: stringtitle: Usernameresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /users/{username}/password:+ $ref: "#/components/schemas/HTTPValidationError"+ "/users/{username}/password":put:tags:- Auth@@ -148,19 +148,19 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/AppPutPasswordBody'+ $ref: "#/components/schemas/AppPutPasswordBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/review:get:tags:@@ -207,7 +207,7 @@ paths:required: falseschema:allOf:- - $ref: '#/components/schemas/SeverityEnum'+ - $ref: "#/components/schemas/SeverityEnum"title: Severity- name: beforein: query@@ -222,21 +222,21 @@ paths:type: numbertitle: Afterresponses:- '200':+ "200":description: Successful Responsecontent:application/json:schema:type: arrayitems:- $ref: '#/components/schemas/ReviewSegmentResponse'+ $ref: "#/components/schemas/ReviewSegmentResponse"title: Response Review Review Get- '422':+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/review/summary:get:tags:@@ -273,18 +273,18 @@ paths:default: utctitle: Timezoneresponses:- '200':+ "200":description: Successful Responsecontent:application/json:schema:- $ref: '#/components/schemas/ReviewSummaryResponse'- '422':+ $ref: "#/components/schemas/ReviewSummaryResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/reviews/viewed:post:tags:@@ -296,20 +296,20 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/ReviewModifyMultipleBody'+ $ref: "#/components/schemas/ReviewModifyMultipleBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:schema:- $ref: '#/components/schemas/GenericResponse'- '422':+ $ref: "#/components/schemas/GenericResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/reviews/delete:post:tags:@@ -321,20 +321,20 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/ReviewModifyMultipleBody'+ $ref: "#/components/schemas/ReviewModifyMultipleBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:schema:- $ref: '#/components/schemas/GenericResponse'- '422':+ $ref: "#/components/schemas/GenericResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/review/activity/motion:get:tags:@@ -370,22 +370,22 @@ paths:default: 30title: Scaleresponses:- '200':+ "200":description: Successful Responsecontent:application/json:schema:type: arrayitems:- $ref: '#/components/schemas/ReviewActivityMotionResponse'+ $ref: "#/components/schemas/ReviewActivityMotionResponse"title: Response Motion Activity Review Activity Motion Get- '422':+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /review/event/{event_id}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/review/event/{event_id}":get:tags:- Review@@ -399,19 +399,19 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:schema:- $ref: '#/components/schemas/ReviewSegmentResponse'- '422':+ $ref: "#/components/schemas/ReviewSegmentResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /review/{review_id}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/review/{review_id}":get:tags:- Review@@ -425,19 +425,19 @@ paths:type: stringtitle: Review Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:schema:- $ref: '#/components/schemas/ReviewSegmentResponse'- '422':+ $ref: "#/components/schemas/ReviewSegmentResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /review/{review_id}/viewed:+ $ref: "#/components/schemas/HTTPValidationError"+ "/review/{review_id}/viewed":delete:tags:- Review@@ -451,18 +451,18 @@ paths:type: stringtitle: Review Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:schema:- $ref: '#/components/schemas/GenericResponse'- '422':+ $ref: "#/components/schemas/GenericResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/:get:tags:@@ -470,7 +470,7 @@ paths:summary: Is HealthyoperationId: is_healthy__getresponses:- '200':+ "200":description: Successful Responsecontent:text/plain:@@ -483,11 +483,11 @@ paths:summary: Config SchemaoperationId: config_schema_config_schema_json_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/go2rtc/streams:get:tags:@@ -495,12 +495,12 @@ paths:summary: Go2Rtc StreamsoperationId: go2rtc_streams_go2rtc_streams_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- /go2rtc/streams/{camera_name}:+ schema: {}+ "/go2rtc/streams/{camera_name}":get:tags:- App@@ -514,17 +514,17 @@ paths:type: stringtitle: Camera Nameresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/version:get:tags:@@ -532,7 +532,7 @@ paths:summary: VersionoperationId: version_version_getresponses:- '200':+ "200":description: Successful Responsecontent:text/plain:@@ -545,11 +545,11 @@ paths:summary: StatsoperationId: stats_stats_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/stats/history:get:tags:@@ -564,17 +564,17 @@ paths:type: stringtitle: Keysresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/config:get:tags:@@ -582,11 +582,11 @@ paths:summary: ConfigoperationId: config_config_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/config/raw:get:tags:@@ -594,11 +594,11 @@ paths:summary: Config RawoperationId: config_raw_config_raw_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/config/save:post:tags:@@ -619,17 +619,17 @@ paths:schema:title: Bodyresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/config/set:put:tags:@@ -641,19 +641,19 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/AppConfigSetBody'+ $ref: "#/components/schemas/AppConfigSetBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/ffprobe:get:tags:@@ -666,20 +666,20 @@ paths:required: falseschema:type: string- default: ''+ default: ""title: Pathsresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/vainfo:get:tags:@@ -687,11 +687,11 @@ paths:summary: VainfooperationId: vainfo_vainfo_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/nvinfo:get:tags:@@ -699,12 +699,12 @@ paths:summary: NvinfooperationId: nvinfo_nvinfo_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- /logs/{service}:+ schema: {}+ "/logs/{service}":get:tags:- App@@ -729,7 +729,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"title: Download- name: startin: query@@ -737,7 +737,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"default: 0title: Start- name: end@@ -746,20 +746,20 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Endresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/restart:post:tags:@@ -767,11 +767,11 @@ paths:summary: RestartoperationId: restart_restart_postresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/labels:get:tags:@@ -784,20 +784,20 @@ paths:required: falseschema:type: string- default: ''+ default: ""title: Cameraresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/sub_labels:get:tags:@@ -811,20 +811,20 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Split Joinedresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/timeline:get:tags:@@ -852,20 +852,20 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"title: Source Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/timeline/hourly:get:tags:@@ -880,7 +880,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Cameras- name: labels@@ -889,7 +889,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Labels- name: after@@ -898,7 +898,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: After- name: beforein: query@@ -906,7 +906,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: Before- name: limitin: query@@ -914,7 +914,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"default: 200title: Limit- name: timezone@@ -923,22 +923,22 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: utctitle: Timezoneresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /preview/{camera_name}/start/{start_ts}/end/{end_ts}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/preview/{camera_name}/start/{start_ts}/end/{end_ts}":get:tags:- Preview@@ -965,18 +965,18 @@ paths:type: numbertitle: End Tsresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /preview/{year_month}/{day}/{hour}/{camera_name}/{tz_name}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/preview/{year_month}/{day}/{hour}/{camera_name}/{tz_name}":get:tags:- Preview@@ -1016,18 +1016,18 @@ paths:type: stringtitle: Tz Nameresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /preview/{camera_name}/start/{start_ts}/end/{end_ts}/frames:+ $ref: "#/components/schemas/HTTPValidationError"+ "/preview/{camera_name}/start/{start_ts}/end/{end_ts}/frames":get:tags:- Preview@@ -1055,17 +1055,17 @@ paths:type: numbertitle: End Tsresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/notifications/pubkey:get:tags:@@ -1073,11 +1073,11 @@ paths:summary: Get Vapid Pub KeyoperationId: get_vapid_pub_key_notifications_pubkey_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }+ schema: {}/notifications/register:post:tags:@@ -1091,17 +1091,17 @@ paths:type: objecttitle: Bodyresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/exports:get:tags:@@ -1109,12 +1109,12 @@ paths:summary: Get ExportsoperationId: get_exports_exports_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- /export/{camera_name}/start/{start_time}/end/{end_time}:+ schema: {}+ "/export/{camera_name}/start/{start_time}/end/{end_time}":post:tags:- Export@@ -1145,20 +1145,20 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/ExportRecordingsBody'+ $ref: "#/components/schemas/ExportRecordingsBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /export/{event_id}/{new_name}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/export/{event_id}/{new_name}":patch:tags:- Export@@ -1178,18 +1178,18 @@ paths:type: stringtitle: New Nameresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /export/{event_id}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/export/{event_id}":delete:tags:- Export@@ -1203,17 +1203,42 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"+ "/exports/{export_id}":+ get:+ tags:+ - Export+ summary: Get Export+ operationId: get_export_exports__export_id__get+ parameters:+ - name: export_id+ in: path+ required: true+ schema:+ type: string+ title: Export Id+ responses:+ "200":+ description: Successful Response+ content:+ application/json:+ schema: {}+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"/events:get:tags:@@ -1227,7 +1252,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Camera- name: cameras@@ -1236,7 +1261,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Cameras- name: label@@ -1245,7 +1270,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Label- name: labels@@ -1254,7 +1279,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Labels- name: sub_label@@ -1263,7 +1288,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Sub Label- name: sub_labels@@ -1272,7 +1297,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Sub Labels- name: zone@@ -1281,7 +1306,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Zone- name: zones@@ -1290,7 +1315,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Zones- name: limit@@ -1299,7 +1324,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"default: 100title: Limit- name: after@@ -1308,7 +1333,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: After- name: beforein: query@@ -1316,7 +1341,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: Before- name: time_rangein: query@@ -1324,8 +1349,8 @@ paths:schema:anyOf:- type: string- - type: 'null'- default: 00:00,24:00+ - type: "null"+ default: "00:00,24:00"title: Time Range- name: has_clipin: query@@ -1333,7 +1358,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Has Clip- name: has_snapshotin: query@@ -1341,7 +1366,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Has Snapshot- name: in_progressin: query@@ -1349,7 +1374,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: In Progress- name: include_thumbnailsin: query@@ -1357,7 +1382,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"default: 1title: Include Thumbnails- name: favorites@@ -1366,7 +1391,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Favorites- name: min_scorein: query@@ -1374,7 +1399,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: Min Score- name: max_scorein: query@@ -1382,7 +1407,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: Max Score- name: is_submittedin: query@@ -1390,7 +1415,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Is Submitted- name: min_lengthin: query@@ -1398,7 +1423,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: Min Length- name: max_lengthin: query@@ -1406,7 +1431,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: Max Length- name: event_idin: query@@ -1414,7 +1439,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"title: Event Id- name: sortin: query@@ -1422,7 +1447,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"title: Sort- name: timezonein: query@@ -1430,21 +1455,25 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: utctitle: Timezoneresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ type: array+ items:+ $ref: "#/components/schemas/EventResponse"+ title: Response Events Events Get+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/events/explore:get:tags:@@ -1460,17 +1489,21 @@ paths:default: 10title: Limitresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ type: array+ items:+ $ref: "#/components/schemas/EventResponse"+ title: Response Events Explore Events Explore Get+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/event_ids:get:tags:@@ -1485,17 +1518,21 @@ paths:type: stringtitle: Idsresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ type: array+ items:+ $ref: "#/components/schemas/EventResponse"+ title: Response Event Ids Event Ids Get+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/events/search:get:tags:@@ -1509,7 +1546,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"title: Query- name: event_idin: query@@ -1517,7 +1554,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"title: Event Id- name: search_typein: query@@ -1525,7 +1562,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: thumbnailtitle: Search Type- name: include_thumbnails@@ -1534,7 +1571,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"default: 1title: Include Thumbnails- name: limit@@ -1543,7 +1580,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"default: 50title: Limit- name: cameras@@ -1552,7 +1589,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Cameras- name: labels@@ -1561,7 +1598,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Labels- name: zones@@ -1570,7 +1607,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: alltitle: Zones- name: after@@ -1579,7 +1616,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: After- name: beforein: query@@ -1587,7 +1624,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: Before- name: time_rangein: query@@ -1595,8 +1632,8 @@ paths:schema:anyOf:- type: string- - type: 'null'- default: 00:00,24:00+ - type: "null"+ default: "00:00,24:00"title: Time Range- name: has_clipin: query@@ -1604,7 +1641,7 @@ paths:schema:anyOf:- type: boolean- - type: 'null'+ - type: "null"title: Has Clip- name: has_snapshotin: query@@ -1612,15 +1649,23 @@ paths:schema:anyOf:- type: boolean- - type: 'null'+ - type: "null"title: Has Snapshot+ - name: is_submitted+ in: query+ required: false+ schema:+ anyOf:+ - type: boolean+ - type: "null"+ title: Is Submitted- name: timezonein: queryrequired: falseschema:anyOf:- type: string- - type: 'null'+ - type: "null"default: utctitle: Timezone- name: min_score@@ -1629,7 +1674,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: Min Score- name: max_scorein: query@@ -1637,7 +1682,7 @@ paths:schema:anyOf:- type: number- - type: 'null'+ - type: "null"title: Max Score- name: sortin: query@@ -1645,20 +1690,20 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"title: Sortresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/events/summary:get:tags:@@ -1672,7 +1717,7 @@ paths:schema:anyOf:- type: string- - type: 'null'+ - type: "null"default: utctitle: Timezone- name: has_clip@@ -1681,7 +1726,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Has Clip- name: has_snapshotin: query@@ -1689,21 +1734,21 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Has Snapshotresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}":get:tags:- Events@@ -1717,17 +1762,18 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/EventResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"delete:tags:- Events@@ -1741,18 +1787,19 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/retain:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/retain":post:tags:- Events@@ -1766,17 +1813,18 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"delete:tags:- Events@@ -1790,18 +1838,19 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/plus:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/plus":post:tags:- Events@@ -1819,21 +1868,22 @@ paths:application/json:schema:allOf:- - $ref: '#/components/schemas/SubmitPlusBody'+ - $ref: "#/components/schemas/SubmitPlusBody"title: Bodyresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/EventUploadPlusResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/false_positive:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/false_positive":put:tags:- Events@@ -1847,18 +1897,19 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/EventUploadPlusResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/sub_label:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/sub_label":post:tags:- Events@@ -1876,20 +1927,21 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/EventsSubLabelBody'+ $ref: "#/components/schemas/EventsSubLabelBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/description:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/description":post:tags:- Events@@ -1907,20 +1959,21 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/EventsDescriptionBody'+ $ref: "#/components/schemas/EventsDescriptionBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/description/regenerate:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/description/regenerate":put:tags:- Events@@ -1938,23 +1991,49 @@ paths:required: falseschema:anyOf:- - $ref: '#/components/schemas/RegenerateDescriptionEnum'- - type: 'null'+ - $ref: "#/components/schemas/RegenerateDescriptionEnum"+ - type: "null"default: thumbnailstitle: Sourceresponses:- '200':+ "200":+ description: Successful Response+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":+ description: Validation Error+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/HTTPValidationError"+ /events/:+ delete:+ tags:+ - Events+ summary: Delete Events+ operationId: delete_events_events__delete+ requestBody:+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/EventsDeleteBody"+ responses:+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/EventMultiDeleteResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{camera_name}/{label}/create:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{camera_name}/{label}/create":post:tags:- Events@@ -1978,27 +2057,28 @@ paths:application/json:schema:allOf:- - $ref: '#/components/schemas/EventsCreateBody'+ - $ref: "#/components/schemas/EventsCreateBody"default:source_type: apiscore: 0duration: 30include_recording: true- draw: { }+ draw: {}title: Bodyresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/EventCreateResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/end:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/end":put:tags:- Events@@ -2016,20 +2096,21 @@ paths:content:application/json:schema:- $ref: '#/components/schemas/EventsEndBody'+ $ref: "#/components/schemas/EventsEndBody"responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema:+ $ref: "#/components/schemas/GenericResponse"+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}":get:tags:- Media@@ -2062,7 +2143,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Bbox- name: timestampin: query@@ -2070,7 +2151,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Timestamp- name: zonesin: query@@ -2078,7 +2159,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Zones- name: maskin: query@@ -2086,7 +2167,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Mask- name: motionin: query@@ -2094,7 +2175,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Motion- name: regionsin: query@@ -2102,21 +2183,21 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Regionsresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/ptz/info:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/ptz/info":get:tags:- Media@@ -2130,18 +2211,18 @@ paths:type: stringtitle: Camera Nameresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/latest.{extension}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/latest.{extension}":get:tags:- Media@@ -2158,14 +2239,14 @@ paths:in: pathrequired: trueschema:- $ref: '#/components/schemas/Extension'+ $ref: "#/components/schemas/Extension"- name: bboxin: queryrequired: falseschema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Bbox- name: timestampin: query@@ -2173,7 +2254,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Timestamp- name: zonesin: query@@ -2181,7 +2262,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Zones- name: maskin: query@@ -2189,7 +2270,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Mask- name: motionin: query@@ -2197,7 +2278,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Motion- name: regionsin: query@@ -2205,7 +2286,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Regions- name: qualityin: query@@ -2213,7 +2294,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"default: 70title: Quality- name: height@@ -2222,21 +2303,21 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Heightresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/recordings/{frame_time}/snapshot.{format}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/recordings/{frame_time}/snapshot.{format}":get:tags:- Media@@ -2272,18 +2353,18 @@ paths:type: integertitle: Heightresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/plus/{frame_time}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/plus/{frame_time}":post:tags:- Media@@ -2303,17 +2384,17 @@ paths:type: stringtitle: Frame Timeresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"/recordings/storage:get:tags:@@ -2321,12 +2402,12 @@ paths:summary: Get Recordings Storage UsageoperationId: get_recordings_storage_usage_recordings_storage_getresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- /{camera_name}/recordings/summary:+ schema: {}+ "/{camera_name}/recordings/summary":get:tags:- Media@@ -2348,18 +2429,18 @@ paths:default: utctitle: Timezoneresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/recordings:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/recordings":get:tags:- Media@@ -2380,28 +2461,28 @@ paths:required: falseschema:type: number- default: 1731275308.238304+ default: 1733228876.15567title: After- name: beforein: queryrequired: falseschema:type: number- default: 1731278908.238313+ default: 1733232476.15567title: Beforeresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/start/{start_ts}/end/{end_ts}/clip.mp4:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/start/{start_ts}/end/{end_ts}/clip.mp4":get:tags:- Media@@ -2427,18 +2508,18 @@ paths:type: numbertitle: End Tsresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /vod/{camera_name}/start/{start_ts}/end/{end_ts}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/vod/{camera_name}/start/{start_ts}/end/{end_ts}":get:tags:- Media@@ -2464,18 +2545,18 @@ paths:type: numbertitle: End Tsresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /vod/{year_month}/{day}/{hour}/{camera_name}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/vod/{year_month}/{day}/{hour}/{camera_name}":get:tags:- Media@@ -2508,18 +2589,18 @@ paths:type: stringtitle: Camera Nameresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /vod/{year_month}/{day}/{hour}/{camera_name}/{tz_name}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/vod/{year_month}/{day}/{hour}/{camera_name}/{tz_name}":get:tags:- Media@@ -2557,18 +2638,18 @@ paths:type: stringtitle: Tz Nameresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /vod/event/{event_id}:+ $ref: "#/components/schemas/HTTPValidationError"+ "/vod/event/{event_id}":get:tags:- Media@@ -2582,18 +2663,18 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/snapshot.jpg:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/snapshot.jpg":get:tags:- Media@@ -2612,7 +2693,7 @@ paths:schema:anyOf:- type: boolean- - type: 'null'+ - type: "null"default: falsetitle: Download- name: timestamp@@ -2621,7 +2702,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Timestamp- name: bboxin: query@@ -2629,7 +2710,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Bbox- name: cropin: query@@ -2637,7 +2718,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Crop- name: heightin: query@@ -2645,7 +2726,7 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Height- name: qualityin: query@@ -2653,22 +2734,22 @@ paths:schema:anyOf:- type: integer- - type: 'null'+ - type: "null"default: 70title: Qualityresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/thumbnail.jpg:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/thumbnail.jpg":get:tags:- Media@@ -2701,18 +2782,18 @@ paths:default: iostitle: Formatresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/grid.jpg:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/grid.jpg":get:tags:- Media@@ -2740,18 +2821,18 @@ paths:default: 0.5title: Font Scaleresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/snapshot-clean.png:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/snapshot-clean.png":get:tags:- Media@@ -2772,18 +2853,18 @@ paths:default: falsetitle: Downloadresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/clip.mp4:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/clip.mp4":get:tags:- Media@@ -2797,18 +2878,18 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /events/{event_id}/preview.gif:+ $ref: "#/components/schemas/HTTPValidationError"+ "/events/{event_id}/preview.gif":get:tags:- Media@@ -2822,18 +2903,18 @@ paths:type: stringtitle: Event Idresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/start/{start_ts}/end/{end_ts}/preview.gif:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/start/{start_ts}/end/{end_ts}/preview.gif":get:tags:- Media@@ -2868,18 +2949,18 @@ paths:title: Max Cache Agedescription: Max cache age in seconds. Default 30 days in seconds.responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/start/{start_ts}/end/{end_ts}/preview.mp4:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/start/{start_ts}/end/{end_ts}/preview.mp4":get:tags:- Media@@ -2914,18 +2995,18 @@ paths:title: Max Cache Agedescription: Max cache age in seconds. Default 7 days in seconds.responses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /review/{event_id}/preview:+ $ref: "#/components/schemas/HTTPValidationError"+ "/review/{event_id}/preview":get:tags:- Media@@ -2949,18 +3030,18 @@ paths:default: giftitle: Formatresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /preview/{file_name}/thumbnail.webp:+ $ref: "#/components/schemas/HTTPValidationError"+ "/preview/{file_name}/thumbnail.webp":get:tags:- Media@@ -2975,18 +3056,18 @@ paths:type: stringtitle: File Nameresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /preview/{file_name}/thumbnail.jpg:+ $ref: "#/components/schemas/HTTPValidationError"+ "/preview/{file_name}/thumbnail.jpg":get:tags:- Media@@ -3001,18 +3082,18 @@ paths:type: stringtitle: File Nameresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/{label}/thumbnail.jpg:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/{label}/thumbnail.jpg":get:tags:- Media@@ -3032,18 +3113,18 @@ paths:type: stringtitle: Labelresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/{label}/best.jpg:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/{label}/best.jpg":get:tags:- Media@@ -3063,18 +3144,18 @@ paths:type: stringtitle: Labelresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/{label}/clip.mp4:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/{label}/clip.mp4":get:tags:- Media@@ -3094,18 +3175,18 @@ paths:type: stringtitle: Labelresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'- /{camera_name}/{label}/snapshot.jpg:+ $ref: "#/components/schemas/HTTPValidationError"+ "/{camera_name}/{label}/snapshot.jpg":get:tags:- Media@@ -3128,17 +3209,17 @@ paths:type: stringtitle: Labelresponses:- '200':+ "200":description: Successful Responsecontent:application/json:- schema: { }- '422':+ schema: {}+ "422":description: Validation Errorcontent:application/json:schema:- $ref: '#/components/schemas/HTTPValidationError'+ $ref: "#/components/schemas/HTTPValidationError"components:schemas:AppConfigSetBody:@@ -3210,51 +3291,199 @@ components:- total_alert- total_detectiontitle: DayReview+ EventCreateResponse:+ properties:+ success:+ type: boolean+ title: Success+ message:+ type: string+ title: Message+ event_id:+ type: string+ title: Event Id+ type: object+ required:+ - success+ - message+ - event_id+ title: EventCreateResponse+ EventMultiDeleteResponse:+ properties:+ success:+ type: boolean+ title: Success+ deleted_events:+ items:+ type: string+ type: array+ title: Deleted Events+ not_found_events:+ items:+ type: string+ type: array+ title: Not Found Events+ type: object+ required:+ - success+ - deleted_events+ - not_found_events+ title: EventMultiDeleteResponse+ EventResponse:+ properties:+ id:+ type: string+ title: Id+ label:+ type: string+ title: Label+ sub_label:+ anyOf:+ - type: string+ - type: "null"+ title: Sub Label+ camera:+ type: string+ title: Camera+ start_time:+ type: number+ title: Start Time+ end_time:+ anyOf:+ - type: number+ - type: "null"+ title: End Time+ false_positive:+ type: boolean+ title: False Positive+ zones:+ items:+ type: string+ type: array+ title: Zones+ thumbnail:+ type: string+ title: Thumbnail+ has_clip:+ type: boolean+ title: Has Clip+ has_snapshot:+ type: boolean+ title: Has Snapshot+ retain_indefinitely:+ type: boolean+ title: Retain Indefinitely+ plus_id:+ anyOf:+ - type: string+ - type: "null"+ title: Plus Id+ model_hash:+ anyOf:+ - type: string+ - type: "null"+ title: Model Hash+ detector_type:+ anyOf:+ - type: string+ - type: "null"+ title: Detector Type+ model_type:+ anyOf:+ - type: string+ - type: "null"+ title: Model Type+ data:+ title: Data+ type: object+ required:+ - id+ - label+ - sub_label+ - camera+ - start_time+ - end_time+ - false_positive+ - zones+ - thumbnail+ - has_clip+ - has_snapshot+ - retain_indefinitely+ - plus_id+ - model_hash+ - detector_type+ - model_type+ - data+ title: EventResponse+ EventUploadPlusResponse:+ properties:+ success:+ type: boolean+ title: Success+ plus_id:+ type: string+ title: Plus Id+ type: object+ required:+ - success+ - plus_id+ title: EventUploadPlusResponseEventsCreateBody:properties:source_type:anyOf:- type: string- - type: 'null'+ - type: "null"title: Source Typedefault: apisub_label:anyOf:- type: string- - type: 'null'+ - type: "null"title: Sub Labelscore:anyOf:- type: number- - type: 'null'+ - type: "null"title: Scoredefault: 0duration:anyOf:- type: integer- - type: 'null'+ - type: "null"title: Durationdefault: 30include_recording:anyOf:- type: boolean- - type: 'null'+ - type: "null"title: Include Recordingdefault: truedraw:anyOf:- type: object- - type: 'null'+ - type: "null"title: Draw- default: { }+ default: {}type: objecttitle: EventsCreateBody+ EventsDeleteBody:+ properties:+ event_ids:+ items:+ type: string+ type: array+ title: The event IDs to delete+ type: object+ required:+ - event_ids+ title: EventsDeleteBodyEventsDescriptionBody:properties:description:anyOf:- type: string- - type: 'null'+ - type: "null"title: The description of the eventtype: objectrequired:@@ -3265,7 +3494,7 @@ components:end_time:anyOf:- type: number- - type: 'null'+ - type: "null"title: End Timetype: objecttitle: EventsEndBody@@ -3280,7 +3509,7 @@ components:- type: numbermaximum: 1exclusiveMinimum: 0- - type: 'null'+ - type: "null"title: Score for sub labeltype: objectrequired:@@ -3290,12 +3519,12 @@ components:properties:playback:allOf:- - $ref: '#/components/schemas/PlaybackFactorEnum'+ - $ref: "#/components/schemas/PlaybackFactorEnum"title: Playback factordefault: realtimesource:allOf:- - $ref: '#/components/schemas/PlaybackSourceEnum'+ - $ref: "#/components/schemas/PlaybackSourceEnum"title: Playback sourcedefault: recordingsname:@@ -3332,7 +3561,7 @@ components:properties:detail:items:- $ref: '#/components/schemas/ValidationError'+ $ref: "#/components/schemas/ValidationError"type: arraytitle: Detailtype: object@@ -3426,7 +3655,7 @@ components:type: booleantitle: Has Been Reviewedseverity:- $ref: '#/components/schemas/SeverityEnum'+ $ref: "#/components/schemas/SeverityEnum"thumb_path:type: stringtitle: Thumb Path@@ -3446,10 +3675,10 @@ components:ReviewSummaryResponse:properties:last24Hours:- $ref: '#/components/schemas/Last24HoursReview'+ $ref: "#/components/schemas/Last24HoursReview"root:additionalProperties:- $ref: '#/components/schemas/DayReview'+ $ref: "#/components/schemas/DayReview"type: objecttitle: Roottype: objectdiff --git a/frigate/api/app.py b/frigate/api/app.pyindex d4c5cdba3f..53855efcac 100644--- a/frigate/api/app.py+++ b/frigate/api/app.py@@ -17,8 +17,8 @@ from fastapi.responses import JSONResponse, PlainTextResponsefrom markupsafe import escapefrom peewee import operator-from frigate.api.defs.app_body import AppConfigSetBody-from frigate.api.defs.app_query_parameters import AppTimelineHourlyQueryParameters+from frigate.api.defs.query.app_query_parameters import AppTimelineHourlyQueryParameters+from frigate.api.defs.request.app_body import AppConfigSetBodyfrom frigate.api.defs.tags import Tagsfrom frigate.config import FrigateConfigfrom frigate.const import CONFIG_DIRdiff --git a/frigate/api/auth.py b/frigate/api/auth.pyindex 8976469f5f..cb5497f980 100644--- a/frigate/api/auth.py+++ b/frigate/api/auth.py@@ -18,7 +18,7 @@ from joserfc import jwtfrom peewee import DoesNotExistfrom slowapi import Limiter-from frigate.api.defs.app_body import (+from frigate.api.defs.request.app_body import (AppPostLoginBody,AppPostUsersBody,AppPutPasswordBody,diff --git a/frigate/api/defs/app_query_parameters.py b/frigate/api/defs/query/app_query_parameters.pysimilarity index 100%rename from frigate/api/defs/app_query_parameters.pyrename to frigate/api/defs/query/app_query_parameters.pydiff --git a/frigate/api/defs/events_query_parameters.py b/frigate/api/defs/query/events_query_parameters.pysimilarity index 100%rename from frigate/api/defs/events_query_parameters.pyrename to frigate/api/defs/query/events_query_parameters.pydiff --git a/frigate/api/defs/media_query_parameters.py b/frigate/api/defs/query/media_query_parameters.pysimilarity index 100%rename from frigate/api/defs/media_query_parameters.pyrename to frigate/api/defs/query/media_query_parameters.pydiff --git a/frigate/api/defs/regenerate_query_parameters.py b/frigate/api/defs/query/regenerate_query_parameters.pysimilarity index 100%rename from frigate/api/defs/regenerate_query_parameters.pyrename to frigate/api/defs/query/regenerate_query_parameters.pydiff --git a/frigate/api/defs/review_query_parameters.py b/frigate/api/defs/query/review_query_parameters.pysimilarity index 100%rename from frigate/api/defs/review_query_parameters.pyrename to frigate/api/defs/query/review_query_parameters.pydiff --git a/frigate/api/defs/app_body.py b/frigate/api/defs/request/app_body.pysimilarity index 100%rename from frigate/api/defs/app_body.pyrename to frigate/api/defs/request/app_body.pydiff --git a/frigate/api/defs/events_body.py b/frigate/api/defs/request/events_body.pysimilarity index 100%rename from frigate/api/defs/events_body.pyrename to frigate/api/defs/request/events_body.pydiff --git a/frigate/api/defs/review_body.py b/frigate/api/defs/request/review_body.pysimilarity index 100%rename from frigate/api/defs/review_body.pyrename to frigate/api/defs/request/review_body.pydiff --git a/frigate/api/defs/response/event_response.py b/frigate/api/defs/response/event_response.pynew file mode 100644index 0000000000..75cf670dc4--- /dev/null+++ b/frigate/api/defs/response/event_response.py@@ -0,0 +1,40 @@+from typing import Any, Optional++from pydantic import BaseModel+++class EventResponse(BaseModel):+ id: str+ label: str+ sub_label: Optional[str]+ camera: str+ start_time: float+ end_time: Optional[float]+ false_positive: bool+ zones: list[str]+ thumbnail: str+ has_clip: bool+ has_snapshot: bool+ retain_indefinitely: bool+ plus_id: Optional[str]+ model_hash: Optional[str]+ detector_type: Optional[str]+ model_type: Optional[str]+ data: dict[str, Any]+++class EventCreateResponse(BaseModel):+ success: bool+ message: str+ event_id: str+++class EventMultiDeleteResponse(BaseModel):+ success: bool+ deleted_events: list[str]+ not_found_events: list[str]+++class EventUploadPlusResponse(BaseModel):+ success: bool+ plus_id: strdiff --git a/frigate/api/defs/generic_response.py b/frigate/api/defs/response/generic_response.pysimilarity index 100%rename from frigate/api/defs/generic_response.pyrename to frigate/api/defs/response/generic_response.pydiff --git a/frigate/api/defs/review_responses.py b/frigate/api/defs/response/review_response.pysimilarity index 100%rename from frigate/api/defs/review_responses.pyrename to frigate/api/defs/response/review_response.pydiff --git a/frigate/api/event.py b/frigate/api/event.pyindex dc98d094e9..3ba4ae4260 100644--- a/frigate/api/event.py+++ b/frigate/api/event.py@@ -14,7 +14,16 @@ from fastapi.responses import JSONResponsefrom peewee import JOIN, DoesNotExist, fn, operatorfrom playhouse.shortcuts import model_to_dict-from frigate.api.defs.events_body import (+from frigate.api.defs.query.events_query_parameters import (+ DEFAULT_TIME_RANGE,+ EventsQueryParams,+ EventsSearchQueryParams,+ EventsSummaryQueryParams,+)+from frigate.api.defs.query.regenerate_query_parameters import (+ RegenerateQueryParameters,+)+from frigate.api.defs.request.events_body import (EventsCreateBody,EventsDeleteBody,EventsDescriptionBody,@@ -22,19 +31,15 @@ from frigate.api.defs.events_body import (EventsSubLabelBody,SubmitPlusBody,)-from frigate.api.defs.events_query_parameters import (- DEFAULT_TIME_RANGE,- EventsQueryParams,- EventsSearchQueryParams,- EventsSummaryQueryParams,-)-from frigate.api.defs.regenerate_query_parameters import (- RegenerateQueryParameters,+from frigate.api.defs.response.event_response import (+ EventCreateResponse,+ EventMultiDeleteResponse,+ EventResponse,+ EventUploadPlusResponse,)+from frigate.api.defs.response.generic_response import GenericResponsefrom frigate.api.defs.tags import Tags-from frigate.const import (- CLIPS_DIR,-)+from frigate.const import CLIPS_DIRfrom frigate.embeddings import EmbeddingsContextfrom frigate.events.external import ExternalEventProcessorfrom frigate.models import Event, ReviewSegment, Timeline@@ -46,7 +51,7 @@ logger = logging.getLogger(__name__)router = APIRouter(tags=[Tags.events])[email protected]("/events")[email protected]("/events", response_model=list[EventResponse])def events(params: EventsQueryParams = Depends()):camera = params.cameracameras = params.cameras@@ -265,7 +270,7 @@ def events(params: EventsQueryParams = Depends()):return JSONResponse(content=list(events))[email protected]("/events/explore")[email protected]("/events/explore", response_model=list[EventResponse])def events_explore(limit: int = 10):# get distinct labels for all eventsdistinct_labels = Event.select(Event.label).distinct().order_by(Event.label)@@ -310,7 +315,8 @@ def events_explore(limit: int = 10):"data": {k: vfor k, v in event.data.items()- if k in ["type", "score", "top_score", "description"]+ if k+ in ["type", "score", "top_score", "description", "sub_label_score"]},"event_count": label_counts[event.label],}@@ -326,7 +332,7 @@ def events_explore(limit: int = 10):return JSONResponse(content=processed_events)[email protected]("/event_ids")[email protected]("/event_ids", response_model=list[EventResponse])def event_ids(ids: str):ids = ids.split(",")@@ -647,7 +653,7 @@ def events_summary(params: EventsSummaryQueryParams = Depends()):return JSONResponse(content=[e for e in groups.dicts()])[email protected]("/events/{event_id}")[email protected]("/events/{event_id}", response_model=EventResponse)def event(event_id: str):try:return model_to_dict(Event.get(Event.id == event_id))@@ -655,7 +661,7 @@ def event(event_id: str):return JSONResponse(content="Event not found", status_code=404)[email protected]("/events/{event_id}/retain")[email protected]("/events/{event_id}/retain", response_model=GenericResponse)def set_retain(event_id: str):try:event = Event.get(Event.id == event_id)@@ -674,7 +680,7 @@ def set_retain(event_id: str):)[email protected]("/events/{event_id}/plus")[email protected]("/events/{event_id}/plus", response_model=EventUploadPlusResponse)def send_to_plus(request: Request, event_id: str, body: SubmitPlusBody = None):if not request.app.frigate_config.plus_api.is_active():message = "PLUS_API_KEY environment variable is not set"@@ -786,7 +792,7 @@ def send_to_plus(request: Request, event_id: str, body: SubmitPlusBody = None):)[email protected]("/events/{event_id}/false_positive")[email protected]("/events/{event_id}/false_positive", response_model=EventUploadPlusResponse)def false_positive(request: Request, event_id: str):if not request.app.frigate_config.plus_api.is_active():message = "PLUS_API_KEY environment variable is not set"@@ -875,7 +881,7 @@ def false_positive(request: Request, event_id: str):)[email protected]("/events/{event_id}/retain")[email protected]("/events/{event_id}/retain", response_model=GenericResponse)def delete_retain(event_id: str):try:event = Event.get(Event.id == event_id)@@ -894,7 +900,7 @@ def delete_retain(event_id: str):)[email protected]("/events/{event_id}/sub_label")[email protected]("/events/{event_id}/sub_label", response_model=GenericResponse)def set_sub_label(request: Request,event_id: str,@@ -946,7 +952,7 @@ def set_sub_label()[email protected]("/events/{event_id}/description")[email protected]("/events/{event_id}/description", response_model=GenericResponse)def set_description(request: Request,event_id: str,@@ -993,7 +999,7 @@ def set_description()[email protected]("/events/{event_id}/description/regenerate")[email protected]("/events/{event_id}/description/regenerate", response_model=GenericResponse)def regenerate_description(request: Request, event_id: str, params: RegenerateQueryParameters = Depends()):@@ -1064,14 +1070,14 @@ def delete_single_event(event_id: str, request: Request) -> dict:return {"success": True, "message": f"Event {event_id} deleted"}[email protected]("/events/{event_id}")[email protected]("/events/{event_id}", response_model=GenericResponse)def delete_event(request: Request, event_id: str):result = delete_single_event(event_id, request)status_code = 200 if result["success"] else 404return JSONResponse(content=result, status_code=status_code)[email protected]("/events/")[email protected]("/events/", response_model=EventMultiDeleteResponse)def delete_events(request: Request, body: EventsDeleteBody):if not body.event_ids:return JSONResponse(@@ -1097,7 +1103,7 @@ def delete_events(request: Request, body: EventsDeleteBody):return JSONResponse(content=response, status_code=200)[email protected]("/events/{camera_name}/{label}/create")[email protected]("/events/{camera_name}/{label}/create", response_model=EventCreateResponse)def create_event(request: Request,camera_name: str,@@ -1153,7 +1159,7 @@ def create_event()[email protected]("/events/{event_id}/end")[email protected]("/events/{event_id}/end", response_model=GenericResponse)def end_event(request: Request, event_id: str, body: EventsEndBody):try:end_time = body.end_time or datetime.datetime.now().timestamp()diff --git a/frigate/api/export.py b/frigate/api/export.pyindex 71f6123711..ba0f8be28c 100644--- a/frigate/api/export.py+++ b/frigate/api/export.py@@ -9,6 +9,7 @@ import psutilfrom fastapi import APIRouter, Requestfrom fastapi.responses import JSONResponsefrom peewee import DoesNotExist+from playhouse.shortcuts import model_to_dictfrom frigate.api.defs.request.export_recordings_body import ExportRecordingsBodyfrom frigate.api.defs.tags import Tags@@ -207,3 +208,14 @@ def export_delete(event_id: str):),status_code=200,)++[email protected]("/exports/{export_id}")+def get_export(export_id: str):+ try:+ return JSONResponse(content=model_to_dict(Export.get(Export.id == export_id)))+ except DoesNotExist:+ return JSONResponse(+ content={"success": False, "message": "Export not found"},+ status_code=404,+ )diff --git a/frigate/api/media.py b/frigate/api/media.pyindex a907668995..e19fe547f4 100644--- a/frigate/api/media.py+++ b/frigate/api/media.py@@ -20,7 +20,7 @@ from pathvalidate import sanitize_filenamefrom peewee import DoesNotExist, fnfrom tzlocal import get_localzone_name-from frigate.api.defs.media_query_parameters import (+from frigate.api.defs.query.media_query_parameters import (Extension,MediaEventsSnapshotQueryParams,MediaLatestFrameQueryParams,diff --git a/frigate/api/review.py b/frigate/api/review.pyindex 04e3e6dcd5..56bd937bc6 100644--- a/frigate/api/review.py+++ b/frigate/api/review.py@@ -12,14 +12,14 @@ from fastapi.responses import JSONResponsefrom peewee import Case, DoesNotExist, fn, operatorfrom playhouse.shortcuts import model_to_dict-from frigate.api.defs.generic_response import GenericResponse-from frigate.api.defs.review_body import ReviewModifyMultipleBody-from frigate.api.defs.review_query_parameters import (+from frigate.api.defs.query.review_query_parameters import (ReviewActivityMotionQueryParams,ReviewQueryParams,ReviewSummaryQueryParams,)-from frigate.api.defs.review_responses import (+from frigate.api.defs.request.review_body import ReviewModifyMultipleBody+from frigate.api.defs.response.generic_response import GenericResponse+from frigate.api.defs.response.review_response import (ReviewActivityMotionResponse,ReviewSegmentResponse,ReviewSummaryResponse,@@ -364,7 +364,7 @@ def delete_reviews(body: ReviewModifyMultipleBody):ReviewSegment.delete().where(ReviewSegment.id << list_of_ids).execute()return JSONResponse(- content=({"success": True, "message": "Delete reviews"}), status_code=200+ content=({"success": True, "message": "Deleted review items."}), status_code=200)diff --git a/frigate/test/http_api/test_http_review.py b/frigate/test/http_api/test_http_review.pyindex 3bd8779aa9..352b79c7a5 100644--- a/frigate/test/http_api/test_http_review.py+++ b/frigate/test/http_api/test_http_review.py@@ -525,7 +525,7 @@ class TestHttpReview(BaseTestHttp):assert response.status_code == 200response_json = response.json()assert response_json["success"] == True- assert response_json["message"] == "Delete reviews"+ assert response_json["message"] == "Deleted review items."# Verify that in DB the review segment was not deletedreview_ids_in_db_after = self._get_reviews([id])assert len(review_ids_in_db_after) == 1@@ -540,7 +540,7 @@ class TestHttpReview(BaseTestHttp):assert response.status_code == 200response_json = response.json()assert response_json["success"] == True- assert response_json["message"] == "Delete reviews"+ assert response_json["message"] == "Deleted review items."# Verify that in DB the review segment was deletedreview_ids_in_db_after = self._get_reviews([id])assert len(review_ids_in_db_after) == 0@@ -562,7 +562,7 @@ class TestHttpReview(BaseTestHttp):assert response.status_code == 200response_json = response.json()assert response_json["success"] == True- assert response_json["message"] == "Delete reviews"+ assert response_json["message"] == "Deleted review items."# Verify that in DB all review segments and recordings that were passed were deletedreview_ids_in_db_after = self._get_reviews(ids)diff --git a/frigate/test/test_http.py b/frigate/test/test_http.pyindex d5927ad2b0..2137942591 100644--- a/frigate/test/test_http.py+++ b/frigate/test/test_http.py@@ -168,7 +168,7 @@ class TestHttp(unittest.TestCase):assert eventassert event["id"] == id- assert event == model_to_dict(Event.get(Event.id == id))+ assert event["id"] == model_to_dict(Event.get(Event.id == id))["id"]def test_get_bad_event(self):app = create_fastapi_app(