{"openapi":"3.1.0","info":{"title":"Evercam AI API v2","description":"Evercam API v2\n**Authentication Methods:**\n- **Bearer Token:** `Authorization: Bearer <token>`\n- **Service API Key:** `x-api-key: <jwt-key>`\n\nQuery params: `?authorization=<token>`\n","version":"0.0.0+local"},"paths":{"/v2/projects/{project_exid}/activity_events":{"get":{"tags":["activity-recognition"],"summary":"Get Activity Events","description":"Get paginated activity events for a project with optional filters.","operationId":"get_activity_events_v2_projects__project_exid__activity_events_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"activity_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by activity IDs","title":"Activity Ids"},"description":"Filter by activity IDs"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status: detected | confirmed | rejected","title":"Status"},"description":"Filter by status: detected | confirmed | rejected"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter events starting at or after this date","title":"Start Date"},"description":"Filter events starting at or after this date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter events starting at or before this date","title":"End Date"},"description":"Filter events starting at or before this date"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by model ID","title":"Model Id"},"description":"Filter by model ID"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort field and direction (e.g. start_time|desc)","title":"Sort"},"description":"Sort field and direction (e.g. start_time|desc)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ActivityEventItem_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/activities":{"get":{"tags":["activity-recognition"],"summary":"List Activities","description":"Get all activity types for use in filters and dropdowns.","operationId":"list_activities_v2_activities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse_list_ActivityItem__"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/activity-models":{"get":{"tags":["activity-recognition"],"summary":"List Activity Models","description":"Get activity-recognition models for filter dropdowns.","operationId":"list_activity_models_v2_activity_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse_list_MlModelItem__"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/activity_events/{capture_time}/snapshot":{"get":{"tags":["activity-recognition"],"summary":"Get Activity Event Snapshot","description":"Get a snapshot image for an activity event.\n\nReturns a 307 redirect to a presigned S3 URL. If the image is not yet cached in S3,\nit is fetched from ExNVR and uploaded before redirecting.","operationId":"get_activity_event_snapshot_v2_cameras__camera_exid__activity_events__capture_time__snapshot_get","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"capture_time","in":"path","required":true,"schema":{"type":"string","format":"date-time","description":"Event capture time (ISO 8601)","title":"Capture Time"},"description":"Event capture time (ISO 8601)"}],"responses":{"307":{"description":"Temporary redirect to a presigned URL — follow the Location header.","content":{"application/json":{"schema":{}}},"headers":{"Location":{"description":"Presigned URL to fetch the resource.","schema":{"type":"string","format":"uri"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/object-detection-metrics":{"get":{"tags":["ai-models"],"summary":"Get Metrics","description":"Get object detection evaluation metrics.","operationId":"get_metrics_v2_ai_models_object_detection_metrics_get","parameters":[{"name":"model_version","in":"query","required":true,"schema":{"type":"string","description":"Model version","title":"Model Version"},"description":"Model version"},{"name":"optimized","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by optimization status","title":"Optimized"},"description":"Filter by optimization status"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MetricsResponse"},"title":"Response Get Metrics V2 Ai Models Object Detection Metrics Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/object-detection":{"post":{"tags":["ai-models"],"summary":"Object Detection","description":"Run object detection on an image and return detections.","operationId":"object_detection_v2_ai_models_object_detection_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectDetectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectDetectionResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/object-detection/preview":{"post":{"tags":["ai-models"],"summary":"Object Detection Preview","description":"Run object detection on an image and return preview image.","operationId":"object_detection_preview_v2_ai_models_object_detection_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectDetectionRequest"}}},"required":true},"responses":{"200":{"description":"JPEG image.","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/yolov11-detection":{"post":{"tags":["ai-models"],"summary":"Yolov11 Detection","description":"Run the YOLOv11 model and return bounding-box detections only.","operationId":"yolov11_detection_v2_ai_models_yolov11_detection_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Yolov11Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Yolov11DetectionResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/yolov11-segmentation":{"post":{"tags":["ai-models"],"summary":"Yolov11 Segmentation","description":"Run the YOLOv11 model and return detections with polygon segments.","operationId":"yolov11_segmentation_v2_ai_models_yolov11_segmentation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Yolov11Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Yolov11SegmentationResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/ppe":{"post":{"tags":["ai-models"],"summary":"Ppe Detection","description":"Run PPE detection on an image and return detections.","operationId":"ppe_detection_v2_ai_models_ppe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PpeDetectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PpeDetectionResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/ppe/preview":{"post":{"tags":["ai-models"],"summary":"Ppe Detection Preview","description":"Run PPE detection on an image and return preview image.","operationId":"ppe_detection_preview_v2_ai_models_ppe_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PpeDetectionRequest"}}},"required":true},"responses":{"200":{"description":"JPEG image.","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/owlv2":{"post":{"tags":["ai-models"],"summary":"Owlv2 Detection","description":"Run OWLv2 prompt-based detection on an image and return detections.","operationId":"owlv2_detection_v2_ai_models_owlv2_post","parameters":[{"name":"conf_thresh","in":"query","required":false,"schema":{"type":"number","description":"Confidence threshold","default":0.25,"title":"Conf Thresh"},"description":"Confidence threshold"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwlV2Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwlV2Response"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/owlv2/preview":{"post":{"tags":["ai-models"],"summary":"Owlv2 Detection Preview","description":"Run OWLv2 prompt-based detection on an image and return preview image.","operationId":"owlv2_detection_preview_v2_ai_models_owlv2_preview_post","parameters":[{"name":"conf_thresh","in":"query","required":false,"schema":{"type":"number","description":"Confidence threshold","default":0.25,"title":"Conf Thresh"},"description":"Confidence threshold"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwlV2Request"}}}},"responses":{"200":{"description":"JPEG image.","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/blur-objects":{"post":{"tags":["ai-models"],"summary":"Blur Objects","description":"Blur detected objects in an image and return blurred image.","operationId":"blur_objects_v2_ai_models_blur_objects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlurObjectsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlurObjectsResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/blur-objects/preview":{"post":{"tags":["ai-models"],"summary":"Blur Objects Preview","description":"Blur detected objects in an image and return preview image.","operationId":"blur_objects_preview_v2_ai_models_blur_objects_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlurObjectsRequest"}}},"required":true},"responses":{"200":{"description":"JPEG image.","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/ai-models/chatgpt/v2":{"post":{"tags":["ai-models"],"summary":"Chatgpt Prompt","description":"Run ChatGPT prompt with optional image input.","operationId":"chatgpt_prompt_v2_ai_models_chatgpt_v2_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGPTRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGPTResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/anpr":{"get":{"tags":["anpr"],"summary":"Get Project Anpr Data","description":"Get paginated ANPR records for a project.\n\n``direction`` filters by travel direction, either ``forward`` or\n``reverse``. ``vehicle_types`` and ``anpr_vehicle_type`` are free-form\nstrings (not a fixed enum); common values include ``road-vehicle`` and\n``tipping truck``.","operationId":"get_project_anpr_data_v2_projects__project_exid__anpr_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"gate_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by gate external IDs","title":"Gate Exids"},"description":"Filter by gate external IDs"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"plate_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by plate number","title":"Plate Number"},"description":"Filter by plate number"},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by direction","title":"Direction"},"description":"Filter by direction"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"vehicle_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by vehicle types","title":"Vehicle Types"},"description":"Filter by vehicle types"},{"name":"is_postprocessed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by postprocessed status","title":"Is Postprocessed"},"description":"Filter by postprocessed status"},{"name":"is_plate","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by plate validation status","title":"Is Plate"},"description":"Filter by plate validation status"},{"name":"is_duplicate","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by duplicate status","title":"Is Duplicate"},"description":"Filter by duplicate status"},{"name":"failed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true → failed only · false → non-failed only · omit → all","title":"Failed"},"description":"true → failed only · false → non-failed only · omit → all"},{"name":"anpr_vehicle_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by ANPR vehicle types","title":"Anpr Vehicle Type"},"description":"Filter by ANPR vehicle types"},{"name":"anpr_vehicle_make","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vehicle make","title":"Anpr Vehicle Make"},"description":"Filter by vehicle make"},{"name":"anpr_vehicle_model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vehicle model","title":"Anpr Vehicle Model"},"description":"Filter by vehicle model"},{"name":"anpr_vehicle_color","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vehicle color","title":"Anpr Vehicle Color"},"description":"Filter by vehicle color"},{"name":"metadata_covered","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by metadata covered flag","title":"Metadata Covered"},"description":"Filter by metadata covered flag"},{"name":"metadata_company","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by company name/description/activity (partial)","title":"Metadata Company"},"description":"Filter by company name/description/activity (partial)"},{"name":"metadata_load","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by load content description (partial)","title":"Metadata Load"},"description":"Filter by load content description (partial)"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by registry company id","title":"Company Id"},"description":"Filter by registry company id"},{"name":"cover_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["covered","uncovered","enclosed","not_applicable","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter by load cover state","title":"Cover State"},"description":"Filter by load cover state"},{"name":"load_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["empty","loaded","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter by load state","title":"Load State"},"description":"Filter by load state"},{"name":"load_category","in":"query","required":false,"schema":{"anyOf":[{"enum":["soil","rubble","sand","aggregate","concrete","asphalt","steel","timber","scaffolding","pallets","blocks","pipes","cable_drums","plant","waste","mixed","other"],"type":"string"},{"type":"null"}],"description":"Filter by load category","title":"Load Category"},"description":"Filter by load category"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort field and direction (e.g., column_name|desc)","title":"Sort"},"description":"Sort field and direction (e.g., column_name|desc)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_AnprRecordWithLinks_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/anpr/events/export":{"get":{"tags":["anpr"],"summary":"Export Anpr Events","description":"Export ANPR events as a CSV or PDF report.\n\n``file_type`` selects the format (``pdf`` or ``csv``); ``from_date`` and\n``to_date`` are required. A CSV is always streamed back directly with\n``Content-Type: text/csv``. For PDF the response depends on two flags:\n\n- ``disable_sending_to_media`` — default false, i.e. the report is uploaded\n  to Media Hub.\n- ``direct_download`` — stream the generated file back to the caller.\n\nWhen ``direct_download`` is true, or ``disable_sending_to_media`` is true,\nthe PDF bytes are returned (``application/pdf``) and are additionally\nuploaded to Media Hub unless sending is disabled. Otherwise the report is\nuploaded to Media Hub asynchronously and a JSON acknowledgement is returned\n(``application/json``).\n\nSnapshots are embedded as images for small exports; when ``links_only`` is\ntrue or more than 500 records match, snapshot link URLs are used instead.\n``limit`` caps the number of exported events.","operationId":"export_anpr_events_v2_projects__project_exid__anpr_events_export_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Filter by from_date","title":"From Date"},"description":"Filter by from_date"},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Filter by to_date","title":"To Date"},"description":"Filter by to_date"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by one or more camera exids","title":"Cameras Exid"},"description":"Filter by one or more camera exids"},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by direction: forward, reverse","title":"Direction"},"description":"Filter by direction: forward, reverse"},{"name":"vehicle_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by vehicle types: road-vehicle, tipping truck","title":"Vehicle Types"},"description":"Filter by vehicle types: road-vehicle, tipping truck"},{"name":"file_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/common__database__sqlmodel__ai_schemas__anpr_records__FileTypes","description":"Report type: pdf, csv"},"description":"Report type: pdf, csv"},{"name":"columns","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Columns to be included in the PDF report","title":"Columns"},"description":"Columns to be included in the PDF report"},{"name":"direct_download","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether to return the PDF report directly for download","title":"Direct Download"},"description":"Whether to return the PDF report directly for download"},{"name":"disable_sending_to_media","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=do NOT upload the export to Media Hub (default uploads)","title":"Disable Sending To Media"},"description":"true=do NOT upload the export to Media Hub (default uploads)"},{"name":"plate_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by plate number","title":"Plate Number"},"description":"Filter by plate number"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by registry company id","title":"Company Id"},"description":"Filter by registry company id"},{"name":"cover_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["covered","uncovered","enclosed","not_applicable","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter by load cover state","title":"Cover State"},"description":"Filter by load cover state"},{"name":"load_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["empty","loaded","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter by load state","title":"Load State"},"description":"Filter by load state"},{"name":"load_category","in":"query","required":false,"schema":{"anyOf":[{"enum":["soil","rubble","sand","aggregate","concrete","asphalt","steel","timber","scaffolding","pallets","blocks","pipes","cable_drums","plant","waste","mixed","other"],"type":"string"},{"type":"null"}],"description":"Filter by load category","title":"Load Category"},"description":"Filter by load category"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by column, ex: column_name|desc","title":"Sort"},"description":"Sort by column, ex: column_name|desc"},{"name":"image_width","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Width for resized snapshot images","default":"240","title":"Image Width"},"description":"Width for resized snapshot images"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Maximum number of events to export","title":"Limit"},"description":"Maximum number of events to export"},{"name":"links_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When True, use link URLs instead of embedded images (even for small exports)","title":"Links Only"},"description":"When True, use link URLs instead of embedded images (even for small exports)"}],"responses":{"200":{"description":"Binary file when downloaded directly (`direct_download` or `disable_sending_to_media`), otherwise a JSON acknowledgement after the file is uploaded to Media Hub.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportJobAck"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"text/csv":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/anpr/companies":{"get":{"tags":["anpr"],"summary":"Get Anpr Companies","description":"List distinct companies detected in ANPR metadata, fuzzy-merged by name.","operationId":"get_anpr_companies_v2_projects__project_exid__anpr_companies_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Partial search on company name/description/activity","title":"Q"},"description":"Partial search on company name/description/activity"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Maximum number of companies to return","default":100,"title":"Limit"},"description":"Maximum number of companies to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_AnprCompanyDTO_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/anpr/counts":{"get":{"tags":["anpr"],"summary":"Get Anpr Counts","description":"Get ANPR counts grouped by date and direction.\n\n``direction`` filters by ``forward`` or ``reverse``. Each item's ``counts``\nmap is keyed by direction and may contain ``forward``, ``reverse`` and\n``unknown`` buckets. ``precision`` controls the date-bucket granularity\n(``day``, ``month`` or ``year``; default ``day``).","operationId":"get_anpr_counts_v2_projects__project_exid__anpr_counts_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"gate_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by gate external IDs","title":"Gate Exids"},"description":"Filter by gate external IDs"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"is_postprocessed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by postprocessed status","title":"Is Postprocessed"},"description":"Filter by postprocessed status"},{"name":"precision","in":"query","required":false,"schema":{"type":"string","description":"Count precision (day, month, year)","default":"day","title":"Precision"},"description":"Count precision (day, month, year)"},{"name":"is_plate","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by plate validation status","title":"Is Plate"},"description":"Filter by plate validation status"},{"name":"is_duplicate","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by duplicate status","title":"Is Duplicate"},"description":"Filter by duplicate status"},{"name":"vehicle_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by vehicle types","title":"Vehicle Types"},"description":"Filter by vehicle types"},{"name":"plate_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by plate number","title":"Plate Number"},"description":"Filter by plate number"},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by direction (e.g. forward, reverse)","title":"Direction"},"description":"Filter by direction (e.g. forward, reverse)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnprCountsData"},"title":"Response Get Anpr Counts V2 Projects  Project Exid  Anpr Counts Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/anpr/status":{"patch":{"tags":["anpr"],"summary":"Bulk Edit Anpr Events","description":"Bulk update ANPR events status. Actor identity is derived from the JWT;\n``payload.updated_by`` is accepted but ignored in prod.","operationId":"bulk_edit_anpr_events_v2_anpr_status_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAnprStatusUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/anpr/{record_id}":{"patch":{"tags":["anpr"],"summary":"Update Anpr Record","description":"Update an ANPR record. Actor identity is derived from the JWT;\n``record_data.updated_by`` is accepted but ignored in prod.","operationId":"update_anpr_record_v2_anpr__record_id__patch","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","description":"ANPR record ID","title":"Record Id"},"description":"ANPR record ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnprRecordUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["anpr"],"summary":"Delete Anpr Record","description":"Delete an ANPR record. Actor identity is derived from the JWT;\n``deleted_by`` is accepted but ignored in prod.","operationId":"delete_anpr_record_v2_anpr__record_id__delete","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","description":"ANPR record ID","title":"Record Id"},"description":"ANPR record ID"},{"name":"deleted_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Deprecated: actor identity is derived from the JWT. Accepted for backwards compatibility and ignored in production.","deprecated":true,"title":"Deleted By"},"description":"Deprecated: actor identity is derived from the JWT. Accepted for backwards compatibility and ignored in production.","deprecated":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/anpr/{record_id}/history":{"get":{"tags":["anpr"],"summary":"Get Anpr Record History","description":"Get history logs for an ANPR record, newest first.\n\nEach entry has ``id``, ``action`` (e.g. ``update``), ``created_by`` (the\nactor) and ``created_at``. ``changes`` is an object mapping each changed\nfield name to its logged value.","operationId":"get_anpr_record_history_v2_anpr__record_id__history_get","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","description":"ANPR record ID","title":"Record Id"},"description":"ANPR record ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnprHistoryEntry"},"title":"Response Get Anpr Record History V2 Anpr  Record Id  History Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/anpr/{capture_time}/snapshot":{"get":{"tags":["anpr"],"summary":"Get Event Snapshot Preview","description":"Get presigned URL for ANPR event snapshot.","operationId":"get_event_snapshot_preview_v2_cameras__camera_exid__anpr__capture_time__snapshot_get","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"capture_time","in":"path","required":true,"schema":{"type":"string","format":"date-time","description":"Event capture time","title":"Capture Time"},"description":"Event capture time"}],"responses":{"307":{"description":"Temporary redirect to a presigned URL — follow the Location header.","content":{"application/json":{"schema":{}}},"headers":{"Location":{"description":"Presigned URL to fetch the resource.","schema":{"type":"string","format":"uri"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/anpr/plates/search":{"get":{"tags":["anpr"],"summary":"Search Project Anpr Plates","description":"Search ANPR plates for a project.","operationId":"search_project_anpr_plates_v2_projects__project_exid__anpr_plates_search_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"query","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"user_query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query for plate number","title":"User Query"},"description":"Search query for plate number"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":10000,"minimum":1},{"type":"null"}],"description":"Items per page (max 10000)","title":"Limit"},"description":"Items per page (max 10000)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":10000,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_AnprPlateData_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/anpr/{capture_time}/snapshot/generate":{"post":{"tags":["anpr"],"summary":"Create Anpr Snapshot","description":"Generate ANPR snapshot from NVR.","operationId":"create_anpr_snapshot_v2_cameras__camera_exid__anpr__capture_time__snapshot_generate_post","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"capture_time","in":"path","required":true,"schema":{"type":"string","description":"Capture time in ISO format","title":"Capture Time"},"description":"Capture time in ISO format"}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/api-keys":{"get":{"tags":["api-keys"],"summary":"List Api Keys","description":"List registered keys. Plaintext / encrypted values are never returned.","operationId":"list_api_keys_v2_api_keys_get","parameters":[{"name":"project_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by project external ID","title":"Project Exid"},"description":"Filter by project external ID"},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by provider (gemini, openai, ...)","title":"Provider"},"description":"Filter by provider (gemini, openai, ...)"},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by purpose, e.g. 'gate_report'","title":"Purpose"},"description":"Filter by purpose, e.g. 'gate_report'"},{"name":"enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by enabled flag","title":"Enabled"},"description":"Filter by enabled flag"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyData"},"title":"Response List Api Keys V2 Api Keys Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["api-keys"],"summary":"Create Api Key","description":"Register a key for `(project_exid, provider, purpose)`.\n\nIdempotent: an existing tuple is returned untouched (`created=false`). For\nGemini with no `api_key`, a Google Cloud key restricted to the Generative\nLanguage API is minted automatically. The plaintext key is encrypted with\nthe master key (`API_KEY_ENCRYPTION_KEY` env, Fernet) before being persisted.","operationId":"create_api_key_v2_api_keys_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse_ApiKeyData_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/api-keys/purposes":{"get":{"tags":["api-keys"],"summary":"List Api Key Purposes","description":"Configured key purposes (from the `GEMINI_PROJECTS` env) — drives the UI list.","operationId":"list_api_key_purposes_v2_api_keys_purposes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response List Api Key Purposes V2 Api Keys Purposes Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/api-keys/{key_id}":{"get":{"tags":["api-keys"],"summary":"Get Api Key","description":"Get a single stored LLM-provider API key by its row ID (secret not returned).","operationId":"get_api_key_v2_api_keys__key_id__get","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"API key row ID","title":"Key Id"},"description":"API key row ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyData"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["api-keys"],"summary":"Update Api Key","description":"Rename / toggle enabled / rotate the secret. Omit `api_key` to keep the current value.","operationId":"update_api_key_v2_api_keys__key_id__patch","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"API key row ID","title":"Key Id"},"description":"API key row ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["api-keys"],"summary":"Delete Api Key","description":"Delete an API key by ID. With `revoke=true`, auto-minted Google keys are also revoked upstream.","operationId":"delete_api_key_v2_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"API key row ID","title":"Key Id"},"description":"API key row ID"},{"name":"revoke","in":"query","required":false,"schema":{"type":"boolean","description":"Also revoke the key in Google Cloud (minted keys only)","default":false,"title":"Revoke"},"description":"Also revoke the key in Google Cloud (minted keys only)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/clips/{capture_time}":{"get":{"tags":["clips"],"summary":"Get Event Clip Preview","description":"Get event clip preview URL (redirects to presigned S3 URL).","operationId":"get_event_clip_preview_v2_cameras__camera_exid__clips__capture_time__get","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"capture_time","in":"path","required":true,"schema":{"type":"string","format":"date-time","description":"Event capture time","title":"Capture Time"},"description":"Event capture time"},{"name":"duration","in":"query","required":false,"schema":{"type":"integer","description":"Clip length in seconds. The window is centered on capture_time, spanning capture_time - duration//2 to capture_time + duration//2 (integer division).","default":6,"title":"Duration"},"description":"Clip length in seconds. The window is centered on capture_time, spanning capture_time - duration//2 to capture_time + duration//2 (integer division)."},{"name":"stream_res","in":"query","required":false,"schema":{"type":"string","description":"Stream resolution: 'high' (re-encoded to H.264) or 'low'","default":"high","title":"Stream Res"},"description":"Stream resolution: 'high' (re-encoded to H.264) or 'low'"}],"responses":{"307":{"description":"Temporary redirect to a presigned URL — follow the Location header.","content":{"application/json":{"schema":{}}},"headers":{"Location":{"description":"Presigned URL to fetch the resource.","schema":{"type":"string","format":"uri"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/fov_changes/latest":{"post":{"tags":["fov-changes"],"summary":"Get All Last Fov Changes","description":"Get all last FOV changes for each camera.","operationId":"get_all_last_fov_changes_v2_cameras_fov_changes_latest_post","parameters":[{"name":"num_last_insertions","in":"query","required":false,"schema":{"type":"integer","description":"Number of last insertions per camera","default":2,"title":"Num Last Insertions"},"description":"Number of last insertions per camera"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllLastFovChangesResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/fov_changes":{"post":{"tags":["fov-changes"],"summary":"Get Fov Changes For Camera","description":"Get FOV changes for a specific camera with intensity classification.\n\nEach record's `difference` is classified into an intensity band using the\nthreshold query parameters (defaults in parentheses):\n- \"No change\": difference is null or below `low_change_thresh` (< 1.5)\n- \"Low\": `low_change_thresh` <= difference < `moderate_change_thresh` ([1.5, 2.5))\n- \"Moderate\": `moderate_change_thresh` <= difference < `high_change_thresh` ([2.5, 10.0))\n- \"High\": difference >= `high_change_thresh` (>= 10.0)\n\nAn unknown or camera with no records returns an empty `fov_changes` list.","operationId":"get_fov_changes_for_camera_v2_cameras__camera_exid__fov_changes_post","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"low_change_thresh","in":"query","required":false,"schema":{"type":"number","description":"Low change threshold","default":1.5,"title":"Low Change Thresh"},"description":"Low change threshold"},{"name":"moderate_change_thresh","in":"query","required":false,"schema":{"type":"number","description":"Moderate change threshold","default":2.5,"title":"Moderate Change Thresh"},"description":"Moderate change threshold"},{"name":"high_change_thresh","in":"query","required":false,"schema":{"type":"number","description":"High change threshold","default":10,"title":"High Change Thresh"},"description":"High change threshold"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FovChangesForCameraResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/gate-report/processed-days":{"get":{"tags":["gate-report"],"summary":"Get Project Processed Days","description":"Get processed days for gate-report events in a project.","operationId":"get_project_processed_days_v2_projects__project_exid__gate_report_processed_days_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"is_public","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by validated events","title":"Is Public"},"description":"Filter by validated events"},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by event type","title":"Event Type"},"description":"Filter by event type"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Get Project Processed Days V2 Projects  Project Exid  Gate Report Processed Days Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/gate-report/counts":{"get":{"tags":["gate-report"],"summary":"Gate Report Events Counts","description":"Get gate report counts.\n\n``precision`` is a list selecting which date-bucket levels to compute;\nvalid values are ``day``, ``month`` and ``year``. When omitted it defaults\nto all three, and the response's ``days`` / ``months`` / ``years`` buckets\nare populated for whichever levels were requested.","operationId":"gate_report_events_counts_v2_projects__project_exid__gate_report_counts_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"vehicle_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by vehicle types","title":"Vehicle Types"},"description":"Filter by vehicle types"},{"name":"is_public","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by validated events","title":"Is Public"},"description":"Filter by validated events"},{"name":"plate_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by plate number","title":"Plate Number"},"description":"Filter by plate number"},{"name":"precision","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Count precision (day, month, year)","title":"Precision"},"description":"Count precision (day, month, year)"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter ANPR counts by registry company ID","title":"Company Id"},"description":"Filter ANPR counts by registry company ID"},{"name":"cover_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["covered","uncovered","enclosed","not_applicable","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter ANPR counts by load cover state","title":"Cover State"},"description":"Filter ANPR counts by load cover state"},{"name":"load_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["empty","loaded","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter ANPR counts by load state","title":"Load State"},"description":"Filter ANPR counts by load state"},{"name":"load_category","in":"query","required":false,"schema":{"anyOf":[{"enum":["soil","rubble","sand","aggregate","concrete","asphalt","steel","timber","scaffolding","pallets","blocks","pipes","cable_drums","plant","waste","mixed","other"],"type":"string"},{"type":"null"}],"description":"Filter ANPR counts by load category","title":"Load Category"},"description":"Filter ANPR counts by load category"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateReportCountsData"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/gate-report/counts/vehicle-types":{"get":{"tags":["gate-report"],"summary":"Gate Report Vehicle Type Counts","description":"Per-day counts for each requested vehicle type in one call. Each entry's `days` equals the `days` that `/gate-report/counts` returns for the same filters with `vehicle_types` set to that one type. `precision` is ignored: only days are returned.","operationId":"gate_report_vehicle_type_counts_v2_projects__project_exid__gate_report_counts_vehicle_types_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"vehicle_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by vehicle types","title":"Vehicle Types"},"description":"Filter by vehicle types"},{"name":"is_public","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by validated events","title":"Is Public"},"description":"Filter by validated events"},{"name":"plate_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by plate number","title":"Plate Number"},"description":"Filter by plate number"},{"name":"precision","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Count precision (day, month, year)","title":"Precision"},"description":"Count precision (day, month, year)"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter ANPR counts by registry company ID","title":"Company Id"},"description":"Filter ANPR counts by registry company ID"},{"name":"cover_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["covered","uncovered","enclosed","not_applicable","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter ANPR counts by load cover state","title":"Cover State"},"description":"Filter ANPR counts by load cover state"},{"name":"load_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["empty","loaded","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter ANPR counts by load state","title":"Load State"},"description":"Filter ANPR counts by load state"},{"name":"load_category","in":"query","required":false,"schema":{"anyOf":[{"enum":["soil","rubble","sand","aggregate","concrete","asphalt","steel","timber","scaffolding","pallets","blocks","pipes","cable_drums","plant","waste","mixed","other"],"type":"string"},{"type":"null"}],"description":"Filter ANPR counts by load category","title":"Load Category"},"description":"Filter ANPR counts by load category"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateReportVehicleTypeCountsData"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/gate-report/counts/hours":{"get":{"tags":["gate-report"],"summary":"Gate Report Hour Counts","description":"ANPR entries and exits for one day, per local hour of the project's timezone. Takes the same filters as `/gate-report/counts`; `from_date`, `to_date` and `precision` are ignored in favour of `day`.","operationId":"gate_report_hour_counts_v2_projects__project_exid__gate_report_counts_hours_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"day","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Local day, YYYY-MM-DD","title":"Day"},"description":"Local day, YYYY-MM-DD"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"vehicle_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by vehicle types","title":"Vehicle Types"},"description":"Filter by vehicle types"},{"name":"is_public","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by validated events","title":"Is Public"},"description":"Filter by validated events"},{"name":"plate_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by plate number","title":"Plate Number"},"description":"Filter by plate number"},{"name":"precision","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Count precision (day, month, year)","title":"Precision"},"description":"Count precision (day, month, year)"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter ANPR counts by registry company ID","title":"Company Id"},"description":"Filter ANPR counts by registry company ID"},{"name":"cover_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["covered","uncovered","enclosed","not_applicable","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter ANPR counts by load cover state","title":"Cover State"},"description":"Filter ANPR counts by load cover state"},{"name":"load_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["empty","loaded","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter ANPR counts by load state","title":"Load State"},"description":"Filter ANPR counts by load state"},{"name":"load_category","in":"query","required":false,"schema":{"anyOf":[{"enum":["soil","rubble","sand","aggregate","concrete","asphalt","steel","timber","scaffolding","pallets","blocks","pipes","cable_drums","plant","waste","mixed","other"],"type":"string"},{"type":"null"}],"description":"Filter ANPR counts by load category","title":"Load Category"},"description":"Filter ANPR counts by load category"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateReportHourCountsData"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/gate-report/events":{"get":{"tags":["gate-report"],"summary":"Gate Report Data","description":"Get gate-report events for a project.\n\nReturns ``{source, results}`` where ``source`` is ``\"anpr\"``,\n``\"events\"``, or ``\"unknown\"`` and ``results`` is a paginated container\n(``from``, ``to``, ``page``, ``limit``, ``total``, ``items``). The wire\npayload is unchanged from previous versions; this endpoint just declares\nthe shape explicitly so OpenAPI / generated clients are correct.","operationId":"gate_report_data_v2_projects__project_exid__gate_report_events_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"vehicle_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by vehicle types","title":"Vehicle Types"},"description":"Filter by vehicle types"},{"name":"is_public","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by validated events","title":"Is Public"},"description":"Filter by validated events"},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by event type","title":"Event Type"},"description":"Filter by event type"},{"name":"plate_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by plate number","title":"Plate Number"},"description":"Filter by plate number"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort field and direction (e.g., column_name|desc)","title":"Sort"},"description":"Sort field and direction (e.g., column_name|desc)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true},{"name":"metadata_company","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by company name/description/activity (partial, ilike)","title":"Metadata Company"},"description":"Filter by company name/description/activity (partial, ilike)"},{"name":"metadata_load","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by load content description (partial, ilike)","title":"Metadata Load"},"description":"Filter by load content description (partial, ilike)"},{"name":"metadata_covered","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by load covered flag","title":"Metadata Covered"},"description":"Filter by load covered flag"},{"name":"anpr_vehicle_make","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vehicle make","title":"Anpr Vehicle Make"},"description":"Filter by vehicle make"},{"name":"anpr_vehicle_model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vehicle model","title":"Anpr Vehicle Model"},"description":"Filter by vehicle model"},{"name":"anpr_vehicle_color","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by vehicle color","title":"Anpr Vehicle Color"},"description":"Filter by vehicle color"},{"name":"anpr_vehicle_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by vehicle body types","title":"Anpr Vehicle Type"},"description":"Filter by vehicle body types"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by registry company id","title":"Company Id"},"description":"Filter by registry company id"},{"name":"cover_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["covered","uncovered","enclosed","not_applicable","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter by load cover state","title":"Cover State"},"description":"Filter by load cover state"},{"name":"load_state","in":"query","required":false,"schema":{"anyOf":[{"enum":["empty","loaded","not_visible"],"type":"string"},{"type":"null"}],"description":"Filter by load state","title":"Load State"},"description":"Filter by load state"},{"name":"load_category","in":"query","required":false,"schema":{"anyOf":[{"enum":["soil","rubble","sand","aggregate","concrete","asphalt","steel","timber","scaffolding","pallets","blocks","pipes","cable_drums","plant","waste","mixed","other"],"type":"string"},{"type":"null"}],"description":"Filter by load category","title":"Load Category"},"description":"Filter by load category"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateReportEventsResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/gate-report/{event_type}/{capture_time}/thumbnail":{"get":{"tags":["gate-report"],"summary":"Get Gate Report Event Thumbnail","description":"Get a gate-report event thumbnail as a temporary redirect to a presigned S3 URL.","operationId":"get_gate_report_event_thumbnail_v2_cameras__camera_exid__gate_report__event_type___capture_time__thumbnail_get","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"event_type","in":"path","required":true,"schema":{"type":"string","description":"Gate report event type, e.g. arrived or left","title":"Event Type"},"description":"Gate report event type, e.g. arrived or left"},{"name":"capture_time","in":"path","required":true,"schema":{"type":"string","format":"date-time","description":"Event capture time","title":"Capture Time"},"description":"Event capture time"}],"responses":{"307":{"description":"Temporary redirect to a presigned URL — follow the Location header.","content":{"application/json":{"schema":{}}},"headers":{"Location":{"description":"Presigned URL to fetch the resource.","schema":{"type":"string","format":"uri"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/gate-report/events/export":{"get":{"tags":["gate-report"],"summary":"Export Gate Report Events","description":"Export gate-report events as a CSV or PDF report.\n\n``file_type`` selects the format (``pdf`` or ``csv``); ``from_date`` and\n``to_date`` are required. A CSV is always streamed back directly with\n``Content-Type: text/csv``. For PDF the response depends on two flags:\n\n- ``disable_sending_to_media`` — default false, i.e. the report is uploaded\n  to Media Hub.\n- ``direct_download`` — stream the generated file back to the caller.\n\nWhen ``direct_download`` is true, or ``disable_sending_to_media`` is true,\nthe PDF bytes are returned (``application/pdf``) and are additionally\nuploaded to Media Hub unless sending is disabled. Otherwise the report is\nuploaded to Media Hub asynchronously and a JSON acknowledgement is returned\n(``application/json``).\n\nSnapshots are embedded as images for small exports; when ``links_only`` is\ntrue or more than 500 events match, snapshot link URLs are used instead.\n``limit`` caps the number of exported events (default 5000).","operationId":"export_gate_report_events_v2_projects__project_exid__gate_report_events_export_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"filter by one or many camera_exid","title":"Cameras Exid"},"description":"filter by one or many camera_exid"},{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"from date","title":"From Date"},"description":"from date"},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"to date","title":"To Date"},"description":"to date"},{"name":"vehicle_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"filter by vehicle types","title":"Vehicle Types"},"description":"filter by vehicle types"},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"event type: arrived, left","title":"Event Type"},"description":"event type: arrived, left"},{"name":"is_public","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"filter by is_public: True, False, None","title":"Is Public"},"description":"filter by is_public: True, False, None"},{"name":"file_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/common__database__sqlmodel__ai_schemas__events__FileTypes","description":"export type: pdf, csv"},"description":"export type: pdf, csv"},{"name":"columns","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Columns to be included in the PDF report","title":"Columns"},"description":"Columns to be included in the PDF report"},{"name":"direct_download","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether to return the PDF report directly for download","title":"Direct Download"},"description":"Whether to return the PDF report directly for download"},{"name":"disable_sending_to_media","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=do NOT upload the export to Media Hub (default uploads)","title":"Disable Sending To Media"},"description":"true=do NOT upload the export to Media Hub (default uploads)"},{"name":"image_width","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Width for resized snapshot images","default":"240","title":"Image Width"},"description":"Width for resized snapshot images"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Maximum number of events to export","title":"Limit"},"description":"Maximum number of events to export"},{"name":"links_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When True, use link URLs instead of embedded images (even for small exports)","title":"Links Only"},"description":"When True, use link URLs instead of embedded images (even for small exports)"}],"responses":{"200":{"description":"Binary file when downloaded directly (`direct_download` or `disable_sending_to_media`), otherwise a JSON acknowledgement after the file is uploaded to Media Hub.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportJobAck"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"text/csv":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/gate-report/info":{"get":{"tags":["gate-report"],"summary":"Get Gate Report Projects Info","description":"Get gate report projects info.","operationId":"get_gate_report_projects_info_v2_projects_gate_report_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/GateReportProjectInfo"},"type":"array","title":"Response Get Gate Report Projects Info V2 Projects Gate Report Info Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/gate-report/verified-days":{"get":{"tags":["gate-report"],"summary":"Get Verified Days","description":"Get verified days for a project.","operationId":"get_verified_days_v2_projects__project_exid__gate_report_verified_days_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by one or many camera exids","title":"Cameras Exid"},"description":"Filter by one or many camera exids"},{"name":"verified_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by verified_by","title":"Verified By"},"description":"Filter by verified_by"},{"name":"is_matched","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by is_matched","title":"Is Matched"},"description":"Filter by is_matched"},{"name":"inserted_at","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"date"}},{"type":"null"}],"description":"Filter by inserted_at","title":"Inserted At"},"description":"Filter by inserted_at"},{"name":"updated_at","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"date"}},{"type":"null"}],"description":"Filter by updated_at","title":"Updated At"},"description":"Filter by updated_at"},{"name":"day","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by day","title":"Day"},"description":"Filter by day"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by column, ex: column_name|desc","title":"Sort"},"description":"Sort by column, ex: column_name|desc"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":10000,"minimum":1},{"type":"null"}],"description":"Items per page (max 10000 for this endpoint)","title":"Limit"},"description":"Items per page (max 10000 for this endpoint)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":10000,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_VerifiedDayData_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/gate-report/verified-days":{"post":{"tags":["gate-report"],"summary":"Create Verified Days","description":"Create verified days.","operationId":"create_verified_days_v2_projects_gate_report_verified_days_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifiedDaysCreateSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/gate-report/image-tags":{"get":{"tags":["gate-report"],"summary":"List Image Tags","description":"Available `gate_report_v3` image tags from ECR (filterable in the picker).","operationId":"list_image_tags_v2_gate_report_image_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_str__"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/observation-types":{"get":{"tags":["observations"],"summary":"List Observation Types","description":"List observation types with filtering and pagination.","operationId":"list_observation_types_v2_observation_types_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by observation category, e.g. 'safety' or 'ppe'","title":"Type"},"description":"Filter by observation category, e.g. 'safety' or 'ppe'"},{"name":"feasibility_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(prod|beta|parked)$"},{"type":"null"}],"description":"Filter by feasibility status","title":"Feasibility Status"},"description":"Filter by feasibility status"},{"name":"source_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(camera|walk360|drone)$"},{"type":"null"}],"description":"Filter by the source the type runs on","title":"Source Type"},"description":"Filter by the source the type runs on"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search across name / exid / description","title":"Search"},"description":"Free-text search across name / exid / description"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ObservationTypeData_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["observations"],"summary":"Create Observation Type","operationId":"create_observation_type_v2_observation_types_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationTypeCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse_ObservationTypeData_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/observation-types/{observation_type_id}":{"get":{"tags":["observations"],"summary":"Get Observation Type","operationId":"get_observation_type_v2_observation_types__observation_type_id__get","parameters":[{"name":"observation_type_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Observation type ID","title":"Observation Type Id"},"description":"Observation type ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationTypeData"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["observations"],"summary":"Update Observation Type","operationId":"update_observation_type_v2_observation_types__observation_type_id__patch","parameters":[{"name":"observation_type_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Observation type ID","title":"Observation Type Id"},"description":"Observation type ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationTypeUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["observations"],"summary":"Delete Observation Type","operationId":"delete_observation_type_v2_observation_types__observation_type_id__delete","parameters":[{"name":"observation_type_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Observation type ID","title":"Observation Type Id"},"description":"Observation type ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/observations":{"get":{"tags":["observations"],"summary":"List Observations","description":"List observation events for a project (paginated; filterable by camera, date, type code,\nmissing equipment and review status).","operationId":"list_observations_v2_projects__project_exid__observations_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by camera","title":"Camera Exid"},"description":"Filter by camera"},{"name":"observation_code","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by observation type codes (repeated or comma-separated)","title":"Observation Code"},"description":"Filter by observation type codes (repeated or comma-separated)"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by observation types, ex: safety,ppe (repeated or comma-separated)","title":"Type"},"description":"Filter by observation types, ex: safety,ppe (repeated or comma-separated)"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of range","title":"From Date"},"description":"Start of range"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of range","title":"To Date"},"description":"End of range"},{"name":"missing_items","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Missing equipment filter (any-of): helmet,high_vis_vest,gloves,glasses","title":"Missing Items"},"description":"Missing equipment filter (any-of): helmet,high_vis_vest,gloves,glasses"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(detected|approved|disapproved|unsure)$"},{"type":"null"}],"description":"Filter by review status","title":"Status"},"description":"Filter by review status"},{"name":"source_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(camera|walk360|drone)$"},{"type":"null"}],"description":"Filter by event source","title":"Source Type"},"description":"Filter by event source"},{"name":"model_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Filter by the AI model that produced the event","title":"Model Name"},"description":"Filter by the AI model that produced the event"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by column, ex: start_time|desc (default start_time|desc)","title":"Sort"},"description":"Sort by column, ex: start_time|desc (default start_time|desc)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ObservationEventDTO_"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/observations/projects":{"get":{"tags":["observations"],"summary":"List Observation Projects","description":"Projects that have at least one observation event, with event counts.","operationId":"list_observation_projects_v2_observations_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ObservationProjectDTO__"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/observations/models":{"get":{"tags":["observations"],"summary":"List Observation Models","description":"Every AI model that has produced observation events, with how many each produced.","operationId":"list_observation_models_v2_observations_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ObservationModelDTO__"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/observations/counts":{"get":{"tags":["observations"],"summary":"Count Observations","description":"Count observation events bucketed by hour, day, week or month (default day).","operationId":"count_observations_v2_projects__project_exid__observations_counts_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by camera","title":"Camera Exid"},"description":"Filter by camera"},{"name":"observation_code","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by observation type codes (repeated or comma-separated)","title":"Observation Code"},"description":"Filter by observation type codes (repeated or comma-separated)"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by observation types, ex: safety,ppe (repeated or comma-separated)","title":"Type"},"description":"Filter by observation types, ex: safety,ppe (repeated or comma-separated)"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of range","title":"From Date"},"description":"Start of range"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of range","title":"To Date"},"description":"End of range"},{"name":"missing_items","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Missing equipment filter (any-of): helmet,high_vis_vest,gloves,glasses","title":"Missing Items"},"description":"Missing equipment filter (any-of): helmet,high_vis_vest,gloves,glasses"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(detected|approved|disapproved|unsure)$"},{"type":"null"}],"description":"Filter by review status","title":"Status"},"description":"Filter by review status"},{"name":"model_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Filter by the AI model that produced the event","title":"Model Name"},"description":"Filter by the AI model that produced the event"},{"name":"granularity","in":"query","required":false,"schema":{"type":"string","description":"Counts bucket: hour|day|week|month","default":"day","title":"Granularity"},"description":"Counts bucket: hour|day|week|month"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ObservationCountBucketDTO__"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/observations/export":{"get":{"tags":["observations"],"summary":"Export Observations","description":"Export the observations matching the same filters as the observations list as a CSV or PDF report. `from_date` and `to_date` are required; omitted `observation_code`, `camera_exid` and `status` mean all, and `status` is exported exactly as given. Every matching row is exported (oldest first, up to 10,000), not just one page. The file is uploaded to Media Hub unless `disable_sending_to_media` is true, and the bytes are returned when `direct_download` or `disable_sending_to_media` is true; otherwise a JSON acknowledgement is returned and the user is notified when the report is ready. PDFs embed evidence crops up to 1,000 rows and fall back to evidence links above that.","operationId":"export_observations_v2_projects__project_exid__observations_export_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start of range (required)","title":"From Date"},"description":"Start of range (required)"},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"End of range (required)","title":"To Date"},"description":"End of range (required)"},{"name":"camera_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by camera","title":"Camera Exid"},"description":"Filter by camera"},{"name":"observation_code","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by observation type codes (repeated or comma-separated); omit for all types","title":"Observation Code"},"description":"Filter by observation type codes (repeated or comma-separated); omit for all types"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by observation types, ex: safety,ppe (repeated or comma-separated)","title":"Type"},"description":"Filter by observation types, ex: safety,ppe (repeated or comma-separated)"},{"name":"missing_items","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Missing equipment filter (any-of): helmet,high_vis_vest,gloves,glasses","title":"Missing Items"},"description":"Missing equipment filter (any-of): helmet,high_vis_vest,gloves,glasses"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(detected|approved|disapproved|unsure)$"},{"type":"null"}],"description":"Filter by review status; omit for all","title":"Status"},"description":"Filter by review status; omit for all"},{"name":"source_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(camera|walk360|drone)$"},{"type":"null"}],"description":"Filter by event source","title":"Source Type"},"description":"Filter by event source"},{"name":"model_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"Filter by the AI model that produced the event","title":"Model Name"},"description":"Filter by the AI model that produced the event"},{"name":"file_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ExportFileType","description":"csv or pdf","default":"pdf"},"description":"csv or pdf"},{"name":"direct_download","in":"query","required":false,"schema":{"type":"boolean","description":"true=stream the file back to the caller as well","default":false,"title":"Direct Download"},"description":"true=stream the file back to the caller as well"},{"name":"disable_sending_to_media","in":"query","required":false,"schema":{"type":"boolean","description":"true=do NOT upload the export to Media Hub (default uploads)","default":false,"title":"Disable Sending To Media"},"description":"true=do NOT upload the export to Media Hub (default uploads)"}],"responses":{"200":{"description":"Binary file when downloaded directly (`direct_download` or `disable_sending_to_media`), otherwise a JSON acknowledgement after the file is uploaded to Media Hub.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportJobAck"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"text/csv":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/observations/types":{"get":{"tags":["observations"],"summary":"List Observation Types","description":"List selectable observation types (feasibility prod or beta; parked types are hidden).\nPass source_type to get only the types that run on that source.","operationId":"list_observation_types_v2_observations_types_get","parameters":[{"name":"source_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(camera|walk360|drone)$"},{"type":"null"}],"description":"Only types available for this source","title":"Source Type"},"description":"Only types available for this source"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ObservationTypeDTO__"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/observations/configured-types":{"get":{"tags":["observations"],"summary":"List Project Configured Types","description":"Union of observation types configured across the project's cameras and walks,\nwhether the config is running or paused (PPE excluded).","operationId":"list_project_configured_types_v2_projects__project_exid__observations_configured_types_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ObservationTypeDTO__"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/observations/walks":{"get":{"tags":["observations"],"summary":"List Processed Walks","description":"Walks the observations pipeline has processed for this project, newest first.","operationId":"list_processed_walks_v2_projects__project_exid__observations_walks_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ProcessedSessionDTO__"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/observations/{event_id}/frame":{"get":{"tags":["observations"],"summary":"Get Observation Frame","description":"The 360 panorama behind a walk observation, with the detection boxed and centred;\n`thumbnail=true` returns a crop around the detection instead.","operationId":"get_observation_frame_v2_observations__event_id__frame_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Observation event ID","title":"Event Id"},"description":"Observation event ID"},{"name":"marker_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sighting marker; defaults to the event's marker","title":"Marker Id"},"description":"Sighting marker; defaults to the event's marker"},{"name":"thumbnail","in":"query","required":false,"schema":{"type":"boolean","description":"Crop around the detection instead of the full panorama","default":false,"title":"Thumbnail"},"description":"Crop around the detection instead of the full panorama"}],"responses":{"200":{"description":"Panorama frame or cropped thumbnail","content":{"application/json":{"schema":{}},"image/jpeg":{}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/observations/{event_id}/approval":{"patch":{"tags":["observations"],"summary":"Update Observation Approval","description":"Set or clear the reviewer verdict on an observation event\n(is_approved true=approved, false=disapproved, \"unsure\"=unsure, null=back to detected).","operationId":"update_observation_approval_v2_projects__project_exid__observations__event_id__approval_patch","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"event_id","in":"path","required":true,"schema":{"type":"integer","description":"Observation event ID","title":"Event Id"},"description":"Observation event ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationApprovalUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/ppe-events":{"get":{"tags":["ppe"],"summary":"List Ppe Events","description":"List PPE detection events for a project (paginated, filterable by camera, date, and item flags).","operationId":"list_ppe_events_v2_projects__project_exid__ppe_events_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by camera","title":"Camera Exid"},"description":"Filter by camera"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of range","title":"From Date"},"description":"Start of range"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of range","title":"To Date"},"description":"End of range"},{"name":"has_helmet","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=worn (1) only, false=confirmed missing (0) only; not-visible (2) and never-evaluated (NULL) match neither","title":"Has Helmet"},"description":"true=worn (1) only, false=confirmed missing (0) only; not-visible (2) and never-evaluated (NULL) match neither"},{"name":"has_high_vis_vest","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=worn only, false=violations only","title":"Has High Vis Vest"},"description":"true=worn only, false=violations only"},{"name":"has_gloves","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=worn only, false=violations only","title":"Has Gloves"},"description":"true=worn only, false=violations only"},{"name":"has_glasses","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=worn only, false=violations only","title":"Has Glasses"},"description":"true=worn only, false=violations only"},{"name":"violations_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only persons missing at least one required item","default":false,"title":"Violations Only"},"description":"Only persons missing at least one required item"},{"name":"compliant","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=compliant only, false=non-compliant only, omit=all","title":"Compliant"},"description":"true=compliant only, false=non-compliant only, omit=all"},{"name":"validity","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PpeValidity"},{"type":"null"}],"description":"valid | invalid | unreviewed; omit for all (unreviewed = is_approved is null)","title":"Validity"},"description":"valid | invalid | unreviewed; omit for all (unreviewed = is_approved is null)"},{"name":"required","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Items that define compliance: has_helmet,has_high_vis_vest,has_gloves,has_glasses","title":"Required"},"description":"Items that define compliance: has_helmet,has_high_vis_vest,has_gloves,has_glasses"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by column, ex: captured_at|desc (default captured_at|desc)","title":"Sort"},"description":"Sort by column, ex: captured_at|desc (default captured_at|desc)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PpeEventDTO_"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/ppe-events/counts":{"get":{"tags":["ppe"],"summary":"Count Ppe Events","description":"Count PPE events bucketed by the requested granularity.\n\n``granularity`` accepts ``hour``, ``day``, ``week`` or ``month`` and\ndefaults to ``day``; any unrecognised value falls back to ``day``.","operationId":"count_ppe_events_v2_projects__project_exid__ppe_events_counts_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by camera","title":"Camera Exid"},"description":"Filter by camera"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of range","title":"From Date"},"description":"Start of range"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of range","title":"To Date"},"description":"End of range"},{"name":"has_helmet","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=worn (1) only, false=confirmed missing (0) only; not-visible (2) and never-evaluated (NULL) match neither","title":"Has Helmet"},"description":"true=worn (1) only, false=confirmed missing (0) only; not-visible (2) and never-evaluated (NULL) match neither"},{"name":"has_high_vis_vest","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=worn only, false=violations only","title":"Has High Vis Vest"},"description":"true=worn only, false=violations only"},{"name":"has_gloves","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=worn only, false=violations only","title":"Has Gloves"},"description":"true=worn only, false=violations only"},{"name":"has_glasses","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=worn only, false=violations only","title":"Has Glasses"},"description":"true=worn only, false=violations only"},{"name":"violations_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only persons missing at least one required item","default":false,"title":"Violations Only"},"description":"Only persons missing at least one required item"},{"name":"required","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Items that define compliance: has_helmet,has_high_vis_vest,has_gloves,has_glasses","title":"Required"},"description":"Items that define compliance: has_helmet,has_high_vis_vest,has_gloves,has_glasses"},{"name":"granularity","in":"query","required":false,"schema":{"type":"string","description":"Counts bucket: hour|day|week|month","default":"day","title":"Granularity"},"description":"Counts bucket: hour|day|week|month"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_PpeCountBucketDTO__"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/ppe-events/export":{"get":{"tags":["ppe"],"summary":"Export Ppe Events","description":"Export observations (ppe_events) as a CSV or PDF report (issue #2691).\n\n``file_type`` selects the format (``csv`` or ``pdf``, default ``pdf``);\n``from_date`` and ``to_date`` are required. At most 10,000 events (oldest\nfirst) are exported; rows a reviewer marked invalid (``is_approved=false``)\nare excluded unless ``include_invalid`` is true.\n\nResponse shape (both formats) depends on two flags:\n\n- ``disable_sending_to_media`` — default false, i.e. the file is uploaded to\n  Media Hub.\n- ``direct_download`` — stream the file bytes back to the caller.\n\nWhen ``direct_download`` is true, or ``disable_sending_to_media`` is true,\nthe file bytes are returned (``text/csv`` or ``application/pdf``);\notherwise a JSON acknowledgement is returned (``application/json``). In all\ncases the file is uploaded to Media Hub unless sending is disabled.\n\nPDF reports embed cropped evidence images only when 1,000 or fewer rows\nmatch; larger PDFs are generated without embedded images.","operationId":"export_ppe_events_v2_projects__project_exid__ppe_events_export_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start of range (required)","title":"From Date"},"description":"Start of range (required)"},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"End of range (required)","title":"To Date"},"description":"End of range (required)"},{"name":"camera_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by camera","title":"Camera Exid"},"description":"Filter by camera"},{"name":"compliant","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true=compliant only, false=non-compliant only, omit=all","title":"Compliant"},"description":"true=compliant only, false=non-compliant only, omit=all"},{"name":"required","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Items that define compliance: has_helmet,has_high_vis_vest,has_gloves,has_glasses","title":"Required"},"description":"Items that define compliance: has_helmet,has_high_vis_vest,has_gloves,has_glasses"},{"name":"file_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PpeExportFileType","description":"csv or pdf","default":"pdf"},"description":"csv or pdf"},{"name":"direct_download","in":"query","required":false,"schema":{"type":"boolean","description":"true=stream the file back to the caller as well","default":false,"title":"Direct Download"},"description":"true=stream the file back to the caller as well"},{"name":"disable_sending_to_media","in":"query","required":false,"schema":{"type":"boolean","description":"true=do NOT upload the export to Media Hub (default uploads)","default":false,"title":"Disable Sending To Media"},"description":"true=do NOT upload the export to Media Hub (default uploads)"},{"name":"include_invalid","in":"query","required":false,"schema":{"type":"boolean","description":"Include rows a reviewer marked invalid (is_approved=false)","default":false,"title":"Include Invalid"},"description":"Include rows a reviewer marked invalid (is_approved=false)"}],"responses":{"200":{"description":"Binary file when downloaded directly (`direct_download` or `disable_sending_to_media`), otherwise a JSON acknowledgement after the file is uploaded to Media Hub.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportJobAck"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"text/csv":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/ppe-events/snapshot-url":{"get":{"tags":["ppe"],"summary":"Get Ppe Snapshot Url","description":"Get a presigned URL for the snapshot behind a PPE event, by camera and capture time.","operationId":"get_ppe_snapshot_url_v2_projects__project_exid__ppe_events_snapshot_url_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"query","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"captured_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Frame capture time (UTC)","title":"Captured At"},"description":"Frame capture time (UTC)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PpeSnapshotUrlDTO_"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/ppe-events/{event_id}/approval":{"patch":{"tags":["ppe"],"summary":"Update Ppe Approval","description":"Set or clear the reviewer approval verdict (valid / invalid / unreviewed) on a PPE event.","operationId":"update_ppe_approval_v2_projects__project_exid__ppe_events__event_id__approval_patch","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"event_id","in":"path","required":true,"schema":{"type":"integer","description":"PPE event ID","title":"Event Id"},"description":"PPE event ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PpeApprovalUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/prompts":{"get":{"tags":["prompts"],"summary":"List Prompts","description":"List prompts with filtering and pagination.","operationId":"list_prompts_v2_prompts_get","parameters":[{"name":"app","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by app namespace, e.g. 'gate_report'","title":"App"},"description":"Filter by app namespace, e.g. 'gate_report'"},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by purpose slug","title":"Purpose"},"description":"Filter by purpose slug"},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by model name","title":"Model"},"description":"Filter by model name"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search across title / prompt / purpose / app / model.","title":"Search"},"description":"Free-text search across title / prompt / purpose / app / model."},{"name":"created_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by author email","title":"Created By"},"description":"Filter by author email"},{"name":"prompt_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(prompt|parent|subprompt)$"},{"type":"null"}],"description":"Filter by prompt type","title":"Prompt Type"},"description":"Filter by prompt type"},{"name":"include_subprompts","in":"query","required":false,"schema":{"type":"boolean","description":"Include sub-prompts in the listing (hidden by default)","default":false,"title":"Include Subprompts"},"description":"Include sub-prompts in the listing (hidden by default)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PromptData_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["prompts"],"summary":"Create Prompt","description":"Create a new prompt. `created_by` is resolved from the auth token.","operationId":"create_prompt_v2_prompts_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse_PromptData_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/prompts/{prompt_id}":{"get":{"tags":["prompts"],"summary":"Get Prompt","description":"Get a single prompt template by ID.","operationId":"get_prompt_v2_prompts__prompt_id__get","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Prompt ID","title":"Prompt Id"},"description":"Prompt ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptData"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["prompts"],"summary":"Update Prompt","description":"Update a prompt template by ID. `updated_by` is resolved from the auth token.","operationId":"update_prompt_v2_prompts__prompt_id__patch","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Prompt ID","title":"Prompt Id"},"description":"Prompt ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["prompts"],"summary":"Delete Prompt","description":"Delete a prompt template by ID.","operationId":"delete_prompt_v2_prompts__prompt_id__delete","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Prompt ID","title":"Prompt Id"},"description":"Prompt ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/prompts/{prompt_id}/subprompts":{"get":{"tags":["prompts"],"summary":"List Subprompts","description":"Sub-prompts owned by a parent prompt.","operationId":"list_subprompts_v2_prompts__prompt_id__subprompts_get","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Parent prompt ID","title":"Prompt Id"},"description":"Parent prompt ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PromptData"},"title":"Response List Subprompts V2 Prompts  Prompt Id  Subprompts Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["prompts"],"summary":"Create Subprompt","description":"Create a sub-prompt under a parent. The parent's app is inherited.","operationId":"create_subprompt_v2_prompts__prompt_id__subprompts_post","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"Parent prompt ID","title":"Prompt Id"},"description":"Parent prompt ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubpromptCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse_PromptData_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/rois":{"get":{"tags":["rois"],"summary":"Get Project Rois","description":"Get all ROIs for a project.","operationId":"get_project_rois_v2_projects__project_exid__rois_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by ROI ID","title":"Id"},"description":"Filter by ROI ID"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by name","title":"Name"},"description":"Filter by name"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Filter by from_date","title":"From Date"},"description":"Filter by from_date"},{"name":"roi_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by ROI type","title":"Roi Type"},"description":"Filter by ROI type"},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by active status","title":"Is Active"},"description":"Filter by active status"},{"name":"direction_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by direction","title":"Direction Filter"},"description":"Filter by direction"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort field and direction (e.g., 'name|desc')","title":"Sort"},"description":"Sort field and direction (e.g., 'name|desc')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RoiData"},"title":"Response Get Project Rois V2 Projects  Project Exid  Rois Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/rois":{"get":{"tags":["rois"],"summary":"List Rois","description":"List ROIs across projects, filtered by `cameras_exid`.\n\nLets the caller fetch ROIs for many cameras (spanning projects) in one\nrequest instead of a project-scoped call per project. `cameras_exid` is\nrequired to keep the query bounded.","operationId":"list_rois_v2_rois_get","parameters":[{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Cameras Exid"},"description":"Filter by camera external IDs"},{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by ROI ID","title":"Id"},"description":"Filter by ROI ID"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by name","title":"Name"},"description":"Filter by name"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Filter by from_date","title":"From Date"},"description":"Filter by from_date"},{"name":"roi_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by ROI type","title":"Roi Type"},"description":"Filter by ROI type"},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by active status","title":"Is Active"},"description":"Filter by active status"},{"name":"direction_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by direction","title":"Direction Filter"},"description":"Filter by direction"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort field and direction (e.g., 'name|desc')","title":"Sort"},"description":"Sort field and direction (e.g., 'name|desc')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RoiData"},"title":"Response List Rois V2 Rois Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["rois"],"summary":"Create Roi","description":"Create a new ROI.","operationId":"create_roi_v2_rois_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoiCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse_RoiData_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/rois/{roi_id}":{"get":{"tags":["rois"],"summary":"Get Roi","description":"Get a single ROI by ID.","operationId":"get_roi_v2_rois__roi_id__get","parameters":[{"name":"roi_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"ROI ID","title":"Roi Id"},"description":"ROI ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoiData"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["rois"],"summary":"Update Roi","description":"Update an existing ROI.","operationId":"update_roi_v2_rois__roi_id__patch","parameters":[{"name":"roi_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"description":"ROI ID","title":"Roi Id"},"description":"ROI ID"},{"name":"updated_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"User who updated the ROI","title":"Updated By"},"description":"User who updated the ROI"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoiUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict — the resource already exists or its state prevents the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/segments/masks":{"get":{"tags":["segments"],"summary":"Get Segments Masks","description":"Get segment masks grouped by label for a camera.","operationId":"get_segments_masks_v2_cameras__camera_exid__segments_masks_get","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by labels","title":"Labels"},"description":"Filter by labels"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentsByLabel"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/segments/presence-intervals":{"get":{"tags":["segments"],"summary":"Get Segments Presence Intervals","description":"Get segment presence intervals for a camera.","operationId":"get_segments_presence_intervals_v2_cameras__camera_exid__segments_presence_intervals_get","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by labels","title":"Labels"},"description":"Filter by labels"},{"name":"precision","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TimelinePrecision","description":"Timeline precision: year, month, week, day, hour, minute, events"},"description":"Timeline precision: year, month, week, day, hour, minute, events"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentPresenceIntervals"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/segments/appearance-from-points":{"get":{"tags":["segments"],"summary":"Find Segment Appearance","description":"Find segment appearance by IoU matching against a reference segment.","operationId":"find_segment_appearance_v2_cameras__camera_exid__segments_appearance_from_points_get","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"reference_id","in":"query","required":true,"schema":{"type":"integer","description":"Reference segment ID","title":"Reference Id"},"description":"Reference segment ID"},{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start date/time","title":"From Date"},"description":"Start date/time"},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"End date/time","title":"To Date"},"description":"End date/time"},{"name":"iou_threshold","in":"query","required":false,"schema":{"type":"number","description":"IoU threshold for matching","default":0.3,"title":"Iou Threshold"},"description":"IoU threshold for matching"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SegmentAppearance"},"title":"Response Find Segment Appearance V2 Cameras  Camera Exid  Segments Appearance From Points Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/detections/timestamps/export":{"get":{"tags":["site-analytics"],"summary":"Export Detections Timestamps","description":"Export site-analytics PPE detections as a CSV or PDF report.\n\n``file_type`` selects the format (``pdf`` or ``csv``); ``from_date`` and\n``to_date`` are both required. A CSV is always streamed back directly with\n``Content-Type: text/csv``. For PDF the response depends on two flags:\n\n- ``disable_sending_to_media`` — default false, i.e. the report is uploaded\n  to Media Hub.\n- ``direct_download`` — stream the generated file back to the caller.\n\nWhen ``direct_download`` is true, or ``disable_sending_to_media`` is true,\nthe PDF bytes are returned (``application/pdf``) and are additionally\nuploaded to Media Hub unless sending is disabled. Otherwise the report is\nuploaded to Media Hub asynchronously and a JSON acknowledgement is returned\n(``application/json``).","operationId":"export_detections_timestamps_v2_projects__project_exid__detections_timestamps_export_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Target project external ID","title":"Project Exid"},"description":"Target project external ID"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Target cameras external IDs","title":"Camera Exids"},"description":"Target cameras external IDs"},{"name":"track_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by track_id","title":"Track Id"},"description":"Filter by track_id"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by a start date","title":"From Date"},"description":"Filter by a start date"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by an end date","title":"To Date"},"description":"Filter by an end date"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by a list of labels","title":"Labels"},"description":"Filter by a list of labels"},{"name":"exclude_labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by excluding a list of labels","title":"Exclude Labels"},"description":"Filter by excluding a list of labels"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by model id","title":"Model Id"},"description":"Filter by model id"},{"name":"confidence_threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by confidence threshold","title":"Confidence Threshold"},"description":"Filter by confidence threshold"},{"name":"thresholds","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by label-specific thresholds, e.g., label_1:20","title":"Thresholds"},"description":"Filter by label-specific thresholds, e.g., label_1:20"},{"name":"merged_classes","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"merged classes groups, e.g., merged_classes=group1_label1,group1_label2\nExamples:\n  merged_classes=person,man,woman means all those classes = person\n","title":"Merged Classes"},"description":"merged classes groups, e.g., merged_classes=group1_label1,group1_label2\nExamples:\n  merged_classes=person,man,woman means all those classes = person\n"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort by column, ex: column_name|desc","title":"Sort"},"description":"Sort by column, ex: column_name|desc"},{"name":"file_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ExportFileType","description":"Export format: pdf or csv (required)."},"description":"Export format: pdf or csv (required)."},{"name":"columns","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Columns to include; omit to export all.","title":"Columns"},"description":"Columns to include; omit to export all."},{"name":"direct_download","in":"query","required":false,"schema":{"type":"boolean","description":"Return the file bytes directly instead of a background job.","default":false,"title":"Direct Download"},"description":"Return the file bytes directly instead of a background job."},{"name":"disable_sending_to_media","in":"query","required":false,"schema":{"type":"boolean","description":"true=do NOT upload the export to Media Hub (default uploads)","default":false,"title":"Disable Sending To Media"},"description":"true=do NOT upload the export to Media Hub (default uploads)"}],"responses":{"200":{"description":"Binary file when downloaded directly (`direct_download` or `disable_sending_to_media`), otherwise a JSON acknowledgement after the file is uploaded to Media Hub.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportJobAck"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"text/csv":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/site-analytics/observation-configs/{camera_exid}":{"get":{"tags":["site-analytics"],"summary":"Get Observation Config","operationId":"get_observation_config_v2_site_analytics_observation_configs__camera_exid__get","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationConfigData"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["site-analytics"],"summary":"Upsert Observation Config","description":"Create or replace the camera's observation config (activity selection + overrides).","operationId":"upsert_observation_config_v2_site_analytics_observation_configs__camera_exid__put","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationConfigUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationConfigData"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["site-analytics"],"summary":"Delete Observation Config","operationId":"delete_observation_config_v2_site_analytics_observation_configs__camera_exid__delete","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/smart-search/all":{"post":{"tags":["smart-search"],"summary":"Execute Smart Search All","description":"Execute smart search with rules and conditions, returning all matching detections.","operationId":"execute_smart_search_all_v2_projects__project_exid__smart_search_all_post","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date/time","title":"From Date"},"description":"Start date/time"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date/time","title":"To Date"},"description":"End date/time"},{"name":"threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Confidence score threshold (0.0-1.0)","title":"Threshold"},"description":"Confidence score threshold (0.0-1.0)"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Restrict to camera exids","title":"Camera Exids"},"description":"Restrict to camera exids"},{"name":"walk_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 walk IDs","title":"Walk Ids"},"description":"Filter by 360 walk IDs"},{"name":"marker_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 marker IDs","title":"Marker Ids"},"description":"Filter by 360 marker IDs"},{"name":"drawing_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by drawing IDs","title":"Drawing Ids"},"description":"Filter by drawing IDs"},{"name":"model_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by model version. Omit to return all, set to 'null' to return records with no model version, or set to a specific value to filter by that version.","title":"Model Version"},"description":"Filter by model version. Omit to return all, set to 'null' to return records with no model version, or set to a specific value to filter by that version."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartSearchResponseAll"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/smart-search/first-last-seen":{"post":{"tags":["smart-search"],"summary":"Execute Smart Search First Last Seen","description":"Execute smart search with rules and conditions, returning first and last seen per track.","operationId":"execute_smart_search_first_last_seen_v2_projects__project_exid__smart_search_first_last_seen_post","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date/time","title":"From Date"},"description":"Start date/time"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date/time","title":"To Date"},"description":"End date/time"},{"name":"threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Confidence score threshold (0.0-1.0)","title":"Threshold"},"description":"Confidence score threshold (0.0-1.0)"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Restrict to camera exids","title":"Camera Exids"},"description":"Restrict to camera exids"},{"name":"walk_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 walk IDs","title":"Walk Ids"},"description":"Filter by 360 walk IDs"},{"name":"marker_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 marker IDs","title":"Marker Ids"},"description":"Filter by 360 marker IDs"},{"name":"drawing_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by drawing IDs","title":"Drawing Ids"},"description":"Filter by drawing IDs"},{"name":"model_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by model version. Omit to return all, set to 'null' to return records with no model version, or set to a specific value to filter by that version.","title":"Model Version"},"description":"Filter by model version. Omit to return all, set to 'null' to return records with no model version, or set to a specific value to filter by that version."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartSearchResponseFirstLastSeen"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/smart-search/export":{"post":{"tags":["smart-search"],"summary":"Export Smart Search","description":"Export smart-search (first/last seen) results as a downloadable file.\n\n`from_date` and `to_date` (query params) are **required** — the request is rejected otherwise.\n\n`file_type` selects the output format:\n- `csv` (default): a CSV file is always returned inline as an attachment (`text/csv`). The Media Hub\n  upload options below do not apply to CSV.\n- `pdf`: a rendered PDF report. Its delivery depends on `direct_download` and\n  `disable_sending_to_media`:\n\n| direct_download | disable_sending_to_media | Response body | Uploaded to Media Hub |\n|-----------------|--------------------------|-----------------------------|-----------------------|\n| true            | false (default)          | PDF inline (`application/pdf`) | yes |\n| true            | true                     | PDF inline (`application/pdf`) | no  |\n| false           | true                     | PDF inline (`application/pdf`) | no  |\n| false           | false (default)          | JSON metadata (`application/json`) | yes (background) |\n\nIn short: the PDF is returned inline whenever `direct_download` is true or `disable_sending_to_media`\nis true; otherwise the PDF is generated and uploaded to Media Hub in the background and only JSON\nmetadata is returned. The upload to Media Hub happens whenever `disable_sending_to_media` is false.","operationId":"export_smart_search_v2_projects__project_exid__smart_search_export_post","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional serialized smart-search query","title":"Query"},"description":"Optional serialized smart-search query"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date/time","title":"From Date"},"description":"Start date/time"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date/time","title":"To Date"},"description":"End date/time"},{"name":"threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Confidence score threshold (0.0-1.0)","title":"Threshold"},"description":"Confidence score threshold (0.0-1.0)"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Restrict to camera exids","title":"Camera Exids"},"description":"Restrict to camera exids"},{"name":"walk_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 walk IDs","title":"Walk Ids"},"description":"Filter by 360 walk IDs"},{"name":"marker_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 marker IDs","title":"Marker Ids"},"description":"Filter by 360 marker IDs"},{"name":"drawing_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by drawing IDs","title":"Drawing Ids"},"description":"Filter by drawing IDs"},{"name":"model_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by model version. Omit to return all, set to 'null' to return records with no model version, or set to a specific value to filter by that version.","title":"Model Version"},"description":"Filter by model version. Omit to return all, set to 'null' to return records with no model version, or set to a specific value to filter by that version."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true},{"name":"file_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SmartSearchExportFileType","description":"Export file type","default":"csv"},"description":"Export file type"},{"name":"columns","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Optional export columns","title":"Columns"},"description":"Optional export columns"},{"name":"direct_download","in":"query","required":false,"schema":{"type":"boolean","description":"Return file immediately instead of background generation","default":false,"title":"Direct Download"},"description":"Return file immediately instead of background generation"},{"name":"disable_sending_to_media","in":"query","required":false,"schema":{"type":"boolean","description":"true=do NOT upload the export to Media Hub (default uploads)","default":false,"title":"Disable Sending To Media"},"description":"true=do NOT upload the export to Media Hub (default uploads)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmartSearchRequest"}}}},"responses":{"200":{"description":"Binary file when downloaded directly (`direct_download` or `disable_sending_to_media`), otherwise a JSON acknowledgement after the file is uploaded to Media Hub.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportJobAck"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"text/csv":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/smart-search/queries":{"get":{"tags":["smart-search"],"summary":"List Saved Queries","description":"List all saved queries for a project.","operationId":"list_saved_queries_v2_projects__project_exid__smart_search_queries_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"cameras_exid","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by one or more camera exids","title":"Cameras Exid"},"description":"Filter by one or more camera exids"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by partial name","title":"Name"},"description":"Filter by partial name"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SavedQueryItem"},"title":"Response List Saved Queries V2 Projects  Project Exid  Smart Search Queries Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/smart-search/queries/{query_id}":{"get":{"tags":["smart-search"],"summary":"Get Saved Query","description":"Get a single saved query by ID.","operationId":"get_saved_query_v2_projects__project_exid__smart_search_queries__query_id__get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"query_id","in":"path","required":true,"schema":{"type":"integer","description":"Saved query ID","title":"Query Id"},"description":"Saved query ID"},{"name":"camera_exid","in":"query","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedQueryItem"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/cameras/{camera_exid}/smart-search/queries":{"post":{"tags":["smart-search"],"summary":"Create Saved Query","description":"Create a new saved query.","operationId":"create_saved_query_v2_projects__project_exid__cameras__camera_exid__smart_search_queries_post","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedQueryCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse_SavedQueryItem_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/cameras/{camera_exid}/smart-search/queries/{query_id}":{"patch":{"tags":["smart-search"],"summary":"Update Saved Query","description":"Update an existing saved query.","operationId":"update_saved_query_v2_projects__project_exid__cameras__camera_exid__smart_search_queries__query_id__patch","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"query_id","in":"path","required":true,"schema":{"type":"integer","description":"Saved query ID","title":"Query Id"},"description":"Saved query ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedQueryUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["smart-search"],"summary":"Delete Saved Query","description":"Delete a saved query.","operationId":"delete_saved_query_v2_projects__project_exid__cameras__camera_exid__smart_search_queries__query_id__delete","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"query_id","in":"path","required":true,"schema":{"type":"integer","description":"Saved query ID","title":"Query Id"},"description":"Saved query ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/smart-search/models":{"get":{"tags":["smart-search"],"summary":"Get Smart Search Models","description":"Get all ML models from the models table.","operationId":"get_smart_search_models_v2_projects__project_exid__smart_search_models_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MlModelInfo"},"title":"Response Get Smart Search Models V2 Projects  Project Exid  Smart Search Models Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/smart-search/heatmap":{"get":{"tags":["smart-search"],"summary":"Get Heatmap","description":"Get heatmap data for given labels.","operationId":"get_heatmap_v2_projects__project_exid__smart_search_heatmap_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exid","in":"query","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"labels","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Labels to track","title":"Labels"},"description":"Labels to track"},{"name":"operator","in":"query","required":false,"schema":{"type":"string","description":"Operator to combine labels: 'and' or 'or'","default":"or","title":"Operator"},"description":"Operator to combine labels: 'and' or 'or'"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date/time","title":"From Date"},"description":"Start date/time"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date/time","title":"To Date"},"description":"End date/time"},{"name":"reference_image_timestamp","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"UTC reference-image timestamp, format 'YYYY-MM-DD HH:MM:SS'. Required only when preview=true to render the heatmap overlay on the snapshot at this time; ignored otherwise.","title":"Reference Image Timestamp"},"description":"UTC reference-image timestamp, format 'YYYY-MM-DD HH:MM:SS'. Required only when preview=true to render the heatmap overlay on the snapshot at this time; ignored otherwise."},{"name":"grid_size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Grid size for heatmap","default":64,"title":"Grid Size"},"description":"Grid size for heatmap"},{"name":"preview","in":"query","required":false,"schema":{"type":"boolean","description":"When true and reference_image_timestamp is set, returns a JPEG image (heatmap overlaid on the reference snapshot); otherwise returns the heatmap data as JSON.","default":true,"title":"Preview"},"description":"When true and reference_image_timestamp is set, returns a JPEG image (heatmap overlaid on the reference snapshot); otherwise returns the heatmap data as JSON."}],"responses":{"200":{"description":"JPEG image.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HeatmapResponse"},"title":"Response Get Heatmap V2 Projects  Project Exid  Smart Search Heatmap Get"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/360/process_walk":{"post":{"tags":["360"],"summary":"Process Walk","description":"Queue 360 walks for asynchronous processing.\n\nAccepts one or more walk items with images and geolocation data; each\nwalk is queued for processing and the response returns once the request\nis accepted.","operationId":"process_walk_v2_360_process_walk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessWalkRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/trackings":{"get":{"tags":["trackings"],"summary":"Get Trackings","description":"Get paginated trackings for a project.","operationId":"get_trackings_v2_projects__project_exid__trackings_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Camera Exids"},"description":"Filter by camera external IDs"},{"name":"walk_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 walk IDs","title":"Walk Ids"},"description":"Filter by 360 walk IDs"},{"name":"marker_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by 360 marker IDs","title":"Marker Ids"},"description":"Filter by 360 marker IDs"},{"name":"drawing_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by drawing IDs","title":"Drawing Ids"},"description":"Filter by drawing IDs"},{"name":"track_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by track ID","title":"Track Id"},"description":"Filter by track ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by labels","title":"Labels"},"description":"Filter by labels"},{"name":"exclude_labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Exclude labels","title":"Exclude Labels"},"description":"Exclude labels"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by model ID","title":"Model Id"},"description":"Filter by model ID"},{"name":"confidence_threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Minimum confidence threshold","title":"Confidence Threshold"},"description":"Minimum confidence threshold"},{"name":"thresholds","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided.","title":"Thresholds"},"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided."},{"name":"merged_classes","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Merged class groups (e.g., person,man,woman)","title":"Merged Classes"},"description":"Merged class groups (e.g., person,man,woman)"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort as 'column|direction'. Columns: 'timestamp' (alias 'time') or 'camera' (alias 'camera_exid'); direction: 'asc' or 'desc'. Defaults to 'timestamp|asc'; an unrecognised column or malformed value also falls back to 'timestamp|asc'.","title":"Sort"},"description":"Sort as 'column|direction'. Columns: 'timestamp' (alias 'time') or 'camera' (alias 'camera_exid'); direction: 'asc' or 'desc'. Defaults to 'timestamp|asc'; an unrecognised column or malformed value also falls back to 'timestamp|asc'."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TrackingItem_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["trackings"],"summary":"Create Trackings","description":"Create tracking records.","operationId":"create_trackings_v2_projects__project_exid__trackings_post","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrackingCreateData"},"title":"Data"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/trackings/timestamps":{"get":{"tags":["trackings"],"summary":"Get Trackings By Timestamp","description":"Get trackings grouped by timestamp for a project.","operationId":"get_trackings_by_timestamp_v2_projects__project_exid__trackings_timestamps_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Camera Exids"},"description":"Filter by camera external IDs"},{"name":"walk_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 walk IDs","title":"Walk Ids"},"description":"Filter by 360 walk IDs"},{"name":"marker_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by 360 marker IDs","title":"Marker Ids"},"description":"Filter by 360 marker IDs"},{"name":"drawing_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by drawing IDs","title":"Drawing Ids"},"description":"Filter by drawing IDs"},{"name":"track_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by track ID","title":"Track Id"},"description":"Filter by track ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by labels","title":"Labels"},"description":"Filter by labels"},{"name":"exclude_labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Exclude labels","title":"Exclude Labels"},"description":"Exclude labels"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by model ID","title":"Model Id"},"description":"Filter by model ID"},{"name":"confidence_threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Minimum confidence threshold","title":"Confidence Threshold"},"description":"Minimum confidence threshold"},{"name":"thresholds","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided.","title":"Thresholds"},"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided."},{"name":"merged_classes","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Merged class groups (e.g., person,man,woman)","title":"Merged Classes"},"description":"Merged class groups (e.g., person,man,woman)"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort as 'column|direction'. Columns: 'timestamp' (alias 'time') or 'camera' (alias 'camera_exid'); direction: 'asc' or 'desc'. Defaults to 'timestamp|asc'; an unrecognised column or malformed value also falls back to 'timestamp|asc'.","title":"Sort"},"description":"Sort as 'column|direction'. Columns: 'timestamp' (alias 'time') or 'camera' (alias 'camera_exid'); direction: 'asc' or 'desc'. Defaults to 'timestamp|asc'; an unrecognised column or malformed value also falls back to 'timestamp|asc'."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TrackingsByTimestamp_"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/trackings/counts":{"get":{"tags":["trackings"],"summary":"Get Trackings Counts","description":"Get tracking counts by day, month, and year.","operationId":"get_trackings_counts_v2_projects__project_exid__trackings_counts_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Camera Exids"},"description":"Filter by camera external IDs"},{"name":"walk_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 walk IDs","title":"Walk Ids"},"description":"Filter by 360 walk IDs"},{"name":"marker_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by 360 marker IDs","title":"Marker Ids"},"description":"Filter by 360 marker IDs"},{"name":"drawing_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by drawing IDs","title":"Drawing Ids"},"description":"Filter by drawing IDs"},{"name":"track_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by track ID","title":"Track Id"},"description":"Filter by track ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by labels","title":"Labels"},"description":"Filter by labels"},{"name":"exclude_labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Exclude labels","title":"Exclude Labels"},"description":"Exclude labels"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by model ID","title":"Model Id"},"description":"Filter by model ID"},{"name":"confidence_threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Minimum confidence threshold","title":"Confidence Threshold"},"description":"Minimum confidence threshold"},{"name":"thresholds","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided.","title":"Thresholds"},"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided."},{"name":"merged_classes","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Merged class groups (e.g., person,man,woman)","title":"Merged Classes"},"description":"Merged class groups (e.g., person,man,woman)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingCounts"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/trackings/processed-times":{"get":{"tags":["trackings"],"summary":"Get Processed Times","description":"Get processed times for project cameras.","operationId":"get_processed_times_v2_projects__project_exid__trackings_processed_times_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Camera Exids"},"description":"Filter by camera external IDs"},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start time filter","title":"Start Time"},"description":"Start time filter"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End time filter","title":"End Time"},"description":"End time filter"},{"name":"granularity","in":"query","required":false,"schema":{"type":"string","description":"Granularity: day or hour","default":"day","title":"Granularity"},"description":"Granularity: day or hour"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"title":"Response Get Processed Times V2 Projects  Project Exid  Trackings Processed Times Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/cameras/{camera_exid}/trackings/intersections-heatmap":{"get":{"tags":["trackings"],"summary":"Get Intersections Heatmap","description":"Get heatmap of bbox intersections between source labels and target label.","operationId":"get_intersections_heatmap_v2_cameras__camera_exid__trackings_intersections_heatmap_get","parameters":[{"name":"camera_exid","in":"path","required":true,"schema":{"type":"string","description":"Camera external ID","title":"Camera Exid"},"description":"Camera external ID"},{"name":"source_labels","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Source labels","title":"Source Labels"},"description":"Source labels"},{"name":"target_label","in":"query","required":true,"schema":{"type":"string","description":"Target label","title":"Target Label"},"description":"Target label"},{"name":"from_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Start date/time (inclusive, timestamp >= from_date)","title":"From Date"},"description":"Start date/time (inclusive, timestamp >= from_date)"},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"End date/time (exclusive, timestamp < to_date)","title":"To Date"},"description":"End date/time (exclusive, timestamp < to_date)"},{"name":"grid_size","in":"query","required":false,"schema":{"type":"integer","description":"Grid resolution","default":64,"title":"Grid Size"},"description":"Grid resolution"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntersectionHeatmapPoint"},"title":"Response Get Intersections Heatmap V2 Cameras  Camera Exid  Trackings Intersections Heatmap Get"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/trackings/{tracking_id}":{"patch":{"tags":["trackings"],"summary":"Update Tracking","description":"Update a tracking record.","operationId":"update_tracking_v2_projects__project_exid__trackings__tracking_id__patch","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"tracking_id","in":"path","required":true,"schema":{"type":"integer","description":"Tracking record ID","title":"Tracking Id"},"description":"Tracking record ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingUpdateData"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["trackings"],"summary":"Delete Tracking","description":"Delete a tracking record.","operationId":"delete_tracking_v2_projects__project_exid__trackings__tracking_id__delete","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"tracking_id","in":"path","required":true,"schema":{"type":"integer","description":"Tracking record ID","title":"Tracking Id"},"description":"Tracking record ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/trackings/bulk":{"delete":{"tags":["trackings"],"summary":"Bulk Delete Trackings","description":"Bulk delete tracking records by IDs.","operationId":"bulk_delete_trackings_v2_projects__project_exid__trackings_bulk_delete","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingBulkDeleteFilters","description":"Bulk delete filters"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/trackings/grouped":{"get":{"tags":["trackings"],"summary":"Get Trackings Grouped","description":"Get trackings grouped by label (V1-equivalent, no pagination).","operationId":"get_trackings_grouped_v2_projects__project_exid__trackings_grouped_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Camera Exids"},"description":"Filter by camera external IDs"},{"name":"walk_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 walk IDs","title":"Walk Ids"},"description":"Filter by 360 walk IDs"},{"name":"marker_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by 360 marker IDs","title":"Marker Ids"},"description":"Filter by 360 marker IDs"},{"name":"drawing_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by drawing IDs","title":"Drawing Ids"},"description":"Filter by drawing IDs"},{"name":"track_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by track ID","title":"Track Id"},"description":"Filter by track ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by labels","title":"Labels"},"description":"Filter by labels"},{"name":"exclude_labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Exclude labels","title":"Exclude Labels"},"description":"Exclude labels"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by model ID","title":"Model Id"},"description":"Filter by model ID"},{"name":"confidence_threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Minimum confidence threshold","title":"Confidence Threshold"},"description":"Minimum confidence threshold"},{"name":"thresholds","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided.","title":"Thresholds"},"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided."},{"name":"merged_classes","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Merged class groups (e.g., person,man,woman)","title":"Merged Classes"},"description":"Merged class groups (e.g., person,man,woman)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingsGroupedResponse"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/projects/{project_exid}/trackings/presence-intervals":{"get":{"tags":["trackings"],"summary":"Get Presence Intervals","description":"Get tracking presence intervals.","operationId":"get_presence_intervals_v2_projects__project_exid__trackings_presence_intervals_get","parameters":[{"name":"project_exid","in":"path","required":true,"schema":{"type":"string","description":"Project external ID","title":"Project Exid"},"description":"Project external ID"},{"name":"camera_exids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by camera external IDs","title":"Camera Exids"},"description":"Filter by camera external IDs"},{"name":"walk_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by 360 walk IDs","title":"Walk Ids"},"description":"Filter by 360 walk IDs"},{"name":"marker_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"description":"Filter by 360 marker IDs","title":"Marker Ids"},"description":"Filter by 360 marker IDs"},{"name":"drawing_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by drawing IDs","title":"Drawing Ids"},"description":"Filter by drawing IDs"},{"name":"track_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by track ID","title":"Track Id"},"description":"Filter by track ID"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start date filter","title":"From Date"},"description":"Start date filter"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End date filter","title":"To Date"},"description":"End date filter"},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by labels","title":"Labels"},"description":"Filter by labels"},{"name":"exclude_labels","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Exclude labels","title":"Exclude Labels"},"description":"Exclude labels"},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by model ID","title":"Model Id"},"description":"Filter by model ID"},{"name":"confidence_threshold","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Minimum confidence threshold","title":"Confidence Threshold"},"description":"Minimum confidence threshold"},{"name":"thresholds","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided.","title":"Thresholds"},"description":"Per-label confidence thresholds, each formatted as 'label:int' (e.g. 'person:20'); the integer is the minimum confidence_score for that label. Labels not listed here fall back to confidence_threshold when provided."},{"name":"merged_classes","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Merged class groups (e.g., person,man,woman)","title":"Merged Classes"},"description":"Merged class groups (e.g., person,man,woman)"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sort as 'column|direction'. Columns: 'timestamp' (alias 'time') or 'camera' (alias 'camera_exid'); direction: 'asc' or 'desc'. Defaults to 'timestamp|asc'; an unrecognised column or malformed value also falls back to 'timestamp|asc'.","title":"Sort"},"description":"Sort as 'column|direction'. Columns: 'timestamp' (alias 'time') or 'camera' (alias 'camera_exid'); direction: 'asc' or 'desc'. Defaults to 'timestamp|asc'; an unrecognised column or malformed value also falls back to 'timestamp|asc'."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Items per page (max 500)","title":"Limit"},"description":"Items per page (max 500)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Deprecated: use 'limit' instead","deprecated":true,"title":"Page Size"},"description":"Deprecated: use 'limit' instead","deprecated":true},{"name":"precision","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TimelinePrecision","description":"Timeline precision: year, month, week, day, hour, minute, events"},"description":"Timeline precision: year, month, week, day, hour, minute, events"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresenceIntervals"}}}},"400":{"description":"Bad request — the service rejected the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — missing/invalid credentials, or authenticated but not permitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error — request params or body failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream dependency (Media API, ...) unavailable — retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"APIResponse_PpeSnapshotUrlDTO_":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always true on success.","default":true},"data":{"anyOf":[{"$ref":"#/components/schemas/PpeSnapshotUrlDTO"},{"type":"null"}],"description":"The requested resource."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"OK"}},"type":"object","title":"APIResponse[PpeSnapshotUrlDTO]"},"APIResponse_list_ObservationCountBucketDTO__":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always true on success.","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ObservationCountBucketDTO"},"type":"array"},{"type":"null"}],"title":"Data","description":"The requested resource."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"OK"}},"type":"object","title":"APIResponse[list[ObservationCountBucketDTO]]"},"APIResponse_list_ObservationModelDTO__":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always true on success.","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ObservationModelDTO"},"type":"array"},{"type":"null"}],"title":"Data","description":"The requested resource."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"OK"}},"type":"object","title":"APIResponse[list[ObservationModelDTO]]"},"APIResponse_list_ObservationProjectDTO__":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always true on success.","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ObservationProjectDTO"},"type":"array"},{"type":"null"}],"title":"Data","description":"The requested resource."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"OK"}},"type":"object","title":"APIResponse[list[ObservationProjectDTO]]"},"APIResponse_list_ObservationTypeDTO__":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always true on success.","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ObservationTypeDTO"},"type":"array"},{"type":"null"}],"title":"Data","description":"The requested resource."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"OK"}},"type":"object","title":"APIResponse[list[ObservationTypeDTO]]"},"APIResponse_list_PpeCountBucketDTO__":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always true on success.","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PpeCountBucketDTO"},"type":"array"},{"type":"null"}],"title":"Data","description":"The requested resource."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"OK"}},"type":"object","title":"APIResponse[list[PpeCountBucketDTO]]"},"APIResponse_list_ProcessedSessionDTO__":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always true on success.","default":true},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProcessedSessionDTO"},"type":"array"},{"type":"null"}],"title":"Data","description":"The requested resource."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"OK"}},"type":"object","title":"APIResponse[list[ProcessedSessionDTO]]"},"APIResponse_list_str__":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always true on success.","default":true},"data":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Data","description":"The requested resource."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"OK"}},"type":"object","title":"APIResponse[list[str]]"},"Action":{"type":"string","enum":["is_plate","not_plate","is_duplicate","not_duplicate"],"title":"Action"},"ActivityEventItem":{"properties":{"id":{"type":"integer","title":"Id","description":"Activity event ID."},"start_time":{"type":"string","format":"date-time","title":"Start Time","description":"Event start time."},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time","description":"Event end time; None if not recorded."},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds","description":"Event duration in seconds; None when end_time is missing."},"camera_exid":{"type":"string","title":"Camera Exid","description":"Camera external ID."},"project_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Exid","description":"Project external ID."},"actor_id":{"type":"integer","title":"Actor Id","description":"ID of the primary actor in the event."},"member_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Member Ids","description":"IDs of other actors involved; None if none."},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence","description":"Model confidence; None if unset."},"status":{"type":"string","title":"Status","description":"Review status: 'detected', 'confirmed', or 'rejected'."},"bbox":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Bbox","description":"Event bounding polygon as GeoJSON geometry; None if absent."},"actors_metadata":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Actors Metadata","description":"Per-actor metadata; start metadata when available, otherwise end."},"start_actors_metadata":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Start Actors Metadata","description":"Per-actor metadata at event start; None if unavailable."},"end_actors_metadata":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"End Actors Metadata","description":"Per-actor metadata at event end; None if unavailable."},"inserted_at":{"type":"string","format":"date-time","title":"Inserted At","description":"Record insertion time (UTC)."},"activity":{"$ref":"#/components/schemas/ActivityItem","description":"Activity type of the event."},"model":{"anyOf":[{"$ref":"#/components/schemas/MlModelItem"},{"type":"null"}],"description":"ML model that produced the event; None if unknown."}},"type":"object","required":["id","start_time","camera_exid","actor_id","status","inserted_at","activity"],"title":"ActivityEventItem"},"ActivityItem":{"properties":{"id":{"type":"integer","title":"Id","description":"Activity type ID."},"exid":{"type":"string","title":"Exid","description":"Activity type external ID."},"name":{"type":"string","title":"Name","description":"Activity type name."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Human-readable description of the activity type."},"rules":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rules","description":"Activity detection rules configuration."}},"type":"object","required":["id","exid","name"],"title":"ActivityItem"},"AllLastFovChangesResponse":{"properties":{"cameras":{"additionalProperties":{"items":{"$ref":"#/components/schemas/FovChangeData"},"type":"array"},"type":"object","title":"Cameras","description":"Most recent FOV changes per camera, keyed by camera external ID."}},"type":"object","required":["cameras"],"title":"AllLastFovChangesResponse","description":"Response for all last FOV changes grouped by camera."},"AnprCompanyDTO":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"normalized_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalized Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"activity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["name","count"],"title":"AnprCompanyDTO"},"AnprCountsData":{"properties":{"date":{"type":"string","title":"Date","description":"Date bucket in the camera timezone, formatted per the requested precision."},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","description":"Counts by direction (forward, reverse, unknown)"}},"type":"object","required":["date"],"title":"AnprCountsData","description":"ANPR counts data model matching V1 format."},"AnprHistoryEntry":{"properties":{"id":{"type":"integer","title":"Id","description":"History log entry ID."},"action":{"type":"string","title":"Action","description":"Logged action, e.g. 'update'."},"changes":{"additionalProperties":true,"type":"object","title":"Changes","description":"Changed fields mapped to their values."},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By","description":"Actor who made the change."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Change time (UTC)."}},"type":"object","required":["id","action"],"title":"AnprHistoryEntry","description":"ANPR record history entry."},"AnprMetadata":{"properties":{"covered":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Covered"},"company":{"anyOf":[{"$ref":"#/components/schemas/AnprMetadataCompany"},{"type":"null"}]},"load":{"anyOf":[{"$ref":"#/components/schemas/AnprMetadataLoad"},{"type":"null"}]},"vehicle":{"anyOf":[{"$ref":"#/components/schemas/AnprMetadataVehicle"},{"type":"null"}]}},"type":"object","title":"AnprMetadata"},"AnprMetadataCompany":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"normalized_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalized Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"activity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"}},"type":"object","title":"AnprMetadataCompany"},"AnprMetadataLoad":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Visible"}},"type":"object","title":"AnprMetadataLoad"},"AnprMetadataVehicle":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"remarks":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remarks"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"}},"type":"object","title":"AnprMetadataVehicle"},"AnprPlateData":{"properties":{"plate_number":{"type":"string","title":"Plate Number","description":"License plate number."},"count":{"type":"integer","title":"Count","description":"Total detections of this plate on the camera in range.","default":0},"first_seen":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen","description":"Earliest capture time for this plate (UTC)."},"last_seen":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen","description":"Latest capture time for this plate (UTC)."},"detections":{"additionalProperties":{"type":"integer"},"type":"object","title":"Detections","description":"Detection counts keyed by day."},"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID the search was scoped to."}},"type":"object","required":["plate_number"],"title":"AnprPlateData","description":"ANPR plate search result data model."},"AnprRecordUpdateRequest":{"properties":{"plate_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate Number","description":"License plate number."},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction","description":"Travel direction: forward or reverse."},"is_plate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Plate","description":"Whether the detection is a valid plate."},"is_duplicate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Duplicate","description":"Whether the record duplicates another detection."},"is_postprocessed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Postprocessed","description":"Whether the ANPR worker has post-processed the record."},"vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Type","description":"Vehicle type, e.g. 'road-vehicle', 'tipping truck'."},"context_vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Vehicle Type","description":"Vehicle type classified from the context camera snapshot."},"anpr_vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Type","description":"Vehicle type reported by the ANPR camera."},"anpr_vehicle_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Model","description":"Vehicle model reported by the ANPR camera."},"anpr_vehicle_make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Make","description":"Vehicle make reported by the ANPR camera."},"anpr_vehicle_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Color","description":"Vehicle color reported by the ANPR camera."},"anpr_vehicle_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Anpr Vehicle Speed","description":"Vehicle speed reported by the ANPR camera."},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By","description":"Deprecated: actor identity is derived from the JWT and stored in audit logs. This field is accepted for backwards compatibility and will be removed in a future release.","deprecated":true}},"type":"object","title":"AnprRecordUpdateRequest","description":"Request body for updating an ANPR record."},"AnprRecordWithLinks":{"properties":{"id":{"type":"integer","title":"Id","description":"ANPR record ID."},"plate_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate Number","description":"Detected license plate number."},"cameraex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cameraex","description":"ANPR camera external ID."},"pic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pic Name","description":"Snapshot image file name."},"capture_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Capture Time","description":"Detection capture time (UTC)."},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction","description":"Travel direction: forward or reverse."},"is_plate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Plate","description":"Whether the detection is a valid plate. None if not assessed."},"is_duplicate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Duplicate","description":"Whether the record duplicates another detection. None if not assessed."},"is_postprocessed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Postprocessed","description":"Whether the ANPR worker has post-processed the record."},"vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Type","description":"Vehicle type, e.g. 'road-vehicle', 'tipping truck'."},"context_vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Vehicle Type","description":"Vehicle type classified from the context camera snapshot."},"anpr_vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Type","description":"Vehicle type reported by the ANPR camera."},"anpr_vehicle_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Model","description":"Vehicle model reported by the ANPR camera."},"anpr_vehicle_make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Make","description":"Vehicle make reported by the ANPR camera."},"anpr_vehicle_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Color","description":"Vehicle color reported by the ANPR camera."},"anpr_vehicle_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Anpr Vehicle Speed","description":"Vehicle speed reported by the ANPR camera."},"company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Company Id","description":"Registry company operating the vehicle."},"cover_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover State","description":"Load cover state: covered, uncovered, enclosed, not_applicable or not_visible."},"load_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load State","description":"Load state: empty, loaded or not_visible."},"load_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Category","description":"Load material category, e.g. soil, rubble, timber."},"inserted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Inserted At","description":"Record creation time (UTC)."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Last modification time (UTC)."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Raw detection metadata (evercamMetadata / plateRecognizerMetadata sub-objects)."},"anpr_snapshot_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Snapshot Link","description":"Relative API path to the ANPR camera snapshot."},"context_snapshot_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Snapshot Link","description":"Relative API path to the context camera snapshot."},"context_camera":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Camera","description":"Context camera external ID. None when no context camera is paired."},"voted_vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voted Vehicle Type","description":"context_vehicle_type when set and not 'unknown', otherwise vehicle_type."},"enrichment":{"anyOf":[{"$ref":"#/components/schemas/AnprMetadata"},{"type":"null"}],"description":"Parsed VLM enrichment: covered flag, company and load content."}},"type":"object","required":["id"],"title":"AnprRecordWithLinks","description":"ANPR record with additional computed links."},"ApiKeyCreateRequest":{"properties":{"project_exid":{"type":"string","maxLength":255,"minLength":1,"title":"Project Exid","description":"Owning project external ID."},"provider":{"type":"string","maxLength":32,"minLength":1,"title":"Provider","description":"LLM provider slug, e.g. 'gemini', 'openai', 'anthropic'."},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name","description":"Human-readable label. Generated as '{purpose}-{project_exid}' when omitted."},"purpose":{"type":"string","maxLength":64,"minLength":1,"title":"Purpose","description":"App-level lookup purpose, e.g. 'gate_report'.","default":"default"},"api_key":{"anyOf":[{"type":"string","minLength":8},{"type":"null"}],"title":"Api Key","description":"Plaintext provider key — encrypted before storage. Omit for Gemini to auto-mint a Google Cloud key restricted to the Generative Language API."},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the key is active on creation.","default":true}},"type":"object","required":["project_exid","provider"],"title":"ApiKeyCreateRequest","description":"Request body for registering a new API key."},"ApiKeyData":{"properties":{"id":{"type":"integer","title":"Id","description":"API key row ID."},"project_exid":{"type":"string","title":"Project Exid","description":"Owning project external ID."},"provider":{"type":"string","title":"Provider","description":"LLM provider slug, e.g. 'gemini', 'openai', 'anthropic'."},"name":{"type":"string","title":"Name","description":"Human-readable label."},"purpose":{"type":"string","title":"Purpose","description":"App-level lookup purpose, e.g. 'gate_report'."},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the key is active."},"auto_generated":{"type":"boolean","title":"Auto Generated","description":"True when the key was minted by the service and is revocable on delete.","default":false},"first_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Used At","description":"First use time (UTC). None if never used."},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At","description":"Most recent use time (UTC). None if never used."},"inserted_at":{"type":"string","format":"date-time","title":"Inserted At","description":"Row creation time (UTC)."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last modification time (UTC)."}},"type":"object","required":["id","project_exid","provider","name","purpose","enabled","inserted_at","updated_at"],"title":"ApiKeyData","description":"Read-side projection. The plaintext / ciphertext key is never returned."},"ApiKeyUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"New label. Omit to keep the current one."},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled","description":"Enable or disable the key. Omit to keep the current state."},"api_key":{"anyOf":[{"type":"string","minLength":8},{"type":"null"}],"title":"Api Key","description":"New plaintext key. Omit to keep the current secret."}},"type":"object","title":"ApiKeyUpdateRequest","description":"Request body for updating an existing key.\n\nSend `api_key` only when rotating the secret. `project_exid`, `provider`,\n`purpose` are part of the UNIQUE index and intentionally not editable\nhere — delete + recreate to re-target a row."},"BlurObjectsRequest":{"properties":{"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp","description":"Timestamp with format yyyy-mm-dd hh:mm:ss"},"snapshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Url","description":"URL to use the snapshot"},"base64_img":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base64 Img","description":"Base64-encoded image data"},"classes_to_blur":{"items":{"type":"string"},"type":"array","title":"Classes To Blur","description":"Labels to blur","default":["person"]},"ksize":{"type":"integer","title":"Ksize","description":"Gaussian kernel size (odd)","default":100},"conf_thresh":{"type":"number","title":"Conf Thresh","description":"Confidence threshold","default":0.25},"num_rows":{"type":"integer","title":"Num Rows","description":"Number of rows for extensive mask generation","default":2},"num_cols":{"type":"integer","title":"Num Cols","description":"Number of columns for extensive mask generation","default":2},"iou_threshold":{"type":"number","title":"Iou Threshold","description":"IoU threshold for extensive nms","default":0.5},"advanced_blur":{"type":"boolean","title":"Advanced Blur","description":"Advanced blurring mode","default":false}},"type":"object","title":"BlurObjectsRequest","description":"Request for blurring objects."},"BlurObjectsResponse":{"properties":{"image":{"type":"string","title":"Image","description":"Base64-encoded blurred image"}},"type":"object","required":["image"],"title":"BlurObjectsResponse","description":"Response for blur objects."},"BulkAnprStatusUpdateRequest":{"properties":{"anpr_event_ids":{"items":{"type":"integer"},"type":"array","title":"Anpr Event Ids","description":"IDs of the ANPR records to update."},"action":{"$ref":"#/components/schemas/Action","description":"Status to apply: is_plate, not_plate, is_duplicate, not_duplicate."},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By","description":"Deprecated: actor identity is derived from the JWT. Accepted for backwards compatibility and ignored in production.","deprecated":true}},"type":"object","required":["anpr_event_ids","action"],"title":"BulkAnprStatusUpdateRequest","description":"Request body for bulk ANPR status updates."},"ChatGPTRequest":{"properties":{"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID"},"timestamps":{"anyOf":[{"items":{"type":"string","format":"date-time"},"type":"array"},{"type":"null"}],"title":"Timestamps","description":"Timestamps with format yyyy-mm-dd hh:mm:ss"},"base64_imgs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Base64 Imgs","description":"Base64-encoded images"},"snapshot_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Snapshot Urls","description":"Remote image URLs"},"chatgpt_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chatgpt Model","description":"OpenAI model to use (default gpt-6-luna)","default":"gpt-6-luna"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"ChatGPT prompt"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature","description":"Temperature for ChatGPT","default":1},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens","description":"Max tokens for ChatGPT","default":300},"response_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Format","description":"Response format (json_object or text)","default":"json_object"}},"type":"object","title":"ChatGPTRequest","description":"Request for ChatGPT prompt."},"ChatGPTResponse":{"properties":{"response":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}],"title":"Response","description":"ChatGPT response (text or JSON)"}},"type":"object","required":["response"],"title":"ChatGPTResponse","description":"Response for ChatGPT prompt."},"ClassMetric":{"properties":{"classes":{"items":{"type":"string"},"type":"array","title":"Classes","description":"Evaluated class labels."},"occurences":{"items":{"type":"integer"},"type":"array","title":"Occurences","description":"Occurrence count per class."},"precisions":{"items":{"type":"number"},"type":"array","title":"Precisions","description":"Precision (0-1) per class."},"recalls":{"items":{"type":"number"},"type":"array","title":"Recalls","description":"Recall (0-1) per class."}},"type":"object","required":["classes","occurences","precisions","recalls"],"title":"ClassMetric","description":"Class-level metric."},"Condition":{"properties":{"type":{"type":"string","title":"Type","description":"Condition kind: 'selection', 'presence', 'spatial', 'area', 'in_geo_area', 'iou', 'near' or 'far'."},"target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target","description":"Data source the condition applies to: 'tracking' or 'segments'."},"attribute":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribute","description":"Column to compare, e.g. 'label'; defaults to label for presence conditions."},"operator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator","description":"Depends on type — selection: '=', '!='; spatial: 'intersects', 'does_not_intersect'; area/in_geo_area: 'inside', 'outside'; iou: 'iou_above', 'iou_below'."},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Comparison value, e.g. a label like 'worker'."},"polygon":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Polygon","description":"Flat coordinate list [x1, y1, x2, y2, ...], minimum 3 points; alternative to roi_id."},"reference":{"anyOf":[{"$ref":"#/components/schemas/Reference"},{"type":"null"}],"description":"Other object to compare against; required for iou/near/far conditions."},"iou_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Iou Threshold","description":"IoU cutoff (0-1) for 'iou_above'/'iou_below' operators."},"distance_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance Threshold","description":"Distance cutoff for near/far conditions."},"roi_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Roi Id","description":"ID of a stored ROI with roi_type 'smart_search_roi'; alternative to polygon."}},"type":"object","required":["type","target","operator"],"title":"Condition"},"CreateResponse":{"properties":{"created":{"type":"boolean","title":"Created","description":"Always true on success.","default":true},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id","description":"ID of the created record; None for bulk or queued operations."},"data":{"anyOf":[{},{"type":"null"}],"title":"Data","description":"The created resource, when returned."},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of records created; set for bulk creates only."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record created successfully"}},"type":"object","title":"CreateResponse","description":"Standard create response."},"CreateResponse_ApiKeyData_":{"properties":{"created":{"type":"boolean","title":"Created","description":"Always true on success.","default":true},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id","description":"ID of the created record; None for bulk or queued operations."},"data":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyData"},{"type":"null"}],"description":"The created resource, when returned."},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of records created; set for bulk creates only."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record created successfully"}},"type":"object","title":"CreateResponse[ApiKeyData]"},"CreateResponse_ObservationTypeData_":{"properties":{"created":{"type":"boolean","title":"Created","description":"Always true on success.","default":true},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id","description":"ID of the created record; None for bulk or queued operations."},"data":{"anyOf":[{"$ref":"#/components/schemas/ObservationTypeData"},{"type":"null"}],"description":"The created resource, when returned."},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of records created; set for bulk creates only."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record created successfully"}},"type":"object","title":"CreateResponse[ObservationTypeData]"},"CreateResponse_PromptData_":{"properties":{"created":{"type":"boolean","title":"Created","description":"Always true on success.","default":true},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id","description":"ID of the created record; None for bulk or queued operations."},"data":{"anyOf":[{"$ref":"#/components/schemas/PromptData"},{"type":"null"}],"description":"The created resource, when returned."},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of records created; set for bulk creates only."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record created successfully"}},"type":"object","title":"CreateResponse[PromptData]"},"CreateResponse_RoiData_":{"properties":{"created":{"type":"boolean","title":"Created","description":"Always true on success.","default":true},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id","description":"ID of the created record; None for bulk or queued operations."},"data":{"anyOf":[{"$ref":"#/components/schemas/RoiData"},{"type":"null"}],"description":"The created resource, when returned."},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of records created; set for bulk creates only."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record created successfully"}},"type":"object","title":"CreateResponse[RoiData]"},"CreateResponse_SavedQueryItem_":{"properties":{"created":{"type":"boolean","title":"Created","description":"Always true on success.","default":true},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id","description":"ID of the created record; None for bulk or queued operations."},"data":{"anyOf":[{"$ref":"#/components/schemas/SavedQueryItem"},{"type":"null"}],"description":"The created resource, when returned."},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of records created; set for bulk creates only."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record created successfully"}},"type":"object","title":"CreateResponse[SavedQueryItem]"},"CreateResponse_list_ActivityItem__":{"properties":{"created":{"type":"boolean","title":"Created","description":"Always true on success.","default":true},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id","description":"ID of the created record; None for bulk or queued operations."},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ActivityItem"},"type":"array"},{"type":"null"}],"title":"Data","description":"The created resource, when returned."},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of records created; set for bulk creates only."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record created successfully"}},"type":"object","title":"CreateResponse[list[ActivityItem]]"},"CreateResponse_list_MlModelItem__":{"properties":{"created":{"type":"boolean","title":"Created","description":"Always true on success.","default":true},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id","description":"ID of the created record; None for bulk or queued operations."},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/MlModelItem"},"type":"array"},{"type":"null"}],"title":"Data","description":"The created resource, when returned."},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of records created; set for bulk creates only."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record created successfully"}},"type":"object","title":"CreateResponse[list[MlModelItem]]"},"DeleteResponse":{"properties":{"deleted":{"type":"boolean","title":"Deleted","description":"Always true on success.","default":true},"count":{"type":"integer","title":"Count","description":"Number of records deleted.","default":1},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record deleted successfully"}},"type":"object","title":"DeleteResponse","description":"Standard delete response."},"DetectionBbox":{"properties":{"bbox":{"items":{"type":"number"},"type":"array","title":"Bbox","description":"Bounding box coordinates [xmin, ymin, xmax, ymax]"},"label":{"type":"string","title":"Label","description":"Detection label"},"score":{"type":"number","title":"Score","description":"Confidence score"}},"type":"object","required":["bbox","label","score"],"title":"DetectionBbox","description":"Bounding box detection."},"ErrorResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always false for errors.","default":false},"data":{"type":"null","title":"Data","description":"Always null for errors."},"message":{"type":"string","title":"Message","description":"What went wrong."},"errors":{"anyOf":[{"items":{"$ref":"#/components/schemas/ValidationErrorDetail"},"type":"array"},{"type":"null"}],"title":"Errors","description":"Per-field details; 422 only."}},"type":"object","required":["message"],"title":"ErrorResponse","description":"Error envelope emitted by the global exception handlers.\n\nEvery non-2xx response shares this shape (see core/exception_handlers.py):\n`errors` is only populated on 422 validation failures."},"ExportFileType":{"type":"string","enum":["pdf","csv"],"title":"ExportFileType"},"ExportJobAck":{"properties":{"message":{"type":"string","title":"Message","description":"Human-readable outcome, e.g. 'Export uploaded to media hub'."}},"type":"object","required":["message"],"title":"ExportJobAck","description":"JSON returned by an export when the file is uploaded to Media Hub instead of streamed back."},"ExtendedMetric":{"properties":{"confusion_matrix":{"items":{"items":{"type":"integer"},"type":"array"},"type":"array","title":"Confusion Matrix","description":"Per-class confusion matrix counts."},"precision_per_recall":{"additionalProperties":{"type":"number"},"type":"object","title":"Precision Per Recall","description":"Precision keyed by recall level."}},"type":"object","required":["confusion_matrix","precision_per_recall"],"title":"ExtendedMetric","description":"Extended metric."},"FovChangeData":{"properties":{"id":{"type":"integer","title":"Id","description":"Record ID."},"camera_exid":{"type":"string","title":"Camera Exid","description":"Camera external ID."},"inserted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Inserted At","description":"Record creation time (UTC)."},"difference":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Difference","description":"Keypoint deviation between the two snapshots; 100 when features could not be matched."},"change_intensity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Intensity","description":"Intensity label. None when not classified."},"prev_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Prev Timestamp","description":"Capture time of the earlier snapshot (UTC)."},"next_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Timestamp","description":"Capture time of the later snapshot (UTC)."}},"type":"object","required":["id","camera_exid"],"title":"FovChangeData","description":"FOV change data model for API responses."},"FovChangeWithIntensity":{"properties":{"id":{"type":"integer","title":"Id","description":"Record ID."},"camera_exid":{"type":"string","title":"Camera Exid","description":"Camera external ID."},"inserted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Inserted At","description":"Record creation time (UTC)."},"difference":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Difference","description":"Keypoint deviation between the two snapshots; 100 when features could not be matched."},"change_intensity":{"type":"string","title":"Change Intensity","description":"Computed intensity: 'No change', 'Low', 'Moderate', or 'High'."},"prev_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Prev Timestamp","description":"Capture time of the earlier snapshot (UTC)."},"next_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Timestamp","description":"Capture time of the later snapshot (UTC)."}},"type":"object","required":["id","camera_exid","change_intensity"],"title":"FovChangeWithIntensity","description":"FOV change with computed intensity classification."},"FovChangesForCameraResponse":{"properties":{"camera_exid":{"type":"string","title":"Camera Exid","description":"Camera external ID."},"fov_changes":{"items":{"$ref":"#/components/schemas/FovChangeWithIntensity"},"type":"array","title":"Fov Changes","description":"FOV changes with intensity classification."}},"type":"object","required":["camera_exid","fov_changes"],"title":"FovChangesForCameraResponse","description":"Response for FOV changes for a specific camera."},"GateReportCameraInfo":{"properties":{"exid":{"type":"string","title":"Exid","description":"Camera exid."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Camera display name."},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Camera status from the Media API."},"feature_flags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Feature Flags","description":"Feature flags enabled on the camera."},"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id","description":"Gate report app row ID; None when no app row."},"context_camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Camera Exid","description":"Paired context camera exid."},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version","description":"Model version from the app row."},"fp_model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fp Model Version","description":"Plate classifier model version."},"branch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Name","description":"Deployment branch name from the app row."},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time","description":"Time from which the app processes events."},"snapshot_request_timeout":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Request Timeout","description":"Snapshot request timeout setting."},"coolify_server_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coolify Server Uuid","description":"UUID of the Coolify server hosting the app."},"coolify_server_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coolify Server Name","description":"Name of the Coolify server hosting the app."},"coolify_service_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coolify Service Uuid","description":"Coolify service UUID."},"coolify_service_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coolify Service Name","description":"Coolify service name."},"coolify_service_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coolify Service Description","description":"Coolify service description."},"coolify_service_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coolify Service Status","description":"Coolify service status, e.g. 'running:healthy'."},"kit_serial":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kit Serial","description":"Serial of the kit the camera belongs to."},"kit_alarms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Kit Alarms","description":"Active alarms reported by the kit; list or raw mapping."}},"type":"object","required":["exid"],"title":"GateReportCameraInfo","description":"Gate report camera info."},"GateReportCountsData":{"properties":{"days":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Days","description":"Per-day count entries."},"months":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Months","description":"Per-month count entries."},"years":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Years","description":"Per-year count entries."}},"type":"object","title":"GateReportCountsData","description":"Gate report counts data model."},"GateReportEventsResponse":{"properties":{"source":{"type":"string","title":"Source","description":"'anpr', 'events', or 'unknown'"},"results":{"$ref":"#/components/schemas/PaginatedResponse_GateReportUnifiedEvent_","description":"Paginated unified events."}},"type":"object","required":["source","results"],"title":"GateReportEventsResponse","description":"Response shape for ``GET /gate-report/events``.\n\nThe endpoint serves either ANPR records or legacy events depending on the\nproject's day; ``source`` lets clients tell which dataset produced the\npage they're looking at. ``results`` is the canonical\n:class:`PaginatedResponse` from ``core/responses.py``."},"GateReportHourCountsData":{"properties":{"hours":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Hours","description":"24 entries, one per local hour 0-23, each with hour, in, out and unknown counts."}},"type":"object","title":"GateReportHourCountsData"},"GateReportProjectData":{"properties":{"name":{"type":"string","title":"Name","description":"Project name."},"exid":{"type":"string","title":"Exid","description":"Project exid."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","description":"Project IANA timezone."},"feature_flags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Feature Flags","description":"Feature flags enabled on the project."}},"type":"object","required":["name","exid"],"title":"GateReportProjectData","description":"Gate report project data."},"GateReportProjectInfo":{"properties":{"project":{"$ref":"#/components/schemas/GateReportProjectData","description":"Project details."},"cameras":{"items":{"$ref":"#/components/schemas/GateReportCameraInfo"},"type":"array","title":"Cameras","description":"ANPR cameras with app and Coolify info."}},"type":"object","required":["project"],"title":"GateReportProjectInfo","description":"Gate report project info data model."},"GateReportUnifiedEvent":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id","description":"Source record ID."},"event_time":{"type":"string","title":"Event Time","description":"Event capture time, ISO 8601."},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction","description":"Travel direction: 'forward', 'reverse', or 'unknown'."},"camera_exid":{"type":"string","title":"Camera Exid","description":"Camera exid."},"vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Type","description":"Vehicle type; prefers context classification."},"is_duplicate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Duplicate","description":"Whether flagged as a duplicate (ANPR only)."},"is_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Public","description":"Public visibility flag (legacy events only)."},"edited":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Edited","description":"Whether manually edited (legacy events only)."},"roi_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Roi Id","description":"ROI that produced the event (legacy events only)."},"is_postprocessed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Postprocessed","description":"Whether post-processing ran (ANPR only)."},"anpr_vehicle_make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Make","description":"Vehicle make reported by ANPR."},"anpr_vehicle_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Color","description":"Vehicle color reported by ANPR."},"main_snapshot_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Snapshot Link","description":"API path to the main snapshot."},"context_snapshot_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Snapshot Link","description":"API path to the context camera snapshot."},"context_camera":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Camera","description":"Context camera exid."},"is_plate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Plate","description":"Whether the detection is a real plate (ANPR only)."},"plate_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plate Number","description":"Detected plate number."},"pic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pic Name","description":"Source picture filename."},"context_vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Vehicle Type","description":"Vehicle type from the context camera."},"anpr_vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Type","description":"Vehicle type reported by ANPR."},"anpr_vehicle_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anpr Vehicle Model","description":"Vehicle model reported by ANPR."},"anpr_vehicle_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Anpr Vehicle Speed","description":"Vehicle speed reported by ANPR."},"company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Company Id","description":"Registry company operating the vehicle."},"cover_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover State","description":"Load cover state from enrichment."},"load_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load State","description":"Load state from enrichment: empty, loaded or not_visible."},"load_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Load Category","description":"Load material category from enrichment."},"metadata_":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Raw event metadata."},"inserted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inserted At","description":"Row creation time."},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At","description":"Last row update time."}},"type":"object","required":["event_time","camera_exid"],"title":"GateReportUnifiedEvent","description":"Unified gate report event combining ANPR and events data."},"GateReportVehicleTypeCounts":{"properties":{"vehicle_type":{"type":"string","title":"Vehicle Type","description":"Vehicle type the days are counted for."},"days":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Days","description":"Per-day count entries, by day."}},"type":"object","required":["vehicle_type"],"title":"GateReportVehicleTypeCounts"},"GateReportVehicleTypeCountsData":{"properties":{"vehicle_types":{"items":{"$ref":"#/components/schemas/GateReportVehicleTypeCounts"},"type":"array","title":"Vehicle Types","description":"One entry per requested vehicle type, in request order."}},"type":"object","title":"GateReportVehicleTypeCountsData"},"Geolocation":{"properties":{"latitude":{"type":"number","title":"Latitude","description":"Latitude coordinate"},"longitude":{"type":"number","title":"Longitude","description":"Longitude coordinate"}},"type":"object","required":["latitude","longitude"],"title":"Geolocation","description":"Geolocation coordinates."},"HeatmapPoint":{"properties":{"coordinates":{"items":{"type":"number"},"type":"array","title":"Coordinates","description":"Normalized [x, y] image coordinates, 0.0-1.0."},"detections_count":{"type":"integer","title":"Detections Count","description":"Total detections at this point."}},"type":"object","required":["coordinates","detections_count"],"title":"HeatmapPoint","description":"Single point in heatmap."},"HeatmapResponse":{"properties":{"label":{"type":"string","title":"Label","description":"Object label."},"points":{"items":{"$ref":"#/components/schemas/HeatmapPoint"},"type":"array","title":"Points","description":"Heatmap points for this label."}},"type":"object","required":["label","points"],"title":"HeatmapResponse","description":"Heatmap response."},"IntersectionHeatmapPoint":{"properties":{"coordinates":{"items":{"type":"number"},"type":"array","title":"Coordinates","description":"Grid cell center [x, y] in normalized image coordinates (0-1)."},"count":{"type":"integer","title":"Count","description":"Number of distinct track-pair intersections in this cell."}},"type":"object","required":["coordinates","count"],"title":"IntersectionHeatmapPoint","description":"A single heatmap point with coordinates and count."},"ListResponse_AnprCompanyDTO_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AnprCompanyDTO"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"ListResponse[AnprCompanyDTO]"},"MetricsResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"Evaluation record ID."},"confidence":{"type":"number","title":"Confidence","description":"Confidence threshold used during evaluation."},"optimized":{"type":"boolean","title":"Optimized","description":"Whether the evaluated model was optimized."},"num_frames":{"type":"integer","title":"Num Frames","description":"Number of frames evaluated."},"overall_metrics":{"items":{"$ref":"#/components/schemas/OverallMetric"},"type":"array","title":"Overall Metrics","description":"Overall mAP/mAR metrics."},"class_metrics":{"items":{"$ref":"#/components/schemas/ClassMetric"},"type":"array","title":"Class Metrics","description":"Per-class precision/recall metrics."},"extended_metrics":{"items":{"$ref":"#/components/schemas/ExtendedMetric"},"type":"array","title":"Extended Metrics","description":"Confusion matrix and precision-per-recall data."}},"type":"object","required":["id","confidence","optimized","num_frames","overall_metrics","class_metrics","extended_metrics"],"title":"MetricsResponse","description":"Response for metrics endpoint."},"MlModelInfo":{"properties":{"id":{"type":"integer","title":"Id","description":"Model ID."},"name":{"type":"string","title":"Name","description":"Model name."},"version":{"type":"string","title":"Version","description":"Model version."},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Model type; None if unset."}},"type":"object","required":["id","name","version"],"title":"MlModelInfo","description":"ML model entry returned by ``GET /smart_search/models``."},"MlModelItem":{"properties":{"id":{"type":"integer","title":"Id","description":"Model ID."},"name":{"type":"string","title":"Name","description":"Model name."},"version":{"type":"string","title":"Version","description":"Model version."},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Model type; None if unset."},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose","description":"Model purpose, e.g. 'activity-recognition'; None if unset."}},"type":"object","required":["id","name","version"],"title":"MlModelItem"},"ObjectDetectionRequest":{"properties":{"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp","description":"Timestamp with format yyyy-mm-dd hh:mm:ss"},"snapshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Url","description":"URL to use the snapshot"},"base64_img":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base64 Img","description":"Base64-encoded image data"}},"type":"object","title":"ObjectDetectionRequest","description":"Request for object detection."},"ObjectDetectionResponse":{"properties":{"detections":{"items":{"$ref":"#/components/schemas/DetectionBbox"},"type":"array","title":"Detections","description":"Detections with normalized (0-1) [xmin, ymin, xmax, ymax] boxes and 0-100 confidence scores."},"model_version":{"type":"string","title":"Model Version","description":"Model version identifier."}},"type":"object","required":["detections","model_version"],"title":"ObjectDetectionResponse","description":"Response for object detection."},"ObservationActivitySelection":{"properties":{"observation_type_id":{"type":"integer","exclusiveMinimum":0,"title":"Observation Type Id"},"every":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Every","description":"Seconds between checks; None = activity default"}},"type":"object","required":["observation_type_id"],"title":"ObservationActivitySelection"},"ObservationApprovalUpdate":{"properties":{"is_approved":{"anyOf":[{"type":"boolean"},{"type":"string","const":"unsure"},{"type":"null"}],"title":"Is Approved"}},"type":"object","title":"ObservationApprovalUpdate"},"ObservationConfigData":{"properties":{"id":{"type":"integer","title":"Id"},"camera_exid":{"type":"string","title":"Camera Exid"},"project_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Exid"},"enabled":{"type":"boolean","title":"Enabled"},"activities":{"anyOf":[{"items":{"$ref":"#/components/schemas/ObservationActivitySelection"},"type":"array"},{"type":"null"}],"title":"Activities"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"inserted_at":{"type":"string","format":"date-time","title":"Inserted At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","camera_exid","enabled","inserted_at","updated_at"],"title":"ObservationConfigData"},"ObservationConfigUpsertRequest":{"properties":{"project_exid":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Project Exid"},"enabled":{"type":"boolean","title":"Enabled","default":true},"activities":{"items":{"$ref":"#/components/schemas/ObservationActivitySelection"},"type":"array","title":"Activities"}},"type":"object","title":"ObservationConfigUpsertRequest"},"ObservationCountBucketDTO":{"properties":{"bucket":{"type":"string","format":"date-time","title":"Bucket"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["bucket","total"],"title":"ObservationCountBucketDTO"},"ObservationEventDTO":{"properties":{"id":{"type":"integer","title":"Id"},"observation_type_id":{"type":"integer","title":"Observation Type Id"},"observation_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observation Code"},"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid"},"project_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Exid"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"status":{"type":"string","title":"Status"},"is_approved":{"anyOf":[{"type":"boolean"},{"type":"string","const":"unsure"},{"type":"null"}],"title":"Is Approved"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"person_bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Person Bbox"},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"observation_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Observation Metadata"},"trigger":{"type":"string","title":"Trigger"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"source_type":{"type":"string","title":"Source Type","default":"camera"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"marker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marker Id"},"drawing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drawing Id"},"drawing_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drawing Name"},"walk_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Walk Name"},"geolocation":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Geolocation"},"sightings":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Sightings"}},"type":"object","required":["id","observation_type_id","captured_at","status","trigger"],"title":"ObservationEventDTO"},"ObservationModelDTO":{"properties":{"model_name":{"type":"string","title":"Model Name"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["model_name","total"],"title":"ObservationModelDTO"},"ObservationProjectDTO":{"properties":{"project_exid":{"type":"string","title":"Project Exid"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["project_exid","total"],"title":"ObservationProjectDTO"},"ObservationTypeCreateRequest":{"properties":{"observation_code":{"type":"string","maxLength":255,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_]*$","title":"Observation Code"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"type":"string","maxLength":64,"minLength":1,"title":"Type","default":"safety"},"rules":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rules"},"every":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Every","description":"Default seconds between checks"},"severity":{"anyOf":[{"type":"integer","maximum":5,"minimum":1},{"type":"null"}],"title":"Severity"},"feasibility_status":{"type":"string","pattern":"^(prod|beta|parked)$","title":"Feasibility Status","default":"parked"},"prompt_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Prompt Id","description":"Sub-prompt backing this observation type"}},"type":"object","required":["observation_code","name"],"title":"ObservationTypeCreateRequest"},"ObservationTypeDTO":{"properties":{"id":{"type":"integer","title":"Id"},"observation_code":{"type":"string","title":"Observation Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"type":"string","title":"Type"},"severity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Severity"},"feasibility_status":{"type":"string","title":"Feasibility Status"}},"type":"object","required":["id","observation_code","name","type","feasibility_status"],"title":"ObservationTypeDTO"},"ObservationTypeData":{"properties":{"id":{"type":"integer","title":"Id"},"observation_code":{"type":"string","title":"Observation Code"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"type":"string","title":"Type"},"rules":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rules"},"every":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Every"},"severity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Severity"},"feasibility_status":{"type":"string","title":"Feasibility Status"},"prompt_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Id"},"prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Name"},"inserted_at":{"type":"string","format":"date-time","title":"Inserted At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","observation_code","name","type","feasibility_status","inserted_at","updated_at"],"title":"ObservationTypeData"},"ObservationTypeUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Type"},"rules":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rules"},"every":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Every"},"severity":{"anyOf":[{"type":"integer","maximum":5,"minimum":1},{"type":"null"}],"title":"Severity"},"feasibility_status":{"anyOf":[{"type":"string","pattern":"^(prod|beta|parked)$"},{"type":"null"}],"title":"Feasibility Status"},"prompt_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Prompt Id"}},"type":"object","title":"ObservationTypeUpdateRequest"},"OverallMetric":{"properties":{"map_50":{"type":"number","title":"Map 50","description":"Mean average precision at IoU 0.50."},"map_75":{"type":"number","title":"Map 75","description":"Mean average precision at IoU 0.75."},"mar_100":{"type":"number","title":"Mar 100","description":"Mean average recall at up to 100 detections per image."}},"type":"object","required":["map_50","map_75","mar_100"],"title":"OverallMetric","description":"Overall metric."},"OwlV2Request":{"properties":{"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp","description":"Timestamp with format yyyy-mm-dd hh:mm:ss"},"snapshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Url","description":"URL to use the snapshot"},"base64_img":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base64 Img","description":"Base64-encoded image data"},"prompt":{"type":"string","title":"Prompt","description":"Prompt for object detection using OWLv2"}},"type":"object","required":["prompt"],"title":"OwlV2Request","description":"Request for OWLv2 detection."},"OwlV2Response":{"properties":{"detections":{"items":{"$ref":"#/components/schemas/DetectionBbox"},"type":"array","title":"Detections","description":"Detections with normalized (0-1) [xmin, ymin, xmax, ymax] boxes and 0-100 confidence scores."},"model":{"type":"string","title":"Model","description":"Hugging Face model ID used.","default":"google/owlv2-base-patch16-ensemble"}},"type":"object","required":["detections"],"title":"OwlV2Response","description":"Response for OWLv2 detection."},"PaginatedResponse_ActivityEventItem_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ActivityEventItem"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[ActivityEventItem]"},"PaginatedResponse_AnprPlateData_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AnprPlateData"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[AnprPlateData]"},"PaginatedResponse_AnprRecordWithLinks_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AnprRecordWithLinks"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[AnprRecordWithLinks]"},"PaginatedResponse_GateReportUnifiedEvent_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GateReportUnifiedEvent"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[GateReportUnifiedEvent]"},"PaginatedResponse_ObservationEventDTO_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ObservationEventDTO"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[ObservationEventDTO]"},"PaginatedResponse_ObservationTypeData_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ObservationTypeData"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[ObservationTypeData]"},"PaginatedResponse_PpeEventDTO_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PpeEventDTO"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[PpeEventDTO]"},"PaginatedResponse_PromptData_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PromptData"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[PromptData]"},"PaginatedResponse_TrackingItem_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TrackingItem"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[TrackingItem]"},"PaginatedResponse_TrackingsByTimestamp_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TrackingsByTimestamp"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[TrackingsByTimestamp]"},"PaginatedResponse_VerifiedDayData_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/VerifiedDayData"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"PaginatedResponse[VerifiedDayData]"},"PpeApprovalUpdate":{"properties":{"is_approved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Approved","description":"Reviewer verdict: true=valid, false=invalid. None=clear review."}},"type":"object","title":"PpeApprovalUpdate"},"PpeCountBucketDTO":{"properties":{"bucket":{"type":"string","format":"date-time","title":"Bucket","description":"Bucket start time, truncated to the requested granularity (UTC)."},"total":{"type":"integer","title":"Total","description":"Events in the bucket."},"compliant":{"type":"integer","title":"Compliant","description":"Compliant events in the bucket."},"non_compliant":{"type":"integer","title":"Non Compliant","description":"Non-compliant events in the bucket."}},"type":"object","required":["bucket","total","compliant","non_compliant"],"title":"PpeCountBucketDTO"},"PpeDetectionRequest":{"properties":{"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp","description":"Timestamp with format yyyy-mm-dd hh:mm:ss"},"snapshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Url","description":"URL to use the snapshot"},"base64_img":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base64 Img","description":"Base64-encoded image data"},"model":{"type":"string","enum":["owlv2","yolo","gemini"],"title":"Model","description":"PPE model backend to use","default":"owlv2"},"conf_threshold":{"type":"number","maximum":1,"minimum":0,"title":"Conf Threshold","description":"Confidence threshold (0-1). Applied to all backends.","default":0.25},"gemini_mode":{"type":"string","enum":["strict","permissive"],"title":"Gemini Mode","description":"Gemini prompt variant: 'strict' (precision) or 'permissive' (recall). Ignored for non-Gemini backends.","default":"strict"}},"type":"object","title":"PpeDetectionRequest","description":"Request for PPE detection.\n\n`conf_threshold` is applied uniformly across YOLO, OWLv2, and Gemini so the\nfrontend can sweep operating points and benchmark backends at a comparable\nconfidence floor. For Gemini, scores are in 0-100 internally and the threshold\nis scaled to that range.\n\n`gemini_mode` selects the prompt variant:\n- \"strict\": precision-first; tight localization rules, skips uncertain objects.\n- \"permissive\": recall-first; returns more candidates including borderline cases.\n\nOnly used when `model == \"gemini\"`."},"PpeDetectionResponse":{"properties":{"detections":{"items":{"$ref":"#/components/schemas/DetectionBbox"},"type":"array","title":"Detections","description":"PPE detections with normalized (0-1) [xmin, ymin, xmax, ymax] boxes and 0-100 confidence scores."},"model_version":{"type":"string","title":"Model Version","description":"Version identifier of the backend model used."},"selected_model":{"type":"string","enum":["owlv2","yolo","gemini"],"title":"Selected Model","description":"PPE backend that produced the detections.","default":"owlv2"}},"type":"object","required":["detections","model_version"],"title":"PpeDetectionResponse","description":"Response for PPE detection."},"PpeEventDTO":{"properties":{"id":{"type":"integer","title":"Id","description":"Event ID."},"camera_exid":{"type":"string","title":"Camera Exid","description":"Camera external ID."},"project_exid":{"type":"string","title":"Project Exid","description":"Project external ID."},"captured_at":{"type":"string","format":"date-time","title":"Captured At","description":"Snapshot capture time (UTC)."},"person_index":{"type":"integer","title":"Person Index","description":"Index of the person within the snapshot."},"person_bbox":{"items":{"type":"number"},"type":"array","title":"Person Bbox","description":"Person box [x1, y1, x2, y2], normalized 0-1."},"person_score":{"type":"number","title":"Person Score","description":"Person detection confidence, 0-1."},"ppe":{"additionalProperties":{"$ref":"#/components/schemas/PpeItemDTO"},"type":"object","title":"Ppe","description":"Detected PPE items keyed by label: helmet, high-visibility-vest, gloves, safety-glasses."},"has_helmet":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Helmet","description":"Helmet state: 0=absent, 1=present, 2=not visible. None=not evaluated."},"has_high_vis_vest":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has High Vis Vest","description":"High-vis vest state: 0=absent, 1=present, 2=not visible. None=not evaluated."},"has_gloves":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Gloves","description":"Gloves state: 0=absent, 1=present, 2=not visible. None=not evaluated."},"has_glasses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Has Glasses","description":"Safety glasses state: 0=absent, 1=present, 2=not visible. None=not evaluated."},"ppe_evidence":{"additionalProperties":{"type":"string"},"type":"object","title":"Ppe Evidence","description":"Per-item model reasoning keyed by flag column, e.g. has_helmet."},"is_approved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Approved","description":"Reviewer verdict. None=unreviewed."},"model_version":{"type":"string","title":"Model Version","description":"Detection model version."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Row insertion time (UTC)."},"compliant":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Compliant","description":"True when no required item is absent."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Joined ppe_evidence texts. None when no evidence."}},"type":"object","required":["id","camera_exid","project_exid","captured_at","person_index","person_bbox","person_score","ppe","model_version","created_at"],"title":"PpeEventDTO"},"PpeExportFileType":{"type":"string","enum":["csv","pdf"],"title":"PpeExportFileType"},"PpeItemDTO":{"properties":{"score":{"type":"number","title":"Score","description":"Item detection confidence, 0-1."},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"Item box [x1, y1, x2, y2], normalized 0-1. None when unavailable."}},"type":"object","required":["score"],"title":"PpeItemDTO"},"PpeSnapshotUrlDTO":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Presigned snapshot URL. None when the snapshot is missing."},"exists":{"type":"boolean","title":"Exists","description":"Whether the snapshot exists in storage.","default":false}},"type":"object","title":"PpeSnapshotUrlDTO"},"PpeValidity":{"type":"string","enum":["valid","invalid","unreviewed"],"title":"PpeValidity","description":"Reviewer verdict: valid=is_approved true, invalid=false, unreviewed=null. Unset=all."},"PresenceInterval":{"properties":{"from_date":{"type":"string","format":"date-time","title":"From Date","description":"Interval start."},"to_date":{"type":"string","format":"date-time","title":"To Date","description":"Interval end (inclusive)."}},"type":"object","required":["from_date","to_date"],"title":"PresenceInterval","description":"Presence interval for a label."},"PresenceIntervals":{"properties":{"intervals":{"additionalProperties":{"items":{"$ref":"#/components/schemas/PresenceInterval"},"type":"array"},"type":"object","title":"Intervals","description":"Presence intervals keyed by label."}},"type":"object","required":["intervals"],"title":"PresenceIntervals","description":"Presence intervals grouped by label."},"ProcessWalkRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WalkItem"},"type":"array","minItems":1,"title":"Items","description":"List of walks to process"}},"type":"object","required":["items"],"title":"ProcessWalkRequest","description":"Request to process 360 walks."},"ProcessedSessionDTO":{"properties":{"id":{"type":"integer","title":"Id"},"project_exid":{"type":"string","title":"Project Exid"},"source_type":{"type":"string","title":"Source Type"},"session_id":{"type":"string","title":"Session Id"},"status":{"type":"string","title":"Status"},"markers_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Markers Total"},"markers_processed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Markers Processed"},"events_created":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Events Created"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["id","project_exid","source_type","session_id","status","started_at"],"title":"ProcessedSessionDTO"},"PromptCreateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title","description":"Display title."},"purpose":{"type":"string","maxLength":255,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_]*$","title":"Purpose","description":"snake_case slug used to fetch this prompt at runtime, e.g. 'review_gate_report_event'"},"app":{"type":"string","maxLength":255,"minLength":1,"title":"App","description":"App namespace, e.g. 'gate_report'"},"model":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Model","description":"Target LLM model name."},"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Prompt text."},"output_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema","description":"JSON-Schema sent to the LLM for structured output (optional)."},"prompt_type":{"type":"string","pattern":"^(prompt|parent)$","title":"Prompt Type","description":"'parent' prompts own sub-prompts; sub-prompts are created via the subprompts endpoint.","default":"prompt"}},"type":"object","required":["purpose","app","prompt"],"title":"PromptCreateRequest","description":"Request body for creating a new prompt."},"PromptData":{"properties":{"id":{"type":"integer","title":"Id","description":"Prompt row ID."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Display title."},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose","description":"snake_case slug used to fetch this prompt at runtime."},"app":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App","description":"App namespace, e.g. 'gate_report'."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Target LLM model name."},"prompt":{"type":"string","title":"Prompt","description":"Prompt text."},"output_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema","description":"JSON-Schema for structured LLM output. None when free-form."},"prompt_type":{"type":"string","title":"Prompt Type","description":"'prompt', 'parent' (owns sub-prompts), or 'subprompt'.","default":"prompt"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id","description":"Owning parent prompt id, set on sub-prompts."},"subprompt_count":{"type":"integer","title":"Subprompt Count","description":"Number of sub-prompts owned by this parent.","default":0},"created_by":{"type":"string","title":"Created By","description":"Author email."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Row creation time (UTC)."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last modification time (UTC)."}},"type":"object","required":["id","prompt","created_by","created_at","updated_at"],"title":"PromptData","description":"Read-side projection of a prompt row."},"PromptUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title","description":"New display title."},"purpose":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_]*$"},{"type":"null"}],"title":"Purpose","description":"New snake_case lookup slug."},"app":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"App","description":"New app namespace."},"model":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Model","description":"New target LLM model name."},"prompt":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Prompt","description":"New prompt text."},"output_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema","description":"New JSON-Schema for structured output. Explicit null clears it."}},"type":"object","title":"PromptUpdateRequest","description":"Request body for updating an existing prompt.\n\n`app`/`purpose` are intentionally writable so a row can be re-targeted,\nbut they're guarded by the `(app, purpose)` UNIQUE constraint at the DB."},"Reference":{"properties":{"target":{"type":"string","title":"Target","description":"Data source of the referenced object: 'tracking' or 'segments'."},"attribute":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribute","description":"Column of the referenced object to match on."},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Label of the referenced object, e.g. 'worker'."}},"type":"object","required":["target"],"title":"Reference"},"RoiCreateRequest":{"properties":{"camera_exid":{"type":"string","minLength":1,"title":"Camera Exid","description":"Camera external ID."},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"ROI name, unique per camera."},"roi_type":{"type":"string","minLength":1,"title":"Roi Type","description":"Consumer feature type, e.g. anpr_context, site_analytics."},"from_date":{"type":"string","format":"date","title":"From Date","description":"Date the ROI takes effect."},"shapes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Shapes","description":"Shape objects {type, coordinates}; type is rectangle, polygon, line or direction; coordinates are [x, y] points normalized 0-1."},"direction_filter":{"type":"string","title":"Direction Filter","description":"Direction constraint for the ROI."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Optional note; not persisted on the ROI."},"created_by":{"type":"string","minLength":1,"title":"Created By","description":"Actor recorded in the change log."}},"type":"object","required":["camera_exid","name","roi_type","from_date","direction_filter","created_by"],"title":"RoiCreateRequest","description":"Request body for creating a new ROI."},"RoiData":{"properties":{"id":{"type":"integer","title":"Id","description":"ROI ID."},"cameraex":{"type":"string","title":"Cameraex","description":"Camera external ID."},"name":{"type":"string","title":"Name","description":"ROI name, unique per camera."},"roi_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roi Type","description":"Consumer feature type, e.g. anpr_context, site_analytics."},"from_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Date","description":"Date the ROI takes effect."},"shapes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Shapes","description":"Shape objects {type, coordinates}; coordinates are [x, y] points normalized 0-1."},"direction_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction Filter","description":"Direction constraint for the ROI. None=none."},"isactive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isactive","description":"Whether the ROI is active."},"inserted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Inserted At","description":"Record creation time (UTC)."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Last update time (UTC)."}},"type":"object","required":["id","cameraex","name"],"title":"RoiData","description":"ROI data model."},"RoiUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"New name. Omit to leave unchanged."},"roi_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roi Type","description":"New ROI type. Omit to leave unchanged."},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"New active state. Omit to leave unchanged."},"shapes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Shapes","description":"New shape objects {type, coordinates}; coordinates normalized 0-1. Omit to leave unchanged."},"direction_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction Filter","description":"New direction constraint. Omit to leave unchanged."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Optional note; not persisted on the ROI."},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By","description":"Actor recorded in the change log."}},"type":"object","title":"RoiUpdateRequest","description":"Request body for updating an ROI."},"Rule":{"properties":{"logic":{"type":"string","title":"Logic","description":"How conditions combine: 'AND' or 'OR'."},"conditions":{"items":{"$ref":"#/components/schemas/Condition"},"type":"array","title":"Conditions","description":"Conditions evaluated together under `logic`."}},"type":"object","required":["logic","conditions"],"title":"Rule"},"SavedQueryCreateRequest":{"properties":{"name":{"type":"string","title":"Name","description":"Query name."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Query description."},"query":{"additionalProperties":true,"type":"object","title":"Query","description":"Smart-search request body (rules and conditions) to save."},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params","description":"Extra saved query parameters."},"from_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From Date","description":"Start of time range to save."},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date","description":"End of time range to save."},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author","description":"User who created the query."}},"type":"object","required":["name","query"],"title":"SavedQueryCreateRequest","description":"Request to create a saved query."},"SavedQueryItem":{"properties":{"id":{"type":"integer","title":"Id","description":"Saved query ID."},"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID the query is saved under."},"name":{"type":"string","title":"Name","description":"Query name."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Query description."},"query":{"additionalProperties":true,"type":"object","title":"Query","description":"Saved smart-search request body (rules and conditions)."},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params","description":"Extra saved query parameters."},"from_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From Date","description":"Saved start of time range."},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date","description":"Saved end of time range."},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author","description":"User who created the query."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Creation timestamp."}},"type":"object","required":["id","name","query"],"title":"SavedQueryItem","description":"Saved query item for responses."},"SavedQueryUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"New query name; None leaves it unchanged."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"New description; None leaves it unchanged."},"query":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Query","description":"New smart-search request body; None leaves it unchanged."},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params","description":"New extra parameters; None leaves it unchanged."},"from_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From Date","description":"New start of time range; None leaves it unchanged."},"to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To Date","description":"New end of time range; None leaves it unchanged."}},"type":"object","title":"SavedQueryUpdateRequest","description":"Request to update a saved query."},"SegmentAppearance":{"properties":{"id":{"type":"integer","title":"Id","description":"Matched segment record ID."},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Matched segment timestamp."},"iou":{"type":"number","title":"Iou","description":"Intersection-over-union with the reference segment (0-1)."}},"type":"object","required":["id","timestamp","iou"],"title":"SegmentAppearance","description":"Segment appearance result from IoU matching."},"SegmentMaskItem":{"properties":{"id":{"type":"integer","title":"Id","description":"Segment record ID."},"mask":{"anyOf":[{"items":{"items":{"type":"number"},"type":"array"},"type":"array"},{"type":"null"}],"title":"Mask","description":"Polygon exterior as [x, y] points in normalized image coordinates (0-1)."},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Segment timestamp."}},"type":"object","required":["id","timestamp"],"title":"SegmentMaskItem","description":"A single segment mask entry."},"SegmentPresenceInterval":{"properties":{"from_date":{"type":"string","format":"date-time","title":"From Date","description":"Interval start."},"to_date":{"type":"string","format":"date-time","title":"To Date","description":"Interval end (inclusive)."}},"type":"object","required":["from_date","to_date"],"title":"SegmentPresenceInterval","description":"A presence interval for a label."},"SegmentPresenceIntervals":{"properties":{"intervals":{"additionalProperties":{"items":{"$ref":"#/components/schemas/SegmentPresenceInterval"},"type":"array"},"type":"object","title":"Intervals","description":"Presence intervals keyed by label."}},"type":"object","required":["intervals"],"title":"SegmentPresenceIntervals","description":"Presence intervals grouped by label."},"SegmentsByLabel":{"properties":{"segments":{"additionalProperties":{"items":{"$ref":"#/components/schemas/SegmentMaskItem"},"type":"array"},"type":"object","title":"Segments","description":"Segment masks keyed by label."}},"type":"object","required":["segments"],"title":"SegmentsByLabel","description":"Segments grouped by label."},"SmartSearchExportFileType":{"type":"string","enum":["csv","pdf"],"title":"SmartSearchExportFileType","description":"Supported smart-search export file types."},"SmartSearchRequest":{"properties":{"return_targets":{"items":{"type":"string"},"type":"array","title":"Return Targets","description":"Options: 'tracking', 'segments', or both","default":["tracking"]},"rules_logic":{"type":"string","title":"Rules Logic","description":"Logic to combine rules: 'AND' or 'OR'","default":"AND"},"rules":{"items":{"$ref":"#/components/schemas/Rule"},"type":"array","title":"Rules","description":"List of rules with conditions"},"time_schedule":{"anyOf":[{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},{"type":"null"}],"title":"Time Schedule","description":"Optional time schedule map, e.g. {'monday': ['08:00:00-10:00:00']}"}},"type":"object","required":["rules"],"title":"SmartSearchRequest","description":"Smart search request with rules and conditions."},"SmartSearchResponseAll":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SmartSearchResultItemAll"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"SmartSearchResponseAll","description":"Smart search response with pagination for 'all' results."},"SmartSearchResponseFirstLastSeen":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SmartSearchResultItemFirstLastSeen"},"type":"array","title":"Items","description":"Records for the current page."},"total":{"type":"integer","title":"Total","description":"Total records matching the query across all pages."},"page":{"type":"integer","title":"Page","description":"Current page number (1-based)."},"limit":{"type":"integer","title":"Limit","description":"Maximum records per page."},"from":{"type":"integer","title":"From","description":"1-based index of the first item on this page; 0 when empty."},"to":{"type":"integer","title":"To","description":"1-based index of the last item on this page; 0 when empty."}},"type":"object","required":["items","total","page","limit","from","to"],"title":"SmartSearchResponseFirstLastSeen","description":"Smart search response with pagination for 'first_last_seen' results."},"SmartSearchResultItemAll":{"properties":{"track_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Track Id","description":"Tracker-assigned track ID."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Detected object label."},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"Bounding box [xmin, ymin, xmax, ymax]."},"centroid":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Centroid","description":"Detection centroid [x, y]."},"area":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area","description":"Detection area."},"walk_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Walk Id","description":"360 walk ID."},"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID."},"project_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Exid","description":"Project external ID."},"timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestamp","description":"Detection time (ISO 8601)."},"confidence_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Score","description":"Detector confidence, 0.0-1.0."},"model_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Id","description":"ID of the ML model that produced the detection."},"segment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Segment Id","description":"Segment ID; set only for 'segments' results."},"mask":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Mask","description":"Segmentation mask polygon as flat coordinates [x1, y1, x2, y2, ...]."},"marker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marker Id","description":"360 marker ID."},"drawing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drawing Id","description":"Drawing ID."},"geolocation":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Geolocation","description":"[longitude, latitude] for 360 data"}},"type":"object","title":"SmartSearchResultItemAll","description":"Result item for return_type=\"all\"."},"SmartSearchResultItemFirstLastSeen":{"properties":{"track_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Track Id","description":"Tracker-assigned track ID."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Detected object label."},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"Bounding box [xmin, ymin, xmax, ymax]."},"centroid":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Centroid","description":"Detection centroid [x, y]."},"area":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Area","description":"Detection area."},"walk_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Walk Id","description":"360 walk ID."},"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID."},"project_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Exid","description":"Project external ID."},"first_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Seen","description":"Time of the track's first detection (ISO 8601)."},"last_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Seen","description":"Time of the track's last detection (ISO 8601)."},"first_seen_marker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Seen Marker Id","description":"360 marker ID at the first detection."},"last_seen_marker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Seen Marker Id","description":"360 marker ID at the last detection."},"drawing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drawing Id","description":"Drawing ID."}},"type":"object","title":"SmartSearchResultItemFirstLastSeen","description":"Result item for return_type=\"first_last_seen\"."},"SubpromptCreateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"purpose":{"type":"string","maxLength":255,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_/]*$","title":"Purpose"},"model":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Model"},"prompt":{"type":"string","minLength":1,"title":"Prompt"},"output_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema"}},"type":"object","required":["purpose","prompt"],"title":"SubpromptCreateRequest","description":"Request body for creating a sub-prompt under a parent prompt.\n\n`app` is inherited from the parent; `prompt_type` is forced to 'subprompt'."},"TimelinePrecision":{"type":"string","enum":["year","month","week","day","hour","minute","events"],"title":"TimelinePrecision"},"TrackingBulkDeleteFilters":{"properties":{"tracking_ids":{"items":{"type":"integer"},"type":"array","title":"Tracking Ids","description":"IDs of the tracking records to delete."}},"type":"object","required":["tracking_ids"],"title":"TrackingBulkDeleteFilters","description":"Filters for bulk deleting trackings."},"TrackingCounts":{"properties":{"days":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Days","description":"Per-day buckets with day, timestamps total and a count per label."},"months":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Months","description":"Per-month buckets with month, timestamps total and a count per label."},"years":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Years","description":"Per-year buckets with year, timestamps total and a count per label."}},"type":"object","required":["days","months","years"],"title":"TrackingCounts","description":"Tracking counts by day/month/year."},"TrackingCreateData":{"properties":{"track_id":{"type":"integer","title":"Track Id","description":"Identifier grouping detections of the same tracked object."},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Detection timestamp."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Detected object class label."},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"Bounding box [xmin, ymin, xmax, ymax] in normalized image coordinates (0-1)."},"centroid":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Centroid","description":"Object centroid [x, y] in normalized image coordinates (0-1)."},"area":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Area","description":"Area must be non-negative"},"confidence_score":{"anyOf":[{"type":"number","maximum":100,"minimum":0},{"type":"null"}],"title":"Confidence Score","description":"Confidence score (percent, 0-100)"},"model_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Id","description":"ID of the detection model."},"mask":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Mask","description":"Segmentation polygon as flat [x1, y1, x2, y2, ...] normalized coordinates (0-1); at least 3 points."},"project_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Exid","description":"Project external ID."},"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID."},"walk_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Walk Id","description":"Associated walk ID."},"marker_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Marker Id","description":"Associated marker ID."}},"type":"object","required":["track_id","timestamp"],"title":"TrackingCreateData","description":"Data for creating a tracking record."},"TrackingItem":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Detection timestamp."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Detected object class label."},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"Bounding box [xmin, ymin, xmax, ymax] in normalized image coordinates (0-1)."},"track_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Track Id","description":"Identifier grouping detections of the same tracked object."},"model_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Id","description":"ID of the detection model that produced this tracking."},"confidence_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Score","description":"Detection confidence in percent (0-100)."}},"type":"object","required":["timestamp"],"title":"TrackingItem","description":"Single tracking data point for API response."},"TrackingRecord":{"properties":{"track_id":{"type":"integer","title":"Track Id","description":"Identifier of the tracked object."},"from_date":{"type":"string","format":"date-time","title":"From Date","description":"Timestamp of the first detection in the track."},"to_date":{"type":"string","format":"date-time","title":"To Date","description":"Timestamp of the last detection in the track."},"detections":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Detections","description":"Track detections, each with bbox and timestamp."}},"type":"object","required":["track_id","from_date","to_date","detections"],"title":"TrackingRecord","description":"Single track: track_id, from_date, to_date, detections (V1 detections/trackings)."},"TrackingUpdateData":{"properties":{"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp","description":"Detection timestamp."},"track_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Track Id","description":"Identifier grouping detections of the same tracked object."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Detected object class label."},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"Bounding box [xmin, ymin, xmax, ymax] in normalized image coordinates (0-1)."},"centroid":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Centroid","description":"Object centroid [x, y] in normalized image coordinates (0-1)."},"area":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Area","description":"Area must be non-negative"},"confidence_score":{"anyOf":[{"type":"number","maximum":100,"minimum":0},{"type":"null"}],"title":"Confidence Score","description":"Confidence score (percent, 0-100)"},"model_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Id","description":"ID of the detection model."},"mask":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Mask","description":"Segmentation polygon as flat [x1, y1, x2, y2, ...] normalized coordinates (0-1); at least 3 points."}},"type":"object","title":"TrackingUpdateData","description":"Data for updating a tracking record."},"TrackingsByTimestamp":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"Timestamp shared by the grouped trackings."},"camera_exid":{"type":"string","title":"Camera Exid","description":"Camera external ID."},"trackings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Trackings","description":"Detections at this timestamp, each with label, bbox, track_id, model_id and confidence_score."}},"type":"object","required":["timestamp","camera_exid","trackings"],"title":"TrackingsByTimestamp","description":"Trackings grouped by timestamp."},"TrackingsGroupedResponse":{"additionalProperties":{"items":{"$ref":"#/components/schemas/TrackingRecord"},"type":"array"},"type":"object","title":"TrackingsGroupedResponse","description":"V1-equivalent: trackings grouped by label, no pagination."},"UpdateResponse":{"properties":{"updated":{"type":"boolean","title":"Updated","description":"Always true on success.","default":true},"id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Id","description":"ID of the updated record; None for bulk updates."},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of records updated; set for bulk updates only."},"message":{"type":"string","title":"Message","description":"Outcome summary.","default":"Record updated successfully"}},"type":"object","title":"UpdateResponse","description":"Standard update response."},"ValidationErrorDetail":{"properties":{"field":{"type":"string","title":"Field","description":"Dot-joined location of the invalid input, e.g. 'body.start_date'."},"message":{"type":"string","title":"Message","description":"Human-readable reason the value was rejected."},"type":{"type":"string","title":"Type","description":"Pydantic error type code, e.g. 'missing' or 'int_parsing'."}},"type":"object","required":["field","message","type"],"title":"ValidationErrorDetail","description":"Per-field detail attached to 422 responses."},"VerifiedDayData":{"properties":{"id":{"type":"integer","title":"Id","description":"Verified day row ID."},"camera_exid":{"type":"string","title":"Camera Exid","description":"Camera exid."},"project_exid":{"type":"string","title":"Project Exid","description":"Project exid."},"day":{"type":"string","title":"Day","description":"Verified day, YYYY-MM-DD."},"is_matched":{"type":"boolean","title":"Is Matched","description":"Whether the day's counts were marked as matched."},"inserted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inserted At","description":"Row creation time."},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At","description":"Last row update time."},"verified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified By","description":"User who verified the day."}},"type":"object","required":["id","camera_exid","project_exid","day","is_matched"],"title":"VerifiedDayData","description":"Verified day data model."},"VerifiedDaysCreateSchema":{"properties":{"cameras_exid":{"items":{"type":"string"},"type":"array","title":"Cameras Exid","description":"Camera external IDs the verified day applies to."},"project_exid":{"type":"string","title":"Project Exid","description":"Project external ID."},"day":{"type":"string","format":"date","title":"Day","description":"Calendar day being marked as verified (YYYY-MM-DD)."},"is_matched":{"type":"boolean","title":"Is Matched","description":"Whether gate-report events matched the verified counts for the day.","default":false},"verified_by":{"type":"string","title":"Verified By","description":"Identifier (email) of the user who verified the day."}},"type":"object","required":["cameras_exid","project_exid","day","verified_by"],"title":"VerifiedDaysCreateSchema"},"WalkImage":{"properties":{"marker_id":{"type":"string","title":"Marker Id","description":"Marker ID (frame identifier)"},"geolocation":{"$ref":"#/components/schemas/Geolocation","description":"Geolocation coordinates"}},"type":"object","required":["marker_id","geolocation"],"title":"WalkImage","description":"Image data for a 360 walk."},"WalkItem":{"properties":{"id":{"type":"integer","title":"Id","description":"Walk ID"},"project_id":{"type":"string","title":"Project Id","description":"Project external ID"},"date":{"type":"string","title":"Date","description":"Walk date (YYYY-MM-DD)"},"drawing_id":{"type":"integer","title":"Drawing Id","description":"Drawing ID"},"images":{"items":{"$ref":"#/components/schemas/WalkImage"},"type":"array","title":"Images","description":"List of images with geolocation data"}},"type":"object","required":["id","project_id","date","drawing_id","images"],"title":"WalkItem","description":"Single 360 walk item to process."},"Yolov11DetectionResponse":{"properties":{"detections":{"items":{"$ref":"#/components/schemas/DetectionBbox"},"type":"array","title":"Detections","description":"Detections with pixel [xmin, ymin, xmax, ymax] boxes and 0-1 confidence scores."},"model_version":{"type":"string","title":"Model Version","description":"Model version identifier."}},"type":"object","required":["detections","model_version"],"title":"Yolov11DetectionResponse","description":"Boxes-only response from the YOLOv11 detection endpoint."},"Yolov11Request":{"properties":{"camera_exid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Exid","description":"Camera external ID"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp","description":"Timestamp with format yyyy-mm-dd hh:mm:ss"},"snapshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Url","description":"URL to use the snapshot"},"base64_img":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base64 Img","description":"Base64-encoded image data"},"classes":{"items":{"type":"string"},"type":"array","title":"Classes","description":"Class labels to detect","default":["person"]},"conf_threshold":{"type":"number","maximum":1,"minimum":0,"title":"Conf Threshold","description":"Minimum confidence (0-1) for detections.","default":0.25}},"type":"object","title":"Yolov11Request","description":"Request for the YOLOv11 model (shared by the detection and segmentation endpoints)."},"Yolov11SegDetection":{"properties":{"bbox":{"items":{"type":"number"},"type":"array","title":"Bbox","description":"Bounding box coordinates [xmin, ymin, xmax, ymax]"},"label":{"type":"string","title":"Label","description":"Detection label"},"score":{"type":"number","title":"Score","description":"Confidence score"},"segment":{"items":{"items":{"type":"number"},"type":"array"},"type":"array","title":"Segment","description":"Polygon points [[x, y], ...]"}},"type":"object","required":["bbox","label","score"],"title":"Yolov11SegDetection","description":"A detection with its polygon segment."},"Yolov11SegmentationResponse":{"properties":{"detections":{"items":{"$ref":"#/components/schemas/Yolov11SegDetection"},"type":"array","title":"Detections","description":"Detections with pixel boxes, 0-1 confidence scores, and pixel-coordinate polygon segments."},"model_version":{"type":"string","title":"Model Version","description":"Model version identifier."}},"type":"object","required":["detections","model_version"],"title":"Yolov11SegmentationResponse","description":"Boxes + polygon segments response from the YOLOv11 segmentation endpoint."},"common__database__sqlmodel__ai_schemas__anpr_records__FileTypes":{"type":"string","enum":["csv","pdf"],"title":"FileTypes"},"common__database__sqlmodel__ai_schemas__events__FileTypes":{"type":"string","enum":["pdf","csv"],"title":"FileTypes"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token authentication. Get your token from the Evercam dashboard."},"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Service API key (JWT format) passed in x-api-key header."}}},"tags":[{"name":"ai-models","description":"On-device ML model inventory and metadata."},{"name":"anpr","description":"Automatic Number Plate Recognition records and edits."},{"name":"activity-recognition","description":"Per-camera activity event streams."},{"name":"clips","description":"Activity clip generation and snapshots."},{"name":"ppe","description":"PPE detection events and compliance counts."},{"name":"360","description":"360 endpoints."},{"name":"site-analytics","description":"Site analytics aggregates."},{"name":"fov-changes","description":"Camera field-of-view change events."},{"name":"rois","description":"Regions of interest for cameras."},{"name":"segments","description":"Time-series tracking segments."},{"name":"trackings","description":"Object trackings."},{"name":"smart-search","description":"Embedding-based search across activity."},{"name":"gate-report","description":"Gate-report events, counts, and verifications."},{"name":"prompts","description":"Reusable prompt templates for AI apps (gate_report, ...)."},{"name":"api-keys","description":"Encrypted LLM provider API keys per project + purpose. Admin only — every route requires an @evercam.io account (403 otherwise)."}],"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"servers":[{"url":"https://data.evercam.io","description":"AI API (ai)"}]}