{"openapi":"3.0.0","components":{"examples":{},"headers":{},"parameters":{},"requestBodies":{},"responses":{},"schemas":{"SiteAnalyticsViewType":{"enum":["camera","360"],"type":"string"},"CameraFeatureFlag":{"enum":["edge_video","bim_compare","2d_bim_compare","forge_bim_compare","gate_report","video_stream","webrtc","anpr","reverse_anpr","ptz","object_detection","segmentation","segmentation_auto_labelling","ppe_monitoring","no_live_view","ring","cloud_only"],"type":"string"},"TimelineDateInterval":{"properties":{"toDate":{"type":"string"},"fromDate":{"type":"string"}},"required":["toDate","fromDate"],"type":"object"},"SiteAnalyticsProcessingStatus":{"properties":{"processedIntervals":{"items":{"$ref":"#/components/schemas/TimelineDateInterval"},"type":"array"},"feature":{"$ref":"#/components/schemas/CameraFeatureFlag"},"viewId":{"type":"string"},"viewType":{"$ref":"#/components/schemas/SiteAnalyticsViewType"},"projectExid":{"type":"string"}},"required":["processedIntervals","feature","viewId","viewType","projectExid"],"type":"object"},"CameraExid":{"type":"string"},"IntersectionsHeatmapPoint":{"properties":{"coordinates":{"items":{"type":"number","format":"double"},"type":"array"},"detectionsCount":{"type":"number","format":"double"}},"required":["coordinates","detectionsCount"],"type":"object","additionalProperties":false},"Record_string.TimelineDateInterval-Array_":{"properties":{},"additionalProperties":{"items":{"$ref":"#/components/schemas/TimelineDateInterval"},"type":"array"},"type":"object","description":"Construct a type with a set of properties K of type T"},"SegmentsPresenceResponse":{"$ref":"#/components/schemas/Record_string.TimelineDateInterval-Array_","description":"Presence intervals keyed by segment label. Each value is the list of\nuninterrupted `{ fromDate, toDate }` intervals for that label."},"SegmentationErrorResponse":{"properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["message","success"],"type":"object","description":"Error body returned when the presence-intervals query fails."},"TimelinePrecision":{"enum":["year","month","week","day","hour","minute","events"],"type":"string"},"Record_VercelProjectKey.string_":{"properties":{"360":{"type":"string"},"dashboard":{"type":"string"},"admin":{"type":"string"},"3d":{"type":"string"},"planner":{"type":"string"}},"required":["dashboard","admin","3d","360","planner"],"type":"object","description":"Construct a type with a set of properties K of type T"},"SecretsPayload":{"properties":{"envFiles":{"$ref":"#/components/schemas/Record_VercelProjectKey.string_"},"npmrc":{"type":"string"},"fetchedAt":{"type":"string"},"vercelEnvironment":{"type":"string","enum":["production"],"nullable":false}},"required":["envFiles","npmrc","fetchedAt","vercelEnvironment"],"type":"object","additionalProperties":false},"ErrorResponseMessage":{"properties":{"error":{"type":"string"}},"required":["error"],"type":"object"},"CliExchangeBody":{"properties":{"code":{"type":"string"}},"required":["code"],"type":"object","additionalProperties":false},"LuminanceReading":{"properties":{"luminanceAverage":{"type":"number","format":"double"},"luminanceDelta":{"type":"number","format":"double"},"timestamp":{"type":"string"}},"required":["luminanceAverage","luminanceDelta","timestamp"],"type":"object"},"GrafanaSchemaMeta":{"properties":{"executedQueryString":{"type":"string"},"stats":{"items":{"properties":{"unit":{"type":"string"},"value":{"type":"number","format":"double"},"displayName":{"type":"string"}},"required":["value","displayName"],"type":"object"},"type":"array"},"custom":{"properties":{"frameType":{"type":"string"},"resultType":{"type":"string"}},"type":"object"},"typeVersion":{"items":{"type":"number","format":"double"},"type":"array"},"type":{"type":"string"}},"type":"object"},"GrafanaFieldConfig":{"properties":{"interval":{"type":"number","format":"double"},"decimals":{"type":"number","format":"double"},"unit":{"type":"string"},"thresholds":{"properties":{"steps":{"items":{"properties":{"value":{"type":"number","format":"double","nullable":true},"color":{"type":"string"}},"required":["value","color"],"type":"object"},"type":"array"},"mode":{"type":"string"}},"required":["steps","mode"],"type":"object"},"custom":{"properties":{"resultType":{"type":"string"},"spanNulls":{"type":"boolean"},"lineWidth":{"type":"number","format":"double"},"gradientMode":{"type":"string"},"fillOpacity":{"type":"number","format":"double"},"lineInterpolation":{"type":"string"}},"type":"object"},"color":{"type":"string"},"links":{"items":{"type":"string"},"type":"array"},"displayNameFromDS":{"type":"string"}},"type":"object"},"GrafanaTimeSeriesValue":{"anyOf":[{"type":"number","format":"double"},{"type":"string"}],"nullable":true},"GrafanaTimeSeriesValues":{"items":{"items":{"$ref":"#/components/schemas/GrafanaTimeSeriesValue"},"type":"array"},"type":"array"},"GrafanaField":{"properties":{"values":{"$ref":"#/components/schemas/GrafanaTimeSeriesValues"},"labels":{"properties":{},"additionalProperties":{"type":"string"},"type":"object"},"config":{"$ref":"#/components/schemas/GrafanaFieldConfig"},"typeInfo":{"properties":{"nullable":{"type":"boolean"},"frame":{"type":"string"}},"required":["frame"],"type":"object"},"type":{"type":"string"},"name":{"type":"string"}},"required":["config","typeInfo","type","name"],"type":"object"},"GrafanaSchema":{"properties":{"fields":{"items":{"$ref":"#/components/schemas/GrafanaField"},"type":"array"},"meta":{"$ref":"#/components/schemas/GrafanaSchemaMeta"},"refId":{"type":"string"},"name":{"type":"string"}},"required":["fields","meta","refId"],"type":"object"},"GrafanaFrame":{"properties":{"data":{"properties":{"nanos":{"items":{"items":{"type":"number","format":"double"},"type":"array","nullable":true},"type":"array"},"values":{"$ref":"#/components/schemas/GrafanaTimeSeriesValues"}},"required":["values"],"type":"object"},"schema":{"$ref":"#/components/schemas/GrafanaSchema"}},"required":["data","schema"],"type":"object"},"GrafanaQueryResult":{"properties":{"frames":{"items":{"$ref":"#/components/schemas/GrafanaFrame"},"type":"array"},"status":{"type":"number","format":"double"}},"required":["frames","status"],"type":"object"},"GrafanaChartType":{"enum":["stat","gauge","graph","table","state-timeline","logs","timeseries","barchart"],"type":"string"},"GrafanaMetricId":{"enum":[20,155,19,16,21,154,14,75,18,23,15,77,78,74,168,158,260,310,322,327,314,152,357,359,363,361,371,367,369,365,345,339,343,347,349,351,353,337,331,333,318,325,320,324],"type":"number"},"GrafanaMetricResponse":{"properties":{"metricId":{"$ref":"#/components/schemas/GrafanaMetricId"},"type":{"$ref":"#/components/schemas/GrafanaChartType"},"results":{"properties":{},"additionalProperties":{"$ref":"#/components/schemas/GrafanaQueryResult"},"type":"object"}},"required":["metricId","type","results"],"type":"object"},"Record_keyoftypeofGrafanaMetricId.GrafanaMetricResponse_":{"properties":{"SbcCpuLoad":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcSystemLoad5MnAvg":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcSystemLoad15MnAvg":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcRamUsed":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcSwapUsed":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcRootFsUsed":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcCpuCoresTotal":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcRamTotal":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcSwapTotal":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcRootFsTotal":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcUptime":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcCpuStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcRamStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcNetworkStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcTimeSyncStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcTemperatureStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"SbcTimeSyncDriftStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"CameraInfo":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"CameraRecordingStateTimeline":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"CameraStreamInfo":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"LocalStorage":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"StorageSpaceUsed":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterTemperature":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterCpuLoad":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterRamUsed":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterSystemLoad5MnAvg":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterSwapTotal":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterRamTotal":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterUptime":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterCpuCoresTotal":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterSignalReliability":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterSINR":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterRSRP":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterRSRQ":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterRSSI":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterSignalStrengthStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterSignalQualityStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"RouterDataConsumptionStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"BatteryVoltageAndCurrentStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"PanelVoltageAndPowerStats":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"ExNvrStatus":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"ExNvrVersion":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"ExNvrMemoryUsage":{"$ref":"#/components/schemas/GrafanaMetricResponse"},"ExNvrLogs":{"$ref":"#/components/schemas/GrafanaMetricResponse"}},"required":["SbcCpuLoad","SbcSystemLoad5MnAvg","SbcSystemLoad15MnAvg","SbcRamUsed","SbcSwapUsed","SbcRootFsUsed","SbcCpuCoresTotal","SbcRamTotal","SbcSwapTotal","SbcRootFsTotal","SbcUptime","SbcCpuStats","SbcRamStats","SbcNetworkStats","SbcTimeSyncStats","SbcTemperatureStats","SbcTimeSyncDriftStats","CameraInfo","CameraRecordingStateTimeline","CameraStreamInfo","LocalStorage","StorageSpaceUsed","RouterTemperature","RouterCpuLoad","RouterRamUsed","RouterSystemLoad5MnAvg","RouterSwapTotal","RouterRamTotal","RouterUptime","RouterCpuCoresTotal","RouterSignalReliability","RouterSINR","RouterRSRP","RouterRSRQ","RouterRSSI","RouterSignalStrengthStats","RouterSignalQualityStats","RouterDataConsumptionStats","BatteryVoltageAndCurrentStats","PanelVoltageAndPowerStats","ExNvrStatus","ExNvrVersion","ExNvrMemoryUsage","ExNvrLogs"],"type":"object","description":"Construct a type with a set of properties K of type T"},"GrafanaKitMetrics":{"$ref":"#/components/schemas/Record_keyoftypeofGrafanaMetricId.GrafanaMetricResponse_"},"ObjectDetectionDto":{"properties":{"updatedAt":{"type":"string"},"insertedAt":{"type":"string"},"bbox":{"items":{"type":"number","format":"double"},"type":"array"},"confidenceScore":{"type":"number","format":"double"},"label":{"type":"string"},"date":{"type":"string"},"markerId":{"anyOf":[{"type":"string"},{"type":"number","format":"double"}]},"floorId":{"anyOf":[{"type":"string"},{"type":"number","format":"double"}]},"projectExid":{"type":"string"},"id":{"type":"number","format":"double"}},"required":["updatedAt","insertedAt","bbox","confidenceScore","label","date","markerId","floorId","projectExid","id"],"type":"object","description":"A single 360 object detection returned by the detections endpoint."},"CameraAnalyticsEventType":{"enum":["ppe"],"type":"string"},"CameraAnalyticsEventProvider":{"enum":["axis"],"type":"string"}},"securitySchemes":{"apiKeyAuth":{"type":"apiKey","name":"Authorization","in":"header"}}},"info":{"title":"Evercam Labs API","version":"1.0.0","description":"# Evercam Labs API\n\nPlayground API for prototyping backend features and concepts. This reference is generated directly from the TSOA controllers, so the documented endpoints and payloads always reflect the code.\n\n## Authentication\n\nMost HTTP endpoints are protected by a global auth middleware and require a valid Evercam API token in the `Authorization` header:\n\n```\nAuthorization: <evercam-token>\n```\n\nA missing or invalid token returns **401 Unauthorized** (plain-text body).\n\nThe following endpoints do **not** require a token:\n\n- `GET /docs` and `GET /swagger.json` — this documentation.\n- Static assets.\n- `POST | GET | HEAD /cameras/{cameraExid}/events/ppe` — the PPE camera-analytics webhook.\n- `GET /projects/{projectExid}/detections/360`.\n- `/secrets/*` — the CLI login/exchange endpoints.\n\nSome endpoints additionally require **admin** privileges (an Evercam admin, or an `evercam.io` account) — **Kits Metrics** (`GET /kits/{kitId}/metrics`). A non-admin token gets **401 Unauthorized** there.\n\n## Common error responses\n\n- **401 Unauthorized** — missing or invalid token (plain-text body).\n- **422 Unprocessable Entity** — request validation failed: `{ \"message\": \"Validation Failed\", \"details\": { ... } }`.\n- **500 Internal Server Error** — unhandled error: `{ \"message\": \"Internal Server Error\" }`.\n\nIndividual operations may also return endpoint-specific `4xx`/`5xx` bodies, documented per operation below.\n\n","license":{"name":"MIT"},"contact":{}},"paths":{"/site-analytics/processing-status":{"get":{"operationId":"GetProcessingStatus","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SiteAnalyticsProcessingStatus"},"type":"array"}}}},"400":{"description":"Bad Request (empty array body) — returned when both `cameraExid` and `drawingId` are supplied, as they are mutually exclusive."},"500":{"description":"Internal Server Error (empty array body) — returned when fetching the processing status fails."}},"description":"Returns uninterrupted processing intervals (by day) for each view\n(camera or 360 walk) and feature.","tags":["Camera Detections Heatmap Processing"],"security":[],"parameters":[{"description":"Start of the range (ISO 8601). Optional.","in":"query","name":"fromDate","required":false,"schema":{"type":"string"}},{"description":"End of the range (ISO 8601). Optional.","in":"query","name":"toDate","required":false,"schema":{"type":"string"}},{"description":"Filter by project. Optional.","in":"query","name":"projectExid","required":false,"schema":{"type":"string"}},{"description":"Filter by a single camera view. Optional; mutually exclusive with `drawingId`.","in":"query","name":"cameraExid","required":false,"schema":{"$ref":"#/components/schemas/CameraExid"}},{"description":"Filter by a 360 walk drawing. Optional; mutually exclusive with `cameraExid`.","in":"query","name":"drawingId","required":false,"schema":{"type":"string"}},{"description":"Which features to include. Optional; defaults to all.","in":"query","name":"features","required":false,"schema":{"type":"array","items":{"type":"string","enum":["object_detection","segmentation"]}}}]}},"/site-analytics/cameras/{cameraExid}/heatmap/intersections":{"get":{"operationId":"GetIntersectionsHeatmap","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/IntersectionsHeatmapPoint"},"type":"array"},"examples":{"Example 1":{"value":[{"coordinates":[0.42,0.68],"detectionsCount":17},{"coordinates":[0.51,0.73],"detectionsCount":4}]}}}}},"400":{"description":"Bad Request (empty array body) — returned when `sourceLabels` is empty or `fromDate`/`toDate` are invalid dates."},"500":{"description":"Internal Server Error (empty array body) — returned when fetching the heatmap fails."}},"description":"Returns a heatmap of intersections between a set of source labels\nand a target label, over a given time range, for a specific camera.","tags":["Camera Detections Heatmap Processing"],"security":[],"parameters":[{"description":"The camera to compute the heatmap for.","in":"path","name":"cameraExid","required":true,"schema":{"$ref":"#/components/schemas/CameraExid"}},{"description":"One or more source detection labels (required, non-empty).","in":"query","name":"sourceLabels","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"description":"The target detection label to intersect against (required).","in":"query","name":"targetLabel","required":true,"schema":{"type":"string"}},{"description":"Start of the range (ISO 8601). Optional.","in":"query","name":"fromDate","required":false,"schema":{"type":"string"}},{"description":"End of the range (ISO 8601). Optional.","in":"query","name":"toDate","required":false,"schema":{"type":"string"}}]}},"/cameras/{cameraExid}/segments/presence-intervals":{"get":{"operationId":"GetSegmentsPresenceDateIntervals","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SegmentsPresenceResponse"},{"$ref":"#/components/schemas/SegmentationErrorResponse"}]},"examples":{"Example 1":{"value":{"person":[{"fromDate":"2025-08-10T08:00:00.000Z","toDate":"2025-08-10T09:30:00.000Z"}],"vehicle":[{"fromDate":"2025-08-10T10:00:00.000Z","toDate":"2025-08-10T10:15:00.000Z"}]}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentationErrorResponse"},"examples":{"Example 1":{"value":{"success":false,"message":"Internal server error"}}}}}}},"description":"Returns, per detected segment label, the uninterrupted date intervals\nduring which that label was present for the camera over a date range.","tags":["Segmentation"],"security":[],"parameters":[{"description":"The external camera ID.","in":"path","name":"cameraExid","required":true,"schema":{"$ref":"#/components/schemas/CameraExid"}},{"description":"Start of the range (ISO 8601).","in":"query","name":"fromDate","required":true,"schema":{"type":"string"}},{"description":"End of the range (ISO 8601).","in":"query","name":"toDate","required":true,"schema":{"type":"string"}},{"description":"Granularity used to bucket the intervals.","in":"query","name":"precision","required":true,"schema":{"$ref":"#/components/schemas/TimelinePrecision"}}]}},"/cameras/{cameraExid}/luminance/readings":{"get":{"operationId":"GetLuminanceReadings","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"anyOf":[{"items":{"$ref":"#/components/schemas/LuminanceReading"},"type":"array"},{"$ref":"#/components/schemas/ErrorResponseMessage"}]},"examples":{"Example 1":{"value":[{"timestamp":"2025-08-10T12:00:00.000Z","luminanceDelta":3.4,"luminanceAverage":128.7}]}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseMessage"},"examples":{"Example 1":{}}}}}},"description":"Returns luminance readings (average + delta) for a camera over a date range.","summary":"Get luminance readings","tags":["Luminance"],"security":[],"parameters":[{"description":"The external camera ID.","in":"path","name":"cameraExid","required":true,"schema":{"$ref":"#/components/schemas/CameraExid"}},{"description":"Start of the range (ISO 8601).","in":"query","name":"fromDate","required":true,"schema":{"type":"string"}},{"description":"End of the range (ISO 8601).","in":"query","name":"toDate","required":true,"schema":{"type":"string"}}]}},"/kits/{kitId}/metrics":{"get":{"operationId":"GetMetrics","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Record_keyoftypeofGrafanaMetricId.GrafanaMetricResponse_"},{"$ref":"#/components/schemas/ErrorResponseMessage"}]}}}},"404":{"description":"Metrics not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseMessage"},"examples":{"Example 1":{}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseMessage"},"examples":{"Example 1":{}}}}}},"description":"Get Kit metrics data for specified metric IDs","tags":["Kits Metrics"],"security":[],"parameters":[{"description":"The target Kit ID","in":"path","name":"kitId","required":true,"schema":{"type":"string"}},{"description":"Array of Grafana metric IDs","in":"query","name":"metrics","required":true,"schema":{"type":"array","items":{"type":"string","enum":["SbcCpuLoad","SbcSystemLoad5MnAvg","SbcSystemLoad15MnAvg","SbcRamUsed","SbcSwapUsed","SbcRootFsUsed","SbcCpuCoresTotal","SbcRamTotal","SbcSwapTotal","SbcRootFsTotal","SbcUptime","SbcCpuStats","SbcRamStats","SbcNetworkStats","SbcTimeSyncStats","SbcTemperatureStats","SbcTimeSyncDriftStats","CameraInfo","CameraRecordingStateTimeline","CameraStreamInfo","LocalStorage","StorageSpaceUsed","RouterTemperature","RouterCpuLoad","RouterRamUsed","RouterSystemLoad5MnAvg","RouterSwapTotal","RouterRamTotal","RouterUptime","RouterCpuCoresTotal","RouterSignalReliability","RouterSINR","RouterRSRP","RouterRSRQ","RouterRSSI","RouterSignalStrengthStats","RouterSignalQualityStats","RouterDataConsumptionStats","BatteryVoltageAndCurrentStats","PanelVoltageAndPowerStats","ExNvrStatus","ExNvrVersion","ExNvrMemoryUsage","ExNvrLogs"],"nullable":false}}},{"description":"Start time (default: now-1h)","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"End time (default: now)","in":"query","name":"to","required":false,"schema":{"type":"string"}}]}},"/gc-storage/buckets/{bucketName}/files":{"get":{"operationId":"ListBucketFiles","responses":{"200":{"description":"List of files and folders","content":{"application/json":{"schema":{"properties":{"folders":{"items":{"type":"string"},"type":"array"},"files":{"items":{"type":"string"},"type":"array"}},"required":["folders","files"],"type":"object"},"examples":{"Example 1":{"value":{"files":["report.pdf","2025-08/summary.csv"],"folders":["2025-08/","2025-09/"]}}}}}},"500":{"description":"Internal Server Error"}},"description":"List files and folders in a GCS bucket.","tags":["GoogleCloudStorage"],"security":[],"parameters":[{"description":"The name of the bucket","in":"path","name":"bucketName","required":true,"schema":{"type":"string"}},{"description":"The optional folder path inside the bucket","in":"query","name":"prefix","required":false,"schema":{"type":"string"}}]}},"/gc-storage/buckets/{bucketName}/files/signed-url":{"get":{"operationId":"GetSignedUrl","responses":{"200":{"description":"A signed URL to access the file","content":{"application/json":{"schema":{"properties":{"url":{"type":"string"}},"required":["url"],"type":"object"},"examples":{"Example 1":{"value":{"url":"https://storage.googleapis.com/my-bucket/report.pdf?X-Goog-Signature=..."}}}}}},"500":{"description":"Internal Server Error"}},"description":"Get a signed URL to view a file in GCS.","tags":["GoogleCloudStorage"],"security":[],"parameters":[{"description":"The name of the bucket","in":"path","name":"bucketName","required":true,"schema":{"type":"string"}},{"description":"The name of the file (including the folder path if any)","in":"query","name":"fileName","required":true,"schema":{"type":"string"}}]}},"/projects/{projectExid}/detections/360":{"get":{"operationId":"GetDetections","responses":{"200":{"description":"Array of detections","content":{"application/json":{"schema":{"anyOf":[{"items":{"$ref":"#/components/schemas/ObjectDetectionDto"},"type":"array"},{"properties":{"error":{"type":"string"}},"required":["error"],"type":"object"}]},"examples":{"Detections list":{"value":[{"id":42,"projectExid":"proj-abc123","floorId":"floor-1","markerId":"frame7","date":"2025-08-10T12:34:56.000Z","label":"helmet","confidenceScore":0.92,"bbox":[0.12,0.18,0.27,0.33],"insertedAt":"2025-08-10T12:35:00.000Z","updatedAt":"2025-08-10T12:35:00.000Z"}]}}}}},"500":{"description":"Internal Server Error"}},"description":"Retrieve 360 object detections with optional filters.","tags":["Detections360"],"security":[],"parameters":[{"description":"Filter by projectExid","in":"path","name":"projectExid","required":true,"schema":{"type":"string"},"example":"proj-abc123"},{"description":"Filter by floorId","in":"query","name":"floorId","required":false,"schema":{},"example":"floor-1"},{"description":"Filter by markerId","in":"query","name":"markerId","required":false,"schema":{},"example":"marker-7"},{"description":"Filter by modelId","in":"query","name":"modelId","required":false,"schema":{"type":"string"}},{"description":"Filter by date","in":"query","name":"date","required":false,"schema":{"type":"string"},"example":"2025-08-01"}]}},"/cameras/{cameraExid}/events/{eventType}":{"post":{"operationId":"Webhook","responses":{"200":{"description":"Event stored"},"500":{"description":"Internal Server Error — failed to store the event"}},"description":"Camera analytics events webhook, when called\nit will store the data in DB and notify the relevant parties","tags":["Camera analytics events"],"security":[],"parameters":[{"description":"The external camera ID","in":"path","name":"cameraExid","required":true,"schema":{"$ref":"#/components/schemas/CameraExid"}},{"description":"Type of the event","in":"path","name":"eventType","required":true,"schema":{}},{"description":"The provider of the event","in":"query","name":"provider","required":true,"schema":{}}],"requestBody":{"description":"Additional event payload (arbitrary JSON; `event` and `time` are optional well-known fields)","required":true,"content":{"application/json":{"schema":{"properties":{"time":{"type":"string"},"event":{"type":"string"}},"additionalProperties":{},"type":"object","description":"Additional event payload (arbitrary JSON; `event` and `time` are optional well-known fields)"}}}}},"get":{"operationId":"CheckWebhook","responses":{"204":{"description":"No content"}},"description":"Camera analytics events webhook GET placeholder","tags":["Camera analytics events"],"security":[],"parameters":[{"description":"The external camera ID","in":"path","name":"cameraExid","required":true,"schema":{"$ref":"#/components/schemas/CameraExid"}},{"description":"The type of the event","in":"path","name":"eventType","required":true,"schema":{}},{"description":"The provider of the event","in":"query","name":"provider","required":true,"schema":{}}]},"head":{"operationId":"WebhookHead","responses":{"204":{"description":"No content"}},"description":"Camera analytics events webhook HEAD placeholder","tags":["Camera analytics events"],"security":[],"parameters":[{"description":"The external camera ID","in":"path","name":"cameraExid","required":true,"schema":{"$ref":"#/components/schemas/CameraExid"}},{"description":"The type of the event","in":"path","name":"eventType","required":true,"schema":{}}]}}},"servers":[{"url":"https://labs.evercam.io","description":"Labs API (labs)"}]}