remove periods

This commit is contained in:
Josh Hawkins 2025-12-03 14:37:37 -06:00
parent 49be4a53cd
commit 7450e0a276
2 changed files with 40 additions and 40 deletions

View File

@ -2268,7 +2268,7 @@ paths:
get: get:
tags: tags:
- Events - Events
summary: Get summary of objects. summary: Get summary of objects
description: |- description: |-
Gets a summary of objects from the database. Gets a summary of objects from the database.
Returns a list of objects with a max of `limit` objects for each label. Returns a list of objects with a max of `limit` objects for each label.
@ -2301,7 +2301,7 @@ paths:
get: get:
tags: tags:
- Events - Events
summary: Get events by ids. summary: Get events by ids
description: |- description: |-
Gets events by a list of ids. Gets events by a list of ids.
Returns a list of events. Returns a list of events.
@ -2333,7 +2333,7 @@ paths:
get: get:
tags: tags:
- Events - Events
summary: Search events. summary: Search events
description: |- description: |-
Searches for events in the database. Searches for events in the database.
Returns a list of events. Returns a list of events.
@ -2576,7 +2576,7 @@ paths:
get: get:
tags: tags:
- Events - Events
summary: Get event by id. summary: Get event by id
description: Gets an event by its id. description: Gets an event by its id.
operationId: event_events__event_id__get operationId: event_events__event_id__get
parameters: parameters:
@ -2602,7 +2602,7 @@ paths:
delete: delete:
tags: tags:
- Events - Events
summary: Delete event. summary: Delete event
description: |- description: |-
Deletes an event from the database. Deletes an event from the database.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -2631,7 +2631,7 @@ paths:
post: post:
tags: tags:
- Events - Events
summary: Set event retain indefinitely. summary: Set event retain indefinitely
description: |- description: |-
Sets an event to retain indefinitely. Sets an event to retain indefinitely.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -2660,7 +2660,7 @@ paths:
delete: delete:
tags: tags:
- Events - Events
summary: Stop event from being retained indefinitely. summary: Stop event from being retained indefinitely
description: |- description: |-
Stops an event from being retained indefinitely. Stops an event from being retained indefinitely.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -2690,7 +2690,7 @@ paths:
post: post:
tags: tags:
- Events - Events
summary: Send event to Frigate+. summary: Send event to Frigate+
description: |- description: |-
Sends an event to Frigate+. Sends an event to Frigate+.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -2754,7 +2754,7 @@ paths:
post: post:
tags: tags:
- Events - Events
summary: Set event sub label. summary: Set event sub label
description: |- description: |-
Sets an event's sub label. Sets an event's sub label.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -2789,7 +2789,7 @@ paths:
post: post:
tags: tags:
- Events - Events
summary: Set event license plate. summary: Set event license plate
description: |- description: |-
Sets an event's license plate. Sets an event's license plate.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -2824,7 +2824,7 @@ paths:
post: post:
tags: tags:
- Events - Events
summary: Set event description. summary: Set event description
description: |- description: |-
Sets an event's description. Sets an event's description.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -2859,7 +2859,7 @@ paths:
put: put:
tags: tags:
- Events - Events
summary: Regenerate event description. summary: Regenerate event description
description: |- description: |-
Regenerates an event's description. Regenerates an event's description.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -2906,7 +2906,7 @@ paths:
post: post:
tags: tags:
- Events - Events
summary: Generate description embedding. summary: Generate description embedding
description: |- description: |-
Generates an embedding for an event's description. Generates an embedding for an event's description.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -2934,7 +2934,7 @@ paths:
delete: delete:
tags: tags:
- Events - Events
summary: Delete events. summary: Delete events
description: |- description: |-
Deletes a list of events from the database. Deletes a list of events from the database.
Returns a success message or an error if the events are not found. Returns a success message or an error if the events are not found.
@ -2962,7 +2962,7 @@ paths:
post: post:
tags: tags:
- Events - Events
summary: Create manual event. summary: Create manual event
description: |- description: |-
Creates a manual event in the database. Creates a manual event in the database.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -3010,7 +3010,7 @@ paths:
put: put:
tags: tags:
- Events - Events
summary: End manual event. summary: End manual event
description: |- description: |-
Ends a manual event. Ends a manual event.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
@ -3046,7 +3046,7 @@ paths:
post: post:
tags: tags:
- Events - Events
summary: Create trigger embedding. summary: Create trigger embedding
description: |- description: |-
Creates a trigger embedding for a specific trigger. Creates a trigger embedding for a specific trigger.
Returns a success message or an error if the trigger is not found. Returns a success message or an error if the trigger is not found.
@ -3088,7 +3088,7 @@ paths:
put: put:
tags: tags:
- Events - Events
summary: Update trigger embedding. summary: Update trigger embedding
description: |- description: |-
Updates a trigger embedding for a specific trigger. Updates a trigger embedding for a specific trigger.
Returns a success message or an error if the trigger is not found. Returns a success message or an error if the trigger is not found.
@ -3131,7 +3131,7 @@ paths:
delete: delete:
tags: tags:
- Events - Events
summary: Delete trigger embedding. summary: Delete trigger embedding
description: |- description: |-
Deletes a trigger embedding for a specific trigger. Deletes a trigger embedding for a specific trigger.
Returns a success message or an error if the trigger is not found. Returns a success message or an error if the trigger is not found.
@ -3169,7 +3169,7 @@ paths:
get: get:
tags: tags:
- Events - Events
summary: Get triggers status. summary: Get triggers status
description: |- description: |-
Gets the status of all triggers for a specific camera. Gets the status of all triggers for a specific camera.
Returns a success message or an error if the camera is not found. Returns a success message or an error if the camera is not found.

View File

@ -346,7 +346,7 @@ def events(
"/events/explore", "/events/explore",
response_model=list[EventResponse], response_model=list[EventResponse],
dependencies=[Depends(allow_any_authenticated())], dependencies=[Depends(allow_any_authenticated())],
summary="Get summary of objects.", summary="Get summary of objects",
description="""Gets a summary of objects from the database. description="""Gets a summary of objects from the database.
Returns a list of objects with a max of `limit` objects for each label. Returns a list of objects with a max of `limit` objects for each label.
""", """,
@ -439,7 +439,7 @@ def events_explore(
"/event_ids", "/event_ids",
response_model=list[EventResponse], response_model=list[EventResponse],
dependencies=[Depends(allow_any_authenticated())], dependencies=[Depends(allow_any_authenticated())],
summary="Get events by ids.", summary="Get events by ids",
description="""Gets events by a list of ids. description="""Gets events by a list of ids.
Returns a list of events. Returns a list of events.
""", """,
@ -473,7 +473,7 @@ async def event_ids(ids: str, request: Request):
@router.get( @router.get(
"/events/search", "/events/search",
dependencies=[Depends(allow_any_authenticated())], dependencies=[Depends(allow_any_authenticated())],
summary="Search events.", summary="Search events",
description="""Searches for events in the database. description="""Searches for events in the database.
Returns a list of events. Returns a list of events.
""", """,
@ -924,7 +924,7 @@ def events_summary(
"/events/{event_id}", "/events/{event_id}",
response_model=EventResponse, response_model=EventResponse,
dependencies=[Depends(allow_any_authenticated())], dependencies=[Depends(allow_any_authenticated())],
summary="Get event by id.", summary="Get event by id",
description="Gets an event by its id.", description="Gets an event by its id.",
) )
async def event(event_id: str, request: Request): async def event(event_id: str, request: Request):
@ -968,7 +968,7 @@ def set_retain(event_id: str):
"/events/{event_id}/plus", "/events/{event_id}/plus",
response_model=EventUploadPlusResponse, response_model=EventUploadPlusResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Send event to Frigate+.", summary="Send event to Frigate+",
description="""Sends an event to Frigate+. description="""Sends an event to Frigate+.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
""", """,
@ -1207,7 +1207,7 @@ async def false_positive(request: Request, event_id: str):
"/events/{event_id}/retain", "/events/{event_id}/retain",
response_model=GenericResponse, response_model=GenericResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Stop event from being retained indefinitely.", summary="Stop event from being retained indefinitely",
description="""Stops an event from being retained indefinitely. description="""Stops an event from being retained indefinitely.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
NOTE: This is a legacy endpoint and is not supported in the frontend. NOTE: This is a legacy endpoint and is not supported in the frontend.
@ -1236,7 +1236,7 @@ async def delete_retain(event_id: str, request: Request):
"/events/{event_id}/sub_label", "/events/{event_id}/sub_label",
response_model=GenericResponse, response_model=GenericResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Set event sub label.", summary="Set event sub label",
description="""Sets an event's sub label. description="""Sets an event's sub label.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
""", """,
@ -1295,7 +1295,7 @@ async def set_sub_label(
"/events/{event_id}/recognized_license_plate", "/events/{event_id}/recognized_license_plate",
response_model=GenericResponse, response_model=GenericResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Set event license plate.", summary="Set event license plate",
description="""Sets an event's license plate. description="""Sets an event's license plate.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
""", """,
@ -1355,7 +1355,7 @@ async def set_plate(
"/events/{event_id}/description", "/events/{event_id}/description",
response_model=GenericResponse, response_model=GenericResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Set event description.", summary="Set event description",
description="""Sets an event's description. description="""Sets an event's description.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
""", """,
@ -1411,7 +1411,7 @@ async def set_description(
"/events/{event_id}/description/regenerate", "/events/{event_id}/description/regenerate",
response_model=GenericResponse, response_model=GenericResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Regenerate event description.", summary="Regenerate event description",
description="""Regenerates an event's description. description="""Regenerates an event's description.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
""", """,
@ -1463,8 +1463,8 @@ async def regenerate_description(
@router.post( @router.post(
"/description/generate", "/description/generate",
response_model=GenericResponse, response_model=GenericResponse,
# dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Generate description embedding.", summary="Generate description embedding",
description="""Generates an embedding for an event's description. description="""Generates an embedding for an event's description.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
""", """,
@ -1529,7 +1529,7 @@ async def delete_single_event(event_id: str, request: Request) -> dict:
"/events/{event_id}", "/events/{event_id}",
response_model=GenericResponse, response_model=GenericResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Delete event.", summary="Delete event",
description="""Deletes an event from the database. description="""Deletes an event from the database.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
""", """,
@ -1544,7 +1544,7 @@ async def delete_event(request: Request, event_id: str):
"/events/", "/events/",
response_model=EventMultiDeleteResponse, response_model=EventMultiDeleteResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Delete events.", summary="Delete events",
description="""Deletes a list of events from the database. description="""Deletes a list of events from the database.
Returns a success message or an error if the events are not found. Returns a success message or an error if the events are not found.
""", """,
@ -1578,7 +1578,7 @@ async def delete_events(request: Request, body: EventsDeleteBody):
"/events/{camera_name}/{label}/create", "/events/{camera_name}/{label}/create",
response_model=EventCreateResponse, response_model=EventCreateResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Create manual event.", summary="Create manual event",
description="""Creates a manual event in the database. description="""Creates a manual event in the database.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
NOTES: NOTES:
@ -1642,7 +1642,7 @@ def create_event(
"/events/{event_id}/end", "/events/{event_id}/end",
response_model=GenericResponse, response_model=GenericResponse,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="End manual event.", summary="End manual event",
description="""Ends a manual event. description="""Ends a manual event.
Returns a success message or an error if the event is not found. Returns a success message or an error if the event is not found.
NOTE: This should only be used for manual events. NOTE: This should only be used for manual events.
@ -1691,7 +1691,7 @@ async def end_event(request: Request, event_id: str, body: EventsEndBody):
"/trigger/embedding", "/trigger/embedding",
response_model=dict, response_model=dict,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Create trigger embedding.", summary="Create trigger embedding",
description="""Creates a trigger embedding for a specific trigger. description="""Creates a trigger embedding for a specific trigger.
Returns a success message or an error if the trigger is not found. Returns a success message or an error if the trigger is not found.
""", """,
@ -1849,7 +1849,7 @@ def create_trigger_embedding(
"/trigger/embedding/{camera_name}/{name}", "/trigger/embedding/{camera_name}/{name}",
response_model=dict, response_model=dict,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Update trigger embedding.", summary="Update trigger embedding",
description="""Updates a trigger embedding for a specific trigger. description="""Updates a trigger embedding for a specific trigger.
Returns a success message or an error if the trigger is not found. Returns a success message or an error if the trigger is not found.
""", """,
@ -2014,7 +2014,7 @@ def update_trigger_embedding(
"/trigger/embedding/{camera_name}/{name}", "/trigger/embedding/{camera_name}/{name}",
response_model=dict, response_model=dict,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Delete trigger embedding.", summary="Delete trigger embedding",
description="""Deletes a trigger embedding for a specific trigger. description="""Deletes a trigger embedding for a specific trigger.
Returns a success message or an error if the trigger is not found. Returns a success message or an error if the trigger is not found.
""", """,
@ -2088,7 +2088,7 @@ def delete_trigger_embedding(
"/triggers/status/{camera_name}", "/triggers/status/{camera_name}",
response_model=dict, response_model=dict,
dependencies=[Depends(require_role(["admin"]))], dependencies=[Depends(require_role(["admin"]))],
summary="Get triggers status.", summary="Get triggers status",
description="""Gets the status of all triggers for a specific camera. description="""Gets the status of all triggers for a specific camera.
Returns a success message or an error if the camera is not found. Returns a success message or an error if the camera is not found.
""", """,